Issue #1523: Remove deprecated overflow masking in struct module, and
[python.git] / configure
blob000c9fce01964e66d19d4589fdbe9b8514e97dc6
1 #! /bin/sh
2 # From configure.in Revision: 72898 .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.61 for python 2.7.
6 # Report bugs to <http://bugs.python.org/>.
8 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
10 # This configure script is free software; the Free Software Foundation
11 # gives unlimited permission to copy, distribute and modify it.
12 ## --------------------- ##
13 ## M4sh Initialization. ##
14 ## --------------------- ##
16 # Be more Bourne compatible
17 DUALCASE=1; export DUALCASE # for MKS sh
18 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
19 emulate sh
20 NULLCMD=:
21 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22 # is contrary to our usage. Disable this feature.
23 alias -g '${1+"$@"}'='"$@"'
24 setopt NO_GLOB_SUBST
25 else
26 case `(set -o) 2>/dev/null` in
27 *posix*) set -o posix ;;
28 esac
35 # PATH needs CR
36 # Avoid depending upon Character Ranges.
37 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
38 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
39 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
40 as_cr_digits='0123456789'
41 as_cr_alnum=$as_cr_Letters$as_cr_digits
43 # The user is always right.
44 if test "${PATH_SEPARATOR+set}" != set; then
45 echo "#! /bin/sh" >conf$$.sh
46 echo "exit 0" >>conf$$.sh
47 chmod +x conf$$.sh
48 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
49 PATH_SEPARATOR=';'
50 else
51 PATH_SEPARATOR=:
53 rm -f conf$$.sh
56 # Support unset when possible.
57 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
58 as_unset=unset
59 else
60 as_unset=false
64 # IFS
65 # We need space, tab and new line, in precisely that order. Quoting is
66 # there to prevent editors from complaining about space-tab.
67 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
68 # splitting by setting IFS to empty value.)
69 as_nl='
71 IFS=" "" $as_nl"
73 # Find who we are. Look in the path if we contain no directory separator.
74 case $0 in
75 *[\\/]* ) as_myself=$0 ;;
76 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
77 for as_dir in $PATH
79 IFS=$as_save_IFS
80 test -z "$as_dir" && as_dir=.
81 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
82 done
83 IFS=$as_save_IFS
86 esac
87 # We did not find ourselves, most probably we were run as `sh COMMAND'
88 # in which case we are not to be found in the path.
89 if test "x$as_myself" = x; then
90 as_myself=$0
92 if test ! -f "$as_myself"; then
93 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
94 { (exit 1); exit 1; }
97 # Work around bugs in pre-3.0 UWIN ksh.
98 for as_var in ENV MAIL MAILPATH
99 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
100 done
101 PS1='$ '
102 PS2='> '
103 PS4='+ '
105 # NLS nuisances.
106 for as_var in \
107 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
108 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
109 LC_TELEPHONE LC_TIME
111 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
112 eval $as_var=C; export $as_var
113 else
114 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
116 done
118 # Required to use basename.
119 if expr a : '\(a\)' >/dev/null 2>&1 &&
120 test "X`expr 00001 : '.*\(...\)'`" = X001; then
121 as_expr=expr
122 else
123 as_expr=false
126 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
127 as_basename=basename
128 else
129 as_basename=false
133 # Name of the executable.
134 as_me=`$as_basename -- "$0" ||
135 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
136 X"$0" : 'X\(//\)$' \| \
137 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
138 echo X/"$0" |
139 sed '/^.*\/\([^/][^/]*\)\/*$/{
140 s//\1/
143 /^X\/\(\/\/\)$/{
144 s//\1/
147 /^X\/\(\/\).*/{
148 s//\1/
151 s/.*/./; q'`
153 # CDPATH.
154 $as_unset CDPATH
157 if test "x$CONFIG_SHELL" = x; then
158 if (eval ":") 2>/dev/null; then
159 as_have_required=yes
160 else
161 as_have_required=no
164 if test $as_have_required = yes && (eval ":
165 (as_func_return () {
166 (exit \$1)
168 as_func_success () {
169 as_func_return 0
171 as_func_failure () {
172 as_func_return 1
174 as_func_ret_success () {
175 return 0
177 as_func_ret_failure () {
178 return 1
181 exitcode=0
182 if as_func_success; then
184 else
185 exitcode=1
186 echo as_func_success failed.
189 if as_func_failure; then
190 exitcode=1
191 echo as_func_failure succeeded.
194 if as_func_ret_success; then
196 else
197 exitcode=1
198 echo as_func_ret_success failed.
201 if as_func_ret_failure; then
202 exitcode=1
203 echo as_func_ret_failure succeeded.
206 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
208 else
209 exitcode=1
210 echo positional parameters were not saved.
213 test \$exitcode = 0) || { (exit 1); exit 1; }
216 as_lineno_1=\$LINENO
217 as_lineno_2=\$LINENO
218 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
219 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
220 ") 2> /dev/null; then
222 else
223 as_candidate_shells=
224 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
225 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
227 IFS=$as_save_IFS
228 test -z "$as_dir" && as_dir=.
229 case $as_dir in
231 for as_base in sh bash ksh sh5; do
232 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
233 done;;
234 esac
235 done
236 IFS=$as_save_IFS
239 for as_shell in $as_candidate_shells $SHELL; do
240 # Try only shells that exist, to save several forks.
241 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
242 { ("$as_shell") 2> /dev/null <<\_ASEOF
243 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
244 emulate sh
245 NULLCMD=:
246 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
247 # is contrary to our usage. Disable this feature.
248 alias -g '${1+"$@"}'='"$@"'
249 setopt NO_GLOB_SUBST
250 else
251 case `(set -o) 2>/dev/null` in
252 *posix*) set -o posix ;;
253 esac
259 _ASEOF
260 }; then
261 CONFIG_SHELL=$as_shell
262 as_have_required=yes
263 if { "$as_shell" 2> /dev/null <<\_ASEOF
264 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
265 emulate sh
266 NULLCMD=:
267 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
268 # is contrary to our usage. Disable this feature.
269 alias -g '${1+"$@"}'='"$@"'
270 setopt NO_GLOB_SUBST
271 else
272 case `(set -o) 2>/dev/null` in
273 *posix*) set -o posix ;;
274 esac
280 (as_func_return () {
281 (exit $1)
283 as_func_success () {
284 as_func_return 0
286 as_func_failure () {
287 as_func_return 1
289 as_func_ret_success () {
290 return 0
292 as_func_ret_failure () {
293 return 1
296 exitcode=0
297 if as_func_success; then
299 else
300 exitcode=1
301 echo as_func_success failed.
304 if as_func_failure; then
305 exitcode=1
306 echo as_func_failure succeeded.
309 if as_func_ret_success; then
311 else
312 exitcode=1
313 echo as_func_ret_success failed.
316 if as_func_ret_failure; then
317 exitcode=1
318 echo as_func_ret_failure succeeded.
321 if ( set x; as_func_ret_success y && test x = "$1" ); then
323 else
324 exitcode=1
325 echo positional parameters were not saved.
328 test $exitcode = 0) || { (exit 1); exit 1; }
331 as_lineno_1=$LINENO
332 as_lineno_2=$LINENO
333 test "x$as_lineno_1" != "x$as_lineno_2" &&
334 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
336 _ASEOF
337 }; then
338 break
343 done
345 if test "x$CONFIG_SHELL" != x; then
346 for as_var in BASH_ENV ENV
347 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
348 done
349 export CONFIG_SHELL
350 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
354 if test $as_have_required = no; then
355 echo This script requires a shell more modern than all the
356 echo shells that I found on your system. Please install a
357 echo modern shell, or manually run the script under such a
358 echo shell if you do have one.
359 { (exit 1); exit 1; }
369 (eval "as_func_return () {
370 (exit \$1)
372 as_func_success () {
373 as_func_return 0
375 as_func_failure () {
376 as_func_return 1
378 as_func_ret_success () {
379 return 0
381 as_func_ret_failure () {
382 return 1
385 exitcode=0
386 if as_func_success; then
388 else
389 exitcode=1
390 echo as_func_success failed.
393 if as_func_failure; then
394 exitcode=1
395 echo as_func_failure succeeded.
398 if as_func_ret_success; then
400 else
401 exitcode=1
402 echo as_func_ret_success failed.
405 if as_func_ret_failure; then
406 exitcode=1
407 echo as_func_ret_failure succeeded.
410 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
412 else
413 exitcode=1
414 echo positional parameters were not saved.
417 test \$exitcode = 0") || {
418 echo No shell found that supports shell functions.
419 echo Please tell autoconf@gnu.org about your system,
420 echo including any error possibly output before this
421 echo message
426 as_lineno_1=$LINENO
427 as_lineno_2=$LINENO
428 test "x$as_lineno_1" != "x$as_lineno_2" &&
429 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
431 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
432 # uniformly replaced by the line number. The first 'sed' inserts a
433 # line-number line after each line using $LINENO; the second 'sed'
434 # does the real work. The second script uses 'N' to pair each
435 # line-number line with the line containing $LINENO, and appends
436 # trailing '-' during substitution so that $LINENO is not a special
437 # case at line end.
438 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
439 # scripts with optimization help from Paolo Bonzini. Blame Lee
440 # E. McMahon (1931-1989) for sed's syntax. :-)
441 sed -n '
443 /[$]LINENO/=
444 ' <$as_myself |
445 sed '
446 s/[$]LINENO.*/&-/
447 t lineno
449 :lineno
451 :loop
452 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
453 t loop
454 s/-\n.*//
455 ' >$as_me.lineno &&
456 chmod +x "$as_me.lineno" ||
457 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
458 { (exit 1); exit 1; }; }
460 # Don't try to exec as it changes $[0], causing all sort of problems
461 # (the dirname of $[0] is not the place where we might find the
462 # original and so on. Autoconf is especially sensitive to this).
463 . "./$as_me.lineno"
464 # Exit status is that of the last command.
465 exit
469 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
470 as_dirname=dirname
471 else
472 as_dirname=false
475 ECHO_C= ECHO_N= ECHO_T=
476 case `echo -n x` in
477 -n*)
478 case `echo 'x\c'` in
479 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
480 *) ECHO_C='\c';;
481 esac;;
483 ECHO_N='-n';;
484 esac
486 if expr a : '\(a\)' >/dev/null 2>&1 &&
487 test "X`expr 00001 : '.*\(...\)'`" = X001; then
488 as_expr=expr
489 else
490 as_expr=false
493 rm -f conf$$ conf$$.exe conf$$.file
494 if test -d conf$$.dir; then
495 rm -f conf$$.dir/conf$$.file
496 else
497 rm -f conf$$.dir
498 mkdir conf$$.dir
500 echo >conf$$.file
501 if ln -s conf$$.file conf$$ 2>/dev/null; then
502 as_ln_s='ln -s'
503 # ... but there are two gotchas:
504 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
505 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
506 # In both cases, we have to default to `cp -p'.
507 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
508 as_ln_s='cp -p'
509 elif ln conf$$.file conf$$ 2>/dev/null; then
510 as_ln_s=ln
511 else
512 as_ln_s='cp -p'
514 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
515 rmdir conf$$.dir 2>/dev/null
517 if mkdir -p . 2>/dev/null; then
518 as_mkdir_p=:
519 else
520 test -d ./-p && rmdir ./-p
521 as_mkdir_p=false
524 if test -x / >/dev/null 2>&1; then
525 as_test_x='test -x'
526 else
527 if ls -dL / >/dev/null 2>&1; then
528 as_ls_L_option=L
529 else
530 as_ls_L_option=
532 as_test_x='
533 eval sh -c '\''
534 if test -d "$1"; then
535 test -d "$1/.";
536 else
537 case $1 in
538 -*)set "./$1";;
539 esac;
540 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
541 ???[sx]*):;;*)false;;esac;fi
542 '\'' sh
545 as_executable_p=$as_test_x
547 # Sed expression to map a string onto a valid CPP name.
548 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
550 # Sed expression to map a string onto a valid variable name.
551 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
555 exec 7<&0 </dev/null 6>&1
557 # Name of the host.
558 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
559 # so uname gets run too.
560 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
563 # Initializations.
565 ac_default_prefix=/usr/local
566 ac_clean_files=
567 ac_config_libobj_dir=.
568 LIBOBJS=
569 cross_compiling=no
570 subdirs=
571 MFLAGS=
572 MAKEFLAGS=
573 SHELL=${CONFIG_SHELL-/bin/sh}
575 # Identity of this package.
576 PACKAGE_NAME='python'
577 PACKAGE_TARNAME='python'
578 PACKAGE_VERSION='2.7'
579 PACKAGE_STRING='python 2.7'
580 PACKAGE_BUGREPORT='http://bugs.python.org/'
582 ac_unique_file="Include/object.h"
583 # Factoring default headers for most tests.
584 ac_includes_default="\
585 #include <stdio.h>
586 #ifdef HAVE_SYS_TYPES_H
587 # include <sys/types.h>
588 #endif
589 #ifdef HAVE_SYS_STAT_H
590 # include <sys/stat.h>
591 #endif
592 #ifdef STDC_HEADERS
593 # include <stdlib.h>
594 # include <stddef.h>
595 #else
596 # ifdef HAVE_STDLIB_H
597 # include <stdlib.h>
598 # endif
599 #endif
600 #ifdef HAVE_STRING_H
601 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
602 # include <memory.h>
603 # endif
604 # include <string.h>
605 #endif
606 #ifdef HAVE_STRINGS_H
607 # include <strings.h>
608 #endif
609 #ifdef HAVE_INTTYPES_H
610 # include <inttypes.h>
611 #endif
612 #ifdef HAVE_STDINT_H
613 # include <stdint.h>
614 #endif
615 #ifdef HAVE_UNISTD_H
616 # include <unistd.h>
617 #endif"
619 ac_subst_vars='SHELL
620 PATH_SEPARATOR
621 PACKAGE_NAME
622 PACKAGE_TARNAME
623 PACKAGE_VERSION
624 PACKAGE_STRING
625 PACKAGE_BUGREPORT
626 exec_prefix
627 prefix
628 program_transform_name
629 bindir
630 sbindir
631 libexecdir
632 datarootdir
633 datadir
634 sysconfdir
635 sharedstatedir
636 localstatedir
637 includedir
638 oldincludedir
639 docdir
640 infodir
641 htmldir
642 dvidir
643 pdfdir
644 psdir
645 libdir
646 localedir
647 mandir
648 DEFS
649 ECHO_C
650 ECHO_N
651 ECHO_T
652 LIBS
653 build_alias
654 host_alias
655 target_alias
656 VERSION
657 SOVERSION
658 CONFIG_ARGS
659 UNIVERSALSDK
660 ARCH_RUN_32BIT
661 PYTHONFRAMEWORK
662 PYTHONFRAMEWORKIDENTIFIER
663 PYTHONFRAMEWORKDIR
664 PYTHONFRAMEWORKPREFIX
665 PYTHONFRAMEWORKINSTALLDIR
666 FRAMEWORKINSTALLFIRST
667 FRAMEWORKINSTALLLAST
668 FRAMEWORKALTINSTALLFIRST
669 FRAMEWORKALTINSTALLLAST
670 FRAMEWORKUNIXTOOLSPREFIX
671 MACHDEP
672 SGI_ABI
673 EXTRAPLATDIR
674 EXTRAMACHDEPPATH
675 CONFIGURE_MACOSX_DEPLOYMENT_TARGET
676 EXPORT_MACOSX_DEPLOYMENT_TARGET
678 CFLAGS
679 LDFLAGS
680 CPPFLAGS
681 ac_ct_CC
682 EXEEXT
683 OBJEXT
685 MAINCC
687 GREP
688 EGREP
689 BUILDEXEEXT
690 LIBRARY
691 LDLIBRARY
692 DLLLIBRARY
693 BLDLIBRARY
694 LDLIBRARYDIR
695 INSTSONAME
696 RUNSHARED
697 LINKCC
698 GNULD
699 RANLIB
701 ARFLAGS
702 SVNVERSION
703 INSTALL_PROGRAM
704 INSTALL_SCRIPT
705 INSTALL_DATA
708 BASECFLAGS
709 UNIVERSAL_ARCH_FLAGS
710 OTHER_LIBTOOL_OPT
711 LIBTOOL_CRUFT
713 LDSHARED
714 BLDSHARED
715 CCSHARED
716 LINKFORSHARED
717 CFLAGSFORSHARED
718 SHLIBS
719 USE_SIGNAL_MODULE
720 SIGNAL_OBJS
721 USE_THREAD_MODULE
722 LDLAST
723 THREADOBJ
724 DLINCLDIR
725 DYNLOADFILE
726 MACHDEP_OBJS
727 TRUE
728 LIBOBJS
729 HAVE_GETHOSTBYNAME_R_6_ARG
730 HAVE_GETHOSTBYNAME_R_5_ARG
731 HAVE_GETHOSTBYNAME_R_3_ARG
732 HAVE_GETHOSTBYNAME_R
733 HAVE_GETHOSTBYNAME
734 LIBM
735 LIBC
736 UNICODE_OBJS
737 THREADHEADERS
738 SRCDIRS
739 LTLIBOBJS'
740 ac_subst_files=''
741 ac_precious_vars='build_alias
742 host_alias
743 target_alias
745 CFLAGS
746 LDFLAGS
747 LIBS
748 CPPFLAGS
749 CPP'
752 # Initialize some variables set by options.
753 ac_init_help=
754 ac_init_version=false
755 # The variables have the same names as the options, with
756 # dashes changed to underlines.
757 cache_file=/dev/null
758 exec_prefix=NONE
759 no_create=
760 no_recursion=
761 prefix=NONE
762 program_prefix=NONE
763 program_suffix=NONE
764 program_transform_name=s,x,x,
765 silent=
766 site=
767 srcdir=
768 verbose=
769 x_includes=NONE
770 x_libraries=NONE
772 # Installation directory options.
773 # These are left unexpanded so users can "make install exec_prefix=/foo"
774 # and all the variables that are supposed to be based on exec_prefix
775 # by default will actually change.
776 # Use braces instead of parens because sh, perl, etc. also accept them.
777 # (The list follows the same order as the GNU Coding Standards.)
778 bindir='${exec_prefix}/bin'
779 sbindir='${exec_prefix}/sbin'
780 libexecdir='${exec_prefix}/libexec'
781 datarootdir='${prefix}/share'
782 datadir='${datarootdir}'
783 sysconfdir='${prefix}/etc'
784 sharedstatedir='${prefix}/com'
785 localstatedir='${prefix}/var'
786 includedir='${prefix}/include'
787 oldincludedir='/usr/include'
788 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
789 infodir='${datarootdir}/info'
790 htmldir='${docdir}'
791 dvidir='${docdir}'
792 pdfdir='${docdir}'
793 psdir='${docdir}'
794 libdir='${exec_prefix}/lib'
795 localedir='${datarootdir}/locale'
796 mandir='${datarootdir}/man'
798 ac_prev=
799 ac_dashdash=
800 for ac_option
802 # If the previous option needs an argument, assign it.
803 if test -n "$ac_prev"; then
804 eval $ac_prev=\$ac_option
805 ac_prev=
806 continue
809 case $ac_option in
810 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
811 *) ac_optarg=yes ;;
812 esac
814 # Accept the important Cygnus configure options, so we can diagnose typos.
816 case $ac_dashdash$ac_option in
818 ac_dashdash=yes ;;
820 -bindir | --bindir | --bindi | --bind | --bin | --bi)
821 ac_prev=bindir ;;
822 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
823 bindir=$ac_optarg ;;
825 -build | --build | --buil | --bui | --bu)
826 ac_prev=build_alias ;;
827 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
828 build_alias=$ac_optarg ;;
830 -cache-file | --cache-file | --cache-fil | --cache-fi \
831 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
832 ac_prev=cache_file ;;
833 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
834 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
835 cache_file=$ac_optarg ;;
837 --config-cache | -C)
838 cache_file=config.cache ;;
840 -datadir | --datadir | --datadi | --datad)
841 ac_prev=datadir ;;
842 -datadir=* | --datadir=* | --datadi=* | --datad=*)
843 datadir=$ac_optarg ;;
845 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
846 | --dataroo | --dataro | --datar)
847 ac_prev=datarootdir ;;
848 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
849 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
850 datarootdir=$ac_optarg ;;
852 -disable-* | --disable-*)
853 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
854 # Reject names that are not valid shell variable names.
855 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
856 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
857 { (exit 1); exit 1; }; }
858 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
859 eval enable_$ac_feature=no ;;
861 -docdir | --docdir | --docdi | --doc | --do)
862 ac_prev=docdir ;;
863 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
864 docdir=$ac_optarg ;;
866 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
867 ac_prev=dvidir ;;
868 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
869 dvidir=$ac_optarg ;;
871 -enable-* | --enable-*)
872 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
873 # Reject names that are not valid shell variable names.
874 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
875 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
876 { (exit 1); exit 1; }; }
877 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
878 eval enable_$ac_feature=\$ac_optarg ;;
880 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
881 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
882 | --exec | --exe | --ex)
883 ac_prev=exec_prefix ;;
884 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
885 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
886 | --exec=* | --exe=* | --ex=*)
887 exec_prefix=$ac_optarg ;;
889 -gas | --gas | --ga | --g)
890 # Obsolete; use --with-gas.
891 with_gas=yes ;;
893 -help | --help | --hel | --he | -h)
894 ac_init_help=long ;;
895 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
896 ac_init_help=recursive ;;
897 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
898 ac_init_help=short ;;
900 -host | --host | --hos | --ho)
901 ac_prev=host_alias ;;
902 -host=* | --host=* | --hos=* | --ho=*)
903 host_alias=$ac_optarg ;;
905 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
906 ac_prev=htmldir ;;
907 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
908 | --ht=*)
909 htmldir=$ac_optarg ;;
911 -includedir | --includedir | --includedi | --included | --include \
912 | --includ | --inclu | --incl | --inc)
913 ac_prev=includedir ;;
914 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
915 | --includ=* | --inclu=* | --incl=* | --inc=*)
916 includedir=$ac_optarg ;;
918 -infodir | --infodir | --infodi | --infod | --info | --inf)
919 ac_prev=infodir ;;
920 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
921 infodir=$ac_optarg ;;
923 -libdir | --libdir | --libdi | --libd)
924 ac_prev=libdir ;;
925 -libdir=* | --libdir=* | --libdi=* | --libd=*)
926 libdir=$ac_optarg ;;
928 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
929 | --libexe | --libex | --libe)
930 ac_prev=libexecdir ;;
931 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
932 | --libexe=* | --libex=* | --libe=*)
933 libexecdir=$ac_optarg ;;
935 -localedir | --localedir | --localedi | --localed | --locale)
936 ac_prev=localedir ;;
937 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
938 localedir=$ac_optarg ;;
940 -localstatedir | --localstatedir | --localstatedi | --localstated \
941 | --localstate | --localstat | --localsta | --localst | --locals)
942 ac_prev=localstatedir ;;
943 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
944 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
945 localstatedir=$ac_optarg ;;
947 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
948 ac_prev=mandir ;;
949 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
950 mandir=$ac_optarg ;;
952 -nfp | --nfp | --nf)
953 # Obsolete; use --without-fp.
954 with_fp=no ;;
956 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
957 | --no-cr | --no-c | -n)
958 no_create=yes ;;
960 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
961 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
962 no_recursion=yes ;;
964 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
965 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
966 | --oldin | --oldi | --old | --ol | --o)
967 ac_prev=oldincludedir ;;
968 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
969 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
970 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
971 oldincludedir=$ac_optarg ;;
973 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
974 ac_prev=prefix ;;
975 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
976 prefix=$ac_optarg ;;
978 -program-prefix | --program-prefix | --program-prefi | --program-pref \
979 | --program-pre | --program-pr | --program-p)
980 ac_prev=program_prefix ;;
981 -program-prefix=* | --program-prefix=* | --program-prefi=* \
982 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
983 program_prefix=$ac_optarg ;;
985 -program-suffix | --program-suffix | --program-suffi | --program-suff \
986 | --program-suf | --program-su | --program-s)
987 ac_prev=program_suffix ;;
988 -program-suffix=* | --program-suffix=* | --program-suffi=* \
989 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
990 program_suffix=$ac_optarg ;;
992 -program-transform-name | --program-transform-name \
993 | --program-transform-nam | --program-transform-na \
994 | --program-transform-n | --program-transform- \
995 | --program-transform | --program-transfor \
996 | --program-transfo | --program-transf \
997 | --program-trans | --program-tran \
998 | --progr-tra | --program-tr | --program-t)
999 ac_prev=program_transform_name ;;
1000 -program-transform-name=* | --program-transform-name=* \
1001 | --program-transform-nam=* | --program-transform-na=* \
1002 | --program-transform-n=* | --program-transform-=* \
1003 | --program-transform=* | --program-transfor=* \
1004 | --program-transfo=* | --program-transf=* \
1005 | --program-trans=* | --program-tran=* \
1006 | --progr-tra=* | --program-tr=* | --program-t=*)
1007 program_transform_name=$ac_optarg ;;
1009 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1010 ac_prev=pdfdir ;;
1011 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1012 pdfdir=$ac_optarg ;;
1014 -psdir | --psdir | --psdi | --psd | --ps)
1015 ac_prev=psdir ;;
1016 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1017 psdir=$ac_optarg ;;
1019 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1020 | -silent | --silent | --silen | --sile | --sil)
1021 silent=yes ;;
1023 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1024 ac_prev=sbindir ;;
1025 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1026 | --sbi=* | --sb=*)
1027 sbindir=$ac_optarg ;;
1029 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1030 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1031 | --sharedst | --shareds | --shared | --share | --shar \
1032 | --sha | --sh)
1033 ac_prev=sharedstatedir ;;
1034 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1035 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1036 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1037 | --sha=* | --sh=*)
1038 sharedstatedir=$ac_optarg ;;
1040 -site | --site | --sit)
1041 ac_prev=site ;;
1042 -site=* | --site=* | --sit=*)
1043 site=$ac_optarg ;;
1045 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1046 ac_prev=srcdir ;;
1047 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1048 srcdir=$ac_optarg ;;
1050 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1051 | --syscon | --sysco | --sysc | --sys | --sy)
1052 ac_prev=sysconfdir ;;
1053 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1054 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1055 sysconfdir=$ac_optarg ;;
1057 -target | --target | --targe | --targ | --tar | --ta | --t)
1058 ac_prev=target_alias ;;
1059 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1060 target_alias=$ac_optarg ;;
1062 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1063 verbose=yes ;;
1065 -version | --version | --versio | --versi | --vers | -V)
1066 ac_init_version=: ;;
1068 -with-* | --with-*)
1069 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1070 # Reject names that are not valid shell variable names.
1071 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1072 { echo "$as_me: error: invalid package name: $ac_package" >&2
1073 { (exit 1); exit 1; }; }
1074 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1075 eval with_$ac_package=\$ac_optarg ;;
1077 -without-* | --without-*)
1078 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1079 # Reject names that are not valid shell variable names.
1080 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1081 { echo "$as_me: error: invalid package name: $ac_package" >&2
1082 { (exit 1); exit 1; }; }
1083 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1084 eval with_$ac_package=no ;;
1086 --x)
1087 # Obsolete; use --with-x.
1088 with_x=yes ;;
1090 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1091 | --x-incl | --x-inc | --x-in | --x-i)
1092 ac_prev=x_includes ;;
1093 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1094 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1095 x_includes=$ac_optarg ;;
1097 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1098 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1099 ac_prev=x_libraries ;;
1100 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1101 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1102 x_libraries=$ac_optarg ;;
1104 -*) { echo "$as_me: error: unrecognized option: $ac_option
1105 Try \`$0 --help' for more information." >&2
1106 { (exit 1); exit 1; }; }
1109 *=*)
1110 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1111 # Reject names that are not valid shell variable names.
1112 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1113 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1114 { (exit 1); exit 1; }; }
1115 eval $ac_envvar=\$ac_optarg
1116 export $ac_envvar ;;
1119 # FIXME: should be removed in autoconf 3.0.
1120 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1121 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1122 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1123 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1126 esac
1127 done
1129 if test -n "$ac_prev"; then
1130 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1131 { echo "$as_me: error: missing argument to $ac_option" >&2
1132 { (exit 1); exit 1; }; }
1135 # Be sure to have absolute directory names.
1136 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1137 datadir sysconfdir sharedstatedir localstatedir includedir \
1138 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1139 libdir localedir mandir
1141 eval ac_val=\$$ac_var
1142 case $ac_val in
1143 [\\/$]* | ?:[\\/]* ) continue;;
1144 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1145 esac
1146 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1147 { (exit 1); exit 1; }; }
1148 done
1150 # There might be people who depend on the old broken behavior: `$host'
1151 # used to hold the argument of --host etc.
1152 # FIXME: To remove some day.
1153 build=$build_alias
1154 host=$host_alias
1155 target=$target_alias
1157 # FIXME: To remove some day.
1158 if test "x$host_alias" != x; then
1159 if test "x$build_alias" = x; then
1160 cross_compiling=maybe
1161 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1162 If a cross compiler is detected then cross compile mode will be used." >&2
1163 elif test "x$build_alias" != "x$host_alias"; then
1164 cross_compiling=yes
1168 ac_tool_prefix=
1169 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1171 test "$silent" = yes && exec 6>/dev/null
1174 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1175 ac_ls_di=`ls -di .` &&
1176 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1177 { echo "$as_me: error: Working directory cannot be determined" >&2
1178 { (exit 1); exit 1; }; }
1179 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1180 { echo "$as_me: error: pwd does not report name of working directory" >&2
1181 { (exit 1); exit 1; }; }
1184 # Find the source files, if location was not specified.
1185 if test -z "$srcdir"; then
1186 ac_srcdir_defaulted=yes
1187 # Try the directory containing this script, then the parent directory.
1188 ac_confdir=`$as_dirname -- "$0" ||
1189 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1190 X"$0" : 'X\(//\)[^/]' \| \
1191 X"$0" : 'X\(//\)$' \| \
1192 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1193 echo X"$0" |
1194 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1195 s//\1/
1198 /^X\(\/\/\)[^/].*/{
1199 s//\1/
1202 /^X\(\/\/\)$/{
1203 s//\1/
1206 /^X\(\/\).*/{
1207 s//\1/
1210 s/.*/./; q'`
1211 srcdir=$ac_confdir
1212 if test ! -r "$srcdir/$ac_unique_file"; then
1213 srcdir=..
1215 else
1216 ac_srcdir_defaulted=no
1218 if test ! -r "$srcdir/$ac_unique_file"; then
1219 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1220 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1221 { (exit 1); exit 1; }; }
1223 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1224 ac_abs_confdir=`(
1225 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1226 { (exit 1); exit 1; }; }
1227 pwd)`
1228 # When building in place, set srcdir=.
1229 if test "$ac_abs_confdir" = "$ac_pwd"; then
1230 srcdir=.
1232 # Remove unnecessary trailing slashes from srcdir.
1233 # Double slashes in file names in object file debugging info
1234 # mess up M-x gdb in Emacs.
1235 case $srcdir in
1236 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1237 esac
1238 for ac_var in $ac_precious_vars; do
1239 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1240 eval ac_env_${ac_var}_value=\$${ac_var}
1241 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1242 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1243 done
1246 # Report the --help message.
1248 if test "$ac_init_help" = "long"; then
1249 # Omit some internal or obsolete options to make the list less imposing.
1250 # This message is too long to be a string in the A/UX 3.1 sh.
1251 cat <<_ACEOF
1252 \`configure' configures python 2.7 to adapt to many kinds of systems.
1254 Usage: $0 [OPTION]... [VAR=VALUE]...
1256 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1257 VAR=VALUE. See below for descriptions of some of the useful variables.
1259 Defaults for the options are specified in brackets.
1261 Configuration:
1262 -h, --help display this help and exit
1263 --help=short display options specific to this package
1264 --help=recursive display the short help of all the included packages
1265 -V, --version display version information and exit
1266 -q, --quiet, --silent do not print \`checking...' messages
1267 --cache-file=FILE cache test results in FILE [disabled]
1268 -C, --config-cache alias for \`--cache-file=config.cache'
1269 -n, --no-create do not create output files
1270 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1272 Installation directories:
1273 --prefix=PREFIX install architecture-independent files in PREFIX
1274 [$ac_default_prefix]
1275 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1276 [PREFIX]
1278 By default, \`make install' will install all the files in
1279 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1280 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1281 for instance \`--prefix=\$HOME'.
1283 For better control, use the options below.
1285 Fine tuning of the installation directories:
1286 --bindir=DIR user executables [EPREFIX/bin]
1287 --sbindir=DIR system admin executables [EPREFIX/sbin]
1288 --libexecdir=DIR program executables [EPREFIX/libexec]
1289 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1290 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1291 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1292 --libdir=DIR object code libraries [EPREFIX/lib]
1293 --includedir=DIR C header files [PREFIX/include]
1294 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1295 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1296 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1297 --infodir=DIR info documentation [DATAROOTDIR/info]
1298 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1299 --mandir=DIR man documentation [DATAROOTDIR/man]
1300 --docdir=DIR documentation root [DATAROOTDIR/doc/python]
1301 --htmldir=DIR html documentation [DOCDIR]
1302 --dvidir=DIR dvi documentation [DOCDIR]
1303 --pdfdir=DIR pdf documentation [DOCDIR]
1304 --psdir=DIR ps documentation [DOCDIR]
1305 _ACEOF
1307 cat <<\_ACEOF
1308 _ACEOF
1311 if test -n "$ac_init_help"; then
1312 case $ac_init_help in
1313 short | recursive ) echo "Configuration of python 2.7:";;
1314 esac
1315 cat <<\_ACEOF
1317 Optional Features:
1318 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1319 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1320 --enable-universalsdk[=SDKDIR]
1321 Build against Mac OS X 10.4u SDK (ppc/i386)
1322 --enable-framework[=INSTALLDIR]
1323 Build (MacOSX|Darwin) framework
1324 --enable-shared disable/enable building shared python library
1325 --enable-profiling enable C-level code profiling
1326 --enable-toolbox-glue disable/enable MacOSX glue code for extensions
1327 --enable-ipv6 Enable ipv6 (with ipv4) support
1328 --disable-ipv6 Disable ipv6 support
1329 --enable-big-digits[=BITS]
1330 use big digits for Python longs [BITS=30]
1331 --enable-unicode[=ucs[24]]
1332 Enable Unicode strings (default is yes)
1334 Optional Packages:
1335 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1336 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1337 --with-universal-archs=ARCH
1338 select architectures for universal build ("32-bit",
1339 "64-bit" or "all")
1340 --with-framework-name=FRAMEWORK
1341 specify an alternate name of the framework built
1342 with --enable-framework
1343 --without-gcc never use gcc
1344 --with-cxx-main=<compiler>
1345 compile main() and link python executable with C++
1346 compiler
1347 --with-suffix=.exe set executable suffix
1348 --with-pydebug build with Py_DEBUG defined
1349 --with-libs='lib1 ...' link against additional libs
1350 --with-system-ffi build _ctypes module using an installed ffi library
1351 --with-dbmliborder=db1:db2:...
1352 order to check db backends for dbm. Valid value is a
1353 colon separated string with the backend names
1354 `ndbm', `gdbm' and `bdb'.
1355 --with-signal-module disable/enable signal module
1356 --with-dec-threads use DEC Alpha/OSF1 thread-safe libraries
1357 --with(out)-threads[=DIRECTORY]
1358 disable/enable thread support
1359 --with(out)-thread[=DIRECTORY]
1360 deprecated; use --with(out)-threads
1361 --with-pth use GNU pth threading libraries
1362 --with(out)-doc-strings disable/enable documentation strings
1363 --with(out)-tsc enable/disable timestamp counter profile
1364 --with(out)-pymalloc disable/enable specialized mallocs
1365 --with-wctype-functions use wctype.h functions
1366 --with-fpectl enable SIGFPE catching
1367 --with-libm=STRING math library
1368 --with-libc=STRING C library
1370 Some influential environment variables:
1371 CC C compiler command
1372 CFLAGS C compiler flags
1373 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1374 nonstandard directory <lib dir>
1375 LIBS libraries to pass to the linker, e.g. -l<library>
1376 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1377 you have headers in a nonstandard directory <include dir>
1378 CPP C preprocessor
1380 Use these variables to override the choices made by `configure' or to help
1381 it to find libraries and programs with nonstandard names/locations.
1383 Report bugs to <http://bugs.python.org/>.
1384 _ACEOF
1385 ac_status=$?
1388 if test "$ac_init_help" = "recursive"; then
1389 # If there are subdirs, report their specific --help.
1390 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1391 test -d "$ac_dir" || continue
1392 ac_builddir=.
1394 case "$ac_dir" in
1395 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1397 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1398 # A ".." for each directory in $ac_dir_suffix.
1399 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1400 case $ac_top_builddir_sub in
1401 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1402 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1403 esac ;;
1404 esac
1405 ac_abs_top_builddir=$ac_pwd
1406 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1407 # for backward compatibility:
1408 ac_top_builddir=$ac_top_build_prefix
1410 case $srcdir in
1411 .) # We are building in place.
1412 ac_srcdir=.
1413 ac_top_srcdir=$ac_top_builddir_sub
1414 ac_abs_top_srcdir=$ac_pwd ;;
1415 [\\/]* | ?:[\\/]* ) # Absolute name.
1416 ac_srcdir=$srcdir$ac_dir_suffix;
1417 ac_top_srcdir=$srcdir
1418 ac_abs_top_srcdir=$srcdir ;;
1419 *) # Relative name.
1420 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1421 ac_top_srcdir=$ac_top_build_prefix$srcdir
1422 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1423 esac
1424 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1426 cd "$ac_dir" || { ac_status=$?; continue; }
1427 # Check for guested configure.
1428 if test -f "$ac_srcdir/configure.gnu"; then
1429 echo &&
1430 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1431 elif test -f "$ac_srcdir/configure"; then
1432 echo &&
1433 $SHELL "$ac_srcdir/configure" --help=recursive
1434 else
1435 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1436 fi || ac_status=$?
1437 cd "$ac_pwd" || { ac_status=$?; break; }
1438 done
1441 test -n "$ac_init_help" && exit $ac_status
1442 if $ac_init_version; then
1443 cat <<\_ACEOF
1444 python configure 2.7
1445 generated by GNU Autoconf 2.61
1447 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1448 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1449 This configure script is free software; the Free Software Foundation
1450 gives unlimited permission to copy, distribute and modify it.
1451 _ACEOF
1452 exit
1454 cat >config.log <<_ACEOF
1455 This file contains any messages produced by compilers while
1456 running configure, to aid debugging if configure makes a mistake.
1458 It was created by python $as_me 2.7, which was
1459 generated by GNU Autoconf 2.61. Invocation command line was
1461 $ $0 $@
1463 _ACEOF
1464 exec 5>>config.log
1466 cat <<_ASUNAME
1467 ## --------- ##
1468 ## Platform. ##
1469 ## --------- ##
1471 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1472 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1473 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1474 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1475 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1477 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1478 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1480 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1481 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1482 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1483 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1484 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1485 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1486 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1488 _ASUNAME
1490 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1491 for as_dir in $PATH
1493 IFS=$as_save_IFS
1494 test -z "$as_dir" && as_dir=.
1495 echo "PATH: $as_dir"
1496 done
1497 IFS=$as_save_IFS
1499 } >&5
1501 cat >&5 <<_ACEOF
1504 ## ----------- ##
1505 ## Core tests. ##
1506 ## ----------- ##
1508 _ACEOF
1511 # Keep a trace of the command line.
1512 # Strip out --no-create and --no-recursion so they do not pile up.
1513 # Strip out --silent because we don't want to record it for future runs.
1514 # Also quote any args containing shell meta-characters.
1515 # Make two passes to allow for proper duplicate-argument suppression.
1516 ac_configure_args=
1517 ac_configure_args0=
1518 ac_configure_args1=
1519 ac_must_keep_next=false
1520 for ac_pass in 1 2
1522 for ac_arg
1524 case $ac_arg in
1525 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1526 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1527 | -silent | --silent | --silen | --sile | --sil)
1528 continue ;;
1529 *\'*)
1530 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1531 esac
1532 case $ac_pass in
1533 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1535 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1536 if test $ac_must_keep_next = true; then
1537 ac_must_keep_next=false # Got value, back to normal.
1538 else
1539 case $ac_arg in
1540 *=* | --config-cache | -C | -disable-* | --disable-* \
1541 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1542 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1543 | -with-* | --with-* | -without-* | --without-* | --x)
1544 case "$ac_configure_args0 " in
1545 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1546 esac
1548 -* ) ac_must_keep_next=true ;;
1549 esac
1551 ac_configure_args="$ac_configure_args '$ac_arg'"
1553 esac
1554 done
1555 done
1556 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1557 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1559 # When interrupted or exit'd, cleanup temporary files, and complete
1560 # config.log. We remove comments because anyway the quotes in there
1561 # would cause problems or look ugly.
1562 # WARNING: Use '\'' to represent an apostrophe within the trap.
1563 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1564 trap 'exit_status=$?
1565 # Save into config.log some information that might help in debugging.
1567 echo
1569 cat <<\_ASBOX
1570 ## ---------------- ##
1571 ## Cache variables. ##
1572 ## ---------------- ##
1573 _ASBOX
1574 echo
1575 # The following way of writing the cache mishandles newlines in values,
1577 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1578 eval ac_val=\$$ac_var
1579 case $ac_val in #(
1580 *${as_nl}*)
1581 case $ac_var in #(
1582 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1583 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1584 esac
1585 case $ac_var in #(
1586 _ | IFS | as_nl) ;; #(
1587 *) $as_unset $ac_var ;;
1588 esac ;;
1589 esac
1590 done
1591 (set) 2>&1 |
1592 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1593 *${as_nl}ac_space=\ *)
1594 sed -n \
1595 "s/'\''/'\''\\\\'\'''\''/g;
1596 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1597 ;; #(
1599 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1601 esac |
1602 sort
1604 echo
1606 cat <<\_ASBOX
1607 ## ----------------- ##
1608 ## Output variables. ##
1609 ## ----------------- ##
1610 _ASBOX
1611 echo
1612 for ac_var in $ac_subst_vars
1614 eval ac_val=\$$ac_var
1615 case $ac_val in
1616 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1617 esac
1618 echo "$ac_var='\''$ac_val'\''"
1619 done | sort
1620 echo
1622 if test -n "$ac_subst_files"; then
1623 cat <<\_ASBOX
1624 ## ------------------- ##
1625 ## File substitutions. ##
1626 ## ------------------- ##
1627 _ASBOX
1628 echo
1629 for ac_var in $ac_subst_files
1631 eval ac_val=\$$ac_var
1632 case $ac_val in
1633 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1634 esac
1635 echo "$ac_var='\''$ac_val'\''"
1636 done | sort
1637 echo
1640 if test -s confdefs.h; then
1641 cat <<\_ASBOX
1642 ## ----------- ##
1643 ## confdefs.h. ##
1644 ## ----------- ##
1645 _ASBOX
1646 echo
1647 cat confdefs.h
1648 echo
1650 test "$ac_signal" != 0 &&
1651 echo "$as_me: caught signal $ac_signal"
1652 echo "$as_me: exit $exit_status"
1653 } >&5
1654 rm -f core *.core core.conftest.* &&
1655 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1656 exit $exit_status
1658 for ac_signal in 1 2 13 15; do
1659 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1660 done
1661 ac_signal=0
1663 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1664 rm -f -r conftest* confdefs.h
1666 # Predefined preprocessor variables.
1668 cat >>confdefs.h <<_ACEOF
1669 #define PACKAGE_NAME "$PACKAGE_NAME"
1670 _ACEOF
1673 cat >>confdefs.h <<_ACEOF
1674 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1675 _ACEOF
1678 cat >>confdefs.h <<_ACEOF
1679 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1680 _ACEOF
1683 cat >>confdefs.h <<_ACEOF
1684 #define PACKAGE_STRING "$PACKAGE_STRING"
1685 _ACEOF
1688 cat >>confdefs.h <<_ACEOF
1689 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1690 _ACEOF
1693 # Let the site file select an alternate cache file if it wants to.
1694 # Prefer explicitly selected file to automatically selected ones.
1695 if test -n "$CONFIG_SITE"; then
1696 set x "$CONFIG_SITE"
1697 elif test "x$prefix" != xNONE; then
1698 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1699 else
1700 set x "$ac_default_prefix/share/config.site" \
1701 "$ac_default_prefix/etc/config.site"
1703 shift
1704 for ac_site_file
1706 if test -r "$ac_site_file"; then
1707 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1708 echo "$as_me: loading site script $ac_site_file" >&6;}
1709 sed 's/^/| /' "$ac_site_file" >&5
1710 . "$ac_site_file"
1712 done
1714 if test -r "$cache_file"; then
1715 # Some versions of bash will fail to source /dev/null (special
1716 # files actually), so we avoid doing that.
1717 if test -f "$cache_file"; then
1718 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1719 echo "$as_me: loading cache $cache_file" >&6;}
1720 case $cache_file in
1721 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1722 *) . "./$cache_file";;
1723 esac
1725 else
1726 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1727 echo "$as_me: creating cache $cache_file" >&6;}
1728 >$cache_file
1731 # Check that the precious variables saved in the cache have kept the same
1732 # value.
1733 ac_cache_corrupted=false
1734 for ac_var in $ac_precious_vars; do
1735 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1736 eval ac_new_set=\$ac_env_${ac_var}_set
1737 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1738 eval ac_new_val=\$ac_env_${ac_var}_value
1739 case $ac_old_set,$ac_new_set in
1740 set,)
1741 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1742 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1743 ac_cache_corrupted=: ;;
1744 ,set)
1745 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1746 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1747 ac_cache_corrupted=: ;;
1748 ,);;
1750 if test "x$ac_old_val" != "x$ac_new_val"; then
1751 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1752 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1753 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1754 echo "$as_me: former value: $ac_old_val" >&2;}
1755 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1756 echo "$as_me: current value: $ac_new_val" >&2;}
1757 ac_cache_corrupted=:
1758 fi;;
1759 esac
1760 # Pass precious variables to config.status.
1761 if test "$ac_new_set" = set; then
1762 case $ac_new_val in
1763 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1764 *) ac_arg=$ac_var=$ac_new_val ;;
1765 esac
1766 case " $ac_configure_args " in
1767 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1768 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1769 esac
1771 done
1772 if $ac_cache_corrupted; then
1773 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1774 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1775 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1776 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1777 { (exit 1); exit 1; }; }
1804 ac_ext=c
1805 ac_cpp='$CPP $CPPFLAGS'
1806 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1807 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1808 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1812 ac_config_headers="$ac_config_headers pyconfig.h"
1816 if test "$prefix" != "/"; then
1817 prefix=`echo "$prefix" | sed -e 's/\/$//g'`
1825 # We don't use PACKAGE_ variables, and they cause conflicts
1826 # with other autoconf-based packages that include Python.h
1827 grep -v 'define PACKAGE_' <confdefs.h >confdefs.h.new
1828 rm confdefs.h
1829 mv confdefs.h.new confdefs.h
1832 VERSION=2.7
1835 SOVERSION=1.0
1837 # The later defininition of _XOPEN_SOURCE disables certain features
1838 # on Linux, so we need _GNU_SOURCE to re-enable them (makedev, tm_zone).
1840 cat >>confdefs.h <<\_ACEOF
1841 #define _GNU_SOURCE 1
1842 _ACEOF
1845 # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables
1846 # certain features on NetBSD, so we need _NETBSD_SOURCE to re-enable
1847 # them.
1849 cat >>confdefs.h <<\_ACEOF
1850 #define _NETBSD_SOURCE 1
1851 _ACEOF
1854 # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables
1855 # certain features on FreeBSD, so we need __BSD_VISIBLE to re-enable
1856 # them.
1858 cat >>confdefs.h <<\_ACEOF
1859 #define __BSD_VISIBLE 1
1860 _ACEOF
1863 # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables
1864 # u_int on Irix 5.3. Defining _BSD_TYPES brings it back.
1866 cat >>confdefs.h <<\_ACEOF
1867 #define _BSD_TYPES 1
1868 _ACEOF
1871 # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables
1872 # certain features on Mac OS X, so we need _DARWIN_C_SOURCE to re-enable
1873 # them.
1875 cat >>confdefs.h <<\_ACEOF
1876 #define _DARWIN_C_SOURCE 1
1877 _ACEOF
1881 define_xopen_source=yes
1883 # Arguments passed to configure.
1885 CONFIG_ARGS="$ac_configure_args"
1887 # Check whether --enable-universalsdk was given.
1888 if test "${enable_universalsdk+set}" = set; then
1889 enableval=$enable_universalsdk;
1890 case $enableval in
1891 yes)
1892 enableval=/Developer/SDKs/MacOSX10.4u.sdk
1894 esac
1895 case $enableval in
1897 UNIVERSALSDK=
1898 enable_universalsdk=
1901 UNIVERSALSDK=$enableval
1903 esac
1905 else
1907 UNIVERSALSDK=
1908 enable_universalsdk=
1914 ARCH_RUN_32BIT=
1917 UNIVERSAL_ARCHS="32-bit"
1918 { echo "$as_me:$LINENO: checking for --with-universal-archs" >&5
1919 echo $ECHO_N "checking for --with-universal-archs... $ECHO_C" >&6; }
1921 # Check whether --with-universal-archs was given.
1922 if test "${with_universal_archs+set}" = set; then
1923 withval=$with_universal_archs;
1924 { echo "$as_me:$LINENO: result: $withval" >&5
1925 echo "${ECHO_T}$withval" >&6; }
1926 UNIVERSAL_ARCHS="$withval"
1928 else
1930 { echo "$as_me:$LINENO: result: 32-bit" >&5
1931 echo "${ECHO_T}32-bit" >&6; }
1939 # Check whether --with-framework-name was given.
1940 if test "${with_framework_name+set}" = set; then
1941 withval=$with_framework_name;
1942 PYTHONFRAMEWORK=${withval}
1943 PYTHONFRAMEWORKDIR=${withval}.framework
1944 PYTHONFRAMEWORKIDENTIFIER=org.python.`echo $withval | tr 'A-Z' 'a-z'`
1946 else
1948 PYTHONFRAMEWORK=Python
1949 PYTHONFRAMEWORKDIR=Python.framework
1950 PYTHONFRAMEWORKIDENTIFIER=org.python.python
1954 # Check whether --enable-framework was given.
1955 if test "${enable_framework+set}" = set; then
1956 enableval=$enable_framework;
1957 case $enableval in
1958 yes)
1959 enableval=/Library/Frameworks
1960 esac
1961 case $enableval in
1963 PYTHONFRAMEWORK=
1964 PYTHONFRAMEWORKDIR=no-framework
1965 PYTHONFRAMEWORKPREFIX=
1966 PYTHONFRAMEWORKINSTALLDIR=
1967 FRAMEWORKINSTALLFIRST=
1968 FRAMEWORKINSTALLLAST=
1969 FRAMEWORKALTINSTALLFIRST=
1970 FRAMEWORKALTINSTALLLAST=
1971 if test "x${prefix}" = "xNONE"; then
1972 FRAMEWORKUNIXTOOLSPREFIX="${ac_default_prefix}"
1973 else
1974 FRAMEWORKUNIXTOOLSPREFIX="${prefix}"
1976 enable_framework=
1979 PYTHONFRAMEWORKPREFIX=$enableval
1980 PYTHONFRAMEWORKINSTALLDIR=$PYTHONFRAMEWORKPREFIX/$PYTHONFRAMEWORKDIR
1981 FRAMEWORKINSTALLFIRST="frameworkinstallstructure"
1982 FRAMEWORKALTINSTALLFIRST="frameworkinstallstructure bininstall maninstall"
1983 if test "$UNIVERSAL_ARCHS" = "all"
1984 then
1985 FRAMEWORKINSTALLLAST="frameworkinstallmaclib frameworkinstallapps4way frameworkinstallunixtools4way"
1986 FRAMEWORKALTINSTALLLAST="frameworkinstallmaclib frameworkinstallapps4way frameworkaltinstallunixtools4way"
1987 else
1988 FRAMEWORKINSTALLLAST="frameworkinstallmaclib frameworkinstallapps frameworkinstallunixtools"
1989 FRAMEWORKALTINSTALLLAST="frameworkinstallmaclib frameworkinstallapps frameworkaltinstallunixtools"
1992 if test "x${prefix}" = "xNONE" ; then
1993 FRAMEWORKUNIXTOOLSPREFIX="${ac_default_prefix}"
1994 else
1995 FRAMEWORKUNIXTOOLSPREFIX="${prefix}"
1997 prefix=$PYTHONFRAMEWORKINSTALLDIR/Versions/$VERSION
1999 # Add files for Mac specific code to the list of output
2000 # files:
2001 ac_config_files="$ac_config_files Mac/Makefile"
2003 ac_config_files="$ac_config_files Mac/PythonLauncher/Makefile"
2005 ac_config_files="$ac_config_files Mac/IDLE/Makefile"
2007 ac_config_files="$ac_config_files Mac/Resources/framework/Info.plist"
2009 ac_config_files="$ac_config_files Mac/Resources/app/Info.plist"
2011 esac
2013 else
2015 PYTHONFRAMEWORK=
2016 PYTHONFRAMEWORKDIR=no-framework
2017 PYTHONFRAMEWORKPREFIX=
2018 PYTHONFRAMEWORKINSTALLDIR=
2019 FRAMEWORKINSTALLFIRST=
2020 FRAMEWORKINSTALLLAST=
2021 FRAMEWORKALTINSTALLFIRST=
2022 FRAMEWORKALTINSTALLLAST=
2023 if test "x${prefix}" = "xNONE" ; then
2024 FRAMEWORKUNIXTOOLSPREFIX="${ac_default_prefix}"
2025 else
2026 FRAMEWORKUNIXTOOLSPREFIX="${prefix}"
2028 enable_framework=
2030 if test "$UNIVERSAL_ARCHS" = "all"
2031 then
2032 FRAMEWORKINSTALLLAST=update4wayuniversal
2033 FRAMEWORKALTINSTALLLAST=update4wayuniversal
2049 ##AC_ARG_WITH(dyld,
2050 ## AC_HELP_STRING(--with-dyld,
2051 ## Use (OpenStep|Rhapsody) dynamic linker))
2053 # Set name for machine-dependent library files
2055 { echo "$as_me:$LINENO: checking MACHDEP" >&5
2056 echo $ECHO_N "checking MACHDEP... $ECHO_C" >&6; }
2057 if test -z "$MACHDEP"
2058 then
2059 ac_sys_system=`uname -s`
2060 if test "$ac_sys_system" = "AIX" -o "$ac_sys_system" = "Monterey64" \
2061 -o "$ac_sys_system" = "UnixWare" -o "$ac_sys_system" = "OpenUNIX"; then
2062 ac_sys_release=`uname -v`
2063 else
2064 ac_sys_release=`uname -r`
2066 ac_md_system=`echo $ac_sys_system |
2067 tr -d '/ ' | tr '[A-Z]' '[a-z]'`
2068 ac_md_release=`echo $ac_sys_release |
2069 tr -d '/ ' | sed 's/^[A-Z]\.//' | sed 's/\..*//'`
2070 MACHDEP="$ac_md_system$ac_md_release"
2072 case $MACHDEP in
2073 cygwin*) MACHDEP="cygwin";;
2074 darwin*) MACHDEP="darwin";;
2075 atheos*) MACHDEP="atheos";;
2076 irix646) MACHDEP="irix6";;
2077 '') MACHDEP="unknown";;
2078 esac
2081 # Some systems cannot stand _XOPEN_SOURCE being defined at all; they
2082 # disable features if it is defined, without any means to access these
2083 # features as extensions. For these systems, we skip the definition of
2084 # _XOPEN_SOURCE. Before adding a system to the list to gain access to
2085 # some feature, make sure there is no alternative way to access this
2086 # feature. Also, when using wildcards, make sure you have verified the
2087 # need for not defining _XOPEN_SOURCE on all systems matching the
2088 # wildcard, and that the wildcard does not include future systems
2089 # (which may remove their limitations).
2090 case $ac_sys_system/$ac_sys_release in
2091 # On OpenBSD, select(2) is not available if _XOPEN_SOURCE is defined,
2092 # even though select is a POSIX function. Reported by J. Ribbens.
2093 # Reconfirmed for OpenBSD 3.3 by Zachary Hamm, for 3.4 by Jason Ish.
2094 OpenBSD/2.* | OpenBSD/3.[0123456789] | OpenBSD/4.[0123])
2095 define_xopen_source=no
2096 # OpenBSD undoes our definition of __BSD_VISIBLE if _XOPEN_SOURCE is
2097 # also defined. This can be overridden by defining _BSD_SOURCE
2098 # As this has a different meaning on Linux, only define it on OpenBSD
2100 cat >>confdefs.h <<\_ACEOF
2101 #define _BSD_SOURCE 1
2102 _ACEOF
2105 # Defining _XOPEN_SOURCE on NetBSD version prior to the introduction of
2106 # _NETBSD_SOURCE disables certain features (eg. setgroups). Reported by
2107 # Marc Recht
2108 NetBSD/1.5 | NetBSD/1.5.* | NetBSD/1.6 | NetBSD/1.6.* | NetBSD/1.6[A-S])
2109 define_xopen_source=no;;
2110 # On Solaris 2.6, sys/wait.h is inconsistent in the usage
2111 # of union __?sigval. Reported by Stuart Bishop.
2112 SunOS/5.6)
2113 define_xopen_source=no;;
2114 # On UnixWare 7, u_long is never defined with _XOPEN_SOURCE,
2115 # but used in /usr/include/netinet/tcp.h. Reported by Tim Rice.
2116 # Reconfirmed for 7.1.4 by Martin v. Loewis.
2117 OpenUNIX/8.0.0| UnixWare/7.1.[0-4])
2118 define_xopen_source=no;;
2119 # On OpenServer 5, u_short is never defined with _XOPEN_SOURCE,
2120 # but used in struct sockaddr.sa_family. Reported by Tim Rice.
2121 SCO_SV/3.2)
2122 define_xopen_source=no;;
2123 # On FreeBSD 4, the math functions C89 does not cover are never defined
2124 # with _XOPEN_SOURCE and __BSD_VISIBLE does not re-enable them.
2125 FreeBSD/4.*)
2126 define_xopen_source=no;;
2127 # On MacOS X 10.2, a bug in ncurses.h means that it craps out if
2128 # _XOPEN_EXTENDED_SOURCE is defined. Apparently, this is fixed in 10.3, which
2129 # identifies itself as Darwin/7.*
2130 # On Mac OS X 10.4, defining _POSIX_C_SOURCE or _XOPEN_SOURCE
2131 # disables platform specific features beyond repair.
2132 # On Mac OS X 10.3, defining _POSIX_C_SOURCE or _XOPEN_SOURCE
2133 # has no effect, don't bother defining them
2134 Darwin/[6789].*)
2135 define_xopen_source=no;;
2136 # On AIX 4 and 5.1, mbstate_t is defined only when _XOPEN_SOURCE == 500 but
2137 # used in wcsnrtombs() and mbsnrtowcs() even if _XOPEN_SOURCE is not defined
2138 # or has another value. By not (re)defining it, the defaults come in place.
2139 AIX/4)
2140 define_xopen_source=no;;
2141 AIX/5)
2142 if test `uname -r` -eq 1; then
2143 define_xopen_source=no
2146 # On QNX 6.3.2, defining _XOPEN_SOURCE prevents netdb.h from
2147 # defining NI_NUMERICHOST.
2148 QNX/6.3.2)
2149 define_xopen_source=no
2152 esac
2154 if test $define_xopen_source = yes
2155 then
2156 # On Solaris w/ g++ it appears that _XOPEN_SOURCE has to be
2157 # defined precisely as g++ defines it
2158 # Furthermore, on Solaris 10, XPG6 requires the use of a C99
2159 # compiler
2160 case $ac_sys_system/$ac_sys_release in
2161 SunOS/5.8|SunOS/5.9|SunOS/5.10)
2163 cat >>confdefs.h <<\_ACEOF
2164 #define _XOPEN_SOURCE 500
2165 _ACEOF
2170 cat >>confdefs.h <<\_ACEOF
2171 #define _XOPEN_SOURCE 600
2172 _ACEOF
2175 esac
2177 # On Tru64 Unix 4.0F, defining _XOPEN_SOURCE also requires
2178 # definition of _XOPEN_SOURCE_EXTENDED and _POSIX_C_SOURCE, or else
2179 # several APIs are not declared. Since this is also needed in some
2180 # cases for HP-UX, we define it globally.
2181 # except for Solaris 10, where it must not be defined,
2182 # as it implies XPG4.2
2183 case $ac_sys_system/$ac_sys_release in
2184 SunOS/5.10)
2188 cat >>confdefs.h <<\_ACEOF
2189 #define _XOPEN_SOURCE_EXTENDED 1
2190 _ACEOF
2193 esac
2196 cat >>confdefs.h <<\_ACEOF
2197 #define _POSIX_C_SOURCE 200112L
2198 _ACEOF
2204 # SGI compilers allow the specification of the both the ABI and the
2205 # ISA on the command line. Depending on the values of these switches,
2206 # different and often incompatable code will be generated.
2208 # The SGI_ABI variable can be used to modify the CC and LDFLAGS and
2209 # thus supply support for various ABI/ISA combinations. The MACHDEP
2210 # variable is also adjusted.
2213 if test ! -z "$SGI_ABI"
2214 then
2215 CC="cc $SGI_ABI"
2216 LDFLAGS="$SGI_ABI $LDFLAGS"
2217 MACHDEP=`echo "${MACHDEP}${SGI_ABI}" | sed 's/ *//g'`
2219 { echo "$as_me:$LINENO: result: $MACHDEP" >&5
2220 echo "${ECHO_T}$MACHDEP" >&6; }
2222 # And add extra plat-mac for darwin
2225 { echo "$as_me:$LINENO: checking EXTRAPLATDIR" >&5
2226 echo $ECHO_N "checking EXTRAPLATDIR... $ECHO_C" >&6; }
2227 if test -z "$EXTRAPLATDIR"
2228 then
2229 case $MACHDEP in
2230 darwin)
2231 EXTRAPLATDIR="\$(PLATMACDIRS)"
2232 EXTRAMACHDEPPATH="\$(PLATMACPATH)"
2235 EXTRAPLATDIR=""
2236 EXTRAMACHDEPPATH=""
2238 esac
2240 { echo "$as_me:$LINENO: result: $EXTRAPLATDIR" >&5
2241 echo "${ECHO_T}$EXTRAPLATDIR" >&6; }
2243 # Record the configure-time value of MACOSX_DEPLOYMENT_TARGET,
2244 # it may influence the way we can build extensions, so distutils
2245 # needs to check it
2248 CONFIGURE_MACOSX_DEPLOYMENT_TARGET=
2249 EXPORT_MACOSX_DEPLOYMENT_TARGET='#'
2251 { echo "$as_me:$LINENO: checking machine type as reported by uname -m" >&5
2252 echo $ECHO_N "checking machine type as reported by uname -m... $ECHO_C" >&6; }
2253 ac_sys_machine=`uname -m`
2254 { echo "$as_me:$LINENO: result: $ac_sys_machine" >&5
2255 echo "${ECHO_T}$ac_sys_machine" >&6; }
2257 # checks for alternative programs
2259 # compiler flags are generated in two sets, BASECFLAGS and OPT. OPT is just
2260 # for debug/optimization stuff. BASECFLAGS is for flags that are required
2261 # just to get things to compile and link. Users are free to override OPT
2262 # when running configure or make. The build should not break if they do.
2263 # BASECFLAGS should generally not be messed with, however.
2265 # XXX shouldn't some/most/all of this code be merged with the stuff later
2266 # on that fiddles with OPT and BASECFLAGS?
2267 { echo "$as_me:$LINENO: checking for --without-gcc" >&5
2268 echo $ECHO_N "checking for --without-gcc... $ECHO_C" >&6; }
2270 # Check whether --with-gcc was given.
2271 if test "${with_gcc+set}" = set; then
2272 withval=$with_gcc;
2273 case $withval in
2274 no) CC=${CC:-cc}
2275 without_gcc=yes;;
2276 yes) CC=gcc
2277 without_gcc=no;;
2278 *) CC=$withval
2279 without_gcc=$withval;;
2280 esac
2281 else
2283 case $ac_sys_system in
2284 AIX*) CC=cc_r
2285 without_gcc=;;
2286 BeOS*)
2287 case $BE_HOST_CPU in
2288 ppc)
2289 CC=mwcc
2290 without_gcc=yes
2291 BASECFLAGS="$BASECFLAGS -export pragma"
2292 OPT="$OPT -O"
2293 LDFLAGS="$LDFLAGS -nodup"
2295 x86)
2296 CC=gcc
2297 without_gcc=no
2298 OPT="$OPT -O"
2301 { { echo "$as_me:$LINENO: error: Unknown BeOS platform \"$BE_HOST_CPU\"" >&5
2302 echo "$as_me: error: Unknown BeOS platform \"$BE_HOST_CPU\"" >&2;}
2303 { (exit 1); exit 1; }; }
2305 esac
2306 AR="\$(srcdir)/Modules/ar_beos"
2307 RANLIB=:
2309 Monterey*)
2310 RANLIB=:
2311 without_gcc=;;
2312 *) without_gcc=no;;
2313 esac
2316 { echo "$as_me:$LINENO: result: $without_gcc" >&5
2317 echo "${ECHO_T}$without_gcc" >&6; }
2319 # If the user switches compilers, we can't believe the cache
2320 if test ! -z "$ac_cv_prog_CC" -a ! -z "$CC" -a "$CC" != "$ac_cv_prog_CC"
2321 then
2322 { { echo "$as_me:$LINENO: error: cached CC is different -- throw away $cache_file
2323 (it is also a good idea to do 'make clean' before compiling)" >&5
2324 echo "$as_me: error: cached CC is different -- throw away $cache_file
2325 (it is also a good idea to do 'make clean' before compiling)" >&2;}
2326 { (exit 1); exit 1; }; }
2329 ac_ext=c
2330 ac_cpp='$CPP $CPPFLAGS'
2331 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2332 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2333 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2334 if test -n "$ac_tool_prefix"; then
2335 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2336 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2337 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2338 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2339 if test "${ac_cv_prog_CC+set}" = set; then
2340 echo $ECHO_N "(cached) $ECHO_C" >&6
2341 else
2342 if test -n "$CC"; then
2343 ac_cv_prog_CC="$CC" # Let the user override the test.
2344 else
2345 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2346 for as_dir in $PATH
2348 IFS=$as_save_IFS
2349 test -z "$as_dir" && as_dir=.
2350 for ac_exec_ext in '' $ac_executable_extensions; do
2351 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2352 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2353 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2354 break 2
2356 done
2357 done
2358 IFS=$as_save_IFS
2362 CC=$ac_cv_prog_CC
2363 if test -n "$CC"; then
2364 { echo "$as_me:$LINENO: result: $CC" >&5
2365 echo "${ECHO_T}$CC" >&6; }
2366 else
2367 { echo "$as_me:$LINENO: result: no" >&5
2368 echo "${ECHO_T}no" >&6; }
2373 if test -z "$ac_cv_prog_CC"; then
2374 ac_ct_CC=$CC
2375 # Extract the first word of "gcc", so it can be a program name with args.
2376 set dummy gcc; ac_word=$2
2377 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2378 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2379 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2380 echo $ECHO_N "(cached) $ECHO_C" >&6
2381 else
2382 if test -n "$ac_ct_CC"; then
2383 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2384 else
2385 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2386 for as_dir in $PATH
2388 IFS=$as_save_IFS
2389 test -z "$as_dir" && as_dir=.
2390 for ac_exec_ext in '' $ac_executable_extensions; do
2391 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2392 ac_cv_prog_ac_ct_CC="gcc"
2393 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2394 break 2
2396 done
2397 done
2398 IFS=$as_save_IFS
2402 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2403 if test -n "$ac_ct_CC"; then
2404 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2405 echo "${ECHO_T}$ac_ct_CC" >&6; }
2406 else
2407 { echo "$as_me:$LINENO: result: no" >&5
2408 echo "${ECHO_T}no" >&6; }
2411 if test "x$ac_ct_CC" = x; then
2412 CC=""
2413 else
2414 case $cross_compiling:$ac_tool_warned in
2415 yes:)
2416 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2417 whose name does not start with the host triplet. If you think this
2418 configuration is useful to you, please write to autoconf@gnu.org." >&5
2419 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2420 whose name does not start with the host triplet. If you think this
2421 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2422 ac_tool_warned=yes ;;
2423 esac
2424 CC=$ac_ct_CC
2426 else
2427 CC="$ac_cv_prog_CC"
2430 if test -z "$CC"; then
2431 if test -n "$ac_tool_prefix"; then
2432 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2433 set dummy ${ac_tool_prefix}cc; ac_word=$2
2434 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2435 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2436 if test "${ac_cv_prog_CC+set}" = set; then
2437 echo $ECHO_N "(cached) $ECHO_C" >&6
2438 else
2439 if test -n "$CC"; then
2440 ac_cv_prog_CC="$CC" # Let the user override the test.
2441 else
2442 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2443 for as_dir in $PATH
2445 IFS=$as_save_IFS
2446 test -z "$as_dir" && as_dir=.
2447 for ac_exec_ext in '' $ac_executable_extensions; do
2448 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2449 ac_cv_prog_CC="${ac_tool_prefix}cc"
2450 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2451 break 2
2453 done
2454 done
2455 IFS=$as_save_IFS
2459 CC=$ac_cv_prog_CC
2460 if test -n "$CC"; then
2461 { echo "$as_me:$LINENO: result: $CC" >&5
2462 echo "${ECHO_T}$CC" >&6; }
2463 else
2464 { echo "$as_me:$LINENO: result: no" >&5
2465 echo "${ECHO_T}no" >&6; }
2471 if test -z "$CC"; then
2472 # Extract the first word of "cc", so it can be a program name with args.
2473 set dummy cc; ac_word=$2
2474 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2475 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2476 if test "${ac_cv_prog_CC+set}" = set; then
2477 echo $ECHO_N "(cached) $ECHO_C" >&6
2478 else
2479 if test -n "$CC"; then
2480 ac_cv_prog_CC="$CC" # Let the user override the test.
2481 else
2482 ac_prog_rejected=no
2483 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2484 for as_dir in $PATH
2486 IFS=$as_save_IFS
2487 test -z "$as_dir" && as_dir=.
2488 for ac_exec_ext in '' $ac_executable_extensions; do
2489 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2490 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2491 ac_prog_rejected=yes
2492 continue
2494 ac_cv_prog_CC="cc"
2495 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2496 break 2
2498 done
2499 done
2500 IFS=$as_save_IFS
2502 if test $ac_prog_rejected = yes; then
2503 # We found a bogon in the path, so make sure we never use it.
2504 set dummy $ac_cv_prog_CC
2505 shift
2506 if test $# != 0; then
2507 # We chose a different compiler from the bogus one.
2508 # However, it has the same basename, so the bogon will be chosen
2509 # first if we set CC to just the basename; use the full file name.
2510 shift
2511 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2516 CC=$ac_cv_prog_CC
2517 if test -n "$CC"; then
2518 { echo "$as_me:$LINENO: result: $CC" >&5
2519 echo "${ECHO_T}$CC" >&6; }
2520 else
2521 { echo "$as_me:$LINENO: result: no" >&5
2522 echo "${ECHO_T}no" >&6; }
2527 if test -z "$CC"; then
2528 if test -n "$ac_tool_prefix"; then
2529 for ac_prog in cl.exe
2531 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2532 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2533 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2534 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2535 if test "${ac_cv_prog_CC+set}" = set; then
2536 echo $ECHO_N "(cached) $ECHO_C" >&6
2537 else
2538 if test -n "$CC"; then
2539 ac_cv_prog_CC="$CC" # Let the user override the test.
2540 else
2541 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2542 for as_dir in $PATH
2544 IFS=$as_save_IFS
2545 test -z "$as_dir" && as_dir=.
2546 for ac_exec_ext in '' $ac_executable_extensions; do
2547 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2548 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2549 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2550 break 2
2552 done
2553 done
2554 IFS=$as_save_IFS
2558 CC=$ac_cv_prog_CC
2559 if test -n "$CC"; then
2560 { echo "$as_me:$LINENO: result: $CC" >&5
2561 echo "${ECHO_T}$CC" >&6; }
2562 else
2563 { echo "$as_me:$LINENO: result: no" >&5
2564 echo "${ECHO_T}no" >&6; }
2568 test -n "$CC" && break
2569 done
2571 if test -z "$CC"; then
2572 ac_ct_CC=$CC
2573 for ac_prog in cl.exe
2575 # Extract the first word of "$ac_prog", so it can be a program name with args.
2576 set dummy $ac_prog; ac_word=$2
2577 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2578 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2579 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2580 echo $ECHO_N "(cached) $ECHO_C" >&6
2581 else
2582 if test -n "$ac_ct_CC"; then
2583 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2584 else
2585 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2586 for as_dir in $PATH
2588 IFS=$as_save_IFS
2589 test -z "$as_dir" && as_dir=.
2590 for ac_exec_ext in '' $ac_executable_extensions; do
2591 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2592 ac_cv_prog_ac_ct_CC="$ac_prog"
2593 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2594 break 2
2596 done
2597 done
2598 IFS=$as_save_IFS
2602 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2603 if test -n "$ac_ct_CC"; then
2604 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2605 echo "${ECHO_T}$ac_ct_CC" >&6; }
2606 else
2607 { echo "$as_me:$LINENO: result: no" >&5
2608 echo "${ECHO_T}no" >&6; }
2612 test -n "$ac_ct_CC" && break
2613 done
2615 if test "x$ac_ct_CC" = x; then
2616 CC=""
2617 else
2618 case $cross_compiling:$ac_tool_warned in
2619 yes:)
2620 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2621 whose name does not start with the host triplet. If you think this
2622 configuration is useful to you, please write to autoconf@gnu.org." >&5
2623 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2624 whose name does not start with the host triplet. If you think this
2625 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2626 ac_tool_warned=yes ;;
2627 esac
2628 CC=$ac_ct_CC
2635 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2636 See \`config.log' for more details." >&5
2637 echo "$as_me: error: no acceptable C compiler found in \$PATH
2638 See \`config.log' for more details." >&2;}
2639 { (exit 1); exit 1; }; }
2641 # Provide some information about the compiler.
2642 echo "$as_me:$LINENO: checking for C compiler version" >&5
2643 ac_compiler=`set X $ac_compile; echo $2`
2644 { (ac_try="$ac_compiler --version >&5"
2645 case "(($ac_try" in
2646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2647 *) ac_try_echo=$ac_try;;
2648 esac
2649 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2650 (eval "$ac_compiler --version >&5") 2>&5
2651 ac_status=$?
2652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2653 (exit $ac_status); }
2654 { (ac_try="$ac_compiler -v >&5"
2655 case "(($ac_try" in
2656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2657 *) ac_try_echo=$ac_try;;
2658 esac
2659 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2660 (eval "$ac_compiler -v >&5") 2>&5
2661 ac_status=$?
2662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2663 (exit $ac_status); }
2664 { (ac_try="$ac_compiler -V >&5"
2665 case "(($ac_try" in
2666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2667 *) ac_try_echo=$ac_try;;
2668 esac
2669 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2670 (eval "$ac_compiler -V >&5") 2>&5
2671 ac_status=$?
2672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2673 (exit $ac_status); }
2675 cat >conftest.$ac_ext <<_ACEOF
2676 /* confdefs.h. */
2677 _ACEOF
2678 cat confdefs.h >>conftest.$ac_ext
2679 cat >>conftest.$ac_ext <<_ACEOF
2680 /* end confdefs.h. */
2683 main ()
2687 return 0;
2689 _ACEOF
2690 ac_clean_files_save=$ac_clean_files
2691 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2692 # Try to create an executable without -o first, disregard a.out.
2693 # It will help us diagnose broken compilers, and finding out an intuition
2694 # of exeext.
2695 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2696 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2697 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2699 # List of possible output files, starting from the most likely.
2700 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2701 # only as a last resort. b.out is created by i960 compilers.
2702 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2704 # The IRIX 6 linker writes into existing files which may not be
2705 # executable, retaining their permissions. Remove them first so a
2706 # subsequent execution test works.
2707 ac_rmfiles=
2708 for ac_file in $ac_files
2710 case $ac_file in
2711 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2712 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2713 esac
2714 done
2715 rm -f $ac_rmfiles
2717 if { (ac_try="$ac_link_default"
2718 case "(($ac_try" in
2719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2720 *) ac_try_echo=$ac_try;;
2721 esac
2722 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2723 (eval "$ac_link_default") 2>&5
2724 ac_status=$?
2725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2726 (exit $ac_status); }; then
2727 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2728 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2729 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2730 # so that the user can short-circuit this test for compilers unknown to
2731 # Autoconf.
2732 for ac_file in $ac_files ''
2734 test -f "$ac_file" || continue
2735 case $ac_file in
2736 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2738 [ab].out )
2739 # We found the default executable, but exeext='' is most
2740 # certainly right.
2741 break;;
2742 *.* )
2743 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2744 then :; else
2745 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2747 # We set ac_cv_exeext here because the later test for it is not
2748 # safe: cross compilers may not add the suffix if given an `-o'
2749 # argument, so we may need to know it at that point already.
2750 # Even if this section looks crufty: it has the advantage of
2751 # actually working.
2752 break;;
2754 break;;
2755 esac
2756 done
2757 test "$ac_cv_exeext" = no && ac_cv_exeext=
2759 else
2760 ac_file=''
2763 { echo "$as_me:$LINENO: result: $ac_file" >&5
2764 echo "${ECHO_T}$ac_file" >&6; }
2765 if test -z "$ac_file"; then
2766 echo "$as_me: failed program was:" >&5
2767 sed 's/^/| /' conftest.$ac_ext >&5
2769 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2770 See \`config.log' for more details." >&5
2771 echo "$as_me: error: C compiler cannot create executables
2772 See \`config.log' for more details." >&2;}
2773 { (exit 77); exit 77; }; }
2776 ac_exeext=$ac_cv_exeext
2778 # Check that the compiler produces executables we can run. If not, either
2779 # the compiler is broken, or we cross compile.
2780 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2781 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2782 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2783 # If not cross compiling, check that we can run a simple program.
2784 if test "$cross_compiling" != yes; then
2785 if { ac_try='./$ac_file'
2786 { (case "(($ac_try" in
2787 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2788 *) ac_try_echo=$ac_try;;
2789 esac
2790 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2791 (eval "$ac_try") 2>&5
2792 ac_status=$?
2793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2794 (exit $ac_status); }; }; then
2795 cross_compiling=no
2796 else
2797 if test "$cross_compiling" = maybe; then
2798 cross_compiling=yes
2799 else
2800 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2801 If you meant to cross compile, use \`--host'.
2802 See \`config.log' for more details." >&5
2803 echo "$as_me: error: cannot run C compiled programs.
2804 If you meant to cross compile, use \`--host'.
2805 See \`config.log' for more details." >&2;}
2806 { (exit 1); exit 1; }; }
2810 { echo "$as_me:$LINENO: result: yes" >&5
2811 echo "${ECHO_T}yes" >&6; }
2813 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2814 ac_clean_files=$ac_clean_files_save
2815 # Check that the compiler produces executables we can run. If not, either
2816 # the compiler is broken, or we cross compile.
2817 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2818 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2819 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2820 echo "${ECHO_T}$cross_compiling" >&6; }
2822 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2823 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2824 if { (ac_try="$ac_link"
2825 case "(($ac_try" in
2826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2827 *) ac_try_echo=$ac_try;;
2828 esac
2829 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2830 (eval "$ac_link") 2>&5
2831 ac_status=$?
2832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2833 (exit $ac_status); }; then
2834 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2835 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2836 # work properly (i.e., refer to `conftest.exe'), while it won't with
2837 # `rm'.
2838 for ac_file in conftest.exe conftest conftest.*; do
2839 test -f "$ac_file" || continue
2840 case $ac_file in
2841 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2842 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2843 break;;
2844 * ) break;;
2845 esac
2846 done
2847 else
2848 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2849 See \`config.log' for more details." >&5
2850 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2851 See \`config.log' for more details." >&2;}
2852 { (exit 1); exit 1; }; }
2855 rm -f conftest$ac_cv_exeext
2856 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2857 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2859 rm -f conftest.$ac_ext
2860 EXEEXT=$ac_cv_exeext
2861 ac_exeext=$EXEEXT
2862 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2863 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2864 if test "${ac_cv_objext+set}" = set; then
2865 echo $ECHO_N "(cached) $ECHO_C" >&6
2866 else
2867 cat >conftest.$ac_ext <<_ACEOF
2868 /* confdefs.h. */
2869 _ACEOF
2870 cat confdefs.h >>conftest.$ac_ext
2871 cat >>conftest.$ac_ext <<_ACEOF
2872 /* end confdefs.h. */
2875 main ()
2879 return 0;
2881 _ACEOF
2882 rm -f conftest.o conftest.obj
2883 if { (ac_try="$ac_compile"
2884 case "(($ac_try" in
2885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2886 *) ac_try_echo=$ac_try;;
2887 esac
2888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2889 (eval "$ac_compile") 2>&5
2890 ac_status=$?
2891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2892 (exit $ac_status); }; then
2893 for ac_file in conftest.o conftest.obj conftest.*; do
2894 test -f "$ac_file" || continue;
2895 case $ac_file in
2896 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2897 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2898 break;;
2899 esac
2900 done
2901 else
2902 echo "$as_me: failed program was:" >&5
2903 sed 's/^/| /' conftest.$ac_ext >&5
2905 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2906 See \`config.log' for more details." >&5
2907 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2908 See \`config.log' for more details." >&2;}
2909 { (exit 1); exit 1; }; }
2912 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2914 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2915 echo "${ECHO_T}$ac_cv_objext" >&6; }
2916 OBJEXT=$ac_cv_objext
2917 ac_objext=$OBJEXT
2918 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2919 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2920 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2921 echo $ECHO_N "(cached) $ECHO_C" >&6
2922 else
2923 cat >conftest.$ac_ext <<_ACEOF
2924 /* confdefs.h. */
2925 _ACEOF
2926 cat confdefs.h >>conftest.$ac_ext
2927 cat >>conftest.$ac_ext <<_ACEOF
2928 /* end confdefs.h. */
2931 main ()
2933 #ifndef __GNUC__
2934 choke me
2935 #endif
2938 return 0;
2940 _ACEOF
2941 rm -f conftest.$ac_objext
2942 if { (ac_try="$ac_compile"
2943 case "(($ac_try" in
2944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2945 *) ac_try_echo=$ac_try;;
2946 esac
2947 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2948 (eval "$ac_compile") 2>conftest.er1
2949 ac_status=$?
2950 grep -v '^ *+' conftest.er1 >conftest.err
2951 rm -f conftest.er1
2952 cat conftest.err >&5
2953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2954 (exit $ac_status); } && {
2955 test -z "$ac_c_werror_flag" ||
2956 test ! -s conftest.err
2957 } && test -s conftest.$ac_objext; then
2958 ac_compiler_gnu=yes
2959 else
2960 echo "$as_me: failed program was:" >&5
2961 sed 's/^/| /' conftest.$ac_ext >&5
2963 ac_compiler_gnu=no
2966 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2967 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2970 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2971 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2972 GCC=`test $ac_compiler_gnu = yes && echo yes`
2973 ac_test_CFLAGS=${CFLAGS+set}
2974 ac_save_CFLAGS=$CFLAGS
2975 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2976 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2977 if test "${ac_cv_prog_cc_g+set}" = set; then
2978 echo $ECHO_N "(cached) $ECHO_C" >&6
2979 else
2980 ac_save_c_werror_flag=$ac_c_werror_flag
2981 ac_c_werror_flag=yes
2982 ac_cv_prog_cc_g=no
2983 CFLAGS="-g"
2984 cat >conftest.$ac_ext <<_ACEOF
2985 /* confdefs.h. */
2986 _ACEOF
2987 cat confdefs.h >>conftest.$ac_ext
2988 cat >>conftest.$ac_ext <<_ACEOF
2989 /* end confdefs.h. */
2992 main ()
2996 return 0;
2998 _ACEOF
2999 rm -f conftest.$ac_objext
3000 if { (ac_try="$ac_compile"
3001 case "(($ac_try" in
3002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3003 *) ac_try_echo=$ac_try;;
3004 esac
3005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3006 (eval "$ac_compile") 2>conftest.er1
3007 ac_status=$?
3008 grep -v '^ *+' conftest.er1 >conftest.err
3009 rm -f conftest.er1
3010 cat conftest.err >&5
3011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3012 (exit $ac_status); } && {
3013 test -z "$ac_c_werror_flag" ||
3014 test ! -s conftest.err
3015 } && test -s conftest.$ac_objext; then
3016 ac_cv_prog_cc_g=yes
3017 else
3018 echo "$as_me: failed program was:" >&5
3019 sed 's/^/| /' conftest.$ac_ext >&5
3021 CFLAGS=""
3022 cat >conftest.$ac_ext <<_ACEOF
3023 /* confdefs.h. */
3024 _ACEOF
3025 cat confdefs.h >>conftest.$ac_ext
3026 cat >>conftest.$ac_ext <<_ACEOF
3027 /* end confdefs.h. */
3030 main ()
3034 return 0;
3036 _ACEOF
3037 rm -f conftest.$ac_objext
3038 if { (ac_try="$ac_compile"
3039 case "(($ac_try" in
3040 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3041 *) ac_try_echo=$ac_try;;
3042 esac
3043 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3044 (eval "$ac_compile") 2>conftest.er1
3045 ac_status=$?
3046 grep -v '^ *+' conftest.er1 >conftest.err
3047 rm -f conftest.er1
3048 cat conftest.err >&5
3049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3050 (exit $ac_status); } && {
3051 test -z "$ac_c_werror_flag" ||
3052 test ! -s conftest.err
3053 } && test -s conftest.$ac_objext; then
3055 else
3056 echo "$as_me: failed program was:" >&5
3057 sed 's/^/| /' conftest.$ac_ext >&5
3059 ac_c_werror_flag=$ac_save_c_werror_flag
3060 CFLAGS="-g"
3061 cat >conftest.$ac_ext <<_ACEOF
3062 /* confdefs.h. */
3063 _ACEOF
3064 cat confdefs.h >>conftest.$ac_ext
3065 cat >>conftest.$ac_ext <<_ACEOF
3066 /* end confdefs.h. */
3069 main ()
3073 return 0;
3075 _ACEOF
3076 rm -f conftest.$ac_objext
3077 if { (ac_try="$ac_compile"
3078 case "(($ac_try" in
3079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3080 *) ac_try_echo=$ac_try;;
3081 esac
3082 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3083 (eval "$ac_compile") 2>conftest.er1
3084 ac_status=$?
3085 grep -v '^ *+' conftest.er1 >conftest.err
3086 rm -f conftest.er1
3087 cat conftest.err >&5
3088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3089 (exit $ac_status); } && {
3090 test -z "$ac_c_werror_flag" ||
3091 test ! -s conftest.err
3092 } && test -s conftest.$ac_objext; then
3093 ac_cv_prog_cc_g=yes
3094 else
3095 echo "$as_me: failed program was:" >&5
3096 sed 's/^/| /' conftest.$ac_ext >&5
3101 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3104 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3107 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3108 ac_c_werror_flag=$ac_save_c_werror_flag
3110 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3111 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3112 if test "$ac_test_CFLAGS" = set; then
3113 CFLAGS=$ac_save_CFLAGS
3114 elif test $ac_cv_prog_cc_g = yes; then
3115 if test "$GCC" = yes; then
3116 CFLAGS="-g -O2"
3117 else
3118 CFLAGS="-g"
3120 else
3121 if test "$GCC" = yes; then
3122 CFLAGS="-O2"
3123 else
3124 CFLAGS=
3127 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3128 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3129 if test "${ac_cv_prog_cc_c89+set}" = set; then
3130 echo $ECHO_N "(cached) $ECHO_C" >&6
3131 else
3132 ac_cv_prog_cc_c89=no
3133 ac_save_CC=$CC
3134 cat >conftest.$ac_ext <<_ACEOF
3135 /* confdefs.h. */
3136 _ACEOF
3137 cat confdefs.h >>conftest.$ac_ext
3138 cat >>conftest.$ac_ext <<_ACEOF
3139 /* end confdefs.h. */
3140 #include <stdarg.h>
3141 #include <stdio.h>
3142 #include <sys/types.h>
3143 #include <sys/stat.h>
3144 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3145 struct buf { int x; };
3146 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3147 static char *e (p, i)
3148 char **p;
3149 int i;
3151 return p[i];
3153 static char *f (char * (*g) (char **, int), char **p, ...)
3155 char *s;
3156 va_list v;
3157 va_start (v,p);
3158 s = g (p, va_arg (v,int));
3159 va_end (v);
3160 return s;
3163 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3164 function prototypes and stuff, but not '\xHH' hex character constants.
3165 These don't provoke an error unfortunately, instead are silently treated
3166 as 'x'. The following induces an error, until -std is added to get
3167 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3168 array size at least. It's necessary to write '\x00'==0 to get something
3169 that's true only with -std. */
3170 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3172 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3173 inside strings and character constants. */
3174 #define FOO(x) 'x'
3175 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3177 int test (int i, double x);
3178 struct s1 {int (*f) (int a);};
3179 struct s2 {int (*f) (double a);};
3180 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3181 int argc;
3182 char **argv;
3184 main ()
3186 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3188 return 0;
3190 _ACEOF
3191 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3192 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3194 CC="$ac_save_CC $ac_arg"
3195 rm -f conftest.$ac_objext
3196 if { (ac_try="$ac_compile"
3197 case "(($ac_try" in
3198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3199 *) ac_try_echo=$ac_try;;
3200 esac
3201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3202 (eval "$ac_compile") 2>conftest.er1
3203 ac_status=$?
3204 grep -v '^ *+' conftest.er1 >conftest.err
3205 rm -f conftest.er1
3206 cat conftest.err >&5
3207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3208 (exit $ac_status); } && {
3209 test -z "$ac_c_werror_flag" ||
3210 test ! -s conftest.err
3211 } && test -s conftest.$ac_objext; then
3212 ac_cv_prog_cc_c89=$ac_arg
3213 else
3214 echo "$as_me: failed program was:" >&5
3215 sed 's/^/| /' conftest.$ac_ext >&5
3220 rm -f core conftest.err conftest.$ac_objext
3221 test "x$ac_cv_prog_cc_c89" != "xno" && break
3222 done
3223 rm -f conftest.$ac_ext
3224 CC=$ac_save_CC
3227 # AC_CACHE_VAL
3228 case "x$ac_cv_prog_cc_c89" in
3230 { echo "$as_me:$LINENO: result: none needed" >&5
3231 echo "${ECHO_T}none needed" >&6; } ;;
3232 xno)
3233 { echo "$as_me:$LINENO: result: unsupported" >&5
3234 echo "${ECHO_T}unsupported" >&6; } ;;
3236 CC="$CC $ac_cv_prog_cc_c89"
3237 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3238 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3239 esac
3242 ac_ext=c
3243 ac_cpp='$CPP $CPPFLAGS'
3244 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3245 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3246 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3251 { echo "$as_me:$LINENO: checking for --with-cxx-main=<compiler>" >&5
3252 echo $ECHO_N "checking for --with-cxx-main=<compiler>... $ECHO_C" >&6; }
3254 # Check whether --with-cxx_main was given.
3255 if test "${with_cxx_main+set}" = set; then
3256 withval=$with_cxx_main;
3258 case $withval in
3259 no) with_cxx_main=no
3260 MAINCC='$(CC)';;
3261 yes) with_cxx_main=yes
3262 MAINCC='$(CXX)';;
3263 *) with_cxx_main=yes
3264 MAINCC=$withval
3265 if test -z "$CXX"
3266 then
3267 CXX=$withval
3268 fi;;
3269 esac
3270 else
3272 with_cxx_main=no
3273 MAINCC='$(CC)'
3277 { echo "$as_me:$LINENO: result: $with_cxx_main" >&5
3278 echo "${ECHO_T}$with_cxx_main" >&6; }
3280 preset_cxx="$CXX"
3281 if test -z "$CXX"
3282 then
3283 case "$CC" in
3284 gcc) # Extract the first word of "g++", so it can be a program name with args.
3285 set dummy g++; ac_word=$2
3286 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3287 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3288 if test "${ac_cv_path_CXX+set}" = set; then
3289 echo $ECHO_N "(cached) $ECHO_C" >&6
3290 else
3291 case $CXX in
3292 [\\/]* | ?:[\\/]*)
3293 ac_cv_path_CXX="$CXX" # Let the user override the test with a path.
3296 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3297 for as_dir in notfound
3299 IFS=$as_save_IFS
3300 test -z "$as_dir" && as_dir=.
3301 for ac_exec_ext in '' $ac_executable_extensions; do
3302 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3303 ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext"
3304 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3305 break 2
3307 done
3308 done
3309 IFS=$as_save_IFS
3311 test -z "$ac_cv_path_CXX" && ac_cv_path_CXX="g++"
3313 esac
3315 CXX=$ac_cv_path_CXX
3316 if test -n "$CXX"; then
3317 { echo "$as_me:$LINENO: result: $CXX" >&5
3318 echo "${ECHO_T}$CXX" >&6; }
3319 else
3320 { echo "$as_me:$LINENO: result: no" >&5
3321 echo "${ECHO_T}no" >&6; }
3325 cc) # Extract the first word of "c++", so it can be a program name with args.
3326 set dummy c++; ac_word=$2
3327 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3328 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3329 if test "${ac_cv_path_CXX+set}" = set; then
3330 echo $ECHO_N "(cached) $ECHO_C" >&6
3331 else
3332 case $CXX in
3333 [\\/]* | ?:[\\/]*)
3334 ac_cv_path_CXX="$CXX" # Let the user override the test with a path.
3337 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3338 for as_dir in notfound
3340 IFS=$as_save_IFS
3341 test -z "$as_dir" && as_dir=.
3342 for ac_exec_ext in '' $ac_executable_extensions; do
3343 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3344 ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext"
3345 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3346 break 2
3348 done
3349 done
3350 IFS=$as_save_IFS
3352 test -z "$ac_cv_path_CXX" && ac_cv_path_CXX="c++"
3354 esac
3356 CXX=$ac_cv_path_CXX
3357 if test -n "$CXX"; then
3358 { echo "$as_me:$LINENO: result: $CXX" >&5
3359 echo "${ECHO_T}$CXX" >&6; }
3360 else
3361 { echo "$as_me:$LINENO: result: no" >&5
3362 echo "${ECHO_T}no" >&6; }
3366 esac
3367 if test "$CXX" = "notfound"
3368 then
3369 CXX=""
3372 if test -z "$CXX"
3373 then
3374 for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
3376 # Extract the first word of "$ac_prog", so it can be a program name with args.
3377 set dummy $ac_prog; ac_word=$2
3378 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3379 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3380 if test "${ac_cv_prog_CXX+set}" = set; then
3381 echo $ECHO_N "(cached) $ECHO_C" >&6
3382 else
3383 if test -n "$CXX"; then
3384 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3385 else
3386 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3387 for as_dir in $PATH
3389 IFS=$as_save_IFS
3390 test -z "$as_dir" && as_dir=.
3391 for ac_exec_ext in '' $ac_executable_extensions; do
3392 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3393 ac_cv_prog_CXX="$ac_prog"
3394 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3395 break 2
3397 done
3398 done
3399 IFS=$as_save_IFS
3403 CXX=$ac_cv_prog_CXX
3404 if test -n "$CXX"; then
3405 { echo "$as_me:$LINENO: result: $CXX" >&5
3406 echo "${ECHO_T}$CXX" >&6; }
3407 else
3408 { echo "$as_me:$LINENO: result: no" >&5
3409 echo "${ECHO_T}no" >&6; }
3413 test -n "$CXX" && break
3414 done
3415 test -n "$CXX" || CXX="notfound"
3417 if test "$CXX" = "notfound"
3418 then
3419 CXX=""
3422 if test "$preset_cxx" != "$CXX"
3423 then
3424 { echo "$as_me:$LINENO: WARNING:
3426 By default, distutils will build C++ extension modules with \"$CXX\".
3427 If this is not intended, then set CXX on the configure command line.
3428 " >&5
3429 echo "$as_me: WARNING:
3431 By default, distutils will build C++ extension modules with \"$CXX\".
3432 If this is not intended, then set CXX on the configure command line.
3433 " >&2;}
3437 # checks for UNIX variants that set C preprocessor variables
3439 ac_ext=c
3440 ac_cpp='$CPP $CPPFLAGS'
3441 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3442 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3443 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3444 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3445 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3446 # On Suns, sometimes $CPP names a directory.
3447 if test -n "$CPP" && test -d "$CPP"; then
3448 CPP=
3450 if test -z "$CPP"; then
3451 if test "${ac_cv_prog_CPP+set}" = set; then
3452 echo $ECHO_N "(cached) $ECHO_C" >&6
3453 else
3454 # Double quotes because CPP needs to be expanded
3455 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3457 ac_preproc_ok=false
3458 for ac_c_preproc_warn_flag in '' yes
3460 # Use a header file that comes with gcc, so configuring glibc
3461 # with a fresh cross-compiler works.
3462 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3463 # <limits.h> exists even on freestanding compilers.
3464 # On the NeXT, cc -E runs the code through the compiler's parser,
3465 # not just through cpp. "Syntax error" is here to catch this case.
3466 cat >conftest.$ac_ext <<_ACEOF
3467 /* confdefs.h. */
3468 _ACEOF
3469 cat confdefs.h >>conftest.$ac_ext
3470 cat >>conftest.$ac_ext <<_ACEOF
3471 /* end confdefs.h. */
3472 #ifdef __STDC__
3473 # include <limits.h>
3474 #else
3475 # include <assert.h>
3476 #endif
3477 Syntax error
3478 _ACEOF
3479 if { (ac_try="$ac_cpp conftest.$ac_ext"
3480 case "(($ac_try" in
3481 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3482 *) ac_try_echo=$ac_try;;
3483 esac
3484 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3485 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3486 ac_status=$?
3487 grep -v '^ *+' conftest.er1 >conftest.err
3488 rm -f conftest.er1
3489 cat conftest.err >&5
3490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3491 (exit $ac_status); } >/dev/null && {
3492 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3493 test ! -s conftest.err
3494 }; then
3496 else
3497 echo "$as_me: failed program was:" >&5
3498 sed 's/^/| /' conftest.$ac_ext >&5
3500 # Broken: fails on valid input.
3501 continue
3504 rm -f conftest.err conftest.$ac_ext
3506 # OK, works on sane cases. Now check whether nonexistent headers
3507 # can be detected and how.
3508 cat >conftest.$ac_ext <<_ACEOF
3509 /* confdefs.h. */
3510 _ACEOF
3511 cat confdefs.h >>conftest.$ac_ext
3512 cat >>conftest.$ac_ext <<_ACEOF
3513 /* end confdefs.h. */
3514 #include <ac_nonexistent.h>
3515 _ACEOF
3516 if { (ac_try="$ac_cpp conftest.$ac_ext"
3517 case "(($ac_try" in
3518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3519 *) ac_try_echo=$ac_try;;
3520 esac
3521 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3522 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3523 ac_status=$?
3524 grep -v '^ *+' conftest.er1 >conftest.err
3525 rm -f conftest.er1
3526 cat conftest.err >&5
3527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3528 (exit $ac_status); } >/dev/null && {
3529 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3530 test ! -s conftest.err
3531 }; then
3532 # Broken: success on invalid input.
3533 continue
3534 else
3535 echo "$as_me: failed program was:" >&5
3536 sed 's/^/| /' conftest.$ac_ext >&5
3538 # Passes both tests.
3539 ac_preproc_ok=:
3540 break
3543 rm -f conftest.err conftest.$ac_ext
3545 done
3546 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3547 rm -f conftest.err conftest.$ac_ext
3548 if $ac_preproc_ok; then
3549 break
3552 done
3553 ac_cv_prog_CPP=$CPP
3556 CPP=$ac_cv_prog_CPP
3557 else
3558 ac_cv_prog_CPP=$CPP
3560 { echo "$as_me:$LINENO: result: $CPP" >&5
3561 echo "${ECHO_T}$CPP" >&6; }
3562 ac_preproc_ok=false
3563 for ac_c_preproc_warn_flag in '' yes
3565 # Use a header file that comes with gcc, so configuring glibc
3566 # with a fresh cross-compiler works.
3567 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3568 # <limits.h> exists even on freestanding compilers.
3569 # On the NeXT, cc -E runs the code through the compiler's parser,
3570 # not just through cpp. "Syntax error" is here to catch this case.
3571 cat >conftest.$ac_ext <<_ACEOF
3572 /* confdefs.h. */
3573 _ACEOF
3574 cat confdefs.h >>conftest.$ac_ext
3575 cat >>conftest.$ac_ext <<_ACEOF
3576 /* end confdefs.h. */
3577 #ifdef __STDC__
3578 # include <limits.h>
3579 #else
3580 # include <assert.h>
3581 #endif
3582 Syntax error
3583 _ACEOF
3584 if { (ac_try="$ac_cpp conftest.$ac_ext"
3585 case "(($ac_try" in
3586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3587 *) ac_try_echo=$ac_try;;
3588 esac
3589 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3590 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3591 ac_status=$?
3592 grep -v '^ *+' conftest.er1 >conftest.err
3593 rm -f conftest.er1
3594 cat conftest.err >&5
3595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3596 (exit $ac_status); } >/dev/null && {
3597 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3598 test ! -s conftest.err
3599 }; then
3601 else
3602 echo "$as_me: failed program was:" >&5
3603 sed 's/^/| /' conftest.$ac_ext >&5
3605 # Broken: fails on valid input.
3606 continue
3609 rm -f conftest.err conftest.$ac_ext
3611 # OK, works on sane cases. Now check whether nonexistent headers
3612 # can be detected and how.
3613 cat >conftest.$ac_ext <<_ACEOF
3614 /* confdefs.h. */
3615 _ACEOF
3616 cat confdefs.h >>conftest.$ac_ext
3617 cat >>conftest.$ac_ext <<_ACEOF
3618 /* end confdefs.h. */
3619 #include <ac_nonexistent.h>
3620 _ACEOF
3621 if { (ac_try="$ac_cpp conftest.$ac_ext"
3622 case "(($ac_try" in
3623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3624 *) ac_try_echo=$ac_try;;
3625 esac
3626 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3627 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3628 ac_status=$?
3629 grep -v '^ *+' conftest.er1 >conftest.err
3630 rm -f conftest.er1
3631 cat conftest.err >&5
3632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3633 (exit $ac_status); } >/dev/null && {
3634 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3635 test ! -s conftest.err
3636 }; then
3637 # Broken: success on invalid input.
3638 continue
3639 else
3640 echo "$as_me: failed program was:" >&5
3641 sed 's/^/| /' conftest.$ac_ext >&5
3643 # Passes both tests.
3644 ac_preproc_ok=:
3645 break
3648 rm -f conftest.err conftest.$ac_ext
3650 done
3651 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3652 rm -f conftest.err conftest.$ac_ext
3653 if $ac_preproc_ok; then
3655 else
3656 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3657 See \`config.log' for more details." >&5
3658 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3659 See \`config.log' for more details." >&2;}
3660 { (exit 1); exit 1; }; }
3663 ac_ext=c
3664 ac_cpp='$CPP $CPPFLAGS'
3665 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3666 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3667 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3670 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3671 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3672 if test "${ac_cv_path_GREP+set}" = set; then
3673 echo $ECHO_N "(cached) $ECHO_C" >&6
3674 else
3675 # Extract the first word of "grep ggrep" to use in msg output
3676 if test -z "$GREP"; then
3677 set dummy grep ggrep; ac_prog_name=$2
3678 if test "${ac_cv_path_GREP+set}" = set; then
3679 echo $ECHO_N "(cached) $ECHO_C" >&6
3680 else
3681 ac_path_GREP_found=false
3682 # Loop through the user's path and test for each of PROGNAME-LIST
3683 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3684 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3686 IFS=$as_save_IFS
3687 test -z "$as_dir" && as_dir=.
3688 for ac_prog in grep ggrep; do
3689 for ac_exec_ext in '' $ac_executable_extensions; do
3690 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3691 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3692 # Check for GNU ac_path_GREP and select it if it is found.
3693 # Check for GNU $ac_path_GREP
3694 case `"$ac_path_GREP" --version 2>&1` in
3695 *GNU*)
3696 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3698 ac_count=0
3699 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3700 while :
3702 cat "conftest.in" "conftest.in" >"conftest.tmp"
3703 mv "conftest.tmp" "conftest.in"
3704 cp "conftest.in" "conftest.nl"
3705 echo 'GREP' >> "conftest.nl"
3706 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3707 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3708 ac_count=`expr $ac_count + 1`
3709 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3710 # Best one so far, save it but keep looking for a better one
3711 ac_cv_path_GREP="$ac_path_GREP"
3712 ac_path_GREP_max=$ac_count
3714 # 10*(2^10) chars as input seems more than enough
3715 test $ac_count -gt 10 && break
3716 done
3717 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3718 esac
3721 $ac_path_GREP_found && break 3
3722 done
3723 done
3725 done
3726 IFS=$as_save_IFS
3731 GREP="$ac_cv_path_GREP"
3732 if test -z "$GREP"; then
3733 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3734 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3735 { (exit 1); exit 1; }; }
3738 else
3739 ac_cv_path_GREP=$GREP
3744 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3745 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3746 GREP="$ac_cv_path_GREP"
3749 { echo "$as_me:$LINENO: checking for egrep" >&5
3750 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3751 if test "${ac_cv_path_EGREP+set}" = set; then
3752 echo $ECHO_N "(cached) $ECHO_C" >&6
3753 else
3754 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3755 then ac_cv_path_EGREP="$GREP -E"
3756 else
3757 # Extract the first word of "egrep" to use in msg output
3758 if test -z "$EGREP"; then
3759 set dummy egrep; ac_prog_name=$2
3760 if test "${ac_cv_path_EGREP+set}" = set; then
3761 echo $ECHO_N "(cached) $ECHO_C" >&6
3762 else
3763 ac_path_EGREP_found=false
3764 # Loop through the user's path and test for each of PROGNAME-LIST
3765 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3766 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3768 IFS=$as_save_IFS
3769 test -z "$as_dir" && as_dir=.
3770 for ac_prog in egrep; do
3771 for ac_exec_ext in '' $ac_executable_extensions; do
3772 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3773 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3774 # Check for GNU ac_path_EGREP and select it if it is found.
3775 # Check for GNU $ac_path_EGREP
3776 case `"$ac_path_EGREP" --version 2>&1` in
3777 *GNU*)
3778 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3780 ac_count=0
3781 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3782 while :
3784 cat "conftest.in" "conftest.in" >"conftest.tmp"
3785 mv "conftest.tmp" "conftest.in"
3786 cp "conftest.in" "conftest.nl"
3787 echo 'EGREP' >> "conftest.nl"
3788 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3789 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3790 ac_count=`expr $ac_count + 1`
3791 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3792 # Best one so far, save it but keep looking for a better one
3793 ac_cv_path_EGREP="$ac_path_EGREP"
3794 ac_path_EGREP_max=$ac_count
3796 # 10*(2^10) chars as input seems more than enough
3797 test $ac_count -gt 10 && break
3798 done
3799 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3800 esac
3803 $ac_path_EGREP_found && break 3
3804 done
3805 done
3807 done
3808 IFS=$as_save_IFS
3813 EGREP="$ac_cv_path_EGREP"
3814 if test -z "$EGREP"; then
3815 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3816 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3817 { (exit 1); exit 1; }; }
3820 else
3821 ac_cv_path_EGREP=$EGREP
3827 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3828 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3829 EGREP="$ac_cv_path_EGREP"
3833 { echo "$as_me:$LINENO: checking for AIX" >&5
3834 echo $ECHO_N "checking for AIX... $ECHO_C" >&6; }
3835 cat >conftest.$ac_ext <<_ACEOF
3836 /* confdefs.h. */
3837 _ACEOF
3838 cat confdefs.h >>conftest.$ac_ext
3839 cat >>conftest.$ac_ext <<_ACEOF
3840 /* end confdefs.h. */
3841 #ifdef _AIX
3843 #endif
3845 _ACEOF
3846 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3847 $EGREP "yes" >/dev/null 2>&1; then
3848 { echo "$as_me:$LINENO: result: yes" >&5
3849 echo "${ECHO_T}yes" >&6; }
3850 cat >>confdefs.h <<\_ACEOF
3851 #define _ALL_SOURCE 1
3852 _ACEOF
3854 else
3855 { echo "$as_me:$LINENO: result: no" >&5
3856 echo "${ECHO_T}no" >&6; }
3858 rm -f conftest*
3862 # Check for unsupported systems
3863 case $ac_sys_system/$ac_sys_release in
3864 atheos*|Linux*/1*)
3865 echo This system \($ac_sys_system/$ac_sys_release\) is no longer supported.
3866 echo See README for details.
3867 exit 1;;
3868 esac
3871 { echo "$as_me:$LINENO: checking for --with-suffix" >&5
3872 echo $ECHO_N "checking for --with-suffix... $ECHO_C" >&6; }
3874 # Check whether --with-suffix was given.
3875 if test "${with_suffix+set}" = set; then
3876 withval=$with_suffix;
3877 case $withval in
3878 no) EXEEXT=;;
3879 yes) EXEEXT=.exe;;
3880 *) EXEEXT=$withval;;
3881 esac
3884 { echo "$as_me:$LINENO: result: $EXEEXT" >&5
3885 echo "${ECHO_T}$EXEEXT" >&6; }
3887 # Test whether we're running on a non-case-sensitive system, in which
3888 # case we give a warning if no ext is given
3890 { echo "$as_me:$LINENO: checking for case-insensitive build directory" >&5
3891 echo $ECHO_N "checking for case-insensitive build directory... $ECHO_C" >&6; }
3892 if test ! -d CaseSensitiveTestDir; then
3893 mkdir CaseSensitiveTestDir
3896 if test -d casesensitivetestdir
3897 then
3898 { echo "$as_me:$LINENO: result: yes" >&5
3899 echo "${ECHO_T}yes" >&6; }
3900 BUILDEXEEXT=.exe
3901 else
3902 { echo "$as_me:$LINENO: result: no" >&5
3903 echo "${ECHO_T}no" >&6; }
3904 BUILDEXEEXT=$EXEEXT
3906 rmdir CaseSensitiveTestDir
3908 case $MACHDEP in
3909 bsdos*)
3910 case $CC in
3911 gcc) CC="$CC -D_HAVE_BSDI";;
3912 esac;;
3913 esac
3915 case $ac_sys_system in
3916 hp*|HP*)
3917 case $CC in
3918 cc|*/cc) CC="$CC -Ae";;
3919 esac;;
3920 Monterey*)
3921 case $CC in
3922 cc) CC="$CC -Wl,-Bexport";;
3923 esac;;
3924 SunOS*)
3925 # Some functions have a prototype only with that define, e.g. confstr
3927 cat >>confdefs.h <<\_ACEOF
3928 #define __EXTENSIONS__ 1
3929 _ACEOF
3932 esac
3936 { echo "$as_me:$LINENO: checking LIBRARY" >&5
3937 echo $ECHO_N "checking LIBRARY... $ECHO_C" >&6; }
3938 if test -z "$LIBRARY"
3939 then
3940 LIBRARY='libpython$(VERSION).a'
3942 { echo "$as_me:$LINENO: result: $LIBRARY" >&5
3943 echo "${ECHO_T}$LIBRARY" >&6; }
3945 # LDLIBRARY is the name of the library to link against (as opposed to the
3946 # name of the library into which to insert object files). BLDLIBRARY is also
3947 # the library to link against, usually. On Mac OS X frameworks, BLDLIBRARY
3948 # is blank as the main program is not linked directly against LDLIBRARY.
3949 # LDLIBRARYDIR is the path to LDLIBRARY, which is made in a subdirectory. On
3950 # systems without shared libraries, LDLIBRARY is the same as LIBRARY
3951 # (defined in the Makefiles). On Cygwin LDLIBRARY is the import library,
3952 # DLLLIBRARY is the shared (i.e., DLL) library.
3954 # RUNSHARED is used to run shared python without installed libraries
3956 # INSTSONAME is the name of the shared library that will be use to install
3957 # on the system - some systems like version suffix, others don't
3964 LDLIBRARY="$LIBRARY"
3965 BLDLIBRARY='$(LDLIBRARY)'
3966 INSTSONAME='$(LDLIBRARY)'
3967 DLLLIBRARY=''
3968 LDLIBRARYDIR=''
3969 RUNSHARED=''
3971 # LINKCC is the command that links the python executable -- default is $(CC).
3972 # If CXX is set, and if it is needed to link a main function that was
3973 # compiled with CXX, LINKCC is CXX instead. Always using CXX is undesirable:
3974 # python might then depend on the C++ runtime
3975 # This is altered for AIX in order to build the export list before
3976 # linking.
3978 { echo "$as_me:$LINENO: checking LINKCC" >&5
3979 echo $ECHO_N "checking LINKCC... $ECHO_C" >&6; }
3980 if test -z "$LINKCC"
3981 then
3982 LINKCC='$(PURIFY) $(MAINCC)'
3983 case $ac_sys_system in
3984 AIX*)
3985 exp_extra="\"\""
3986 if test $ac_sys_release -ge 5 -o \
3987 $ac_sys_release -eq 4 -a `uname -r` -ge 2 ; then
3988 exp_extra="."
3990 LINKCC="\$(srcdir)/Modules/makexp_aix Modules/python.exp $exp_extra \$(LIBRARY); $LINKCC";;
3991 Monterey64*)
3992 LINKCC="$LINKCC -L/usr/lib/ia64l64";;
3993 QNX*)
3994 # qcc must be used because the other compilers do not
3995 # support -N.
3996 LINKCC=qcc;;
3997 esac
3999 { echo "$as_me:$LINENO: result: $LINKCC" >&5
4000 echo "${ECHO_T}$LINKCC" >&6; }
4002 # GNULD is set to "yes" if the GNU linker is used. If this goes wrong
4003 # make sure we default having it set to "no": this is used by
4004 # distutils.unixccompiler to know if it should add --enable-new-dtags
4005 # to linker command lines, and failing to detect GNU ld simply results
4006 # in the same bahaviour as before.
4008 { echo "$as_me:$LINENO: checking for GNU ld" >&5
4009 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
4010 ac_prog=ld
4011 if test "$GCC" = yes; then
4012 ac_prog=`$CC -print-prog-name=ld`
4014 case `"$ac_prog" -V 2>&1 < /dev/null` in
4015 *GNU*)
4016 GNULD=yes;;
4018 GNULD=no;;
4019 esac
4020 { echo "$as_me:$LINENO: result: $GNULD" >&5
4021 echo "${ECHO_T}$GNULD" >&6; }
4023 { echo "$as_me:$LINENO: checking for --enable-shared" >&5
4024 echo $ECHO_N "checking for --enable-shared... $ECHO_C" >&6; }
4025 # Check whether --enable-shared was given.
4026 if test "${enable_shared+set}" = set; then
4027 enableval=$enable_shared;
4031 if test -z "$enable_shared"
4032 then
4033 case $ac_sys_system in
4034 CYGWIN* | atheos*)
4035 enable_shared="yes";;
4037 enable_shared="no";;
4038 esac
4040 { echo "$as_me:$LINENO: result: $enable_shared" >&5
4041 echo "${ECHO_T}$enable_shared" >&6; }
4043 { echo "$as_me:$LINENO: checking for --enable-profiling" >&5
4044 echo $ECHO_N "checking for --enable-profiling... $ECHO_C" >&6; }
4045 # Check whether --enable-profiling was given.
4046 if test "${enable_profiling+set}" = set; then
4047 enableval=$enable_profiling; ac_save_cc="$CC"
4048 CC="$CC -pg"
4049 if test "$cross_compiling" = yes; then
4050 ac_enable_profiling="no"
4051 else
4052 cat >conftest.$ac_ext <<_ACEOF
4053 /* confdefs.h. */
4054 _ACEOF
4055 cat confdefs.h >>conftest.$ac_ext
4056 cat >>conftest.$ac_ext <<_ACEOF
4057 /* end confdefs.h. */
4058 int main() { return 0; }
4059 _ACEOF
4060 rm -f conftest$ac_exeext
4061 if { (ac_try="$ac_link"
4062 case "(($ac_try" in
4063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4064 *) ac_try_echo=$ac_try;;
4065 esac
4066 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4067 (eval "$ac_link") 2>&5
4068 ac_status=$?
4069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4070 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4071 { (case "(($ac_try" in
4072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4073 *) ac_try_echo=$ac_try;;
4074 esac
4075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4076 (eval "$ac_try") 2>&5
4077 ac_status=$?
4078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4079 (exit $ac_status); }; }; then
4080 ac_enable_profiling="yes"
4081 else
4082 echo "$as_me: program exited with status $ac_status" >&5
4083 echo "$as_me: failed program was:" >&5
4084 sed 's/^/| /' conftest.$ac_ext >&5
4086 ( exit $ac_status )
4087 ac_enable_profiling="no"
4089 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4093 CC="$ac_save_cc"
4096 { echo "$as_me:$LINENO: result: $ac_enable_profiling" >&5
4097 echo "${ECHO_T}$ac_enable_profiling" >&6; }
4099 case "$ac_enable_profiling" in
4100 "yes")
4101 BASECFLAGS="-pg $BASECFLAGS"
4102 LDFLAGS="-pg $LDFLAGS"
4104 esac
4106 { echo "$as_me:$LINENO: checking LDLIBRARY" >&5
4107 echo $ECHO_N "checking LDLIBRARY... $ECHO_C" >&6; }
4109 # MacOSX framework builds need more magic. LDLIBRARY is the dynamic
4110 # library that we build, but we do not want to link against it (we
4111 # will find it with a -framework option). For this reason there is an
4112 # extra variable BLDLIBRARY against which Python and the extension
4113 # modules are linked, BLDLIBRARY. This is normally the same as
4114 # LDLIBRARY, but empty for MacOSX framework builds.
4115 if test "$enable_framework"
4116 then
4117 LDLIBRARY='$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
4118 RUNSHARED=DYLD_FRAMEWORK_PATH="`pwd`:$DYLD_FRAMEWORK_PATH"
4119 BLDLIBRARY=''
4120 else
4121 BLDLIBRARY='$(LDLIBRARY)'
4124 # Other platforms follow
4125 if test $enable_shared = "yes"; then
4127 cat >>confdefs.h <<\_ACEOF
4128 #define Py_ENABLE_SHARED 1
4129 _ACEOF
4131 case $ac_sys_system in
4132 BeOS*)
4133 LDLIBRARY='libpython$(VERSION).so'
4135 CYGWIN*)
4136 LDLIBRARY='libpython$(VERSION).dll.a'
4137 DLLLIBRARY='libpython$(VERSION).dll'
4139 SunOS*)
4140 LDLIBRARY='libpython$(VERSION).so'
4141 BLDLIBRARY='-Wl,-R,$(LIBDIR) -L. -lpython$(VERSION)'
4142 RUNSHARED=LD_LIBRARY_PATH=`pwd`:${LD_LIBRARY_PATH}
4143 INSTSONAME="$LDLIBRARY".$SOVERSION
4145 Linux*|GNU*|NetBSD*|FreeBSD*|DragonFly*)
4146 LDLIBRARY='libpython$(VERSION).so'
4147 BLDLIBRARY='-L. -lpython$(VERSION)'
4148 RUNSHARED=LD_LIBRARY_PATH=`pwd`:${LD_LIBRARY_PATH}
4149 case $ac_sys_system in
4150 FreeBSD*)
4151 SOVERSION=`echo $SOVERSION|cut -d "." -f 1`
4153 esac
4154 INSTSONAME="$LDLIBRARY".$SOVERSION
4156 hp*|HP*)
4157 case `uname -m` in
4158 ia64)
4159 LDLIBRARY='libpython$(VERSION).so'
4162 LDLIBRARY='libpython$(VERSION).sl'
4164 esac
4165 BLDLIBRARY='-Wl,+b,$(LIBDIR) -L. -lpython$(VERSION)'
4166 RUNSHARED=SHLIB_PATH=`pwd`:${SHLIB_PATH}
4168 OSF*)
4169 LDLIBRARY='libpython$(VERSION).so'
4170 BLDLIBRARY='-rpath $(LIBDIR) -L. -lpython$(VERSION)'
4171 RUNSHARED=LD_LIBRARY_PATH=`pwd`:${LD_LIBRARY_PATH}
4173 atheos*)
4174 LDLIBRARY='libpython$(VERSION).so'
4175 BLDLIBRARY='-L. -lpython$(VERSION)'
4176 RUNSHARED=DLL_PATH=`pwd`:${DLL_PATH:-/atheos/sys/libs:/atheos/autolnk/lib}
4178 Darwin*)
4179 LDLIBRARY='libpython$(VERSION).dylib'
4180 BLDLIBRARY='-L. -lpython$(VERSION)'
4181 RUNSHARED='DYLD_LIBRARY_PATH=`pwd`:${DYLD_LIBRARY_PATH}'
4184 esac
4185 else # shared is disabled
4186 case $ac_sys_system in
4187 CYGWIN*)
4188 BLDLIBRARY='$(LIBRARY)'
4189 LDLIBRARY='libpython$(VERSION).dll.a'
4191 esac
4194 { echo "$as_me:$LINENO: result: $LDLIBRARY" >&5
4195 echo "${ECHO_T}$LDLIBRARY" >&6; }
4197 if test -n "$ac_tool_prefix"; then
4198 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4199 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4200 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4201 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4202 if test "${ac_cv_prog_RANLIB+set}" = set; then
4203 echo $ECHO_N "(cached) $ECHO_C" >&6
4204 else
4205 if test -n "$RANLIB"; then
4206 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4207 else
4208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4209 for as_dir in $PATH
4211 IFS=$as_save_IFS
4212 test -z "$as_dir" && as_dir=.
4213 for ac_exec_ext in '' $ac_executable_extensions; do
4214 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4215 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4216 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4217 break 2
4219 done
4220 done
4221 IFS=$as_save_IFS
4225 RANLIB=$ac_cv_prog_RANLIB
4226 if test -n "$RANLIB"; then
4227 { echo "$as_me:$LINENO: result: $RANLIB" >&5
4228 echo "${ECHO_T}$RANLIB" >&6; }
4229 else
4230 { echo "$as_me:$LINENO: result: no" >&5
4231 echo "${ECHO_T}no" >&6; }
4236 if test -z "$ac_cv_prog_RANLIB"; then
4237 ac_ct_RANLIB=$RANLIB
4238 # Extract the first word of "ranlib", so it can be a program name with args.
4239 set dummy ranlib; ac_word=$2
4240 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4241 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4242 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4243 echo $ECHO_N "(cached) $ECHO_C" >&6
4244 else
4245 if test -n "$ac_ct_RANLIB"; then
4246 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4247 else
4248 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4249 for as_dir in $PATH
4251 IFS=$as_save_IFS
4252 test -z "$as_dir" && as_dir=.
4253 for ac_exec_ext in '' $ac_executable_extensions; do
4254 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4255 ac_cv_prog_ac_ct_RANLIB="ranlib"
4256 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4257 break 2
4259 done
4260 done
4261 IFS=$as_save_IFS
4265 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4266 if test -n "$ac_ct_RANLIB"; then
4267 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4268 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
4269 else
4270 { echo "$as_me:$LINENO: result: no" >&5
4271 echo "${ECHO_T}no" >&6; }
4274 if test "x$ac_ct_RANLIB" = x; then
4275 RANLIB=":"
4276 else
4277 case $cross_compiling:$ac_tool_warned in
4278 yes:)
4279 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4280 whose name does not start with the host triplet. If you think this
4281 configuration is useful to you, please write to autoconf@gnu.org." >&5
4282 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4283 whose name does not start with the host triplet. If you think this
4284 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4285 ac_tool_warned=yes ;;
4286 esac
4287 RANLIB=$ac_ct_RANLIB
4289 else
4290 RANLIB="$ac_cv_prog_RANLIB"
4294 for ac_prog in ar aal
4296 # Extract the first word of "$ac_prog", so it can be a program name with args.
4297 set dummy $ac_prog; ac_word=$2
4298 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4299 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4300 if test "${ac_cv_prog_AR+set}" = set; then
4301 echo $ECHO_N "(cached) $ECHO_C" >&6
4302 else
4303 if test -n "$AR"; then
4304 ac_cv_prog_AR="$AR" # Let the user override the test.
4305 else
4306 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4307 for as_dir in $PATH
4309 IFS=$as_save_IFS
4310 test -z "$as_dir" && as_dir=.
4311 for ac_exec_ext in '' $ac_executable_extensions; do
4312 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4313 ac_cv_prog_AR="$ac_prog"
4314 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4315 break 2
4317 done
4318 done
4319 IFS=$as_save_IFS
4323 AR=$ac_cv_prog_AR
4324 if test -n "$AR"; then
4325 { echo "$as_me:$LINENO: result: $AR" >&5
4326 echo "${ECHO_T}$AR" >&6; }
4327 else
4328 { echo "$as_me:$LINENO: result: no" >&5
4329 echo "${ECHO_T}no" >&6; }
4333 test -n "$AR" && break
4334 done
4335 test -n "$AR" || AR="ar"
4338 # tweak ARFLAGS only if the user didn't set it on the command line
4340 if test -z "$ARFLAGS"
4341 then
4342 ARFLAGS="rc"
4346 # Extract the first word of "svnversion", so it can be a program name with args.
4347 set dummy svnversion; ac_word=$2
4348 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4349 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4350 if test "${ac_cv_prog_SVNVERSION+set}" = set; then
4351 echo $ECHO_N "(cached) $ECHO_C" >&6
4352 else
4353 if test -n "$SVNVERSION"; then
4354 ac_cv_prog_SVNVERSION="$SVNVERSION" # Let the user override the test.
4355 else
4356 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4357 for as_dir in $PATH
4359 IFS=$as_save_IFS
4360 test -z "$as_dir" && as_dir=.
4361 for ac_exec_ext in '' $ac_executable_extensions; do
4362 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4363 ac_cv_prog_SVNVERSION="found"
4364 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4365 break 2
4367 done
4368 done
4369 IFS=$as_save_IFS
4371 test -z "$ac_cv_prog_SVNVERSION" && ac_cv_prog_SVNVERSION="not-found"
4374 SVNVERSION=$ac_cv_prog_SVNVERSION
4375 if test -n "$SVNVERSION"; then
4376 { echo "$as_me:$LINENO: result: $SVNVERSION" >&5
4377 echo "${ECHO_T}$SVNVERSION" >&6; }
4378 else
4379 { echo "$as_me:$LINENO: result: no" >&5
4380 echo "${ECHO_T}no" >&6; }
4384 if test $SVNVERSION = found
4385 then
4386 SVNVERSION="svnversion \$(srcdir)"
4387 else
4388 SVNVERSION="echo Unversioned directory"
4391 case $MACHDEP in
4392 bsdos*|hp*|HP*)
4393 # install -d does not work on BSDI or HP-UX
4394 if test -z "$INSTALL"
4395 then
4396 INSTALL="${srcdir}/install-sh -c"
4398 esac
4399 ac_aux_dir=
4400 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
4401 if test -f "$ac_dir/install-sh"; then
4402 ac_aux_dir=$ac_dir
4403 ac_install_sh="$ac_aux_dir/install-sh -c"
4404 break
4405 elif test -f "$ac_dir/install.sh"; then
4406 ac_aux_dir=$ac_dir
4407 ac_install_sh="$ac_aux_dir/install.sh -c"
4408 break
4409 elif test -f "$ac_dir/shtool"; then
4410 ac_aux_dir=$ac_dir
4411 ac_install_sh="$ac_aux_dir/shtool install -c"
4412 break
4414 done
4415 if test -z "$ac_aux_dir"; then
4416 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
4417 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
4418 { (exit 1); exit 1; }; }
4421 # These three variables are undocumented and unsupported,
4422 # and are intended to be withdrawn in a future Autoconf release.
4423 # They can cause serious problems if a builder's source tree is in a directory
4424 # whose full name contains unusual characters.
4425 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
4426 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
4427 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
4430 # Find a good install program. We prefer a C program (faster),
4431 # so one script is as good as another. But avoid the broken or
4432 # incompatible versions:
4433 # SysV /etc/install, /usr/sbin/install
4434 # SunOS /usr/etc/install
4435 # IRIX /sbin/install
4436 # AIX /bin/install
4437 # AmigaOS /C/install, which installs bootblocks on floppy discs
4438 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4439 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4440 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4441 # OS/2's system install, which has a completely different semantic
4442 # ./install, which can be erroneously created by make from ./install.sh.
4443 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4444 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
4445 if test -z "$INSTALL"; then
4446 if test "${ac_cv_path_install+set}" = set; then
4447 echo $ECHO_N "(cached) $ECHO_C" >&6
4448 else
4449 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4450 for as_dir in $PATH
4452 IFS=$as_save_IFS
4453 test -z "$as_dir" && as_dir=.
4454 # Account for people who put trailing slashes in PATH elements.
4455 case $as_dir/ in
4456 ./ | .// | /cC/* | \
4457 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4458 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4459 /usr/ucb/* ) ;;
4461 # OSF1 and SCO ODT 3.0 have their own names for install.
4462 # Don't use installbsd from OSF since it installs stuff as root
4463 # by default.
4464 for ac_prog in ginstall scoinst install; do
4465 for ac_exec_ext in '' $ac_executable_extensions; do
4466 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4467 if test $ac_prog = install &&
4468 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4469 # AIX install. It has an incompatible calling convention.
4471 elif test $ac_prog = install &&
4472 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4473 # program-specific install script used by HP pwplus--don't use.
4475 else
4476 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4477 break 3
4480 done
4481 done
4483 esac
4484 done
4485 IFS=$as_save_IFS
4489 if test "${ac_cv_path_install+set}" = set; then
4490 INSTALL=$ac_cv_path_install
4491 else
4492 # As a last resort, use the slow shell script. Don't cache a
4493 # value for INSTALL within a source directory, because that will
4494 # break other packages using the cache if that directory is
4495 # removed, or if the value is a relative name.
4496 INSTALL=$ac_install_sh
4499 { echo "$as_me:$LINENO: result: $INSTALL" >&5
4500 echo "${ECHO_T}$INSTALL" >&6; }
4502 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4503 # It thinks the first close brace ends the variable substitution.
4504 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4506 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4508 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4511 # Not every filesystem supports hard links
4513 if test -z "$LN" ; then
4514 case $ac_sys_system in
4515 BeOS*) LN="ln -s";;
4516 CYGWIN*) LN="ln -s";;
4517 atheos*) LN="ln -s";;
4518 *) LN=ln;;
4519 esac
4522 # Check for --with-pydebug
4523 { echo "$as_me:$LINENO: checking for --with-pydebug" >&5
4524 echo $ECHO_N "checking for --with-pydebug... $ECHO_C" >&6; }
4526 # Check whether --with-pydebug was given.
4527 if test "${with_pydebug+set}" = set; then
4528 withval=$with_pydebug;
4529 if test "$withval" != no
4530 then
4532 cat >>confdefs.h <<\_ACEOF
4533 #define Py_DEBUG 1
4534 _ACEOF
4536 { echo "$as_me:$LINENO: result: yes" >&5
4537 echo "${ECHO_T}yes" >&6; };
4538 Py_DEBUG='true'
4539 else { echo "$as_me:$LINENO: result: no" >&5
4540 echo "${ECHO_T}no" >&6; }; Py_DEBUG='false'
4542 else
4543 { echo "$as_me:$LINENO: result: no" >&5
4544 echo "${ECHO_T}no" >&6; }
4548 # XXX Shouldn't the code above that fiddles with BASECFLAGS and OPT be
4549 # merged with this chunk of code?
4551 # Optimizer/debugger flags
4552 # ------------------------
4553 # (The following bit of code is complicated enough - please keep things
4554 # indented properly. Just pretend you're editing Python code. ;-)
4556 # There are two parallel sets of case statements below, one that checks to
4557 # see if OPT was set and one that does BASECFLAGS setting based upon
4558 # compiler and platform. BASECFLAGS tweaks need to be made even if the
4559 # user set OPT.
4561 # tweak OPT based on compiler and platform, only if the user didn't set
4562 # it on the command line
4564 if test -z "$OPT"
4565 then
4566 case $GCC in
4567 yes)
4568 if test "$CC" != 'g++' ; then
4569 STRICT_PROTO="-Wstrict-prototypes"
4571 # For gcc 4.x we need to use -fwrapv so lets check if its supported
4572 if "$CC" -v --help 2>/dev/null |grep -- -fwrapv > /dev/null; then
4573 WRAP="-fwrapv"
4575 case $ac_cv_prog_cc_g in
4576 yes)
4577 if test "$Py_DEBUG" = 'true' ; then
4578 # Optimization messes up debuggers, so turn it off for
4579 # debug builds.
4580 OPT="-g -Wall $STRICT_PROTO"
4581 else
4582 OPT="-g $WRAP -O3 -Wall $STRICT_PROTO"
4586 OPT="-O3 -Wall $STRICT_PROTO"
4588 esac
4589 case $ac_sys_system in
4590 SCO_SV*) OPT="$OPT -m486 -DSCO5"
4592 esac
4596 OPT="-O"
4598 esac
4600 # The current (beta) Monterey compiler dies with optimizations
4601 # XXX what is Monterey? Does it still die w/ -O? Can we get rid of this?
4602 case $ac_sys_system in
4603 Monterey*)
4604 OPT=""
4606 esac
4612 # The -arch flags for universal builds on OSX
4613 UNIVERSAL_ARCH_FLAGS=
4616 # tweak BASECFLAGS based on compiler and platform
4617 case $GCC in
4618 yes)
4619 # Python violates C99 rules, by casting between incompatible
4620 # pointer types. GCC may generate bad code as a result of that,
4621 # so use -fno-strict-aliasing if supported.
4622 { echo "$as_me:$LINENO: checking whether $CC accepts -fno-strict-aliasing" >&5
4623 echo $ECHO_N "checking whether $CC accepts -fno-strict-aliasing... $ECHO_C" >&6; }
4624 ac_save_cc="$CC"
4625 CC="$CC -fno-strict-aliasing"
4626 if test "$cross_compiling" = yes; then
4627 ac_cv_no_strict_aliasing_ok=no
4628 else
4629 cat >conftest.$ac_ext <<_ACEOF
4630 /* confdefs.h. */
4631 _ACEOF
4632 cat confdefs.h >>conftest.$ac_ext
4633 cat >>conftest.$ac_ext <<_ACEOF
4634 /* end confdefs.h. */
4635 int main() { return 0; }
4636 _ACEOF
4637 rm -f conftest$ac_exeext
4638 if { (ac_try="$ac_link"
4639 case "(($ac_try" in
4640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4641 *) ac_try_echo=$ac_try;;
4642 esac
4643 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4644 (eval "$ac_link") 2>&5
4645 ac_status=$?
4646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4647 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4648 { (case "(($ac_try" in
4649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4650 *) ac_try_echo=$ac_try;;
4651 esac
4652 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4653 (eval "$ac_try") 2>&5
4654 ac_status=$?
4655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4656 (exit $ac_status); }; }; then
4657 ac_cv_no_strict_aliasing_ok=yes
4658 else
4659 echo "$as_me: program exited with status $ac_status" >&5
4660 echo "$as_me: failed program was:" >&5
4661 sed 's/^/| /' conftest.$ac_ext >&5
4663 ( exit $ac_status )
4664 ac_cv_no_strict_aliasing_ok=no
4666 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4670 CC="$ac_save_cc"
4671 { echo "$as_me:$LINENO: result: $ac_cv_no_strict_aliasing_ok" >&5
4672 echo "${ECHO_T}$ac_cv_no_strict_aliasing_ok" >&6; }
4673 if test $ac_cv_no_strict_aliasing_ok = yes
4674 then
4675 BASECFLAGS="$BASECFLAGS -fno-strict-aliasing"
4678 # if using gcc on alpha, use -mieee to get (near) full IEEE 754
4679 # support. Without this, treatment of subnormals doesn't follow
4680 # the standard.
4681 case $ac_sys_machine in
4682 alpha*)
4683 BASECFLAGS="$BASECFLAGS -mieee"
4685 esac
4687 case $ac_sys_system in
4688 SCO_SV*)
4689 BASECFLAGS="$BASECFLAGS -m486 -DSCO5"
4691 # is there any other compiler on Darwin besides gcc?
4692 Darwin*)
4693 # -Wno-long-double, -no-cpp-precomp, and -mno-fused-madd
4694 # used to be here, but non-Apple gcc doesn't accept them.
4697 if test "${enable_universalsdk}"; then
4698 UNIVERSAL_ARCH_FLAGS=""
4699 if test "$UNIVERSAL_ARCHS" = "32-bit" ; then
4700 UNIVERSAL_ARCH_FLAGS="-arch ppc -arch i386"
4701 ARCH_RUN_32BIT=""
4703 elif test "$UNIVERSAL_ARCHS" = "64-bit" ; then
4704 UNIVERSAL_ARCH_FLAGS="-arch ppc64 -arch x86_64"
4706 elif test "$UNIVERSAL_ARCHS" = "all" ; then
4707 UNIVERSAL_ARCH_FLAGS="-arch i386 -arch ppc -arch ppc64 -arch x86_64"
4708 ARCH_RUN_32BIT="arch -i386 -ppc"
4710 else
4711 { { echo "$as_me:$LINENO: error: proper usage is --with-universalarch=32-bit|64-bit|all" >&5
4712 echo "$as_me: error: proper usage is --with-universalarch=32-bit|64-bit|all" >&2;}
4713 { (exit 1); exit 1; }; }
4718 BASECFLAGS="${UNIVERSAL_ARCH_FLAGS} -isysroot ${UNIVERSALSDK} ${BASECFLAGS}"
4719 tgt=`sw_vers -productVersion | sed 's/\(10\.[0-9]*\).*/\1/'`
4720 if test "${UNIVERSALSDK}" != "/" -a "${tgt}" '>' '10.4' ; then
4721 CFLAGS="${UNIVERSAL_ARCH_FLAGS} -isysroot ${UNIVERSALSDK} ${CFLAGS}"
4725 # Calculate the right deployment target for this build.
4727 cur_target=`sw_vers -productVersion | sed 's/\(10\.[0-9]*\).*/\1/'`
4728 if test ${cur_target} '>' 10.2; then
4729 cur_target=10.3
4731 if test "${UNIVERSAL_ARCHS}" = "all"; then
4732 # Ensure that the default platform for a 4-way
4733 # universal build is OSX 10.5, that's the first
4734 # OS release where 4-way builds make sense.
4735 cur_target='10.5'
4737 CONFIGURE_MACOSX_DEPLOYMENT_TARGET=${MACOSX_DEPLOYMENT_TARGET-${cur_target}}
4739 # Make sure that MACOSX_DEPLOYMENT_TARGET is set in the
4740 # environment with a value that is the same as what we'll use
4741 # in the Makefile to ensure that we'll get the same compiler
4742 # environment during configure and build time.
4743 MACOSX_DEPLOYMENT_TARGET="$CONFIGURE_MACOSX_DEPLOYMENT_TARGET"
4744 export MACOSX_DEPLOYMENT_TARGET
4745 EXPORT_MACOSX_DEPLOYMENT_TARGET=''
4748 OSF*)
4749 BASECFLAGS="$BASECFLAGS -mieee"
4751 esac
4755 case $ac_sys_system in
4756 OpenUNIX*|UnixWare*)
4757 BASECFLAGS="$BASECFLAGS -K pentium,host,inline,loop_unroll,alloca "
4759 OSF*)
4760 BASECFLAGS="$BASECFLAGS -ieee -std"
4762 SCO_SV*)
4763 BASECFLAGS="$BASECFLAGS -belf -Ki486 -DSCO5"
4765 esac
4767 esac
4769 if test "$Py_DEBUG" = 'true'; then
4771 else
4772 OPT="-DNDEBUG $OPT"
4775 if test "$ac_arch_flags"
4776 then
4777 BASECFLAGS="$BASECFLAGS $ac_arch_flags"
4780 # disable check for icc since it seems to pass, but generates a warning
4781 if test "$CC" = icc
4782 then
4783 ac_cv_opt_olimit_ok=no
4786 { echo "$as_me:$LINENO: checking whether $CC accepts -OPT:Olimit=0" >&5
4787 echo $ECHO_N "checking whether $CC accepts -OPT:Olimit=0... $ECHO_C" >&6; }
4788 if test "${ac_cv_opt_olimit_ok+set}" = set; then
4789 echo $ECHO_N "(cached) $ECHO_C" >&6
4790 else
4791 ac_save_cc="$CC"
4792 CC="$CC -OPT:Olimit=0"
4793 if test "$cross_compiling" = yes; then
4794 ac_cv_opt_olimit_ok=no
4795 else
4796 cat >conftest.$ac_ext <<_ACEOF
4797 /* confdefs.h. */
4798 _ACEOF
4799 cat confdefs.h >>conftest.$ac_ext
4800 cat >>conftest.$ac_ext <<_ACEOF
4801 /* end confdefs.h. */
4802 int main() { return 0; }
4803 _ACEOF
4804 rm -f conftest$ac_exeext
4805 if { (ac_try="$ac_link"
4806 case "(($ac_try" in
4807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4808 *) ac_try_echo=$ac_try;;
4809 esac
4810 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4811 (eval "$ac_link") 2>&5
4812 ac_status=$?
4813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4814 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4815 { (case "(($ac_try" in
4816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4817 *) ac_try_echo=$ac_try;;
4818 esac
4819 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4820 (eval "$ac_try") 2>&5
4821 ac_status=$?
4822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4823 (exit $ac_status); }; }; then
4824 ac_cv_opt_olimit_ok=yes
4825 else
4826 echo "$as_me: program exited with status $ac_status" >&5
4827 echo "$as_me: failed program was:" >&5
4828 sed 's/^/| /' conftest.$ac_ext >&5
4830 ( exit $ac_status )
4831 ac_cv_opt_olimit_ok=no
4833 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4837 CC="$ac_save_cc"
4840 { echo "$as_me:$LINENO: result: $ac_cv_opt_olimit_ok" >&5
4841 echo "${ECHO_T}$ac_cv_opt_olimit_ok" >&6; }
4842 if test $ac_cv_opt_olimit_ok = yes; then
4843 case $ac_sys_system in
4844 # XXX is this branch needed? On MacOSX 10.2.2 the result of the
4845 # olimit_ok test is "no". Is it "yes" in some other Darwin-esque
4846 # environment?
4847 Darwin*)
4850 BASECFLAGS="$BASECFLAGS -OPT:Olimit=0"
4852 esac
4853 else
4854 { echo "$as_me:$LINENO: checking whether $CC accepts -Olimit 1500" >&5
4855 echo $ECHO_N "checking whether $CC accepts -Olimit 1500... $ECHO_C" >&6; }
4856 if test "${ac_cv_olimit_ok+set}" = set; then
4857 echo $ECHO_N "(cached) $ECHO_C" >&6
4858 else
4859 ac_save_cc="$CC"
4860 CC="$CC -Olimit 1500"
4861 if test "$cross_compiling" = yes; then
4862 ac_cv_olimit_ok=no
4863 else
4864 cat >conftest.$ac_ext <<_ACEOF
4865 /* confdefs.h. */
4866 _ACEOF
4867 cat confdefs.h >>conftest.$ac_ext
4868 cat >>conftest.$ac_ext <<_ACEOF
4869 /* end confdefs.h. */
4870 int main() { return 0; }
4871 _ACEOF
4872 rm -f conftest$ac_exeext
4873 if { (ac_try="$ac_link"
4874 case "(($ac_try" in
4875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4876 *) ac_try_echo=$ac_try;;
4877 esac
4878 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4879 (eval "$ac_link") 2>&5
4880 ac_status=$?
4881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4882 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4883 { (case "(($ac_try" in
4884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4885 *) ac_try_echo=$ac_try;;
4886 esac
4887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4888 (eval "$ac_try") 2>&5
4889 ac_status=$?
4890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4891 (exit $ac_status); }; }; then
4892 ac_cv_olimit_ok=yes
4893 else
4894 echo "$as_me: program exited with status $ac_status" >&5
4895 echo "$as_me: failed program was:" >&5
4896 sed 's/^/| /' conftest.$ac_ext >&5
4898 ( exit $ac_status )
4899 ac_cv_olimit_ok=no
4901 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4905 CC="$ac_save_cc"
4908 { echo "$as_me:$LINENO: result: $ac_cv_olimit_ok" >&5
4909 echo "${ECHO_T}$ac_cv_olimit_ok" >&6; }
4910 if test $ac_cv_olimit_ok = yes; then
4911 BASECFLAGS="$BASECFLAGS -Olimit 1500"
4915 # Check whether GCC supports PyArg_ParseTuple format
4916 if test "$GCC" = "yes"
4917 then
4918 { echo "$as_me:$LINENO: checking whether gcc supports ParseTuple __format__" >&5
4919 echo $ECHO_N "checking whether gcc supports ParseTuple __format__... $ECHO_C" >&6; }
4920 save_CFLAGS=$CFLAGS
4921 CFLAGS="$CFLAGS -Werror"
4922 cat >conftest.$ac_ext <<_ACEOF
4923 /* confdefs.h. */
4924 _ACEOF
4925 cat confdefs.h >>conftest.$ac_ext
4926 cat >>conftest.$ac_ext <<_ACEOF
4927 /* end confdefs.h. */
4929 void f(char*,...)__attribute((format(PyArg_ParseTuple, 1, 2)));
4932 main ()
4936 return 0;
4938 _ACEOF
4939 rm -f conftest.$ac_objext
4940 if { (ac_try="$ac_compile"
4941 case "(($ac_try" in
4942 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4943 *) ac_try_echo=$ac_try;;
4944 esac
4945 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4946 (eval "$ac_compile") 2>conftest.er1
4947 ac_status=$?
4948 grep -v '^ *+' conftest.er1 >conftest.err
4949 rm -f conftest.er1
4950 cat conftest.err >&5
4951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4952 (exit $ac_status); } && {
4953 test -z "$ac_c_werror_flag" ||
4954 test ! -s conftest.err
4955 } && test -s conftest.$ac_objext; then
4957 cat >>confdefs.h <<\_ACEOF
4958 #define HAVE_ATTRIBUTE_FORMAT_PARSETUPLE 1
4959 _ACEOF
4961 { echo "$as_me:$LINENO: result: yes" >&5
4962 echo "${ECHO_T}yes" >&6; }
4963 else
4964 echo "$as_me: failed program was:" >&5
4965 sed 's/^/| /' conftest.$ac_ext >&5
4967 { echo "$as_me:$LINENO: result: no" >&5
4968 echo "${ECHO_T}no" >&6; }
4972 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4973 CFLAGS=$save_CFLAGS
4976 # On some compilers, pthreads are available without further options
4977 # (e.g. MacOS X). On some of these systems, the compiler will not
4978 # complain if unaccepted options are passed (e.g. gcc on Mac OS X).
4979 # So we have to see first whether pthreads are available without
4980 # options before we can check whether -Kpthread improves anything.
4981 { echo "$as_me:$LINENO: checking whether pthreads are available without options" >&5
4982 echo $ECHO_N "checking whether pthreads are available without options... $ECHO_C" >&6; }
4983 if test "${ac_cv_pthread_is_default+set}" = set; then
4984 echo $ECHO_N "(cached) $ECHO_C" >&6
4985 else
4986 if test "$cross_compiling" = yes; then
4987 ac_cv_pthread_is_default=no
4988 else
4989 cat >conftest.$ac_ext <<_ACEOF
4990 /* confdefs.h. */
4991 _ACEOF
4992 cat confdefs.h >>conftest.$ac_ext
4993 cat >>conftest.$ac_ext <<_ACEOF
4994 /* end confdefs.h. */
4996 #include <pthread.h>
4998 void* routine(void* p){return NULL;}
5000 int main(){
5001 pthread_t p;
5002 if(pthread_create(&p,NULL,routine,NULL)!=0)
5003 return 1;
5004 (void)pthread_detach(p);
5005 return 0;
5008 _ACEOF
5009 rm -f conftest$ac_exeext
5010 if { (ac_try="$ac_link"
5011 case "(($ac_try" in
5012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5013 *) ac_try_echo=$ac_try;;
5014 esac
5015 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5016 (eval "$ac_link") 2>&5
5017 ac_status=$?
5018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5019 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5020 { (case "(($ac_try" in
5021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5022 *) ac_try_echo=$ac_try;;
5023 esac
5024 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5025 (eval "$ac_try") 2>&5
5026 ac_status=$?
5027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5028 (exit $ac_status); }; }; then
5030 ac_cv_pthread_is_default=yes
5031 ac_cv_kthread=no
5032 ac_cv_pthread=no
5034 else
5035 echo "$as_me: program exited with status $ac_status" >&5
5036 echo "$as_me: failed program was:" >&5
5037 sed 's/^/| /' conftest.$ac_ext >&5
5039 ( exit $ac_status )
5040 ac_cv_pthread_is_default=no
5042 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5049 { echo "$as_me:$LINENO: result: $ac_cv_pthread_is_default" >&5
5050 echo "${ECHO_T}$ac_cv_pthread_is_default" >&6; }
5053 if test $ac_cv_pthread_is_default = yes
5054 then
5055 ac_cv_kpthread=no
5056 else
5057 # -Kpthread, if available, provides the right #defines
5058 # and linker options to make pthread_create available
5059 # Some compilers won't report that they do not support -Kpthread,
5060 # so we need to run a program to see whether it really made the
5061 # function available.
5062 { echo "$as_me:$LINENO: checking whether $CC accepts -Kpthread" >&5
5063 echo $ECHO_N "checking whether $CC accepts -Kpthread... $ECHO_C" >&6; }
5064 if test "${ac_cv_kpthread+set}" = set; then
5065 echo $ECHO_N "(cached) $ECHO_C" >&6
5066 else
5067 ac_save_cc="$CC"
5068 CC="$CC -Kpthread"
5069 if test "$cross_compiling" = yes; then
5070 ac_cv_kpthread=no
5071 else
5072 cat >conftest.$ac_ext <<_ACEOF
5073 /* confdefs.h. */
5074 _ACEOF
5075 cat confdefs.h >>conftest.$ac_ext
5076 cat >>conftest.$ac_ext <<_ACEOF
5077 /* end confdefs.h. */
5079 #include <pthread.h>
5081 void* routine(void* p){return NULL;}
5083 int main(){
5084 pthread_t p;
5085 if(pthread_create(&p,NULL,routine,NULL)!=0)
5086 return 1;
5087 (void)pthread_detach(p);
5088 return 0;
5091 _ACEOF
5092 rm -f conftest$ac_exeext
5093 if { (ac_try="$ac_link"
5094 case "(($ac_try" in
5095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5096 *) ac_try_echo=$ac_try;;
5097 esac
5098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5099 (eval "$ac_link") 2>&5
5100 ac_status=$?
5101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5102 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5103 { (case "(($ac_try" in
5104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5105 *) ac_try_echo=$ac_try;;
5106 esac
5107 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5108 (eval "$ac_try") 2>&5
5109 ac_status=$?
5110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5111 (exit $ac_status); }; }; then
5112 ac_cv_kpthread=yes
5113 else
5114 echo "$as_me: program exited with status $ac_status" >&5
5115 echo "$as_me: failed program was:" >&5
5116 sed 's/^/| /' conftest.$ac_ext >&5
5118 ( exit $ac_status )
5119 ac_cv_kpthread=no
5121 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5125 CC="$ac_save_cc"
5128 { echo "$as_me:$LINENO: result: $ac_cv_kpthread" >&5
5129 echo "${ECHO_T}$ac_cv_kpthread" >&6; }
5132 if test $ac_cv_kpthread = no -a $ac_cv_pthread_is_default = no
5133 then
5134 # -Kthread, if available, provides the right #defines
5135 # and linker options to make pthread_create available
5136 # Some compilers won't report that they do not support -Kthread,
5137 # so we need to run a program to see whether it really made the
5138 # function available.
5139 { echo "$as_me:$LINENO: checking whether $CC accepts -Kthread" >&5
5140 echo $ECHO_N "checking whether $CC accepts -Kthread... $ECHO_C" >&6; }
5141 if test "${ac_cv_kthread+set}" = set; then
5142 echo $ECHO_N "(cached) $ECHO_C" >&6
5143 else
5144 ac_save_cc="$CC"
5145 CC="$CC -Kthread"
5146 if test "$cross_compiling" = yes; then
5147 ac_cv_kthread=no
5148 else
5149 cat >conftest.$ac_ext <<_ACEOF
5150 /* confdefs.h. */
5151 _ACEOF
5152 cat confdefs.h >>conftest.$ac_ext
5153 cat >>conftest.$ac_ext <<_ACEOF
5154 /* end confdefs.h. */
5156 #include <pthread.h>
5158 void* routine(void* p){return NULL;}
5160 int main(){
5161 pthread_t p;
5162 if(pthread_create(&p,NULL,routine,NULL)!=0)
5163 return 1;
5164 (void)pthread_detach(p);
5165 return 0;
5168 _ACEOF
5169 rm -f conftest$ac_exeext
5170 if { (ac_try="$ac_link"
5171 case "(($ac_try" in
5172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5173 *) ac_try_echo=$ac_try;;
5174 esac
5175 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5176 (eval "$ac_link") 2>&5
5177 ac_status=$?
5178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5179 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5180 { (case "(($ac_try" in
5181 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5182 *) ac_try_echo=$ac_try;;
5183 esac
5184 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5185 (eval "$ac_try") 2>&5
5186 ac_status=$?
5187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5188 (exit $ac_status); }; }; then
5189 ac_cv_kthread=yes
5190 else
5191 echo "$as_me: program exited with status $ac_status" >&5
5192 echo "$as_me: failed program was:" >&5
5193 sed 's/^/| /' conftest.$ac_ext >&5
5195 ( exit $ac_status )
5196 ac_cv_kthread=no
5198 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5202 CC="$ac_save_cc"
5205 { echo "$as_me:$LINENO: result: $ac_cv_kthread" >&5
5206 echo "${ECHO_T}$ac_cv_kthread" >&6; }
5209 if test $ac_cv_kthread = no -a $ac_cv_pthread_is_default = no
5210 then
5211 # -pthread, if available, provides the right #defines
5212 # and linker options to make pthread_create available
5213 # Some compilers won't report that they do not support -pthread,
5214 # so we need to run a program to see whether it really made the
5215 # function available.
5216 { echo "$as_me:$LINENO: checking whether $CC accepts -pthread" >&5
5217 echo $ECHO_N "checking whether $CC accepts -pthread... $ECHO_C" >&6; }
5218 if test "${ac_cv_thread+set}" = set; then
5219 echo $ECHO_N "(cached) $ECHO_C" >&6
5220 else
5221 ac_save_cc="$CC"
5222 CC="$CC -pthread"
5223 if test "$cross_compiling" = yes; then
5224 ac_cv_pthread=no
5225 else
5226 cat >conftest.$ac_ext <<_ACEOF
5227 /* confdefs.h. */
5228 _ACEOF
5229 cat confdefs.h >>conftest.$ac_ext
5230 cat >>conftest.$ac_ext <<_ACEOF
5231 /* end confdefs.h. */
5233 #include <pthread.h>
5235 void* routine(void* p){return NULL;}
5237 int main(){
5238 pthread_t p;
5239 if(pthread_create(&p,NULL,routine,NULL)!=0)
5240 return 1;
5241 (void)pthread_detach(p);
5242 return 0;
5245 _ACEOF
5246 rm -f conftest$ac_exeext
5247 if { (ac_try="$ac_link"
5248 case "(($ac_try" in
5249 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5250 *) ac_try_echo=$ac_try;;
5251 esac
5252 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5253 (eval "$ac_link") 2>&5
5254 ac_status=$?
5255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5256 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5257 { (case "(($ac_try" in
5258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5259 *) ac_try_echo=$ac_try;;
5260 esac
5261 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5262 (eval "$ac_try") 2>&5
5263 ac_status=$?
5264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5265 (exit $ac_status); }; }; then
5266 ac_cv_pthread=yes
5267 else
5268 echo "$as_me: program exited with status $ac_status" >&5
5269 echo "$as_me: failed program was:" >&5
5270 sed 's/^/| /' conftest.$ac_ext >&5
5272 ( exit $ac_status )
5273 ac_cv_pthread=no
5275 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5279 CC="$ac_save_cc"
5282 { echo "$as_me:$LINENO: result: $ac_cv_pthread" >&5
5283 echo "${ECHO_T}$ac_cv_pthread" >&6; }
5286 # If we have set a CC compiler flag for thread support then
5287 # check if it works for CXX, too.
5288 ac_cv_cxx_thread=no
5289 if test ! -z "$CXX"
5290 then
5291 { echo "$as_me:$LINENO: checking whether $CXX also accepts flags for thread support" >&5
5292 echo $ECHO_N "checking whether $CXX also accepts flags for thread support... $ECHO_C" >&6; }
5293 ac_save_cxx="$CXX"
5295 if test "$ac_cv_kpthread" = "yes"
5296 then
5297 CXX="$CXX -Kpthread"
5298 ac_cv_cxx_thread=yes
5299 elif test "$ac_cv_kthread" = "yes"
5300 then
5301 CXX="$CXX -Kthread"
5302 ac_cv_cxx_thread=yes
5303 elif test "$ac_cv_pthread" = "yes"
5304 then
5305 CXX="$CXX -pthread"
5306 ac_cv_cxx_thread=yes
5309 if test $ac_cv_cxx_thread = yes
5310 then
5311 echo 'void foo();int main(){foo();}void foo(){}' > conftest.$ac_ext
5312 $CXX -c conftest.$ac_ext 2>&5
5313 if $CXX -o conftest$ac_exeext conftest.$ac_objext 2>&5 \
5314 && test -s conftest$ac_exeext && ./conftest$ac_exeext
5315 then
5316 ac_cv_cxx_thread=yes
5317 else
5318 ac_cv_cxx_thread=no
5320 rm -fr conftest*
5322 { echo "$as_me:$LINENO: result: $ac_cv_cxx_thread" >&5
5323 echo "${ECHO_T}$ac_cv_cxx_thread" >&6; }
5325 CXX="$ac_save_cxx"
5328 # checks for header files
5329 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5330 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
5331 if test "${ac_cv_header_stdc+set}" = set; then
5332 echo $ECHO_N "(cached) $ECHO_C" >&6
5333 else
5334 cat >conftest.$ac_ext <<_ACEOF
5335 /* confdefs.h. */
5336 _ACEOF
5337 cat confdefs.h >>conftest.$ac_ext
5338 cat >>conftest.$ac_ext <<_ACEOF
5339 /* end confdefs.h. */
5340 #include <stdlib.h>
5341 #include <stdarg.h>
5342 #include <string.h>
5343 #include <float.h>
5346 main ()
5350 return 0;
5352 _ACEOF
5353 rm -f conftest.$ac_objext
5354 if { (ac_try="$ac_compile"
5355 case "(($ac_try" in
5356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5357 *) ac_try_echo=$ac_try;;
5358 esac
5359 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5360 (eval "$ac_compile") 2>conftest.er1
5361 ac_status=$?
5362 grep -v '^ *+' conftest.er1 >conftest.err
5363 rm -f conftest.er1
5364 cat conftest.err >&5
5365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5366 (exit $ac_status); } && {
5367 test -z "$ac_c_werror_flag" ||
5368 test ! -s conftest.err
5369 } && test -s conftest.$ac_objext; then
5370 ac_cv_header_stdc=yes
5371 else
5372 echo "$as_me: failed program was:" >&5
5373 sed 's/^/| /' conftest.$ac_ext >&5
5375 ac_cv_header_stdc=no
5378 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5380 if test $ac_cv_header_stdc = yes; then
5381 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5382 cat >conftest.$ac_ext <<_ACEOF
5383 /* confdefs.h. */
5384 _ACEOF
5385 cat confdefs.h >>conftest.$ac_ext
5386 cat >>conftest.$ac_ext <<_ACEOF
5387 /* end confdefs.h. */
5388 #include <string.h>
5390 _ACEOF
5391 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5392 $EGREP "memchr" >/dev/null 2>&1; then
5394 else
5395 ac_cv_header_stdc=no
5397 rm -f conftest*
5401 if test $ac_cv_header_stdc = yes; then
5402 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5403 cat >conftest.$ac_ext <<_ACEOF
5404 /* confdefs.h. */
5405 _ACEOF
5406 cat confdefs.h >>conftest.$ac_ext
5407 cat >>conftest.$ac_ext <<_ACEOF
5408 /* end confdefs.h. */
5409 #include <stdlib.h>
5411 _ACEOF
5412 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5413 $EGREP "free" >/dev/null 2>&1; then
5415 else
5416 ac_cv_header_stdc=no
5418 rm -f conftest*
5422 if test $ac_cv_header_stdc = yes; then
5423 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5424 if test "$cross_compiling" = yes; then
5426 else
5427 cat >conftest.$ac_ext <<_ACEOF
5428 /* confdefs.h. */
5429 _ACEOF
5430 cat confdefs.h >>conftest.$ac_ext
5431 cat >>conftest.$ac_ext <<_ACEOF
5432 /* end confdefs.h. */
5433 #include <ctype.h>
5434 #include <stdlib.h>
5435 #if ((' ' & 0x0FF) == 0x020)
5436 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5437 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5438 #else
5439 # define ISLOWER(c) \
5440 (('a' <= (c) && (c) <= 'i') \
5441 || ('j' <= (c) && (c) <= 'r') \
5442 || ('s' <= (c) && (c) <= 'z'))
5443 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5444 #endif
5446 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5448 main ()
5450 int i;
5451 for (i = 0; i < 256; i++)
5452 if (XOR (islower (i), ISLOWER (i))
5453 || toupper (i) != TOUPPER (i))
5454 return 2;
5455 return 0;
5457 _ACEOF
5458 rm -f conftest$ac_exeext
5459 if { (ac_try="$ac_link"
5460 case "(($ac_try" in
5461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5462 *) ac_try_echo=$ac_try;;
5463 esac
5464 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5465 (eval "$ac_link") 2>&5
5466 ac_status=$?
5467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5468 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5469 { (case "(($ac_try" in
5470 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5471 *) ac_try_echo=$ac_try;;
5472 esac
5473 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5474 (eval "$ac_try") 2>&5
5475 ac_status=$?
5476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5477 (exit $ac_status); }; }; then
5479 else
5480 echo "$as_me: program exited with status $ac_status" >&5
5481 echo "$as_me: failed program was:" >&5
5482 sed 's/^/| /' conftest.$ac_ext >&5
5484 ( exit $ac_status )
5485 ac_cv_header_stdc=no
5487 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5493 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5494 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
5495 if test $ac_cv_header_stdc = yes; then
5497 cat >>confdefs.h <<\_ACEOF
5498 #define STDC_HEADERS 1
5499 _ACEOF
5503 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5513 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5514 inttypes.h stdint.h unistd.h
5516 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5517 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5518 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5519 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5520 echo $ECHO_N "(cached) $ECHO_C" >&6
5521 else
5522 cat >conftest.$ac_ext <<_ACEOF
5523 /* confdefs.h. */
5524 _ACEOF
5525 cat confdefs.h >>conftest.$ac_ext
5526 cat >>conftest.$ac_ext <<_ACEOF
5527 /* end confdefs.h. */
5528 $ac_includes_default
5530 #include <$ac_header>
5531 _ACEOF
5532 rm -f conftest.$ac_objext
5533 if { (ac_try="$ac_compile"
5534 case "(($ac_try" in
5535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5536 *) ac_try_echo=$ac_try;;
5537 esac
5538 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5539 (eval "$ac_compile") 2>conftest.er1
5540 ac_status=$?
5541 grep -v '^ *+' conftest.er1 >conftest.err
5542 rm -f conftest.er1
5543 cat conftest.err >&5
5544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5545 (exit $ac_status); } && {
5546 test -z "$ac_c_werror_flag" ||
5547 test ! -s conftest.err
5548 } && test -s conftest.$ac_objext; then
5549 eval "$as_ac_Header=yes"
5550 else
5551 echo "$as_me: failed program was:" >&5
5552 sed 's/^/| /' conftest.$ac_ext >&5
5554 eval "$as_ac_Header=no"
5557 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5559 ac_res=`eval echo '${'$as_ac_Header'}'`
5560 { echo "$as_me:$LINENO: result: $ac_res" >&5
5561 echo "${ECHO_T}$ac_res" >&6; }
5562 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5563 cat >>confdefs.h <<_ACEOF
5564 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5565 _ACEOF
5569 done
5626 for ac_header in asm/types.h conio.h curses.h direct.h dlfcn.h errno.h \
5627 fcntl.h grp.h \
5628 ieeefp.h io.h langinfo.h libintl.h ncurses.h poll.h process.h pthread.h \
5629 shadow.h signal.h stdint.h stropts.h termios.h thread.h \
5630 unistd.h utime.h \
5631 sys/audioio.h sys/bsdtty.h sys/epoll.h sys/event.h sys/file.h sys/loadavg.h \
5632 sys/lock.h sys/mkdev.h sys/modem.h \
5633 sys/param.h sys/poll.h sys/select.h sys/socket.h sys/statvfs.h sys/stat.h \
5634 sys/termio.h sys/time.h \
5635 sys/times.h sys/types.h sys/un.h sys/utsname.h sys/wait.h pty.h libutil.h \
5636 sys/resource.h netpacket/packet.h sysexits.h bluetooth.h \
5637 bluetooth/bluetooth.h linux/tipc.h
5639 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5640 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5641 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5642 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5643 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5644 echo $ECHO_N "(cached) $ECHO_C" >&6
5646 ac_res=`eval echo '${'$as_ac_Header'}'`
5647 { echo "$as_me:$LINENO: result: $ac_res" >&5
5648 echo "${ECHO_T}$ac_res" >&6; }
5649 else
5650 # Is the header compilable?
5651 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5652 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5653 cat >conftest.$ac_ext <<_ACEOF
5654 /* confdefs.h. */
5655 _ACEOF
5656 cat confdefs.h >>conftest.$ac_ext
5657 cat >>conftest.$ac_ext <<_ACEOF
5658 /* end confdefs.h. */
5659 $ac_includes_default
5660 #include <$ac_header>
5661 _ACEOF
5662 rm -f conftest.$ac_objext
5663 if { (ac_try="$ac_compile"
5664 case "(($ac_try" in
5665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5666 *) ac_try_echo=$ac_try;;
5667 esac
5668 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5669 (eval "$ac_compile") 2>conftest.er1
5670 ac_status=$?
5671 grep -v '^ *+' conftest.er1 >conftest.err
5672 rm -f conftest.er1
5673 cat conftest.err >&5
5674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5675 (exit $ac_status); } && {
5676 test -z "$ac_c_werror_flag" ||
5677 test ! -s conftest.err
5678 } && test -s conftest.$ac_objext; then
5679 ac_header_compiler=yes
5680 else
5681 echo "$as_me: failed program was:" >&5
5682 sed 's/^/| /' conftest.$ac_ext >&5
5684 ac_header_compiler=no
5687 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5688 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5689 echo "${ECHO_T}$ac_header_compiler" >&6; }
5691 # Is the header present?
5692 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5693 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5694 cat >conftest.$ac_ext <<_ACEOF
5695 /* confdefs.h. */
5696 _ACEOF
5697 cat confdefs.h >>conftest.$ac_ext
5698 cat >>conftest.$ac_ext <<_ACEOF
5699 /* end confdefs.h. */
5700 #include <$ac_header>
5701 _ACEOF
5702 if { (ac_try="$ac_cpp conftest.$ac_ext"
5703 case "(($ac_try" in
5704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5705 *) ac_try_echo=$ac_try;;
5706 esac
5707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5708 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5709 ac_status=$?
5710 grep -v '^ *+' conftest.er1 >conftest.err
5711 rm -f conftest.er1
5712 cat conftest.err >&5
5713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5714 (exit $ac_status); } >/dev/null && {
5715 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5716 test ! -s conftest.err
5717 }; then
5718 ac_header_preproc=yes
5719 else
5720 echo "$as_me: failed program was:" >&5
5721 sed 's/^/| /' conftest.$ac_ext >&5
5723 ac_header_preproc=no
5726 rm -f conftest.err conftest.$ac_ext
5727 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5728 echo "${ECHO_T}$ac_header_preproc" >&6; }
5730 # So? What about this header?
5731 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5732 yes:no: )
5733 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5734 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5735 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5736 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5737 ac_header_preproc=yes
5739 no:yes:* )
5740 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5741 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5742 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5743 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5744 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5745 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5746 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5747 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5748 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5749 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5750 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5751 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5752 ( cat <<\_ASBOX
5753 ## -------------------------------------- ##
5754 ## Report this to http://bugs.python.org/ ##
5755 ## -------------------------------------- ##
5756 _ASBOX
5757 ) | sed "s/^/$as_me: WARNING: /" >&2
5759 esac
5760 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5761 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5762 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5763 echo $ECHO_N "(cached) $ECHO_C" >&6
5764 else
5765 eval "$as_ac_Header=\$ac_header_preproc"
5767 ac_res=`eval echo '${'$as_ac_Header'}'`
5768 { echo "$as_me:$LINENO: result: $ac_res" >&5
5769 echo "${ECHO_T}$ac_res" >&6; }
5772 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5773 cat >>confdefs.h <<_ACEOF
5774 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5775 _ACEOF
5779 done
5786 ac_header_dirent=no
5787 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
5788 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
5789 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
5790 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
5791 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5792 echo $ECHO_N "(cached) $ECHO_C" >&6
5793 else
5794 cat >conftest.$ac_ext <<_ACEOF
5795 /* confdefs.h. */
5796 _ACEOF
5797 cat confdefs.h >>conftest.$ac_ext
5798 cat >>conftest.$ac_ext <<_ACEOF
5799 /* end confdefs.h. */
5800 #include <sys/types.h>
5801 #include <$ac_hdr>
5804 main ()
5806 if ((DIR *) 0)
5807 return 0;
5809 return 0;
5811 _ACEOF
5812 rm -f conftest.$ac_objext
5813 if { (ac_try="$ac_compile"
5814 case "(($ac_try" in
5815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5816 *) ac_try_echo=$ac_try;;
5817 esac
5818 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5819 (eval "$ac_compile") 2>conftest.er1
5820 ac_status=$?
5821 grep -v '^ *+' conftest.er1 >conftest.err
5822 rm -f conftest.er1
5823 cat conftest.err >&5
5824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5825 (exit $ac_status); } && {
5826 test -z "$ac_c_werror_flag" ||
5827 test ! -s conftest.err
5828 } && test -s conftest.$ac_objext; then
5829 eval "$as_ac_Header=yes"
5830 else
5831 echo "$as_me: failed program was:" >&5
5832 sed 's/^/| /' conftest.$ac_ext >&5
5834 eval "$as_ac_Header=no"
5837 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5839 ac_res=`eval echo '${'$as_ac_Header'}'`
5840 { echo "$as_me:$LINENO: result: $ac_res" >&5
5841 echo "${ECHO_T}$ac_res" >&6; }
5842 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5843 cat >>confdefs.h <<_ACEOF
5844 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
5845 _ACEOF
5847 ac_header_dirent=$ac_hdr; break
5850 done
5851 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
5852 if test $ac_header_dirent = dirent.h; then
5853 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
5854 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
5855 if test "${ac_cv_search_opendir+set}" = set; then
5856 echo $ECHO_N "(cached) $ECHO_C" >&6
5857 else
5858 ac_func_search_save_LIBS=$LIBS
5859 cat >conftest.$ac_ext <<_ACEOF
5860 /* confdefs.h. */
5861 _ACEOF
5862 cat confdefs.h >>conftest.$ac_ext
5863 cat >>conftest.$ac_ext <<_ACEOF
5864 /* end confdefs.h. */
5866 /* Override any GCC internal prototype to avoid an error.
5867 Use char because int might match the return type of a GCC
5868 builtin and then its argument prototype would still apply. */
5869 #ifdef __cplusplus
5870 extern "C"
5871 #endif
5872 char opendir ();
5874 main ()
5876 return opendir ();
5878 return 0;
5880 _ACEOF
5881 for ac_lib in '' dir; do
5882 if test -z "$ac_lib"; then
5883 ac_res="none required"
5884 else
5885 ac_res=-l$ac_lib
5886 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5888 rm -f conftest.$ac_objext conftest$ac_exeext
5889 if { (ac_try="$ac_link"
5890 case "(($ac_try" in
5891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5892 *) ac_try_echo=$ac_try;;
5893 esac
5894 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5895 (eval "$ac_link") 2>conftest.er1
5896 ac_status=$?
5897 grep -v '^ *+' conftest.er1 >conftest.err
5898 rm -f conftest.er1
5899 cat conftest.err >&5
5900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5901 (exit $ac_status); } && {
5902 test -z "$ac_c_werror_flag" ||
5903 test ! -s conftest.err
5904 } && test -s conftest$ac_exeext &&
5905 $as_test_x conftest$ac_exeext; then
5906 ac_cv_search_opendir=$ac_res
5907 else
5908 echo "$as_me: failed program was:" >&5
5909 sed 's/^/| /' conftest.$ac_ext >&5
5914 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5915 conftest$ac_exeext
5916 if test "${ac_cv_search_opendir+set}" = set; then
5917 break
5919 done
5920 if test "${ac_cv_search_opendir+set}" = set; then
5922 else
5923 ac_cv_search_opendir=no
5925 rm conftest.$ac_ext
5926 LIBS=$ac_func_search_save_LIBS
5928 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
5929 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
5930 ac_res=$ac_cv_search_opendir
5931 if test "$ac_res" != no; then
5932 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5936 else
5937 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
5938 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
5939 if test "${ac_cv_search_opendir+set}" = set; then
5940 echo $ECHO_N "(cached) $ECHO_C" >&6
5941 else
5942 ac_func_search_save_LIBS=$LIBS
5943 cat >conftest.$ac_ext <<_ACEOF
5944 /* confdefs.h. */
5945 _ACEOF
5946 cat confdefs.h >>conftest.$ac_ext
5947 cat >>conftest.$ac_ext <<_ACEOF
5948 /* end confdefs.h. */
5950 /* Override any GCC internal prototype to avoid an error.
5951 Use char because int might match the return type of a GCC
5952 builtin and then its argument prototype would still apply. */
5953 #ifdef __cplusplus
5954 extern "C"
5955 #endif
5956 char opendir ();
5958 main ()
5960 return opendir ();
5962 return 0;
5964 _ACEOF
5965 for ac_lib in '' x; do
5966 if test -z "$ac_lib"; then
5967 ac_res="none required"
5968 else
5969 ac_res=-l$ac_lib
5970 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5972 rm -f conftest.$ac_objext conftest$ac_exeext
5973 if { (ac_try="$ac_link"
5974 case "(($ac_try" in
5975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5976 *) ac_try_echo=$ac_try;;
5977 esac
5978 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5979 (eval "$ac_link") 2>conftest.er1
5980 ac_status=$?
5981 grep -v '^ *+' conftest.er1 >conftest.err
5982 rm -f conftest.er1
5983 cat conftest.err >&5
5984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5985 (exit $ac_status); } && {
5986 test -z "$ac_c_werror_flag" ||
5987 test ! -s conftest.err
5988 } && test -s conftest$ac_exeext &&
5989 $as_test_x conftest$ac_exeext; then
5990 ac_cv_search_opendir=$ac_res
5991 else
5992 echo "$as_me: failed program was:" >&5
5993 sed 's/^/| /' conftest.$ac_ext >&5
5998 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5999 conftest$ac_exeext
6000 if test "${ac_cv_search_opendir+set}" = set; then
6001 break
6003 done
6004 if test "${ac_cv_search_opendir+set}" = set; then
6006 else
6007 ac_cv_search_opendir=no
6009 rm conftest.$ac_ext
6010 LIBS=$ac_func_search_save_LIBS
6012 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6013 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
6014 ac_res=$ac_cv_search_opendir
6015 if test "$ac_res" != no; then
6016 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6022 { echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
6023 echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6; }
6024 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
6025 echo $ECHO_N "(cached) $ECHO_C" >&6
6026 else
6027 cat >conftest.$ac_ext <<_ACEOF
6028 /* confdefs.h. */
6029 _ACEOF
6030 cat confdefs.h >>conftest.$ac_ext
6031 cat >>conftest.$ac_ext <<_ACEOF
6032 /* end confdefs.h. */
6033 #include <sys/types.h>
6035 main ()
6037 return makedev(0, 0);
6039 return 0;
6041 _ACEOF
6042 rm -f conftest.$ac_objext conftest$ac_exeext
6043 if { (ac_try="$ac_link"
6044 case "(($ac_try" in
6045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6046 *) ac_try_echo=$ac_try;;
6047 esac
6048 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6049 (eval "$ac_link") 2>conftest.er1
6050 ac_status=$?
6051 grep -v '^ *+' conftest.er1 >conftest.err
6052 rm -f conftest.er1
6053 cat conftest.err >&5
6054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6055 (exit $ac_status); } && {
6056 test -z "$ac_c_werror_flag" ||
6057 test ! -s conftest.err
6058 } && test -s conftest$ac_exeext &&
6059 $as_test_x conftest$ac_exeext; then
6060 ac_cv_header_sys_types_h_makedev=yes
6061 else
6062 echo "$as_me: failed program was:" >&5
6063 sed 's/^/| /' conftest.$ac_ext >&5
6065 ac_cv_header_sys_types_h_makedev=no
6068 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6069 conftest$ac_exeext conftest.$ac_ext
6072 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
6073 echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6; }
6075 if test $ac_cv_header_sys_types_h_makedev = no; then
6076 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
6077 { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
6078 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
6079 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
6080 echo $ECHO_N "(cached) $ECHO_C" >&6
6082 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
6083 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
6084 else
6085 # Is the header compilable?
6086 { echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
6087 echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6; }
6088 cat >conftest.$ac_ext <<_ACEOF
6089 /* confdefs.h. */
6090 _ACEOF
6091 cat confdefs.h >>conftest.$ac_ext
6092 cat >>conftest.$ac_ext <<_ACEOF
6093 /* end confdefs.h. */
6094 $ac_includes_default
6095 #include <sys/mkdev.h>
6096 _ACEOF
6097 rm -f conftest.$ac_objext
6098 if { (ac_try="$ac_compile"
6099 case "(($ac_try" in
6100 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6101 *) ac_try_echo=$ac_try;;
6102 esac
6103 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6104 (eval "$ac_compile") 2>conftest.er1
6105 ac_status=$?
6106 grep -v '^ *+' conftest.er1 >conftest.err
6107 rm -f conftest.er1
6108 cat conftest.err >&5
6109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6110 (exit $ac_status); } && {
6111 test -z "$ac_c_werror_flag" ||
6112 test ! -s conftest.err
6113 } && test -s conftest.$ac_objext; then
6114 ac_header_compiler=yes
6115 else
6116 echo "$as_me: failed program was:" >&5
6117 sed 's/^/| /' conftest.$ac_ext >&5
6119 ac_header_compiler=no
6122 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6123 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6124 echo "${ECHO_T}$ac_header_compiler" >&6; }
6126 # Is the header present?
6127 { echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
6128 echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6; }
6129 cat >conftest.$ac_ext <<_ACEOF
6130 /* confdefs.h. */
6131 _ACEOF
6132 cat confdefs.h >>conftest.$ac_ext
6133 cat >>conftest.$ac_ext <<_ACEOF
6134 /* end confdefs.h. */
6135 #include <sys/mkdev.h>
6136 _ACEOF
6137 if { (ac_try="$ac_cpp conftest.$ac_ext"
6138 case "(($ac_try" in
6139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6140 *) ac_try_echo=$ac_try;;
6141 esac
6142 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6143 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6144 ac_status=$?
6145 grep -v '^ *+' conftest.er1 >conftest.err
6146 rm -f conftest.er1
6147 cat conftest.err >&5
6148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6149 (exit $ac_status); } >/dev/null && {
6150 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6151 test ! -s conftest.err
6152 }; then
6153 ac_header_preproc=yes
6154 else
6155 echo "$as_me: failed program was:" >&5
6156 sed 's/^/| /' conftest.$ac_ext >&5
6158 ac_header_preproc=no
6161 rm -f conftest.err conftest.$ac_ext
6162 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6163 echo "${ECHO_T}$ac_header_preproc" >&6; }
6165 # So? What about this header?
6166 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6167 yes:no: )
6168 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
6169 echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6170 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&5
6171 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&2;}
6172 ac_header_preproc=yes
6174 no:yes:* )
6175 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
6176 echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
6177 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&5
6178 echo "$as_me: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&2;}
6179 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: see the Autoconf documentation" >&5
6180 echo "$as_me: WARNING: sys/mkdev.h: see the Autoconf documentation" >&2;}
6181 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&5
6182 echo "$as_me: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&2;}
6183 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
6184 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
6185 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&5
6186 echo "$as_me: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&2;}
6187 ( cat <<\_ASBOX
6188 ## -------------------------------------- ##
6189 ## Report this to http://bugs.python.org/ ##
6190 ## -------------------------------------- ##
6191 _ASBOX
6192 ) | sed "s/^/$as_me: WARNING: /" >&2
6194 esac
6195 { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
6196 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
6197 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
6198 echo $ECHO_N "(cached) $ECHO_C" >&6
6199 else
6200 ac_cv_header_sys_mkdev_h=$ac_header_preproc
6202 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
6203 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
6206 if test $ac_cv_header_sys_mkdev_h = yes; then
6208 cat >>confdefs.h <<\_ACEOF
6209 #define MAJOR_IN_MKDEV 1
6210 _ACEOF
6216 if test $ac_cv_header_sys_mkdev_h = no; then
6217 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
6218 { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
6219 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
6220 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
6221 echo $ECHO_N "(cached) $ECHO_C" >&6
6223 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
6224 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
6225 else
6226 # Is the header compilable?
6227 { echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
6228 echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6; }
6229 cat >conftest.$ac_ext <<_ACEOF
6230 /* confdefs.h. */
6231 _ACEOF
6232 cat confdefs.h >>conftest.$ac_ext
6233 cat >>conftest.$ac_ext <<_ACEOF
6234 /* end confdefs.h. */
6235 $ac_includes_default
6236 #include <sys/sysmacros.h>
6237 _ACEOF
6238 rm -f conftest.$ac_objext
6239 if { (ac_try="$ac_compile"
6240 case "(($ac_try" in
6241 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6242 *) ac_try_echo=$ac_try;;
6243 esac
6244 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6245 (eval "$ac_compile") 2>conftest.er1
6246 ac_status=$?
6247 grep -v '^ *+' conftest.er1 >conftest.err
6248 rm -f conftest.er1
6249 cat conftest.err >&5
6250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6251 (exit $ac_status); } && {
6252 test -z "$ac_c_werror_flag" ||
6253 test ! -s conftest.err
6254 } && test -s conftest.$ac_objext; then
6255 ac_header_compiler=yes
6256 else
6257 echo "$as_me: failed program was:" >&5
6258 sed 's/^/| /' conftest.$ac_ext >&5
6260 ac_header_compiler=no
6263 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6264 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6265 echo "${ECHO_T}$ac_header_compiler" >&6; }
6267 # Is the header present?
6268 { echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
6269 echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6; }
6270 cat >conftest.$ac_ext <<_ACEOF
6271 /* confdefs.h. */
6272 _ACEOF
6273 cat confdefs.h >>conftest.$ac_ext
6274 cat >>conftest.$ac_ext <<_ACEOF
6275 /* end confdefs.h. */
6276 #include <sys/sysmacros.h>
6277 _ACEOF
6278 if { (ac_try="$ac_cpp conftest.$ac_ext"
6279 case "(($ac_try" in
6280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6281 *) ac_try_echo=$ac_try;;
6282 esac
6283 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6284 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6285 ac_status=$?
6286 grep -v '^ *+' conftest.er1 >conftest.err
6287 rm -f conftest.er1
6288 cat conftest.err >&5
6289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6290 (exit $ac_status); } >/dev/null && {
6291 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6292 test ! -s conftest.err
6293 }; then
6294 ac_header_preproc=yes
6295 else
6296 echo "$as_me: failed program was:" >&5
6297 sed 's/^/| /' conftest.$ac_ext >&5
6299 ac_header_preproc=no
6302 rm -f conftest.err conftest.$ac_ext
6303 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6304 echo "${ECHO_T}$ac_header_preproc" >&6; }
6306 # So? What about this header?
6307 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6308 yes:no: )
6309 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
6310 echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6311 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&5
6312 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&2;}
6313 ac_header_preproc=yes
6315 no:yes:* )
6316 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
6317 echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
6318 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&5
6319 echo "$as_me: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&2;}
6320 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&5
6321 echo "$as_me: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&2;}
6322 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&5
6323 echo "$as_me: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&2;}
6324 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
6325 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
6326 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&5
6327 echo "$as_me: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&2;}
6328 ( cat <<\_ASBOX
6329 ## -------------------------------------- ##
6330 ## Report this to http://bugs.python.org/ ##
6331 ## -------------------------------------- ##
6332 _ASBOX
6333 ) | sed "s/^/$as_me: WARNING: /" >&2
6335 esac
6336 { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
6337 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
6338 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
6339 echo $ECHO_N "(cached) $ECHO_C" >&6
6340 else
6341 ac_cv_header_sys_sysmacros_h=$ac_header_preproc
6343 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
6344 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
6347 if test $ac_cv_header_sys_sysmacros_h = yes; then
6349 cat >>confdefs.h <<\_ACEOF
6350 #define MAJOR_IN_SYSMACROS 1
6351 _ACEOF
6360 # On Solaris, term.h requires curses.h
6362 for ac_header in term.h
6364 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6365 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6366 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6367 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6368 echo $ECHO_N "(cached) $ECHO_C" >&6
6369 else
6370 cat >conftest.$ac_ext <<_ACEOF
6371 /* confdefs.h. */
6372 _ACEOF
6373 cat confdefs.h >>conftest.$ac_ext
6374 cat >>conftest.$ac_ext <<_ACEOF
6375 /* end confdefs.h. */
6377 #ifdef HAVE_CURSES_H
6378 #include <curses.h>
6379 #endif
6382 #include <$ac_header>
6383 _ACEOF
6384 rm -f conftest.$ac_objext
6385 if { (ac_try="$ac_compile"
6386 case "(($ac_try" in
6387 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6388 *) ac_try_echo=$ac_try;;
6389 esac
6390 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6391 (eval "$ac_compile") 2>conftest.er1
6392 ac_status=$?
6393 grep -v '^ *+' conftest.er1 >conftest.err
6394 rm -f conftest.er1
6395 cat conftest.err >&5
6396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6397 (exit $ac_status); } && {
6398 test -z "$ac_c_werror_flag" ||
6399 test ! -s conftest.err
6400 } && test -s conftest.$ac_objext; then
6401 eval "$as_ac_Header=yes"
6402 else
6403 echo "$as_me: failed program was:" >&5
6404 sed 's/^/| /' conftest.$ac_ext >&5
6406 eval "$as_ac_Header=no"
6409 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6411 ac_res=`eval echo '${'$as_ac_Header'}'`
6412 { echo "$as_me:$LINENO: result: $ac_res" >&5
6413 echo "${ECHO_T}$ac_res" >&6; }
6414 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6415 cat >>confdefs.h <<_ACEOF
6416 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6417 _ACEOF
6421 done
6424 # On Linux, netlink.h requires asm/types.h
6426 for ac_header in linux/netlink.h
6428 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6429 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6430 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6431 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6432 echo $ECHO_N "(cached) $ECHO_C" >&6
6433 else
6434 cat >conftest.$ac_ext <<_ACEOF
6435 /* confdefs.h. */
6436 _ACEOF
6437 cat confdefs.h >>conftest.$ac_ext
6438 cat >>conftest.$ac_ext <<_ACEOF
6439 /* end confdefs.h. */
6441 #ifdef HAVE_ASM_TYPES_H
6442 #include <asm/types.h>
6443 #endif
6444 #ifdef HAVE_SYS_SOCKET_H
6445 #include <sys/socket.h>
6446 #endif
6449 #include <$ac_header>
6450 _ACEOF
6451 rm -f conftest.$ac_objext
6452 if { (ac_try="$ac_compile"
6453 case "(($ac_try" in
6454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6455 *) ac_try_echo=$ac_try;;
6456 esac
6457 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6458 (eval "$ac_compile") 2>conftest.er1
6459 ac_status=$?
6460 grep -v '^ *+' conftest.er1 >conftest.err
6461 rm -f conftest.er1
6462 cat conftest.err >&5
6463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6464 (exit $ac_status); } && {
6465 test -z "$ac_c_werror_flag" ||
6466 test ! -s conftest.err
6467 } && test -s conftest.$ac_objext; then
6468 eval "$as_ac_Header=yes"
6469 else
6470 echo "$as_me: failed program was:" >&5
6471 sed 's/^/| /' conftest.$ac_ext >&5
6473 eval "$as_ac_Header=no"
6476 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6478 ac_res=`eval echo '${'$as_ac_Header'}'`
6479 { echo "$as_me:$LINENO: result: $ac_res" >&5
6480 echo "${ECHO_T}$ac_res" >&6; }
6481 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6482 cat >>confdefs.h <<_ACEOF
6483 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6484 _ACEOF
6488 done
6491 # checks for typedefs
6492 was_it_defined=no
6493 { echo "$as_me:$LINENO: checking for clock_t in time.h" >&5
6494 echo $ECHO_N "checking for clock_t in time.h... $ECHO_C" >&6; }
6495 cat >conftest.$ac_ext <<_ACEOF
6496 /* confdefs.h. */
6497 _ACEOF
6498 cat confdefs.h >>conftest.$ac_ext
6499 cat >>conftest.$ac_ext <<_ACEOF
6500 /* end confdefs.h. */
6501 #include <time.h>
6503 _ACEOF
6504 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6505 $EGREP "clock_t" >/dev/null 2>&1; then
6506 was_it_defined=yes
6507 else
6510 cat >>confdefs.h <<\_ACEOF
6511 #define clock_t long
6512 _ACEOF
6516 rm -f conftest*
6518 { echo "$as_me:$LINENO: result: $was_it_defined" >&5
6519 echo "${ECHO_T}$was_it_defined" >&6; }
6521 # Check whether using makedev requires defining _OSF_SOURCE
6522 { echo "$as_me:$LINENO: checking for makedev" >&5
6523 echo $ECHO_N "checking for makedev... $ECHO_C" >&6; }
6524 cat >conftest.$ac_ext <<_ACEOF
6525 /* confdefs.h. */
6526 _ACEOF
6527 cat confdefs.h >>conftest.$ac_ext
6528 cat >>conftest.$ac_ext <<_ACEOF
6529 /* end confdefs.h. */
6530 #include <sys/types.h>
6532 main ()
6534 makedev(0, 0)
6536 return 0;
6538 _ACEOF
6539 rm -f conftest.$ac_objext conftest$ac_exeext
6540 if { (ac_try="$ac_link"
6541 case "(($ac_try" in
6542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6543 *) ac_try_echo=$ac_try;;
6544 esac
6545 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6546 (eval "$ac_link") 2>conftest.er1
6547 ac_status=$?
6548 grep -v '^ *+' conftest.er1 >conftest.err
6549 rm -f conftest.er1
6550 cat conftest.err >&5
6551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6552 (exit $ac_status); } && {
6553 test -z "$ac_c_werror_flag" ||
6554 test ! -s conftest.err
6555 } && test -s conftest$ac_exeext &&
6556 $as_test_x conftest$ac_exeext; then
6557 ac_cv_has_makedev=yes
6558 else
6559 echo "$as_me: failed program was:" >&5
6560 sed 's/^/| /' conftest.$ac_ext >&5
6562 ac_cv_has_makedev=no
6565 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6566 conftest$ac_exeext conftest.$ac_ext
6567 if test "$ac_cv_has_makedev" = "no"; then
6568 # we didn't link, try if _OSF_SOURCE will allow us to link
6569 cat >conftest.$ac_ext <<_ACEOF
6570 /* confdefs.h. */
6571 _ACEOF
6572 cat confdefs.h >>conftest.$ac_ext
6573 cat >>conftest.$ac_ext <<_ACEOF
6574 /* end confdefs.h. */
6576 #define _OSF_SOURCE 1
6577 #include <sys/types.h>
6580 main ()
6582 makedev(0, 0)
6584 return 0;
6586 _ACEOF
6587 rm -f conftest.$ac_objext conftest$ac_exeext
6588 if { (ac_try="$ac_link"
6589 case "(($ac_try" in
6590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6591 *) ac_try_echo=$ac_try;;
6592 esac
6593 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6594 (eval "$ac_link") 2>conftest.er1
6595 ac_status=$?
6596 grep -v '^ *+' conftest.er1 >conftest.err
6597 rm -f conftest.er1
6598 cat conftest.err >&5
6599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6600 (exit $ac_status); } && {
6601 test -z "$ac_c_werror_flag" ||
6602 test ! -s conftest.err
6603 } && test -s conftest$ac_exeext &&
6604 $as_test_x conftest$ac_exeext; then
6605 ac_cv_has_makedev=yes
6606 else
6607 echo "$as_me: failed program was:" >&5
6608 sed 's/^/| /' conftest.$ac_ext >&5
6610 ac_cv_has_makedev=no
6613 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6614 conftest$ac_exeext conftest.$ac_ext
6615 if test "$ac_cv_has_makedev" = "yes"; then
6617 cat >>confdefs.h <<\_ACEOF
6618 #define _OSF_SOURCE 1
6619 _ACEOF
6623 { echo "$as_me:$LINENO: result: $ac_cv_has_makedev" >&5
6624 echo "${ECHO_T}$ac_cv_has_makedev" >&6; }
6625 if test "$ac_cv_has_makedev" = "yes"; then
6627 cat >>confdefs.h <<\_ACEOF
6628 #define HAVE_MAKEDEV 1
6629 _ACEOF
6633 # Enabling LFS on Solaris (2.6 to 9) with gcc 2.95 triggers a bug in
6634 # the system headers: If _XOPEN_SOURCE and _LARGEFILE_SOURCE are
6635 # defined, but the compiler does not support pragma redefine_extname,
6636 # and _LARGEFILE64_SOURCE is not defined, the headers refer to 64-bit
6637 # structures (such as rlimit64) without declaring them. As a
6638 # work-around, disable LFS on such configurations
6640 use_lfs=yes
6641 { echo "$as_me:$LINENO: checking Solaris LFS bug" >&5
6642 echo $ECHO_N "checking Solaris LFS bug... $ECHO_C" >&6; }
6643 cat >conftest.$ac_ext <<_ACEOF
6644 /* confdefs.h. */
6645 _ACEOF
6646 cat confdefs.h >>conftest.$ac_ext
6647 cat >>conftest.$ac_ext <<_ACEOF
6648 /* end confdefs.h. */
6650 #define _LARGEFILE_SOURCE 1
6651 #define _FILE_OFFSET_BITS 64
6652 #include <sys/resource.h>
6655 main ()
6657 struct rlimit foo;
6659 return 0;
6661 _ACEOF
6662 rm -f conftest.$ac_objext
6663 if { (ac_try="$ac_compile"
6664 case "(($ac_try" in
6665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6666 *) ac_try_echo=$ac_try;;
6667 esac
6668 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6669 (eval "$ac_compile") 2>conftest.er1
6670 ac_status=$?
6671 grep -v '^ *+' conftest.er1 >conftest.err
6672 rm -f conftest.er1
6673 cat conftest.err >&5
6674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6675 (exit $ac_status); } && {
6676 test -z "$ac_c_werror_flag" ||
6677 test ! -s conftest.err
6678 } && test -s conftest.$ac_objext; then
6679 sol_lfs_bug=no
6680 else
6681 echo "$as_me: failed program was:" >&5
6682 sed 's/^/| /' conftest.$ac_ext >&5
6684 sol_lfs_bug=yes
6687 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6688 { echo "$as_me:$LINENO: result: $sol_lfs_bug" >&5
6689 echo "${ECHO_T}$sol_lfs_bug" >&6; }
6690 if test "$sol_lfs_bug" = "yes"; then
6691 use_lfs=no
6694 if test "$use_lfs" = "yes"; then
6695 # Two defines needed to enable largefile support on various platforms
6696 # These may affect some typedefs
6698 cat >>confdefs.h <<\_ACEOF
6699 #define _LARGEFILE_SOURCE 1
6700 _ACEOF
6703 cat >>confdefs.h <<\_ACEOF
6704 #define _FILE_OFFSET_BITS 64
6705 _ACEOF
6709 # Add some code to confdefs.h so that the test for off_t works on SCO
6710 cat >> confdefs.h <<\EOF
6711 #if defined(SCO_DS)
6712 #undef _OFF_T
6713 #endif
6716 # Type availability checks
6717 { echo "$as_me:$LINENO: checking for mode_t" >&5
6718 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; }
6719 if test "${ac_cv_type_mode_t+set}" = set; then
6720 echo $ECHO_N "(cached) $ECHO_C" >&6
6721 else
6722 cat >conftest.$ac_ext <<_ACEOF
6723 /* confdefs.h. */
6724 _ACEOF
6725 cat confdefs.h >>conftest.$ac_ext
6726 cat >>conftest.$ac_ext <<_ACEOF
6727 /* end confdefs.h. */
6728 $ac_includes_default
6729 typedef mode_t ac__type_new_;
6731 main ()
6733 if ((ac__type_new_ *) 0)
6734 return 0;
6735 if (sizeof (ac__type_new_))
6736 return 0;
6738 return 0;
6740 _ACEOF
6741 rm -f conftest.$ac_objext
6742 if { (ac_try="$ac_compile"
6743 case "(($ac_try" in
6744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6745 *) ac_try_echo=$ac_try;;
6746 esac
6747 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6748 (eval "$ac_compile") 2>conftest.er1
6749 ac_status=$?
6750 grep -v '^ *+' conftest.er1 >conftest.err
6751 rm -f conftest.er1
6752 cat conftest.err >&5
6753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6754 (exit $ac_status); } && {
6755 test -z "$ac_c_werror_flag" ||
6756 test ! -s conftest.err
6757 } && test -s conftest.$ac_objext; then
6758 ac_cv_type_mode_t=yes
6759 else
6760 echo "$as_me: failed program was:" >&5
6761 sed 's/^/| /' conftest.$ac_ext >&5
6763 ac_cv_type_mode_t=no
6766 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6768 { echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
6769 echo "${ECHO_T}$ac_cv_type_mode_t" >&6; }
6770 if test $ac_cv_type_mode_t = yes; then
6772 else
6774 cat >>confdefs.h <<_ACEOF
6775 #define mode_t int
6776 _ACEOF
6780 { echo "$as_me:$LINENO: checking for off_t" >&5
6781 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
6782 if test "${ac_cv_type_off_t+set}" = set; then
6783 echo $ECHO_N "(cached) $ECHO_C" >&6
6784 else
6785 cat >conftest.$ac_ext <<_ACEOF
6786 /* confdefs.h. */
6787 _ACEOF
6788 cat confdefs.h >>conftest.$ac_ext
6789 cat >>conftest.$ac_ext <<_ACEOF
6790 /* end confdefs.h. */
6791 $ac_includes_default
6792 typedef off_t ac__type_new_;
6794 main ()
6796 if ((ac__type_new_ *) 0)
6797 return 0;
6798 if (sizeof (ac__type_new_))
6799 return 0;
6801 return 0;
6803 _ACEOF
6804 rm -f conftest.$ac_objext
6805 if { (ac_try="$ac_compile"
6806 case "(($ac_try" in
6807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6808 *) ac_try_echo=$ac_try;;
6809 esac
6810 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6811 (eval "$ac_compile") 2>conftest.er1
6812 ac_status=$?
6813 grep -v '^ *+' conftest.er1 >conftest.err
6814 rm -f conftest.er1
6815 cat conftest.err >&5
6816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6817 (exit $ac_status); } && {
6818 test -z "$ac_c_werror_flag" ||
6819 test ! -s conftest.err
6820 } && test -s conftest.$ac_objext; then
6821 ac_cv_type_off_t=yes
6822 else
6823 echo "$as_me: failed program was:" >&5
6824 sed 's/^/| /' conftest.$ac_ext >&5
6826 ac_cv_type_off_t=no
6829 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6831 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
6832 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
6833 if test $ac_cv_type_off_t = yes; then
6835 else
6837 cat >>confdefs.h <<_ACEOF
6838 #define off_t long int
6839 _ACEOF
6843 { echo "$as_me:$LINENO: checking for pid_t" >&5
6844 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
6845 if test "${ac_cv_type_pid_t+set}" = set; then
6846 echo $ECHO_N "(cached) $ECHO_C" >&6
6847 else
6848 cat >conftest.$ac_ext <<_ACEOF
6849 /* confdefs.h. */
6850 _ACEOF
6851 cat confdefs.h >>conftest.$ac_ext
6852 cat >>conftest.$ac_ext <<_ACEOF
6853 /* end confdefs.h. */
6854 $ac_includes_default
6855 typedef pid_t ac__type_new_;
6857 main ()
6859 if ((ac__type_new_ *) 0)
6860 return 0;
6861 if (sizeof (ac__type_new_))
6862 return 0;
6864 return 0;
6866 _ACEOF
6867 rm -f conftest.$ac_objext
6868 if { (ac_try="$ac_compile"
6869 case "(($ac_try" in
6870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6871 *) ac_try_echo=$ac_try;;
6872 esac
6873 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6874 (eval "$ac_compile") 2>conftest.er1
6875 ac_status=$?
6876 grep -v '^ *+' conftest.er1 >conftest.err
6877 rm -f conftest.er1
6878 cat conftest.err >&5
6879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6880 (exit $ac_status); } && {
6881 test -z "$ac_c_werror_flag" ||
6882 test ! -s conftest.err
6883 } && test -s conftest.$ac_objext; then
6884 ac_cv_type_pid_t=yes
6885 else
6886 echo "$as_me: failed program was:" >&5
6887 sed 's/^/| /' conftest.$ac_ext >&5
6889 ac_cv_type_pid_t=no
6892 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6894 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
6895 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
6896 if test $ac_cv_type_pid_t = yes; then
6898 else
6900 cat >>confdefs.h <<_ACEOF
6901 #define pid_t int
6902 _ACEOF
6906 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
6907 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
6908 if test "${ac_cv_type_signal+set}" = set; then
6909 echo $ECHO_N "(cached) $ECHO_C" >&6
6910 else
6911 cat >conftest.$ac_ext <<_ACEOF
6912 /* confdefs.h. */
6913 _ACEOF
6914 cat confdefs.h >>conftest.$ac_ext
6915 cat >>conftest.$ac_ext <<_ACEOF
6916 /* end confdefs.h. */
6917 #include <sys/types.h>
6918 #include <signal.h>
6921 main ()
6923 return *(signal (0, 0)) (0) == 1;
6925 return 0;
6927 _ACEOF
6928 rm -f conftest.$ac_objext
6929 if { (ac_try="$ac_compile"
6930 case "(($ac_try" in
6931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6932 *) ac_try_echo=$ac_try;;
6933 esac
6934 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6935 (eval "$ac_compile") 2>conftest.er1
6936 ac_status=$?
6937 grep -v '^ *+' conftest.er1 >conftest.err
6938 rm -f conftest.er1
6939 cat conftest.err >&5
6940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6941 (exit $ac_status); } && {
6942 test -z "$ac_c_werror_flag" ||
6943 test ! -s conftest.err
6944 } && test -s conftest.$ac_objext; then
6945 ac_cv_type_signal=int
6946 else
6947 echo "$as_me: failed program was:" >&5
6948 sed 's/^/| /' conftest.$ac_ext >&5
6950 ac_cv_type_signal=void
6953 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6955 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
6956 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
6958 cat >>confdefs.h <<_ACEOF
6959 #define RETSIGTYPE $ac_cv_type_signal
6960 _ACEOF
6963 { echo "$as_me:$LINENO: checking for size_t" >&5
6964 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
6965 if test "${ac_cv_type_size_t+set}" = set; then
6966 echo $ECHO_N "(cached) $ECHO_C" >&6
6967 else
6968 cat >conftest.$ac_ext <<_ACEOF
6969 /* confdefs.h. */
6970 _ACEOF
6971 cat confdefs.h >>conftest.$ac_ext
6972 cat >>conftest.$ac_ext <<_ACEOF
6973 /* end confdefs.h. */
6974 $ac_includes_default
6975 typedef size_t ac__type_new_;
6977 main ()
6979 if ((ac__type_new_ *) 0)
6980 return 0;
6981 if (sizeof (ac__type_new_))
6982 return 0;
6984 return 0;
6986 _ACEOF
6987 rm -f conftest.$ac_objext
6988 if { (ac_try="$ac_compile"
6989 case "(($ac_try" in
6990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6991 *) ac_try_echo=$ac_try;;
6992 esac
6993 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6994 (eval "$ac_compile") 2>conftest.er1
6995 ac_status=$?
6996 grep -v '^ *+' conftest.er1 >conftest.err
6997 rm -f conftest.er1
6998 cat conftest.err >&5
6999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7000 (exit $ac_status); } && {
7001 test -z "$ac_c_werror_flag" ||
7002 test ! -s conftest.err
7003 } && test -s conftest.$ac_objext; then
7004 ac_cv_type_size_t=yes
7005 else
7006 echo "$as_me: failed program was:" >&5
7007 sed 's/^/| /' conftest.$ac_ext >&5
7009 ac_cv_type_size_t=no
7012 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7014 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
7015 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
7016 if test $ac_cv_type_size_t = yes; then
7018 else
7020 cat >>confdefs.h <<_ACEOF
7021 #define size_t unsigned int
7022 _ACEOF
7026 { echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
7027 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
7028 if test "${ac_cv_type_uid_t+set}" = set; then
7029 echo $ECHO_N "(cached) $ECHO_C" >&6
7030 else
7031 cat >conftest.$ac_ext <<_ACEOF
7032 /* confdefs.h. */
7033 _ACEOF
7034 cat confdefs.h >>conftest.$ac_ext
7035 cat >>conftest.$ac_ext <<_ACEOF
7036 /* end confdefs.h. */
7037 #include <sys/types.h>
7039 _ACEOF
7040 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7041 $EGREP "uid_t" >/dev/null 2>&1; then
7042 ac_cv_type_uid_t=yes
7043 else
7044 ac_cv_type_uid_t=no
7046 rm -f conftest*
7049 { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
7050 echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
7051 if test $ac_cv_type_uid_t = no; then
7053 cat >>confdefs.h <<\_ACEOF
7054 #define uid_t int
7055 _ACEOF
7058 cat >>confdefs.h <<\_ACEOF
7059 #define gid_t int
7060 _ACEOF
7065 { echo "$as_me:$LINENO: checking for uint32_t" >&5
7066 echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6; }
7067 if test "${ac_cv_c_uint32_t+set}" = set; then
7068 echo $ECHO_N "(cached) $ECHO_C" >&6
7069 else
7070 ac_cv_c_uint32_t=no
7071 for ac_type in 'uint32_t' 'unsigned int' 'unsigned long int' \
7072 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
7073 cat >conftest.$ac_ext <<_ACEOF
7074 /* confdefs.h. */
7075 _ACEOF
7076 cat confdefs.h >>conftest.$ac_ext
7077 cat >>conftest.$ac_ext <<_ACEOF
7078 /* end confdefs.h. */
7079 $ac_includes_default
7081 main ()
7083 static int test_array [1 - 2 * !(($ac_type) -1 >> (32 - 1) == 1)];
7084 test_array [0] = 0
7087 return 0;
7089 _ACEOF
7090 rm -f conftest.$ac_objext
7091 if { (ac_try="$ac_compile"
7092 case "(($ac_try" in
7093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7094 *) ac_try_echo=$ac_try;;
7095 esac
7096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7097 (eval "$ac_compile") 2>conftest.er1
7098 ac_status=$?
7099 grep -v '^ *+' conftest.er1 >conftest.err
7100 rm -f conftest.er1
7101 cat conftest.err >&5
7102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7103 (exit $ac_status); } && {
7104 test -z "$ac_c_werror_flag" ||
7105 test ! -s conftest.err
7106 } && test -s conftest.$ac_objext; then
7107 case $ac_type in
7108 uint32_t) ac_cv_c_uint32_t=yes ;;
7109 *) ac_cv_c_uint32_t=$ac_type ;;
7110 esac
7112 else
7113 echo "$as_me: failed program was:" >&5
7114 sed 's/^/| /' conftest.$ac_ext >&5
7119 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7120 test "$ac_cv_c_uint32_t" != no && break
7121 done
7123 { echo "$as_me:$LINENO: result: $ac_cv_c_uint32_t" >&5
7124 echo "${ECHO_T}$ac_cv_c_uint32_t" >&6; }
7125 case $ac_cv_c_uint32_t in #(
7126 no|yes) ;; #(
7129 cat >>confdefs.h <<\_ACEOF
7130 #define _UINT32_T 1
7131 _ACEOF
7134 cat >>confdefs.h <<_ACEOF
7135 #define uint32_t $ac_cv_c_uint32_t
7136 _ACEOF
7138 esac
7141 { echo "$as_me:$LINENO: checking for uint64_t" >&5
7142 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
7143 if test "${ac_cv_c_uint64_t+set}" = set; then
7144 echo $ECHO_N "(cached) $ECHO_C" >&6
7145 else
7146 ac_cv_c_uint64_t=no
7147 for ac_type in 'uint64_t' 'unsigned int' 'unsigned long int' \
7148 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
7149 cat >conftest.$ac_ext <<_ACEOF
7150 /* confdefs.h. */
7151 _ACEOF
7152 cat confdefs.h >>conftest.$ac_ext
7153 cat >>conftest.$ac_ext <<_ACEOF
7154 /* end confdefs.h. */
7155 $ac_includes_default
7157 main ()
7159 static int test_array [1 - 2 * !(($ac_type) -1 >> (64 - 1) == 1)];
7160 test_array [0] = 0
7163 return 0;
7165 _ACEOF
7166 rm -f conftest.$ac_objext
7167 if { (ac_try="$ac_compile"
7168 case "(($ac_try" in
7169 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7170 *) ac_try_echo=$ac_try;;
7171 esac
7172 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7173 (eval "$ac_compile") 2>conftest.er1
7174 ac_status=$?
7175 grep -v '^ *+' conftest.er1 >conftest.err
7176 rm -f conftest.er1
7177 cat conftest.err >&5
7178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7179 (exit $ac_status); } && {
7180 test -z "$ac_c_werror_flag" ||
7181 test ! -s conftest.err
7182 } && test -s conftest.$ac_objext; then
7183 case $ac_type in
7184 uint64_t) ac_cv_c_uint64_t=yes ;;
7185 *) ac_cv_c_uint64_t=$ac_type ;;
7186 esac
7188 else
7189 echo "$as_me: failed program was:" >&5
7190 sed 's/^/| /' conftest.$ac_ext >&5
7195 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7196 test "$ac_cv_c_uint64_t" != no && break
7197 done
7199 { echo "$as_me:$LINENO: result: $ac_cv_c_uint64_t" >&5
7200 echo "${ECHO_T}$ac_cv_c_uint64_t" >&6; }
7201 case $ac_cv_c_uint64_t in #(
7202 no|yes) ;; #(
7205 cat >>confdefs.h <<\_ACEOF
7206 #define _UINT64_T 1
7207 _ACEOF
7210 cat >>confdefs.h <<_ACEOF
7211 #define uint64_t $ac_cv_c_uint64_t
7212 _ACEOF
7214 esac
7217 { echo "$as_me:$LINENO: checking for int32_t" >&5
7218 echo $ECHO_N "checking for int32_t... $ECHO_C" >&6; }
7219 if test "${ac_cv_c_int32_t+set}" = set; then
7220 echo $ECHO_N "(cached) $ECHO_C" >&6
7221 else
7222 ac_cv_c_int32_t=no
7223 for ac_type in 'int32_t' 'int' 'long int' \
7224 'long long int' 'short int' 'signed char'; do
7225 cat >conftest.$ac_ext <<_ACEOF
7226 /* confdefs.h. */
7227 _ACEOF
7228 cat confdefs.h >>conftest.$ac_ext
7229 cat >>conftest.$ac_ext <<_ACEOF
7230 /* end confdefs.h. */
7231 $ac_includes_default
7233 main ()
7235 static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << (32 - 2)) - 1) * 2 + 1))];
7236 test_array [0] = 0
7239 return 0;
7241 _ACEOF
7242 rm -f conftest.$ac_objext
7243 if { (ac_try="$ac_compile"
7244 case "(($ac_try" in
7245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7246 *) ac_try_echo=$ac_try;;
7247 esac
7248 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7249 (eval "$ac_compile") 2>conftest.er1
7250 ac_status=$?
7251 grep -v '^ *+' conftest.er1 >conftest.err
7252 rm -f conftest.er1
7253 cat conftest.err >&5
7254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7255 (exit $ac_status); } && {
7256 test -z "$ac_c_werror_flag" ||
7257 test ! -s conftest.err
7258 } && test -s conftest.$ac_objext; then
7259 cat >conftest.$ac_ext <<_ACEOF
7260 /* confdefs.h. */
7261 _ACEOF
7262 cat confdefs.h >>conftest.$ac_ext
7263 cat >>conftest.$ac_ext <<_ACEOF
7264 /* end confdefs.h. */
7265 $ac_includes_default
7267 main ()
7269 static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << (32 - 2)) - 1) * 2 + 1)
7270 < ($ac_type) (((($ac_type) 1 << (32 - 2)) - 1) * 2 + 2))];
7271 test_array [0] = 0
7274 return 0;
7276 _ACEOF
7277 rm -f conftest.$ac_objext
7278 if { (ac_try="$ac_compile"
7279 case "(($ac_try" in
7280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7281 *) ac_try_echo=$ac_try;;
7282 esac
7283 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7284 (eval "$ac_compile") 2>conftest.er1
7285 ac_status=$?
7286 grep -v '^ *+' conftest.er1 >conftest.err
7287 rm -f conftest.er1
7288 cat conftest.err >&5
7289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7290 (exit $ac_status); } && {
7291 test -z "$ac_c_werror_flag" ||
7292 test ! -s conftest.err
7293 } && test -s conftest.$ac_objext; then
7295 else
7296 echo "$as_me: failed program was:" >&5
7297 sed 's/^/| /' conftest.$ac_ext >&5
7299 case $ac_type in
7300 int32_t) ac_cv_c_int32_t=yes ;;
7301 *) ac_cv_c_int32_t=$ac_type ;;
7302 esac
7306 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7307 else
7308 echo "$as_me: failed program was:" >&5
7309 sed 's/^/| /' conftest.$ac_ext >&5
7314 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7315 test "$ac_cv_c_int32_t" != no && break
7316 done
7318 { echo "$as_me:$LINENO: result: $ac_cv_c_int32_t" >&5
7319 echo "${ECHO_T}$ac_cv_c_int32_t" >&6; }
7320 case $ac_cv_c_int32_t in #(
7321 no|yes) ;; #(
7324 cat >>confdefs.h <<_ACEOF
7325 #define int32_t $ac_cv_c_int32_t
7326 _ACEOF
7328 esac
7331 { echo "$as_me:$LINENO: checking for int64_t" >&5
7332 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
7333 if test "${ac_cv_c_int64_t+set}" = set; then
7334 echo $ECHO_N "(cached) $ECHO_C" >&6
7335 else
7336 ac_cv_c_int64_t=no
7337 for ac_type in 'int64_t' 'int' 'long int' \
7338 'long long int' 'short int' 'signed char'; do
7339 cat >conftest.$ac_ext <<_ACEOF
7340 /* confdefs.h. */
7341 _ACEOF
7342 cat confdefs.h >>conftest.$ac_ext
7343 cat >>conftest.$ac_ext <<_ACEOF
7344 /* end confdefs.h. */
7345 $ac_includes_default
7347 main ()
7349 static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << (64 - 2)) - 1) * 2 + 1))];
7350 test_array [0] = 0
7353 return 0;
7355 _ACEOF
7356 rm -f conftest.$ac_objext
7357 if { (ac_try="$ac_compile"
7358 case "(($ac_try" in
7359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7360 *) ac_try_echo=$ac_try;;
7361 esac
7362 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7363 (eval "$ac_compile") 2>conftest.er1
7364 ac_status=$?
7365 grep -v '^ *+' conftest.er1 >conftest.err
7366 rm -f conftest.er1
7367 cat conftest.err >&5
7368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7369 (exit $ac_status); } && {
7370 test -z "$ac_c_werror_flag" ||
7371 test ! -s conftest.err
7372 } && test -s conftest.$ac_objext; then
7373 cat >conftest.$ac_ext <<_ACEOF
7374 /* confdefs.h. */
7375 _ACEOF
7376 cat confdefs.h >>conftest.$ac_ext
7377 cat >>conftest.$ac_ext <<_ACEOF
7378 /* end confdefs.h. */
7379 $ac_includes_default
7381 main ()
7383 static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << (64 - 2)) - 1) * 2 + 1)
7384 < ($ac_type) (((($ac_type) 1 << (64 - 2)) - 1) * 2 + 2))];
7385 test_array [0] = 0
7388 return 0;
7390 _ACEOF
7391 rm -f conftest.$ac_objext
7392 if { (ac_try="$ac_compile"
7393 case "(($ac_try" in
7394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7395 *) ac_try_echo=$ac_try;;
7396 esac
7397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7398 (eval "$ac_compile") 2>conftest.er1
7399 ac_status=$?
7400 grep -v '^ *+' conftest.er1 >conftest.err
7401 rm -f conftest.er1
7402 cat conftest.err >&5
7403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7404 (exit $ac_status); } && {
7405 test -z "$ac_c_werror_flag" ||
7406 test ! -s conftest.err
7407 } && test -s conftest.$ac_objext; then
7409 else
7410 echo "$as_me: failed program was:" >&5
7411 sed 's/^/| /' conftest.$ac_ext >&5
7413 case $ac_type in
7414 int64_t) ac_cv_c_int64_t=yes ;;
7415 *) ac_cv_c_int64_t=$ac_type ;;
7416 esac
7420 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7421 else
7422 echo "$as_me: failed program was:" >&5
7423 sed 's/^/| /' conftest.$ac_ext >&5
7428 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7429 test "$ac_cv_c_int64_t" != no && break
7430 done
7432 { echo "$as_me:$LINENO: result: $ac_cv_c_int64_t" >&5
7433 echo "${ECHO_T}$ac_cv_c_int64_t" >&6; }
7434 case $ac_cv_c_int64_t in #(
7435 no|yes) ;; #(
7438 cat >>confdefs.h <<_ACEOF
7439 #define int64_t $ac_cv_c_int64_t
7440 _ACEOF
7442 esac
7444 { echo "$as_me:$LINENO: checking for ssize_t" >&5
7445 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
7446 if test "${ac_cv_type_ssize_t+set}" = set; then
7447 echo $ECHO_N "(cached) $ECHO_C" >&6
7448 else
7449 cat >conftest.$ac_ext <<_ACEOF
7450 /* confdefs.h. */
7451 _ACEOF
7452 cat confdefs.h >>conftest.$ac_ext
7453 cat >>conftest.$ac_ext <<_ACEOF
7454 /* end confdefs.h. */
7455 $ac_includes_default
7456 typedef ssize_t ac__type_new_;
7458 main ()
7460 if ((ac__type_new_ *) 0)
7461 return 0;
7462 if (sizeof (ac__type_new_))
7463 return 0;
7465 return 0;
7467 _ACEOF
7468 rm -f conftest.$ac_objext
7469 if { (ac_try="$ac_compile"
7470 case "(($ac_try" in
7471 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7472 *) ac_try_echo=$ac_try;;
7473 esac
7474 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7475 (eval "$ac_compile") 2>conftest.er1
7476 ac_status=$?
7477 grep -v '^ *+' conftest.er1 >conftest.err
7478 rm -f conftest.er1
7479 cat conftest.err >&5
7480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7481 (exit $ac_status); } && {
7482 test -z "$ac_c_werror_flag" ||
7483 test ! -s conftest.err
7484 } && test -s conftest.$ac_objext; then
7485 ac_cv_type_ssize_t=yes
7486 else
7487 echo "$as_me: failed program was:" >&5
7488 sed 's/^/| /' conftest.$ac_ext >&5
7490 ac_cv_type_ssize_t=no
7493 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7495 { echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
7496 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6; }
7497 if test $ac_cv_type_ssize_t = yes; then
7499 cat >>confdefs.h <<\_ACEOF
7500 #define HAVE_SSIZE_T 1
7501 _ACEOF
7506 # Sizes of various common basic types
7507 # ANSI C requires sizeof(char) == 1, so no need to check it
7508 { echo "$as_me:$LINENO: checking for int" >&5
7509 echo $ECHO_N "checking for int... $ECHO_C" >&6; }
7510 if test "${ac_cv_type_int+set}" = set; then
7511 echo $ECHO_N "(cached) $ECHO_C" >&6
7512 else
7513 cat >conftest.$ac_ext <<_ACEOF
7514 /* confdefs.h. */
7515 _ACEOF
7516 cat confdefs.h >>conftest.$ac_ext
7517 cat >>conftest.$ac_ext <<_ACEOF
7518 /* end confdefs.h. */
7519 $ac_includes_default
7520 typedef int ac__type_new_;
7522 main ()
7524 if ((ac__type_new_ *) 0)
7525 return 0;
7526 if (sizeof (ac__type_new_))
7527 return 0;
7529 return 0;
7531 _ACEOF
7532 rm -f conftest.$ac_objext
7533 if { (ac_try="$ac_compile"
7534 case "(($ac_try" in
7535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7536 *) ac_try_echo=$ac_try;;
7537 esac
7538 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7539 (eval "$ac_compile") 2>conftest.er1
7540 ac_status=$?
7541 grep -v '^ *+' conftest.er1 >conftest.err
7542 rm -f conftest.er1
7543 cat conftest.err >&5
7544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7545 (exit $ac_status); } && {
7546 test -z "$ac_c_werror_flag" ||
7547 test ! -s conftest.err
7548 } && test -s conftest.$ac_objext; then
7549 ac_cv_type_int=yes
7550 else
7551 echo "$as_me: failed program was:" >&5
7552 sed 's/^/| /' conftest.$ac_ext >&5
7554 ac_cv_type_int=no
7557 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7559 { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
7560 echo "${ECHO_T}$ac_cv_type_int" >&6; }
7562 # The cast to long int works around a bug in the HP C Compiler
7563 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7564 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7565 # This bug is HP SR number 8606223364.
7566 { echo "$as_me:$LINENO: checking size of int" >&5
7567 echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
7568 if test "${ac_cv_sizeof_int+set}" = set; then
7569 echo $ECHO_N "(cached) $ECHO_C" >&6
7570 else
7571 if test "$cross_compiling" = yes; then
7572 # Depending upon the size, compute the lo and hi bounds.
7573 cat >conftest.$ac_ext <<_ACEOF
7574 /* confdefs.h. */
7575 _ACEOF
7576 cat confdefs.h >>conftest.$ac_ext
7577 cat >>conftest.$ac_ext <<_ACEOF
7578 /* end confdefs.h. */
7579 $ac_includes_default
7580 typedef int ac__type_sizeof_;
7582 main ()
7584 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
7585 test_array [0] = 0
7588 return 0;
7590 _ACEOF
7591 rm -f conftest.$ac_objext
7592 if { (ac_try="$ac_compile"
7593 case "(($ac_try" in
7594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7595 *) ac_try_echo=$ac_try;;
7596 esac
7597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7598 (eval "$ac_compile") 2>conftest.er1
7599 ac_status=$?
7600 grep -v '^ *+' conftest.er1 >conftest.err
7601 rm -f conftest.er1
7602 cat conftest.err >&5
7603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7604 (exit $ac_status); } && {
7605 test -z "$ac_c_werror_flag" ||
7606 test ! -s conftest.err
7607 } && test -s conftest.$ac_objext; then
7608 ac_lo=0 ac_mid=0
7609 while :; do
7610 cat >conftest.$ac_ext <<_ACEOF
7611 /* confdefs.h. */
7612 _ACEOF
7613 cat confdefs.h >>conftest.$ac_ext
7614 cat >>conftest.$ac_ext <<_ACEOF
7615 /* end confdefs.h. */
7616 $ac_includes_default
7617 typedef int ac__type_sizeof_;
7619 main ()
7621 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
7622 test_array [0] = 0
7625 return 0;
7627 _ACEOF
7628 rm -f conftest.$ac_objext
7629 if { (ac_try="$ac_compile"
7630 case "(($ac_try" in
7631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7632 *) ac_try_echo=$ac_try;;
7633 esac
7634 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7635 (eval "$ac_compile") 2>conftest.er1
7636 ac_status=$?
7637 grep -v '^ *+' conftest.er1 >conftest.err
7638 rm -f conftest.er1
7639 cat conftest.err >&5
7640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7641 (exit $ac_status); } && {
7642 test -z "$ac_c_werror_flag" ||
7643 test ! -s conftest.err
7644 } && test -s conftest.$ac_objext; then
7645 ac_hi=$ac_mid; break
7646 else
7647 echo "$as_me: failed program was:" >&5
7648 sed 's/^/| /' conftest.$ac_ext >&5
7650 ac_lo=`expr $ac_mid + 1`
7651 if test $ac_lo -le $ac_mid; then
7652 ac_lo= ac_hi=
7653 break
7655 ac_mid=`expr 2 '*' $ac_mid + 1`
7658 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7659 done
7660 else
7661 echo "$as_me: failed program was:" >&5
7662 sed 's/^/| /' conftest.$ac_ext >&5
7664 cat >conftest.$ac_ext <<_ACEOF
7665 /* confdefs.h. */
7666 _ACEOF
7667 cat confdefs.h >>conftest.$ac_ext
7668 cat >>conftest.$ac_ext <<_ACEOF
7669 /* end confdefs.h. */
7670 $ac_includes_default
7671 typedef int ac__type_sizeof_;
7673 main ()
7675 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
7676 test_array [0] = 0
7679 return 0;
7681 _ACEOF
7682 rm -f conftest.$ac_objext
7683 if { (ac_try="$ac_compile"
7684 case "(($ac_try" in
7685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7686 *) ac_try_echo=$ac_try;;
7687 esac
7688 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7689 (eval "$ac_compile") 2>conftest.er1
7690 ac_status=$?
7691 grep -v '^ *+' conftest.er1 >conftest.err
7692 rm -f conftest.er1
7693 cat conftest.err >&5
7694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7695 (exit $ac_status); } && {
7696 test -z "$ac_c_werror_flag" ||
7697 test ! -s conftest.err
7698 } && test -s conftest.$ac_objext; then
7699 ac_hi=-1 ac_mid=-1
7700 while :; do
7701 cat >conftest.$ac_ext <<_ACEOF
7702 /* confdefs.h. */
7703 _ACEOF
7704 cat confdefs.h >>conftest.$ac_ext
7705 cat >>conftest.$ac_ext <<_ACEOF
7706 /* end confdefs.h. */
7707 $ac_includes_default
7708 typedef int ac__type_sizeof_;
7710 main ()
7712 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
7713 test_array [0] = 0
7716 return 0;
7718 _ACEOF
7719 rm -f conftest.$ac_objext
7720 if { (ac_try="$ac_compile"
7721 case "(($ac_try" in
7722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7723 *) ac_try_echo=$ac_try;;
7724 esac
7725 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7726 (eval "$ac_compile") 2>conftest.er1
7727 ac_status=$?
7728 grep -v '^ *+' conftest.er1 >conftest.err
7729 rm -f conftest.er1
7730 cat conftest.err >&5
7731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7732 (exit $ac_status); } && {
7733 test -z "$ac_c_werror_flag" ||
7734 test ! -s conftest.err
7735 } && test -s conftest.$ac_objext; then
7736 ac_lo=$ac_mid; break
7737 else
7738 echo "$as_me: failed program was:" >&5
7739 sed 's/^/| /' conftest.$ac_ext >&5
7741 ac_hi=`expr '(' $ac_mid ')' - 1`
7742 if test $ac_mid -le $ac_hi; then
7743 ac_lo= ac_hi=
7744 break
7746 ac_mid=`expr 2 '*' $ac_mid`
7749 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7750 done
7751 else
7752 echo "$as_me: failed program was:" >&5
7753 sed 's/^/| /' conftest.$ac_ext >&5
7755 ac_lo= ac_hi=
7758 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7761 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7762 # Binary search between lo and hi bounds.
7763 while test "x$ac_lo" != "x$ac_hi"; do
7764 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7765 cat >conftest.$ac_ext <<_ACEOF
7766 /* confdefs.h. */
7767 _ACEOF
7768 cat confdefs.h >>conftest.$ac_ext
7769 cat >>conftest.$ac_ext <<_ACEOF
7770 /* end confdefs.h. */
7771 $ac_includes_default
7772 typedef int ac__type_sizeof_;
7774 main ()
7776 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
7777 test_array [0] = 0
7780 return 0;
7782 _ACEOF
7783 rm -f conftest.$ac_objext
7784 if { (ac_try="$ac_compile"
7785 case "(($ac_try" in
7786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7787 *) ac_try_echo=$ac_try;;
7788 esac
7789 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7790 (eval "$ac_compile") 2>conftest.er1
7791 ac_status=$?
7792 grep -v '^ *+' conftest.er1 >conftest.err
7793 rm -f conftest.er1
7794 cat conftest.err >&5
7795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7796 (exit $ac_status); } && {
7797 test -z "$ac_c_werror_flag" ||
7798 test ! -s conftest.err
7799 } && test -s conftest.$ac_objext; then
7800 ac_hi=$ac_mid
7801 else
7802 echo "$as_me: failed program was:" >&5
7803 sed 's/^/| /' conftest.$ac_ext >&5
7805 ac_lo=`expr '(' $ac_mid ')' + 1`
7808 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7809 done
7810 case $ac_lo in
7811 ?*) ac_cv_sizeof_int=$ac_lo;;
7812 '') if test "$ac_cv_type_int" = yes; then
7813 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
7814 See \`config.log' for more details." >&5
7815 echo "$as_me: error: cannot compute sizeof (int)
7816 See \`config.log' for more details." >&2;}
7817 { (exit 77); exit 77; }; }
7818 else
7819 ac_cv_sizeof_int=0
7820 fi ;;
7821 esac
7822 else
7823 cat >conftest.$ac_ext <<_ACEOF
7824 /* confdefs.h. */
7825 _ACEOF
7826 cat confdefs.h >>conftest.$ac_ext
7827 cat >>conftest.$ac_ext <<_ACEOF
7828 /* end confdefs.h. */
7829 $ac_includes_default
7830 typedef int ac__type_sizeof_;
7831 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
7832 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
7833 #include <stdio.h>
7834 #include <stdlib.h>
7836 main ()
7839 FILE *f = fopen ("conftest.val", "w");
7840 if (! f)
7841 return 1;
7842 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
7844 long int i = longval ();
7845 if (i != ((long int) (sizeof (ac__type_sizeof_))))
7846 return 1;
7847 fprintf (f, "%ld\n", i);
7849 else
7851 unsigned long int i = ulongval ();
7852 if (i != ((long int) (sizeof (ac__type_sizeof_))))
7853 return 1;
7854 fprintf (f, "%lu\n", i);
7856 return ferror (f) || fclose (f) != 0;
7859 return 0;
7861 _ACEOF
7862 rm -f conftest$ac_exeext
7863 if { (ac_try="$ac_link"
7864 case "(($ac_try" in
7865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7866 *) ac_try_echo=$ac_try;;
7867 esac
7868 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7869 (eval "$ac_link") 2>&5
7870 ac_status=$?
7871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7872 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7873 { (case "(($ac_try" in
7874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7875 *) ac_try_echo=$ac_try;;
7876 esac
7877 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7878 (eval "$ac_try") 2>&5
7879 ac_status=$?
7880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7881 (exit $ac_status); }; }; then
7882 ac_cv_sizeof_int=`cat conftest.val`
7883 else
7884 echo "$as_me: program exited with status $ac_status" >&5
7885 echo "$as_me: failed program was:" >&5
7886 sed 's/^/| /' conftest.$ac_ext >&5
7888 ( exit $ac_status )
7889 if test "$ac_cv_type_int" = yes; then
7890 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
7891 See \`config.log' for more details." >&5
7892 echo "$as_me: error: cannot compute sizeof (int)
7893 See \`config.log' for more details." >&2;}
7894 { (exit 77); exit 77; }; }
7895 else
7896 ac_cv_sizeof_int=0
7899 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7901 rm -f conftest.val
7903 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
7904 echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
7908 cat >>confdefs.h <<_ACEOF
7909 #define SIZEOF_INT $ac_cv_sizeof_int
7910 _ACEOF
7913 { echo "$as_me:$LINENO: checking for long" >&5
7914 echo $ECHO_N "checking for long... $ECHO_C" >&6; }
7915 if test "${ac_cv_type_long+set}" = set; then
7916 echo $ECHO_N "(cached) $ECHO_C" >&6
7917 else
7918 cat >conftest.$ac_ext <<_ACEOF
7919 /* confdefs.h. */
7920 _ACEOF
7921 cat confdefs.h >>conftest.$ac_ext
7922 cat >>conftest.$ac_ext <<_ACEOF
7923 /* end confdefs.h. */
7924 $ac_includes_default
7925 typedef long ac__type_new_;
7927 main ()
7929 if ((ac__type_new_ *) 0)
7930 return 0;
7931 if (sizeof (ac__type_new_))
7932 return 0;
7934 return 0;
7936 _ACEOF
7937 rm -f conftest.$ac_objext
7938 if { (ac_try="$ac_compile"
7939 case "(($ac_try" in
7940 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7941 *) ac_try_echo=$ac_try;;
7942 esac
7943 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7944 (eval "$ac_compile") 2>conftest.er1
7945 ac_status=$?
7946 grep -v '^ *+' conftest.er1 >conftest.err
7947 rm -f conftest.er1
7948 cat conftest.err >&5
7949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7950 (exit $ac_status); } && {
7951 test -z "$ac_c_werror_flag" ||
7952 test ! -s conftest.err
7953 } && test -s conftest.$ac_objext; then
7954 ac_cv_type_long=yes
7955 else
7956 echo "$as_me: failed program was:" >&5
7957 sed 's/^/| /' conftest.$ac_ext >&5
7959 ac_cv_type_long=no
7962 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7964 { echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
7965 echo "${ECHO_T}$ac_cv_type_long" >&6; }
7967 # The cast to long int works around a bug in the HP C Compiler
7968 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7969 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7970 # This bug is HP SR number 8606223364.
7971 { echo "$as_me:$LINENO: checking size of long" >&5
7972 echo $ECHO_N "checking size of long... $ECHO_C" >&6; }
7973 if test "${ac_cv_sizeof_long+set}" = set; then
7974 echo $ECHO_N "(cached) $ECHO_C" >&6
7975 else
7976 if test "$cross_compiling" = yes; then
7977 # Depending upon the size, compute the lo and hi bounds.
7978 cat >conftest.$ac_ext <<_ACEOF
7979 /* confdefs.h. */
7980 _ACEOF
7981 cat confdefs.h >>conftest.$ac_ext
7982 cat >>conftest.$ac_ext <<_ACEOF
7983 /* end confdefs.h. */
7984 $ac_includes_default
7985 typedef long ac__type_sizeof_;
7987 main ()
7989 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
7990 test_array [0] = 0
7993 return 0;
7995 _ACEOF
7996 rm -f conftest.$ac_objext
7997 if { (ac_try="$ac_compile"
7998 case "(($ac_try" in
7999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8000 *) ac_try_echo=$ac_try;;
8001 esac
8002 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8003 (eval "$ac_compile") 2>conftest.er1
8004 ac_status=$?
8005 grep -v '^ *+' conftest.er1 >conftest.err
8006 rm -f conftest.er1
8007 cat conftest.err >&5
8008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8009 (exit $ac_status); } && {
8010 test -z "$ac_c_werror_flag" ||
8011 test ! -s conftest.err
8012 } && test -s conftest.$ac_objext; then
8013 ac_lo=0 ac_mid=0
8014 while :; do
8015 cat >conftest.$ac_ext <<_ACEOF
8016 /* confdefs.h. */
8017 _ACEOF
8018 cat confdefs.h >>conftest.$ac_ext
8019 cat >>conftest.$ac_ext <<_ACEOF
8020 /* end confdefs.h. */
8021 $ac_includes_default
8022 typedef long ac__type_sizeof_;
8024 main ()
8026 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8027 test_array [0] = 0
8030 return 0;
8032 _ACEOF
8033 rm -f conftest.$ac_objext
8034 if { (ac_try="$ac_compile"
8035 case "(($ac_try" in
8036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8037 *) ac_try_echo=$ac_try;;
8038 esac
8039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8040 (eval "$ac_compile") 2>conftest.er1
8041 ac_status=$?
8042 grep -v '^ *+' conftest.er1 >conftest.err
8043 rm -f conftest.er1
8044 cat conftest.err >&5
8045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8046 (exit $ac_status); } && {
8047 test -z "$ac_c_werror_flag" ||
8048 test ! -s conftest.err
8049 } && test -s conftest.$ac_objext; then
8050 ac_hi=$ac_mid; break
8051 else
8052 echo "$as_me: failed program was:" >&5
8053 sed 's/^/| /' conftest.$ac_ext >&5
8055 ac_lo=`expr $ac_mid + 1`
8056 if test $ac_lo -le $ac_mid; then
8057 ac_lo= ac_hi=
8058 break
8060 ac_mid=`expr 2 '*' $ac_mid + 1`
8063 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8064 done
8065 else
8066 echo "$as_me: failed program was:" >&5
8067 sed 's/^/| /' conftest.$ac_ext >&5
8069 cat >conftest.$ac_ext <<_ACEOF
8070 /* confdefs.h. */
8071 _ACEOF
8072 cat confdefs.h >>conftest.$ac_ext
8073 cat >>conftest.$ac_ext <<_ACEOF
8074 /* end confdefs.h. */
8075 $ac_includes_default
8076 typedef long ac__type_sizeof_;
8078 main ()
8080 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
8081 test_array [0] = 0
8084 return 0;
8086 _ACEOF
8087 rm -f conftest.$ac_objext
8088 if { (ac_try="$ac_compile"
8089 case "(($ac_try" in
8090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8091 *) ac_try_echo=$ac_try;;
8092 esac
8093 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8094 (eval "$ac_compile") 2>conftest.er1
8095 ac_status=$?
8096 grep -v '^ *+' conftest.er1 >conftest.err
8097 rm -f conftest.er1
8098 cat conftest.err >&5
8099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8100 (exit $ac_status); } && {
8101 test -z "$ac_c_werror_flag" ||
8102 test ! -s conftest.err
8103 } && test -s conftest.$ac_objext; then
8104 ac_hi=-1 ac_mid=-1
8105 while :; do
8106 cat >conftest.$ac_ext <<_ACEOF
8107 /* confdefs.h. */
8108 _ACEOF
8109 cat confdefs.h >>conftest.$ac_ext
8110 cat >>conftest.$ac_ext <<_ACEOF
8111 /* end confdefs.h. */
8112 $ac_includes_default
8113 typedef long ac__type_sizeof_;
8115 main ()
8117 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
8118 test_array [0] = 0
8121 return 0;
8123 _ACEOF
8124 rm -f conftest.$ac_objext
8125 if { (ac_try="$ac_compile"
8126 case "(($ac_try" in
8127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8128 *) ac_try_echo=$ac_try;;
8129 esac
8130 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8131 (eval "$ac_compile") 2>conftest.er1
8132 ac_status=$?
8133 grep -v '^ *+' conftest.er1 >conftest.err
8134 rm -f conftest.er1
8135 cat conftest.err >&5
8136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8137 (exit $ac_status); } && {
8138 test -z "$ac_c_werror_flag" ||
8139 test ! -s conftest.err
8140 } && test -s conftest.$ac_objext; then
8141 ac_lo=$ac_mid; break
8142 else
8143 echo "$as_me: failed program was:" >&5
8144 sed 's/^/| /' conftest.$ac_ext >&5
8146 ac_hi=`expr '(' $ac_mid ')' - 1`
8147 if test $ac_mid -le $ac_hi; then
8148 ac_lo= ac_hi=
8149 break
8151 ac_mid=`expr 2 '*' $ac_mid`
8154 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8155 done
8156 else
8157 echo "$as_me: failed program was:" >&5
8158 sed 's/^/| /' conftest.$ac_ext >&5
8160 ac_lo= ac_hi=
8163 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8166 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8167 # Binary search between lo and hi bounds.
8168 while test "x$ac_lo" != "x$ac_hi"; do
8169 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8170 cat >conftest.$ac_ext <<_ACEOF
8171 /* confdefs.h. */
8172 _ACEOF
8173 cat confdefs.h >>conftest.$ac_ext
8174 cat >>conftest.$ac_ext <<_ACEOF
8175 /* end confdefs.h. */
8176 $ac_includes_default
8177 typedef long ac__type_sizeof_;
8179 main ()
8181 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8182 test_array [0] = 0
8185 return 0;
8187 _ACEOF
8188 rm -f conftest.$ac_objext
8189 if { (ac_try="$ac_compile"
8190 case "(($ac_try" in
8191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8192 *) ac_try_echo=$ac_try;;
8193 esac
8194 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8195 (eval "$ac_compile") 2>conftest.er1
8196 ac_status=$?
8197 grep -v '^ *+' conftest.er1 >conftest.err
8198 rm -f conftest.er1
8199 cat conftest.err >&5
8200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8201 (exit $ac_status); } && {
8202 test -z "$ac_c_werror_flag" ||
8203 test ! -s conftest.err
8204 } && test -s conftest.$ac_objext; then
8205 ac_hi=$ac_mid
8206 else
8207 echo "$as_me: failed program was:" >&5
8208 sed 's/^/| /' conftest.$ac_ext >&5
8210 ac_lo=`expr '(' $ac_mid ')' + 1`
8213 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8214 done
8215 case $ac_lo in
8216 ?*) ac_cv_sizeof_long=$ac_lo;;
8217 '') if test "$ac_cv_type_long" = yes; then
8218 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
8219 See \`config.log' for more details." >&5
8220 echo "$as_me: error: cannot compute sizeof (long)
8221 See \`config.log' for more details." >&2;}
8222 { (exit 77); exit 77; }; }
8223 else
8224 ac_cv_sizeof_long=0
8225 fi ;;
8226 esac
8227 else
8228 cat >conftest.$ac_ext <<_ACEOF
8229 /* confdefs.h. */
8230 _ACEOF
8231 cat confdefs.h >>conftest.$ac_ext
8232 cat >>conftest.$ac_ext <<_ACEOF
8233 /* end confdefs.h. */
8234 $ac_includes_default
8235 typedef long ac__type_sizeof_;
8236 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
8237 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
8238 #include <stdio.h>
8239 #include <stdlib.h>
8241 main ()
8244 FILE *f = fopen ("conftest.val", "w");
8245 if (! f)
8246 return 1;
8247 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
8249 long int i = longval ();
8250 if (i != ((long int) (sizeof (ac__type_sizeof_))))
8251 return 1;
8252 fprintf (f, "%ld\n", i);
8254 else
8256 unsigned long int i = ulongval ();
8257 if (i != ((long int) (sizeof (ac__type_sizeof_))))
8258 return 1;
8259 fprintf (f, "%lu\n", i);
8261 return ferror (f) || fclose (f) != 0;
8264 return 0;
8266 _ACEOF
8267 rm -f conftest$ac_exeext
8268 if { (ac_try="$ac_link"
8269 case "(($ac_try" in
8270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8271 *) ac_try_echo=$ac_try;;
8272 esac
8273 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8274 (eval "$ac_link") 2>&5
8275 ac_status=$?
8276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8277 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8278 { (case "(($ac_try" in
8279 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8280 *) ac_try_echo=$ac_try;;
8281 esac
8282 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8283 (eval "$ac_try") 2>&5
8284 ac_status=$?
8285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8286 (exit $ac_status); }; }; then
8287 ac_cv_sizeof_long=`cat conftest.val`
8288 else
8289 echo "$as_me: program exited with status $ac_status" >&5
8290 echo "$as_me: failed program was:" >&5
8291 sed 's/^/| /' conftest.$ac_ext >&5
8293 ( exit $ac_status )
8294 if test "$ac_cv_type_long" = yes; then
8295 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
8296 See \`config.log' for more details." >&5
8297 echo "$as_me: error: cannot compute sizeof (long)
8298 See \`config.log' for more details." >&2;}
8299 { (exit 77); exit 77; }; }
8300 else
8301 ac_cv_sizeof_long=0
8304 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8306 rm -f conftest.val
8308 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
8309 echo "${ECHO_T}$ac_cv_sizeof_long" >&6; }
8313 cat >>confdefs.h <<_ACEOF
8314 #define SIZEOF_LONG $ac_cv_sizeof_long
8315 _ACEOF
8318 { echo "$as_me:$LINENO: checking for void *" >&5
8319 echo $ECHO_N "checking for void *... $ECHO_C" >&6; }
8320 if test "${ac_cv_type_void_p+set}" = set; then
8321 echo $ECHO_N "(cached) $ECHO_C" >&6
8322 else
8323 cat >conftest.$ac_ext <<_ACEOF
8324 /* confdefs.h. */
8325 _ACEOF
8326 cat confdefs.h >>conftest.$ac_ext
8327 cat >>conftest.$ac_ext <<_ACEOF
8328 /* end confdefs.h. */
8329 $ac_includes_default
8330 typedef void * ac__type_new_;
8332 main ()
8334 if ((ac__type_new_ *) 0)
8335 return 0;
8336 if (sizeof (ac__type_new_))
8337 return 0;
8339 return 0;
8341 _ACEOF
8342 rm -f conftest.$ac_objext
8343 if { (ac_try="$ac_compile"
8344 case "(($ac_try" in
8345 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8346 *) ac_try_echo=$ac_try;;
8347 esac
8348 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8349 (eval "$ac_compile") 2>conftest.er1
8350 ac_status=$?
8351 grep -v '^ *+' conftest.er1 >conftest.err
8352 rm -f conftest.er1
8353 cat conftest.err >&5
8354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8355 (exit $ac_status); } && {
8356 test -z "$ac_c_werror_flag" ||
8357 test ! -s conftest.err
8358 } && test -s conftest.$ac_objext; then
8359 ac_cv_type_void_p=yes
8360 else
8361 echo "$as_me: failed program was:" >&5
8362 sed 's/^/| /' conftest.$ac_ext >&5
8364 ac_cv_type_void_p=no
8367 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8369 { echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
8370 echo "${ECHO_T}$ac_cv_type_void_p" >&6; }
8372 # The cast to long int works around a bug in the HP C Compiler
8373 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8374 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8375 # This bug is HP SR number 8606223364.
8376 { echo "$as_me:$LINENO: checking size of void *" >&5
8377 echo $ECHO_N "checking size of void *... $ECHO_C" >&6; }
8378 if test "${ac_cv_sizeof_void_p+set}" = set; then
8379 echo $ECHO_N "(cached) $ECHO_C" >&6
8380 else
8381 if test "$cross_compiling" = yes; then
8382 # Depending upon the size, compute the lo and hi bounds.
8383 cat >conftest.$ac_ext <<_ACEOF
8384 /* confdefs.h. */
8385 _ACEOF
8386 cat confdefs.h >>conftest.$ac_ext
8387 cat >>conftest.$ac_ext <<_ACEOF
8388 /* end confdefs.h. */
8389 $ac_includes_default
8390 typedef void * ac__type_sizeof_;
8392 main ()
8394 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
8395 test_array [0] = 0
8398 return 0;
8400 _ACEOF
8401 rm -f conftest.$ac_objext
8402 if { (ac_try="$ac_compile"
8403 case "(($ac_try" in
8404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8405 *) ac_try_echo=$ac_try;;
8406 esac
8407 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8408 (eval "$ac_compile") 2>conftest.er1
8409 ac_status=$?
8410 grep -v '^ *+' conftest.er1 >conftest.err
8411 rm -f conftest.er1
8412 cat conftest.err >&5
8413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8414 (exit $ac_status); } && {
8415 test -z "$ac_c_werror_flag" ||
8416 test ! -s conftest.err
8417 } && test -s conftest.$ac_objext; then
8418 ac_lo=0 ac_mid=0
8419 while :; do
8420 cat >conftest.$ac_ext <<_ACEOF
8421 /* confdefs.h. */
8422 _ACEOF
8423 cat confdefs.h >>conftest.$ac_ext
8424 cat >>conftest.$ac_ext <<_ACEOF
8425 /* end confdefs.h. */
8426 $ac_includes_default
8427 typedef void * ac__type_sizeof_;
8429 main ()
8431 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8432 test_array [0] = 0
8435 return 0;
8437 _ACEOF
8438 rm -f conftest.$ac_objext
8439 if { (ac_try="$ac_compile"
8440 case "(($ac_try" in
8441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8442 *) ac_try_echo=$ac_try;;
8443 esac
8444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8445 (eval "$ac_compile") 2>conftest.er1
8446 ac_status=$?
8447 grep -v '^ *+' conftest.er1 >conftest.err
8448 rm -f conftest.er1
8449 cat conftest.err >&5
8450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8451 (exit $ac_status); } && {
8452 test -z "$ac_c_werror_flag" ||
8453 test ! -s conftest.err
8454 } && test -s conftest.$ac_objext; then
8455 ac_hi=$ac_mid; break
8456 else
8457 echo "$as_me: failed program was:" >&5
8458 sed 's/^/| /' conftest.$ac_ext >&5
8460 ac_lo=`expr $ac_mid + 1`
8461 if test $ac_lo -le $ac_mid; then
8462 ac_lo= ac_hi=
8463 break
8465 ac_mid=`expr 2 '*' $ac_mid + 1`
8468 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8469 done
8470 else
8471 echo "$as_me: failed program was:" >&5
8472 sed 's/^/| /' conftest.$ac_ext >&5
8474 cat >conftest.$ac_ext <<_ACEOF
8475 /* confdefs.h. */
8476 _ACEOF
8477 cat confdefs.h >>conftest.$ac_ext
8478 cat >>conftest.$ac_ext <<_ACEOF
8479 /* end confdefs.h. */
8480 $ac_includes_default
8481 typedef void * ac__type_sizeof_;
8483 main ()
8485 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
8486 test_array [0] = 0
8489 return 0;
8491 _ACEOF
8492 rm -f conftest.$ac_objext
8493 if { (ac_try="$ac_compile"
8494 case "(($ac_try" in
8495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8496 *) ac_try_echo=$ac_try;;
8497 esac
8498 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8499 (eval "$ac_compile") 2>conftest.er1
8500 ac_status=$?
8501 grep -v '^ *+' conftest.er1 >conftest.err
8502 rm -f conftest.er1
8503 cat conftest.err >&5
8504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8505 (exit $ac_status); } && {
8506 test -z "$ac_c_werror_flag" ||
8507 test ! -s conftest.err
8508 } && test -s conftest.$ac_objext; then
8509 ac_hi=-1 ac_mid=-1
8510 while :; do
8511 cat >conftest.$ac_ext <<_ACEOF
8512 /* confdefs.h. */
8513 _ACEOF
8514 cat confdefs.h >>conftest.$ac_ext
8515 cat >>conftest.$ac_ext <<_ACEOF
8516 /* end confdefs.h. */
8517 $ac_includes_default
8518 typedef void * ac__type_sizeof_;
8520 main ()
8522 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
8523 test_array [0] = 0
8526 return 0;
8528 _ACEOF
8529 rm -f conftest.$ac_objext
8530 if { (ac_try="$ac_compile"
8531 case "(($ac_try" in
8532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8533 *) ac_try_echo=$ac_try;;
8534 esac
8535 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8536 (eval "$ac_compile") 2>conftest.er1
8537 ac_status=$?
8538 grep -v '^ *+' conftest.er1 >conftest.err
8539 rm -f conftest.er1
8540 cat conftest.err >&5
8541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8542 (exit $ac_status); } && {
8543 test -z "$ac_c_werror_flag" ||
8544 test ! -s conftest.err
8545 } && test -s conftest.$ac_objext; then
8546 ac_lo=$ac_mid; break
8547 else
8548 echo "$as_me: failed program was:" >&5
8549 sed 's/^/| /' conftest.$ac_ext >&5
8551 ac_hi=`expr '(' $ac_mid ')' - 1`
8552 if test $ac_mid -le $ac_hi; then
8553 ac_lo= ac_hi=
8554 break
8556 ac_mid=`expr 2 '*' $ac_mid`
8559 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8560 done
8561 else
8562 echo "$as_me: failed program was:" >&5
8563 sed 's/^/| /' conftest.$ac_ext >&5
8565 ac_lo= ac_hi=
8568 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8571 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8572 # Binary search between lo and hi bounds.
8573 while test "x$ac_lo" != "x$ac_hi"; do
8574 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8575 cat >conftest.$ac_ext <<_ACEOF
8576 /* confdefs.h. */
8577 _ACEOF
8578 cat confdefs.h >>conftest.$ac_ext
8579 cat >>conftest.$ac_ext <<_ACEOF
8580 /* end confdefs.h. */
8581 $ac_includes_default
8582 typedef void * ac__type_sizeof_;
8584 main ()
8586 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8587 test_array [0] = 0
8590 return 0;
8592 _ACEOF
8593 rm -f conftest.$ac_objext
8594 if { (ac_try="$ac_compile"
8595 case "(($ac_try" in
8596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8597 *) ac_try_echo=$ac_try;;
8598 esac
8599 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8600 (eval "$ac_compile") 2>conftest.er1
8601 ac_status=$?
8602 grep -v '^ *+' conftest.er1 >conftest.err
8603 rm -f conftest.er1
8604 cat conftest.err >&5
8605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8606 (exit $ac_status); } && {
8607 test -z "$ac_c_werror_flag" ||
8608 test ! -s conftest.err
8609 } && test -s conftest.$ac_objext; then
8610 ac_hi=$ac_mid
8611 else
8612 echo "$as_me: failed program was:" >&5
8613 sed 's/^/| /' conftest.$ac_ext >&5
8615 ac_lo=`expr '(' $ac_mid ')' + 1`
8618 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8619 done
8620 case $ac_lo in
8621 ?*) ac_cv_sizeof_void_p=$ac_lo;;
8622 '') if test "$ac_cv_type_void_p" = yes; then
8623 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
8624 See \`config.log' for more details." >&5
8625 echo "$as_me: error: cannot compute sizeof (void *)
8626 See \`config.log' for more details." >&2;}
8627 { (exit 77); exit 77; }; }
8628 else
8629 ac_cv_sizeof_void_p=0
8630 fi ;;
8631 esac
8632 else
8633 cat >conftest.$ac_ext <<_ACEOF
8634 /* confdefs.h. */
8635 _ACEOF
8636 cat confdefs.h >>conftest.$ac_ext
8637 cat >>conftest.$ac_ext <<_ACEOF
8638 /* end confdefs.h. */
8639 $ac_includes_default
8640 typedef void * ac__type_sizeof_;
8641 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
8642 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
8643 #include <stdio.h>
8644 #include <stdlib.h>
8646 main ()
8649 FILE *f = fopen ("conftest.val", "w");
8650 if (! f)
8651 return 1;
8652 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
8654 long int i = longval ();
8655 if (i != ((long int) (sizeof (ac__type_sizeof_))))
8656 return 1;
8657 fprintf (f, "%ld\n", i);
8659 else
8661 unsigned long int i = ulongval ();
8662 if (i != ((long int) (sizeof (ac__type_sizeof_))))
8663 return 1;
8664 fprintf (f, "%lu\n", i);
8666 return ferror (f) || fclose (f) != 0;
8669 return 0;
8671 _ACEOF
8672 rm -f conftest$ac_exeext
8673 if { (ac_try="$ac_link"
8674 case "(($ac_try" in
8675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8676 *) ac_try_echo=$ac_try;;
8677 esac
8678 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8679 (eval "$ac_link") 2>&5
8680 ac_status=$?
8681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8682 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8683 { (case "(($ac_try" in
8684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8685 *) ac_try_echo=$ac_try;;
8686 esac
8687 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8688 (eval "$ac_try") 2>&5
8689 ac_status=$?
8690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8691 (exit $ac_status); }; }; then
8692 ac_cv_sizeof_void_p=`cat conftest.val`
8693 else
8694 echo "$as_me: program exited with status $ac_status" >&5
8695 echo "$as_me: failed program was:" >&5
8696 sed 's/^/| /' conftest.$ac_ext >&5
8698 ( exit $ac_status )
8699 if test "$ac_cv_type_void_p" = yes; then
8700 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
8701 See \`config.log' for more details." >&5
8702 echo "$as_me: error: cannot compute sizeof (void *)
8703 See \`config.log' for more details." >&2;}
8704 { (exit 77); exit 77; }; }
8705 else
8706 ac_cv_sizeof_void_p=0
8709 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8711 rm -f conftest.val
8713 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
8714 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6; }
8718 cat >>confdefs.h <<_ACEOF
8719 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
8720 _ACEOF
8723 { echo "$as_me:$LINENO: checking for short" >&5
8724 echo $ECHO_N "checking for short... $ECHO_C" >&6; }
8725 if test "${ac_cv_type_short+set}" = set; then
8726 echo $ECHO_N "(cached) $ECHO_C" >&6
8727 else
8728 cat >conftest.$ac_ext <<_ACEOF
8729 /* confdefs.h. */
8730 _ACEOF
8731 cat confdefs.h >>conftest.$ac_ext
8732 cat >>conftest.$ac_ext <<_ACEOF
8733 /* end confdefs.h. */
8734 $ac_includes_default
8735 typedef short ac__type_new_;
8737 main ()
8739 if ((ac__type_new_ *) 0)
8740 return 0;
8741 if (sizeof (ac__type_new_))
8742 return 0;
8744 return 0;
8746 _ACEOF
8747 rm -f conftest.$ac_objext
8748 if { (ac_try="$ac_compile"
8749 case "(($ac_try" in
8750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8751 *) ac_try_echo=$ac_try;;
8752 esac
8753 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8754 (eval "$ac_compile") 2>conftest.er1
8755 ac_status=$?
8756 grep -v '^ *+' conftest.er1 >conftest.err
8757 rm -f conftest.er1
8758 cat conftest.err >&5
8759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8760 (exit $ac_status); } && {
8761 test -z "$ac_c_werror_flag" ||
8762 test ! -s conftest.err
8763 } && test -s conftest.$ac_objext; then
8764 ac_cv_type_short=yes
8765 else
8766 echo "$as_me: failed program was:" >&5
8767 sed 's/^/| /' conftest.$ac_ext >&5
8769 ac_cv_type_short=no
8772 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8774 { echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
8775 echo "${ECHO_T}$ac_cv_type_short" >&6; }
8777 # The cast to long int works around a bug in the HP C Compiler
8778 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8779 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8780 # This bug is HP SR number 8606223364.
8781 { echo "$as_me:$LINENO: checking size of short" >&5
8782 echo $ECHO_N "checking size of short... $ECHO_C" >&6; }
8783 if test "${ac_cv_sizeof_short+set}" = set; then
8784 echo $ECHO_N "(cached) $ECHO_C" >&6
8785 else
8786 if test "$cross_compiling" = yes; then
8787 # Depending upon the size, compute the lo and hi bounds.
8788 cat >conftest.$ac_ext <<_ACEOF
8789 /* confdefs.h. */
8790 _ACEOF
8791 cat confdefs.h >>conftest.$ac_ext
8792 cat >>conftest.$ac_ext <<_ACEOF
8793 /* end confdefs.h. */
8794 $ac_includes_default
8795 typedef short ac__type_sizeof_;
8797 main ()
8799 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
8800 test_array [0] = 0
8803 return 0;
8805 _ACEOF
8806 rm -f conftest.$ac_objext
8807 if { (ac_try="$ac_compile"
8808 case "(($ac_try" in
8809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8810 *) ac_try_echo=$ac_try;;
8811 esac
8812 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8813 (eval "$ac_compile") 2>conftest.er1
8814 ac_status=$?
8815 grep -v '^ *+' conftest.er1 >conftest.err
8816 rm -f conftest.er1
8817 cat conftest.err >&5
8818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8819 (exit $ac_status); } && {
8820 test -z "$ac_c_werror_flag" ||
8821 test ! -s conftest.err
8822 } && test -s conftest.$ac_objext; then
8823 ac_lo=0 ac_mid=0
8824 while :; do
8825 cat >conftest.$ac_ext <<_ACEOF
8826 /* confdefs.h. */
8827 _ACEOF
8828 cat confdefs.h >>conftest.$ac_ext
8829 cat >>conftest.$ac_ext <<_ACEOF
8830 /* end confdefs.h. */
8831 $ac_includes_default
8832 typedef short ac__type_sizeof_;
8834 main ()
8836 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8837 test_array [0] = 0
8840 return 0;
8842 _ACEOF
8843 rm -f conftest.$ac_objext
8844 if { (ac_try="$ac_compile"
8845 case "(($ac_try" in
8846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8847 *) ac_try_echo=$ac_try;;
8848 esac
8849 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8850 (eval "$ac_compile") 2>conftest.er1
8851 ac_status=$?
8852 grep -v '^ *+' conftest.er1 >conftest.err
8853 rm -f conftest.er1
8854 cat conftest.err >&5
8855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8856 (exit $ac_status); } && {
8857 test -z "$ac_c_werror_flag" ||
8858 test ! -s conftest.err
8859 } && test -s conftest.$ac_objext; then
8860 ac_hi=$ac_mid; break
8861 else
8862 echo "$as_me: failed program was:" >&5
8863 sed 's/^/| /' conftest.$ac_ext >&5
8865 ac_lo=`expr $ac_mid + 1`
8866 if test $ac_lo -le $ac_mid; then
8867 ac_lo= ac_hi=
8868 break
8870 ac_mid=`expr 2 '*' $ac_mid + 1`
8873 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8874 done
8875 else
8876 echo "$as_me: failed program was:" >&5
8877 sed 's/^/| /' conftest.$ac_ext >&5
8879 cat >conftest.$ac_ext <<_ACEOF
8880 /* confdefs.h. */
8881 _ACEOF
8882 cat confdefs.h >>conftest.$ac_ext
8883 cat >>conftest.$ac_ext <<_ACEOF
8884 /* end confdefs.h. */
8885 $ac_includes_default
8886 typedef short ac__type_sizeof_;
8888 main ()
8890 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
8891 test_array [0] = 0
8894 return 0;
8896 _ACEOF
8897 rm -f conftest.$ac_objext
8898 if { (ac_try="$ac_compile"
8899 case "(($ac_try" in
8900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8901 *) ac_try_echo=$ac_try;;
8902 esac
8903 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8904 (eval "$ac_compile") 2>conftest.er1
8905 ac_status=$?
8906 grep -v '^ *+' conftest.er1 >conftest.err
8907 rm -f conftest.er1
8908 cat conftest.err >&5
8909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8910 (exit $ac_status); } && {
8911 test -z "$ac_c_werror_flag" ||
8912 test ! -s conftest.err
8913 } && test -s conftest.$ac_objext; then
8914 ac_hi=-1 ac_mid=-1
8915 while :; do
8916 cat >conftest.$ac_ext <<_ACEOF
8917 /* confdefs.h. */
8918 _ACEOF
8919 cat confdefs.h >>conftest.$ac_ext
8920 cat >>conftest.$ac_ext <<_ACEOF
8921 /* end confdefs.h. */
8922 $ac_includes_default
8923 typedef short ac__type_sizeof_;
8925 main ()
8927 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
8928 test_array [0] = 0
8931 return 0;
8933 _ACEOF
8934 rm -f conftest.$ac_objext
8935 if { (ac_try="$ac_compile"
8936 case "(($ac_try" in
8937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8938 *) ac_try_echo=$ac_try;;
8939 esac
8940 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8941 (eval "$ac_compile") 2>conftest.er1
8942 ac_status=$?
8943 grep -v '^ *+' conftest.er1 >conftest.err
8944 rm -f conftest.er1
8945 cat conftest.err >&5
8946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8947 (exit $ac_status); } && {
8948 test -z "$ac_c_werror_flag" ||
8949 test ! -s conftest.err
8950 } && test -s conftest.$ac_objext; then
8951 ac_lo=$ac_mid; break
8952 else
8953 echo "$as_me: failed program was:" >&5
8954 sed 's/^/| /' conftest.$ac_ext >&5
8956 ac_hi=`expr '(' $ac_mid ')' - 1`
8957 if test $ac_mid -le $ac_hi; then
8958 ac_lo= ac_hi=
8959 break
8961 ac_mid=`expr 2 '*' $ac_mid`
8964 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8965 done
8966 else
8967 echo "$as_me: failed program was:" >&5
8968 sed 's/^/| /' conftest.$ac_ext >&5
8970 ac_lo= ac_hi=
8973 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8976 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8977 # Binary search between lo and hi bounds.
8978 while test "x$ac_lo" != "x$ac_hi"; do
8979 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8980 cat >conftest.$ac_ext <<_ACEOF
8981 /* confdefs.h. */
8982 _ACEOF
8983 cat confdefs.h >>conftest.$ac_ext
8984 cat >>conftest.$ac_ext <<_ACEOF
8985 /* end confdefs.h. */
8986 $ac_includes_default
8987 typedef short ac__type_sizeof_;
8989 main ()
8991 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8992 test_array [0] = 0
8995 return 0;
8997 _ACEOF
8998 rm -f conftest.$ac_objext
8999 if { (ac_try="$ac_compile"
9000 case "(($ac_try" in
9001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9002 *) ac_try_echo=$ac_try;;
9003 esac
9004 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9005 (eval "$ac_compile") 2>conftest.er1
9006 ac_status=$?
9007 grep -v '^ *+' conftest.er1 >conftest.err
9008 rm -f conftest.er1
9009 cat conftest.err >&5
9010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9011 (exit $ac_status); } && {
9012 test -z "$ac_c_werror_flag" ||
9013 test ! -s conftest.err
9014 } && test -s conftest.$ac_objext; then
9015 ac_hi=$ac_mid
9016 else
9017 echo "$as_me: failed program was:" >&5
9018 sed 's/^/| /' conftest.$ac_ext >&5
9020 ac_lo=`expr '(' $ac_mid ')' + 1`
9023 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9024 done
9025 case $ac_lo in
9026 ?*) ac_cv_sizeof_short=$ac_lo;;
9027 '') if test "$ac_cv_type_short" = yes; then
9028 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
9029 See \`config.log' for more details." >&5
9030 echo "$as_me: error: cannot compute sizeof (short)
9031 See \`config.log' for more details." >&2;}
9032 { (exit 77); exit 77; }; }
9033 else
9034 ac_cv_sizeof_short=0
9035 fi ;;
9036 esac
9037 else
9038 cat >conftest.$ac_ext <<_ACEOF
9039 /* confdefs.h. */
9040 _ACEOF
9041 cat confdefs.h >>conftest.$ac_ext
9042 cat >>conftest.$ac_ext <<_ACEOF
9043 /* end confdefs.h. */
9044 $ac_includes_default
9045 typedef short ac__type_sizeof_;
9046 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
9047 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
9048 #include <stdio.h>
9049 #include <stdlib.h>
9051 main ()
9054 FILE *f = fopen ("conftest.val", "w");
9055 if (! f)
9056 return 1;
9057 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
9059 long int i = longval ();
9060 if (i != ((long int) (sizeof (ac__type_sizeof_))))
9061 return 1;
9062 fprintf (f, "%ld\n", i);
9064 else
9066 unsigned long int i = ulongval ();
9067 if (i != ((long int) (sizeof (ac__type_sizeof_))))
9068 return 1;
9069 fprintf (f, "%lu\n", i);
9071 return ferror (f) || fclose (f) != 0;
9074 return 0;
9076 _ACEOF
9077 rm -f conftest$ac_exeext
9078 if { (ac_try="$ac_link"
9079 case "(($ac_try" in
9080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9081 *) ac_try_echo=$ac_try;;
9082 esac
9083 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9084 (eval "$ac_link") 2>&5
9085 ac_status=$?
9086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9087 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9088 { (case "(($ac_try" in
9089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9090 *) ac_try_echo=$ac_try;;
9091 esac
9092 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9093 (eval "$ac_try") 2>&5
9094 ac_status=$?
9095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9096 (exit $ac_status); }; }; then
9097 ac_cv_sizeof_short=`cat conftest.val`
9098 else
9099 echo "$as_me: program exited with status $ac_status" >&5
9100 echo "$as_me: failed program was:" >&5
9101 sed 's/^/| /' conftest.$ac_ext >&5
9103 ( exit $ac_status )
9104 if test "$ac_cv_type_short" = yes; then
9105 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
9106 See \`config.log' for more details." >&5
9107 echo "$as_me: error: cannot compute sizeof (short)
9108 See \`config.log' for more details." >&2;}
9109 { (exit 77); exit 77; }; }
9110 else
9111 ac_cv_sizeof_short=0
9114 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9116 rm -f conftest.val
9118 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
9119 echo "${ECHO_T}$ac_cv_sizeof_short" >&6; }
9123 cat >>confdefs.h <<_ACEOF
9124 #define SIZEOF_SHORT $ac_cv_sizeof_short
9125 _ACEOF
9128 { echo "$as_me:$LINENO: checking for float" >&5
9129 echo $ECHO_N "checking for float... $ECHO_C" >&6; }
9130 if test "${ac_cv_type_float+set}" = set; then
9131 echo $ECHO_N "(cached) $ECHO_C" >&6
9132 else
9133 cat >conftest.$ac_ext <<_ACEOF
9134 /* confdefs.h. */
9135 _ACEOF
9136 cat confdefs.h >>conftest.$ac_ext
9137 cat >>conftest.$ac_ext <<_ACEOF
9138 /* end confdefs.h. */
9139 $ac_includes_default
9140 typedef float ac__type_new_;
9142 main ()
9144 if ((ac__type_new_ *) 0)
9145 return 0;
9146 if (sizeof (ac__type_new_))
9147 return 0;
9149 return 0;
9151 _ACEOF
9152 rm -f conftest.$ac_objext
9153 if { (ac_try="$ac_compile"
9154 case "(($ac_try" in
9155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9156 *) ac_try_echo=$ac_try;;
9157 esac
9158 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9159 (eval "$ac_compile") 2>conftest.er1
9160 ac_status=$?
9161 grep -v '^ *+' conftest.er1 >conftest.err
9162 rm -f conftest.er1
9163 cat conftest.err >&5
9164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9165 (exit $ac_status); } && {
9166 test -z "$ac_c_werror_flag" ||
9167 test ! -s conftest.err
9168 } && test -s conftest.$ac_objext; then
9169 ac_cv_type_float=yes
9170 else
9171 echo "$as_me: failed program was:" >&5
9172 sed 's/^/| /' conftest.$ac_ext >&5
9174 ac_cv_type_float=no
9177 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9179 { echo "$as_me:$LINENO: result: $ac_cv_type_float" >&5
9180 echo "${ECHO_T}$ac_cv_type_float" >&6; }
9182 # The cast to long int works around a bug in the HP C Compiler
9183 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9184 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9185 # This bug is HP SR number 8606223364.
9186 { echo "$as_me:$LINENO: checking size of float" >&5
9187 echo $ECHO_N "checking size of float... $ECHO_C" >&6; }
9188 if test "${ac_cv_sizeof_float+set}" = set; then
9189 echo $ECHO_N "(cached) $ECHO_C" >&6
9190 else
9191 if test "$cross_compiling" = yes; then
9192 # Depending upon the size, compute the lo and hi bounds.
9193 cat >conftest.$ac_ext <<_ACEOF
9194 /* confdefs.h. */
9195 _ACEOF
9196 cat confdefs.h >>conftest.$ac_ext
9197 cat >>conftest.$ac_ext <<_ACEOF
9198 /* end confdefs.h. */
9199 $ac_includes_default
9200 typedef float ac__type_sizeof_;
9202 main ()
9204 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
9205 test_array [0] = 0
9208 return 0;
9210 _ACEOF
9211 rm -f conftest.$ac_objext
9212 if { (ac_try="$ac_compile"
9213 case "(($ac_try" in
9214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9215 *) ac_try_echo=$ac_try;;
9216 esac
9217 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9218 (eval "$ac_compile") 2>conftest.er1
9219 ac_status=$?
9220 grep -v '^ *+' conftest.er1 >conftest.err
9221 rm -f conftest.er1
9222 cat conftest.err >&5
9223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9224 (exit $ac_status); } && {
9225 test -z "$ac_c_werror_flag" ||
9226 test ! -s conftest.err
9227 } && test -s conftest.$ac_objext; then
9228 ac_lo=0 ac_mid=0
9229 while :; do
9230 cat >conftest.$ac_ext <<_ACEOF
9231 /* confdefs.h. */
9232 _ACEOF
9233 cat confdefs.h >>conftest.$ac_ext
9234 cat >>conftest.$ac_ext <<_ACEOF
9235 /* end confdefs.h. */
9236 $ac_includes_default
9237 typedef float ac__type_sizeof_;
9239 main ()
9241 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
9242 test_array [0] = 0
9245 return 0;
9247 _ACEOF
9248 rm -f conftest.$ac_objext
9249 if { (ac_try="$ac_compile"
9250 case "(($ac_try" in
9251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9252 *) ac_try_echo=$ac_try;;
9253 esac
9254 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9255 (eval "$ac_compile") 2>conftest.er1
9256 ac_status=$?
9257 grep -v '^ *+' conftest.er1 >conftest.err
9258 rm -f conftest.er1
9259 cat conftest.err >&5
9260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9261 (exit $ac_status); } && {
9262 test -z "$ac_c_werror_flag" ||
9263 test ! -s conftest.err
9264 } && test -s conftest.$ac_objext; then
9265 ac_hi=$ac_mid; break
9266 else
9267 echo "$as_me: failed program was:" >&5
9268 sed 's/^/| /' conftest.$ac_ext >&5
9270 ac_lo=`expr $ac_mid + 1`
9271 if test $ac_lo -le $ac_mid; then
9272 ac_lo= ac_hi=
9273 break
9275 ac_mid=`expr 2 '*' $ac_mid + 1`
9278 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9279 done
9280 else
9281 echo "$as_me: failed program was:" >&5
9282 sed 's/^/| /' conftest.$ac_ext >&5
9284 cat >conftest.$ac_ext <<_ACEOF
9285 /* confdefs.h. */
9286 _ACEOF
9287 cat confdefs.h >>conftest.$ac_ext
9288 cat >>conftest.$ac_ext <<_ACEOF
9289 /* end confdefs.h. */
9290 $ac_includes_default
9291 typedef float ac__type_sizeof_;
9293 main ()
9295 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
9296 test_array [0] = 0
9299 return 0;
9301 _ACEOF
9302 rm -f conftest.$ac_objext
9303 if { (ac_try="$ac_compile"
9304 case "(($ac_try" in
9305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9306 *) ac_try_echo=$ac_try;;
9307 esac
9308 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9309 (eval "$ac_compile") 2>conftest.er1
9310 ac_status=$?
9311 grep -v '^ *+' conftest.er1 >conftest.err
9312 rm -f conftest.er1
9313 cat conftest.err >&5
9314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9315 (exit $ac_status); } && {
9316 test -z "$ac_c_werror_flag" ||
9317 test ! -s conftest.err
9318 } && test -s conftest.$ac_objext; then
9319 ac_hi=-1 ac_mid=-1
9320 while :; do
9321 cat >conftest.$ac_ext <<_ACEOF
9322 /* confdefs.h. */
9323 _ACEOF
9324 cat confdefs.h >>conftest.$ac_ext
9325 cat >>conftest.$ac_ext <<_ACEOF
9326 /* end confdefs.h. */
9327 $ac_includes_default
9328 typedef float ac__type_sizeof_;
9330 main ()
9332 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
9333 test_array [0] = 0
9336 return 0;
9338 _ACEOF
9339 rm -f conftest.$ac_objext
9340 if { (ac_try="$ac_compile"
9341 case "(($ac_try" in
9342 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9343 *) ac_try_echo=$ac_try;;
9344 esac
9345 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9346 (eval "$ac_compile") 2>conftest.er1
9347 ac_status=$?
9348 grep -v '^ *+' conftest.er1 >conftest.err
9349 rm -f conftest.er1
9350 cat conftest.err >&5
9351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9352 (exit $ac_status); } && {
9353 test -z "$ac_c_werror_flag" ||
9354 test ! -s conftest.err
9355 } && test -s conftest.$ac_objext; then
9356 ac_lo=$ac_mid; break
9357 else
9358 echo "$as_me: failed program was:" >&5
9359 sed 's/^/| /' conftest.$ac_ext >&5
9361 ac_hi=`expr '(' $ac_mid ')' - 1`
9362 if test $ac_mid -le $ac_hi; then
9363 ac_lo= ac_hi=
9364 break
9366 ac_mid=`expr 2 '*' $ac_mid`
9369 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9370 done
9371 else
9372 echo "$as_me: failed program was:" >&5
9373 sed 's/^/| /' conftest.$ac_ext >&5
9375 ac_lo= ac_hi=
9378 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9381 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9382 # Binary search between lo and hi bounds.
9383 while test "x$ac_lo" != "x$ac_hi"; do
9384 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9385 cat >conftest.$ac_ext <<_ACEOF
9386 /* confdefs.h. */
9387 _ACEOF
9388 cat confdefs.h >>conftest.$ac_ext
9389 cat >>conftest.$ac_ext <<_ACEOF
9390 /* end confdefs.h. */
9391 $ac_includes_default
9392 typedef float ac__type_sizeof_;
9394 main ()
9396 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
9397 test_array [0] = 0
9400 return 0;
9402 _ACEOF
9403 rm -f conftest.$ac_objext
9404 if { (ac_try="$ac_compile"
9405 case "(($ac_try" in
9406 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9407 *) ac_try_echo=$ac_try;;
9408 esac
9409 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9410 (eval "$ac_compile") 2>conftest.er1
9411 ac_status=$?
9412 grep -v '^ *+' conftest.er1 >conftest.err
9413 rm -f conftest.er1
9414 cat conftest.err >&5
9415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9416 (exit $ac_status); } && {
9417 test -z "$ac_c_werror_flag" ||
9418 test ! -s conftest.err
9419 } && test -s conftest.$ac_objext; then
9420 ac_hi=$ac_mid
9421 else
9422 echo "$as_me: failed program was:" >&5
9423 sed 's/^/| /' conftest.$ac_ext >&5
9425 ac_lo=`expr '(' $ac_mid ')' + 1`
9428 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9429 done
9430 case $ac_lo in
9431 ?*) ac_cv_sizeof_float=$ac_lo;;
9432 '') if test "$ac_cv_type_float" = yes; then
9433 { { echo "$as_me:$LINENO: error: cannot compute sizeof (float)
9434 See \`config.log' for more details." >&5
9435 echo "$as_me: error: cannot compute sizeof (float)
9436 See \`config.log' for more details." >&2;}
9437 { (exit 77); exit 77; }; }
9438 else
9439 ac_cv_sizeof_float=0
9440 fi ;;
9441 esac
9442 else
9443 cat >conftest.$ac_ext <<_ACEOF
9444 /* confdefs.h. */
9445 _ACEOF
9446 cat confdefs.h >>conftest.$ac_ext
9447 cat >>conftest.$ac_ext <<_ACEOF
9448 /* end confdefs.h. */
9449 $ac_includes_default
9450 typedef float ac__type_sizeof_;
9451 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
9452 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
9453 #include <stdio.h>
9454 #include <stdlib.h>
9456 main ()
9459 FILE *f = fopen ("conftest.val", "w");
9460 if (! f)
9461 return 1;
9462 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
9464 long int i = longval ();
9465 if (i != ((long int) (sizeof (ac__type_sizeof_))))
9466 return 1;
9467 fprintf (f, "%ld\n", i);
9469 else
9471 unsigned long int i = ulongval ();
9472 if (i != ((long int) (sizeof (ac__type_sizeof_))))
9473 return 1;
9474 fprintf (f, "%lu\n", i);
9476 return ferror (f) || fclose (f) != 0;
9479 return 0;
9481 _ACEOF
9482 rm -f conftest$ac_exeext
9483 if { (ac_try="$ac_link"
9484 case "(($ac_try" in
9485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9486 *) ac_try_echo=$ac_try;;
9487 esac
9488 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9489 (eval "$ac_link") 2>&5
9490 ac_status=$?
9491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9492 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9493 { (case "(($ac_try" in
9494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9495 *) ac_try_echo=$ac_try;;
9496 esac
9497 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9498 (eval "$ac_try") 2>&5
9499 ac_status=$?
9500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9501 (exit $ac_status); }; }; then
9502 ac_cv_sizeof_float=`cat conftest.val`
9503 else
9504 echo "$as_me: program exited with status $ac_status" >&5
9505 echo "$as_me: failed program was:" >&5
9506 sed 's/^/| /' conftest.$ac_ext >&5
9508 ( exit $ac_status )
9509 if test "$ac_cv_type_float" = yes; then
9510 { { echo "$as_me:$LINENO: error: cannot compute sizeof (float)
9511 See \`config.log' for more details." >&5
9512 echo "$as_me: error: cannot compute sizeof (float)
9513 See \`config.log' for more details." >&2;}
9514 { (exit 77); exit 77; }; }
9515 else
9516 ac_cv_sizeof_float=0
9519 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9521 rm -f conftest.val
9523 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_float" >&5
9524 echo "${ECHO_T}$ac_cv_sizeof_float" >&6; }
9528 cat >>confdefs.h <<_ACEOF
9529 #define SIZEOF_FLOAT $ac_cv_sizeof_float
9530 _ACEOF
9533 { echo "$as_me:$LINENO: checking for double" >&5
9534 echo $ECHO_N "checking for double... $ECHO_C" >&6; }
9535 if test "${ac_cv_type_double+set}" = set; then
9536 echo $ECHO_N "(cached) $ECHO_C" >&6
9537 else
9538 cat >conftest.$ac_ext <<_ACEOF
9539 /* confdefs.h. */
9540 _ACEOF
9541 cat confdefs.h >>conftest.$ac_ext
9542 cat >>conftest.$ac_ext <<_ACEOF
9543 /* end confdefs.h. */
9544 $ac_includes_default
9545 typedef double ac__type_new_;
9547 main ()
9549 if ((ac__type_new_ *) 0)
9550 return 0;
9551 if (sizeof (ac__type_new_))
9552 return 0;
9554 return 0;
9556 _ACEOF
9557 rm -f conftest.$ac_objext
9558 if { (ac_try="$ac_compile"
9559 case "(($ac_try" in
9560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9561 *) ac_try_echo=$ac_try;;
9562 esac
9563 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9564 (eval "$ac_compile") 2>conftest.er1
9565 ac_status=$?
9566 grep -v '^ *+' conftest.er1 >conftest.err
9567 rm -f conftest.er1
9568 cat conftest.err >&5
9569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9570 (exit $ac_status); } && {
9571 test -z "$ac_c_werror_flag" ||
9572 test ! -s conftest.err
9573 } && test -s conftest.$ac_objext; then
9574 ac_cv_type_double=yes
9575 else
9576 echo "$as_me: failed program was:" >&5
9577 sed 's/^/| /' conftest.$ac_ext >&5
9579 ac_cv_type_double=no
9582 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9584 { echo "$as_me:$LINENO: result: $ac_cv_type_double" >&5
9585 echo "${ECHO_T}$ac_cv_type_double" >&6; }
9587 # The cast to long int works around a bug in the HP C Compiler
9588 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9589 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9590 # This bug is HP SR number 8606223364.
9591 { echo "$as_me:$LINENO: checking size of double" >&5
9592 echo $ECHO_N "checking size of double... $ECHO_C" >&6; }
9593 if test "${ac_cv_sizeof_double+set}" = set; then
9594 echo $ECHO_N "(cached) $ECHO_C" >&6
9595 else
9596 if test "$cross_compiling" = yes; then
9597 # Depending upon the size, compute the lo and hi bounds.
9598 cat >conftest.$ac_ext <<_ACEOF
9599 /* confdefs.h. */
9600 _ACEOF
9601 cat confdefs.h >>conftest.$ac_ext
9602 cat >>conftest.$ac_ext <<_ACEOF
9603 /* end confdefs.h. */
9604 $ac_includes_default
9605 typedef double ac__type_sizeof_;
9607 main ()
9609 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
9610 test_array [0] = 0
9613 return 0;
9615 _ACEOF
9616 rm -f conftest.$ac_objext
9617 if { (ac_try="$ac_compile"
9618 case "(($ac_try" in
9619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9620 *) ac_try_echo=$ac_try;;
9621 esac
9622 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9623 (eval "$ac_compile") 2>conftest.er1
9624 ac_status=$?
9625 grep -v '^ *+' conftest.er1 >conftest.err
9626 rm -f conftest.er1
9627 cat conftest.err >&5
9628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9629 (exit $ac_status); } && {
9630 test -z "$ac_c_werror_flag" ||
9631 test ! -s conftest.err
9632 } && test -s conftest.$ac_objext; then
9633 ac_lo=0 ac_mid=0
9634 while :; do
9635 cat >conftest.$ac_ext <<_ACEOF
9636 /* confdefs.h. */
9637 _ACEOF
9638 cat confdefs.h >>conftest.$ac_ext
9639 cat >>conftest.$ac_ext <<_ACEOF
9640 /* end confdefs.h. */
9641 $ac_includes_default
9642 typedef double ac__type_sizeof_;
9644 main ()
9646 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
9647 test_array [0] = 0
9650 return 0;
9652 _ACEOF
9653 rm -f conftest.$ac_objext
9654 if { (ac_try="$ac_compile"
9655 case "(($ac_try" in
9656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9657 *) ac_try_echo=$ac_try;;
9658 esac
9659 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9660 (eval "$ac_compile") 2>conftest.er1
9661 ac_status=$?
9662 grep -v '^ *+' conftest.er1 >conftest.err
9663 rm -f conftest.er1
9664 cat conftest.err >&5
9665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9666 (exit $ac_status); } && {
9667 test -z "$ac_c_werror_flag" ||
9668 test ! -s conftest.err
9669 } && test -s conftest.$ac_objext; then
9670 ac_hi=$ac_mid; break
9671 else
9672 echo "$as_me: failed program was:" >&5
9673 sed 's/^/| /' conftest.$ac_ext >&5
9675 ac_lo=`expr $ac_mid + 1`
9676 if test $ac_lo -le $ac_mid; then
9677 ac_lo= ac_hi=
9678 break
9680 ac_mid=`expr 2 '*' $ac_mid + 1`
9683 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9684 done
9685 else
9686 echo "$as_me: failed program was:" >&5
9687 sed 's/^/| /' conftest.$ac_ext >&5
9689 cat >conftest.$ac_ext <<_ACEOF
9690 /* confdefs.h. */
9691 _ACEOF
9692 cat confdefs.h >>conftest.$ac_ext
9693 cat >>conftest.$ac_ext <<_ACEOF
9694 /* end confdefs.h. */
9695 $ac_includes_default
9696 typedef double ac__type_sizeof_;
9698 main ()
9700 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
9701 test_array [0] = 0
9704 return 0;
9706 _ACEOF
9707 rm -f conftest.$ac_objext
9708 if { (ac_try="$ac_compile"
9709 case "(($ac_try" in
9710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9711 *) ac_try_echo=$ac_try;;
9712 esac
9713 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9714 (eval "$ac_compile") 2>conftest.er1
9715 ac_status=$?
9716 grep -v '^ *+' conftest.er1 >conftest.err
9717 rm -f conftest.er1
9718 cat conftest.err >&5
9719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9720 (exit $ac_status); } && {
9721 test -z "$ac_c_werror_flag" ||
9722 test ! -s conftest.err
9723 } && test -s conftest.$ac_objext; then
9724 ac_hi=-1 ac_mid=-1
9725 while :; do
9726 cat >conftest.$ac_ext <<_ACEOF
9727 /* confdefs.h. */
9728 _ACEOF
9729 cat confdefs.h >>conftest.$ac_ext
9730 cat >>conftest.$ac_ext <<_ACEOF
9731 /* end confdefs.h. */
9732 $ac_includes_default
9733 typedef double ac__type_sizeof_;
9735 main ()
9737 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
9738 test_array [0] = 0
9741 return 0;
9743 _ACEOF
9744 rm -f conftest.$ac_objext
9745 if { (ac_try="$ac_compile"
9746 case "(($ac_try" in
9747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9748 *) ac_try_echo=$ac_try;;
9749 esac
9750 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9751 (eval "$ac_compile") 2>conftest.er1
9752 ac_status=$?
9753 grep -v '^ *+' conftest.er1 >conftest.err
9754 rm -f conftest.er1
9755 cat conftest.err >&5
9756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9757 (exit $ac_status); } && {
9758 test -z "$ac_c_werror_flag" ||
9759 test ! -s conftest.err
9760 } && test -s conftest.$ac_objext; then
9761 ac_lo=$ac_mid; break
9762 else
9763 echo "$as_me: failed program was:" >&5
9764 sed 's/^/| /' conftest.$ac_ext >&5
9766 ac_hi=`expr '(' $ac_mid ')' - 1`
9767 if test $ac_mid -le $ac_hi; then
9768 ac_lo= ac_hi=
9769 break
9771 ac_mid=`expr 2 '*' $ac_mid`
9774 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9775 done
9776 else
9777 echo "$as_me: failed program was:" >&5
9778 sed 's/^/| /' conftest.$ac_ext >&5
9780 ac_lo= ac_hi=
9783 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9786 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9787 # Binary search between lo and hi bounds.
9788 while test "x$ac_lo" != "x$ac_hi"; do
9789 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9790 cat >conftest.$ac_ext <<_ACEOF
9791 /* confdefs.h. */
9792 _ACEOF
9793 cat confdefs.h >>conftest.$ac_ext
9794 cat >>conftest.$ac_ext <<_ACEOF
9795 /* end confdefs.h. */
9796 $ac_includes_default
9797 typedef double ac__type_sizeof_;
9799 main ()
9801 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
9802 test_array [0] = 0
9805 return 0;
9807 _ACEOF
9808 rm -f conftest.$ac_objext
9809 if { (ac_try="$ac_compile"
9810 case "(($ac_try" in
9811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9812 *) ac_try_echo=$ac_try;;
9813 esac
9814 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9815 (eval "$ac_compile") 2>conftest.er1
9816 ac_status=$?
9817 grep -v '^ *+' conftest.er1 >conftest.err
9818 rm -f conftest.er1
9819 cat conftest.err >&5
9820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9821 (exit $ac_status); } && {
9822 test -z "$ac_c_werror_flag" ||
9823 test ! -s conftest.err
9824 } && test -s conftest.$ac_objext; then
9825 ac_hi=$ac_mid
9826 else
9827 echo "$as_me: failed program was:" >&5
9828 sed 's/^/| /' conftest.$ac_ext >&5
9830 ac_lo=`expr '(' $ac_mid ')' + 1`
9833 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9834 done
9835 case $ac_lo in
9836 ?*) ac_cv_sizeof_double=$ac_lo;;
9837 '') if test "$ac_cv_type_double" = yes; then
9838 { { echo "$as_me:$LINENO: error: cannot compute sizeof (double)
9839 See \`config.log' for more details." >&5
9840 echo "$as_me: error: cannot compute sizeof (double)
9841 See \`config.log' for more details." >&2;}
9842 { (exit 77); exit 77; }; }
9843 else
9844 ac_cv_sizeof_double=0
9845 fi ;;
9846 esac
9847 else
9848 cat >conftest.$ac_ext <<_ACEOF
9849 /* confdefs.h. */
9850 _ACEOF
9851 cat confdefs.h >>conftest.$ac_ext
9852 cat >>conftest.$ac_ext <<_ACEOF
9853 /* end confdefs.h. */
9854 $ac_includes_default
9855 typedef double ac__type_sizeof_;
9856 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
9857 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
9858 #include <stdio.h>
9859 #include <stdlib.h>
9861 main ()
9864 FILE *f = fopen ("conftest.val", "w");
9865 if (! f)
9866 return 1;
9867 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
9869 long int i = longval ();
9870 if (i != ((long int) (sizeof (ac__type_sizeof_))))
9871 return 1;
9872 fprintf (f, "%ld\n", i);
9874 else
9876 unsigned long int i = ulongval ();
9877 if (i != ((long int) (sizeof (ac__type_sizeof_))))
9878 return 1;
9879 fprintf (f, "%lu\n", i);
9881 return ferror (f) || fclose (f) != 0;
9884 return 0;
9886 _ACEOF
9887 rm -f conftest$ac_exeext
9888 if { (ac_try="$ac_link"
9889 case "(($ac_try" in
9890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9891 *) ac_try_echo=$ac_try;;
9892 esac
9893 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9894 (eval "$ac_link") 2>&5
9895 ac_status=$?
9896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9897 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9898 { (case "(($ac_try" in
9899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9900 *) ac_try_echo=$ac_try;;
9901 esac
9902 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9903 (eval "$ac_try") 2>&5
9904 ac_status=$?
9905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9906 (exit $ac_status); }; }; then
9907 ac_cv_sizeof_double=`cat conftest.val`
9908 else
9909 echo "$as_me: program exited with status $ac_status" >&5
9910 echo "$as_me: failed program was:" >&5
9911 sed 's/^/| /' conftest.$ac_ext >&5
9913 ( exit $ac_status )
9914 if test "$ac_cv_type_double" = yes; then
9915 { { echo "$as_me:$LINENO: error: cannot compute sizeof (double)
9916 See \`config.log' for more details." >&5
9917 echo "$as_me: error: cannot compute sizeof (double)
9918 See \`config.log' for more details." >&2;}
9919 { (exit 77); exit 77; }; }
9920 else
9921 ac_cv_sizeof_double=0
9924 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9926 rm -f conftest.val
9928 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_double" >&5
9929 echo "${ECHO_T}$ac_cv_sizeof_double" >&6; }
9933 cat >>confdefs.h <<_ACEOF
9934 #define SIZEOF_DOUBLE $ac_cv_sizeof_double
9935 _ACEOF
9938 { echo "$as_me:$LINENO: checking for fpos_t" >&5
9939 echo $ECHO_N "checking for fpos_t... $ECHO_C" >&6; }
9940 if test "${ac_cv_type_fpos_t+set}" = set; then
9941 echo $ECHO_N "(cached) $ECHO_C" >&6
9942 else
9943 cat >conftest.$ac_ext <<_ACEOF
9944 /* confdefs.h. */
9945 _ACEOF
9946 cat confdefs.h >>conftest.$ac_ext
9947 cat >>conftest.$ac_ext <<_ACEOF
9948 /* end confdefs.h. */
9949 $ac_includes_default
9950 typedef fpos_t ac__type_new_;
9952 main ()
9954 if ((ac__type_new_ *) 0)
9955 return 0;
9956 if (sizeof (ac__type_new_))
9957 return 0;
9959 return 0;
9961 _ACEOF
9962 rm -f conftest.$ac_objext
9963 if { (ac_try="$ac_compile"
9964 case "(($ac_try" in
9965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9966 *) ac_try_echo=$ac_try;;
9967 esac
9968 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9969 (eval "$ac_compile") 2>conftest.er1
9970 ac_status=$?
9971 grep -v '^ *+' conftest.er1 >conftest.err
9972 rm -f conftest.er1
9973 cat conftest.err >&5
9974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9975 (exit $ac_status); } && {
9976 test -z "$ac_c_werror_flag" ||
9977 test ! -s conftest.err
9978 } && test -s conftest.$ac_objext; then
9979 ac_cv_type_fpos_t=yes
9980 else
9981 echo "$as_me: failed program was:" >&5
9982 sed 's/^/| /' conftest.$ac_ext >&5
9984 ac_cv_type_fpos_t=no
9987 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9989 { echo "$as_me:$LINENO: result: $ac_cv_type_fpos_t" >&5
9990 echo "${ECHO_T}$ac_cv_type_fpos_t" >&6; }
9992 # The cast to long int works around a bug in the HP C Compiler
9993 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9994 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9995 # This bug is HP SR number 8606223364.
9996 { echo "$as_me:$LINENO: checking size of fpos_t" >&5
9997 echo $ECHO_N "checking size of fpos_t... $ECHO_C" >&6; }
9998 if test "${ac_cv_sizeof_fpos_t+set}" = set; then
9999 echo $ECHO_N "(cached) $ECHO_C" >&6
10000 else
10001 if test "$cross_compiling" = yes; then
10002 # Depending upon the size, compute the lo and hi bounds.
10003 cat >conftest.$ac_ext <<_ACEOF
10004 /* confdefs.h. */
10005 _ACEOF
10006 cat confdefs.h >>conftest.$ac_ext
10007 cat >>conftest.$ac_ext <<_ACEOF
10008 /* end confdefs.h. */
10009 $ac_includes_default
10010 typedef fpos_t ac__type_sizeof_;
10012 main ()
10014 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
10015 test_array [0] = 0
10018 return 0;
10020 _ACEOF
10021 rm -f conftest.$ac_objext
10022 if { (ac_try="$ac_compile"
10023 case "(($ac_try" in
10024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10025 *) ac_try_echo=$ac_try;;
10026 esac
10027 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10028 (eval "$ac_compile") 2>conftest.er1
10029 ac_status=$?
10030 grep -v '^ *+' conftest.er1 >conftest.err
10031 rm -f conftest.er1
10032 cat conftest.err >&5
10033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10034 (exit $ac_status); } && {
10035 test -z "$ac_c_werror_flag" ||
10036 test ! -s conftest.err
10037 } && test -s conftest.$ac_objext; then
10038 ac_lo=0 ac_mid=0
10039 while :; do
10040 cat >conftest.$ac_ext <<_ACEOF
10041 /* confdefs.h. */
10042 _ACEOF
10043 cat confdefs.h >>conftest.$ac_ext
10044 cat >>conftest.$ac_ext <<_ACEOF
10045 /* end confdefs.h. */
10046 $ac_includes_default
10047 typedef fpos_t ac__type_sizeof_;
10049 main ()
10051 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
10052 test_array [0] = 0
10055 return 0;
10057 _ACEOF
10058 rm -f conftest.$ac_objext
10059 if { (ac_try="$ac_compile"
10060 case "(($ac_try" in
10061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10062 *) ac_try_echo=$ac_try;;
10063 esac
10064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10065 (eval "$ac_compile") 2>conftest.er1
10066 ac_status=$?
10067 grep -v '^ *+' conftest.er1 >conftest.err
10068 rm -f conftest.er1
10069 cat conftest.err >&5
10070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10071 (exit $ac_status); } && {
10072 test -z "$ac_c_werror_flag" ||
10073 test ! -s conftest.err
10074 } && test -s conftest.$ac_objext; then
10075 ac_hi=$ac_mid; break
10076 else
10077 echo "$as_me: failed program was:" >&5
10078 sed 's/^/| /' conftest.$ac_ext >&5
10080 ac_lo=`expr $ac_mid + 1`
10081 if test $ac_lo -le $ac_mid; then
10082 ac_lo= ac_hi=
10083 break
10085 ac_mid=`expr 2 '*' $ac_mid + 1`
10088 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10089 done
10090 else
10091 echo "$as_me: failed program was:" >&5
10092 sed 's/^/| /' conftest.$ac_ext >&5
10094 cat >conftest.$ac_ext <<_ACEOF
10095 /* confdefs.h. */
10096 _ACEOF
10097 cat confdefs.h >>conftest.$ac_ext
10098 cat >>conftest.$ac_ext <<_ACEOF
10099 /* end confdefs.h. */
10100 $ac_includes_default
10101 typedef fpos_t ac__type_sizeof_;
10103 main ()
10105 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
10106 test_array [0] = 0
10109 return 0;
10111 _ACEOF
10112 rm -f conftest.$ac_objext
10113 if { (ac_try="$ac_compile"
10114 case "(($ac_try" in
10115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10116 *) ac_try_echo=$ac_try;;
10117 esac
10118 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10119 (eval "$ac_compile") 2>conftest.er1
10120 ac_status=$?
10121 grep -v '^ *+' conftest.er1 >conftest.err
10122 rm -f conftest.er1
10123 cat conftest.err >&5
10124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10125 (exit $ac_status); } && {
10126 test -z "$ac_c_werror_flag" ||
10127 test ! -s conftest.err
10128 } && test -s conftest.$ac_objext; then
10129 ac_hi=-1 ac_mid=-1
10130 while :; do
10131 cat >conftest.$ac_ext <<_ACEOF
10132 /* confdefs.h. */
10133 _ACEOF
10134 cat confdefs.h >>conftest.$ac_ext
10135 cat >>conftest.$ac_ext <<_ACEOF
10136 /* end confdefs.h. */
10137 $ac_includes_default
10138 typedef fpos_t ac__type_sizeof_;
10140 main ()
10142 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
10143 test_array [0] = 0
10146 return 0;
10148 _ACEOF
10149 rm -f conftest.$ac_objext
10150 if { (ac_try="$ac_compile"
10151 case "(($ac_try" in
10152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10153 *) ac_try_echo=$ac_try;;
10154 esac
10155 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10156 (eval "$ac_compile") 2>conftest.er1
10157 ac_status=$?
10158 grep -v '^ *+' conftest.er1 >conftest.err
10159 rm -f conftest.er1
10160 cat conftest.err >&5
10161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10162 (exit $ac_status); } && {
10163 test -z "$ac_c_werror_flag" ||
10164 test ! -s conftest.err
10165 } && test -s conftest.$ac_objext; then
10166 ac_lo=$ac_mid; break
10167 else
10168 echo "$as_me: failed program was:" >&5
10169 sed 's/^/| /' conftest.$ac_ext >&5
10171 ac_hi=`expr '(' $ac_mid ')' - 1`
10172 if test $ac_mid -le $ac_hi; then
10173 ac_lo= ac_hi=
10174 break
10176 ac_mid=`expr 2 '*' $ac_mid`
10179 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10180 done
10181 else
10182 echo "$as_me: failed program was:" >&5
10183 sed 's/^/| /' conftest.$ac_ext >&5
10185 ac_lo= ac_hi=
10188 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10191 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10192 # Binary search between lo and hi bounds.
10193 while test "x$ac_lo" != "x$ac_hi"; do
10194 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10195 cat >conftest.$ac_ext <<_ACEOF
10196 /* confdefs.h. */
10197 _ACEOF
10198 cat confdefs.h >>conftest.$ac_ext
10199 cat >>conftest.$ac_ext <<_ACEOF
10200 /* end confdefs.h. */
10201 $ac_includes_default
10202 typedef fpos_t ac__type_sizeof_;
10204 main ()
10206 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
10207 test_array [0] = 0
10210 return 0;
10212 _ACEOF
10213 rm -f conftest.$ac_objext
10214 if { (ac_try="$ac_compile"
10215 case "(($ac_try" in
10216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10217 *) ac_try_echo=$ac_try;;
10218 esac
10219 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10220 (eval "$ac_compile") 2>conftest.er1
10221 ac_status=$?
10222 grep -v '^ *+' conftest.er1 >conftest.err
10223 rm -f conftest.er1
10224 cat conftest.err >&5
10225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10226 (exit $ac_status); } && {
10227 test -z "$ac_c_werror_flag" ||
10228 test ! -s conftest.err
10229 } && test -s conftest.$ac_objext; then
10230 ac_hi=$ac_mid
10231 else
10232 echo "$as_me: failed program was:" >&5
10233 sed 's/^/| /' conftest.$ac_ext >&5
10235 ac_lo=`expr '(' $ac_mid ')' + 1`
10238 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10239 done
10240 case $ac_lo in
10241 ?*) ac_cv_sizeof_fpos_t=$ac_lo;;
10242 '') if test "$ac_cv_type_fpos_t" = yes; then
10243 { { echo "$as_me:$LINENO: error: cannot compute sizeof (fpos_t)
10244 See \`config.log' for more details." >&5
10245 echo "$as_me: error: cannot compute sizeof (fpos_t)
10246 See \`config.log' for more details." >&2;}
10247 { (exit 77); exit 77; }; }
10248 else
10249 ac_cv_sizeof_fpos_t=0
10250 fi ;;
10251 esac
10252 else
10253 cat >conftest.$ac_ext <<_ACEOF
10254 /* confdefs.h. */
10255 _ACEOF
10256 cat confdefs.h >>conftest.$ac_ext
10257 cat >>conftest.$ac_ext <<_ACEOF
10258 /* end confdefs.h. */
10259 $ac_includes_default
10260 typedef fpos_t ac__type_sizeof_;
10261 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
10262 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
10263 #include <stdio.h>
10264 #include <stdlib.h>
10266 main ()
10269 FILE *f = fopen ("conftest.val", "w");
10270 if (! f)
10271 return 1;
10272 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
10274 long int i = longval ();
10275 if (i != ((long int) (sizeof (ac__type_sizeof_))))
10276 return 1;
10277 fprintf (f, "%ld\n", i);
10279 else
10281 unsigned long int i = ulongval ();
10282 if (i != ((long int) (sizeof (ac__type_sizeof_))))
10283 return 1;
10284 fprintf (f, "%lu\n", i);
10286 return ferror (f) || fclose (f) != 0;
10289 return 0;
10291 _ACEOF
10292 rm -f conftest$ac_exeext
10293 if { (ac_try="$ac_link"
10294 case "(($ac_try" in
10295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10296 *) ac_try_echo=$ac_try;;
10297 esac
10298 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10299 (eval "$ac_link") 2>&5
10300 ac_status=$?
10301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10302 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10303 { (case "(($ac_try" in
10304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10305 *) ac_try_echo=$ac_try;;
10306 esac
10307 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10308 (eval "$ac_try") 2>&5
10309 ac_status=$?
10310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10311 (exit $ac_status); }; }; then
10312 ac_cv_sizeof_fpos_t=`cat conftest.val`
10313 else
10314 echo "$as_me: program exited with status $ac_status" >&5
10315 echo "$as_me: failed program was:" >&5
10316 sed 's/^/| /' conftest.$ac_ext >&5
10318 ( exit $ac_status )
10319 if test "$ac_cv_type_fpos_t" = yes; then
10320 { { echo "$as_me:$LINENO: error: cannot compute sizeof (fpos_t)
10321 See \`config.log' for more details." >&5
10322 echo "$as_me: error: cannot compute sizeof (fpos_t)
10323 See \`config.log' for more details." >&2;}
10324 { (exit 77); exit 77; }; }
10325 else
10326 ac_cv_sizeof_fpos_t=0
10329 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10331 rm -f conftest.val
10333 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_fpos_t" >&5
10334 echo "${ECHO_T}$ac_cv_sizeof_fpos_t" >&6; }
10338 cat >>confdefs.h <<_ACEOF
10339 #define SIZEOF_FPOS_T $ac_cv_sizeof_fpos_t
10340 _ACEOF
10343 { echo "$as_me:$LINENO: checking for size_t" >&5
10344 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
10345 if test "${ac_cv_type_size_t+set}" = set; then
10346 echo $ECHO_N "(cached) $ECHO_C" >&6
10347 else
10348 cat >conftest.$ac_ext <<_ACEOF
10349 /* confdefs.h. */
10350 _ACEOF
10351 cat confdefs.h >>conftest.$ac_ext
10352 cat >>conftest.$ac_ext <<_ACEOF
10353 /* end confdefs.h. */
10354 $ac_includes_default
10355 typedef size_t ac__type_new_;
10357 main ()
10359 if ((ac__type_new_ *) 0)
10360 return 0;
10361 if (sizeof (ac__type_new_))
10362 return 0;
10364 return 0;
10366 _ACEOF
10367 rm -f conftest.$ac_objext
10368 if { (ac_try="$ac_compile"
10369 case "(($ac_try" in
10370 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10371 *) ac_try_echo=$ac_try;;
10372 esac
10373 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10374 (eval "$ac_compile") 2>conftest.er1
10375 ac_status=$?
10376 grep -v '^ *+' conftest.er1 >conftest.err
10377 rm -f conftest.er1
10378 cat conftest.err >&5
10379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10380 (exit $ac_status); } && {
10381 test -z "$ac_c_werror_flag" ||
10382 test ! -s conftest.err
10383 } && test -s conftest.$ac_objext; then
10384 ac_cv_type_size_t=yes
10385 else
10386 echo "$as_me: failed program was:" >&5
10387 sed 's/^/| /' conftest.$ac_ext >&5
10389 ac_cv_type_size_t=no
10392 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10394 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
10395 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
10397 # The cast to long int works around a bug in the HP C Compiler
10398 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10399 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10400 # This bug is HP SR number 8606223364.
10401 { echo "$as_me:$LINENO: checking size of size_t" >&5
10402 echo $ECHO_N "checking size of size_t... $ECHO_C" >&6; }
10403 if test "${ac_cv_sizeof_size_t+set}" = set; then
10404 echo $ECHO_N "(cached) $ECHO_C" >&6
10405 else
10406 if test "$cross_compiling" = yes; then
10407 # Depending upon the size, compute the lo and hi bounds.
10408 cat >conftest.$ac_ext <<_ACEOF
10409 /* confdefs.h. */
10410 _ACEOF
10411 cat confdefs.h >>conftest.$ac_ext
10412 cat >>conftest.$ac_ext <<_ACEOF
10413 /* end confdefs.h. */
10414 $ac_includes_default
10415 typedef size_t ac__type_sizeof_;
10417 main ()
10419 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
10420 test_array [0] = 0
10423 return 0;
10425 _ACEOF
10426 rm -f conftest.$ac_objext
10427 if { (ac_try="$ac_compile"
10428 case "(($ac_try" in
10429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10430 *) ac_try_echo=$ac_try;;
10431 esac
10432 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10433 (eval "$ac_compile") 2>conftest.er1
10434 ac_status=$?
10435 grep -v '^ *+' conftest.er1 >conftest.err
10436 rm -f conftest.er1
10437 cat conftest.err >&5
10438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10439 (exit $ac_status); } && {
10440 test -z "$ac_c_werror_flag" ||
10441 test ! -s conftest.err
10442 } && test -s conftest.$ac_objext; then
10443 ac_lo=0 ac_mid=0
10444 while :; do
10445 cat >conftest.$ac_ext <<_ACEOF
10446 /* confdefs.h. */
10447 _ACEOF
10448 cat confdefs.h >>conftest.$ac_ext
10449 cat >>conftest.$ac_ext <<_ACEOF
10450 /* end confdefs.h. */
10451 $ac_includes_default
10452 typedef size_t ac__type_sizeof_;
10454 main ()
10456 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
10457 test_array [0] = 0
10460 return 0;
10462 _ACEOF
10463 rm -f conftest.$ac_objext
10464 if { (ac_try="$ac_compile"
10465 case "(($ac_try" in
10466 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10467 *) ac_try_echo=$ac_try;;
10468 esac
10469 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10470 (eval "$ac_compile") 2>conftest.er1
10471 ac_status=$?
10472 grep -v '^ *+' conftest.er1 >conftest.err
10473 rm -f conftest.er1
10474 cat conftest.err >&5
10475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10476 (exit $ac_status); } && {
10477 test -z "$ac_c_werror_flag" ||
10478 test ! -s conftest.err
10479 } && test -s conftest.$ac_objext; then
10480 ac_hi=$ac_mid; break
10481 else
10482 echo "$as_me: failed program was:" >&5
10483 sed 's/^/| /' conftest.$ac_ext >&5
10485 ac_lo=`expr $ac_mid + 1`
10486 if test $ac_lo -le $ac_mid; then
10487 ac_lo= ac_hi=
10488 break
10490 ac_mid=`expr 2 '*' $ac_mid + 1`
10493 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10494 done
10495 else
10496 echo "$as_me: failed program was:" >&5
10497 sed 's/^/| /' conftest.$ac_ext >&5
10499 cat >conftest.$ac_ext <<_ACEOF
10500 /* confdefs.h. */
10501 _ACEOF
10502 cat confdefs.h >>conftest.$ac_ext
10503 cat >>conftest.$ac_ext <<_ACEOF
10504 /* end confdefs.h. */
10505 $ac_includes_default
10506 typedef size_t ac__type_sizeof_;
10508 main ()
10510 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
10511 test_array [0] = 0
10514 return 0;
10516 _ACEOF
10517 rm -f conftest.$ac_objext
10518 if { (ac_try="$ac_compile"
10519 case "(($ac_try" in
10520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10521 *) ac_try_echo=$ac_try;;
10522 esac
10523 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10524 (eval "$ac_compile") 2>conftest.er1
10525 ac_status=$?
10526 grep -v '^ *+' conftest.er1 >conftest.err
10527 rm -f conftest.er1
10528 cat conftest.err >&5
10529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10530 (exit $ac_status); } && {
10531 test -z "$ac_c_werror_flag" ||
10532 test ! -s conftest.err
10533 } && test -s conftest.$ac_objext; then
10534 ac_hi=-1 ac_mid=-1
10535 while :; do
10536 cat >conftest.$ac_ext <<_ACEOF
10537 /* confdefs.h. */
10538 _ACEOF
10539 cat confdefs.h >>conftest.$ac_ext
10540 cat >>conftest.$ac_ext <<_ACEOF
10541 /* end confdefs.h. */
10542 $ac_includes_default
10543 typedef size_t ac__type_sizeof_;
10545 main ()
10547 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
10548 test_array [0] = 0
10551 return 0;
10553 _ACEOF
10554 rm -f conftest.$ac_objext
10555 if { (ac_try="$ac_compile"
10556 case "(($ac_try" in
10557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10558 *) ac_try_echo=$ac_try;;
10559 esac
10560 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10561 (eval "$ac_compile") 2>conftest.er1
10562 ac_status=$?
10563 grep -v '^ *+' conftest.er1 >conftest.err
10564 rm -f conftest.er1
10565 cat conftest.err >&5
10566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10567 (exit $ac_status); } && {
10568 test -z "$ac_c_werror_flag" ||
10569 test ! -s conftest.err
10570 } && test -s conftest.$ac_objext; then
10571 ac_lo=$ac_mid; break
10572 else
10573 echo "$as_me: failed program was:" >&5
10574 sed 's/^/| /' conftest.$ac_ext >&5
10576 ac_hi=`expr '(' $ac_mid ')' - 1`
10577 if test $ac_mid -le $ac_hi; then
10578 ac_lo= ac_hi=
10579 break
10581 ac_mid=`expr 2 '*' $ac_mid`
10584 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10585 done
10586 else
10587 echo "$as_me: failed program was:" >&5
10588 sed 's/^/| /' conftest.$ac_ext >&5
10590 ac_lo= ac_hi=
10593 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10596 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10597 # Binary search between lo and hi bounds.
10598 while test "x$ac_lo" != "x$ac_hi"; do
10599 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10600 cat >conftest.$ac_ext <<_ACEOF
10601 /* confdefs.h. */
10602 _ACEOF
10603 cat confdefs.h >>conftest.$ac_ext
10604 cat >>conftest.$ac_ext <<_ACEOF
10605 /* end confdefs.h. */
10606 $ac_includes_default
10607 typedef size_t ac__type_sizeof_;
10609 main ()
10611 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
10612 test_array [0] = 0
10615 return 0;
10617 _ACEOF
10618 rm -f conftest.$ac_objext
10619 if { (ac_try="$ac_compile"
10620 case "(($ac_try" in
10621 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10622 *) ac_try_echo=$ac_try;;
10623 esac
10624 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10625 (eval "$ac_compile") 2>conftest.er1
10626 ac_status=$?
10627 grep -v '^ *+' conftest.er1 >conftest.err
10628 rm -f conftest.er1
10629 cat conftest.err >&5
10630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10631 (exit $ac_status); } && {
10632 test -z "$ac_c_werror_flag" ||
10633 test ! -s conftest.err
10634 } && test -s conftest.$ac_objext; then
10635 ac_hi=$ac_mid
10636 else
10637 echo "$as_me: failed program was:" >&5
10638 sed 's/^/| /' conftest.$ac_ext >&5
10640 ac_lo=`expr '(' $ac_mid ')' + 1`
10643 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10644 done
10645 case $ac_lo in
10646 ?*) ac_cv_sizeof_size_t=$ac_lo;;
10647 '') if test "$ac_cv_type_size_t" = yes; then
10648 { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
10649 See \`config.log' for more details." >&5
10650 echo "$as_me: error: cannot compute sizeof (size_t)
10651 See \`config.log' for more details." >&2;}
10652 { (exit 77); exit 77; }; }
10653 else
10654 ac_cv_sizeof_size_t=0
10655 fi ;;
10656 esac
10657 else
10658 cat >conftest.$ac_ext <<_ACEOF
10659 /* confdefs.h. */
10660 _ACEOF
10661 cat confdefs.h >>conftest.$ac_ext
10662 cat >>conftest.$ac_ext <<_ACEOF
10663 /* end confdefs.h. */
10664 $ac_includes_default
10665 typedef size_t ac__type_sizeof_;
10666 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
10667 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
10668 #include <stdio.h>
10669 #include <stdlib.h>
10671 main ()
10674 FILE *f = fopen ("conftest.val", "w");
10675 if (! f)
10676 return 1;
10677 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
10679 long int i = longval ();
10680 if (i != ((long int) (sizeof (ac__type_sizeof_))))
10681 return 1;
10682 fprintf (f, "%ld\n", i);
10684 else
10686 unsigned long int i = ulongval ();
10687 if (i != ((long int) (sizeof (ac__type_sizeof_))))
10688 return 1;
10689 fprintf (f, "%lu\n", i);
10691 return ferror (f) || fclose (f) != 0;
10694 return 0;
10696 _ACEOF
10697 rm -f conftest$ac_exeext
10698 if { (ac_try="$ac_link"
10699 case "(($ac_try" in
10700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10701 *) ac_try_echo=$ac_try;;
10702 esac
10703 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10704 (eval "$ac_link") 2>&5
10705 ac_status=$?
10706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10707 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10708 { (case "(($ac_try" in
10709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10710 *) ac_try_echo=$ac_try;;
10711 esac
10712 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10713 (eval "$ac_try") 2>&5
10714 ac_status=$?
10715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10716 (exit $ac_status); }; }; then
10717 ac_cv_sizeof_size_t=`cat conftest.val`
10718 else
10719 echo "$as_me: program exited with status $ac_status" >&5
10720 echo "$as_me: failed program was:" >&5
10721 sed 's/^/| /' conftest.$ac_ext >&5
10723 ( exit $ac_status )
10724 if test "$ac_cv_type_size_t" = yes; then
10725 { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
10726 See \`config.log' for more details." >&5
10727 echo "$as_me: error: cannot compute sizeof (size_t)
10728 See \`config.log' for more details." >&2;}
10729 { (exit 77); exit 77; }; }
10730 else
10731 ac_cv_sizeof_size_t=0
10734 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10736 rm -f conftest.val
10738 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
10739 echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6; }
10743 cat >>confdefs.h <<_ACEOF
10744 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
10745 _ACEOF
10748 { echo "$as_me:$LINENO: checking for pid_t" >&5
10749 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
10750 if test "${ac_cv_type_pid_t+set}" = set; then
10751 echo $ECHO_N "(cached) $ECHO_C" >&6
10752 else
10753 cat >conftest.$ac_ext <<_ACEOF
10754 /* confdefs.h. */
10755 _ACEOF
10756 cat confdefs.h >>conftest.$ac_ext
10757 cat >>conftest.$ac_ext <<_ACEOF
10758 /* end confdefs.h. */
10759 $ac_includes_default
10760 typedef pid_t ac__type_new_;
10762 main ()
10764 if ((ac__type_new_ *) 0)
10765 return 0;
10766 if (sizeof (ac__type_new_))
10767 return 0;
10769 return 0;
10771 _ACEOF
10772 rm -f conftest.$ac_objext
10773 if { (ac_try="$ac_compile"
10774 case "(($ac_try" in
10775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10776 *) ac_try_echo=$ac_try;;
10777 esac
10778 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10779 (eval "$ac_compile") 2>conftest.er1
10780 ac_status=$?
10781 grep -v '^ *+' conftest.er1 >conftest.err
10782 rm -f conftest.er1
10783 cat conftest.err >&5
10784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10785 (exit $ac_status); } && {
10786 test -z "$ac_c_werror_flag" ||
10787 test ! -s conftest.err
10788 } && test -s conftest.$ac_objext; then
10789 ac_cv_type_pid_t=yes
10790 else
10791 echo "$as_me: failed program was:" >&5
10792 sed 's/^/| /' conftest.$ac_ext >&5
10794 ac_cv_type_pid_t=no
10797 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10799 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
10800 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
10802 # The cast to long int works around a bug in the HP C Compiler
10803 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10804 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10805 # This bug is HP SR number 8606223364.
10806 { echo "$as_me:$LINENO: checking size of pid_t" >&5
10807 echo $ECHO_N "checking size of pid_t... $ECHO_C" >&6; }
10808 if test "${ac_cv_sizeof_pid_t+set}" = set; then
10809 echo $ECHO_N "(cached) $ECHO_C" >&6
10810 else
10811 if test "$cross_compiling" = yes; then
10812 # Depending upon the size, compute the lo and hi bounds.
10813 cat >conftest.$ac_ext <<_ACEOF
10814 /* confdefs.h. */
10815 _ACEOF
10816 cat confdefs.h >>conftest.$ac_ext
10817 cat >>conftest.$ac_ext <<_ACEOF
10818 /* end confdefs.h. */
10819 $ac_includes_default
10820 typedef pid_t ac__type_sizeof_;
10822 main ()
10824 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
10825 test_array [0] = 0
10828 return 0;
10830 _ACEOF
10831 rm -f conftest.$ac_objext
10832 if { (ac_try="$ac_compile"
10833 case "(($ac_try" in
10834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10835 *) ac_try_echo=$ac_try;;
10836 esac
10837 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10838 (eval "$ac_compile") 2>conftest.er1
10839 ac_status=$?
10840 grep -v '^ *+' conftest.er1 >conftest.err
10841 rm -f conftest.er1
10842 cat conftest.err >&5
10843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10844 (exit $ac_status); } && {
10845 test -z "$ac_c_werror_flag" ||
10846 test ! -s conftest.err
10847 } && test -s conftest.$ac_objext; then
10848 ac_lo=0 ac_mid=0
10849 while :; do
10850 cat >conftest.$ac_ext <<_ACEOF
10851 /* confdefs.h. */
10852 _ACEOF
10853 cat confdefs.h >>conftest.$ac_ext
10854 cat >>conftest.$ac_ext <<_ACEOF
10855 /* end confdefs.h. */
10856 $ac_includes_default
10857 typedef pid_t ac__type_sizeof_;
10859 main ()
10861 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
10862 test_array [0] = 0
10865 return 0;
10867 _ACEOF
10868 rm -f conftest.$ac_objext
10869 if { (ac_try="$ac_compile"
10870 case "(($ac_try" in
10871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10872 *) ac_try_echo=$ac_try;;
10873 esac
10874 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10875 (eval "$ac_compile") 2>conftest.er1
10876 ac_status=$?
10877 grep -v '^ *+' conftest.er1 >conftest.err
10878 rm -f conftest.er1
10879 cat conftest.err >&5
10880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10881 (exit $ac_status); } && {
10882 test -z "$ac_c_werror_flag" ||
10883 test ! -s conftest.err
10884 } && test -s conftest.$ac_objext; then
10885 ac_hi=$ac_mid; break
10886 else
10887 echo "$as_me: failed program was:" >&5
10888 sed 's/^/| /' conftest.$ac_ext >&5
10890 ac_lo=`expr $ac_mid + 1`
10891 if test $ac_lo -le $ac_mid; then
10892 ac_lo= ac_hi=
10893 break
10895 ac_mid=`expr 2 '*' $ac_mid + 1`
10898 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10899 done
10900 else
10901 echo "$as_me: failed program was:" >&5
10902 sed 's/^/| /' conftest.$ac_ext >&5
10904 cat >conftest.$ac_ext <<_ACEOF
10905 /* confdefs.h. */
10906 _ACEOF
10907 cat confdefs.h >>conftest.$ac_ext
10908 cat >>conftest.$ac_ext <<_ACEOF
10909 /* end confdefs.h. */
10910 $ac_includes_default
10911 typedef pid_t ac__type_sizeof_;
10913 main ()
10915 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
10916 test_array [0] = 0
10919 return 0;
10921 _ACEOF
10922 rm -f conftest.$ac_objext
10923 if { (ac_try="$ac_compile"
10924 case "(($ac_try" in
10925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10926 *) ac_try_echo=$ac_try;;
10927 esac
10928 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10929 (eval "$ac_compile") 2>conftest.er1
10930 ac_status=$?
10931 grep -v '^ *+' conftest.er1 >conftest.err
10932 rm -f conftest.er1
10933 cat conftest.err >&5
10934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10935 (exit $ac_status); } && {
10936 test -z "$ac_c_werror_flag" ||
10937 test ! -s conftest.err
10938 } && test -s conftest.$ac_objext; then
10939 ac_hi=-1 ac_mid=-1
10940 while :; do
10941 cat >conftest.$ac_ext <<_ACEOF
10942 /* confdefs.h. */
10943 _ACEOF
10944 cat confdefs.h >>conftest.$ac_ext
10945 cat >>conftest.$ac_ext <<_ACEOF
10946 /* end confdefs.h. */
10947 $ac_includes_default
10948 typedef pid_t ac__type_sizeof_;
10950 main ()
10952 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
10953 test_array [0] = 0
10956 return 0;
10958 _ACEOF
10959 rm -f conftest.$ac_objext
10960 if { (ac_try="$ac_compile"
10961 case "(($ac_try" in
10962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10963 *) ac_try_echo=$ac_try;;
10964 esac
10965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10966 (eval "$ac_compile") 2>conftest.er1
10967 ac_status=$?
10968 grep -v '^ *+' conftest.er1 >conftest.err
10969 rm -f conftest.er1
10970 cat conftest.err >&5
10971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10972 (exit $ac_status); } && {
10973 test -z "$ac_c_werror_flag" ||
10974 test ! -s conftest.err
10975 } && test -s conftest.$ac_objext; then
10976 ac_lo=$ac_mid; break
10977 else
10978 echo "$as_me: failed program was:" >&5
10979 sed 's/^/| /' conftest.$ac_ext >&5
10981 ac_hi=`expr '(' $ac_mid ')' - 1`
10982 if test $ac_mid -le $ac_hi; then
10983 ac_lo= ac_hi=
10984 break
10986 ac_mid=`expr 2 '*' $ac_mid`
10989 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10990 done
10991 else
10992 echo "$as_me: failed program was:" >&5
10993 sed 's/^/| /' conftest.$ac_ext >&5
10995 ac_lo= ac_hi=
10998 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11001 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11002 # Binary search between lo and hi bounds.
11003 while test "x$ac_lo" != "x$ac_hi"; do
11004 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
11005 cat >conftest.$ac_ext <<_ACEOF
11006 /* confdefs.h. */
11007 _ACEOF
11008 cat confdefs.h >>conftest.$ac_ext
11009 cat >>conftest.$ac_ext <<_ACEOF
11010 /* end confdefs.h. */
11011 $ac_includes_default
11012 typedef pid_t ac__type_sizeof_;
11014 main ()
11016 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
11017 test_array [0] = 0
11020 return 0;
11022 _ACEOF
11023 rm -f conftest.$ac_objext
11024 if { (ac_try="$ac_compile"
11025 case "(($ac_try" in
11026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11027 *) ac_try_echo=$ac_try;;
11028 esac
11029 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11030 (eval "$ac_compile") 2>conftest.er1
11031 ac_status=$?
11032 grep -v '^ *+' conftest.er1 >conftest.err
11033 rm -f conftest.er1
11034 cat conftest.err >&5
11035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11036 (exit $ac_status); } && {
11037 test -z "$ac_c_werror_flag" ||
11038 test ! -s conftest.err
11039 } && test -s conftest.$ac_objext; then
11040 ac_hi=$ac_mid
11041 else
11042 echo "$as_me: failed program was:" >&5
11043 sed 's/^/| /' conftest.$ac_ext >&5
11045 ac_lo=`expr '(' $ac_mid ')' + 1`
11048 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11049 done
11050 case $ac_lo in
11051 ?*) ac_cv_sizeof_pid_t=$ac_lo;;
11052 '') if test "$ac_cv_type_pid_t" = yes; then
11053 { { echo "$as_me:$LINENO: error: cannot compute sizeof (pid_t)
11054 See \`config.log' for more details." >&5
11055 echo "$as_me: error: cannot compute sizeof (pid_t)
11056 See \`config.log' for more details." >&2;}
11057 { (exit 77); exit 77; }; }
11058 else
11059 ac_cv_sizeof_pid_t=0
11060 fi ;;
11061 esac
11062 else
11063 cat >conftest.$ac_ext <<_ACEOF
11064 /* confdefs.h. */
11065 _ACEOF
11066 cat confdefs.h >>conftest.$ac_ext
11067 cat >>conftest.$ac_ext <<_ACEOF
11068 /* end confdefs.h. */
11069 $ac_includes_default
11070 typedef pid_t ac__type_sizeof_;
11071 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
11072 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
11073 #include <stdio.h>
11074 #include <stdlib.h>
11076 main ()
11079 FILE *f = fopen ("conftest.val", "w");
11080 if (! f)
11081 return 1;
11082 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
11084 long int i = longval ();
11085 if (i != ((long int) (sizeof (ac__type_sizeof_))))
11086 return 1;
11087 fprintf (f, "%ld\n", i);
11089 else
11091 unsigned long int i = ulongval ();
11092 if (i != ((long int) (sizeof (ac__type_sizeof_))))
11093 return 1;
11094 fprintf (f, "%lu\n", i);
11096 return ferror (f) || fclose (f) != 0;
11099 return 0;
11101 _ACEOF
11102 rm -f conftest$ac_exeext
11103 if { (ac_try="$ac_link"
11104 case "(($ac_try" in
11105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11106 *) ac_try_echo=$ac_try;;
11107 esac
11108 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11109 (eval "$ac_link") 2>&5
11110 ac_status=$?
11111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11112 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11113 { (case "(($ac_try" in
11114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11115 *) ac_try_echo=$ac_try;;
11116 esac
11117 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11118 (eval "$ac_try") 2>&5
11119 ac_status=$?
11120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11121 (exit $ac_status); }; }; then
11122 ac_cv_sizeof_pid_t=`cat conftest.val`
11123 else
11124 echo "$as_me: program exited with status $ac_status" >&5
11125 echo "$as_me: failed program was:" >&5
11126 sed 's/^/| /' conftest.$ac_ext >&5
11128 ( exit $ac_status )
11129 if test "$ac_cv_type_pid_t" = yes; then
11130 { { echo "$as_me:$LINENO: error: cannot compute sizeof (pid_t)
11131 See \`config.log' for more details." >&5
11132 echo "$as_me: error: cannot compute sizeof (pid_t)
11133 See \`config.log' for more details." >&2;}
11134 { (exit 77); exit 77; }; }
11135 else
11136 ac_cv_sizeof_pid_t=0
11139 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11141 rm -f conftest.val
11143 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_pid_t" >&5
11144 echo "${ECHO_T}$ac_cv_sizeof_pid_t" >&6; }
11148 cat >>confdefs.h <<_ACEOF
11149 #define SIZEOF_PID_T $ac_cv_sizeof_pid_t
11150 _ACEOF
11154 { echo "$as_me:$LINENO: checking for long long support" >&5
11155 echo $ECHO_N "checking for long long support... $ECHO_C" >&6; }
11156 have_long_long=no
11157 cat >conftest.$ac_ext <<_ACEOF
11158 /* confdefs.h. */
11159 _ACEOF
11160 cat confdefs.h >>conftest.$ac_ext
11161 cat >>conftest.$ac_ext <<_ACEOF
11162 /* end confdefs.h. */
11165 main ()
11167 long long x; x = (long long)0;
11169 return 0;
11171 _ACEOF
11172 rm -f conftest.$ac_objext
11173 if { (ac_try="$ac_compile"
11174 case "(($ac_try" in
11175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11176 *) ac_try_echo=$ac_try;;
11177 esac
11178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11179 (eval "$ac_compile") 2>conftest.er1
11180 ac_status=$?
11181 grep -v '^ *+' conftest.er1 >conftest.err
11182 rm -f conftest.er1
11183 cat conftest.err >&5
11184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11185 (exit $ac_status); } && {
11186 test -z "$ac_c_werror_flag" ||
11187 test ! -s conftest.err
11188 } && test -s conftest.$ac_objext; then
11191 cat >>confdefs.h <<\_ACEOF
11192 #define HAVE_LONG_LONG 1
11193 _ACEOF
11195 have_long_long=yes
11197 else
11198 echo "$as_me: failed program was:" >&5
11199 sed 's/^/| /' conftest.$ac_ext >&5
11204 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11205 { echo "$as_me:$LINENO: result: $have_long_long" >&5
11206 echo "${ECHO_T}$have_long_long" >&6; }
11207 if test "$have_long_long" = yes ; then
11208 { echo "$as_me:$LINENO: checking for long long" >&5
11209 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
11210 if test "${ac_cv_type_long_long+set}" = set; then
11211 echo $ECHO_N "(cached) $ECHO_C" >&6
11212 else
11213 cat >conftest.$ac_ext <<_ACEOF
11214 /* confdefs.h. */
11215 _ACEOF
11216 cat confdefs.h >>conftest.$ac_ext
11217 cat >>conftest.$ac_ext <<_ACEOF
11218 /* end confdefs.h. */
11219 $ac_includes_default
11220 typedef long long ac__type_new_;
11222 main ()
11224 if ((ac__type_new_ *) 0)
11225 return 0;
11226 if (sizeof (ac__type_new_))
11227 return 0;
11229 return 0;
11231 _ACEOF
11232 rm -f conftest.$ac_objext
11233 if { (ac_try="$ac_compile"
11234 case "(($ac_try" in
11235 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11236 *) ac_try_echo=$ac_try;;
11237 esac
11238 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11239 (eval "$ac_compile") 2>conftest.er1
11240 ac_status=$?
11241 grep -v '^ *+' conftest.er1 >conftest.err
11242 rm -f conftest.er1
11243 cat conftest.err >&5
11244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11245 (exit $ac_status); } && {
11246 test -z "$ac_c_werror_flag" ||
11247 test ! -s conftest.err
11248 } && test -s conftest.$ac_objext; then
11249 ac_cv_type_long_long=yes
11250 else
11251 echo "$as_me: failed program was:" >&5
11252 sed 's/^/| /' conftest.$ac_ext >&5
11254 ac_cv_type_long_long=no
11257 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11259 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
11260 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
11262 # The cast to long int works around a bug in the HP C Compiler
11263 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11264 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11265 # This bug is HP SR number 8606223364.
11266 { echo "$as_me:$LINENO: checking size of long long" >&5
11267 echo $ECHO_N "checking size of long long... $ECHO_C" >&6; }
11268 if test "${ac_cv_sizeof_long_long+set}" = set; then
11269 echo $ECHO_N "(cached) $ECHO_C" >&6
11270 else
11271 if test "$cross_compiling" = yes; then
11272 # Depending upon the size, compute the lo and hi bounds.
11273 cat >conftest.$ac_ext <<_ACEOF
11274 /* confdefs.h. */
11275 _ACEOF
11276 cat confdefs.h >>conftest.$ac_ext
11277 cat >>conftest.$ac_ext <<_ACEOF
11278 /* end confdefs.h. */
11279 $ac_includes_default
11280 typedef long long ac__type_sizeof_;
11282 main ()
11284 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
11285 test_array [0] = 0
11288 return 0;
11290 _ACEOF
11291 rm -f conftest.$ac_objext
11292 if { (ac_try="$ac_compile"
11293 case "(($ac_try" in
11294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11295 *) ac_try_echo=$ac_try;;
11296 esac
11297 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11298 (eval "$ac_compile") 2>conftest.er1
11299 ac_status=$?
11300 grep -v '^ *+' conftest.er1 >conftest.err
11301 rm -f conftest.er1
11302 cat conftest.err >&5
11303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11304 (exit $ac_status); } && {
11305 test -z "$ac_c_werror_flag" ||
11306 test ! -s conftest.err
11307 } && test -s conftest.$ac_objext; then
11308 ac_lo=0 ac_mid=0
11309 while :; do
11310 cat >conftest.$ac_ext <<_ACEOF
11311 /* confdefs.h. */
11312 _ACEOF
11313 cat confdefs.h >>conftest.$ac_ext
11314 cat >>conftest.$ac_ext <<_ACEOF
11315 /* end confdefs.h. */
11316 $ac_includes_default
11317 typedef long long ac__type_sizeof_;
11319 main ()
11321 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
11322 test_array [0] = 0
11325 return 0;
11327 _ACEOF
11328 rm -f conftest.$ac_objext
11329 if { (ac_try="$ac_compile"
11330 case "(($ac_try" in
11331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11332 *) ac_try_echo=$ac_try;;
11333 esac
11334 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11335 (eval "$ac_compile") 2>conftest.er1
11336 ac_status=$?
11337 grep -v '^ *+' conftest.er1 >conftest.err
11338 rm -f conftest.er1
11339 cat conftest.err >&5
11340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11341 (exit $ac_status); } && {
11342 test -z "$ac_c_werror_flag" ||
11343 test ! -s conftest.err
11344 } && test -s conftest.$ac_objext; then
11345 ac_hi=$ac_mid; break
11346 else
11347 echo "$as_me: failed program was:" >&5
11348 sed 's/^/| /' conftest.$ac_ext >&5
11350 ac_lo=`expr $ac_mid + 1`
11351 if test $ac_lo -le $ac_mid; then
11352 ac_lo= ac_hi=
11353 break
11355 ac_mid=`expr 2 '*' $ac_mid + 1`
11358 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11359 done
11360 else
11361 echo "$as_me: failed program was:" >&5
11362 sed 's/^/| /' conftest.$ac_ext >&5
11364 cat >conftest.$ac_ext <<_ACEOF
11365 /* confdefs.h. */
11366 _ACEOF
11367 cat confdefs.h >>conftest.$ac_ext
11368 cat >>conftest.$ac_ext <<_ACEOF
11369 /* end confdefs.h. */
11370 $ac_includes_default
11371 typedef long long ac__type_sizeof_;
11373 main ()
11375 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
11376 test_array [0] = 0
11379 return 0;
11381 _ACEOF
11382 rm -f conftest.$ac_objext
11383 if { (ac_try="$ac_compile"
11384 case "(($ac_try" in
11385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11386 *) ac_try_echo=$ac_try;;
11387 esac
11388 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11389 (eval "$ac_compile") 2>conftest.er1
11390 ac_status=$?
11391 grep -v '^ *+' conftest.er1 >conftest.err
11392 rm -f conftest.er1
11393 cat conftest.err >&5
11394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11395 (exit $ac_status); } && {
11396 test -z "$ac_c_werror_flag" ||
11397 test ! -s conftest.err
11398 } && test -s conftest.$ac_objext; then
11399 ac_hi=-1 ac_mid=-1
11400 while :; do
11401 cat >conftest.$ac_ext <<_ACEOF
11402 /* confdefs.h. */
11403 _ACEOF
11404 cat confdefs.h >>conftest.$ac_ext
11405 cat >>conftest.$ac_ext <<_ACEOF
11406 /* end confdefs.h. */
11407 $ac_includes_default
11408 typedef long long ac__type_sizeof_;
11410 main ()
11412 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
11413 test_array [0] = 0
11416 return 0;
11418 _ACEOF
11419 rm -f conftest.$ac_objext
11420 if { (ac_try="$ac_compile"
11421 case "(($ac_try" in
11422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11423 *) ac_try_echo=$ac_try;;
11424 esac
11425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11426 (eval "$ac_compile") 2>conftest.er1
11427 ac_status=$?
11428 grep -v '^ *+' conftest.er1 >conftest.err
11429 rm -f conftest.er1
11430 cat conftest.err >&5
11431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11432 (exit $ac_status); } && {
11433 test -z "$ac_c_werror_flag" ||
11434 test ! -s conftest.err
11435 } && test -s conftest.$ac_objext; then
11436 ac_lo=$ac_mid; break
11437 else
11438 echo "$as_me: failed program was:" >&5
11439 sed 's/^/| /' conftest.$ac_ext >&5
11441 ac_hi=`expr '(' $ac_mid ')' - 1`
11442 if test $ac_mid -le $ac_hi; then
11443 ac_lo= ac_hi=
11444 break
11446 ac_mid=`expr 2 '*' $ac_mid`
11449 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11450 done
11451 else
11452 echo "$as_me: failed program was:" >&5
11453 sed 's/^/| /' conftest.$ac_ext >&5
11455 ac_lo= ac_hi=
11458 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11461 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11462 # Binary search between lo and hi bounds.
11463 while test "x$ac_lo" != "x$ac_hi"; do
11464 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
11465 cat >conftest.$ac_ext <<_ACEOF
11466 /* confdefs.h. */
11467 _ACEOF
11468 cat confdefs.h >>conftest.$ac_ext
11469 cat >>conftest.$ac_ext <<_ACEOF
11470 /* end confdefs.h. */
11471 $ac_includes_default
11472 typedef long long ac__type_sizeof_;
11474 main ()
11476 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
11477 test_array [0] = 0
11480 return 0;
11482 _ACEOF
11483 rm -f conftest.$ac_objext
11484 if { (ac_try="$ac_compile"
11485 case "(($ac_try" in
11486 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11487 *) ac_try_echo=$ac_try;;
11488 esac
11489 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11490 (eval "$ac_compile") 2>conftest.er1
11491 ac_status=$?
11492 grep -v '^ *+' conftest.er1 >conftest.err
11493 rm -f conftest.er1
11494 cat conftest.err >&5
11495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11496 (exit $ac_status); } && {
11497 test -z "$ac_c_werror_flag" ||
11498 test ! -s conftest.err
11499 } && test -s conftest.$ac_objext; then
11500 ac_hi=$ac_mid
11501 else
11502 echo "$as_me: failed program was:" >&5
11503 sed 's/^/| /' conftest.$ac_ext >&5
11505 ac_lo=`expr '(' $ac_mid ')' + 1`
11508 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11509 done
11510 case $ac_lo in
11511 ?*) ac_cv_sizeof_long_long=$ac_lo;;
11512 '') if test "$ac_cv_type_long_long" = yes; then
11513 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
11514 See \`config.log' for more details." >&5
11515 echo "$as_me: error: cannot compute sizeof (long long)
11516 See \`config.log' for more details." >&2;}
11517 { (exit 77); exit 77; }; }
11518 else
11519 ac_cv_sizeof_long_long=0
11520 fi ;;
11521 esac
11522 else
11523 cat >conftest.$ac_ext <<_ACEOF
11524 /* confdefs.h. */
11525 _ACEOF
11526 cat confdefs.h >>conftest.$ac_ext
11527 cat >>conftest.$ac_ext <<_ACEOF
11528 /* end confdefs.h. */
11529 $ac_includes_default
11530 typedef long long ac__type_sizeof_;
11531 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
11532 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
11533 #include <stdio.h>
11534 #include <stdlib.h>
11536 main ()
11539 FILE *f = fopen ("conftest.val", "w");
11540 if (! f)
11541 return 1;
11542 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
11544 long int i = longval ();
11545 if (i != ((long int) (sizeof (ac__type_sizeof_))))
11546 return 1;
11547 fprintf (f, "%ld\n", i);
11549 else
11551 unsigned long int i = ulongval ();
11552 if (i != ((long int) (sizeof (ac__type_sizeof_))))
11553 return 1;
11554 fprintf (f, "%lu\n", i);
11556 return ferror (f) || fclose (f) != 0;
11559 return 0;
11561 _ACEOF
11562 rm -f conftest$ac_exeext
11563 if { (ac_try="$ac_link"
11564 case "(($ac_try" in
11565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11566 *) ac_try_echo=$ac_try;;
11567 esac
11568 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11569 (eval "$ac_link") 2>&5
11570 ac_status=$?
11571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11572 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11573 { (case "(($ac_try" in
11574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11575 *) ac_try_echo=$ac_try;;
11576 esac
11577 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11578 (eval "$ac_try") 2>&5
11579 ac_status=$?
11580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11581 (exit $ac_status); }; }; then
11582 ac_cv_sizeof_long_long=`cat conftest.val`
11583 else
11584 echo "$as_me: program exited with status $ac_status" >&5
11585 echo "$as_me: failed program was:" >&5
11586 sed 's/^/| /' conftest.$ac_ext >&5
11588 ( exit $ac_status )
11589 if test "$ac_cv_type_long_long" = yes; then
11590 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
11591 See \`config.log' for more details." >&5
11592 echo "$as_me: error: cannot compute sizeof (long long)
11593 See \`config.log' for more details." >&2;}
11594 { (exit 77); exit 77; }; }
11595 else
11596 ac_cv_sizeof_long_long=0
11599 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11601 rm -f conftest.val
11603 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
11604 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6; }
11608 cat >>confdefs.h <<_ACEOF
11609 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
11610 _ACEOF
11615 { echo "$as_me:$LINENO: checking for long double support" >&5
11616 echo $ECHO_N "checking for long double support... $ECHO_C" >&6; }
11617 have_long_double=no
11618 cat >conftest.$ac_ext <<_ACEOF
11619 /* confdefs.h. */
11620 _ACEOF
11621 cat confdefs.h >>conftest.$ac_ext
11622 cat >>conftest.$ac_ext <<_ACEOF
11623 /* end confdefs.h. */
11626 main ()
11628 long double x; x = (long double)0.;
11630 return 0;
11632 _ACEOF
11633 rm -f conftest.$ac_objext
11634 if { (ac_try="$ac_compile"
11635 case "(($ac_try" in
11636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11637 *) ac_try_echo=$ac_try;;
11638 esac
11639 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11640 (eval "$ac_compile") 2>conftest.er1
11641 ac_status=$?
11642 grep -v '^ *+' conftest.er1 >conftest.err
11643 rm -f conftest.er1
11644 cat conftest.err >&5
11645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11646 (exit $ac_status); } && {
11647 test -z "$ac_c_werror_flag" ||
11648 test ! -s conftest.err
11649 } && test -s conftest.$ac_objext; then
11652 cat >>confdefs.h <<\_ACEOF
11653 #define HAVE_LONG_DOUBLE 1
11654 _ACEOF
11656 have_long_double=yes
11658 else
11659 echo "$as_me: failed program was:" >&5
11660 sed 's/^/| /' conftest.$ac_ext >&5
11665 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11666 { echo "$as_me:$LINENO: result: $have_long_double" >&5
11667 echo "${ECHO_T}$have_long_double" >&6; }
11668 if test "$have_long_double" = yes ; then
11669 { echo "$as_me:$LINENO: checking for long double" >&5
11670 echo $ECHO_N "checking for long double... $ECHO_C" >&6; }
11671 if test "${ac_cv_type_long_double+set}" = set; then
11672 echo $ECHO_N "(cached) $ECHO_C" >&6
11673 else
11674 cat >conftest.$ac_ext <<_ACEOF
11675 /* confdefs.h. */
11676 _ACEOF
11677 cat confdefs.h >>conftest.$ac_ext
11678 cat >>conftest.$ac_ext <<_ACEOF
11679 /* end confdefs.h. */
11680 $ac_includes_default
11681 typedef long double ac__type_new_;
11683 main ()
11685 if ((ac__type_new_ *) 0)
11686 return 0;
11687 if (sizeof (ac__type_new_))
11688 return 0;
11690 return 0;
11692 _ACEOF
11693 rm -f conftest.$ac_objext
11694 if { (ac_try="$ac_compile"
11695 case "(($ac_try" in
11696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11697 *) ac_try_echo=$ac_try;;
11698 esac
11699 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11700 (eval "$ac_compile") 2>conftest.er1
11701 ac_status=$?
11702 grep -v '^ *+' conftest.er1 >conftest.err
11703 rm -f conftest.er1
11704 cat conftest.err >&5
11705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11706 (exit $ac_status); } && {
11707 test -z "$ac_c_werror_flag" ||
11708 test ! -s conftest.err
11709 } && test -s conftest.$ac_objext; then
11710 ac_cv_type_long_double=yes
11711 else
11712 echo "$as_me: failed program was:" >&5
11713 sed 's/^/| /' conftest.$ac_ext >&5
11715 ac_cv_type_long_double=no
11718 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11720 { echo "$as_me:$LINENO: result: $ac_cv_type_long_double" >&5
11721 echo "${ECHO_T}$ac_cv_type_long_double" >&6; }
11723 # The cast to long int works around a bug in the HP C Compiler
11724 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11725 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11726 # This bug is HP SR number 8606223364.
11727 { echo "$as_me:$LINENO: checking size of long double" >&5
11728 echo $ECHO_N "checking size of long double... $ECHO_C" >&6; }
11729 if test "${ac_cv_sizeof_long_double+set}" = set; then
11730 echo $ECHO_N "(cached) $ECHO_C" >&6
11731 else
11732 if test "$cross_compiling" = yes; then
11733 # Depending upon the size, compute the lo and hi bounds.
11734 cat >conftest.$ac_ext <<_ACEOF
11735 /* confdefs.h. */
11736 _ACEOF
11737 cat confdefs.h >>conftest.$ac_ext
11738 cat >>conftest.$ac_ext <<_ACEOF
11739 /* end confdefs.h. */
11740 $ac_includes_default
11741 typedef long double ac__type_sizeof_;
11743 main ()
11745 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
11746 test_array [0] = 0
11749 return 0;
11751 _ACEOF
11752 rm -f conftest.$ac_objext
11753 if { (ac_try="$ac_compile"
11754 case "(($ac_try" in
11755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11756 *) ac_try_echo=$ac_try;;
11757 esac
11758 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11759 (eval "$ac_compile") 2>conftest.er1
11760 ac_status=$?
11761 grep -v '^ *+' conftest.er1 >conftest.err
11762 rm -f conftest.er1
11763 cat conftest.err >&5
11764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11765 (exit $ac_status); } && {
11766 test -z "$ac_c_werror_flag" ||
11767 test ! -s conftest.err
11768 } && test -s conftest.$ac_objext; then
11769 ac_lo=0 ac_mid=0
11770 while :; do
11771 cat >conftest.$ac_ext <<_ACEOF
11772 /* confdefs.h. */
11773 _ACEOF
11774 cat confdefs.h >>conftest.$ac_ext
11775 cat >>conftest.$ac_ext <<_ACEOF
11776 /* end confdefs.h. */
11777 $ac_includes_default
11778 typedef long double ac__type_sizeof_;
11780 main ()
11782 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
11783 test_array [0] = 0
11786 return 0;
11788 _ACEOF
11789 rm -f conftest.$ac_objext
11790 if { (ac_try="$ac_compile"
11791 case "(($ac_try" in
11792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11793 *) ac_try_echo=$ac_try;;
11794 esac
11795 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11796 (eval "$ac_compile") 2>conftest.er1
11797 ac_status=$?
11798 grep -v '^ *+' conftest.er1 >conftest.err
11799 rm -f conftest.er1
11800 cat conftest.err >&5
11801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11802 (exit $ac_status); } && {
11803 test -z "$ac_c_werror_flag" ||
11804 test ! -s conftest.err
11805 } && test -s conftest.$ac_objext; then
11806 ac_hi=$ac_mid; break
11807 else
11808 echo "$as_me: failed program was:" >&5
11809 sed 's/^/| /' conftest.$ac_ext >&5
11811 ac_lo=`expr $ac_mid + 1`
11812 if test $ac_lo -le $ac_mid; then
11813 ac_lo= ac_hi=
11814 break
11816 ac_mid=`expr 2 '*' $ac_mid + 1`
11819 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11820 done
11821 else
11822 echo "$as_me: failed program was:" >&5
11823 sed 's/^/| /' conftest.$ac_ext >&5
11825 cat >conftest.$ac_ext <<_ACEOF
11826 /* confdefs.h. */
11827 _ACEOF
11828 cat confdefs.h >>conftest.$ac_ext
11829 cat >>conftest.$ac_ext <<_ACEOF
11830 /* end confdefs.h. */
11831 $ac_includes_default
11832 typedef long double ac__type_sizeof_;
11834 main ()
11836 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
11837 test_array [0] = 0
11840 return 0;
11842 _ACEOF
11843 rm -f conftest.$ac_objext
11844 if { (ac_try="$ac_compile"
11845 case "(($ac_try" in
11846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11847 *) ac_try_echo=$ac_try;;
11848 esac
11849 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11850 (eval "$ac_compile") 2>conftest.er1
11851 ac_status=$?
11852 grep -v '^ *+' conftest.er1 >conftest.err
11853 rm -f conftest.er1
11854 cat conftest.err >&5
11855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11856 (exit $ac_status); } && {
11857 test -z "$ac_c_werror_flag" ||
11858 test ! -s conftest.err
11859 } && test -s conftest.$ac_objext; then
11860 ac_hi=-1 ac_mid=-1
11861 while :; do
11862 cat >conftest.$ac_ext <<_ACEOF
11863 /* confdefs.h. */
11864 _ACEOF
11865 cat confdefs.h >>conftest.$ac_ext
11866 cat >>conftest.$ac_ext <<_ACEOF
11867 /* end confdefs.h. */
11868 $ac_includes_default
11869 typedef long double ac__type_sizeof_;
11871 main ()
11873 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
11874 test_array [0] = 0
11877 return 0;
11879 _ACEOF
11880 rm -f conftest.$ac_objext
11881 if { (ac_try="$ac_compile"
11882 case "(($ac_try" in
11883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11884 *) ac_try_echo=$ac_try;;
11885 esac
11886 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11887 (eval "$ac_compile") 2>conftest.er1
11888 ac_status=$?
11889 grep -v '^ *+' conftest.er1 >conftest.err
11890 rm -f conftest.er1
11891 cat conftest.err >&5
11892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11893 (exit $ac_status); } && {
11894 test -z "$ac_c_werror_flag" ||
11895 test ! -s conftest.err
11896 } && test -s conftest.$ac_objext; then
11897 ac_lo=$ac_mid; break
11898 else
11899 echo "$as_me: failed program was:" >&5
11900 sed 's/^/| /' conftest.$ac_ext >&5
11902 ac_hi=`expr '(' $ac_mid ')' - 1`
11903 if test $ac_mid -le $ac_hi; then
11904 ac_lo= ac_hi=
11905 break
11907 ac_mid=`expr 2 '*' $ac_mid`
11910 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11911 done
11912 else
11913 echo "$as_me: failed program was:" >&5
11914 sed 's/^/| /' conftest.$ac_ext >&5
11916 ac_lo= ac_hi=
11919 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11922 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11923 # Binary search between lo and hi bounds.
11924 while test "x$ac_lo" != "x$ac_hi"; do
11925 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
11926 cat >conftest.$ac_ext <<_ACEOF
11927 /* confdefs.h. */
11928 _ACEOF
11929 cat confdefs.h >>conftest.$ac_ext
11930 cat >>conftest.$ac_ext <<_ACEOF
11931 /* end confdefs.h. */
11932 $ac_includes_default
11933 typedef long double ac__type_sizeof_;
11935 main ()
11937 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
11938 test_array [0] = 0
11941 return 0;
11943 _ACEOF
11944 rm -f conftest.$ac_objext
11945 if { (ac_try="$ac_compile"
11946 case "(($ac_try" in
11947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11948 *) ac_try_echo=$ac_try;;
11949 esac
11950 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11951 (eval "$ac_compile") 2>conftest.er1
11952 ac_status=$?
11953 grep -v '^ *+' conftest.er1 >conftest.err
11954 rm -f conftest.er1
11955 cat conftest.err >&5
11956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11957 (exit $ac_status); } && {
11958 test -z "$ac_c_werror_flag" ||
11959 test ! -s conftest.err
11960 } && test -s conftest.$ac_objext; then
11961 ac_hi=$ac_mid
11962 else
11963 echo "$as_me: failed program was:" >&5
11964 sed 's/^/| /' conftest.$ac_ext >&5
11966 ac_lo=`expr '(' $ac_mid ')' + 1`
11969 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11970 done
11971 case $ac_lo in
11972 ?*) ac_cv_sizeof_long_double=$ac_lo;;
11973 '') if test "$ac_cv_type_long_double" = yes; then
11974 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long double)
11975 See \`config.log' for more details." >&5
11976 echo "$as_me: error: cannot compute sizeof (long double)
11977 See \`config.log' for more details." >&2;}
11978 { (exit 77); exit 77; }; }
11979 else
11980 ac_cv_sizeof_long_double=0
11981 fi ;;
11982 esac
11983 else
11984 cat >conftest.$ac_ext <<_ACEOF
11985 /* confdefs.h. */
11986 _ACEOF
11987 cat confdefs.h >>conftest.$ac_ext
11988 cat >>conftest.$ac_ext <<_ACEOF
11989 /* end confdefs.h. */
11990 $ac_includes_default
11991 typedef long double ac__type_sizeof_;
11992 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
11993 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
11994 #include <stdio.h>
11995 #include <stdlib.h>
11997 main ()
12000 FILE *f = fopen ("conftest.val", "w");
12001 if (! f)
12002 return 1;
12003 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
12005 long int i = longval ();
12006 if (i != ((long int) (sizeof (ac__type_sizeof_))))
12007 return 1;
12008 fprintf (f, "%ld\n", i);
12010 else
12012 unsigned long int i = ulongval ();
12013 if (i != ((long int) (sizeof (ac__type_sizeof_))))
12014 return 1;
12015 fprintf (f, "%lu\n", i);
12017 return ferror (f) || fclose (f) != 0;
12020 return 0;
12022 _ACEOF
12023 rm -f conftest$ac_exeext
12024 if { (ac_try="$ac_link"
12025 case "(($ac_try" in
12026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12027 *) ac_try_echo=$ac_try;;
12028 esac
12029 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12030 (eval "$ac_link") 2>&5
12031 ac_status=$?
12032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12033 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12034 { (case "(($ac_try" in
12035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12036 *) ac_try_echo=$ac_try;;
12037 esac
12038 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12039 (eval "$ac_try") 2>&5
12040 ac_status=$?
12041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12042 (exit $ac_status); }; }; then
12043 ac_cv_sizeof_long_double=`cat conftest.val`
12044 else
12045 echo "$as_me: program exited with status $ac_status" >&5
12046 echo "$as_me: failed program was:" >&5
12047 sed 's/^/| /' conftest.$ac_ext >&5
12049 ( exit $ac_status )
12050 if test "$ac_cv_type_long_double" = yes; then
12051 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long double)
12052 See \`config.log' for more details." >&5
12053 echo "$as_me: error: cannot compute sizeof (long double)
12054 See \`config.log' for more details." >&2;}
12055 { (exit 77); exit 77; }; }
12056 else
12057 ac_cv_sizeof_long_double=0
12060 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12062 rm -f conftest.val
12064 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_double" >&5
12065 echo "${ECHO_T}$ac_cv_sizeof_long_double" >&6; }
12069 cat >>confdefs.h <<_ACEOF
12070 #define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double
12071 _ACEOF
12076 { echo "$as_me:$LINENO: checking for _Bool support" >&5
12077 echo $ECHO_N "checking for _Bool support... $ECHO_C" >&6; }
12078 have_c99_bool=no
12079 cat >conftest.$ac_ext <<_ACEOF
12080 /* confdefs.h. */
12081 _ACEOF
12082 cat confdefs.h >>conftest.$ac_ext
12083 cat >>conftest.$ac_ext <<_ACEOF
12084 /* end confdefs.h. */
12087 main ()
12089 _Bool x; x = (_Bool)0;
12091 return 0;
12093 _ACEOF
12094 rm -f conftest.$ac_objext
12095 if { (ac_try="$ac_compile"
12096 case "(($ac_try" in
12097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12098 *) ac_try_echo=$ac_try;;
12099 esac
12100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12101 (eval "$ac_compile") 2>conftest.er1
12102 ac_status=$?
12103 grep -v '^ *+' conftest.er1 >conftest.err
12104 rm -f conftest.er1
12105 cat conftest.err >&5
12106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12107 (exit $ac_status); } && {
12108 test -z "$ac_c_werror_flag" ||
12109 test ! -s conftest.err
12110 } && test -s conftest.$ac_objext; then
12113 cat >>confdefs.h <<\_ACEOF
12114 #define HAVE_C99_BOOL 1
12115 _ACEOF
12117 have_c99_bool=yes
12119 else
12120 echo "$as_me: failed program was:" >&5
12121 sed 's/^/| /' conftest.$ac_ext >&5
12126 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12127 { echo "$as_me:$LINENO: result: $have_c99_bool" >&5
12128 echo "${ECHO_T}$have_c99_bool" >&6; }
12129 if test "$have_c99_bool" = yes ; then
12130 { echo "$as_me:$LINENO: checking for _Bool" >&5
12131 echo $ECHO_N "checking for _Bool... $ECHO_C" >&6; }
12132 if test "${ac_cv_type__Bool+set}" = set; then
12133 echo $ECHO_N "(cached) $ECHO_C" >&6
12134 else
12135 cat >conftest.$ac_ext <<_ACEOF
12136 /* confdefs.h. */
12137 _ACEOF
12138 cat confdefs.h >>conftest.$ac_ext
12139 cat >>conftest.$ac_ext <<_ACEOF
12140 /* end confdefs.h. */
12141 $ac_includes_default
12142 typedef _Bool ac__type_new_;
12144 main ()
12146 if ((ac__type_new_ *) 0)
12147 return 0;
12148 if (sizeof (ac__type_new_))
12149 return 0;
12151 return 0;
12153 _ACEOF
12154 rm -f conftest.$ac_objext
12155 if { (ac_try="$ac_compile"
12156 case "(($ac_try" in
12157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12158 *) ac_try_echo=$ac_try;;
12159 esac
12160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12161 (eval "$ac_compile") 2>conftest.er1
12162 ac_status=$?
12163 grep -v '^ *+' conftest.er1 >conftest.err
12164 rm -f conftest.er1
12165 cat conftest.err >&5
12166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12167 (exit $ac_status); } && {
12168 test -z "$ac_c_werror_flag" ||
12169 test ! -s conftest.err
12170 } && test -s conftest.$ac_objext; then
12171 ac_cv_type__Bool=yes
12172 else
12173 echo "$as_me: failed program was:" >&5
12174 sed 's/^/| /' conftest.$ac_ext >&5
12176 ac_cv_type__Bool=no
12179 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12181 { echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5
12182 echo "${ECHO_T}$ac_cv_type__Bool" >&6; }
12184 # The cast to long int works around a bug in the HP C Compiler
12185 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12186 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12187 # This bug is HP SR number 8606223364.
12188 { echo "$as_me:$LINENO: checking size of _Bool" >&5
12189 echo $ECHO_N "checking size of _Bool... $ECHO_C" >&6; }
12190 if test "${ac_cv_sizeof__Bool+set}" = set; then
12191 echo $ECHO_N "(cached) $ECHO_C" >&6
12192 else
12193 if test "$cross_compiling" = yes; then
12194 # Depending upon the size, compute the lo and hi bounds.
12195 cat >conftest.$ac_ext <<_ACEOF
12196 /* confdefs.h. */
12197 _ACEOF
12198 cat confdefs.h >>conftest.$ac_ext
12199 cat >>conftest.$ac_ext <<_ACEOF
12200 /* end confdefs.h. */
12201 $ac_includes_default
12202 typedef _Bool ac__type_sizeof_;
12204 main ()
12206 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
12207 test_array [0] = 0
12210 return 0;
12212 _ACEOF
12213 rm -f conftest.$ac_objext
12214 if { (ac_try="$ac_compile"
12215 case "(($ac_try" in
12216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12217 *) ac_try_echo=$ac_try;;
12218 esac
12219 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12220 (eval "$ac_compile") 2>conftest.er1
12221 ac_status=$?
12222 grep -v '^ *+' conftest.er1 >conftest.err
12223 rm -f conftest.er1
12224 cat conftest.err >&5
12225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12226 (exit $ac_status); } && {
12227 test -z "$ac_c_werror_flag" ||
12228 test ! -s conftest.err
12229 } && test -s conftest.$ac_objext; then
12230 ac_lo=0 ac_mid=0
12231 while :; do
12232 cat >conftest.$ac_ext <<_ACEOF
12233 /* confdefs.h. */
12234 _ACEOF
12235 cat confdefs.h >>conftest.$ac_ext
12236 cat >>conftest.$ac_ext <<_ACEOF
12237 /* end confdefs.h. */
12238 $ac_includes_default
12239 typedef _Bool ac__type_sizeof_;
12241 main ()
12243 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
12244 test_array [0] = 0
12247 return 0;
12249 _ACEOF
12250 rm -f conftest.$ac_objext
12251 if { (ac_try="$ac_compile"
12252 case "(($ac_try" in
12253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12254 *) ac_try_echo=$ac_try;;
12255 esac
12256 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12257 (eval "$ac_compile") 2>conftest.er1
12258 ac_status=$?
12259 grep -v '^ *+' conftest.er1 >conftest.err
12260 rm -f conftest.er1
12261 cat conftest.err >&5
12262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12263 (exit $ac_status); } && {
12264 test -z "$ac_c_werror_flag" ||
12265 test ! -s conftest.err
12266 } && test -s conftest.$ac_objext; then
12267 ac_hi=$ac_mid; break
12268 else
12269 echo "$as_me: failed program was:" >&5
12270 sed 's/^/| /' conftest.$ac_ext >&5
12272 ac_lo=`expr $ac_mid + 1`
12273 if test $ac_lo -le $ac_mid; then
12274 ac_lo= ac_hi=
12275 break
12277 ac_mid=`expr 2 '*' $ac_mid + 1`
12280 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12281 done
12282 else
12283 echo "$as_me: failed program was:" >&5
12284 sed 's/^/| /' conftest.$ac_ext >&5
12286 cat >conftest.$ac_ext <<_ACEOF
12287 /* confdefs.h. */
12288 _ACEOF
12289 cat confdefs.h >>conftest.$ac_ext
12290 cat >>conftest.$ac_ext <<_ACEOF
12291 /* end confdefs.h. */
12292 $ac_includes_default
12293 typedef _Bool ac__type_sizeof_;
12295 main ()
12297 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
12298 test_array [0] = 0
12301 return 0;
12303 _ACEOF
12304 rm -f conftest.$ac_objext
12305 if { (ac_try="$ac_compile"
12306 case "(($ac_try" in
12307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12308 *) ac_try_echo=$ac_try;;
12309 esac
12310 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12311 (eval "$ac_compile") 2>conftest.er1
12312 ac_status=$?
12313 grep -v '^ *+' conftest.er1 >conftest.err
12314 rm -f conftest.er1
12315 cat conftest.err >&5
12316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12317 (exit $ac_status); } && {
12318 test -z "$ac_c_werror_flag" ||
12319 test ! -s conftest.err
12320 } && test -s conftest.$ac_objext; then
12321 ac_hi=-1 ac_mid=-1
12322 while :; do
12323 cat >conftest.$ac_ext <<_ACEOF
12324 /* confdefs.h. */
12325 _ACEOF
12326 cat confdefs.h >>conftest.$ac_ext
12327 cat >>conftest.$ac_ext <<_ACEOF
12328 /* end confdefs.h. */
12329 $ac_includes_default
12330 typedef _Bool ac__type_sizeof_;
12332 main ()
12334 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
12335 test_array [0] = 0
12338 return 0;
12340 _ACEOF
12341 rm -f conftest.$ac_objext
12342 if { (ac_try="$ac_compile"
12343 case "(($ac_try" in
12344 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12345 *) ac_try_echo=$ac_try;;
12346 esac
12347 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12348 (eval "$ac_compile") 2>conftest.er1
12349 ac_status=$?
12350 grep -v '^ *+' conftest.er1 >conftest.err
12351 rm -f conftest.er1
12352 cat conftest.err >&5
12353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12354 (exit $ac_status); } && {
12355 test -z "$ac_c_werror_flag" ||
12356 test ! -s conftest.err
12357 } && test -s conftest.$ac_objext; then
12358 ac_lo=$ac_mid; break
12359 else
12360 echo "$as_me: failed program was:" >&5
12361 sed 's/^/| /' conftest.$ac_ext >&5
12363 ac_hi=`expr '(' $ac_mid ')' - 1`
12364 if test $ac_mid -le $ac_hi; then
12365 ac_lo= ac_hi=
12366 break
12368 ac_mid=`expr 2 '*' $ac_mid`
12371 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12372 done
12373 else
12374 echo "$as_me: failed program was:" >&5
12375 sed 's/^/| /' conftest.$ac_ext >&5
12377 ac_lo= ac_hi=
12380 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12383 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12384 # Binary search between lo and hi bounds.
12385 while test "x$ac_lo" != "x$ac_hi"; do
12386 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12387 cat >conftest.$ac_ext <<_ACEOF
12388 /* confdefs.h. */
12389 _ACEOF
12390 cat confdefs.h >>conftest.$ac_ext
12391 cat >>conftest.$ac_ext <<_ACEOF
12392 /* end confdefs.h. */
12393 $ac_includes_default
12394 typedef _Bool ac__type_sizeof_;
12396 main ()
12398 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
12399 test_array [0] = 0
12402 return 0;
12404 _ACEOF
12405 rm -f conftest.$ac_objext
12406 if { (ac_try="$ac_compile"
12407 case "(($ac_try" in
12408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12409 *) ac_try_echo=$ac_try;;
12410 esac
12411 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12412 (eval "$ac_compile") 2>conftest.er1
12413 ac_status=$?
12414 grep -v '^ *+' conftest.er1 >conftest.err
12415 rm -f conftest.er1
12416 cat conftest.err >&5
12417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12418 (exit $ac_status); } && {
12419 test -z "$ac_c_werror_flag" ||
12420 test ! -s conftest.err
12421 } && test -s conftest.$ac_objext; then
12422 ac_hi=$ac_mid
12423 else
12424 echo "$as_me: failed program was:" >&5
12425 sed 's/^/| /' conftest.$ac_ext >&5
12427 ac_lo=`expr '(' $ac_mid ')' + 1`
12430 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12431 done
12432 case $ac_lo in
12433 ?*) ac_cv_sizeof__Bool=$ac_lo;;
12434 '') if test "$ac_cv_type__Bool" = yes; then
12435 { { echo "$as_me:$LINENO: error: cannot compute sizeof (_Bool)
12436 See \`config.log' for more details." >&5
12437 echo "$as_me: error: cannot compute sizeof (_Bool)
12438 See \`config.log' for more details." >&2;}
12439 { (exit 77); exit 77; }; }
12440 else
12441 ac_cv_sizeof__Bool=0
12442 fi ;;
12443 esac
12444 else
12445 cat >conftest.$ac_ext <<_ACEOF
12446 /* confdefs.h. */
12447 _ACEOF
12448 cat confdefs.h >>conftest.$ac_ext
12449 cat >>conftest.$ac_ext <<_ACEOF
12450 /* end confdefs.h. */
12451 $ac_includes_default
12452 typedef _Bool ac__type_sizeof_;
12453 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
12454 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
12455 #include <stdio.h>
12456 #include <stdlib.h>
12458 main ()
12461 FILE *f = fopen ("conftest.val", "w");
12462 if (! f)
12463 return 1;
12464 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
12466 long int i = longval ();
12467 if (i != ((long int) (sizeof (ac__type_sizeof_))))
12468 return 1;
12469 fprintf (f, "%ld\n", i);
12471 else
12473 unsigned long int i = ulongval ();
12474 if (i != ((long int) (sizeof (ac__type_sizeof_))))
12475 return 1;
12476 fprintf (f, "%lu\n", i);
12478 return ferror (f) || fclose (f) != 0;
12481 return 0;
12483 _ACEOF
12484 rm -f conftest$ac_exeext
12485 if { (ac_try="$ac_link"
12486 case "(($ac_try" in
12487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12488 *) ac_try_echo=$ac_try;;
12489 esac
12490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12491 (eval "$ac_link") 2>&5
12492 ac_status=$?
12493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12494 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12495 { (case "(($ac_try" in
12496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12497 *) ac_try_echo=$ac_try;;
12498 esac
12499 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12500 (eval "$ac_try") 2>&5
12501 ac_status=$?
12502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12503 (exit $ac_status); }; }; then
12504 ac_cv_sizeof__Bool=`cat conftest.val`
12505 else
12506 echo "$as_me: program exited with status $ac_status" >&5
12507 echo "$as_me: failed program was:" >&5
12508 sed 's/^/| /' conftest.$ac_ext >&5
12510 ( exit $ac_status )
12511 if test "$ac_cv_type__Bool" = yes; then
12512 { { echo "$as_me:$LINENO: error: cannot compute sizeof (_Bool)
12513 See \`config.log' for more details." >&5
12514 echo "$as_me: error: cannot compute sizeof (_Bool)
12515 See \`config.log' for more details." >&2;}
12516 { (exit 77); exit 77; }; }
12517 else
12518 ac_cv_sizeof__Bool=0
12521 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12523 rm -f conftest.val
12525 { echo "$as_me:$LINENO: result: $ac_cv_sizeof__Bool" >&5
12526 echo "${ECHO_T}$ac_cv_sizeof__Bool" >&6; }
12530 cat >>confdefs.h <<_ACEOF
12531 #define SIZEOF__BOOL $ac_cv_sizeof__Bool
12532 _ACEOF
12537 { echo "$as_me:$LINENO: checking for uintptr_t" >&5
12538 echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6; }
12539 if test "${ac_cv_type_uintptr_t+set}" = set; then
12540 echo $ECHO_N "(cached) $ECHO_C" >&6
12541 else
12542 cat >conftest.$ac_ext <<_ACEOF
12543 /* confdefs.h. */
12544 _ACEOF
12545 cat confdefs.h >>conftest.$ac_ext
12546 cat >>conftest.$ac_ext <<_ACEOF
12547 /* end confdefs.h. */
12548 #ifdef HAVE_STDINT_H
12549 #include <stdint.h>
12550 #endif
12552 typedef uintptr_t ac__type_new_;
12554 main ()
12556 if ((ac__type_new_ *) 0)
12557 return 0;
12558 if (sizeof (ac__type_new_))
12559 return 0;
12561 return 0;
12563 _ACEOF
12564 rm -f conftest.$ac_objext
12565 if { (ac_try="$ac_compile"
12566 case "(($ac_try" in
12567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12568 *) ac_try_echo=$ac_try;;
12569 esac
12570 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12571 (eval "$ac_compile") 2>conftest.er1
12572 ac_status=$?
12573 grep -v '^ *+' conftest.er1 >conftest.err
12574 rm -f conftest.er1
12575 cat conftest.err >&5
12576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12577 (exit $ac_status); } && {
12578 test -z "$ac_c_werror_flag" ||
12579 test ! -s conftest.err
12580 } && test -s conftest.$ac_objext; then
12581 ac_cv_type_uintptr_t=yes
12582 else
12583 echo "$as_me: failed program was:" >&5
12584 sed 's/^/| /' conftest.$ac_ext >&5
12586 ac_cv_type_uintptr_t=no
12589 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12591 { echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
12592 echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6; }
12593 if test $ac_cv_type_uintptr_t = yes; then
12595 cat >>confdefs.h <<_ACEOF
12596 #define HAVE_UINTPTR_T 1
12597 _ACEOF
12599 { echo "$as_me:$LINENO: checking for uintptr_t" >&5
12600 echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6; }
12601 if test "${ac_cv_type_uintptr_t+set}" = set; then
12602 echo $ECHO_N "(cached) $ECHO_C" >&6
12603 else
12604 cat >conftest.$ac_ext <<_ACEOF
12605 /* confdefs.h. */
12606 _ACEOF
12607 cat confdefs.h >>conftest.$ac_ext
12608 cat >>conftest.$ac_ext <<_ACEOF
12609 /* end confdefs.h. */
12610 $ac_includes_default
12611 typedef uintptr_t ac__type_new_;
12613 main ()
12615 if ((ac__type_new_ *) 0)
12616 return 0;
12617 if (sizeof (ac__type_new_))
12618 return 0;
12620 return 0;
12622 _ACEOF
12623 rm -f conftest.$ac_objext
12624 if { (ac_try="$ac_compile"
12625 case "(($ac_try" in
12626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12627 *) ac_try_echo=$ac_try;;
12628 esac
12629 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12630 (eval "$ac_compile") 2>conftest.er1
12631 ac_status=$?
12632 grep -v '^ *+' conftest.er1 >conftest.err
12633 rm -f conftest.er1
12634 cat conftest.err >&5
12635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12636 (exit $ac_status); } && {
12637 test -z "$ac_c_werror_flag" ||
12638 test ! -s conftest.err
12639 } && test -s conftest.$ac_objext; then
12640 ac_cv_type_uintptr_t=yes
12641 else
12642 echo "$as_me: failed program was:" >&5
12643 sed 's/^/| /' conftest.$ac_ext >&5
12645 ac_cv_type_uintptr_t=no
12648 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12650 { echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
12651 echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6; }
12653 # The cast to long int works around a bug in the HP C Compiler
12654 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12655 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12656 # This bug is HP SR number 8606223364.
12657 { echo "$as_me:$LINENO: checking size of uintptr_t" >&5
12658 echo $ECHO_N "checking size of uintptr_t... $ECHO_C" >&6; }
12659 if test "${ac_cv_sizeof_uintptr_t+set}" = set; then
12660 echo $ECHO_N "(cached) $ECHO_C" >&6
12661 else
12662 if test "$cross_compiling" = yes; then
12663 # Depending upon the size, compute the lo and hi bounds.
12664 cat >conftest.$ac_ext <<_ACEOF
12665 /* confdefs.h. */
12666 _ACEOF
12667 cat confdefs.h >>conftest.$ac_ext
12668 cat >>conftest.$ac_ext <<_ACEOF
12669 /* end confdefs.h. */
12670 $ac_includes_default
12671 typedef uintptr_t ac__type_sizeof_;
12673 main ()
12675 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
12676 test_array [0] = 0
12679 return 0;
12681 _ACEOF
12682 rm -f conftest.$ac_objext
12683 if { (ac_try="$ac_compile"
12684 case "(($ac_try" in
12685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12686 *) ac_try_echo=$ac_try;;
12687 esac
12688 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12689 (eval "$ac_compile") 2>conftest.er1
12690 ac_status=$?
12691 grep -v '^ *+' conftest.er1 >conftest.err
12692 rm -f conftest.er1
12693 cat conftest.err >&5
12694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12695 (exit $ac_status); } && {
12696 test -z "$ac_c_werror_flag" ||
12697 test ! -s conftest.err
12698 } && test -s conftest.$ac_objext; then
12699 ac_lo=0 ac_mid=0
12700 while :; do
12701 cat >conftest.$ac_ext <<_ACEOF
12702 /* confdefs.h. */
12703 _ACEOF
12704 cat confdefs.h >>conftest.$ac_ext
12705 cat >>conftest.$ac_ext <<_ACEOF
12706 /* end confdefs.h. */
12707 $ac_includes_default
12708 typedef uintptr_t ac__type_sizeof_;
12710 main ()
12712 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
12713 test_array [0] = 0
12716 return 0;
12718 _ACEOF
12719 rm -f conftest.$ac_objext
12720 if { (ac_try="$ac_compile"
12721 case "(($ac_try" in
12722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12723 *) ac_try_echo=$ac_try;;
12724 esac
12725 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12726 (eval "$ac_compile") 2>conftest.er1
12727 ac_status=$?
12728 grep -v '^ *+' conftest.er1 >conftest.err
12729 rm -f conftest.er1
12730 cat conftest.err >&5
12731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12732 (exit $ac_status); } && {
12733 test -z "$ac_c_werror_flag" ||
12734 test ! -s conftest.err
12735 } && test -s conftest.$ac_objext; then
12736 ac_hi=$ac_mid; break
12737 else
12738 echo "$as_me: failed program was:" >&5
12739 sed 's/^/| /' conftest.$ac_ext >&5
12741 ac_lo=`expr $ac_mid + 1`
12742 if test $ac_lo -le $ac_mid; then
12743 ac_lo= ac_hi=
12744 break
12746 ac_mid=`expr 2 '*' $ac_mid + 1`
12749 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12750 done
12751 else
12752 echo "$as_me: failed program was:" >&5
12753 sed 's/^/| /' conftest.$ac_ext >&5
12755 cat >conftest.$ac_ext <<_ACEOF
12756 /* confdefs.h. */
12757 _ACEOF
12758 cat confdefs.h >>conftest.$ac_ext
12759 cat >>conftest.$ac_ext <<_ACEOF
12760 /* end confdefs.h. */
12761 $ac_includes_default
12762 typedef uintptr_t ac__type_sizeof_;
12764 main ()
12766 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
12767 test_array [0] = 0
12770 return 0;
12772 _ACEOF
12773 rm -f conftest.$ac_objext
12774 if { (ac_try="$ac_compile"
12775 case "(($ac_try" in
12776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12777 *) ac_try_echo=$ac_try;;
12778 esac
12779 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12780 (eval "$ac_compile") 2>conftest.er1
12781 ac_status=$?
12782 grep -v '^ *+' conftest.er1 >conftest.err
12783 rm -f conftest.er1
12784 cat conftest.err >&5
12785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12786 (exit $ac_status); } && {
12787 test -z "$ac_c_werror_flag" ||
12788 test ! -s conftest.err
12789 } && test -s conftest.$ac_objext; then
12790 ac_hi=-1 ac_mid=-1
12791 while :; do
12792 cat >conftest.$ac_ext <<_ACEOF
12793 /* confdefs.h. */
12794 _ACEOF
12795 cat confdefs.h >>conftest.$ac_ext
12796 cat >>conftest.$ac_ext <<_ACEOF
12797 /* end confdefs.h. */
12798 $ac_includes_default
12799 typedef uintptr_t ac__type_sizeof_;
12801 main ()
12803 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
12804 test_array [0] = 0
12807 return 0;
12809 _ACEOF
12810 rm -f conftest.$ac_objext
12811 if { (ac_try="$ac_compile"
12812 case "(($ac_try" in
12813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12814 *) ac_try_echo=$ac_try;;
12815 esac
12816 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12817 (eval "$ac_compile") 2>conftest.er1
12818 ac_status=$?
12819 grep -v '^ *+' conftest.er1 >conftest.err
12820 rm -f conftest.er1
12821 cat conftest.err >&5
12822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12823 (exit $ac_status); } && {
12824 test -z "$ac_c_werror_flag" ||
12825 test ! -s conftest.err
12826 } && test -s conftest.$ac_objext; then
12827 ac_lo=$ac_mid; break
12828 else
12829 echo "$as_me: failed program was:" >&5
12830 sed 's/^/| /' conftest.$ac_ext >&5
12832 ac_hi=`expr '(' $ac_mid ')' - 1`
12833 if test $ac_mid -le $ac_hi; then
12834 ac_lo= ac_hi=
12835 break
12837 ac_mid=`expr 2 '*' $ac_mid`
12840 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12841 done
12842 else
12843 echo "$as_me: failed program was:" >&5
12844 sed 's/^/| /' conftest.$ac_ext >&5
12846 ac_lo= ac_hi=
12849 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12852 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12853 # Binary search between lo and hi bounds.
12854 while test "x$ac_lo" != "x$ac_hi"; do
12855 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12856 cat >conftest.$ac_ext <<_ACEOF
12857 /* confdefs.h. */
12858 _ACEOF
12859 cat confdefs.h >>conftest.$ac_ext
12860 cat >>conftest.$ac_ext <<_ACEOF
12861 /* end confdefs.h. */
12862 $ac_includes_default
12863 typedef uintptr_t ac__type_sizeof_;
12865 main ()
12867 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
12868 test_array [0] = 0
12871 return 0;
12873 _ACEOF
12874 rm -f conftest.$ac_objext
12875 if { (ac_try="$ac_compile"
12876 case "(($ac_try" in
12877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12878 *) ac_try_echo=$ac_try;;
12879 esac
12880 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12881 (eval "$ac_compile") 2>conftest.er1
12882 ac_status=$?
12883 grep -v '^ *+' conftest.er1 >conftest.err
12884 rm -f conftest.er1
12885 cat conftest.err >&5
12886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12887 (exit $ac_status); } && {
12888 test -z "$ac_c_werror_flag" ||
12889 test ! -s conftest.err
12890 } && test -s conftest.$ac_objext; then
12891 ac_hi=$ac_mid
12892 else
12893 echo "$as_me: failed program was:" >&5
12894 sed 's/^/| /' conftest.$ac_ext >&5
12896 ac_lo=`expr '(' $ac_mid ')' + 1`
12899 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12900 done
12901 case $ac_lo in
12902 ?*) ac_cv_sizeof_uintptr_t=$ac_lo;;
12903 '') if test "$ac_cv_type_uintptr_t" = yes; then
12904 { { echo "$as_me:$LINENO: error: cannot compute sizeof (uintptr_t)
12905 See \`config.log' for more details." >&5
12906 echo "$as_me: error: cannot compute sizeof (uintptr_t)
12907 See \`config.log' for more details." >&2;}
12908 { (exit 77); exit 77; }; }
12909 else
12910 ac_cv_sizeof_uintptr_t=0
12911 fi ;;
12912 esac
12913 else
12914 cat >conftest.$ac_ext <<_ACEOF
12915 /* confdefs.h. */
12916 _ACEOF
12917 cat confdefs.h >>conftest.$ac_ext
12918 cat >>conftest.$ac_ext <<_ACEOF
12919 /* end confdefs.h. */
12920 $ac_includes_default
12921 typedef uintptr_t ac__type_sizeof_;
12922 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
12923 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
12924 #include <stdio.h>
12925 #include <stdlib.h>
12927 main ()
12930 FILE *f = fopen ("conftest.val", "w");
12931 if (! f)
12932 return 1;
12933 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
12935 long int i = longval ();
12936 if (i != ((long int) (sizeof (ac__type_sizeof_))))
12937 return 1;
12938 fprintf (f, "%ld\n", i);
12940 else
12942 unsigned long int i = ulongval ();
12943 if (i != ((long int) (sizeof (ac__type_sizeof_))))
12944 return 1;
12945 fprintf (f, "%lu\n", i);
12947 return ferror (f) || fclose (f) != 0;
12950 return 0;
12952 _ACEOF
12953 rm -f conftest$ac_exeext
12954 if { (ac_try="$ac_link"
12955 case "(($ac_try" in
12956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12957 *) ac_try_echo=$ac_try;;
12958 esac
12959 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12960 (eval "$ac_link") 2>&5
12961 ac_status=$?
12962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12963 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12964 { (case "(($ac_try" in
12965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12966 *) ac_try_echo=$ac_try;;
12967 esac
12968 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12969 (eval "$ac_try") 2>&5
12970 ac_status=$?
12971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12972 (exit $ac_status); }; }; then
12973 ac_cv_sizeof_uintptr_t=`cat conftest.val`
12974 else
12975 echo "$as_me: program exited with status $ac_status" >&5
12976 echo "$as_me: failed program was:" >&5
12977 sed 's/^/| /' conftest.$ac_ext >&5
12979 ( exit $ac_status )
12980 if test "$ac_cv_type_uintptr_t" = yes; then
12981 { { echo "$as_me:$LINENO: error: cannot compute sizeof (uintptr_t)
12982 See \`config.log' for more details." >&5
12983 echo "$as_me: error: cannot compute sizeof (uintptr_t)
12984 See \`config.log' for more details." >&2;}
12985 { (exit 77); exit 77; }; }
12986 else
12987 ac_cv_sizeof_uintptr_t=0
12990 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12992 rm -f conftest.val
12994 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_uintptr_t" >&5
12995 echo "${ECHO_T}$ac_cv_sizeof_uintptr_t" >&6; }
12999 cat >>confdefs.h <<_ACEOF
13000 #define SIZEOF_UINTPTR_T $ac_cv_sizeof_uintptr_t
13001 _ACEOF
13008 # Hmph. AC_CHECK_SIZEOF() doesn't include <sys/types.h>.
13009 { echo "$as_me:$LINENO: checking size of off_t" >&5
13010 echo $ECHO_N "checking size of off_t... $ECHO_C" >&6; }
13011 if test "${ac_cv_sizeof_off_t+set}" = set; then
13012 echo $ECHO_N "(cached) $ECHO_C" >&6
13013 else
13014 if test "$cross_compiling" = yes; then
13015 ac_cv_sizeof_off_t=4
13016 else
13017 cat >conftest.$ac_ext <<_ACEOF
13018 /* confdefs.h. */
13019 _ACEOF
13020 cat confdefs.h >>conftest.$ac_ext
13021 cat >>conftest.$ac_ext <<_ACEOF
13022 /* end confdefs.h. */
13023 #include <stdio.h>
13024 #include <sys/types.h>
13025 main()
13027 FILE *f=fopen("conftestval", "w");
13028 if (!f) exit(1);
13029 fprintf(f, "%d\n", sizeof(off_t));
13030 exit(0);
13032 _ACEOF
13033 rm -f conftest$ac_exeext
13034 if { (ac_try="$ac_link"
13035 case "(($ac_try" in
13036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13037 *) ac_try_echo=$ac_try;;
13038 esac
13039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13040 (eval "$ac_link") 2>&5
13041 ac_status=$?
13042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13043 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13044 { (case "(($ac_try" in
13045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13046 *) ac_try_echo=$ac_try;;
13047 esac
13048 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13049 (eval "$ac_try") 2>&5
13050 ac_status=$?
13051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13052 (exit $ac_status); }; }; then
13053 ac_cv_sizeof_off_t=`cat conftestval`
13054 else
13055 echo "$as_me: program exited with status $ac_status" >&5
13056 echo "$as_me: failed program was:" >&5
13057 sed 's/^/| /' conftest.$ac_ext >&5
13059 ( exit $ac_status )
13060 ac_cv_sizeof_off_t=0
13062 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13069 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_off_t" >&5
13070 echo "${ECHO_T}$ac_cv_sizeof_off_t" >&6; }
13072 cat >>confdefs.h <<_ACEOF
13073 #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
13074 _ACEOF
13077 { echo "$as_me:$LINENO: checking whether to enable large file support" >&5
13078 echo $ECHO_N "checking whether to enable large file support... $ECHO_C" >&6; }
13079 if test "$have_long_long" = yes -a \
13080 "$ac_cv_sizeof_off_t" -gt "$ac_cv_sizeof_long" -a \
13081 "$ac_cv_sizeof_long_long" -ge "$ac_cv_sizeof_off_t"; then
13083 cat >>confdefs.h <<\_ACEOF
13084 #define HAVE_LARGEFILE_SUPPORT 1
13085 _ACEOF
13087 { echo "$as_me:$LINENO: result: yes" >&5
13088 echo "${ECHO_T}yes" >&6; }
13089 else
13090 { echo "$as_me:$LINENO: result: no" >&5
13091 echo "${ECHO_T}no" >&6; }
13094 # AC_CHECK_SIZEOF() doesn't include <time.h>.
13095 { echo "$as_me:$LINENO: checking size of time_t" >&5
13096 echo $ECHO_N "checking size of time_t... $ECHO_C" >&6; }
13097 if test "${ac_cv_sizeof_time_t+set}" = set; then
13098 echo $ECHO_N "(cached) $ECHO_C" >&6
13099 else
13100 if test "$cross_compiling" = yes; then
13101 ac_cv_sizeof_time_t=4
13102 else
13103 cat >conftest.$ac_ext <<_ACEOF
13104 /* confdefs.h. */
13105 _ACEOF
13106 cat confdefs.h >>conftest.$ac_ext
13107 cat >>conftest.$ac_ext <<_ACEOF
13108 /* end confdefs.h. */
13109 #include <stdio.h>
13110 #include <time.h>
13111 main()
13113 FILE *f=fopen("conftestval", "w");
13114 if (!f) exit(1);
13115 fprintf(f, "%d\n", sizeof(time_t));
13116 exit(0);
13118 _ACEOF
13119 rm -f conftest$ac_exeext
13120 if { (ac_try="$ac_link"
13121 case "(($ac_try" in
13122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13123 *) ac_try_echo=$ac_try;;
13124 esac
13125 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13126 (eval "$ac_link") 2>&5
13127 ac_status=$?
13128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13129 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13130 { (case "(($ac_try" in
13131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13132 *) ac_try_echo=$ac_try;;
13133 esac
13134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13135 (eval "$ac_try") 2>&5
13136 ac_status=$?
13137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13138 (exit $ac_status); }; }; then
13139 ac_cv_sizeof_time_t=`cat conftestval`
13140 else
13141 echo "$as_me: program exited with status $ac_status" >&5
13142 echo "$as_me: failed program was:" >&5
13143 sed 's/^/| /' conftest.$ac_ext >&5
13145 ( exit $ac_status )
13146 ac_cv_sizeof_time_t=0
13148 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13155 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_time_t" >&5
13156 echo "${ECHO_T}$ac_cv_sizeof_time_t" >&6; }
13158 cat >>confdefs.h <<_ACEOF
13159 #define SIZEOF_TIME_T $ac_cv_sizeof_time_t
13160 _ACEOF
13164 # if have pthread_t then define SIZEOF_PTHREAD_T
13165 ac_save_cc="$CC"
13166 if test "$ac_cv_kpthread" = "yes"
13167 then CC="$CC -Kpthread"
13168 elif test "$ac_cv_kthread" = "yes"
13169 then CC="$CC -Kthread"
13170 elif test "$ac_cv_pthread" = "yes"
13171 then CC="$CC -pthread"
13173 { echo "$as_me:$LINENO: checking for pthread_t" >&5
13174 echo $ECHO_N "checking for pthread_t... $ECHO_C" >&6; }
13175 have_pthread_t=no
13176 cat >conftest.$ac_ext <<_ACEOF
13177 /* confdefs.h. */
13178 _ACEOF
13179 cat confdefs.h >>conftest.$ac_ext
13180 cat >>conftest.$ac_ext <<_ACEOF
13181 /* end confdefs.h. */
13182 #include <pthread.h>
13184 main ()
13186 pthread_t x; x = *(pthread_t*)0;
13188 return 0;
13190 _ACEOF
13191 rm -f conftest.$ac_objext
13192 if { (ac_try="$ac_compile"
13193 case "(($ac_try" in
13194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13195 *) ac_try_echo=$ac_try;;
13196 esac
13197 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13198 (eval "$ac_compile") 2>conftest.er1
13199 ac_status=$?
13200 grep -v '^ *+' conftest.er1 >conftest.err
13201 rm -f conftest.er1
13202 cat conftest.err >&5
13203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13204 (exit $ac_status); } && {
13205 test -z "$ac_c_werror_flag" ||
13206 test ! -s conftest.err
13207 } && test -s conftest.$ac_objext; then
13208 have_pthread_t=yes
13209 else
13210 echo "$as_me: failed program was:" >&5
13211 sed 's/^/| /' conftest.$ac_ext >&5
13216 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13217 { echo "$as_me:$LINENO: result: $have_pthread_t" >&5
13218 echo "${ECHO_T}$have_pthread_t" >&6; }
13219 if test "$have_pthread_t" = yes ; then
13220 # AC_CHECK_SIZEOF() doesn't include <pthread.h>.
13221 { echo "$as_me:$LINENO: checking size of pthread_t" >&5
13222 echo $ECHO_N "checking size of pthread_t... $ECHO_C" >&6; }
13223 if test "${ac_cv_sizeof_pthread_t+set}" = set; then
13224 echo $ECHO_N "(cached) $ECHO_C" >&6
13225 else
13226 if test "$cross_compiling" = yes; then
13227 ac_cv_sizeof_pthread_t=4
13228 else
13229 cat >conftest.$ac_ext <<_ACEOF
13230 /* confdefs.h. */
13231 _ACEOF
13232 cat confdefs.h >>conftest.$ac_ext
13233 cat >>conftest.$ac_ext <<_ACEOF
13234 /* end confdefs.h. */
13235 #include <stdio.h>
13236 #include <pthread.h>
13237 main()
13239 FILE *f=fopen("conftestval", "w");
13240 if (!f) exit(1);
13241 fprintf(f, "%d\n", sizeof(pthread_t));
13242 exit(0);
13244 _ACEOF
13245 rm -f conftest$ac_exeext
13246 if { (ac_try="$ac_link"
13247 case "(($ac_try" in
13248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13249 *) ac_try_echo=$ac_try;;
13250 esac
13251 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13252 (eval "$ac_link") 2>&5
13253 ac_status=$?
13254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13255 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13256 { (case "(($ac_try" in
13257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13258 *) ac_try_echo=$ac_try;;
13259 esac
13260 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13261 (eval "$ac_try") 2>&5
13262 ac_status=$?
13263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13264 (exit $ac_status); }; }; then
13265 ac_cv_sizeof_pthread_t=`cat conftestval`
13266 else
13267 echo "$as_me: program exited with status $ac_status" >&5
13268 echo "$as_me: failed program was:" >&5
13269 sed 's/^/| /' conftest.$ac_ext >&5
13271 ( exit $ac_status )
13272 ac_cv_sizeof_pthread_t=0
13274 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13281 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_pthread_t" >&5
13282 echo "${ECHO_T}$ac_cv_sizeof_pthread_t" >&6; }
13284 cat >>confdefs.h <<_ACEOF
13285 #define SIZEOF_PTHREAD_T $ac_cv_sizeof_pthread_t
13286 _ACEOF
13289 CC="$ac_save_cc"
13291 { echo "$as_me:$LINENO: checking for --enable-toolbox-glue" >&5
13292 echo $ECHO_N "checking for --enable-toolbox-glue... $ECHO_C" >&6; }
13293 # Check whether --enable-toolbox-glue was given.
13294 if test "${enable_toolbox_glue+set}" = set; then
13295 enableval=$enable_toolbox_glue;
13299 if test -z "$enable_toolbox_glue"
13300 then
13301 case $ac_sys_system/$ac_sys_release in
13302 Darwin/*)
13303 enable_toolbox_glue="yes";;
13305 enable_toolbox_glue="no";;
13306 esac
13308 case "$enable_toolbox_glue" in
13309 yes)
13310 extra_machdep_objs="Python/mactoolboxglue.o"
13311 extra_undefs="-u _PyMac_Error"
13313 cat >>confdefs.h <<\_ACEOF
13314 #define USE_TOOLBOX_OBJECT_GLUE 1
13315 _ACEOF
13319 extra_machdep_objs=""
13320 extra_undefs=""
13322 esac
13323 { echo "$as_me:$LINENO: result: $enable_toolbox_glue" >&5
13324 echo "${ECHO_T}$enable_toolbox_glue" >&6; }
13328 case $ac_sys_system/$ac_sys_release in
13329 Darwin/[01567]\..*)
13330 OTHER_LIBTOOL_OPT="-prebind -seg1addr 0x10000000"
13332 Darwin/*)
13333 OTHER_LIBTOOL_OPT=""
13335 esac
13338 case $ac_sys_system/$ac_sys_release in
13339 Darwin/[01567]\..*)
13340 LIBTOOL_CRUFT="-framework System -lcc_dynamic"
13341 if test "${enable_universalsdk}"; then
13343 else
13344 LIBTOOL_CRUFT="${LIBTOOL_CRUFT} -arch_only `arch`"
13346 LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -install_name $(PYTHONFRAMEWORKINSTALLDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
13347 LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -compatibility_version $(VERSION) -current_version $(VERSION)';;
13348 Darwin/*)
13349 gcc_version=`gcc -v 2>&1 | grep version | cut -d\ -f3`
13350 if test ${gcc_version} '<' 4.0
13351 then
13352 LIBTOOL_CRUFT="-lcc_dynamic"
13353 else
13354 LIBTOOL_CRUFT=""
13356 LIBTOOL_CRUFT=$LIBTOOL_CRUFT" -lSystem -lSystemStubs -arch_only `arch`"
13357 LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -install_name $(PYTHONFRAMEWORKINSTALLDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
13358 LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -compatibility_version $(VERSION) -current_version $(VERSION)';;
13359 esac
13361 { echo "$as_me:$LINENO: checking for --enable-framework" >&5
13362 echo $ECHO_N "checking for --enable-framework... $ECHO_C" >&6; }
13363 if test "$enable_framework"
13364 then
13365 BASECFLAGS="$BASECFLAGS -fno-common -dynamic"
13366 # -F. is needed to allow linking to the framework while
13367 # in the build location.
13369 cat >>confdefs.h <<\_ACEOF
13370 #define WITH_NEXT_FRAMEWORK 1
13371 _ACEOF
13373 { echo "$as_me:$LINENO: result: yes" >&5
13374 echo "${ECHO_T}yes" >&6; }
13375 if test $enable_shared = "yes"
13376 then
13377 { { echo "$as_me:$LINENO: error: Specifying both --enable-shared and --enable-framework is not supported, use only --enable-framework instead" >&5
13378 echo "$as_me: error: Specifying both --enable-shared and --enable-framework is not supported, use only --enable-framework instead" >&2;}
13379 { (exit 1); exit 1; }; }
13381 else
13382 { echo "$as_me:$LINENO: result: no" >&5
13383 echo "${ECHO_T}no" >&6; }
13386 { echo "$as_me:$LINENO: checking for dyld" >&5
13387 echo $ECHO_N "checking for dyld... $ECHO_C" >&6; }
13388 case $ac_sys_system/$ac_sys_release in
13389 Darwin/*)
13391 cat >>confdefs.h <<\_ACEOF
13392 #define WITH_DYLD 1
13393 _ACEOF
13395 { echo "$as_me:$LINENO: result: always on for Darwin" >&5
13396 echo "${ECHO_T}always on for Darwin" >&6; }
13399 { echo "$as_me:$LINENO: result: no" >&5
13400 echo "${ECHO_T}no" >&6; }
13402 esac
13404 # Set info about shared libraries.
13410 # SO is the extension of shared libraries `(including the dot!)
13411 # -- usually .so, .sl on HP-UX, .dll on Cygwin
13412 { echo "$as_me:$LINENO: checking SO" >&5
13413 echo $ECHO_N "checking SO... $ECHO_C" >&6; }
13414 if test -z "$SO"
13415 then
13416 case $ac_sys_system in
13417 hp*|HP*)
13418 case `uname -m` in
13419 ia64) SO=.so;;
13420 *) SO=.sl;;
13421 esac
13423 CYGWIN*) SO=.dll;;
13424 *) SO=.so;;
13425 esac
13426 else
13427 # this might also be a termcap variable, see #610332
13428 echo
13429 echo '====================================================================='
13430 echo '+ +'
13431 echo '+ WARNING: You have set SO in your environment. +'
13432 echo '+ Do you really mean to change the extension for shared libraries? +'
13433 echo '+ Continuing in 10 seconds to let you to ponder. +'
13434 echo '+ +'
13435 echo '====================================================================='
13436 sleep 10
13438 { echo "$as_me:$LINENO: result: $SO" >&5
13439 echo "${ECHO_T}$SO" >&6; }
13442 cat >>confdefs.h <<_ACEOF
13443 #define SHLIB_EXT "$SO"
13444 _ACEOF
13446 # LDSHARED is the ld *command* used to create shared library
13447 # -- "cc -G" on SunOS 5.x, "ld -shared" on IRIX 5
13448 # (Shared libraries in this instance are shared modules to be loaded into
13449 # Python, as opposed to building Python itself as a shared library.)
13450 { echo "$as_me:$LINENO: checking LDSHARED" >&5
13451 echo $ECHO_N "checking LDSHARED... $ECHO_C" >&6; }
13452 if test -z "$LDSHARED"
13453 then
13454 case $ac_sys_system/$ac_sys_release in
13455 AIX*)
13456 BLDSHARED="\$(srcdir)/Modules/ld_so_aix \$(CC) -bI:Modules/python.exp"
13457 LDSHARED="\$(BINLIBDEST)/config/ld_so_aix \$(CC) -bI:\$(BINLIBDEST)/config/python.exp"
13459 BeOS*)
13460 BLDSHARED="\$(srcdir)/Modules/ld_so_beos $LDLIBRARY"
13461 LDSHARED="\$(BINLIBDEST)/config/ld_so_beos \$(LIBDIR)/$LDLIBRARY"
13463 IRIX/5*) LDSHARED="ld -shared";;
13464 IRIX*/6*) LDSHARED="ld ${SGI_ABI} -shared -all";;
13465 SunOS/5*)
13466 if test "$GCC" = "yes"
13467 then LDSHARED='$(CC) -shared'
13468 else LDSHARED='$(CC) -G';
13469 fi ;;
13470 hp*|HP*)
13471 if test "$GCC" = "yes"
13472 then LDSHARED='$(CC) -shared'
13473 else LDSHARED='ld -b';
13474 fi ;;
13475 OSF*) LDSHARED="ld -shared -expect_unresolved \"*\"";;
13476 Darwin/1.3*)
13477 LDSHARED='$(CC) $(LDFLAGS) -bundle'
13478 if test "$enable_framework" ; then
13479 # Link against the framework. All externals should be defined.
13480 BLDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
13481 LDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
13482 else
13483 # No framework. Ignore undefined symbols, assuming they come from Python
13484 LDSHARED="$LDSHARED -undefined suppress"
13485 fi ;;
13486 Darwin/1.4*|Darwin/5.*|Darwin/6.*)
13487 LDSHARED='$(CC) $(LDFLAGS) -bundle'
13488 if test "$enable_framework" ; then
13489 # Link against the framework. All externals should be defined.
13490 BLDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
13491 LDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
13492 else
13493 # No framework, use the Python app as bundle-loader
13494 BLDSHARED="$LDSHARED "'-bundle_loader $(BUILDPYTHON)'
13495 LDSHARED="$LDSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)'
13496 fi ;;
13497 Darwin/*)
13498 # Use -undefined dynamic_lookup whenever possible (10.3 and later).
13499 # This allows an extension to be used in any Python
13501 if test ${MACOSX_DEPLOYMENT_TARGET} '>' 10.2
13502 then
13503 if test "${enable_universalsdk}"; then
13504 LDFLAGS="${UNIVERSAL_ARCH_FLAGS} -isysroot ${UNIVERSALSDK} ${LDFLAGS}"
13506 LDSHARED='$(CC) $(LDFLAGS) -bundle -undefined dynamic_lookup'
13507 BLDSHARED="$LDSHARED"
13508 else
13509 LDSHARED='$(CC) $(LDFLAGS) -bundle'
13510 if test "$enable_framework" ; then
13511 # Link against the framework. All externals should be defined.
13512 BLDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
13513 LDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
13514 else
13515 # No framework, use the Python app as bundle-loader
13516 BLDSHARED="$LDSHARED "'-bundle_loader $(BUILDPYTHON)'
13517 LDSHARED="$LDSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)'
13521 Linux*|GNU*|QNX*) LDSHARED='$(CC) -shared';;
13522 BSD/OS*/4*) LDSHARED="gcc -shared";;
13523 FreeBSD*)
13524 if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]
13525 then
13526 LDSHARED="$CC -shared ${LDFLAGS}"
13527 else
13528 LDSHARED="ld -Bshareable ${LDFLAGS}"
13529 fi;;
13530 OpenBSD*)
13531 if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]
13532 then
13533 LDSHARED='$(CC) -shared $(CCSHARED) ${LDFLAGS}'
13534 else
13535 case `uname -r` in
13536 [01].* | 2.[0-7] | 2.[0-7].*)
13537 LDSHARED="ld -Bshareable ${LDFLAGS}"
13540 LDSHARED='$(CC) -shared $(CCSHARED) ${LDFLAGS}'
13542 esac
13543 fi;;
13544 NetBSD*|DragonFly*) LDSHARED="cc -shared ${LDFLAGS}";;
13545 OpenUNIX*|UnixWare*)
13546 if test "$GCC" = "yes"
13547 then LDSHARED='$(CC) -shared'
13548 else LDSHARED='$(CC) -G'
13549 fi;;
13550 SCO_SV*) LDSHARED='$(CC) -Wl,-G,-Bexport';;
13551 Monterey*) LDSHARED="cc -G -dy -Bdynamic -Bexport -L/usr/lib/ia64l64";;
13552 CYGWIN*) LDSHARED="gcc -shared -Wl,--enable-auto-image-base";;
13553 atheos*) LDSHARED="gcc -shared";;
13554 *) LDSHARED="ld";;
13555 esac
13557 { echo "$as_me:$LINENO: result: $LDSHARED" >&5
13558 echo "${ECHO_T}$LDSHARED" >&6; }
13559 BLDSHARED=${BLDSHARED-$LDSHARED}
13560 # CCSHARED are the C *flags* used to create objects to go into a shared
13561 # library (module) -- this is only needed for a few systems
13562 { echo "$as_me:$LINENO: checking CCSHARED" >&5
13563 echo $ECHO_N "checking CCSHARED... $ECHO_C" >&6; }
13564 if test -z "$CCSHARED"
13565 then
13566 case $ac_sys_system/$ac_sys_release in
13567 SunOS*) if test "$GCC" = yes;
13568 then CCSHARED="-fPIC";
13569 elif test `uname -p` = sparc;
13570 then CCSHARED="-xcode=pic32";
13571 else CCSHARED="-Kpic";
13572 fi;;
13573 hp*|HP*) if test "$GCC" = yes;
13574 then CCSHARED="-fPIC";
13575 else CCSHARED="+z";
13576 fi;;
13577 Linux*|GNU*) CCSHARED="-fPIC";;
13578 BSD/OS*/4*) CCSHARED="-fpic";;
13579 FreeBSD*|NetBSD*|OpenBSD*|DragonFly*) CCSHARED="-fPIC";;
13580 OpenUNIX*|UnixWare*)
13581 if test "$GCC" = "yes"
13582 then CCSHARED="-fPIC"
13583 else CCSHARED="-KPIC"
13584 fi;;
13585 SCO_SV*)
13586 if test "$GCC" = "yes"
13587 then CCSHARED="-fPIC"
13588 else CCSHARED="-Kpic -belf"
13589 fi;;
13590 Monterey*) CCSHARED="-G";;
13591 IRIX*/6*) case $CC in
13592 *gcc*) CCSHARED="-shared";;
13593 *) CCSHARED="";;
13594 esac;;
13595 atheos*) CCSHARED="-fPIC";;
13596 esac
13598 { echo "$as_me:$LINENO: result: $CCSHARED" >&5
13599 echo "${ECHO_T}$CCSHARED" >&6; }
13600 # LINKFORSHARED are the flags passed to the $(CC) command that links
13601 # the python executable -- this is only needed for a few systems
13602 { echo "$as_me:$LINENO: checking LINKFORSHARED" >&5
13603 echo $ECHO_N "checking LINKFORSHARED... $ECHO_C" >&6; }
13604 if test -z "$LINKFORSHARED"
13605 then
13606 case $ac_sys_system/$ac_sys_release in
13607 AIX*) LINKFORSHARED='-Wl,-bE:Modules/python.exp -lld';;
13608 hp*|HP*)
13609 LINKFORSHARED="-Wl,-E -Wl,+s";;
13610 # LINKFORSHARED="-Wl,-E -Wl,+s -Wl,+b\$(BINLIBDEST)/lib-dynload";;
13611 BSD/OS/4*) LINKFORSHARED="-Xlinker -export-dynamic";;
13612 Linux*|GNU*) LINKFORSHARED="-Xlinker -export-dynamic";;
13613 # -u libsys_s pulls in all symbols in libsys
13614 Darwin/*)
13615 # -u _PyMac_Error is needed to pull in the mac toolbox glue,
13616 # which is
13617 # not used by the core itself but which needs to be in the core so
13618 # that dynamically loaded extension modules have access to it.
13619 # -prebind is no longer used, because it actually seems to give a
13620 # slowdown in stead of a speedup, maybe due to the large number of
13621 # dynamic loads Python does.
13623 LINKFORSHARED="$extra_undefs"
13624 if test "$enable_framework"
13625 then
13626 LINKFORSHARED="$LINKFORSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
13628 LINKFORSHARED="$LINKFORSHARED";;
13629 OpenUNIX*|UnixWare*) LINKFORSHARED="-Wl,-Bexport";;
13630 SCO_SV*) LINKFORSHARED="-Wl,-Bexport";;
13631 ReliantUNIX*) LINKFORSHARED="-W1 -Blargedynsym";;
13632 FreeBSD*|NetBSD*|OpenBSD*|DragonFly*)
13633 if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]
13634 then
13635 LINKFORSHARED="-Wl,--export-dynamic"
13636 fi;;
13637 SunOS/5*) case $CC in
13638 *gcc*)
13639 if $CC -Xlinker --help 2>&1 | grep export-dynamic >/dev/null
13640 then
13641 LINKFORSHARED="-Xlinker --export-dynamic"
13642 fi;;
13643 esac;;
13644 CYGWIN*)
13645 if test $enable_shared = "no"
13646 then
13647 LINKFORSHARED='-Wl,--out-implib=$(LDLIBRARY)'
13648 fi;;
13649 QNX*)
13650 # -Wl,-E causes the symbols to be added to the dynamic
13651 # symbol table so that they can be found when a module
13652 # is loaded. -N 2048K causes the stack size to be set
13653 # to 2048 kilobytes so that the stack doesn't overflow
13654 # when running test_compile.py.
13655 LINKFORSHARED='-Wl,-E -N 2048K';;
13656 esac
13658 { echo "$as_me:$LINENO: result: $LINKFORSHARED" >&5
13659 echo "${ECHO_T}$LINKFORSHARED" >&6; }
13663 { echo "$as_me:$LINENO: checking CFLAGSFORSHARED" >&5
13664 echo $ECHO_N "checking CFLAGSFORSHARED... $ECHO_C" >&6; }
13665 if test ! "$LIBRARY" = "$LDLIBRARY"
13666 then
13667 case $ac_sys_system in
13668 CYGWIN*)
13669 # Cygwin needs CCSHARED when building extension DLLs
13670 # but not when building the interpreter DLL.
13671 CFLAGSFORSHARED='';;
13673 CFLAGSFORSHARED='$(CCSHARED)'
13674 esac
13676 { echo "$as_me:$LINENO: result: $CFLAGSFORSHARED" >&5
13677 echo "${ECHO_T}$CFLAGSFORSHARED" >&6; }
13679 # SHLIBS are libraries (except -lc and -lm) to link to the python shared
13680 # library (with --enable-shared).
13681 # For platforms on which shared libraries are not allowed to have unresolved
13682 # symbols, this must be set to $(LIBS) (expanded by make). We do this even
13683 # if it is not required, since it creates a dependency of the shared library
13684 # to LIBS. This, in turn, means that applications linking the shared libpython
13685 # don't need to link LIBS explicitly. The default should be only changed
13686 # on systems where this approach causes problems.
13688 { echo "$as_me:$LINENO: checking SHLIBS" >&5
13689 echo $ECHO_N "checking SHLIBS... $ECHO_C" >&6; }
13690 case "$ac_sys_system" in
13692 SHLIBS='$(LIBS)';;
13693 esac
13694 { echo "$as_me:$LINENO: result: $SHLIBS" >&5
13695 echo "${ECHO_T}$SHLIBS" >&6; }
13698 # checks for libraries
13700 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
13701 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
13702 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
13703 echo $ECHO_N "(cached) $ECHO_C" >&6
13704 else
13705 ac_check_lib_save_LIBS=$LIBS
13706 LIBS="-ldl $LIBS"
13707 cat >conftest.$ac_ext <<_ACEOF
13708 /* confdefs.h. */
13709 _ACEOF
13710 cat confdefs.h >>conftest.$ac_ext
13711 cat >>conftest.$ac_ext <<_ACEOF
13712 /* end confdefs.h. */
13714 /* Override any GCC internal prototype to avoid an error.
13715 Use char because int might match the return type of a GCC
13716 builtin and then its argument prototype would still apply. */
13717 #ifdef __cplusplus
13718 extern "C"
13719 #endif
13720 char dlopen ();
13722 main ()
13724 return dlopen ();
13726 return 0;
13728 _ACEOF
13729 rm -f conftest.$ac_objext conftest$ac_exeext
13730 if { (ac_try="$ac_link"
13731 case "(($ac_try" in
13732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13733 *) ac_try_echo=$ac_try;;
13734 esac
13735 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13736 (eval "$ac_link") 2>conftest.er1
13737 ac_status=$?
13738 grep -v '^ *+' conftest.er1 >conftest.err
13739 rm -f conftest.er1
13740 cat conftest.err >&5
13741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13742 (exit $ac_status); } && {
13743 test -z "$ac_c_werror_flag" ||
13744 test ! -s conftest.err
13745 } && test -s conftest$ac_exeext &&
13746 $as_test_x conftest$ac_exeext; then
13747 ac_cv_lib_dl_dlopen=yes
13748 else
13749 echo "$as_me: failed program was:" >&5
13750 sed 's/^/| /' conftest.$ac_ext >&5
13752 ac_cv_lib_dl_dlopen=no
13755 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13756 conftest$ac_exeext conftest.$ac_ext
13757 LIBS=$ac_check_lib_save_LIBS
13759 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
13760 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
13761 if test $ac_cv_lib_dl_dlopen = yes; then
13762 cat >>confdefs.h <<_ACEOF
13763 #define HAVE_LIBDL 1
13764 _ACEOF
13766 LIBS="-ldl $LIBS"
13769 # Dynamic linking for SunOS/Solaris and SYSV
13771 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
13772 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
13773 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
13774 echo $ECHO_N "(cached) $ECHO_C" >&6
13775 else
13776 ac_check_lib_save_LIBS=$LIBS
13777 LIBS="-ldld $LIBS"
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 /* Override any GCC internal prototype to avoid an error.
13786 Use char because int might match the return type of a GCC
13787 builtin and then its argument prototype would still apply. */
13788 #ifdef __cplusplus
13789 extern "C"
13790 #endif
13791 char shl_load ();
13793 main ()
13795 return shl_load ();
13797 return 0;
13799 _ACEOF
13800 rm -f conftest.$ac_objext conftest$ac_exeext
13801 if { (ac_try="$ac_link"
13802 case "(($ac_try" in
13803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13804 *) ac_try_echo=$ac_try;;
13805 esac
13806 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13807 (eval "$ac_link") 2>conftest.er1
13808 ac_status=$?
13809 grep -v '^ *+' conftest.er1 >conftest.err
13810 rm -f conftest.er1
13811 cat conftest.err >&5
13812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13813 (exit $ac_status); } && {
13814 test -z "$ac_c_werror_flag" ||
13815 test ! -s conftest.err
13816 } && test -s conftest$ac_exeext &&
13817 $as_test_x conftest$ac_exeext; then
13818 ac_cv_lib_dld_shl_load=yes
13819 else
13820 echo "$as_me: failed program was:" >&5
13821 sed 's/^/| /' conftest.$ac_ext >&5
13823 ac_cv_lib_dld_shl_load=no
13826 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13827 conftest$ac_exeext conftest.$ac_ext
13828 LIBS=$ac_check_lib_save_LIBS
13830 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
13831 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
13832 if test $ac_cv_lib_dld_shl_load = yes; then
13833 cat >>confdefs.h <<_ACEOF
13834 #define HAVE_LIBDLD 1
13835 _ACEOF
13837 LIBS="-ldld $LIBS"
13840 # Dynamic linking for HP-UX
13842 # only check for sem_init if thread support is requested
13843 if test "$with_threads" = "yes" -o -z "$with_threads"; then
13844 { echo "$as_me:$LINENO: checking for library containing sem_init" >&5
13845 echo $ECHO_N "checking for library containing sem_init... $ECHO_C" >&6; }
13846 if test "${ac_cv_search_sem_init+set}" = set; then
13847 echo $ECHO_N "(cached) $ECHO_C" >&6
13848 else
13849 ac_func_search_save_LIBS=$LIBS
13850 cat >conftest.$ac_ext <<_ACEOF
13851 /* confdefs.h. */
13852 _ACEOF
13853 cat confdefs.h >>conftest.$ac_ext
13854 cat >>conftest.$ac_ext <<_ACEOF
13855 /* end confdefs.h. */
13857 /* Override any GCC internal prototype to avoid an error.
13858 Use char because int might match the return type of a GCC
13859 builtin and then its argument prototype would still apply. */
13860 #ifdef __cplusplus
13861 extern "C"
13862 #endif
13863 char sem_init ();
13865 main ()
13867 return sem_init ();
13869 return 0;
13871 _ACEOF
13872 for ac_lib in '' pthread rt posix4; do
13873 if test -z "$ac_lib"; then
13874 ac_res="none required"
13875 else
13876 ac_res=-l$ac_lib
13877 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13879 rm -f conftest.$ac_objext conftest$ac_exeext
13880 if { (ac_try="$ac_link"
13881 case "(($ac_try" in
13882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13883 *) ac_try_echo=$ac_try;;
13884 esac
13885 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13886 (eval "$ac_link") 2>conftest.er1
13887 ac_status=$?
13888 grep -v '^ *+' conftest.er1 >conftest.err
13889 rm -f conftest.er1
13890 cat conftest.err >&5
13891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13892 (exit $ac_status); } && {
13893 test -z "$ac_c_werror_flag" ||
13894 test ! -s conftest.err
13895 } && test -s conftest$ac_exeext &&
13896 $as_test_x conftest$ac_exeext; then
13897 ac_cv_search_sem_init=$ac_res
13898 else
13899 echo "$as_me: failed program was:" >&5
13900 sed 's/^/| /' conftest.$ac_ext >&5
13905 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13906 conftest$ac_exeext
13907 if test "${ac_cv_search_sem_init+set}" = set; then
13908 break
13910 done
13911 if test "${ac_cv_search_sem_init+set}" = set; then
13913 else
13914 ac_cv_search_sem_init=no
13916 rm conftest.$ac_ext
13917 LIBS=$ac_func_search_save_LIBS
13919 { echo "$as_me:$LINENO: result: $ac_cv_search_sem_init" >&5
13920 echo "${ECHO_T}$ac_cv_search_sem_init" >&6; }
13921 ac_res=$ac_cv_search_sem_init
13922 if test "$ac_res" != no; then
13923 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13926 # 'Real Time' functions on Solaris
13927 # posix4 on Solaris 2.6
13928 # pthread (first!) on Linux
13931 # check if we need libintl for locale functions
13932 { echo "$as_me:$LINENO: checking for textdomain in -lintl" >&5
13933 echo $ECHO_N "checking for textdomain in -lintl... $ECHO_C" >&6; }
13934 if test "${ac_cv_lib_intl_textdomain+set}" = set; then
13935 echo $ECHO_N "(cached) $ECHO_C" >&6
13936 else
13937 ac_check_lib_save_LIBS=$LIBS
13938 LIBS="-lintl $LIBS"
13939 cat >conftest.$ac_ext <<_ACEOF
13940 /* confdefs.h. */
13941 _ACEOF
13942 cat confdefs.h >>conftest.$ac_ext
13943 cat >>conftest.$ac_ext <<_ACEOF
13944 /* end confdefs.h. */
13946 /* Override any GCC internal prototype to avoid an error.
13947 Use char because int might match the return type of a GCC
13948 builtin and then its argument prototype would still apply. */
13949 #ifdef __cplusplus
13950 extern "C"
13951 #endif
13952 char textdomain ();
13954 main ()
13956 return textdomain ();
13958 return 0;
13960 _ACEOF
13961 rm -f conftest.$ac_objext conftest$ac_exeext
13962 if { (ac_try="$ac_link"
13963 case "(($ac_try" in
13964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13965 *) ac_try_echo=$ac_try;;
13966 esac
13967 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13968 (eval "$ac_link") 2>conftest.er1
13969 ac_status=$?
13970 grep -v '^ *+' conftest.er1 >conftest.err
13971 rm -f conftest.er1
13972 cat conftest.err >&5
13973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13974 (exit $ac_status); } && {
13975 test -z "$ac_c_werror_flag" ||
13976 test ! -s conftest.err
13977 } && test -s conftest$ac_exeext &&
13978 $as_test_x conftest$ac_exeext; then
13979 ac_cv_lib_intl_textdomain=yes
13980 else
13981 echo "$as_me: failed program was:" >&5
13982 sed 's/^/| /' conftest.$ac_ext >&5
13984 ac_cv_lib_intl_textdomain=no
13987 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13988 conftest$ac_exeext conftest.$ac_ext
13989 LIBS=$ac_check_lib_save_LIBS
13991 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_textdomain" >&5
13992 echo "${ECHO_T}$ac_cv_lib_intl_textdomain" >&6; }
13993 if test $ac_cv_lib_intl_textdomain = yes; then
13995 cat >>confdefs.h <<\_ACEOF
13996 #define WITH_LIBINTL 1
13997 _ACEOF
14002 # checks for system dependent C++ extensions support
14003 case "$ac_sys_system" in
14004 AIX*) { echo "$as_me:$LINENO: checking for genuine AIX C++ extensions support" >&5
14005 echo $ECHO_N "checking for genuine AIX C++ extensions support... $ECHO_C" >&6; }
14006 cat >conftest.$ac_ext <<_ACEOF
14007 /* confdefs.h. */
14008 _ACEOF
14009 cat confdefs.h >>conftest.$ac_ext
14010 cat >>conftest.$ac_ext <<_ACEOF
14011 /* end confdefs.h. */
14012 #include "/usr/lpp/xlC/include/load.h"
14014 main ()
14016 loadAndInit("", 0, "")
14018 return 0;
14020 _ACEOF
14021 rm -f conftest.$ac_objext conftest$ac_exeext
14022 if { (ac_try="$ac_link"
14023 case "(($ac_try" in
14024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14025 *) ac_try_echo=$ac_try;;
14026 esac
14027 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14028 (eval "$ac_link") 2>conftest.er1
14029 ac_status=$?
14030 grep -v '^ *+' conftest.er1 >conftest.err
14031 rm -f conftest.er1
14032 cat conftest.err >&5
14033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14034 (exit $ac_status); } && {
14035 test -z "$ac_c_werror_flag" ||
14036 test ! -s conftest.err
14037 } && test -s conftest$ac_exeext &&
14038 $as_test_x conftest$ac_exeext; then
14040 cat >>confdefs.h <<\_ACEOF
14041 #define AIX_GENUINE_CPLUSPLUS 1
14042 _ACEOF
14044 { echo "$as_me:$LINENO: result: yes" >&5
14045 echo "${ECHO_T}yes" >&6; }
14046 else
14047 echo "$as_me: failed program was:" >&5
14048 sed 's/^/| /' conftest.$ac_ext >&5
14050 { echo "$as_me:$LINENO: result: no" >&5
14051 echo "${ECHO_T}no" >&6; }
14054 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14055 conftest$ac_exeext conftest.$ac_ext;;
14056 *) ;;
14057 esac
14059 # Most SVR4 platforms (e.g. Solaris) need -lsocket and -lnsl.
14060 # BeOS' sockets are stashed in libnet.
14061 { echo "$as_me:$LINENO: checking for t_open in -lnsl" >&5
14062 echo $ECHO_N "checking for t_open in -lnsl... $ECHO_C" >&6; }
14063 if test "${ac_cv_lib_nsl_t_open+set}" = set; then
14064 echo $ECHO_N "(cached) $ECHO_C" >&6
14065 else
14066 ac_check_lib_save_LIBS=$LIBS
14067 LIBS="-lnsl $LIBS"
14068 cat >conftest.$ac_ext <<_ACEOF
14069 /* confdefs.h. */
14070 _ACEOF
14071 cat confdefs.h >>conftest.$ac_ext
14072 cat >>conftest.$ac_ext <<_ACEOF
14073 /* end confdefs.h. */
14075 /* Override any GCC internal prototype to avoid an error.
14076 Use char because int might match the return type of a GCC
14077 builtin and then its argument prototype would still apply. */
14078 #ifdef __cplusplus
14079 extern "C"
14080 #endif
14081 char t_open ();
14083 main ()
14085 return t_open ();
14087 return 0;
14089 _ACEOF
14090 rm -f conftest.$ac_objext conftest$ac_exeext
14091 if { (ac_try="$ac_link"
14092 case "(($ac_try" in
14093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14094 *) ac_try_echo=$ac_try;;
14095 esac
14096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14097 (eval "$ac_link") 2>conftest.er1
14098 ac_status=$?
14099 grep -v '^ *+' conftest.er1 >conftest.err
14100 rm -f conftest.er1
14101 cat conftest.err >&5
14102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14103 (exit $ac_status); } && {
14104 test -z "$ac_c_werror_flag" ||
14105 test ! -s conftest.err
14106 } && test -s conftest$ac_exeext &&
14107 $as_test_x conftest$ac_exeext; then
14108 ac_cv_lib_nsl_t_open=yes
14109 else
14110 echo "$as_me: failed program was:" >&5
14111 sed 's/^/| /' conftest.$ac_ext >&5
14113 ac_cv_lib_nsl_t_open=no
14116 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14117 conftest$ac_exeext conftest.$ac_ext
14118 LIBS=$ac_check_lib_save_LIBS
14120 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_t_open" >&5
14121 echo "${ECHO_T}$ac_cv_lib_nsl_t_open" >&6; }
14122 if test $ac_cv_lib_nsl_t_open = yes; then
14123 LIBS="-lnsl $LIBS"
14125 # SVR4
14126 { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
14127 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
14128 if test "${ac_cv_lib_socket_socket+set}" = set; then
14129 echo $ECHO_N "(cached) $ECHO_C" >&6
14130 else
14131 ac_check_lib_save_LIBS=$LIBS
14132 LIBS="-lsocket $LIBS $LIBS"
14133 cat >conftest.$ac_ext <<_ACEOF
14134 /* confdefs.h. */
14135 _ACEOF
14136 cat confdefs.h >>conftest.$ac_ext
14137 cat >>conftest.$ac_ext <<_ACEOF
14138 /* end confdefs.h. */
14140 /* Override any GCC internal prototype to avoid an error.
14141 Use char because int might match the return type of a GCC
14142 builtin and then its argument prototype would still apply. */
14143 #ifdef __cplusplus
14144 extern "C"
14145 #endif
14146 char socket ();
14148 main ()
14150 return socket ();
14152 return 0;
14154 _ACEOF
14155 rm -f conftest.$ac_objext conftest$ac_exeext
14156 if { (ac_try="$ac_link"
14157 case "(($ac_try" in
14158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14159 *) ac_try_echo=$ac_try;;
14160 esac
14161 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14162 (eval "$ac_link") 2>conftest.er1
14163 ac_status=$?
14164 grep -v '^ *+' conftest.er1 >conftest.err
14165 rm -f conftest.er1
14166 cat conftest.err >&5
14167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14168 (exit $ac_status); } && {
14169 test -z "$ac_c_werror_flag" ||
14170 test ! -s conftest.err
14171 } && test -s conftest$ac_exeext &&
14172 $as_test_x conftest$ac_exeext; then
14173 ac_cv_lib_socket_socket=yes
14174 else
14175 echo "$as_me: failed program was:" >&5
14176 sed 's/^/| /' conftest.$ac_ext >&5
14178 ac_cv_lib_socket_socket=no
14181 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14182 conftest$ac_exeext conftest.$ac_ext
14183 LIBS=$ac_check_lib_save_LIBS
14185 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
14186 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; }
14187 if test $ac_cv_lib_socket_socket = yes; then
14188 LIBS="-lsocket $LIBS"
14190 # SVR4 sockets
14192 case "$ac_sys_system" in
14193 BeOS*)
14194 { echo "$as_me:$LINENO: checking for socket in -lnet" >&5
14195 echo $ECHO_N "checking for socket in -lnet... $ECHO_C" >&6; }
14196 if test "${ac_cv_lib_net_socket+set}" = set; then
14197 echo $ECHO_N "(cached) $ECHO_C" >&6
14198 else
14199 ac_check_lib_save_LIBS=$LIBS
14200 LIBS="-lnet $LIBS $LIBS"
14201 cat >conftest.$ac_ext <<_ACEOF
14202 /* confdefs.h. */
14203 _ACEOF
14204 cat confdefs.h >>conftest.$ac_ext
14205 cat >>conftest.$ac_ext <<_ACEOF
14206 /* end confdefs.h. */
14208 /* Override any GCC internal prototype to avoid an error.
14209 Use char because int might match the return type of a GCC
14210 builtin and then its argument prototype would still apply. */
14211 #ifdef __cplusplus
14212 extern "C"
14213 #endif
14214 char socket ();
14216 main ()
14218 return socket ();
14220 return 0;
14222 _ACEOF
14223 rm -f conftest.$ac_objext conftest$ac_exeext
14224 if { (ac_try="$ac_link"
14225 case "(($ac_try" in
14226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14227 *) ac_try_echo=$ac_try;;
14228 esac
14229 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14230 (eval "$ac_link") 2>conftest.er1
14231 ac_status=$?
14232 grep -v '^ *+' conftest.er1 >conftest.err
14233 rm -f conftest.er1
14234 cat conftest.err >&5
14235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14236 (exit $ac_status); } && {
14237 test -z "$ac_c_werror_flag" ||
14238 test ! -s conftest.err
14239 } && test -s conftest$ac_exeext &&
14240 $as_test_x conftest$ac_exeext; then
14241 ac_cv_lib_net_socket=yes
14242 else
14243 echo "$as_me: failed program was:" >&5
14244 sed 's/^/| /' conftest.$ac_ext >&5
14246 ac_cv_lib_net_socket=no
14249 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14250 conftest$ac_exeext conftest.$ac_ext
14251 LIBS=$ac_check_lib_save_LIBS
14253 { echo "$as_me:$LINENO: result: $ac_cv_lib_net_socket" >&5
14254 echo "${ECHO_T}$ac_cv_lib_net_socket" >&6; }
14255 if test $ac_cv_lib_net_socket = yes; then
14256 LIBS="-lnet $LIBS"
14258 # BeOS
14260 esac
14262 { echo "$as_me:$LINENO: checking for --with-libs" >&5
14263 echo $ECHO_N "checking for --with-libs... $ECHO_C" >&6; }
14265 # Check whether --with-libs was given.
14266 if test "${with_libs+set}" = set; then
14267 withval=$with_libs;
14268 { echo "$as_me:$LINENO: result: $withval" >&5
14269 echo "${ECHO_T}$withval" >&6; }
14270 LIBS="$withval $LIBS"
14272 else
14273 { echo "$as_me:$LINENO: result: no" >&5
14274 echo "${ECHO_T}no" >&6; }
14278 # Check for use of the system libffi library
14279 { echo "$as_me:$LINENO: checking for --with-system-ffi" >&5
14280 echo $ECHO_N "checking for --with-system-ffi... $ECHO_C" >&6; }
14282 # Check whether --with-system_ffi was given.
14283 if test "${with_system_ffi+set}" = set; then
14284 withval=$with_system_ffi;
14288 { echo "$as_me:$LINENO: result: $with_system_ffi" >&5
14289 echo "${ECHO_T}$with_system_ffi" >&6; }
14291 # Check for --with-dbmliborder
14292 { echo "$as_me:$LINENO: checking for --with-dbmliborder" >&5
14293 echo $ECHO_N "checking for --with-dbmliborder... $ECHO_C" >&6; }
14295 # Check whether --with-dbmliborder was given.
14296 if test "${with_dbmliborder+set}" = set; then
14297 withval=$with_dbmliborder;
14298 if test x$with_dbmliborder = xyes
14299 then
14300 { { echo "$as_me:$LINENO: error: proper usage is --with-dbmliborder=db1:db2:..." >&5
14301 echo "$as_me: error: proper usage is --with-dbmliborder=db1:db2:..." >&2;}
14302 { (exit 1); exit 1; }; }
14303 else
14304 for db in `echo $with_dbmliborder | sed 's/:/ /g'`; do
14305 if test x$db != xndbm && test x$db != xgdbm && test x$db != xbdb
14306 then
14307 { { echo "$as_me:$LINENO: error: proper usage is --with-dbmliborder=db1:db2:..." >&5
14308 echo "$as_me: error: proper usage is --with-dbmliborder=db1:db2:..." >&2;}
14309 { (exit 1); exit 1; }; }
14311 done
14315 { echo "$as_me:$LINENO: result: $with_dbmliborder" >&5
14316 echo "${ECHO_T}$with_dbmliborder" >&6; }
14318 # Determine if signalmodule should be used.
14321 { echo "$as_me:$LINENO: checking for --with-signal-module" >&5
14322 echo $ECHO_N "checking for --with-signal-module... $ECHO_C" >&6; }
14324 # Check whether --with-signal-module was given.
14325 if test "${with_signal_module+set}" = set; then
14326 withval=$with_signal_module;
14330 if test -z "$with_signal_module"
14331 then with_signal_module="yes"
14333 { echo "$as_me:$LINENO: result: $with_signal_module" >&5
14334 echo "${ECHO_T}$with_signal_module" >&6; }
14336 if test "${with_signal_module}" = "yes"; then
14337 USE_SIGNAL_MODULE=""
14338 SIGNAL_OBJS=""
14339 else
14340 USE_SIGNAL_MODULE="#"
14341 SIGNAL_OBJS="Parser/intrcheck.o Python/sigcheck.o"
14344 # This is used to generate Setup.config
14346 USE_THREAD_MODULE=""
14348 { echo "$as_me:$LINENO: checking for --with-dec-threads" >&5
14349 echo $ECHO_N "checking for --with-dec-threads... $ECHO_C" >&6; }
14352 # Check whether --with-dec-threads was given.
14353 if test "${with_dec_threads+set}" = set; then
14354 withval=$with_dec_threads;
14355 { echo "$as_me:$LINENO: result: $withval" >&5
14356 echo "${ECHO_T}$withval" >&6; }
14357 LDLAST=-threads
14358 if test "${with_thread+set}" != set; then
14359 with_thread="$withval";
14361 else
14362 { echo "$as_me:$LINENO: result: no" >&5
14363 echo "${ECHO_T}no" >&6; }
14367 # Templates for things AC_DEFINEd more than once.
14368 # For a single AC_DEFINE, no template is needed.
14376 { echo "$as_me:$LINENO: checking for --with-threads" >&5
14377 echo $ECHO_N "checking for --with-threads... $ECHO_C" >&6; }
14379 # Check whether --with-threads was given.
14380 if test "${with_threads+set}" = set; then
14381 withval=$with_threads;
14385 # --with-thread is deprecated, but check for it anyway
14387 # Check whether --with-thread was given.
14388 if test "${with_thread+set}" = set; then
14389 withval=$with_thread; with_threads=$with_thread
14393 if test -z "$with_threads"
14394 then with_threads="yes"
14396 { echo "$as_me:$LINENO: result: $with_threads" >&5
14397 echo "${ECHO_T}$with_threads" >&6; }
14400 if test "$with_threads" = "no"
14401 then
14402 USE_THREAD_MODULE="#"
14403 elif test "$ac_cv_pthread_is_default" = yes
14404 then
14405 cat >>confdefs.h <<\_ACEOF
14406 #define WITH_THREAD 1
14407 _ACEOF
14409 # Defining _REENTRANT on system with POSIX threads should not hurt.
14410 cat >>confdefs.h <<\_ACEOF
14411 #define _REENTRANT 1
14412 _ACEOF
14414 posix_threads=yes
14415 THREADOBJ="Python/thread.o"
14416 elif test "$ac_cv_kpthread" = "yes"
14417 then
14418 CC="$CC -Kpthread"
14419 if test "$ac_cv_cxx_thread" = "yes"; then
14420 CXX="$CXX -Kpthread"
14422 cat >>confdefs.h <<\_ACEOF
14423 #define WITH_THREAD 1
14424 _ACEOF
14426 posix_threads=yes
14427 THREADOBJ="Python/thread.o"
14428 elif test "$ac_cv_kthread" = "yes"
14429 then
14430 CC="$CC -Kthread"
14431 if test "$ac_cv_cxx_thread" = "yes"; then
14432 CXX="$CXX -Kthread"
14434 cat >>confdefs.h <<\_ACEOF
14435 #define WITH_THREAD 1
14436 _ACEOF
14438 posix_threads=yes
14439 THREADOBJ="Python/thread.o"
14440 elif test "$ac_cv_pthread" = "yes"
14441 then
14442 CC="$CC -pthread"
14443 if test "$ac_cv_cxx_thread" = "yes"; then
14444 CXX="$CXX -pthread"
14446 cat >>confdefs.h <<\_ACEOF
14447 #define WITH_THREAD 1
14448 _ACEOF
14450 posix_threads=yes
14451 THREADOBJ="Python/thread.o"
14452 else
14453 if test ! -z "$with_threads" -a -d "$with_threads"
14454 then LDFLAGS="$LDFLAGS -L$with_threads"
14456 if test ! -z "$withval" -a -d "$withval"
14457 then LDFLAGS="$LDFLAGS -L$withval"
14460 # According to the POSIX spec, a pthreads implementation must
14461 # define _POSIX_THREADS in unistd.h. Some apparently don't
14462 # (e.g. gnu pth with pthread emulation)
14463 { echo "$as_me:$LINENO: checking for _POSIX_THREADS in unistd.h" >&5
14464 echo $ECHO_N "checking for _POSIX_THREADS in unistd.h... $ECHO_C" >&6; }
14465 cat >conftest.$ac_ext <<_ACEOF
14466 /* confdefs.h. */
14467 _ACEOF
14468 cat confdefs.h >>conftest.$ac_ext
14469 cat >>conftest.$ac_ext <<_ACEOF
14470 /* end confdefs.h. */
14472 #include <unistd.h>
14473 #ifdef _POSIX_THREADS
14475 #endif
14477 _ACEOF
14478 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14479 $EGREP "yes" >/dev/null 2>&1; then
14480 unistd_defines_pthreads=yes
14481 else
14482 unistd_defines_pthreads=no
14484 rm -f conftest*
14486 { echo "$as_me:$LINENO: result: $unistd_defines_pthreads" >&5
14487 echo "${ECHO_T}$unistd_defines_pthreads" >&6; }
14489 cat >>confdefs.h <<\_ACEOF
14490 #define _REENTRANT 1
14491 _ACEOF
14493 if test "${ac_cv_header_cthreads_h+set}" = set; then
14494 { echo "$as_me:$LINENO: checking for cthreads.h" >&5
14495 echo $ECHO_N "checking for cthreads.h... $ECHO_C" >&6; }
14496 if test "${ac_cv_header_cthreads_h+set}" = set; then
14497 echo $ECHO_N "(cached) $ECHO_C" >&6
14499 { echo "$as_me:$LINENO: result: $ac_cv_header_cthreads_h" >&5
14500 echo "${ECHO_T}$ac_cv_header_cthreads_h" >&6; }
14501 else
14502 # Is the header compilable?
14503 { echo "$as_me:$LINENO: checking cthreads.h usability" >&5
14504 echo $ECHO_N "checking cthreads.h usability... $ECHO_C" >&6; }
14505 cat >conftest.$ac_ext <<_ACEOF
14506 /* confdefs.h. */
14507 _ACEOF
14508 cat confdefs.h >>conftest.$ac_ext
14509 cat >>conftest.$ac_ext <<_ACEOF
14510 /* end confdefs.h. */
14511 $ac_includes_default
14512 #include <cthreads.h>
14513 _ACEOF
14514 rm -f conftest.$ac_objext
14515 if { (ac_try="$ac_compile"
14516 case "(($ac_try" in
14517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14518 *) ac_try_echo=$ac_try;;
14519 esac
14520 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14521 (eval "$ac_compile") 2>conftest.er1
14522 ac_status=$?
14523 grep -v '^ *+' conftest.er1 >conftest.err
14524 rm -f conftest.er1
14525 cat conftest.err >&5
14526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14527 (exit $ac_status); } && {
14528 test -z "$ac_c_werror_flag" ||
14529 test ! -s conftest.err
14530 } && test -s conftest.$ac_objext; then
14531 ac_header_compiler=yes
14532 else
14533 echo "$as_me: failed program was:" >&5
14534 sed 's/^/| /' conftest.$ac_ext >&5
14536 ac_header_compiler=no
14539 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14540 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14541 echo "${ECHO_T}$ac_header_compiler" >&6; }
14543 # Is the header present?
14544 { echo "$as_me:$LINENO: checking cthreads.h presence" >&5
14545 echo $ECHO_N "checking cthreads.h presence... $ECHO_C" >&6; }
14546 cat >conftest.$ac_ext <<_ACEOF
14547 /* confdefs.h. */
14548 _ACEOF
14549 cat confdefs.h >>conftest.$ac_ext
14550 cat >>conftest.$ac_ext <<_ACEOF
14551 /* end confdefs.h. */
14552 #include <cthreads.h>
14553 _ACEOF
14554 if { (ac_try="$ac_cpp conftest.$ac_ext"
14555 case "(($ac_try" in
14556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14557 *) ac_try_echo=$ac_try;;
14558 esac
14559 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14560 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14561 ac_status=$?
14562 grep -v '^ *+' conftest.er1 >conftest.err
14563 rm -f conftest.er1
14564 cat conftest.err >&5
14565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14566 (exit $ac_status); } >/dev/null && {
14567 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14568 test ! -s conftest.err
14569 }; then
14570 ac_header_preproc=yes
14571 else
14572 echo "$as_me: failed program was:" >&5
14573 sed 's/^/| /' conftest.$ac_ext >&5
14575 ac_header_preproc=no
14578 rm -f conftest.err conftest.$ac_ext
14579 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14580 echo "${ECHO_T}$ac_header_preproc" >&6; }
14582 # So? What about this header?
14583 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14584 yes:no: )
14585 { echo "$as_me:$LINENO: WARNING: cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&5
14586 echo "$as_me: WARNING: cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14587 { echo "$as_me:$LINENO: WARNING: cthreads.h: proceeding with the compiler's result" >&5
14588 echo "$as_me: WARNING: cthreads.h: proceeding with the compiler's result" >&2;}
14589 ac_header_preproc=yes
14591 no:yes:* )
14592 { echo "$as_me:$LINENO: WARNING: cthreads.h: present but cannot be compiled" >&5
14593 echo "$as_me: WARNING: cthreads.h: present but cannot be compiled" >&2;}
14594 { echo "$as_me:$LINENO: WARNING: cthreads.h: check for missing prerequisite headers?" >&5
14595 echo "$as_me: WARNING: cthreads.h: check for missing prerequisite headers?" >&2;}
14596 { echo "$as_me:$LINENO: WARNING: cthreads.h: see the Autoconf documentation" >&5
14597 echo "$as_me: WARNING: cthreads.h: see the Autoconf documentation" >&2;}
14598 { echo "$as_me:$LINENO: WARNING: cthreads.h: section \"Present But Cannot Be Compiled\"" >&5
14599 echo "$as_me: WARNING: cthreads.h: section \"Present But Cannot Be Compiled\"" >&2;}
14600 { echo "$as_me:$LINENO: WARNING: cthreads.h: proceeding with the preprocessor's result" >&5
14601 echo "$as_me: WARNING: cthreads.h: proceeding with the preprocessor's result" >&2;}
14602 { echo "$as_me:$LINENO: WARNING: cthreads.h: in the future, the compiler will take precedence" >&5
14603 echo "$as_me: WARNING: cthreads.h: in the future, the compiler will take precedence" >&2;}
14604 ( cat <<\_ASBOX
14605 ## -------------------------------------- ##
14606 ## Report this to http://bugs.python.org/ ##
14607 ## -------------------------------------- ##
14608 _ASBOX
14609 ) | sed "s/^/$as_me: WARNING: /" >&2
14611 esac
14612 { echo "$as_me:$LINENO: checking for cthreads.h" >&5
14613 echo $ECHO_N "checking for cthreads.h... $ECHO_C" >&6; }
14614 if test "${ac_cv_header_cthreads_h+set}" = set; then
14615 echo $ECHO_N "(cached) $ECHO_C" >&6
14616 else
14617 ac_cv_header_cthreads_h=$ac_header_preproc
14619 { echo "$as_me:$LINENO: result: $ac_cv_header_cthreads_h" >&5
14620 echo "${ECHO_T}$ac_cv_header_cthreads_h" >&6; }
14623 if test $ac_cv_header_cthreads_h = yes; then
14624 cat >>confdefs.h <<\_ACEOF
14625 #define WITH_THREAD 1
14626 _ACEOF
14628 cat >>confdefs.h <<\_ACEOF
14629 #define C_THREADS 1
14630 _ACEOF
14633 cat >>confdefs.h <<\_ACEOF
14634 #define HURD_C_THREADS 1
14635 _ACEOF
14637 LIBS="$LIBS -lthreads"
14638 THREADOBJ="Python/thread.o"
14639 else
14641 if test "${ac_cv_header_mach_cthreads_h+set}" = set; then
14642 { echo "$as_me:$LINENO: checking for mach/cthreads.h" >&5
14643 echo $ECHO_N "checking for mach/cthreads.h... $ECHO_C" >&6; }
14644 if test "${ac_cv_header_mach_cthreads_h+set}" = set; then
14645 echo $ECHO_N "(cached) $ECHO_C" >&6
14647 { echo "$as_me:$LINENO: result: $ac_cv_header_mach_cthreads_h" >&5
14648 echo "${ECHO_T}$ac_cv_header_mach_cthreads_h" >&6; }
14649 else
14650 # Is the header compilable?
14651 { echo "$as_me:$LINENO: checking mach/cthreads.h usability" >&5
14652 echo $ECHO_N "checking mach/cthreads.h usability... $ECHO_C" >&6; }
14653 cat >conftest.$ac_ext <<_ACEOF
14654 /* confdefs.h. */
14655 _ACEOF
14656 cat confdefs.h >>conftest.$ac_ext
14657 cat >>conftest.$ac_ext <<_ACEOF
14658 /* end confdefs.h. */
14659 $ac_includes_default
14660 #include <mach/cthreads.h>
14661 _ACEOF
14662 rm -f conftest.$ac_objext
14663 if { (ac_try="$ac_compile"
14664 case "(($ac_try" in
14665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14666 *) ac_try_echo=$ac_try;;
14667 esac
14668 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14669 (eval "$ac_compile") 2>conftest.er1
14670 ac_status=$?
14671 grep -v '^ *+' conftest.er1 >conftest.err
14672 rm -f conftest.er1
14673 cat conftest.err >&5
14674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14675 (exit $ac_status); } && {
14676 test -z "$ac_c_werror_flag" ||
14677 test ! -s conftest.err
14678 } && test -s conftest.$ac_objext; then
14679 ac_header_compiler=yes
14680 else
14681 echo "$as_me: failed program was:" >&5
14682 sed 's/^/| /' conftest.$ac_ext >&5
14684 ac_header_compiler=no
14687 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14688 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14689 echo "${ECHO_T}$ac_header_compiler" >&6; }
14691 # Is the header present?
14692 { echo "$as_me:$LINENO: checking mach/cthreads.h presence" >&5
14693 echo $ECHO_N "checking mach/cthreads.h presence... $ECHO_C" >&6; }
14694 cat >conftest.$ac_ext <<_ACEOF
14695 /* confdefs.h. */
14696 _ACEOF
14697 cat confdefs.h >>conftest.$ac_ext
14698 cat >>conftest.$ac_ext <<_ACEOF
14699 /* end confdefs.h. */
14700 #include <mach/cthreads.h>
14701 _ACEOF
14702 if { (ac_try="$ac_cpp conftest.$ac_ext"
14703 case "(($ac_try" in
14704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14705 *) ac_try_echo=$ac_try;;
14706 esac
14707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14708 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14709 ac_status=$?
14710 grep -v '^ *+' conftest.er1 >conftest.err
14711 rm -f conftest.er1
14712 cat conftest.err >&5
14713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14714 (exit $ac_status); } >/dev/null && {
14715 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14716 test ! -s conftest.err
14717 }; then
14718 ac_header_preproc=yes
14719 else
14720 echo "$as_me: failed program was:" >&5
14721 sed 's/^/| /' conftest.$ac_ext >&5
14723 ac_header_preproc=no
14726 rm -f conftest.err conftest.$ac_ext
14727 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14728 echo "${ECHO_T}$ac_header_preproc" >&6; }
14730 # So? What about this header?
14731 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14732 yes:no: )
14733 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&5
14734 echo "$as_me: WARNING: mach/cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14735 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: proceeding with the compiler's result" >&5
14736 echo "$as_me: WARNING: mach/cthreads.h: proceeding with the compiler's result" >&2;}
14737 ac_header_preproc=yes
14739 no:yes:* )
14740 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: present but cannot be compiled" >&5
14741 echo "$as_me: WARNING: mach/cthreads.h: present but cannot be compiled" >&2;}
14742 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: check for missing prerequisite headers?" >&5
14743 echo "$as_me: WARNING: mach/cthreads.h: check for missing prerequisite headers?" >&2;}
14744 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: see the Autoconf documentation" >&5
14745 echo "$as_me: WARNING: mach/cthreads.h: see the Autoconf documentation" >&2;}
14746 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: section \"Present But Cannot Be Compiled\"" >&5
14747 echo "$as_me: WARNING: mach/cthreads.h: section \"Present But Cannot Be Compiled\"" >&2;}
14748 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: proceeding with the preprocessor's result" >&5
14749 echo "$as_me: WARNING: mach/cthreads.h: proceeding with the preprocessor's result" >&2;}
14750 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: in the future, the compiler will take precedence" >&5
14751 echo "$as_me: WARNING: mach/cthreads.h: in the future, the compiler will take precedence" >&2;}
14752 ( cat <<\_ASBOX
14753 ## -------------------------------------- ##
14754 ## Report this to http://bugs.python.org/ ##
14755 ## -------------------------------------- ##
14756 _ASBOX
14757 ) | sed "s/^/$as_me: WARNING: /" >&2
14759 esac
14760 { echo "$as_me:$LINENO: checking for mach/cthreads.h" >&5
14761 echo $ECHO_N "checking for mach/cthreads.h... $ECHO_C" >&6; }
14762 if test "${ac_cv_header_mach_cthreads_h+set}" = set; then
14763 echo $ECHO_N "(cached) $ECHO_C" >&6
14764 else
14765 ac_cv_header_mach_cthreads_h=$ac_header_preproc
14767 { echo "$as_me:$LINENO: result: $ac_cv_header_mach_cthreads_h" >&5
14768 echo "${ECHO_T}$ac_cv_header_mach_cthreads_h" >&6; }
14771 if test $ac_cv_header_mach_cthreads_h = yes; then
14772 cat >>confdefs.h <<\_ACEOF
14773 #define WITH_THREAD 1
14774 _ACEOF
14776 cat >>confdefs.h <<\_ACEOF
14777 #define C_THREADS 1
14778 _ACEOF
14781 cat >>confdefs.h <<\_ACEOF
14782 #define MACH_C_THREADS 1
14783 _ACEOF
14785 THREADOBJ="Python/thread.o"
14786 else
14788 { echo "$as_me:$LINENO: checking for --with-pth" >&5
14789 echo $ECHO_N "checking for --with-pth... $ECHO_C" >&6; }
14791 # Check whether --with-pth was given.
14792 if test "${with_pth+set}" = set; then
14793 withval=$with_pth; { echo "$as_me:$LINENO: result: $withval" >&5
14794 echo "${ECHO_T}$withval" >&6; }
14795 cat >>confdefs.h <<\_ACEOF
14796 #define WITH_THREAD 1
14797 _ACEOF
14800 cat >>confdefs.h <<\_ACEOF
14801 #define HAVE_PTH 1
14802 _ACEOF
14804 LIBS="-lpth $LIBS"
14805 THREADOBJ="Python/thread.o"
14806 else
14807 { echo "$as_me:$LINENO: result: no" >&5
14808 echo "${ECHO_T}no" >&6; }
14810 # Just looking for pthread_create in libpthread is not enough:
14811 # on HP/UX, pthread.h renames pthread_create to a different symbol name.
14812 # So we really have to include pthread.h, and then link.
14813 _libs=$LIBS
14814 LIBS="$LIBS -lpthread"
14815 { echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
14816 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6; }
14817 cat >conftest.$ac_ext <<_ACEOF
14818 /* confdefs.h. */
14819 _ACEOF
14820 cat confdefs.h >>conftest.$ac_ext
14821 cat >>conftest.$ac_ext <<_ACEOF
14822 /* end confdefs.h. */
14823 #include <pthread.h>
14825 void * start_routine (void *arg) { exit (0); }
14827 main ()
14830 pthread_create (NULL, NULL, start_routine, NULL)
14832 return 0;
14834 _ACEOF
14835 rm -f conftest.$ac_objext conftest$ac_exeext
14836 if { (ac_try="$ac_link"
14837 case "(($ac_try" in
14838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14839 *) ac_try_echo=$ac_try;;
14840 esac
14841 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14842 (eval "$ac_link") 2>conftest.er1
14843 ac_status=$?
14844 grep -v '^ *+' conftest.er1 >conftest.err
14845 rm -f conftest.er1
14846 cat conftest.err >&5
14847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14848 (exit $ac_status); } && {
14849 test -z "$ac_c_werror_flag" ||
14850 test ! -s conftest.err
14851 } && test -s conftest$ac_exeext &&
14852 $as_test_x conftest$ac_exeext; then
14854 { echo "$as_me:$LINENO: result: yes" >&5
14855 echo "${ECHO_T}yes" >&6; }
14856 cat >>confdefs.h <<\_ACEOF
14857 #define WITH_THREAD 1
14858 _ACEOF
14860 posix_threads=yes
14861 THREADOBJ="Python/thread.o"
14862 else
14863 echo "$as_me: failed program was:" >&5
14864 sed 's/^/| /' conftest.$ac_ext >&5
14867 LIBS=$_libs
14868 { echo "$as_me:$LINENO: checking for pthread_detach" >&5
14869 echo $ECHO_N "checking for pthread_detach... $ECHO_C" >&6; }
14870 if test "${ac_cv_func_pthread_detach+set}" = set; then
14871 echo $ECHO_N "(cached) $ECHO_C" >&6
14872 else
14873 cat >conftest.$ac_ext <<_ACEOF
14874 /* confdefs.h. */
14875 _ACEOF
14876 cat confdefs.h >>conftest.$ac_ext
14877 cat >>conftest.$ac_ext <<_ACEOF
14878 /* end confdefs.h. */
14879 /* Define pthread_detach to an innocuous variant, in case <limits.h> declares pthread_detach.
14880 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14881 #define pthread_detach innocuous_pthread_detach
14883 /* System header to define __stub macros and hopefully few prototypes,
14884 which can conflict with char pthread_detach (); below.
14885 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14886 <limits.h> exists even on freestanding compilers. */
14888 #ifdef __STDC__
14889 # include <limits.h>
14890 #else
14891 # include <assert.h>
14892 #endif
14894 #undef pthread_detach
14896 /* Override any GCC internal prototype to avoid an error.
14897 Use char because int might match the return type of a GCC
14898 builtin and then its argument prototype would still apply. */
14899 #ifdef __cplusplus
14900 extern "C"
14901 #endif
14902 char pthread_detach ();
14903 /* The GNU C library defines this for functions which it implements
14904 to always fail with ENOSYS. Some functions are actually named
14905 something starting with __ and the normal name is an alias. */
14906 #if defined __stub_pthread_detach || defined __stub___pthread_detach
14907 choke me
14908 #endif
14911 main ()
14913 return pthread_detach ();
14915 return 0;
14917 _ACEOF
14918 rm -f conftest.$ac_objext conftest$ac_exeext
14919 if { (ac_try="$ac_link"
14920 case "(($ac_try" in
14921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14922 *) ac_try_echo=$ac_try;;
14923 esac
14924 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14925 (eval "$ac_link") 2>conftest.er1
14926 ac_status=$?
14927 grep -v '^ *+' conftest.er1 >conftest.err
14928 rm -f conftest.er1
14929 cat conftest.err >&5
14930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14931 (exit $ac_status); } && {
14932 test -z "$ac_c_werror_flag" ||
14933 test ! -s conftest.err
14934 } && test -s conftest$ac_exeext &&
14935 $as_test_x conftest$ac_exeext; then
14936 ac_cv_func_pthread_detach=yes
14937 else
14938 echo "$as_me: failed program was:" >&5
14939 sed 's/^/| /' conftest.$ac_ext >&5
14941 ac_cv_func_pthread_detach=no
14944 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14945 conftest$ac_exeext conftest.$ac_ext
14947 { echo "$as_me:$LINENO: result: $ac_cv_func_pthread_detach" >&5
14948 echo "${ECHO_T}$ac_cv_func_pthread_detach" >&6; }
14949 if test $ac_cv_func_pthread_detach = yes; then
14950 cat >>confdefs.h <<\_ACEOF
14951 #define WITH_THREAD 1
14952 _ACEOF
14954 posix_threads=yes
14955 THREADOBJ="Python/thread.o"
14956 else
14958 if test "${ac_cv_header_atheos_threads_h+set}" = set; then
14959 { echo "$as_me:$LINENO: checking for atheos/threads.h" >&5
14960 echo $ECHO_N "checking for atheos/threads.h... $ECHO_C" >&6; }
14961 if test "${ac_cv_header_atheos_threads_h+set}" = set; then
14962 echo $ECHO_N "(cached) $ECHO_C" >&6
14964 { echo "$as_me:$LINENO: result: $ac_cv_header_atheos_threads_h" >&5
14965 echo "${ECHO_T}$ac_cv_header_atheos_threads_h" >&6; }
14966 else
14967 # Is the header compilable?
14968 { echo "$as_me:$LINENO: checking atheos/threads.h usability" >&5
14969 echo $ECHO_N "checking atheos/threads.h usability... $ECHO_C" >&6; }
14970 cat >conftest.$ac_ext <<_ACEOF
14971 /* confdefs.h. */
14972 _ACEOF
14973 cat confdefs.h >>conftest.$ac_ext
14974 cat >>conftest.$ac_ext <<_ACEOF
14975 /* end confdefs.h. */
14976 $ac_includes_default
14977 #include <atheos/threads.h>
14978 _ACEOF
14979 rm -f conftest.$ac_objext
14980 if { (ac_try="$ac_compile"
14981 case "(($ac_try" in
14982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14983 *) ac_try_echo=$ac_try;;
14984 esac
14985 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14986 (eval "$ac_compile") 2>conftest.er1
14987 ac_status=$?
14988 grep -v '^ *+' conftest.er1 >conftest.err
14989 rm -f conftest.er1
14990 cat conftest.err >&5
14991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14992 (exit $ac_status); } && {
14993 test -z "$ac_c_werror_flag" ||
14994 test ! -s conftest.err
14995 } && test -s conftest.$ac_objext; then
14996 ac_header_compiler=yes
14997 else
14998 echo "$as_me: failed program was:" >&5
14999 sed 's/^/| /' conftest.$ac_ext >&5
15001 ac_header_compiler=no
15004 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15005 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15006 echo "${ECHO_T}$ac_header_compiler" >&6; }
15008 # Is the header present?
15009 { echo "$as_me:$LINENO: checking atheos/threads.h presence" >&5
15010 echo $ECHO_N "checking atheos/threads.h presence... $ECHO_C" >&6; }
15011 cat >conftest.$ac_ext <<_ACEOF
15012 /* confdefs.h. */
15013 _ACEOF
15014 cat confdefs.h >>conftest.$ac_ext
15015 cat >>conftest.$ac_ext <<_ACEOF
15016 /* end confdefs.h. */
15017 #include <atheos/threads.h>
15018 _ACEOF
15019 if { (ac_try="$ac_cpp conftest.$ac_ext"
15020 case "(($ac_try" in
15021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15022 *) ac_try_echo=$ac_try;;
15023 esac
15024 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15025 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15026 ac_status=$?
15027 grep -v '^ *+' conftest.er1 >conftest.err
15028 rm -f conftest.er1
15029 cat conftest.err >&5
15030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15031 (exit $ac_status); } >/dev/null && {
15032 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15033 test ! -s conftest.err
15034 }; then
15035 ac_header_preproc=yes
15036 else
15037 echo "$as_me: failed program was:" >&5
15038 sed 's/^/| /' conftest.$ac_ext >&5
15040 ac_header_preproc=no
15043 rm -f conftest.err conftest.$ac_ext
15044 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15045 echo "${ECHO_T}$ac_header_preproc" >&6; }
15047 # So? What about this header?
15048 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15049 yes:no: )
15050 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: accepted by the compiler, rejected by the preprocessor!" >&5
15051 echo "$as_me: WARNING: atheos/threads.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15052 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: proceeding with the compiler's result" >&5
15053 echo "$as_me: WARNING: atheos/threads.h: proceeding with the compiler's result" >&2;}
15054 ac_header_preproc=yes
15056 no:yes:* )
15057 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: present but cannot be compiled" >&5
15058 echo "$as_me: WARNING: atheos/threads.h: present but cannot be compiled" >&2;}
15059 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: check for missing prerequisite headers?" >&5
15060 echo "$as_me: WARNING: atheos/threads.h: check for missing prerequisite headers?" >&2;}
15061 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: see the Autoconf documentation" >&5
15062 echo "$as_me: WARNING: atheos/threads.h: see the Autoconf documentation" >&2;}
15063 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: section \"Present But Cannot Be Compiled\"" >&5
15064 echo "$as_me: WARNING: atheos/threads.h: section \"Present But Cannot Be Compiled\"" >&2;}
15065 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: proceeding with the preprocessor's result" >&5
15066 echo "$as_me: WARNING: atheos/threads.h: proceeding with the preprocessor's result" >&2;}
15067 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: in the future, the compiler will take precedence" >&5
15068 echo "$as_me: WARNING: atheos/threads.h: in the future, the compiler will take precedence" >&2;}
15069 ( cat <<\_ASBOX
15070 ## -------------------------------------- ##
15071 ## Report this to http://bugs.python.org/ ##
15072 ## -------------------------------------- ##
15073 _ASBOX
15074 ) | sed "s/^/$as_me: WARNING: /" >&2
15076 esac
15077 { echo "$as_me:$LINENO: checking for atheos/threads.h" >&5
15078 echo $ECHO_N "checking for atheos/threads.h... $ECHO_C" >&6; }
15079 if test "${ac_cv_header_atheos_threads_h+set}" = set; then
15080 echo $ECHO_N "(cached) $ECHO_C" >&6
15081 else
15082 ac_cv_header_atheos_threads_h=$ac_header_preproc
15084 { echo "$as_me:$LINENO: result: $ac_cv_header_atheos_threads_h" >&5
15085 echo "${ECHO_T}$ac_cv_header_atheos_threads_h" >&6; }
15088 if test $ac_cv_header_atheos_threads_h = yes; then
15089 cat >>confdefs.h <<\_ACEOF
15090 #define WITH_THREAD 1
15091 _ACEOF
15094 cat >>confdefs.h <<\_ACEOF
15095 #define ATHEOS_THREADS 1
15096 _ACEOF
15098 THREADOBJ="Python/thread.o"
15099 else
15101 if test "${ac_cv_header_kernel_OS_h+set}" = set; then
15102 { echo "$as_me:$LINENO: checking for kernel/OS.h" >&5
15103 echo $ECHO_N "checking for kernel/OS.h... $ECHO_C" >&6; }
15104 if test "${ac_cv_header_kernel_OS_h+set}" = set; then
15105 echo $ECHO_N "(cached) $ECHO_C" >&6
15107 { echo "$as_me:$LINENO: result: $ac_cv_header_kernel_OS_h" >&5
15108 echo "${ECHO_T}$ac_cv_header_kernel_OS_h" >&6; }
15109 else
15110 # Is the header compilable?
15111 { echo "$as_me:$LINENO: checking kernel/OS.h usability" >&5
15112 echo $ECHO_N "checking kernel/OS.h usability... $ECHO_C" >&6; }
15113 cat >conftest.$ac_ext <<_ACEOF
15114 /* confdefs.h. */
15115 _ACEOF
15116 cat confdefs.h >>conftest.$ac_ext
15117 cat >>conftest.$ac_ext <<_ACEOF
15118 /* end confdefs.h. */
15119 $ac_includes_default
15120 #include <kernel/OS.h>
15121 _ACEOF
15122 rm -f conftest.$ac_objext
15123 if { (ac_try="$ac_compile"
15124 case "(($ac_try" in
15125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15126 *) ac_try_echo=$ac_try;;
15127 esac
15128 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15129 (eval "$ac_compile") 2>conftest.er1
15130 ac_status=$?
15131 grep -v '^ *+' conftest.er1 >conftest.err
15132 rm -f conftest.er1
15133 cat conftest.err >&5
15134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15135 (exit $ac_status); } && {
15136 test -z "$ac_c_werror_flag" ||
15137 test ! -s conftest.err
15138 } && test -s conftest.$ac_objext; then
15139 ac_header_compiler=yes
15140 else
15141 echo "$as_me: failed program was:" >&5
15142 sed 's/^/| /' conftest.$ac_ext >&5
15144 ac_header_compiler=no
15147 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15148 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15149 echo "${ECHO_T}$ac_header_compiler" >&6; }
15151 # Is the header present?
15152 { echo "$as_me:$LINENO: checking kernel/OS.h presence" >&5
15153 echo $ECHO_N "checking kernel/OS.h presence... $ECHO_C" >&6; }
15154 cat >conftest.$ac_ext <<_ACEOF
15155 /* confdefs.h. */
15156 _ACEOF
15157 cat confdefs.h >>conftest.$ac_ext
15158 cat >>conftest.$ac_ext <<_ACEOF
15159 /* end confdefs.h. */
15160 #include <kernel/OS.h>
15161 _ACEOF
15162 if { (ac_try="$ac_cpp conftest.$ac_ext"
15163 case "(($ac_try" in
15164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15165 *) ac_try_echo=$ac_try;;
15166 esac
15167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15168 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15169 ac_status=$?
15170 grep -v '^ *+' conftest.er1 >conftest.err
15171 rm -f conftest.er1
15172 cat conftest.err >&5
15173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15174 (exit $ac_status); } >/dev/null && {
15175 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15176 test ! -s conftest.err
15177 }; then
15178 ac_header_preproc=yes
15179 else
15180 echo "$as_me: failed program was:" >&5
15181 sed 's/^/| /' conftest.$ac_ext >&5
15183 ac_header_preproc=no
15186 rm -f conftest.err conftest.$ac_ext
15187 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15188 echo "${ECHO_T}$ac_header_preproc" >&6; }
15190 # So? What about this header?
15191 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15192 yes:no: )
15193 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: accepted by the compiler, rejected by the preprocessor!" >&5
15194 echo "$as_me: WARNING: kernel/OS.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15195 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: proceeding with the compiler's result" >&5
15196 echo "$as_me: WARNING: kernel/OS.h: proceeding with the compiler's result" >&2;}
15197 ac_header_preproc=yes
15199 no:yes:* )
15200 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: present but cannot be compiled" >&5
15201 echo "$as_me: WARNING: kernel/OS.h: present but cannot be compiled" >&2;}
15202 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: check for missing prerequisite headers?" >&5
15203 echo "$as_me: WARNING: kernel/OS.h: check for missing prerequisite headers?" >&2;}
15204 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: see the Autoconf documentation" >&5
15205 echo "$as_me: WARNING: kernel/OS.h: see the Autoconf documentation" >&2;}
15206 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: section \"Present But Cannot Be Compiled\"" >&5
15207 echo "$as_me: WARNING: kernel/OS.h: section \"Present But Cannot Be Compiled\"" >&2;}
15208 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: proceeding with the preprocessor's result" >&5
15209 echo "$as_me: WARNING: kernel/OS.h: proceeding with the preprocessor's result" >&2;}
15210 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: in the future, the compiler will take precedence" >&5
15211 echo "$as_me: WARNING: kernel/OS.h: in the future, the compiler will take precedence" >&2;}
15212 ( cat <<\_ASBOX
15213 ## -------------------------------------- ##
15214 ## Report this to http://bugs.python.org/ ##
15215 ## -------------------------------------- ##
15216 _ASBOX
15217 ) | sed "s/^/$as_me: WARNING: /" >&2
15219 esac
15220 { echo "$as_me:$LINENO: checking for kernel/OS.h" >&5
15221 echo $ECHO_N "checking for kernel/OS.h... $ECHO_C" >&6; }
15222 if test "${ac_cv_header_kernel_OS_h+set}" = set; then
15223 echo $ECHO_N "(cached) $ECHO_C" >&6
15224 else
15225 ac_cv_header_kernel_OS_h=$ac_header_preproc
15227 { echo "$as_me:$LINENO: result: $ac_cv_header_kernel_OS_h" >&5
15228 echo "${ECHO_T}$ac_cv_header_kernel_OS_h" >&6; }
15231 if test $ac_cv_header_kernel_OS_h = yes; then
15232 cat >>confdefs.h <<\_ACEOF
15233 #define WITH_THREAD 1
15234 _ACEOF
15237 cat >>confdefs.h <<\_ACEOF
15238 #define BEOS_THREADS 1
15239 _ACEOF
15241 THREADOBJ="Python/thread.o"
15242 else
15244 { echo "$as_me:$LINENO: checking for pthread_create in -lpthreads" >&5
15245 echo $ECHO_N "checking for pthread_create in -lpthreads... $ECHO_C" >&6; }
15246 if test "${ac_cv_lib_pthreads_pthread_create+set}" = set; then
15247 echo $ECHO_N "(cached) $ECHO_C" >&6
15248 else
15249 ac_check_lib_save_LIBS=$LIBS
15250 LIBS="-lpthreads $LIBS"
15251 cat >conftest.$ac_ext <<_ACEOF
15252 /* confdefs.h. */
15253 _ACEOF
15254 cat confdefs.h >>conftest.$ac_ext
15255 cat >>conftest.$ac_ext <<_ACEOF
15256 /* end confdefs.h. */
15258 /* Override any GCC internal prototype to avoid an error.
15259 Use char because int might match the return type of a GCC
15260 builtin and then its argument prototype would still apply. */
15261 #ifdef __cplusplus
15262 extern "C"
15263 #endif
15264 char pthread_create ();
15266 main ()
15268 return pthread_create ();
15270 return 0;
15272 _ACEOF
15273 rm -f conftest.$ac_objext conftest$ac_exeext
15274 if { (ac_try="$ac_link"
15275 case "(($ac_try" in
15276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15277 *) ac_try_echo=$ac_try;;
15278 esac
15279 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15280 (eval "$ac_link") 2>conftest.er1
15281 ac_status=$?
15282 grep -v '^ *+' conftest.er1 >conftest.err
15283 rm -f conftest.er1
15284 cat conftest.err >&5
15285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15286 (exit $ac_status); } && {
15287 test -z "$ac_c_werror_flag" ||
15288 test ! -s conftest.err
15289 } && test -s conftest$ac_exeext &&
15290 $as_test_x conftest$ac_exeext; then
15291 ac_cv_lib_pthreads_pthread_create=yes
15292 else
15293 echo "$as_me: failed program was:" >&5
15294 sed 's/^/| /' conftest.$ac_ext >&5
15296 ac_cv_lib_pthreads_pthread_create=no
15299 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15300 conftest$ac_exeext conftest.$ac_ext
15301 LIBS=$ac_check_lib_save_LIBS
15303 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_create" >&5
15304 echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_create" >&6; }
15305 if test $ac_cv_lib_pthreads_pthread_create = yes; then
15306 cat >>confdefs.h <<\_ACEOF
15307 #define WITH_THREAD 1
15308 _ACEOF
15310 posix_threads=yes
15311 LIBS="$LIBS -lpthreads"
15312 THREADOBJ="Python/thread.o"
15313 else
15315 { echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
15316 echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6; }
15317 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then
15318 echo $ECHO_N "(cached) $ECHO_C" >&6
15319 else
15320 ac_check_lib_save_LIBS=$LIBS
15321 LIBS="-lc_r $LIBS"
15322 cat >conftest.$ac_ext <<_ACEOF
15323 /* confdefs.h. */
15324 _ACEOF
15325 cat confdefs.h >>conftest.$ac_ext
15326 cat >>conftest.$ac_ext <<_ACEOF
15327 /* end confdefs.h. */
15329 /* Override any GCC internal prototype to avoid an error.
15330 Use char because int might match the return type of a GCC
15331 builtin and then its argument prototype would still apply. */
15332 #ifdef __cplusplus
15333 extern "C"
15334 #endif
15335 char pthread_create ();
15337 main ()
15339 return pthread_create ();
15341 return 0;
15343 _ACEOF
15344 rm -f conftest.$ac_objext conftest$ac_exeext
15345 if { (ac_try="$ac_link"
15346 case "(($ac_try" in
15347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15348 *) ac_try_echo=$ac_try;;
15349 esac
15350 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15351 (eval "$ac_link") 2>conftest.er1
15352 ac_status=$?
15353 grep -v '^ *+' conftest.er1 >conftest.err
15354 rm -f conftest.er1
15355 cat conftest.err >&5
15356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15357 (exit $ac_status); } && {
15358 test -z "$ac_c_werror_flag" ||
15359 test ! -s conftest.err
15360 } && test -s conftest$ac_exeext &&
15361 $as_test_x conftest$ac_exeext; then
15362 ac_cv_lib_c_r_pthread_create=yes
15363 else
15364 echo "$as_me: failed program was:" >&5
15365 sed 's/^/| /' conftest.$ac_ext >&5
15367 ac_cv_lib_c_r_pthread_create=no
15370 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15371 conftest$ac_exeext conftest.$ac_ext
15372 LIBS=$ac_check_lib_save_LIBS
15374 { echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5
15375 echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6; }
15376 if test $ac_cv_lib_c_r_pthread_create = yes; then
15377 cat >>confdefs.h <<\_ACEOF
15378 #define WITH_THREAD 1
15379 _ACEOF
15381 posix_threads=yes
15382 LIBS="$LIBS -lc_r"
15383 THREADOBJ="Python/thread.o"
15384 else
15386 { echo "$as_me:$LINENO: checking for __pthread_create_system in -lpthread" >&5
15387 echo $ECHO_N "checking for __pthread_create_system in -lpthread... $ECHO_C" >&6; }
15388 if test "${ac_cv_lib_pthread___pthread_create_system+set}" = set; then
15389 echo $ECHO_N "(cached) $ECHO_C" >&6
15390 else
15391 ac_check_lib_save_LIBS=$LIBS
15392 LIBS="-lpthread $LIBS"
15393 cat >conftest.$ac_ext <<_ACEOF
15394 /* confdefs.h. */
15395 _ACEOF
15396 cat confdefs.h >>conftest.$ac_ext
15397 cat >>conftest.$ac_ext <<_ACEOF
15398 /* end confdefs.h. */
15400 /* Override any GCC internal prototype to avoid an error.
15401 Use char because int might match the return type of a GCC
15402 builtin and then its argument prototype would still apply. */
15403 #ifdef __cplusplus
15404 extern "C"
15405 #endif
15406 char __pthread_create_system ();
15408 main ()
15410 return __pthread_create_system ();
15412 return 0;
15414 _ACEOF
15415 rm -f conftest.$ac_objext conftest$ac_exeext
15416 if { (ac_try="$ac_link"
15417 case "(($ac_try" in
15418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15419 *) ac_try_echo=$ac_try;;
15420 esac
15421 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15422 (eval "$ac_link") 2>conftest.er1
15423 ac_status=$?
15424 grep -v '^ *+' conftest.er1 >conftest.err
15425 rm -f conftest.er1
15426 cat conftest.err >&5
15427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15428 (exit $ac_status); } && {
15429 test -z "$ac_c_werror_flag" ||
15430 test ! -s conftest.err
15431 } && test -s conftest$ac_exeext &&
15432 $as_test_x conftest$ac_exeext; then
15433 ac_cv_lib_pthread___pthread_create_system=yes
15434 else
15435 echo "$as_me: failed program was:" >&5
15436 sed 's/^/| /' conftest.$ac_ext >&5
15438 ac_cv_lib_pthread___pthread_create_system=no
15441 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15442 conftest$ac_exeext conftest.$ac_ext
15443 LIBS=$ac_check_lib_save_LIBS
15445 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread___pthread_create_system" >&5
15446 echo "${ECHO_T}$ac_cv_lib_pthread___pthread_create_system" >&6; }
15447 if test $ac_cv_lib_pthread___pthread_create_system = yes; then
15448 cat >>confdefs.h <<\_ACEOF
15449 #define WITH_THREAD 1
15450 _ACEOF
15452 posix_threads=yes
15453 LIBS="$LIBS -lpthread"
15454 THREADOBJ="Python/thread.o"
15455 else
15457 { echo "$as_me:$LINENO: checking for pthread_create in -lcma" >&5
15458 echo $ECHO_N "checking for pthread_create in -lcma... $ECHO_C" >&6; }
15459 if test "${ac_cv_lib_cma_pthread_create+set}" = set; then
15460 echo $ECHO_N "(cached) $ECHO_C" >&6
15461 else
15462 ac_check_lib_save_LIBS=$LIBS
15463 LIBS="-lcma $LIBS"
15464 cat >conftest.$ac_ext <<_ACEOF
15465 /* confdefs.h. */
15466 _ACEOF
15467 cat confdefs.h >>conftest.$ac_ext
15468 cat >>conftest.$ac_ext <<_ACEOF
15469 /* end confdefs.h. */
15471 /* Override any GCC internal prototype to avoid an error.
15472 Use char because int might match the return type of a GCC
15473 builtin and then its argument prototype would still apply. */
15474 #ifdef __cplusplus
15475 extern "C"
15476 #endif
15477 char pthread_create ();
15479 main ()
15481 return pthread_create ();
15483 return 0;
15485 _ACEOF
15486 rm -f conftest.$ac_objext conftest$ac_exeext
15487 if { (ac_try="$ac_link"
15488 case "(($ac_try" in
15489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15490 *) ac_try_echo=$ac_try;;
15491 esac
15492 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15493 (eval "$ac_link") 2>conftest.er1
15494 ac_status=$?
15495 grep -v '^ *+' conftest.er1 >conftest.err
15496 rm -f conftest.er1
15497 cat conftest.err >&5
15498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15499 (exit $ac_status); } && {
15500 test -z "$ac_c_werror_flag" ||
15501 test ! -s conftest.err
15502 } && test -s conftest$ac_exeext &&
15503 $as_test_x conftest$ac_exeext; then
15504 ac_cv_lib_cma_pthread_create=yes
15505 else
15506 echo "$as_me: failed program was:" >&5
15507 sed 's/^/| /' conftest.$ac_ext >&5
15509 ac_cv_lib_cma_pthread_create=no
15512 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15513 conftest$ac_exeext conftest.$ac_ext
15514 LIBS=$ac_check_lib_save_LIBS
15516 { echo "$as_me:$LINENO: result: $ac_cv_lib_cma_pthread_create" >&5
15517 echo "${ECHO_T}$ac_cv_lib_cma_pthread_create" >&6; }
15518 if test $ac_cv_lib_cma_pthread_create = yes; then
15519 cat >>confdefs.h <<\_ACEOF
15520 #define WITH_THREAD 1
15521 _ACEOF
15523 posix_threads=yes
15524 LIBS="$LIBS -lcma"
15525 THREADOBJ="Python/thread.o"
15526 else
15528 USE_THREAD_MODULE="#"
15548 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15549 conftest$ac_exeext conftest.$ac_ext
15559 { echo "$as_me:$LINENO: checking for usconfig in -lmpc" >&5
15560 echo $ECHO_N "checking for usconfig in -lmpc... $ECHO_C" >&6; }
15561 if test "${ac_cv_lib_mpc_usconfig+set}" = set; then
15562 echo $ECHO_N "(cached) $ECHO_C" >&6
15563 else
15564 ac_check_lib_save_LIBS=$LIBS
15565 LIBS="-lmpc $LIBS"
15566 cat >conftest.$ac_ext <<_ACEOF
15567 /* confdefs.h. */
15568 _ACEOF
15569 cat confdefs.h >>conftest.$ac_ext
15570 cat >>conftest.$ac_ext <<_ACEOF
15571 /* end confdefs.h. */
15573 /* Override any GCC internal prototype to avoid an error.
15574 Use char because int might match the return type of a GCC
15575 builtin and then its argument prototype would still apply. */
15576 #ifdef __cplusplus
15577 extern "C"
15578 #endif
15579 char usconfig ();
15581 main ()
15583 return usconfig ();
15585 return 0;
15587 _ACEOF
15588 rm -f conftest.$ac_objext conftest$ac_exeext
15589 if { (ac_try="$ac_link"
15590 case "(($ac_try" in
15591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15592 *) ac_try_echo=$ac_try;;
15593 esac
15594 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15595 (eval "$ac_link") 2>conftest.er1
15596 ac_status=$?
15597 grep -v '^ *+' conftest.er1 >conftest.err
15598 rm -f conftest.er1
15599 cat conftest.err >&5
15600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15601 (exit $ac_status); } && {
15602 test -z "$ac_c_werror_flag" ||
15603 test ! -s conftest.err
15604 } && test -s conftest$ac_exeext &&
15605 $as_test_x conftest$ac_exeext; then
15606 ac_cv_lib_mpc_usconfig=yes
15607 else
15608 echo "$as_me: failed program was:" >&5
15609 sed 's/^/| /' conftest.$ac_ext >&5
15611 ac_cv_lib_mpc_usconfig=no
15614 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15615 conftest$ac_exeext conftest.$ac_ext
15616 LIBS=$ac_check_lib_save_LIBS
15618 { echo "$as_me:$LINENO: result: $ac_cv_lib_mpc_usconfig" >&5
15619 echo "${ECHO_T}$ac_cv_lib_mpc_usconfig" >&6; }
15620 if test $ac_cv_lib_mpc_usconfig = yes; then
15621 cat >>confdefs.h <<\_ACEOF
15622 #define WITH_THREAD 1
15623 _ACEOF
15625 LIBS="$LIBS -lmpc"
15626 THREADOBJ="Python/thread.o"
15627 USE_THREAD_MODULE=""
15631 if test "$posix_threads" != "yes"; then
15632 { echo "$as_me:$LINENO: checking for thr_create in -lthread" >&5
15633 echo $ECHO_N "checking for thr_create in -lthread... $ECHO_C" >&6; }
15634 if test "${ac_cv_lib_thread_thr_create+set}" = set; then
15635 echo $ECHO_N "(cached) $ECHO_C" >&6
15636 else
15637 ac_check_lib_save_LIBS=$LIBS
15638 LIBS="-lthread $LIBS"
15639 cat >conftest.$ac_ext <<_ACEOF
15640 /* confdefs.h. */
15641 _ACEOF
15642 cat confdefs.h >>conftest.$ac_ext
15643 cat >>conftest.$ac_ext <<_ACEOF
15644 /* end confdefs.h. */
15646 /* Override any GCC internal prototype to avoid an error.
15647 Use char because int might match the return type of a GCC
15648 builtin and then its argument prototype would still apply. */
15649 #ifdef __cplusplus
15650 extern "C"
15651 #endif
15652 char thr_create ();
15654 main ()
15656 return thr_create ();
15658 return 0;
15660 _ACEOF
15661 rm -f conftest.$ac_objext conftest$ac_exeext
15662 if { (ac_try="$ac_link"
15663 case "(($ac_try" in
15664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15665 *) ac_try_echo=$ac_try;;
15666 esac
15667 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15668 (eval "$ac_link") 2>conftest.er1
15669 ac_status=$?
15670 grep -v '^ *+' conftest.er1 >conftest.err
15671 rm -f conftest.er1
15672 cat conftest.err >&5
15673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15674 (exit $ac_status); } && {
15675 test -z "$ac_c_werror_flag" ||
15676 test ! -s conftest.err
15677 } && test -s conftest$ac_exeext &&
15678 $as_test_x conftest$ac_exeext; then
15679 ac_cv_lib_thread_thr_create=yes
15680 else
15681 echo "$as_me: failed program was:" >&5
15682 sed 's/^/| /' conftest.$ac_ext >&5
15684 ac_cv_lib_thread_thr_create=no
15687 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15688 conftest$ac_exeext conftest.$ac_ext
15689 LIBS=$ac_check_lib_save_LIBS
15691 { echo "$as_me:$LINENO: result: $ac_cv_lib_thread_thr_create" >&5
15692 echo "${ECHO_T}$ac_cv_lib_thread_thr_create" >&6; }
15693 if test $ac_cv_lib_thread_thr_create = yes; then
15694 cat >>confdefs.h <<\_ACEOF
15695 #define WITH_THREAD 1
15696 _ACEOF
15698 LIBS="$LIBS -lthread"
15699 THREADOBJ="Python/thread.o"
15700 USE_THREAD_MODULE=""
15705 if test "$USE_THREAD_MODULE" != "#"
15706 then
15707 # If the above checks didn't disable threads, (at least) OSF1
15708 # needs this '-threads' argument during linking.
15709 case $ac_sys_system in
15710 OSF1) LDLAST=-threads;;
15711 esac
15715 if test "$posix_threads" = "yes"; then
15716 if test "$unistd_defines_pthreads" = "no"; then
15718 cat >>confdefs.h <<\_ACEOF
15719 #define _POSIX_THREADS 1
15720 _ACEOF
15724 # Bug 662787: Using semaphores causes unexplicable hangs on Solaris 8.
15725 case $ac_sys_system/$ac_sys_release in
15726 SunOS/5.6)
15727 cat >>confdefs.h <<\_ACEOF
15728 #define HAVE_PTHREAD_DESTRUCTOR 1
15729 _ACEOF
15732 SunOS/5.8)
15733 cat >>confdefs.h <<\_ACEOF
15734 #define HAVE_BROKEN_POSIX_SEMAPHORES 1
15735 _ACEOF
15738 AIX/5)
15739 cat >>confdefs.h <<\_ACEOF
15740 #define HAVE_BROKEN_POSIX_SEMAPHORES 1
15741 _ACEOF
15744 esac
15746 { echo "$as_me:$LINENO: checking if PTHREAD_SCOPE_SYSTEM is supported" >&5
15747 echo $ECHO_N "checking if PTHREAD_SCOPE_SYSTEM is supported... $ECHO_C" >&6; }
15748 if test "${ac_cv_pthread_system_supported+set}" = set; then
15749 echo $ECHO_N "(cached) $ECHO_C" >&6
15750 else
15751 if test "$cross_compiling" = yes; then
15752 ac_cv_pthread_system_supported=no
15753 else
15754 cat >conftest.$ac_ext <<_ACEOF
15755 /* confdefs.h. */
15756 _ACEOF
15757 cat confdefs.h >>conftest.$ac_ext
15758 cat >>conftest.$ac_ext <<_ACEOF
15759 /* end confdefs.h. */
15760 #include <pthread.h>
15761 void *foo(void *parm) {
15762 return NULL;
15764 main() {
15765 pthread_attr_t attr;
15766 pthread_t id;
15767 if (pthread_attr_init(&attr)) exit(-1);
15768 if (pthread_attr_setscope(&attr, PTHREAD_SCOPE_SYSTEM)) exit(-1);
15769 if (pthread_create(&id, &attr, foo, NULL)) exit(-1);
15770 exit(0);
15772 _ACEOF
15773 rm -f conftest$ac_exeext
15774 if { (ac_try="$ac_link"
15775 case "(($ac_try" in
15776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15777 *) ac_try_echo=$ac_try;;
15778 esac
15779 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15780 (eval "$ac_link") 2>&5
15781 ac_status=$?
15782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15783 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15784 { (case "(($ac_try" in
15785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15786 *) ac_try_echo=$ac_try;;
15787 esac
15788 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15789 (eval "$ac_try") 2>&5
15790 ac_status=$?
15791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15792 (exit $ac_status); }; }; then
15793 ac_cv_pthread_system_supported=yes
15794 else
15795 echo "$as_me: program exited with status $ac_status" >&5
15796 echo "$as_me: failed program was:" >&5
15797 sed 's/^/| /' conftest.$ac_ext >&5
15799 ( exit $ac_status )
15800 ac_cv_pthread_system_supported=no
15802 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15809 { echo "$as_me:$LINENO: result: $ac_cv_pthread_system_supported" >&5
15810 echo "${ECHO_T}$ac_cv_pthread_system_supported" >&6; }
15811 if test "$ac_cv_pthread_system_supported" = "yes"; then
15813 cat >>confdefs.h <<\_ACEOF
15814 #define PTHREAD_SYSTEM_SCHED_SUPPORTED 1
15815 _ACEOF
15819 for ac_func in pthread_sigmask
15821 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15822 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15823 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15824 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15825 echo $ECHO_N "(cached) $ECHO_C" >&6
15826 else
15827 cat >conftest.$ac_ext <<_ACEOF
15828 /* confdefs.h. */
15829 _ACEOF
15830 cat confdefs.h >>conftest.$ac_ext
15831 cat >>conftest.$ac_ext <<_ACEOF
15832 /* end confdefs.h. */
15833 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15834 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15835 #define $ac_func innocuous_$ac_func
15837 /* System header to define __stub macros and hopefully few prototypes,
15838 which can conflict with char $ac_func (); below.
15839 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15840 <limits.h> exists even on freestanding compilers. */
15842 #ifdef __STDC__
15843 # include <limits.h>
15844 #else
15845 # include <assert.h>
15846 #endif
15848 #undef $ac_func
15850 /* Override any GCC internal prototype to avoid an error.
15851 Use char because int might match the return type of a GCC
15852 builtin and then its argument prototype would still apply. */
15853 #ifdef __cplusplus
15854 extern "C"
15855 #endif
15856 char $ac_func ();
15857 /* The GNU C library defines this for functions which it implements
15858 to always fail with ENOSYS. Some functions are actually named
15859 something starting with __ and the normal name is an alias. */
15860 #if defined __stub_$ac_func || defined __stub___$ac_func
15861 choke me
15862 #endif
15865 main ()
15867 return $ac_func ();
15869 return 0;
15871 _ACEOF
15872 rm -f conftest.$ac_objext conftest$ac_exeext
15873 if { (ac_try="$ac_link"
15874 case "(($ac_try" in
15875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15876 *) ac_try_echo=$ac_try;;
15877 esac
15878 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15879 (eval "$ac_link") 2>conftest.er1
15880 ac_status=$?
15881 grep -v '^ *+' conftest.er1 >conftest.err
15882 rm -f conftest.er1
15883 cat conftest.err >&5
15884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15885 (exit $ac_status); } && {
15886 test -z "$ac_c_werror_flag" ||
15887 test ! -s conftest.err
15888 } && test -s conftest$ac_exeext &&
15889 $as_test_x conftest$ac_exeext; then
15890 eval "$as_ac_var=yes"
15891 else
15892 echo "$as_me: failed program was:" >&5
15893 sed 's/^/| /' conftest.$ac_ext >&5
15895 eval "$as_ac_var=no"
15898 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15899 conftest$ac_exeext conftest.$ac_ext
15901 ac_res=`eval echo '${'$as_ac_var'}'`
15902 { echo "$as_me:$LINENO: result: $ac_res" >&5
15903 echo "${ECHO_T}$ac_res" >&6; }
15904 if test `eval echo '${'$as_ac_var'}'` = yes; then
15905 cat >>confdefs.h <<_ACEOF
15906 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15907 _ACEOF
15908 case $ac_sys_system in
15909 CYGWIN*)
15911 cat >>confdefs.h <<\_ACEOF
15912 #define HAVE_BROKEN_PTHREAD_SIGMASK 1
15913 _ACEOF
15916 esac
15918 done
15923 # Check for enable-ipv6
15926 { echo "$as_me:$LINENO: checking if --enable-ipv6 is specified" >&5
15927 echo $ECHO_N "checking if --enable-ipv6 is specified... $ECHO_C" >&6; }
15928 # Check whether --enable-ipv6 was given.
15929 if test "${enable_ipv6+set}" = set; then
15930 enableval=$enable_ipv6; case "$enableval" in
15932 { echo "$as_me:$LINENO: result: no" >&5
15933 echo "${ECHO_T}no" >&6; }
15934 ipv6=no
15936 *) { echo "$as_me:$LINENO: result: yes" >&5
15937 echo "${ECHO_T}yes" >&6; }
15938 cat >>confdefs.h <<\_ACEOF
15939 #define ENABLE_IPV6 1
15940 _ACEOF
15942 ipv6=yes
15944 esac
15945 else
15947 if test "$cross_compiling" = yes; then
15948 { echo "$as_me:$LINENO: result: no" >&5
15949 echo "${ECHO_T}no" >&6; }
15950 ipv6=no
15952 else
15953 cat >conftest.$ac_ext <<_ACEOF
15954 /* confdefs.h. */
15955 _ACEOF
15956 cat confdefs.h >>conftest.$ac_ext
15957 cat >>conftest.$ac_ext <<_ACEOF
15958 /* end confdefs.h. */
15959 /* AF_INET6 available check */
15960 #include <sys/types.h>
15961 #include <sys/socket.h>
15962 main()
15964 if (socket(AF_INET6, SOCK_STREAM, 0) < 0)
15965 exit(1);
15966 else
15967 exit(0);
15970 _ACEOF
15971 rm -f conftest$ac_exeext
15972 if { (ac_try="$ac_link"
15973 case "(($ac_try" in
15974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15975 *) ac_try_echo=$ac_try;;
15976 esac
15977 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15978 (eval "$ac_link") 2>&5
15979 ac_status=$?
15980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15981 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15982 { (case "(($ac_try" in
15983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15984 *) ac_try_echo=$ac_try;;
15985 esac
15986 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15987 (eval "$ac_try") 2>&5
15988 ac_status=$?
15989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15990 (exit $ac_status); }; }; then
15991 { echo "$as_me:$LINENO: result: yes" >&5
15992 echo "${ECHO_T}yes" >&6; }
15993 ipv6=yes
15994 else
15995 echo "$as_me: program exited with status $ac_status" >&5
15996 echo "$as_me: failed program was:" >&5
15997 sed 's/^/| /' conftest.$ac_ext >&5
15999 ( exit $ac_status )
16000 { echo "$as_me:$LINENO: result: no" >&5
16001 echo "${ECHO_T}no" >&6; }
16002 ipv6=no
16004 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16009 if test "$ipv6" = "yes"; then
16010 { echo "$as_me:$LINENO: checking if RFC2553 API is available" >&5
16011 echo $ECHO_N "checking if RFC2553 API is available... $ECHO_C" >&6; }
16012 cat >conftest.$ac_ext <<_ACEOF
16013 /* confdefs.h. */
16014 _ACEOF
16015 cat confdefs.h >>conftest.$ac_ext
16016 cat >>conftest.$ac_ext <<_ACEOF
16017 /* end confdefs.h. */
16018 #include <sys/types.h>
16019 #include <netinet/in.h>
16021 main ()
16023 struct sockaddr_in6 x;
16024 x.sin6_scope_id;
16026 return 0;
16028 _ACEOF
16029 rm -f conftest.$ac_objext
16030 if { (ac_try="$ac_compile"
16031 case "(($ac_try" in
16032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16033 *) ac_try_echo=$ac_try;;
16034 esac
16035 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16036 (eval "$ac_compile") 2>conftest.er1
16037 ac_status=$?
16038 grep -v '^ *+' conftest.er1 >conftest.err
16039 rm -f conftest.er1
16040 cat conftest.err >&5
16041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16042 (exit $ac_status); } && {
16043 test -z "$ac_c_werror_flag" ||
16044 test ! -s conftest.err
16045 } && test -s conftest.$ac_objext; then
16046 { echo "$as_me:$LINENO: result: yes" >&5
16047 echo "${ECHO_T}yes" >&6; }
16048 ipv6=yes
16049 else
16050 echo "$as_me: failed program was:" >&5
16051 sed 's/^/| /' conftest.$ac_ext >&5
16053 { echo "$as_me:$LINENO: result: no" >&5
16054 echo "${ECHO_T}no" >&6; }
16055 ipv6=no
16058 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16061 if test "$ipv6" = "yes"; then
16062 cat >>confdefs.h <<\_ACEOF
16063 #define ENABLE_IPV6 1
16064 _ACEOF
16071 ipv6type=unknown
16072 ipv6lib=none
16073 ipv6trylibc=no
16075 if test "$ipv6" = "yes"; then
16076 { echo "$as_me:$LINENO: checking ipv6 stack type" >&5
16077 echo $ECHO_N "checking ipv6 stack type... $ECHO_C" >&6; }
16078 for i in inria kame linux-glibc linux-inet6 solaris toshiba v6d zeta;
16080 case $i in
16081 inria)
16082 cat >conftest.$ac_ext <<_ACEOF
16083 /* confdefs.h. */
16084 _ACEOF
16085 cat confdefs.h >>conftest.$ac_ext
16086 cat >>conftest.$ac_ext <<_ACEOF
16087 /* end confdefs.h. */
16089 #include <netinet/in.h>
16090 #ifdef IPV6_INRIA_VERSION
16092 #endif
16093 _ACEOF
16094 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16095 $EGREP "yes" >/dev/null 2>&1; then
16096 ipv6type=$i
16098 rm -f conftest*
16101 kame)
16102 cat >conftest.$ac_ext <<_ACEOF
16103 /* confdefs.h. */
16104 _ACEOF
16105 cat confdefs.h >>conftest.$ac_ext
16106 cat >>conftest.$ac_ext <<_ACEOF
16107 /* end confdefs.h. */
16109 #include <netinet/in.h>
16110 #ifdef __KAME__
16112 #endif
16113 _ACEOF
16114 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16115 $EGREP "yes" >/dev/null 2>&1; then
16116 ipv6type=$i;
16117 ipv6lib=inet6
16118 ipv6libdir=/usr/local/v6/lib
16119 ipv6trylibc=yes
16121 rm -f conftest*
16124 linux-glibc)
16125 cat >conftest.$ac_ext <<_ACEOF
16126 /* confdefs.h. */
16127 _ACEOF
16128 cat confdefs.h >>conftest.$ac_ext
16129 cat >>conftest.$ac_ext <<_ACEOF
16130 /* end confdefs.h. */
16132 #include <features.h>
16133 #if defined(__GLIBC__) && ((__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2))
16135 #endif
16136 _ACEOF
16137 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16138 $EGREP "yes" >/dev/null 2>&1; then
16139 ipv6type=$i;
16140 ipv6trylibc=yes
16142 rm -f conftest*
16145 linux-inet6)
16146 if test -d /usr/inet6; then
16147 ipv6type=$i
16148 ipv6lib=inet6
16149 ipv6libdir=/usr/inet6/lib
16150 BASECFLAGS="-I/usr/inet6/include $BASECFLAGS"
16153 solaris)
16154 if test -f /etc/netconfig; then
16155 if /usr/xpg4/bin/grep -q tcp6 /etc/netconfig; then
16156 ipv6type=$i
16157 ipv6trylibc=yes
16161 toshiba)
16162 cat >conftest.$ac_ext <<_ACEOF
16163 /* confdefs.h. */
16164 _ACEOF
16165 cat confdefs.h >>conftest.$ac_ext
16166 cat >>conftest.$ac_ext <<_ACEOF
16167 /* end confdefs.h. */
16169 #include <sys/param.h>
16170 #ifdef _TOSHIBA_INET6
16172 #endif
16173 _ACEOF
16174 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16175 $EGREP "yes" >/dev/null 2>&1; then
16176 ipv6type=$i;
16177 ipv6lib=inet6;
16178 ipv6libdir=/usr/local/v6/lib
16180 rm -f conftest*
16183 v6d)
16184 cat >conftest.$ac_ext <<_ACEOF
16185 /* confdefs.h. */
16186 _ACEOF
16187 cat confdefs.h >>conftest.$ac_ext
16188 cat >>conftest.$ac_ext <<_ACEOF
16189 /* end confdefs.h. */
16191 #include </usr/local/v6/include/sys/v6config.h>
16192 #ifdef __V6D__
16194 #endif
16195 _ACEOF
16196 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16197 $EGREP "yes" >/dev/null 2>&1; then
16198 ipv6type=$i;
16199 ipv6lib=v6;
16200 ipv6libdir=/usr/local/v6/lib;
16201 BASECFLAGS="-I/usr/local/v6/include $BASECFLAGS"
16203 rm -f conftest*
16206 zeta)
16207 cat >conftest.$ac_ext <<_ACEOF
16208 /* confdefs.h. */
16209 _ACEOF
16210 cat confdefs.h >>conftest.$ac_ext
16211 cat >>conftest.$ac_ext <<_ACEOF
16212 /* end confdefs.h. */
16214 #include <sys/param.h>
16215 #ifdef _ZETA_MINAMI_INET6
16217 #endif
16218 _ACEOF
16219 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16220 $EGREP "yes" >/dev/null 2>&1; then
16221 ipv6type=$i;
16222 ipv6lib=inet6;
16223 ipv6libdir=/usr/local/v6/lib
16225 rm -f conftest*
16228 esac
16229 if test "$ipv6type" != "unknown"; then
16230 break
16232 done
16233 { echo "$as_me:$LINENO: result: $ipv6type" >&5
16234 echo "${ECHO_T}$ipv6type" >&6; }
16237 if test "$ipv6" = "yes" -a "$ipv6lib" != "none"; then
16238 if test -d $ipv6libdir -a -f $ipv6libdir/lib$ipv6lib.a; then
16239 LIBS="-L$ipv6libdir -l$ipv6lib $LIBS"
16240 echo "using lib$ipv6lib"
16241 else
16242 if test $ipv6trylibc = "yes"; then
16243 echo "using libc"
16244 else
16245 echo 'Fatal: no $ipv6lib library found. cannot continue.'
16246 echo "You need to fetch lib$ipv6lib.a from appropriate"
16247 echo 'ipv6 kit and compile beforehand.'
16248 exit 1
16253 { echo "$as_me:$LINENO: checking for OSX 10.5 SDK or later" >&5
16254 echo $ECHO_N "checking for OSX 10.5 SDK or later... $ECHO_C" >&6; }
16255 cat >conftest.$ac_ext <<_ACEOF
16256 /* confdefs.h. */
16257 _ACEOF
16258 cat confdefs.h >>conftest.$ac_ext
16259 cat >>conftest.$ac_ext <<_ACEOF
16260 /* end confdefs.h. */
16261 #include <Carbon/Carbon.h>
16263 main ()
16265 FSIORefNum fRef = 0
16267 return 0;
16269 _ACEOF
16270 rm -f conftest.$ac_objext
16271 if { (ac_try="$ac_compile"
16272 case "(($ac_try" in
16273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16274 *) ac_try_echo=$ac_try;;
16275 esac
16276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16277 (eval "$ac_compile") 2>conftest.er1
16278 ac_status=$?
16279 grep -v '^ *+' conftest.er1 >conftest.err
16280 rm -f conftest.er1
16281 cat conftest.err >&5
16282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16283 (exit $ac_status); } && {
16284 test -z "$ac_c_werror_flag" ||
16285 test ! -s conftest.err
16286 } && test -s conftest.$ac_objext; then
16288 cat >>confdefs.h <<\_ACEOF
16289 #define HAVE_OSX105_SDK 1
16290 _ACEOF
16292 { echo "$as_me:$LINENO: result: yes" >&5
16293 echo "${ECHO_T}yes" >&6; }
16294 else
16295 echo "$as_me: failed program was:" >&5
16296 sed 's/^/| /' conftest.$ac_ext >&5
16298 { echo "$as_me:$LINENO: result: no" >&5
16299 echo "${ECHO_T}no" >&6; }
16303 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16305 # Check for --with-doc-strings
16306 { echo "$as_me:$LINENO: checking for --with-doc-strings" >&5
16307 echo $ECHO_N "checking for --with-doc-strings... $ECHO_C" >&6; }
16309 # Check whether --with-doc-strings was given.
16310 if test "${with_doc_strings+set}" = set; then
16311 withval=$with_doc_strings;
16315 if test -z "$with_doc_strings"
16316 then with_doc_strings="yes"
16318 if test "$with_doc_strings" != "no"
16319 then
16321 cat >>confdefs.h <<\_ACEOF
16322 #define WITH_DOC_STRINGS 1
16323 _ACEOF
16326 { echo "$as_me:$LINENO: result: $with_doc_strings" >&5
16327 echo "${ECHO_T}$with_doc_strings" >&6; }
16329 # Check for Python-specific malloc support
16330 { echo "$as_me:$LINENO: checking for --with-tsc" >&5
16331 echo $ECHO_N "checking for --with-tsc... $ECHO_C" >&6; }
16333 # Check whether --with-tsc was given.
16334 if test "${with_tsc+set}" = set; then
16335 withval=$with_tsc;
16336 if test "$withval" != no
16337 then
16339 cat >>confdefs.h <<\_ACEOF
16340 #define WITH_TSC 1
16341 _ACEOF
16343 { echo "$as_me:$LINENO: result: yes" >&5
16344 echo "${ECHO_T}yes" >&6; }
16345 else { echo "$as_me:$LINENO: result: no" >&5
16346 echo "${ECHO_T}no" >&6; }
16348 else
16349 { echo "$as_me:$LINENO: result: no" >&5
16350 echo "${ECHO_T}no" >&6; }
16354 # Check for Python-specific malloc support
16355 { echo "$as_me:$LINENO: checking for --with-pymalloc" >&5
16356 echo $ECHO_N "checking for --with-pymalloc... $ECHO_C" >&6; }
16358 # Check whether --with-pymalloc was given.
16359 if test "${with_pymalloc+set}" = set; then
16360 withval=$with_pymalloc;
16364 if test -z "$with_pymalloc"
16365 then with_pymalloc="yes"
16367 if test "$with_pymalloc" != "no"
16368 then
16370 cat >>confdefs.h <<\_ACEOF
16371 #define WITH_PYMALLOC 1
16372 _ACEOF
16375 { echo "$as_me:$LINENO: result: $with_pymalloc" >&5
16376 echo "${ECHO_T}$with_pymalloc" >&6; }
16378 # Check for --with-wctype-functions
16379 { echo "$as_me:$LINENO: checking for --with-wctype-functions" >&5
16380 echo $ECHO_N "checking for --with-wctype-functions... $ECHO_C" >&6; }
16382 # Check whether --with-wctype-functions was given.
16383 if test "${with_wctype_functions+set}" = set; then
16384 withval=$with_wctype_functions;
16385 if test "$withval" != no
16386 then
16388 cat >>confdefs.h <<\_ACEOF
16389 #define WANT_WCTYPE_FUNCTIONS 1
16390 _ACEOF
16392 { echo "$as_me:$LINENO: result: yes" >&5
16393 echo "${ECHO_T}yes" >&6; }
16394 else { echo "$as_me:$LINENO: result: no" >&5
16395 echo "${ECHO_T}no" >&6; }
16397 else
16398 { echo "$as_me:$LINENO: result: no" >&5
16399 echo "${ECHO_T}no" >&6; }
16403 # -I${DLINCLDIR} is added to the compile rule for importdl.o
16405 DLINCLDIR=.
16407 # the dlopen() function means we might want to use dynload_shlib.o. some
16408 # platforms, such as AIX, have dlopen(), but don't want to use it.
16410 for ac_func in dlopen
16412 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16413 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16414 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16415 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16416 echo $ECHO_N "(cached) $ECHO_C" >&6
16417 else
16418 cat >conftest.$ac_ext <<_ACEOF
16419 /* confdefs.h. */
16420 _ACEOF
16421 cat confdefs.h >>conftest.$ac_ext
16422 cat >>conftest.$ac_ext <<_ACEOF
16423 /* end confdefs.h. */
16424 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16425 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16426 #define $ac_func innocuous_$ac_func
16428 /* System header to define __stub macros and hopefully few prototypes,
16429 which can conflict with char $ac_func (); below.
16430 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16431 <limits.h> exists even on freestanding compilers. */
16433 #ifdef __STDC__
16434 # include <limits.h>
16435 #else
16436 # include <assert.h>
16437 #endif
16439 #undef $ac_func
16441 /* Override any GCC internal prototype to avoid an error.
16442 Use char because int might match the return type of a GCC
16443 builtin and then its argument prototype would still apply. */
16444 #ifdef __cplusplus
16445 extern "C"
16446 #endif
16447 char $ac_func ();
16448 /* The GNU C library defines this for functions which it implements
16449 to always fail with ENOSYS. Some functions are actually named
16450 something starting with __ and the normal name is an alias. */
16451 #if defined __stub_$ac_func || defined __stub___$ac_func
16452 choke me
16453 #endif
16456 main ()
16458 return $ac_func ();
16460 return 0;
16462 _ACEOF
16463 rm -f conftest.$ac_objext conftest$ac_exeext
16464 if { (ac_try="$ac_link"
16465 case "(($ac_try" in
16466 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16467 *) ac_try_echo=$ac_try;;
16468 esac
16469 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16470 (eval "$ac_link") 2>conftest.er1
16471 ac_status=$?
16472 grep -v '^ *+' conftest.er1 >conftest.err
16473 rm -f conftest.er1
16474 cat conftest.err >&5
16475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16476 (exit $ac_status); } && {
16477 test -z "$ac_c_werror_flag" ||
16478 test ! -s conftest.err
16479 } && test -s conftest$ac_exeext &&
16480 $as_test_x conftest$ac_exeext; then
16481 eval "$as_ac_var=yes"
16482 else
16483 echo "$as_me: failed program was:" >&5
16484 sed 's/^/| /' conftest.$ac_ext >&5
16486 eval "$as_ac_var=no"
16489 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16490 conftest$ac_exeext conftest.$ac_ext
16492 ac_res=`eval echo '${'$as_ac_var'}'`
16493 { echo "$as_me:$LINENO: result: $ac_res" >&5
16494 echo "${ECHO_T}$ac_res" >&6; }
16495 if test `eval echo '${'$as_ac_var'}'` = yes; then
16496 cat >>confdefs.h <<_ACEOF
16497 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16498 _ACEOF
16501 done
16504 # DYNLOADFILE specifies which dynload_*.o file we will use for dynamic
16505 # loading of modules.
16507 { echo "$as_me:$LINENO: checking DYNLOADFILE" >&5
16508 echo $ECHO_N "checking DYNLOADFILE... $ECHO_C" >&6; }
16509 if test -z "$DYNLOADFILE"
16510 then
16511 case $ac_sys_system/$ac_sys_release in
16512 AIX*) # Use dynload_shlib.c and dlopen() if we have it; otherwise dynload_aix.c
16513 if test "$ac_cv_func_dlopen" = yes
16514 then DYNLOADFILE="dynload_shlib.o"
16515 else DYNLOADFILE="dynload_aix.o"
16518 BeOS*) DYNLOADFILE="dynload_beos.o";;
16519 hp*|HP*) DYNLOADFILE="dynload_hpux.o";;
16520 # Use dynload_next.c only on 10.2 and below, which don't have native dlopen()
16521 Darwin/[0156]\..*) DYNLOADFILE="dynload_next.o";;
16522 atheos*) DYNLOADFILE="dynload_atheos.o";;
16524 # use dynload_shlib.c and dlopen() if we have it; otherwise stub
16525 # out any dynamic loading
16526 if test "$ac_cv_func_dlopen" = yes
16527 then DYNLOADFILE="dynload_shlib.o"
16528 else DYNLOADFILE="dynload_stub.o"
16531 esac
16533 { echo "$as_me:$LINENO: result: $DYNLOADFILE" >&5
16534 echo "${ECHO_T}$DYNLOADFILE" >&6; }
16535 if test "$DYNLOADFILE" != "dynload_stub.o"
16536 then
16538 cat >>confdefs.h <<\_ACEOF
16539 #define HAVE_DYNAMIC_LOADING 1
16540 _ACEOF
16544 # MACHDEP_OBJS can be set to platform-specific object files needed by Python
16547 { echo "$as_me:$LINENO: checking MACHDEP_OBJS" >&5
16548 echo $ECHO_N "checking MACHDEP_OBJS... $ECHO_C" >&6; }
16549 if test -z "$MACHDEP_OBJS"
16550 then
16551 MACHDEP_OBJS=$extra_machdep_objs
16552 else
16553 MACHDEP_OBJS="$MACHDEP_OBJS $extra_machdep_objs"
16555 { echo "$as_me:$LINENO: result: MACHDEP_OBJS" >&5
16556 echo "${ECHO_T}MACHDEP_OBJS" >&6; }
16558 # checks for library functions
16644 for ac_func in alarm setitimer getitimer bind_textdomain_codeset chown \
16645 clock confstr ctermid execv fchmod fchown fork fpathconf ftime ftruncate \
16646 gai_strerror getgroups getlogin getloadavg getpeername getpgid getpid \
16647 getpriority getpwent getspnam getspent getsid getwd \
16648 kill killpg lchmod lchown lstat mkfifo mknod mktime \
16649 mremap nice pathconf pause plock poll pthread_init \
16650 putenv readlink realpath \
16651 select sem_open sem_timedwait sem_getvalue sem_unlink setegid seteuid \
16652 setgid \
16653 setlocale setregid setreuid setsid setpgid setpgrp setuid setvbuf snprintf \
16654 sigaction siginterrupt sigrelse strftime \
16655 sysconf tcgetpgrp tcsetpgrp tempnam timegm times tmpfile tmpnam tmpnam_r \
16656 truncate uname unsetenv utimes waitpid wait3 wait4 wcscoll _getpty
16658 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16659 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16660 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16661 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16662 echo $ECHO_N "(cached) $ECHO_C" >&6
16663 else
16664 cat >conftest.$ac_ext <<_ACEOF
16665 /* confdefs.h. */
16666 _ACEOF
16667 cat confdefs.h >>conftest.$ac_ext
16668 cat >>conftest.$ac_ext <<_ACEOF
16669 /* end confdefs.h. */
16670 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16671 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16672 #define $ac_func innocuous_$ac_func
16674 /* System header to define __stub macros and hopefully few prototypes,
16675 which can conflict with char $ac_func (); below.
16676 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16677 <limits.h> exists even on freestanding compilers. */
16679 #ifdef __STDC__
16680 # include <limits.h>
16681 #else
16682 # include <assert.h>
16683 #endif
16685 #undef $ac_func
16687 /* Override any GCC internal prototype to avoid an error.
16688 Use char because int might match the return type of a GCC
16689 builtin and then its argument prototype would still apply. */
16690 #ifdef __cplusplus
16691 extern "C"
16692 #endif
16693 char $ac_func ();
16694 /* The GNU C library defines this for functions which it implements
16695 to always fail with ENOSYS. Some functions are actually named
16696 something starting with __ and the normal name is an alias. */
16697 #if defined __stub_$ac_func || defined __stub___$ac_func
16698 choke me
16699 #endif
16702 main ()
16704 return $ac_func ();
16706 return 0;
16708 _ACEOF
16709 rm -f conftest.$ac_objext conftest$ac_exeext
16710 if { (ac_try="$ac_link"
16711 case "(($ac_try" in
16712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16713 *) ac_try_echo=$ac_try;;
16714 esac
16715 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16716 (eval "$ac_link") 2>conftest.er1
16717 ac_status=$?
16718 grep -v '^ *+' conftest.er1 >conftest.err
16719 rm -f conftest.er1
16720 cat conftest.err >&5
16721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16722 (exit $ac_status); } && {
16723 test -z "$ac_c_werror_flag" ||
16724 test ! -s conftest.err
16725 } && test -s conftest$ac_exeext &&
16726 $as_test_x conftest$ac_exeext; then
16727 eval "$as_ac_var=yes"
16728 else
16729 echo "$as_me: failed program was:" >&5
16730 sed 's/^/| /' conftest.$ac_ext >&5
16732 eval "$as_ac_var=no"
16735 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16736 conftest$ac_exeext conftest.$ac_ext
16738 ac_res=`eval echo '${'$as_ac_var'}'`
16739 { echo "$as_me:$LINENO: result: $ac_res" >&5
16740 echo "${ECHO_T}$ac_res" >&6; }
16741 if test `eval echo '${'$as_ac_var'}'` = yes; then
16742 cat >>confdefs.h <<_ACEOF
16743 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16744 _ACEOF
16747 done
16750 # For some functions, having a definition is not sufficient, since
16751 # we want to take their address.
16752 { echo "$as_me:$LINENO: checking for chroot" >&5
16753 echo $ECHO_N "checking for chroot... $ECHO_C" >&6; }
16754 cat >conftest.$ac_ext <<_ACEOF
16755 /* confdefs.h. */
16756 _ACEOF
16757 cat confdefs.h >>conftest.$ac_ext
16758 cat >>conftest.$ac_ext <<_ACEOF
16759 /* end confdefs.h. */
16760 #include <unistd.h>
16762 main ()
16764 void *x=chroot
16766 return 0;
16768 _ACEOF
16769 rm -f conftest.$ac_objext
16770 if { (ac_try="$ac_compile"
16771 case "(($ac_try" in
16772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16773 *) ac_try_echo=$ac_try;;
16774 esac
16775 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16776 (eval "$ac_compile") 2>conftest.er1
16777 ac_status=$?
16778 grep -v '^ *+' conftest.er1 >conftest.err
16779 rm -f conftest.er1
16780 cat conftest.err >&5
16781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16782 (exit $ac_status); } && {
16783 test -z "$ac_c_werror_flag" ||
16784 test ! -s conftest.err
16785 } && test -s conftest.$ac_objext; then
16787 cat >>confdefs.h <<\_ACEOF
16788 #define HAVE_CHROOT 1
16789 _ACEOF
16791 { echo "$as_me:$LINENO: result: yes" >&5
16792 echo "${ECHO_T}yes" >&6; }
16793 else
16794 echo "$as_me: failed program was:" >&5
16795 sed 's/^/| /' conftest.$ac_ext >&5
16797 { echo "$as_me:$LINENO: result: no" >&5
16798 echo "${ECHO_T}no" >&6; }
16802 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16803 { echo "$as_me:$LINENO: checking for link" >&5
16804 echo $ECHO_N "checking for link... $ECHO_C" >&6; }
16805 cat >conftest.$ac_ext <<_ACEOF
16806 /* confdefs.h. */
16807 _ACEOF
16808 cat confdefs.h >>conftest.$ac_ext
16809 cat >>conftest.$ac_ext <<_ACEOF
16810 /* end confdefs.h. */
16811 #include <unistd.h>
16813 main ()
16815 void *x=link
16817 return 0;
16819 _ACEOF
16820 rm -f conftest.$ac_objext
16821 if { (ac_try="$ac_compile"
16822 case "(($ac_try" in
16823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16824 *) ac_try_echo=$ac_try;;
16825 esac
16826 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16827 (eval "$ac_compile") 2>conftest.er1
16828 ac_status=$?
16829 grep -v '^ *+' conftest.er1 >conftest.err
16830 rm -f conftest.er1
16831 cat conftest.err >&5
16832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16833 (exit $ac_status); } && {
16834 test -z "$ac_c_werror_flag" ||
16835 test ! -s conftest.err
16836 } && test -s conftest.$ac_objext; then
16838 cat >>confdefs.h <<\_ACEOF
16839 #define HAVE_LINK 1
16840 _ACEOF
16842 { echo "$as_me:$LINENO: result: yes" >&5
16843 echo "${ECHO_T}yes" >&6; }
16844 else
16845 echo "$as_me: failed program was:" >&5
16846 sed 's/^/| /' conftest.$ac_ext >&5
16848 { echo "$as_me:$LINENO: result: no" >&5
16849 echo "${ECHO_T}no" >&6; }
16853 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16854 { echo "$as_me:$LINENO: checking for symlink" >&5
16855 echo $ECHO_N "checking for symlink... $ECHO_C" >&6; }
16856 cat >conftest.$ac_ext <<_ACEOF
16857 /* confdefs.h. */
16858 _ACEOF
16859 cat confdefs.h >>conftest.$ac_ext
16860 cat >>conftest.$ac_ext <<_ACEOF
16861 /* end confdefs.h. */
16862 #include <unistd.h>
16864 main ()
16866 void *x=symlink
16868 return 0;
16870 _ACEOF
16871 rm -f conftest.$ac_objext
16872 if { (ac_try="$ac_compile"
16873 case "(($ac_try" in
16874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16875 *) ac_try_echo=$ac_try;;
16876 esac
16877 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16878 (eval "$ac_compile") 2>conftest.er1
16879 ac_status=$?
16880 grep -v '^ *+' conftest.er1 >conftest.err
16881 rm -f conftest.er1
16882 cat conftest.err >&5
16883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16884 (exit $ac_status); } && {
16885 test -z "$ac_c_werror_flag" ||
16886 test ! -s conftest.err
16887 } && test -s conftest.$ac_objext; then
16889 cat >>confdefs.h <<\_ACEOF
16890 #define HAVE_SYMLINK 1
16891 _ACEOF
16893 { echo "$as_me:$LINENO: result: yes" >&5
16894 echo "${ECHO_T}yes" >&6; }
16895 else
16896 echo "$as_me: failed program was:" >&5
16897 sed 's/^/| /' conftest.$ac_ext >&5
16899 { echo "$as_me:$LINENO: result: no" >&5
16900 echo "${ECHO_T}no" >&6; }
16904 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16905 { echo "$as_me:$LINENO: checking for fchdir" >&5
16906 echo $ECHO_N "checking for fchdir... $ECHO_C" >&6; }
16907 cat >conftest.$ac_ext <<_ACEOF
16908 /* confdefs.h. */
16909 _ACEOF
16910 cat confdefs.h >>conftest.$ac_ext
16911 cat >>conftest.$ac_ext <<_ACEOF
16912 /* end confdefs.h. */
16913 #include <unistd.h>
16915 main ()
16917 void *x=fchdir
16919 return 0;
16921 _ACEOF
16922 rm -f conftest.$ac_objext
16923 if { (ac_try="$ac_compile"
16924 case "(($ac_try" in
16925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16926 *) ac_try_echo=$ac_try;;
16927 esac
16928 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16929 (eval "$ac_compile") 2>conftest.er1
16930 ac_status=$?
16931 grep -v '^ *+' conftest.er1 >conftest.err
16932 rm -f conftest.er1
16933 cat conftest.err >&5
16934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16935 (exit $ac_status); } && {
16936 test -z "$ac_c_werror_flag" ||
16937 test ! -s conftest.err
16938 } && test -s conftest.$ac_objext; then
16940 cat >>confdefs.h <<\_ACEOF
16941 #define HAVE_FCHDIR 1
16942 _ACEOF
16944 { echo "$as_me:$LINENO: result: yes" >&5
16945 echo "${ECHO_T}yes" >&6; }
16946 else
16947 echo "$as_me: failed program was:" >&5
16948 sed 's/^/| /' conftest.$ac_ext >&5
16950 { echo "$as_me:$LINENO: result: no" >&5
16951 echo "${ECHO_T}no" >&6; }
16955 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16956 { echo "$as_me:$LINENO: checking for fsync" >&5
16957 echo $ECHO_N "checking for fsync... $ECHO_C" >&6; }
16958 cat >conftest.$ac_ext <<_ACEOF
16959 /* confdefs.h. */
16960 _ACEOF
16961 cat confdefs.h >>conftest.$ac_ext
16962 cat >>conftest.$ac_ext <<_ACEOF
16963 /* end confdefs.h. */
16964 #include <unistd.h>
16966 main ()
16968 void *x=fsync
16970 return 0;
16972 _ACEOF
16973 rm -f conftest.$ac_objext
16974 if { (ac_try="$ac_compile"
16975 case "(($ac_try" in
16976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16977 *) ac_try_echo=$ac_try;;
16978 esac
16979 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16980 (eval "$ac_compile") 2>conftest.er1
16981 ac_status=$?
16982 grep -v '^ *+' conftest.er1 >conftest.err
16983 rm -f conftest.er1
16984 cat conftest.err >&5
16985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16986 (exit $ac_status); } && {
16987 test -z "$ac_c_werror_flag" ||
16988 test ! -s conftest.err
16989 } && test -s conftest.$ac_objext; then
16991 cat >>confdefs.h <<\_ACEOF
16992 #define HAVE_FSYNC 1
16993 _ACEOF
16995 { echo "$as_me:$LINENO: result: yes" >&5
16996 echo "${ECHO_T}yes" >&6; }
16997 else
16998 echo "$as_me: failed program was:" >&5
16999 sed 's/^/| /' conftest.$ac_ext >&5
17001 { echo "$as_me:$LINENO: result: no" >&5
17002 echo "${ECHO_T}no" >&6; }
17006 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17007 { echo "$as_me:$LINENO: checking for fdatasync" >&5
17008 echo $ECHO_N "checking for fdatasync... $ECHO_C" >&6; }
17009 cat >conftest.$ac_ext <<_ACEOF
17010 /* confdefs.h. */
17011 _ACEOF
17012 cat confdefs.h >>conftest.$ac_ext
17013 cat >>conftest.$ac_ext <<_ACEOF
17014 /* end confdefs.h. */
17015 #include <unistd.h>
17017 main ()
17019 void *x=fdatasync
17021 return 0;
17023 _ACEOF
17024 rm -f conftest.$ac_objext
17025 if { (ac_try="$ac_compile"
17026 case "(($ac_try" in
17027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17028 *) ac_try_echo=$ac_try;;
17029 esac
17030 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17031 (eval "$ac_compile") 2>conftest.er1
17032 ac_status=$?
17033 grep -v '^ *+' conftest.er1 >conftest.err
17034 rm -f conftest.er1
17035 cat conftest.err >&5
17036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17037 (exit $ac_status); } && {
17038 test -z "$ac_c_werror_flag" ||
17039 test ! -s conftest.err
17040 } && test -s conftest.$ac_objext; then
17042 cat >>confdefs.h <<\_ACEOF
17043 #define HAVE_FDATASYNC 1
17044 _ACEOF
17046 { echo "$as_me:$LINENO: result: yes" >&5
17047 echo "${ECHO_T}yes" >&6; }
17048 else
17049 echo "$as_me: failed program was:" >&5
17050 sed 's/^/| /' conftest.$ac_ext >&5
17052 { echo "$as_me:$LINENO: result: no" >&5
17053 echo "${ECHO_T}no" >&6; }
17057 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17058 { echo "$as_me:$LINENO: checking for epoll" >&5
17059 echo $ECHO_N "checking for epoll... $ECHO_C" >&6; }
17060 cat >conftest.$ac_ext <<_ACEOF
17061 /* confdefs.h. */
17062 _ACEOF
17063 cat confdefs.h >>conftest.$ac_ext
17064 cat >>conftest.$ac_ext <<_ACEOF
17065 /* end confdefs.h. */
17066 #include <sys/epoll.h>
17068 main ()
17070 void *x=epoll_create
17072 return 0;
17074 _ACEOF
17075 rm -f conftest.$ac_objext
17076 if { (ac_try="$ac_compile"
17077 case "(($ac_try" in
17078 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17079 *) ac_try_echo=$ac_try;;
17080 esac
17081 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17082 (eval "$ac_compile") 2>conftest.er1
17083 ac_status=$?
17084 grep -v '^ *+' conftest.er1 >conftest.err
17085 rm -f conftest.er1
17086 cat conftest.err >&5
17087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17088 (exit $ac_status); } && {
17089 test -z "$ac_c_werror_flag" ||
17090 test ! -s conftest.err
17091 } && test -s conftest.$ac_objext; then
17093 cat >>confdefs.h <<\_ACEOF
17094 #define HAVE_EPOLL 1
17095 _ACEOF
17097 { echo "$as_me:$LINENO: result: yes" >&5
17098 echo "${ECHO_T}yes" >&6; }
17099 else
17100 echo "$as_me: failed program was:" >&5
17101 sed 's/^/| /' conftest.$ac_ext >&5
17103 { echo "$as_me:$LINENO: result: no" >&5
17104 echo "${ECHO_T}no" >&6; }
17108 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17109 { echo "$as_me:$LINENO: checking for kqueue" >&5
17110 echo $ECHO_N "checking for kqueue... $ECHO_C" >&6; }
17111 cat >conftest.$ac_ext <<_ACEOF
17112 /* confdefs.h. */
17113 _ACEOF
17114 cat confdefs.h >>conftest.$ac_ext
17115 cat >>conftest.$ac_ext <<_ACEOF
17116 /* end confdefs.h. */
17118 #include <sys/types.h>
17119 #include <sys/event.h>
17122 main ()
17124 int x=kqueue()
17126 return 0;
17128 _ACEOF
17129 rm -f conftest.$ac_objext
17130 if { (ac_try="$ac_compile"
17131 case "(($ac_try" in
17132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17133 *) ac_try_echo=$ac_try;;
17134 esac
17135 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17136 (eval "$ac_compile") 2>conftest.er1
17137 ac_status=$?
17138 grep -v '^ *+' conftest.er1 >conftest.err
17139 rm -f conftest.er1
17140 cat conftest.err >&5
17141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17142 (exit $ac_status); } && {
17143 test -z "$ac_c_werror_flag" ||
17144 test ! -s conftest.err
17145 } && test -s conftest.$ac_objext; then
17147 cat >>confdefs.h <<\_ACEOF
17148 #define HAVE_KQUEUE 1
17149 _ACEOF
17151 { echo "$as_me:$LINENO: result: yes" >&5
17152 echo "${ECHO_T}yes" >&6; }
17153 else
17154 echo "$as_me: failed program was:" >&5
17155 sed 's/^/| /' conftest.$ac_ext >&5
17157 { echo "$as_me:$LINENO: result: no" >&5
17158 echo "${ECHO_T}no" >&6; }
17162 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17163 # On some systems (eg. FreeBSD 5), we would find a definition of the
17164 # functions ctermid_r, setgroups in the library, but no prototype
17165 # (e.g. because we use _XOPEN_SOURCE). See whether we can take their
17166 # address to avoid compiler warnings and potential miscompilations
17167 # because of the missing prototypes.
17169 { echo "$as_me:$LINENO: checking for ctermid_r" >&5
17170 echo $ECHO_N "checking for ctermid_r... $ECHO_C" >&6; }
17171 cat >conftest.$ac_ext <<_ACEOF
17172 /* confdefs.h. */
17173 _ACEOF
17174 cat confdefs.h >>conftest.$ac_ext
17175 cat >>conftest.$ac_ext <<_ACEOF
17176 /* end confdefs.h. */
17178 #include "confdefs.h"
17179 #include <stdio.h>
17182 main ()
17184 void* p = ctermid_r
17186 return 0;
17188 _ACEOF
17189 rm -f conftest.$ac_objext
17190 if { (ac_try="$ac_compile"
17191 case "(($ac_try" in
17192 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17193 *) ac_try_echo=$ac_try;;
17194 esac
17195 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17196 (eval "$ac_compile") 2>conftest.er1
17197 ac_status=$?
17198 grep -v '^ *+' conftest.er1 >conftest.err
17199 rm -f conftest.er1
17200 cat conftest.err >&5
17201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17202 (exit $ac_status); } && {
17203 test -z "$ac_c_werror_flag" ||
17204 test ! -s conftest.err
17205 } && test -s conftest.$ac_objext; then
17207 cat >>confdefs.h <<\_ACEOF
17208 #define HAVE_CTERMID_R 1
17209 _ACEOF
17211 { echo "$as_me:$LINENO: result: yes" >&5
17212 echo "${ECHO_T}yes" >&6; }
17213 else
17214 echo "$as_me: failed program was:" >&5
17215 sed 's/^/| /' conftest.$ac_ext >&5
17217 { echo "$as_me:$LINENO: result: no" >&5
17218 echo "${ECHO_T}no" >&6; }
17222 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17224 { echo "$as_me:$LINENO: checking for flock" >&5
17225 echo $ECHO_N "checking for flock... $ECHO_C" >&6; }
17226 cat >conftest.$ac_ext <<_ACEOF
17227 /* confdefs.h. */
17228 _ACEOF
17229 cat confdefs.h >>conftest.$ac_ext
17230 cat >>conftest.$ac_ext <<_ACEOF
17231 /* end confdefs.h. */
17233 #include "confdefs.h"
17234 #include <sys/file.h>
17237 main ()
17239 void* p = flock
17241 return 0;
17243 _ACEOF
17244 rm -f conftest.$ac_objext
17245 if { (ac_try="$ac_compile"
17246 case "(($ac_try" in
17247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17248 *) ac_try_echo=$ac_try;;
17249 esac
17250 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17251 (eval "$ac_compile") 2>conftest.er1
17252 ac_status=$?
17253 grep -v '^ *+' conftest.er1 >conftest.err
17254 rm -f conftest.er1
17255 cat conftest.err >&5
17256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17257 (exit $ac_status); } && {
17258 test -z "$ac_c_werror_flag" ||
17259 test ! -s conftest.err
17260 } && test -s conftest.$ac_objext; then
17262 cat >>confdefs.h <<\_ACEOF
17263 #define HAVE_FLOCK 1
17264 _ACEOF
17266 { echo "$as_me:$LINENO: result: yes" >&5
17267 echo "${ECHO_T}yes" >&6; }
17268 else
17269 echo "$as_me: failed program was:" >&5
17270 sed 's/^/| /' conftest.$ac_ext >&5
17272 { echo "$as_me:$LINENO: result: no" >&5
17273 echo "${ECHO_T}no" >&6; }
17277 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17279 { echo "$as_me:$LINENO: checking for getpagesize" >&5
17280 echo $ECHO_N "checking for getpagesize... $ECHO_C" >&6; }
17281 cat >conftest.$ac_ext <<_ACEOF
17282 /* confdefs.h. */
17283 _ACEOF
17284 cat confdefs.h >>conftest.$ac_ext
17285 cat >>conftest.$ac_ext <<_ACEOF
17286 /* end confdefs.h. */
17288 #include "confdefs.h"
17289 #include <unistd.h>
17292 main ()
17294 void* p = getpagesize
17296 return 0;
17298 _ACEOF
17299 rm -f conftest.$ac_objext
17300 if { (ac_try="$ac_compile"
17301 case "(($ac_try" in
17302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17303 *) ac_try_echo=$ac_try;;
17304 esac
17305 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17306 (eval "$ac_compile") 2>conftest.er1
17307 ac_status=$?
17308 grep -v '^ *+' conftest.er1 >conftest.err
17309 rm -f conftest.er1
17310 cat conftest.err >&5
17311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17312 (exit $ac_status); } && {
17313 test -z "$ac_c_werror_flag" ||
17314 test ! -s conftest.err
17315 } && test -s conftest.$ac_objext; then
17317 cat >>confdefs.h <<\_ACEOF
17318 #define HAVE_GETPAGESIZE 1
17319 _ACEOF
17321 { echo "$as_me:$LINENO: result: yes" >&5
17322 echo "${ECHO_T}yes" >&6; }
17323 else
17324 echo "$as_me: failed program was:" >&5
17325 sed 's/^/| /' conftest.$ac_ext >&5
17327 { echo "$as_me:$LINENO: result: no" >&5
17328 echo "${ECHO_T}no" >&6; }
17332 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17334 for ac_prog in true
17336 # Extract the first word of "$ac_prog", so it can be a program name with args.
17337 set dummy $ac_prog; ac_word=$2
17338 { echo "$as_me:$LINENO: checking for $ac_word" >&5
17339 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
17340 if test "${ac_cv_prog_TRUE+set}" = set; then
17341 echo $ECHO_N "(cached) $ECHO_C" >&6
17342 else
17343 if test -n "$TRUE"; then
17344 ac_cv_prog_TRUE="$TRUE" # Let the user override the test.
17345 else
17346 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17347 for as_dir in $PATH
17349 IFS=$as_save_IFS
17350 test -z "$as_dir" && as_dir=.
17351 for ac_exec_ext in '' $ac_executable_extensions; do
17352 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17353 ac_cv_prog_TRUE="$ac_prog"
17354 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17355 break 2
17357 done
17358 done
17359 IFS=$as_save_IFS
17363 TRUE=$ac_cv_prog_TRUE
17364 if test -n "$TRUE"; then
17365 { echo "$as_me:$LINENO: result: $TRUE" >&5
17366 echo "${ECHO_T}$TRUE" >&6; }
17367 else
17368 { echo "$as_me:$LINENO: result: no" >&5
17369 echo "${ECHO_T}no" >&6; }
17373 test -n "$TRUE" && break
17374 done
17375 test -n "$TRUE" || TRUE="/bin/true"
17378 { echo "$as_me:$LINENO: checking for inet_aton in -lc" >&5
17379 echo $ECHO_N "checking for inet_aton in -lc... $ECHO_C" >&6; }
17380 if test "${ac_cv_lib_c_inet_aton+set}" = set; then
17381 echo $ECHO_N "(cached) $ECHO_C" >&6
17382 else
17383 ac_check_lib_save_LIBS=$LIBS
17384 LIBS="-lc $LIBS"
17385 cat >conftest.$ac_ext <<_ACEOF
17386 /* confdefs.h. */
17387 _ACEOF
17388 cat confdefs.h >>conftest.$ac_ext
17389 cat >>conftest.$ac_ext <<_ACEOF
17390 /* end confdefs.h. */
17392 /* Override any GCC internal prototype to avoid an error.
17393 Use char because int might match the return type of a GCC
17394 builtin and then its argument prototype would still apply. */
17395 #ifdef __cplusplus
17396 extern "C"
17397 #endif
17398 char inet_aton ();
17400 main ()
17402 return inet_aton ();
17404 return 0;
17406 _ACEOF
17407 rm -f conftest.$ac_objext conftest$ac_exeext
17408 if { (ac_try="$ac_link"
17409 case "(($ac_try" in
17410 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17411 *) ac_try_echo=$ac_try;;
17412 esac
17413 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17414 (eval "$ac_link") 2>conftest.er1
17415 ac_status=$?
17416 grep -v '^ *+' conftest.er1 >conftest.err
17417 rm -f conftest.er1
17418 cat conftest.err >&5
17419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17420 (exit $ac_status); } && {
17421 test -z "$ac_c_werror_flag" ||
17422 test ! -s conftest.err
17423 } && test -s conftest$ac_exeext &&
17424 $as_test_x conftest$ac_exeext; then
17425 ac_cv_lib_c_inet_aton=yes
17426 else
17427 echo "$as_me: failed program was:" >&5
17428 sed 's/^/| /' conftest.$ac_ext >&5
17430 ac_cv_lib_c_inet_aton=no
17433 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17434 conftest$ac_exeext conftest.$ac_ext
17435 LIBS=$ac_check_lib_save_LIBS
17437 { echo "$as_me:$LINENO: result: $ac_cv_lib_c_inet_aton" >&5
17438 echo "${ECHO_T}$ac_cv_lib_c_inet_aton" >&6; }
17439 if test $ac_cv_lib_c_inet_aton = yes; then
17440 $ac_cv_prog_TRUE
17441 else
17443 { echo "$as_me:$LINENO: checking for inet_aton in -lresolv" >&5
17444 echo $ECHO_N "checking for inet_aton in -lresolv... $ECHO_C" >&6; }
17445 if test "${ac_cv_lib_resolv_inet_aton+set}" = set; then
17446 echo $ECHO_N "(cached) $ECHO_C" >&6
17447 else
17448 ac_check_lib_save_LIBS=$LIBS
17449 LIBS="-lresolv $LIBS"
17450 cat >conftest.$ac_ext <<_ACEOF
17451 /* confdefs.h. */
17452 _ACEOF
17453 cat confdefs.h >>conftest.$ac_ext
17454 cat >>conftest.$ac_ext <<_ACEOF
17455 /* end confdefs.h. */
17457 /* Override any GCC internal prototype to avoid an error.
17458 Use char because int might match the return type of a GCC
17459 builtin and then its argument prototype would still apply. */
17460 #ifdef __cplusplus
17461 extern "C"
17462 #endif
17463 char inet_aton ();
17465 main ()
17467 return inet_aton ();
17469 return 0;
17471 _ACEOF
17472 rm -f conftest.$ac_objext conftest$ac_exeext
17473 if { (ac_try="$ac_link"
17474 case "(($ac_try" in
17475 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17476 *) ac_try_echo=$ac_try;;
17477 esac
17478 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17479 (eval "$ac_link") 2>conftest.er1
17480 ac_status=$?
17481 grep -v '^ *+' conftest.er1 >conftest.err
17482 rm -f conftest.er1
17483 cat conftest.err >&5
17484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17485 (exit $ac_status); } && {
17486 test -z "$ac_c_werror_flag" ||
17487 test ! -s conftest.err
17488 } && test -s conftest$ac_exeext &&
17489 $as_test_x conftest$ac_exeext; then
17490 ac_cv_lib_resolv_inet_aton=yes
17491 else
17492 echo "$as_me: failed program was:" >&5
17493 sed 's/^/| /' conftest.$ac_ext >&5
17495 ac_cv_lib_resolv_inet_aton=no
17498 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17499 conftest$ac_exeext conftest.$ac_ext
17500 LIBS=$ac_check_lib_save_LIBS
17502 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_aton" >&5
17503 echo "${ECHO_T}$ac_cv_lib_resolv_inet_aton" >&6; }
17504 if test $ac_cv_lib_resolv_inet_aton = yes; then
17505 cat >>confdefs.h <<_ACEOF
17506 #define HAVE_LIBRESOLV 1
17507 _ACEOF
17509 LIBS="-lresolv $LIBS"
17517 # On Tru64, chflags seems to be present, but calling it will
17518 # exit Python
17519 { echo "$as_me:$LINENO: checking for chflags" >&5
17520 echo $ECHO_N "checking for chflags... $ECHO_C" >&6; }
17521 if test "$cross_compiling" = yes; then
17522 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
17523 See \`config.log' for more details." >&5
17524 echo "$as_me: error: cannot run test program while cross compiling
17525 See \`config.log' for more details." >&2;}
17526 { (exit 1); exit 1; }; }
17527 else
17528 cat >conftest.$ac_ext <<_ACEOF
17529 /* confdefs.h. */
17530 _ACEOF
17531 cat confdefs.h >>conftest.$ac_ext
17532 cat >>conftest.$ac_ext <<_ACEOF
17533 /* end confdefs.h. */
17535 #include <sys/stat.h>
17536 #include <unistd.h>
17537 int main(int argc, char*argv[])
17539 if(chflags(argv[0], 0) != 0)
17540 return 1;
17541 return 0;
17544 _ACEOF
17545 rm -f conftest$ac_exeext
17546 if { (ac_try="$ac_link"
17547 case "(($ac_try" in
17548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17549 *) ac_try_echo=$ac_try;;
17550 esac
17551 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17552 (eval "$ac_link") 2>&5
17553 ac_status=$?
17554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17555 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17556 { (case "(($ac_try" in
17557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17558 *) ac_try_echo=$ac_try;;
17559 esac
17560 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17561 (eval "$ac_try") 2>&5
17562 ac_status=$?
17563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17564 (exit $ac_status); }; }; then
17566 cat >>confdefs.h <<\_ACEOF
17567 #define HAVE_CHFLAGS 1
17568 _ACEOF
17570 { echo "$as_me:$LINENO: result: yes" >&5
17571 echo "${ECHO_T}yes" >&6; }
17572 else
17573 echo "$as_me: program exited with status $ac_status" >&5
17574 echo "$as_me: failed program was:" >&5
17575 sed 's/^/| /' conftest.$ac_ext >&5
17577 ( exit $ac_status )
17578 { echo "$as_me:$LINENO: result: no" >&5
17579 echo "${ECHO_T}no" >&6; }
17582 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17587 { echo "$as_me:$LINENO: checking for lchflags" >&5
17588 echo $ECHO_N "checking for lchflags... $ECHO_C" >&6; }
17589 if test "$cross_compiling" = yes; then
17590 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
17591 See \`config.log' for more details." >&5
17592 echo "$as_me: error: cannot run test program while cross compiling
17593 See \`config.log' for more details." >&2;}
17594 { (exit 1); exit 1; }; }
17595 else
17596 cat >conftest.$ac_ext <<_ACEOF
17597 /* confdefs.h. */
17598 _ACEOF
17599 cat confdefs.h >>conftest.$ac_ext
17600 cat >>conftest.$ac_ext <<_ACEOF
17601 /* end confdefs.h. */
17603 #include <sys/stat.h>
17604 #include <unistd.h>
17605 int main(int argc, char*argv[])
17607 if(lchflags(argv[0], 0) != 0)
17608 return 1;
17609 return 0;
17612 _ACEOF
17613 rm -f conftest$ac_exeext
17614 if { (ac_try="$ac_link"
17615 case "(($ac_try" in
17616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17617 *) ac_try_echo=$ac_try;;
17618 esac
17619 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17620 (eval "$ac_link") 2>&5
17621 ac_status=$?
17622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17623 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17624 { (case "(($ac_try" in
17625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17626 *) ac_try_echo=$ac_try;;
17627 esac
17628 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17629 (eval "$ac_try") 2>&5
17630 ac_status=$?
17631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17632 (exit $ac_status); }; }; then
17634 cat >>confdefs.h <<\_ACEOF
17635 #define HAVE_LCHFLAGS 1
17636 _ACEOF
17638 { echo "$as_me:$LINENO: result: yes" >&5
17639 echo "${ECHO_T}yes" >&6; }
17640 else
17641 echo "$as_me: program exited with status $ac_status" >&5
17642 echo "$as_me: failed program was:" >&5
17643 sed 's/^/| /' conftest.$ac_ext >&5
17645 ( exit $ac_status )
17646 { echo "$as_me:$LINENO: result: no" >&5
17647 echo "${ECHO_T}no" >&6; }
17650 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17655 case $ac_sys_system/$ac_sys_release in
17656 Darwin/*)
17657 _CUR_CFLAGS="${CFLAGS}"
17658 _CUR_LDFLAGS="${LDFLAGS}"
17659 CFLAGS="${CFLAGS} -Wl,-search_paths_first"
17660 LDFLAGS="${LDFLAGS} -Wl,-search_paths_first -L/usr/local/lib"
17662 esac
17664 { echo "$as_me:$LINENO: checking for inflateCopy in -lz" >&5
17665 echo $ECHO_N "checking for inflateCopy in -lz... $ECHO_C" >&6; }
17666 if test "${ac_cv_lib_z_inflateCopy+set}" = set; then
17667 echo $ECHO_N "(cached) $ECHO_C" >&6
17668 else
17669 ac_check_lib_save_LIBS=$LIBS
17670 LIBS="-lz $LIBS"
17671 cat >conftest.$ac_ext <<_ACEOF
17672 /* confdefs.h. */
17673 _ACEOF
17674 cat confdefs.h >>conftest.$ac_ext
17675 cat >>conftest.$ac_ext <<_ACEOF
17676 /* end confdefs.h. */
17678 /* Override any GCC internal prototype to avoid an error.
17679 Use char because int might match the return type of a GCC
17680 builtin and then its argument prototype would still apply. */
17681 #ifdef __cplusplus
17682 extern "C"
17683 #endif
17684 char inflateCopy ();
17686 main ()
17688 return inflateCopy ();
17690 return 0;
17692 _ACEOF
17693 rm -f conftest.$ac_objext conftest$ac_exeext
17694 if { (ac_try="$ac_link"
17695 case "(($ac_try" in
17696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17697 *) ac_try_echo=$ac_try;;
17698 esac
17699 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17700 (eval "$ac_link") 2>conftest.er1
17701 ac_status=$?
17702 grep -v '^ *+' conftest.er1 >conftest.err
17703 rm -f conftest.er1
17704 cat conftest.err >&5
17705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17706 (exit $ac_status); } && {
17707 test -z "$ac_c_werror_flag" ||
17708 test ! -s conftest.err
17709 } && test -s conftest$ac_exeext &&
17710 $as_test_x conftest$ac_exeext; then
17711 ac_cv_lib_z_inflateCopy=yes
17712 else
17713 echo "$as_me: failed program was:" >&5
17714 sed 's/^/| /' conftest.$ac_ext >&5
17716 ac_cv_lib_z_inflateCopy=no
17719 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17720 conftest$ac_exeext conftest.$ac_ext
17721 LIBS=$ac_check_lib_save_LIBS
17723 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_inflateCopy" >&5
17724 echo "${ECHO_T}$ac_cv_lib_z_inflateCopy" >&6; }
17725 if test $ac_cv_lib_z_inflateCopy = yes; then
17727 cat >>confdefs.h <<\_ACEOF
17728 #define HAVE_ZLIB_COPY 1
17729 _ACEOF
17734 case $ac_sys_system/$ac_sys_release in
17735 Darwin/*)
17736 CFLAGS="${_CUR_CFLAGS}"
17737 LDFLAGS="${_CUR_LDFLAGS}"
17739 esac
17741 { echo "$as_me:$LINENO: checking for hstrerror" >&5
17742 echo $ECHO_N "checking for hstrerror... $ECHO_C" >&6; }
17743 cat >conftest.$ac_ext <<_ACEOF
17744 /* confdefs.h. */
17745 _ACEOF
17746 cat confdefs.h >>conftest.$ac_ext
17747 cat >>conftest.$ac_ext <<_ACEOF
17748 /* end confdefs.h. */
17750 #include "confdefs.h"
17751 #include <netdb.h>
17754 main ()
17756 void* p = hstrerror; hstrerror(0)
17758 return 0;
17760 _ACEOF
17761 rm -f conftest.$ac_objext conftest$ac_exeext
17762 if { (ac_try="$ac_link"
17763 case "(($ac_try" in
17764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17765 *) ac_try_echo=$ac_try;;
17766 esac
17767 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17768 (eval "$ac_link") 2>conftest.er1
17769 ac_status=$?
17770 grep -v '^ *+' conftest.er1 >conftest.err
17771 rm -f conftest.er1
17772 cat conftest.err >&5
17773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17774 (exit $ac_status); } && {
17775 test -z "$ac_c_werror_flag" ||
17776 test ! -s conftest.err
17777 } && test -s conftest$ac_exeext &&
17778 $as_test_x conftest$ac_exeext; then
17780 cat >>confdefs.h <<\_ACEOF
17781 #define HAVE_HSTRERROR 1
17782 _ACEOF
17784 { echo "$as_me:$LINENO: result: yes" >&5
17785 echo "${ECHO_T}yes" >&6; }
17786 else
17787 echo "$as_me: failed program was:" >&5
17788 sed 's/^/| /' conftest.$ac_ext >&5
17790 { echo "$as_me:$LINENO: result: no" >&5
17791 echo "${ECHO_T}no" >&6; }
17795 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17796 conftest$ac_exeext conftest.$ac_ext
17798 { echo "$as_me:$LINENO: checking for inet_aton" >&5
17799 echo $ECHO_N "checking for inet_aton... $ECHO_C" >&6; }
17800 cat >conftest.$ac_ext <<_ACEOF
17801 /* confdefs.h. */
17802 _ACEOF
17803 cat confdefs.h >>conftest.$ac_ext
17804 cat >>conftest.$ac_ext <<_ACEOF
17805 /* end confdefs.h. */
17807 #include "confdefs.h"
17808 #include <sys/types.h>
17809 #include <sys/socket.h>
17810 #include <netinet/in.h>
17811 #include <arpa/inet.h>
17814 main ()
17816 void* p = inet_aton;inet_aton(0,0)
17818 return 0;
17820 _ACEOF
17821 rm -f conftest.$ac_objext conftest$ac_exeext
17822 if { (ac_try="$ac_link"
17823 case "(($ac_try" in
17824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17825 *) ac_try_echo=$ac_try;;
17826 esac
17827 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17828 (eval "$ac_link") 2>conftest.er1
17829 ac_status=$?
17830 grep -v '^ *+' conftest.er1 >conftest.err
17831 rm -f conftest.er1
17832 cat conftest.err >&5
17833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17834 (exit $ac_status); } && {
17835 test -z "$ac_c_werror_flag" ||
17836 test ! -s conftest.err
17837 } && test -s conftest$ac_exeext &&
17838 $as_test_x conftest$ac_exeext; then
17840 cat >>confdefs.h <<\_ACEOF
17841 #define HAVE_INET_ATON 1
17842 _ACEOF
17844 { echo "$as_me:$LINENO: result: yes" >&5
17845 echo "${ECHO_T}yes" >&6; }
17846 else
17847 echo "$as_me: failed program was:" >&5
17848 sed 's/^/| /' conftest.$ac_ext >&5
17850 { echo "$as_me:$LINENO: result: no" >&5
17851 echo "${ECHO_T}no" >&6; }
17855 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17856 conftest$ac_exeext conftest.$ac_ext
17858 { echo "$as_me:$LINENO: checking for inet_pton" >&5
17859 echo $ECHO_N "checking for inet_pton... $ECHO_C" >&6; }
17860 cat >conftest.$ac_ext <<_ACEOF
17861 /* confdefs.h. */
17862 _ACEOF
17863 cat confdefs.h >>conftest.$ac_ext
17864 cat >>conftest.$ac_ext <<_ACEOF
17865 /* end confdefs.h. */
17867 #include "confdefs.h"
17868 #include <sys/types.h>
17869 #include <sys/socket.h>
17870 #include <netinet/in.h>
17871 #include <arpa/inet.h>
17874 main ()
17876 void* p = inet_pton
17878 return 0;
17880 _ACEOF
17881 rm -f conftest.$ac_objext
17882 if { (ac_try="$ac_compile"
17883 case "(($ac_try" in
17884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17885 *) ac_try_echo=$ac_try;;
17886 esac
17887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17888 (eval "$ac_compile") 2>conftest.er1
17889 ac_status=$?
17890 grep -v '^ *+' conftest.er1 >conftest.err
17891 rm -f conftest.er1
17892 cat conftest.err >&5
17893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17894 (exit $ac_status); } && {
17895 test -z "$ac_c_werror_flag" ||
17896 test ! -s conftest.err
17897 } && test -s conftest.$ac_objext; then
17899 cat >>confdefs.h <<\_ACEOF
17900 #define HAVE_INET_PTON 1
17901 _ACEOF
17903 { echo "$as_me:$LINENO: result: yes" >&5
17904 echo "${ECHO_T}yes" >&6; }
17905 else
17906 echo "$as_me: failed program was:" >&5
17907 sed 's/^/| /' conftest.$ac_ext >&5
17909 { echo "$as_me:$LINENO: result: no" >&5
17910 echo "${ECHO_T}no" >&6; }
17914 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17916 # On some systems, setgroups is in unistd.h, on others, in grp.h
17917 { echo "$as_me:$LINENO: checking for setgroups" >&5
17918 echo $ECHO_N "checking for setgroups... $ECHO_C" >&6; }
17919 cat >conftest.$ac_ext <<_ACEOF
17920 /* confdefs.h. */
17921 _ACEOF
17922 cat confdefs.h >>conftest.$ac_ext
17923 cat >>conftest.$ac_ext <<_ACEOF
17924 /* end confdefs.h. */
17926 #include "confdefs.h"
17927 #include <unistd.h>
17928 #ifdef HAVE_GRP_H
17929 #include <grp.h>
17930 #endif
17933 main ()
17935 void* p = setgroups
17937 return 0;
17939 _ACEOF
17940 rm -f conftest.$ac_objext
17941 if { (ac_try="$ac_compile"
17942 case "(($ac_try" in
17943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17944 *) ac_try_echo=$ac_try;;
17945 esac
17946 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17947 (eval "$ac_compile") 2>conftest.er1
17948 ac_status=$?
17949 grep -v '^ *+' conftest.er1 >conftest.err
17950 rm -f conftest.er1
17951 cat conftest.err >&5
17952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17953 (exit $ac_status); } && {
17954 test -z "$ac_c_werror_flag" ||
17955 test ! -s conftest.err
17956 } && test -s conftest.$ac_objext; then
17958 cat >>confdefs.h <<\_ACEOF
17959 #define HAVE_SETGROUPS 1
17960 _ACEOF
17962 { echo "$as_me:$LINENO: result: yes" >&5
17963 echo "${ECHO_T}yes" >&6; }
17964 else
17965 echo "$as_me: failed program was:" >&5
17966 sed 's/^/| /' conftest.$ac_ext >&5
17968 { echo "$as_me:$LINENO: result: no" >&5
17969 echo "${ECHO_T}no" >&6; }
17973 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17975 # check for openpty and forkpty
17978 for ac_func in openpty
17980 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17981 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17982 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17983 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17984 echo $ECHO_N "(cached) $ECHO_C" >&6
17985 else
17986 cat >conftest.$ac_ext <<_ACEOF
17987 /* confdefs.h. */
17988 _ACEOF
17989 cat confdefs.h >>conftest.$ac_ext
17990 cat >>conftest.$ac_ext <<_ACEOF
17991 /* end confdefs.h. */
17992 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17993 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17994 #define $ac_func innocuous_$ac_func
17996 /* System header to define __stub macros and hopefully few prototypes,
17997 which can conflict with char $ac_func (); below.
17998 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17999 <limits.h> exists even on freestanding compilers. */
18001 #ifdef __STDC__
18002 # include <limits.h>
18003 #else
18004 # include <assert.h>
18005 #endif
18007 #undef $ac_func
18009 /* Override any GCC internal prototype to avoid an error.
18010 Use char because int might match the return type of a GCC
18011 builtin and then its argument prototype would still apply. */
18012 #ifdef __cplusplus
18013 extern "C"
18014 #endif
18015 char $ac_func ();
18016 /* The GNU C library defines this for functions which it implements
18017 to always fail with ENOSYS. Some functions are actually named
18018 something starting with __ and the normal name is an alias. */
18019 #if defined __stub_$ac_func || defined __stub___$ac_func
18020 choke me
18021 #endif
18024 main ()
18026 return $ac_func ();
18028 return 0;
18030 _ACEOF
18031 rm -f conftest.$ac_objext conftest$ac_exeext
18032 if { (ac_try="$ac_link"
18033 case "(($ac_try" in
18034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18035 *) ac_try_echo=$ac_try;;
18036 esac
18037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18038 (eval "$ac_link") 2>conftest.er1
18039 ac_status=$?
18040 grep -v '^ *+' conftest.er1 >conftest.err
18041 rm -f conftest.er1
18042 cat conftest.err >&5
18043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18044 (exit $ac_status); } && {
18045 test -z "$ac_c_werror_flag" ||
18046 test ! -s conftest.err
18047 } && test -s conftest$ac_exeext &&
18048 $as_test_x conftest$ac_exeext; then
18049 eval "$as_ac_var=yes"
18050 else
18051 echo "$as_me: failed program was:" >&5
18052 sed 's/^/| /' conftest.$ac_ext >&5
18054 eval "$as_ac_var=no"
18057 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18058 conftest$ac_exeext conftest.$ac_ext
18060 ac_res=`eval echo '${'$as_ac_var'}'`
18061 { echo "$as_me:$LINENO: result: $ac_res" >&5
18062 echo "${ECHO_T}$ac_res" >&6; }
18063 if test `eval echo '${'$as_ac_var'}'` = yes; then
18064 cat >>confdefs.h <<_ACEOF
18065 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18066 _ACEOF
18068 else
18069 { echo "$as_me:$LINENO: checking for openpty in -lutil" >&5
18070 echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6; }
18071 if test "${ac_cv_lib_util_openpty+set}" = set; then
18072 echo $ECHO_N "(cached) $ECHO_C" >&6
18073 else
18074 ac_check_lib_save_LIBS=$LIBS
18075 LIBS="-lutil $LIBS"
18076 cat >conftest.$ac_ext <<_ACEOF
18077 /* confdefs.h. */
18078 _ACEOF
18079 cat confdefs.h >>conftest.$ac_ext
18080 cat >>conftest.$ac_ext <<_ACEOF
18081 /* end confdefs.h. */
18083 /* Override any GCC internal prototype to avoid an error.
18084 Use char because int might match the return type of a GCC
18085 builtin and then its argument prototype would still apply. */
18086 #ifdef __cplusplus
18087 extern "C"
18088 #endif
18089 char openpty ();
18091 main ()
18093 return openpty ();
18095 return 0;
18097 _ACEOF
18098 rm -f conftest.$ac_objext conftest$ac_exeext
18099 if { (ac_try="$ac_link"
18100 case "(($ac_try" in
18101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18102 *) ac_try_echo=$ac_try;;
18103 esac
18104 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18105 (eval "$ac_link") 2>conftest.er1
18106 ac_status=$?
18107 grep -v '^ *+' conftest.er1 >conftest.err
18108 rm -f conftest.er1
18109 cat conftest.err >&5
18110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18111 (exit $ac_status); } && {
18112 test -z "$ac_c_werror_flag" ||
18113 test ! -s conftest.err
18114 } && test -s conftest$ac_exeext &&
18115 $as_test_x conftest$ac_exeext; then
18116 ac_cv_lib_util_openpty=yes
18117 else
18118 echo "$as_me: failed program was:" >&5
18119 sed 's/^/| /' conftest.$ac_ext >&5
18121 ac_cv_lib_util_openpty=no
18124 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18125 conftest$ac_exeext conftest.$ac_ext
18126 LIBS=$ac_check_lib_save_LIBS
18128 { echo "$as_me:$LINENO: result: $ac_cv_lib_util_openpty" >&5
18129 echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6; }
18130 if test $ac_cv_lib_util_openpty = yes; then
18131 cat >>confdefs.h <<\_ACEOF
18132 #define HAVE_OPENPTY 1
18133 _ACEOF
18134 LIBS="$LIBS -lutil"
18135 else
18136 { echo "$as_me:$LINENO: checking for openpty in -lbsd" >&5
18137 echo $ECHO_N "checking for openpty in -lbsd... $ECHO_C" >&6; }
18138 if test "${ac_cv_lib_bsd_openpty+set}" = set; then
18139 echo $ECHO_N "(cached) $ECHO_C" >&6
18140 else
18141 ac_check_lib_save_LIBS=$LIBS
18142 LIBS="-lbsd $LIBS"
18143 cat >conftest.$ac_ext <<_ACEOF
18144 /* confdefs.h. */
18145 _ACEOF
18146 cat confdefs.h >>conftest.$ac_ext
18147 cat >>conftest.$ac_ext <<_ACEOF
18148 /* end confdefs.h. */
18150 /* Override any GCC internal prototype to avoid an error.
18151 Use char because int might match the return type of a GCC
18152 builtin and then its argument prototype would still apply. */
18153 #ifdef __cplusplus
18154 extern "C"
18155 #endif
18156 char openpty ();
18158 main ()
18160 return openpty ();
18162 return 0;
18164 _ACEOF
18165 rm -f conftest.$ac_objext conftest$ac_exeext
18166 if { (ac_try="$ac_link"
18167 case "(($ac_try" in
18168 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18169 *) ac_try_echo=$ac_try;;
18170 esac
18171 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18172 (eval "$ac_link") 2>conftest.er1
18173 ac_status=$?
18174 grep -v '^ *+' conftest.er1 >conftest.err
18175 rm -f conftest.er1
18176 cat conftest.err >&5
18177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18178 (exit $ac_status); } && {
18179 test -z "$ac_c_werror_flag" ||
18180 test ! -s conftest.err
18181 } && test -s conftest$ac_exeext &&
18182 $as_test_x conftest$ac_exeext; then
18183 ac_cv_lib_bsd_openpty=yes
18184 else
18185 echo "$as_me: failed program was:" >&5
18186 sed 's/^/| /' conftest.$ac_ext >&5
18188 ac_cv_lib_bsd_openpty=no
18191 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18192 conftest$ac_exeext conftest.$ac_ext
18193 LIBS=$ac_check_lib_save_LIBS
18195 { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_openpty" >&5
18196 echo "${ECHO_T}$ac_cv_lib_bsd_openpty" >&6; }
18197 if test $ac_cv_lib_bsd_openpty = yes; then
18198 cat >>confdefs.h <<\_ACEOF
18199 #define HAVE_OPENPTY 1
18200 _ACEOF
18201 LIBS="$LIBS -lbsd"
18209 done
18212 for ac_func in forkpty
18214 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18215 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18216 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18217 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18218 echo $ECHO_N "(cached) $ECHO_C" >&6
18219 else
18220 cat >conftest.$ac_ext <<_ACEOF
18221 /* confdefs.h. */
18222 _ACEOF
18223 cat confdefs.h >>conftest.$ac_ext
18224 cat >>conftest.$ac_ext <<_ACEOF
18225 /* end confdefs.h. */
18226 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18227 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18228 #define $ac_func innocuous_$ac_func
18230 /* System header to define __stub macros and hopefully few prototypes,
18231 which can conflict with char $ac_func (); below.
18232 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18233 <limits.h> exists even on freestanding compilers. */
18235 #ifdef __STDC__
18236 # include <limits.h>
18237 #else
18238 # include <assert.h>
18239 #endif
18241 #undef $ac_func
18243 /* Override any GCC internal prototype to avoid an error.
18244 Use char because int might match the return type of a GCC
18245 builtin and then its argument prototype would still apply. */
18246 #ifdef __cplusplus
18247 extern "C"
18248 #endif
18249 char $ac_func ();
18250 /* The GNU C library defines this for functions which it implements
18251 to always fail with ENOSYS. Some functions are actually named
18252 something starting with __ and the normal name is an alias. */
18253 #if defined __stub_$ac_func || defined __stub___$ac_func
18254 choke me
18255 #endif
18258 main ()
18260 return $ac_func ();
18262 return 0;
18264 _ACEOF
18265 rm -f conftest.$ac_objext conftest$ac_exeext
18266 if { (ac_try="$ac_link"
18267 case "(($ac_try" in
18268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18269 *) ac_try_echo=$ac_try;;
18270 esac
18271 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18272 (eval "$ac_link") 2>conftest.er1
18273 ac_status=$?
18274 grep -v '^ *+' conftest.er1 >conftest.err
18275 rm -f conftest.er1
18276 cat conftest.err >&5
18277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18278 (exit $ac_status); } && {
18279 test -z "$ac_c_werror_flag" ||
18280 test ! -s conftest.err
18281 } && test -s conftest$ac_exeext &&
18282 $as_test_x conftest$ac_exeext; then
18283 eval "$as_ac_var=yes"
18284 else
18285 echo "$as_me: failed program was:" >&5
18286 sed 's/^/| /' conftest.$ac_ext >&5
18288 eval "$as_ac_var=no"
18291 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18292 conftest$ac_exeext conftest.$ac_ext
18294 ac_res=`eval echo '${'$as_ac_var'}'`
18295 { echo "$as_me:$LINENO: result: $ac_res" >&5
18296 echo "${ECHO_T}$ac_res" >&6; }
18297 if test `eval echo '${'$as_ac_var'}'` = yes; then
18298 cat >>confdefs.h <<_ACEOF
18299 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18300 _ACEOF
18302 else
18303 { echo "$as_me:$LINENO: checking for forkpty in -lutil" >&5
18304 echo $ECHO_N "checking for forkpty in -lutil... $ECHO_C" >&6; }
18305 if test "${ac_cv_lib_util_forkpty+set}" = set; then
18306 echo $ECHO_N "(cached) $ECHO_C" >&6
18307 else
18308 ac_check_lib_save_LIBS=$LIBS
18309 LIBS="-lutil $LIBS"
18310 cat >conftest.$ac_ext <<_ACEOF
18311 /* confdefs.h. */
18312 _ACEOF
18313 cat confdefs.h >>conftest.$ac_ext
18314 cat >>conftest.$ac_ext <<_ACEOF
18315 /* end confdefs.h. */
18317 /* Override any GCC internal prototype to avoid an error.
18318 Use char because int might match the return type of a GCC
18319 builtin and then its argument prototype would still apply. */
18320 #ifdef __cplusplus
18321 extern "C"
18322 #endif
18323 char forkpty ();
18325 main ()
18327 return forkpty ();
18329 return 0;
18331 _ACEOF
18332 rm -f conftest.$ac_objext conftest$ac_exeext
18333 if { (ac_try="$ac_link"
18334 case "(($ac_try" in
18335 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18336 *) ac_try_echo=$ac_try;;
18337 esac
18338 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18339 (eval "$ac_link") 2>conftest.er1
18340 ac_status=$?
18341 grep -v '^ *+' conftest.er1 >conftest.err
18342 rm -f conftest.er1
18343 cat conftest.err >&5
18344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18345 (exit $ac_status); } && {
18346 test -z "$ac_c_werror_flag" ||
18347 test ! -s conftest.err
18348 } && test -s conftest$ac_exeext &&
18349 $as_test_x conftest$ac_exeext; then
18350 ac_cv_lib_util_forkpty=yes
18351 else
18352 echo "$as_me: failed program was:" >&5
18353 sed 's/^/| /' conftest.$ac_ext >&5
18355 ac_cv_lib_util_forkpty=no
18358 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18359 conftest$ac_exeext conftest.$ac_ext
18360 LIBS=$ac_check_lib_save_LIBS
18362 { echo "$as_me:$LINENO: result: $ac_cv_lib_util_forkpty" >&5
18363 echo "${ECHO_T}$ac_cv_lib_util_forkpty" >&6; }
18364 if test $ac_cv_lib_util_forkpty = yes; then
18365 cat >>confdefs.h <<\_ACEOF
18366 #define HAVE_FORKPTY 1
18367 _ACEOF
18368 LIBS="$LIBS -lutil"
18369 else
18370 { echo "$as_me:$LINENO: checking for forkpty in -lbsd" >&5
18371 echo $ECHO_N "checking for forkpty in -lbsd... $ECHO_C" >&6; }
18372 if test "${ac_cv_lib_bsd_forkpty+set}" = set; then
18373 echo $ECHO_N "(cached) $ECHO_C" >&6
18374 else
18375 ac_check_lib_save_LIBS=$LIBS
18376 LIBS="-lbsd $LIBS"
18377 cat >conftest.$ac_ext <<_ACEOF
18378 /* confdefs.h. */
18379 _ACEOF
18380 cat confdefs.h >>conftest.$ac_ext
18381 cat >>conftest.$ac_ext <<_ACEOF
18382 /* end confdefs.h. */
18384 /* Override any GCC internal prototype to avoid an error.
18385 Use char because int might match the return type of a GCC
18386 builtin and then its argument prototype would still apply. */
18387 #ifdef __cplusplus
18388 extern "C"
18389 #endif
18390 char forkpty ();
18392 main ()
18394 return forkpty ();
18396 return 0;
18398 _ACEOF
18399 rm -f conftest.$ac_objext conftest$ac_exeext
18400 if { (ac_try="$ac_link"
18401 case "(($ac_try" in
18402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18403 *) ac_try_echo=$ac_try;;
18404 esac
18405 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18406 (eval "$ac_link") 2>conftest.er1
18407 ac_status=$?
18408 grep -v '^ *+' conftest.er1 >conftest.err
18409 rm -f conftest.er1
18410 cat conftest.err >&5
18411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18412 (exit $ac_status); } && {
18413 test -z "$ac_c_werror_flag" ||
18414 test ! -s conftest.err
18415 } && test -s conftest$ac_exeext &&
18416 $as_test_x conftest$ac_exeext; then
18417 ac_cv_lib_bsd_forkpty=yes
18418 else
18419 echo "$as_me: failed program was:" >&5
18420 sed 's/^/| /' conftest.$ac_ext >&5
18422 ac_cv_lib_bsd_forkpty=no
18425 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18426 conftest$ac_exeext conftest.$ac_ext
18427 LIBS=$ac_check_lib_save_LIBS
18429 { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_forkpty" >&5
18430 echo "${ECHO_T}$ac_cv_lib_bsd_forkpty" >&6; }
18431 if test $ac_cv_lib_bsd_forkpty = yes; then
18432 cat >>confdefs.h <<\_ACEOF
18433 #define HAVE_FORKPTY 1
18434 _ACEOF
18435 LIBS="$LIBS -lbsd"
18443 done
18446 # Stuff for expat.
18448 for ac_func in memmove
18450 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18451 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18452 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18453 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18454 echo $ECHO_N "(cached) $ECHO_C" >&6
18455 else
18456 cat >conftest.$ac_ext <<_ACEOF
18457 /* confdefs.h. */
18458 _ACEOF
18459 cat confdefs.h >>conftest.$ac_ext
18460 cat >>conftest.$ac_ext <<_ACEOF
18461 /* end confdefs.h. */
18462 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18463 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18464 #define $ac_func innocuous_$ac_func
18466 /* System header to define __stub macros and hopefully few prototypes,
18467 which can conflict with char $ac_func (); below.
18468 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18469 <limits.h> exists even on freestanding compilers. */
18471 #ifdef __STDC__
18472 # include <limits.h>
18473 #else
18474 # include <assert.h>
18475 #endif
18477 #undef $ac_func
18479 /* Override any GCC internal prototype to avoid an error.
18480 Use char because int might match the return type of a GCC
18481 builtin and then its argument prototype would still apply. */
18482 #ifdef __cplusplus
18483 extern "C"
18484 #endif
18485 char $ac_func ();
18486 /* The GNU C library defines this for functions which it implements
18487 to always fail with ENOSYS. Some functions are actually named
18488 something starting with __ and the normal name is an alias. */
18489 #if defined __stub_$ac_func || defined __stub___$ac_func
18490 choke me
18491 #endif
18494 main ()
18496 return $ac_func ();
18498 return 0;
18500 _ACEOF
18501 rm -f conftest.$ac_objext conftest$ac_exeext
18502 if { (ac_try="$ac_link"
18503 case "(($ac_try" in
18504 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18505 *) ac_try_echo=$ac_try;;
18506 esac
18507 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18508 (eval "$ac_link") 2>conftest.er1
18509 ac_status=$?
18510 grep -v '^ *+' conftest.er1 >conftest.err
18511 rm -f conftest.er1
18512 cat conftest.err >&5
18513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18514 (exit $ac_status); } && {
18515 test -z "$ac_c_werror_flag" ||
18516 test ! -s conftest.err
18517 } && test -s conftest$ac_exeext &&
18518 $as_test_x conftest$ac_exeext; then
18519 eval "$as_ac_var=yes"
18520 else
18521 echo "$as_me: failed program was:" >&5
18522 sed 's/^/| /' conftest.$ac_ext >&5
18524 eval "$as_ac_var=no"
18527 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18528 conftest$ac_exeext conftest.$ac_ext
18530 ac_res=`eval echo '${'$as_ac_var'}'`
18531 { echo "$as_me:$LINENO: result: $ac_res" >&5
18532 echo "${ECHO_T}$ac_res" >&6; }
18533 if test `eval echo '${'$as_ac_var'}'` = yes; then
18534 cat >>confdefs.h <<_ACEOF
18535 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18536 _ACEOF
18539 done
18542 # check for long file support functions
18549 for ac_func in fseek64 fseeko fstatvfs ftell64 ftello statvfs
18551 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18552 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18553 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18554 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18555 echo $ECHO_N "(cached) $ECHO_C" >&6
18556 else
18557 cat >conftest.$ac_ext <<_ACEOF
18558 /* confdefs.h. */
18559 _ACEOF
18560 cat confdefs.h >>conftest.$ac_ext
18561 cat >>conftest.$ac_ext <<_ACEOF
18562 /* end confdefs.h. */
18563 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18564 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18565 #define $ac_func innocuous_$ac_func
18567 /* System header to define __stub macros and hopefully few prototypes,
18568 which can conflict with char $ac_func (); below.
18569 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18570 <limits.h> exists even on freestanding compilers. */
18572 #ifdef __STDC__
18573 # include <limits.h>
18574 #else
18575 # include <assert.h>
18576 #endif
18578 #undef $ac_func
18580 /* Override any GCC internal prototype to avoid an error.
18581 Use char because int might match the return type of a GCC
18582 builtin and then its argument prototype would still apply. */
18583 #ifdef __cplusplus
18584 extern "C"
18585 #endif
18586 char $ac_func ();
18587 /* The GNU C library defines this for functions which it implements
18588 to always fail with ENOSYS. Some functions are actually named
18589 something starting with __ and the normal name is an alias. */
18590 #if defined __stub_$ac_func || defined __stub___$ac_func
18591 choke me
18592 #endif
18595 main ()
18597 return $ac_func ();
18599 return 0;
18601 _ACEOF
18602 rm -f conftest.$ac_objext conftest$ac_exeext
18603 if { (ac_try="$ac_link"
18604 case "(($ac_try" in
18605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18606 *) ac_try_echo=$ac_try;;
18607 esac
18608 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18609 (eval "$ac_link") 2>conftest.er1
18610 ac_status=$?
18611 grep -v '^ *+' conftest.er1 >conftest.err
18612 rm -f conftest.er1
18613 cat conftest.err >&5
18614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18615 (exit $ac_status); } && {
18616 test -z "$ac_c_werror_flag" ||
18617 test ! -s conftest.err
18618 } && test -s conftest$ac_exeext &&
18619 $as_test_x conftest$ac_exeext; then
18620 eval "$as_ac_var=yes"
18621 else
18622 echo "$as_me: failed program was:" >&5
18623 sed 's/^/| /' conftest.$ac_ext >&5
18625 eval "$as_ac_var=no"
18628 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18629 conftest$ac_exeext conftest.$ac_ext
18631 ac_res=`eval echo '${'$as_ac_var'}'`
18632 { echo "$as_me:$LINENO: result: $ac_res" >&5
18633 echo "${ECHO_T}$ac_res" >&6; }
18634 if test `eval echo '${'$as_ac_var'}'` = yes; then
18635 cat >>confdefs.h <<_ACEOF
18636 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18637 _ACEOF
18640 done
18646 for ac_func in dup2 getcwd strdup
18648 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18649 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18650 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18651 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18652 echo $ECHO_N "(cached) $ECHO_C" >&6
18653 else
18654 cat >conftest.$ac_ext <<_ACEOF
18655 /* confdefs.h. */
18656 _ACEOF
18657 cat confdefs.h >>conftest.$ac_ext
18658 cat >>conftest.$ac_ext <<_ACEOF
18659 /* end confdefs.h. */
18660 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18661 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18662 #define $ac_func innocuous_$ac_func
18664 /* System header to define __stub macros and hopefully few prototypes,
18665 which can conflict with char $ac_func (); below.
18666 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18667 <limits.h> exists even on freestanding compilers. */
18669 #ifdef __STDC__
18670 # include <limits.h>
18671 #else
18672 # include <assert.h>
18673 #endif
18675 #undef $ac_func
18677 /* Override any GCC internal prototype to avoid an error.
18678 Use char because int might match the return type of a GCC
18679 builtin and then its argument prototype would still apply. */
18680 #ifdef __cplusplus
18681 extern "C"
18682 #endif
18683 char $ac_func ();
18684 /* The GNU C library defines this for functions which it implements
18685 to always fail with ENOSYS. Some functions are actually named
18686 something starting with __ and the normal name is an alias. */
18687 #if defined __stub_$ac_func || defined __stub___$ac_func
18688 choke me
18689 #endif
18692 main ()
18694 return $ac_func ();
18696 return 0;
18698 _ACEOF
18699 rm -f conftest.$ac_objext conftest$ac_exeext
18700 if { (ac_try="$ac_link"
18701 case "(($ac_try" in
18702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18703 *) ac_try_echo=$ac_try;;
18704 esac
18705 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18706 (eval "$ac_link") 2>conftest.er1
18707 ac_status=$?
18708 grep -v '^ *+' conftest.er1 >conftest.err
18709 rm -f conftest.er1
18710 cat conftest.err >&5
18711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18712 (exit $ac_status); } && {
18713 test -z "$ac_c_werror_flag" ||
18714 test ! -s conftest.err
18715 } && test -s conftest$ac_exeext &&
18716 $as_test_x conftest$ac_exeext; then
18717 eval "$as_ac_var=yes"
18718 else
18719 echo "$as_me: failed program was:" >&5
18720 sed 's/^/| /' conftest.$ac_ext >&5
18722 eval "$as_ac_var=no"
18725 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18726 conftest$ac_exeext conftest.$ac_ext
18728 ac_res=`eval echo '${'$as_ac_var'}'`
18729 { echo "$as_me:$LINENO: result: $ac_res" >&5
18730 echo "${ECHO_T}$ac_res" >&6; }
18731 if test `eval echo '${'$as_ac_var'}'` = yes; then
18732 cat >>confdefs.h <<_ACEOF
18733 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18734 _ACEOF
18736 else
18737 case " $LIBOBJS " in
18738 *" $ac_func.$ac_objext "* ) ;;
18739 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
18741 esac
18744 done
18748 for ac_func in getpgrp
18750 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18751 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18752 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18753 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18754 echo $ECHO_N "(cached) $ECHO_C" >&6
18755 else
18756 cat >conftest.$ac_ext <<_ACEOF
18757 /* confdefs.h. */
18758 _ACEOF
18759 cat confdefs.h >>conftest.$ac_ext
18760 cat >>conftest.$ac_ext <<_ACEOF
18761 /* end confdefs.h. */
18762 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18763 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18764 #define $ac_func innocuous_$ac_func
18766 /* System header to define __stub macros and hopefully few prototypes,
18767 which can conflict with char $ac_func (); below.
18768 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18769 <limits.h> exists even on freestanding compilers. */
18771 #ifdef __STDC__
18772 # include <limits.h>
18773 #else
18774 # include <assert.h>
18775 #endif
18777 #undef $ac_func
18779 /* Override any GCC internal prototype to avoid an error.
18780 Use char because int might match the return type of a GCC
18781 builtin and then its argument prototype would still apply. */
18782 #ifdef __cplusplus
18783 extern "C"
18784 #endif
18785 char $ac_func ();
18786 /* The GNU C library defines this for functions which it implements
18787 to always fail with ENOSYS. Some functions are actually named
18788 something starting with __ and the normal name is an alias. */
18789 #if defined __stub_$ac_func || defined __stub___$ac_func
18790 choke me
18791 #endif
18794 main ()
18796 return $ac_func ();
18798 return 0;
18800 _ACEOF
18801 rm -f conftest.$ac_objext conftest$ac_exeext
18802 if { (ac_try="$ac_link"
18803 case "(($ac_try" in
18804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18805 *) ac_try_echo=$ac_try;;
18806 esac
18807 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18808 (eval "$ac_link") 2>conftest.er1
18809 ac_status=$?
18810 grep -v '^ *+' conftest.er1 >conftest.err
18811 rm -f conftest.er1
18812 cat conftest.err >&5
18813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18814 (exit $ac_status); } && {
18815 test -z "$ac_c_werror_flag" ||
18816 test ! -s conftest.err
18817 } && test -s conftest$ac_exeext &&
18818 $as_test_x conftest$ac_exeext; then
18819 eval "$as_ac_var=yes"
18820 else
18821 echo "$as_me: failed program was:" >&5
18822 sed 's/^/| /' conftest.$ac_ext >&5
18824 eval "$as_ac_var=no"
18827 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18828 conftest$ac_exeext conftest.$ac_ext
18830 ac_res=`eval echo '${'$as_ac_var'}'`
18831 { echo "$as_me:$LINENO: result: $ac_res" >&5
18832 echo "${ECHO_T}$ac_res" >&6; }
18833 if test `eval echo '${'$as_ac_var'}'` = yes; then
18834 cat >>confdefs.h <<_ACEOF
18835 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18836 _ACEOF
18837 cat >conftest.$ac_ext <<_ACEOF
18838 /* confdefs.h. */
18839 _ACEOF
18840 cat confdefs.h >>conftest.$ac_ext
18841 cat >>conftest.$ac_ext <<_ACEOF
18842 /* end confdefs.h. */
18843 #include <unistd.h>
18845 main ()
18847 getpgrp(0);
18849 return 0;
18851 _ACEOF
18852 rm -f conftest.$ac_objext
18853 if { (ac_try="$ac_compile"
18854 case "(($ac_try" in
18855 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18856 *) ac_try_echo=$ac_try;;
18857 esac
18858 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18859 (eval "$ac_compile") 2>conftest.er1
18860 ac_status=$?
18861 grep -v '^ *+' conftest.er1 >conftest.err
18862 rm -f conftest.er1
18863 cat conftest.err >&5
18864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18865 (exit $ac_status); } && {
18866 test -z "$ac_c_werror_flag" ||
18867 test ! -s conftest.err
18868 } && test -s conftest.$ac_objext; then
18870 cat >>confdefs.h <<\_ACEOF
18871 #define GETPGRP_HAVE_ARG 1
18872 _ACEOF
18875 else
18876 echo "$as_me: failed program was:" >&5
18877 sed 's/^/| /' conftest.$ac_ext >&5
18882 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18885 done
18888 for ac_func in setpgrp
18890 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18891 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18892 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18893 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18894 echo $ECHO_N "(cached) $ECHO_C" >&6
18895 else
18896 cat >conftest.$ac_ext <<_ACEOF
18897 /* confdefs.h. */
18898 _ACEOF
18899 cat confdefs.h >>conftest.$ac_ext
18900 cat >>conftest.$ac_ext <<_ACEOF
18901 /* end confdefs.h. */
18902 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18903 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18904 #define $ac_func innocuous_$ac_func
18906 /* System header to define __stub macros and hopefully few prototypes,
18907 which can conflict with char $ac_func (); below.
18908 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18909 <limits.h> exists even on freestanding compilers. */
18911 #ifdef __STDC__
18912 # include <limits.h>
18913 #else
18914 # include <assert.h>
18915 #endif
18917 #undef $ac_func
18919 /* Override any GCC internal prototype to avoid an error.
18920 Use char because int might match the return type of a GCC
18921 builtin and then its argument prototype would still apply. */
18922 #ifdef __cplusplus
18923 extern "C"
18924 #endif
18925 char $ac_func ();
18926 /* The GNU C library defines this for functions which it implements
18927 to always fail with ENOSYS. Some functions are actually named
18928 something starting with __ and the normal name is an alias. */
18929 #if defined __stub_$ac_func || defined __stub___$ac_func
18930 choke me
18931 #endif
18934 main ()
18936 return $ac_func ();
18938 return 0;
18940 _ACEOF
18941 rm -f conftest.$ac_objext conftest$ac_exeext
18942 if { (ac_try="$ac_link"
18943 case "(($ac_try" in
18944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18945 *) ac_try_echo=$ac_try;;
18946 esac
18947 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18948 (eval "$ac_link") 2>conftest.er1
18949 ac_status=$?
18950 grep -v '^ *+' conftest.er1 >conftest.err
18951 rm -f conftest.er1
18952 cat conftest.err >&5
18953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18954 (exit $ac_status); } && {
18955 test -z "$ac_c_werror_flag" ||
18956 test ! -s conftest.err
18957 } && test -s conftest$ac_exeext &&
18958 $as_test_x conftest$ac_exeext; then
18959 eval "$as_ac_var=yes"
18960 else
18961 echo "$as_me: failed program was:" >&5
18962 sed 's/^/| /' conftest.$ac_ext >&5
18964 eval "$as_ac_var=no"
18967 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18968 conftest$ac_exeext conftest.$ac_ext
18970 ac_res=`eval echo '${'$as_ac_var'}'`
18971 { echo "$as_me:$LINENO: result: $ac_res" >&5
18972 echo "${ECHO_T}$ac_res" >&6; }
18973 if test `eval echo '${'$as_ac_var'}'` = yes; then
18974 cat >>confdefs.h <<_ACEOF
18975 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18976 _ACEOF
18977 cat >conftest.$ac_ext <<_ACEOF
18978 /* confdefs.h. */
18979 _ACEOF
18980 cat confdefs.h >>conftest.$ac_ext
18981 cat >>conftest.$ac_ext <<_ACEOF
18982 /* end confdefs.h. */
18983 #include <unistd.h>
18985 main ()
18987 setpgrp(0,0);
18989 return 0;
18991 _ACEOF
18992 rm -f conftest.$ac_objext
18993 if { (ac_try="$ac_compile"
18994 case "(($ac_try" in
18995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18996 *) ac_try_echo=$ac_try;;
18997 esac
18998 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18999 (eval "$ac_compile") 2>conftest.er1
19000 ac_status=$?
19001 grep -v '^ *+' conftest.er1 >conftest.err
19002 rm -f conftest.er1
19003 cat conftest.err >&5
19004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19005 (exit $ac_status); } && {
19006 test -z "$ac_c_werror_flag" ||
19007 test ! -s conftest.err
19008 } && test -s conftest.$ac_objext; then
19010 cat >>confdefs.h <<\_ACEOF
19011 #define SETPGRP_HAVE_ARG 1
19012 _ACEOF
19015 else
19016 echo "$as_me: failed program was:" >&5
19017 sed 's/^/| /' conftest.$ac_ext >&5
19022 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19025 done
19028 for ac_func in gettimeofday
19030 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19031 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19032 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19033 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19034 echo $ECHO_N "(cached) $ECHO_C" >&6
19035 else
19036 cat >conftest.$ac_ext <<_ACEOF
19037 /* confdefs.h. */
19038 _ACEOF
19039 cat confdefs.h >>conftest.$ac_ext
19040 cat >>conftest.$ac_ext <<_ACEOF
19041 /* end confdefs.h. */
19042 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19043 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19044 #define $ac_func innocuous_$ac_func
19046 /* System header to define __stub macros and hopefully few prototypes,
19047 which can conflict with char $ac_func (); below.
19048 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19049 <limits.h> exists even on freestanding compilers. */
19051 #ifdef __STDC__
19052 # include <limits.h>
19053 #else
19054 # include <assert.h>
19055 #endif
19057 #undef $ac_func
19059 /* Override any GCC internal prototype to avoid an error.
19060 Use char because int might match the return type of a GCC
19061 builtin and then its argument prototype would still apply. */
19062 #ifdef __cplusplus
19063 extern "C"
19064 #endif
19065 char $ac_func ();
19066 /* The GNU C library defines this for functions which it implements
19067 to always fail with ENOSYS. Some functions are actually named
19068 something starting with __ and the normal name is an alias. */
19069 #if defined __stub_$ac_func || defined __stub___$ac_func
19070 choke me
19071 #endif
19074 main ()
19076 return $ac_func ();
19078 return 0;
19080 _ACEOF
19081 rm -f conftest.$ac_objext conftest$ac_exeext
19082 if { (ac_try="$ac_link"
19083 case "(($ac_try" in
19084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19085 *) ac_try_echo=$ac_try;;
19086 esac
19087 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19088 (eval "$ac_link") 2>conftest.er1
19089 ac_status=$?
19090 grep -v '^ *+' conftest.er1 >conftest.err
19091 rm -f conftest.er1
19092 cat conftest.err >&5
19093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19094 (exit $ac_status); } && {
19095 test -z "$ac_c_werror_flag" ||
19096 test ! -s conftest.err
19097 } && test -s conftest$ac_exeext &&
19098 $as_test_x conftest$ac_exeext; then
19099 eval "$as_ac_var=yes"
19100 else
19101 echo "$as_me: failed program was:" >&5
19102 sed 's/^/| /' conftest.$ac_ext >&5
19104 eval "$as_ac_var=no"
19107 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19108 conftest$ac_exeext conftest.$ac_ext
19110 ac_res=`eval echo '${'$as_ac_var'}'`
19111 { echo "$as_me:$LINENO: result: $ac_res" >&5
19112 echo "${ECHO_T}$ac_res" >&6; }
19113 if test `eval echo '${'$as_ac_var'}'` = yes; then
19114 cat >>confdefs.h <<_ACEOF
19115 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19116 _ACEOF
19117 cat >conftest.$ac_ext <<_ACEOF
19118 /* confdefs.h. */
19119 _ACEOF
19120 cat confdefs.h >>conftest.$ac_ext
19121 cat >>conftest.$ac_ext <<_ACEOF
19122 /* end confdefs.h. */
19123 #include <sys/time.h>
19125 main ()
19127 gettimeofday((struct timeval*)0,(struct timezone*)0);
19129 return 0;
19131 _ACEOF
19132 rm -f conftest.$ac_objext
19133 if { (ac_try="$ac_compile"
19134 case "(($ac_try" in
19135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19136 *) ac_try_echo=$ac_try;;
19137 esac
19138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19139 (eval "$ac_compile") 2>conftest.er1
19140 ac_status=$?
19141 grep -v '^ *+' conftest.er1 >conftest.err
19142 rm -f conftest.er1
19143 cat conftest.err >&5
19144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19145 (exit $ac_status); } && {
19146 test -z "$ac_c_werror_flag" ||
19147 test ! -s conftest.err
19148 } && test -s conftest.$ac_objext; then
19150 else
19151 echo "$as_me: failed program was:" >&5
19152 sed 's/^/| /' conftest.$ac_ext >&5
19155 cat >>confdefs.h <<\_ACEOF
19156 #define GETTIMEOFDAY_NO_TZ 1
19157 _ACEOF
19162 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19165 done
19168 { echo "$as_me:$LINENO: checking for major" >&5
19169 echo $ECHO_N "checking for major... $ECHO_C" >&6; }
19170 cat >conftest.$ac_ext <<_ACEOF
19171 /* confdefs.h. */
19172 _ACEOF
19173 cat confdefs.h >>conftest.$ac_ext
19174 cat >>conftest.$ac_ext <<_ACEOF
19175 /* end confdefs.h. */
19177 #if defined(MAJOR_IN_MKDEV)
19178 #include <sys/mkdev.h>
19179 #elif defined(MAJOR_IN_SYSMACROS)
19180 #include <sys/sysmacros.h>
19181 #else
19182 #include <sys/types.h>
19183 #endif
19186 main ()
19189 makedev(major(0),minor(0));
19192 return 0;
19194 _ACEOF
19195 rm -f conftest.$ac_objext conftest$ac_exeext
19196 if { (ac_try="$ac_link"
19197 case "(($ac_try" in
19198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19199 *) ac_try_echo=$ac_try;;
19200 esac
19201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19202 (eval "$ac_link") 2>conftest.er1
19203 ac_status=$?
19204 grep -v '^ *+' conftest.er1 >conftest.err
19205 rm -f conftest.er1
19206 cat conftest.err >&5
19207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19208 (exit $ac_status); } && {
19209 test -z "$ac_c_werror_flag" ||
19210 test ! -s conftest.err
19211 } && test -s conftest$ac_exeext &&
19212 $as_test_x conftest$ac_exeext; then
19215 cat >>confdefs.h <<\_ACEOF
19216 #define HAVE_DEVICE_MACROS 1
19217 _ACEOF
19219 { echo "$as_me:$LINENO: result: yes" >&5
19220 echo "${ECHO_T}yes" >&6; }
19222 else
19223 echo "$as_me: failed program was:" >&5
19224 sed 's/^/| /' conftest.$ac_ext >&5
19227 { echo "$as_me:$LINENO: result: no" >&5
19228 echo "${ECHO_T}no" >&6; }
19232 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19233 conftest$ac_exeext conftest.$ac_ext
19235 # On OSF/1 V5.1, getaddrinfo is available, but a define
19236 # for [no]getaddrinfo in netdb.h.
19237 { echo "$as_me:$LINENO: checking for getaddrinfo" >&5
19238 echo $ECHO_N "checking for getaddrinfo... $ECHO_C" >&6; }
19239 cat >conftest.$ac_ext <<_ACEOF
19240 /* confdefs.h. */
19241 _ACEOF
19242 cat confdefs.h >>conftest.$ac_ext
19243 cat >>conftest.$ac_ext <<_ACEOF
19244 /* end confdefs.h. */
19246 #include <sys/types.h>
19247 #include <sys/socket.h>
19248 #include <netdb.h>
19249 #include <stdio.h>
19252 main ()
19255 getaddrinfo(NULL, NULL, NULL, NULL);
19258 return 0;
19260 _ACEOF
19261 rm -f conftest.$ac_objext conftest$ac_exeext
19262 if { (ac_try="$ac_link"
19263 case "(($ac_try" in
19264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19265 *) ac_try_echo=$ac_try;;
19266 esac
19267 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19268 (eval "$ac_link") 2>conftest.er1
19269 ac_status=$?
19270 grep -v '^ *+' conftest.er1 >conftest.err
19271 rm -f conftest.er1
19272 cat conftest.err >&5
19273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19274 (exit $ac_status); } && {
19275 test -z "$ac_c_werror_flag" ||
19276 test ! -s conftest.err
19277 } && test -s conftest$ac_exeext &&
19278 $as_test_x conftest$ac_exeext; then
19280 { echo "$as_me:$LINENO: result: yes" >&5
19281 echo "${ECHO_T}yes" >&6; }
19282 { echo "$as_me:$LINENO: checking getaddrinfo bug" >&5
19283 echo $ECHO_N "checking getaddrinfo bug... $ECHO_C" >&6; }
19284 if test "$cross_compiling" = yes; then
19285 { echo "$as_me:$LINENO: result: buggy" >&5
19286 echo "${ECHO_T}buggy" >&6; }
19287 buggygetaddrinfo=yes
19288 else
19289 cat >conftest.$ac_ext <<_ACEOF
19290 /* confdefs.h. */
19291 _ACEOF
19292 cat confdefs.h >>conftest.$ac_ext
19293 cat >>conftest.$ac_ext <<_ACEOF
19294 /* end confdefs.h. */
19296 #include <sys/types.h>
19297 #include <netdb.h>
19298 #include <string.h>
19299 #include <sys/socket.h>
19300 #include <netinet/in.h>
19302 main()
19304 int passive, gaierr, inet4 = 0, inet6 = 0;
19305 struct addrinfo hints, *ai, *aitop;
19306 char straddr[INET6_ADDRSTRLEN], strport[16];
19308 for (passive = 0; passive <= 1; passive++) {
19309 memset(&hints, 0, sizeof(hints));
19310 hints.ai_family = AF_UNSPEC;
19311 hints.ai_flags = passive ? AI_PASSIVE : 0;
19312 hints.ai_socktype = SOCK_STREAM;
19313 hints.ai_protocol = IPPROTO_TCP;
19314 if ((gaierr = getaddrinfo(NULL, "54321", &hints, &aitop)) != 0) {
19315 (void)gai_strerror(gaierr);
19316 goto bad;
19318 for (ai = aitop; ai; ai = ai->ai_next) {
19319 if (ai->ai_addr == NULL ||
19320 ai->ai_addrlen == 0 ||
19321 getnameinfo(ai->ai_addr, ai->ai_addrlen,
19322 straddr, sizeof(straddr), strport, sizeof(strport),
19323 NI_NUMERICHOST|NI_NUMERICSERV) != 0) {
19324 goto bad;
19326 switch (ai->ai_family) {
19327 case AF_INET:
19328 if (strcmp(strport, "54321") != 0) {
19329 goto bad;
19331 if (passive) {
19332 if (strcmp(straddr, "0.0.0.0") != 0) {
19333 goto bad;
19335 } else {
19336 if (strcmp(straddr, "127.0.0.1") != 0) {
19337 goto bad;
19340 inet4++;
19341 break;
19342 case AF_INET6:
19343 if (strcmp(strport, "54321") != 0) {
19344 goto bad;
19346 if (passive) {
19347 if (strcmp(straddr, "::") != 0) {
19348 goto bad;
19350 } else {
19351 if (strcmp(straddr, "::1") != 0) {
19352 goto bad;
19355 inet6++;
19356 break;
19357 case AF_UNSPEC:
19358 goto bad;
19359 break;
19360 default:
19361 /* another family support? */
19362 break;
19367 if (!(inet4 == 0 || inet4 == 2))
19368 goto bad;
19369 if (!(inet6 == 0 || inet6 == 2))
19370 goto bad;
19372 if (aitop)
19373 freeaddrinfo(aitop);
19374 exit(0);
19376 bad:
19377 if (aitop)
19378 freeaddrinfo(aitop);
19379 exit(1);
19382 _ACEOF
19383 rm -f conftest$ac_exeext
19384 if { (ac_try="$ac_link"
19385 case "(($ac_try" in
19386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19387 *) ac_try_echo=$ac_try;;
19388 esac
19389 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19390 (eval "$ac_link") 2>&5
19391 ac_status=$?
19392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19393 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19394 { (case "(($ac_try" in
19395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19396 *) ac_try_echo=$ac_try;;
19397 esac
19398 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19399 (eval "$ac_try") 2>&5
19400 ac_status=$?
19401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19402 (exit $ac_status); }; }; then
19403 { echo "$as_me:$LINENO: result: good" >&5
19404 echo "${ECHO_T}good" >&6; }
19405 buggygetaddrinfo=no
19406 else
19407 echo "$as_me: program exited with status $ac_status" >&5
19408 echo "$as_me: failed program was:" >&5
19409 sed 's/^/| /' conftest.$ac_ext >&5
19411 ( exit $ac_status )
19412 { echo "$as_me:$LINENO: result: buggy" >&5
19413 echo "${ECHO_T}buggy" >&6; }
19414 buggygetaddrinfo=yes
19416 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19420 else
19421 echo "$as_me: failed program was:" >&5
19422 sed 's/^/| /' conftest.$ac_ext >&5
19425 { echo "$as_me:$LINENO: result: no" >&5
19426 echo "${ECHO_T}no" >&6; }
19427 buggygetaddrinfo=yes
19431 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19432 conftest$ac_exeext conftest.$ac_ext
19434 if test "$buggygetaddrinfo" = "yes"; then
19435 if test "$ipv6" = "yes"; then
19436 echo 'Fatal: You must get working getaddrinfo() function.'
19437 echo ' or you can specify "--disable-ipv6"'.
19438 exit 1
19440 else
19442 cat >>confdefs.h <<\_ACEOF
19443 #define HAVE_GETADDRINFO 1
19444 _ACEOF
19448 for ac_func in getnameinfo
19450 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19451 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19452 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19453 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19454 echo $ECHO_N "(cached) $ECHO_C" >&6
19455 else
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. */
19462 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19463 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19464 #define $ac_func innocuous_$ac_func
19466 /* System header to define __stub macros and hopefully few prototypes,
19467 which can conflict with char $ac_func (); below.
19468 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19469 <limits.h> exists even on freestanding compilers. */
19471 #ifdef __STDC__
19472 # include <limits.h>
19473 #else
19474 # include <assert.h>
19475 #endif
19477 #undef $ac_func
19479 /* Override any GCC internal prototype to avoid an error.
19480 Use char because int might match the return type of a GCC
19481 builtin and then its argument prototype would still apply. */
19482 #ifdef __cplusplus
19483 extern "C"
19484 #endif
19485 char $ac_func ();
19486 /* The GNU C library defines this for functions which it implements
19487 to always fail with ENOSYS. Some functions are actually named
19488 something starting with __ and the normal name is an alias. */
19489 #if defined __stub_$ac_func || defined __stub___$ac_func
19490 choke me
19491 #endif
19494 main ()
19496 return $ac_func ();
19498 return 0;
19500 _ACEOF
19501 rm -f conftest.$ac_objext conftest$ac_exeext
19502 if { (ac_try="$ac_link"
19503 case "(($ac_try" in
19504 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19505 *) ac_try_echo=$ac_try;;
19506 esac
19507 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19508 (eval "$ac_link") 2>conftest.er1
19509 ac_status=$?
19510 grep -v '^ *+' conftest.er1 >conftest.err
19511 rm -f conftest.er1
19512 cat conftest.err >&5
19513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19514 (exit $ac_status); } && {
19515 test -z "$ac_c_werror_flag" ||
19516 test ! -s conftest.err
19517 } && test -s conftest$ac_exeext &&
19518 $as_test_x conftest$ac_exeext; then
19519 eval "$as_ac_var=yes"
19520 else
19521 echo "$as_me: failed program was:" >&5
19522 sed 's/^/| /' conftest.$ac_ext >&5
19524 eval "$as_ac_var=no"
19527 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19528 conftest$ac_exeext conftest.$ac_ext
19530 ac_res=`eval echo '${'$as_ac_var'}'`
19531 { echo "$as_me:$LINENO: result: $ac_res" >&5
19532 echo "${ECHO_T}$ac_res" >&6; }
19533 if test `eval echo '${'$as_ac_var'}'` = yes; then
19534 cat >>confdefs.h <<_ACEOF
19535 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19536 _ACEOF
19539 done
19542 # checks for structures
19543 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
19544 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
19545 if test "${ac_cv_header_time+set}" = set; then
19546 echo $ECHO_N "(cached) $ECHO_C" >&6
19547 else
19548 cat >conftest.$ac_ext <<_ACEOF
19549 /* confdefs.h. */
19550 _ACEOF
19551 cat confdefs.h >>conftest.$ac_ext
19552 cat >>conftest.$ac_ext <<_ACEOF
19553 /* end confdefs.h. */
19554 #include <sys/types.h>
19555 #include <sys/time.h>
19556 #include <time.h>
19559 main ()
19561 if ((struct tm *) 0)
19562 return 0;
19564 return 0;
19566 _ACEOF
19567 rm -f conftest.$ac_objext
19568 if { (ac_try="$ac_compile"
19569 case "(($ac_try" in
19570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19571 *) ac_try_echo=$ac_try;;
19572 esac
19573 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19574 (eval "$ac_compile") 2>conftest.er1
19575 ac_status=$?
19576 grep -v '^ *+' conftest.er1 >conftest.err
19577 rm -f conftest.er1
19578 cat conftest.err >&5
19579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19580 (exit $ac_status); } && {
19581 test -z "$ac_c_werror_flag" ||
19582 test ! -s conftest.err
19583 } && test -s conftest.$ac_objext; then
19584 ac_cv_header_time=yes
19585 else
19586 echo "$as_me: failed program was:" >&5
19587 sed 's/^/| /' conftest.$ac_ext >&5
19589 ac_cv_header_time=no
19592 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19594 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
19595 echo "${ECHO_T}$ac_cv_header_time" >&6; }
19596 if test $ac_cv_header_time = yes; then
19598 cat >>confdefs.h <<\_ACEOF
19599 #define TIME_WITH_SYS_TIME 1
19600 _ACEOF
19604 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
19605 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
19606 if test "${ac_cv_struct_tm+set}" = set; then
19607 echo $ECHO_N "(cached) $ECHO_C" >&6
19608 else
19609 cat >conftest.$ac_ext <<_ACEOF
19610 /* confdefs.h. */
19611 _ACEOF
19612 cat confdefs.h >>conftest.$ac_ext
19613 cat >>conftest.$ac_ext <<_ACEOF
19614 /* end confdefs.h. */
19615 #include <sys/types.h>
19616 #include <time.h>
19619 main ()
19621 struct tm tm;
19622 int *p = &tm.tm_sec;
19623 return !p;
19625 return 0;
19627 _ACEOF
19628 rm -f conftest.$ac_objext
19629 if { (ac_try="$ac_compile"
19630 case "(($ac_try" in
19631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19632 *) ac_try_echo=$ac_try;;
19633 esac
19634 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19635 (eval "$ac_compile") 2>conftest.er1
19636 ac_status=$?
19637 grep -v '^ *+' conftest.er1 >conftest.err
19638 rm -f conftest.er1
19639 cat conftest.err >&5
19640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19641 (exit $ac_status); } && {
19642 test -z "$ac_c_werror_flag" ||
19643 test ! -s conftest.err
19644 } && test -s conftest.$ac_objext; then
19645 ac_cv_struct_tm=time.h
19646 else
19647 echo "$as_me: failed program was:" >&5
19648 sed 's/^/| /' conftest.$ac_ext >&5
19650 ac_cv_struct_tm=sys/time.h
19653 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19655 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
19656 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
19657 if test $ac_cv_struct_tm = sys/time.h; then
19659 cat >>confdefs.h <<\_ACEOF
19660 #define TM_IN_SYS_TIME 1
19661 _ACEOF
19665 { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
19666 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
19667 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
19668 echo $ECHO_N "(cached) $ECHO_C" >&6
19669 else
19670 cat >conftest.$ac_ext <<_ACEOF
19671 /* confdefs.h. */
19672 _ACEOF
19673 cat confdefs.h >>conftest.$ac_ext
19674 cat >>conftest.$ac_ext <<_ACEOF
19675 /* end confdefs.h. */
19676 #include <sys/types.h>
19677 #include <$ac_cv_struct_tm>
19681 main ()
19683 static struct tm ac_aggr;
19684 if (ac_aggr.tm_zone)
19685 return 0;
19687 return 0;
19689 _ACEOF
19690 rm -f conftest.$ac_objext
19691 if { (ac_try="$ac_compile"
19692 case "(($ac_try" in
19693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19694 *) ac_try_echo=$ac_try;;
19695 esac
19696 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19697 (eval "$ac_compile") 2>conftest.er1
19698 ac_status=$?
19699 grep -v '^ *+' conftest.er1 >conftest.err
19700 rm -f conftest.er1
19701 cat conftest.err >&5
19702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19703 (exit $ac_status); } && {
19704 test -z "$ac_c_werror_flag" ||
19705 test ! -s conftest.err
19706 } && test -s conftest.$ac_objext; then
19707 ac_cv_member_struct_tm_tm_zone=yes
19708 else
19709 echo "$as_me: failed program was:" >&5
19710 sed 's/^/| /' conftest.$ac_ext >&5
19712 cat >conftest.$ac_ext <<_ACEOF
19713 /* confdefs.h. */
19714 _ACEOF
19715 cat confdefs.h >>conftest.$ac_ext
19716 cat >>conftest.$ac_ext <<_ACEOF
19717 /* end confdefs.h. */
19718 #include <sys/types.h>
19719 #include <$ac_cv_struct_tm>
19723 main ()
19725 static struct tm ac_aggr;
19726 if (sizeof ac_aggr.tm_zone)
19727 return 0;
19729 return 0;
19731 _ACEOF
19732 rm -f conftest.$ac_objext
19733 if { (ac_try="$ac_compile"
19734 case "(($ac_try" in
19735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19736 *) ac_try_echo=$ac_try;;
19737 esac
19738 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19739 (eval "$ac_compile") 2>conftest.er1
19740 ac_status=$?
19741 grep -v '^ *+' conftest.er1 >conftest.err
19742 rm -f conftest.er1
19743 cat conftest.err >&5
19744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19745 (exit $ac_status); } && {
19746 test -z "$ac_c_werror_flag" ||
19747 test ! -s conftest.err
19748 } && test -s conftest.$ac_objext; then
19749 ac_cv_member_struct_tm_tm_zone=yes
19750 else
19751 echo "$as_me: failed program was:" >&5
19752 sed 's/^/| /' conftest.$ac_ext >&5
19754 ac_cv_member_struct_tm_tm_zone=no
19757 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19760 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19762 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
19763 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
19764 if test $ac_cv_member_struct_tm_tm_zone = yes; then
19766 cat >>confdefs.h <<_ACEOF
19767 #define HAVE_STRUCT_TM_TM_ZONE 1
19768 _ACEOF
19773 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
19775 cat >>confdefs.h <<\_ACEOF
19776 #define HAVE_TM_ZONE 1
19777 _ACEOF
19779 else
19780 { echo "$as_me:$LINENO: checking whether tzname is declared" >&5
19781 echo $ECHO_N "checking whether tzname is declared... $ECHO_C" >&6; }
19782 if test "${ac_cv_have_decl_tzname+set}" = set; then
19783 echo $ECHO_N "(cached) $ECHO_C" >&6
19784 else
19785 cat >conftest.$ac_ext <<_ACEOF
19786 /* confdefs.h. */
19787 _ACEOF
19788 cat confdefs.h >>conftest.$ac_ext
19789 cat >>conftest.$ac_ext <<_ACEOF
19790 /* end confdefs.h. */
19791 #include <time.h>
19794 main ()
19796 #ifndef tzname
19797 (void) tzname;
19798 #endif
19801 return 0;
19803 _ACEOF
19804 rm -f conftest.$ac_objext
19805 if { (ac_try="$ac_compile"
19806 case "(($ac_try" in
19807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19808 *) ac_try_echo=$ac_try;;
19809 esac
19810 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19811 (eval "$ac_compile") 2>conftest.er1
19812 ac_status=$?
19813 grep -v '^ *+' conftest.er1 >conftest.err
19814 rm -f conftest.er1
19815 cat conftest.err >&5
19816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19817 (exit $ac_status); } && {
19818 test -z "$ac_c_werror_flag" ||
19819 test ! -s conftest.err
19820 } && test -s conftest.$ac_objext; then
19821 ac_cv_have_decl_tzname=yes
19822 else
19823 echo "$as_me: failed program was:" >&5
19824 sed 's/^/| /' conftest.$ac_ext >&5
19826 ac_cv_have_decl_tzname=no
19829 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19831 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
19832 echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; }
19833 if test $ac_cv_have_decl_tzname = yes; then
19835 cat >>confdefs.h <<_ACEOF
19836 #define HAVE_DECL_TZNAME 1
19837 _ACEOF
19840 else
19841 cat >>confdefs.h <<_ACEOF
19842 #define HAVE_DECL_TZNAME 0
19843 _ACEOF
19849 { echo "$as_me:$LINENO: checking for tzname" >&5
19850 echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
19851 if test "${ac_cv_var_tzname+set}" = set; then
19852 echo $ECHO_N "(cached) $ECHO_C" >&6
19853 else
19854 cat >conftest.$ac_ext <<_ACEOF
19855 /* confdefs.h. */
19856 _ACEOF
19857 cat confdefs.h >>conftest.$ac_ext
19858 cat >>conftest.$ac_ext <<_ACEOF
19859 /* end confdefs.h. */
19860 #include <time.h>
19861 #if !HAVE_DECL_TZNAME
19862 extern char *tzname[];
19863 #endif
19866 main ()
19868 return tzname[0][0];
19870 return 0;
19872 _ACEOF
19873 rm -f conftest.$ac_objext conftest$ac_exeext
19874 if { (ac_try="$ac_link"
19875 case "(($ac_try" in
19876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19877 *) ac_try_echo=$ac_try;;
19878 esac
19879 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19880 (eval "$ac_link") 2>conftest.er1
19881 ac_status=$?
19882 grep -v '^ *+' conftest.er1 >conftest.err
19883 rm -f conftest.er1
19884 cat conftest.err >&5
19885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19886 (exit $ac_status); } && {
19887 test -z "$ac_c_werror_flag" ||
19888 test ! -s conftest.err
19889 } && test -s conftest$ac_exeext &&
19890 $as_test_x conftest$ac_exeext; then
19891 ac_cv_var_tzname=yes
19892 else
19893 echo "$as_me: failed program was:" >&5
19894 sed 's/^/| /' conftest.$ac_ext >&5
19896 ac_cv_var_tzname=no
19899 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19900 conftest$ac_exeext conftest.$ac_ext
19902 { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
19903 echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
19904 if test $ac_cv_var_tzname = yes; then
19906 cat >>confdefs.h <<\_ACEOF
19907 #define HAVE_TZNAME 1
19908 _ACEOF
19913 { echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
19914 echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6; }
19915 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
19916 echo $ECHO_N "(cached) $ECHO_C" >&6
19917 else
19918 cat >conftest.$ac_ext <<_ACEOF
19919 /* confdefs.h. */
19920 _ACEOF
19921 cat confdefs.h >>conftest.$ac_ext
19922 cat >>conftest.$ac_ext <<_ACEOF
19923 /* end confdefs.h. */
19924 $ac_includes_default
19926 main ()
19928 static struct stat ac_aggr;
19929 if (ac_aggr.st_rdev)
19930 return 0;
19932 return 0;
19934 _ACEOF
19935 rm -f conftest.$ac_objext
19936 if { (ac_try="$ac_compile"
19937 case "(($ac_try" in
19938 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19939 *) ac_try_echo=$ac_try;;
19940 esac
19941 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19942 (eval "$ac_compile") 2>conftest.er1
19943 ac_status=$?
19944 grep -v '^ *+' conftest.er1 >conftest.err
19945 rm -f conftest.er1
19946 cat conftest.err >&5
19947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19948 (exit $ac_status); } && {
19949 test -z "$ac_c_werror_flag" ||
19950 test ! -s conftest.err
19951 } && test -s conftest.$ac_objext; then
19952 ac_cv_member_struct_stat_st_rdev=yes
19953 else
19954 echo "$as_me: failed program was:" >&5
19955 sed 's/^/| /' conftest.$ac_ext >&5
19957 cat >conftest.$ac_ext <<_ACEOF
19958 /* confdefs.h. */
19959 _ACEOF
19960 cat confdefs.h >>conftest.$ac_ext
19961 cat >>conftest.$ac_ext <<_ACEOF
19962 /* end confdefs.h. */
19963 $ac_includes_default
19965 main ()
19967 static struct stat ac_aggr;
19968 if (sizeof ac_aggr.st_rdev)
19969 return 0;
19971 return 0;
19973 _ACEOF
19974 rm -f conftest.$ac_objext
19975 if { (ac_try="$ac_compile"
19976 case "(($ac_try" in
19977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19978 *) ac_try_echo=$ac_try;;
19979 esac
19980 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19981 (eval "$ac_compile") 2>conftest.er1
19982 ac_status=$?
19983 grep -v '^ *+' conftest.er1 >conftest.err
19984 rm -f conftest.er1
19985 cat conftest.err >&5
19986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19987 (exit $ac_status); } && {
19988 test -z "$ac_c_werror_flag" ||
19989 test ! -s conftest.err
19990 } && test -s conftest.$ac_objext; then
19991 ac_cv_member_struct_stat_st_rdev=yes
19992 else
19993 echo "$as_me: failed program was:" >&5
19994 sed 's/^/| /' conftest.$ac_ext >&5
19996 ac_cv_member_struct_stat_st_rdev=no
19999 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20002 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20004 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
20005 echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6; }
20006 if test $ac_cv_member_struct_stat_st_rdev = yes; then
20008 cat >>confdefs.h <<_ACEOF
20009 #define HAVE_STRUCT_STAT_ST_RDEV 1
20010 _ACEOF
20015 { echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
20016 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6; }
20017 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
20018 echo $ECHO_N "(cached) $ECHO_C" >&6
20019 else
20020 cat >conftest.$ac_ext <<_ACEOF
20021 /* confdefs.h. */
20022 _ACEOF
20023 cat confdefs.h >>conftest.$ac_ext
20024 cat >>conftest.$ac_ext <<_ACEOF
20025 /* end confdefs.h. */
20026 $ac_includes_default
20028 main ()
20030 static struct stat ac_aggr;
20031 if (ac_aggr.st_blksize)
20032 return 0;
20034 return 0;
20036 _ACEOF
20037 rm -f conftest.$ac_objext
20038 if { (ac_try="$ac_compile"
20039 case "(($ac_try" in
20040 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20041 *) ac_try_echo=$ac_try;;
20042 esac
20043 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20044 (eval "$ac_compile") 2>conftest.er1
20045 ac_status=$?
20046 grep -v '^ *+' conftest.er1 >conftest.err
20047 rm -f conftest.er1
20048 cat conftest.err >&5
20049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20050 (exit $ac_status); } && {
20051 test -z "$ac_c_werror_flag" ||
20052 test ! -s conftest.err
20053 } && test -s conftest.$ac_objext; then
20054 ac_cv_member_struct_stat_st_blksize=yes
20055 else
20056 echo "$as_me: failed program was:" >&5
20057 sed 's/^/| /' conftest.$ac_ext >&5
20059 cat >conftest.$ac_ext <<_ACEOF
20060 /* confdefs.h. */
20061 _ACEOF
20062 cat confdefs.h >>conftest.$ac_ext
20063 cat >>conftest.$ac_ext <<_ACEOF
20064 /* end confdefs.h. */
20065 $ac_includes_default
20067 main ()
20069 static struct stat ac_aggr;
20070 if (sizeof ac_aggr.st_blksize)
20071 return 0;
20073 return 0;
20075 _ACEOF
20076 rm -f conftest.$ac_objext
20077 if { (ac_try="$ac_compile"
20078 case "(($ac_try" in
20079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20080 *) ac_try_echo=$ac_try;;
20081 esac
20082 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20083 (eval "$ac_compile") 2>conftest.er1
20084 ac_status=$?
20085 grep -v '^ *+' conftest.er1 >conftest.err
20086 rm -f conftest.er1
20087 cat conftest.err >&5
20088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20089 (exit $ac_status); } && {
20090 test -z "$ac_c_werror_flag" ||
20091 test ! -s conftest.err
20092 } && test -s conftest.$ac_objext; then
20093 ac_cv_member_struct_stat_st_blksize=yes
20094 else
20095 echo "$as_me: failed program was:" >&5
20096 sed 's/^/| /' conftest.$ac_ext >&5
20098 ac_cv_member_struct_stat_st_blksize=no
20101 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20104 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20106 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
20107 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6; }
20108 if test $ac_cv_member_struct_stat_st_blksize = yes; then
20110 cat >>confdefs.h <<_ACEOF
20111 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
20112 _ACEOF
20117 { echo "$as_me:$LINENO: checking for struct stat.st_flags" >&5
20118 echo $ECHO_N "checking for struct stat.st_flags... $ECHO_C" >&6; }
20119 if test "${ac_cv_member_struct_stat_st_flags+set}" = set; then
20120 echo $ECHO_N "(cached) $ECHO_C" >&6
20121 else
20122 cat >conftest.$ac_ext <<_ACEOF
20123 /* confdefs.h. */
20124 _ACEOF
20125 cat confdefs.h >>conftest.$ac_ext
20126 cat >>conftest.$ac_ext <<_ACEOF
20127 /* end confdefs.h. */
20128 $ac_includes_default
20130 main ()
20132 static struct stat ac_aggr;
20133 if (ac_aggr.st_flags)
20134 return 0;
20136 return 0;
20138 _ACEOF
20139 rm -f conftest.$ac_objext
20140 if { (ac_try="$ac_compile"
20141 case "(($ac_try" in
20142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20143 *) ac_try_echo=$ac_try;;
20144 esac
20145 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20146 (eval "$ac_compile") 2>conftest.er1
20147 ac_status=$?
20148 grep -v '^ *+' conftest.er1 >conftest.err
20149 rm -f conftest.er1
20150 cat conftest.err >&5
20151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20152 (exit $ac_status); } && {
20153 test -z "$ac_c_werror_flag" ||
20154 test ! -s conftest.err
20155 } && test -s conftest.$ac_objext; then
20156 ac_cv_member_struct_stat_st_flags=yes
20157 else
20158 echo "$as_me: failed program was:" >&5
20159 sed 's/^/| /' conftest.$ac_ext >&5
20161 cat >conftest.$ac_ext <<_ACEOF
20162 /* confdefs.h. */
20163 _ACEOF
20164 cat confdefs.h >>conftest.$ac_ext
20165 cat >>conftest.$ac_ext <<_ACEOF
20166 /* end confdefs.h. */
20167 $ac_includes_default
20169 main ()
20171 static struct stat ac_aggr;
20172 if (sizeof ac_aggr.st_flags)
20173 return 0;
20175 return 0;
20177 _ACEOF
20178 rm -f conftest.$ac_objext
20179 if { (ac_try="$ac_compile"
20180 case "(($ac_try" in
20181 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20182 *) ac_try_echo=$ac_try;;
20183 esac
20184 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20185 (eval "$ac_compile") 2>conftest.er1
20186 ac_status=$?
20187 grep -v '^ *+' conftest.er1 >conftest.err
20188 rm -f conftest.er1
20189 cat conftest.err >&5
20190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20191 (exit $ac_status); } && {
20192 test -z "$ac_c_werror_flag" ||
20193 test ! -s conftest.err
20194 } && test -s conftest.$ac_objext; then
20195 ac_cv_member_struct_stat_st_flags=yes
20196 else
20197 echo "$as_me: failed program was:" >&5
20198 sed 's/^/| /' conftest.$ac_ext >&5
20200 ac_cv_member_struct_stat_st_flags=no
20203 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20206 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20208 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_flags" >&5
20209 echo "${ECHO_T}$ac_cv_member_struct_stat_st_flags" >&6; }
20210 if test $ac_cv_member_struct_stat_st_flags = yes; then
20212 cat >>confdefs.h <<_ACEOF
20213 #define HAVE_STRUCT_STAT_ST_FLAGS 1
20214 _ACEOF
20219 { echo "$as_me:$LINENO: checking for struct stat.st_gen" >&5
20220 echo $ECHO_N "checking for struct stat.st_gen... $ECHO_C" >&6; }
20221 if test "${ac_cv_member_struct_stat_st_gen+set}" = set; then
20222 echo $ECHO_N "(cached) $ECHO_C" >&6
20223 else
20224 cat >conftest.$ac_ext <<_ACEOF
20225 /* confdefs.h. */
20226 _ACEOF
20227 cat confdefs.h >>conftest.$ac_ext
20228 cat >>conftest.$ac_ext <<_ACEOF
20229 /* end confdefs.h. */
20230 $ac_includes_default
20232 main ()
20234 static struct stat ac_aggr;
20235 if (ac_aggr.st_gen)
20236 return 0;
20238 return 0;
20240 _ACEOF
20241 rm -f conftest.$ac_objext
20242 if { (ac_try="$ac_compile"
20243 case "(($ac_try" in
20244 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20245 *) ac_try_echo=$ac_try;;
20246 esac
20247 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20248 (eval "$ac_compile") 2>conftest.er1
20249 ac_status=$?
20250 grep -v '^ *+' conftest.er1 >conftest.err
20251 rm -f conftest.er1
20252 cat conftest.err >&5
20253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20254 (exit $ac_status); } && {
20255 test -z "$ac_c_werror_flag" ||
20256 test ! -s conftest.err
20257 } && test -s conftest.$ac_objext; then
20258 ac_cv_member_struct_stat_st_gen=yes
20259 else
20260 echo "$as_me: failed program was:" >&5
20261 sed 's/^/| /' conftest.$ac_ext >&5
20263 cat >conftest.$ac_ext <<_ACEOF
20264 /* confdefs.h. */
20265 _ACEOF
20266 cat confdefs.h >>conftest.$ac_ext
20267 cat >>conftest.$ac_ext <<_ACEOF
20268 /* end confdefs.h. */
20269 $ac_includes_default
20271 main ()
20273 static struct stat ac_aggr;
20274 if (sizeof ac_aggr.st_gen)
20275 return 0;
20277 return 0;
20279 _ACEOF
20280 rm -f conftest.$ac_objext
20281 if { (ac_try="$ac_compile"
20282 case "(($ac_try" in
20283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20284 *) ac_try_echo=$ac_try;;
20285 esac
20286 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20287 (eval "$ac_compile") 2>conftest.er1
20288 ac_status=$?
20289 grep -v '^ *+' conftest.er1 >conftest.err
20290 rm -f conftest.er1
20291 cat conftest.err >&5
20292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20293 (exit $ac_status); } && {
20294 test -z "$ac_c_werror_flag" ||
20295 test ! -s conftest.err
20296 } && test -s conftest.$ac_objext; then
20297 ac_cv_member_struct_stat_st_gen=yes
20298 else
20299 echo "$as_me: failed program was:" >&5
20300 sed 's/^/| /' conftest.$ac_ext >&5
20302 ac_cv_member_struct_stat_st_gen=no
20305 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20308 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20310 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_gen" >&5
20311 echo "${ECHO_T}$ac_cv_member_struct_stat_st_gen" >&6; }
20312 if test $ac_cv_member_struct_stat_st_gen = yes; then
20314 cat >>confdefs.h <<_ACEOF
20315 #define HAVE_STRUCT_STAT_ST_GEN 1
20316 _ACEOF
20321 { echo "$as_me:$LINENO: checking for struct stat.st_birthtime" >&5
20322 echo $ECHO_N "checking for struct stat.st_birthtime... $ECHO_C" >&6; }
20323 if test "${ac_cv_member_struct_stat_st_birthtime+set}" = set; then
20324 echo $ECHO_N "(cached) $ECHO_C" >&6
20325 else
20326 cat >conftest.$ac_ext <<_ACEOF
20327 /* confdefs.h. */
20328 _ACEOF
20329 cat confdefs.h >>conftest.$ac_ext
20330 cat >>conftest.$ac_ext <<_ACEOF
20331 /* end confdefs.h. */
20332 $ac_includes_default
20334 main ()
20336 static struct stat ac_aggr;
20337 if (ac_aggr.st_birthtime)
20338 return 0;
20340 return 0;
20342 _ACEOF
20343 rm -f conftest.$ac_objext
20344 if { (ac_try="$ac_compile"
20345 case "(($ac_try" in
20346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20347 *) ac_try_echo=$ac_try;;
20348 esac
20349 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20350 (eval "$ac_compile") 2>conftest.er1
20351 ac_status=$?
20352 grep -v '^ *+' conftest.er1 >conftest.err
20353 rm -f conftest.er1
20354 cat conftest.err >&5
20355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20356 (exit $ac_status); } && {
20357 test -z "$ac_c_werror_flag" ||
20358 test ! -s conftest.err
20359 } && test -s conftest.$ac_objext; then
20360 ac_cv_member_struct_stat_st_birthtime=yes
20361 else
20362 echo "$as_me: failed program was:" >&5
20363 sed 's/^/| /' conftest.$ac_ext >&5
20365 cat >conftest.$ac_ext <<_ACEOF
20366 /* confdefs.h. */
20367 _ACEOF
20368 cat confdefs.h >>conftest.$ac_ext
20369 cat >>conftest.$ac_ext <<_ACEOF
20370 /* end confdefs.h. */
20371 $ac_includes_default
20373 main ()
20375 static struct stat ac_aggr;
20376 if (sizeof ac_aggr.st_birthtime)
20377 return 0;
20379 return 0;
20381 _ACEOF
20382 rm -f conftest.$ac_objext
20383 if { (ac_try="$ac_compile"
20384 case "(($ac_try" in
20385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20386 *) ac_try_echo=$ac_try;;
20387 esac
20388 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20389 (eval "$ac_compile") 2>conftest.er1
20390 ac_status=$?
20391 grep -v '^ *+' conftest.er1 >conftest.err
20392 rm -f conftest.er1
20393 cat conftest.err >&5
20394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20395 (exit $ac_status); } && {
20396 test -z "$ac_c_werror_flag" ||
20397 test ! -s conftest.err
20398 } && test -s conftest.$ac_objext; then
20399 ac_cv_member_struct_stat_st_birthtime=yes
20400 else
20401 echo "$as_me: failed program was:" >&5
20402 sed 's/^/| /' conftest.$ac_ext >&5
20404 ac_cv_member_struct_stat_st_birthtime=no
20407 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20410 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20412 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_birthtime" >&5
20413 echo "${ECHO_T}$ac_cv_member_struct_stat_st_birthtime" >&6; }
20414 if test $ac_cv_member_struct_stat_st_birthtime = yes; then
20416 cat >>confdefs.h <<_ACEOF
20417 #define HAVE_STRUCT_STAT_ST_BIRTHTIME 1
20418 _ACEOF
20423 { echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
20424 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6; }
20425 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
20426 echo $ECHO_N "(cached) $ECHO_C" >&6
20427 else
20428 cat >conftest.$ac_ext <<_ACEOF
20429 /* confdefs.h. */
20430 _ACEOF
20431 cat confdefs.h >>conftest.$ac_ext
20432 cat >>conftest.$ac_ext <<_ACEOF
20433 /* end confdefs.h. */
20434 $ac_includes_default
20436 main ()
20438 static struct stat ac_aggr;
20439 if (ac_aggr.st_blocks)
20440 return 0;
20442 return 0;
20444 _ACEOF
20445 rm -f conftest.$ac_objext
20446 if { (ac_try="$ac_compile"
20447 case "(($ac_try" in
20448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20449 *) ac_try_echo=$ac_try;;
20450 esac
20451 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20452 (eval "$ac_compile") 2>conftest.er1
20453 ac_status=$?
20454 grep -v '^ *+' conftest.er1 >conftest.err
20455 rm -f conftest.er1
20456 cat conftest.err >&5
20457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20458 (exit $ac_status); } && {
20459 test -z "$ac_c_werror_flag" ||
20460 test ! -s conftest.err
20461 } && test -s conftest.$ac_objext; then
20462 ac_cv_member_struct_stat_st_blocks=yes
20463 else
20464 echo "$as_me: failed program was:" >&5
20465 sed 's/^/| /' conftest.$ac_ext >&5
20467 cat >conftest.$ac_ext <<_ACEOF
20468 /* confdefs.h. */
20469 _ACEOF
20470 cat confdefs.h >>conftest.$ac_ext
20471 cat >>conftest.$ac_ext <<_ACEOF
20472 /* end confdefs.h. */
20473 $ac_includes_default
20475 main ()
20477 static struct stat ac_aggr;
20478 if (sizeof ac_aggr.st_blocks)
20479 return 0;
20481 return 0;
20483 _ACEOF
20484 rm -f conftest.$ac_objext
20485 if { (ac_try="$ac_compile"
20486 case "(($ac_try" in
20487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20488 *) ac_try_echo=$ac_try;;
20489 esac
20490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20491 (eval "$ac_compile") 2>conftest.er1
20492 ac_status=$?
20493 grep -v '^ *+' conftest.er1 >conftest.err
20494 rm -f conftest.er1
20495 cat conftest.err >&5
20496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20497 (exit $ac_status); } && {
20498 test -z "$ac_c_werror_flag" ||
20499 test ! -s conftest.err
20500 } && test -s conftest.$ac_objext; then
20501 ac_cv_member_struct_stat_st_blocks=yes
20502 else
20503 echo "$as_me: failed program was:" >&5
20504 sed 's/^/| /' conftest.$ac_ext >&5
20506 ac_cv_member_struct_stat_st_blocks=no
20509 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20512 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20514 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
20515 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6; }
20516 if test $ac_cv_member_struct_stat_st_blocks = yes; then
20518 cat >>confdefs.h <<_ACEOF
20519 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
20520 _ACEOF
20523 cat >>confdefs.h <<\_ACEOF
20524 #define HAVE_ST_BLOCKS 1
20525 _ACEOF
20527 else
20528 case " $LIBOBJS " in
20529 *" fileblocks.$ac_objext "* ) ;;
20530 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
20532 esac
20538 { echo "$as_me:$LINENO: checking for time.h that defines altzone" >&5
20539 echo $ECHO_N "checking for time.h that defines altzone... $ECHO_C" >&6; }
20540 if test "${ac_cv_header_time_altzone+set}" = set; then
20541 echo $ECHO_N "(cached) $ECHO_C" >&6
20542 else
20543 cat >conftest.$ac_ext <<_ACEOF
20544 /* confdefs.h. */
20545 _ACEOF
20546 cat confdefs.h >>conftest.$ac_ext
20547 cat >>conftest.$ac_ext <<_ACEOF
20548 /* end confdefs.h. */
20549 #include <time.h>
20551 main ()
20553 return altzone;
20555 return 0;
20557 _ACEOF
20558 rm -f conftest.$ac_objext
20559 if { (ac_try="$ac_compile"
20560 case "(($ac_try" in
20561 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20562 *) ac_try_echo=$ac_try;;
20563 esac
20564 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20565 (eval "$ac_compile") 2>conftest.er1
20566 ac_status=$?
20567 grep -v '^ *+' conftest.er1 >conftest.err
20568 rm -f conftest.er1
20569 cat conftest.err >&5
20570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20571 (exit $ac_status); } && {
20572 test -z "$ac_c_werror_flag" ||
20573 test ! -s conftest.err
20574 } && test -s conftest.$ac_objext; then
20575 ac_cv_header_time_altzone=yes
20576 else
20577 echo "$as_me: failed program was:" >&5
20578 sed 's/^/| /' conftest.$ac_ext >&5
20580 ac_cv_header_time_altzone=no
20583 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20586 { echo "$as_me:$LINENO: result: $ac_cv_header_time_altzone" >&5
20587 echo "${ECHO_T}$ac_cv_header_time_altzone" >&6; }
20588 if test $ac_cv_header_time_altzone = yes; then
20590 cat >>confdefs.h <<\_ACEOF
20591 #define HAVE_ALTZONE 1
20592 _ACEOF
20596 was_it_defined=no
20597 { echo "$as_me:$LINENO: checking whether sys/select.h and sys/time.h may both be included" >&5
20598 echo $ECHO_N "checking whether sys/select.h and sys/time.h may both be included... $ECHO_C" >&6; }
20599 cat >conftest.$ac_ext <<_ACEOF
20600 /* confdefs.h. */
20601 _ACEOF
20602 cat confdefs.h >>conftest.$ac_ext
20603 cat >>conftest.$ac_ext <<_ACEOF
20604 /* end confdefs.h. */
20606 #include <sys/types.h>
20607 #include <sys/select.h>
20608 #include <sys/time.h>
20611 main ()
20615 return 0;
20617 _ACEOF
20618 rm -f conftest.$ac_objext
20619 if { (ac_try="$ac_compile"
20620 case "(($ac_try" in
20621 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20622 *) ac_try_echo=$ac_try;;
20623 esac
20624 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20625 (eval "$ac_compile") 2>conftest.er1
20626 ac_status=$?
20627 grep -v '^ *+' conftest.er1 >conftest.err
20628 rm -f conftest.er1
20629 cat conftest.err >&5
20630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20631 (exit $ac_status); } && {
20632 test -z "$ac_c_werror_flag" ||
20633 test ! -s conftest.err
20634 } && test -s conftest.$ac_objext; then
20637 cat >>confdefs.h <<\_ACEOF
20638 #define SYS_SELECT_WITH_SYS_TIME 1
20639 _ACEOF
20641 was_it_defined=yes
20643 else
20644 echo "$as_me: failed program was:" >&5
20645 sed 's/^/| /' conftest.$ac_ext >&5
20650 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20651 { echo "$as_me:$LINENO: result: $was_it_defined" >&5
20652 echo "${ECHO_T}$was_it_defined" >&6; }
20654 { echo "$as_me:$LINENO: checking for addrinfo" >&5
20655 echo $ECHO_N "checking for addrinfo... $ECHO_C" >&6; }
20656 if test "${ac_cv_struct_addrinfo+set}" = set; then
20657 echo $ECHO_N "(cached) $ECHO_C" >&6
20658 else
20659 cat >conftest.$ac_ext <<_ACEOF
20660 /* confdefs.h. */
20661 _ACEOF
20662 cat confdefs.h >>conftest.$ac_ext
20663 cat >>conftest.$ac_ext <<_ACEOF
20664 /* end confdefs.h. */
20666 # include <netdb.h>
20668 main ()
20670 struct addrinfo a
20672 return 0;
20674 _ACEOF
20675 rm -f conftest.$ac_objext
20676 if { (ac_try="$ac_compile"
20677 case "(($ac_try" in
20678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20679 *) ac_try_echo=$ac_try;;
20680 esac
20681 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20682 (eval "$ac_compile") 2>conftest.er1
20683 ac_status=$?
20684 grep -v '^ *+' conftest.er1 >conftest.err
20685 rm -f conftest.er1
20686 cat conftest.err >&5
20687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20688 (exit $ac_status); } && {
20689 test -z "$ac_c_werror_flag" ||
20690 test ! -s conftest.err
20691 } && test -s conftest.$ac_objext; then
20692 ac_cv_struct_addrinfo=yes
20693 else
20694 echo "$as_me: failed program was:" >&5
20695 sed 's/^/| /' conftest.$ac_ext >&5
20697 ac_cv_struct_addrinfo=no
20700 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20703 { echo "$as_me:$LINENO: result: $ac_cv_struct_addrinfo" >&5
20704 echo "${ECHO_T}$ac_cv_struct_addrinfo" >&6; }
20705 if test $ac_cv_struct_addrinfo = yes; then
20707 cat >>confdefs.h <<\_ACEOF
20708 #define HAVE_ADDRINFO 1
20709 _ACEOF
20713 { echo "$as_me:$LINENO: checking for sockaddr_storage" >&5
20714 echo $ECHO_N "checking for sockaddr_storage... $ECHO_C" >&6; }
20715 if test "${ac_cv_struct_sockaddr_storage+set}" = set; then
20716 echo $ECHO_N "(cached) $ECHO_C" >&6
20717 else
20718 cat >conftest.$ac_ext <<_ACEOF
20719 /* confdefs.h. */
20720 _ACEOF
20721 cat confdefs.h >>conftest.$ac_ext
20722 cat >>conftest.$ac_ext <<_ACEOF
20723 /* end confdefs.h. */
20725 # include <sys/types.h>
20726 # include <sys/socket.h>
20728 main ()
20730 struct sockaddr_storage s
20732 return 0;
20734 _ACEOF
20735 rm -f conftest.$ac_objext
20736 if { (ac_try="$ac_compile"
20737 case "(($ac_try" in
20738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20739 *) ac_try_echo=$ac_try;;
20740 esac
20741 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20742 (eval "$ac_compile") 2>conftest.er1
20743 ac_status=$?
20744 grep -v '^ *+' conftest.er1 >conftest.err
20745 rm -f conftest.er1
20746 cat conftest.err >&5
20747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20748 (exit $ac_status); } && {
20749 test -z "$ac_c_werror_flag" ||
20750 test ! -s conftest.err
20751 } && test -s conftest.$ac_objext; then
20752 ac_cv_struct_sockaddr_storage=yes
20753 else
20754 echo "$as_me: failed program was:" >&5
20755 sed 's/^/| /' conftest.$ac_ext >&5
20757 ac_cv_struct_sockaddr_storage=no
20760 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20763 { echo "$as_me:$LINENO: result: $ac_cv_struct_sockaddr_storage" >&5
20764 echo "${ECHO_T}$ac_cv_struct_sockaddr_storage" >&6; }
20765 if test $ac_cv_struct_sockaddr_storage = yes; then
20767 cat >>confdefs.h <<\_ACEOF
20768 #define HAVE_SOCKADDR_STORAGE 1
20769 _ACEOF
20773 # checks for compiler characteristics
20776 { echo "$as_me:$LINENO: checking whether char is unsigned" >&5
20777 echo $ECHO_N "checking whether char is unsigned... $ECHO_C" >&6; }
20778 if test "${ac_cv_c_char_unsigned+set}" = set; then
20779 echo $ECHO_N "(cached) $ECHO_C" >&6
20780 else
20781 cat >conftest.$ac_ext <<_ACEOF
20782 /* confdefs.h. */
20783 _ACEOF
20784 cat confdefs.h >>conftest.$ac_ext
20785 cat >>conftest.$ac_ext <<_ACEOF
20786 /* end confdefs.h. */
20787 $ac_includes_default
20789 main ()
20791 static int test_array [1 - 2 * !(((char) -1) < 0)];
20792 test_array [0] = 0
20795 return 0;
20797 _ACEOF
20798 rm -f conftest.$ac_objext
20799 if { (ac_try="$ac_compile"
20800 case "(($ac_try" in
20801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20802 *) ac_try_echo=$ac_try;;
20803 esac
20804 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20805 (eval "$ac_compile") 2>conftest.er1
20806 ac_status=$?
20807 grep -v '^ *+' conftest.er1 >conftest.err
20808 rm -f conftest.er1
20809 cat conftest.err >&5
20810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20811 (exit $ac_status); } && {
20812 test -z "$ac_c_werror_flag" ||
20813 test ! -s conftest.err
20814 } && test -s conftest.$ac_objext; then
20815 ac_cv_c_char_unsigned=no
20816 else
20817 echo "$as_me: failed program was:" >&5
20818 sed 's/^/| /' conftest.$ac_ext >&5
20820 ac_cv_c_char_unsigned=yes
20823 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20825 { echo "$as_me:$LINENO: result: $ac_cv_c_char_unsigned" >&5
20826 echo "${ECHO_T}$ac_cv_c_char_unsigned" >&6; }
20827 if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
20828 cat >>confdefs.h <<\_ACEOF
20829 #define __CHAR_UNSIGNED__ 1
20830 _ACEOF
20834 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
20835 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
20836 if test "${ac_cv_c_const+set}" = set; then
20837 echo $ECHO_N "(cached) $ECHO_C" >&6
20838 else
20839 cat >conftest.$ac_ext <<_ACEOF
20840 /* confdefs.h. */
20841 _ACEOF
20842 cat confdefs.h >>conftest.$ac_ext
20843 cat >>conftest.$ac_ext <<_ACEOF
20844 /* end confdefs.h. */
20847 main ()
20849 /* FIXME: Include the comments suggested by Paul. */
20850 #ifndef __cplusplus
20851 /* Ultrix mips cc rejects this. */
20852 typedef int charset[2];
20853 const charset cs;
20854 /* SunOS 4.1.1 cc rejects this. */
20855 char const *const *pcpcc;
20856 char **ppc;
20857 /* NEC SVR4.0.2 mips cc rejects this. */
20858 struct point {int x, y;};
20859 static struct point const zero = {0,0};
20860 /* AIX XL C 1.02.0.0 rejects this.
20861 It does not let you subtract one const X* pointer from another in
20862 an arm of an if-expression whose if-part is not a constant
20863 expression */
20864 const char *g = "string";
20865 pcpcc = &g + (g ? g-g : 0);
20866 /* HPUX 7.0 cc rejects these. */
20867 ++pcpcc;
20868 ppc = (char**) pcpcc;
20869 pcpcc = (char const *const *) ppc;
20870 { /* SCO 3.2v4 cc rejects this. */
20871 char *t;
20872 char const *s = 0 ? (char *) 0 : (char const *) 0;
20874 *t++ = 0;
20875 if (s) return 0;
20877 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
20878 int x[] = {25, 17};
20879 const int *foo = &x[0];
20880 ++foo;
20882 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
20883 typedef const int *iptr;
20884 iptr p = 0;
20885 ++p;
20887 { /* AIX XL C 1.02.0.0 rejects this saying
20888 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
20889 struct s { int j; const int *ap[3]; };
20890 struct s *b; b->j = 5;
20892 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
20893 const int foo = 10;
20894 if (!foo) return 0;
20896 return !cs[0] && !zero.x;
20897 #endif
20900 return 0;
20902 _ACEOF
20903 rm -f conftest.$ac_objext
20904 if { (ac_try="$ac_compile"
20905 case "(($ac_try" in
20906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20907 *) ac_try_echo=$ac_try;;
20908 esac
20909 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20910 (eval "$ac_compile") 2>conftest.er1
20911 ac_status=$?
20912 grep -v '^ *+' conftest.er1 >conftest.err
20913 rm -f conftest.er1
20914 cat conftest.err >&5
20915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20916 (exit $ac_status); } && {
20917 test -z "$ac_c_werror_flag" ||
20918 test ! -s conftest.err
20919 } && test -s conftest.$ac_objext; then
20920 ac_cv_c_const=yes
20921 else
20922 echo "$as_me: failed program was:" >&5
20923 sed 's/^/| /' conftest.$ac_ext >&5
20925 ac_cv_c_const=no
20928 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20930 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
20931 echo "${ECHO_T}$ac_cv_c_const" >&6; }
20932 if test $ac_cv_c_const = no; then
20934 cat >>confdefs.h <<\_ACEOF
20935 #define const
20936 _ACEOF
20941 works=no
20942 { echo "$as_me:$LINENO: checking for working volatile" >&5
20943 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6; }
20944 cat >conftest.$ac_ext <<_ACEOF
20945 /* confdefs.h. */
20946 _ACEOF
20947 cat confdefs.h >>conftest.$ac_ext
20948 cat >>conftest.$ac_ext <<_ACEOF
20949 /* end confdefs.h. */
20952 main ()
20954 volatile int x; x = 0;
20956 return 0;
20958 _ACEOF
20959 rm -f conftest.$ac_objext
20960 if { (ac_try="$ac_compile"
20961 case "(($ac_try" in
20962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20963 *) ac_try_echo=$ac_try;;
20964 esac
20965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20966 (eval "$ac_compile") 2>conftest.er1
20967 ac_status=$?
20968 grep -v '^ *+' conftest.er1 >conftest.err
20969 rm -f conftest.er1
20970 cat conftest.err >&5
20971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20972 (exit $ac_status); } && {
20973 test -z "$ac_c_werror_flag" ||
20974 test ! -s conftest.err
20975 } && test -s conftest.$ac_objext; then
20976 works=yes
20977 else
20978 echo "$as_me: failed program was:" >&5
20979 sed 's/^/| /' conftest.$ac_ext >&5
20982 cat >>confdefs.h <<\_ACEOF
20983 #define volatile
20984 _ACEOF
20989 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20990 { echo "$as_me:$LINENO: result: $works" >&5
20991 echo "${ECHO_T}$works" >&6; }
20993 works=no
20994 { echo "$as_me:$LINENO: checking for working signed char" >&5
20995 echo $ECHO_N "checking for working signed char... $ECHO_C" >&6; }
20996 cat >conftest.$ac_ext <<_ACEOF
20997 /* confdefs.h. */
20998 _ACEOF
20999 cat confdefs.h >>conftest.$ac_ext
21000 cat >>conftest.$ac_ext <<_ACEOF
21001 /* end confdefs.h. */
21004 main ()
21006 signed char c;
21008 return 0;
21010 _ACEOF
21011 rm -f conftest.$ac_objext
21012 if { (ac_try="$ac_compile"
21013 case "(($ac_try" in
21014 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21015 *) ac_try_echo=$ac_try;;
21016 esac
21017 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21018 (eval "$ac_compile") 2>conftest.er1
21019 ac_status=$?
21020 grep -v '^ *+' conftest.er1 >conftest.err
21021 rm -f conftest.er1
21022 cat conftest.err >&5
21023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21024 (exit $ac_status); } && {
21025 test -z "$ac_c_werror_flag" ||
21026 test ! -s conftest.err
21027 } && test -s conftest.$ac_objext; then
21028 works=yes
21029 else
21030 echo "$as_me: failed program was:" >&5
21031 sed 's/^/| /' conftest.$ac_ext >&5
21034 cat >>confdefs.h <<\_ACEOF
21035 #define signed
21036 _ACEOF
21041 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21042 { echo "$as_me:$LINENO: result: $works" >&5
21043 echo "${ECHO_T}$works" >&6; }
21045 have_prototypes=no
21046 { echo "$as_me:$LINENO: checking for prototypes" >&5
21047 echo $ECHO_N "checking for prototypes... $ECHO_C" >&6; }
21048 cat >conftest.$ac_ext <<_ACEOF
21049 /* confdefs.h. */
21050 _ACEOF
21051 cat confdefs.h >>conftest.$ac_ext
21052 cat >>conftest.$ac_ext <<_ACEOF
21053 /* end confdefs.h. */
21054 int foo(int x) { return 0; }
21056 main ()
21058 return foo(10);
21060 return 0;
21062 _ACEOF
21063 rm -f conftest.$ac_objext
21064 if { (ac_try="$ac_compile"
21065 case "(($ac_try" in
21066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21067 *) ac_try_echo=$ac_try;;
21068 esac
21069 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21070 (eval "$ac_compile") 2>conftest.er1
21071 ac_status=$?
21072 grep -v '^ *+' conftest.er1 >conftest.err
21073 rm -f conftest.er1
21074 cat conftest.err >&5
21075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21076 (exit $ac_status); } && {
21077 test -z "$ac_c_werror_flag" ||
21078 test ! -s conftest.err
21079 } && test -s conftest.$ac_objext; then
21082 cat >>confdefs.h <<\_ACEOF
21083 #define HAVE_PROTOTYPES 1
21084 _ACEOF
21086 have_prototypes=yes
21088 else
21089 echo "$as_me: failed program was:" >&5
21090 sed 's/^/| /' conftest.$ac_ext >&5
21095 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21096 { echo "$as_me:$LINENO: result: $have_prototypes" >&5
21097 echo "${ECHO_T}$have_prototypes" >&6; }
21099 works=no
21100 { echo "$as_me:$LINENO: checking for variable length prototypes and stdarg.h" >&5
21101 echo $ECHO_N "checking for variable length prototypes and stdarg.h... $ECHO_C" >&6; }
21102 cat >conftest.$ac_ext <<_ACEOF
21103 /* confdefs.h. */
21104 _ACEOF
21105 cat confdefs.h >>conftest.$ac_ext
21106 cat >>conftest.$ac_ext <<_ACEOF
21107 /* end confdefs.h. */
21109 #include <stdarg.h>
21110 int foo(int x, ...) {
21111 va_list va;
21112 va_start(va, x);
21113 va_arg(va, int);
21114 va_arg(va, char *);
21115 va_arg(va, double);
21116 return 0;
21120 main ()
21122 return foo(10, "", 3.14);
21124 return 0;
21126 _ACEOF
21127 rm -f conftest.$ac_objext
21128 if { (ac_try="$ac_compile"
21129 case "(($ac_try" in
21130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21131 *) ac_try_echo=$ac_try;;
21132 esac
21133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21134 (eval "$ac_compile") 2>conftest.er1
21135 ac_status=$?
21136 grep -v '^ *+' conftest.er1 >conftest.err
21137 rm -f conftest.er1
21138 cat conftest.err >&5
21139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21140 (exit $ac_status); } && {
21141 test -z "$ac_c_werror_flag" ||
21142 test ! -s conftest.err
21143 } && test -s conftest.$ac_objext; then
21146 cat >>confdefs.h <<\_ACEOF
21147 #define HAVE_STDARG_PROTOTYPES 1
21148 _ACEOF
21150 works=yes
21152 else
21153 echo "$as_me: failed program was:" >&5
21154 sed 's/^/| /' conftest.$ac_ext >&5
21159 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21160 { echo "$as_me:$LINENO: result: $works" >&5
21161 echo "${ECHO_T}$works" >&6; }
21163 # check for socketpair
21164 { echo "$as_me:$LINENO: checking for socketpair" >&5
21165 echo $ECHO_N "checking for socketpair... $ECHO_C" >&6; }
21166 cat >conftest.$ac_ext <<_ACEOF
21167 /* confdefs.h. */
21168 _ACEOF
21169 cat confdefs.h >>conftest.$ac_ext
21170 cat >>conftest.$ac_ext <<_ACEOF
21171 /* end confdefs.h. */
21173 #include <sys/types.h>
21174 #include <sys/socket.h>
21177 main ()
21179 void *x=socketpair
21181 return 0;
21183 _ACEOF
21184 rm -f conftest.$ac_objext
21185 if { (ac_try="$ac_compile"
21186 case "(($ac_try" in
21187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21188 *) ac_try_echo=$ac_try;;
21189 esac
21190 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21191 (eval "$ac_compile") 2>conftest.er1
21192 ac_status=$?
21193 grep -v '^ *+' conftest.er1 >conftest.err
21194 rm -f conftest.er1
21195 cat conftest.err >&5
21196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21197 (exit $ac_status); } && {
21198 test -z "$ac_c_werror_flag" ||
21199 test ! -s conftest.err
21200 } && test -s conftest.$ac_objext; then
21202 cat >>confdefs.h <<\_ACEOF
21203 #define HAVE_SOCKETPAIR 1
21204 _ACEOF
21206 { echo "$as_me:$LINENO: result: yes" >&5
21207 echo "${ECHO_T}yes" >&6; }
21208 else
21209 echo "$as_me: failed program was:" >&5
21210 sed 's/^/| /' conftest.$ac_ext >&5
21212 { echo "$as_me:$LINENO: result: no" >&5
21213 echo "${ECHO_T}no" >&6; }
21217 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21219 # check if sockaddr has sa_len member
21220 { echo "$as_me:$LINENO: checking if sockaddr has sa_len member" >&5
21221 echo $ECHO_N "checking if sockaddr has sa_len member... $ECHO_C" >&6; }
21222 cat >conftest.$ac_ext <<_ACEOF
21223 /* confdefs.h. */
21224 _ACEOF
21225 cat confdefs.h >>conftest.$ac_ext
21226 cat >>conftest.$ac_ext <<_ACEOF
21227 /* end confdefs.h. */
21228 #include <sys/types.h>
21229 #include <sys/socket.h>
21231 main ()
21233 struct sockaddr x;
21234 x.sa_len = 0;
21236 return 0;
21238 _ACEOF
21239 rm -f conftest.$ac_objext
21240 if { (ac_try="$ac_compile"
21241 case "(($ac_try" in
21242 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21243 *) ac_try_echo=$ac_try;;
21244 esac
21245 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21246 (eval "$ac_compile") 2>conftest.er1
21247 ac_status=$?
21248 grep -v '^ *+' conftest.er1 >conftest.err
21249 rm -f conftest.er1
21250 cat conftest.err >&5
21251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21252 (exit $ac_status); } && {
21253 test -z "$ac_c_werror_flag" ||
21254 test ! -s conftest.err
21255 } && test -s conftest.$ac_objext; then
21256 { echo "$as_me:$LINENO: result: yes" >&5
21257 echo "${ECHO_T}yes" >&6; }
21259 cat >>confdefs.h <<\_ACEOF
21260 #define HAVE_SOCKADDR_SA_LEN 1
21261 _ACEOF
21263 else
21264 echo "$as_me: failed program was:" >&5
21265 sed 's/^/| /' conftest.$ac_ext >&5
21267 { echo "$as_me:$LINENO: result: no" >&5
21268 echo "${ECHO_T}no" >&6; }
21271 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21273 va_list_is_array=no
21274 { echo "$as_me:$LINENO: checking whether va_list is an array" >&5
21275 echo $ECHO_N "checking whether va_list is an array... $ECHO_C" >&6; }
21276 cat >conftest.$ac_ext <<_ACEOF
21277 /* confdefs.h. */
21278 _ACEOF
21279 cat confdefs.h >>conftest.$ac_ext
21280 cat >>conftest.$ac_ext <<_ACEOF
21281 /* end confdefs.h. */
21283 #ifdef HAVE_STDARG_PROTOTYPES
21284 #include <stdarg.h>
21285 #else
21286 #include <varargs.h>
21287 #endif
21290 main ()
21292 va_list list1, list2; list1 = list2;
21294 return 0;
21296 _ACEOF
21297 rm -f conftest.$ac_objext
21298 if { (ac_try="$ac_compile"
21299 case "(($ac_try" in
21300 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21301 *) ac_try_echo=$ac_try;;
21302 esac
21303 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21304 (eval "$ac_compile") 2>conftest.er1
21305 ac_status=$?
21306 grep -v '^ *+' conftest.er1 >conftest.err
21307 rm -f conftest.er1
21308 cat conftest.err >&5
21309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21310 (exit $ac_status); } && {
21311 test -z "$ac_c_werror_flag" ||
21312 test ! -s conftest.err
21313 } && test -s conftest.$ac_objext; then
21315 else
21316 echo "$as_me: failed program was:" >&5
21317 sed 's/^/| /' conftest.$ac_ext >&5
21321 cat >>confdefs.h <<\_ACEOF
21322 #define VA_LIST_IS_ARRAY 1
21323 _ACEOF
21325 va_list_is_array=yes
21329 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21330 { echo "$as_me:$LINENO: result: $va_list_is_array" >&5
21331 echo "${ECHO_T}$va_list_is_array" >&6; }
21333 # sigh -- gethostbyname_r is a mess; it can have 3, 5 or 6 arguments :-(
21337 { echo "$as_me:$LINENO: checking for gethostbyname_r" >&5
21338 echo $ECHO_N "checking for gethostbyname_r... $ECHO_C" >&6; }
21339 if test "${ac_cv_func_gethostbyname_r+set}" = set; then
21340 echo $ECHO_N "(cached) $ECHO_C" >&6
21341 else
21342 cat >conftest.$ac_ext <<_ACEOF
21343 /* confdefs.h. */
21344 _ACEOF
21345 cat confdefs.h >>conftest.$ac_ext
21346 cat >>conftest.$ac_ext <<_ACEOF
21347 /* end confdefs.h. */
21348 /* Define gethostbyname_r to an innocuous variant, in case <limits.h> declares gethostbyname_r.
21349 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21350 #define gethostbyname_r innocuous_gethostbyname_r
21352 /* System header to define __stub macros and hopefully few prototypes,
21353 which can conflict with char gethostbyname_r (); below.
21354 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21355 <limits.h> exists even on freestanding compilers. */
21357 #ifdef __STDC__
21358 # include <limits.h>
21359 #else
21360 # include <assert.h>
21361 #endif
21363 #undef gethostbyname_r
21365 /* Override any GCC internal prototype to avoid an error.
21366 Use char because int might match the return type of a GCC
21367 builtin and then its argument prototype would still apply. */
21368 #ifdef __cplusplus
21369 extern "C"
21370 #endif
21371 char gethostbyname_r ();
21372 /* The GNU C library defines this for functions which it implements
21373 to always fail with ENOSYS. Some functions are actually named
21374 something starting with __ and the normal name is an alias. */
21375 #if defined __stub_gethostbyname_r || defined __stub___gethostbyname_r
21376 choke me
21377 #endif
21380 main ()
21382 return gethostbyname_r ();
21384 return 0;
21386 _ACEOF
21387 rm -f conftest.$ac_objext conftest$ac_exeext
21388 if { (ac_try="$ac_link"
21389 case "(($ac_try" in
21390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21391 *) ac_try_echo=$ac_try;;
21392 esac
21393 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21394 (eval "$ac_link") 2>conftest.er1
21395 ac_status=$?
21396 grep -v '^ *+' conftest.er1 >conftest.err
21397 rm -f conftest.er1
21398 cat conftest.err >&5
21399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21400 (exit $ac_status); } && {
21401 test -z "$ac_c_werror_flag" ||
21402 test ! -s conftest.err
21403 } && test -s conftest$ac_exeext &&
21404 $as_test_x conftest$ac_exeext; then
21405 ac_cv_func_gethostbyname_r=yes
21406 else
21407 echo "$as_me: failed program was:" >&5
21408 sed 's/^/| /' conftest.$ac_ext >&5
21410 ac_cv_func_gethostbyname_r=no
21413 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21414 conftest$ac_exeext conftest.$ac_ext
21416 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname_r" >&5
21417 echo "${ECHO_T}$ac_cv_func_gethostbyname_r" >&6; }
21418 if test $ac_cv_func_gethostbyname_r = yes; then
21420 cat >>confdefs.h <<\_ACEOF
21421 #define HAVE_GETHOSTBYNAME_R 1
21422 _ACEOF
21424 { echo "$as_me:$LINENO: checking gethostbyname_r with 6 args" >&5
21425 echo $ECHO_N "checking gethostbyname_r with 6 args... $ECHO_C" >&6; }
21426 OLD_CFLAGS=$CFLAGS
21427 CFLAGS="$CFLAGS $MY_CPPFLAGS $MY_THREAD_CPPFLAGS $MY_CFLAGS"
21428 cat >conftest.$ac_ext <<_ACEOF
21429 /* confdefs.h. */
21430 _ACEOF
21431 cat confdefs.h >>conftest.$ac_ext
21432 cat >>conftest.$ac_ext <<_ACEOF
21433 /* end confdefs.h. */
21435 # include <netdb.h>
21438 main ()
21441 char *name;
21442 struct hostent *he, *res;
21443 char buffer[2048];
21444 int buflen = 2048;
21445 int h_errnop;
21447 (void) gethostbyname_r(name, he, buffer, buflen, &res, &h_errnop)
21450 return 0;
21452 _ACEOF
21453 rm -f conftest.$ac_objext
21454 if { (ac_try="$ac_compile"
21455 case "(($ac_try" in
21456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21457 *) ac_try_echo=$ac_try;;
21458 esac
21459 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21460 (eval "$ac_compile") 2>conftest.er1
21461 ac_status=$?
21462 grep -v '^ *+' conftest.er1 >conftest.err
21463 rm -f conftest.er1
21464 cat conftest.err >&5
21465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21466 (exit $ac_status); } && {
21467 test -z "$ac_c_werror_flag" ||
21468 test ! -s conftest.err
21469 } && test -s conftest.$ac_objext; then
21471 cat >>confdefs.h <<\_ACEOF
21472 #define HAVE_GETHOSTBYNAME_R 1
21473 _ACEOF
21476 cat >>confdefs.h <<\_ACEOF
21477 #define HAVE_GETHOSTBYNAME_R_6_ARG 1
21478 _ACEOF
21480 { echo "$as_me:$LINENO: result: yes" >&5
21481 echo "${ECHO_T}yes" >&6; }
21483 else
21484 echo "$as_me: failed program was:" >&5
21485 sed 's/^/| /' conftest.$ac_ext >&5
21488 { echo "$as_me:$LINENO: result: no" >&5
21489 echo "${ECHO_T}no" >&6; }
21490 { echo "$as_me:$LINENO: checking gethostbyname_r with 5 args" >&5
21491 echo $ECHO_N "checking gethostbyname_r with 5 args... $ECHO_C" >&6; }
21492 cat >conftest.$ac_ext <<_ACEOF
21493 /* confdefs.h. */
21494 _ACEOF
21495 cat confdefs.h >>conftest.$ac_ext
21496 cat >>conftest.$ac_ext <<_ACEOF
21497 /* end confdefs.h. */
21499 # include <netdb.h>
21502 main ()
21505 char *name;
21506 struct hostent *he;
21507 char buffer[2048];
21508 int buflen = 2048;
21509 int h_errnop;
21511 (void) gethostbyname_r(name, he, buffer, buflen, &h_errnop)
21514 return 0;
21516 _ACEOF
21517 rm -f conftest.$ac_objext
21518 if { (ac_try="$ac_compile"
21519 case "(($ac_try" in
21520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21521 *) ac_try_echo=$ac_try;;
21522 esac
21523 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21524 (eval "$ac_compile") 2>conftest.er1
21525 ac_status=$?
21526 grep -v '^ *+' conftest.er1 >conftest.err
21527 rm -f conftest.er1
21528 cat conftest.err >&5
21529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21530 (exit $ac_status); } && {
21531 test -z "$ac_c_werror_flag" ||
21532 test ! -s conftest.err
21533 } && test -s conftest.$ac_objext; then
21535 cat >>confdefs.h <<\_ACEOF
21536 #define HAVE_GETHOSTBYNAME_R 1
21537 _ACEOF
21540 cat >>confdefs.h <<\_ACEOF
21541 #define HAVE_GETHOSTBYNAME_R_5_ARG 1
21542 _ACEOF
21544 { echo "$as_me:$LINENO: result: yes" >&5
21545 echo "${ECHO_T}yes" >&6; }
21547 else
21548 echo "$as_me: failed program was:" >&5
21549 sed 's/^/| /' conftest.$ac_ext >&5
21552 { echo "$as_me:$LINENO: result: no" >&5
21553 echo "${ECHO_T}no" >&6; }
21554 { echo "$as_me:$LINENO: checking gethostbyname_r with 3 args" >&5
21555 echo $ECHO_N "checking gethostbyname_r with 3 args... $ECHO_C" >&6; }
21556 cat >conftest.$ac_ext <<_ACEOF
21557 /* confdefs.h. */
21558 _ACEOF
21559 cat confdefs.h >>conftest.$ac_ext
21560 cat >>conftest.$ac_ext <<_ACEOF
21561 /* end confdefs.h. */
21563 # include <netdb.h>
21566 main ()
21569 char *name;
21570 struct hostent *he;
21571 struct hostent_data data;
21573 (void) gethostbyname_r(name, he, &data);
21576 return 0;
21578 _ACEOF
21579 rm -f conftest.$ac_objext
21580 if { (ac_try="$ac_compile"
21581 case "(($ac_try" in
21582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21583 *) ac_try_echo=$ac_try;;
21584 esac
21585 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21586 (eval "$ac_compile") 2>conftest.er1
21587 ac_status=$?
21588 grep -v '^ *+' conftest.er1 >conftest.err
21589 rm -f conftest.er1
21590 cat conftest.err >&5
21591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21592 (exit $ac_status); } && {
21593 test -z "$ac_c_werror_flag" ||
21594 test ! -s conftest.err
21595 } && test -s conftest.$ac_objext; then
21597 cat >>confdefs.h <<\_ACEOF
21598 #define HAVE_GETHOSTBYNAME_R 1
21599 _ACEOF
21602 cat >>confdefs.h <<\_ACEOF
21603 #define HAVE_GETHOSTBYNAME_R_3_ARG 1
21604 _ACEOF
21606 { echo "$as_me:$LINENO: result: yes" >&5
21607 echo "${ECHO_T}yes" >&6; }
21609 else
21610 echo "$as_me: failed program was:" >&5
21611 sed 's/^/| /' conftest.$ac_ext >&5
21614 { echo "$as_me:$LINENO: result: no" >&5
21615 echo "${ECHO_T}no" >&6; }
21619 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21623 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21627 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21628 CFLAGS=$OLD_CFLAGS
21630 else
21633 for ac_func in gethostbyname
21635 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21636 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21637 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21638 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21639 echo $ECHO_N "(cached) $ECHO_C" >&6
21640 else
21641 cat >conftest.$ac_ext <<_ACEOF
21642 /* confdefs.h. */
21643 _ACEOF
21644 cat confdefs.h >>conftest.$ac_ext
21645 cat >>conftest.$ac_ext <<_ACEOF
21646 /* end confdefs.h. */
21647 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21648 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21649 #define $ac_func innocuous_$ac_func
21651 /* System header to define __stub macros and hopefully few prototypes,
21652 which can conflict with char $ac_func (); below.
21653 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21654 <limits.h> exists even on freestanding compilers. */
21656 #ifdef __STDC__
21657 # include <limits.h>
21658 #else
21659 # include <assert.h>
21660 #endif
21662 #undef $ac_func
21664 /* Override any GCC internal prototype to avoid an error.
21665 Use char because int might match the return type of a GCC
21666 builtin and then its argument prototype would still apply. */
21667 #ifdef __cplusplus
21668 extern "C"
21669 #endif
21670 char $ac_func ();
21671 /* The GNU C library defines this for functions which it implements
21672 to always fail with ENOSYS. Some functions are actually named
21673 something starting with __ and the normal name is an alias. */
21674 #if defined __stub_$ac_func || defined __stub___$ac_func
21675 choke me
21676 #endif
21679 main ()
21681 return $ac_func ();
21683 return 0;
21685 _ACEOF
21686 rm -f conftest.$ac_objext conftest$ac_exeext
21687 if { (ac_try="$ac_link"
21688 case "(($ac_try" in
21689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21690 *) ac_try_echo=$ac_try;;
21691 esac
21692 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21693 (eval "$ac_link") 2>conftest.er1
21694 ac_status=$?
21695 grep -v '^ *+' conftest.er1 >conftest.err
21696 rm -f conftest.er1
21697 cat conftest.err >&5
21698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21699 (exit $ac_status); } && {
21700 test -z "$ac_c_werror_flag" ||
21701 test ! -s conftest.err
21702 } && test -s conftest$ac_exeext &&
21703 $as_test_x conftest$ac_exeext; then
21704 eval "$as_ac_var=yes"
21705 else
21706 echo "$as_me: failed program was:" >&5
21707 sed 's/^/| /' conftest.$ac_ext >&5
21709 eval "$as_ac_var=no"
21712 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21713 conftest$ac_exeext conftest.$ac_ext
21715 ac_res=`eval echo '${'$as_ac_var'}'`
21716 { echo "$as_me:$LINENO: result: $ac_res" >&5
21717 echo "${ECHO_T}$ac_res" >&6; }
21718 if test `eval echo '${'$as_ac_var'}'` = yes; then
21719 cat >>confdefs.h <<_ACEOF
21720 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21721 _ACEOF
21724 done
21735 # checks for system services
21736 # (none yet)
21738 # Linux requires this for correct f.p. operations
21739 { echo "$as_me:$LINENO: checking for __fpu_control" >&5
21740 echo $ECHO_N "checking for __fpu_control... $ECHO_C" >&6; }
21741 if test "${ac_cv_func___fpu_control+set}" = set; then
21742 echo $ECHO_N "(cached) $ECHO_C" >&6
21743 else
21744 cat >conftest.$ac_ext <<_ACEOF
21745 /* confdefs.h. */
21746 _ACEOF
21747 cat confdefs.h >>conftest.$ac_ext
21748 cat >>conftest.$ac_ext <<_ACEOF
21749 /* end confdefs.h. */
21750 /* Define __fpu_control to an innocuous variant, in case <limits.h> declares __fpu_control.
21751 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21752 #define __fpu_control innocuous___fpu_control
21754 /* System header to define __stub macros and hopefully few prototypes,
21755 which can conflict with char __fpu_control (); below.
21756 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21757 <limits.h> exists even on freestanding compilers. */
21759 #ifdef __STDC__
21760 # include <limits.h>
21761 #else
21762 # include <assert.h>
21763 #endif
21765 #undef __fpu_control
21767 /* Override any GCC internal prototype to avoid an error.
21768 Use char because int might match the return type of a GCC
21769 builtin and then its argument prototype would still apply. */
21770 #ifdef __cplusplus
21771 extern "C"
21772 #endif
21773 char __fpu_control ();
21774 /* The GNU C library defines this for functions which it implements
21775 to always fail with ENOSYS. Some functions are actually named
21776 something starting with __ and the normal name is an alias. */
21777 #if defined __stub___fpu_control || defined __stub_____fpu_control
21778 choke me
21779 #endif
21782 main ()
21784 return __fpu_control ();
21786 return 0;
21788 _ACEOF
21789 rm -f conftest.$ac_objext conftest$ac_exeext
21790 if { (ac_try="$ac_link"
21791 case "(($ac_try" in
21792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21793 *) ac_try_echo=$ac_try;;
21794 esac
21795 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21796 (eval "$ac_link") 2>conftest.er1
21797 ac_status=$?
21798 grep -v '^ *+' conftest.er1 >conftest.err
21799 rm -f conftest.er1
21800 cat conftest.err >&5
21801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21802 (exit $ac_status); } && {
21803 test -z "$ac_c_werror_flag" ||
21804 test ! -s conftest.err
21805 } && test -s conftest$ac_exeext &&
21806 $as_test_x conftest$ac_exeext; then
21807 ac_cv_func___fpu_control=yes
21808 else
21809 echo "$as_me: failed program was:" >&5
21810 sed 's/^/| /' conftest.$ac_ext >&5
21812 ac_cv_func___fpu_control=no
21815 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21816 conftest$ac_exeext conftest.$ac_ext
21818 { echo "$as_me:$LINENO: result: $ac_cv_func___fpu_control" >&5
21819 echo "${ECHO_T}$ac_cv_func___fpu_control" >&6; }
21820 if test $ac_cv_func___fpu_control = yes; then
21822 else
21824 { echo "$as_me:$LINENO: checking for __fpu_control in -lieee" >&5
21825 echo $ECHO_N "checking for __fpu_control in -lieee... $ECHO_C" >&6; }
21826 if test "${ac_cv_lib_ieee___fpu_control+set}" = set; then
21827 echo $ECHO_N "(cached) $ECHO_C" >&6
21828 else
21829 ac_check_lib_save_LIBS=$LIBS
21830 LIBS="-lieee $LIBS"
21831 cat >conftest.$ac_ext <<_ACEOF
21832 /* confdefs.h. */
21833 _ACEOF
21834 cat confdefs.h >>conftest.$ac_ext
21835 cat >>conftest.$ac_ext <<_ACEOF
21836 /* end confdefs.h. */
21838 /* Override any GCC internal prototype to avoid an error.
21839 Use char because int might match the return type of a GCC
21840 builtin and then its argument prototype would still apply. */
21841 #ifdef __cplusplus
21842 extern "C"
21843 #endif
21844 char __fpu_control ();
21846 main ()
21848 return __fpu_control ();
21850 return 0;
21852 _ACEOF
21853 rm -f conftest.$ac_objext conftest$ac_exeext
21854 if { (ac_try="$ac_link"
21855 case "(($ac_try" in
21856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21857 *) ac_try_echo=$ac_try;;
21858 esac
21859 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21860 (eval "$ac_link") 2>conftest.er1
21861 ac_status=$?
21862 grep -v '^ *+' conftest.er1 >conftest.err
21863 rm -f conftest.er1
21864 cat conftest.err >&5
21865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21866 (exit $ac_status); } && {
21867 test -z "$ac_c_werror_flag" ||
21868 test ! -s conftest.err
21869 } && test -s conftest$ac_exeext &&
21870 $as_test_x conftest$ac_exeext; then
21871 ac_cv_lib_ieee___fpu_control=yes
21872 else
21873 echo "$as_me: failed program was:" >&5
21874 sed 's/^/| /' conftest.$ac_ext >&5
21876 ac_cv_lib_ieee___fpu_control=no
21879 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21880 conftest$ac_exeext conftest.$ac_ext
21881 LIBS=$ac_check_lib_save_LIBS
21883 { echo "$as_me:$LINENO: result: $ac_cv_lib_ieee___fpu_control" >&5
21884 echo "${ECHO_T}$ac_cv_lib_ieee___fpu_control" >&6; }
21885 if test $ac_cv_lib_ieee___fpu_control = yes; then
21886 cat >>confdefs.h <<_ACEOF
21887 #define HAVE_LIBIEEE 1
21888 _ACEOF
21890 LIBS="-lieee $LIBS"
21898 # Check for --with-fpectl
21899 { echo "$as_me:$LINENO: checking for --with-fpectl" >&5
21900 echo $ECHO_N "checking for --with-fpectl... $ECHO_C" >&6; }
21902 # Check whether --with-fpectl was given.
21903 if test "${with_fpectl+set}" = set; then
21904 withval=$with_fpectl;
21905 if test "$withval" != no
21906 then
21908 cat >>confdefs.h <<\_ACEOF
21909 #define WANT_SIGFPE_HANDLER 1
21910 _ACEOF
21912 { echo "$as_me:$LINENO: result: yes" >&5
21913 echo "${ECHO_T}yes" >&6; }
21914 else { echo "$as_me:$LINENO: result: no" >&5
21915 echo "${ECHO_T}no" >&6; }
21917 else
21918 { echo "$as_me:$LINENO: result: no" >&5
21919 echo "${ECHO_T}no" >&6; }
21923 # check for --with-libm=...
21925 case $ac_sys_system in
21926 Darwin) ;;
21927 BeOS) ;;
21928 *) LIBM=-lm
21929 esac
21930 { echo "$as_me:$LINENO: checking for --with-libm=STRING" >&5
21931 echo $ECHO_N "checking for --with-libm=STRING... $ECHO_C" >&6; }
21933 # Check whether --with-libm was given.
21934 if test "${with_libm+set}" = set; then
21935 withval=$with_libm;
21936 if test "$withval" = no
21937 then LIBM=
21938 { echo "$as_me:$LINENO: result: force LIBM empty" >&5
21939 echo "${ECHO_T}force LIBM empty" >&6; }
21940 elif test "$withval" != yes
21941 then LIBM=$withval
21942 { echo "$as_me:$LINENO: result: set LIBM=\"$withval\"" >&5
21943 echo "${ECHO_T}set LIBM=\"$withval\"" >&6; }
21944 else { { echo "$as_me:$LINENO: error: proper usage is --with-libm=STRING" >&5
21945 echo "$as_me: error: proper usage is --with-libm=STRING" >&2;}
21946 { (exit 1); exit 1; }; }
21948 else
21949 { echo "$as_me:$LINENO: result: default LIBM=\"$LIBM\"" >&5
21950 echo "${ECHO_T}default LIBM=\"$LIBM\"" >&6; }
21954 # check for --with-libc=...
21956 { echo "$as_me:$LINENO: checking for --with-libc=STRING" >&5
21957 echo $ECHO_N "checking for --with-libc=STRING... $ECHO_C" >&6; }
21959 # Check whether --with-libc was given.
21960 if test "${with_libc+set}" = set; then
21961 withval=$with_libc;
21962 if test "$withval" = no
21963 then LIBC=
21964 { echo "$as_me:$LINENO: result: force LIBC empty" >&5
21965 echo "${ECHO_T}force LIBC empty" >&6; }
21966 elif test "$withval" != yes
21967 then LIBC=$withval
21968 { echo "$as_me:$LINENO: result: set LIBC=\"$withval\"" >&5
21969 echo "${ECHO_T}set LIBC=\"$withval\"" >&6; }
21970 else { { echo "$as_me:$LINENO: error: proper usage is --with-libc=STRING" >&5
21971 echo "$as_me: error: proper usage is --with-libc=STRING" >&2;}
21972 { (exit 1); exit 1; }; }
21974 else
21975 { echo "$as_me:$LINENO: result: default LIBC=\"$LIBC\"" >&5
21976 echo "${ECHO_T}default LIBC=\"$LIBC\"" >&6; }
21980 # ************************************
21981 # * Check for mathematical functions *
21982 # ************************************
21984 LIBS_SAVE=$LIBS
21985 LIBS="$LIBS $LIBM"
21987 # Detect whether system arithmetic is subject to x87-style double
21988 # rounding issues. The result of this test has little meaning on non
21989 # IEEE 754 platforms. On IEEE 754, test should return 1 if rounding
21990 # mode is round-to-nearest and double rounding issues are present, and
21991 # 0 otherwise. See http://bugs.python.org/issue2937 for more info.
21992 { echo "$as_me:$LINENO: checking for x87-style double rounding" >&5
21993 echo $ECHO_N "checking for x87-style double rounding... $ECHO_C" >&6; }
21994 if test "${ac_cv_x87_double_rounding+set}" = set; then
21995 echo $ECHO_N "(cached) $ECHO_C" >&6
21996 else
21998 if test "$cross_compiling" = yes; then
21999 ac_cv_x87_double_rounding=no
22000 else
22001 cat >conftest.$ac_ext <<_ACEOF
22002 /* confdefs.h. */
22003 _ACEOF
22004 cat confdefs.h >>conftest.$ac_ext
22005 cat >>conftest.$ac_ext <<_ACEOF
22006 /* end confdefs.h. */
22008 #include <stdlib.h>
22009 #include <math.h>
22010 int main() {
22011 volatile double x, y, z;
22012 /* 1./(1-2**-53) -> 1+2**-52 (correct), 1.0 (double rounding) */
22013 x = 0.99999999999999989; /* 1-2**-53 */
22014 y = 1./x;
22015 if (y != 1.)
22016 exit(0);
22017 /* 1e16+2.99999 -> 1e16+2. (correct), 1e16+4. (double rounding) */
22018 x = 1e16;
22019 y = 2.99999;
22020 z = x + y;
22021 if (z != 1e16+4.)
22022 exit(0);
22023 /* both tests show evidence of double rounding */
22024 exit(1);
22027 _ACEOF
22028 rm -f conftest$ac_exeext
22029 if { (ac_try="$ac_link"
22030 case "(($ac_try" in
22031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22032 *) ac_try_echo=$ac_try;;
22033 esac
22034 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22035 (eval "$ac_link") 2>&5
22036 ac_status=$?
22037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22038 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22039 { (case "(($ac_try" in
22040 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22041 *) ac_try_echo=$ac_try;;
22042 esac
22043 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22044 (eval "$ac_try") 2>&5
22045 ac_status=$?
22046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22047 (exit $ac_status); }; }; then
22048 ac_cv_x87_double_rounding=no
22049 else
22050 echo "$as_me: program exited with status $ac_status" >&5
22051 echo "$as_me: failed program was:" >&5
22052 sed 's/^/| /' conftest.$ac_ext >&5
22054 ( exit $ac_status )
22055 ac_cv_x87_double_rounding=yes
22057 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22063 { echo "$as_me:$LINENO: result: $ac_cv_x87_double_rounding" >&5
22064 echo "${ECHO_T}$ac_cv_x87_double_rounding" >&6; }
22065 if test "$ac_cv_x87_double_rounding" = yes
22066 then
22068 cat >>confdefs.h <<\_ACEOF
22069 #define X87_DOUBLE_ROUNDING 1
22070 _ACEOF
22074 # Multiprocessing check for broken sem_getvalue
22075 { echo "$as_me:$LINENO: checking for broken sem_getvalue" >&5
22076 echo $ECHO_N "checking for broken sem_getvalue... $ECHO_C" >&6; }
22077 if test "$cross_compiling" = yes; then
22078 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
22079 See \`config.log' for more details." >&5
22080 echo "$as_me: error: cannot run test program while cross compiling
22081 See \`config.log' for more details." >&2;}
22082 { (exit 1); exit 1; }; }
22083 else
22084 cat >conftest.$ac_ext <<_ACEOF
22085 /* confdefs.h. */
22086 _ACEOF
22087 cat confdefs.h >>conftest.$ac_ext
22088 cat >>conftest.$ac_ext <<_ACEOF
22089 /* end confdefs.h. */
22091 #include <unistd.h>
22092 #include <fcntl.h>
22093 #include <stdio.h>
22094 #include <semaphore.h>
22095 #include <sys/stat.h>
22097 int main(void){
22098 sem_t *a = sem_open("/autoconf", O_CREAT, S_IRUSR|S_IWUSR, 0);
22099 int count;
22100 int res;
22101 if(a==SEM_FAILED){
22102 perror("sem_open");
22103 return 1;
22106 res = sem_getvalue(a, &count);
22107 sem_close(a);
22108 return res==-1 ? 1 : 0;
22112 _ACEOF
22113 rm -f conftest$ac_exeext
22114 if { (ac_try="$ac_link"
22115 case "(($ac_try" in
22116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22117 *) ac_try_echo=$ac_try;;
22118 esac
22119 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22120 (eval "$ac_link") 2>&5
22121 ac_status=$?
22122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22123 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22124 { (case "(($ac_try" in
22125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22126 *) ac_try_echo=$ac_try;;
22127 esac
22128 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22129 (eval "$ac_try") 2>&5
22130 ac_status=$?
22131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22132 (exit $ac_status); }; }; then
22133 { echo "$as_me:$LINENO: result: no" >&5
22134 echo "${ECHO_T}no" >&6; }
22135 else
22136 echo "$as_me: program exited with status $ac_status" >&5
22137 echo "$as_me: failed program was:" >&5
22138 sed 's/^/| /' conftest.$ac_ext >&5
22140 ( exit $ac_status )
22141 { echo "$as_me:$LINENO: result: yes" >&5
22142 echo "${ECHO_T}yes" >&6; }
22144 cat >>confdefs.h <<\_ACEOF
22145 #define HAVE_BROKEN_SEM_GETVALUE 1
22146 _ACEOF
22150 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22155 # On FreeBSD 6.2, it appears that tanh(-0.) returns 0. instead of
22156 # -0. on some architectures.
22157 { echo "$as_me:$LINENO: checking whether tanh preserves the sign of zero" >&5
22158 echo $ECHO_N "checking whether tanh preserves the sign of zero... $ECHO_C" >&6; }
22159 if test "${ac_cv_tanh_preserves_zero_sign+set}" = set; then
22160 echo $ECHO_N "(cached) $ECHO_C" >&6
22161 else
22163 if test "$cross_compiling" = yes; then
22164 ac_cv_tanh_preserves_zero_sign=no
22165 else
22166 cat >conftest.$ac_ext <<_ACEOF
22167 /* confdefs.h. */
22168 _ACEOF
22169 cat confdefs.h >>conftest.$ac_ext
22170 cat >>conftest.$ac_ext <<_ACEOF
22171 /* end confdefs.h. */
22173 #include <math.h>
22174 #include <stdlib.h>
22175 int main() {
22176 /* return 0 if either negative zeros don't exist
22177 on this platform or if negative zeros exist
22178 and tanh(-0.) == -0. */
22179 if (atan2(0., -1.) == atan2(-0., -1.) ||
22180 atan2(tanh(-0.), -1.) == atan2(-0., -1.)) exit(0);
22181 else exit(1);
22184 _ACEOF
22185 rm -f conftest$ac_exeext
22186 if { (ac_try="$ac_link"
22187 case "(($ac_try" in
22188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22189 *) ac_try_echo=$ac_try;;
22190 esac
22191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22192 (eval "$ac_link") 2>&5
22193 ac_status=$?
22194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22195 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22196 { (case "(($ac_try" in
22197 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22198 *) ac_try_echo=$ac_try;;
22199 esac
22200 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22201 (eval "$ac_try") 2>&5
22202 ac_status=$?
22203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22204 (exit $ac_status); }; }; then
22205 ac_cv_tanh_preserves_zero_sign=yes
22206 else
22207 echo "$as_me: program exited with status $ac_status" >&5
22208 echo "$as_me: failed program was:" >&5
22209 sed 's/^/| /' conftest.$ac_ext >&5
22211 ( exit $ac_status )
22212 ac_cv_tanh_preserves_zero_sign=no
22214 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22220 { echo "$as_me:$LINENO: result: $ac_cv_tanh_preserves_zero_sign" >&5
22221 echo "${ECHO_T}$ac_cv_tanh_preserves_zero_sign" >&6; }
22222 if test "$ac_cv_tanh_preserves_zero_sign" = yes
22223 then
22225 cat >>confdefs.h <<\_ACEOF
22226 #define TANH_PRESERVES_ZERO_SIGN 1
22227 _ACEOF
22240 for ac_func in acosh asinh atanh copysign expm1 finite hypot log1p round
22242 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22243 { echo "$as_me:$LINENO: checking for $ac_func" >&5
22244 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22245 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22246 echo $ECHO_N "(cached) $ECHO_C" >&6
22247 else
22248 cat >conftest.$ac_ext <<_ACEOF
22249 /* confdefs.h. */
22250 _ACEOF
22251 cat confdefs.h >>conftest.$ac_ext
22252 cat >>conftest.$ac_ext <<_ACEOF
22253 /* end confdefs.h. */
22254 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22255 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22256 #define $ac_func innocuous_$ac_func
22258 /* System header to define __stub macros and hopefully few prototypes,
22259 which can conflict with char $ac_func (); below.
22260 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22261 <limits.h> exists even on freestanding compilers. */
22263 #ifdef __STDC__
22264 # include <limits.h>
22265 #else
22266 # include <assert.h>
22267 #endif
22269 #undef $ac_func
22271 /* Override any GCC internal prototype to avoid an error.
22272 Use char because int might match the return type of a GCC
22273 builtin and then its argument prototype would still apply. */
22274 #ifdef __cplusplus
22275 extern "C"
22276 #endif
22277 char $ac_func ();
22278 /* The GNU C library defines this for functions which it implements
22279 to always fail with ENOSYS. Some functions are actually named
22280 something starting with __ and the normal name is an alias. */
22281 #if defined __stub_$ac_func || defined __stub___$ac_func
22282 choke me
22283 #endif
22286 main ()
22288 return $ac_func ();
22290 return 0;
22292 _ACEOF
22293 rm -f conftest.$ac_objext conftest$ac_exeext
22294 if { (ac_try="$ac_link"
22295 case "(($ac_try" in
22296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22297 *) ac_try_echo=$ac_try;;
22298 esac
22299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22300 (eval "$ac_link") 2>conftest.er1
22301 ac_status=$?
22302 grep -v '^ *+' conftest.er1 >conftest.err
22303 rm -f conftest.er1
22304 cat conftest.err >&5
22305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22306 (exit $ac_status); } && {
22307 test -z "$ac_c_werror_flag" ||
22308 test ! -s conftest.err
22309 } && test -s conftest$ac_exeext &&
22310 $as_test_x conftest$ac_exeext; then
22311 eval "$as_ac_var=yes"
22312 else
22313 echo "$as_me: failed program was:" >&5
22314 sed 's/^/| /' conftest.$ac_ext >&5
22316 eval "$as_ac_var=no"
22319 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22320 conftest$ac_exeext conftest.$ac_ext
22322 ac_res=`eval echo '${'$as_ac_var'}'`
22323 { echo "$as_me:$LINENO: result: $ac_res" >&5
22324 echo "${ECHO_T}$ac_res" >&6; }
22325 if test `eval echo '${'$as_ac_var'}'` = yes; then
22326 cat >>confdefs.h <<_ACEOF
22327 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22328 _ACEOF
22331 done
22333 { echo "$as_me:$LINENO: checking whether isinf is declared" >&5
22334 echo $ECHO_N "checking whether isinf is declared... $ECHO_C" >&6; }
22335 if test "${ac_cv_have_decl_isinf+set}" = set; then
22336 echo $ECHO_N "(cached) $ECHO_C" >&6
22337 else
22338 cat >conftest.$ac_ext <<_ACEOF
22339 /* confdefs.h. */
22340 _ACEOF
22341 cat confdefs.h >>conftest.$ac_ext
22342 cat >>conftest.$ac_ext <<_ACEOF
22343 /* end confdefs.h. */
22344 #include <math.h>
22347 main ()
22349 #ifndef isinf
22350 (void) isinf;
22351 #endif
22354 return 0;
22356 _ACEOF
22357 rm -f conftest.$ac_objext
22358 if { (ac_try="$ac_compile"
22359 case "(($ac_try" in
22360 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22361 *) ac_try_echo=$ac_try;;
22362 esac
22363 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22364 (eval "$ac_compile") 2>conftest.er1
22365 ac_status=$?
22366 grep -v '^ *+' conftest.er1 >conftest.err
22367 rm -f conftest.er1
22368 cat conftest.err >&5
22369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22370 (exit $ac_status); } && {
22371 test -z "$ac_c_werror_flag" ||
22372 test ! -s conftest.err
22373 } && test -s conftest.$ac_objext; then
22374 ac_cv_have_decl_isinf=yes
22375 else
22376 echo "$as_me: failed program was:" >&5
22377 sed 's/^/| /' conftest.$ac_ext >&5
22379 ac_cv_have_decl_isinf=no
22382 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22384 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_isinf" >&5
22385 echo "${ECHO_T}$ac_cv_have_decl_isinf" >&6; }
22386 if test $ac_cv_have_decl_isinf = yes; then
22388 cat >>confdefs.h <<_ACEOF
22389 #define HAVE_DECL_ISINF 1
22390 _ACEOF
22393 else
22394 cat >>confdefs.h <<_ACEOF
22395 #define HAVE_DECL_ISINF 0
22396 _ACEOF
22400 { echo "$as_me:$LINENO: checking whether isnan is declared" >&5
22401 echo $ECHO_N "checking whether isnan is declared... $ECHO_C" >&6; }
22402 if test "${ac_cv_have_decl_isnan+set}" = set; then
22403 echo $ECHO_N "(cached) $ECHO_C" >&6
22404 else
22405 cat >conftest.$ac_ext <<_ACEOF
22406 /* confdefs.h. */
22407 _ACEOF
22408 cat confdefs.h >>conftest.$ac_ext
22409 cat >>conftest.$ac_ext <<_ACEOF
22410 /* end confdefs.h. */
22411 #include <math.h>
22414 main ()
22416 #ifndef isnan
22417 (void) isnan;
22418 #endif
22421 return 0;
22423 _ACEOF
22424 rm -f conftest.$ac_objext
22425 if { (ac_try="$ac_compile"
22426 case "(($ac_try" in
22427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22428 *) ac_try_echo=$ac_try;;
22429 esac
22430 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22431 (eval "$ac_compile") 2>conftest.er1
22432 ac_status=$?
22433 grep -v '^ *+' conftest.er1 >conftest.err
22434 rm -f conftest.er1
22435 cat conftest.err >&5
22436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22437 (exit $ac_status); } && {
22438 test -z "$ac_c_werror_flag" ||
22439 test ! -s conftest.err
22440 } && test -s conftest.$ac_objext; then
22441 ac_cv_have_decl_isnan=yes
22442 else
22443 echo "$as_me: failed program was:" >&5
22444 sed 's/^/| /' conftest.$ac_ext >&5
22446 ac_cv_have_decl_isnan=no
22449 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22451 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_isnan" >&5
22452 echo "${ECHO_T}$ac_cv_have_decl_isnan" >&6; }
22453 if test $ac_cv_have_decl_isnan = yes; then
22455 cat >>confdefs.h <<_ACEOF
22456 #define HAVE_DECL_ISNAN 1
22457 _ACEOF
22460 else
22461 cat >>confdefs.h <<_ACEOF
22462 #define HAVE_DECL_ISNAN 0
22463 _ACEOF
22467 { echo "$as_me:$LINENO: checking whether isfinite is declared" >&5
22468 echo $ECHO_N "checking whether isfinite is declared... $ECHO_C" >&6; }
22469 if test "${ac_cv_have_decl_isfinite+set}" = set; then
22470 echo $ECHO_N "(cached) $ECHO_C" >&6
22471 else
22472 cat >conftest.$ac_ext <<_ACEOF
22473 /* confdefs.h. */
22474 _ACEOF
22475 cat confdefs.h >>conftest.$ac_ext
22476 cat >>conftest.$ac_ext <<_ACEOF
22477 /* end confdefs.h. */
22478 #include <math.h>
22481 main ()
22483 #ifndef isfinite
22484 (void) isfinite;
22485 #endif
22488 return 0;
22490 _ACEOF
22491 rm -f conftest.$ac_objext
22492 if { (ac_try="$ac_compile"
22493 case "(($ac_try" in
22494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22495 *) ac_try_echo=$ac_try;;
22496 esac
22497 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22498 (eval "$ac_compile") 2>conftest.er1
22499 ac_status=$?
22500 grep -v '^ *+' conftest.er1 >conftest.err
22501 rm -f conftest.er1
22502 cat conftest.err >&5
22503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22504 (exit $ac_status); } && {
22505 test -z "$ac_c_werror_flag" ||
22506 test ! -s conftest.err
22507 } && test -s conftest.$ac_objext; then
22508 ac_cv_have_decl_isfinite=yes
22509 else
22510 echo "$as_me: failed program was:" >&5
22511 sed 's/^/| /' conftest.$ac_ext >&5
22513 ac_cv_have_decl_isfinite=no
22516 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22518 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_isfinite" >&5
22519 echo "${ECHO_T}$ac_cv_have_decl_isfinite" >&6; }
22520 if test $ac_cv_have_decl_isfinite = yes; then
22522 cat >>confdefs.h <<_ACEOF
22523 #define HAVE_DECL_ISFINITE 1
22524 _ACEOF
22527 else
22528 cat >>confdefs.h <<_ACEOF
22529 #define HAVE_DECL_ISFINITE 0
22530 _ACEOF
22537 LIBS=$LIBS_SAVE
22539 # determine what size digit to use for Python's longs
22540 { echo "$as_me:$LINENO: checking digit size for Python's longs" >&5
22541 echo $ECHO_N "checking digit size for Python's longs... $ECHO_C" >&6; }
22542 # Check whether --enable-big-digits was given.
22543 if test "${enable_big_digits+set}" = set; then
22544 enableval=$enable_big_digits; case $enable_big_digits in
22545 yes)
22546 enable_big_digits=30 ;;
22548 enable_big_digits=15 ;;
22549 15|30)
22552 { { echo "$as_me:$LINENO: error: bad value $enable_big_digits for --enable-big-digits; value should be 15 or 30" >&5
22553 echo "$as_me: error: bad value $enable_big_digits for --enable-big-digits; value should be 15 or 30" >&2;}
22554 { (exit 1); exit 1; }; } ;;
22555 esac
22556 { echo "$as_me:$LINENO: result: $enable_big_digits" >&5
22557 echo "${ECHO_T}$enable_big_digits" >&6; }
22559 cat >>confdefs.h <<_ACEOF
22560 #define PYLONG_BITS_IN_DIGIT $enable_big_digits
22561 _ACEOF
22564 else
22565 { echo "$as_me:$LINENO: result: no value specified" >&5
22566 echo "${ECHO_T}no value specified" >&6; }
22570 # check for wchar.h
22571 if test "${ac_cv_header_wchar_h+set}" = set; then
22572 { echo "$as_me:$LINENO: checking for wchar.h" >&5
22573 echo $ECHO_N "checking for wchar.h... $ECHO_C" >&6; }
22574 if test "${ac_cv_header_wchar_h+set}" = set; then
22575 echo $ECHO_N "(cached) $ECHO_C" >&6
22577 { echo "$as_me:$LINENO: result: $ac_cv_header_wchar_h" >&5
22578 echo "${ECHO_T}$ac_cv_header_wchar_h" >&6; }
22579 else
22580 # Is the header compilable?
22581 { echo "$as_me:$LINENO: checking wchar.h usability" >&5
22582 echo $ECHO_N "checking wchar.h usability... $ECHO_C" >&6; }
22583 cat >conftest.$ac_ext <<_ACEOF
22584 /* confdefs.h. */
22585 _ACEOF
22586 cat confdefs.h >>conftest.$ac_ext
22587 cat >>conftest.$ac_ext <<_ACEOF
22588 /* end confdefs.h. */
22589 $ac_includes_default
22590 #include <wchar.h>
22591 _ACEOF
22592 rm -f conftest.$ac_objext
22593 if { (ac_try="$ac_compile"
22594 case "(($ac_try" in
22595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22596 *) ac_try_echo=$ac_try;;
22597 esac
22598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22599 (eval "$ac_compile") 2>conftest.er1
22600 ac_status=$?
22601 grep -v '^ *+' conftest.er1 >conftest.err
22602 rm -f conftest.er1
22603 cat conftest.err >&5
22604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22605 (exit $ac_status); } && {
22606 test -z "$ac_c_werror_flag" ||
22607 test ! -s conftest.err
22608 } && test -s conftest.$ac_objext; then
22609 ac_header_compiler=yes
22610 else
22611 echo "$as_me: failed program was:" >&5
22612 sed 's/^/| /' conftest.$ac_ext >&5
22614 ac_header_compiler=no
22617 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22618 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22619 echo "${ECHO_T}$ac_header_compiler" >&6; }
22621 # Is the header present?
22622 { echo "$as_me:$LINENO: checking wchar.h presence" >&5
22623 echo $ECHO_N "checking wchar.h presence... $ECHO_C" >&6; }
22624 cat >conftest.$ac_ext <<_ACEOF
22625 /* confdefs.h. */
22626 _ACEOF
22627 cat confdefs.h >>conftest.$ac_ext
22628 cat >>conftest.$ac_ext <<_ACEOF
22629 /* end confdefs.h. */
22630 #include <wchar.h>
22631 _ACEOF
22632 if { (ac_try="$ac_cpp conftest.$ac_ext"
22633 case "(($ac_try" in
22634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22635 *) ac_try_echo=$ac_try;;
22636 esac
22637 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22638 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22639 ac_status=$?
22640 grep -v '^ *+' conftest.er1 >conftest.err
22641 rm -f conftest.er1
22642 cat conftest.err >&5
22643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22644 (exit $ac_status); } >/dev/null && {
22645 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22646 test ! -s conftest.err
22647 }; then
22648 ac_header_preproc=yes
22649 else
22650 echo "$as_me: failed program was:" >&5
22651 sed 's/^/| /' conftest.$ac_ext >&5
22653 ac_header_preproc=no
22656 rm -f conftest.err conftest.$ac_ext
22657 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22658 echo "${ECHO_T}$ac_header_preproc" >&6; }
22660 # So? What about this header?
22661 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22662 yes:no: )
22663 { echo "$as_me:$LINENO: WARNING: wchar.h: accepted by the compiler, rejected by the preprocessor!" >&5
22664 echo "$as_me: WARNING: wchar.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22665 { echo "$as_me:$LINENO: WARNING: wchar.h: proceeding with the compiler's result" >&5
22666 echo "$as_me: WARNING: wchar.h: proceeding with the compiler's result" >&2;}
22667 ac_header_preproc=yes
22669 no:yes:* )
22670 { echo "$as_me:$LINENO: WARNING: wchar.h: present but cannot be compiled" >&5
22671 echo "$as_me: WARNING: wchar.h: present but cannot be compiled" >&2;}
22672 { echo "$as_me:$LINENO: WARNING: wchar.h: check for missing prerequisite headers?" >&5
22673 echo "$as_me: WARNING: wchar.h: check for missing prerequisite headers?" >&2;}
22674 { echo "$as_me:$LINENO: WARNING: wchar.h: see the Autoconf documentation" >&5
22675 echo "$as_me: WARNING: wchar.h: see the Autoconf documentation" >&2;}
22676 { echo "$as_me:$LINENO: WARNING: wchar.h: section \"Present But Cannot Be Compiled\"" >&5
22677 echo "$as_me: WARNING: wchar.h: section \"Present But Cannot Be Compiled\"" >&2;}
22678 { echo "$as_me:$LINENO: WARNING: wchar.h: proceeding with the preprocessor's result" >&5
22679 echo "$as_me: WARNING: wchar.h: proceeding with the preprocessor's result" >&2;}
22680 { echo "$as_me:$LINENO: WARNING: wchar.h: in the future, the compiler will take precedence" >&5
22681 echo "$as_me: WARNING: wchar.h: in the future, the compiler will take precedence" >&2;}
22682 ( cat <<\_ASBOX
22683 ## -------------------------------------- ##
22684 ## Report this to http://bugs.python.org/ ##
22685 ## -------------------------------------- ##
22686 _ASBOX
22687 ) | sed "s/^/$as_me: WARNING: /" >&2
22689 esac
22690 { echo "$as_me:$LINENO: checking for wchar.h" >&5
22691 echo $ECHO_N "checking for wchar.h... $ECHO_C" >&6; }
22692 if test "${ac_cv_header_wchar_h+set}" = set; then
22693 echo $ECHO_N "(cached) $ECHO_C" >&6
22694 else
22695 ac_cv_header_wchar_h=$ac_header_preproc
22697 { echo "$as_me:$LINENO: result: $ac_cv_header_wchar_h" >&5
22698 echo "${ECHO_T}$ac_cv_header_wchar_h" >&6; }
22701 if test $ac_cv_header_wchar_h = yes; then
22704 cat >>confdefs.h <<\_ACEOF
22705 #define HAVE_WCHAR_H 1
22706 _ACEOF
22708 wchar_h="yes"
22710 else
22711 wchar_h="no"
22717 # determine wchar_t size
22718 if test "$wchar_h" = yes
22719 then
22720 { echo "$as_me:$LINENO: checking for wchar_t" >&5
22721 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6; }
22722 if test "${ac_cv_type_wchar_t+set}" = set; then
22723 echo $ECHO_N "(cached) $ECHO_C" >&6
22724 else
22725 cat >conftest.$ac_ext <<_ACEOF
22726 /* confdefs.h. */
22727 _ACEOF
22728 cat confdefs.h >>conftest.$ac_ext
22729 cat >>conftest.$ac_ext <<_ACEOF
22730 /* end confdefs.h. */
22731 #include <wchar.h>
22733 typedef wchar_t ac__type_new_;
22735 main ()
22737 if ((ac__type_new_ *) 0)
22738 return 0;
22739 if (sizeof (ac__type_new_))
22740 return 0;
22742 return 0;
22744 _ACEOF
22745 rm -f conftest.$ac_objext
22746 if { (ac_try="$ac_compile"
22747 case "(($ac_try" in
22748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22749 *) ac_try_echo=$ac_try;;
22750 esac
22751 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22752 (eval "$ac_compile") 2>conftest.er1
22753 ac_status=$?
22754 grep -v '^ *+' conftest.er1 >conftest.err
22755 rm -f conftest.er1
22756 cat conftest.err >&5
22757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22758 (exit $ac_status); } && {
22759 test -z "$ac_c_werror_flag" ||
22760 test ! -s conftest.err
22761 } && test -s conftest.$ac_objext; then
22762 ac_cv_type_wchar_t=yes
22763 else
22764 echo "$as_me: failed program was:" >&5
22765 sed 's/^/| /' conftest.$ac_ext >&5
22767 ac_cv_type_wchar_t=no
22770 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22772 { echo "$as_me:$LINENO: result: $ac_cv_type_wchar_t" >&5
22773 echo "${ECHO_T}$ac_cv_type_wchar_t" >&6; }
22775 # The cast to long int works around a bug in the HP C Compiler
22776 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22777 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22778 # This bug is HP SR number 8606223364.
22779 { echo "$as_me:$LINENO: checking size of wchar_t" >&5
22780 echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6; }
22781 if test "${ac_cv_sizeof_wchar_t+set}" = set; then
22782 echo $ECHO_N "(cached) $ECHO_C" >&6
22783 else
22784 if test "$cross_compiling" = yes; then
22785 # Depending upon the size, compute the lo and hi bounds.
22786 cat >conftest.$ac_ext <<_ACEOF
22787 /* confdefs.h. */
22788 _ACEOF
22789 cat confdefs.h >>conftest.$ac_ext
22790 cat >>conftest.$ac_ext <<_ACEOF
22791 /* end confdefs.h. */
22792 #include <wchar.h>
22794 typedef wchar_t ac__type_sizeof_;
22796 main ()
22798 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
22799 test_array [0] = 0
22802 return 0;
22804 _ACEOF
22805 rm -f conftest.$ac_objext
22806 if { (ac_try="$ac_compile"
22807 case "(($ac_try" in
22808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22809 *) ac_try_echo=$ac_try;;
22810 esac
22811 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22812 (eval "$ac_compile") 2>conftest.er1
22813 ac_status=$?
22814 grep -v '^ *+' conftest.er1 >conftest.err
22815 rm -f conftest.er1
22816 cat conftest.err >&5
22817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22818 (exit $ac_status); } && {
22819 test -z "$ac_c_werror_flag" ||
22820 test ! -s conftest.err
22821 } && test -s conftest.$ac_objext; then
22822 ac_lo=0 ac_mid=0
22823 while :; do
22824 cat >conftest.$ac_ext <<_ACEOF
22825 /* confdefs.h. */
22826 _ACEOF
22827 cat confdefs.h >>conftest.$ac_ext
22828 cat >>conftest.$ac_ext <<_ACEOF
22829 /* end confdefs.h. */
22830 #include <wchar.h>
22832 typedef wchar_t ac__type_sizeof_;
22834 main ()
22836 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
22837 test_array [0] = 0
22840 return 0;
22842 _ACEOF
22843 rm -f conftest.$ac_objext
22844 if { (ac_try="$ac_compile"
22845 case "(($ac_try" in
22846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22847 *) ac_try_echo=$ac_try;;
22848 esac
22849 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22850 (eval "$ac_compile") 2>conftest.er1
22851 ac_status=$?
22852 grep -v '^ *+' conftest.er1 >conftest.err
22853 rm -f conftest.er1
22854 cat conftest.err >&5
22855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22856 (exit $ac_status); } && {
22857 test -z "$ac_c_werror_flag" ||
22858 test ! -s conftest.err
22859 } && test -s conftest.$ac_objext; then
22860 ac_hi=$ac_mid; break
22861 else
22862 echo "$as_me: failed program was:" >&5
22863 sed 's/^/| /' conftest.$ac_ext >&5
22865 ac_lo=`expr $ac_mid + 1`
22866 if test $ac_lo -le $ac_mid; then
22867 ac_lo= ac_hi=
22868 break
22870 ac_mid=`expr 2 '*' $ac_mid + 1`
22873 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22874 done
22875 else
22876 echo "$as_me: failed program was:" >&5
22877 sed 's/^/| /' conftest.$ac_ext >&5
22879 cat >conftest.$ac_ext <<_ACEOF
22880 /* confdefs.h. */
22881 _ACEOF
22882 cat confdefs.h >>conftest.$ac_ext
22883 cat >>conftest.$ac_ext <<_ACEOF
22884 /* end confdefs.h. */
22885 #include <wchar.h>
22887 typedef wchar_t ac__type_sizeof_;
22889 main ()
22891 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
22892 test_array [0] = 0
22895 return 0;
22897 _ACEOF
22898 rm -f conftest.$ac_objext
22899 if { (ac_try="$ac_compile"
22900 case "(($ac_try" in
22901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22902 *) ac_try_echo=$ac_try;;
22903 esac
22904 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22905 (eval "$ac_compile") 2>conftest.er1
22906 ac_status=$?
22907 grep -v '^ *+' conftest.er1 >conftest.err
22908 rm -f conftest.er1
22909 cat conftest.err >&5
22910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22911 (exit $ac_status); } && {
22912 test -z "$ac_c_werror_flag" ||
22913 test ! -s conftest.err
22914 } && test -s conftest.$ac_objext; then
22915 ac_hi=-1 ac_mid=-1
22916 while :; do
22917 cat >conftest.$ac_ext <<_ACEOF
22918 /* confdefs.h. */
22919 _ACEOF
22920 cat confdefs.h >>conftest.$ac_ext
22921 cat >>conftest.$ac_ext <<_ACEOF
22922 /* end confdefs.h. */
22923 #include <wchar.h>
22925 typedef wchar_t ac__type_sizeof_;
22927 main ()
22929 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
22930 test_array [0] = 0
22933 return 0;
22935 _ACEOF
22936 rm -f conftest.$ac_objext
22937 if { (ac_try="$ac_compile"
22938 case "(($ac_try" in
22939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22940 *) ac_try_echo=$ac_try;;
22941 esac
22942 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22943 (eval "$ac_compile") 2>conftest.er1
22944 ac_status=$?
22945 grep -v '^ *+' conftest.er1 >conftest.err
22946 rm -f conftest.er1
22947 cat conftest.err >&5
22948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22949 (exit $ac_status); } && {
22950 test -z "$ac_c_werror_flag" ||
22951 test ! -s conftest.err
22952 } && test -s conftest.$ac_objext; then
22953 ac_lo=$ac_mid; break
22954 else
22955 echo "$as_me: failed program was:" >&5
22956 sed 's/^/| /' conftest.$ac_ext >&5
22958 ac_hi=`expr '(' $ac_mid ')' - 1`
22959 if test $ac_mid -le $ac_hi; then
22960 ac_lo= ac_hi=
22961 break
22963 ac_mid=`expr 2 '*' $ac_mid`
22966 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22967 done
22968 else
22969 echo "$as_me: failed program was:" >&5
22970 sed 's/^/| /' conftest.$ac_ext >&5
22972 ac_lo= ac_hi=
22975 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22978 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22979 # Binary search between lo and hi bounds.
22980 while test "x$ac_lo" != "x$ac_hi"; do
22981 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
22982 cat >conftest.$ac_ext <<_ACEOF
22983 /* confdefs.h. */
22984 _ACEOF
22985 cat confdefs.h >>conftest.$ac_ext
22986 cat >>conftest.$ac_ext <<_ACEOF
22987 /* end confdefs.h. */
22988 #include <wchar.h>
22990 typedef wchar_t ac__type_sizeof_;
22992 main ()
22994 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
22995 test_array [0] = 0
22998 return 0;
23000 _ACEOF
23001 rm -f conftest.$ac_objext
23002 if { (ac_try="$ac_compile"
23003 case "(($ac_try" in
23004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23005 *) ac_try_echo=$ac_try;;
23006 esac
23007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23008 (eval "$ac_compile") 2>conftest.er1
23009 ac_status=$?
23010 grep -v '^ *+' conftest.er1 >conftest.err
23011 rm -f conftest.er1
23012 cat conftest.err >&5
23013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23014 (exit $ac_status); } && {
23015 test -z "$ac_c_werror_flag" ||
23016 test ! -s conftest.err
23017 } && test -s conftest.$ac_objext; then
23018 ac_hi=$ac_mid
23019 else
23020 echo "$as_me: failed program was:" >&5
23021 sed 's/^/| /' conftest.$ac_ext >&5
23023 ac_lo=`expr '(' $ac_mid ')' + 1`
23026 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23027 done
23028 case $ac_lo in
23029 ?*) ac_cv_sizeof_wchar_t=$ac_lo;;
23030 '') if test "$ac_cv_type_wchar_t" = yes; then
23031 { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t)
23032 See \`config.log' for more details." >&5
23033 echo "$as_me: error: cannot compute sizeof (wchar_t)
23034 See \`config.log' for more details." >&2;}
23035 { (exit 77); exit 77; }; }
23036 else
23037 ac_cv_sizeof_wchar_t=0
23038 fi ;;
23039 esac
23040 else
23041 cat >conftest.$ac_ext <<_ACEOF
23042 /* confdefs.h. */
23043 _ACEOF
23044 cat confdefs.h >>conftest.$ac_ext
23045 cat >>conftest.$ac_ext <<_ACEOF
23046 /* end confdefs.h. */
23047 #include <wchar.h>
23049 typedef wchar_t ac__type_sizeof_;
23050 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
23051 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
23052 #include <stdio.h>
23053 #include <stdlib.h>
23055 main ()
23058 FILE *f = fopen ("conftest.val", "w");
23059 if (! f)
23060 return 1;
23061 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
23063 long int i = longval ();
23064 if (i != ((long int) (sizeof (ac__type_sizeof_))))
23065 return 1;
23066 fprintf (f, "%ld\n", i);
23068 else
23070 unsigned long int i = ulongval ();
23071 if (i != ((long int) (sizeof (ac__type_sizeof_))))
23072 return 1;
23073 fprintf (f, "%lu\n", i);
23075 return ferror (f) || fclose (f) != 0;
23078 return 0;
23080 _ACEOF
23081 rm -f conftest$ac_exeext
23082 if { (ac_try="$ac_link"
23083 case "(($ac_try" in
23084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23085 *) ac_try_echo=$ac_try;;
23086 esac
23087 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23088 (eval "$ac_link") 2>&5
23089 ac_status=$?
23090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23091 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23092 { (case "(($ac_try" in
23093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23094 *) ac_try_echo=$ac_try;;
23095 esac
23096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23097 (eval "$ac_try") 2>&5
23098 ac_status=$?
23099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23100 (exit $ac_status); }; }; then
23101 ac_cv_sizeof_wchar_t=`cat conftest.val`
23102 else
23103 echo "$as_me: program exited with status $ac_status" >&5
23104 echo "$as_me: failed program was:" >&5
23105 sed 's/^/| /' conftest.$ac_ext >&5
23107 ( exit $ac_status )
23108 if test "$ac_cv_type_wchar_t" = yes; then
23109 { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t)
23110 See \`config.log' for more details." >&5
23111 echo "$as_me: error: cannot compute sizeof (wchar_t)
23112 See \`config.log' for more details." >&2;}
23113 { (exit 77); exit 77; }; }
23114 else
23115 ac_cv_sizeof_wchar_t=0
23118 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23120 rm -f conftest.val
23122 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_wchar_t" >&5
23123 echo "${ECHO_T}$ac_cv_sizeof_wchar_t" >&6; }
23127 cat >>confdefs.h <<_ACEOF
23128 #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
23129 _ACEOF
23134 { echo "$as_me:$LINENO: checking for UCS-4 tcl" >&5
23135 echo $ECHO_N "checking for UCS-4 tcl... $ECHO_C" >&6; }
23136 have_ucs4_tcl=no
23137 cat >conftest.$ac_ext <<_ACEOF
23138 /* confdefs.h. */
23139 _ACEOF
23140 cat confdefs.h >>conftest.$ac_ext
23141 cat >>conftest.$ac_ext <<_ACEOF
23142 /* end confdefs.h. */
23144 #include <tcl.h>
23145 #if TCL_UTF_MAX != 6
23146 # error "NOT UCS4_TCL"
23147 #endif
23149 main ()
23153 return 0;
23155 _ACEOF
23156 rm -f conftest.$ac_objext
23157 if { (ac_try="$ac_compile"
23158 case "(($ac_try" in
23159 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23160 *) ac_try_echo=$ac_try;;
23161 esac
23162 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23163 (eval "$ac_compile") 2>conftest.er1
23164 ac_status=$?
23165 grep -v '^ *+' conftest.er1 >conftest.err
23166 rm -f conftest.er1
23167 cat conftest.err >&5
23168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23169 (exit $ac_status); } && {
23170 test -z "$ac_c_werror_flag" ||
23171 test ! -s conftest.err
23172 } && test -s conftest.$ac_objext; then
23175 cat >>confdefs.h <<\_ACEOF
23176 #define HAVE_UCS4_TCL 1
23177 _ACEOF
23179 have_ucs4_tcl=yes
23181 else
23182 echo "$as_me: failed program was:" >&5
23183 sed 's/^/| /' conftest.$ac_ext >&5
23188 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23189 { echo "$as_me:$LINENO: result: $have_ucs4_tcl" >&5
23190 echo "${ECHO_T}$have_ucs4_tcl" >&6; }
23192 # check whether wchar_t is signed or not
23193 if test "$wchar_h" = yes
23194 then
23195 # check whether wchar_t is signed or not
23196 { echo "$as_me:$LINENO: checking whether wchar_t is signed" >&5
23197 echo $ECHO_N "checking whether wchar_t is signed... $ECHO_C" >&6; }
23198 if test "${ac_cv_wchar_t_signed+set}" = set; then
23199 echo $ECHO_N "(cached) $ECHO_C" >&6
23200 else
23202 if test "$cross_compiling" = yes; then
23203 ac_cv_wchar_t_signed=yes
23204 else
23205 cat >conftest.$ac_ext <<_ACEOF
23206 /* confdefs.h. */
23207 _ACEOF
23208 cat confdefs.h >>conftest.$ac_ext
23209 cat >>conftest.$ac_ext <<_ACEOF
23210 /* end confdefs.h. */
23212 #include <wchar.h>
23213 int main()
23215 /* Success: exit code 0 */
23216 exit((((wchar_t) -1) < ((wchar_t) 0)) ? 0 : 1);
23219 _ACEOF
23220 rm -f conftest$ac_exeext
23221 if { (ac_try="$ac_link"
23222 case "(($ac_try" in
23223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23224 *) ac_try_echo=$ac_try;;
23225 esac
23226 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23227 (eval "$ac_link") 2>&5
23228 ac_status=$?
23229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23230 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23231 { (case "(($ac_try" in
23232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23233 *) ac_try_echo=$ac_try;;
23234 esac
23235 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23236 (eval "$ac_try") 2>&5
23237 ac_status=$?
23238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23239 (exit $ac_status); }; }; then
23240 ac_cv_wchar_t_signed=yes
23241 else
23242 echo "$as_me: program exited with status $ac_status" >&5
23243 echo "$as_me: failed program was:" >&5
23244 sed 's/^/| /' conftest.$ac_ext >&5
23246 ( exit $ac_status )
23247 ac_cv_wchar_t_signed=no
23249 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23255 { echo "$as_me:$LINENO: result: $ac_cv_wchar_t_signed" >&5
23256 echo "${ECHO_T}$ac_cv_wchar_t_signed" >&6; }
23259 { echo "$as_me:$LINENO: checking what type to use for unicode" >&5
23260 echo $ECHO_N "checking what type to use for unicode... $ECHO_C" >&6; }
23261 # Check whether --enable-unicode was given.
23262 if test "${enable_unicode+set}" = set; then
23263 enableval=$enable_unicode;
23264 else
23265 enable_unicode=yes
23269 if test $enable_unicode = yes
23270 then
23271 # Without any arguments, Py_UNICODE defaults to two-byte mode
23272 case "$have_ucs4_tcl" in
23273 yes) enable_unicode="ucs4"
23275 *) enable_unicode="ucs2"
23277 esac
23282 case "$enable_unicode" in
23283 ucs2) unicode_size="2"
23284 cat >>confdefs.h <<\_ACEOF
23285 #define Py_UNICODE_SIZE 2
23286 _ACEOF
23289 ucs4) unicode_size="4"
23290 cat >>confdefs.h <<\_ACEOF
23291 #define Py_UNICODE_SIZE 4
23292 _ACEOF
23295 esac
23301 if test "$enable_unicode" = "no"
23302 then
23303 UNICODE_OBJS=""
23304 { echo "$as_me:$LINENO: result: not used" >&5
23305 echo "${ECHO_T}not used" >&6; }
23306 else
23307 UNICODE_OBJS="Objects/unicodeobject.o Objects/unicodectype.o"
23309 cat >>confdefs.h <<\_ACEOF
23310 #define Py_USING_UNICODE 1
23311 _ACEOF
23314 # wchar_t is only usable if it maps to an unsigned type
23315 if test "$unicode_size" = "$ac_cv_sizeof_wchar_t" \
23316 -a "$ac_cv_wchar_t_signed" = "no"
23317 then
23318 PY_UNICODE_TYPE="wchar_t"
23320 cat >>confdefs.h <<\_ACEOF
23321 #define HAVE_USABLE_WCHAR_T 1
23322 _ACEOF
23324 cat >>confdefs.h <<\_ACEOF
23325 #define PY_UNICODE_TYPE wchar_t
23326 _ACEOF
23328 elif test "$ac_cv_sizeof_short" = "$unicode_size"
23329 then
23330 PY_UNICODE_TYPE="unsigned short"
23331 cat >>confdefs.h <<\_ACEOF
23332 #define PY_UNICODE_TYPE unsigned short
23333 _ACEOF
23335 elif test "$ac_cv_sizeof_long" = "$unicode_size"
23336 then
23337 PY_UNICODE_TYPE="unsigned long"
23338 cat >>confdefs.h <<\_ACEOF
23339 #define PY_UNICODE_TYPE unsigned long
23340 _ACEOF
23342 else
23343 PY_UNICODE_TYPE="no type found"
23345 { echo "$as_me:$LINENO: result: $PY_UNICODE_TYPE" >&5
23346 echo "${ECHO_T}$PY_UNICODE_TYPE" >&6; }
23349 # check for endianness
23350 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
23351 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
23352 if test "${ac_cv_c_bigendian+set}" = set; then
23353 echo $ECHO_N "(cached) $ECHO_C" >&6
23354 else
23355 # See if sys/param.h defines the BYTE_ORDER macro.
23356 cat >conftest.$ac_ext <<_ACEOF
23357 /* confdefs.h. */
23358 _ACEOF
23359 cat confdefs.h >>conftest.$ac_ext
23360 cat >>conftest.$ac_ext <<_ACEOF
23361 /* end confdefs.h. */
23362 #include <sys/types.h>
23363 #include <sys/param.h>
23366 main ()
23368 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
23369 && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
23370 bogus endian macros
23371 #endif
23374 return 0;
23376 _ACEOF
23377 rm -f conftest.$ac_objext
23378 if { (ac_try="$ac_compile"
23379 case "(($ac_try" in
23380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23381 *) ac_try_echo=$ac_try;;
23382 esac
23383 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23384 (eval "$ac_compile") 2>conftest.er1
23385 ac_status=$?
23386 grep -v '^ *+' conftest.er1 >conftest.err
23387 rm -f conftest.er1
23388 cat conftest.err >&5
23389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23390 (exit $ac_status); } && {
23391 test -z "$ac_c_werror_flag" ||
23392 test ! -s conftest.err
23393 } && test -s conftest.$ac_objext; then
23394 # It does; now see whether it defined to BIG_ENDIAN or not.
23395 cat >conftest.$ac_ext <<_ACEOF
23396 /* confdefs.h. */
23397 _ACEOF
23398 cat confdefs.h >>conftest.$ac_ext
23399 cat >>conftest.$ac_ext <<_ACEOF
23400 /* end confdefs.h. */
23401 #include <sys/types.h>
23402 #include <sys/param.h>
23405 main ()
23407 #if BYTE_ORDER != BIG_ENDIAN
23408 not big endian
23409 #endif
23412 return 0;
23414 _ACEOF
23415 rm -f conftest.$ac_objext
23416 if { (ac_try="$ac_compile"
23417 case "(($ac_try" in
23418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23419 *) ac_try_echo=$ac_try;;
23420 esac
23421 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23422 (eval "$ac_compile") 2>conftest.er1
23423 ac_status=$?
23424 grep -v '^ *+' conftest.er1 >conftest.err
23425 rm -f conftest.er1
23426 cat conftest.err >&5
23427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23428 (exit $ac_status); } && {
23429 test -z "$ac_c_werror_flag" ||
23430 test ! -s conftest.err
23431 } && test -s conftest.$ac_objext; then
23432 ac_cv_c_bigendian=yes
23433 else
23434 echo "$as_me: failed program was:" >&5
23435 sed 's/^/| /' conftest.$ac_ext >&5
23437 ac_cv_c_bigendian=no
23440 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23441 else
23442 echo "$as_me: failed program was:" >&5
23443 sed 's/^/| /' conftest.$ac_ext >&5
23445 # It does not; compile a test program.
23446 if test "$cross_compiling" = yes; then
23447 # try to guess the endianness by grepping values into an object file
23448 ac_cv_c_bigendian=unknown
23449 cat >conftest.$ac_ext <<_ACEOF
23450 /* confdefs.h. */
23451 _ACEOF
23452 cat confdefs.h >>conftest.$ac_ext
23453 cat >>conftest.$ac_ext <<_ACEOF
23454 /* end confdefs.h. */
23455 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
23456 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
23457 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
23458 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
23459 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
23460 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
23462 main ()
23464 _ascii (); _ebcdic ();
23466 return 0;
23468 _ACEOF
23469 rm -f conftest.$ac_objext
23470 if { (ac_try="$ac_compile"
23471 case "(($ac_try" in
23472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23473 *) ac_try_echo=$ac_try;;
23474 esac
23475 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23476 (eval "$ac_compile") 2>conftest.er1
23477 ac_status=$?
23478 grep -v '^ *+' conftest.er1 >conftest.err
23479 rm -f conftest.er1
23480 cat conftest.err >&5
23481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23482 (exit $ac_status); } && {
23483 test -z "$ac_c_werror_flag" ||
23484 test ! -s conftest.err
23485 } && test -s conftest.$ac_objext; then
23486 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
23487 ac_cv_c_bigendian=yes
23489 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
23490 if test "$ac_cv_c_bigendian" = unknown; then
23491 ac_cv_c_bigendian=no
23492 else
23493 # finding both strings is unlikely to happen, but who knows?
23494 ac_cv_c_bigendian=unknown
23497 else
23498 echo "$as_me: failed program was:" >&5
23499 sed 's/^/| /' conftest.$ac_ext >&5
23504 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23505 else
23506 cat >conftest.$ac_ext <<_ACEOF
23507 /* confdefs.h. */
23508 _ACEOF
23509 cat confdefs.h >>conftest.$ac_ext
23510 cat >>conftest.$ac_ext <<_ACEOF
23511 /* end confdefs.h. */
23512 $ac_includes_default
23514 main ()
23517 /* Are we little or big endian? From Harbison&Steele. */
23518 union
23520 long int l;
23521 char c[sizeof (long int)];
23522 } u;
23523 u.l = 1;
23524 return u.c[sizeof (long int) - 1] == 1;
23527 return 0;
23529 _ACEOF
23530 rm -f conftest$ac_exeext
23531 if { (ac_try="$ac_link"
23532 case "(($ac_try" in
23533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23534 *) ac_try_echo=$ac_try;;
23535 esac
23536 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23537 (eval "$ac_link") 2>&5
23538 ac_status=$?
23539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23540 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23541 { (case "(($ac_try" in
23542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23543 *) ac_try_echo=$ac_try;;
23544 esac
23545 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23546 (eval "$ac_try") 2>&5
23547 ac_status=$?
23548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23549 (exit $ac_status); }; }; then
23550 ac_cv_c_bigendian=no
23551 else
23552 echo "$as_me: program exited with status $ac_status" >&5
23553 echo "$as_me: failed program was:" >&5
23554 sed 's/^/| /' conftest.$ac_ext >&5
23556 ( exit $ac_status )
23557 ac_cv_c_bigendian=yes
23559 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23565 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23567 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
23568 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
23569 case $ac_cv_c_bigendian in
23570 yes)
23572 cat >>confdefs.h <<\_ACEOF
23573 #define WORDS_BIGENDIAN 1
23574 _ACEOF
23579 { { echo "$as_me:$LINENO: error: unknown endianness
23580 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
23581 echo "$as_me: error: unknown endianness
23582 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
23583 { (exit 1); exit 1; }; } ;;
23584 esac
23587 # Check whether right shifting a negative integer extends the sign bit
23588 # or fills with zeros (like the Cray J90, according to Tim Peters).
23589 { echo "$as_me:$LINENO: checking whether right shift extends the sign bit" >&5
23590 echo $ECHO_N "checking whether right shift extends the sign bit... $ECHO_C" >&6; }
23591 if test "${ac_cv_rshift_extends_sign+set}" = set; then
23592 echo $ECHO_N "(cached) $ECHO_C" >&6
23593 else
23595 if test "$cross_compiling" = yes; then
23596 ac_cv_rshift_extends_sign=yes
23597 else
23598 cat >conftest.$ac_ext <<_ACEOF
23599 /* confdefs.h. */
23600 _ACEOF
23601 cat confdefs.h >>conftest.$ac_ext
23602 cat >>conftest.$ac_ext <<_ACEOF
23603 /* end confdefs.h. */
23605 int main()
23607 exit(((-1)>>3 == -1) ? 0 : 1);
23610 _ACEOF
23611 rm -f conftest$ac_exeext
23612 if { (ac_try="$ac_link"
23613 case "(($ac_try" in
23614 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23615 *) ac_try_echo=$ac_try;;
23616 esac
23617 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23618 (eval "$ac_link") 2>&5
23619 ac_status=$?
23620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23621 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23622 { (case "(($ac_try" in
23623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23624 *) ac_try_echo=$ac_try;;
23625 esac
23626 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23627 (eval "$ac_try") 2>&5
23628 ac_status=$?
23629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23630 (exit $ac_status); }; }; then
23631 ac_cv_rshift_extends_sign=yes
23632 else
23633 echo "$as_me: program exited with status $ac_status" >&5
23634 echo "$as_me: failed program was:" >&5
23635 sed 's/^/| /' conftest.$ac_ext >&5
23637 ( exit $ac_status )
23638 ac_cv_rshift_extends_sign=no
23640 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23646 { echo "$as_me:$LINENO: result: $ac_cv_rshift_extends_sign" >&5
23647 echo "${ECHO_T}$ac_cv_rshift_extends_sign" >&6; }
23648 if test "$ac_cv_rshift_extends_sign" = no
23649 then
23651 cat >>confdefs.h <<\_ACEOF
23652 #define SIGNED_RIGHT_SHIFT_ZERO_FILLS 1
23653 _ACEOF
23657 # check for getc_unlocked and related locking functions
23658 { echo "$as_me:$LINENO: checking for getc_unlocked() and friends" >&5
23659 echo $ECHO_N "checking for getc_unlocked() and friends... $ECHO_C" >&6; }
23660 if test "${ac_cv_have_getc_unlocked+set}" = set; then
23661 echo $ECHO_N "(cached) $ECHO_C" >&6
23662 else
23664 cat >conftest.$ac_ext <<_ACEOF
23665 /* confdefs.h. */
23666 _ACEOF
23667 cat confdefs.h >>conftest.$ac_ext
23668 cat >>conftest.$ac_ext <<_ACEOF
23669 /* end confdefs.h. */
23670 #include <stdio.h>
23672 main ()
23675 FILE *f = fopen("/dev/null", "r");
23676 flockfile(f);
23677 getc_unlocked(f);
23678 funlockfile(f);
23681 return 0;
23683 _ACEOF
23684 rm -f conftest.$ac_objext conftest$ac_exeext
23685 if { (ac_try="$ac_link"
23686 case "(($ac_try" in
23687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23688 *) ac_try_echo=$ac_try;;
23689 esac
23690 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23691 (eval "$ac_link") 2>conftest.er1
23692 ac_status=$?
23693 grep -v '^ *+' conftest.er1 >conftest.err
23694 rm -f conftest.er1
23695 cat conftest.err >&5
23696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23697 (exit $ac_status); } && {
23698 test -z "$ac_c_werror_flag" ||
23699 test ! -s conftest.err
23700 } && test -s conftest$ac_exeext &&
23701 $as_test_x conftest$ac_exeext; then
23702 ac_cv_have_getc_unlocked=yes
23703 else
23704 echo "$as_me: failed program was:" >&5
23705 sed 's/^/| /' conftest.$ac_ext >&5
23707 ac_cv_have_getc_unlocked=no
23710 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23711 conftest$ac_exeext conftest.$ac_ext
23714 { echo "$as_me:$LINENO: result: $ac_cv_have_getc_unlocked" >&5
23715 echo "${ECHO_T}$ac_cv_have_getc_unlocked" >&6; }
23716 if test "$ac_cv_have_getc_unlocked" = yes
23717 then
23719 cat >>confdefs.h <<\_ACEOF
23720 #define HAVE_GETC_UNLOCKED 1
23721 _ACEOF
23725 # check where readline lives
23726 # save the value of LIBS so we don't actually link Python with readline
23727 LIBS_no_readline=$LIBS
23729 # On some systems we need to link readline to a termcap compatible
23730 # library. NOTE: Keep the precedence of listed libraries synchronised
23731 # with setup.py.
23732 py_cv_lib_readline=no
23733 { echo "$as_me:$LINENO: checking how to link readline libs" >&5
23734 echo $ECHO_N "checking how to link readline libs... $ECHO_C" >&6; }
23735 for py_libtermcap in "" ncursesw ncurses curses termcap; do
23736 if test -z "$py_libtermcap"; then
23737 READLINE_LIBS="-lreadline"
23738 else
23739 READLINE_LIBS="-lreadline -l$py_libtermcap"
23741 LIBS="$READLINE_LIBS $LIBS_no_readline"
23742 cat >conftest.$ac_ext <<_ACEOF
23743 /* confdefs.h. */
23744 _ACEOF
23745 cat confdefs.h >>conftest.$ac_ext
23746 cat >>conftest.$ac_ext <<_ACEOF
23747 /* end confdefs.h. */
23749 /* Override any GCC internal prototype to avoid an error.
23750 Use char because int might match the return type of a GCC
23751 builtin and then its argument prototype would still apply. */
23752 #ifdef __cplusplus
23753 extern "C"
23754 #endif
23755 char readline ();
23757 main ()
23759 return readline ();
23761 return 0;
23763 _ACEOF
23764 rm -f conftest.$ac_objext conftest$ac_exeext
23765 if { (ac_try="$ac_link"
23766 case "(($ac_try" in
23767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23768 *) ac_try_echo=$ac_try;;
23769 esac
23770 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23771 (eval "$ac_link") 2>conftest.er1
23772 ac_status=$?
23773 grep -v '^ *+' conftest.er1 >conftest.err
23774 rm -f conftest.er1
23775 cat conftest.err >&5
23776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23777 (exit $ac_status); } && {
23778 test -z "$ac_c_werror_flag" ||
23779 test ! -s conftest.err
23780 } && test -s conftest$ac_exeext &&
23781 $as_test_x conftest$ac_exeext; then
23782 py_cv_lib_readline=yes
23783 else
23784 echo "$as_me: failed program was:" >&5
23785 sed 's/^/| /' conftest.$ac_ext >&5
23790 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23791 conftest$ac_exeext conftest.$ac_ext
23792 if test $py_cv_lib_readline = yes; then
23793 break
23795 done
23796 # Uncomment this line if you want to use READINE_LIBS in Makefile or scripts
23797 #AC_SUBST([READLINE_LIBS])
23798 if test $py_cv_lib_readline = no; then
23799 { echo "$as_me:$LINENO: result: none" >&5
23800 echo "${ECHO_T}none" >&6; }
23801 else
23802 { echo "$as_me:$LINENO: result: $READLINE_LIBS" >&5
23803 echo "${ECHO_T}$READLINE_LIBS" >&6; }
23805 cat >>confdefs.h <<\_ACEOF
23806 #define HAVE_LIBREADLINE 1
23807 _ACEOF
23811 # check for readline 2.1
23812 { echo "$as_me:$LINENO: checking for rl_callback_handler_install in -lreadline" >&5
23813 echo $ECHO_N "checking for rl_callback_handler_install in -lreadline... $ECHO_C" >&6; }
23814 if test "${ac_cv_lib_readline_rl_callback_handler_install+set}" = set; then
23815 echo $ECHO_N "(cached) $ECHO_C" >&6
23816 else
23817 ac_check_lib_save_LIBS=$LIBS
23818 LIBS="-lreadline $READLINE_LIBS $LIBS"
23819 cat >conftest.$ac_ext <<_ACEOF
23820 /* confdefs.h. */
23821 _ACEOF
23822 cat confdefs.h >>conftest.$ac_ext
23823 cat >>conftest.$ac_ext <<_ACEOF
23824 /* end confdefs.h. */
23826 /* Override any GCC internal prototype to avoid an error.
23827 Use char because int might match the return type of a GCC
23828 builtin and then its argument prototype would still apply. */
23829 #ifdef __cplusplus
23830 extern "C"
23831 #endif
23832 char rl_callback_handler_install ();
23834 main ()
23836 return rl_callback_handler_install ();
23838 return 0;
23840 _ACEOF
23841 rm -f conftest.$ac_objext conftest$ac_exeext
23842 if { (ac_try="$ac_link"
23843 case "(($ac_try" in
23844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23845 *) ac_try_echo=$ac_try;;
23846 esac
23847 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23848 (eval "$ac_link") 2>conftest.er1
23849 ac_status=$?
23850 grep -v '^ *+' conftest.er1 >conftest.err
23851 rm -f conftest.er1
23852 cat conftest.err >&5
23853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23854 (exit $ac_status); } && {
23855 test -z "$ac_c_werror_flag" ||
23856 test ! -s conftest.err
23857 } && test -s conftest$ac_exeext &&
23858 $as_test_x conftest$ac_exeext; then
23859 ac_cv_lib_readline_rl_callback_handler_install=yes
23860 else
23861 echo "$as_me: failed program was:" >&5
23862 sed 's/^/| /' conftest.$ac_ext >&5
23864 ac_cv_lib_readline_rl_callback_handler_install=no
23867 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23868 conftest$ac_exeext conftest.$ac_ext
23869 LIBS=$ac_check_lib_save_LIBS
23871 { echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_callback_handler_install" >&5
23872 echo "${ECHO_T}$ac_cv_lib_readline_rl_callback_handler_install" >&6; }
23873 if test $ac_cv_lib_readline_rl_callback_handler_install = yes; then
23875 cat >>confdefs.h <<\_ACEOF
23876 #define HAVE_RL_CALLBACK 1
23877 _ACEOF
23882 # check for readline 2.2
23883 cat >conftest.$ac_ext <<_ACEOF
23884 /* confdefs.h. */
23885 _ACEOF
23886 cat confdefs.h >>conftest.$ac_ext
23887 cat >>conftest.$ac_ext <<_ACEOF
23888 /* end confdefs.h. */
23889 #include <readline/readline.h>
23890 _ACEOF
23891 if { (ac_try="$ac_cpp conftest.$ac_ext"
23892 case "(($ac_try" in
23893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23894 *) ac_try_echo=$ac_try;;
23895 esac
23896 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23897 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23898 ac_status=$?
23899 grep -v '^ *+' conftest.er1 >conftest.err
23900 rm -f conftest.er1
23901 cat conftest.err >&5
23902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23903 (exit $ac_status); } >/dev/null && {
23904 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23905 test ! -s conftest.err
23906 }; then
23907 have_readline=yes
23908 else
23909 echo "$as_me: failed program was:" >&5
23910 sed 's/^/| /' conftest.$ac_ext >&5
23912 have_readline=no
23915 rm -f conftest.err conftest.$ac_ext
23916 if test $have_readline = yes
23917 then
23918 cat >conftest.$ac_ext <<_ACEOF
23919 /* confdefs.h. */
23920 _ACEOF
23921 cat confdefs.h >>conftest.$ac_ext
23922 cat >>conftest.$ac_ext <<_ACEOF
23923 /* end confdefs.h. */
23924 #include <readline/readline.h>
23926 _ACEOF
23927 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23928 $EGREP "extern int rl_completion_append_character;" >/dev/null 2>&1; then
23930 cat >>confdefs.h <<\_ACEOF
23931 #define HAVE_RL_COMPLETION_APPEND_CHARACTER 1
23932 _ACEOF
23935 rm -f conftest*
23939 # check for readline 4.0
23940 { echo "$as_me:$LINENO: checking for rl_pre_input_hook in -lreadline" >&5
23941 echo $ECHO_N "checking for rl_pre_input_hook in -lreadline... $ECHO_C" >&6; }
23942 if test "${ac_cv_lib_readline_rl_pre_input_hook+set}" = set; then
23943 echo $ECHO_N "(cached) $ECHO_C" >&6
23944 else
23945 ac_check_lib_save_LIBS=$LIBS
23946 LIBS="-lreadline $READLINE_LIBS $LIBS"
23947 cat >conftest.$ac_ext <<_ACEOF
23948 /* confdefs.h. */
23949 _ACEOF
23950 cat confdefs.h >>conftest.$ac_ext
23951 cat >>conftest.$ac_ext <<_ACEOF
23952 /* end confdefs.h. */
23954 /* Override any GCC internal prototype to avoid an error.
23955 Use char because int might match the return type of a GCC
23956 builtin and then its argument prototype would still apply. */
23957 #ifdef __cplusplus
23958 extern "C"
23959 #endif
23960 char rl_pre_input_hook ();
23962 main ()
23964 return rl_pre_input_hook ();
23966 return 0;
23968 _ACEOF
23969 rm -f conftest.$ac_objext conftest$ac_exeext
23970 if { (ac_try="$ac_link"
23971 case "(($ac_try" in
23972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23973 *) ac_try_echo=$ac_try;;
23974 esac
23975 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23976 (eval "$ac_link") 2>conftest.er1
23977 ac_status=$?
23978 grep -v '^ *+' conftest.er1 >conftest.err
23979 rm -f conftest.er1
23980 cat conftest.err >&5
23981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23982 (exit $ac_status); } && {
23983 test -z "$ac_c_werror_flag" ||
23984 test ! -s conftest.err
23985 } && test -s conftest$ac_exeext &&
23986 $as_test_x conftest$ac_exeext; then
23987 ac_cv_lib_readline_rl_pre_input_hook=yes
23988 else
23989 echo "$as_me: failed program was:" >&5
23990 sed 's/^/| /' conftest.$ac_ext >&5
23992 ac_cv_lib_readline_rl_pre_input_hook=no
23995 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23996 conftest$ac_exeext conftest.$ac_ext
23997 LIBS=$ac_check_lib_save_LIBS
23999 { echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_pre_input_hook" >&5
24000 echo "${ECHO_T}$ac_cv_lib_readline_rl_pre_input_hook" >&6; }
24001 if test $ac_cv_lib_readline_rl_pre_input_hook = yes; then
24003 cat >>confdefs.h <<\_ACEOF
24004 #define HAVE_RL_PRE_INPUT_HOOK 1
24005 _ACEOF
24010 # also in 4.0
24011 { echo "$as_me:$LINENO: checking for rl_completion_display_matches_hook in -lreadline" >&5
24012 echo $ECHO_N "checking for rl_completion_display_matches_hook in -lreadline... $ECHO_C" >&6; }
24013 if test "${ac_cv_lib_readline_rl_completion_display_matches_hook+set}" = set; then
24014 echo $ECHO_N "(cached) $ECHO_C" >&6
24015 else
24016 ac_check_lib_save_LIBS=$LIBS
24017 LIBS="-lreadline $READLINE_LIBS $LIBS"
24018 cat >conftest.$ac_ext <<_ACEOF
24019 /* confdefs.h. */
24020 _ACEOF
24021 cat confdefs.h >>conftest.$ac_ext
24022 cat >>conftest.$ac_ext <<_ACEOF
24023 /* end confdefs.h. */
24025 /* Override any GCC internal prototype to avoid an error.
24026 Use char because int might match the return type of a GCC
24027 builtin and then its argument prototype would still apply. */
24028 #ifdef __cplusplus
24029 extern "C"
24030 #endif
24031 char rl_completion_display_matches_hook ();
24033 main ()
24035 return rl_completion_display_matches_hook ();
24037 return 0;
24039 _ACEOF
24040 rm -f conftest.$ac_objext conftest$ac_exeext
24041 if { (ac_try="$ac_link"
24042 case "(($ac_try" in
24043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24044 *) ac_try_echo=$ac_try;;
24045 esac
24046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24047 (eval "$ac_link") 2>conftest.er1
24048 ac_status=$?
24049 grep -v '^ *+' conftest.er1 >conftest.err
24050 rm -f conftest.er1
24051 cat conftest.err >&5
24052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24053 (exit $ac_status); } && {
24054 test -z "$ac_c_werror_flag" ||
24055 test ! -s conftest.err
24056 } && test -s conftest$ac_exeext &&
24057 $as_test_x conftest$ac_exeext; then
24058 ac_cv_lib_readline_rl_completion_display_matches_hook=yes
24059 else
24060 echo "$as_me: failed program was:" >&5
24061 sed 's/^/| /' conftest.$ac_ext >&5
24063 ac_cv_lib_readline_rl_completion_display_matches_hook=no
24066 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24067 conftest$ac_exeext conftest.$ac_ext
24068 LIBS=$ac_check_lib_save_LIBS
24070 { echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_completion_display_matches_hook" >&5
24071 echo "${ECHO_T}$ac_cv_lib_readline_rl_completion_display_matches_hook" >&6; }
24072 if test $ac_cv_lib_readline_rl_completion_display_matches_hook = yes; then
24074 cat >>confdefs.h <<\_ACEOF
24075 #define HAVE_RL_COMPLETION_DISPLAY_MATCHES_HOOK 1
24076 _ACEOF
24081 # check for readline 4.2
24082 { echo "$as_me:$LINENO: checking for rl_completion_matches in -lreadline" >&5
24083 echo $ECHO_N "checking for rl_completion_matches in -lreadline... $ECHO_C" >&6; }
24084 if test "${ac_cv_lib_readline_rl_completion_matches+set}" = set; then
24085 echo $ECHO_N "(cached) $ECHO_C" >&6
24086 else
24087 ac_check_lib_save_LIBS=$LIBS
24088 LIBS="-lreadline $READLINE_LIBS $LIBS"
24089 cat >conftest.$ac_ext <<_ACEOF
24090 /* confdefs.h. */
24091 _ACEOF
24092 cat confdefs.h >>conftest.$ac_ext
24093 cat >>conftest.$ac_ext <<_ACEOF
24094 /* end confdefs.h. */
24096 /* Override any GCC internal prototype to avoid an error.
24097 Use char because int might match the return type of a GCC
24098 builtin and then its argument prototype would still apply. */
24099 #ifdef __cplusplus
24100 extern "C"
24101 #endif
24102 char rl_completion_matches ();
24104 main ()
24106 return rl_completion_matches ();
24108 return 0;
24110 _ACEOF
24111 rm -f conftest.$ac_objext conftest$ac_exeext
24112 if { (ac_try="$ac_link"
24113 case "(($ac_try" in
24114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24115 *) ac_try_echo=$ac_try;;
24116 esac
24117 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24118 (eval "$ac_link") 2>conftest.er1
24119 ac_status=$?
24120 grep -v '^ *+' conftest.er1 >conftest.err
24121 rm -f conftest.er1
24122 cat conftest.err >&5
24123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24124 (exit $ac_status); } && {
24125 test -z "$ac_c_werror_flag" ||
24126 test ! -s conftest.err
24127 } && test -s conftest$ac_exeext &&
24128 $as_test_x conftest$ac_exeext; then
24129 ac_cv_lib_readline_rl_completion_matches=yes
24130 else
24131 echo "$as_me: failed program was:" >&5
24132 sed 's/^/| /' conftest.$ac_ext >&5
24134 ac_cv_lib_readline_rl_completion_matches=no
24137 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24138 conftest$ac_exeext conftest.$ac_ext
24139 LIBS=$ac_check_lib_save_LIBS
24141 { echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_completion_matches" >&5
24142 echo "${ECHO_T}$ac_cv_lib_readline_rl_completion_matches" >&6; }
24143 if test $ac_cv_lib_readline_rl_completion_matches = yes; then
24145 cat >>confdefs.h <<\_ACEOF
24146 #define HAVE_RL_COMPLETION_MATCHES 1
24147 _ACEOF
24152 # also in readline 4.2
24153 cat >conftest.$ac_ext <<_ACEOF
24154 /* confdefs.h. */
24155 _ACEOF
24156 cat confdefs.h >>conftest.$ac_ext
24157 cat >>conftest.$ac_ext <<_ACEOF
24158 /* end confdefs.h. */
24159 #include <readline/readline.h>
24160 _ACEOF
24161 if { (ac_try="$ac_cpp conftest.$ac_ext"
24162 case "(($ac_try" in
24163 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24164 *) ac_try_echo=$ac_try;;
24165 esac
24166 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24167 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24168 ac_status=$?
24169 grep -v '^ *+' conftest.er1 >conftest.err
24170 rm -f conftest.er1
24171 cat conftest.err >&5
24172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24173 (exit $ac_status); } >/dev/null && {
24174 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24175 test ! -s conftest.err
24176 }; then
24177 have_readline=yes
24178 else
24179 echo "$as_me: failed program was:" >&5
24180 sed 's/^/| /' conftest.$ac_ext >&5
24182 have_readline=no
24185 rm -f conftest.err conftest.$ac_ext
24186 if test $have_readline = yes
24187 then
24188 cat >conftest.$ac_ext <<_ACEOF
24189 /* confdefs.h. */
24190 _ACEOF
24191 cat confdefs.h >>conftest.$ac_ext
24192 cat >>conftest.$ac_ext <<_ACEOF
24193 /* end confdefs.h. */
24194 #include <readline/readline.h>
24196 _ACEOF
24197 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24198 $EGREP "extern int rl_catch_signals;" >/dev/null 2>&1; then
24200 cat >>confdefs.h <<\_ACEOF
24201 #define HAVE_RL_CATCH_SIGNAL 1
24202 _ACEOF
24205 rm -f conftest*
24209 # End of readline checks: restore LIBS
24210 LIBS=$LIBS_no_readline
24212 { echo "$as_me:$LINENO: checking for broken nice()" >&5
24213 echo $ECHO_N "checking for broken nice()... $ECHO_C" >&6; }
24214 if test "${ac_cv_broken_nice+set}" = set; then
24215 echo $ECHO_N "(cached) $ECHO_C" >&6
24216 else
24218 if test "$cross_compiling" = yes; then
24219 ac_cv_broken_nice=no
24220 else
24221 cat >conftest.$ac_ext <<_ACEOF
24222 /* confdefs.h. */
24223 _ACEOF
24224 cat confdefs.h >>conftest.$ac_ext
24225 cat >>conftest.$ac_ext <<_ACEOF
24226 /* end confdefs.h. */
24228 int main()
24230 int val1 = nice(1);
24231 if (val1 != -1 && val1 == nice(2))
24232 exit(0);
24233 exit(1);
24236 _ACEOF
24237 rm -f conftest$ac_exeext
24238 if { (ac_try="$ac_link"
24239 case "(($ac_try" in
24240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24241 *) ac_try_echo=$ac_try;;
24242 esac
24243 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24244 (eval "$ac_link") 2>&5
24245 ac_status=$?
24246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24247 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24248 { (case "(($ac_try" in
24249 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24250 *) ac_try_echo=$ac_try;;
24251 esac
24252 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24253 (eval "$ac_try") 2>&5
24254 ac_status=$?
24255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24256 (exit $ac_status); }; }; then
24257 ac_cv_broken_nice=yes
24258 else
24259 echo "$as_me: program exited with status $ac_status" >&5
24260 echo "$as_me: failed program was:" >&5
24261 sed 's/^/| /' conftest.$ac_ext >&5
24263 ( exit $ac_status )
24264 ac_cv_broken_nice=no
24266 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24272 { echo "$as_me:$LINENO: result: $ac_cv_broken_nice" >&5
24273 echo "${ECHO_T}$ac_cv_broken_nice" >&6; }
24274 if test "$ac_cv_broken_nice" = yes
24275 then
24277 cat >>confdefs.h <<\_ACEOF
24278 #define HAVE_BROKEN_NICE 1
24279 _ACEOF
24283 { echo "$as_me:$LINENO: checking for broken poll()" >&5
24284 echo $ECHO_N "checking for broken poll()... $ECHO_C" >&6; }
24285 if test "$cross_compiling" = yes; then
24286 ac_cv_broken_poll=no
24287 else
24288 cat >conftest.$ac_ext <<_ACEOF
24289 /* confdefs.h. */
24290 _ACEOF
24291 cat confdefs.h >>conftest.$ac_ext
24292 cat >>conftest.$ac_ext <<_ACEOF
24293 /* end confdefs.h. */
24295 #include <poll.h>
24297 int main (void)
24299 struct pollfd poll_struct = { 42, POLLIN|POLLPRI|POLLOUT, 0 };
24301 close (42);
24303 int poll_test = poll (&poll_struct, 1, 0);
24305 if (poll_test < 0)
24307 exit(0);
24309 else if (poll_test == 0 && poll_struct.revents != POLLNVAL)
24311 exit(0);
24313 else
24315 exit(1);
24319 _ACEOF
24320 rm -f conftest$ac_exeext
24321 if { (ac_try="$ac_link"
24322 case "(($ac_try" in
24323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24324 *) ac_try_echo=$ac_try;;
24325 esac
24326 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24327 (eval "$ac_link") 2>&5
24328 ac_status=$?
24329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24330 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24331 { (case "(($ac_try" in
24332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24333 *) ac_try_echo=$ac_try;;
24334 esac
24335 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24336 (eval "$ac_try") 2>&5
24337 ac_status=$?
24338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24339 (exit $ac_status); }; }; then
24340 ac_cv_broken_poll=yes
24341 else
24342 echo "$as_me: program exited with status $ac_status" >&5
24343 echo "$as_me: failed program was:" >&5
24344 sed 's/^/| /' conftest.$ac_ext >&5
24346 ( exit $ac_status )
24347 ac_cv_broken_poll=no
24349 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24353 { echo "$as_me:$LINENO: result: $ac_cv_broken_poll" >&5
24354 echo "${ECHO_T}$ac_cv_broken_poll" >&6; }
24355 if test "$ac_cv_broken_poll" = yes
24356 then
24358 cat >>confdefs.h <<\_ACEOF
24359 #define HAVE_BROKEN_POLL 1
24360 _ACEOF
24364 # Before we can test tzset, we need to check if struct tm has a tm_zone
24365 # (which is not required by ISO C or UNIX spec) and/or if we support
24366 # tzname[]
24367 { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
24368 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
24369 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
24370 echo $ECHO_N "(cached) $ECHO_C" >&6
24371 else
24372 cat >conftest.$ac_ext <<_ACEOF
24373 /* confdefs.h. */
24374 _ACEOF
24375 cat confdefs.h >>conftest.$ac_ext
24376 cat >>conftest.$ac_ext <<_ACEOF
24377 /* end confdefs.h. */
24378 #include <sys/types.h>
24379 #include <$ac_cv_struct_tm>
24383 main ()
24385 static struct tm ac_aggr;
24386 if (ac_aggr.tm_zone)
24387 return 0;
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_member_struct_tm_tm_zone=yes
24410 else
24411 echo "$as_me: failed program was:" >&5
24412 sed 's/^/| /' conftest.$ac_ext >&5
24414 cat >conftest.$ac_ext <<_ACEOF
24415 /* confdefs.h. */
24416 _ACEOF
24417 cat confdefs.h >>conftest.$ac_ext
24418 cat >>conftest.$ac_ext <<_ACEOF
24419 /* end confdefs.h. */
24420 #include <sys/types.h>
24421 #include <$ac_cv_struct_tm>
24425 main ()
24427 static struct tm ac_aggr;
24428 if (sizeof ac_aggr.tm_zone)
24429 return 0;
24431 return 0;
24433 _ACEOF
24434 rm -f conftest.$ac_objext
24435 if { (ac_try="$ac_compile"
24436 case "(($ac_try" in
24437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24438 *) ac_try_echo=$ac_try;;
24439 esac
24440 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24441 (eval "$ac_compile") 2>conftest.er1
24442 ac_status=$?
24443 grep -v '^ *+' conftest.er1 >conftest.err
24444 rm -f conftest.er1
24445 cat conftest.err >&5
24446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24447 (exit $ac_status); } && {
24448 test -z "$ac_c_werror_flag" ||
24449 test ! -s conftest.err
24450 } && test -s conftest.$ac_objext; then
24451 ac_cv_member_struct_tm_tm_zone=yes
24452 else
24453 echo "$as_me: failed program was:" >&5
24454 sed 's/^/| /' conftest.$ac_ext >&5
24456 ac_cv_member_struct_tm_tm_zone=no
24459 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24462 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24464 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
24465 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
24466 if test $ac_cv_member_struct_tm_tm_zone = yes; then
24468 cat >>confdefs.h <<_ACEOF
24469 #define HAVE_STRUCT_TM_TM_ZONE 1
24470 _ACEOF
24475 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
24477 cat >>confdefs.h <<\_ACEOF
24478 #define HAVE_TM_ZONE 1
24479 _ACEOF
24481 else
24482 { echo "$as_me:$LINENO: checking whether tzname is declared" >&5
24483 echo $ECHO_N "checking whether tzname is declared... $ECHO_C" >&6; }
24484 if test "${ac_cv_have_decl_tzname+set}" = set; then
24485 echo $ECHO_N "(cached) $ECHO_C" >&6
24486 else
24487 cat >conftest.$ac_ext <<_ACEOF
24488 /* confdefs.h. */
24489 _ACEOF
24490 cat confdefs.h >>conftest.$ac_ext
24491 cat >>conftest.$ac_ext <<_ACEOF
24492 /* end confdefs.h. */
24493 #include <time.h>
24496 main ()
24498 #ifndef tzname
24499 (void) tzname;
24500 #endif
24503 return 0;
24505 _ACEOF
24506 rm -f conftest.$ac_objext
24507 if { (ac_try="$ac_compile"
24508 case "(($ac_try" in
24509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24510 *) ac_try_echo=$ac_try;;
24511 esac
24512 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24513 (eval "$ac_compile") 2>conftest.er1
24514 ac_status=$?
24515 grep -v '^ *+' conftest.er1 >conftest.err
24516 rm -f conftest.er1
24517 cat conftest.err >&5
24518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24519 (exit $ac_status); } && {
24520 test -z "$ac_c_werror_flag" ||
24521 test ! -s conftest.err
24522 } && test -s conftest.$ac_objext; then
24523 ac_cv_have_decl_tzname=yes
24524 else
24525 echo "$as_me: failed program was:" >&5
24526 sed 's/^/| /' conftest.$ac_ext >&5
24528 ac_cv_have_decl_tzname=no
24531 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24533 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
24534 echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; }
24535 if test $ac_cv_have_decl_tzname = yes; then
24537 cat >>confdefs.h <<_ACEOF
24538 #define HAVE_DECL_TZNAME 1
24539 _ACEOF
24542 else
24543 cat >>confdefs.h <<_ACEOF
24544 #define HAVE_DECL_TZNAME 0
24545 _ACEOF
24551 { echo "$as_me:$LINENO: checking for tzname" >&5
24552 echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
24553 if test "${ac_cv_var_tzname+set}" = set; then
24554 echo $ECHO_N "(cached) $ECHO_C" >&6
24555 else
24556 cat >conftest.$ac_ext <<_ACEOF
24557 /* confdefs.h. */
24558 _ACEOF
24559 cat confdefs.h >>conftest.$ac_ext
24560 cat >>conftest.$ac_ext <<_ACEOF
24561 /* end confdefs.h. */
24562 #include <time.h>
24563 #if !HAVE_DECL_TZNAME
24564 extern char *tzname[];
24565 #endif
24568 main ()
24570 return tzname[0][0];
24572 return 0;
24574 _ACEOF
24575 rm -f conftest.$ac_objext conftest$ac_exeext
24576 if { (ac_try="$ac_link"
24577 case "(($ac_try" in
24578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24579 *) ac_try_echo=$ac_try;;
24580 esac
24581 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24582 (eval "$ac_link") 2>conftest.er1
24583 ac_status=$?
24584 grep -v '^ *+' conftest.er1 >conftest.err
24585 rm -f conftest.er1
24586 cat conftest.err >&5
24587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24588 (exit $ac_status); } && {
24589 test -z "$ac_c_werror_flag" ||
24590 test ! -s conftest.err
24591 } && test -s conftest$ac_exeext &&
24592 $as_test_x conftest$ac_exeext; then
24593 ac_cv_var_tzname=yes
24594 else
24595 echo "$as_me: failed program was:" >&5
24596 sed 's/^/| /' conftest.$ac_ext >&5
24598 ac_cv_var_tzname=no
24601 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24602 conftest$ac_exeext conftest.$ac_ext
24604 { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
24605 echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
24606 if test $ac_cv_var_tzname = yes; then
24608 cat >>confdefs.h <<\_ACEOF
24609 #define HAVE_TZNAME 1
24610 _ACEOF
24616 # check tzset(3) exists and works like we expect it to
24617 { echo "$as_me:$LINENO: checking for working tzset()" >&5
24618 echo $ECHO_N "checking for working tzset()... $ECHO_C" >&6; }
24619 if test "${ac_cv_working_tzset+set}" = set; then
24620 echo $ECHO_N "(cached) $ECHO_C" >&6
24621 else
24623 if test "$cross_compiling" = yes; then
24624 ac_cv_working_tzset=no
24625 else
24626 cat >conftest.$ac_ext <<_ACEOF
24627 /* confdefs.h. */
24628 _ACEOF
24629 cat confdefs.h >>conftest.$ac_ext
24630 cat >>conftest.$ac_ext <<_ACEOF
24631 /* end confdefs.h. */
24633 #include <stdlib.h>
24634 #include <time.h>
24635 #include <string.h>
24637 #if HAVE_TZNAME
24638 extern char *tzname[];
24639 #endif
24641 int main()
24643 /* Note that we need to ensure that not only does tzset(3)
24644 do 'something' with localtime, but it works as documented
24645 in the library reference and as expected by the test suite.
24646 This includes making sure that tzname is set properly if
24647 tm->tm_zone does not exist since it is the alternative way
24648 of getting timezone info.
24650 Red Hat 6.2 doesn't understand the southern hemisphere
24651 after New Year's Day.
24654 time_t groundhogday = 1044144000; /* GMT-based */
24655 time_t midyear = groundhogday + (365 * 24 * 3600 / 2);
24657 putenv("TZ=UTC+0");
24658 tzset();
24659 if (localtime(&groundhogday)->tm_hour != 0)
24660 exit(1);
24661 #if HAVE_TZNAME
24662 /* For UTC, tzname[1] is sometimes "", sometimes " " */
24663 if (strcmp(tzname[0], "UTC") ||
24664 (tzname[1][0] != 0 && tzname[1][0] != ' '))
24665 exit(1);
24666 #endif
24668 putenv("TZ=EST+5EDT,M4.1.0,M10.5.0");
24669 tzset();
24670 if (localtime(&groundhogday)->tm_hour != 19)
24671 exit(1);
24672 #if HAVE_TZNAME
24673 if (strcmp(tzname[0], "EST") || strcmp(tzname[1], "EDT"))
24674 exit(1);
24675 #endif
24677 putenv("TZ=AEST-10AEDT-11,M10.5.0,M3.5.0");
24678 tzset();
24679 if (localtime(&groundhogday)->tm_hour != 11)
24680 exit(1);
24681 #if HAVE_TZNAME
24682 if (strcmp(tzname[0], "AEST") || strcmp(tzname[1], "AEDT"))
24683 exit(1);
24684 #endif
24686 #if HAVE_STRUCT_TM_TM_ZONE
24687 if (strcmp(localtime(&groundhogday)->tm_zone, "AEDT"))
24688 exit(1);
24689 if (strcmp(localtime(&midyear)->tm_zone, "AEST"))
24690 exit(1);
24691 #endif
24693 exit(0);
24696 _ACEOF
24697 rm -f conftest$ac_exeext
24698 if { (ac_try="$ac_link"
24699 case "(($ac_try" in
24700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24701 *) ac_try_echo=$ac_try;;
24702 esac
24703 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24704 (eval "$ac_link") 2>&5
24705 ac_status=$?
24706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24707 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24708 { (case "(($ac_try" in
24709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24710 *) ac_try_echo=$ac_try;;
24711 esac
24712 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24713 (eval "$ac_try") 2>&5
24714 ac_status=$?
24715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24716 (exit $ac_status); }; }; then
24717 ac_cv_working_tzset=yes
24718 else
24719 echo "$as_me: program exited with status $ac_status" >&5
24720 echo "$as_me: failed program was:" >&5
24721 sed 's/^/| /' conftest.$ac_ext >&5
24723 ( exit $ac_status )
24724 ac_cv_working_tzset=no
24726 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24732 { echo "$as_me:$LINENO: result: $ac_cv_working_tzset" >&5
24733 echo "${ECHO_T}$ac_cv_working_tzset" >&6; }
24734 if test "$ac_cv_working_tzset" = yes
24735 then
24737 cat >>confdefs.h <<\_ACEOF
24738 #define HAVE_WORKING_TZSET 1
24739 _ACEOF
24743 # Look for subsecond timestamps in struct stat
24744 { echo "$as_me:$LINENO: checking for tv_nsec in struct stat" >&5
24745 echo $ECHO_N "checking for tv_nsec in struct stat... $ECHO_C" >&6; }
24746 if test "${ac_cv_stat_tv_nsec+set}" = set; then
24747 echo $ECHO_N "(cached) $ECHO_C" >&6
24748 else
24749 cat >conftest.$ac_ext <<_ACEOF
24750 /* confdefs.h. */
24751 _ACEOF
24752 cat confdefs.h >>conftest.$ac_ext
24753 cat >>conftest.$ac_ext <<_ACEOF
24754 /* end confdefs.h. */
24755 #include <sys/stat.h>
24757 main ()
24760 struct stat st;
24761 st.st_mtim.tv_nsec = 1;
24764 return 0;
24766 _ACEOF
24767 rm -f conftest.$ac_objext
24768 if { (ac_try="$ac_compile"
24769 case "(($ac_try" in
24770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24771 *) ac_try_echo=$ac_try;;
24772 esac
24773 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24774 (eval "$ac_compile") 2>conftest.er1
24775 ac_status=$?
24776 grep -v '^ *+' conftest.er1 >conftest.err
24777 rm -f conftest.er1
24778 cat conftest.err >&5
24779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24780 (exit $ac_status); } && {
24781 test -z "$ac_c_werror_flag" ||
24782 test ! -s conftest.err
24783 } && test -s conftest.$ac_objext; then
24784 ac_cv_stat_tv_nsec=yes
24785 else
24786 echo "$as_me: failed program was:" >&5
24787 sed 's/^/| /' conftest.$ac_ext >&5
24789 ac_cv_stat_tv_nsec=no
24792 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24795 { echo "$as_me:$LINENO: result: $ac_cv_stat_tv_nsec" >&5
24796 echo "${ECHO_T}$ac_cv_stat_tv_nsec" >&6; }
24797 if test "$ac_cv_stat_tv_nsec" = yes
24798 then
24800 cat >>confdefs.h <<\_ACEOF
24801 #define HAVE_STAT_TV_NSEC 1
24802 _ACEOF
24806 # Look for BSD style subsecond timestamps in struct stat
24807 { echo "$as_me:$LINENO: checking for tv_nsec2 in struct stat" >&5
24808 echo $ECHO_N "checking for tv_nsec2 in struct stat... $ECHO_C" >&6; }
24809 if test "${ac_cv_stat_tv_nsec2+set}" = set; then
24810 echo $ECHO_N "(cached) $ECHO_C" >&6
24811 else
24812 cat >conftest.$ac_ext <<_ACEOF
24813 /* confdefs.h. */
24814 _ACEOF
24815 cat confdefs.h >>conftest.$ac_ext
24816 cat >>conftest.$ac_ext <<_ACEOF
24817 /* end confdefs.h. */
24818 #include <sys/stat.h>
24820 main ()
24823 struct stat st;
24824 st.st_mtimespec.tv_nsec = 1;
24827 return 0;
24829 _ACEOF
24830 rm -f conftest.$ac_objext
24831 if { (ac_try="$ac_compile"
24832 case "(($ac_try" in
24833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24834 *) ac_try_echo=$ac_try;;
24835 esac
24836 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24837 (eval "$ac_compile") 2>conftest.er1
24838 ac_status=$?
24839 grep -v '^ *+' conftest.er1 >conftest.err
24840 rm -f conftest.er1
24841 cat conftest.err >&5
24842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24843 (exit $ac_status); } && {
24844 test -z "$ac_c_werror_flag" ||
24845 test ! -s conftest.err
24846 } && test -s conftest.$ac_objext; then
24847 ac_cv_stat_tv_nsec2=yes
24848 else
24849 echo "$as_me: failed program was:" >&5
24850 sed 's/^/| /' conftest.$ac_ext >&5
24852 ac_cv_stat_tv_nsec2=no
24855 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24858 { echo "$as_me:$LINENO: result: $ac_cv_stat_tv_nsec2" >&5
24859 echo "${ECHO_T}$ac_cv_stat_tv_nsec2" >&6; }
24860 if test "$ac_cv_stat_tv_nsec2" = yes
24861 then
24863 cat >>confdefs.h <<\_ACEOF
24864 #define HAVE_STAT_TV_NSEC2 1
24865 _ACEOF
24869 # On HP/UX 11.0, mvwdelch is a block with a return statement
24870 { echo "$as_me:$LINENO: checking whether mvwdelch is an expression" >&5
24871 echo $ECHO_N "checking whether mvwdelch is an expression... $ECHO_C" >&6; }
24872 if test "${ac_cv_mvwdelch_is_expression+set}" = set; then
24873 echo $ECHO_N "(cached) $ECHO_C" >&6
24874 else
24875 cat >conftest.$ac_ext <<_ACEOF
24876 /* confdefs.h. */
24877 _ACEOF
24878 cat confdefs.h >>conftest.$ac_ext
24879 cat >>conftest.$ac_ext <<_ACEOF
24880 /* end confdefs.h. */
24881 #include <curses.h>
24883 main ()
24886 int rtn;
24887 rtn = mvwdelch(0,0,0);
24890 return 0;
24892 _ACEOF
24893 rm -f conftest.$ac_objext
24894 if { (ac_try="$ac_compile"
24895 case "(($ac_try" in
24896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24897 *) ac_try_echo=$ac_try;;
24898 esac
24899 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24900 (eval "$ac_compile") 2>conftest.er1
24901 ac_status=$?
24902 grep -v '^ *+' conftest.er1 >conftest.err
24903 rm -f conftest.er1
24904 cat conftest.err >&5
24905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24906 (exit $ac_status); } && {
24907 test -z "$ac_c_werror_flag" ||
24908 test ! -s conftest.err
24909 } && test -s conftest.$ac_objext; then
24910 ac_cv_mvwdelch_is_expression=yes
24911 else
24912 echo "$as_me: failed program was:" >&5
24913 sed 's/^/| /' conftest.$ac_ext >&5
24915 ac_cv_mvwdelch_is_expression=no
24918 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24921 { echo "$as_me:$LINENO: result: $ac_cv_mvwdelch_is_expression" >&5
24922 echo "${ECHO_T}$ac_cv_mvwdelch_is_expression" >&6; }
24924 if test "$ac_cv_mvwdelch_is_expression" = yes
24925 then
24927 cat >>confdefs.h <<\_ACEOF
24928 #define MVWDELCH_IS_EXPRESSION 1
24929 _ACEOF
24933 { echo "$as_me:$LINENO: checking whether WINDOW has _flags" >&5
24934 echo $ECHO_N "checking whether WINDOW has _flags... $ECHO_C" >&6; }
24935 if test "${ac_cv_window_has_flags+set}" = set; then
24936 echo $ECHO_N "(cached) $ECHO_C" >&6
24937 else
24938 cat >conftest.$ac_ext <<_ACEOF
24939 /* confdefs.h. */
24940 _ACEOF
24941 cat confdefs.h >>conftest.$ac_ext
24942 cat >>conftest.$ac_ext <<_ACEOF
24943 /* end confdefs.h. */
24944 #include <curses.h>
24946 main ()
24949 WINDOW *w;
24950 w->_flags = 0;
24953 return 0;
24955 _ACEOF
24956 rm -f conftest.$ac_objext
24957 if { (ac_try="$ac_compile"
24958 case "(($ac_try" in
24959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24960 *) ac_try_echo=$ac_try;;
24961 esac
24962 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24963 (eval "$ac_compile") 2>conftest.er1
24964 ac_status=$?
24965 grep -v '^ *+' conftest.er1 >conftest.err
24966 rm -f conftest.er1
24967 cat conftest.err >&5
24968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24969 (exit $ac_status); } && {
24970 test -z "$ac_c_werror_flag" ||
24971 test ! -s conftest.err
24972 } && test -s conftest.$ac_objext; then
24973 ac_cv_window_has_flags=yes
24974 else
24975 echo "$as_me: failed program was:" >&5
24976 sed 's/^/| /' conftest.$ac_ext >&5
24978 ac_cv_window_has_flags=no
24981 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24984 { echo "$as_me:$LINENO: result: $ac_cv_window_has_flags" >&5
24985 echo "${ECHO_T}$ac_cv_window_has_flags" >&6; }
24988 if test "$ac_cv_window_has_flags" = yes
24989 then
24991 cat >>confdefs.h <<\_ACEOF
24992 #define WINDOW_HAS_FLAGS 1
24993 _ACEOF
24997 { echo "$as_me:$LINENO: checking for is_term_resized" >&5
24998 echo $ECHO_N "checking for is_term_resized... $ECHO_C" >&6; }
24999 cat >conftest.$ac_ext <<_ACEOF
25000 /* confdefs.h. */
25001 _ACEOF
25002 cat confdefs.h >>conftest.$ac_ext
25003 cat >>conftest.$ac_ext <<_ACEOF
25004 /* end confdefs.h. */
25005 #include <curses.h>
25007 main ()
25009 void *x=is_term_resized
25011 return 0;
25013 _ACEOF
25014 rm -f conftest.$ac_objext
25015 if { (ac_try="$ac_compile"
25016 case "(($ac_try" in
25017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25018 *) ac_try_echo=$ac_try;;
25019 esac
25020 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25021 (eval "$ac_compile") 2>conftest.er1
25022 ac_status=$?
25023 grep -v '^ *+' conftest.er1 >conftest.err
25024 rm -f conftest.er1
25025 cat conftest.err >&5
25026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25027 (exit $ac_status); } && {
25028 test -z "$ac_c_werror_flag" ||
25029 test ! -s conftest.err
25030 } && test -s conftest.$ac_objext; then
25032 cat >>confdefs.h <<\_ACEOF
25033 #define HAVE_CURSES_IS_TERM_RESIZED 1
25034 _ACEOF
25036 { echo "$as_me:$LINENO: result: yes" >&5
25037 echo "${ECHO_T}yes" >&6; }
25038 else
25039 echo "$as_me: failed program was:" >&5
25040 sed 's/^/| /' conftest.$ac_ext >&5
25042 { echo "$as_me:$LINENO: result: no" >&5
25043 echo "${ECHO_T}no" >&6; }
25047 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25049 { echo "$as_me:$LINENO: checking for resize_term" >&5
25050 echo $ECHO_N "checking for resize_term... $ECHO_C" >&6; }
25051 cat >conftest.$ac_ext <<_ACEOF
25052 /* confdefs.h. */
25053 _ACEOF
25054 cat confdefs.h >>conftest.$ac_ext
25055 cat >>conftest.$ac_ext <<_ACEOF
25056 /* end confdefs.h. */
25057 #include <curses.h>
25059 main ()
25061 void *x=resize_term
25063 return 0;
25065 _ACEOF
25066 rm -f conftest.$ac_objext
25067 if { (ac_try="$ac_compile"
25068 case "(($ac_try" in
25069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25070 *) ac_try_echo=$ac_try;;
25071 esac
25072 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25073 (eval "$ac_compile") 2>conftest.er1
25074 ac_status=$?
25075 grep -v '^ *+' conftest.er1 >conftest.err
25076 rm -f conftest.er1
25077 cat conftest.err >&5
25078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25079 (exit $ac_status); } && {
25080 test -z "$ac_c_werror_flag" ||
25081 test ! -s conftest.err
25082 } && test -s conftest.$ac_objext; then
25084 cat >>confdefs.h <<\_ACEOF
25085 #define HAVE_CURSES_RESIZE_TERM 1
25086 _ACEOF
25088 { echo "$as_me:$LINENO: result: yes" >&5
25089 echo "${ECHO_T}yes" >&6; }
25090 else
25091 echo "$as_me: failed program was:" >&5
25092 sed 's/^/| /' conftest.$ac_ext >&5
25094 { echo "$as_me:$LINENO: result: no" >&5
25095 echo "${ECHO_T}no" >&6; }
25099 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25101 { echo "$as_me:$LINENO: checking for resizeterm" >&5
25102 echo $ECHO_N "checking for resizeterm... $ECHO_C" >&6; }
25103 cat >conftest.$ac_ext <<_ACEOF
25104 /* confdefs.h. */
25105 _ACEOF
25106 cat confdefs.h >>conftest.$ac_ext
25107 cat >>conftest.$ac_ext <<_ACEOF
25108 /* end confdefs.h. */
25109 #include <curses.h>
25111 main ()
25113 void *x=resizeterm
25115 return 0;
25117 _ACEOF
25118 rm -f conftest.$ac_objext
25119 if { (ac_try="$ac_compile"
25120 case "(($ac_try" in
25121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25122 *) ac_try_echo=$ac_try;;
25123 esac
25124 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25125 (eval "$ac_compile") 2>conftest.er1
25126 ac_status=$?
25127 grep -v '^ *+' conftest.er1 >conftest.err
25128 rm -f conftest.er1
25129 cat conftest.err >&5
25130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25131 (exit $ac_status); } && {
25132 test -z "$ac_c_werror_flag" ||
25133 test ! -s conftest.err
25134 } && test -s conftest.$ac_objext; then
25136 cat >>confdefs.h <<\_ACEOF
25137 #define HAVE_CURSES_RESIZETERM 1
25138 _ACEOF
25140 { echo "$as_me:$LINENO: result: yes" >&5
25141 echo "${ECHO_T}yes" >&6; }
25142 else
25143 echo "$as_me: failed program was:" >&5
25144 sed 's/^/| /' conftest.$ac_ext >&5
25146 { echo "$as_me:$LINENO: result: no" >&5
25147 echo "${ECHO_T}no" >&6; }
25151 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25153 { echo "$as_me:$LINENO: checking for /dev/ptmx" >&5
25154 echo $ECHO_N "checking for /dev/ptmx... $ECHO_C" >&6; }
25156 if test -r /dev/ptmx
25157 then
25158 { echo "$as_me:$LINENO: result: yes" >&5
25159 echo "${ECHO_T}yes" >&6; }
25161 cat >>confdefs.h <<\_ACEOF
25162 #define HAVE_DEV_PTMX 1
25163 _ACEOF
25165 else
25166 { echo "$as_me:$LINENO: result: no" >&5
25167 echo "${ECHO_T}no" >&6; }
25170 { echo "$as_me:$LINENO: checking for /dev/ptc" >&5
25171 echo $ECHO_N "checking for /dev/ptc... $ECHO_C" >&6; }
25173 if test -r /dev/ptc
25174 then
25175 { echo "$as_me:$LINENO: result: yes" >&5
25176 echo "${ECHO_T}yes" >&6; }
25178 cat >>confdefs.h <<\_ACEOF
25179 #define HAVE_DEV_PTC 1
25180 _ACEOF
25182 else
25183 { echo "$as_me:$LINENO: result: no" >&5
25184 echo "${ECHO_T}no" >&6; }
25187 { echo "$as_me:$LINENO: checking for %zd printf() format support" >&5
25188 echo $ECHO_N "checking for %zd printf() format support... $ECHO_C" >&6; }
25189 if test "$cross_compiling" = yes; then
25190 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
25191 See \`config.log' for more details." >&5
25192 echo "$as_me: error: cannot run test program while cross compiling
25193 See \`config.log' for more details." >&2;}
25194 { (exit 1); exit 1; }; }
25195 else
25196 cat >conftest.$ac_ext <<_ACEOF
25197 /* confdefs.h. */
25198 _ACEOF
25199 cat confdefs.h >>conftest.$ac_ext
25200 cat >>conftest.$ac_ext <<_ACEOF
25201 /* end confdefs.h. */
25202 #include <stdio.h>
25203 #include <stddef.h>
25204 #include <string.h>
25206 #ifdef HAVE_SYS_TYPES_H
25207 #include <sys/types.h>
25208 #endif
25210 #ifdef HAVE_SSIZE_T
25211 typedef ssize_t Py_ssize_t;
25212 #elif SIZEOF_VOID_P == SIZEOF_LONG
25213 typedef long Py_ssize_t;
25214 #else
25215 typedef int Py_ssize_t;
25216 #endif
25218 int main()
25220 char buffer[256];
25222 if(sprintf(buffer, "%zd", (size_t)123) < 0)
25223 return 1;
25225 if (strcmp(buffer, "123"))
25226 return 1;
25228 if (sprintf(buffer, "%zd", (Py_ssize_t)-123) < 0)
25229 return 1;
25231 if (strcmp(buffer, "-123"))
25232 return 1;
25234 return 0;
25236 _ACEOF
25237 rm -f conftest$ac_exeext
25238 if { (ac_try="$ac_link"
25239 case "(($ac_try" in
25240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25241 *) ac_try_echo=$ac_try;;
25242 esac
25243 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25244 (eval "$ac_link") 2>&5
25245 ac_status=$?
25246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25247 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25248 { (case "(($ac_try" in
25249 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25250 *) ac_try_echo=$ac_try;;
25251 esac
25252 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25253 (eval "$ac_try") 2>&5
25254 ac_status=$?
25255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25256 (exit $ac_status); }; }; then
25257 { echo "$as_me:$LINENO: result: yes" >&5
25258 echo "${ECHO_T}yes" >&6; }
25260 cat >>confdefs.h <<\_ACEOF
25261 #define PY_FORMAT_SIZE_T "z"
25262 _ACEOF
25264 else
25265 echo "$as_me: program exited with status $ac_status" >&5
25266 echo "$as_me: failed program was:" >&5
25267 sed 's/^/| /' conftest.$ac_ext >&5
25269 ( exit $ac_status )
25270 { echo "$as_me:$LINENO: result: no" >&5
25271 echo "${ECHO_T}no" >&6; }
25273 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25278 { echo "$as_me:$LINENO: checking for socklen_t" >&5
25279 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; }
25280 if test "${ac_cv_type_socklen_t+set}" = set; then
25281 echo $ECHO_N "(cached) $ECHO_C" >&6
25282 else
25283 cat >conftest.$ac_ext <<_ACEOF
25284 /* confdefs.h. */
25285 _ACEOF
25286 cat confdefs.h >>conftest.$ac_ext
25287 cat >>conftest.$ac_ext <<_ACEOF
25288 /* end confdefs.h. */
25290 #ifdef HAVE_SYS_TYPES_H
25291 #include <sys/types.h>
25292 #endif
25293 #ifdef HAVE_SYS_SOCKET_H
25294 #include <sys/socket.h>
25295 #endif
25298 typedef socklen_t ac__type_new_;
25300 main ()
25302 if ((ac__type_new_ *) 0)
25303 return 0;
25304 if (sizeof (ac__type_new_))
25305 return 0;
25307 return 0;
25309 _ACEOF
25310 rm -f conftest.$ac_objext
25311 if { (ac_try="$ac_compile"
25312 case "(($ac_try" in
25313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25314 *) ac_try_echo=$ac_try;;
25315 esac
25316 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25317 (eval "$ac_compile") 2>conftest.er1
25318 ac_status=$?
25319 grep -v '^ *+' conftest.er1 >conftest.err
25320 rm -f conftest.er1
25321 cat conftest.err >&5
25322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25323 (exit $ac_status); } && {
25324 test -z "$ac_c_werror_flag" ||
25325 test ! -s conftest.err
25326 } && test -s conftest.$ac_objext; then
25327 ac_cv_type_socklen_t=yes
25328 else
25329 echo "$as_me: failed program was:" >&5
25330 sed 's/^/| /' conftest.$ac_ext >&5
25332 ac_cv_type_socklen_t=no
25335 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25337 { echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
25338 echo "${ECHO_T}$ac_cv_type_socklen_t" >&6; }
25339 if test $ac_cv_type_socklen_t = yes; then
25341 else
25343 cat >>confdefs.h <<\_ACEOF
25344 #define socklen_t int
25345 _ACEOF
25352 for h in `(cd $srcdir;echo Python/thread_*.h)`
25354 THREADHEADERS="$THREADHEADERS \$(srcdir)/$h"
25355 done
25358 SRCDIRS="Parser Grammar Objects Python Modules Mac"
25359 { echo "$as_me:$LINENO: checking for build directories" >&5
25360 echo $ECHO_N "checking for build directories... $ECHO_C" >&6; }
25361 for dir in $SRCDIRS; do
25362 if test ! -d $dir; then
25363 mkdir $dir
25365 done
25366 { echo "$as_me:$LINENO: result: done" >&5
25367 echo "${ECHO_T}done" >&6; }
25369 # generate output files
25370 ac_config_files="$ac_config_files Makefile.pre Modules/Setup.config Misc/python.pc"
25372 cat >confcache <<\_ACEOF
25373 # This file is a shell script that caches the results of configure
25374 # tests run on this system so they can be shared between configure
25375 # scripts and configure runs, see configure's option --config-cache.
25376 # It is not useful on other systems. If it contains results you don't
25377 # want to keep, you may remove or edit it.
25379 # config.status only pays attention to the cache file if you give it
25380 # the --recheck option to rerun configure.
25382 # `ac_cv_env_foo' variables (set or unset) will be overridden when
25383 # loading this file, other *unset* `ac_cv_foo' will be assigned the
25384 # following values.
25386 _ACEOF
25388 # The following way of writing the cache mishandles newlines in values,
25389 # but we know of no workaround that is simple, portable, and efficient.
25390 # So, we kill variables containing newlines.
25391 # Ultrix sh set writes to stderr and can't be redirected directly,
25392 # and sets the high bit in the cache file unless we assign to the vars.
25394 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
25395 eval ac_val=\$$ac_var
25396 case $ac_val in #(
25397 *${as_nl}*)
25398 case $ac_var in #(
25399 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
25400 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
25401 esac
25402 case $ac_var in #(
25403 _ | IFS | as_nl) ;; #(
25404 *) $as_unset $ac_var ;;
25405 esac ;;
25406 esac
25407 done
25409 (set) 2>&1 |
25410 case $as_nl`(ac_space=' '; set) 2>&1` in #(
25411 *${as_nl}ac_space=\ *)
25412 # `set' does not quote correctly, so add quotes (double-quote
25413 # substitution turns \\\\ into \\, and sed turns \\ into \).
25414 sed -n \
25415 "s/'/'\\\\''/g;
25416 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
25417 ;; #(
25419 # `set' quotes correctly as required by POSIX, so do not add quotes.
25420 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
25422 esac |
25423 sort
25425 sed '
25426 /^ac_cv_env_/b end
25427 t clear
25428 :clear
25429 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
25430 t end
25431 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
25432 :end' >>confcache
25433 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
25434 if test -w "$cache_file"; then
25435 test "x$cache_file" != "x/dev/null" &&
25436 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
25437 echo "$as_me: updating cache $cache_file" >&6;}
25438 cat confcache >$cache_file
25439 else
25440 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
25441 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
25444 rm -f confcache
25446 test "x$prefix" = xNONE && prefix=$ac_default_prefix
25447 # Let make expand exec_prefix.
25448 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
25450 DEFS=-DHAVE_CONFIG_H
25452 ac_libobjs=
25453 ac_ltlibobjs=
25454 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
25455 # 1. Remove the extension, and $U if already installed.
25456 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
25457 ac_i=`echo "$ac_i" | sed "$ac_script"`
25458 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
25459 # will be set to the directory where LIBOBJS objects are built.
25460 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
25461 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
25462 done
25463 LIBOBJS=$ac_libobjs
25465 LTLIBOBJS=$ac_ltlibobjs
25469 : ${CONFIG_STATUS=./config.status}
25470 ac_clean_files_save=$ac_clean_files
25471 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
25472 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
25473 echo "$as_me: creating $CONFIG_STATUS" >&6;}
25474 cat >$CONFIG_STATUS <<_ACEOF
25475 #! $SHELL
25476 # Generated by $as_me.
25477 # Run this file to recreate the current configuration.
25478 # Compiler output produced by configure, useful for debugging
25479 # configure, is in config.log if it exists.
25481 debug=false
25482 ac_cs_recheck=false
25483 ac_cs_silent=false
25484 SHELL=\${CONFIG_SHELL-$SHELL}
25485 _ACEOF
25487 cat >>$CONFIG_STATUS <<\_ACEOF
25488 ## --------------------- ##
25489 ## M4sh Initialization. ##
25490 ## --------------------- ##
25492 # Be more Bourne compatible
25493 DUALCASE=1; export DUALCASE # for MKS sh
25494 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
25495 emulate sh
25496 NULLCMD=:
25497 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
25498 # is contrary to our usage. Disable this feature.
25499 alias -g '${1+"$@"}'='"$@"'
25500 setopt NO_GLOB_SUBST
25501 else
25502 case `(set -o) 2>/dev/null` in
25503 *posix*) set -o posix ;;
25504 esac
25511 # PATH needs CR
25512 # Avoid depending upon Character Ranges.
25513 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
25514 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
25515 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
25516 as_cr_digits='0123456789'
25517 as_cr_alnum=$as_cr_Letters$as_cr_digits
25519 # The user is always right.
25520 if test "${PATH_SEPARATOR+set}" != set; then
25521 echo "#! /bin/sh" >conf$$.sh
25522 echo "exit 0" >>conf$$.sh
25523 chmod +x conf$$.sh
25524 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
25525 PATH_SEPARATOR=';'
25526 else
25527 PATH_SEPARATOR=:
25529 rm -f conf$$.sh
25532 # Support unset when possible.
25533 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
25534 as_unset=unset
25535 else
25536 as_unset=false
25540 # IFS
25541 # We need space, tab and new line, in precisely that order. Quoting is
25542 # there to prevent editors from complaining about space-tab.
25543 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
25544 # splitting by setting IFS to empty value.)
25545 as_nl='
25547 IFS=" "" $as_nl"
25549 # Find who we are. Look in the path if we contain no directory separator.
25550 case $0 in
25551 *[\\/]* ) as_myself=$0 ;;
25552 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25553 for as_dir in $PATH
25555 IFS=$as_save_IFS
25556 test -z "$as_dir" && as_dir=.
25557 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
25558 done
25559 IFS=$as_save_IFS
25562 esac
25563 # We did not find ourselves, most probably we were run as `sh COMMAND'
25564 # in which case we are not to be found in the path.
25565 if test "x$as_myself" = x; then
25566 as_myself=$0
25568 if test ! -f "$as_myself"; then
25569 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
25570 { (exit 1); exit 1; }
25573 # Work around bugs in pre-3.0 UWIN ksh.
25574 for as_var in ENV MAIL MAILPATH
25575 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
25576 done
25577 PS1='$ '
25578 PS2='> '
25579 PS4='+ '
25581 # NLS nuisances.
25582 for as_var in \
25583 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
25584 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
25585 LC_TELEPHONE LC_TIME
25587 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
25588 eval $as_var=C; export $as_var
25589 else
25590 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
25592 done
25594 # Required to use basename.
25595 if expr a : '\(a\)' >/dev/null 2>&1 &&
25596 test "X`expr 00001 : '.*\(...\)'`" = X001; then
25597 as_expr=expr
25598 else
25599 as_expr=false
25602 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
25603 as_basename=basename
25604 else
25605 as_basename=false
25609 # Name of the executable.
25610 as_me=`$as_basename -- "$0" ||
25611 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
25612 X"$0" : 'X\(//\)$' \| \
25613 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
25614 echo X/"$0" |
25615 sed '/^.*\/\([^/][^/]*\)\/*$/{
25616 s//\1/
25619 /^X\/\(\/\/\)$/{
25620 s//\1/
25623 /^X\/\(\/\).*/{
25624 s//\1/
25627 s/.*/./; q'`
25629 # CDPATH.
25630 $as_unset CDPATH
25634 as_lineno_1=$LINENO
25635 as_lineno_2=$LINENO
25636 test "x$as_lineno_1" != "x$as_lineno_2" &&
25637 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
25639 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
25640 # uniformly replaced by the line number. The first 'sed' inserts a
25641 # line-number line after each line using $LINENO; the second 'sed'
25642 # does the real work. The second script uses 'N' to pair each
25643 # line-number line with the line containing $LINENO, and appends
25644 # trailing '-' during substitution so that $LINENO is not a special
25645 # case at line end.
25646 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
25647 # scripts with optimization help from Paolo Bonzini. Blame Lee
25648 # E. McMahon (1931-1989) for sed's syntax. :-)
25649 sed -n '
25651 /[$]LINENO/=
25652 ' <$as_myself |
25653 sed '
25654 s/[$]LINENO.*/&-/
25655 t lineno
25657 :lineno
25659 :loop
25660 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
25661 t loop
25662 s/-\n.*//
25663 ' >$as_me.lineno &&
25664 chmod +x "$as_me.lineno" ||
25665 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
25666 { (exit 1); exit 1; }; }
25668 # Don't try to exec as it changes $[0], causing all sort of problems
25669 # (the dirname of $[0] is not the place where we might find the
25670 # original and so on. Autoconf is especially sensitive to this).
25671 . "./$as_me.lineno"
25672 # Exit status is that of the last command.
25673 exit
25677 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
25678 as_dirname=dirname
25679 else
25680 as_dirname=false
25683 ECHO_C= ECHO_N= ECHO_T=
25684 case `echo -n x` in
25685 -n*)
25686 case `echo 'x\c'` in
25687 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
25688 *) ECHO_C='\c';;
25689 esac;;
25691 ECHO_N='-n';;
25692 esac
25694 if expr a : '\(a\)' >/dev/null 2>&1 &&
25695 test "X`expr 00001 : '.*\(...\)'`" = X001; then
25696 as_expr=expr
25697 else
25698 as_expr=false
25701 rm -f conf$$ conf$$.exe conf$$.file
25702 if test -d conf$$.dir; then
25703 rm -f conf$$.dir/conf$$.file
25704 else
25705 rm -f conf$$.dir
25706 mkdir conf$$.dir
25708 echo >conf$$.file
25709 if ln -s conf$$.file conf$$ 2>/dev/null; then
25710 as_ln_s='ln -s'
25711 # ... but there are two gotchas:
25712 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
25713 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
25714 # In both cases, we have to default to `cp -p'.
25715 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
25716 as_ln_s='cp -p'
25717 elif ln conf$$.file conf$$ 2>/dev/null; then
25718 as_ln_s=ln
25719 else
25720 as_ln_s='cp -p'
25722 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
25723 rmdir conf$$.dir 2>/dev/null
25725 if mkdir -p . 2>/dev/null; then
25726 as_mkdir_p=:
25727 else
25728 test -d ./-p && rmdir ./-p
25729 as_mkdir_p=false
25732 if test -x / >/dev/null 2>&1; then
25733 as_test_x='test -x'
25734 else
25735 if ls -dL / >/dev/null 2>&1; then
25736 as_ls_L_option=L
25737 else
25738 as_ls_L_option=
25740 as_test_x='
25741 eval sh -c '\''
25742 if test -d "$1"; then
25743 test -d "$1/.";
25744 else
25745 case $1 in
25746 -*)set "./$1";;
25747 esac;
25748 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
25749 ???[sx]*):;;*)false;;esac;fi
25750 '\'' sh
25753 as_executable_p=$as_test_x
25755 # Sed expression to map a string onto a valid CPP name.
25756 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
25758 # Sed expression to map a string onto a valid variable name.
25759 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
25762 exec 6>&1
25764 # Save the log message, to keep $[0] and so on meaningful, and to
25765 # report actual input values of CONFIG_FILES etc. instead of their
25766 # values after options handling.
25767 ac_log="
25768 This file was extended by python $as_me 2.7, which was
25769 generated by GNU Autoconf 2.61. Invocation command line was
25771 CONFIG_FILES = $CONFIG_FILES
25772 CONFIG_HEADERS = $CONFIG_HEADERS
25773 CONFIG_LINKS = $CONFIG_LINKS
25774 CONFIG_COMMANDS = $CONFIG_COMMANDS
25775 $ $0 $@
25777 on `(hostname || uname -n) 2>/dev/null | sed 1q`
25780 _ACEOF
25782 cat >>$CONFIG_STATUS <<_ACEOF
25783 # Files that config.status was made for.
25784 config_files="$ac_config_files"
25785 config_headers="$ac_config_headers"
25787 _ACEOF
25789 cat >>$CONFIG_STATUS <<\_ACEOF
25790 ac_cs_usage="\
25791 \`$as_me' instantiates files from templates according to the
25792 current configuration.
25794 Usage: $0 [OPTIONS] [FILE]...
25796 -h, --help print this help, then exit
25797 -V, --version print version number and configuration settings, then exit
25798 -q, --quiet do not print progress messages
25799 -d, --debug don't remove temporary files
25800 --recheck update $as_me by reconfiguring in the same conditions
25801 --file=FILE[:TEMPLATE]
25802 instantiate the configuration file FILE
25803 --header=FILE[:TEMPLATE]
25804 instantiate the configuration header FILE
25806 Configuration files:
25807 $config_files
25809 Configuration headers:
25810 $config_headers
25812 Report bugs to <bug-autoconf@gnu.org>."
25814 _ACEOF
25815 cat >>$CONFIG_STATUS <<_ACEOF
25816 ac_cs_version="\\
25817 python config.status 2.7
25818 configured by $0, generated by GNU Autoconf 2.61,
25819 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
25821 Copyright (C) 2006 Free Software Foundation, Inc.
25822 This config.status script is free software; the Free Software Foundation
25823 gives unlimited permission to copy, distribute and modify it."
25825 ac_pwd='$ac_pwd'
25826 srcdir='$srcdir'
25827 INSTALL='$INSTALL'
25828 _ACEOF
25830 cat >>$CONFIG_STATUS <<\_ACEOF
25831 # If no file are specified by the user, then we need to provide default
25832 # value. By we need to know if files were specified by the user.
25833 ac_need_defaults=:
25834 while test $# != 0
25836 case $1 in
25837 --*=*)
25838 ac_option=`expr "X$1" : 'X\([^=]*\)='`
25839 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
25840 ac_shift=:
25843 ac_option=$1
25844 ac_optarg=$2
25845 ac_shift=shift
25847 esac
25849 case $ac_option in
25850 # Handling of the options.
25851 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
25852 ac_cs_recheck=: ;;
25853 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
25854 echo "$ac_cs_version"; exit ;;
25855 --debug | --debu | --deb | --de | --d | -d )
25856 debug=: ;;
25857 --file | --fil | --fi | --f )
25858 $ac_shift
25859 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
25860 ac_need_defaults=false;;
25861 --header | --heade | --head | --hea )
25862 $ac_shift
25863 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
25864 ac_need_defaults=false;;
25865 --he | --h)
25866 # Conflict between --help and --header
25867 { echo "$as_me: error: ambiguous option: $1
25868 Try \`$0 --help' for more information." >&2
25869 { (exit 1); exit 1; }; };;
25870 --help | --hel | -h )
25871 echo "$ac_cs_usage"; exit ;;
25872 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
25873 | -silent | --silent | --silen | --sile | --sil | --si | --s)
25874 ac_cs_silent=: ;;
25876 # This is an error.
25877 -*) { echo "$as_me: error: unrecognized option: $1
25878 Try \`$0 --help' for more information." >&2
25879 { (exit 1); exit 1; }; } ;;
25881 *) ac_config_targets="$ac_config_targets $1"
25882 ac_need_defaults=false ;;
25884 esac
25885 shift
25886 done
25888 ac_configure_extra_args=
25890 if $ac_cs_silent; then
25891 exec 6>/dev/null
25892 ac_configure_extra_args="$ac_configure_extra_args --silent"
25895 _ACEOF
25896 cat >>$CONFIG_STATUS <<_ACEOF
25897 if \$ac_cs_recheck; then
25898 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
25899 CONFIG_SHELL=$SHELL
25900 export CONFIG_SHELL
25901 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
25904 _ACEOF
25905 cat >>$CONFIG_STATUS <<\_ACEOF
25906 exec 5>>config.log
25908 echo
25909 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
25910 ## Running $as_me. ##
25911 _ASBOX
25912 echo "$ac_log"
25913 } >&5
25915 _ACEOF
25916 cat >>$CONFIG_STATUS <<_ACEOF
25917 _ACEOF
25919 cat >>$CONFIG_STATUS <<\_ACEOF
25921 # Handling of arguments.
25922 for ac_config_target in $ac_config_targets
25924 case $ac_config_target in
25925 "pyconfig.h") CONFIG_HEADERS="$CONFIG_HEADERS pyconfig.h" ;;
25926 "Mac/Makefile") CONFIG_FILES="$CONFIG_FILES Mac/Makefile" ;;
25927 "Mac/PythonLauncher/Makefile") CONFIG_FILES="$CONFIG_FILES Mac/PythonLauncher/Makefile" ;;
25928 "Mac/IDLE/Makefile") CONFIG_FILES="$CONFIG_FILES Mac/IDLE/Makefile" ;;
25929 "Mac/Resources/framework/Info.plist") CONFIG_FILES="$CONFIG_FILES Mac/Resources/framework/Info.plist" ;;
25930 "Mac/Resources/app/Info.plist") CONFIG_FILES="$CONFIG_FILES Mac/Resources/app/Info.plist" ;;
25931 "Makefile.pre") CONFIG_FILES="$CONFIG_FILES Makefile.pre" ;;
25932 "Modules/Setup.config") CONFIG_FILES="$CONFIG_FILES Modules/Setup.config" ;;
25933 "Misc/python.pc") CONFIG_FILES="$CONFIG_FILES Misc/python.pc" ;;
25935 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
25936 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
25937 { (exit 1); exit 1; }; };;
25938 esac
25939 done
25942 # If the user did not use the arguments to specify the items to instantiate,
25943 # then the envvar interface is used. Set only those that are not.
25944 # We use the long form for the default assignment because of an extremely
25945 # bizarre bug on SunOS 4.1.3.
25946 if $ac_need_defaults; then
25947 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
25948 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
25951 # Have a temporary directory for convenience. Make it in the build tree
25952 # simply because there is no reason against having it here, and in addition,
25953 # creating and moving files from /tmp can sometimes cause problems.
25954 # Hook for its removal unless debugging.
25955 # Note that there is a small window in which the directory will not be cleaned:
25956 # after its creation but before its name has been assigned to `$tmp'.
25957 $debug ||
25959 tmp=
25960 trap 'exit_status=$?
25961 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
25963 trap '{ (exit 1); exit 1; }' 1 2 13 15
25965 # Create a (secure) tmp directory for tmp files.
25968 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
25969 test -n "$tmp" && test -d "$tmp"
25970 } ||
25972 tmp=./conf$$-$RANDOM
25973 (umask 077 && mkdir "$tmp")
25974 } ||
25976 echo "$me: cannot create a temporary directory in ." >&2
25977 { (exit 1); exit 1; }
25981 # Set up the sed scripts for CONFIG_FILES section.
25984 # No need to generate the scripts if there are no CONFIG_FILES.
25985 # This happens for instance when ./config.status config.h
25986 if test -n "$CONFIG_FILES"; then
25988 _ACEOF
25992 ac_delim='%!_!# '
25993 for ac_last_try in false false false false false :; do
25994 cat >conf$$subs.sed <<_ACEOF
25995 SHELL!$SHELL$ac_delim
25996 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
25997 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
25998 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
25999 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
26000 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
26001 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
26002 exec_prefix!$exec_prefix$ac_delim
26003 prefix!$prefix$ac_delim
26004 program_transform_name!$program_transform_name$ac_delim
26005 bindir!$bindir$ac_delim
26006 sbindir!$sbindir$ac_delim
26007 libexecdir!$libexecdir$ac_delim
26008 datarootdir!$datarootdir$ac_delim
26009 datadir!$datadir$ac_delim
26010 sysconfdir!$sysconfdir$ac_delim
26011 sharedstatedir!$sharedstatedir$ac_delim
26012 localstatedir!$localstatedir$ac_delim
26013 includedir!$includedir$ac_delim
26014 oldincludedir!$oldincludedir$ac_delim
26015 docdir!$docdir$ac_delim
26016 infodir!$infodir$ac_delim
26017 htmldir!$htmldir$ac_delim
26018 dvidir!$dvidir$ac_delim
26019 pdfdir!$pdfdir$ac_delim
26020 psdir!$psdir$ac_delim
26021 libdir!$libdir$ac_delim
26022 localedir!$localedir$ac_delim
26023 mandir!$mandir$ac_delim
26024 DEFS!$DEFS$ac_delim
26025 ECHO_C!$ECHO_C$ac_delim
26026 ECHO_N!$ECHO_N$ac_delim
26027 ECHO_T!$ECHO_T$ac_delim
26028 LIBS!$LIBS$ac_delim
26029 build_alias!$build_alias$ac_delim
26030 host_alias!$host_alias$ac_delim
26031 target_alias!$target_alias$ac_delim
26032 VERSION!$VERSION$ac_delim
26033 SOVERSION!$SOVERSION$ac_delim
26034 CONFIG_ARGS!$CONFIG_ARGS$ac_delim
26035 UNIVERSALSDK!$UNIVERSALSDK$ac_delim
26036 ARCH_RUN_32BIT!$ARCH_RUN_32BIT$ac_delim
26037 PYTHONFRAMEWORK!$PYTHONFRAMEWORK$ac_delim
26038 PYTHONFRAMEWORKIDENTIFIER!$PYTHONFRAMEWORKIDENTIFIER$ac_delim
26039 PYTHONFRAMEWORKDIR!$PYTHONFRAMEWORKDIR$ac_delim
26040 PYTHONFRAMEWORKPREFIX!$PYTHONFRAMEWORKPREFIX$ac_delim
26041 PYTHONFRAMEWORKINSTALLDIR!$PYTHONFRAMEWORKINSTALLDIR$ac_delim
26042 FRAMEWORKINSTALLFIRST!$FRAMEWORKINSTALLFIRST$ac_delim
26043 FRAMEWORKINSTALLLAST!$FRAMEWORKINSTALLLAST$ac_delim
26044 FRAMEWORKALTINSTALLFIRST!$FRAMEWORKALTINSTALLFIRST$ac_delim
26045 FRAMEWORKALTINSTALLLAST!$FRAMEWORKALTINSTALLLAST$ac_delim
26046 FRAMEWORKUNIXTOOLSPREFIX!$FRAMEWORKUNIXTOOLSPREFIX$ac_delim
26047 MACHDEP!$MACHDEP$ac_delim
26048 SGI_ABI!$SGI_ABI$ac_delim
26049 EXTRAPLATDIR!$EXTRAPLATDIR$ac_delim
26050 EXTRAMACHDEPPATH!$EXTRAMACHDEPPATH$ac_delim
26051 CONFIGURE_MACOSX_DEPLOYMENT_TARGET!$CONFIGURE_MACOSX_DEPLOYMENT_TARGET$ac_delim
26052 EXPORT_MACOSX_DEPLOYMENT_TARGET!$EXPORT_MACOSX_DEPLOYMENT_TARGET$ac_delim
26053 CC!$CC$ac_delim
26054 CFLAGS!$CFLAGS$ac_delim
26055 LDFLAGS!$LDFLAGS$ac_delim
26056 CPPFLAGS!$CPPFLAGS$ac_delim
26057 ac_ct_CC!$ac_ct_CC$ac_delim
26058 EXEEXT!$EXEEXT$ac_delim
26059 OBJEXT!$OBJEXT$ac_delim
26060 CXX!$CXX$ac_delim
26061 MAINCC!$MAINCC$ac_delim
26062 CPP!$CPP$ac_delim
26063 GREP!$GREP$ac_delim
26064 EGREP!$EGREP$ac_delim
26065 BUILDEXEEXT!$BUILDEXEEXT$ac_delim
26066 LIBRARY!$LIBRARY$ac_delim
26067 LDLIBRARY!$LDLIBRARY$ac_delim
26068 DLLLIBRARY!$DLLLIBRARY$ac_delim
26069 BLDLIBRARY!$BLDLIBRARY$ac_delim
26070 LDLIBRARYDIR!$LDLIBRARYDIR$ac_delim
26071 INSTSONAME!$INSTSONAME$ac_delim
26072 RUNSHARED!$RUNSHARED$ac_delim
26073 LINKCC!$LINKCC$ac_delim
26074 GNULD!$GNULD$ac_delim
26075 RANLIB!$RANLIB$ac_delim
26076 AR!$AR$ac_delim
26077 ARFLAGS!$ARFLAGS$ac_delim
26078 SVNVERSION!$SVNVERSION$ac_delim
26079 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
26080 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
26081 INSTALL_DATA!$INSTALL_DATA$ac_delim
26082 LN!$LN$ac_delim
26083 OPT!$OPT$ac_delim
26084 BASECFLAGS!$BASECFLAGS$ac_delim
26085 UNIVERSAL_ARCH_FLAGS!$UNIVERSAL_ARCH_FLAGS$ac_delim
26086 OTHER_LIBTOOL_OPT!$OTHER_LIBTOOL_OPT$ac_delim
26087 LIBTOOL_CRUFT!$LIBTOOL_CRUFT$ac_delim
26088 SO!$SO$ac_delim
26089 LDSHARED!$LDSHARED$ac_delim
26090 BLDSHARED!$BLDSHARED$ac_delim
26091 CCSHARED!$CCSHARED$ac_delim
26092 _ACEOF
26094 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
26095 break
26096 elif $ac_last_try; then
26097 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
26098 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
26099 { (exit 1); exit 1; }; }
26100 else
26101 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
26103 done
26105 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
26106 if test -n "$ac_eof"; then
26107 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
26108 ac_eof=`expr $ac_eof + 1`
26111 cat >>$CONFIG_STATUS <<_ACEOF
26112 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
26113 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
26114 _ACEOF
26115 sed '
26116 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
26117 s/^/s,@/; s/!/@,|#_!!_#|/
26120 s/'"$ac_delim"'$/,g/; t
26121 s/$/\\/; p
26122 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
26123 ' >>$CONFIG_STATUS <conf$$subs.sed
26124 rm -f conf$$subs.sed
26125 cat >>$CONFIG_STATUS <<_ACEOF
26126 CEOF$ac_eof
26127 _ACEOF
26130 ac_delim='%!_!# '
26131 for ac_last_try in false false false false false :; do
26132 cat >conf$$subs.sed <<_ACEOF
26133 LINKFORSHARED!$LINKFORSHARED$ac_delim
26134 CFLAGSFORSHARED!$CFLAGSFORSHARED$ac_delim
26135 SHLIBS!$SHLIBS$ac_delim
26136 USE_SIGNAL_MODULE!$USE_SIGNAL_MODULE$ac_delim
26137 SIGNAL_OBJS!$SIGNAL_OBJS$ac_delim
26138 USE_THREAD_MODULE!$USE_THREAD_MODULE$ac_delim
26139 LDLAST!$LDLAST$ac_delim
26140 THREADOBJ!$THREADOBJ$ac_delim
26141 DLINCLDIR!$DLINCLDIR$ac_delim
26142 DYNLOADFILE!$DYNLOADFILE$ac_delim
26143 MACHDEP_OBJS!$MACHDEP_OBJS$ac_delim
26144 TRUE!$TRUE$ac_delim
26145 LIBOBJS!$LIBOBJS$ac_delim
26146 HAVE_GETHOSTBYNAME_R_6_ARG!$HAVE_GETHOSTBYNAME_R_6_ARG$ac_delim
26147 HAVE_GETHOSTBYNAME_R_5_ARG!$HAVE_GETHOSTBYNAME_R_5_ARG$ac_delim
26148 HAVE_GETHOSTBYNAME_R_3_ARG!$HAVE_GETHOSTBYNAME_R_3_ARG$ac_delim
26149 HAVE_GETHOSTBYNAME_R!$HAVE_GETHOSTBYNAME_R$ac_delim
26150 HAVE_GETHOSTBYNAME!$HAVE_GETHOSTBYNAME$ac_delim
26151 LIBM!$LIBM$ac_delim
26152 LIBC!$LIBC$ac_delim
26153 UNICODE_OBJS!$UNICODE_OBJS$ac_delim
26154 THREADHEADERS!$THREADHEADERS$ac_delim
26155 SRCDIRS!$SRCDIRS$ac_delim
26156 LTLIBOBJS!$LTLIBOBJS$ac_delim
26157 _ACEOF
26159 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 24; then
26160 break
26161 elif $ac_last_try; then
26162 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
26163 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
26164 { (exit 1); exit 1; }; }
26165 else
26166 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
26168 done
26170 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
26171 if test -n "$ac_eof"; then
26172 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
26173 ac_eof=`expr $ac_eof + 1`
26176 cat >>$CONFIG_STATUS <<_ACEOF
26177 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
26178 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
26179 _ACEOF
26180 sed '
26181 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
26182 s/^/s,@/; s/!/@,|#_!!_#|/
26185 s/'"$ac_delim"'$/,g/; t
26186 s/$/\\/; p
26187 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
26188 ' >>$CONFIG_STATUS <conf$$subs.sed
26189 rm -f conf$$subs.sed
26190 cat >>$CONFIG_STATUS <<_ACEOF
26191 :end
26192 s/|#_!!_#|//g
26193 CEOF$ac_eof
26194 _ACEOF
26197 # VPATH may cause trouble with some makes, so we remove $(srcdir),
26198 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
26199 # trailing colons and then remove the whole line if VPATH becomes empty
26200 # (actually we leave an empty line to preserve line numbers).
26201 if test "x$srcdir" = x.; then
26202 ac_vpsub='/^[ ]*VPATH[ ]*=/{
26203 s/:*\$(srcdir):*/:/
26204 s/:*\${srcdir}:*/:/
26205 s/:*@srcdir@:*/:/
26206 s/^\([^=]*=[ ]*\):*/\1/
26207 s/:*$//
26208 s/^[^=]*=[ ]*$//
26212 cat >>$CONFIG_STATUS <<\_ACEOF
26213 fi # test -n "$CONFIG_FILES"
26216 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS
26218 case $ac_tag in
26219 :[FHLC]) ac_mode=$ac_tag; continue;;
26220 esac
26221 case $ac_mode$ac_tag in
26222 :[FHL]*:*);;
26223 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
26224 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
26225 { (exit 1); exit 1; }; };;
26226 :[FH]-) ac_tag=-:-;;
26227 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
26228 esac
26229 ac_save_IFS=$IFS
26230 IFS=:
26231 set x $ac_tag
26232 IFS=$ac_save_IFS
26233 shift
26234 ac_file=$1
26235 shift
26237 case $ac_mode in
26238 :L) ac_source=$1;;
26239 :[FH])
26240 ac_file_inputs=
26241 for ac_f
26243 case $ac_f in
26244 -) ac_f="$tmp/stdin";;
26245 *) # Look for the file first in the build tree, then in the source tree
26246 # (if the path is not absolute). The absolute path cannot be DOS-style,
26247 # because $ac_f cannot contain `:'.
26248 test -f "$ac_f" ||
26249 case $ac_f in
26250 [\\/$]*) false;;
26251 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
26252 esac ||
26253 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
26254 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
26255 { (exit 1); exit 1; }; };;
26256 esac
26257 ac_file_inputs="$ac_file_inputs $ac_f"
26258 done
26260 # Let's still pretend it is `configure' which instantiates (i.e., don't
26261 # use $as_me), people would be surprised to read:
26262 # /* config.h. Generated by config.status. */
26263 configure_input="Generated from "`IFS=:
26264 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
26265 if test x"$ac_file" != x-; then
26266 configure_input="$ac_file. $configure_input"
26267 { echo "$as_me:$LINENO: creating $ac_file" >&5
26268 echo "$as_me: creating $ac_file" >&6;}
26271 case $ac_tag in
26272 *:-:* | *:-) cat >"$tmp/stdin";;
26273 esac
26275 esac
26277 ac_dir=`$as_dirname -- "$ac_file" ||
26278 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26279 X"$ac_file" : 'X\(//\)[^/]' \| \
26280 X"$ac_file" : 'X\(//\)$' \| \
26281 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
26282 echo X"$ac_file" |
26283 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26284 s//\1/
26287 /^X\(\/\/\)[^/].*/{
26288 s//\1/
26291 /^X\(\/\/\)$/{
26292 s//\1/
26295 /^X\(\/\).*/{
26296 s//\1/
26299 s/.*/./; q'`
26300 { as_dir="$ac_dir"
26301 case $as_dir in #(
26302 -*) as_dir=./$as_dir;;
26303 esac
26304 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
26305 as_dirs=
26306 while :; do
26307 case $as_dir in #(
26308 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
26309 *) as_qdir=$as_dir;;
26310 esac
26311 as_dirs="'$as_qdir' $as_dirs"
26312 as_dir=`$as_dirname -- "$as_dir" ||
26313 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26314 X"$as_dir" : 'X\(//\)[^/]' \| \
26315 X"$as_dir" : 'X\(//\)$' \| \
26316 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
26317 echo X"$as_dir" |
26318 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26319 s//\1/
26322 /^X\(\/\/\)[^/].*/{
26323 s//\1/
26326 /^X\(\/\/\)$/{
26327 s//\1/
26330 /^X\(\/\).*/{
26331 s//\1/
26334 s/.*/./; q'`
26335 test -d "$as_dir" && break
26336 done
26337 test -z "$as_dirs" || eval "mkdir $as_dirs"
26338 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
26339 echo "$as_me: error: cannot create directory $as_dir" >&2;}
26340 { (exit 1); exit 1; }; }; }
26341 ac_builddir=.
26343 case "$ac_dir" in
26344 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
26346 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
26347 # A ".." for each directory in $ac_dir_suffix.
26348 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
26349 case $ac_top_builddir_sub in
26350 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
26351 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
26352 esac ;;
26353 esac
26354 ac_abs_top_builddir=$ac_pwd
26355 ac_abs_builddir=$ac_pwd$ac_dir_suffix
26356 # for backward compatibility:
26357 ac_top_builddir=$ac_top_build_prefix
26359 case $srcdir in
26360 .) # We are building in place.
26361 ac_srcdir=.
26362 ac_top_srcdir=$ac_top_builddir_sub
26363 ac_abs_top_srcdir=$ac_pwd ;;
26364 [\\/]* | ?:[\\/]* ) # Absolute name.
26365 ac_srcdir=$srcdir$ac_dir_suffix;
26366 ac_top_srcdir=$srcdir
26367 ac_abs_top_srcdir=$srcdir ;;
26368 *) # Relative name.
26369 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
26370 ac_top_srcdir=$ac_top_build_prefix$srcdir
26371 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
26372 esac
26373 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
26376 case $ac_mode in
26379 # CONFIG_FILE
26382 case $INSTALL in
26383 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
26384 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
26385 esac
26386 _ACEOF
26388 cat >>$CONFIG_STATUS <<\_ACEOF
26389 # If the template does not know about datarootdir, expand it.
26390 # FIXME: This hack should be removed a few years after 2.60.
26391 ac_datarootdir_hack=; ac_datarootdir_seen=
26393 case `sed -n '/datarootdir/ {
26397 /@datadir@/p
26398 /@docdir@/p
26399 /@infodir@/p
26400 /@localedir@/p
26401 /@mandir@/p
26402 ' $ac_file_inputs` in
26403 *datarootdir*) ac_datarootdir_seen=yes;;
26404 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
26405 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
26406 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
26407 _ACEOF
26408 cat >>$CONFIG_STATUS <<_ACEOF
26409 ac_datarootdir_hack='
26410 s&@datadir@&$datadir&g
26411 s&@docdir@&$docdir&g
26412 s&@infodir@&$infodir&g
26413 s&@localedir@&$localedir&g
26414 s&@mandir@&$mandir&g
26415 s&\\\${datarootdir}&$datarootdir&g' ;;
26416 esac
26417 _ACEOF
26419 # Neutralize VPATH when `$srcdir' = `.'.
26420 # Shell code in configure.ac might set extrasub.
26421 # FIXME: do we really want to maintain this feature?
26422 cat >>$CONFIG_STATUS <<_ACEOF
26423 sed "$ac_vpsub
26424 $extrasub
26425 _ACEOF
26426 cat >>$CONFIG_STATUS <<\_ACEOF
26428 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
26429 s&@configure_input@&$configure_input&;t t
26430 s&@top_builddir@&$ac_top_builddir_sub&;t t
26431 s&@srcdir@&$ac_srcdir&;t t
26432 s&@abs_srcdir@&$ac_abs_srcdir&;t t
26433 s&@top_srcdir@&$ac_top_srcdir&;t t
26434 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
26435 s&@builddir@&$ac_builddir&;t t
26436 s&@abs_builddir@&$ac_abs_builddir&;t t
26437 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
26438 s&@INSTALL@&$ac_INSTALL&;t t
26439 $ac_datarootdir_hack
26440 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
26442 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
26443 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
26444 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
26445 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
26446 which seems to be undefined. Please make sure it is defined." >&5
26447 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
26448 which seems to be undefined. Please make sure it is defined." >&2;}
26450 rm -f "$tmp/stdin"
26451 case $ac_file in
26452 -) cat "$tmp/out"; rm -f "$tmp/out";;
26453 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
26454 esac
26458 # CONFIG_HEADER
26460 _ACEOF
26462 # Transform confdefs.h into a sed script `conftest.defines', that
26463 # substitutes the proper values into config.h.in to produce config.h.
26464 rm -f conftest.defines conftest.tail
26465 # First, append a space to every undef/define line, to ease matching.
26466 echo 's/$/ /' >conftest.defines
26467 # Then, protect against being on the right side of a sed subst, or in
26468 # an unquoted here document, in config.status. If some macros were
26469 # called several times there might be several #defines for the same
26470 # symbol, which is useless. But do not sort them, since the last
26471 # AC_DEFINE must be honored.
26472 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
26473 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
26474 # NAME is the cpp macro being defined, VALUE is the value it is being given.
26475 # PARAMS is the parameter list in the macro definition--in most cases, it's
26476 # just an empty string.
26477 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
26478 ac_dB='\\)[ (].*,\\1define\\2'
26479 ac_dC=' '
26480 ac_dD=' ,'
26482 uniq confdefs.h |
26483 sed -n '
26484 t rset
26485 :rset
26486 s/^[ ]*#[ ]*define[ ][ ]*//
26487 t ok
26490 s/[\\&,]/\\&/g
26491 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
26492 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
26493 ' >>conftest.defines
26495 # Remove the space that was appended to ease matching.
26496 # Then replace #undef with comments. This is necessary, for
26497 # example, in the case of _POSIX_SOURCE, which is predefined and required
26498 # on some systems where configure will not decide to define it.
26499 # (The regexp can be short, since the line contains either #define or #undef.)
26500 echo 's/ $//
26501 s,^[ #]*u.*,/* & */,' >>conftest.defines
26503 # Break up conftest.defines:
26504 ac_max_sed_lines=50
26506 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
26507 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
26508 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
26509 # et cetera.
26510 ac_in='$ac_file_inputs'
26511 ac_out='"$tmp/out1"'
26512 ac_nxt='"$tmp/out2"'
26514 while :
26516 # Write a here document:
26517 cat >>$CONFIG_STATUS <<_ACEOF
26518 # First, check the format of the line:
26519 cat >"\$tmp/defines.sed" <<\\CEOF
26520 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
26521 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
26523 :def
26524 _ACEOF
26525 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
26526 echo 'CEOF
26527 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
26528 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
26529 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
26530 grep . conftest.tail >/dev/null || break
26531 rm -f conftest.defines
26532 mv conftest.tail conftest.defines
26533 done
26534 rm -f conftest.defines conftest.tail
26536 echo "ac_result=$ac_in" >>$CONFIG_STATUS
26537 cat >>$CONFIG_STATUS <<\_ACEOF
26538 if test x"$ac_file" != x-; then
26539 echo "/* $configure_input */" >"$tmp/config.h"
26540 cat "$ac_result" >>"$tmp/config.h"
26541 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
26542 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
26543 echo "$as_me: $ac_file is unchanged" >&6;}
26544 else
26545 rm -f $ac_file
26546 mv "$tmp/config.h" $ac_file
26548 else
26549 echo "/* $configure_input */"
26550 cat "$ac_result"
26552 rm -f "$tmp/out12"
26556 esac
26558 done # for ac_tag
26561 { (exit 0); exit 0; }
26562 _ACEOF
26563 chmod +x $CONFIG_STATUS
26564 ac_clean_files=$ac_clean_files_save
26567 # configure is writing to config.log, and then calls config.status.
26568 # config.status does its own redirection, appending to config.log.
26569 # Unfortunately, on DOS this fails, as config.log is still kept open
26570 # by configure, so config.status won't be able to write to it; its
26571 # output is simply discarded. So we exec the FD to /dev/null,
26572 # effectively closing config.log, so it can be properly (re)opened and
26573 # appended to by config.status. When coming back to configure, we
26574 # need to make the FD available again.
26575 if test "$no_create" != yes; then
26576 ac_cs_success=:
26577 ac_config_status_args=
26578 test "$silent" = yes &&
26579 ac_config_status_args="$ac_config_status_args --quiet"
26580 exec 5>/dev/null
26581 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
26582 exec 5>>config.log
26583 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
26584 # would make configure fail if this is the last instruction.
26585 $ac_cs_success || { (exit 1); exit 1; }
26589 echo "creating Modules/Setup"
26590 if test ! -f Modules/Setup
26591 then
26592 cp $srcdir/Modules/Setup.dist Modules/Setup
26595 echo "creating Modules/Setup.local"
26596 if test ! -f Modules/Setup.local
26597 then
26598 echo "# Edit this file for local setup changes" >Modules/Setup.local
26601 echo "creating Makefile"
26602 $SHELL $srcdir/Modules/makesetup -c $srcdir/Modules/config.c.in \
26603 -s Modules Modules/Setup.config \
26604 Modules/Setup.local Modules/Setup
26606 case $ac_sys_system in
26607 BeOS)
26608 { echo "$as_me:$LINENO: WARNING:
26610 Support for BeOS is deprecated as of Python 2.6.
26611 See PEP 11 for the gory details.
26612 " >&5
26613 echo "$as_me: WARNING:
26615 Support for BeOS is deprecated as of Python 2.6.
26616 See PEP 11 for the gory details.
26617 " >&2;}
26619 *) ;;
26620 esac
26622 mv config.c Modules