make sure files are closed using the with statement
[python.git] / configure
blob910542ae67982ff3f22fab41c3f11b7f67f8362c
1 #! /bin/sh
2 # From configure.in Revision: 72445 .
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://www.python.org/python-bugs>.
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://www.python.org/python-bugs'
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://www.python.org/python-bugs>.
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 exported"
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://www.python.org/python-bugs ##
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://www.python.org/python-bugs ##
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://www.python.org/python-bugs ##
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 else
13376 { echo "$as_me:$LINENO: result: no" >&5
13377 echo "${ECHO_T}no" >&6; }
13380 { echo "$as_me:$LINENO: checking for dyld" >&5
13381 echo $ECHO_N "checking for dyld... $ECHO_C" >&6; }
13382 case $ac_sys_system/$ac_sys_release in
13383 Darwin/*)
13385 cat >>confdefs.h <<\_ACEOF
13386 #define WITH_DYLD 1
13387 _ACEOF
13389 { echo "$as_me:$LINENO: result: always on for Darwin" >&5
13390 echo "${ECHO_T}always on for Darwin" >&6; }
13393 { echo "$as_me:$LINENO: result: no" >&5
13394 echo "${ECHO_T}no" >&6; }
13396 esac
13398 # Set info about shared libraries.
13404 # SO is the extension of shared libraries `(including the dot!)
13405 # -- usually .so, .sl on HP-UX, .dll on Cygwin
13406 { echo "$as_me:$LINENO: checking SO" >&5
13407 echo $ECHO_N "checking SO... $ECHO_C" >&6; }
13408 if test -z "$SO"
13409 then
13410 case $ac_sys_system in
13411 hp*|HP*)
13412 case `uname -m` in
13413 ia64) SO=.so;;
13414 *) SO=.sl;;
13415 esac
13417 CYGWIN*) SO=.dll;;
13418 *) SO=.so;;
13419 esac
13420 else
13421 # this might also be a termcap variable, see #610332
13422 echo
13423 echo '====================================================================='
13424 echo '+ +'
13425 echo '+ WARNING: You have set SO in your environment. +'
13426 echo '+ Do you really mean to change the extension for shared libraries? +'
13427 echo '+ Continuing in 10 seconds to let you to ponder. +'
13428 echo '+ +'
13429 echo '====================================================================='
13430 sleep 10
13432 { echo "$as_me:$LINENO: result: $SO" >&5
13433 echo "${ECHO_T}$SO" >&6; }
13436 cat >>confdefs.h <<_ACEOF
13437 #define SHLIB_EXT "$SO"
13438 _ACEOF
13440 # LDSHARED is the ld *command* used to create shared library
13441 # -- "cc -G" on SunOS 5.x, "ld -shared" on IRIX 5
13442 # (Shared libraries in this instance are shared modules to be loaded into
13443 # Python, as opposed to building Python itself as a shared library.)
13444 { echo "$as_me:$LINENO: checking LDSHARED" >&5
13445 echo $ECHO_N "checking LDSHARED... $ECHO_C" >&6; }
13446 if test -z "$LDSHARED"
13447 then
13448 case $ac_sys_system/$ac_sys_release in
13449 AIX*)
13450 BLDSHARED="\$(srcdir)/Modules/ld_so_aix \$(CC) -bI:Modules/python.exp"
13451 LDSHARED="\$(BINLIBDEST)/config/ld_so_aix \$(CC) -bI:\$(BINLIBDEST)/config/python.exp"
13453 BeOS*)
13454 BLDSHARED="\$(srcdir)/Modules/ld_so_beos $LDLIBRARY"
13455 LDSHARED="\$(BINLIBDEST)/config/ld_so_beos \$(LIBDIR)/$LDLIBRARY"
13457 IRIX/5*) LDSHARED="ld -shared";;
13458 IRIX*/6*) LDSHARED="ld ${SGI_ABI} -shared -all";;
13459 SunOS/5*)
13460 if test "$GCC" = "yes"
13461 then LDSHARED='$(CC) -shared'
13462 else LDSHARED='$(CC) -G';
13463 fi ;;
13464 hp*|HP*)
13465 if test "$GCC" = "yes"
13466 then LDSHARED='$(CC) -shared'
13467 else LDSHARED='ld -b';
13468 fi ;;
13469 OSF*) LDSHARED="ld -shared -expect_unresolved \"*\"";;
13470 Darwin/1.3*)
13471 LDSHARED='$(CC) $(LDFLAGS) -bundle'
13472 if test "$enable_framework" ; then
13473 # Link against the framework. All externals should be defined.
13474 BLDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
13475 LDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
13476 else
13477 # No framework. Ignore undefined symbols, assuming they come from Python
13478 LDSHARED="$LDSHARED -undefined suppress"
13479 fi ;;
13480 Darwin/1.4*|Darwin/5.*|Darwin/6.*)
13481 LDSHARED='$(CC) $(LDFLAGS) -bundle'
13482 if test "$enable_framework" ; then
13483 # Link against the framework. All externals should be defined.
13484 BLDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
13485 LDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
13486 else
13487 # No framework, use the Python app as bundle-loader
13488 BLDSHARED="$LDSHARED "'-bundle_loader $(BUILDPYTHON)'
13489 LDSHARED="$LDSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)'
13490 fi ;;
13491 Darwin/*)
13492 # Use -undefined dynamic_lookup whenever possible (10.3 and later).
13493 # This allows an extension to be used in any Python
13495 if test ${MACOSX_DEPLOYMENT_TARGET} '>' 10.2
13496 then
13497 if test "${enable_universalsdk}"; then
13498 LDFLAGS="${UNIVERSAL_ARCH_FLAGS} -isysroot ${UNIVERSALSDK} ${LDFLAGS}"
13500 LDSHARED='$(CC) $(LDFLAGS) -bundle -undefined dynamic_lookup'
13501 BLDSHARED="$LDSHARED"
13502 else
13503 LDSHARED='$(CC) $(LDFLAGS) -bundle'
13504 if test "$enable_framework" ; then
13505 # Link against the framework. All externals should be defined.
13506 BLDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
13507 LDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
13508 else
13509 # No framework, use the Python app as bundle-loader
13510 BLDSHARED="$LDSHARED "'-bundle_loader $(BUILDPYTHON)'
13511 LDSHARED="$LDSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)'
13515 Linux*|GNU*|QNX*) LDSHARED='$(CC) -shared';;
13516 BSD/OS*/4*) LDSHARED="gcc -shared";;
13517 FreeBSD*)
13518 if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]
13519 then
13520 LDSHARED="$CC -shared ${LDFLAGS}"
13521 else
13522 LDSHARED="ld -Bshareable ${LDFLAGS}"
13523 fi;;
13524 OpenBSD*)
13525 if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]
13526 then
13527 LDSHARED='$(CC) -shared $(CCSHARED) ${LDFLAGS}'
13528 else
13529 case `uname -r` in
13530 [01].* | 2.[0-7] | 2.[0-7].*)
13531 LDSHARED="ld -Bshareable ${LDFLAGS}"
13534 LDSHARED='$(CC) -shared $(CCSHARED) ${LDFLAGS}'
13536 esac
13537 fi;;
13538 NetBSD*|DragonFly*) LDSHARED="cc -shared ${LDFLAGS}";;
13539 OpenUNIX*|UnixWare*)
13540 if test "$GCC" = "yes"
13541 then LDSHARED='$(CC) -shared'
13542 else LDSHARED='$(CC) -G'
13543 fi;;
13544 SCO_SV*) LDSHARED='$(CC) -Wl,-G,-Bexport';;
13545 Monterey*) LDSHARED="cc -G -dy -Bdynamic -Bexport -L/usr/lib/ia64l64";;
13546 CYGWIN*) LDSHARED="gcc -shared -Wl,--enable-auto-image-base";;
13547 atheos*) LDSHARED="gcc -shared";;
13548 *) LDSHARED="ld";;
13549 esac
13551 { echo "$as_me:$LINENO: result: $LDSHARED" >&5
13552 echo "${ECHO_T}$LDSHARED" >&6; }
13553 BLDSHARED=${BLDSHARED-$LDSHARED}
13554 # CCSHARED are the C *flags* used to create objects to go into a shared
13555 # library (module) -- this is only needed for a few systems
13556 { echo "$as_me:$LINENO: checking CCSHARED" >&5
13557 echo $ECHO_N "checking CCSHARED... $ECHO_C" >&6; }
13558 if test -z "$CCSHARED"
13559 then
13560 case $ac_sys_system/$ac_sys_release in
13561 SunOS*) if test "$GCC" = yes;
13562 then CCSHARED="-fPIC";
13563 elif test `uname -p` = sparc;
13564 then CCSHARED="-xcode=pic32";
13565 else CCSHARED="-Kpic";
13566 fi;;
13567 hp*|HP*) if test "$GCC" = yes;
13568 then CCSHARED="-fPIC";
13569 else CCSHARED="+z";
13570 fi;;
13571 Linux*|GNU*) CCSHARED="-fPIC";;
13572 BSD/OS*/4*) CCSHARED="-fpic";;
13573 FreeBSD*|NetBSD*|OpenBSD*|DragonFly*) CCSHARED="-fPIC";;
13574 OpenUNIX*|UnixWare*)
13575 if test "$GCC" = "yes"
13576 then CCSHARED="-fPIC"
13577 else CCSHARED="-KPIC"
13578 fi;;
13579 SCO_SV*)
13580 if test "$GCC" = "yes"
13581 then CCSHARED="-fPIC"
13582 else CCSHARED="-Kpic -belf"
13583 fi;;
13584 Monterey*) CCSHARED="-G";;
13585 IRIX*/6*) case $CC in
13586 *gcc*) CCSHARED="-shared";;
13587 *) CCSHARED="";;
13588 esac;;
13589 atheos*) CCSHARED="-fPIC";;
13590 esac
13592 { echo "$as_me:$LINENO: result: $CCSHARED" >&5
13593 echo "${ECHO_T}$CCSHARED" >&6; }
13594 # LINKFORSHARED are the flags passed to the $(CC) command that links
13595 # the python executable -- this is only needed for a few systems
13596 { echo "$as_me:$LINENO: checking LINKFORSHARED" >&5
13597 echo $ECHO_N "checking LINKFORSHARED... $ECHO_C" >&6; }
13598 if test -z "$LINKFORSHARED"
13599 then
13600 case $ac_sys_system/$ac_sys_release in
13601 AIX*) LINKFORSHARED='-Wl,-bE:Modules/python.exp -lld';;
13602 hp*|HP*)
13603 LINKFORSHARED="-Wl,-E -Wl,+s";;
13604 # LINKFORSHARED="-Wl,-E -Wl,+s -Wl,+b\$(BINLIBDEST)/lib-dynload";;
13605 BSD/OS/4*) LINKFORSHARED="-Xlinker -export-dynamic";;
13606 Linux*|GNU*) LINKFORSHARED="-Xlinker -export-dynamic";;
13607 # -u libsys_s pulls in all symbols in libsys
13608 Darwin/*)
13609 # -u _PyMac_Error is needed to pull in the mac toolbox glue,
13610 # which is
13611 # not used by the core itself but which needs to be in the core so
13612 # that dynamically loaded extension modules have access to it.
13613 # -prebind is no longer used, because it actually seems to give a
13614 # slowdown in stead of a speedup, maybe due to the large number of
13615 # dynamic loads Python does.
13617 LINKFORSHARED="$extra_undefs"
13618 if test "$enable_framework"
13619 then
13620 LINKFORSHARED="$LINKFORSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
13622 LINKFORSHARED="$LINKFORSHARED";;
13623 OpenUNIX*|UnixWare*) LINKFORSHARED="-Wl,-Bexport";;
13624 SCO_SV*) LINKFORSHARED="-Wl,-Bexport";;
13625 ReliantUNIX*) LINKFORSHARED="-W1 -Blargedynsym";;
13626 FreeBSD*|NetBSD*|OpenBSD*|DragonFly*)
13627 if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]
13628 then
13629 LINKFORSHARED="-Wl,--export-dynamic"
13630 fi;;
13631 SunOS/5*) case $CC in
13632 *gcc*)
13633 if $CC -Xlinker --help 2>&1 | grep export-dynamic >/dev/null
13634 then
13635 LINKFORSHARED="-Xlinker --export-dynamic"
13636 fi;;
13637 esac;;
13638 CYGWIN*)
13639 if test $enable_shared = "no"
13640 then
13641 LINKFORSHARED='-Wl,--out-implib=$(LDLIBRARY)'
13642 fi;;
13643 QNX*)
13644 # -Wl,-E causes the symbols to be added to the dynamic
13645 # symbol table so that they can be found when a module
13646 # is loaded. -N 2048K causes the stack size to be set
13647 # to 2048 kilobytes so that the stack doesn't overflow
13648 # when running test_compile.py.
13649 LINKFORSHARED='-Wl,-E -N 2048K';;
13650 esac
13652 { echo "$as_me:$LINENO: result: $LINKFORSHARED" >&5
13653 echo "${ECHO_T}$LINKFORSHARED" >&6; }
13657 { echo "$as_me:$LINENO: checking CFLAGSFORSHARED" >&5
13658 echo $ECHO_N "checking CFLAGSFORSHARED... $ECHO_C" >&6; }
13659 if test ! "$LIBRARY" = "$LDLIBRARY"
13660 then
13661 case $ac_sys_system in
13662 CYGWIN*)
13663 # Cygwin needs CCSHARED when building extension DLLs
13664 # but not when building the interpreter DLL.
13665 CFLAGSFORSHARED='';;
13667 CFLAGSFORSHARED='$(CCSHARED)'
13668 esac
13670 { echo "$as_me:$LINENO: result: $CFLAGSFORSHARED" >&5
13671 echo "${ECHO_T}$CFLAGSFORSHARED" >&6; }
13673 # SHLIBS are libraries (except -lc and -lm) to link to the python shared
13674 # library (with --enable-shared).
13675 # For platforms on which shared libraries are not allowed to have unresolved
13676 # symbols, this must be set to $(LIBS) (expanded by make). We do this even
13677 # if it is not required, since it creates a dependency of the shared library
13678 # to LIBS. This, in turn, means that applications linking the shared libpython
13679 # don't need to link LIBS explicitly. The default should be only changed
13680 # on systems where this approach causes problems.
13682 { echo "$as_me:$LINENO: checking SHLIBS" >&5
13683 echo $ECHO_N "checking SHLIBS... $ECHO_C" >&6; }
13684 case "$ac_sys_system" in
13686 SHLIBS='$(LIBS)';;
13687 esac
13688 { echo "$as_me:$LINENO: result: $SHLIBS" >&5
13689 echo "${ECHO_T}$SHLIBS" >&6; }
13692 # checks for libraries
13694 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
13695 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
13696 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
13697 echo $ECHO_N "(cached) $ECHO_C" >&6
13698 else
13699 ac_check_lib_save_LIBS=$LIBS
13700 LIBS="-ldl $LIBS"
13701 cat >conftest.$ac_ext <<_ACEOF
13702 /* confdefs.h. */
13703 _ACEOF
13704 cat confdefs.h >>conftest.$ac_ext
13705 cat >>conftest.$ac_ext <<_ACEOF
13706 /* end confdefs.h. */
13708 /* Override any GCC internal prototype to avoid an error.
13709 Use char because int might match the return type of a GCC
13710 builtin and then its argument prototype would still apply. */
13711 #ifdef __cplusplus
13712 extern "C"
13713 #endif
13714 char dlopen ();
13716 main ()
13718 return dlopen ();
13720 return 0;
13722 _ACEOF
13723 rm -f conftest.$ac_objext conftest$ac_exeext
13724 if { (ac_try="$ac_link"
13725 case "(($ac_try" in
13726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13727 *) ac_try_echo=$ac_try;;
13728 esac
13729 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13730 (eval "$ac_link") 2>conftest.er1
13731 ac_status=$?
13732 grep -v '^ *+' conftest.er1 >conftest.err
13733 rm -f conftest.er1
13734 cat conftest.err >&5
13735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13736 (exit $ac_status); } && {
13737 test -z "$ac_c_werror_flag" ||
13738 test ! -s conftest.err
13739 } && test -s conftest$ac_exeext &&
13740 $as_test_x conftest$ac_exeext; then
13741 ac_cv_lib_dl_dlopen=yes
13742 else
13743 echo "$as_me: failed program was:" >&5
13744 sed 's/^/| /' conftest.$ac_ext >&5
13746 ac_cv_lib_dl_dlopen=no
13749 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13750 conftest$ac_exeext conftest.$ac_ext
13751 LIBS=$ac_check_lib_save_LIBS
13753 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
13754 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
13755 if test $ac_cv_lib_dl_dlopen = yes; then
13756 cat >>confdefs.h <<_ACEOF
13757 #define HAVE_LIBDL 1
13758 _ACEOF
13760 LIBS="-ldl $LIBS"
13763 # Dynamic linking for SunOS/Solaris and SYSV
13765 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
13766 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
13767 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
13768 echo $ECHO_N "(cached) $ECHO_C" >&6
13769 else
13770 ac_check_lib_save_LIBS=$LIBS
13771 LIBS="-ldld $LIBS"
13772 cat >conftest.$ac_ext <<_ACEOF
13773 /* confdefs.h. */
13774 _ACEOF
13775 cat confdefs.h >>conftest.$ac_ext
13776 cat >>conftest.$ac_ext <<_ACEOF
13777 /* end confdefs.h. */
13779 /* Override any GCC internal prototype to avoid an error.
13780 Use char because int might match the return type of a GCC
13781 builtin and then its argument prototype would still apply. */
13782 #ifdef __cplusplus
13783 extern "C"
13784 #endif
13785 char shl_load ();
13787 main ()
13789 return shl_load ();
13791 return 0;
13793 _ACEOF
13794 rm -f conftest.$ac_objext conftest$ac_exeext
13795 if { (ac_try="$ac_link"
13796 case "(($ac_try" in
13797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13798 *) ac_try_echo=$ac_try;;
13799 esac
13800 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13801 (eval "$ac_link") 2>conftest.er1
13802 ac_status=$?
13803 grep -v '^ *+' conftest.er1 >conftest.err
13804 rm -f conftest.er1
13805 cat conftest.err >&5
13806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13807 (exit $ac_status); } && {
13808 test -z "$ac_c_werror_flag" ||
13809 test ! -s conftest.err
13810 } && test -s conftest$ac_exeext &&
13811 $as_test_x conftest$ac_exeext; then
13812 ac_cv_lib_dld_shl_load=yes
13813 else
13814 echo "$as_me: failed program was:" >&5
13815 sed 's/^/| /' conftest.$ac_ext >&5
13817 ac_cv_lib_dld_shl_load=no
13820 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13821 conftest$ac_exeext conftest.$ac_ext
13822 LIBS=$ac_check_lib_save_LIBS
13824 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
13825 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
13826 if test $ac_cv_lib_dld_shl_load = yes; then
13827 cat >>confdefs.h <<_ACEOF
13828 #define HAVE_LIBDLD 1
13829 _ACEOF
13831 LIBS="-ldld $LIBS"
13834 # Dynamic linking for HP-UX
13836 # only check for sem_init if thread support is requested
13837 if test "$with_threads" = "yes" -o -z "$with_threads"; then
13838 { echo "$as_me:$LINENO: checking for library containing sem_init" >&5
13839 echo $ECHO_N "checking for library containing sem_init... $ECHO_C" >&6; }
13840 if test "${ac_cv_search_sem_init+set}" = set; then
13841 echo $ECHO_N "(cached) $ECHO_C" >&6
13842 else
13843 ac_func_search_save_LIBS=$LIBS
13844 cat >conftest.$ac_ext <<_ACEOF
13845 /* confdefs.h. */
13846 _ACEOF
13847 cat confdefs.h >>conftest.$ac_ext
13848 cat >>conftest.$ac_ext <<_ACEOF
13849 /* end confdefs.h. */
13851 /* Override any GCC internal prototype to avoid an error.
13852 Use char because int might match the return type of a GCC
13853 builtin and then its argument prototype would still apply. */
13854 #ifdef __cplusplus
13855 extern "C"
13856 #endif
13857 char sem_init ();
13859 main ()
13861 return sem_init ();
13863 return 0;
13865 _ACEOF
13866 for ac_lib in '' pthread rt posix4; do
13867 if test -z "$ac_lib"; then
13868 ac_res="none required"
13869 else
13870 ac_res=-l$ac_lib
13871 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13873 rm -f conftest.$ac_objext conftest$ac_exeext
13874 if { (ac_try="$ac_link"
13875 case "(($ac_try" in
13876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13877 *) ac_try_echo=$ac_try;;
13878 esac
13879 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13880 (eval "$ac_link") 2>conftest.er1
13881 ac_status=$?
13882 grep -v '^ *+' conftest.er1 >conftest.err
13883 rm -f conftest.er1
13884 cat conftest.err >&5
13885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13886 (exit $ac_status); } && {
13887 test -z "$ac_c_werror_flag" ||
13888 test ! -s conftest.err
13889 } && test -s conftest$ac_exeext &&
13890 $as_test_x conftest$ac_exeext; then
13891 ac_cv_search_sem_init=$ac_res
13892 else
13893 echo "$as_me: failed program was:" >&5
13894 sed 's/^/| /' conftest.$ac_ext >&5
13899 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13900 conftest$ac_exeext
13901 if test "${ac_cv_search_sem_init+set}" = set; then
13902 break
13904 done
13905 if test "${ac_cv_search_sem_init+set}" = set; then
13907 else
13908 ac_cv_search_sem_init=no
13910 rm conftest.$ac_ext
13911 LIBS=$ac_func_search_save_LIBS
13913 { echo "$as_me:$LINENO: result: $ac_cv_search_sem_init" >&5
13914 echo "${ECHO_T}$ac_cv_search_sem_init" >&6; }
13915 ac_res=$ac_cv_search_sem_init
13916 if test "$ac_res" != no; then
13917 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13920 # 'Real Time' functions on Solaris
13921 # posix4 on Solaris 2.6
13922 # pthread (first!) on Linux
13925 # check if we need libintl for locale functions
13926 { echo "$as_me:$LINENO: checking for textdomain in -lintl" >&5
13927 echo $ECHO_N "checking for textdomain in -lintl... $ECHO_C" >&6; }
13928 if test "${ac_cv_lib_intl_textdomain+set}" = set; then
13929 echo $ECHO_N "(cached) $ECHO_C" >&6
13930 else
13931 ac_check_lib_save_LIBS=$LIBS
13932 LIBS="-lintl $LIBS"
13933 cat >conftest.$ac_ext <<_ACEOF
13934 /* confdefs.h. */
13935 _ACEOF
13936 cat confdefs.h >>conftest.$ac_ext
13937 cat >>conftest.$ac_ext <<_ACEOF
13938 /* end confdefs.h. */
13940 /* Override any GCC internal prototype to avoid an error.
13941 Use char because int might match the return type of a GCC
13942 builtin and then its argument prototype would still apply. */
13943 #ifdef __cplusplus
13944 extern "C"
13945 #endif
13946 char textdomain ();
13948 main ()
13950 return textdomain ();
13952 return 0;
13954 _ACEOF
13955 rm -f conftest.$ac_objext conftest$ac_exeext
13956 if { (ac_try="$ac_link"
13957 case "(($ac_try" in
13958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13959 *) ac_try_echo=$ac_try;;
13960 esac
13961 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13962 (eval "$ac_link") 2>conftest.er1
13963 ac_status=$?
13964 grep -v '^ *+' conftest.er1 >conftest.err
13965 rm -f conftest.er1
13966 cat conftest.err >&5
13967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13968 (exit $ac_status); } && {
13969 test -z "$ac_c_werror_flag" ||
13970 test ! -s conftest.err
13971 } && test -s conftest$ac_exeext &&
13972 $as_test_x conftest$ac_exeext; then
13973 ac_cv_lib_intl_textdomain=yes
13974 else
13975 echo "$as_me: failed program was:" >&5
13976 sed 's/^/| /' conftest.$ac_ext >&5
13978 ac_cv_lib_intl_textdomain=no
13981 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13982 conftest$ac_exeext conftest.$ac_ext
13983 LIBS=$ac_check_lib_save_LIBS
13985 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_textdomain" >&5
13986 echo "${ECHO_T}$ac_cv_lib_intl_textdomain" >&6; }
13987 if test $ac_cv_lib_intl_textdomain = yes; then
13989 cat >>confdefs.h <<\_ACEOF
13990 #define WITH_LIBINTL 1
13991 _ACEOF
13996 # checks for system dependent C++ extensions support
13997 case "$ac_sys_system" in
13998 AIX*) { echo "$as_me:$LINENO: checking for genuine AIX C++ extensions support" >&5
13999 echo $ECHO_N "checking for genuine AIX C++ extensions support... $ECHO_C" >&6; }
14000 cat >conftest.$ac_ext <<_ACEOF
14001 /* confdefs.h. */
14002 _ACEOF
14003 cat confdefs.h >>conftest.$ac_ext
14004 cat >>conftest.$ac_ext <<_ACEOF
14005 /* end confdefs.h. */
14006 #include "/usr/lpp/xlC/include/load.h"
14008 main ()
14010 loadAndInit("", 0, "")
14012 return 0;
14014 _ACEOF
14015 rm -f conftest.$ac_objext conftest$ac_exeext
14016 if { (ac_try="$ac_link"
14017 case "(($ac_try" in
14018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14019 *) ac_try_echo=$ac_try;;
14020 esac
14021 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14022 (eval "$ac_link") 2>conftest.er1
14023 ac_status=$?
14024 grep -v '^ *+' conftest.er1 >conftest.err
14025 rm -f conftest.er1
14026 cat conftest.err >&5
14027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14028 (exit $ac_status); } && {
14029 test -z "$ac_c_werror_flag" ||
14030 test ! -s conftest.err
14031 } && test -s conftest$ac_exeext &&
14032 $as_test_x conftest$ac_exeext; then
14034 cat >>confdefs.h <<\_ACEOF
14035 #define AIX_GENUINE_CPLUSPLUS 1
14036 _ACEOF
14038 { echo "$as_me:$LINENO: result: yes" >&5
14039 echo "${ECHO_T}yes" >&6; }
14040 else
14041 echo "$as_me: failed program was:" >&5
14042 sed 's/^/| /' conftest.$ac_ext >&5
14044 { echo "$as_me:$LINENO: result: no" >&5
14045 echo "${ECHO_T}no" >&6; }
14048 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14049 conftest$ac_exeext conftest.$ac_ext;;
14050 *) ;;
14051 esac
14053 # Most SVR4 platforms (e.g. Solaris) need -lsocket and -lnsl.
14054 # BeOS' sockets are stashed in libnet.
14055 { echo "$as_me:$LINENO: checking for t_open in -lnsl" >&5
14056 echo $ECHO_N "checking for t_open in -lnsl... $ECHO_C" >&6; }
14057 if test "${ac_cv_lib_nsl_t_open+set}" = set; then
14058 echo $ECHO_N "(cached) $ECHO_C" >&6
14059 else
14060 ac_check_lib_save_LIBS=$LIBS
14061 LIBS="-lnsl $LIBS"
14062 cat >conftest.$ac_ext <<_ACEOF
14063 /* confdefs.h. */
14064 _ACEOF
14065 cat confdefs.h >>conftest.$ac_ext
14066 cat >>conftest.$ac_ext <<_ACEOF
14067 /* end confdefs.h. */
14069 /* Override any GCC internal prototype to avoid an error.
14070 Use char because int might match the return type of a GCC
14071 builtin and then its argument prototype would still apply. */
14072 #ifdef __cplusplus
14073 extern "C"
14074 #endif
14075 char t_open ();
14077 main ()
14079 return t_open ();
14081 return 0;
14083 _ACEOF
14084 rm -f conftest.$ac_objext conftest$ac_exeext
14085 if { (ac_try="$ac_link"
14086 case "(($ac_try" in
14087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14088 *) ac_try_echo=$ac_try;;
14089 esac
14090 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14091 (eval "$ac_link") 2>conftest.er1
14092 ac_status=$?
14093 grep -v '^ *+' conftest.er1 >conftest.err
14094 rm -f conftest.er1
14095 cat conftest.err >&5
14096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14097 (exit $ac_status); } && {
14098 test -z "$ac_c_werror_flag" ||
14099 test ! -s conftest.err
14100 } && test -s conftest$ac_exeext &&
14101 $as_test_x conftest$ac_exeext; then
14102 ac_cv_lib_nsl_t_open=yes
14103 else
14104 echo "$as_me: failed program was:" >&5
14105 sed 's/^/| /' conftest.$ac_ext >&5
14107 ac_cv_lib_nsl_t_open=no
14110 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14111 conftest$ac_exeext conftest.$ac_ext
14112 LIBS=$ac_check_lib_save_LIBS
14114 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_t_open" >&5
14115 echo "${ECHO_T}$ac_cv_lib_nsl_t_open" >&6; }
14116 if test $ac_cv_lib_nsl_t_open = yes; then
14117 LIBS="-lnsl $LIBS"
14119 # SVR4
14120 { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
14121 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
14122 if test "${ac_cv_lib_socket_socket+set}" = set; then
14123 echo $ECHO_N "(cached) $ECHO_C" >&6
14124 else
14125 ac_check_lib_save_LIBS=$LIBS
14126 LIBS="-lsocket $LIBS $LIBS"
14127 cat >conftest.$ac_ext <<_ACEOF
14128 /* confdefs.h. */
14129 _ACEOF
14130 cat confdefs.h >>conftest.$ac_ext
14131 cat >>conftest.$ac_ext <<_ACEOF
14132 /* end confdefs.h. */
14134 /* Override any GCC internal prototype to avoid an error.
14135 Use char because int might match the return type of a GCC
14136 builtin and then its argument prototype would still apply. */
14137 #ifdef __cplusplus
14138 extern "C"
14139 #endif
14140 char socket ();
14142 main ()
14144 return socket ();
14146 return 0;
14148 _ACEOF
14149 rm -f conftest.$ac_objext conftest$ac_exeext
14150 if { (ac_try="$ac_link"
14151 case "(($ac_try" in
14152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14153 *) ac_try_echo=$ac_try;;
14154 esac
14155 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14156 (eval "$ac_link") 2>conftest.er1
14157 ac_status=$?
14158 grep -v '^ *+' conftest.er1 >conftest.err
14159 rm -f conftest.er1
14160 cat conftest.err >&5
14161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14162 (exit $ac_status); } && {
14163 test -z "$ac_c_werror_flag" ||
14164 test ! -s conftest.err
14165 } && test -s conftest$ac_exeext &&
14166 $as_test_x conftest$ac_exeext; then
14167 ac_cv_lib_socket_socket=yes
14168 else
14169 echo "$as_me: failed program was:" >&5
14170 sed 's/^/| /' conftest.$ac_ext >&5
14172 ac_cv_lib_socket_socket=no
14175 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14176 conftest$ac_exeext conftest.$ac_ext
14177 LIBS=$ac_check_lib_save_LIBS
14179 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
14180 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; }
14181 if test $ac_cv_lib_socket_socket = yes; then
14182 LIBS="-lsocket $LIBS"
14184 # SVR4 sockets
14186 case "$ac_sys_system" in
14187 BeOS*)
14188 { echo "$as_me:$LINENO: checking for socket in -lnet" >&5
14189 echo $ECHO_N "checking for socket in -lnet... $ECHO_C" >&6; }
14190 if test "${ac_cv_lib_net_socket+set}" = set; then
14191 echo $ECHO_N "(cached) $ECHO_C" >&6
14192 else
14193 ac_check_lib_save_LIBS=$LIBS
14194 LIBS="-lnet $LIBS $LIBS"
14195 cat >conftest.$ac_ext <<_ACEOF
14196 /* confdefs.h. */
14197 _ACEOF
14198 cat confdefs.h >>conftest.$ac_ext
14199 cat >>conftest.$ac_ext <<_ACEOF
14200 /* end confdefs.h. */
14202 /* Override any GCC internal prototype to avoid an error.
14203 Use char because int might match the return type of a GCC
14204 builtin and then its argument prototype would still apply. */
14205 #ifdef __cplusplus
14206 extern "C"
14207 #endif
14208 char socket ();
14210 main ()
14212 return socket ();
14214 return 0;
14216 _ACEOF
14217 rm -f conftest.$ac_objext conftest$ac_exeext
14218 if { (ac_try="$ac_link"
14219 case "(($ac_try" in
14220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14221 *) ac_try_echo=$ac_try;;
14222 esac
14223 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14224 (eval "$ac_link") 2>conftest.er1
14225 ac_status=$?
14226 grep -v '^ *+' conftest.er1 >conftest.err
14227 rm -f conftest.er1
14228 cat conftest.err >&5
14229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14230 (exit $ac_status); } && {
14231 test -z "$ac_c_werror_flag" ||
14232 test ! -s conftest.err
14233 } && test -s conftest$ac_exeext &&
14234 $as_test_x conftest$ac_exeext; then
14235 ac_cv_lib_net_socket=yes
14236 else
14237 echo "$as_me: failed program was:" >&5
14238 sed 's/^/| /' conftest.$ac_ext >&5
14240 ac_cv_lib_net_socket=no
14243 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14244 conftest$ac_exeext conftest.$ac_ext
14245 LIBS=$ac_check_lib_save_LIBS
14247 { echo "$as_me:$LINENO: result: $ac_cv_lib_net_socket" >&5
14248 echo "${ECHO_T}$ac_cv_lib_net_socket" >&6; }
14249 if test $ac_cv_lib_net_socket = yes; then
14250 LIBS="-lnet $LIBS"
14252 # BeOS
14254 esac
14256 { echo "$as_me:$LINENO: checking for --with-libs" >&5
14257 echo $ECHO_N "checking for --with-libs... $ECHO_C" >&6; }
14259 # Check whether --with-libs was given.
14260 if test "${with_libs+set}" = set; then
14261 withval=$with_libs;
14262 { echo "$as_me:$LINENO: result: $withval" >&5
14263 echo "${ECHO_T}$withval" >&6; }
14264 LIBS="$withval $LIBS"
14266 else
14267 { echo "$as_me:$LINENO: result: no" >&5
14268 echo "${ECHO_T}no" >&6; }
14272 # Check for use of the system libffi library
14273 { echo "$as_me:$LINENO: checking for --with-system-ffi" >&5
14274 echo $ECHO_N "checking for --with-system-ffi... $ECHO_C" >&6; }
14276 # Check whether --with-system_ffi was given.
14277 if test "${with_system_ffi+set}" = set; then
14278 withval=$with_system_ffi;
14282 { echo "$as_me:$LINENO: result: $with_system_ffi" >&5
14283 echo "${ECHO_T}$with_system_ffi" >&6; }
14285 # Check for --with-dbmliborder
14286 { echo "$as_me:$LINENO: checking for --with-dbmliborder" >&5
14287 echo $ECHO_N "checking for --with-dbmliborder... $ECHO_C" >&6; }
14289 # Check whether --with-dbmliborder was given.
14290 if test "${with_dbmliborder+set}" = set; then
14291 withval=$with_dbmliborder;
14292 if test x$with_dbmliborder = xyes
14293 then
14294 { { echo "$as_me:$LINENO: error: proper usage is --with-dbmliborder=db1:db2:..." >&5
14295 echo "$as_me: error: proper usage is --with-dbmliborder=db1:db2:..." >&2;}
14296 { (exit 1); exit 1; }; }
14297 else
14298 for db in `echo $with_dbmliborder | sed 's/:/ /g'`; do
14299 if test x$db != xndbm && test x$db != xgdbm && test x$db != xbdb
14300 then
14301 { { echo "$as_me:$LINENO: error: proper usage is --with-dbmliborder=db1:db2:..." >&5
14302 echo "$as_me: error: proper usage is --with-dbmliborder=db1:db2:..." >&2;}
14303 { (exit 1); exit 1; }; }
14305 done
14309 { echo "$as_me:$LINENO: result: $with_dbmliborder" >&5
14310 echo "${ECHO_T}$with_dbmliborder" >&6; }
14312 # Determine if signalmodule should be used.
14315 { echo "$as_me:$LINENO: checking for --with-signal-module" >&5
14316 echo $ECHO_N "checking for --with-signal-module... $ECHO_C" >&6; }
14318 # Check whether --with-signal-module was given.
14319 if test "${with_signal_module+set}" = set; then
14320 withval=$with_signal_module;
14324 if test -z "$with_signal_module"
14325 then with_signal_module="yes"
14327 { echo "$as_me:$LINENO: result: $with_signal_module" >&5
14328 echo "${ECHO_T}$with_signal_module" >&6; }
14330 if test "${with_signal_module}" = "yes"; then
14331 USE_SIGNAL_MODULE=""
14332 SIGNAL_OBJS=""
14333 else
14334 USE_SIGNAL_MODULE="#"
14335 SIGNAL_OBJS="Parser/intrcheck.o Python/sigcheck.o"
14338 # This is used to generate Setup.config
14340 USE_THREAD_MODULE=""
14342 { echo "$as_me:$LINENO: checking for --with-dec-threads" >&5
14343 echo $ECHO_N "checking for --with-dec-threads... $ECHO_C" >&6; }
14346 # Check whether --with-dec-threads was given.
14347 if test "${with_dec_threads+set}" = set; then
14348 withval=$with_dec_threads;
14349 { echo "$as_me:$LINENO: result: $withval" >&5
14350 echo "${ECHO_T}$withval" >&6; }
14351 LDLAST=-threads
14352 if test "${with_thread+set}" != set; then
14353 with_thread="$withval";
14355 else
14356 { echo "$as_me:$LINENO: result: no" >&5
14357 echo "${ECHO_T}no" >&6; }
14361 # Templates for things AC_DEFINEd more than once.
14362 # For a single AC_DEFINE, no template is needed.
14370 { echo "$as_me:$LINENO: checking for --with-threads" >&5
14371 echo $ECHO_N "checking for --with-threads... $ECHO_C" >&6; }
14373 # Check whether --with-threads was given.
14374 if test "${with_threads+set}" = set; then
14375 withval=$with_threads;
14379 # --with-thread is deprecated, but check for it anyway
14381 # Check whether --with-thread was given.
14382 if test "${with_thread+set}" = set; then
14383 withval=$with_thread; with_threads=$with_thread
14387 if test -z "$with_threads"
14388 then with_threads="yes"
14390 { echo "$as_me:$LINENO: result: $with_threads" >&5
14391 echo "${ECHO_T}$with_threads" >&6; }
14394 if test "$with_threads" = "no"
14395 then
14396 USE_THREAD_MODULE="#"
14397 elif test "$ac_cv_pthread_is_default" = yes
14398 then
14399 cat >>confdefs.h <<\_ACEOF
14400 #define WITH_THREAD 1
14401 _ACEOF
14403 # Defining _REENTRANT on system with POSIX threads should not hurt.
14404 cat >>confdefs.h <<\_ACEOF
14405 #define _REENTRANT 1
14406 _ACEOF
14408 posix_threads=yes
14409 THREADOBJ="Python/thread.o"
14410 elif test "$ac_cv_kpthread" = "yes"
14411 then
14412 CC="$CC -Kpthread"
14413 if test "$ac_cv_cxx_thread" = "yes"; then
14414 CXX="$CXX -Kpthread"
14416 cat >>confdefs.h <<\_ACEOF
14417 #define WITH_THREAD 1
14418 _ACEOF
14420 posix_threads=yes
14421 THREADOBJ="Python/thread.o"
14422 elif test "$ac_cv_kthread" = "yes"
14423 then
14424 CC="$CC -Kthread"
14425 if test "$ac_cv_cxx_thread" = "yes"; then
14426 CXX="$CXX -Kthread"
14428 cat >>confdefs.h <<\_ACEOF
14429 #define WITH_THREAD 1
14430 _ACEOF
14432 posix_threads=yes
14433 THREADOBJ="Python/thread.o"
14434 elif test "$ac_cv_pthread" = "yes"
14435 then
14436 CC="$CC -pthread"
14437 if test "$ac_cv_cxx_thread" = "yes"; then
14438 CXX="$CXX -pthread"
14440 cat >>confdefs.h <<\_ACEOF
14441 #define WITH_THREAD 1
14442 _ACEOF
14444 posix_threads=yes
14445 THREADOBJ="Python/thread.o"
14446 else
14447 if test ! -z "$with_threads" -a -d "$with_threads"
14448 then LDFLAGS="$LDFLAGS -L$with_threads"
14450 if test ! -z "$withval" -a -d "$withval"
14451 then LDFLAGS="$LDFLAGS -L$withval"
14454 # According to the POSIX spec, a pthreads implementation must
14455 # define _POSIX_THREADS in unistd.h. Some apparently don't
14456 # (e.g. gnu pth with pthread emulation)
14457 { echo "$as_me:$LINENO: checking for _POSIX_THREADS in unistd.h" >&5
14458 echo $ECHO_N "checking for _POSIX_THREADS in unistd.h... $ECHO_C" >&6; }
14459 cat >conftest.$ac_ext <<_ACEOF
14460 /* confdefs.h. */
14461 _ACEOF
14462 cat confdefs.h >>conftest.$ac_ext
14463 cat >>conftest.$ac_ext <<_ACEOF
14464 /* end confdefs.h. */
14466 #include <unistd.h>
14467 #ifdef _POSIX_THREADS
14469 #endif
14471 _ACEOF
14472 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14473 $EGREP "yes" >/dev/null 2>&1; then
14474 unistd_defines_pthreads=yes
14475 else
14476 unistd_defines_pthreads=no
14478 rm -f conftest*
14480 { echo "$as_me:$LINENO: result: $unistd_defines_pthreads" >&5
14481 echo "${ECHO_T}$unistd_defines_pthreads" >&6; }
14483 cat >>confdefs.h <<\_ACEOF
14484 #define _REENTRANT 1
14485 _ACEOF
14487 if test "${ac_cv_header_cthreads_h+set}" = set; then
14488 { echo "$as_me:$LINENO: checking for cthreads.h" >&5
14489 echo $ECHO_N "checking for cthreads.h... $ECHO_C" >&6; }
14490 if test "${ac_cv_header_cthreads_h+set}" = set; then
14491 echo $ECHO_N "(cached) $ECHO_C" >&6
14493 { echo "$as_me:$LINENO: result: $ac_cv_header_cthreads_h" >&5
14494 echo "${ECHO_T}$ac_cv_header_cthreads_h" >&6; }
14495 else
14496 # Is the header compilable?
14497 { echo "$as_me:$LINENO: checking cthreads.h usability" >&5
14498 echo $ECHO_N "checking cthreads.h usability... $ECHO_C" >&6; }
14499 cat >conftest.$ac_ext <<_ACEOF
14500 /* confdefs.h. */
14501 _ACEOF
14502 cat confdefs.h >>conftest.$ac_ext
14503 cat >>conftest.$ac_ext <<_ACEOF
14504 /* end confdefs.h. */
14505 $ac_includes_default
14506 #include <cthreads.h>
14507 _ACEOF
14508 rm -f conftest.$ac_objext
14509 if { (ac_try="$ac_compile"
14510 case "(($ac_try" in
14511 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14512 *) ac_try_echo=$ac_try;;
14513 esac
14514 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14515 (eval "$ac_compile") 2>conftest.er1
14516 ac_status=$?
14517 grep -v '^ *+' conftest.er1 >conftest.err
14518 rm -f conftest.er1
14519 cat conftest.err >&5
14520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14521 (exit $ac_status); } && {
14522 test -z "$ac_c_werror_flag" ||
14523 test ! -s conftest.err
14524 } && test -s conftest.$ac_objext; then
14525 ac_header_compiler=yes
14526 else
14527 echo "$as_me: failed program was:" >&5
14528 sed 's/^/| /' conftest.$ac_ext >&5
14530 ac_header_compiler=no
14533 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14534 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14535 echo "${ECHO_T}$ac_header_compiler" >&6; }
14537 # Is the header present?
14538 { echo "$as_me:$LINENO: checking cthreads.h presence" >&5
14539 echo $ECHO_N "checking cthreads.h presence... $ECHO_C" >&6; }
14540 cat >conftest.$ac_ext <<_ACEOF
14541 /* confdefs.h. */
14542 _ACEOF
14543 cat confdefs.h >>conftest.$ac_ext
14544 cat >>conftest.$ac_ext <<_ACEOF
14545 /* end confdefs.h. */
14546 #include <cthreads.h>
14547 _ACEOF
14548 if { (ac_try="$ac_cpp conftest.$ac_ext"
14549 case "(($ac_try" in
14550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14551 *) ac_try_echo=$ac_try;;
14552 esac
14553 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14554 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14555 ac_status=$?
14556 grep -v '^ *+' conftest.er1 >conftest.err
14557 rm -f conftest.er1
14558 cat conftest.err >&5
14559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14560 (exit $ac_status); } >/dev/null && {
14561 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14562 test ! -s conftest.err
14563 }; then
14564 ac_header_preproc=yes
14565 else
14566 echo "$as_me: failed program was:" >&5
14567 sed 's/^/| /' conftest.$ac_ext >&5
14569 ac_header_preproc=no
14572 rm -f conftest.err conftest.$ac_ext
14573 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14574 echo "${ECHO_T}$ac_header_preproc" >&6; }
14576 # So? What about this header?
14577 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14578 yes:no: )
14579 { echo "$as_me:$LINENO: WARNING: cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&5
14580 echo "$as_me: WARNING: cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14581 { echo "$as_me:$LINENO: WARNING: cthreads.h: proceeding with the compiler's result" >&5
14582 echo "$as_me: WARNING: cthreads.h: proceeding with the compiler's result" >&2;}
14583 ac_header_preproc=yes
14585 no:yes:* )
14586 { echo "$as_me:$LINENO: WARNING: cthreads.h: present but cannot be compiled" >&5
14587 echo "$as_me: WARNING: cthreads.h: present but cannot be compiled" >&2;}
14588 { echo "$as_me:$LINENO: WARNING: cthreads.h: check for missing prerequisite headers?" >&5
14589 echo "$as_me: WARNING: cthreads.h: check for missing prerequisite headers?" >&2;}
14590 { echo "$as_me:$LINENO: WARNING: cthreads.h: see the Autoconf documentation" >&5
14591 echo "$as_me: WARNING: cthreads.h: see the Autoconf documentation" >&2;}
14592 { echo "$as_me:$LINENO: WARNING: cthreads.h: section \"Present But Cannot Be Compiled\"" >&5
14593 echo "$as_me: WARNING: cthreads.h: section \"Present But Cannot Be Compiled\"" >&2;}
14594 { echo "$as_me:$LINENO: WARNING: cthreads.h: proceeding with the preprocessor's result" >&5
14595 echo "$as_me: WARNING: cthreads.h: proceeding with the preprocessor's result" >&2;}
14596 { echo "$as_me:$LINENO: WARNING: cthreads.h: in the future, the compiler will take precedence" >&5
14597 echo "$as_me: WARNING: cthreads.h: in the future, the compiler will take precedence" >&2;}
14598 ( cat <<\_ASBOX
14599 ## ------------------------------------------------ ##
14600 ## Report this to http://www.python.org/python-bugs ##
14601 ## ------------------------------------------------ ##
14602 _ASBOX
14603 ) | sed "s/^/$as_me: WARNING: /" >&2
14605 esac
14606 { echo "$as_me:$LINENO: checking for cthreads.h" >&5
14607 echo $ECHO_N "checking for cthreads.h... $ECHO_C" >&6; }
14608 if test "${ac_cv_header_cthreads_h+set}" = set; then
14609 echo $ECHO_N "(cached) $ECHO_C" >&6
14610 else
14611 ac_cv_header_cthreads_h=$ac_header_preproc
14613 { echo "$as_me:$LINENO: result: $ac_cv_header_cthreads_h" >&5
14614 echo "${ECHO_T}$ac_cv_header_cthreads_h" >&6; }
14617 if test $ac_cv_header_cthreads_h = yes; then
14618 cat >>confdefs.h <<\_ACEOF
14619 #define WITH_THREAD 1
14620 _ACEOF
14622 cat >>confdefs.h <<\_ACEOF
14623 #define C_THREADS 1
14624 _ACEOF
14627 cat >>confdefs.h <<\_ACEOF
14628 #define HURD_C_THREADS 1
14629 _ACEOF
14631 LIBS="$LIBS -lthreads"
14632 THREADOBJ="Python/thread.o"
14633 else
14635 if test "${ac_cv_header_mach_cthreads_h+set}" = set; then
14636 { echo "$as_me:$LINENO: checking for mach/cthreads.h" >&5
14637 echo $ECHO_N "checking for mach/cthreads.h... $ECHO_C" >&6; }
14638 if test "${ac_cv_header_mach_cthreads_h+set}" = set; then
14639 echo $ECHO_N "(cached) $ECHO_C" >&6
14641 { echo "$as_me:$LINENO: result: $ac_cv_header_mach_cthreads_h" >&5
14642 echo "${ECHO_T}$ac_cv_header_mach_cthreads_h" >&6; }
14643 else
14644 # Is the header compilable?
14645 { echo "$as_me:$LINENO: checking mach/cthreads.h usability" >&5
14646 echo $ECHO_N "checking mach/cthreads.h usability... $ECHO_C" >&6; }
14647 cat >conftest.$ac_ext <<_ACEOF
14648 /* confdefs.h. */
14649 _ACEOF
14650 cat confdefs.h >>conftest.$ac_ext
14651 cat >>conftest.$ac_ext <<_ACEOF
14652 /* end confdefs.h. */
14653 $ac_includes_default
14654 #include <mach/cthreads.h>
14655 _ACEOF
14656 rm -f conftest.$ac_objext
14657 if { (ac_try="$ac_compile"
14658 case "(($ac_try" in
14659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14660 *) ac_try_echo=$ac_try;;
14661 esac
14662 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14663 (eval "$ac_compile") 2>conftest.er1
14664 ac_status=$?
14665 grep -v '^ *+' conftest.er1 >conftest.err
14666 rm -f conftest.er1
14667 cat conftest.err >&5
14668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14669 (exit $ac_status); } && {
14670 test -z "$ac_c_werror_flag" ||
14671 test ! -s conftest.err
14672 } && test -s conftest.$ac_objext; then
14673 ac_header_compiler=yes
14674 else
14675 echo "$as_me: failed program was:" >&5
14676 sed 's/^/| /' conftest.$ac_ext >&5
14678 ac_header_compiler=no
14681 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14682 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14683 echo "${ECHO_T}$ac_header_compiler" >&6; }
14685 # Is the header present?
14686 { echo "$as_me:$LINENO: checking mach/cthreads.h presence" >&5
14687 echo $ECHO_N "checking mach/cthreads.h presence... $ECHO_C" >&6; }
14688 cat >conftest.$ac_ext <<_ACEOF
14689 /* confdefs.h. */
14690 _ACEOF
14691 cat confdefs.h >>conftest.$ac_ext
14692 cat >>conftest.$ac_ext <<_ACEOF
14693 /* end confdefs.h. */
14694 #include <mach/cthreads.h>
14695 _ACEOF
14696 if { (ac_try="$ac_cpp conftest.$ac_ext"
14697 case "(($ac_try" in
14698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14699 *) ac_try_echo=$ac_try;;
14700 esac
14701 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14702 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14703 ac_status=$?
14704 grep -v '^ *+' conftest.er1 >conftest.err
14705 rm -f conftest.er1
14706 cat conftest.err >&5
14707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14708 (exit $ac_status); } >/dev/null && {
14709 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14710 test ! -s conftest.err
14711 }; then
14712 ac_header_preproc=yes
14713 else
14714 echo "$as_me: failed program was:" >&5
14715 sed 's/^/| /' conftest.$ac_ext >&5
14717 ac_header_preproc=no
14720 rm -f conftest.err conftest.$ac_ext
14721 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14722 echo "${ECHO_T}$ac_header_preproc" >&6; }
14724 # So? What about this header?
14725 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14726 yes:no: )
14727 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&5
14728 echo "$as_me: WARNING: mach/cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14729 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: proceeding with the compiler's result" >&5
14730 echo "$as_me: WARNING: mach/cthreads.h: proceeding with the compiler's result" >&2;}
14731 ac_header_preproc=yes
14733 no:yes:* )
14734 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: present but cannot be compiled" >&5
14735 echo "$as_me: WARNING: mach/cthreads.h: present but cannot be compiled" >&2;}
14736 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: check for missing prerequisite headers?" >&5
14737 echo "$as_me: WARNING: mach/cthreads.h: check for missing prerequisite headers?" >&2;}
14738 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: see the Autoconf documentation" >&5
14739 echo "$as_me: WARNING: mach/cthreads.h: see the Autoconf documentation" >&2;}
14740 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: section \"Present But Cannot Be Compiled\"" >&5
14741 echo "$as_me: WARNING: mach/cthreads.h: section \"Present But Cannot Be Compiled\"" >&2;}
14742 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: proceeding with the preprocessor's result" >&5
14743 echo "$as_me: WARNING: mach/cthreads.h: proceeding with the preprocessor's result" >&2;}
14744 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: in the future, the compiler will take precedence" >&5
14745 echo "$as_me: WARNING: mach/cthreads.h: in the future, the compiler will take precedence" >&2;}
14746 ( cat <<\_ASBOX
14747 ## ------------------------------------------------ ##
14748 ## Report this to http://www.python.org/python-bugs ##
14749 ## ------------------------------------------------ ##
14750 _ASBOX
14751 ) | sed "s/^/$as_me: WARNING: /" >&2
14753 esac
14754 { echo "$as_me:$LINENO: checking for mach/cthreads.h" >&5
14755 echo $ECHO_N "checking for mach/cthreads.h... $ECHO_C" >&6; }
14756 if test "${ac_cv_header_mach_cthreads_h+set}" = set; then
14757 echo $ECHO_N "(cached) $ECHO_C" >&6
14758 else
14759 ac_cv_header_mach_cthreads_h=$ac_header_preproc
14761 { echo "$as_me:$LINENO: result: $ac_cv_header_mach_cthreads_h" >&5
14762 echo "${ECHO_T}$ac_cv_header_mach_cthreads_h" >&6; }
14765 if test $ac_cv_header_mach_cthreads_h = yes; then
14766 cat >>confdefs.h <<\_ACEOF
14767 #define WITH_THREAD 1
14768 _ACEOF
14770 cat >>confdefs.h <<\_ACEOF
14771 #define C_THREADS 1
14772 _ACEOF
14775 cat >>confdefs.h <<\_ACEOF
14776 #define MACH_C_THREADS 1
14777 _ACEOF
14779 THREADOBJ="Python/thread.o"
14780 else
14782 { echo "$as_me:$LINENO: checking for --with-pth" >&5
14783 echo $ECHO_N "checking for --with-pth... $ECHO_C" >&6; }
14785 # Check whether --with-pth was given.
14786 if test "${with_pth+set}" = set; then
14787 withval=$with_pth; { echo "$as_me:$LINENO: result: $withval" >&5
14788 echo "${ECHO_T}$withval" >&6; }
14789 cat >>confdefs.h <<\_ACEOF
14790 #define WITH_THREAD 1
14791 _ACEOF
14794 cat >>confdefs.h <<\_ACEOF
14795 #define HAVE_PTH 1
14796 _ACEOF
14798 LIBS="-lpth $LIBS"
14799 THREADOBJ="Python/thread.o"
14800 else
14801 { echo "$as_me:$LINENO: result: no" >&5
14802 echo "${ECHO_T}no" >&6; }
14804 # Just looking for pthread_create in libpthread is not enough:
14805 # on HP/UX, pthread.h renames pthread_create to a different symbol name.
14806 # So we really have to include pthread.h, and then link.
14807 _libs=$LIBS
14808 LIBS="$LIBS -lpthread"
14809 { echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
14810 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6; }
14811 cat >conftest.$ac_ext <<_ACEOF
14812 /* confdefs.h. */
14813 _ACEOF
14814 cat confdefs.h >>conftest.$ac_ext
14815 cat >>conftest.$ac_ext <<_ACEOF
14816 /* end confdefs.h. */
14817 #include <pthread.h>
14819 void * start_routine (void *arg) { exit (0); }
14821 main ()
14824 pthread_create (NULL, NULL, start_routine, NULL)
14826 return 0;
14828 _ACEOF
14829 rm -f conftest.$ac_objext conftest$ac_exeext
14830 if { (ac_try="$ac_link"
14831 case "(($ac_try" in
14832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14833 *) ac_try_echo=$ac_try;;
14834 esac
14835 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14836 (eval "$ac_link") 2>conftest.er1
14837 ac_status=$?
14838 grep -v '^ *+' conftest.er1 >conftest.err
14839 rm -f conftest.er1
14840 cat conftest.err >&5
14841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14842 (exit $ac_status); } && {
14843 test -z "$ac_c_werror_flag" ||
14844 test ! -s conftest.err
14845 } && test -s conftest$ac_exeext &&
14846 $as_test_x conftest$ac_exeext; then
14848 { echo "$as_me:$LINENO: result: yes" >&5
14849 echo "${ECHO_T}yes" >&6; }
14850 cat >>confdefs.h <<\_ACEOF
14851 #define WITH_THREAD 1
14852 _ACEOF
14854 posix_threads=yes
14855 THREADOBJ="Python/thread.o"
14856 else
14857 echo "$as_me: failed program was:" >&5
14858 sed 's/^/| /' conftest.$ac_ext >&5
14861 LIBS=$_libs
14862 { echo "$as_me:$LINENO: checking for pthread_detach" >&5
14863 echo $ECHO_N "checking for pthread_detach... $ECHO_C" >&6; }
14864 if test "${ac_cv_func_pthread_detach+set}" = set; then
14865 echo $ECHO_N "(cached) $ECHO_C" >&6
14866 else
14867 cat >conftest.$ac_ext <<_ACEOF
14868 /* confdefs.h. */
14869 _ACEOF
14870 cat confdefs.h >>conftest.$ac_ext
14871 cat >>conftest.$ac_ext <<_ACEOF
14872 /* end confdefs.h. */
14873 /* Define pthread_detach to an innocuous variant, in case <limits.h> declares pthread_detach.
14874 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14875 #define pthread_detach innocuous_pthread_detach
14877 /* System header to define __stub macros and hopefully few prototypes,
14878 which can conflict with char pthread_detach (); below.
14879 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14880 <limits.h> exists even on freestanding compilers. */
14882 #ifdef __STDC__
14883 # include <limits.h>
14884 #else
14885 # include <assert.h>
14886 #endif
14888 #undef pthread_detach
14890 /* Override any GCC internal prototype to avoid an error.
14891 Use char because int might match the return type of a GCC
14892 builtin and then its argument prototype would still apply. */
14893 #ifdef __cplusplus
14894 extern "C"
14895 #endif
14896 char pthread_detach ();
14897 /* The GNU C library defines this for functions which it implements
14898 to always fail with ENOSYS. Some functions are actually named
14899 something starting with __ and the normal name is an alias. */
14900 #if defined __stub_pthread_detach || defined __stub___pthread_detach
14901 choke me
14902 #endif
14905 main ()
14907 return pthread_detach ();
14909 return 0;
14911 _ACEOF
14912 rm -f conftest.$ac_objext conftest$ac_exeext
14913 if { (ac_try="$ac_link"
14914 case "(($ac_try" in
14915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14916 *) ac_try_echo=$ac_try;;
14917 esac
14918 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14919 (eval "$ac_link") 2>conftest.er1
14920 ac_status=$?
14921 grep -v '^ *+' conftest.er1 >conftest.err
14922 rm -f conftest.er1
14923 cat conftest.err >&5
14924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14925 (exit $ac_status); } && {
14926 test -z "$ac_c_werror_flag" ||
14927 test ! -s conftest.err
14928 } && test -s conftest$ac_exeext &&
14929 $as_test_x conftest$ac_exeext; then
14930 ac_cv_func_pthread_detach=yes
14931 else
14932 echo "$as_me: failed program was:" >&5
14933 sed 's/^/| /' conftest.$ac_ext >&5
14935 ac_cv_func_pthread_detach=no
14938 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14939 conftest$ac_exeext conftest.$ac_ext
14941 { echo "$as_me:$LINENO: result: $ac_cv_func_pthread_detach" >&5
14942 echo "${ECHO_T}$ac_cv_func_pthread_detach" >&6; }
14943 if test $ac_cv_func_pthread_detach = yes; then
14944 cat >>confdefs.h <<\_ACEOF
14945 #define WITH_THREAD 1
14946 _ACEOF
14948 posix_threads=yes
14949 THREADOBJ="Python/thread.o"
14950 else
14952 if test "${ac_cv_header_atheos_threads_h+set}" = set; then
14953 { echo "$as_me:$LINENO: checking for atheos/threads.h" >&5
14954 echo $ECHO_N "checking for atheos/threads.h... $ECHO_C" >&6; }
14955 if test "${ac_cv_header_atheos_threads_h+set}" = set; then
14956 echo $ECHO_N "(cached) $ECHO_C" >&6
14958 { echo "$as_me:$LINENO: result: $ac_cv_header_atheos_threads_h" >&5
14959 echo "${ECHO_T}$ac_cv_header_atheos_threads_h" >&6; }
14960 else
14961 # Is the header compilable?
14962 { echo "$as_me:$LINENO: checking atheos/threads.h usability" >&5
14963 echo $ECHO_N "checking atheos/threads.h usability... $ECHO_C" >&6; }
14964 cat >conftest.$ac_ext <<_ACEOF
14965 /* confdefs.h. */
14966 _ACEOF
14967 cat confdefs.h >>conftest.$ac_ext
14968 cat >>conftest.$ac_ext <<_ACEOF
14969 /* end confdefs.h. */
14970 $ac_includes_default
14971 #include <atheos/threads.h>
14972 _ACEOF
14973 rm -f conftest.$ac_objext
14974 if { (ac_try="$ac_compile"
14975 case "(($ac_try" in
14976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14977 *) ac_try_echo=$ac_try;;
14978 esac
14979 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14980 (eval "$ac_compile") 2>conftest.er1
14981 ac_status=$?
14982 grep -v '^ *+' conftest.er1 >conftest.err
14983 rm -f conftest.er1
14984 cat conftest.err >&5
14985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14986 (exit $ac_status); } && {
14987 test -z "$ac_c_werror_flag" ||
14988 test ! -s conftest.err
14989 } && test -s conftest.$ac_objext; then
14990 ac_header_compiler=yes
14991 else
14992 echo "$as_me: failed program was:" >&5
14993 sed 's/^/| /' conftest.$ac_ext >&5
14995 ac_header_compiler=no
14998 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14999 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15000 echo "${ECHO_T}$ac_header_compiler" >&6; }
15002 # Is the header present?
15003 { echo "$as_me:$LINENO: checking atheos/threads.h presence" >&5
15004 echo $ECHO_N "checking atheos/threads.h presence... $ECHO_C" >&6; }
15005 cat >conftest.$ac_ext <<_ACEOF
15006 /* confdefs.h. */
15007 _ACEOF
15008 cat confdefs.h >>conftest.$ac_ext
15009 cat >>conftest.$ac_ext <<_ACEOF
15010 /* end confdefs.h. */
15011 #include <atheos/threads.h>
15012 _ACEOF
15013 if { (ac_try="$ac_cpp conftest.$ac_ext"
15014 case "(($ac_try" in
15015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15016 *) ac_try_echo=$ac_try;;
15017 esac
15018 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15019 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15020 ac_status=$?
15021 grep -v '^ *+' conftest.er1 >conftest.err
15022 rm -f conftest.er1
15023 cat conftest.err >&5
15024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15025 (exit $ac_status); } >/dev/null && {
15026 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15027 test ! -s conftest.err
15028 }; then
15029 ac_header_preproc=yes
15030 else
15031 echo "$as_me: failed program was:" >&5
15032 sed 's/^/| /' conftest.$ac_ext >&5
15034 ac_header_preproc=no
15037 rm -f conftest.err conftest.$ac_ext
15038 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15039 echo "${ECHO_T}$ac_header_preproc" >&6; }
15041 # So? What about this header?
15042 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15043 yes:no: )
15044 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: accepted by the compiler, rejected by the preprocessor!" >&5
15045 echo "$as_me: WARNING: atheos/threads.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15046 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: proceeding with the compiler's result" >&5
15047 echo "$as_me: WARNING: atheos/threads.h: proceeding with the compiler's result" >&2;}
15048 ac_header_preproc=yes
15050 no:yes:* )
15051 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: present but cannot be compiled" >&5
15052 echo "$as_me: WARNING: atheos/threads.h: present but cannot be compiled" >&2;}
15053 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: check for missing prerequisite headers?" >&5
15054 echo "$as_me: WARNING: atheos/threads.h: check for missing prerequisite headers?" >&2;}
15055 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: see the Autoconf documentation" >&5
15056 echo "$as_me: WARNING: atheos/threads.h: see the Autoconf documentation" >&2;}
15057 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: section \"Present But Cannot Be Compiled\"" >&5
15058 echo "$as_me: WARNING: atheos/threads.h: section \"Present But Cannot Be Compiled\"" >&2;}
15059 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: proceeding with the preprocessor's result" >&5
15060 echo "$as_me: WARNING: atheos/threads.h: proceeding with the preprocessor's result" >&2;}
15061 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: in the future, the compiler will take precedence" >&5
15062 echo "$as_me: WARNING: atheos/threads.h: in the future, the compiler will take precedence" >&2;}
15063 ( cat <<\_ASBOX
15064 ## ------------------------------------------------ ##
15065 ## Report this to http://www.python.org/python-bugs ##
15066 ## ------------------------------------------------ ##
15067 _ASBOX
15068 ) | sed "s/^/$as_me: WARNING: /" >&2
15070 esac
15071 { echo "$as_me:$LINENO: checking for atheos/threads.h" >&5
15072 echo $ECHO_N "checking for atheos/threads.h... $ECHO_C" >&6; }
15073 if test "${ac_cv_header_atheos_threads_h+set}" = set; then
15074 echo $ECHO_N "(cached) $ECHO_C" >&6
15075 else
15076 ac_cv_header_atheos_threads_h=$ac_header_preproc
15078 { echo "$as_me:$LINENO: result: $ac_cv_header_atheos_threads_h" >&5
15079 echo "${ECHO_T}$ac_cv_header_atheos_threads_h" >&6; }
15082 if test $ac_cv_header_atheos_threads_h = yes; then
15083 cat >>confdefs.h <<\_ACEOF
15084 #define WITH_THREAD 1
15085 _ACEOF
15088 cat >>confdefs.h <<\_ACEOF
15089 #define ATHEOS_THREADS 1
15090 _ACEOF
15092 THREADOBJ="Python/thread.o"
15093 else
15095 if test "${ac_cv_header_kernel_OS_h+set}" = set; then
15096 { echo "$as_me:$LINENO: checking for kernel/OS.h" >&5
15097 echo $ECHO_N "checking for kernel/OS.h... $ECHO_C" >&6; }
15098 if test "${ac_cv_header_kernel_OS_h+set}" = set; then
15099 echo $ECHO_N "(cached) $ECHO_C" >&6
15101 { echo "$as_me:$LINENO: result: $ac_cv_header_kernel_OS_h" >&5
15102 echo "${ECHO_T}$ac_cv_header_kernel_OS_h" >&6; }
15103 else
15104 # Is the header compilable?
15105 { echo "$as_me:$LINENO: checking kernel/OS.h usability" >&5
15106 echo $ECHO_N "checking kernel/OS.h usability... $ECHO_C" >&6; }
15107 cat >conftest.$ac_ext <<_ACEOF
15108 /* confdefs.h. */
15109 _ACEOF
15110 cat confdefs.h >>conftest.$ac_ext
15111 cat >>conftest.$ac_ext <<_ACEOF
15112 /* end confdefs.h. */
15113 $ac_includes_default
15114 #include <kernel/OS.h>
15115 _ACEOF
15116 rm -f conftest.$ac_objext
15117 if { (ac_try="$ac_compile"
15118 case "(($ac_try" in
15119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15120 *) ac_try_echo=$ac_try;;
15121 esac
15122 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15123 (eval "$ac_compile") 2>conftest.er1
15124 ac_status=$?
15125 grep -v '^ *+' conftest.er1 >conftest.err
15126 rm -f conftest.er1
15127 cat conftest.err >&5
15128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15129 (exit $ac_status); } && {
15130 test -z "$ac_c_werror_flag" ||
15131 test ! -s conftest.err
15132 } && test -s conftest.$ac_objext; then
15133 ac_header_compiler=yes
15134 else
15135 echo "$as_me: failed program was:" >&5
15136 sed 's/^/| /' conftest.$ac_ext >&5
15138 ac_header_compiler=no
15141 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15142 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15143 echo "${ECHO_T}$ac_header_compiler" >&6; }
15145 # Is the header present?
15146 { echo "$as_me:$LINENO: checking kernel/OS.h presence" >&5
15147 echo $ECHO_N "checking kernel/OS.h presence... $ECHO_C" >&6; }
15148 cat >conftest.$ac_ext <<_ACEOF
15149 /* confdefs.h. */
15150 _ACEOF
15151 cat confdefs.h >>conftest.$ac_ext
15152 cat >>conftest.$ac_ext <<_ACEOF
15153 /* end confdefs.h. */
15154 #include <kernel/OS.h>
15155 _ACEOF
15156 if { (ac_try="$ac_cpp conftest.$ac_ext"
15157 case "(($ac_try" in
15158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15159 *) ac_try_echo=$ac_try;;
15160 esac
15161 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15162 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15163 ac_status=$?
15164 grep -v '^ *+' conftest.er1 >conftest.err
15165 rm -f conftest.er1
15166 cat conftest.err >&5
15167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15168 (exit $ac_status); } >/dev/null && {
15169 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15170 test ! -s conftest.err
15171 }; then
15172 ac_header_preproc=yes
15173 else
15174 echo "$as_me: failed program was:" >&5
15175 sed 's/^/| /' conftest.$ac_ext >&5
15177 ac_header_preproc=no
15180 rm -f conftest.err conftest.$ac_ext
15181 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15182 echo "${ECHO_T}$ac_header_preproc" >&6; }
15184 # So? What about this header?
15185 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15186 yes:no: )
15187 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: accepted by the compiler, rejected by the preprocessor!" >&5
15188 echo "$as_me: WARNING: kernel/OS.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15189 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: proceeding with the compiler's result" >&5
15190 echo "$as_me: WARNING: kernel/OS.h: proceeding with the compiler's result" >&2;}
15191 ac_header_preproc=yes
15193 no:yes:* )
15194 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: present but cannot be compiled" >&5
15195 echo "$as_me: WARNING: kernel/OS.h: present but cannot be compiled" >&2;}
15196 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: check for missing prerequisite headers?" >&5
15197 echo "$as_me: WARNING: kernel/OS.h: check for missing prerequisite headers?" >&2;}
15198 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: see the Autoconf documentation" >&5
15199 echo "$as_me: WARNING: kernel/OS.h: see the Autoconf documentation" >&2;}
15200 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: section \"Present But Cannot Be Compiled\"" >&5
15201 echo "$as_me: WARNING: kernel/OS.h: section \"Present But Cannot Be Compiled\"" >&2;}
15202 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: proceeding with the preprocessor's result" >&5
15203 echo "$as_me: WARNING: kernel/OS.h: proceeding with the preprocessor's result" >&2;}
15204 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: in the future, the compiler will take precedence" >&5
15205 echo "$as_me: WARNING: kernel/OS.h: in the future, the compiler will take precedence" >&2;}
15206 ( cat <<\_ASBOX
15207 ## ------------------------------------------------ ##
15208 ## Report this to http://www.python.org/python-bugs ##
15209 ## ------------------------------------------------ ##
15210 _ASBOX
15211 ) | sed "s/^/$as_me: WARNING: /" >&2
15213 esac
15214 { echo "$as_me:$LINENO: checking for kernel/OS.h" >&5
15215 echo $ECHO_N "checking for kernel/OS.h... $ECHO_C" >&6; }
15216 if test "${ac_cv_header_kernel_OS_h+set}" = set; then
15217 echo $ECHO_N "(cached) $ECHO_C" >&6
15218 else
15219 ac_cv_header_kernel_OS_h=$ac_header_preproc
15221 { echo "$as_me:$LINENO: result: $ac_cv_header_kernel_OS_h" >&5
15222 echo "${ECHO_T}$ac_cv_header_kernel_OS_h" >&6; }
15225 if test $ac_cv_header_kernel_OS_h = yes; then
15226 cat >>confdefs.h <<\_ACEOF
15227 #define WITH_THREAD 1
15228 _ACEOF
15231 cat >>confdefs.h <<\_ACEOF
15232 #define BEOS_THREADS 1
15233 _ACEOF
15235 THREADOBJ="Python/thread.o"
15236 else
15238 { echo "$as_me:$LINENO: checking for pthread_create in -lpthreads" >&5
15239 echo $ECHO_N "checking for pthread_create in -lpthreads... $ECHO_C" >&6; }
15240 if test "${ac_cv_lib_pthreads_pthread_create+set}" = set; then
15241 echo $ECHO_N "(cached) $ECHO_C" >&6
15242 else
15243 ac_check_lib_save_LIBS=$LIBS
15244 LIBS="-lpthreads $LIBS"
15245 cat >conftest.$ac_ext <<_ACEOF
15246 /* confdefs.h. */
15247 _ACEOF
15248 cat confdefs.h >>conftest.$ac_ext
15249 cat >>conftest.$ac_ext <<_ACEOF
15250 /* end confdefs.h. */
15252 /* Override any GCC internal prototype to avoid an error.
15253 Use char because int might match the return type of a GCC
15254 builtin and then its argument prototype would still apply. */
15255 #ifdef __cplusplus
15256 extern "C"
15257 #endif
15258 char pthread_create ();
15260 main ()
15262 return pthread_create ();
15264 return 0;
15266 _ACEOF
15267 rm -f conftest.$ac_objext conftest$ac_exeext
15268 if { (ac_try="$ac_link"
15269 case "(($ac_try" in
15270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15271 *) ac_try_echo=$ac_try;;
15272 esac
15273 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15274 (eval "$ac_link") 2>conftest.er1
15275 ac_status=$?
15276 grep -v '^ *+' conftest.er1 >conftest.err
15277 rm -f conftest.er1
15278 cat conftest.err >&5
15279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15280 (exit $ac_status); } && {
15281 test -z "$ac_c_werror_flag" ||
15282 test ! -s conftest.err
15283 } && test -s conftest$ac_exeext &&
15284 $as_test_x conftest$ac_exeext; then
15285 ac_cv_lib_pthreads_pthread_create=yes
15286 else
15287 echo "$as_me: failed program was:" >&5
15288 sed 's/^/| /' conftest.$ac_ext >&5
15290 ac_cv_lib_pthreads_pthread_create=no
15293 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15294 conftest$ac_exeext conftest.$ac_ext
15295 LIBS=$ac_check_lib_save_LIBS
15297 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_create" >&5
15298 echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_create" >&6; }
15299 if test $ac_cv_lib_pthreads_pthread_create = yes; then
15300 cat >>confdefs.h <<\_ACEOF
15301 #define WITH_THREAD 1
15302 _ACEOF
15304 posix_threads=yes
15305 LIBS="$LIBS -lpthreads"
15306 THREADOBJ="Python/thread.o"
15307 else
15309 { echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
15310 echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6; }
15311 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then
15312 echo $ECHO_N "(cached) $ECHO_C" >&6
15313 else
15314 ac_check_lib_save_LIBS=$LIBS
15315 LIBS="-lc_r $LIBS"
15316 cat >conftest.$ac_ext <<_ACEOF
15317 /* confdefs.h. */
15318 _ACEOF
15319 cat confdefs.h >>conftest.$ac_ext
15320 cat >>conftest.$ac_ext <<_ACEOF
15321 /* end confdefs.h. */
15323 /* Override any GCC internal prototype to avoid an error.
15324 Use char because int might match the return type of a GCC
15325 builtin and then its argument prototype would still apply. */
15326 #ifdef __cplusplus
15327 extern "C"
15328 #endif
15329 char pthread_create ();
15331 main ()
15333 return pthread_create ();
15335 return 0;
15337 _ACEOF
15338 rm -f conftest.$ac_objext conftest$ac_exeext
15339 if { (ac_try="$ac_link"
15340 case "(($ac_try" in
15341 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15342 *) ac_try_echo=$ac_try;;
15343 esac
15344 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15345 (eval "$ac_link") 2>conftest.er1
15346 ac_status=$?
15347 grep -v '^ *+' conftest.er1 >conftest.err
15348 rm -f conftest.er1
15349 cat conftest.err >&5
15350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15351 (exit $ac_status); } && {
15352 test -z "$ac_c_werror_flag" ||
15353 test ! -s conftest.err
15354 } && test -s conftest$ac_exeext &&
15355 $as_test_x conftest$ac_exeext; then
15356 ac_cv_lib_c_r_pthread_create=yes
15357 else
15358 echo "$as_me: failed program was:" >&5
15359 sed 's/^/| /' conftest.$ac_ext >&5
15361 ac_cv_lib_c_r_pthread_create=no
15364 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15365 conftest$ac_exeext conftest.$ac_ext
15366 LIBS=$ac_check_lib_save_LIBS
15368 { echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5
15369 echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6; }
15370 if test $ac_cv_lib_c_r_pthread_create = yes; then
15371 cat >>confdefs.h <<\_ACEOF
15372 #define WITH_THREAD 1
15373 _ACEOF
15375 posix_threads=yes
15376 LIBS="$LIBS -lc_r"
15377 THREADOBJ="Python/thread.o"
15378 else
15380 { echo "$as_me:$LINENO: checking for __pthread_create_system in -lpthread" >&5
15381 echo $ECHO_N "checking for __pthread_create_system in -lpthread... $ECHO_C" >&6; }
15382 if test "${ac_cv_lib_pthread___pthread_create_system+set}" = set; then
15383 echo $ECHO_N "(cached) $ECHO_C" >&6
15384 else
15385 ac_check_lib_save_LIBS=$LIBS
15386 LIBS="-lpthread $LIBS"
15387 cat >conftest.$ac_ext <<_ACEOF
15388 /* confdefs.h. */
15389 _ACEOF
15390 cat confdefs.h >>conftest.$ac_ext
15391 cat >>conftest.$ac_ext <<_ACEOF
15392 /* end confdefs.h. */
15394 /* Override any GCC internal prototype to avoid an error.
15395 Use char because int might match the return type of a GCC
15396 builtin and then its argument prototype would still apply. */
15397 #ifdef __cplusplus
15398 extern "C"
15399 #endif
15400 char __pthread_create_system ();
15402 main ()
15404 return __pthread_create_system ();
15406 return 0;
15408 _ACEOF
15409 rm -f conftest.$ac_objext conftest$ac_exeext
15410 if { (ac_try="$ac_link"
15411 case "(($ac_try" in
15412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15413 *) ac_try_echo=$ac_try;;
15414 esac
15415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15416 (eval "$ac_link") 2>conftest.er1
15417 ac_status=$?
15418 grep -v '^ *+' conftest.er1 >conftest.err
15419 rm -f conftest.er1
15420 cat conftest.err >&5
15421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15422 (exit $ac_status); } && {
15423 test -z "$ac_c_werror_flag" ||
15424 test ! -s conftest.err
15425 } && test -s conftest$ac_exeext &&
15426 $as_test_x conftest$ac_exeext; then
15427 ac_cv_lib_pthread___pthread_create_system=yes
15428 else
15429 echo "$as_me: failed program was:" >&5
15430 sed 's/^/| /' conftest.$ac_ext >&5
15432 ac_cv_lib_pthread___pthread_create_system=no
15435 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15436 conftest$ac_exeext conftest.$ac_ext
15437 LIBS=$ac_check_lib_save_LIBS
15439 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread___pthread_create_system" >&5
15440 echo "${ECHO_T}$ac_cv_lib_pthread___pthread_create_system" >&6; }
15441 if test $ac_cv_lib_pthread___pthread_create_system = yes; then
15442 cat >>confdefs.h <<\_ACEOF
15443 #define WITH_THREAD 1
15444 _ACEOF
15446 posix_threads=yes
15447 LIBS="$LIBS -lpthread"
15448 THREADOBJ="Python/thread.o"
15449 else
15451 { echo "$as_me:$LINENO: checking for pthread_create in -lcma" >&5
15452 echo $ECHO_N "checking for pthread_create in -lcma... $ECHO_C" >&6; }
15453 if test "${ac_cv_lib_cma_pthread_create+set}" = set; then
15454 echo $ECHO_N "(cached) $ECHO_C" >&6
15455 else
15456 ac_check_lib_save_LIBS=$LIBS
15457 LIBS="-lcma $LIBS"
15458 cat >conftest.$ac_ext <<_ACEOF
15459 /* confdefs.h. */
15460 _ACEOF
15461 cat confdefs.h >>conftest.$ac_ext
15462 cat >>conftest.$ac_ext <<_ACEOF
15463 /* end confdefs.h. */
15465 /* Override any GCC internal prototype to avoid an error.
15466 Use char because int might match the return type of a GCC
15467 builtin and then its argument prototype would still apply. */
15468 #ifdef __cplusplus
15469 extern "C"
15470 #endif
15471 char pthread_create ();
15473 main ()
15475 return pthread_create ();
15477 return 0;
15479 _ACEOF
15480 rm -f conftest.$ac_objext conftest$ac_exeext
15481 if { (ac_try="$ac_link"
15482 case "(($ac_try" in
15483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15484 *) ac_try_echo=$ac_try;;
15485 esac
15486 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15487 (eval "$ac_link") 2>conftest.er1
15488 ac_status=$?
15489 grep -v '^ *+' conftest.er1 >conftest.err
15490 rm -f conftest.er1
15491 cat conftest.err >&5
15492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15493 (exit $ac_status); } && {
15494 test -z "$ac_c_werror_flag" ||
15495 test ! -s conftest.err
15496 } && test -s conftest$ac_exeext &&
15497 $as_test_x conftest$ac_exeext; then
15498 ac_cv_lib_cma_pthread_create=yes
15499 else
15500 echo "$as_me: failed program was:" >&5
15501 sed 's/^/| /' conftest.$ac_ext >&5
15503 ac_cv_lib_cma_pthread_create=no
15506 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15507 conftest$ac_exeext conftest.$ac_ext
15508 LIBS=$ac_check_lib_save_LIBS
15510 { echo "$as_me:$LINENO: result: $ac_cv_lib_cma_pthread_create" >&5
15511 echo "${ECHO_T}$ac_cv_lib_cma_pthread_create" >&6; }
15512 if test $ac_cv_lib_cma_pthread_create = yes; then
15513 cat >>confdefs.h <<\_ACEOF
15514 #define WITH_THREAD 1
15515 _ACEOF
15517 posix_threads=yes
15518 LIBS="$LIBS -lcma"
15519 THREADOBJ="Python/thread.o"
15520 else
15522 USE_THREAD_MODULE="#"
15542 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15543 conftest$ac_exeext conftest.$ac_ext
15553 { echo "$as_me:$LINENO: checking for usconfig in -lmpc" >&5
15554 echo $ECHO_N "checking for usconfig in -lmpc... $ECHO_C" >&6; }
15555 if test "${ac_cv_lib_mpc_usconfig+set}" = set; then
15556 echo $ECHO_N "(cached) $ECHO_C" >&6
15557 else
15558 ac_check_lib_save_LIBS=$LIBS
15559 LIBS="-lmpc $LIBS"
15560 cat >conftest.$ac_ext <<_ACEOF
15561 /* confdefs.h. */
15562 _ACEOF
15563 cat confdefs.h >>conftest.$ac_ext
15564 cat >>conftest.$ac_ext <<_ACEOF
15565 /* end confdefs.h. */
15567 /* Override any GCC internal prototype to avoid an error.
15568 Use char because int might match the return type of a GCC
15569 builtin and then its argument prototype would still apply. */
15570 #ifdef __cplusplus
15571 extern "C"
15572 #endif
15573 char usconfig ();
15575 main ()
15577 return usconfig ();
15579 return 0;
15581 _ACEOF
15582 rm -f conftest.$ac_objext conftest$ac_exeext
15583 if { (ac_try="$ac_link"
15584 case "(($ac_try" in
15585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15586 *) ac_try_echo=$ac_try;;
15587 esac
15588 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15589 (eval "$ac_link") 2>conftest.er1
15590 ac_status=$?
15591 grep -v '^ *+' conftest.er1 >conftest.err
15592 rm -f conftest.er1
15593 cat conftest.err >&5
15594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15595 (exit $ac_status); } && {
15596 test -z "$ac_c_werror_flag" ||
15597 test ! -s conftest.err
15598 } && test -s conftest$ac_exeext &&
15599 $as_test_x conftest$ac_exeext; then
15600 ac_cv_lib_mpc_usconfig=yes
15601 else
15602 echo "$as_me: failed program was:" >&5
15603 sed 's/^/| /' conftest.$ac_ext >&5
15605 ac_cv_lib_mpc_usconfig=no
15608 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15609 conftest$ac_exeext conftest.$ac_ext
15610 LIBS=$ac_check_lib_save_LIBS
15612 { echo "$as_me:$LINENO: result: $ac_cv_lib_mpc_usconfig" >&5
15613 echo "${ECHO_T}$ac_cv_lib_mpc_usconfig" >&6; }
15614 if test $ac_cv_lib_mpc_usconfig = yes; then
15615 cat >>confdefs.h <<\_ACEOF
15616 #define WITH_THREAD 1
15617 _ACEOF
15619 LIBS="$LIBS -lmpc"
15620 THREADOBJ="Python/thread.o"
15621 USE_THREAD_MODULE=""
15625 if test "$posix_threads" != "yes"; then
15626 { echo "$as_me:$LINENO: checking for thr_create in -lthread" >&5
15627 echo $ECHO_N "checking for thr_create in -lthread... $ECHO_C" >&6; }
15628 if test "${ac_cv_lib_thread_thr_create+set}" = set; then
15629 echo $ECHO_N "(cached) $ECHO_C" >&6
15630 else
15631 ac_check_lib_save_LIBS=$LIBS
15632 LIBS="-lthread $LIBS"
15633 cat >conftest.$ac_ext <<_ACEOF
15634 /* confdefs.h. */
15635 _ACEOF
15636 cat confdefs.h >>conftest.$ac_ext
15637 cat >>conftest.$ac_ext <<_ACEOF
15638 /* end confdefs.h. */
15640 /* Override any GCC internal prototype to avoid an error.
15641 Use char because int might match the return type of a GCC
15642 builtin and then its argument prototype would still apply. */
15643 #ifdef __cplusplus
15644 extern "C"
15645 #endif
15646 char thr_create ();
15648 main ()
15650 return thr_create ();
15652 return 0;
15654 _ACEOF
15655 rm -f conftest.$ac_objext conftest$ac_exeext
15656 if { (ac_try="$ac_link"
15657 case "(($ac_try" in
15658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15659 *) ac_try_echo=$ac_try;;
15660 esac
15661 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15662 (eval "$ac_link") 2>conftest.er1
15663 ac_status=$?
15664 grep -v '^ *+' conftest.er1 >conftest.err
15665 rm -f conftest.er1
15666 cat conftest.err >&5
15667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15668 (exit $ac_status); } && {
15669 test -z "$ac_c_werror_flag" ||
15670 test ! -s conftest.err
15671 } && test -s conftest$ac_exeext &&
15672 $as_test_x conftest$ac_exeext; then
15673 ac_cv_lib_thread_thr_create=yes
15674 else
15675 echo "$as_me: failed program was:" >&5
15676 sed 's/^/| /' conftest.$ac_ext >&5
15678 ac_cv_lib_thread_thr_create=no
15681 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15682 conftest$ac_exeext conftest.$ac_ext
15683 LIBS=$ac_check_lib_save_LIBS
15685 { echo "$as_me:$LINENO: result: $ac_cv_lib_thread_thr_create" >&5
15686 echo "${ECHO_T}$ac_cv_lib_thread_thr_create" >&6; }
15687 if test $ac_cv_lib_thread_thr_create = yes; then
15688 cat >>confdefs.h <<\_ACEOF
15689 #define WITH_THREAD 1
15690 _ACEOF
15692 LIBS="$LIBS -lthread"
15693 THREADOBJ="Python/thread.o"
15694 USE_THREAD_MODULE=""
15699 if test "$USE_THREAD_MODULE" != "#"
15700 then
15701 # If the above checks didn't disable threads, (at least) OSF1
15702 # needs this '-threads' argument during linking.
15703 case $ac_sys_system in
15704 OSF1) LDLAST=-threads;;
15705 esac
15709 if test "$posix_threads" = "yes"; then
15710 if test "$unistd_defines_pthreads" = "no"; then
15712 cat >>confdefs.h <<\_ACEOF
15713 #define _POSIX_THREADS 1
15714 _ACEOF
15718 # Bug 662787: Using semaphores causes unexplicable hangs on Solaris 8.
15719 case $ac_sys_system/$ac_sys_release in
15720 SunOS/5.6)
15721 cat >>confdefs.h <<\_ACEOF
15722 #define HAVE_PTHREAD_DESTRUCTOR 1
15723 _ACEOF
15726 SunOS/5.8)
15727 cat >>confdefs.h <<\_ACEOF
15728 #define HAVE_BROKEN_POSIX_SEMAPHORES 1
15729 _ACEOF
15732 AIX/5)
15733 cat >>confdefs.h <<\_ACEOF
15734 #define HAVE_BROKEN_POSIX_SEMAPHORES 1
15735 _ACEOF
15738 esac
15740 { echo "$as_me:$LINENO: checking if PTHREAD_SCOPE_SYSTEM is supported" >&5
15741 echo $ECHO_N "checking if PTHREAD_SCOPE_SYSTEM is supported... $ECHO_C" >&6; }
15742 if test "${ac_cv_pthread_system_supported+set}" = set; then
15743 echo $ECHO_N "(cached) $ECHO_C" >&6
15744 else
15745 if test "$cross_compiling" = yes; then
15746 ac_cv_pthread_system_supported=no
15747 else
15748 cat >conftest.$ac_ext <<_ACEOF
15749 /* confdefs.h. */
15750 _ACEOF
15751 cat confdefs.h >>conftest.$ac_ext
15752 cat >>conftest.$ac_ext <<_ACEOF
15753 /* end confdefs.h. */
15754 #include <pthread.h>
15755 void *foo(void *parm) {
15756 return NULL;
15758 main() {
15759 pthread_attr_t attr;
15760 pthread_t id;
15761 if (pthread_attr_init(&attr)) exit(-1);
15762 if (pthread_attr_setscope(&attr, PTHREAD_SCOPE_SYSTEM)) exit(-1);
15763 if (pthread_create(&id, &attr, foo, NULL)) exit(-1);
15764 exit(0);
15766 _ACEOF
15767 rm -f conftest$ac_exeext
15768 if { (ac_try="$ac_link"
15769 case "(($ac_try" in
15770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15771 *) ac_try_echo=$ac_try;;
15772 esac
15773 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15774 (eval "$ac_link") 2>&5
15775 ac_status=$?
15776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15777 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15778 { (case "(($ac_try" in
15779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15780 *) ac_try_echo=$ac_try;;
15781 esac
15782 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15783 (eval "$ac_try") 2>&5
15784 ac_status=$?
15785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15786 (exit $ac_status); }; }; then
15787 ac_cv_pthread_system_supported=yes
15788 else
15789 echo "$as_me: program exited with status $ac_status" >&5
15790 echo "$as_me: failed program was:" >&5
15791 sed 's/^/| /' conftest.$ac_ext >&5
15793 ( exit $ac_status )
15794 ac_cv_pthread_system_supported=no
15796 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15803 { echo "$as_me:$LINENO: result: $ac_cv_pthread_system_supported" >&5
15804 echo "${ECHO_T}$ac_cv_pthread_system_supported" >&6; }
15805 if test "$ac_cv_pthread_system_supported" = "yes"; then
15807 cat >>confdefs.h <<\_ACEOF
15808 #define PTHREAD_SYSTEM_SCHED_SUPPORTED 1
15809 _ACEOF
15813 for ac_func in pthread_sigmask
15815 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15816 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15817 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15818 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15819 echo $ECHO_N "(cached) $ECHO_C" >&6
15820 else
15821 cat >conftest.$ac_ext <<_ACEOF
15822 /* confdefs.h. */
15823 _ACEOF
15824 cat confdefs.h >>conftest.$ac_ext
15825 cat >>conftest.$ac_ext <<_ACEOF
15826 /* end confdefs.h. */
15827 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15828 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15829 #define $ac_func innocuous_$ac_func
15831 /* System header to define __stub macros and hopefully few prototypes,
15832 which can conflict with char $ac_func (); below.
15833 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15834 <limits.h> exists even on freestanding compilers. */
15836 #ifdef __STDC__
15837 # include <limits.h>
15838 #else
15839 # include <assert.h>
15840 #endif
15842 #undef $ac_func
15844 /* Override any GCC internal prototype to avoid an error.
15845 Use char because int might match the return type of a GCC
15846 builtin and then its argument prototype would still apply. */
15847 #ifdef __cplusplus
15848 extern "C"
15849 #endif
15850 char $ac_func ();
15851 /* The GNU C library defines this for functions which it implements
15852 to always fail with ENOSYS. Some functions are actually named
15853 something starting with __ and the normal name is an alias. */
15854 #if defined __stub_$ac_func || defined __stub___$ac_func
15855 choke me
15856 #endif
15859 main ()
15861 return $ac_func ();
15863 return 0;
15865 _ACEOF
15866 rm -f conftest.$ac_objext conftest$ac_exeext
15867 if { (ac_try="$ac_link"
15868 case "(($ac_try" in
15869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15870 *) ac_try_echo=$ac_try;;
15871 esac
15872 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15873 (eval "$ac_link") 2>conftest.er1
15874 ac_status=$?
15875 grep -v '^ *+' conftest.er1 >conftest.err
15876 rm -f conftest.er1
15877 cat conftest.err >&5
15878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15879 (exit $ac_status); } && {
15880 test -z "$ac_c_werror_flag" ||
15881 test ! -s conftest.err
15882 } && test -s conftest$ac_exeext &&
15883 $as_test_x conftest$ac_exeext; then
15884 eval "$as_ac_var=yes"
15885 else
15886 echo "$as_me: failed program was:" >&5
15887 sed 's/^/| /' conftest.$ac_ext >&5
15889 eval "$as_ac_var=no"
15892 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15893 conftest$ac_exeext conftest.$ac_ext
15895 ac_res=`eval echo '${'$as_ac_var'}'`
15896 { echo "$as_me:$LINENO: result: $ac_res" >&5
15897 echo "${ECHO_T}$ac_res" >&6; }
15898 if test `eval echo '${'$as_ac_var'}'` = yes; then
15899 cat >>confdefs.h <<_ACEOF
15900 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15901 _ACEOF
15902 case $ac_sys_system in
15903 CYGWIN*)
15905 cat >>confdefs.h <<\_ACEOF
15906 #define HAVE_BROKEN_PTHREAD_SIGMASK 1
15907 _ACEOF
15910 esac
15912 done
15917 # Check for enable-ipv6
15920 { echo "$as_me:$LINENO: checking if --enable-ipv6 is specified" >&5
15921 echo $ECHO_N "checking if --enable-ipv6 is specified... $ECHO_C" >&6; }
15922 # Check whether --enable-ipv6 was given.
15923 if test "${enable_ipv6+set}" = set; then
15924 enableval=$enable_ipv6; case "$enableval" in
15926 { echo "$as_me:$LINENO: result: no" >&5
15927 echo "${ECHO_T}no" >&6; }
15928 ipv6=no
15930 *) { echo "$as_me:$LINENO: result: yes" >&5
15931 echo "${ECHO_T}yes" >&6; }
15932 cat >>confdefs.h <<\_ACEOF
15933 #define ENABLE_IPV6 1
15934 _ACEOF
15936 ipv6=yes
15938 esac
15939 else
15941 if test "$cross_compiling" = yes; then
15942 { echo "$as_me:$LINENO: result: no" >&5
15943 echo "${ECHO_T}no" >&6; }
15944 ipv6=no
15946 else
15947 cat >conftest.$ac_ext <<_ACEOF
15948 /* confdefs.h. */
15949 _ACEOF
15950 cat confdefs.h >>conftest.$ac_ext
15951 cat >>conftest.$ac_ext <<_ACEOF
15952 /* end confdefs.h. */
15953 /* AF_INET6 available check */
15954 #include <sys/types.h>
15955 #include <sys/socket.h>
15956 main()
15958 if (socket(AF_INET6, SOCK_STREAM, 0) < 0)
15959 exit(1);
15960 else
15961 exit(0);
15964 _ACEOF
15965 rm -f conftest$ac_exeext
15966 if { (ac_try="$ac_link"
15967 case "(($ac_try" in
15968 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15969 *) ac_try_echo=$ac_try;;
15970 esac
15971 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15972 (eval "$ac_link") 2>&5
15973 ac_status=$?
15974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15975 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15976 { (case "(($ac_try" in
15977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15978 *) ac_try_echo=$ac_try;;
15979 esac
15980 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15981 (eval "$ac_try") 2>&5
15982 ac_status=$?
15983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15984 (exit $ac_status); }; }; then
15985 { echo "$as_me:$LINENO: result: yes" >&5
15986 echo "${ECHO_T}yes" >&6; }
15987 ipv6=yes
15988 else
15989 echo "$as_me: program exited with status $ac_status" >&5
15990 echo "$as_me: failed program was:" >&5
15991 sed 's/^/| /' conftest.$ac_ext >&5
15993 ( exit $ac_status )
15994 { echo "$as_me:$LINENO: result: no" >&5
15995 echo "${ECHO_T}no" >&6; }
15996 ipv6=no
15998 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16003 if test "$ipv6" = "yes"; then
16004 { echo "$as_me:$LINENO: checking if RFC2553 API is available" >&5
16005 echo $ECHO_N "checking if RFC2553 API is available... $ECHO_C" >&6; }
16006 cat >conftest.$ac_ext <<_ACEOF
16007 /* confdefs.h. */
16008 _ACEOF
16009 cat confdefs.h >>conftest.$ac_ext
16010 cat >>conftest.$ac_ext <<_ACEOF
16011 /* end confdefs.h. */
16012 #include <sys/types.h>
16013 #include <netinet/in.h>
16015 main ()
16017 struct sockaddr_in6 x;
16018 x.sin6_scope_id;
16020 return 0;
16022 _ACEOF
16023 rm -f conftest.$ac_objext
16024 if { (ac_try="$ac_compile"
16025 case "(($ac_try" in
16026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16027 *) ac_try_echo=$ac_try;;
16028 esac
16029 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16030 (eval "$ac_compile") 2>conftest.er1
16031 ac_status=$?
16032 grep -v '^ *+' conftest.er1 >conftest.err
16033 rm -f conftest.er1
16034 cat conftest.err >&5
16035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16036 (exit $ac_status); } && {
16037 test -z "$ac_c_werror_flag" ||
16038 test ! -s conftest.err
16039 } && test -s conftest.$ac_objext; then
16040 { echo "$as_me:$LINENO: result: yes" >&5
16041 echo "${ECHO_T}yes" >&6; }
16042 ipv6=yes
16043 else
16044 echo "$as_me: failed program was:" >&5
16045 sed 's/^/| /' conftest.$ac_ext >&5
16047 { echo "$as_me:$LINENO: result: no" >&5
16048 echo "${ECHO_T}no" >&6; }
16049 ipv6=no
16052 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16055 if test "$ipv6" = "yes"; then
16056 cat >>confdefs.h <<\_ACEOF
16057 #define ENABLE_IPV6 1
16058 _ACEOF
16065 ipv6type=unknown
16066 ipv6lib=none
16067 ipv6trylibc=no
16069 if test "$ipv6" = "yes"; then
16070 { echo "$as_me:$LINENO: checking ipv6 stack type" >&5
16071 echo $ECHO_N "checking ipv6 stack type... $ECHO_C" >&6; }
16072 for i in inria kame linux-glibc linux-inet6 solaris toshiba v6d zeta;
16074 case $i in
16075 inria)
16076 cat >conftest.$ac_ext <<_ACEOF
16077 /* confdefs.h. */
16078 _ACEOF
16079 cat confdefs.h >>conftest.$ac_ext
16080 cat >>conftest.$ac_ext <<_ACEOF
16081 /* end confdefs.h. */
16083 #include <netinet/in.h>
16084 #ifdef IPV6_INRIA_VERSION
16086 #endif
16087 _ACEOF
16088 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16089 $EGREP "yes" >/dev/null 2>&1; then
16090 ipv6type=$i
16092 rm -f conftest*
16095 kame)
16096 cat >conftest.$ac_ext <<_ACEOF
16097 /* confdefs.h. */
16098 _ACEOF
16099 cat confdefs.h >>conftest.$ac_ext
16100 cat >>conftest.$ac_ext <<_ACEOF
16101 /* end confdefs.h. */
16103 #include <netinet/in.h>
16104 #ifdef __KAME__
16106 #endif
16107 _ACEOF
16108 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16109 $EGREP "yes" >/dev/null 2>&1; then
16110 ipv6type=$i;
16111 ipv6lib=inet6
16112 ipv6libdir=/usr/local/v6/lib
16113 ipv6trylibc=yes
16115 rm -f conftest*
16118 linux-glibc)
16119 cat >conftest.$ac_ext <<_ACEOF
16120 /* confdefs.h. */
16121 _ACEOF
16122 cat confdefs.h >>conftest.$ac_ext
16123 cat >>conftest.$ac_ext <<_ACEOF
16124 /* end confdefs.h. */
16126 #include <features.h>
16127 #if defined(__GLIBC__) && ((__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2))
16129 #endif
16130 _ACEOF
16131 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16132 $EGREP "yes" >/dev/null 2>&1; then
16133 ipv6type=$i;
16134 ipv6trylibc=yes
16136 rm -f conftest*
16139 linux-inet6)
16140 if test -d /usr/inet6; then
16141 ipv6type=$i
16142 ipv6lib=inet6
16143 ipv6libdir=/usr/inet6/lib
16144 BASECFLAGS="-I/usr/inet6/include $BASECFLAGS"
16147 solaris)
16148 if test -f /etc/netconfig; then
16149 if /usr/xpg4/bin/grep -q tcp6 /etc/netconfig; then
16150 ipv6type=$i
16151 ipv6trylibc=yes
16155 toshiba)
16156 cat >conftest.$ac_ext <<_ACEOF
16157 /* confdefs.h. */
16158 _ACEOF
16159 cat confdefs.h >>conftest.$ac_ext
16160 cat >>conftest.$ac_ext <<_ACEOF
16161 /* end confdefs.h. */
16163 #include <sys/param.h>
16164 #ifdef _TOSHIBA_INET6
16166 #endif
16167 _ACEOF
16168 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16169 $EGREP "yes" >/dev/null 2>&1; then
16170 ipv6type=$i;
16171 ipv6lib=inet6;
16172 ipv6libdir=/usr/local/v6/lib
16174 rm -f conftest*
16177 v6d)
16178 cat >conftest.$ac_ext <<_ACEOF
16179 /* confdefs.h. */
16180 _ACEOF
16181 cat confdefs.h >>conftest.$ac_ext
16182 cat >>conftest.$ac_ext <<_ACEOF
16183 /* end confdefs.h. */
16185 #include </usr/local/v6/include/sys/v6config.h>
16186 #ifdef __V6D__
16188 #endif
16189 _ACEOF
16190 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16191 $EGREP "yes" >/dev/null 2>&1; then
16192 ipv6type=$i;
16193 ipv6lib=v6;
16194 ipv6libdir=/usr/local/v6/lib;
16195 BASECFLAGS="-I/usr/local/v6/include $BASECFLAGS"
16197 rm -f conftest*
16200 zeta)
16201 cat >conftest.$ac_ext <<_ACEOF
16202 /* confdefs.h. */
16203 _ACEOF
16204 cat confdefs.h >>conftest.$ac_ext
16205 cat >>conftest.$ac_ext <<_ACEOF
16206 /* end confdefs.h. */
16208 #include <sys/param.h>
16209 #ifdef _ZETA_MINAMI_INET6
16211 #endif
16212 _ACEOF
16213 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16214 $EGREP "yes" >/dev/null 2>&1; then
16215 ipv6type=$i;
16216 ipv6lib=inet6;
16217 ipv6libdir=/usr/local/v6/lib
16219 rm -f conftest*
16222 esac
16223 if test "$ipv6type" != "unknown"; then
16224 break
16226 done
16227 { echo "$as_me:$LINENO: result: $ipv6type" >&5
16228 echo "${ECHO_T}$ipv6type" >&6; }
16231 if test "$ipv6" = "yes" -a "$ipv6lib" != "none"; then
16232 if test -d $ipv6libdir -a -f $ipv6libdir/lib$ipv6lib.a; then
16233 LIBS="-L$ipv6libdir -l$ipv6lib $LIBS"
16234 echo "using lib$ipv6lib"
16235 else
16236 if test $ipv6trylibc = "yes"; then
16237 echo "using libc"
16238 else
16239 echo 'Fatal: no $ipv6lib library found. cannot continue.'
16240 echo "You need to fetch lib$ipv6lib.a from appropriate"
16241 echo 'ipv6 kit and compile beforehand.'
16242 exit 1
16247 { echo "$as_me:$LINENO: checking for OSX 10.5 SDK or later" >&5
16248 echo $ECHO_N "checking for OSX 10.5 SDK or later... $ECHO_C" >&6; }
16249 cat >conftest.$ac_ext <<_ACEOF
16250 /* confdefs.h. */
16251 _ACEOF
16252 cat confdefs.h >>conftest.$ac_ext
16253 cat >>conftest.$ac_ext <<_ACEOF
16254 /* end confdefs.h. */
16255 #include <Carbon/Carbon.h>
16257 main ()
16259 FSIORefNum fRef = 0
16261 return 0;
16263 _ACEOF
16264 rm -f conftest.$ac_objext
16265 if { (ac_try="$ac_compile"
16266 case "(($ac_try" in
16267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16268 *) ac_try_echo=$ac_try;;
16269 esac
16270 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16271 (eval "$ac_compile") 2>conftest.er1
16272 ac_status=$?
16273 grep -v '^ *+' conftest.er1 >conftest.err
16274 rm -f conftest.er1
16275 cat conftest.err >&5
16276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16277 (exit $ac_status); } && {
16278 test -z "$ac_c_werror_flag" ||
16279 test ! -s conftest.err
16280 } && test -s conftest.$ac_objext; then
16282 cat >>confdefs.h <<\_ACEOF
16283 #define HAVE_OSX105_SDK 1
16284 _ACEOF
16286 { echo "$as_me:$LINENO: result: yes" >&5
16287 echo "${ECHO_T}yes" >&6; }
16288 else
16289 echo "$as_me: failed program was:" >&5
16290 sed 's/^/| /' conftest.$ac_ext >&5
16292 { echo "$as_me:$LINENO: result: no" >&5
16293 echo "${ECHO_T}no" >&6; }
16297 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16299 # Check for --with-doc-strings
16300 { echo "$as_me:$LINENO: checking for --with-doc-strings" >&5
16301 echo $ECHO_N "checking for --with-doc-strings... $ECHO_C" >&6; }
16303 # Check whether --with-doc-strings was given.
16304 if test "${with_doc_strings+set}" = set; then
16305 withval=$with_doc_strings;
16309 if test -z "$with_doc_strings"
16310 then with_doc_strings="yes"
16312 if test "$with_doc_strings" != "no"
16313 then
16315 cat >>confdefs.h <<\_ACEOF
16316 #define WITH_DOC_STRINGS 1
16317 _ACEOF
16320 { echo "$as_me:$LINENO: result: $with_doc_strings" >&5
16321 echo "${ECHO_T}$with_doc_strings" >&6; }
16323 # Check for Python-specific malloc support
16324 { echo "$as_me:$LINENO: checking for --with-tsc" >&5
16325 echo $ECHO_N "checking for --with-tsc... $ECHO_C" >&6; }
16327 # Check whether --with-tsc was given.
16328 if test "${with_tsc+set}" = set; then
16329 withval=$with_tsc;
16330 if test "$withval" != no
16331 then
16333 cat >>confdefs.h <<\_ACEOF
16334 #define WITH_TSC 1
16335 _ACEOF
16337 { echo "$as_me:$LINENO: result: yes" >&5
16338 echo "${ECHO_T}yes" >&6; }
16339 else { echo "$as_me:$LINENO: result: no" >&5
16340 echo "${ECHO_T}no" >&6; }
16342 else
16343 { echo "$as_me:$LINENO: result: no" >&5
16344 echo "${ECHO_T}no" >&6; }
16348 # Check for Python-specific malloc support
16349 { echo "$as_me:$LINENO: checking for --with-pymalloc" >&5
16350 echo $ECHO_N "checking for --with-pymalloc... $ECHO_C" >&6; }
16352 # Check whether --with-pymalloc was given.
16353 if test "${with_pymalloc+set}" = set; then
16354 withval=$with_pymalloc;
16358 if test -z "$with_pymalloc"
16359 then with_pymalloc="yes"
16361 if test "$with_pymalloc" != "no"
16362 then
16364 cat >>confdefs.h <<\_ACEOF
16365 #define WITH_PYMALLOC 1
16366 _ACEOF
16369 { echo "$as_me:$LINENO: result: $with_pymalloc" >&5
16370 echo "${ECHO_T}$with_pymalloc" >&6; }
16372 # Check for --with-wctype-functions
16373 { echo "$as_me:$LINENO: checking for --with-wctype-functions" >&5
16374 echo $ECHO_N "checking for --with-wctype-functions... $ECHO_C" >&6; }
16376 # Check whether --with-wctype-functions was given.
16377 if test "${with_wctype_functions+set}" = set; then
16378 withval=$with_wctype_functions;
16379 if test "$withval" != no
16380 then
16382 cat >>confdefs.h <<\_ACEOF
16383 #define WANT_WCTYPE_FUNCTIONS 1
16384 _ACEOF
16386 { echo "$as_me:$LINENO: result: yes" >&5
16387 echo "${ECHO_T}yes" >&6; }
16388 else { echo "$as_me:$LINENO: result: no" >&5
16389 echo "${ECHO_T}no" >&6; }
16391 else
16392 { echo "$as_me:$LINENO: result: no" >&5
16393 echo "${ECHO_T}no" >&6; }
16397 # -I${DLINCLDIR} is added to the compile rule for importdl.o
16399 DLINCLDIR=.
16401 # the dlopen() function means we might want to use dynload_shlib.o. some
16402 # platforms, such as AIX, have dlopen(), but don't want to use it.
16404 for ac_func in dlopen
16406 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16407 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16408 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16409 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16410 echo $ECHO_N "(cached) $ECHO_C" >&6
16411 else
16412 cat >conftest.$ac_ext <<_ACEOF
16413 /* confdefs.h. */
16414 _ACEOF
16415 cat confdefs.h >>conftest.$ac_ext
16416 cat >>conftest.$ac_ext <<_ACEOF
16417 /* end confdefs.h. */
16418 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16419 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16420 #define $ac_func innocuous_$ac_func
16422 /* System header to define __stub macros and hopefully few prototypes,
16423 which can conflict with char $ac_func (); below.
16424 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16425 <limits.h> exists even on freestanding compilers. */
16427 #ifdef __STDC__
16428 # include <limits.h>
16429 #else
16430 # include <assert.h>
16431 #endif
16433 #undef $ac_func
16435 /* Override any GCC internal prototype to avoid an error.
16436 Use char because int might match the return type of a GCC
16437 builtin and then its argument prototype would still apply. */
16438 #ifdef __cplusplus
16439 extern "C"
16440 #endif
16441 char $ac_func ();
16442 /* The GNU C library defines this for functions which it implements
16443 to always fail with ENOSYS. Some functions are actually named
16444 something starting with __ and the normal name is an alias. */
16445 #if defined __stub_$ac_func || defined __stub___$ac_func
16446 choke me
16447 #endif
16450 main ()
16452 return $ac_func ();
16454 return 0;
16456 _ACEOF
16457 rm -f conftest.$ac_objext conftest$ac_exeext
16458 if { (ac_try="$ac_link"
16459 case "(($ac_try" in
16460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16461 *) ac_try_echo=$ac_try;;
16462 esac
16463 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16464 (eval "$ac_link") 2>conftest.er1
16465 ac_status=$?
16466 grep -v '^ *+' conftest.er1 >conftest.err
16467 rm -f conftest.er1
16468 cat conftest.err >&5
16469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16470 (exit $ac_status); } && {
16471 test -z "$ac_c_werror_flag" ||
16472 test ! -s conftest.err
16473 } && test -s conftest$ac_exeext &&
16474 $as_test_x conftest$ac_exeext; then
16475 eval "$as_ac_var=yes"
16476 else
16477 echo "$as_me: failed program was:" >&5
16478 sed 's/^/| /' conftest.$ac_ext >&5
16480 eval "$as_ac_var=no"
16483 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16484 conftest$ac_exeext conftest.$ac_ext
16486 ac_res=`eval echo '${'$as_ac_var'}'`
16487 { echo "$as_me:$LINENO: result: $ac_res" >&5
16488 echo "${ECHO_T}$ac_res" >&6; }
16489 if test `eval echo '${'$as_ac_var'}'` = yes; then
16490 cat >>confdefs.h <<_ACEOF
16491 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16492 _ACEOF
16495 done
16498 # DYNLOADFILE specifies which dynload_*.o file we will use for dynamic
16499 # loading of modules.
16501 { echo "$as_me:$LINENO: checking DYNLOADFILE" >&5
16502 echo $ECHO_N "checking DYNLOADFILE... $ECHO_C" >&6; }
16503 if test -z "$DYNLOADFILE"
16504 then
16505 case $ac_sys_system/$ac_sys_release in
16506 AIX*) # Use dynload_shlib.c and dlopen() if we have it; otherwise dynload_aix.c
16507 if test "$ac_cv_func_dlopen" = yes
16508 then DYNLOADFILE="dynload_shlib.o"
16509 else DYNLOADFILE="dynload_aix.o"
16512 BeOS*) DYNLOADFILE="dynload_beos.o";;
16513 hp*|HP*) DYNLOADFILE="dynload_hpux.o";;
16514 # Use dynload_next.c only on 10.2 and below, which don't have native dlopen()
16515 Darwin/[0156]\..*) DYNLOADFILE="dynload_next.o";;
16516 atheos*) DYNLOADFILE="dynload_atheos.o";;
16518 # use dynload_shlib.c and dlopen() if we have it; otherwise stub
16519 # out any dynamic loading
16520 if test "$ac_cv_func_dlopen" = yes
16521 then DYNLOADFILE="dynload_shlib.o"
16522 else DYNLOADFILE="dynload_stub.o"
16525 esac
16527 { echo "$as_me:$LINENO: result: $DYNLOADFILE" >&5
16528 echo "${ECHO_T}$DYNLOADFILE" >&6; }
16529 if test "$DYNLOADFILE" != "dynload_stub.o"
16530 then
16532 cat >>confdefs.h <<\_ACEOF
16533 #define HAVE_DYNAMIC_LOADING 1
16534 _ACEOF
16538 # MACHDEP_OBJS can be set to platform-specific object files needed by Python
16541 { echo "$as_me:$LINENO: checking MACHDEP_OBJS" >&5
16542 echo $ECHO_N "checking MACHDEP_OBJS... $ECHO_C" >&6; }
16543 if test -z "$MACHDEP_OBJS"
16544 then
16545 MACHDEP_OBJS=$extra_machdep_objs
16546 else
16547 MACHDEP_OBJS="$MACHDEP_OBJS $extra_machdep_objs"
16549 { echo "$as_me:$LINENO: result: MACHDEP_OBJS" >&5
16550 echo "${ECHO_T}MACHDEP_OBJS" >&6; }
16552 # checks for library functions
16638 for ac_func in alarm setitimer getitimer bind_textdomain_codeset chown \
16639 clock confstr ctermid execv fchmod fchown fork fpathconf ftime ftruncate \
16640 gai_strerror getgroups getlogin getloadavg getpeername getpgid getpid \
16641 getpriority getpwent getspnam getspent getsid getwd \
16642 kill killpg lchmod lchown lstat mkfifo mknod mktime \
16643 mremap nice pathconf pause plock poll pthread_init \
16644 putenv readlink realpath \
16645 select sem_open sem_timedwait sem_getvalue sem_unlink setegid seteuid \
16646 setgid \
16647 setlocale setregid setreuid setsid setpgid setpgrp setuid setvbuf snprintf \
16648 sigaction siginterrupt sigrelse strftime \
16649 sysconf tcgetpgrp tcsetpgrp tempnam timegm times tmpfile tmpnam tmpnam_r \
16650 truncate uname unsetenv utimes waitpid wait3 wait4 wcscoll _getpty
16652 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16653 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16654 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16655 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16656 echo $ECHO_N "(cached) $ECHO_C" >&6
16657 else
16658 cat >conftest.$ac_ext <<_ACEOF
16659 /* confdefs.h. */
16660 _ACEOF
16661 cat confdefs.h >>conftest.$ac_ext
16662 cat >>conftest.$ac_ext <<_ACEOF
16663 /* end confdefs.h. */
16664 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16665 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16666 #define $ac_func innocuous_$ac_func
16668 /* System header to define __stub macros and hopefully few prototypes,
16669 which can conflict with char $ac_func (); below.
16670 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16671 <limits.h> exists even on freestanding compilers. */
16673 #ifdef __STDC__
16674 # include <limits.h>
16675 #else
16676 # include <assert.h>
16677 #endif
16679 #undef $ac_func
16681 /* Override any GCC internal prototype to avoid an error.
16682 Use char because int might match the return type of a GCC
16683 builtin and then its argument prototype would still apply. */
16684 #ifdef __cplusplus
16685 extern "C"
16686 #endif
16687 char $ac_func ();
16688 /* The GNU C library defines this for functions which it implements
16689 to always fail with ENOSYS. Some functions are actually named
16690 something starting with __ and the normal name is an alias. */
16691 #if defined __stub_$ac_func || defined __stub___$ac_func
16692 choke me
16693 #endif
16696 main ()
16698 return $ac_func ();
16700 return 0;
16702 _ACEOF
16703 rm -f conftest.$ac_objext conftest$ac_exeext
16704 if { (ac_try="$ac_link"
16705 case "(($ac_try" in
16706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16707 *) ac_try_echo=$ac_try;;
16708 esac
16709 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16710 (eval "$ac_link") 2>conftest.er1
16711 ac_status=$?
16712 grep -v '^ *+' conftest.er1 >conftest.err
16713 rm -f conftest.er1
16714 cat conftest.err >&5
16715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16716 (exit $ac_status); } && {
16717 test -z "$ac_c_werror_flag" ||
16718 test ! -s conftest.err
16719 } && test -s conftest$ac_exeext &&
16720 $as_test_x conftest$ac_exeext; then
16721 eval "$as_ac_var=yes"
16722 else
16723 echo "$as_me: failed program was:" >&5
16724 sed 's/^/| /' conftest.$ac_ext >&5
16726 eval "$as_ac_var=no"
16729 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16730 conftest$ac_exeext conftest.$ac_ext
16732 ac_res=`eval echo '${'$as_ac_var'}'`
16733 { echo "$as_me:$LINENO: result: $ac_res" >&5
16734 echo "${ECHO_T}$ac_res" >&6; }
16735 if test `eval echo '${'$as_ac_var'}'` = yes; then
16736 cat >>confdefs.h <<_ACEOF
16737 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16738 _ACEOF
16741 done
16744 # For some functions, having a definition is not sufficient, since
16745 # we want to take their address.
16746 { echo "$as_me:$LINENO: checking for chroot" >&5
16747 echo $ECHO_N "checking for chroot... $ECHO_C" >&6; }
16748 cat >conftest.$ac_ext <<_ACEOF
16749 /* confdefs.h. */
16750 _ACEOF
16751 cat confdefs.h >>conftest.$ac_ext
16752 cat >>conftest.$ac_ext <<_ACEOF
16753 /* end confdefs.h. */
16754 #include <unistd.h>
16756 main ()
16758 void *x=chroot
16760 return 0;
16762 _ACEOF
16763 rm -f conftest.$ac_objext
16764 if { (ac_try="$ac_compile"
16765 case "(($ac_try" in
16766 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16767 *) ac_try_echo=$ac_try;;
16768 esac
16769 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16770 (eval "$ac_compile") 2>conftest.er1
16771 ac_status=$?
16772 grep -v '^ *+' conftest.er1 >conftest.err
16773 rm -f conftest.er1
16774 cat conftest.err >&5
16775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16776 (exit $ac_status); } && {
16777 test -z "$ac_c_werror_flag" ||
16778 test ! -s conftest.err
16779 } && test -s conftest.$ac_objext; then
16781 cat >>confdefs.h <<\_ACEOF
16782 #define HAVE_CHROOT 1
16783 _ACEOF
16785 { echo "$as_me:$LINENO: result: yes" >&5
16786 echo "${ECHO_T}yes" >&6; }
16787 else
16788 echo "$as_me: failed program was:" >&5
16789 sed 's/^/| /' conftest.$ac_ext >&5
16791 { echo "$as_me:$LINENO: result: no" >&5
16792 echo "${ECHO_T}no" >&6; }
16796 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16797 { echo "$as_me:$LINENO: checking for link" >&5
16798 echo $ECHO_N "checking for link... $ECHO_C" >&6; }
16799 cat >conftest.$ac_ext <<_ACEOF
16800 /* confdefs.h. */
16801 _ACEOF
16802 cat confdefs.h >>conftest.$ac_ext
16803 cat >>conftest.$ac_ext <<_ACEOF
16804 /* end confdefs.h. */
16805 #include <unistd.h>
16807 main ()
16809 void *x=link
16811 return 0;
16813 _ACEOF
16814 rm -f conftest.$ac_objext
16815 if { (ac_try="$ac_compile"
16816 case "(($ac_try" in
16817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16818 *) ac_try_echo=$ac_try;;
16819 esac
16820 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16821 (eval "$ac_compile") 2>conftest.er1
16822 ac_status=$?
16823 grep -v '^ *+' conftest.er1 >conftest.err
16824 rm -f conftest.er1
16825 cat conftest.err >&5
16826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16827 (exit $ac_status); } && {
16828 test -z "$ac_c_werror_flag" ||
16829 test ! -s conftest.err
16830 } && test -s conftest.$ac_objext; then
16832 cat >>confdefs.h <<\_ACEOF
16833 #define HAVE_LINK 1
16834 _ACEOF
16836 { echo "$as_me:$LINENO: result: yes" >&5
16837 echo "${ECHO_T}yes" >&6; }
16838 else
16839 echo "$as_me: failed program was:" >&5
16840 sed 's/^/| /' conftest.$ac_ext >&5
16842 { echo "$as_me:$LINENO: result: no" >&5
16843 echo "${ECHO_T}no" >&6; }
16847 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16848 { echo "$as_me:$LINENO: checking for symlink" >&5
16849 echo $ECHO_N "checking for symlink... $ECHO_C" >&6; }
16850 cat >conftest.$ac_ext <<_ACEOF
16851 /* confdefs.h. */
16852 _ACEOF
16853 cat confdefs.h >>conftest.$ac_ext
16854 cat >>conftest.$ac_ext <<_ACEOF
16855 /* end confdefs.h. */
16856 #include <unistd.h>
16858 main ()
16860 void *x=symlink
16862 return 0;
16864 _ACEOF
16865 rm -f conftest.$ac_objext
16866 if { (ac_try="$ac_compile"
16867 case "(($ac_try" in
16868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16869 *) ac_try_echo=$ac_try;;
16870 esac
16871 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16872 (eval "$ac_compile") 2>conftest.er1
16873 ac_status=$?
16874 grep -v '^ *+' conftest.er1 >conftest.err
16875 rm -f conftest.er1
16876 cat conftest.err >&5
16877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16878 (exit $ac_status); } && {
16879 test -z "$ac_c_werror_flag" ||
16880 test ! -s conftest.err
16881 } && test -s conftest.$ac_objext; then
16883 cat >>confdefs.h <<\_ACEOF
16884 #define HAVE_SYMLINK 1
16885 _ACEOF
16887 { echo "$as_me:$LINENO: result: yes" >&5
16888 echo "${ECHO_T}yes" >&6; }
16889 else
16890 echo "$as_me: failed program was:" >&5
16891 sed 's/^/| /' conftest.$ac_ext >&5
16893 { echo "$as_me:$LINENO: result: no" >&5
16894 echo "${ECHO_T}no" >&6; }
16898 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16899 { echo "$as_me:$LINENO: checking for fchdir" >&5
16900 echo $ECHO_N "checking for fchdir... $ECHO_C" >&6; }
16901 cat >conftest.$ac_ext <<_ACEOF
16902 /* confdefs.h. */
16903 _ACEOF
16904 cat confdefs.h >>conftest.$ac_ext
16905 cat >>conftest.$ac_ext <<_ACEOF
16906 /* end confdefs.h. */
16907 #include <unistd.h>
16909 main ()
16911 void *x=fchdir
16913 return 0;
16915 _ACEOF
16916 rm -f conftest.$ac_objext
16917 if { (ac_try="$ac_compile"
16918 case "(($ac_try" in
16919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16920 *) ac_try_echo=$ac_try;;
16921 esac
16922 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16923 (eval "$ac_compile") 2>conftest.er1
16924 ac_status=$?
16925 grep -v '^ *+' conftest.er1 >conftest.err
16926 rm -f conftest.er1
16927 cat conftest.err >&5
16928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16929 (exit $ac_status); } && {
16930 test -z "$ac_c_werror_flag" ||
16931 test ! -s conftest.err
16932 } && test -s conftest.$ac_objext; then
16934 cat >>confdefs.h <<\_ACEOF
16935 #define HAVE_FCHDIR 1
16936 _ACEOF
16938 { echo "$as_me:$LINENO: result: yes" >&5
16939 echo "${ECHO_T}yes" >&6; }
16940 else
16941 echo "$as_me: failed program was:" >&5
16942 sed 's/^/| /' conftest.$ac_ext >&5
16944 { echo "$as_me:$LINENO: result: no" >&5
16945 echo "${ECHO_T}no" >&6; }
16949 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16950 { echo "$as_me:$LINENO: checking for fsync" >&5
16951 echo $ECHO_N "checking for fsync... $ECHO_C" >&6; }
16952 cat >conftest.$ac_ext <<_ACEOF
16953 /* confdefs.h. */
16954 _ACEOF
16955 cat confdefs.h >>conftest.$ac_ext
16956 cat >>conftest.$ac_ext <<_ACEOF
16957 /* end confdefs.h. */
16958 #include <unistd.h>
16960 main ()
16962 void *x=fsync
16964 return 0;
16966 _ACEOF
16967 rm -f conftest.$ac_objext
16968 if { (ac_try="$ac_compile"
16969 case "(($ac_try" in
16970 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16971 *) ac_try_echo=$ac_try;;
16972 esac
16973 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16974 (eval "$ac_compile") 2>conftest.er1
16975 ac_status=$?
16976 grep -v '^ *+' conftest.er1 >conftest.err
16977 rm -f conftest.er1
16978 cat conftest.err >&5
16979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16980 (exit $ac_status); } && {
16981 test -z "$ac_c_werror_flag" ||
16982 test ! -s conftest.err
16983 } && test -s conftest.$ac_objext; then
16985 cat >>confdefs.h <<\_ACEOF
16986 #define HAVE_FSYNC 1
16987 _ACEOF
16989 { echo "$as_me:$LINENO: result: yes" >&5
16990 echo "${ECHO_T}yes" >&6; }
16991 else
16992 echo "$as_me: failed program was:" >&5
16993 sed 's/^/| /' conftest.$ac_ext >&5
16995 { echo "$as_me:$LINENO: result: no" >&5
16996 echo "${ECHO_T}no" >&6; }
17000 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17001 { echo "$as_me:$LINENO: checking for fdatasync" >&5
17002 echo $ECHO_N "checking for fdatasync... $ECHO_C" >&6; }
17003 cat >conftest.$ac_ext <<_ACEOF
17004 /* confdefs.h. */
17005 _ACEOF
17006 cat confdefs.h >>conftest.$ac_ext
17007 cat >>conftest.$ac_ext <<_ACEOF
17008 /* end confdefs.h. */
17009 #include <unistd.h>
17011 main ()
17013 void *x=fdatasync
17015 return 0;
17017 _ACEOF
17018 rm -f conftest.$ac_objext
17019 if { (ac_try="$ac_compile"
17020 case "(($ac_try" in
17021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17022 *) ac_try_echo=$ac_try;;
17023 esac
17024 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17025 (eval "$ac_compile") 2>conftest.er1
17026 ac_status=$?
17027 grep -v '^ *+' conftest.er1 >conftest.err
17028 rm -f conftest.er1
17029 cat conftest.err >&5
17030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17031 (exit $ac_status); } && {
17032 test -z "$ac_c_werror_flag" ||
17033 test ! -s conftest.err
17034 } && test -s conftest.$ac_objext; then
17036 cat >>confdefs.h <<\_ACEOF
17037 #define HAVE_FDATASYNC 1
17038 _ACEOF
17040 { echo "$as_me:$LINENO: result: yes" >&5
17041 echo "${ECHO_T}yes" >&6; }
17042 else
17043 echo "$as_me: failed program was:" >&5
17044 sed 's/^/| /' conftest.$ac_ext >&5
17046 { echo "$as_me:$LINENO: result: no" >&5
17047 echo "${ECHO_T}no" >&6; }
17051 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17052 { echo "$as_me:$LINENO: checking for epoll" >&5
17053 echo $ECHO_N "checking for epoll... $ECHO_C" >&6; }
17054 cat >conftest.$ac_ext <<_ACEOF
17055 /* confdefs.h. */
17056 _ACEOF
17057 cat confdefs.h >>conftest.$ac_ext
17058 cat >>conftest.$ac_ext <<_ACEOF
17059 /* end confdefs.h. */
17060 #include <sys/epoll.h>
17062 main ()
17064 void *x=epoll_create
17066 return 0;
17068 _ACEOF
17069 rm -f conftest.$ac_objext
17070 if { (ac_try="$ac_compile"
17071 case "(($ac_try" in
17072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17073 *) ac_try_echo=$ac_try;;
17074 esac
17075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17076 (eval "$ac_compile") 2>conftest.er1
17077 ac_status=$?
17078 grep -v '^ *+' conftest.er1 >conftest.err
17079 rm -f conftest.er1
17080 cat conftest.err >&5
17081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17082 (exit $ac_status); } && {
17083 test -z "$ac_c_werror_flag" ||
17084 test ! -s conftest.err
17085 } && test -s conftest.$ac_objext; then
17087 cat >>confdefs.h <<\_ACEOF
17088 #define HAVE_EPOLL 1
17089 _ACEOF
17091 { echo "$as_me:$LINENO: result: yes" >&5
17092 echo "${ECHO_T}yes" >&6; }
17093 else
17094 echo "$as_me: failed program was:" >&5
17095 sed 's/^/| /' conftest.$ac_ext >&5
17097 { echo "$as_me:$LINENO: result: no" >&5
17098 echo "${ECHO_T}no" >&6; }
17102 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17103 { echo "$as_me:$LINENO: checking for kqueue" >&5
17104 echo $ECHO_N "checking for kqueue... $ECHO_C" >&6; }
17105 cat >conftest.$ac_ext <<_ACEOF
17106 /* confdefs.h. */
17107 _ACEOF
17108 cat confdefs.h >>conftest.$ac_ext
17109 cat >>conftest.$ac_ext <<_ACEOF
17110 /* end confdefs.h. */
17112 #include <sys/types.h>
17113 #include <sys/event.h>
17116 main ()
17118 int x=kqueue()
17120 return 0;
17122 _ACEOF
17123 rm -f conftest.$ac_objext
17124 if { (ac_try="$ac_compile"
17125 case "(($ac_try" in
17126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17127 *) ac_try_echo=$ac_try;;
17128 esac
17129 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17130 (eval "$ac_compile") 2>conftest.er1
17131 ac_status=$?
17132 grep -v '^ *+' conftest.er1 >conftest.err
17133 rm -f conftest.er1
17134 cat conftest.err >&5
17135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17136 (exit $ac_status); } && {
17137 test -z "$ac_c_werror_flag" ||
17138 test ! -s conftest.err
17139 } && test -s conftest.$ac_objext; then
17141 cat >>confdefs.h <<\_ACEOF
17142 #define HAVE_KQUEUE 1
17143 _ACEOF
17145 { echo "$as_me:$LINENO: result: yes" >&5
17146 echo "${ECHO_T}yes" >&6; }
17147 else
17148 echo "$as_me: failed program was:" >&5
17149 sed 's/^/| /' conftest.$ac_ext >&5
17151 { echo "$as_me:$LINENO: result: no" >&5
17152 echo "${ECHO_T}no" >&6; }
17156 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17157 # On some systems (eg. FreeBSD 5), we would find a definition of the
17158 # functions ctermid_r, setgroups in the library, but no prototype
17159 # (e.g. because we use _XOPEN_SOURCE). See whether we can take their
17160 # address to avoid compiler warnings and potential miscompilations
17161 # because of the missing prototypes.
17163 { echo "$as_me:$LINENO: checking for ctermid_r" >&5
17164 echo $ECHO_N "checking for ctermid_r... $ECHO_C" >&6; }
17165 cat >conftest.$ac_ext <<_ACEOF
17166 /* confdefs.h. */
17167 _ACEOF
17168 cat confdefs.h >>conftest.$ac_ext
17169 cat >>conftest.$ac_ext <<_ACEOF
17170 /* end confdefs.h. */
17172 #include "confdefs.h"
17173 #include <stdio.h>
17176 main ()
17178 void* p = ctermid_r
17180 return 0;
17182 _ACEOF
17183 rm -f conftest.$ac_objext
17184 if { (ac_try="$ac_compile"
17185 case "(($ac_try" in
17186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17187 *) ac_try_echo=$ac_try;;
17188 esac
17189 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17190 (eval "$ac_compile") 2>conftest.er1
17191 ac_status=$?
17192 grep -v '^ *+' conftest.er1 >conftest.err
17193 rm -f conftest.er1
17194 cat conftest.err >&5
17195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17196 (exit $ac_status); } && {
17197 test -z "$ac_c_werror_flag" ||
17198 test ! -s conftest.err
17199 } && test -s conftest.$ac_objext; then
17201 cat >>confdefs.h <<\_ACEOF
17202 #define HAVE_CTERMID_R 1
17203 _ACEOF
17205 { echo "$as_me:$LINENO: result: yes" >&5
17206 echo "${ECHO_T}yes" >&6; }
17207 else
17208 echo "$as_me: failed program was:" >&5
17209 sed 's/^/| /' conftest.$ac_ext >&5
17211 { echo "$as_me:$LINENO: result: no" >&5
17212 echo "${ECHO_T}no" >&6; }
17216 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17218 { echo "$as_me:$LINENO: checking for flock" >&5
17219 echo $ECHO_N "checking for flock... $ECHO_C" >&6; }
17220 cat >conftest.$ac_ext <<_ACEOF
17221 /* confdefs.h. */
17222 _ACEOF
17223 cat confdefs.h >>conftest.$ac_ext
17224 cat >>conftest.$ac_ext <<_ACEOF
17225 /* end confdefs.h. */
17227 #include "confdefs.h"
17228 #include <sys/file.h>
17231 main ()
17233 void* p = flock
17235 return 0;
17237 _ACEOF
17238 rm -f conftest.$ac_objext
17239 if { (ac_try="$ac_compile"
17240 case "(($ac_try" in
17241 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17242 *) ac_try_echo=$ac_try;;
17243 esac
17244 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17245 (eval "$ac_compile") 2>conftest.er1
17246 ac_status=$?
17247 grep -v '^ *+' conftest.er1 >conftest.err
17248 rm -f conftest.er1
17249 cat conftest.err >&5
17250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17251 (exit $ac_status); } && {
17252 test -z "$ac_c_werror_flag" ||
17253 test ! -s conftest.err
17254 } && test -s conftest.$ac_objext; then
17256 cat >>confdefs.h <<\_ACEOF
17257 #define HAVE_FLOCK 1
17258 _ACEOF
17260 { echo "$as_me:$LINENO: result: yes" >&5
17261 echo "${ECHO_T}yes" >&6; }
17262 else
17263 echo "$as_me: failed program was:" >&5
17264 sed 's/^/| /' conftest.$ac_ext >&5
17266 { echo "$as_me:$LINENO: result: no" >&5
17267 echo "${ECHO_T}no" >&6; }
17271 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17273 { echo "$as_me:$LINENO: checking for getpagesize" >&5
17274 echo $ECHO_N "checking for getpagesize... $ECHO_C" >&6; }
17275 cat >conftest.$ac_ext <<_ACEOF
17276 /* confdefs.h. */
17277 _ACEOF
17278 cat confdefs.h >>conftest.$ac_ext
17279 cat >>conftest.$ac_ext <<_ACEOF
17280 /* end confdefs.h. */
17282 #include "confdefs.h"
17283 #include <unistd.h>
17286 main ()
17288 void* p = getpagesize
17290 return 0;
17292 _ACEOF
17293 rm -f conftest.$ac_objext
17294 if { (ac_try="$ac_compile"
17295 case "(($ac_try" in
17296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17297 *) ac_try_echo=$ac_try;;
17298 esac
17299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17300 (eval "$ac_compile") 2>conftest.er1
17301 ac_status=$?
17302 grep -v '^ *+' conftest.er1 >conftest.err
17303 rm -f conftest.er1
17304 cat conftest.err >&5
17305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17306 (exit $ac_status); } && {
17307 test -z "$ac_c_werror_flag" ||
17308 test ! -s conftest.err
17309 } && test -s conftest.$ac_objext; then
17311 cat >>confdefs.h <<\_ACEOF
17312 #define HAVE_GETPAGESIZE 1
17313 _ACEOF
17315 { echo "$as_me:$LINENO: result: yes" >&5
17316 echo "${ECHO_T}yes" >&6; }
17317 else
17318 echo "$as_me: failed program was:" >&5
17319 sed 's/^/| /' conftest.$ac_ext >&5
17321 { echo "$as_me:$LINENO: result: no" >&5
17322 echo "${ECHO_T}no" >&6; }
17326 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17328 for ac_prog in true
17330 # Extract the first word of "$ac_prog", so it can be a program name with args.
17331 set dummy $ac_prog; ac_word=$2
17332 { echo "$as_me:$LINENO: checking for $ac_word" >&5
17333 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
17334 if test "${ac_cv_prog_TRUE+set}" = set; then
17335 echo $ECHO_N "(cached) $ECHO_C" >&6
17336 else
17337 if test -n "$TRUE"; then
17338 ac_cv_prog_TRUE="$TRUE" # Let the user override the test.
17339 else
17340 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17341 for as_dir in $PATH
17343 IFS=$as_save_IFS
17344 test -z "$as_dir" && as_dir=.
17345 for ac_exec_ext in '' $ac_executable_extensions; do
17346 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17347 ac_cv_prog_TRUE="$ac_prog"
17348 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17349 break 2
17351 done
17352 done
17353 IFS=$as_save_IFS
17357 TRUE=$ac_cv_prog_TRUE
17358 if test -n "$TRUE"; then
17359 { echo "$as_me:$LINENO: result: $TRUE" >&5
17360 echo "${ECHO_T}$TRUE" >&6; }
17361 else
17362 { echo "$as_me:$LINENO: result: no" >&5
17363 echo "${ECHO_T}no" >&6; }
17367 test -n "$TRUE" && break
17368 done
17369 test -n "$TRUE" || TRUE="/bin/true"
17372 { echo "$as_me:$LINENO: checking for inet_aton in -lc" >&5
17373 echo $ECHO_N "checking for inet_aton in -lc... $ECHO_C" >&6; }
17374 if test "${ac_cv_lib_c_inet_aton+set}" = set; then
17375 echo $ECHO_N "(cached) $ECHO_C" >&6
17376 else
17377 ac_check_lib_save_LIBS=$LIBS
17378 LIBS="-lc $LIBS"
17379 cat >conftest.$ac_ext <<_ACEOF
17380 /* confdefs.h. */
17381 _ACEOF
17382 cat confdefs.h >>conftest.$ac_ext
17383 cat >>conftest.$ac_ext <<_ACEOF
17384 /* end confdefs.h. */
17386 /* Override any GCC internal prototype to avoid an error.
17387 Use char because int might match the return type of a GCC
17388 builtin and then its argument prototype would still apply. */
17389 #ifdef __cplusplus
17390 extern "C"
17391 #endif
17392 char inet_aton ();
17394 main ()
17396 return inet_aton ();
17398 return 0;
17400 _ACEOF
17401 rm -f conftest.$ac_objext conftest$ac_exeext
17402 if { (ac_try="$ac_link"
17403 case "(($ac_try" in
17404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17405 *) ac_try_echo=$ac_try;;
17406 esac
17407 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17408 (eval "$ac_link") 2>conftest.er1
17409 ac_status=$?
17410 grep -v '^ *+' conftest.er1 >conftest.err
17411 rm -f conftest.er1
17412 cat conftest.err >&5
17413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17414 (exit $ac_status); } && {
17415 test -z "$ac_c_werror_flag" ||
17416 test ! -s conftest.err
17417 } && test -s conftest$ac_exeext &&
17418 $as_test_x conftest$ac_exeext; then
17419 ac_cv_lib_c_inet_aton=yes
17420 else
17421 echo "$as_me: failed program was:" >&5
17422 sed 's/^/| /' conftest.$ac_ext >&5
17424 ac_cv_lib_c_inet_aton=no
17427 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17428 conftest$ac_exeext conftest.$ac_ext
17429 LIBS=$ac_check_lib_save_LIBS
17431 { echo "$as_me:$LINENO: result: $ac_cv_lib_c_inet_aton" >&5
17432 echo "${ECHO_T}$ac_cv_lib_c_inet_aton" >&6; }
17433 if test $ac_cv_lib_c_inet_aton = yes; then
17434 $ac_cv_prog_TRUE
17435 else
17437 { echo "$as_me:$LINENO: checking for inet_aton in -lresolv" >&5
17438 echo $ECHO_N "checking for inet_aton in -lresolv... $ECHO_C" >&6; }
17439 if test "${ac_cv_lib_resolv_inet_aton+set}" = set; then
17440 echo $ECHO_N "(cached) $ECHO_C" >&6
17441 else
17442 ac_check_lib_save_LIBS=$LIBS
17443 LIBS="-lresolv $LIBS"
17444 cat >conftest.$ac_ext <<_ACEOF
17445 /* confdefs.h. */
17446 _ACEOF
17447 cat confdefs.h >>conftest.$ac_ext
17448 cat >>conftest.$ac_ext <<_ACEOF
17449 /* end confdefs.h. */
17451 /* Override any GCC internal prototype to avoid an error.
17452 Use char because int might match the return type of a GCC
17453 builtin and then its argument prototype would still apply. */
17454 #ifdef __cplusplus
17455 extern "C"
17456 #endif
17457 char inet_aton ();
17459 main ()
17461 return inet_aton ();
17463 return 0;
17465 _ACEOF
17466 rm -f conftest.$ac_objext conftest$ac_exeext
17467 if { (ac_try="$ac_link"
17468 case "(($ac_try" in
17469 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17470 *) ac_try_echo=$ac_try;;
17471 esac
17472 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17473 (eval "$ac_link") 2>conftest.er1
17474 ac_status=$?
17475 grep -v '^ *+' conftest.er1 >conftest.err
17476 rm -f conftest.er1
17477 cat conftest.err >&5
17478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17479 (exit $ac_status); } && {
17480 test -z "$ac_c_werror_flag" ||
17481 test ! -s conftest.err
17482 } && test -s conftest$ac_exeext &&
17483 $as_test_x conftest$ac_exeext; then
17484 ac_cv_lib_resolv_inet_aton=yes
17485 else
17486 echo "$as_me: failed program was:" >&5
17487 sed 's/^/| /' conftest.$ac_ext >&5
17489 ac_cv_lib_resolv_inet_aton=no
17492 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17493 conftest$ac_exeext conftest.$ac_ext
17494 LIBS=$ac_check_lib_save_LIBS
17496 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_aton" >&5
17497 echo "${ECHO_T}$ac_cv_lib_resolv_inet_aton" >&6; }
17498 if test $ac_cv_lib_resolv_inet_aton = yes; then
17499 cat >>confdefs.h <<_ACEOF
17500 #define HAVE_LIBRESOLV 1
17501 _ACEOF
17503 LIBS="-lresolv $LIBS"
17511 # On Tru64, chflags seems to be present, but calling it will
17512 # exit Python
17513 { echo "$as_me:$LINENO: checking for chflags" >&5
17514 echo $ECHO_N "checking for chflags... $ECHO_C" >&6; }
17515 if test "$cross_compiling" = yes; then
17516 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
17517 See \`config.log' for more details." >&5
17518 echo "$as_me: error: cannot run test program while cross compiling
17519 See \`config.log' for more details." >&2;}
17520 { (exit 1); exit 1; }; }
17521 else
17522 cat >conftest.$ac_ext <<_ACEOF
17523 /* confdefs.h. */
17524 _ACEOF
17525 cat confdefs.h >>conftest.$ac_ext
17526 cat >>conftest.$ac_ext <<_ACEOF
17527 /* end confdefs.h. */
17529 #include <sys/stat.h>
17530 #include <unistd.h>
17531 int main(int argc, char*argv[])
17533 if(chflags(argv[0], 0) != 0)
17534 return 1;
17535 return 0;
17538 _ACEOF
17539 rm -f conftest$ac_exeext
17540 if { (ac_try="$ac_link"
17541 case "(($ac_try" in
17542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17543 *) ac_try_echo=$ac_try;;
17544 esac
17545 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17546 (eval "$ac_link") 2>&5
17547 ac_status=$?
17548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17549 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17550 { (case "(($ac_try" in
17551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17552 *) ac_try_echo=$ac_try;;
17553 esac
17554 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17555 (eval "$ac_try") 2>&5
17556 ac_status=$?
17557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17558 (exit $ac_status); }; }; then
17560 cat >>confdefs.h <<\_ACEOF
17561 #define HAVE_CHFLAGS 1
17562 _ACEOF
17564 { echo "$as_me:$LINENO: result: yes" >&5
17565 echo "${ECHO_T}yes" >&6; }
17566 else
17567 echo "$as_me: program exited with status $ac_status" >&5
17568 echo "$as_me: failed program was:" >&5
17569 sed 's/^/| /' conftest.$ac_ext >&5
17571 ( exit $ac_status )
17572 { echo "$as_me:$LINENO: result: no" >&5
17573 echo "${ECHO_T}no" >&6; }
17576 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17581 { echo "$as_me:$LINENO: checking for lchflags" >&5
17582 echo $ECHO_N "checking for lchflags... $ECHO_C" >&6; }
17583 if test "$cross_compiling" = yes; then
17584 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
17585 See \`config.log' for more details." >&5
17586 echo "$as_me: error: cannot run test program while cross compiling
17587 See \`config.log' for more details." >&2;}
17588 { (exit 1); exit 1; }; }
17589 else
17590 cat >conftest.$ac_ext <<_ACEOF
17591 /* confdefs.h. */
17592 _ACEOF
17593 cat confdefs.h >>conftest.$ac_ext
17594 cat >>conftest.$ac_ext <<_ACEOF
17595 /* end confdefs.h. */
17597 #include <sys/stat.h>
17598 #include <unistd.h>
17599 int main(int argc, char*argv[])
17601 if(lchflags(argv[0], 0) != 0)
17602 return 1;
17603 return 0;
17606 _ACEOF
17607 rm -f conftest$ac_exeext
17608 if { (ac_try="$ac_link"
17609 case "(($ac_try" in
17610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17611 *) ac_try_echo=$ac_try;;
17612 esac
17613 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17614 (eval "$ac_link") 2>&5
17615 ac_status=$?
17616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17617 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17618 { (case "(($ac_try" in
17619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17620 *) ac_try_echo=$ac_try;;
17621 esac
17622 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17623 (eval "$ac_try") 2>&5
17624 ac_status=$?
17625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17626 (exit $ac_status); }; }; then
17628 cat >>confdefs.h <<\_ACEOF
17629 #define HAVE_LCHFLAGS 1
17630 _ACEOF
17632 { echo "$as_me:$LINENO: result: yes" >&5
17633 echo "${ECHO_T}yes" >&6; }
17634 else
17635 echo "$as_me: program exited with status $ac_status" >&5
17636 echo "$as_me: failed program was:" >&5
17637 sed 's/^/| /' conftest.$ac_ext >&5
17639 ( exit $ac_status )
17640 { echo "$as_me:$LINENO: result: no" >&5
17641 echo "${ECHO_T}no" >&6; }
17644 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17649 case $ac_sys_system/$ac_sys_release in
17650 Darwin/*)
17651 _CUR_CFLAGS="${CFLAGS}"
17652 _CUR_LDFLAGS="${LDFLAGS}"
17653 CFLAGS="${CFLAGS} -Wl,-search_paths_first"
17654 LDFLAGS="${LDFLAGS} -Wl,-search_paths_first -L/usr/local/lib"
17656 esac
17658 { echo "$as_me:$LINENO: checking for inflateCopy in -lz" >&5
17659 echo $ECHO_N "checking for inflateCopy in -lz... $ECHO_C" >&6; }
17660 if test "${ac_cv_lib_z_inflateCopy+set}" = set; then
17661 echo $ECHO_N "(cached) $ECHO_C" >&6
17662 else
17663 ac_check_lib_save_LIBS=$LIBS
17664 LIBS="-lz $LIBS"
17665 cat >conftest.$ac_ext <<_ACEOF
17666 /* confdefs.h. */
17667 _ACEOF
17668 cat confdefs.h >>conftest.$ac_ext
17669 cat >>conftest.$ac_ext <<_ACEOF
17670 /* end confdefs.h. */
17672 /* Override any GCC internal prototype to avoid an error.
17673 Use char because int might match the return type of a GCC
17674 builtin and then its argument prototype would still apply. */
17675 #ifdef __cplusplus
17676 extern "C"
17677 #endif
17678 char inflateCopy ();
17680 main ()
17682 return inflateCopy ();
17684 return 0;
17686 _ACEOF
17687 rm -f conftest.$ac_objext conftest$ac_exeext
17688 if { (ac_try="$ac_link"
17689 case "(($ac_try" in
17690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17691 *) ac_try_echo=$ac_try;;
17692 esac
17693 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17694 (eval "$ac_link") 2>conftest.er1
17695 ac_status=$?
17696 grep -v '^ *+' conftest.er1 >conftest.err
17697 rm -f conftest.er1
17698 cat conftest.err >&5
17699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17700 (exit $ac_status); } && {
17701 test -z "$ac_c_werror_flag" ||
17702 test ! -s conftest.err
17703 } && test -s conftest$ac_exeext &&
17704 $as_test_x conftest$ac_exeext; then
17705 ac_cv_lib_z_inflateCopy=yes
17706 else
17707 echo "$as_me: failed program was:" >&5
17708 sed 's/^/| /' conftest.$ac_ext >&5
17710 ac_cv_lib_z_inflateCopy=no
17713 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17714 conftest$ac_exeext conftest.$ac_ext
17715 LIBS=$ac_check_lib_save_LIBS
17717 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_inflateCopy" >&5
17718 echo "${ECHO_T}$ac_cv_lib_z_inflateCopy" >&6; }
17719 if test $ac_cv_lib_z_inflateCopy = yes; then
17721 cat >>confdefs.h <<\_ACEOF
17722 #define HAVE_ZLIB_COPY 1
17723 _ACEOF
17728 case $ac_sys_system/$ac_sys_release in
17729 Darwin/*)
17730 CFLAGS="${_CUR_CFLAGS}"
17731 LDFLAGS="${_CUR_LDFLAGS}"
17733 esac
17735 { echo "$as_me:$LINENO: checking for hstrerror" >&5
17736 echo $ECHO_N "checking for hstrerror... $ECHO_C" >&6; }
17737 cat >conftest.$ac_ext <<_ACEOF
17738 /* confdefs.h. */
17739 _ACEOF
17740 cat confdefs.h >>conftest.$ac_ext
17741 cat >>conftest.$ac_ext <<_ACEOF
17742 /* end confdefs.h. */
17744 #include "confdefs.h"
17745 #include <netdb.h>
17748 main ()
17750 void* p = hstrerror; hstrerror(0)
17752 return 0;
17754 _ACEOF
17755 rm -f conftest.$ac_objext conftest$ac_exeext
17756 if { (ac_try="$ac_link"
17757 case "(($ac_try" in
17758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17759 *) ac_try_echo=$ac_try;;
17760 esac
17761 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17762 (eval "$ac_link") 2>conftest.er1
17763 ac_status=$?
17764 grep -v '^ *+' conftest.er1 >conftest.err
17765 rm -f conftest.er1
17766 cat conftest.err >&5
17767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17768 (exit $ac_status); } && {
17769 test -z "$ac_c_werror_flag" ||
17770 test ! -s conftest.err
17771 } && test -s conftest$ac_exeext &&
17772 $as_test_x conftest$ac_exeext; then
17774 cat >>confdefs.h <<\_ACEOF
17775 #define HAVE_HSTRERROR 1
17776 _ACEOF
17778 { echo "$as_me:$LINENO: result: yes" >&5
17779 echo "${ECHO_T}yes" >&6; }
17780 else
17781 echo "$as_me: failed program was:" >&5
17782 sed 's/^/| /' conftest.$ac_ext >&5
17784 { echo "$as_me:$LINENO: result: no" >&5
17785 echo "${ECHO_T}no" >&6; }
17789 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17790 conftest$ac_exeext conftest.$ac_ext
17792 { echo "$as_me:$LINENO: checking for inet_aton" >&5
17793 echo $ECHO_N "checking for inet_aton... $ECHO_C" >&6; }
17794 cat >conftest.$ac_ext <<_ACEOF
17795 /* confdefs.h. */
17796 _ACEOF
17797 cat confdefs.h >>conftest.$ac_ext
17798 cat >>conftest.$ac_ext <<_ACEOF
17799 /* end confdefs.h. */
17801 #include "confdefs.h"
17802 #include <sys/types.h>
17803 #include <sys/socket.h>
17804 #include <netinet/in.h>
17805 #include <arpa/inet.h>
17808 main ()
17810 void* p = inet_aton;inet_aton(0,0)
17812 return 0;
17814 _ACEOF
17815 rm -f conftest.$ac_objext conftest$ac_exeext
17816 if { (ac_try="$ac_link"
17817 case "(($ac_try" in
17818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17819 *) ac_try_echo=$ac_try;;
17820 esac
17821 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17822 (eval "$ac_link") 2>conftest.er1
17823 ac_status=$?
17824 grep -v '^ *+' conftest.er1 >conftest.err
17825 rm -f conftest.er1
17826 cat conftest.err >&5
17827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17828 (exit $ac_status); } && {
17829 test -z "$ac_c_werror_flag" ||
17830 test ! -s conftest.err
17831 } && test -s conftest$ac_exeext &&
17832 $as_test_x conftest$ac_exeext; then
17834 cat >>confdefs.h <<\_ACEOF
17835 #define HAVE_INET_ATON 1
17836 _ACEOF
17838 { echo "$as_me:$LINENO: result: yes" >&5
17839 echo "${ECHO_T}yes" >&6; }
17840 else
17841 echo "$as_me: failed program was:" >&5
17842 sed 's/^/| /' conftest.$ac_ext >&5
17844 { echo "$as_me:$LINENO: result: no" >&5
17845 echo "${ECHO_T}no" >&6; }
17849 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17850 conftest$ac_exeext conftest.$ac_ext
17852 { echo "$as_me:$LINENO: checking for inet_pton" >&5
17853 echo $ECHO_N "checking for inet_pton... $ECHO_C" >&6; }
17854 cat >conftest.$ac_ext <<_ACEOF
17855 /* confdefs.h. */
17856 _ACEOF
17857 cat confdefs.h >>conftest.$ac_ext
17858 cat >>conftest.$ac_ext <<_ACEOF
17859 /* end confdefs.h. */
17861 #include "confdefs.h"
17862 #include <sys/types.h>
17863 #include <sys/socket.h>
17864 #include <netinet/in.h>
17865 #include <arpa/inet.h>
17868 main ()
17870 void* p = inet_pton
17872 return 0;
17874 _ACEOF
17875 rm -f conftest.$ac_objext
17876 if { (ac_try="$ac_compile"
17877 case "(($ac_try" in
17878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17879 *) ac_try_echo=$ac_try;;
17880 esac
17881 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17882 (eval "$ac_compile") 2>conftest.er1
17883 ac_status=$?
17884 grep -v '^ *+' conftest.er1 >conftest.err
17885 rm -f conftest.er1
17886 cat conftest.err >&5
17887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17888 (exit $ac_status); } && {
17889 test -z "$ac_c_werror_flag" ||
17890 test ! -s conftest.err
17891 } && test -s conftest.$ac_objext; then
17893 cat >>confdefs.h <<\_ACEOF
17894 #define HAVE_INET_PTON 1
17895 _ACEOF
17897 { echo "$as_me:$LINENO: result: yes" >&5
17898 echo "${ECHO_T}yes" >&6; }
17899 else
17900 echo "$as_me: failed program was:" >&5
17901 sed 's/^/| /' conftest.$ac_ext >&5
17903 { echo "$as_me:$LINENO: result: no" >&5
17904 echo "${ECHO_T}no" >&6; }
17908 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17910 # On some systems, setgroups is in unistd.h, on others, in grp.h
17911 { echo "$as_me:$LINENO: checking for setgroups" >&5
17912 echo $ECHO_N "checking for setgroups... $ECHO_C" >&6; }
17913 cat >conftest.$ac_ext <<_ACEOF
17914 /* confdefs.h. */
17915 _ACEOF
17916 cat confdefs.h >>conftest.$ac_ext
17917 cat >>conftest.$ac_ext <<_ACEOF
17918 /* end confdefs.h. */
17920 #include "confdefs.h"
17921 #include <unistd.h>
17922 #ifdef HAVE_GRP_H
17923 #include <grp.h>
17924 #endif
17927 main ()
17929 void* p = setgroups
17931 return 0;
17933 _ACEOF
17934 rm -f conftest.$ac_objext
17935 if { (ac_try="$ac_compile"
17936 case "(($ac_try" in
17937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17938 *) ac_try_echo=$ac_try;;
17939 esac
17940 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17941 (eval "$ac_compile") 2>conftest.er1
17942 ac_status=$?
17943 grep -v '^ *+' conftest.er1 >conftest.err
17944 rm -f conftest.er1
17945 cat conftest.err >&5
17946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17947 (exit $ac_status); } && {
17948 test -z "$ac_c_werror_flag" ||
17949 test ! -s conftest.err
17950 } && test -s conftest.$ac_objext; then
17952 cat >>confdefs.h <<\_ACEOF
17953 #define HAVE_SETGROUPS 1
17954 _ACEOF
17956 { echo "$as_me:$LINENO: result: yes" >&5
17957 echo "${ECHO_T}yes" >&6; }
17958 else
17959 echo "$as_me: failed program was:" >&5
17960 sed 's/^/| /' conftest.$ac_ext >&5
17962 { echo "$as_me:$LINENO: result: no" >&5
17963 echo "${ECHO_T}no" >&6; }
17967 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17969 # check for openpty and forkpty
17972 for ac_func in openpty
17974 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17975 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17976 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17977 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17978 echo $ECHO_N "(cached) $ECHO_C" >&6
17979 else
17980 cat >conftest.$ac_ext <<_ACEOF
17981 /* confdefs.h. */
17982 _ACEOF
17983 cat confdefs.h >>conftest.$ac_ext
17984 cat >>conftest.$ac_ext <<_ACEOF
17985 /* end confdefs.h. */
17986 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17987 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17988 #define $ac_func innocuous_$ac_func
17990 /* System header to define __stub macros and hopefully few prototypes,
17991 which can conflict with char $ac_func (); below.
17992 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17993 <limits.h> exists even on freestanding compilers. */
17995 #ifdef __STDC__
17996 # include <limits.h>
17997 #else
17998 # include <assert.h>
17999 #endif
18001 #undef $ac_func
18003 /* Override any GCC internal prototype to avoid an error.
18004 Use char because int might match the return type of a GCC
18005 builtin and then its argument prototype would still apply. */
18006 #ifdef __cplusplus
18007 extern "C"
18008 #endif
18009 char $ac_func ();
18010 /* The GNU C library defines this for functions which it implements
18011 to always fail with ENOSYS. Some functions are actually named
18012 something starting with __ and the normal name is an alias. */
18013 #if defined __stub_$ac_func || defined __stub___$ac_func
18014 choke me
18015 #endif
18018 main ()
18020 return $ac_func ();
18022 return 0;
18024 _ACEOF
18025 rm -f conftest.$ac_objext conftest$ac_exeext
18026 if { (ac_try="$ac_link"
18027 case "(($ac_try" in
18028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18029 *) ac_try_echo=$ac_try;;
18030 esac
18031 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18032 (eval "$ac_link") 2>conftest.er1
18033 ac_status=$?
18034 grep -v '^ *+' conftest.er1 >conftest.err
18035 rm -f conftest.er1
18036 cat conftest.err >&5
18037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18038 (exit $ac_status); } && {
18039 test -z "$ac_c_werror_flag" ||
18040 test ! -s conftest.err
18041 } && test -s conftest$ac_exeext &&
18042 $as_test_x conftest$ac_exeext; then
18043 eval "$as_ac_var=yes"
18044 else
18045 echo "$as_me: failed program was:" >&5
18046 sed 's/^/| /' conftest.$ac_ext >&5
18048 eval "$as_ac_var=no"
18051 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18052 conftest$ac_exeext conftest.$ac_ext
18054 ac_res=`eval echo '${'$as_ac_var'}'`
18055 { echo "$as_me:$LINENO: result: $ac_res" >&5
18056 echo "${ECHO_T}$ac_res" >&6; }
18057 if test `eval echo '${'$as_ac_var'}'` = yes; then
18058 cat >>confdefs.h <<_ACEOF
18059 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18060 _ACEOF
18062 else
18063 { echo "$as_me:$LINENO: checking for openpty in -lutil" >&5
18064 echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6; }
18065 if test "${ac_cv_lib_util_openpty+set}" = set; then
18066 echo $ECHO_N "(cached) $ECHO_C" >&6
18067 else
18068 ac_check_lib_save_LIBS=$LIBS
18069 LIBS="-lutil $LIBS"
18070 cat >conftest.$ac_ext <<_ACEOF
18071 /* confdefs.h. */
18072 _ACEOF
18073 cat confdefs.h >>conftest.$ac_ext
18074 cat >>conftest.$ac_ext <<_ACEOF
18075 /* end confdefs.h. */
18077 /* Override any GCC internal prototype to avoid an error.
18078 Use char because int might match the return type of a GCC
18079 builtin and then its argument prototype would still apply. */
18080 #ifdef __cplusplus
18081 extern "C"
18082 #endif
18083 char openpty ();
18085 main ()
18087 return openpty ();
18089 return 0;
18091 _ACEOF
18092 rm -f conftest.$ac_objext conftest$ac_exeext
18093 if { (ac_try="$ac_link"
18094 case "(($ac_try" in
18095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18096 *) ac_try_echo=$ac_try;;
18097 esac
18098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18099 (eval "$ac_link") 2>conftest.er1
18100 ac_status=$?
18101 grep -v '^ *+' conftest.er1 >conftest.err
18102 rm -f conftest.er1
18103 cat conftest.err >&5
18104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18105 (exit $ac_status); } && {
18106 test -z "$ac_c_werror_flag" ||
18107 test ! -s conftest.err
18108 } && test -s conftest$ac_exeext &&
18109 $as_test_x conftest$ac_exeext; then
18110 ac_cv_lib_util_openpty=yes
18111 else
18112 echo "$as_me: failed program was:" >&5
18113 sed 's/^/| /' conftest.$ac_ext >&5
18115 ac_cv_lib_util_openpty=no
18118 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18119 conftest$ac_exeext conftest.$ac_ext
18120 LIBS=$ac_check_lib_save_LIBS
18122 { echo "$as_me:$LINENO: result: $ac_cv_lib_util_openpty" >&5
18123 echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6; }
18124 if test $ac_cv_lib_util_openpty = yes; then
18125 cat >>confdefs.h <<\_ACEOF
18126 #define HAVE_OPENPTY 1
18127 _ACEOF
18128 LIBS="$LIBS -lutil"
18129 else
18130 { echo "$as_me:$LINENO: checking for openpty in -lbsd" >&5
18131 echo $ECHO_N "checking for openpty in -lbsd... $ECHO_C" >&6; }
18132 if test "${ac_cv_lib_bsd_openpty+set}" = set; then
18133 echo $ECHO_N "(cached) $ECHO_C" >&6
18134 else
18135 ac_check_lib_save_LIBS=$LIBS
18136 LIBS="-lbsd $LIBS"
18137 cat >conftest.$ac_ext <<_ACEOF
18138 /* confdefs.h. */
18139 _ACEOF
18140 cat confdefs.h >>conftest.$ac_ext
18141 cat >>conftest.$ac_ext <<_ACEOF
18142 /* end confdefs.h. */
18144 /* Override any GCC internal prototype to avoid an error.
18145 Use char because int might match the return type of a GCC
18146 builtin and then its argument prototype would still apply. */
18147 #ifdef __cplusplus
18148 extern "C"
18149 #endif
18150 char openpty ();
18152 main ()
18154 return openpty ();
18156 return 0;
18158 _ACEOF
18159 rm -f conftest.$ac_objext conftest$ac_exeext
18160 if { (ac_try="$ac_link"
18161 case "(($ac_try" in
18162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18163 *) ac_try_echo=$ac_try;;
18164 esac
18165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18166 (eval "$ac_link") 2>conftest.er1
18167 ac_status=$?
18168 grep -v '^ *+' conftest.er1 >conftest.err
18169 rm -f conftest.er1
18170 cat conftest.err >&5
18171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18172 (exit $ac_status); } && {
18173 test -z "$ac_c_werror_flag" ||
18174 test ! -s conftest.err
18175 } && test -s conftest$ac_exeext &&
18176 $as_test_x conftest$ac_exeext; then
18177 ac_cv_lib_bsd_openpty=yes
18178 else
18179 echo "$as_me: failed program was:" >&5
18180 sed 's/^/| /' conftest.$ac_ext >&5
18182 ac_cv_lib_bsd_openpty=no
18185 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18186 conftest$ac_exeext conftest.$ac_ext
18187 LIBS=$ac_check_lib_save_LIBS
18189 { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_openpty" >&5
18190 echo "${ECHO_T}$ac_cv_lib_bsd_openpty" >&6; }
18191 if test $ac_cv_lib_bsd_openpty = yes; then
18192 cat >>confdefs.h <<\_ACEOF
18193 #define HAVE_OPENPTY 1
18194 _ACEOF
18195 LIBS="$LIBS -lbsd"
18203 done
18206 for ac_func in forkpty
18208 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18209 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18210 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18211 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18212 echo $ECHO_N "(cached) $ECHO_C" >&6
18213 else
18214 cat >conftest.$ac_ext <<_ACEOF
18215 /* confdefs.h. */
18216 _ACEOF
18217 cat confdefs.h >>conftest.$ac_ext
18218 cat >>conftest.$ac_ext <<_ACEOF
18219 /* end confdefs.h. */
18220 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18221 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18222 #define $ac_func innocuous_$ac_func
18224 /* System header to define __stub macros and hopefully few prototypes,
18225 which can conflict with char $ac_func (); below.
18226 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18227 <limits.h> exists even on freestanding compilers. */
18229 #ifdef __STDC__
18230 # include <limits.h>
18231 #else
18232 # include <assert.h>
18233 #endif
18235 #undef $ac_func
18237 /* Override any GCC internal prototype to avoid an error.
18238 Use char because int might match the return type of a GCC
18239 builtin and then its argument prototype would still apply. */
18240 #ifdef __cplusplus
18241 extern "C"
18242 #endif
18243 char $ac_func ();
18244 /* The GNU C library defines this for functions which it implements
18245 to always fail with ENOSYS. Some functions are actually named
18246 something starting with __ and the normal name is an alias. */
18247 #if defined __stub_$ac_func || defined __stub___$ac_func
18248 choke me
18249 #endif
18252 main ()
18254 return $ac_func ();
18256 return 0;
18258 _ACEOF
18259 rm -f conftest.$ac_objext conftest$ac_exeext
18260 if { (ac_try="$ac_link"
18261 case "(($ac_try" in
18262 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18263 *) ac_try_echo=$ac_try;;
18264 esac
18265 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18266 (eval "$ac_link") 2>conftest.er1
18267 ac_status=$?
18268 grep -v '^ *+' conftest.er1 >conftest.err
18269 rm -f conftest.er1
18270 cat conftest.err >&5
18271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18272 (exit $ac_status); } && {
18273 test -z "$ac_c_werror_flag" ||
18274 test ! -s conftest.err
18275 } && test -s conftest$ac_exeext &&
18276 $as_test_x conftest$ac_exeext; then
18277 eval "$as_ac_var=yes"
18278 else
18279 echo "$as_me: failed program was:" >&5
18280 sed 's/^/| /' conftest.$ac_ext >&5
18282 eval "$as_ac_var=no"
18285 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18286 conftest$ac_exeext conftest.$ac_ext
18288 ac_res=`eval echo '${'$as_ac_var'}'`
18289 { echo "$as_me:$LINENO: result: $ac_res" >&5
18290 echo "${ECHO_T}$ac_res" >&6; }
18291 if test `eval echo '${'$as_ac_var'}'` = yes; then
18292 cat >>confdefs.h <<_ACEOF
18293 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18294 _ACEOF
18296 else
18297 { echo "$as_me:$LINENO: checking for forkpty in -lutil" >&5
18298 echo $ECHO_N "checking for forkpty in -lutil... $ECHO_C" >&6; }
18299 if test "${ac_cv_lib_util_forkpty+set}" = set; then
18300 echo $ECHO_N "(cached) $ECHO_C" >&6
18301 else
18302 ac_check_lib_save_LIBS=$LIBS
18303 LIBS="-lutil $LIBS"
18304 cat >conftest.$ac_ext <<_ACEOF
18305 /* confdefs.h. */
18306 _ACEOF
18307 cat confdefs.h >>conftest.$ac_ext
18308 cat >>conftest.$ac_ext <<_ACEOF
18309 /* end confdefs.h. */
18311 /* Override any GCC internal prototype to avoid an error.
18312 Use char because int might match the return type of a GCC
18313 builtin and then its argument prototype would still apply. */
18314 #ifdef __cplusplus
18315 extern "C"
18316 #endif
18317 char forkpty ();
18319 main ()
18321 return forkpty ();
18323 return 0;
18325 _ACEOF
18326 rm -f conftest.$ac_objext conftest$ac_exeext
18327 if { (ac_try="$ac_link"
18328 case "(($ac_try" in
18329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18330 *) ac_try_echo=$ac_try;;
18331 esac
18332 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18333 (eval "$ac_link") 2>conftest.er1
18334 ac_status=$?
18335 grep -v '^ *+' conftest.er1 >conftest.err
18336 rm -f conftest.er1
18337 cat conftest.err >&5
18338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18339 (exit $ac_status); } && {
18340 test -z "$ac_c_werror_flag" ||
18341 test ! -s conftest.err
18342 } && test -s conftest$ac_exeext &&
18343 $as_test_x conftest$ac_exeext; then
18344 ac_cv_lib_util_forkpty=yes
18345 else
18346 echo "$as_me: failed program was:" >&5
18347 sed 's/^/| /' conftest.$ac_ext >&5
18349 ac_cv_lib_util_forkpty=no
18352 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18353 conftest$ac_exeext conftest.$ac_ext
18354 LIBS=$ac_check_lib_save_LIBS
18356 { echo "$as_me:$LINENO: result: $ac_cv_lib_util_forkpty" >&5
18357 echo "${ECHO_T}$ac_cv_lib_util_forkpty" >&6; }
18358 if test $ac_cv_lib_util_forkpty = yes; then
18359 cat >>confdefs.h <<\_ACEOF
18360 #define HAVE_FORKPTY 1
18361 _ACEOF
18362 LIBS="$LIBS -lutil"
18363 else
18364 { echo "$as_me:$LINENO: checking for forkpty in -lbsd" >&5
18365 echo $ECHO_N "checking for forkpty in -lbsd... $ECHO_C" >&6; }
18366 if test "${ac_cv_lib_bsd_forkpty+set}" = set; then
18367 echo $ECHO_N "(cached) $ECHO_C" >&6
18368 else
18369 ac_check_lib_save_LIBS=$LIBS
18370 LIBS="-lbsd $LIBS"
18371 cat >conftest.$ac_ext <<_ACEOF
18372 /* confdefs.h. */
18373 _ACEOF
18374 cat confdefs.h >>conftest.$ac_ext
18375 cat >>conftest.$ac_ext <<_ACEOF
18376 /* end confdefs.h. */
18378 /* Override any GCC internal prototype to avoid an error.
18379 Use char because int might match the return type of a GCC
18380 builtin and then its argument prototype would still apply. */
18381 #ifdef __cplusplus
18382 extern "C"
18383 #endif
18384 char forkpty ();
18386 main ()
18388 return forkpty ();
18390 return 0;
18392 _ACEOF
18393 rm -f conftest.$ac_objext conftest$ac_exeext
18394 if { (ac_try="$ac_link"
18395 case "(($ac_try" in
18396 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18397 *) ac_try_echo=$ac_try;;
18398 esac
18399 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18400 (eval "$ac_link") 2>conftest.er1
18401 ac_status=$?
18402 grep -v '^ *+' conftest.er1 >conftest.err
18403 rm -f conftest.er1
18404 cat conftest.err >&5
18405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18406 (exit $ac_status); } && {
18407 test -z "$ac_c_werror_flag" ||
18408 test ! -s conftest.err
18409 } && test -s conftest$ac_exeext &&
18410 $as_test_x conftest$ac_exeext; then
18411 ac_cv_lib_bsd_forkpty=yes
18412 else
18413 echo "$as_me: failed program was:" >&5
18414 sed 's/^/| /' conftest.$ac_ext >&5
18416 ac_cv_lib_bsd_forkpty=no
18419 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18420 conftest$ac_exeext conftest.$ac_ext
18421 LIBS=$ac_check_lib_save_LIBS
18423 { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_forkpty" >&5
18424 echo "${ECHO_T}$ac_cv_lib_bsd_forkpty" >&6; }
18425 if test $ac_cv_lib_bsd_forkpty = yes; then
18426 cat >>confdefs.h <<\_ACEOF
18427 #define HAVE_FORKPTY 1
18428 _ACEOF
18429 LIBS="$LIBS -lbsd"
18437 done
18440 # Stuff for expat.
18442 for ac_func in memmove
18444 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18445 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18446 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18447 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18448 echo $ECHO_N "(cached) $ECHO_C" >&6
18449 else
18450 cat >conftest.$ac_ext <<_ACEOF
18451 /* confdefs.h. */
18452 _ACEOF
18453 cat confdefs.h >>conftest.$ac_ext
18454 cat >>conftest.$ac_ext <<_ACEOF
18455 /* end confdefs.h. */
18456 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18457 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18458 #define $ac_func innocuous_$ac_func
18460 /* System header to define __stub macros and hopefully few prototypes,
18461 which can conflict with char $ac_func (); below.
18462 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18463 <limits.h> exists even on freestanding compilers. */
18465 #ifdef __STDC__
18466 # include <limits.h>
18467 #else
18468 # include <assert.h>
18469 #endif
18471 #undef $ac_func
18473 /* Override any GCC internal prototype to avoid an error.
18474 Use char because int might match the return type of a GCC
18475 builtin and then its argument prototype would still apply. */
18476 #ifdef __cplusplus
18477 extern "C"
18478 #endif
18479 char $ac_func ();
18480 /* The GNU C library defines this for functions which it implements
18481 to always fail with ENOSYS. Some functions are actually named
18482 something starting with __ and the normal name is an alias. */
18483 #if defined __stub_$ac_func || defined __stub___$ac_func
18484 choke me
18485 #endif
18488 main ()
18490 return $ac_func ();
18492 return 0;
18494 _ACEOF
18495 rm -f conftest.$ac_objext conftest$ac_exeext
18496 if { (ac_try="$ac_link"
18497 case "(($ac_try" in
18498 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18499 *) ac_try_echo=$ac_try;;
18500 esac
18501 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18502 (eval "$ac_link") 2>conftest.er1
18503 ac_status=$?
18504 grep -v '^ *+' conftest.er1 >conftest.err
18505 rm -f conftest.er1
18506 cat conftest.err >&5
18507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18508 (exit $ac_status); } && {
18509 test -z "$ac_c_werror_flag" ||
18510 test ! -s conftest.err
18511 } && test -s conftest$ac_exeext &&
18512 $as_test_x conftest$ac_exeext; then
18513 eval "$as_ac_var=yes"
18514 else
18515 echo "$as_me: failed program was:" >&5
18516 sed 's/^/| /' conftest.$ac_ext >&5
18518 eval "$as_ac_var=no"
18521 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18522 conftest$ac_exeext conftest.$ac_ext
18524 ac_res=`eval echo '${'$as_ac_var'}'`
18525 { echo "$as_me:$LINENO: result: $ac_res" >&5
18526 echo "${ECHO_T}$ac_res" >&6; }
18527 if test `eval echo '${'$as_ac_var'}'` = yes; then
18528 cat >>confdefs.h <<_ACEOF
18529 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18530 _ACEOF
18533 done
18536 # check for long file support functions
18543 for ac_func in fseek64 fseeko fstatvfs ftell64 ftello statvfs
18545 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18546 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18547 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18548 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18549 echo $ECHO_N "(cached) $ECHO_C" >&6
18550 else
18551 cat >conftest.$ac_ext <<_ACEOF
18552 /* confdefs.h. */
18553 _ACEOF
18554 cat confdefs.h >>conftest.$ac_ext
18555 cat >>conftest.$ac_ext <<_ACEOF
18556 /* end confdefs.h. */
18557 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18558 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18559 #define $ac_func innocuous_$ac_func
18561 /* System header to define __stub macros and hopefully few prototypes,
18562 which can conflict with char $ac_func (); below.
18563 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18564 <limits.h> exists even on freestanding compilers. */
18566 #ifdef __STDC__
18567 # include <limits.h>
18568 #else
18569 # include <assert.h>
18570 #endif
18572 #undef $ac_func
18574 /* Override any GCC internal prototype to avoid an error.
18575 Use char because int might match the return type of a GCC
18576 builtin and then its argument prototype would still apply. */
18577 #ifdef __cplusplus
18578 extern "C"
18579 #endif
18580 char $ac_func ();
18581 /* The GNU C library defines this for functions which it implements
18582 to always fail with ENOSYS. Some functions are actually named
18583 something starting with __ and the normal name is an alias. */
18584 #if defined __stub_$ac_func || defined __stub___$ac_func
18585 choke me
18586 #endif
18589 main ()
18591 return $ac_func ();
18593 return 0;
18595 _ACEOF
18596 rm -f conftest.$ac_objext conftest$ac_exeext
18597 if { (ac_try="$ac_link"
18598 case "(($ac_try" in
18599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18600 *) ac_try_echo=$ac_try;;
18601 esac
18602 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18603 (eval "$ac_link") 2>conftest.er1
18604 ac_status=$?
18605 grep -v '^ *+' conftest.er1 >conftest.err
18606 rm -f conftest.er1
18607 cat conftest.err >&5
18608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18609 (exit $ac_status); } && {
18610 test -z "$ac_c_werror_flag" ||
18611 test ! -s conftest.err
18612 } && test -s conftest$ac_exeext &&
18613 $as_test_x conftest$ac_exeext; then
18614 eval "$as_ac_var=yes"
18615 else
18616 echo "$as_me: failed program was:" >&5
18617 sed 's/^/| /' conftest.$ac_ext >&5
18619 eval "$as_ac_var=no"
18622 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18623 conftest$ac_exeext conftest.$ac_ext
18625 ac_res=`eval echo '${'$as_ac_var'}'`
18626 { echo "$as_me:$LINENO: result: $ac_res" >&5
18627 echo "${ECHO_T}$ac_res" >&6; }
18628 if test `eval echo '${'$as_ac_var'}'` = yes; then
18629 cat >>confdefs.h <<_ACEOF
18630 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18631 _ACEOF
18634 done
18640 for ac_func in dup2 getcwd strdup
18642 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18643 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18644 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18645 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18646 echo $ECHO_N "(cached) $ECHO_C" >&6
18647 else
18648 cat >conftest.$ac_ext <<_ACEOF
18649 /* confdefs.h. */
18650 _ACEOF
18651 cat confdefs.h >>conftest.$ac_ext
18652 cat >>conftest.$ac_ext <<_ACEOF
18653 /* end confdefs.h. */
18654 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18655 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18656 #define $ac_func innocuous_$ac_func
18658 /* System header to define __stub macros and hopefully few prototypes,
18659 which can conflict with char $ac_func (); below.
18660 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18661 <limits.h> exists even on freestanding compilers. */
18663 #ifdef __STDC__
18664 # include <limits.h>
18665 #else
18666 # include <assert.h>
18667 #endif
18669 #undef $ac_func
18671 /* Override any GCC internal prototype to avoid an error.
18672 Use char because int might match the return type of a GCC
18673 builtin and then its argument prototype would still apply. */
18674 #ifdef __cplusplus
18675 extern "C"
18676 #endif
18677 char $ac_func ();
18678 /* The GNU C library defines this for functions which it implements
18679 to always fail with ENOSYS. Some functions are actually named
18680 something starting with __ and the normal name is an alias. */
18681 #if defined __stub_$ac_func || defined __stub___$ac_func
18682 choke me
18683 #endif
18686 main ()
18688 return $ac_func ();
18690 return 0;
18692 _ACEOF
18693 rm -f conftest.$ac_objext conftest$ac_exeext
18694 if { (ac_try="$ac_link"
18695 case "(($ac_try" in
18696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18697 *) ac_try_echo=$ac_try;;
18698 esac
18699 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18700 (eval "$ac_link") 2>conftest.er1
18701 ac_status=$?
18702 grep -v '^ *+' conftest.er1 >conftest.err
18703 rm -f conftest.er1
18704 cat conftest.err >&5
18705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18706 (exit $ac_status); } && {
18707 test -z "$ac_c_werror_flag" ||
18708 test ! -s conftest.err
18709 } && test -s conftest$ac_exeext &&
18710 $as_test_x conftest$ac_exeext; then
18711 eval "$as_ac_var=yes"
18712 else
18713 echo "$as_me: failed program was:" >&5
18714 sed 's/^/| /' conftest.$ac_ext >&5
18716 eval "$as_ac_var=no"
18719 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18720 conftest$ac_exeext conftest.$ac_ext
18722 ac_res=`eval echo '${'$as_ac_var'}'`
18723 { echo "$as_me:$LINENO: result: $ac_res" >&5
18724 echo "${ECHO_T}$ac_res" >&6; }
18725 if test `eval echo '${'$as_ac_var'}'` = yes; then
18726 cat >>confdefs.h <<_ACEOF
18727 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18728 _ACEOF
18730 else
18731 case " $LIBOBJS " in
18732 *" $ac_func.$ac_objext "* ) ;;
18733 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
18735 esac
18738 done
18742 for ac_func in getpgrp
18744 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18745 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18746 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18747 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18748 echo $ECHO_N "(cached) $ECHO_C" >&6
18749 else
18750 cat >conftest.$ac_ext <<_ACEOF
18751 /* confdefs.h. */
18752 _ACEOF
18753 cat confdefs.h >>conftest.$ac_ext
18754 cat >>conftest.$ac_ext <<_ACEOF
18755 /* end confdefs.h. */
18756 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18757 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18758 #define $ac_func innocuous_$ac_func
18760 /* System header to define __stub macros and hopefully few prototypes,
18761 which can conflict with char $ac_func (); below.
18762 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18763 <limits.h> exists even on freestanding compilers. */
18765 #ifdef __STDC__
18766 # include <limits.h>
18767 #else
18768 # include <assert.h>
18769 #endif
18771 #undef $ac_func
18773 /* Override any GCC internal prototype to avoid an error.
18774 Use char because int might match the return type of a GCC
18775 builtin and then its argument prototype would still apply. */
18776 #ifdef __cplusplus
18777 extern "C"
18778 #endif
18779 char $ac_func ();
18780 /* The GNU C library defines this for functions which it implements
18781 to always fail with ENOSYS. Some functions are actually named
18782 something starting with __ and the normal name is an alias. */
18783 #if defined __stub_$ac_func || defined __stub___$ac_func
18784 choke me
18785 #endif
18788 main ()
18790 return $ac_func ();
18792 return 0;
18794 _ACEOF
18795 rm -f conftest.$ac_objext conftest$ac_exeext
18796 if { (ac_try="$ac_link"
18797 case "(($ac_try" in
18798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18799 *) ac_try_echo=$ac_try;;
18800 esac
18801 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18802 (eval "$ac_link") 2>conftest.er1
18803 ac_status=$?
18804 grep -v '^ *+' conftest.er1 >conftest.err
18805 rm -f conftest.er1
18806 cat conftest.err >&5
18807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18808 (exit $ac_status); } && {
18809 test -z "$ac_c_werror_flag" ||
18810 test ! -s conftest.err
18811 } && test -s conftest$ac_exeext &&
18812 $as_test_x conftest$ac_exeext; then
18813 eval "$as_ac_var=yes"
18814 else
18815 echo "$as_me: failed program was:" >&5
18816 sed 's/^/| /' conftest.$ac_ext >&5
18818 eval "$as_ac_var=no"
18821 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18822 conftest$ac_exeext conftest.$ac_ext
18824 ac_res=`eval echo '${'$as_ac_var'}'`
18825 { echo "$as_me:$LINENO: result: $ac_res" >&5
18826 echo "${ECHO_T}$ac_res" >&6; }
18827 if test `eval echo '${'$as_ac_var'}'` = yes; then
18828 cat >>confdefs.h <<_ACEOF
18829 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18830 _ACEOF
18831 cat >conftest.$ac_ext <<_ACEOF
18832 /* confdefs.h. */
18833 _ACEOF
18834 cat confdefs.h >>conftest.$ac_ext
18835 cat >>conftest.$ac_ext <<_ACEOF
18836 /* end confdefs.h. */
18837 #include <unistd.h>
18839 main ()
18841 getpgrp(0);
18843 return 0;
18845 _ACEOF
18846 rm -f conftest.$ac_objext
18847 if { (ac_try="$ac_compile"
18848 case "(($ac_try" in
18849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18850 *) ac_try_echo=$ac_try;;
18851 esac
18852 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18853 (eval "$ac_compile") 2>conftest.er1
18854 ac_status=$?
18855 grep -v '^ *+' conftest.er1 >conftest.err
18856 rm -f conftest.er1
18857 cat conftest.err >&5
18858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18859 (exit $ac_status); } && {
18860 test -z "$ac_c_werror_flag" ||
18861 test ! -s conftest.err
18862 } && test -s conftest.$ac_objext; then
18864 cat >>confdefs.h <<\_ACEOF
18865 #define GETPGRP_HAVE_ARG 1
18866 _ACEOF
18869 else
18870 echo "$as_me: failed program was:" >&5
18871 sed 's/^/| /' conftest.$ac_ext >&5
18876 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18879 done
18882 for ac_func in setpgrp
18884 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18885 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18886 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18887 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18888 echo $ECHO_N "(cached) $ECHO_C" >&6
18889 else
18890 cat >conftest.$ac_ext <<_ACEOF
18891 /* confdefs.h. */
18892 _ACEOF
18893 cat confdefs.h >>conftest.$ac_ext
18894 cat >>conftest.$ac_ext <<_ACEOF
18895 /* end confdefs.h. */
18896 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18897 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18898 #define $ac_func innocuous_$ac_func
18900 /* System header to define __stub macros and hopefully few prototypes,
18901 which can conflict with char $ac_func (); below.
18902 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18903 <limits.h> exists even on freestanding compilers. */
18905 #ifdef __STDC__
18906 # include <limits.h>
18907 #else
18908 # include <assert.h>
18909 #endif
18911 #undef $ac_func
18913 /* Override any GCC internal prototype to avoid an error.
18914 Use char because int might match the return type of a GCC
18915 builtin and then its argument prototype would still apply. */
18916 #ifdef __cplusplus
18917 extern "C"
18918 #endif
18919 char $ac_func ();
18920 /* The GNU C library defines this for functions which it implements
18921 to always fail with ENOSYS. Some functions are actually named
18922 something starting with __ and the normal name is an alias. */
18923 #if defined __stub_$ac_func || defined __stub___$ac_func
18924 choke me
18925 #endif
18928 main ()
18930 return $ac_func ();
18932 return 0;
18934 _ACEOF
18935 rm -f conftest.$ac_objext conftest$ac_exeext
18936 if { (ac_try="$ac_link"
18937 case "(($ac_try" in
18938 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18939 *) ac_try_echo=$ac_try;;
18940 esac
18941 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18942 (eval "$ac_link") 2>conftest.er1
18943 ac_status=$?
18944 grep -v '^ *+' conftest.er1 >conftest.err
18945 rm -f conftest.er1
18946 cat conftest.err >&5
18947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18948 (exit $ac_status); } && {
18949 test -z "$ac_c_werror_flag" ||
18950 test ! -s conftest.err
18951 } && test -s conftest$ac_exeext &&
18952 $as_test_x conftest$ac_exeext; then
18953 eval "$as_ac_var=yes"
18954 else
18955 echo "$as_me: failed program was:" >&5
18956 sed 's/^/| /' conftest.$ac_ext >&5
18958 eval "$as_ac_var=no"
18961 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18962 conftest$ac_exeext conftest.$ac_ext
18964 ac_res=`eval echo '${'$as_ac_var'}'`
18965 { echo "$as_me:$LINENO: result: $ac_res" >&5
18966 echo "${ECHO_T}$ac_res" >&6; }
18967 if test `eval echo '${'$as_ac_var'}'` = yes; then
18968 cat >>confdefs.h <<_ACEOF
18969 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18970 _ACEOF
18971 cat >conftest.$ac_ext <<_ACEOF
18972 /* confdefs.h. */
18973 _ACEOF
18974 cat confdefs.h >>conftest.$ac_ext
18975 cat >>conftest.$ac_ext <<_ACEOF
18976 /* end confdefs.h. */
18977 #include <unistd.h>
18979 main ()
18981 setpgrp(0,0);
18983 return 0;
18985 _ACEOF
18986 rm -f conftest.$ac_objext
18987 if { (ac_try="$ac_compile"
18988 case "(($ac_try" in
18989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18990 *) ac_try_echo=$ac_try;;
18991 esac
18992 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18993 (eval "$ac_compile") 2>conftest.er1
18994 ac_status=$?
18995 grep -v '^ *+' conftest.er1 >conftest.err
18996 rm -f conftest.er1
18997 cat conftest.err >&5
18998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18999 (exit $ac_status); } && {
19000 test -z "$ac_c_werror_flag" ||
19001 test ! -s conftest.err
19002 } && test -s conftest.$ac_objext; then
19004 cat >>confdefs.h <<\_ACEOF
19005 #define SETPGRP_HAVE_ARG 1
19006 _ACEOF
19009 else
19010 echo "$as_me: failed program was:" >&5
19011 sed 's/^/| /' conftest.$ac_ext >&5
19016 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19019 done
19022 for ac_func in gettimeofday
19024 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19025 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19026 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19027 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19028 echo $ECHO_N "(cached) $ECHO_C" >&6
19029 else
19030 cat >conftest.$ac_ext <<_ACEOF
19031 /* confdefs.h. */
19032 _ACEOF
19033 cat confdefs.h >>conftest.$ac_ext
19034 cat >>conftest.$ac_ext <<_ACEOF
19035 /* end confdefs.h. */
19036 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19037 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19038 #define $ac_func innocuous_$ac_func
19040 /* System header to define __stub macros and hopefully few prototypes,
19041 which can conflict with char $ac_func (); below.
19042 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19043 <limits.h> exists even on freestanding compilers. */
19045 #ifdef __STDC__
19046 # include <limits.h>
19047 #else
19048 # include <assert.h>
19049 #endif
19051 #undef $ac_func
19053 /* Override any GCC internal prototype to avoid an error.
19054 Use char because int might match the return type of a GCC
19055 builtin and then its argument prototype would still apply. */
19056 #ifdef __cplusplus
19057 extern "C"
19058 #endif
19059 char $ac_func ();
19060 /* The GNU C library defines this for functions which it implements
19061 to always fail with ENOSYS. Some functions are actually named
19062 something starting with __ and the normal name is an alias. */
19063 #if defined __stub_$ac_func || defined __stub___$ac_func
19064 choke me
19065 #endif
19068 main ()
19070 return $ac_func ();
19072 return 0;
19074 _ACEOF
19075 rm -f conftest.$ac_objext conftest$ac_exeext
19076 if { (ac_try="$ac_link"
19077 case "(($ac_try" in
19078 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19079 *) ac_try_echo=$ac_try;;
19080 esac
19081 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19082 (eval "$ac_link") 2>conftest.er1
19083 ac_status=$?
19084 grep -v '^ *+' conftest.er1 >conftest.err
19085 rm -f conftest.er1
19086 cat conftest.err >&5
19087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19088 (exit $ac_status); } && {
19089 test -z "$ac_c_werror_flag" ||
19090 test ! -s conftest.err
19091 } && test -s conftest$ac_exeext &&
19092 $as_test_x conftest$ac_exeext; then
19093 eval "$as_ac_var=yes"
19094 else
19095 echo "$as_me: failed program was:" >&5
19096 sed 's/^/| /' conftest.$ac_ext >&5
19098 eval "$as_ac_var=no"
19101 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19102 conftest$ac_exeext conftest.$ac_ext
19104 ac_res=`eval echo '${'$as_ac_var'}'`
19105 { echo "$as_me:$LINENO: result: $ac_res" >&5
19106 echo "${ECHO_T}$ac_res" >&6; }
19107 if test `eval echo '${'$as_ac_var'}'` = yes; then
19108 cat >>confdefs.h <<_ACEOF
19109 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19110 _ACEOF
19111 cat >conftest.$ac_ext <<_ACEOF
19112 /* confdefs.h. */
19113 _ACEOF
19114 cat confdefs.h >>conftest.$ac_ext
19115 cat >>conftest.$ac_ext <<_ACEOF
19116 /* end confdefs.h. */
19117 #include <sys/time.h>
19119 main ()
19121 gettimeofday((struct timeval*)0,(struct timezone*)0);
19123 return 0;
19125 _ACEOF
19126 rm -f conftest.$ac_objext
19127 if { (ac_try="$ac_compile"
19128 case "(($ac_try" in
19129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19130 *) ac_try_echo=$ac_try;;
19131 esac
19132 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19133 (eval "$ac_compile") 2>conftest.er1
19134 ac_status=$?
19135 grep -v '^ *+' conftest.er1 >conftest.err
19136 rm -f conftest.er1
19137 cat conftest.err >&5
19138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19139 (exit $ac_status); } && {
19140 test -z "$ac_c_werror_flag" ||
19141 test ! -s conftest.err
19142 } && test -s conftest.$ac_objext; then
19144 else
19145 echo "$as_me: failed program was:" >&5
19146 sed 's/^/| /' conftest.$ac_ext >&5
19149 cat >>confdefs.h <<\_ACEOF
19150 #define GETTIMEOFDAY_NO_TZ 1
19151 _ACEOF
19156 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19159 done
19162 { echo "$as_me:$LINENO: checking for major" >&5
19163 echo $ECHO_N "checking for major... $ECHO_C" >&6; }
19164 cat >conftest.$ac_ext <<_ACEOF
19165 /* confdefs.h. */
19166 _ACEOF
19167 cat confdefs.h >>conftest.$ac_ext
19168 cat >>conftest.$ac_ext <<_ACEOF
19169 /* end confdefs.h. */
19171 #if defined(MAJOR_IN_MKDEV)
19172 #include <sys/mkdev.h>
19173 #elif defined(MAJOR_IN_SYSMACROS)
19174 #include <sys/sysmacros.h>
19175 #else
19176 #include <sys/types.h>
19177 #endif
19180 main ()
19183 makedev(major(0),minor(0));
19186 return 0;
19188 _ACEOF
19189 rm -f conftest.$ac_objext conftest$ac_exeext
19190 if { (ac_try="$ac_link"
19191 case "(($ac_try" in
19192 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19193 *) ac_try_echo=$ac_try;;
19194 esac
19195 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19196 (eval "$ac_link") 2>conftest.er1
19197 ac_status=$?
19198 grep -v '^ *+' conftest.er1 >conftest.err
19199 rm -f conftest.er1
19200 cat conftest.err >&5
19201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19202 (exit $ac_status); } && {
19203 test -z "$ac_c_werror_flag" ||
19204 test ! -s conftest.err
19205 } && test -s conftest$ac_exeext &&
19206 $as_test_x conftest$ac_exeext; then
19209 cat >>confdefs.h <<\_ACEOF
19210 #define HAVE_DEVICE_MACROS 1
19211 _ACEOF
19213 { echo "$as_me:$LINENO: result: yes" >&5
19214 echo "${ECHO_T}yes" >&6; }
19216 else
19217 echo "$as_me: failed program was:" >&5
19218 sed 's/^/| /' conftest.$ac_ext >&5
19221 { echo "$as_me:$LINENO: result: no" >&5
19222 echo "${ECHO_T}no" >&6; }
19226 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19227 conftest$ac_exeext conftest.$ac_ext
19229 # On OSF/1 V5.1, getaddrinfo is available, but a define
19230 # for [no]getaddrinfo in netdb.h.
19231 { echo "$as_me:$LINENO: checking for getaddrinfo" >&5
19232 echo $ECHO_N "checking for getaddrinfo... $ECHO_C" >&6; }
19233 cat >conftest.$ac_ext <<_ACEOF
19234 /* confdefs.h. */
19235 _ACEOF
19236 cat confdefs.h >>conftest.$ac_ext
19237 cat >>conftest.$ac_ext <<_ACEOF
19238 /* end confdefs.h. */
19240 #include <sys/types.h>
19241 #include <sys/socket.h>
19242 #include <netdb.h>
19243 #include <stdio.h>
19246 main ()
19249 getaddrinfo(NULL, NULL, NULL, NULL);
19252 return 0;
19254 _ACEOF
19255 rm -f conftest.$ac_objext conftest$ac_exeext
19256 if { (ac_try="$ac_link"
19257 case "(($ac_try" in
19258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19259 *) ac_try_echo=$ac_try;;
19260 esac
19261 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19262 (eval "$ac_link") 2>conftest.er1
19263 ac_status=$?
19264 grep -v '^ *+' conftest.er1 >conftest.err
19265 rm -f conftest.er1
19266 cat conftest.err >&5
19267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19268 (exit $ac_status); } && {
19269 test -z "$ac_c_werror_flag" ||
19270 test ! -s conftest.err
19271 } && test -s conftest$ac_exeext &&
19272 $as_test_x conftest$ac_exeext; then
19274 { echo "$as_me:$LINENO: result: yes" >&5
19275 echo "${ECHO_T}yes" >&6; }
19276 { echo "$as_me:$LINENO: checking getaddrinfo bug" >&5
19277 echo $ECHO_N "checking getaddrinfo bug... $ECHO_C" >&6; }
19278 if test "$cross_compiling" = yes; then
19279 { echo "$as_me:$LINENO: result: buggy" >&5
19280 echo "${ECHO_T}buggy" >&6; }
19281 buggygetaddrinfo=yes
19282 else
19283 cat >conftest.$ac_ext <<_ACEOF
19284 /* confdefs.h. */
19285 _ACEOF
19286 cat confdefs.h >>conftest.$ac_ext
19287 cat >>conftest.$ac_ext <<_ACEOF
19288 /* end confdefs.h. */
19290 #include <sys/types.h>
19291 #include <netdb.h>
19292 #include <string.h>
19293 #include <sys/socket.h>
19294 #include <netinet/in.h>
19296 main()
19298 int passive, gaierr, inet4 = 0, inet6 = 0;
19299 struct addrinfo hints, *ai, *aitop;
19300 char straddr[INET6_ADDRSTRLEN], strport[16];
19302 for (passive = 0; passive <= 1; passive++) {
19303 memset(&hints, 0, sizeof(hints));
19304 hints.ai_family = AF_UNSPEC;
19305 hints.ai_flags = passive ? AI_PASSIVE : 0;
19306 hints.ai_socktype = SOCK_STREAM;
19307 hints.ai_protocol = IPPROTO_TCP;
19308 if ((gaierr = getaddrinfo(NULL, "54321", &hints, &aitop)) != 0) {
19309 (void)gai_strerror(gaierr);
19310 goto bad;
19312 for (ai = aitop; ai; ai = ai->ai_next) {
19313 if (ai->ai_addr == NULL ||
19314 ai->ai_addrlen == 0 ||
19315 getnameinfo(ai->ai_addr, ai->ai_addrlen,
19316 straddr, sizeof(straddr), strport, sizeof(strport),
19317 NI_NUMERICHOST|NI_NUMERICSERV) != 0) {
19318 goto bad;
19320 switch (ai->ai_family) {
19321 case AF_INET:
19322 if (strcmp(strport, "54321") != 0) {
19323 goto bad;
19325 if (passive) {
19326 if (strcmp(straddr, "0.0.0.0") != 0) {
19327 goto bad;
19329 } else {
19330 if (strcmp(straddr, "127.0.0.1") != 0) {
19331 goto bad;
19334 inet4++;
19335 break;
19336 case AF_INET6:
19337 if (strcmp(strport, "54321") != 0) {
19338 goto bad;
19340 if (passive) {
19341 if (strcmp(straddr, "::") != 0) {
19342 goto bad;
19344 } else {
19345 if (strcmp(straddr, "::1") != 0) {
19346 goto bad;
19349 inet6++;
19350 break;
19351 case AF_UNSPEC:
19352 goto bad;
19353 break;
19354 default:
19355 /* another family support? */
19356 break;
19361 if (!(inet4 == 0 || inet4 == 2))
19362 goto bad;
19363 if (!(inet6 == 0 || inet6 == 2))
19364 goto bad;
19366 if (aitop)
19367 freeaddrinfo(aitop);
19368 exit(0);
19370 bad:
19371 if (aitop)
19372 freeaddrinfo(aitop);
19373 exit(1);
19376 _ACEOF
19377 rm -f conftest$ac_exeext
19378 if { (ac_try="$ac_link"
19379 case "(($ac_try" in
19380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19381 *) ac_try_echo=$ac_try;;
19382 esac
19383 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19384 (eval "$ac_link") 2>&5
19385 ac_status=$?
19386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19387 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19388 { (case "(($ac_try" in
19389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19390 *) ac_try_echo=$ac_try;;
19391 esac
19392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19393 (eval "$ac_try") 2>&5
19394 ac_status=$?
19395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19396 (exit $ac_status); }; }; then
19397 { echo "$as_me:$LINENO: result: good" >&5
19398 echo "${ECHO_T}good" >&6; }
19399 buggygetaddrinfo=no
19400 else
19401 echo "$as_me: program exited with status $ac_status" >&5
19402 echo "$as_me: failed program was:" >&5
19403 sed 's/^/| /' conftest.$ac_ext >&5
19405 ( exit $ac_status )
19406 { echo "$as_me:$LINENO: result: buggy" >&5
19407 echo "${ECHO_T}buggy" >&6; }
19408 buggygetaddrinfo=yes
19410 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19414 else
19415 echo "$as_me: failed program was:" >&5
19416 sed 's/^/| /' conftest.$ac_ext >&5
19419 { echo "$as_me:$LINENO: result: no" >&5
19420 echo "${ECHO_T}no" >&6; }
19421 buggygetaddrinfo=yes
19425 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19426 conftest$ac_exeext conftest.$ac_ext
19428 if test "$buggygetaddrinfo" = "yes"; then
19429 if test "$ipv6" = "yes"; then
19430 echo 'Fatal: You must get working getaddrinfo() function.'
19431 echo ' or you can specify "--disable-ipv6"'.
19432 exit 1
19434 else
19436 cat >>confdefs.h <<\_ACEOF
19437 #define HAVE_GETADDRINFO 1
19438 _ACEOF
19442 for ac_func in getnameinfo
19444 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19445 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19446 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19447 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19448 echo $ECHO_N "(cached) $ECHO_C" >&6
19449 else
19450 cat >conftest.$ac_ext <<_ACEOF
19451 /* confdefs.h. */
19452 _ACEOF
19453 cat confdefs.h >>conftest.$ac_ext
19454 cat >>conftest.$ac_ext <<_ACEOF
19455 /* end confdefs.h. */
19456 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19457 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19458 #define $ac_func innocuous_$ac_func
19460 /* System header to define __stub macros and hopefully few prototypes,
19461 which can conflict with char $ac_func (); below.
19462 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19463 <limits.h> exists even on freestanding compilers. */
19465 #ifdef __STDC__
19466 # include <limits.h>
19467 #else
19468 # include <assert.h>
19469 #endif
19471 #undef $ac_func
19473 /* Override any GCC internal prototype to avoid an error.
19474 Use char because int might match the return type of a GCC
19475 builtin and then its argument prototype would still apply. */
19476 #ifdef __cplusplus
19477 extern "C"
19478 #endif
19479 char $ac_func ();
19480 /* The GNU C library defines this for functions which it implements
19481 to always fail with ENOSYS. Some functions are actually named
19482 something starting with __ and the normal name is an alias. */
19483 #if defined __stub_$ac_func || defined __stub___$ac_func
19484 choke me
19485 #endif
19488 main ()
19490 return $ac_func ();
19492 return 0;
19494 _ACEOF
19495 rm -f conftest.$ac_objext conftest$ac_exeext
19496 if { (ac_try="$ac_link"
19497 case "(($ac_try" in
19498 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19499 *) ac_try_echo=$ac_try;;
19500 esac
19501 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19502 (eval "$ac_link") 2>conftest.er1
19503 ac_status=$?
19504 grep -v '^ *+' conftest.er1 >conftest.err
19505 rm -f conftest.er1
19506 cat conftest.err >&5
19507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19508 (exit $ac_status); } && {
19509 test -z "$ac_c_werror_flag" ||
19510 test ! -s conftest.err
19511 } && test -s conftest$ac_exeext &&
19512 $as_test_x conftest$ac_exeext; then
19513 eval "$as_ac_var=yes"
19514 else
19515 echo "$as_me: failed program was:" >&5
19516 sed 's/^/| /' conftest.$ac_ext >&5
19518 eval "$as_ac_var=no"
19521 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19522 conftest$ac_exeext conftest.$ac_ext
19524 ac_res=`eval echo '${'$as_ac_var'}'`
19525 { echo "$as_me:$LINENO: result: $ac_res" >&5
19526 echo "${ECHO_T}$ac_res" >&6; }
19527 if test `eval echo '${'$as_ac_var'}'` = yes; then
19528 cat >>confdefs.h <<_ACEOF
19529 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19530 _ACEOF
19533 done
19536 # checks for structures
19537 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
19538 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
19539 if test "${ac_cv_header_time+set}" = set; then
19540 echo $ECHO_N "(cached) $ECHO_C" >&6
19541 else
19542 cat >conftest.$ac_ext <<_ACEOF
19543 /* confdefs.h. */
19544 _ACEOF
19545 cat confdefs.h >>conftest.$ac_ext
19546 cat >>conftest.$ac_ext <<_ACEOF
19547 /* end confdefs.h. */
19548 #include <sys/types.h>
19549 #include <sys/time.h>
19550 #include <time.h>
19553 main ()
19555 if ((struct tm *) 0)
19556 return 0;
19558 return 0;
19560 _ACEOF
19561 rm -f conftest.$ac_objext
19562 if { (ac_try="$ac_compile"
19563 case "(($ac_try" in
19564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19565 *) ac_try_echo=$ac_try;;
19566 esac
19567 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19568 (eval "$ac_compile") 2>conftest.er1
19569 ac_status=$?
19570 grep -v '^ *+' conftest.er1 >conftest.err
19571 rm -f conftest.er1
19572 cat conftest.err >&5
19573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19574 (exit $ac_status); } && {
19575 test -z "$ac_c_werror_flag" ||
19576 test ! -s conftest.err
19577 } && test -s conftest.$ac_objext; then
19578 ac_cv_header_time=yes
19579 else
19580 echo "$as_me: failed program was:" >&5
19581 sed 's/^/| /' conftest.$ac_ext >&5
19583 ac_cv_header_time=no
19586 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19588 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
19589 echo "${ECHO_T}$ac_cv_header_time" >&6; }
19590 if test $ac_cv_header_time = yes; then
19592 cat >>confdefs.h <<\_ACEOF
19593 #define TIME_WITH_SYS_TIME 1
19594 _ACEOF
19598 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
19599 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
19600 if test "${ac_cv_struct_tm+set}" = set; then
19601 echo $ECHO_N "(cached) $ECHO_C" >&6
19602 else
19603 cat >conftest.$ac_ext <<_ACEOF
19604 /* confdefs.h. */
19605 _ACEOF
19606 cat confdefs.h >>conftest.$ac_ext
19607 cat >>conftest.$ac_ext <<_ACEOF
19608 /* end confdefs.h. */
19609 #include <sys/types.h>
19610 #include <time.h>
19613 main ()
19615 struct tm tm;
19616 int *p = &tm.tm_sec;
19617 return !p;
19619 return 0;
19621 _ACEOF
19622 rm -f conftest.$ac_objext
19623 if { (ac_try="$ac_compile"
19624 case "(($ac_try" in
19625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19626 *) ac_try_echo=$ac_try;;
19627 esac
19628 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19629 (eval "$ac_compile") 2>conftest.er1
19630 ac_status=$?
19631 grep -v '^ *+' conftest.er1 >conftest.err
19632 rm -f conftest.er1
19633 cat conftest.err >&5
19634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19635 (exit $ac_status); } && {
19636 test -z "$ac_c_werror_flag" ||
19637 test ! -s conftest.err
19638 } && test -s conftest.$ac_objext; then
19639 ac_cv_struct_tm=time.h
19640 else
19641 echo "$as_me: failed program was:" >&5
19642 sed 's/^/| /' conftest.$ac_ext >&5
19644 ac_cv_struct_tm=sys/time.h
19647 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19649 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
19650 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
19651 if test $ac_cv_struct_tm = sys/time.h; then
19653 cat >>confdefs.h <<\_ACEOF
19654 #define TM_IN_SYS_TIME 1
19655 _ACEOF
19659 { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
19660 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
19661 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
19662 echo $ECHO_N "(cached) $ECHO_C" >&6
19663 else
19664 cat >conftest.$ac_ext <<_ACEOF
19665 /* confdefs.h. */
19666 _ACEOF
19667 cat confdefs.h >>conftest.$ac_ext
19668 cat >>conftest.$ac_ext <<_ACEOF
19669 /* end confdefs.h. */
19670 #include <sys/types.h>
19671 #include <$ac_cv_struct_tm>
19675 main ()
19677 static struct tm ac_aggr;
19678 if (ac_aggr.tm_zone)
19679 return 0;
19681 return 0;
19683 _ACEOF
19684 rm -f conftest.$ac_objext
19685 if { (ac_try="$ac_compile"
19686 case "(($ac_try" in
19687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19688 *) ac_try_echo=$ac_try;;
19689 esac
19690 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19691 (eval "$ac_compile") 2>conftest.er1
19692 ac_status=$?
19693 grep -v '^ *+' conftest.er1 >conftest.err
19694 rm -f conftest.er1
19695 cat conftest.err >&5
19696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19697 (exit $ac_status); } && {
19698 test -z "$ac_c_werror_flag" ||
19699 test ! -s conftest.err
19700 } && test -s conftest.$ac_objext; then
19701 ac_cv_member_struct_tm_tm_zone=yes
19702 else
19703 echo "$as_me: failed program was:" >&5
19704 sed 's/^/| /' conftest.$ac_ext >&5
19706 cat >conftest.$ac_ext <<_ACEOF
19707 /* confdefs.h. */
19708 _ACEOF
19709 cat confdefs.h >>conftest.$ac_ext
19710 cat >>conftest.$ac_ext <<_ACEOF
19711 /* end confdefs.h. */
19712 #include <sys/types.h>
19713 #include <$ac_cv_struct_tm>
19717 main ()
19719 static struct tm ac_aggr;
19720 if (sizeof ac_aggr.tm_zone)
19721 return 0;
19723 return 0;
19725 _ACEOF
19726 rm -f conftest.$ac_objext
19727 if { (ac_try="$ac_compile"
19728 case "(($ac_try" in
19729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19730 *) ac_try_echo=$ac_try;;
19731 esac
19732 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19733 (eval "$ac_compile") 2>conftest.er1
19734 ac_status=$?
19735 grep -v '^ *+' conftest.er1 >conftest.err
19736 rm -f conftest.er1
19737 cat conftest.err >&5
19738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19739 (exit $ac_status); } && {
19740 test -z "$ac_c_werror_flag" ||
19741 test ! -s conftest.err
19742 } && test -s conftest.$ac_objext; then
19743 ac_cv_member_struct_tm_tm_zone=yes
19744 else
19745 echo "$as_me: failed program was:" >&5
19746 sed 's/^/| /' conftest.$ac_ext >&5
19748 ac_cv_member_struct_tm_tm_zone=no
19751 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19754 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19756 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
19757 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
19758 if test $ac_cv_member_struct_tm_tm_zone = yes; then
19760 cat >>confdefs.h <<_ACEOF
19761 #define HAVE_STRUCT_TM_TM_ZONE 1
19762 _ACEOF
19767 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
19769 cat >>confdefs.h <<\_ACEOF
19770 #define HAVE_TM_ZONE 1
19771 _ACEOF
19773 else
19774 { echo "$as_me:$LINENO: checking whether tzname is declared" >&5
19775 echo $ECHO_N "checking whether tzname is declared... $ECHO_C" >&6; }
19776 if test "${ac_cv_have_decl_tzname+set}" = set; then
19777 echo $ECHO_N "(cached) $ECHO_C" >&6
19778 else
19779 cat >conftest.$ac_ext <<_ACEOF
19780 /* confdefs.h. */
19781 _ACEOF
19782 cat confdefs.h >>conftest.$ac_ext
19783 cat >>conftest.$ac_ext <<_ACEOF
19784 /* end confdefs.h. */
19785 #include <time.h>
19788 main ()
19790 #ifndef tzname
19791 (void) tzname;
19792 #endif
19795 return 0;
19797 _ACEOF
19798 rm -f conftest.$ac_objext
19799 if { (ac_try="$ac_compile"
19800 case "(($ac_try" in
19801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19802 *) ac_try_echo=$ac_try;;
19803 esac
19804 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19805 (eval "$ac_compile") 2>conftest.er1
19806 ac_status=$?
19807 grep -v '^ *+' conftest.er1 >conftest.err
19808 rm -f conftest.er1
19809 cat conftest.err >&5
19810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19811 (exit $ac_status); } && {
19812 test -z "$ac_c_werror_flag" ||
19813 test ! -s conftest.err
19814 } && test -s conftest.$ac_objext; then
19815 ac_cv_have_decl_tzname=yes
19816 else
19817 echo "$as_me: failed program was:" >&5
19818 sed 's/^/| /' conftest.$ac_ext >&5
19820 ac_cv_have_decl_tzname=no
19823 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19825 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
19826 echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; }
19827 if test $ac_cv_have_decl_tzname = yes; then
19829 cat >>confdefs.h <<_ACEOF
19830 #define HAVE_DECL_TZNAME 1
19831 _ACEOF
19834 else
19835 cat >>confdefs.h <<_ACEOF
19836 #define HAVE_DECL_TZNAME 0
19837 _ACEOF
19843 { echo "$as_me:$LINENO: checking for tzname" >&5
19844 echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
19845 if test "${ac_cv_var_tzname+set}" = set; then
19846 echo $ECHO_N "(cached) $ECHO_C" >&6
19847 else
19848 cat >conftest.$ac_ext <<_ACEOF
19849 /* confdefs.h. */
19850 _ACEOF
19851 cat confdefs.h >>conftest.$ac_ext
19852 cat >>conftest.$ac_ext <<_ACEOF
19853 /* end confdefs.h. */
19854 #include <time.h>
19855 #if !HAVE_DECL_TZNAME
19856 extern char *tzname[];
19857 #endif
19860 main ()
19862 return tzname[0][0];
19864 return 0;
19866 _ACEOF
19867 rm -f conftest.$ac_objext conftest$ac_exeext
19868 if { (ac_try="$ac_link"
19869 case "(($ac_try" in
19870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19871 *) ac_try_echo=$ac_try;;
19872 esac
19873 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19874 (eval "$ac_link") 2>conftest.er1
19875 ac_status=$?
19876 grep -v '^ *+' conftest.er1 >conftest.err
19877 rm -f conftest.er1
19878 cat conftest.err >&5
19879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19880 (exit $ac_status); } && {
19881 test -z "$ac_c_werror_flag" ||
19882 test ! -s conftest.err
19883 } && test -s conftest$ac_exeext &&
19884 $as_test_x conftest$ac_exeext; then
19885 ac_cv_var_tzname=yes
19886 else
19887 echo "$as_me: failed program was:" >&5
19888 sed 's/^/| /' conftest.$ac_ext >&5
19890 ac_cv_var_tzname=no
19893 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19894 conftest$ac_exeext conftest.$ac_ext
19896 { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
19897 echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
19898 if test $ac_cv_var_tzname = yes; then
19900 cat >>confdefs.h <<\_ACEOF
19901 #define HAVE_TZNAME 1
19902 _ACEOF
19907 { echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
19908 echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6; }
19909 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
19910 echo $ECHO_N "(cached) $ECHO_C" >&6
19911 else
19912 cat >conftest.$ac_ext <<_ACEOF
19913 /* confdefs.h. */
19914 _ACEOF
19915 cat confdefs.h >>conftest.$ac_ext
19916 cat >>conftest.$ac_ext <<_ACEOF
19917 /* end confdefs.h. */
19918 $ac_includes_default
19920 main ()
19922 static struct stat ac_aggr;
19923 if (ac_aggr.st_rdev)
19924 return 0;
19926 return 0;
19928 _ACEOF
19929 rm -f conftest.$ac_objext
19930 if { (ac_try="$ac_compile"
19931 case "(($ac_try" in
19932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19933 *) ac_try_echo=$ac_try;;
19934 esac
19935 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19936 (eval "$ac_compile") 2>conftest.er1
19937 ac_status=$?
19938 grep -v '^ *+' conftest.er1 >conftest.err
19939 rm -f conftest.er1
19940 cat conftest.err >&5
19941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19942 (exit $ac_status); } && {
19943 test -z "$ac_c_werror_flag" ||
19944 test ! -s conftest.err
19945 } && test -s conftest.$ac_objext; then
19946 ac_cv_member_struct_stat_st_rdev=yes
19947 else
19948 echo "$as_me: failed program was:" >&5
19949 sed 's/^/| /' conftest.$ac_ext >&5
19951 cat >conftest.$ac_ext <<_ACEOF
19952 /* confdefs.h. */
19953 _ACEOF
19954 cat confdefs.h >>conftest.$ac_ext
19955 cat >>conftest.$ac_ext <<_ACEOF
19956 /* end confdefs.h. */
19957 $ac_includes_default
19959 main ()
19961 static struct stat ac_aggr;
19962 if (sizeof ac_aggr.st_rdev)
19963 return 0;
19965 return 0;
19967 _ACEOF
19968 rm -f conftest.$ac_objext
19969 if { (ac_try="$ac_compile"
19970 case "(($ac_try" in
19971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19972 *) ac_try_echo=$ac_try;;
19973 esac
19974 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19975 (eval "$ac_compile") 2>conftest.er1
19976 ac_status=$?
19977 grep -v '^ *+' conftest.er1 >conftest.err
19978 rm -f conftest.er1
19979 cat conftest.err >&5
19980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19981 (exit $ac_status); } && {
19982 test -z "$ac_c_werror_flag" ||
19983 test ! -s conftest.err
19984 } && test -s conftest.$ac_objext; then
19985 ac_cv_member_struct_stat_st_rdev=yes
19986 else
19987 echo "$as_me: failed program was:" >&5
19988 sed 's/^/| /' conftest.$ac_ext >&5
19990 ac_cv_member_struct_stat_st_rdev=no
19993 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19996 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19998 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
19999 echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6; }
20000 if test $ac_cv_member_struct_stat_st_rdev = yes; then
20002 cat >>confdefs.h <<_ACEOF
20003 #define HAVE_STRUCT_STAT_ST_RDEV 1
20004 _ACEOF
20009 { echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
20010 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6; }
20011 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
20012 echo $ECHO_N "(cached) $ECHO_C" >&6
20013 else
20014 cat >conftest.$ac_ext <<_ACEOF
20015 /* confdefs.h. */
20016 _ACEOF
20017 cat confdefs.h >>conftest.$ac_ext
20018 cat >>conftest.$ac_ext <<_ACEOF
20019 /* end confdefs.h. */
20020 $ac_includes_default
20022 main ()
20024 static struct stat ac_aggr;
20025 if (ac_aggr.st_blksize)
20026 return 0;
20028 return 0;
20030 _ACEOF
20031 rm -f conftest.$ac_objext
20032 if { (ac_try="$ac_compile"
20033 case "(($ac_try" in
20034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20035 *) ac_try_echo=$ac_try;;
20036 esac
20037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20038 (eval "$ac_compile") 2>conftest.er1
20039 ac_status=$?
20040 grep -v '^ *+' conftest.er1 >conftest.err
20041 rm -f conftest.er1
20042 cat conftest.err >&5
20043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20044 (exit $ac_status); } && {
20045 test -z "$ac_c_werror_flag" ||
20046 test ! -s conftest.err
20047 } && test -s conftest.$ac_objext; then
20048 ac_cv_member_struct_stat_st_blksize=yes
20049 else
20050 echo "$as_me: failed program was:" >&5
20051 sed 's/^/| /' conftest.$ac_ext >&5
20053 cat >conftest.$ac_ext <<_ACEOF
20054 /* confdefs.h. */
20055 _ACEOF
20056 cat confdefs.h >>conftest.$ac_ext
20057 cat >>conftest.$ac_ext <<_ACEOF
20058 /* end confdefs.h. */
20059 $ac_includes_default
20061 main ()
20063 static struct stat ac_aggr;
20064 if (sizeof ac_aggr.st_blksize)
20065 return 0;
20067 return 0;
20069 _ACEOF
20070 rm -f conftest.$ac_objext
20071 if { (ac_try="$ac_compile"
20072 case "(($ac_try" in
20073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20074 *) ac_try_echo=$ac_try;;
20075 esac
20076 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20077 (eval "$ac_compile") 2>conftest.er1
20078 ac_status=$?
20079 grep -v '^ *+' conftest.er1 >conftest.err
20080 rm -f conftest.er1
20081 cat conftest.err >&5
20082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20083 (exit $ac_status); } && {
20084 test -z "$ac_c_werror_flag" ||
20085 test ! -s conftest.err
20086 } && test -s conftest.$ac_objext; then
20087 ac_cv_member_struct_stat_st_blksize=yes
20088 else
20089 echo "$as_me: failed program was:" >&5
20090 sed 's/^/| /' conftest.$ac_ext >&5
20092 ac_cv_member_struct_stat_st_blksize=no
20095 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20098 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20100 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
20101 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6; }
20102 if test $ac_cv_member_struct_stat_st_blksize = yes; then
20104 cat >>confdefs.h <<_ACEOF
20105 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
20106 _ACEOF
20111 { echo "$as_me:$LINENO: checking for struct stat.st_flags" >&5
20112 echo $ECHO_N "checking for struct stat.st_flags... $ECHO_C" >&6; }
20113 if test "${ac_cv_member_struct_stat_st_flags+set}" = set; then
20114 echo $ECHO_N "(cached) $ECHO_C" >&6
20115 else
20116 cat >conftest.$ac_ext <<_ACEOF
20117 /* confdefs.h. */
20118 _ACEOF
20119 cat confdefs.h >>conftest.$ac_ext
20120 cat >>conftest.$ac_ext <<_ACEOF
20121 /* end confdefs.h. */
20122 $ac_includes_default
20124 main ()
20126 static struct stat ac_aggr;
20127 if (ac_aggr.st_flags)
20128 return 0;
20130 return 0;
20132 _ACEOF
20133 rm -f conftest.$ac_objext
20134 if { (ac_try="$ac_compile"
20135 case "(($ac_try" in
20136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20137 *) ac_try_echo=$ac_try;;
20138 esac
20139 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20140 (eval "$ac_compile") 2>conftest.er1
20141 ac_status=$?
20142 grep -v '^ *+' conftest.er1 >conftest.err
20143 rm -f conftest.er1
20144 cat conftest.err >&5
20145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20146 (exit $ac_status); } && {
20147 test -z "$ac_c_werror_flag" ||
20148 test ! -s conftest.err
20149 } && test -s conftest.$ac_objext; then
20150 ac_cv_member_struct_stat_st_flags=yes
20151 else
20152 echo "$as_me: failed program was:" >&5
20153 sed 's/^/| /' conftest.$ac_ext >&5
20155 cat >conftest.$ac_ext <<_ACEOF
20156 /* confdefs.h. */
20157 _ACEOF
20158 cat confdefs.h >>conftest.$ac_ext
20159 cat >>conftest.$ac_ext <<_ACEOF
20160 /* end confdefs.h. */
20161 $ac_includes_default
20163 main ()
20165 static struct stat ac_aggr;
20166 if (sizeof ac_aggr.st_flags)
20167 return 0;
20169 return 0;
20171 _ACEOF
20172 rm -f conftest.$ac_objext
20173 if { (ac_try="$ac_compile"
20174 case "(($ac_try" in
20175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20176 *) ac_try_echo=$ac_try;;
20177 esac
20178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20179 (eval "$ac_compile") 2>conftest.er1
20180 ac_status=$?
20181 grep -v '^ *+' conftest.er1 >conftest.err
20182 rm -f conftest.er1
20183 cat conftest.err >&5
20184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20185 (exit $ac_status); } && {
20186 test -z "$ac_c_werror_flag" ||
20187 test ! -s conftest.err
20188 } && test -s conftest.$ac_objext; then
20189 ac_cv_member_struct_stat_st_flags=yes
20190 else
20191 echo "$as_me: failed program was:" >&5
20192 sed 's/^/| /' conftest.$ac_ext >&5
20194 ac_cv_member_struct_stat_st_flags=no
20197 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20200 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20202 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_flags" >&5
20203 echo "${ECHO_T}$ac_cv_member_struct_stat_st_flags" >&6; }
20204 if test $ac_cv_member_struct_stat_st_flags = yes; then
20206 cat >>confdefs.h <<_ACEOF
20207 #define HAVE_STRUCT_STAT_ST_FLAGS 1
20208 _ACEOF
20213 { echo "$as_me:$LINENO: checking for struct stat.st_gen" >&5
20214 echo $ECHO_N "checking for struct stat.st_gen... $ECHO_C" >&6; }
20215 if test "${ac_cv_member_struct_stat_st_gen+set}" = set; then
20216 echo $ECHO_N "(cached) $ECHO_C" >&6
20217 else
20218 cat >conftest.$ac_ext <<_ACEOF
20219 /* confdefs.h. */
20220 _ACEOF
20221 cat confdefs.h >>conftest.$ac_ext
20222 cat >>conftest.$ac_ext <<_ACEOF
20223 /* end confdefs.h. */
20224 $ac_includes_default
20226 main ()
20228 static struct stat ac_aggr;
20229 if (ac_aggr.st_gen)
20230 return 0;
20232 return 0;
20234 _ACEOF
20235 rm -f conftest.$ac_objext
20236 if { (ac_try="$ac_compile"
20237 case "(($ac_try" in
20238 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20239 *) ac_try_echo=$ac_try;;
20240 esac
20241 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20242 (eval "$ac_compile") 2>conftest.er1
20243 ac_status=$?
20244 grep -v '^ *+' conftest.er1 >conftest.err
20245 rm -f conftest.er1
20246 cat conftest.err >&5
20247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20248 (exit $ac_status); } && {
20249 test -z "$ac_c_werror_flag" ||
20250 test ! -s conftest.err
20251 } && test -s conftest.$ac_objext; then
20252 ac_cv_member_struct_stat_st_gen=yes
20253 else
20254 echo "$as_me: failed program was:" >&5
20255 sed 's/^/| /' conftest.$ac_ext >&5
20257 cat >conftest.$ac_ext <<_ACEOF
20258 /* confdefs.h. */
20259 _ACEOF
20260 cat confdefs.h >>conftest.$ac_ext
20261 cat >>conftest.$ac_ext <<_ACEOF
20262 /* end confdefs.h. */
20263 $ac_includes_default
20265 main ()
20267 static struct stat ac_aggr;
20268 if (sizeof ac_aggr.st_gen)
20269 return 0;
20271 return 0;
20273 _ACEOF
20274 rm -f conftest.$ac_objext
20275 if { (ac_try="$ac_compile"
20276 case "(($ac_try" in
20277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20278 *) ac_try_echo=$ac_try;;
20279 esac
20280 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20281 (eval "$ac_compile") 2>conftest.er1
20282 ac_status=$?
20283 grep -v '^ *+' conftest.er1 >conftest.err
20284 rm -f conftest.er1
20285 cat conftest.err >&5
20286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20287 (exit $ac_status); } && {
20288 test -z "$ac_c_werror_flag" ||
20289 test ! -s conftest.err
20290 } && test -s conftest.$ac_objext; then
20291 ac_cv_member_struct_stat_st_gen=yes
20292 else
20293 echo "$as_me: failed program was:" >&5
20294 sed 's/^/| /' conftest.$ac_ext >&5
20296 ac_cv_member_struct_stat_st_gen=no
20299 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20302 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20304 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_gen" >&5
20305 echo "${ECHO_T}$ac_cv_member_struct_stat_st_gen" >&6; }
20306 if test $ac_cv_member_struct_stat_st_gen = yes; then
20308 cat >>confdefs.h <<_ACEOF
20309 #define HAVE_STRUCT_STAT_ST_GEN 1
20310 _ACEOF
20315 { echo "$as_me:$LINENO: checking for struct stat.st_birthtime" >&5
20316 echo $ECHO_N "checking for struct stat.st_birthtime... $ECHO_C" >&6; }
20317 if test "${ac_cv_member_struct_stat_st_birthtime+set}" = set; then
20318 echo $ECHO_N "(cached) $ECHO_C" >&6
20319 else
20320 cat >conftest.$ac_ext <<_ACEOF
20321 /* confdefs.h. */
20322 _ACEOF
20323 cat confdefs.h >>conftest.$ac_ext
20324 cat >>conftest.$ac_ext <<_ACEOF
20325 /* end confdefs.h. */
20326 $ac_includes_default
20328 main ()
20330 static struct stat ac_aggr;
20331 if (ac_aggr.st_birthtime)
20332 return 0;
20334 return 0;
20336 _ACEOF
20337 rm -f conftest.$ac_objext
20338 if { (ac_try="$ac_compile"
20339 case "(($ac_try" in
20340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20341 *) ac_try_echo=$ac_try;;
20342 esac
20343 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20344 (eval "$ac_compile") 2>conftest.er1
20345 ac_status=$?
20346 grep -v '^ *+' conftest.er1 >conftest.err
20347 rm -f conftest.er1
20348 cat conftest.err >&5
20349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20350 (exit $ac_status); } && {
20351 test -z "$ac_c_werror_flag" ||
20352 test ! -s conftest.err
20353 } && test -s conftest.$ac_objext; then
20354 ac_cv_member_struct_stat_st_birthtime=yes
20355 else
20356 echo "$as_me: failed program was:" >&5
20357 sed 's/^/| /' conftest.$ac_ext >&5
20359 cat >conftest.$ac_ext <<_ACEOF
20360 /* confdefs.h. */
20361 _ACEOF
20362 cat confdefs.h >>conftest.$ac_ext
20363 cat >>conftest.$ac_ext <<_ACEOF
20364 /* end confdefs.h. */
20365 $ac_includes_default
20367 main ()
20369 static struct stat ac_aggr;
20370 if (sizeof ac_aggr.st_birthtime)
20371 return 0;
20373 return 0;
20375 _ACEOF
20376 rm -f conftest.$ac_objext
20377 if { (ac_try="$ac_compile"
20378 case "(($ac_try" in
20379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20380 *) ac_try_echo=$ac_try;;
20381 esac
20382 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20383 (eval "$ac_compile") 2>conftest.er1
20384 ac_status=$?
20385 grep -v '^ *+' conftest.er1 >conftest.err
20386 rm -f conftest.er1
20387 cat conftest.err >&5
20388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20389 (exit $ac_status); } && {
20390 test -z "$ac_c_werror_flag" ||
20391 test ! -s conftest.err
20392 } && test -s conftest.$ac_objext; then
20393 ac_cv_member_struct_stat_st_birthtime=yes
20394 else
20395 echo "$as_me: failed program was:" >&5
20396 sed 's/^/| /' conftest.$ac_ext >&5
20398 ac_cv_member_struct_stat_st_birthtime=no
20401 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20404 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20406 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_birthtime" >&5
20407 echo "${ECHO_T}$ac_cv_member_struct_stat_st_birthtime" >&6; }
20408 if test $ac_cv_member_struct_stat_st_birthtime = yes; then
20410 cat >>confdefs.h <<_ACEOF
20411 #define HAVE_STRUCT_STAT_ST_BIRTHTIME 1
20412 _ACEOF
20417 { echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
20418 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6; }
20419 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
20420 echo $ECHO_N "(cached) $ECHO_C" >&6
20421 else
20422 cat >conftest.$ac_ext <<_ACEOF
20423 /* confdefs.h. */
20424 _ACEOF
20425 cat confdefs.h >>conftest.$ac_ext
20426 cat >>conftest.$ac_ext <<_ACEOF
20427 /* end confdefs.h. */
20428 $ac_includes_default
20430 main ()
20432 static struct stat ac_aggr;
20433 if (ac_aggr.st_blocks)
20434 return 0;
20436 return 0;
20438 _ACEOF
20439 rm -f conftest.$ac_objext
20440 if { (ac_try="$ac_compile"
20441 case "(($ac_try" in
20442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20443 *) ac_try_echo=$ac_try;;
20444 esac
20445 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20446 (eval "$ac_compile") 2>conftest.er1
20447 ac_status=$?
20448 grep -v '^ *+' conftest.er1 >conftest.err
20449 rm -f conftest.er1
20450 cat conftest.err >&5
20451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20452 (exit $ac_status); } && {
20453 test -z "$ac_c_werror_flag" ||
20454 test ! -s conftest.err
20455 } && test -s conftest.$ac_objext; then
20456 ac_cv_member_struct_stat_st_blocks=yes
20457 else
20458 echo "$as_me: failed program was:" >&5
20459 sed 's/^/| /' conftest.$ac_ext >&5
20461 cat >conftest.$ac_ext <<_ACEOF
20462 /* confdefs.h. */
20463 _ACEOF
20464 cat confdefs.h >>conftest.$ac_ext
20465 cat >>conftest.$ac_ext <<_ACEOF
20466 /* end confdefs.h. */
20467 $ac_includes_default
20469 main ()
20471 static struct stat ac_aggr;
20472 if (sizeof ac_aggr.st_blocks)
20473 return 0;
20475 return 0;
20477 _ACEOF
20478 rm -f conftest.$ac_objext
20479 if { (ac_try="$ac_compile"
20480 case "(($ac_try" in
20481 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20482 *) ac_try_echo=$ac_try;;
20483 esac
20484 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20485 (eval "$ac_compile") 2>conftest.er1
20486 ac_status=$?
20487 grep -v '^ *+' conftest.er1 >conftest.err
20488 rm -f conftest.er1
20489 cat conftest.err >&5
20490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20491 (exit $ac_status); } && {
20492 test -z "$ac_c_werror_flag" ||
20493 test ! -s conftest.err
20494 } && test -s conftest.$ac_objext; then
20495 ac_cv_member_struct_stat_st_blocks=yes
20496 else
20497 echo "$as_me: failed program was:" >&5
20498 sed 's/^/| /' conftest.$ac_ext >&5
20500 ac_cv_member_struct_stat_st_blocks=no
20503 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20506 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20508 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
20509 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6; }
20510 if test $ac_cv_member_struct_stat_st_blocks = yes; then
20512 cat >>confdefs.h <<_ACEOF
20513 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
20514 _ACEOF
20517 cat >>confdefs.h <<\_ACEOF
20518 #define HAVE_ST_BLOCKS 1
20519 _ACEOF
20521 else
20522 case " $LIBOBJS " in
20523 *" fileblocks.$ac_objext "* ) ;;
20524 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
20526 esac
20532 { echo "$as_me:$LINENO: checking for time.h that defines altzone" >&5
20533 echo $ECHO_N "checking for time.h that defines altzone... $ECHO_C" >&6; }
20534 if test "${ac_cv_header_time_altzone+set}" = set; then
20535 echo $ECHO_N "(cached) $ECHO_C" >&6
20536 else
20537 cat >conftest.$ac_ext <<_ACEOF
20538 /* confdefs.h. */
20539 _ACEOF
20540 cat confdefs.h >>conftest.$ac_ext
20541 cat >>conftest.$ac_ext <<_ACEOF
20542 /* end confdefs.h. */
20543 #include <time.h>
20545 main ()
20547 return altzone;
20549 return 0;
20551 _ACEOF
20552 rm -f conftest.$ac_objext
20553 if { (ac_try="$ac_compile"
20554 case "(($ac_try" in
20555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20556 *) ac_try_echo=$ac_try;;
20557 esac
20558 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20559 (eval "$ac_compile") 2>conftest.er1
20560 ac_status=$?
20561 grep -v '^ *+' conftest.er1 >conftest.err
20562 rm -f conftest.er1
20563 cat conftest.err >&5
20564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20565 (exit $ac_status); } && {
20566 test -z "$ac_c_werror_flag" ||
20567 test ! -s conftest.err
20568 } && test -s conftest.$ac_objext; then
20569 ac_cv_header_time_altzone=yes
20570 else
20571 echo "$as_me: failed program was:" >&5
20572 sed 's/^/| /' conftest.$ac_ext >&5
20574 ac_cv_header_time_altzone=no
20577 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20580 { echo "$as_me:$LINENO: result: $ac_cv_header_time_altzone" >&5
20581 echo "${ECHO_T}$ac_cv_header_time_altzone" >&6; }
20582 if test $ac_cv_header_time_altzone = yes; then
20584 cat >>confdefs.h <<\_ACEOF
20585 #define HAVE_ALTZONE 1
20586 _ACEOF
20590 was_it_defined=no
20591 { echo "$as_me:$LINENO: checking whether sys/select.h and sys/time.h may both be included" >&5
20592 echo $ECHO_N "checking whether sys/select.h and sys/time.h may both be included... $ECHO_C" >&6; }
20593 cat >conftest.$ac_ext <<_ACEOF
20594 /* confdefs.h. */
20595 _ACEOF
20596 cat confdefs.h >>conftest.$ac_ext
20597 cat >>conftest.$ac_ext <<_ACEOF
20598 /* end confdefs.h. */
20600 #include <sys/types.h>
20601 #include <sys/select.h>
20602 #include <sys/time.h>
20605 main ()
20609 return 0;
20611 _ACEOF
20612 rm -f conftest.$ac_objext
20613 if { (ac_try="$ac_compile"
20614 case "(($ac_try" in
20615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20616 *) ac_try_echo=$ac_try;;
20617 esac
20618 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20619 (eval "$ac_compile") 2>conftest.er1
20620 ac_status=$?
20621 grep -v '^ *+' conftest.er1 >conftest.err
20622 rm -f conftest.er1
20623 cat conftest.err >&5
20624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20625 (exit $ac_status); } && {
20626 test -z "$ac_c_werror_flag" ||
20627 test ! -s conftest.err
20628 } && test -s conftest.$ac_objext; then
20631 cat >>confdefs.h <<\_ACEOF
20632 #define SYS_SELECT_WITH_SYS_TIME 1
20633 _ACEOF
20635 was_it_defined=yes
20637 else
20638 echo "$as_me: failed program was:" >&5
20639 sed 's/^/| /' conftest.$ac_ext >&5
20644 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20645 { echo "$as_me:$LINENO: result: $was_it_defined" >&5
20646 echo "${ECHO_T}$was_it_defined" >&6; }
20648 { echo "$as_me:$LINENO: checking for addrinfo" >&5
20649 echo $ECHO_N "checking for addrinfo... $ECHO_C" >&6; }
20650 if test "${ac_cv_struct_addrinfo+set}" = set; then
20651 echo $ECHO_N "(cached) $ECHO_C" >&6
20652 else
20653 cat >conftest.$ac_ext <<_ACEOF
20654 /* confdefs.h. */
20655 _ACEOF
20656 cat confdefs.h >>conftest.$ac_ext
20657 cat >>conftest.$ac_ext <<_ACEOF
20658 /* end confdefs.h. */
20660 # include <netdb.h>
20662 main ()
20664 struct addrinfo a
20666 return 0;
20668 _ACEOF
20669 rm -f conftest.$ac_objext
20670 if { (ac_try="$ac_compile"
20671 case "(($ac_try" in
20672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20673 *) ac_try_echo=$ac_try;;
20674 esac
20675 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20676 (eval "$ac_compile") 2>conftest.er1
20677 ac_status=$?
20678 grep -v '^ *+' conftest.er1 >conftest.err
20679 rm -f conftest.er1
20680 cat conftest.err >&5
20681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20682 (exit $ac_status); } && {
20683 test -z "$ac_c_werror_flag" ||
20684 test ! -s conftest.err
20685 } && test -s conftest.$ac_objext; then
20686 ac_cv_struct_addrinfo=yes
20687 else
20688 echo "$as_me: failed program was:" >&5
20689 sed 's/^/| /' conftest.$ac_ext >&5
20691 ac_cv_struct_addrinfo=no
20694 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20697 { echo "$as_me:$LINENO: result: $ac_cv_struct_addrinfo" >&5
20698 echo "${ECHO_T}$ac_cv_struct_addrinfo" >&6; }
20699 if test $ac_cv_struct_addrinfo = yes; then
20701 cat >>confdefs.h <<\_ACEOF
20702 #define HAVE_ADDRINFO 1
20703 _ACEOF
20707 { echo "$as_me:$LINENO: checking for sockaddr_storage" >&5
20708 echo $ECHO_N "checking for sockaddr_storage... $ECHO_C" >&6; }
20709 if test "${ac_cv_struct_sockaddr_storage+set}" = set; then
20710 echo $ECHO_N "(cached) $ECHO_C" >&6
20711 else
20712 cat >conftest.$ac_ext <<_ACEOF
20713 /* confdefs.h. */
20714 _ACEOF
20715 cat confdefs.h >>conftest.$ac_ext
20716 cat >>conftest.$ac_ext <<_ACEOF
20717 /* end confdefs.h. */
20719 # include <sys/types.h>
20720 # include <sys/socket.h>
20722 main ()
20724 struct sockaddr_storage s
20726 return 0;
20728 _ACEOF
20729 rm -f conftest.$ac_objext
20730 if { (ac_try="$ac_compile"
20731 case "(($ac_try" in
20732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20733 *) ac_try_echo=$ac_try;;
20734 esac
20735 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20736 (eval "$ac_compile") 2>conftest.er1
20737 ac_status=$?
20738 grep -v '^ *+' conftest.er1 >conftest.err
20739 rm -f conftest.er1
20740 cat conftest.err >&5
20741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20742 (exit $ac_status); } && {
20743 test -z "$ac_c_werror_flag" ||
20744 test ! -s conftest.err
20745 } && test -s conftest.$ac_objext; then
20746 ac_cv_struct_sockaddr_storage=yes
20747 else
20748 echo "$as_me: failed program was:" >&5
20749 sed 's/^/| /' conftest.$ac_ext >&5
20751 ac_cv_struct_sockaddr_storage=no
20754 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20757 { echo "$as_me:$LINENO: result: $ac_cv_struct_sockaddr_storage" >&5
20758 echo "${ECHO_T}$ac_cv_struct_sockaddr_storage" >&6; }
20759 if test $ac_cv_struct_sockaddr_storage = yes; then
20761 cat >>confdefs.h <<\_ACEOF
20762 #define HAVE_SOCKADDR_STORAGE 1
20763 _ACEOF
20767 # checks for compiler characteristics
20770 { echo "$as_me:$LINENO: checking whether char is unsigned" >&5
20771 echo $ECHO_N "checking whether char is unsigned... $ECHO_C" >&6; }
20772 if test "${ac_cv_c_char_unsigned+set}" = set; then
20773 echo $ECHO_N "(cached) $ECHO_C" >&6
20774 else
20775 cat >conftest.$ac_ext <<_ACEOF
20776 /* confdefs.h. */
20777 _ACEOF
20778 cat confdefs.h >>conftest.$ac_ext
20779 cat >>conftest.$ac_ext <<_ACEOF
20780 /* end confdefs.h. */
20781 $ac_includes_default
20783 main ()
20785 static int test_array [1 - 2 * !(((char) -1) < 0)];
20786 test_array [0] = 0
20789 return 0;
20791 _ACEOF
20792 rm -f conftest.$ac_objext
20793 if { (ac_try="$ac_compile"
20794 case "(($ac_try" in
20795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20796 *) ac_try_echo=$ac_try;;
20797 esac
20798 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20799 (eval "$ac_compile") 2>conftest.er1
20800 ac_status=$?
20801 grep -v '^ *+' conftest.er1 >conftest.err
20802 rm -f conftest.er1
20803 cat conftest.err >&5
20804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20805 (exit $ac_status); } && {
20806 test -z "$ac_c_werror_flag" ||
20807 test ! -s conftest.err
20808 } && test -s conftest.$ac_objext; then
20809 ac_cv_c_char_unsigned=no
20810 else
20811 echo "$as_me: failed program was:" >&5
20812 sed 's/^/| /' conftest.$ac_ext >&5
20814 ac_cv_c_char_unsigned=yes
20817 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20819 { echo "$as_me:$LINENO: result: $ac_cv_c_char_unsigned" >&5
20820 echo "${ECHO_T}$ac_cv_c_char_unsigned" >&6; }
20821 if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
20822 cat >>confdefs.h <<\_ACEOF
20823 #define __CHAR_UNSIGNED__ 1
20824 _ACEOF
20828 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
20829 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
20830 if test "${ac_cv_c_const+set}" = set; then
20831 echo $ECHO_N "(cached) $ECHO_C" >&6
20832 else
20833 cat >conftest.$ac_ext <<_ACEOF
20834 /* confdefs.h. */
20835 _ACEOF
20836 cat confdefs.h >>conftest.$ac_ext
20837 cat >>conftest.$ac_ext <<_ACEOF
20838 /* end confdefs.h. */
20841 main ()
20843 /* FIXME: Include the comments suggested by Paul. */
20844 #ifndef __cplusplus
20845 /* Ultrix mips cc rejects this. */
20846 typedef int charset[2];
20847 const charset cs;
20848 /* SunOS 4.1.1 cc rejects this. */
20849 char const *const *pcpcc;
20850 char **ppc;
20851 /* NEC SVR4.0.2 mips cc rejects this. */
20852 struct point {int x, y;};
20853 static struct point const zero = {0,0};
20854 /* AIX XL C 1.02.0.0 rejects this.
20855 It does not let you subtract one const X* pointer from another in
20856 an arm of an if-expression whose if-part is not a constant
20857 expression */
20858 const char *g = "string";
20859 pcpcc = &g + (g ? g-g : 0);
20860 /* HPUX 7.0 cc rejects these. */
20861 ++pcpcc;
20862 ppc = (char**) pcpcc;
20863 pcpcc = (char const *const *) ppc;
20864 { /* SCO 3.2v4 cc rejects this. */
20865 char *t;
20866 char const *s = 0 ? (char *) 0 : (char const *) 0;
20868 *t++ = 0;
20869 if (s) return 0;
20871 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
20872 int x[] = {25, 17};
20873 const int *foo = &x[0];
20874 ++foo;
20876 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
20877 typedef const int *iptr;
20878 iptr p = 0;
20879 ++p;
20881 { /* AIX XL C 1.02.0.0 rejects this saying
20882 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
20883 struct s { int j; const int *ap[3]; };
20884 struct s *b; b->j = 5;
20886 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
20887 const int foo = 10;
20888 if (!foo) return 0;
20890 return !cs[0] && !zero.x;
20891 #endif
20894 return 0;
20896 _ACEOF
20897 rm -f conftest.$ac_objext
20898 if { (ac_try="$ac_compile"
20899 case "(($ac_try" in
20900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20901 *) ac_try_echo=$ac_try;;
20902 esac
20903 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20904 (eval "$ac_compile") 2>conftest.er1
20905 ac_status=$?
20906 grep -v '^ *+' conftest.er1 >conftest.err
20907 rm -f conftest.er1
20908 cat conftest.err >&5
20909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20910 (exit $ac_status); } && {
20911 test -z "$ac_c_werror_flag" ||
20912 test ! -s conftest.err
20913 } && test -s conftest.$ac_objext; then
20914 ac_cv_c_const=yes
20915 else
20916 echo "$as_me: failed program was:" >&5
20917 sed 's/^/| /' conftest.$ac_ext >&5
20919 ac_cv_c_const=no
20922 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20924 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
20925 echo "${ECHO_T}$ac_cv_c_const" >&6; }
20926 if test $ac_cv_c_const = no; then
20928 cat >>confdefs.h <<\_ACEOF
20929 #define const
20930 _ACEOF
20935 works=no
20936 { echo "$as_me:$LINENO: checking for working volatile" >&5
20937 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6; }
20938 cat >conftest.$ac_ext <<_ACEOF
20939 /* confdefs.h. */
20940 _ACEOF
20941 cat confdefs.h >>conftest.$ac_ext
20942 cat >>conftest.$ac_ext <<_ACEOF
20943 /* end confdefs.h. */
20946 main ()
20948 volatile int x; x = 0;
20950 return 0;
20952 _ACEOF
20953 rm -f conftest.$ac_objext
20954 if { (ac_try="$ac_compile"
20955 case "(($ac_try" in
20956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20957 *) ac_try_echo=$ac_try;;
20958 esac
20959 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20960 (eval "$ac_compile") 2>conftest.er1
20961 ac_status=$?
20962 grep -v '^ *+' conftest.er1 >conftest.err
20963 rm -f conftest.er1
20964 cat conftest.err >&5
20965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20966 (exit $ac_status); } && {
20967 test -z "$ac_c_werror_flag" ||
20968 test ! -s conftest.err
20969 } && test -s conftest.$ac_objext; then
20970 works=yes
20971 else
20972 echo "$as_me: failed program was:" >&5
20973 sed 's/^/| /' conftest.$ac_ext >&5
20976 cat >>confdefs.h <<\_ACEOF
20977 #define volatile
20978 _ACEOF
20983 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20984 { echo "$as_me:$LINENO: result: $works" >&5
20985 echo "${ECHO_T}$works" >&6; }
20987 works=no
20988 { echo "$as_me:$LINENO: checking for working signed char" >&5
20989 echo $ECHO_N "checking for working signed char... $ECHO_C" >&6; }
20990 cat >conftest.$ac_ext <<_ACEOF
20991 /* confdefs.h. */
20992 _ACEOF
20993 cat confdefs.h >>conftest.$ac_ext
20994 cat >>conftest.$ac_ext <<_ACEOF
20995 /* end confdefs.h. */
20998 main ()
21000 signed char c;
21002 return 0;
21004 _ACEOF
21005 rm -f conftest.$ac_objext
21006 if { (ac_try="$ac_compile"
21007 case "(($ac_try" in
21008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21009 *) ac_try_echo=$ac_try;;
21010 esac
21011 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21012 (eval "$ac_compile") 2>conftest.er1
21013 ac_status=$?
21014 grep -v '^ *+' conftest.er1 >conftest.err
21015 rm -f conftest.er1
21016 cat conftest.err >&5
21017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21018 (exit $ac_status); } && {
21019 test -z "$ac_c_werror_flag" ||
21020 test ! -s conftest.err
21021 } && test -s conftest.$ac_objext; then
21022 works=yes
21023 else
21024 echo "$as_me: failed program was:" >&5
21025 sed 's/^/| /' conftest.$ac_ext >&5
21028 cat >>confdefs.h <<\_ACEOF
21029 #define signed
21030 _ACEOF
21035 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21036 { echo "$as_me:$LINENO: result: $works" >&5
21037 echo "${ECHO_T}$works" >&6; }
21039 have_prototypes=no
21040 { echo "$as_me:$LINENO: checking for prototypes" >&5
21041 echo $ECHO_N "checking for prototypes... $ECHO_C" >&6; }
21042 cat >conftest.$ac_ext <<_ACEOF
21043 /* confdefs.h. */
21044 _ACEOF
21045 cat confdefs.h >>conftest.$ac_ext
21046 cat >>conftest.$ac_ext <<_ACEOF
21047 /* end confdefs.h. */
21048 int foo(int x) { return 0; }
21050 main ()
21052 return foo(10);
21054 return 0;
21056 _ACEOF
21057 rm -f conftest.$ac_objext
21058 if { (ac_try="$ac_compile"
21059 case "(($ac_try" in
21060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21061 *) ac_try_echo=$ac_try;;
21062 esac
21063 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21064 (eval "$ac_compile") 2>conftest.er1
21065 ac_status=$?
21066 grep -v '^ *+' conftest.er1 >conftest.err
21067 rm -f conftest.er1
21068 cat conftest.err >&5
21069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21070 (exit $ac_status); } && {
21071 test -z "$ac_c_werror_flag" ||
21072 test ! -s conftest.err
21073 } && test -s conftest.$ac_objext; then
21076 cat >>confdefs.h <<\_ACEOF
21077 #define HAVE_PROTOTYPES 1
21078 _ACEOF
21080 have_prototypes=yes
21082 else
21083 echo "$as_me: failed program was:" >&5
21084 sed 's/^/| /' conftest.$ac_ext >&5
21089 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21090 { echo "$as_me:$LINENO: result: $have_prototypes" >&5
21091 echo "${ECHO_T}$have_prototypes" >&6; }
21093 works=no
21094 { echo "$as_me:$LINENO: checking for variable length prototypes and stdarg.h" >&5
21095 echo $ECHO_N "checking for variable length prototypes and stdarg.h... $ECHO_C" >&6; }
21096 cat >conftest.$ac_ext <<_ACEOF
21097 /* confdefs.h. */
21098 _ACEOF
21099 cat confdefs.h >>conftest.$ac_ext
21100 cat >>conftest.$ac_ext <<_ACEOF
21101 /* end confdefs.h. */
21103 #include <stdarg.h>
21104 int foo(int x, ...) {
21105 va_list va;
21106 va_start(va, x);
21107 va_arg(va, int);
21108 va_arg(va, char *);
21109 va_arg(va, double);
21110 return 0;
21114 main ()
21116 return foo(10, "", 3.14);
21118 return 0;
21120 _ACEOF
21121 rm -f conftest.$ac_objext
21122 if { (ac_try="$ac_compile"
21123 case "(($ac_try" in
21124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21125 *) ac_try_echo=$ac_try;;
21126 esac
21127 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21128 (eval "$ac_compile") 2>conftest.er1
21129 ac_status=$?
21130 grep -v '^ *+' conftest.er1 >conftest.err
21131 rm -f conftest.er1
21132 cat conftest.err >&5
21133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21134 (exit $ac_status); } && {
21135 test -z "$ac_c_werror_flag" ||
21136 test ! -s conftest.err
21137 } && test -s conftest.$ac_objext; then
21140 cat >>confdefs.h <<\_ACEOF
21141 #define HAVE_STDARG_PROTOTYPES 1
21142 _ACEOF
21144 works=yes
21146 else
21147 echo "$as_me: failed program was:" >&5
21148 sed 's/^/| /' conftest.$ac_ext >&5
21153 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21154 { echo "$as_me:$LINENO: result: $works" >&5
21155 echo "${ECHO_T}$works" >&6; }
21157 # check for socketpair
21158 { echo "$as_me:$LINENO: checking for socketpair" >&5
21159 echo $ECHO_N "checking for socketpair... $ECHO_C" >&6; }
21160 cat >conftest.$ac_ext <<_ACEOF
21161 /* confdefs.h. */
21162 _ACEOF
21163 cat confdefs.h >>conftest.$ac_ext
21164 cat >>conftest.$ac_ext <<_ACEOF
21165 /* end confdefs.h. */
21167 #include <sys/types.h>
21168 #include <sys/socket.h>
21171 main ()
21173 void *x=socketpair
21175 return 0;
21177 _ACEOF
21178 rm -f conftest.$ac_objext
21179 if { (ac_try="$ac_compile"
21180 case "(($ac_try" in
21181 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21182 *) ac_try_echo=$ac_try;;
21183 esac
21184 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21185 (eval "$ac_compile") 2>conftest.er1
21186 ac_status=$?
21187 grep -v '^ *+' conftest.er1 >conftest.err
21188 rm -f conftest.er1
21189 cat conftest.err >&5
21190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21191 (exit $ac_status); } && {
21192 test -z "$ac_c_werror_flag" ||
21193 test ! -s conftest.err
21194 } && test -s conftest.$ac_objext; then
21196 cat >>confdefs.h <<\_ACEOF
21197 #define HAVE_SOCKETPAIR 1
21198 _ACEOF
21200 { echo "$as_me:$LINENO: result: yes" >&5
21201 echo "${ECHO_T}yes" >&6; }
21202 else
21203 echo "$as_me: failed program was:" >&5
21204 sed 's/^/| /' conftest.$ac_ext >&5
21206 { echo "$as_me:$LINENO: result: no" >&5
21207 echo "${ECHO_T}no" >&6; }
21211 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21213 # check if sockaddr has sa_len member
21214 { echo "$as_me:$LINENO: checking if sockaddr has sa_len member" >&5
21215 echo $ECHO_N "checking if sockaddr has sa_len member... $ECHO_C" >&6; }
21216 cat >conftest.$ac_ext <<_ACEOF
21217 /* confdefs.h. */
21218 _ACEOF
21219 cat confdefs.h >>conftest.$ac_ext
21220 cat >>conftest.$ac_ext <<_ACEOF
21221 /* end confdefs.h. */
21222 #include <sys/types.h>
21223 #include <sys/socket.h>
21225 main ()
21227 struct sockaddr x;
21228 x.sa_len = 0;
21230 return 0;
21232 _ACEOF
21233 rm -f conftest.$ac_objext
21234 if { (ac_try="$ac_compile"
21235 case "(($ac_try" in
21236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21237 *) ac_try_echo=$ac_try;;
21238 esac
21239 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21240 (eval "$ac_compile") 2>conftest.er1
21241 ac_status=$?
21242 grep -v '^ *+' conftest.er1 >conftest.err
21243 rm -f conftest.er1
21244 cat conftest.err >&5
21245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21246 (exit $ac_status); } && {
21247 test -z "$ac_c_werror_flag" ||
21248 test ! -s conftest.err
21249 } && test -s conftest.$ac_objext; then
21250 { echo "$as_me:$LINENO: result: yes" >&5
21251 echo "${ECHO_T}yes" >&6; }
21253 cat >>confdefs.h <<\_ACEOF
21254 #define HAVE_SOCKADDR_SA_LEN 1
21255 _ACEOF
21257 else
21258 echo "$as_me: failed program was:" >&5
21259 sed 's/^/| /' conftest.$ac_ext >&5
21261 { echo "$as_me:$LINENO: result: no" >&5
21262 echo "${ECHO_T}no" >&6; }
21265 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21267 va_list_is_array=no
21268 { echo "$as_me:$LINENO: checking whether va_list is an array" >&5
21269 echo $ECHO_N "checking whether va_list is an array... $ECHO_C" >&6; }
21270 cat >conftest.$ac_ext <<_ACEOF
21271 /* confdefs.h. */
21272 _ACEOF
21273 cat confdefs.h >>conftest.$ac_ext
21274 cat >>conftest.$ac_ext <<_ACEOF
21275 /* end confdefs.h. */
21277 #ifdef HAVE_STDARG_PROTOTYPES
21278 #include <stdarg.h>
21279 #else
21280 #include <varargs.h>
21281 #endif
21284 main ()
21286 va_list list1, list2; list1 = list2;
21288 return 0;
21290 _ACEOF
21291 rm -f conftest.$ac_objext
21292 if { (ac_try="$ac_compile"
21293 case "(($ac_try" in
21294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21295 *) ac_try_echo=$ac_try;;
21296 esac
21297 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21298 (eval "$ac_compile") 2>conftest.er1
21299 ac_status=$?
21300 grep -v '^ *+' conftest.er1 >conftest.err
21301 rm -f conftest.er1
21302 cat conftest.err >&5
21303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21304 (exit $ac_status); } && {
21305 test -z "$ac_c_werror_flag" ||
21306 test ! -s conftest.err
21307 } && test -s conftest.$ac_objext; then
21309 else
21310 echo "$as_me: failed program was:" >&5
21311 sed 's/^/| /' conftest.$ac_ext >&5
21315 cat >>confdefs.h <<\_ACEOF
21316 #define VA_LIST_IS_ARRAY 1
21317 _ACEOF
21319 va_list_is_array=yes
21323 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21324 { echo "$as_me:$LINENO: result: $va_list_is_array" >&5
21325 echo "${ECHO_T}$va_list_is_array" >&6; }
21327 # sigh -- gethostbyname_r is a mess; it can have 3, 5 or 6 arguments :-(
21331 { echo "$as_me:$LINENO: checking for gethostbyname_r" >&5
21332 echo $ECHO_N "checking for gethostbyname_r... $ECHO_C" >&6; }
21333 if test "${ac_cv_func_gethostbyname_r+set}" = set; then
21334 echo $ECHO_N "(cached) $ECHO_C" >&6
21335 else
21336 cat >conftest.$ac_ext <<_ACEOF
21337 /* confdefs.h. */
21338 _ACEOF
21339 cat confdefs.h >>conftest.$ac_ext
21340 cat >>conftest.$ac_ext <<_ACEOF
21341 /* end confdefs.h. */
21342 /* Define gethostbyname_r to an innocuous variant, in case <limits.h> declares gethostbyname_r.
21343 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21344 #define gethostbyname_r innocuous_gethostbyname_r
21346 /* System header to define __stub macros and hopefully few prototypes,
21347 which can conflict with char gethostbyname_r (); below.
21348 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21349 <limits.h> exists even on freestanding compilers. */
21351 #ifdef __STDC__
21352 # include <limits.h>
21353 #else
21354 # include <assert.h>
21355 #endif
21357 #undef gethostbyname_r
21359 /* Override any GCC internal prototype to avoid an error.
21360 Use char because int might match the return type of a GCC
21361 builtin and then its argument prototype would still apply. */
21362 #ifdef __cplusplus
21363 extern "C"
21364 #endif
21365 char gethostbyname_r ();
21366 /* The GNU C library defines this for functions which it implements
21367 to always fail with ENOSYS. Some functions are actually named
21368 something starting with __ and the normal name is an alias. */
21369 #if defined __stub_gethostbyname_r || defined __stub___gethostbyname_r
21370 choke me
21371 #endif
21374 main ()
21376 return gethostbyname_r ();
21378 return 0;
21380 _ACEOF
21381 rm -f conftest.$ac_objext conftest$ac_exeext
21382 if { (ac_try="$ac_link"
21383 case "(($ac_try" in
21384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21385 *) ac_try_echo=$ac_try;;
21386 esac
21387 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21388 (eval "$ac_link") 2>conftest.er1
21389 ac_status=$?
21390 grep -v '^ *+' conftest.er1 >conftest.err
21391 rm -f conftest.er1
21392 cat conftest.err >&5
21393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21394 (exit $ac_status); } && {
21395 test -z "$ac_c_werror_flag" ||
21396 test ! -s conftest.err
21397 } && test -s conftest$ac_exeext &&
21398 $as_test_x conftest$ac_exeext; then
21399 ac_cv_func_gethostbyname_r=yes
21400 else
21401 echo "$as_me: failed program was:" >&5
21402 sed 's/^/| /' conftest.$ac_ext >&5
21404 ac_cv_func_gethostbyname_r=no
21407 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21408 conftest$ac_exeext conftest.$ac_ext
21410 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname_r" >&5
21411 echo "${ECHO_T}$ac_cv_func_gethostbyname_r" >&6; }
21412 if test $ac_cv_func_gethostbyname_r = yes; then
21414 cat >>confdefs.h <<\_ACEOF
21415 #define HAVE_GETHOSTBYNAME_R 1
21416 _ACEOF
21418 { echo "$as_me:$LINENO: checking gethostbyname_r with 6 args" >&5
21419 echo $ECHO_N "checking gethostbyname_r with 6 args... $ECHO_C" >&6; }
21420 OLD_CFLAGS=$CFLAGS
21421 CFLAGS="$CFLAGS $MY_CPPFLAGS $MY_THREAD_CPPFLAGS $MY_CFLAGS"
21422 cat >conftest.$ac_ext <<_ACEOF
21423 /* confdefs.h. */
21424 _ACEOF
21425 cat confdefs.h >>conftest.$ac_ext
21426 cat >>conftest.$ac_ext <<_ACEOF
21427 /* end confdefs.h. */
21429 # include <netdb.h>
21432 main ()
21435 char *name;
21436 struct hostent *he, *res;
21437 char buffer[2048];
21438 int buflen = 2048;
21439 int h_errnop;
21441 (void) gethostbyname_r(name, he, buffer, buflen, &res, &h_errnop)
21444 return 0;
21446 _ACEOF
21447 rm -f conftest.$ac_objext
21448 if { (ac_try="$ac_compile"
21449 case "(($ac_try" in
21450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21451 *) ac_try_echo=$ac_try;;
21452 esac
21453 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21454 (eval "$ac_compile") 2>conftest.er1
21455 ac_status=$?
21456 grep -v '^ *+' conftest.er1 >conftest.err
21457 rm -f conftest.er1
21458 cat conftest.err >&5
21459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21460 (exit $ac_status); } && {
21461 test -z "$ac_c_werror_flag" ||
21462 test ! -s conftest.err
21463 } && test -s conftest.$ac_objext; then
21465 cat >>confdefs.h <<\_ACEOF
21466 #define HAVE_GETHOSTBYNAME_R 1
21467 _ACEOF
21470 cat >>confdefs.h <<\_ACEOF
21471 #define HAVE_GETHOSTBYNAME_R_6_ARG 1
21472 _ACEOF
21474 { echo "$as_me:$LINENO: result: yes" >&5
21475 echo "${ECHO_T}yes" >&6; }
21477 else
21478 echo "$as_me: failed program was:" >&5
21479 sed 's/^/| /' conftest.$ac_ext >&5
21482 { echo "$as_me:$LINENO: result: no" >&5
21483 echo "${ECHO_T}no" >&6; }
21484 { echo "$as_me:$LINENO: checking gethostbyname_r with 5 args" >&5
21485 echo $ECHO_N "checking gethostbyname_r with 5 args... $ECHO_C" >&6; }
21486 cat >conftest.$ac_ext <<_ACEOF
21487 /* confdefs.h. */
21488 _ACEOF
21489 cat confdefs.h >>conftest.$ac_ext
21490 cat >>conftest.$ac_ext <<_ACEOF
21491 /* end confdefs.h. */
21493 # include <netdb.h>
21496 main ()
21499 char *name;
21500 struct hostent *he;
21501 char buffer[2048];
21502 int buflen = 2048;
21503 int h_errnop;
21505 (void) gethostbyname_r(name, he, buffer, buflen, &h_errnop)
21508 return 0;
21510 _ACEOF
21511 rm -f conftest.$ac_objext
21512 if { (ac_try="$ac_compile"
21513 case "(($ac_try" in
21514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21515 *) ac_try_echo=$ac_try;;
21516 esac
21517 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21518 (eval "$ac_compile") 2>conftest.er1
21519 ac_status=$?
21520 grep -v '^ *+' conftest.er1 >conftest.err
21521 rm -f conftest.er1
21522 cat conftest.err >&5
21523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21524 (exit $ac_status); } && {
21525 test -z "$ac_c_werror_flag" ||
21526 test ! -s conftest.err
21527 } && test -s conftest.$ac_objext; then
21529 cat >>confdefs.h <<\_ACEOF
21530 #define HAVE_GETHOSTBYNAME_R 1
21531 _ACEOF
21534 cat >>confdefs.h <<\_ACEOF
21535 #define HAVE_GETHOSTBYNAME_R_5_ARG 1
21536 _ACEOF
21538 { echo "$as_me:$LINENO: result: yes" >&5
21539 echo "${ECHO_T}yes" >&6; }
21541 else
21542 echo "$as_me: failed program was:" >&5
21543 sed 's/^/| /' conftest.$ac_ext >&5
21546 { echo "$as_me:$LINENO: result: no" >&5
21547 echo "${ECHO_T}no" >&6; }
21548 { echo "$as_me:$LINENO: checking gethostbyname_r with 3 args" >&5
21549 echo $ECHO_N "checking gethostbyname_r with 3 args... $ECHO_C" >&6; }
21550 cat >conftest.$ac_ext <<_ACEOF
21551 /* confdefs.h. */
21552 _ACEOF
21553 cat confdefs.h >>conftest.$ac_ext
21554 cat >>conftest.$ac_ext <<_ACEOF
21555 /* end confdefs.h. */
21557 # include <netdb.h>
21560 main ()
21563 char *name;
21564 struct hostent *he;
21565 struct hostent_data data;
21567 (void) gethostbyname_r(name, he, &data);
21570 return 0;
21572 _ACEOF
21573 rm -f conftest.$ac_objext
21574 if { (ac_try="$ac_compile"
21575 case "(($ac_try" in
21576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21577 *) ac_try_echo=$ac_try;;
21578 esac
21579 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21580 (eval "$ac_compile") 2>conftest.er1
21581 ac_status=$?
21582 grep -v '^ *+' conftest.er1 >conftest.err
21583 rm -f conftest.er1
21584 cat conftest.err >&5
21585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21586 (exit $ac_status); } && {
21587 test -z "$ac_c_werror_flag" ||
21588 test ! -s conftest.err
21589 } && test -s conftest.$ac_objext; then
21591 cat >>confdefs.h <<\_ACEOF
21592 #define HAVE_GETHOSTBYNAME_R 1
21593 _ACEOF
21596 cat >>confdefs.h <<\_ACEOF
21597 #define HAVE_GETHOSTBYNAME_R_3_ARG 1
21598 _ACEOF
21600 { echo "$as_me:$LINENO: result: yes" >&5
21601 echo "${ECHO_T}yes" >&6; }
21603 else
21604 echo "$as_me: failed program was:" >&5
21605 sed 's/^/| /' conftest.$ac_ext >&5
21608 { echo "$as_me:$LINENO: result: no" >&5
21609 echo "${ECHO_T}no" >&6; }
21613 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21617 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21621 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21622 CFLAGS=$OLD_CFLAGS
21624 else
21627 for ac_func in gethostbyname
21629 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21630 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21631 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21632 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21633 echo $ECHO_N "(cached) $ECHO_C" >&6
21634 else
21635 cat >conftest.$ac_ext <<_ACEOF
21636 /* confdefs.h. */
21637 _ACEOF
21638 cat confdefs.h >>conftest.$ac_ext
21639 cat >>conftest.$ac_ext <<_ACEOF
21640 /* end confdefs.h. */
21641 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21642 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21643 #define $ac_func innocuous_$ac_func
21645 /* System header to define __stub macros and hopefully few prototypes,
21646 which can conflict with char $ac_func (); below.
21647 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21648 <limits.h> exists even on freestanding compilers. */
21650 #ifdef __STDC__
21651 # include <limits.h>
21652 #else
21653 # include <assert.h>
21654 #endif
21656 #undef $ac_func
21658 /* Override any GCC internal prototype to avoid an error.
21659 Use char because int might match the return type of a GCC
21660 builtin and then its argument prototype would still apply. */
21661 #ifdef __cplusplus
21662 extern "C"
21663 #endif
21664 char $ac_func ();
21665 /* The GNU C library defines this for functions which it implements
21666 to always fail with ENOSYS. Some functions are actually named
21667 something starting with __ and the normal name is an alias. */
21668 #if defined __stub_$ac_func || defined __stub___$ac_func
21669 choke me
21670 #endif
21673 main ()
21675 return $ac_func ();
21677 return 0;
21679 _ACEOF
21680 rm -f conftest.$ac_objext conftest$ac_exeext
21681 if { (ac_try="$ac_link"
21682 case "(($ac_try" in
21683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21684 *) ac_try_echo=$ac_try;;
21685 esac
21686 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21687 (eval "$ac_link") 2>conftest.er1
21688 ac_status=$?
21689 grep -v '^ *+' conftest.er1 >conftest.err
21690 rm -f conftest.er1
21691 cat conftest.err >&5
21692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21693 (exit $ac_status); } && {
21694 test -z "$ac_c_werror_flag" ||
21695 test ! -s conftest.err
21696 } && test -s conftest$ac_exeext &&
21697 $as_test_x conftest$ac_exeext; then
21698 eval "$as_ac_var=yes"
21699 else
21700 echo "$as_me: failed program was:" >&5
21701 sed 's/^/| /' conftest.$ac_ext >&5
21703 eval "$as_ac_var=no"
21706 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21707 conftest$ac_exeext conftest.$ac_ext
21709 ac_res=`eval echo '${'$as_ac_var'}'`
21710 { echo "$as_me:$LINENO: result: $ac_res" >&5
21711 echo "${ECHO_T}$ac_res" >&6; }
21712 if test `eval echo '${'$as_ac_var'}'` = yes; then
21713 cat >>confdefs.h <<_ACEOF
21714 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21715 _ACEOF
21718 done
21729 # checks for system services
21730 # (none yet)
21732 # Linux requires this for correct f.p. operations
21733 { echo "$as_me:$LINENO: checking for __fpu_control" >&5
21734 echo $ECHO_N "checking for __fpu_control... $ECHO_C" >&6; }
21735 if test "${ac_cv_func___fpu_control+set}" = set; then
21736 echo $ECHO_N "(cached) $ECHO_C" >&6
21737 else
21738 cat >conftest.$ac_ext <<_ACEOF
21739 /* confdefs.h. */
21740 _ACEOF
21741 cat confdefs.h >>conftest.$ac_ext
21742 cat >>conftest.$ac_ext <<_ACEOF
21743 /* end confdefs.h. */
21744 /* Define __fpu_control to an innocuous variant, in case <limits.h> declares __fpu_control.
21745 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21746 #define __fpu_control innocuous___fpu_control
21748 /* System header to define __stub macros and hopefully few prototypes,
21749 which can conflict with char __fpu_control (); below.
21750 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21751 <limits.h> exists even on freestanding compilers. */
21753 #ifdef __STDC__
21754 # include <limits.h>
21755 #else
21756 # include <assert.h>
21757 #endif
21759 #undef __fpu_control
21761 /* Override any GCC internal prototype to avoid an error.
21762 Use char because int might match the return type of a GCC
21763 builtin and then its argument prototype would still apply. */
21764 #ifdef __cplusplus
21765 extern "C"
21766 #endif
21767 char __fpu_control ();
21768 /* The GNU C library defines this for functions which it implements
21769 to always fail with ENOSYS. Some functions are actually named
21770 something starting with __ and the normal name is an alias. */
21771 #if defined __stub___fpu_control || defined __stub_____fpu_control
21772 choke me
21773 #endif
21776 main ()
21778 return __fpu_control ();
21780 return 0;
21782 _ACEOF
21783 rm -f conftest.$ac_objext conftest$ac_exeext
21784 if { (ac_try="$ac_link"
21785 case "(($ac_try" in
21786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21787 *) ac_try_echo=$ac_try;;
21788 esac
21789 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21790 (eval "$ac_link") 2>conftest.er1
21791 ac_status=$?
21792 grep -v '^ *+' conftest.er1 >conftest.err
21793 rm -f conftest.er1
21794 cat conftest.err >&5
21795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21796 (exit $ac_status); } && {
21797 test -z "$ac_c_werror_flag" ||
21798 test ! -s conftest.err
21799 } && test -s conftest$ac_exeext &&
21800 $as_test_x conftest$ac_exeext; then
21801 ac_cv_func___fpu_control=yes
21802 else
21803 echo "$as_me: failed program was:" >&5
21804 sed 's/^/| /' conftest.$ac_ext >&5
21806 ac_cv_func___fpu_control=no
21809 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21810 conftest$ac_exeext conftest.$ac_ext
21812 { echo "$as_me:$LINENO: result: $ac_cv_func___fpu_control" >&5
21813 echo "${ECHO_T}$ac_cv_func___fpu_control" >&6; }
21814 if test $ac_cv_func___fpu_control = yes; then
21816 else
21818 { echo "$as_me:$LINENO: checking for __fpu_control in -lieee" >&5
21819 echo $ECHO_N "checking for __fpu_control in -lieee... $ECHO_C" >&6; }
21820 if test "${ac_cv_lib_ieee___fpu_control+set}" = set; then
21821 echo $ECHO_N "(cached) $ECHO_C" >&6
21822 else
21823 ac_check_lib_save_LIBS=$LIBS
21824 LIBS="-lieee $LIBS"
21825 cat >conftest.$ac_ext <<_ACEOF
21826 /* confdefs.h. */
21827 _ACEOF
21828 cat confdefs.h >>conftest.$ac_ext
21829 cat >>conftest.$ac_ext <<_ACEOF
21830 /* end confdefs.h. */
21832 /* Override any GCC internal prototype to avoid an error.
21833 Use char because int might match the return type of a GCC
21834 builtin and then its argument prototype would still apply. */
21835 #ifdef __cplusplus
21836 extern "C"
21837 #endif
21838 char __fpu_control ();
21840 main ()
21842 return __fpu_control ();
21844 return 0;
21846 _ACEOF
21847 rm -f conftest.$ac_objext conftest$ac_exeext
21848 if { (ac_try="$ac_link"
21849 case "(($ac_try" in
21850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21851 *) ac_try_echo=$ac_try;;
21852 esac
21853 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21854 (eval "$ac_link") 2>conftest.er1
21855 ac_status=$?
21856 grep -v '^ *+' conftest.er1 >conftest.err
21857 rm -f conftest.er1
21858 cat conftest.err >&5
21859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21860 (exit $ac_status); } && {
21861 test -z "$ac_c_werror_flag" ||
21862 test ! -s conftest.err
21863 } && test -s conftest$ac_exeext &&
21864 $as_test_x conftest$ac_exeext; then
21865 ac_cv_lib_ieee___fpu_control=yes
21866 else
21867 echo "$as_me: failed program was:" >&5
21868 sed 's/^/| /' conftest.$ac_ext >&5
21870 ac_cv_lib_ieee___fpu_control=no
21873 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21874 conftest$ac_exeext conftest.$ac_ext
21875 LIBS=$ac_check_lib_save_LIBS
21877 { echo "$as_me:$LINENO: result: $ac_cv_lib_ieee___fpu_control" >&5
21878 echo "${ECHO_T}$ac_cv_lib_ieee___fpu_control" >&6; }
21879 if test $ac_cv_lib_ieee___fpu_control = yes; then
21880 cat >>confdefs.h <<_ACEOF
21881 #define HAVE_LIBIEEE 1
21882 _ACEOF
21884 LIBS="-lieee $LIBS"
21892 # Check for --with-fpectl
21893 { echo "$as_me:$LINENO: checking for --with-fpectl" >&5
21894 echo $ECHO_N "checking for --with-fpectl... $ECHO_C" >&6; }
21896 # Check whether --with-fpectl was given.
21897 if test "${with_fpectl+set}" = set; then
21898 withval=$with_fpectl;
21899 if test "$withval" != no
21900 then
21902 cat >>confdefs.h <<\_ACEOF
21903 #define WANT_SIGFPE_HANDLER 1
21904 _ACEOF
21906 { echo "$as_me:$LINENO: result: yes" >&5
21907 echo "${ECHO_T}yes" >&6; }
21908 else { echo "$as_me:$LINENO: result: no" >&5
21909 echo "${ECHO_T}no" >&6; }
21911 else
21912 { echo "$as_me:$LINENO: result: no" >&5
21913 echo "${ECHO_T}no" >&6; }
21917 # check for --with-libm=...
21919 case $ac_sys_system in
21920 Darwin) ;;
21921 BeOS) ;;
21922 *) LIBM=-lm
21923 esac
21924 { echo "$as_me:$LINENO: checking for --with-libm=STRING" >&5
21925 echo $ECHO_N "checking for --with-libm=STRING... $ECHO_C" >&6; }
21927 # Check whether --with-libm was given.
21928 if test "${with_libm+set}" = set; then
21929 withval=$with_libm;
21930 if test "$withval" = no
21931 then LIBM=
21932 { echo "$as_me:$LINENO: result: force LIBM empty" >&5
21933 echo "${ECHO_T}force LIBM empty" >&6; }
21934 elif test "$withval" != yes
21935 then LIBM=$withval
21936 { echo "$as_me:$LINENO: result: set LIBM=\"$withval\"" >&5
21937 echo "${ECHO_T}set LIBM=\"$withval\"" >&6; }
21938 else { { echo "$as_me:$LINENO: error: proper usage is --with-libm=STRING" >&5
21939 echo "$as_me: error: proper usage is --with-libm=STRING" >&2;}
21940 { (exit 1); exit 1; }; }
21942 else
21943 { echo "$as_me:$LINENO: result: default LIBM=\"$LIBM\"" >&5
21944 echo "${ECHO_T}default LIBM=\"$LIBM\"" >&6; }
21948 # check for --with-libc=...
21950 { echo "$as_me:$LINENO: checking for --with-libc=STRING" >&5
21951 echo $ECHO_N "checking for --with-libc=STRING... $ECHO_C" >&6; }
21953 # Check whether --with-libc was given.
21954 if test "${with_libc+set}" = set; then
21955 withval=$with_libc;
21956 if test "$withval" = no
21957 then LIBC=
21958 { echo "$as_me:$LINENO: result: force LIBC empty" >&5
21959 echo "${ECHO_T}force LIBC empty" >&6; }
21960 elif test "$withval" != yes
21961 then LIBC=$withval
21962 { echo "$as_me:$LINENO: result: set LIBC=\"$withval\"" >&5
21963 echo "${ECHO_T}set LIBC=\"$withval\"" >&6; }
21964 else { { echo "$as_me:$LINENO: error: proper usage is --with-libc=STRING" >&5
21965 echo "$as_me: error: proper usage is --with-libc=STRING" >&2;}
21966 { (exit 1); exit 1; }; }
21968 else
21969 { echo "$as_me:$LINENO: result: default LIBC=\"$LIBC\"" >&5
21970 echo "${ECHO_T}default LIBC=\"$LIBC\"" >&6; }
21974 # ************************************
21975 # * Check for mathematical functions *
21976 # ************************************
21978 LIBS_SAVE=$LIBS
21979 LIBS="$LIBS $LIBM"
21981 # Detect whether system arithmetic is subject to x87-style double
21982 # rounding issues. The result of this test has little meaning on non
21983 # IEEE 754 platforms. On IEEE 754, test should return 1 if rounding
21984 # mode is round-to-nearest and double rounding issues are present, and
21985 # 0 otherwise. See http://bugs.python.org/issue2937 for more info.
21986 { echo "$as_me:$LINENO: checking for x87-style double rounding" >&5
21987 echo $ECHO_N "checking for x87-style double rounding... $ECHO_C" >&6; }
21988 if test "${ac_cv_x87_double_rounding+set}" = set; then
21989 echo $ECHO_N "(cached) $ECHO_C" >&6
21990 else
21992 if test "$cross_compiling" = yes; then
21993 ac_cv_x87_double_rounding=no
21994 else
21995 cat >conftest.$ac_ext <<_ACEOF
21996 /* confdefs.h. */
21997 _ACEOF
21998 cat confdefs.h >>conftest.$ac_ext
21999 cat >>conftest.$ac_ext <<_ACEOF
22000 /* end confdefs.h. */
22002 #include <stdlib.h>
22003 #include <math.h>
22004 int main() {
22005 volatile double x, y, z;
22006 /* 1./(1-2**-53) -> 1+2**-52 (correct), 1.0 (double rounding) */
22007 x = 0.99999999999999989; /* 1-2**-53 */
22008 y = 1./x;
22009 if (y != 1.)
22010 exit(0);
22011 /* 1e16+2.99999 -> 1e16+2. (correct), 1e16+4. (double rounding) */
22012 x = 1e16;
22013 y = 2.99999;
22014 z = x + y;
22015 if (z != 1e16+4.)
22016 exit(0);
22017 /* both tests show evidence of double rounding */
22018 exit(1);
22021 _ACEOF
22022 rm -f conftest$ac_exeext
22023 if { (ac_try="$ac_link"
22024 case "(($ac_try" in
22025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22026 *) ac_try_echo=$ac_try;;
22027 esac
22028 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22029 (eval "$ac_link") 2>&5
22030 ac_status=$?
22031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22032 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22033 { (case "(($ac_try" in
22034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22035 *) ac_try_echo=$ac_try;;
22036 esac
22037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22038 (eval "$ac_try") 2>&5
22039 ac_status=$?
22040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22041 (exit $ac_status); }; }; then
22042 ac_cv_x87_double_rounding=no
22043 else
22044 echo "$as_me: program exited with status $ac_status" >&5
22045 echo "$as_me: failed program was:" >&5
22046 sed 's/^/| /' conftest.$ac_ext >&5
22048 ( exit $ac_status )
22049 ac_cv_x87_double_rounding=yes
22051 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22057 { echo "$as_me:$LINENO: result: $ac_cv_x87_double_rounding" >&5
22058 echo "${ECHO_T}$ac_cv_x87_double_rounding" >&6; }
22059 if test "$ac_cv_x87_double_rounding" = yes
22060 then
22062 cat >>confdefs.h <<\_ACEOF
22063 #define X87_DOUBLE_ROUNDING 1
22064 _ACEOF
22068 # Multiprocessing check for broken sem_getvalue
22069 { echo "$as_me:$LINENO: checking for broken sem_getvalue" >&5
22070 echo $ECHO_N "checking for broken sem_getvalue... $ECHO_C" >&6; }
22071 if test "$cross_compiling" = yes; then
22072 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
22073 See \`config.log' for more details." >&5
22074 echo "$as_me: error: cannot run test program while cross compiling
22075 See \`config.log' for more details." >&2;}
22076 { (exit 1); exit 1; }; }
22077 else
22078 cat >conftest.$ac_ext <<_ACEOF
22079 /* confdefs.h. */
22080 _ACEOF
22081 cat confdefs.h >>conftest.$ac_ext
22082 cat >>conftest.$ac_ext <<_ACEOF
22083 /* end confdefs.h. */
22085 #include <unistd.h>
22086 #include <fcntl.h>
22087 #include <stdio.h>
22088 #include <semaphore.h>
22089 #include <sys/stat.h>
22091 int main(void){
22092 sem_t *a = sem_open("/autoconf", O_CREAT, S_IRUSR|S_IWUSR, 0);
22093 int count;
22094 int res;
22095 if(a==SEM_FAILED){
22096 perror("sem_open");
22097 return 1;
22100 res = sem_getvalue(a, &count);
22101 sem_close(a);
22102 return res==-1 ? 1 : 0;
22106 _ACEOF
22107 rm -f conftest$ac_exeext
22108 if { (ac_try="$ac_link"
22109 case "(($ac_try" in
22110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22111 *) ac_try_echo=$ac_try;;
22112 esac
22113 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22114 (eval "$ac_link") 2>&5
22115 ac_status=$?
22116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22117 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22118 { (case "(($ac_try" in
22119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22120 *) ac_try_echo=$ac_try;;
22121 esac
22122 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22123 (eval "$ac_try") 2>&5
22124 ac_status=$?
22125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22126 (exit $ac_status); }; }; then
22127 { echo "$as_me:$LINENO: result: no" >&5
22128 echo "${ECHO_T}no" >&6; }
22129 else
22130 echo "$as_me: program exited with status $ac_status" >&5
22131 echo "$as_me: failed program was:" >&5
22132 sed 's/^/| /' conftest.$ac_ext >&5
22134 ( exit $ac_status )
22135 { echo "$as_me:$LINENO: result: yes" >&5
22136 echo "${ECHO_T}yes" >&6; }
22138 cat >>confdefs.h <<\_ACEOF
22139 #define HAVE_BROKEN_SEM_GETVALUE 1
22140 _ACEOF
22144 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22149 # On FreeBSD 6.2, it appears that tanh(-0.) returns 0. instead of
22150 # -0. on some architectures.
22151 { echo "$as_me:$LINENO: checking whether tanh preserves the sign of zero" >&5
22152 echo $ECHO_N "checking whether tanh preserves the sign of zero... $ECHO_C" >&6; }
22153 if test "${ac_cv_tanh_preserves_zero_sign+set}" = set; then
22154 echo $ECHO_N "(cached) $ECHO_C" >&6
22155 else
22157 if test "$cross_compiling" = yes; then
22158 ac_cv_tanh_preserves_zero_sign=no
22159 else
22160 cat >conftest.$ac_ext <<_ACEOF
22161 /* confdefs.h. */
22162 _ACEOF
22163 cat confdefs.h >>conftest.$ac_ext
22164 cat >>conftest.$ac_ext <<_ACEOF
22165 /* end confdefs.h. */
22167 #include <math.h>
22168 #include <stdlib.h>
22169 int main() {
22170 /* return 0 if either negative zeros don't exist
22171 on this platform or if negative zeros exist
22172 and tanh(-0.) == -0. */
22173 if (atan2(0., -1.) == atan2(-0., -1.) ||
22174 atan2(tanh(-0.), -1.) == atan2(-0., -1.)) exit(0);
22175 else exit(1);
22178 _ACEOF
22179 rm -f conftest$ac_exeext
22180 if { (ac_try="$ac_link"
22181 case "(($ac_try" in
22182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22183 *) ac_try_echo=$ac_try;;
22184 esac
22185 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22186 (eval "$ac_link") 2>&5
22187 ac_status=$?
22188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22189 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22190 { (case "(($ac_try" in
22191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22192 *) ac_try_echo=$ac_try;;
22193 esac
22194 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22195 (eval "$ac_try") 2>&5
22196 ac_status=$?
22197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22198 (exit $ac_status); }; }; then
22199 ac_cv_tanh_preserves_zero_sign=yes
22200 else
22201 echo "$as_me: program exited with status $ac_status" >&5
22202 echo "$as_me: failed program was:" >&5
22203 sed 's/^/| /' conftest.$ac_ext >&5
22205 ( exit $ac_status )
22206 ac_cv_tanh_preserves_zero_sign=no
22208 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22214 { echo "$as_me:$LINENO: result: $ac_cv_tanh_preserves_zero_sign" >&5
22215 echo "${ECHO_T}$ac_cv_tanh_preserves_zero_sign" >&6; }
22216 if test "$ac_cv_tanh_preserves_zero_sign" = yes
22217 then
22219 cat >>confdefs.h <<\_ACEOF
22220 #define TANH_PRESERVES_ZERO_SIGN 1
22221 _ACEOF
22234 for ac_func in acosh asinh atanh copysign expm1 finite hypot log1p round
22236 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22237 { echo "$as_me:$LINENO: checking for $ac_func" >&5
22238 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22239 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22240 echo $ECHO_N "(cached) $ECHO_C" >&6
22241 else
22242 cat >conftest.$ac_ext <<_ACEOF
22243 /* confdefs.h. */
22244 _ACEOF
22245 cat confdefs.h >>conftest.$ac_ext
22246 cat >>conftest.$ac_ext <<_ACEOF
22247 /* end confdefs.h. */
22248 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22249 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22250 #define $ac_func innocuous_$ac_func
22252 /* System header to define __stub macros and hopefully few prototypes,
22253 which can conflict with char $ac_func (); below.
22254 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22255 <limits.h> exists even on freestanding compilers. */
22257 #ifdef __STDC__
22258 # include <limits.h>
22259 #else
22260 # include <assert.h>
22261 #endif
22263 #undef $ac_func
22265 /* Override any GCC internal prototype to avoid an error.
22266 Use char because int might match the return type of a GCC
22267 builtin and then its argument prototype would still apply. */
22268 #ifdef __cplusplus
22269 extern "C"
22270 #endif
22271 char $ac_func ();
22272 /* The GNU C library defines this for functions which it implements
22273 to always fail with ENOSYS. Some functions are actually named
22274 something starting with __ and the normal name is an alias. */
22275 #if defined __stub_$ac_func || defined __stub___$ac_func
22276 choke me
22277 #endif
22280 main ()
22282 return $ac_func ();
22284 return 0;
22286 _ACEOF
22287 rm -f conftest.$ac_objext conftest$ac_exeext
22288 if { (ac_try="$ac_link"
22289 case "(($ac_try" in
22290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22291 *) ac_try_echo=$ac_try;;
22292 esac
22293 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22294 (eval "$ac_link") 2>conftest.er1
22295 ac_status=$?
22296 grep -v '^ *+' conftest.er1 >conftest.err
22297 rm -f conftest.er1
22298 cat conftest.err >&5
22299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22300 (exit $ac_status); } && {
22301 test -z "$ac_c_werror_flag" ||
22302 test ! -s conftest.err
22303 } && test -s conftest$ac_exeext &&
22304 $as_test_x conftest$ac_exeext; then
22305 eval "$as_ac_var=yes"
22306 else
22307 echo "$as_me: failed program was:" >&5
22308 sed 's/^/| /' conftest.$ac_ext >&5
22310 eval "$as_ac_var=no"
22313 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22314 conftest$ac_exeext conftest.$ac_ext
22316 ac_res=`eval echo '${'$as_ac_var'}'`
22317 { echo "$as_me:$LINENO: result: $ac_res" >&5
22318 echo "${ECHO_T}$ac_res" >&6; }
22319 if test `eval echo '${'$as_ac_var'}'` = yes; then
22320 cat >>confdefs.h <<_ACEOF
22321 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22322 _ACEOF
22325 done
22327 { echo "$as_me:$LINENO: checking whether isinf is declared" >&5
22328 echo $ECHO_N "checking whether isinf is declared... $ECHO_C" >&6; }
22329 if test "${ac_cv_have_decl_isinf+set}" = set; then
22330 echo $ECHO_N "(cached) $ECHO_C" >&6
22331 else
22332 cat >conftest.$ac_ext <<_ACEOF
22333 /* confdefs.h. */
22334 _ACEOF
22335 cat confdefs.h >>conftest.$ac_ext
22336 cat >>conftest.$ac_ext <<_ACEOF
22337 /* end confdefs.h. */
22338 #include <math.h>
22341 main ()
22343 #ifndef isinf
22344 (void) isinf;
22345 #endif
22348 return 0;
22350 _ACEOF
22351 rm -f conftest.$ac_objext
22352 if { (ac_try="$ac_compile"
22353 case "(($ac_try" in
22354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22355 *) ac_try_echo=$ac_try;;
22356 esac
22357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22358 (eval "$ac_compile") 2>conftest.er1
22359 ac_status=$?
22360 grep -v '^ *+' conftest.er1 >conftest.err
22361 rm -f conftest.er1
22362 cat conftest.err >&5
22363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22364 (exit $ac_status); } && {
22365 test -z "$ac_c_werror_flag" ||
22366 test ! -s conftest.err
22367 } && test -s conftest.$ac_objext; then
22368 ac_cv_have_decl_isinf=yes
22369 else
22370 echo "$as_me: failed program was:" >&5
22371 sed 's/^/| /' conftest.$ac_ext >&5
22373 ac_cv_have_decl_isinf=no
22376 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22378 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_isinf" >&5
22379 echo "${ECHO_T}$ac_cv_have_decl_isinf" >&6; }
22380 if test $ac_cv_have_decl_isinf = yes; then
22382 cat >>confdefs.h <<_ACEOF
22383 #define HAVE_DECL_ISINF 1
22384 _ACEOF
22387 else
22388 cat >>confdefs.h <<_ACEOF
22389 #define HAVE_DECL_ISINF 0
22390 _ACEOF
22394 { echo "$as_me:$LINENO: checking whether isnan is declared" >&5
22395 echo $ECHO_N "checking whether isnan is declared... $ECHO_C" >&6; }
22396 if test "${ac_cv_have_decl_isnan+set}" = set; then
22397 echo $ECHO_N "(cached) $ECHO_C" >&6
22398 else
22399 cat >conftest.$ac_ext <<_ACEOF
22400 /* confdefs.h. */
22401 _ACEOF
22402 cat confdefs.h >>conftest.$ac_ext
22403 cat >>conftest.$ac_ext <<_ACEOF
22404 /* end confdefs.h. */
22405 #include <math.h>
22408 main ()
22410 #ifndef isnan
22411 (void) isnan;
22412 #endif
22415 return 0;
22417 _ACEOF
22418 rm -f conftest.$ac_objext
22419 if { (ac_try="$ac_compile"
22420 case "(($ac_try" in
22421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22422 *) ac_try_echo=$ac_try;;
22423 esac
22424 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22425 (eval "$ac_compile") 2>conftest.er1
22426 ac_status=$?
22427 grep -v '^ *+' conftest.er1 >conftest.err
22428 rm -f conftest.er1
22429 cat conftest.err >&5
22430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22431 (exit $ac_status); } && {
22432 test -z "$ac_c_werror_flag" ||
22433 test ! -s conftest.err
22434 } && test -s conftest.$ac_objext; then
22435 ac_cv_have_decl_isnan=yes
22436 else
22437 echo "$as_me: failed program was:" >&5
22438 sed 's/^/| /' conftest.$ac_ext >&5
22440 ac_cv_have_decl_isnan=no
22443 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22445 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_isnan" >&5
22446 echo "${ECHO_T}$ac_cv_have_decl_isnan" >&6; }
22447 if test $ac_cv_have_decl_isnan = yes; then
22449 cat >>confdefs.h <<_ACEOF
22450 #define HAVE_DECL_ISNAN 1
22451 _ACEOF
22454 else
22455 cat >>confdefs.h <<_ACEOF
22456 #define HAVE_DECL_ISNAN 0
22457 _ACEOF
22461 { echo "$as_me:$LINENO: checking whether isfinite is declared" >&5
22462 echo $ECHO_N "checking whether isfinite is declared... $ECHO_C" >&6; }
22463 if test "${ac_cv_have_decl_isfinite+set}" = set; then
22464 echo $ECHO_N "(cached) $ECHO_C" >&6
22465 else
22466 cat >conftest.$ac_ext <<_ACEOF
22467 /* confdefs.h. */
22468 _ACEOF
22469 cat confdefs.h >>conftest.$ac_ext
22470 cat >>conftest.$ac_ext <<_ACEOF
22471 /* end confdefs.h. */
22472 #include <math.h>
22475 main ()
22477 #ifndef isfinite
22478 (void) isfinite;
22479 #endif
22482 return 0;
22484 _ACEOF
22485 rm -f conftest.$ac_objext
22486 if { (ac_try="$ac_compile"
22487 case "(($ac_try" in
22488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22489 *) ac_try_echo=$ac_try;;
22490 esac
22491 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22492 (eval "$ac_compile") 2>conftest.er1
22493 ac_status=$?
22494 grep -v '^ *+' conftest.er1 >conftest.err
22495 rm -f conftest.er1
22496 cat conftest.err >&5
22497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22498 (exit $ac_status); } && {
22499 test -z "$ac_c_werror_flag" ||
22500 test ! -s conftest.err
22501 } && test -s conftest.$ac_objext; then
22502 ac_cv_have_decl_isfinite=yes
22503 else
22504 echo "$as_me: failed program was:" >&5
22505 sed 's/^/| /' conftest.$ac_ext >&5
22507 ac_cv_have_decl_isfinite=no
22510 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22512 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_isfinite" >&5
22513 echo "${ECHO_T}$ac_cv_have_decl_isfinite" >&6; }
22514 if test $ac_cv_have_decl_isfinite = yes; then
22516 cat >>confdefs.h <<_ACEOF
22517 #define HAVE_DECL_ISFINITE 1
22518 _ACEOF
22521 else
22522 cat >>confdefs.h <<_ACEOF
22523 #define HAVE_DECL_ISFINITE 0
22524 _ACEOF
22531 LIBS=$LIBS_SAVE
22533 # determine what size digit to use for Python's longs
22534 { echo "$as_me:$LINENO: checking digit size for Python's longs" >&5
22535 echo $ECHO_N "checking digit size for Python's longs... $ECHO_C" >&6; }
22536 # Check whether --enable-big-digits was given.
22537 if test "${enable_big_digits+set}" = set; then
22538 enableval=$enable_big_digits; case $enable_big_digits in
22539 yes)
22540 enable_big_digits=30 ;;
22542 enable_big_digits=15 ;;
22543 15|30)
22546 { { echo "$as_me:$LINENO: error: bad value $enable_big_digits for --enable-big-digits; value should be 15 or 30" >&5
22547 echo "$as_me: error: bad value $enable_big_digits for --enable-big-digits; value should be 15 or 30" >&2;}
22548 { (exit 1); exit 1; }; } ;;
22549 esac
22550 { echo "$as_me:$LINENO: result: $enable_big_digits" >&5
22551 echo "${ECHO_T}$enable_big_digits" >&6; }
22553 cat >>confdefs.h <<_ACEOF
22554 #define PYLONG_BITS_IN_DIGIT $enable_big_digits
22555 _ACEOF
22558 else
22559 { echo "$as_me:$LINENO: result: no value specified" >&5
22560 echo "${ECHO_T}no value specified" >&6; }
22564 # check for wchar.h
22565 if test "${ac_cv_header_wchar_h+set}" = set; then
22566 { echo "$as_me:$LINENO: checking for wchar.h" >&5
22567 echo $ECHO_N "checking for wchar.h... $ECHO_C" >&6; }
22568 if test "${ac_cv_header_wchar_h+set}" = set; then
22569 echo $ECHO_N "(cached) $ECHO_C" >&6
22571 { echo "$as_me:$LINENO: result: $ac_cv_header_wchar_h" >&5
22572 echo "${ECHO_T}$ac_cv_header_wchar_h" >&6; }
22573 else
22574 # Is the header compilable?
22575 { echo "$as_me:$LINENO: checking wchar.h usability" >&5
22576 echo $ECHO_N "checking wchar.h usability... $ECHO_C" >&6; }
22577 cat >conftest.$ac_ext <<_ACEOF
22578 /* confdefs.h. */
22579 _ACEOF
22580 cat confdefs.h >>conftest.$ac_ext
22581 cat >>conftest.$ac_ext <<_ACEOF
22582 /* end confdefs.h. */
22583 $ac_includes_default
22584 #include <wchar.h>
22585 _ACEOF
22586 rm -f conftest.$ac_objext
22587 if { (ac_try="$ac_compile"
22588 case "(($ac_try" in
22589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22590 *) ac_try_echo=$ac_try;;
22591 esac
22592 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22593 (eval "$ac_compile") 2>conftest.er1
22594 ac_status=$?
22595 grep -v '^ *+' conftest.er1 >conftest.err
22596 rm -f conftest.er1
22597 cat conftest.err >&5
22598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22599 (exit $ac_status); } && {
22600 test -z "$ac_c_werror_flag" ||
22601 test ! -s conftest.err
22602 } && test -s conftest.$ac_objext; then
22603 ac_header_compiler=yes
22604 else
22605 echo "$as_me: failed program was:" >&5
22606 sed 's/^/| /' conftest.$ac_ext >&5
22608 ac_header_compiler=no
22611 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22612 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22613 echo "${ECHO_T}$ac_header_compiler" >&6; }
22615 # Is the header present?
22616 { echo "$as_me:$LINENO: checking wchar.h presence" >&5
22617 echo $ECHO_N "checking wchar.h presence... $ECHO_C" >&6; }
22618 cat >conftest.$ac_ext <<_ACEOF
22619 /* confdefs.h. */
22620 _ACEOF
22621 cat confdefs.h >>conftest.$ac_ext
22622 cat >>conftest.$ac_ext <<_ACEOF
22623 /* end confdefs.h. */
22624 #include <wchar.h>
22625 _ACEOF
22626 if { (ac_try="$ac_cpp conftest.$ac_ext"
22627 case "(($ac_try" in
22628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22629 *) ac_try_echo=$ac_try;;
22630 esac
22631 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22632 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22633 ac_status=$?
22634 grep -v '^ *+' conftest.er1 >conftest.err
22635 rm -f conftest.er1
22636 cat conftest.err >&5
22637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22638 (exit $ac_status); } >/dev/null && {
22639 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22640 test ! -s conftest.err
22641 }; then
22642 ac_header_preproc=yes
22643 else
22644 echo "$as_me: failed program was:" >&5
22645 sed 's/^/| /' conftest.$ac_ext >&5
22647 ac_header_preproc=no
22650 rm -f conftest.err conftest.$ac_ext
22651 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22652 echo "${ECHO_T}$ac_header_preproc" >&6; }
22654 # So? What about this header?
22655 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22656 yes:no: )
22657 { echo "$as_me:$LINENO: WARNING: wchar.h: accepted by the compiler, rejected by the preprocessor!" >&5
22658 echo "$as_me: WARNING: wchar.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22659 { echo "$as_me:$LINENO: WARNING: wchar.h: proceeding with the compiler's result" >&5
22660 echo "$as_me: WARNING: wchar.h: proceeding with the compiler's result" >&2;}
22661 ac_header_preproc=yes
22663 no:yes:* )
22664 { echo "$as_me:$LINENO: WARNING: wchar.h: present but cannot be compiled" >&5
22665 echo "$as_me: WARNING: wchar.h: present but cannot be compiled" >&2;}
22666 { echo "$as_me:$LINENO: WARNING: wchar.h: check for missing prerequisite headers?" >&5
22667 echo "$as_me: WARNING: wchar.h: check for missing prerequisite headers?" >&2;}
22668 { echo "$as_me:$LINENO: WARNING: wchar.h: see the Autoconf documentation" >&5
22669 echo "$as_me: WARNING: wchar.h: see the Autoconf documentation" >&2;}
22670 { echo "$as_me:$LINENO: WARNING: wchar.h: section \"Present But Cannot Be Compiled\"" >&5
22671 echo "$as_me: WARNING: wchar.h: section \"Present But Cannot Be Compiled\"" >&2;}
22672 { echo "$as_me:$LINENO: WARNING: wchar.h: proceeding with the preprocessor's result" >&5
22673 echo "$as_me: WARNING: wchar.h: proceeding with the preprocessor's result" >&2;}
22674 { echo "$as_me:$LINENO: WARNING: wchar.h: in the future, the compiler will take precedence" >&5
22675 echo "$as_me: WARNING: wchar.h: in the future, the compiler will take precedence" >&2;}
22676 ( cat <<\_ASBOX
22677 ## ------------------------------------------------ ##
22678 ## Report this to http://www.python.org/python-bugs ##
22679 ## ------------------------------------------------ ##
22680 _ASBOX
22681 ) | sed "s/^/$as_me: WARNING: /" >&2
22683 esac
22684 { echo "$as_me:$LINENO: checking for wchar.h" >&5
22685 echo $ECHO_N "checking for wchar.h... $ECHO_C" >&6; }
22686 if test "${ac_cv_header_wchar_h+set}" = set; then
22687 echo $ECHO_N "(cached) $ECHO_C" >&6
22688 else
22689 ac_cv_header_wchar_h=$ac_header_preproc
22691 { echo "$as_me:$LINENO: result: $ac_cv_header_wchar_h" >&5
22692 echo "${ECHO_T}$ac_cv_header_wchar_h" >&6; }
22695 if test $ac_cv_header_wchar_h = yes; then
22698 cat >>confdefs.h <<\_ACEOF
22699 #define HAVE_WCHAR_H 1
22700 _ACEOF
22702 wchar_h="yes"
22704 else
22705 wchar_h="no"
22711 # determine wchar_t size
22712 if test "$wchar_h" = yes
22713 then
22714 { echo "$as_me:$LINENO: checking for wchar_t" >&5
22715 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6; }
22716 if test "${ac_cv_type_wchar_t+set}" = set; then
22717 echo $ECHO_N "(cached) $ECHO_C" >&6
22718 else
22719 cat >conftest.$ac_ext <<_ACEOF
22720 /* confdefs.h. */
22721 _ACEOF
22722 cat confdefs.h >>conftest.$ac_ext
22723 cat >>conftest.$ac_ext <<_ACEOF
22724 /* end confdefs.h. */
22725 #include <wchar.h>
22727 typedef wchar_t ac__type_new_;
22729 main ()
22731 if ((ac__type_new_ *) 0)
22732 return 0;
22733 if (sizeof (ac__type_new_))
22734 return 0;
22736 return 0;
22738 _ACEOF
22739 rm -f conftest.$ac_objext
22740 if { (ac_try="$ac_compile"
22741 case "(($ac_try" in
22742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22743 *) ac_try_echo=$ac_try;;
22744 esac
22745 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22746 (eval "$ac_compile") 2>conftest.er1
22747 ac_status=$?
22748 grep -v '^ *+' conftest.er1 >conftest.err
22749 rm -f conftest.er1
22750 cat conftest.err >&5
22751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22752 (exit $ac_status); } && {
22753 test -z "$ac_c_werror_flag" ||
22754 test ! -s conftest.err
22755 } && test -s conftest.$ac_objext; then
22756 ac_cv_type_wchar_t=yes
22757 else
22758 echo "$as_me: failed program was:" >&5
22759 sed 's/^/| /' conftest.$ac_ext >&5
22761 ac_cv_type_wchar_t=no
22764 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22766 { echo "$as_me:$LINENO: result: $ac_cv_type_wchar_t" >&5
22767 echo "${ECHO_T}$ac_cv_type_wchar_t" >&6; }
22769 # The cast to long int works around a bug in the HP C Compiler
22770 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22771 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22772 # This bug is HP SR number 8606223364.
22773 { echo "$as_me:$LINENO: checking size of wchar_t" >&5
22774 echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6; }
22775 if test "${ac_cv_sizeof_wchar_t+set}" = set; then
22776 echo $ECHO_N "(cached) $ECHO_C" >&6
22777 else
22778 if test "$cross_compiling" = yes; then
22779 # Depending upon the size, compute the lo and hi bounds.
22780 cat >conftest.$ac_ext <<_ACEOF
22781 /* confdefs.h. */
22782 _ACEOF
22783 cat confdefs.h >>conftest.$ac_ext
22784 cat >>conftest.$ac_ext <<_ACEOF
22785 /* end confdefs.h. */
22786 #include <wchar.h>
22788 typedef wchar_t ac__type_sizeof_;
22790 main ()
22792 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
22793 test_array [0] = 0
22796 return 0;
22798 _ACEOF
22799 rm -f conftest.$ac_objext
22800 if { (ac_try="$ac_compile"
22801 case "(($ac_try" in
22802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22803 *) ac_try_echo=$ac_try;;
22804 esac
22805 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22806 (eval "$ac_compile") 2>conftest.er1
22807 ac_status=$?
22808 grep -v '^ *+' conftest.er1 >conftest.err
22809 rm -f conftest.er1
22810 cat conftest.err >&5
22811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22812 (exit $ac_status); } && {
22813 test -z "$ac_c_werror_flag" ||
22814 test ! -s conftest.err
22815 } && test -s conftest.$ac_objext; then
22816 ac_lo=0 ac_mid=0
22817 while :; do
22818 cat >conftest.$ac_ext <<_ACEOF
22819 /* confdefs.h. */
22820 _ACEOF
22821 cat confdefs.h >>conftest.$ac_ext
22822 cat >>conftest.$ac_ext <<_ACEOF
22823 /* end confdefs.h. */
22824 #include <wchar.h>
22826 typedef wchar_t ac__type_sizeof_;
22828 main ()
22830 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
22831 test_array [0] = 0
22834 return 0;
22836 _ACEOF
22837 rm -f conftest.$ac_objext
22838 if { (ac_try="$ac_compile"
22839 case "(($ac_try" in
22840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22841 *) ac_try_echo=$ac_try;;
22842 esac
22843 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22844 (eval "$ac_compile") 2>conftest.er1
22845 ac_status=$?
22846 grep -v '^ *+' conftest.er1 >conftest.err
22847 rm -f conftest.er1
22848 cat conftest.err >&5
22849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22850 (exit $ac_status); } && {
22851 test -z "$ac_c_werror_flag" ||
22852 test ! -s conftest.err
22853 } && test -s conftest.$ac_objext; then
22854 ac_hi=$ac_mid; break
22855 else
22856 echo "$as_me: failed program was:" >&5
22857 sed 's/^/| /' conftest.$ac_ext >&5
22859 ac_lo=`expr $ac_mid + 1`
22860 if test $ac_lo -le $ac_mid; then
22861 ac_lo= ac_hi=
22862 break
22864 ac_mid=`expr 2 '*' $ac_mid + 1`
22867 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22868 done
22869 else
22870 echo "$as_me: failed program was:" >&5
22871 sed 's/^/| /' conftest.$ac_ext >&5
22873 cat >conftest.$ac_ext <<_ACEOF
22874 /* confdefs.h. */
22875 _ACEOF
22876 cat confdefs.h >>conftest.$ac_ext
22877 cat >>conftest.$ac_ext <<_ACEOF
22878 /* end confdefs.h. */
22879 #include <wchar.h>
22881 typedef wchar_t ac__type_sizeof_;
22883 main ()
22885 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
22886 test_array [0] = 0
22889 return 0;
22891 _ACEOF
22892 rm -f conftest.$ac_objext
22893 if { (ac_try="$ac_compile"
22894 case "(($ac_try" in
22895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22896 *) ac_try_echo=$ac_try;;
22897 esac
22898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22899 (eval "$ac_compile") 2>conftest.er1
22900 ac_status=$?
22901 grep -v '^ *+' conftest.er1 >conftest.err
22902 rm -f conftest.er1
22903 cat conftest.err >&5
22904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22905 (exit $ac_status); } && {
22906 test -z "$ac_c_werror_flag" ||
22907 test ! -s conftest.err
22908 } && test -s conftest.$ac_objext; then
22909 ac_hi=-1 ac_mid=-1
22910 while :; do
22911 cat >conftest.$ac_ext <<_ACEOF
22912 /* confdefs.h. */
22913 _ACEOF
22914 cat confdefs.h >>conftest.$ac_ext
22915 cat >>conftest.$ac_ext <<_ACEOF
22916 /* end confdefs.h. */
22917 #include <wchar.h>
22919 typedef wchar_t ac__type_sizeof_;
22921 main ()
22923 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
22924 test_array [0] = 0
22927 return 0;
22929 _ACEOF
22930 rm -f conftest.$ac_objext
22931 if { (ac_try="$ac_compile"
22932 case "(($ac_try" in
22933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22934 *) ac_try_echo=$ac_try;;
22935 esac
22936 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22937 (eval "$ac_compile") 2>conftest.er1
22938 ac_status=$?
22939 grep -v '^ *+' conftest.er1 >conftest.err
22940 rm -f conftest.er1
22941 cat conftest.err >&5
22942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22943 (exit $ac_status); } && {
22944 test -z "$ac_c_werror_flag" ||
22945 test ! -s conftest.err
22946 } && test -s conftest.$ac_objext; then
22947 ac_lo=$ac_mid; break
22948 else
22949 echo "$as_me: failed program was:" >&5
22950 sed 's/^/| /' conftest.$ac_ext >&5
22952 ac_hi=`expr '(' $ac_mid ')' - 1`
22953 if test $ac_mid -le $ac_hi; then
22954 ac_lo= ac_hi=
22955 break
22957 ac_mid=`expr 2 '*' $ac_mid`
22960 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22961 done
22962 else
22963 echo "$as_me: failed program was:" >&5
22964 sed 's/^/| /' conftest.$ac_ext >&5
22966 ac_lo= ac_hi=
22969 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22972 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22973 # Binary search between lo and hi bounds.
22974 while test "x$ac_lo" != "x$ac_hi"; do
22975 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
22976 cat >conftest.$ac_ext <<_ACEOF
22977 /* confdefs.h. */
22978 _ACEOF
22979 cat confdefs.h >>conftest.$ac_ext
22980 cat >>conftest.$ac_ext <<_ACEOF
22981 /* end confdefs.h. */
22982 #include <wchar.h>
22984 typedef wchar_t ac__type_sizeof_;
22986 main ()
22988 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
22989 test_array [0] = 0
22992 return 0;
22994 _ACEOF
22995 rm -f conftest.$ac_objext
22996 if { (ac_try="$ac_compile"
22997 case "(($ac_try" in
22998 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22999 *) ac_try_echo=$ac_try;;
23000 esac
23001 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23002 (eval "$ac_compile") 2>conftest.er1
23003 ac_status=$?
23004 grep -v '^ *+' conftest.er1 >conftest.err
23005 rm -f conftest.er1
23006 cat conftest.err >&5
23007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23008 (exit $ac_status); } && {
23009 test -z "$ac_c_werror_flag" ||
23010 test ! -s conftest.err
23011 } && test -s conftest.$ac_objext; then
23012 ac_hi=$ac_mid
23013 else
23014 echo "$as_me: failed program was:" >&5
23015 sed 's/^/| /' conftest.$ac_ext >&5
23017 ac_lo=`expr '(' $ac_mid ')' + 1`
23020 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23021 done
23022 case $ac_lo in
23023 ?*) ac_cv_sizeof_wchar_t=$ac_lo;;
23024 '') if test "$ac_cv_type_wchar_t" = yes; then
23025 { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t)
23026 See \`config.log' for more details." >&5
23027 echo "$as_me: error: cannot compute sizeof (wchar_t)
23028 See \`config.log' for more details." >&2;}
23029 { (exit 77); exit 77; }; }
23030 else
23031 ac_cv_sizeof_wchar_t=0
23032 fi ;;
23033 esac
23034 else
23035 cat >conftest.$ac_ext <<_ACEOF
23036 /* confdefs.h. */
23037 _ACEOF
23038 cat confdefs.h >>conftest.$ac_ext
23039 cat >>conftest.$ac_ext <<_ACEOF
23040 /* end confdefs.h. */
23041 #include <wchar.h>
23043 typedef wchar_t ac__type_sizeof_;
23044 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
23045 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
23046 #include <stdio.h>
23047 #include <stdlib.h>
23049 main ()
23052 FILE *f = fopen ("conftest.val", "w");
23053 if (! f)
23054 return 1;
23055 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
23057 long int i = longval ();
23058 if (i != ((long int) (sizeof (ac__type_sizeof_))))
23059 return 1;
23060 fprintf (f, "%ld\n", i);
23062 else
23064 unsigned long int i = ulongval ();
23065 if (i != ((long int) (sizeof (ac__type_sizeof_))))
23066 return 1;
23067 fprintf (f, "%lu\n", i);
23069 return ferror (f) || fclose (f) != 0;
23072 return 0;
23074 _ACEOF
23075 rm -f conftest$ac_exeext
23076 if { (ac_try="$ac_link"
23077 case "(($ac_try" in
23078 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23079 *) ac_try_echo=$ac_try;;
23080 esac
23081 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23082 (eval "$ac_link") 2>&5
23083 ac_status=$?
23084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23085 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23086 { (case "(($ac_try" in
23087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23088 *) ac_try_echo=$ac_try;;
23089 esac
23090 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23091 (eval "$ac_try") 2>&5
23092 ac_status=$?
23093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23094 (exit $ac_status); }; }; then
23095 ac_cv_sizeof_wchar_t=`cat conftest.val`
23096 else
23097 echo "$as_me: program exited with status $ac_status" >&5
23098 echo "$as_me: failed program was:" >&5
23099 sed 's/^/| /' conftest.$ac_ext >&5
23101 ( exit $ac_status )
23102 if test "$ac_cv_type_wchar_t" = yes; then
23103 { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t)
23104 See \`config.log' for more details." >&5
23105 echo "$as_me: error: cannot compute sizeof (wchar_t)
23106 See \`config.log' for more details." >&2;}
23107 { (exit 77); exit 77; }; }
23108 else
23109 ac_cv_sizeof_wchar_t=0
23112 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23114 rm -f conftest.val
23116 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_wchar_t" >&5
23117 echo "${ECHO_T}$ac_cv_sizeof_wchar_t" >&6; }
23121 cat >>confdefs.h <<_ACEOF
23122 #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
23123 _ACEOF
23128 { echo "$as_me:$LINENO: checking for UCS-4 tcl" >&5
23129 echo $ECHO_N "checking for UCS-4 tcl... $ECHO_C" >&6; }
23130 have_ucs4_tcl=no
23131 cat >conftest.$ac_ext <<_ACEOF
23132 /* confdefs.h. */
23133 _ACEOF
23134 cat confdefs.h >>conftest.$ac_ext
23135 cat >>conftest.$ac_ext <<_ACEOF
23136 /* end confdefs.h. */
23138 #include <tcl.h>
23139 #if TCL_UTF_MAX != 6
23140 # error "NOT UCS4_TCL"
23141 #endif
23143 main ()
23147 return 0;
23149 _ACEOF
23150 rm -f conftest.$ac_objext
23151 if { (ac_try="$ac_compile"
23152 case "(($ac_try" in
23153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23154 *) ac_try_echo=$ac_try;;
23155 esac
23156 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23157 (eval "$ac_compile") 2>conftest.er1
23158 ac_status=$?
23159 grep -v '^ *+' conftest.er1 >conftest.err
23160 rm -f conftest.er1
23161 cat conftest.err >&5
23162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23163 (exit $ac_status); } && {
23164 test -z "$ac_c_werror_flag" ||
23165 test ! -s conftest.err
23166 } && test -s conftest.$ac_objext; then
23169 cat >>confdefs.h <<\_ACEOF
23170 #define HAVE_UCS4_TCL 1
23171 _ACEOF
23173 have_ucs4_tcl=yes
23175 else
23176 echo "$as_me: failed program was:" >&5
23177 sed 's/^/| /' conftest.$ac_ext >&5
23182 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23183 { echo "$as_me:$LINENO: result: $have_ucs4_tcl" >&5
23184 echo "${ECHO_T}$have_ucs4_tcl" >&6; }
23186 # check whether wchar_t is signed or not
23187 if test "$wchar_h" = yes
23188 then
23189 # check whether wchar_t is signed or not
23190 { echo "$as_me:$LINENO: checking whether wchar_t is signed" >&5
23191 echo $ECHO_N "checking whether wchar_t is signed... $ECHO_C" >&6; }
23192 if test "${ac_cv_wchar_t_signed+set}" = set; then
23193 echo $ECHO_N "(cached) $ECHO_C" >&6
23194 else
23196 if test "$cross_compiling" = yes; then
23197 ac_cv_wchar_t_signed=yes
23198 else
23199 cat >conftest.$ac_ext <<_ACEOF
23200 /* confdefs.h. */
23201 _ACEOF
23202 cat confdefs.h >>conftest.$ac_ext
23203 cat >>conftest.$ac_ext <<_ACEOF
23204 /* end confdefs.h. */
23206 #include <wchar.h>
23207 int main()
23209 /* Success: exit code 0 */
23210 exit((((wchar_t) -1) < ((wchar_t) 0)) ? 0 : 1);
23213 _ACEOF
23214 rm -f conftest$ac_exeext
23215 if { (ac_try="$ac_link"
23216 case "(($ac_try" in
23217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23218 *) ac_try_echo=$ac_try;;
23219 esac
23220 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23221 (eval "$ac_link") 2>&5
23222 ac_status=$?
23223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23224 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23225 { (case "(($ac_try" in
23226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23227 *) ac_try_echo=$ac_try;;
23228 esac
23229 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23230 (eval "$ac_try") 2>&5
23231 ac_status=$?
23232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23233 (exit $ac_status); }; }; then
23234 ac_cv_wchar_t_signed=yes
23235 else
23236 echo "$as_me: program exited with status $ac_status" >&5
23237 echo "$as_me: failed program was:" >&5
23238 sed 's/^/| /' conftest.$ac_ext >&5
23240 ( exit $ac_status )
23241 ac_cv_wchar_t_signed=no
23243 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23249 { echo "$as_me:$LINENO: result: $ac_cv_wchar_t_signed" >&5
23250 echo "${ECHO_T}$ac_cv_wchar_t_signed" >&6; }
23253 { echo "$as_me:$LINENO: checking what type to use for unicode" >&5
23254 echo $ECHO_N "checking what type to use for unicode... $ECHO_C" >&6; }
23255 # Check whether --enable-unicode was given.
23256 if test "${enable_unicode+set}" = set; then
23257 enableval=$enable_unicode;
23258 else
23259 enable_unicode=yes
23263 if test $enable_unicode = yes
23264 then
23265 # Without any arguments, Py_UNICODE defaults to two-byte mode
23266 case "$have_ucs4_tcl" in
23267 yes) enable_unicode="ucs4"
23269 *) enable_unicode="ucs2"
23271 esac
23276 case "$enable_unicode" in
23277 ucs2) unicode_size="2"
23278 cat >>confdefs.h <<\_ACEOF
23279 #define Py_UNICODE_SIZE 2
23280 _ACEOF
23283 ucs4) unicode_size="4"
23284 cat >>confdefs.h <<\_ACEOF
23285 #define Py_UNICODE_SIZE 4
23286 _ACEOF
23289 esac
23295 if test "$enable_unicode" = "no"
23296 then
23297 UNICODE_OBJS=""
23298 { echo "$as_me:$LINENO: result: not used" >&5
23299 echo "${ECHO_T}not used" >&6; }
23300 else
23301 UNICODE_OBJS="Objects/unicodeobject.o Objects/unicodectype.o"
23303 cat >>confdefs.h <<\_ACEOF
23304 #define Py_USING_UNICODE 1
23305 _ACEOF
23308 # wchar_t is only usable if it maps to an unsigned type
23309 if test "$unicode_size" = "$ac_cv_sizeof_wchar_t" \
23310 -a "$ac_cv_wchar_t_signed" = "no"
23311 then
23312 PY_UNICODE_TYPE="wchar_t"
23314 cat >>confdefs.h <<\_ACEOF
23315 #define HAVE_USABLE_WCHAR_T 1
23316 _ACEOF
23318 cat >>confdefs.h <<\_ACEOF
23319 #define PY_UNICODE_TYPE wchar_t
23320 _ACEOF
23322 elif test "$ac_cv_sizeof_short" = "$unicode_size"
23323 then
23324 PY_UNICODE_TYPE="unsigned short"
23325 cat >>confdefs.h <<\_ACEOF
23326 #define PY_UNICODE_TYPE unsigned short
23327 _ACEOF
23329 elif test "$ac_cv_sizeof_long" = "$unicode_size"
23330 then
23331 PY_UNICODE_TYPE="unsigned long"
23332 cat >>confdefs.h <<\_ACEOF
23333 #define PY_UNICODE_TYPE unsigned long
23334 _ACEOF
23336 else
23337 PY_UNICODE_TYPE="no type found"
23339 { echo "$as_me:$LINENO: result: $PY_UNICODE_TYPE" >&5
23340 echo "${ECHO_T}$PY_UNICODE_TYPE" >&6; }
23343 # check for endianness
23344 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
23345 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
23346 if test "${ac_cv_c_bigendian+set}" = set; then
23347 echo $ECHO_N "(cached) $ECHO_C" >&6
23348 else
23349 # See if sys/param.h defines the BYTE_ORDER macro.
23350 cat >conftest.$ac_ext <<_ACEOF
23351 /* confdefs.h. */
23352 _ACEOF
23353 cat confdefs.h >>conftest.$ac_ext
23354 cat >>conftest.$ac_ext <<_ACEOF
23355 /* end confdefs.h. */
23356 #include <sys/types.h>
23357 #include <sys/param.h>
23360 main ()
23362 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
23363 && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
23364 bogus endian macros
23365 #endif
23368 return 0;
23370 _ACEOF
23371 rm -f conftest.$ac_objext
23372 if { (ac_try="$ac_compile"
23373 case "(($ac_try" in
23374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23375 *) ac_try_echo=$ac_try;;
23376 esac
23377 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23378 (eval "$ac_compile") 2>conftest.er1
23379 ac_status=$?
23380 grep -v '^ *+' conftest.er1 >conftest.err
23381 rm -f conftest.er1
23382 cat conftest.err >&5
23383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23384 (exit $ac_status); } && {
23385 test -z "$ac_c_werror_flag" ||
23386 test ! -s conftest.err
23387 } && test -s conftest.$ac_objext; then
23388 # It does; now see whether it defined to BIG_ENDIAN or not.
23389 cat >conftest.$ac_ext <<_ACEOF
23390 /* confdefs.h. */
23391 _ACEOF
23392 cat confdefs.h >>conftest.$ac_ext
23393 cat >>conftest.$ac_ext <<_ACEOF
23394 /* end confdefs.h. */
23395 #include <sys/types.h>
23396 #include <sys/param.h>
23399 main ()
23401 #if BYTE_ORDER != BIG_ENDIAN
23402 not big endian
23403 #endif
23406 return 0;
23408 _ACEOF
23409 rm -f conftest.$ac_objext
23410 if { (ac_try="$ac_compile"
23411 case "(($ac_try" in
23412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23413 *) ac_try_echo=$ac_try;;
23414 esac
23415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23416 (eval "$ac_compile") 2>conftest.er1
23417 ac_status=$?
23418 grep -v '^ *+' conftest.er1 >conftest.err
23419 rm -f conftest.er1
23420 cat conftest.err >&5
23421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23422 (exit $ac_status); } && {
23423 test -z "$ac_c_werror_flag" ||
23424 test ! -s conftest.err
23425 } && test -s conftest.$ac_objext; then
23426 ac_cv_c_bigendian=yes
23427 else
23428 echo "$as_me: failed program was:" >&5
23429 sed 's/^/| /' conftest.$ac_ext >&5
23431 ac_cv_c_bigendian=no
23434 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23435 else
23436 echo "$as_me: failed program was:" >&5
23437 sed 's/^/| /' conftest.$ac_ext >&5
23439 # It does not; compile a test program.
23440 if test "$cross_compiling" = yes; then
23441 # try to guess the endianness by grepping values into an object file
23442 ac_cv_c_bigendian=unknown
23443 cat >conftest.$ac_ext <<_ACEOF
23444 /* confdefs.h. */
23445 _ACEOF
23446 cat confdefs.h >>conftest.$ac_ext
23447 cat >>conftest.$ac_ext <<_ACEOF
23448 /* end confdefs.h. */
23449 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
23450 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
23451 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
23452 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
23453 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
23454 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
23456 main ()
23458 _ascii (); _ebcdic ();
23460 return 0;
23462 _ACEOF
23463 rm -f conftest.$ac_objext
23464 if { (ac_try="$ac_compile"
23465 case "(($ac_try" in
23466 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23467 *) ac_try_echo=$ac_try;;
23468 esac
23469 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23470 (eval "$ac_compile") 2>conftest.er1
23471 ac_status=$?
23472 grep -v '^ *+' conftest.er1 >conftest.err
23473 rm -f conftest.er1
23474 cat conftest.err >&5
23475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23476 (exit $ac_status); } && {
23477 test -z "$ac_c_werror_flag" ||
23478 test ! -s conftest.err
23479 } && test -s conftest.$ac_objext; then
23480 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
23481 ac_cv_c_bigendian=yes
23483 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
23484 if test "$ac_cv_c_bigendian" = unknown; then
23485 ac_cv_c_bigendian=no
23486 else
23487 # finding both strings is unlikely to happen, but who knows?
23488 ac_cv_c_bigendian=unknown
23491 else
23492 echo "$as_me: failed program was:" >&5
23493 sed 's/^/| /' conftest.$ac_ext >&5
23498 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23499 else
23500 cat >conftest.$ac_ext <<_ACEOF
23501 /* confdefs.h. */
23502 _ACEOF
23503 cat confdefs.h >>conftest.$ac_ext
23504 cat >>conftest.$ac_ext <<_ACEOF
23505 /* end confdefs.h. */
23506 $ac_includes_default
23508 main ()
23511 /* Are we little or big endian? From Harbison&Steele. */
23512 union
23514 long int l;
23515 char c[sizeof (long int)];
23516 } u;
23517 u.l = 1;
23518 return u.c[sizeof (long int) - 1] == 1;
23521 return 0;
23523 _ACEOF
23524 rm -f conftest$ac_exeext
23525 if { (ac_try="$ac_link"
23526 case "(($ac_try" in
23527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23528 *) ac_try_echo=$ac_try;;
23529 esac
23530 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23531 (eval "$ac_link") 2>&5
23532 ac_status=$?
23533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23534 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23535 { (case "(($ac_try" in
23536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23537 *) ac_try_echo=$ac_try;;
23538 esac
23539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23540 (eval "$ac_try") 2>&5
23541 ac_status=$?
23542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23543 (exit $ac_status); }; }; then
23544 ac_cv_c_bigendian=no
23545 else
23546 echo "$as_me: program exited with status $ac_status" >&5
23547 echo "$as_me: failed program was:" >&5
23548 sed 's/^/| /' conftest.$ac_ext >&5
23550 ( exit $ac_status )
23551 ac_cv_c_bigendian=yes
23553 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23559 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23561 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
23562 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
23563 case $ac_cv_c_bigendian in
23564 yes)
23566 cat >>confdefs.h <<\_ACEOF
23567 #define WORDS_BIGENDIAN 1
23568 _ACEOF
23573 { { echo "$as_me:$LINENO: error: unknown endianness
23574 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
23575 echo "$as_me: error: unknown endianness
23576 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
23577 { (exit 1); exit 1; }; } ;;
23578 esac
23581 # Check whether right shifting a negative integer extends the sign bit
23582 # or fills with zeros (like the Cray J90, according to Tim Peters).
23583 { echo "$as_me:$LINENO: checking whether right shift extends the sign bit" >&5
23584 echo $ECHO_N "checking whether right shift extends the sign bit... $ECHO_C" >&6; }
23585 if test "${ac_cv_rshift_extends_sign+set}" = set; then
23586 echo $ECHO_N "(cached) $ECHO_C" >&6
23587 else
23589 if test "$cross_compiling" = yes; then
23590 ac_cv_rshift_extends_sign=yes
23591 else
23592 cat >conftest.$ac_ext <<_ACEOF
23593 /* confdefs.h. */
23594 _ACEOF
23595 cat confdefs.h >>conftest.$ac_ext
23596 cat >>conftest.$ac_ext <<_ACEOF
23597 /* end confdefs.h. */
23599 int main()
23601 exit(((-1)>>3 == -1) ? 0 : 1);
23604 _ACEOF
23605 rm -f conftest$ac_exeext
23606 if { (ac_try="$ac_link"
23607 case "(($ac_try" in
23608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23609 *) ac_try_echo=$ac_try;;
23610 esac
23611 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23612 (eval "$ac_link") 2>&5
23613 ac_status=$?
23614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23615 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23616 { (case "(($ac_try" in
23617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23618 *) ac_try_echo=$ac_try;;
23619 esac
23620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23621 (eval "$ac_try") 2>&5
23622 ac_status=$?
23623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23624 (exit $ac_status); }; }; then
23625 ac_cv_rshift_extends_sign=yes
23626 else
23627 echo "$as_me: program exited with status $ac_status" >&5
23628 echo "$as_me: failed program was:" >&5
23629 sed 's/^/| /' conftest.$ac_ext >&5
23631 ( exit $ac_status )
23632 ac_cv_rshift_extends_sign=no
23634 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23640 { echo "$as_me:$LINENO: result: $ac_cv_rshift_extends_sign" >&5
23641 echo "${ECHO_T}$ac_cv_rshift_extends_sign" >&6; }
23642 if test "$ac_cv_rshift_extends_sign" = no
23643 then
23645 cat >>confdefs.h <<\_ACEOF
23646 #define SIGNED_RIGHT_SHIFT_ZERO_FILLS 1
23647 _ACEOF
23651 # check for getc_unlocked and related locking functions
23652 { echo "$as_me:$LINENO: checking for getc_unlocked() and friends" >&5
23653 echo $ECHO_N "checking for getc_unlocked() and friends... $ECHO_C" >&6; }
23654 if test "${ac_cv_have_getc_unlocked+set}" = set; then
23655 echo $ECHO_N "(cached) $ECHO_C" >&6
23656 else
23658 cat >conftest.$ac_ext <<_ACEOF
23659 /* confdefs.h. */
23660 _ACEOF
23661 cat confdefs.h >>conftest.$ac_ext
23662 cat >>conftest.$ac_ext <<_ACEOF
23663 /* end confdefs.h. */
23664 #include <stdio.h>
23666 main ()
23669 FILE *f = fopen("/dev/null", "r");
23670 flockfile(f);
23671 getc_unlocked(f);
23672 funlockfile(f);
23675 return 0;
23677 _ACEOF
23678 rm -f conftest.$ac_objext conftest$ac_exeext
23679 if { (ac_try="$ac_link"
23680 case "(($ac_try" in
23681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23682 *) ac_try_echo=$ac_try;;
23683 esac
23684 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23685 (eval "$ac_link") 2>conftest.er1
23686 ac_status=$?
23687 grep -v '^ *+' conftest.er1 >conftest.err
23688 rm -f conftest.er1
23689 cat conftest.err >&5
23690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23691 (exit $ac_status); } && {
23692 test -z "$ac_c_werror_flag" ||
23693 test ! -s conftest.err
23694 } && test -s conftest$ac_exeext &&
23695 $as_test_x conftest$ac_exeext; then
23696 ac_cv_have_getc_unlocked=yes
23697 else
23698 echo "$as_me: failed program was:" >&5
23699 sed 's/^/| /' conftest.$ac_ext >&5
23701 ac_cv_have_getc_unlocked=no
23704 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23705 conftest$ac_exeext conftest.$ac_ext
23708 { echo "$as_me:$LINENO: result: $ac_cv_have_getc_unlocked" >&5
23709 echo "${ECHO_T}$ac_cv_have_getc_unlocked" >&6; }
23710 if test "$ac_cv_have_getc_unlocked" = yes
23711 then
23713 cat >>confdefs.h <<\_ACEOF
23714 #define HAVE_GETC_UNLOCKED 1
23715 _ACEOF
23719 # check where readline lives
23720 # save the value of LIBS so we don't actually link Python with readline
23721 LIBS_no_readline=$LIBS
23723 # On some systems we need to link readline to a termcap compatible
23724 # library. NOTE: Keep the precedence of listed libraries synchronised
23725 # with setup.py.
23726 py_cv_lib_readline=no
23727 { echo "$as_me:$LINENO: checking how to link readline libs" >&5
23728 echo $ECHO_N "checking how to link readline libs... $ECHO_C" >&6; }
23729 for py_libtermcap in "" ncursesw ncurses curses termcap; do
23730 if test -z "$py_libtermcap"; then
23731 READLINE_LIBS="-lreadline"
23732 else
23733 READLINE_LIBS="-lreadline -l$py_libtermcap"
23735 LIBS="$READLINE_LIBS $LIBS_no_readline"
23736 cat >conftest.$ac_ext <<_ACEOF
23737 /* confdefs.h. */
23738 _ACEOF
23739 cat confdefs.h >>conftest.$ac_ext
23740 cat >>conftest.$ac_ext <<_ACEOF
23741 /* end confdefs.h. */
23743 /* Override any GCC internal prototype to avoid an error.
23744 Use char because int might match the return type of a GCC
23745 builtin and then its argument prototype would still apply. */
23746 #ifdef __cplusplus
23747 extern "C"
23748 #endif
23749 char readline ();
23751 main ()
23753 return readline ();
23755 return 0;
23757 _ACEOF
23758 rm -f conftest.$ac_objext conftest$ac_exeext
23759 if { (ac_try="$ac_link"
23760 case "(($ac_try" in
23761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23762 *) ac_try_echo=$ac_try;;
23763 esac
23764 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23765 (eval "$ac_link") 2>conftest.er1
23766 ac_status=$?
23767 grep -v '^ *+' conftest.er1 >conftest.err
23768 rm -f conftest.er1
23769 cat conftest.err >&5
23770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23771 (exit $ac_status); } && {
23772 test -z "$ac_c_werror_flag" ||
23773 test ! -s conftest.err
23774 } && test -s conftest$ac_exeext &&
23775 $as_test_x conftest$ac_exeext; then
23776 py_cv_lib_readline=yes
23777 else
23778 echo "$as_me: failed program was:" >&5
23779 sed 's/^/| /' conftest.$ac_ext >&5
23784 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23785 conftest$ac_exeext conftest.$ac_ext
23786 if test $py_cv_lib_readline = yes; then
23787 break
23789 done
23790 # Uncomment this line if you want to use READINE_LIBS in Makefile or scripts
23791 #AC_SUBST([READLINE_LIBS])
23792 if test $py_cv_lib_readline = no; then
23793 { echo "$as_me:$LINENO: result: none" >&5
23794 echo "${ECHO_T}none" >&6; }
23795 else
23796 { echo "$as_me:$LINENO: result: $READLINE_LIBS" >&5
23797 echo "${ECHO_T}$READLINE_LIBS" >&6; }
23799 cat >>confdefs.h <<\_ACEOF
23800 #define HAVE_LIBREADLINE 1
23801 _ACEOF
23805 # check for readline 2.1
23806 { echo "$as_me:$LINENO: checking for rl_callback_handler_install in -lreadline" >&5
23807 echo $ECHO_N "checking for rl_callback_handler_install in -lreadline... $ECHO_C" >&6; }
23808 if test "${ac_cv_lib_readline_rl_callback_handler_install+set}" = set; then
23809 echo $ECHO_N "(cached) $ECHO_C" >&6
23810 else
23811 ac_check_lib_save_LIBS=$LIBS
23812 LIBS="-lreadline $READLINE_LIBS $LIBS"
23813 cat >conftest.$ac_ext <<_ACEOF
23814 /* confdefs.h. */
23815 _ACEOF
23816 cat confdefs.h >>conftest.$ac_ext
23817 cat >>conftest.$ac_ext <<_ACEOF
23818 /* end confdefs.h. */
23820 /* Override any GCC internal prototype to avoid an error.
23821 Use char because int might match the return type of a GCC
23822 builtin and then its argument prototype would still apply. */
23823 #ifdef __cplusplus
23824 extern "C"
23825 #endif
23826 char rl_callback_handler_install ();
23828 main ()
23830 return rl_callback_handler_install ();
23832 return 0;
23834 _ACEOF
23835 rm -f conftest.$ac_objext conftest$ac_exeext
23836 if { (ac_try="$ac_link"
23837 case "(($ac_try" in
23838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23839 *) ac_try_echo=$ac_try;;
23840 esac
23841 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23842 (eval "$ac_link") 2>conftest.er1
23843 ac_status=$?
23844 grep -v '^ *+' conftest.er1 >conftest.err
23845 rm -f conftest.er1
23846 cat conftest.err >&5
23847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23848 (exit $ac_status); } && {
23849 test -z "$ac_c_werror_flag" ||
23850 test ! -s conftest.err
23851 } && test -s conftest$ac_exeext &&
23852 $as_test_x conftest$ac_exeext; then
23853 ac_cv_lib_readline_rl_callback_handler_install=yes
23854 else
23855 echo "$as_me: failed program was:" >&5
23856 sed 's/^/| /' conftest.$ac_ext >&5
23858 ac_cv_lib_readline_rl_callback_handler_install=no
23861 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23862 conftest$ac_exeext conftest.$ac_ext
23863 LIBS=$ac_check_lib_save_LIBS
23865 { echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_callback_handler_install" >&5
23866 echo "${ECHO_T}$ac_cv_lib_readline_rl_callback_handler_install" >&6; }
23867 if test $ac_cv_lib_readline_rl_callback_handler_install = yes; then
23869 cat >>confdefs.h <<\_ACEOF
23870 #define HAVE_RL_CALLBACK 1
23871 _ACEOF
23876 # check for readline 2.2
23877 cat >conftest.$ac_ext <<_ACEOF
23878 /* confdefs.h. */
23879 _ACEOF
23880 cat confdefs.h >>conftest.$ac_ext
23881 cat >>conftest.$ac_ext <<_ACEOF
23882 /* end confdefs.h. */
23883 #include <readline/readline.h>
23884 _ACEOF
23885 if { (ac_try="$ac_cpp conftest.$ac_ext"
23886 case "(($ac_try" in
23887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23888 *) ac_try_echo=$ac_try;;
23889 esac
23890 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23891 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23892 ac_status=$?
23893 grep -v '^ *+' conftest.er1 >conftest.err
23894 rm -f conftest.er1
23895 cat conftest.err >&5
23896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23897 (exit $ac_status); } >/dev/null && {
23898 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23899 test ! -s conftest.err
23900 }; then
23901 have_readline=yes
23902 else
23903 echo "$as_me: failed program was:" >&5
23904 sed 's/^/| /' conftest.$ac_ext >&5
23906 have_readline=no
23909 rm -f conftest.err conftest.$ac_ext
23910 if test $have_readline = yes
23911 then
23912 cat >conftest.$ac_ext <<_ACEOF
23913 /* confdefs.h. */
23914 _ACEOF
23915 cat confdefs.h >>conftest.$ac_ext
23916 cat >>conftest.$ac_ext <<_ACEOF
23917 /* end confdefs.h. */
23918 #include <readline/readline.h>
23920 _ACEOF
23921 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23922 $EGREP "extern int rl_completion_append_character;" >/dev/null 2>&1; then
23924 cat >>confdefs.h <<\_ACEOF
23925 #define HAVE_RL_COMPLETION_APPEND_CHARACTER 1
23926 _ACEOF
23929 rm -f conftest*
23933 # check for readline 4.0
23934 { echo "$as_me:$LINENO: checking for rl_pre_input_hook in -lreadline" >&5
23935 echo $ECHO_N "checking for rl_pre_input_hook in -lreadline... $ECHO_C" >&6; }
23936 if test "${ac_cv_lib_readline_rl_pre_input_hook+set}" = set; then
23937 echo $ECHO_N "(cached) $ECHO_C" >&6
23938 else
23939 ac_check_lib_save_LIBS=$LIBS
23940 LIBS="-lreadline $READLINE_LIBS $LIBS"
23941 cat >conftest.$ac_ext <<_ACEOF
23942 /* confdefs.h. */
23943 _ACEOF
23944 cat confdefs.h >>conftest.$ac_ext
23945 cat >>conftest.$ac_ext <<_ACEOF
23946 /* end confdefs.h. */
23948 /* Override any GCC internal prototype to avoid an error.
23949 Use char because int might match the return type of a GCC
23950 builtin and then its argument prototype would still apply. */
23951 #ifdef __cplusplus
23952 extern "C"
23953 #endif
23954 char rl_pre_input_hook ();
23956 main ()
23958 return rl_pre_input_hook ();
23960 return 0;
23962 _ACEOF
23963 rm -f conftest.$ac_objext conftest$ac_exeext
23964 if { (ac_try="$ac_link"
23965 case "(($ac_try" in
23966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23967 *) ac_try_echo=$ac_try;;
23968 esac
23969 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23970 (eval "$ac_link") 2>conftest.er1
23971 ac_status=$?
23972 grep -v '^ *+' conftest.er1 >conftest.err
23973 rm -f conftest.er1
23974 cat conftest.err >&5
23975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23976 (exit $ac_status); } && {
23977 test -z "$ac_c_werror_flag" ||
23978 test ! -s conftest.err
23979 } && test -s conftest$ac_exeext &&
23980 $as_test_x conftest$ac_exeext; then
23981 ac_cv_lib_readline_rl_pre_input_hook=yes
23982 else
23983 echo "$as_me: failed program was:" >&5
23984 sed 's/^/| /' conftest.$ac_ext >&5
23986 ac_cv_lib_readline_rl_pre_input_hook=no
23989 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23990 conftest$ac_exeext conftest.$ac_ext
23991 LIBS=$ac_check_lib_save_LIBS
23993 { echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_pre_input_hook" >&5
23994 echo "${ECHO_T}$ac_cv_lib_readline_rl_pre_input_hook" >&6; }
23995 if test $ac_cv_lib_readline_rl_pre_input_hook = yes; then
23997 cat >>confdefs.h <<\_ACEOF
23998 #define HAVE_RL_PRE_INPUT_HOOK 1
23999 _ACEOF
24004 # also in 4.0
24005 { echo "$as_me:$LINENO: checking for rl_completion_display_matches_hook in -lreadline" >&5
24006 echo $ECHO_N "checking for rl_completion_display_matches_hook in -lreadline... $ECHO_C" >&6; }
24007 if test "${ac_cv_lib_readline_rl_completion_display_matches_hook+set}" = set; then
24008 echo $ECHO_N "(cached) $ECHO_C" >&6
24009 else
24010 ac_check_lib_save_LIBS=$LIBS
24011 LIBS="-lreadline $READLINE_LIBS $LIBS"
24012 cat >conftest.$ac_ext <<_ACEOF
24013 /* confdefs.h. */
24014 _ACEOF
24015 cat confdefs.h >>conftest.$ac_ext
24016 cat >>conftest.$ac_ext <<_ACEOF
24017 /* end confdefs.h. */
24019 /* Override any GCC internal prototype to avoid an error.
24020 Use char because int might match the return type of a GCC
24021 builtin and then its argument prototype would still apply. */
24022 #ifdef __cplusplus
24023 extern "C"
24024 #endif
24025 char rl_completion_display_matches_hook ();
24027 main ()
24029 return rl_completion_display_matches_hook ();
24031 return 0;
24033 _ACEOF
24034 rm -f conftest.$ac_objext conftest$ac_exeext
24035 if { (ac_try="$ac_link"
24036 case "(($ac_try" in
24037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24038 *) ac_try_echo=$ac_try;;
24039 esac
24040 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24041 (eval "$ac_link") 2>conftest.er1
24042 ac_status=$?
24043 grep -v '^ *+' conftest.er1 >conftest.err
24044 rm -f conftest.er1
24045 cat conftest.err >&5
24046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24047 (exit $ac_status); } && {
24048 test -z "$ac_c_werror_flag" ||
24049 test ! -s conftest.err
24050 } && test -s conftest$ac_exeext &&
24051 $as_test_x conftest$ac_exeext; then
24052 ac_cv_lib_readline_rl_completion_display_matches_hook=yes
24053 else
24054 echo "$as_me: failed program was:" >&5
24055 sed 's/^/| /' conftest.$ac_ext >&5
24057 ac_cv_lib_readline_rl_completion_display_matches_hook=no
24060 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24061 conftest$ac_exeext conftest.$ac_ext
24062 LIBS=$ac_check_lib_save_LIBS
24064 { echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_completion_display_matches_hook" >&5
24065 echo "${ECHO_T}$ac_cv_lib_readline_rl_completion_display_matches_hook" >&6; }
24066 if test $ac_cv_lib_readline_rl_completion_display_matches_hook = yes; then
24068 cat >>confdefs.h <<\_ACEOF
24069 #define HAVE_RL_COMPLETION_DISPLAY_MATCHES_HOOK 1
24070 _ACEOF
24075 # check for readline 4.2
24076 { echo "$as_me:$LINENO: checking for rl_completion_matches in -lreadline" >&5
24077 echo $ECHO_N "checking for rl_completion_matches in -lreadline... $ECHO_C" >&6; }
24078 if test "${ac_cv_lib_readline_rl_completion_matches+set}" = set; then
24079 echo $ECHO_N "(cached) $ECHO_C" >&6
24080 else
24081 ac_check_lib_save_LIBS=$LIBS
24082 LIBS="-lreadline $READLINE_LIBS $LIBS"
24083 cat >conftest.$ac_ext <<_ACEOF
24084 /* confdefs.h. */
24085 _ACEOF
24086 cat confdefs.h >>conftest.$ac_ext
24087 cat >>conftest.$ac_ext <<_ACEOF
24088 /* end confdefs.h. */
24090 /* Override any GCC internal prototype to avoid an error.
24091 Use char because int might match the return type of a GCC
24092 builtin and then its argument prototype would still apply. */
24093 #ifdef __cplusplus
24094 extern "C"
24095 #endif
24096 char rl_completion_matches ();
24098 main ()
24100 return rl_completion_matches ();
24102 return 0;
24104 _ACEOF
24105 rm -f conftest.$ac_objext conftest$ac_exeext
24106 if { (ac_try="$ac_link"
24107 case "(($ac_try" in
24108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24109 *) ac_try_echo=$ac_try;;
24110 esac
24111 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24112 (eval "$ac_link") 2>conftest.er1
24113 ac_status=$?
24114 grep -v '^ *+' conftest.er1 >conftest.err
24115 rm -f conftest.er1
24116 cat conftest.err >&5
24117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24118 (exit $ac_status); } && {
24119 test -z "$ac_c_werror_flag" ||
24120 test ! -s conftest.err
24121 } && test -s conftest$ac_exeext &&
24122 $as_test_x conftest$ac_exeext; then
24123 ac_cv_lib_readline_rl_completion_matches=yes
24124 else
24125 echo "$as_me: failed program was:" >&5
24126 sed 's/^/| /' conftest.$ac_ext >&5
24128 ac_cv_lib_readline_rl_completion_matches=no
24131 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24132 conftest$ac_exeext conftest.$ac_ext
24133 LIBS=$ac_check_lib_save_LIBS
24135 { echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_completion_matches" >&5
24136 echo "${ECHO_T}$ac_cv_lib_readline_rl_completion_matches" >&6; }
24137 if test $ac_cv_lib_readline_rl_completion_matches = yes; then
24139 cat >>confdefs.h <<\_ACEOF
24140 #define HAVE_RL_COMPLETION_MATCHES 1
24141 _ACEOF
24146 # also in readline 4.2
24147 cat >conftest.$ac_ext <<_ACEOF
24148 /* confdefs.h. */
24149 _ACEOF
24150 cat confdefs.h >>conftest.$ac_ext
24151 cat >>conftest.$ac_ext <<_ACEOF
24152 /* end confdefs.h. */
24153 #include <readline/readline.h>
24154 _ACEOF
24155 if { (ac_try="$ac_cpp conftest.$ac_ext"
24156 case "(($ac_try" in
24157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24158 *) ac_try_echo=$ac_try;;
24159 esac
24160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24161 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24162 ac_status=$?
24163 grep -v '^ *+' conftest.er1 >conftest.err
24164 rm -f conftest.er1
24165 cat conftest.err >&5
24166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24167 (exit $ac_status); } >/dev/null && {
24168 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24169 test ! -s conftest.err
24170 }; then
24171 have_readline=yes
24172 else
24173 echo "$as_me: failed program was:" >&5
24174 sed 's/^/| /' conftest.$ac_ext >&5
24176 have_readline=no
24179 rm -f conftest.err conftest.$ac_ext
24180 if test $have_readline = yes
24181 then
24182 cat >conftest.$ac_ext <<_ACEOF
24183 /* confdefs.h. */
24184 _ACEOF
24185 cat confdefs.h >>conftest.$ac_ext
24186 cat >>conftest.$ac_ext <<_ACEOF
24187 /* end confdefs.h. */
24188 #include <readline/readline.h>
24190 _ACEOF
24191 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24192 $EGREP "extern int rl_catch_signals;" >/dev/null 2>&1; then
24194 cat >>confdefs.h <<\_ACEOF
24195 #define HAVE_RL_CATCH_SIGNAL 1
24196 _ACEOF
24199 rm -f conftest*
24203 # End of readline checks: restore LIBS
24204 LIBS=$LIBS_no_readline
24206 { echo "$as_me:$LINENO: checking for broken nice()" >&5
24207 echo $ECHO_N "checking for broken nice()... $ECHO_C" >&6; }
24208 if test "${ac_cv_broken_nice+set}" = set; then
24209 echo $ECHO_N "(cached) $ECHO_C" >&6
24210 else
24212 if test "$cross_compiling" = yes; then
24213 ac_cv_broken_nice=no
24214 else
24215 cat >conftest.$ac_ext <<_ACEOF
24216 /* confdefs.h. */
24217 _ACEOF
24218 cat confdefs.h >>conftest.$ac_ext
24219 cat >>conftest.$ac_ext <<_ACEOF
24220 /* end confdefs.h. */
24222 int main()
24224 int val1 = nice(1);
24225 if (val1 != -1 && val1 == nice(2))
24226 exit(0);
24227 exit(1);
24230 _ACEOF
24231 rm -f conftest$ac_exeext
24232 if { (ac_try="$ac_link"
24233 case "(($ac_try" in
24234 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24235 *) ac_try_echo=$ac_try;;
24236 esac
24237 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24238 (eval "$ac_link") 2>&5
24239 ac_status=$?
24240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24241 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24242 { (case "(($ac_try" in
24243 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24244 *) ac_try_echo=$ac_try;;
24245 esac
24246 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24247 (eval "$ac_try") 2>&5
24248 ac_status=$?
24249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24250 (exit $ac_status); }; }; then
24251 ac_cv_broken_nice=yes
24252 else
24253 echo "$as_me: program exited with status $ac_status" >&5
24254 echo "$as_me: failed program was:" >&5
24255 sed 's/^/| /' conftest.$ac_ext >&5
24257 ( exit $ac_status )
24258 ac_cv_broken_nice=no
24260 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24266 { echo "$as_me:$LINENO: result: $ac_cv_broken_nice" >&5
24267 echo "${ECHO_T}$ac_cv_broken_nice" >&6; }
24268 if test "$ac_cv_broken_nice" = yes
24269 then
24271 cat >>confdefs.h <<\_ACEOF
24272 #define HAVE_BROKEN_NICE 1
24273 _ACEOF
24277 { echo "$as_me:$LINENO: checking for broken poll()" >&5
24278 echo $ECHO_N "checking for broken poll()... $ECHO_C" >&6; }
24279 if test "$cross_compiling" = yes; then
24280 ac_cv_broken_poll=no
24281 else
24282 cat >conftest.$ac_ext <<_ACEOF
24283 /* confdefs.h. */
24284 _ACEOF
24285 cat confdefs.h >>conftest.$ac_ext
24286 cat >>conftest.$ac_ext <<_ACEOF
24287 /* end confdefs.h. */
24289 #include <poll.h>
24291 int main (void)
24293 struct pollfd poll_struct = { 42, POLLIN|POLLPRI|POLLOUT, 0 };
24295 close (42);
24297 int poll_test = poll (&poll_struct, 1, 0);
24299 if (poll_test < 0)
24301 exit(0);
24303 else if (poll_test == 0 && poll_struct.revents != POLLNVAL)
24305 exit(0);
24307 else
24309 exit(1);
24313 _ACEOF
24314 rm -f conftest$ac_exeext
24315 if { (ac_try="$ac_link"
24316 case "(($ac_try" in
24317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24318 *) ac_try_echo=$ac_try;;
24319 esac
24320 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24321 (eval "$ac_link") 2>&5
24322 ac_status=$?
24323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24324 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24325 { (case "(($ac_try" in
24326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24327 *) ac_try_echo=$ac_try;;
24328 esac
24329 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24330 (eval "$ac_try") 2>&5
24331 ac_status=$?
24332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24333 (exit $ac_status); }; }; then
24334 ac_cv_broken_poll=yes
24335 else
24336 echo "$as_me: program exited with status $ac_status" >&5
24337 echo "$as_me: failed program was:" >&5
24338 sed 's/^/| /' conftest.$ac_ext >&5
24340 ( exit $ac_status )
24341 ac_cv_broken_poll=no
24343 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24347 { echo "$as_me:$LINENO: result: $ac_cv_broken_poll" >&5
24348 echo "${ECHO_T}$ac_cv_broken_poll" >&6; }
24349 if test "$ac_cv_broken_poll" = yes
24350 then
24352 cat >>confdefs.h <<\_ACEOF
24353 #define HAVE_BROKEN_POLL 1
24354 _ACEOF
24358 # Before we can test tzset, we need to check if struct tm has a tm_zone
24359 # (which is not required by ISO C or UNIX spec) and/or if we support
24360 # tzname[]
24361 { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
24362 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
24363 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
24364 echo $ECHO_N "(cached) $ECHO_C" >&6
24365 else
24366 cat >conftest.$ac_ext <<_ACEOF
24367 /* confdefs.h. */
24368 _ACEOF
24369 cat confdefs.h >>conftest.$ac_ext
24370 cat >>conftest.$ac_ext <<_ACEOF
24371 /* end confdefs.h. */
24372 #include <sys/types.h>
24373 #include <$ac_cv_struct_tm>
24377 main ()
24379 static struct tm ac_aggr;
24380 if (ac_aggr.tm_zone)
24381 return 0;
24383 return 0;
24385 _ACEOF
24386 rm -f conftest.$ac_objext
24387 if { (ac_try="$ac_compile"
24388 case "(($ac_try" in
24389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24390 *) ac_try_echo=$ac_try;;
24391 esac
24392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24393 (eval "$ac_compile") 2>conftest.er1
24394 ac_status=$?
24395 grep -v '^ *+' conftest.er1 >conftest.err
24396 rm -f conftest.er1
24397 cat conftest.err >&5
24398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24399 (exit $ac_status); } && {
24400 test -z "$ac_c_werror_flag" ||
24401 test ! -s conftest.err
24402 } && test -s conftest.$ac_objext; then
24403 ac_cv_member_struct_tm_tm_zone=yes
24404 else
24405 echo "$as_me: failed program was:" >&5
24406 sed 's/^/| /' conftest.$ac_ext >&5
24408 cat >conftest.$ac_ext <<_ACEOF
24409 /* confdefs.h. */
24410 _ACEOF
24411 cat confdefs.h >>conftest.$ac_ext
24412 cat >>conftest.$ac_ext <<_ACEOF
24413 /* end confdefs.h. */
24414 #include <sys/types.h>
24415 #include <$ac_cv_struct_tm>
24419 main ()
24421 static struct tm ac_aggr;
24422 if (sizeof ac_aggr.tm_zone)
24423 return 0;
24425 return 0;
24427 _ACEOF
24428 rm -f conftest.$ac_objext
24429 if { (ac_try="$ac_compile"
24430 case "(($ac_try" in
24431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24432 *) ac_try_echo=$ac_try;;
24433 esac
24434 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24435 (eval "$ac_compile") 2>conftest.er1
24436 ac_status=$?
24437 grep -v '^ *+' conftest.er1 >conftest.err
24438 rm -f conftest.er1
24439 cat conftest.err >&5
24440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24441 (exit $ac_status); } && {
24442 test -z "$ac_c_werror_flag" ||
24443 test ! -s conftest.err
24444 } && test -s conftest.$ac_objext; then
24445 ac_cv_member_struct_tm_tm_zone=yes
24446 else
24447 echo "$as_me: failed program was:" >&5
24448 sed 's/^/| /' conftest.$ac_ext >&5
24450 ac_cv_member_struct_tm_tm_zone=no
24453 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24456 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24458 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
24459 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
24460 if test $ac_cv_member_struct_tm_tm_zone = yes; then
24462 cat >>confdefs.h <<_ACEOF
24463 #define HAVE_STRUCT_TM_TM_ZONE 1
24464 _ACEOF
24469 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
24471 cat >>confdefs.h <<\_ACEOF
24472 #define HAVE_TM_ZONE 1
24473 _ACEOF
24475 else
24476 { echo "$as_me:$LINENO: checking whether tzname is declared" >&5
24477 echo $ECHO_N "checking whether tzname is declared... $ECHO_C" >&6; }
24478 if test "${ac_cv_have_decl_tzname+set}" = set; then
24479 echo $ECHO_N "(cached) $ECHO_C" >&6
24480 else
24481 cat >conftest.$ac_ext <<_ACEOF
24482 /* confdefs.h. */
24483 _ACEOF
24484 cat confdefs.h >>conftest.$ac_ext
24485 cat >>conftest.$ac_ext <<_ACEOF
24486 /* end confdefs.h. */
24487 #include <time.h>
24490 main ()
24492 #ifndef tzname
24493 (void) tzname;
24494 #endif
24497 return 0;
24499 _ACEOF
24500 rm -f conftest.$ac_objext
24501 if { (ac_try="$ac_compile"
24502 case "(($ac_try" in
24503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24504 *) ac_try_echo=$ac_try;;
24505 esac
24506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24507 (eval "$ac_compile") 2>conftest.er1
24508 ac_status=$?
24509 grep -v '^ *+' conftest.er1 >conftest.err
24510 rm -f conftest.er1
24511 cat conftest.err >&5
24512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24513 (exit $ac_status); } && {
24514 test -z "$ac_c_werror_flag" ||
24515 test ! -s conftest.err
24516 } && test -s conftest.$ac_objext; then
24517 ac_cv_have_decl_tzname=yes
24518 else
24519 echo "$as_me: failed program was:" >&5
24520 sed 's/^/| /' conftest.$ac_ext >&5
24522 ac_cv_have_decl_tzname=no
24525 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24527 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
24528 echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; }
24529 if test $ac_cv_have_decl_tzname = yes; then
24531 cat >>confdefs.h <<_ACEOF
24532 #define HAVE_DECL_TZNAME 1
24533 _ACEOF
24536 else
24537 cat >>confdefs.h <<_ACEOF
24538 #define HAVE_DECL_TZNAME 0
24539 _ACEOF
24545 { echo "$as_me:$LINENO: checking for tzname" >&5
24546 echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
24547 if test "${ac_cv_var_tzname+set}" = set; then
24548 echo $ECHO_N "(cached) $ECHO_C" >&6
24549 else
24550 cat >conftest.$ac_ext <<_ACEOF
24551 /* confdefs.h. */
24552 _ACEOF
24553 cat confdefs.h >>conftest.$ac_ext
24554 cat >>conftest.$ac_ext <<_ACEOF
24555 /* end confdefs.h. */
24556 #include <time.h>
24557 #if !HAVE_DECL_TZNAME
24558 extern char *tzname[];
24559 #endif
24562 main ()
24564 return tzname[0][0];
24566 return 0;
24568 _ACEOF
24569 rm -f conftest.$ac_objext conftest$ac_exeext
24570 if { (ac_try="$ac_link"
24571 case "(($ac_try" in
24572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24573 *) ac_try_echo=$ac_try;;
24574 esac
24575 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24576 (eval "$ac_link") 2>conftest.er1
24577 ac_status=$?
24578 grep -v '^ *+' conftest.er1 >conftest.err
24579 rm -f conftest.er1
24580 cat conftest.err >&5
24581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24582 (exit $ac_status); } && {
24583 test -z "$ac_c_werror_flag" ||
24584 test ! -s conftest.err
24585 } && test -s conftest$ac_exeext &&
24586 $as_test_x conftest$ac_exeext; then
24587 ac_cv_var_tzname=yes
24588 else
24589 echo "$as_me: failed program was:" >&5
24590 sed 's/^/| /' conftest.$ac_ext >&5
24592 ac_cv_var_tzname=no
24595 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24596 conftest$ac_exeext conftest.$ac_ext
24598 { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
24599 echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
24600 if test $ac_cv_var_tzname = yes; then
24602 cat >>confdefs.h <<\_ACEOF
24603 #define HAVE_TZNAME 1
24604 _ACEOF
24610 # check tzset(3) exists and works like we expect it to
24611 { echo "$as_me:$LINENO: checking for working tzset()" >&5
24612 echo $ECHO_N "checking for working tzset()... $ECHO_C" >&6; }
24613 if test "${ac_cv_working_tzset+set}" = set; then
24614 echo $ECHO_N "(cached) $ECHO_C" >&6
24615 else
24617 if test "$cross_compiling" = yes; then
24618 ac_cv_working_tzset=no
24619 else
24620 cat >conftest.$ac_ext <<_ACEOF
24621 /* confdefs.h. */
24622 _ACEOF
24623 cat confdefs.h >>conftest.$ac_ext
24624 cat >>conftest.$ac_ext <<_ACEOF
24625 /* end confdefs.h. */
24627 #include <stdlib.h>
24628 #include <time.h>
24629 #include <string.h>
24631 #if HAVE_TZNAME
24632 extern char *tzname[];
24633 #endif
24635 int main()
24637 /* Note that we need to ensure that not only does tzset(3)
24638 do 'something' with localtime, but it works as documented
24639 in the library reference and as expected by the test suite.
24640 This includes making sure that tzname is set properly if
24641 tm->tm_zone does not exist since it is the alternative way
24642 of getting timezone info.
24644 Red Hat 6.2 doesn't understand the southern hemisphere
24645 after New Year's Day.
24648 time_t groundhogday = 1044144000; /* GMT-based */
24649 time_t midyear = groundhogday + (365 * 24 * 3600 / 2);
24651 putenv("TZ=UTC+0");
24652 tzset();
24653 if (localtime(&groundhogday)->tm_hour != 0)
24654 exit(1);
24655 #if HAVE_TZNAME
24656 /* For UTC, tzname[1] is sometimes "", sometimes " " */
24657 if (strcmp(tzname[0], "UTC") ||
24658 (tzname[1][0] != 0 && tzname[1][0] != ' '))
24659 exit(1);
24660 #endif
24662 putenv("TZ=EST+5EDT,M4.1.0,M10.5.0");
24663 tzset();
24664 if (localtime(&groundhogday)->tm_hour != 19)
24665 exit(1);
24666 #if HAVE_TZNAME
24667 if (strcmp(tzname[0], "EST") || strcmp(tzname[1], "EDT"))
24668 exit(1);
24669 #endif
24671 putenv("TZ=AEST-10AEDT-11,M10.5.0,M3.5.0");
24672 tzset();
24673 if (localtime(&groundhogday)->tm_hour != 11)
24674 exit(1);
24675 #if HAVE_TZNAME
24676 if (strcmp(tzname[0], "AEST") || strcmp(tzname[1], "AEDT"))
24677 exit(1);
24678 #endif
24680 #if HAVE_STRUCT_TM_TM_ZONE
24681 if (strcmp(localtime(&groundhogday)->tm_zone, "AEDT"))
24682 exit(1);
24683 if (strcmp(localtime(&midyear)->tm_zone, "AEST"))
24684 exit(1);
24685 #endif
24687 exit(0);
24690 _ACEOF
24691 rm -f conftest$ac_exeext
24692 if { (ac_try="$ac_link"
24693 case "(($ac_try" in
24694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24695 *) ac_try_echo=$ac_try;;
24696 esac
24697 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24698 (eval "$ac_link") 2>&5
24699 ac_status=$?
24700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24701 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24702 { (case "(($ac_try" in
24703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24704 *) ac_try_echo=$ac_try;;
24705 esac
24706 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24707 (eval "$ac_try") 2>&5
24708 ac_status=$?
24709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24710 (exit $ac_status); }; }; then
24711 ac_cv_working_tzset=yes
24712 else
24713 echo "$as_me: program exited with status $ac_status" >&5
24714 echo "$as_me: failed program was:" >&5
24715 sed 's/^/| /' conftest.$ac_ext >&5
24717 ( exit $ac_status )
24718 ac_cv_working_tzset=no
24720 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24726 { echo "$as_me:$LINENO: result: $ac_cv_working_tzset" >&5
24727 echo "${ECHO_T}$ac_cv_working_tzset" >&6; }
24728 if test "$ac_cv_working_tzset" = yes
24729 then
24731 cat >>confdefs.h <<\_ACEOF
24732 #define HAVE_WORKING_TZSET 1
24733 _ACEOF
24737 # Look for subsecond timestamps in struct stat
24738 { echo "$as_me:$LINENO: checking for tv_nsec in struct stat" >&5
24739 echo $ECHO_N "checking for tv_nsec in struct stat... $ECHO_C" >&6; }
24740 if test "${ac_cv_stat_tv_nsec+set}" = set; then
24741 echo $ECHO_N "(cached) $ECHO_C" >&6
24742 else
24743 cat >conftest.$ac_ext <<_ACEOF
24744 /* confdefs.h. */
24745 _ACEOF
24746 cat confdefs.h >>conftest.$ac_ext
24747 cat >>conftest.$ac_ext <<_ACEOF
24748 /* end confdefs.h. */
24749 #include <sys/stat.h>
24751 main ()
24754 struct stat st;
24755 st.st_mtim.tv_nsec = 1;
24758 return 0;
24760 _ACEOF
24761 rm -f conftest.$ac_objext
24762 if { (ac_try="$ac_compile"
24763 case "(($ac_try" in
24764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24765 *) ac_try_echo=$ac_try;;
24766 esac
24767 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24768 (eval "$ac_compile") 2>conftest.er1
24769 ac_status=$?
24770 grep -v '^ *+' conftest.er1 >conftest.err
24771 rm -f conftest.er1
24772 cat conftest.err >&5
24773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24774 (exit $ac_status); } && {
24775 test -z "$ac_c_werror_flag" ||
24776 test ! -s conftest.err
24777 } && test -s conftest.$ac_objext; then
24778 ac_cv_stat_tv_nsec=yes
24779 else
24780 echo "$as_me: failed program was:" >&5
24781 sed 's/^/| /' conftest.$ac_ext >&5
24783 ac_cv_stat_tv_nsec=no
24786 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24789 { echo "$as_me:$LINENO: result: $ac_cv_stat_tv_nsec" >&5
24790 echo "${ECHO_T}$ac_cv_stat_tv_nsec" >&6; }
24791 if test "$ac_cv_stat_tv_nsec" = yes
24792 then
24794 cat >>confdefs.h <<\_ACEOF
24795 #define HAVE_STAT_TV_NSEC 1
24796 _ACEOF
24800 # Look for BSD style subsecond timestamps in struct stat
24801 { echo "$as_me:$LINENO: checking for tv_nsec2 in struct stat" >&5
24802 echo $ECHO_N "checking for tv_nsec2 in struct stat... $ECHO_C" >&6; }
24803 if test "${ac_cv_stat_tv_nsec2+set}" = set; then
24804 echo $ECHO_N "(cached) $ECHO_C" >&6
24805 else
24806 cat >conftest.$ac_ext <<_ACEOF
24807 /* confdefs.h. */
24808 _ACEOF
24809 cat confdefs.h >>conftest.$ac_ext
24810 cat >>conftest.$ac_ext <<_ACEOF
24811 /* end confdefs.h. */
24812 #include <sys/stat.h>
24814 main ()
24817 struct stat st;
24818 st.st_mtimespec.tv_nsec = 1;
24821 return 0;
24823 _ACEOF
24824 rm -f conftest.$ac_objext
24825 if { (ac_try="$ac_compile"
24826 case "(($ac_try" in
24827 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24828 *) ac_try_echo=$ac_try;;
24829 esac
24830 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24831 (eval "$ac_compile") 2>conftest.er1
24832 ac_status=$?
24833 grep -v '^ *+' conftest.er1 >conftest.err
24834 rm -f conftest.er1
24835 cat conftest.err >&5
24836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24837 (exit $ac_status); } && {
24838 test -z "$ac_c_werror_flag" ||
24839 test ! -s conftest.err
24840 } && test -s conftest.$ac_objext; then
24841 ac_cv_stat_tv_nsec2=yes
24842 else
24843 echo "$as_me: failed program was:" >&5
24844 sed 's/^/| /' conftest.$ac_ext >&5
24846 ac_cv_stat_tv_nsec2=no
24849 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24852 { echo "$as_me:$LINENO: result: $ac_cv_stat_tv_nsec2" >&5
24853 echo "${ECHO_T}$ac_cv_stat_tv_nsec2" >&6; }
24854 if test "$ac_cv_stat_tv_nsec2" = yes
24855 then
24857 cat >>confdefs.h <<\_ACEOF
24858 #define HAVE_STAT_TV_NSEC2 1
24859 _ACEOF
24863 # On HP/UX 11.0, mvwdelch is a block with a return statement
24864 { echo "$as_me:$LINENO: checking whether mvwdelch is an expression" >&5
24865 echo $ECHO_N "checking whether mvwdelch is an expression... $ECHO_C" >&6; }
24866 if test "${ac_cv_mvwdelch_is_expression+set}" = set; then
24867 echo $ECHO_N "(cached) $ECHO_C" >&6
24868 else
24869 cat >conftest.$ac_ext <<_ACEOF
24870 /* confdefs.h. */
24871 _ACEOF
24872 cat confdefs.h >>conftest.$ac_ext
24873 cat >>conftest.$ac_ext <<_ACEOF
24874 /* end confdefs.h. */
24875 #include <curses.h>
24877 main ()
24880 int rtn;
24881 rtn = mvwdelch(0,0,0);
24884 return 0;
24886 _ACEOF
24887 rm -f conftest.$ac_objext
24888 if { (ac_try="$ac_compile"
24889 case "(($ac_try" in
24890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24891 *) ac_try_echo=$ac_try;;
24892 esac
24893 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24894 (eval "$ac_compile") 2>conftest.er1
24895 ac_status=$?
24896 grep -v '^ *+' conftest.er1 >conftest.err
24897 rm -f conftest.er1
24898 cat conftest.err >&5
24899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24900 (exit $ac_status); } && {
24901 test -z "$ac_c_werror_flag" ||
24902 test ! -s conftest.err
24903 } && test -s conftest.$ac_objext; then
24904 ac_cv_mvwdelch_is_expression=yes
24905 else
24906 echo "$as_me: failed program was:" >&5
24907 sed 's/^/| /' conftest.$ac_ext >&5
24909 ac_cv_mvwdelch_is_expression=no
24912 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24915 { echo "$as_me:$LINENO: result: $ac_cv_mvwdelch_is_expression" >&5
24916 echo "${ECHO_T}$ac_cv_mvwdelch_is_expression" >&6; }
24918 if test "$ac_cv_mvwdelch_is_expression" = yes
24919 then
24921 cat >>confdefs.h <<\_ACEOF
24922 #define MVWDELCH_IS_EXPRESSION 1
24923 _ACEOF
24927 { echo "$as_me:$LINENO: checking whether WINDOW has _flags" >&5
24928 echo $ECHO_N "checking whether WINDOW has _flags... $ECHO_C" >&6; }
24929 if test "${ac_cv_window_has_flags+set}" = set; then
24930 echo $ECHO_N "(cached) $ECHO_C" >&6
24931 else
24932 cat >conftest.$ac_ext <<_ACEOF
24933 /* confdefs.h. */
24934 _ACEOF
24935 cat confdefs.h >>conftest.$ac_ext
24936 cat >>conftest.$ac_ext <<_ACEOF
24937 /* end confdefs.h. */
24938 #include <curses.h>
24940 main ()
24943 WINDOW *w;
24944 w->_flags = 0;
24947 return 0;
24949 _ACEOF
24950 rm -f conftest.$ac_objext
24951 if { (ac_try="$ac_compile"
24952 case "(($ac_try" in
24953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24954 *) ac_try_echo=$ac_try;;
24955 esac
24956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24957 (eval "$ac_compile") 2>conftest.er1
24958 ac_status=$?
24959 grep -v '^ *+' conftest.er1 >conftest.err
24960 rm -f conftest.er1
24961 cat conftest.err >&5
24962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24963 (exit $ac_status); } && {
24964 test -z "$ac_c_werror_flag" ||
24965 test ! -s conftest.err
24966 } && test -s conftest.$ac_objext; then
24967 ac_cv_window_has_flags=yes
24968 else
24969 echo "$as_me: failed program was:" >&5
24970 sed 's/^/| /' conftest.$ac_ext >&5
24972 ac_cv_window_has_flags=no
24975 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24978 { echo "$as_me:$LINENO: result: $ac_cv_window_has_flags" >&5
24979 echo "${ECHO_T}$ac_cv_window_has_flags" >&6; }
24982 if test "$ac_cv_window_has_flags" = yes
24983 then
24985 cat >>confdefs.h <<\_ACEOF
24986 #define WINDOW_HAS_FLAGS 1
24987 _ACEOF
24991 { echo "$as_me:$LINENO: checking for is_term_resized" >&5
24992 echo $ECHO_N "checking for is_term_resized... $ECHO_C" >&6; }
24993 cat >conftest.$ac_ext <<_ACEOF
24994 /* confdefs.h. */
24995 _ACEOF
24996 cat confdefs.h >>conftest.$ac_ext
24997 cat >>conftest.$ac_ext <<_ACEOF
24998 /* end confdefs.h. */
24999 #include <curses.h>
25001 main ()
25003 void *x=is_term_resized
25005 return 0;
25007 _ACEOF
25008 rm -f conftest.$ac_objext
25009 if { (ac_try="$ac_compile"
25010 case "(($ac_try" in
25011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25012 *) ac_try_echo=$ac_try;;
25013 esac
25014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25015 (eval "$ac_compile") 2>conftest.er1
25016 ac_status=$?
25017 grep -v '^ *+' conftest.er1 >conftest.err
25018 rm -f conftest.er1
25019 cat conftest.err >&5
25020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25021 (exit $ac_status); } && {
25022 test -z "$ac_c_werror_flag" ||
25023 test ! -s conftest.err
25024 } && test -s conftest.$ac_objext; then
25026 cat >>confdefs.h <<\_ACEOF
25027 #define HAVE_CURSES_IS_TERM_RESIZED 1
25028 _ACEOF
25030 { echo "$as_me:$LINENO: result: yes" >&5
25031 echo "${ECHO_T}yes" >&6; }
25032 else
25033 echo "$as_me: failed program was:" >&5
25034 sed 's/^/| /' conftest.$ac_ext >&5
25036 { echo "$as_me:$LINENO: result: no" >&5
25037 echo "${ECHO_T}no" >&6; }
25041 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25043 { echo "$as_me:$LINENO: checking for resize_term" >&5
25044 echo $ECHO_N "checking for resize_term... $ECHO_C" >&6; }
25045 cat >conftest.$ac_ext <<_ACEOF
25046 /* confdefs.h. */
25047 _ACEOF
25048 cat confdefs.h >>conftest.$ac_ext
25049 cat >>conftest.$ac_ext <<_ACEOF
25050 /* end confdefs.h. */
25051 #include <curses.h>
25053 main ()
25055 void *x=resize_term
25057 return 0;
25059 _ACEOF
25060 rm -f conftest.$ac_objext
25061 if { (ac_try="$ac_compile"
25062 case "(($ac_try" in
25063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25064 *) ac_try_echo=$ac_try;;
25065 esac
25066 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25067 (eval "$ac_compile") 2>conftest.er1
25068 ac_status=$?
25069 grep -v '^ *+' conftest.er1 >conftest.err
25070 rm -f conftest.er1
25071 cat conftest.err >&5
25072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25073 (exit $ac_status); } && {
25074 test -z "$ac_c_werror_flag" ||
25075 test ! -s conftest.err
25076 } && test -s conftest.$ac_objext; then
25078 cat >>confdefs.h <<\_ACEOF
25079 #define HAVE_CURSES_RESIZE_TERM 1
25080 _ACEOF
25082 { echo "$as_me:$LINENO: result: yes" >&5
25083 echo "${ECHO_T}yes" >&6; }
25084 else
25085 echo "$as_me: failed program was:" >&5
25086 sed 's/^/| /' conftest.$ac_ext >&5
25088 { echo "$as_me:$LINENO: result: no" >&5
25089 echo "${ECHO_T}no" >&6; }
25093 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25095 { echo "$as_me:$LINENO: checking for resizeterm" >&5
25096 echo $ECHO_N "checking for resizeterm... $ECHO_C" >&6; }
25097 cat >conftest.$ac_ext <<_ACEOF
25098 /* confdefs.h. */
25099 _ACEOF
25100 cat confdefs.h >>conftest.$ac_ext
25101 cat >>conftest.$ac_ext <<_ACEOF
25102 /* end confdefs.h. */
25103 #include <curses.h>
25105 main ()
25107 void *x=resizeterm
25109 return 0;
25111 _ACEOF
25112 rm -f conftest.$ac_objext
25113 if { (ac_try="$ac_compile"
25114 case "(($ac_try" in
25115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25116 *) ac_try_echo=$ac_try;;
25117 esac
25118 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25119 (eval "$ac_compile") 2>conftest.er1
25120 ac_status=$?
25121 grep -v '^ *+' conftest.er1 >conftest.err
25122 rm -f conftest.er1
25123 cat conftest.err >&5
25124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25125 (exit $ac_status); } && {
25126 test -z "$ac_c_werror_flag" ||
25127 test ! -s conftest.err
25128 } && test -s conftest.$ac_objext; then
25130 cat >>confdefs.h <<\_ACEOF
25131 #define HAVE_CURSES_RESIZETERM 1
25132 _ACEOF
25134 { echo "$as_me:$LINENO: result: yes" >&5
25135 echo "${ECHO_T}yes" >&6; }
25136 else
25137 echo "$as_me: failed program was:" >&5
25138 sed 's/^/| /' conftest.$ac_ext >&5
25140 { echo "$as_me:$LINENO: result: no" >&5
25141 echo "${ECHO_T}no" >&6; }
25145 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25147 { echo "$as_me:$LINENO: checking for /dev/ptmx" >&5
25148 echo $ECHO_N "checking for /dev/ptmx... $ECHO_C" >&6; }
25150 if test -r /dev/ptmx
25151 then
25152 { echo "$as_me:$LINENO: result: yes" >&5
25153 echo "${ECHO_T}yes" >&6; }
25155 cat >>confdefs.h <<\_ACEOF
25156 #define HAVE_DEV_PTMX 1
25157 _ACEOF
25159 else
25160 { echo "$as_me:$LINENO: result: no" >&5
25161 echo "${ECHO_T}no" >&6; }
25164 { echo "$as_me:$LINENO: checking for /dev/ptc" >&5
25165 echo $ECHO_N "checking for /dev/ptc... $ECHO_C" >&6; }
25167 if test -r /dev/ptc
25168 then
25169 { echo "$as_me:$LINENO: result: yes" >&5
25170 echo "${ECHO_T}yes" >&6; }
25172 cat >>confdefs.h <<\_ACEOF
25173 #define HAVE_DEV_PTC 1
25174 _ACEOF
25176 else
25177 { echo "$as_me:$LINENO: result: no" >&5
25178 echo "${ECHO_T}no" >&6; }
25181 { echo "$as_me:$LINENO: checking for %zd printf() format support" >&5
25182 echo $ECHO_N "checking for %zd printf() format support... $ECHO_C" >&6; }
25183 if test "$cross_compiling" = yes; then
25184 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
25185 See \`config.log' for more details." >&5
25186 echo "$as_me: error: cannot run test program while cross compiling
25187 See \`config.log' for more details." >&2;}
25188 { (exit 1); exit 1; }; }
25189 else
25190 cat >conftest.$ac_ext <<_ACEOF
25191 /* confdefs.h. */
25192 _ACEOF
25193 cat confdefs.h >>conftest.$ac_ext
25194 cat >>conftest.$ac_ext <<_ACEOF
25195 /* end confdefs.h. */
25196 #include <stdio.h>
25197 #include <stddef.h>
25198 #include <string.h>
25200 #ifdef HAVE_SYS_TYPES_H
25201 #include <sys/types.h>
25202 #endif
25204 #ifdef HAVE_SSIZE_T
25205 typedef ssize_t Py_ssize_t;
25206 #elif SIZEOF_VOID_P == SIZEOF_LONG
25207 typedef long Py_ssize_t;
25208 #else
25209 typedef int Py_ssize_t;
25210 #endif
25212 int main()
25214 char buffer[256];
25216 if(sprintf(buffer, "%zd", (size_t)123) < 0)
25217 return 1;
25219 if (strcmp(buffer, "123"))
25220 return 1;
25222 if (sprintf(buffer, "%zd", (Py_ssize_t)-123) < 0)
25223 return 1;
25225 if (strcmp(buffer, "-123"))
25226 return 1;
25228 return 0;
25230 _ACEOF
25231 rm -f conftest$ac_exeext
25232 if { (ac_try="$ac_link"
25233 case "(($ac_try" in
25234 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25235 *) ac_try_echo=$ac_try;;
25236 esac
25237 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25238 (eval "$ac_link") 2>&5
25239 ac_status=$?
25240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25241 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25242 { (case "(($ac_try" in
25243 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25244 *) ac_try_echo=$ac_try;;
25245 esac
25246 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25247 (eval "$ac_try") 2>&5
25248 ac_status=$?
25249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25250 (exit $ac_status); }; }; then
25251 { echo "$as_me:$LINENO: result: yes" >&5
25252 echo "${ECHO_T}yes" >&6; }
25254 cat >>confdefs.h <<\_ACEOF
25255 #define PY_FORMAT_SIZE_T "z"
25256 _ACEOF
25258 else
25259 echo "$as_me: program exited with status $ac_status" >&5
25260 echo "$as_me: failed program was:" >&5
25261 sed 's/^/| /' conftest.$ac_ext >&5
25263 ( exit $ac_status )
25264 { echo "$as_me:$LINENO: result: no" >&5
25265 echo "${ECHO_T}no" >&6; }
25267 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25272 { echo "$as_me:$LINENO: checking for socklen_t" >&5
25273 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; }
25274 if test "${ac_cv_type_socklen_t+set}" = set; then
25275 echo $ECHO_N "(cached) $ECHO_C" >&6
25276 else
25277 cat >conftest.$ac_ext <<_ACEOF
25278 /* confdefs.h. */
25279 _ACEOF
25280 cat confdefs.h >>conftest.$ac_ext
25281 cat >>conftest.$ac_ext <<_ACEOF
25282 /* end confdefs.h. */
25284 #ifdef HAVE_SYS_TYPES_H
25285 #include <sys/types.h>
25286 #endif
25287 #ifdef HAVE_SYS_SOCKET_H
25288 #include <sys/socket.h>
25289 #endif
25292 typedef socklen_t ac__type_new_;
25294 main ()
25296 if ((ac__type_new_ *) 0)
25297 return 0;
25298 if (sizeof (ac__type_new_))
25299 return 0;
25301 return 0;
25303 _ACEOF
25304 rm -f conftest.$ac_objext
25305 if { (ac_try="$ac_compile"
25306 case "(($ac_try" in
25307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25308 *) ac_try_echo=$ac_try;;
25309 esac
25310 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25311 (eval "$ac_compile") 2>conftest.er1
25312 ac_status=$?
25313 grep -v '^ *+' conftest.er1 >conftest.err
25314 rm -f conftest.er1
25315 cat conftest.err >&5
25316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25317 (exit $ac_status); } && {
25318 test -z "$ac_c_werror_flag" ||
25319 test ! -s conftest.err
25320 } && test -s conftest.$ac_objext; then
25321 ac_cv_type_socklen_t=yes
25322 else
25323 echo "$as_me: failed program was:" >&5
25324 sed 's/^/| /' conftest.$ac_ext >&5
25326 ac_cv_type_socklen_t=no
25329 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25331 { echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
25332 echo "${ECHO_T}$ac_cv_type_socklen_t" >&6; }
25333 if test $ac_cv_type_socklen_t = yes; then
25335 else
25337 cat >>confdefs.h <<\_ACEOF
25338 #define socklen_t int
25339 _ACEOF
25346 for h in `(cd $srcdir;echo Python/thread_*.h)`
25348 THREADHEADERS="$THREADHEADERS \$(srcdir)/$h"
25349 done
25352 SRCDIRS="Parser Grammar Objects Python Modules Mac"
25353 { echo "$as_me:$LINENO: checking for build directories" >&5
25354 echo $ECHO_N "checking for build directories... $ECHO_C" >&6; }
25355 for dir in $SRCDIRS; do
25356 if test ! -d $dir; then
25357 mkdir $dir
25359 done
25360 { echo "$as_me:$LINENO: result: done" >&5
25361 echo "${ECHO_T}done" >&6; }
25363 # generate output files
25364 ac_config_files="$ac_config_files Makefile.pre Modules/Setup.config"
25366 cat >confcache <<\_ACEOF
25367 # This file is a shell script that caches the results of configure
25368 # tests run on this system so they can be shared between configure
25369 # scripts and configure runs, see configure's option --config-cache.
25370 # It is not useful on other systems. If it contains results you don't
25371 # want to keep, you may remove or edit it.
25373 # config.status only pays attention to the cache file if you give it
25374 # the --recheck option to rerun configure.
25376 # `ac_cv_env_foo' variables (set or unset) will be overridden when
25377 # loading this file, other *unset* `ac_cv_foo' will be assigned the
25378 # following values.
25380 _ACEOF
25382 # The following way of writing the cache mishandles newlines in values,
25383 # but we know of no workaround that is simple, portable, and efficient.
25384 # So, we kill variables containing newlines.
25385 # Ultrix sh set writes to stderr and can't be redirected directly,
25386 # and sets the high bit in the cache file unless we assign to the vars.
25388 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
25389 eval ac_val=\$$ac_var
25390 case $ac_val in #(
25391 *${as_nl}*)
25392 case $ac_var in #(
25393 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
25394 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
25395 esac
25396 case $ac_var in #(
25397 _ | IFS | as_nl) ;; #(
25398 *) $as_unset $ac_var ;;
25399 esac ;;
25400 esac
25401 done
25403 (set) 2>&1 |
25404 case $as_nl`(ac_space=' '; set) 2>&1` in #(
25405 *${as_nl}ac_space=\ *)
25406 # `set' does not quote correctly, so add quotes (double-quote
25407 # substitution turns \\\\ into \\, and sed turns \\ into \).
25408 sed -n \
25409 "s/'/'\\\\''/g;
25410 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
25411 ;; #(
25413 # `set' quotes correctly as required by POSIX, so do not add quotes.
25414 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
25416 esac |
25417 sort
25419 sed '
25420 /^ac_cv_env_/b end
25421 t clear
25422 :clear
25423 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
25424 t end
25425 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
25426 :end' >>confcache
25427 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
25428 if test -w "$cache_file"; then
25429 test "x$cache_file" != "x/dev/null" &&
25430 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
25431 echo "$as_me: updating cache $cache_file" >&6;}
25432 cat confcache >$cache_file
25433 else
25434 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
25435 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
25438 rm -f confcache
25440 test "x$prefix" = xNONE && prefix=$ac_default_prefix
25441 # Let make expand exec_prefix.
25442 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
25444 DEFS=-DHAVE_CONFIG_H
25446 ac_libobjs=
25447 ac_ltlibobjs=
25448 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
25449 # 1. Remove the extension, and $U if already installed.
25450 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
25451 ac_i=`echo "$ac_i" | sed "$ac_script"`
25452 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
25453 # will be set to the directory where LIBOBJS objects are built.
25454 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
25455 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
25456 done
25457 LIBOBJS=$ac_libobjs
25459 LTLIBOBJS=$ac_ltlibobjs
25463 : ${CONFIG_STATUS=./config.status}
25464 ac_clean_files_save=$ac_clean_files
25465 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
25466 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
25467 echo "$as_me: creating $CONFIG_STATUS" >&6;}
25468 cat >$CONFIG_STATUS <<_ACEOF
25469 #! $SHELL
25470 # Generated by $as_me.
25471 # Run this file to recreate the current configuration.
25472 # Compiler output produced by configure, useful for debugging
25473 # configure, is in config.log if it exists.
25475 debug=false
25476 ac_cs_recheck=false
25477 ac_cs_silent=false
25478 SHELL=\${CONFIG_SHELL-$SHELL}
25479 _ACEOF
25481 cat >>$CONFIG_STATUS <<\_ACEOF
25482 ## --------------------- ##
25483 ## M4sh Initialization. ##
25484 ## --------------------- ##
25486 # Be more Bourne compatible
25487 DUALCASE=1; export DUALCASE # for MKS sh
25488 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
25489 emulate sh
25490 NULLCMD=:
25491 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
25492 # is contrary to our usage. Disable this feature.
25493 alias -g '${1+"$@"}'='"$@"'
25494 setopt NO_GLOB_SUBST
25495 else
25496 case `(set -o) 2>/dev/null` in
25497 *posix*) set -o posix ;;
25498 esac
25505 # PATH needs CR
25506 # Avoid depending upon Character Ranges.
25507 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
25508 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
25509 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
25510 as_cr_digits='0123456789'
25511 as_cr_alnum=$as_cr_Letters$as_cr_digits
25513 # The user is always right.
25514 if test "${PATH_SEPARATOR+set}" != set; then
25515 echo "#! /bin/sh" >conf$$.sh
25516 echo "exit 0" >>conf$$.sh
25517 chmod +x conf$$.sh
25518 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
25519 PATH_SEPARATOR=';'
25520 else
25521 PATH_SEPARATOR=:
25523 rm -f conf$$.sh
25526 # Support unset when possible.
25527 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
25528 as_unset=unset
25529 else
25530 as_unset=false
25534 # IFS
25535 # We need space, tab and new line, in precisely that order. Quoting is
25536 # there to prevent editors from complaining about space-tab.
25537 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
25538 # splitting by setting IFS to empty value.)
25539 as_nl='
25541 IFS=" "" $as_nl"
25543 # Find who we are. Look in the path if we contain no directory separator.
25544 case $0 in
25545 *[\\/]* ) as_myself=$0 ;;
25546 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25547 for as_dir in $PATH
25549 IFS=$as_save_IFS
25550 test -z "$as_dir" && as_dir=.
25551 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
25552 done
25553 IFS=$as_save_IFS
25556 esac
25557 # We did not find ourselves, most probably we were run as `sh COMMAND'
25558 # in which case we are not to be found in the path.
25559 if test "x$as_myself" = x; then
25560 as_myself=$0
25562 if test ! -f "$as_myself"; then
25563 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
25564 { (exit 1); exit 1; }
25567 # Work around bugs in pre-3.0 UWIN ksh.
25568 for as_var in ENV MAIL MAILPATH
25569 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
25570 done
25571 PS1='$ '
25572 PS2='> '
25573 PS4='+ '
25575 # NLS nuisances.
25576 for as_var in \
25577 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
25578 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
25579 LC_TELEPHONE LC_TIME
25581 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
25582 eval $as_var=C; export $as_var
25583 else
25584 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
25586 done
25588 # Required to use basename.
25589 if expr a : '\(a\)' >/dev/null 2>&1 &&
25590 test "X`expr 00001 : '.*\(...\)'`" = X001; then
25591 as_expr=expr
25592 else
25593 as_expr=false
25596 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
25597 as_basename=basename
25598 else
25599 as_basename=false
25603 # Name of the executable.
25604 as_me=`$as_basename -- "$0" ||
25605 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
25606 X"$0" : 'X\(//\)$' \| \
25607 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
25608 echo X/"$0" |
25609 sed '/^.*\/\([^/][^/]*\)\/*$/{
25610 s//\1/
25613 /^X\/\(\/\/\)$/{
25614 s//\1/
25617 /^X\/\(\/\).*/{
25618 s//\1/
25621 s/.*/./; q'`
25623 # CDPATH.
25624 $as_unset CDPATH
25628 as_lineno_1=$LINENO
25629 as_lineno_2=$LINENO
25630 test "x$as_lineno_1" != "x$as_lineno_2" &&
25631 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
25633 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
25634 # uniformly replaced by the line number. The first 'sed' inserts a
25635 # line-number line after each line using $LINENO; the second 'sed'
25636 # does the real work. The second script uses 'N' to pair each
25637 # line-number line with the line containing $LINENO, and appends
25638 # trailing '-' during substitution so that $LINENO is not a special
25639 # case at line end.
25640 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
25641 # scripts with optimization help from Paolo Bonzini. Blame Lee
25642 # E. McMahon (1931-1989) for sed's syntax. :-)
25643 sed -n '
25645 /[$]LINENO/=
25646 ' <$as_myself |
25647 sed '
25648 s/[$]LINENO.*/&-/
25649 t lineno
25651 :lineno
25653 :loop
25654 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
25655 t loop
25656 s/-\n.*//
25657 ' >$as_me.lineno &&
25658 chmod +x "$as_me.lineno" ||
25659 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
25660 { (exit 1); exit 1; }; }
25662 # Don't try to exec as it changes $[0], causing all sort of problems
25663 # (the dirname of $[0] is not the place where we might find the
25664 # original and so on. Autoconf is especially sensitive to this).
25665 . "./$as_me.lineno"
25666 # Exit status is that of the last command.
25667 exit
25671 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
25672 as_dirname=dirname
25673 else
25674 as_dirname=false
25677 ECHO_C= ECHO_N= ECHO_T=
25678 case `echo -n x` in
25679 -n*)
25680 case `echo 'x\c'` in
25681 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
25682 *) ECHO_C='\c';;
25683 esac;;
25685 ECHO_N='-n';;
25686 esac
25688 if expr a : '\(a\)' >/dev/null 2>&1 &&
25689 test "X`expr 00001 : '.*\(...\)'`" = X001; then
25690 as_expr=expr
25691 else
25692 as_expr=false
25695 rm -f conf$$ conf$$.exe conf$$.file
25696 if test -d conf$$.dir; then
25697 rm -f conf$$.dir/conf$$.file
25698 else
25699 rm -f conf$$.dir
25700 mkdir conf$$.dir
25702 echo >conf$$.file
25703 if ln -s conf$$.file conf$$ 2>/dev/null; then
25704 as_ln_s='ln -s'
25705 # ... but there are two gotchas:
25706 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
25707 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
25708 # In both cases, we have to default to `cp -p'.
25709 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
25710 as_ln_s='cp -p'
25711 elif ln conf$$.file conf$$ 2>/dev/null; then
25712 as_ln_s=ln
25713 else
25714 as_ln_s='cp -p'
25716 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
25717 rmdir conf$$.dir 2>/dev/null
25719 if mkdir -p . 2>/dev/null; then
25720 as_mkdir_p=:
25721 else
25722 test -d ./-p && rmdir ./-p
25723 as_mkdir_p=false
25726 if test -x / >/dev/null 2>&1; then
25727 as_test_x='test -x'
25728 else
25729 if ls -dL / >/dev/null 2>&1; then
25730 as_ls_L_option=L
25731 else
25732 as_ls_L_option=
25734 as_test_x='
25735 eval sh -c '\''
25736 if test -d "$1"; then
25737 test -d "$1/.";
25738 else
25739 case $1 in
25740 -*)set "./$1";;
25741 esac;
25742 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
25743 ???[sx]*):;;*)false;;esac;fi
25744 '\'' sh
25747 as_executable_p=$as_test_x
25749 # Sed expression to map a string onto a valid CPP name.
25750 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
25752 # Sed expression to map a string onto a valid variable name.
25753 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
25756 exec 6>&1
25758 # Save the log message, to keep $[0] and so on meaningful, and to
25759 # report actual input values of CONFIG_FILES etc. instead of their
25760 # values after options handling.
25761 ac_log="
25762 This file was extended by python $as_me 2.7, which was
25763 generated by GNU Autoconf 2.61. Invocation command line was
25765 CONFIG_FILES = $CONFIG_FILES
25766 CONFIG_HEADERS = $CONFIG_HEADERS
25767 CONFIG_LINKS = $CONFIG_LINKS
25768 CONFIG_COMMANDS = $CONFIG_COMMANDS
25769 $ $0 $@
25771 on `(hostname || uname -n) 2>/dev/null | sed 1q`
25774 _ACEOF
25776 cat >>$CONFIG_STATUS <<_ACEOF
25777 # Files that config.status was made for.
25778 config_files="$ac_config_files"
25779 config_headers="$ac_config_headers"
25781 _ACEOF
25783 cat >>$CONFIG_STATUS <<\_ACEOF
25784 ac_cs_usage="\
25785 \`$as_me' instantiates files from templates according to the
25786 current configuration.
25788 Usage: $0 [OPTIONS] [FILE]...
25790 -h, --help print this help, then exit
25791 -V, --version print version number and configuration settings, then exit
25792 -q, --quiet do not print progress messages
25793 -d, --debug don't remove temporary files
25794 --recheck update $as_me by reconfiguring in the same conditions
25795 --file=FILE[:TEMPLATE]
25796 instantiate the configuration file FILE
25797 --header=FILE[:TEMPLATE]
25798 instantiate the configuration header FILE
25800 Configuration files:
25801 $config_files
25803 Configuration headers:
25804 $config_headers
25806 Report bugs to <bug-autoconf@gnu.org>."
25808 _ACEOF
25809 cat >>$CONFIG_STATUS <<_ACEOF
25810 ac_cs_version="\\
25811 python config.status 2.7
25812 configured by $0, generated by GNU Autoconf 2.61,
25813 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
25815 Copyright (C) 2006 Free Software Foundation, Inc.
25816 This config.status script is free software; the Free Software Foundation
25817 gives unlimited permission to copy, distribute and modify it."
25819 ac_pwd='$ac_pwd'
25820 srcdir='$srcdir'
25821 INSTALL='$INSTALL'
25822 _ACEOF
25824 cat >>$CONFIG_STATUS <<\_ACEOF
25825 # If no file are specified by the user, then we need to provide default
25826 # value. By we need to know if files were specified by the user.
25827 ac_need_defaults=:
25828 while test $# != 0
25830 case $1 in
25831 --*=*)
25832 ac_option=`expr "X$1" : 'X\([^=]*\)='`
25833 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
25834 ac_shift=:
25837 ac_option=$1
25838 ac_optarg=$2
25839 ac_shift=shift
25841 esac
25843 case $ac_option in
25844 # Handling of the options.
25845 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
25846 ac_cs_recheck=: ;;
25847 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
25848 echo "$ac_cs_version"; exit ;;
25849 --debug | --debu | --deb | --de | --d | -d )
25850 debug=: ;;
25851 --file | --fil | --fi | --f )
25852 $ac_shift
25853 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
25854 ac_need_defaults=false;;
25855 --header | --heade | --head | --hea )
25856 $ac_shift
25857 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
25858 ac_need_defaults=false;;
25859 --he | --h)
25860 # Conflict between --help and --header
25861 { echo "$as_me: error: ambiguous option: $1
25862 Try \`$0 --help' for more information." >&2
25863 { (exit 1); exit 1; }; };;
25864 --help | --hel | -h )
25865 echo "$ac_cs_usage"; exit ;;
25866 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
25867 | -silent | --silent | --silen | --sile | --sil | --si | --s)
25868 ac_cs_silent=: ;;
25870 # This is an error.
25871 -*) { echo "$as_me: error: unrecognized option: $1
25872 Try \`$0 --help' for more information." >&2
25873 { (exit 1); exit 1; }; } ;;
25875 *) ac_config_targets="$ac_config_targets $1"
25876 ac_need_defaults=false ;;
25878 esac
25879 shift
25880 done
25882 ac_configure_extra_args=
25884 if $ac_cs_silent; then
25885 exec 6>/dev/null
25886 ac_configure_extra_args="$ac_configure_extra_args --silent"
25889 _ACEOF
25890 cat >>$CONFIG_STATUS <<_ACEOF
25891 if \$ac_cs_recheck; then
25892 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
25893 CONFIG_SHELL=$SHELL
25894 export CONFIG_SHELL
25895 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
25898 _ACEOF
25899 cat >>$CONFIG_STATUS <<\_ACEOF
25900 exec 5>>config.log
25902 echo
25903 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
25904 ## Running $as_me. ##
25905 _ASBOX
25906 echo "$ac_log"
25907 } >&5
25909 _ACEOF
25910 cat >>$CONFIG_STATUS <<_ACEOF
25911 _ACEOF
25913 cat >>$CONFIG_STATUS <<\_ACEOF
25915 # Handling of arguments.
25916 for ac_config_target in $ac_config_targets
25918 case $ac_config_target in
25919 "pyconfig.h") CONFIG_HEADERS="$CONFIG_HEADERS pyconfig.h" ;;
25920 "Mac/Makefile") CONFIG_FILES="$CONFIG_FILES Mac/Makefile" ;;
25921 "Mac/PythonLauncher/Makefile") CONFIG_FILES="$CONFIG_FILES Mac/PythonLauncher/Makefile" ;;
25922 "Mac/IDLE/Makefile") CONFIG_FILES="$CONFIG_FILES Mac/IDLE/Makefile" ;;
25923 "Mac/Resources/framework/Info.plist") CONFIG_FILES="$CONFIG_FILES Mac/Resources/framework/Info.plist" ;;
25924 "Mac/Resources/app/Info.plist") CONFIG_FILES="$CONFIG_FILES Mac/Resources/app/Info.plist" ;;
25925 "Makefile.pre") CONFIG_FILES="$CONFIG_FILES Makefile.pre" ;;
25926 "Modules/Setup.config") CONFIG_FILES="$CONFIG_FILES Modules/Setup.config" ;;
25928 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
25929 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
25930 { (exit 1); exit 1; }; };;
25931 esac
25932 done
25935 # If the user did not use the arguments to specify the items to instantiate,
25936 # then the envvar interface is used. Set only those that are not.
25937 # We use the long form for the default assignment because of an extremely
25938 # bizarre bug on SunOS 4.1.3.
25939 if $ac_need_defaults; then
25940 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
25941 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
25944 # Have a temporary directory for convenience. Make it in the build tree
25945 # simply because there is no reason against having it here, and in addition,
25946 # creating and moving files from /tmp can sometimes cause problems.
25947 # Hook for its removal unless debugging.
25948 # Note that there is a small window in which the directory will not be cleaned:
25949 # after its creation but before its name has been assigned to `$tmp'.
25950 $debug ||
25952 tmp=
25953 trap 'exit_status=$?
25954 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
25956 trap '{ (exit 1); exit 1; }' 1 2 13 15
25958 # Create a (secure) tmp directory for tmp files.
25961 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
25962 test -n "$tmp" && test -d "$tmp"
25963 } ||
25965 tmp=./conf$$-$RANDOM
25966 (umask 077 && mkdir "$tmp")
25967 } ||
25969 echo "$me: cannot create a temporary directory in ." >&2
25970 { (exit 1); exit 1; }
25974 # Set up the sed scripts for CONFIG_FILES section.
25977 # No need to generate the scripts if there are no CONFIG_FILES.
25978 # This happens for instance when ./config.status config.h
25979 if test -n "$CONFIG_FILES"; then
25981 _ACEOF
25985 ac_delim='%!_!# '
25986 for ac_last_try in false false false false false :; do
25987 cat >conf$$subs.sed <<_ACEOF
25988 SHELL!$SHELL$ac_delim
25989 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
25990 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
25991 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
25992 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
25993 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
25994 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
25995 exec_prefix!$exec_prefix$ac_delim
25996 prefix!$prefix$ac_delim
25997 program_transform_name!$program_transform_name$ac_delim
25998 bindir!$bindir$ac_delim
25999 sbindir!$sbindir$ac_delim
26000 libexecdir!$libexecdir$ac_delim
26001 datarootdir!$datarootdir$ac_delim
26002 datadir!$datadir$ac_delim
26003 sysconfdir!$sysconfdir$ac_delim
26004 sharedstatedir!$sharedstatedir$ac_delim
26005 localstatedir!$localstatedir$ac_delim
26006 includedir!$includedir$ac_delim
26007 oldincludedir!$oldincludedir$ac_delim
26008 docdir!$docdir$ac_delim
26009 infodir!$infodir$ac_delim
26010 htmldir!$htmldir$ac_delim
26011 dvidir!$dvidir$ac_delim
26012 pdfdir!$pdfdir$ac_delim
26013 psdir!$psdir$ac_delim
26014 libdir!$libdir$ac_delim
26015 localedir!$localedir$ac_delim
26016 mandir!$mandir$ac_delim
26017 DEFS!$DEFS$ac_delim
26018 ECHO_C!$ECHO_C$ac_delim
26019 ECHO_N!$ECHO_N$ac_delim
26020 ECHO_T!$ECHO_T$ac_delim
26021 LIBS!$LIBS$ac_delim
26022 build_alias!$build_alias$ac_delim
26023 host_alias!$host_alias$ac_delim
26024 target_alias!$target_alias$ac_delim
26025 VERSION!$VERSION$ac_delim
26026 SOVERSION!$SOVERSION$ac_delim
26027 CONFIG_ARGS!$CONFIG_ARGS$ac_delim
26028 UNIVERSALSDK!$UNIVERSALSDK$ac_delim
26029 ARCH_RUN_32BIT!$ARCH_RUN_32BIT$ac_delim
26030 PYTHONFRAMEWORK!$PYTHONFRAMEWORK$ac_delim
26031 PYTHONFRAMEWORKIDENTIFIER!$PYTHONFRAMEWORKIDENTIFIER$ac_delim
26032 PYTHONFRAMEWORKDIR!$PYTHONFRAMEWORKDIR$ac_delim
26033 PYTHONFRAMEWORKPREFIX!$PYTHONFRAMEWORKPREFIX$ac_delim
26034 PYTHONFRAMEWORKINSTALLDIR!$PYTHONFRAMEWORKINSTALLDIR$ac_delim
26035 FRAMEWORKINSTALLFIRST!$FRAMEWORKINSTALLFIRST$ac_delim
26036 FRAMEWORKINSTALLLAST!$FRAMEWORKINSTALLLAST$ac_delim
26037 FRAMEWORKALTINSTALLFIRST!$FRAMEWORKALTINSTALLFIRST$ac_delim
26038 FRAMEWORKALTINSTALLLAST!$FRAMEWORKALTINSTALLLAST$ac_delim
26039 FRAMEWORKUNIXTOOLSPREFIX!$FRAMEWORKUNIXTOOLSPREFIX$ac_delim
26040 MACHDEP!$MACHDEP$ac_delim
26041 SGI_ABI!$SGI_ABI$ac_delim
26042 EXTRAPLATDIR!$EXTRAPLATDIR$ac_delim
26043 EXTRAMACHDEPPATH!$EXTRAMACHDEPPATH$ac_delim
26044 CONFIGURE_MACOSX_DEPLOYMENT_TARGET!$CONFIGURE_MACOSX_DEPLOYMENT_TARGET$ac_delim
26045 EXPORT_MACOSX_DEPLOYMENT_TARGET!$EXPORT_MACOSX_DEPLOYMENT_TARGET$ac_delim
26046 CC!$CC$ac_delim
26047 CFLAGS!$CFLAGS$ac_delim
26048 LDFLAGS!$LDFLAGS$ac_delim
26049 CPPFLAGS!$CPPFLAGS$ac_delim
26050 ac_ct_CC!$ac_ct_CC$ac_delim
26051 EXEEXT!$EXEEXT$ac_delim
26052 OBJEXT!$OBJEXT$ac_delim
26053 CXX!$CXX$ac_delim
26054 MAINCC!$MAINCC$ac_delim
26055 CPP!$CPP$ac_delim
26056 GREP!$GREP$ac_delim
26057 EGREP!$EGREP$ac_delim
26058 BUILDEXEEXT!$BUILDEXEEXT$ac_delim
26059 LIBRARY!$LIBRARY$ac_delim
26060 LDLIBRARY!$LDLIBRARY$ac_delim
26061 DLLLIBRARY!$DLLLIBRARY$ac_delim
26062 BLDLIBRARY!$BLDLIBRARY$ac_delim
26063 LDLIBRARYDIR!$LDLIBRARYDIR$ac_delim
26064 INSTSONAME!$INSTSONAME$ac_delim
26065 RUNSHARED!$RUNSHARED$ac_delim
26066 LINKCC!$LINKCC$ac_delim
26067 GNULD!$GNULD$ac_delim
26068 RANLIB!$RANLIB$ac_delim
26069 AR!$AR$ac_delim
26070 ARFLAGS!$ARFLAGS$ac_delim
26071 SVNVERSION!$SVNVERSION$ac_delim
26072 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
26073 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
26074 INSTALL_DATA!$INSTALL_DATA$ac_delim
26075 LN!$LN$ac_delim
26076 OPT!$OPT$ac_delim
26077 BASECFLAGS!$BASECFLAGS$ac_delim
26078 UNIVERSAL_ARCH_FLAGS!$UNIVERSAL_ARCH_FLAGS$ac_delim
26079 OTHER_LIBTOOL_OPT!$OTHER_LIBTOOL_OPT$ac_delim
26080 LIBTOOL_CRUFT!$LIBTOOL_CRUFT$ac_delim
26081 SO!$SO$ac_delim
26082 LDSHARED!$LDSHARED$ac_delim
26083 BLDSHARED!$BLDSHARED$ac_delim
26084 CCSHARED!$CCSHARED$ac_delim
26085 _ACEOF
26087 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
26088 break
26089 elif $ac_last_try; then
26090 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
26091 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
26092 { (exit 1); exit 1; }; }
26093 else
26094 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
26096 done
26098 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
26099 if test -n "$ac_eof"; then
26100 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
26101 ac_eof=`expr $ac_eof + 1`
26104 cat >>$CONFIG_STATUS <<_ACEOF
26105 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
26106 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
26107 _ACEOF
26108 sed '
26109 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
26110 s/^/s,@/; s/!/@,|#_!!_#|/
26113 s/'"$ac_delim"'$/,g/; t
26114 s/$/\\/; p
26115 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
26116 ' >>$CONFIG_STATUS <conf$$subs.sed
26117 rm -f conf$$subs.sed
26118 cat >>$CONFIG_STATUS <<_ACEOF
26119 CEOF$ac_eof
26120 _ACEOF
26123 ac_delim='%!_!# '
26124 for ac_last_try in false false false false false :; do
26125 cat >conf$$subs.sed <<_ACEOF
26126 LINKFORSHARED!$LINKFORSHARED$ac_delim
26127 CFLAGSFORSHARED!$CFLAGSFORSHARED$ac_delim
26128 SHLIBS!$SHLIBS$ac_delim
26129 USE_SIGNAL_MODULE!$USE_SIGNAL_MODULE$ac_delim
26130 SIGNAL_OBJS!$SIGNAL_OBJS$ac_delim
26131 USE_THREAD_MODULE!$USE_THREAD_MODULE$ac_delim
26132 LDLAST!$LDLAST$ac_delim
26133 THREADOBJ!$THREADOBJ$ac_delim
26134 DLINCLDIR!$DLINCLDIR$ac_delim
26135 DYNLOADFILE!$DYNLOADFILE$ac_delim
26136 MACHDEP_OBJS!$MACHDEP_OBJS$ac_delim
26137 TRUE!$TRUE$ac_delim
26138 LIBOBJS!$LIBOBJS$ac_delim
26139 HAVE_GETHOSTBYNAME_R_6_ARG!$HAVE_GETHOSTBYNAME_R_6_ARG$ac_delim
26140 HAVE_GETHOSTBYNAME_R_5_ARG!$HAVE_GETHOSTBYNAME_R_5_ARG$ac_delim
26141 HAVE_GETHOSTBYNAME_R_3_ARG!$HAVE_GETHOSTBYNAME_R_3_ARG$ac_delim
26142 HAVE_GETHOSTBYNAME_R!$HAVE_GETHOSTBYNAME_R$ac_delim
26143 HAVE_GETHOSTBYNAME!$HAVE_GETHOSTBYNAME$ac_delim
26144 LIBM!$LIBM$ac_delim
26145 LIBC!$LIBC$ac_delim
26146 UNICODE_OBJS!$UNICODE_OBJS$ac_delim
26147 THREADHEADERS!$THREADHEADERS$ac_delim
26148 SRCDIRS!$SRCDIRS$ac_delim
26149 LTLIBOBJS!$LTLIBOBJS$ac_delim
26150 _ACEOF
26152 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 24; then
26153 break
26154 elif $ac_last_try; then
26155 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
26156 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
26157 { (exit 1); exit 1; }; }
26158 else
26159 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
26161 done
26163 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
26164 if test -n "$ac_eof"; then
26165 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
26166 ac_eof=`expr $ac_eof + 1`
26169 cat >>$CONFIG_STATUS <<_ACEOF
26170 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
26171 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
26172 _ACEOF
26173 sed '
26174 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
26175 s/^/s,@/; s/!/@,|#_!!_#|/
26178 s/'"$ac_delim"'$/,g/; t
26179 s/$/\\/; p
26180 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
26181 ' >>$CONFIG_STATUS <conf$$subs.sed
26182 rm -f conf$$subs.sed
26183 cat >>$CONFIG_STATUS <<_ACEOF
26184 :end
26185 s/|#_!!_#|//g
26186 CEOF$ac_eof
26187 _ACEOF
26190 # VPATH may cause trouble with some makes, so we remove $(srcdir),
26191 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
26192 # trailing colons and then remove the whole line if VPATH becomes empty
26193 # (actually we leave an empty line to preserve line numbers).
26194 if test "x$srcdir" = x.; then
26195 ac_vpsub='/^[ ]*VPATH[ ]*=/{
26196 s/:*\$(srcdir):*/:/
26197 s/:*\${srcdir}:*/:/
26198 s/:*@srcdir@:*/:/
26199 s/^\([^=]*=[ ]*\):*/\1/
26200 s/:*$//
26201 s/^[^=]*=[ ]*$//
26205 cat >>$CONFIG_STATUS <<\_ACEOF
26206 fi # test -n "$CONFIG_FILES"
26209 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS
26211 case $ac_tag in
26212 :[FHLC]) ac_mode=$ac_tag; continue;;
26213 esac
26214 case $ac_mode$ac_tag in
26215 :[FHL]*:*);;
26216 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
26217 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
26218 { (exit 1); exit 1; }; };;
26219 :[FH]-) ac_tag=-:-;;
26220 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
26221 esac
26222 ac_save_IFS=$IFS
26223 IFS=:
26224 set x $ac_tag
26225 IFS=$ac_save_IFS
26226 shift
26227 ac_file=$1
26228 shift
26230 case $ac_mode in
26231 :L) ac_source=$1;;
26232 :[FH])
26233 ac_file_inputs=
26234 for ac_f
26236 case $ac_f in
26237 -) ac_f="$tmp/stdin";;
26238 *) # Look for the file first in the build tree, then in the source tree
26239 # (if the path is not absolute). The absolute path cannot be DOS-style,
26240 # because $ac_f cannot contain `:'.
26241 test -f "$ac_f" ||
26242 case $ac_f in
26243 [\\/$]*) false;;
26244 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
26245 esac ||
26246 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
26247 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
26248 { (exit 1); exit 1; }; };;
26249 esac
26250 ac_file_inputs="$ac_file_inputs $ac_f"
26251 done
26253 # Let's still pretend it is `configure' which instantiates (i.e., don't
26254 # use $as_me), people would be surprised to read:
26255 # /* config.h. Generated by config.status. */
26256 configure_input="Generated from "`IFS=:
26257 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
26258 if test x"$ac_file" != x-; then
26259 configure_input="$ac_file. $configure_input"
26260 { echo "$as_me:$LINENO: creating $ac_file" >&5
26261 echo "$as_me: creating $ac_file" >&6;}
26264 case $ac_tag in
26265 *:-:* | *:-) cat >"$tmp/stdin";;
26266 esac
26268 esac
26270 ac_dir=`$as_dirname -- "$ac_file" ||
26271 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26272 X"$ac_file" : 'X\(//\)[^/]' \| \
26273 X"$ac_file" : 'X\(//\)$' \| \
26274 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
26275 echo X"$ac_file" |
26276 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26277 s//\1/
26280 /^X\(\/\/\)[^/].*/{
26281 s//\1/
26284 /^X\(\/\/\)$/{
26285 s//\1/
26288 /^X\(\/\).*/{
26289 s//\1/
26292 s/.*/./; q'`
26293 { as_dir="$ac_dir"
26294 case $as_dir in #(
26295 -*) as_dir=./$as_dir;;
26296 esac
26297 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
26298 as_dirs=
26299 while :; do
26300 case $as_dir in #(
26301 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
26302 *) as_qdir=$as_dir;;
26303 esac
26304 as_dirs="'$as_qdir' $as_dirs"
26305 as_dir=`$as_dirname -- "$as_dir" ||
26306 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26307 X"$as_dir" : 'X\(//\)[^/]' \| \
26308 X"$as_dir" : 'X\(//\)$' \| \
26309 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
26310 echo X"$as_dir" |
26311 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26312 s//\1/
26315 /^X\(\/\/\)[^/].*/{
26316 s//\1/
26319 /^X\(\/\/\)$/{
26320 s//\1/
26323 /^X\(\/\).*/{
26324 s//\1/
26327 s/.*/./; q'`
26328 test -d "$as_dir" && break
26329 done
26330 test -z "$as_dirs" || eval "mkdir $as_dirs"
26331 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
26332 echo "$as_me: error: cannot create directory $as_dir" >&2;}
26333 { (exit 1); exit 1; }; }; }
26334 ac_builddir=.
26336 case "$ac_dir" in
26337 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
26339 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
26340 # A ".." for each directory in $ac_dir_suffix.
26341 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
26342 case $ac_top_builddir_sub in
26343 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
26344 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
26345 esac ;;
26346 esac
26347 ac_abs_top_builddir=$ac_pwd
26348 ac_abs_builddir=$ac_pwd$ac_dir_suffix
26349 # for backward compatibility:
26350 ac_top_builddir=$ac_top_build_prefix
26352 case $srcdir in
26353 .) # We are building in place.
26354 ac_srcdir=.
26355 ac_top_srcdir=$ac_top_builddir_sub
26356 ac_abs_top_srcdir=$ac_pwd ;;
26357 [\\/]* | ?:[\\/]* ) # Absolute name.
26358 ac_srcdir=$srcdir$ac_dir_suffix;
26359 ac_top_srcdir=$srcdir
26360 ac_abs_top_srcdir=$srcdir ;;
26361 *) # Relative name.
26362 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
26363 ac_top_srcdir=$ac_top_build_prefix$srcdir
26364 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
26365 esac
26366 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
26369 case $ac_mode in
26372 # CONFIG_FILE
26375 case $INSTALL in
26376 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
26377 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
26378 esac
26379 _ACEOF
26381 cat >>$CONFIG_STATUS <<\_ACEOF
26382 # If the template does not know about datarootdir, expand it.
26383 # FIXME: This hack should be removed a few years after 2.60.
26384 ac_datarootdir_hack=; ac_datarootdir_seen=
26386 case `sed -n '/datarootdir/ {
26390 /@datadir@/p
26391 /@docdir@/p
26392 /@infodir@/p
26393 /@localedir@/p
26394 /@mandir@/p
26395 ' $ac_file_inputs` in
26396 *datarootdir*) ac_datarootdir_seen=yes;;
26397 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
26398 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
26399 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
26400 _ACEOF
26401 cat >>$CONFIG_STATUS <<_ACEOF
26402 ac_datarootdir_hack='
26403 s&@datadir@&$datadir&g
26404 s&@docdir@&$docdir&g
26405 s&@infodir@&$infodir&g
26406 s&@localedir@&$localedir&g
26407 s&@mandir@&$mandir&g
26408 s&\\\${datarootdir}&$datarootdir&g' ;;
26409 esac
26410 _ACEOF
26412 # Neutralize VPATH when `$srcdir' = `.'.
26413 # Shell code in configure.ac might set extrasub.
26414 # FIXME: do we really want to maintain this feature?
26415 cat >>$CONFIG_STATUS <<_ACEOF
26416 sed "$ac_vpsub
26417 $extrasub
26418 _ACEOF
26419 cat >>$CONFIG_STATUS <<\_ACEOF
26421 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
26422 s&@configure_input@&$configure_input&;t t
26423 s&@top_builddir@&$ac_top_builddir_sub&;t t
26424 s&@srcdir@&$ac_srcdir&;t t
26425 s&@abs_srcdir@&$ac_abs_srcdir&;t t
26426 s&@top_srcdir@&$ac_top_srcdir&;t t
26427 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
26428 s&@builddir@&$ac_builddir&;t t
26429 s&@abs_builddir@&$ac_abs_builddir&;t t
26430 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
26431 s&@INSTALL@&$ac_INSTALL&;t t
26432 $ac_datarootdir_hack
26433 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
26435 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
26436 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
26437 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
26438 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
26439 which seems to be undefined. Please make sure it is defined." >&5
26440 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
26441 which seems to be undefined. Please make sure it is defined." >&2;}
26443 rm -f "$tmp/stdin"
26444 case $ac_file in
26445 -) cat "$tmp/out"; rm -f "$tmp/out";;
26446 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
26447 esac
26451 # CONFIG_HEADER
26453 _ACEOF
26455 # Transform confdefs.h into a sed script `conftest.defines', that
26456 # substitutes the proper values into config.h.in to produce config.h.
26457 rm -f conftest.defines conftest.tail
26458 # First, append a space to every undef/define line, to ease matching.
26459 echo 's/$/ /' >conftest.defines
26460 # Then, protect against being on the right side of a sed subst, or in
26461 # an unquoted here document, in config.status. If some macros were
26462 # called several times there might be several #defines for the same
26463 # symbol, which is useless. But do not sort them, since the last
26464 # AC_DEFINE must be honored.
26465 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
26466 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
26467 # NAME is the cpp macro being defined, VALUE is the value it is being given.
26468 # PARAMS is the parameter list in the macro definition--in most cases, it's
26469 # just an empty string.
26470 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
26471 ac_dB='\\)[ (].*,\\1define\\2'
26472 ac_dC=' '
26473 ac_dD=' ,'
26475 uniq confdefs.h |
26476 sed -n '
26477 t rset
26478 :rset
26479 s/^[ ]*#[ ]*define[ ][ ]*//
26480 t ok
26483 s/[\\&,]/\\&/g
26484 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
26485 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
26486 ' >>conftest.defines
26488 # Remove the space that was appended to ease matching.
26489 # Then replace #undef with comments. This is necessary, for
26490 # example, in the case of _POSIX_SOURCE, which is predefined and required
26491 # on some systems where configure will not decide to define it.
26492 # (The regexp can be short, since the line contains either #define or #undef.)
26493 echo 's/ $//
26494 s,^[ #]*u.*,/* & */,' >>conftest.defines
26496 # Break up conftest.defines:
26497 ac_max_sed_lines=50
26499 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
26500 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
26501 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
26502 # et cetera.
26503 ac_in='$ac_file_inputs'
26504 ac_out='"$tmp/out1"'
26505 ac_nxt='"$tmp/out2"'
26507 while :
26509 # Write a here document:
26510 cat >>$CONFIG_STATUS <<_ACEOF
26511 # First, check the format of the line:
26512 cat >"\$tmp/defines.sed" <<\\CEOF
26513 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
26514 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
26516 :def
26517 _ACEOF
26518 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
26519 echo 'CEOF
26520 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
26521 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
26522 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
26523 grep . conftest.tail >/dev/null || break
26524 rm -f conftest.defines
26525 mv conftest.tail conftest.defines
26526 done
26527 rm -f conftest.defines conftest.tail
26529 echo "ac_result=$ac_in" >>$CONFIG_STATUS
26530 cat >>$CONFIG_STATUS <<\_ACEOF
26531 if test x"$ac_file" != x-; then
26532 echo "/* $configure_input */" >"$tmp/config.h"
26533 cat "$ac_result" >>"$tmp/config.h"
26534 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
26535 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
26536 echo "$as_me: $ac_file is unchanged" >&6;}
26537 else
26538 rm -f $ac_file
26539 mv "$tmp/config.h" $ac_file
26541 else
26542 echo "/* $configure_input */"
26543 cat "$ac_result"
26545 rm -f "$tmp/out12"
26549 esac
26551 done # for ac_tag
26554 { (exit 0); exit 0; }
26555 _ACEOF
26556 chmod +x $CONFIG_STATUS
26557 ac_clean_files=$ac_clean_files_save
26560 # configure is writing to config.log, and then calls config.status.
26561 # config.status does its own redirection, appending to config.log.
26562 # Unfortunately, on DOS this fails, as config.log is still kept open
26563 # by configure, so config.status won't be able to write to it; its
26564 # output is simply discarded. So we exec the FD to /dev/null,
26565 # effectively closing config.log, so it can be properly (re)opened and
26566 # appended to by config.status. When coming back to configure, we
26567 # need to make the FD available again.
26568 if test "$no_create" != yes; then
26569 ac_cs_success=:
26570 ac_config_status_args=
26571 test "$silent" = yes &&
26572 ac_config_status_args="$ac_config_status_args --quiet"
26573 exec 5>/dev/null
26574 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
26575 exec 5>>config.log
26576 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
26577 # would make configure fail if this is the last instruction.
26578 $ac_cs_success || { (exit 1); exit 1; }
26582 echo "creating Modules/Setup"
26583 if test ! -f Modules/Setup
26584 then
26585 cp $srcdir/Modules/Setup.dist Modules/Setup
26588 echo "creating Modules/Setup.local"
26589 if test ! -f Modules/Setup.local
26590 then
26591 echo "# Edit this file for local setup changes" >Modules/Setup.local
26594 echo "creating Makefile"
26595 $SHELL $srcdir/Modules/makesetup -c $srcdir/Modules/config.c.in \
26596 -s Modules Modules/Setup.config \
26597 Modules/Setup.local Modules/Setup
26599 case $ac_sys_system in
26600 BeOS)
26601 { echo "$as_me:$LINENO: WARNING:
26603 Support for BeOS is deprecated as of Python 2.6.
26604 See PEP 11 for the gory details.
26605 " >&5
26606 echo "$as_me: WARNING:
26608 Support for BeOS is deprecated as of Python 2.6.
26609 See PEP 11 for the gory details.
26610 " >&2;}
26612 *) ;;
26613 esac
26615 mv config.c Modules