Issue #7575: An overflow test for math.expm1 was failing on OS X 10.4/Intel,
[python.git] / configure
blob1fe54539206d333af547015e96b5fe98d5c3baa2
1 #! /bin/sh
2 # From configure.in Revision: 76644 .
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 LIPO_32BIT_FLAGS
662 PYTHONFRAMEWORK
663 PYTHONFRAMEWORKIDENTIFIER
664 PYTHONFRAMEWORKDIR
665 PYTHONFRAMEWORKPREFIX
666 PYTHONFRAMEWORKINSTALLDIR
667 FRAMEWORKINSTALLFIRST
668 FRAMEWORKINSTALLLAST
669 FRAMEWORKALTINSTALLFIRST
670 FRAMEWORKALTINSTALLLAST
671 FRAMEWORKUNIXTOOLSPREFIX
672 MACHDEP
673 SGI_ABI
674 EXTRAPLATDIR
675 EXTRAMACHDEPPATH
676 CONFIGURE_MACOSX_DEPLOYMENT_TARGET
677 EXPORT_MACOSX_DEPLOYMENT_TARGET
679 CFLAGS
680 LDFLAGS
681 CPPFLAGS
682 ac_ct_CC
683 EXEEXT
684 OBJEXT
686 MAINCC
688 GREP
689 EGREP
690 BUILDEXEEXT
691 LIBRARY
692 LDLIBRARY
693 DLLLIBRARY
694 BLDLIBRARY
695 LDLIBRARYDIR
696 INSTSONAME
697 RUNSHARED
698 LINKCC
699 GNULD
700 RANLIB
702 ARFLAGS
703 SVNVERSION
704 INSTALL_PROGRAM
705 INSTALL_SCRIPT
706 INSTALL_DATA
709 BASECFLAGS
710 UNIVERSAL_ARCH_FLAGS
711 OTHER_LIBTOOL_OPT
712 LIBTOOL_CRUFT
714 LDSHARED
715 BLDSHARED
716 CCSHARED
717 LINKFORSHARED
718 CFLAGSFORSHARED
719 SHLIBS
720 USE_SIGNAL_MODULE
721 SIGNAL_OBJS
722 USE_THREAD_MODULE
723 LDLAST
724 THREADOBJ
725 DLINCLDIR
726 DYNLOADFILE
727 MACHDEP_OBJS
728 TRUE
729 LIBOBJS
730 HAVE_GETHOSTBYNAME_R_6_ARG
731 HAVE_GETHOSTBYNAME_R_5_ARG
732 HAVE_GETHOSTBYNAME_R_3_ARG
733 HAVE_GETHOSTBYNAME_R
734 HAVE_GETHOSTBYNAME
735 LIBM
736 LIBC
737 UNICODE_OBJS
738 THREADHEADERS
739 SRCDIRS
740 LTLIBOBJS'
741 ac_subst_files=''
742 ac_precious_vars='build_alias
743 host_alias
744 target_alias
746 CFLAGS
747 LDFLAGS
748 LIBS
749 CPPFLAGS
750 CPP'
753 # Initialize some variables set by options.
754 ac_init_help=
755 ac_init_version=false
756 # The variables have the same names as the options, with
757 # dashes changed to underlines.
758 cache_file=/dev/null
759 exec_prefix=NONE
760 no_create=
761 no_recursion=
762 prefix=NONE
763 program_prefix=NONE
764 program_suffix=NONE
765 program_transform_name=s,x,x,
766 silent=
767 site=
768 srcdir=
769 verbose=
770 x_includes=NONE
771 x_libraries=NONE
773 # Installation directory options.
774 # These are left unexpanded so users can "make install exec_prefix=/foo"
775 # and all the variables that are supposed to be based on exec_prefix
776 # by default will actually change.
777 # Use braces instead of parens because sh, perl, etc. also accept them.
778 # (The list follows the same order as the GNU Coding Standards.)
779 bindir='${exec_prefix}/bin'
780 sbindir='${exec_prefix}/sbin'
781 libexecdir='${exec_prefix}/libexec'
782 datarootdir='${prefix}/share'
783 datadir='${datarootdir}'
784 sysconfdir='${prefix}/etc'
785 sharedstatedir='${prefix}/com'
786 localstatedir='${prefix}/var'
787 includedir='${prefix}/include'
788 oldincludedir='/usr/include'
789 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
790 infodir='${datarootdir}/info'
791 htmldir='${docdir}'
792 dvidir='${docdir}'
793 pdfdir='${docdir}'
794 psdir='${docdir}'
795 libdir='${exec_prefix}/lib'
796 localedir='${datarootdir}/locale'
797 mandir='${datarootdir}/man'
799 ac_prev=
800 ac_dashdash=
801 for ac_option
803 # If the previous option needs an argument, assign it.
804 if test -n "$ac_prev"; then
805 eval $ac_prev=\$ac_option
806 ac_prev=
807 continue
810 case $ac_option in
811 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
812 *) ac_optarg=yes ;;
813 esac
815 # Accept the important Cygnus configure options, so we can diagnose typos.
817 case $ac_dashdash$ac_option in
819 ac_dashdash=yes ;;
821 -bindir | --bindir | --bindi | --bind | --bin | --bi)
822 ac_prev=bindir ;;
823 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
824 bindir=$ac_optarg ;;
826 -build | --build | --buil | --bui | --bu)
827 ac_prev=build_alias ;;
828 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
829 build_alias=$ac_optarg ;;
831 -cache-file | --cache-file | --cache-fil | --cache-fi \
832 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
833 ac_prev=cache_file ;;
834 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
835 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
836 cache_file=$ac_optarg ;;
838 --config-cache | -C)
839 cache_file=config.cache ;;
841 -datadir | --datadir | --datadi | --datad)
842 ac_prev=datadir ;;
843 -datadir=* | --datadir=* | --datadi=* | --datad=*)
844 datadir=$ac_optarg ;;
846 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
847 | --dataroo | --dataro | --datar)
848 ac_prev=datarootdir ;;
849 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
850 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
851 datarootdir=$ac_optarg ;;
853 -disable-* | --disable-*)
854 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
855 # Reject names that are not valid shell variable names.
856 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
857 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
858 { (exit 1); exit 1; }; }
859 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
860 eval enable_$ac_feature=no ;;
862 -docdir | --docdir | --docdi | --doc | --do)
863 ac_prev=docdir ;;
864 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
865 docdir=$ac_optarg ;;
867 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
868 ac_prev=dvidir ;;
869 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
870 dvidir=$ac_optarg ;;
872 -enable-* | --enable-*)
873 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
874 # Reject names that are not valid shell variable names.
875 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
876 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
877 { (exit 1); exit 1; }; }
878 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
879 eval enable_$ac_feature=\$ac_optarg ;;
881 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
882 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
883 | --exec | --exe | --ex)
884 ac_prev=exec_prefix ;;
885 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
886 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
887 | --exec=* | --exe=* | --ex=*)
888 exec_prefix=$ac_optarg ;;
890 -gas | --gas | --ga | --g)
891 # Obsolete; use --with-gas.
892 with_gas=yes ;;
894 -help | --help | --hel | --he | -h)
895 ac_init_help=long ;;
896 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
897 ac_init_help=recursive ;;
898 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
899 ac_init_help=short ;;
901 -host | --host | --hos | --ho)
902 ac_prev=host_alias ;;
903 -host=* | --host=* | --hos=* | --ho=*)
904 host_alias=$ac_optarg ;;
906 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
907 ac_prev=htmldir ;;
908 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
909 | --ht=*)
910 htmldir=$ac_optarg ;;
912 -includedir | --includedir | --includedi | --included | --include \
913 | --includ | --inclu | --incl | --inc)
914 ac_prev=includedir ;;
915 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
916 | --includ=* | --inclu=* | --incl=* | --inc=*)
917 includedir=$ac_optarg ;;
919 -infodir | --infodir | --infodi | --infod | --info | --inf)
920 ac_prev=infodir ;;
921 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
922 infodir=$ac_optarg ;;
924 -libdir | --libdir | --libdi | --libd)
925 ac_prev=libdir ;;
926 -libdir=* | --libdir=* | --libdi=* | --libd=*)
927 libdir=$ac_optarg ;;
929 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
930 | --libexe | --libex | --libe)
931 ac_prev=libexecdir ;;
932 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
933 | --libexe=* | --libex=* | --libe=*)
934 libexecdir=$ac_optarg ;;
936 -localedir | --localedir | --localedi | --localed | --locale)
937 ac_prev=localedir ;;
938 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
939 localedir=$ac_optarg ;;
941 -localstatedir | --localstatedir | --localstatedi | --localstated \
942 | --localstate | --localstat | --localsta | --localst | --locals)
943 ac_prev=localstatedir ;;
944 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
945 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
946 localstatedir=$ac_optarg ;;
948 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
949 ac_prev=mandir ;;
950 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
951 mandir=$ac_optarg ;;
953 -nfp | --nfp | --nf)
954 # Obsolete; use --without-fp.
955 with_fp=no ;;
957 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
958 | --no-cr | --no-c | -n)
959 no_create=yes ;;
961 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
962 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
963 no_recursion=yes ;;
965 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
966 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
967 | --oldin | --oldi | --old | --ol | --o)
968 ac_prev=oldincludedir ;;
969 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
970 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
971 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
972 oldincludedir=$ac_optarg ;;
974 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
975 ac_prev=prefix ;;
976 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
977 prefix=$ac_optarg ;;
979 -program-prefix | --program-prefix | --program-prefi | --program-pref \
980 | --program-pre | --program-pr | --program-p)
981 ac_prev=program_prefix ;;
982 -program-prefix=* | --program-prefix=* | --program-prefi=* \
983 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
984 program_prefix=$ac_optarg ;;
986 -program-suffix | --program-suffix | --program-suffi | --program-suff \
987 | --program-suf | --program-su | --program-s)
988 ac_prev=program_suffix ;;
989 -program-suffix=* | --program-suffix=* | --program-suffi=* \
990 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
991 program_suffix=$ac_optarg ;;
993 -program-transform-name | --program-transform-name \
994 | --program-transform-nam | --program-transform-na \
995 | --program-transform-n | --program-transform- \
996 | --program-transform | --program-transfor \
997 | --program-transfo | --program-transf \
998 | --program-trans | --program-tran \
999 | --progr-tra | --program-tr | --program-t)
1000 ac_prev=program_transform_name ;;
1001 -program-transform-name=* | --program-transform-name=* \
1002 | --program-transform-nam=* | --program-transform-na=* \
1003 | --program-transform-n=* | --program-transform-=* \
1004 | --program-transform=* | --program-transfor=* \
1005 | --program-transfo=* | --program-transf=* \
1006 | --program-trans=* | --program-tran=* \
1007 | --progr-tra=* | --program-tr=* | --program-t=*)
1008 program_transform_name=$ac_optarg ;;
1010 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1011 ac_prev=pdfdir ;;
1012 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1013 pdfdir=$ac_optarg ;;
1015 -psdir | --psdir | --psdi | --psd | --ps)
1016 ac_prev=psdir ;;
1017 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1018 psdir=$ac_optarg ;;
1020 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1021 | -silent | --silent | --silen | --sile | --sil)
1022 silent=yes ;;
1024 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1025 ac_prev=sbindir ;;
1026 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1027 | --sbi=* | --sb=*)
1028 sbindir=$ac_optarg ;;
1030 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1031 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1032 | --sharedst | --shareds | --shared | --share | --shar \
1033 | --sha | --sh)
1034 ac_prev=sharedstatedir ;;
1035 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1036 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1037 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1038 | --sha=* | --sh=*)
1039 sharedstatedir=$ac_optarg ;;
1041 -site | --site | --sit)
1042 ac_prev=site ;;
1043 -site=* | --site=* | --sit=*)
1044 site=$ac_optarg ;;
1046 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1047 ac_prev=srcdir ;;
1048 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1049 srcdir=$ac_optarg ;;
1051 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1052 | --syscon | --sysco | --sysc | --sys | --sy)
1053 ac_prev=sysconfdir ;;
1054 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1055 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1056 sysconfdir=$ac_optarg ;;
1058 -target | --target | --targe | --targ | --tar | --ta | --t)
1059 ac_prev=target_alias ;;
1060 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1061 target_alias=$ac_optarg ;;
1063 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1064 verbose=yes ;;
1066 -version | --version | --versio | --versi | --vers | -V)
1067 ac_init_version=: ;;
1069 -with-* | --with-*)
1070 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1071 # Reject names that are not valid shell variable names.
1072 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1073 { echo "$as_me: error: invalid package name: $ac_package" >&2
1074 { (exit 1); exit 1; }; }
1075 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1076 eval with_$ac_package=\$ac_optarg ;;
1078 -without-* | --without-*)
1079 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1080 # Reject names that are not valid shell variable names.
1081 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1082 { echo "$as_me: error: invalid package name: $ac_package" >&2
1083 { (exit 1); exit 1; }; }
1084 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1085 eval with_$ac_package=no ;;
1087 --x)
1088 # Obsolete; use --with-x.
1089 with_x=yes ;;
1091 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1092 | --x-incl | --x-inc | --x-in | --x-i)
1093 ac_prev=x_includes ;;
1094 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1095 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1096 x_includes=$ac_optarg ;;
1098 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1099 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1100 ac_prev=x_libraries ;;
1101 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1102 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1103 x_libraries=$ac_optarg ;;
1105 -*) { echo "$as_me: error: unrecognized option: $ac_option
1106 Try \`$0 --help' for more information." >&2
1107 { (exit 1); exit 1; }; }
1110 *=*)
1111 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1112 # Reject names that are not valid shell variable names.
1113 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1114 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1115 { (exit 1); exit 1; }; }
1116 eval $ac_envvar=\$ac_optarg
1117 export $ac_envvar ;;
1120 # FIXME: should be removed in autoconf 3.0.
1121 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1122 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1123 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1124 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1127 esac
1128 done
1130 if test -n "$ac_prev"; then
1131 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1132 { echo "$as_me: error: missing argument to $ac_option" >&2
1133 { (exit 1); exit 1; }; }
1136 # Be sure to have absolute directory names.
1137 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1138 datadir sysconfdir sharedstatedir localstatedir includedir \
1139 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1140 libdir localedir mandir
1142 eval ac_val=\$$ac_var
1143 case $ac_val in
1144 [\\/$]* | ?:[\\/]* ) continue;;
1145 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1146 esac
1147 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1148 { (exit 1); exit 1; }; }
1149 done
1151 # There might be people who depend on the old broken behavior: `$host'
1152 # used to hold the argument of --host etc.
1153 # FIXME: To remove some day.
1154 build=$build_alias
1155 host=$host_alias
1156 target=$target_alias
1158 # FIXME: To remove some day.
1159 if test "x$host_alias" != x; then
1160 if test "x$build_alias" = x; then
1161 cross_compiling=maybe
1162 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1163 If a cross compiler is detected then cross compile mode will be used." >&2
1164 elif test "x$build_alias" != "x$host_alias"; then
1165 cross_compiling=yes
1169 ac_tool_prefix=
1170 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1172 test "$silent" = yes && exec 6>/dev/null
1175 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1176 ac_ls_di=`ls -di .` &&
1177 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1178 { echo "$as_me: error: Working directory cannot be determined" >&2
1179 { (exit 1); exit 1; }; }
1180 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1181 { echo "$as_me: error: pwd does not report name of working directory" >&2
1182 { (exit 1); exit 1; }; }
1185 # Find the source files, if location was not specified.
1186 if test -z "$srcdir"; then
1187 ac_srcdir_defaulted=yes
1188 # Try the directory containing this script, then the parent directory.
1189 ac_confdir=`$as_dirname -- "$0" ||
1190 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1191 X"$0" : 'X\(//\)[^/]' \| \
1192 X"$0" : 'X\(//\)$' \| \
1193 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1194 echo X"$0" |
1195 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1196 s//\1/
1199 /^X\(\/\/\)[^/].*/{
1200 s//\1/
1203 /^X\(\/\/\)$/{
1204 s//\1/
1207 /^X\(\/\).*/{
1208 s//\1/
1211 s/.*/./; q'`
1212 srcdir=$ac_confdir
1213 if test ! -r "$srcdir/$ac_unique_file"; then
1214 srcdir=..
1216 else
1217 ac_srcdir_defaulted=no
1219 if test ! -r "$srcdir/$ac_unique_file"; then
1220 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1221 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1222 { (exit 1); exit 1; }; }
1224 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1225 ac_abs_confdir=`(
1226 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1227 { (exit 1); exit 1; }; }
1228 pwd)`
1229 # When building in place, set srcdir=.
1230 if test "$ac_abs_confdir" = "$ac_pwd"; then
1231 srcdir=.
1233 # Remove unnecessary trailing slashes from srcdir.
1234 # Double slashes in file names in object file debugging info
1235 # mess up M-x gdb in Emacs.
1236 case $srcdir in
1237 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1238 esac
1239 for ac_var in $ac_precious_vars; do
1240 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1241 eval ac_env_${ac_var}_value=\$${ac_var}
1242 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1243 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1244 done
1247 # Report the --help message.
1249 if test "$ac_init_help" = "long"; then
1250 # Omit some internal or obsolete options to make the list less imposing.
1251 # This message is too long to be a string in the A/UX 3.1 sh.
1252 cat <<_ACEOF
1253 \`configure' configures python 2.7 to adapt to many kinds of systems.
1255 Usage: $0 [OPTION]... [VAR=VALUE]...
1257 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1258 VAR=VALUE. See below for descriptions of some of the useful variables.
1260 Defaults for the options are specified in brackets.
1262 Configuration:
1263 -h, --help display this help and exit
1264 --help=short display options specific to this package
1265 --help=recursive display the short help of all the included packages
1266 -V, --version display version information and exit
1267 -q, --quiet, --silent do not print \`checking...' messages
1268 --cache-file=FILE cache test results in FILE [disabled]
1269 -C, --config-cache alias for \`--cache-file=config.cache'
1270 -n, --no-create do not create output files
1271 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1273 Installation directories:
1274 --prefix=PREFIX install architecture-independent files in PREFIX
1275 [$ac_default_prefix]
1276 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1277 [PREFIX]
1279 By default, \`make install' will install all the files in
1280 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1281 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1282 for instance \`--prefix=\$HOME'.
1284 For better control, use the options below.
1286 Fine tuning of the installation directories:
1287 --bindir=DIR user executables [EPREFIX/bin]
1288 --sbindir=DIR system admin executables [EPREFIX/sbin]
1289 --libexecdir=DIR program executables [EPREFIX/libexec]
1290 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1291 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1292 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1293 --libdir=DIR object code libraries [EPREFIX/lib]
1294 --includedir=DIR C header files [PREFIX/include]
1295 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1296 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1297 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1298 --infodir=DIR info documentation [DATAROOTDIR/info]
1299 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1300 --mandir=DIR man documentation [DATAROOTDIR/man]
1301 --docdir=DIR documentation root [DATAROOTDIR/doc/python]
1302 --htmldir=DIR html documentation [DOCDIR]
1303 --dvidir=DIR dvi documentation [DOCDIR]
1304 --pdfdir=DIR pdf documentation [DOCDIR]
1305 --psdir=DIR ps documentation [DOCDIR]
1306 _ACEOF
1308 cat <<\_ACEOF
1309 _ACEOF
1312 if test -n "$ac_init_help"; then
1313 case $ac_init_help in
1314 short | recursive ) echo "Configuration of python 2.7:";;
1315 esac
1316 cat <<\_ACEOF
1318 Optional Features:
1319 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1320 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1321 --enable-universalsdk[=SDKDIR]
1322 Build against Mac OS X 10.4u SDK (ppc/i386)
1323 --enable-framework[=INSTALLDIR]
1324 Build (MacOSX|Darwin) framework
1325 --enable-shared disable/enable building shared python library
1326 --enable-profiling enable C-level code profiling
1327 --enable-toolbox-glue disable/enable MacOSX glue code for extensions
1328 --enable-ipv6 Enable ipv6 (with ipv4) support
1329 --disable-ipv6 Disable ipv6 support
1330 --enable-big-digits[=BITS]
1331 use big digits for Python longs [BITS=30]
1332 --enable-unicode[=ucs[24]]
1333 Enable Unicode strings (default is yes)
1335 Optional Packages:
1336 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1337 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1338 --with-universal-archs=ARCH
1339 select architectures for universal build ("32-bit",
1340 "64-bit", "3-way", "intel" or "all")
1341 --with-framework-name=FRAMEWORK
1342 specify an alternate name of the framework built
1343 with --enable-framework
1344 --without-gcc never use gcc
1345 --with-cxx-main=<compiler>
1346 compile main() and link python executable with C++
1347 compiler
1348 --with-suffix=.exe set executable suffix
1349 --with-pydebug build with Py_DEBUG defined
1350 --with-libs='lib1 ...' link against additional libs
1351 --with-system-ffi build _ctypes module using an installed ffi library
1352 --with-dbmliborder=db1:db2:...
1353 order to check db backends for dbm. Valid value is a
1354 colon separated string with the backend names
1355 `ndbm', `gdbm' and `bdb'.
1356 --with-signal-module disable/enable signal module
1357 --with-dec-threads use DEC Alpha/OSF1 thread-safe libraries
1358 --with(out)-threads[=DIRECTORY]
1359 disable/enable thread support
1360 --with(out)-thread[=DIRECTORY]
1361 deprecated; use --with(out)-threads
1362 --with-pth use GNU pth threading libraries
1363 --with(out)-doc-strings disable/enable documentation strings
1364 --with(out)-tsc enable/disable timestamp counter profile
1365 --with(out)-pymalloc disable/enable specialized mallocs
1366 --with-valgrind Enable Valgrind support
1367 --with-wctype-functions use wctype.h functions
1368 --with-fpectl enable SIGFPE catching
1369 --with-libm=STRING math library
1370 --with-libc=STRING C library
1372 Some influential environment variables:
1373 CC C compiler command
1374 CFLAGS C compiler flags
1375 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1376 nonstandard directory <lib dir>
1377 LIBS libraries to pass to the linker, e.g. -l<library>
1378 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1379 you have headers in a nonstandard directory <include dir>
1380 CPP C preprocessor
1382 Use these variables to override the choices made by `configure' or to help
1383 it to find libraries and programs with nonstandard names/locations.
1385 Report bugs to <http://bugs.python.org/>.
1386 _ACEOF
1387 ac_status=$?
1390 if test "$ac_init_help" = "recursive"; then
1391 # If there are subdirs, report their specific --help.
1392 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1393 test -d "$ac_dir" || continue
1394 ac_builddir=.
1396 case "$ac_dir" in
1397 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1399 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1400 # A ".." for each directory in $ac_dir_suffix.
1401 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1402 case $ac_top_builddir_sub in
1403 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1404 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1405 esac ;;
1406 esac
1407 ac_abs_top_builddir=$ac_pwd
1408 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1409 # for backward compatibility:
1410 ac_top_builddir=$ac_top_build_prefix
1412 case $srcdir in
1413 .) # We are building in place.
1414 ac_srcdir=.
1415 ac_top_srcdir=$ac_top_builddir_sub
1416 ac_abs_top_srcdir=$ac_pwd ;;
1417 [\\/]* | ?:[\\/]* ) # Absolute name.
1418 ac_srcdir=$srcdir$ac_dir_suffix;
1419 ac_top_srcdir=$srcdir
1420 ac_abs_top_srcdir=$srcdir ;;
1421 *) # Relative name.
1422 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1423 ac_top_srcdir=$ac_top_build_prefix$srcdir
1424 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1425 esac
1426 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1428 cd "$ac_dir" || { ac_status=$?; continue; }
1429 # Check for guested configure.
1430 if test -f "$ac_srcdir/configure.gnu"; then
1431 echo &&
1432 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1433 elif test -f "$ac_srcdir/configure"; then
1434 echo &&
1435 $SHELL "$ac_srcdir/configure" --help=recursive
1436 else
1437 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1438 fi || ac_status=$?
1439 cd "$ac_pwd" || { ac_status=$?; break; }
1440 done
1443 test -n "$ac_init_help" && exit $ac_status
1444 if $ac_init_version; then
1445 cat <<\_ACEOF
1446 python configure 2.7
1447 generated by GNU Autoconf 2.61
1449 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1450 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1451 This configure script is free software; the Free Software Foundation
1452 gives unlimited permission to copy, distribute and modify it.
1453 _ACEOF
1454 exit
1456 cat >config.log <<_ACEOF
1457 This file contains any messages produced by compilers while
1458 running configure, to aid debugging if configure makes a mistake.
1460 It was created by python $as_me 2.7, which was
1461 generated by GNU Autoconf 2.61. Invocation command line was
1463 $ $0 $@
1465 _ACEOF
1466 exec 5>>config.log
1468 cat <<_ASUNAME
1469 ## --------- ##
1470 ## Platform. ##
1471 ## --------- ##
1473 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1474 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1475 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1476 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1477 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1479 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1480 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1482 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1483 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1484 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1485 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1486 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1487 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1488 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1490 _ASUNAME
1492 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1493 for as_dir in $PATH
1495 IFS=$as_save_IFS
1496 test -z "$as_dir" && as_dir=.
1497 echo "PATH: $as_dir"
1498 done
1499 IFS=$as_save_IFS
1501 } >&5
1503 cat >&5 <<_ACEOF
1506 ## ----------- ##
1507 ## Core tests. ##
1508 ## ----------- ##
1510 _ACEOF
1513 # Keep a trace of the command line.
1514 # Strip out --no-create and --no-recursion so they do not pile up.
1515 # Strip out --silent because we don't want to record it for future runs.
1516 # Also quote any args containing shell meta-characters.
1517 # Make two passes to allow for proper duplicate-argument suppression.
1518 ac_configure_args=
1519 ac_configure_args0=
1520 ac_configure_args1=
1521 ac_must_keep_next=false
1522 for ac_pass in 1 2
1524 for ac_arg
1526 case $ac_arg in
1527 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1528 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1529 | -silent | --silent | --silen | --sile | --sil)
1530 continue ;;
1531 *\'*)
1532 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1533 esac
1534 case $ac_pass in
1535 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1537 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1538 if test $ac_must_keep_next = true; then
1539 ac_must_keep_next=false # Got value, back to normal.
1540 else
1541 case $ac_arg in
1542 *=* | --config-cache | -C | -disable-* | --disable-* \
1543 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1544 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1545 | -with-* | --with-* | -without-* | --without-* | --x)
1546 case "$ac_configure_args0 " in
1547 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1548 esac
1550 -* ) ac_must_keep_next=true ;;
1551 esac
1553 ac_configure_args="$ac_configure_args '$ac_arg'"
1555 esac
1556 done
1557 done
1558 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1559 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1561 # When interrupted or exit'd, cleanup temporary files, and complete
1562 # config.log. We remove comments because anyway the quotes in there
1563 # would cause problems or look ugly.
1564 # WARNING: Use '\'' to represent an apostrophe within the trap.
1565 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1566 trap 'exit_status=$?
1567 # Save into config.log some information that might help in debugging.
1569 echo
1571 cat <<\_ASBOX
1572 ## ---------------- ##
1573 ## Cache variables. ##
1574 ## ---------------- ##
1575 _ASBOX
1576 echo
1577 # The following way of writing the cache mishandles newlines in values,
1579 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1580 eval ac_val=\$$ac_var
1581 case $ac_val in #(
1582 *${as_nl}*)
1583 case $ac_var in #(
1584 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1585 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1586 esac
1587 case $ac_var in #(
1588 _ | IFS | as_nl) ;; #(
1589 *) $as_unset $ac_var ;;
1590 esac ;;
1591 esac
1592 done
1593 (set) 2>&1 |
1594 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1595 *${as_nl}ac_space=\ *)
1596 sed -n \
1597 "s/'\''/'\''\\\\'\'''\''/g;
1598 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1599 ;; #(
1601 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1603 esac |
1604 sort
1606 echo
1608 cat <<\_ASBOX
1609 ## ----------------- ##
1610 ## Output variables. ##
1611 ## ----------------- ##
1612 _ASBOX
1613 echo
1614 for ac_var in $ac_subst_vars
1616 eval ac_val=\$$ac_var
1617 case $ac_val in
1618 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1619 esac
1620 echo "$ac_var='\''$ac_val'\''"
1621 done | sort
1622 echo
1624 if test -n "$ac_subst_files"; then
1625 cat <<\_ASBOX
1626 ## ------------------- ##
1627 ## File substitutions. ##
1628 ## ------------------- ##
1629 _ASBOX
1630 echo
1631 for ac_var in $ac_subst_files
1633 eval ac_val=\$$ac_var
1634 case $ac_val in
1635 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1636 esac
1637 echo "$ac_var='\''$ac_val'\''"
1638 done | sort
1639 echo
1642 if test -s confdefs.h; then
1643 cat <<\_ASBOX
1644 ## ----------- ##
1645 ## confdefs.h. ##
1646 ## ----------- ##
1647 _ASBOX
1648 echo
1649 cat confdefs.h
1650 echo
1652 test "$ac_signal" != 0 &&
1653 echo "$as_me: caught signal $ac_signal"
1654 echo "$as_me: exit $exit_status"
1655 } >&5
1656 rm -f core *.core core.conftest.* &&
1657 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1658 exit $exit_status
1660 for ac_signal in 1 2 13 15; do
1661 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1662 done
1663 ac_signal=0
1665 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1666 rm -f -r conftest* confdefs.h
1668 # Predefined preprocessor variables.
1670 cat >>confdefs.h <<_ACEOF
1671 #define PACKAGE_NAME "$PACKAGE_NAME"
1672 _ACEOF
1675 cat >>confdefs.h <<_ACEOF
1676 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1677 _ACEOF
1680 cat >>confdefs.h <<_ACEOF
1681 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1682 _ACEOF
1685 cat >>confdefs.h <<_ACEOF
1686 #define PACKAGE_STRING "$PACKAGE_STRING"
1687 _ACEOF
1690 cat >>confdefs.h <<_ACEOF
1691 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1692 _ACEOF
1695 # Let the site file select an alternate cache file if it wants to.
1696 # Prefer explicitly selected file to automatically selected ones.
1697 if test -n "$CONFIG_SITE"; then
1698 set x "$CONFIG_SITE"
1699 elif test "x$prefix" != xNONE; then
1700 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1701 else
1702 set x "$ac_default_prefix/share/config.site" \
1703 "$ac_default_prefix/etc/config.site"
1705 shift
1706 for ac_site_file
1708 if test -r "$ac_site_file"; then
1709 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1710 echo "$as_me: loading site script $ac_site_file" >&6;}
1711 sed 's/^/| /' "$ac_site_file" >&5
1712 . "$ac_site_file"
1714 done
1716 if test -r "$cache_file"; then
1717 # Some versions of bash will fail to source /dev/null (special
1718 # files actually), so we avoid doing that.
1719 if test -f "$cache_file"; then
1720 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1721 echo "$as_me: loading cache $cache_file" >&6;}
1722 case $cache_file in
1723 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1724 *) . "./$cache_file";;
1725 esac
1727 else
1728 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1729 echo "$as_me: creating cache $cache_file" >&6;}
1730 >$cache_file
1733 # Check that the precious variables saved in the cache have kept the same
1734 # value.
1735 ac_cache_corrupted=false
1736 for ac_var in $ac_precious_vars; do
1737 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1738 eval ac_new_set=\$ac_env_${ac_var}_set
1739 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1740 eval ac_new_val=\$ac_env_${ac_var}_value
1741 case $ac_old_set,$ac_new_set in
1742 set,)
1743 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1744 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1745 ac_cache_corrupted=: ;;
1746 ,set)
1747 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1748 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1749 ac_cache_corrupted=: ;;
1750 ,);;
1752 if test "x$ac_old_val" != "x$ac_new_val"; then
1753 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1754 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1755 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1756 echo "$as_me: former value: $ac_old_val" >&2;}
1757 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1758 echo "$as_me: current value: $ac_new_val" >&2;}
1759 ac_cache_corrupted=:
1760 fi;;
1761 esac
1762 # Pass precious variables to config.status.
1763 if test "$ac_new_set" = set; then
1764 case $ac_new_val in
1765 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1766 *) ac_arg=$ac_var=$ac_new_val ;;
1767 esac
1768 case " $ac_configure_args " in
1769 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1770 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1771 esac
1773 done
1774 if $ac_cache_corrupted; then
1775 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1776 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1777 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1778 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1779 { (exit 1); exit 1; }; }
1806 ac_ext=c
1807 ac_cpp='$CPP $CPPFLAGS'
1808 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1809 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1810 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1814 ac_config_headers="$ac_config_headers pyconfig.h"
1818 if test "$prefix" != "/"; then
1819 prefix=`echo "$prefix" | sed -e 's/\/$//g'`
1827 # We don't use PACKAGE_ variables, and they cause conflicts
1828 # with other autoconf-based packages that include Python.h
1829 grep -v 'define PACKAGE_' <confdefs.h >confdefs.h.new
1830 rm confdefs.h
1831 mv confdefs.h.new confdefs.h
1834 VERSION=2.7
1837 SOVERSION=1.0
1839 # The later defininition of _XOPEN_SOURCE disables certain features
1840 # on Linux, so we need _GNU_SOURCE to re-enable them (makedev, tm_zone).
1842 cat >>confdefs.h <<\_ACEOF
1843 #define _GNU_SOURCE 1
1844 _ACEOF
1847 # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables
1848 # certain features on NetBSD, so we need _NETBSD_SOURCE to re-enable
1849 # them.
1851 cat >>confdefs.h <<\_ACEOF
1852 #define _NETBSD_SOURCE 1
1853 _ACEOF
1856 # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables
1857 # certain features on FreeBSD, so we need __BSD_VISIBLE to re-enable
1858 # them.
1860 cat >>confdefs.h <<\_ACEOF
1861 #define __BSD_VISIBLE 1
1862 _ACEOF
1865 # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables
1866 # u_int on Irix 5.3. Defining _BSD_TYPES brings it back.
1868 cat >>confdefs.h <<\_ACEOF
1869 #define _BSD_TYPES 1
1870 _ACEOF
1873 # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables
1874 # certain features on Mac OS X, so we need _DARWIN_C_SOURCE to re-enable
1875 # them.
1877 cat >>confdefs.h <<\_ACEOF
1878 #define _DARWIN_C_SOURCE 1
1879 _ACEOF
1883 define_xopen_source=yes
1885 # Arguments passed to configure.
1887 CONFIG_ARGS="$ac_configure_args"
1889 # Check whether --enable-universalsdk was given.
1890 if test "${enable_universalsdk+set}" = set; then
1891 enableval=$enable_universalsdk;
1892 case $enableval in
1893 yes)
1894 enableval=/Developer/SDKs/MacOSX10.4u.sdk
1896 esac
1897 case $enableval in
1899 UNIVERSALSDK=
1900 enable_universalsdk=
1903 UNIVERSALSDK=$enableval
1905 esac
1907 else
1909 UNIVERSALSDK=
1910 enable_universalsdk=
1918 UNIVERSAL_ARCHS="32-bit"
1920 { echo "$as_me:$LINENO: checking for --with-universal-archs" >&5
1921 echo $ECHO_N "checking for --with-universal-archs... $ECHO_C" >&6; }
1923 # Check whether --with-universal-archs was given.
1924 if test "${with_universal_archs+set}" = set; then
1925 withval=$with_universal_archs;
1926 { echo "$as_me:$LINENO: result: $withval" >&5
1927 echo "${ECHO_T}$withval" >&6; }
1928 UNIVERSAL_ARCHS="$withval"
1929 if test "${enable_universalsdk}" ; then
1931 else
1932 { { echo "$as_me:$LINENO: error: --with-universal-archs without --enable-universalsdk. See Mac/README" >&5
1933 echo "$as_me: error: --with-universal-archs without --enable-universalsdk. See Mac/README" >&2;}
1934 { (exit 1); exit 1; }; }
1937 else
1939 { echo "$as_me:$LINENO: result: 32-bit" >&5
1940 echo "${ECHO_T}32-bit" >&6; }
1948 # Check whether --with-framework-name was given.
1949 if test "${with_framework_name+set}" = set; then
1950 withval=$with_framework_name;
1951 if test "${enable_framework}"; then
1953 else
1954 { { echo "$as_me:$LINENO: error: --with-framework-name without --enable-framework. See Mac/README" >&5
1955 echo "$as_me: error: --with-framework-name without --enable-framework. See Mac/README" >&2;}
1956 { (exit 1); exit 1; }; }
1958 PYTHONFRAMEWORK=${withval}
1959 PYTHONFRAMEWORKDIR=${withval}.framework
1960 PYTHONFRAMEWORKIDENTIFIER=org.python.`echo $withval | tr 'A-Z' 'a-z'`
1962 else
1964 PYTHONFRAMEWORK=Python
1965 PYTHONFRAMEWORKDIR=Python.framework
1966 PYTHONFRAMEWORKIDENTIFIER=org.python.python
1970 # Check whether --enable-framework was given.
1971 if test "${enable_framework+set}" = set; then
1972 enableval=$enable_framework;
1973 case $enableval in
1974 yes)
1975 enableval=/Library/Frameworks
1976 esac
1977 case $enableval in
1979 PYTHONFRAMEWORK=
1980 PYTHONFRAMEWORKDIR=no-framework
1981 PYTHONFRAMEWORKPREFIX=
1982 PYTHONFRAMEWORKINSTALLDIR=
1983 FRAMEWORKINSTALLFIRST=
1984 FRAMEWORKINSTALLLAST=
1985 FRAMEWORKALTINSTALLFIRST=
1986 FRAMEWORKALTINSTALLLAST=
1987 if test "x${prefix}" = "xNONE"; then
1988 FRAMEWORKUNIXTOOLSPREFIX="${ac_default_prefix}"
1989 else
1990 FRAMEWORKUNIXTOOLSPREFIX="${prefix}"
1992 enable_framework=
1995 PYTHONFRAMEWORKPREFIX=$enableval
1996 PYTHONFRAMEWORKINSTALLDIR=$PYTHONFRAMEWORKPREFIX/$PYTHONFRAMEWORKDIR
1997 FRAMEWORKINSTALLFIRST="frameworkinstallstructure"
1998 FRAMEWORKALTINSTALLFIRST="frameworkinstallstructure bininstall maninstall"
1999 FRAMEWORKINSTALLLAST="frameworkinstallmaclib frameworkinstallapps frameworkinstallunixtools"
2000 FRAMEWORKALTINSTALLLAST="frameworkinstallmaclib frameworkinstallapps frameworkaltinstallunixtools"
2002 if test "x${prefix}" = "xNONE" ; then
2003 FRAMEWORKUNIXTOOLSPREFIX="${ac_default_prefix}"
2004 else
2005 FRAMEWORKUNIXTOOLSPREFIX="${prefix}"
2007 prefix=$PYTHONFRAMEWORKINSTALLDIR/Versions/$VERSION
2009 # Add files for Mac specific code to the list of output
2010 # files:
2011 ac_config_files="$ac_config_files Mac/Makefile"
2013 ac_config_files="$ac_config_files Mac/PythonLauncher/Makefile"
2015 ac_config_files="$ac_config_files Mac/IDLE/Makefile"
2017 ac_config_files="$ac_config_files Mac/Resources/framework/Info.plist"
2019 ac_config_files="$ac_config_files Mac/Resources/app/Info.plist"
2021 esac
2023 else
2025 PYTHONFRAMEWORK=
2026 PYTHONFRAMEWORKDIR=no-framework
2027 PYTHONFRAMEWORKPREFIX=
2028 PYTHONFRAMEWORKINSTALLDIR=
2029 FRAMEWORKINSTALLFIRST=
2030 FRAMEWORKINSTALLLAST=
2031 FRAMEWORKALTINSTALLFIRST=
2032 FRAMEWORKALTINSTALLLAST=
2033 if test "x${prefix}" = "xNONE" ; then
2034 FRAMEWORKUNIXTOOLSPREFIX="${ac_default_prefix}"
2035 else
2036 FRAMEWORKUNIXTOOLSPREFIX="${prefix}"
2038 enable_framework=
2054 ##AC_ARG_WITH(dyld,
2055 ## AC_HELP_STRING(--with-dyld,
2056 ## Use (OpenStep|Rhapsody) dynamic linker))
2058 # Set name for machine-dependent library files
2060 { echo "$as_me:$LINENO: checking MACHDEP" >&5
2061 echo $ECHO_N "checking MACHDEP... $ECHO_C" >&6; }
2062 if test -z "$MACHDEP"
2063 then
2064 ac_sys_system=`uname -s`
2065 if test "$ac_sys_system" = "AIX" \
2066 -o "$ac_sys_system" = "UnixWare" -o "$ac_sys_system" = "OpenUNIX"; then
2067 ac_sys_release=`uname -v`
2068 else
2069 ac_sys_release=`uname -r`
2071 ac_md_system=`echo $ac_sys_system |
2072 tr -d '/ ' | tr '[A-Z]' '[a-z]'`
2073 ac_md_release=`echo $ac_sys_release |
2074 tr -d '/ ' | sed 's/^[A-Z]\.//' | sed 's/\..*//'`
2075 MACHDEP="$ac_md_system$ac_md_release"
2077 case $MACHDEP in
2078 cygwin*) MACHDEP="cygwin";;
2079 darwin*) MACHDEP="darwin";;
2080 atheos*) MACHDEP="atheos";;
2081 irix646) MACHDEP="irix6";;
2082 '') MACHDEP="unknown";;
2083 esac
2086 # Some systems cannot stand _XOPEN_SOURCE being defined at all; they
2087 # disable features if it is defined, without any means to access these
2088 # features as extensions. For these systems, we skip the definition of
2089 # _XOPEN_SOURCE. Before adding a system to the list to gain access to
2090 # some feature, make sure there is no alternative way to access this
2091 # feature. Also, when using wildcards, make sure you have verified the
2092 # need for not defining _XOPEN_SOURCE on all systems matching the
2093 # wildcard, and that the wildcard does not include future systems
2094 # (which may remove their limitations).
2095 case $ac_sys_system/$ac_sys_release in
2096 # On OpenBSD, select(2) is not available if _XOPEN_SOURCE is defined,
2097 # even though select is a POSIX function. Reported by J. Ribbens.
2098 # Reconfirmed for OpenBSD 3.3 by Zachary Hamm, for 3.4 by Jason Ish.
2099 OpenBSD/2.* | OpenBSD/3.[0123456789] | OpenBSD/4.[0123])
2100 define_xopen_source=no
2101 # OpenBSD undoes our definition of __BSD_VISIBLE if _XOPEN_SOURCE is
2102 # also defined. This can be overridden by defining _BSD_SOURCE
2103 # As this has a different meaning on Linux, only define it on OpenBSD
2105 cat >>confdefs.h <<\_ACEOF
2106 #define _BSD_SOURCE 1
2107 _ACEOF
2110 # Defining _XOPEN_SOURCE on NetBSD version prior to the introduction of
2111 # _NETBSD_SOURCE disables certain features (eg. setgroups). Reported by
2112 # Marc Recht
2113 NetBSD/1.5 | NetBSD/1.5.* | NetBSD/1.6 | NetBSD/1.6.* | NetBSD/1.6[A-S])
2114 define_xopen_source=no;;
2115 # On Solaris 2.6, sys/wait.h is inconsistent in the usage
2116 # of union __?sigval. Reported by Stuart Bishop.
2117 SunOS/5.6)
2118 define_xopen_source=no;;
2119 # On UnixWare 7, u_long is never defined with _XOPEN_SOURCE,
2120 # but used in /usr/include/netinet/tcp.h. Reported by Tim Rice.
2121 # Reconfirmed for 7.1.4 by Martin v. Loewis.
2122 OpenUNIX/8.0.0| UnixWare/7.1.[0-4])
2123 define_xopen_source=no;;
2124 # On OpenServer 5, u_short is never defined with _XOPEN_SOURCE,
2125 # but used in struct sockaddr.sa_family. Reported by Tim Rice.
2126 SCO_SV/3.2)
2127 define_xopen_source=no;;
2128 # On FreeBSD 4, the math functions C89 does not cover are never defined
2129 # with _XOPEN_SOURCE and __BSD_VISIBLE does not re-enable them.
2130 FreeBSD/4.*)
2131 define_xopen_source=no;;
2132 # On MacOS X 10.2, a bug in ncurses.h means that it craps out if
2133 # _XOPEN_EXTENDED_SOURCE is defined. Apparently, this is fixed in 10.3, which
2134 # identifies itself as Darwin/7.*
2135 # On Mac OS X 10.4, defining _POSIX_C_SOURCE or _XOPEN_SOURCE
2136 # disables platform specific features beyond repair.
2137 # On Mac OS X 10.3, defining _POSIX_C_SOURCE or _XOPEN_SOURCE
2138 # has no effect, don't bother defining them
2139 Darwin/[6789].*)
2140 define_xopen_source=no;;
2141 # On AIX 4 and 5.1, mbstate_t is defined only when _XOPEN_SOURCE == 500 but
2142 # used in wcsnrtombs() and mbsnrtowcs() even if _XOPEN_SOURCE is not defined
2143 # or has another value. By not (re)defining it, the defaults come in place.
2144 AIX/4)
2145 define_xopen_source=no;;
2146 AIX/5)
2147 if test `uname -r` -eq 1; then
2148 define_xopen_source=no
2151 # On QNX 6.3.2, defining _XOPEN_SOURCE prevents netdb.h from
2152 # defining NI_NUMERICHOST.
2153 QNX/6.3.2)
2154 define_xopen_source=no
2157 esac
2159 if test $define_xopen_source = yes
2160 then
2161 # On Solaris w/ g++ it appears that _XOPEN_SOURCE has to be
2162 # defined precisely as g++ defines it
2163 # Furthermore, on Solaris 10, XPG6 requires the use of a C99
2164 # compiler
2165 case $ac_sys_system/$ac_sys_release in
2166 SunOS/5.8|SunOS/5.9|SunOS/5.10)
2168 cat >>confdefs.h <<\_ACEOF
2169 #define _XOPEN_SOURCE 500
2170 _ACEOF
2175 cat >>confdefs.h <<\_ACEOF
2176 #define _XOPEN_SOURCE 600
2177 _ACEOF
2180 esac
2182 # On Tru64 Unix 4.0F, defining _XOPEN_SOURCE also requires
2183 # definition of _XOPEN_SOURCE_EXTENDED and _POSIX_C_SOURCE, or else
2184 # several APIs are not declared. Since this is also needed in some
2185 # cases for HP-UX, we define it globally.
2186 # except for Solaris 10, where it must not be defined,
2187 # as it implies XPG4.2
2188 case $ac_sys_system/$ac_sys_release in
2189 SunOS/5.10)
2193 cat >>confdefs.h <<\_ACEOF
2194 #define _XOPEN_SOURCE_EXTENDED 1
2195 _ACEOF
2198 esac
2201 cat >>confdefs.h <<\_ACEOF
2202 #define _POSIX_C_SOURCE 200112L
2203 _ACEOF
2209 # SGI compilers allow the specification of the both the ABI and the
2210 # ISA on the command line. Depending on the values of these switches,
2211 # different and often incompatable code will be generated.
2213 # The SGI_ABI variable can be used to modify the CC and LDFLAGS and
2214 # thus supply support for various ABI/ISA combinations. The MACHDEP
2215 # variable is also adjusted.
2218 if test ! -z "$SGI_ABI"
2219 then
2220 CC="cc $SGI_ABI"
2221 LDFLAGS="$SGI_ABI $LDFLAGS"
2222 MACHDEP=`echo "${MACHDEP}${SGI_ABI}" | sed 's/ *//g'`
2224 { echo "$as_me:$LINENO: result: $MACHDEP" >&5
2225 echo "${ECHO_T}$MACHDEP" >&6; }
2227 # And add extra plat-mac for darwin
2230 { echo "$as_me:$LINENO: checking EXTRAPLATDIR" >&5
2231 echo $ECHO_N "checking EXTRAPLATDIR... $ECHO_C" >&6; }
2232 if test -z "$EXTRAPLATDIR"
2233 then
2234 case $MACHDEP in
2235 darwin)
2236 EXTRAPLATDIR="\$(PLATMACDIRS)"
2237 EXTRAMACHDEPPATH="\$(PLATMACPATH)"
2240 EXTRAPLATDIR=""
2241 EXTRAMACHDEPPATH=""
2243 esac
2245 { echo "$as_me:$LINENO: result: $EXTRAPLATDIR" >&5
2246 echo "${ECHO_T}$EXTRAPLATDIR" >&6; }
2248 # Record the configure-time value of MACOSX_DEPLOYMENT_TARGET,
2249 # it may influence the way we can build extensions, so distutils
2250 # needs to check it
2253 CONFIGURE_MACOSX_DEPLOYMENT_TARGET=
2254 EXPORT_MACOSX_DEPLOYMENT_TARGET='#'
2256 { echo "$as_me:$LINENO: checking machine type as reported by uname -m" >&5
2257 echo $ECHO_N "checking machine type as reported by uname -m... $ECHO_C" >&6; }
2258 ac_sys_machine=`uname -m`
2259 { echo "$as_me:$LINENO: result: $ac_sys_machine" >&5
2260 echo "${ECHO_T}$ac_sys_machine" >&6; }
2262 # checks for alternative programs
2264 # compiler flags are generated in two sets, BASECFLAGS and OPT. OPT is just
2265 # for debug/optimization stuff. BASECFLAGS is for flags that are required
2266 # just to get things to compile and link. Users are free to override OPT
2267 # when running configure or make. The build should not break if they do.
2268 # BASECFLAGS should generally not be messed with, however.
2270 # XXX shouldn't some/most/all of this code be merged with the stuff later
2271 # on that fiddles with OPT and BASECFLAGS?
2272 { echo "$as_me:$LINENO: checking for --without-gcc" >&5
2273 echo $ECHO_N "checking for --without-gcc... $ECHO_C" >&6; }
2275 # Check whether --with-gcc was given.
2276 if test "${with_gcc+set}" = set; then
2277 withval=$with_gcc;
2278 case $withval in
2279 no) CC=${CC:-cc}
2280 without_gcc=yes;;
2281 yes) CC=gcc
2282 without_gcc=no;;
2283 *) CC=$withval
2284 without_gcc=$withval;;
2285 esac
2286 else
2288 case $ac_sys_system in
2289 AIX*) CC=cc_r
2290 without_gcc=;;
2291 BeOS*)
2292 case $BE_HOST_CPU in
2293 ppc)
2294 CC=mwcc
2295 without_gcc=yes
2296 BASECFLAGS="$BASECFLAGS -export pragma"
2297 OPT="$OPT -O"
2298 LDFLAGS="$LDFLAGS -nodup"
2300 x86)
2301 CC=gcc
2302 without_gcc=no
2303 OPT="$OPT -O"
2306 { { echo "$as_me:$LINENO: error: Unknown BeOS platform \"$BE_HOST_CPU\"" >&5
2307 echo "$as_me: error: Unknown BeOS platform \"$BE_HOST_CPU\"" >&2;}
2308 { (exit 1); exit 1; }; }
2310 esac
2311 AR="\$(srcdir)/Modules/ar_beos"
2312 RANLIB=:
2314 *) without_gcc=no;;
2315 esac
2318 { echo "$as_me:$LINENO: result: $without_gcc" >&5
2319 echo "${ECHO_T}$without_gcc" >&6; }
2321 # If the user switches compilers, we can't believe the cache
2322 if test ! -z "$ac_cv_prog_CC" -a ! -z "$CC" -a "$CC" != "$ac_cv_prog_CC"
2323 then
2324 { { echo "$as_me:$LINENO: error: cached CC is different -- throw away $cache_file
2325 (it is also a good idea to do 'make clean' before compiling)" >&5
2326 echo "$as_me: error: cached CC is different -- throw away $cache_file
2327 (it is also a good idea to do 'make clean' before compiling)" >&2;}
2328 { (exit 1); exit 1; }; }
2331 ac_ext=c
2332 ac_cpp='$CPP $CPPFLAGS'
2333 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2334 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2335 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2336 if test -n "$ac_tool_prefix"; then
2337 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2338 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2339 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2340 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2341 if test "${ac_cv_prog_CC+set}" = set; then
2342 echo $ECHO_N "(cached) $ECHO_C" >&6
2343 else
2344 if test -n "$CC"; then
2345 ac_cv_prog_CC="$CC" # Let the user override the test.
2346 else
2347 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2348 for as_dir in $PATH
2350 IFS=$as_save_IFS
2351 test -z "$as_dir" && as_dir=.
2352 for ac_exec_ext in '' $ac_executable_extensions; do
2353 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2354 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2355 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2356 break 2
2358 done
2359 done
2360 IFS=$as_save_IFS
2364 CC=$ac_cv_prog_CC
2365 if test -n "$CC"; then
2366 { echo "$as_me:$LINENO: result: $CC" >&5
2367 echo "${ECHO_T}$CC" >&6; }
2368 else
2369 { echo "$as_me:$LINENO: result: no" >&5
2370 echo "${ECHO_T}no" >&6; }
2375 if test -z "$ac_cv_prog_CC"; then
2376 ac_ct_CC=$CC
2377 # Extract the first word of "gcc", so it can be a program name with args.
2378 set dummy gcc; ac_word=$2
2379 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2380 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2381 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2382 echo $ECHO_N "(cached) $ECHO_C" >&6
2383 else
2384 if test -n "$ac_ct_CC"; then
2385 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2386 else
2387 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2388 for as_dir in $PATH
2390 IFS=$as_save_IFS
2391 test -z "$as_dir" && as_dir=.
2392 for ac_exec_ext in '' $ac_executable_extensions; do
2393 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2394 ac_cv_prog_ac_ct_CC="gcc"
2395 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2396 break 2
2398 done
2399 done
2400 IFS=$as_save_IFS
2404 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2405 if test -n "$ac_ct_CC"; then
2406 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2407 echo "${ECHO_T}$ac_ct_CC" >&6; }
2408 else
2409 { echo "$as_me:$LINENO: result: no" >&5
2410 echo "${ECHO_T}no" >&6; }
2413 if test "x$ac_ct_CC" = x; then
2414 CC=""
2415 else
2416 case $cross_compiling:$ac_tool_warned in
2417 yes:)
2418 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2419 whose name does not start with the host triplet. If you think this
2420 configuration is useful to you, please write to autoconf@gnu.org." >&5
2421 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2422 whose name does not start with the host triplet. If you think this
2423 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2424 ac_tool_warned=yes ;;
2425 esac
2426 CC=$ac_ct_CC
2428 else
2429 CC="$ac_cv_prog_CC"
2432 if test -z "$CC"; then
2433 if test -n "$ac_tool_prefix"; then
2434 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2435 set dummy ${ac_tool_prefix}cc; ac_word=$2
2436 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2437 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2438 if test "${ac_cv_prog_CC+set}" = set; then
2439 echo $ECHO_N "(cached) $ECHO_C" >&6
2440 else
2441 if test -n "$CC"; then
2442 ac_cv_prog_CC="$CC" # Let the user override the test.
2443 else
2444 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2445 for as_dir in $PATH
2447 IFS=$as_save_IFS
2448 test -z "$as_dir" && as_dir=.
2449 for ac_exec_ext in '' $ac_executable_extensions; do
2450 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2451 ac_cv_prog_CC="${ac_tool_prefix}cc"
2452 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2453 break 2
2455 done
2456 done
2457 IFS=$as_save_IFS
2461 CC=$ac_cv_prog_CC
2462 if test -n "$CC"; then
2463 { echo "$as_me:$LINENO: result: $CC" >&5
2464 echo "${ECHO_T}$CC" >&6; }
2465 else
2466 { echo "$as_me:$LINENO: result: no" >&5
2467 echo "${ECHO_T}no" >&6; }
2473 if test -z "$CC"; then
2474 # Extract the first word of "cc", so it can be a program name with args.
2475 set dummy cc; ac_word=$2
2476 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2477 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2478 if test "${ac_cv_prog_CC+set}" = set; then
2479 echo $ECHO_N "(cached) $ECHO_C" >&6
2480 else
2481 if test -n "$CC"; then
2482 ac_cv_prog_CC="$CC" # Let the user override the test.
2483 else
2484 ac_prog_rejected=no
2485 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2486 for as_dir in $PATH
2488 IFS=$as_save_IFS
2489 test -z "$as_dir" && as_dir=.
2490 for ac_exec_ext in '' $ac_executable_extensions; do
2491 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2492 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2493 ac_prog_rejected=yes
2494 continue
2496 ac_cv_prog_CC="cc"
2497 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2498 break 2
2500 done
2501 done
2502 IFS=$as_save_IFS
2504 if test $ac_prog_rejected = yes; then
2505 # We found a bogon in the path, so make sure we never use it.
2506 set dummy $ac_cv_prog_CC
2507 shift
2508 if test $# != 0; then
2509 # We chose a different compiler from the bogus one.
2510 # However, it has the same basename, so the bogon will be chosen
2511 # first if we set CC to just the basename; use the full file name.
2512 shift
2513 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2518 CC=$ac_cv_prog_CC
2519 if test -n "$CC"; then
2520 { echo "$as_me:$LINENO: result: $CC" >&5
2521 echo "${ECHO_T}$CC" >&6; }
2522 else
2523 { echo "$as_me:$LINENO: result: no" >&5
2524 echo "${ECHO_T}no" >&6; }
2529 if test -z "$CC"; then
2530 if test -n "$ac_tool_prefix"; then
2531 for ac_prog in cl.exe
2533 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2534 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2535 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2536 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2537 if test "${ac_cv_prog_CC+set}" = set; then
2538 echo $ECHO_N "(cached) $ECHO_C" >&6
2539 else
2540 if test -n "$CC"; then
2541 ac_cv_prog_CC="$CC" # Let the user override the test.
2542 else
2543 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2544 for as_dir in $PATH
2546 IFS=$as_save_IFS
2547 test -z "$as_dir" && as_dir=.
2548 for ac_exec_ext in '' $ac_executable_extensions; do
2549 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2550 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2551 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2552 break 2
2554 done
2555 done
2556 IFS=$as_save_IFS
2560 CC=$ac_cv_prog_CC
2561 if test -n "$CC"; then
2562 { echo "$as_me:$LINENO: result: $CC" >&5
2563 echo "${ECHO_T}$CC" >&6; }
2564 else
2565 { echo "$as_me:$LINENO: result: no" >&5
2566 echo "${ECHO_T}no" >&6; }
2570 test -n "$CC" && break
2571 done
2573 if test -z "$CC"; then
2574 ac_ct_CC=$CC
2575 for ac_prog in cl.exe
2577 # Extract the first word of "$ac_prog", so it can be a program name with args.
2578 set dummy $ac_prog; ac_word=$2
2579 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2580 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2581 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2582 echo $ECHO_N "(cached) $ECHO_C" >&6
2583 else
2584 if test -n "$ac_ct_CC"; then
2585 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2586 else
2587 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2588 for as_dir in $PATH
2590 IFS=$as_save_IFS
2591 test -z "$as_dir" && as_dir=.
2592 for ac_exec_ext in '' $ac_executable_extensions; do
2593 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2594 ac_cv_prog_ac_ct_CC="$ac_prog"
2595 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2596 break 2
2598 done
2599 done
2600 IFS=$as_save_IFS
2604 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2605 if test -n "$ac_ct_CC"; then
2606 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2607 echo "${ECHO_T}$ac_ct_CC" >&6; }
2608 else
2609 { echo "$as_me:$LINENO: result: no" >&5
2610 echo "${ECHO_T}no" >&6; }
2614 test -n "$ac_ct_CC" && break
2615 done
2617 if test "x$ac_ct_CC" = x; then
2618 CC=""
2619 else
2620 case $cross_compiling:$ac_tool_warned in
2621 yes:)
2622 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2623 whose name does not start with the host triplet. If you think this
2624 configuration is useful to you, please write to autoconf@gnu.org." >&5
2625 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2626 whose name does not start with the host triplet. If you think this
2627 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2628 ac_tool_warned=yes ;;
2629 esac
2630 CC=$ac_ct_CC
2637 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2638 See \`config.log' for more details." >&5
2639 echo "$as_me: error: no acceptable C compiler found in \$PATH
2640 See \`config.log' for more details." >&2;}
2641 { (exit 1); exit 1; }; }
2643 # Provide some information about the compiler.
2644 echo "$as_me:$LINENO: checking for C compiler version" >&5
2645 ac_compiler=`set X $ac_compile; echo $2`
2646 { (ac_try="$ac_compiler --version >&5"
2647 case "(($ac_try" in
2648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2649 *) ac_try_echo=$ac_try;;
2650 esac
2651 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2652 (eval "$ac_compiler --version >&5") 2>&5
2653 ac_status=$?
2654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2655 (exit $ac_status); }
2656 { (ac_try="$ac_compiler -v >&5"
2657 case "(($ac_try" in
2658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2659 *) ac_try_echo=$ac_try;;
2660 esac
2661 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2662 (eval "$ac_compiler -v >&5") 2>&5
2663 ac_status=$?
2664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2665 (exit $ac_status); }
2666 { (ac_try="$ac_compiler -V >&5"
2667 case "(($ac_try" in
2668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2669 *) ac_try_echo=$ac_try;;
2670 esac
2671 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2672 (eval "$ac_compiler -V >&5") 2>&5
2673 ac_status=$?
2674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2675 (exit $ac_status); }
2677 cat >conftest.$ac_ext <<_ACEOF
2678 /* confdefs.h. */
2679 _ACEOF
2680 cat confdefs.h >>conftest.$ac_ext
2681 cat >>conftest.$ac_ext <<_ACEOF
2682 /* end confdefs.h. */
2685 main ()
2689 return 0;
2691 _ACEOF
2692 ac_clean_files_save=$ac_clean_files
2693 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2694 # Try to create an executable without -o first, disregard a.out.
2695 # It will help us diagnose broken compilers, and finding out an intuition
2696 # of exeext.
2697 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2698 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2699 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2701 # List of possible output files, starting from the most likely.
2702 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2703 # only as a last resort. b.out is created by i960 compilers.
2704 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2706 # The IRIX 6 linker writes into existing files which may not be
2707 # executable, retaining their permissions. Remove them first so a
2708 # subsequent execution test works.
2709 ac_rmfiles=
2710 for ac_file in $ac_files
2712 case $ac_file in
2713 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2714 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2715 esac
2716 done
2717 rm -f $ac_rmfiles
2719 if { (ac_try="$ac_link_default"
2720 case "(($ac_try" in
2721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2722 *) ac_try_echo=$ac_try;;
2723 esac
2724 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2725 (eval "$ac_link_default") 2>&5
2726 ac_status=$?
2727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2728 (exit $ac_status); }; then
2729 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2730 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2731 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2732 # so that the user can short-circuit this test for compilers unknown to
2733 # Autoconf.
2734 for ac_file in $ac_files ''
2736 test -f "$ac_file" || continue
2737 case $ac_file in
2738 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2740 [ab].out )
2741 # We found the default executable, but exeext='' is most
2742 # certainly right.
2743 break;;
2744 *.* )
2745 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2746 then :; else
2747 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2749 # We set ac_cv_exeext here because the later test for it is not
2750 # safe: cross compilers may not add the suffix if given an `-o'
2751 # argument, so we may need to know it at that point already.
2752 # Even if this section looks crufty: it has the advantage of
2753 # actually working.
2754 break;;
2756 break;;
2757 esac
2758 done
2759 test "$ac_cv_exeext" = no && ac_cv_exeext=
2761 else
2762 ac_file=''
2765 { echo "$as_me:$LINENO: result: $ac_file" >&5
2766 echo "${ECHO_T}$ac_file" >&6; }
2767 if test -z "$ac_file"; then
2768 echo "$as_me: failed program was:" >&5
2769 sed 's/^/| /' conftest.$ac_ext >&5
2771 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2772 See \`config.log' for more details." >&5
2773 echo "$as_me: error: C compiler cannot create executables
2774 See \`config.log' for more details." >&2;}
2775 { (exit 77); exit 77; }; }
2778 ac_exeext=$ac_cv_exeext
2780 # Check that the compiler produces executables we can run. If not, either
2781 # the compiler is broken, or we cross compile.
2782 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2783 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2784 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2785 # If not cross compiling, check that we can run a simple program.
2786 if test "$cross_compiling" != yes; then
2787 if { ac_try='./$ac_file'
2788 { (case "(($ac_try" in
2789 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2790 *) ac_try_echo=$ac_try;;
2791 esac
2792 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2793 (eval "$ac_try") 2>&5
2794 ac_status=$?
2795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2796 (exit $ac_status); }; }; then
2797 cross_compiling=no
2798 else
2799 if test "$cross_compiling" = maybe; then
2800 cross_compiling=yes
2801 else
2802 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2803 If you meant to cross compile, use \`--host'.
2804 See \`config.log' for more details." >&5
2805 echo "$as_me: error: cannot run C compiled programs.
2806 If you meant to cross compile, use \`--host'.
2807 See \`config.log' for more details." >&2;}
2808 { (exit 1); exit 1; }; }
2812 { echo "$as_me:$LINENO: result: yes" >&5
2813 echo "${ECHO_T}yes" >&6; }
2815 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2816 ac_clean_files=$ac_clean_files_save
2817 # Check that the compiler produces executables we can run. If not, either
2818 # the compiler is broken, or we cross compile.
2819 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2820 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2821 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2822 echo "${ECHO_T}$cross_compiling" >&6; }
2824 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2825 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2826 if { (ac_try="$ac_link"
2827 case "(($ac_try" in
2828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2829 *) ac_try_echo=$ac_try;;
2830 esac
2831 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2832 (eval "$ac_link") 2>&5
2833 ac_status=$?
2834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2835 (exit $ac_status); }; then
2836 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2837 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2838 # work properly (i.e., refer to `conftest.exe'), while it won't with
2839 # `rm'.
2840 for ac_file in conftest.exe conftest conftest.*; do
2841 test -f "$ac_file" || continue
2842 case $ac_file in
2843 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2844 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2845 break;;
2846 * ) break;;
2847 esac
2848 done
2849 else
2850 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2851 See \`config.log' for more details." >&5
2852 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2853 See \`config.log' for more details." >&2;}
2854 { (exit 1); exit 1; }; }
2857 rm -f conftest$ac_cv_exeext
2858 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2859 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2861 rm -f conftest.$ac_ext
2862 EXEEXT=$ac_cv_exeext
2863 ac_exeext=$EXEEXT
2864 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2865 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2866 if test "${ac_cv_objext+set}" = set; then
2867 echo $ECHO_N "(cached) $ECHO_C" >&6
2868 else
2869 cat >conftest.$ac_ext <<_ACEOF
2870 /* confdefs.h. */
2871 _ACEOF
2872 cat confdefs.h >>conftest.$ac_ext
2873 cat >>conftest.$ac_ext <<_ACEOF
2874 /* end confdefs.h. */
2877 main ()
2881 return 0;
2883 _ACEOF
2884 rm -f conftest.o conftest.obj
2885 if { (ac_try="$ac_compile"
2886 case "(($ac_try" in
2887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2888 *) ac_try_echo=$ac_try;;
2889 esac
2890 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2891 (eval "$ac_compile") 2>&5
2892 ac_status=$?
2893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2894 (exit $ac_status); }; then
2895 for ac_file in conftest.o conftest.obj conftest.*; do
2896 test -f "$ac_file" || continue;
2897 case $ac_file in
2898 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2899 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2900 break;;
2901 esac
2902 done
2903 else
2904 echo "$as_me: failed program was:" >&5
2905 sed 's/^/| /' conftest.$ac_ext >&5
2907 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2908 See \`config.log' for more details." >&5
2909 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2910 See \`config.log' for more details." >&2;}
2911 { (exit 1); exit 1; }; }
2914 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2916 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2917 echo "${ECHO_T}$ac_cv_objext" >&6; }
2918 OBJEXT=$ac_cv_objext
2919 ac_objext=$OBJEXT
2920 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2921 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2922 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2923 echo $ECHO_N "(cached) $ECHO_C" >&6
2924 else
2925 cat >conftest.$ac_ext <<_ACEOF
2926 /* confdefs.h. */
2927 _ACEOF
2928 cat confdefs.h >>conftest.$ac_ext
2929 cat >>conftest.$ac_ext <<_ACEOF
2930 /* end confdefs.h. */
2933 main ()
2935 #ifndef __GNUC__
2936 choke me
2937 #endif
2940 return 0;
2942 _ACEOF
2943 rm -f conftest.$ac_objext
2944 if { (ac_try="$ac_compile"
2945 case "(($ac_try" in
2946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2947 *) ac_try_echo=$ac_try;;
2948 esac
2949 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2950 (eval "$ac_compile") 2>conftest.er1
2951 ac_status=$?
2952 grep -v '^ *+' conftest.er1 >conftest.err
2953 rm -f conftest.er1
2954 cat conftest.err >&5
2955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2956 (exit $ac_status); } && {
2957 test -z "$ac_c_werror_flag" ||
2958 test ! -s conftest.err
2959 } && test -s conftest.$ac_objext; then
2960 ac_compiler_gnu=yes
2961 else
2962 echo "$as_me: failed program was:" >&5
2963 sed 's/^/| /' conftest.$ac_ext >&5
2965 ac_compiler_gnu=no
2968 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2969 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2972 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2973 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2974 GCC=`test $ac_compiler_gnu = yes && echo yes`
2975 ac_test_CFLAGS=${CFLAGS+set}
2976 ac_save_CFLAGS=$CFLAGS
2977 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2978 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2979 if test "${ac_cv_prog_cc_g+set}" = set; then
2980 echo $ECHO_N "(cached) $ECHO_C" >&6
2981 else
2982 ac_save_c_werror_flag=$ac_c_werror_flag
2983 ac_c_werror_flag=yes
2984 ac_cv_prog_cc_g=no
2985 CFLAGS="-g"
2986 cat >conftest.$ac_ext <<_ACEOF
2987 /* confdefs.h. */
2988 _ACEOF
2989 cat confdefs.h >>conftest.$ac_ext
2990 cat >>conftest.$ac_ext <<_ACEOF
2991 /* end confdefs.h. */
2994 main ()
2998 return 0;
3000 _ACEOF
3001 rm -f conftest.$ac_objext
3002 if { (ac_try="$ac_compile"
3003 case "(($ac_try" in
3004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3005 *) ac_try_echo=$ac_try;;
3006 esac
3007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3008 (eval "$ac_compile") 2>conftest.er1
3009 ac_status=$?
3010 grep -v '^ *+' conftest.er1 >conftest.err
3011 rm -f conftest.er1
3012 cat conftest.err >&5
3013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3014 (exit $ac_status); } && {
3015 test -z "$ac_c_werror_flag" ||
3016 test ! -s conftest.err
3017 } && test -s conftest.$ac_objext; then
3018 ac_cv_prog_cc_g=yes
3019 else
3020 echo "$as_me: failed program was:" >&5
3021 sed 's/^/| /' conftest.$ac_ext >&5
3023 CFLAGS=""
3024 cat >conftest.$ac_ext <<_ACEOF
3025 /* confdefs.h. */
3026 _ACEOF
3027 cat confdefs.h >>conftest.$ac_ext
3028 cat >>conftest.$ac_ext <<_ACEOF
3029 /* end confdefs.h. */
3032 main ()
3036 return 0;
3038 _ACEOF
3039 rm -f conftest.$ac_objext
3040 if { (ac_try="$ac_compile"
3041 case "(($ac_try" in
3042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3043 *) ac_try_echo=$ac_try;;
3044 esac
3045 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3046 (eval "$ac_compile") 2>conftest.er1
3047 ac_status=$?
3048 grep -v '^ *+' conftest.er1 >conftest.err
3049 rm -f conftest.er1
3050 cat conftest.err >&5
3051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3052 (exit $ac_status); } && {
3053 test -z "$ac_c_werror_flag" ||
3054 test ! -s conftest.err
3055 } && test -s conftest.$ac_objext; then
3057 else
3058 echo "$as_me: failed program was:" >&5
3059 sed 's/^/| /' conftest.$ac_ext >&5
3061 ac_c_werror_flag=$ac_save_c_werror_flag
3062 CFLAGS="-g"
3063 cat >conftest.$ac_ext <<_ACEOF
3064 /* confdefs.h. */
3065 _ACEOF
3066 cat confdefs.h >>conftest.$ac_ext
3067 cat >>conftest.$ac_ext <<_ACEOF
3068 /* end confdefs.h. */
3071 main ()
3075 return 0;
3077 _ACEOF
3078 rm -f conftest.$ac_objext
3079 if { (ac_try="$ac_compile"
3080 case "(($ac_try" in
3081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3082 *) ac_try_echo=$ac_try;;
3083 esac
3084 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3085 (eval "$ac_compile") 2>conftest.er1
3086 ac_status=$?
3087 grep -v '^ *+' conftest.er1 >conftest.err
3088 rm -f conftest.er1
3089 cat conftest.err >&5
3090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3091 (exit $ac_status); } && {
3092 test -z "$ac_c_werror_flag" ||
3093 test ! -s conftest.err
3094 } && test -s conftest.$ac_objext; then
3095 ac_cv_prog_cc_g=yes
3096 else
3097 echo "$as_me: failed program was:" >&5
3098 sed 's/^/| /' conftest.$ac_ext >&5
3103 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3106 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3109 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3110 ac_c_werror_flag=$ac_save_c_werror_flag
3112 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3113 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3114 if test "$ac_test_CFLAGS" = set; then
3115 CFLAGS=$ac_save_CFLAGS
3116 elif test $ac_cv_prog_cc_g = yes; then
3117 if test "$GCC" = yes; then
3118 CFLAGS="-g -O2"
3119 else
3120 CFLAGS="-g"
3122 else
3123 if test "$GCC" = yes; then
3124 CFLAGS="-O2"
3125 else
3126 CFLAGS=
3129 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3130 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3131 if test "${ac_cv_prog_cc_c89+set}" = set; then
3132 echo $ECHO_N "(cached) $ECHO_C" >&6
3133 else
3134 ac_cv_prog_cc_c89=no
3135 ac_save_CC=$CC
3136 cat >conftest.$ac_ext <<_ACEOF
3137 /* confdefs.h. */
3138 _ACEOF
3139 cat confdefs.h >>conftest.$ac_ext
3140 cat >>conftest.$ac_ext <<_ACEOF
3141 /* end confdefs.h. */
3142 #include <stdarg.h>
3143 #include <stdio.h>
3144 #include <sys/types.h>
3145 #include <sys/stat.h>
3146 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3147 struct buf { int x; };
3148 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3149 static char *e (p, i)
3150 char **p;
3151 int i;
3153 return p[i];
3155 static char *f (char * (*g) (char **, int), char **p, ...)
3157 char *s;
3158 va_list v;
3159 va_start (v,p);
3160 s = g (p, va_arg (v,int));
3161 va_end (v);
3162 return s;
3165 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3166 function prototypes and stuff, but not '\xHH' hex character constants.
3167 These don't provoke an error unfortunately, instead are silently treated
3168 as 'x'. The following induces an error, until -std is added to get
3169 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3170 array size at least. It's necessary to write '\x00'==0 to get something
3171 that's true only with -std. */
3172 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3174 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3175 inside strings and character constants. */
3176 #define FOO(x) 'x'
3177 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3179 int test (int i, double x);
3180 struct s1 {int (*f) (int a);};
3181 struct s2 {int (*f) (double a);};
3182 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3183 int argc;
3184 char **argv;
3186 main ()
3188 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3190 return 0;
3192 _ACEOF
3193 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3194 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3196 CC="$ac_save_CC $ac_arg"
3197 rm -f conftest.$ac_objext
3198 if { (ac_try="$ac_compile"
3199 case "(($ac_try" in
3200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3201 *) ac_try_echo=$ac_try;;
3202 esac
3203 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3204 (eval "$ac_compile") 2>conftest.er1
3205 ac_status=$?
3206 grep -v '^ *+' conftest.er1 >conftest.err
3207 rm -f conftest.er1
3208 cat conftest.err >&5
3209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3210 (exit $ac_status); } && {
3211 test -z "$ac_c_werror_flag" ||
3212 test ! -s conftest.err
3213 } && test -s conftest.$ac_objext; then
3214 ac_cv_prog_cc_c89=$ac_arg
3215 else
3216 echo "$as_me: failed program was:" >&5
3217 sed 's/^/| /' conftest.$ac_ext >&5
3222 rm -f core conftest.err conftest.$ac_objext
3223 test "x$ac_cv_prog_cc_c89" != "xno" && break
3224 done
3225 rm -f conftest.$ac_ext
3226 CC=$ac_save_CC
3229 # AC_CACHE_VAL
3230 case "x$ac_cv_prog_cc_c89" in
3232 { echo "$as_me:$LINENO: result: none needed" >&5
3233 echo "${ECHO_T}none needed" >&6; } ;;
3234 xno)
3235 { echo "$as_me:$LINENO: result: unsupported" >&5
3236 echo "${ECHO_T}unsupported" >&6; } ;;
3238 CC="$CC $ac_cv_prog_cc_c89"
3239 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3240 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3241 esac
3244 ac_ext=c
3245 ac_cpp='$CPP $CPPFLAGS'
3246 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3247 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3248 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3253 { echo "$as_me:$LINENO: checking for --with-cxx-main=<compiler>" >&5
3254 echo $ECHO_N "checking for --with-cxx-main=<compiler>... $ECHO_C" >&6; }
3256 # Check whether --with-cxx_main was given.
3257 if test "${with_cxx_main+set}" = set; then
3258 withval=$with_cxx_main;
3260 case $withval in
3261 no) with_cxx_main=no
3262 MAINCC='$(CC)';;
3263 yes) with_cxx_main=yes
3264 MAINCC='$(CXX)';;
3265 *) with_cxx_main=yes
3266 MAINCC=$withval
3267 if test -z "$CXX"
3268 then
3269 CXX=$withval
3270 fi;;
3271 esac
3272 else
3274 with_cxx_main=no
3275 MAINCC='$(CC)'
3279 { echo "$as_me:$LINENO: result: $with_cxx_main" >&5
3280 echo "${ECHO_T}$with_cxx_main" >&6; }
3282 preset_cxx="$CXX"
3283 if test -z "$CXX"
3284 then
3285 case "$CC" in
3286 gcc) # Extract the first word of "g++", so it can be a program name with args.
3287 set dummy g++; ac_word=$2
3288 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3289 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3290 if test "${ac_cv_path_CXX+set}" = set; then
3291 echo $ECHO_N "(cached) $ECHO_C" >&6
3292 else
3293 case $CXX in
3294 [\\/]* | ?:[\\/]*)
3295 ac_cv_path_CXX="$CXX" # Let the user override the test with a path.
3298 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3299 for as_dir in notfound
3301 IFS=$as_save_IFS
3302 test -z "$as_dir" && as_dir=.
3303 for ac_exec_ext in '' $ac_executable_extensions; do
3304 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3305 ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext"
3306 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3307 break 2
3309 done
3310 done
3311 IFS=$as_save_IFS
3313 test -z "$ac_cv_path_CXX" && ac_cv_path_CXX="g++"
3315 esac
3317 CXX=$ac_cv_path_CXX
3318 if test -n "$CXX"; then
3319 { echo "$as_me:$LINENO: result: $CXX" >&5
3320 echo "${ECHO_T}$CXX" >&6; }
3321 else
3322 { echo "$as_me:$LINENO: result: no" >&5
3323 echo "${ECHO_T}no" >&6; }
3327 cc) # Extract the first word of "c++", so it can be a program name with args.
3328 set dummy c++; ac_word=$2
3329 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3330 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3331 if test "${ac_cv_path_CXX+set}" = set; then
3332 echo $ECHO_N "(cached) $ECHO_C" >&6
3333 else
3334 case $CXX in
3335 [\\/]* | ?:[\\/]*)
3336 ac_cv_path_CXX="$CXX" # Let the user override the test with a path.
3339 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3340 for as_dir in notfound
3342 IFS=$as_save_IFS
3343 test -z "$as_dir" && as_dir=.
3344 for ac_exec_ext in '' $ac_executable_extensions; do
3345 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3346 ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext"
3347 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3348 break 2
3350 done
3351 done
3352 IFS=$as_save_IFS
3354 test -z "$ac_cv_path_CXX" && ac_cv_path_CXX="c++"
3356 esac
3358 CXX=$ac_cv_path_CXX
3359 if test -n "$CXX"; then
3360 { echo "$as_me:$LINENO: result: $CXX" >&5
3361 echo "${ECHO_T}$CXX" >&6; }
3362 else
3363 { echo "$as_me:$LINENO: result: no" >&5
3364 echo "${ECHO_T}no" >&6; }
3368 esac
3369 if test "$CXX" = "notfound"
3370 then
3371 CXX=""
3374 if test -z "$CXX"
3375 then
3376 for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
3378 # Extract the first word of "$ac_prog", so it can be a program name with args.
3379 set dummy $ac_prog; ac_word=$2
3380 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3381 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3382 if test "${ac_cv_prog_CXX+set}" = set; then
3383 echo $ECHO_N "(cached) $ECHO_C" >&6
3384 else
3385 if test -n "$CXX"; then
3386 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3387 else
3388 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3389 for as_dir in $PATH
3391 IFS=$as_save_IFS
3392 test -z "$as_dir" && as_dir=.
3393 for ac_exec_ext in '' $ac_executable_extensions; do
3394 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3395 ac_cv_prog_CXX="$ac_prog"
3396 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3397 break 2
3399 done
3400 done
3401 IFS=$as_save_IFS
3405 CXX=$ac_cv_prog_CXX
3406 if test -n "$CXX"; then
3407 { echo "$as_me:$LINENO: result: $CXX" >&5
3408 echo "${ECHO_T}$CXX" >&6; }
3409 else
3410 { echo "$as_me:$LINENO: result: no" >&5
3411 echo "${ECHO_T}no" >&6; }
3415 test -n "$CXX" && break
3416 done
3417 test -n "$CXX" || CXX="notfound"
3419 if test "$CXX" = "notfound"
3420 then
3421 CXX=""
3424 if test "$preset_cxx" != "$CXX"
3425 then
3426 { echo "$as_me:$LINENO: WARNING:
3428 By default, distutils will build C++ extension modules with \"$CXX\".
3429 If this is not intended, then set CXX on the configure command line.
3430 " >&5
3431 echo "$as_me: WARNING:
3433 By default, distutils will build C++ extension modules with \"$CXX\".
3434 If this is not intended, then set CXX on the configure command line.
3435 " >&2;}
3439 # checks for UNIX variants that set C preprocessor variables
3441 ac_ext=c
3442 ac_cpp='$CPP $CPPFLAGS'
3443 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3444 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3445 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3446 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3447 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3448 # On Suns, sometimes $CPP names a directory.
3449 if test -n "$CPP" && test -d "$CPP"; then
3450 CPP=
3452 if test -z "$CPP"; then
3453 if test "${ac_cv_prog_CPP+set}" = set; then
3454 echo $ECHO_N "(cached) $ECHO_C" >&6
3455 else
3456 # Double quotes because CPP needs to be expanded
3457 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3459 ac_preproc_ok=false
3460 for ac_c_preproc_warn_flag in '' yes
3462 # Use a header file that comes with gcc, so configuring glibc
3463 # with a fresh cross-compiler works.
3464 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3465 # <limits.h> exists even on freestanding compilers.
3466 # On the NeXT, cc -E runs the code through the compiler's parser,
3467 # not just through cpp. "Syntax error" is here to catch this case.
3468 cat >conftest.$ac_ext <<_ACEOF
3469 /* confdefs.h. */
3470 _ACEOF
3471 cat confdefs.h >>conftest.$ac_ext
3472 cat >>conftest.$ac_ext <<_ACEOF
3473 /* end confdefs.h. */
3474 #ifdef __STDC__
3475 # include <limits.h>
3476 #else
3477 # include <assert.h>
3478 #endif
3479 Syntax error
3480 _ACEOF
3481 if { (ac_try="$ac_cpp conftest.$ac_ext"
3482 case "(($ac_try" in
3483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3484 *) ac_try_echo=$ac_try;;
3485 esac
3486 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3487 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3488 ac_status=$?
3489 grep -v '^ *+' conftest.er1 >conftest.err
3490 rm -f conftest.er1
3491 cat conftest.err >&5
3492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3493 (exit $ac_status); } >/dev/null && {
3494 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3495 test ! -s conftest.err
3496 }; then
3498 else
3499 echo "$as_me: failed program was:" >&5
3500 sed 's/^/| /' conftest.$ac_ext >&5
3502 # Broken: fails on valid input.
3503 continue
3506 rm -f conftest.err conftest.$ac_ext
3508 # OK, works on sane cases. Now check whether nonexistent headers
3509 # can be detected and how.
3510 cat >conftest.$ac_ext <<_ACEOF
3511 /* confdefs.h. */
3512 _ACEOF
3513 cat confdefs.h >>conftest.$ac_ext
3514 cat >>conftest.$ac_ext <<_ACEOF
3515 /* end confdefs.h. */
3516 #include <ac_nonexistent.h>
3517 _ACEOF
3518 if { (ac_try="$ac_cpp conftest.$ac_ext"
3519 case "(($ac_try" in
3520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3521 *) ac_try_echo=$ac_try;;
3522 esac
3523 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3524 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3525 ac_status=$?
3526 grep -v '^ *+' conftest.er1 >conftest.err
3527 rm -f conftest.er1
3528 cat conftest.err >&5
3529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3530 (exit $ac_status); } >/dev/null && {
3531 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3532 test ! -s conftest.err
3533 }; then
3534 # Broken: success on invalid input.
3535 continue
3536 else
3537 echo "$as_me: failed program was:" >&5
3538 sed 's/^/| /' conftest.$ac_ext >&5
3540 # Passes both tests.
3541 ac_preproc_ok=:
3542 break
3545 rm -f conftest.err conftest.$ac_ext
3547 done
3548 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3549 rm -f conftest.err conftest.$ac_ext
3550 if $ac_preproc_ok; then
3551 break
3554 done
3555 ac_cv_prog_CPP=$CPP
3558 CPP=$ac_cv_prog_CPP
3559 else
3560 ac_cv_prog_CPP=$CPP
3562 { echo "$as_me:$LINENO: result: $CPP" >&5
3563 echo "${ECHO_T}$CPP" >&6; }
3564 ac_preproc_ok=false
3565 for ac_c_preproc_warn_flag in '' yes
3567 # Use a header file that comes with gcc, so configuring glibc
3568 # with a fresh cross-compiler works.
3569 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3570 # <limits.h> exists even on freestanding compilers.
3571 # On the NeXT, cc -E runs the code through the compiler's parser,
3572 # not just through cpp. "Syntax error" is here to catch this case.
3573 cat >conftest.$ac_ext <<_ACEOF
3574 /* confdefs.h. */
3575 _ACEOF
3576 cat confdefs.h >>conftest.$ac_ext
3577 cat >>conftest.$ac_ext <<_ACEOF
3578 /* end confdefs.h. */
3579 #ifdef __STDC__
3580 # include <limits.h>
3581 #else
3582 # include <assert.h>
3583 #endif
3584 Syntax error
3585 _ACEOF
3586 if { (ac_try="$ac_cpp conftest.$ac_ext"
3587 case "(($ac_try" in
3588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3589 *) ac_try_echo=$ac_try;;
3590 esac
3591 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3592 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3593 ac_status=$?
3594 grep -v '^ *+' conftest.er1 >conftest.err
3595 rm -f conftest.er1
3596 cat conftest.err >&5
3597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3598 (exit $ac_status); } >/dev/null && {
3599 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3600 test ! -s conftest.err
3601 }; then
3603 else
3604 echo "$as_me: failed program was:" >&5
3605 sed 's/^/| /' conftest.$ac_ext >&5
3607 # Broken: fails on valid input.
3608 continue
3611 rm -f conftest.err conftest.$ac_ext
3613 # OK, works on sane cases. Now check whether nonexistent headers
3614 # can be detected and how.
3615 cat >conftest.$ac_ext <<_ACEOF
3616 /* confdefs.h. */
3617 _ACEOF
3618 cat confdefs.h >>conftest.$ac_ext
3619 cat >>conftest.$ac_ext <<_ACEOF
3620 /* end confdefs.h. */
3621 #include <ac_nonexistent.h>
3622 _ACEOF
3623 if { (ac_try="$ac_cpp conftest.$ac_ext"
3624 case "(($ac_try" in
3625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3626 *) ac_try_echo=$ac_try;;
3627 esac
3628 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3629 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3630 ac_status=$?
3631 grep -v '^ *+' conftest.er1 >conftest.err
3632 rm -f conftest.er1
3633 cat conftest.err >&5
3634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3635 (exit $ac_status); } >/dev/null && {
3636 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3637 test ! -s conftest.err
3638 }; then
3639 # Broken: success on invalid input.
3640 continue
3641 else
3642 echo "$as_me: failed program was:" >&5
3643 sed 's/^/| /' conftest.$ac_ext >&5
3645 # Passes both tests.
3646 ac_preproc_ok=:
3647 break
3650 rm -f conftest.err conftest.$ac_ext
3652 done
3653 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3654 rm -f conftest.err conftest.$ac_ext
3655 if $ac_preproc_ok; then
3657 else
3658 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3659 See \`config.log' for more details." >&5
3660 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3661 See \`config.log' for more details." >&2;}
3662 { (exit 1); exit 1; }; }
3665 ac_ext=c
3666 ac_cpp='$CPP $CPPFLAGS'
3667 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3668 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3669 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3672 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3673 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3674 if test "${ac_cv_path_GREP+set}" = set; then
3675 echo $ECHO_N "(cached) $ECHO_C" >&6
3676 else
3677 # Extract the first word of "grep ggrep" to use in msg output
3678 if test -z "$GREP"; then
3679 set dummy grep ggrep; ac_prog_name=$2
3680 if test "${ac_cv_path_GREP+set}" = set; then
3681 echo $ECHO_N "(cached) $ECHO_C" >&6
3682 else
3683 ac_path_GREP_found=false
3684 # Loop through the user's path and test for each of PROGNAME-LIST
3685 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3686 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3688 IFS=$as_save_IFS
3689 test -z "$as_dir" && as_dir=.
3690 for ac_prog in grep ggrep; do
3691 for ac_exec_ext in '' $ac_executable_extensions; do
3692 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3693 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3694 # Check for GNU ac_path_GREP and select it if it is found.
3695 # Check for GNU $ac_path_GREP
3696 case `"$ac_path_GREP" --version 2>&1` in
3697 *GNU*)
3698 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3700 ac_count=0
3701 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3702 while :
3704 cat "conftest.in" "conftest.in" >"conftest.tmp"
3705 mv "conftest.tmp" "conftest.in"
3706 cp "conftest.in" "conftest.nl"
3707 echo 'GREP' >> "conftest.nl"
3708 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3709 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3710 ac_count=`expr $ac_count + 1`
3711 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3712 # Best one so far, save it but keep looking for a better one
3713 ac_cv_path_GREP="$ac_path_GREP"
3714 ac_path_GREP_max=$ac_count
3716 # 10*(2^10) chars as input seems more than enough
3717 test $ac_count -gt 10 && break
3718 done
3719 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3720 esac
3723 $ac_path_GREP_found && break 3
3724 done
3725 done
3727 done
3728 IFS=$as_save_IFS
3733 GREP="$ac_cv_path_GREP"
3734 if test -z "$GREP"; then
3735 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3736 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3737 { (exit 1); exit 1; }; }
3740 else
3741 ac_cv_path_GREP=$GREP
3746 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3747 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3748 GREP="$ac_cv_path_GREP"
3751 { echo "$as_me:$LINENO: checking for egrep" >&5
3752 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3753 if test "${ac_cv_path_EGREP+set}" = set; then
3754 echo $ECHO_N "(cached) $ECHO_C" >&6
3755 else
3756 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3757 then ac_cv_path_EGREP="$GREP -E"
3758 else
3759 # Extract the first word of "egrep" to use in msg output
3760 if test -z "$EGREP"; then
3761 set dummy egrep; ac_prog_name=$2
3762 if test "${ac_cv_path_EGREP+set}" = set; then
3763 echo $ECHO_N "(cached) $ECHO_C" >&6
3764 else
3765 ac_path_EGREP_found=false
3766 # Loop through the user's path and test for each of PROGNAME-LIST
3767 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3768 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3770 IFS=$as_save_IFS
3771 test -z "$as_dir" && as_dir=.
3772 for ac_prog in egrep; do
3773 for ac_exec_ext in '' $ac_executable_extensions; do
3774 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3775 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3776 # Check for GNU ac_path_EGREP and select it if it is found.
3777 # Check for GNU $ac_path_EGREP
3778 case `"$ac_path_EGREP" --version 2>&1` in
3779 *GNU*)
3780 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3782 ac_count=0
3783 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3784 while :
3786 cat "conftest.in" "conftest.in" >"conftest.tmp"
3787 mv "conftest.tmp" "conftest.in"
3788 cp "conftest.in" "conftest.nl"
3789 echo 'EGREP' >> "conftest.nl"
3790 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3791 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3792 ac_count=`expr $ac_count + 1`
3793 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3794 # Best one so far, save it but keep looking for a better one
3795 ac_cv_path_EGREP="$ac_path_EGREP"
3796 ac_path_EGREP_max=$ac_count
3798 # 10*(2^10) chars as input seems more than enough
3799 test $ac_count -gt 10 && break
3800 done
3801 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3802 esac
3805 $ac_path_EGREP_found && break 3
3806 done
3807 done
3809 done
3810 IFS=$as_save_IFS
3815 EGREP="$ac_cv_path_EGREP"
3816 if test -z "$EGREP"; then
3817 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3818 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3819 { (exit 1); exit 1; }; }
3822 else
3823 ac_cv_path_EGREP=$EGREP
3829 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3830 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3831 EGREP="$ac_cv_path_EGREP"
3835 { echo "$as_me:$LINENO: checking for AIX" >&5
3836 echo $ECHO_N "checking for AIX... $ECHO_C" >&6; }
3837 cat >conftest.$ac_ext <<_ACEOF
3838 /* confdefs.h. */
3839 _ACEOF
3840 cat confdefs.h >>conftest.$ac_ext
3841 cat >>conftest.$ac_ext <<_ACEOF
3842 /* end confdefs.h. */
3843 #ifdef _AIX
3845 #endif
3847 _ACEOF
3848 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3849 $EGREP "yes" >/dev/null 2>&1; then
3850 { echo "$as_me:$LINENO: result: yes" >&5
3851 echo "${ECHO_T}yes" >&6; }
3852 cat >>confdefs.h <<\_ACEOF
3853 #define _ALL_SOURCE 1
3854 _ACEOF
3856 else
3857 { echo "$as_me:$LINENO: result: no" >&5
3858 echo "${ECHO_T}no" >&6; }
3860 rm -f -r conftest*
3864 # Check for unsupported systems
3865 case $ac_sys_system/$ac_sys_release in
3866 atheos*|Linux*/1*)
3867 echo This system \($ac_sys_system/$ac_sys_release\) is no longer supported.
3868 echo See README for details.
3869 exit 1;;
3870 esac
3873 { echo "$as_me:$LINENO: checking for --with-suffix" >&5
3874 echo $ECHO_N "checking for --with-suffix... $ECHO_C" >&6; }
3876 # Check whether --with-suffix was given.
3877 if test "${with_suffix+set}" = set; then
3878 withval=$with_suffix;
3879 case $withval in
3880 no) EXEEXT=;;
3881 yes) EXEEXT=.exe;;
3882 *) EXEEXT=$withval;;
3883 esac
3886 { echo "$as_me:$LINENO: result: $EXEEXT" >&5
3887 echo "${ECHO_T}$EXEEXT" >&6; }
3889 # Test whether we're running on a non-case-sensitive system, in which
3890 # case we give a warning if no ext is given
3892 { echo "$as_me:$LINENO: checking for case-insensitive build directory" >&5
3893 echo $ECHO_N "checking for case-insensitive build directory... $ECHO_C" >&6; }
3894 if test ! -d CaseSensitiveTestDir; then
3895 mkdir CaseSensitiveTestDir
3898 if test -d casesensitivetestdir
3899 then
3900 { echo "$as_me:$LINENO: result: yes" >&5
3901 echo "${ECHO_T}yes" >&6; }
3902 BUILDEXEEXT=.exe
3903 else
3904 { echo "$as_me:$LINENO: result: no" >&5
3905 echo "${ECHO_T}no" >&6; }
3906 BUILDEXEEXT=$EXEEXT
3908 rmdir CaseSensitiveTestDir
3910 case $MACHDEP in
3911 bsdos*)
3912 case $CC in
3913 gcc) CC="$CC -D_HAVE_BSDI";;
3914 esac;;
3915 esac
3917 case $ac_sys_system in
3918 hp*|HP*)
3919 case $CC in
3920 cc|*/cc) CC="$CC -Ae";;
3921 esac;;
3922 SunOS*)
3923 # Some functions have a prototype only with that define, e.g. confstr
3925 cat >>confdefs.h <<\_ACEOF
3926 #define __EXTENSIONS__ 1
3927 _ACEOF
3930 esac
3934 { echo "$as_me:$LINENO: checking LIBRARY" >&5
3935 echo $ECHO_N "checking LIBRARY... $ECHO_C" >&6; }
3936 if test -z "$LIBRARY"
3937 then
3938 LIBRARY='libpython$(VERSION).a'
3940 { echo "$as_me:$LINENO: result: $LIBRARY" >&5
3941 echo "${ECHO_T}$LIBRARY" >&6; }
3943 # LDLIBRARY is the name of the library to link against (as opposed to the
3944 # name of the library into which to insert object files). BLDLIBRARY is also
3945 # the library to link against, usually. On Mac OS X frameworks, BLDLIBRARY
3946 # is blank as the main program is not linked directly against LDLIBRARY.
3947 # LDLIBRARYDIR is the path to LDLIBRARY, which is made in a subdirectory. On
3948 # systems without shared libraries, LDLIBRARY is the same as LIBRARY
3949 # (defined in the Makefiles). On Cygwin LDLIBRARY is the import library,
3950 # DLLLIBRARY is the shared (i.e., DLL) library.
3952 # RUNSHARED is used to run shared python without installed libraries
3954 # INSTSONAME is the name of the shared library that will be use to install
3955 # on the system - some systems like version suffix, others don't
3962 LDLIBRARY="$LIBRARY"
3963 BLDLIBRARY='$(LDLIBRARY)'
3964 INSTSONAME='$(LDLIBRARY)'
3965 DLLLIBRARY=''
3966 LDLIBRARYDIR=''
3967 RUNSHARED=''
3969 # LINKCC is the command that links the python executable -- default is $(CC).
3970 # If CXX is set, and if it is needed to link a main function that was
3971 # compiled with CXX, LINKCC is CXX instead. Always using CXX is undesirable:
3972 # python might then depend on the C++ runtime
3973 # This is altered for AIX in order to build the export list before
3974 # linking.
3976 { echo "$as_me:$LINENO: checking LINKCC" >&5
3977 echo $ECHO_N "checking LINKCC... $ECHO_C" >&6; }
3978 if test -z "$LINKCC"
3979 then
3980 LINKCC='$(PURIFY) $(MAINCC)'
3981 case $ac_sys_system in
3982 AIX*)
3983 exp_extra="\"\""
3984 if test $ac_sys_release -ge 5 -o \
3985 $ac_sys_release -eq 4 -a `uname -r` -ge 2 ; then
3986 exp_extra="."
3988 LINKCC="\$(srcdir)/Modules/makexp_aix Modules/python.exp $exp_extra \$(LIBRARY); $LINKCC";;
3989 QNX*)
3990 # qcc must be used because the other compilers do not
3991 # support -N.
3992 LINKCC=qcc;;
3993 esac
3995 { echo "$as_me:$LINENO: result: $LINKCC" >&5
3996 echo "${ECHO_T}$LINKCC" >&6; }
3998 # GNULD is set to "yes" if the GNU linker is used. If this goes wrong
3999 # make sure we default having it set to "no": this is used by
4000 # distutils.unixccompiler to know if it should add --enable-new-dtags
4001 # to linker command lines, and failing to detect GNU ld simply results
4002 # in the same bahaviour as before.
4004 { echo "$as_me:$LINENO: checking for GNU ld" >&5
4005 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
4006 ac_prog=ld
4007 if test "$GCC" = yes; then
4008 ac_prog=`$CC -print-prog-name=ld`
4010 case `"$ac_prog" -V 2>&1 < /dev/null` in
4011 *GNU*)
4012 GNULD=yes;;
4014 GNULD=no;;
4015 esac
4016 { echo "$as_me:$LINENO: result: $GNULD" >&5
4017 echo "${ECHO_T}$GNULD" >&6; }
4019 { echo "$as_me:$LINENO: checking for --enable-shared" >&5
4020 echo $ECHO_N "checking for --enable-shared... $ECHO_C" >&6; }
4021 # Check whether --enable-shared was given.
4022 if test "${enable_shared+set}" = set; then
4023 enableval=$enable_shared;
4027 if test -z "$enable_shared"
4028 then
4029 case $ac_sys_system in
4030 CYGWIN* | atheos*)
4031 enable_shared="yes";;
4033 enable_shared="no";;
4034 esac
4036 { echo "$as_me:$LINENO: result: $enable_shared" >&5
4037 echo "${ECHO_T}$enable_shared" >&6; }
4039 { echo "$as_me:$LINENO: checking for --enable-profiling" >&5
4040 echo $ECHO_N "checking for --enable-profiling... $ECHO_C" >&6; }
4041 # Check whether --enable-profiling was given.
4042 if test "${enable_profiling+set}" = set; then
4043 enableval=$enable_profiling; ac_save_cc="$CC"
4044 CC="$CC -pg"
4045 if test "$cross_compiling" = yes; then
4046 ac_enable_profiling="no"
4047 else
4048 cat >conftest.$ac_ext <<_ACEOF
4049 /* confdefs.h. */
4050 _ACEOF
4051 cat confdefs.h >>conftest.$ac_ext
4052 cat >>conftest.$ac_ext <<_ACEOF
4053 /* end confdefs.h. */
4054 int main() { return 0; }
4055 _ACEOF
4056 rm -f conftest$ac_exeext
4057 if { (ac_try="$ac_link"
4058 case "(($ac_try" in
4059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4060 *) ac_try_echo=$ac_try;;
4061 esac
4062 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4063 (eval "$ac_link") 2>&5
4064 ac_status=$?
4065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4066 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4067 { (case "(($ac_try" in
4068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4069 *) ac_try_echo=$ac_try;;
4070 esac
4071 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4072 (eval "$ac_try") 2>&5
4073 ac_status=$?
4074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4075 (exit $ac_status); }; }; then
4076 ac_enable_profiling="yes"
4077 else
4078 echo "$as_me: program exited with status $ac_status" >&5
4079 echo "$as_me: failed program was:" >&5
4080 sed 's/^/| /' conftest.$ac_ext >&5
4082 ( exit $ac_status )
4083 ac_enable_profiling="no"
4085 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4089 CC="$ac_save_cc"
4092 { echo "$as_me:$LINENO: result: $ac_enable_profiling" >&5
4093 echo "${ECHO_T}$ac_enable_profiling" >&6; }
4095 case "$ac_enable_profiling" in
4096 "yes")
4097 BASECFLAGS="-pg $BASECFLAGS"
4098 LDFLAGS="-pg $LDFLAGS"
4100 esac
4102 { echo "$as_me:$LINENO: checking LDLIBRARY" >&5
4103 echo $ECHO_N "checking LDLIBRARY... $ECHO_C" >&6; }
4105 # MacOSX framework builds need more magic. LDLIBRARY is the dynamic
4106 # library that we build, but we do not want to link against it (we
4107 # will find it with a -framework option). For this reason there is an
4108 # extra variable BLDLIBRARY against which Python and the extension
4109 # modules are linked, BLDLIBRARY. This is normally the same as
4110 # LDLIBRARY, but empty for MacOSX framework builds.
4111 if test "$enable_framework"
4112 then
4113 LDLIBRARY='$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
4114 RUNSHARED=DYLD_FRAMEWORK_PATH="`pwd`:$DYLD_FRAMEWORK_PATH"
4115 BLDLIBRARY=''
4116 else
4117 BLDLIBRARY='$(LDLIBRARY)'
4120 # Other platforms follow
4121 if test $enable_shared = "yes"; then
4123 cat >>confdefs.h <<\_ACEOF
4124 #define Py_ENABLE_SHARED 1
4125 _ACEOF
4127 case $ac_sys_system in
4128 BeOS*)
4129 LDLIBRARY='libpython$(VERSION).so'
4131 CYGWIN*)
4132 LDLIBRARY='libpython$(VERSION).dll.a'
4133 DLLLIBRARY='libpython$(VERSION).dll'
4135 SunOS*)
4136 LDLIBRARY='libpython$(VERSION).so'
4137 BLDLIBRARY='-Wl,-R,$(LIBDIR) -L. -lpython$(VERSION)'
4138 RUNSHARED=LD_LIBRARY_PATH=`pwd`:${LD_LIBRARY_PATH}
4139 INSTSONAME="$LDLIBRARY".$SOVERSION
4141 Linux*|GNU*|NetBSD*|FreeBSD*|DragonFly*)
4142 LDLIBRARY='libpython$(VERSION).so'
4143 BLDLIBRARY='-L. -lpython$(VERSION)'
4144 RUNSHARED=LD_LIBRARY_PATH=`pwd`:${LD_LIBRARY_PATH}
4145 case $ac_sys_system in
4146 FreeBSD*)
4147 SOVERSION=`echo $SOVERSION|cut -d "." -f 1`
4149 esac
4150 INSTSONAME="$LDLIBRARY".$SOVERSION
4152 hp*|HP*)
4153 case `uname -m` in
4154 ia64)
4155 LDLIBRARY='libpython$(VERSION).so'
4158 LDLIBRARY='libpython$(VERSION).sl'
4160 esac
4161 BLDLIBRARY='-Wl,+b,$(LIBDIR) -L. -lpython$(VERSION)'
4162 RUNSHARED=SHLIB_PATH=`pwd`:${SHLIB_PATH}
4164 OSF*)
4165 LDLIBRARY='libpython$(VERSION).so'
4166 BLDLIBRARY='-rpath $(LIBDIR) -L. -lpython$(VERSION)'
4167 RUNSHARED=LD_LIBRARY_PATH=`pwd`:${LD_LIBRARY_PATH}
4169 atheos*)
4170 LDLIBRARY='libpython$(VERSION).so'
4171 BLDLIBRARY='-L. -lpython$(VERSION)'
4172 RUNSHARED=DLL_PATH=`pwd`:${DLL_PATH:-/atheos/sys/libs:/atheos/autolnk/lib}
4174 Darwin*)
4175 LDLIBRARY='libpython$(VERSION).dylib'
4176 BLDLIBRARY='-L. -lpython$(VERSION)'
4177 RUNSHARED='DYLD_LIBRARY_PATH=`pwd`:${DYLD_LIBRARY_PATH}'
4180 esac
4181 else # shared is disabled
4182 case $ac_sys_system in
4183 CYGWIN*)
4184 BLDLIBRARY='$(LIBRARY)'
4185 LDLIBRARY='libpython$(VERSION).dll.a'
4187 esac
4190 { echo "$as_me:$LINENO: result: $LDLIBRARY" >&5
4191 echo "${ECHO_T}$LDLIBRARY" >&6; }
4193 if test -n "$ac_tool_prefix"; then
4194 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4195 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4196 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4197 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4198 if test "${ac_cv_prog_RANLIB+set}" = set; then
4199 echo $ECHO_N "(cached) $ECHO_C" >&6
4200 else
4201 if test -n "$RANLIB"; then
4202 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4203 else
4204 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4205 for as_dir in $PATH
4207 IFS=$as_save_IFS
4208 test -z "$as_dir" && as_dir=.
4209 for ac_exec_ext in '' $ac_executable_extensions; do
4210 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4211 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4212 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4213 break 2
4215 done
4216 done
4217 IFS=$as_save_IFS
4221 RANLIB=$ac_cv_prog_RANLIB
4222 if test -n "$RANLIB"; then
4223 { echo "$as_me:$LINENO: result: $RANLIB" >&5
4224 echo "${ECHO_T}$RANLIB" >&6; }
4225 else
4226 { echo "$as_me:$LINENO: result: no" >&5
4227 echo "${ECHO_T}no" >&6; }
4232 if test -z "$ac_cv_prog_RANLIB"; then
4233 ac_ct_RANLIB=$RANLIB
4234 # Extract the first word of "ranlib", so it can be a program name with args.
4235 set dummy ranlib; ac_word=$2
4236 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4237 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4238 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4239 echo $ECHO_N "(cached) $ECHO_C" >&6
4240 else
4241 if test -n "$ac_ct_RANLIB"; then
4242 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4243 else
4244 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4245 for as_dir in $PATH
4247 IFS=$as_save_IFS
4248 test -z "$as_dir" && as_dir=.
4249 for ac_exec_ext in '' $ac_executable_extensions; do
4250 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4251 ac_cv_prog_ac_ct_RANLIB="ranlib"
4252 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4253 break 2
4255 done
4256 done
4257 IFS=$as_save_IFS
4261 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4262 if test -n "$ac_ct_RANLIB"; then
4263 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4264 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
4265 else
4266 { echo "$as_me:$LINENO: result: no" >&5
4267 echo "${ECHO_T}no" >&6; }
4270 if test "x$ac_ct_RANLIB" = x; then
4271 RANLIB=":"
4272 else
4273 case $cross_compiling:$ac_tool_warned in
4274 yes:)
4275 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4276 whose name does not start with the host triplet. If you think this
4277 configuration is useful to you, please write to autoconf@gnu.org." >&5
4278 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4279 whose name does not start with the host triplet. If you think this
4280 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4281 ac_tool_warned=yes ;;
4282 esac
4283 RANLIB=$ac_ct_RANLIB
4285 else
4286 RANLIB="$ac_cv_prog_RANLIB"
4290 for ac_prog in ar aal
4292 # Extract the first word of "$ac_prog", so it can be a program name with args.
4293 set dummy $ac_prog; ac_word=$2
4294 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4295 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4296 if test "${ac_cv_prog_AR+set}" = set; then
4297 echo $ECHO_N "(cached) $ECHO_C" >&6
4298 else
4299 if test -n "$AR"; then
4300 ac_cv_prog_AR="$AR" # Let the user override the test.
4301 else
4302 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4303 for as_dir in $PATH
4305 IFS=$as_save_IFS
4306 test -z "$as_dir" && as_dir=.
4307 for ac_exec_ext in '' $ac_executable_extensions; do
4308 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4309 ac_cv_prog_AR="$ac_prog"
4310 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4311 break 2
4313 done
4314 done
4315 IFS=$as_save_IFS
4319 AR=$ac_cv_prog_AR
4320 if test -n "$AR"; then
4321 { echo "$as_me:$LINENO: result: $AR" >&5
4322 echo "${ECHO_T}$AR" >&6; }
4323 else
4324 { echo "$as_me:$LINENO: result: no" >&5
4325 echo "${ECHO_T}no" >&6; }
4329 test -n "$AR" && break
4330 done
4331 test -n "$AR" || AR="ar"
4334 # tweak ARFLAGS only if the user didn't set it on the command line
4336 if test -z "$ARFLAGS"
4337 then
4338 ARFLAGS="rc"
4342 # Extract the first word of "svnversion", so it can be a program name with args.
4343 set dummy svnversion; ac_word=$2
4344 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4345 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4346 if test "${ac_cv_prog_SVNVERSION+set}" = set; then
4347 echo $ECHO_N "(cached) $ECHO_C" >&6
4348 else
4349 if test -n "$SVNVERSION"; then
4350 ac_cv_prog_SVNVERSION="$SVNVERSION" # Let the user override the test.
4351 else
4352 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4353 for as_dir in $PATH
4355 IFS=$as_save_IFS
4356 test -z "$as_dir" && as_dir=.
4357 for ac_exec_ext in '' $ac_executable_extensions; do
4358 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4359 ac_cv_prog_SVNVERSION="found"
4360 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4361 break 2
4363 done
4364 done
4365 IFS=$as_save_IFS
4367 test -z "$ac_cv_prog_SVNVERSION" && ac_cv_prog_SVNVERSION="not-found"
4370 SVNVERSION=$ac_cv_prog_SVNVERSION
4371 if test -n "$SVNVERSION"; then
4372 { echo "$as_me:$LINENO: result: $SVNVERSION" >&5
4373 echo "${ECHO_T}$SVNVERSION" >&6; }
4374 else
4375 { echo "$as_me:$LINENO: result: no" >&5
4376 echo "${ECHO_T}no" >&6; }
4380 if test $SVNVERSION = found
4381 then
4382 SVNVERSION="svnversion \$(srcdir)"
4383 else
4384 SVNVERSION="echo Unversioned directory"
4387 case $MACHDEP in
4388 bsdos*|hp*|HP*)
4389 # install -d does not work on BSDI or HP-UX
4390 if test -z "$INSTALL"
4391 then
4392 INSTALL="${srcdir}/install-sh -c"
4394 esac
4395 ac_aux_dir=
4396 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
4397 if test -f "$ac_dir/install-sh"; then
4398 ac_aux_dir=$ac_dir
4399 ac_install_sh="$ac_aux_dir/install-sh -c"
4400 break
4401 elif 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/shtool"; then
4406 ac_aux_dir=$ac_dir
4407 ac_install_sh="$ac_aux_dir/shtool install -c"
4408 break
4410 done
4411 if test -z "$ac_aux_dir"; then
4412 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
4413 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
4414 { (exit 1); exit 1; }; }
4417 # These three variables are undocumented and unsupported,
4418 # and are intended to be withdrawn in a future Autoconf release.
4419 # They can cause serious problems if a builder's source tree is in a directory
4420 # whose full name contains unusual characters.
4421 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
4422 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
4423 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
4426 # Find a good install program. We prefer a C program (faster),
4427 # so one script is as good as another. But avoid the broken or
4428 # incompatible versions:
4429 # SysV /etc/install, /usr/sbin/install
4430 # SunOS /usr/etc/install
4431 # IRIX /sbin/install
4432 # AIX /bin/install
4433 # AmigaOS /C/install, which installs bootblocks on floppy discs
4434 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4435 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4436 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4437 # OS/2's system install, which has a completely different semantic
4438 # ./install, which can be erroneously created by make from ./install.sh.
4439 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4440 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
4441 if test -z "$INSTALL"; then
4442 if test "${ac_cv_path_install+set}" = set; then
4443 echo $ECHO_N "(cached) $ECHO_C" >&6
4444 else
4445 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4446 for as_dir in $PATH
4448 IFS=$as_save_IFS
4449 test -z "$as_dir" && as_dir=.
4450 # Account for people who put trailing slashes in PATH elements.
4451 case $as_dir/ in
4452 ./ | .// | /cC/* | \
4453 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4454 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4455 /usr/ucb/* ) ;;
4457 # OSF1 and SCO ODT 3.0 have their own names for install.
4458 # Don't use installbsd from OSF since it installs stuff as root
4459 # by default.
4460 for ac_prog in ginstall scoinst install; do
4461 for ac_exec_ext in '' $ac_executable_extensions; do
4462 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4463 if test $ac_prog = install &&
4464 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4465 # AIX install. It has an incompatible calling convention.
4467 elif test $ac_prog = install &&
4468 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4469 # program-specific install script used by HP pwplus--don't use.
4471 else
4472 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4473 break 3
4476 done
4477 done
4479 esac
4480 done
4481 IFS=$as_save_IFS
4485 if test "${ac_cv_path_install+set}" = set; then
4486 INSTALL=$ac_cv_path_install
4487 else
4488 # As a last resort, use the slow shell script. Don't cache a
4489 # value for INSTALL within a source directory, because that will
4490 # break other packages using the cache if that directory is
4491 # removed, or if the value is a relative name.
4492 INSTALL=$ac_install_sh
4495 { echo "$as_me:$LINENO: result: $INSTALL" >&5
4496 echo "${ECHO_T}$INSTALL" >&6; }
4498 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4499 # It thinks the first close brace ends the variable substitution.
4500 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4502 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4504 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4507 # Not every filesystem supports hard links
4509 if test -z "$LN" ; then
4510 case $ac_sys_system in
4511 BeOS*) LN="ln -s";;
4512 CYGWIN*) LN="ln -s";;
4513 atheos*) LN="ln -s";;
4514 *) LN=ln;;
4515 esac
4518 # Check for --with-pydebug
4519 { echo "$as_me:$LINENO: checking for --with-pydebug" >&5
4520 echo $ECHO_N "checking for --with-pydebug... $ECHO_C" >&6; }
4522 # Check whether --with-pydebug was given.
4523 if test "${with_pydebug+set}" = set; then
4524 withval=$with_pydebug;
4525 if test "$withval" != no
4526 then
4528 cat >>confdefs.h <<\_ACEOF
4529 #define Py_DEBUG 1
4530 _ACEOF
4532 { echo "$as_me:$LINENO: result: yes" >&5
4533 echo "${ECHO_T}yes" >&6; };
4534 Py_DEBUG='true'
4535 else { echo "$as_me:$LINENO: result: no" >&5
4536 echo "${ECHO_T}no" >&6; }; Py_DEBUG='false'
4538 else
4539 { echo "$as_me:$LINENO: result: no" >&5
4540 echo "${ECHO_T}no" >&6; }
4544 # XXX Shouldn't the code above that fiddles with BASECFLAGS and OPT be
4545 # merged with this chunk of code?
4547 # Optimizer/debugger flags
4548 # ------------------------
4549 # (The following bit of code is complicated enough - please keep things
4550 # indented properly. Just pretend you're editing Python code. ;-)
4552 # There are two parallel sets of case statements below, one that checks to
4553 # see if OPT was set and one that does BASECFLAGS setting based upon
4554 # compiler and platform. BASECFLAGS tweaks need to be made even if the
4555 # user set OPT.
4557 # tweak OPT based on compiler and platform, only if the user didn't set
4558 # it on the command line
4560 if test -z "$OPT"
4561 then
4562 case $GCC in
4563 yes)
4564 if test "$CC" != 'g++' ; then
4565 STRICT_PROTO="-Wstrict-prototypes"
4567 # For gcc 4.x we need to use -fwrapv so lets check if its supported
4568 if "$CC" -v --help 2>/dev/null |grep -- -fwrapv > /dev/null; then
4569 WRAP="-fwrapv"
4571 case $ac_cv_prog_cc_g in
4572 yes)
4573 if test "$Py_DEBUG" = 'true' ; then
4574 # Optimization messes up debuggers, so turn it off for
4575 # debug builds.
4576 OPT="-g -Wall $STRICT_PROTO"
4577 else
4578 OPT="-g $WRAP -O3 -Wall $STRICT_PROTO"
4582 OPT="-O3 -Wall $STRICT_PROTO"
4584 esac
4585 case $ac_sys_system in
4586 SCO_SV*) OPT="$OPT -m486 -DSCO5"
4588 esac
4592 OPT="-O"
4594 esac
4599 # The -arch flags for universal builds on OSX
4600 UNIVERSAL_ARCH_FLAGS=
4603 # tweak BASECFLAGS based on compiler and platform
4604 case $GCC in
4605 yes)
4606 # Python violates C99 rules, by casting between incompatible
4607 # pointer types. GCC may generate bad code as a result of that,
4608 # so use -fno-strict-aliasing if supported.
4609 { echo "$as_me:$LINENO: checking whether $CC accepts -fno-strict-aliasing" >&5
4610 echo $ECHO_N "checking whether $CC accepts -fno-strict-aliasing... $ECHO_C" >&6; }
4611 ac_save_cc="$CC"
4612 CC="$CC -fno-strict-aliasing"
4613 if test "${ac_cv_no_strict_aliasing_ok+set}" = set; then
4614 echo $ECHO_N "(cached) $ECHO_C" >&6
4615 else
4616 cat >conftest.$ac_ext <<_ACEOF
4617 /* confdefs.h. */
4618 _ACEOF
4619 cat confdefs.h >>conftest.$ac_ext
4620 cat >>conftest.$ac_ext <<_ACEOF
4621 /* end confdefs.h. */
4624 main ()
4626 int main() { return 0; }
4628 return 0;
4630 _ACEOF
4631 rm -f conftest.$ac_objext
4632 if { (ac_try="$ac_compile"
4633 case "(($ac_try" in
4634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4635 *) ac_try_echo=$ac_try;;
4636 esac
4637 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4638 (eval "$ac_compile") 2>conftest.er1
4639 ac_status=$?
4640 grep -v '^ *+' conftest.er1 >conftest.err
4641 rm -f conftest.er1
4642 cat conftest.err >&5
4643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4644 (exit $ac_status); } && {
4645 test -z "$ac_c_werror_flag" ||
4646 test ! -s conftest.err
4647 } && test -s conftest.$ac_objext; then
4648 ac_cv_no_strict_aliasing_ok=yes
4649 else
4650 echo "$as_me: failed program was:" >&5
4651 sed 's/^/| /' conftest.$ac_ext >&5
4653 ac_cv_no_strict_aliasing_ok=no
4656 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4659 CC="$ac_save_cc"
4660 { echo "$as_me:$LINENO: result: $ac_cv_no_strict_aliasing_ok" >&5
4661 echo "${ECHO_T}$ac_cv_no_strict_aliasing_ok" >&6; }
4662 if test $ac_cv_no_strict_aliasing_ok = yes
4663 then
4664 BASECFLAGS="$BASECFLAGS -fno-strict-aliasing"
4667 # if using gcc on alpha, use -mieee to get (near) full IEEE 754
4668 # support. Without this, treatment of subnormals doesn't follow
4669 # the standard.
4670 case $ac_sys_machine in
4671 alpha*)
4672 BASECFLAGS="$BASECFLAGS -mieee"
4674 esac
4676 case $ac_sys_system in
4677 SCO_SV*)
4678 BASECFLAGS="$BASECFLAGS -m486 -DSCO5"
4680 # is there any other compiler on Darwin besides gcc?
4681 Darwin*)
4682 # -Wno-long-double, -no-cpp-precomp, and -mno-fused-madd
4683 # used to be here, but non-Apple gcc doesn't accept them.
4686 if test "${enable_universalsdk}"; then
4687 UNIVERSAL_ARCH_FLAGS=""
4688 if test "$UNIVERSAL_ARCHS" = "32-bit" ; then
4689 UNIVERSAL_ARCH_FLAGS="-arch ppc -arch i386"
4690 ARCH_RUN_32BIT=""
4691 LIPO_32BIT_FLAGS="-extract ppc7400 -extract i386"
4693 elif test "$UNIVERSAL_ARCHS" = "64-bit" ; then
4694 UNIVERSAL_ARCH_FLAGS="-arch ppc64 -arch x86_64"
4695 LIPO_32BIT_FLAGS=""
4696 ARCH_RUN_32BIT="true"
4698 elif test "$UNIVERSAL_ARCHS" = "all" ; then
4699 UNIVERSAL_ARCH_FLAGS="-arch i386 -arch ppc -arch ppc64 -arch x86_64"
4700 LIPO_32BIT_FLAGS="-extract ppc7400 -extract i386"
4701 ARCH_RUN_32BIT="arch -i386 -ppc"
4703 elif test "$UNIVERSAL_ARCHS" = "intel" ; then
4704 UNIVERSAL_ARCH_FLAGS="-arch i386 -arch x86_64"
4705 LIPO_32BIT_FLAGS="-extract i386"
4706 ARCH_RUN_32BIT="arch -i386"
4708 elif test "$UNIVERSAL_ARCHS" = "3-way" ; then
4709 UNIVERSAL_ARCH_FLAGS="-arch i386 -arch ppc -arch x86_64"
4710 LIPO_32BIT_FLAGS="-extract ppc7400 -extract i386"
4711 ARCH_RUN_32BIT="arch -i386 -ppc7400"
4713 else
4714 { { echo "$as_me:$LINENO: error: proper usage is --with-universal-arch=32-bit|64-bit|all|intel|3-way" >&5
4715 echo "$as_me: error: proper usage is --with-universal-arch=32-bit|64-bit|all|intel|3-way" >&2;}
4716 { (exit 1); exit 1; }; }
4721 BASECFLAGS="${UNIVERSAL_ARCH_FLAGS} -isysroot ${UNIVERSALSDK} ${BASECFLAGS}"
4722 tgt=`sw_vers -productVersion | sed 's/\(10\.[0-9]*\).*/\1/'`
4723 if test "${UNIVERSALSDK}" != "/" -a "${tgt}" '>' '10.4' ; then
4724 CFLAGS="${UNIVERSAL_ARCH_FLAGS} -isysroot ${UNIVERSALSDK} ${CFLAGS}"
4728 # Calculate the right deployment target for this build.
4730 cur_target=`sw_vers -productVersion | sed 's/\(10\.[0-9]*\).*/\1/'`
4731 if test ${cur_target} '>' 10.2; then
4732 cur_target=10.3
4733 if test ${enable_universalsdk}; then
4734 if test "${UNIVERSAL_ARCHS}" = "all"; then
4735 # Ensure that the default platform for a
4736 # 4-way universal build is OSX 10.5,
4737 # that's the first OS release where
4738 # 4-way builds make sense.
4739 cur_target='10.5'
4741 elif test "${UNIVERSAL_ARCHS}" = "3-way"; then
4742 cur_target='10.5'
4744 elif test "${UNIVERSAL_ARCHS}" = "intel"; then
4745 cur_target='10.5'
4747 elif test "${UNIVERSAL_ARCHS}" = "64-bit"; then
4748 cur_target='10.5'
4750 else
4751 if test `arch` = "i386"; then
4752 # On Intel macs default to a deployment
4753 # target of 10.4, that's the first OSX
4754 # release with Intel support.
4755 cur_target="10.4"
4759 CONFIGURE_MACOSX_DEPLOYMENT_TARGET=${MACOSX_DEPLOYMENT_TARGET-${cur_target}}
4761 # Make sure that MACOSX_DEPLOYMENT_TARGET is set in the
4762 # environment with a value that is the same as what we'll use
4763 # in the Makefile to ensure that we'll get the same compiler
4764 # environment during configure and build time.
4765 MACOSX_DEPLOYMENT_TARGET="$CONFIGURE_MACOSX_DEPLOYMENT_TARGET"
4766 export MACOSX_DEPLOYMENT_TARGET
4767 EXPORT_MACOSX_DEPLOYMENT_TARGET=''
4770 OSF*)
4771 BASECFLAGS="$BASECFLAGS -mieee"
4773 esac
4777 case $ac_sys_system in
4778 OpenUNIX*|UnixWare*)
4779 BASECFLAGS="$BASECFLAGS -K pentium,host,inline,loop_unroll,alloca "
4781 OSF*)
4782 BASECFLAGS="$BASECFLAGS -ieee -std"
4784 SCO_SV*)
4785 BASECFLAGS="$BASECFLAGS -belf -Ki486 -DSCO5"
4787 esac
4789 esac
4791 if test "$Py_DEBUG" = 'true'; then
4793 else
4794 OPT="-DNDEBUG $OPT"
4797 if test "$ac_arch_flags"
4798 then
4799 BASECFLAGS="$BASECFLAGS $ac_arch_flags"
4802 # disable check for icc since it seems to pass, but generates a warning
4803 if test "$CC" = icc
4804 then
4805 ac_cv_opt_olimit_ok=no
4808 { echo "$as_me:$LINENO: checking whether $CC accepts -OPT:Olimit=0" >&5
4809 echo $ECHO_N "checking whether $CC accepts -OPT:Olimit=0... $ECHO_C" >&6; }
4810 if test "${ac_cv_opt_olimit_ok+set}" = set; then
4811 echo $ECHO_N "(cached) $ECHO_C" >&6
4812 else
4813 ac_save_cc="$CC"
4814 CC="$CC -OPT:Olimit=0"
4815 cat >conftest.$ac_ext <<_ACEOF
4816 /* confdefs.h. */
4817 _ACEOF
4818 cat confdefs.h >>conftest.$ac_ext
4819 cat >>conftest.$ac_ext <<_ACEOF
4820 /* end confdefs.h. */
4823 main ()
4825 int main() { return 0; }
4827 return 0;
4829 _ACEOF
4830 rm -f conftest.$ac_objext
4831 if { (ac_try="$ac_compile"
4832 case "(($ac_try" in
4833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4834 *) ac_try_echo=$ac_try;;
4835 esac
4836 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4837 (eval "$ac_compile") 2>conftest.er1
4838 ac_status=$?
4839 grep -v '^ *+' conftest.er1 >conftest.err
4840 rm -f conftest.er1
4841 cat conftest.err >&5
4842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4843 (exit $ac_status); } && {
4844 test -z "$ac_c_werror_flag" ||
4845 test ! -s conftest.err
4846 } && test -s conftest.$ac_objext; then
4847 ac_cv_opt_olimit_ok=yes
4848 else
4849 echo "$as_me: failed program was:" >&5
4850 sed 's/^/| /' conftest.$ac_ext >&5
4852 ac_cv_opt_olimit_ok=no
4855 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4856 CC="$ac_save_cc"
4859 { echo "$as_me:$LINENO: result: $ac_cv_opt_olimit_ok" >&5
4860 echo "${ECHO_T}$ac_cv_opt_olimit_ok" >&6; }
4861 if test $ac_cv_opt_olimit_ok = yes; then
4862 case $ac_sys_system in
4863 # XXX is this branch needed? On MacOSX 10.2.2 the result of the
4864 # olimit_ok test is "no". Is it "yes" in some other Darwin-esque
4865 # environment?
4866 Darwin*)
4869 BASECFLAGS="$BASECFLAGS -OPT:Olimit=0"
4871 esac
4872 else
4873 { echo "$as_me:$LINENO: checking whether $CC accepts -Olimit 1500" >&5
4874 echo $ECHO_N "checking whether $CC accepts -Olimit 1500... $ECHO_C" >&6; }
4875 if test "${ac_cv_olimit_ok+set}" = set; then
4876 echo $ECHO_N "(cached) $ECHO_C" >&6
4877 else
4878 ac_save_cc="$CC"
4879 CC="$CC -Olimit 1500"
4880 cat >conftest.$ac_ext <<_ACEOF
4881 /* confdefs.h. */
4882 _ACEOF
4883 cat confdefs.h >>conftest.$ac_ext
4884 cat >>conftest.$ac_ext <<_ACEOF
4885 /* end confdefs.h. */
4888 main ()
4890 int main() { return 0; }
4892 return 0;
4894 _ACEOF
4895 rm -f conftest.$ac_objext
4896 if { (ac_try="$ac_compile"
4897 case "(($ac_try" in
4898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4899 *) ac_try_echo=$ac_try;;
4900 esac
4901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4902 (eval "$ac_compile") 2>conftest.er1
4903 ac_status=$?
4904 grep -v '^ *+' conftest.er1 >conftest.err
4905 rm -f conftest.er1
4906 cat conftest.err >&5
4907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4908 (exit $ac_status); } && {
4909 test -z "$ac_c_werror_flag" ||
4910 test ! -s conftest.err
4911 } && test -s conftest.$ac_objext; then
4912 ac_cv_olimit_ok=yes
4913 else
4914 echo "$as_me: failed program was:" >&5
4915 sed 's/^/| /' conftest.$ac_ext >&5
4917 ac_cv_olimit_ok=no
4920 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4921 CC="$ac_save_cc"
4924 { echo "$as_me:$LINENO: result: $ac_cv_olimit_ok" >&5
4925 echo "${ECHO_T}$ac_cv_olimit_ok" >&6; }
4926 if test $ac_cv_olimit_ok = yes; then
4927 BASECFLAGS="$BASECFLAGS -Olimit 1500"
4931 # Check whether GCC supports PyArg_ParseTuple format
4932 if test "$GCC" = "yes"
4933 then
4934 { echo "$as_me:$LINENO: checking whether gcc supports ParseTuple __format__" >&5
4935 echo $ECHO_N "checking whether gcc supports ParseTuple __format__... $ECHO_C" >&6; }
4936 save_CFLAGS=$CFLAGS
4937 CFLAGS="$CFLAGS -Werror"
4938 cat >conftest.$ac_ext <<_ACEOF
4939 /* confdefs.h. */
4940 _ACEOF
4941 cat confdefs.h >>conftest.$ac_ext
4942 cat >>conftest.$ac_ext <<_ACEOF
4943 /* end confdefs.h. */
4945 void f(char*,...)__attribute((format(PyArg_ParseTuple, 1, 2)));
4948 main ()
4952 return 0;
4954 _ACEOF
4955 rm -f conftest.$ac_objext
4956 if { (ac_try="$ac_compile"
4957 case "(($ac_try" in
4958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4959 *) ac_try_echo=$ac_try;;
4960 esac
4961 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4962 (eval "$ac_compile") 2>conftest.er1
4963 ac_status=$?
4964 grep -v '^ *+' conftest.er1 >conftest.err
4965 rm -f conftest.er1
4966 cat conftest.err >&5
4967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4968 (exit $ac_status); } && {
4969 test -z "$ac_c_werror_flag" ||
4970 test ! -s conftest.err
4971 } && test -s conftest.$ac_objext; then
4973 cat >>confdefs.h <<\_ACEOF
4974 #define HAVE_ATTRIBUTE_FORMAT_PARSETUPLE 1
4975 _ACEOF
4977 { echo "$as_me:$LINENO: result: yes" >&5
4978 echo "${ECHO_T}yes" >&6; }
4979 else
4980 echo "$as_me: failed program was:" >&5
4981 sed 's/^/| /' conftest.$ac_ext >&5
4983 { echo "$as_me:$LINENO: result: no" >&5
4984 echo "${ECHO_T}no" >&6; }
4988 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4989 CFLAGS=$save_CFLAGS
4992 # On some compilers, pthreads are available without further options
4993 # (e.g. MacOS X). On some of these systems, the compiler will not
4994 # complain if unaccepted options are passed (e.g. gcc on Mac OS X).
4995 # So we have to see first whether pthreads are available without
4996 # options before we can check whether -Kpthread improves anything.
4997 { echo "$as_me:$LINENO: checking whether pthreads are available without options" >&5
4998 echo $ECHO_N "checking whether pthreads are available without options... $ECHO_C" >&6; }
4999 if test "${ac_cv_pthread_is_default+set}" = set; then
5000 echo $ECHO_N "(cached) $ECHO_C" >&6
5001 else
5002 if test "$cross_compiling" = yes; then
5003 ac_cv_pthread_is_default=no
5004 else
5005 cat >conftest.$ac_ext <<_ACEOF
5006 /* confdefs.h. */
5007 _ACEOF
5008 cat confdefs.h >>conftest.$ac_ext
5009 cat >>conftest.$ac_ext <<_ACEOF
5010 /* end confdefs.h. */
5012 #include <pthread.h>
5014 void* routine(void* p){return NULL;}
5016 int main(){
5017 pthread_t p;
5018 if(pthread_create(&p,NULL,routine,NULL)!=0)
5019 return 1;
5020 (void)pthread_detach(p);
5021 return 0;
5024 _ACEOF
5025 rm -f conftest$ac_exeext
5026 if { (ac_try="$ac_link"
5027 case "(($ac_try" in
5028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5029 *) ac_try_echo=$ac_try;;
5030 esac
5031 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5032 (eval "$ac_link") 2>&5
5033 ac_status=$?
5034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5035 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5036 { (case "(($ac_try" in
5037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5038 *) ac_try_echo=$ac_try;;
5039 esac
5040 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5041 (eval "$ac_try") 2>&5
5042 ac_status=$?
5043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5044 (exit $ac_status); }; }; then
5046 ac_cv_pthread_is_default=yes
5047 ac_cv_kthread=no
5048 ac_cv_pthread=no
5050 else
5051 echo "$as_me: program exited with status $ac_status" >&5
5052 echo "$as_me: failed program was:" >&5
5053 sed 's/^/| /' conftest.$ac_ext >&5
5055 ( exit $ac_status )
5056 ac_cv_pthread_is_default=no
5058 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5065 { echo "$as_me:$LINENO: result: $ac_cv_pthread_is_default" >&5
5066 echo "${ECHO_T}$ac_cv_pthread_is_default" >&6; }
5069 if test $ac_cv_pthread_is_default = yes
5070 then
5071 ac_cv_kpthread=no
5072 else
5073 # -Kpthread, if available, provides the right #defines
5074 # and linker options to make pthread_create available
5075 # Some compilers won't report that they do not support -Kpthread,
5076 # so we need to run a program to see whether it really made the
5077 # function available.
5078 { echo "$as_me:$LINENO: checking whether $CC accepts -Kpthread" >&5
5079 echo $ECHO_N "checking whether $CC accepts -Kpthread... $ECHO_C" >&6; }
5080 if test "${ac_cv_kpthread+set}" = set; then
5081 echo $ECHO_N "(cached) $ECHO_C" >&6
5082 else
5083 ac_save_cc="$CC"
5084 CC="$CC -Kpthread"
5085 if test "$cross_compiling" = yes; then
5086 ac_cv_kpthread=no
5087 else
5088 cat >conftest.$ac_ext <<_ACEOF
5089 /* confdefs.h. */
5090 _ACEOF
5091 cat confdefs.h >>conftest.$ac_ext
5092 cat >>conftest.$ac_ext <<_ACEOF
5093 /* end confdefs.h. */
5095 #include <pthread.h>
5097 void* routine(void* p){return NULL;}
5099 int main(){
5100 pthread_t p;
5101 if(pthread_create(&p,NULL,routine,NULL)!=0)
5102 return 1;
5103 (void)pthread_detach(p);
5104 return 0;
5107 _ACEOF
5108 rm -f conftest$ac_exeext
5109 if { (ac_try="$ac_link"
5110 case "(($ac_try" in
5111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5112 *) ac_try_echo=$ac_try;;
5113 esac
5114 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5115 (eval "$ac_link") 2>&5
5116 ac_status=$?
5117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5118 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5119 { (case "(($ac_try" in
5120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5121 *) ac_try_echo=$ac_try;;
5122 esac
5123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5124 (eval "$ac_try") 2>&5
5125 ac_status=$?
5126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5127 (exit $ac_status); }; }; then
5128 ac_cv_kpthread=yes
5129 else
5130 echo "$as_me: program exited with status $ac_status" >&5
5131 echo "$as_me: failed program was:" >&5
5132 sed 's/^/| /' conftest.$ac_ext >&5
5134 ( exit $ac_status )
5135 ac_cv_kpthread=no
5137 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5141 CC="$ac_save_cc"
5144 { echo "$as_me:$LINENO: result: $ac_cv_kpthread" >&5
5145 echo "${ECHO_T}$ac_cv_kpthread" >&6; }
5148 if test $ac_cv_kpthread = no -a $ac_cv_pthread_is_default = no
5149 then
5150 # -Kthread, if available, provides the right #defines
5151 # and linker options to make pthread_create available
5152 # Some compilers won't report that they do not support -Kthread,
5153 # so we need to run a program to see whether it really made the
5154 # function available.
5155 { echo "$as_me:$LINENO: checking whether $CC accepts -Kthread" >&5
5156 echo $ECHO_N "checking whether $CC accepts -Kthread... $ECHO_C" >&6; }
5157 if test "${ac_cv_kthread+set}" = set; then
5158 echo $ECHO_N "(cached) $ECHO_C" >&6
5159 else
5160 ac_save_cc="$CC"
5161 CC="$CC -Kthread"
5162 if test "$cross_compiling" = yes; then
5163 ac_cv_kthread=no
5164 else
5165 cat >conftest.$ac_ext <<_ACEOF
5166 /* confdefs.h. */
5167 _ACEOF
5168 cat confdefs.h >>conftest.$ac_ext
5169 cat >>conftest.$ac_ext <<_ACEOF
5170 /* end confdefs.h. */
5172 #include <pthread.h>
5174 void* routine(void* p){return NULL;}
5176 int main(){
5177 pthread_t p;
5178 if(pthread_create(&p,NULL,routine,NULL)!=0)
5179 return 1;
5180 (void)pthread_detach(p);
5181 return 0;
5184 _ACEOF
5185 rm -f conftest$ac_exeext
5186 if { (ac_try="$ac_link"
5187 case "(($ac_try" in
5188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5189 *) ac_try_echo=$ac_try;;
5190 esac
5191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5192 (eval "$ac_link") 2>&5
5193 ac_status=$?
5194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5195 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5196 { (case "(($ac_try" in
5197 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5198 *) ac_try_echo=$ac_try;;
5199 esac
5200 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5201 (eval "$ac_try") 2>&5
5202 ac_status=$?
5203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5204 (exit $ac_status); }; }; then
5205 ac_cv_kthread=yes
5206 else
5207 echo "$as_me: program exited with status $ac_status" >&5
5208 echo "$as_me: failed program was:" >&5
5209 sed 's/^/| /' conftest.$ac_ext >&5
5211 ( exit $ac_status )
5212 ac_cv_kthread=no
5214 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5218 CC="$ac_save_cc"
5221 { echo "$as_me:$LINENO: result: $ac_cv_kthread" >&5
5222 echo "${ECHO_T}$ac_cv_kthread" >&6; }
5225 if test $ac_cv_kthread = no -a $ac_cv_pthread_is_default = no
5226 then
5227 # -pthread, if available, provides the right #defines
5228 # and linker options to make pthread_create available
5229 # Some compilers won't report that they do not support -pthread,
5230 # so we need to run a program to see whether it really made the
5231 # function available.
5232 { echo "$as_me:$LINENO: checking whether $CC accepts -pthread" >&5
5233 echo $ECHO_N "checking whether $CC accepts -pthread... $ECHO_C" >&6; }
5234 if test "${ac_cv_thread+set}" = set; then
5235 echo $ECHO_N "(cached) $ECHO_C" >&6
5236 else
5237 ac_save_cc="$CC"
5238 CC="$CC -pthread"
5239 if test "$cross_compiling" = yes; then
5240 ac_cv_pthread=no
5241 else
5242 cat >conftest.$ac_ext <<_ACEOF
5243 /* confdefs.h. */
5244 _ACEOF
5245 cat confdefs.h >>conftest.$ac_ext
5246 cat >>conftest.$ac_ext <<_ACEOF
5247 /* end confdefs.h. */
5249 #include <pthread.h>
5251 void* routine(void* p){return NULL;}
5253 int main(){
5254 pthread_t p;
5255 if(pthread_create(&p,NULL,routine,NULL)!=0)
5256 return 1;
5257 (void)pthread_detach(p);
5258 return 0;
5261 _ACEOF
5262 rm -f conftest$ac_exeext
5263 if { (ac_try="$ac_link"
5264 case "(($ac_try" in
5265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5266 *) ac_try_echo=$ac_try;;
5267 esac
5268 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5269 (eval "$ac_link") 2>&5
5270 ac_status=$?
5271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5272 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5273 { (case "(($ac_try" in
5274 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5275 *) ac_try_echo=$ac_try;;
5276 esac
5277 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5278 (eval "$ac_try") 2>&5
5279 ac_status=$?
5280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5281 (exit $ac_status); }; }; then
5282 ac_cv_pthread=yes
5283 else
5284 echo "$as_me: program exited with status $ac_status" >&5
5285 echo "$as_me: failed program was:" >&5
5286 sed 's/^/| /' conftest.$ac_ext >&5
5288 ( exit $ac_status )
5289 ac_cv_pthread=no
5291 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5295 CC="$ac_save_cc"
5298 { echo "$as_me:$LINENO: result: $ac_cv_pthread" >&5
5299 echo "${ECHO_T}$ac_cv_pthread" >&6; }
5302 # If we have set a CC compiler flag for thread support then
5303 # check if it works for CXX, too.
5304 ac_cv_cxx_thread=no
5305 if test ! -z "$CXX"
5306 then
5307 { echo "$as_me:$LINENO: checking whether $CXX also accepts flags for thread support" >&5
5308 echo $ECHO_N "checking whether $CXX also accepts flags for thread support... $ECHO_C" >&6; }
5309 ac_save_cxx="$CXX"
5311 if test "$ac_cv_kpthread" = "yes"
5312 then
5313 CXX="$CXX -Kpthread"
5314 ac_cv_cxx_thread=yes
5315 elif test "$ac_cv_kthread" = "yes"
5316 then
5317 CXX="$CXX -Kthread"
5318 ac_cv_cxx_thread=yes
5319 elif test "$ac_cv_pthread" = "yes"
5320 then
5321 CXX="$CXX -pthread"
5322 ac_cv_cxx_thread=yes
5325 if test $ac_cv_cxx_thread = yes
5326 then
5327 echo 'void foo();int main(){foo();}void foo(){}' > conftest.$ac_ext
5328 $CXX -c conftest.$ac_ext 2>&5
5329 if $CXX -o conftest$ac_exeext conftest.$ac_objext 2>&5 \
5330 && test -s conftest$ac_exeext && ./conftest$ac_exeext
5331 then
5332 ac_cv_cxx_thread=yes
5333 else
5334 ac_cv_cxx_thread=no
5336 rm -fr conftest*
5338 { echo "$as_me:$LINENO: result: $ac_cv_cxx_thread" >&5
5339 echo "${ECHO_T}$ac_cv_cxx_thread" >&6; }
5341 CXX="$ac_save_cxx"
5344 # checks for header files
5345 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5346 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
5347 if test "${ac_cv_header_stdc+set}" = set; then
5348 echo $ECHO_N "(cached) $ECHO_C" >&6
5349 else
5350 cat >conftest.$ac_ext <<_ACEOF
5351 /* confdefs.h. */
5352 _ACEOF
5353 cat confdefs.h >>conftest.$ac_ext
5354 cat >>conftest.$ac_ext <<_ACEOF
5355 /* end confdefs.h. */
5356 #include <stdlib.h>
5357 #include <stdarg.h>
5358 #include <string.h>
5359 #include <float.h>
5362 main ()
5366 return 0;
5368 _ACEOF
5369 rm -f conftest.$ac_objext
5370 if { (ac_try="$ac_compile"
5371 case "(($ac_try" in
5372 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5373 *) ac_try_echo=$ac_try;;
5374 esac
5375 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5376 (eval "$ac_compile") 2>conftest.er1
5377 ac_status=$?
5378 grep -v '^ *+' conftest.er1 >conftest.err
5379 rm -f conftest.er1
5380 cat conftest.err >&5
5381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5382 (exit $ac_status); } && {
5383 test -z "$ac_c_werror_flag" ||
5384 test ! -s conftest.err
5385 } && test -s conftest.$ac_objext; then
5386 ac_cv_header_stdc=yes
5387 else
5388 echo "$as_me: failed program was:" >&5
5389 sed 's/^/| /' conftest.$ac_ext >&5
5391 ac_cv_header_stdc=no
5394 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5396 if test $ac_cv_header_stdc = yes; then
5397 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5398 cat >conftest.$ac_ext <<_ACEOF
5399 /* confdefs.h. */
5400 _ACEOF
5401 cat confdefs.h >>conftest.$ac_ext
5402 cat >>conftest.$ac_ext <<_ACEOF
5403 /* end confdefs.h. */
5404 #include <string.h>
5406 _ACEOF
5407 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5408 $EGREP "memchr" >/dev/null 2>&1; then
5410 else
5411 ac_cv_header_stdc=no
5413 rm -f -r conftest*
5417 if test $ac_cv_header_stdc = yes; then
5418 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5419 cat >conftest.$ac_ext <<_ACEOF
5420 /* confdefs.h. */
5421 _ACEOF
5422 cat confdefs.h >>conftest.$ac_ext
5423 cat >>conftest.$ac_ext <<_ACEOF
5424 /* end confdefs.h. */
5425 #include <stdlib.h>
5427 _ACEOF
5428 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5429 $EGREP "free" >/dev/null 2>&1; then
5431 else
5432 ac_cv_header_stdc=no
5434 rm -f -r conftest*
5438 if test $ac_cv_header_stdc = yes; then
5439 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5440 if test "$cross_compiling" = yes; then
5442 else
5443 cat >conftest.$ac_ext <<_ACEOF
5444 /* confdefs.h. */
5445 _ACEOF
5446 cat confdefs.h >>conftest.$ac_ext
5447 cat >>conftest.$ac_ext <<_ACEOF
5448 /* end confdefs.h. */
5449 #include <ctype.h>
5450 #include <stdlib.h>
5451 #if ((' ' & 0x0FF) == 0x020)
5452 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5453 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5454 #else
5455 # define ISLOWER(c) \
5456 (('a' <= (c) && (c) <= 'i') \
5457 || ('j' <= (c) && (c) <= 'r') \
5458 || ('s' <= (c) && (c) <= 'z'))
5459 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5460 #endif
5462 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5464 main ()
5466 int i;
5467 for (i = 0; i < 256; i++)
5468 if (XOR (islower (i), ISLOWER (i))
5469 || toupper (i) != TOUPPER (i))
5470 return 2;
5471 return 0;
5473 _ACEOF
5474 rm -f conftest$ac_exeext
5475 if { (ac_try="$ac_link"
5476 case "(($ac_try" in
5477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5478 *) ac_try_echo=$ac_try;;
5479 esac
5480 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5481 (eval "$ac_link") 2>&5
5482 ac_status=$?
5483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5484 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5485 { (case "(($ac_try" in
5486 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5487 *) ac_try_echo=$ac_try;;
5488 esac
5489 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5490 (eval "$ac_try") 2>&5
5491 ac_status=$?
5492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5493 (exit $ac_status); }; }; then
5495 else
5496 echo "$as_me: program exited with status $ac_status" >&5
5497 echo "$as_me: failed program was:" >&5
5498 sed 's/^/| /' conftest.$ac_ext >&5
5500 ( exit $ac_status )
5501 ac_cv_header_stdc=no
5503 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5509 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5510 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
5511 if test $ac_cv_header_stdc = yes; then
5513 cat >>confdefs.h <<\_ACEOF
5514 #define STDC_HEADERS 1
5515 _ACEOF
5519 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5529 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5530 inttypes.h stdint.h unistd.h
5532 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5533 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5534 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5535 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5536 echo $ECHO_N "(cached) $ECHO_C" >&6
5537 else
5538 cat >conftest.$ac_ext <<_ACEOF
5539 /* confdefs.h. */
5540 _ACEOF
5541 cat confdefs.h >>conftest.$ac_ext
5542 cat >>conftest.$ac_ext <<_ACEOF
5543 /* end confdefs.h. */
5544 $ac_includes_default
5546 #include <$ac_header>
5547 _ACEOF
5548 rm -f conftest.$ac_objext
5549 if { (ac_try="$ac_compile"
5550 case "(($ac_try" in
5551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5552 *) ac_try_echo=$ac_try;;
5553 esac
5554 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5555 (eval "$ac_compile") 2>conftest.er1
5556 ac_status=$?
5557 grep -v '^ *+' conftest.er1 >conftest.err
5558 rm -f conftest.er1
5559 cat conftest.err >&5
5560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5561 (exit $ac_status); } && {
5562 test -z "$ac_c_werror_flag" ||
5563 test ! -s conftest.err
5564 } && test -s conftest.$ac_objext; then
5565 eval "$as_ac_Header=yes"
5566 else
5567 echo "$as_me: failed program was:" >&5
5568 sed 's/^/| /' conftest.$ac_ext >&5
5570 eval "$as_ac_Header=no"
5573 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5575 ac_res=`eval echo '${'$as_ac_Header'}'`
5576 { echo "$as_me:$LINENO: result: $ac_res" >&5
5577 echo "${ECHO_T}$ac_res" >&6; }
5578 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5579 cat >>confdefs.h <<_ACEOF
5580 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5581 _ACEOF
5585 done
5642 for ac_header in asm/types.h conio.h curses.h direct.h dlfcn.h errno.h \
5643 fcntl.h grp.h \
5644 ieeefp.h io.h langinfo.h libintl.h ncurses.h poll.h process.h pthread.h \
5645 shadow.h signal.h stdint.h stropts.h termios.h thread.h \
5646 unistd.h utime.h \
5647 sys/audioio.h sys/bsdtty.h sys/epoll.h sys/event.h sys/file.h sys/loadavg.h \
5648 sys/lock.h sys/mkdev.h sys/modem.h \
5649 sys/param.h sys/poll.h sys/select.h sys/socket.h sys/statvfs.h sys/stat.h \
5650 sys/termio.h sys/time.h \
5651 sys/times.h sys/types.h sys/un.h sys/utsname.h sys/wait.h pty.h libutil.h \
5652 sys/resource.h netpacket/packet.h sysexits.h bluetooth.h \
5653 bluetooth/bluetooth.h linux/tipc.h
5655 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5656 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5657 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5658 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5659 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5660 echo $ECHO_N "(cached) $ECHO_C" >&6
5662 ac_res=`eval echo '${'$as_ac_Header'}'`
5663 { echo "$as_me:$LINENO: result: $ac_res" >&5
5664 echo "${ECHO_T}$ac_res" >&6; }
5665 else
5666 # Is the header compilable?
5667 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5668 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5669 cat >conftest.$ac_ext <<_ACEOF
5670 /* confdefs.h. */
5671 _ACEOF
5672 cat confdefs.h >>conftest.$ac_ext
5673 cat >>conftest.$ac_ext <<_ACEOF
5674 /* end confdefs.h. */
5675 $ac_includes_default
5676 #include <$ac_header>
5677 _ACEOF
5678 rm -f conftest.$ac_objext
5679 if { (ac_try="$ac_compile"
5680 case "(($ac_try" in
5681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5682 *) ac_try_echo=$ac_try;;
5683 esac
5684 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5685 (eval "$ac_compile") 2>conftest.er1
5686 ac_status=$?
5687 grep -v '^ *+' conftest.er1 >conftest.err
5688 rm -f conftest.er1
5689 cat conftest.err >&5
5690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5691 (exit $ac_status); } && {
5692 test -z "$ac_c_werror_flag" ||
5693 test ! -s conftest.err
5694 } && test -s conftest.$ac_objext; then
5695 ac_header_compiler=yes
5696 else
5697 echo "$as_me: failed program was:" >&5
5698 sed 's/^/| /' conftest.$ac_ext >&5
5700 ac_header_compiler=no
5703 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5704 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5705 echo "${ECHO_T}$ac_header_compiler" >&6; }
5707 # Is the header present?
5708 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5709 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5710 cat >conftest.$ac_ext <<_ACEOF
5711 /* confdefs.h. */
5712 _ACEOF
5713 cat confdefs.h >>conftest.$ac_ext
5714 cat >>conftest.$ac_ext <<_ACEOF
5715 /* end confdefs.h. */
5716 #include <$ac_header>
5717 _ACEOF
5718 if { (ac_try="$ac_cpp conftest.$ac_ext"
5719 case "(($ac_try" in
5720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5721 *) ac_try_echo=$ac_try;;
5722 esac
5723 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5724 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5725 ac_status=$?
5726 grep -v '^ *+' conftest.er1 >conftest.err
5727 rm -f conftest.er1
5728 cat conftest.err >&5
5729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5730 (exit $ac_status); } >/dev/null && {
5731 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5732 test ! -s conftest.err
5733 }; then
5734 ac_header_preproc=yes
5735 else
5736 echo "$as_me: failed program was:" >&5
5737 sed 's/^/| /' conftest.$ac_ext >&5
5739 ac_header_preproc=no
5742 rm -f conftest.err conftest.$ac_ext
5743 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5744 echo "${ECHO_T}$ac_header_preproc" >&6; }
5746 # So? What about this header?
5747 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5748 yes:no: )
5749 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5750 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5751 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5752 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5753 ac_header_preproc=yes
5755 no:yes:* )
5756 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5757 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5758 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5759 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5760 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5761 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5762 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5763 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5764 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5765 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5766 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5767 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5768 ( cat <<\_ASBOX
5769 ## -------------------------------------- ##
5770 ## Report this to http://bugs.python.org/ ##
5771 ## -------------------------------------- ##
5772 _ASBOX
5773 ) | sed "s/^/$as_me: WARNING: /" >&2
5775 esac
5776 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5777 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5778 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5779 echo $ECHO_N "(cached) $ECHO_C" >&6
5780 else
5781 eval "$as_ac_Header=\$ac_header_preproc"
5783 ac_res=`eval echo '${'$as_ac_Header'}'`
5784 { echo "$as_me:$LINENO: result: $ac_res" >&5
5785 echo "${ECHO_T}$ac_res" >&6; }
5788 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5789 cat >>confdefs.h <<_ACEOF
5790 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5791 _ACEOF
5795 done
5802 ac_header_dirent=no
5803 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
5804 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
5805 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
5806 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
5807 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5808 echo $ECHO_N "(cached) $ECHO_C" >&6
5809 else
5810 cat >conftest.$ac_ext <<_ACEOF
5811 /* confdefs.h. */
5812 _ACEOF
5813 cat confdefs.h >>conftest.$ac_ext
5814 cat >>conftest.$ac_ext <<_ACEOF
5815 /* end confdefs.h. */
5816 #include <sys/types.h>
5817 #include <$ac_hdr>
5820 main ()
5822 if ((DIR *) 0)
5823 return 0;
5825 return 0;
5827 _ACEOF
5828 rm -f conftest.$ac_objext
5829 if { (ac_try="$ac_compile"
5830 case "(($ac_try" in
5831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5832 *) ac_try_echo=$ac_try;;
5833 esac
5834 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5835 (eval "$ac_compile") 2>conftest.er1
5836 ac_status=$?
5837 grep -v '^ *+' conftest.er1 >conftest.err
5838 rm -f conftest.er1
5839 cat conftest.err >&5
5840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5841 (exit $ac_status); } && {
5842 test -z "$ac_c_werror_flag" ||
5843 test ! -s conftest.err
5844 } && test -s conftest.$ac_objext; then
5845 eval "$as_ac_Header=yes"
5846 else
5847 echo "$as_me: failed program was:" >&5
5848 sed 's/^/| /' conftest.$ac_ext >&5
5850 eval "$as_ac_Header=no"
5853 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5855 ac_res=`eval echo '${'$as_ac_Header'}'`
5856 { echo "$as_me:$LINENO: result: $ac_res" >&5
5857 echo "${ECHO_T}$ac_res" >&6; }
5858 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5859 cat >>confdefs.h <<_ACEOF
5860 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
5861 _ACEOF
5863 ac_header_dirent=$ac_hdr; break
5866 done
5867 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
5868 if test $ac_header_dirent = dirent.h; then
5869 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
5870 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
5871 if test "${ac_cv_search_opendir+set}" = set; then
5872 echo $ECHO_N "(cached) $ECHO_C" >&6
5873 else
5874 ac_func_search_save_LIBS=$LIBS
5875 cat >conftest.$ac_ext <<_ACEOF
5876 /* confdefs.h. */
5877 _ACEOF
5878 cat confdefs.h >>conftest.$ac_ext
5879 cat >>conftest.$ac_ext <<_ACEOF
5880 /* end confdefs.h. */
5882 /* Override any GCC internal prototype to avoid an error.
5883 Use char because int might match the return type of a GCC
5884 builtin and then its argument prototype would still apply. */
5885 #ifdef __cplusplus
5886 extern "C"
5887 #endif
5888 char opendir ();
5890 main ()
5892 return opendir ();
5894 return 0;
5896 _ACEOF
5897 for ac_lib in '' dir; do
5898 if test -z "$ac_lib"; then
5899 ac_res="none required"
5900 else
5901 ac_res=-l$ac_lib
5902 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5904 rm -f conftest.$ac_objext conftest$ac_exeext
5905 if { (ac_try="$ac_link"
5906 case "(($ac_try" in
5907 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5908 *) ac_try_echo=$ac_try;;
5909 esac
5910 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5911 (eval "$ac_link") 2>conftest.er1
5912 ac_status=$?
5913 grep -v '^ *+' conftest.er1 >conftest.err
5914 rm -f conftest.er1
5915 cat conftest.err >&5
5916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5917 (exit $ac_status); } && {
5918 test -z "$ac_c_werror_flag" ||
5919 test ! -s conftest.err
5920 } && test -s conftest$ac_exeext &&
5921 $as_test_x conftest$ac_exeext; then
5922 ac_cv_search_opendir=$ac_res
5923 else
5924 echo "$as_me: failed program was:" >&5
5925 sed 's/^/| /' conftest.$ac_ext >&5
5930 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5931 conftest$ac_exeext
5932 if test "${ac_cv_search_opendir+set}" = set; then
5933 break
5935 done
5936 if test "${ac_cv_search_opendir+set}" = set; then
5938 else
5939 ac_cv_search_opendir=no
5941 rm conftest.$ac_ext
5942 LIBS=$ac_func_search_save_LIBS
5944 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
5945 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
5946 ac_res=$ac_cv_search_opendir
5947 if test "$ac_res" != no; then
5948 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5952 else
5953 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
5954 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
5955 if test "${ac_cv_search_opendir+set}" = set; then
5956 echo $ECHO_N "(cached) $ECHO_C" >&6
5957 else
5958 ac_func_search_save_LIBS=$LIBS
5959 cat >conftest.$ac_ext <<_ACEOF
5960 /* confdefs.h. */
5961 _ACEOF
5962 cat confdefs.h >>conftest.$ac_ext
5963 cat >>conftest.$ac_ext <<_ACEOF
5964 /* end confdefs.h. */
5966 /* Override any GCC internal prototype to avoid an error.
5967 Use char because int might match the return type of a GCC
5968 builtin and then its argument prototype would still apply. */
5969 #ifdef __cplusplus
5970 extern "C"
5971 #endif
5972 char opendir ();
5974 main ()
5976 return opendir ();
5978 return 0;
5980 _ACEOF
5981 for ac_lib in '' x; do
5982 if test -z "$ac_lib"; then
5983 ac_res="none required"
5984 else
5985 ac_res=-l$ac_lib
5986 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5988 rm -f conftest.$ac_objext conftest$ac_exeext
5989 if { (ac_try="$ac_link"
5990 case "(($ac_try" in
5991 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5992 *) ac_try_echo=$ac_try;;
5993 esac
5994 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5995 (eval "$ac_link") 2>conftest.er1
5996 ac_status=$?
5997 grep -v '^ *+' conftest.er1 >conftest.err
5998 rm -f conftest.er1
5999 cat conftest.err >&5
6000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6001 (exit $ac_status); } && {
6002 test -z "$ac_c_werror_flag" ||
6003 test ! -s conftest.err
6004 } && test -s conftest$ac_exeext &&
6005 $as_test_x conftest$ac_exeext; then
6006 ac_cv_search_opendir=$ac_res
6007 else
6008 echo "$as_me: failed program was:" >&5
6009 sed 's/^/| /' conftest.$ac_ext >&5
6014 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6015 conftest$ac_exeext
6016 if test "${ac_cv_search_opendir+set}" = set; then
6017 break
6019 done
6020 if test "${ac_cv_search_opendir+set}" = set; then
6022 else
6023 ac_cv_search_opendir=no
6025 rm conftest.$ac_ext
6026 LIBS=$ac_func_search_save_LIBS
6028 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6029 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
6030 ac_res=$ac_cv_search_opendir
6031 if test "$ac_res" != no; then
6032 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6038 { echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
6039 echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6; }
6040 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
6041 echo $ECHO_N "(cached) $ECHO_C" >&6
6042 else
6043 cat >conftest.$ac_ext <<_ACEOF
6044 /* confdefs.h. */
6045 _ACEOF
6046 cat confdefs.h >>conftest.$ac_ext
6047 cat >>conftest.$ac_ext <<_ACEOF
6048 /* end confdefs.h. */
6049 #include <sys/types.h>
6051 main ()
6053 return makedev(0, 0);
6055 return 0;
6057 _ACEOF
6058 rm -f conftest.$ac_objext conftest$ac_exeext
6059 if { (ac_try="$ac_link"
6060 case "(($ac_try" in
6061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6062 *) ac_try_echo=$ac_try;;
6063 esac
6064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6065 (eval "$ac_link") 2>conftest.er1
6066 ac_status=$?
6067 grep -v '^ *+' conftest.er1 >conftest.err
6068 rm -f conftest.er1
6069 cat conftest.err >&5
6070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6071 (exit $ac_status); } && {
6072 test -z "$ac_c_werror_flag" ||
6073 test ! -s conftest.err
6074 } && test -s conftest$ac_exeext &&
6075 $as_test_x conftest$ac_exeext; then
6076 ac_cv_header_sys_types_h_makedev=yes
6077 else
6078 echo "$as_me: failed program was:" >&5
6079 sed 's/^/| /' conftest.$ac_ext >&5
6081 ac_cv_header_sys_types_h_makedev=no
6084 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6085 conftest$ac_exeext conftest.$ac_ext
6088 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
6089 echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6; }
6091 if test $ac_cv_header_sys_types_h_makedev = no; then
6092 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
6093 { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
6094 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
6095 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
6096 echo $ECHO_N "(cached) $ECHO_C" >&6
6098 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
6099 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
6100 else
6101 # Is the header compilable?
6102 { echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
6103 echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6; }
6104 cat >conftest.$ac_ext <<_ACEOF
6105 /* confdefs.h. */
6106 _ACEOF
6107 cat confdefs.h >>conftest.$ac_ext
6108 cat >>conftest.$ac_ext <<_ACEOF
6109 /* end confdefs.h. */
6110 $ac_includes_default
6111 #include <sys/mkdev.h>
6112 _ACEOF
6113 rm -f conftest.$ac_objext
6114 if { (ac_try="$ac_compile"
6115 case "(($ac_try" in
6116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6117 *) ac_try_echo=$ac_try;;
6118 esac
6119 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6120 (eval "$ac_compile") 2>conftest.er1
6121 ac_status=$?
6122 grep -v '^ *+' conftest.er1 >conftest.err
6123 rm -f conftest.er1
6124 cat conftest.err >&5
6125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6126 (exit $ac_status); } && {
6127 test -z "$ac_c_werror_flag" ||
6128 test ! -s conftest.err
6129 } && test -s conftest.$ac_objext; then
6130 ac_header_compiler=yes
6131 else
6132 echo "$as_me: failed program was:" >&5
6133 sed 's/^/| /' conftest.$ac_ext >&5
6135 ac_header_compiler=no
6138 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6139 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6140 echo "${ECHO_T}$ac_header_compiler" >&6; }
6142 # Is the header present?
6143 { echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
6144 echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6; }
6145 cat >conftest.$ac_ext <<_ACEOF
6146 /* confdefs.h. */
6147 _ACEOF
6148 cat confdefs.h >>conftest.$ac_ext
6149 cat >>conftest.$ac_ext <<_ACEOF
6150 /* end confdefs.h. */
6151 #include <sys/mkdev.h>
6152 _ACEOF
6153 if { (ac_try="$ac_cpp conftest.$ac_ext"
6154 case "(($ac_try" in
6155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6156 *) ac_try_echo=$ac_try;;
6157 esac
6158 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6159 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6160 ac_status=$?
6161 grep -v '^ *+' conftest.er1 >conftest.err
6162 rm -f conftest.er1
6163 cat conftest.err >&5
6164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6165 (exit $ac_status); } >/dev/null && {
6166 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6167 test ! -s conftest.err
6168 }; then
6169 ac_header_preproc=yes
6170 else
6171 echo "$as_me: failed program was:" >&5
6172 sed 's/^/| /' conftest.$ac_ext >&5
6174 ac_header_preproc=no
6177 rm -f conftest.err conftest.$ac_ext
6178 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6179 echo "${ECHO_T}$ac_header_preproc" >&6; }
6181 # So? What about this header?
6182 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6183 yes:no: )
6184 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
6185 echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6186 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&5
6187 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&2;}
6188 ac_header_preproc=yes
6190 no:yes:* )
6191 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
6192 echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
6193 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&5
6194 echo "$as_me: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&2;}
6195 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: see the Autoconf documentation" >&5
6196 echo "$as_me: WARNING: sys/mkdev.h: see the Autoconf documentation" >&2;}
6197 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&5
6198 echo "$as_me: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&2;}
6199 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
6200 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
6201 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&5
6202 echo "$as_me: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&2;}
6203 ( cat <<\_ASBOX
6204 ## -------------------------------------- ##
6205 ## Report this to http://bugs.python.org/ ##
6206 ## -------------------------------------- ##
6207 _ASBOX
6208 ) | sed "s/^/$as_me: WARNING: /" >&2
6210 esac
6211 { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
6212 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
6213 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
6214 echo $ECHO_N "(cached) $ECHO_C" >&6
6215 else
6216 ac_cv_header_sys_mkdev_h=$ac_header_preproc
6218 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
6219 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
6222 if test $ac_cv_header_sys_mkdev_h = yes; then
6224 cat >>confdefs.h <<\_ACEOF
6225 #define MAJOR_IN_MKDEV 1
6226 _ACEOF
6232 if test $ac_cv_header_sys_mkdev_h = no; then
6233 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
6234 { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
6235 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
6236 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
6237 echo $ECHO_N "(cached) $ECHO_C" >&6
6239 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
6240 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
6241 else
6242 # Is the header compilable?
6243 { echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
6244 echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6; }
6245 cat >conftest.$ac_ext <<_ACEOF
6246 /* confdefs.h. */
6247 _ACEOF
6248 cat confdefs.h >>conftest.$ac_ext
6249 cat >>conftest.$ac_ext <<_ACEOF
6250 /* end confdefs.h. */
6251 $ac_includes_default
6252 #include <sys/sysmacros.h>
6253 _ACEOF
6254 rm -f conftest.$ac_objext
6255 if { (ac_try="$ac_compile"
6256 case "(($ac_try" in
6257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6258 *) ac_try_echo=$ac_try;;
6259 esac
6260 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6261 (eval "$ac_compile") 2>conftest.er1
6262 ac_status=$?
6263 grep -v '^ *+' conftest.er1 >conftest.err
6264 rm -f conftest.er1
6265 cat conftest.err >&5
6266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6267 (exit $ac_status); } && {
6268 test -z "$ac_c_werror_flag" ||
6269 test ! -s conftest.err
6270 } && test -s conftest.$ac_objext; then
6271 ac_header_compiler=yes
6272 else
6273 echo "$as_me: failed program was:" >&5
6274 sed 's/^/| /' conftest.$ac_ext >&5
6276 ac_header_compiler=no
6279 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6280 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6281 echo "${ECHO_T}$ac_header_compiler" >&6; }
6283 # Is the header present?
6284 { echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
6285 echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6; }
6286 cat >conftest.$ac_ext <<_ACEOF
6287 /* confdefs.h. */
6288 _ACEOF
6289 cat confdefs.h >>conftest.$ac_ext
6290 cat >>conftest.$ac_ext <<_ACEOF
6291 /* end confdefs.h. */
6292 #include <sys/sysmacros.h>
6293 _ACEOF
6294 if { (ac_try="$ac_cpp conftest.$ac_ext"
6295 case "(($ac_try" in
6296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6297 *) ac_try_echo=$ac_try;;
6298 esac
6299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6300 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6301 ac_status=$?
6302 grep -v '^ *+' conftest.er1 >conftest.err
6303 rm -f conftest.er1
6304 cat conftest.err >&5
6305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6306 (exit $ac_status); } >/dev/null && {
6307 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6308 test ! -s conftest.err
6309 }; then
6310 ac_header_preproc=yes
6311 else
6312 echo "$as_me: failed program was:" >&5
6313 sed 's/^/| /' conftest.$ac_ext >&5
6315 ac_header_preproc=no
6318 rm -f conftest.err conftest.$ac_ext
6319 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6320 echo "${ECHO_T}$ac_header_preproc" >&6; }
6322 # So? What about this header?
6323 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6324 yes:no: )
6325 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
6326 echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6327 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&5
6328 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&2;}
6329 ac_header_preproc=yes
6331 no:yes:* )
6332 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
6333 echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
6334 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&5
6335 echo "$as_me: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&2;}
6336 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&5
6337 echo "$as_me: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&2;}
6338 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&5
6339 echo "$as_me: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&2;}
6340 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
6341 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
6342 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&5
6343 echo "$as_me: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&2;}
6344 ( cat <<\_ASBOX
6345 ## -------------------------------------- ##
6346 ## Report this to http://bugs.python.org/ ##
6347 ## -------------------------------------- ##
6348 _ASBOX
6349 ) | sed "s/^/$as_me: WARNING: /" >&2
6351 esac
6352 { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
6353 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
6354 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
6355 echo $ECHO_N "(cached) $ECHO_C" >&6
6356 else
6357 ac_cv_header_sys_sysmacros_h=$ac_header_preproc
6359 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
6360 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
6363 if test $ac_cv_header_sys_sysmacros_h = yes; then
6365 cat >>confdefs.h <<\_ACEOF
6366 #define MAJOR_IN_SYSMACROS 1
6367 _ACEOF
6376 # On Solaris, term.h requires curses.h
6378 for ac_header in term.h
6380 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6381 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6382 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6383 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6384 echo $ECHO_N "(cached) $ECHO_C" >&6
6385 else
6386 cat >conftest.$ac_ext <<_ACEOF
6387 /* confdefs.h. */
6388 _ACEOF
6389 cat confdefs.h >>conftest.$ac_ext
6390 cat >>conftest.$ac_ext <<_ACEOF
6391 /* end confdefs.h. */
6393 #ifdef HAVE_CURSES_H
6394 #include <curses.h>
6395 #endif
6398 #include <$ac_header>
6399 _ACEOF
6400 rm -f conftest.$ac_objext
6401 if { (ac_try="$ac_compile"
6402 case "(($ac_try" in
6403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6404 *) ac_try_echo=$ac_try;;
6405 esac
6406 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6407 (eval "$ac_compile") 2>conftest.er1
6408 ac_status=$?
6409 grep -v '^ *+' conftest.er1 >conftest.err
6410 rm -f conftest.er1
6411 cat conftest.err >&5
6412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6413 (exit $ac_status); } && {
6414 test -z "$ac_c_werror_flag" ||
6415 test ! -s conftest.err
6416 } && test -s conftest.$ac_objext; then
6417 eval "$as_ac_Header=yes"
6418 else
6419 echo "$as_me: failed program was:" >&5
6420 sed 's/^/| /' conftest.$ac_ext >&5
6422 eval "$as_ac_Header=no"
6425 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6427 ac_res=`eval echo '${'$as_ac_Header'}'`
6428 { echo "$as_me:$LINENO: result: $ac_res" >&5
6429 echo "${ECHO_T}$ac_res" >&6; }
6430 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6431 cat >>confdefs.h <<_ACEOF
6432 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6433 _ACEOF
6437 done
6440 # On Linux, netlink.h requires asm/types.h
6442 for ac_header in linux/netlink.h
6444 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6445 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6446 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6447 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6448 echo $ECHO_N "(cached) $ECHO_C" >&6
6449 else
6450 cat >conftest.$ac_ext <<_ACEOF
6451 /* confdefs.h. */
6452 _ACEOF
6453 cat confdefs.h >>conftest.$ac_ext
6454 cat >>conftest.$ac_ext <<_ACEOF
6455 /* end confdefs.h. */
6457 #ifdef HAVE_ASM_TYPES_H
6458 #include <asm/types.h>
6459 #endif
6460 #ifdef HAVE_SYS_SOCKET_H
6461 #include <sys/socket.h>
6462 #endif
6465 #include <$ac_header>
6466 _ACEOF
6467 rm -f conftest.$ac_objext
6468 if { (ac_try="$ac_compile"
6469 case "(($ac_try" in
6470 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6471 *) ac_try_echo=$ac_try;;
6472 esac
6473 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6474 (eval "$ac_compile") 2>conftest.er1
6475 ac_status=$?
6476 grep -v '^ *+' conftest.er1 >conftest.err
6477 rm -f conftest.er1
6478 cat conftest.err >&5
6479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6480 (exit $ac_status); } && {
6481 test -z "$ac_c_werror_flag" ||
6482 test ! -s conftest.err
6483 } && test -s conftest.$ac_objext; then
6484 eval "$as_ac_Header=yes"
6485 else
6486 echo "$as_me: failed program was:" >&5
6487 sed 's/^/| /' conftest.$ac_ext >&5
6489 eval "$as_ac_Header=no"
6492 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6494 ac_res=`eval echo '${'$as_ac_Header'}'`
6495 { echo "$as_me:$LINENO: result: $ac_res" >&5
6496 echo "${ECHO_T}$ac_res" >&6; }
6497 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6498 cat >>confdefs.h <<_ACEOF
6499 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6500 _ACEOF
6504 done
6507 # checks for typedefs
6508 was_it_defined=no
6509 { echo "$as_me:$LINENO: checking for clock_t in time.h" >&5
6510 echo $ECHO_N "checking for clock_t in time.h... $ECHO_C" >&6; }
6511 cat >conftest.$ac_ext <<_ACEOF
6512 /* confdefs.h. */
6513 _ACEOF
6514 cat confdefs.h >>conftest.$ac_ext
6515 cat >>conftest.$ac_ext <<_ACEOF
6516 /* end confdefs.h. */
6517 #include <time.h>
6519 _ACEOF
6520 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6521 $EGREP "clock_t" >/dev/null 2>&1; then
6522 was_it_defined=yes
6523 else
6526 cat >>confdefs.h <<\_ACEOF
6527 #define clock_t long
6528 _ACEOF
6532 rm -f -r conftest*
6534 { echo "$as_me:$LINENO: result: $was_it_defined" >&5
6535 echo "${ECHO_T}$was_it_defined" >&6; }
6537 # Check whether using makedev requires defining _OSF_SOURCE
6538 { echo "$as_me:$LINENO: checking for makedev" >&5
6539 echo $ECHO_N "checking for makedev... $ECHO_C" >&6; }
6540 cat >conftest.$ac_ext <<_ACEOF
6541 /* confdefs.h. */
6542 _ACEOF
6543 cat confdefs.h >>conftest.$ac_ext
6544 cat >>conftest.$ac_ext <<_ACEOF
6545 /* end confdefs.h. */
6546 #include <sys/types.h>
6548 main ()
6550 makedev(0, 0)
6552 return 0;
6554 _ACEOF
6555 rm -f conftest.$ac_objext conftest$ac_exeext
6556 if { (ac_try="$ac_link"
6557 case "(($ac_try" in
6558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6559 *) ac_try_echo=$ac_try;;
6560 esac
6561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6562 (eval "$ac_link") 2>conftest.er1
6563 ac_status=$?
6564 grep -v '^ *+' conftest.er1 >conftest.err
6565 rm -f conftest.er1
6566 cat conftest.err >&5
6567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6568 (exit $ac_status); } && {
6569 test -z "$ac_c_werror_flag" ||
6570 test ! -s conftest.err
6571 } && test -s conftest$ac_exeext &&
6572 $as_test_x conftest$ac_exeext; then
6573 ac_cv_has_makedev=yes
6574 else
6575 echo "$as_me: failed program was:" >&5
6576 sed 's/^/| /' conftest.$ac_ext >&5
6578 ac_cv_has_makedev=no
6581 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6582 conftest$ac_exeext conftest.$ac_ext
6583 if test "$ac_cv_has_makedev" = "no"; then
6584 # we didn't link, try if _OSF_SOURCE will allow us to link
6585 cat >conftest.$ac_ext <<_ACEOF
6586 /* confdefs.h. */
6587 _ACEOF
6588 cat confdefs.h >>conftest.$ac_ext
6589 cat >>conftest.$ac_ext <<_ACEOF
6590 /* end confdefs.h. */
6592 #define _OSF_SOURCE 1
6593 #include <sys/types.h>
6596 main ()
6598 makedev(0, 0)
6600 return 0;
6602 _ACEOF
6603 rm -f conftest.$ac_objext conftest$ac_exeext
6604 if { (ac_try="$ac_link"
6605 case "(($ac_try" in
6606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6607 *) ac_try_echo=$ac_try;;
6608 esac
6609 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6610 (eval "$ac_link") 2>conftest.er1
6611 ac_status=$?
6612 grep -v '^ *+' conftest.er1 >conftest.err
6613 rm -f conftest.er1
6614 cat conftest.err >&5
6615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6616 (exit $ac_status); } && {
6617 test -z "$ac_c_werror_flag" ||
6618 test ! -s conftest.err
6619 } && test -s conftest$ac_exeext &&
6620 $as_test_x conftest$ac_exeext; then
6621 ac_cv_has_makedev=yes
6622 else
6623 echo "$as_me: failed program was:" >&5
6624 sed 's/^/| /' conftest.$ac_ext >&5
6626 ac_cv_has_makedev=no
6629 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6630 conftest$ac_exeext conftest.$ac_ext
6631 if test "$ac_cv_has_makedev" = "yes"; then
6633 cat >>confdefs.h <<\_ACEOF
6634 #define _OSF_SOURCE 1
6635 _ACEOF
6639 { echo "$as_me:$LINENO: result: $ac_cv_has_makedev" >&5
6640 echo "${ECHO_T}$ac_cv_has_makedev" >&6; }
6641 if test "$ac_cv_has_makedev" = "yes"; then
6643 cat >>confdefs.h <<\_ACEOF
6644 #define HAVE_MAKEDEV 1
6645 _ACEOF
6649 # Enabling LFS on Solaris (2.6 to 9) with gcc 2.95 triggers a bug in
6650 # the system headers: If _XOPEN_SOURCE and _LARGEFILE_SOURCE are
6651 # defined, but the compiler does not support pragma redefine_extname,
6652 # and _LARGEFILE64_SOURCE is not defined, the headers refer to 64-bit
6653 # structures (such as rlimit64) without declaring them. As a
6654 # work-around, disable LFS on such configurations
6656 use_lfs=yes
6657 { echo "$as_me:$LINENO: checking Solaris LFS bug" >&5
6658 echo $ECHO_N "checking Solaris LFS bug... $ECHO_C" >&6; }
6659 cat >conftest.$ac_ext <<_ACEOF
6660 /* confdefs.h. */
6661 _ACEOF
6662 cat confdefs.h >>conftest.$ac_ext
6663 cat >>conftest.$ac_ext <<_ACEOF
6664 /* end confdefs.h. */
6666 #define _LARGEFILE_SOURCE 1
6667 #define _FILE_OFFSET_BITS 64
6668 #include <sys/resource.h>
6671 main ()
6673 struct rlimit foo;
6675 return 0;
6677 _ACEOF
6678 rm -f conftest.$ac_objext
6679 if { (ac_try="$ac_compile"
6680 case "(($ac_try" in
6681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6682 *) ac_try_echo=$ac_try;;
6683 esac
6684 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6685 (eval "$ac_compile") 2>conftest.er1
6686 ac_status=$?
6687 grep -v '^ *+' conftest.er1 >conftest.err
6688 rm -f conftest.er1
6689 cat conftest.err >&5
6690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6691 (exit $ac_status); } && {
6692 test -z "$ac_c_werror_flag" ||
6693 test ! -s conftest.err
6694 } && test -s conftest.$ac_objext; then
6695 sol_lfs_bug=no
6696 else
6697 echo "$as_me: failed program was:" >&5
6698 sed 's/^/| /' conftest.$ac_ext >&5
6700 sol_lfs_bug=yes
6703 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6704 { echo "$as_me:$LINENO: result: $sol_lfs_bug" >&5
6705 echo "${ECHO_T}$sol_lfs_bug" >&6; }
6706 if test "$sol_lfs_bug" = "yes"; then
6707 use_lfs=no
6710 if test "$use_lfs" = "yes"; then
6711 # Two defines needed to enable largefile support on various platforms
6712 # These may affect some typedefs
6714 cat >>confdefs.h <<\_ACEOF
6715 #define _LARGEFILE_SOURCE 1
6716 _ACEOF
6719 cat >>confdefs.h <<\_ACEOF
6720 #define _FILE_OFFSET_BITS 64
6721 _ACEOF
6725 # Add some code to confdefs.h so that the test for off_t works on SCO
6726 cat >> confdefs.h <<\EOF
6727 #if defined(SCO_DS)
6728 #undef _OFF_T
6729 #endif
6732 # Type availability checks
6733 { echo "$as_me:$LINENO: checking for mode_t" >&5
6734 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; }
6735 if test "${ac_cv_type_mode_t+set}" = set; then
6736 echo $ECHO_N "(cached) $ECHO_C" >&6
6737 else
6738 cat >conftest.$ac_ext <<_ACEOF
6739 /* confdefs.h. */
6740 _ACEOF
6741 cat confdefs.h >>conftest.$ac_ext
6742 cat >>conftest.$ac_ext <<_ACEOF
6743 /* end confdefs.h. */
6744 $ac_includes_default
6745 typedef mode_t ac__type_new_;
6747 main ()
6749 if ((ac__type_new_ *) 0)
6750 return 0;
6751 if (sizeof (ac__type_new_))
6752 return 0;
6754 return 0;
6756 _ACEOF
6757 rm -f conftest.$ac_objext
6758 if { (ac_try="$ac_compile"
6759 case "(($ac_try" in
6760 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6761 *) ac_try_echo=$ac_try;;
6762 esac
6763 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6764 (eval "$ac_compile") 2>conftest.er1
6765 ac_status=$?
6766 grep -v '^ *+' conftest.er1 >conftest.err
6767 rm -f conftest.er1
6768 cat conftest.err >&5
6769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6770 (exit $ac_status); } && {
6771 test -z "$ac_c_werror_flag" ||
6772 test ! -s conftest.err
6773 } && test -s conftest.$ac_objext; then
6774 ac_cv_type_mode_t=yes
6775 else
6776 echo "$as_me: failed program was:" >&5
6777 sed 's/^/| /' conftest.$ac_ext >&5
6779 ac_cv_type_mode_t=no
6782 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6784 { echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
6785 echo "${ECHO_T}$ac_cv_type_mode_t" >&6; }
6786 if test $ac_cv_type_mode_t = yes; then
6788 else
6790 cat >>confdefs.h <<_ACEOF
6791 #define mode_t int
6792 _ACEOF
6796 { echo "$as_me:$LINENO: checking for off_t" >&5
6797 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
6798 if test "${ac_cv_type_off_t+set}" = set; then
6799 echo $ECHO_N "(cached) $ECHO_C" >&6
6800 else
6801 cat >conftest.$ac_ext <<_ACEOF
6802 /* confdefs.h. */
6803 _ACEOF
6804 cat confdefs.h >>conftest.$ac_ext
6805 cat >>conftest.$ac_ext <<_ACEOF
6806 /* end confdefs.h. */
6807 $ac_includes_default
6808 typedef off_t ac__type_new_;
6810 main ()
6812 if ((ac__type_new_ *) 0)
6813 return 0;
6814 if (sizeof (ac__type_new_))
6815 return 0;
6817 return 0;
6819 _ACEOF
6820 rm -f conftest.$ac_objext
6821 if { (ac_try="$ac_compile"
6822 case "(($ac_try" in
6823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6824 *) ac_try_echo=$ac_try;;
6825 esac
6826 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6827 (eval "$ac_compile") 2>conftest.er1
6828 ac_status=$?
6829 grep -v '^ *+' conftest.er1 >conftest.err
6830 rm -f conftest.er1
6831 cat conftest.err >&5
6832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6833 (exit $ac_status); } && {
6834 test -z "$ac_c_werror_flag" ||
6835 test ! -s conftest.err
6836 } && test -s conftest.$ac_objext; then
6837 ac_cv_type_off_t=yes
6838 else
6839 echo "$as_me: failed program was:" >&5
6840 sed 's/^/| /' conftest.$ac_ext >&5
6842 ac_cv_type_off_t=no
6845 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6847 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
6848 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
6849 if test $ac_cv_type_off_t = yes; then
6851 else
6853 cat >>confdefs.h <<_ACEOF
6854 #define off_t long int
6855 _ACEOF
6859 { echo "$as_me:$LINENO: checking for pid_t" >&5
6860 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
6861 if test "${ac_cv_type_pid_t+set}" = set; then
6862 echo $ECHO_N "(cached) $ECHO_C" >&6
6863 else
6864 cat >conftest.$ac_ext <<_ACEOF
6865 /* confdefs.h. */
6866 _ACEOF
6867 cat confdefs.h >>conftest.$ac_ext
6868 cat >>conftest.$ac_ext <<_ACEOF
6869 /* end confdefs.h. */
6870 $ac_includes_default
6871 typedef pid_t ac__type_new_;
6873 main ()
6875 if ((ac__type_new_ *) 0)
6876 return 0;
6877 if (sizeof (ac__type_new_))
6878 return 0;
6880 return 0;
6882 _ACEOF
6883 rm -f conftest.$ac_objext
6884 if { (ac_try="$ac_compile"
6885 case "(($ac_try" in
6886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6887 *) ac_try_echo=$ac_try;;
6888 esac
6889 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6890 (eval "$ac_compile") 2>conftest.er1
6891 ac_status=$?
6892 grep -v '^ *+' conftest.er1 >conftest.err
6893 rm -f conftest.er1
6894 cat conftest.err >&5
6895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6896 (exit $ac_status); } && {
6897 test -z "$ac_c_werror_flag" ||
6898 test ! -s conftest.err
6899 } && test -s conftest.$ac_objext; then
6900 ac_cv_type_pid_t=yes
6901 else
6902 echo "$as_me: failed program was:" >&5
6903 sed 's/^/| /' conftest.$ac_ext >&5
6905 ac_cv_type_pid_t=no
6908 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6910 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
6911 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
6912 if test $ac_cv_type_pid_t = yes; then
6914 else
6916 cat >>confdefs.h <<_ACEOF
6917 #define pid_t int
6918 _ACEOF
6922 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
6923 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
6924 if test "${ac_cv_type_signal+set}" = set; then
6925 echo $ECHO_N "(cached) $ECHO_C" >&6
6926 else
6927 cat >conftest.$ac_ext <<_ACEOF
6928 /* confdefs.h. */
6929 _ACEOF
6930 cat confdefs.h >>conftest.$ac_ext
6931 cat >>conftest.$ac_ext <<_ACEOF
6932 /* end confdefs.h. */
6933 #include <sys/types.h>
6934 #include <signal.h>
6937 main ()
6939 return *(signal (0, 0)) (0) == 1;
6941 return 0;
6943 _ACEOF
6944 rm -f conftest.$ac_objext
6945 if { (ac_try="$ac_compile"
6946 case "(($ac_try" in
6947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6948 *) ac_try_echo=$ac_try;;
6949 esac
6950 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6951 (eval "$ac_compile") 2>conftest.er1
6952 ac_status=$?
6953 grep -v '^ *+' conftest.er1 >conftest.err
6954 rm -f conftest.er1
6955 cat conftest.err >&5
6956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6957 (exit $ac_status); } && {
6958 test -z "$ac_c_werror_flag" ||
6959 test ! -s conftest.err
6960 } && test -s conftest.$ac_objext; then
6961 ac_cv_type_signal=int
6962 else
6963 echo "$as_me: failed program was:" >&5
6964 sed 's/^/| /' conftest.$ac_ext >&5
6966 ac_cv_type_signal=void
6969 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6971 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
6972 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
6974 cat >>confdefs.h <<_ACEOF
6975 #define RETSIGTYPE $ac_cv_type_signal
6976 _ACEOF
6979 { echo "$as_me:$LINENO: checking for size_t" >&5
6980 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
6981 if test "${ac_cv_type_size_t+set}" = set; then
6982 echo $ECHO_N "(cached) $ECHO_C" >&6
6983 else
6984 cat >conftest.$ac_ext <<_ACEOF
6985 /* confdefs.h. */
6986 _ACEOF
6987 cat confdefs.h >>conftest.$ac_ext
6988 cat >>conftest.$ac_ext <<_ACEOF
6989 /* end confdefs.h. */
6990 $ac_includes_default
6991 typedef size_t ac__type_new_;
6993 main ()
6995 if ((ac__type_new_ *) 0)
6996 return 0;
6997 if (sizeof (ac__type_new_))
6998 return 0;
7000 return 0;
7002 _ACEOF
7003 rm -f conftest.$ac_objext
7004 if { (ac_try="$ac_compile"
7005 case "(($ac_try" in
7006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7007 *) ac_try_echo=$ac_try;;
7008 esac
7009 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7010 (eval "$ac_compile") 2>conftest.er1
7011 ac_status=$?
7012 grep -v '^ *+' conftest.er1 >conftest.err
7013 rm -f conftest.er1
7014 cat conftest.err >&5
7015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7016 (exit $ac_status); } && {
7017 test -z "$ac_c_werror_flag" ||
7018 test ! -s conftest.err
7019 } && test -s conftest.$ac_objext; then
7020 ac_cv_type_size_t=yes
7021 else
7022 echo "$as_me: failed program was:" >&5
7023 sed 's/^/| /' conftest.$ac_ext >&5
7025 ac_cv_type_size_t=no
7028 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7030 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
7031 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
7032 if test $ac_cv_type_size_t = yes; then
7034 else
7036 cat >>confdefs.h <<_ACEOF
7037 #define size_t unsigned int
7038 _ACEOF
7042 { echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
7043 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
7044 if test "${ac_cv_type_uid_t+set}" = set; then
7045 echo $ECHO_N "(cached) $ECHO_C" >&6
7046 else
7047 cat >conftest.$ac_ext <<_ACEOF
7048 /* confdefs.h. */
7049 _ACEOF
7050 cat confdefs.h >>conftest.$ac_ext
7051 cat >>conftest.$ac_ext <<_ACEOF
7052 /* end confdefs.h. */
7053 #include <sys/types.h>
7055 _ACEOF
7056 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7057 $EGREP "uid_t" >/dev/null 2>&1; then
7058 ac_cv_type_uid_t=yes
7059 else
7060 ac_cv_type_uid_t=no
7062 rm -f -r conftest*
7065 { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
7066 echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
7067 if test $ac_cv_type_uid_t = no; then
7069 cat >>confdefs.h <<\_ACEOF
7070 #define uid_t int
7071 _ACEOF
7074 cat >>confdefs.h <<\_ACEOF
7075 #define gid_t int
7076 _ACEOF
7081 { echo "$as_me:$LINENO: checking for uint32_t" >&5
7082 echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6; }
7083 if test "${ac_cv_c_uint32_t+set}" = set; then
7084 echo $ECHO_N "(cached) $ECHO_C" >&6
7085 else
7086 ac_cv_c_uint32_t=no
7087 for ac_type in 'uint32_t' 'unsigned int' 'unsigned long int' \
7088 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
7089 cat >conftest.$ac_ext <<_ACEOF
7090 /* confdefs.h. */
7091 _ACEOF
7092 cat confdefs.h >>conftest.$ac_ext
7093 cat >>conftest.$ac_ext <<_ACEOF
7094 /* end confdefs.h. */
7095 $ac_includes_default
7097 main ()
7099 static int test_array [1 - 2 * !(($ac_type) -1 >> (32 - 1) == 1)];
7100 test_array [0] = 0
7103 return 0;
7105 _ACEOF
7106 rm -f conftest.$ac_objext
7107 if { (ac_try="$ac_compile"
7108 case "(($ac_try" in
7109 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7110 *) ac_try_echo=$ac_try;;
7111 esac
7112 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7113 (eval "$ac_compile") 2>conftest.er1
7114 ac_status=$?
7115 grep -v '^ *+' conftest.er1 >conftest.err
7116 rm -f conftest.er1
7117 cat conftest.err >&5
7118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7119 (exit $ac_status); } && {
7120 test -z "$ac_c_werror_flag" ||
7121 test ! -s conftest.err
7122 } && test -s conftest.$ac_objext; then
7123 case $ac_type in
7124 uint32_t) ac_cv_c_uint32_t=yes ;;
7125 *) ac_cv_c_uint32_t=$ac_type ;;
7126 esac
7128 else
7129 echo "$as_me: failed program was:" >&5
7130 sed 's/^/| /' conftest.$ac_ext >&5
7135 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7136 test "$ac_cv_c_uint32_t" != no && break
7137 done
7139 { echo "$as_me:$LINENO: result: $ac_cv_c_uint32_t" >&5
7140 echo "${ECHO_T}$ac_cv_c_uint32_t" >&6; }
7141 case $ac_cv_c_uint32_t in #(
7142 no|yes) ;; #(
7145 cat >>confdefs.h <<\_ACEOF
7146 #define _UINT32_T 1
7147 _ACEOF
7150 cat >>confdefs.h <<_ACEOF
7151 #define uint32_t $ac_cv_c_uint32_t
7152 _ACEOF
7154 esac
7157 { echo "$as_me:$LINENO: checking for uint64_t" >&5
7158 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
7159 if test "${ac_cv_c_uint64_t+set}" = set; then
7160 echo $ECHO_N "(cached) $ECHO_C" >&6
7161 else
7162 ac_cv_c_uint64_t=no
7163 for ac_type in 'uint64_t' 'unsigned int' 'unsigned long int' \
7164 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
7165 cat >conftest.$ac_ext <<_ACEOF
7166 /* confdefs.h. */
7167 _ACEOF
7168 cat confdefs.h >>conftest.$ac_ext
7169 cat >>conftest.$ac_ext <<_ACEOF
7170 /* end confdefs.h. */
7171 $ac_includes_default
7173 main ()
7175 static int test_array [1 - 2 * !(($ac_type) -1 >> (64 - 1) == 1)];
7176 test_array [0] = 0
7179 return 0;
7181 _ACEOF
7182 rm -f conftest.$ac_objext
7183 if { (ac_try="$ac_compile"
7184 case "(($ac_try" in
7185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7186 *) ac_try_echo=$ac_try;;
7187 esac
7188 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7189 (eval "$ac_compile") 2>conftest.er1
7190 ac_status=$?
7191 grep -v '^ *+' conftest.er1 >conftest.err
7192 rm -f conftest.er1
7193 cat conftest.err >&5
7194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7195 (exit $ac_status); } && {
7196 test -z "$ac_c_werror_flag" ||
7197 test ! -s conftest.err
7198 } && test -s conftest.$ac_objext; then
7199 case $ac_type in
7200 uint64_t) ac_cv_c_uint64_t=yes ;;
7201 *) ac_cv_c_uint64_t=$ac_type ;;
7202 esac
7204 else
7205 echo "$as_me: failed program was:" >&5
7206 sed 's/^/| /' conftest.$ac_ext >&5
7211 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7212 test "$ac_cv_c_uint64_t" != no && break
7213 done
7215 { echo "$as_me:$LINENO: result: $ac_cv_c_uint64_t" >&5
7216 echo "${ECHO_T}$ac_cv_c_uint64_t" >&6; }
7217 case $ac_cv_c_uint64_t in #(
7218 no|yes) ;; #(
7221 cat >>confdefs.h <<\_ACEOF
7222 #define _UINT64_T 1
7223 _ACEOF
7226 cat >>confdefs.h <<_ACEOF
7227 #define uint64_t $ac_cv_c_uint64_t
7228 _ACEOF
7230 esac
7233 { echo "$as_me:$LINENO: checking for int32_t" >&5
7234 echo $ECHO_N "checking for int32_t... $ECHO_C" >&6; }
7235 if test "${ac_cv_c_int32_t+set}" = set; then
7236 echo $ECHO_N "(cached) $ECHO_C" >&6
7237 else
7238 ac_cv_c_int32_t=no
7239 for ac_type in 'int32_t' 'int' 'long int' \
7240 'long long int' 'short int' 'signed char'; do
7241 cat >conftest.$ac_ext <<_ACEOF
7242 /* confdefs.h. */
7243 _ACEOF
7244 cat confdefs.h >>conftest.$ac_ext
7245 cat >>conftest.$ac_ext <<_ACEOF
7246 /* end confdefs.h. */
7247 $ac_includes_default
7249 main ()
7251 static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << (32 - 2)) - 1) * 2 + 1))];
7252 test_array [0] = 0
7255 return 0;
7257 _ACEOF
7258 rm -f conftest.$ac_objext
7259 if { (ac_try="$ac_compile"
7260 case "(($ac_try" in
7261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7262 *) ac_try_echo=$ac_try;;
7263 esac
7264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7265 (eval "$ac_compile") 2>conftest.er1
7266 ac_status=$?
7267 grep -v '^ *+' conftest.er1 >conftest.err
7268 rm -f conftest.er1
7269 cat conftest.err >&5
7270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7271 (exit $ac_status); } && {
7272 test -z "$ac_c_werror_flag" ||
7273 test ! -s conftest.err
7274 } && test -s conftest.$ac_objext; then
7275 cat >conftest.$ac_ext <<_ACEOF
7276 /* confdefs.h. */
7277 _ACEOF
7278 cat confdefs.h >>conftest.$ac_ext
7279 cat >>conftest.$ac_ext <<_ACEOF
7280 /* end confdefs.h. */
7281 $ac_includes_default
7283 main ()
7285 static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << (32 - 2)) - 1) * 2 + 1)
7286 < ($ac_type) (((($ac_type) 1 << (32 - 2)) - 1) * 2 + 2))];
7287 test_array [0] = 0
7290 return 0;
7292 _ACEOF
7293 rm -f conftest.$ac_objext
7294 if { (ac_try="$ac_compile"
7295 case "(($ac_try" in
7296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7297 *) ac_try_echo=$ac_try;;
7298 esac
7299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7300 (eval "$ac_compile") 2>conftest.er1
7301 ac_status=$?
7302 grep -v '^ *+' conftest.er1 >conftest.err
7303 rm -f conftest.er1
7304 cat conftest.err >&5
7305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7306 (exit $ac_status); } && {
7307 test -z "$ac_c_werror_flag" ||
7308 test ! -s conftest.err
7309 } && test -s conftest.$ac_objext; then
7311 else
7312 echo "$as_me: failed program was:" >&5
7313 sed 's/^/| /' conftest.$ac_ext >&5
7315 case $ac_type in
7316 int32_t) ac_cv_c_int32_t=yes ;;
7317 *) ac_cv_c_int32_t=$ac_type ;;
7318 esac
7322 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7323 else
7324 echo "$as_me: failed program was:" >&5
7325 sed 's/^/| /' conftest.$ac_ext >&5
7330 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7331 test "$ac_cv_c_int32_t" != no && break
7332 done
7334 { echo "$as_me:$LINENO: result: $ac_cv_c_int32_t" >&5
7335 echo "${ECHO_T}$ac_cv_c_int32_t" >&6; }
7336 case $ac_cv_c_int32_t in #(
7337 no|yes) ;; #(
7340 cat >>confdefs.h <<_ACEOF
7341 #define int32_t $ac_cv_c_int32_t
7342 _ACEOF
7344 esac
7347 { echo "$as_me:$LINENO: checking for int64_t" >&5
7348 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
7349 if test "${ac_cv_c_int64_t+set}" = set; then
7350 echo $ECHO_N "(cached) $ECHO_C" >&6
7351 else
7352 ac_cv_c_int64_t=no
7353 for ac_type in 'int64_t' 'int' 'long int' \
7354 'long long int' 'short int' 'signed char'; do
7355 cat >conftest.$ac_ext <<_ACEOF
7356 /* confdefs.h. */
7357 _ACEOF
7358 cat confdefs.h >>conftest.$ac_ext
7359 cat >>conftest.$ac_ext <<_ACEOF
7360 /* end confdefs.h. */
7361 $ac_includes_default
7363 main ()
7365 static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << (64 - 2)) - 1) * 2 + 1))];
7366 test_array [0] = 0
7369 return 0;
7371 _ACEOF
7372 rm -f conftest.$ac_objext
7373 if { (ac_try="$ac_compile"
7374 case "(($ac_try" in
7375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7376 *) ac_try_echo=$ac_try;;
7377 esac
7378 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7379 (eval "$ac_compile") 2>conftest.er1
7380 ac_status=$?
7381 grep -v '^ *+' conftest.er1 >conftest.err
7382 rm -f conftest.er1
7383 cat conftest.err >&5
7384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7385 (exit $ac_status); } && {
7386 test -z "$ac_c_werror_flag" ||
7387 test ! -s conftest.err
7388 } && test -s conftest.$ac_objext; then
7389 cat >conftest.$ac_ext <<_ACEOF
7390 /* confdefs.h. */
7391 _ACEOF
7392 cat confdefs.h >>conftest.$ac_ext
7393 cat >>conftest.$ac_ext <<_ACEOF
7394 /* end confdefs.h. */
7395 $ac_includes_default
7397 main ()
7399 static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << (64 - 2)) - 1) * 2 + 1)
7400 < ($ac_type) (((($ac_type) 1 << (64 - 2)) - 1) * 2 + 2))];
7401 test_array [0] = 0
7404 return 0;
7406 _ACEOF
7407 rm -f conftest.$ac_objext
7408 if { (ac_try="$ac_compile"
7409 case "(($ac_try" in
7410 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7411 *) ac_try_echo=$ac_try;;
7412 esac
7413 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7414 (eval "$ac_compile") 2>conftest.er1
7415 ac_status=$?
7416 grep -v '^ *+' conftest.er1 >conftest.err
7417 rm -f conftest.er1
7418 cat conftest.err >&5
7419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7420 (exit $ac_status); } && {
7421 test -z "$ac_c_werror_flag" ||
7422 test ! -s conftest.err
7423 } && test -s conftest.$ac_objext; then
7425 else
7426 echo "$as_me: failed program was:" >&5
7427 sed 's/^/| /' conftest.$ac_ext >&5
7429 case $ac_type in
7430 int64_t) ac_cv_c_int64_t=yes ;;
7431 *) ac_cv_c_int64_t=$ac_type ;;
7432 esac
7436 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7437 else
7438 echo "$as_me: failed program was:" >&5
7439 sed 's/^/| /' conftest.$ac_ext >&5
7444 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7445 test "$ac_cv_c_int64_t" != no && break
7446 done
7448 { echo "$as_me:$LINENO: result: $ac_cv_c_int64_t" >&5
7449 echo "${ECHO_T}$ac_cv_c_int64_t" >&6; }
7450 case $ac_cv_c_int64_t in #(
7451 no|yes) ;; #(
7454 cat >>confdefs.h <<_ACEOF
7455 #define int64_t $ac_cv_c_int64_t
7456 _ACEOF
7458 esac
7460 { echo "$as_me:$LINENO: checking for ssize_t" >&5
7461 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
7462 if test "${ac_cv_type_ssize_t+set}" = set; then
7463 echo $ECHO_N "(cached) $ECHO_C" >&6
7464 else
7465 cat >conftest.$ac_ext <<_ACEOF
7466 /* confdefs.h. */
7467 _ACEOF
7468 cat confdefs.h >>conftest.$ac_ext
7469 cat >>conftest.$ac_ext <<_ACEOF
7470 /* end confdefs.h. */
7471 $ac_includes_default
7472 typedef ssize_t ac__type_new_;
7474 main ()
7476 if ((ac__type_new_ *) 0)
7477 return 0;
7478 if (sizeof (ac__type_new_))
7479 return 0;
7481 return 0;
7483 _ACEOF
7484 rm -f conftest.$ac_objext
7485 if { (ac_try="$ac_compile"
7486 case "(($ac_try" in
7487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7488 *) ac_try_echo=$ac_try;;
7489 esac
7490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7491 (eval "$ac_compile") 2>conftest.er1
7492 ac_status=$?
7493 grep -v '^ *+' conftest.er1 >conftest.err
7494 rm -f conftest.er1
7495 cat conftest.err >&5
7496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7497 (exit $ac_status); } && {
7498 test -z "$ac_c_werror_flag" ||
7499 test ! -s conftest.err
7500 } && test -s conftest.$ac_objext; then
7501 ac_cv_type_ssize_t=yes
7502 else
7503 echo "$as_me: failed program was:" >&5
7504 sed 's/^/| /' conftest.$ac_ext >&5
7506 ac_cv_type_ssize_t=no
7509 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7511 { echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
7512 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6; }
7513 if test $ac_cv_type_ssize_t = yes; then
7515 cat >>confdefs.h <<\_ACEOF
7516 #define HAVE_SSIZE_T 1
7517 _ACEOF
7522 # Sizes of various common basic types
7523 # ANSI C requires sizeof(char) == 1, so no need to check it
7524 { echo "$as_me:$LINENO: checking for int" >&5
7525 echo $ECHO_N "checking for int... $ECHO_C" >&6; }
7526 if test "${ac_cv_type_int+set}" = set; then
7527 echo $ECHO_N "(cached) $ECHO_C" >&6
7528 else
7529 cat >conftest.$ac_ext <<_ACEOF
7530 /* confdefs.h. */
7531 _ACEOF
7532 cat confdefs.h >>conftest.$ac_ext
7533 cat >>conftest.$ac_ext <<_ACEOF
7534 /* end confdefs.h. */
7535 $ac_includes_default
7536 typedef int ac__type_new_;
7538 main ()
7540 if ((ac__type_new_ *) 0)
7541 return 0;
7542 if (sizeof (ac__type_new_))
7543 return 0;
7545 return 0;
7547 _ACEOF
7548 rm -f conftest.$ac_objext
7549 if { (ac_try="$ac_compile"
7550 case "(($ac_try" in
7551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7552 *) ac_try_echo=$ac_try;;
7553 esac
7554 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7555 (eval "$ac_compile") 2>conftest.er1
7556 ac_status=$?
7557 grep -v '^ *+' conftest.er1 >conftest.err
7558 rm -f conftest.er1
7559 cat conftest.err >&5
7560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7561 (exit $ac_status); } && {
7562 test -z "$ac_c_werror_flag" ||
7563 test ! -s conftest.err
7564 } && test -s conftest.$ac_objext; then
7565 ac_cv_type_int=yes
7566 else
7567 echo "$as_me: failed program was:" >&5
7568 sed 's/^/| /' conftest.$ac_ext >&5
7570 ac_cv_type_int=no
7573 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7575 { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
7576 echo "${ECHO_T}$ac_cv_type_int" >&6; }
7578 # The cast to long int works around a bug in the HP C Compiler
7579 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7580 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7581 # This bug is HP SR number 8606223364.
7582 { echo "$as_me:$LINENO: checking size of int" >&5
7583 echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
7584 if test "${ac_cv_sizeof_int+set}" = set; then
7585 echo $ECHO_N "(cached) $ECHO_C" >&6
7586 else
7587 if test "$cross_compiling" = yes; then
7588 # Depending upon the size, compute the lo and hi bounds.
7589 cat >conftest.$ac_ext <<_ACEOF
7590 /* confdefs.h. */
7591 _ACEOF
7592 cat confdefs.h >>conftest.$ac_ext
7593 cat >>conftest.$ac_ext <<_ACEOF
7594 /* end confdefs.h. */
7595 $ac_includes_default
7596 typedef int ac__type_sizeof_;
7598 main ()
7600 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
7601 test_array [0] = 0
7604 return 0;
7606 _ACEOF
7607 rm -f conftest.$ac_objext
7608 if { (ac_try="$ac_compile"
7609 case "(($ac_try" in
7610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7611 *) ac_try_echo=$ac_try;;
7612 esac
7613 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7614 (eval "$ac_compile") 2>conftest.er1
7615 ac_status=$?
7616 grep -v '^ *+' conftest.er1 >conftest.err
7617 rm -f conftest.er1
7618 cat conftest.err >&5
7619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7620 (exit $ac_status); } && {
7621 test -z "$ac_c_werror_flag" ||
7622 test ! -s conftest.err
7623 } && test -s conftest.$ac_objext; then
7624 ac_lo=0 ac_mid=0
7625 while :; do
7626 cat >conftest.$ac_ext <<_ACEOF
7627 /* confdefs.h. */
7628 _ACEOF
7629 cat confdefs.h >>conftest.$ac_ext
7630 cat >>conftest.$ac_ext <<_ACEOF
7631 /* end confdefs.h. */
7632 $ac_includes_default
7633 typedef int ac__type_sizeof_;
7635 main ()
7637 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
7638 test_array [0] = 0
7641 return 0;
7643 _ACEOF
7644 rm -f conftest.$ac_objext
7645 if { (ac_try="$ac_compile"
7646 case "(($ac_try" in
7647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7648 *) ac_try_echo=$ac_try;;
7649 esac
7650 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7651 (eval "$ac_compile") 2>conftest.er1
7652 ac_status=$?
7653 grep -v '^ *+' conftest.er1 >conftest.err
7654 rm -f conftest.er1
7655 cat conftest.err >&5
7656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7657 (exit $ac_status); } && {
7658 test -z "$ac_c_werror_flag" ||
7659 test ! -s conftest.err
7660 } && test -s conftest.$ac_objext; then
7661 ac_hi=$ac_mid; break
7662 else
7663 echo "$as_me: failed program was:" >&5
7664 sed 's/^/| /' conftest.$ac_ext >&5
7666 ac_lo=`expr $ac_mid + 1`
7667 if test $ac_lo -le $ac_mid; then
7668 ac_lo= ac_hi=
7669 break
7671 ac_mid=`expr 2 '*' $ac_mid + 1`
7674 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7675 done
7676 else
7677 echo "$as_me: failed program was:" >&5
7678 sed 's/^/| /' conftest.$ac_ext >&5
7680 cat >conftest.$ac_ext <<_ACEOF
7681 /* confdefs.h. */
7682 _ACEOF
7683 cat confdefs.h >>conftest.$ac_ext
7684 cat >>conftest.$ac_ext <<_ACEOF
7685 /* end confdefs.h. */
7686 $ac_includes_default
7687 typedef int ac__type_sizeof_;
7689 main ()
7691 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
7692 test_array [0] = 0
7695 return 0;
7697 _ACEOF
7698 rm -f conftest.$ac_objext
7699 if { (ac_try="$ac_compile"
7700 case "(($ac_try" in
7701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7702 *) ac_try_echo=$ac_try;;
7703 esac
7704 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7705 (eval "$ac_compile") 2>conftest.er1
7706 ac_status=$?
7707 grep -v '^ *+' conftest.er1 >conftest.err
7708 rm -f conftest.er1
7709 cat conftest.err >&5
7710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7711 (exit $ac_status); } && {
7712 test -z "$ac_c_werror_flag" ||
7713 test ! -s conftest.err
7714 } && test -s conftest.$ac_objext; then
7715 ac_hi=-1 ac_mid=-1
7716 while :; do
7717 cat >conftest.$ac_ext <<_ACEOF
7718 /* confdefs.h. */
7719 _ACEOF
7720 cat confdefs.h >>conftest.$ac_ext
7721 cat >>conftest.$ac_ext <<_ACEOF
7722 /* end confdefs.h. */
7723 $ac_includes_default
7724 typedef int ac__type_sizeof_;
7726 main ()
7728 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
7729 test_array [0] = 0
7732 return 0;
7734 _ACEOF
7735 rm -f conftest.$ac_objext
7736 if { (ac_try="$ac_compile"
7737 case "(($ac_try" in
7738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7739 *) ac_try_echo=$ac_try;;
7740 esac
7741 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7742 (eval "$ac_compile") 2>conftest.er1
7743 ac_status=$?
7744 grep -v '^ *+' conftest.er1 >conftest.err
7745 rm -f conftest.er1
7746 cat conftest.err >&5
7747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7748 (exit $ac_status); } && {
7749 test -z "$ac_c_werror_flag" ||
7750 test ! -s conftest.err
7751 } && test -s conftest.$ac_objext; then
7752 ac_lo=$ac_mid; break
7753 else
7754 echo "$as_me: failed program was:" >&5
7755 sed 's/^/| /' conftest.$ac_ext >&5
7757 ac_hi=`expr '(' $ac_mid ')' - 1`
7758 if test $ac_mid -le $ac_hi; then
7759 ac_lo= ac_hi=
7760 break
7762 ac_mid=`expr 2 '*' $ac_mid`
7765 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7766 done
7767 else
7768 echo "$as_me: failed program was:" >&5
7769 sed 's/^/| /' conftest.$ac_ext >&5
7771 ac_lo= ac_hi=
7774 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7777 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7778 # Binary search between lo and hi bounds.
7779 while test "x$ac_lo" != "x$ac_hi"; do
7780 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7781 cat >conftest.$ac_ext <<_ACEOF
7782 /* confdefs.h. */
7783 _ACEOF
7784 cat confdefs.h >>conftest.$ac_ext
7785 cat >>conftest.$ac_ext <<_ACEOF
7786 /* end confdefs.h. */
7787 $ac_includes_default
7788 typedef int ac__type_sizeof_;
7790 main ()
7792 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
7793 test_array [0] = 0
7796 return 0;
7798 _ACEOF
7799 rm -f conftest.$ac_objext
7800 if { (ac_try="$ac_compile"
7801 case "(($ac_try" in
7802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7803 *) ac_try_echo=$ac_try;;
7804 esac
7805 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7806 (eval "$ac_compile") 2>conftest.er1
7807 ac_status=$?
7808 grep -v '^ *+' conftest.er1 >conftest.err
7809 rm -f conftest.er1
7810 cat conftest.err >&5
7811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7812 (exit $ac_status); } && {
7813 test -z "$ac_c_werror_flag" ||
7814 test ! -s conftest.err
7815 } && test -s conftest.$ac_objext; then
7816 ac_hi=$ac_mid
7817 else
7818 echo "$as_me: failed program was:" >&5
7819 sed 's/^/| /' conftest.$ac_ext >&5
7821 ac_lo=`expr '(' $ac_mid ')' + 1`
7824 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7825 done
7826 case $ac_lo in
7827 ?*) ac_cv_sizeof_int=$ac_lo;;
7828 '') if test "$ac_cv_type_int" = yes; then
7829 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
7830 See \`config.log' for more details." >&5
7831 echo "$as_me: error: cannot compute sizeof (int)
7832 See \`config.log' for more details." >&2;}
7833 { (exit 77); exit 77; }; }
7834 else
7835 ac_cv_sizeof_int=0
7836 fi ;;
7837 esac
7838 else
7839 cat >conftest.$ac_ext <<_ACEOF
7840 /* confdefs.h. */
7841 _ACEOF
7842 cat confdefs.h >>conftest.$ac_ext
7843 cat >>conftest.$ac_ext <<_ACEOF
7844 /* end confdefs.h. */
7845 $ac_includes_default
7846 typedef int ac__type_sizeof_;
7847 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
7848 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
7849 #include <stdio.h>
7850 #include <stdlib.h>
7852 main ()
7855 FILE *f = fopen ("conftest.val", "w");
7856 if (! f)
7857 return 1;
7858 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
7860 long int i = longval ();
7861 if (i != ((long int) (sizeof (ac__type_sizeof_))))
7862 return 1;
7863 fprintf (f, "%ld\n", i);
7865 else
7867 unsigned long int i = ulongval ();
7868 if (i != ((long int) (sizeof (ac__type_sizeof_))))
7869 return 1;
7870 fprintf (f, "%lu\n", i);
7872 return ferror (f) || fclose (f) != 0;
7875 return 0;
7877 _ACEOF
7878 rm -f conftest$ac_exeext
7879 if { (ac_try="$ac_link"
7880 case "(($ac_try" in
7881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7882 *) ac_try_echo=$ac_try;;
7883 esac
7884 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7885 (eval "$ac_link") 2>&5
7886 ac_status=$?
7887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7888 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7889 { (case "(($ac_try" in
7890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7891 *) ac_try_echo=$ac_try;;
7892 esac
7893 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7894 (eval "$ac_try") 2>&5
7895 ac_status=$?
7896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7897 (exit $ac_status); }; }; then
7898 ac_cv_sizeof_int=`cat conftest.val`
7899 else
7900 echo "$as_me: program exited with status $ac_status" >&5
7901 echo "$as_me: failed program was:" >&5
7902 sed 's/^/| /' conftest.$ac_ext >&5
7904 ( exit $ac_status )
7905 if test "$ac_cv_type_int" = yes; then
7906 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
7907 See \`config.log' for more details." >&5
7908 echo "$as_me: error: cannot compute sizeof (int)
7909 See \`config.log' for more details." >&2;}
7910 { (exit 77); exit 77; }; }
7911 else
7912 ac_cv_sizeof_int=0
7915 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7917 rm -f conftest.val
7919 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
7920 echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
7924 cat >>confdefs.h <<_ACEOF
7925 #define SIZEOF_INT $ac_cv_sizeof_int
7926 _ACEOF
7929 { echo "$as_me:$LINENO: checking for long" >&5
7930 echo $ECHO_N "checking for long... $ECHO_C" >&6; }
7931 if test "${ac_cv_type_long+set}" = set; then
7932 echo $ECHO_N "(cached) $ECHO_C" >&6
7933 else
7934 cat >conftest.$ac_ext <<_ACEOF
7935 /* confdefs.h. */
7936 _ACEOF
7937 cat confdefs.h >>conftest.$ac_ext
7938 cat >>conftest.$ac_ext <<_ACEOF
7939 /* end confdefs.h. */
7940 $ac_includes_default
7941 typedef long ac__type_new_;
7943 main ()
7945 if ((ac__type_new_ *) 0)
7946 return 0;
7947 if (sizeof (ac__type_new_))
7948 return 0;
7950 return 0;
7952 _ACEOF
7953 rm -f conftest.$ac_objext
7954 if { (ac_try="$ac_compile"
7955 case "(($ac_try" in
7956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7957 *) ac_try_echo=$ac_try;;
7958 esac
7959 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7960 (eval "$ac_compile") 2>conftest.er1
7961 ac_status=$?
7962 grep -v '^ *+' conftest.er1 >conftest.err
7963 rm -f conftest.er1
7964 cat conftest.err >&5
7965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7966 (exit $ac_status); } && {
7967 test -z "$ac_c_werror_flag" ||
7968 test ! -s conftest.err
7969 } && test -s conftest.$ac_objext; then
7970 ac_cv_type_long=yes
7971 else
7972 echo "$as_me: failed program was:" >&5
7973 sed 's/^/| /' conftest.$ac_ext >&5
7975 ac_cv_type_long=no
7978 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7980 { echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
7981 echo "${ECHO_T}$ac_cv_type_long" >&6; }
7983 # The cast to long int works around a bug in the HP C Compiler
7984 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7985 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7986 # This bug is HP SR number 8606223364.
7987 { echo "$as_me:$LINENO: checking size of long" >&5
7988 echo $ECHO_N "checking size of long... $ECHO_C" >&6; }
7989 if test "${ac_cv_sizeof_long+set}" = set; then
7990 echo $ECHO_N "(cached) $ECHO_C" >&6
7991 else
7992 if test "$cross_compiling" = yes; then
7993 # Depending upon the size, compute the lo and hi bounds.
7994 cat >conftest.$ac_ext <<_ACEOF
7995 /* confdefs.h. */
7996 _ACEOF
7997 cat confdefs.h >>conftest.$ac_ext
7998 cat >>conftest.$ac_ext <<_ACEOF
7999 /* end confdefs.h. */
8000 $ac_includes_default
8001 typedef long ac__type_sizeof_;
8003 main ()
8005 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
8006 test_array [0] = 0
8009 return 0;
8011 _ACEOF
8012 rm -f conftest.$ac_objext
8013 if { (ac_try="$ac_compile"
8014 case "(($ac_try" in
8015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8016 *) ac_try_echo=$ac_try;;
8017 esac
8018 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8019 (eval "$ac_compile") 2>conftest.er1
8020 ac_status=$?
8021 grep -v '^ *+' conftest.er1 >conftest.err
8022 rm -f conftest.er1
8023 cat conftest.err >&5
8024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8025 (exit $ac_status); } && {
8026 test -z "$ac_c_werror_flag" ||
8027 test ! -s conftest.err
8028 } && test -s conftest.$ac_objext; then
8029 ac_lo=0 ac_mid=0
8030 while :; do
8031 cat >conftest.$ac_ext <<_ACEOF
8032 /* confdefs.h. */
8033 _ACEOF
8034 cat confdefs.h >>conftest.$ac_ext
8035 cat >>conftest.$ac_ext <<_ACEOF
8036 /* end confdefs.h. */
8037 $ac_includes_default
8038 typedef long ac__type_sizeof_;
8040 main ()
8042 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8043 test_array [0] = 0
8046 return 0;
8048 _ACEOF
8049 rm -f conftest.$ac_objext
8050 if { (ac_try="$ac_compile"
8051 case "(($ac_try" in
8052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8053 *) ac_try_echo=$ac_try;;
8054 esac
8055 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8056 (eval "$ac_compile") 2>conftest.er1
8057 ac_status=$?
8058 grep -v '^ *+' conftest.er1 >conftest.err
8059 rm -f conftest.er1
8060 cat conftest.err >&5
8061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8062 (exit $ac_status); } && {
8063 test -z "$ac_c_werror_flag" ||
8064 test ! -s conftest.err
8065 } && test -s conftest.$ac_objext; then
8066 ac_hi=$ac_mid; break
8067 else
8068 echo "$as_me: failed program was:" >&5
8069 sed 's/^/| /' conftest.$ac_ext >&5
8071 ac_lo=`expr $ac_mid + 1`
8072 if test $ac_lo -le $ac_mid; then
8073 ac_lo= ac_hi=
8074 break
8076 ac_mid=`expr 2 '*' $ac_mid + 1`
8079 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8080 done
8081 else
8082 echo "$as_me: failed program was:" >&5
8083 sed 's/^/| /' conftest.$ac_ext >&5
8085 cat >conftest.$ac_ext <<_ACEOF
8086 /* confdefs.h. */
8087 _ACEOF
8088 cat confdefs.h >>conftest.$ac_ext
8089 cat >>conftest.$ac_ext <<_ACEOF
8090 /* end confdefs.h. */
8091 $ac_includes_default
8092 typedef long ac__type_sizeof_;
8094 main ()
8096 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
8097 test_array [0] = 0
8100 return 0;
8102 _ACEOF
8103 rm -f conftest.$ac_objext
8104 if { (ac_try="$ac_compile"
8105 case "(($ac_try" in
8106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8107 *) ac_try_echo=$ac_try;;
8108 esac
8109 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8110 (eval "$ac_compile") 2>conftest.er1
8111 ac_status=$?
8112 grep -v '^ *+' conftest.er1 >conftest.err
8113 rm -f conftest.er1
8114 cat conftest.err >&5
8115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8116 (exit $ac_status); } && {
8117 test -z "$ac_c_werror_flag" ||
8118 test ! -s conftest.err
8119 } && test -s conftest.$ac_objext; then
8120 ac_hi=-1 ac_mid=-1
8121 while :; do
8122 cat >conftest.$ac_ext <<_ACEOF
8123 /* confdefs.h. */
8124 _ACEOF
8125 cat confdefs.h >>conftest.$ac_ext
8126 cat >>conftest.$ac_ext <<_ACEOF
8127 /* end confdefs.h. */
8128 $ac_includes_default
8129 typedef long ac__type_sizeof_;
8131 main ()
8133 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
8134 test_array [0] = 0
8137 return 0;
8139 _ACEOF
8140 rm -f conftest.$ac_objext
8141 if { (ac_try="$ac_compile"
8142 case "(($ac_try" in
8143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8144 *) ac_try_echo=$ac_try;;
8145 esac
8146 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8147 (eval "$ac_compile") 2>conftest.er1
8148 ac_status=$?
8149 grep -v '^ *+' conftest.er1 >conftest.err
8150 rm -f conftest.er1
8151 cat conftest.err >&5
8152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8153 (exit $ac_status); } && {
8154 test -z "$ac_c_werror_flag" ||
8155 test ! -s conftest.err
8156 } && test -s conftest.$ac_objext; then
8157 ac_lo=$ac_mid; break
8158 else
8159 echo "$as_me: failed program was:" >&5
8160 sed 's/^/| /' conftest.$ac_ext >&5
8162 ac_hi=`expr '(' $ac_mid ')' - 1`
8163 if test $ac_mid -le $ac_hi; then
8164 ac_lo= ac_hi=
8165 break
8167 ac_mid=`expr 2 '*' $ac_mid`
8170 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8171 done
8172 else
8173 echo "$as_me: failed program was:" >&5
8174 sed 's/^/| /' conftest.$ac_ext >&5
8176 ac_lo= ac_hi=
8179 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8182 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8183 # Binary search between lo and hi bounds.
8184 while test "x$ac_lo" != "x$ac_hi"; do
8185 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8186 cat >conftest.$ac_ext <<_ACEOF
8187 /* confdefs.h. */
8188 _ACEOF
8189 cat confdefs.h >>conftest.$ac_ext
8190 cat >>conftest.$ac_ext <<_ACEOF
8191 /* end confdefs.h. */
8192 $ac_includes_default
8193 typedef long ac__type_sizeof_;
8195 main ()
8197 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8198 test_array [0] = 0
8201 return 0;
8203 _ACEOF
8204 rm -f conftest.$ac_objext
8205 if { (ac_try="$ac_compile"
8206 case "(($ac_try" in
8207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8208 *) ac_try_echo=$ac_try;;
8209 esac
8210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8211 (eval "$ac_compile") 2>conftest.er1
8212 ac_status=$?
8213 grep -v '^ *+' conftest.er1 >conftest.err
8214 rm -f conftest.er1
8215 cat conftest.err >&5
8216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8217 (exit $ac_status); } && {
8218 test -z "$ac_c_werror_flag" ||
8219 test ! -s conftest.err
8220 } && test -s conftest.$ac_objext; then
8221 ac_hi=$ac_mid
8222 else
8223 echo "$as_me: failed program was:" >&5
8224 sed 's/^/| /' conftest.$ac_ext >&5
8226 ac_lo=`expr '(' $ac_mid ')' + 1`
8229 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8230 done
8231 case $ac_lo in
8232 ?*) ac_cv_sizeof_long=$ac_lo;;
8233 '') if test "$ac_cv_type_long" = yes; then
8234 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
8235 See \`config.log' for more details." >&5
8236 echo "$as_me: error: cannot compute sizeof (long)
8237 See \`config.log' for more details." >&2;}
8238 { (exit 77); exit 77; }; }
8239 else
8240 ac_cv_sizeof_long=0
8241 fi ;;
8242 esac
8243 else
8244 cat >conftest.$ac_ext <<_ACEOF
8245 /* confdefs.h. */
8246 _ACEOF
8247 cat confdefs.h >>conftest.$ac_ext
8248 cat >>conftest.$ac_ext <<_ACEOF
8249 /* end confdefs.h. */
8250 $ac_includes_default
8251 typedef long ac__type_sizeof_;
8252 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
8253 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
8254 #include <stdio.h>
8255 #include <stdlib.h>
8257 main ()
8260 FILE *f = fopen ("conftest.val", "w");
8261 if (! f)
8262 return 1;
8263 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
8265 long int i = longval ();
8266 if (i != ((long int) (sizeof (ac__type_sizeof_))))
8267 return 1;
8268 fprintf (f, "%ld\n", i);
8270 else
8272 unsigned long int i = ulongval ();
8273 if (i != ((long int) (sizeof (ac__type_sizeof_))))
8274 return 1;
8275 fprintf (f, "%lu\n", i);
8277 return ferror (f) || fclose (f) != 0;
8280 return 0;
8282 _ACEOF
8283 rm -f conftest$ac_exeext
8284 if { (ac_try="$ac_link"
8285 case "(($ac_try" in
8286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8287 *) ac_try_echo=$ac_try;;
8288 esac
8289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8290 (eval "$ac_link") 2>&5
8291 ac_status=$?
8292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8293 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8294 { (case "(($ac_try" in
8295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8296 *) ac_try_echo=$ac_try;;
8297 esac
8298 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8299 (eval "$ac_try") 2>&5
8300 ac_status=$?
8301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8302 (exit $ac_status); }; }; then
8303 ac_cv_sizeof_long=`cat conftest.val`
8304 else
8305 echo "$as_me: program exited with status $ac_status" >&5
8306 echo "$as_me: failed program was:" >&5
8307 sed 's/^/| /' conftest.$ac_ext >&5
8309 ( exit $ac_status )
8310 if test "$ac_cv_type_long" = yes; then
8311 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
8312 See \`config.log' for more details." >&5
8313 echo "$as_me: error: cannot compute sizeof (long)
8314 See \`config.log' for more details." >&2;}
8315 { (exit 77); exit 77; }; }
8316 else
8317 ac_cv_sizeof_long=0
8320 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8322 rm -f conftest.val
8324 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
8325 echo "${ECHO_T}$ac_cv_sizeof_long" >&6; }
8329 cat >>confdefs.h <<_ACEOF
8330 #define SIZEOF_LONG $ac_cv_sizeof_long
8331 _ACEOF
8334 { echo "$as_me:$LINENO: checking for void *" >&5
8335 echo $ECHO_N "checking for void *... $ECHO_C" >&6; }
8336 if test "${ac_cv_type_void_p+set}" = set; then
8337 echo $ECHO_N "(cached) $ECHO_C" >&6
8338 else
8339 cat >conftest.$ac_ext <<_ACEOF
8340 /* confdefs.h. */
8341 _ACEOF
8342 cat confdefs.h >>conftest.$ac_ext
8343 cat >>conftest.$ac_ext <<_ACEOF
8344 /* end confdefs.h. */
8345 $ac_includes_default
8346 typedef void * ac__type_new_;
8348 main ()
8350 if ((ac__type_new_ *) 0)
8351 return 0;
8352 if (sizeof (ac__type_new_))
8353 return 0;
8355 return 0;
8357 _ACEOF
8358 rm -f conftest.$ac_objext
8359 if { (ac_try="$ac_compile"
8360 case "(($ac_try" in
8361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8362 *) ac_try_echo=$ac_try;;
8363 esac
8364 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8365 (eval "$ac_compile") 2>conftest.er1
8366 ac_status=$?
8367 grep -v '^ *+' conftest.er1 >conftest.err
8368 rm -f conftest.er1
8369 cat conftest.err >&5
8370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8371 (exit $ac_status); } && {
8372 test -z "$ac_c_werror_flag" ||
8373 test ! -s conftest.err
8374 } && test -s conftest.$ac_objext; then
8375 ac_cv_type_void_p=yes
8376 else
8377 echo "$as_me: failed program was:" >&5
8378 sed 's/^/| /' conftest.$ac_ext >&5
8380 ac_cv_type_void_p=no
8383 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8385 { echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
8386 echo "${ECHO_T}$ac_cv_type_void_p" >&6; }
8388 # The cast to long int works around a bug in the HP C Compiler
8389 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8390 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8391 # This bug is HP SR number 8606223364.
8392 { echo "$as_me:$LINENO: checking size of void *" >&5
8393 echo $ECHO_N "checking size of void *... $ECHO_C" >&6; }
8394 if test "${ac_cv_sizeof_void_p+set}" = set; then
8395 echo $ECHO_N "(cached) $ECHO_C" >&6
8396 else
8397 if test "$cross_compiling" = yes; then
8398 # Depending upon the size, compute the lo and hi bounds.
8399 cat >conftest.$ac_ext <<_ACEOF
8400 /* confdefs.h. */
8401 _ACEOF
8402 cat confdefs.h >>conftest.$ac_ext
8403 cat >>conftest.$ac_ext <<_ACEOF
8404 /* end confdefs.h. */
8405 $ac_includes_default
8406 typedef void * ac__type_sizeof_;
8408 main ()
8410 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
8411 test_array [0] = 0
8414 return 0;
8416 _ACEOF
8417 rm -f conftest.$ac_objext
8418 if { (ac_try="$ac_compile"
8419 case "(($ac_try" in
8420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8421 *) ac_try_echo=$ac_try;;
8422 esac
8423 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8424 (eval "$ac_compile") 2>conftest.er1
8425 ac_status=$?
8426 grep -v '^ *+' conftest.er1 >conftest.err
8427 rm -f conftest.er1
8428 cat conftest.err >&5
8429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8430 (exit $ac_status); } && {
8431 test -z "$ac_c_werror_flag" ||
8432 test ! -s conftest.err
8433 } && test -s conftest.$ac_objext; then
8434 ac_lo=0 ac_mid=0
8435 while :; do
8436 cat >conftest.$ac_ext <<_ACEOF
8437 /* confdefs.h. */
8438 _ACEOF
8439 cat confdefs.h >>conftest.$ac_ext
8440 cat >>conftest.$ac_ext <<_ACEOF
8441 /* end confdefs.h. */
8442 $ac_includes_default
8443 typedef void * ac__type_sizeof_;
8445 main ()
8447 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8448 test_array [0] = 0
8451 return 0;
8453 _ACEOF
8454 rm -f conftest.$ac_objext
8455 if { (ac_try="$ac_compile"
8456 case "(($ac_try" in
8457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8458 *) ac_try_echo=$ac_try;;
8459 esac
8460 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8461 (eval "$ac_compile") 2>conftest.er1
8462 ac_status=$?
8463 grep -v '^ *+' conftest.er1 >conftest.err
8464 rm -f conftest.er1
8465 cat conftest.err >&5
8466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8467 (exit $ac_status); } && {
8468 test -z "$ac_c_werror_flag" ||
8469 test ! -s conftest.err
8470 } && test -s conftest.$ac_objext; then
8471 ac_hi=$ac_mid; break
8472 else
8473 echo "$as_me: failed program was:" >&5
8474 sed 's/^/| /' conftest.$ac_ext >&5
8476 ac_lo=`expr $ac_mid + 1`
8477 if test $ac_lo -le $ac_mid; then
8478 ac_lo= ac_hi=
8479 break
8481 ac_mid=`expr 2 '*' $ac_mid + 1`
8484 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8485 done
8486 else
8487 echo "$as_me: failed program was:" >&5
8488 sed 's/^/| /' conftest.$ac_ext >&5
8490 cat >conftest.$ac_ext <<_ACEOF
8491 /* confdefs.h. */
8492 _ACEOF
8493 cat confdefs.h >>conftest.$ac_ext
8494 cat >>conftest.$ac_ext <<_ACEOF
8495 /* end confdefs.h. */
8496 $ac_includes_default
8497 typedef void * ac__type_sizeof_;
8499 main ()
8501 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
8502 test_array [0] = 0
8505 return 0;
8507 _ACEOF
8508 rm -f conftest.$ac_objext
8509 if { (ac_try="$ac_compile"
8510 case "(($ac_try" in
8511 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8512 *) ac_try_echo=$ac_try;;
8513 esac
8514 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8515 (eval "$ac_compile") 2>conftest.er1
8516 ac_status=$?
8517 grep -v '^ *+' conftest.er1 >conftest.err
8518 rm -f conftest.er1
8519 cat conftest.err >&5
8520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8521 (exit $ac_status); } && {
8522 test -z "$ac_c_werror_flag" ||
8523 test ! -s conftest.err
8524 } && test -s conftest.$ac_objext; then
8525 ac_hi=-1 ac_mid=-1
8526 while :; do
8527 cat >conftest.$ac_ext <<_ACEOF
8528 /* confdefs.h. */
8529 _ACEOF
8530 cat confdefs.h >>conftest.$ac_ext
8531 cat >>conftest.$ac_ext <<_ACEOF
8532 /* end confdefs.h. */
8533 $ac_includes_default
8534 typedef void * ac__type_sizeof_;
8536 main ()
8538 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
8539 test_array [0] = 0
8542 return 0;
8544 _ACEOF
8545 rm -f conftest.$ac_objext
8546 if { (ac_try="$ac_compile"
8547 case "(($ac_try" in
8548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8549 *) ac_try_echo=$ac_try;;
8550 esac
8551 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8552 (eval "$ac_compile") 2>conftest.er1
8553 ac_status=$?
8554 grep -v '^ *+' conftest.er1 >conftest.err
8555 rm -f conftest.er1
8556 cat conftest.err >&5
8557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8558 (exit $ac_status); } && {
8559 test -z "$ac_c_werror_flag" ||
8560 test ! -s conftest.err
8561 } && test -s conftest.$ac_objext; then
8562 ac_lo=$ac_mid; break
8563 else
8564 echo "$as_me: failed program was:" >&5
8565 sed 's/^/| /' conftest.$ac_ext >&5
8567 ac_hi=`expr '(' $ac_mid ')' - 1`
8568 if test $ac_mid -le $ac_hi; then
8569 ac_lo= ac_hi=
8570 break
8572 ac_mid=`expr 2 '*' $ac_mid`
8575 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8576 done
8577 else
8578 echo "$as_me: failed program was:" >&5
8579 sed 's/^/| /' conftest.$ac_ext >&5
8581 ac_lo= ac_hi=
8584 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8587 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8588 # Binary search between lo and hi bounds.
8589 while test "x$ac_lo" != "x$ac_hi"; do
8590 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8591 cat >conftest.$ac_ext <<_ACEOF
8592 /* confdefs.h. */
8593 _ACEOF
8594 cat confdefs.h >>conftest.$ac_ext
8595 cat >>conftest.$ac_ext <<_ACEOF
8596 /* end confdefs.h. */
8597 $ac_includes_default
8598 typedef void * ac__type_sizeof_;
8600 main ()
8602 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8603 test_array [0] = 0
8606 return 0;
8608 _ACEOF
8609 rm -f conftest.$ac_objext
8610 if { (ac_try="$ac_compile"
8611 case "(($ac_try" in
8612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8613 *) ac_try_echo=$ac_try;;
8614 esac
8615 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8616 (eval "$ac_compile") 2>conftest.er1
8617 ac_status=$?
8618 grep -v '^ *+' conftest.er1 >conftest.err
8619 rm -f conftest.er1
8620 cat conftest.err >&5
8621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8622 (exit $ac_status); } && {
8623 test -z "$ac_c_werror_flag" ||
8624 test ! -s conftest.err
8625 } && test -s conftest.$ac_objext; then
8626 ac_hi=$ac_mid
8627 else
8628 echo "$as_me: failed program was:" >&5
8629 sed 's/^/| /' conftest.$ac_ext >&5
8631 ac_lo=`expr '(' $ac_mid ')' + 1`
8634 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8635 done
8636 case $ac_lo in
8637 ?*) ac_cv_sizeof_void_p=$ac_lo;;
8638 '') if test "$ac_cv_type_void_p" = yes; then
8639 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
8640 See \`config.log' for more details." >&5
8641 echo "$as_me: error: cannot compute sizeof (void *)
8642 See \`config.log' for more details." >&2;}
8643 { (exit 77); exit 77; }; }
8644 else
8645 ac_cv_sizeof_void_p=0
8646 fi ;;
8647 esac
8648 else
8649 cat >conftest.$ac_ext <<_ACEOF
8650 /* confdefs.h. */
8651 _ACEOF
8652 cat confdefs.h >>conftest.$ac_ext
8653 cat >>conftest.$ac_ext <<_ACEOF
8654 /* end confdefs.h. */
8655 $ac_includes_default
8656 typedef void * ac__type_sizeof_;
8657 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
8658 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
8659 #include <stdio.h>
8660 #include <stdlib.h>
8662 main ()
8665 FILE *f = fopen ("conftest.val", "w");
8666 if (! f)
8667 return 1;
8668 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
8670 long int i = longval ();
8671 if (i != ((long int) (sizeof (ac__type_sizeof_))))
8672 return 1;
8673 fprintf (f, "%ld\n", i);
8675 else
8677 unsigned long int i = ulongval ();
8678 if (i != ((long int) (sizeof (ac__type_sizeof_))))
8679 return 1;
8680 fprintf (f, "%lu\n", i);
8682 return ferror (f) || fclose (f) != 0;
8685 return 0;
8687 _ACEOF
8688 rm -f conftest$ac_exeext
8689 if { (ac_try="$ac_link"
8690 case "(($ac_try" in
8691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8692 *) ac_try_echo=$ac_try;;
8693 esac
8694 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8695 (eval "$ac_link") 2>&5
8696 ac_status=$?
8697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8698 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8699 { (case "(($ac_try" in
8700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8701 *) ac_try_echo=$ac_try;;
8702 esac
8703 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8704 (eval "$ac_try") 2>&5
8705 ac_status=$?
8706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8707 (exit $ac_status); }; }; then
8708 ac_cv_sizeof_void_p=`cat conftest.val`
8709 else
8710 echo "$as_me: program exited with status $ac_status" >&5
8711 echo "$as_me: failed program was:" >&5
8712 sed 's/^/| /' conftest.$ac_ext >&5
8714 ( exit $ac_status )
8715 if test "$ac_cv_type_void_p" = yes; then
8716 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
8717 See \`config.log' for more details." >&5
8718 echo "$as_me: error: cannot compute sizeof (void *)
8719 See \`config.log' for more details." >&2;}
8720 { (exit 77); exit 77; }; }
8721 else
8722 ac_cv_sizeof_void_p=0
8725 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8727 rm -f conftest.val
8729 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
8730 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6; }
8734 cat >>confdefs.h <<_ACEOF
8735 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
8736 _ACEOF
8739 { echo "$as_me:$LINENO: checking for short" >&5
8740 echo $ECHO_N "checking for short... $ECHO_C" >&6; }
8741 if test "${ac_cv_type_short+set}" = set; then
8742 echo $ECHO_N "(cached) $ECHO_C" >&6
8743 else
8744 cat >conftest.$ac_ext <<_ACEOF
8745 /* confdefs.h. */
8746 _ACEOF
8747 cat confdefs.h >>conftest.$ac_ext
8748 cat >>conftest.$ac_ext <<_ACEOF
8749 /* end confdefs.h. */
8750 $ac_includes_default
8751 typedef short ac__type_new_;
8753 main ()
8755 if ((ac__type_new_ *) 0)
8756 return 0;
8757 if (sizeof (ac__type_new_))
8758 return 0;
8760 return 0;
8762 _ACEOF
8763 rm -f conftest.$ac_objext
8764 if { (ac_try="$ac_compile"
8765 case "(($ac_try" in
8766 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8767 *) ac_try_echo=$ac_try;;
8768 esac
8769 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8770 (eval "$ac_compile") 2>conftest.er1
8771 ac_status=$?
8772 grep -v '^ *+' conftest.er1 >conftest.err
8773 rm -f conftest.er1
8774 cat conftest.err >&5
8775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8776 (exit $ac_status); } && {
8777 test -z "$ac_c_werror_flag" ||
8778 test ! -s conftest.err
8779 } && test -s conftest.$ac_objext; then
8780 ac_cv_type_short=yes
8781 else
8782 echo "$as_me: failed program was:" >&5
8783 sed 's/^/| /' conftest.$ac_ext >&5
8785 ac_cv_type_short=no
8788 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8790 { echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
8791 echo "${ECHO_T}$ac_cv_type_short" >&6; }
8793 # The cast to long int works around a bug in the HP C Compiler
8794 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8795 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8796 # This bug is HP SR number 8606223364.
8797 { echo "$as_me:$LINENO: checking size of short" >&5
8798 echo $ECHO_N "checking size of short... $ECHO_C" >&6; }
8799 if test "${ac_cv_sizeof_short+set}" = set; then
8800 echo $ECHO_N "(cached) $ECHO_C" >&6
8801 else
8802 if test "$cross_compiling" = yes; then
8803 # Depending upon the size, compute the lo and hi bounds.
8804 cat >conftest.$ac_ext <<_ACEOF
8805 /* confdefs.h. */
8806 _ACEOF
8807 cat confdefs.h >>conftest.$ac_ext
8808 cat >>conftest.$ac_ext <<_ACEOF
8809 /* end confdefs.h. */
8810 $ac_includes_default
8811 typedef short ac__type_sizeof_;
8813 main ()
8815 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
8816 test_array [0] = 0
8819 return 0;
8821 _ACEOF
8822 rm -f conftest.$ac_objext
8823 if { (ac_try="$ac_compile"
8824 case "(($ac_try" in
8825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8826 *) ac_try_echo=$ac_try;;
8827 esac
8828 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8829 (eval "$ac_compile") 2>conftest.er1
8830 ac_status=$?
8831 grep -v '^ *+' conftest.er1 >conftest.err
8832 rm -f conftest.er1
8833 cat conftest.err >&5
8834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8835 (exit $ac_status); } && {
8836 test -z "$ac_c_werror_flag" ||
8837 test ! -s conftest.err
8838 } && test -s conftest.$ac_objext; then
8839 ac_lo=0 ac_mid=0
8840 while :; do
8841 cat >conftest.$ac_ext <<_ACEOF
8842 /* confdefs.h. */
8843 _ACEOF
8844 cat confdefs.h >>conftest.$ac_ext
8845 cat >>conftest.$ac_ext <<_ACEOF
8846 /* end confdefs.h. */
8847 $ac_includes_default
8848 typedef short ac__type_sizeof_;
8850 main ()
8852 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8853 test_array [0] = 0
8856 return 0;
8858 _ACEOF
8859 rm -f conftest.$ac_objext
8860 if { (ac_try="$ac_compile"
8861 case "(($ac_try" in
8862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8863 *) ac_try_echo=$ac_try;;
8864 esac
8865 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8866 (eval "$ac_compile") 2>conftest.er1
8867 ac_status=$?
8868 grep -v '^ *+' conftest.er1 >conftest.err
8869 rm -f conftest.er1
8870 cat conftest.err >&5
8871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8872 (exit $ac_status); } && {
8873 test -z "$ac_c_werror_flag" ||
8874 test ! -s conftest.err
8875 } && test -s conftest.$ac_objext; then
8876 ac_hi=$ac_mid; break
8877 else
8878 echo "$as_me: failed program was:" >&5
8879 sed 's/^/| /' conftest.$ac_ext >&5
8881 ac_lo=`expr $ac_mid + 1`
8882 if test $ac_lo -le $ac_mid; then
8883 ac_lo= ac_hi=
8884 break
8886 ac_mid=`expr 2 '*' $ac_mid + 1`
8889 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8890 done
8891 else
8892 echo "$as_me: failed program was:" >&5
8893 sed 's/^/| /' conftest.$ac_ext >&5
8895 cat >conftest.$ac_ext <<_ACEOF
8896 /* confdefs.h. */
8897 _ACEOF
8898 cat confdefs.h >>conftest.$ac_ext
8899 cat >>conftest.$ac_ext <<_ACEOF
8900 /* end confdefs.h. */
8901 $ac_includes_default
8902 typedef short ac__type_sizeof_;
8904 main ()
8906 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
8907 test_array [0] = 0
8910 return 0;
8912 _ACEOF
8913 rm -f conftest.$ac_objext
8914 if { (ac_try="$ac_compile"
8915 case "(($ac_try" in
8916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8917 *) ac_try_echo=$ac_try;;
8918 esac
8919 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8920 (eval "$ac_compile") 2>conftest.er1
8921 ac_status=$?
8922 grep -v '^ *+' conftest.er1 >conftest.err
8923 rm -f conftest.er1
8924 cat conftest.err >&5
8925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8926 (exit $ac_status); } && {
8927 test -z "$ac_c_werror_flag" ||
8928 test ! -s conftest.err
8929 } && test -s conftest.$ac_objext; then
8930 ac_hi=-1 ac_mid=-1
8931 while :; do
8932 cat >conftest.$ac_ext <<_ACEOF
8933 /* confdefs.h. */
8934 _ACEOF
8935 cat confdefs.h >>conftest.$ac_ext
8936 cat >>conftest.$ac_ext <<_ACEOF
8937 /* end confdefs.h. */
8938 $ac_includes_default
8939 typedef short ac__type_sizeof_;
8941 main ()
8943 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
8944 test_array [0] = 0
8947 return 0;
8949 _ACEOF
8950 rm -f conftest.$ac_objext
8951 if { (ac_try="$ac_compile"
8952 case "(($ac_try" in
8953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8954 *) ac_try_echo=$ac_try;;
8955 esac
8956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8957 (eval "$ac_compile") 2>conftest.er1
8958 ac_status=$?
8959 grep -v '^ *+' conftest.er1 >conftest.err
8960 rm -f conftest.er1
8961 cat conftest.err >&5
8962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8963 (exit $ac_status); } && {
8964 test -z "$ac_c_werror_flag" ||
8965 test ! -s conftest.err
8966 } && test -s conftest.$ac_objext; then
8967 ac_lo=$ac_mid; break
8968 else
8969 echo "$as_me: failed program was:" >&5
8970 sed 's/^/| /' conftest.$ac_ext >&5
8972 ac_hi=`expr '(' $ac_mid ')' - 1`
8973 if test $ac_mid -le $ac_hi; then
8974 ac_lo= ac_hi=
8975 break
8977 ac_mid=`expr 2 '*' $ac_mid`
8980 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8981 done
8982 else
8983 echo "$as_me: failed program was:" >&5
8984 sed 's/^/| /' conftest.$ac_ext >&5
8986 ac_lo= ac_hi=
8989 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8992 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8993 # Binary search between lo and hi bounds.
8994 while test "x$ac_lo" != "x$ac_hi"; do
8995 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8996 cat >conftest.$ac_ext <<_ACEOF
8997 /* confdefs.h. */
8998 _ACEOF
8999 cat confdefs.h >>conftest.$ac_ext
9000 cat >>conftest.$ac_ext <<_ACEOF
9001 /* end confdefs.h. */
9002 $ac_includes_default
9003 typedef short ac__type_sizeof_;
9005 main ()
9007 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
9008 test_array [0] = 0
9011 return 0;
9013 _ACEOF
9014 rm -f conftest.$ac_objext
9015 if { (ac_try="$ac_compile"
9016 case "(($ac_try" in
9017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9018 *) ac_try_echo=$ac_try;;
9019 esac
9020 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9021 (eval "$ac_compile") 2>conftest.er1
9022 ac_status=$?
9023 grep -v '^ *+' conftest.er1 >conftest.err
9024 rm -f conftest.er1
9025 cat conftest.err >&5
9026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9027 (exit $ac_status); } && {
9028 test -z "$ac_c_werror_flag" ||
9029 test ! -s conftest.err
9030 } && test -s conftest.$ac_objext; then
9031 ac_hi=$ac_mid
9032 else
9033 echo "$as_me: failed program was:" >&5
9034 sed 's/^/| /' conftest.$ac_ext >&5
9036 ac_lo=`expr '(' $ac_mid ')' + 1`
9039 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9040 done
9041 case $ac_lo in
9042 ?*) ac_cv_sizeof_short=$ac_lo;;
9043 '') if test "$ac_cv_type_short" = yes; then
9044 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
9045 See \`config.log' for more details." >&5
9046 echo "$as_me: error: cannot compute sizeof (short)
9047 See \`config.log' for more details." >&2;}
9048 { (exit 77); exit 77; }; }
9049 else
9050 ac_cv_sizeof_short=0
9051 fi ;;
9052 esac
9053 else
9054 cat >conftest.$ac_ext <<_ACEOF
9055 /* confdefs.h. */
9056 _ACEOF
9057 cat confdefs.h >>conftest.$ac_ext
9058 cat >>conftest.$ac_ext <<_ACEOF
9059 /* end confdefs.h. */
9060 $ac_includes_default
9061 typedef short ac__type_sizeof_;
9062 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
9063 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
9064 #include <stdio.h>
9065 #include <stdlib.h>
9067 main ()
9070 FILE *f = fopen ("conftest.val", "w");
9071 if (! f)
9072 return 1;
9073 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
9075 long int i = longval ();
9076 if (i != ((long int) (sizeof (ac__type_sizeof_))))
9077 return 1;
9078 fprintf (f, "%ld\n", i);
9080 else
9082 unsigned long int i = ulongval ();
9083 if (i != ((long int) (sizeof (ac__type_sizeof_))))
9084 return 1;
9085 fprintf (f, "%lu\n", i);
9087 return ferror (f) || fclose (f) != 0;
9090 return 0;
9092 _ACEOF
9093 rm -f conftest$ac_exeext
9094 if { (ac_try="$ac_link"
9095 case "(($ac_try" in
9096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9097 *) ac_try_echo=$ac_try;;
9098 esac
9099 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9100 (eval "$ac_link") 2>&5
9101 ac_status=$?
9102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9103 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9104 { (case "(($ac_try" in
9105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9106 *) ac_try_echo=$ac_try;;
9107 esac
9108 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9109 (eval "$ac_try") 2>&5
9110 ac_status=$?
9111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9112 (exit $ac_status); }; }; then
9113 ac_cv_sizeof_short=`cat conftest.val`
9114 else
9115 echo "$as_me: program exited with status $ac_status" >&5
9116 echo "$as_me: failed program was:" >&5
9117 sed 's/^/| /' conftest.$ac_ext >&5
9119 ( exit $ac_status )
9120 if test "$ac_cv_type_short" = yes; then
9121 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
9122 See \`config.log' for more details." >&5
9123 echo "$as_me: error: cannot compute sizeof (short)
9124 See \`config.log' for more details." >&2;}
9125 { (exit 77); exit 77; }; }
9126 else
9127 ac_cv_sizeof_short=0
9130 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9132 rm -f conftest.val
9134 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
9135 echo "${ECHO_T}$ac_cv_sizeof_short" >&6; }
9139 cat >>confdefs.h <<_ACEOF
9140 #define SIZEOF_SHORT $ac_cv_sizeof_short
9141 _ACEOF
9144 { echo "$as_me:$LINENO: checking for float" >&5
9145 echo $ECHO_N "checking for float... $ECHO_C" >&6; }
9146 if test "${ac_cv_type_float+set}" = set; then
9147 echo $ECHO_N "(cached) $ECHO_C" >&6
9148 else
9149 cat >conftest.$ac_ext <<_ACEOF
9150 /* confdefs.h. */
9151 _ACEOF
9152 cat confdefs.h >>conftest.$ac_ext
9153 cat >>conftest.$ac_ext <<_ACEOF
9154 /* end confdefs.h. */
9155 $ac_includes_default
9156 typedef float ac__type_new_;
9158 main ()
9160 if ((ac__type_new_ *) 0)
9161 return 0;
9162 if (sizeof (ac__type_new_))
9163 return 0;
9165 return 0;
9167 _ACEOF
9168 rm -f conftest.$ac_objext
9169 if { (ac_try="$ac_compile"
9170 case "(($ac_try" in
9171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9172 *) ac_try_echo=$ac_try;;
9173 esac
9174 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9175 (eval "$ac_compile") 2>conftest.er1
9176 ac_status=$?
9177 grep -v '^ *+' conftest.er1 >conftest.err
9178 rm -f conftest.er1
9179 cat conftest.err >&5
9180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9181 (exit $ac_status); } && {
9182 test -z "$ac_c_werror_flag" ||
9183 test ! -s conftest.err
9184 } && test -s conftest.$ac_objext; then
9185 ac_cv_type_float=yes
9186 else
9187 echo "$as_me: failed program was:" >&5
9188 sed 's/^/| /' conftest.$ac_ext >&5
9190 ac_cv_type_float=no
9193 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9195 { echo "$as_me:$LINENO: result: $ac_cv_type_float" >&5
9196 echo "${ECHO_T}$ac_cv_type_float" >&6; }
9198 # The cast to long int works around a bug in the HP C Compiler
9199 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9200 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9201 # This bug is HP SR number 8606223364.
9202 { echo "$as_me:$LINENO: checking size of float" >&5
9203 echo $ECHO_N "checking size of float... $ECHO_C" >&6; }
9204 if test "${ac_cv_sizeof_float+set}" = set; then
9205 echo $ECHO_N "(cached) $ECHO_C" >&6
9206 else
9207 if test "$cross_compiling" = yes; then
9208 # Depending upon the size, compute the lo and hi bounds.
9209 cat >conftest.$ac_ext <<_ACEOF
9210 /* confdefs.h. */
9211 _ACEOF
9212 cat confdefs.h >>conftest.$ac_ext
9213 cat >>conftest.$ac_ext <<_ACEOF
9214 /* end confdefs.h. */
9215 $ac_includes_default
9216 typedef float ac__type_sizeof_;
9218 main ()
9220 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
9221 test_array [0] = 0
9224 return 0;
9226 _ACEOF
9227 rm -f conftest.$ac_objext
9228 if { (ac_try="$ac_compile"
9229 case "(($ac_try" in
9230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9231 *) ac_try_echo=$ac_try;;
9232 esac
9233 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9234 (eval "$ac_compile") 2>conftest.er1
9235 ac_status=$?
9236 grep -v '^ *+' conftest.er1 >conftest.err
9237 rm -f conftest.er1
9238 cat conftest.err >&5
9239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9240 (exit $ac_status); } && {
9241 test -z "$ac_c_werror_flag" ||
9242 test ! -s conftest.err
9243 } && test -s conftest.$ac_objext; then
9244 ac_lo=0 ac_mid=0
9245 while :; do
9246 cat >conftest.$ac_ext <<_ACEOF
9247 /* confdefs.h. */
9248 _ACEOF
9249 cat confdefs.h >>conftest.$ac_ext
9250 cat >>conftest.$ac_ext <<_ACEOF
9251 /* end confdefs.h. */
9252 $ac_includes_default
9253 typedef float ac__type_sizeof_;
9255 main ()
9257 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
9258 test_array [0] = 0
9261 return 0;
9263 _ACEOF
9264 rm -f conftest.$ac_objext
9265 if { (ac_try="$ac_compile"
9266 case "(($ac_try" in
9267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9268 *) ac_try_echo=$ac_try;;
9269 esac
9270 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9271 (eval "$ac_compile") 2>conftest.er1
9272 ac_status=$?
9273 grep -v '^ *+' conftest.er1 >conftest.err
9274 rm -f conftest.er1
9275 cat conftest.err >&5
9276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9277 (exit $ac_status); } && {
9278 test -z "$ac_c_werror_flag" ||
9279 test ! -s conftest.err
9280 } && test -s conftest.$ac_objext; then
9281 ac_hi=$ac_mid; break
9282 else
9283 echo "$as_me: failed program was:" >&5
9284 sed 's/^/| /' conftest.$ac_ext >&5
9286 ac_lo=`expr $ac_mid + 1`
9287 if test $ac_lo -le $ac_mid; then
9288 ac_lo= ac_hi=
9289 break
9291 ac_mid=`expr 2 '*' $ac_mid + 1`
9294 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9295 done
9296 else
9297 echo "$as_me: failed program was:" >&5
9298 sed 's/^/| /' conftest.$ac_ext >&5
9300 cat >conftest.$ac_ext <<_ACEOF
9301 /* confdefs.h. */
9302 _ACEOF
9303 cat confdefs.h >>conftest.$ac_ext
9304 cat >>conftest.$ac_ext <<_ACEOF
9305 /* end confdefs.h. */
9306 $ac_includes_default
9307 typedef float ac__type_sizeof_;
9309 main ()
9311 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
9312 test_array [0] = 0
9315 return 0;
9317 _ACEOF
9318 rm -f conftest.$ac_objext
9319 if { (ac_try="$ac_compile"
9320 case "(($ac_try" in
9321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9322 *) ac_try_echo=$ac_try;;
9323 esac
9324 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9325 (eval "$ac_compile") 2>conftest.er1
9326 ac_status=$?
9327 grep -v '^ *+' conftest.er1 >conftest.err
9328 rm -f conftest.er1
9329 cat conftest.err >&5
9330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9331 (exit $ac_status); } && {
9332 test -z "$ac_c_werror_flag" ||
9333 test ! -s conftest.err
9334 } && test -s conftest.$ac_objext; then
9335 ac_hi=-1 ac_mid=-1
9336 while :; do
9337 cat >conftest.$ac_ext <<_ACEOF
9338 /* confdefs.h. */
9339 _ACEOF
9340 cat confdefs.h >>conftest.$ac_ext
9341 cat >>conftest.$ac_ext <<_ACEOF
9342 /* end confdefs.h. */
9343 $ac_includes_default
9344 typedef float ac__type_sizeof_;
9346 main ()
9348 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
9349 test_array [0] = 0
9352 return 0;
9354 _ACEOF
9355 rm -f conftest.$ac_objext
9356 if { (ac_try="$ac_compile"
9357 case "(($ac_try" in
9358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9359 *) ac_try_echo=$ac_try;;
9360 esac
9361 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9362 (eval "$ac_compile") 2>conftest.er1
9363 ac_status=$?
9364 grep -v '^ *+' conftest.er1 >conftest.err
9365 rm -f conftest.er1
9366 cat conftest.err >&5
9367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9368 (exit $ac_status); } && {
9369 test -z "$ac_c_werror_flag" ||
9370 test ! -s conftest.err
9371 } && test -s conftest.$ac_objext; then
9372 ac_lo=$ac_mid; break
9373 else
9374 echo "$as_me: failed program was:" >&5
9375 sed 's/^/| /' conftest.$ac_ext >&5
9377 ac_hi=`expr '(' $ac_mid ')' - 1`
9378 if test $ac_mid -le $ac_hi; then
9379 ac_lo= ac_hi=
9380 break
9382 ac_mid=`expr 2 '*' $ac_mid`
9385 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9386 done
9387 else
9388 echo "$as_me: failed program was:" >&5
9389 sed 's/^/| /' conftest.$ac_ext >&5
9391 ac_lo= ac_hi=
9394 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9397 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9398 # Binary search between lo and hi bounds.
9399 while test "x$ac_lo" != "x$ac_hi"; do
9400 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9401 cat >conftest.$ac_ext <<_ACEOF
9402 /* confdefs.h. */
9403 _ACEOF
9404 cat confdefs.h >>conftest.$ac_ext
9405 cat >>conftest.$ac_ext <<_ACEOF
9406 /* end confdefs.h. */
9407 $ac_includes_default
9408 typedef float ac__type_sizeof_;
9410 main ()
9412 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
9413 test_array [0] = 0
9416 return 0;
9418 _ACEOF
9419 rm -f conftest.$ac_objext
9420 if { (ac_try="$ac_compile"
9421 case "(($ac_try" in
9422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9423 *) ac_try_echo=$ac_try;;
9424 esac
9425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9426 (eval "$ac_compile") 2>conftest.er1
9427 ac_status=$?
9428 grep -v '^ *+' conftest.er1 >conftest.err
9429 rm -f conftest.er1
9430 cat conftest.err >&5
9431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9432 (exit $ac_status); } && {
9433 test -z "$ac_c_werror_flag" ||
9434 test ! -s conftest.err
9435 } && test -s conftest.$ac_objext; then
9436 ac_hi=$ac_mid
9437 else
9438 echo "$as_me: failed program was:" >&5
9439 sed 's/^/| /' conftest.$ac_ext >&5
9441 ac_lo=`expr '(' $ac_mid ')' + 1`
9444 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9445 done
9446 case $ac_lo in
9447 ?*) ac_cv_sizeof_float=$ac_lo;;
9448 '') if test "$ac_cv_type_float" = yes; then
9449 { { echo "$as_me:$LINENO: error: cannot compute sizeof (float)
9450 See \`config.log' for more details." >&5
9451 echo "$as_me: error: cannot compute sizeof (float)
9452 See \`config.log' for more details." >&2;}
9453 { (exit 77); exit 77; }; }
9454 else
9455 ac_cv_sizeof_float=0
9456 fi ;;
9457 esac
9458 else
9459 cat >conftest.$ac_ext <<_ACEOF
9460 /* confdefs.h. */
9461 _ACEOF
9462 cat confdefs.h >>conftest.$ac_ext
9463 cat >>conftest.$ac_ext <<_ACEOF
9464 /* end confdefs.h. */
9465 $ac_includes_default
9466 typedef float ac__type_sizeof_;
9467 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
9468 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
9469 #include <stdio.h>
9470 #include <stdlib.h>
9472 main ()
9475 FILE *f = fopen ("conftest.val", "w");
9476 if (! f)
9477 return 1;
9478 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
9480 long int i = longval ();
9481 if (i != ((long int) (sizeof (ac__type_sizeof_))))
9482 return 1;
9483 fprintf (f, "%ld\n", i);
9485 else
9487 unsigned long int i = ulongval ();
9488 if (i != ((long int) (sizeof (ac__type_sizeof_))))
9489 return 1;
9490 fprintf (f, "%lu\n", i);
9492 return ferror (f) || fclose (f) != 0;
9495 return 0;
9497 _ACEOF
9498 rm -f conftest$ac_exeext
9499 if { (ac_try="$ac_link"
9500 case "(($ac_try" in
9501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9502 *) ac_try_echo=$ac_try;;
9503 esac
9504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9505 (eval "$ac_link") 2>&5
9506 ac_status=$?
9507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9508 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9509 { (case "(($ac_try" in
9510 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9511 *) ac_try_echo=$ac_try;;
9512 esac
9513 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9514 (eval "$ac_try") 2>&5
9515 ac_status=$?
9516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9517 (exit $ac_status); }; }; then
9518 ac_cv_sizeof_float=`cat conftest.val`
9519 else
9520 echo "$as_me: program exited with status $ac_status" >&5
9521 echo "$as_me: failed program was:" >&5
9522 sed 's/^/| /' conftest.$ac_ext >&5
9524 ( exit $ac_status )
9525 if test "$ac_cv_type_float" = yes; then
9526 { { echo "$as_me:$LINENO: error: cannot compute sizeof (float)
9527 See \`config.log' for more details." >&5
9528 echo "$as_me: error: cannot compute sizeof (float)
9529 See \`config.log' for more details." >&2;}
9530 { (exit 77); exit 77; }; }
9531 else
9532 ac_cv_sizeof_float=0
9535 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9537 rm -f conftest.val
9539 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_float" >&5
9540 echo "${ECHO_T}$ac_cv_sizeof_float" >&6; }
9544 cat >>confdefs.h <<_ACEOF
9545 #define SIZEOF_FLOAT $ac_cv_sizeof_float
9546 _ACEOF
9549 { echo "$as_me:$LINENO: checking for double" >&5
9550 echo $ECHO_N "checking for double... $ECHO_C" >&6; }
9551 if test "${ac_cv_type_double+set}" = set; then
9552 echo $ECHO_N "(cached) $ECHO_C" >&6
9553 else
9554 cat >conftest.$ac_ext <<_ACEOF
9555 /* confdefs.h. */
9556 _ACEOF
9557 cat confdefs.h >>conftest.$ac_ext
9558 cat >>conftest.$ac_ext <<_ACEOF
9559 /* end confdefs.h. */
9560 $ac_includes_default
9561 typedef double ac__type_new_;
9563 main ()
9565 if ((ac__type_new_ *) 0)
9566 return 0;
9567 if (sizeof (ac__type_new_))
9568 return 0;
9570 return 0;
9572 _ACEOF
9573 rm -f conftest.$ac_objext
9574 if { (ac_try="$ac_compile"
9575 case "(($ac_try" in
9576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9577 *) ac_try_echo=$ac_try;;
9578 esac
9579 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9580 (eval "$ac_compile") 2>conftest.er1
9581 ac_status=$?
9582 grep -v '^ *+' conftest.er1 >conftest.err
9583 rm -f conftest.er1
9584 cat conftest.err >&5
9585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9586 (exit $ac_status); } && {
9587 test -z "$ac_c_werror_flag" ||
9588 test ! -s conftest.err
9589 } && test -s conftest.$ac_objext; then
9590 ac_cv_type_double=yes
9591 else
9592 echo "$as_me: failed program was:" >&5
9593 sed 's/^/| /' conftest.$ac_ext >&5
9595 ac_cv_type_double=no
9598 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9600 { echo "$as_me:$LINENO: result: $ac_cv_type_double" >&5
9601 echo "${ECHO_T}$ac_cv_type_double" >&6; }
9603 # The cast to long int works around a bug in the HP C Compiler
9604 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9605 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9606 # This bug is HP SR number 8606223364.
9607 { echo "$as_me:$LINENO: checking size of double" >&5
9608 echo $ECHO_N "checking size of double... $ECHO_C" >&6; }
9609 if test "${ac_cv_sizeof_double+set}" = set; then
9610 echo $ECHO_N "(cached) $ECHO_C" >&6
9611 else
9612 if test "$cross_compiling" = yes; then
9613 # Depending upon the size, compute the lo and hi bounds.
9614 cat >conftest.$ac_ext <<_ACEOF
9615 /* confdefs.h. */
9616 _ACEOF
9617 cat confdefs.h >>conftest.$ac_ext
9618 cat >>conftest.$ac_ext <<_ACEOF
9619 /* end confdefs.h. */
9620 $ac_includes_default
9621 typedef double ac__type_sizeof_;
9623 main ()
9625 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
9626 test_array [0] = 0
9629 return 0;
9631 _ACEOF
9632 rm -f conftest.$ac_objext
9633 if { (ac_try="$ac_compile"
9634 case "(($ac_try" in
9635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9636 *) ac_try_echo=$ac_try;;
9637 esac
9638 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9639 (eval "$ac_compile") 2>conftest.er1
9640 ac_status=$?
9641 grep -v '^ *+' conftest.er1 >conftest.err
9642 rm -f conftest.er1
9643 cat conftest.err >&5
9644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9645 (exit $ac_status); } && {
9646 test -z "$ac_c_werror_flag" ||
9647 test ! -s conftest.err
9648 } && test -s conftest.$ac_objext; then
9649 ac_lo=0 ac_mid=0
9650 while :; do
9651 cat >conftest.$ac_ext <<_ACEOF
9652 /* confdefs.h. */
9653 _ACEOF
9654 cat confdefs.h >>conftest.$ac_ext
9655 cat >>conftest.$ac_ext <<_ACEOF
9656 /* end confdefs.h. */
9657 $ac_includes_default
9658 typedef double ac__type_sizeof_;
9660 main ()
9662 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
9663 test_array [0] = 0
9666 return 0;
9668 _ACEOF
9669 rm -f conftest.$ac_objext
9670 if { (ac_try="$ac_compile"
9671 case "(($ac_try" in
9672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9673 *) ac_try_echo=$ac_try;;
9674 esac
9675 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9676 (eval "$ac_compile") 2>conftest.er1
9677 ac_status=$?
9678 grep -v '^ *+' conftest.er1 >conftest.err
9679 rm -f conftest.er1
9680 cat conftest.err >&5
9681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9682 (exit $ac_status); } && {
9683 test -z "$ac_c_werror_flag" ||
9684 test ! -s conftest.err
9685 } && test -s conftest.$ac_objext; then
9686 ac_hi=$ac_mid; break
9687 else
9688 echo "$as_me: failed program was:" >&5
9689 sed 's/^/| /' conftest.$ac_ext >&5
9691 ac_lo=`expr $ac_mid + 1`
9692 if test $ac_lo -le $ac_mid; then
9693 ac_lo= ac_hi=
9694 break
9696 ac_mid=`expr 2 '*' $ac_mid + 1`
9699 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9700 done
9701 else
9702 echo "$as_me: failed program was:" >&5
9703 sed 's/^/| /' conftest.$ac_ext >&5
9705 cat >conftest.$ac_ext <<_ACEOF
9706 /* confdefs.h. */
9707 _ACEOF
9708 cat confdefs.h >>conftest.$ac_ext
9709 cat >>conftest.$ac_ext <<_ACEOF
9710 /* end confdefs.h. */
9711 $ac_includes_default
9712 typedef double ac__type_sizeof_;
9714 main ()
9716 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
9717 test_array [0] = 0
9720 return 0;
9722 _ACEOF
9723 rm -f conftest.$ac_objext
9724 if { (ac_try="$ac_compile"
9725 case "(($ac_try" in
9726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9727 *) ac_try_echo=$ac_try;;
9728 esac
9729 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9730 (eval "$ac_compile") 2>conftest.er1
9731 ac_status=$?
9732 grep -v '^ *+' conftest.er1 >conftest.err
9733 rm -f conftest.er1
9734 cat conftest.err >&5
9735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9736 (exit $ac_status); } && {
9737 test -z "$ac_c_werror_flag" ||
9738 test ! -s conftest.err
9739 } && test -s conftest.$ac_objext; then
9740 ac_hi=-1 ac_mid=-1
9741 while :; do
9742 cat >conftest.$ac_ext <<_ACEOF
9743 /* confdefs.h. */
9744 _ACEOF
9745 cat confdefs.h >>conftest.$ac_ext
9746 cat >>conftest.$ac_ext <<_ACEOF
9747 /* end confdefs.h. */
9748 $ac_includes_default
9749 typedef double ac__type_sizeof_;
9751 main ()
9753 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
9754 test_array [0] = 0
9757 return 0;
9759 _ACEOF
9760 rm -f conftest.$ac_objext
9761 if { (ac_try="$ac_compile"
9762 case "(($ac_try" in
9763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9764 *) ac_try_echo=$ac_try;;
9765 esac
9766 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9767 (eval "$ac_compile") 2>conftest.er1
9768 ac_status=$?
9769 grep -v '^ *+' conftest.er1 >conftest.err
9770 rm -f conftest.er1
9771 cat conftest.err >&5
9772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9773 (exit $ac_status); } && {
9774 test -z "$ac_c_werror_flag" ||
9775 test ! -s conftest.err
9776 } && test -s conftest.$ac_objext; then
9777 ac_lo=$ac_mid; break
9778 else
9779 echo "$as_me: failed program was:" >&5
9780 sed 's/^/| /' conftest.$ac_ext >&5
9782 ac_hi=`expr '(' $ac_mid ')' - 1`
9783 if test $ac_mid -le $ac_hi; then
9784 ac_lo= ac_hi=
9785 break
9787 ac_mid=`expr 2 '*' $ac_mid`
9790 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9791 done
9792 else
9793 echo "$as_me: failed program was:" >&5
9794 sed 's/^/| /' conftest.$ac_ext >&5
9796 ac_lo= ac_hi=
9799 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9802 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9803 # Binary search between lo and hi bounds.
9804 while test "x$ac_lo" != "x$ac_hi"; do
9805 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9806 cat >conftest.$ac_ext <<_ACEOF
9807 /* confdefs.h. */
9808 _ACEOF
9809 cat confdefs.h >>conftest.$ac_ext
9810 cat >>conftest.$ac_ext <<_ACEOF
9811 /* end confdefs.h. */
9812 $ac_includes_default
9813 typedef double ac__type_sizeof_;
9815 main ()
9817 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
9818 test_array [0] = 0
9821 return 0;
9823 _ACEOF
9824 rm -f conftest.$ac_objext
9825 if { (ac_try="$ac_compile"
9826 case "(($ac_try" in
9827 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9828 *) ac_try_echo=$ac_try;;
9829 esac
9830 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9831 (eval "$ac_compile") 2>conftest.er1
9832 ac_status=$?
9833 grep -v '^ *+' conftest.er1 >conftest.err
9834 rm -f conftest.er1
9835 cat conftest.err >&5
9836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9837 (exit $ac_status); } && {
9838 test -z "$ac_c_werror_flag" ||
9839 test ! -s conftest.err
9840 } && test -s conftest.$ac_objext; then
9841 ac_hi=$ac_mid
9842 else
9843 echo "$as_me: failed program was:" >&5
9844 sed 's/^/| /' conftest.$ac_ext >&5
9846 ac_lo=`expr '(' $ac_mid ')' + 1`
9849 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9850 done
9851 case $ac_lo in
9852 ?*) ac_cv_sizeof_double=$ac_lo;;
9853 '') if test "$ac_cv_type_double" = yes; then
9854 { { echo "$as_me:$LINENO: error: cannot compute sizeof (double)
9855 See \`config.log' for more details." >&5
9856 echo "$as_me: error: cannot compute sizeof (double)
9857 See \`config.log' for more details." >&2;}
9858 { (exit 77); exit 77; }; }
9859 else
9860 ac_cv_sizeof_double=0
9861 fi ;;
9862 esac
9863 else
9864 cat >conftest.$ac_ext <<_ACEOF
9865 /* confdefs.h. */
9866 _ACEOF
9867 cat confdefs.h >>conftest.$ac_ext
9868 cat >>conftest.$ac_ext <<_ACEOF
9869 /* end confdefs.h. */
9870 $ac_includes_default
9871 typedef double ac__type_sizeof_;
9872 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
9873 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
9874 #include <stdio.h>
9875 #include <stdlib.h>
9877 main ()
9880 FILE *f = fopen ("conftest.val", "w");
9881 if (! f)
9882 return 1;
9883 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
9885 long int i = longval ();
9886 if (i != ((long int) (sizeof (ac__type_sizeof_))))
9887 return 1;
9888 fprintf (f, "%ld\n", i);
9890 else
9892 unsigned long int i = ulongval ();
9893 if (i != ((long int) (sizeof (ac__type_sizeof_))))
9894 return 1;
9895 fprintf (f, "%lu\n", i);
9897 return ferror (f) || fclose (f) != 0;
9900 return 0;
9902 _ACEOF
9903 rm -f conftest$ac_exeext
9904 if { (ac_try="$ac_link"
9905 case "(($ac_try" in
9906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9907 *) ac_try_echo=$ac_try;;
9908 esac
9909 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9910 (eval "$ac_link") 2>&5
9911 ac_status=$?
9912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9913 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9914 { (case "(($ac_try" in
9915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9916 *) ac_try_echo=$ac_try;;
9917 esac
9918 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9919 (eval "$ac_try") 2>&5
9920 ac_status=$?
9921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9922 (exit $ac_status); }; }; then
9923 ac_cv_sizeof_double=`cat conftest.val`
9924 else
9925 echo "$as_me: program exited with status $ac_status" >&5
9926 echo "$as_me: failed program was:" >&5
9927 sed 's/^/| /' conftest.$ac_ext >&5
9929 ( exit $ac_status )
9930 if test "$ac_cv_type_double" = yes; then
9931 { { echo "$as_me:$LINENO: error: cannot compute sizeof (double)
9932 See \`config.log' for more details." >&5
9933 echo "$as_me: error: cannot compute sizeof (double)
9934 See \`config.log' for more details." >&2;}
9935 { (exit 77); exit 77; }; }
9936 else
9937 ac_cv_sizeof_double=0
9940 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9942 rm -f conftest.val
9944 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_double" >&5
9945 echo "${ECHO_T}$ac_cv_sizeof_double" >&6; }
9949 cat >>confdefs.h <<_ACEOF
9950 #define SIZEOF_DOUBLE $ac_cv_sizeof_double
9951 _ACEOF
9954 { echo "$as_me:$LINENO: checking for fpos_t" >&5
9955 echo $ECHO_N "checking for fpos_t... $ECHO_C" >&6; }
9956 if test "${ac_cv_type_fpos_t+set}" = set; then
9957 echo $ECHO_N "(cached) $ECHO_C" >&6
9958 else
9959 cat >conftest.$ac_ext <<_ACEOF
9960 /* confdefs.h. */
9961 _ACEOF
9962 cat confdefs.h >>conftest.$ac_ext
9963 cat >>conftest.$ac_ext <<_ACEOF
9964 /* end confdefs.h. */
9965 $ac_includes_default
9966 typedef fpos_t ac__type_new_;
9968 main ()
9970 if ((ac__type_new_ *) 0)
9971 return 0;
9972 if (sizeof (ac__type_new_))
9973 return 0;
9975 return 0;
9977 _ACEOF
9978 rm -f conftest.$ac_objext
9979 if { (ac_try="$ac_compile"
9980 case "(($ac_try" in
9981 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9982 *) ac_try_echo=$ac_try;;
9983 esac
9984 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9985 (eval "$ac_compile") 2>conftest.er1
9986 ac_status=$?
9987 grep -v '^ *+' conftest.er1 >conftest.err
9988 rm -f conftest.er1
9989 cat conftest.err >&5
9990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9991 (exit $ac_status); } && {
9992 test -z "$ac_c_werror_flag" ||
9993 test ! -s conftest.err
9994 } && test -s conftest.$ac_objext; then
9995 ac_cv_type_fpos_t=yes
9996 else
9997 echo "$as_me: failed program was:" >&5
9998 sed 's/^/| /' conftest.$ac_ext >&5
10000 ac_cv_type_fpos_t=no
10003 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10005 { echo "$as_me:$LINENO: result: $ac_cv_type_fpos_t" >&5
10006 echo "${ECHO_T}$ac_cv_type_fpos_t" >&6; }
10008 # The cast to long int works around a bug in the HP C Compiler
10009 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10010 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10011 # This bug is HP SR number 8606223364.
10012 { echo "$as_me:$LINENO: checking size of fpos_t" >&5
10013 echo $ECHO_N "checking size of fpos_t... $ECHO_C" >&6; }
10014 if test "${ac_cv_sizeof_fpos_t+set}" = set; then
10015 echo $ECHO_N "(cached) $ECHO_C" >&6
10016 else
10017 if test "$cross_compiling" = yes; then
10018 # Depending upon the size, compute the lo and hi bounds.
10019 cat >conftest.$ac_ext <<_ACEOF
10020 /* confdefs.h. */
10021 _ACEOF
10022 cat confdefs.h >>conftest.$ac_ext
10023 cat >>conftest.$ac_ext <<_ACEOF
10024 /* end confdefs.h. */
10025 $ac_includes_default
10026 typedef fpos_t ac__type_sizeof_;
10028 main ()
10030 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
10031 test_array [0] = 0
10034 return 0;
10036 _ACEOF
10037 rm -f conftest.$ac_objext
10038 if { (ac_try="$ac_compile"
10039 case "(($ac_try" in
10040 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10041 *) ac_try_echo=$ac_try;;
10042 esac
10043 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10044 (eval "$ac_compile") 2>conftest.er1
10045 ac_status=$?
10046 grep -v '^ *+' conftest.er1 >conftest.err
10047 rm -f conftest.er1
10048 cat conftest.err >&5
10049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10050 (exit $ac_status); } && {
10051 test -z "$ac_c_werror_flag" ||
10052 test ! -s conftest.err
10053 } && test -s conftest.$ac_objext; then
10054 ac_lo=0 ac_mid=0
10055 while :; do
10056 cat >conftest.$ac_ext <<_ACEOF
10057 /* confdefs.h. */
10058 _ACEOF
10059 cat confdefs.h >>conftest.$ac_ext
10060 cat >>conftest.$ac_ext <<_ACEOF
10061 /* end confdefs.h. */
10062 $ac_includes_default
10063 typedef fpos_t ac__type_sizeof_;
10065 main ()
10067 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
10068 test_array [0] = 0
10071 return 0;
10073 _ACEOF
10074 rm -f conftest.$ac_objext
10075 if { (ac_try="$ac_compile"
10076 case "(($ac_try" in
10077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10078 *) ac_try_echo=$ac_try;;
10079 esac
10080 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10081 (eval "$ac_compile") 2>conftest.er1
10082 ac_status=$?
10083 grep -v '^ *+' conftest.er1 >conftest.err
10084 rm -f conftest.er1
10085 cat conftest.err >&5
10086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10087 (exit $ac_status); } && {
10088 test -z "$ac_c_werror_flag" ||
10089 test ! -s conftest.err
10090 } && test -s conftest.$ac_objext; then
10091 ac_hi=$ac_mid; break
10092 else
10093 echo "$as_me: failed program was:" >&5
10094 sed 's/^/| /' conftest.$ac_ext >&5
10096 ac_lo=`expr $ac_mid + 1`
10097 if test $ac_lo -le $ac_mid; then
10098 ac_lo= ac_hi=
10099 break
10101 ac_mid=`expr 2 '*' $ac_mid + 1`
10104 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10105 done
10106 else
10107 echo "$as_me: failed program was:" >&5
10108 sed 's/^/| /' conftest.$ac_ext >&5
10110 cat >conftest.$ac_ext <<_ACEOF
10111 /* confdefs.h. */
10112 _ACEOF
10113 cat confdefs.h >>conftest.$ac_ext
10114 cat >>conftest.$ac_ext <<_ACEOF
10115 /* end confdefs.h. */
10116 $ac_includes_default
10117 typedef fpos_t ac__type_sizeof_;
10119 main ()
10121 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
10122 test_array [0] = 0
10125 return 0;
10127 _ACEOF
10128 rm -f conftest.$ac_objext
10129 if { (ac_try="$ac_compile"
10130 case "(($ac_try" in
10131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10132 *) ac_try_echo=$ac_try;;
10133 esac
10134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10135 (eval "$ac_compile") 2>conftest.er1
10136 ac_status=$?
10137 grep -v '^ *+' conftest.er1 >conftest.err
10138 rm -f conftest.er1
10139 cat conftest.err >&5
10140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10141 (exit $ac_status); } && {
10142 test -z "$ac_c_werror_flag" ||
10143 test ! -s conftest.err
10144 } && test -s conftest.$ac_objext; then
10145 ac_hi=-1 ac_mid=-1
10146 while :; do
10147 cat >conftest.$ac_ext <<_ACEOF
10148 /* confdefs.h. */
10149 _ACEOF
10150 cat confdefs.h >>conftest.$ac_ext
10151 cat >>conftest.$ac_ext <<_ACEOF
10152 /* end confdefs.h. */
10153 $ac_includes_default
10154 typedef fpos_t ac__type_sizeof_;
10156 main ()
10158 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
10159 test_array [0] = 0
10162 return 0;
10164 _ACEOF
10165 rm -f conftest.$ac_objext
10166 if { (ac_try="$ac_compile"
10167 case "(($ac_try" in
10168 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10169 *) ac_try_echo=$ac_try;;
10170 esac
10171 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10172 (eval "$ac_compile") 2>conftest.er1
10173 ac_status=$?
10174 grep -v '^ *+' conftest.er1 >conftest.err
10175 rm -f conftest.er1
10176 cat conftest.err >&5
10177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10178 (exit $ac_status); } && {
10179 test -z "$ac_c_werror_flag" ||
10180 test ! -s conftest.err
10181 } && test -s conftest.$ac_objext; then
10182 ac_lo=$ac_mid; break
10183 else
10184 echo "$as_me: failed program was:" >&5
10185 sed 's/^/| /' conftest.$ac_ext >&5
10187 ac_hi=`expr '(' $ac_mid ')' - 1`
10188 if test $ac_mid -le $ac_hi; then
10189 ac_lo= ac_hi=
10190 break
10192 ac_mid=`expr 2 '*' $ac_mid`
10195 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10196 done
10197 else
10198 echo "$as_me: failed program was:" >&5
10199 sed 's/^/| /' conftest.$ac_ext >&5
10201 ac_lo= ac_hi=
10204 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10207 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10208 # Binary search between lo and hi bounds.
10209 while test "x$ac_lo" != "x$ac_hi"; do
10210 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10211 cat >conftest.$ac_ext <<_ACEOF
10212 /* confdefs.h. */
10213 _ACEOF
10214 cat confdefs.h >>conftest.$ac_ext
10215 cat >>conftest.$ac_ext <<_ACEOF
10216 /* end confdefs.h. */
10217 $ac_includes_default
10218 typedef fpos_t ac__type_sizeof_;
10220 main ()
10222 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
10223 test_array [0] = 0
10226 return 0;
10228 _ACEOF
10229 rm -f conftest.$ac_objext
10230 if { (ac_try="$ac_compile"
10231 case "(($ac_try" in
10232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10233 *) ac_try_echo=$ac_try;;
10234 esac
10235 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10236 (eval "$ac_compile") 2>conftest.er1
10237 ac_status=$?
10238 grep -v '^ *+' conftest.er1 >conftest.err
10239 rm -f conftest.er1
10240 cat conftest.err >&5
10241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10242 (exit $ac_status); } && {
10243 test -z "$ac_c_werror_flag" ||
10244 test ! -s conftest.err
10245 } && test -s conftest.$ac_objext; then
10246 ac_hi=$ac_mid
10247 else
10248 echo "$as_me: failed program was:" >&5
10249 sed 's/^/| /' conftest.$ac_ext >&5
10251 ac_lo=`expr '(' $ac_mid ')' + 1`
10254 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10255 done
10256 case $ac_lo in
10257 ?*) ac_cv_sizeof_fpos_t=$ac_lo;;
10258 '') if test "$ac_cv_type_fpos_t" = yes; then
10259 { { echo "$as_me:$LINENO: error: cannot compute sizeof (fpos_t)
10260 See \`config.log' for more details." >&5
10261 echo "$as_me: error: cannot compute sizeof (fpos_t)
10262 See \`config.log' for more details." >&2;}
10263 { (exit 77); exit 77; }; }
10264 else
10265 ac_cv_sizeof_fpos_t=0
10266 fi ;;
10267 esac
10268 else
10269 cat >conftest.$ac_ext <<_ACEOF
10270 /* confdefs.h. */
10271 _ACEOF
10272 cat confdefs.h >>conftest.$ac_ext
10273 cat >>conftest.$ac_ext <<_ACEOF
10274 /* end confdefs.h. */
10275 $ac_includes_default
10276 typedef fpos_t ac__type_sizeof_;
10277 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
10278 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
10279 #include <stdio.h>
10280 #include <stdlib.h>
10282 main ()
10285 FILE *f = fopen ("conftest.val", "w");
10286 if (! f)
10287 return 1;
10288 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
10290 long int i = longval ();
10291 if (i != ((long int) (sizeof (ac__type_sizeof_))))
10292 return 1;
10293 fprintf (f, "%ld\n", i);
10295 else
10297 unsigned long int i = ulongval ();
10298 if (i != ((long int) (sizeof (ac__type_sizeof_))))
10299 return 1;
10300 fprintf (f, "%lu\n", i);
10302 return ferror (f) || fclose (f) != 0;
10305 return 0;
10307 _ACEOF
10308 rm -f conftest$ac_exeext
10309 if { (ac_try="$ac_link"
10310 case "(($ac_try" in
10311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10312 *) ac_try_echo=$ac_try;;
10313 esac
10314 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10315 (eval "$ac_link") 2>&5
10316 ac_status=$?
10317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10318 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10319 { (case "(($ac_try" in
10320 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10321 *) ac_try_echo=$ac_try;;
10322 esac
10323 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10324 (eval "$ac_try") 2>&5
10325 ac_status=$?
10326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10327 (exit $ac_status); }; }; then
10328 ac_cv_sizeof_fpos_t=`cat conftest.val`
10329 else
10330 echo "$as_me: program exited with status $ac_status" >&5
10331 echo "$as_me: failed program was:" >&5
10332 sed 's/^/| /' conftest.$ac_ext >&5
10334 ( exit $ac_status )
10335 if test "$ac_cv_type_fpos_t" = yes; then
10336 { { echo "$as_me:$LINENO: error: cannot compute sizeof (fpos_t)
10337 See \`config.log' for more details." >&5
10338 echo "$as_me: error: cannot compute sizeof (fpos_t)
10339 See \`config.log' for more details." >&2;}
10340 { (exit 77); exit 77; }; }
10341 else
10342 ac_cv_sizeof_fpos_t=0
10345 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10347 rm -f conftest.val
10349 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_fpos_t" >&5
10350 echo "${ECHO_T}$ac_cv_sizeof_fpos_t" >&6; }
10354 cat >>confdefs.h <<_ACEOF
10355 #define SIZEOF_FPOS_T $ac_cv_sizeof_fpos_t
10356 _ACEOF
10359 { echo "$as_me:$LINENO: checking for size_t" >&5
10360 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
10361 if test "${ac_cv_type_size_t+set}" = set; then
10362 echo $ECHO_N "(cached) $ECHO_C" >&6
10363 else
10364 cat >conftest.$ac_ext <<_ACEOF
10365 /* confdefs.h. */
10366 _ACEOF
10367 cat confdefs.h >>conftest.$ac_ext
10368 cat >>conftest.$ac_ext <<_ACEOF
10369 /* end confdefs.h. */
10370 $ac_includes_default
10371 typedef size_t ac__type_new_;
10373 main ()
10375 if ((ac__type_new_ *) 0)
10376 return 0;
10377 if (sizeof (ac__type_new_))
10378 return 0;
10380 return 0;
10382 _ACEOF
10383 rm -f conftest.$ac_objext
10384 if { (ac_try="$ac_compile"
10385 case "(($ac_try" in
10386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10387 *) ac_try_echo=$ac_try;;
10388 esac
10389 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10390 (eval "$ac_compile") 2>conftest.er1
10391 ac_status=$?
10392 grep -v '^ *+' conftest.er1 >conftest.err
10393 rm -f conftest.er1
10394 cat conftest.err >&5
10395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10396 (exit $ac_status); } && {
10397 test -z "$ac_c_werror_flag" ||
10398 test ! -s conftest.err
10399 } && test -s conftest.$ac_objext; then
10400 ac_cv_type_size_t=yes
10401 else
10402 echo "$as_me: failed program was:" >&5
10403 sed 's/^/| /' conftest.$ac_ext >&5
10405 ac_cv_type_size_t=no
10408 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10410 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
10411 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
10413 # The cast to long int works around a bug in the HP C Compiler
10414 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10415 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10416 # This bug is HP SR number 8606223364.
10417 { echo "$as_me:$LINENO: checking size of size_t" >&5
10418 echo $ECHO_N "checking size of size_t... $ECHO_C" >&6; }
10419 if test "${ac_cv_sizeof_size_t+set}" = set; then
10420 echo $ECHO_N "(cached) $ECHO_C" >&6
10421 else
10422 if test "$cross_compiling" = yes; then
10423 # Depending upon the size, compute the lo and hi bounds.
10424 cat >conftest.$ac_ext <<_ACEOF
10425 /* confdefs.h. */
10426 _ACEOF
10427 cat confdefs.h >>conftest.$ac_ext
10428 cat >>conftest.$ac_ext <<_ACEOF
10429 /* end confdefs.h. */
10430 $ac_includes_default
10431 typedef size_t ac__type_sizeof_;
10433 main ()
10435 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
10436 test_array [0] = 0
10439 return 0;
10441 _ACEOF
10442 rm -f conftest.$ac_objext
10443 if { (ac_try="$ac_compile"
10444 case "(($ac_try" in
10445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10446 *) ac_try_echo=$ac_try;;
10447 esac
10448 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10449 (eval "$ac_compile") 2>conftest.er1
10450 ac_status=$?
10451 grep -v '^ *+' conftest.er1 >conftest.err
10452 rm -f conftest.er1
10453 cat conftest.err >&5
10454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10455 (exit $ac_status); } && {
10456 test -z "$ac_c_werror_flag" ||
10457 test ! -s conftest.err
10458 } && test -s conftest.$ac_objext; then
10459 ac_lo=0 ac_mid=0
10460 while :; do
10461 cat >conftest.$ac_ext <<_ACEOF
10462 /* confdefs.h. */
10463 _ACEOF
10464 cat confdefs.h >>conftest.$ac_ext
10465 cat >>conftest.$ac_ext <<_ACEOF
10466 /* end confdefs.h. */
10467 $ac_includes_default
10468 typedef size_t ac__type_sizeof_;
10470 main ()
10472 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
10473 test_array [0] = 0
10476 return 0;
10478 _ACEOF
10479 rm -f conftest.$ac_objext
10480 if { (ac_try="$ac_compile"
10481 case "(($ac_try" in
10482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10483 *) ac_try_echo=$ac_try;;
10484 esac
10485 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10486 (eval "$ac_compile") 2>conftest.er1
10487 ac_status=$?
10488 grep -v '^ *+' conftest.er1 >conftest.err
10489 rm -f conftest.er1
10490 cat conftest.err >&5
10491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10492 (exit $ac_status); } && {
10493 test -z "$ac_c_werror_flag" ||
10494 test ! -s conftest.err
10495 } && test -s conftest.$ac_objext; then
10496 ac_hi=$ac_mid; break
10497 else
10498 echo "$as_me: failed program was:" >&5
10499 sed 's/^/| /' conftest.$ac_ext >&5
10501 ac_lo=`expr $ac_mid + 1`
10502 if test $ac_lo -le $ac_mid; then
10503 ac_lo= ac_hi=
10504 break
10506 ac_mid=`expr 2 '*' $ac_mid + 1`
10509 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10510 done
10511 else
10512 echo "$as_me: failed program was:" >&5
10513 sed 's/^/| /' conftest.$ac_ext >&5
10515 cat >conftest.$ac_ext <<_ACEOF
10516 /* confdefs.h. */
10517 _ACEOF
10518 cat confdefs.h >>conftest.$ac_ext
10519 cat >>conftest.$ac_ext <<_ACEOF
10520 /* end confdefs.h. */
10521 $ac_includes_default
10522 typedef size_t ac__type_sizeof_;
10524 main ()
10526 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
10527 test_array [0] = 0
10530 return 0;
10532 _ACEOF
10533 rm -f conftest.$ac_objext
10534 if { (ac_try="$ac_compile"
10535 case "(($ac_try" in
10536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10537 *) ac_try_echo=$ac_try;;
10538 esac
10539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10540 (eval "$ac_compile") 2>conftest.er1
10541 ac_status=$?
10542 grep -v '^ *+' conftest.er1 >conftest.err
10543 rm -f conftest.er1
10544 cat conftest.err >&5
10545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10546 (exit $ac_status); } && {
10547 test -z "$ac_c_werror_flag" ||
10548 test ! -s conftest.err
10549 } && test -s conftest.$ac_objext; then
10550 ac_hi=-1 ac_mid=-1
10551 while :; do
10552 cat >conftest.$ac_ext <<_ACEOF
10553 /* confdefs.h. */
10554 _ACEOF
10555 cat confdefs.h >>conftest.$ac_ext
10556 cat >>conftest.$ac_ext <<_ACEOF
10557 /* end confdefs.h. */
10558 $ac_includes_default
10559 typedef size_t ac__type_sizeof_;
10561 main ()
10563 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
10564 test_array [0] = 0
10567 return 0;
10569 _ACEOF
10570 rm -f conftest.$ac_objext
10571 if { (ac_try="$ac_compile"
10572 case "(($ac_try" in
10573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10574 *) ac_try_echo=$ac_try;;
10575 esac
10576 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10577 (eval "$ac_compile") 2>conftest.er1
10578 ac_status=$?
10579 grep -v '^ *+' conftest.er1 >conftest.err
10580 rm -f conftest.er1
10581 cat conftest.err >&5
10582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10583 (exit $ac_status); } && {
10584 test -z "$ac_c_werror_flag" ||
10585 test ! -s conftest.err
10586 } && test -s conftest.$ac_objext; then
10587 ac_lo=$ac_mid; break
10588 else
10589 echo "$as_me: failed program was:" >&5
10590 sed 's/^/| /' conftest.$ac_ext >&5
10592 ac_hi=`expr '(' $ac_mid ')' - 1`
10593 if test $ac_mid -le $ac_hi; then
10594 ac_lo= ac_hi=
10595 break
10597 ac_mid=`expr 2 '*' $ac_mid`
10600 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10601 done
10602 else
10603 echo "$as_me: failed program was:" >&5
10604 sed 's/^/| /' conftest.$ac_ext >&5
10606 ac_lo= ac_hi=
10609 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10612 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10613 # Binary search between lo and hi bounds.
10614 while test "x$ac_lo" != "x$ac_hi"; do
10615 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10616 cat >conftest.$ac_ext <<_ACEOF
10617 /* confdefs.h. */
10618 _ACEOF
10619 cat confdefs.h >>conftest.$ac_ext
10620 cat >>conftest.$ac_ext <<_ACEOF
10621 /* end confdefs.h. */
10622 $ac_includes_default
10623 typedef size_t ac__type_sizeof_;
10625 main ()
10627 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
10628 test_array [0] = 0
10631 return 0;
10633 _ACEOF
10634 rm -f conftest.$ac_objext
10635 if { (ac_try="$ac_compile"
10636 case "(($ac_try" in
10637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10638 *) ac_try_echo=$ac_try;;
10639 esac
10640 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10641 (eval "$ac_compile") 2>conftest.er1
10642 ac_status=$?
10643 grep -v '^ *+' conftest.er1 >conftest.err
10644 rm -f conftest.er1
10645 cat conftest.err >&5
10646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10647 (exit $ac_status); } && {
10648 test -z "$ac_c_werror_flag" ||
10649 test ! -s conftest.err
10650 } && test -s conftest.$ac_objext; then
10651 ac_hi=$ac_mid
10652 else
10653 echo "$as_me: failed program was:" >&5
10654 sed 's/^/| /' conftest.$ac_ext >&5
10656 ac_lo=`expr '(' $ac_mid ')' + 1`
10659 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10660 done
10661 case $ac_lo in
10662 ?*) ac_cv_sizeof_size_t=$ac_lo;;
10663 '') if test "$ac_cv_type_size_t" = yes; then
10664 { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
10665 See \`config.log' for more details." >&5
10666 echo "$as_me: error: cannot compute sizeof (size_t)
10667 See \`config.log' for more details." >&2;}
10668 { (exit 77); exit 77; }; }
10669 else
10670 ac_cv_sizeof_size_t=0
10671 fi ;;
10672 esac
10673 else
10674 cat >conftest.$ac_ext <<_ACEOF
10675 /* confdefs.h. */
10676 _ACEOF
10677 cat confdefs.h >>conftest.$ac_ext
10678 cat >>conftest.$ac_ext <<_ACEOF
10679 /* end confdefs.h. */
10680 $ac_includes_default
10681 typedef size_t ac__type_sizeof_;
10682 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
10683 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
10684 #include <stdio.h>
10685 #include <stdlib.h>
10687 main ()
10690 FILE *f = fopen ("conftest.val", "w");
10691 if (! f)
10692 return 1;
10693 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
10695 long int i = longval ();
10696 if (i != ((long int) (sizeof (ac__type_sizeof_))))
10697 return 1;
10698 fprintf (f, "%ld\n", i);
10700 else
10702 unsigned long int i = ulongval ();
10703 if (i != ((long int) (sizeof (ac__type_sizeof_))))
10704 return 1;
10705 fprintf (f, "%lu\n", i);
10707 return ferror (f) || fclose (f) != 0;
10710 return 0;
10712 _ACEOF
10713 rm -f conftest$ac_exeext
10714 if { (ac_try="$ac_link"
10715 case "(($ac_try" in
10716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10717 *) ac_try_echo=$ac_try;;
10718 esac
10719 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10720 (eval "$ac_link") 2>&5
10721 ac_status=$?
10722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10723 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10724 { (case "(($ac_try" in
10725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10726 *) ac_try_echo=$ac_try;;
10727 esac
10728 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10729 (eval "$ac_try") 2>&5
10730 ac_status=$?
10731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10732 (exit $ac_status); }; }; then
10733 ac_cv_sizeof_size_t=`cat conftest.val`
10734 else
10735 echo "$as_me: program exited with status $ac_status" >&5
10736 echo "$as_me: failed program was:" >&5
10737 sed 's/^/| /' conftest.$ac_ext >&5
10739 ( exit $ac_status )
10740 if test "$ac_cv_type_size_t" = yes; then
10741 { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
10742 See \`config.log' for more details." >&5
10743 echo "$as_me: error: cannot compute sizeof (size_t)
10744 See \`config.log' for more details." >&2;}
10745 { (exit 77); exit 77; }; }
10746 else
10747 ac_cv_sizeof_size_t=0
10750 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10752 rm -f conftest.val
10754 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
10755 echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6; }
10759 cat >>confdefs.h <<_ACEOF
10760 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
10761 _ACEOF
10764 { echo "$as_me:$LINENO: checking for pid_t" >&5
10765 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
10766 if test "${ac_cv_type_pid_t+set}" = set; then
10767 echo $ECHO_N "(cached) $ECHO_C" >&6
10768 else
10769 cat >conftest.$ac_ext <<_ACEOF
10770 /* confdefs.h. */
10771 _ACEOF
10772 cat confdefs.h >>conftest.$ac_ext
10773 cat >>conftest.$ac_ext <<_ACEOF
10774 /* end confdefs.h. */
10775 $ac_includes_default
10776 typedef pid_t ac__type_new_;
10778 main ()
10780 if ((ac__type_new_ *) 0)
10781 return 0;
10782 if (sizeof (ac__type_new_))
10783 return 0;
10785 return 0;
10787 _ACEOF
10788 rm -f conftest.$ac_objext
10789 if { (ac_try="$ac_compile"
10790 case "(($ac_try" in
10791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10792 *) ac_try_echo=$ac_try;;
10793 esac
10794 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10795 (eval "$ac_compile") 2>conftest.er1
10796 ac_status=$?
10797 grep -v '^ *+' conftest.er1 >conftest.err
10798 rm -f conftest.er1
10799 cat conftest.err >&5
10800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10801 (exit $ac_status); } && {
10802 test -z "$ac_c_werror_flag" ||
10803 test ! -s conftest.err
10804 } && test -s conftest.$ac_objext; then
10805 ac_cv_type_pid_t=yes
10806 else
10807 echo "$as_me: failed program was:" >&5
10808 sed 's/^/| /' conftest.$ac_ext >&5
10810 ac_cv_type_pid_t=no
10813 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10815 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
10816 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
10818 # The cast to long int works around a bug in the HP C Compiler
10819 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10820 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10821 # This bug is HP SR number 8606223364.
10822 { echo "$as_me:$LINENO: checking size of pid_t" >&5
10823 echo $ECHO_N "checking size of pid_t... $ECHO_C" >&6; }
10824 if test "${ac_cv_sizeof_pid_t+set}" = set; then
10825 echo $ECHO_N "(cached) $ECHO_C" >&6
10826 else
10827 if test "$cross_compiling" = yes; then
10828 # Depending upon the size, compute the lo and hi bounds.
10829 cat >conftest.$ac_ext <<_ACEOF
10830 /* confdefs.h. */
10831 _ACEOF
10832 cat confdefs.h >>conftest.$ac_ext
10833 cat >>conftest.$ac_ext <<_ACEOF
10834 /* end confdefs.h. */
10835 $ac_includes_default
10836 typedef pid_t ac__type_sizeof_;
10838 main ()
10840 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
10841 test_array [0] = 0
10844 return 0;
10846 _ACEOF
10847 rm -f conftest.$ac_objext
10848 if { (ac_try="$ac_compile"
10849 case "(($ac_try" in
10850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10851 *) ac_try_echo=$ac_try;;
10852 esac
10853 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10854 (eval "$ac_compile") 2>conftest.er1
10855 ac_status=$?
10856 grep -v '^ *+' conftest.er1 >conftest.err
10857 rm -f conftest.er1
10858 cat conftest.err >&5
10859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10860 (exit $ac_status); } && {
10861 test -z "$ac_c_werror_flag" ||
10862 test ! -s conftest.err
10863 } && test -s conftest.$ac_objext; then
10864 ac_lo=0 ac_mid=0
10865 while :; do
10866 cat >conftest.$ac_ext <<_ACEOF
10867 /* confdefs.h. */
10868 _ACEOF
10869 cat confdefs.h >>conftest.$ac_ext
10870 cat >>conftest.$ac_ext <<_ACEOF
10871 /* end confdefs.h. */
10872 $ac_includes_default
10873 typedef pid_t ac__type_sizeof_;
10875 main ()
10877 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
10878 test_array [0] = 0
10881 return 0;
10883 _ACEOF
10884 rm -f conftest.$ac_objext
10885 if { (ac_try="$ac_compile"
10886 case "(($ac_try" in
10887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10888 *) ac_try_echo=$ac_try;;
10889 esac
10890 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10891 (eval "$ac_compile") 2>conftest.er1
10892 ac_status=$?
10893 grep -v '^ *+' conftest.er1 >conftest.err
10894 rm -f conftest.er1
10895 cat conftest.err >&5
10896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10897 (exit $ac_status); } && {
10898 test -z "$ac_c_werror_flag" ||
10899 test ! -s conftest.err
10900 } && test -s conftest.$ac_objext; then
10901 ac_hi=$ac_mid; break
10902 else
10903 echo "$as_me: failed program was:" >&5
10904 sed 's/^/| /' conftest.$ac_ext >&5
10906 ac_lo=`expr $ac_mid + 1`
10907 if test $ac_lo -le $ac_mid; then
10908 ac_lo= ac_hi=
10909 break
10911 ac_mid=`expr 2 '*' $ac_mid + 1`
10914 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10915 done
10916 else
10917 echo "$as_me: failed program was:" >&5
10918 sed 's/^/| /' conftest.$ac_ext >&5
10920 cat >conftest.$ac_ext <<_ACEOF
10921 /* confdefs.h. */
10922 _ACEOF
10923 cat confdefs.h >>conftest.$ac_ext
10924 cat >>conftest.$ac_ext <<_ACEOF
10925 /* end confdefs.h. */
10926 $ac_includes_default
10927 typedef pid_t ac__type_sizeof_;
10929 main ()
10931 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
10932 test_array [0] = 0
10935 return 0;
10937 _ACEOF
10938 rm -f conftest.$ac_objext
10939 if { (ac_try="$ac_compile"
10940 case "(($ac_try" in
10941 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10942 *) ac_try_echo=$ac_try;;
10943 esac
10944 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10945 (eval "$ac_compile") 2>conftest.er1
10946 ac_status=$?
10947 grep -v '^ *+' conftest.er1 >conftest.err
10948 rm -f conftest.er1
10949 cat conftest.err >&5
10950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10951 (exit $ac_status); } && {
10952 test -z "$ac_c_werror_flag" ||
10953 test ! -s conftest.err
10954 } && test -s conftest.$ac_objext; then
10955 ac_hi=-1 ac_mid=-1
10956 while :; do
10957 cat >conftest.$ac_ext <<_ACEOF
10958 /* confdefs.h. */
10959 _ACEOF
10960 cat confdefs.h >>conftest.$ac_ext
10961 cat >>conftest.$ac_ext <<_ACEOF
10962 /* end confdefs.h. */
10963 $ac_includes_default
10964 typedef pid_t ac__type_sizeof_;
10966 main ()
10968 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
10969 test_array [0] = 0
10972 return 0;
10974 _ACEOF
10975 rm -f conftest.$ac_objext
10976 if { (ac_try="$ac_compile"
10977 case "(($ac_try" in
10978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10979 *) ac_try_echo=$ac_try;;
10980 esac
10981 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10982 (eval "$ac_compile") 2>conftest.er1
10983 ac_status=$?
10984 grep -v '^ *+' conftest.er1 >conftest.err
10985 rm -f conftest.er1
10986 cat conftest.err >&5
10987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10988 (exit $ac_status); } && {
10989 test -z "$ac_c_werror_flag" ||
10990 test ! -s conftest.err
10991 } && test -s conftest.$ac_objext; then
10992 ac_lo=$ac_mid; break
10993 else
10994 echo "$as_me: failed program was:" >&5
10995 sed 's/^/| /' conftest.$ac_ext >&5
10997 ac_hi=`expr '(' $ac_mid ')' - 1`
10998 if test $ac_mid -le $ac_hi; then
10999 ac_lo= ac_hi=
11000 break
11002 ac_mid=`expr 2 '*' $ac_mid`
11005 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11006 done
11007 else
11008 echo "$as_me: failed program was:" >&5
11009 sed 's/^/| /' conftest.$ac_ext >&5
11011 ac_lo= ac_hi=
11014 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11017 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11018 # Binary search between lo and hi bounds.
11019 while test "x$ac_lo" != "x$ac_hi"; do
11020 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
11021 cat >conftest.$ac_ext <<_ACEOF
11022 /* confdefs.h. */
11023 _ACEOF
11024 cat confdefs.h >>conftest.$ac_ext
11025 cat >>conftest.$ac_ext <<_ACEOF
11026 /* end confdefs.h. */
11027 $ac_includes_default
11028 typedef pid_t ac__type_sizeof_;
11030 main ()
11032 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
11033 test_array [0] = 0
11036 return 0;
11038 _ACEOF
11039 rm -f conftest.$ac_objext
11040 if { (ac_try="$ac_compile"
11041 case "(($ac_try" in
11042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11043 *) ac_try_echo=$ac_try;;
11044 esac
11045 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11046 (eval "$ac_compile") 2>conftest.er1
11047 ac_status=$?
11048 grep -v '^ *+' conftest.er1 >conftest.err
11049 rm -f conftest.er1
11050 cat conftest.err >&5
11051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11052 (exit $ac_status); } && {
11053 test -z "$ac_c_werror_flag" ||
11054 test ! -s conftest.err
11055 } && test -s conftest.$ac_objext; then
11056 ac_hi=$ac_mid
11057 else
11058 echo "$as_me: failed program was:" >&5
11059 sed 's/^/| /' conftest.$ac_ext >&5
11061 ac_lo=`expr '(' $ac_mid ')' + 1`
11064 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11065 done
11066 case $ac_lo in
11067 ?*) ac_cv_sizeof_pid_t=$ac_lo;;
11068 '') if test "$ac_cv_type_pid_t" = yes; then
11069 { { echo "$as_me:$LINENO: error: cannot compute sizeof (pid_t)
11070 See \`config.log' for more details." >&5
11071 echo "$as_me: error: cannot compute sizeof (pid_t)
11072 See \`config.log' for more details." >&2;}
11073 { (exit 77); exit 77; }; }
11074 else
11075 ac_cv_sizeof_pid_t=0
11076 fi ;;
11077 esac
11078 else
11079 cat >conftest.$ac_ext <<_ACEOF
11080 /* confdefs.h. */
11081 _ACEOF
11082 cat confdefs.h >>conftest.$ac_ext
11083 cat >>conftest.$ac_ext <<_ACEOF
11084 /* end confdefs.h. */
11085 $ac_includes_default
11086 typedef pid_t ac__type_sizeof_;
11087 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
11088 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
11089 #include <stdio.h>
11090 #include <stdlib.h>
11092 main ()
11095 FILE *f = fopen ("conftest.val", "w");
11096 if (! f)
11097 return 1;
11098 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
11100 long int i = longval ();
11101 if (i != ((long int) (sizeof (ac__type_sizeof_))))
11102 return 1;
11103 fprintf (f, "%ld\n", i);
11105 else
11107 unsigned long int i = ulongval ();
11108 if (i != ((long int) (sizeof (ac__type_sizeof_))))
11109 return 1;
11110 fprintf (f, "%lu\n", i);
11112 return ferror (f) || fclose (f) != 0;
11115 return 0;
11117 _ACEOF
11118 rm -f conftest$ac_exeext
11119 if { (ac_try="$ac_link"
11120 case "(($ac_try" in
11121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11122 *) ac_try_echo=$ac_try;;
11123 esac
11124 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11125 (eval "$ac_link") 2>&5
11126 ac_status=$?
11127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11128 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11129 { (case "(($ac_try" in
11130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11131 *) ac_try_echo=$ac_try;;
11132 esac
11133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11134 (eval "$ac_try") 2>&5
11135 ac_status=$?
11136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11137 (exit $ac_status); }; }; then
11138 ac_cv_sizeof_pid_t=`cat conftest.val`
11139 else
11140 echo "$as_me: program exited with status $ac_status" >&5
11141 echo "$as_me: failed program was:" >&5
11142 sed 's/^/| /' conftest.$ac_ext >&5
11144 ( exit $ac_status )
11145 if test "$ac_cv_type_pid_t" = yes; then
11146 { { echo "$as_me:$LINENO: error: cannot compute sizeof (pid_t)
11147 See \`config.log' for more details." >&5
11148 echo "$as_me: error: cannot compute sizeof (pid_t)
11149 See \`config.log' for more details." >&2;}
11150 { (exit 77); exit 77; }; }
11151 else
11152 ac_cv_sizeof_pid_t=0
11155 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11157 rm -f conftest.val
11159 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_pid_t" >&5
11160 echo "${ECHO_T}$ac_cv_sizeof_pid_t" >&6; }
11164 cat >>confdefs.h <<_ACEOF
11165 #define SIZEOF_PID_T $ac_cv_sizeof_pid_t
11166 _ACEOF
11170 { echo "$as_me:$LINENO: checking for long long support" >&5
11171 echo $ECHO_N "checking for long long support... $ECHO_C" >&6; }
11172 have_long_long=no
11173 cat >conftest.$ac_ext <<_ACEOF
11174 /* confdefs.h. */
11175 _ACEOF
11176 cat confdefs.h >>conftest.$ac_ext
11177 cat >>conftest.$ac_ext <<_ACEOF
11178 /* end confdefs.h. */
11181 main ()
11183 long long x; x = (long long)0;
11185 return 0;
11187 _ACEOF
11188 rm -f conftest.$ac_objext
11189 if { (ac_try="$ac_compile"
11190 case "(($ac_try" in
11191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11192 *) ac_try_echo=$ac_try;;
11193 esac
11194 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11195 (eval "$ac_compile") 2>conftest.er1
11196 ac_status=$?
11197 grep -v '^ *+' conftest.er1 >conftest.err
11198 rm -f conftest.er1
11199 cat conftest.err >&5
11200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11201 (exit $ac_status); } && {
11202 test -z "$ac_c_werror_flag" ||
11203 test ! -s conftest.err
11204 } && test -s conftest.$ac_objext; then
11207 cat >>confdefs.h <<\_ACEOF
11208 #define HAVE_LONG_LONG 1
11209 _ACEOF
11211 have_long_long=yes
11213 else
11214 echo "$as_me: failed program was:" >&5
11215 sed 's/^/| /' conftest.$ac_ext >&5
11220 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11221 { echo "$as_me:$LINENO: result: $have_long_long" >&5
11222 echo "${ECHO_T}$have_long_long" >&6; }
11223 if test "$have_long_long" = yes ; then
11224 { echo "$as_me:$LINENO: checking for long long" >&5
11225 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
11226 if test "${ac_cv_type_long_long+set}" = set; then
11227 echo $ECHO_N "(cached) $ECHO_C" >&6
11228 else
11229 cat >conftest.$ac_ext <<_ACEOF
11230 /* confdefs.h. */
11231 _ACEOF
11232 cat confdefs.h >>conftest.$ac_ext
11233 cat >>conftest.$ac_ext <<_ACEOF
11234 /* end confdefs.h. */
11235 $ac_includes_default
11236 typedef long long ac__type_new_;
11238 main ()
11240 if ((ac__type_new_ *) 0)
11241 return 0;
11242 if (sizeof (ac__type_new_))
11243 return 0;
11245 return 0;
11247 _ACEOF
11248 rm -f conftest.$ac_objext
11249 if { (ac_try="$ac_compile"
11250 case "(($ac_try" in
11251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11252 *) ac_try_echo=$ac_try;;
11253 esac
11254 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11255 (eval "$ac_compile") 2>conftest.er1
11256 ac_status=$?
11257 grep -v '^ *+' conftest.er1 >conftest.err
11258 rm -f conftest.er1
11259 cat conftest.err >&5
11260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11261 (exit $ac_status); } && {
11262 test -z "$ac_c_werror_flag" ||
11263 test ! -s conftest.err
11264 } && test -s conftest.$ac_objext; then
11265 ac_cv_type_long_long=yes
11266 else
11267 echo "$as_me: failed program was:" >&5
11268 sed 's/^/| /' conftest.$ac_ext >&5
11270 ac_cv_type_long_long=no
11273 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11275 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
11276 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
11278 # The cast to long int works around a bug in the HP C Compiler
11279 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11280 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11281 # This bug is HP SR number 8606223364.
11282 { echo "$as_me:$LINENO: checking size of long long" >&5
11283 echo $ECHO_N "checking size of long long... $ECHO_C" >&6; }
11284 if test "${ac_cv_sizeof_long_long+set}" = set; then
11285 echo $ECHO_N "(cached) $ECHO_C" >&6
11286 else
11287 if test "$cross_compiling" = yes; then
11288 # Depending upon the size, compute the lo and hi bounds.
11289 cat >conftest.$ac_ext <<_ACEOF
11290 /* confdefs.h. */
11291 _ACEOF
11292 cat confdefs.h >>conftest.$ac_ext
11293 cat >>conftest.$ac_ext <<_ACEOF
11294 /* end confdefs.h. */
11295 $ac_includes_default
11296 typedef long long ac__type_sizeof_;
11298 main ()
11300 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
11301 test_array [0] = 0
11304 return 0;
11306 _ACEOF
11307 rm -f conftest.$ac_objext
11308 if { (ac_try="$ac_compile"
11309 case "(($ac_try" in
11310 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11311 *) ac_try_echo=$ac_try;;
11312 esac
11313 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11314 (eval "$ac_compile") 2>conftest.er1
11315 ac_status=$?
11316 grep -v '^ *+' conftest.er1 >conftest.err
11317 rm -f conftest.er1
11318 cat conftest.err >&5
11319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11320 (exit $ac_status); } && {
11321 test -z "$ac_c_werror_flag" ||
11322 test ! -s conftest.err
11323 } && test -s conftest.$ac_objext; then
11324 ac_lo=0 ac_mid=0
11325 while :; do
11326 cat >conftest.$ac_ext <<_ACEOF
11327 /* confdefs.h. */
11328 _ACEOF
11329 cat confdefs.h >>conftest.$ac_ext
11330 cat >>conftest.$ac_ext <<_ACEOF
11331 /* end confdefs.h. */
11332 $ac_includes_default
11333 typedef long long ac__type_sizeof_;
11335 main ()
11337 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
11338 test_array [0] = 0
11341 return 0;
11343 _ACEOF
11344 rm -f conftest.$ac_objext
11345 if { (ac_try="$ac_compile"
11346 case "(($ac_try" in
11347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11348 *) ac_try_echo=$ac_try;;
11349 esac
11350 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11351 (eval "$ac_compile") 2>conftest.er1
11352 ac_status=$?
11353 grep -v '^ *+' conftest.er1 >conftest.err
11354 rm -f conftest.er1
11355 cat conftest.err >&5
11356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11357 (exit $ac_status); } && {
11358 test -z "$ac_c_werror_flag" ||
11359 test ! -s conftest.err
11360 } && test -s conftest.$ac_objext; then
11361 ac_hi=$ac_mid; break
11362 else
11363 echo "$as_me: failed program was:" >&5
11364 sed 's/^/| /' conftest.$ac_ext >&5
11366 ac_lo=`expr $ac_mid + 1`
11367 if test $ac_lo -le $ac_mid; then
11368 ac_lo= ac_hi=
11369 break
11371 ac_mid=`expr 2 '*' $ac_mid + 1`
11374 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11375 done
11376 else
11377 echo "$as_me: failed program was:" >&5
11378 sed 's/^/| /' conftest.$ac_ext >&5
11380 cat >conftest.$ac_ext <<_ACEOF
11381 /* confdefs.h. */
11382 _ACEOF
11383 cat confdefs.h >>conftest.$ac_ext
11384 cat >>conftest.$ac_ext <<_ACEOF
11385 /* end confdefs.h. */
11386 $ac_includes_default
11387 typedef long long ac__type_sizeof_;
11389 main ()
11391 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
11392 test_array [0] = 0
11395 return 0;
11397 _ACEOF
11398 rm -f conftest.$ac_objext
11399 if { (ac_try="$ac_compile"
11400 case "(($ac_try" in
11401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11402 *) ac_try_echo=$ac_try;;
11403 esac
11404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11405 (eval "$ac_compile") 2>conftest.er1
11406 ac_status=$?
11407 grep -v '^ *+' conftest.er1 >conftest.err
11408 rm -f conftest.er1
11409 cat conftest.err >&5
11410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11411 (exit $ac_status); } && {
11412 test -z "$ac_c_werror_flag" ||
11413 test ! -s conftest.err
11414 } && test -s conftest.$ac_objext; then
11415 ac_hi=-1 ac_mid=-1
11416 while :; do
11417 cat >conftest.$ac_ext <<_ACEOF
11418 /* confdefs.h. */
11419 _ACEOF
11420 cat confdefs.h >>conftest.$ac_ext
11421 cat >>conftest.$ac_ext <<_ACEOF
11422 /* end confdefs.h. */
11423 $ac_includes_default
11424 typedef long long ac__type_sizeof_;
11426 main ()
11428 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
11429 test_array [0] = 0
11432 return 0;
11434 _ACEOF
11435 rm -f conftest.$ac_objext
11436 if { (ac_try="$ac_compile"
11437 case "(($ac_try" in
11438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11439 *) ac_try_echo=$ac_try;;
11440 esac
11441 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11442 (eval "$ac_compile") 2>conftest.er1
11443 ac_status=$?
11444 grep -v '^ *+' conftest.er1 >conftest.err
11445 rm -f conftest.er1
11446 cat conftest.err >&5
11447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11448 (exit $ac_status); } && {
11449 test -z "$ac_c_werror_flag" ||
11450 test ! -s conftest.err
11451 } && test -s conftest.$ac_objext; then
11452 ac_lo=$ac_mid; break
11453 else
11454 echo "$as_me: failed program was:" >&5
11455 sed 's/^/| /' conftest.$ac_ext >&5
11457 ac_hi=`expr '(' $ac_mid ')' - 1`
11458 if test $ac_mid -le $ac_hi; then
11459 ac_lo= ac_hi=
11460 break
11462 ac_mid=`expr 2 '*' $ac_mid`
11465 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11466 done
11467 else
11468 echo "$as_me: failed program was:" >&5
11469 sed 's/^/| /' conftest.$ac_ext >&5
11471 ac_lo= ac_hi=
11474 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11477 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11478 # Binary search between lo and hi bounds.
11479 while test "x$ac_lo" != "x$ac_hi"; do
11480 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
11481 cat >conftest.$ac_ext <<_ACEOF
11482 /* confdefs.h. */
11483 _ACEOF
11484 cat confdefs.h >>conftest.$ac_ext
11485 cat >>conftest.$ac_ext <<_ACEOF
11486 /* end confdefs.h. */
11487 $ac_includes_default
11488 typedef long long ac__type_sizeof_;
11490 main ()
11492 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
11493 test_array [0] = 0
11496 return 0;
11498 _ACEOF
11499 rm -f conftest.$ac_objext
11500 if { (ac_try="$ac_compile"
11501 case "(($ac_try" in
11502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11503 *) ac_try_echo=$ac_try;;
11504 esac
11505 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11506 (eval "$ac_compile") 2>conftest.er1
11507 ac_status=$?
11508 grep -v '^ *+' conftest.er1 >conftest.err
11509 rm -f conftest.er1
11510 cat conftest.err >&5
11511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11512 (exit $ac_status); } && {
11513 test -z "$ac_c_werror_flag" ||
11514 test ! -s conftest.err
11515 } && test -s conftest.$ac_objext; then
11516 ac_hi=$ac_mid
11517 else
11518 echo "$as_me: failed program was:" >&5
11519 sed 's/^/| /' conftest.$ac_ext >&5
11521 ac_lo=`expr '(' $ac_mid ')' + 1`
11524 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11525 done
11526 case $ac_lo in
11527 ?*) ac_cv_sizeof_long_long=$ac_lo;;
11528 '') if test "$ac_cv_type_long_long" = yes; then
11529 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
11530 See \`config.log' for more details." >&5
11531 echo "$as_me: error: cannot compute sizeof (long long)
11532 See \`config.log' for more details." >&2;}
11533 { (exit 77); exit 77; }; }
11534 else
11535 ac_cv_sizeof_long_long=0
11536 fi ;;
11537 esac
11538 else
11539 cat >conftest.$ac_ext <<_ACEOF
11540 /* confdefs.h. */
11541 _ACEOF
11542 cat confdefs.h >>conftest.$ac_ext
11543 cat >>conftest.$ac_ext <<_ACEOF
11544 /* end confdefs.h. */
11545 $ac_includes_default
11546 typedef long long ac__type_sizeof_;
11547 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
11548 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
11549 #include <stdio.h>
11550 #include <stdlib.h>
11552 main ()
11555 FILE *f = fopen ("conftest.val", "w");
11556 if (! f)
11557 return 1;
11558 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
11560 long int i = longval ();
11561 if (i != ((long int) (sizeof (ac__type_sizeof_))))
11562 return 1;
11563 fprintf (f, "%ld\n", i);
11565 else
11567 unsigned long int i = ulongval ();
11568 if (i != ((long int) (sizeof (ac__type_sizeof_))))
11569 return 1;
11570 fprintf (f, "%lu\n", i);
11572 return ferror (f) || fclose (f) != 0;
11575 return 0;
11577 _ACEOF
11578 rm -f conftest$ac_exeext
11579 if { (ac_try="$ac_link"
11580 case "(($ac_try" in
11581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11582 *) ac_try_echo=$ac_try;;
11583 esac
11584 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11585 (eval "$ac_link") 2>&5
11586 ac_status=$?
11587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11588 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11589 { (case "(($ac_try" in
11590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11591 *) ac_try_echo=$ac_try;;
11592 esac
11593 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11594 (eval "$ac_try") 2>&5
11595 ac_status=$?
11596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11597 (exit $ac_status); }; }; then
11598 ac_cv_sizeof_long_long=`cat conftest.val`
11599 else
11600 echo "$as_me: program exited with status $ac_status" >&5
11601 echo "$as_me: failed program was:" >&5
11602 sed 's/^/| /' conftest.$ac_ext >&5
11604 ( exit $ac_status )
11605 if test "$ac_cv_type_long_long" = yes; then
11606 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
11607 See \`config.log' for more details." >&5
11608 echo "$as_me: error: cannot compute sizeof (long long)
11609 See \`config.log' for more details." >&2;}
11610 { (exit 77); exit 77; }; }
11611 else
11612 ac_cv_sizeof_long_long=0
11615 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11617 rm -f conftest.val
11619 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
11620 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6; }
11624 cat >>confdefs.h <<_ACEOF
11625 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
11626 _ACEOF
11631 { echo "$as_me:$LINENO: checking for long double support" >&5
11632 echo $ECHO_N "checking for long double support... $ECHO_C" >&6; }
11633 have_long_double=no
11634 cat >conftest.$ac_ext <<_ACEOF
11635 /* confdefs.h. */
11636 _ACEOF
11637 cat confdefs.h >>conftest.$ac_ext
11638 cat >>conftest.$ac_ext <<_ACEOF
11639 /* end confdefs.h. */
11642 main ()
11644 long double x; x = (long double)0.;
11646 return 0;
11648 _ACEOF
11649 rm -f conftest.$ac_objext
11650 if { (ac_try="$ac_compile"
11651 case "(($ac_try" in
11652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11653 *) ac_try_echo=$ac_try;;
11654 esac
11655 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11656 (eval "$ac_compile") 2>conftest.er1
11657 ac_status=$?
11658 grep -v '^ *+' conftest.er1 >conftest.err
11659 rm -f conftest.er1
11660 cat conftest.err >&5
11661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11662 (exit $ac_status); } && {
11663 test -z "$ac_c_werror_flag" ||
11664 test ! -s conftest.err
11665 } && test -s conftest.$ac_objext; then
11668 cat >>confdefs.h <<\_ACEOF
11669 #define HAVE_LONG_DOUBLE 1
11670 _ACEOF
11672 have_long_double=yes
11674 else
11675 echo "$as_me: failed program was:" >&5
11676 sed 's/^/| /' conftest.$ac_ext >&5
11681 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11682 { echo "$as_me:$LINENO: result: $have_long_double" >&5
11683 echo "${ECHO_T}$have_long_double" >&6; }
11684 if test "$have_long_double" = yes ; then
11685 { echo "$as_me:$LINENO: checking for long double" >&5
11686 echo $ECHO_N "checking for long double... $ECHO_C" >&6; }
11687 if test "${ac_cv_type_long_double+set}" = set; then
11688 echo $ECHO_N "(cached) $ECHO_C" >&6
11689 else
11690 cat >conftest.$ac_ext <<_ACEOF
11691 /* confdefs.h. */
11692 _ACEOF
11693 cat confdefs.h >>conftest.$ac_ext
11694 cat >>conftest.$ac_ext <<_ACEOF
11695 /* end confdefs.h. */
11696 $ac_includes_default
11697 typedef long double ac__type_new_;
11699 main ()
11701 if ((ac__type_new_ *) 0)
11702 return 0;
11703 if (sizeof (ac__type_new_))
11704 return 0;
11706 return 0;
11708 _ACEOF
11709 rm -f conftest.$ac_objext
11710 if { (ac_try="$ac_compile"
11711 case "(($ac_try" in
11712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11713 *) ac_try_echo=$ac_try;;
11714 esac
11715 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11716 (eval "$ac_compile") 2>conftest.er1
11717 ac_status=$?
11718 grep -v '^ *+' conftest.er1 >conftest.err
11719 rm -f conftest.er1
11720 cat conftest.err >&5
11721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11722 (exit $ac_status); } && {
11723 test -z "$ac_c_werror_flag" ||
11724 test ! -s conftest.err
11725 } && test -s conftest.$ac_objext; then
11726 ac_cv_type_long_double=yes
11727 else
11728 echo "$as_me: failed program was:" >&5
11729 sed 's/^/| /' conftest.$ac_ext >&5
11731 ac_cv_type_long_double=no
11734 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11736 { echo "$as_me:$LINENO: result: $ac_cv_type_long_double" >&5
11737 echo "${ECHO_T}$ac_cv_type_long_double" >&6; }
11739 # The cast to long int works around a bug in the HP C Compiler
11740 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11741 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11742 # This bug is HP SR number 8606223364.
11743 { echo "$as_me:$LINENO: checking size of long double" >&5
11744 echo $ECHO_N "checking size of long double... $ECHO_C" >&6; }
11745 if test "${ac_cv_sizeof_long_double+set}" = set; then
11746 echo $ECHO_N "(cached) $ECHO_C" >&6
11747 else
11748 if test "$cross_compiling" = yes; then
11749 # Depending upon the size, compute the lo and hi bounds.
11750 cat >conftest.$ac_ext <<_ACEOF
11751 /* confdefs.h. */
11752 _ACEOF
11753 cat confdefs.h >>conftest.$ac_ext
11754 cat >>conftest.$ac_ext <<_ACEOF
11755 /* end confdefs.h. */
11756 $ac_includes_default
11757 typedef long double ac__type_sizeof_;
11759 main ()
11761 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
11762 test_array [0] = 0
11765 return 0;
11767 _ACEOF
11768 rm -f conftest.$ac_objext
11769 if { (ac_try="$ac_compile"
11770 case "(($ac_try" in
11771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11772 *) ac_try_echo=$ac_try;;
11773 esac
11774 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11775 (eval "$ac_compile") 2>conftest.er1
11776 ac_status=$?
11777 grep -v '^ *+' conftest.er1 >conftest.err
11778 rm -f conftest.er1
11779 cat conftest.err >&5
11780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11781 (exit $ac_status); } && {
11782 test -z "$ac_c_werror_flag" ||
11783 test ! -s conftest.err
11784 } && test -s conftest.$ac_objext; then
11785 ac_lo=0 ac_mid=0
11786 while :; do
11787 cat >conftest.$ac_ext <<_ACEOF
11788 /* confdefs.h. */
11789 _ACEOF
11790 cat confdefs.h >>conftest.$ac_ext
11791 cat >>conftest.$ac_ext <<_ACEOF
11792 /* end confdefs.h. */
11793 $ac_includes_default
11794 typedef long double ac__type_sizeof_;
11796 main ()
11798 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
11799 test_array [0] = 0
11802 return 0;
11804 _ACEOF
11805 rm -f conftest.$ac_objext
11806 if { (ac_try="$ac_compile"
11807 case "(($ac_try" in
11808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11809 *) ac_try_echo=$ac_try;;
11810 esac
11811 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11812 (eval "$ac_compile") 2>conftest.er1
11813 ac_status=$?
11814 grep -v '^ *+' conftest.er1 >conftest.err
11815 rm -f conftest.er1
11816 cat conftest.err >&5
11817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11818 (exit $ac_status); } && {
11819 test -z "$ac_c_werror_flag" ||
11820 test ! -s conftest.err
11821 } && test -s conftest.$ac_objext; then
11822 ac_hi=$ac_mid; break
11823 else
11824 echo "$as_me: failed program was:" >&5
11825 sed 's/^/| /' conftest.$ac_ext >&5
11827 ac_lo=`expr $ac_mid + 1`
11828 if test $ac_lo -le $ac_mid; then
11829 ac_lo= ac_hi=
11830 break
11832 ac_mid=`expr 2 '*' $ac_mid + 1`
11835 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11836 done
11837 else
11838 echo "$as_me: failed program was:" >&5
11839 sed 's/^/| /' conftest.$ac_ext >&5
11841 cat >conftest.$ac_ext <<_ACEOF
11842 /* confdefs.h. */
11843 _ACEOF
11844 cat confdefs.h >>conftest.$ac_ext
11845 cat >>conftest.$ac_ext <<_ACEOF
11846 /* end confdefs.h. */
11847 $ac_includes_default
11848 typedef long double ac__type_sizeof_;
11850 main ()
11852 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
11853 test_array [0] = 0
11856 return 0;
11858 _ACEOF
11859 rm -f conftest.$ac_objext
11860 if { (ac_try="$ac_compile"
11861 case "(($ac_try" in
11862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11863 *) ac_try_echo=$ac_try;;
11864 esac
11865 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11866 (eval "$ac_compile") 2>conftest.er1
11867 ac_status=$?
11868 grep -v '^ *+' conftest.er1 >conftest.err
11869 rm -f conftest.er1
11870 cat conftest.err >&5
11871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11872 (exit $ac_status); } && {
11873 test -z "$ac_c_werror_flag" ||
11874 test ! -s conftest.err
11875 } && test -s conftest.$ac_objext; then
11876 ac_hi=-1 ac_mid=-1
11877 while :; do
11878 cat >conftest.$ac_ext <<_ACEOF
11879 /* confdefs.h. */
11880 _ACEOF
11881 cat confdefs.h >>conftest.$ac_ext
11882 cat >>conftest.$ac_ext <<_ACEOF
11883 /* end confdefs.h. */
11884 $ac_includes_default
11885 typedef long double ac__type_sizeof_;
11887 main ()
11889 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
11890 test_array [0] = 0
11893 return 0;
11895 _ACEOF
11896 rm -f conftest.$ac_objext
11897 if { (ac_try="$ac_compile"
11898 case "(($ac_try" in
11899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11900 *) ac_try_echo=$ac_try;;
11901 esac
11902 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11903 (eval "$ac_compile") 2>conftest.er1
11904 ac_status=$?
11905 grep -v '^ *+' conftest.er1 >conftest.err
11906 rm -f conftest.er1
11907 cat conftest.err >&5
11908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11909 (exit $ac_status); } && {
11910 test -z "$ac_c_werror_flag" ||
11911 test ! -s conftest.err
11912 } && test -s conftest.$ac_objext; then
11913 ac_lo=$ac_mid; break
11914 else
11915 echo "$as_me: failed program was:" >&5
11916 sed 's/^/| /' conftest.$ac_ext >&5
11918 ac_hi=`expr '(' $ac_mid ')' - 1`
11919 if test $ac_mid -le $ac_hi; then
11920 ac_lo= ac_hi=
11921 break
11923 ac_mid=`expr 2 '*' $ac_mid`
11926 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11927 done
11928 else
11929 echo "$as_me: failed program was:" >&5
11930 sed 's/^/| /' conftest.$ac_ext >&5
11932 ac_lo= ac_hi=
11935 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11938 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11939 # Binary search between lo and hi bounds.
11940 while test "x$ac_lo" != "x$ac_hi"; do
11941 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
11942 cat >conftest.$ac_ext <<_ACEOF
11943 /* confdefs.h. */
11944 _ACEOF
11945 cat confdefs.h >>conftest.$ac_ext
11946 cat >>conftest.$ac_ext <<_ACEOF
11947 /* end confdefs.h. */
11948 $ac_includes_default
11949 typedef long double ac__type_sizeof_;
11951 main ()
11953 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
11954 test_array [0] = 0
11957 return 0;
11959 _ACEOF
11960 rm -f conftest.$ac_objext
11961 if { (ac_try="$ac_compile"
11962 case "(($ac_try" in
11963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11964 *) ac_try_echo=$ac_try;;
11965 esac
11966 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11967 (eval "$ac_compile") 2>conftest.er1
11968 ac_status=$?
11969 grep -v '^ *+' conftest.er1 >conftest.err
11970 rm -f conftest.er1
11971 cat conftest.err >&5
11972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11973 (exit $ac_status); } && {
11974 test -z "$ac_c_werror_flag" ||
11975 test ! -s conftest.err
11976 } && test -s conftest.$ac_objext; then
11977 ac_hi=$ac_mid
11978 else
11979 echo "$as_me: failed program was:" >&5
11980 sed 's/^/| /' conftest.$ac_ext >&5
11982 ac_lo=`expr '(' $ac_mid ')' + 1`
11985 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11986 done
11987 case $ac_lo in
11988 ?*) ac_cv_sizeof_long_double=$ac_lo;;
11989 '') if test "$ac_cv_type_long_double" = yes; then
11990 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long double)
11991 See \`config.log' for more details." >&5
11992 echo "$as_me: error: cannot compute sizeof (long double)
11993 See \`config.log' for more details." >&2;}
11994 { (exit 77); exit 77; }; }
11995 else
11996 ac_cv_sizeof_long_double=0
11997 fi ;;
11998 esac
11999 else
12000 cat >conftest.$ac_ext <<_ACEOF
12001 /* confdefs.h. */
12002 _ACEOF
12003 cat confdefs.h >>conftest.$ac_ext
12004 cat >>conftest.$ac_ext <<_ACEOF
12005 /* end confdefs.h. */
12006 $ac_includes_default
12007 typedef long double ac__type_sizeof_;
12008 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
12009 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
12010 #include <stdio.h>
12011 #include <stdlib.h>
12013 main ()
12016 FILE *f = fopen ("conftest.val", "w");
12017 if (! f)
12018 return 1;
12019 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
12021 long int i = longval ();
12022 if (i != ((long int) (sizeof (ac__type_sizeof_))))
12023 return 1;
12024 fprintf (f, "%ld\n", i);
12026 else
12028 unsigned long int i = ulongval ();
12029 if (i != ((long int) (sizeof (ac__type_sizeof_))))
12030 return 1;
12031 fprintf (f, "%lu\n", i);
12033 return ferror (f) || fclose (f) != 0;
12036 return 0;
12038 _ACEOF
12039 rm -f conftest$ac_exeext
12040 if { (ac_try="$ac_link"
12041 case "(($ac_try" in
12042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12043 *) ac_try_echo=$ac_try;;
12044 esac
12045 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12046 (eval "$ac_link") 2>&5
12047 ac_status=$?
12048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12049 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12050 { (case "(($ac_try" in
12051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12052 *) ac_try_echo=$ac_try;;
12053 esac
12054 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12055 (eval "$ac_try") 2>&5
12056 ac_status=$?
12057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12058 (exit $ac_status); }; }; then
12059 ac_cv_sizeof_long_double=`cat conftest.val`
12060 else
12061 echo "$as_me: program exited with status $ac_status" >&5
12062 echo "$as_me: failed program was:" >&5
12063 sed 's/^/| /' conftest.$ac_ext >&5
12065 ( exit $ac_status )
12066 if test "$ac_cv_type_long_double" = yes; then
12067 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long double)
12068 See \`config.log' for more details." >&5
12069 echo "$as_me: error: cannot compute sizeof (long double)
12070 See \`config.log' for more details." >&2;}
12071 { (exit 77); exit 77; }; }
12072 else
12073 ac_cv_sizeof_long_double=0
12076 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12078 rm -f conftest.val
12080 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_double" >&5
12081 echo "${ECHO_T}$ac_cv_sizeof_long_double" >&6; }
12085 cat >>confdefs.h <<_ACEOF
12086 #define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double
12087 _ACEOF
12092 { echo "$as_me:$LINENO: checking for _Bool support" >&5
12093 echo $ECHO_N "checking for _Bool support... $ECHO_C" >&6; }
12094 have_c99_bool=no
12095 cat >conftest.$ac_ext <<_ACEOF
12096 /* confdefs.h. */
12097 _ACEOF
12098 cat confdefs.h >>conftest.$ac_ext
12099 cat >>conftest.$ac_ext <<_ACEOF
12100 /* end confdefs.h. */
12103 main ()
12105 _Bool x; x = (_Bool)0;
12107 return 0;
12109 _ACEOF
12110 rm -f conftest.$ac_objext
12111 if { (ac_try="$ac_compile"
12112 case "(($ac_try" in
12113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12114 *) ac_try_echo=$ac_try;;
12115 esac
12116 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12117 (eval "$ac_compile") 2>conftest.er1
12118 ac_status=$?
12119 grep -v '^ *+' conftest.er1 >conftest.err
12120 rm -f conftest.er1
12121 cat conftest.err >&5
12122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12123 (exit $ac_status); } && {
12124 test -z "$ac_c_werror_flag" ||
12125 test ! -s conftest.err
12126 } && test -s conftest.$ac_objext; then
12129 cat >>confdefs.h <<\_ACEOF
12130 #define HAVE_C99_BOOL 1
12131 _ACEOF
12133 have_c99_bool=yes
12135 else
12136 echo "$as_me: failed program was:" >&5
12137 sed 's/^/| /' conftest.$ac_ext >&5
12142 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12143 { echo "$as_me:$LINENO: result: $have_c99_bool" >&5
12144 echo "${ECHO_T}$have_c99_bool" >&6; }
12145 if test "$have_c99_bool" = yes ; then
12146 { echo "$as_me:$LINENO: checking for _Bool" >&5
12147 echo $ECHO_N "checking for _Bool... $ECHO_C" >&6; }
12148 if test "${ac_cv_type__Bool+set}" = set; then
12149 echo $ECHO_N "(cached) $ECHO_C" >&6
12150 else
12151 cat >conftest.$ac_ext <<_ACEOF
12152 /* confdefs.h. */
12153 _ACEOF
12154 cat confdefs.h >>conftest.$ac_ext
12155 cat >>conftest.$ac_ext <<_ACEOF
12156 /* end confdefs.h. */
12157 $ac_includes_default
12158 typedef _Bool ac__type_new_;
12160 main ()
12162 if ((ac__type_new_ *) 0)
12163 return 0;
12164 if (sizeof (ac__type_new_))
12165 return 0;
12167 return 0;
12169 _ACEOF
12170 rm -f conftest.$ac_objext
12171 if { (ac_try="$ac_compile"
12172 case "(($ac_try" in
12173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12174 *) ac_try_echo=$ac_try;;
12175 esac
12176 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12177 (eval "$ac_compile") 2>conftest.er1
12178 ac_status=$?
12179 grep -v '^ *+' conftest.er1 >conftest.err
12180 rm -f conftest.er1
12181 cat conftest.err >&5
12182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12183 (exit $ac_status); } && {
12184 test -z "$ac_c_werror_flag" ||
12185 test ! -s conftest.err
12186 } && test -s conftest.$ac_objext; then
12187 ac_cv_type__Bool=yes
12188 else
12189 echo "$as_me: failed program was:" >&5
12190 sed 's/^/| /' conftest.$ac_ext >&5
12192 ac_cv_type__Bool=no
12195 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12197 { echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5
12198 echo "${ECHO_T}$ac_cv_type__Bool" >&6; }
12200 # The cast to long int works around a bug in the HP C Compiler
12201 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12202 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12203 # This bug is HP SR number 8606223364.
12204 { echo "$as_me:$LINENO: checking size of _Bool" >&5
12205 echo $ECHO_N "checking size of _Bool... $ECHO_C" >&6; }
12206 if test "${ac_cv_sizeof__Bool+set}" = set; then
12207 echo $ECHO_N "(cached) $ECHO_C" >&6
12208 else
12209 if test "$cross_compiling" = yes; then
12210 # Depending upon the size, compute the lo and hi bounds.
12211 cat >conftest.$ac_ext <<_ACEOF
12212 /* confdefs.h. */
12213 _ACEOF
12214 cat confdefs.h >>conftest.$ac_ext
12215 cat >>conftest.$ac_ext <<_ACEOF
12216 /* end confdefs.h. */
12217 $ac_includes_default
12218 typedef _Bool ac__type_sizeof_;
12220 main ()
12222 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
12223 test_array [0] = 0
12226 return 0;
12228 _ACEOF
12229 rm -f conftest.$ac_objext
12230 if { (ac_try="$ac_compile"
12231 case "(($ac_try" in
12232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12233 *) ac_try_echo=$ac_try;;
12234 esac
12235 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12236 (eval "$ac_compile") 2>conftest.er1
12237 ac_status=$?
12238 grep -v '^ *+' conftest.er1 >conftest.err
12239 rm -f conftest.er1
12240 cat conftest.err >&5
12241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12242 (exit $ac_status); } && {
12243 test -z "$ac_c_werror_flag" ||
12244 test ! -s conftest.err
12245 } && test -s conftest.$ac_objext; then
12246 ac_lo=0 ac_mid=0
12247 while :; do
12248 cat >conftest.$ac_ext <<_ACEOF
12249 /* confdefs.h. */
12250 _ACEOF
12251 cat confdefs.h >>conftest.$ac_ext
12252 cat >>conftest.$ac_ext <<_ACEOF
12253 /* end confdefs.h. */
12254 $ac_includes_default
12255 typedef _Bool ac__type_sizeof_;
12257 main ()
12259 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
12260 test_array [0] = 0
12263 return 0;
12265 _ACEOF
12266 rm -f conftest.$ac_objext
12267 if { (ac_try="$ac_compile"
12268 case "(($ac_try" in
12269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12270 *) ac_try_echo=$ac_try;;
12271 esac
12272 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12273 (eval "$ac_compile") 2>conftest.er1
12274 ac_status=$?
12275 grep -v '^ *+' conftest.er1 >conftest.err
12276 rm -f conftest.er1
12277 cat conftest.err >&5
12278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12279 (exit $ac_status); } && {
12280 test -z "$ac_c_werror_flag" ||
12281 test ! -s conftest.err
12282 } && test -s conftest.$ac_objext; then
12283 ac_hi=$ac_mid; break
12284 else
12285 echo "$as_me: failed program was:" >&5
12286 sed 's/^/| /' conftest.$ac_ext >&5
12288 ac_lo=`expr $ac_mid + 1`
12289 if test $ac_lo -le $ac_mid; then
12290 ac_lo= ac_hi=
12291 break
12293 ac_mid=`expr 2 '*' $ac_mid + 1`
12296 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12297 done
12298 else
12299 echo "$as_me: failed program was:" >&5
12300 sed 's/^/| /' conftest.$ac_ext >&5
12302 cat >conftest.$ac_ext <<_ACEOF
12303 /* confdefs.h. */
12304 _ACEOF
12305 cat confdefs.h >>conftest.$ac_ext
12306 cat >>conftest.$ac_ext <<_ACEOF
12307 /* end confdefs.h. */
12308 $ac_includes_default
12309 typedef _Bool ac__type_sizeof_;
12311 main ()
12313 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
12314 test_array [0] = 0
12317 return 0;
12319 _ACEOF
12320 rm -f conftest.$ac_objext
12321 if { (ac_try="$ac_compile"
12322 case "(($ac_try" in
12323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12324 *) ac_try_echo=$ac_try;;
12325 esac
12326 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12327 (eval "$ac_compile") 2>conftest.er1
12328 ac_status=$?
12329 grep -v '^ *+' conftest.er1 >conftest.err
12330 rm -f conftest.er1
12331 cat conftest.err >&5
12332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12333 (exit $ac_status); } && {
12334 test -z "$ac_c_werror_flag" ||
12335 test ! -s conftest.err
12336 } && test -s conftest.$ac_objext; then
12337 ac_hi=-1 ac_mid=-1
12338 while :; do
12339 cat >conftest.$ac_ext <<_ACEOF
12340 /* confdefs.h. */
12341 _ACEOF
12342 cat confdefs.h >>conftest.$ac_ext
12343 cat >>conftest.$ac_ext <<_ACEOF
12344 /* end confdefs.h. */
12345 $ac_includes_default
12346 typedef _Bool ac__type_sizeof_;
12348 main ()
12350 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
12351 test_array [0] = 0
12354 return 0;
12356 _ACEOF
12357 rm -f conftest.$ac_objext
12358 if { (ac_try="$ac_compile"
12359 case "(($ac_try" in
12360 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12361 *) ac_try_echo=$ac_try;;
12362 esac
12363 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12364 (eval "$ac_compile") 2>conftest.er1
12365 ac_status=$?
12366 grep -v '^ *+' conftest.er1 >conftest.err
12367 rm -f conftest.er1
12368 cat conftest.err >&5
12369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12370 (exit $ac_status); } && {
12371 test -z "$ac_c_werror_flag" ||
12372 test ! -s conftest.err
12373 } && test -s conftest.$ac_objext; then
12374 ac_lo=$ac_mid; break
12375 else
12376 echo "$as_me: failed program was:" >&5
12377 sed 's/^/| /' conftest.$ac_ext >&5
12379 ac_hi=`expr '(' $ac_mid ')' - 1`
12380 if test $ac_mid -le $ac_hi; then
12381 ac_lo= ac_hi=
12382 break
12384 ac_mid=`expr 2 '*' $ac_mid`
12387 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12388 done
12389 else
12390 echo "$as_me: failed program was:" >&5
12391 sed 's/^/| /' conftest.$ac_ext >&5
12393 ac_lo= ac_hi=
12396 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12399 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12400 # Binary search between lo and hi bounds.
12401 while test "x$ac_lo" != "x$ac_hi"; do
12402 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12403 cat >conftest.$ac_ext <<_ACEOF
12404 /* confdefs.h. */
12405 _ACEOF
12406 cat confdefs.h >>conftest.$ac_ext
12407 cat >>conftest.$ac_ext <<_ACEOF
12408 /* end confdefs.h. */
12409 $ac_includes_default
12410 typedef _Bool ac__type_sizeof_;
12412 main ()
12414 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
12415 test_array [0] = 0
12418 return 0;
12420 _ACEOF
12421 rm -f conftest.$ac_objext
12422 if { (ac_try="$ac_compile"
12423 case "(($ac_try" in
12424 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12425 *) ac_try_echo=$ac_try;;
12426 esac
12427 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12428 (eval "$ac_compile") 2>conftest.er1
12429 ac_status=$?
12430 grep -v '^ *+' conftest.er1 >conftest.err
12431 rm -f conftest.er1
12432 cat conftest.err >&5
12433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12434 (exit $ac_status); } && {
12435 test -z "$ac_c_werror_flag" ||
12436 test ! -s conftest.err
12437 } && test -s conftest.$ac_objext; then
12438 ac_hi=$ac_mid
12439 else
12440 echo "$as_me: failed program was:" >&5
12441 sed 's/^/| /' conftest.$ac_ext >&5
12443 ac_lo=`expr '(' $ac_mid ')' + 1`
12446 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12447 done
12448 case $ac_lo in
12449 ?*) ac_cv_sizeof__Bool=$ac_lo;;
12450 '') if test "$ac_cv_type__Bool" = yes; then
12451 { { echo "$as_me:$LINENO: error: cannot compute sizeof (_Bool)
12452 See \`config.log' for more details." >&5
12453 echo "$as_me: error: cannot compute sizeof (_Bool)
12454 See \`config.log' for more details." >&2;}
12455 { (exit 77); exit 77; }; }
12456 else
12457 ac_cv_sizeof__Bool=0
12458 fi ;;
12459 esac
12460 else
12461 cat >conftest.$ac_ext <<_ACEOF
12462 /* confdefs.h. */
12463 _ACEOF
12464 cat confdefs.h >>conftest.$ac_ext
12465 cat >>conftest.$ac_ext <<_ACEOF
12466 /* end confdefs.h. */
12467 $ac_includes_default
12468 typedef _Bool ac__type_sizeof_;
12469 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
12470 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
12471 #include <stdio.h>
12472 #include <stdlib.h>
12474 main ()
12477 FILE *f = fopen ("conftest.val", "w");
12478 if (! f)
12479 return 1;
12480 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
12482 long int i = longval ();
12483 if (i != ((long int) (sizeof (ac__type_sizeof_))))
12484 return 1;
12485 fprintf (f, "%ld\n", i);
12487 else
12489 unsigned long int i = ulongval ();
12490 if (i != ((long int) (sizeof (ac__type_sizeof_))))
12491 return 1;
12492 fprintf (f, "%lu\n", i);
12494 return ferror (f) || fclose (f) != 0;
12497 return 0;
12499 _ACEOF
12500 rm -f conftest$ac_exeext
12501 if { (ac_try="$ac_link"
12502 case "(($ac_try" in
12503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12504 *) ac_try_echo=$ac_try;;
12505 esac
12506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12507 (eval "$ac_link") 2>&5
12508 ac_status=$?
12509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12510 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12511 { (case "(($ac_try" in
12512 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12513 *) ac_try_echo=$ac_try;;
12514 esac
12515 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12516 (eval "$ac_try") 2>&5
12517 ac_status=$?
12518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12519 (exit $ac_status); }; }; then
12520 ac_cv_sizeof__Bool=`cat conftest.val`
12521 else
12522 echo "$as_me: program exited with status $ac_status" >&5
12523 echo "$as_me: failed program was:" >&5
12524 sed 's/^/| /' conftest.$ac_ext >&5
12526 ( exit $ac_status )
12527 if test "$ac_cv_type__Bool" = yes; then
12528 { { echo "$as_me:$LINENO: error: cannot compute sizeof (_Bool)
12529 See \`config.log' for more details." >&5
12530 echo "$as_me: error: cannot compute sizeof (_Bool)
12531 See \`config.log' for more details." >&2;}
12532 { (exit 77); exit 77; }; }
12533 else
12534 ac_cv_sizeof__Bool=0
12537 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12539 rm -f conftest.val
12541 { echo "$as_me:$LINENO: result: $ac_cv_sizeof__Bool" >&5
12542 echo "${ECHO_T}$ac_cv_sizeof__Bool" >&6; }
12546 cat >>confdefs.h <<_ACEOF
12547 #define SIZEOF__BOOL $ac_cv_sizeof__Bool
12548 _ACEOF
12553 { echo "$as_me:$LINENO: checking for uintptr_t" >&5
12554 echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6; }
12555 if test "${ac_cv_type_uintptr_t+set}" = set; then
12556 echo $ECHO_N "(cached) $ECHO_C" >&6
12557 else
12558 cat >conftest.$ac_ext <<_ACEOF
12559 /* confdefs.h. */
12560 _ACEOF
12561 cat confdefs.h >>conftest.$ac_ext
12562 cat >>conftest.$ac_ext <<_ACEOF
12563 /* end confdefs.h. */
12564 #ifdef HAVE_STDINT_H
12565 #include <stdint.h>
12566 #endif
12568 typedef uintptr_t ac__type_new_;
12570 main ()
12572 if ((ac__type_new_ *) 0)
12573 return 0;
12574 if (sizeof (ac__type_new_))
12575 return 0;
12577 return 0;
12579 _ACEOF
12580 rm -f conftest.$ac_objext
12581 if { (ac_try="$ac_compile"
12582 case "(($ac_try" in
12583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12584 *) ac_try_echo=$ac_try;;
12585 esac
12586 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12587 (eval "$ac_compile") 2>conftest.er1
12588 ac_status=$?
12589 grep -v '^ *+' conftest.er1 >conftest.err
12590 rm -f conftest.er1
12591 cat conftest.err >&5
12592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12593 (exit $ac_status); } && {
12594 test -z "$ac_c_werror_flag" ||
12595 test ! -s conftest.err
12596 } && test -s conftest.$ac_objext; then
12597 ac_cv_type_uintptr_t=yes
12598 else
12599 echo "$as_me: failed program was:" >&5
12600 sed 's/^/| /' conftest.$ac_ext >&5
12602 ac_cv_type_uintptr_t=no
12605 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12607 { echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
12608 echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6; }
12609 if test $ac_cv_type_uintptr_t = yes; then
12611 cat >>confdefs.h <<_ACEOF
12612 #define HAVE_UINTPTR_T 1
12613 _ACEOF
12615 { echo "$as_me:$LINENO: checking for uintptr_t" >&5
12616 echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6; }
12617 if test "${ac_cv_type_uintptr_t+set}" = set; then
12618 echo $ECHO_N "(cached) $ECHO_C" >&6
12619 else
12620 cat >conftest.$ac_ext <<_ACEOF
12621 /* confdefs.h. */
12622 _ACEOF
12623 cat confdefs.h >>conftest.$ac_ext
12624 cat >>conftest.$ac_ext <<_ACEOF
12625 /* end confdefs.h. */
12626 $ac_includes_default
12627 typedef uintptr_t ac__type_new_;
12629 main ()
12631 if ((ac__type_new_ *) 0)
12632 return 0;
12633 if (sizeof (ac__type_new_))
12634 return 0;
12636 return 0;
12638 _ACEOF
12639 rm -f conftest.$ac_objext
12640 if { (ac_try="$ac_compile"
12641 case "(($ac_try" in
12642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12643 *) ac_try_echo=$ac_try;;
12644 esac
12645 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12646 (eval "$ac_compile") 2>conftest.er1
12647 ac_status=$?
12648 grep -v '^ *+' conftest.er1 >conftest.err
12649 rm -f conftest.er1
12650 cat conftest.err >&5
12651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12652 (exit $ac_status); } && {
12653 test -z "$ac_c_werror_flag" ||
12654 test ! -s conftest.err
12655 } && test -s conftest.$ac_objext; then
12656 ac_cv_type_uintptr_t=yes
12657 else
12658 echo "$as_me: failed program was:" >&5
12659 sed 's/^/| /' conftest.$ac_ext >&5
12661 ac_cv_type_uintptr_t=no
12664 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12666 { echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
12667 echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6; }
12669 # The cast to long int works around a bug in the HP C Compiler
12670 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12671 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12672 # This bug is HP SR number 8606223364.
12673 { echo "$as_me:$LINENO: checking size of uintptr_t" >&5
12674 echo $ECHO_N "checking size of uintptr_t... $ECHO_C" >&6; }
12675 if test "${ac_cv_sizeof_uintptr_t+set}" = set; then
12676 echo $ECHO_N "(cached) $ECHO_C" >&6
12677 else
12678 if test "$cross_compiling" = yes; then
12679 # Depending upon the size, compute the lo and hi bounds.
12680 cat >conftest.$ac_ext <<_ACEOF
12681 /* confdefs.h. */
12682 _ACEOF
12683 cat confdefs.h >>conftest.$ac_ext
12684 cat >>conftest.$ac_ext <<_ACEOF
12685 /* end confdefs.h. */
12686 $ac_includes_default
12687 typedef uintptr_t ac__type_sizeof_;
12689 main ()
12691 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
12692 test_array [0] = 0
12695 return 0;
12697 _ACEOF
12698 rm -f conftest.$ac_objext
12699 if { (ac_try="$ac_compile"
12700 case "(($ac_try" in
12701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12702 *) ac_try_echo=$ac_try;;
12703 esac
12704 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12705 (eval "$ac_compile") 2>conftest.er1
12706 ac_status=$?
12707 grep -v '^ *+' conftest.er1 >conftest.err
12708 rm -f conftest.er1
12709 cat conftest.err >&5
12710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12711 (exit $ac_status); } && {
12712 test -z "$ac_c_werror_flag" ||
12713 test ! -s conftest.err
12714 } && test -s conftest.$ac_objext; then
12715 ac_lo=0 ac_mid=0
12716 while :; do
12717 cat >conftest.$ac_ext <<_ACEOF
12718 /* confdefs.h. */
12719 _ACEOF
12720 cat confdefs.h >>conftest.$ac_ext
12721 cat >>conftest.$ac_ext <<_ACEOF
12722 /* end confdefs.h. */
12723 $ac_includes_default
12724 typedef uintptr_t ac__type_sizeof_;
12726 main ()
12728 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
12729 test_array [0] = 0
12732 return 0;
12734 _ACEOF
12735 rm -f conftest.$ac_objext
12736 if { (ac_try="$ac_compile"
12737 case "(($ac_try" in
12738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12739 *) ac_try_echo=$ac_try;;
12740 esac
12741 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12742 (eval "$ac_compile") 2>conftest.er1
12743 ac_status=$?
12744 grep -v '^ *+' conftest.er1 >conftest.err
12745 rm -f conftest.er1
12746 cat conftest.err >&5
12747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12748 (exit $ac_status); } && {
12749 test -z "$ac_c_werror_flag" ||
12750 test ! -s conftest.err
12751 } && test -s conftest.$ac_objext; then
12752 ac_hi=$ac_mid; break
12753 else
12754 echo "$as_me: failed program was:" >&5
12755 sed 's/^/| /' conftest.$ac_ext >&5
12757 ac_lo=`expr $ac_mid + 1`
12758 if test $ac_lo -le $ac_mid; then
12759 ac_lo= ac_hi=
12760 break
12762 ac_mid=`expr 2 '*' $ac_mid + 1`
12765 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12766 done
12767 else
12768 echo "$as_me: failed program was:" >&5
12769 sed 's/^/| /' conftest.$ac_ext >&5
12771 cat >conftest.$ac_ext <<_ACEOF
12772 /* confdefs.h. */
12773 _ACEOF
12774 cat confdefs.h >>conftest.$ac_ext
12775 cat >>conftest.$ac_ext <<_ACEOF
12776 /* end confdefs.h. */
12777 $ac_includes_default
12778 typedef uintptr_t ac__type_sizeof_;
12780 main ()
12782 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
12783 test_array [0] = 0
12786 return 0;
12788 _ACEOF
12789 rm -f conftest.$ac_objext
12790 if { (ac_try="$ac_compile"
12791 case "(($ac_try" in
12792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12793 *) ac_try_echo=$ac_try;;
12794 esac
12795 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12796 (eval "$ac_compile") 2>conftest.er1
12797 ac_status=$?
12798 grep -v '^ *+' conftest.er1 >conftest.err
12799 rm -f conftest.er1
12800 cat conftest.err >&5
12801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12802 (exit $ac_status); } && {
12803 test -z "$ac_c_werror_flag" ||
12804 test ! -s conftest.err
12805 } && test -s conftest.$ac_objext; then
12806 ac_hi=-1 ac_mid=-1
12807 while :; do
12808 cat >conftest.$ac_ext <<_ACEOF
12809 /* confdefs.h. */
12810 _ACEOF
12811 cat confdefs.h >>conftest.$ac_ext
12812 cat >>conftest.$ac_ext <<_ACEOF
12813 /* end confdefs.h. */
12814 $ac_includes_default
12815 typedef uintptr_t ac__type_sizeof_;
12817 main ()
12819 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
12820 test_array [0] = 0
12823 return 0;
12825 _ACEOF
12826 rm -f conftest.$ac_objext
12827 if { (ac_try="$ac_compile"
12828 case "(($ac_try" in
12829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12830 *) ac_try_echo=$ac_try;;
12831 esac
12832 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12833 (eval "$ac_compile") 2>conftest.er1
12834 ac_status=$?
12835 grep -v '^ *+' conftest.er1 >conftest.err
12836 rm -f conftest.er1
12837 cat conftest.err >&5
12838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12839 (exit $ac_status); } && {
12840 test -z "$ac_c_werror_flag" ||
12841 test ! -s conftest.err
12842 } && test -s conftest.$ac_objext; then
12843 ac_lo=$ac_mid; break
12844 else
12845 echo "$as_me: failed program was:" >&5
12846 sed 's/^/| /' conftest.$ac_ext >&5
12848 ac_hi=`expr '(' $ac_mid ')' - 1`
12849 if test $ac_mid -le $ac_hi; then
12850 ac_lo= ac_hi=
12851 break
12853 ac_mid=`expr 2 '*' $ac_mid`
12856 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12857 done
12858 else
12859 echo "$as_me: failed program was:" >&5
12860 sed 's/^/| /' conftest.$ac_ext >&5
12862 ac_lo= ac_hi=
12865 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12868 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12869 # Binary search between lo and hi bounds.
12870 while test "x$ac_lo" != "x$ac_hi"; do
12871 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12872 cat >conftest.$ac_ext <<_ACEOF
12873 /* confdefs.h. */
12874 _ACEOF
12875 cat confdefs.h >>conftest.$ac_ext
12876 cat >>conftest.$ac_ext <<_ACEOF
12877 /* end confdefs.h. */
12878 $ac_includes_default
12879 typedef uintptr_t ac__type_sizeof_;
12881 main ()
12883 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
12884 test_array [0] = 0
12887 return 0;
12889 _ACEOF
12890 rm -f conftest.$ac_objext
12891 if { (ac_try="$ac_compile"
12892 case "(($ac_try" in
12893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12894 *) ac_try_echo=$ac_try;;
12895 esac
12896 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12897 (eval "$ac_compile") 2>conftest.er1
12898 ac_status=$?
12899 grep -v '^ *+' conftest.er1 >conftest.err
12900 rm -f conftest.er1
12901 cat conftest.err >&5
12902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12903 (exit $ac_status); } && {
12904 test -z "$ac_c_werror_flag" ||
12905 test ! -s conftest.err
12906 } && test -s conftest.$ac_objext; then
12907 ac_hi=$ac_mid
12908 else
12909 echo "$as_me: failed program was:" >&5
12910 sed 's/^/| /' conftest.$ac_ext >&5
12912 ac_lo=`expr '(' $ac_mid ')' + 1`
12915 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12916 done
12917 case $ac_lo in
12918 ?*) ac_cv_sizeof_uintptr_t=$ac_lo;;
12919 '') if test "$ac_cv_type_uintptr_t" = yes; then
12920 { { echo "$as_me:$LINENO: error: cannot compute sizeof (uintptr_t)
12921 See \`config.log' for more details." >&5
12922 echo "$as_me: error: cannot compute sizeof (uintptr_t)
12923 See \`config.log' for more details." >&2;}
12924 { (exit 77); exit 77; }; }
12925 else
12926 ac_cv_sizeof_uintptr_t=0
12927 fi ;;
12928 esac
12929 else
12930 cat >conftest.$ac_ext <<_ACEOF
12931 /* confdefs.h. */
12932 _ACEOF
12933 cat confdefs.h >>conftest.$ac_ext
12934 cat >>conftest.$ac_ext <<_ACEOF
12935 /* end confdefs.h. */
12936 $ac_includes_default
12937 typedef uintptr_t ac__type_sizeof_;
12938 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
12939 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
12940 #include <stdio.h>
12941 #include <stdlib.h>
12943 main ()
12946 FILE *f = fopen ("conftest.val", "w");
12947 if (! f)
12948 return 1;
12949 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
12951 long int i = longval ();
12952 if (i != ((long int) (sizeof (ac__type_sizeof_))))
12953 return 1;
12954 fprintf (f, "%ld\n", i);
12956 else
12958 unsigned long int i = ulongval ();
12959 if (i != ((long int) (sizeof (ac__type_sizeof_))))
12960 return 1;
12961 fprintf (f, "%lu\n", i);
12963 return ferror (f) || fclose (f) != 0;
12966 return 0;
12968 _ACEOF
12969 rm -f conftest$ac_exeext
12970 if { (ac_try="$ac_link"
12971 case "(($ac_try" in
12972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12973 *) ac_try_echo=$ac_try;;
12974 esac
12975 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12976 (eval "$ac_link") 2>&5
12977 ac_status=$?
12978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12979 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12980 { (case "(($ac_try" in
12981 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12982 *) ac_try_echo=$ac_try;;
12983 esac
12984 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12985 (eval "$ac_try") 2>&5
12986 ac_status=$?
12987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12988 (exit $ac_status); }; }; then
12989 ac_cv_sizeof_uintptr_t=`cat conftest.val`
12990 else
12991 echo "$as_me: program exited with status $ac_status" >&5
12992 echo "$as_me: failed program was:" >&5
12993 sed 's/^/| /' conftest.$ac_ext >&5
12995 ( exit $ac_status )
12996 if test "$ac_cv_type_uintptr_t" = yes; then
12997 { { echo "$as_me:$LINENO: error: cannot compute sizeof (uintptr_t)
12998 See \`config.log' for more details." >&5
12999 echo "$as_me: error: cannot compute sizeof (uintptr_t)
13000 See \`config.log' for more details." >&2;}
13001 { (exit 77); exit 77; }; }
13002 else
13003 ac_cv_sizeof_uintptr_t=0
13006 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13008 rm -f conftest.val
13010 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_uintptr_t" >&5
13011 echo "${ECHO_T}$ac_cv_sizeof_uintptr_t" >&6; }
13015 cat >>confdefs.h <<_ACEOF
13016 #define SIZEOF_UINTPTR_T $ac_cv_sizeof_uintptr_t
13017 _ACEOF
13023 { echo "$as_me:$LINENO: checking for off_t" >&5
13024 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
13025 if test "${ac_cv_type_off_t+set}" = set; then
13026 echo $ECHO_N "(cached) $ECHO_C" >&6
13027 else
13028 cat >conftest.$ac_ext <<_ACEOF
13029 /* confdefs.h. */
13030 _ACEOF
13031 cat confdefs.h >>conftest.$ac_ext
13032 cat >>conftest.$ac_ext <<_ACEOF
13033 /* end confdefs.h. */
13035 #ifdef HAVE_SYS_TYPES_H
13036 #include <sys/types.h>
13037 #endif
13040 typedef off_t ac__type_new_;
13042 main ()
13044 if ((ac__type_new_ *) 0)
13045 return 0;
13046 if (sizeof (ac__type_new_))
13047 return 0;
13049 return 0;
13051 _ACEOF
13052 rm -f conftest.$ac_objext
13053 if { (ac_try="$ac_compile"
13054 case "(($ac_try" in
13055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13056 *) ac_try_echo=$ac_try;;
13057 esac
13058 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13059 (eval "$ac_compile") 2>conftest.er1
13060 ac_status=$?
13061 grep -v '^ *+' conftest.er1 >conftest.err
13062 rm -f conftest.er1
13063 cat conftest.err >&5
13064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13065 (exit $ac_status); } && {
13066 test -z "$ac_c_werror_flag" ||
13067 test ! -s conftest.err
13068 } && test -s conftest.$ac_objext; then
13069 ac_cv_type_off_t=yes
13070 else
13071 echo "$as_me: failed program was:" >&5
13072 sed 's/^/| /' conftest.$ac_ext >&5
13074 ac_cv_type_off_t=no
13077 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13079 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
13080 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
13082 # The cast to long int works around a bug in the HP C Compiler
13083 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13084 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13085 # This bug is HP SR number 8606223364.
13086 { echo "$as_me:$LINENO: checking size of off_t" >&5
13087 echo $ECHO_N "checking size of off_t... $ECHO_C" >&6; }
13088 if test "${ac_cv_sizeof_off_t+set}" = set; then
13089 echo $ECHO_N "(cached) $ECHO_C" >&6
13090 else
13091 if test "$cross_compiling" = yes; then
13092 # Depending upon the size, compute the lo and hi bounds.
13093 cat >conftest.$ac_ext <<_ACEOF
13094 /* confdefs.h. */
13095 _ACEOF
13096 cat confdefs.h >>conftest.$ac_ext
13097 cat >>conftest.$ac_ext <<_ACEOF
13098 /* end confdefs.h. */
13100 #ifdef HAVE_SYS_TYPES_H
13101 #include <sys/types.h>
13102 #endif
13105 typedef off_t ac__type_sizeof_;
13107 main ()
13109 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
13110 test_array [0] = 0
13113 return 0;
13115 _ACEOF
13116 rm -f conftest.$ac_objext
13117 if { (ac_try="$ac_compile"
13118 case "(($ac_try" in
13119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13120 *) ac_try_echo=$ac_try;;
13121 esac
13122 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13123 (eval "$ac_compile") 2>conftest.er1
13124 ac_status=$?
13125 grep -v '^ *+' conftest.er1 >conftest.err
13126 rm -f conftest.er1
13127 cat conftest.err >&5
13128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13129 (exit $ac_status); } && {
13130 test -z "$ac_c_werror_flag" ||
13131 test ! -s conftest.err
13132 } && test -s conftest.$ac_objext; then
13133 ac_lo=0 ac_mid=0
13134 while :; do
13135 cat >conftest.$ac_ext <<_ACEOF
13136 /* confdefs.h. */
13137 _ACEOF
13138 cat confdefs.h >>conftest.$ac_ext
13139 cat >>conftest.$ac_ext <<_ACEOF
13140 /* end confdefs.h. */
13142 #ifdef HAVE_SYS_TYPES_H
13143 #include <sys/types.h>
13144 #endif
13147 typedef off_t ac__type_sizeof_;
13149 main ()
13151 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
13152 test_array [0] = 0
13155 return 0;
13157 _ACEOF
13158 rm -f conftest.$ac_objext
13159 if { (ac_try="$ac_compile"
13160 case "(($ac_try" in
13161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13162 *) ac_try_echo=$ac_try;;
13163 esac
13164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13165 (eval "$ac_compile") 2>conftest.er1
13166 ac_status=$?
13167 grep -v '^ *+' conftest.er1 >conftest.err
13168 rm -f conftest.er1
13169 cat conftest.err >&5
13170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13171 (exit $ac_status); } && {
13172 test -z "$ac_c_werror_flag" ||
13173 test ! -s conftest.err
13174 } && test -s conftest.$ac_objext; then
13175 ac_hi=$ac_mid; break
13176 else
13177 echo "$as_me: failed program was:" >&5
13178 sed 's/^/| /' conftest.$ac_ext >&5
13180 ac_lo=`expr $ac_mid + 1`
13181 if test $ac_lo -le $ac_mid; then
13182 ac_lo= ac_hi=
13183 break
13185 ac_mid=`expr 2 '*' $ac_mid + 1`
13188 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13189 done
13190 else
13191 echo "$as_me: failed program was:" >&5
13192 sed 's/^/| /' conftest.$ac_ext >&5
13194 cat >conftest.$ac_ext <<_ACEOF
13195 /* confdefs.h. */
13196 _ACEOF
13197 cat confdefs.h >>conftest.$ac_ext
13198 cat >>conftest.$ac_ext <<_ACEOF
13199 /* end confdefs.h. */
13201 #ifdef HAVE_SYS_TYPES_H
13202 #include <sys/types.h>
13203 #endif
13206 typedef off_t ac__type_sizeof_;
13208 main ()
13210 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
13211 test_array [0] = 0
13214 return 0;
13216 _ACEOF
13217 rm -f conftest.$ac_objext
13218 if { (ac_try="$ac_compile"
13219 case "(($ac_try" in
13220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13221 *) ac_try_echo=$ac_try;;
13222 esac
13223 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13224 (eval "$ac_compile") 2>conftest.er1
13225 ac_status=$?
13226 grep -v '^ *+' conftest.er1 >conftest.err
13227 rm -f conftest.er1
13228 cat conftest.err >&5
13229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13230 (exit $ac_status); } && {
13231 test -z "$ac_c_werror_flag" ||
13232 test ! -s conftest.err
13233 } && test -s conftest.$ac_objext; then
13234 ac_hi=-1 ac_mid=-1
13235 while :; do
13236 cat >conftest.$ac_ext <<_ACEOF
13237 /* confdefs.h. */
13238 _ACEOF
13239 cat confdefs.h >>conftest.$ac_ext
13240 cat >>conftest.$ac_ext <<_ACEOF
13241 /* end confdefs.h. */
13243 #ifdef HAVE_SYS_TYPES_H
13244 #include <sys/types.h>
13245 #endif
13248 typedef off_t ac__type_sizeof_;
13250 main ()
13252 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
13253 test_array [0] = 0
13256 return 0;
13258 _ACEOF
13259 rm -f conftest.$ac_objext
13260 if { (ac_try="$ac_compile"
13261 case "(($ac_try" in
13262 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13263 *) ac_try_echo=$ac_try;;
13264 esac
13265 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13266 (eval "$ac_compile") 2>conftest.er1
13267 ac_status=$?
13268 grep -v '^ *+' conftest.er1 >conftest.err
13269 rm -f conftest.er1
13270 cat conftest.err >&5
13271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13272 (exit $ac_status); } && {
13273 test -z "$ac_c_werror_flag" ||
13274 test ! -s conftest.err
13275 } && test -s conftest.$ac_objext; then
13276 ac_lo=$ac_mid; break
13277 else
13278 echo "$as_me: failed program was:" >&5
13279 sed 's/^/| /' conftest.$ac_ext >&5
13281 ac_hi=`expr '(' $ac_mid ')' - 1`
13282 if test $ac_mid -le $ac_hi; then
13283 ac_lo= ac_hi=
13284 break
13286 ac_mid=`expr 2 '*' $ac_mid`
13289 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13290 done
13291 else
13292 echo "$as_me: failed program was:" >&5
13293 sed 's/^/| /' conftest.$ac_ext >&5
13295 ac_lo= ac_hi=
13298 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13301 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13302 # Binary search between lo and hi bounds.
13303 while test "x$ac_lo" != "x$ac_hi"; do
13304 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13305 cat >conftest.$ac_ext <<_ACEOF
13306 /* confdefs.h. */
13307 _ACEOF
13308 cat confdefs.h >>conftest.$ac_ext
13309 cat >>conftest.$ac_ext <<_ACEOF
13310 /* end confdefs.h. */
13312 #ifdef HAVE_SYS_TYPES_H
13313 #include <sys/types.h>
13314 #endif
13317 typedef off_t ac__type_sizeof_;
13319 main ()
13321 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
13322 test_array [0] = 0
13325 return 0;
13327 _ACEOF
13328 rm -f conftest.$ac_objext
13329 if { (ac_try="$ac_compile"
13330 case "(($ac_try" in
13331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13332 *) ac_try_echo=$ac_try;;
13333 esac
13334 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13335 (eval "$ac_compile") 2>conftest.er1
13336 ac_status=$?
13337 grep -v '^ *+' conftest.er1 >conftest.err
13338 rm -f conftest.er1
13339 cat conftest.err >&5
13340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13341 (exit $ac_status); } && {
13342 test -z "$ac_c_werror_flag" ||
13343 test ! -s conftest.err
13344 } && test -s conftest.$ac_objext; then
13345 ac_hi=$ac_mid
13346 else
13347 echo "$as_me: failed program was:" >&5
13348 sed 's/^/| /' conftest.$ac_ext >&5
13350 ac_lo=`expr '(' $ac_mid ')' + 1`
13353 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13354 done
13355 case $ac_lo in
13356 ?*) ac_cv_sizeof_off_t=$ac_lo;;
13357 '') if test "$ac_cv_type_off_t" = yes; then
13358 { { echo "$as_me:$LINENO: error: cannot compute sizeof (off_t)
13359 See \`config.log' for more details." >&5
13360 echo "$as_me: error: cannot compute sizeof (off_t)
13361 See \`config.log' for more details." >&2;}
13362 { (exit 77); exit 77; }; }
13363 else
13364 ac_cv_sizeof_off_t=0
13365 fi ;;
13366 esac
13367 else
13368 cat >conftest.$ac_ext <<_ACEOF
13369 /* confdefs.h. */
13370 _ACEOF
13371 cat confdefs.h >>conftest.$ac_ext
13372 cat >>conftest.$ac_ext <<_ACEOF
13373 /* end confdefs.h. */
13375 #ifdef HAVE_SYS_TYPES_H
13376 #include <sys/types.h>
13377 #endif
13380 typedef off_t ac__type_sizeof_;
13381 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
13382 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
13383 #include <stdio.h>
13384 #include <stdlib.h>
13386 main ()
13389 FILE *f = fopen ("conftest.val", "w");
13390 if (! f)
13391 return 1;
13392 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
13394 long int i = longval ();
13395 if (i != ((long int) (sizeof (ac__type_sizeof_))))
13396 return 1;
13397 fprintf (f, "%ld\n", i);
13399 else
13401 unsigned long int i = ulongval ();
13402 if (i != ((long int) (sizeof (ac__type_sizeof_))))
13403 return 1;
13404 fprintf (f, "%lu\n", i);
13406 return ferror (f) || fclose (f) != 0;
13409 return 0;
13411 _ACEOF
13412 rm -f conftest$ac_exeext
13413 if { (ac_try="$ac_link"
13414 case "(($ac_try" in
13415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13416 *) ac_try_echo=$ac_try;;
13417 esac
13418 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13419 (eval "$ac_link") 2>&5
13420 ac_status=$?
13421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13422 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13423 { (case "(($ac_try" in
13424 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13425 *) ac_try_echo=$ac_try;;
13426 esac
13427 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13428 (eval "$ac_try") 2>&5
13429 ac_status=$?
13430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13431 (exit $ac_status); }; }; then
13432 ac_cv_sizeof_off_t=`cat conftest.val`
13433 else
13434 echo "$as_me: program exited with status $ac_status" >&5
13435 echo "$as_me: failed program was:" >&5
13436 sed 's/^/| /' conftest.$ac_ext >&5
13438 ( exit $ac_status )
13439 if test "$ac_cv_type_off_t" = yes; then
13440 { { echo "$as_me:$LINENO: error: cannot compute sizeof (off_t)
13441 See \`config.log' for more details." >&5
13442 echo "$as_me: error: cannot compute sizeof (off_t)
13443 See \`config.log' for more details." >&2;}
13444 { (exit 77); exit 77; }; }
13445 else
13446 ac_cv_sizeof_off_t=0
13449 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13451 rm -f conftest.val
13453 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_off_t" >&5
13454 echo "${ECHO_T}$ac_cv_sizeof_off_t" >&6; }
13458 cat >>confdefs.h <<_ACEOF
13459 #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
13460 _ACEOF
13464 { echo "$as_me:$LINENO: checking whether to enable large file support" >&5
13465 echo $ECHO_N "checking whether to enable large file support... $ECHO_C" >&6; }
13466 if test "$have_long_long" = yes -a \
13467 "$ac_cv_sizeof_off_t" -gt "$ac_cv_sizeof_long" -a \
13468 "$ac_cv_sizeof_long_long" -ge "$ac_cv_sizeof_off_t"; then
13470 cat >>confdefs.h <<\_ACEOF
13471 #define HAVE_LARGEFILE_SUPPORT 1
13472 _ACEOF
13474 { echo "$as_me:$LINENO: result: yes" >&5
13475 echo "${ECHO_T}yes" >&6; }
13476 else
13477 { echo "$as_me:$LINENO: result: no" >&5
13478 echo "${ECHO_T}no" >&6; }
13481 { echo "$as_me:$LINENO: checking for time_t" >&5
13482 echo $ECHO_N "checking for time_t... $ECHO_C" >&6; }
13483 if test "${ac_cv_type_time_t+set}" = set; then
13484 echo $ECHO_N "(cached) $ECHO_C" >&6
13485 else
13486 cat >conftest.$ac_ext <<_ACEOF
13487 /* confdefs.h. */
13488 _ACEOF
13489 cat confdefs.h >>conftest.$ac_ext
13490 cat >>conftest.$ac_ext <<_ACEOF
13491 /* end confdefs.h. */
13493 #ifdef HAVE_SYS_TYPES_H
13494 #include <sys/types.h>
13495 #endif
13496 #ifdef HAVE_TIME_H
13497 #include <time.h>
13498 #endif
13501 typedef time_t ac__type_new_;
13503 main ()
13505 if ((ac__type_new_ *) 0)
13506 return 0;
13507 if (sizeof (ac__type_new_))
13508 return 0;
13510 return 0;
13512 _ACEOF
13513 rm -f conftest.$ac_objext
13514 if { (ac_try="$ac_compile"
13515 case "(($ac_try" in
13516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13517 *) ac_try_echo=$ac_try;;
13518 esac
13519 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13520 (eval "$ac_compile") 2>conftest.er1
13521 ac_status=$?
13522 grep -v '^ *+' conftest.er1 >conftest.err
13523 rm -f conftest.er1
13524 cat conftest.err >&5
13525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13526 (exit $ac_status); } && {
13527 test -z "$ac_c_werror_flag" ||
13528 test ! -s conftest.err
13529 } && test -s conftest.$ac_objext; then
13530 ac_cv_type_time_t=yes
13531 else
13532 echo "$as_me: failed program was:" >&5
13533 sed 's/^/| /' conftest.$ac_ext >&5
13535 ac_cv_type_time_t=no
13538 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13540 { echo "$as_me:$LINENO: result: $ac_cv_type_time_t" >&5
13541 echo "${ECHO_T}$ac_cv_type_time_t" >&6; }
13543 # The cast to long int works around a bug in the HP C Compiler
13544 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13545 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13546 # This bug is HP SR number 8606223364.
13547 { echo "$as_me:$LINENO: checking size of time_t" >&5
13548 echo $ECHO_N "checking size of time_t... $ECHO_C" >&6; }
13549 if test "${ac_cv_sizeof_time_t+set}" = set; then
13550 echo $ECHO_N "(cached) $ECHO_C" >&6
13551 else
13552 if test "$cross_compiling" = yes; then
13553 # Depending upon the size, compute the lo and hi bounds.
13554 cat >conftest.$ac_ext <<_ACEOF
13555 /* confdefs.h. */
13556 _ACEOF
13557 cat confdefs.h >>conftest.$ac_ext
13558 cat >>conftest.$ac_ext <<_ACEOF
13559 /* end confdefs.h. */
13561 #ifdef HAVE_SYS_TYPES_H
13562 #include <sys/types.h>
13563 #endif
13564 #ifdef HAVE_TIME_H
13565 #include <time.h>
13566 #endif
13569 typedef time_t ac__type_sizeof_;
13571 main ()
13573 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
13574 test_array [0] = 0
13577 return 0;
13579 _ACEOF
13580 rm -f conftest.$ac_objext
13581 if { (ac_try="$ac_compile"
13582 case "(($ac_try" in
13583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13584 *) ac_try_echo=$ac_try;;
13585 esac
13586 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13587 (eval "$ac_compile") 2>conftest.er1
13588 ac_status=$?
13589 grep -v '^ *+' conftest.er1 >conftest.err
13590 rm -f conftest.er1
13591 cat conftest.err >&5
13592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13593 (exit $ac_status); } && {
13594 test -z "$ac_c_werror_flag" ||
13595 test ! -s conftest.err
13596 } && test -s conftest.$ac_objext; then
13597 ac_lo=0 ac_mid=0
13598 while :; do
13599 cat >conftest.$ac_ext <<_ACEOF
13600 /* confdefs.h. */
13601 _ACEOF
13602 cat confdefs.h >>conftest.$ac_ext
13603 cat >>conftest.$ac_ext <<_ACEOF
13604 /* end confdefs.h. */
13606 #ifdef HAVE_SYS_TYPES_H
13607 #include <sys/types.h>
13608 #endif
13609 #ifdef HAVE_TIME_H
13610 #include <time.h>
13611 #endif
13614 typedef time_t ac__type_sizeof_;
13616 main ()
13618 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
13619 test_array [0] = 0
13622 return 0;
13624 _ACEOF
13625 rm -f conftest.$ac_objext
13626 if { (ac_try="$ac_compile"
13627 case "(($ac_try" in
13628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13629 *) ac_try_echo=$ac_try;;
13630 esac
13631 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13632 (eval "$ac_compile") 2>conftest.er1
13633 ac_status=$?
13634 grep -v '^ *+' conftest.er1 >conftest.err
13635 rm -f conftest.er1
13636 cat conftest.err >&5
13637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13638 (exit $ac_status); } && {
13639 test -z "$ac_c_werror_flag" ||
13640 test ! -s conftest.err
13641 } && test -s conftest.$ac_objext; then
13642 ac_hi=$ac_mid; break
13643 else
13644 echo "$as_me: failed program was:" >&5
13645 sed 's/^/| /' conftest.$ac_ext >&5
13647 ac_lo=`expr $ac_mid + 1`
13648 if test $ac_lo -le $ac_mid; then
13649 ac_lo= ac_hi=
13650 break
13652 ac_mid=`expr 2 '*' $ac_mid + 1`
13655 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13656 done
13657 else
13658 echo "$as_me: failed program was:" >&5
13659 sed 's/^/| /' conftest.$ac_ext >&5
13661 cat >conftest.$ac_ext <<_ACEOF
13662 /* confdefs.h. */
13663 _ACEOF
13664 cat confdefs.h >>conftest.$ac_ext
13665 cat >>conftest.$ac_ext <<_ACEOF
13666 /* end confdefs.h. */
13668 #ifdef HAVE_SYS_TYPES_H
13669 #include <sys/types.h>
13670 #endif
13671 #ifdef HAVE_TIME_H
13672 #include <time.h>
13673 #endif
13676 typedef time_t ac__type_sizeof_;
13678 main ()
13680 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
13681 test_array [0] = 0
13684 return 0;
13686 _ACEOF
13687 rm -f conftest.$ac_objext
13688 if { (ac_try="$ac_compile"
13689 case "(($ac_try" in
13690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13691 *) ac_try_echo=$ac_try;;
13692 esac
13693 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13694 (eval "$ac_compile") 2>conftest.er1
13695 ac_status=$?
13696 grep -v '^ *+' conftest.er1 >conftest.err
13697 rm -f conftest.er1
13698 cat conftest.err >&5
13699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13700 (exit $ac_status); } && {
13701 test -z "$ac_c_werror_flag" ||
13702 test ! -s conftest.err
13703 } && test -s conftest.$ac_objext; then
13704 ac_hi=-1 ac_mid=-1
13705 while :; do
13706 cat >conftest.$ac_ext <<_ACEOF
13707 /* confdefs.h. */
13708 _ACEOF
13709 cat confdefs.h >>conftest.$ac_ext
13710 cat >>conftest.$ac_ext <<_ACEOF
13711 /* end confdefs.h. */
13713 #ifdef HAVE_SYS_TYPES_H
13714 #include <sys/types.h>
13715 #endif
13716 #ifdef HAVE_TIME_H
13717 #include <time.h>
13718 #endif
13721 typedef time_t ac__type_sizeof_;
13723 main ()
13725 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
13726 test_array [0] = 0
13729 return 0;
13731 _ACEOF
13732 rm -f conftest.$ac_objext
13733 if { (ac_try="$ac_compile"
13734 case "(($ac_try" in
13735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13736 *) ac_try_echo=$ac_try;;
13737 esac
13738 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13739 (eval "$ac_compile") 2>conftest.er1
13740 ac_status=$?
13741 grep -v '^ *+' conftest.er1 >conftest.err
13742 rm -f conftest.er1
13743 cat conftest.err >&5
13744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13745 (exit $ac_status); } && {
13746 test -z "$ac_c_werror_flag" ||
13747 test ! -s conftest.err
13748 } && test -s conftest.$ac_objext; then
13749 ac_lo=$ac_mid; break
13750 else
13751 echo "$as_me: failed program was:" >&5
13752 sed 's/^/| /' conftest.$ac_ext >&5
13754 ac_hi=`expr '(' $ac_mid ')' - 1`
13755 if test $ac_mid -le $ac_hi; then
13756 ac_lo= ac_hi=
13757 break
13759 ac_mid=`expr 2 '*' $ac_mid`
13762 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13763 done
13764 else
13765 echo "$as_me: failed program was:" >&5
13766 sed 's/^/| /' conftest.$ac_ext >&5
13768 ac_lo= ac_hi=
13771 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13774 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13775 # Binary search between lo and hi bounds.
13776 while test "x$ac_lo" != "x$ac_hi"; do
13777 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13778 cat >conftest.$ac_ext <<_ACEOF
13779 /* confdefs.h. */
13780 _ACEOF
13781 cat confdefs.h >>conftest.$ac_ext
13782 cat >>conftest.$ac_ext <<_ACEOF
13783 /* end confdefs.h. */
13785 #ifdef HAVE_SYS_TYPES_H
13786 #include <sys/types.h>
13787 #endif
13788 #ifdef HAVE_TIME_H
13789 #include <time.h>
13790 #endif
13793 typedef time_t ac__type_sizeof_;
13795 main ()
13797 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
13798 test_array [0] = 0
13801 return 0;
13803 _ACEOF
13804 rm -f conftest.$ac_objext
13805 if { (ac_try="$ac_compile"
13806 case "(($ac_try" in
13807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13808 *) ac_try_echo=$ac_try;;
13809 esac
13810 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13811 (eval "$ac_compile") 2>conftest.er1
13812 ac_status=$?
13813 grep -v '^ *+' conftest.er1 >conftest.err
13814 rm -f conftest.er1
13815 cat conftest.err >&5
13816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13817 (exit $ac_status); } && {
13818 test -z "$ac_c_werror_flag" ||
13819 test ! -s conftest.err
13820 } && test -s conftest.$ac_objext; then
13821 ac_hi=$ac_mid
13822 else
13823 echo "$as_me: failed program was:" >&5
13824 sed 's/^/| /' conftest.$ac_ext >&5
13826 ac_lo=`expr '(' $ac_mid ')' + 1`
13829 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13830 done
13831 case $ac_lo in
13832 ?*) ac_cv_sizeof_time_t=$ac_lo;;
13833 '') if test "$ac_cv_type_time_t" = yes; then
13834 { { echo "$as_me:$LINENO: error: cannot compute sizeof (time_t)
13835 See \`config.log' for more details." >&5
13836 echo "$as_me: error: cannot compute sizeof (time_t)
13837 See \`config.log' for more details." >&2;}
13838 { (exit 77); exit 77; }; }
13839 else
13840 ac_cv_sizeof_time_t=0
13841 fi ;;
13842 esac
13843 else
13844 cat >conftest.$ac_ext <<_ACEOF
13845 /* confdefs.h. */
13846 _ACEOF
13847 cat confdefs.h >>conftest.$ac_ext
13848 cat >>conftest.$ac_ext <<_ACEOF
13849 /* end confdefs.h. */
13851 #ifdef HAVE_SYS_TYPES_H
13852 #include <sys/types.h>
13853 #endif
13854 #ifdef HAVE_TIME_H
13855 #include <time.h>
13856 #endif
13859 typedef time_t ac__type_sizeof_;
13860 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
13861 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
13862 #include <stdio.h>
13863 #include <stdlib.h>
13865 main ()
13868 FILE *f = fopen ("conftest.val", "w");
13869 if (! f)
13870 return 1;
13871 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
13873 long int i = longval ();
13874 if (i != ((long int) (sizeof (ac__type_sizeof_))))
13875 return 1;
13876 fprintf (f, "%ld\n", i);
13878 else
13880 unsigned long int i = ulongval ();
13881 if (i != ((long int) (sizeof (ac__type_sizeof_))))
13882 return 1;
13883 fprintf (f, "%lu\n", i);
13885 return ferror (f) || fclose (f) != 0;
13888 return 0;
13890 _ACEOF
13891 rm -f conftest$ac_exeext
13892 if { (ac_try="$ac_link"
13893 case "(($ac_try" in
13894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13895 *) ac_try_echo=$ac_try;;
13896 esac
13897 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13898 (eval "$ac_link") 2>&5
13899 ac_status=$?
13900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13901 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13902 { (case "(($ac_try" in
13903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13904 *) ac_try_echo=$ac_try;;
13905 esac
13906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13907 (eval "$ac_try") 2>&5
13908 ac_status=$?
13909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13910 (exit $ac_status); }; }; then
13911 ac_cv_sizeof_time_t=`cat conftest.val`
13912 else
13913 echo "$as_me: program exited with status $ac_status" >&5
13914 echo "$as_me: failed program was:" >&5
13915 sed 's/^/| /' conftest.$ac_ext >&5
13917 ( exit $ac_status )
13918 if test "$ac_cv_type_time_t" = yes; then
13919 { { echo "$as_me:$LINENO: error: cannot compute sizeof (time_t)
13920 See \`config.log' for more details." >&5
13921 echo "$as_me: error: cannot compute sizeof (time_t)
13922 See \`config.log' for more details." >&2;}
13923 { (exit 77); exit 77; }; }
13924 else
13925 ac_cv_sizeof_time_t=0
13928 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13930 rm -f conftest.val
13932 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_time_t" >&5
13933 echo "${ECHO_T}$ac_cv_sizeof_time_t" >&6; }
13937 cat >>confdefs.h <<_ACEOF
13938 #define SIZEOF_TIME_T $ac_cv_sizeof_time_t
13939 _ACEOF
13943 # if have pthread_t then define SIZEOF_PTHREAD_T
13944 ac_save_cc="$CC"
13945 if test "$ac_cv_kpthread" = "yes"
13946 then CC="$CC -Kpthread"
13947 elif test "$ac_cv_kthread" = "yes"
13948 then CC="$CC -Kthread"
13949 elif test "$ac_cv_pthread" = "yes"
13950 then CC="$CC -pthread"
13952 { echo "$as_me:$LINENO: checking for pthread_t" >&5
13953 echo $ECHO_N "checking for pthread_t... $ECHO_C" >&6; }
13954 have_pthread_t=no
13955 cat >conftest.$ac_ext <<_ACEOF
13956 /* confdefs.h. */
13957 _ACEOF
13958 cat confdefs.h >>conftest.$ac_ext
13959 cat >>conftest.$ac_ext <<_ACEOF
13960 /* end confdefs.h. */
13961 #include <pthread.h>
13963 main ()
13965 pthread_t x; x = *(pthread_t*)0;
13967 return 0;
13969 _ACEOF
13970 rm -f conftest.$ac_objext
13971 if { (ac_try="$ac_compile"
13972 case "(($ac_try" in
13973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13974 *) ac_try_echo=$ac_try;;
13975 esac
13976 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13977 (eval "$ac_compile") 2>conftest.er1
13978 ac_status=$?
13979 grep -v '^ *+' conftest.er1 >conftest.err
13980 rm -f conftest.er1
13981 cat conftest.err >&5
13982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13983 (exit $ac_status); } && {
13984 test -z "$ac_c_werror_flag" ||
13985 test ! -s conftest.err
13986 } && test -s conftest.$ac_objext; then
13987 have_pthread_t=yes
13988 else
13989 echo "$as_me: failed program was:" >&5
13990 sed 's/^/| /' conftest.$ac_ext >&5
13995 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13996 { echo "$as_me:$LINENO: result: $have_pthread_t" >&5
13997 echo "${ECHO_T}$have_pthread_t" >&6; }
13998 if test "$have_pthread_t" = yes ; then
13999 { echo "$as_me:$LINENO: checking for pthread_t" >&5
14000 echo $ECHO_N "checking for pthread_t... $ECHO_C" >&6; }
14001 if test "${ac_cv_type_pthread_t+set}" = set; then
14002 echo $ECHO_N "(cached) $ECHO_C" >&6
14003 else
14004 cat >conftest.$ac_ext <<_ACEOF
14005 /* confdefs.h. */
14006 _ACEOF
14007 cat confdefs.h >>conftest.$ac_ext
14008 cat >>conftest.$ac_ext <<_ACEOF
14009 /* end confdefs.h. */
14011 #ifdef HAVE_PTHREAD_H
14012 #include <pthread.h>
14013 #endif
14016 typedef pthread_t ac__type_new_;
14018 main ()
14020 if ((ac__type_new_ *) 0)
14021 return 0;
14022 if (sizeof (ac__type_new_))
14023 return 0;
14025 return 0;
14027 _ACEOF
14028 rm -f conftest.$ac_objext
14029 if { (ac_try="$ac_compile"
14030 case "(($ac_try" in
14031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14032 *) ac_try_echo=$ac_try;;
14033 esac
14034 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14035 (eval "$ac_compile") 2>conftest.er1
14036 ac_status=$?
14037 grep -v '^ *+' conftest.er1 >conftest.err
14038 rm -f conftest.er1
14039 cat conftest.err >&5
14040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14041 (exit $ac_status); } && {
14042 test -z "$ac_c_werror_flag" ||
14043 test ! -s conftest.err
14044 } && test -s conftest.$ac_objext; then
14045 ac_cv_type_pthread_t=yes
14046 else
14047 echo "$as_me: failed program was:" >&5
14048 sed 's/^/| /' conftest.$ac_ext >&5
14050 ac_cv_type_pthread_t=no
14053 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14055 { echo "$as_me:$LINENO: result: $ac_cv_type_pthread_t" >&5
14056 echo "${ECHO_T}$ac_cv_type_pthread_t" >&6; }
14058 # The cast to long int works around a bug in the HP C Compiler
14059 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14060 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14061 # This bug is HP SR number 8606223364.
14062 { echo "$as_me:$LINENO: checking size of pthread_t" >&5
14063 echo $ECHO_N "checking size of pthread_t... $ECHO_C" >&6; }
14064 if test "${ac_cv_sizeof_pthread_t+set}" = set; then
14065 echo $ECHO_N "(cached) $ECHO_C" >&6
14066 else
14067 if test "$cross_compiling" = yes; then
14068 # Depending upon the size, compute the lo and hi bounds.
14069 cat >conftest.$ac_ext <<_ACEOF
14070 /* confdefs.h. */
14071 _ACEOF
14072 cat confdefs.h >>conftest.$ac_ext
14073 cat >>conftest.$ac_ext <<_ACEOF
14074 /* end confdefs.h. */
14076 #ifdef HAVE_PTHREAD_H
14077 #include <pthread.h>
14078 #endif
14081 typedef pthread_t ac__type_sizeof_;
14083 main ()
14085 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
14086 test_array [0] = 0
14089 return 0;
14091 _ACEOF
14092 rm -f conftest.$ac_objext
14093 if { (ac_try="$ac_compile"
14094 case "(($ac_try" in
14095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14096 *) ac_try_echo=$ac_try;;
14097 esac
14098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14099 (eval "$ac_compile") 2>conftest.er1
14100 ac_status=$?
14101 grep -v '^ *+' conftest.er1 >conftest.err
14102 rm -f conftest.er1
14103 cat conftest.err >&5
14104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14105 (exit $ac_status); } && {
14106 test -z "$ac_c_werror_flag" ||
14107 test ! -s conftest.err
14108 } && test -s conftest.$ac_objext; then
14109 ac_lo=0 ac_mid=0
14110 while :; do
14111 cat >conftest.$ac_ext <<_ACEOF
14112 /* confdefs.h. */
14113 _ACEOF
14114 cat confdefs.h >>conftest.$ac_ext
14115 cat >>conftest.$ac_ext <<_ACEOF
14116 /* end confdefs.h. */
14118 #ifdef HAVE_PTHREAD_H
14119 #include <pthread.h>
14120 #endif
14123 typedef pthread_t ac__type_sizeof_;
14125 main ()
14127 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
14128 test_array [0] = 0
14131 return 0;
14133 _ACEOF
14134 rm -f conftest.$ac_objext
14135 if { (ac_try="$ac_compile"
14136 case "(($ac_try" in
14137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14138 *) ac_try_echo=$ac_try;;
14139 esac
14140 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14141 (eval "$ac_compile") 2>conftest.er1
14142 ac_status=$?
14143 grep -v '^ *+' conftest.er1 >conftest.err
14144 rm -f conftest.er1
14145 cat conftest.err >&5
14146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14147 (exit $ac_status); } && {
14148 test -z "$ac_c_werror_flag" ||
14149 test ! -s conftest.err
14150 } && test -s conftest.$ac_objext; then
14151 ac_hi=$ac_mid; break
14152 else
14153 echo "$as_me: failed program was:" >&5
14154 sed 's/^/| /' conftest.$ac_ext >&5
14156 ac_lo=`expr $ac_mid + 1`
14157 if test $ac_lo -le $ac_mid; then
14158 ac_lo= ac_hi=
14159 break
14161 ac_mid=`expr 2 '*' $ac_mid + 1`
14164 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14165 done
14166 else
14167 echo "$as_me: failed program was:" >&5
14168 sed 's/^/| /' conftest.$ac_ext >&5
14170 cat >conftest.$ac_ext <<_ACEOF
14171 /* confdefs.h. */
14172 _ACEOF
14173 cat confdefs.h >>conftest.$ac_ext
14174 cat >>conftest.$ac_ext <<_ACEOF
14175 /* end confdefs.h. */
14177 #ifdef HAVE_PTHREAD_H
14178 #include <pthread.h>
14179 #endif
14182 typedef pthread_t ac__type_sizeof_;
14184 main ()
14186 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
14187 test_array [0] = 0
14190 return 0;
14192 _ACEOF
14193 rm -f conftest.$ac_objext
14194 if { (ac_try="$ac_compile"
14195 case "(($ac_try" in
14196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14197 *) ac_try_echo=$ac_try;;
14198 esac
14199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14200 (eval "$ac_compile") 2>conftest.er1
14201 ac_status=$?
14202 grep -v '^ *+' conftest.er1 >conftest.err
14203 rm -f conftest.er1
14204 cat conftest.err >&5
14205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14206 (exit $ac_status); } && {
14207 test -z "$ac_c_werror_flag" ||
14208 test ! -s conftest.err
14209 } && test -s conftest.$ac_objext; then
14210 ac_hi=-1 ac_mid=-1
14211 while :; do
14212 cat >conftest.$ac_ext <<_ACEOF
14213 /* confdefs.h. */
14214 _ACEOF
14215 cat confdefs.h >>conftest.$ac_ext
14216 cat >>conftest.$ac_ext <<_ACEOF
14217 /* end confdefs.h. */
14219 #ifdef HAVE_PTHREAD_H
14220 #include <pthread.h>
14221 #endif
14224 typedef pthread_t ac__type_sizeof_;
14226 main ()
14228 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
14229 test_array [0] = 0
14232 return 0;
14234 _ACEOF
14235 rm -f conftest.$ac_objext
14236 if { (ac_try="$ac_compile"
14237 case "(($ac_try" in
14238 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14239 *) ac_try_echo=$ac_try;;
14240 esac
14241 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14242 (eval "$ac_compile") 2>conftest.er1
14243 ac_status=$?
14244 grep -v '^ *+' conftest.er1 >conftest.err
14245 rm -f conftest.er1
14246 cat conftest.err >&5
14247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14248 (exit $ac_status); } && {
14249 test -z "$ac_c_werror_flag" ||
14250 test ! -s conftest.err
14251 } && test -s conftest.$ac_objext; then
14252 ac_lo=$ac_mid; break
14253 else
14254 echo "$as_me: failed program was:" >&5
14255 sed 's/^/| /' conftest.$ac_ext >&5
14257 ac_hi=`expr '(' $ac_mid ')' - 1`
14258 if test $ac_mid -le $ac_hi; then
14259 ac_lo= ac_hi=
14260 break
14262 ac_mid=`expr 2 '*' $ac_mid`
14265 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14266 done
14267 else
14268 echo "$as_me: failed program was:" >&5
14269 sed 's/^/| /' conftest.$ac_ext >&5
14271 ac_lo= ac_hi=
14274 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14277 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14278 # Binary search between lo and hi bounds.
14279 while test "x$ac_lo" != "x$ac_hi"; do
14280 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14281 cat >conftest.$ac_ext <<_ACEOF
14282 /* confdefs.h. */
14283 _ACEOF
14284 cat confdefs.h >>conftest.$ac_ext
14285 cat >>conftest.$ac_ext <<_ACEOF
14286 /* end confdefs.h. */
14288 #ifdef HAVE_PTHREAD_H
14289 #include <pthread.h>
14290 #endif
14293 typedef pthread_t ac__type_sizeof_;
14295 main ()
14297 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
14298 test_array [0] = 0
14301 return 0;
14303 _ACEOF
14304 rm -f conftest.$ac_objext
14305 if { (ac_try="$ac_compile"
14306 case "(($ac_try" in
14307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14308 *) ac_try_echo=$ac_try;;
14309 esac
14310 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14311 (eval "$ac_compile") 2>conftest.er1
14312 ac_status=$?
14313 grep -v '^ *+' conftest.er1 >conftest.err
14314 rm -f conftest.er1
14315 cat conftest.err >&5
14316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14317 (exit $ac_status); } && {
14318 test -z "$ac_c_werror_flag" ||
14319 test ! -s conftest.err
14320 } && test -s conftest.$ac_objext; then
14321 ac_hi=$ac_mid
14322 else
14323 echo "$as_me: failed program was:" >&5
14324 sed 's/^/| /' conftest.$ac_ext >&5
14326 ac_lo=`expr '(' $ac_mid ')' + 1`
14329 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14330 done
14331 case $ac_lo in
14332 ?*) ac_cv_sizeof_pthread_t=$ac_lo;;
14333 '') if test "$ac_cv_type_pthread_t" = yes; then
14334 { { echo "$as_me:$LINENO: error: cannot compute sizeof (pthread_t)
14335 See \`config.log' for more details." >&5
14336 echo "$as_me: error: cannot compute sizeof (pthread_t)
14337 See \`config.log' for more details." >&2;}
14338 { (exit 77); exit 77; }; }
14339 else
14340 ac_cv_sizeof_pthread_t=0
14341 fi ;;
14342 esac
14343 else
14344 cat >conftest.$ac_ext <<_ACEOF
14345 /* confdefs.h. */
14346 _ACEOF
14347 cat confdefs.h >>conftest.$ac_ext
14348 cat >>conftest.$ac_ext <<_ACEOF
14349 /* end confdefs.h. */
14351 #ifdef HAVE_PTHREAD_H
14352 #include <pthread.h>
14353 #endif
14356 typedef pthread_t ac__type_sizeof_;
14357 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
14358 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
14359 #include <stdio.h>
14360 #include <stdlib.h>
14362 main ()
14365 FILE *f = fopen ("conftest.val", "w");
14366 if (! f)
14367 return 1;
14368 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
14370 long int i = longval ();
14371 if (i != ((long int) (sizeof (ac__type_sizeof_))))
14372 return 1;
14373 fprintf (f, "%ld\n", i);
14375 else
14377 unsigned long int i = ulongval ();
14378 if (i != ((long int) (sizeof (ac__type_sizeof_))))
14379 return 1;
14380 fprintf (f, "%lu\n", i);
14382 return ferror (f) || fclose (f) != 0;
14385 return 0;
14387 _ACEOF
14388 rm -f conftest$ac_exeext
14389 if { (ac_try="$ac_link"
14390 case "(($ac_try" in
14391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14392 *) ac_try_echo=$ac_try;;
14393 esac
14394 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14395 (eval "$ac_link") 2>&5
14396 ac_status=$?
14397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14398 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14399 { (case "(($ac_try" in
14400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14401 *) ac_try_echo=$ac_try;;
14402 esac
14403 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14404 (eval "$ac_try") 2>&5
14405 ac_status=$?
14406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14407 (exit $ac_status); }; }; then
14408 ac_cv_sizeof_pthread_t=`cat conftest.val`
14409 else
14410 echo "$as_me: program exited with status $ac_status" >&5
14411 echo "$as_me: failed program was:" >&5
14412 sed 's/^/| /' conftest.$ac_ext >&5
14414 ( exit $ac_status )
14415 if test "$ac_cv_type_pthread_t" = yes; then
14416 { { echo "$as_me:$LINENO: error: cannot compute sizeof (pthread_t)
14417 See \`config.log' for more details." >&5
14418 echo "$as_me: error: cannot compute sizeof (pthread_t)
14419 See \`config.log' for more details." >&2;}
14420 { (exit 77); exit 77; }; }
14421 else
14422 ac_cv_sizeof_pthread_t=0
14425 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14427 rm -f conftest.val
14429 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_pthread_t" >&5
14430 echo "${ECHO_T}$ac_cv_sizeof_pthread_t" >&6; }
14434 cat >>confdefs.h <<_ACEOF
14435 #define SIZEOF_PTHREAD_T $ac_cv_sizeof_pthread_t
14436 _ACEOF
14440 CC="$ac_save_cc"
14442 { echo "$as_me:$LINENO: checking for --enable-toolbox-glue" >&5
14443 echo $ECHO_N "checking for --enable-toolbox-glue... $ECHO_C" >&6; }
14444 # Check whether --enable-toolbox-glue was given.
14445 if test "${enable_toolbox_glue+set}" = set; then
14446 enableval=$enable_toolbox_glue;
14450 if test -z "$enable_toolbox_glue"
14451 then
14452 case $ac_sys_system/$ac_sys_release in
14453 Darwin/*)
14454 enable_toolbox_glue="yes";;
14456 enable_toolbox_glue="no";;
14457 esac
14459 case "$enable_toolbox_glue" in
14460 yes)
14461 extra_machdep_objs="Python/mactoolboxglue.o"
14462 extra_undefs="-u _PyMac_Error"
14464 cat >>confdefs.h <<\_ACEOF
14465 #define USE_TOOLBOX_OBJECT_GLUE 1
14466 _ACEOF
14470 extra_machdep_objs=""
14471 extra_undefs=""
14473 esac
14474 { echo "$as_me:$LINENO: result: $enable_toolbox_glue" >&5
14475 echo "${ECHO_T}$enable_toolbox_glue" >&6; }
14479 case $ac_sys_system/$ac_sys_release in
14480 Darwin/[01567]\..*)
14481 OTHER_LIBTOOL_OPT="-prebind -seg1addr 0x10000000"
14483 Darwin/*)
14484 OTHER_LIBTOOL_OPT=""
14486 esac
14489 ARCH_RUN_32BIT=""
14491 case $ac_sys_system/$ac_sys_release in
14492 Darwin/[01567]\..*)
14493 LIBTOOL_CRUFT="-framework System -lcc_dynamic"
14494 if test "${enable_universalsdk}"; then
14496 else
14497 LIBTOOL_CRUFT="${LIBTOOL_CRUFT} -arch_only `arch`"
14499 LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -install_name $(PYTHONFRAMEWORKINSTALLDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
14500 LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -compatibility_version $(VERSION) -current_version $(VERSION)';;
14501 Darwin/*)
14502 gcc_version=`gcc -v 2>&1 | grep version | cut -d\ -f3`
14503 if test ${gcc_version} '<' 4.0
14504 then
14505 LIBTOOL_CRUFT="-lcc_dynamic"
14506 else
14507 LIBTOOL_CRUFT=""
14509 if test "$cross_compiling" = yes; then
14510 ac_osx_32bit=yes
14511 else
14512 cat >conftest.$ac_ext <<_ACEOF
14513 /* confdefs.h. */
14514 _ACEOF
14515 cat confdefs.h >>conftest.$ac_ext
14516 cat >>conftest.$ac_ext <<_ACEOF
14517 /* end confdefs.h. */
14519 #include <unistd.h>
14520 int main(int argc, char*argv[])
14522 if (sizeof(long) == 4) {
14523 return 0;
14524 } else {
14525 return 1;
14529 _ACEOF
14530 rm -f conftest$ac_exeext
14531 if { (ac_try="$ac_link"
14532 case "(($ac_try" in
14533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14534 *) ac_try_echo=$ac_try;;
14535 esac
14536 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14537 (eval "$ac_link") 2>&5
14538 ac_status=$?
14539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14540 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14541 { (case "(($ac_try" in
14542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14543 *) ac_try_echo=$ac_try;;
14544 esac
14545 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14546 (eval "$ac_try") 2>&5
14547 ac_status=$?
14548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14549 (exit $ac_status); }; }; then
14550 ac_osx_32bit=yes
14551 else
14552 echo "$as_me: program exited with status $ac_status" >&5
14553 echo "$as_me: failed program was:" >&5
14554 sed 's/^/| /' conftest.$ac_ext >&5
14556 ( exit $ac_status )
14557 ac_osx_32bit=no
14559 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14564 if test "${ac_osx_32bit}" = "yes"; then
14565 case `arch` in
14566 i386)
14567 MACOSX_DEFAULT_ARCH="i386"
14569 ppc)
14570 MACOSX_DEFAULT_ARCH="ppc"
14573 { { echo "$as_me:$LINENO: error: Unexpected output of 'arch' on OSX" >&5
14574 echo "$as_me: error: Unexpected output of 'arch' on OSX" >&2;}
14575 { (exit 1); exit 1; }; }
14577 esac
14578 else
14579 case `arch` in
14580 i386)
14581 MACOSX_DEFAULT_ARCH="x86_64"
14583 ppc)
14584 MACOSX_DEFAULT_ARCH="ppc64"
14587 { { echo "$as_me:$LINENO: error: Unexpected output of 'arch' on OSX" >&5
14588 echo "$as_me: error: Unexpected output of 'arch' on OSX" >&2;}
14589 { (exit 1); exit 1; }; }
14591 esac
14593 #ARCH_RUN_32BIT="true"
14596 LIBTOOL_CRUFT=$LIBTOOL_CRUFT" -lSystem -lSystemStubs -arch_only ${MACOSX_DEFAULT_ARCH}"
14597 LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -install_name $(PYTHONFRAMEWORKINSTALLDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
14598 LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -compatibility_version $(VERSION) -current_version $(VERSION)';;
14599 esac
14601 { echo "$as_me:$LINENO: checking for --enable-framework" >&5
14602 echo $ECHO_N "checking for --enable-framework... $ECHO_C" >&6; }
14603 if test "$enable_framework"
14604 then
14605 BASECFLAGS="$BASECFLAGS -fno-common -dynamic"
14606 # -F. is needed to allow linking to the framework while
14607 # in the build location.
14609 cat >>confdefs.h <<\_ACEOF
14610 #define WITH_NEXT_FRAMEWORK 1
14611 _ACEOF
14613 { echo "$as_me:$LINENO: result: yes" >&5
14614 echo "${ECHO_T}yes" >&6; }
14615 if test $enable_shared = "yes"
14616 then
14617 { { echo "$as_me:$LINENO: error: Specifying both --enable-shared and --enable-framework is not supported, use only --enable-framework instead. See Mac/README." >&5
14618 echo "$as_me: error: Specifying both --enable-shared and --enable-framework is not supported, use only --enable-framework instead. See Mac/README." >&2;}
14619 { (exit 1); exit 1; }; }
14621 else
14622 { echo "$as_me:$LINENO: result: no" >&5
14623 echo "${ECHO_T}no" >&6; }
14626 { echo "$as_me:$LINENO: checking for dyld" >&5
14627 echo $ECHO_N "checking for dyld... $ECHO_C" >&6; }
14628 case $ac_sys_system/$ac_sys_release in
14629 Darwin/*)
14631 cat >>confdefs.h <<\_ACEOF
14632 #define WITH_DYLD 1
14633 _ACEOF
14635 { echo "$as_me:$LINENO: result: always on for Darwin" >&5
14636 echo "${ECHO_T}always on for Darwin" >&6; }
14639 { echo "$as_me:$LINENO: result: no" >&5
14640 echo "${ECHO_T}no" >&6; }
14642 esac
14644 # Set info about shared libraries.
14650 # SO is the extension of shared libraries `(including the dot!)
14651 # -- usually .so, .sl on HP-UX, .dll on Cygwin
14652 { echo "$as_me:$LINENO: checking SO" >&5
14653 echo $ECHO_N "checking SO... $ECHO_C" >&6; }
14654 if test -z "$SO"
14655 then
14656 case $ac_sys_system in
14657 hp*|HP*)
14658 case `uname -m` in
14659 ia64) SO=.so;;
14660 *) SO=.sl;;
14661 esac
14663 CYGWIN*) SO=.dll;;
14664 *) SO=.so;;
14665 esac
14666 else
14667 # this might also be a termcap variable, see #610332
14668 echo
14669 echo '====================================================================='
14670 echo '+ +'
14671 echo '+ WARNING: You have set SO in your environment. +'
14672 echo '+ Do you really mean to change the extension for shared libraries? +'
14673 echo '+ Continuing in 10 seconds to let you to ponder. +'
14674 echo '+ +'
14675 echo '====================================================================='
14676 sleep 10
14678 { echo "$as_me:$LINENO: result: $SO" >&5
14679 echo "${ECHO_T}$SO" >&6; }
14682 cat >>confdefs.h <<_ACEOF
14683 #define SHLIB_EXT "$SO"
14684 _ACEOF
14686 # LDSHARED is the ld *command* used to create shared library
14687 # -- "cc -G" on SunOS 5.x, "ld -shared" on IRIX 5
14688 # (Shared libraries in this instance are shared modules to be loaded into
14689 # Python, as opposed to building Python itself as a shared library.)
14690 { echo "$as_me:$LINENO: checking LDSHARED" >&5
14691 echo $ECHO_N "checking LDSHARED... $ECHO_C" >&6; }
14692 if test -z "$LDSHARED"
14693 then
14694 case $ac_sys_system/$ac_sys_release in
14695 AIX*)
14696 BLDSHARED="\$(srcdir)/Modules/ld_so_aix \$(CC) -bI:Modules/python.exp"
14697 LDSHARED="\$(BINLIBDEST)/config/ld_so_aix \$(CC) -bI:\$(BINLIBDEST)/config/python.exp"
14699 BeOS*)
14700 BLDSHARED="\$(srcdir)/Modules/ld_so_beos $LDLIBRARY"
14701 LDSHARED="\$(BINLIBDEST)/config/ld_so_beos \$(LIBDIR)/$LDLIBRARY"
14703 IRIX/5*) LDSHARED="ld -shared";;
14704 IRIX*/6*) LDSHARED="ld ${SGI_ABI} -shared -all";;
14705 SunOS/5*)
14706 if test "$GCC" = "yes"
14707 then LDSHARED='$(CC) -shared'
14708 else LDSHARED='$(CC) -G';
14709 fi ;;
14710 hp*|HP*)
14711 if test "$GCC" = "yes"
14712 then LDSHARED='$(CC) -shared'
14713 else LDSHARED='ld -b';
14714 fi ;;
14715 OSF*) LDSHARED="ld -shared -expect_unresolved \"*\"";;
14716 Darwin/1.3*)
14717 LDSHARED='$(CC) $(LDFLAGS) -bundle'
14718 if test "$enable_framework" ; then
14719 # Link against the framework. All externals should be defined.
14720 BLDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
14721 LDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
14722 else
14723 # No framework. Ignore undefined symbols, assuming they come from Python
14724 LDSHARED="$LDSHARED -undefined suppress"
14725 fi ;;
14726 Darwin/1.4*|Darwin/5.*|Darwin/6.*)
14727 LDSHARED='$(CC) $(LDFLAGS) -bundle'
14728 if test "$enable_framework" ; then
14729 # Link against the framework. All externals should be defined.
14730 BLDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
14731 LDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
14732 else
14733 # No framework, use the Python app as bundle-loader
14734 BLDSHARED="$LDSHARED "'-bundle_loader $(BUILDPYTHON)'
14735 LDSHARED="$LDSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)'
14736 fi ;;
14737 Darwin/*)
14738 # Use -undefined dynamic_lookup whenever possible (10.3 and later).
14739 # This allows an extension to be used in any Python
14741 if test ${MACOSX_DEPLOYMENT_TARGET} '>' 10.2
14742 then
14743 if test "${enable_universalsdk}"; then
14744 LDFLAGS="${UNIVERSAL_ARCH_FLAGS} -isysroot ${UNIVERSALSDK} ${LDFLAGS}"
14746 LDSHARED='$(CC) $(LDFLAGS) -bundle -undefined dynamic_lookup'
14747 BLDSHARED="$LDSHARED"
14748 else
14749 LDSHARED='$(CC) $(LDFLAGS) -bundle'
14750 if test "$enable_framework" ; then
14751 # Link against the framework. All externals should be defined.
14752 BLDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
14753 LDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
14754 else
14755 # No framework, use the Python app as bundle-loader
14756 BLDSHARED="$LDSHARED "'-bundle_loader $(BUILDPYTHON)'
14757 LDSHARED="$LDSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)'
14761 Linux*|GNU*|QNX*) LDSHARED='$(CC) -shared';;
14762 BSD/OS*/4*) LDSHARED="gcc -shared";;
14763 FreeBSD*)
14764 if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]
14765 then
14766 LDSHARED="$CC -shared ${LDFLAGS}"
14767 else
14768 LDSHARED="ld -Bshareable ${LDFLAGS}"
14769 fi;;
14770 OpenBSD*)
14771 if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]
14772 then
14773 LDSHARED='$(CC) -shared $(CCSHARED) ${LDFLAGS}'
14774 else
14775 case `uname -r` in
14776 [01].* | 2.[0-7] | 2.[0-7].*)
14777 LDSHARED="ld -Bshareable ${LDFLAGS}"
14780 LDSHARED='$(CC) -shared $(CCSHARED) ${LDFLAGS}'
14782 esac
14783 fi;;
14784 NetBSD*|DragonFly*) LDSHARED="cc -shared ${LDFLAGS}";;
14785 OpenUNIX*|UnixWare*)
14786 if test "$GCC" = "yes"
14787 then LDSHARED='$(CC) -shared'
14788 else LDSHARED='$(CC) -G'
14789 fi;;
14790 SCO_SV*) LDSHARED='$(CC) -Wl,-G,-Bexport';;
14791 CYGWIN*) LDSHARED="gcc -shared -Wl,--enable-auto-image-base";;
14792 atheos*) LDSHARED="gcc -shared";;
14793 *) LDSHARED="ld";;
14794 esac
14796 { echo "$as_me:$LINENO: result: $LDSHARED" >&5
14797 echo "${ECHO_T}$LDSHARED" >&6; }
14798 BLDSHARED=${BLDSHARED-$LDSHARED}
14799 # CCSHARED are the C *flags* used to create objects to go into a shared
14800 # library (module) -- this is only needed for a few systems
14801 { echo "$as_me:$LINENO: checking CCSHARED" >&5
14802 echo $ECHO_N "checking CCSHARED... $ECHO_C" >&6; }
14803 if test -z "$CCSHARED"
14804 then
14805 case $ac_sys_system/$ac_sys_release in
14806 SunOS*) if test "$GCC" = yes;
14807 then CCSHARED="-fPIC";
14808 elif test `uname -p` = sparc;
14809 then CCSHARED="-xcode=pic32";
14810 else CCSHARED="-Kpic";
14811 fi;;
14812 hp*|HP*) if test "$GCC" = yes;
14813 then CCSHARED="-fPIC";
14814 else CCSHARED="+z";
14815 fi;;
14816 Linux*|GNU*) CCSHARED="-fPIC";;
14817 BSD/OS*/4*) CCSHARED="-fpic";;
14818 FreeBSD*|NetBSD*|OpenBSD*|DragonFly*) CCSHARED="-fPIC";;
14819 OpenUNIX*|UnixWare*)
14820 if test "$GCC" = "yes"
14821 then CCSHARED="-fPIC"
14822 else CCSHARED="-KPIC"
14823 fi;;
14824 SCO_SV*)
14825 if test "$GCC" = "yes"
14826 then CCSHARED="-fPIC"
14827 else CCSHARED="-Kpic -belf"
14828 fi;;
14829 IRIX*/6*) case $CC in
14830 *gcc*) CCSHARED="-shared";;
14831 *) CCSHARED="";;
14832 esac;;
14833 atheos*) CCSHARED="-fPIC";;
14834 esac
14836 { echo "$as_me:$LINENO: result: $CCSHARED" >&5
14837 echo "${ECHO_T}$CCSHARED" >&6; }
14838 # LINKFORSHARED are the flags passed to the $(CC) command that links
14839 # the python executable -- this is only needed for a few systems
14840 { echo "$as_me:$LINENO: checking LINKFORSHARED" >&5
14841 echo $ECHO_N "checking LINKFORSHARED... $ECHO_C" >&6; }
14842 if test -z "$LINKFORSHARED"
14843 then
14844 case $ac_sys_system/$ac_sys_release in
14845 AIX*) LINKFORSHARED='-Wl,-bE:Modules/python.exp -lld';;
14846 hp*|HP*)
14847 LINKFORSHARED="-Wl,-E -Wl,+s";;
14848 # LINKFORSHARED="-Wl,-E -Wl,+s -Wl,+b\$(BINLIBDEST)/lib-dynload";;
14849 BSD/OS/4*) LINKFORSHARED="-Xlinker -export-dynamic";;
14850 Linux*|GNU*) LINKFORSHARED="-Xlinker -export-dynamic";;
14851 # -u libsys_s pulls in all symbols in libsys
14852 Darwin/*)
14853 # -u _PyMac_Error is needed to pull in the mac toolbox glue,
14854 # which is
14855 # not used by the core itself but which needs to be in the core so
14856 # that dynamically loaded extension modules have access to it.
14857 # -prebind is no longer used, because it actually seems to give a
14858 # slowdown in stead of a speedup, maybe due to the large number of
14859 # dynamic loads Python does.
14861 LINKFORSHARED="$extra_undefs"
14862 if test "$enable_framework"
14863 then
14864 LINKFORSHARED="$LINKFORSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
14866 LINKFORSHARED="$LINKFORSHARED";;
14867 OpenUNIX*|UnixWare*) LINKFORSHARED="-Wl,-Bexport";;
14868 SCO_SV*) LINKFORSHARED="-Wl,-Bexport";;
14869 ReliantUNIX*) LINKFORSHARED="-W1 -Blargedynsym";;
14870 FreeBSD*|NetBSD*|OpenBSD*|DragonFly*)
14871 if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]
14872 then
14873 LINKFORSHARED="-Wl,--export-dynamic"
14874 fi;;
14875 SunOS/5*) case $CC in
14876 *gcc*)
14877 if $CC -Xlinker --help 2>&1 | grep export-dynamic >/dev/null
14878 then
14879 LINKFORSHARED="-Xlinker --export-dynamic"
14880 fi;;
14881 esac;;
14882 CYGWIN*)
14883 if test $enable_shared = "no"
14884 then
14885 LINKFORSHARED='-Wl,--out-implib=$(LDLIBRARY)'
14886 fi;;
14887 QNX*)
14888 # -Wl,-E causes the symbols to be added to the dynamic
14889 # symbol table so that they can be found when a module
14890 # is loaded. -N 2048K causes the stack size to be set
14891 # to 2048 kilobytes so that the stack doesn't overflow
14892 # when running test_compile.py.
14893 LINKFORSHARED='-Wl,-E -N 2048K';;
14894 esac
14896 { echo "$as_me:$LINENO: result: $LINKFORSHARED" >&5
14897 echo "${ECHO_T}$LINKFORSHARED" >&6; }
14901 { echo "$as_me:$LINENO: checking CFLAGSFORSHARED" >&5
14902 echo $ECHO_N "checking CFLAGSFORSHARED... $ECHO_C" >&6; }
14903 if test ! "$LIBRARY" = "$LDLIBRARY"
14904 then
14905 case $ac_sys_system in
14906 CYGWIN*)
14907 # Cygwin needs CCSHARED when building extension DLLs
14908 # but not when building the interpreter DLL.
14909 CFLAGSFORSHARED='';;
14911 CFLAGSFORSHARED='$(CCSHARED)'
14912 esac
14914 { echo "$as_me:$LINENO: result: $CFLAGSFORSHARED" >&5
14915 echo "${ECHO_T}$CFLAGSFORSHARED" >&6; }
14917 # SHLIBS are libraries (except -lc and -lm) to link to the python shared
14918 # library (with --enable-shared).
14919 # For platforms on which shared libraries are not allowed to have unresolved
14920 # symbols, this must be set to $(LIBS) (expanded by make). We do this even
14921 # if it is not required, since it creates a dependency of the shared library
14922 # to LIBS. This, in turn, means that applications linking the shared libpython
14923 # don't need to link LIBS explicitly. The default should be only changed
14924 # on systems where this approach causes problems.
14926 { echo "$as_me:$LINENO: checking SHLIBS" >&5
14927 echo $ECHO_N "checking SHLIBS... $ECHO_C" >&6; }
14928 case "$ac_sys_system" in
14930 SHLIBS='$(LIBS)';;
14931 esac
14932 { echo "$as_me:$LINENO: result: $SHLIBS" >&5
14933 echo "${ECHO_T}$SHLIBS" >&6; }
14936 # checks for libraries
14938 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
14939 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
14940 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
14941 echo $ECHO_N "(cached) $ECHO_C" >&6
14942 else
14943 ac_check_lib_save_LIBS=$LIBS
14944 LIBS="-ldl $LIBS"
14945 cat >conftest.$ac_ext <<_ACEOF
14946 /* confdefs.h. */
14947 _ACEOF
14948 cat confdefs.h >>conftest.$ac_ext
14949 cat >>conftest.$ac_ext <<_ACEOF
14950 /* end confdefs.h. */
14952 /* Override any GCC internal prototype to avoid an error.
14953 Use char because int might match the return type of a GCC
14954 builtin and then its argument prototype would still apply. */
14955 #ifdef __cplusplus
14956 extern "C"
14957 #endif
14958 char dlopen ();
14960 main ()
14962 return dlopen ();
14964 return 0;
14966 _ACEOF
14967 rm -f conftest.$ac_objext conftest$ac_exeext
14968 if { (ac_try="$ac_link"
14969 case "(($ac_try" in
14970 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14971 *) ac_try_echo=$ac_try;;
14972 esac
14973 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14974 (eval "$ac_link") 2>conftest.er1
14975 ac_status=$?
14976 grep -v '^ *+' conftest.er1 >conftest.err
14977 rm -f conftest.er1
14978 cat conftest.err >&5
14979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14980 (exit $ac_status); } && {
14981 test -z "$ac_c_werror_flag" ||
14982 test ! -s conftest.err
14983 } && test -s conftest$ac_exeext &&
14984 $as_test_x conftest$ac_exeext; then
14985 ac_cv_lib_dl_dlopen=yes
14986 else
14987 echo "$as_me: failed program was:" >&5
14988 sed 's/^/| /' conftest.$ac_ext >&5
14990 ac_cv_lib_dl_dlopen=no
14993 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14994 conftest$ac_exeext conftest.$ac_ext
14995 LIBS=$ac_check_lib_save_LIBS
14997 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
14998 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
14999 if test $ac_cv_lib_dl_dlopen = yes; then
15000 cat >>confdefs.h <<_ACEOF
15001 #define HAVE_LIBDL 1
15002 _ACEOF
15004 LIBS="-ldl $LIBS"
15007 # Dynamic linking for SunOS/Solaris and SYSV
15009 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
15010 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
15011 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
15012 echo $ECHO_N "(cached) $ECHO_C" >&6
15013 else
15014 ac_check_lib_save_LIBS=$LIBS
15015 LIBS="-ldld $LIBS"
15016 cat >conftest.$ac_ext <<_ACEOF
15017 /* confdefs.h. */
15018 _ACEOF
15019 cat confdefs.h >>conftest.$ac_ext
15020 cat >>conftest.$ac_ext <<_ACEOF
15021 /* end confdefs.h. */
15023 /* Override any GCC internal prototype to avoid an error.
15024 Use char because int might match the return type of a GCC
15025 builtin and then its argument prototype would still apply. */
15026 #ifdef __cplusplus
15027 extern "C"
15028 #endif
15029 char shl_load ();
15031 main ()
15033 return shl_load ();
15035 return 0;
15037 _ACEOF
15038 rm -f conftest.$ac_objext conftest$ac_exeext
15039 if { (ac_try="$ac_link"
15040 case "(($ac_try" in
15041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15042 *) ac_try_echo=$ac_try;;
15043 esac
15044 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15045 (eval "$ac_link") 2>conftest.er1
15046 ac_status=$?
15047 grep -v '^ *+' conftest.er1 >conftest.err
15048 rm -f conftest.er1
15049 cat conftest.err >&5
15050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15051 (exit $ac_status); } && {
15052 test -z "$ac_c_werror_flag" ||
15053 test ! -s conftest.err
15054 } && test -s conftest$ac_exeext &&
15055 $as_test_x conftest$ac_exeext; then
15056 ac_cv_lib_dld_shl_load=yes
15057 else
15058 echo "$as_me: failed program was:" >&5
15059 sed 's/^/| /' conftest.$ac_ext >&5
15061 ac_cv_lib_dld_shl_load=no
15064 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15065 conftest$ac_exeext conftest.$ac_ext
15066 LIBS=$ac_check_lib_save_LIBS
15068 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
15069 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
15070 if test $ac_cv_lib_dld_shl_load = yes; then
15071 cat >>confdefs.h <<_ACEOF
15072 #define HAVE_LIBDLD 1
15073 _ACEOF
15075 LIBS="-ldld $LIBS"
15078 # Dynamic linking for HP-UX
15080 # only check for sem_init if thread support is requested
15081 if test "$with_threads" = "yes" -o -z "$with_threads"; then
15082 { echo "$as_me:$LINENO: checking for library containing sem_init" >&5
15083 echo $ECHO_N "checking for library containing sem_init... $ECHO_C" >&6; }
15084 if test "${ac_cv_search_sem_init+set}" = set; then
15085 echo $ECHO_N "(cached) $ECHO_C" >&6
15086 else
15087 ac_func_search_save_LIBS=$LIBS
15088 cat >conftest.$ac_ext <<_ACEOF
15089 /* confdefs.h. */
15090 _ACEOF
15091 cat confdefs.h >>conftest.$ac_ext
15092 cat >>conftest.$ac_ext <<_ACEOF
15093 /* end confdefs.h. */
15095 /* Override any GCC internal prototype to avoid an error.
15096 Use char because int might match the return type of a GCC
15097 builtin and then its argument prototype would still apply. */
15098 #ifdef __cplusplus
15099 extern "C"
15100 #endif
15101 char sem_init ();
15103 main ()
15105 return sem_init ();
15107 return 0;
15109 _ACEOF
15110 for ac_lib in '' pthread rt posix4; do
15111 if test -z "$ac_lib"; then
15112 ac_res="none required"
15113 else
15114 ac_res=-l$ac_lib
15115 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15117 rm -f conftest.$ac_objext conftest$ac_exeext
15118 if { (ac_try="$ac_link"
15119 case "(($ac_try" in
15120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15121 *) ac_try_echo=$ac_try;;
15122 esac
15123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15124 (eval "$ac_link") 2>conftest.er1
15125 ac_status=$?
15126 grep -v '^ *+' conftest.er1 >conftest.err
15127 rm -f conftest.er1
15128 cat conftest.err >&5
15129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15130 (exit $ac_status); } && {
15131 test -z "$ac_c_werror_flag" ||
15132 test ! -s conftest.err
15133 } && test -s conftest$ac_exeext &&
15134 $as_test_x conftest$ac_exeext; then
15135 ac_cv_search_sem_init=$ac_res
15136 else
15137 echo "$as_me: failed program was:" >&5
15138 sed 's/^/| /' conftest.$ac_ext >&5
15143 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15144 conftest$ac_exeext
15145 if test "${ac_cv_search_sem_init+set}" = set; then
15146 break
15148 done
15149 if test "${ac_cv_search_sem_init+set}" = set; then
15151 else
15152 ac_cv_search_sem_init=no
15154 rm conftest.$ac_ext
15155 LIBS=$ac_func_search_save_LIBS
15157 { echo "$as_me:$LINENO: result: $ac_cv_search_sem_init" >&5
15158 echo "${ECHO_T}$ac_cv_search_sem_init" >&6; }
15159 ac_res=$ac_cv_search_sem_init
15160 if test "$ac_res" != no; then
15161 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15164 # 'Real Time' functions on Solaris
15165 # posix4 on Solaris 2.6
15166 # pthread (first!) on Linux
15169 # check if we need libintl for locale functions
15170 { echo "$as_me:$LINENO: checking for textdomain in -lintl" >&5
15171 echo $ECHO_N "checking for textdomain in -lintl... $ECHO_C" >&6; }
15172 if test "${ac_cv_lib_intl_textdomain+set}" = set; then
15173 echo $ECHO_N "(cached) $ECHO_C" >&6
15174 else
15175 ac_check_lib_save_LIBS=$LIBS
15176 LIBS="-lintl $LIBS"
15177 cat >conftest.$ac_ext <<_ACEOF
15178 /* confdefs.h. */
15179 _ACEOF
15180 cat confdefs.h >>conftest.$ac_ext
15181 cat >>conftest.$ac_ext <<_ACEOF
15182 /* end confdefs.h. */
15184 /* Override any GCC internal prototype to avoid an error.
15185 Use char because int might match the return type of a GCC
15186 builtin and then its argument prototype would still apply. */
15187 #ifdef __cplusplus
15188 extern "C"
15189 #endif
15190 char textdomain ();
15192 main ()
15194 return textdomain ();
15196 return 0;
15198 _ACEOF
15199 rm -f conftest.$ac_objext conftest$ac_exeext
15200 if { (ac_try="$ac_link"
15201 case "(($ac_try" in
15202 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15203 *) ac_try_echo=$ac_try;;
15204 esac
15205 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15206 (eval "$ac_link") 2>conftest.er1
15207 ac_status=$?
15208 grep -v '^ *+' conftest.er1 >conftest.err
15209 rm -f conftest.er1
15210 cat conftest.err >&5
15211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15212 (exit $ac_status); } && {
15213 test -z "$ac_c_werror_flag" ||
15214 test ! -s conftest.err
15215 } && test -s conftest$ac_exeext &&
15216 $as_test_x conftest$ac_exeext; then
15217 ac_cv_lib_intl_textdomain=yes
15218 else
15219 echo "$as_me: failed program was:" >&5
15220 sed 's/^/| /' conftest.$ac_ext >&5
15222 ac_cv_lib_intl_textdomain=no
15225 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15226 conftest$ac_exeext conftest.$ac_ext
15227 LIBS=$ac_check_lib_save_LIBS
15229 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_textdomain" >&5
15230 echo "${ECHO_T}$ac_cv_lib_intl_textdomain" >&6; }
15231 if test $ac_cv_lib_intl_textdomain = yes; then
15233 cat >>confdefs.h <<\_ACEOF
15234 #define WITH_LIBINTL 1
15235 _ACEOF
15240 # checks for system dependent C++ extensions support
15241 case "$ac_sys_system" in
15242 AIX*) { echo "$as_me:$LINENO: checking for genuine AIX C++ extensions support" >&5
15243 echo $ECHO_N "checking for genuine AIX C++ extensions support... $ECHO_C" >&6; }
15244 cat >conftest.$ac_ext <<_ACEOF
15245 /* confdefs.h. */
15246 _ACEOF
15247 cat confdefs.h >>conftest.$ac_ext
15248 cat >>conftest.$ac_ext <<_ACEOF
15249 /* end confdefs.h. */
15250 #include "/usr/lpp/xlC/include/load.h"
15252 main ()
15254 loadAndInit("", 0, "")
15256 return 0;
15258 _ACEOF
15259 rm -f conftest.$ac_objext conftest$ac_exeext
15260 if { (ac_try="$ac_link"
15261 case "(($ac_try" in
15262 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15263 *) ac_try_echo=$ac_try;;
15264 esac
15265 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15266 (eval "$ac_link") 2>conftest.er1
15267 ac_status=$?
15268 grep -v '^ *+' conftest.er1 >conftest.err
15269 rm -f conftest.er1
15270 cat conftest.err >&5
15271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15272 (exit $ac_status); } && {
15273 test -z "$ac_c_werror_flag" ||
15274 test ! -s conftest.err
15275 } && test -s conftest$ac_exeext &&
15276 $as_test_x conftest$ac_exeext; then
15278 cat >>confdefs.h <<\_ACEOF
15279 #define AIX_GENUINE_CPLUSPLUS 1
15280 _ACEOF
15282 { echo "$as_me:$LINENO: result: yes" >&5
15283 echo "${ECHO_T}yes" >&6; }
15284 else
15285 echo "$as_me: failed program was:" >&5
15286 sed 's/^/| /' conftest.$ac_ext >&5
15288 { echo "$as_me:$LINENO: result: no" >&5
15289 echo "${ECHO_T}no" >&6; }
15292 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15293 conftest$ac_exeext conftest.$ac_ext;;
15294 *) ;;
15295 esac
15297 # Most SVR4 platforms (e.g. Solaris) need -lsocket and -lnsl.
15298 # BeOS' sockets are stashed in libnet.
15299 { echo "$as_me:$LINENO: checking for t_open in -lnsl" >&5
15300 echo $ECHO_N "checking for t_open in -lnsl... $ECHO_C" >&6; }
15301 if test "${ac_cv_lib_nsl_t_open+set}" = set; then
15302 echo $ECHO_N "(cached) $ECHO_C" >&6
15303 else
15304 ac_check_lib_save_LIBS=$LIBS
15305 LIBS="-lnsl $LIBS"
15306 cat >conftest.$ac_ext <<_ACEOF
15307 /* confdefs.h. */
15308 _ACEOF
15309 cat confdefs.h >>conftest.$ac_ext
15310 cat >>conftest.$ac_ext <<_ACEOF
15311 /* end confdefs.h. */
15313 /* Override any GCC internal prototype to avoid an error.
15314 Use char because int might match the return type of a GCC
15315 builtin and then its argument prototype would still apply. */
15316 #ifdef __cplusplus
15317 extern "C"
15318 #endif
15319 char t_open ();
15321 main ()
15323 return t_open ();
15325 return 0;
15327 _ACEOF
15328 rm -f conftest.$ac_objext conftest$ac_exeext
15329 if { (ac_try="$ac_link"
15330 case "(($ac_try" in
15331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15332 *) ac_try_echo=$ac_try;;
15333 esac
15334 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15335 (eval "$ac_link") 2>conftest.er1
15336 ac_status=$?
15337 grep -v '^ *+' conftest.er1 >conftest.err
15338 rm -f conftest.er1
15339 cat conftest.err >&5
15340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15341 (exit $ac_status); } && {
15342 test -z "$ac_c_werror_flag" ||
15343 test ! -s conftest.err
15344 } && test -s conftest$ac_exeext &&
15345 $as_test_x conftest$ac_exeext; then
15346 ac_cv_lib_nsl_t_open=yes
15347 else
15348 echo "$as_me: failed program was:" >&5
15349 sed 's/^/| /' conftest.$ac_ext >&5
15351 ac_cv_lib_nsl_t_open=no
15354 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15355 conftest$ac_exeext conftest.$ac_ext
15356 LIBS=$ac_check_lib_save_LIBS
15358 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_t_open" >&5
15359 echo "${ECHO_T}$ac_cv_lib_nsl_t_open" >&6; }
15360 if test $ac_cv_lib_nsl_t_open = yes; then
15361 LIBS="-lnsl $LIBS"
15363 # SVR4
15364 { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
15365 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
15366 if test "${ac_cv_lib_socket_socket+set}" = set; then
15367 echo $ECHO_N "(cached) $ECHO_C" >&6
15368 else
15369 ac_check_lib_save_LIBS=$LIBS
15370 LIBS="-lsocket $LIBS $LIBS"
15371 cat >conftest.$ac_ext <<_ACEOF
15372 /* confdefs.h. */
15373 _ACEOF
15374 cat confdefs.h >>conftest.$ac_ext
15375 cat >>conftest.$ac_ext <<_ACEOF
15376 /* end confdefs.h. */
15378 /* Override any GCC internal prototype to avoid an error.
15379 Use char because int might match the return type of a GCC
15380 builtin and then its argument prototype would still apply. */
15381 #ifdef __cplusplus
15382 extern "C"
15383 #endif
15384 char socket ();
15386 main ()
15388 return socket ();
15390 return 0;
15392 _ACEOF
15393 rm -f conftest.$ac_objext conftest$ac_exeext
15394 if { (ac_try="$ac_link"
15395 case "(($ac_try" in
15396 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15397 *) ac_try_echo=$ac_try;;
15398 esac
15399 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15400 (eval "$ac_link") 2>conftest.er1
15401 ac_status=$?
15402 grep -v '^ *+' conftest.er1 >conftest.err
15403 rm -f conftest.er1
15404 cat conftest.err >&5
15405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15406 (exit $ac_status); } && {
15407 test -z "$ac_c_werror_flag" ||
15408 test ! -s conftest.err
15409 } && test -s conftest$ac_exeext &&
15410 $as_test_x conftest$ac_exeext; then
15411 ac_cv_lib_socket_socket=yes
15412 else
15413 echo "$as_me: failed program was:" >&5
15414 sed 's/^/| /' conftest.$ac_ext >&5
15416 ac_cv_lib_socket_socket=no
15419 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15420 conftest$ac_exeext conftest.$ac_ext
15421 LIBS=$ac_check_lib_save_LIBS
15423 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
15424 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; }
15425 if test $ac_cv_lib_socket_socket = yes; then
15426 LIBS="-lsocket $LIBS"
15428 # SVR4 sockets
15430 case "$ac_sys_system" in
15431 BeOS*)
15432 { echo "$as_me:$LINENO: checking for socket in -lnet" >&5
15433 echo $ECHO_N "checking for socket in -lnet... $ECHO_C" >&6; }
15434 if test "${ac_cv_lib_net_socket+set}" = set; then
15435 echo $ECHO_N "(cached) $ECHO_C" >&6
15436 else
15437 ac_check_lib_save_LIBS=$LIBS
15438 LIBS="-lnet $LIBS $LIBS"
15439 cat >conftest.$ac_ext <<_ACEOF
15440 /* confdefs.h. */
15441 _ACEOF
15442 cat confdefs.h >>conftest.$ac_ext
15443 cat >>conftest.$ac_ext <<_ACEOF
15444 /* end confdefs.h. */
15446 /* Override any GCC internal prototype to avoid an error.
15447 Use char because int might match the return type of a GCC
15448 builtin and then its argument prototype would still apply. */
15449 #ifdef __cplusplus
15450 extern "C"
15451 #endif
15452 char socket ();
15454 main ()
15456 return socket ();
15458 return 0;
15460 _ACEOF
15461 rm -f conftest.$ac_objext conftest$ac_exeext
15462 if { (ac_try="$ac_link"
15463 case "(($ac_try" in
15464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15465 *) ac_try_echo=$ac_try;;
15466 esac
15467 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15468 (eval "$ac_link") 2>conftest.er1
15469 ac_status=$?
15470 grep -v '^ *+' conftest.er1 >conftest.err
15471 rm -f conftest.er1
15472 cat conftest.err >&5
15473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15474 (exit $ac_status); } && {
15475 test -z "$ac_c_werror_flag" ||
15476 test ! -s conftest.err
15477 } && test -s conftest$ac_exeext &&
15478 $as_test_x conftest$ac_exeext; then
15479 ac_cv_lib_net_socket=yes
15480 else
15481 echo "$as_me: failed program was:" >&5
15482 sed 's/^/| /' conftest.$ac_ext >&5
15484 ac_cv_lib_net_socket=no
15487 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15488 conftest$ac_exeext conftest.$ac_ext
15489 LIBS=$ac_check_lib_save_LIBS
15491 { echo "$as_me:$LINENO: result: $ac_cv_lib_net_socket" >&5
15492 echo "${ECHO_T}$ac_cv_lib_net_socket" >&6; }
15493 if test $ac_cv_lib_net_socket = yes; then
15494 LIBS="-lnet $LIBS"
15496 # BeOS
15498 esac
15500 { echo "$as_me:$LINENO: checking for --with-libs" >&5
15501 echo $ECHO_N "checking for --with-libs... $ECHO_C" >&6; }
15503 # Check whether --with-libs was given.
15504 if test "${with_libs+set}" = set; then
15505 withval=$with_libs;
15506 { echo "$as_me:$LINENO: result: $withval" >&5
15507 echo "${ECHO_T}$withval" >&6; }
15508 LIBS="$withval $LIBS"
15510 else
15511 { echo "$as_me:$LINENO: result: no" >&5
15512 echo "${ECHO_T}no" >&6; }
15516 # Check for use of the system libffi library
15517 { echo "$as_me:$LINENO: checking for --with-system-ffi" >&5
15518 echo $ECHO_N "checking for --with-system-ffi... $ECHO_C" >&6; }
15520 # Check whether --with-system_ffi was given.
15521 if test "${with_system_ffi+set}" = set; then
15522 withval=$with_system_ffi;
15526 { echo "$as_me:$LINENO: result: $with_system_ffi" >&5
15527 echo "${ECHO_T}$with_system_ffi" >&6; }
15529 # Check for --with-dbmliborder
15530 { echo "$as_me:$LINENO: checking for --with-dbmliborder" >&5
15531 echo $ECHO_N "checking for --with-dbmliborder... $ECHO_C" >&6; }
15533 # Check whether --with-dbmliborder was given.
15534 if test "${with_dbmliborder+set}" = set; then
15535 withval=$with_dbmliborder;
15536 if test x$with_dbmliborder = xyes
15537 then
15538 { { echo "$as_me:$LINENO: error: proper usage is --with-dbmliborder=db1:db2:..." >&5
15539 echo "$as_me: error: proper usage is --with-dbmliborder=db1:db2:..." >&2;}
15540 { (exit 1); exit 1; }; }
15541 else
15542 for db in `echo $with_dbmliborder | sed 's/:/ /g'`; do
15543 if test x$db != xndbm && test x$db != xgdbm && test x$db != xbdb
15544 then
15545 { { echo "$as_me:$LINENO: error: proper usage is --with-dbmliborder=db1:db2:..." >&5
15546 echo "$as_me: error: proper usage is --with-dbmliborder=db1:db2:..." >&2;}
15547 { (exit 1); exit 1; }; }
15549 done
15553 { echo "$as_me:$LINENO: result: $with_dbmliborder" >&5
15554 echo "${ECHO_T}$with_dbmliborder" >&6; }
15556 # Determine if signalmodule should be used.
15559 { echo "$as_me:$LINENO: checking for --with-signal-module" >&5
15560 echo $ECHO_N "checking for --with-signal-module... $ECHO_C" >&6; }
15562 # Check whether --with-signal-module was given.
15563 if test "${with_signal_module+set}" = set; then
15564 withval=$with_signal_module;
15568 if test -z "$with_signal_module"
15569 then with_signal_module="yes"
15571 { echo "$as_me:$LINENO: result: $with_signal_module" >&5
15572 echo "${ECHO_T}$with_signal_module" >&6; }
15574 if test "${with_signal_module}" = "yes"; then
15575 USE_SIGNAL_MODULE=""
15576 SIGNAL_OBJS=""
15577 else
15578 USE_SIGNAL_MODULE="#"
15579 SIGNAL_OBJS="Parser/intrcheck.o Python/sigcheck.o"
15582 # This is used to generate Setup.config
15584 USE_THREAD_MODULE=""
15586 { echo "$as_me:$LINENO: checking for --with-dec-threads" >&5
15587 echo $ECHO_N "checking for --with-dec-threads... $ECHO_C" >&6; }
15590 # Check whether --with-dec-threads was given.
15591 if test "${with_dec_threads+set}" = set; then
15592 withval=$with_dec_threads;
15593 { echo "$as_me:$LINENO: result: $withval" >&5
15594 echo "${ECHO_T}$withval" >&6; }
15595 LDLAST=-threads
15596 if test "${with_thread+set}" != set; then
15597 with_thread="$withval";
15599 else
15600 { echo "$as_me:$LINENO: result: no" >&5
15601 echo "${ECHO_T}no" >&6; }
15605 # Templates for things AC_DEFINEd more than once.
15606 # For a single AC_DEFINE, no template is needed.
15614 { echo "$as_me:$LINENO: checking for --with-threads" >&5
15615 echo $ECHO_N "checking for --with-threads... $ECHO_C" >&6; }
15617 # Check whether --with-threads was given.
15618 if test "${with_threads+set}" = set; then
15619 withval=$with_threads;
15623 # --with-thread is deprecated, but check for it anyway
15625 # Check whether --with-thread was given.
15626 if test "${with_thread+set}" = set; then
15627 withval=$with_thread; with_threads=$with_thread
15631 if test -z "$with_threads"
15632 then with_threads="yes"
15634 { echo "$as_me:$LINENO: result: $with_threads" >&5
15635 echo "${ECHO_T}$with_threads" >&6; }
15638 if test "$with_threads" = "no"
15639 then
15640 USE_THREAD_MODULE="#"
15641 elif test "$ac_cv_pthread_is_default" = yes
15642 then
15643 cat >>confdefs.h <<\_ACEOF
15644 #define WITH_THREAD 1
15645 _ACEOF
15647 # Defining _REENTRANT on system with POSIX threads should not hurt.
15648 cat >>confdefs.h <<\_ACEOF
15649 #define _REENTRANT 1
15650 _ACEOF
15652 posix_threads=yes
15653 THREADOBJ="Python/thread.o"
15654 elif test "$ac_cv_kpthread" = "yes"
15655 then
15656 CC="$CC -Kpthread"
15657 if test "$ac_cv_cxx_thread" = "yes"; then
15658 CXX="$CXX -Kpthread"
15660 cat >>confdefs.h <<\_ACEOF
15661 #define WITH_THREAD 1
15662 _ACEOF
15664 posix_threads=yes
15665 THREADOBJ="Python/thread.o"
15666 elif test "$ac_cv_kthread" = "yes"
15667 then
15668 CC="$CC -Kthread"
15669 if test "$ac_cv_cxx_thread" = "yes"; then
15670 CXX="$CXX -Kthread"
15672 cat >>confdefs.h <<\_ACEOF
15673 #define WITH_THREAD 1
15674 _ACEOF
15676 posix_threads=yes
15677 THREADOBJ="Python/thread.o"
15678 elif test "$ac_cv_pthread" = "yes"
15679 then
15680 CC="$CC -pthread"
15681 if test "$ac_cv_cxx_thread" = "yes"; then
15682 CXX="$CXX -pthread"
15684 cat >>confdefs.h <<\_ACEOF
15685 #define WITH_THREAD 1
15686 _ACEOF
15688 posix_threads=yes
15689 THREADOBJ="Python/thread.o"
15690 else
15691 if test ! -z "$with_threads" -a -d "$with_threads"
15692 then LDFLAGS="$LDFLAGS -L$with_threads"
15694 if test ! -z "$withval" -a -d "$withval"
15695 then LDFLAGS="$LDFLAGS -L$withval"
15698 # According to the POSIX spec, a pthreads implementation must
15699 # define _POSIX_THREADS in unistd.h. Some apparently don't
15700 # (e.g. gnu pth with pthread emulation)
15701 { echo "$as_me:$LINENO: checking for _POSIX_THREADS in unistd.h" >&5
15702 echo $ECHO_N "checking for _POSIX_THREADS in unistd.h... $ECHO_C" >&6; }
15703 cat >conftest.$ac_ext <<_ACEOF
15704 /* confdefs.h. */
15705 _ACEOF
15706 cat confdefs.h >>conftest.$ac_ext
15707 cat >>conftest.$ac_ext <<_ACEOF
15708 /* end confdefs.h. */
15710 #include <unistd.h>
15711 #ifdef _POSIX_THREADS
15713 #endif
15715 _ACEOF
15716 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15717 $EGREP "yes" >/dev/null 2>&1; then
15718 unistd_defines_pthreads=yes
15719 else
15720 unistd_defines_pthreads=no
15722 rm -f -r conftest*
15724 { echo "$as_me:$LINENO: result: $unistd_defines_pthreads" >&5
15725 echo "${ECHO_T}$unistd_defines_pthreads" >&6; }
15727 cat >>confdefs.h <<\_ACEOF
15728 #define _REENTRANT 1
15729 _ACEOF
15731 if test "${ac_cv_header_cthreads_h+set}" = set; then
15732 { echo "$as_me:$LINENO: checking for cthreads.h" >&5
15733 echo $ECHO_N "checking for cthreads.h... $ECHO_C" >&6; }
15734 if test "${ac_cv_header_cthreads_h+set}" = set; then
15735 echo $ECHO_N "(cached) $ECHO_C" >&6
15737 { echo "$as_me:$LINENO: result: $ac_cv_header_cthreads_h" >&5
15738 echo "${ECHO_T}$ac_cv_header_cthreads_h" >&6; }
15739 else
15740 # Is the header compilable?
15741 { echo "$as_me:$LINENO: checking cthreads.h usability" >&5
15742 echo $ECHO_N "checking cthreads.h usability... $ECHO_C" >&6; }
15743 cat >conftest.$ac_ext <<_ACEOF
15744 /* confdefs.h. */
15745 _ACEOF
15746 cat confdefs.h >>conftest.$ac_ext
15747 cat >>conftest.$ac_ext <<_ACEOF
15748 /* end confdefs.h. */
15749 $ac_includes_default
15750 #include <cthreads.h>
15751 _ACEOF
15752 rm -f conftest.$ac_objext
15753 if { (ac_try="$ac_compile"
15754 case "(($ac_try" in
15755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15756 *) ac_try_echo=$ac_try;;
15757 esac
15758 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15759 (eval "$ac_compile") 2>conftest.er1
15760 ac_status=$?
15761 grep -v '^ *+' conftest.er1 >conftest.err
15762 rm -f conftest.er1
15763 cat conftest.err >&5
15764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15765 (exit $ac_status); } && {
15766 test -z "$ac_c_werror_flag" ||
15767 test ! -s conftest.err
15768 } && test -s conftest.$ac_objext; then
15769 ac_header_compiler=yes
15770 else
15771 echo "$as_me: failed program was:" >&5
15772 sed 's/^/| /' conftest.$ac_ext >&5
15774 ac_header_compiler=no
15777 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15778 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15779 echo "${ECHO_T}$ac_header_compiler" >&6; }
15781 # Is the header present?
15782 { echo "$as_me:$LINENO: checking cthreads.h presence" >&5
15783 echo $ECHO_N "checking cthreads.h presence... $ECHO_C" >&6; }
15784 cat >conftest.$ac_ext <<_ACEOF
15785 /* confdefs.h. */
15786 _ACEOF
15787 cat confdefs.h >>conftest.$ac_ext
15788 cat >>conftest.$ac_ext <<_ACEOF
15789 /* end confdefs.h. */
15790 #include <cthreads.h>
15791 _ACEOF
15792 if { (ac_try="$ac_cpp conftest.$ac_ext"
15793 case "(($ac_try" in
15794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15795 *) ac_try_echo=$ac_try;;
15796 esac
15797 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15798 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15799 ac_status=$?
15800 grep -v '^ *+' conftest.er1 >conftest.err
15801 rm -f conftest.er1
15802 cat conftest.err >&5
15803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15804 (exit $ac_status); } >/dev/null && {
15805 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15806 test ! -s conftest.err
15807 }; then
15808 ac_header_preproc=yes
15809 else
15810 echo "$as_me: failed program was:" >&5
15811 sed 's/^/| /' conftest.$ac_ext >&5
15813 ac_header_preproc=no
15816 rm -f conftest.err conftest.$ac_ext
15817 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15818 echo "${ECHO_T}$ac_header_preproc" >&6; }
15820 # So? What about this header?
15821 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15822 yes:no: )
15823 { echo "$as_me:$LINENO: WARNING: cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&5
15824 echo "$as_me: WARNING: cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15825 { echo "$as_me:$LINENO: WARNING: cthreads.h: proceeding with the compiler's result" >&5
15826 echo "$as_me: WARNING: cthreads.h: proceeding with the compiler's result" >&2;}
15827 ac_header_preproc=yes
15829 no:yes:* )
15830 { echo "$as_me:$LINENO: WARNING: cthreads.h: present but cannot be compiled" >&5
15831 echo "$as_me: WARNING: cthreads.h: present but cannot be compiled" >&2;}
15832 { echo "$as_me:$LINENO: WARNING: cthreads.h: check for missing prerequisite headers?" >&5
15833 echo "$as_me: WARNING: cthreads.h: check for missing prerequisite headers?" >&2;}
15834 { echo "$as_me:$LINENO: WARNING: cthreads.h: see the Autoconf documentation" >&5
15835 echo "$as_me: WARNING: cthreads.h: see the Autoconf documentation" >&2;}
15836 { echo "$as_me:$LINENO: WARNING: cthreads.h: section \"Present But Cannot Be Compiled\"" >&5
15837 echo "$as_me: WARNING: cthreads.h: section \"Present But Cannot Be Compiled\"" >&2;}
15838 { echo "$as_me:$LINENO: WARNING: cthreads.h: proceeding with the preprocessor's result" >&5
15839 echo "$as_me: WARNING: cthreads.h: proceeding with the preprocessor's result" >&2;}
15840 { echo "$as_me:$LINENO: WARNING: cthreads.h: in the future, the compiler will take precedence" >&5
15841 echo "$as_me: WARNING: cthreads.h: in the future, the compiler will take precedence" >&2;}
15842 ( cat <<\_ASBOX
15843 ## -------------------------------------- ##
15844 ## Report this to http://bugs.python.org/ ##
15845 ## -------------------------------------- ##
15846 _ASBOX
15847 ) | sed "s/^/$as_me: WARNING: /" >&2
15849 esac
15850 { echo "$as_me:$LINENO: checking for cthreads.h" >&5
15851 echo $ECHO_N "checking for cthreads.h... $ECHO_C" >&6; }
15852 if test "${ac_cv_header_cthreads_h+set}" = set; then
15853 echo $ECHO_N "(cached) $ECHO_C" >&6
15854 else
15855 ac_cv_header_cthreads_h=$ac_header_preproc
15857 { echo "$as_me:$LINENO: result: $ac_cv_header_cthreads_h" >&5
15858 echo "${ECHO_T}$ac_cv_header_cthreads_h" >&6; }
15861 if test $ac_cv_header_cthreads_h = yes; then
15862 cat >>confdefs.h <<\_ACEOF
15863 #define WITH_THREAD 1
15864 _ACEOF
15866 cat >>confdefs.h <<\_ACEOF
15867 #define C_THREADS 1
15868 _ACEOF
15871 cat >>confdefs.h <<\_ACEOF
15872 #define HURD_C_THREADS 1
15873 _ACEOF
15875 LIBS="$LIBS -lthreads"
15876 THREADOBJ="Python/thread.o"
15877 else
15879 if test "${ac_cv_header_mach_cthreads_h+set}" = set; then
15880 { echo "$as_me:$LINENO: checking for mach/cthreads.h" >&5
15881 echo $ECHO_N "checking for mach/cthreads.h... $ECHO_C" >&6; }
15882 if test "${ac_cv_header_mach_cthreads_h+set}" = set; then
15883 echo $ECHO_N "(cached) $ECHO_C" >&6
15885 { echo "$as_me:$LINENO: result: $ac_cv_header_mach_cthreads_h" >&5
15886 echo "${ECHO_T}$ac_cv_header_mach_cthreads_h" >&6; }
15887 else
15888 # Is the header compilable?
15889 { echo "$as_me:$LINENO: checking mach/cthreads.h usability" >&5
15890 echo $ECHO_N "checking mach/cthreads.h usability... $ECHO_C" >&6; }
15891 cat >conftest.$ac_ext <<_ACEOF
15892 /* confdefs.h. */
15893 _ACEOF
15894 cat confdefs.h >>conftest.$ac_ext
15895 cat >>conftest.$ac_ext <<_ACEOF
15896 /* end confdefs.h. */
15897 $ac_includes_default
15898 #include <mach/cthreads.h>
15899 _ACEOF
15900 rm -f conftest.$ac_objext
15901 if { (ac_try="$ac_compile"
15902 case "(($ac_try" in
15903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15904 *) ac_try_echo=$ac_try;;
15905 esac
15906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15907 (eval "$ac_compile") 2>conftest.er1
15908 ac_status=$?
15909 grep -v '^ *+' conftest.er1 >conftest.err
15910 rm -f conftest.er1
15911 cat conftest.err >&5
15912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15913 (exit $ac_status); } && {
15914 test -z "$ac_c_werror_flag" ||
15915 test ! -s conftest.err
15916 } && test -s conftest.$ac_objext; then
15917 ac_header_compiler=yes
15918 else
15919 echo "$as_me: failed program was:" >&5
15920 sed 's/^/| /' conftest.$ac_ext >&5
15922 ac_header_compiler=no
15925 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15926 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15927 echo "${ECHO_T}$ac_header_compiler" >&6; }
15929 # Is the header present?
15930 { echo "$as_me:$LINENO: checking mach/cthreads.h presence" >&5
15931 echo $ECHO_N "checking mach/cthreads.h presence... $ECHO_C" >&6; }
15932 cat >conftest.$ac_ext <<_ACEOF
15933 /* confdefs.h. */
15934 _ACEOF
15935 cat confdefs.h >>conftest.$ac_ext
15936 cat >>conftest.$ac_ext <<_ACEOF
15937 /* end confdefs.h. */
15938 #include <mach/cthreads.h>
15939 _ACEOF
15940 if { (ac_try="$ac_cpp conftest.$ac_ext"
15941 case "(($ac_try" in
15942 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15943 *) ac_try_echo=$ac_try;;
15944 esac
15945 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15946 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15947 ac_status=$?
15948 grep -v '^ *+' conftest.er1 >conftest.err
15949 rm -f conftest.er1
15950 cat conftest.err >&5
15951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15952 (exit $ac_status); } >/dev/null && {
15953 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15954 test ! -s conftest.err
15955 }; then
15956 ac_header_preproc=yes
15957 else
15958 echo "$as_me: failed program was:" >&5
15959 sed 's/^/| /' conftest.$ac_ext >&5
15961 ac_header_preproc=no
15964 rm -f conftest.err conftest.$ac_ext
15965 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15966 echo "${ECHO_T}$ac_header_preproc" >&6; }
15968 # So? What about this header?
15969 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15970 yes:no: )
15971 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&5
15972 echo "$as_me: WARNING: mach/cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15973 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: proceeding with the compiler's result" >&5
15974 echo "$as_me: WARNING: mach/cthreads.h: proceeding with the compiler's result" >&2;}
15975 ac_header_preproc=yes
15977 no:yes:* )
15978 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: present but cannot be compiled" >&5
15979 echo "$as_me: WARNING: mach/cthreads.h: present but cannot be compiled" >&2;}
15980 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: check for missing prerequisite headers?" >&5
15981 echo "$as_me: WARNING: mach/cthreads.h: check for missing prerequisite headers?" >&2;}
15982 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: see the Autoconf documentation" >&5
15983 echo "$as_me: WARNING: mach/cthreads.h: see the Autoconf documentation" >&2;}
15984 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: section \"Present But Cannot Be Compiled\"" >&5
15985 echo "$as_me: WARNING: mach/cthreads.h: section \"Present But Cannot Be Compiled\"" >&2;}
15986 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: proceeding with the preprocessor's result" >&5
15987 echo "$as_me: WARNING: mach/cthreads.h: proceeding with the preprocessor's result" >&2;}
15988 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: in the future, the compiler will take precedence" >&5
15989 echo "$as_me: WARNING: mach/cthreads.h: in the future, the compiler will take precedence" >&2;}
15990 ( cat <<\_ASBOX
15991 ## -------------------------------------- ##
15992 ## Report this to http://bugs.python.org/ ##
15993 ## -------------------------------------- ##
15994 _ASBOX
15995 ) | sed "s/^/$as_me: WARNING: /" >&2
15997 esac
15998 { echo "$as_me:$LINENO: checking for mach/cthreads.h" >&5
15999 echo $ECHO_N "checking for mach/cthreads.h... $ECHO_C" >&6; }
16000 if test "${ac_cv_header_mach_cthreads_h+set}" = set; then
16001 echo $ECHO_N "(cached) $ECHO_C" >&6
16002 else
16003 ac_cv_header_mach_cthreads_h=$ac_header_preproc
16005 { echo "$as_me:$LINENO: result: $ac_cv_header_mach_cthreads_h" >&5
16006 echo "${ECHO_T}$ac_cv_header_mach_cthreads_h" >&6; }
16009 if test $ac_cv_header_mach_cthreads_h = yes; then
16010 cat >>confdefs.h <<\_ACEOF
16011 #define WITH_THREAD 1
16012 _ACEOF
16014 cat >>confdefs.h <<\_ACEOF
16015 #define C_THREADS 1
16016 _ACEOF
16019 cat >>confdefs.h <<\_ACEOF
16020 #define MACH_C_THREADS 1
16021 _ACEOF
16023 THREADOBJ="Python/thread.o"
16024 else
16026 { echo "$as_me:$LINENO: checking for --with-pth" >&5
16027 echo $ECHO_N "checking for --with-pth... $ECHO_C" >&6; }
16029 # Check whether --with-pth was given.
16030 if test "${with_pth+set}" = set; then
16031 withval=$with_pth; { echo "$as_me:$LINENO: result: $withval" >&5
16032 echo "${ECHO_T}$withval" >&6; }
16033 cat >>confdefs.h <<\_ACEOF
16034 #define WITH_THREAD 1
16035 _ACEOF
16038 cat >>confdefs.h <<\_ACEOF
16039 #define HAVE_PTH 1
16040 _ACEOF
16042 LIBS="-lpth $LIBS"
16043 THREADOBJ="Python/thread.o"
16044 else
16045 { echo "$as_me:$LINENO: result: no" >&5
16046 echo "${ECHO_T}no" >&6; }
16048 # Just looking for pthread_create in libpthread is not enough:
16049 # on HP/UX, pthread.h renames pthread_create to a different symbol name.
16050 # So we really have to include pthread.h, and then link.
16051 _libs=$LIBS
16052 LIBS="$LIBS -lpthread"
16053 { echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
16054 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6; }
16055 cat >conftest.$ac_ext <<_ACEOF
16056 /* confdefs.h. */
16057 _ACEOF
16058 cat confdefs.h >>conftest.$ac_ext
16059 cat >>conftest.$ac_ext <<_ACEOF
16060 /* end confdefs.h. */
16061 #include <pthread.h>
16063 void * start_routine (void *arg) { exit (0); }
16065 main ()
16068 pthread_create (NULL, NULL, start_routine, NULL)
16070 return 0;
16072 _ACEOF
16073 rm -f conftest.$ac_objext conftest$ac_exeext
16074 if { (ac_try="$ac_link"
16075 case "(($ac_try" in
16076 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16077 *) ac_try_echo=$ac_try;;
16078 esac
16079 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16080 (eval "$ac_link") 2>conftest.er1
16081 ac_status=$?
16082 grep -v '^ *+' conftest.er1 >conftest.err
16083 rm -f conftest.er1
16084 cat conftest.err >&5
16085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16086 (exit $ac_status); } && {
16087 test -z "$ac_c_werror_flag" ||
16088 test ! -s conftest.err
16089 } && test -s conftest$ac_exeext &&
16090 $as_test_x conftest$ac_exeext; then
16092 { echo "$as_me:$LINENO: result: yes" >&5
16093 echo "${ECHO_T}yes" >&6; }
16094 cat >>confdefs.h <<\_ACEOF
16095 #define WITH_THREAD 1
16096 _ACEOF
16098 posix_threads=yes
16099 THREADOBJ="Python/thread.o"
16100 else
16101 echo "$as_me: failed program was:" >&5
16102 sed 's/^/| /' conftest.$ac_ext >&5
16105 LIBS=$_libs
16106 { echo "$as_me:$LINENO: checking for pthread_detach" >&5
16107 echo $ECHO_N "checking for pthread_detach... $ECHO_C" >&6; }
16108 if test "${ac_cv_func_pthread_detach+set}" = set; then
16109 echo $ECHO_N "(cached) $ECHO_C" >&6
16110 else
16111 cat >conftest.$ac_ext <<_ACEOF
16112 /* confdefs.h. */
16113 _ACEOF
16114 cat confdefs.h >>conftest.$ac_ext
16115 cat >>conftest.$ac_ext <<_ACEOF
16116 /* end confdefs.h. */
16117 /* Define pthread_detach to an innocuous variant, in case <limits.h> declares pthread_detach.
16118 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16119 #define pthread_detach innocuous_pthread_detach
16121 /* System header to define __stub macros and hopefully few prototypes,
16122 which can conflict with char pthread_detach (); below.
16123 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16124 <limits.h> exists even on freestanding compilers. */
16126 #ifdef __STDC__
16127 # include <limits.h>
16128 #else
16129 # include <assert.h>
16130 #endif
16132 #undef pthread_detach
16134 /* Override any GCC internal prototype to avoid an error.
16135 Use char because int might match the return type of a GCC
16136 builtin and then its argument prototype would still apply. */
16137 #ifdef __cplusplus
16138 extern "C"
16139 #endif
16140 char pthread_detach ();
16141 /* The GNU C library defines this for functions which it implements
16142 to always fail with ENOSYS. Some functions are actually named
16143 something starting with __ and the normal name is an alias. */
16144 #if defined __stub_pthread_detach || defined __stub___pthread_detach
16145 choke me
16146 #endif
16149 main ()
16151 return pthread_detach ();
16153 return 0;
16155 _ACEOF
16156 rm -f conftest.$ac_objext conftest$ac_exeext
16157 if { (ac_try="$ac_link"
16158 case "(($ac_try" in
16159 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16160 *) ac_try_echo=$ac_try;;
16161 esac
16162 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16163 (eval "$ac_link") 2>conftest.er1
16164 ac_status=$?
16165 grep -v '^ *+' conftest.er1 >conftest.err
16166 rm -f conftest.er1
16167 cat conftest.err >&5
16168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16169 (exit $ac_status); } && {
16170 test -z "$ac_c_werror_flag" ||
16171 test ! -s conftest.err
16172 } && test -s conftest$ac_exeext &&
16173 $as_test_x conftest$ac_exeext; then
16174 ac_cv_func_pthread_detach=yes
16175 else
16176 echo "$as_me: failed program was:" >&5
16177 sed 's/^/| /' conftest.$ac_ext >&5
16179 ac_cv_func_pthread_detach=no
16182 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16183 conftest$ac_exeext conftest.$ac_ext
16185 { echo "$as_me:$LINENO: result: $ac_cv_func_pthread_detach" >&5
16186 echo "${ECHO_T}$ac_cv_func_pthread_detach" >&6; }
16187 if test $ac_cv_func_pthread_detach = yes; then
16188 cat >>confdefs.h <<\_ACEOF
16189 #define WITH_THREAD 1
16190 _ACEOF
16192 posix_threads=yes
16193 THREADOBJ="Python/thread.o"
16194 else
16196 if test "${ac_cv_header_atheos_threads_h+set}" = set; then
16197 { echo "$as_me:$LINENO: checking for atheos/threads.h" >&5
16198 echo $ECHO_N "checking for atheos/threads.h... $ECHO_C" >&6; }
16199 if test "${ac_cv_header_atheos_threads_h+set}" = set; then
16200 echo $ECHO_N "(cached) $ECHO_C" >&6
16202 { echo "$as_me:$LINENO: result: $ac_cv_header_atheos_threads_h" >&5
16203 echo "${ECHO_T}$ac_cv_header_atheos_threads_h" >&6; }
16204 else
16205 # Is the header compilable?
16206 { echo "$as_me:$LINENO: checking atheos/threads.h usability" >&5
16207 echo $ECHO_N "checking atheos/threads.h usability... $ECHO_C" >&6; }
16208 cat >conftest.$ac_ext <<_ACEOF
16209 /* confdefs.h. */
16210 _ACEOF
16211 cat confdefs.h >>conftest.$ac_ext
16212 cat >>conftest.$ac_ext <<_ACEOF
16213 /* end confdefs.h. */
16214 $ac_includes_default
16215 #include <atheos/threads.h>
16216 _ACEOF
16217 rm -f conftest.$ac_objext
16218 if { (ac_try="$ac_compile"
16219 case "(($ac_try" in
16220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16221 *) ac_try_echo=$ac_try;;
16222 esac
16223 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16224 (eval "$ac_compile") 2>conftest.er1
16225 ac_status=$?
16226 grep -v '^ *+' conftest.er1 >conftest.err
16227 rm -f conftest.er1
16228 cat conftest.err >&5
16229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16230 (exit $ac_status); } && {
16231 test -z "$ac_c_werror_flag" ||
16232 test ! -s conftest.err
16233 } && test -s conftest.$ac_objext; then
16234 ac_header_compiler=yes
16235 else
16236 echo "$as_me: failed program was:" >&5
16237 sed 's/^/| /' conftest.$ac_ext >&5
16239 ac_header_compiler=no
16242 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16243 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16244 echo "${ECHO_T}$ac_header_compiler" >&6; }
16246 # Is the header present?
16247 { echo "$as_me:$LINENO: checking atheos/threads.h presence" >&5
16248 echo $ECHO_N "checking atheos/threads.h presence... $ECHO_C" >&6; }
16249 cat >conftest.$ac_ext <<_ACEOF
16250 /* confdefs.h. */
16251 _ACEOF
16252 cat confdefs.h >>conftest.$ac_ext
16253 cat >>conftest.$ac_ext <<_ACEOF
16254 /* end confdefs.h. */
16255 #include <atheos/threads.h>
16256 _ACEOF
16257 if { (ac_try="$ac_cpp conftest.$ac_ext"
16258 case "(($ac_try" in
16259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16260 *) ac_try_echo=$ac_try;;
16261 esac
16262 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16263 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16264 ac_status=$?
16265 grep -v '^ *+' conftest.er1 >conftest.err
16266 rm -f conftest.er1
16267 cat conftest.err >&5
16268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16269 (exit $ac_status); } >/dev/null && {
16270 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16271 test ! -s conftest.err
16272 }; then
16273 ac_header_preproc=yes
16274 else
16275 echo "$as_me: failed program was:" >&5
16276 sed 's/^/| /' conftest.$ac_ext >&5
16278 ac_header_preproc=no
16281 rm -f conftest.err conftest.$ac_ext
16282 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16283 echo "${ECHO_T}$ac_header_preproc" >&6; }
16285 # So? What about this header?
16286 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16287 yes:no: )
16288 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: accepted by the compiler, rejected by the preprocessor!" >&5
16289 echo "$as_me: WARNING: atheos/threads.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16290 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: proceeding with the compiler's result" >&5
16291 echo "$as_me: WARNING: atheos/threads.h: proceeding with the compiler's result" >&2;}
16292 ac_header_preproc=yes
16294 no:yes:* )
16295 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: present but cannot be compiled" >&5
16296 echo "$as_me: WARNING: atheos/threads.h: present but cannot be compiled" >&2;}
16297 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: check for missing prerequisite headers?" >&5
16298 echo "$as_me: WARNING: atheos/threads.h: check for missing prerequisite headers?" >&2;}
16299 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: see the Autoconf documentation" >&5
16300 echo "$as_me: WARNING: atheos/threads.h: see the Autoconf documentation" >&2;}
16301 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: section \"Present But Cannot Be Compiled\"" >&5
16302 echo "$as_me: WARNING: atheos/threads.h: section \"Present But Cannot Be Compiled\"" >&2;}
16303 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: proceeding with the preprocessor's result" >&5
16304 echo "$as_me: WARNING: atheos/threads.h: proceeding with the preprocessor's result" >&2;}
16305 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: in the future, the compiler will take precedence" >&5
16306 echo "$as_me: WARNING: atheos/threads.h: in the future, the compiler will take precedence" >&2;}
16307 ( cat <<\_ASBOX
16308 ## -------------------------------------- ##
16309 ## Report this to http://bugs.python.org/ ##
16310 ## -------------------------------------- ##
16311 _ASBOX
16312 ) | sed "s/^/$as_me: WARNING: /" >&2
16314 esac
16315 { echo "$as_me:$LINENO: checking for atheos/threads.h" >&5
16316 echo $ECHO_N "checking for atheos/threads.h... $ECHO_C" >&6; }
16317 if test "${ac_cv_header_atheos_threads_h+set}" = set; then
16318 echo $ECHO_N "(cached) $ECHO_C" >&6
16319 else
16320 ac_cv_header_atheos_threads_h=$ac_header_preproc
16322 { echo "$as_me:$LINENO: result: $ac_cv_header_atheos_threads_h" >&5
16323 echo "${ECHO_T}$ac_cv_header_atheos_threads_h" >&6; }
16326 if test $ac_cv_header_atheos_threads_h = yes; then
16327 cat >>confdefs.h <<\_ACEOF
16328 #define WITH_THREAD 1
16329 _ACEOF
16332 cat >>confdefs.h <<\_ACEOF
16333 #define ATHEOS_THREADS 1
16334 _ACEOF
16336 THREADOBJ="Python/thread.o"
16337 else
16339 if test "${ac_cv_header_kernel_OS_h+set}" = set; then
16340 { echo "$as_me:$LINENO: checking for kernel/OS.h" >&5
16341 echo $ECHO_N "checking for kernel/OS.h... $ECHO_C" >&6; }
16342 if test "${ac_cv_header_kernel_OS_h+set}" = set; then
16343 echo $ECHO_N "(cached) $ECHO_C" >&6
16345 { echo "$as_me:$LINENO: result: $ac_cv_header_kernel_OS_h" >&5
16346 echo "${ECHO_T}$ac_cv_header_kernel_OS_h" >&6; }
16347 else
16348 # Is the header compilable?
16349 { echo "$as_me:$LINENO: checking kernel/OS.h usability" >&5
16350 echo $ECHO_N "checking kernel/OS.h usability... $ECHO_C" >&6; }
16351 cat >conftest.$ac_ext <<_ACEOF
16352 /* confdefs.h. */
16353 _ACEOF
16354 cat confdefs.h >>conftest.$ac_ext
16355 cat >>conftest.$ac_ext <<_ACEOF
16356 /* end confdefs.h. */
16357 $ac_includes_default
16358 #include <kernel/OS.h>
16359 _ACEOF
16360 rm -f conftest.$ac_objext
16361 if { (ac_try="$ac_compile"
16362 case "(($ac_try" in
16363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16364 *) ac_try_echo=$ac_try;;
16365 esac
16366 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16367 (eval "$ac_compile") 2>conftest.er1
16368 ac_status=$?
16369 grep -v '^ *+' conftest.er1 >conftest.err
16370 rm -f conftest.er1
16371 cat conftest.err >&5
16372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16373 (exit $ac_status); } && {
16374 test -z "$ac_c_werror_flag" ||
16375 test ! -s conftest.err
16376 } && test -s conftest.$ac_objext; then
16377 ac_header_compiler=yes
16378 else
16379 echo "$as_me: failed program was:" >&5
16380 sed 's/^/| /' conftest.$ac_ext >&5
16382 ac_header_compiler=no
16385 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16386 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16387 echo "${ECHO_T}$ac_header_compiler" >&6; }
16389 # Is the header present?
16390 { echo "$as_me:$LINENO: checking kernel/OS.h presence" >&5
16391 echo $ECHO_N "checking kernel/OS.h presence... $ECHO_C" >&6; }
16392 cat >conftest.$ac_ext <<_ACEOF
16393 /* confdefs.h. */
16394 _ACEOF
16395 cat confdefs.h >>conftest.$ac_ext
16396 cat >>conftest.$ac_ext <<_ACEOF
16397 /* end confdefs.h. */
16398 #include <kernel/OS.h>
16399 _ACEOF
16400 if { (ac_try="$ac_cpp conftest.$ac_ext"
16401 case "(($ac_try" in
16402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16403 *) ac_try_echo=$ac_try;;
16404 esac
16405 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16406 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16407 ac_status=$?
16408 grep -v '^ *+' conftest.er1 >conftest.err
16409 rm -f conftest.er1
16410 cat conftest.err >&5
16411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16412 (exit $ac_status); } >/dev/null && {
16413 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16414 test ! -s conftest.err
16415 }; then
16416 ac_header_preproc=yes
16417 else
16418 echo "$as_me: failed program was:" >&5
16419 sed 's/^/| /' conftest.$ac_ext >&5
16421 ac_header_preproc=no
16424 rm -f conftest.err conftest.$ac_ext
16425 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16426 echo "${ECHO_T}$ac_header_preproc" >&6; }
16428 # So? What about this header?
16429 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16430 yes:no: )
16431 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: accepted by the compiler, rejected by the preprocessor!" >&5
16432 echo "$as_me: WARNING: kernel/OS.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16433 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: proceeding with the compiler's result" >&5
16434 echo "$as_me: WARNING: kernel/OS.h: proceeding with the compiler's result" >&2;}
16435 ac_header_preproc=yes
16437 no:yes:* )
16438 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: present but cannot be compiled" >&5
16439 echo "$as_me: WARNING: kernel/OS.h: present but cannot be compiled" >&2;}
16440 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: check for missing prerequisite headers?" >&5
16441 echo "$as_me: WARNING: kernel/OS.h: check for missing prerequisite headers?" >&2;}
16442 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: see the Autoconf documentation" >&5
16443 echo "$as_me: WARNING: kernel/OS.h: see the Autoconf documentation" >&2;}
16444 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: section \"Present But Cannot Be Compiled\"" >&5
16445 echo "$as_me: WARNING: kernel/OS.h: section \"Present But Cannot Be Compiled\"" >&2;}
16446 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: proceeding with the preprocessor's result" >&5
16447 echo "$as_me: WARNING: kernel/OS.h: proceeding with the preprocessor's result" >&2;}
16448 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: in the future, the compiler will take precedence" >&5
16449 echo "$as_me: WARNING: kernel/OS.h: in the future, the compiler will take precedence" >&2;}
16450 ( cat <<\_ASBOX
16451 ## -------------------------------------- ##
16452 ## Report this to http://bugs.python.org/ ##
16453 ## -------------------------------------- ##
16454 _ASBOX
16455 ) | sed "s/^/$as_me: WARNING: /" >&2
16457 esac
16458 { echo "$as_me:$LINENO: checking for kernel/OS.h" >&5
16459 echo $ECHO_N "checking for kernel/OS.h... $ECHO_C" >&6; }
16460 if test "${ac_cv_header_kernel_OS_h+set}" = set; then
16461 echo $ECHO_N "(cached) $ECHO_C" >&6
16462 else
16463 ac_cv_header_kernel_OS_h=$ac_header_preproc
16465 { echo "$as_me:$LINENO: result: $ac_cv_header_kernel_OS_h" >&5
16466 echo "${ECHO_T}$ac_cv_header_kernel_OS_h" >&6; }
16469 if test $ac_cv_header_kernel_OS_h = yes; then
16470 cat >>confdefs.h <<\_ACEOF
16471 #define WITH_THREAD 1
16472 _ACEOF
16475 cat >>confdefs.h <<\_ACEOF
16476 #define BEOS_THREADS 1
16477 _ACEOF
16479 THREADOBJ="Python/thread.o"
16480 else
16482 { echo "$as_me:$LINENO: checking for pthread_create in -lpthreads" >&5
16483 echo $ECHO_N "checking for pthread_create in -lpthreads... $ECHO_C" >&6; }
16484 if test "${ac_cv_lib_pthreads_pthread_create+set}" = set; then
16485 echo $ECHO_N "(cached) $ECHO_C" >&6
16486 else
16487 ac_check_lib_save_LIBS=$LIBS
16488 LIBS="-lpthreads $LIBS"
16489 cat >conftest.$ac_ext <<_ACEOF
16490 /* confdefs.h. */
16491 _ACEOF
16492 cat confdefs.h >>conftest.$ac_ext
16493 cat >>conftest.$ac_ext <<_ACEOF
16494 /* end confdefs.h. */
16496 /* Override any GCC internal prototype to avoid an error.
16497 Use char because int might match the return type of a GCC
16498 builtin and then its argument prototype would still apply. */
16499 #ifdef __cplusplus
16500 extern "C"
16501 #endif
16502 char pthread_create ();
16504 main ()
16506 return pthread_create ();
16508 return 0;
16510 _ACEOF
16511 rm -f conftest.$ac_objext conftest$ac_exeext
16512 if { (ac_try="$ac_link"
16513 case "(($ac_try" in
16514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16515 *) ac_try_echo=$ac_try;;
16516 esac
16517 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16518 (eval "$ac_link") 2>conftest.er1
16519 ac_status=$?
16520 grep -v '^ *+' conftest.er1 >conftest.err
16521 rm -f conftest.er1
16522 cat conftest.err >&5
16523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16524 (exit $ac_status); } && {
16525 test -z "$ac_c_werror_flag" ||
16526 test ! -s conftest.err
16527 } && test -s conftest$ac_exeext &&
16528 $as_test_x conftest$ac_exeext; then
16529 ac_cv_lib_pthreads_pthread_create=yes
16530 else
16531 echo "$as_me: failed program was:" >&5
16532 sed 's/^/| /' conftest.$ac_ext >&5
16534 ac_cv_lib_pthreads_pthread_create=no
16537 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16538 conftest$ac_exeext conftest.$ac_ext
16539 LIBS=$ac_check_lib_save_LIBS
16541 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_create" >&5
16542 echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_create" >&6; }
16543 if test $ac_cv_lib_pthreads_pthread_create = yes; then
16544 cat >>confdefs.h <<\_ACEOF
16545 #define WITH_THREAD 1
16546 _ACEOF
16548 posix_threads=yes
16549 LIBS="$LIBS -lpthreads"
16550 THREADOBJ="Python/thread.o"
16551 else
16553 { echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
16554 echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6; }
16555 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then
16556 echo $ECHO_N "(cached) $ECHO_C" >&6
16557 else
16558 ac_check_lib_save_LIBS=$LIBS
16559 LIBS="-lc_r $LIBS"
16560 cat >conftest.$ac_ext <<_ACEOF
16561 /* confdefs.h. */
16562 _ACEOF
16563 cat confdefs.h >>conftest.$ac_ext
16564 cat >>conftest.$ac_ext <<_ACEOF
16565 /* end confdefs.h. */
16567 /* Override any GCC internal prototype to avoid an error.
16568 Use char because int might match the return type of a GCC
16569 builtin and then its argument prototype would still apply. */
16570 #ifdef __cplusplus
16571 extern "C"
16572 #endif
16573 char pthread_create ();
16575 main ()
16577 return pthread_create ();
16579 return 0;
16581 _ACEOF
16582 rm -f conftest.$ac_objext conftest$ac_exeext
16583 if { (ac_try="$ac_link"
16584 case "(($ac_try" in
16585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16586 *) ac_try_echo=$ac_try;;
16587 esac
16588 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16589 (eval "$ac_link") 2>conftest.er1
16590 ac_status=$?
16591 grep -v '^ *+' conftest.er1 >conftest.err
16592 rm -f conftest.er1
16593 cat conftest.err >&5
16594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16595 (exit $ac_status); } && {
16596 test -z "$ac_c_werror_flag" ||
16597 test ! -s conftest.err
16598 } && test -s conftest$ac_exeext &&
16599 $as_test_x conftest$ac_exeext; then
16600 ac_cv_lib_c_r_pthread_create=yes
16601 else
16602 echo "$as_me: failed program was:" >&5
16603 sed 's/^/| /' conftest.$ac_ext >&5
16605 ac_cv_lib_c_r_pthread_create=no
16608 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16609 conftest$ac_exeext conftest.$ac_ext
16610 LIBS=$ac_check_lib_save_LIBS
16612 { echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5
16613 echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6; }
16614 if test $ac_cv_lib_c_r_pthread_create = yes; then
16615 cat >>confdefs.h <<\_ACEOF
16616 #define WITH_THREAD 1
16617 _ACEOF
16619 posix_threads=yes
16620 LIBS="$LIBS -lc_r"
16621 THREADOBJ="Python/thread.o"
16622 else
16624 { echo "$as_me:$LINENO: checking for __pthread_create_system in -lpthread" >&5
16625 echo $ECHO_N "checking for __pthread_create_system in -lpthread... $ECHO_C" >&6; }
16626 if test "${ac_cv_lib_pthread___pthread_create_system+set}" = set; then
16627 echo $ECHO_N "(cached) $ECHO_C" >&6
16628 else
16629 ac_check_lib_save_LIBS=$LIBS
16630 LIBS="-lpthread $LIBS"
16631 cat >conftest.$ac_ext <<_ACEOF
16632 /* confdefs.h. */
16633 _ACEOF
16634 cat confdefs.h >>conftest.$ac_ext
16635 cat >>conftest.$ac_ext <<_ACEOF
16636 /* end confdefs.h. */
16638 /* Override any GCC internal prototype to avoid an error.
16639 Use char because int might match the return type of a GCC
16640 builtin and then its argument prototype would still apply. */
16641 #ifdef __cplusplus
16642 extern "C"
16643 #endif
16644 char __pthread_create_system ();
16646 main ()
16648 return __pthread_create_system ();
16650 return 0;
16652 _ACEOF
16653 rm -f conftest.$ac_objext conftest$ac_exeext
16654 if { (ac_try="$ac_link"
16655 case "(($ac_try" in
16656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16657 *) ac_try_echo=$ac_try;;
16658 esac
16659 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16660 (eval "$ac_link") 2>conftest.er1
16661 ac_status=$?
16662 grep -v '^ *+' conftest.er1 >conftest.err
16663 rm -f conftest.er1
16664 cat conftest.err >&5
16665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16666 (exit $ac_status); } && {
16667 test -z "$ac_c_werror_flag" ||
16668 test ! -s conftest.err
16669 } && test -s conftest$ac_exeext &&
16670 $as_test_x conftest$ac_exeext; then
16671 ac_cv_lib_pthread___pthread_create_system=yes
16672 else
16673 echo "$as_me: failed program was:" >&5
16674 sed 's/^/| /' conftest.$ac_ext >&5
16676 ac_cv_lib_pthread___pthread_create_system=no
16679 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16680 conftest$ac_exeext conftest.$ac_ext
16681 LIBS=$ac_check_lib_save_LIBS
16683 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread___pthread_create_system" >&5
16684 echo "${ECHO_T}$ac_cv_lib_pthread___pthread_create_system" >&6; }
16685 if test $ac_cv_lib_pthread___pthread_create_system = yes; then
16686 cat >>confdefs.h <<\_ACEOF
16687 #define WITH_THREAD 1
16688 _ACEOF
16690 posix_threads=yes
16691 LIBS="$LIBS -lpthread"
16692 THREADOBJ="Python/thread.o"
16693 else
16695 { echo "$as_me:$LINENO: checking for pthread_create in -lcma" >&5
16696 echo $ECHO_N "checking for pthread_create in -lcma... $ECHO_C" >&6; }
16697 if test "${ac_cv_lib_cma_pthread_create+set}" = set; then
16698 echo $ECHO_N "(cached) $ECHO_C" >&6
16699 else
16700 ac_check_lib_save_LIBS=$LIBS
16701 LIBS="-lcma $LIBS"
16702 cat >conftest.$ac_ext <<_ACEOF
16703 /* confdefs.h. */
16704 _ACEOF
16705 cat confdefs.h >>conftest.$ac_ext
16706 cat >>conftest.$ac_ext <<_ACEOF
16707 /* end confdefs.h. */
16709 /* Override any GCC internal prototype to avoid an error.
16710 Use char because int might match the return type of a GCC
16711 builtin and then its argument prototype would still apply. */
16712 #ifdef __cplusplus
16713 extern "C"
16714 #endif
16715 char pthread_create ();
16717 main ()
16719 return pthread_create ();
16721 return 0;
16723 _ACEOF
16724 rm -f conftest.$ac_objext conftest$ac_exeext
16725 if { (ac_try="$ac_link"
16726 case "(($ac_try" in
16727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16728 *) ac_try_echo=$ac_try;;
16729 esac
16730 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16731 (eval "$ac_link") 2>conftest.er1
16732 ac_status=$?
16733 grep -v '^ *+' conftest.er1 >conftest.err
16734 rm -f conftest.er1
16735 cat conftest.err >&5
16736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16737 (exit $ac_status); } && {
16738 test -z "$ac_c_werror_flag" ||
16739 test ! -s conftest.err
16740 } && test -s conftest$ac_exeext &&
16741 $as_test_x conftest$ac_exeext; then
16742 ac_cv_lib_cma_pthread_create=yes
16743 else
16744 echo "$as_me: failed program was:" >&5
16745 sed 's/^/| /' conftest.$ac_ext >&5
16747 ac_cv_lib_cma_pthread_create=no
16750 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16751 conftest$ac_exeext conftest.$ac_ext
16752 LIBS=$ac_check_lib_save_LIBS
16754 { echo "$as_me:$LINENO: result: $ac_cv_lib_cma_pthread_create" >&5
16755 echo "${ECHO_T}$ac_cv_lib_cma_pthread_create" >&6; }
16756 if test $ac_cv_lib_cma_pthread_create = yes; then
16757 cat >>confdefs.h <<\_ACEOF
16758 #define WITH_THREAD 1
16759 _ACEOF
16761 posix_threads=yes
16762 LIBS="$LIBS -lcma"
16763 THREADOBJ="Python/thread.o"
16764 else
16766 USE_THREAD_MODULE="#"
16786 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16787 conftest$ac_exeext conftest.$ac_ext
16797 { echo "$as_me:$LINENO: checking for usconfig in -lmpc" >&5
16798 echo $ECHO_N "checking for usconfig in -lmpc... $ECHO_C" >&6; }
16799 if test "${ac_cv_lib_mpc_usconfig+set}" = set; then
16800 echo $ECHO_N "(cached) $ECHO_C" >&6
16801 else
16802 ac_check_lib_save_LIBS=$LIBS
16803 LIBS="-lmpc $LIBS"
16804 cat >conftest.$ac_ext <<_ACEOF
16805 /* confdefs.h. */
16806 _ACEOF
16807 cat confdefs.h >>conftest.$ac_ext
16808 cat >>conftest.$ac_ext <<_ACEOF
16809 /* end confdefs.h. */
16811 /* Override any GCC internal prototype to avoid an error.
16812 Use char because int might match the return type of a GCC
16813 builtin and then its argument prototype would still apply. */
16814 #ifdef __cplusplus
16815 extern "C"
16816 #endif
16817 char usconfig ();
16819 main ()
16821 return usconfig ();
16823 return 0;
16825 _ACEOF
16826 rm -f conftest.$ac_objext conftest$ac_exeext
16827 if { (ac_try="$ac_link"
16828 case "(($ac_try" in
16829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16830 *) ac_try_echo=$ac_try;;
16831 esac
16832 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16833 (eval "$ac_link") 2>conftest.er1
16834 ac_status=$?
16835 grep -v '^ *+' conftest.er1 >conftest.err
16836 rm -f conftest.er1
16837 cat conftest.err >&5
16838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16839 (exit $ac_status); } && {
16840 test -z "$ac_c_werror_flag" ||
16841 test ! -s conftest.err
16842 } && test -s conftest$ac_exeext &&
16843 $as_test_x conftest$ac_exeext; then
16844 ac_cv_lib_mpc_usconfig=yes
16845 else
16846 echo "$as_me: failed program was:" >&5
16847 sed 's/^/| /' conftest.$ac_ext >&5
16849 ac_cv_lib_mpc_usconfig=no
16852 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16853 conftest$ac_exeext conftest.$ac_ext
16854 LIBS=$ac_check_lib_save_LIBS
16856 { echo "$as_me:$LINENO: result: $ac_cv_lib_mpc_usconfig" >&5
16857 echo "${ECHO_T}$ac_cv_lib_mpc_usconfig" >&6; }
16858 if test $ac_cv_lib_mpc_usconfig = yes; then
16859 cat >>confdefs.h <<\_ACEOF
16860 #define WITH_THREAD 1
16861 _ACEOF
16863 LIBS="$LIBS -lmpc"
16864 THREADOBJ="Python/thread.o"
16865 USE_THREAD_MODULE=""
16869 if test "$posix_threads" != "yes"; then
16870 { echo "$as_me:$LINENO: checking for thr_create in -lthread" >&5
16871 echo $ECHO_N "checking for thr_create in -lthread... $ECHO_C" >&6; }
16872 if test "${ac_cv_lib_thread_thr_create+set}" = set; then
16873 echo $ECHO_N "(cached) $ECHO_C" >&6
16874 else
16875 ac_check_lib_save_LIBS=$LIBS
16876 LIBS="-lthread $LIBS"
16877 cat >conftest.$ac_ext <<_ACEOF
16878 /* confdefs.h. */
16879 _ACEOF
16880 cat confdefs.h >>conftest.$ac_ext
16881 cat >>conftest.$ac_ext <<_ACEOF
16882 /* end confdefs.h. */
16884 /* Override any GCC internal prototype to avoid an error.
16885 Use char because int might match the return type of a GCC
16886 builtin and then its argument prototype would still apply. */
16887 #ifdef __cplusplus
16888 extern "C"
16889 #endif
16890 char thr_create ();
16892 main ()
16894 return thr_create ();
16896 return 0;
16898 _ACEOF
16899 rm -f conftest.$ac_objext conftest$ac_exeext
16900 if { (ac_try="$ac_link"
16901 case "(($ac_try" in
16902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16903 *) ac_try_echo=$ac_try;;
16904 esac
16905 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16906 (eval "$ac_link") 2>conftest.er1
16907 ac_status=$?
16908 grep -v '^ *+' conftest.er1 >conftest.err
16909 rm -f conftest.er1
16910 cat conftest.err >&5
16911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16912 (exit $ac_status); } && {
16913 test -z "$ac_c_werror_flag" ||
16914 test ! -s conftest.err
16915 } && test -s conftest$ac_exeext &&
16916 $as_test_x conftest$ac_exeext; then
16917 ac_cv_lib_thread_thr_create=yes
16918 else
16919 echo "$as_me: failed program was:" >&5
16920 sed 's/^/| /' conftest.$ac_ext >&5
16922 ac_cv_lib_thread_thr_create=no
16925 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16926 conftest$ac_exeext conftest.$ac_ext
16927 LIBS=$ac_check_lib_save_LIBS
16929 { echo "$as_me:$LINENO: result: $ac_cv_lib_thread_thr_create" >&5
16930 echo "${ECHO_T}$ac_cv_lib_thread_thr_create" >&6; }
16931 if test $ac_cv_lib_thread_thr_create = yes; then
16932 cat >>confdefs.h <<\_ACEOF
16933 #define WITH_THREAD 1
16934 _ACEOF
16936 LIBS="$LIBS -lthread"
16937 THREADOBJ="Python/thread.o"
16938 USE_THREAD_MODULE=""
16943 if test "$USE_THREAD_MODULE" != "#"
16944 then
16945 # If the above checks didn't disable threads, (at least) OSF1
16946 # needs this '-threads' argument during linking.
16947 case $ac_sys_system in
16948 OSF1) LDLAST=-threads;;
16949 esac
16953 if test "$posix_threads" = "yes"; then
16954 if test "$unistd_defines_pthreads" = "no"; then
16956 cat >>confdefs.h <<\_ACEOF
16957 #define _POSIX_THREADS 1
16958 _ACEOF
16962 # Bug 662787: Using semaphores causes unexplicable hangs on Solaris 8.
16963 case $ac_sys_system/$ac_sys_release in
16964 SunOS/5.6)
16965 cat >>confdefs.h <<\_ACEOF
16966 #define HAVE_PTHREAD_DESTRUCTOR 1
16967 _ACEOF
16970 SunOS/5.8)
16971 cat >>confdefs.h <<\_ACEOF
16972 #define HAVE_BROKEN_POSIX_SEMAPHORES 1
16973 _ACEOF
16976 AIX/5)
16977 cat >>confdefs.h <<\_ACEOF
16978 #define HAVE_BROKEN_POSIX_SEMAPHORES 1
16979 _ACEOF
16982 esac
16984 { echo "$as_me:$LINENO: checking if PTHREAD_SCOPE_SYSTEM is supported" >&5
16985 echo $ECHO_N "checking if PTHREAD_SCOPE_SYSTEM is supported... $ECHO_C" >&6; }
16986 if test "${ac_cv_pthread_system_supported+set}" = set; then
16987 echo $ECHO_N "(cached) $ECHO_C" >&6
16988 else
16989 if test "$cross_compiling" = yes; then
16990 ac_cv_pthread_system_supported=no
16991 else
16992 cat >conftest.$ac_ext <<_ACEOF
16993 /* confdefs.h. */
16994 _ACEOF
16995 cat confdefs.h >>conftest.$ac_ext
16996 cat >>conftest.$ac_ext <<_ACEOF
16997 /* end confdefs.h. */
16998 #include <pthread.h>
16999 void *foo(void *parm) {
17000 return NULL;
17002 main() {
17003 pthread_attr_t attr;
17004 pthread_t id;
17005 if (pthread_attr_init(&attr)) exit(-1);
17006 if (pthread_attr_setscope(&attr, PTHREAD_SCOPE_SYSTEM)) exit(-1);
17007 if (pthread_create(&id, &attr, foo, NULL)) exit(-1);
17008 exit(0);
17010 _ACEOF
17011 rm -f conftest$ac_exeext
17012 if { (ac_try="$ac_link"
17013 case "(($ac_try" in
17014 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17015 *) ac_try_echo=$ac_try;;
17016 esac
17017 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17018 (eval "$ac_link") 2>&5
17019 ac_status=$?
17020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17021 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17022 { (case "(($ac_try" in
17023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17024 *) ac_try_echo=$ac_try;;
17025 esac
17026 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17027 (eval "$ac_try") 2>&5
17028 ac_status=$?
17029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17030 (exit $ac_status); }; }; then
17031 ac_cv_pthread_system_supported=yes
17032 else
17033 echo "$as_me: program exited with status $ac_status" >&5
17034 echo "$as_me: failed program was:" >&5
17035 sed 's/^/| /' conftest.$ac_ext >&5
17037 ( exit $ac_status )
17038 ac_cv_pthread_system_supported=no
17040 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17047 { echo "$as_me:$LINENO: result: $ac_cv_pthread_system_supported" >&5
17048 echo "${ECHO_T}$ac_cv_pthread_system_supported" >&6; }
17049 if test "$ac_cv_pthread_system_supported" = "yes"; then
17051 cat >>confdefs.h <<\_ACEOF
17052 #define PTHREAD_SYSTEM_SCHED_SUPPORTED 1
17053 _ACEOF
17057 for ac_func in pthread_sigmask
17059 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17060 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17061 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17062 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17063 echo $ECHO_N "(cached) $ECHO_C" >&6
17064 else
17065 cat >conftest.$ac_ext <<_ACEOF
17066 /* confdefs.h. */
17067 _ACEOF
17068 cat confdefs.h >>conftest.$ac_ext
17069 cat >>conftest.$ac_ext <<_ACEOF
17070 /* end confdefs.h. */
17071 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17072 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17073 #define $ac_func innocuous_$ac_func
17075 /* System header to define __stub macros and hopefully few prototypes,
17076 which can conflict with char $ac_func (); below.
17077 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17078 <limits.h> exists even on freestanding compilers. */
17080 #ifdef __STDC__
17081 # include <limits.h>
17082 #else
17083 # include <assert.h>
17084 #endif
17086 #undef $ac_func
17088 /* Override any GCC internal prototype to avoid an error.
17089 Use char because int might match the return type of a GCC
17090 builtin and then its argument prototype would still apply. */
17091 #ifdef __cplusplus
17092 extern "C"
17093 #endif
17094 char $ac_func ();
17095 /* The GNU C library defines this for functions which it implements
17096 to always fail with ENOSYS. Some functions are actually named
17097 something starting with __ and the normal name is an alias. */
17098 #if defined __stub_$ac_func || defined __stub___$ac_func
17099 choke me
17100 #endif
17103 main ()
17105 return $ac_func ();
17107 return 0;
17109 _ACEOF
17110 rm -f conftest.$ac_objext conftest$ac_exeext
17111 if { (ac_try="$ac_link"
17112 case "(($ac_try" in
17113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17114 *) ac_try_echo=$ac_try;;
17115 esac
17116 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17117 (eval "$ac_link") 2>conftest.er1
17118 ac_status=$?
17119 grep -v '^ *+' conftest.er1 >conftest.err
17120 rm -f conftest.er1
17121 cat conftest.err >&5
17122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17123 (exit $ac_status); } && {
17124 test -z "$ac_c_werror_flag" ||
17125 test ! -s conftest.err
17126 } && test -s conftest$ac_exeext &&
17127 $as_test_x conftest$ac_exeext; then
17128 eval "$as_ac_var=yes"
17129 else
17130 echo "$as_me: failed program was:" >&5
17131 sed 's/^/| /' conftest.$ac_ext >&5
17133 eval "$as_ac_var=no"
17136 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17137 conftest$ac_exeext conftest.$ac_ext
17139 ac_res=`eval echo '${'$as_ac_var'}'`
17140 { echo "$as_me:$LINENO: result: $ac_res" >&5
17141 echo "${ECHO_T}$ac_res" >&6; }
17142 if test `eval echo '${'$as_ac_var'}'` = yes; then
17143 cat >>confdefs.h <<_ACEOF
17144 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17145 _ACEOF
17146 case $ac_sys_system in
17147 CYGWIN*)
17149 cat >>confdefs.h <<\_ACEOF
17150 #define HAVE_BROKEN_PTHREAD_SIGMASK 1
17151 _ACEOF
17154 esac
17156 done
17161 # Check for enable-ipv6
17164 { echo "$as_me:$LINENO: checking if --enable-ipv6 is specified" >&5
17165 echo $ECHO_N "checking if --enable-ipv6 is specified... $ECHO_C" >&6; }
17166 # Check whether --enable-ipv6 was given.
17167 if test "${enable_ipv6+set}" = set; then
17168 enableval=$enable_ipv6; case "$enableval" in
17170 { echo "$as_me:$LINENO: result: no" >&5
17171 echo "${ECHO_T}no" >&6; }
17172 ipv6=no
17174 *) { echo "$as_me:$LINENO: result: yes" >&5
17175 echo "${ECHO_T}yes" >&6; }
17176 cat >>confdefs.h <<\_ACEOF
17177 #define ENABLE_IPV6 1
17178 _ACEOF
17180 ipv6=yes
17182 esac
17183 else
17185 if test "$cross_compiling" = yes; then
17186 { echo "$as_me:$LINENO: result: no" >&5
17187 echo "${ECHO_T}no" >&6; }
17188 ipv6=no
17190 else
17191 cat >conftest.$ac_ext <<_ACEOF
17192 /* confdefs.h. */
17193 _ACEOF
17194 cat confdefs.h >>conftest.$ac_ext
17195 cat >>conftest.$ac_ext <<_ACEOF
17196 /* end confdefs.h. */
17197 /* AF_INET6 available check */
17198 #include <sys/types.h>
17199 #include <sys/socket.h>
17200 main()
17202 if (socket(AF_INET6, SOCK_STREAM, 0) < 0)
17203 exit(1);
17204 else
17205 exit(0);
17208 _ACEOF
17209 rm -f conftest$ac_exeext
17210 if { (ac_try="$ac_link"
17211 case "(($ac_try" in
17212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17213 *) ac_try_echo=$ac_try;;
17214 esac
17215 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17216 (eval "$ac_link") 2>&5
17217 ac_status=$?
17218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17219 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17220 { (case "(($ac_try" in
17221 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17222 *) ac_try_echo=$ac_try;;
17223 esac
17224 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17225 (eval "$ac_try") 2>&5
17226 ac_status=$?
17227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17228 (exit $ac_status); }; }; then
17229 { echo "$as_me:$LINENO: result: yes" >&5
17230 echo "${ECHO_T}yes" >&6; }
17231 ipv6=yes
17232 else
17233 echo "$as_me: program exited with status $ac_status" >&5
17234 echo "$as_me: failed program was:" >&5
17235 sed 's/^/| /' conftest.$ac_ext >&5
17237 ( exit $ac_status )
17238 { echo "$as_me:$LINENO: result: no" >&5
17239 echo "${ECHO_T}no" >&6; }
17240 ipv6=no
17242 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17247 if test "$ipv6" = "yes"; then
17248 { echo "$as_me:$LINENO: checking if RFC2553 API is available" >&5
17249 echo $ECHO_N "checking if RFC2553 API is available... $ECHO_C" >&6; }
17250 cat >conftest.$ac_ext <<_ACEOF
17251 /* confdefs.h. */
17252 _ACEOF
17253 cat confdefs.h >>conftest.$ac_ext
17254 cat >>conftest.$ac_ext <<_ACEOF
17255 /* end confdefs.h. */
17256 #include <sys/types.h>
17257 #include <netinet/in.h>
17259 main ()
17261 struct sockaddr_in6 x;
17262 x.sin6_scope_id;
17264 return 0;
17266 _ACEOF
17267 rm -f conftest.$ac_objext
17268 if { (ac_try="$ac_compile"
17269 case "(($ac_try" in
17270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17271 *) ac_try_echo=$ac_try;;
17272 esac
17273 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17274 (eval "$ac_compile") 2>conftest.er1
17275 ac_status=$?
17276 grep -v '^ *+' conftest.er1 >conftest.err
17277 rm -f conftest.er1
17278 cat conftest.err >&5
17279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17280 (exit $ac_status); } && {
17281 test -z "$ac_c_werror_flag" ||
17282 test ! -s conftest.err
17283 } && test -s conftest.$ac_objext; then
17284 { echo "$as_me:$LINENO: result: yes" >&5
17285 echo "${ECHO_T}yes" >&6; }
17286 ipv6=yes
17287 else
17288 echo "$as_me: failed program was:" >&5
17289 sed 's/^/| /' conftest.$ac_ext >&5
17291 { echo "$as_me:$LINENO: result: no" >&5
17292 echo "${ECHO_T}no" >&6; }
17293 ipv6=no
17296 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17299 if test "$ipv6" = "yes"; then
17300 cat >>confdefs.h <<\_ACEOF
17301 #define ENABLE_IPV6 1
17302 _ACEOF
17309 ipv6type=unknown
17310 ipv6lib=none
17311 ipv6trylibc=no
17313 if test "$ipv6" = "yes"; then
17314 { echo "$as_me:$LINENO: checking ipv6 stack type" >&5
17315 echo $ECHO_N "checking ipv6 stack type... $ECHO_C" >&6; }
17316 for i in inria kame linux-glibc linux-inet6 solaris toshiba v6d zeta;
17318 case $i in
17319 inria)
17320 cat >conftest.$ac_ext <<_ACEOF
17321 /* confdefs.h. */
17322 _ACEOF
17323 cat confdefs.h >>conftest.$ac_ext
17324 cat >>conftest.$ac_ext <<_ACEOF
17325 /* end confdefs.h. */
17327 #include <netinet/in.h>
17328 #ifdef IPV6_INRIA_VERSION
17330 #endif
17331 _ACEOF
17332 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17333 $EGREP "yes" >/dev/null 2>&1; then
17334 ipv6type=$i
17336 rm -f -r conftest*
17339 kame)
17340 cat >conftest.$ac_ext <<_ACEOF
17341 /* confdefs.h. */
17342 _ACEOF
17343 cat confdefs.h >>conftest.$ac_ext
17344 cat >>conftest.$ac_ext <<_ACEOF
17345 /* end confdefs.h. */
17347 #include <netinet/in.h>
17348 #ifdef __KAME__
17350 #endif
17351 _ACEOF
17352 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17353 $EGREP "yes" >/dev/null 2>&1; then
17354 ipv6type=$i;
17355 ipv6lib=inet6
17356 ipv6libdir=/usr/local/v6/lib
17357 ipv6trylibc=yes
17359 rm -f -r conftest*
17362 linux-glibc)
17363 cat >conftest.$ac_ext <<_ACEOF
17364 /* confdefs.h. */
17365 _ACEOF
17366 cat confdefs.h >>conftest.$ac_ext
17367 cat >>conftest.$ac_ext <<_ACEOF
17368 /* end confdefs.h. */
17370 #include <features.h>
17371 #if defined(__GLIBC__) && ((__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2))
17373 #endif
17374 _ACEOF
17375 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17376 $EGREP "yes" >/dev/null 2>&1; then
17377 ipv6type=$i;
17378 ipv6trylibc=yes
17380 rm -f -r conftest*
17383 linux-inet6)
17384 if test -d /usr/inet6; then
17385 ipv6type=$i
17386 ipv6lib=inet6
17387 ipv6libdir=/usr/inet6/lib
17388 BASECFLAGS="-I/usr/inet6/include $BASECFLAGS"
17391 solaris)
17392 if test -f /etc/netconfig; then
17393 if /usr/xpg4/bin/grep -q tcp6 /etc/netconfig; then
17394 ipv6type=$i
17395 ipv6trylibc=yes
17399 toshiba)
17400 cat >conftest.$ac_ext <<_ACEOF
17401 /* confdefs.h. */
17402 _ACEOF
17403 cat confdefs.h >>conftest.$ac_ext
17404 cat >>conftest.$ac_ext <<_ACEOF
17405 /* end confdefs.h. */
17407 #include <sys/param.h>
17408 #ifdef _TOSHIBA_INET6
17410 #endif
17411 _ACEOF
17412 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17413 $EGREP "yes" >/dev/null 2>&1; then
17414 ipv6type=$i;
17415 ipv6lib=inet6;
17416 ipv6libdir=/usr/local/v6/lib
17418 rm -f -r conftest*
17421 v6d)
17422 cat >conftest.$ac_ext <<_ACEOF
17423 /* confdefs.h. */
17424 _ACEOF
17425 cat confdefs.h >>conftest.$ac_ext
17426 cat >>conftest.$ac_ext <<_ACEOF
17427 /* end confdefs.h. */
17429 #include </usr/local/v6/include/sys/v6config.h>
17430 #ifdef __V6D__
17432 #endif
17433 _ACEOF
17434 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17435 $EGREP "yes" >/dev/null 2>&1; then
17436 ipv6type=$i;
17437 ipv6lib=v6;
17438 ipv6libdir=/usr/local/v6/lib;
17439 BASECFLAGS="-I/usr/local/v6/include $BASECFLAGS"
17441 rm -f -r conftest*
17444 zeta)
17445 cat >conftest.$ac_ext <<_ACEOF
17446 /* confdefs.h. */
17447 _ACEOF
17448 cat confdefs.h >>conftest.$ac_ext
17449 cat >>conftest.$ac_ext <<_ACEOF
17450 /* end confdefs.h. */
17452 #include <sys/param.h>
17453 #ifdef _ZETA_MINAMI_INET6
17455 #endif
17456 _ACEOF
17457 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17458 $EGREP "yes" >/dev/null 2>&1; then
17459 ipv6type=$i;
17460 ipv6lib=inet6;
17461 ipv6libdir=/usr/local/v6/lib
17463 rm -f -r conftest*
17466 esac
17467 if test "$ipv6type" != "unknown"; then
17468 break
17470 done
17471 { echo "$as_me:$LINENO: result: $ipv6type" >&5
17472 echo "${ECHO_T}$ipv6type" >&6; }
17475 if test "$ipv6" = "yes" -a "$ipv6lib" != "none"; then
17476 if test -d $ipv6libdir -a -f $ipv6libdir/lib$ipv6lib.a; then
17477 LIBS="-L$ipv6libdir -l$ipv6lib $LIBS"
17478 echo "using lib$ipv6lib"
17479 else
17480 if test $ipv6trylibc = "yes"; then
17481 echo "using libc"
17482 else
17483 echo 'Fatal: no $ipv6lib library found. cannot continue.'
17484 echo "You need to fetch lib$ipv6lib.a from appropriate"
17485 echo 'ipv6 kit and compile beforehand.'
17486 exit 1
17491 { echo "$as_me:$LINENO: checking for OSX 10.5 SDK or later" >&5
17492 echo $ECHO_N "checking for OSX 10.5 SDK or later... $ECHO_C" >&6; }
17493 cat >conftest.$ac_ext <<_ACEOF
17494 /* confdefs.h. */
17495 _ACEOF
17496 cat confdefs.h >>conftest.$ac_ext
17497 cat >>conftest.$ac_ext <<_ACEOF
17498 /* end confdefs.h. */
17499 #include <Carbon/Carbon.h>
17501 main ()
17503 FSIORefNum fRef = 0
17505 return 0;
17507 _ACEOF
17508 rm -f conftest.$ac_objext
17509 if { (ac_try="$ac_compile"
17510 case "(($ac_try" in
17511 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17512 *) ac_try_echo=$ac_try;;
17513 esac
17514 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17515 (eval "$ac_compile") 2>conftest.er1
17516 ac_status=$?
17517 grep -v '^ *+' conftest.er1 >conftest.err
17518 rm -f conftest.er1
17519 cat conftest.err >&5
17520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17521 (exit $ac_status); } && {
17522 test -z "$ac_c_werror_flag" ||
17523 test ! -s conftest.err
17524 } && test -s conftest.$ac_objext; then
17526 cat >>confdefs.h <<\_ACEOF
17527 #define HAVE_OSX105_SDK 1
17528 _ACEOF
17530 { echo "$as_me:$LINENO: result: yes" >&5
17531 echo "${ECHO_T}yes" >&6; }
17532 else
17533 echo "$as_me: failed program was:" >&5
17534 sed 's/^/| /' conftest.$ac_ext >&5
17536 { echo "$as_me:$LINENO: result: no" >&5
17537 echo "${ECHO_T}no" >&6; }
17541 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17543 # Check for --with-doc-strings
17544 { echo "$as_me:$LINENO: checking for --with-doc-strings" >&5
17545 echo $ECHO_N "checking for --with-doc-strings... $ECHO_C" >&6; }
17547 # Check whether --with-doc-strings was given.
17548 if test "${with_doc_strings+set}" = set; then
17549 withval=$with_doc_strings;
17553 if test -z "$with_doc_strings"
17554 then with_doc_strings="yes"
17556 if test "$with_doc_strings" != "no"
17557 then
17559 cat >>confdefs.h <<\_ACEOF
17560 #define WITH_DOC_STRINGS 1
17561 _ACEOF
17564 { echo "$as_me:$LINENO: result: $with_doc_strings" >&5
17565 echo "${ECHO_T}$with_doc_strings" >&6; }
17567 # Check for Python-specific malloc support
17568 { echo "$as_me:$LINENO: checking for --with-tsc" >&5
17569 echo $ECHO_N "checking for --with-tsc... $ECHO_C" >&6; }
17571 # Check whether --with-tsc was given.
17572 if test "${with_tsc+set}" = set; then
17573 withval=$with_tsc;
17574 if test "$withval" != no
17575 then
17577 cat >>confdefs.h <<\_ACEOF
17578 #define WITH_TSC 1
17579 _ACEOF
17581 { echo "$as_me:$LINENO: result: yes" >&5
17582 echo "${ECHO_T}yes" >&6; }
17583 else { echo "$as_me:$LINENO: result: no" >&5
17584 echo "${ECHO_T}no" >&6; }
17586 else
17587 { echo "$as_me:$LINENO: result: no" >&5
17588 echo "${ECHO_T}no" >&6; }
17592 # Check for Python-specific malloc support
17593 { echo "$as_me:$LINENO: checking for --with-pymalloc" >&5
17594 echo $ECHO_N "checking for --with-pymalloc... $ECHO_C" >&6; }
17596 # Check whether --with-pymalloc was given.
17597 if test "${with_pymalloc+set}" = set; then
17598 withval=$with_pymalloc;
17602 if test -z "$with_pymalloc"
17603 then with_pymalloc="yes"
17605 if test "$with_pymalloc" != "no"
17606 then
17608 cat >>confdefs.h <<\_ACEOF
17609 #define WITH_PYMALLOC 1
17610 _ACEOF
17613 { echo "$as_me:$LINENO: result: $with_pymalloc" >&5
17614 echo "${ECHO_T}$with_pymalloc" >&6; }
17616 # Check for Valgrind support
17617 { echo "$as_me:$LINENO: checking for --with-valgrind" >&5
17618 echo $ECHO_N "checking for --with-valgrind... $ECHO_C" >&6; }
17620 # Check whether --with-valgrind was given.
17621 if test "${with_valgrind+set}" = set; then
17622 withval=$with_valgrind;
17623 else
17624 with_valgrind=no
17627 { echo "$as_me:$LINENO: result: $with_valgrind" >&5
17628 echo "${ECHO_T}$with_valgrind" >&6; }
17629 if test "$with_valgrind" != no; then
17630 if test "${ac_cv_header_valgrind_valgrind_h+set}" = set; then
17631 { echo "$as_me:$LINENO: checking for valgrind/valgrind.h" >&5
17632 echo $ECHO_N "checking for valgrind/valgrind.h... $ECHO_C" >&6; }
17633 if test "${ac_cv_header_valgrind_valgrind_h+set}" = set; then
17634 echo $ECHO_N "(cached) $ECHO_C" >&6
17636 { echo "$as_me:$LINENO: result: $ac_cv_header_valgrind_valgrind_h" >&5
17637 echo "${ECHO_T}$ac_cv_header_valgrind_valgrind_h" >&6; }
17638 else
17639 # Is the header compilable?
17640 { echo "$as_me:$LINENO: checking valgrind/valgrind.h usability" >&5
17641 echo $ECHO_N "checking valgrind/valgrind.h usability... $ECHO_C" >&6; }
17642 cat >conftest.$ac_ext <<_ACEOF
17643 /* confdefs.h. */
17644 _ACEOF
17645 cat confdefs.h >>conftest.$ac_ext
17646 cat >>conftest.$ac_ext <<_ACEOF
17647 /* end confdefs.h. */
17648 $ac_includes_default
17649 #include <valgrind/valgrind.h>
17650 _ACEOF
17651 rm -f conftest.$ac_objext
17652 if { (ac_try="$ac_compile"
17653 case "(($ac_try" in
17654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17655 *) ac_try_echo=$ac_try;;
17656 esac
17657 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17658 (eval "$ac_compile") 2>conftest.er1
17659 ac_status=$?
17660 grep -v '^ *+' conftest.er1 >conftest.err
17661 rm -f conftest.er1
17662 cat conftest.err >&5
17663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17664 (exit $ac_status); } && {
17665 test -z "$ac_c_werror_flag" ||
17666 test ! -s conftest.err
17667 } && test -s conftest.$ac_objext; then
17668 ac_header_compiler=yes
17669 else
17670 echo "$as_me: failed program was:" >&5
17671 sed 's/^/| /' conftest.$ac_ext >&5
17673 ac_header_compiler=no
17676 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17677 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17678 echo "${ECHO_T}$ac_header_compiler" >&6; }
17680 # Is the header present?
17681 { echo "$as_me:$LINENO: checking valgrind/valgrind.h presence" >&5
17682 echo $ECHO_N "checking valgrind/valgrind.h presence... $ECHO_C" >&6; }
17683 cat >conftest.$ac_ext <<_ACEOF
17684 /* confdefs.h. */
17685 _ACEOF
17686 cat confdefs.h >>conftest.$ac_ext
17687 cat >>conftest.$ac_ext <<_ACEOF
17688 /* end confdefs.h. */
17689 #include <valgrind/valgrind.h>
17690 _ACEOF
17691 if { (ac_try="$ac_cpp conftest.$ac_ext"
17692 case "(($ac_try" in
17693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17694 *) ac_try_echo=$ac_try;;
17695 esac
17696 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17697 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17698 ac_status=$?
17699 grep -v '^ *+' conftest.er1 >conftest.err
17700 rm -f conftest.er1
17701 cat conftest.err >&5
17702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17703 (exit $ac_status); } >/dev/null && {
17704 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17705 test ! -s conftest.err
17706 }; then
17707 ac_header_preproc=yes
17708 else
17709 echo "$as_me: failed program was:" >&5
17710 sed 's/^/| /' conftest.$ac_ext >&5
17712 ac_header_preproc=no
17715 rm -f conftest.err conftest.$ac_ext
17716 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17717 echo "${ECHO_T}$ac_header_preproc" >&6; }
17719 # So? What about this header?
17720 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17721 yes:no: )
17722 { echo "$as_me:$LINENO: WARNING: valgrind/valgrind.h: accepted by the compiler, rejected by the preprocessor!" >&5
17723 echo "$as_me: WARNING: valgrind/valgrind.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17724 { echo "$as_me:$LINENO: WARNING: valgrind/valgrind.h: proceeding with the compiler's result" >&5
17725 echo "$as_me: WARNING: valgrind/valgrind.h: proceeding with the compiler's result" >&2;}
17726 ac_header_preproc=yes
17728 no:yes:* )
17729 { echo "$as_me:$LINENO: WARNING: valgrind/valgrind.h: present but cannot be compiled" >&5
17730 echo "$as_me: WARNING: valgrind/valgrind.h: present but cannot be compiled" >&2;}
17731 { echo "$as_me:$LINENO: WARNING: valgrind/valgrind.h: check for missing prerequisite headers?" >&5
17732 echo "$as_me: WARNING: valgrind/valgrind.h: check for missing prerequisite headers?" >&2;}
17733 { echo "$as_me:$LINENO: WARNING: valgrind/valgrind.h: see the Autoconf documentation" >&5
17734 echo "$as_me: WARNING: valgrind/valgrind.h: see the Autoconf documentation" >&2;}
17735 { echo "$as_me:$LINENO: WARNING: valgrind/valgrind.h: section \"Present But Cannot Be Compiled\"" >&5
17736 echo "$as_me: WARNING: valgrind/valgrind.h: section \"Present But Cannot Be Compiled\"" >&2;}
17737 { echo "$as_me:$LINENO: WARNING: valgrind/valgrind.h: proceeding with the preprocessor's result" >&5
17738 echo "$as_me: WARNING: valgrind/valgrind.h: proceeding with the preprocessor's result" >&2;}
17739 { echo "$as_me:$LINENO: WARNING: valgrind/valgrind.h: in the future, the compiler will take precedence" >&5
17740 echo "$as_me: WARNING: valgrind/valgrind.h: in the future, the compiler will take precedence" >&2;}
17741 ( cat <<\_ASBOX
17742 ## -------------------------------------- ##
17743 ## Report this to http://bugs.python.org/ ##
17744 ## -------------------------------------- ##
17745 _ASBOX
17746 ) | sed "s/^/$as_me: WARNING: /" >&2
17748 esac
17749 { echo "$as_me:$LINENO: checking for valgrind/valgrind.h" >&5
17750 echo $ECHO_N "checking for valgrind/valgrind.h... $ECHO_C" >&6; }
17751 if test "${ac_cv_header_valgrind_valgrind_h+set}" = set; then
17752 echo $ECHO_N "(cached) $ECHO_C" >&6
17753 else
17754 ac_cv_header_valgrind_valgrind_h=$ac_header_preproc
17756 { echo "$as_me:$LINENO: result: $ac_cv_header_valgrind_valgrind_h" >&5
17757 echo "${ECHO_T}$ac_cv_header_valgrind_valgrind_h" >&6; }
17760 if test $ac_cv_header_valgrind_valgrind_h = yes; then
17762 cat >>confdefs.h <<\_ACEOF
17763 #define WITH_VALGRIND 1
17764 _ACEOF
17766 else
17767 { { echo "$as_me:$LINENO: error: Valgrind support requested but headers not available" >&5
17768 echo "$as_me: error: Valgrind support requested but headers not available" >&2;}
17769 { (exit 1); exit 1; }; }
17776 # Check for --with-wctype-functions
17777 { echo "$as_me:$LINENO: checking for --with-wctype-functions" >&5
17778 echo $ECHO_N "checking for --with-wctype-functions... $ECHO_C" >&6; }
17780 # Check whether --with-wctype-functions was given.
17781 if test "${with_wctype_functions+set}" = set; then
17782 withval=$with_wctype_functions;
17783 if test "$withval" != no
17784 then
17786 cat >>confdefs.h <<\_ACEOF
17787 #define WANT_WCTYPE_FUNCTIONS 1
17788 _ACEOF
17790 { echo "$as_me:$LINENO: result: yes" >&5
17791 echo "${ECHO_T}yes" >&6; }
17792 else { echo "$as_me:$LINENO: result: no" >&5
17793 echo "${ECHO_T}no" >&6; }
17795 else
17796 { echo "$as_me:$LINENO: result: no" >&5
17797 echo "${ECHO_T}no" >&6; }
17801 # -I${DLINCLDIR} is added to the compile rule for importdl.o
17803 DLINCLDIR=.
17805 # the dlopen() function means we might want to use dynload_shlib.o. some
17806 # platforms, such as AIX, have dlopen(), but don't want to use it.
17808 for ac_func in dlopen
17810 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17811 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17812 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17813 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17814 echo $ECHO_N "(cached) $ECHO_C" >&6
17815 else
17816 cat >conftest.$ac_ext <<_ACEOF
17817 /* confdefs.h. */
17818 _ACEOF
17819 cat confdefs.h >>conftest.$ac_ext
17820 cat >>conftest.$ac_ext <<_ACEOF
17821 /* end confdefs.h. */
17822 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17823 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17824 #define $ac_func innocuous_$ac_func
17826 /* System header to define __stub macros and hopefully few prototypes,
17827 which can conflict with char $ac_func (); below.
17828 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17829 <limits.h> exists even on freestanding compilers. */
17831 #ifdef __STDC__
17832 # include <limits.h>
17833 #else
17834 # include <assert.h>
17835 #endif
17837 #undef $ac_func
17839 /* Override any GCC internal prototype to avoid an error.
17840 Use char because int might match the return type of a GCC
17841 builtin and then its argument prototype would still apply. */
17842 #ifdef __cplusplus
17843 extern "C"
17844 #endif
17845 char $ac_func ();
17846 /* The GNU C library defines this for functions which it implements
17847 to always fail with ENOSYS. Some functions are actually named
17848 something starting with __ and the normal name is an alias. */
17849 #if defined __stub_$ac_func || defined __stub___$ac_func
17850 choke me
17851 #endif
17854 main ()
17856 return $ac_func ();
17858 return 0;
17860 _ACEOF
17861 rm -f conftest.$ac_objext conftest$ac_exeext
17862 if { (ac_try="$ac_link"
17863 case "(($ac_try" in
17864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17865 *) ac_try_echo=$ac_try;;
17866 esac
17867 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17868 (eval "$ac_link") 2>conftest.er1
17869 ac_status=$?
17870 grep -v '^ *+' conftest.er1 >conftest.err
17871 rm -f conftest.er1
17872 cat conftest.err >&5
17873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17874 (exit $ac_status); } && {
17875 test -z "$ac_c_werror_flag" ||
17876 test ! -s conftest.err
17877 } && test -s conftest$ac_exeext &&
17878 $as_test_x conftest$ac_exeext; then
17879 eval "$as_ac_var=yes"
17880 else
17881 echo "$as_me: failed program was:" >&5
17882 sed 's/^/| /' conftest.$ac_ext >&5
17884 eval "$as_ac_var=no"
17887 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17888 conftest$ac_exeext conftest.$ac_ext
17890 ac_res=`eval echo '${'$as_ac_var'}'`
17891 { echo "$as_me:$LINENO: result: $ac_res" >&5
17892 echo "${ECHO_T}$ac_res" >&6; }
17893 if test `eval echo '${'$as_ac_var'}'` = yes; then
17894 cat >>confdefs.h <<_ACEOF
17895 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17896 _ACEOF
17899 done
17902 # DYNLOADFILE specifies which dynload_*.o file we will use for dynamic
17903 # loading of modules.
17905 { echo "$as_me:$LINENO: checking DYNLOADFILE" >&5
17906 echo $ECHO_N "checking DYNLOADFILE... $ECHO_C" >&6; }
17907 if test -z "$DYNLOADFILE"
17908 then
17909 case $ac_sys_system/$ac_sys_release in
17910 AIX*) # Use dynload_shlib.c and dlopen() if we have it; otherwise dynload_aix.c
17911 if test "$ac_cv_func_dlopen" = yes
17912 then DYNLOADFILE="dynload_shlib.o"
17913 else DYNLOADFILE="dynload_aix.o"
17916 BeOS*) DYNLOADFILE="dynload_beos.o";;
17917 hp*|HP*) DYNLOADFILE="dynload_hpux.o";;
17918 # Use dynload_next.c only on 10.2 and below, which don't have native dlopen()
17919 Darwin/[0156]\..*) DYNLOADFILE="dynload_next.o";;
17920 atheos*) DYNLOADFILE="dynload_atheos.o";;
17922 # use dynload_shlib.c and dlopen() if we have it; otherwise stub
17923 # out any dynamic loading
17924 if test "$ac_cv_func_dlopen" = yes
17925 then DYNLOADFILE="dynload_shlib.o"
17926 else DYNLOADFILE="dynload_stub.o"
17929 esac
17931 { echo "$as_me:$LINENO: result: $DYNLOADFILE" >&5
17932 echo "${ECHO_T}$DYNLOADFILE" >&6; }
17933 if test "$DYNLOADFILE" != "dynload_stub.o"
17934 then
17936 cat >>confdefs.h <<\_ACEOF
17937 #define HAVE_DYNAMIC_LOADING 1
17938 _ACEOF
17942 # MACHDEP_OBJS can be set to platform-specific object files needed by Python
17945 { echo "$as_me:$LINENO: checking MACHDEP_OBJS" >&5
17946 echo $ECHO_N "checking MACHDEP_OBJS... $ECHO_C" >&6; }
17947 if test -z "$MACHDEP_OBJS"
17948 then
17949 MACHDEP_OBJS=$extra_machdep_objs
17950 else
17951 MACHDEP_OBJS="$MACHDEP_OBJS $extra_machdep_objs"
17953 { echo "$as_me:$LINENO: result: MACHDEP_OBJS" >&5
17954 echo "${ECHO_T}MACHDEP_OBJS" >&6; }
17956 # checks for library functions
18056 for ac_func in alarm setitimer getitimer bind_textdomain_codeset chown \
18057 clock confstr ctermid execv fchmod fchown fork fpathconf ftime ftruncate \
18058 gai_strerror getgroups getlogin getloadavg getpeername getpgid getpid \
18059 getpriority getresuid getresgid getpwent getspnam getspent getsid getwd \
18060 initgroups kill killpg lchmod lchown lstat mkfifo mknod mktime \
18061 mremap nice pathconf pause plock poll pthread_init \
18062 putenv readlink realpath \
18063 select sem_open sem_timedwait sem_getvalue sem_unlink setegid seteuid \
18064 setgid \
18065 setlocale setregid setreuid setsid setpgid setpgrp setuid setvbuf snprintf \
18066 setlocale setregid setreuid setresuid setresgid \
18067 setsid setpgid setpgrp setuid setvbuf snprintf \
18068 sigaction siginterrupt sigrelse strftime \
18069 sysconf tcgetpgrp tcsetpgrp tempnam timegm times tmpfile tmpnam tmpnam_r \
18070 truncate uname unsetenv utimes waitpid wait3 wait4 wcscoll _getpty
18072 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18073 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18074 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18075 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18076 echo $ECHO_N "(cached) $ECHO_C" >&6
18077 else
18078 cat >conftest.$ac_ext <<_ACEOF
18079 /* confdefs.h. */
18080 _ACEOF
18081 cat confdefs.h >>conftest.$ac_ext
18082 cat >>conftest.$ac_ext <<_ACEOF
18083 /* end confdefs.h. */
18084 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18085 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18086 #define $ac_func innocuous_$ac_func
18088 /* System header to define __stub macros and hopefully few prototypes,
18089 which can conflict with char $ac_func (); below.
18090 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18091 <limits.h> exists even on freestanding compilers. */
18093 #ifdef __STDC__
18094 # include <limits.h>
18095 #else
18096 # include <assert.h>
18097 #endif
18099 #undef $ac_func
18101 /* Override any GCC internal prototype to avoid an error.
18102 Use char because int might match the return type of a GCC
18103 builtin and then its argument prototype would still apply. */
18104 #ifdef __cplusplus
18105 extern "C"
18106 #endif
18107 char $ac_func ();
18108 /* The GNU C library defines this for functions which it implements
18109 to always fail with ENOSYS. Some functions are actually named
18110 something starting with __ and the normal name is an alias. */
18111 #if defined __stub_$ac_func || defined __stub___$ac_func
18112 choke me
18113 #endif
18116 main ()
18118 return $ac_func ();
18120 return 0;
18122 _ACEOF
18123 rm -f conftest.$ac_objext conftest$ac_exeext
18124 if { (ac_try="$ac_link"
18125 case "(($ac_try" in
18126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18127 *) ac_try_echo=$ac_try;;
18128 esac
18129 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18130 (eval "$ac_link") 2>conftest.er1
18131 ac_status=$?
18132 grep -v '^ *+' conftest.er1 >conftest.err
18133 rm -f conftest.er1
18134 cat conftest.err >&5
18135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18136 (exit $ac_status); } && {
18137 test -z "$ac_c_werror_flag" ||
18138 test ! -s conftest.err
18139 } && test -s conftest$ac_exeext &&
18140 $as_test_x conftest$ac_exeext; then
18141 eval "$as_ac_var=yes"
18142 else
18143 echo "$as_me: failed program was:" >&5
18144 sed 's/^/| /' conftest.$ac_ext >&5
18146 eval "$as_ac_var=no"
18149 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18150 conftest$ac_exeext conftest.$ac_ext
18152 ac_res=`eval echo '${'$as_ac_var'}'`
18153 { echo "$as_me:$LINENO: result: $ac_res" >&5
18154 echo "${ECHO_T}$ac_res" >&6; }
18155 if test `eval echo '${'$as_ac_var'}'` = yes; then
18156 cat >>confdefs.h <<_ACEOF
18157 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18158 _ACEOF
18161 done
18164 # For some functions, having a definition is not sufficient, since
18165 # we want to take their address.
18166 { echo "$as_me:$LINENO: checking for chroot" >&5
18167 echo $ECHO_N "checking for chroot... $ECHO_C" >&6; }
18168 cat >conftest.$ac_ext <<_ACEOF
18169 /* confdefs.h. */
18170 _ACEOF
18171 cat confdefs.h >>conftest.$ac_ext
18172 cat >>conftest.$ac_ext <<_ACEOF
18173 /* end confdefs.h. */
18174 #include <unistd.h>
18176 main ()
18178 void *x=chroot
18180 return 0;
18182 _ACEOF
18183 rm -f conftest.$ac_objext
18184 if { (ac_try="$ac_compile"
18185 case "(($ac_try" in
18186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18187 *) ac_try_echo=$ac_try;;
18188 esac
18189 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18190 (eval "$ac_compile") 2>conftest.er1
18191 ac_status=$?
18192 grep -v '^ *+' conftest.er1 >conftest.err
18193 rm -f conftest.er1
18194 cat conftest.err >&5
18195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18196 (exit $ac_status); } && {
18197 test -z "$ac_c_werror_flag" ||
18198 test ! -s conftest.err
18199 } && test -s conftest.$ac_objext; then
18201 cat >>confdefs.h <<\_ACEOF
18202 #define HAVE_CHROOT 1
18203 _ACEOF
18205 { echo "$as_me:$LINENO: result: yes" >&5
18206 echo "${ECHO_T}yes" >&6; }
18207 else
18208 echo "$as_me: failed program was:" >&5
18209 sed 's/^/| /' conftest.$ac_ext >&5
18211 { echo "$as_me:$LINENO: result: no" >&5
18212 echo "${ECHO_T}no" >&6; }
18216 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18217 { echo "$as_me:$LINENO: checking for link" >&5
18218 echo $ECHO_N "checking for link... $ECHO_C" >&6; }
18219 cat >conftest.$ac_ext <<_ACEOF
18220 /* confdefs.h. */
18221 _ACEOF
18222 cat confdefs.h >>conftest.$ac_ext
18223 cat >>conftest.$ac_ext <<_ACEOF
18224 /* end confdefs.h. */
18225 #include <unistd.h>
18227 main ()
18229 void *x=link
18231 return 0;
18233 _ACEOF
18234 rm -f conftest.$ac_objext
18235 if { (ac_try="$ac_compile"
18236 case "(($ac_try" in
18237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18238 *) ac_try_echo=$ac_try;;
18239 esac
18240 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18241 (eval "$ac_compile") 2>conftest.er1
18242 ac_status=$?
18243 grep -v '^ *+' conftest.er1 >conftest.err
18244 rm -f conftest.er1
18245 cat conftest.err >&5
18246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18247 (exit $ac_status); } && {
18248 test -z "$ac_c_werror_flag" ||
18249 test ! -s conftest.err
18250 } && test -s conftest.$ac_objext; then
18252 cat >>confdefs.h <<\_ACEOF
18253 #define HAVE_LINK 1
18254 _ACEOF
18256 { echo "$as_me:$LINENO: result: yes" >&5
18257 echo "${ECHO_T}yes" >&6; }
18258 else
18259 echo "$as_me: failed program was:" >&5
18260 sed 's/^/| /' conftest.$ac_ext >&5
18262 { echo "$as_me:$LINENO: result: no" >&5
18263 echo "${ECHO_T}no" >&6; }
18267 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18268 { echo "$as_me:$LINENO: checking for symlink" >&5
18269 echo $ECHO_N "checking for symlink... $ECHO_C" >&6; }
18270 cat >conftest.$ac_ext <<_ACEOF
18271 /* confdefs.h. */
18272 _ACEOF
18273 cat confdefs.h >>conftest.$ac_ext
18274 cat >>conftest.$ac_ext <<_ACEOF
18275 /* end confdefs.h. */
18276 #include <unistd.h>
18278 main ()
18280 void *x=symlink
18282 return 0;
18284 _ACEOF
18285 rm -f conftest.$ac_objext
18286 if { (ac_try="$ac_compile"
18287 case "(($ac_try" in
18288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18289 *) ac_try_echo=$ac_try;;
18290 esac
18291 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18292 (eval "$ac_compile") 2>conftest.er1
18293 ac_status=$?
18294 grep -v '^ *+' conftest.er1 >conftest.err
18295 rm -f conftest.er1
18296 cat conftest.err >&5
18297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18298 (exit $ac_status); } && {
18299 test -z "$ac_c_werror_flag" ||
18300 test ! -s conftest.err
18301 } && test -s conftest.$ac_objext; then
18303 cat >>confdefs.h <<\_ACEOF
18304 #define HAVE_SYMLINK 1
18305 _ACEOF
18307 { echo "$as_me:$LINENO: result: yes" >&5
18308 echo "${ECHO_T}yes" >&6; }
18309 else
18310 echo "$as_me: failed program was:" >&5
18311 sed 's/^/| /' conftest.$ac_ext >&5
18313 { echo "$as_me:$LINENO: result: no" >&5
18314 echo "${ECHO_T}no" >&6; }
18318 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18319 { echo "$as_me:$LINENO: checking for fchdir" >&5
18320 echo $ECHO_N "checking for fchdir... $ECHO_C" >&6; }
18321 cat >conftest.$ac_ext <<_ACEOF
18322 /* confdefs.h. */
18323 _ACEOF
18324 cat confdefs.h >>conftest.$ac_ext
18325 cat >>conftest.$ac_ext <<_ACEOF
18326 /* end confdefs.h. */
18327 #include <unistd.h>
18329 main ()
18331 void *x=fchdir
18333 return 0;
18335 _ACEOF
18336 rm -f conftest.$ac_objext
18337 if { (ac_try="$ac_compile"
18338 case "(($ac_try" in
18339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18340 *) ac_try_echo=$ac_try;;
18341 esac
18342 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18343 (eval "$ac_compile") 2>conftest.er1
18344 ac_status=$?
18345 grep -v '^ *+' conftest.er1 >conftest.err
18346 rm -f conftest.er1
18347 cat conftest.err >&5
18348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18349 (exit $ac_status); } && {
18350 test -z "$ac_c_werror_flag" ||
18351 test ! -s conftest.err
18352 } && test -s conftest.$ac_objext; then
18354 cat >>confdefs.h <<\_ACEOF
18355 #define HAVE_FCHDIR 1
18356 _ACEOF
18358 { echo "$as_me:$LINENO: result: yes" >&5
18359 echo "${ECHO_T}yes" >&6; }
18360 else
18361 echo "$as_me: failed program was:" >&5
18362 sed 's/^/| /' conftest.$ac_ext >&5
18364 { echo "$as_me:$LINENO: result: no" >&5
18365 echo "${ECHO_T}no" >&6; }
18369 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18370 { echo "$as_me:$LINENO: checking for fsync" >&5
18371 echo $ECHO_N "checking for fsync... $ECHO_C" >&6; }
18372 cat >conftest.$ac_ext <<_ACEOF
18373 /* confdefs.h. */
18374 _ACEOF
18375 cat confdefs.h >>conftest.$ac_ext
18376 cat >>conftest.$ac_ext <<_ACEOF
18377 /* end confdefs.h. */
18378 #include <unistd.h>
18380 main ()
18382 void *x=fsync
18384 return 0;
18386 _ACEOF
18387 rm -f conftest.$ac_objext
18388 if { (ac_try="$ac_compile"
18389 case "(($ac_try" in
18390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18391 *) ac_try_echo=$ac_try;;
18392 esac
18393 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18394 (eval "$ac_compile") 2>conftest.er1
18395 ac_status=$?
18396 grep -v '^ *+' conftest.er1 >conftest.err
18397 rm -f conftest.er1
18398 cat conftest.err >&5
18399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18400 (exit $ac_status); } && {
18401 test -z "$ac_c_werror_flag" ||
18402 test ! -s conftest.err
18403 } && test -s conftest.$ac_objext; then
18405 cat >>confdefs.h <<\_ACEOF
18406 #define HAVE_FSYNC 1
18407 _ACEOF
18409 { echo "$as_me:$LINENO: result: yes" >&5
18410 echo "${ECHO_T}yes" >&6; }
18411 else
18412 echo "$as_me: failed program was:" >&5
18413 sed 's/^/| /' conftest.$ac_ext >&5
18415 { echo "$as_me:$LINENO: result: no" >&5
18416 echo "${ECHO_T}no" >&6; }
18420 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18421 { echo "$as_me:$LINENO: checking for fdatasync" >&5
18422 echo $ECHO_N "checking for fdatasync... $ECHO_C" >&6; }
18423 cat >conftest.$ac_ext <<_ACEOF
18424 /* confdefs.h. */
18425 _ACEOF
18426 cat confdefs.h >>conftest.$ac_ext
18427 cat >>conftest.$ac_ext <<_ACEOF
18428 /* end confdefs.h. */
18429 #include <unistd.h>
18431 main ()
18433 void *x=fdatasync
18435 return 0;
18437 _ACEOF
18438 rm -f conftest.$ac_objext
18439 if { (ac_try="$ac_compile"
18440 case "(($ac_try" in
18441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18442 *) ac_try_echo=$ac_try;;
18443 esac
18444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18445 (eval "$ac_compile") 2>conftest.er1
18446 ac_status=$?
18447 grep -v '^ *+' conftest.er1 >conftest.err
18448 rm -f conftest.er1
18449 cat conftest.err >&5
18450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18451 (exit $ac_status); } && {
18452 test -z "$ac_c_werror_flag" ||
18453 test ! -s conftest.err
18454 } && test -s conftest.$ac_objext; then
18456 cat >>confdefs.h <<\_ACEOF
18457 #define HAVE_FDATASYNC 1
18458 _ACEOF
18460 { echo "$as_me:$LINENO: result: yes" >&5
18461 echo "${ECHO_T}yes" >&6; }
18462 else
18463 echo "$as_me: failed program was:" >&5
18464 sed 's/^/| /' conftest.$ac_ext >&5
18466 { echo "$as_me:$LINENO: result: no" >&5
18467 echo "${ECHO_T}no" >&6; }
18471 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18472 { echo "$as_me:$LINENO: checking for epoll" >&5
18473 echo $ECHO_N "checking for epoll... $ECHO_C" >&6; }
18474 cat >conftest.$ac_ext <<_ACEOF
18475 /* confdefs.h. */
18476 _ACEOF
18477 cat confdefs.h >>conftest.$ac_ext
18478 cat >>conftest.$ac_ext <<_ACEOF
18479 /* end confdefs.h. */
18480 #include <sys/epoll.h>
18482 main ()
18484 void *x=epoll_create
18486 return 0;
18488 _ACEOF
18489 rm -f conftest.$ac_objext
18490 if { (ac_try="$ac_compile"
18491 case "(($ac_try" in
18492 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18493 *) ac_try_echo=$ac_try;;
18494 esac
18495 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18496 (eval "$ac_compile") 2>conftest.er1
18497 ac_status=$?
18498 grep -v '^ *+' conftest.er1 >conftest.err
18499 rm -f conftest.er1
18500 cat conftest.err >&5
18501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18502 (exit $ac_status); } && {
18503 test -z "$ac_c_werror_flag" ||
18504 test ! -s conftest.err
18505 } && test -s conftest.$ac_objext; then
18507 cat >>confdefs.h <<\_ACEOF
18508 #define HAVE_EPOLL 1
18509 _ACEOF
18511 { echo "$as_me:$LINENO: result: yes" >&5
18512 echo "${ECHO_T}yes" >&6; }
18513 else
18514 echo "$as_me: failed program was:" >&5
18515 sed 's/^/| /' conftest.$ac_ext >&5
18517 { echo "$as_me:$LINENO: result: no" >&5
18518 echo "${ECHO_T}no" >&6; }
18522 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18523 { echo "$as_me:$LINENO: checking for kqueue" >&5
18524 echo $ECHO_N "checking for kqueue... $ECHO_C" >&6; }
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 #include <sys/types.h>
18533 #include <sys/event.h>
18536 main ()
18538 int x=kqueue()
18540 return 0;
18542 _ACEOF
18543 rm -f conftest.$ac_objext
18544 if { (ac_try="$ac_compile"
18545 case "(($ac_try" in
18546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18547 *) ac_try_echo=$ac_try;;
18548 esac
18549 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18550 (eval "$ac_compile") 2>conftest.er1
18551 ac_status=$?
18552 grep -v '^ *+' conftest.er1 >conftest.err
18553 rm -f conftest.er1
18554 cat conftest.err >&5
18555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18556 (exit $ac_status); } && {
18557 test -z "$ac_c_werror_flag" ||
18558 test ! -s conftest.err
18559 } && test -s conftest.$ac_objext; then
18561 cat >>confdefs.h <<\_ACEOF
18562 #define HAVE_KQUEUE 1
18563 _ACEOF
18565 { echo "$as_me:$LINENO: result: yes" >&5
18566 echo "${ECHO_T}yes" >&6; }
18567 else
18568 echo "$as_me: failed program was:" >&5
18569 sed 's/^/| /' conftest.$ac_ext >&5
18571 { echo "$as_me:$LINENO: result: no" >&5
18572 echo "${ECHO_T}no" >&6; }
18576 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18577 # On some systems (eg. FreeBSD 5), we would find a definition of the
18578 # functions ctermid_r, setgroups in the library, but no prototype
18579 # (e.g. because we use _XOPEN_SOURCE). See whether we can take their
18580 # address to avoid compiler warnings and potential miscompilations
18581 # because of the missing prototypes.
18583 { echo "$as_me:$LINENO: checking for ctermid_r" >&5
18584 echo $ECHO_N "checking for ctermid_r... $ECHO_C" >&6; }
18585 cat >conftest.$ac_ext <<_ACEOF
18586 /* confdefs.h. */
18587 _ACEOF
18588 cat confdefs.h >>conftest.$ac_ext
18589 cat >>conftest.$ac_ext <<_ACEOF
18590 /* end confdefs.h. */
18592 #include "confdefs.h"
18593 #include <stdio.h>
18596 main ()
18598 void* p = ctermid_r
18600 return 0;
18602 _ACEOF
18603 rm -f conftest.$ac_objext
18604 if { (ac_try="$ac_compile"
18605 case "(($ac_try" in
18606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18607 *) ac_try_echo=$ac_try;;
18608 esac
18609 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18610 (eval "$ac_compile") 2>conftest.er1
18611 ac_status=$?
18612 grep -v '^ *+' conftest.er1 >conftest.err
18613 rm -f conftest.er1
18614 cat conftest.err >&5
18615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18616 (exit $ac_status); } && {
18617 test -z "$ac_c_werror_flag" ||
18618 test ! -s conftest.err
18619 } && test -s conftest.$ac_objext; then
18621 cat >>confdefs.h <<\_ACEOF
18622 #define HAVE_CTERMID_R 1
18623 _ACEOF
18625 { echo "$as_me:$LINENO: result: yes" >&5
18626 echo "${ECHO_T}yes" >&6; }
18627 else
18628 echo "$as_me: failed program was:" >&5
18629 sed 's/^/| /' conftest.$ac_ext >&5
18631 { echo "$as_me:$LINENO: result: no" >&5
18632 echo "${ECHO_T}no" >&6; }
18636 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18638 { echo "$as_me:$LINENO: checking for flock" >&5
18639 echo $ECHO_N "checking for flock... $ECHO_C" >&6; }
18640 cat >conftest.$ac_ext <<_ACEOF
18641 /* confdefs.h. */
18642 _ACEOF
18643 cat confdefs.h >>conftest.$ac_ext
18644 cat >>conftest.$ac_ext <<_ACEOF
18645 /* end confdefs.h. */
18647 #include "confdefs.h"
18648 #include <sys/file.h>
18651 main ()
18653 void* p = flock
18655 return 0;
18657 _ACEOF
18658 rm -f conftest.$ac_objext
18659 if { (ac_try="$ac_compile"
18660 case "(($ac_try" in
18661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18662 *) ac_try_echo=$ac_try;;
18663 esac
18664 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18665 (eval "$ac_compile") 2>conftest.er1
18666 ac_status=$?
18667 grep -v '^ *+' conftest.er1 >conftest.err
18668 rm -f conftest.er1
18669 cat conftest.err >&5
18670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18671 (exit $ac_status); } && {
18672 test -z "$ac_c_werror_flag" ||
18673 test ! -s conftest.err
18674 } && test -s conftest.$ac_objext; then
18676 cat >>confdefs.h <<\_ACEOF
18677 #define HAVE_FLOCK 1
18678 _ACEOF
18680 { echo "$as_me:$LINENO: result: yes" >&5
18681 echo "${ECHO_T}yes" >&6; }
18682 else
18683 echo "$as_me: failed program was:" >&5
18684 sed 's/^/| /' conftest.$ac_ext >&5
18686 { echo "$as_me:$LINENO: result: no" >&5
18687 echo "${ECHO_T}no" >&6; }
18691 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18693 { echo "$as_me:$LINENO: checking for getpagesize" >&5
18694 echo $ECHO_N "checking for getpagesize... $ECHO_C" >&6; }
18695 cat >conftest.$ac_ext <<_ACEOF
18696 /* confdefs.h. */
18697 _ACEOF
18698 cat confdefs.h >>conftest.$ac_ext
18699 cat >>conftest.$ac_ext <<_ACEOF
18700 /* end confdefs.h. */
18702 #include "confdefs.h"
18703 #include <unistd.h>
18706 main ()
18708 void* p = getpagesize
18710 return 0;
18712 _ACEOF
18713 rm -f conftest.$ac_objext
18714 if { (ac_try="$ac_compile"
18715 case "(($ac_try" in
18716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18717 *) ac_try_echo=$ac_try;;
18718 esac
18719 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18720 (eval "$ac_compile") 2>conftest.er1
18721 ac_status=$?
18722 grep -v '^ *+' conftest.er1 >conftest.err
18723 rm -f conftest.er1
18724 cat conftest.err >&5
18725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18726 (exit $ac_status); } && {
18727 test -z "$ac_c_werror_flag" ||
18728 test ! -s conftest.err
18729 } && test -s conftest.$ac_objext; then
18731 cat >>confdefs.h <<\_ACEOF
18732 #define HAVE_GETPAGESIZE 1
18733 _ACEOF
18735 { echo "$as_me:$LINENO: result: yes" >&5
18736 echo "${ECHO_T}yes" >&6; }
18737 else
18738 echo "$as_me: failed program was:" >&5
18739 sed 's/^/| /' conftest.$ac_ext >&5
18741 { echo "$as_me:$LINENO: result: no" >&5
18742 echo "${ECHO_T}no" >&6; }
18746 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18748 for ac_prog in true
18750 # Extract the first word of "$ac_prog", so it can be a program name with args.
18751 set dummy $ac_prog; ac_word=$2
18752 { echo "$as_me:$LINENO: checking for $ac_word" >&5
18753 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
18754 if test "${ac_cv_prog_TRUE+set}" = set; then
18755 echo $ECHO_N "(cached) $ECHO_C" >&6
18756 else
18757 if test -n "$TRUE"; then
18758 ac_cv_prog_TRUE="$TRUE" # Let the user override the test.
18759 else
18760 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18761 for as_dir in $PATH
18763 IFS=$as_save_IFS
18764 test -z "$as_dir" && as_dir=.
18765 for ac_exec_ext in '' $ac_executable_extensions; do
18766 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18767 ac_cv_prog_TRUE="$ac_prog"
18768 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18769 break 2
18771 done
18772 done
18773 IFS=$as_save_IFS
18777 TRUE=$ac_cv_prog_TRUE
18778 if test -n "$TRUE"; then
18779 { echo "$as_me:$LINENO: result: $TRUE" >&5
18780 echo "${ECHO_T}$TRUE" >&6; }
18781 else
18782 { echo "$as_me:$LINENO: result: no" >&5
18783 echo "${ECHO_T}no" >&6; }
18787 test -n "$TRUE" && break
18788 done
18789 test -n "$TRUE" || TRUE="/bin/true"
18792 { echo "$as_me:$LINENO: checking for inet_aton in -lc" >&5
18793 echo $ECHO_N "checking for inet_aton in -lc... $ECHO_C" >&6; }
18794 if test "${ac_cv_lib_c_inet_aton+set}" = set; then
18795 echo $ECHO_N "(cached) $ECHO_C" >&6
18796 else
18797 ac_check_lib_save_LIBS=$LIBS
18798 LIBS="-lc $LIBS"
18799 cat >conftest.$ac_ext <<_ACEOF
18800 /* confdefs.h. */
18801 _ACEOF
18802 cat confdefs.h >>conftest.$ac_ext
18803 cat >>conftest.$ac_ext <<_ACEOF
18804 /* end confdefs.h. */
18806 /* Override any GCC internal prototype to avoid an error.
18807 Use char because int might match the return type of a GCC
18808 builtin and then its argument prototype would still apply. */
18809 #ifdef __cplusplus
18810 extern "C"
18811 #endif
18812 char inet_aton ();
18814 main ()
18816 return inet_aton ();
18818 return 0;
18820 _ACEOF
18821 rm -f conftest.$ac_objext conftest$ac_exeext
18822 if { (ac_try="$ac_link"
18823 case "(($ac_try" in
18824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18825 *) ac_try_echo=$ac_try;;
18826 esac
18827 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18828 (eval "$ac_link") 2>conftest.er1
18829 ac_status=$?
18830 grep -v '^ *+' conftest.er1 >conftest.err
18831 rm -f conftest.er1
18832 cat conftest.err >&5
18833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18834 (exit $ac_status); } && {
18835 test -z "$ac_c_werror_flag" ||
18836 test ! -s conftest.err
18837 } && test -s conftest$ac_exeext &&
18838 $as_test_x conftest$ac_exeext; then
18839 ac_cv_lib_c_inet_aton=yes
18840 else
18841 echo "$as_me: failed program was:" >&5
18842 sed 's/^/| /' conftest.$ac_ext >&5
18844 ac_cv_lib_c_inet_aton=no
18847 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18848 conftest$ac_exeext conftest.$ac_ext
18849 LIBS=$ac_check_lib_save_LIBS
18851 { echo "$as_me:$LINENO: result: $ac_cv_lib_c_inet_aton" >&5
18852 echo "${ECHO_T}$ac_cv_lib_c_inet_aton" >&6; }
18853 if test $ac_cv_lib_c_inet_aton = yes; then
18854 $ac_cv_prog_TRUE
18855 else
18857 { echo "$as_me:$LINENO: checking for inet_aton in -lresolv" >&5
18858 echo $ECHO_N "checking for inet_aton in -lresolv... $ECHO_C" >&6; }
18859 if test "${ac_cv_lib_resolv_inet_aton+set}" = set; then
18860 echo $ECHO_N "(cached) $ECHO_C" >&6
18861 else
18862 ac_check_lib_save_LIBS=$LIBS
18863 LIBS="-lresolv $LIBS"
18864 cat >conftest.$ac_ext <<_ACEOF
18865 /* confdefs.h. */
18866 _ACEOF
18867 cat confdefs.h >>conftest.$ac_ext
18868 cat >>conftest.$ac_ext <<_ACEOF
18869 /* end confdefs.h. */
18871 /* Override any GCC internal prototype to avoid an error.
18872 Use char because int might match the return type of a GCC
18873 builtin and then its argument prototype would still apply. */
18874 #ifdef __cplusplus
18875 extern "C"
18876 #endif
18877 char inet_aton ();
18879 main ()
18881 return inet_aton ();
18883 return 0;
18885 _ACEOF
18886 rm -f conftest.$ac_objext conftest$ac_exeext
18887 if { (ac_try="$ac_link"
18888 case "(($ac_try" in
18889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18890 *) ac_try_echo=$ac_try;;
18891 esac
18892 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18893 (eval "$ac_link") 2>conftest.er1
18894 ac_status=$?
18895 grep -v '^ *+' conftest.er1 >conftest.err
18896 rm -f conftest.er1
18897 cat conftest.err >&5
18898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18899 (exit $ac_status); } && {
18900 test -z "$ac_c_werror_flag" ||
18901 test ! -s conftest.err
18902 } && test -s conftest$ac_exeext &&
18903 $as_test_x conftest$ac_exeext; then
18904 ac_cv_lib_resolv_inet_aton=yes
18905 else
18906 echo "$as_me: failed program was:" >&5
18907 sed 's/^/| /' conftest.$ac_ext >&5
18909 ac_cv_lib_resolv_inet_aton=no
18912 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18913 conftest$ac_exeext conftest.$ac_ext
18914 LIBS=$ac_check_lib_save_LIBS
18916 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_aton" >&5
18917 echo "${ECHO_T}$ac_cv_lib_resolv_inet_aton" >&6; }
18918 if test $ac_cv_lib_resolv_inet_aton = yes; then
18919 cat >>confdefs.h <<_ACEOF
18920 #define HAVE_LIBRESOLV 1
18921 _ACEOF
18923 LIBS="-lresolv $LIBS"
18931 # On Tru64, chflags seems to be present, but calling it will
18932 # exit Python
18933 { echo "$as_me:$LINENO: checking for chflags" >&5
18934 echo $ECHO_N "checking for chflags... $ECHO_C" >&6; }
18935 if test "${ac_cv_have_chflags+set}" = set; then
18936 echo $ECHO_N "(cached) $ECHO_C" >&6
18937 else
18938 if test "$cross_compiling" = yes; then
18939 ac_cv_have_chflags=cross
18940 else
18941 cat >conftest.$ac_ext <<_ACEOF
18942 /* confdefs.h. */
18943 _ACEOF
18944 cat confdefs.h >>conftest.$ac_ext
18945 cat >>conftest.$ac_ext <<_ACEOF
18946 /* end confdefs.h. */
18948 #include <sys/stat.h>
18949 #include <unistd.h>
18950 int main(int argc, char*argv[])
18952 if(chflags(argv[0], 0) != 0)
18953 return 1;
18954 return 0;
18957 _ACEOF
18958 rm -f conftest$ac_exeext
18959 if { (ac_try="$ac_link"
18960 case "(($ac_try" in
18961 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18962 *) ac_try_echo=$ac_try;;
18963 esac
18964 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18965 (eval "$ac_link") 2>&5
18966 ac_status=$?
18967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18968 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18969 { (case "(($ac_try" in
18970 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18971 *) ac_try_echo=$ac_try;;
18972 esac
18973 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18974 (eval "$ac_try") 2>&5
18975 ac_status=$?
18976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18977 (exit $ac_status); }; }; then
18978 ac_cv_have_chflags=yes
18979 else
18980 echo "$as_me: program exited with status $ac_status" >&5
18981 echo "$as_me: failed program was:" >&5
18982 sed 's/^/| /' conftest.$ac_ext >&5
18984 ( exit $ac_status )
18985 ac_cv_have_chflags=no
18987 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18993 { echo "$as_me:$LINENO: result: $ac_cv_have_chflags" >&5
18994 echo "${ECHO_T}$ac_cv_have_chflags" >&6; }
18995 if test "$ac_cv_have_chflags" = cross ; then
18996 { echo "$as_me:$LINENO: checking for chflags" >&5
18997 echo $ECHO_N "checking for chflags... $ECHO_C" >&6; }
18998 if test "${ac_cv_func_chflags+set}" = set; then
18999 echo $ECHO_N "(cached) $ECHO_C" >&6
19000 else
19001 cat >conftest.$ac_ext <<_ACEOF
19002 /* confdefs.h. */
19003 _ACEOF
19004 cat confdefs.h >>conftest.$ac_ext
19005 cat >>conftest.$ac_ext <<_ACEOF
19006 /* end confdefs.h. */
19007 /* Define chflags to an innocuous variant, in case <limits.h> declares chflags.
19008 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19009 #define chflags innocuous_chflags
19011 /* System header to define __stub macros and hopefully few prototypes,
19012 which can conflict with char chflags (); below.
19013 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19014 <limits.h> exists even on freestanding compilers. */
19016 #ifdef __STDC__
19017 # include <limits.h>
19018 #else
19019 # include <assert.h>
19020 #endif
19022 #undef chflags
19024 /* Override any GCC internal prototype to avoid an error.
19025 Use char because int might match the return type of a GCC
19026 builtin and then its argument prototype would still apply. */
19027 #ifdef __cplusplus
19028 extern "C"
19029 #endif
19030 char chflags ();
19031 /* The GNU C library defines this for functions which it implements
19032 to always fail with ENOSYS. Some functions are actually named
19033 something starting with __ and the normal name is an alias. */
19034 #if defined __stub_chflags || defined __stub___chflags
19035 choke me
19036 #endif
19039 main ()
19041 return chflags ();
19043 return 0;
19045 _ACEOF
19046 rm -f conftest.$ac_objext conftest$ac_exeext
19047 if { (ac_try="$ac_link"
19048 case "(($ac_try" in
19049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19050 *) ac_try_echo=$ac_try;;
19051 esac
19052 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19053 (eval "$ac_link") 2>conftest.er1
19054 ac_status=$?
19055 grep -v '^ *+' conftest.er1 >conftest.err
19056 rm -f conftest.er1
19057 cat conftest.err >&5
19058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19059 (exit $ac_status); } && {
19060 test -z "$ac_c_werror_flag" ||
19061 test ! -s conftest.err
19062 } && test -s conftest$ac_exeext &&
19063 $as_test_x conftest$ac_exeext; then
19064 ac_cv_func_chflags=yes
19065 else
19066 echo "$as_me: failed program was:" >&5
19067 sed 's/^/| /' conftest.$ac_ext >&5
19069 ac_cv_func_chflags=no
19072 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19073 conftest$ac_exeext conftest.$ac_ext
19075 { echo "$as_me:$LINENO: result: $ac_cv_func_chflags" >&5
19076 echo "${ECHO_T}$ac_cv_func_chflags" >&6; }
19077 if test $ac_cv_func_chflags = yes; then
19078 ac_cv_have_chflags="yes"
19079 else
19080 ac_cv_have_chflags="no"
19084 if test "$ac_cv_have_chflags" = yes ; then
19086 cat >>confdefs.h <<\_ACEOF
19087 #define HAVE_CHFLAGS 1
19088 _ACEOF
19092 { echo "$as_me:$LINENO: checking for lchflags" >&5
19093 echo $ECHO_N "checking for lchflags... $ECHO_C" >&6; }
19094 if test "${ac_cv_have_lchflags+set}" = set; then
19095 echo $ECHO_N "(cached) $ECHO_C" >&6
19096 else
19097 if test "$cross_compiling" = yes; then
19098 ac_cv_have_lchflags=cross
19099 else
19100 cat >conftest.$ac_ext <<_ACEOF
19101 /* confdefs.h. */
19102 _ACEOF
19103 cat confdefs.h >>conftest.$ac_ext
19104 cat >>conftest.$ac_ext <<_ACEOF
19105 /* end confdefs.h. */
19107 #include <sys/stat.h>
19108 #include <unistd.h>
19109 int main(int argc, char*argv[])
19111 if(lchflags(argv[0], 0) != 0)
19112 return 1;
19113 return 0;
19116 _ACEOF
19117 rm -f conftest$ac_exeext
19118 if { (ac_try="$ac_link"
19119 case "(($ac_try" in
19120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19121 *) ac_try_echo=$ac_try;;
19122 esac
19123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19124 (eval "$ac_link") 2>&5
19125 ac_status=$?
19126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19127 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19128 { (case "(($ac_try" in
19129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19130 *) ac_try_echo=$ac_try;;
19131 esac
19132 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19133 (eval "$ac_try") 2>&5
19134 ac_status=$?
19135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19136 (exit $ac_status); }; }; then
19137 ac_cv_have_lchflags=yes
19138 else
19139 echo "$as_me: program exited with status $ac_status" >&5
19140 echo "$as_me: failed program was:" >&5
19141 sed 's/^/| /' conftest.$ac_ext >&5
19143 ( exit $ac_status )
19144 ac_cv_have_lchflags=no
19146 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19152 { echo "$as_me:$LINENO: result: $ac_cv_have_lchflags" >&5
19153 echo "${ECHO_T}$ac_cv_have_lchflags" >&6; }
19154 if test "$ac_cv_have_lchflags" = cross ; then
19155 { echo "$as_me:$LINENO: checking for lchflags" >&5
19156 echo $ECHO_N "checking for lchflags... $ECHO_C" >&6; }
19157 if test "${ac_cv_func_lchflags+set}" = set; then
19158 echo $ECHO_N "(cached) $ECHO_C" >&6
19159 else
19160 cat >conftest.$ac_ext <<_ACEOF
19161 /* confdefs.h. */
19162 _ACEOF
19163 cat confdefs.h >>conftest.$ac_ext
19164 cat >>conftest.$ac_ext <<_ACEOF
19165 /* end confdefs.h. */
19166 /* Define lchflags to an innocuous variant, in case <limits.h> declares lchflags.
19167 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19168 #define lchflags innocuous_lchflags
19170 /* System header to define __stub macros and hopefully few prototypes,
19171 which can conflict with char lchflags (); below.
19172 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19173 <limits.h> exists even on freestanding compilers. */
19175 #ifdef __STDC__
19176 # include <limits.h>
19177 #else
19178 # include <assert.h>
19179 #endif
19181 #undef lchflags
19183 /* Override any GCC internal prototype to avoid an error.
19184 Use char because int might match the return type of a GCC
19185 builtin and then its argument prototype would still apply. */
19186 #ifdef __cplusplus
19187 extern "C"
19188 #endif
19189 char lchflags ();
19190 /* The GNU C library defines this for functions which it implements
19191 to always fail with ENOSYS. Some functions are actually named
19192 something starting with __ and the normal name is an alias. */
19193 #if defined __stub_lchflags || defined __stub___lchflags
19194 choke me
19195 #endif
19198 main ()
19200 return lchflags ();
19202 return 0;
19204 _ACEOF
19205 rm -f conftest.$ac_objext conftest$ac_exeext
19206 if { (ac_try="$ac_link"
19207 case "(($ac_try" in
19208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19209 *) ac_try_echo=$ac_try;;
19210 esac
19211 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19212 (eval "$ac_link") 2>conftest.er1
19213 ac_status=$?
19214 grep -v '^ *+' conftest.er1 >conftest.err
19215 rm -f conftest.er1
19216 cat conftest.err >&5
19217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19218 (exit $ac_status); } && {
19219 test -z "$ac_c_werror_flag" ||
19220 test ! -s conftest.err
19221 } && test -s conftest$ac_exeext &&
19222 $as_test_x conftest$ac_exeext; then
19223 ac_cv_func_lchflags=yes
19224 else
19225 echo "$as_me: failed program was:" >&5
19226 sed 's/^/| /' conftest.$ac_ext >&5
19228 ac_cv_func_lchflags=no
19231 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19232 conftest$ac_exeext conftest.$ac_ext
19234 { echo "$as_me:$LINENO: result: $ac_cv_func_lchflags" >&5
19235 echo "${ECHO_T}$ac_cv_func_lchflags" >&6; }
19236 if test $ac_cv_func_lchflags = yes; then
19237 ac_cv_have_lchflags="yes"
19238 else
19239 ac_cv_have_lchflags="no"
19243 if test "$ac_cv_have_lchflags" = yes ; then
19245 cat >>confdefs.h <<\_ACEOF
19246 #define HAVE_LCHFLAGS 1
19247 _ACEOF
19251 case $ac_sys_system/$ac_sys_release in
19252 Darwin/*)
19253 _CUR_CFLAGS="${CFLAGS}"
19254 _CUR_LDFLAGS="${LDFLAGS}"
19255 CFLAGS="${CFLAGS} -Wl,-search_paths_first"
19256 LDFLAGS="${LDFLAGS} -Wl,-search_paths_first -L/usr/local/lib"
19258 esac
19260 { echo "$as_me:$LINENO: checking for inflateCopy in -lz" >&5
19261 echo $ECHO_N "checking for inflateCopy in -lz... $ECHO_C" >&6; }
19262 if test "${ac_cv_lib_z_inflateCopy+set}" = set; then
19263 echo $ECHO_N "(cached) $ECHO_C" >&6
19264 else
19265 ac_check_lib_save_LIBS=$LIBS
19266 LIBS="-lz $LIBS"
19267 cat >conftest.$ac_ext <<_ACEOF
19268 /* confdefs.h. */
19269 _ACEOF
19270 cat confdefs.h >>conftest.$ac_ext
19271 cat >>conftest.$ac_ext <<_ACEOF
19272 /* end confdefs.h. */
19274 /* Override any GCC internal prototype to avoid an error.
19275 Use char because int might match the return type of a GCC
19276 builtin and then its argument prototype would still apply. */
19277 #ifdef __cplusplus
19278 extern "C"
19279 #endif
19280 char inflateCopy ();
19282 main ()
19284 return inflateCopy ();
19286 return 0;
19288 _ACEOF
19289 rm -f conftest.$ac_objext conftest$ac_exeext
19290 if { (ac_try="$ac_link"
19291 case "(($ac_try" in
19292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19293 *) ac_try_echo=$ac_try;;
19294 esac
19295 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19296 (eval "$ac_link") 2>conftest.er1
19297 ac_status=$?
19298 grep -v '^ *+' conftest.er1 >conftest.err
19299 rm -f conftest.er1
19300 cat conftest.err >&5
19301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19302 (exit $ac_status); } && {
19303 test -z "$ac_c_werror_flag" ||
19304 test ! -s conftest.err
19305 } && test -s conftest$ac_exeext &&
19306 $as_test_x conftest$ac_exeext; then
19307 ac_cv_lib_z_inflateCopy=yes
19308 else
19309 echo "$as_me: failed program was:" >&5
19310 sed 's/^/| /' conftest.$ac_ext >&5
19312 ac_cv_lib_z_inflateCopy=no
19315 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19316 conftest$ac_exeext conftest.$ac_ext
19317 LIBS=$ac_check_lib_save_LIBS
19319 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_inflateCopy" >&5
19320 echo "${ECHO_T}$ac_cv_lib_z_inflateCopy" >&6; }
19321 if test $ac_cv_lib_z_inflateCopy = yes; then
19323 cat >>confdefs.h <<\_ACEOF
19324 #define HAVE_ZLIB_COPY 1
19325 _ACEOF
19330 case $ac_sys_system/$ac_sys_release in
19331 Darwin/*)
19332 CFLAGS="${_CUR_CFLAGS}"
19333 LDFLAGS="${_CUR_LDFLAGS}"
19335 esac
19337 { echo "$as_me:$LINENO: checking for hstrerror" >&5
19338 echo $ECHO_N "checking for hstrerror... $ECHO_C" >&6; }
19339 cat >conftest.$ac_ext <<_ACEOF
19340 /* confdefs.h. */
19341 _ACEOF
19342 cat confdefs.h >>conftest.$ac_ext
19343 cat >>conftest.$ac_ext <<_ACEOF
19344 /* end confdefs.h. */
19346 #include "confdefs.h"
19347 #include <netdb.h>
19350 main ()
19352 void* p = hstrerror; hstrerror(0)
19354 return 0;
19356 _ACEOF
19357 rm -f conftest.$ac_objext conftest$ac_exeext
19358 if { (ac_try="$ac_link"
19359 case "(($ac_try" in
19360 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19361 *) ac_try_echo=$ac_try;;
19362 esac
19363 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19364 (eval "$ac_link") 2>conftest.er1
19365 ac_status=$?
19366 grep -v '^ *+' conftest.er1 >conftest.err
19367 rm -f conftest.er1
19368 cat conftest.err >&5
19369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19370 (exit $ac_status); } && {
19371 test -z "$ac_c_werror_flag" ||
19372 test ! -s conftest.err
19373 } && test -s conftest$ac_exeext &&
19374 $as_test_x conftest$ac_exeext; then
19376 cat >>confdefs.h <<\_ACEOF
19377 #define HAVE_HSTRERROR 1
19378 _ACEOF
19380 { echo "$as_me:$LINENO: result: yes" >&5
19381 echo "${ECHO_T}yes" >&6; }
19382 else
19383 echo "$as_me: failed program was:" >&5
19384 sed 's/^/| /' conftest.$ac_ext >&5
19386 { echo "$as_me:$LINENO: result: no" >&5
19387 echo "${ECHO_T}no" >&6; }
19391 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19392 conftest$ac_exeext conftest.$ac_ext
19394 { echo "$as_me:$LINENO: checking for inet_aton" >&5
19395 echo $ECHO_N "checking for inet_aton... $ECHO_C" >&6; }
19396 cat >conftest.$ac_ext <<_ACEOF
19397 /* confdefs.h. */
19398 _ACEOF
19399 cat confdefs.h >>conftest.$ac_ext
19400 cat >>conftest.$ac_ext <<_ACEOF
19401 /* end confdefs.h. */
19403 #include "confdefs.h"
19404 #include <sys/types.h>
19405 #include <sys/socket.h>
19406 #include <netinet/in.h>
19407 #include <arpa/inet.h>
19410 main ()
19412 void* p = inet_aton;inet_aton(0,0)
19414 return 0;
19416 _ACEOF
19417 rm -f conftest.$ac_objext conftest$ac_exeext
19418 if { (ac_try="$ac_link"
19419 case "(($ac_try" in
19420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19421 *) ac_try_echo=$ac_try;;
19422 esac
19423 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19424 (eval "$ac_link") 2>conftest.er1
19425 ac_status=$?
19426 grep -v '^ *+' conftest.er1 >conftest.err
19427 rm -f conftest.er1
19428 cat conftest.err >&5
19429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19430 (exit $ac_status); } && {
19431 test -z "$ac_c_werror_flag" ||
19432 test ! -s conftest.err
19433 } && test -s conftest$ac_exeext &&
19434 $as_test_x conftest$ac_exeext; then
19436 cat >>confdefs.h <<\_ACEOF
19437 #define HAVE_INET_ATON 1
19438 _ACEOF
19440 { echo "$as_me:$LINENO: result: yes" >&5
19441 echo "${ECHO_T}yes" >&6; }
19442 else
19443 echo "$as_me: failed program was:" >&5
19444 sed 's/^/| /' conftest.$ac_ext >&5
19446 { echo "$as_me:$LINENO: result: no" >&5
19447 echo "${ECHO_T}no" >&6; }
19451 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19452 conftest$ac_exeext conftest.$ac_ext
19454 { echo "$as_me:$LINENO: checking for inet_pton" >&5
19455 echo $ECHO_N "checking for inet_pton... $ECHO_C" >&6; }
19456 cat >conftest.$ac_ext <<_ACEOF
19457 /* confdefs.h. */
19458 _ACEOF
19459 cat confdefs.h >>conftest.$ac_ext
19460 cat >>conftest.$ac_ext <<_ACEOF
19461 /* end confdefs.h. */
19463 #include "confdefs.h"
19464 #include <sys/types.h>
19465 #include <sys/socket.h>
19466 #include <netinet/in.h>
19467 #include <arpa/inet.h>
19470 main ()
19472 void* p = inet_pton
19474 return 0;
19476 _ACEOF
19477 rm -f conftest.$ac_objext
19478 if { (ac_try="$ac_compile"
19479 case "(($ac_try" in
19480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19481 *) ac_try_echo=$ac_try;;
19482 esac
19483 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19484 (eval "$ac_compile") 2>conftest.er1
19485 ac_status=$?
19486 grep -v '^ *+' conftest.er1 >conftest.err
19487 rm -f conftest.er1
19488 cat conftest.err >&5
19489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19490 (exit $ac_status); } && {
19491 test -z "$ac_c_werror_flag" ||
19492 test ! -s conftest.err
19493 } && test -s conftest.$ac_objext; then
19495 cat >>confdefs.h <<\_ACEOF
19496 #define HAVE_INET_PTON 1
19497 _ACEOF
19499 { echo "$as_me:$LINENO: result: yes" >&5
19500 echo "${ECHO_T}yes" >&6; }
19501 else
19502 echo "$as_me: failed program was:" >&5
19503 sed 's/^/| /' conftest.$ac_ext >&5
19505 { echo "$as_me:$LINENO: result: no" >&5
19506 echo "${ECHO_T}no" >&6; }
19510 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19512 # On some systems, setgroups is in unistd.h, on others, in grp.h
19513 { echo "$as_me:$LINENO: checking for setgroups" >&5
19514 echo $ECHO_N "checking for setgroups... $ECHO_C" >&6; }
19515 cat >conftest.$ac_ext <<_ACEOF
19516 /* confdefs.h. */
19517 _ACEOF
19518 cat confdefs.h >>conftest.$ac_ext
19519 cat >>conftest.$ac_ext <<_ACEOF
19520 /* end confdefs.h. */
19522 #include "confdefs.h"
19523 #include <unistd.h>
19524 #ifdef HAVE_GRP_H
19525 #include <grp.h>
19526 #endif
19529 main ()
19531 void* p = setgroups
19533 return 0;
19535 _ACEOF
19536 rm -f conftest.$ac_objext
19537 if { (ac_try="$ac_compile"
19538 case "(($ac_try" in
19539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19540 *) ac_try_echo=$ac_try;;
19541 esac
19542 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19543 (eval "$ac_compile") 2>conftest.er1
19544 ac_status=$?
19545 grep -v '^ *+' conftest.er1 >conftest.err
19546 rm -f conftest.er1
19547 cat conftest.err >&5
19548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19549 (exit $ac_status); } && {
19550 test -z "$ac_c_werror_flag" ||
19551 test ! -s conftest.err
19552 } && test -s conftest.$ac_objext; then
19554 cat >>confdefs.h <<\_ACEOF
19555 #define HAVE_SETGROUPS 1
19556 _ACEOF
19558 { echo "$as_me:$LINENO: result: yes" >&5
19559 echo "${ECHO_T}yes" >&6; }
19560 else
19561 echo "$as_me: failed program was:" >&5
19562 sed 's/^/| /' conftest.$ac_ext >&5
19564 { echo "$as_me:$LINENO: result: no" >&5
19565 echo "${ECHO_T}no" >&6; }
19569 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19571 # check for openpty and forkpty
19574 for ac_func in openpty
19576 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19577 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19578 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19579 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19580 echo $ECHO_N "(cached) $ECHO_C" >&6
19581 else
19582 cat >conftest.$ac_ext <<_ACEOF
19583 /* confdefs.h. */
19584 _ACEOF
19585 cat confdefs.h >>conftest.$ac_ext
19586 cat >>conftest.$ac_ext <<_ACEOF
19587 /* end confdefs.h. */
19588 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19589 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19590 #define $ac_func innocuous_$ac_func
19592 /* System header to define __stub macros and hopefully few prototypes,
19593 which can conflict with char $ac_func (); below.
19594 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19595 <limits.h> exists even on freestanding compilers. */
19597 #ifdef __STDC__
19598 # include <limits.h>
19599 #else
19600 # include <assert.h>
19601 #endif
19603 #undef $ac_func
19605 /* Override any GCC internal prototype to avoid an error.
19606 Use char because int might match the return type of a GCC
19607 builtin and then its argument prototype would still apply. */
19608 #ifdef __cplusplus
19609 extern "C"
19610 #endif
19611 char $ac_func ();
19612 /* The GNU C library defines this for functions which it implements
19613 to always fail with ENOSYS. Some functions are actually named
19614 something starting with __ and the normal name is an alias. */
19615 #if defined __stub_$ac_func || defined __stub___$ac_func
19616 choke me
19617 #endif
19620 main ()
19622 return $ac_func ();
19624 return 0;
19626 _ACEOF
19627 rm -f conftest.$ac_objext conftest$ac_exeext
19628 if { (ac_try="$ac_link"
19629 case "(($ac_try" in
19630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19631 *) ac_try_echo=$ac_try;;
19632 esac
19633 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19634 (eval "$ac_link") 2>conftest.er1
19635 ac_status=$?
19636 grep -v '^ *+' conftest.er1 >conftest.err
19637 rm -f conftest.er1
19638 cat conftest.err >&5
19639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19640 (exit $ac_status); } && {
19641 test -z "$ac_c_werror_flag" ||
19642 test ! -s conftest.err
19643 } && test -s conftest$ac_exeext &&
19644 $as_test_x conftest$ac_exeext; then
19645 eval "$as_ac_var=yes"
19646 else
19647 echo "$as_me: failed program was:" >&5
19648 sed 's/^/| /' conftest.$ac_ext >&5
19650 eval "$as_ac_var=no"
19653 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19654 conftest$ac_exeext conftest.$ac_ext
19656 ac_res=`eval echo '${'$as_ac_var'}'`
19657 { echo "$as_me:$LINENO: result: $ac_res" >&5
19658 echo "${ECHO_T}$ac_res" >&6; }
19659 if test `eval echo '${'$as_ac_var'}'` = yes; then
19660 cat >>confdefs.h <<_ACEOF
19661 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19662 _ACEOF
19664 else
19665 { echo "$as_me:$LINENO: checking for openpty in -lutil" >&5
19666 echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6; }
19667 if test "${ac_cv_lib_util_openpty+set}" = set; then
19668 echo $ECHO_N "(cached) $ECHO_C" >&6
19669 else
19670 ac_check_lib_save_LIBS=$LIBS
19671 LIBS="-lutil $LIBS"
19672 cat >conftest.$ac_ext <<_ACEOF
19673 /* confdefs.h. */
19674 _ACEOF
19675 cat confdefs.h >>conftest.$ac_ext
19676 cat >>conftest.$ac_ext <<_ACEOF
19677 /* end confdefs.h. */
19679 /* Override any GCC internal prototype to avoid an error.
19680 Use char because int might match the return type of a GCC
19681 builtin and then its argument prototype would still apply. */
19682 #ifdef __cplusplus
19683 extern "C"
19684 #endif
19685 char openpty ();
19687 main ()
19689 return openpty ();
19691 return 0;
19693 _ACEOF
19694 rm -f conftest.$ac_objext conftest$ac_exeext
19695 if { (ac_try="$ac_link"
19696 case "(($ac_try" in
19697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19698 *) ac_try_echo=$ac_try;;
19699 esac
19700 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19701 (eval "$ac_link") 2>conftest.er1
19702 ac_status=$?
19703 grep -v '^ *+' conftest.er1 >conftest.err
19704 rm -f conftest.er1
19705 cat conftest.err >&5
19706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19707 (exit $ac_status); } && {
19708 test -z "$ac_c_werror_flag" ||
19709 test ! -s conftest.err
19710 } && test -s conftest$ac_exeext &&
19711 $as_test_x conftest$ac_exeext; then
19712 ac_cv_lib_util_openpty=yes
19713 else
19714 echo "$as_me: failed program was:" >&5
19715 sed 's/^/| /' conftest.$ac_ext >&5
19717 ac_cv_lib_util_openpty=no
19720 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19721 conftest$ac_exeext conftest.$ac_ext
19722 LIBS=$ac_check_lib_save_LIBS
19724 { echo "$as_me:$LINENO: result: $ac_cv_lib_util_openpty" >&5
19725 echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6; }
19726 if test $ac_cv_lib_util_openpty = yes; then
19727 cat >>confdefs.h <<\_ACEOF
19728 #define HAVE_OPENPTY 1
19729 _ACEOF
19730 LIBS="$LIBS -lutil"
19731 else
19732 { echo "$as_me:$LINENO: checking for openpty in -lbsd" >&5
19733 echo $ECHO_N "checking for openpty in -lbsd... $ECHO_C" >&6; }
19734 if test "${ac_cv_lib_bsd_openpty+set}" = set; then
19735 echo $ECHO_N "(cached) $ECHO_C" >&6
19736 else
19737 ac_check_lib_save_LIBS=$LIBS
19738 LIBS="-lbsd $LIBS"
19739 cat >conftest.$ac_ext <<_ACEOF
19740 /* confdefs.h. */
19741 _ACEOF
19742 cat confdefs.h >>conftest.$ac_ext
19743 cat >>conftest.$ac_ext <<_ACEOF
19744 /* end confdefs.h. */
19746 /* Override any GCC internal prototype to avoid an error.
19747 Use char because int might match the return type of a GCC
19748 builtin and then its argument prototype would still apply. */
19749 #ifdef __cplusplus
19750 extern "C"
19751 #endif
19752 char openpty ();
19754 main ()
19756 return openpty ();
19758 return 0;
19760 _ACEOF
19761 rm -f conftest.$ac_objext conftest$ac_exeext
19762 if { (ac_try="$ac_link"
19763 case "(($ac_try" in
19764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19765 *) ac_try_echo=$ac_try;;
19766 esac
19767 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19768 (eval "$ac_link") 2>conftest.er1
19769 ac_status=$?
19770 grep -v '^ *+' conftest.er1 >conftest.err
19771 rm -f conftest.er1
19772 cat conftest.err >&5
19773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19774 (exit $ac_status); } && {
19775 test -z "$ac_c_werror_flag" ||
19776 test ! -s conftest.err
19777 } && test -s conftest$ac_exeext &&
19778 $as_test_x conftest$ac_exeext; then
19779 ac_cv_lib_bsd_openpty=yes
19780 else
19781 echo "$as_me: failed program was:" >&5
19782 sed 's/^/| /' conftest.$ac_ext >&5
19784 ac_cv_lib_bsd_openpty=no
19787 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19788 conftest$ac_exeext conftest.$ac_ext
19789 LIBS=$ac_check_lib_save_LIBS
19791 { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_openpty" >&5
19792 echo "${ECHO_T}$ac_cv_lib_bsd_openpty" >&6; }
19793 if test $ac_cv_lib_bsd_openpty = yes; then
19794 cat >>confdefs.h <<\_ACEOF
19795 #define HAVE_OPENPTY 1
19796 _ACEOF
19797 LIBS="$LIBS -lbsd"
19805 done
19808 for ac_func in forkpty
19810 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19811 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19812 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19813 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19814 echo $ECHO_N "(cached) $ECHO_C" >&6
19815 else
19816 cat >conftest.$ac_ext <<_ACEOF
19817 /* confdefs.h. */
19818 _ACEOF
19819 cat confdefs.h >>conftest.$ac_ext
19820 cat >>conftest.$ac_ext <<_ACEOF
19821 /* end confdefs.h. */
19822 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19823 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19824 #define $ac_func innocuous_$ac_func
19826 /* System header to define __stub macros and hopefully few prototypes,
19827 which can conflict with char $ac_func (); below.
19828 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19829 <limits.h> exists even on freestanding compilers. */
19831 #ifdef __STDC__
19832 # include <limits.h>
19833 #else
19834 # include <assert.h>
19835 #endif
19837 #undef $ac_func
19839 /* Override any GCC internal prototype to avoid an error.
19840 Use char because int might match the return type of a GCC
19841 builtin and then its argument prototype would still apply. */
19842 #ifdef __cplusplus
19843 extern "C"
19844 #endif
19845 char $ac_func ();
19846 /* The GNU C library defines this for functions which it implements
19847 to always fail with ENOSYS. Some functions are actually named
19848 something starting with __ and the normal name is an alias. */
19849 #if defined __stub_$ac_func || defined __stub___$ac_func
19850 choke me
19851 #endif
19854 main ()
19856 return $ac_func ();
19858 return 0;
19860 _ACEOF
19861 rm -f conftest.$ac_objext conftest$ac_exeext
19862 if { (ac_try="$ac_link"
19863 case "(($ac_try" in
19864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19865 *) ac_try_echo=$ac_try;;
19866 esac
19867 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19868 (eval "$ac_link") 2>conftest.er1
19869 ac_status=$?
19870 grep -v '^ *+' conftest.er1 >conftest.err
19871 rm -f conftest.er1
19872 cat conftest.err >&5
19873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19874 (exit $ac_status); } && {
19875 test -z "$ac_c_werror_flag" ||
19876 test ! -s conftest.err
19877 } && test -s conftest$ac_exeext &&
19878 $as_test_x conftest$ac_exeext; then
19879 eval "$as_ac_var=yes"
19880 else
19881 echo "$as_me: failed program was:" >&5
19882 sed 's/^/| /' conftest.$ac_ext >&5
19884 eval "$as_ac_var=no"
19887 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19888 conftest$ac_exeext conftest.$ac_ext
19890 ac_res=`eval echo '${'$as_ac_var'}'`
19891 { echo "$as_me:$LINENO: result: $ac_res" >&5
19892 echo "${ECHO_T}$ac_res" >&6; }
19893 if test `eval echo '${'$as_ac_var'}'` = yes; then
19894 cat >>confdefs.h <<_ACEOF
19895 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19896 _ACEOF
19898 else
19899 { echo "$as_me:$LINENO: checking for forkpty in -lutil" >&5
19900 echo $ECHO_N "checking for forkpty in -lutil... $ECHO_C" >&6; }
19901 if test "${ac_cv_lib_util_forkpty+set}" = set; then
19902 echo $ECHO_N "(cached) $ECHO_C" >&6
19903 else
19904 ac_check_lib_save_LIBS=$LIBS
19905 LIBS="-lutil $LIBS"
19906 cat >conftest.$ac_ext <<_ACEOF
19907 /* confdefs.h. */
19908 _ACEOF
19909 cat confdefs.h >>conftest.$ac_ext
19910 cat >>conftest.$ac_ext <<_ACEOF
19911 /* end confdefs.h. */
19913 /* Override any GCC internal prototype to avoid an error.
19914 Use char because int might match the return type of a GCC
19915 builtin and then its argument prototype would still apply. */
19916 #ifdef __cplusplus
19917 extern "C"
19918 #endif
19919 char forkpty ();
19921 main ()
19923 return forkpty ();
19925 return 0;
19927 _ACEOF
19928 rm -f conftest.$ac_objext conftest$ac_exeext
19929 if { (ac_try="$ac_link"
19930 case "(($ac_try" in
19931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19932 *) ac_try_echo=$ac_try;;
19933 esac
19934 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19935 (eval "$ac_link") 2>conftest.er1
19936 ac_status=$?
19937 grep -v '^ *+' conftest.er1 >conftest.err
19938 rm -f conftest.er1
19939 cat conftest.err >&5
19940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19941 (exit $ac_status); } && {
19942 test -z "$ac_c_werror_flag" ||
19943 test ! -s conftest.err
19944 } && test -s conftest$ac_exeext &&
19945 $as_test_x conftest$ac_exeext; then
19946 ac_cv_lib_util_forkpty=yes
19947 else
19948 echo "$as_me: failed program was:" >&5
19949 sed 's/^/| /' conftest.$ac_ext >&5
19951 ac_cv_lib_util_forkpty=no
19954 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19955 conftest$ac_exeext conftest.$ac_ext
19956 LIBS=$ac_check_lib_save_LIBS
19958 { echo "$as_me:$LINENO: result: $ac_cv_lib_util_forkpty" >&5
19959 echo "${ECHO_T}$ac_cv_lib_util_forkpty" >&6; }
19960 if test $ac_cv_lib_util_forkpty = yes; then
19961 cat >>confdefs.h <<\_ACEOF
19962 #define HAVE_FORKPTY 1
19963 _ACEOF
19964 LIBS="$LIBS -lutil"
19965 else
19966 { echo "$as_me:$LINENO: checking for forkpty in -lbsd" >&5
19967 echo $ECHO_N "checking for forkpty in -lbsd... $ECHO_C" >&6; }
19968 if test "${ac_cv_lib_bsd_forkpty+set}" = set; then
19969 echo $ECHO_N "(cached) $ECHO_C" >&6
19970 else
19971 ac_check_lib_save_LIBS=$LIBS
19972 LIBS="-lbsd $LIBS"
19973 cat >conftest.$ac_ext <<_ACEOF
19974 /* confdefs.h. */
19975 _ACEOF
19976 cat confdefs.h >>conftest.$ac_ext
19977 cat >>conftest.$ac_ext <<_ACEOF
19978 /* end confdefs.h. */
19980 /* Override any GCC internal prototype to avoid an error.
19981 Use char because int might match the return type of a GCC
19982 builtin and then its argument prototype would still apply. */
19983 #ifdef __cplusplus
19984 extern "C"
19985 #endif
19986 char forkpty ();
19988 main ()
19990 return forkpty ();
19992 return 0;
19994 _ACEOF
19995 rm -f conftest.$ac_objext conftest$ac_exeext
19996 if { (ac_try="$ac_link"
19997 case "(($ac_try" in
19998 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19999 *) ac_try_echo=$ac_try;;
20000 esac
20001 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20002 (eval "$ac_link") 2>conftest.er1
20003 ac_status=$?
20004 grep -v '^ *+' conftest.er1 >conftest.err
20005 rm -f conftest.er1
20006 cat conftest.err >&5
20007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20008 (exit $ac_status); } && {
20009 test -z "$ac_c_werror_flag" ||
20010 test ! -s conftest.err
20011 } && test -s conftest$ac_exeext &&
20012 $as_test_x conftest$ac_exeext; then
20013 ac_cv_lib_bsd_forkpty=yes
20014 else
20015 echo "$as_me: failed program was:" >&5
20016 sed 's/^/| /' conftest.$ac_ext >&5
20018 ac_cv_lib_bsd_forkpty=no
20021 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20022 conftest$ac_exeext conftest.$ac_ext
20023 LIBS=$ac_check_lib_save_LIBS
20025 { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_forkpty" >&5
20026 echo "${ECHO_T}$ac_cv_lib_bsd_forkpty" >&6; }
20027 if test $ac_cv_lib_bsd_forkpty = yes; then
20028 cat >>confdefs.h <<\_ACEOF
20029 #define HAVE_FORKPTY 1
20030 _ACEOF
20031 LIBS="$LIBS -lbsd"
20039 done
20042 # Stuff for expat.
20044 for ac_func in memmove
20046 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20047 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20048 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20049 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20050 echo $ECHO_N "(cached) $ECHO_C" >&6
20051 else
20052 cat >conftest.$ac_ext <<_ACEOF
20053 /* confdefs.h. */
20054 _ACEOF
20055 cat confdefs.h >>conftest.$ac_ext
20056 cat >>conftest.$ac_ext <<_ACEOF
20057 /* end confdefs.h. */
20058 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20059 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20060 #define $ac_func innocuous_$ac_func
20062 /* System header to define __stub macros and hopefully few prototypes,
20063 which can conflict with char $ac_func (); below.
20064 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20065 <limits.h> exists even on freestanding compilers. */
20067 #ifdef __STDC__
20068 # include <limits.h>
20069 #else
20070 # include <assert.h>
20071 #endif
20073 #undef $ac_func
20075 /* Override any GCC internal prototype to avoid an error.
20076 Use char because int might match the return type of a GCC
20077 builtin and then its argument prototype would still apply. */
20078 #ifdef __cplusplus
20079 extern "C"
20080 #endif
20081 char $ac_func ();
20082 /* The GNU C library defines this for functions which it implements
20083 to always fail with ENOSYS. Some functions are actually named
20084 something starting with __ and the normal name is an alias. */
20085 #if defined __stub_$ac_func || defined __stub___$ac_func
20086 choke me
20087 #endif
20090 main ()
20092 return $ac_func ();
20094 return 0;
20096 _ACEOF
20097 rm -f conftest.$ac_objext conftest$ac_exeext
20098 if { (ac_try="$ac_link"
20099 case "(($ac_try" in
20100 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20101 *) ac_try_echo=$ac_try;;
20102 esac
20103 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20104 (eval "$ac_link") 2>conftest.er1
20105 ac_status=$?
20106 grep -v '^ *+' conftest.er1 >conftest.err
20107 rm -f conftest.er1
20108 cat conftest.err >&5
20109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20110 (exit $ac_status); } && {
20111 test -z "$ac_c_werror_flag" ||
20112 test ! -s conftest.err
20113 } && test -s conftest$ac_exeext &&
20114 $as_test_x conftest$ac_exeext; then
20115 eval "$as_ac_var=yes"
20116 else
20117 echo "$as_me: failed program was:" >&5
20118 sed 's/^/| /' conftest.$ac_ext >&5
20120 eval "$as_ac_var=no"
20123 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20124 conftest$ac_exeext conftest.$ac_ext
20126 ac_res=`eval echo '${'$as_ac_var'}'`
20127 { echo "$as_me:$LINENO: result: $ac_res" >&5
20128 echo "${ECHO_T}$ac_res" >&6; }
20129 if test `eval echo '${'$as_ac_var'}'` = yes; then
20130 cat >>confdefs.h <<_ACEOF
20131 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20132 _ACEOF
20135 done
20138 # check for long file support functions
20145 for ac_func in fseek64 fseeko fstatvfs ftell64 ftello statvfs
20147 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20148 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20149 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20150 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20151 echo $ECHO_N "(cached) $ECHO_C" >&6
20152 else
20153 cat >conftest.$ac_ext <<_ACEOF
20154 /* confdefs.h. */
20155 _ACEOF
20156 cat confdefs.h >>conftest.$ac_ext
20157 cat >>conftest.$ac_ext <<_ACEOF
20158 /* end confdefs.h. */
20159 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20160 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20161 #define $ac_func innocuous_$ac_func
20163 /* System header to define __stub macros and hopefully few prototypes,
20164 which can conflict with char $ac_func (); below.
20165 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20166 <limits.h> exists even on freestanding compilers. */
20168 #ifdef __STDC__
20169 # include <limits.h>
20170 #else
20171 # include <assert.h>
20172 #endif
20174 #undef $ac_func
20176 /* Override any GCC internal prototype to avoid an error.
20177 Use char because int might match the return type of a GCC
20178 builtin and then its argument prototype would still apply. */
20179 #ifdef __cplusplus
20180 extern "C"
20181 #endif
20182 char $ac_func ();
20183 /* The GNU C library defines this for functions which it implements
20184 to always fail with ENOSYS. Some functions are actually named
20185 something starting with __ and the normal name is an alias. */
20186 #if defined __stub_$ac_func || defined __stub___$ac_func
20187 choke me
20188 #endif
20191 main ()
20193 return $ac_func ();
20195 return 0;
20197 _ACEOF
20198 rm -f conftest.$ac_objext conftest$ac_exeext
20199 if { (ac_try="$ac_link"
20200 case "(($ac_try" in
20201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20202 *) ac_try_echo=$ac_try;;
20203 esac
20204 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20205 (eval "$ac_link") 2>conftest.er1
20206 ac_status=$?
20207 grep -v '^ *+' conftest.er1 >conftest.err
20208 rm -f conftest.er1
20209 cat conftest.err >&5
20210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20211 (exit $ac_status); } && {
20212 test -z "$ac_c_werror_flag" ||
20213 test ! -s conftest.err
20214 } && test -s conftest$ac_exeext &&
20215 $as_test_x conftest$ac_exeext; then
20216 eval "$as_ac_var=yes"
20217 else
20218 echo "$as_me: failed program was:" >&5
20219 sed 's/^/| /' conftest.$ac_ext >&5
20221 eval "$as_ac_var=no"
20224 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20225 conftest$ac_exeext conftest.$ac_ext
20227 ac_res=`eval echo '${'$as_ac_var'}'`
20228 { echo "$as_me:$LINENO: result: $ac_res" >&5
20229 echo "${ECHO_T}$ac_res" >&6; }
20230 if test `eval echo '${'$as_ac_var'}'` = yes; then
20231 cat >>confdefs.h <<_ACEOF
20232 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20233 _ACEOF
20236 done
20242 for ac_func in dup2 getcwd strdup
20244 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20245 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20246 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20247 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20248 echo $ECHO_N "(cached) $ECHO_C" >&6
20249 else
20250 cat >conftest.$ac_ext <<_ACEOF
20251 /* confdefs.h. */
20252 _ACEOF
20253 cat confdefs.h >>conftest.$ac_ext
20254 cat >>conftest.$ac_ext <<_ACEOF
20255 /* end confdefs.h. */
20256 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20257 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20258 #define $ac_func innocuous_$ac_func
20260 /* System header to define __stub macros and hopefully few prototypes,
20261 which can conflict with char $ac_func (); below.
20262 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20263 <limits.h> exists even on freestanding compilers. */
20265 #ifdef __STDC__
20266 # include <limits.h>
20267 #else
20268 # include <assert.h>
20269 #endif
20271 #undef $ac_func
20273 /* Override any GCC internal prototype to avoid an error.
20274 Use char because int might match the return type of a GCC
20275 builtin and then its argument prototype would still apply. */
20276 #ifdef __cplusplus
20277 extern "C"
20278 #endif
20279 char $ac_func ();
20280 /* The GNU C library defines this for functions which it implements
20281 to always fail with ENOSYS. Some functions are actually named
20282 something starting with __ and the normal name is an alias. */
20283 #if defined __stub_$ac_func || defined __stub___$ac_func
20284 choke me
20285 #endif
20288 main ()
20290 return $ac_func ();
20292 return 0;
20294 _ACEOF
20295 rm -f conftest.$ac_objext conftest$ac_exeext
20296 if { (ac_try="$ac_link"
20297 case "(($ac_try" in
20298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20299 *) ac_try_echo=$ac_try;;
20300 esac
20301 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20302 (eval "$ac_link") 2>conftest.er1
20303 ac_status=$?
20304 grep -v '^ *+' conftest.er1 >conftest.err
20305 rm -f conftest.er1
20306 cat conftest.err >&5
20307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20308 (exit $ac_status); } && {
20309 test -z "$ac_c_werror_flag" ||
20310 test ! -s conftest.err
20311 } && test -s conftest$ac_exeext &&
20312 $as_test_x conftest$ac_exeext; then
20313 eval "$as_ac_var=yes"
20314 else
20315 echo "$as_me: failed program was:" >&5
20316 sed 's/^/| /' conftest.$ac_ext >&5
20318 eval "$as_ac_var=no"
20321 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20322 conftest$ac_exeext conftest.$ac_ext
20324 ac_res=`eval echo '${'$as_ac_var'}'`
20325 { echo "$as_me:$LINENO: result: $ac_res" >&5
20326 echo "${ECHO_T}$ac_res" >&6; }
20327 if test `eval echo '${'$as_ac_var'}'` = yes; then
20328 cat >>confdefs.h <<_ACEOF
20329 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20330 _ACEOF
20332 else
20333 case " $LIBOBJS " in
20334 *" $ac_func.$ac_objext "* ) ;;
20335 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
20337 esac
20340 done
20344 for ac_func in getpgrp
20346 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20347 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20348 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20349 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20350 echo $ECHO_N "(cached) $ECHO_C" >&6
20351 else
20352 cat >conftest.$ac_ext <<_ACEOF
20353 /* confdefs.h. */
20354 _ACEOF
20355 cat confdefs.h >>conftest.$ac_ext
20356 cat >>conftest.$ac_ext <<_ACEOF
20357 /* end confdefs.h. */
20358 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20359 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20360 #define $ac_func innocuous_$ac_func
20362 /* System header to define __stub macros and hopefully few prototypes,
20363 which can conflict with char $ac_func (); below.
20364 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20365 <limits.h> exists even on freestanding compilers. */
20367 #ifdef __STDC__
20368 # include <limits.h>
20369 #else
20370 # include <assert.h>
20371 #endif
20373 #undef $ac_func
20375 /* Override any GCC internal prototype to avoid an error.
20376 Use char because int might match the return type of a GCC
20377 builtin and then its argument prototype would still apply. */
20378 #ifdef __cplusplus
20379 extern "C"
20380 #endif
20381 char $ac_func ();
20382 /* The GNU C library defines this for functions which it implements
20383 to always fail with ENOSYS. Some functions are actually named
20384 something starting with __ and the normal name is an alias. */
20385 #if defined __stub_$ac_func || defined __stub___$ac_func
20386 choke me
20387 #endif
20390 main ()
20392 return $ac_func ();
20394 return 0;
20396 _ACEOF
20397 rm -f conftest.$ac_objext conftest$ac_exeext
20398 if { (ac_try="$ac_link"
20399 case "(($ac_try" in
20400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20401 *) ac_try_echo=$ac_try;;
20402 esac
20403 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20404 (eval "$ac_link") 2>conftest.er1
20405 ac_status=$?
20406 grep -v '^ *+' conftest.er1 >conftest.err
20407 rm -f conftest.er1
20408 cat conftest.err >&5
20409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20410 (exit $ac_status); } && {
20411 test -z "$ac_c_werror_flag" ||
20412 test ! -s conftest.err
20413 } && test -s conftest$ac_exeext &&
20414 $as_test_x conftest$ac_exeext; then
20415 eval "$as_ac_var=yes"
20416 else
20417 echo "$as_me: failed program was:" >&5
20418 sed 's/^/| /' conftest.$ac_ext >&5
20420 eval "$as_ac_var=no"
20423 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20424 conftest$ac_exeext conftest.$ac_ext
20426 ac_res=`eval echo '${'$as_ac_var'}'`
20427 { echo "$as_me:$LINENO: result: $ac_res" >&5
20428 echo "${ECHO_T}$ac_res" >&6; }
20429 if test `eval echo '${'$as_ac_var'}'` = yes; then
20430 cat >>confdefs.h <<_ACEOF
20431 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20432 _ACEOF
20433 cat >conftest.$ac_ext <<_ACEOF
20434 /* confdefs.h. */
20435 _ACEOF
20436 cat confdefs.h >>conftest.$ac_ext
20437 cat >>conftest.$ac_ext <<_ACEOF
20438 /* end confdefs.h. */
20439 #include <unistd.h>
20441 main ()
20443 getpgrp(0);
20445 return 0;
20447 _ACEOF
20448 rm -f conftest.$ac_objext
20449 if { (ac_try="$ac_compile"
20450 case "(($ac_try" in
20451 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20452 *) ac_try_echo=$ac_try;;
20453 esac
20454 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20455 (eval "$ac_compile") 2>conftest.er1
20456 ac_status=$?
20457 grep -v '^ *+' conftest.er1 >conftest.err
20458 rm -f conftest.er1
20459 cat conftest.err >&5
20460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20461 (exit $ac_status); } && {
20462 test -z "$ac_c_werror_flag" ||
20463 test ! -s conftest.err
20464 } && test -s conftest.$ac_objext; then
20466 cat >>confdefs.h <<\_ACEOF
20467 #define GETPGRP_HAVE_ARG 1
20468 _ACEOF
20471 else
20472 echo "$as_me: failed program was:" >&5
20473 sed 's/^/| /' conftest.$ac_ext >&5
20478 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20481 done
20484 for ac_func in setpgrp
20486 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20487 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20488 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20489 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20490 echo $ECHO_N "(cached) $ECHO_C" >&6
20491 else
20492 cat >conftest.$ac_ext <<_ACEOF
20493 /* confdefs.h. */
20494 _ACEOF
20495 cat confdefs.h >>conftest.$ac_ext
20496 cat >>conftest.$ac_ext <<_ACEOF
20497 /* end confdefs.h. */
20498 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20499 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20500 #define $ac_func innocuous_$ac_func
20502 /* System header to define __stub macros and hopefully few prototypes,
20503 which can conflict with char $ac_func (); below.
20504 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20505 <limits.h> exists even on freestanding compilers. */
20507 #ifdef __STDC__
20508 # include <limits.h>
20509 #else
20510 # include <assert.h>
20511 #endif
20513 #undef $ac_func
20515 /* Override any GCC internal prototype to avoid an error.
20516 Use char because int might match the return type of a GCC
20517 builtin and then its argument prototype would still apply. */
20518 #ifdef __cplusplus
20519 extern "C"
20520 #endif
20521 char $ac_func ();
20522 /* The GNU C library defines this for functions which it implements
20523 to always fail with ENOSYS. Some functions are actually named
20524 something starting with __ and the normal name is an alias. */
20525 #if defined __stub_$ac_func || defined __stub___$ac_func
20526 choke me
20527 #endif
20530 main ()
20532 return $ac_func ();
20534 return 0;
20536 _ACEOF
20537 rm -f conftest.$ac_objext conftest$ac_exeext
20538 if { (ac_try="$ac_link"
20539 case "(($ac_try" in
20540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20541 *) ac_try_echo=$ac_try;;
20542 esac
20543 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20544 (eval "$ac_link") 2>conftest.er1
20545 ac_status=$?
20546 grep -v '^ *+' conftest.er1 >conftest.err
20547 rm -f conftest.er1
20548 cat conftest.err >&5
20549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20550 (exit $ac_status); } && {
20551 test -z "$ac_c_werror_flag" ||
20552 test ! -s conftest.err
20553 } && test -s conftest$ac_exeext &&
20554 $as_test_x conftest$ac_exeext; then
20555 eval "$as_ac_var=yes"
20556 else
20557 echo "$as_me: failed program was:" >&5
20558 sed 's/^/| /' conftest.$ac_ext >&5
20560 eval "$as_ac_var=no"
20563 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20564 conftest$ac_exeext conftest.$ac_ext
20566 ac_res=`eval echo '${'$as_ac_var'}'`
20567 { echo "$as_me:$LINENO: result: $ac_res" >&5
20568 echo "${ECHO_T}$ac_res" >&6; }
20569 if test `eval echo '${'$as_ac_var'}'` = yes; then
20570 cat >>confdefs.h <<_ACEOF
20571 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20572 _ACEOF
20573 cat >conftest.$ac_ext <<_ACEOF
20574 /* confdefs.h. */
20575 _ACEOF
20576 cat confdefs.h >>conftest.$ac_ext
20577 cat >>conftest.$ac_ext <<_ACEOF
20578 /* end confdefs.h. */
20579 #include <unistd.h>
20581 main ()
20583 setpgrp(0,0);
20585 return 0;
20587 _ACEOF
20588 rm -f conftest.$ac_objext
20589 if { (ac_try="$ac_compile"
20590 case "(($ac_try" in
20591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20592 *) ac_try_echo=$ac_try;;
20593 esac
20594 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20595 (eval "$ac_compile") 2>conftest.er1
20596 ac_status=$?
20597 grep -v '^ *+' conftest.er1 >conftest.err
20598 rm -f conftest.er1
20599 cat conftest.err >&5
20600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20601 (exit $ac_status); } && {
20602 test -z "$ac_c_werror_flag" ||
20603 test ! -s conftest.err
20604 } && test -s conftest.$ac_objext; then
20606 cat >>confdefs.h <<\_ACEOF
20607 #define SETPGRP_HAVE_ARG 1
20608 _ACEOF
20611 else
20612 echo "$as_me: failed program was:" >&5
20613 sed 's/^/| /' conftest.$ac_ext >&5
20618 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20621 done
20624 for ac_func in gettimeofday
20626 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20627 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20628 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20629 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20630 echo $ECHO_N "(cached) $ECHO_C" >&6
20631 else
20632 cat >conftest.$ac_ext <<_ACEOF
20633 /* confdefs.h. */
20634 _ACEOF
20635 cat confdefs.h >>conftest.$ac_ext
20636 cat >>conftest.$ac_ext <<_ACEOF
20637 /* end confdefs.h. */
20638 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20639 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20640 #define $ac_func innocuous_$ac_func
20642 /* System header to define __stub macros and hopefully few prototypes,
20643 which can conflict with char $ac_func (); below.
20644 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20645 <limits.h> exists even on freestanding compilers. */
20647 #ifdef __STDC__
20648 # include <limits.h>
20649 #else
20650 # include <assert.h>
20651 #endif
20653 #undef $ac_func
20655 /* Override any GCC internal prototype to avoid an error.
20656 Use char because int might match the return type of a GCC
20657 builtin and then its argument prototype would still apply. */
20658 #ifdef __cplusplus
20659 extern "C"
20660 #endif
20661 char $ac_func ();
20662 /* The GNU C library defines this for functions which it implements
20663 to always fail with ENOSYS. Some functions are actually named
20664 something starting with __ and the normal name is an alias. */
20665 #if defined __stub_$ac_func || defined __stub___$ac_func
20666 choke me
20667 #endif
20670 main ()
20672 return $ac_func ();
20674 return 0;
20676 _ACEOF
20677 rm -f conftest.$ac_objext conftest$ac_exeext
20678 if { (ac_try="$ac_link"
20679 case "(($ac_try" in
20680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20681 *) ac_try_echo=$ac_try;;
20682 esac
20683 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20684 (eval "$ac_link") 2>conftest.er1
20685 ac_status=$?
20686 grep -v '^ *+' conftest.er1 >conftest.err
20687 rm -f conftest.er1
20688 cat conftest.err >&5
20689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20690 (exit $ac_status); } && {
20691 test -z "$ac_c_werror_flag" ||
20692 test ! -s conftest.err
20693 } && test -s conftest$ac_exeext &&
20694 $as_test_x conftest$ac_exeext; then
20695 eval "$as_ac_var=yes"
20696 else
20697 echo "$as_me: failed program was:" >&5
20698 sed 's/^/| /' conftest.$ac_ext >&5
20700 eval "$as_ac_var=no"
20703 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20704 conftest$ac_exeext conftest.$ac_ext
20706 ac_res=`eval echo '${'$as_ac_var'}'`
20707 { echo "$as_me:$LINENO: result: $ac_res" >&5
20708 echo "${ECHO_T}$ac_res" >&6; }
20709 if test `eval echo '${'$as_ac_var'}'` = yes; then
20710 cat >>confdefs.h <<_ACEOF
20711 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20712 _ACEOF
20713 cat >conftest.$ac_ext <<_ACEOF
20714 /* confdefs.h. */
20715 _ACEOF
20716 cat confdefs.h >>conftest.$ac_ext
20717 cat >>conftest.$ac_ext <<_ACEOF
20718 /* end confdefs.h. */
20719 #include <sys/time.h>
20721 main ()
20723 gettimeofday((struct timeval*)0,(struct timezone*)0);
20725 return 0;
20727 _ACEOF
20728 rm -f conftest.$ac_objext
20729 if { (ac_try="$ac_compile"
20730 case "(($ac_try" in
20731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20732 *) ac_try_echo=$ac_try;;
20733 esac
20734 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20735 (eval "$ac_compile") 2>conftest.er1
20736 ac_status=$?
20737 grep -v '^ *+' conftest.er1 >conftest.err
20738 rm -f conftest.er1
20739 cat conftest.err >&5
20740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20741 (exit $ac_status); } && {
20742 test -z "$ac_c_werror_flag" ||
20743 test ! -s conftest.err
20744 } && test -s conftest.$ac_objext; then
20746 else
20747 echo "$as_me: failed program was:" >&5
20748 sed 's/^/| /' conftest.$ac_ext >&5
20751 cat >>confdefs.h <<\_ACEOF
20752 #define GETTIMEOFDAY_NO_TZ 1
20753 _ACEOF
20758 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20761 done
20764 { echo "$as_me:$LINENO: checking for major" >&5
20765 echo $ECHO_N "checking for major... $ECHO_C" >&6; }
20766 cat >conftest.$ac_ext <<_ACEOF
20767 /* confdefs.h. */
20768 _ACEOF
20769 cat confdefs.h >>conftest.$ac_ext
20770 cat >>conftest.$ac_ext <<_ACEOF
20771 /* end confdefs.h. */
20773 #if defined(MAJOR_IN_MKDEV)
20774 #include <sys/mkdev.h>
20775 #elif defined(MAJOR_IN_SYSMACROS)
20776 #include <sys/sysmacros.h>
20777 #else
20778 #include <sys/types.h>
20779 #endif
20782 main ()
20785 makedev(major(0),minor(0));
20788 return 0;
20790 _ACEOF
20791 rm -f conftest.$ac_objext conftest$ac_exeext
20792 if { (ac_try="$ac_link"
20793 case "(($ac_try" in
20794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20795 *) ac_try_echo=$ac_try;;
20796 esac
20797 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20798 (eval "$ac_link") 2>conftest.er1
20799 ac_status=$?
20800 grep -v '^ *+' conftest.er1 >conftest.err
20801 rm -f conftest.er1
20802 cat conftest.err >&5
20803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20804 (exit $ac_status); } && {
20805 test -z "$ac_c_werror_flag" ||
20806 test ! -s conftest.err
20807 } && test -s conftest$ac_exeext &&
20808 $as_test_x conftest$ac_exeext; then
20811 cat >>confdefs.h <<\_ACEOF
20812 #define HAVE_DEVICE_MACROS 1
20813 _ACEOF
20815 { echo "$as_me:$LINENO: result: yes" >&5
20816 echo "${ECHO_T}yes" >&6; }
20818 else
20819 echo "$as_me: failed program was:" >&5
20820 sed 's/^/| /' conftest.$ac_ext >&5
20823 { echo "$as_me:$LINENO: result: no" >&5
20824 echo "${ECHO_T}no" >&6; }
20828 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20829 conftest$ac_exeext conftest.$ac_ext
20831 # On OSF/1 V5.1, getaddrinfo is available, but a define
20832 # for [no]getaddrinfo in netdb.h.
20833 { echo "$as_me:$LINENO: checking for getaddrinfo" >&5
20834 echo $ECHO_N "checking for getaddrinfo... $ECHO_C" >&6; }
20835 cat >conftest.$ac_ext <<_ACEOF
20836 /* confdefs.h. */
20837 _ACEOF
20838 cat confdefs.h >>conftest.$ac_ext
20839 cat >>conftest.$ac_ext <<_ACEOF
20840 /* end confdefs.h. */
20842 #include <sys/types.h>
20843 #include <sys/socket.h>
20844 #include <netdb.h>
20845 #include <stdio.h>
20848 main ()
20850 getaddrinfo(NULL, NULL, NULL, NULL);
20852 return 0;
20854 _ACEOF
20855 rm -f conftest.$ac_objext conftest$ac_exeext
20856 if { (ac_try="$ac_link"
20857 case "(($ac_try" in
20858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20859 *) ac_try_echo=$ac_try;;
20860 esac
20861 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20862 (eval "$ac_link") 2>conftest.er1
20863 ac_status=$?
20864 grep -v '^ *+' conftest.er1 >conftest.err
20865 rm -f conftest.er1
20866 cat conftest.err >&5
20867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20868 (exit $ac_status); } && {
20869 test -z "$ac_c_werror_flag" ||
20870 test ! -s conftest.err
20871 } && test -s conftest$ac_exeext &&
20872 $as_test_x conftest$ac_exeext; then
20873 have_getaddrinfo=yes
20874 else
20875 echo "$as_me: failed program was:" >&5
20876 sed 's/^/| /' conftest.$ac_ext >&5
20878 have_getaddrinfo=no
20881 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20882 conftest$ac_exeext conftest.$ac_ext
20883 { echo "$as_me:$LINENO: result: $have_getaddrinfo" >&5
20884 echo "${ECHO_T}$have_getaddrinfo" >&6; }
20885 if test $have_getaddrinfo = yes
20886 then
20887 { echo "$as_me:$LINENO: checking getaddrinfo bug" >&5
20888 echo $ECHO_N "checking getaddrinfo bug... $ECHO_C" >&6; }
20889 if test "${ac_cv_buggy_getaddrinfo+set}" = set; then
20890 echo $ECHO_N "(cached) $ECHO_C" >&6
20891 else
20892 if test "$cross_compiling" = yes; then
20893 ac_cv_buggy_getaddrinfo=yes
20894 else
20895 cat >conftest.$ac_ext <<_ACEOF
20896 /* confdefs.h. */
20897 _ACEOF
20898 cat confdefs.h >>conftest.$ac_ext
20899 cat >>conftest.$ac_ext <<_ACEOF
20900 /* end confdefs.h. */
20902 #include <sys/types.h>
20903 #include <netdb.h>
20904 #include <string.h>
20905 #include <sys/socket.h>
20906 #include <netinet/in.h>
20908 int main()
20910 int passive, gaierr, inet4 = 0, inet6 = 0;
20911 struct addrinfo hints, *ai, *aitop;
20912 char straddr[INET6_ADDRSTRLEN], strport[16];
20914 for (passive = 0; passive <= 1; passive++) {
20915 memset(&hints, 0, sizeof(hints));
20916 hints.ai_family = AF_UNSPEC;
20917 hints.ai_flags = passive ? AI_PASSIVE : 0;
20918 hints.ai_socktype = SOCK_STREAM;
20919 hints.ai_protocol = IPPROTO_TCP;
20920 if ((gaierr = getaddrinfo(NULL, "54321", &hints, &aitop)) != 0) {
20921 (void)gai_strerror(gaierr);
20922 goto bad;
20924 for (ai = aitop; ai; ai = ai->ai_next) {
20925 if (ai->ai_addr == NULL ||
20926 ai->ai_addrlen == 0 ||
20927 getnameinfo(ai->ai_addr, ai->ai_addrlen,
20928 straddr, sizeof(straddr), strport, sizeof(strport),
20929 NI_NUMERICHOST|NI_NUMERICSERV) != 0) {
20930 goto bad;
20932 switch (ai->ai_family) {
20933 case AF_INET:
20934 if (strcmp(strport, "54321") != 0) {
20935 goto bad;
20937 if (passive) {
20938 if (strcmp(straddr, "0.0.0.0") != 0) {
20939 goto bad;
20941 } else {
20942 if (strcmp(straddr, "127.0.0.1") != 0) {
20943 goto bad;
20946 inet4++;
20947 break;
20948 case AF_INET6:
20949 if (strcmp(strport, "54321") != 0) {
20950 goto bad;
20952 if (passive) {
20953 if (strcmp(straddr, "::") != 0) {
20954 goto bad;
20956 } else {
20957 if (strcmp(straddr, "::1") != 0) {
20958 goto bad;
20961 inet6++;
20962 break;
20963 case AF_UNSPEC:
20964 goto bad;
20965 break;
20966 default:
20967 /* another family support? */
20968 break;
20973 if (!(inet4 == 0 || inet4 == 2))
20974 goto bad;
20975 if (!(inet6 == 0 || inet6 == 2))
20976 goto bad;
20978 if (aitop)
20979 freeaddrinfo(aitop);
20980 return 0;
20982 bad:
20983 if (aitop)
20984 freeaddrinfo(aitop);
20985 return 1;
20988 _ACEOF
20989 rm -f conftest$ac_exeext
20990 if { (ac_try="$ac_link"
20991 case "(($ac_try" in
20992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20993 *) ac_try_echo=$ac_try;;
20994 esac
20995 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20996 (eval "$ac_link") 2>&5
20997 ac_status=$?
20998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20999 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21000 { (case "(($ac_try" in
21001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21002 *) ac_try_echo=$ac_try;;
21003 esac
21004 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21005 (eval "$ac_try") 2>&5
21006 ac_status=$?
21007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21008 (exit $ac_status); }; }; then
21009 ac_cv_buggy_getaddrinfo=no
21010 else
21011 echo "$as_me: program exited with status $ac_status" >&5
21012 echo "$as_me: failed program was:" >&5
21013 sed 's/^/| /' conftest.$ac_ext >&5
21015 ( exit $ac_status )
21016 ac_cv_buggy_getaddrinfo=yes
21018 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21026 if test $have_getaddrinfo = no -o $ac_cv_buggy_getaddrinfo = yes
21027 then
21028 if test $ipv6 = yes
21029 then
21030 echo 'Fatal: You must get working getaddrinfo() function.'
21031 echo ' or you can specify "--disable-ipv6"'.
21032 exit 1
21034 else
21036 cat >>confdefs.h <<\_ACEOF
21037 #define HAVE_GETADDRINFO 1
21038 _ACEOF
21042 for ac_func in getnameinfo
21044 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21045 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21046 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21047 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21048 echo $ECHO_N "(cached) $ECHO_C" >&6
21049 else
21050 cat >conftest.$ac_ext <<_ACEOF
21051 /* confdefs.h. */
21052 _ACEOF
21053 cat confdefs.h >>conftest.$ac_ext
21054 cat >>conftest.$ac_ext <<_ACEOF
21055 /* end confdefs.h. */
21056 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21057 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21058 #define $ac_func innocuous_$ac_func
21060 /* System header to define __stub macros and hopefully few prototypes,
21061 which can conflict with char $ac_func (); below.
21062 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21063 <limits.h> exists even on freestanding compilers. */
21065 #ifdef __STDC__
21066 # include <limits.h>
21067 #else
21068 # include <assert.h>
21069 #endif
21071 #undef $ac_func
21073 /* Override any GCC internal prototype to avoid an error.
21074 Use char because int might match the return type of a GCC
21075 builtin and then its argument prototype would still apply. */
21076 #ifdef __cplusplus
21077 extern "C"
21078 #endif
21079 char $ac_func ();
21080 /* The GNU C library defines this for functions which it implements
21081 to always fail with ENOSYS. Some functions are actually named
21082 something starting with __ and the normal name is an alias. */
21083 #if defined __stub_$ac_func || defined __stub___$ac_func
21084 choke me
21085 #endif
21088 main ()
21090 return $ac_func ();
21092 return 0;
21094 _ACEOF
21095 rm -f conftest.$ac_objext conftest$ac_exeext
21096 if { (ac_try="$ac_link"
21097 case "(($ac_try" in
21098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21099 *) ac_try_echo=$ac_try;;
21100 esac
21101 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21102 (eval "$ac_link") 2>conftest.er1
21103 ac_status=$?
21104 grep -v '^ *+' conftest.er1 >conftest.err
21105 rm -f conftest.er1
21106 cat conftest.err >&5
21107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21108 (exit $ac_status); } && {
21109 test -z "$ac_c_werror_flag" ||
21110 test ! -s conftest.err
21111 } && test -s conftest$ac_exeext &&
21112 $as_test_x conftest$ac_exeext; then
21113 eval "$as_ac_var=yes"
21114 else
21115 echo "$as_me: failed program was:" >&5
21116 sed 's/^/| /' conftest.$ac_ext >&5
21118 eval "$as_ac_var=no"
21121 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21122 conftest$ac_exeext conftest.$ac_ext
21124 ac_res=`eval echo '${'$as_ac_var'}'`
21125 { echo "$as_me:$LINENO: result: $ac_res" >&5
21126 echo "${ECHO_T}$ac_res" >&6; }
21127 if test `eval echo '${'$as_ac_var'}'` = yes; then
21128 cat >>confdefs.h <<_ACEOF
21129 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21130 _ACEOF
21133 done
21136 # checks for structures
21137 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
21138 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
21139 if test "${ac_cv_header_time+set}" = set; then
21140 echo $ECHO_N "(cached) $ECHO_C" >&6
21141 else
21142 cat >conftest.$ac_ext <<_ACEOF
21143 /* confdefs.h. */
21144 _ACEOF
21145 cat confdefs.h >>conftest.$ac_ext
21146 cat >>conftest.$ac_ext <<_ACEOF
21147 /* end confdefs.h. */
21148 #include <sys/types.h>
21149 #include <sys/time.h>
21150 #include <time.h>
21153 main ()
21155 if ((struct tm *) 0)
21156 return 0;
21158 return 0;
21160 _ACEOF
21161 rm -f conftest.$ac_objext
21162 if { (ac_try="$ac_compile"
21163 case "(($ac_try" in
21164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21165 *) ac_try_echo=$ac_try;;
21166 esac
21167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21168 (eval "$ac_compile") 2>conftest.er1
21169 ac_status=$?
21170 grep -v '^ *+' conftest.er1 >conftest.err
21171 rm -f conftest.er1
21172 cat conftest.err >&5
21173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21174 (exit $ac_status); } && {
21175 test -z "$ac_c_werror_flag" ||
21176 test ! -s conftest.err
21177 } && test -s conftest.$ac_objext; then
21178 ac_cv_header_time=yes
21179 else
21180 echo "$as_me: failed program was:" >&5
21181 sed 's/^/| /' conftest.$ac_ext >&5
21183 ac_cv_header_time=no
21186 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21188 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
21189 echo "${ECHO_T}$ac_cv_header_time" >&6; }
21190 if test $ac_cv_header_time = yes; then
21192 cat >>confdefs.h <<\_ACEOF
21193 #define TIME_WITH_SYS_TIME 1
21194 _ACEOF
21198 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
21199 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
21200 if test "${ac_cv_struct_tm+set}" = set; then
21201 echo $ECHO_N "(cached) $ECHO_C" >&6
21202 else
21203 cat >conftest.$ac_ext <<_ACEOF
21204 /* confdefs.h. */
21205 _ACEOF
21206 cat confdefs.h >>conftest.$ac_ext
21207 cat >>conftest.$ac_ext <<_ACEOF
21208 /* end confdefs.h. */
21209 #include <sys/types.h>
21210 #include <time.h>
21213 main ()
21215 struct tm tm;
21216 int *p = &tm.tm_sec;
21217 return !p;
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_struct_tm=time.h
21240 else
21241 echo "$as_me: failed program was:" >&5
21242 sed 's/^/| /' conftest.$ac_ext >&5
21244 ac_cv_struct_tm=sys/time.h
21247 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21249 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
21250 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
21251 if test $ac_cv_struct_tm = sys/time.h; then
21253 cat >>confdefs.h <<\_ACEOF
21254 #define TM_IN_SYS_TIME 1
21255 _ACEOF
21259 { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
21260 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
21261 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
21262 echo $ECHO_N "(cached) $ECHO_C" >&6
21263 else
21264 cat >conftest.$ac_ext <<_ACEOF
21265 /* confdefs.h. */
21266 _ACEOF
21267 cat confdefs.h >>conftest.$ac_ext
21268 cat >>conftest.$ac_ext <<_ACEOF
21269 /* end confdefs.h. */
21270 #include <sys/types.h>
21271 #include <$ac_cv_struct_tm>
21275 main ()
21277 static struct tm ac_aggr;
21278 if (ac_aggr.tm_zone)
21279 return 0;
21281 return 0;
21283 _ACEOF
21284 rm -f conftest.$ac_objext
21285 if { (ac_try="$ac_compile"
21286 case "(($ac_try" in
21287 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21288 *) ac_try_echo=$ac_try;;
21289 esac
21290 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21291 (eval "$ac_compile") 2>conftest.er1
21292 ac_status=$?
21293 grep -v '^ *+' conftest.er1 >conftest.err
21294 rm -f conftest.er1
21295 cat conftest.err >&5
21296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21297 (exit $ac_status); } && {
21298 test -z "$ac_c_werror_flag" ||
21299 test ! -s conftest.err
21300 } && test -s conftest.$ac_objext; then
21301 ac_cv_member_struct_tm_tm_zone=yes
21302 else
21303 echo "$as_me: failed program was:" >&5
21304 sed 's/^/| /' conftest.$ac_ext >&5
21306 cat >conftest.$ac_ext <<_ACEOF
21307 /* confdefs.h. */
21308 _ACEOF
21309 cat confdefs.h >>conftest.$ac_ext
21310 cat >>conftest.$ac_ext <<_ACEOF
21311 /* end confdefs.h. */
21312 #include <sys/types.h>
21313 #include <$ac_cv_struct_tm>
21317 main ()
21319 static struct tm ac_aggr;
21320 if (sizeof ac_aggr.tm_zone)
21321 return 0;
21323 return 0;
21325 _ACEOF
21326 rm -f conftest.$ac_objext
21327 if { (ac_try="$ac_compile"
21328 case "(($ac_try" in
21329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21330 *) ac_try_echo=$ac_try;;
21331 esac
21332 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21333 (eval "$ac_compile") 2>conftest.er1
21334 ac_status=$?
21335 grep -v '^ *+' conftest.er1 >conftest.err
21336 rm -f conftest.er1
21337 cat conftest.err >&5
21338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21339 (exit $ac_status); } && {
21340 test -z "$ac_c_werror_flag" ||
21341 test ! -s conftest.err
21342 } && test -s conftest.$ac_objext; then
21343 ac_cv_member_struct_tm_tm_zone=yes
21344 else
21345 echo "$as_me: failed program was:" >&5
21346 sed 's/^/| /' conftest.$ac_ext >&5
21348 ac_cv_member_struct_tm_tm_zone=no
21351 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21354 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21356 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
21357 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
21358 if test $ac_cv_member_struct_tm_tm_zone = yes; then
21360 cat >>confdefs.h <<_ACEOF
21361 #define HAVE_STRUCT_TM_TM_ZONE 1
21362 _ACEOF
21367 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
21369 cat >>confdefs.h <<\_ACEOF
21370 #define HAVE_TM_ZONE 1
21371 _ACEOF
21373 else
21374 { echo "$as_me:$LINENO: checking whether tzname is declared" >&5
21375 echo $ECHO_N "checking whether tzname is declared... $ECHO_C" >&6; }
21376 if test "${ac_cv_have_decl_tzname+set}" = set; then
21377 echo $ECHO_N "(cached) $ECHO_C" >&6
21378 else
21379 cat >conftest.$ac_ext <<_ACEOF
21380 /* confdefs.h. */
21381 _ACEOF
21382 cat confdefs.h >>conftest.$ac_ext
21383 cat >>conftest.$ac_ext <<_ACEOF
21384 /* end confdefs.h. */
21385 #include <time.h>
21388 main ()
21390 #ifndef tzname
21391 (void) tzname;
21392 #endif
21395 return 0;
21397 _ACEOF
21398 rm -f conftest.$ac_objext
21399 if { (ac_try="$ac_compile"
21400 case "(($ac_try" in
21401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21402 *) ac_try_echo=$ac_try;;
21403 esac
21404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21405 (eval "$ac_compile") 2>conftest.er1
21406 ac_status=$?
21407 grep -v '^ *+' conftest.er1 >conftest.err
21408 rm -f conftest.er1
21409 cat conftest.err >&5
21410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21411 (exit $ac_status); } && {
21412 test -z "$ac_c_werror_flag" ||
21413 test ! -s conftest.err
21414 } && test -s conftest.$ac_objext; then
21415 ac_cv_have_decl_tzname=yes
21416 else
21417 echo "$as_me: failed program was:" >&5
21418 sed 's/^/| /' conftest.$ac_ext >&5
21420 ac_cv_have_decl_tzname=no
21423 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21425 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
21426 echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; }
21427 if test $ac_cv_have_decl_tzname = yes; then
21429 cat >>confdefs.h <<_ACEOF
21430 #define HAVE_DECL_TZNAME 1
21431 _ACEOF
21434 else
21435 cat >>confdefs.h <<_ACEOF
21436 #define HAVE_DECL_TZNAME 0
21437 _ACEOF
21443 { echo "$as_me:$LINENO: checking for tzname" >&5
21444 echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
21445 if test "${ac_cv_var_tzname+set}" = set; then
21446 echo $ECHO_N "(cached) $ECHO_C" >&6
21447 else
21448 cat >conftest.$ac_ext <<_ACEOF
21449 /* confdefs.h. */
21450 _ACEOF
21451 cat confdefs.h >>conftest.$ac_ext
21452 cat >>conftest.$ac_ext <<_ACEOF
21453 /* end confdefs.h. */
21454 #include <time.h>
21455 #if !HAVE_DECL_TZNAME
21456 extern char *tzname[];
21457 #endif
21460 main ()
21462 return tzname[0][0];
21464 return 0;
21466 _ACEOF
21467 rm -f conftest.$ac_objext conftest$ac_exeext
21468 if { (ac_try="$ac_link"
21469 case "(($ac_try" in
21470 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21471 *) ac_try_echo=$ac_try;;
21472 esac
21473 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21474 (eval "$ac_link") 2>conftest.er1
21475 ac_status=$?
21476 grep -v '^ *+' conftest.er1 >conftest.err
21477 rm -f conftest.er1
21478 cat conftest.err >&5
21479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21480 (exit $ac_status); } && {
21481 test -z "$ac_c_werror_flag" ||
21482 test ! -s conftest.err
21483 } && test -s conftest$ac_exeext &&
21484 $as_test_x conftest$ac_exeext; then
21485 ac_cv_var_tzname=yes
21486 else
21487 echo "$as_me: failed program was:" >&5
21488 sed 's/^/| /' conftest.$ac_ext >&5
21490 ac_cv_var_tzname=no
21493 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21494 conftest$ac_exeext conftest.$ac_ext
21496 { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
21497 echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
21498 if test $ac_cv_var_tzname = yes; then
21500 cat >>confdefs.h <<\_ACEOF
21501 #define HAVE_TZNAME 1
21502 _ACEOF
21507 { echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
21508 echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6; }
21509 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
21510 echo $ECHO_N "(cached) $ECHO_C" >&6
21511 else
21512 cat >conftest.$ac_ext <<_ACEOF
21513 /* confdefs.h. */
21514 _ACEOF
21515 cat confdefs.h >>conftest.$ac_ext
21516 cat >>conftest.$ac_ext <<_ACEOF
21517 /* end confdefs.h. */
21518 $ac_includes_default
21520 main ()
21522 static struct stat ac_aggr;
21523 if (ac_aggr.st_rdev)
21524 return 0;
21526 return 0;
21528 _ACEOF
21529 rm -f conftest.$ac_objext
21530 if { (ac_try="$ac_compile"
21531 case "(($ac_try" in
21532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21533 *) ac_try_echo=$ac_try;;
21534 esac
21535 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21536 (eval "$ac_compile") 2>conftest.er1
21537 ac_status=$?
21538 grep -v '^ *+' conftest.er1 >conftest.err
21539 rm -f conftest.er1
21540 cat conftest.err >&5
21541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21542 (exit $ac_status); } && {
21543 test -z "$ac_c_werror_flag" ||
21544 test ! -s conftest.err
21545 } && test -s conftest.$ac_objext; then
21546 ac_cv_member_struct_stat_st_rdev=yes
21547 else
21548 echo "$as_me: failed program was:" >&5
21549 sed 's/^/| /' conftest.$ac_ext >&5
21551 cat >conftest.$ac_ext <<_ACEOF
21552 /* confdefs.h. */
21553 _ACEOF
21554 cat confdefs.h >>conftest.$ac_ext
21555 cat >>conftest.$ac_ext <<_ACEOF
21556 /* end confdefs.h. */
21557 $ac_includes_default
21559 main ()
21561 static struct stat ac_aggr;
21562 if (sizeof ac_aggr.st_rdev)
21563 return 0;
21565 return 0;
21567 _ACEOF
21568 rm -f conftest.$ac_objext
21569 if { (ac_try="$ac_compile"
21570 case "(($ac_try" in
21571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21572 *) ac_try_echo=$ac_try;;
21573 esac
21574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21575 (eval "$ac_compile") 2>conftest.er1
21576 ac_status=$?
21577 grep -v '^ *+' conftest.er1 >conftest.err
21578 rm -f conftest.er1
21579 cat conftest.err >&5
21580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21581 (exit $ac_status); } && {
21582 test -z "$ac_c_werror_flag" ||
21583 test ! -s conftest.err
21584 } && test -s conftest.$ac_objext; then
21585 ac_cv_member_struct_stat_st_rdev=yes
21586 else
21587 echo "$as_me: failed program was:" >&5
21588 sed 's/^/| /' conftest.$ac_ext >&5
21590 ac_cv_member_struct_stat_st_rdev=no
21593 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21596 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21598 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
21599 echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6; }
21600 if test $ac_cv_member_struct_stat_st_rdev = yes; then
21602 cat >>confdefs.h <<_ACEOF
21603 #define HAVE_STRUCT_STAT_ST_RDEV 1
21604 _ACEOF
21609 { echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
21610 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6; }
21611 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
21612 echo $ECHO_N "(cached) $ECHO_C" >&6
21613 else
21614 cat >conftest.$ac_ext <<_ACEOF
21615 /* confdefs.h. */
21616 _ACEOF
21617 cat confdefs.h >>conftest.$ac_ext
21618 cat >>conftest.$ac_ext <<_ACEOF
21619 /* end confdefs.h. */
21620 $ac_includes_default
21622 main ()
21624 static struct stat ac_aggr;
21625 if (ac_aggr.st_blksize)
21626 return 0;
21628 return 0;
21630 _ACEOF
21631 rm -f conftest.$ac_objext
21632 if { (ac_try="$ac_compile"
21633 case "(($ac_try" in
21634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21635 *) ac_try_echo=$ac_try;;
21636 esac
21637 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21638 (eval "$ac_compile") 2>conftest.er1
21639 ac_status=$?
21640 grep -v '^ *+' conftest.er1 >conftest.err
21641 rm -f conftest.er1
21642 cat conftest.err >&5
21643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21644 (exit $ac_status); } && {
21645 test -z "$ac_c_werror_flag" ||
21646 test ! -s conftest.err
21647 } && test -s conftest.$ac_objext; then
21648 ac_cv_member_struct_stat_st_blksize=yes
21649 else
21650 echo "$as_me: failed program was:" >&5
21651 sed 's/^/| /' conftest.$ac_ext >&5
21653 cat >conftest.$ac_ext <<_ACEOF
21654 /* confdefs.h. */
21655 _ACEOF
21656 cat confdefs.h >>conftest.$ac_ext
21657 cat >>conftest.$ac_ext <<_ACEOF
21658 /* end confdefs.h. */
21659 $ac_includes_default
21661 main ()
21663 static struct stat ac_aggr;
21664 if (sizeof ac_aggr.st_blksize)
21665 return 0;
21667 return 0;
21669 _ACEOF
21670 rm -f conftest.$ac_objext
21671 if { (ac_try="$ac_compile"
21672 case "(($ac_try" in
21673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21674 *) ac_try_echo=$ac_try;;
21675 esac
21676 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21677 (eval "$ac_compile") 2>conftest.er1
21678 ac_status=$?
21679 grep -v '^ *+' conftest.er1 >conftest.err
21680 rm -f conftest.er1
21681 cat conftest.err >&5
21682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21683 (exit $ac_status); } && {
21684 test -z "$ac_c_werror_flag" ||
21685 test ! -s conftest.err
21686 } && test -s conftest.$ac_objext; then
21687 ac_cv_member_struct_stat_st_blksize=yes
21688 else
21689 echo "$as_me: failed program was:" >&5
21690 sed 's/^/| /' conftest.$ac_ext >&5
21692 ac_cv_member_struct_stat_st_blksize=no
21695 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21698 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21700 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
21701 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6; }
21702 if test $ac_cv_member_struct_stat_st_blksize = yes; then
21704 cat >>confdefs.h <<_ACEOF
21705 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
21706 _ACEOF
21711 { echo "$as_me:$LINENO: checking for struct stat.st_flags" >&5
21712 echo $ECHO_N "checking for struct stat.st_flags... $ECHO_C" >&6; }
21713 if test "${ac_cv_member_struct_stat_st_flags+set}" = set; then
21714 echo $ECHO_N "(cached) $ECHO_C" >&6
21715 else
21716 cat >conftest.$ac_ext <<_ACEOF
21717 /* confdefs.h. */
21718 _ACEOF
21719 cat confdefs.h >>conftest.$ac_ext
21720 cat >>conftest.$ac_ext <<_ACEOF
21721 /* end confdefs.h. */
21722 $ac_includes_default
21724 main ()
21726 static struct stat ac_aggr;
21727 if (ac_aggr.st_flags)
21728 return 0;
21730 return 0;
21732 _ACEOF
21733 rm -f conftest.$ac_objext
21734 if { (ac_try="$ac_compile"
21735 case "(($ac_try" in
21736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21737 *) ac_try_echo=$ac_try;;
21738 esac
21739 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21740 (eval "$ac_compile") 2>conftest.er1
21741 ac_status=$?
21742 grep -v '^ *+' conftest.er1 >conftest.err
21743 rm -f conftest.er1
21744 cat conftest.err >&5
21745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21746 (exit $ac_status); } && {
21747 test -z "$ac_c_werror_flag" ||
21748 test ! -s conftest.err
21749 } && test -s conftest.$ac_objext; then
21750 ac_cv_member_struct_stat_st_flags=yes
21751 else
21752 echo "$as_me: failed program was:" >&5
21753 sed 's/^/| /' conftest.$ac_ext >&5
21755 cat >conftest.$ac_ext <<_ACEOF
21756 /* confdefs.h. */
21757 _ACEOF
21758 cat confdefs.h >>conftest.$ac_ext
21759 cat >>conftest.$ac_ext <<_ACEOF
21760 /* end confdefs.h. */
21761 $ac_includes_default
21763 main ()
21765 static struct stat ac_aggr;
21766 if (sizeof ac_aggr.st_flags)
21767 return 0;
21769 return 0;
21771 _ACEOF
21772 rm -f conftest.$ac_objext
21773 if { (ac_try="$ac_compile"
21774 case "(($ac_try" in
21775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21776 *) ac_try_echo=$ac_try;;
21777 esac
21778 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21779 (eval "$ac_compile") 2>conftest.er1
21780 ac_status=$?
21781 grep -v '^ *+' conftest.er1 >conftest.err
21782 rm -f conftest.er1
21783 cat conftest.err >&5
21784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21785 (exit $ac_status); } && {
21786 test -z "$ac_c_werror_flag" ||
21787 test ! -s conftest.err
21788 } && test -s conftest.$ac_objext; then
21789 ac_cv_member_struct_stat_st_flags=yes
21790 else
21791 echo "$as_me: failed program was:" >&5
21792 sed 's/^/| /' conftest.$ac_ext >&5
21794 ac_cv_member_struct_stat_st_flags=no
21797 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21800 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21802 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_flags" >&5
21803 echo "${ECHO_T}$ac_cv_member_struct_stat_st_flags" >&6; }
21804 if test $ac_cv_member_struct_stat_st_flags = yes; then
21806 cat >>confdefs.h <<_ACEOF
21807 #define HAVE_STRUCT_STAT_ST_FLAGS 1
21808 _ACEOF
21813 { echo "$as_me:$LINENO: checking for struct stat.st_gen" >&5
21814 echo $ECHO_N "checking for struct stat.st_gen... $ECHO_C" >&6; }
21815 if test "${ac_cv_member_struct_stat_st_gen+set}" = set; then
21816 echo $ECHO_N "(cached) $ECHO_C" >&6
21817 else
21818 cat >conftest.$ac_ext <<_ACEOF
21819 /* confdefs.h. */
21820 _ACEOF
21821 cat confdefs.h >>conftest.$ac_ext
21822 cat >>conftest.$ac_ext <<_ACEOF
21823 /* end confdefs.h. */
21824 $ac_includes_default
21826 main ()
21828 static struct stat ac_aggr;
21829 if (ac_aggr.st_gen)
21830 return 0;
21832 return 0;
21834 _ACEOF
21835 rm -f conftest.$ac_objext
21836 if { (ac_try="$ac_compile"
21837 case "(($ac_try" in
21838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21839 *) ac_try_echo=$ac_try;;
21840 esac
21841 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21842 (eval "$ac_compile") 2>conftest.er1
21843 ac_status=$?
21844 grep -v '^ *+' conftest.er1 >conftest.err
21845 rm -f conftest.er1
21846 cat conftest.err >&5
21847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21848 (exit $ac_status); } && {
21849 test -z "$ac_c_werror_flag" ||
21850 test ! -s conftest.err
21851 } && test -s conftest.$ac_objext; then
21852 ac_cv_member_struct_stat_st_gen=yes
21853 else
21854 echo "$as_me: failed program was:" >&5
21855 sed 's/^/| /' conftest.$ac_ext >&5
21857 cat >conftest.$ac_ext <<_ACEOF
21858 /* confdefs.h. */
21859 _ACEOF
21860 cat confdefs.h >>conftest.$ac_ext
21861 cat >>conftest.$ac_ext <<_ACEOF
21862 /* end confdefs.h. */
21863 $ac_includes_default
21865 main ()
21867 static struct stat ac_aggr;
21868 if (sizeof ac_aggr.st_gen)
21869 return 0;
21871 return 0;
21873 _ACEOF
21874 rm -f conftest.$ac_objext
21875 if { (ac_try="$ac_compile"
21876 case "(($ac_try" in
21877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21878 *) ac_try_echo=$ac_try;;
21879 esac
21880 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21881 (eval "$ac_compile") 2>conftest.er1
21882 ac_status=$?
21883 grep -v '^ *+' conftest.er1 >conftest.err
21884 rm -f conftest.er1
21885 cat conftest.err >&5
21886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21887 (exit $ac_status); } && {
21888 test -z "$ac_c_werror_flag" ||
21889 test ! -s conftest.err
21890 } && test -s conftest.$ac_objext; then
21891 ac_cv_member_struct_stat_st_gen=yes
21892 else
21893 echo "$as_me: failed program was:" >&5
21894 sed 's/^/| /' conftest.$ac_ext >&5
21896 ac_cv_member_struct_stat_st_gen=no
21899 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21902 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21904 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_gen" >&5
21905 echo "${ECHO_T}$ac_cv_member_struct_stat_st_gen" >&6; }
21906 if test $ac_cv_member_struct_stat_st_gen = yes; then
21908 cat >>confdefs.h <<_ACEOF
21909 #define HAVE_STRUCT_STAT_ST_GEN 1
21910 _ACEOF
21915 { echo "$as_me:$LINENO: checking for struct stat.st_birthtime" >&5
21916 echo $ECHO_N "checking for struct stat.st_birthtime... $ECHO_C" >&6; }
21917 if test "${ac_cv_member_struct_stat_st_birthtime+set}" = set; then
21918 echo $ECHO_N "(cached) $ECHO_C" >&6
21919 else
21920 cat >conftest.$ac_ext <<_ACEOF
21921 /* confdefs.h. */
21922 _ACEOF
21923 cat confdefs.h >>conftest.$ac_ext
21924 cat >>conftest.$ac_ext <<_ACEOF
21925 /* end confdefs.h. */
21926 $ac_includes_default
21928 main ()
21930 static struct stat ac_aggr;
21931 if (ac_aggr.st_birthtime)
21932 return 0;
21934 return 0;
21936 _ACEOF
21937 rm -f conftest.$ac_objext
21938 if { (ac_try="$ac_compile"
21939 case "(($ac_try" in
21940 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21941 *) ac_try_echo=$ac_try;;
21942 esac
21943 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21944 (eval "$ac_compile") 2>conftest.er1
21945 ac_status=$?
21946 grep -v '^ *+' conftest.er1 >conftest.err
21947 rm -f conftest.er1
21948 cat conftest.err >&5
21949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21950 (exit $ac_status); } && {
21951 test -z "$ac_c_werror_flag" ||
21952 test ! -s conftest.err
21953 } && test -s conftest.$ac_objext; then
21954 ac_cv_member_struct_stat_st_birthtime=yes
21955 else
21956 echo "$as_me: failed program was:" >&5
21957 sed 's/^/| /' conftest.$ac_ext >&5
21959 cat >conftest.$ac_ext <<_ACEOF
21960 /* confdefs.h. */
21961 _ACEOF
21962 cat confdefs.h >>conftest.$ac_ext
21963 cat >>conftest.$ac_ext <<_ACEOF
21964 /* end confdefs.h. */
21965 $ac_includes_default
21967 main ()
21969 static struct stat ac_aggr;
21970 if (sizeof ac_aggr.st_birthtime)
21971 return 0;
21973 return 0;
21975 _ACEOF
21976 rm -f conftest.$ac_objext
21977 if { (ac_try="$ac_compile"
21978 case "(($ac_try" in
21979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21980 *) ac_try_echo=$ac_try;;
21981 esac
21982 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21983 (eval "$ac_compile") 2>conftest.er1
21984 ac_status=$?
21985 grep -v '^ *+' conftest.er1 >conftest.err
21986 rm -f conftest.er1
21987 cat conftest.err >&5
21988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21989 (exit $ac_status); } && {
21990 test -z "$ac_c_werror_flag" ||
21991 test ! -s conftest.err
21992 } && test -s conftest.$ac_objext; then
21993 ac_cv_member_struct_stat_st_birthtime=yes
21994 else
21995 echo "$as_me: failed program was:" >&5
21996 sed 's/^/| /' conftest.$ac_ext >&5
21998 ac_cv_member_struct_stat_st_birthtime=no
22001 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22004 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22006 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_birthtime" >&5
22007 echo "${ECHO_T}$ac_cv_member_struct_stat_st_birthtime" >&6; }
22008 if test $ac_cv_member_struct_stat_st_birthtime = yes; then
22010 cat >>confdefs.h <<_ACEOF
22011 #define HAVE_STRUCT_STAT_ST_BIRTHTIME 1
22012 _ACEOF
22017 { echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
22018 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6; }
22019 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
22020 echo $ECHO_N "(cached) $ECHO_C" >&6
22021 else
22022 cat >conftest.$ac_ext <<_ACEOF
22023 /* confdefs.h. */
22024 _ACEOF
22025 cat confdefs.h >>conftest.$ac_ext
22026 cat >>conftest.$ac_ext <<_ACEOF
22027 /* end confdefs.h. */
22028 $ac_includes_default
22030 main ()
22032 static struct stat ac_aggr;
22033 if (ac_aggr.st_blocks)
22034 return 0;
22036 return 0;
22038 _ACEOF
22039 rm -f conftest.$ac_objext
22040 if { (ac_try="$ac_compile"
22041 case "(($ac_try" in
22042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22043 *) ac_try_echo=$ac_try;;
22044 esac
22045 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22046 (eval "$ac_compile") 2>conftest.er1
22047 ac_status=$?
22048 grep -v '^ *+' conftest.er1 >conftest.err
22049 rm -f conftest.er1
22050 cat conftest.err >&5
22051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22052 (exit $ac_status); } && {
22053 test -z "$ac_c_werror_flag" ||
22054 test ! -s conftest.err
22055 } && test -s conftest.$ac_objext; then
22056 ac_cv_member_struct_stat_st_blocks=yes
22057 else
22058 echo "$as_me: failed program was:" >&5
22059 sed 's/^/| /' conftest.$ac_ext >&5
22061 cat >conftest.$ac_ext <<_ACEOF
22062 /* confdefs.h. */
22063 _ACEOF
22064 cat confdefs.h >>conftest.$ac_ext
22065 cat >>conftest.$ac_ext <<_ACEOF
22066 /* end confdefs.h. */
22067 $ac_includes_default
22069 main ()
22071 static struct stat ac_aggr;
22072 if (sizeof ac_aggr.st_blocks)
22073 return 0;
22075 return 0;
22077 _ACEOF
22078 rm -f conftest.$ac_objext
22079 if { (ac_try="$ac_compile"
22080 case "(($ac_try" in
22081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22082 *) ac_try_echo=$ac_try;;
22083 esac
22084 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22085 (eval "$ac_compile") 2>conftest.er1
22086 ac_status=$?
22087 grep -v '^ *+' conftest.er1 >conftest.err
22088 rm -f conftest.er1
22089 cat conftest.err >&5
22090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22091 (exit $ac_status); } && {
22092 test -z "$ac_c_werror_flag" ||
22093 test ! -s conftest.err
22094 } && test -s conftest.$ac_objext; then
22095 ac_cv_member_struct_stat_st_blocks=yes
22096 else
22097 echo "$as_me: failed program was:" >&5
22098 sed 's/^/| /' conftest.$ac_ext >&5
22100 ac_cv_member_struct_stat_st_blocks=no
22103 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22106 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22108 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
22109 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6; }
22110 if test $ac_cv_member_struct_stat_st_blocks = yes; then
22112 cat >>confdefs.h <<_ACEOF
22113 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
22114 _ACEOF
22117 cat >>confdefs.h <<\_ACEOF
22118 #define HAVE_ST_BLOCKS 1
22119 _ACEOF
22121 else
22122 case " $LIBOBJS " in
22123 *" fileblocks.$ac_objext "* ) ;;
22124 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
22126 esac
22132 { echo "$as_me:$LINENO: checking for time.h that defines altzone" >&5
22133 echo $ECHO_N "checking for time.h that defines altzone... $ECHO_C" >&6; }
22134 if test "${ac_cv_header_time_altzone+set}" = set; then
22135 echo $ECHO_N "(cached) $ECHO_C" >&6
22136 else
22137 cat >conftest.$ac_ext <<_ACEOF
22138 /* confdefs.h. */
22139 _ACEOF
22140 cat confdefs.h >>conftest.$ac_ext
22141 cat >>conftest.$ac_ext <<_ACEOF
22142 /* end confdefs.h. */
22143 #include <time.h>
22145 main ()
22147 return altzone;
22149 return 0;
22151 _ACEOF
22152 rm -f conftest.$ac_objext
22153 if { (ac_try="$ac_compile"
22154 case "(($ac_try" in
22155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22156 *) ac_try_echo=$ac_try;;
22157 esac
22158 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22159 (eval "$ac_compile") 2>conftest.er1
22160 ac_status=$?
22161 grep -v '^ *+' conftest.er1 >conftest.err
22162 rm -f conftest.er1
22163 cat conftest.err >&5
22164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22165 (exit $ac_status); } && {
22166 test -z "$ac_c_werror_flag" ||
22167 test ! -s conftest.err
22168 } && test -s conftest.$ac_objext; then
22169 ac_cv_header_time_altzone=yes
22170 else
22171 echo "$as_me: failed program was:" >&5
22172 sed 's/^/| /' conftest.$ac_ext >&5
22174 ac_cv_header_time_altzone=no
22177 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22180 { echo "$as_me:$LINENO: result: $ac_cv_header_time_altzone" >&5
22181 echo "${ECHO_T}$ac_cv_header_time_altzone" >&6; }
22182 if test $ac_cv_header_time_altzone = yes; then
22184 cat >>confdefs.h <<\_ACEOF
22185 #define HAVE_ALTZONE 1
22186 _ACEOF
22190 was_it_defined=no
22191 { echo "$as_me:$LINENO: checking whether sys/select.h and sys/time.h may both be included" >&5
22192 echo $ECHO_N "checking whether sys/select.h and sys/time.h may both be included... $ECHO_C" >&6; }
22193 cat >conftest.$ac_ext <<_ACEOF
22194 /* confdefs.h. */
22195 _ACEOF
22196 cat confdefs.h >>conftest.$ac_ext
22197 cat >>conftest.$ac_ext <<_ACEOF
22198 /* end confdefs.h. */
22200 #include <sys/types.h>
22201 #include <sys/select.h>
22202 #include <sys/time.h>
22205 main ()
22209 return 0;
22211 _ACEOF
22212 rm -f conftest.$ac_objext
22213 if { (ac_try="$ac_compile"
22214 case "(($ac_try" in
22215 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22216 *) ac_try_echo=$ac_try;;
22217 esac
22218 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22219 (eval "$ac_compile") 2>conftest.er1
22220 ac_status=$?
22221 grep -v '^ *+' conftest.er1 >conftest.err
22222 rm -f conftest.er1
22223 cat conftest.err >&5
22224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22225 (exit $ac_status); } && {
22226 test -z "$ac_c_werror_flag" ||
22227 test ! -s conftest.err
22228 } && test -s conftest.$ac_objext; then
22231 cat >>confdefs.h <<\_ACEOF
22232 #define SYS_SELECT_WITH_SYS_TIME 1
22233 _ACEOF
22235 was_it_defined=yes
22237 else
22238 echo "$as_me: failed program was:" >&5
22239 sed 's/^/| /' conftest.$ac_ext >&5
22244 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22245 { echo "$as_me:$LINENO: result: $was_it_defined" >&5
22246 echo "${ECHO_T}$was_it_defined" >&6; }
22248 { echo "$as_me:$LINENO: checking for addrinfo" >&5
22249 echo $ECHO_N "checking for addrinfo... $ECHO_C" >&6; }
22250 if test "${ac_cv_struct_addrinfo+set}" = set; then
22251 echo $ECHO_N "(cached) $ECHO_C" >&6
22252 else
22253 cat >conftest.$ac_ext <<_ACEOF
22254 /* confdefs.h. */
22255 _ACEOF
22256 cat confdefs.h >>conftest.$ac_ext
22257 cat >>conftest.$ac_ext <<_ACEOF
22258 /* end confdefs.h. */
22260 # include <netdb.h>
22262 main ()
22264 struct addrinfo a
22266 return 0;
22268 _ACEOF
22269 rm -f conftest.$ac_objext
22270 if { (ac_try="$ac_compile"
22271 case "(($ac_try" in
22272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22273 *) ac_try_echo=$ac_try;;
22274 esac
22275 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22276 (eval "$ac_compile") 2>conftest.er1
22277 ac_status=$?
22278 grep -v '^ *+' conftest.er1 >conftest.err
22279 rm -f conftest.er1
22280 cat conftest.err >&5
22281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22282 (exit $ac_status); } && {
22283 test -z "$ac_c_werror_flag" ||
22284 test ! -s conftest.err
22285 } && test -s conftest.$ac_objext; then
22286 ac_cv_struct_addrinfo=yes
22287 else
22288 echo "$as_me: failed program was:" >&5
22289 sed 's/^/| /' conftest.$ac_ext >&5
22291 ac_cv_struct_addrinfo=no
22294 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22297 { echo "$as_me:$LINENO: result: $ac_cv_struct_addrinfo" >&5
22298 echo "${ECHO_T}$ac_cv_struct_addrinfo" >&6; }
22299 if test $ac_cv_struct_addrinfo = yes; then
22301 cat >>confdefs.h <<\_ACEOF
22302 #define HAVE_ADDRINFO 1
22303 _ACEOF
22307 { echo "$as_me:$LINENO: checking for sockaddr_storage" >&5
22308 echo $ECHO_N "checking for sockaddr_storage... $ECHO_C" >&6; }
22309 if test "${ac_cv_struct_sockaddr_storage+set}" = set; then
22310 echo $ECHO_N "(cached) $ECHO_C" >&6
22311 else
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>
22322 main ()
22324 struct sockaddr_storage s
22326 return 0;
22328 _ACEOF
22329 rm -f conftest.$ac_objext
22330 if { (ac_try="$ac_compile"
22331 case "(($ac_try" in
22332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22333 *) ac_try_echo=$ac_try;;
22334 esac
22335 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22336 (eval "$ac_compile") 2>conftest.er1
22337 ac_status=$?
22338 grep -v '^ *+' conftest.er1 >conftest.err
22339 rm -f conftest.er1
22340 cat conftest.err >&5
22341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22342 (exit $ac_status); } && {
22343 test -z "$ac_c_werror_flag" ||
22344 test ! -s conftest.err
22345 } && test -s conftest.$ac_objext; then
22346 ac_cv_struct_sockaddr_storage=yes
22347 else
22348 echo "$as_me: failed program was:" >&5
22349 sed 's/^/| /' conftest.$ac_ext >&5
22351 ac_cv_struct_sockaddr_storage=no
22354 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22357 { echo "$as_me:$LINENO: result: $ac_cv_struct_sockaddr_storage" >&5
22358 echo "${ECHO_T}$ac_cv_struct_sockaddr_storage" >&6; }
22359 if test $ac_cv_struct_sockaddr_storage = yes; then
22361 cat >>confdefs.h <<\_ACEOF
22362 #define HAVE_SOCKADDR_STORAGE 1
22363 _ACEOF
22367 # checks for compiler characteristics
22370 { echo "$as_me:$LINENO: checking whether char is unsigned" >&5
22371 echo $ECHO_N "checking whether char is unsigned... $ECHO_C" >&6; }
22372 if test "${ac_cv_c_char_unsigned+set}" = set; then
22373 echo $ECHO_N "(cached) $ECHO_C" >&6
22374 else
22375 cat >conftest.$ac_ext <<_ACEOF
22376 /* confdefs.h. */
22377 _ACEOF
22378 cat confdefs.h >>conftest.$ac_ext
22379 cat >>conftest.$ac_ext <<_ACEOF
22380 /* end confdefs.h. */
22381 $ac_includes_default
22383 main ()
22385 static int test_array [1 - 2 * !(((char) -1) < 0)];
22386 test_array [0] = 0
22389 return 0;
22391 _ACEOF
22392 rm -f conftest.$ac_objext
22393 if { (ac_try="$ac_compile"
22394 case "(($ac_try" in
22395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22396 *) ac_try_echo=$ac_try;;
22397 esac
22398 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22399 (eval "$ac_compile") 2>conftest.er1
22400 ac_status=$?
22401 grep -v '^ *+' conftest.er1 >conftest.err
22402 rm -f conftest.er1
22403 cat conftest.err >&5
22404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22405 (exit $ac_status); } && {
22406 test -z "$ac_c_werror_flag" ||
22407 test ! -s conftest.err
22408 } && test -s conftest.$ac_objext; then
22409 ac_cv_c_char_unsigned=no
22410 else
22411 echo "$as_me: failed program was:" >&5
22412 sed 's/^/| /' conftest.$ac_ext >&5
22414 ac_cv_c_char_unsigned=yes
22417 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22419 { echo "$as_me:$LINENO: result: $ac_cv_c_char_unsigned" >&5
22420 echo "${ECHO_T}$ac_cv_c_char_unsigned" >&6; }
22421 if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
22422 cat >>confdefs.h <<\_ACEOF
22423 #define __CHAR_UNSIGNED__ 1
22424 _ACEOF
22428 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
22429 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
22430 if test "${ac_cv_c_const+set}" = set; then
22431 echo $ECHO_N "(cached) $ECHO_C" >&6
22432 else
22433 cat >conftest.$ac_ext <<_ACEOF
22434 /* confdefs.h. */
22435 _ACEOF
22436 cat confdefs.h >>conftest.$ac_ext
22437 cat >>conftest.$ac_ext <<_ACEOF
22438 /* end confdefs.h. */
22441 main ()
22443 /* FIXME: Include the comments suggested by Paul. */
22444 #ifndef __cplusplus
22445 /* Ultrix mips cc rejects this. */
22446 typedef int charset[2];
22447 const charset cs;
22448 /* SunOS 4.1.1 cc rejects this. */
22449 char const *const *pcpcc;
22450 char **ppc;
22451 /* NEC SVR4.0.2 mips cc rejects this. */
22452 struct point {int x, y;};
22453 static struct point const zero = {0,0};
22454 /* AIX XL C 1.02.0.0 rejects this.
22455 It does not let you subtract one const X* pointer from another in
22456 an arm of an if-expression whose if-part is not a constant
22457 expression */
22458 const char *g = "string";
22459 pcpcc = &g + (g ? g-g : 0);
22460 /* HPUX 7.0 cc rejects these. */
22461 ++pcpcc;
22462 ppc = (char**) pcpcc;
22463 pcpcc = (char const *const *) ppc;
22464 { /* SCO 3.2v4 cc rejects this. */
22465 char *t;
22466 char const *s = 0 ? (char *) 0 : (char const *) 0;
22468 *t++ = 0;
22469 if (s) return 0;
22471 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
22472 int x[] = {25, 17};
22473 const int *foo = &x[0];
22474 ++foo;
22476 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
22477 typedef const int *iptr;
22478 iptr p = 0;
22479 ++p;
22481 { /* AIX XL C 1.02.0.0 rejects this saying
22482 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
22483 struct s { int j; const int *ap[3]; };
22484 struct s *b; b->j = 5;
22486 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
22487 const int foo = 10;
22488 if (!foo) return 0;
22490 return !cs[0] && !zero.x;
22491 #endif
22494 return 0;
22496 _ACEOF
22497 rm -f conftest.$ac_objext
22498 if { (ac_try="$ac_compile"
22499 case "(($ac_try" in
22500 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22501 *) ac_try_echo=$ac_try;;
22502 esac
22503 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22504 (eval "$ac_compile") 2>conftest.er1
22505 ac_status=$?
22506 grep -v '^ *+' conftest.er1 >conftest.err
22507 rm -f conftest.er1
22508 cat conftest.err >&5
22509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22510 (exit $ac_status); } && {
22511 test -z "$ac_c_werror_flag" ||
22512 test ! -s conftest.err
22513 } && test -s conftest.$ac_objext; then
22514 ac_cv_c_const=yes
22515 else
22516 echo "$as_me: failed program was:" >&5
22517 sed 's/^/| /' conftest.$ac_ext >&5
22519 ac_cv_c_const=no
22522 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22524 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
22525 echo "${ECHO_T}$ac_cv_c_const" >&6; }
22526 if test $ac_cv_c_const = no; then
22528 cat >>confdefs.h <<\_ACEOF
22529 #define const
22530 _ACEOF
22535 works=no
22536 { echo "$as_me:$LINENO: checking for working volatile" >&5
22537 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6; }
22538 cat >conftest.$ac_ext <<_ACEOF
22539 /* confdefs.h. */
22540 _ACEOF
22541 cat confdefs.h >>conftest.$ac_ext
22542 cat >>conftest.$ac_ext <<_ACEOF
22543 /* end confdefs.h. */
22546 main ()
22548 volatile int x; x = 0;
22550 return 0;
22552 _ACEOF
22553 rm -f conftest.$ac_objext
22554 if { (ac_try="$ac_compile"
22555 case "(($ac_try" in
22556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22557 *) ac_try_echo=$ac_try;;
22558 esac
22559 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22560 (eval "$ac_compile") 2>conftest.er1
22561 ac_status=$?
22562 grep -v '^ *+' conftest.er1 >conftest.err
22563 rm -f conftest.er1
22564 cat conftest.err >&5
22565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22566 (exit $ac_status); } && {
22567 test -z "$ac_c_werror_flag" ||
22568 test ! -s conftest.err
22569 } && test -s conftest.$ac_objext; then
22570 works=yes
22571 else
22572 echo "$as_me: failed program was:" >&5
22573 sed 's/^/| /' conftest.$ac_ext >&5
22576 cat >>confdefs.h <<\_ACEOF
22577 #define volatile
22578 _ACEOF
22583 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22584 { echo "$as_me:$LINENO: result: $works" >&5
22585 echo "${ECHO_T}$works" >&6; }
22587 works=no
22588 { echo "$as_me:$LINENO: checking for working signed char" >&5
22589 echo $ECHO_N "checking for working signed char... $ECHO_C" >&6; }
22590 cat >conftest.$ac_ext <<_ACEOF
22591 /* confdefs.h. */
22592 _ACEOF
22593 cat confdefs.h >>conftest.$ac_ext
22594 cat >>conftest.$ac_ext <<_ACEOF
22595 /* end confdefs.h. */
22598 main ()
22600 signed char c;
22602 return 0;
22604 _ACEOF
22605 rm -f conftest.$ac_objext
22606 if { (ac_try="$ac_compile"
22607 case "(($ac_try" in
22608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22609 *) ac_try_echo=$ac_try;;
22610 esac
22611 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22612 (eval "$ac_compile") 2>conftest.er1
22613 ac_status=$?
22614 grep -v '^ *+' conftest.er1 >conftest.err
22615 rm -f conftest.er1
22616 cat conftest.err >&5
22617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22618 (exit $ac_status); } && {
22619 test -z "$ac_c_werror_flag" ||
22620 test ! -s conftest.err
22621 } && test -s conftest.$ac_objext; then
22622 works=yes
22623 else
22624 echo "$as_me: failed program was:" >&5
22625 sed 's/^/| /' conftest.$ac_ext >&5
22628 cat >>confdefs.h <<\_ACEOF
22629 #define signed
22630 _ACEOF
22635 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22636 { echo "$as_me:$LINENO: result: $works" >&5
22637 echo "${ECHO_T}$works" >&6; }
22639 have_prototypes=no
22640 { echo "$as_me:$LINENO: checking for prototypes" >&5
22641 echo $ECHO_N "checking for prototypes... $ECHO_C" >&6; }
22642 cat >conftest.$ac_ext <<_ACEOF
22643 /* confdefs.h. */
22644 _ACEOF
22645 cat confdefs.h >>conftest.$ac_ext
22646 cat >>conftest.$ac_ext <<_ACEOF
22647 /* end confdefs.h. */
22648 int foo(int x) { return 0; }
22650 main ()
22652 return foo(10);
22654 return 0;
22656 _ACEOF
22657 rm -f conftest.$ac_objext
22658 if { (ac_try="$ac_compile"
22659 case "(($ac_try" in
22660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22661 *) ac_try_echo=$ac_try;;
22662 esac
22663 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22664 (eval "$ac_compile") 2>conftest.er1
22665 ac_status=$?
22666 grep -v '^ *+' conftest.er1 >conftest.err
22667 rm -f conftest.er1
22668 cat conftest.err >&5
22669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22670 (exit $ac_status); } && {
22671 test -z "$ac_c_werror_flag" ||
22672 test ! -s conftest.err
22673 } && test -s conftest.$ac_objext; then
22676 cat >>confdefs.h <<\_ACEOF
22677 #define HAVE_PROTOTYPES 1
22678 _ACEOF
22680 have_prototypes=yes
22682 else
22683 echo "$as_me: failed program was:" >&5
22684 sed 's/^/| /' conftest.$ac_ext >&5
22689 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22690 { echo "$as_me:$LINENO: result: $have_prototypes" >&5
22691 echo "${ECHO_T}$have_prototypes" >&6; }
22693 works=no
22694 { echo "$as_me:$LINENO: checking for variable length prototypes and stdarg.h" >&5
22695 echo $ECHO_N "checking for variable length prototypes and stdarg.h... $ECHO_C" >&6; }
22696 cat >conftest.$ac_ext <<_ACEOF
22697 /* confdefs.h. */
22698 _ACEOF
22699 cat confdefs.h >>conftest.$ac_ext
22700 cat >>conftest.$ac_ext <<_ACEOF
22701 /* end confdefs.h. */
22703 #include <stdarg.h>
22704 int foo(int x, ...) {
22705 va_list va;
22706 va_start(va, x);
22707 va_arg(va, int);
22708 va_arg(va, char *);
22709 va_arg(va, double);
22710 return 0;
22714 main ()
22716 return foo(10, "", 3.14);
22718 return 0;
22720 _ACEOF
22721 rm -f conftest.$ac_objext
22722 if { (ac_try="$ac_compile"
22723 case "(($ac_try" in
22724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22725 *) ac_try_echo=$ac_try;;
22726 esac
22727 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22728 (eval "$ac_compile") 2>conftest.er1
22729 ac_status=$?
22730 grep -v '^ *+' conftest.er1 >conftest.err
22731 rm -f conftest.er1
22732 cat conftest.err >&5
22733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22734 (exit $ac_status); } && {
22735 test -z "$ac_c_werror_flag" ||
22736 test ! -s conftest.err
22737 } && test -s conftest.$ac_objext; then
22740 cat >>confdefs.h <<\_ACEOF
22741 #define HAVE_STDARG_PROTOTYPES 1
22742 _ACEOF
22744 works=yes
22746 else
22747 echo "$as_me: failed program was:" >&5
22748 sed 's/^/| /' conftest.$ac_ext >&5
22753 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22754 { echo "$as_me:$LINENO: result: $works" >&5
22755 echo "${ECHO_T}$works" >&6; }
22757 # check for socketpair
22758 { echo "$as_me:$LINENO: checking for socketpair" >&5
22759 echo $ECHO_N "checking for socketpair... $ECHO_C" >&6; }
22760 cat >conftest.$ac_ext <<_ACEOF
22761 /* confdefs.h. */
22762 _ACEOF
22763 cat confdefs.h >>conftest.$ac_ext
22764 cat >>conftest.$ac_ext <<_ACEOF
22765 /* end confdefs.h. */
22767 #include <sys/types.h>
22768 #include <sys/socket.h>
22771 main ()
22773 void *x=socketpair
22775 return 0;
22777 _ACEOF
22778 rm -f conftest.$ac_objext
22779 if { (ac_try="$ac_compile"
22780 case "(($ac_try" in
22781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22782 *) ac_try_echo=$ac_try;;
22783 esac
22784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22785 (eval "$ac_compile") 2>conftest.er1
22786 ac_status=$?
22787 grep -v '^ *+' conftest.er1 >conftest.err
22788 rm -f conftest.er1
22789 cat conftest.err >&5
22790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22791 (exit $ac_status); } && {
22792 test -z "$ac_c_werror_flag" ||
22793 test ! -s conftest.err
22794 } && test -s conftest.$ac_objext; then
22796 cat >>confdefs.h <<\_ACEOF
22797 #define HAVE_SOCKETPAIR 1
22798 _ACEOF
22800 { echo "$as_me:$LINENO: result: yes" >&5
22801 echo "${ECHO_T}yes" >&6; }
22802 else
22803 echo "$as_me: failed program was:" >&5
22804 sed 's/^/| /' conftest.$ac_ext >&5
22806 { echo "$as_me:$LINENO: result: no" >&5
22807 echo "${ECHO_T}no" >&6; }
22811 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22813 # check if sockaddr has sa_len member
22814 { echo "$as_me:$LINENO: checking if sockaddr has sa_len member" >&5
22815 echo $ECHO_N "checking if sockaddr has sa_len member... $ECHO_C" >&6; }
22816 cat >conftest.$ac_ext <<_ACEOF
22817 /* confdefs.h. */
22818 _ACEOF
22819 cat confdefs.h >>conftest.$ac_ext
22820 cat >>conftest.$ac_ext <<_ACEOF
22821 /* end confdefs.h. */
22822 #include <sys/types.h>
22823 #include <sys/socket.h>
22825 main ()
22827 struct sockaddr x;
22828 x.sa_len = 0;
22830 return 0;
22832 _ACEOF
22833 rm -f conftest.$ac_objext
22834 if { (ac_try="$ac_compile"
22835 case "(($ac_try" in
22836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22837 *) ac_try_echo=$ac_try;;
22838 esac
22839 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22840 (eval "$ac_compile") 2>conftest.er1
22841 ac_status=$?
22842 grep -v '^ *+' conftest.er1 >conftest.err
22843 rm -f conftest.er1
22844 cat conftest.err >&5
22845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22846 (exit $ac_status); } && {
22847 test -z "$ac_c_werror_flag" ||
22848 test ! -s conftest.err
22849 } && test -s conftest.$ac_objext; then
22850 { echo "$as_me:$LINENO: result: yes" >&5
22851 echo "${ECHO_T}yes" >&6; }
22853 cat >>confdefs.h <<\_ACEOF
22854 #define HAVE_SOCKADDR_SA_LEN 1
22855 _ACEOF
22857 else
22858 echo "$as_me: failed program was:" >&5
22859 sed 's/^/| /' conftest.$ac_ext >&5
22861 { echo "$as_me:$LINENO: result: no" >&5
22862 echo "${ECHO_T}no" >&6; }
22865 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22867 va_list_is_array=no
22868 { echo "$as_me:$LINENO: checking whether va_list is an array" >&5
22869 echo $ECHO_N "checking whether va_list is an array... $ECHO_C" >&6; }
22870 cat >conftest.$ac_ext <<_ACEOF
22871 /* confdefs.h. */
22872 _ACEOF
22873 cat confdefs.h >>conftest.$ac_ext
22874 cat >>conftest.$ac_ext <<_ACEOF
22875 /* end confdefs.h. */
22877 #ifdef HAVE_STDARG_PROTOTYPES
22878 #include <stdarg.h>
22879 #else
22880 #include <varargs.h>
22881 #endif
22884 main ()
22886 va_list list1, list2; list1 = list2;
22888 return 0;
22890 _ACEOF
22891 rm -f conftest.$ac_objext
22892 if { (ac_try="$ac_compile"
22893 case "(($ac_try" in
22894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22895 *) ac_try_echo=$ac_try;;
22896 esac
22897 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22898 (eval "$ac_compile") 2>conftest.er1
22899 ac_status=$?
22900 grep -v '^ *+' conftest.er1 >conftest.err
22901 rm -f conftest.er1
22902 cat conftest.err >&5
22903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22904 (exit $ac_status); } && {
22905 test -z "$ac_c_werror_flag" ||
22906 test ! -s conftest.err
22907 } && test -s conftest.$ac_objext; then
22909 else
22910 echo "$as_me: failed program was:" >&5
22911 sed 's/^/| /' conftest.$ac_ext >&5
22915 cat >>confdefs.h <<\_ACEOF
22916 #define VA_LIST_IS_ARRAY 1
22917 _ACEOF
22919 va_list_is_array=yes
22923 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22924 { echo "$as_me:$LINENO: result: $va_list_is_array" >&5
22925 echo "${ECHO_T}$va_list_is_array" >&6; }
22927 # sigh -- gethostbyname_r is a mess; it can have 3, 5 or 6 arguments :-(
22931 { echo "$as_me:$LINENO: checking for gethostbyname_r" >&5
22932 echo $ECHO_N "checking for gethostbyname_r... $ECHO_C" >&6; }
22933 if test "${ac_cv_func_gethostbyname_r+set}" = set; then
22934 echo $ECHO_N "(cached) $ECHO_C" >&6
22935 else
22936 cat >conftest.$ac_ext <<_ACEOF
22937 /* confdefs.h. */
22938 _ACEOF
22939 cat confdefs.h >>conftest.$ac_ext
22940 cat >>conftest.$ac_ext <<_ACEOF
22941 /* end confdefs.h. */
22942 /* Define gethostbyname_r to an innocuous variant, in case <limits.h> declares gethostbyname_r.
22943 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22944 #define gethostbyname_r innocuous_gethostbyname_r
22946 /* System header to define __stub macros and hopefully few prototypes,
22947 which can conflict with char gethostbyname_r (); below.
22948 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22949 <limits.h> exists even on freestanding compilers. */
22951 #ifdef __STDC__
22952 # include <limits.h>
22953 #else
22954 # include <assert.h>
22955 #endif
22957 #undef gethostbyname_r
22959 /* Override any GCC internal prototype to avoid an error.
22960 Use char because int might match the return type of a GCC
22961 builtin and then its argument prototype would still apply. */
22962 #ifdef __cplusplus
22963 extern "C"
22964 #endif
22965 char gethostbyname_r ();
22966 /* The GNU C library defines this for functions which it implements
22967 to always fail with ENOSYS. Some functions are actually named
22968 something starting with __ and the normal name is an alias. */
22969 #if defined __stub_gethostbyname_r || defined __stub___gethostbyname_r
22970 choke me
22971 #endif
22974 main ()
22976 return gethostbyname_r ();
22978 return 0;
22980 _ACEOF
22981 rm -f conftest.$ac_objext conftest$ac_exeext
22982 if { (ac_try="$ac_link"
22983 case "(($ac_try" in
22984 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22985 *) ac_try_echo=$ac_try;;
22986 esac
22987 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22988 (eval "$ac_link") 2>conftest.er1
22989 ac_status=$?
22990 grep -v '^ *+' conftest.er1 >conftest.err
22991 rm -f conftest.er1
22992 cat conftest.err >&5
22993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22994 (exit $ac_status); } && {
22995 test -z "$ac_c_werror_flag" ||
22996 test ! -s conftest.err
22997 } && test -s conftest$ac_exeext &&
22998 $as_test_x conftest$ac_exeext; then
22999 ac_cv_func_gethostbyname_r=yes
23000 else
23001 echo "$as_me: failed program was:" >&5
23002 sed 's/^/| /' conftest.$ac_ext >&5
23004 ac_cv_func_gethostbyname_r=no
23007 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23008 conftest$ac_exeext conftest.$ac_ext
23010 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname_r" >&5
23011 echo "${ECHO_T}$ac_cv_func_gethostbyname_r" >&6; }
23012 if test $ac_cv_func_gethostbyname_r = yes; then
23014 cat >>confdefs.h <<\_ACEOF
23015 #define HAVE_GETHOSTBYNAME_R 1
23016 _ACEOF
23018 { echo "$as_me:$LINENO: checking gethostbyname_r with 6 args" >&5
23019 echo $ECHO_N "checking gethostbyname_r with 6 args... $ECHO_C" >&6; }
23020 OLD_CFLAGS=$CFLAGS
23021 CFLAGS="$CFLAGS $MY_CPPFLAGS $MY_THREAD_CPPFLAGS $MY_CFLAGS"
23022 cat >conftest.$ac_ext <<_ACEOF
23023 /* confdefs.h. */
23024 _ACEOF
23025 cat confdefs.h >>conftest.$ac_ext
23026 cat >>conftest.$ac_ext <<_ACEOF
23027 /* end confdefs.h. */
23029 # include <netdb.h>
23032 main ()
23035 char *name;
23036 struct hostent *he, *res;
23037 char buffer[2048];
23038 int buflen = 2048;
23039 int h_errnop;
23041 (void) gethostbyname_r(name, he, buffer, buflen, &res, &h_errnop)
23044 return 0;
23046 _ACEOF
23047 rm -f conftest.$ac_objext
23048 if { (ac_try="$ac_compile"
23049 case "(($ac_try" in
23050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23051 *) ac_try_echo=$ac_try;;
23052 esac
23053 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23054 (eval "$ac_compile") 2>conftest.er1
23055 ac_status=$?
23056 grep -v '^ *+' conftest.er1 >conftest.err
23057 rm -f conftest.er1
23058 cat conftest.err >&5
23059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23060 (exit $ac_status); } && {
23061 test -z "$ac_c_werror_flag" ||
23062 test ! -s conftest.err
23063 } && test -s conftest.$ac_objext; then
23065 cat >>confdefs.h <<\_ACEOF
23066 #define HAVE_GETHOSTBYNAME_R 1
23067 _ACEOF
23070 cat >>confdefs.h <<\_ACEOF
23071 #define HAVE_GETHOSTBYNAME_R_6_ARG 1
23072 _ACEOF
23074 { echo "$as_me:$LINENO: result: yes" >&5
23075 echo "${ECHO_T}yes" >&6; }
23077 else
23078 echo "$as_me: failed program was:" >&5
23079 sed 's/^/| /' conftest.$ac_ext >&5
23082 { echo "$as_me:$LINENO: result: no" >&5
23083 echo "${ECHO_T}no" >&6; }
23084 { echo "$as_me:$LINENO: checking gethostbyname_r with 5 args" >&5
23085 echo $ECHO_N "checking gethostbyname_r with 5 args... $ECHO_C" >&6; }
23086 cat >conftest.$ac_ext <<_ACEOF
23087 /* confdefs.h. */
23088 _ACEOF
23089 cat confdefs.h >>conftest.$ac_ext
23090 cat >>conftest.$ac_ext <<_ACEOF
23091 /* end confdefs.h. */
23093 # include <netdb.h>
23096 main ()
23099 char *name;
23100 struct hostent *he;
23101 char buffer[2048];
23102 int buflen = 2048;
23103 int h_errnop;
23105 (void) gethostbyname_r(name, he, buffer, buflen, &h_errnop)
23108 return 0;
23110 _ACEOF
23111 rm -f conftest.$ac_objext
23112 if { (ac_try="$ac_compile"
23113 case "(($ac_try" in
23114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23115 *) ac_try_echo=$ac_try;;
23116 esac
23117 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23118 (eval "$ac_compile") 2>conftest.er1
23119 ac_status=$?
23120 grep -v '^ *+' conftest.er1 >conftest.err
23121 rm -f conftest.er1
23122 cat conftest.err >&5
23123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23124 (exit $ac_status); } && {
23125 test -z "$ac_c_werror_flag" ||
23126 test ! -s conftest.err
23127 } && test -s conftest.$ac_objext; then
23129 cat >>confdefs.h <<\_ACEOF
23130 #define HAVE_GETHOSTBYNAME_R 1
23131 _ACEOF
23134 cat >>confdefs.h <<\_ACEOF
23135 #define HAVE_GETHOSTBYNAME_R_5_ARG 1
23136 _ACEOF
23138 { echo "$as_me:$LINENO: result: yes" >&5
23139 echo "${ECHO_T}yes" >&6; }
23141 else
23142 echo "$as_me: failed program was:" >&5
23143 sed 's/^/| /' conftest.$ac_ext >&5
23146 { echo "$as_me:$LINENO: result: no" >&5
23147 echo "${ECHO_T}no" >&6; }
23148 { echo "$as_me:$LINENO: checking gethostbyname_r with 3 args" >&5
23149 echo $ECHO_N "checking gethostbyname_r with 3 args... $ECHO_C" >&6; }
23150 cat >conftest.$ac_ext <<_ACEOF
23151 /* confdefs.h. */
23152 _ACEOF
23153 cat confdefs.h >>conftest.$ac_ext
23154 cat >>conftest.$ac_ext <<_ACEOF
23155 /* end confdefs.h. */
23157 # include <netdb.h>
23160 main ()
23163 char *name;
23164 struct hostent *he;
23165 struct hostent_data data;
23167 (void) gethostbyname_r(name, he, &data);
23170 return 0;
23172 _ACEOF
23173 rm -f conftest.$ac_objext
23174 if { (ac_try="$ac_compile"
23175 case "(($ac_try" in
23176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23177 *) ac_try_echo=$ac_try;;
23178 esac
23179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23180 (eval "$ac_compile") 2>conftest.er1
23181 ac_status=$?
23182 grep -v '^ *+' conftest.er1 >conftest.err
23183 rm -f conftest.er1
23184 cat conftest.err >&5
23185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23186 (exit $ac_status); } && {
23187 test -z "$ac_c_werror_flag" ||
23188 test ! -s conftest.err
23189 } && test -s conftest.$ac_objext; then
23191 cat >>confdefs.h <<\_ACEOF
23192 #define HAVE_GETHOSTBYNAME_R 1
23193 _ACEOF
23196 cat >>confdefs.h <<\_ACEOF
23197 #define HAVE_GETHOSTBYNAME_R_3_ARG 1
23198 _ACEOF
23200 { echo "$as_me:$LINENO: result: yes" >&5
23201 echo "${ECHO_T}yes" >&6; }
23203 else
23204 echo "$as_me: failed program was:" >&5
23205 sed 's/^/| /' conftest.$ac_ext >&5
23208 { echo "$as_me:$LINENO: result: no" >&5
23209 echo "${ECHO_T}no" >&6; }
23213 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23217 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23221 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23222 CFLAGS=$OLD_CFLAGS
23224 else
23227 for ac_func in gethostbyname
23229 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23230 { echo "$as_me:$LINENO: checking for $ac_func" >&5
23231 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
23232 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
23233 echo $ECHO_N "(cached) $ECHO_C" >&6
23234 else
23235 cat >conftest.$ac_ext <<_ACEOF
23236 /* confdefs.h. */
23237 _ACEOF
23238 cat confdefs.h >>conftest.$ac_ext
23239 cat >>conftest.$ac_ext <<_ACEOF
23240 /* end confdefs.h. */
23241 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23242 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23243 #define $ac_func innocuous_$ac_func
23245 /* System header to define __stub macros and hopefully few prototypes,
23246 which can conflict with char $ac_func (); below.
23247 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23248 <limits.h> exists even on freestanding compilers. */
23250 #ifdef __STDC__
23251 # include <limits.h>
23252 #else
23253 # include <assert.h>
23254 #endif
23256 #undef $ac_func
23258 /* Override any GCC internal prototype to avoid an error.
23259 Use char because int might match the return type of a GCC
23260 builtin and then its argument prototype would still apply. */
23261 #ifdef __cplusplus
23262 extern "C"
23263 #endif
23264 char $ac_func ();
23265 /* The GNU C library defines this for functions which it implements
23266 to always fail with ENOSYS. Some functions are actually named
23267 something starting with __ and the normal name is an alias. */
23268 #if defined __stub_$ac_func || defined __stub___$ac_func
23269 choke me
23270 #endif
23273 main ()
23275 return $ac_func ();
23277 return 0;
23279 _ACEOF
23280 rm -f conftest.$ac_objext conftest$ac_exeext
23281 if { (ac_try="$ac_link"
23282 case "(($ac_try" in
23283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23284 *) ac_try_echo=$ac_try;;
23285 esac
23286 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23287 (eval "$ac_link") 2>conftest.er1
23288 ac_status=$?
23289 grep -v '^ *+' conftest.er1 >conftest.err
23290 rm -f conftest.er1
23291 cat conftest.err >&5
23292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23293 (exit $ac_status); } && {
23294 test -z "$ac_c_werror_flag" ||
23295 test ! -s conftest.err
23296 } && test -s conftest$ac_exeext &&
23297 $as_test_x conftest$ac_exeext; then
23298 eval "$as_ac_var=yes"
23299 else
23300 echo "$as_me: failed program was:" >&5
23301 sed 's/^/| /' conftest.$ac_ext >&5
23303 eval "$as_ac_var=no"
23306 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23307 conftest$ac_exeext conftest.$ac_ext
23309 ac_res=`eval echo '${'$as_ac_var'}'`
23310 { echo "$as_me:$LINENO: result: $ac_res" >&5
23311 echo "${ECHO_T}$ac_res" >&6; }
23312 if test `eval echo '${'$as_ac_var'}'` = yes; then
23313 cat >>confdefs.h <<_ACEOF
23314 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23315 _ACEOF
23318 done
23329 # checks for system services
23330 # (none yet)
23332 # Linux requires this for correct f.p. operations
23333 { echo "$as_me:$LINENO: checking for __fpu_control" >&5
23334 echo $ECHO_N "checking for __fpu_control... $ECHO_C" >&6; }
23335 if test "${ac_cv_func___fpu_control+set}" = set; then
23336 echo $ECHO_N "(cached) $ECHO_C" >&6
23337 else
23338 cat >conftest.$ac_ext <<_ACEOF
23339 /* confdefs.h. */
23340 _ACEOF
23341 cat confdefs.h >>conftest.$ac_ext
23342 cat >>conftest.$ac_ext <<_ACEOF
23343 /* end confdefs.h. */
23344 /* Define __fpu_control to an innocuous variant, in case <limits.h> declares __fpu_control.
23345 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23346 #define __fpu_control innocuous___fpu_control
23348 /* System header to define __stub macros and hopefully few prototypes,
23349 which can conflict with char __fpu_control (); below.
23350 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23351 <limits.h> exists even on freestanding compilers. */
23353 #ifdef __STDC__
23354 # include <limits.h>
23355 #else
23356 # include <assert.h>
23357 #endif
23359 #undef __fpu_control
23361 /* Override any GCC internal prototype to avoid an error.
23362 Use char because int might match the return type of a GCC
23363 builtin and then its argument prototype would still apply. */
23364 #ifdef __cplusplus
23365 extern "C"
23366 #endif
23367 char __fpu_control ();
23368 /* The GNU C library defines this for functions which it implements
23369 to always fail with ENOSYS. Some functions are actually named
23370 something starting with __ and the normal name is an alias. */
23371 #if defined __stub___fpu_control || defined __stub_____fpu_control
23372 choke me
23373 #endif
23376 main ()
23378 return __fpu_control ();
23380 return 0;
23382 _ACEOF
23383 rm -f conftest.$ac_objext conftest$ac_exeext
23384 if { (ac_try="$ac_link"
23385 case "(($ac_try" in
23386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23387 *) ac_try_echo=$ac_try;;
23388 esac
23389 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23390 (eval "$ac_link") 2>conftest.er1
23391 ac_status=$?
23392 grep -v '^ *+' conftest.er1 >conftest.err
23393 rm -f conftest.er1
23394 cat conftest.err >&5
23395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23396 (exit $ac_status); } && {
23397 test -z "$ac_c_werror_flag" ||
23398 test ! -s conftest.err
23399 } && test -s conftest$ac_exeext &&
23400 $as_test_x conftest$ac_exeext; then
23401 ac_cv_func___fpu_control=yes
23402 else
23403 echo "$as_me: failed program was:" >&5
23404 sed 's/^/| /' conftest.$ac_ext >&5
23406 ac_cv_func___fpu_control=no
23409 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23410 conftest$ac_exeext conftest.$ac_ext
23412 { echo "$as_me:$LINENO: result: $ac_cv_func___fpu_control" >&5
23413 echo "${ECHO_T}$ac_cv_func___fpu_control" >&6; }
23414 if test $ac_cv_func___fpu_control = yes; then
23416 else
23418 { echo "$as_me:$LINENO: checking for __fpu_control in -lieee" >&5
23419 echo $ECHO_N "checking for __fpu_control in -lieee... $ECHO_C" >&6; }
23420 if test "${ac_cv_lib_ieee___fpu_control+set}" = set; then
23421 echo $ECHO_N "(cached) $ECHO_C" >&6
23422 else
23423 ac_check_lib_save_LIBS=$LIBS
23424 LIBS="-lieee $LIBS"
23425 cat >conftest.$ac_ext <<_ACEOF
23426 /* confdefs.h. */
23427 _ACEOF
23428 cat confdefs.h >>conftest.$ac_ext
23429 cat >>conftest.$ac_ext <<_ACEOF
23430 /* end confdefs.h. */
23432 /* Override any GCC internal prototype to avoid an error.
23433 Use char because int might match the return type of a GCC
23434 builtin and then its argument prototype would still apply. */
23435 #ifdef __cplusplus
23436 extern "C"
23437 #endif
23438 char __fpu_control ();
23440 main ()
23442 return __fpu_control ();
23444 return 0;
23446 _ACEOF
23447 rm -f conftest.$ac_objext conftest$ac_exeext
23448 if { (ac_try="$ac_link"
23449 case "(($ac_try" in
23450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23451 *) ac_try_echo=$ac_try;;
23452 esac
23453 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23454 (eval "$ac_link") 2>conftest.er1
23455 ac_status=$?
23456 grep -v '^ *+' conftest.er1 >conftest.err
23457 rm -f conftest.er1
23458 cat conftest.err >&5
23459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23460 (exit $ac_status); } && {
23461 test -z "$ac_c_werror_flag" ||
23462 test ! -s conftest.err
23463 } && test -s conftest$ac_exeext &&
23464 $as_test_x conftest$ac_exeext; then
23465 ac_cv_lib_ieee___fpu_control=yes
23466 else
23467 echo "$as_me: failed program was:" >&5
23468 sed 's/^/| /' conftest.$ac_ext >&5
23470 ac_cv_lib_ieee___fpu_control=no
23473 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23474 conftest$ac_exeext conftest.$ac_ext
23475 LIBS=$ac_check_lib_save_LIBS
23477 { echo "$as_me:$LINENO: result: $ac_cv_lib_ieee___fpu_control" >&5
23478 echo "${ECHO_T}$ac_cv_lib_ieee___fpu_control" >&6; }
23479 if test $ac_cv_lib_ieee___fpu_control = yes; then
23480 cat >>confdefs.h <<_ACEOF
23481 #define HAVE_LIBIEEE 1
23482 _ACEOF
23484 LIBS="-lieee $LIBS"
23492 # Check for --with-fpectl
23493 { echo "$as_me:$LINENO: checking for --with-fpectl" >&5
23494 echo $ECHO_N "checking for --with-fpectl... $ECHO_C" >&6; }
23496 # Check whether --with-fpectl was given.
23497 if test "${with_fpectl+set}" = set; then
23498 withval=$with_fpectl;
23499 if test "$withval" != no
23500 then
23502 cat >>confdefs.h <<\_ACEOF
23503 #define WANT_SIGFPE_HANDLER 1
23504 _ACEOF
23506 { echo "$as_me:$LINENO: result: yes" >&5
23507 echo "${ECHO_T}yes" >&6; }
23508 else { echo "$as_me:$LINENO: result: no" >&5
23509 echo "${ECHO_T}no" >&6; }
23511 else
23512 { echo "$as_me:$LINENO: result: no" >&5
23513 echo "${ECHO_T}no" >&6; }
23517 # check for --with-libm=...
23519 case $ac_sys_system in
23520 Darwin) ;;
23521 BeOS) ;;
23522 *) LIBM=-lm
23523 esac
23524 { echo "$as_me:$LINENO: checking for --with-libm=STRING" >&5
23525 echo $ECHO_N "checking for --with-libm=STRING... $ECHO_C" >&6; }
23527 # Check whether --with-libm was given.
23528 if test "${with_libm+set}" = set; then
23529 withval=$with_libm;
23530 if test "$withval" = no
23531 then LIBM=
23532 { echo "$as_me:$LINENO: result: force LIBM empty" >&5
23533 echo "${ECHO_T}force LIBM empty" >&6; }
23534 elif test "$withval" != yes
23535 then LIBM=$withval
23536 { echo "$as_me:$LINENO: result: set LIBM=\"$withval\"" >&5
23537 echo "${ECHO_T}set LIBM=\"$withval\"" >&6; }
23538 else { { echo "$as_me:$LINENO: error: proper usage is --with-libm=STRING" >&5
23539 echo "$as_me: error: proper usage is --with-libm=STRING" >&2;}
23540 { (exit 1); exit 1; }; }
23542 else
23543 { echo "$as_me:$LINENO: result: default LIBM=\"$LIBM\"" >&5
23544 echo "${ECHO_T}default LIBM=\"$LIBM\"" >&6; }
23548 # check for --with-libc=...
23550 { echo "$as_me:$LINENO: checking for --with-libc=STRING" >&5
23551 echo $ECHO_N "checking for --with-libc=STRING... $ECHO_C" >&6; }
23553 # Check whether --with-libc was given.
23554 if test "${with_libc+set}" = set; then
23555 withval=$with_libc;
23556 if test "$withval" = no
23557 then LIBC=
23558 { echo "$as_me:$LINENO: result: force LIBC empty" >&5
23559 echo "${ECHO_T}force LIBC empty" >&6; }
23560 elif test "$withval" != yes
23561 then LIBC=$withval
23562 { echo "$as_me:$LINENO: result: set LIBC=\"$withval\"" >&5
23563 echo "${ECHO_T}set LIBC=\"$withval\"" >&6; }
23564 else { { echo "$as_me:$LINENO: error: proper usage is --with-libc=STRING" >&5
23565 echo "$as_me: error: proper usage is --with-libc=STRING" >&2;}
23566 { (exit 1); exit 1; }; }
23568 else
23569 { echo "$as_me:$LINENO: result: default LIBC=\"$LIBC\"" >&5
23570 echo "${ECHO_T}default LIBC=\"$LIBC\"" >&6; }
23574 # **************************************************
23575 # * Check for various properties of floating point *
23576 # **************************************************
23578 { echo "$as_me:$LINENO: checking whether C doubles are little-endian IEEE 754 binary64" >&5
23579 echo $ECHO_N "checking whether C doubles are little-endian IEEE 754 binary64... $ECHO_C" >&6; }
23580 if test "${ac_cv_little_endian_double+set}" = set; then
23581 echo $ECHO_N "(cached) $ECHO_C" >&6
23582 else
23584 if test "$cross_compiling" = yes; then
23585 ac_cv_little_endian_double=no
23586 else
23587 cat >conftest.$ac_ext <<_ACEOF
23588 /* confdefs.h. */
23589 _ACEOF
23590 cat confdefs.h >>conftest.$ac_ext
23591 cat >>conftest.$ac_ext <<_ACEOF
23592 /* end confdefs.h. */
23594 #include <string.h>
23595 int main() {
23596 double x = 9006104071832581.0;
23597 if (memcmp(&x, "\x05\x04\x03\x02\x01\xff\x3f\x43", 8) == 0)
23598 return 0;
23599 else
23600 return 1;
23603 _ACEOF
23604 rm -f conftest$ac_exeext
23605 if { (ac_try="$ac_link"
23606 case "(($ac_try" in
23607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23608 *) ac_try_echo=$ac_try;;
23609 esac
23610 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23611 (eval "$ac_link") 2>&5
23612 ac_status=$?
23613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23614 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23615 { (case "(($ac_try" in
23616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23617 *) ac_try_echo=$ac_try;;
23618 esac
23619 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23620 (eval "$ac_try") 2>&5
23621 ac_status=$?
23622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23623 (exit $ac_status); }; }; then
23624 ac_cv_little_endian_double=yes
23625 else
23626 echo "$as_me: program exited with status $ac_status" >&5
23627 echo "$as_me: failed program was:" >&5
23628 sed 's/^/| /' conftest.$ac_ext >&5
23630 ( exit $ac_status )
23631 ac_cv_little_endian_double=no
23633 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23639 { echo "$as_me:$LINENO: result: $ac_cv_little_endian_double" >&5
23640 echo "${ECHO_T}$ac_cv_little_endian_double" >&6; }
23641 if test "$ac_cv_little_endian_double" = yes
23642 then
23644 cat >>confdefs.h <<\_ACEOF
23645 #define DOUBLE_IS_LITTLE_ENDIAN_IEEE754 1
23646 _ACEOF
23650 { echo "$as_me:$LINENO: checking whether C doubles are big-endian IEEE 754 binary64" >&5
23651 echo $ECHO_N "checking whether C doubles are big-endian IEEE 754 binary64... $ECHO_C" >&6; }
23652 if test "${ac_cv_big_endian_double+set}" = set; then
23653 echo $ECHO_N "(cached) $ECHO_C" >&6
23654 else
23656 if test "$cross_compiling" = yes; then
23657 ac_cv_big_endian_double=no
23658 else
23659 cat >conftest.$ac_ext <<_ACEOF
23660 /* confdefs.h. */
23661 _ACEOF
23662 cat confdefs.h >>conftest.$ac_ext
23663 cat >>conftest.$ac_ext <<_ACEOF
23664 /* end confdefs.h. */
23666 #include <string.h>
23667 int main() {
23668 double x = 9006104071832581.0;
23669 if (memcmp(&x, "\x43\x3f\xff\x01\x02\x03\x04\x05", 8) == 0)
23670 return 0;
23671 else
23672 return 1;
23675 _ACEOF
23676 rm -f conftest$ac_exeext
23677 if { (ac_try="$ac_link"
23678 case "(($ac_try" in
23679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23680 *) ac_try_echo=$ac_try;;
23681 esac
23682 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23683 (eval "$ac_link") 2>&5
23684 ac_status=$?
23685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23686 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23687 { (case "(($ac_try" in
23688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23689 *) ac_try_echo=$ac_try;;
23690 esac
23691 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23692 (eval "$ac_try") 2>&5
23693 ac_status=$?
23694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23695 (exit $ac_status); }; }; then
23696 ac_cv_big_endian_double=yes
23697 else
23698 echo "$as_me: program exited with status $ac_status" >&5
23699 echo "$as_me: failed program was:" >&5
23700 sed 's/^/| /' conftest.$ac_ext >&5
23702 ( exit $ac_status )
23703 ac_cv_big_endian_double=no
23705 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23711 { echo "$as_me:$LINENO: result: $ac_cv_big_endian_double" >&5
23712 echo "${ECHO_T}$ac_cv_big_endian_double" >&6; }
23713 if test "$ac_cv_big_endian_double" = yes
23714 then
23716 cat >>confdefs.h <<\_ACEOF
23717 #define DOUBLE_IS_BIG_ENDIAN_IEEE754 1
23718 _ACEOF
23722 # Some ARM platforms use a mixed-endian representation for doubles.
23723 # While Python doesn't currently have full support for these platforms
23724 # (see e.g., issue 1762561), we can at least make sure that float <-> string
23725 # conversions work.
23726 { echo "$as_me:$LINENO: checking whether C doubles are ARM mixed-endian IEEE 754 binary64" >&5
23727 echo $ECHO_N "checking whether C doubles are ARM mixed-endian IEEE 754 binary64... $ECHO_C" >&6; }
23728 if test "${ac_cv_mixed_endian_double+set}" = set; then
23729 echo $ECHO_N "(cached) $ECHO_C" >&6
23730 else
23732 if test "$cross_compiling" = yes; then
23733 ac_cv_mixed_endian_double=no
23734 else
23735 cat >conftest.$ac_ext <<_ACEOF
23736 /* confdefs.h. */
23737 _ACEOF
23738 cat confdefs.h >>conftest.$ac_ext
23739 cat >>conftest.$ac_ext <<_ACEOF
23740 /* end confdefs.h. */
23742 #include <string.h>
23743 int main() {
23744 double x = 9006104071832581.0;
23745 if (memcmp(&x, "\x01\xff\x3f\x43\x05\x04\x03\x02", 8) == 0)
23746 return 0;
23747 else
23748 return 1;
23751 _ACEOF
23752 rm -f conftest$ac_exeext
23753 if { (ac_try="$ac_link"
23754 case "(($ac_try" in
23755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23756 *) ac_try_echo=$ac_try;;
23757 esac
23758 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23759 (eval "$ac_link") 2>&5
23760 ac_status=$?
23761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23762 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23763 { (case "(($ac_try" in
23764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23765 *) ac_try_echo=$ac_try;;
23766 esac
23767 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23768 (eval "$ac_try") 2>&5
23769 ac_status=$?
23770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23771 (exit $ac_status); }; }; then
23772 ac_cv_mixed_endian_double=yes
23773 else
23774 echo "$as_me: program exited with status $ac_status" >&5
23775 echo "$as_me: failed program was:" >&5
23776 sed 's/^/| /' conftest.$ac_ext >&5
23778 ( exit $ac_status )
23779 ac_cv_mixed_endian_double=no
23781 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23787 { echo "$as_me:$LINENO: result: $ac_cv_mixed_endian_double" >&5
23788 echo "${ECHO_T}$ac_cv_mixed_endian_double" >&6; }
23789 if test "$ac_cv_mixed_endian_double" = yes
23790 then
23792 cat >>confdefs.h <<\_ACEOF
23793 #define DOUBLE_IS_ARM_MIXED_ENDIAN_IEEE754 1
23794 _ACEOF
23798 # The short float repr introduced in Python 3.1 requires the
23799 # correctly-rounded string <-> double conversion functions from
23800 # Python/dtoa.c, which in turn require that the FPU uses 53-bit
23801 # rounding; this is a problem on x86, where the x87 FPU has a default
23802 # rounding precision of 64 bits. For gcc/x86, we can fix this by
23803 # using inline assembler to get and set the x87 FPU control word.
23805 # This inline assembler syntax may also work for suncc and icc,
23806 # so we try it on all platforms.
23808 { echo "$as_me:$LINENO: checking whether we can use gcc inline assembler to get and set x87 control word" >&5
23809 echo $ECHO_N "checking whether we can use gcc inline assembler to get and set x87 control word... $ECHO_C" >&6; }
23810 cat >conftest.$ac_ext <<_ACEOF
23811 /* confdefs.h. */
23812 _ACEOF
23813 cat confdefs.h >>conftest.$ac_ext
23814 cat >>conftest.$ac_ext <<_ACEOF
23815 /* end confdefs.h. */
23818 main ()
23821 unsigned short cw;
23822 __asm__ __volatile__ ("fnstcw %0" : "=m" (cw));
23823 __asm__ __volatile__ ("fldcw %0" : : "m" (cw));
23826 return 0;
23828 _ACEOF
23829 rm -f conftest.$ac_objext
23830 if { (ac_try="$ac_compile"
23831 case "(($ac_try" in
23832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23833 *) ac_try_echo=$ac_try;;
23834 esac
23835 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23836 (eval "$ac_compile") 2>conftest.er1
23837 ac_status=$?
23838 grep -v '^ *+' conftest.er1 >conftest.err
23839 rm -f conftest.er1
23840 cat conftest.err >&5
23841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23842 (exit $ac_status); } && {
23843 test -z "$ac_c_werror_flag" ||
23844 test ! -s conftest.err
23845 } && test -s conftest.$ac_objext; then
23846 have_gcc_asm_for_x87=yes
23847 else
23848 echo "$as_me: failed program was:" >&5
23849 sed 's/^/| /' conftest.$ac_ext >&5
23851 have_gcc_asm_for_x87=no
23854 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23855 { echo "$as_me:$LINENO: result: $have_gcc_asm_for_x87" >&5
23856 echo "${ECHO_T}$have_gcc_asm_for_x87" >&6; }
23857 if test "$have_gcc_asm_for_x87" = yes
23858 then
23860 cat >>confdefs.h <<\_ACEOF
23861 #define HAVE_GCC_ASM_FOR_X87 1
23862 _ACEOF
23866 # Detect whether system arithmetic is subject to x87-style double
23867 # rounding issues. The result of this test has little meaning on non
23868 # IEEE 754 platforms. On IEEE 754, test should return 1 if rounding
23869 # mode is round-to-nearest and double rounding issues are present, and
23870 # 0 otherwise. See http://bugs.python.org/issue2937 for more info.
23871 { echo "$as_me:$LINENO: checking for x87-style double rounding" >&5
23872 echo $ECHO_N "checking for x87-style double rounding... $ECHO_C" >&6; }
23873 # $BASECFLAGS may affect the result
23874 ac_save_cc="$CC"
23875 CC="$CC $BASECFLAGS"
23876 if test "$cross_compiling" = yes; then
23877 ac_cv_x87_double_rounding=no
23878 else
23879 cat >conftest.$ac_ext <<_ACEOF
23880 /* confdefs.h. */
23881 _ACEOF
23882 cat confdefs.h >>conftest.$ac_ext
23883 cat >>conftest.$ac_ext <<_ACEOF
23884 /* end confdefs.h. */
23886 #include <stdlib.h>
23887 #include <math.h>
23888 int main() {
23889 volatile double x, y, z;
23890 /* 1./(1-2**-53) -> 1+2**-52 (correct), 1.0 (double rounding) */
23891 x = 0.99999999999999989; /* 1-2**-53 */
23892 y = 1./x;
23893 if (y != 1.)
23894 exit(0);
23895 /* 1e16+2.99999 -> 1e16+2. (correct), 1e16+4. (double rounding) */
23896 x = 1e16;
23897 y = 2.99999;
23898 z = x + y;
23899 if (z != 1e16+4.)
23900 exit(0);
23901 /* both tests show evidence of double rounding */
23902 exit(1);
23905 _ACEOF
23906 rm -f conftest$ac_exeext
23907 if { (ac_try="$ac_link"
23908 case "(($ac_try" in
23909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23910 *) ac_try_echo=$ac_try;;
23911 esac
23912 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23913 (eval "$ac_link") 2>&5
23914 ac_status=$?
23915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23916 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23917 { (case "(($ac_try" in
23918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23919 *) ac_try_echo=$ac_try;;
23920 esac
23921 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23922 (eval "$ac_try") 2>&5
23923 ac_status=$?
23924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23925 (exit $ac_status); }; }; then
23926 ac_cv_x87_double_rounding=no
23927 else
23928 echo "$as_me: program exited with status $ac_status" >&5
23929 echo "$as_me: failed program was:" >&5
23930 sed 's/^/| /' conftest.$ac_ext >&5
23932 ( exit $ac_status )
23933 ac_cv_x87_double_rounding=yes
23935 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23939 CC="$ac_save_cc"
23940 { echo "$as_me:$LINENO: result: $ac_cv_x87_double_rounding" >&5
23941 echo "${ECHO_T}$ac_cv_x87_double_rounding" >&6; }
23942 if test "$ac_cv_x87_double_rounding" = yes
23943 then
23945 cat >>confdefs.h <<\_ACEOF
23946 #define X87_DOUBLE_ROUNDING 1
23947 _ACEOF
23951 # ************************************
23952 # * Check for mathematical functions *
23953 # ************************************
23955 LIBS_SAVE=$LIBS
23956 LIBS="$LIBS $LIBM"
23958 # On FreeBSD 6.2, it appears that tanh(-0.) returns 0. instead of
23959 # -0. on some architectures.
23960 { echo "$as_me:$LINENO: checking whether tanh preserves the sign of zero" >&5
23961 echo $ECHO_N "checking whether tanh preserves the sign of zero... $ECHO_C" >&6; }
23962 if test "${ac_cv_tanh_preserves_zero_sign+set}" = set; then
23963 echo $ECHO_N "(cached) $ECHO_C" >&6
23964 else
23966 if test "$cross_compiling" = yes; then
23967 ac_cv_tanh_preserves_zero_sign=no
23968 else
23969 cat >conftest.$ac_ext <<_ACEOF
23970 /* confdefs.h. */
23971 _ACEOF
23972 cat confdefs.h >>conftest.$ac_ext
23973 cat >>conftest.$ac_ext <<_ACEOF
23974 /* end confdefs.h. */
23976 #include <math.h>
23977 #include <stdlib.h>
23978 int main() {
23979 /* return 0 if either negative zeros don't exist
23980 on this platform or if negative zeros exist
23981 and tanh(-0.) == -0. */
23982 if (atan2(0., -1.) == atan2(-0., -1.) ||
23983 atan2(tanh(-0.), -1.) == atan2(-0., -1.)) exit(0);
23984 else exit(1);
23987 _ACEOF
23988 rm -f conftest$ac_exeext
23989 if { (ac_try="$ac_link"
23990 case "(($ac_try" in
23991 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23992 *) ac_try_echo=$ac_try;;
23993 esac
23994 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23995 (eval "$ac_link") 2>&5
23996 ac_status=$?
23997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23998 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23999 { (case "(($ac_try" in
24000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24001 *) ac_try_echo=$ac_try;;
24002 esac
24003 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24004 (eval "$ac_try") 2>&5
24005 ac_status=$?
24006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24007 (exit $ac_status); }; }; then
24008 ac_cv_tanh_preserves_zero_sign=yes
24009 else
24010 echo "$as_me: program exited with status $ac_status" >&5
24011 echo "$as_me: failed program was:" >&5
24012 sed 's/^/| /' conftest.$ac_ext >&5
24014 ( exit $ac_status )
24015 ac_cv_tanh_preserves_zero_sign=no
24017 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24023 { echo "$as_me:$LINENO: result: $ac_cv_tanh_preserves_zero_sign" >&5
24024 echo "${ECHO_T}$ac_cv_tanh_preserves_zero_sign" >&6; }
24025 if test "$ac_cv_tanh_preserves_zero_sign" = yes
24026 then
24028 cat >>confdefs.h <<\_ACEOF
24029 #define TANH_PRESERVES_ZERO_SIGN 1
24030 _ACEOF
24043 for ac_func in acosh asinh atanh copysign erf erfc expm1 finite gamma
24045 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24046 { echo "$as_me:$LINENO: checking for $ac_func" >&5
24047 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
24048 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
24049 echo $ECHO_N "(cached) $ECHO_C" >&6
24050 else
24051 cat >conftest.$ac_ext <<_ACEOF
24052 /* confdefs.h. */
24053 _ACEOF
24054 cat confdefs.h >>conftest.$ac_ext
24055 cat >>conftest.$ac_ext <<_ACEOF
24056 /* end confdefs.h. */
24057 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24058 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24059 #define $ac_func innocuous_$ac_func
24061 /* System header to define __stub macros and hopefully few prototypes,
24062 which can conflict with char $ac_func (); below.
24063 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24064 <limits.h> exists even on freestanding compilers. */
24066 #ifdef __STDC__
24067 # include <limits.h>
24068 #else
24069 # include <assert.h>
24070 #endif
24072 #undef $ac_func
24074 /* Override any GCC internal prototype to avoid an error.
24075 Use char because int might match the return type of a GCC
24076 builtin and then its argument prototype would still apply. */
24077 #ifdef __cplusplus
24078 extern "C"
24079 #endif
24080 char $ac_func ();
24081 /* The GNU C library defines this for functions which it implements
24082 to always fail with ENOSYS. Some functions are actually named
24083 something starting with __ and the normal name is an alias. */
24084 #if defined __stub_$ac_func || defined __stub___$ac_func
24085 choke me
24086 #endif
24089 main ()
24091 return $ac_func ();
24093 return 0;
24095 _ACEOF
24096 rm -f conftest.$ac_objext conftest$ac_exeext
24097 if { (ac_try="$ac_link"
24098 case "(($ac_try" in
24099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24100 *) ac_try_echo=$ac_try;;
24101 esac
24102 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24103 (eval "$ac_link") 2>conftest.er1
24104 ac_status=$?
24105 grep -v '^ *+' conftest.er1 >conftest.err
24106 rm -f conftest.er1
24107 cat conftest.err >&5
24108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24109 (exit $ac_status); } && {
24110 test -z "$ac_c_werror_flag" ||
24111 test ! -s conftest.err
24112 } && test -s conftest$ac_exeext &&
24113 $as_test_x conftest$ac_exeext; then
24114 eval "$as_ac_var=yes"
24115 else
24116 echo "$as_me: failed program was:" >&5
24117 sed 's/^/| /' conftest.$ac_ext >&5
24119 eval "$as_ac_var=no"
24122 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24123 conftest$ac_exeext conftest.$ac_ext
24125 ac_res=`eval echo '${'$as_ac_var'}'`
24126 { echo "$as_me:$LINENO: result: $ac_res" >&5
24127 echo "${ECHO_T}$ac_res" >&6; }
24128 if test `eval echo '${'$as_ac_var'}'` = yes; then
24129 cat >>confdefs.h <<_ACEOF
24130 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24131 _ACEOF
24134 done
24141 for ac_func in hypot lgamma log1p round tgamma
24143 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24144 { echo "$as_me:$LINENO: checking for $ac_func" >&5
24145 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
24146 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
24147 echo $ECHO_N "(cached) $ECHO_C" >&6
24148 else
24149 cat >conftest.$ac_ext <<_ACEOF
24150 /* confdefs.h. */
24151 _ACEOF
24152 cat confdefs.h >>conftest.$ac_ext
24153 cat >>conftest.$ac_ext <<_ACEOF
24154 /* end confdefs.h. */
24155 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24156 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24157 #define $ac_func innocuous_$ac_func
24159 /* System header to define __stub macros and hopefully few prototypes,
24160 which can conflict with char $ac_func (); below.
24161 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24162 <limits.h> exists even on freestanding compilers. */
24164 #ifdef __STDC__
24165 # include <limits.h>
24166 #else
24167 # include <assert.h>
24168 #endif
24170 #undef $ac_func
24172 /* Override any GCC internal prototype to avoid an error.
24173 Use char because int might match the return type of a GCC
24174 builtin and then its argument prototype would still apply. */
24175 #ifdef __cplusplus
24176 extern "C"
24177 #endif
24178 char $ac_func ();
24179 /* The GNU C library defines this for functions which it implements
24180 to always fail with ENOSYS. Some functions are actually named
24181 something starting with __ and the normal name is an alias. */
24182 #if defined __stub_$ac_func || defined __stub___$ac_func
24183 choke me
24184 #endif
24187 main ()
24189 return $ac_func ();
24191 return 0;
24193 _ACEOF
24194 rm -f conftest.$ac_objext conftest$ac_exeext
24195 if { (ac_try="$ac_link"
24196 case "(($ac_try" in
24197 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24198 *) ac_try_echo=$ac_try;;
24199 esac
24200 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24201 (eval "$ac_link") 2>conftest.er1
24202 ac_status=$?
24203 grep -v '^ *+' conftest.er1 >conftest.err
24204 rm -f conftest.er1
24205 cat conftest.err >&5
24206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24207 (exit $ac_status); } && {
24208 test -z "$ac_c_werror_flag" ||
24209 test ! -s conftest.err
24210 } && test -s conftest$ac_exeext &&
24211 $as_test_x conftest$ac_exeext; then
24212 eval "$as_ac_var=yes"
24213 else
24214 echo "$as_me: failed program was:" >&5
24215 sed 's/^/| /' conftest.$ac_ext >&5
24217 eval "$as_ac_var=no"
24220 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24221 conftest$ac_exeext conftest.$ac_ext
24223 ac_res=`eval echo '${'$as_ac_var'}'`
24224 { echo "$as_me:$LINENO: result: $ac_res" >&5
24225 echo "${ECHO_T}$ac_res" >&6; }
24226 if test `eval echo '${'$as_ac_var'}'` = yes; then
24227 cat >>confdefs.h <<_ACEOF
24228 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24229 _ACEOF
24232 done
24234 { echo "$as_me:$LINENO: checking whether isinf is declared" >&5
24235 echo $ECHO_N "checking whether isinf is declared... $ECHO_C" >&6; }
24236 if test "${ac_cv_have_decl_isinf+set}" = set; then
24237 echo $ECHO_N "(cached) $ECHO_C" >&6
24238 else
24239 cat >conftest.$ac_ext <<_ACEOF
24240 /* confdefs.h. */
24241 _ACEOF
24242 cat confdefs.h >>conftest.$ac_ext
24243 cat >>conftest.$ac_ext <<_ACEOF
24244 /* end confdefs.h. */
24245 #include <math.h>
24248 main ()
24250 #ifndef isinf
24251 (void) isinf;
24252 #endif
24255 return 0;
24257 _ACEOF
24258 rm -f conftest.$ac_objext
24259 if { (ac_try="$ac_compile"
24260 case "(($ac_try" in
24261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24262 *) ac_try_echo=$ac_try;;
24263 esac
24264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24265 (eval "$ac_compile") 2>conftest.er1
24266 ac_status=$?
24267 grep -v '^ *+' conftest.er1 >conftest.err
24268 rm -f conftest.er1
24269 cat conftest.err >&5
24270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24271 (exit $ac_status); } && {
24272 test -z "$ac_c_werror_flag" ||
24273 test ! -s conftest.err
24274 } && test -s conftest.$ac_objext; then
24275 ac_cv_have_decl_isinf=yes
24276 else
24277 echo "$as_me: failed program was:" >&5
24278 sed 's/^/| /' conftest.$ac_ext >&5
24280 ac_cv_have_decl_isinf=no
24283 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24285 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_isinf" >&5
24286 echo "${ECHO_T}$ac_cv_have_decl_isinf" >&6; }
24287 if test $ac_cv_have_decl_isinf = yes; then
24289 cat >>confdefs.h <<_ACEOF
24290 #define HAVE_DECL_ISINF 1
24291 _ACEOF
24294 else
24295 cat >>confdefs.h <<_ACEOF
24296 #define HAVE_DECL_ISINF 0
24297 _ACEOF
24301 { echo "$as_me:$LINENO: checking whether isnan is declared" >&5
24302 echo $ECHO_N "checking whether isnan is declared... $ECHO_C" >&6; }
24303 if test "${ac_cv_have_decl_isnan+set}" = set; then
24304 echo $ECHO_N "(cached) $ECHO_C" >&6
24305 else
24306 cat >conftest.$ac_ext <<_ACEOF
24307 /* confdefs.h. */
24308 _ACEOF
24309 cat confdefs.h >>conftest.$ac_ext
24310 cat >>conftest.$ac_ext <<_ACEOF
24311 /* end confdefs.h. */
24312 #include <math.h>
24315 main ()
24317 #ifndef isnan
24318 (void) isnan;
24319 #endif
24322 return 0;
24324 _ACEOF
24325 rm -f conftest.$ac_objext
24326 if { (ac_try="$ac_compile"
24327 case "(($ac_try" in
24328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24329 *) ac_try_echo=$ac_try;;
24330 esac
24331 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24332 (eval "$ac_compile") 2>conftest.er1
24333 ac_status=$?
24334 grep -v '^ *+' conftest.er1 >conftest.err
24335 rm -f conftest.er1
24336 cat conftest.err >&5
24337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24338 (exit $ac_status); } && {
24339 test -z "$ac_c_werror_flag" ||
24340 test ! -s conftest.err
24341 } && test -s conftest.$ac_objext; then
24342 ac_cv_have_decl_isnan=yes
24343 else
24344 echo "$as_me: failed program was:" >&5
24345 sed 's/^/| /' conftest.$ac_ext >&5
24347 ac_cv_have_decl_isnan=no
24350 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24352 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_isnan" >&5
24353 echo "${ECHO_T}$ac_cv_have_decl_isnan" >&6; }
24354 if test $ac_cv_have_decl_isnan = yes; then
24356 cat >>confdefs.h <<_ACEOF
24357 #define HAVE_DECL_ISNAN 1
24358 _ACEOF
24361 else
24362 cat >>confdefs.h <<_ACEOF
24363 #define HAVE_DECL_ISNAN 0
24364 _ACEOF
24368 { echo "$as_me:$LINENO: checking whether isfinite is declared" >&5
24369 echo $ECHO_N "checking whether isfinite is declared... $ECHO_C" >&6; }
24370 if test "${ac_cv_have_decl_isfinite+set}" = set; then
24371 echo $ECHO_N "(cached) $ECHO_C" >&6
24372 else
24373 cat >conftest.$ac_ext <<_ACEOF
24374 /* confdefs.h. */
24375 _ACEOF
24376 cat confdefs.h >>conftest.$ac_ext
24377 cat >>conftest.$ac_ext <<_ACEOF
24378 /* end confdefs.h. */
24379 #include <math.h>
24382 main ()
24384 #ifndef isfinite
24385 (void) isfinite;
24386 #endif
24389 return 0;
24391 _ACEOF
24392 rm -f conftest.$ac_objext
24393 if { (ac_try="$ac_compile"
24394 case "(($ac_try" in
24395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24396 *) ac_try_echo=$ac_try;;
24397 esac
24398 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24399 (eval "$ac_compile") 2>conftest.er1
24400 ac_status=$?
24401 grep -v '^ *+' conftest.er1 >conftest.err
24402 rm -f conftest.er1
24403 cat conftest.err >&5
24404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24405 (exit $ac_status); } && {
24406 test -z "$ac_c_werror_flag" ||
24407 test ! -s conftest.err
24408 } && test -s conftest.$ac_objext; then
24409 ac_cv_have_decl_isfinite=yes
24410 else
24411 echo "$as_me: failed program was:" >&5
24412 sed 's/^/| /' conftest.$ac_ext >&5
24414 ac_cv_have_decl_isfinite=no
24417 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24419 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_isfinite" >&5
24420 echo "${ECHO_T}$ac_cv_have_decl_isfinite" >&6; }
24421 if test $ac_cv_have_decl_isfinite = yes; then
24423 cat >>confdefs.h <<_ACEOF
24424 #define HAVE_DECL_ISFINITE 1
24425 _ACEOF
24428 else
24429 cat >>confdefs.h <<_ACEOF
24430 #define HAVE_DECL_ISFINITE 0
24431 _ACEOF
24438 LIBS=$LIBS_SAVE
24440 # For multiprocessing module, check that sem_open
24441 # actually works. For FreeBSD versions <= 7.2,
24442 # the kernel module that provides POSIX semaphores
24443 # isn't loaded by default, so an attempt to call
24444 # sem_open results in a 'Signal 12' error.
24445 { echo "$as_me:$LINENO: checking whether POSIX semaphores are enabled" >&5
24446 echo $ECHO_N "checking whether POSIX semaphores are enabled... $ECHO_C" >&6; }
24447 if test "${ac_cv_posix_semaphores_enabled+set}" = set; then
24448 echo $ECHO_N "(cached) $ECHO_C" >&6
24449 else
24450 if test "$cross_compiling" = yes; then
24451 ac_cv_posix_semaphores_enabled=yes
24452 else
24453 cat >conftest.$ac_ext <<_ACEOF
24454 /* confdefs.h. */
24455 _ACEOF
24456 cat confdefs.h >>conftest.$ac_ext
24457 cat >>conftest.$ac_ext <<_ACEOF
24458 /* end confdefs.h. */
24460 #include <unistd.h>
24461 #include <fcntl.h>
24462 #include <stdio.h>
24463 #include <semaphore.h>
24464 #include <sys/stat.h>
24466 int main(void) {
24467 sem_t *a = sem_open("/autoconf", O_CREAT, S_IRUSR|S_IWUSR, 0);
24468 if (a == SEM_FAILED) {
24469 perror("sem_open");
24470 return 1;
24472 sem_close(a);
24473 sem_unlink("/autoconf");
24474 return 0;
24477 _ACEOF
24478 rm -f conftest$ac_exeext
24479 if { (ac_try="$ac_link"
24480 case "(($ac_try" in
24481 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24482 *) ac_try_echo=$ac_try;;
24483 esac
24484 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24485 (eval "$ac_link") 2>&5
24486 ac_status=$?
24487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24488 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24489 { (case "(($ac_try" in
24490 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24491 *) ac_try_echo=$ac_try;;
24492 esac
24493 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24494 (eval "$ac_try") 2>&5
24495 ac_status=$?
24496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24497 (exit $ac_status); }; }; then
24498 ac_cv_posix_semaphores_enabled=yes
24499 else
24500 echo "$as_me: program exited with status $ac_status" >&5
24501 echo "$as_me: failed program was:" >&5
24502 sed 's/^/| /' conftest.$ac_ext >&5
24504 ( exit $ac_status )
24505 ac_cv_posix_semaphores_enabled=no
24507 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24514 { echo "$as_me:$LINENO: result: $ac_cv_posix_semaphores_enabled" >&5
24515 echo "${ECHO_T}$ac_cv_posix_semaphores_enabled" >&6; }
24516 if test $ac_cv_posix_semaphores_enabled = no
24517 then
24519 cat >>confdefs.h <<\_ACEOF
24520 #define POSIX_SEMAPHORES_NOT_ENABLED 1
24521 _ACEOF
24525 # Multiprocessing check for broken sem_getvalue
24526 { echo "$as_me:$LINENO: checking for broken sem_getvalue" >&5
24527 echo $ECHO_N "checking for broken sem_getvalue... $ECHO_C" >&6; }
24528 if test "${ac_cv_broken_sem_getvalue+set}" = set; then
24529 echo $ECHO_N "(cached) $ECHO_C" >&6
24530 else
24531 if test "$cross_compiling" = yes; then
24532 ac_cv_broken_sem_getvalue=yes
24533 else
24534 cat >conftest.$ac_ext <<_ACEOF
24535 /* confdefs.h. */
24536 _ACEOF
24537 cat confdefs.h >>conftest.$ac_ext
24538 cat >>conftest.$ac_ext <<_ACEOF
24539 /* end confdefs.h. */
24541 #include <unistd.h>
24542 #include <fcntl.h>
24543 #include <stdio.h>
24544 #include <semaphore.h>
24545 #include <sys/stat.h>
24547 int main(void){
24548 sem_t *a = sem_open("/autocftw", O_CREAT, S_IRUSR|S_IWUSR, 0);
24549 int count;
24550 int res;
24551 if(a==SEM_FAILED){
24552 perror("sem_open");
24553 return 1;
24556 res = sem_getvalue(a, &count);
24557 sem_close(a);
24558 sem_unlink("/autocftw");
24559 return res==-1 ? 1 : 0;
24562 _ACEOF
24563 rm -f conftest$ac_exeext
24564 if { (ac_try="$ac_link"
24565 case "(($ac_try" in
24566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24567 *) ac_try_echo=$ac_try;;
24568 esac
24569 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24570 (eval "$ac_link") 2>&5
24571 ac_status=$?
24572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24573 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24574 { (case "(($ac_try" in
24575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24576 *) ac_try_echo=$ac_try;;
24577 esac
24578 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24579 (eval "$ac_try") 2>&5
24580 ac_status=$?
24581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24582 (exit $ac_status); }; }; then
24583 ac_cv_broken_sem_getvalue=no
24584 else
24585 echo "$as_me: program exited with status $ac_status" >&5
24586 echo "$as_me: failed program was:" >&5
24587 sed 's/^/| /' conftest.$ac_ext >&5
24589 ( exit $ac_status )
24590 ac_cv_broken_sem_getvalue=yes
24592 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24599 { echo "$as_me:$LINENO: result: $ac_cv_broken_sem_getvalue" >&5
24600 echo "${ECHO_T}$ac_cv_broken_sem_getvalue" >&6; }
24601 if test $ac_cv_broken_sem_getvalue = yes
24602 then
24604 cat >>confdefs.h <<\_ACEOF
24605 #define HAVE_BROKEN_SEM_GETVALUE 1
24606 _ACEOF
24610 # determine what size digit to use for Python's longs
24611 { echo "$as_me:$LINENO: checking digit size for Python's longs" >&5
24612 echo $ECHO_N "checking digit size for Python's longs... $ECHO_C" >&6; }
24613 # Check whether --enable-big-digits was given.
24614 if test "${enable_big_digits+set}" = set; then
24615 enableval=$enable_big_digits; case $enable_big_digits in
24616 yes)
24617 enable_big_digits=30 ;;
24619 enable_big_digits=15 ;;
24620 15|30)
24623 { { echo "$as_me:$LINENO: error: bad value $enable_big_digits for --enable-big-digits; value should be 15 or 30" >&5
24624 echo "$as_me: error: bad value $enable_big_digits for --enable-big-digits; value should be 15 or 30" >&2;}
24625 { (exit 1); exit 1; }; } ;;
24626 esac
24627 { echo "$as_me:$LINENO: result: $enable_big_digits" >&5
24628 echo "${ECHO_T}$enable_big_digits" >&6; }
24630 cat >>confdefs.h <<_ACEOF
24631 #define PYLONG_BITS_IN_DIGIT $enable_big_digits
24632 _ACEOF
24635 else
24636 { echo "$as_me:$LINENO: result: no value specified" >&5
24637 echo "${ECHO_T}no value specified" >&6; }
24641 # check for wchar.h
24642 if test "${ac_cv_header_wchar_h+set}" = set; then
24643 { echo "$as_me:$LINENO: checking for wchar.h" >&5
24644 echo $ECHO_N "checking for wchar.h... $ECHO_C" >&6; }
24645 if test "${ac_cv_header_wchar_h+set}" = set; then
24646 echo $ECHO_N "(cached) $ECHO_C" >&6
24648 { echo "$as_me:$LINENO: result: $ac_cv_header_wchar_h" >&5
24649 echo "${ECHO_T}$ac_cv_header_wchar_h" >&6; }
24650 else
24651 # Is the header compilable?
24652 { echo "$as_me:$LINENO: checking wchar.h usability" >&5
24653 echo $ECHO_N "checking wchar.h usability... $ECHO_C" >&6; }
24654 cat >conftest.$ac_ext <<_ACEOF
24655 /* confdefs.h. */
24656 _ACEOF
24657 cat confdefs.h >>conftest.$ac_ext
24658 cat >>conftest.$ac_ext <<_ACEOF
24659 /* end confdefs.h. */
24660 $ac_includes_default
24661 #include <wchar.h>
24662 _ACEOF
24663 rm -f conftest.$ac_objext
24664 if { (ac_try="$ac_compile"
24665 case "(($ac_try" in
24666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24667 *) ac_try_echo=$ac_try;;
24668 esac
24669 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24670 (eval "$ac_compile") 2>conftest.er1
24671 ac_status=$?
24672 grep -v '^ *+' conftest.er1 >conftest.err
24673 rm -f conftest.er1
24674 cat conftest.err >&5
24675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24676 (exit $ac_status); } && {
24677 test -z "$ac_c_werror_flag" ||
24678 test ! -s conftest.err
24679 } && test -s conftest.$ac_objext; then
24680 ac_header_compiler=yes
24681 else
24682 echo "$as_me: failed program was:" >&5
24683 sed 's/^/| /' conftest.$ac_ext >&5
24685 ac_header_compiler=no
24688 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24689 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24690 echo "${ECHO_T}$ac_header_compiler" >&6; }
24692 # Is the header present?
24693 { echo "$as_me:$LINENO: checking wchar.h presence" >&5
24694 echo $ECHO_N "checking wchar.h presence... $ECHO_C" >&6; }
24695 cat >conftest.$ac_ext <<_ACEOF
24696 /* confdefs.h. */
24697 _ACEOF
24698 cat confdefs.h >>conftest.$ac_ext
24699 cat >>conftest.$ac_ext <<_ACEOF
24700 /* end confdefs.h. */
24701 #include <wchar.h>
24702 _ACEOF
24703 if { (ac_try="$ac_cpp conftest.$ac_ext"
24704 case "(($ac_try" in
24705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24706 *) ac_try_echo=$ac_try;;
24707 esac
24708 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24709 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24710 ac_status=$?
24711 grep -v '^ *+' conftest.er1 >conftest.err
24712 rm -f conftest.er1
24713 cat conftest.err >&5
24714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24715 (exit $ac_status); } >/dev/null && {
24716 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24717 test ! -s conftest.err
24718 }; then
24719 ac_header_preproc=yes
24720 else
24721 echo "$as_me: failed program was:" >&5
24722 sed 's/^/| /' conftest.$ac_ext >&5
24724 ac_header_preproc=no
24727 rm -f conftest.err conftest.$ac_ext
24728 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24729 echo "${ECHO_T}$ac_header_preproc" >&6; }
24731 # So? What about this header?
24732 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24733 yes:no: )
24734 { echo "$as_me:$LINENO: WARNING: wchar.h: accepted by the compiler, rejected by the preprocessor!" >&5
24735 echo "$as_me: WARNING: wchar.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24736 { echo "$as_me:$LINENO: WARNING: wchar.h: proceeding with the compiler's result" >&5
24737 echo "$as_me: WARNING: wchar.h: proceeding with the compiler's result" >&2;}
24738 ac_header_preproc=yes
24740 no:yes:* )
24741 { echo "$as_me:$LINENO: WARNING: wchar.h: present but cannot be compiled" >&5
24742 echo "$as_me: WARNING: wchar.h: present but cannot be compiled" >&2;}
24743 { echo "$as_me:$LINENO: WARNING: wchar.h: check for missing prerequisite headers?" >&5
24744 echo "$as_me: WARNING: wchar.h: check for missing prerequisite headers?" >&2;}
24745 { echo "$as_me:$LINENO: WARNING: wchar.h: see the Autoconf documentation" >&5
24746 echo "$as_me: WARNING: wchar.h: see the Autoconf documentation" >&2;}
24747 { echo "$as_me:$LINENO: WARNING: wchar.h: section \"Present But Cannot Be Compiled\"" >&5
24748 echo "$as_me: WARNING: wchar.h: section \"Present But Cannot Be Compiled\"" >&2;}
24749 { echo "$as_me:$LINENO: WARNING: wchar.h: proceeding with the preprocessor's result" >&5
24750 echo "$as_me: WARNING: wchar.h: proceeding with the preprocessor's result" >&2;}
24751 { echo "$as_me:$LINENO: WARNING: wchar.h: in the future, the compiler will take precedence" >&5
24752 echo "$as_me: WARNING: wchar.h: in the future, the compiler will take precedence" >&2;}
24753 ( cat <<\_ASBOX
24754 ## -------------------------------------- ##
24755 ## Report this to http://bugs.python.org/ ##
24756 ## -------------------------------------- ##
24757 _ASBOX
24758 ) | sed "s/^/$as_me: WARNING: /" >&2
24760 esac
24761 { echo "$as_me:$LINENO: checking for wchar.h" >&5
24762 echo $ECHO_N "checking for wchar.h... $ECHO_C" >&6; }
24763 if test "${ac_cv_header_wchar_h+set}" = set; then
24764 echo $ECHO_N "(cached) $ECHO_C" >&6
24765 else
24766 ac_cv_header_wchar_h=$ac_header_preproc
24768 { echo "$as_me:$LINENO: result: $ac_cv_header_wchar_h" >&5
24769 echo "${ECHO_T}$ac_cv_header_wchar_h" >&6; }
24772 if test $ac_cv_header_wchar_h = yes; then
24775 cat >>confdefs.h <<\_ACEOF
24776 #define HAVE_WCHAR_H 1
24777 _ACEOF
24779 wchar_h="yes"
24781 else
24782 wchar_h="no"
24788 # determine wchar_t size
24789 if test "$wchar_h" = yes
24790 then
24791 { echo "$as_me:$LINENO: checking for wchar_t" >&5
24792 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6; }
24793 if test "${ac_cv_type_wchar_t+set}" = set; then
24794 echo $ECHO_N "(cached) $ECHO_C" >&6
24795 else
24796 cat >conftest.$ac_ext <<_ACEOF
24797 /* confdefs.h. */
24798 _ACEOF
24799 cat confdefs.h >>conftest.$ac_ext
24800 cat >>conftest.$ac_ext <<_ACEOF
24801 /* end confdefs.h. */
24802 #include <wchar.h>
24804 typedef wchar_t ac__type_new_;
24806 main ()
24808 if ((ac__type_new_ *) 0)
24809 return 0;
24810 if (sizeof (ac__type_new_))
24811 return 0;
24813 return 0;
24815 _ACEOF
24816 rm -f conftest.$ac_objext
24817 if { (ac_try="$ac_compile"
24818 case "(($ac_try" in
24819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24820 *) ac_try_echo=$ac_try;;
24821 esac
24822 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24823 (eval "$ac_compile") 2>conftest.er1
24824 ac_status=$?
24825 grep -v '^ *+' conftest.er1 >conftest.err
24826 rm -f conftest.er1
24827 cat conftest.err >&5
24828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24829 (exit $ac_status); } && {
24830 test -z "$ac_c_werror_flag" ||
24831 test ! -s conftest.err
24832 } && test -s conftest.$ac_objext; then
24833 ac_cv_type_wchar_t=yes
24834 else
24835 echo "$as_me: failed program was:" >&5
24836 sed 's/^/| /' conftest.$ac_ext >&5
24838 ac_cv_type_wchar_t=no
24841 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24843 { echo "$as_me:$LINENO: result: $ac_cv_type_wchar_t" >&5
24844 echo "${ECHO_T}$ac_cv_type_wchar_t" >&6; }
24846 # The cast to long int works around a bug in the HP C Compiler
24847 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24848 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24849 # This bug is HP SR number 8606223364.
24850 { echo "$as_me:$LINENO: checking size of wchar_t" >&5
24851 echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6; }
24852 if test "${ac_cv_sizeof_wchar_t+set}" = set; then
24853 echo $ECHO_N "(cached) $ECHO_C" >&6
24854 else
24855 if test "$cross_compiling" = yes; then
24856 # Depending upon the size, compute the lo and hi bounds.
24857 cat >conftest.$ac_ext <<_ACEOF
24858 /* confdefs.h. */
24859 _ACEOF
24860 cat confdefs.h >>conftest.$ac_ext
24861 cat >>conftest.$ac_ext <<_ACEOF
24862 /* end confdefs.h. */
24863 #include <wchar.h>
24865 typedef wchar_t ac__type_sizeof_;
24867 main ()
24869 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
24870 test_array [0] = 0
24873 return 0;
24875 _ACEOF
24876 rm -f conftest.$ac_objext
24877 if { (ac_try="$ac_compile"
24878 case "(($ac_try" in
24879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24880 *) ac_try_echo=$ac_try;;
24881 esac
24882 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24883 (eval "$ac_compile") 2>conftest.er1
24884 ac_status=$?
24885 grep -v '^ *+' conftest.er1 >conftest.err
24886 rm -f conftest.er1
24887 cat conftest.err >&5
24888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24889 (exit $ac_status); } && {
24890 test -z "$ac_c_werror_flag" ||
24891 test ! -s conftest.err
24892 } && test -s conftest.$ac_objext; then
24893 ac_lo=0 ac_mid=0
24894 while :; do
24895 cat >conftest.$ac_ext <<_ACEOF
24896 /* confdefs.h. */
24897 _ACEOF
24898 cat confdefs.h >>conftest.$ac_ext
24899 cat >>conftest.$ac_ext <<_ACEOF
24900 /* end confdefs.h. */
24901 #include <wchar.h>
24903 typedef wchar_t ac__type_sizeof_;
24905 main ()
24907 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
24908 test_array [0] = 0
24911 return 0;
24913 _ACEOF
24914 rm -f conftest.$ac_objext
24915 if { (ac_try="$ac_compile"
24916 case "(($ac_try" in
24917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24918 *) ac_try_echo=$ac_try;;
24919 esac
24920 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24921 (eval "$ac_compile") 2>conftest.er1
24922 ac_status=$?
24923 grep -v '^ *+' conftest.er1 >conftest.err
24924 rm -f conftest.er1
24925 cat conftest.err >&5
24926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24927 (exit $ac_status); } && {
24928 test -z "$ac_c_werror_flag" ||
24929 test ! -s conftest.err
24930 } && test -s conftest.$ac_objext; then
24931 ac_hi=$ac_mid; break
24932 else
24933 echo "$as_me: failed program was:" >&5
24934 sed 's/^/| /' conftest.$ac_ext >&5
24936 ac_lo=`expr $ac_mid + 1`
24937 if test $ac_lo -le $ac_mid; then
24938 ac_lo= ac_hi=
24939 break
24941 ac_mid=`expr 2 '*' $ac_mid + 1`
24944 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24945 done
24946 else
24947 echo "$as_me: failed program was:" >&5
24948 sed 's/^/| /' conftest.$ac_ext >&5
24950 cat >conftest.$ac_ext <<_ACEOF
24951 /* confdefs.h. */
24952 _ACEOF
24953 cat confdefs.h >>conftest.$ac_ext
24954 cat >>conftest.$ac_ext <<_ACEOF
24955 /* end confdefs.h. */
24956 #include <wchar.h>
24958 typedef wchar_t ac__type_sizeof_;
24960 main ()
24962 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
24963 test_array [0] = 0
24966 return 0;
24968 _ACEOF
24969 rm -f conftest.$ac_objext
24970 if { (ac_try="$ac_compile"
24971 case "(($ac_try" in
24972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24973 *) ac_try_echo=$ac_try;;
24974 esac
24975 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24976 (eval "$ac_compile") 2>conftest.er1
24977 ac_status=$?
24978 grep -v '^ *+' conftest.er1 >conftest.err
24979 rm -f conftest.er1
24980 cat conftest.err >&5
24981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24982 (exit $ac_status); } && {
24983 test -z "$ac_c_werror_flag" ||
24984 test ! -s conftest.err
24985 } && test -s conftest.$ac_objext; then
24986 ac_hi=-1 ac_mid=-1
24987 while :; do
24988 cat >conftest.$ac_ext <<_ACEOF
24989 /* confdefs.h. */
24990 _ACEOF
24991 cat confdefs.h >>conftest.$ac_ext
24992 cat >>conftest.$ac_ext <<_ACEOF
24993 /* end confdefs.h. */
24994 #include <wchar.h>
24996 typedef wchar_t ac__type_sizeof_;
24998 main ()
25000 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
25001 test_array [0] = 0
25004 return 0;
25006 _ACEOF
25007 rm -f conftest.$ac_objext
25008 if { (ac_try="$ac_compile"
25009 case "(($ac_try" in
25010 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25011 *) ac_try_echo=$ac_try;;
25012 esac
25013 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25014 (eval "$ac_compile") 2>conftest.er1
25015 ac_status=$?
25016 grep -v '^ *+' conftest.er1 >conftest.err
25017 rm -f conftest.er1
25018 cat conftest.err >&5
25019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25020 (exit $ac_status); } && {
25021 test -z "$ac_c_werror_flag" ||
25022 test ! -s conftest.err
25023 } && test -s conftest.$ac_objext; then
25024 ac_lo=$ac_mid; break
25025 else
25026 echo "$as_me: failed program was:" >&5
25027 sed 's/^/| /' conftest.$ac_ext >&5
25029 ac_hi=`expr '(' $ac_mid ')' - 1`
25030 if test $ac_mid -le $ac_hi; then
25031 ac_lo= ac_hi=
25032 break
25034 ac_mid=`expr 2 '*' $ac_mid`
25037 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25038 done
25039 else
25040 echo "$as_me: failed program was:" >&5
25041 sed 's/^/| /' conftest.$ac_ext >&5
25043 ac_lo= ac_hi=
25046 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25049 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25050 # Binary search between lo and hi bounds.
25051 while test "x$ac_lo" != "x$ac_hi"; do
25052 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
25053 cat >conftest.$ac_ext <<_ACEOF
25054 /* confdefs.h. */
25055 _ACEOF
25056 cat confdefs.h >>conftest.$ac_ext
25057 cat >>conftest.$ac_ext <<_ACEOF
25058 /* end confdefs.h. */
25059 #include <wchar.h>
25061 typedef wchar_t ac__type_sizeof_;
25063 main ()
25065 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
25066 test_array [0] = 0
25069 return 0;
25071 _ACEOF
25072 rm -f conftest.$ac_objext
25073 if { (ac_try="$ac_compile"
25074 case "(($ac_try" in
25075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25076 *) ac_try_echo=$ac_try;;
25077 esac
25078 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25079 (eval "$ac_compile") 2>conftest.er1
25080 ac_status=$?
25081 grep -v '^ *+' conftest.er1 >conftest.err
25082 rm -f conftest.er1
25083 cat conftest.err >&5
25084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25085 (exit $ac_status); } && {
25086 test -z "$ac_c_werror_flag" ||
25087 test ! -s conftest.err
25088 } && test -s conftest.$ac_objext; then
25089 ac_hi=$ac_mid
25090 else
25091 echo "$as_me: failed program was:" >&5
25092 sed 's/^/| /' conftest.$ac_ext >&5
25094 ac_lo=`expr '(' $ac_mid ')' + 1`
25097 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25098 done
25099 case $ac_lo in
25100 ?*) ac_cv_sizeof_wchar_t=$ac_lo;;
25101 '') if test "$ac_cv_type_wchar_t" = yes; then
25102 { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t)
25103 See \`config.log' for more details." >&5
25104 echo "$as_me: error: cannot compute sizeof (wchar_t)
25105 See \`config.log' for more details." >&2;}
25106 { (exit 77); exit 77; }; }
25107 else
25108 ac_cv_sizeof_wchar_t=0
25109 fi ;;
25110 esac
25111 else
25112 cat >conftest.$ac_ext <<_ACEOF
25113 /* confdefs.h. */
25114 _ACEOF
25115 cat confdefs.h >>conftest.$ac_ext
25116 cat >>conftest.$ac_ext <<_ACEOF
25117 /* end confdefs.h. */
25118 #include <wchar.h>
25120 typedef wchar_t ac__type_sizeof_;
25121 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
25122 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
25123 #include <stdio.h>
25124 #include <stdlib.h>
25126 main ()
25129 FILE *f = fopen ("conftest.val", "w");
25130 if (! f)
25131 return 1;
25132 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
25134 long int i = longval ();
25135 if (i != ((long int) (sizeof (ac__type_sizeof_))))
25136 return 1;
25137 fprintf (f, "%ld\n", i);
25139 else
25141 unsigned long int i = ulongval ();
25142 if (i != ((long int) (sizeof (ac__type_sizeof_))))
25143 return 1;
25144 fprintf (f, "%lu\n", i);
25146 return ferror (f) || fclose (f) != 0;
25149 return 0;
25151 _ACEOF
25152 rm -f conftest$ac_exeext
25153 if { (ac_try="$ac_link"
25154 case "(($ac_try" in
25155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25156 *) ac_try_echo=$ac_try;;
25157 esac
25158 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25159 (eval "$ac_link") 2>&5
25160 ac_status=$?
25161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25162 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25163 { (case "(($ac_try" in
25164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25165 *) ac_try_echo=$ac_try;;
25166 esac
25167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25168 (eval "$ac_try") 2>&5
25169 ac_status=$?
25170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25171 (exit $ac_status); }; }; then
25172 ac_cv_sizeof_wchar_t=`cat conftest.val`
25173 else
25174 echo "$as_me: program exited with status $ac_status" >&5
25175 echo "$as_me: failed program was:" >&5
25176 sed 's/^/| /' conftest.$ac_ext >&5
25178 ( exit $ac_status )
25179 if test "$ac_cv_type_wchar_t" = yes; then
25180 { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t)
25181 See \`config.log' for more details." >&5
25182 echo "$as_me: error: cannot compute sizeof (wchar_t)
25183 See \`config.log' for more details." >&2;}
25184 { (exit 77); exit 77; }; }
25185 else
25186 ac_cv_sizeof_wchar_t=0
25189 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25191 rm -f conftest.val
25193 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_wchar_t" >&5
25194 echo "${ECHO_T}$ac_cv_sizeof_wchar_t" >&6; }
25198 cat >>confdefs.h <<_ACEOF
25199 #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
25200 _ACEOF
25205 { echo "$as_me:$LINENO: checking for UCS-4 tcl" >&5
25206 echo $ECHO_N "checking for UCS-4 tcl... $ECHO_C" >&6; }
25207 have_ucs4_tcl=no
25208 cat >conftest.$ac_ext <<_ACEOF
25209 /* confdefs.h. */
25210 _ACEOF
25211 cat confdefs.h >>conftest.$ac_ext
25212 cat >>conftest.$ac_ext <<_ACEOF
25213 /* end confdefs.h. */
25215 #include <tcl.h>
25216 #if TCL_UTF_MAX != 6
25217 # error "NOT UCS4_TCL"
25218 #endif
25220 main ()
25224 return 0;
25226 _ACEOF
25227 rm -f conftest.$ac_objext
25228 if { (ac_try="$ac_compile"
25229 case "(($ac_try" in
25230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25231 *) ac_try_echo=$ac_try;;
25232 esac
25233 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25234 (eval "$ac_compile") 2>conftest.er1
25235 ac_status=$?
25236 grep -v '^ *+' conftest.er1 >conftest.err
25237 rm -f conftest.er1
25238 cat conftest.err >&5
25239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25240 (exit $ac_status); } && {
25241 test -z "$ac_c_werror_flag" ||
25242 test ! -s conftest.err
25243 } && test -s conftest.$ac_objext; then
25246 cat >>confdefs.h <<\_ACEOF
25247 #define HAVE_UCS4_TCL 1
25248 _ACEOF
25250 have_ucs4_tcl=yes
25252 else
25253 echo "$as_me: failed program was:" >&5
25254 sed 's/^/| /' conftest.$ac_ext >&5
25259 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25260 { echo "$as_me:$LINENO: result: $have_ucs4_tcl" >&5
25261 echo "${ECHO_T}$have_ucs4_tcl" >&6; }
25263 # check whether wchar_t is signed or not
25264 if test "$wchar_h" = yes
25265 then
25266 # check whether wchar_t is signed or not
25267 { echo "$as_me:$LINENO: checking whether wchar_t is signed" >&5
25268 echo $ECHO_N "checking whether wchar_t is signed... $ECHO_C" >&6; }
25269 if test "${ac_cv_wchar_t_signed+set}" = set; then
25270 echo $ECHO_N "(cached) $ECHO_C" >&6
25271 else
25273 if test "$cross_compiling" = yes; then
25274 ac_cv_wchar_t_signed=yes
25275 else
25276 cat >conftest.$ac_ext <<_ACEOF
25277 /* confdefs.h. */
25278 _ACEOF
25279 cat confdefs.h >>conftest.$ac_ext
25280 cat >>conftest.$ac_ext <<_ACEOF
25281 /* end confdefs.h. */
25283 #include <wchar.h>
25284 int main()
25286 /* Success: exit code 0 */
25287 exit((((wchar_t) -1) < ((wchar_t) 0)) ? 0 : 1);
25290 _ACEOF
25291 rm -f conftest$ac_exeext
25292 if { (ac_try="$ac_link"
25293 case "(($ac_try" in
25294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25295 *) ac_try_echo=$ac_try;;
25296 esac
25297 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25298 (eval "$ac_link") 2>&5
25299 ac_status=$?
25300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25301 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25302 { (case "(($ac_try" in
25303 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25304 *) ac_try_echo=$ac_try;;
25305 esac
25306 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25307 (eval "$ac_try") 2>&5
25308 ac_status=$?
25309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25310 (exit $ac_status); }; }; then
25311 ac_cv_wchar_t_signed=yes
25312 else
25313 echo "$as_me: program exited with status $ac_status" >&5
25314 echo "$as_me: failed program was:" >&5
25315 sed 's/^/| /' conftest.$ac_ext >&5
25317 ( exit $ac_status )
25318 ac_cv_wchar_t_signed=no
25320 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25326 { echo "$as_me:$LINENO: result: $ac_cv_wchar_t_signed" >&5
25327 echo "${ECHO_T}$ac_cv_wchar_t_signed" >&6; }
25330 { echo "$as_me:$LINENO: checking what type to use for unicode" >&5
25331 echo $ECHO_N "checking what type to use for unicode... $ECHO_C" >&6; }
25332 # Check whether --enable-unicode was given.
25333 if test "${enable_unicode+set}" = set; then
25334 enableval=$enable_unicode;
25335 else
25336 enable_unicode=yes
25340 if test $enable_unicode = yes
25341 then
25342 # Without any arguments, Py_UNICODE defaults to two-byte mode
25343 case "$have_ucs4_tcl" in
25344 yes) enable_unicode="ucs4"
25346 *) enable_unicode="ucs2"
25348 esac
25353 case "$enable_unicode" in
25354 ucs2) unicode_size="2"
25355 cat >>confdefs.h <<\_ACEOF
25356 #define Py_UNICODE_SIZE 2
25357 _ACEOF
25360 ucs4) unicode_size="4"
25361 cat >>confdefs.h <<\_ACEOF
25362 #define Py_UNICODE_SIZE 4
25363 _ACEOF
25366 esac
25372 if test "$enable_unicode" = "no"
25373 then
25374 UNICODE_OBJS=""
25375 { echo "$as_me:$LINENO: result: not used" >&5
25376 echo "${ECHO_T}not used" >&6; }
25377 else
25378 UNICODE_OBJS="Objects/unicodeobject.o Objects/unicodectype.o"
25380 cat >>confdefs.h <<\_ACEOF
25381 #define Py_USING_UNICODE 1
25382 _ACEOF
25385 # wchar_t is only usable if it maps to an unsigned type
25386 if test "$unicode_size" = "$ac_cv_sizeof_wchar_t" \
25387 -a "$ac_cv_wchar_t_signed" = "no"
25388 then
25389 PY_UNICODE_TYPE="wchar_t"
25391 cat >>confdefs.h <<\_ACEOF
25392 #define HAVE_USABLE_WCHAR_T 1
25393 _ACEOF
25395 cat >>confdefs.h <<\_ACEOF
25396 #define PY_UNICODE_TYPE wchar_t
25397 _ACEOF
25399 elif test "$ac_cv_sizeof_short" = "$unicode_size"
25400 then
25401 PY_UNICODE_TYPE="unsigned short"
25402 cat >>confdefs.h <<\_ACEOF
25403 #define PY_UNICODE_TYPE unsigned short
25404 _ACEOF
25406 elif test "$ac_cv_sizeof_long" = "$unicode_size"
25407 then
25408 PY_UNICODE_TYPE="unsigned long"
25409 cat >>confdefs.h <<\_ACEOF
25410 #define PY_UNICODE_TYPE unsigned long
25411 _ACEOF
25413 else
25414 PY_UNICODE_TYPE="no type found"
25416 { echo "$as_me:$LINENO: result: $PY_UNICODE_TYPE" >&5
25417 echo "${ECHO_T}$PY_UNICODE_TYPE" >&6; }
25420 # check for endianness
25421 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
25422 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
25423 if test "${ac_cv_c_bigendian+set}" = set; then
25424 echo $ECHO_N "(cached) $ECHO_C" >&6
25425 else
25426 # See if sys/param.h defines the BYTE_ORDER macro.
25427 cat >conftest.$ac_ext <<_ACEOF
25428 /* confdefs.h. */
25429 _ACEOF
25430 cat confdefs.h >>conftest.$ac_ext
25431 cat >>conftest.$ac_ext <<_ACEOF
25432 /* end confdefs.h. */
25433 #include <sys/types.h>
25434 #include <sys/param.h>
25437 main ()
25439 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
25440 && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
25441 bogus endian macros
25442 #endif
25445 return 0;
25447 _ACEOF
25448 rm -f conftest.$ac_objext
25449 if { (ac_try="$ac_compile"
25450 case "(($ac_try" in
25451 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25452 *) ac_try_echo=$ac_try;;
25453 esac
25454 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25455 (eval "$ac_compile") 2>conftest.er1
25456 ac_status=$?
25457 grep -v '^ *+' conftest.er1 >conftest.err
25458 rm -f conftest.er1
25459 cat conftest.err >&5
25460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25461 (exit $ac_status); } && {
25462 test -z "$ac_c_werror_flag" ||
25463 test ! -s conftest.err
25464 } && test -s conftest.$ac_objext; then
25465 # It does; now see whether it defined to BIG_ENDIAN or not.
25466 cat >conftest.$ac_ext <<_ACEOF
25467 /* confdefs.h. */
25468 _ACEOF
25469 cat confdefs.h >>conftest.$ac_ext
25470 cat >>conftest.$ac_ext <<_ACEOF
25471 /* end confdefs.h. */
25472 #include <sys/types.h>
25473 #include <sys/param.h>
25476 main ()
25478 #if BYTE_ORDER != BIG_ENDIAN
25479 not big endian
25480 #endif
25483 return 0;
25485 _ACEOF
25486 rm -f conftest.$ac_objext
25487 if { (ac_try="$ac_compile"
25488 case "(($ac_try" in
25489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25490 *) ac_try_echo=$ac_try;;
25491 esac
25492 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25493 (eval "$ac_compile") 2>conftest.er1
25494 ac_status=$?
25495 grep -v '^ *+' conftest.er1 >conftest.err
25496 rm -f conftest.er1
25497 cat conftest.err >&5
25498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25499 (exit $ac_status); } && {
25500 test -z "$ac_c_werror_flag" ||
25501 test ! -s conftest.err
25502 } && test -s conftest.$ac_objext; then
25503 ac_cv_c_bigendian=yes
25504 else
25505 echo "$as_me: failed program was:" >&5
25506 sed 's/^/| /' conftest.$ac_ext >&5
25508 ac_cv_c_bigendian=no
25511 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25512 else
25513 echo "$as_me: failed program was:" >&5
25514 sed 's/^/| /' conftest.$ac_ext >&5
25516 # It does not; compile a test program.
25517 if test "$cross_compiling" = yes; then
25518 # try to guess the endianness by grepping values into an object file
25519 ac_cv_c_bigendian=unknown
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 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
25527 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
25528 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
25529 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
25530 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
25531 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
25533 main ()
25535 _ascii (); _ebcdic ();
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 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
25558 ac_cv_c_bigendian=yes
25560 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
25561 if test "$ac_cv_c_bigendian" = unknown; then
25562 ac_cv_c_bigendian=no
25563 else
25564 # finding both strings is unlikely to happen, but who knows?
25565 ac_cv_c_bigendian=unknown
25568 else
25569 echo "$as_me: failed program was:" >&5
25570 sed 's/^/| /' conftest.$ac_ext >&5
25575 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25576 else
25577 cat >conftest.$ac_ext <<_ACEOF
25578 /* confdefs.h. */
25579 _ACEOF
25580 cat confdefs.h >>conftest.$ac_ext
25581 cat >>conftest.$ac_ext <<_ACEOF
25582 /* end confdefs.h. */
25583 $ac_includes_default
25585 main ()
25588 /* Are we little or big endian? From Harbison&Steele. */
25589 union
25591 long int l;
25592 char c[sizeof (long int)];
25593 } u;
25594 u.l = 1;
25595 return u.c[sizeof (long int) - 1] == 1;
25598 return 0;
25600 _ACEOF
25601 rm -f conftest$ac_exeext
25602 if { (ac_try="$ac_link"
25603 case "(($ac_try" in
25604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25605 *) ac_try_echo=$ac_try;;
25606 esac
25607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25608 (eval "$ac_link") 2>&5
25609 ac_status=$?
25610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25611 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25612 { (case "(($ac_try" in
25613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25614 *) ac_try_echo=$ac_try;;
25615 esac
25616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25617 (eval "$ac_try") 2>&5
25618 ac_status=$?
25619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25620 (exit $ac_status); }; }; then
25621 ac_cv_c_bigendian=no
25622 else
25623 echo "$as_me: program exited with status $ac_status" >&5
25624 echo "$as_me: failed program was:" >&5
25625 sed 's/^/| /' conftest.$ac_ext >&5
25627 ( exit $ac_status )
25628 ac_cv_c_bigendian=yes
25630 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25636 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25638 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
25639 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
25640 case $ac_cv_c_bigendian in
25641 yes)
25643 cat >>confdefs.h <<\_ACEOF
25644 #define WORDS_BIGENDIAN 1
25645 _ACEOF
25650 { { echo "$as_me:$LINENO: error: unknown endianness
25651 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
25652 echo "$as_me: error: unknown endianness
25653 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
25654 { (exit 1); exit 1; }; } ;;
25655 esac
25658 # Check whether right shifting a negative integer extends the sign bit
25659 # or fills with zeros (like the Cray J90, according to Tim Peters).
25660 { echo "$as_me:$LINENO: checking whether right shift extends the sign bit" >&5
25661 echo $ECHO_N "checking whether right shift extends the sign bit... $ECHO_C" >&6; }
25662 if test "${ac_cv_rshift_extends_sign+set}" = set; then
25663 echo $ECHO_N "(cached) $ECHO_C" >&6
25664 else
25666 if test "$cross_compiling" = yes; then
25667 ac_cv_rshift_extends_sign=yes
25668 else
25669 cat >conftest.$ac_ext <<_ACEOF
25670 /* confdefs.h. */
25671 _ACEOF
25672 cat confdefs.h >>conftest.$ac_ext
25673 cat >>conftest.$ac_ext <<_ACEOF
25674 /* end confdefs.h. */
25676 int main()
25678 exit(((-1)>>3 == -1) ? 0 : 1);
25681 _ACEOF
25682 rm -f conftest$ac_exeext
25683 if { (ac_try="$ac_link"
25684 case "(($ac_try" in
25685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25686 *) ac_try_echo=$ac_try;;
25687 esac
25688 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25689 (eval "$ac_link") 2>&5
25690 ac_status=$?
25691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25692 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25693 { (case "(($ac_try" in
25694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25695 *) ac_try_echo=$ac_try;;
25696 esac
25697 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25698 (eval "$ac_try") 2>&5
25699 ac_status=$?
25700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25701 (exit $ac_status); }; }; then
25702 ac_cv_rshift_extends_sign=yes
25703 else
25704 echo "$as_me: program exited with status $ac_status" >&5
25705 echo "$as_me: failed program was:" >&5
25706 sed 's/^/| /' conftest.$ac_ext >&5
25708 ( exit $ac_status )
25709 ac_cv_rshift_extends_sign=no
25711 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25717 { echo "$as_me:$LINENO: result: $ac_cv_rshift_extends_sign" >&5
25718 echo "${ECHO_T}$ac_cv_rshift_extends_sign" >&6; }
25719 if test "$ac_cv_rshift_extends_sign" = no
25720 then
25722 cat >>confdefs.h <<\_ACEOF
25723 #define SIGNED_RIGHT_SHIFT_ZERO_FILLS 1
25724 _ACEOF
25728 # check for getc_unlocked and related locking functions
25729 { echo "$as_me:$LINENO: checking for getc_unlocked() and friends" >&5
25730 echo $ECHO_N "checking for getc_unlocked() and friends... $ECHO_C" >&6; }
25731 if test "${ac_cv_have_getc_unlocked+set}" = set; then
25732 echo $ECHO_N "(cached) $ECHO_C" >&6
25733 else
25735 cat >conftest.$ac_ext <<_ACEOF
25736 /* confdefs.h. */
25737 _ACEOF
25738 cat confdefs.h >>conftest.$ac_ext
25739 cat >>conftest.$ac_ext <<_ACEOF
25740 /* end confdefs.h. */
25741 #include <stdio.h>
25743 main ()
25746 FILE *f = fopen("/dev/null", "r");
25747 flockfile(f);
25748 getc_unlocked(f);
25749 funlockfile(f);
25752 return 0;
25754 _ACEOF
25755 rm -f conftest.$ac_objext conftest$ac_exeext
25756 if { (ac_try="$ac_link"
25757 case "(($ac_try" in
25758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25759 *) ac_try_echo=$ac_try;;
25760 esac
25761 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25762 (eval "$ac_link") 2>conftest.er1
25763 ac_status=$?
25764 grep -v '^ *+' conftest.er1 >conftest.err
25765 rm -f conftest.er1
25766 cat conftest.err >&5
25767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25768 (exit $ac_status); } && {
25769 test -z "$ac_c_werror_flag" ||
25770 test ! -s conftest.err
25771 } && test -s conftest$ac_exeext &&
25772 $as_test_x conftest$ac_exeext; then
25773 ac_cv_have_getc_unlocked=yes
25774 else
25775 echo "$as_me: failed program was:" >&5
25776 sed 's/^/| /' conftest.$ac_ext >&5
25778 ac_cv_have_getc_unlocked=no
25781 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25782 conftest$ac_exeext conftest.$ac_ext
25785 { echo "$as_me:$LINENO: result: $ac_cv_have_getc_unlocked" >&5
25786 echo "${ECHO_T}$ac_cv_have_getc_unlocked" >&6; }
25787 if test "$ac_cv_have_getc_unlocked" = yes
25788 then
25790 cat >>confdefs.h <<\_ACEOF
25791 #define HAVE_GETC_UNLOCKED 1
25792 _ACEOF
25796 # check where readline lives
25797 # save the value of LIBS so we don't actually link Python with readline
25798 LIBS_no_readline=$LIBS
25800 # On some systems we need to link readline to a termcap compatible
25801 # library. NOTE: Keep the precedence of listed libraries synchronised
25802 # with setup.py.
25803 py_cv_lib_readline=no
25804 { echo "$as_me:$LINENO: checking how to link readline libs" >&5
25805 echo $ECHO_N "checking how to link readline libs... $ECHO_C" >&6; }
25806 for py_libtermcap in "" ncursesw ncurses curses termcap; do
25807 if test -z "$py_libtermcap"; then
25808 READLINE_LIBS="-lreadline"
25809 else
25810 READLINE_LIBS="-lreadline -l$py_libtermcap"
25812 LIBS="$READLINE_LIBS $LIBS_no_readline"
25813 cat >conftest.$ac_ext <<_ACEOF
25814 /* confdefs.h. */
25815 _ACEOF
25816 cat confdefs.h >>conftest.$ac_ext
25817 cat >>conftest.$ac_ext <<_ACEOF
25818 /* end confdefs.h. */
25820 /* Override any GCC internal prototype to avoid an error.
25821 Use char because int might match the return type of a GCC
25822 builtin and then its argument prototype would still apply. */
25823 #ifdef __cplusplus
25824 extern "C"
25825 #endif
25826 char readline ();
25828 main ()
25830 return readline ();
25832 return 0;
25834 _ACEOF
25835 rm -f conftest.$ac_objext conftest$ac_exeext
25836 if { (ac_try="$ac_link"
25837 case "(($ac_try" in
25838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25839 *) ac_try_echo=$ac_try;;
25840 esac
25841 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25842 (eval "$ac_link") 2>conftest.er1
25843 ac_status=$?
25844 grep -v '^ *+' conftest.er1 >conftest.err
25845 rm -f conftest.er1
25846 cat conftest.err >&5
25847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25848 (exit $ac_status); } && {
25849 test -z "$ac_c_werror_flag" ||
25850 test ! -s conftest.err
25851 } && test -s conftest$ac_exeext &&
25852 $as_test_x conftest$ac_exeext; then
25853 py_cv_lib_readline=yes
25854 else
25855 echo "$as_me: failed program was:" >&5
25856 sed 's/^/| /' conftest.$ac_ext >&5
25861 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25862 conftest$ac_exeext conftest.$ac_ext
25863 if test $py_cv_lib_readline = yes; then
25864 break
25866 done
25867 # Uncomment this line if you want to use READINE_LIBS in Makefile or scripts
25868 #AC_SUBST([READLINE_LIBS])
25869 if test $py_cv_lib_readline = no; then
25870 { echo "$as_me:$LINENO: result: none" >&5
25871 echo "${ECHO_T}none" >&6; }
25872 else
25873 { echo "$as_me:$LINENO: result: $READLINE_LIBS" >&5
25874 echo "${ECHO_T}$READLINE_LIBS" >&6; }
25876 cat >>confdefs.h <<\_ACEOF
25877 #define HAVE_LIBREADLINE 1
25878 _ACEOF
25882 # check for readline 2.1
25883 { echo "$as_me:$LINENO: checking for rl_callback_handler_install in -lreadline" >&5
25884 echo $ECHO_N "checking for rl_callback_handler_install in -lreadline... $ECHO_C" >&6; }
25885 if test "${ac_cv_lib_readline_rl_callback_handler_install+set}" = set; then
25886 echo $ECHO_N "(cached) $ECHO_C" >&6
25887 else
25888 ac_check_lib_save_LIBS=$LIBS
25889 LIBS="-lreadline $READLINE_LIBS $LIBS"
25890 cat >conftest.$ac_ext <<_ACEOF
25891 /* confdefs.h. */
25892 _ACEOF
25893 cat confdefs.h >>conftest.$ac_ext
25894 cat >>conftest.$ac_ext <<_ACEOF
25895 /* end confdefs.h. */
25897 /* Override any GCC internal prototype to avoid an error.
25898 Use char because int might match the return type of a GCC
25899 builtin and then its argument prototype would still apply. */
25900 #ifdef __cplusplus
25901 extern "C"
25902 #endif
25903 char rl_callback_handler_install ();
25905 main ()
25907 return rl_callback_handler_install ();
25909 return 0;
25911 _ACEOF
25912 rm -f conftest.$ac_objext conftest$ac_exeext
25913 if { (ac_try="$ac_link"
25914 case "(($ac_try" in
25915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25916 *) ac_try_echo=$ac_try;;
25917 esac
25918 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25919 (eval "$ac_link") 2>conftest.er1
25920 ac_status=$?
25921 grep -v '^ *+' conftest.er1 >conftest.err
25922 rm -f conftest.er1
25923 cat conftest.err >&5
25924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25925 (exit $ac_status); } && {
25926 test -z "$ac_c_werror_flag" ||
25927 test ! -s conftest.err
25928 } && test -s conftest$ac_exeext &&
25929 $as_test_x conftest$ac_exeext; then
25930 ac_cv_lib_readline_rl_callback_handler_install=yes
25931 else
25932 echo "$as_me: failed program was:" >&5
25933 sed 's/^/| /' conftest.$ac_ext >&5
25935 ac_cv_lib_readline_rl_callback_handler_install=no
25938 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25939 conftest$ac_exeext conftest.$ac_ext
25940 LIBS=$ac_check_lib_save_LIBS
25942 { echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_callback_handler_install" >&5
25943 echo "${ECHO_T}$ac_cv_lib_readline_rl_callback_handler_install" >&6; }
25944 if test $ac_cv_lib_readline_rl_callback_handler_install = yes; then
25946 cat >>confdefs.h <<\_ACEOF
25947 #define HAVE_RL_CALLBACK 1
25948 _ACEOF
25953 # check for readline 2.2
25954 cat >conftest.$ac_ext <<_ACEOF
25955 /* confdefs.h. */
25956 _ACEOF
25957 cat confdefs.h >>conftest.$ac_ext
25958 cat >>conftest.$ac_ext <<_ACEOF
25959 /* end confdefs.h. */
25960 #include <readline/readline.h>
25961 _ACEOF
25962 if { (ac_try="$ac_cpp conftest.$ac_ext"
25963 case "(($ac_try" in
25964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25965 *) ac_try_echo=$ac_try;;
25966 esac
25967 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25968 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25969 ac_status=$?
25970 grep -v '^ *+' conftest.er1 >conftest.err
25971 rm -f conftest.er1
25972 cat conftest.err >&5
25973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25974 (exit $ac_status); } >/dev/null && {
25975 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25976 test ! -s conftest.err
25977 }; then
25978 have_readline=yes
25979 else
25980 echo "$as_me: failed program was:" >&5
25981 sed 's/^/| /' conftest.$ac_ext >&5
25983 have_readline=no
25986 rm -f conftest.err conftest.$ac_ext
25987 if test $have_readline = yes
25988 then
25989 cat >conftest.$ac_ext <<_ACEOF
25990 /* confdefs.h. */
25991 _ACEOF
25992 cat confdefs.h >>conftest.$ac_ext
25993 cat >>conftest.$ac_ext <<_ACEOF
25994 /* end confdefs.h. */
25995 #include <readline/readline.h>
25997 _ACEOF
25998 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25999 $EGREP "extern int rl_completion_append_character;" >/dev/null 2>&1; then
26001 cat >>confdefs.h <<\_ACEOF
26002 #define HAVE_RL_COMPLETION_APPEND_CHARACTER 1
26003 _ACEOF
26006 rm -f -r conftest*
26008 cat >conftest.$ac_ext <<_ACEOF
26009 /* confdefs.h. */
26010 _ACEOF
26011 cat confdefs.h >>conftest.$ac_ext
26012 cat >>conftest.$ac_ext <<_ACEOF
26013 /* end confdefs.h. */
26014 #include <readline/readline.h>
26016 _ACEOF
26017 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26018 $EGREP "extern int rl_completion_suppress_append;" >/dev/null 2>&1; then
26020 cat >>confdefs.h <<\_ACEOF
26021 #define HAVE_RL_COMPLETION_SUPPRESS_APPEND 1
26022 _ACEOF
26025 rm -f -r conftest*
26029 # check for readline 4.0
26030 { echo "$as_me:$LINENO: checking for rl_pre_input_hook in -lreadline" >&5
26031 echo $ECHO_N "checking for rl_pre_input_hook in -lreadline... $ECHO_C" >&6; }
26032 if test "${ac_cv_lib_readline_rl_pre_input_hook+set}" = set; then
26033 echo $ECHO_N "(cached) $ECHO_C" >&6
26034 else
26035 ac_check_lib_save_LIBS=$LIBS
26036 LIBS="-lreadline $READLINE_LIBS $LIBS"
26037 cat >conftest.$ac_ext <<_ACEOF
26038 /* confdefs.h. */
26039 _ACEOF
26040 cat confdefs.h >>conftest.$ac_ext
26041 cat >>conftest.$ac_ext <<_ACEOF
26042 /* end confdefs.h. */
26044 /* Override any GCC internal prototype to avoid an error.
26045 Use char because int might match the return type of a GCC
26046 builtin and then its argument prototype would still apply. */
26047 #ifdef __cplusplus
26048 extern "C"
26049 #endif
26050 char rl_pre_input_hook ();
26052 main ()
26054 return rl_pre_input_hook ();
26056 return 0;
26058 _ACEOF
26059 rm -f conftest.$ac_objext conftest$ac_exeext
26060 if { (ac_try="$ac_link"
26061 case "(($ac_try" in
26062 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26063 *) ac_try_echo=$ac_try;;
26064 esac
26065 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26066 (eval "$ac_link") 2>conftest.er1
26067 ac_status=$?
26068 grep -v '^ *+' conftest.er1 >conftest.err
26069 rm -f conftest.er1
26070 cat conftest.err >&5
26071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26072 (exit $ac_status); } && {
26073 test -z "$ac_c_werror_flag" ||
26074 test ! -s conftest.err
26075 } && test -s conftest$ac_exeext &&
26076 $as_test_x conftest$ac_exeext; then
26077 ac_cv_lib_readline_rl_pre_input_hook=yes
26078 else
26079 echo "$as_me: failed program was:" >&5
26080 sed 's/^/| /' conftest.$ac_ext >&5
26082 ac_cv_lib_readline_rl_pre_input_hook=no
26085 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26086 conftest$ac_exeext conftest.$ac_ext
26087 LIBS=$ac_check_lib_save_LIBS
26089 { echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_pre_input_hook" >&5
26090 echo "${ECHO_T}$ac_cv_lib_readline_rl_pre_input_hook" >&6; }
26091 if test $ac_cv_lib_readline_rl_pre_input_hook = yes; then
26093 cat >>confdefs.h <<\_ACEOF
26094 #define HAVE_RL_PRE_INPUT_HOOK 1
26095 _ACEOF
26100 # also in 4.0
26101 { echo "$as_me:$LINENO: checking for rl_completion_display_matches_hook in -lreadline" >&5
26102 echo $ECHO_N "checking for rl_completion_display_matches_hook in -lreadline... $ECHO_C" >&6; }
26103 if test "${ac_cv_lib_readline_rl_completion_display_matches_hook+set}" = set; then
26104 echo $ECHO_N "(cached) $ECHO_C" >&6
26105 else
26106 ac_check_lib_save_LIBS=$LIBS
26107 LIBS="-lreadline $READLINE_LIBS $LIBS"
26108 cat >conftest.$ac_ext <<_ACEOF
26109 /* confdefs.h. */
26110 _ACEOF
26111 cat confdefs.h >>conftest.$ac_ext
26112 cat >>conftest.$ac_ext <<_ACEOF
26113 /* end confdefs.h. */
26115 /* Override any GCC internal prototype to avoid an error.
26116 Use char because int might match the return type of a GCC
26117 builtin and then its argument prototype would still apply. */
26118 #ifdef __cplusplus
26119 extern "C"
26120 #endif
26121 char rl_completion_display_matches_hook ();
26123 main ()
26125 return rl_completion_display_matches_hook ();
26127 return 0;
26129 _ACEOF
26130 rm -f conftest.$ac_objext conftest$ac_exeext
26131 if { (ac_try="$ac_link"
26132 case "(($ac_try" in
26133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26134 *) ac_try_echo=$ac_try;;
26135 esac
26136 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26137 (eval "$ac_link") 2>conftest.er1
26138 ac_status=$?
26139 grep -v '^ *+' conftest.er1 >conftest.err
26140 rm -f conftest.er1
26141 cat conftest.err >&5
26142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26143 (exit $ac_status); } && {
26144 test -z "$ac_c_werror_flag" ||
26145 test ! -s conftest.err
26146 } && test -s conftest$ac_exeext &&
26147 $as_test_x conftest$ac_exeext; then
26148 ac_cv_lib_readline_rl_completion_display_matches_hook=yes
26149 else
26150 echo "$as_me: failed program was:" >&5
26151 sed 's/^/| /' conftest.$ac_ext >&5
26153 ac_cv_lib_readline_rl_completion_display_matches_hook=no
26156 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26157 conftest$ac_exeext conftest.$ac_ext
26158 LIBS=$ac_check_lib_save_LIBS
26160 { echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_completion_display_matches_hook" >&5
26161 echo "${ECHO_T}$ac_cv_lib_readline_rl_completion_display_matches_hook" >&6; }
26162 if test $ac_cv_lib_readline_rl_completion_display_matches_hook = yes; then
26164 cat >>confdefs.h <<\_ACEOF
26165 #define HAVE_RL_COMPLETION_DISPLAY_MATCHES_HOOK 1
26166 _ACEOF
26171 # check for readline 4.2
26172 { echo "$as_me:$LINENO: checking for rl_completion_matches in -lreadline" >&5
26173 echo $ECHO_N "checking for rl_completion_matches in -lreadline... $ECHO_C" >&6; }
26174 if test "${ac_cv_lib_readline_rl_completion_matches+set}" = set; then
26175 echo $ECHO_N "(cached) $ECHO_C" >&6
26176 else
26177 ac_check_lib_save_LIBS=$LIBS
26178 LIBS="-lreadline $READLINE_LIBS $LIBS"
26179 cat >conftest.$ac_ext <<_ACEOF
26180 /* confdefs.h. */
26181 _ACEOF
26182 cat confdefs.h >>conftest.$ac_ext
26183 cat >>conftest.$ac_ext <<_ACEOF
26184 /* end confdefs.h. */
26186 /* Override any GCC internal prototype to avoid an error.
26187 Use char because int might match the return type of a GCC
26188 builtin and then its argument prototype would still apply. */
26189 #ifdef __cplusplus
26190 extern "C"
26191 #endif
26192 char rl_completion_matches ();
26194 main ()
26196 return rl_completion_matches ();
26198 return 0;
26200 _ACEOF
26201 rm -f conftest.$ac_objext conftest$ac_exeext
26202 if { (ac_try="$ac_link"
26203 case "(($ac_try" in
26204 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26205 *) ac_try_echo=$ac_try;;
26206 esac
26207 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26208 (eval "$ac_link") 2>conftest.er1
26209 ac_status=$?
26210 grep -v '^ *+' conftest.er1 >conftest.err
26211 rm -f conftest.er1
26212 cat conftest.err >&5
26213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26214 (exit $ac_status); } && {
26215 test -z "$ac_c_werror_flag" ||
26216 test ! -s conftest.err
26217 } && test -s conftest$ac_exeext &&
26218 $as_test_x conftest$ac_exeext; then
26219 ac_cv_lib_readline_rl_completion_matches=yes
26220 else
26221 echo "$as_me: failed program was:" >&5
26222 sed 's/^/| /' conftest.$ac_ext >&5
26224 ac_cv_lib_readline_rl_completion_matches=no
26227 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26228 conftest$ac_exeext conftest.$ac_ext
26229 LIBS=$ac_check_lib_save_LIBS
26231 { echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_completion_matches" >&5
26232 echo "${ECHO_T}$ac_cv_lib_readline_rl_completion_matches" >&6; }
26233 if test $ac_cv_lib_readline_rl_completion_matches = yes; then
26235 cat >>confdefs.h <<\_ACEOF
26236 #define HAVE_RL_COMPLETION_MATCHES 1
26237 _ACEOF
26242 # also in readline 4.2
26243 cat >conftest.$ac_ext <<_ACEOF
26244 /* confdefs.h. */
26245 _ACEOF
26246 cat confdefs.h >>conftest.$ac_ext
26247 cat >>conftest.$ac_ext <<_ACEOF
26248 /* end confdefs.h. */
26249 #include <readline/readline.h>
26250 _ACEOF
26251 if { (ac_try="$ac_cpp conftest.$ac_ext"
26252 case "(($ac_try" in
26253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26254 *) ac_try_echo=$ac_try;;
26255 esac
26256 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26257 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26258 ac_status=$?
26259 grep -v '^ *+' conftest.er1 >conftest.err
26260 rm -f conftest.er1
26261 cat conftest.err >&5
26262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26263 (exit $ac_status); } >/dev/null && {
26264 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26265 test ! -s conftest.err
26266 }; then
26267 have_readline=yes
26268 else
26269 echo "$as_me: failed program was:" >&5
26270 sed 's/^/| /' conftest.$ac_ext >&5
26272 have_readline=no
26275 rm -f conftest.err conftest.$ac_ext
26276 if test $have_readline = yes
26277 then
26278 cat >conftest.$ac_ext <<_ACEOF
26279 /* confdefs.h. */
26280 _ACEOF
26281 cat confdefs.h >>conftest.$ac_ext
26282 cat >>conftest.$ac_ext <<_ACEOF
26283 /* end confdefs.h. */
26284 #include <readline/readline.h>
26286 _ACEOF
26287 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26288 $EGREP "extern int rl_catch_signals;" >/dev/null 2>&1; then
26290 cat >>confdefs.h <<\_ACEOF
26291 #define HAVE_RL_CATCH_SIGNAL 1
26292 _ACEOF
26295 rm -f -r conftest*
26299 # End of readline checks: restore LIBS
26300 LIBS=$LIBS_no_readline
26302 { echo "$as_me:$LINENO: checking for broken nice()" >&5
26303 echo $ECHO_N "checking for broken nice()... $ECHO_C" >&6; }
26304 if test "${ac_cv_broken_nice+set}" = set; then
26305 echo $ECHO_N "(cached) $ECHO_C" >&6
26306 else
26308 if test "$cross_compiling" = yes; then
26309 ac_cv_broken_nice=no
26310 else
26311 cat >conftest.$ac_ext <<_ACEOF
26312 /* confdefs.h. */
26313 _ACEOF
26314 cat confdefs.h >>conftest.$ac_ext
26315 cat >>conftest.$ac_ext <<_ACEOF
26316 /* end confdefs.h. */
26318 int main()
26320 int val1 = nice(1);
26321 if (val1 != -1 && val1 == nice(2))
26322 exit(0);
26323 exit(1);
26326 _ACEOF
26327 rm -f conftest$ac_exeext
26328 if { (ac_try="$ac_link"
26329 case "(($ac_try" in
26330 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26331 *) ac_try_echo=$ac_try;;
26332 esac
26333 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26334 (eval "$ac_link") 2>&5
26335 ac_status=$?
26336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26337 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26338 { (case "(($ac_try" in
26339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26340 *) ac_try_echo=$ac_try;;
26341 esac
26342 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26343 (eval "$ac_try") 2>&5
26344 ac_status=$?
26345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26346 (exit $ac_status); }; }; then
26347 ac_cv_broken_nice=yes
26348 else
26349 echo "$as_me: program exited with status $ac_status" >&5
26350 echo "$as_me: failed program was:" >&5
26351 sed 's/^/| /' conftest.$ac_ext >&5
26353 ( exit $ac_status )
26354 ac_cv_broken_nice=no
26356 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26362 { echo "$as_me:$LINENO: result: $ac_cv_broken_nice" >&5
26363 echo "${ECHO_T}$ac_cv_broken_nice" >&6; }
26364 if test "$ac_cv_broken_nice" = yes
26365 then
26367 cat >>confdefs.h <<\_ACEOF
26368 #define HAVE_BROKEN_NICE 1
26369 _ACEOF
26373 { echo "$as_me:$LINENO: checking for broken poll()" >&5
26374 echo $ECHO_N "checking for broken poll()... $ECHO_C" >&6; }
26375 if test "${ac_cv_broken_poll+set}" = set; then
26376 echo $ECHO_N "(cached) $ECHO_C" >&6
26377 else
26378 if test "$cross_compiling" = yes; then
26379 ac_cv_broken_poll=no
26380 else
26381 cat >conftest.$ac_ext <<_ACEOF
26382 /* confdefs.h. */
26383 _ACEOF
26384 cat confdefs.h >>conftest.$ac_ext
26385 cat >>conftest.$ac_ext <<_ACEOF
26386 /* end confdefs.h. */
26388 #include <poll.h>
26390 int main()
26392 struct pollfd poll_struct = { 42, POLLIN|POLLPRI|POLLOUT, 0 };
26393 int poll_test;
26395 close (42);
26397 poll_test = poll(&poll_struct, 1, 0);
26398 if (poll_test < 0)
26399 return 0;
26400 else if (poll_test == 0 && poll_struct.revents != POLLNVAL)
26401 return 0;
26402 else
26403 return 1;
26406 _ACEOF
26407 rm -f conftest$ac_exeext
26408 if { (ac_try="$ac_link"
26409 case "(($ac_try" in
26410 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26411 *) ac_try_echo=$ac_try;;
26412 esac
26413 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26414 (eval "$ac_link") 2>&5
26415 ac_status=$?
26416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26417 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26418 { (case "(($ac_try" in
26419 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26420 *) ac_try_echo=$ac_try;;
26421 esac
26422 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26423 (eval "$ac_try") 2>&5
26424 ac_status=$?
26425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26426 (exit $ac_status); }; }; then
26427 ac_cv_broken_poll=yes
26428 else
26429 echo "$as_me: program exited with status $ac_status" >&5
26430 echo "$as_me: failed program was:" >&5
26431 sed 's/^/| /' conftest.$ac_ext >&5
26433 ( exit $ac_status )
26434 ac_cv_broken_poll=no
26436 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26442 { echo "$as_me:$LINENO: result: $ac_cv_broken_poll" >&5
26443 echo "${ECHO_T}$ac_cv_broken_poll" >&6; }
26444 if test "$ac_cv_broken_poll" = yes
26445 then
26447 cat >>confdefs.h <<\_ACEOF
26448 #define HAVE_BROKEN_POLL 1
26449 _ACEOF
26453 # Before we can test tzset, we need to check if struct tm has a tm_zone
26454 # (which is not required by ISO C or UNIX spec) and/or if we support
26455 # tzname[]
26456 { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
26457 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
26458 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
26459 echo $ECHO_N "(cached) $ECHO_C" >&6
26460 else
26461 cat >conftest.$ac_ext <<_ACEOF
26462 /* confdefs.h. */
26463 _ACEOF
26464 cat confdefs.h >>conftest.$ac_ext
26465 cat >>conftest.$ac_ext <<_ACEOF
26466 /* end confdefs.h. */
26467 #include <sys/types.h>
26468 #include <$ac_cv_struct_tm>
26472 main ()
26474 static struct tm ac_aggr;
26475 if (ac_aggr.tm_zone)
26476 return 0;
26478 return 0;
26480 _ACEOF
26481 rm -f conftest.$ac_objext
26482 if { (ac_try="$ac_compile"
26483 case "(($ac_try" in
26484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26485 *) ac_try_echo=$ac_try;;
26486 esac
26487 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26488 (eval "$ac_compile") 2>conftest.er1
26489 ac_status=$?
26490 grep -v '^ *+' conftest.er1 >conftest.err
26491 rm -f conftest.er1
26492 cat conftest.err >&5
26493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26494 (exit $ac_status); } && {
26495 test -z "$ac_c_werror_flag" ||
26496 test ! -s conftest.err
26497 } && test -s conftest.$ac_objext; then
26498 ac_cv_member_struct_tm_tm_zone=yes
26499 else
26500 echo "$as_me: failed program was:" >&5
26501 sed 's/^/| /' conftest.$ac_ext >&5
26503 cat >conftest.$ac_ext <<_ACEOF
26504 /* confdefs.h. */
26505 _ACEOF
26506 cat confdefs.h >>conftest.$ac_ext
26507 cat >>conftest.$ac_ext <<_ACEOF
26508 /* end confdefs.h. */
26509 #include <sys/types.h>
26510 #include <$ac_cv_struct_tm>
26514 main ()
26516 static struct tm ac_aggr;
26517 if (sizeof ac_aggr.tm_zone)
26518 return 0;
26520 return 0;
26522 _ACEOF
26523 rm -f conftest.$ac_objext
26524 if { (ac_try="$ac_compile"
26525 case "(($ac_try" in
26526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26527 *) ac_try_echo=$ac_try;;
26528 esac
26529 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26530 (eval "$ac_compile") 2>conftest.er1
26531 ac_status=$?
26532 grep -v '^ *+' conftest.er1 >conftest.err
26533 rm -f conftest.er1
26534 cat conftest.err >&5
26535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26536 (exit $ac_status); } && {
26537 test -z "$ac_c_werror_flag" ||
26538 test ! -s conftest.err
26539 } && test -s conftest.$ac_objext; then
26540 ac_cv_member_struct_tm_tm_zone=yes
26541 else
26542 echo "$as_me: failed program was:" >&5
26543 sed 's/^/| /' conftest.$ac_ext >&5
26545 ac_cv_member_struct_tm_tm_zone=no
26548 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26551 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26553 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
26554 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
26555 if test $ac_cv_member_struct_tm_tm_zone = yes; then
26557 cat >>confdefs.h <<_ACEOF
26558 #define HAVE_STRUCT_TM_TM_ZONE 1
26559 _ACEOF
26564 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
26566 cat >>confdefs.h <<\_ACEOF
26567 #define HAVE_TM_ZONE 1
26568 _ACEOF
26570 else
26571 { echo "$as_me:$LINENO: checking whether tzname is declared" >&5
26572 echo $ECHO_N "checking whether tzname is declared... $ECHO_C" >&6; }
26573 if test "${ac_cv_have_decl_tzname+set}" = set; then
26574 echo $ECHO_N "(cached) $ECHO_C" >&6
26575 else
26576 cat >conftest.$ac_ext <<_ACEOF
26577 /* confdefs.h. */
26578 _ACEOF
26579 cat confdefs.h >>conftest.$ac_ext
26580 cat >>conftest.$ac_ext <<_ACEOF
26581 /* end confdefs.h. */
26582 #include <time.h>
26585 main ()
26587 #ifndef tzname
26588 (void) tzname;
26589 #endif
26592 return 0;
26594 _ACEOF
26595 rm -f conftest.$ac_objext
26596 if { (ac_try="$ac_compile"
26597 case "(($ac_try" in
26598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26599 *) ac_try_echo=$ac_try;;
26600 esac
26601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26602 (eval "$ac_compile") 2>conftest.er1
26603 ac_status=$?
26604 grep -v '^ *+' conftest.er1 >conftest.err
26605 rm -f conftest.er1
26606 cat conftest.err >&5
26607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26608 (exit $ac_status); } && {
26609 test -z "$ac_c_werror_flag" ||
26610 test ! -s conftest.err
26611 } && test -s conftest.$ac_objext; then
26612 ac_cv_have_decl_tzname=yes
26613 else
26614 echo "$as_me: failed program was:" >&5
26615 sed 's/^/| /' conftest.$ac_ext >&5
26617 ac_cv_have_decl_tzname=no
26620 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26622 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
26623 echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; }
26624 if test $ac_cv_have_decl_tzname = yes; then
26626 cat >>confdefs.h <<_ACEOF
26627 #define HAVE_DECL_TZNAME 1
26628 _ACEOF
26631 else
26632 cat >>confdefs.h <<_ACEOF
26633 #define HAVE_DECL_TZNAME 0
26634 _ACEOF
26640 { echo "$as_me:$LINENO: checking for tzname" >&5
26641 echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
26642 if test "${ac_cv_var_tzname+set}" = set; then
26643 echo $ECHO_N "(cached) $ECHO_C" >&6
26644 else
26645 cat >conftest.$ac_ext <<_ACEOF
26646 /* confdefs.h. */
26647 _ACEOF
26648 cat confdefs.h >>conftest.$ac_ext
26649 cat >>conftest.$ac_ext <<_ACEOF
26650 /* end confdefs.h. */
26651 #include <time.h>
26652 #if !HAVE_DECL_TZNAME
26653 extern char *tzname[];
26654 #endif
26657 main ()
26659 return tzname[0][0];
26661 return 0;
26663 _ACEOF
26664 rm -f conftest.$ac_objext conftest$ac_exeext
26665 if { (ac_try="$ac_link"
26666 case "(($ac_try" in
26667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26668 *) ac_try_echo=$ac_try;;
26669 esac
26670 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26671 (eval "$ac_link") 2>conftest.er1
26672 ac_status=$?
26673 grep -v '^ *+' conftest.er1 >conftest.err
26674 rm -f conftest.er1
26675 cat conftest.err >&5
26676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26677 (exit $ac_status); } && {
26678 test -z "$ac_c_werror_flag" ||
26679 test ! -s conftest.err
26680 } && test -s conftest$ac_exeext &&
26681 $as_test_x conftest$ac_exeext; then
26682 ac_cv_var_tzname=yes
26683 else
26684 echo "$as_me: failed program was:" >&5
26685 sed 's/^/| /' conftest.$ac_ext >&5
26687 ac_cv_var_tzname=no
26690 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26691 conftest$ac_exeext conftest.$ac_ext
26693 { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
26694 echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
26695 if test $ac_cv_var_tzname = yes; then
26697 cat >>confdefs.h <<\_ACEOF
26698 #define HAVE_TZNAME 1
26699 _ACEOF
26705 # check tzset(3) exists and works like we expect it to
26706 { echo "$as_me:$LINENO: checking for working tzset()" >&5
26707 echo $ECHO_N "checking for working tzset()... $ECHO_C" >&6; }
26708 if test "${ac_cv_working_tzset+set}" = set; then
26709 echo $ECHO_N "(cached) $ECHO_C" >&6
26710 else
26712 if test "$cross_compiling" = yes; then
26713 ac_cv_working_tzset=no
26714 else
26715 cat >conftest.$ac_ext <<_ACEOF
26716 /* confdefs.h. */
26717 _ACEOF
26718 cat confdefs.h >>conftest.$ac_ext
26719 cat >>conftest.$ac_ext <<_ACEOF
26720 /* end confdefs.h. */
26722 #include <stdlib.h>
26723 #include <time.h>
26724 #include <string.h>
26726 #if HAVE_TZNAME
26727 extern char *tzname[];
26728 #endif
26730 int main()
26732 /* Note that we need to ensure that not only does tzset(3)
26733 do 'something' with localtime, but it works as documented
26734 in the library reference and as expected by the test suite.
26735 This includes making sure that tzname is set properly if
26736 tm->tm_zone does not exist since it is the alternative way
26737 of getting timezone info.
26739 Red Hat 6.2 doesn't understand the southern hemisphere
26740 after New Year's Day.
26743 time_t groundhogday = 1044144000; /* GMT-based */
26744 time_t midyear = groundhogday + (365 * 24 * 3600 / 2);
26746 putenv("TZ=UTC+0");
26747 tzset();
26748 if (localtime(&groundhogday)->tm_hour != 0)
26749 exit(1);
26750 #if HAVE_TZNAME
26751 /* For UTC, tzname[1] is sometimes "", sometimes " " */
26752 if (strcmp(tzname[0], "UTC") ||
26753 (tzname[1][0] != 0 && tzname[1][0] != ' '))
26754 exit(1);
26755 #endif
26757 putenv("TZ=EST+5EDT,M4.1.0,M10.5.0");
26758 tzset();
26759 if (localtime(&groundhogday)->tm_hour != 19)
26760 exit(1);
26761 #if HAVE_TZNAME
26762 if (strcmp(tzname[0], "EST") || strcmp(tzname[1], "EDT"))
26763 exit(1);
26764 #endif
26766 putenv("TZ=AEST-10AEDT-11,M10.5.0,M3.5.0");
26767 tzset();
26768 if (localtime(&groundhogday)->tm_hour != 11)
26769 exit(1);
26770 #if HAVE_TZNAME
26771 if (strcmp(tzname[0], "AEST") || strcmp(tzname[1], "AEDT"))
26772 exit(1);
26773 #endif
26775 #if HAVE_STRUCT_TM_TM_ZONE
26776 if (strcmp(localtime(&groundhogday)->tm_zone, "AEDT"))
26777 exit(1);
26778 if (strcmp(localtime(&midyear)->tm_zone, "AEST"))
26779 exit(1);
26780 #endif
26782 exit(0);
26785 _ACEOF
26786 rm -f conftest$ac_exeext
26787 if { (ac_try="$ac_link"
26788 case "(($ac_try" in
26789 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26790 *) ac_try_echo=$ac_try;;
26791 esac
26792 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26793 (eval "$ac_link") 2>&5
26794 ac_status=$?
26795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26796 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26797 { (case "(($ac_try" in
26798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26799 *) ac_try_echo=$ac_try;;
26800 esac
26801 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26802 (eval "$ac_try") 2>&5
26803 ac_status=$?
26804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26805 (exit $ac_status); }; }; then
26806 ac_cv_working_tzset=yes
26807 else
26808 echo "$as_me: program exited with status $ac_status" >&5
26809 echo "$as_me: failed program was:" >&5
26810 sed 's/^/| /' conftest.$ac_ext >&5
26812 ( exit $ac_status )
26813 ac_cv_working_tzset=no
26815 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26821 { echo "$as_me:$LINENO: result: $ac_cv_working_tzset" >&5
26822 echo "${ECHO_T}$ac_cv_working_tzset" >&6; }
26823 if test "$ac_cv_working_tzset" = yes
26824 then
26826 cat >>confdefs.h <<\_ACEOF
26827 #define HAVE_WORKING_TZSET 1
26828 _ACEOF
26832 # Look for subsecond timestamps in struct stat
26833 { echo "$as_me:$LINENO: checking for tv_nsec in struct stat" >&5
26834 echo $ECHO_N "checking for tv_nsec in struct stat... $ECHO_C" >&6; }
26835 if test "${ac_cv_stat_tv_nsec+set}" = set; then
26836 echo $ECHO_N "(cached) $ECHO_C" >&6
26837 else
26838 cat >conftest.$ac_ext <<_ACEOF
26839 /* confdefs.h. */
26840 _ACEOF
26841 cat confdefs.h >>conftest.$ac_ext
26842 cat >>conftest.$ac_ext <<_ACEOF
26843 /* end confdefs.h. */
26844 #include <sys/stat.h>
26846 main ()
26849 struct stat st;
26850 st.st_mtim.tv_nsec = 1;
26853 return 0;
26855 _ACEOF
26856 rm -f conftest.$ac_objext
26857 if { (ac_try="$ac_compile"
26858 case "(($ac_try" in
26859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26860 *) ac_try_echo=$ac_try;;
26861 esac
26862 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26863 (eval "$ac_compile") 2>conftest.er1
26864 ac_status=$?
26865 grep -v '^ *+' conftest.er1 >conftest.err
26866 rm -f conftest.er1
26867 cat conftest.err >&5
26868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26869 (exit $ac_status); } && {
26870 test -z "$ac_c_werror_flag" ||
26871 test ! -s conftest.err
26872 } && test -s conftest.$ac_objext; then
26873 ac_cv_stat_tv_nsec=yes
26874 else
26875 echo "$as_me: failed program was:" >&5
26876 sed 's/^/| /' conftest.$ac_ext >&5
26878 ac_cv_stat_tv_nsec=no
26881 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26884 { echo "$as_me:$LINENO: result: $ac_cv_stat_tv_nsec" >&5
26885 echo "${ECHO_T}$ac_cv_stat_tv_nsec" >&6; }
26886 if test "$ac_cv_stat_tv_nsec" = yes
26887 then
26889 cat >>confdefs.h <<\_ACEOF
26890 #define HAVE_STAT_TV_NSEC 1
26891 _ACEOF
26895 # Look for BSD style subsecond timestamps in struct stat
26896 { echo "$as_me:$LINENO: checking for tv_nsec2 in struct stat" >&5
26897 echo $ECHO_N "checking for tv_nsec2 in struct stat... $ECHO_C" >&6; }
26898 if test "${ac_cv_stat_tv_nsec2+set}" = set; then
26899 echo $ECHO_N "(cached) $ECHO_C" >&6
26900 else
26901 cat >conftest.$ac_ext <<_ACEOF
26902 /* confdefs.h. */
26903 _ACEOF
26904 cat confdefs.h >>conftest.$ac_ext
26905 cat >>conftest.$ac_ext <<_ACEOF
26906 /* end confdefs.h. */
26907 #include <sys/stat.h>
26909 main ()
26912 struct stat st;
26913 st.st_mtimespec.tv_nsec = 1;
26916 return 0;
26918 _ACEOF
26919 rm -f conftest.$ac_objext
26920 if { (ac_try="$ac_compile"
26921 case "(($ac_try" in
26922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26923 *) ac_try_echo=$ac_try;;
26924 esac
26925 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26926 (eval "$ac_compile") 2>conftest.er1
26927 ac_status=$?
26928 grep -v '^ *+' conftest.er1 >conftest.err
26929 rm -f conftest.er1
26930 cat conftest.err >&5
26931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26932 (exit $ac_status); } && {
26933 test -z "$ac_c_werror_flag" ||
26934 test ! -s conftest.err
26935 } && test -s conftest.$ac_objext; then
26936 ac_cv_stat_tv_nsec2=yes
26937 else
26938 echo "$as_me: failed program was:" >&5
26939 sed 's/^/| /' conftest.$ac_ext >&5
26941 ac_cv_stat_tv_nsec2=no
26944 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26947 { echo "$as_me:$LINENO: result: $ac_cv_stat_tv_nsec2" >&5
26948 echo "${ECHO_T}$ac_cv_stat_tv_nsec2" >&6; }
26949 if test "$ac_cv_stat_tv_nsec2" = yes
26950 then
26952 cat >>confdefs.h <<\_ACEOF
26953 #define HAVE_STAT_TV_NSEC2 1
26954 _ACEOF
26958 # On HP/UX 11.0, mvwdelch is a block with a return statement
26959 { echo "$as_me:$LINENO: checking whether mvwdelch is an expression" >&5
26960 echo $ECHO_N "checking whether mvwdelch is an expression... $ECHO_C" >&6; }
26961 if test "${ac_cv_mvwdelch_is_expression+set}" = set; then
26962 echo $ECHO_N "(cached) $ECHO_C" >&6
26963 else
26964 cat >conftest.$ac_ext <<_ACEOF
26965 /* confdefs.h. */
26966 _ACEOF
26967 cat confdefs.h >>conftest.$ac_ext
26968 cat >>conftest.$ac_ext <<_ACEOF
26969 /* end confdefs.h. */
26970 #include <curses.h>
26972 main ()
26975 int rtn;
26976 rtn = mvwdelch(0,0,0);
26979 return 0;
26981 _ACEOF
26982 rm -f conftest.$ac_objext
26983 if { (ac_try="$ac_compile"
26984 case "(($ac_try" in
26985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26986 *) ac_try_echo=$ac_try;;
26987 esac
26988 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26989 (eval "$ac_compile") 2>conftest.er1
26990 ac_status=$?
26991 grep -v '^ *+' conftest.er1 >conftest.err
26992 rm -f conftest.er1
26993 cat conftest.err >&5
26994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26995 (exit $ac_status); } && {
26996 test -z "$ac_c_werror_flag" ||
26997 test ! -s conftest.err
26998 } && test -s conftest.$ac_objext; then
26999 ac_cv_mvwdelch_is_expression=yes
27000 else
27001 echo "$as_me: failed program was:" >&5
27002 sed 's/^/| /' conftest.$ac_ext >&5
27004 ac_cv_mvwdelch_is_expression=no
27007 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27010 { echo "$as_me:$LINENO: result: $ac_cv_mvwdelch_is_expression" >&5
27011 echo "${ECHO_T}$ac_cv_mvwdelch_is_expression" >&6; }
27013 if test "$ac_cv_mvwdelch_is_expression" = yes
27014 then
27016 cat >>confdefs.h <<\_ACEOF
27017 #define MVWDELCH_IS_EXPRESSION 1
27018 _ACEOF
27022 { echo "$as_me:$LINENO: checking whether WINDOW has _flags" >&5
27023 echo $ECHO_N "checking whether WINDOW has _flags... $ECHO_C" >&6; }
27024 if test "${ac_cv_window_has_flags+set}" = set; then
27025 echo $ECHO_N "(cached) $ECHO_C" >&6
27026 else
27027 cat >conftest.$ac_ext <<_ACEOF
27028 /* confdefs.h. */
27029 _ACEOF
27030 cat confdefs.h >>conftest.$ac_ext
27031 cat >>conftest.$ac_ext <<_ACEOF
27032 /* end confdefs.h. */
27033 #include <curses.h>
27035 main ()
27038 WINDOW *w;
27039 w->_flags = 0;
27042 return 0;
27044 _ACEOF
27045 rm -f conftest.$ac_objext
27046 if { (ac_try="$ac_compile"
27047 case "(($ac_try" in
27048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27049 *) ac_try_echo=$ac_try;;
27050 esac
27051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27052 (eval "$ac_compile") 2>conftest.er1
27053 ac_status=$?
27054 grep -v '^ *+' conftest.er1 >conftest.err
27055 rm -f conftest.er1
27056 cat conftest.err >&5
27057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27058 (exit $ac_status); } && {
27059 test -z "$ac_c_werror_flag" ||
27060 test ! -s conftest.err
27061 } && test -s conftest.$ac_objext; then
27062 ac_cv_window_has_flags=yes
27063 else
27064 echo "$as_me: failed program was:" >&5
27065 sed 's/^/| /' conftest.$ac_ext >&5
27067 ac_cv_window_has_flags=no
27070 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27073 { echo "$as_me:$LINENO: result: $ac_cv_window_has_flags" >&5
27074 echo "${ECHO_T}$ac_cv_window_has_flags" >&6; }
27077 if test "$ac_cv_window_has_flags" = yes
27078 then
27080 cat >>confdefs.h <<\_ACEOF
27081 #define WINDOW_HAS_FLAGS 1
27082 _ACEOF
27086 { echo "$as_me:$LINENO: checking for is_term_resized" >&5
27087 echo $ECHO_N "checking for is_term_resized... $ECHO_C" >&6; }
27088 cat >conftest.$ac_ext <<_ACEOF
27089 /* confdefs.h. */
27090 _ACEOF
27091 cat confdefs.h >>conftest.$ac_ext
27092 cat >>conftest.$ac_ext <<_ACEOF
27093 /* end confdefs.h. */
27094 #include <curses.h>
27096 main ()
27098 void *x=is_term_resized
27100 return 0;
27102 _ACEOF
27103 rm -f conftest.$ac_objext
27104 if { (ac_try="$ac_compile"
27105 case "(($ac_try" in
27106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27107 *) ac_try_echo=$ac_try;;
27108 esac
27109 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27110 (eval "$ac_compile") 2>conftest.er1
27111 ac_status=$?
27112 grep -v '^ *+' conftest.er1 >conftest.err
27113 rm -f conftest.er1
27114 cat conftest.err >&5
27115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27116 (exit $ac_status); } && {
27117 test -z "$ac_c_werror_flag" ||
27118 test ! -s conftest.err
27119 } && test -s conftest.$ac_objext; then
27121 cat >>confdefs.h <<\_ACEOF
27122 #define HAVE_CURSES_IS_TERM_RESIZED 1
27123 _ACEOF
27125 { echo "$as_me:$LINENO: result: yes" >&5
27126 echo "${ECHO_T}yes" >&6; }
27127 else
27128 echo "$as_me: failed program was:" >&5
27129 sed 's/^/| /' conftest.$ac_ext >&5
27131 { echo "$as_me:$LINENO: result: no" >&5
27132 echo "${ECHO_T}no" >&6; }
27136 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27138 { echo "$as_me:$LINENO: checking for resize_term" >&5
27139 echo $ECHO_N "checking for resize_term... $ECHO_C" >&6; }
27140 cat >conftest.$ac_ext <<_ACEOF
27141 /* confdefs.h. */
27142 _ACEOF
27143 cat confdefs.h >>conftest.$ac_ext
27144 cat >>conftest.$ac_ext <<_ACEOF
27145 /* end confdefs.h. */
27146 #include <curses.h>
27148 main ()
27150 void *x=resize_term
27152 return 0;
27154 _ACEOF
27155 rm -f conftest.$ac_objext
27156 if { (ac_try="$ac_compile"
27157 case "(($ac_try" in
27158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27159 *) ac_try_echo=$ac_try;;
27160 esac
27161 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27162 (eval "$ac_compile") 2>conftest.er1
27163 ac_status=$?
27164 grep -v '^ *+' conftest.er1 >conftest.err
27165 rm -f conftest.er1
27166 cat conftest.err >&5
27167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27168 (exit $ac_status); } && {
27169 test -z "$ac_c_werror_flag" ||
27170 test ! -s conftest.err
27171 } && test -s conftest.$ac_objext; then
27173 cat >>confdefs.h <<\_ACEOF
27174 #define HAVE_CURSES_RESIZE_TERM 1
27175 _ACEOF
27177 { echo "$as_me:$LINENO: result: yes" >&5
27178 echo "${ECHO_T}yes" >&6; }
27179 else
27180 echo "$as_me: failed program was:" >&5
27181 sed 's/^/| /' conftest.$ac_ext >&5
27183 { echo "$as_me:$LINENO: result: no" >&5
27184 echo "${ECHO_T}no" >&6; }
27188 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27190 { echo "$as_me:$LINENO: checking for resizeterm" >&5
27191 echo $ECHO_N "checking for resizeterm... $ECHO_C" >&6; }
27192 cat >conftest.$ac_ext <<_ACEOF
27193 /* confdefs.h. */
27194 _ACEOF
27195 cat confdefs.h >>conftest.$ac_ext
27196 cat >>conftest.$ac_ext <<_ACEOF
27197 /* end confdefs.h. */
27198 #include <curses.h>
27200 main ()
27202 void *x=resizeterm
27204 return 0;
27206 _ACEOF
27207 rm -f conftest.$ac_objext
27208 if { (ac_try="$ac_compile"
27209 case "(($ac_try" in
27210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27211 *) ac_try_echo=$ac_try;;
27212 esac
27213 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27214 (eval "$ac_compile") 2>conftest.er1
27215 ac_status=$?
27216 grep -v '^ *+' conftest.er1 >conftest.err
27217 rm -f conftest.er1
27218 cat conftest.err >&5
27219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27220 (exit $ac_status); } && {
27221 test -z "$ac_c_werror_flag" ||
27222 test ! -s conftest.err
27223 } && test -s conftest.$ac_objext; then
27225 cat >>confdefs.h <<\_ACEOF
27226 #define HAVE_CURSES_RESIZETERM 1
27227 _ACEOF
27229 { echo "$as_me:$LINENO: result: yes" >&5
27230 echo "${ECHO_T}yes" >&6; }
27231 else
27232 echo "$as_me: failed program was:" >&5
27233 sed 's/^/| /' conftest.$ac_ext >&5
27235 { echo "$as_me:$LINENO: result: no" >&5
27236 echo "${ECHO_T}no" >&6; }
27240 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27242 { echo "$as_me:$LINENO: checking for /dev/ptmx" >&5
27243 echo $ECHO_N "checking for /dev/ptmx... $ECHO_C" >&6; }
27245 if test -r /dev/ptmx
27246 then
27247 { echo "$as_me:$LINENO: result: yes" >&5
27248 echo "${ECHO_T}yes" >&6; }
27250 cat >>confdefs.h <<\_ACEOF
27251 #define HAVE_DEV_PTMX 1
27252 _ACEOF
27254 else
27255 { echo "$as_me:$LINENO: result: no" >&5
27256 echo "${ECHO_T}no" >&6; }
27259 { echo "$as_me:$LINENO: checking for /dev/ptc" >&5
27260 echo $ECHO_N "checking for /dev/ptc... $ECHO_C" >&6; }
27262 if test -r /dev/ptc
27263 then
27264 { echo "$as_me:$LINENO: result: yes" >&5
27265 echo "${ECHO_T}yes" >&6; }
27267 cat >>confdefs.h <<\_ACEOF
27268 #define HAVE_DEV_PTC 1
27269 _ACEOF
27271 else
27272 { echo "$as_me:$LINENO: result: no" >&5
27273 echo "${ECHO_T}no" >&6; }
27276 if test "$have_long_long" = yes
27277 then
27278 { echo "$as_me:$LINENO: checking for %lld and %llu printf() format support" >&5
27279 echo $ECHO_N "checking for %lld and %llu printf() format support... $ECHO_C" >&6; }
27280 if test "${ac_cv_have_long_long_format+set}" = set; then
27281 echo $ECHO_N "(cached) $ECHO_C" >&6
27282 else
27283 if test "$cross_compiling" = yes; then
27284 ac_cv_have_long_long_format=no
27285 else
27286 cat >conftest.$ac_ext <<_ACEOF
27287 /* confdefs.h. */
27288 _ACEOF
27289 cat confdefs.h >>conftest.$ac_ext
27290 cat >>conftest.$ac_ext <<_ACEOF
27291 /* end confdefs.h. */
27293 #include <stdio.h>
27294 #include <stddef.h>
27295 #include <string.h>
27297 #ifdef HAVE_SYS_TYPES_H
27298 #include <sys/types.h>
27299 #endif
27301 int main()
27303 char buffer[256];
27305 if (sprintf(buffer, "%lld", (long long)123) < 0)
27306 return 1;
27307 if (strcmp(buffer, "123"))
27308 return 1;
27310 if (sprintf(buffer, "%lld", (long long)-123) < 0)
27311 return 1;
27312 if (strcmp(buffer, "-123"))
27313 return 1;
27315 if (sprintf(buffer, "%llu", (unsigned long long)123) < 0)
27316 return 1;
27317 if (strcmp(buffer, "123"))
27318 return 1;
27320 return 0;
27323 _ACEOF
27324 rm -f conftest$ac_exeext
27325 if { (ac_try="$ac_link"
27326 case "(($ac_try" in
27327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27328 *) ac_try_echo=$ac_try;;
27329 esac
27330 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27331 (eval "$ac_link") 2>&5
27332 ac_status=$?
27333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27334 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27335 { (case "(($ac_try" in
27336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27337 *) ac_try_echo=$ac_try;;
27338 esac
27339 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27340 (eval "$ac_try") 2>&5
27341 ac_status=$?
27342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27343 (exit $ac_status); }; }; then
27344 ac_cv_have_long_long_format=yes
27345 else
27346 echo "$as_me: program exited with status $ac_status" >&5
27347 echo "$as_me: failed program was:" >&5
27348 sed 's/^/| /' conftest.$ac_ext >&5
27350 ( exit $ac_status )
27351 ac_cv_have_long_long_format=no
27353 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27360 { echo "$as_me:$LINENO: result: $ac_cv_have_long_long_format" >&5
27361 echo "${ECHO_T}$ac_cv_have_long_long_format" >&6; }
27364 if test $ac_cv_have_long_long_format = yes
27365 then
27367 cat >>confdefs.h <<\_ACEOF
27368 #define PY_FORMAT_LONG_LONG "ll"
27369 _ACEOF
27373 if test $ac_sys_system = Darwin
27374 then
27375 LIBS="$LIBS -framework CoreFoundation"
27379 { echo "$as_me:$LINENO: checking for %zd printf() format support" >&5
27380 echo $ECHO_N "checking for %zd printf() format support... $ECHO_C" >&6; }
27381 if test "${ac_cv_have_size_t_format+set}" = set; then
27382 echo $ECHO_N "(cached) $ECHO_C" >&6
27383 else
27384 if test "$cross_compiling" = yes; then
27385 ac_cv_have_size_t_format="cross -- assuming yes"
27387 else
27388 cat >conftest.$ac_ext <<_ACEOF
27389 /* confdefs.h. */
27390 _ACEOF
27391 cat confdefs.h >>conftest.$ac_ext
27392 cat >>conftest.$ac_ext <<_ACEOF
27393 /* end confdefs.h. */
27395 #include <stdio.h>
27396 #include <stddef.h>
27397 #include <string.h>
27399 #ifdef HAVE_SYS_TYPES_H
27400 #include <sys/types.h>
27401 #endif
27403 #ifdef HAVE_SSIZE_T
27404 typedef ssize_t Py_ssize_t;
27405 #elif SIZEOF_VOID_P == SIZEOF_LONG
27406 typedef long Py_ssize_t;
27407 #else
27408 typedef int Py_ssize_t;
27409 #endif
27411 int main()
27413 char buffer[256];
27415 if(sprintf(buffer, "%zd", (size_t)123) < 0)
27416 return 1;
27418 if (strcmp(buffer, "123"))
27419 return 1;
27421 if (sprintf(buffer, "%zd", (Py_ssize_t)-123) < 0)
27422 return 1;
27424 if (strcmp(buffer, "-123"))
27425 return 1;
27427 return 0;
27430 _ACEOF
27431 rm -f conftest$ac_exeext
27432 if { (ac_try="$ac_link"
27433 case "(($ac_try" in
27434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27435 *) ac_try_echo=$ac_try;;
27436 esac
27437 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27438 (eval "$ac_link") 2>&5
27439 ac_status=$?
27440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27441 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27442 { (case "(($ac_try" in
27443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27444 *) ac_try_echo=$ac_try;;
27445 esac
27446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27447 (eval "$ac_try") 2>&5
27448 ac_status=$?
27449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27450 (exit $ac_status); }; }; then
27451 ac_cv_have_size_t_format=yes
27452 else
27453 echo "$as_me: program exited with status $ac_status" >&5
27454 echo "$as_me: failed program was:" >&5
27455 sed 's/^/| /' conftest.$ac_ext >&5
27457 ( exit $ac_status )
27458 ac_cv_have_size_t_format=no
27460 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27465 { echo "$as_me:$LINENO: result: $ac_cv_have_size_t_format" >&5
27466 echo "${ECHO_T}$ac_cv_have_size_t_format" >&6; }
27467 if test "$ac_cv_have_size_t_format" != no ; then
27469 cat >>confdefs.h <<\_ACEOF
27470 #define PY_FORMAT_SIZE_T "z"
27471 _ACEOF
27475 { echo "$as_me:$LINENO: checking for socklen_t" >&5
27476 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; }
27477 if test "${ac_cv_type_socklen_t+set}" = set; then
27478 echo $ECHO_N "(cached) $ECHO_C" >&6
27479 else
27480 cat >conftest.$ac_ext <<_ACEOF
27481 /* confdefs.h. */
27482 _ACEOF
27483 cat confdefs.h >>conftest.$ac_ext
27484 cat >>conftest.$ac_ext <<_ACEOF
27485 /* end confdefs.h. */
27487 #ifdef HAVE_SYS_TYPES_H
27488 #include <sys/types.h>
27489 #endif
27490 #ifdef HAVE_SYS_SOCKET_H
27491 #include <sys/socket.h>
27492 #endif
27495 typedef socklen_t ac__type_new_;
27497 main ()
27499 if ((ac__type_new_ *) 0)
27500 return 0;
27501 if (sizeof (ac__type_new_))
27502 return 0;
27504 return 0;
27506 _ACEOF
27507 rm -f conftest.$ac_objext
27508 if { (ac_try="$ac_compile"
27509 case "(($ac_try" in
27510 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27511 *) ac_try_echo=$ac_try;;
27512 esac
27513 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27514 (eval "$ac_compile") 2>conftest.er1
27515 ac_status=$?
27516 grep -v '^ *+' conftest.er1 >conftest.err
27517 rm -f conftest.er1
27518 cat conftest.err >&5
27519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27520 (exit $ac_status); } && {
27521 test -z "$ac_c_werror_flag" ||
27522 test ! -s conftest.err
27523 } && test -s conftest.$ac_objext; then
27524 ac_cv_type_socklen_t=yes
27525 else
27526 echo "$as_me: failed program was:" >&5
27527 sed 's/^/| /' conftest.$ac_ext >&5
27529 ac_cv_type_socklen_t=no
27532 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27534 { echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
27535 echo "${ECHO_T}$ac_cv_type_socklen_t" >&6; }
27536 if test $ac_cv_type_socklen_t = yes; then
27538 else
27540 cat >>confdefs.h <<\_ACEOF
27541 #define socklen_t int
27542 _ACEOF
27549 for h in `(cd $srcdir;echo Python/thread_*.h)`
27551 THREADHEADERS="$THREADHEADERS \$(srcdir)/$h"
27552 done
27555 SRCDIRS="Parser Grammar Objects Python Modules Mac"
27556 { echo "$as_me:$LINENO: checking for build directories" >&5
27557 echo $ECHO_N "checking for build directories... $ECHO_C" >&6; }
27558 for dir in $SRCDIRS; do
27559 if test ! -d $dir; then
27560 mkdir $dir
27562 done
27563 { echo "$as_me:$LINENO: result: done" >&5
27564 echo "${ECHO_T}done" >&6; }
27566 # generate output files
27567 ac_config_files="$ac_config_files Makefile.pre Modules/Setup.config Misc/python.pc"
27569 cat >confcache <<\_ACEOF
27570 # This file is a shell script that caches the results of configure
27571 # tests run on this system so they can be shared between configure
27572 # scripts and configure runs, see configure's option --config-cache.
27573 # It is not useful on other systems. If it contains results you don't
27574 # want to keep, you may remove or edit it.
27576 # config.status only pays attention to the cache file if you give it
27577 # the --recheck option to rerun configure.
27579 # `ac_cv_env_foo' variables (set or unset) will be overridden when
27580 # loading this file, other *unset* `ac_cv_foo' will be assigned the
27581 # following values.
27583 _ACEOF
27585 # The following way of writing the cache mishandles newlines in values,
27586 # but we know of no workaround that is simple, portable, and efficient.
27587 # So, we kill variables containing newlines.
27588 # Ultrix sh set writes to stderr and can't be redirected directly,
27589 # and sets the high bit in the cache file unless we assign to the vars.
27591 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
27592 eval ac_val=\$$ac_var
27593 case $ac_val in #(
27594 *${as_nl}*)
27595 case $ac_var in #(
27596 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
27597 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
27598 esac
27599 case $ac_var in #(
27600 _ | IFS | as_nl) ;; #(
27601 *) $as_unset $ac_var ;;
27602 esac ;;
27603 esac
27604 done
27606 (set) 2>&1 |
27607 case $as_nl`(ac_space=' '; set) 2>&1` in #(
27608 *${as_nl}ac_space=\ *)
27609 # `set' does not quote correctly, so add quotes (double-quote
27610 # substitution turns \\\\ into \\, and sed turns \\ into \).
27611 sed -n \
27612 "s/'/'\\\\''/g;
27613 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
27614 ;; #(
27616 # `set' quotes correctly as required by POSIX, so do not add quotes.
27617 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
27619 esac |
27620 sort
27622 sed '
27623 /^ac_cv_env_/b end
27624 t clear
27625 :clear
27626 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
27627 t end
27628 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
27629 :end' >>confcache
27630 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
27631 if test -w "$cache_file"; then
27632 test "x$cache_file" != "x/dev/null" &&
27633 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
27634 echo "$as_me: updating cache $cache_file" >&6;}
27635 cat confcache >$cache_file
27636 else
27637 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
27638 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
27641 rm -f confcache
27643 test "x$prefix" = xNONE && prefix=$ac_default_prefix
27644 # Let make expand exec_prefix.
27645 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
27647 DEFS=-DHAVE_CONFIG_H
27649 ac_libobjs=
27650 ac_ltlibobjs=
27651 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
27652 # 1. Remove the extension, and $U if already installed.
27653 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
27654 ac_i=`echo "$ac_i" | sed "$ac_script"`
27655 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
27656 # will be set to the directory where LIBOBJS objects are built.
27657 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
27658 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
27659 done
27660 LIBOBJS=$ac_libobjs
27662 LTLIBOBJS=$ac_ltlibobjs
27666 : ${CONFIG_STATUS=./config.status}
27667 ac_clean_files_save=$ac_clean_files
27668 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
27669 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
27670 echo "$as_me: creating $CONFIG_STATUS" >&6;}
27671 cat >$CONFIG_STATUS <<_ACEOF
27672 #! $SHELL
27673 # Generated by $as_me.
27674 # Run this file to recreate the current configuration.
27675 # Compiler output produced by configure, useful for debugging
27676 # configure, is in config.log if it exists.
27678 debug=false
27679 ac_cs_recheck=false
27680 ac_cs_silent=false
27681 SHELL=\${CONFIG_SHELL-$SHELL}
27682 _ACEOF
27684 cat >>$CONFIG_STATUS <<\_ACEOF
27685 ## --------------------- ##
27686 ## M4sh Initialization. ##
27687 ## --------------------- ##
27689 # Be more Bourne compatible
27690 DUALCASE=1; export DUALCASE # for MKS sh
27691 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
27692 emulate sh
27693 NULLCMD=:
27694 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
27695 # is contrary to our usage. Disable this feature.
27696 alias -g '${1+"$@"}'='"$@"'
27697 setopt NO_GLOB_SUBST
27698 else
27699 case `(set -o) 2>/dev/null` in
27700 *posix*) set -o posix ;;
27701 esac
27708 # PATH needs CR
27709 # Avoid depending upon Character Ranges.
27710 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
27711 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
27712 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
27713 as_cr_digits='0123456789'
27714 as_cr_alnum=$as_cr_Letters$as_cr_digits
27716 # The user is always right.
27717 if test "${PATH_SEPARATOR+set}" != set; then
27718 echo "#! /bin/sh" >conf$$.sh
27719 echo "exit 0" >>conf$$.sh
27720 chmod +x conf$$.sh
27721 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
27722 PATH_SEPARATOR=';'
27723 else
27724 PATH_SEPARATOR=:
27726 rm -f conf$$.sh
27729 # Support unset when possible.
27730 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
27731 as_unset=unset
27732 else
27733 as_unset=false
27737 # IFS
27738 # We need space, tab and new line, in precisely that order. Quoting is
27739 # there to prevent editors from complaining about space-tab.
27740 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
27741 # splitting by setting IFS to empty value.)
27742 as_nl='
27744 IFS=" "" $as_nl"
27746 # Find who we are. Look in the path if we contain no directory separator.
27747 case $0 in
27748 *[\\/]* ) as_myself=$0 ;;
27749 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27750 for as_dir in $PATH
27752 IFS=$as_save_IFS
27753 test -z "$as_dir" && as_dir=.
27754 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
27755 done
27756 IFS=$as_save_IFS
27759 esac
27760 # We did not find ourselves, most probably we were run as `sh COMMAND'
27761 # in which case we are not to be found in the path.
27762 if test "x$as_myself" = x; then
27763 as_myself=$0
27765 if test ! -f "$as_myself"; then
27766 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
27767 { (exit 1); exit 1; }
27770 # Work around bugs in pre-3.0 UWIN ksh.
27771 for as_var in ENV MAIL MAILPATH
27772 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
27773 done
27774 PS1='$ '
27775 PS2='> '
27776 PS4='+ '
27778 # NLS nuisances.
27779 for as_var in \
27780 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
27781 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
27782 LC_TELEPHONE LC_TIME
27784 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
27785 eval $as_var=C; export $as_var
27786 else
27787 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
27789 done
27791 # Required to use basename.
27792 if expr a : '\(a\)' >/dev/null 2>&1 &&
27793 test "X`expr 00001 : '.*\(...\)'`" = X001; then
27794 as_expr=expr
27795 else
27796 as_expr=false
27799 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
27800 as_basename=basename
27801 else
27802 as_basename=false
27806 # Name of the executable.
27807 as_me=`$as_basename -- "$0" ||
27808 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
27809 X"$0" : 'X\(//\)$' \| \
27810 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
27811 echo X/"$0" |
27812 sed '/^.*\/\([^/][^/]*\)\/*$/{
27813 s//\1/
27816 /^X\/\(\/\/\)$/{
27817 s//\1/
27820 /^X\/\(\/\).*/{
27821 s//\1/
27824 s/.*/./; q'`
27826 # CDPATH.
27827 $as_unset CDPATH
27831 as_lineno_1=$LINENO
27832 as_lineno_2=$LINENO
27833 test "x$as_lineno_1" != "x$as_lineno_2" &&
27834 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
27836 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
27837 # uniformly replaced by the line number. The first 'sed' inserts a
27838 # line-number line after each line using $LINENO; the second 'sed'
27839 # does the real work. The second script uses 'N' to pair each
27840 # line-number line with the line containing $LINENO, and appends
27841 # trailing '-' during substitution so that $LINENO is not a special
27842 # case at line end.
27843 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
27844 # scripts with optimization help from Paolo Bonzini. Blame Lee
27845 # E. McMahon (1931-1989) for sed's syntax. :-)
27846 sed -n '
27848 /[$]LINENO/=
27849 ' <$as_myself |
27850 sed '
27851 s/[$]LINENO.*/&-/
27852 t lineno
27854 :lineno
27856 :loop
27857 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
27858 t loop
27859 s/-\n.*//
27860 ' >$as_me.lineno &&
27861 chmod +x "$as_me.lineno" ||
27862 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
27863 { (exit 1); exit 1; }; }
27865 # Don't try to exec as it changes $[0], causing all sort of problems
27866 # (the dirname of $[0] is not the place where we might find the
27867 # original and so on. Autoconf is especially sensitive to this).
27868 . "./$as_me.lineno"
27869 # Exit status is that of the last command.
27870 exit
27874 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
27875 as_dirname=dirname
27876 else
27877 as_dirname=false
27880 ECHO_C= ECHO_N= ECHO_T=
27881 case `echo -n x` in
27882 -n*)
27883 case `echo 'x\c'` in
27884 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
27885 *) ECHO_C='\c';;
27886 esac;;
27888 ECHO_N='-n';;
27889 esac
27891 if expr a : '\(a\)' >/dev/null 2>&1 &&
27892 test "X`expr 00001 : '.*\(...\)'`" = X001; then
27893 as_expr=expr
27894 else
27895 as_expr=false
27898 rm -f conf$$ conf$$.exe conf$$.file
27899 if test -d conf$$.dir; then
27900 rm -f conf$$.dir/conf$$.file
27901 else
27902 rm -f conf$$.dir
27903 mkdir conf$$.dir
27905 echo >conf$$.file
27906 if ln -s conf$$.file conf$$ 2>/dev/null; then
27907 as_ln_s='ln -s'
27908 # ... but there are two gotchas:
27909 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
27910 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
27911 # In both cases, we have to default to `cp -p'.
27912 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
27913 as_ln_s='cp -p'
27914 elif ln conf$$.file conf$$ 2>/dev/null; then
27915 as_ln_s=ln
27916 else
27917 as_ln_s='cp -p'
27919 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
27920 rmdir conf$$.dir 2>/dev/null
27922 if mkdir -p . 2>/dev/null; then
27923 as_mkdir_p=:
27924 else
27925 test -d ./-p && rmdir ./-p
27926 as_mkdir_p=false
27929 if test -x / >/dev/null 2>&1; then
27930 as_test_x='test -x'
27931 else
27932 if ls -dL / >/dev/null 2>&1; then
27933 as_ls_L_option=L
27934 else
27935 as_ls_L_option=
27937 as_test_x='
27938 eval sh -c '\''
27939 if test -d "$1"; then
27940 test -d "$1/.";
27941 else
27942 case $1 in
27943 -*)set "./$1";;
27944 esac;
27945 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
27946 ???[sx]*):;;*)false;;esac;fi
27947 '\'' sh
27950 as_executable_p=$as_test_x
27952 # Sed expression to map a string onto a valid CPP name.
27953 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
27955 # Sed expression to map a string onto a valid variable name.
27956 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
27959 exec 6>&1
27961 # Save the log message, to keep $[0] and so on meaningful, and to
27962 # report actual input values of CONFIG_FILES etc. instead of their
27963 # values after options handling.
27964 ac_log="
27965 This file was extended by python $as_me 2.7, which was
27966 generated by GNU Autoconf 2.61. Invocation command line was
27968 CONFIG_FILES = $CONFIG_FILES
27969 CONFIG_HEADERS = $CONFIG_HEADERS
27970 CONFIG_LINKS = $CONFIG_LINKS
27971 CONFIG_COMMANDS = $CONFIG_COMMANDS
27972 $ $0 $@
27974 on `(hostname || uname -n) 2>/dev/null | sed 1q`
27977 _ACEOF
27979 cat >>$CONFIG_STATUS <<_ACEOF
27980 # Files that config.status was made for.
27981 config_files="$ac_config_files"
27982 config_headers="$ac_config_headers"
27984 _ACEOF
27986 cat >>$CONFIG_STATUS <<\_ACEOF
27987 ac_cs_usage="\
27988 \`$as_me' instantiates files from templates according to the
27989 current configuration.
27991 Usage: $0 [OPTIONS] [FILE]...
27993 -h, --help print this help, then exit
27994 -V, --version print version number and configuration settings, then exit
27995 -q, --quiet do not print progress messages
27996 -d, --debug don't remove temporary files
27997 --recheck update $as_me by reconfiguring in the same conditions
27998 --file=FILE[:TEMPLATE]
27999 instantiate the configuration file FILE
28000 --header=FILE[:TEMPLATE]
28001 instantiate the configuration header FILE
28003 Configuration files:
28004 $config_files
28006 Configuration headers:
28007 $config_headers
28009 Report bugs to <bug-autoconf@gnu.org>."
28011 _ACEOF
28012 cat >>$CONFIG_STATUS <<_ACEOF
28013 ac_cs_version="\\
28014 python config.status 2.7
28015 configured by $0, generated by GNU Autoconf 2.61,
28016 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
28018 Copyright (C) 2006 Free Software Foundation, Inc.
28019 This config.status script is free software; the Free Software Foundation
28020 gives unlimited permission to copy, distribute and modify it."
28022 ac_pwd='$ac_pwd'
28023 srcdir='$srcdir'
28024 INSTALL='$INSTALL'
28025 _ACEOF
28027 cat >>$CONFIG_STATUS <<\_ACEOF
28028 # If no file are specified by the user, then we need to provide default
28029 # value. By we need to know if files were specified by the user.
28030 ac_need_defaults=:
28031 while test $# != 0
28033 case $1 in
28034 --*=*)
28035 ac_option=`expr "X$1" : 'X\([^=]*\)='`
28036 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
28037 ac_shift=:
28040 ac_option=$1
28041 ac_optarg=$2
28042 ac_shift=shift
28044 esac
28046 case $ac_option in
28047 # Handling of the options.
28048 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
28049 ac_cs_recheck=: ;;
28050 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
28051 echo "$ac_cs_version"; exit ;;
28052 --debug | --debu | --deb | --de | --d | -d )
28053 debug=: ;;
28054 --file | --fil | --fi | --f )
28055 $ac_shift
28056 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
28057 ac_need_defaults=false;;
28058 --header | --heade | --head | --hea )
28059 $ac_shift
28060 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
28061 ac_need_defaults=false;;
28062 --he | --h)
28063 # Conflict between --help and --header
28064 { echo "$as_me: error: ambiguous option: $1
28065 Try \`$0 --help' for more information." >&2
28066 { (exit 1); exit 1; }; };;
28067 --help | --hel | -h )
28068 echo "$ac_cs_usage"; exit ;;
28069 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
28070 | -silent | --silent | --silen | --sile | --sil | --si | --s)
28071 ac_cs_silent=: ;;
28073 # This is an error.
28074 -*) { echo "$as_me: error: unrecognized option: $1
28075 Try \`$0 --help' for more information." >&2
28076 { (exit 1); exit 1; }; } ;;
28078 *) ac_config_targets="$ac_config_targets $1"
28079 ac_need_defaults=false ;;
28081 esac
28082 shift
28083 done
28085 ac_configure_extra_args=
28087 if $ac_cs_silent; then
28088 exec 6>/dev/null
28089 ac_configure_extra_args="$ac_configure_extra_args --silent"
28092 _ACEOF
28093 cat >>$CONFIG_STATUS <<_ACEOF
28094 if \$ac_cs_recheck; then
28095 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
28096 CONFIG_SHELL=$SHELL
28097 export CONFIG_SHELL
28098 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
28101 _ACEOF
28102 cat >>$CONFIG_STATUS <<\_ACEOF
28103 exec 5>>config.log
28105 echo
28106 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
28107 ## Running $as_me. ##
28108 _ASBOX
28109 echo "$ac_log"
28110 } >&5
28112 _ACEOF
28113 cat >>$CONFIG_STATUS <<_ACEOF
28114 _ACEOF
28116 cat >>$CONFIG_STATUS <<\_ACEOF
28118 # Handling of arguments.
28119 for ac_config_target in $ac_config_targets
28121 case $ac_config_target in
28122 "pyconfig.h") CONFIG_HEADERS="$CONFIG_HEADERS pyconfig.h" ;;
28123 "Mac/Makefile") CONFIG_FILES="$CONFIG_FILES Mac/Makefile" ;;
28124 "Mac/PythonLauncher/Makefile") CONFIG_FILES="$CONFIG_FILES Mac/PythonLauncher/Makefile" ;;
28125 "Mac/IDLE/Makefile") CONFIG_FILES="$CONFIG_FILES Mac/IDLE/Makefile" ;;
28126 "Mac/Resources/framework/Info.plist") CONFIG_FILES="$CONFIG_FILES Mac/Resources/framework/Info.plist" ;;
28127 "Mac/Resources/app/Info.plist") CONFIG_FILES="$CONFIG_FILES Mac/Resources/app/Info.plist" ;;
28128 "Makefile.pre") CONFIG_FILES="$CONFIG_FILES Makefile.pre" ;;
28129 "Modules/Setup.config") CONFIG_FILES="$CONFIG_FILES Modules/Setup.config" ;;
28130 "Misc/python.pc") CONFIG_FILES="$CONFIG_FILES Misc/python.pc" ;;
28132 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
28133 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
28134 { (exit 1); exit 1; }; };;
28135 esac
28136 done
28139 # If the user did not use the arguments to specify the items to instantiate,
28140 # then the envvar interface is used. Set only those that are not.
28141 # We use the long form for the default assignment because of an extremely
28142 # bizarre bug on SunOS 4.1.3.
28143 if $ac_need_defaults; then
28144 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
28145 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
28148 # Have a temporary directory for convenience. Make it in the build tree
28149 # simply because there is no reason against having it here, and in addition,
28150 # creating and moving files from /tmp can sometimes cause problems.
28151 # Hook for its removal unless debugging.
28152 # Note that there is a small window in which the directory will not be cleaned:
28153 # after its creation but before its name has been assigned to `$tmp'.
28154 $debug ||
28156 tmp=
28157 trap 'exit_status=$?
28158 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
28160 trap '{ (exit 1); exit 1; }' 1 2 13 15
28162 # Create a (secure) tmp directory for tmp files.
28165 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
28166 test -n "$tmp" && test -d "$tmp"
28167 } ||
28169 tmp=./conf$$-$RANDOM
28170 (umask 077 && mkdir "$tmp")
28171 } ||
28173 echo "$me: cannot create a temporary directory in ." >&2
28174 { (exit 1); exit 1; }
28178 # Set up the sed scripts for CONFIG_FILES section.
28181 # No need to generate the scripts if there are no CONFIG_FILES.
28182 # This happens for instance when ./config.status config.h
28183 if test -n "$CONFIG_FILES"; then
28185 _ACEOF
28189 ac_delim='%!_!# '
28190 for ac_last_try in false false false false false :; do
28191 cat >conf$$subs.sed <<_ACEOF
28192 SHELL!$SHELL$ac_delim
28193 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
28194 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
28195 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
28196 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
28197 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
28198 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
28199 exec_prefix!$exec_prefix$ac_delim
28200 prefix!$prefix$ac_delim
28201 program_transform_name!$program_transform_name$ac_delim
28202 bindir!$bindir$ac_delim
28203 sbindir!$sbindir$ac_delim
28204 libexecdir!$libexecdir$ac_delim
28205 datarootdir!$datarootdir$ac_delim
28206 datadir!$datadir$ac_delim
28207 sysconfdir!$sysconfdir$ac_delim
28208 sharedstatedir!$sharedstatedir$ac_delim
28209 localstatedir!$localstatedir$ac_delim
28210 includedir!$includedir$ac_delim
28211 oldincludedir!$oldincludedir$ac_delim
28212 docdir!$docdir$ac_delim
28213 infodir!$infodir$ac_delim
28214 htmldir!$htmldir$ac_delim
28215 dvidir!$dvidir$ac_delim
28216 pdfdir!$pdfdir$ac_delim
28217 psdir!$psdir$ac_delim
28218 libdir!$libdir$ac_delim
28219 localedir!$localedir$ac_delim
28220 mandir!$mandir$ac_delim
28221 DEFS!$DEFS$ac_delim
28222 ECHO_C!$ECHO_C$ac_delim
28223 ECHO_N!$ECHO_N$ac_delim
28224 ECHO_T!$ECHO_T$ac_delim
28225 LIBS!$LIBS$ac_delim
28226 build_alias!$build_alias$ac_delim
28227 host_alias!$host_alias$ac_delim
28228 target_alias!$target_alias$ac_delim
28229 VERSION!$VERSION$ac_delim
28230 SOVERSION!$SOVERSION$ac_delim
28231 CONFIG_ARGS!$CONFIG_ARGS$ac_delim
28232 UNIVERSALSDK!$UNIVERSALSDK$ac_delim
28233 ARCH_RUN_32BIT!$ARCH_RUN_32BIT$ac_delim
28234 LIPO_32BIT_FLAGS!$LIPO_32BIT_FLAGS$ac_delim
28235 PYTHONFRAMEWORK!$PYTHONFRAMEWORK$ac_delim
28236 PYTHONFRAMEWORKIDENTIFIER!$PYTHONFRAMEWORKIDENTIFIER$ac_delim
28237 PYTHONFRAMEWORKDIR!$PYTHONFRAMEWORKDIR$ac_delim
28238 PYTHONFRAMEWORKPREFIX!$PYTHONFRAMEWORKPREFIX$ac_delim
28239 PYTHONFRAMEWORKINSTALLDIR!$PYTHONFRAMEWORKINSTALLDIR$ac_delim
28240 FRAMEWORKINSTALLFIRST!$FRAMEWORKINSTALLFIRST$ac_delim
28241 FRAMEWORKINSTALLLAST!$FRAMEWORKINSTALLLAST$ac_delim
28242 FRAMEWORKALTINSTALLFIRST!$FRAMEWORKALTINSTALLFIRST$ac_delim
28243 FRAMEWORKALTINSTALLLAST!$FRAMEWORKALTINSTALLLAST$ac_delim
28244 FRAMEWORKUNIXTOOLSPREFIX!$FRAMEWORKUNIXTOOLSPREFIX$ac_delim
28245 MACHDEP!$MACHDEP$ac_delim
28246 SGI_ABI!$SGI_ABI$ac_delim
28247 EXTRAPLATDIR!$EXTRAPLATDIR$ac_delim
28248 EXTRAMACHDEPPATH!$EXTRAMACHDEPPATH$ac_delim
28249 CONFIGURE_MACOSX_DEPLOYMENT_TARGET!$CONFIGURE_MACOSX_DEPLOYMENT_TARGET$ac_delim
28250 EXPORT_MACOSX_DEPLOYMENT_TARGET!$EXPORT_MACOSX_DEPLOYMENT_TARGET$ac_delim
28251 CC!$CC$ac_delim
28252 CFLAGS!$CFLAGS$ac_delim
28253 LDFLAGS!$LDFLAGS$ac_delim
28254 CPPFLAGS!$CPPFLAGS$ac_delim
28255 ac_ct_CC!$ac_ct_CC$ac_delim
28256 EXEEXT!$EXEEXT$ac_delim
28257 OBJEXT!$OBJEXT$ac_delim
28258 CXX!$CXX$ac_delim
28259 MAINCC!$MAINCC$ac_delim
28260 CPP!$CPP$ac_delim
28261 GREP!$GREP$ac_delim
28262 EGREP!$EGREP$ac_delim
28263 BUILDEXEEXT!$BUILDEXEEXT$ac_delim
28264 LIBRARY!$LIBRARY$ac_delim
28265 LDLIBRARY!$LDLIBRARY$ac_delim
28266 DLLLIBRARY!$DLLLIBRARY$ac_delim
28267 BLDLIBRARY!$BLDLIBRARY$ac_delim
28268 LDLIBRARYDIR!$LDLIBRARYDIR$ac_delim
28269 INSTSONAME!$INSTSONAME$ac_delim
28270 RUNSHARED!$RUNSHARED$ac_delim
28271 LINKCC!$LINKCC$ac_delim
28272 GNULD!$GNULD$ac_delim
28273 RANLIB!$RANLIB$ac_delim
28274 AR!$AR$ac_delim
28275 ARFLAGS!$ARFLAGS$ac_delim
28276 SVNVERSION!$SVNVERSION$ac_delim
28277 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
28278 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
28279 INSTALL_DATA!$INSTALL_DATA$ac_delim
28280 LN!$LN$ac_delim
28281 OPT!$OPT$ac_delim
28282 BASECFLAGS!$BASECFLAGS$ac_delim
28283 UNIVERSAL_ARCH_FLAGS!$UNIVERSAL_ARCH_FLAGS$ac_delim
28284 OTHER_LIBTOOL_OPT!$OTHER_LIBTOOL_OPT$ac_delim
28285 LIBTOOL_CRUFT!$LIBTOOL_CRUFT$ac_delim
28286 SO!$SO$ac_delim
28287 LDSHARED!$LDSHARED$ac_delim
28288 BLDSHARED!$BLDSHARED$ac_delim
28289 _ACEOF
28291 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
28292 break
28293 elif $ac_last_try; then
28294 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
28295 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
28296 { (exit 1); exit 1; }; }
28297 else
28298 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
28300 done
28302 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
28303 if test -n "$ac_eof"; then
28304 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
28305 ac_eof=`expr $ac_eof + 1`
28308 cat >>$CONFIG_STATUS <<_ACEOF
28309 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
28310 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
28311 _ACEOF
28312 sed '
28313 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
28314 s/^/s,@/; s/!/@,|#_!!_#|/
28317 s/'"$ac_delim"'$/,g/; t
28318 s/$/\\/; p
28319 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
28320 ' >>$CONFIG_STATUS <conf$$subs.sed
28321 rm -f conf$$subs.sed
28322 cat >>$CONFIG_STATUS <<_ACEOF
28323 CEOF$ac_eof
28324 _ACEOF
28327 ac_delim='%!_!# '
28328 for ac_last_try in false false false false false :; do
28329 cat >conf$$subs.sed <<_ACEOF
28330 CCSHARED!$CCSHARED$ac_delim
28331 LINKFORSHARED!$LINKFORSHARED$ac_delim
28332 CFLAGSFORSHARED!$CFLAGSFORSHARED$ac_delim
28333 SHLIBS!$SHLIBS$ac_delim
28334 USE_SIGNAL_MODULE!$USE_SIGNAL_MODULE$ac_delim
28335 SIGNAL_OBJS!$SIGNAL_OBJS$ac_delim
28336 USE_THREAD_MODULE!$USE_THREAD_MODULE$ac_delim
28337 LDLAST!$LDLAST$ac_delim
28338 THREADOBJ!$THREADOBJ$ac_delim
28339 DLINCLDIR!$DLINCLDIR$ac_delim
28340 DYNLOADFILE!$DYNLOADFILE$ac_delim
28341 MACHDEP_OBJS!$MACHDEP_OBJS$ac_delim
28342 TRUE!$TRUE$ac_delim
28343 LIBOBJS!$LIBOBJS$ac_delim
28344 HAVE_GETHOSTBYNAME_R_6_ARG!$HAVE_GETHOSTBYNAME_R_6_ARG$ac_delim
28345 HAVE_GETHOSTBYNAME_R_5_ARG!$HAVE_GETHOSTBYNAME_R_5_ARG$ac_delim
28346 HAVE_GETHOSTBYNAME_R_3_ARG!$HAVE_GETHOSTBYNAME_R_3_ARG$ac_delim
28347 HAVE_GETHOSTBYNAME_R!$HAVE_GETHOSTBYNAME_R$ac_delim
28348 HAVE_GETHOSTBYNAME!$HAVE_GETHOSTBYNAME$ac_delim
28349 LIBM!$LIBM$ac_delim
28350 LIBC!$LIBC$ac_delim
28351 UNICODE_OBJS!$UNICODE_OBJS$ac_delim
28352 THREADHEADERS!$THREADHEADERS$ac_delim
28353 SRCDIRS!$SRCDIRS$ac_delim
28354 LTLIBOBJS!$LTLIBOBJS$ac_delim
28355 _ACEOF
28357 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 25; then
28358 break
28359 elif $ac_last_try; then
28360 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
28361 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
28362 { (exit 1); exit 1; }; }
28363 else
28364 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
28366 done
28368 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
28369 if test -n "$ac_eof"; then
28370 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
28371 ac_eof=`expr $ac_eof + 1`
28374 cat >>$CONFIG_STATUS <<_ACEOF
28375 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
28376 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
28377 _ACEOF
28378 sed '
28379 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
28380 s/^/s,@/; s/!/@,|#_!!_#|/
28383 s/'"$ac_delim"'$/,g/; t
28384 s/$/\\/; p
28385 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
28386 ' >>$CONFIG_STATUS <conf$$subs.sed
28387 rm -f conf$$subs.sed
28388 cat >>$CONFIG_STATUS <<_ACEOF
28389 :end
28390 s/|#_!!_#|//g
28391 CEOF$ac_eof
28392 _ACEOF
28395 # VPATH may cause trouble with some makes, so we remove $(srcdir),
28396 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
28397 # trailing colons and then remove the whole line if VPATH becomes empty
28398 # (actually we leave an empty line to preserve line numbers).
28399 if test "x$srcdir" = x.; then
28400 ac_vpsub='/^[ ]*VPATH[ ]*=/{
28401 s/:*\$(srcdir):*/:/
28402 s/:*\${srcdir}:*/:/
28403 s/:*@srcdir@:*/:/
28404 s/^\([^=]*=[ ]*\):*/\1/
28405 s/:*$//
28406 s/^[^=]*=[ ]*$//
28410 cat >>$CONFIG_STATUS <<\_ACEOF
28411 fi # test -n "$CONFIG_FILES"
28414 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS
28416 case $ac_tag in
28417 :[FHLC]) ac_mode=$ac_tag; continue;;
28418 esac
28419 case $ac_mode$ac_tag in
28420 :[FHL]*:*);;
28421 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
28422 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
28423 { (exit 1); exit 1; }; };;
28424 :[FH]-) ac_tag=-:-;;
28425 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
28426 esac
28427 ac_save_IFS=$IFS
28428 IFS=:
28429 set x $ac_tag
28430 IFS=$ac_save_IFS
28431 shift
28432 ac_file=$1
28433 shift
28435 case $ac_mode in
28436 :L) ac_source=$1;;
28437 :[FH])
28438 ac_file_inputs=
28439 for ac_f
28441 case $ac_f in
28442 -) ac_f="$tmp/stdin";;
28443 *) # Look for the file first in the build tree, then in the source tree
28444 # (if the path is not absolute). The absolute path cannot be DOS-style,
28445 # because $ac_f cannot contain `:'.
28446 test -f "$ac_f" ||
28447 case $ac_f in
28448 [\\/$]*) false;;
28449 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
28450 esac ||
28451 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
28452 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
28453 { (exit 1); exit 1; }; };;
28454 esac
28455 ac_file_inputs="$ac_file_inputs $ac_f"
28456 done
28458 # Let's still pretend it is `configure' which instantiates (i.e., don't
28459 # use $as_me), people would be surprised to read:
28460 # /* config.h. Generated by config.status. */
28461 configure_input="Generated from "`IFS=:
28462 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
28463 if test x"$ac_file" != x-; then
28464 configure_input="$ac_file. $configure_input"
28465 { echo "$as_me:$LINENO: creating $ac_file" >&5
28466 echo "$as_me: creating $ac_file" >&6;}
28469 case $ac_tag in
28470 *:-:* | *:-) cat >"$tmp/stdin";;
28471 esac
28473 esac
28475 ac_dir=`$as_dirname -- "$ac_file" ||
28476 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28477 X"$ac_file" : 'X\(//\)[^/]' \| \
28478 X"$ac_file" : 'X\(//\)$' \| \
28479 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
28480 echo X"$ac_file" |
28481 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28482 s//\1/
28485 /^X\(\/\/\)[^/].*/{
28486 s//\1/
28489 /^X\(\/\/\)$/{
28490 s//\1/
28493 /^X\(\/\).*/{
28494 s//\1/
28497 s/.*/./; q'`
28498 { as_dir="$ac_dir"
28499 case $as_dir in #(
28500 -*) as_dir=./$as_dir;;
28501 esac
28502 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
28503 as_dirs=
28504 while :; do
28505 case $as_dir in #(
28506 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
28507 *) as_qdir=$as_dir;;
28508 esac
28509 as_dirs="'$as_qdir' $as_dirs"
28510 as_dir=`$as_dirname -- "$as_dir" ||
28511 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28512 X"$as_dir" : 'X\(//\)[^/]' \| \
28513 X"$as_dir" : 'X\(//\)$' \| \
28514 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
28515 echo X"$as_dir" |
28516 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28517 s//\1/
28520 /^X\(\/\/\)[^/].*/{
28521 s//\1/
28524 /^X\(\/\/\)$/{
28525 s//\1/
28528 /^X\(\/\).*/{
28529 s//\1/
28532 s/.*/./; q'`
28533 test -d "$as_dir" && break
28534 done
28535 test -z "$as_dirs" || eval "mkdir $as_dirs"
28536 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
28537 echo "$as_me: error: cannot create directory $as_dir" >&2;}
28538 { (exit 1); exit 1; }; }; }
28539 ac_builddir=.
28541 case "$ac_dir" in
28542 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
28544 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
28545 # A ".." for each directory in $ac_dir_suffix.
28546 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
28547 case $ac_top_builddir_sub in
28548 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
28549 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
28550 esac ;;
28551 esac
28552 ac_abs_top_builddir=$ac_pwd
28553 ac_abs_builddir=$ac_pwd$ac_dir_suffix
28554 # for backward compatibility:
28555 ac_top_builddir=$ac_top_build_prefix
28557 case $srcdir in
28558 .) # We are building in place.
28559 ac_srcdir=.
28560 ac_top_srcdir=$ac_top_builddir_sub
28561 ac_abs_top_srcdir=$ac_pwd ;;
28562 [\\/]* | ?:[\\/]* ) # Absolute name.
28563 ac_srcdir=$srcdir$ac_dir_suffix;
28564 ac_top_srcdir=$srcdir
28565 ac_abs_top_srcdir=$srcdir ;;
28566 *) # Relative name.
28567 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
28568 ac_top_srcdir=$ac_top_build_prefix$srcdir
28569 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
28570 esac
28571 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
28574 case $ac_mode in
28577 # CONFIG_FILE
28580 case $INSTALL in
28581 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
28582 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
28583 esac
28584 _ACEOF
28586 cat >>$CONFIG_STATUS <<\_ACEOF
28587 # If the template does not know about datarootdir, expand it.
28588 # FIXME: This hack should be removed a few years after 2.60.
28589 ac_datarootdir_hack=; ac_datarootdir_seen=
28591 case `sed -n '/datarootdir/ {
28595 /@datadir@/p
28596 /@docdir@/p
28597 /@infodir@/p
28598 /@localedir@/p
28599 /@mandir@/p
28600 ' $ac_file_inputs` in
28601 *datarootdir*) ac_datarootdir_seen=yes;;
28602 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
28603 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
28604 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
28605 _ACEOF
28606 cat >>$CONFIG_STATUS <<_ACEOF
28607 ac_datarootdir_hack='
28608 s&@datadir@&$datadir&g
28609 s&@docdir@&$docdir&g
28610 s&@infodir@&$infodir&g
28611 s&@localedir@&$localedir&g
28612 s&@mandir@&$mandir&g
28613 s&\\\${datarootdir}&$datarootdir&g' ;;
28614 esac
28615 _ACEOF
28617 # Neutralize VPATH when `$srcdir' = `.'.
28618 # Shell code in configure.ac might set extrasub.
28619 # FIXME: do we really want to maintain this feature?
28620 cat >>$CONFIG_STATUS <<_ACEOF
28621 sed "$ac_vpsub
28622 $extrasub
28623 _ACEOF
28624 cat >>$CONFIG_STATUS <<\_ACEOF
28626 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
28627 s&@configure_input@&$configure_input&;t t
28628 s&@top_builddir@&$ac_top_builddir_sub&;t t
28629 s&@srcdir@&$ac_srcdir&;t t
28630 s&@abs_srcdir@&$ac_abs_srcdir&;t t
28631 s&@top_srcdir@&$ac_top_srcdir&;t t
28632 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
28633 s&@builddir@&$ac_builddir&;t t
28634 s&@abs_builddir@&$ac_abs_builddir&;t t
28635 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
28636 s&@INSTALL@&$ac_INSTALL&;t t
28637 $ac_datarootdir_hack
28638 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
28640 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
28641 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
28642 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
28643 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
28644 which seems to be undefined. Please make sure it is defined." >&5
28645 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
28646 which seems to be undefined. Please make sure it is defined." >&2;}
28648 rm -f "$tmp/stdin"
28649 case $ac_file in
28650 -) cat "$tmp/out"; rm -f "$tmp/out";;
28651 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
28652 esac
28656 # CONFIG_HEADER
28658 _ACEOF
28660 # Transform confdefs.h into a sed script `conftest.defines', that
28661 # substitutes the proper values into config.h.in to produce config.h.
28662 rm -f conftest.defines conftest.tail
28663 # First, append a space to every undef/define line, to ease matching.
28664 echo 's/$/ /' >conftest.defines
28665 # Then, protect against being on the right side of a sed subst, or in
28666 # an unquoted here document, in config.status. If some macros were
28667 # called several times there might be several #defines for the same
28668 # symbol, which is useless. But do not sort them, since the last
28669 # AC_DEFINE must be honored.
28670 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
28671 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
28672 # NAME is the cpp macro being defined, VALUE is the value it is being given.
28673 # PARAMS is the parameter list in the macro definition--in most cases, it's
28674 # just an empty string.
28675 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
28676 ac_dB='\\)[ (].*,\\1define\\2'
28677 ac_dC=' '
28678 ac_dD=' ,'
28680 uniq confdefs.h |
28681 sed -n '
28682 t rset
28683 :rset
28684 s/^[ ]*#[ ]*define[ ][ ]*//
28685 t ok
28688 s/[\\&,]/\\&/g
28689 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
28690 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
28691 ' >>conftest.defines
28693 # Remove the space that was appended to ease matching.
28694 # Then replace #undef with comments. This is necessary, for
28695 # example, in the case of _POSIX_SOURCE, which is predefined and required
28696 # on some systems where configure will not decide to define it.
28697 # (The regexp can be short, since the line contains either #define or #undef.)
28698 echo 's/ $//
28699 s,^[ #]*u.*,/* & */,' >>conftest.defines
28701 # Break up conftest.defines:
28702 ac_max_sed_lines=50
28704 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
28705 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
28706 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
28707 # et cetera.
28708 ac_in='$ac_file_inputs'
28709 ac_out='"$tmp/out1"'
28710 ac_nxt='"$tmp/out2"'
28712 while :
28714 # Write a here document:
28715 cat >>$CONFIG_STATUS <<_ACEOF
28716 # First, check the format of the line:
28717 cat >"\$tmp/defines.sed" <<\\CEOF
28718 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
28719 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
28721 :def
28722 _ACEOF
28723 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
28724 echo 'CEOF
28725 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
28726 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
28727 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
28728 grep . conftest.tail >/dev/null || break
28729 rm -f conftest.defines
28730 mv conftest.tail conftest.defines
28731 done
28732 rm -f conftest.defines conftest.tail
28734 echo "ac_result=$ac_in" >>$CONFIG_STATUS
28735 cat >>$CONFIG_STATUS <<\_ACEOF
28736 if test x"$ac_file" != x-; then
28737 echo "/* $configure_input */" >"$tmp/config.h"
28738 cat "$ac_result" >>"$tmp/config.h"
28739 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
28740 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
28741 echo "$as_me: $ac_file is unchanged" >&6;}
28742 else
28743 rm -f $ac_file
28744 mv "$tmp/config.h" $ac_file
28746 else
28747 echo "/* $configure_input */"
28748 cat "$ac_result"
28750 rm -f "$tmp/out12"
28754 esac
28756 done # for ac_tag
28759 { (exit 0); exit 0; }
28760 _ACEOF
28761 chmod +x $CONFIG_STATUS
28762 ac_clean_files=$ac_clean_files_save
28765 # configure is writing to config.log, and then calls config.status.
28766 # config.status does its own redirection, appending to config.log.
28767 # Unfortunately, on DOS this fails, as config.log is still kept open
28768 # by configure, so config.status won't be able to write to it; its
28769 # output is simply discarded. So we exec the FD to /dev/null,
28770 # effectively closing config.log, so it can be properly (re)opened and
28771 # appended to by config.status. When coming back to configure, we
28772 # need to make the FD available again.
28773 if test "$no_create" != yes; then
28774 ac_cs_success=:
28775 ac_config_status_args=
28776 test "$silent" = yes &&
28777 ac_config_status_args="$ac_config_status_args --quiet"
28778 exec 5>/dev/null
28779 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
28780 exec 5>>config.log
28781 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
28782 # would make configure fail if this is the last instruction.
28783 $ac_cs_success || { (exit 1); exit 1; }
28787 echo "creating Modules/Setup"
28788 if test ! -f Modules/Setup
28789 then
28790 cp $srcdir/Modules/Setup.dist Modules/Setup
28793 echo "creating Modules/Setup.local"
28794 if test ! -f Modules/Setup.local
28795 then
28796 echo "# Edit this file for local setup changes" >Modules/Setup.local
28799 echo "creating Makefile"
28800 $SHELL $srcdir/Modules/makesetup -c $srcdir/Modules/config.c.in \
28801 -s Modules Modules/Setup.config \
28802 Modules/Setup.local Modules/Setup
28804 case $ac_sys_system in
28805 BeOS)
28806 { echo "$as_me:$LINENO: WARNING:
28808 Support for BeOS is deprecated as of Python 2.6.
28809 See PEP 11 for the gory details.
28810 " >&5
28811 echo "$as_me: WARNING:
28813 Support for BeOS is deprecated as of Python 2.6.
28814 See PEP 11 for the gory details.
28815 " >&2;}
28817 *) ;;
28818 esac
28820 mv config.c Modules