make StringIO like other file objects in that readline(-1) has no effect #7348
[python.git] / configure
blob8a110eddf85263bc8c14272c931254055bcc593c
1 #! /bin/sh
2 # From configure.in Revision: 76636 .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.61 for python 2.7.
6 # Report bugs to <http://bugs.python.org/>.
8 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
10 # This configure script is free software; the Free Software Foundation
11 # gives unlimited permission to copy, distribute and modify it.
12 ## --------------------- ##
13 ## M4sh Initialization. ##
14 ## --------------------- ##
16 # Be more Bourne compatible
17 DUALCASE=1; export DUALCASE # for MKS sh
18 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
19 emulate sh
20 NULLCMD=:
21 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22 # is contrary to our usage. Disable this feature.
23 alias -g '${1+"$@"}'='"$@"'
24 setopt NO_GLOB_SUBST
25 else
26 case `(set -o) 2>/dev/null` in
27 *posix*) set -o posix ;;
28 esac
35 # PATH needs CR
36 # Avoid depending upon Character Ranges.
37 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
38 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
39 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
40 as_cr_digits='0123456789'
41 as_cr_alnum=$as_cr_Letters$as_cr_digits
43 # The user is always right.
44 if test "${PATH_SEPARATOR+set}" != set; then
45 echo "#! /bin/sh" >conf$$.sh
46 echo "exit 0" >>conf$$.sh
47 chmod +x conf$$.sh
48 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
49 PATH_SEPARATOR=';'
50 else
51 PATH_SEPARATOR=:
53 rm -f conf$$.sh
56 # Support unset when possible.
57 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
58 as_unset=unset
59 else
60 as_unset=false
64 # IFS
65 # We need space, tab and new line, in precisely that order. Quoting is
66 # there to prevent editors from complaining about space-tab.
67 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
68 # splitting by setting IFS to empty value.)
69 as_nl='
71 IFS=" "" $as_nl"
73 # Find who we are. Look in the path if we contain no directory separator.
74 case $0 in
75 *[\\/]* ) as_myself=$0 ;;
76 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
77 for as_dir in $PATH
79 IFS=$as_save_IFS
80 test -z "$as_dir" && as_dir=.
81 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
82 done
83 IFS=$as_save_IFS
86 esac
87 # We did not find ourselves, most probably we were run as `sh COMMAND'
88 # in which case we are not to be found in the path.
89 if test "x$as_myself" = x; then
90 as_myself=$0
92 if test ! -f "$as_myself"; then
93 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
94 { (exit 1); exit 1; }
97 # Work around bugs in pre-3.0 UWIN ksh.
98 for as_var in ENV MAIL MAILPATH
99 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
100 done
101 PS1='$ '
102 PS2='> '
103 PS4='+ '
105 # NLS nuisances.
106 for as_var in \
107 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
108 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
109 LC_TELEPHONE LC_TIME
111 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
112 eval $as_var=C; export $as_var
113 else
114 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
116 done
118 # Required to use basename.
119 if expr a : '\(a\)' >/dev/null 2>&1 &&
120 test "X`expr 00001 : '.*\(...\)'`" = X001; then
121 as_expr=expr
122 else
123 as_expr=false
126 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
127 as_basename=basename
128 else
129 as_basename=false
133 # Name of the executable.
134 as_me=`$as_basename -- "$0" ||
135 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
136 X"$0" : 'X\(//\)$' \| \
137 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
138 echo X/"$0" |
139 sed '/^.*\/\([^/][^/]*\)\/*$/{
140 s//\1/
143 /^X\/\(\/\/\)$/{
144 s//\1/
147 /^X\/\(\/\).*/{
148 s//\1/
151 s/.*/./; q'`
153 # CDPATH.
154 $as_unset CDPATH
157 if test "x$CONFIG_SHELL" = x; then
158 if (eval ":") 2>/dev/null; then
159 as_have_required=yes
160 else
161 as_have_required=no
164 if test $as_have_required = yes && (eval ":
165 (as_func_return () {
166 (exit \$1)
168 as_func_success () {
169 as_func_return 0
171 as_func_failure () {
172 as_func_return 1
174 as_func_ret_success () {
175 return 0
177 as_func_ret_failure () {
178 return 1
181 exitcode=0
182 if as_func_success; then
184 else
185 exitcode=1
186 echo as_func_success failed.
189 if as_func_failure; then
190 exitcode=1
191 echo as_func_failure succeeded.
194 if as_func_ret_success; then
196 else
197 exitcode=1
198 echo as_func_ret_success failed.
201 if as_func_ret_failure; then
202 exitcode=1
203 echo as_func_ret_failure succeeded.
206 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
208 else
209 exitcode=1
210 echo positional parameters were not saved.
213 test \$exitcode = 0) || { (exit 1); exit 1; }
216 as_lineno_1=\$LINENO
217 as_lineno_2=\$LINENO
218 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
219 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
220 ") 2> /dev/null; then
222 else
223 as_candidate_shells=
224 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
225 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
227 IFS=$as_save_IFS
228 test -z "$as_dir" && as_dir=.
229 case $as_dir in
231 for as_base in sh bash ksh sh5; do
232 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
233 done;;
234 esac
235 done
236 IFS=$as_save_IFS
239 for as_shell in $as_candidate_shells $SHELL; do
240 # Try only shells that exist, to save several forks.
241 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
242 { ("$as_shell") 2> /dev/null <<\_ASEOF
243 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
244 emulate sh
245 NULLCMD=:
246 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
247 # is contrary to our usage. Disable this feature.
248 alias -g '${1+"$@"}'='"$@"'
249 setopt NO_GLOB_SUBST
250 else
251 case `(set -o) 2>/dev/null` in
252 *posix*) set -o posix ;;
253 esac
259 _ASEOF
260 }; then
261 CONFIG_SHELL=$as_shell
262 as_have_required=yes
263 if { "$as_shell" 2> /dev/null <<\_ASEOF
264 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
265 emulate sh
266 NULLCMD=:
267 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
268 # is contrary to our usage. Disable this feature.
269 alias -g '${1+"$@"}'='"$@"'
270 setopt NO_GLOB_SUBST
271 else
272 case `(set -o) 2>/dev/null` in
273 *posix*) set -o posix ;;
274 esac
280 (as_func_return () {
281 (exit $1)
283 as_func_success () {
284 as_func_return 0
286 as_func_failure () {
287 as_func_return 1
289 as_func_ret_success () {
290 return 0
292 as_func_ret_failure () {
293 return 1
296 exitcode=0
297 if as_func_success; then
299 else
300 exitcode=1
301 echo as_func_success failed.
304 if as_func_failure; then
305 exitcode=1
306 echo as_func_failure succeeded.
309 if as_func_ret_success; then
311 else
312 exitcode=1
313 echo as_func_ret_success failed.
316 if as_func_ret_failure; then
317 exitcode=1
318 echo as_func_ret_failure succeeded.
321 if ( set x; as_func_ret_success y && test x = "$1" ); then
323 else
324 exitcode=1
325 echo positional parameters were not saved.
328 test $exitcode = 0) || { (exit 1); exit 1; }
331 as_lineno_1=$LINENO
332 as_lineno_2=$LINENO
333 test "x$as_lineno_1" != "x$as_lineno_2" &&
334 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
336 _ASEOF
337 }; then
338 break
343 done
345 if test "x$CONFIG_SHELL" != x; then
346 for as_var in BASH_ENV ENV
347 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
348 done
349 export CONFIG_SHELL
350 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
354 if test $as_have_required = no; then
355 echo This script requires a shell more modern than all the
356 echo shells that I found on your system. Please install a
357 echo modern shell, or manually run the script under such a
358 echo shell if you do have one.
359 { (exit 1); exit 1; }
369 (eval "as_func_return () {
370 (exit \$1)
372 as_func_success () {
373 as_func_return 0
375 as_func_failure () {
376 as_func_return 1
378 as_func_ret_success () {
379 return 0
381 as_func_ret_failure () {
382 return 1
385 exitcode=0
386 if as_func_success; then
388 else
389 exitcode=1
390 echo as_func_success failed.
393 if as_func_failure; then
394 exitcode=1
395 echo as_func_failure succeeded.
398 if as_func_ret_success; then
400 else
401 exitcode=1
402 echo as_func_ret_success failed.
405 if as_func_ret_failure; then
406 exitcode=1
407 echo as_func_ret_failure succeeded.
410 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
412 else
413 exitcode=1
414 echo positional parameters were not saved.
417 test \$exitcode = 0") || {
418 echo No shell found that supports shell functions.
419 echo Please tell autoconf@gnu.org about your system,
420 echo including any error possibly output before this
421 echo message
426 as_lineno_1=$LINENO
427 as_lineno_2=$LINENO
428 test "x$as_lineno_1" != "x$as_lineno_2" &&
429 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
431 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
432 # uniformly replaced by the line number. The first 'sed' inserts a
433 # line-number line after each line using $LINENO; the second 'sed'
434 # does the real work. The second script uses 'N' to pair each
435 # line-number line with the line containing $LINENO, and appends
436 # trailing '-' during substitution so that $LINENO is not a special
437 # case at line end.
438 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
439 # scripts with optimization help from Paolo Bonzini. Blame Lee
440 # E. McMahon (1931-1989) for sed's syntax. :-)
441 sed -n '
443 /[$]LINENO/=
444 ' <$as_myself |
445 sed '
446 s/[$]LINENO.*/&-/
447 t lineno
449 :lineno
451 :loop
452 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
453 t loop
454 s/-\n.*//
455 ' >$as_me.lineno &&
456 chmod +x "$as_me.lineno" ||
457 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
458 { (exit 1); exit 1; }; }
460 # Don't try to exec as it changes $[0], causing all sort of problems
461 # (the dirname of $[0] is not the place where we might find the
462 # original and so on. Autoconf is especially sensitive to this).
463 . "./$as_me.lineno"
464 # Exit status is that of the last command.
465 exit
469 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
470 as_dirname=dirname
471 else
472 as_dirname=false
475 ECHO_C= ECHO_N= ECHO_T=
476 case `echo -n x` in
477 -n*)
478 case `echo 'x\c'` in
479 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
480 *) ECHO_C='\c';;
481 esac;;
483 ECHO_N='-n';;
484 esac
486 if expr a : '\(a\)' >/dev/null 2>&1 &&
487 test "X`expr 00001 : '.*\(...\)'`" = X001; then
488 as_expr=expr
489 else
490 as_expr=false
493 rm -f conf$$ conf$$.exe conf$$.file
494 if test -d conf$$.dir; then
495 rm -f conf$$.dir/conf$$.file
496 else
497 rm -f conf$$.dir
498 mkdir conf$$.dir
500 echo >conf$$.file
501 if ln -s conf$$.file conf$$ 2>/dev/null; then
502 as_ln_s='ln -s'
503 # ... but there are two gotchas:
504 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
505 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
506 # In both cases, we have to default to `cp -p'.
507 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
508 as_ln_s='cp -p'
509 elif ln conf$$.file conf$$ 2>/dev/null; then
510 as_ln_s=ln
511 else
512 as_ln_s='cp -p'
514 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
515 rmdir conf$$.dir 2>/dev/null
517 if mkdir -p . 2>/dev/null; then
518 as_mkdir_p=:
519 else
520 test -d ./-p && rmdir ./-p
521 as_mkdir_p=false
524 if test -x / >/dev/null 2>&1; then
525 as_test_x='test -x'
526 else
527 if ls -dL / >/dev/null 2>&1; then
528 as_ls_L_option=L
529 else
530 as_ls_L_option=
532 as_test_x='
533 eval sh -c '\''
534 if test -d "$1"; then
535 test -d "$1/.";
536 else
537 case $1 in
538 -*)set "./$1";;
539 esac;
540 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
541 ???[sx]*):;;*)false;;esac;fi
542 '\'' sh
545 as_executable_p=$as_test_x
547 # Sed expression to map a string onto a valid CPP name.
548 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
550 # Sed expression to map a string onto a valid variable name.
551 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
555 exec 7<&0 </dev/null 6>&1
557 # Name of the host.
558 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
559 # so uname gets run too.
560 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
563 # Initializations.
565 ac_default_prefix=/usr/local
566 ac_clean_files=
567 ac_config_libobj_dir=.
568 LIBOBJS=
569 cross_compiling=no
570 subdirs=
571 MFLAGS=
572 MAKEFLAGS=
573 SHELL=${CONFIG_SHELL-/bin/sh}
575 # Identity of this package.
576 PACKAGE_NAME='python'
577 PACKAGE_TARNAME='python'
578 PACKAGE_VERSION='2.7'
579 PACKAGE_STRING='python 2.7'
580 PACKAGE_BUGREPORT='http://bugs.python.org/'
582 ac_unique_file="Include/object.h"
583 # Factoring default headers for most tests.
584 ac_includes_default="\
585 #include <stdio.h>
586 #ifdef HAVE_SYS_TYPES_H
587 # include <sys/types.h>
588 #endif
589 #ifdef HAVE_SYS_STAT_H
590 # include <sys/stat.h>
591 #endif
592 #ifdef STDC_HEADERS
593 # include <stdlib.h>
594 # include <stddef.h>
595 #else
596 # ifdef HAVE_STDLIB_H
597 # include <stdlib.h>
598 # endif
599 #endif
600 #ifdef HAVE_STRING_H
601 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
602 # include <memory.h>
603 # endif
604 # include <string.h>
605 #endif
606 #ifdef HAVE_STRINGS_H
607 # include <strings.h>
608 #endif
609 #ifdef HAVE_INTTYPES_H
610 # include <inttypes.h>
611 #endif
612 #ifdef HAVE_STDINT_H
613 # include <stdint.h>
614 #endif
615 #ifdef HAVE_UNISTD_H
616 # include <unistd.h>
617 #endif"
619 ac_subst_vars='SHELL
620 PATH_SEPARATOR
621 PACKAGE_NAME
622 PACKAGE_TARNAME
623 PACKAGE_VERSION
624 PACKAGE_STRING
625 PACKAGE_BUGREPORT
626 exec_prefix
627 prefix
628 program_transform_name
629 bindir
630 sbindir
631 libexecdir
632 datarootdir
633 datadir
634 sysconfdir
635 sharedstatedir
636 localstatedir
637 includedir
638 oldincludedir
639 docdir
640 infodir
641 htmldir
642 dvidir
643 pdfdir
644 psdir
645 libdir
646 localedir
647 mandir
648 DEFS
649 ECHO_C
650 ECHO_N
651 ECHO_T
652 LIBS
653 build_alias
654 host_alias
655 target_alias
656 VERSION
657 SOVERSION
658 CONFIG_ARGS
659 UNIVERSALSDK
660 ARCH_RUN_32BIT
661 PYTHONFRAMEWORK
662 PYTHONFRAMEWORKIDENTIFIER
663 PYTHONFRAMEWORKDIR
664 PYTHONFRAMEWORKPREFIX
665 PYTHONFRAMEWORKINSTALLDIR
666 FRAMEWORKINSTALLFIRST
667 FRAMEWORKINSTALLLAST
668 FRAMEWORKALTINSTALLFIRST
669 FRAMEWORKALTINSTALLLAST
670 FRAMEWORKUNIXTOOLSPREFIX
671 MACHDEP
672 SGI_ABI
673 EXTRAPLATDIR
674 EXTRAMACHDEPPATH
675 CONFIGURE_MACOSX_DEPLOYMENT_TARGET
676 EXPORT_MACOSX_DEPLOYMENT_TARGET
678 CFLAGS
679 LDFLAGS
680 CPPFLAGS
681 ac_ct_CC
682 EXEEXT
683 OBJEXT
685 MAINCC
687 GREP
688 EGREP
689 BUILDEXEEXT
690 LIBRARY
691 LDLIBRARY
692 DLLLIBRARY
693 BLDLIBRARY
694 LDLIBRARYDIR
695 INSTSONAME
696 RUNSHARED
697 LINKCC
698 GNULD
699 RANLIB
701 ARFLAGS
702 SVNVERSION
703 INSTALL_PROGRAM
704 INSTALL_SCRIPT
705 INSTALL_DATA
708 BASECFLAGS
709 UNIVERSAL_ARCH_FLAGS
710 OTHER_LIBTOOL_OPT
711 LIBTOOL_CRUFT
713 LDSHARED
714 BLDSHARED
715 CCSHARED
716 LINKFORSHARED
717 CFLAGSFORSHARED
718 SHLIBS
719 USE_SIGNAL_MODULE
720 SIGNAL_OBJS
721 USE_THREAD_MODULE
722 LDLAST
723 THREADOBJ
724 DLINCLDIR
725 DYNLOADFILE
726 MACHDEP_OBJS
727 TRUE
728 LIBOBJS
729 HAVE_GETHOSTBYNAME_R_6_ARG
730 HAVE_GETHOSTBYNAME_R_5_ARG
731 HAVE_GETHOSTBYNAME_R_3_ARG
732 HAVE_GETHOSTBYNAME_R
733 HAVE_GETHOSTBYNAME
734 LIBM
735 LIBC
736 UNICODE_OBJS
737 THREADHEADERS
738 SRCDIRS
739 LTLIBOBJS'
740 ac_subst_files=''
741 ac_precious_vars='build_alias
742 host_alias
743 target_alias
745 CFLAGS
746 LDFLAGS
747 LIBS
748 CPPFLAGS
749 CPP'
752 # Initialize some variables set by options.
753 ac_init_help=
754 ac_init_version=false
755 # The variables have the same names as the options, with
756 # dashes changed to underlines.
757 cache_file=/dev/null
758 exec_prefix=NONE
759 no_create=
760 no_recursion=
761 prefix=NONE
762 program_prefix=NONE
763 program_suffix=NONE
764 program_transform_name=s,x,x,
765 silent=
766 site=
767 srcdir=
768 verbose=
769 x_includes=NONE
770 x_libraries=NONE
772 # Installation directory options.
773 # These are left unexpanded so users can "make install exec_prefix=/foo"
774 # and all the variables that are supposed to be based on exec_prefix
775 # by default will actually change.
776 # Use braces instead of parens because sh, perl, etc. also accept them.
777 # (The list follows the same order as the GNU Coding Standards.)
778 bindir='${exec_prefix}/bin'
779 sbindir='${exec_prefix}/sbin'
780 libexecdir='${exec_prefix}/libexec'
781 datarootdir='${prefix}/share'
782 datadir='${datarootdir}'
783 sysconfdir='${prefix}/etc'
784 sharedstatedir='${prefix}/com'
785 localstatedir='${prefix}/var'
786 includedir='${prefix}/include'
787 oldincludedir='/usr/include'
788 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
789 infodir='${datarootdir}/info'
790 htmldir='${docdir}'
791 dvidir='${docdir}'
792 pdfdir='${docdir}'
793 psdir='${docdir}'
794 libdir='${exec_prefix}/lib'
795 localedir='${datarootdir}/locale'
796 mandir='${datarootdir}/man'
798 ac_prev=
799 ac_dashdash=
800 for ac_option
802 # If the previous option needs an argument, assign it.
803 if test -n "$ac_prev"; then
804 eval $ac_prev=\$ac_option
805 ac_prev=
806 continue
809 case $ac_option in
810 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
811 *) ac_optarg=yes ;;
812 esac
814 # Accept the important Cygnus configure options, so we can diagnose typos.
816 case $ac_dashdash$ac_option in
818 ac_dashdash=yes ;;
820 -bindir | --bindir | --bindi | --bind | --bin | --bi)
821 ac_prev=bindir ;;
822 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
823 bindir=$ac_optarg ;;
825 -build | --build | --buil | --bui | --bu)
826 ac_prev=build_alias ;;
827 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
828 build_alias=$ac_optarg ;;
830 -cache-file | --cache-file | --cache-fil | --cache-fi \
831 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
832 ac_prev=cache_file ;;
833 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
834 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
835 cache_file=$ac_optarg ;;
837 --config-cache | -C)
838 cache_file=config.cache ;;
840 -datadir | --datadir | --datadi | --datad)
841 ac_prev=datadir ;;
842 -datadir=* | --datadir=* | --datadi=* | --datad=*)
843 datadir=$ac_optarg ;;
845 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
846 | --dataroo | --dataro | --datar)
847 ac_prev=datarootdir ;;
848 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
849 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
850 datarootdir=$ac_optarg ;;
852 -disable-* | --disable-*)
853 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
854 # Reject names that are not valid shell variable names.
855 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
856 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
857 { (exit 1); exit 1; }; }
858 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
859 eval enable_$ac_feature=no ;;
861 -docdir | --docdir | --docdi | --doc | --do)
862 ac_prev=docdir ;;
863 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
864 docdir=$ac_optarg ;;
866 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
867 ac_prev=dvidir ;;
868 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
869 dvidir=$ac_optarg ;;
871 -enable-* | --enable-*)
872 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
873 # Reject names that are not valid shell variable names.
874 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
875 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
876 { (exit 1); exit 1; }; }
877 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
878 eval enable_$ac_feature=\$ac_optarg ;;
880 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
881 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
882 | --exec | --exe | --ex)
883 ac_prev=exec_prefix ;;
884 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
885 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
886 | --exec=* | --exe=* | --ex=*)
887 exec_prefix=$ac_optarg ;;
889 -gas | --gas | --ga | --g)
890 # Obsolete; use --with-gas.
891 with_gas=yes ;;
893 -help | --help | --hel | --he | -h)
894 ac_init_help=long ;;
895 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
896 ac_init_help=recursive ;;
897 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
898 ac_init_help=short ;;
900 -host | --host | --hos | --ho)
901 ac_prev=host_alias ;;
902 -host=* | --host=* | --hos=* | --ho=*)
903 host_alias=$ac_optarg ;;
905 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
906 ac_prev=htmldir ;;
907 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
908 | --ht=*)
909 htmldir=$ac_optarg ;;
911 -includedir | --includedir | --includedi | --included | --include \
912 | --includ | --inclu | --incl | --inc)
913 ac_prev=includedir ;;
914 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
915 | --includ=* | --inclu=* | --incl=* | --inc=*)
916 includedir=$ac_optarg ;;
918 -infodir | --infodir | --infodi | --infod | --info | --inf)
919 ac_prev=infodir ;;
920 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
921 infodir=$ac_optarg ;;
923 -libdir | --libdir | --libdi | --libd)
924 ac_prev=libdir ;;
925 -libdir=* | --libdir=* | --libdi=* | --libd=*)
926 libdir=$ac_optarg ;;
928 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
929 | --libexe | --libex | --libe)
930 ac_prev=libexecdir ;;
931 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
932 | --libexe=* | --libex=* | --libe=*)
933 libexecdir=$ac_optarg ;;
935 -localedir | --localedir | --localedi | --localed | --locale)
936 ac_prev=localedir ;;
937 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
938 localedir=$ac_optarg ;;
940 -localstatedir | --localstatedir | --localstatedi | --localstated \
941 | --localstate | --localstat | --localsta | --localst | --locals)
942 ac_prev=localstatedir ;;
943 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
944 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
945 localstatedir=$ac_optarg ;;
947 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
948 ac_prev=mandir ;;
949 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
950 mandir=$ac_optarg ;;
952 -nfp | --nfp | --nf)
953 # Obsolete; use --without-fp.
954 with_fp=no ;;
956 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
957 | --no-cr | --no-c | -n)
958 no_create=yes ;;
960 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
961 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
962 no_recursion=yes ;;
964 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
965 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
966 | --oldin | --oldi | --old | --ol | --o)
967 ac_prev=oldincludedir ;;
968 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
969 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
970 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
971 oldincludedir=$ac_optarg ;;
973 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
974 ac_prev=prefix ;;
975 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
976 prefix=$ac_optarg ;;
978 -program-prefix | --program-prefix | --program-prefi | --program-pref \
979 | --program-pre | --program-pr | --program-p)
980 ac_prev=program_prefix ;;
981 -program-prefix=* | --program-prefix=* | --program-prefi=* \
982 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
983 program_prefix=$ac_optarg ;;
985 -program-suffix | --program-suffix | --program-suffi | --program-suff \
986 | --program-suf | --program-su | --program-s)
987 ac_prev=program_suffix ;;
988 -program-suffix=* | --program-suffix=* | --program-suffi=* \
989 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
990 program_suffix=$ac_optarg ;;
992 -program-transform-name | --program-transform-name \
993 | --program-transform-nam | --program-transform-na \
994 | --program-transform-n | --program-transform- \
995 | --program-transform | --program-transfor \
996 | --program-transfo | --program-transf \
997 | --program-trans | --program-tran \
998 | --progr-tra | --program-tr | --program-t)
999 ac_prev=program_transform_name ;;
1000 -program-transform-name=* | --program-transform-name=* \
1001 | --program-transform-nam=* | --program-transform-na=* \
1002 | --program-transform-n=* | --program-transform-=* \
1003 | --program-transform=* | --program-transfor=* \
1004 | --program-transfo=* | --program-transf=* \
1005 | --program-trans=* | --program-tran=* \
1006 | --progr-tra=* | --program-tr=* | --program-t=*)
1007 program_transform_name=$ac_optarg ;;
1009 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1010 ac_prev=pdfdir ;;
1011 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1012 pdfdir=$ac_optarg ;;
1014 -psdir | --psdir | --psdi | --psd | --ps)
1015 ac_prev=psdir ;;
1016 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1017 psdir=$ac_optarg ;;
1019 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1020 | -silent | --silent | --silen | --sile | --sil)
1021 silent=yes ;;
1023 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1024 ac_prev=sbindir ;;
1025 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1026 | --sbi=* | --sb=*)
1027 sbindir=$ac_optarg ;;
1029 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1030 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1031 | --sharedst | --shareds | --shared | --share | --shar \
1032 | --sha | --sh)
1033 ac_prev=sharedstatedir ;;
1034 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1035 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1036 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1037 | --sha=* | --sh=*)
1038 sharedstatedir=$ac_optarg ;;
1040 -site | --site | --sit)
1041 ac_prev=site ;;
1042 -site=* | --site=* | --sit=*)
1043 site=$ac_optarg ;;
1045 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1046 ac_prev=srcdir ;;
1047 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1048 srcdir=$ac_optarg ;;
1050 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1051 | --syscon | --sysco | --sysc | --sys | --sy)
1052 ac_prev=sysconfdir ;;
1053 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1054 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1055 sysconfdir=$ac_optarg ;;
1057 -target | --target | --targe | --targ | --tar | --ta | --t)
1058 ac_prev=target_alias ;;
1059 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1060 target_alias=$ac_optarg ;;
1062 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1063 verbose=yes ;;
1065 -version | --version | --versio | --versi | --vers | -V)
1066 ac_init_version=: ;;
1068 -with-* | --with-*)
1069 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1070 # Reject names that are not valid shell variable names.
1071 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1072 { echo "$as_me: error: invalid package name: $ac_package" >&2
1073 { (exit 1); exit 1; }; }
1074 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1075 eval with_$ac_package=\$ac_optarg ;;
1077 -without-* | --without-*)
1078 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1079 # Reject names that are not valid shell variable names.
1080 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1081 { echo "$as_me: error: invalid package name: $ac_package" >&2
1082 { (exit 1); exit 1; }; }
1083 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1084 eval with_$ac_package=no ;;
1086 --x)
1087 # Obsolete; use --with-x.
1088 with_x=yes ;;
1090 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1091 | --x-incl | --x-inc | --x-in | --x-i)
1092 ac_prev=x_includes ;;
1093 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1094 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1095 x_includes=$ac_optarg ;;
1097 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1098 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1099 ac_prev=x_libraries ;;
1100 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1101 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1102 x_libraries=$ac_optarg ;;
1104 -*) { echo "$as_me: error: unrecognized option: $ac_option
1105 Try \`$0 --help' for more information." >&2
1106 { (exit 1); exit 1; }; }
1109 *=*)
1110 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1111 # Reject names that are not valid shell variable names.
1112 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1113 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1114 { (exit 1); exit 1; }; }
1115 eval $ac_envvar=\$ac_optarg
1116 export $ac_envvar ;;
1119 # FIXME: should be removed in autoconf 3.0.
1120 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1121 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1122 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1123 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1126 esac
1127 done
1129 if test -n "$ac_prev"; then
1130 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1131 { echo "$as_me: error: missing argument to $ac_option" >&2
1132 { (exit 1); exit 1; }; }
1135 # Be sure to have absolute directory names.
1136 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1137 datadir sysconfdir sharedstatedir localstatedir includedir \
1138 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1139 libdir localedir mandir
1141 eval ac_val=\$$ac_var
1142 case $ac_val in
1143 [\\/$]* | ?:[\\/]* ) continue;;
1144 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1145 esac
1146 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1147 { (exit 1); exit 1; }; }
1148 done
1150 # There might be people who depend on the old broken behavior: `$host'
1151 # used to hold the argument of --host etc.
1152 # FIXME: To remove some day.
1153 build=$build_alias
1154 host=$host_alias
1155 target=$target_alias
1157 # FIXME: To remove some day.
1158 if test "x$host_alias" != x; then
1159 if test "x$build_alias" = x; then
1160 cross_compiling=maybe
1161 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1162 If a cross compiler is detected then cross compile mode will be used." >&2
1163 elif test "x$build_alias" != "x$host_alias"; then
1164 cross_compiling=yes
1168 ac_tool_prefix=
1169 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1171 test "$silent" = yes && exec 6>/dev/null
1174 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1175 ac_ls_di=`ls -di .` &&
1176 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1177 { echo "$as_me: error: Working directory cannot be determined" >&2
1178 { (exit 1); exit 1; }; }
1179 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1180 { echo "$as_me: error: pwd does not report name of working directory" >&2
1181 { (exit 1); exit 1; }; }
1184 # Find the source files, if location was not specified.
1185 if test -z "$srcdir"; then
1186 ac_srcdir_defaulted=yes
1187 # Try the directory containing this script, then the parent directory.
1188 ac_confdir=`$as_dirname -- "$0" ||
1189 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1190 X"$0" : 'X\(//\)[^/]' \| \
1191 X"$0" : 'X\(//\)$' \| \
1192 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1193 echo X"$0" |
1194 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1195 s//\1/
1198 /^X\(\/\/\)[^/].*/{
1199 s//\1/
1202 /^X\(\/\/\)$/{
1203 s//\1/
1206 /^X\(\/\).*/{
1207 s//\1/
1210 s/.*/./; q'`
1211 srcdir=$ac_confdir
1212 if test ! -r "$srcdir/$ac_unique_file"; then
1213 srcdir=..
1215 else
1216 ac_srcdir_defaulted=no
1218 if test ! -r "$srcdir/$ac_unique_file"; then
1219 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1220 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1221 { (exit 1); exit 1; }; }
1223 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1224 ac_abs_confdir=`(
1225 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1226 { (exit 1); exit 1; }; }
1227 pwd)`
1228 # When building in place, set srcdir=.
1229 if test "$ac_abs_confdir" = "$ac_pwd"; then
1230 srcdir=.
1232 # Remove unnecessary trailing slashes from srcdir.
1233 # Double slashes in file names in object file debugging info
1234 # mess up M-x gdb in Emacs.
1235 case $srcdir in
1236 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1237 esac
1238 for ac_var in $ac_precious_vars; do
1239 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1240 eval ac_env_${ac_var}_value=\$${ac_var}
1241 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1242 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1243 done
1246 # Report the --help message.
1248 if test "$ac_init_help" = "long"; then
1249 # Omit some internal or obsolete options to make the list less imposing.
1250 # This message is too long to be a string in the A/UX 3.1 sh.
1251 cat <<_ACEOF
1252 \`configure' configures python 2.7 to adapt to many kinds of systems.
1254 Usage: $0 [OPTION]... [VAR=VALUE]...
1256 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1257 VAR=VALUE. See below for descriptions of some of the useful variables.
1259 Defaults for the options are specified in brackets.
1261 Configuration:
1262 -h, --help display this help and exit
1263 --help=short display options specific to this package
1264 --help=recursive display the short help of all the included packages
1265 -V, --version display version information and exit
1266 -q, --quiet, --silent do not print \`checking...' messages
1267 --cache-file=FILE cache test results in FILE [disabled]
1268 -C, --config-cache alias for \`--cache-file=config.cache'
1269 -n, --no-create do not create output files
1270 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1272 Installation directories:
1273 --prefix=PREFIX install architecture-independent files in PREFIX
1274 [$ac_default_prefix]
1275 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1276 [PREFIX]
1278 By default, \`make install' will install all the files in
1279 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1280 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1281 for instance \`--prefix=\$HOME'.
1283 For better control, use the options below.
1285 Fine tuning of the installation directories:
1286 --bindir=DIR user executables [EPREFIX/bin]
1287 --sbindir=DIR system admin executables [EPREFIX/sbin]
1288 --libexecdir=DIR program executables [EPREFIX/libexec]
1289 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1290 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1291 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1292 --libdir=DIR object code libraries [EPREFIX/lib]
1293 --includedir=DIR C header files [PREFIX/include]
1294 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1295 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1296 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1297 --infodir=DIR info documentation [DATAROOTDIR/info]
1298 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1299 --mandir=DIR man documentation [DATAROOTDIR/man]
1300 --docdir=DIR documentation root [DATAROOTDIR/doc/python]
1301 --htmldir=DIR html documentation [DOCDIR]
1302 --dvidir=DIR dvi documentation [DOCDIR]
1303 --pdfdir=DIR pdf documentation [DOCDIR]
1304 --psdir=DIR ps documentation [DOCDIR]
1305 _ACEOF
1307 cat <<\_ACEOF
1308 _ACEOF
1311 if test -n "$ac_init_help"; then
1312 case $ac_init_help in
1313 short | recursive ) echo "Configuration of python 2.7:";;
1314 esac
1315 cat <<\_ACEOF
1317 Optional Features:
1318 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1319 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1320 --enable-universalsdk[=SDKDIR]
1321 Build against Mac OS X 10.4u SDK (ppc/i386)
1322 --enable-framework[=INSTALLDIR]
1323 Build (MacOSX|Darwin) framework
1324 --enable-shared disable/enable building shared python library
1325 --enable-profiling enable C-level code profiling
1326 --enable-toolbox-glue disable/enable MacOSX glue code for extensions
1327 --enable-ipv6 Enable ipv6 (with ipv4) support
1328 --disable-ipv6 Disable ipv6 support
1329 --enable-big-digits[=BITS]
1330 use big digits for Python longs [BITS=30]
1331 --enable-unicode[=ucs[24]]
1332 Enable Unicode strings (default is yes)
1334 Optional Packages:
1335 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1336 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1337 --with-universal-archs=ARCH
1338 select architectures for universal build ("32-bit",
1339 "64-bit", "3-way", "intel" 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-valgrind Enable Valgrind support
1366 --with-wctype-functions use wctype.h functions
1367 --with-fpectl enable SIGFPE catching
1368 --with-libm=STRING math library
1369 --with-libc=STRING C library
1371 Some influential environment variables:
1372 CC C compiler command
1373 CFLAGS C compiler flags
1374 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1375 nonstandard directory <lib dir>
1376 LIBS libraries to pass to the linker, e.g. -l<library>
1377 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1378 you have headers in a nonstandard directory <include dir>
1379 CPP C preprocessor
1381 Use these variables to override the choices made by `configure' or to help
1382 it to find libraries and programs with nonstandard names/locations.
1384 Report bugs to <http://bugs.python.org/>.
1385 _ACEOF
1386 ac_status=$?
1389 if test "$ac_init_help" = "recursive"; then
1390 # If there are subdirs, report their specific --help.
1391 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1392 test -d "$ac_dir" || continue
1393 ac_builddir=.
1395 case "$ac_dir" in
1396 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1398 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1399 # A ".." for each directory in $ac_dir_suffix.
1400 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1401 case $ac_top_builddir_sub in
1402 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1403 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1404 esac ;;
1405 esac
1406 ac_abs_top_builddir=$ac_pwd
1407 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1408 # for backward compatibility:
1409 ac_top_builddir=$ac_top_build_prefix
1411 case $srcdir in
1412 .) # We are building in place.
1413 ac_srcdir=.
1414 ac_top_srcdir=$ac_top_builddir_sub
1415 ac_abs_top_srcdir=$ac_pwd ;;
1416 [\\/]* | ?:[\\/]* ) # Absolute name.
1417 ac_srcdir=$srcdir$ac_dir_suffix;
1418 ac_top_srcdir=$srcdir
1419 ac_abs_top_srcdir=$srcdir ;;
1420 *) # Relative name.
1421 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1422 ac_top_srcdir=$ac_top_build_prefix$srcdir
1423 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1424 esac
1425 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1427 cd "$ac_dir" || { ac_status=$?; continue; }
1428 # Check for guested configure.
1429 if test -f "$ac_srcdir/configure.gnu"; then
1430 echo &&
1431 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1432 elif test -f "$ac_srcdir/configure"; then
1433 echo &&
1434 $SHELL "$ac_srcdir/configure" --help=recursive
1435 else
1436 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1437 fi || ac_status=$?
1438 cd "$ac_pwd" || { ac_status=$?; break; }
1439 done
1442 test -n "$ac_init_help" && exit $ac_status
1443 if $ac_init_version; then
1444 cat <<\_ACEOF
1445 python configure 2.7
1446 generated by GNU Autoconf 2.61
1448 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1449 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1450 This configure script is free software; the Free Software Foundation
1451 gives unlimited permission to copy, distribute and modify it.
1452 _ACEOF
1453 exit
1455 cat >config.log <<_ACEOF
1456 This file contains any messages produced by compilers while
1457 running configure, to aid debugging if configure makes a mistake.
1459 It was created by python $as_me 2.7, which was
1460 generated by GNU Autoconf 2.61. Invocation command line was
1462 $ $0 $@
1464 _ACEOF
1465 exec 5>>config.log
1467 cat <<_ASUNAME
1468 ## --------- ##
1469 ## Platform. ##
1470 ## --------- ##
1472 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1473 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1474 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1475 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1476 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1478 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1479 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1481 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1482 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1483 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1484 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1485 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1486 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1487 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1489 _ASUNAME
1491 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1492 for as_dir in $PATH
1494 IFS=$as_save_IFS
1495 test -z "$as_dir" && as_dir=.
1496 echo "PATH: $as_dir"
1497 done
1498 IFS=$as_save_IFS
1500 } >&5
1502 cat >&5 <<_ACEOF
1505 ## ----------- ##
1506 ## Core tests. ##
1507 ## ----------- ##
1509 _ACEOF
1512 # Keep a trace of the command line.
1513 # Strip out --no-create and --no-recursion so they do not pile up.
1514 # Strip out --silent because we don't want to record it for future runs.
1515 # Also quote any args containing shell meta-characters.
1516 # Make two passes to allow for proper duplicate-argument suppression.
1517 ac_configure_args=
1518 ac_configure_args0=
1519 ac_configure_args1=
1520 ac_must_keep_next=false
1521 for ac_pass in 1 2
1523 for ac_arg
1525 case $ac_arg in
1526 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1527 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1528 | -silent | --silent | --silen | --sile | --sil)
1529 continue ;;
1530 *\'*)
1531 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1532 esac
1533 case $ac_pass in
1534 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1536 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1537 if test $ac_must_keep_next = true; then
1538 ac_must_keep_next=false # Got value, back to normal.
1539 else
1540 case $ac_arg in
1541 *=* | --config-cache | -C | -disable-* | --disable-* \
1542 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1543 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1544 | -with-* | --with-* | -without-* | --without-* | --x)
1545 case "$ac_configure_args0 " in
1546 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1547 esac
1549 -* ) ac_must_keep_next=true ;;
1550 esac
1552 ac_configure_args="$ac_configure_args '$ac_arg'"
1554 esac
1555 done
1556 done
1557 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1558 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1560 # When interrupted or exit'd, cleanup temporary files, and complete
1561 # config.log. We remove comments because anyway the quotes in there
1562 # would cause problems or look ugly.
1563 # WARNING: Use '\'' to represent an apostrophe within the trap.
1564 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1565 trap 'exit_status=$?
1566 # Save into config.log some information that might help in debugging.
1568 echo
1570 cat <<\_ASBOX
1571 ## ---------------- ##
1572 ## Cache variables. ##
1573 ## ---------------- ##
1574 _ASBOX
1575 echo
1576 # The following way of writing the cache mishandles newlines in values,
1578 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1579 eval ac_val=\$$ac_var
1580 case $ac_val in #(
1581 *${as_nl}*)
1582 case $ac_var in #(
1583 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1584 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1585 esac
1586 case $ac_var in #(
1587 _ | IFS | as_nl) ;; #(
1588 *) $as_unset $ac_var ;;
1589 esac ;;
1590 esac
1591 done
1592 (set) 2>&1 |
1593 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1594 *${as_nl}ac_space=\ *)
1595 sed -n \
1596 "s/'\''/'\''\\\\'\'''\''/g;
1597 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1598 ;; #(
1600 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1602 esac |
1603 sort
1605 echo
1607 cat <<\_ASBOX
1608 ## ----------------- ##
1609 ## Output variables. ##
1610 ## ----------------- ##
1611 _ASBOX
1612 echo
1613 for ac_var in $ac_subst_vars
1615 eval ac_val=\$$ac_var
1616 case $ac_val in
1617 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1618 esac
1619 echo "$ac_var='\''$ac_val'\''"
1620 done | sort
1621 echo
1623 if test -n "$ac_subst_files"; then
1624 cat <<\_ASBOX
1625 ## ------------------- ##
1626 ## File substitutions. ##
1627 ## ------------------- ##
1628 _ASBOX
1629 echo
1630 for ac_var in $ac_subst_files
1632 eval ac_val=\$$ac_var
1633 case $ac_val in
1634 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1635 esac
1636 echo "$ac_var='\''$ac_val'\''"
1637 done | sort
1638 echo
1641 if test -s confdefs.h; then
1642 cat <<\_ASBOX
1643 ## ----------- ##
1644 ## confdefs.h. ##
1645 ## ----------- ##
1646 _ASBOX
1647 echo
1648 cat confdefs.h
1649 echo
1651 test "$ac_signal" != 0 &&
1652 echo "$as_me: caught signal $ac_signal"
1653 echo "$as_me: exit $exit_status"
1654 } >&5
1655 rm -f core *.core core.conftest.* &&
1656 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1657 exit $exit_status
1659 for ac_signal in 1 2 13 15; do
1660 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1661 done
1662 ac_signal=0
1664 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1665 rm -f -r conftest* confdefs.h
1667 # Predefined preprocessor variables.
1669 cat >>confdefs.h <<_ACEOF
1670 #define PACKAGE_NAME "$PACKAGE_NAME"
1671 _ACEOF
1674 cat >>confdefs.h <<_ACEOF
1675 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1676 _ACEOF
1679 cat >>confdefs.h <<_ACEOF
1680 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1681 _ACEOF
1684 cat >>confdefs.h <<_ACEOF
1685 #define PACKAGE_STRING "$PACKAGE_STRING"
1686 _ACEOF
1689 cat >>confdefs.h <<_ACEOF
1690 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1691 _ACEOF
1694 # Let the site file select an alternate cache file if it wants to.
1695 # Prefer explicitly selected file to automatically selected ones.
1696 if test -n "$CONFIG_SITE"; then
1697 set x "$CONFIG_SITE"
1698 elif test "x$prefix" != xNONE; then
1699 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1700 else
1701 set x "$ac_default_prefix/share/config.site" \
1702 "$ac_default_prefix/etc/config.site"
1704 shift
1705 for ac_site_file
1707 if test -r "$ac_site_file"; then
1708 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1709 echo "$as_me: loading site script $ac_site_file" >&6;}
1710 sed 's/^/| /' "$ac_site_file" >&5
1711 . "$ac_site_file"
1713 done
1715 if test -r "$cache_file"; then
1716 # Some versions of bash will fail to source /dev/null (special
1717 # files actually), so we avoid doing that.
1718 if test -f "$cache_file"; then
1719 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1720 echo "$as_me: loading cache $cache_file" >&6;}
1721 case $cache_file in
1722 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1723 *) . "./$cache_file";;
1724 esac
1726 else
1727 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1728 echo "$as_me: creating cache $cache_file" >&6;}
1729 >$cache_file
1732 # Check that the precious variables saved in the cache have kept the same
1733 # value.
1734 ac_cache_corrupted=false
1735 for ac_var in $ac_precious_vars; do
1736 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1737 eval ac_new_set=\$ac_env_${ac_var}_set
1738 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1739 eval ac_new_val=\$ac_env_${ac_var}_value
1740 case $ac_old_set,$ac_new_set in
1741 set,)
1742 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1743 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1744 ac_cache_corrupted=: ;;
1745 ,set)
1746 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1747 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1748 ac_cache_corrupted=: ;;
1749 ,);;
1751 if test "x$ac_old_val" != "x$ac_new_val"; then
1752 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1753 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1754 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1755 echo "$as_me: former value: $ac_old_val" >&2;}
1756 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1757 echo "$as_me: current value: $ac_new_val" >&2;}
1758 ac_cache_corrupted=:
1759 fi;;
1760 esac
1761 # Pass precious variables to config.status.
1762 if test "$ac_new_set" = set; then
1763 case $ac_new_val in
1764 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1765 *) ac_arg=$ac_var=$ac_new_val ;;
1766 esac
1767 case " $ac_configure_args " in
1768 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1769 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1770 esac
1772 done
1773 if $ac_cache_corrupted; then
1774 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1775 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1776 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1777 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1778 { (exit 1); exit 1; }; }
1805 ac_ext=c
1806 ac_cpp='$CPP $CPPFLAGS'
1807 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1808 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1809 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1813 ac_config_headers="$ac_config_headers pyconfig.h"
1817 if test "$prefix" != "/"; then
1818 prefix=`echo "$prefix" | sed -e 's/\/$//g'`
1826 # We don't use PACKAGE_ variables, and they cause conflicts
1827 # with other autoconf-based packages that include Python.h
1828 grep -v 'define PACKAGE_' <confdefs.h >confdefs.h.new
1829 rm confdefs.h
1830 mv confdefs.h.new confdefs.h
1833 VERSION=2.7
1836 SOVERSION=1.0
1838 # The later defininition of _XOPEN_SOURCE disables certain features
1839 # on Linux, so we need _GNU_SOURCE to re-enable them (makedev, tm_zone).
1841 cat >>confdefs.h <<\_ACEOF
1842 #define _GNU_SOURCE 1
1843 _ACEOF
1846 # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables
1847 # certain features on NetBSD, so we need _NETBSD_SOURCE to re-enable
1848 # them.
1850 cat >>confdefs.h <<\_ACEOF
1851 #define _NETBSD_SOURCE 1
1852 _ACEOF
1855 # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables
1856 # certain features on FreeBSD, so we need __BSD_VISIBLE to re-enable
1857 # them.
1859 cat >>confdefs.h <<\_ACEOF
1860 #define __BSD_VISIBLE 1
1861 _ACEOF
1864 # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables
1865 # u_int on Irix 5.3. Defining _BSD_TYPES brings it back.
1867 cat >>confdefs.h <<\_ACEOF
1868 #define _BSD_TYPES 1
1869 _ACEOF
1872 # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables
1873 # certain features on Mac OS X, so we need _DARWIN_C_SOURCE to re-enable
1874 # them.
1876 cat >>confdefs.h <<\_ACEOF
1877 #define _DARWIN_C_SOURCE 1
1878 _ACEOF
1882 define_xopen_source=yes
1884 # Arguments passed to configure.
1886 CONFIG_ARGS="$ac_configure_args"
1888 # Check whether --enable-universalsdk was given.
1889 if test "${enable_universalsdk+set}" = set; then
1890 enableval=$enable_universalsdk;
1891 case $enableval in
1892 yes)
1893 enableval=/Developer/SDKs/MacOSX10.4u.sdk
1895 esac
1896 case $enableval in
1898 UNIVERSALSDK=
1899 enable_universalsdk=
1902 UNIVERSALSDK=$enableval
1904 esac
1906 else
1908 UNIVERSALSDK=
1909 enable_universalsdk=
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"
1927 if test "${enable_universalsdk}" ; then
1929 else
1930 { { echo "$as_me:$LINENO: error: --with-universal-archs without --enable-universalsdk. See Mac/README" >&5
1931 echo "$as_me: error: --with-universal-archs without --enable-universalsdk. See Mac/README" >&2;}
1932 { (exit 1); exit 1; }; }
1935 else
1937 { echo "$as_me:$LINENO: result: 32-bit" >&5
1938 echo "${ECHO_T}32-bit" >&6; }
1946 # Check whether --with-framework-name was given.
1947 if test "${with_framework_name+set}" = set; then
1948 withval=$with_framework_name;
1949 if test "${enable_framework}"; then
1951 else
1952 { { echo "$as_me:$LINENO: error: --with-framework-name without --enable-framework. See Mac/README" >&5
1953 echo "$as_me: error: --with-framework-name without --enable-framework. See Mac/README" >&2;}
1954 { (exit 1); exit 1; }; }
1956 PYTHONFRAMEWORK=${withval}
1957 PYTHONFRAMEWORKDIR=${withval}.framework
1958 PYTHONFRAMEWORKIDENTIFIER=org.python.`echo $withval | tr 'A-Z' 'a-z'`
1960 else
1962 PYTHONFRAMEWORK=Python
1963 PYTHONFRAMEWORKDIR=Python.framework
1964 PYTHONFRAMEWORKIDENTIFIER=org.python.python
1968 # Check whether --enable-framework was given.
1969 if test "${enable_framework+set}" = set; then
1970 enableval=$enable_framework;
1971 case $enableval in
1972 yes)
1973 enableval=/Library/Frameworks
1974 esac
1975 case $enableval in
1977 PYTHONFRAMEWORK=
1978 PYTHONFRAMEWORKDIR=no-framework
1979 PYTHONFRAMEWORKPREFIX=
1980 PYTHONFRAMEWORKINSTALLDIR=
1981 FRAMEWORKINSTALLFIRST=
1982 FRAMEWORKINSTALLLAST=
1983 FRAMEWORKALTINSTALLFIRST=
1984 FRAMEWORKALTINSTALLLAST=
1985 if test "x${prefix}" = "xNONE"; then
1986 FRAMEWORKUNIXTOOLSPREFIX="${ac_default_prefix}"
1987 else
1988 FRAMEWORKUNIXTOOLSPREFIX="${prefix}"
1990 enable_framework=
1993 PYTHONFRAMEWORKPREFIX=$enableval
1994 PYTHONFRAMEWORKINSTALLDIR=$PYTHONFRAMEWORKPREFIX/$PYTHONFRAMEWORKDIR
1995 FRAMEWORKINSTALLFIRST="frameworkinstallstructure"
1996 FRAMEWORKALTINSTALLFIRST="frameworkinstallstructure bininstall maninstall"
1997 if test "$UNIVERSAL_ARCHS" = "all"
1998 then
1999 FRAMEWORKINSTALLLAST="frameworkinstallmaclib frameworkinstallapps4way frameworkinstallunixtools4way"
2000 FRAMEWORKALTINSTALLLAST="frameworkinstallmaclib frameworkinstallapps4way frameworkaltinstallunixtools4way"
2001 else
2002 FRAMEWORKINSTALLLAST="frameworkinstallmaclib frameworkinstallapps frameworkinstallunixtools"
2003 FRAMEWORKALTINSTALLLAST="frameworkinstallmaclib frameworkinstallapps frameworkaltinstallunixtools"
2006 if test "x${prefix}" = "xNONE" ; then
2007 FRAMEWORKUNIXTOOLSPREFIX="${ac_default_prefix}"
2008 else
2009 FRAMEWORKUNIXTOOLSPREFIX="${prefix}"
2011 prefix=$PYTHONFRAMEWORKINSTALLDIR/Versions/$VERSION
2013 # Add files for Mac specific code to the list of output
2014 # files:
2015 ac_config_files="$ac_config_files Mac/Makefile"
2017 ac_config_files="$ac_config_files Mac/PythonLauncher/Makefile"
2019 ac_config_files="$ac_config_files Mac/IDLE/Makefile"
2021 ac_config_files="$ac_config_files Mac/Resources/framework/Info.plist"
2023 ac_config_files="$ac_config_files Mac/Resources/app/Info.plist"
2025 esac
2027 else
2029 PYTHONFRAMEWORK=
2030 PYTHONFRAMEWORKDIR=no-framework
2031 PYTHONFRAMEWORKPREFIX=
2032 PYTHONFRAMEWORKINSTALLDIR=
2033 FRAMEWORKINSTALLFIRST=
2034 FRAMEWORKINSTALLLAST=
2035 FRAMEWORKALTINSTALLFIRST=
2036 FRAMEWORKALTINSTALLLAST=
2037 if test "x${prefix}" = "xNONE" ; then
2038 FRAMEWORKUNIXTOOLSPREFIX="${ac_default_prefix}"
2039 else
2040 FRAMEWORKUNIXTOOLSPREFIX="${prefix}"
2042 enable_framework=
2044 if test "$UNIVERSAL_ARCHS" = "all"
2045 then
2046 FRAMEWORKINSTALLLAST=update4wayuniversal
2047 FRAMEWORKALTINSTALLLAST=update4wayuniversal
2063 ##AC_ARG_WITH(dyld,
2064 ## AC_HELP_STRING(--with-dyld,
2065 ## Use (OpenStep|Rhapsody) dynamic linker))
2067 # Set name for machine-dependent library files
2069 { echo "$as_me:$LINENO: checking MACHDEP" >&5
2070 echo $ECHO_N "checking MACHDEP... $ECHO_C" >&6; }
2071 if test -z "$MACHDEP"
2072 then
2073 ac_sys_system=`uname -s`
2074 if test "$ac_sys_system" = "AIX" \
2075 -o "$ac_sys_system" = "UnixWare" -o "$ac_sys_system" = "OpenUNIX"; then
2076 ac_sys_release=`uname -v`
2077 else
2078 ac_sys_release=`uname -r`
2080 ac_md_system=`echo $ac_sys_system |
2081 tr -d '/ ' | tr '[A-Z]' '[a-z]'`
2082 ac_md_release=`echo $ac_sys_release |
2083 tr -d '/ ' | sed 's/^[A-Z]\.//' | sed 's/\..*//'`
2084 MACHDEP="$ac_md_system$ac_md_release"
2086 case $MACHDEP in
2087 cygwin*) MACHDEP="cygwin";;
2088 darwin*) MACHDEP="darwin";;
2089 atheos*) MACHDEP="atheos";;
2090 irix646) MACHDEP="irix6";;
2091 '') MACHDEP="unknown";;
2092 esac
2095 # Some systems cannot stand _XOPEN_SOURCE being defined at all; they
2096 # disable features if it is defined, without any means to access these
2097 # features as extensions. For these systems, we skip the definition of
2098 # _XOPEN_SOURCE. Before adding a system to the list to gain access to
2099 # some feature, make sure there is no alternative way to access this
2100 # feature. Also, when using wildcards, make sure you have verified the
2101 # need for not defining _XOPEN_SOURCE on all systems matching the
2102 # wildcard, and that the wildcard does not include future systems
2103 # (which may remove their limitations).
2104 case $ac_sys_system/$ac_sys_release in
2105 # On OpenBSD, select(2) is not available if _XOPEN_SOURCE is defined,
2106 # even though select is a POSIX function. Reported by J. Ribbens.
2107 # Reconfirmed for OpenBSD 3.3 by Zachary Hamm, for 3.4 by Jason Ish.
2108 OpenBSD/2.* | OpenBSD/3.[0123456789] | OpenBSD/4.[0123])
2109 define_xopen_source=no
2110 # OpenBSD undoes our definition of __BSD_VISIBLE if _XOPEN_SOURCE is
2111 # also defined. This can be overridden by defining _BSD_SOURCE
2112 # As this has a different meaning on Linux, only define it on OpenBSD
2114 cat >>confdefs.h <<\_ACEOF
2115 #define _BSD_SOURCE 1
2116 _ACEOF
2119 # Defining _XOPEN_SOURCE on NetBSD version prior to the introduction of
2120 # _NETBSD_SOURCE disables certain features (eg. setgroups). Reported by
2121 # Marc Recht
2122 NetBSD/1.5 | NetBSD/1.5.* | NetBSD/1.6 | NetBSD/1.6.* | NetBSD/1.6[A-S])
2123 define_xopen_source=no;;
2124 # On Solaris 2.6, sys/wait.h is inconsistent in the usage
2125 # of union __?sigval. Reported by Stuart Bishop.
2126 SunOS/5.6)
2127 define_xopen_source=no;;
2128 # On UnixWare 7, u_long is never defined with _XOPEN_SOURCE,
2129 # but used in /usr/include/netinet/tcp.h. Reported by Tim Rice.
2130 # Reconfirmed for 7.1.4 by Martin v. Loewis.
2131 OpenUNIX/8.0.0| UnixWare/7.1.[0-4])
2132 define_xopen_source=no;;
2133 # On OpenServer 5, u_short is never defined with _XOPEN_SOURCE,
2134 # but used in struct sockaddr.sa_family. Reported by Tim Rice.
2135 SCO_SV/3.2)
2136 define_xopen_source=no;;
2137 # On FreeBSD 4, the math functions C89 does not cover are never defined
2138 # with _XOPEN_SOURCE and __BSD_VISIBLE does not re-enable them.
2139 FreeBSD/4.*)
2140 define_xopen_source=no;;
2141 # On MacOS X 10.2, a bug in ncurses.h means that it craps out if
2142 # _XOPEN_EXTENDED_SOURCE is defined. Apparently, this is fixed in 10.3, which
2143 # identifies itself as Darwin/7.*
2144 # On Mac OS X 10.4, defining _POSIX_C_SOURCE or _XOPEN_SOURCE
2145 # disables platform specific features beyond repair.
2146 # On Mac OS X 10.3, defining _POSIX_C_SOURCE or _XOPEN_SOURCE
2147 # has no effect, don't bother defining them
2148 Darwin/[6789].*)
2149 define_xopen_source=no;;
2150 # On AIX 4 and 5.1, mbstate_t is defined only when _XOPEN_SOURCE == 500 but
2151 # used in wcsnrtombs() and mbsnrtowcs() even if _XOPEN_SOURCE is not defined
2152 # or has another value. By not (re)defining it, the defaults come in place.
2153 AIX/4)
2154 define_xopen_source=no;;
2155 AIX/5)
2156 if test `uname -r` -eq 1; then
2157 define_xopen_source=no
2160 # On QNX 6.3.2, defining _XOPEN_SOURCE prevents netdb.h from
2161 # defining NI_NUMERICHOST.
2162 QNX/6.3.2)
2163 define_xopen_source=no
2166 esac
2168 if test $define_xopen_source = yes
2169 then
2170 # On Solaris w/ g++ it appears that _XOPEN_SOURCE has to be
2171 # defined precisely as g++ defines it
2172 # Furthermore, on Solaris 10, XPG6 requires the use of a C99
2173 # compiler
2174 case $ac_sys_system/$ac_sys_release in
2175 SunOS/5.8|SunOS/5.9|SunOS/5.10)
2177 cat >>confdefs.h <<\_ACEOF
2178 #define _XOPEN_SOURCE 500
2179 _ACEOF
2184 cat >>confdefs.h <<\_ACEOF
2185 #define _XOPEN_SOURCE 600
2186 _ACEOF
2189 esac
2191 # On Tru64 Unix 4.0F, defining _XOPEN_SOURCE also requires
2192 # definition of _XOPEN_SOURCE_EXTENDED and _POSIX_C_SOURCE, or else
2193 # several APIs are not declared. Since this is also needed in some
2194 # cases for HP-UX, we define it globally.
2195 # except for Solaris 10, where it must not be defined,
2196 # as it implies XPG4.2
2197 case $ac_sys_system/$ac_sys_release in
2198 SunOS/5.10)
2202 cat >>confdefs.h <<\_ACEOF
2203 #define _XOPEN_SOURCE_EXTENDED 1
2204 _ACEOF
2207 esac
2210 cat >>confdefs.h <<\_ACEOF
2211 #define _POSIX_C_SOURCE 200112L
2212 _ACEOF
2218 # SGI compilers allow the specification of the both the ABI and the
2219 # ISA on the command line. Depending on the values of these switches,
2220 # different and often incompatable code will be generated.
2222 # The SGI_ABI variable can be used to modify the CC and LDFLAGS and
2223 # thus supply support for various ABI/ISA combinations. The MACHDEP
2224 # variable is also adjusted.
2227 if test ! -z "$SGI_ABI"
2228 then
2229 CC="cc $SGI_ABI"
2230 LDFLAGS="$SGI_ABI $LDFLAGS"
2231 MACHDEP=`echo "${MACHDEP}${SGI_ABI}" | sed 's/ *//g'`
2233 { echo "$as_me:$LINENO: result: $MACHDEP" >&5
2234 echo "${ECHO_T}$MACHDEP" >&6; }
2236 # And add extra plat-mac for darwin
2239 { echo "$as_me:$LINENO: checking EXTRAPLATDIR" >&5
2240 echo $ECHO_N "checking EXTRAPLATDIR... $ECHO_C" >&6; }
2241 if test -z "$EXTRAPLATDIR"
2242 then
2243 case $MACHDEP in
2244 darwin)
2245 EXTRAPLATDIR="\$(PLATMACDIRS)"
2246 EXTRAMACHDEPPATH="\$(PLATMACPATH)"
2249 EXTRAPLATDIR=""
2250 EXTRAMACHDEPPATH=""
2252 esac
2254 { echo "$as_me:$LINENO: result: $EXTRAPLATDIR" >&5
2255 echo "${ECHO_T}$EXTRAPLATDIR" >&6; }
2257 # Record the configure-time value of MACOSX_DEPLOYMENT_TARGET,
2258 # it may influence the way we can build extensions, so distutils
2259 # needs to check it
2262 CONFIGURE_MACOSX_DEPLOYMENT_TARGET=
2263 EXPORT_MACOSX_DEPLOYMENT_TARGET='#'
2265 { echo "$as_me:$LINENO: checking machine type as reported by uname -m" >&5
2266 echo $ECHO_N "checking machine type as reported by uname -m... $ECHO_C" >&6; }
2267 ac_sys_machine=`uname -m`
2268 { echo "$as_me:$LINENO: result: $ac_sys_machine" >&5
2269 echo "${ECHO_T}$ac_sys_machine" >&6; }
2271 # checks for alternative programs
2273 # compiler flags are generated in two sets, BASECFLAGS and OPT. OPT is just
2274 # for debug/optimization stuff. BASECFLAGS is for flags that are required
2275 # just to get things to compile and link. Users are free to override OPT
2276 # when running configure or make. The build should not break if they do.
2277 # BASECFLAGS should generally not be messed with, however.
2279 # XXX shouldn't some/most/all of this code be merged with the stuff later
2280 # on that fiddles with OPT and BASECFLAGS?
2281 { echo "$as_me:$LINENO: checking for --without-gcc" >&5
2282 echo $ECHO_N "checking for --without-gcc... $ECHO_C" >&6; }
2284 # Check whether --with-gcc was given.
2285 if test "${with_gcc+set}" = set; then
2286 withval=$with_gcc;
2287 case $withval in
2288 no) CC=${CC:-cc}
2289 without_gcc=yes;;
2290 yes) CC=gcc
2291 without_gcc=no;;
2292 *) CC=$withval
2293 without_gcc=$withval;;
2294 esac
2295 else
2297 case $ac_sys_system in
2298 AIX*) CC=cc_r
2299 without_gcc=;;
2300 BeOS*)
2301 case $BE_HOST_CPU in
2302 ppc)
2303 CC=mwcc
2304 without_gcc=yes
2305 BASECFLAGS="$BASECFLAGS -export pragma"
2306 OPT="$OPT -O"
2307 LDFLAGS="$LDFLAGS -nodup"
2309 x86)
2310 CC=gcc
2311 without_gcc=no
2312 OPT="$OPT -O"
2315 { { echo "$as_me:$LINENO: error: Unknown BeOS platform \"$BE_HOST_CPU\"" >&5
2316 echo "$as_me: error: Unknown BeOS platform \"$BE_HOST_CPU\"" >&2;}
2317 { (exit 1); exit 1; }; }
2319 esac
2320 AR="\$(srcdir)/Modules/ar_beos"
2321 RANLIB=:
2323 *) without_gcc=no;;
2324 esac
2327 { echo "$as_me:$LINENO: result: $without_gcc" >&5
2328 echo "${ECHO_T}$without_gcc" >&6; }
2330 # If the user switches compilers, we can't believe the cache
2331 if test ! -z "$ac_cv_prog_CC" -a ! -z "$CC" -a "$CC" != "$ac_cv_prog_CC"
2332 then
2333 { { echo "$as_me:$LINENO: error: cached CC is different -- throw away $cache_file
2334 (it is also a good idea to do 'make clean' before compiling)" >&5
2335 echo "$as_me: error: cached CC is different -- throw away $cache_file
2336 (it is also a good idea to do 'make clean' before compiling)" >&2;}
2337 { (exit 1); exit 1; }; }
2340 ac_ext=c
2341 ac_cpp='$CPP $CPPFLAGS'
2342 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2343 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2344 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2345 if test -n "$ac_tool_prefix"; then
2346 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2347 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2348 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2349 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2350 if test "${ac_cv_prog_CC+set}" = set; then
2351 echo $ECHO_N "(cached) $ECHO_C" >&6
2352 else
2353 if test -n "$CC"; then
2354 ac_cv_prog_CC="$CC" # Let the user override the test.
2355 else
2356 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2357 for as_dir in $PATH
2359 IFS=$as_save_IFS
2360 test -z "$as_dir" && as_dir=.
2361 for ac_exec_ext in '' $ac_executable_extensions; do
2362 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2363 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2364 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2365 break 2
2367 done
2368 done
2369 IFS=$as_save_IFS
2373 CC=$ac_cv_prog_CC
2374 if test -n "$CC"; then
2375 { echo "$as_me:$LINENO: result: $CC" >&5
2376 echo "${ECHO_T}$CC" >&6; }
2377 else
2378 { echo "$as_me:$LINENO: result: no" >&5
2379 echo "${ECHO_T}no" >&6; }
2384 if test -z "$ac_cv_prog_CC"; then
2385 ac_ct_CC=$CC
2386 # Extract the first word of "gcc", so it can be a program name with args.
2387 set dummy gcc; ac_word=$2
2388 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2389 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2390 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2391 echo $ECHO_N "(cached) $ECHO_C" >&6
2392 else
2393 if test -n "$ac_ct_CC"; then
2394 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2395 else
2396 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2397 for as_dir in $PATH
2399 IFS=$as_save_IFS
2400 test -z "$as_dir" && as_dir=.
2401 for ac_exec_ext in '' $ac_executable_extensions; do
2402 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2403 ac_cv_prog_ac_ct_CC="gcc"
2404 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2405 break 2
2407 done
2408 done
2409 IFS=$as_save_IFS
2413 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2414 if test -n "$ac_ct_CC"; then
2415 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2416 echo "${ECHO_T}$ac_ct_CC" >&6; }
2417 else
2418 { echo "$as_me:$LINENO: result: no" >&5
2419 echo "${ECHO_T}no" >&6; }
2422 if test "x$ac_ct_CC" = x; then
2423 CC=""
2424 else
2425 case $cross_compiling:$ac_tool_warned in
2426 yes:)
2427 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2428 whose name does not start with the host triplet. If you think this
2429 configuration is useful to you, please write to autoconf@gnu.org." >&5
2430 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2431 whose name does not start with the host triplet. If you think this
2432 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2433 ac_tool_warned=yes ;;
2434 esac
2435 CC=$ac_ct_CC
2437 else
2438 CC="$ac_cv_prog_CC"
2441 if test -z "$CC"; then
2442 if test -n "$ac_tool_prefix"; then
2443 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2444 set dummy ${ac_tool_prefix}cc; ac_word=$2
2445 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2446 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2447 if test "${ac_cv_prog_CC+set}" = set; then
2448 echo $ECHO_N "(cached) $ECHO_C" >&6
2449 else
2450 if test -n "$CC"; then
2451 ac_cv_prog_CC="$CC" # Let the user override the test.
2452 else
2453 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2454 for as_dir in $PATH
2456 IFS=$as_save_IFS
2457 test -z "$as_dir" && as_dir=.
2458 for ac_exec_ext in '' $ac_executable_extensions; do
2459 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2460 ac_cv_prog_CC="${ac_tool_prefix}cc"
2461 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2462 break 2
2464 done
2465 done
2466 IFS=$as_save_IFS
2470 CC=$ac_cv_prog_CC
2471 if test -n "$CC"; then
2472 { echo "$as_me:$LINENO: result: $CC" >&5
2473 echo "${ECHO_T}$CC" >&6; }
2474 else
2475 { echo "$as_me:$LINENO: result: no" >&5
2476 echo "${ECHO_T}no" >&6; }
2482 if test -z "$CC"; then
2483 # Extract the first word of "cc", so it can be a program name with args.
2484 set dummy cc; ac_word=$2
2485 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2486 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2487 if test "${ac_cv_prog_CC+set}" = set; then
2488 echo $ECHO_N "(cached) $ECHO_C" >&6
2489 else
2490 if test -n "$CC"; then
2491 ac_cv_prog_CC="$CC" # Let the user override the test.
2492 else
2493 ac_prog_rejected=no
2494 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2495 for as_dir in $PATH
2497 IFS=$as_save_IFS
2498 test -z "$as_dir" && as_dir=.
2499 for ac_exec_ext in '' $ac_executable_extensions; do
2500 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2501 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2502 ac_prog_rejected=yes
2503 continue
2505 ac_cv_prog_CC="cc"
2506 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2507 break 2
2509 done
2510 done
2511 IFS=$as_save_IFS
2513 if test $ac_prog_rejected = yes; then
2514 # We found a bogon in the path, so make sure we never use it.
2515 set dummy $ac_cv_prog_CC
2516 shift
2517 if test $# != 0; then
2518 # We chose a different compiler from the bogus one.
2519 # However, it has the same basename, so the bogon will be chosen
2520 # first if we set CC to just the basename; use the full file name.
2521 shift
2522 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2527 CC=$ac_cv_prog_CC
2528 if test -n "$CC"; then
2529 { echo "$as_me:$LINENO: result: $CC" >&5
2530 echo "${ECHO_T}$CC" >&6; }
2531 else
2532 { echo "$as_me:$LINENO: result: no" >&5
2533 echo "${ECHO_T}no" >&6; }
2538 if test -z "$CC"; then
2539 if test -n "$ac_tool_prefix"; then
2540 for ac_prog in cl.exe
2542 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2543 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2544 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2545 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2546 if test "${ac_cv_prog_CC+set}" = set; then
2547 echo $ECHO_N "(cached) $ECHO_C" >&6
2548 else
2549 if test -n "$CC"; then
2550 ac_cv_prog_CC="$CC" # Let the user override the test.
2551 else
2552 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2553 for as_dir in $PATH
2555 IFS=$as_save_IFS
2556 test -z "$as_dir" && as_dir=.
2557 for ac_exec_ext in '' $ac_executable_extensions; do
2558 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2559 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2560 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2561 break 2
2563 done
2564 done
2565 IFS=$as_save_IFS
2569 CC=$ac_cv_prog_CC
2570 if test -n "$CC"; then
2571 { echo "$as_me:$LINENO: result: $CC" >&5
2572 echo "${ECHO_T}$CC" >&6; }
2573 else
2574 { echo "$as_me:$LINENO: result: no" >&5
2575 echo "${ECHO_T}no" >&6; }
2579 test -n "$CC" && break
2580 done
2582 if test -z "$CC"; then
2583 ac_ct_CC=$CC
2584 for ac_prog in cl.exe
2586 # Extract the first word of "$ac_prog", so it can be a program name with args.
2587 set dummy $ac_prog; ac_word=$2
2588 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2589 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2590 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2591 echo $ECHO_N "(cached) $ECHO_C" >&6
2592 else
2593 if test -n "$ac_ct_CC"; then
2594 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2595 else
2596 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2597 for as_dir in $PATH
2599 IFS=$as_save_IFS
2600 test -z "$as_dir" && as_dir=.
2601 for ac_exec_ext in '' $ac_executable_extensions; do
2602 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2603 ac_cv_prog_ac_ct_CC="$ac_prog"
2604 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2605 break 2
2607 done
2608 done
2609 IFS=$as_save_IFS
2613 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2614 if test -n "$ac_ct_CC"; then
2615 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2616 echo "${ECHO_T}$ac_ct_CC" >&6; }
2617 else
2618 { echo "$as_me:$LINENO: result: no" >&5
2619 echo "${ECHO_T}no" >&6; }
2623 test -n "$ac_ct_CC" && break
2624 done
2626 if test "x$ac_ct_CC" = x; then
2627 CC=""
2628 else
2629 case $cross_compiling:$ac_tool_warned in
2630 yes:)
2631 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2632 whose name does not start with the host triplet. If you think this
2633 configuration is useful to you, please write to autoconf@gnu.org." >&5
2634 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2635 whose name does not start with the host triplet. If you think this
2636 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2637 ac_tool_warned=yes ;;
2638 esac
2639 CC=$ac_ct_CC
2646 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2647 See \`config.log' for more details." >&5
2648 echo "$as_me: error: no acceptable C compiler found in \$PATH
2649 See \`config.log' for more details." >&2;}
2650 { (exit 1); exit 1; }; }
2652 # Provide some information about the compiler.
2653 echo "$as_me:$LINENO: checking for C compiler version" >&5
2654 ac_compiler=`set X $ac_compile; echo $2`
2655 { (ac_try="$ac_compiler --version >&5"
2656 case "(($ac_try" in
2657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2658 *) ac_try_echo=$ac_try;;
2659 esac
2660 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2661 (eval "$ac_compiler --version >&5") 2>&5
2662 ac_status=$?
2663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2664 (exit $ac_status); }
2665 { (ac_try="$ac_compiler -v >&5"
2666 case "(($ac_try" in
2667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2668 *) ac_try_echo=$ac_try;;
2669 esac
2670 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2671 (eval "$ac_compiler -v >&5") 2>&5
2672 ac_status=$?
2673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2674 (exit $ac_status); }
2675 { (ac_try="$ac_compiler -V >&5"
2676 case "(($ac_try" in
2677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2678 *) ac_try_echo=$ac_try;;
2679 esac
2680 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2681 (eval "$ac_compiler -V >&5") 2>&5
2682 ac_status=$?
2683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2684 (exit $ac_status); }
2686 cat >conftest.$ac_ext <<_ACEOF
2687 /* confdefs.h. */
2688 _ACEOF
2689 cat confdefs.h >>conftest.$ac_ext
2690 cat >>conftest.$ac_ext <<_ACEOF
2691 /* end confdefs.h. */
2694 main ()
2698 return 0;
2700 _ACEOF
2701 ac_clean_files_save=$ac_clean_files
2702 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2703 # Try to create an executable without -o first, disregard a.out.
2704 # It will help us diagnose broken compilers, and finding out an intuition
2705 # of exeext.
2706 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2707 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2708 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2710 # List of possible output files, starting from the most likely.
2711 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2712 # only as a last resort. b.out is created by i960 compilers.
2713 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2715 # The IRIX 6 linker writes into existing files which may not be
2716 # executable, retaining their permissions. Remove them first so a
2717 # subsequent execution test works.
2718 ac_rmfiles=
2719 for ac_file in $ac_files
2721 case $ac_file in
2722 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2723 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2724 esac
2725 done
2726 rm -f $ac_rmfiles
2728 if { (ac_try="$ac_link_default"
2729 case "(($ac_try" in
2730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2731 *) ac_try_echo=$ac_try;;
2732 esac
2733 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2734 (eval "$ac_link_default") 2>&5
2735 ac_status=$?
2736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2737 (exit $ac_status); }; then
2738 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2739 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2740 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2741 # so that the user can short-circuit this test for compilers unknown to
2742 # Autoconf.
2743 for ac_file in $ac_files ''
2745 test -f "$ac_file" || continue
2746 case $ac_file in
2747 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2749 [ab].out )
2750 # We found the default executable, but exeext='' is most
2751 # certainly right.
2752 break;;
2753 *.* )
2754 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2755 then :; else
2756 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2758 # We set ac_cv_exeext here because the later test for it is not
2759 # safe: cross compilers may not add the suffix if given an `-o'
2760 # argument, so we may need to know it at that point already.
2761 # Even if this section looks crufty: it has the advantage of
2762 # actually working.
2763 break;;
2765 break;;
2766 esac
2767 done
2768 test "$ac_cv_exeext" = no && ac_cv_exeext=
2770 else
2771 ac_file=''
2774 { echo "$as_me:$LINENO: result: $ac_file" >&5
2775 echo "${ECHO_T}$ac_file" >&6; }
2776 if test -z "$ac_file"; then
2777 echo "$as_me: failed program was:" >&5
2778 sed 's/^/| /' conftest.$ac_ext >&5
2780 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2781 See \`config.log' for more details." >&5
2782 echo "$as_me: error: C compiler cannot create executables
2783 See \`config.log' for more details." >&2;}
2784 { (exit 77); exit 77; }; }
2787 ac_exeext=$ac_cv_exeext
2789 # Check that the compiler produces executables we can run. If not, either
2790 # the compiler is broken, or we cross compile.
2791 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2792 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2793 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2794 # If not cross compiling, check that we can run a simple program.
2795 if test "$cross_compiling" != yes; then
2796 if { ac_try='./$ac_file'
2797 { (case "(($ac_try" in
2798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2799 *) ac_try_echo=$ac_try;;
2800 esac
2801 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2802 (eval "$ac_try") 2>&5
2803 ac_status=$?
2804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2805 (exit $ac_status); }; }; then
2806 cross_compiling=no
2807 else
2808 if test "$cross_compiling" = maybe; then
2809 cross_compiling=yes
2810 else
2811 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2812 If you meant to cross compile, use \`--host'.
2813 See \`config.log' for more details." >&5
2814 echo "$as_me: error: cannot run C compiled programs.
2815 If you meant to cross compile, use \`--host'.
2816 See \`config.log' for more details." >&2;}
2817 { (exit 1); exit 1; }; }
2821 { echo "$as_me:$LINENO: result: yes" >&5
2822 echo "${ECHO_T}yes" >&6; }
2824 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2825 ac_clean_files=$ac_clean_files_save
2826 # Check that the compiler produces executables we can run. If not, either
2827 # the compiler is broken, or we cross compile.
2828 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2829 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2830 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2831 echo "${ECHO_T}$cross_compiling" >&6; }
2833 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2834 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2835 if { (ac_try="$ac_link"
2836 case "(($ac_try" in
2837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2838 *) ac_try_echo=$ac_try;;
2839 esac
2840 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2841 (eval "$ac_link") 2>&5
2842 ac_status=$?
2843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2844 (exit $ac_status); }; then
2845 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2846 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2847 # work properly (i.e., refer to `conftest.exe'), while it won't with
2848 # `rm'.
2849 for ac_file in conftest.exe conftest conftest.*; do
2850 test -f "$ac_file" || continue
2851 case $ac_file in
2852 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2853 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2854 break;;
2855 * ) break;;
2856 esac
2857 done
2858 else
2859 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2860 See \`config.log' for more details." >&5
2861 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2862 See \`config.log' for more details." >&2;}
2863 { (exit 1); exit 1; }; }
2866 rm -f conftest$ac_cv_exeext
2867 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2868 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2870 rm -f conftest.$ac_ext
2871 EXEEXT=$ac_cv_exeext
2872 ac_exeext=$EXEEXT
2873 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2874 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2875 if test "${ac_cv_objext+set}" = set; then
2876 echo $ECHO_N "(cached) $ECHO_C" >&6
2877 else
2878 cat >conftest.$ac_ext <<_ACEOF
2879 /* confdefs.h. */
2880 _ACEOF
2881 cat confdefs.h >>conftest.$ac_ext
2882 cat >>conftest.$ac_ext <<_ACEOF
2883 /* end confdefs.h. */
2886 main ()
2890 return 0;
2892 _ACEOF
2893 rm -f conftest.o conftest.obj
2894 if { (ac_try="$ac_compile"
2895 case "(($ac_try" in
2896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2897 *) ac_try_echo=$ac_try;;
2898 esac
2899 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2900 (eval "$ac_compile") 2>&5
2901 ac_status=$?
2902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2903 (exit $ac_status); }; then
2904 for ac_file in conftest.o conftest.obj conftest.*; do
2905 test -f "$ac_file" || continue;
2906 case $ac_file in
2907 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2908 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2909 break;;
2910 esac
2911 done
2912 else
2913 echo "$as_me: failed program was:" >&5
2914 sed 's/^/| /' conftest.$ac_ext >&5
2916 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2917 See \`config.log' for more details." >&5
2918 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2919 See \`config.log' for more details." >&2;}
2920 { (exit 1); exit 1; }; }
2923 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2925 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2926 echo "${ECHO_T}$ac_cv_objext" >&6; }
2927 OBJEXT=$ac_cv_objext
2928 ac_objext=$OBJEXT
2929 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2930 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2931 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2932 echo $ECHO_N "(cached) $ECHO_C" >&6
2933 else
2934 cat >conftest.$ac_ext <<_ACEOF
2935 /* confdefs.h. */
2936 _ACEOF
2937 cat confdefs.h >>conftest.$ac_ext
2938 cat >>conftest.$ac_ext <<_ACEOF
2939 /* end confdefs.h. */
2942 main ()
2944 #ifndef __GNUC__
2945 choke me
2946 #endif
2949 return 0;
2951 _ACEOF
2952 rm -f conftest.$ac_objext
2953 if { (ac_try="$ac_compile"
2954 case "(($ac_try" in
2955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2956 *) ac_try_echo=$ac_try;;
2957 esac
2958 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2959 (eval "$ac_compile") 2>conftest.er1
2960 ac_status=$?
2961 grep -v '^ *+' conftest.er1 >conftest.err
2962 rm -f conftest.er1
2963 cat conftest.err >&5
2964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2965 (exit $ac_status); } && {
2966 test -z "$ac_c_werror_flag" ||
2967 test ! -s conftest.err
2968 } && test -s conftest.$ac_objext; then
2969 ac_compiler_gnu=yes
2970 else
2971 echo "$as_me: failed program was:" >&5
2972 sed 's/^/| /' conftest.$ac_ext >&5
2974 ac_compiler_gnu=no
2977 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2978 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2981 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2982 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2983 GCC=`test $ac_compiler_gnu = yes && echo yes`
2984 ac_test_CFLAGS=${CFLAGS+set}
2985 ac_save_CFLAGS=$CFLAGS
2986 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2987 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2988 if test "${ac_cv_prog_cc_g+set}" = set; then
2989 echo $ECHO_N "(cached) $ECHO_C" >&6
2990 else
2991 ac_save_c_werror_flag=$ac_c_werror_flag
2992 ac_c_werror_flag=yes
2993 ac_cv_prog_cc_g=no
2994 CFLAGS="-g"
2995 cat >conftest.$ac_ext <<_ACEOF
2996 /* confdefs.h. */
2997 _ACEOF
2998 cat confdefs.h >>conftest.$ac_ext
2999 cat >>conftest.$ac_ext <<_ACEOF
3000 /* end confdefs.h. */
3003 main ()
3007 return 0;
3009 _ACEOF
3010 rm -f conftest.$ac_objext
3011 if { (ac_try="$ac_compile"
3012 case "(($ac_try" in
3013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3014 *) ac_try_echo=$ac_try;;
3015 esac
3016 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3017 (eval "$ac_compile") 2>conftest.er1
3018 ac_status=$?
3019 grep -v '^ *+' conftest.er1 >conftest.err
3020 rm -f conftest.er1
3021 cat conftest.err >&5
3022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3023 (exit $ac_status); } && {
3024 test -z "$ac_c_werror_flag" ||
3025 test ! -s conftest.err
3026 } && test -s conftest.$ac_objext; then
3027 ac_cv_prog_cc_g=yes
3028 else
3029 echo "$as_me: failed program was:" >&5
3030 sed 's/^/| /' conftest.$ac_ext >&5
3032 CFLAGS=""
3033 cat >conftest.$ac_ext <<_ACEOF
3034 /* confdefs.h. */
3035 _ACEOF
3036 cat confdefs.h >>conftest.$ac_ext
3037 cat >>conftest.$ac_ext <<_ACEOF
3038 /* end confdefs.h. */
3041 main ()
3045 return 0;
3047 _ACEOF
3048 rm -f conftest.$ac_objext
3049 if { (ac_try="$ac_compile"
3050 case "(($ac_try" in
3051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3052 *) ac_try_echo=$ac_try;;
3053 esac
3054 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3055 (eval "$ac_compile") 2>conftest.er1
3056 ac_status=$?
3057 grep -v '^ *+' conftest.er1 >conftest.err
3058 rm -f conftest.er1
3059 cat conftest.err >&5
3060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3061 (exit $ac_status); } && {
3062 test -z "$ac_c_werror_flag" ||
3063 test ! -s conftest.err
3064 } && test -s conftest.$ac_objext; then
3066 else
3067 echo "$as_me: failed program was:" >&5
3068 sed 's/^/| /' conftest.$ac_ext >&5
3070 ac_c_werror_flag=$ac_save_c_werror_flag
3071 CFLAGS="-g"
3072 cat >conftest.$ac_ext <<_ACEOF
3073 /* confdefs.h. */
3074 _ACEOF
3075 cat confdefs.h >>conftest.$ac_ext
3076 cat >>conftest.$ac_ext <<_ACEOF
3077 /* end confdefs.h. */
3080 main ()
3084 return 0;
3086 _ACEOF
3087 rm -f conftest.$ac_objext
3088 if { (ac_try="$ac_compile"
3089 case "(($ac_try" in
3090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3091 *) ac_try_echo=$ac_try;;
3092 esac
3093 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3094 (eval "$ac_compile") 2>conftest.er1
3095 ac_status=$?
3096 grep -v '^ *+' conftest.er1 >conftest.err
3097 rm -f conftest.er1
3098 cat conftest.err >&5
3099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3100 (exit $ac_status); } && {
3101 test -z "$ac_c_werror_flag" ||
3102 test ! -s conftest.err
3103 } && test -s conftest.$ac_objext; then
3104 ac_cv_prog_cc_g=yes
3105 else
3106 echo "$as_me: failed program was:" >&5
3107 sed 's/^/| /' conftest.$ac_ext >&5
3112 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3115 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3118 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3119 ac_c_werror_flag=$ac_save_c_werror_flag
3121 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3122 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3123 if test "$ac_test_CFLAGS" = set; then
3124 CFLAGS=$ac_save_CFLAGS
3125 elif test $ac_cv_prog_cc_g = yes; then
3126 if test "$GCC" = yes; then
3127 CFLAGS="-g -O2"
3128 else
3129 CFLAGS="-g"
3131 else
3132 if test "$GCC" = yes; then
3133 CFLAGS="-O2"
3134 else
3135 CFLAGS=
3138 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3139 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3140 if test "${ac_cv_prog_cc_c89+set}" = set; then
3141 echo $ECHO_N "(cached) $ECHO_C" >&6
3142 else
3143 ac_cv_prog_cc_c89=no
3144 ac_save_CC=$CC
3145 cat >conftest.$ac_ext <<_ACEOF
3146 /* confdefs.h. */
3147 _ACEOF
3148 cat confdefs.h >>conftest.$ac_ext
3149 cat >>conftest.$ac_ext <<_ACEOF
3150 /* end confdefs.h. */
3151 #include <stdarg.h>
3152 #include <stdio.h>
3153 #include <sys/types.h>
3154 #include <sys/stat.h>
3155 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3156 struct buf { int x; };
3157 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3158 static char *e (p, i)
3159 char **p;
3160 int i;
3162 return p[i];
3164 static char *f (char * (*g) (char **, int), char **p, ...)
3166 char *s;
3167 va_list v;
3168 va_start (v,p);
3169 s = g (p, va_arg (v,int));
3170 va_end (v);
3171 return s;
3174 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3175 function prototypes and stuff, but not '\xHH' hex character constants.
3176 These don't provoke an error unfortunately, instead are silently treated
3177 as 'x'. The following induces an error, until -std is added to get
3178 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3179 array size at least. It's necessary to write '\x00'==0 to get something
3180 that's true only with -std. */
3181 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3183 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3184 inside strings and character constants. */
3185 #define FOO(x) 'x'
3186 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3188 int test (int i, double x);
3189 struct s1 {int (*f) (int a);};
3190 struct s2 {int (*f) (double a);};
3191 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3192 int argc;
3193 char **argv;
3195 main ()
3197 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3199 return 0;
3201 _ACEOF
3202 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3203 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3205 CC="$ac_save_CC $ac_arg"
3206 rm -f conftest.$ac_objext
3207 if { (ac_try="$ac_compile"
3208 case "(($ac_try" in
3209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3210 *) ac_try_echo=$ac_try;;
3211 esac
3212 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3213 (eval "$ac_compile") 2>conftest.er1
3214 ac_status=$?
3215 grep -v '^ *+' conftest.er1 >conftest.err
3216 rm -f conftest.er1
3217 cat conftest.err >&5
3218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3219 (exit $ac_status); } && {
3220 test -z "$ac_c_werror_flag" ||
3221 test ! -s conftest.err
3222 } && test -s conftest.$ac_objext; then
3223 ac_cv_prog_cc_c89=$ac_arg
3224 else
3225 echo "$as_me: failed program was:" >&5
3226 sed 's/^/| /' conftest.$ac_ext >&5
3231 rm -f core conftest.err conftest.$ac_objext
3232 test "x$ac_cv_prog_cc_c89" != "xno" && break
3233 done
3234 rm -f conftest.$ac_ext
3235 CC=$ac_save_CC
3238 # AC_CACHE_VAL
3239 case "x$ac_cv_prog_cc_c89" in
3241 { echo "$as_me:$LINENO: result: none needed" >&5
3242 echo "${ECHO_T}none needed" >&6; } ;;
3243 xno)
3244 { echo "$as_me:$LINENO: result: unsupported" >&5
3245 echo "${ECHO_T}unsupported" >&6; } ;;
3247 CC="$CC $ac_cv_prog_cc_c89"
3248 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3249 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3250 esac
3253 ac_ext=c
3254 ac_cpp='$CPP $CPPFLAGS'
3255 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3256 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3257 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3262 { echo "$as_me:$LINENO: checking for --with-cxx-main=<compiler>" >&5
3263 echo $ECHO_N "checking for --with-cxx-main=<compiler>... $ECHO_C" >&6; }
3265 # Check whether --with-cxx_main was given.
3266 if test "${with_cxx_main+set}" = set; then
3267 withval=$with_cxx_main;
3269 case $withval in
3270 no) with_cxx_main=no
3271 MAINCC='$(CC)';;
3272 yes) with_cxx_main=yes
3273 MAINCC='$(CXX)';;
3274 *) with_cxx_main=yes
3275 MAINCC=$withval
3276 if test -z "$CXX"
3277 then
3278 CXX=$withval
3279 fi;;
3280 esac
3281 else
3283 with_cxx_main=no
3284 MAINCC='$(CC)'
3288 { echo "$as_me:$LINENO: result: $with_cxx_main" >&5
3289 echo "${ECHO_T}$with_cxx_main" >&6; }
3291 preset_cxx="$CXX"
3292 if test -z "$CXX"
3293 then
3294 case "$CC" in
3295 gcc) # Extract the first word of "g++", so it can be a program name with args.
3296 set dummy g++; ac_word=$2
3297 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3298 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3299 if test "${ac_cv_path_CXX+set}" = set; then
3300 echo $ECHO_N "(cached) $ECHO_C" >&6
3301 else
3302 case $CXX in
3303 [\\/]* | ?:[\\/]*)
3304 ac_cv_path_CXX="$CXX" # Let the user override the test with a path.
3307 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3308 for as_dir in notfound
3310 IFS=$as_save_IFS
3311 test -z "$as_dir" && as_dir=.
3312 for ac_exec_ext in '' $ac_executable_extensions; do
3313 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3314 ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext"
3315 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3316 break 2
3318 done
3319 done
3320 IFS=$as_save_IFS
3322 test -z "$ac_cv_path_CXX" && ac_cv_path_CXX="g++"
3324 esac
3326 CXX=$ac_cv_path_CXX
3327 if test -n "$CXX"; then
3328 { echo "$as_me:$LINENO: result: $CXX" >&5
3329 echo "${ECHO_T}$CXX" >&6; }
3330 else
3331 { echo "$as_me:$LINENO: result: no" >&5
3332 echo "${ECHO_T}no" >&6; }
3336 cc) # Extract the first word of "c++", so it can be a program name with args.
3337 set dummy c++; ac_word=$2
3338 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3339 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3340 if test "${ac_cv_path_CXX+set}" = set; then
3341 echo $ECHO_N "(cached) $ECHO_C" >&6
3342 else
3343 case $CXX in
3344 [\\/]* | ?:[\\/]*)
3345 ac_cv_path_CXX="$CXX" # Let the user override the test with a path.
3348 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3349 for as_dir in notfound
3351 IFS=$as_save_IFS
3352 test -z "$as_dir" && as_dir=.
3353 for ac_exec_ext in '' $ac_executable_extensions; do
3354 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3355 ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext"
3356 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3357 break 2
3359 done
3360 done
3361 IFS=$as_save_IFS
3363 test -z "$ac_cv_path_CXX" && ac_cv_path_CXX="c++"
3365 esac
3367 CXX=$ac_cv_path_CXX
3368 if test -n "$CXX"; then
3369 { echo "$as_me:$LINENO: result: $CXX" >&5
3370 echo "${ECHO_T}$CXX" >&6; }
3371 else
3372 { echo "$as_me:$LINENO: result: no" >&5
3373 echo "${ECHO_T}no" >&6; }
3377 esac
3378 if test "$CXX" = "notfound"
3379 then
3380 CXX=""
3383 if test -z "$CXX"
3384 then
3385 for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
3387 # Extract the first word of "$ac_prog", so it can be a program name with args.
3388 set dummy $ac_prog; ac_word=$2
3389 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3390 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3391 if test "${ac_cv_prog_CXX+set}" = set; then
3392 echo $ECHO_N "(cached) $ECHO_C" >&6
3393 else
3394 if test -n "$CXX"; then
3395 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3396 else
3397 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3398 for as_dir in $PATH
3400 IFS=$as_save_IFS
3401 test -z "$as_dir" && as_dir=.
3402 for ac_exec_ext in '' $ac_executable_extensions; do
3403 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3404 ac_cv_prog_CXX="$ac_prog"
3405 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3406 break 2
3408 done
3409 done
3410 IFS=$as_save_IFS
3414 CXX=$ac_cv_prog_CXX
3415 if test -n "$CXX"; then
3416 { echo "$as_me:$LINENO: result: $CXX" >&5
3417 echo "${ECHO_T}$CXX" >&6; }
3418 else
3419 { echo "$as_me:$LINENO: result: no" >&5
3420 echo "${ECHO_T}no" >&6; }
3424 test -n "$CXX" && break
3425 done
3426 test -n "$CXX" || CXX="notfound"
3428 if test "$CXX" = "notfound"
3429 then
3430 CXX=""
3433 if test "$preset_cxx" != "$CXX"
3434 then
3435 { echo "$as_me:$LINENO: WARNING:
3437 By default, distutils will build C++ extension modules with \"$CXX\".
3438 If this is not intended, then set CXX on the configure command line.
3439 " >&5
3440 echo "$as_me: WARNING:
3442 By default, distutils will build C++ extension modules with \"$CXX\".
3443 If this is not intended, then set CXX on the configure command line.
3444 " >&2;}
3448 # checks for UNIX variants that set C preprocessor variables
3450 ac_ext=c
3451 ac_cpp='$CPP $CPPFLAGS'
3452 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3453 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3454 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3455 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3456 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3457 # On Suns, sometimes $CPP names a directory.
3458 if test -n "$CPP" && test -d "$CPP"; then
3459 CPP=
3461 if test -z "$CPP"; then
3462 if test "${ac_cv_prog_CPP+set}" = set; then
3463 echo $ECHO_N "(cached) $ECHO_C" >&6
3464 else
3465 # Double quotes because CPP needs to be expanded
3466 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3468 ac_preproc_ok=false
3469 for ac_c_preproc_warn_flag in '' yes
3471 # Use a header file that comes with gcc, so configuring glibc
3472 # with a fresh cross-compiler works.
3473 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3474 # <limits.h> exists even on freestanding compilers.
3475 # On the NeXT, cc -E runs the code through the compiler's parser,
3476 # not just through cpp. "Syntax error" is here to catch this case.
3477 cat >conftest.$ac_ext <<_ACEOF
3478 /* confdefs.h. */
3479 _ACEOF
3480 cat confdefs.h >>conftest.$ac_ext
3481 cat >>conftest.$ac_ext <<_ACEOF
3482 /* end confdefs.h. */
3483 #ifdef __STDC__
3484 # include <limits.h>
3485 #else
3486 # include <assert.h>
3487 #endif
3488 Syntax error
3489 _ACEOF
3490 if { (ac_try="$ac_cpp conftest.$ac_ext"
3491 case "(($ac_try" in
3492 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3493 *) ac_try_echo=$ac_try;;
3494 esac
3495 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3496 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3497 ac_status=$?
3498 grep -v '^ *+' conftest.er1 >conftest.err
3499 rm -f conftest.er1
3500 cat conftest.err >&5
3501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3502 (exit $ac_status); } >/dev/null && {
3503 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3504 test ! -s conftest.err
3505 }; then
3507 else
3508 echo "$as_me: failed program was:" >&5
3509 sed 's/^/| /' conftest.$ac_ext >&5
3511 # Broken: fails on valid input.
3512 continue
3515 rm -f conftest.err conftest.$ac_ext
3517 # OK, works on sane cases. Now check whether nonexistent headers
3518 # can be detected and how.
3519 cat >conftest.$ac_ext <<_ACEOF
3520 /* confdefs.h. */
3521 _ACEOF
3522 cat confdefs.h >>conftest.$ac_ext
3523 cat >>conftest.$ac_ext <<_ACEOF
3524 /* end confdefs.h. */
3525 #include <ac_nonexistent.h>
3526 _ACEOF
3527 if { (ac_try="$ac_cpp conftest.$ac_ext"
3528 case "(($ac_try" in
3529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3530 *) ac_try_echo=$ac_try;;
3531 esac
3532 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3533 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3534 ac_status=$?
3535 grep -v '^ *+' conftest.er1 >conftest.err
3536 rm -f conftest.er1
3537 cat conftest.err >&5
3538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3539 (exit $ac_status); } >/dev/null && {
3540 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3541 test ! -s conftest.err
3542 }; then
3543 # Broken: success on invalid input.
3544 continue
3545 else
3546 echo "$as_me: failed program was:" >&5
3547 sed 's/^/| /' conftest.$ac_ext >&5
3549 # Passes both tests.
3550 ac_preproc_ok=:
3551 break
3554 rm -f conftest.err conftest.$ac_ext
3556 done
3557 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3558 rm -f conftest.err conftest.$ac_ext
3559 if $ac_preproc_ok; then
3560 break
3563 done
3564 ac_cv_prog_CPP=$CPP
3567 CPP=$ac_cv_prog_CPP
3568 else
3569 ac_cv_prog_CPP=$CPP
3571 { echo "$as_me:$LINENO: result: $CPP" >&5
3572 echo "${ECHO_T}$CPP" >&6; }
3573 ac_preproc_ok=false
3574 for ac_c_preproc_warn_flag in '' yes
3576 # Use a header file that comes with gcc, so configuring glibc
3577 # with a fresh cross-compiler works.
3578 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3579 # <limits.h> exists even on freestanding compilers.
3580 # On the NeXT, cc -E runs the code through the compiler's parser,
3581 # not just through cpp. "Syntax error" is here to catch this case.
3582 cat >conftest.$ac_ext <<_ACEOF
3583 /* confdefs.h. */
3584 _ACEOF
3585 cat confdefs.h >>conftest.$ac_ext
3586 cat >>conftest.$ac_ext <<_ACEOF
3587 /* end confdefs.h. */
3588 #ifdef __STDC__
3589 # include <limits.h>
3590 #else
3591 # include <assert.h>
3592 #endif
3593 Syntax error
3594 _ACEOF
3595 if { (ac_try="$ac_cpp conftest.$ac_ext"
3596 case "(($ac_try" in
3597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3598 *) ac_try_echo=$ac_try;;
3599 esac
3600 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3601 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3602 ac_status=$?
3603 grep -v '^ *+' conftest.er1 >conftest.err
3604 rm -f conftest.er1
3605 cat conftest.err >&5
3606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3607 (exit $ac_status); } >/dev/null && {
3608 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3609 test ! -s conftest.err
3610 }; then
3612 else
3613 echo "$as_me: failed program was:" >&5
3614 sed 's/^/| /' conftest.$ac_ext >&5
3616 # Broken: fails on valid input.
3617 continue
3620 rm -f conftest.err conftest.$ac_ext
3622 # OK, works on sane cases. Now check whether nonexistent headers
3623 # can be detected and how.
3624 cat >conftest.$ac_ext <<_ACEOF
3625 /* confdefs.h. */
3626 _ACEOF
3627 cat confdefs.h >>conftest.$ac_ext
3628 cat >>conftest.$ac_ext <<_ACEOF
3629 /* end confdefs.h. */
3630 #include <ac_nonexistent.h>
3631 _ACEOF
3632 if { (ac_try="$ac_cpp conftest.$ac_ext"
3633 case "(($ac_try" in
3634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3635 *) ac_try_echo=$ac_try;;
3636 esac
3637 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3638 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3639 ac_status=$?
3640 grep -v '^ *+' conftest.er1 >conftest.err
3641 rm -f conftest.er1
3642 cat conftest.err >&5
3643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3644 (exit $ac_status); } >/dev/null && {
3645 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3646 test ! -s conftest.err
3647 }; then
3648 # Broken: success on invalid input.
3649 continue
3650 else
3651 echo "$as_me: failed program was:" >&5
3652 sed 's/^/| /' conftest.$ac_ext >&5
3654 # Passes both tests.
3655 ac_preproc_ok=:
3656 break
3659 rm -f conftest.err conftest.$ac_ext
3661 done
3662 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3663 rm -f conftest.err conftest.$ac_ext
3664 if $ac_preproc_ok; then
3666 else
3667 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3668 See \`config.log' for more details." >&5
3669 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3670 See \`config.log' for more details." >&2;}
3671 { (exit 1); exit 1; }; }
3674 ac_ext=c
3675 ac_cpp='$CPP $CPPFLAGS'
3676 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3677 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3678 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3681 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3682 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3683 if test "${ac_cv_path_GREP+set}" = set; then
3684 echo $ECHO_N "(cached) $ECHO_C" >&6
3685 else
3686 # Extract the first word of "grep ggrep" to use in msg output
3687 if test -z "$GREP"; then
3688 set dummy grep ggrep; ac_prog_name=$2
3689 if test "${ac_cv_path_GREP+set}" = set; then
3690 echo $ECHO_N "(cached) $ECHO_C" >&6
3691 else
3692 ac_path_GREP_found=false
3693 # Loop through the user's path and test for each of PROGNAME-LIST
3694 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3695 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3697 IFS=$as_save_IFS
3698 test -z "$as_dir" && as_dir=.
3699 for ac_prog in grep ggrep; do
3700 for ac_exec_ext in '' $ac_executable_extensions; do
3701 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3702 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3703 # Check for GNU ac_path_GREP and select it if it is found.
3704 # Check for GNU $ac_path_GREP
3705 case `"$ac_path_GREP" --version 2>&1` in
3706 *GNU*)
3707 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3709 ac_count=0
3710 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3711 while :
3713 cat "conftest.in" "conftest.in" >"conftest.tmp"
3714 mv "conftest.tmp" "conftest.in"
3715 cp "conftest.in" "conftest.nl"
3716 echo 'GREP' >> "conftest.nl"
3717 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3718 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3719 ac_count=`expr $ac_count + 1`
3720 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3721 # Best one so far, save it but keep looking for a better one
3722 ac_cv_path_GREP="$ac_path_GREP"
3723 ac_path_GREP_max=$ac_count
3725 # 10*(2^10) chars as input seems more than enough
3726 test $ac_count -gt 10 && break
3727 done
3728 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3729 esac
3732 $ac_path_GREP_found && break 3
3733 done
3734 done
3736 done
3737 IFS=$as_save_IFS
3742 GREP="$ac_cv_path_GREP"
3743 if test -z "$GREP"; then
3744 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3745 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3746 { (exit 1); exit 1; }; }
3749 else
3750 ac_cv_path_GREP=$GREP
3755 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3756 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3757 GREP="$ac_cv_path_GREP"
3760 { echo "$as_me:$LINENO: checking for egrep" >&5
3761 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3762 if test "${ac_cv_path_EGREP+set}" = set; then
3763 echo $ECHO_N "(cached) $ECHO_C" >&6
3764 else
3765 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3766 then ac_cv_path_EGREP="$GREP -E"
3767 else
3768 # Extract the first word of "egrep" to use in msg output
3769 if test -z "$EGREP"; then
3770 set dummy egrep; ac_prog_name=$2
3771 if test "${ac_cv_path_EGREP+set}" = set; then
3772 echo $ECHO_N "(cached) $ECHO_C" >&6
3773 else
3774 ac_path_EGREP_found=false
3775 # Loop through the user's path and test for each of PROGNAME-LIST
3776 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3777 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3779 IFS=$as_save_IFS
3780 test -z "$as_dir" && as_dir=.
3781 for ac_prog in egrep; do
3782 for ac_exec_ext in '' $ac_executable_extensions; do
3783 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3784 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3785 # Check for GNU ac_path_EGREP and select it if it is found.
3786 # Check for GNU $ac_path_EGREP
3787 case `"$ac_path_EGREP" --version 2>&1` in
3788 *GNU*)
3789 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3791 ac_count=0
3792 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3793 while :
3795 cat "conftest.in" "conftest.in" >"conftest.tmp"
3796 mv "conftest.tmp" "conftest.in"
3797 cp "conftest.in" "conftest.nl"
3798 echo 'EGREP' >> "conftest.nl"
3799 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3800 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3801 ac_count=`expr $ac_count + 1`
3802 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3803 # Best one so far, save it but keep looking for a better one
3804 ac_cv_path_EGREP="$ac_path_EGREP"
3805 ac_path_EGREP_max=$ac_count
3807 # 10*(2^10) chars as input seems more than enough
3808 test $ac_count -gt 10 && break
3809 done
3810 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3811 esac
3814 $ac_path_EGREP_found && break 3
3815 done
3816 done
3818 done
3819 IFS=$as_save_IFS
3824 EGREP="$ac_cv_path_EGREP"
3825 if test -z "$EGREP"; then
3826 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3827 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3828 { (exit 1); exit 1; }; }
3831 else
3832 ac_cv_path_EGREP=$EGREP
3838 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3839 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3840 EGREP="$ac_cv_path_EGREP"
3844 { echo "$as_me:$LINENO: checking for AIX" >&5
3845 echo $ECHO_N "checking for AIX... $ECHO_C" >&6; }
3846 cat >conftest.$ac_ext <<_ACEOF
3847 /* confdefs.h. */
3848 _ACEOF
3849 cat confdefs.h >>conftest.$ac_ext
3850 cat >>conftest.$ac_ext <<_ACEOF
3851 /* end confdefs.h. */
3852 #ifdef _AIX
3854 #endif
3856 _ACEOF
3857 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3858 $EGREP "yes" >/dev/null 2>&1; then
3859 { echo "$as_me:$LINENO: result: yes" >&5
3860 echo "${ECHO_T}yes" >&6; }
3861 cat >>confdefs.h <<\_ACEOF
3862 #define _ALL_SOURCE 1
3863 _ACEOF
3865 else
3866 { echo "$as_me:$LINENO: result: no" >&5
3867 echo "${ECHO_T}no" >&6; }
3869 rm -f conftest*
3873 # Check for unsupported systems
3874 case $ac_sys_system/$ac_sys_release in
3875 atheos*|Linux*/1*)
3876 echo This system \($ac_sys_system/$ac_sys_release\) is no longer supported.
3877 echo See README for details.
3878 exit 1;;
3879 esac
3882 { echo "$as_me:$LINENO: checking for --with-suffix" >&5
3883 echo $ECHO_N "checking for --with-suffix... $ECHO_C" >&6; }
3885 # Check whether --with-suffix was given.
3886 if test "${with_suffix+set}" = set; then
3887 withval=$with_suffix;
3888 case $withval in
3889 no) EXEEXT=;;
3890 yes) EXEEXT=.exe;;
3891 *) EXEEXT=$withval;;
3892 esac
3895 { echo "$as_me:$LINENO: result: $EXEEXT" >&5
3896 echo "${ECHO_T}$EXEEXT" >&6; }
3898 # Test whether we're running on a non-case-sensitive system, in which
3899 # case we give a warning if no ext is given
3901 { echo "$as_me:$LINENO: checking for case-insensitive build directory" >&5
3902 echo $ECHO_N "checking for case-insensitive build directory... $ECHO_C" >&6; }
3903 if test ! -d CaseSensitiveTestDir; then
3904 mkdir CaseSensitiveTestDir
3907 if test -d casesensitivetestdir
3908 then
3909 { echo "$as_me:$LINENO: result: yes" >&5
3910 echo "${ECHO_T}yes" >&6; }
3911 BUILDEXEEXT=.exe
3912 else
3913 { echo "$as_me:$LINENO: result: no" >&5
3914 echo "${ECHO_T}no" >&6; }
3915 BUILDEXEEXT=$EXEEXT
3917 rmdir CaseSensitiveTestDir
3919 case $MACHDEP in
3920 bsdos*)
3921 case $CC in
3922 gcc) CC="$CC -D_HAVE_BSDI";;
3923 esac;;
3924 esac
3926 case $ac_sys_system in
3927 hp*|HP*)
3928 case $CC in
3929 cc|*/cc) CC="$CC -Ae";;
3930 esac;;
3931 SunOS*)
3932 # Some functions have a prototype only with that define, e.g. confstr
3934 cat >>confdefs.h <<\_ACEOF
3935 #define __EXTENSIONS__ 1
3936 _ACEOF
3939 esac
3943 { echo "$as_me:$LINENO: checking LIBRARY" >&5
3944 echo $ECHO_N "checking LIBRARY... $ECHO_C" >&6; }
3945 if test -z "$LIBRARY"
3946 then
3947 LIBRARY='libpython$(VERSION).a'
3949 { echo "$as_me:$LINENO: result: $LIBRARY" >&5
3950 echo "${ECHO_T}$LIBRARY" >&6; }
3952 # LDLIBRARY is the name of the library to link against (as opposed to the
3953 # name of the library into which to insert object files). BLDLIBRARY is also
3954 # the library to link against, usually. On Mac OS X frameworks, BLDLIBRARY
3955 # is blank as the main program is not linked directly against LDLIBRARY.
3956 # LDLIBRARYDIR is the path to LDLIBRARY, which is made in a subdirectory. On
3957 # systems without shared libraries, LDLIBRARY is the same as LIBRARY
3958 # (defined in the Makefiles). On Cygwin LDLIBRARY is the import library,
3959 # DLLLIBRARY is the shared (i.e., DLL) library.
3961 # RUNSHARED is used to run shared python without installed libraries
3963 # INSTSONAME is the name of the shared library that will be use to install
3964 # on the system - some systems like version suffix, others don't
3971 LDLIBRARY="$LIBRARY"
3972 BLDLIBRARY='$(LDLIBRARY)'
3973 INSTSONAME='$(LDLIBRARY)'
3974 DLLLIBRARY=''
3975 LDLIBRARYDIR=''
3976 RUNSHARED=''
3978 # LINKCC is the command that links the python executable -- default is $(CC).
3979 # If CXX is set, and if it is needed to link a main function that was
3980 # compiled with CXX, LINKCC is CXX instead. Always using CXX is undesirable:
3981 # python might then depend on the C++ runtime
3982 # This is altered for AIX in order to build the export list before
3983 # linking.
3985 { echo "$as_me:$LINENO: checking LINKCC" >&5
3986 echo $ECHO_N "checking LINKCC... $ECHO_C" >&6; }
3987 if test -z "$LINKCC"
3988 then
3989 LINKCC='$(PURIFY) $(MAINCC)'
3990 case $ac_sys_system in
3991 AIX*)
3992 exp_extra="\"\""
3993 if test $ac_sys_release -ge 5 -o \
3994 $ac_sys_release -eq 4 -a `uname -r` -ge 2 ; then
3995 exp_extra="."
3997 LINKCC="\$(srcdir)/Modules/makexp_aix Modules/python.exp $exp_extra \$(LIBRARY); $LINKCC";;
3998 QNX*)
3999 # qcc must be used because the other compilers do not
4000 # support -N.
4001 LINKCC=qcc;;
4002 esac
4004 { echo "$as_me:$LINENO: result: $LINKCC" >&5
4005 echo "${ECHO_T}$LINKCC" >&6; }
4007 # GNULD is set to "yes" if the GNU linker is used. If this goes wrong
4008 # make sure we default having it set to "no": this is used by
4009 # distutils.unixccompiler to know if it should add --enable-new-dtags
4010 # to linker command lines, and failing to detect GNU ld simply results
4011 # in the same bahaviour as before.
4013 { echo "$as_me:$LINENO: checking for GNU ld" >&5
4014 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
4015 ac_prog=ld
4016 if test "$GCC" = yes; then
4017 ac_prog=`$CC -print-prog-name=ld`
4019 case `"$ac_prog" -V 2>&1 < /dev/null` in
4020 *GNU*)
4021 GNULD=yes;;
4023 GNULD=no;;
4024 esac
4025 { echo "$as_me:$LINENO: result: $GNULD" >&5
4026 echo "${ECHO_T}$GNULD" >&6; }
4028 { echo "$as_me:$LINENO: checking for --enable-shared" >&5
4029 echo $ECHO_N "checking for --enable-shared... $ECHO_C" >&6; }
4030 # Check whether --enable-shared was given.
4031 if test "${enable_shared+set}" = set; then
4032 enableval=$enable_shared;
4036 if test -z "$enable_shared"
4037 then
4038 case $ac_sys_system in
4039 CYGWIN* | atheos*)
4040 enable_shared="yes";;
4042 enable_shared="no";;
4043 esac
4045 { echo "$as_me:$LINENO: result: $enable_shared" >&5
4046 echo "${ECHO_T}$enable_shared" >&6; }
4048 { echo "$as_me:$LINENO: checking for --enable-profiling" >&5
4049 echo $ECHO_N "checking for --enable-profiling... $ECHO_C" >&6; }
4050 # Check whether --enable-profiling was given.
4051 if test "${enable_profiling+set}" = set; then
4052 enableval=$enable_profiling; ac_save_cc="$CC"
4053 CC="$CC -pg"
4054 if test "$cross_compiling" = yes; then
4055 ac_enable_profiling="no"
4056 else
4057 cat >conftest.$ac_ext <<_ACEOF
4058 /* confdefs.h. */
4059 _ACEOF
4060 cat confdefs.h >>conftest.$ac_ext
4061 cat >>conftest.$ac_ext <<_ACEOF
4062 /* end confdefs.h. */
4063 int main() { return 0; }
4064 _ACEOF
4065 rm -f conftest$ac_exeext
4066 if { (ac_try="$ac_link"
4067 case "(($ac_try" in
4068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4069 *) ac_try_echo=$ac_try;;
4070 esac
4071 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4072 (eval "$ac_link") 2>&5
4073 ac_status=$?
4074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4075 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4076 { (case "(($ac_try" in
4077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4078 *) ac_try_echo=$ac_try;;
4079 esac
4080 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4081 (eval "$ac_try") 2>&5
4082 ac_status=$?
4083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4084 (exit $ac_status); }; }; then
4085 ac_enable_profiling="yes"
4086 else
4087 echo "$as_me: program exited with status $ac_status" >&5
4088 echo "$as_me: failed program was:" >&5
4089 sed 's/^/| /' conftest.$ac_ext >&5
4091 ( exit $ac_status )
4092 ac_enable_profiling="no"
4094 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4098 CC="$ac_save_cc"
4101 { echo "$as_me:$LINENO: result: $ac_enable_profiling" >&5
4102 echo "${ECHO_T}$ac_enable_profiling" >&6; }
4104 case "$ac_enable_profiling" in
4105 "yes")
4106 BASECFLAGS="-pg $BASECFLAGS"
4107 LDFLAGS="-pg $LDFLAGS"
4109 esac
4111 { echo "$as_me:$LINENO: checking LDLIBRARY" >&5
4112 echo $ECHO_N "checking LDLIBRARY... $ECHO_C" >&6; }
4114 # MacOSX framework builds need more magic. LDLIBRARY is the dynamic
4115 # library that we build, but we do not want to link against it (we
4116 # will find it with a -framework option). For this reason there is an
4117 # extra variable BLDLIBRARY against which Python and the extension
4118 # modules are linked, BLDLIBRARY. This is normally the same as
4119 # LDLIBRARY, but empty for MacOSX framework builds.
4120 if test "$enable_framework"
4121 then
4122 LDLIBRARY='$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
4123 RUNSHARED=DYLD_FRAMEWORK_PATH="`pwd`:$DYLD_FRAMEWORK_PATH"
4124 BLDLIBRARY=''
4125 else
4126 BLDLIBRARY='$(LDLIBRARY)'
4129 # Other platforms follow
4130 if test $enable_shared = "yes"; then
4132 cat >>confdefs.h <<\_ACEOF
4133 #define Py_ENABLE_SHARED 1
4134 _ACEOF
4136 case $ac_sys_system in
4137 BeOS*)
4138 LDLIBRARY='libpython$(VERSION).so'
4140 CYGWIN*)
4141 LDLIBRARY='libpython$(VERSION).dll.a'
4142 DLLLIBRARY='libpython$(VERSION).dll'
4144 SunOS*)
4145 LDLIBRARY='libpython$(VERSION).so'
4146 BLDLIBRARY='-Wl,-R,$(LIBDIR) -L. -lpython$(VERSION)'
4147 RUNSHARED=LD_LIBRARY_PATH=`pwd`:${LD_LIBRARY_PATH}
4148 INSTSONAME="$LDLIBRARY".$SOVERSION
4150 Linux*|GNU*|NetBSD*|FreeBSD*|DragonFly*)
4151 LDLIBRARY='libpython$(VERSION).so'
4152 BLDLIBRARY='-L. -lpython$(VERSION)'
4153 RUNSHARED=LD_LIBRARY_PATH=`pwd`:${LD_LIBRARY_PATH}
4154 case $ac_sys_system in
4155 FreeBSD*)
4156 SOVERSION=`echo $SOVERSION|cut -d "." -f 1`
4158 esac
4159 INSTSONAME="$LDLIBRARY".$SOVERSION
4161 hp*|HP*)
4162 case `uname -m` in
4163 ia64)
4164 LDLIBRARY='libpython$(VERSION).so'
4167 LDLIBRARY='libpython$(VERSION).sl'
4169 esac
4170 BLDLIBRARY='-Wl,+b,$(LIBDIR) -L. -lpython$(VERSION)'
4171 RUNSHARED=SHLIB_PATH=`pwd`:${SHLIB_PATH}
4173 OSF*)
4174 LDLIBRARY='libpython$(VERSION).so'
4175 BLDLIBRARY='-rpath $(LIBDIR) -L. -lpython$(VERSION)'
4176 RUNSHARED=LD_LIBRARY_PATH=`pwd`:${LD_LIBRARY_PATH}
4178 atheos*)
4179 LDLIBRARY='libpython$(VERSION).so'
4180 BLDLIBRARY='-L. -lpython$(VERSION)'
4181 RUNSHARED=DLL_PATH=`pwd`:${DLL_PATH:-/atheos/sys/libs:/atheos/autolnk/lib}
4183 Darwin*)
4184 LDLIBRARY='libpython$(VERSION).dylib'
4185 BLDLIBRARY='-L. -lpython$(VERSION)'
4186 RUNSHARED='DYLD_LIBRARY_PATH=`pwd`:${DYLD_LIBRARY_PATH}'
4189 esac
4190 else # shared is disabled
4191 case $ac_sys_system in
4192 CYGWIN*)
4193 BLDLIBRARY='$(LIBRARY)'
4194 LDLIBRARY='libpython$(VERSION).dll.a'
4196 esac
4199 { echo "$as_me:$LINENO: result: $LDLIBRARY" >&5
4200 echo "${ECHO_T}$LDLIBRARY" >&6; }
4202 if test -n "$ac_tool_prefix"; then
4203 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4204 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4205 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4206 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4207 if test "${ac_cv_prog_RANLIB+set}" = set; then
4208 echo $ECHO_N "(cached) $ECHO_C" >&6
4209 else
4210 if test -n "$RANLIB"; then
4211 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4212 else
4213 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4214 for as_dir in $PATH
4216 IFS=$as_save_IFS
4217 test -z "$as_dir" && as_dir=.
4218 for ac_exec_ext in '' $ac_executable_extensions; do
4219 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4220 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4221 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4222 break 2
4224 done
4225 done
4226 IFS=$as_save_IFS
4230 RANLIB=$ac_cv_prog_RANLIB
4231 if test -n "$RANLIB"; then
4232 { echo "$as_me:$LINENO: result: $RANLIB" >&5
4233 echo "${ECHO_T}$RANLIB" >&6; }
4234 else
4235 { echo "$as_me:$LINENO: result: no" >&5
4236 echo "${ECHO_T}no" >&6; }
4241 if test -z "$ac_cv_prog_RANLIB"; then
4242 ac_ct_RANLIB=$RANLIB
4243 # Extract the first word of "ranlib", so it can be a program name with args.
4244 set dummy ranlib; ac_word=$2
4245 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4246 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4247 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4248 echo $ECHO_N "(cached) $ECHO_C" >&6
4249 else
4250 if test -n "$ac_ct_RANLIB"; then
4251 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4252 else
4253 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4254 for as_dir in $PATH
4256 IFS=$as_save_IFS
4257 test -z "$as_dir" && as_dir=.
4258 for ac_exec_ext in '' $ac_executable_extensions; do
4259 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4260 ac_cv_prog_ac_ct_RANLIB="ranlib"
4261 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4262 break 2
4264 done
4265 done
4266 IFS=$as_save_IFS
4270 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4271 if test -n "$ac_ct_RANLIB"; then
4272 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4273 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
4274 else
4275 { echo "$as_me:$LINENO: result: no" >&5
4276 echo "${ECHO_T}no" >&6; }
4279 if test "x$ac_ct_RANLIB" = x; then
4280 RANLIB=":"
4281 else
4282 case $cross_compiling:$ac_tool_warned in
4283 yes:)
4284 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4285 whose name does not start with the host triplet. If you think this
4286 configuration is useful to you, please write to autoconf@gnu.org." >&5
4287 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4288 whose name does not start with the host triplet. If you think this
4289 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4290 ac_tool_warned=yes ;;
4291 esac
4292 RANLIB=$ac_ct_RANLIB
4294 else
4295 RANLIB="$ac_cv_prog_RANLIB"
4299 for ac_prog in ar aal
4301 # Extract the first word of "$ac_prog", so it can be a program name with args.
4302 set dummy $ac_prog; ac_word=$2
4303 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4304 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4305 if test "${ac_cv_prog_AR+set}" = set; then
4306 echo $ECHO_N "(cached) $ECHO_C" >&6
4307 else
4308 if test -n "$AR"; then
4309 ac_cv_prog_AR="$AR" # Let the user override the test.
4310 else
4311 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4312 for as_dir in $PATH
4314 IFS=$as_save_IFS
4315 test -z "$as_dir" && as_dir=.
4316 for ac_exec_ext in '' $ac_executable_extensions; do
4317 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4318 ac_cv_prog_AR="$ac_prog"
4319 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4320 break 2
4322 done
4323 done
4324 IFS=$as_save_IFS
4328 AR=$ac_cv_prog_AR
4329 if test -n "$AR"; then
4330 { echo "$as_me:$LINENO: result: $AR" >&5
4331 echo "${ECHO_T}$AR" >&6; }
4332 else
4333 { echo "$as_me:$LINENO: result: no" >&5
4334 echo "${ECHO_T}no" >&6; }
4338 test -n "$AR" && break
4339 done
4340 test -n "$AR" || AR="ar"
4343 # tweak ARFLAGS only if the user didn't set it on the command line
4345 if test -z "$ARFLAGS"
4346 then
4347 ARFLAGS="rc"
4351 # Extract the first word of "svnversion", so it can be a program name with args.
4352 set dummy svnversion; ac_word=$2
4353 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4354 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4355 if test "${ac_cv_prog_SVNVERSION+set}" = set; then
4356 echo $ECHO_N "(cached) $ECHO_C" >&6
4357 else
4358 if test -n "$SVNVERSION"; then
4359 ac_cv_prog_SVNVERSION="$SVNVERSION" # Let the user override the test.
4360 else
4361 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4362 for as_dir in $PATH
4364 IFS=$as_save_IFS
4365 test -z "$as_dir" && as_dir=.
4366 for ac_exec_ext in '' $ac_executable_extensions; do
4367 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4368 ac_cv_prog_SVNVERSION="found"
4369 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4370 break 2
4372 done
4373 done
4374 IFS=$as_save_IFS
4376 test -z "$ac_cv_prog_SVNVERSION" && ac_cv_prog_SVNVERSION="not-found"
4379 SVNVERSION=$ac_cv_prog_SVNVERSION
4380 if test -n "$SVNVERSION"; then
4381 { echo "$as_me:$LINENO: result: $SVNVERSION" >&5
4382 echo "${ECHO_T}$SVNVERSION" >&6; }
4383 else
4384 { echo "$as_me:$LINENO: result: no" >&5
4385 echo "${ECHO_T}no" >&6; }
4389 if test $SVNVERSION = found
4390 then
4391 SVNVERSION="svnversion \$(srcdir)"
4392 else
4393 SVNVERSION="echo Unversioned directory"
4396 case $MACHDEP in
4397 bsdos*|hp*|HP*)
4398 # install -d does not work on BSDI or HP-UX
4399 if test -z "$INSTALL"
4400 then
4401 INSTALL="${srcdir}/install-sh -c"
4403 esac
4404 ac_aux_dir=
4405 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
4406 if test -f "$ac_dir/install-sh"; then
4407 ac_aux_dir=$ac_dir
4408 ac_install_sh="$ac_aux_dir/install-sh -c"
4409 break
4410 elif test -f "$ac_dir/install.sh"; then
4411 ac_aux_dir=$ac_dir
4412 ac_install_sh="$ac_aux_dir/install.sh -c"
4413 break
4414 elif test -f "$ac_dir/shtool"; then
4415 ac_aux_dir=$ac_dir
4416 ac_install_sh="$ac_aux_dir/shtool install -c"
4417 break
4419 done
4420 if test -z "$ac_aux_dir"; then
4421 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
4422 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
4423 { (exit 1); exit 1; }; }
4426 # These three variables are undocumented and unsupported,
4427 # and are intended to be withdrawn in a future Autoconf release.
4428 # They can cause serious problems if a builder's source tree is in a directory
4429 # whose full name contains unusual characters.
4430 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
4431 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
4432 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
4435 # Find a good install program. We prefer a C program (faster),
4436 # so one script is as good as another. But avoid the broken or
4437 # incompatible versions:
4438 # SysV /etc/install, /usr/sbin/install
4439 # SunOS /usr/etc/install
4440 # IRIX /sbin/install
4441 # AIX /bin/install
4442 # AmigaOS /C/install, which installs bootblocks on floppy discs
4443 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4444 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4445 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4446 # OS/2's system install, which has a completely different semantic
4447 # ./install, which can be erroneously created by make from ./install.sh.
4448 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4449 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
4450 if test -z "$INSTALL"; then
4451 if test "${ac_cv_path_install+set}" = set; then
4452 echo $ECHO_N "(cached) $ECHO_C" >&6
4453 else
4454 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4455 for as_dir in $PATH
4457 IFS=$as_save_IFS
4458 test -z "$as_dir" && as_dir=.
4459 # Account for people who put trailing slashes in PATH elements.
4460 case $as_dir/ in
4461 ./ | .// | /cC/* | \
4462 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4463 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4464 /usr/ucb/* ) ;;
4466 # OSF1 and SCO ODT 3.0 have their own names for install.
4467 # Don't use installbsd from OSF since it installs stuff as root
4468 # by default.
4469 for ac_prog in ginstall scoinst install; do
4470 for ac_exec_ext in '' $ac_executable_extensions; do
4471 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4472 if test $ac_prog = install &&
4473 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4474 # AIX install. It has an incompatible calling convention.
4476 elif test $ac_prog = install &&
4477 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4478 # program-specific install script used by HP pwplus--don't use.
4480 else
4481 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4482 break 3
4485 done
4486 done
4488 esac
4489 done
4490 IFS=$as_save_IFS
4494 if test "${ac_cv_path_install+set}" = set; then
4495 INSTALL=$ac_cv_path_install
4496 else
4497 # As a last resort, use the slow shell script. Don't cache a
4498 # value for INSTALL within a source directory, because that will
4499 # break other packages using the cache if that directory is
4500 # removed, or if the value is a relative name.
4501 INSTALL=$ac_install_sh
4504 { echo "$as_me:$LINENO: result: $INSTALL" >&5
4505 echo "${ECHO_T}$INSTALL" >&6; }
4507 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4508 # It thinks the first close brace ends the variable substitution.
4509 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4511 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4513 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4516 # Not every filesystem supports hard links
4518 if test -z "$LN" ; then
4519 case $ac_sys_system in
4520 BeOS*) LN="ln -s";;
4521 CYGWIN*) LN="ln -s";;
4522 atheos*) LN="ln -s";;
4523 *) LN=ln;;
4524 esac
4527 # Check for --with-pydebug
4528 { echo "$as_me:$LINENO: checking for --with-pydebug" >&5
4529 echo $ECHO_N "checking for --with-pydebug... $ECHO_C" >&6; }
4531 # Check whether --with-pydebug was given.
4532 if test "${with_pydebug+set}" = set; then
4533 withval=$with_pydebug;
4534 if test "$withval" != no
4535 then
4537 cat >>confdefs.h <<\_ACEOF
4538 #define Py_DEBUG 1
4539 _ACEOF
4541 { echo "$as_me:$LINENO: result: yes" >&5
4542 echo "${ECHO_T}yes" >&6; };
4543 Py_DEBUG='true'
4544 else { echo "$as_me:$LINENO: result: no" >&5
4545 echo "${ECHO_T}no" >&6; }; Py_DEBUG='false'
4547 else
4548 { echo "$as_me:$LINENO: result: no" >&5
4549 echo "${ECHO_T}no" >&6; }
4553 # XXX Shouldn't the code above that fiddles with BASECFLAGS and OPT be
4554 # merged with this chunk of code?
4556 # Optimizer/debugger flags
4557 # ------------------------
4558 # (The following bit of code is complicated enough - please keep things
4559 # indented properly. Just pretend you're editing Python code. ;-)
4561 # There are two parallel sets of case statements below, one that checks to
4562 # see if OPT was set and one that does BASECFLAGS setting based upon
4563 # compiler and platform. BASECFLAGS tweaks need to be made even if the
4564 # user set OPT.
4566 # tweak OPT based on compiler and platform, only if the user didn't set
4567 # it on the command line
4569 if test -z "$OPT"
4570 then
4571 case $GCC in
4572 yes)
4573 if test "$CC" != 'g++' ; then
4574 STRICT_PROTO="-Wstrict-prototypes"
4576 # For gcc 4.x we need to use -fwrapv so lets check if its supported
4577 if "$CC" -v --help 2>/dev/null |grep -- -fwrapv > /dev/null; then
4578 WRAP="-fwrapv"
4580 case $ac_cv_prog_cc_g in
4581 yes)
4582 if test "$Py_DEBUG" = 'true' ; then
4583 # Optimization messes up debuggers, so turn it off for
4584 # debug builds.
4585 OPT="-g -Wall $STRICT_PROTO"
4586 else
4587 OPT="-g $WRAP -O3 -Wall $STRICT_PROTO"
4591 OPT="-O3 -Wall $STRICT_PROTO"
4593 esac
4594 case $ac_sys_system in
4595 SCO_SV*) OPT="$OPT -m486 -DSCO5"
4597 esac
4601 OPT="-O"
4603 esac
4608 # The -arch flags for universal builds on OSX
4609 UNIVERSAL_ARCH_FLAGS=
4612 # tweak BASECFLAGS based on compiler and platform
4613 case $GCC in
4614 yes)
4615 # Python violates C99 rules, by casting between incompatible
4616 # pointer types. GCC may generate bad code as a result of that,
4617 # so use -fno-strict-aliasing if supported.
4618 { echo "$as_me:$LINENO: checking whether $CC accepts -fno-strict-aliasing" >&5
4619 echo $ECHO_N "checking whether $CC accepts -fno-strict-aliasing... $ECHO_C" >&6; }
4620 ac_save_cc="$CC"
4621 CC="$CC -fno-strict-aliasing"
4622 if test "${ac_cv_no_strict_aliasing_ok+set}" = set; then
4623 echo $ECHO_N "(cached) $ECHO_C" >&6
4624 else
4625 cat >conftest.$ac_ext <<_ACEOF
4626 /* confdefs.h. */
4627 _ACEOF
4628 cat confdefs.h >>conftest.$ac_ext
4629 cat >>conftest.$ac_ext <<_ACEOF
4630 /* end confdefs.h. */
4633 main ()
4635 int main() { return 0; }
4637 return 0;
4639 _ACEOF
4640 rm -f conftest.$ac_objext
4641 if { (ac_try="$ac_compile"
4642 case "(($ac_try" in
4643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4644 *) ac_try_echo=$ac_try;;
4645 esac
4646 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4647 (eval "$ac_compile") 2>conftest.er1
4648 ac_status=$?
4649 grep -v '^ *+' conftest.er1 >conftest.err
4650 rm -f conftest.er1
4651 cat conftest.err >&5
4652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4653 (exit $ac_status); } && {
4654 test -z "$ac_c_werror_flag" ||
4655 test ! -s conftest.err
4656 } && test -s conftest.$ac_objext; then
4657 ac_cv_no_strict_aliasing_ok=yes
4658 else
4659 echo "$as_me: failed program was:" >&5
4660 sed 's/^/| /' conftest.$ac_ext >&5
4662 ac_cv_no_strict_aliasing_ok=no
4665 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4668 CC="$ac_save_cc"
4669 { echo "$as_me:$LINENO: result: $ac_cv_no_strict_aliasing_ok" >&5
4670 echo "${ECHO_T}$ac_cv_no_strict_aliasing_ok" >&6; }
4671 if test $ac_cv_no_strict_aliasing_ok = yes
4672 then
4673 BASECFLAGS="$BASECFLAGS -fno-strict-aliasing"
4676 # if using gcc on alpha, use -mieee to get (near) full IEEE 754
4677 # support. Without this, treatment of subnormals doesn't follow
4678 # the standard.
4679 case $ac_sys_machine in
4680 alpha*)
4681 BASECFLAGS="$BASECFLAGS -mieee"
4683 esac
4685 case $ac_sys_system in
4686 SCO_SV*)
4687 BASECFLAGS="$BASECFLAGS -m486 -DSCO5"
4689 # is there any other compiler on Darwin besides gcc?
4690 Darwin*)
4691 # -Wno-long-double, -no-cpp-precomp, and -mno-fused-madd
4692 # used to be here, but non-Apple gcc doesn't accept them.
4695 if test "${enable_universalsdk}"; then
4696 UNIVERSAL_ARCH_FLAGS=""
4697 if test "$UNIVERSAL_ARCHS" = "32-bit" ; then
4698 UNIVERSAL_ARCH_FLAGS="-arch ppc -arch i386"
4699 ARCH_RUN_32BIT=""
4701 elif test "$UNIVERSAL_ARCHS" = "64-bit" ; then
4702 UNIVERSAL_ARCH_FLAGS="-arch ppc64 -arch x86_64"
4703 ARCH_RUN_32BIT="true"
4705 elif test "$UNIVERSAL_ARCHS" = "all" ; then
4706 UNIVERSAL_ARCH_FLAGS="-arch i386 -arch ppc -arch ppc64 -arch x86_64"
4707 ARCH_RUN_32BIT="arch -i386 -ppc"
4709 elif test "$UNIVERSAL_ARCHS" = "intel" ; then
4710 UNIVERSAL_ARCH_FLAGS="-arch i386 -arch x86_64"
4711 ARCH_RUN_32BIT="arch -i386"
4713 elif test "$UNIVERSAL_ARCHS" = "3-way" ; then
4714 UNIVERSAL_ARCH_FLAGS="-arch i386 -arch ppc -arch x86_64"
4715 ARCH_RUN_32BIT="arch -i386 -ppc"
4717 else
4718 { { echo "$as_me:$LINENO: error: proper usage is --with-universal-arch=32-bit|64-bit|all|intel|3-way" >&5
4719 echo "$as_me: error: proper usage is --with-universal-arch=32-bit|64-bit|all|intel|3-way" >&2;}
4720 { (exit 1); exit 1; }; }
4725 BASECFLAGS="${UNIVERSAL_ARCH_FLAGS} -isysroot ${UNIVERSALSDK} ${BASECFLAGS}"
4726 tgt=`sw_vers -productVersion | sed 's/\(10\.[0-9]*\).*/\1/'`
4727 if test "${UNIVERSALSDK}" != "/" -a "${tgt}" '>' '10.4' ; then
4728 CFLAGS="${UNIVERSAL_ARCH_FLAGS} -isysroot ${UNIVERSALSDK} ${CFLAGS}"
4732 # Calculate the right deployment target for this build.
4734 cur_target=`sw_vers -productVersion | sed 's/\(10\.[0-9]*\).*/\1/'`
4735 if test ${cur_target} '>' 10.2; then
4736 cur_target=10.3
4737 if test ${enable_universalsdk}; then
4738 if test "${UNIVERSAL_ARCHS}" = "all"; then
4739 # Ensure that the default platform for a
4740 # 4-way universal build is OSX 10.5,
4741 # that's the first OS release where
4742 # 4-way builds make sense.
4743 cur_target='10.5'
4745 elif test "${UNIVERSAL_ARCHS}" = "3-way"; then
4746 cur_target='10.5'
4748 elif test "${UNIVERSAL_ARCHS}" = "intel"; then
4749 cur_target='10.5'
4751 elif test "${UNIVERSAL_ARCHS}" = "64-bit"; then
4752 cur_target='10.5'
4754 else
4755 if test `arch` = "i386"; then
4756 # On Intel macs default to a deployment
4757 # target of 10.4, that's the first OSX
4758 # release with Intel support.
4759 cur_target="10.4"
4763 CONFIGURE_MACOSX_DEPLOYMENT_TARGET=${MACOSX_DEPLOYMENT_TARGET-${cur_target}}
4765 # Make sure that MACOSX_DEPLOYMENT_TARGET is set in the
4766 # environment with a value that is the same as what we'll use
4767 # in the Makefile to ensure that we'll get the same compiler
4768 # environment during configure and build time.
4769 MACOSX_DEPLOYMENT_TARGET="$CONFIGURE_MACOSX_DEPLOYMENT_TARGET"
4770 export MACOSX_DEPLOYMENT_TARGET
4771 EXPORT_MACOSX_DEPLOYMENT_TARGET=''
4774 OSF*)
4775 BASECFLAGS="$BASECFLAGS -mieee"
4777 esac
4781 case $ac_sys_system in
4782 OpenUNIX*|UnixWare*)
4783 BASECFLAGS="$BASECFLAGS -K pentium,host,inline,loop_unroll,alloca "
4785 OSF*)
4786 BASECFLAGS="$BASECFLAGS -ieee -std"
4788 SCO_SV*)
4789 BASECFLAGS="$BASECFLAGS -belf -Ki486 -DSCO5"
4791 esac
4793 esac
4795 if test "$Py_DEBUG" = 'true'; then
4797 else
4798 OPT="-DNDEBUG $OPT"
4801 if test "$ac_arch_flags"
4802 then
4803 BASECFLAGS="$BASECFLAGS $ac_arch_flags"
4806 # disable check for icc since it seems to pass, but generates a warning
4807 if test "$CC" = icc
4808 then
4809 ac_cv_opt_olimit_ok=no
4812 { echo "$as_me:$LINENO: checking whether $CC accepts -OPT:Olimit=0" >&5
4813 echo $ECHO_N "checking whether $CC accepts -OPT:Olimit=0... $ECHO_C" >&6; }
4814 if test "${ac_cv_opt_olimit_ok+set}" = set; then
4815 echo $ECHO_N "(cached) $ECHO_C" >&6
4816 else
4817 ac_save_cc="$CC"
4818 CC="$CC -OPT:Olimit=0"
4819 cat >conftest.$ac_ext <<_ACEOF
4820 /* confdefs.h. */
4821 _ACEOF
4822 cat confdefs.h >>conftest.$ac_ext
4823 cat >>conftest.$ac_ext <<_ACEOF
4824 /* end confdefs.h. */
4827 main ()
4829 int main() { return 0; }
4831 return 0;
4833 _ACEOF
4834 rm -f conftest.$ac_objext
4835 if { (ac_try="$ac_compile"
4836 case "(($ac_try" in
4837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4838 *) ac_try_echo=$ac_try;;
4839 esac
4840 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4841 (eval "$ac_compile") 2>conftest.er1
4842 ac_status=$?
4843 grep -v '^ *+' conftest.er1 >conftest.err
4844 rm -f conftest.er1
4845 cat conftest.err >&5
4846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4847 (exit $ac_status); } && {
4848 test -z "$ac_c_werror_flag" ||
4849 test ! -s conftest.err
4850 } && test -s conftest.$ac_objext; then
4851 ac_cv_opt_olimit_ok=yes
4852 else
4853 echo "$as_me: failed program was:" >&5
4854 sed 's/^/| /' conftest.$ac_ext >&5
4856 ac_cv_opt_olimit_ok=no
4859 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4860 CC="$ac_save_cc"
4863 { echo "$as_me:$LINENO: result: $ac_cv_opt_olimit_ok" >&5
4864 echo "${ECHO_T}$ac_cv_opt_olimit_ok" >&6; }
4865 if test $ac_cv_opt_olimit_ok = yes; then
4866 case $ac_sys_system in
4867 # XXX is this branch needed? On MacOSX 10.2.2 the result of the
4868 # olimit_ok test is "no". Is it "yes" in some other Darwin-esque
4869 # environment?
4870 Darwin*)
4873 BASECFLAGS="$BASECFLAGS -OPT:Olimit=0"
4875 esac
4876 else
4877 { echo "$as_me:$LINENO: checking whether $CC accepts -Olimit 1500" >&5
4878 echo $ECHO_N "checking whether $CC accepts -Olimit 1500... $ECHO_C" >&6; }
4879 if test "${ac_cv_olimit_ok+set}" = set; then
4880 echo $ECHO_N "(cached) $ECHO_C" >&6
4881 else
4882 ac_save_cc="$CC"
4883 CC="$CC -Olimit 1500"
4884 cat >conftest.$ac_ext <<_ACEOF
4885 /* confdefs.h. */
4886 _ACEOF
4887 cat confdefs.h >>conftest.$ac_ext
4888 cat >>conftest.$ac_ext <<_ACEOF
4889 /* end confdefs.h. */
4892 main ()
4894 int main() { return 0; }
4896 return 0;
4898 _ACEOF
4899 rm -f conftest.$ac_objext
4900 if { (ac_try="$ac_compile"
4901 case "(($ac_try" in
4902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4903 *) ac_try_echo=$ac_try;;
4904 esac
4905 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4906 (eval "$ac_compile") 2>conftest.er1
4907 ac_status=$?
4908 grep -v '^ *+' conftest.er1 >conftest.err
4909 rm -f conftest.er1
4910 cat conftest.err >&5
4911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4912 (exit $ac_status); } && {
4913 test -z "$ac_c_werror_flag" ||
4914 test ! -s conftest.err
4915 } && test -s conftest.$ac_objext; then
4916 ac_cv_olimit_ok=yes
4917 else
4918 echo "$as_me: failed program was:" >&5
4919 sed 's/^/| /' conftest.$ac_ext >&5
4921 ac_cv_olimit_ok=no
4924 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4925 CC="$ac_save_cc"
4928 { echo "$as_me:$LINENO: result: $ac_cv_olimit_ok" >&5
4929 echo "${ECHO_T}$ac_cv_olimit_ok" >&6; }
4930 if test $ac_cv_olimit_ok = yes; then
4931 BASECFLAGS="$BASECFLAGS -Olimit 1500"
4935 # Check whether GCC supports PyArg_ParseTuple format
4936 if test "$GCC" = "yes"
4937 then
4938 { echo "$as_me:$LINENO: checking whether gcc supports ParseTuple __format__" >&5
4939 echo $ECHO_N "checking whether gcc supports ParseTuple __format__... $ECHO_C" >&6; }
4940 save_CFLAGS=$CFLAGS
4941 CFLAGS="$CFLAGS -Werror"
4942 cat >conftest.$ac_ext <<_ACEOF
4943 /* confdefs.h. */
4944 _ACEOF
4945 cat confdefs.h >>conftest.$ac_ext
4946 cat >>conftest.$ac_ext <<_ACEOF
4947 /* end confdefs.h. */
4949 void f(char*,...)__attribute((format(PyArg_ParseTuple, 1, 2)));
4952 main ()
4956 return 0;
4958 _ACEOF
4959 rm -f conftest.$ac_objext
4960 if { (ac_try="$ac_compile"
4961 case "(($ac_try" in
4962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4963 *) ac_try_echo=$ac_try;;
4964 esac
4965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4966 (eval "$ac_compile") 2>conftest.er1
4967 ac_status=$?
4968 grep -v '^ *+' conftest.er1 >conftest.err
4969 rm -f conftest.er1
4970 cat conftest.err >&5
4971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4972 (exit $ac_status); } && {
4973 test -z "$ac_c_werror_flag" ||
4974 test ! -s conftest.err
4975 } && test -s conftest.$ac_objext; then
4977 cat >>confdefs.h <<\_ACEOF
4978 #define HAVE_ATTRIBUTE_FORMAT_PARSETUPLE 1
4979 _ACEOF
4981 { echo "$as_me:$LINENO: result: yes" >&5
4982 echo "${ECHO_T}yes" >&6; }
4983 else
4984 echo "$as_me: failed program was:" >&5
4985 sed 's/^/| /' conftest.$ac_ext >&5
4987 { echo "$as_me:$LINENO: result: no" >&5
4988 echo "${ECHO_T}no" >&6; }
4992 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4993 CFLAGS=$save_CFLAGS
4996 # On some compilers, pthreads are available without further options
4997 # (e.g. MacOS X). On some of these systems, the compiler will not
4998 # complain if unaccepted options are passed (e.g. gcc on Mac OS X).
4999 # So we have to see first whether pthreads are available without
5000 # options before we can check whether -Kpthread improves anything.
5001 { echo "$as_me:$LINENO: checking whether pthreads are available without options" >&5
5002 echo $ECHO_N "checking whether pthreads are available without options... $ECHO_C" >&6; }
5003 if test "${ac_cv_pthread_is_default+set}" = set; then
5004 echo $ECHO_N "(cached) $ECHO_C" >&6
5005 else
5006 if test "$cross_compiling" = yes; then
5007 ac_cv_pthread_is_default=no
5008 else
5009 cat >conftest.$ac_ext <<_ACEOF
5010 /* confdefs.h. */
5011 _ACEOF
5012 cat confdefs.h >>conftest.$ac_ext
5013 cat >>conftest.$ac_ext <<_ACEOF
5014 /* end confdefs.h. */
5016 #include <pthread.h>
5018 void* routine(void* p){return NULL;}
5020 int main(){
5021 pthread_t p;
5022 if(pthread_create(&p,NULL,routine,NULL)!=0)
5023 return 1;
5024 (void)pthread_detach(p);
5025 return 0;
5028 _ACEOF
5029 rm -f conftest$ac_exeext
5030 if { (ac_try="$ac_link"
5031 case "(($ac_try" in
5032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5033 *) ac_try_echo=$ac_try;;
5034 esac
5035 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5036 (eval "$ac_link") 2>&5
5037 ac_status=$?
5038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5039 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5040 { (case "(($ac_try" in
5041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5042 *) ac_try_echo=$ac_try;;
5043 esac
5044 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5045 (eval "$ac_try") 2>&5
5046 ac_status=$?
5047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5048 (exit $ac_status); }; }; then
5050 ac_cv_pthread_is_default=yes
5051 ac_cv_kthread=no
5052 ac_cv_pthread=no
5054 else
5055 echo "$as_me: program exited with status $ac_status" >&5
5056 echo "$as_me: failed program was:" >&5
5057 sed 's/^/| /' conftest.$ac_ext >&5
5059 ( exit $ac_status )
5060 ac_cv_pthread_is_default=no
5062 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5069 { echo "$as_me:$LINENO: result: $ac_cv_pthread_is_default" >&5
5070 echo "${ECHO_T}$ac_cv_pthread_is_default" >&6; }
5073 if test $ac_cv_pthread_is_default = yes
5074 then
5075 ac_cv_kpthread=no
5076 else
5077 # -Kpthread, if available, provides the right #defines
5078 # and linker options to make pthread_create available
5079 # Some compilers won't report that they do not support -Kpthread,
5080 # so we need to run a program to see whether it really made the
5081 # function available.
5082 { echo "$as_me:$LINENO: checking whether $CC accepts -Kpthread" >&5
5083 echo $ECHO_N "checking whether $CC accepts -Kpthread... $ECHO_C" >&6; }
5084 if test "${ac_cv_kpthread+set}" = set; then
5085 echo $ECHO_N "(cached) $ECHO_C" >&6
5086 else
5087 ac_save_cc="$CC"
5088 CC="$CC -Kpthread"
5089 if test "$cross_compiling" = yes; then
5090 ac_cv_kpthread=no
5091 else
5092 cat >conftest.$ac_ext <<_ACEOF
5093 /* confdefs.h. */
5094 _ACEOF
5095 cat confdefs.h >>conftest.$ac_ext
5096 cat >>conftest.$ac_ext <<_ACEOF
5097 /* end confdefs.h. */
5099 #include <pthread.h>
5101 void* routine(void* p){return NULL;}
5103 int main(){
5104 pthread_t p;
5105 if(pthread_create(&p,NULL,routine,NULL)!=0)
5106 return 1;
5107 (void)pthread_detach(p);
5108 return 0;
5111 _ACEOF
5112 rm -f conftest$ac_exeext
5113 if { (ac_try="$ac_link"
5114 case "(($ac_try" in
5115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5116 *) ac_try_echo=$ac_try;;
5117 esac
5118 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5119 (eval "$ac_link") 2>&5
5120 ac_status=$?
5121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5122 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5123 { (case "(($ac_try" in
5124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5125 *) ac_try_echo=$ac_try;;
5126 esac
5127 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5128 (eval "$ac_try") 2>&5
5129 ac_status=$?
5130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5131 (exit $ac_status); }; }; then
5132 ac_cv_kpthread=yes
5133 else
5134 echo "$as_me: program exited with status $ac_status" >&5
5135 echo "$as_me: failed program was:" >&5
5136 sed 's/^/| /' conftest.$ac_ext >&5
5138 ( exit $ac_status )
5139 ac_cv_kpthread=no
5141 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5145 CC="$ac_save_cc"
5148 { echo "$as_me:$LINENO: result: $ac_cv_kpthread" >&5
5149 echo "${ECHO_T}$ac_cv_kpthread" >&6; }
5152 if test $ac_cv_kpthread = no -a $ac_cv_pthread_is_default = no
5153 then
5154 # -Kthread, if available, provides the right #defines
5155 # and linker options to make pthread_create available
5156 # Some compilers won't report that they do not support -Kthread,
5157 # so we need to run a program to see whether it really made the
5158 # function available.
5159 { echo "$as_me:$LINENO: checking whether $CC accepts -Kthread" >&5
5160 echo $ECHO_N "checking whether $CC accepts -Kthread... $ECHO_C" >&6; }
5161 if test "${ac_cv_kthread+set}" = set; then
5162 echo $ECHO_N "(cached) $ECHO_C" >&6
5163 else
5164 ac_save_cc="$CC"
5165 CC="$CC -Kthread"
5166 if test "$cross_compiling" = yes; then
5167 ac_cv_kthread=no
5168 else
5169 cat >conftest.$ac_ext <<_ACEOF
5170 /* confdefs.h. */
5171 _ACEOF
5172 cat confdefs.h >>conftest.$ac_ext
5173 cat >>conftest.$ac_ext <<_ACEOF
5174 /* end confdefs.h. */
5176 #include <pthread.h>
5178 void* routine(void* p){return NULL;}
5180 int main(){
5181 pthread_t p;
5182 if(pthread_create(&p,NULL,routine,NULL)!=0)
5183 return 1;
5184 (void)pthread_detach(p);
5185 return 0;
5188 _ACEOF
5189 rm -f conftest$ac_exeext
5190 if { (ac_try="$ac_link"
5191 case "(($ac_try" in
5192 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5193 *) ac_try_echo=$ac_try;;
5194 esac
5195 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5196 (eval "$ac_link") 2>&5
5197 ac_status=$?
5198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5199 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5200 { (case "(($ac_try" in
5201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5202 *) ac_try_echo=$ac_try;;
5203 esac
5204 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5205 (eval "$ac_try") 2>&5
5206 ac_status=$?
5207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5208 (exit $ac_status); }; }; then
5209 ac_cv_kthread=yes
5210 else
5211 echo "$as_me: program exited with status $ac_status" >&5
5212 echo "$as_me: failed program was:" >&5
5213 sed 's/^/| /' conftest.$ac_ext >&5
5215 ( exit $ac_status )
5216 ac_cv_kthread=no
5218 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5222 CC="$ac_save_cc"
5225 { echo "$as_me:$LINENO: result: $ac_cv_kthread" >&5
5226 echo "${ECHO_T}$ac_cv_kthread" >&6; }
5229 if test $ac_cv_kthread = no -a $ac_cv_pthread_is_default = no
5230 then
5231 # -pthread, if available, provides the right #defines
5232 # and linker options to make pthread_create available
5233 # Some compilers won't report that they do not support -pthread,
5234 # so we need to run a program to see whether it really made the
5235 # function available.
5236 { echo "$as_me:$LINENO: checking whether $CC accepts -pthread" >&5
5237 echo $ECHO_N "checking whether $CC accepts -pthread... $ECHO_C" >&6; }
5238 if test "${ac_cv_thread+set}" = set; then
5239 echo $ECHO_N "(cached) $ECHO_C" >&6
5240 else
5241 ac_save_cc="$CC"
5242 CC="$CC -pthread"
5243 if test "$cross_compiling" = yes; then
5244 ac_cv_pthread=no
5245 else
5246 cat >conftest.$ac_ext <<_ACEOF
5247 /* confdefs.h. */
5248 _ACEOF
5249 cat confdefs.h >>conftest.$ac_ext
5250 cat >>conftest.$ac_ext <<_ACEOF
5251 /* end confdefs.h. */
5253 #include <pthread.h>
5255 void* routine(void* p){return NULL;}
5257 int main(){
5258 pthread_t p;
5259 if(pthread_create(&p,NULL,routine,NULL)!=0)
5260 return 1;
5261 (void)pthread_detach(p);
5262 return 0;
5265 _ACEOF
5266 rm -f conftest$ac_exeext
5267 if { (ac_try="$ac_link"
5268 case "(($ac_try" in
5269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5270 *) ac_try_echo=$ac_try;;
5271 esac
5272 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5273 (eval "$ac_link") 2>&5
5274 ac_status=$?
5275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5276 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5277 { (case "(($ac_try" in
5278 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5279 *) ac_try_echo=$ac_try;;
5280 esac
5281 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5282 (eval "$ac_try") 2>&5
5283 ac_status=$?
5284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5285 (exit $ac_status); }; }; then
5286 ac_cv_pthread=yes
5287 else
5288 echo "$as_me: program exited with status $ac_status" >&5
5289 echo "$as_me: failed program was:" >&5
5290 sed 's/^/| /' conftest.$ac_ext >&5
5292 ( exit $ac_status )
5293 ac_cv_pthread=no
5295 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5299 CC="$ac_save_cc"
5302 { echo "$as_me:$LINENO: result: $ac_cv_pthread" >&5
5303 echo "${ECHO_T}$ac_cv_pthread" >&6; }
5306 # If we have set a CC compiler flag for thread support then
5307 # check if it works for CXX, too.
5308 ac_cv_cxx_thread=no
5309 if test ! -z "$CXX"
5310 then
5311 { echo "$as_me:$LINENO: checking whether $CXX also accepts flags for thread support" >&5
5312 echo $ECHO_N "checking whether $CXX also accepts flags for thread support... $ECHO_C" >&6; }
5313 ac_save_cxx="$CXX"
5315 if test "$ac_cv_kpthread" = "yes"
5316 then
5317 CXX="$CXX -Kpthread"
5318 ac_cv_cxx_thread=yes
5319 elif test "$ac_cv_kthread" = "yes"
5320 then
5321 CXX="$CXX -Kthread"
5322 ac_cv_cxx_thread=yes
5323 elif test "$ac_cv_pthread" = "yes"
5324 then
5325 CXX="$CXX -pthread"
5326 ac_cv_cxx_thread=yes
5329 if test $ac_cv_cxx_thread = yes
5330 then
5331 echo 'void foo();int main(){foo();}void foo(){}' > conftest.$ac_ext
5332 $CXX -c conftest.$ac_ext 2>&5
5333 if $CXX -o conftest$ac_exeext conftest.$ac_objext 2>&5 \
5334 && test -s conftest$ac_exeext && ./conftest$ac_exeext
5335 then
5336 ac_cv_cxx_thread=yes
5337 else
5338 ac_cv_cxx_thread=no
5340 rm -fr conftest*
5342 { echo "$as_me:$LINENO: result: $ac_cv_cxx_thread" >&5
5343 echo "${ECHO_T}$ac_cv_cxx_thread" >&6; }
5345 CXX="$ac_save_cxx"
5348 # checks for header files
5349 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5350 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
5351 if test "${ac_cv_header_stdc+set}" = set; then
5352 echo $ECHO_N "(cached) $ECHO_C" >&6
5353 else
5354 cat >conftest.$ac_ext <<_ACEOF
5355 /* confdefs.h. */
5356 _ACEOF
5357 cat confdefs.h >>conftest.$ac_ext
5358 cat >>conftest.$ac_ext <<_ACEOF
5359 /* end confdefs.h. */
5360 #include <stdlib.h>
5361 #include <stdarg.h>
5362 #include <string.h>
5363 #include <float.h>
5366 main ()
5370 return 0;
5372 _ACEOF
5373 rm -f conftest.$ac_objext
5374 if { (ac_try="$ac_compile"
5375 case "(($ac_try" in
5376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5377 *) ac_try_echo=$ac_try;;
5378 esac
5379 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5380 (eval "$ac_compile") 2>conftest.er1
5381 ac_status=$?
5382 grep -v '^ *+' conftest.er1 >conftest.err
5383 rm -f conftest.er1
5384 cat conftest.err >&5
5385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5386 (exit $ac_status); } && {
5387 test -z "$ac_c_werror_flag" ||
5388 test ! -s conftest.err
5389 } && test -s conftest.$ac_objext; then
5390 ac_cv_header_stdc=yes
5391 else
5392 echo "$as_me: failed program was:" >&5
5393 sed 's/^/| /' conftest.$ac_ext >&5
5395 ac_cv_header_stdc=no
5398 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5400 if test $ac_cv_header_stdc = yes; then
5401 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5402 cat >conftest.$ac_ext <<_ACEOF
5403 /* confdefs.h. */
5404 _ACEOF
5405 cat confdefs.h >>conftest.$ac_ext
5406 cat >>conftest.$ac_ext <<_ACEOF
5407 /* end confdefs.h. */
5408 #include <string.h>
5410 _ACEOF
5411 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5412 $EGREP "memchr" >/dev/null 2>&1; then
5414 else
5415 ac_cv_header_stdc=no
5417 rm -f conftest*
5421 if test $ac_cv_header_stdc = yes; then
5422 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5423 cat >conftest.$ac_ext <<_ACEOF
5424 /* confdefs.h. */
5425 _ACEOF
5426 cat confdefs.h >>conftest.$ac_ext
5427 cat >>conftest.$ac_ext <<_ACEOF
5428 /* end confdefs.h. */
5429 #include <stdlib.h>
5431 _ACEOF
5432 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5433 $EGREP "free" >/dev/null 2>&1; then
5435 else
5436 ac_cv_header_stdc=no
5438 rm -f conftest*
5442 if test $ac_cv_header_stdc = yes; then
5443 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5444 if test "$cross_compiling" = yes; then
5446 else
5447 cat >conftest.$ac_ext <<_ACEOF
5448 /* confdefs.h. */
5449 _ACEOF
5450 cat confdefs.h >>conftest.$ac_ext
5451 cat >>conftest.$ac_ext <<_ACEOF
5452 /* end confdefs.h. */
5453 #include <ctype.h>
5454 #include <stdlib.h>
5455 #if ((' ' & 0x0FF) == 0x020)
5456 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5457 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5458 #else
5459 # define ISLOWER(c) \
5460 (('a' <= (c) && (c) <= 'i') \
5461 || ('j' <= (c) && (c) <= 'r') \
5462 || ('s' <= (c) && (c) <= 'z'))
5463 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5464 #endif
5466 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5468 main ()
5470 int i;
5471 for (i = 0; i < 256; i++)
5472 if (XOR (islower (i), ISLOWER (i))
5473 || toupper (i) != TOUPPER (i))
5474 return 2;
5475 return 0;
5477 _ACEOF
5478 rm -f conftest$ac_exeext
5479 if { (ac_try="$ac_link"
5480 case "(($ac_try" in
5481 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5482 *) ac_try_echo=$ac_try;;
5483 esac
5484 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5485 (eval "$ac_link") 2>&5
5486 ac_status=$?
5487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5488 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5489 { (case "(($ac_try" in
5490 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5491 *) ac_try_echo=$ac_try;;
5492 esac
5493 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5494 (eval "$ac_try") 2>&5
5495 ac_status=$?
5496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5497 (exit $ac_status); }; }; then
5499 else
5500 echo "$as_me: program exited with status $ac_status" >&5
5501 echo "$as_me: failed program was:" >&5
5502 sed 's/^/| /' conftest.$ac_ext >&5
5504 ( exit $ac_status )
5505 ac_cv_header_stdc=no
5507 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5513 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5514 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
5515 if test $ac_cv_header_stdc = yes; then
5517 cat >>confdefs.h <<\_ACEOF
5518 #define STDC_HEADERS 1
5519 _ACEOF
5523 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5533 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5534 inttypes.h stdint.h unistd.h
5536 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5537 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5538 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5539 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5540 echo $ECHO_N "(cached) $ECHO_C" >&6
5541 else
5542 cat >conftest.$ac_ext <<_ACEOF
5543 /* confdefs.h. */
5544 _ACEOF
5545 cat confdefs.h >>conftest.$ac_ext
5546 cat >>conftest.$ac_ext <<_ACEOF
5547 /* end confdefs.h. */
5548 $ac_includes_default
5550 #include <$ac_header>
5551 _ACEOF
5552 rm -f conftest.$ac_objext
5553 if { (ac_try="$ac_compile"
5554 case "(($ac_try" in
5555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5556 *) ac_try_echo=$ac_try;;
5557 esac
5558 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5559 (eval "$ac_compile") 2>conftest.er1
5560 ac_status=$?
5561 grep -v '^ *+' conftest.er1 >conftest.err
5562 rm -f conftest.er1
5563 cat conftest.err >&5
5564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5565 (exit $ac_status); } && {
5566 test -z "$ac_c_werror_flag" ||
5567 test ! -s conftest.err
5568 } && test -s conftest.$ac_objext; then
5569 eval "$as_ac_Header=yes"
5570 else
5571 echo "$as_me: failed program was:" >&5
5572 sed 's/^/| /' conftest.$ac_ext >&5
5574 eval "$as_ac_Header=no"
5577 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5579 ac_res=`eval echo '${'$as_ac_Header'}'`
5580 { echo "$as_me:$LINENO: result: $ac_res" >&5
5581 echo "${ECHO_T}$ac_res" >&6; }
5582 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5583 cat >>confdefs.h <<_ACEOF
5584 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5585 _ACEOF
5589 done
5646 for ac_header in asm/types.h conio.h curses.h direct.h dlfcn.h errno.h \
5647 fcntl.h grp.h \
5648 ieeefp.h io.h langinfo.h libintl.h ncurses.h poll.h process.h pthread.h \
5649 shadow.h signal.h stdint.h stropts.h termios.h thread.h \
5650 unistd.h utime.h \
5651 sys/audioio.h sys/bsdtty.h sys/epoll.h sys/event.h sys/file.h sys/loadavg.h \
5652 sys/lock.h sys/mkdev.h sys/modem.h \
5653 sys/param.h sys/poll.h sys/select.h sys/socket.h sys/statvfs.h sys/stat.h \
5654 sys/termio.h sys/time.h \
5655 sys/times.h sys/types.h sys/un.h sys/utsname.h sys/wait.h pty.h libutil.h \
5656 sys/resource.h netpacket/packet.h sysexits.h bluetooth.h \
5657 bluetooth/bluetooth.h linux/tipc.h
5659 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5660 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5661 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5662 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5663 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5664 echo $ECHO_N "(cached) $ECHO_C" >&6
5666 ac_res=`eval echo '${'$as_ac_Header'}'`
5667 { echo "$as_me:$LINENO: result: $ac_res" >&5
5668 echo "${ECHO_T}$ac_res" >&6; }
5669 else
5670 # Is the header compilable?
5671 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5672 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5673 cat >conftest.$ac_ext <<_ACEOF
5674 /* confdefs.h. */
5675 _ACEOF
5676 cat confdefs.h >>conftest.$ac_ext
5677 cat >>conftest.$ac_ext <<_ACEOF
5678 /* end confdefs.h. */
5679 $ac_includes_default
5680 #include <$ac_header>
5681 _ACEOF
5682 rm -f conftest.$ac_objext
5683 if { (ac_try="$ac_compile"
5684 case "(($ac_try" in
5685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5686 *) ac_try_echo=$ac_try;;
5687 esac
5688 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5689 (eval "$ac_compile") 2>conftest.er1
5690 ac_status=$?
5691 grep -v '^ *+' conftest.er1 >conftest.err
5692 rm -f conftest.er1
5693 cat conftest.err >&5
5694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5695 (exit $ac_status); } && {
5696 test -z "$ac_c_werror_flag" ||
5697 test ! -s conftest.err
5698 } && test -s conftest.$ac_objext; then
5699 ac_header_compiler=yes
5700 else
5701 echo "$as_me: failed program was:" >&5
5702 sed 's/^/| /' conftest.$ac_ext >&5
5704 ac_header_compiler=no
5707 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5708 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5709 echo "${ECHO_T}$ac_header_compiler" >&6; }
5711 # Is the header present?
5712 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5713 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5714 cat >conftest.$ac_ext <<_ACEOF
5715 /* confdefs.h. */
5716 _ACEOF
5717 cat confdefs.h >>conftest.$ac_ext
5718 cat >>conftest.$ac_ext <<_ACEOF
5719 /* end confdefs.h. */
5720 #include <$ac_header>
5721 _ACEOF
5722 if { (ac_try="$ac_cpp conftest.$ac_ext"
5723 case "(($ac_try" in
5724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5725 *) ac_try_echo=$ac_try;;
5726 esac
5727 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5728 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5729 ac_status=$?
5730 grep -v '^ *+' conftest.er1 >conftest.err
5731 rm -f conftest.er1
5732 cat conftest.err >&5
5733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5734 (exit $ac_status); } >/dev/null && {
5735 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5736 test ! -s conftest.err
5737 }; then
5738 ac_header_preproc=yes
5739 else
5740 echo "$as_me: failed program was:" >&5
5741 sed 's/^/| /' conftest.$ac_ext >&5
5743 ac_header_preproc=no
5746 rm -f conftest.err conftest.$ac_ext
5747 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5748 echo "${ECHO_T}$ac_header_preproc" >&6; }
5750 # So? What about this header?
5751 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5752 yes:no: )
5753 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5754 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5755 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5756 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5757 ac_header_preproc=yes
5759 no:yes:* )
5760 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5761 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5762 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5763 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5764 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5765 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5766 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5767 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5768 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5769 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5770 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5771 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5772 ( cat <<\_ASBOX
5773 ## -------------------------------------- ##
5774 ## Report this to http://bugs.python.org/ ##
5775 ## -------------------------------------- ##
5776 _ASBOX
5777 ) | sed "s/^/$as_me: WARNING: /" >&2
5779 esac
5780 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5781 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5782 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5783 echo $ECHO_N "(cached) $ECHO_C" >&6
5784 else
5785 eval "$as_ac_Header=\$ac_header_preproc"
5787 ac_res=`eval echo '${'$as_ac_Header'}'`
5788 { echo "$as_me:$LINENO: result: $ac_res" >&5
5789 echo "${ECHO_T}$ac_res" >&6; }
5792 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5793 cat >>confdefs.h <<_ACEOF
5794 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5795 _ACEOF
5799 done
5806 ac_header_dirent=no
5807 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
5808 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
5809 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
5810 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
5811 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5812 echo $ECHO_N "(cached) $ECHO_C" >&6
5813 else
5814 cat >conftest.$ac_ext <<_ACEOF
5815 /* confdefs.h. */
5816 _ACEOF
5817 cat confdefs.h >>conftest.$ac_ext
5818 cat >>conftest.$ac_ext <<_ACEOF
5819 /* end confdefs.h. */
5820 #include <sys/types.h>
5821 #include <$ac_hdr>
5824 main ()
5826 if ((DIR *) 0)
5827 return 0;
5829 return 0;
5831 _ACEOF
5832 rm -f conftest.$ac_objext
5833 if { (ac_try="$ac_compile"
5834 case "(($ac_try" in
5835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5836 *) ac_try_echo=$ac_try;;
5837 esac
5838 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5839 (eval "$ac_compile") 2>conftest.er1
5840 ac_status=$?
5841 grep -v '^ *+' conftest.er1 >conftest.err
5842 rm -f conftest.er1
5843 cat conftest.err >&5
5844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5845 (exit $ac_status); } && {
5846 test -z "$ac_c_werror_flag" ||
5847 test ! -s conftest.err
5848 } && test -s conftest.$ac_objext; then
5849 eval "$as_ac_Header=yes"
5850 else
5851 echo "$as_me: failed program was:" >&5
5852 sed 's/^/| /' conftest.$ac_ext >&5
5854 eval "$as_ac_Header=no"
5857 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5859 ac_res=`eval echo '${'$as_ac_Header'}'`
5860 { echo "$as_me:$LINENO: result: $ac_res" >&5
5861 echo "${ECHO_T}$ac_res" >&6; }
5862 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5863 cat >>confdefs.h <<_ACEOF
5864 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
5865 _ACEOF
5867 ac_header_dirent=$ac_hdr; break
5870 done
5871 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
5872 if test $ac_header_dirent = dirent.h; then
5873 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
5874 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
5875 if test "${ac_cv_search_opendir+set}" = set; then
5876 echo $ECHO_N "(cached) $ECHO_C" >&6
5877 else
5878 ac_func_search_save_LIBS=$LIBS
5879 cat >conftest.$ac_ext <<_ACEOF
5880 /* confdefs.h. */
5881 _ACEOF
5882 cat confdefs.h >>conftest.$ac_ext
5883 cat >>conftest.$ac_ext <<_ACEOF
5884 /* end confdefs.h. */
5886 /* Override any GCC internal prototype to avoid an error.
5887 Use char because int might match the return type of a GCC
5888 builtin and then its argument prototype would still apply. */
5889 #ifdef __cplusplus
5890 extern "C"
5891 #endif
5892 char opendir ();
5894 main ()
5896 return opendir ();
5898 return 0;
5900 _ACEOF
5901 for ac_lib in '' dir; do
5902 if test -z "$ac_lib"; then
5903 ac_res="none required"
5904 else
5905 ac_res=-l$ac_lib
5906 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5908 rm -f conftest.$ac_objext conftest$ac_exeext
5909 if { (ac_try="$ac_link"
5910 case "(($ac_try" in
5911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5912 *) ac_try_echo=$ac_try;;
5913 esac
5914 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5915 (eval "$ac_link") 2>conftest.er1
5916 ac_status=$?
5917 grep -v '^ *+' conftest.er1 >conftest.err
5918 rm -f conftest.er1
5919 cat conftest.err >&5
5920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5921 (exit $ac_status); } && {
5922 test -z "$ac_c_werror_flag" ||
5923 test ! -s conftest.err
5924 } && test -s conftest$ac_exeext &&
5925 $as_test_x conftest$ac_exeext; then
5926 ac_cv_search_opendir=$ac_res
5927 else
5928 echo "$as_me: failed program was:" >&5
5929 sed 's/^/| /' conftest.$ac_ext >&5
5934 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5935 conftest$ac_exeext
5936 if test "${ac_cv_search_opendir+set}" = set; then
5937 break
5939 done
5940 if test "${ac_cv_search_opendir+set}" = set; then
5942 else
5943 ac_cv_search_opendir=no
5945 rm conftest.$ac_ext
5946 LIBS=$ac_func_search_save_LIBS
5948 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
5949 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
5950 ac_res=$ac_cv_search_opendir
5951 if test "$ac_res" != no; then
5952 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5956 else
5957 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
5958 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
5959 if test "${ac_cv_search_opendir+set}" = set; then
5960 echo $ECHO_N "(cached) $ECHO_C" >&6
5961 else
5962 ac_func_search_save_LIBS=$LIBS
5963 cat >conftest.$ac_ext <<_ACEOF
5964 /* confdefs.h. */
5965 _ACEOF
5966 cat confdefs.h >>conftest.$ac_ext
5967 cat >>conftest.$ac_ext <<_ACEOF
5968 /* end confdefs.h. */
5970 /* Override any GCC internal prototype to avoid an error.
5971 Use char because int might match the return type of a GCC
5972 builtin and then its argument prototype would still apply. */
5973 #ifdef __cplusplus
5974 extern "C"
5975 #endif
5976 char opendir ();
5978 main ()
5980 return opendir ();
5982 return 0;
5984 _ACEOF
5985 for ac_lib in '' x; do
5986 if test -z "$ac_lib"; then
5987 ac_res="none required"
5988 else
5989 ac_res=-l$ac_lib
5990 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5992 rm -f conftest.$ac_objext conftest$ac_exeext
5993 if { (ac_try="$ac_link"
5994 case "(($ac_try" in
5995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5996 *) ac_try_echo=$ac_try;;
5997 esac
5998 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5999 (eval "$ac_link") 2>conftest.er1
6000 ac_status=$?
6001 grep -v '^ *+' conftest.er1 >conftest.err
6002 rm -f conftest.er1
6003 cat conftest.err >&5
6004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6005 (exit $ac_status); } && {
6006 test -z "$ac_c_werror_flag" ||
6007 test ! -s conftest.err
6008 } && test -s conftest$ac_exeext &&
6009 $as_test_x conftest$ac_exeext; then
6010 ac_cv_search_opendir=$ac_res
6011 else
6012 echo "$as_me: failed program was:" >&5
6013 sed 's/^/| /' conftest.$ac_ext >&5
6018 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6019 conftest$ac_exeext
6020 if test "${ac_cv_search_opendir+set}" = set; then
6021 break
6023 done
6024 if test "${ac_cv_search_opendir+set}" = set; then
6026 else
6027 ac_cv_search_opendir=no
6029 rm conftest.$ac_ext
6030 LIBS=$ac_func_search_save_LIBS
6032 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6033 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
6034 ac_res=$ac_cv_search_opendir
6035 if test "$ac_res" != no; then
6036 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6042 { echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
6043 echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6; }
6044 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
6045 echo $ECHO_N "(cached) $ECHO_C" >&6
6046 else
6047 cat >conftest.$ac_ext <<_ACEOF
6048 /* confdefs.h. */
6049 _ACEOF
6050 cat confdefs.h >>conftest.$ac_ext
6051 cat >>conftest.$ac_ext <<_ACEOF
6052 /* end confdefs.h. */
6053 #include <sys/types.h>
6055 main ()
6057 return makedev(0, 0);
6059 return 0;
6061 _ACEOF
6062 rm -f conftest.$ac_objext conftest$ac_exeext
6063 if { (ac_try="$ac_link"
6064 case "(($ac_try" in
6065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6066 *) ac_try_echo=$ac_try;;
6067 esac
6068 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6069 (eval "$ac_link") 2>conftest.er1
6070 ac_status=$?
6071 grep -v '^ *+' conftest.er1 >conftest.err
6072 rm -f conftest.er1
6073 cat conftest.err >&5
6074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6075 (exit $ac_status); } && {
6076 test -z "$ac_c_werror_flag" ||
6077 test ! -s conftest.err
6078 } && test -s conftest$ac_exeext &&
6079 $as_test_x conftest$ac_exeext; then
6080 ac_cv_header_sys_types_h_makedev=yes
6081 else
6082 echo "$as_me: failed program was:" >&5
6083 sed 's/^/| /' conftest.$ac_ext >&5
6085 ac_cv_header_sys_types_h_makedev=no
6088 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6089 conftest$ac_exeext conftest.$ac_ext
6092 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
6093 echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6; }
6095 if test $ac_cv_header_sys_types_h_makedev = no; then
6096 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
6097 { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
6098 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
6099 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
6100 echo $ECHO_N "(cached) $ECHO_C" >&6
6102 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
6103 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
6104 else
6105 # Is the header compilable?
6106 { echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
6107 echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6; }
6108 cat >conftest.$ac_ext <<_ACEOF
6109 /* confdefs.h. */
6110 _ACEOF
6111 cat confdefs.h >>conftest.$ac_ext
6112 cat >>conftest.$ac_ext <<_ACEOF
6113 /* end confdefs.h. */
6114 $ac_includes_default
6115 #include <sys/mkdev.h>
6116 _ACEOF
6117 rm -f conftest.$ac_objext
6118 if { (ac_try="$ac_compile"
6119 case "(($ac_try" in
6120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6121 *) ac_try_echo=$ac_try;;
6122 esac
6123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6124 (eval "$ac_compile") 2>conftest.er1
6125 ac_status=$?
6126 grep -v '^ *+' conftest.er1 >conftest.err
6127 rm -f conftest.er1
6128 cat conftest.err >&5
6129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6130 (exit $ac_status); } && {
6131 test -z "$ac_c_werror_flag" ||
6132 test ! -s conftest.err
6133 } && test -s conftest.$ac_objext; then
6134 ac_header_compiler=yes
6135 else
6136 echo "$as_me: failed program was:" >&5
6137 sed 's/^/| /' conftest.$ac_ext >&5
6139 ac_header_compiler=no
6142 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6143 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6144 echo "${ECHO_T}$ac_header_compiler" >&6; }
6146 # Is the header present?
6147 { echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
6148 echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6; }
6149 cat >conftest.$ac_ext <<_ACEOF
6150 /* confdefs.h. */
6151 _ACEOF
6152 cat confdefs.h >>conftest.$ac_ext
6153 cat >>conftest.$ac_ext <<_ACEOF
6154 /* end confdefs.h. */
6155 #include <sys/mkdev.h>
6156 _ACEOF
6157 if { (ac_try="$ac_cpp conftest.$ac_ext"
6158 case "(($ac_try" in
6159 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6160 *) ac_try_echo=$ac_try;;
6161 esac
6162 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6163 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6164 ac_status=$?
6165 grep -v '^ *+' conftest.er1 >conftest.err
6166 rm -f conftest.er1
6167 cat conftest.err >&5
6168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6169 (exit $ac_status); } >/dev/null && {
6170 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6171 test ! -s conftest.err
6172 }; then
6173 ac_header_preproc=yes
6174 else
6175 echo "$as_me: failed program was:" >&5
6176 sed 's/^/| /' conftest.$ac_ext >&5
6178 ac_header_preproc=no
6181 rm -f conftest.err conftest.$ac_ext
6182 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6183 echo "${ECHO_T}$ac_header_preproc" >&6; }
6185 # So? What about this header?
6186 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6187 yes:no: )
6188 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
6189 echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6190 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&5
6191 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&2;}
6192 ac_header_preproc=yes
6194 no:yes:* )
6195 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
6196 echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
6197 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&5
6198 echo "$as_me: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&2;}
6199 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: see the Autoconf documentation" >&5
6200 echo "$as_me: WARNING: sys/mkdev.h: see the Autoconf documentation" >&2;}
6201 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&5
6202 echo "$as_me: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&2;}
6203 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
6204 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
6205 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&5
6206 echo "$as_me: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&2;}
6207 ( cat <<\_ASBOX
6208 ## -------------------------------------- ##
6209 ## Report this to http://bugs.python.org/ ##
6210 ## -------------------------------------- ##
6211 _ASBOX
6212 ) | sed "s/^/$as_me: WARNING: /" >&2
6214 esac
6215 { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
6216 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
6217 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
6218 echo $ECHO_N "(cached) $ECHO_C" >&6
6219 else
6220 ac_cv_header_sys_mkdev_h=$ac_header_preproc
6222 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
6223 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
6226 if test $ac_cv_header_sys_mkdev_h = yes; then
6228 cat >>confdefs.h <<\_ACEOF
6229 #define MAJOR_IN_MKDEV 1
6230 _ACEOF
6236 if test $ac_cv_header_sys_mkdev_h = no; then
6237 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
6238 { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
6239 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
6240 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
6241 echo $ECHO_N "(cached) $ECHO_C" >&6
6243 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
6244 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
6245 else
6246 # Is the header compilable?
6247 { echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
6248 echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6; }
6249 cat >conftest.$ac_ext <<_ACEOF
6250 /* confdefs.h. */
6251 _ACEOF
6252 cat confdefs.h >>conftest.$ac_ext
6253 cat >>conftest.$ac_ext <<_ACEOF
6254 /* end confdefs.h. */
6255 $ac_includes_default
6256 #include <sys/sysmacros.h>
6257 _ACEOF
6258 rm -f conftest.$ac_objext
6259 if { (ac_try="$ac_compile"
6260 case "(($ac_try" in
6261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6262 *) ac_try_echo=$ac_try;;
6263 esac
6264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6265 (eval "$ac_compile") 2>conftest.er1
6266 ac_status=$?
6267 grep -v '^ *+' conftest.er1 >conftest.err
6268 rm -f conftest.er1
6269 cat conftest.err >&5
6270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6271 (exit $ac_status); } && {
6272 test -z "$ac_c_werror_flag" ||
6273 test ! -s conftest.err
6274 } && test -s conftest.$ac_objext; then
6275 ac_header_compiler=yes
6276 else
6277 echo "$as_me: failed program was:" >&5
6278 sed 's/^/| /' conftest.$ac_ext >&5
6280 ac_header_compiler=no
6283 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6284 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6285 echo "${ECHO_T}$ac_header_compiler" >&6; }
6287 # Is the header present?
6288 { echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
6289 echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6; }
6290 cat >conftest.$ac_ext <<_ACEOF
6291 /* confdefs.h. */
6292 _ACEOF
6293 cat confdefs.h >>conftest.$ac_ext
6294 cat >>conftest.$ac_ext <<_ACEOF
6295 /* end confdefs.h. */
6296 #include <sys/sysmacros.h>
6297 _ACEOF
6298 if { (ac_try="$ac_cpp conftest.$ac_ext"
6299 case "(($ac_try" in
6300 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6301 *) ac_try_echo=$ac_try;;
6302 esac
6303 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6304 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6305 ac_status=$?
6306 grep -v '^ *+' conftest.er1 >conftest.err
6307 rm -f conftest.er1
6308 cat conftest.err >&5
6309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6310 (exit $ac_status); } >/dev/null && {
6311 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6312 test ! -s conftest.err
6313 }; then
6314 ac_header_preproc=yes
6315 else
6316 echo "$as_me: failed program was:" >&5
6317 sed 's/^/| /' conftest.$ac_ext >&5
6319 ac_header_preproc=no
6322 rm -f conftest.err conftest.$ac_ext
6323 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6324 echo "${ECHO_T}$ac_header_preproc" >&6; }
6326 # So? What about this header?
6327 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6328 yes:no: )
6329 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
6330 echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6331 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&5
6332 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&2;}
6333 ac_header_preproc=yes
6335 no:yes:* )
6336 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
6337 echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
6338 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&5
6339 echo "$as_me: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&2;}
6340 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&5
6341 echo "$as_me: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&2;}
6342 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&5
6343 echo "$as_me: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&2;}
6344 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
6345 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
6346 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&5
6347 echo "$as_me: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&2;}
6348 ( cat <<\_ASBOX
6349 ## -------------------------------------- ##
6350 ## Report this to http://bugs.python.org/ ##
6351 ## -------------------------------------- ##
6352 _ASBOX
6353 ) | sed "s/^/$as_me: WARNING: /" >&2
6355 esac
6356 { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
6357 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
6358 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
6359 echo $ECHO_N "(cached) $ECHO_C" >&6
6360 else
6361 ac_cv_header_sys_sysmacros_h=$ac_header_preproc
6363 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
6364 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
6367 if test $ac_cv_header_sys_sysmacros_h = yes; then
6369 cat >>confdefs.h <<\_ACEOF
6370 #define MAJOR_IN_SYSMACROS 1
6371 _ACEOF
6380 # On Solaris, term.h requires curses.h
6382 for ac_header in term.h
6384 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6385 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6386 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6387 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6388 echo $ECHO_N "(cached) $ECHO_C" >&6
6389 else
6390 cat >conftest.$ac_ext <<_ACEOF
6391 /* confdefs.h. */
6392 _ACEOF
6393 cat confdefs.h >>conftest.$ac_ext
6394 cat >>conftest.$ac_ext <<_ACEOF
6395 /* end confdefs.h. */
6397 #ifdef HAVE_CURSES_H
6398 #include <curses.h>
6399 #endif
6402 #include <$ac_header>
6403 _ACEOF
6404 rm -f conftest.$ac_objext
6405 if { (ac_try="$ac_compile"
6406 case "(($ac_try" in
6407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6408 *) ac_try_echo=$ac_try;;
6409 esac
6410 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6411 (eval "$ac_compile") 2>conftest.er1
6412 ac_status=$?
6413 grep -v '^ *+' conftest.er1 >conftest.err
6414 rm -f conftest.er1
6415 cat conftest.err >&5
6416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6417 (exit $ac_status); } && {
6418 test -z "$ac_c_werror_flag" ||
6419 test ! -s conftest.err
6420 } && test -s conftest.$ac_objext; then
6421 eval "$as_ac_Header=yes"
6422 else
6423 echo "$as_me: failed program was:" >&5
6424 sed 's/^/| /' conftest.$ac_ext >&5
6426 eval "$as_ac_Header=no"
6429 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6431 ac_res=`eval echo '${'$as_ac_Header'}'`
6432 { echo "$as_me:$LINENO: result: $ac_res" >&5
6433 echo "${ECHO_T}$ac_res" >&6; }
6434 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6435 cat >>confdefs.h <<_ACEOF
6436 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6437 _ACEOF
6441 done
6444 # On Linux, netlink.h requires asm/types.h
6446 for ac_header in linux/netlink.h
6448 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6449 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6450 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6451 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6452 echo $ECHO_N "(cached) $ECHO_C" >&6
6453 else
6454 cat >conftest.$ac_ext <<_ACEOF
6455 /* confdefs.h. */
6456 _ACEOF
6457 cat confdefs.h >>conftest.$ac_ext
6458 cat >>conftest.$ac_ext <<_ACEOF
6459 /* end confdefs.h. */
6461 #ifdef HAVE_ASM_TYPES_H
6462 #include <asm/types.h>
6463 #endif
6464 #ifdef HAVE_SYS_SOCKET_H
6465 #include <sys/socket.h>
6466 #endif
6469 #include <$ac_header>
6470 _ACEOF
6471 rm -f conftest.$ac_objext
6472 if { (ac_try="$ac_compile"
6473 case "(($ac_try" in
6474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6475 *) ac_try_echo=$ac_try;;
6476 esac
6477 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6478 (eval "$ac_compile") 2>conftest.er1
6479 ac_status=$?
6480 grep -v '^ *+' conftest.er1 >conftest.err
6481 rm -f conftest.er1
6482 cat conftest.err >&5
6483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6484 (exit $ac_status); } && {
6485 test -z "$ac_c_werror_flag" ||
6486 test ! -s conftest.err
6487 } && test -s conftest.$ac_objext; then
6488 eval "$as_ac_Header=yes"
6489 else
6490 echo "$as_me: failed program was:" >&5
6491 sed 's/^/| /' conftest.$ac_ext >&5
6493 eval "$as_ac_Header=no"
6496 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6498 ac_res=`eval echo '${'$as_ac_Header'}'`
6499 { echo "$as_me:$LINENO: result: $ac_res" >&5
6500 echo "${ECHO_T}$ac_res" >&6; }
6501 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6502 cat >>confdefs.h <<_ACEOF
6503 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6504 _ACEOF
6508 done
6511 # checks for typedefs
6512 was_it_defined=no
6513 { echo "$as_me:$LINENO: checking for clock_t in time.h" >&5
6514 echo $ECHO_N "checking for clock_t in time.h... $ECHO_C" >&6; }
6515 cat >conftest.$ac_ext <<_ACEOF
6516 /* confdefs.h. */
6517 _ACEOF
6518 cat confdefs.h >>conftest.$ac_ext
6519 cat >>conftest.$ac_ext <<_ACEOF
6520 /* end confdefs.h. */
6521 #include <time.h>
6523 _ACEOF
6524 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6525 $EGREP "clock_t" >/dev/null 2>&1; then
6526 was_it_defined=yes
6527 else
6530 cat >>confdefs.h <<\_ACEOF
6531 #define clock_t long
6532 _ACEOF
6536 rm -f conftest*
6538 { echo "$as_me:$LINENO: result: $was_it_defined" >&5
6539 echo "${ECHO_T}$was_it_defined" >&6; }
6541 # Check whether using makedev requires defining _OSF_SOURCE
6542 { echo "$as_me:$LINENO: checking for makedev" >&5
6543 echo $ECHO_N "checking for makedev... $ECHO_C" >&6; }
6544 cat >conftest.$ac_ext <<_ACEOF
6545 /* confdefs.h. */
6546 _ACEOF
6547 cat confdefs.h >>conftest.$ac_ext
6548 cat >>conftest.$ac_ext <<_ACEOF
6549 /* end confdefs.h. */
6550 #include <sys/types.h>
6552 main ()
6554 makedev(0, 0)
6556 return 0;
6558 _ACEOF
6559 rm -f conftest.$ac_objext conftest$ac_exeext
6560 if { (ac_try="$ac_link"
6561 case "(($ac_try" in
6562 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6563 *) ac_try_echo=$ac_try;;
6564 esac
6565 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6566 (eval "$ac_link") 2>conftest.er1
6567 ac_status=$?
6568 grep -v '^ *+' conftest.er1 >conftest.err
6569 rm -f conftest.er1
6570 cat conftest.err >&5
6571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6572 (exit $ac_status); } && {
6573 test -z "$ac_c_werror_flag" ||
6574 test ! -s conftest.err
6575 } && test -s conftest$ac_exeext &&
6576 $as_test_x conftest$ac_exeext; then
6577 ac_cv_has_makedev=yes
6578 else
6579 echo "$as_me: failed program was:" >&5
6580 sed 's/^/| /' conftest.$ac_ext >&5
6582 ac_cv_has_makedev=no
6585 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6586 conftest$ac_exeext conftest.$ac_ext
6587 if test "$ac_cv_has_makedev" = "no"; then
6588 # we didn't link, try if _OSF_SOURCE will allow us to link
6589 cat >conftest.$ac_ext <<_ACEOF
6590 /* confdefs.h. */
6591 _ACEOF
6592 cat confdefs.h >>conftest.$ac_ext
6593 cat >>conftest.$ac_ext <<_ACEOF
6594 /* end confdefs.h. */
6596 #define _OSF_SOURCE 1
6597 #include <sys/types.h>
6600 main ()
6602 makedev(0, 0)
6604 return 0;
6606 _ACEOF
6607 rm -f conftest.$ac_objext conftest$ac_exeext
6608 if { (ac_try="$ac_link"
6609 case "(($ac_try" in
6610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6611 *) ac_try_echo=$ac_try;;
6612 esac
6613 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6614 (eval "$ac_link") 2>conftest.er1
6615 ac_status=$?
6616 grep -v '^ *+' conftest.er1 >conftest.err
6617 rm -f conftest.er1
6618 cat conftest.err >&5
6619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6620 (exit $ac_status); } && {
6621 test -z "$ac_c_werror_flag" ||
6622 test ! -s conftest.err
6623 } && test -s conftest$ac_exeext &&
6624 $as_test_x conftest$ac_exeext; then
6625 ac_cv_has_makedev=yes
6626 else
6627 echo "$as_me: failed program was:" >&5
6628 sed 's/^/| /' conftest.$ac_ext >&5
6630 ac_cv_has_makedev=no
6633 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6634 conftest$ac_exeext conftest.$ac_ext
6635 if test "$ac_cv_has_makedev" = "yes"; then
6637 cat >>confdefs.h <<\_ACEOF
6638 #define _OSF_SOURCE 1
6639 _ACEOF
6643 { echo "$as_me:$LINENO: result: $ac_cv_has_makedev" >&5
6644 echo "${ECHO_T}$ac_cv_has_makedev" >&6; }
6645 if test "$ac_cv_has_makedev" = "yes"; then
6647 cat >>confdefs.h <<\_ACEOF
6648 #define HAVE_MAKEDEV 1
6649 _ACEOF
6653 # Enabling LFS on Solaris (2.6 to 9) with gcc 2.95 triggers a bug in
6654 # the system headers: If _XOPEN_SOURCE and _LARGEFILE_SOURCE are
6655 # defined, but the compiler does not support pragma redefine_extname,
6656 # and _LARGEFILE64_SOURCE is not defined, the headers refer to 64-bit
6657 # structures (such as rlimit64) without declaring them. As a
6658 # work-around, disable LFS on such configurations
6660 use_lfs=yes
6661 { echo "$as_me:$LINENO: checking Solaris LFS bug" >&5
6662 echo $ECHO_N "checking Solaris LFS bug... $ECHO_C" >&6; }
6663 cat >conftest.$ac_ext <<_ACEOF
6664 /* confdefs.h. */
6665 _ACEOF
6666 cat confdefs.h >>conftest.$ac_ext
6667 cat >>conftest.$ac_ext <<_ACEOF
6668 /* end confdefs.h. */
6670 #define _LARGEFILE_SOURCE 1
6671 #define _FILE_OFFSET_BITS 64
6672 #include <sys/resource.h>
6675 main ()
6677 struct rlimit foo;
6679 return 0;
6681 _ACEOF
6682 rm -f conftest.$ac_objext
6683 if { (ac_try="$ac_compile"
6684 case "(($ac_try" in
6685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6686 *) ac_try_echo=$ac_try;;
6687 esac
6688 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6689 (eval "$ac_compile") 2>conftest.er1
6690 ac_status=$?
6691 grep -v '^ *+' conftest.er1 >conftest.err
6692 rm -f conftest.er1
6693 cat conftest.err >&5
6694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6695 (exit $ac_status); } && {
6696 test -z "$ac_c_werror_flag" ||
6697 test ! -s conftest.err
6698 } && test -s conftest.$ac_objext; then
6699 sol_lfs_bug=no
6700 else
6701 echo "$as_me: failed program was:" >&5
6702 sed 's/^/| /' conftest.$ac_ext >&5
6704 sol_lfs_bug=yes
6707 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6708 { echo "$as_me:$LINENO: result: $sol_lfs_bug" >&5
6709 echo "${ECHO_T}$sol_lfs_bug" >&6; }
6710 if test "$sol_lfs_bug" = "yes"; then
6711 use_lfs=no
6714 if test "$use_lfs" = "yes"; then
6715 # Two defines needed to enable largefile support on various platforms
6716 # These may affect some typedefs
6718 cat >>confdefs.h <<\_ACEOF
6719 #define _LARGEFILE_SOURCE 1
6720 _ACEOF
6723 cat >>confdefs.h <<\_ACEOF
6724 #define _FILE_OFFSET_BITS 64
6725 _ACEOF
6729 # Add some code to confdefs.h so that the test for off_t works on SCO
6730 cat >> confdefs.h <<\EOF
6731 #if defined(SCO_DS)
6732 #undef _OFF_T
6733 #endif
6736 # Type availability checks
6737 { echo "$as_me:$LINENO: checking for mode_t" >&5
6738 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; }
6739 if test "${ac_cv_type_mode_t+set}" = set; then
6740 echo $ECHO_N "(cached) $ECHO_C" >&6
6741 else
6742 cat >conftest.$ac_ext <<_ACEOF
6743 /* confdefs.h. */
6744 _ACEOF
6745 cat confdefs.h >>conftest.$ac_ext
6746 cat >>conftest.$ac_ext <<_ACEOF
6747 /* end confdefs.h. */
6748 $ac_includes_default
6749 typedef mode_t ac__type_new_;
6751 main ()
6753 if ((ac__type_new_ *) 0)
6754 return 0;
6755 if (sizeof (ac__type_new_))
6756 return 0;
6758 return 0;
6760 _ACEOF
6761 rm -f conftest.$ac_objext
6762 if { (ac_try="$ac_compile"
6763 case "(($ac_try" in
6764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6765 *) ac_try_echo=$ac_try;;
6766 esac
6767 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6768 (eval "$ac_compile") 2>conftest.er1
6769 ac_status=$?
6770 grep -v '^ *+' conftest.er1 >conftest.err
6771 rm -f conftest.er1
6772 cat conftest.err >&5
6773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6774 (exit $ac_status); } && {
6775 test -z "$ac_c_werror_flag" ||
6776 test ! -s conftest.err
6777 } && test -s conftest.$ac_objext; then
6778 ac_cv_type_mode_t=yes
6779 else
6780 echo "$as_me: failed program was:" >&5
6781 sed 's/^/| /' conftest.$ac_ext >&5
6783 ac_cv_type_mode_t=no
6786 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6788 { echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
6789 echo "${ECHO_T}$ac_cv_type_mode_t" >&6; }
6790 if test $ac_cv_type_mode_t = yes; then
6792 else
6794 cat >>confdefs.h <<_ACEOF
6795 #define mode_t int
6796 _ACEOF
6800 { echo "$as_me:$LINENO: checking for off_t" >&5
6801 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
6802 if test "${ac_cv_type_off_t+set}" = set; then
6803 echo $ECHO_N "(cached) $ECHO_C" >&6
6804 else
6805 cat >conftest.$ac_ext <<_ACEOF
6806 /* confdefs.h. */
6807 _ACEOF
6808 cat confdefs.h >>conftest.$ac_ext
6809 cat >>conftest.$ac_ext <<_ACEOF
6810 /* end confdefs.h. */
6811 $ac_includes_default
6812 typedef off_t ac__type_new_;
6814 main ()
6816 if ((ac__type_new_ *) 0)
6817 return 0;
6818 if (sizeof (ac__type_new_))
6819 return 0;
6821 return 0;
6823 _ACEOF
6824 rm -f conftest.$ac_objext
6825 if { (ac_try="$ac_compile"
6826 case "(($ac_try" in
6827 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6828 *) ac_try_echo=$ac_try;;
6829 esac
6830 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6831 (eval "$ac_compile") 2>conftest.er1
6832 ac_status=$?
6833 grep -v '^ *+' conftest.er1 >conftest.err
6834 rm -f conftest.er1
6835 cat conftest.err >&5
6836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6837 (exit $ac_status); } && {
6838 test -z "$ac_c_werror_flag" ||
6839 test ! -s conftest.err
6840 } && test -s conftest.$ac_objext; then
6841 ac_cv_type_off_t=yes
6842 else
6843 echo "$as_me: failed program was:" >&5
6844 sed 's/^/| /' conftest.$ac_ext >&5
6846 ac_cv_type_off_t=no
6849 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6851 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
6852 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
6853 if test $ac_cv_type_off_t = yes; then
6855 else
6857 cat >>confdefs.h <<_ACEOF
6858 #define off_t long int
6859 _ACEOF
6863 { echo "$as_me:$LINENO: checking for pid_t" >&5
6864 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
6865 if test "${ac_cv_type_pid_t+set}" = set; then
6866 echo $ECHO_N "(cached) $ECHO_C" >&6
6867 else
6868 cat >conftest.$ac_ext <<_ACEOF
6869 /* confdefs.h. */
6870 _ACEOF
6871 cat confdefs.h >>conftest.$ac_ext
6872 cat >>conftest.$ac_ext <<_ACEOF
6873 /* end confdefs.h. */
6874 $ac_includes_default
6875 typedef pid_t ac__type_new_;
6877 main ()
6879 if ((ac__type_new_ *) 0)
6880 return 0;
6881 if (sizeof (ac__type_new_))
6882 return 0;
6884 return 0;
6886 _ACEOF
6887 rm -f conftest.$ac_objext
6888 if { (ac_try="$ac_compile"
6889 case "(($ac_try" in
6890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6891 *) ac_try_echo=$ac_try;;
6892 esac
6893 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6894 (eval "$ac_compile") 2>conftest.er1
6895 ac_status=$?
6896 grep -v '^ *+' conftest.er1 >conftest.err
6897 rm -f conftest.er1
6898 cat conftest.err >&5
6899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6900 (exit $ac_status); } && {
6901 test -z "$ac_c_werror_flag" ||
6902 test ! -s conftest.err
6903 } && test -s conftest.$ac_objext; then
6904 ac_cv_type_pid_t=yes
6905 else
6906 echo "$as_me: failed program was:" >&5
6907 sed 's/^/| /' conftest.$ac_ext >&5
6909 ac_cv_type_pid_t=no
6912 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6914 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
6915 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
6916 if test $ac_cv_type_pid_t = yes; then
6918 else
6920 cat >>confdefs.h <<_ACEOF
6921 #define pid_t int
6922 _ACEOF
6926 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
6927 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
6928 if test "${ac_cv_type_signal+set}" = set; then
6929 echo $ECHO_N "(cached) $ECHO_C" >&6
6930 else
6931 cat >conftest.$ac_ext <<_ACEOF
6932 /* confdefs.h. */
6933 _ACEOF
6934 cat confdefs.h >>conftest.$ac_ext
6935 cat >>conftest.$ac_ext <<_ACEOF
6936 /* end confdefs.h. */
6937 #include <sys/types.h>
6938 #include <signal.h>
6941 main ()
6943 return *(signal (0, 0)) (0) == 1;
6945 return 0;
6947 _ACEOF
6948 rm -f conftest.$ac_objext
6949 if { (ac_try="$ac_compile"
6950 case "(($ac_try" in
6951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6952 *) ac_try_echo=$ac_try;;
6953 esac
6954 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6955 (eval "$ac_compile") 2>conftest.er1
6956 ac_status=$?
6957 grep -v '^ *+' conftest.er1 >conftest.err
6958 rm -f conftest.er1
6959 cat conftest.err >&5
6960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6961 (exit $ac_status); } && {
6962 test -z "$ac_c_werror_flag" ||
6963 test ! -s conftest.err
6964 } && test -s conftest.$ac_objext; then
6965 ac_cv_type_signal=int
6966 else
6967 echo "$as_me: failed program was:" >&5
6968 sed 's/^/| /' conftest.$ac_ext >&5
6970 ac_cv_type_signal=void
6973 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6975 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
6976 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
6978 cat >>confdefs.h <<_ACEOF
6979 #define RETSIGTYPE $ac_cv_type_signal
6980 _ACEOF
6983 { echo "$as_me:$LINENO: checking for size_t" >&5
6984 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
6985 if test "${ac_cv_type_size_t+set}" = set; then
6986 echo $ECHO_N "(cached) $ECHO_C" >&6
6987 else
6988 cat >conftest.$ac_ext <<_ACEOF
6989 /* confdefs.h. */
6990 _ACEOF
6991 cat confdefs.h >>conftest.$ac_ext
6992 cat >>conftest.$ac_ext <<_ACEOF
6993 /* end confdefs.h. */
6994 $ac_includes_default
6995 typedef size_t ac__type_new_;
6997 main ()
6999 if ((ac__type_new_ *) 0)
7000 return 0;
7001 if (sizeof (ac__type_new_))
7002 return 0;
7004 return 0;
7006 _ACEOF
7007 rm -f conftest.$ac_objext
7008 if { (ac_try="$ac_compile"
7009 case "(($ac_try" in
7010 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7011 *) ac_try_echo=$ac_try;;
7012 esac
7013 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7014 (eval "$ac_compile") 2>conftest.er1
7015 ac_status=$?
7016 grep -v '^ *+' conftest.er1 >conftest.err
7017 rm -f conftest.er1
7018 cat conftest.err >&5
7019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7020 (exit $ac_status); } && {
7021 test -z "$ac_c_werror_flag" ||
7022 test ! -s conftest.err
7023 } && test -s conftest.$ac_objext; then
7024 ac_cv_type_size_t=yes
7025 else
7026 echo "$as_me: failed program was:" >&5
7027 sed 's/^/| /' conftest.$ac_ext >&5
7029 ac_cv_type_size_t=no
7032 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7034 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
7035 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
7036 if test $ac_cv_type_size_t = yes; then
7038 else
7040 cat >>confdefs.h <<_ACEOF
7041 #define size_t unsigned int
7042 _ACEOF
7046 { echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
7047 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
7048 if test "${ac_cv_type_uid_t+set}" = set; then
7049 echo $ECHO_N "(cached) $ECHO_C" >&6
7050 else
7051 cat >conftest.$ac_ext <<_ACEOF
7052 /* confdefs.h. */
7053 _ACEOF
7054 cat confdefs.h >>conftest.$ac_ext
7055 cat >>conftest.$ac_ext <<_ACEOF
7056 /* end confdefs.h. */
7057 #include <sys/types.h>
7059 _ACEOF
7060 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7061 $EGREP "uid_t" >/dev/null 2>&1; then
7062 ac_cv_type_uid_t=yes
7063 else
7064 ac_cv_type_uid_t=no
7066 rm -f conftest*
7069 { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
7070 echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
7071 if test $ac_cv_type_uid_t = no; then
7073 cat >>confdefs.h <<\_ACEOF
7074 #define uid_t int
7075 _ACEOF
7078 cat >>confdefs.h <<\_ACEOF
7079 #define gid_t int
7080 _ACEOF
7085 { echo "$as_me:$LINENO: checking for uint32_t" >&5
7086 echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6; }
7087 if test "${ac_cv_c_uint32_t+set}" = set; then
7088 echo $ECHO_N "(cached) $ECHO_C" >&6
7089 else
7090 ac_cv_c_uint32_t=no
7091 for ac_type in 'uint32_t' 'unsigned int' 'unsigned long int' \
7092 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
7093 cat >conftest.$ac_ext <<_ACEOF
7094 /* confdefs.h. */
7095 _ACEOF
7096 cat confdefs.h >>conftest.$ac_ext
7097 cat >>conftest.$ac_ext <<_ACEOF
7098 /* end confdefs.h. */
7099 $ac_includes_default
7101 main ()
7103 static int test_array [1 - 2 * !(($ac_type) -1 >> (32 - 1) == 1)];
7104 test_array [0] = 0
7107 return 0;
7109 _ACEOF
7110 rm -f conftest.$ac_objext
7111 if { (ac_try="$ac_compile"
7112 case "(($ac_try" in
7113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7114 *) ac_try_echo=$ac_try;;
7115 esac
7116 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7117 (eval "$ac_compile") 2>conftest.er1
7118 ac_status=$?
7119 grep -v '^ *+' conftest.er1 >conftest.err
7120 rm -f conftest.er1
7121 cat conftest.err >&5
7122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7123 (exit $ac_status); } && {
7124 test -z "$ac_c_werror_flag" ||
7125 test ! -s conftest.err
7126 } && test -s conftest.$ac_objext; then
7127 case $ac_type in
7128 uint32_t) ac_cv_c_uint32_t=yes ;;
7129 *) ac_cv_c_uint32_t=$ac_type ;;
7130 esac
7132 else
7133 echo "$as_me: failed program was:" >&5
7134 sed 's/^/| /' conftest.$ac_ext >&5
7139 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7140 test "$ac_cv_c_uint32_t" != no && break
7141 done
7143 { echo "$as_me:$LINENO: result: $ac_cv_c_uint32_t" >&5
7144 echo "${ECHO_T}$ac_cv_c_uint32_t" >&6; }
7145 case $ac_cv_c_uint32_t in #(
7146 no|yes) ;; #(
7149 cat >>confdefs.h <<\_ACEOF
7150 #define _UINT32_T 1
7151 _ACEOF
7154 cat >>confdefs.h <<_ACEOF
7155 #define uint32_t $ac_cv_c_uint32_t
7156 _ACEOF
7158 esac
7161 { echo "$as_me:$LINENO: checking for uint64_t" >&5
7162 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
7163 if test "${ac_cv_c_uint64_t+set}" = set; then
7164 echo $ECHO_N "(cached) $ECHO_C" >&6
7165 else
7166 ac_cv_c_uint64_t=no
7167 for ac_type in 'uint64_t' 'unsigned int' 'unsigned long int' \
7168 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
7169 cat >conftest.$ac_ext <<_ACEOF
7170 /* confdefs.h. */
7171 _ACEOF
7172 cat confdefs.h >>conftest.$ac_ext
7173 cat >>conftest.$ac_ext <<_ACEOF
7174 /* end confdefs.h. */
7175 $ac_includes_default
7177 main ()
7179 static int test_array [1 - 2 * !(($ac_type) -1 >> (64 - 1) == 1)];
7180 test_array [0] = 0
7183 return 0;
7185 _ACEOF
7186 rm -f conftest.$ac_objext
7187 if { (ac_try="$ac_compile"
7188 case "(($ac_try" in
7189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7190 *) ac_try_echo=$ac_try;;
7191 esac
7192 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7193 (eval "$ac_compile") 2>conftest.er1
7194 ac_status=$?
7195 grep -v '^ *+' conftest.er1 >conftest.err
7196 rm -f conftest.er1
7197 cat conftest.err >&5
7198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7199 (exit $ac_status); } && {
7200 test -z "$ac_c_werror_flag" ||
7201 test ! -s conftest.err
7202 } && test -s conftest.$ac_objext; then
7203 case $ac_type in
7204 uint64_t) ac_cv_c_uint64_t=yes ;;
7205 *) ac_cv_c_uint64_t=$ac_type ;;
7206 esac
7208 else
7209 echo "$as_me: failed program was:" >&5
7210 sed 's/^/| /' conftest.$ac_ext >&5
7215 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7216 test "$ac_cv_c_uint64_t" != no && break
7217 done
7219 { echo "$as_me:$LINENO: result: $ac_cv_c_uint64_t" >&5
7220 echo "${ECHO_T}$ac_cv_c_uint64_t" >&6; }
7221 case $ac_cv_c_uint64_t in #(
7222 no|yes) ;; #(
7225 cat >>confdefs.h <<\_ACEOF
7226 #define _UINT64_T 1
7227 _ACEOF
7230 cat >>confdefs.h <<_ACEOF
7231 #define uint64_t $ac_cv_c_uint64_t
7232 _ACEOF
7234 esac
7237 { echo "$as_me:$LINENO: checking for int32_t" >&5
7238 echo $ECHO_N "checking for int32_t... $ECHO_C" >&6; }
7239 if test "${ac_cv_c_int32_t+set}" = set; then
7240 echo $ECHO_N "(cached) $ECHO_C" >&6
7241 else
7242 ac_cv_c_int32_t=no
7243 for ac_type in 'int32_t' 'int' 'long int' \
7244 'long long int' 'short int' 'signed char'; do
7245 cat >conftest.$ac_ext <<_ACEOF
7246 /* confdefs.h. */
7247 _ACEOF
7248 cat confdefs.h >>conftest.$ac_ext
7249 cat >>conftest.$ac_ext <<_ACEOF
7250 /* end confdefs.h. */
7251 $ac_includes_default
7253 main ()
7255 static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << (32 - 2)) - 1) * 2 + 1))];
7256 test_array [0] = 0
7259 return 0;
7261 _ACEOF
7262 rm -f conftest.$ac_objext
7263 if { (ac_try="$ac_compile"
7264 case "(($ac_try" in
7265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7266 *) ac_try_echo=$ac_try;;
7267 esac
7268 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7269 (eval "$ac_compile") 2>conftest.er1
7270 ac_status=$?
7271 grep -v '^ *+' conftest.er1 >conftest.err
7272 rm -f conftest.er1
7273 cat conftest.err >&5
7274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7275 (exit $ac_status); } && {
7276 test -z "$ac_c_werror_flag" ||
7277 test ! -s conftest.err
7278 } && test -s conftest.$ac_objext; then
7279 cat >conftest.$ac_ext <<_ACEOF
7280 /* confdefs.h. */
7281 _ACEOF
7282 cat confdefs.h >>conftest.$ac_ext
7283 cat >>conftest.$ac_ext <<_ACEOF
7284 /* end confdefs.h. */
7285 $ac_includes_default
7287 main ()
7289 static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << (32 - 2)) - 1) * 2 + 1)
7290 < ($ac_type) (((($ac_type) 1 << (32 - 2)) - 1) * 2 + 2))];
7291 test_array [0] = 0
7294 return 0;
7296 _ACEOF
7297 rm -f conftest.$ac_objext
7298 if { (ac_try="$ac_compile"
7299 case "(($ac_try" in
7300 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7301 *) ac_try_echo=$ac_try;;
7302 esac
7303 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7304 (eval "$ac_compile") 2>conftest.er1
7305 ac_status=$?
7306 grep -v '^ *+' conftest.er1 >conftest.err
7307 rm -f conftest.er1
7308 cat conftest.err >&5
7309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7310 (exit $ac_status); } && {
7311 test -z "$ac_c_werror_flag" ||
7312 test ! -s conftest.err
7313 } && test -s conftest.$ac_objext; then
7315 else
7316 echo "$as_me: failed program was:" >&5
7317 sed 's/^/| /' conftest.$ac_ext >&5
7319 case $ac_type in
7320 int32_t) ac_cv_c_int32_t=yes ;;
7321 *) ac_cv_c_int32_t=$ac_type ;;
7322 esac
7326 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7327 else
7328 echo "$as_me: failed program was:" >&5
7329 sed 's/^/| /' conftest.$ac_ext >&5
7334 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7335 test "$ac_cv_c_int32_t" != no && break
7336 done
7338 { echo "$as_me:$LINENO: result: $ac_cv_c_int32_t" >&5
7339 echo "${ECHO_T}$ac_cv_c_int32_t" >&6; }
7340 case $ac_cv_c_int32_t in #(
7341 no|yes) ;; #(
7344 cat >>confdefs.h <<_ACEOF
7345 #define int32_t $ac_cv_c_int32_t
7346 _ACEOF
7348 esac
7351 { echo "$as_me:$LINENO: checking for int64_t" >&5
7352 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
7353 if test "${ac_cv_c_int64_t+set}" = set; then
7354 echo $ECHO_N "(cached) $ECHO_C" >&6
7355 else
7356 ac_cv_c_int64_t=no
7357 for ac_type in 'int64_t' 'int' 'long int' \
7358 'long long int' 'short int' 'signed char'; do
7359 cat >conftest.$ac_ext <<_ACEOF
7360 /* confdefs.h. */
7361 _ACEOF
7362 cat confdefs.h >>conftest.$ac_ext
7363 cat >>conftest.$ac_ext <<_ACEOF
7364 /* end confdefs.h. */
7365 $ac_includes_default
7367 main ()
7369 static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << (64 - 2)) - 1) * 2 + 1))];
7370 test_array [0] = 0
7373 return 0;
7375 _ACEOF
7376 rm -f conftest.$ac_objext
7377 if { (ac_try="$ac_compile"
7378 case "(($ac_try" in
7379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7380 *) ac_try_echo=$ac_try;;
7381 esac
7382 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7383 (eval "$ac_compile") 2>conftest.er1
7384 ac_status=$?
7385 grep -v '^ *+' conftest.er1 >conftest.err
7386 rm -f conftest.er1
7387 cat conftest.err >&5
7388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7389 (exit $ac_status); } && {
7390 test -z "$ac_c_werror_flag" ||
7391 test ! -s conftest.err
7392 } && test -s conftest.$ac_objext; then
7393 cat >conftest.$ac_ext <<_ACEOF
7394 /* confdefs.h. */
7395 _ACEOF
7396 cat confdefs.h >>conftest.$ac_ext
7397 cat >>conftest.$ac_ext <<_ACEOF
7398 /* end confdefs.h. */
7399 $ac_includes_default
7401 main ()
7403 static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << (64 - 2)) - 1) * 2 + 1)
7404 < ($ac_type) (((($ac_type) 1 << (64 - 2)) - 1) * 2 + 2))];
7405 test_array [0] = 0
7408 return 0;
7410 _ACEOF
7411 rm -f conftest.$ac_objext
7412 if { (ac_try="$ac_compile"
7413 case "(($ac_try" in
7414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7415 *) ac_try_echo=$ac_try;;
7416 esac
7417 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7418 (eval "$ac_compile") 2>conftest.er1
7419 ac_status=$?
7420 grep -v '^ *+' conftest.er1 >conftest.err
7421 rm -f conftest.er1
7422 cat conftest.err >&5
7423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7424 (exit $ac_status); } && {
7425 test -z "$ac_c_werror_flag" ||
7426 test ! -s conftest.err
7427 } && test -s conftest.$ac_objext; then
7429 else
7430 echo "$as_me: failed program was:" >&5
7431 sed 's/^/| /' conftest.$ac_ext >&5
7433 case $ac_type in
7434 int64_t) ac_cv_c_int64_t=yes ;;
7435 *) ac_cv_c_int64_t=$ac_type ;;
7436 esac
7440 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7441 else
7442 echo "$as_me: failed program was:" >&5
7443 sed 's/^/| /' conftest.$ac_ext >&5
7448 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7449 test "$ac_cv_c_int64_t" != no && break
7450 done
7452 { echo "$as_me:$LINENO: result: $ac_cv_c_int64_t" >&5
7453 echo "${ECHO_T}$ac_cv_c_int64_t" >&6; }
7454 case $ac_cv_c_int64_t in #(
7455 no|yes) ;; #(
7458 cat >>confdefs.h <<_ACEOF
7459 #define int64_t $ac_cv_c_int64_t
7460 _ACEOF
7462 esac
7464 { echo "$as_me:$LINENO: checking for ssize_t" >&5
7465 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
7466 if test "${ac_cv_type_ssize_t+set}" = set; then
7467 echo $ECHO_N "(cached) $ECHO_C" >&6
7468 else
7469 cat >conftest.$ac_ext <<_ACEOF
7470 /* confdefs.h. */
7471 _ACEOF
7472 cat confdefs.h >>conftest.$ac_ext
7473 cat >>conftest.$ac_ext <<_ACEOF
7474 /* end confdefs.h. */
7475 $ac_includes_default
7476 typedef ssize_t ac__type_new_;
7478 main ()
7480 if ((ac__type_new_ *) 0)
7481 return 0;
7482 if (sizeof (ac__type_new_))
7483 return 0;
7485 return 0;
7487 _ACEOF
7488 rm -f conftest.$ac_objext
7489 if { (ac_try="$ac_compile"
7490 case "(($ac_try" in
7491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7492 *) ac_try_echo=$ac_try;;
7493 esac
7494 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7495 (eval "$ac_compile") 2>conftest.er1
7496 ac_status=$?
7497 grep -v '^ *+' conftest.er1 >conftest.err
7498 rm -f conftest.er1
7499 cat conftest.err >&5
7500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7501 (exit $ac_status); } && {
7502 test -z "$ac_c_werror_flag" ||
7503 test ! -s conftest.err
7504 } && test -s conftest.$ac_objext; then
7505 ac_cv_type_ssize_t=yes
7506 else
7507 echo "$as_me: failed program was:" >&5
7508 sed 's/^/| /' conftest.$ac_ext >&5
7510 ac_cv_type_ssize_t=no
7513 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7515 { echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
7516 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6; }
7517 if test $ac_cv_type_ssize_t = yes; then
7519 cat >>confdefs.h <<\_ACEOF
7520 #define HAVE_SSIZE_T 1
7521 _ACEOF
7526 # Sizes of various common basic types
7527 # ANSI C requires sizeof(char) == 1, so no need to check it
7528 { echo "$as_me:$LINENO: checking for int" >&5
7529 echo $ECHO_N "checking for int... $ECHO_C" >&6; }
7530 if test "${ac_cv_type_int+set}" = set; then
7531 echo $ECHO_N "(cached) $ECHO_C" >&6
7532 else
7533 cat >conftest.$ac_ext <<_ACEOF
7534 /* confdefs.h. */
7535 _ACEOF
7536 cat confdefs.h >>conftest.$ac_ext
7537 cat >>conftest.$ac_ext <<_ACEOF
7538 /* end confdefs.h. */
7539 $ac_includes_default
7540 typedef int ac__type_new_;
7542 main ()
7544 if ((ac__type_new_ *) 0)
7545 return 0;
7546 if (sizeof (ac__type_new_))
7547 return 0;
7549 return 0;
7551 _ACEOF
7552 rm -f conftest.$ac_objext
7553 if { (ac_try="$ac_compile"
7554 case "(($ac_try" in
7555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7556 *) ac_try_echo=$ac_try;;
7557 esac
7558 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7559 (eval "$ac_compile") 2>conftest.er1
7560 ac_status=$?
7561 grep -v '^ *+' conftest.er1 >conftest.err
7562 rm -f conftest.er1
7563 cat conftest.err >&5
7564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7565 (exit $ac_status); } && {
7566 test -z "$ac_c_werror_flag" ||
7567 test ! -s conftest.err
7568 } && test -s conftest.$ac_objext; then
7569 ac_cv_type_int=yes
7570 else
7571 echo "$as_me: failed program was:" >&5
7572 sed 's/^/| /' conftest.$ac_ext >&5
7574 ac_cv_type_int=no
7577 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7579 { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
7580 echo "${ECHO_T}$ac_cv_type_int" >&6; }
7582 # The cast to long int works around a bug in the HP C Compiler
7583 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7584 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7585 # This bug is HP SR number 8606223364.
7586 { echo "$as_me:$LINENO: checking size of int" >&5
7587 echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
7588 if test "${ac_cv_sizeof_int+set}" = set; then
7589 echo $ECHO_N "(cached) $ECHO_C" >&6
7590 else
7591 if test "$cross_compiling" = yes; then
7592 # Depending upon the size, compute the lo and hi bounds.
7593 cat >conftest.$ac_ext <<_ACEOF
7594 /* confdefs.h. */
7595 _ACEOF
7596 cat confdefs.h >>conftest.$ac_ext
7597 cat >>conftest.$ac_ext <<_ACEOF
7598 /* end confdefs.h. */
7599 $ac_includes_default
7600 typedef int ac__type_sizeof_;
7602 main ()
7604 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
7605 test_array [0] = 0
7608 return 0;
7610 _ACEOF
7611 rm -f conftest.$ac_objext
7612 if { (ac_try="$ac_compile"
7613 case "(($ac_try" in
7614 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7615 *) ac_try_echo=$ac_try;;
7616 esac
7617 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7618 (eval "$ac_compile") 2>conftest.er1
7619 ac_status=$?
7620 grep -v '^ *+' conftest.er1 >conftest.err
7621 rm -f conftest.er1
7622 cat conftest.err >&5
7623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7624 (exit $ac_status); } && {
7625 test -z "$ac_c_werror_flag" ||
7626 test ! -s conftest.err
7627 } && test -s conftest.$ac_objext; then
7628 ac_lo=0 ac_mid=0
7629 while :; do
7630 cat >conftest.$ac_ext <<_ACEOF
7631 /* confdefs.h. */
7632 _ACEOF
7633 cat confdefs.h >>conftest.$ac_ext
7634 cat >>conftest.$ac_ext <<_ACEOF
7635 /* end confdefs.h. */
7636 $ac_includes_default
7637 typedef int ac__type_sizeof_;
7639 main ()
7641 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
7642 test_array [0] = 0
7645 return 0;
7647 _ACEOF
7648 rm -f conftest.$ac_objext
7649 if { (ac_try="$ac_compile"
7650 case "(($ac_try" in
7651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7652 *) ac_try_echo=$ac_try;;
7653 esac
7654 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7655 (eval "$ac_compile") 2>conftest.er1
7656 ac_status=$?
7657 grep -v '^ *+' conftest.er1 >conftest.err
7658 rm -f conftest.er1
7659 cat conftest.err >&5
7660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7661 (exit $ac_status); } && {
7662 test -z "$ac_c_werror_flag" ||
7663 test ! -s conftest.err
7664 } && test -s conftest.$ac_objext; then
7665 ac_hi=$ac_mid; break
7666 else
7667 echo "$as_me: failed program was:" >&5
7668 sed 's/^/| /' conftest.$ac_ext >&5
7670 ac_lo=`expr $ac_mid + 1`
7671 if test $ac_lo -le $ac_mid; then
7672 ac_lo= ac_hi=
7673 break
7675 ac_mid=`expr 2 '*' $ac_mid + 1`
7678 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7679 done
7680 else
7681 echo "$as_me: failed program was:" >&5
7682 sed 's/^/| /' conftest.$ac_ext >&5
7684 cat >conftest.$ac_ext <<_ACEOF
7685 /* confdefs.h. */
7686 _ACEOF
7687 cat confdefs.h >>conftest.$ac_ext
7688 cat >>conftest.$ac_ext <<_ACEOF
7689 /* end confdefs.h. */
7690 $ac_includes_default
7691 typedef int ac__type_sizeof_;
7693 main ()
7695 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
7696 test_array [0] = 0
7699 return 0;
7701 _ACEOF
7702 rm -f conftest.$ac_objext
7703 if { (ac_try="$ac_compile"
7704 case "(($ac_try" in
7705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7706 *) ac_try_echo=$ac_try;;
7707 esac
7708 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7709 (eval "$ac_compile") 2>conftest.er1
7710 ac_status=$?
7711 grep -v '^ *+' conftest.er1 >conftest.err
7712 rm -f conftest.er1
7713 cat conftest.err >&5
7714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7715 (exit $ac_status); } && {
7716 test -z "$ac_c_werror_flag" ||
7717 test ! -s conftest.err
7718 } && test -s conftest.$ac_objext; then
7719 ac_hi=-1 ac_mid=-1
7720 while :; do
7721 cat >conftest.$ac_ext <<_ACEOF
7722 /* confdefs.h. */
7723 _ACEOF
7724 cat confdefs.h >>conftest.$ac_ext
7725 cat >>conftest.$ac_ext <<_ACEOF
7726 /* end confdefs.h. */
7727 $ac_includes_default
7728 typedef int ac__type_sizeof_;
7730 main ()
7732 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
7733 test_array [0] = 0
7736 return 0;
7738 _ACEOF
7739 rm -f conftest.$ac_objext
7740 if { (ac_try="$ac_compile"
7741 case "(($ac_try" in
7742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7743 *) ac_try_echo=$ac_try;;
7744 esac
7745 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7746 (eval "$ac_compile") 2>conftest.er1
7747 ac_status=$?
7748 grep -v '^ *+' conftest.er1 >conftest.err
7749 rm -f conftest.er1
7750 cat conftest.err >&5
7751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7752 (exit $ac_status); } && {
7753 test -z "$ac_c_werror_flag" ||
7754 test ! -s conftest.err
7755 } && test -s conftest.$ac_objext; then
7756 ac_lo=$ac_mid; break
7757 else
7758 echo "$as_me: failed program was:" >&5
7759 sed 's/^/| /' conftest.$ac_ext >&5
7761 ac_hi=`expr '(' $ac_mid ')' - 1`
7762 if test $ac_mid -le $ac_hi; then
7763 ac_lo= ac_hi=
7764 break
7766 ac_mid=`expr 2 '*' $ac_mid`
7769 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7770 done
7771 else
7772 echo "$as_me: failed program was:" >&5
7773 sed 's/^/| /' conftest.$ac_ext >&5
7775 ac_lo= ac_hi=
7778 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7781 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7782 # Binary search between lo and hi bounds.
7783 while test "x$ac_lo" != "x$ac_hi"; do
7784 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7785 cat >conftest.$ac_ext <<_ACEOF
7786 /* confdefs.h. */
7787 _ACEOF
7788 cat confdefs.h >>conftest.$ac_ext
7789 cat >>conftest.$ac_ext <<_ACEOF
7790 /* end confdefs.h. */
7791 $ac_includes_default
7792 typedef int ac__type_sizeof_;
7794 main ()
7796 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
7797 test_array [0] = 0
7800 return 0;
7802 _ACEOF
7803 rm -f conftest.$ac_objext
7804 if { (ac_try="$ac_compile"
7805 case "(($ac_try" in
7806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7807 *) ac_try_echo=$ac_try;;
7808 esac
7809 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7810 (eval "$ac_compile") 2>conftest.er1
7811 ac_status=$?
7812 grep -v '^ *+' conftest.er1 >conftest.err
7813 rm -f conftest.er1
7814 cat conftest.err >&5
7815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7816 (exit $ac_status); } && {
7817 test -z "$ac_c_werror_flag" ||
7818 test ! -s conftest.err
7819 } && test -s conftest.$ac_objext; then
7820 ac_hi=$ac_mid
7821 else
7822 echo "$as_me: failed program was:" >&5
7823 sed 's/^/| /' conftest.$ac_ext >&5
7825 ac_lo=`expr '(' $ac_mid ')' + 1`
7828 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7829 done
7830 case $ac_lo in
7831 ?*) ac_cv_sizeof_int=$ac_lo;;
7832 '') if test "$ac_cv_type_int" = yes; then
7833 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
7834 See \`config.log' for more details." >&5
7835 echo "$as_me: error: cannot compute sizeof (int)
7836 See \`config.log' for more details." >&2;}
7837 { (exit 77); exit 77; }; }
7838 else
7839 ac_cv_sizeof_int=0
7840 fi ;;
7841 esac
7842 else
7843 cat >conftest.$ac_ext <<_ACEOF
7844 /* confdefs.h. */
7845 _ACEOF
7846 cat confdefs.h >>conftest.$ac_ext
7847 cat >>conftest.$ac_ext <<_ACEOF
7848 /* end confdefs.h. */
7849 $ac_includes_default
7850 typedef int ac__type_sizeof_;
7851 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
7852 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
7853 #include <stdio.h>
7854 #include <stdlib.h>
7856 main ()
7859 FILE *f = fopen ("conftest.val", "w");
7860 if (! f)
7861 return 1;
7862 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
7864 long int i = longval ();
7865 if (i != ((long int) (sizeof (ac__type_sizeof_))))
7866 return 1;
7867 fprintf (f, "%ld\n", i);
7869 else
7871 unsigned long int i = ulongval ();
7872 if (i != ((long int) (sizeof (ac__type_sizeof_))))
7873 return 1;
7874 fprintf (f, "%lu\n", i);
7876 return ferror (f) || fclose (f) != 0;
7879 return 0;
7881 _ACEOF
7882 rm -f conftest$ac_exeext
7883 if { (ac_try="$ac_link"
7884 case "(($ac_try" in
7885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7886 *) ac_try_echo=$ac_try;;
7887 esac
7888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7889 (eval "$ac_link") 2>&5
7890 ac_status=$?
7891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7892 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7893 { (case "(($ac_try" in
7894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7895 *) ac_try_echo=$ac_try;;
7896 esac
7897 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7898 (eval "$ac_try") 2>&5
7899 ac_status=$?
7900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7901 (exit $ac_status); }; }; then
7902 ac_cv_sizeof_int=`cat conftest.val`
7903 else
7904 echo "$as_me: program exited with status $ac_status" >&5
7905 echo "$as_me: failed program was:" >&5
7906 sed 's/^/| /' conftest.$ac_ext >&5
7908 ( exit $ac_status )
7909 if test "$ac_cv_type_int" = yes; then
7910 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
7911 See \`config.log' for more details." >&5
7912 echo "$as_me: error: cannot compute sizeof (int)
7913 See \`config.log' for more details." >&2;}
7914 { (exit 77); exit 77; }; }
7915 else
7916 ac_cv_sizeof_int=0
7919 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7921 rm -f conftest.val
7923 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
7924 echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
7928 cat >>confdefs.h <<_ACEOF
7929 #define SIZEOF_INT $ac_cv_sizeof_int
7930 _ACEOF
7933 { echo "$as_me:$LINENO: checking for long" >&5
7934 echo $ECHO_N "checking for long... $ECHO_C" >&6; }
7935 if test "${ac_cv_type_long+set}" = set; then
7936 echo $ECHO_N "(cached) $ECHO_C" >&6
7937 else
7938 cat >conftest.$ac_ext <<_ACEOF
7939 /* confdefs.h. */
7940 _ACEOF
7941 cat confdefs.h >>conftest.$ac_ext
7942 cat >>conftest.$ac_ext <<_ACEOF
7943 /* end confdefs.h. */
7944 $ac_includes_default
7945 typedef long ac__type_new_;
7947 main ()
7949 if ((ac__type_new_ *) 0)
7950 return 0;
7951 if (sizeof (ac__type_new_))
7952 return 0;
7954 return 0;
7956 _ACEOF
7957 rm -f conftest.$ac_objext
7958 if { (ac_try="$ac_compile"
7959 case "(($ac_try" in
7960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7961 *) ac_try_echo=$ac_try;;
7962 esac
7963 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7964 (eval "$ac_compile") 2>conftest.er1
7965 ac_status=$?
7966 grep -v '^ *+' conftest.er1 >conftest.err
7967 rm -f conftest.er1
7968 cat conftest.err >&5
7969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7970 (exit $ac_status); } && {
7971 test -z "$ac_c_werror_flag" ||
7972 test ! -s conftest.err
7973 } && test -s conftest.$ac_objext; then
7974 ac_cv_type_long=yes
7975 else
7976 echo "$as_me: failed program was:" >&5
7977 sed 's/^/| /' conftest.$ac_ext >&5
7979 ac_cv_type_long=no
7982 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7984 { echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
7985 echo "${ECHO_T}$ac_cv_type_long" >&6; }
7987 # The cast to long int works around a bug in the HP C Compiler
7988 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7989 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7990 # This bug is HP SR number 8606223364.
7991 { echo "$as_me:$LINENO: checking size of long" >&5
7992 echo $ECHO_N "checking size of long... $ECHO_C" >&6; }
7993 if test "${ac_cv_sizeof_long+set}" = set; then
7994 echo $ECHO_N "(cached) $ECHO_C" >&6
7995 else
7996 if test "$cross_compiling" = yes; then
7997 # Depending upon the size, compute the lo and hi bounds.
7998 cat >conftest.$ac_ext <<_ACEOF
7999 /* confdefs.h. */
8000 _ACEOF
8001 cat confdefs.h >>conftest.$ac_ext
8002 cat >>conftest.$ac_ext <<_ACEOF
8003 /* end confdefs.h. */
8004 $ac_includes_default
8005 typedef long ac__type_sizeof_;
8007 main ()
8009 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
8010 test_array [0] = 0
8013 return 0;
8015 _ACEOF
8016 rm -f conftest.$ac_objext
8017 if { (ac_try="$ac_compile"
8018 case "(($ac_try" in
8019 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8020 *) ac_try_echo=$ac_try;;
8021 esac
8022 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8023 (eval "$ac_compile") 2>conftest.er1
8024 ac_status=$?
8025 grep -v '^ *+' conftest.er1 >conftest.err
8026 rm -f conftest.er1
8027 cat conftest.err >&5
8028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8029 (exit $ac_status); } && {
8030 test -z "$ac_c_werror_flag" ||
8031 test ! -s conftest.err
8032 } && test -s conftest.$ac_objext; then
8033 ac_lo=0 ac_mid=0
8034 while :; do
8035 cat >conftest.$ac_ext <<_ACEOF
8036 /* confdefs.h. */
8037 _ACEOF
8038 cat confdefs.h >>conftest.$ac_ext
8039 cat >>conftest.$ac_ext <<_ACEOF
8040 /* end confdefs.h. */
8041 $ac_includes_default
8042 typedef long ac__type_sizeof_;
8044 main ()
8046 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8047 test_array [0] = 0
8050 return 0;
8052 _ACEOF
8053 rm -f conftest.$ac_objext
8054 if { (ac_try="$ac_compile"
8055 case "(($ac_try" in
8056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8057 *) ac_try_echo=$ac_try;;
8058 esac
8059 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8060 (eval "$ac_compile") 2>conftest.er1
8061 ac_status=$?
8062 grep -v '^ *+' conftest.er1 >conftest.err
8063 rm -f conftest.er1
8064 cat conftest.err >&5
8065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8066 (exit $ac_status); } && {
8067 test -z "$ac_c_werror_flag" ||
8068 test ! -s conftest.err
8069 } && test -s conftest.$ac_objext; then
8070 ac_hi=$ac_mid; break
8071 else
8072 echo "$as_me: failed program was:" >&5
8073 sed 's/^/| /' conftest.$ac_ext >&5
8075 ac_lo=`expr $ac_mid + 1`
8076 if test $ac_lo -le $ac_mid; then
8077 ac_lo= ac_hi=
8078 break
8080 ac_mid=`expr 2 '*' $ac_mid + 1`
8083 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8084 done
8085 else
8086 echo "$as_me: failed program was:" >&5
8087 sed 's/^/| /' conftest.$ac_ext >&5
8089 cat >conftest.$ac_ext <<_ACEOF
8090 /* confdefs.h. */
8091 _ACEOF
8092 cat confdefs.h >>conftest.$ac_ext
8093 cat >>conftest.$ac_ext <<_ACEOF
8094 /* end confdefs.h. */
8095 $ac_includes_default
8096 typedef long ac__type_sizeof_;
8098 main ()
8100 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
8101 test_array [0] = 0
8104 return 0;
8106 _ACEOF
8107 rm -f conftest.$ac_objext
8108 if { (ac_try="$ac_compile"
8109 case "(($ac_try" in
8110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8111 *) ac_try_echo=$ac_try;;
8112 esac
8113 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8114 (eval "$ac_compile") 2>conftest.er1
8115 ac_status=$?
8116 grep -v '^ *+' conftest.er1 >conftest.err
8117 rm -f conftest.er1
8118 cat conftest.err >&5
8119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8120 (exit $ac_status); } && {
8121 test -z "$ac_c_werror_flag" ||
8122 test ! -s conftest.err
8123 } && test -s conftest.$ac_objext; then
8124 ac_hi=-1 ac_mid=-1
8125 while :; do
8126 cat >conftest.$ac_ext <<_ACEOF
8127 /* confdefs.h. */
8128 _ACEOF
8129 cat confdefs.h >>conftest.$ac_ext
8130 cat >>conftest.$ac_ext <<_ACEOF
8131 /* end confdefs.h. */
8132 $ac_includes_default
8133 typedef long ac__type_sizeof_;
8135 main ()
8137 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
8138 test_array [0] = 0
8141 return 0;
8143 _ACEOF
8144 rm -f conftest.$ac_objext
8145 if { (ac_try="$ac_compile"
8146 case "(($ac_try" in
8147 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8148 *) ac_try_echo=$ac_try;;
8149 esac
8150 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8151 (eval "$ac_compile") 2>conftest.er1
8152 ac_status=$?
8153 grep -v '^ *+' conftest.er1 >conftest.err
8154 rm -f conftest.er1
8155 cat conftest.err >&5
8156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8157 (exit $ac_status); } && {
8158 test -z "$ac_c_werror_flag" ||
8159 test ! -s conftest.err
8160 } && test -s conftest.$ac_objext; then
8161 ac_lo=$ac_mid; break
8162 else
8163 echo "$as_me: failed program was:" >&5
8164 sed 's/^/| /' conftest.$ac_ext >&5
8166 ac_hi=`expr '(' $ac_mid ')' - 1`
8167 if test $ac_mid -le $ac_hi; then
8168 ac_lo= ac_hi=
8169 break
8171 ac_mid=`expr 2 '*' $ac_mid`
8174 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8175 done
8176 else
8177 echo "$as_me: failed program was:" >&5
8178 sed 's/^/| /' conftest.$ac_ext >&5
8180 ac_lo= ac_hi=
8183 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8186 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8187 # Binary search between lo and hi bounds.
8188 while test "x$ac_lo" != "x$ac_hi"; do
8189 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8190 cat >conftest.$ac_ext <<_ACEOF
8191 /* confdefs.h. */
8192 _ACEOF
8193 cat confdefs.h >>conftest.$ac_ext
8194 cat >>conftest.$ac_ext <<_ACEOF
8195 /* end confdefs.h. */
8196 $ac_includes_default
8197 typedef long ac__type_sizeof_;
8199 main ()
8201 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8202 test_array [0] = 0
8205 return 0;
8207 _ACEOF
8208 rm -f conftest.$ac_objext
8209 if { (ac_try="$ac_compile"
8210 case "(($ac_try" in
8211 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8212 *) ac_try_echo=$ac_try;;
8213 esac
8214 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8215 (eval "$ac_compile") 2>conftest.er1
8216 ac_status=$?
8217 grep -v '^ *+' conftest.er1 >conftest.err
8218 rm -f conftest.er1
8219 cat conftest.err >&5
8220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8221 (exit $ac_status); } && {
8222 test -z "$ac_c_werror_flag" ||
8223 test ! -s conftest.err
8224 } && test -s conftest.$ac_objext; then
8225 ac_hi=$ac_mid
8226 else
8227 echo "$as_me: failed program was:" >&5
8228 sed 's/^/| /' conftest.$ac_ext >&5
8230 ac_lo=`expr '(' $ac_mid ')' + 1`
8233 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8234 done
8235 case $ac_lo in
8236 ?*) ac_cv_sizeof_long=$ac_lo;;
8237 '') if test "$ac_cv_type_long" = yes; then
8238 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
8239 See \`config.log' for more details." >&5
8240 echo "$as_me: error: cannot compute sizeof (long)
8241 See \`config.log' for more details." >&2;}
8242 { (exit 77); exit 77; }; }
8243 else
8244 ac_cv_sizeof_long=0
8245 fi ;;
8246 esac
8247 else
8248 cat >conftest.$ac_ext <<_ACEOF
8249 /* confdefs.h. */
8250 _ACEOF
8251 cat confdefs.h >>conftest.$ac_ext
8252 cat >>conftest.$ac_ext <<_ACEOF
8253 /* end confdefs.h. */
8254 $ac_includes_default
8255 typedef long ac__type_sizeof_;
8256 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
8257 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
8258 #include <stdio.h>
8259 #include <stdlib.h>
8261 main ()
8264 FILE *f = fopen ("conftest.val", "w");
8265 if (! f)
8266 return 1;
8267 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
8269 long int i = longval ();
8270 if (i != ((long int) (sizeof (ac__type_sizeof_))))
8271 return 1;
8272 fprintf (f, "%ld\n", i);
8274 else
8276 unsigned long int i = ulongval ();
8277 if (i != ((long int) (sizeof (ac__type_sizeof_))))
8278 return 1;
8279 fprintf (f, "%lu\n", i);
8281 return ferror (f) || fclose (f) != 0;
8284 return 0;
8286 _ACEOF
8287 rm -f conftest$ac_exeext
8288 if { (ac_try="$ac_link"
8289 case "(($ac_try" in
8290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8291 *) ac_try_echo=$ac_try;;
8292 esac
8293 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8294 (eval "$ac_link") 2>&5
8295 ac_status=$?
8296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8297 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8298 { (case "(($ac_try" in
8299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8300 *) ac_try_echo=$ac_try;;
8301 esac
8302 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8303 (eval "$ac_try") 2>&5
8304 ac_status=$?
8305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8306 (exit $ac_status); }; }; then
8307 ac_cv_sizeof_long=`cat conftest.val`
8308 else
8309 echo "$as_me: program exited with status $ac_status" >&5
8310 echo "$as_me: failed program was:" >&5
8311 sed 's/^/| /' conftest.$ac_ext >&5
8313 ( exit $ac_status )
8314 if test "$ac_cv_type_long" = yes; then
8315 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
8316 See \`config.log' for more details." >&5
8317 echo "$as_me: error: cannot compute sizeof (long)
8318 See \`config.log' for more details." >&2;}
8319 { (exit 77); exit 77; }; }
8320 else
8321 ac_cv_sizeof_long=0
8324 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8326 rm -f conftest.val
8328 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
8329 echo "${ECHO_T}$ac_cv_sizeof_long" >&6; }
8333 cat >>confdefs.h <<_ACEOF
8334 #define SIZEOF_LONG $ac_cv_sizeof_long
8335 _ACEOF
8338 { echo "$as_me:$LINENO: checking for void *" >&5
8339 echo $ECHO_N "checking for void *... $ECHO_C" >&6; }
8340 if test "${ac_cv_type_void_p+set}" = set; then
8341 echo $ECHO_N "(cached) $ECHO_C" >&6
8342 else
8343 cat >conftest.$ac_ext <<_ACEOF
8344 /* confdefs.h. */
8345 _ACEOF
8346 cat confdefs.h >>conftest.$ac_ext
8347 cat >>conftest.$ac_ext <<_ACEOF
8348 /* end confdefs.h. */
8349 $ac_includes_default
8350 typedef void * ac__type_new_;
8352 main ()
8354 if ((ac__type_new_ *) 0)
8355 return 0;
8356 if (sizeof (ac__type_new_))
8357 return 0;
8359 return 0;
8361 _ACEOF
8362 rm -f conftest.$ac_objext
8363 if { (ac_try="$ac_compile"
8364 case "(($ac_try" in
8365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8366 *) ac_try_echo=$ac_try;;
8367 esac
8368 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8369 (eval "$ac_compile") 2>conftest.er1
8370 ac_status=$?
8371 grep -v '^ *+' conftest.er1 >conftest.err
8372 rm -f conftest.er1
8373 cat conftest.err >&5
8374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8375 (exit $ac_status); } && {
8376 test -z "$ac_c_werror_flag" ||
8377 test ! -s conftest.err
8378 } && test -s conftest.$ac_objext; then
8379 ac_cv_type_void_p=yes
8380 else
8381 echo "$as_me: failed program was:" >&5
8382 sed 's/^/| /' conftest.$ac_ext >&5
8384 ac_cv_type_void_p=no
8387 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8389 { echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
8390 echo "${ECHO_T}$ac_cv_type_void_p" >&6; }
8392 # The cast to long int works around a bug in the HP C Compiler
8393 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8394 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8395 # This bug is HP SR number 8606223364.
8396 { echo "$as_me:$LINENO: checking size of void *" >&5
8397 echo $ECHO_N "checking size of void *... $ECHO_C" >&6; }
8398 if test "${ac_cv_sizeof_void_p+set}" = set; then
8399 echo $ECHO_N "(cached) $ECHO_C" >&6
8400 else
8401 if test "$cross_compiling" = yes; then
8402 # Depending upon the size, compute the lo and hi bounds.
8403 cat >conftest.$ac_ext <<_ACEOF
8404 /* confdefs.h. */
8405 _ACEOF
8406 cat confdefs.h >>conftest.$ac_ext
8407 cat >>conftest.$ac_ext <<_ACEOF
8408 /* end confdefs.h. */
8409 $ac_includes_default
8410 typedef void * ac__type_sizeof_;
8412 main ()
8414 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
8415 test_array [0] = 0
8418 return 0;
8420 _ACEOF
8421 rm -f conftest.$ac_objext
8422 if { (ac_try="$ac_compile"
8423 case "(($ac_try" in
8424 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8425 *) ac_try_echo=$ac_try;;
8426 esac
8427 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8428 (eval "$ac_compile") 2>conftest.er1
8429 ac_status=$?
8430 grep -v '^ *+' conftest.er1 >conftest.err
8431 rm -f conftest.er1
8432 cat conftest.err >&5
8433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8434 (exit $ac_status); } && {
8435 test -z "$ac_c_werror_flag" ||
8436 test ! -s conftest.err
8437 } && test -s conftest.$ac_objext; then
8438 ac_lo=0 ac_mid=0
8439 while :; do
8440 cat >conftest.$ac_ext <<_ACEOF
8441 /* confdefs.h. */
8442 _ACEOF
8443 cat confdefs.h >>conftest.$ac_ext
8444 cat >>conftest.$ac_ext <<_ACEOF
8445 /* end confdefs.h. */
8446 $ac_includes_default
8447 typedef void * ac__type_sizeof_;
8449 main ()
8451 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8452 test_array [0] = 0
8455 return 0;
8457 _ACEOF
8458 rm -f conftest.$ac_objext
8459 if { (ac_try="$ac_compile"
8460 case "(($ac_try" in
8461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8462 *) ac_try_echo=$ac_try;;
8463 esac
8464 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8465 (eval "$ac_compile") 2>conftest.er1
8466 ac_status=$?
8467 grep -v '^ *+' conftest.er1 >conftest.err
8468 rm -f conftest.er1
8469 cat conftest.err >&5
8470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8471 (exit $ac_status); } && {
8472 test -z "$ac_c_werror_flag" ||
8473 test ! -s conftest.err
8474 } && test -s conftest.$ac_objext; then
8475 ac_hi=$ac_mid; break
8476 else
8477 echo "$as_me: failed program was:" >&5
8478 sed 's/^/| /' conftest.$ac_ext >&5
8480 ac_lo=`expr $ac_mid + 1`
8481 if test $ac_lo -le $ac_mid; then
8482 ac_lo= ac_hi=
8483 break
8485 ac_mid=`expr 2 '*' $ac_mid + 1`
8488 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8489 done
8490 else
8491 echo "$as_me: failed program was:" >&5
8492 sed 's/^/| /' conftest.$ac_ext >&5
8494 cat >conftest.$ac_ext <<_ACEOF
8495 /* confdefs.h. */
8496 _ACEOF
8497 cat confdefs.h >>conftest.$ac_ext
8498 cat >>conftest.$ac_ext <<_ACEOF
8499 /* end confdefs.h. */
8500 $ac_includes_default
8501 typedef void * ac__type_sizeof_;
8503 main ()
8505 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
8506 test_array [0] = 0
8509 return 0;
8511 _ACEOF
8512 rm -f conftest.$ac_objext
8513 if { (ac_try="$ac_compile"
8514 case "(($ac_try" in
8515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8516 *) ac_try_echo=$ac_try;;
8517 esac
8518 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8519 (eval "$ac_compile") 2>conftest.er1
8520 ac_status=$?
8521 grep -v '^ *+' conftest.er1 >conftest.err
8522 rm -f conftest.er1
8523 cat conftest.err >&5
8524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8525 (exit $ac_status); } && {
8526 test -z "$ac_c_werror_flag" ||
8527 test ! -s conftest.err
8528 } && test -s conftest.$ac_objext; then
8529 ac_hi=-1 ac_mid=-1
8530 while :; do
8531 cat >conftest.$ac_ext <<_ACEOF
8532 /* confdefs.h. */
8533 _ACEOF
8534 cat confdefs.h >>conftest.$ac_ext
8535 cat >>conftest.$ac_ext <<_ACEOF
8536 /* end confdefs.h. */
8537 $ac_includes_default
8538 typedef void * ac__type_sizeof_;
8540 main ()
8542 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
8543 test_array [0] = 0
8546 return 0;
8548 _ACEOF
8549 rm -f conftest.$ac_objext
8550 if { (ac_try="$ac_compile"
8551 case "(($ac_try" in
8552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8553 *) ac_try_echo=$ac_try;;
8554 esac
8555 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8556 (eval "$ac_compile") 2>conftest.er1
8557 ac_status=$?
8558 grep -v '^ *+' conftest.er1 >conftest.err
8559 rm -f conftest.er1
8560 cat conftest.err >&5
8561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8562 (exit $ac_status); } && {
8563 test -z "$ac_c_werror_flag" ||
8564 test ! -s conftest.err
8565 } && test -s conftest.$ac_objext; then
8566 ac_lo=$ac_mid; break
8567 else
8568 echo "$as_me: failed program was:" >&5
8569 sed 's/^/| /' conftest.$ac_ext >&5
8571 ac_hi=`expr '(' $ac_mid ')' - 1`
8572 if test $ac_mid -le $ac_hi; then
8573 ac_lo= ac_hi=
8574 break
8576 ac_mid=`expr 2 '*' $ac_mid`
8579 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8580 done
8581 else
8582 echo "$as_me: failed program was:" >&5
8583 sed 's/^/| /' conftest.$ac_ext >&5
8585 ac_lo= ac_hi=
8588 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8591 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8592 # Binary search between lo and hi bounds.
8593 while test "x$ac_lo" != "x$ac_hi"; do
8594 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8595 cat >conftest.$ac_ext <<_ACEOF
8596 /* confdefs.h. */
8597 _ACEOF
8598 cat confdefs.h >>conftest.$ac_ext
8599 cat >>conftest.$ac_ext <<_ACEOF
8600 /* end confdefs.h. */
8601 $ac_includes_default
8602 typedef void * ac__type_sizeof_;
8604 main ()
8606 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8607 test_array [0] = 0
8610 return 0;
8612 _ACEOF
8613 rm -f conftest.$ac_objext
8614 if { (ac_try="$ac_compile"
8615 case "(($ac_try" in
8616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8617 *) ac_try_echo=$ac_try;;
8618 esac
8619 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8620 (eval "$ac_compile") 2>conftest.er1
8621 ac_status=$?
8622 grep -v '^ *+' conftest.er1 >conftest.err
8623 rm -f conftest.er1
8624 cat conftest.err >&5
8625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8626 (exit $ac_status); } && {
8627 test -z "$ac_c_werror_flag" ||
8628 test ! -s conftest.err
8629 } && test -s conftest.$ac_objext; then
8630 ac_hi=$ac_mid
8631 else
8632 echo "$as_me: failed program was:" >&5
8633 sed 's/^/| /' conftest.$ac_ext >&5
8635 ac_lo=`expr '(' $ac_mid ')' + 1`
8638 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8639 done
8640 case $ac_lo in
8641 ?*) ac_cv_sizeof_void_p=$ac_lo;;
8642 '') if test "$ac_cv_type_void_p" = yes; then
8643 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
8644 See \`config.log' for more details." >&5
8645 echo "$as_me: error: cannot compute sizeof (void *)
8646 See \`config.log' for more details." >&2;}
8647 { (exit 77); exit 77; }; }
8648 else
8649 ac_cv_sizeof_void_p=0
8650 fi ;;
8651 esac
8652 else
8653 cat >conftest.$ac_ext <<_ACEOF
8654 /* confdefs.h. */
8655 _ACEOF
8656 cat confdefs.h >>conftest.$ac_ext
8657 cat >>conftest.$ac_ext <<_ACEOF
8658 /* end confdefs.h. */
8659 $ac_includes_default
8660 typedef void * ac__type_sizeof_;
8661 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
8662 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
8663 #include <stdio.h>
8664 #include <stdlib.h>
8666 main ()
8669 FILE *f = fopen ("conftest.val", "w");
8670 if (! f)
8671 return 1;
8672 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
8674 long int i = longval ();
8675 if (i != ((long int) (sizeof (ac__type_sizeof_))))
8676 return 1;
8677 fprintf (f, "%ld\n", i);
8679 else
8681 unsigned long int i = ulongval ();
8682 if (i != ((long int) (sizeof (ac__type_sizeof_))))
8683 return 1;
8684 fprintf (f, "%lu\n", i);
8686 return ferror (f) || fclose (f) != 0;
8689 return 0;
8691 _ACEOF
8692 rm -f conftest$ac_exeext
8693 if { (ac_try="$ac_link"
8694 case "(($ac_try" in
8695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8696 *) ac_try_echo=$ac_try;;
8697 esac
8698 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8699 (eval "$ac_link") 2>&5
8700 ac_status=$?
8701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8702 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8703 { (case "(($ac_try" in
8704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8705 *) ac_try_echo=$ac_try;;
8706 esac
8707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8708 (eval "$ac_try") 2>&5
8709 ac_status=$?
8710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8711 (exit $ac_status); }; }; then
8712 ac_cv_sizeof_void_p=`cat conftest.val`
8713 else
8714 echo "$as_me: program exited with status $ac_status" >&5
8715 echo "$as_me: failed program was:" >&5
8716 sed 's/^/| /' conftest.$ac_ext >&5
8718 ( exit $ac_status )
8719 if test "$ac_cv_type_void_p" = yes; then
8720 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
8721 See \`config.log' for more details." >&5
8722 echo "$as_me: error: cannot compute sizeof (void *)
8723 See \`config.log' for more details." >&2;}
8724 { (exit 77); exit 77; }; }
8725 else
8726 ac_cv_sizeof_void_p=0
8729 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8731 rm -f conftest.val
8733 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
8734 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6; }
8738 cat >>confdefs.h <<_ACEOF
8739 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
8740 _ACEOF
8743 { echo "$as_me:$LINENO: checking for short" >&5
8744 echo $ECHO_N "checking for short... $ECHO_C" >&6; }
8745 if test "${ac_cv_type_short+set}" = set; then
8746 echo $ECHO_N "(cached) $ECHO_C" >&6
8747 else
8748 cat >conftest.$ac_ext <<_ACEOF
8749 /* confdefs.h. */
8750 _ACEOF
8751 cat confdefs.h >>conftest.$ac_ext
8752 cat >>conftest.$ac_ext <<_ACEOF
8753 /* end confdefs.h. */
8754 $ac_includes_default
8755 typedef short ac__type_new_;
8757 main ()
8759 if ((ac__type_new_ *) 0)
8760 return 0;
8761 if (sizeof (ac__type_new_))
8762 return 0;
8764 return 0;
8766 _ACEOF
8767 rm -f conftest.$ac_objext
8768 if { (ac_try="$ac_compile"
8769 case "(($ac_try" in
8770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8771 *) ac_try_echo=$ac_try;;
8772 esac
8773 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8774 (eval "$ac_compile") 2>conftest.er1
8775 ac_status=$?
8776 grep -v '^ *+' conftest.er1 >conftest.err
8777 rm -f conftest.er1
8778 cat conftest.err >&5
8779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8780 (exit $ac_status); } && {
8781 test -z "$ac_c_werror_flag" ||
8782 test ! -s conftest.err
8783 } && test -s conftest.$ac_objext; then
8784 ac_cv_type_short=yes
8785 else
8786 echo "$as_me: failed program was:" >&5
8787 sed 's/^/| /' conftest.$ac_ext >&5
8789 ac_cv_type_short=no
8792 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8794 { echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
8795 echo "${ECHO_T}$ac_cv_type_short" >&6; }
8797 # The cast to long int works around a bug in the HP C Compiler
8798 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8799 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8800 # This bug is HP SR number 8606223364.
8801 { echo "$as_me:$LINENO: checking size of short" >&5
8802 echo $ECHO_N "checking size of short... $ECHO_C" >&6; }
8803 if test "${ac_cv_sizeof_short+set}" = set; then
8804 echo $ECHO_N "(cached) $ECHO_C" >&6
8805 else
8806 if test "$cross_compiling" = yes; then
8807 # Depending upon the size, compute the lo and hi bounds.
8808 cat >conftest.$ac_ext <<_ACEOF
8809 /* confdefs.h. */
8810 _ACEOF
8811 cat confdefs.h >>conftest.$ac_ext
8812 cat >>conftest.$ac_ext <<_ACEOF
8813 /* end confdefs.h. */
8814 $ac_includes_default
8815 typedef short ac__type_sizeof_;
8817 main ()
8819 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
8820 test_array [0] = 0
8823 return 0;
8825 _ACEOF
8826 rm -f conftest.$ac_objext
8827 if { (ac_try="$ac_compile"
8828 case "(($ac_try" in
8829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8830 *) ac_try_echo=$ac_try;;
8831 esac
8832 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8833 (eval "$ac_compile") 2>conftest.er1
8834 ac_status=$?
8835 grep -v '^ *+' conftest.er1 >conftest.err
8836 rm -f conftest.er1
8837 cat conftest.err >&5
8838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8839 (exit $ac_status); } && {
8840 test -z "$ac_c_werror_flag" ||
8841 test ! -s conftest.err
8842 } && test -s conftest.$ac_objext; then
8843 ac_lo=0 ac_mid=0
8844 while :; do
8845 cat >conftest.$ac_ext <<_ACEOF
8846 /* confdefs.h. */
8847 _ACEOF
8848 cat confdefs.h >>conftest.$ac_ext
8849 cat >>conftest.$ac_ext <<_ACEOF
8850 /* end confdefs.h. */
8851 $ac_includes_default
8852 typedef short ac__type_sizeof_;
8854 main ()
8856 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8857 test_array [0] = 0
8860 return 0;
8862 _ACEOF
8863 rm -f conftest.$ac_objext
8864 if { (ac_try="$ac_compile"
8865 case "(($ac_try" in
8866 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8867 *) ac_try_echo=$ac_try;;
8868 esac
8869 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8870 (eval "$ac_compile") 2>conftest.er1
8871 ac_status=$?
8872 grep -v '^ *+' conftest.er1 >conftest.err
8873 rm -f conftest.er1
8874 cat conftest.err >&5
8875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8876 (exit $ac_status); } && {
8877 test -z "$ac_c_werror_flag" ||
8878 test ! -s conftest.err
8879 } && test -s conftest.$ac_objext; then
8880 ac_hi=$ac_mid; break
8881 else
8882 echo "$as_me: failed program was:" >&5
8883 sed 's/^/| /' conftest.$ac_ext >&5
8885 ac_lo=`expr $ac_mid + 1`
8886 if test $ac_lo -le $ac_mid; then
8887 ac_lo= ac_hi=
8888 break
8890 ac_mid=`expr 2 '*' $ac_mid + 1`
8893 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8894 done
8895 else
8896 echo "$as_me: failed program was:" >&5
8897 sed 's/^/| /' conftest.$ac_ext >&5
8899 cat >conftest.$ac_ext <<_ACEOF
8900 /* confdefs.h. */
8901 _ACEOF
8902 cat confdefs.h >>conftest.$ac_ext
8903 cat >>conftest.$ac_ext <<_ACEOF
8904 /* end confdefs.h. */
8905 $ac_includes_default
8906 typedef short ac__type_sizeof_;
8908 main ()
8910 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
8911 test_array [0] = 0
8914 return 0;
8916 _ACEOF
8917 rm -f conftest.$ac_objext
8918 if { (ac_try="$ac_compile"
8919 case "(($ac_try" in
8920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8921 *) ac_try_echo=$ac_try;;
8922 esac
8923 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8924 (eval "$ac_compile") 2>conftest.er1
8925 ac_status=$?
8926 grep -v '^ *+' conftest.er1 >conftest.err
8927 rm -f conftest.er1
8928 cat conftest.err >&5
8929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8930 (exit $ac_status); } && {
8931 test -z "$ac_c_werror_flag" ||
8932 test ! -s conftest.err
8933 } && test -s conftest.$ac_objext; then
8934 ac_hi=-1 ac_mid=-1
8935 while :; do
8936 cat >conftest.$ac_ext <<_ACEOF
8937 /* confdefs.h. */
8938 _ACEOF
8939 cat confdefs.h >>conftest.$ac_ext
8940 cat >>conftest.$ac_ext <<_ACEOF
8941 /* end confdefs.h. */
8942 $ac_includes_default
8943 typedef short ac__type_sizeof_;
8945 main ()
8947 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
8948 test_array [0] = 0
8951 return 0;
8953 _ACEOF
8954 rm -f conftest.$ac_objext
8955 if { (ac_try="$ac_compile"
8956 case "(($ac_try" in
8957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8958 *) ac_try_echo=$ac_try;;
8959 esac
8960 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8961 (eval "$ac_compile") 2>conftest.er1
8962 ac_status=$?
8963 grep -v '^ *+' conftest.er1 >conftest.err
8964 rm -f conftest.er1
8965 cat conftest.err >&5
8966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8967 (exit $ac_status); } && {
8968 test -z "$ac_c_werror_flag" ||
8969 test ! -s conftest.err
8970 } && test -s conftest.$ac_objext; then
8971 ac_lo=$ac_mid; break
8972 else
8973 echo "$as_me: failed program was:" >&5
8974 sed 's/^/| /' conftest.$ac_ext >&5
8976 ac_hi=`expr '(' $ac_mid ')' - 1`
8977 if test $ac_mid -le $ac_hi; then
8978 ac_lo= ac_hi=
8979 break
8981 ac_mid=`expr 2 '*' $ac_mid`
8984 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8985 done
8986 else
8987 echo "$as_me: failed program was:" >&5
8988 sed 's/^/| /' conftest.$ac_ext >&5
8990 ac_lo= ac_hi=
8993 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8996 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8997 # Binary search between lo and hi bounds.
8998 while test "x$ac_lo" != "x$ac_hi"; do
8999 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9000 cat >conftest.$ac_ext <<_ACEOF
9001 /* confdefs.h. */
9002 _ACEOF
9003 cat confdefs.h >>conftest.$ac_ext
9004 cat >>conftest.$ac_ext <<_ACEOF
9005 /* end confdefs.h. */
9006 $ac_includes_default
9007 typedef short ac__type_sizeof_;
9009 main ()
9011 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
9012 test_array [0] = 0
9015 return 0;
9017 _ACEOF
9018 rm -f conftest.$ac_objext
9019 if { (ac_try="$ac_compile"
9020 case "(($ac_try" in
9021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9022 *) ac_try_echo=$ac_try;;
9023 esac
9024 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9025 (eval "$ac_compile") 2>conftest.er1
9026 ac_status=$?
9027 grep -v '^ *+' conftest.er1 >conftest.err
9028 rm -f conftest.er1
9029 cat conftest.err >&5
9030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9031 (exit $ac_status); } && {
9032 test -z "$ac_c_werror_flag" ||
9033 test ! -s conftest.err
9034 } && test -s conftest.$ac_objext; then
9035 ac_hi=$ac_mid
9036 else
9037 echo "$as_me: failed program was:" >&5
9038 sed 's/^/| /' conftest.$ac_ext >&5
9040 ac_lo=`expr '(' $ac_mid ')' + 1`
9043 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9044 done
9045 case $ac_lo in
9046 ?*) ac_cv_sizeof_short=$ac_lo;;
9047 '') if test "$ac_cv_type_short" = yes; then
9048 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
9049 See \`config.log' for more details." >&5
9050 echo "$as_me: error: cannot compute sizeof (short)
9051 See \`config.log' for more details." >&2;}
9052 { (exit 77); exit 77; }; }
9053 else
9054 ac_cv_sizeof_short=0
9055 fi ;;
9056 esac
9057 else
9058 cat >conftest.$ac_ext <<_ACEOF
9059 /* confdefs.h. */
9060 _ACEOF
9061 cat confdefs.h >>conftest.$ac_ext
9062 cat >>conftest.$ac_ext <<_ACEOF
9063 /* end confdefs.h. */
9064 $ac_includes_default
9065 typedef short ac__type_sizeof_;
9066 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
9067 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
9068 #include <stdio.h>
9069 #include <stdlib.h>
9071 main ()
9074 FILE *f = fopen ("conftest.val", "w");
9075 if (! f)
9076 return 1;
9077 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
9079 long int i = longval ();
9080 if (i != ((long int) (sizeof (ac__type_sizeof_))))
9081 return 1;
9082 fprintf (f, "%ld\n", i);
9084 else
9086 unsigned long int i = ulongval ();
9087 if (i != ((long int) (sizeof (ac__type_sizeof_))))
9088 return 1;
9089 fprintf (f, "%lu\n", i);
9091 return ferror (f) || fclose (f) != 0;
9094 return 0;
9096 _ACEOF
9097 rm -f conftest$ac_exeext
9098 if { (ac_try="$ac_link"
9099 case "(($ac_try" in
9100 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9101 *) ac_try_echo=$ac_try;;
9102 esac
9103 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9104 (eval "$ac_link") 2>&5
9105 ac_status=$?
9106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9107 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9108 { (case "(($ac_try" in
9109 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9110 *) ac_try_echo=$ac_try;;
9111 esac
9112 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9113 (eval "$ac_try") 2>&5
9114 ac_status=$?
9115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9116 (exit $ac_status); }; }; then
9117 ac_cv_sizeof_short=`cat conftest.val`
9118 else
9119 echo "$as_me: program exited with status $ac_status" >&5
9120 echo "$as_me: failed program was:" >&5
9121 sed 's/^/| /' conftest.$ac_ext >&5
9123 ( exit $ac_status )
9124 if test "$ac_cv_type_short" = yes; then
9125 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
9126 See \`config.log' for more details." >&5
9127 echo "$as_me: error: cannot compute sizeof (short)
9128 See \`config.log' for more details." >&2;}
9129 { (exit 77); exit 77; }; }
9130 else
9131 ac_cv_sizeof_short=0
9134 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9136 rm -f conftest.val
9138 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
9139 echo "${ECHO_T}$ac_cv_sizeof_short" >&6; }
9143 cat >>confdefs.h <<_ACEOF
9144 #define SIZEOF_SHORT $ac_cv_sizeof_short
9145 _ACEOF
9148 { echo "$as_me:$LINENO: checking for float" >&5
9149 echo $ECHO_N "checking for float... $ECHO_C" >&6; }
9150 if test "${ac_cv_type_float+set}" = set; then
9151 echo $ECHO_N "(cached) $ECHO_C" >&6
9152 else
9153 cat >conftest.$ac_ext <<_ACEOF
9154 /* confdefs.h. */
9155 _ACEOF
9156 cat confdefs.h >>conftest.$ac_ext
9157 cat >>conftest.$ac_ext <<_ACEOF
9158 /* end confdefs.h. */
9159 $ac_includes_default
9160 typedef float ac__type_new_;
9162 main ()
9164 if ((ac__type_new_ *) 0)
9165 return 0;
9166 if (sizeof (ac__type_new_))
9167 return 0;
9169 return 0;
9171 _ACEOF
9172 rm -f conftest.$ac_objext
9173 if { (ac_try="$ac_compile"
9174 case "(($ac_try" in
9175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9176 *) ac_try_echo=$ac_try;;
9177 esac
9178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9179 (eval "$ac_compile") 2>conftest.er1
9180 ac_status=$?
9181 grep -v '^ *+' conftest.er1 >conftest.err
9182 rm -f conftest.er1
9183 cat conftest.err >&5
9184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9185 (exit $ac_status); } && {
9186 test -z "$ac_c_werror_flag" ||
9187 test ! -s conftest.err
9188 } && test -s conftest.$ac_objext; then
9189 ac_cv_type_float=yes
9190 else
9191 echo "$as_me: failed program was:" >&5
9192 sed 's/^/| /' conftest.$ac_ext >&5
9194 ac_cv_type_float=no
9197 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9199 { echo "$as_me:$LINENO: result: $ac_cv_type_float" >&5
9200 echo "${ECHO_T}$ac_cv_type_float" >&6; }
9202 # The cast to long int works around a bug in the HP C Compiler
9203 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9204 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9205 # This bug is HP SR number 8606223364.
9206 { echo "$as_me:$LINENO: checking size of float" >&5
9207 echo $ECHO_N "checking size of float... $ECHO_C" >&6; }
9208 if test "${ac_cv_sizeof_float+set}" = set; then
9209 echo $ECHO_N "(cached) $ECHO_C" >&6
9210 else
9211 if test "$cross_compiling" = yes; then
9212 # Depending upon the size, compute the lo and hi bounds.
9213 cat >conftest.$ac_ext <<_ACEOF
9214 /* confdefs.h. */
9215 _ACEOF
9216 cat confdefs.h >>conftest.$ac_ext
9217 cat >>conftest.$ac_ext <<_ACEOF
9218 /* end confdefs.h. */
9219 $ac_includes_default
9220 typedef float ac__type_sizeof_;
9222 main ()
9224 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
9225 test_array [0] = 0
9228 return 0;
9230 _ACEOF
9231 rm -f conftest.$ac_objext
9232 if { (ac_try="$ac_compile"
9233 case "(($ac_try" in
9234 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9235 *) ac_try_echo=$ac_try;;
9236 esac
9237 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9238 (eval "$ac_compile") 2>conftest.er1
9239 ac_status=$?
9240 grep -v '^ *+' conftest.er1 >conftest.err
9241 rm -f conftest.er1
9242 cat conftest.err >&5
9243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9244 (exit $ac_status); } && {
9245 test -z "$ac_c_werror_flag" ||
9246 test ! -s conftest.err
9247 } && test -s conftest.$ac_objext; then
9248 ac_lo=0 ac_mid=0
9249 while :; do
9250 cat >conftest.$ac_ext <<_ACEOF
9251 /* confdefs.h. */
9252 _ACEOF
9253 cat confdefs.h >>conftest.$ac_ext
9254 cat >>conftest.$ac_ext <<_ACEOF
9255 /* end confdefs.h. */
9256 $ac_includes_default
9257 typedef float ac__type_sizeof_;
9259 main ()
9261 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
9262 test_array [0] = 0
9265 return 0;
9267 _ACEOF
9268 rm -f conftest.$ac_objext
9269 if { (ac_try="$ac_compile"
9270 case "(($ac_try" in
9271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9272 *) ac_try_echo=$ac_try;;
9273 esac
9274 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9275 (eval "$ac_compile") 2>conftest.er1
9276 ac_status=$?
9277 grep -v '^ *+' conftest.er1 >conftest.err
9278 rm -f conftest.er1
9279 cat conftest.err >&5
9280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9281 (exit $ac_status); } && {
9282 test -z "$ac_c_werror_flag" ||
9283 test ! -s conftest.err
9284 } && test -s conftest.$ac_objext; then
9285 ac_hi=$ac_mid; break
9286 else
9287 echo "$as_me: failed program was:" >&5
9288 sed 's/^/| /' conftest.$ac_ext >&5
9290 ac_lo=`expr $ac_mid + 1`
9291 if test $ac_lo -le $ac_mid; then
9292 ac_lo= ac_hi=
9293 break
9295 ac_mid=`expr 2 '*' $ac_mid + 1`
9298 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9299 done
9300 else
9301 echo "$as_me: failed program was:" >&5
9302 sed 's/^/| /' conftest.$ac_ext >&5
9304 cat >conftest.$ac_ext <<_ACEOF
9305 /* confdefs.h. */
9306 _ACEOF
9307 cat confdefs.h >>conftest.$ac_ext
9308 cat >>conftest.$ac_ext <<_ACEOF
9309 /* end confdefs.h. */
9310 $ac_includes_default
9311 typedef float ac__type_sizeof_;
9313 main ()
9315 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
9316 test_array [0] = 0
9319 return 0;
9321 _ACEOF
9322 rm -f conftest.$ac_objext
9323 if { (ac_try="$ac_compile"
9324 case "(($ac_try" in
9325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9326 *) ac_try_echo=$ac_try;;
9327 esac
9328 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9329 (eval "$ac_compile") 2>conftest.er1
9330 ac_status=$?
9331 grep -v '^ *+' conftest.er1 >conftest.err
9332 rm -f conftest.er1
9333 cat conftest.err >&5
9334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9335 (exit $ac_status); } && {
9336 test -z "$ac_c_werror_flag" ||
9337 test ! -s conftest.err
9338 } && test -s conftest.$ac_objext; then
9339 ac_hi=-1 ac_mid=-1
9340 while :; do
9341 cat >conftest.$ac_ext <<_ACEOF
9342 /* confdefs.h. */
9343 _ACEOF
9344 cat confdefs.h >>conftest.$ac_ext
9345 cat >>conftest.$ac_ext <<_ACEOF
9346 /* end confdefs.h. */
9347 $ac_includes_default
9348 typedef float ac__type_sizeof_;
9350 main ()
9352 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
9353 test_array [0] = 0
9356 return 0;
9358 _ACEOF
9359 rm -f conftest.$ac_objext
9360 if { (ac_try="$ac_compile"
9361 case "(($ac_try" in
9362 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9363 *) ac_try_echo=$ac_try;;
9364 esac
9365 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9366 (eval "$ac_compile") 2>conftest.er1
9367 ac_status=$?
9368 grep -v '^ *+' conftest.er1 >conftest.err
9369 rm -f conftest.er1
9370 cat conftest.err >&5
9371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9372 (exit $ac_status); } && {
9373 test -z "$ac_c_werror_flag" ||
9374 test ! -s conftest.err
9375 } && test -s conftest.$ac_objext; then
9376 ac_lo=$ac_mid; break
9377 else
9378 echo "$as_me: failed program was:" >&5
9379 sed 's/^/| /' conftest.$ac_ext >&5
9381 ac_hi=`expr '(' $ac_mid ')' - 1`
9382 if test $ac_mid -le $ac_hi; then
9383 ac_lo= ac_hi=
9384 break
9386 ac_mid=`expr 2 '*' $ac_mid`
9389 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9390 done
9391 else
9392 echo "$as_me: failed program was:" >&5
9393 sed 's/^/| /' conftest.$ac_ext >&5
9395 ac_lo= ac_hi=
9398 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9401 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9402 # Binary search between lo and hi bounds.
9403 while test "x$ac_lo" != "x$ac_hi"; do
9404 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9405 cat >conftest.$ac_ext <<_ACEOF
9406 /* confdefs.h. */
9407 _ACEOF
9408 cat confdefs.h >>conftest.$ac_ext
9409 cat >>conftest.$ac_ext <<_ACEOF
9410 /* end confdefs.h. */
9411 $ac_includes_default
9412 typedef float ac__type_sizeof_;
9414 main ()
9416 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
9417 test_array [0] = 0
9420 return 0;
9422 _ACEOF
9423 rm -f conftest.$ac_objext
9424 if { (ac_try="$ac_compile"
9425 case "(($ac_try" in
9426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9427 *) ac_try_echo=$ac_try;;
9428 esac
9429 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9430 (eval "$ac_compile") 2>conftest.er1
9431 ac_status=$?
9432 grep -v '^ *+' conftest.er1 >conftest.err
9433 rm -f conftest.er1
9434 cat conftest.err >&5
9435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9436 (exit $ac_status); } && {
9437 test -z "$ac_c_werror_flag" ||
9438 test ! -s conftest.err
9439 } && test -s conftest.$ac_objext; then
9440 ac_hi=$ac_mid
9441 else
9442 echo "$as_me: failed program was:" >&5
9443 sed 's/^/| /' conftest.$ac_ext >&5
9445 ac_lo=`expr '(' $ac_mid ')' + 1`
9448 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9449 done
9450 case $ac_lo in
9451 ?*) ac_cv_sizeof_float=$ac_lo;;
9452 '') if test "$ac_cv_type_float" = yes; then
9453 { { echo "$as_me:$LINENO: error: cannot compute sizeof (float)
9454 See \`config.log' for more details." >&5
9455 echo "$as_me: error: cannot compute sizeof (float)
9456 See \`config.log' for more details." >&2;}
9457 { (exit 77); exit 77; }; }
9458 else
9459 ac_cv_sizeof_float=0
9460 fi ;;
9461 esac
9462 else
9463 cat >conftest.$ac_ext <<_ACEOF
9464 /* confdefs.h. */
9465 _ACEOF
9466 cat confdefs.h >>conftest.$ac_ext
9467 cat >>conftest.$ac_ext <<_ACEOF
9468 /* end confdefs.h. */
9469 $ac_includes_default
9470 typedef float ac__type_sizeof_;
9471 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
9472 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
9473 #include <stdio.h>
9474 #include <stdlib.h>
9476 main ()
9479 FILE *f = fopen ("conftest.val", "w");
9480 if (! f)
9481 return 1;
9482 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
9484 long int i = longval ();
9485 if (i != ((long int) (sizeof (ac__type_sizeof_))))
9486 return 1;
9487 fprintf (f, "%ld\n", i);
9489 else
9491 unsigned long int i = ulongval ();
9492 if (i != ((long int) (sizeof (ac__type_sizeof_))))
9493 return 1;
9494 fprintf (f, "%lu\n", i);
9496 return ferror (f) || fclose (f) != 0;
9499 return 0;
9501 _ACEOF
9502 rm -f conftest$ac_exeext
9503 if { (ac_try="$ac_link"
9504 case "(($ac_try" in
9505 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9506 *) ac_try_echo=$ac_try;;
9507 esac
9508 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9509 (eval "$ac_link") 2>&5
9510 ac_status=$?
9511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9512 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9513 { (case "(($ac_try" in
9514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9515 *) ac_try_echo=$ac_try;;
9516 esac
9517 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9518 (eval "$ac_try") 2>&5
9519 ac_status=$?
9520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9521 (exit $ac_status); }; }; then
9522 ac_cv_sizeof_float=`cat conftest.val`
9523 else
9524 echo "$as_me: program exited with status $ac_status" >&5
9525 echo "$as_me: failed program was:" >&5
9526 sed 's/^/| /' conftest.$ac_ext >&5
9528 ( exit $ac_status )
9529 if test "$ac_cv_type_float" = yes; then
9530 { { echo "$as_me:$LINENO: error: cannot compute sizeof (float)
9531 See \`config.log' for more details." >&5
9532 echo "$as_me: error: cannot compute sizeof (float)
9533 See \`config.log' for more details." >&2;}
9534 { (exit 77); exit 77; }; }
9535 else
9536 ac_cv_sizeof_float=0
9539 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9541 rm -f conftest.val
9543 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_float" >&5
9544 echo "${ECHO_T}$ac_cv_sizeof_float" >&6; }
9548 cat >>confdefs.h <<_ACEOF
9549 #define SIZEOF_FLOAT $ac_cv_sizeof_float
9550 _ACEOF
9553 { echo "$as_me:$LINENO: checking for double" >&5
9554 echo $ECHO_N "checking for double... $ECHO_C" >&6; }
9555 if test "${ac_cv_type_double+set}" = set; then
9556 echo $ECHO_N "(cached) $ECHO_C" >&6
9557 else
9558 cat >conftest.$ac_ext <<_ACEOF
9559 /* confdefs.h. */
9560 _ACEOF
9561 cat confdefs.h >>conftest.$ac_ext
9562 cat >>conftest.$ac_ext <<_ACEOF
9563 /* end confdefs.h. */
9564 $ac_includes_default
9565 typedef double ac__type_new_;
9567 main ()
9569 if ((ac__type_new_ *) 0)
9570 return 0;
9571 if (sizeof (ac__type_new_))
9572 return 0;
9574 return 0;
9576 _ACEOF
9577 rm -f conftest.$ac_objext
9578 if { (ac_try="$ac_compile"
9579 case "(($ac_try" in
9580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9581 *) ac_try_echo=$ac_try;;
9582 esac
9583 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9584 (eval "$ac_compile") 2>conftest.er1
9585 ac_status=$?
9586 grep -v '^ *+' conftest.er1 >conftest.err
9587 rm -f conftest.er1
9588 cat conftest.err >&5
9589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9590 (exit $ac_status); } && {
9591 test -z "$ac_c_werror_flag" ||
9592 test ! -s conftest.err
9593 } && test -s conftest.$ac_objext; then
9594 ac_cv_type_double=yes
9595 else
9596 echo "$as_me: failed program was:" >&5
9597 sed 's/^/| /' conftest.$ac_ext >&5
9599 ac_cv_type_double=no
9602 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9604 { echo "$as_me:$LINENO: result: $ac_cv_type_double" >&5
9605 echo "${ECHO_T}$ac_cv_type_double" >&6; }
9607 # The cast to long int works around a bug in the HP C Compiler
9608 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9609 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9610 # This bug is HP SR number 8606223364.
9611 { echo "$as_me:$LINENO: checking size of double" >&5
9612 echo $ECHO_N "checking size of double... $ECHO_C" >&6; }
9613 if test "${ac_cv_sizeof_double+set}" = set; then
9614 echo $ECHO_N "(cached) $ECHO_C" >&6
9615 else
9616 if test "$cross_compiling" = yes; then
9617 # Depending upon the size, compute the lo and hi bounds.
9618 cat >conftest.$ac_ext <<_ACEOF
9619 /* confdefs.h. */
9620 _ACEOF
9621 cat confdefs.h >>conftest.$ac_ext
9622 cat >>conftest.$ac_ext <<_ACEOF
9623 /* end confdefs.h. */
9624 $ac_includes_default
9625 typedef double ac__type_sizeof_;
9627 main ()
9629 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
9630 test_array [0] = 0
9633 return 0;
9635 _ACEOF
9636 rm -f conftest.$ac_objext
9637 if { (ac_try="$ac_compile"
9638 case "(($ac_try" in
9639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9640 *) ac_try_echo=$ac_try;;
9641 esac
9642 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9643 (eval "$ac_compile") 2>conftest.er1
9644 ac_status=$?
9645 grep -v '^ *+' conftest.er1 >conftest.err
9646 rm -f conftest.er1
9647 cat conftest.err >&5
9648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9649 (exit $ac_status); } && {
9650 test -z "$ac_c_werror_flag" ||
9651 test ! -s conftest.err
9652 } && test -s conftest.$ac_objext; then
9653 ac_lo=0 ac_mid=0
9654 while :; do
9655 cat >conftest.$ac_ext <<_ACEOF
9656 /* confdefs.h. */
9657 _ACEOF
9658 cat confdefs.h >>conftest.$ac_ext
9659 cat >>conftest.$ac_ext <<_ACEOF
9660 /* end confdefs.h. */
9661 $ac_includes_default
9662 typedef double ac__type_sizeof_;
9664 main ()
9666 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
9667 test_array [0] = 0
9670 return 0;
9672 _ACEOF
9673 rm -f conftest.$ac_objext
9674 if { (ac_try="$ac_compile"
9675 case "(($ac_try" in
9676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9677 *) ac_try_echo=$ac_try;;
9678 esac
9679 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9680 (eval "$ac_compile") 2>conftest.er1
9681 ac_status=$?
9682 grep -v '^ *+' conftest.er1 >conftest.err
9683 rm -f conftest.er1
9684 cat conftest.err >&5
9685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9686 (exit $ac_status); } && {
9687 test -z "$ac_c_werror_flag" ||
9688 test ! -s conftest.err
9689 } && test -s conftest.$ac_objext; then
9690 ac_hi=$ac_mid; break
9691 else
9692 echo "$as_me: failed program was:" >&5
9693 sed 's/^/| /' conftest.$ac_ext >&5
9695 ac_lo=`expr $ac_mid + 1`
9696 if test $ac_lo -le $ac_mid; then
9697 ac_lo= ac_hi=
9698 break
9700 ac_mid=`expr 2 '*' $ac_mid + 1`
9703 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9704 done
9705 else
9706 echo "$as_me: failed program was:" >&5
9707 sed 's/^/| /' conftest.$ac_ext >&5
9709 cat >conftest.$ac_ext <<_ACEOF
9710 /* confdefs.h. */
9711 _ACEOF
9712 cat confdefs.h >>conftest.$ac_ext
9713 cat >>conftest.$ac_ext <<_ACEOF
9714 /* end confdefs.h. */
9715 $ac_includes_default
9716 typedef double ac__type_sizeof_;
9718 main ()
9720 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
9721 test_array [0] = 0
9724 return 0;
9726 _ACEOF
9727 rm -f conftest.$ac_objext
9728 if { (ac_try="$ac_compile"
9729 case "(($ac_try" in
9730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9731 *) ac_try_echo=$ac_try;;
9732 esac
9733 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9734 (eval "$ac_compile") 2>conftest.er1
9735 ac_status=$?
9736 grep -v '^ *+' conftest.er1 >conftest.err
9737 rm -f conftest.er1
9738 cat conftest.err >&5
9739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9740 (exit $ac_status); } && {
9741 test -z "$ac_c_werror_flag" ||
9742 test ! -s conftest.err
9743 } && test -s conftest.$ac_objext; then
9744 ac_hi=-1 ac_mid=-1
9745 while :; do
9746 cat >conftest.$ac_ext <<_ACEOF
9747 /* confdefs.h. */
9748 _ACEOF
9749 cat confdefs.h >>conftest.$ac_ext
9750 cat >>conftest.$ac_ext <<_ACEOF
9751 /* end confdefs.h. */
9752 $ac_includes_default
9753 typedef double ac__type_sizeof_;
9755 main ()
9757 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
9758 test_array [0] = 0
9761 return 0;
9763 _ACEOF
9764 rm -f conftest.$ac_objext
9765 if { (ac_try="$ac_compile"
9766 case "(($ac_try" in
9767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9768 *) ac_try_echo=$ac_try;;
9769 esac
9770 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9771 (eval "$ac_compile") 2>conftest.er1
9772 ac_status=$?
9773 grep -v '^ *+' conftest.er1 >conftest.err
9774 rm -f conftest.er1
9775 cat conftest.err >&5
9776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9777 (exit $ac_status); } && {
9778 test -z "$ac_c_werror_flag" ||
9779 test ! -s conftest.err
9780 } && test -s conftest.$ac_objext; then
9781 ac_lo=$ac_mid; break
9782 else
9783 echo "$as_me: failed program was:" >&5
9784 sed 's/^/| /' conftest.$ac_ext >&5
9786 ac_hi=`expr '(' $ac_mid ')' - 1`
9787 if test $ac_mid -le $ac_hi; then
9788 ac_lo= ac_hi=
9789 break
9791 ac_mid=`expr 2 '*' $ac_mid`
9794 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9795 done
9796 else
9797 echo "$as_me: failed program was:" >&5
9798 sed 's/^/| /' conftest.$ac_ext >&5
9800 ac_lo= ac_hi=
9803 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9806 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9807 # Binary search between lo and hi bounds.
9808 while test "x$ac_lo" != "x$ac_hi"; do
9809 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9810 cat >conftest.$ac_ext <<_ACEOF
9811 /* confdefs.h. */
9812 _ACEOF
9813 cat confdefs.h >>conftest.$ac_ext
9814 cat >>conftest.$ac_ext <<_ACEOF
9815 /* end confdefs.h. */
9816 $ac_includes_default
9817 typedef double ac__type_sizeof_;
9819 main ()
9821 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
9822 test_array [0] = 0
9825 return 0;
9827 _ACEOF
9828 rm -f conftest.$ac_objext
9829 if { (ac_try="$ac_compile"
9830 case "(($ac_try" in
9831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9832 *) ac_try_echo=$ac_try;;
9833 esac
9834 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9835 (eval "$ac_compile") 2>conftest.er1
9836 ac_status=$?
9837 grep -v '^ *+' conftest.er1 >conftest.err
9838 rm -f conftest.er1
9839 cat conftest.err >&5
9840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9841 (exit $ac_status); } && {
9842 test -z "$ac_c_werror_flag" ||
9843 test ! -s conftest.err
9844 } && test -s conftest.$ac_objext; then
9845 ac_hi=$ac_mid
9846 else
9847 echo "$as_me: failed program was:" >&5
9848 sed 's/^/| /' conftest.$ac_ext >&5
9850 ac_lo=`expr '(' $ac_mid ')' + 1`
9853 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9854 done
9855 case $ac_lo in
9856 ?*) ac_cv_sizeof_double=$ac_lo;;
9857 '') if test "$ac_cv_type_double" = yes; then
9858 { { echo "$as_me:$LINENO: error: cannot compute sizeof (double)
9859 See \`config.log' for more details." >&5
9860 echo "$as_me: error: cannot compute sizeof (double)
9861 See \`config.log' for more details." >&2;}
9862 { (exit 77); exit 77; }; }
9863 else
9864 ac_cv_sizeof_double=0
9865 fi ;;
9866 esac
9867 else
9868 cat >conftest.$ac_ext <<_ACEOF
9869 /* confdefs.h. */
9870 _ACEOF
9871 cat confdefs.h >>conftest.$ac_ext
9872 cat >>conftest.$ac_ext <<_ACEOF
9873 /* end confdefs.h. */
9874 $ac_includes_default
9875 typedef double ac__type_sizeof_;
9876 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
9877 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
9878 #include <stdio.h>
9879 #include <stdlib.h>
9881 main ()
9884 FILE *f = fopen ("conftest.val", "w");
9885 if (! f)
9886 return 1;
9887 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
9889 long int i = longval ();
9890 if (i != ((long int) (sizeof (ac__type_sizeof_))))
9891 return 1;
9892 fprintf (f, "%ld\n", i);
9894 else
9896 unsigned long int i = ulongval ();
9897 if (i != ((long int) (sizeof (ac__type_sizeof_))))
9898 return 1;
9899 fprintf (f, "%lu\n", i);
9901 return ferror (f) || fclose (f) != 0;
9904 return 0;
9906 _ACEOF
9907 rm -f conftest$ac_exeext
9908 if { (ac_try="$ac_link"
9909 case "(($ac_try" in
9910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9911 *) ac_try_echo=$ac_try;;
9912 esac
9913 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9914 (eval "$ac_link") 2>&5
9915 ac_status=$?
9916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9917 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9918 { (case "(($ac_try" in
9919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9920 *) ac_try_echo=$ac_try;;
9921 esac
9922 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9923 (eval "$ac_try") 2>&5
9924 ac_status=$?
9925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9926 (exit $ac_status); }; }; then
9927 ac_cv_sizeof_double=`cat conftest.val`
9928 else
9929 echo "$as_me: program exited with status $ac_status" >&5
9930 echo "$as_me: failed program was:" >&5
9931 sed 's/^/| /' conftest.$ac_ext >&5
9933 ( exit $ac_status )
9934 if test "$ac_cv_type_double" = yes; then
9935 { { echo "$as_me:$LINENO: error: cannot compute sizeof (double)
9936 See \`config.log' for more details." >&5
9937 echo "$as_me: error: cannot compute sizeof (double)
9938 See \`config.log' for more details." >&2;}
9939 { (exit 77); exit 77; }; }
9940 else
9941 ac_cv_sizeof_double=0
9944 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9946 rm -f conftest.val
9948 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_double" >&5
9949 echo "${ECHO_T}$ac_cv_sizeof_double" >&6; }
9953 cat >>confdefs.h <<_ACEOF
9954 #define SIZEOF_DOUBLE $ac_cv_sizeof_double
9955 _ACEOF
9958 { echo "$as_me:$LINENO: checking for fpos_t" >&5
9959 echo $ECHO_N "checking for fpos_t... $ECHO_C" >&6; }
9960 if test "${ac_cv_type_fpos_t+set}" = set; then
9961 echo $ECHO_N "(cached) $ECHO_C" >&6
9962 else
9963 cat >conftest.$ac_ext <<_ACEOF
9964 /* confdefs.h. */
9965 _ACEOF
9966 cat confdefs.h >>conftest.$ac_ext
9967 cat >>conftest.$ac_ext <<_ACEOF
9968 /* end confdefs.h. */
9969 $ac_includes_default
9970 typedef fpos_t ac__type_new_;
9972 main ()
9974 if ((ac__type_new_ *) 0)
9975 return 0;
9976 if (sizeof (ac__type_new_))
9977 return 0;
9979 return 0;
9981 _ACEOF
9982 rm -f conftest.$ac_objext
9983 if { (ac_try="$ac_compile"
9984 case "(($ac_try" in
9985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9986 *) ac_try_echo=$ac_try;;
9987 esac
9988 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9989 (eval "$ac_compile") 2>conftest.er1
9990 ac_status=$?
9991 grep -v '^ *+' conftest.er1 >conftest.err
9992 rm -f conftest.er1
9993 cat conftest.err >&5
9994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9995 (exit $ac_status); } && {
9996 test -z "$ac_c_werror_flag" ||
9997 test ! -s conftest.err
9998 } && test -s conftest.$ac_objext; then
9999 ac_cv_type_fpos_t=yes
10000 else
10001 echo "$as_me: failed program was:" >&5
10002 sed 's/^/| /' conftest.$ac_ext >&5
10004 ac_cv_type_fpos_t=no
10007 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10009 { echo "$as_me:$LINENO: result: $ac_cv_type_fpos_t" >&5
10010 echo "${ECHO_T}$ac_cv_type_fpos_t" >&6; }
10012 # The cast to long int works around a bug in the HP C Compiler
10013 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10014 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10015 # This bug is HP SR number 8606223364.
10016 { echo "$as_me:$LINENO: checking size of fpos_t" >&5
10017 echo $ECHO_N "checking size of fpos_t... $ECHO_C" >&6; }
10018 if test "${ac_cv_sizeof_fpos_t+set}" = set; then
10019 echo $ECHO_N "(cached) $ECHO_C" >&6
10020 else
10021 if test "$cross_compiling" = yes; then
10022 # Depending upon the size, compute the lo and hi bounds.
10023 cat >conftest.$ac_ext <<_ACEOF
10024 /* confdefs.h. */
10025 _ACEOF
10026 cat confdefs.h >>conftest.$ac_ext
10027 cat >>conftest.$ac_ext <<_ACEOF
10028 /* end confdefs.h. */
10029 $ac_includes_default
10030 typedef fpos_t ac__type_sizeof_;
10032 main ()
10034 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
10035 test_array [0] = 0
10038 return 0;
10040 _ACEOF
10041 rm -f conftest.$ac_objext
10042 if { (ac_try="$ac_compile"
10043 case "(($ac_try" in
10044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10045 *) ac_try_echo=$ac_try;;
10046 esac
10047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10048 (eval "$ac_compile") 2>conftest.er1
10049 ac_status=$?
10050 grep -v '^ *+' conftest.er1 >conftest.err
10051 rm -f conftest.er1
10052 cat conftest.err >&5
10053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10054 (exit $ac_status); } && {
10055 test -z "$ac_c_werror_flag" ||
10056 test ! -s conftest.err
10057 } && test -s conftest.$ac_objext; then
10058 ac_lo=0 ac_mid=0
10059 while :; do
10060 cat >conftest.$ac_ext <<_ACEOF
10061 /* confdefs.h. */
10062 _ACEOF
10063 cat confdefs.h >>conftest.$ac_ext
10064 cat >>conftest.$ac_ext <<_ACEOF
10065 /* end confdefs.h. */
10066 $ac_includes_default
10067 typedef fpos_t ac__type_sizeof_;
10069 main ()
10071 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
10072 test_array [0] = 0
10075 return 0;
10077 _ACEOF
10078 rm -f conftest.$ac_objext
10079 if { (ac_try="$ac_compile"
10080 case "(($ac_try" in
10081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10082 *) ac_try_echo=$ac_try;;
10083 esac
10084 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10085 (eval "$ac_compile") 2>conftest.er1
10086 ac_status=$?
10087 grep -v '^ *+' conftest.er1 >conftest.err
10088 rm -f conftest.er1
10089 cat conftest.err >&5
10090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10091 (exit $ac_status); } && {
10092 test -z "$ac_c_werror_flag" ||
10093 test ! -s conftest.err
10094 } && test -s conftest.$ac_objext; then
10095 ac_hi=$ac_mid; break
10096 else
10097 echo "$as_me: failed program was:" >&5
10098 sed 's/^/| /' conftest.$ac_ext >&5
10100 ac_lo=`expr $ac_mid + 1`
10101 if test $ac_lo -le $ac_mid; then
10102 ac_lo= ac_hi=
10103 break
10105 ac_mid=`expr 2 '*' $ac_mid + 1`
10108 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10109 done
10110 else
10111 echo "$as_me: failed program was:" >&5
10112 sed 's/^/| /' conftest.$ac_ext >&5
10114 cat >conftest.$ac_ext <<_ACEOF
10115 /* confdefs.h. */
10116 _ACEOF
10117 cat confdefs.h >>conftest.$ac_ext
10118 cat >>conftest.$ac_ext <<_ACEOF
10119 /* end confdefs.h. */
10120 $ac_includes_default
10121 typedef fpos_t ac__type_sizeof_;
10123 main ()
10125 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
10126 test_array [0] = 0
10129 return 0;
10131 _ACEOF
10132 rm -f conftest.$ac_objext
10133 if { (ac_try="$ac_compile"
10134 case "(($ac_try" in
10135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10136 *) ac_try_echo=$ac_try;;
10137 esac
10138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10139 (eval "$ac_compile") 2>conftest.er1
10140 ac_status=$?
10141 grep -v '^ *+' conftest.er1 >conftest.err
10142 rm -f conftest.er1
10143 cat conftest.err >&5
10144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10145 (exit $ac_status); } && {
10146 test -z "$ac_c_werror_flag" ||
10147 test ! -s conftest.err
10148 } && test -s conftest.$ac_objext; then
10149 ac_hi=-1 ac_mid=-1
10150 while :; do
10151 cat >conftest.$ac_ext <<_ACEOF
10152 /* confdefs.h. */
10153 _ACEOF
10154 cat confdefs.h >>conftest.$ac_ext
10155 cat >>conftest.$ac_ext <<_ACEOF
10156 /* end confdefs.h. */
10157 $ac_includes_default
10158 typedef fpos_t ac__type_sizeof_;
10160 main ()
10162 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
10163 test_array [0] = 0
10166 return 0;
10168 _ACEOF
10169 rm -f conftest.$ac_objext
10170 if { (ac_try="$ac_compile"
10171 case "(($ac_try" in
10172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10173 *) ac_try_echo=$ac_try;;
10174 esac
10175 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10176 (eval "$ac_compile") 2>conftest.er1
10177 ac_status=$?
10178 grep -v '^ *+' conftest.er1 >conftest.err
10179 rm -f conftest.er1
10180 cat conftest.err >&5
10181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10182 (exit $ac_status); } && {
10183 test -z "$ac_c_werror_flag" ||
10184 test ! -s conftest.err
10185 } && test -s conftest.$ac_objext; then
10186 ac_lo=$ac_mid; break
10187 else
10188 echo "$as_me: failed program was:" >&5
10189 sed 's/^/| /' conftest.$ac_ext >&5
10191 ac_hi=`expr '(' $ac_mid ')' - 1`
10192 if test $ac_mid -le $ac_hi; then
10193 ac_lo= ac_hi=
10194 break
10196 ac_mid=`expr 2 '*' $ac_mid`
10199 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10200 done
10201 else
10202 echo "$as_me: failed program was:" >&5
10203 sed 's/^/| /' conftest.$ac_ext >&5
10205 ac_lo= ac_hi=
10208 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10211 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10212 # Binary search between lo and hi bounds.
10213 while test "x$ac_lo" != "x$ac_hi"; do
10214 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10215 cat >conftest.$ac_ext <<_ACEOF
10216 /* confdefs.h. */
10217 _ACEOF
10218 cat confdefs.h >>conftest.$ac_ext
10219 cat >>conftest.$ac_ext <<_ACEOF
10220 /* end confdefs.h. */
10221 $ac_includes_default
10222 typedef fpos_t ac__type_sizeof_;
10224 main ()
10226 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
10227 test_array [0] = 0
10230 return 0;
10232 _ACEOF
10233 rm -f conftest.$ac_objext
10234 if { (ac_try="$ac_compile"
10235 case "(($ac_try" in
10236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10237 *) ac_try_echo=$ac_try;;
10238 esac
10239 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10240 (eval "$ac_compile") 2>conftest.er1
10241 ac_status=$?
10242 grep -v '^ *+' conftest.er1 >conftest.err
10243 rm -f conftest.er1
10244 cat conftest.err >&5
10245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10246 (exit $ac_status); } && {
10247 test -z "$ac_c_werror_flag" ||
10248 test ! -s conftest.err
10249 } && test -s conftest.$ac_objext; then
10250 ac_hi=$ac_mid
10251 else
10252 echo "$as_me: failed program was:" >&5
10253 sed 's/^/| /' conftest.$ac_ext >&5
10255 ac_lo=`expr '(' $ac_mid ')' + 1`
10258 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10259 done
10260 case $ac_lo in
10261 ?*) ac_cv_sizeof_fpos_t=$ac_lo;;
10262 '') if test "$ac_cv_type_fpos_t" = yes; then
10263 { { echo "$as_me:$LINENO: error: cannot compute sizeof (fpos_t)
10264 See \`config.log' for more details." >&5
10265 echo "$as_me: error: cannot compute sizeof (fpos_t)
10266 See \`config.log' for more details." >&2;}
10267 { (exit 77); exit 77; }; }
10268 else
10269 ac_cv_sizeof_fpos_t=0
10270 fi ;;
10271 esac
10272 else
10273 cat >conftest.$ac_ext <<_ACEOF
10274 /* confdefs.h. */
10275 _ACEOF
10276 cat confdefs.h >>conftest.$ac_ext
10277 cat >>conftest.$ac_ext <<_ACEOF
10278 /* end confdefs.h. */
10279 $ac_includes_default
10280 typedef fpos_t ac__type_sizeof_;
10281 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
10282 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
10283 #include <stdio.h>
10284 #include <stdlib.h>
10286 main ()
10289 FILE *f = fopen ("conftest.val", "w");
10290 if (! f)
10291 return 1;
10292 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
10294 long int i = longval ();
10295 if (i != ((long int) (sizeof (ac__type_sizeof_))))
10296 return 1;
10297 fprintf (f, "%ld\n", i);
10299 else
10301 unsigned long int i = ulongval ();
10302 if (i != ((long int) (sizeof (ac__type_sizeof_))))
10303 return 1;
10304 fprintf (f, "%lu\n", i);
10306 return ferror (f) || fclose (f) != 0;
10309 return 0;
10311 _ACEOF
10312 rm -f conftest$ac_exeext
10313 if { (ac_try="$ac_link"
10314 case "(($ac_try" in
10315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10316 *) ac_try_echo=$ac_try;;
10317 esac
10318 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10319 (eval "$ac_link") 2>&5
10320 ac_status=$?
10321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10322 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10323 { (case "(($ac_try" in
10324 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10325 *) ac_try_echo=$ac_try;;
10326 esac
10327 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10328 (eval "$ac_try") 2>&5
10329 ac_status=$?
10330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10331 (exit $ac_status); }; }; then
10332 ac_cv_sizeof_fpos_t=`cat conftest.val`
10333 else
10334 echo "$as_me: program exited with status $ac_status" >&5
10335 echo "$as_me: failed program was:" >&5
10336 sed 's/^/| /' conftest.$ac_ext >&5
10338 ( exit $ac_status )
10339 if test "$ac_cv_type_fpos_t" = yes; then
10340 { { echo "$as_me:$LINENO: error: cannot compute sizeof (fpos_t)
10341 See \`config.log' for more details." >&5
10342 echo "$as_me: error: cannot compute sizeof (fpos_t)
10343 See \`config.log' for more details." >&2;}
10344 { (exit 77); exit 77; }; }
10345 else
10346 ac_cv_sizeof_fpos_t=0
10349 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10351 rm -f conftest.val
10353 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_fpos_t" >&5
10354 echo "${ECHO_T}$ac_cv_sizeof_fpos_t" >&6; }
10358 cat >>confdefs.h <<_ACEOF
10359 #define SIZEOF_FPOS_T $ac_cv_sizeof_fpos_t
10360 _ACEOF
10363 { echo "$as_me:$LINENO: checking for size_t" >&5
10364 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
10365 if test "${ac_cv_type_size_t+set}" = set; then
10366 echo $ECHO_N "(cached) $ECHO_C" >&6
10367 else
10368 cat >conftest.$ac_ext <<_ACEOF
10369 /* confdefs.h. */
10370 _ACEOF
10371 cat confdefs.h >>conftest.$ac_ext
10372 cat >>conftest.$ac_ext <<_ACEOF
10373 /* end confdefs.h. */
10374 $ac_includes_default
10375 typedef size_t ac__type_new_;
10377 main ()
10379 if ((ac__type_new_ *) 0)
10380 return 0;
10381 if (sizeof (ac__type_new_))
10382 return 0;
10384 return 0;
10386 _ACEOF
10387 rm -f conftest.$ac_objext
10388 if { (ac_try="$ac_compile"
10389 case "(($ac_try" in
10390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10391 *) ac_try_echo=$ac_try;;
10392 esac
10393 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10394 (eval "$ac_compile") 2>conftest.er1
10395 ac_status=$?
10396 grep -v '^ *+' conftest.er1 >conftest.err
10397 rm -f conftest.er1
10398 cat conftest.err >&5
10399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10400 (exit $ac_status); } && {
10401 test -z "$ac_c_werror_flag" ||
10402 test ! -s conftest.err
10403 } && test -s conftest.$ac_objext; then
10404 ac_cv_type_size_t=yes
10405 else
10406 echo "$as_me: failed program was:" >&5
10407 sed 's/^/| /' conftest.$ac_ext >&5
10409 ac_cv_type_size_t=no
10412 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10414 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
10415 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
10417 # The cast to long int works around a bug in the HP C Compiler
10418 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10419 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10420 # This bug is HP SR number 8606223364.
10421 { echo "$as_me:$LINENO: checking size of size_t" >&5
10422 echo $ECHO_N "checking size of size_t... $ECHO_C" >&6; }
10423 if test "${ac_cv_sizeof_size_t+set}" = set; then
10424 echo $ECHO_N "(cached) $ECHO_C" >&6
10425 else
10426 if test "$cross_compiling" = yes; then
10427 # Depending upon the size, compute the lo and hi bounds.
10428 cat >conftest.$ac_ext <<_ACEOF
10429 /* confdefs.h. */
10430 _ACEOF
10431 cat confdefs.h >>conftest.$ac_ext
10432 cat >>conftest.$ac_ext <<_ACEOF
10433 /* end confdefs.h. */
10434 $ac_includes_default
10435 typedef size_t ac__type_sizeof_;
10437 main ()
10439 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
10440 test_array [0] = 0
10443 return 0;
10445 _ACEOF
10446 rm -f conftest.$ac_objext
10447 if { (ac_try="$ac_compile"
10448 case "(($ac_try" in
10449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10450 *) ac_try_echo=$ac_try;;
10451 esac
10452 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10453 (eval "$ac_compile") 2>conftest.er1
10454 ac_status=$?
10455 grep -v '^ *+' conftest.er1 >conftest.err
10456 rm -f conftest.er1
10457 cat conftest.err >&5
10458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10459 (exit $ac_status); } && {
10460 test -z "$ac_c_werror_flag" ||
10461 test ! -s conftest.err
10462 } && test -s conftest.$ac_objext; then
10463 ac_lo=0 ac_mid=0
10464 while :; do
10465 cat >conftest.$ac_ext <<_ACEOF
10466 /* confdefs.h. */
10467 _ACEOF
10468 cat confdefs.h >>conftest.$ac_ext
10469 cat >>conftest.$ac_ext <<_ACEOF
10470 /* end confdefs.h. */
10471 $ac_includes_default
10472 typedef size_t ac__type_sizeof_;
10474 main ()
10476 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
10477 test_array [0] = 0
10480 return 0;
10482 _ACEOF
10483 rm -f conftest.$ac_objext
10484 if { (ac_try="$ac_compile"
10485 case "(($ac_try" in
10486 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10487 *) ac_try_echo=$ac_try;;
10488 esac
10489 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10490 (eval "$ac_compile") 2>conftest.er1
10491 ac_status=$?
10492 grep -v '^ *+' conftest.er1 >conftest.err
10493 rm -f conftest.er1
10494 cat conftest.err >&5
10495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10496 (exit $ac_status); } && {
10497 test -z "$ac_c_werror_flag" ||
10498 test ! -s conftest.err
10499 } && test -s conftest.$ac_objext; then
10500 ac_hi=$ac_mid; break
10501 else
10502 echo "$as_me: failed program was:" >&5
10503 sed 's/^/| /' conftest.$ac_ext >&5
10505 ac_lo=`expr $ac_mid + 1`
10506 if test $ac_lo -le $ac_mid; then
10507 ac_lo= ac_hi=
10508 break
10510 ac_mid=`expr 2 '*' $ac_mid + 1`
10513 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10514 done
10515 else
10516 echo "$as_me: failed program was:" >&5
10517 sed 's/^/| /' conftest.$ac_ext >&5
10519 cat >conftest.$ac_ext <<_ACEOF
10520 /* confdefs.h. */
10521 _ACEOF
10522 cat confdefs.h >>conftest.$ac_ext
10523 cat >>conftest.$ac_ext <<_ACEOF
10524 /* end confdefs.h. */
10525 $ac_includes_default
10526 typedef size_t ac__type_sizeof_;
10528 main ()
10530 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
10531 test_array [0] = 0
10534 return 0;
10536 _ACEOF
10537 rm -f conftest.$ac_objext
10538 if { (ac_try="$ac_compile"
10539 case "(($ac_try" in
10540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10541 *) ac_try_echo=$ac_try;;
10542 esac
10543 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10544 (eval "$ac_compile") 2>conftest.er1
10545 ac_status=$?
10546 grep -v '^ *+' conftest.er1 >conftest.err
10547 rm -f conftest.er1
10548 cat conftest.err >&5
10549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10550 (exit $ac_status); } && {
10551 test -z "$ac_c_werror_flag" ||
10552 test ! -s conftest.err
10553 } && test -s conftest.$ac_objext; then
10554 ac_hi=-1 ac_mid=-1
10555 while :; do
10556 cat >conftest.$ac_ext <<_ACEOF
10557 /* confdefs.h. */
10558 _ACEOF
10559 cat confdefs.h >>conftest.$ac_ext
10560 cat >>conftest.$ac_ext <<_ACEOF
10561 /* end confdefs.h. */
10562 $ac_includes_default
10563 typedef size_t ac__type_sizeof_;
10565 main ()
10567 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
10568 test_array [0] = 0
10571 return 0;
10573 _ACEOF
10574 rm -f conftest.$ac_objext
10575 if { (ac_try="$ac_compile"
10576 case "(($ac_try" in
10577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10578 *) ac_try_echo=$ac_try;;
10579 esac
10580 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10581 (eval "$ac_compile") 2>conftest.er1
10582 ac_status=$?
10583 grep -v '^ *+' conftest.er1 >conftest.err
10584 rm -f conftest.er1
10585 cat conftest.err >&5
10586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10587 (exit $ac_status); } && {
10588 test -z "$ac_c_werror_flag" ||
10589 test ! -s conftest.err
10590 } && test -s conftest.$ac_objext; then
10591 ac_lo=$ac_mid; break
10592 else
10593 echo "$as_me: failed program was:" >&5
10594 sed 's/^/| /' conftest.$ac_ext >&5
10596 ac_hi=`expr '(' $ac_mid ')' - 1`
10597 if test $ac_mid -le $ac_hi; then
10598 ac_lo= ac_hi=
10599 break
10601 ac_mid=`expr 2 '*' $ac_mid`
10604 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10605 done
10606 else
10607 echo "$as_me: failed program was:" >&5
10608 sed 's/^/| /' conftest.$ac_ext >&5
10610 ac_lo= ac_hi=
10613 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10616 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10617 # Binary search between lo and hi bounds.
10618 while test "x$ac_lo" != "x$ac_hi"; do
10619 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10620 cat >conftest.$ac_ext <<_ACEOF
10621 /* confdefs.h. */
10622 _ACEOF
10623 cat confdefs.h >>conftest.$ac_ext
10624 cat >>conftest.$ac_ext <<_ACEOF
10625 /* end confdefs.h. */
10626 $ac_includes_default
10627 typedef size_t ac__type_sizeof_;
10629 main ()
10631 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
10632 test_array [0] = 0
10635 return 0;
10637 _ACEOF
10638 rm -f conftest.$ac_objext
10639 if { (ac_try="$ac_compile"
10640 case "(($ac_try" in
10641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10642 *) ac_try_echo=$ac_try;;
10643 esac
10644 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10645 (eval "$ac_compile") 2>conftest.er1
10646 ac_status=$?
10647 grep -v '^ *+' conftest.er1 >conftest.err
10648 rm -f conftest.er1
10649 cat conftest.err >&5
10650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10651 (exit $ac_status); } && {
10652 test -z "$ac_c_werror_flag" ||
10653 test ! -s conftest.err
10654 } && test -s conftest.$ac_objext; then
10655 ac_hi=$ac_mid
10656 else
10657 echo "$as_me: failed program was:" >&5
10658 sed 's/^/| /' conftest.$ac_ext >&5
10660 ac_lo=`expr '(' $ac_mid ')' + 1`
10663 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10664 done
10665 case $ac_lo in
10666 ?*) ac_cv_sizeof_size_t=$ac_lo;;
10667 '') if test "$ac_cv_type_size_t" = yes; then
10668 { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
10669 See \`config.log' for more details." >&5
10670 echo "$as_me: error: cannot compute sizeof (size_t)
10671 See \`config.log' for more details." >&2;}
10672 { (exit 77); exit 77; }; }
10673 else
10674 ac_cv_sizeof_size_t=0
10675 fi ;;
10676 esac
10677 else
10678 cat >conftest.$ac_ext <<_ACEOF
10679 /* confdefs.h. */
10680 _ACEOF
10681 cat confdefs.h >>conftest.$ac_ext
10682 cat >>conftest.$ac_ext <<_ACEOF
10683 /* end confdefs.h. */
10684 $ac_includes_default
10685 typedef size_t ac__type_sizeof_;
10686 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
10687 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
10688 #include <stdio.h>
10689 #include <stdlib.h>
10691 main ()
10694 FILE *f = fopen ("conftest.val", "w");
10695 if (! f)
10696 return 1;
10697 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
10699 long int i = longval ();
10700 if (i != ((long int) (sizeof (ac__type_sizeof_))))
10701 return 1;
10702 fprintf (f, "%ld\n", i);
10704 else
10706 unsigned long int i = ulongval ();
10707 if (i != ((long int) (sizeof (ac__type_sizeof_))))
10708 return 1;
10709 fprintf (f, "%lu\n", i);
10711 return ferror (f) || fclose (f) != 0;
10714 return 0;
10716 _ACEOF
10717 rm -f conftest$ac_exeext
10718 if { (ac_try="$ac_link"
10719 case "(($ac_try" in
10720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10721 *) ac_try_echo=$ac_try;;
10722 esac
10723 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10724 (eval "$ac_link") 2>&5
10725 ac_status=$?
10726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10727 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10728 { (case "(($ac_try" in
10729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10730 *) ac_try_echo=$ac_try;;
10731 esac
10732 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10733 (eval "$ac_try") 2>&5
10734 ac_status=$?
10735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10736 (exit $ac_status); }; }; then
10737 ac_cv_sizeof_size_t=`cat conftest.val`
10738 else
10739 echo "$as_me: program exited with status $ac_status" >&5
10740 echo "$as_me: failed program was:" >&5
10741 sed 's/^/| /' conftest.$ac_ext >&5
10743 ( exit $ac_status )
10744 if test "$ac_cv_type_size_t" = yes; then
10745 { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
10746 See \`config.log' for more details." >&5
10747 echo "$as_me: error: cannot compute sizeof (size_t)
10748 See \`config.log' for more details." >&2;}
10749 { (exit 77); exit 77; }; }
10750 else
10751 ac_cv_sizeof_size_t=0
10754 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10756 rm -f conftest.val
10758 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
10759 echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6; }
10763 cat >>confdefs.h <<_ACEOF
10764 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
10765 _ACEOF
10768 { echo "$as_me:$LINENO: checking for pid_t" >&5
10769 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
10770 if test "${ac_cv_type_pid_t+set}" = set; then
10771 echo $ECHO_N "(cached) $ECHO_C" >&6
10772 else
10773 cat >conftest.$ac_ext <<_ACEOF
10774 /* confdefs.h. */
10775 _ACEOF
10776 cat confdefs.h >>conftest.$ac_ext
10777 cat >>conftest.$ac_ext <<_ACEOF
10778 /* end confdefs.h. */
10779 $ac_includes_default
10780 typedef pid_t ac__type_new_;
10782 main ()
10784 if ((ac__type_new_ *) 0)
10785 return 0;
10786 if (sizeof (ac__type_new_))
10787 return 0;
10789 return 0;
10791 _ACEOF
10792 rm -f conftest.$ac_objext
10793 if { (ac_try="$ac_compile"
10794 case "(($ac_try" in
10795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10796 *) ac_try_echo=$ac_try;;
10797 esac
10798 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10799 (eval "$ac_compile") 2>conftest.er1
10800 ac_status=$?
10801 grep -v '^ *+' conftest.er1 >conftest.err
10802 rm -f conftest.er1
10803 cat conftest.err >&5
10804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10805 (exit $ac_status); } && {
10806 test -z "$ac_c_werror_flag" ||
10807 test ! -s conftest.err
10808 } && test -s conftest.$ac_objext; then
10809 ac_cv_type_pid_t=yes
10810 else
10811 echo "$as_me: failed program was:" >&5
10812 sed 's/^/| /' conftest.$ac_ext >&5
10814 ac_cv_type_pid_t=no
10817 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10819 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
10820 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
10822 # The cast to long int works around a bug in the HP C Compiler
10823 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10824 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10825 # This bug is HP SR number 8606223364.
10826 { echo "$as_me:$LINENO: checking size of pid_t" >&5
10827 echo $ECHO_N "checking size of pid_t... $ECHO_C" >&6; }
10828 if test "${ac_cv_sizeof_pid_t+set}" = set; then
10829 echo $ECHO_N "(cached) $ECHO_C" >&6
10830 else
10831 if test "$cross_compiling" = yes; then
10832 # Depending upon the size, compute the lo and hi bounds.
10833 cat >conftest.$ac_ext <<_ACEOF
10834 /* confdefs.h. */
10835 _ACEOF
10836 cat confdefs.h >>conftest.$ac_ext
10837 cat >>conftest.$ac_ext <<_ACEOF
10838 /* end confdefs.h. */
10839 $ac_includes_default
10840 typedef pid_t ac__type_sizeof_;
10842 main ()
10844 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
10845 test_array [0] = 0
10848 return 0;
10850 _ACEOF
10851 rm -f conftest.$ac_objext
10852 if { (ac_try="$ac_compile"
10853 case "(($ac_try" in
10854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10855 *) ac_try_echo=$ac_try;;
10856 esac
10857 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10858 (eval "$ac_compile") 2>conftest.er1
10859 ac_status=$?
10860 grep -v '^ *+' conftest.er1 >conftest.err
10861 rm -f conftest.er1
10862 cat conftest.err >&5
10863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10864 (exit $ac_status); } && {
10865 test -z "$ac_c_werror_flag" ||
10866 test ! -s conftest.err
10867 } && test -s conftest.$ac_objext; then
10868 ac_lo=0 ac_mid=0
10869 while :; do
10870 cat >conftest.$ac_ext <<_ACEOF
10871 /* confdefs.h. */
10872 _ACEOF
10873 cat confdefs.h >>conftest.$ac_ext
10874 cat >>conftest.$ac_ext <<_ACEOF
10875 /* end confdefs.h. */
10876 $ac_includes_default
10877 typedef pid_t ac__type_sizeof_;
10879 main ()
10881 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
10882 test_array [0] = 0
10885 return 0;
10887 _ACEOF
10888 rm -f conftest.$ac_objext
10889 if { (ac_try="$ac_compile"
10890 case "(($ac_try" in
10891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10892 *) ac_try_echo=$ac_try;;
10893 esac
10894 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10895 (eval "$ac_compile") 2>conftest.er1
10896 ac_status=$?
10897 grep -v '^ *+' conftest.er1 >conftest.err
10898 rm -f conftest.er1
10899 cat conftest.err >&5
10900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10901 (exit $ac_status); } && {
10902 test -z "$ac_c_werror_flag" ||
10903 test ! -s conftest.err
10904 } && test -s conftest.$ac_objext; then
10905 ac_hi=$ac_mid; break
10906 else
10907 echo "$as_me: failed program was:" >&5
10908 sed 's/^/| /' conftest.$ac_ext >&5
10910 ac_lo=`expr $ac_mid + 1`
10911 if test $ac_lo -le $ac_mid; then
10912 ac_lo= ac_hi=
10913 break
10915 ac_mid=`expr 2 '*' $ac_mid + 1`
10918 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10919 done
10920 else
10921 echo "$as_me: failed program was:" >&5
10922 sed 's/^/| /' conftest.$ac_ext >&5
10924 cat >conftest.$ac_ext <<_ACEOF
10925 /* confdefs.h. */
10926 _ACEOF
10927 cat confdefs.h >>conftest.$ac_ext
10928 cat >>conftest.$ac_ext <<_ACEOF
10929 /* end confdefs.h. */
10930 $ac_includes_default
10931 typedef pid_t ac__type_sizeof_;
10933 main ()
10935 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
10936 test_array [0] = 0
10939 return 0;
10941 _ACEOF
10942 rm -f conftest.$ac_objext
10943 if { (ac_try="$ac_compile"
10944 case "(($ac_try" in
10945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10946 *) ac_try_echo=$ac_try;;
10947 esac
10948 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10949 (eval "$ac_compile") 2>conftest.er1
10950 ac_status=$?
10951 grep -v '^ *+' conftest.er1 >conftest.err
10952 rm -f conftest.er1
10953 cat conftest.err >&5
10954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10955 (exit $ac_status); } && {
10956 test -z "$ac_c_werror_flag" ||
10957 test ! -s conftest.err
10958 } && test -s conftest.$ac_objext; then
10959 ac_hi=-1 ac_mid=-1
10960 while :; do
10961 cat >conftest.$ac_ext <<_ACEOF
10962 /* confdefs.h. */
10963 _ACEOF
10964 cat confdefs.h >>conftest.$ac_ext
10965 cat >>conftest.$ac_ext <<_ACEOF
10966 /* end confdefs.h. */
10967 $ac_includes_default
10968 typedef pid_t ac__type_sizeof_;
10970 main ()
10972 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
10973 test_array [0] = 0
10976 return 0;
10978 _ACEOF
10979 rm -f conftest.$ac_objext
10980 if { (ac_try="$ac_compile"
10981 case "(($ac_try" in
10982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10983 *) ac_try_echo=$ac_try;;
10984 esac
10985 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10986 (eval "$ac_compile") 2>conftest.er1
10987 ac_status=$?
10988 grep -v '^ *+' conftest.er1 >conftest.err
10989 rm -f conftest.er1
10990 cat conftest.err >&5
10991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10992 (exit $ac_status); } && {
10993 test -z "$ac_c_werror_flag" ||
10994 test ! -s conftest.err
10995 } && test -s conftest.$ac_objext; then
10996 ac_lo=$ac_mid; break
10997 else
10998 echo "$as_me: failed program was:" >&5
10999 sed 's/^/| /' conftest.$ac_ext >&5
11001 ac_hi=`expr '(' $ac_mid ')' - 1`
11002 if test $ac_mid -le $ac_hi; then
11003 ac_lo= ac_hi=
11004 break
11006 ac_mid=`expr 2 '*' $ac_mid`
11009 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11010 done
11011 else
11012 echo "$as_me: failed program was:" >&5
11013 sed 's/^/| /' conftest.$ac_ext >&5
11015 ac_lo= ac_hi=
11018 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11021 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11022 # Binary search between lo and hi bounds.
11023 while test "x$ac_lo" != "x$ac_hi"; do
11024 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
11025 cat >conftest.$ac_ext <<_ACEOF
11026 /* confdefs.h. */
11027 _ACEOF
11028 cat confdefs.h >>conftest.$ac_ext
11029 cat >>conftest.$ac_ext <<_ACEOF
11030 /* end confdefs.h. */
11031 $ac_includes_default
11032 typedef pid_t ac__type_sizeof_;
11034 main ()
11036 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
11037 test_array [0] = 0
11040 return 0;
11042 _ACEOF
11043 rm -f conftest.$ac_objext
11044 if { (ac_try="$ac_compile"
11045 case "(($ac_try" in
11046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11047 *) ac_try_echo=$ac_try;;
11048 esac
11049 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11050 (eval "$ac_compile") 2>conftest.er1
11051 ac_status=$?
11052 grep -v '^ *+' conftest.er1 >conftest.err
11053 rm -f conftest.er1
11054 cat conftest.err >&5
11055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11056 (exit $ac_status); } && {
11057 test -z "$ac_c_werror_flag" ||
11058 test ! -s conftest.err
11059 } && test -s conftest.$ac_objext; then
11060 ac_hi=$ac_mid
11061 else
11062 echo "$as_me: failed program was:" >&5
11063 sed 's/^/| /' conftest.$ac_ext >&5
11065 ac_lo=`expr '(' $ac_mid ')' + 1`
11068 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11069 done
11070 case $ac_lo in
11071 ?*) ac_cv_sizeof_pid_t=$ac_lo;;
11072 '') if test "$ac_cv_type_pid_t" = yes; then
11073 { { echo "$as_me:$LINENO: error: cannot compute sizeof (pid_t)
11074 See \`config.log' for more details." >&5
11075 echo "$as_me: error: cannot compute sizeof (pid_t)
11076 See \`config.log' for more details." >&2;}
11077 { (exit 77); exit 77; }; }
11078 else
11079 ac_cv_sizeof_pid_t=0
11080 fi ;;
11081 esac
11082 else
11083 cat >conftest.$ac_ext <<_ACEOF
11084 /* confdefs.h. */
11085 _ACEOF
11086 cat confdefs.h >>conftest.$ac_ext
11087 cat >>conftest.$ac_ext <<_ACEOF
11088 /* end confdefs.h. */
11089 $ac_includes_default
11090 typedef pid_t ac__type_sizeof_;
11091 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
11092 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
11093 #include <stdio.h>
11094 #include <stdlib.h>
11096 main ()
11099 FILE *f = fopen ("conftest.val", "w");
11100 if (! f)
11101 return 1;
11102 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
11104 long int i = longval ();
11105 if (i != ((long int) (sizeof (ac__type_sizeof_))))
11106 return 1;
11107 fprintf (f, "%ld\n", i);
11109 else
11111 unsigned long int i = ulongval ();
11112 if (i != ((long int) (sizeof (ac__type_sizeof_))))
11113 return 1;
11114 fprintf (f, "%lu\n", i);
11116 return ferror (f) || fclose (f) != 0;
11119 return 0;
11121 _ACEOF
11122 rm -f conftest$ac_exeext
11123 if { (ac_try="$ac_link"
11124 case "(($ac_try" in
11125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11126 *) ac_try_echo=$ac_try;;
11127 esac
11128 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11129 (eval "$ac_link") 2>&5
11130 ac_status=$?
11131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11132 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11133 { (case "(($ac_try" in
11134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11135 *) ac_try_echo=$ac_try;;
11136 esac
11137 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11138 (eval "$ac_try") 2>&5
11139 ac_status=$?
11140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11141 (exit $ac_status); }; }; then
11142 ac_cv_sizeof_pid_t=`cat conftest.val`
11143 else
11144 echo "$as_me: program exited with status $ac_status" >&5
11145 echo "$as_me: failed program was:" >&5
11146 sed 's/^/| /' conftest.$ac_ext >&5
11148 ( exit $ac_status )
11149 if test "$ac_cv_type_pid_t" = yes; then
11150 { { echo "$as_me:$LINENO: error: cannot compute sizeof (pid_t)
11151 See \`config.log' for more details." >&5
11152 echo "$as_me: error: cannot compute sizeof (pid_t)
11153 See \`config.log' for more details." >&2;}
11154 { (exit 77); exit 77; }; }
11155 else
11156 ac_cv_sizeof_pid_t=0
11159 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11161 rm -f conftest.val
11163 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_pid_t" >&5
11164 echo "${ECHO_T}$ac_cv_sizeof_pid_t" >&6; }
11168 cat >>confdefs.h <<_ACEOF
11169 #define SIZEOF_PID_T $ac_cv_sizeof_pid_t
11170 _ACEOF
11174 { echo "$as_me:$LINENO: checking for long long support" >&5
11175 echo $ECHO_N "checking for long long support... $ECHO_C" >&6; }
11176 have_long_long=no
11177 cat >conftest.$ac_ext <<_ACEOF
11178 /* confdefs.h. */
11179 _ACEOF
11180 cat confdefs.h >>conftest.$ac_ext
11181 cat >>conftest.$ac_ext <<_ACEOF
11182 /* end confdefs.h. */
11185 main ()
11187 long long x; x = (long long)0;
11189 return 0;
11191 _ACEOF
11192 rm -f conftest.$ac_objext
11193 if { (ac_try="$ac_compile"
11194 case "(($ac_try" in
11195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11196 *) ac_try_echo=$ac_try;;
11197 esac
11198 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11199 (eval "$ac_compile") 2>conftest.er1
11200 ac_status=$?
11201 grep -v '^ *+' conftest.er1 >conftest.err
11202 rm -f conftest.er1
11203 cat conftest.err >&5
11204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11205 (exit $ac_status); } && {
11206 test -z "$ac_c_werror_flag" ||
11207 test ! -s conftest.err
11208 } && test -s conftest.$ac_objext; then
11211 cat >>confdefs.h <<\_ACEOF
11212 #define HAVE_LONG_LONG 1
11213 _ACEOF
11215 have_long_long=yes
11217 else
11218 echo "$as_me: failed program was:" >&5
11219 sed 's/^/| /' conftest.$ac_ext >&5
11224 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11225 { echo "$as_me:$LINENO: result: $have_long_long" >&5
11226 echo "${ECHO_T}$have_long_long" >&6; }
11227 if test "$have_long_long" = yes ; then
11228 { echo "$as_me:$LINENO: checking for long long" >&5
11229 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
11230 if test "${ac_cv_type_long_long+set}" = set; then
11231 echo $ECHO_N "(cached) $ECHO_C" >&6
11232 else
11233 cat >conftest.$ac_ext <<_ACEOF
11234 /* confdefs.h. */
11235 _ACEOF
11236 cat confdefs.h >>conftest.$ac_ext
11237 cat >>conftest.$ac_ext <<_ACEOF
11238 /* end confdefs.h. */
11239 $ac_includes_default
11240 typedef long long ac__type_new_;
11242 main ()
11244 if ((ac__type_new_ *) 0)
11245 return 0;
11246 if (sizeof (ac__type_new_))
11247 return 0;
11249 return 0;
11251 _ACEOF
11252 rm -f conftest.$ac_objext
11253 if { (ac_try="$ac_compile"
11254 case "(($ac_try" in
11255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11256 *) ac_try_echo=$ac_try;;
11257 esac
11258 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11259 (eval "$ac_compile") 2>conftest.er1
11260 ac_status=$?
11261 grep -v '^ *+' conftest.er1 >conftest.err
11262 rm -f conftest.er1
11263 cat conftest.err >&5
11264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11265 (exit $ac_status); } && {
11266 test -z "$ac_c_werror_flag" ||
11267 test ! -s conftest.err
11268 } && test -s conftest.$ac_objext; then
11269 ac_cv_type_long_long=yes
11270 else
11271 echo "$as_me: failed program was:" >&5
11272 sed 's/^/| /' conftest.$ac_ext >&5
11274 ac_cv_type_long_long=no
11277 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11279 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
11280 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
11282 # The cast to long int works around a bug in the HP C Compiler
11283 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11284 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11285 # This bug is HP SR number 8606223364.
11286 { echo "$as_me:$LINENO: checking size of long long" >&5
11287 echo $ECHO_N "checking size of long long... $ECHO_C" >&6; }
11288 if test "${ac_cv_sizeof_long_long+set}" = set; then
11289 echo $ECHO_N "(cached) $ECHO_C" >&6
11290 else
11291 if test "$cross_compiling" = yes; then
11292 # Depending upon the size, compute the lo and hi bounds.
11293 cat >conftest.$ac_ext <<_ACEOF
11294 /* confdefs.h. */
11295 _ACEOF
11296 cat confdefs.h >>conftest.$ac_ext
11297 cat >>conftest.$ac_ext <<_ACEOF
11298 /* end confdefs.h. */
11299 $ac_includes_default
11300 typedef long long ac__type_sizeof_;
11302 main ()
11304 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
11305 test_array [0] = 0
11308 return 0;
11310 _ACEOF
11311 rm -f conftest.$ac_objext
11312 if { (ac_try="$ac_compile"
11313 case "(($ac_try" in
11314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11315 *) ac_try_echo=$ac_try;;
11316 esac
11317 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11318 (eval "$ac_compile") 2>conftest.er1
11319 ac_status=$?
11320 grep -v '^ *+' conftest.er1 >conftest.err
11321 rm -f conftest.er1
11322 cat conftest.err >&5
11323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11324 (exit $ac_status); } && {
11325 test -z "$ac_c_werror_flag" ||
11326 test ! -s conftest.err
11327 } && test -s conftest.$ac_objext; then
11328 ac_lo=0 ac_mid=0
11329 while :; do
11330 cat >conftest.$ac_ext <<_ACEOF
11331 /* confdefs.h. */
11332 _ACEOF
11333 cat confdefs.h >>conftest.$ac_ext
11334 cat >>conftest.$ac_ext <<_ACEOF
11335 /* end confdefs.h. */
11336 $ac_includes_default
11337 typedef long long ac__type_sizeof_;
11339 main ()
11341 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
11342 test_array [0] = 0
11345 return 0;
11347 _ACEOF
11348 rm -f conftest.$ac_objext
11349 if { (ac_try="$ac_compile"
11350 case "(($ac_try" in
11351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11352 *) ac_try_echo=$ac_try;;
11353 esac
11354 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11355 (eval "$ac_compile") 2>conftest.er1
11356 ac_status=$?
11357 grep -v '^ *+' conftest.er1 >conftest.err
11358 rm -f conftest.er1
11359 cat conftest.err >&5
11360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11361 (exit $ac_status); } && {
11362 test -z "$ac_c_werror_flag" ||
11363 test ! -s conftest.err
11364 } && test -s conftest.$ac_objext; then
11365 ac_hi=$ac_mid; break
11366 else
11367 echo "$as_me: failed program was:" >&5
11368 sed 's/^/| /' conftest.$ac_ext >&5
11370 ac_lo=`expr $ac_mid + 1`
11371 if test $ac_lo -le $ac_mid; then
11372 ac_lo= ac_hi=
11373 break
11375 ac_mid=`expr 2 '*' $ac_mid + 1`
11378 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11379 done
11380 else
11381 echo "$as_me: failed program was:" >&5
11382 sed 's/^/| /' conftest.$ac_ext >&5
11384 cat >conftest.$ac_ext <<_ACEOF
11385 /* confdefs.h. */
11386 _ACEOF
11387 cat confdefs.h >>conftest.$ac_ext
11388 cat >>conftest.$ac_ext <<_ACEOF
11389 /* end confdefs.h. */
11390 $ac_includes_default
11391 typedef long long ac__type_sizeof_;
11393 main ()
11395 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
11396 test_array [0] = 0
11399 return 0;
11401 _ACEOF
11402 rm -f conftest.$ac_objext
11403 if { (ac_try="$ac_compile"
11404 case "(($ac_try" in
11405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11406 *) ac_try_echo=$ac_try;;
11407 esac
11408 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11409 (eval "$ac_compile") 2>conftest.er1
11410 ac_status=$?
11411 grep -v '^ *+' conftest.er1 >conftest.err
11412 rm -f conftest.er1
11413 cat conftest.err >&5
11414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11415 (exit $ac_status); } && {
11416 test -z "$ac_c_werror_flag" ||
11417 test ! -s conftest.err
11418 } && test -s conftest.$ac_objext; then
11419 ac_hi=-1 ac_mid=-1
11420 while :; do
11421 cat >conftest.$ac_ext <<_ACEOF
11422 /* confdefs.h. */
11423 _ACEOF
11424 cat confdefs.h >>conftest.$ac_ext
11425 cat >>conftest.$ac_ext <<_ACEOF
11426 /* end confdefs.h. */
11427 $ac_includes_default
11428 typedef long long ac__type_sizeof_;
11430 main ()
11432 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
11433 test_array [0] = 0
11436 return 0;
11438 _ACEOF
11439 rm -f conftest.$ac_objext
11440 if { (ac_try="$ac_compile"
11441 case "(($ac_try" in
11442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11443 *) ac_try_echo=$ac_try;;
11444 esac
11445 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11446 (eval "$ac_compile") 2>conftest.er1
11447 ac_status=$?
11448 grep -v '^ *+' conftest.er1 >conftest.err
11449 rm -f conftest.er1
11450 cat conftest.err >&5
11451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11452 (exit $ac_status); } && {
11453 test -z "$ac_c_werror_flag" ||
11454 test ! -s conftest.err
11455 } && test -s conftest.$ac_objext; then
11456 ac_lo=$ac_mid; break
11457 else
11458 echo "$as_me: failed program was:" >&5
11459 sed 's/^/| /' conftest.$ac_ext >&5
11461 ac_hi=`expr '(' $ac_mid ')' - 1`
11462 if test $ac_mid -le $ac_hi; then
11463 ac_lo= ac_hi=
11464 break
11466 ac_mid=`expr 2 '*' $ac_mid`
11469 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11470 done
11471 else
11472 echo "$as_me: failed program was:" >&5
11473 sed 's/^/| /' conftest.$ac_ext >&5
11475 ac_lo= ac_hi=
11478 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11481 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11482 # Binary search between lo and hi bounds.
11483 while test "x$ac_lo" != "x$ac_hi"; do
11484 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
11485 cat >conftest.$ac_ext <<_ACEOF
11486 /* confdefs.h. */
11487 _ACEOF
11488 cat confdefs.h >>conftest.$ac_ext
11489 cat >>conftest.$ac_ext <<_ACEOF
11490 /* end confdefs.h. */
11491 $ac_includes_default
11492 typedef long long ac__type_sizeof_;
11494 main ()
11496 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
11497 test_array [0] = 0
11500 return 0;
11502 _ACEOF
11503 rm -f conftest.$ac_objext
11504 if { (ac_try="$ac_compile"
11505 case "(($ac_try" in
11506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11507 *) ac_try_echo=$ac_try;;
11508 esac
11509 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11510 (eval "$ac_compile") 2>conftest.er1
11511 ac_status=$?
11512 grep -v '^ *+' conftest.er1 >conftest.err
11513 rm -f conftest.er1
11514 cat conftest.err >&5
11515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11516 (exit $ac_status); } && {
11517 test -z "$ac_c_werror_flag" ||
11518 test ! -s conftest.err
11519 } && test -s conftest.$ac_objext; then
11520 ac_hi=$ac_mid
11521 else
11522 echo "$as_me: failed program was:" >&5
11523 sed 's/^/| /' conftest.$ac_ext >&5
11525 ac_lo=`expr '(' $ac_mid ')' + 1`
11528 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11529 done
11530 case $ac_lo in
11531 ?*) ac_cv_sizeof_long_long=$ac_lo;;
11532 '') if test "$ac_cv_type_long_long" = yes; then
11533 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
11534 See \`config.log' for more details." >&5
11535 echo "$as_me: error: cannot compute sizeof (long long)
11536 See \`config.log' for more details." >&2;}
11537 { (exit 77); exit 77; }; }
11538 else
11539 ac_cv_sizeof_long_long=0
11540 fi ;;
11541 esac
11542 else
11543 cat >conftest.$ac_ext <<_ACEOF
11544 /* confdefs.h. */
11545 _ACEOF
11546 cat confdefs.h >>conftest.$ac_ext
11547 cat >>conftest.$ac_ext <<_ACEOF
11548 /* end confdefs.h. */
11549 $ac_includes_default
11550 typedef long long ac__type_sizeof_;
11551 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
11552 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
11553 #include <stdio.h>
11554 #include <stdlib.h>
11556 main ()
11559 FILE *f = fopen ("conftest.val", "w");
11560 if (! f)
11561 return 1;
11562 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
11564 long int i = longval ();
11565 if (i != ((long int) (sizeof (ac__type_sizeof_))))
11566 return 1;
11567 fprintf (f, "%ld\n", i);
11569 else
11571 unsigned long int i = ulongval ();
11572 if (i != ((long int) (sizeof (ac__type_sizeof_))))
11573 return 1;
11574 fprintf (f, "%lu\n", i);
11576 return ferror (f) || fclose (f) != 0;
11579 return 0;
11581 _ACEOF
11582 rm -f conftest$ac_exeext
11583 if { (ac_try="$ac_link"
11584 case "(($ac_try" in
11585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11586 *) ac_try_echo=$ac_try;;
11587 esac
11588 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11589 (eval "$ac_link") 2>&5
11590 ac_status=$?
11591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11592 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11593 { (case "(($ac_try" in
11594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11595 *) ac_try_echo=$ac_try;;
11596 esac
11597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11598 (eval "$ac_try") 2>&5
11599 ac_status=$?
11600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11601 (exit $ac_status); }; }; then
11602 ac_cv_sizeof_long_long=`cat conftest.val`
11603 else
11604 echo "$as_me: program exited with status $ac_status" >&5
11605 echo "$as_me: failed program was:" >&5
11606 sed 's/^/| /' conftest.$ac_ext >&5
11608 ( exit $ac_status )
11609 if test "$ac_cv_type_long_long" = yes; then
11610 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
11611 See \`config.log' for more details." >&5
11612 echo "$as_me: error: cannot compute sizeof (long long)
11613 See \`config.log' for more details." >&2;}
11614 { (exit 77); exit 77; }; }
11615 else
11616 ac_cv_sizeof_long_long=0
11619 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11621 rm -f conftest.val
11623 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
11624 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6; }
11628 cat >>confdefs.h <<_ACEOF
11629 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
11630 _ACEOF
11635 { echo "$as_me:$LINENO: checking for long double support" >&5
11636 echo $ECHO_N "checking for long double support... $ECHO_C" >&6; }
11637 have_long_double=no
11638 cat >conftest.$ac_ext <<_ACEOF
11639 /* confdefs.h. */
11640 _ACEOF
11641 cat confdefs.h >>conftest.$ac_ext
11642 cat >>conftest.$ac_ext <<_ACEOF
11643 /* end confdefs.h. */
11646 main ()
11648 long double x; x = (long double)0.;
11650 return 0;
11652 _ACEOF
11653 rm -f conftest.$ac_objext
11654 if { (ac_try="$ac_compile"
11655 case "(($ac_try" in
11656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11657 *) ac_try_echo=$ac_try;;
11658 esac
11659 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11660 (eval "$ac_compile") 2>conftest.er1
11661 ac_status=$?
11662 grep -v '^ *+' conftest.er1 >conftest.err
11663 rm -f conftest.er1
11664 cat conftest.err >&5
11665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11666 (exit $ac_status); } && {
11667 test -z "$ac_c_werror_flag" ||
11668 test ! -s conftest.err
11669 } && test -s conftest.$ac_objext; then
11672 cat >>confdefs.h <<\_ACEOF
11673 #define HAVE_LONG_DOUBLE 1
11674 _ACEOF
11676 have_long_double=yes
11678 else
11679 echo "$as_me: failed program was:" >&5
11680 sed 's/^/| /' conftest.$ac_ext >&5
11685 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11686 { echo "$as_me:$LINENO: result: $have_long_double" >&5
11687 echo "${ECHO_T}$have_long_double" >&6; }
11688 if test "$have_long_double" = yes ; then
11689 { echo "$as_me:$LINENO: checking for long double" >&5
11690 echo $ECHO_N "checking for long double... $ECHO_C" >&6; }
11691 if test "${ac_cv_type_long_double+set}" = set; then
11692 echo $ECHO_N "(cached) $ECHO_C" >&6
11693 else
11694 cat >conftest.$ac_ext <<_ACEOF
11695 /* confdefs.h. */
11696 _ACEOF
11697 cat confdefs.h >>conftest.$ac_ext
11698 cat >>conftest.$ac_ext <<_ACEOF
11699 /* end confdefs.h. */
11700 $ac_includes_default
11701 typedef long double ac__type_new_;
11703 main ()
11705 if ((ac__type_new_ *) 0)
11706 return 0;
11707 if (sizeof (ac__type_new_))
11708 return 0;
11710 return 0;
11712 _ACEOF
11713 rm -f conftest.$ac_objext
11714 if { (ac_try="$ac_compile"
11715 case "(($ac_try" in
11716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11717 *) ac_try_echo=$ac_try;;
11718 esac
11719 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11720 (eval "$ac_compile") 2>conftest.er1
11721 ac_status=$?
11722 grep -v '^ *+' conftest.er1 >conftest.err
11723 rm -f conftest.er1
11724 cat conftest.err >&5
11725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11726 (exit $ac_status); } && {
11727 test -z "$ac_c_werror_flag" ||
11728 test ! -s conftest.err
11729 } && test -s conftest.$ac_objext; then
11730 ac_cv_type_long_double=yes
11731 else
11732 echo "$as_me: failed program was:" >&5
11733 sed 's/^/| /' conftest.$ac_ext >&5
11735 ac_cv_type_long_double=no
11738 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11740 { echo "$as_me:$LINENO: result: $ac_cv_type_long_double" >&5
11741 echo "${ECHO_T}$ac_cv_type_long_double" >&6; }
11743 # The cast to long int works around a bug in the HP C Compiler
11744 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11745 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11746 # This bug is HP SR number 8606223364.
11747 { echo "$as_me:$LINENO: checking size of long double" >&5
11748 echo $ECHO_N "checking size of long double... $ECHO_C" >&6; }
11749 if test "${ac_cv_sizeof_long_double+set}" = set; then
11750 echo $ECHO_N "(cached) $ECHO_C" >&6
11751 else
11752 if test "$cross_compiling" = yes; then
11753 # Depending upon the size, compute the lo and hi bounds.
11754 cat >conftest.$ac_ext <<_ACEOF
11755 /* confdefs.h. */
11756 _ACEOF
11757 cat confdefs.h >>conftest.$ac_ext
11758 cat >>conftest.$ac_ext <<_ACEOF
11759 /* end confdefs.h. */
11760 $ac_includes_default
11761 typedef long double ac__type_sizeof_;
11763 main ()
11765 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
11766 test_array [0] = 0
11769 return 0;
11771 _ACEOF
11772 rm -f conftest.$ac_objext
11773 if { (ac_try="$ac_compile"
11774 case "(($ac_try" in
11775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11776 *) ac_try_echo=$ac_try;;
11777 esac
11778 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11779 (eval "$ac_compile") 2>conftest.er1
11780 ac_status=$?
11781 grep -v '^ *+' conftest.er1 >conftest.err
11782 rm -f conftest.er1
11783 cat conftest.err >&5
11784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11785 (exit $ac_status); } && {
11786 test -z "$ac_c_werror_flag" ||
11787 test ! -s conftest.err
11788 } && test -s conftest.$ac_objext; then
11789 ac_lo=0 ac_mid=0
11790 while :; do
11791 cat >conftest.$ac_ext <<_ACEOF
11792 /* confdefs.h. */
11793 _ACEOF
11794 cat confdefs.h >>conftest.$ac_ext
11795 cat >>conftest.$ac_ext <<_ACEOF
11796 /* end confdefs.h. */
11797 $ac_includes_default
11798 typedef long double ac__type_sizeof_;
11800 main ()
11802 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
11803 test_array [0] = 0
11806 return 0;
11808 _ACEOF
11809 rm -f conftest.$ac_objext
11810 if { (ac_try="$ac_compile"
11811 case "(($ac_try" in
11812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11813 *) ac_try_echo=$ac_try;;
11814 esac
11815 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11816 (eval "$ac_compile") 2>conftest.er1
11817 ac_status=$?
11818 grep -v '^ *+' conftest.er1 >conftest.err
11819 rm -f conftest.er1
11820 cat conftest.err >&5
11821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11822 (exit $ac_status); } && {
11823 test -z "$ac_c_werror_flag" ||
11824 test ! -s conftest.err
11825 } && test -s conftest.$ac_objext; then
11826 ac_hi=$ac_mid; break
11827 else
11828 echo "$as_me: failed program was:" >&5
11829 sed 's/^/| /' conftest.$ac_ext >&5
11831 ac_lo=`expr $ac_mid + 1`
11832 if test $ac_lo -le $ac_mid; then
11833 ac_lo= ac_hi=
11834 break
11836 ac_mid=`expr 2 '*' $ac_mid + 1`
11839 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11840 done
11841 else
11842 echo "$as_me: failed program was:" >&5
11843 sed 's/^/| /' conftest.$ac_ext >&5
11845 cat >conftest.$ac_ext <<_ACEOF
11846 /* confdefs.h. */
11847 _ACEOF
11848 cat confdefs.h >>conftest.$ac_ext
11849 cat >>conftest.$ac_ext <<_ACEOF
11850 /* end confdefs.h. */
11851 $ac_includes_default
11852 typedef long double ac__type_sizeof_;
11854 main ()
11856 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
11857 test_array [0] = 0
11860 return 0;
11862 _ACEOF
11863 rm -f conftest.$ac_objext
11864 if { (ac_try="$ac_compile"
11865 case "(($ac_try" in
11866 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11867 *) ac_try_echo=$ac_try;;
11868 esac
11869 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11870 (eval "$ac_compile") 2>conftest.er1
11871 ac_status=$?
11872 grep -v '^ *+' conftest.er1 >conftest.err
11873 rm -f conftest.er1
11874 cat conftest.err >&5
11875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11876 (exit $ac_status); } && {
11877 test -z "$ac_c_werror_flag" ||
11878 test ! -s conftest.err
11879 } && test -s conftest.$ac_objext; then
11880 ac_hi=-1 ac_mid=-1
11881 while :; do
11882 cat >conftest.$ac_ext <<_ACEOF
11883 /* confdefs.h. */
11884 _ACEOF
11885 cat confdefs.h >>conftest.$ac_ext
11886 cat >>conftest.$ac_ext <<_ACEOF
11887 /* end confdefs.h. */
11888 $ac_includes_default
11889 typedef long double ac__type_sizeof_;
11891 main ()
11893 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
11894 test_array [0] = 0
11897 return 0;
11899 _ACEOF
11900 rm -f conftest.$ac_objext
11901 if { (ac_try="$ac_compile"
11902 case "(($ac_try" in
11903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11904 *) ac_try_echo=$ac_try;;
11905 esac
11906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11907 (eval "$ac_compile") 2>conftest.er1
11908 ac_status=$?
11909 grep -v '^ *+' conftest.er1 >conftest.err
11910 rm -f conftest.er1
11911 cat conftest.err >&5
11912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11913 (exit $ac_status); } && {
11914 test -z "$ac_c_werror_flag" ||
11915 test ! -s conftest.err
11916 } && test -s conftest.$ac_objext; then
11917 ac_lo=$ac_mid; break
11918 else
11919 echo "$as_me: failed program was:" >&5
11920 sed 's/^/| /' conftest.$ac_ext >&5
11922 ac_hi=`expr '(' $ac_mid ')' - 1`
11923 if test $ac_mid -le $ac_hi; then
11924 ac_lo= ac_hi=
11925 break
11927 ac_mid=`expr 2 '*' $ac_mid`
11930 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11931 done
11932 else
11933 echo "$as_me: failed program was:" >&5
11934 sed 's/^/| /' conftest.$ac_ext >&5
11936 ac_lo= ac_hi=
11939 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11942 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11943 # Binary search between lo and hi bounds.
11944 while test "x$ac_lo" != "x$ac_hi"; do
11945 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
11946 cat >conftest.$ac_ext <<_ACEOF
11947 /* confdefs.h. */
11948 _ACEOF
11949 cat confdefs.h >>conftest.$ac_ext
11950 cat >>conftest.$ac_ext <<_ACEOF
11951 /* end confdefs.h. */
11952 $ac_includes_default
11953 typedef long double ac__type_sizeof_;
11955 main ()
11957 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
11958 test_array [0] = 0
11961 return 0;
11963 _ACEOF
11964 rm -f conftest.$ac_objext
11965 if { (ac_try="$ac_compile"
11966 case "(($ac_try" in
11967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11968 *) ac_try_echo=$ac_try;;
11969 esac
11970 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11971 (eval "$ac_compile") 2>conftest.er1
11972 ac_status=$?
11973 grep -v '^ *+' conftest.er1 >conftest.err
11974 rm -f conftest.er1
11975 cat conftest.err >&5
11976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11977 (exit $ac_status); } && {
11978 test -z "$ac_c_werror_flag" ||
11979 test ! -s conftest.err
11980 } && test -s conftest.$ac_objext; then
11981 ac_hi=$ac_mid
11982 else
11983 echo "$as_me: failed program was:" >&5
11984 sed 's/^/| /' conftest.$ac_ext >&5
11986 ac_lo=`expr '(' $ac_mid ')' + 1`
11989 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11990 done
11991 case $ac_lo in
11992 ?*) ac_cv_sizeof_long_double=$ac_lo;;
11993 '') if test "$ac_cv_type_long_double" = yes; then
11994 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long double)
11995 See \`config.log' for more details." >&5
11996 echo "$as_me: error: cannot compute sizeof (long double)
11997 See \`config.log' for more details." >&2;}
11998 { (exit 77); exit 77; }; }
11999 else
12000 ac_cv_sizeof_long_double=0
12001 fi ;;
12002 esac
12003 else
12004 cat >conftest.$ac_ext <<_ACEOF
12005 /* confdefs.h. */
12006 _ACEOF
12007 cat confdefs.h >>conftest.$ac_ext
12008 cat >>conftest.$ac_ext <<_ACEOF
12009 /* end confdefs.h. */
12010 $ac_includes_default
12011 typedef long double ac__type_sizeof_;
12012 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
12013 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
12014 #include <stdio.h>
12015 #include <stdlib.h>
12017 main ()
12020 FILE *f = fopen ("conftest.val", "w");
12021 if (! f)
12022 return 1;
12023 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
12025 long int i = longval ();
12026 if (i != ((long int) (sizeof (ac__type_sizeof_))))
12027 return 1;
12028 fprintf (f, "%ld\n", i);
12030 else
12032 unsigned long int i = ulongval ();
12033 if (i != ((long int) (sizeof (ac__type_sizeof_))))
12034 return 1;
12035 fprintf (f, "%lu\n", i);
12037 return ferror (f) || fclose (f) != 0;
12040 return 0;
12042 _ACEOF
12043 rm -f conftest$ac_exeext
12044 if { (ac_try="$ac_link"
12045 case "(($ac_try" in
12046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12047 *) ac_try_echo=$ac_try;;
12048 esac
12049 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12050 (eval "$ac_link") 2>&5
12051 ac_status=$?
12052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12053 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12054 { (case "(($ac_try" in
12055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12056 *) ac_try_echo=$ac_try;;
12057 esac
12058 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12059 (eval "$ac_try") 2>&5
12060 ac_status=$?
12061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12062 (exit $ac_status); }; }; then
12063 ac_cv_sizeof_long_double=`cat conftest.val`
12064 else
12065 echo "$as_me: program exited with status $ac_status" >&5
12066 echo "$as_me: failed program was:" >&5
12067 sed 's/^/| /' conftest.$ac_ext >&5
12069 ( exit $ac_status )
12070 if test "$ac_cv_type_long_double" = yes; then
12071 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long double)
12072 See \`config.log' for more details." >&5
12073 echo "$as_me: error: cannot compute sizeof (long double)
12074 See \`config.log' for more details." >&2;}
12075 { (exit 77); exit 77; }; }
12076 else
12077 ac_cv_sizeof_long_double=0
12080 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12082 rm -f conftest.val
12084 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_double" >&5
12085 echo "${ECHO_T}$ac_cv_sizeof_long_double" >&6; }
12089 cat >>confdefs.h <<_ACEOF
12090 #define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double
12091 _ACEOF
12096 { echo "$as_me:$LINENO: checking for _Bool support" >&5
12097 echo $ECHO_N "checking for _Bool support... $ECHO_C" >&6; }
12098 have_c99_bool=no
12099 cat >conftest.$ac_ext <<_ACEOF
12100 /* confdefs.h. */
12101 _ACEOF
12102 cat confdefs.h >>conftest.$ac_ext
12103 cat >>conftest.$ac_ext <<_ACEOF
12104 /* end confdefs.h. */
12107 main ()
12109 _Bool x; x = (_Bool)0;
12111 return 0;
12113 _ACEOF
12114 rm -f conftest.$ac_objext
12115 if { (ac_try="$ac_compile"
12116 case "(($ac_try" in
12117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12118 *) ac_try_echo=$ac_try;;
12119 esac
12120 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12121 (eval "$ac_compile") 2>conftest.er1
12122 ac_status=$?
12123 grep -v '^ *+' conftest.er1 >conftest.err
12124 rm -f conftest.er1
12125 cat conftest.err >&5
12126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12127 (exit $ac_status); } && {
12128 test -z "$ac_c_werror_flag" ||
12129 test ! -s conftest.err
12130 } && test -s conftest.$ac_objext; then
12133 cat >>confdefs.h <<\_ACEOF
12134 #define HAVE_C99_BOOL 1
12135 _ACEOF
12137 have_c99_bool=yes
12139 else
12140 echo "$as_me: failed program was:" >&5
12141 sed 's/^/| /' conftest.$ac_ext >&5
12146 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12147 { echo "$as_me:$LINENO: result: $have_c99_bool" >&5
12148 echo "${ECHO_T}$have_c99_bool" >&6; }
12149 if test "$have_c99_bool" = yes ; then
12150 { echo "$as_me:$LINENO: checking for _Bool" >&5
12151 echo $ECHO_N "checking for _Bool... $ECHO_C" >&6; }
12152 if test "${ac_cv_type__Bool+set}" = set; then
12153 echo $ECHO_N "(cached) $ECHO_C" >&6
12154 else
12155 cat >conftest.$ac_ext <<_ACEOF
12156 /* confdefs.h. */
12157 _ACEOF
12158 cat confdefs.h >>conftest.$ac_ext
12159 cat >>conftest.$ac_ext <<_ACEOF
12160 /* end confdefs.h. */
12161 $ac_includes_default
12162 typedef _Bool ac__type_new_;
12164 main ()
12166 if ((ac__type_new_ *) 0)
12167 return 0;
12168 if (sizeof (ac__type_new_))
12169 return 0;
12171 return 0;
12173 _ACEOF
12174 rm -f conftest.$ac_objext
12175 if { (ac_try="$ac_compile"
12176 case "(($ac_try" in
12177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12178 *) ac_try_echo=$ac_try;;
12179 esac
12180 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12181 (eval "$ac_compile") 2>conftest.er1
12182 ac_status=$?
12183 grep -v '^ *+' conftest.er1 >conftest.err
12184 rm -f conftest.er1
12185 cat conftest.err >&5
12186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12187 (exit $ac_status); } && {
12188 test -z "$ac_c_werror_flag" ||
12189 test ! -s conftest.err
12190 } && test -s conftest.$ac_objext; then
12191 ac_cv_type__Bool=yes
12192 else
12193 echo "$as_me: failed program was:" >&5
12194 sed 's/^/| /' conftest.$ac_ext >&5
12196 ac_cv_type__Bool=no
12199 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12201 { echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5
12202 echo "${ECHO_T}$ac_cv_type__Bool" >&6; }
12204 # The cast to long int works around a bug in the HP C Compiler
12205 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12206 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12207 # This bug is HP SR number 8606223364.
12208 { echo "$as_me:$LINENO: checking size of _Bool" >&5
12209 echo $ECHO_N "checking size of _Bool... $ECHO_C" >&6; }
12210 if test "${ac_cv_sizeof__Bool+set}" = set; then
12211 echo $ECHO_N "(cached) $ECHO_C" >&6
12212 else
12213 if test "$cross_compiling" = yes; then
12214 # Depending upon the size, compute the lo and hi bounds.
12215 cat >conftest.$ac_ext <<_ACEOF
12216 /* confdefs.h. */
12217 _ACEOF
12218 cat confdefs.h >>conftest.$ac_ext
12219 cat >>conftest.$ac_ext <<_ACEOF
12220 /* end confdefs.h. */
12221 $ac_includes_default
12222 typedef _Bool ac__type_sizeof_;
12224 main ()
12226 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
12227 test_array [0] = 0
12230 return 0;
12232 _ACEOF
12233 rm -f conftest.$ac_objext
12234 if { (ac_try="$ac_compile"
12235 case "(($ac_try" in
12236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12237 *) ac_try_echo=$ac_try;;
12238 esac
12239 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12240 (eval "$ac_compile") 2>conftest.er1
12241 ac_status=$?
12242 grep -v '^ *+' conftest.er1 >conftest.err
12243 rm -f conftest.er1
12244 cat conftest.err >&5
12245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12246 (exit $ac_status); } && {
12247 test -z "$ac_c_werror_flag" ||
12248 test ! -s conftest.err
12249 } && test -s conftest.$ac_objext; then
12250 ac_lo=0 ac_mid=0
12251 while :; do
12252 cat >conftest.$ac_ext <<_ACEOF
12253 /* confdefs.h. */
12254 _ACEOF
12255 cat confdefs.h >>conftest.$ac_ext
12256 cat >>conftest.$ac_ext <<_ACEOF
12257 /* end confdefs.h. */
12258 $ac_includes_default
12259 typedef _Bool ac__type_sizeof_;
12261 main ()
12263 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
12264 test_array [0] = 0
12267 return 0;
12269 _ACEOF
12270 rm -f conftest.$ac_objext
12271 if { (ac_try="$ac_compile"
12272 case "(($ac_try" in
12273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12274 *) ac_try_echo=$ac_try;;
12275 esac
12276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12277 (eval "$ac_compile") 2>conftest.er1
12278 ac_status=$?
12279 grep -v '^ *+' conftest.er1 >conftest.err
12280 rm -f conftest.er1
12281 cat conftest.err >&5
12282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12283 (exit $ac_status); } && {
12284 test -z "$ac_c_werror_flag" ||
12285 test ! -s conftest.err
12286 } && test -s conftest.$ac_objext; then
12287 ac_hi=$ac_mid; break
12288 else
12289 echo "$as_me: failed program was:" >&5
12290 sed 's/^/| /' conftest.$ac_ext >&5
12292 ac_lo=`expr $ac_mid + 1`
12293 if test $ac_lo -le $ac_mid; then
12294 ac_lo= ac_hi=
12295 break
12297 ac_mid=`expr 2 '*' $ac_mid + 1`
12300 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12301 done
12302 else
12303 echo "$as_me: failed program was:" >&5
12304 sed 's/^/| /' conftest.$ac_ext >&5
12306 cat >conftest.$ac_ext <<_ACEOF
12307 /* confdefs.h. */
12308 _ACEOF
12309 cat confdefs.h >>conftest.$ac_ext
12310 cat >>conftest.$ac_ext <<_ACEOF
12311 /* end confdefs.h. */
12312 $ac_includes_default
12313 typedef _Bool ac__type_sizeof_;
12315 main ()
12317 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
12318 test_array [0] = 0
12321 return 0;
12323 _ACEOF
12324 rm -f conftest.$ac_objext
12325 if { (ac_try="$ac_compile"
12326 case "(($ac_try" in
12327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12328 *) ac_try_echo=$ac_try;;
12329 esac
12330 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12331 (eval "$ac_compile") 2>conftest.er1
12332 ac_status=$?
12333 grep -v '^ *+' conftest.er1 >conftest.err
12334 rm -f conftest.er1
12335 cat conftest.err >&5
12336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12337 (exit $ac_status); } && {
12338 test -z "$ac_c_werror_flag" ||
12339 test ! -s conftest.err
12340 } && test -s conftest.$ac_objext; then
12341 ac_hi=-1 ac_mid=-1
12342 while :; do
12343 cat >conftest.$ac_ext <<_ACEOF
12344 /* confdefs.h. */
12345 _ACEOF
12346 cat confdefs.h >>conftest.$ac_ext
12347 cat >>conftest.$ac_ext <<_ACEOF
12348 /* end confdefs.h. */
12349 $ac_includes_default
12350 typedef _Bool ac__type_sizeof_;
12352 main ()
12354 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
12355 test_array [0] = 0
12358 return 0;
12360 _ACEOF
12361 rm -f conftest.$ac_objext
12362 if { (ac_try="$ac_compile"
12363 case "(($ac_try" in
12364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12365 *) ac_try_echo=$ac_try;;
12366 esac
12367 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12368 (eval "$ac_compile") 2>conftest.er1
12369 ac_status=$?
12370 grep -v '^ *+' conftest.er1 >conftest.err
12371 rm -f conftest.er1
12372 cat conftest.err >&5
12373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12374 (exit $ac_status); } && {
12375 test -z "$ac_c_werror_flag" ||
12376 test ! -s conftest.err
12377 } && test -s conftest.$ac_objext; then
12378 ac_lo=$ac_mid; break
12379 else
12380 echo "$as_me: failed program was:" >&5
12381 sed 's/^/| /' conftest.$ac_ext >&5
12383 ac_hi=`expr '(' $ac_mid ')' - 1`
12384 if test $ac_mid -le $ac_hi; then
12385 ac_lo= ac_hi=
12386 break
12388 ac_mid=`expr 2 '*' $ac_mid`
12391 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12392 done
12393 else
12394 echo "$as_me: failed program was:" >&5
12395 sed 's/^/| /' conftest.$ac_ext >&5
12397 ac_lo= ac_hi=
12400 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12403 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12404 # Binary search between lo and hi bounds.
12405 while test "x$ac_lo" != "x$ac_hi"; do
12406 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12407 cat >conftest.$ac_ext <<_ACEOF
12408 /* confdefs.h. */
12409 _ACEOF
12410 cat confdefs.h >>conftest.$ac_ext
12411 cat >>conftest.$ac_ext <<_ACEOF
12412 /* end confdefs.h. */
12413 $ac_includes_default
12414 typedef _Bool ac__type_sizeof_;
12416 main ()
12418 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
12419 test_array [0] = 0
12422 return 0;
12424 _ACEOF
12425 rm -f conftest.$ac_objext
12426 if { (ac_try="$ac_compile"
12427 case "(($ac_try" in
12428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12429 *) ac_try_echo=$ac_try;;
12430 esac
12431 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12432 (eval "$ac_compile") 2>conftest.er1
12433 ac_status=$?
12434 grep -v '^ *+' conftest.er1 >conftest.err
12435 rm -f conftest.er1
12436 cat conftest.err >&5
12437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12438 (exit $ac_status); } && {
12439 test -z "$ac_c_werror_flag" ||
12440 test ! -s conftest.err
12441 } && test -s conftest.$ac_objext; then
12442 ac_hi=$ac_mid
12443 else
12444 echo "$as_me: failed program was:" >&5
12445 sed 's/^/| /' conftest.$ac_ext >&5
12447 ac_lo=`expr '(' $ac_mid ')' + 1`
12450 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12451 done
12452 case $ac_lo in
12453 ?*) ac_cv_sizeof__Bool=$ac_lo;;
12454 '') if test "$ac_cv_type__Bool" = yes; then
12455 { { echo "$as_me:$LINENO: error: cannot compute sizeof (_Bool)
12456 See \`config.log' for more details." >&5
12457 echo "$as_me: error: cannot compute sizeof (_Bool)
12458 See \`config.log' for more details." >&2;}
12459 { (exit 77); exit 77; }; }
12460 else
12461 ac_cv_sizeof__Bool=0
12462 fi ;;
12463 esac
12464 else
12465 cat >conftest.$ac_ext <<_ACEOF
12466 /* confdefs.h. */
12467 _ACEOF
12468 cat confdefs.h >>conftest.$ac_ext
12469 cat >>conftest.$ac_ext <<_ACEOF
12470 /* end confdefs.h. */
12471 $ac_includes_default
12472 typedef _Bool ac__type_sizeof_;
12473 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
12474 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
12475 #include <stdio.h>
12476 #include <stdlib.h>
12478 main ()
12481 FILE *f = fopen ("conftest.val", "w");
12482 if (! f)
12483 return 1;
12484 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
12486 long int i = longval ();
12487 if (i != ((long int) (sizeof (ac__type_sizeof_))))
12488 return 1;
12489 fprintf (f, "%ld\n", i);
12491 else
12493 unsigned long int i = ulongval ();
12494 if (i != ((long int) (sizeof (ac__type_sizeof_))))
12495 return 1;
12496 fprintf (f, "%lu\n", i);
12498 return ferror (f) || fclose (f) != 0;
12501 return 0;
12503 _ACEOF
12504 rm -f conftest$ac_exeext
12505 if { (ac_try="$ac_link"
12506 case "(($ac_try" in
12507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12508 *) ac_try_echo=$ac_try;;
12509 esac
12510 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12511 (eval "$ac_link") 2>&5
12512 ac_status=$?
12513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12514 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12515 { (case "(($ac_try" in
12516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12517 *) ac_try_echo=$ac_try;;
12518 esac
12519 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12520 (eval "$ac_try") 2>&5
12521 ac_status=$?
12522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12523 (exit $ac_status); }; }; then
12524 ac_cv_sizeof__Bool=`cat conftest.val`
12525 else
12526 echo "$as_me: program exited with status $ac_status" >&5
12527 echo "$as_me: failed program was:" >&5
12528 sed 's/^/| /' conftest.$ac_ext >&5
12530 ( exit $ac_status )
12531 if test "$ac_cv_type__Bool" = yes; then
12532 { { echo "$as_me:$LINENO: error: cannot compute sizeof (_Bool)
12533 See \`config.log' for more details." >&5
12534 echo "$as_me: error: cannot compute sizeof (_Bool)
12535 See \`config.log' for more details." >&2;}
12536 { (exit 77); exit 77; }; }
12537 else
12538 ac_cv_sizeof__Bool=0
12541 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12543 rm -f conftest.val
12545 { echo "$as_me:$LINENO: result: $ac_cv_sizeof__Bool" >&5
12546 echo "${ECHO_T}$ac_cv_sizeof__Bool" >&6; }
12550 cat >>confdefs.h <<_ACEOF
12551 #define SIZEOF__BOOL $ac_cv_sizeof__Bool
12552 _ACEOF
12557 { echo "$as_me:$LINENO: checking for uintptr_t" >&5
12558 echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6; }
12559 if test "${ac_cv_type_uintptr_t+set}" = set; then
12560 echo $ECHO_N "(cached) $ECHO_C" >&6
12561 else
12562 cat >conftest.$ac_ext <<_ACEOF
12563 /* confdefs.h. */
12564 _ACEOF
12565 cat confdefs.h >>conftest.$ac_ext
12566 cat >>conftest.$ac_ext <<_ACEOF
12567 /* end confdefs.h. */
12568 #ifdef HAVE_STDINT_H
12569 #include <stdint.h>
12570 #endif
12572 typedef uintptr_t ac__type_new_;
12574 main ()
12576 if ((ac__type_new_ *) 0)
12577 return 0;
12578 if (sizeof (ac__type_new_))
12579 return 0;
12581 return 0;
12583 _ACEOF
12584 rm -f conftest.$ac_objext
12585 if { (ac_try="$ac_compile"
12586 case "(($ac_try" in
12587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12588 *) ac_try_echo=$ac_try;;
12589 esac
12590 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12591 (eval "$ac_compile") 2>conftest.er1
12592 ac_status=$?
12593 grep -v '^ *+' conftest.er1 >conftest.err
12594 rm -f conftest.er1
12595 cat conftest.err >&5
12596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12597 (exit $ac_status); } && {
12598 test -z "$ac_c_werror_flag" ||
12599 test ! -s conftest.err
12600 } && test -s conftest.$ac_objext; then
12601 ac_cv_type_uintptr_t=yes
12602 else
12603 echo "$as_me: failed program was:" >&5
12604 sed 's/^/| /' conftest.$ac_ext >&5
12606 ac_cv_type_uintptr_t=no
12609 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12611 { echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
12612 echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6; }
12613 if test $ac_cv_type_uintptr_t = yes; then
12615 cat >>confdefs.h <<_ACEOF
12616 #define HAVE_UINTPTR_T 1
12617 _ACEOF
12619 { echo "$as_me:$LINENO: checking for uintptr_t" >&5
12620 echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6; }
12621 if test "${ac_cv_type_uintptr_t+set}" = set; then
12622 echo $ECHO_N "(cached) $ECHO_C" >&6
12623 else
12624 cat >conftest.$ac_ext <<_ACEOF
12625 /* confdefs.h. */
12626 _ACEOF
12627 cat confdefs.h >>conftest.$ac_ext
12628 cat >>conftest.$ac_ext <<_ACEOF
12629 /* end confdefs.h. */
12630 $ac_includes_default
12631 typedef uintptr_t ac__type_new_;
12633 main ()
12635 if ((ac__type_new_ *) 0)
12636 return 0;
12637 if (sizeof (ac__type_new_))
12638 return 0;
12640 return 0;
12642 _ACEOF
12643 rm -f conftest.$ac_objext
12644 if { (ac_try="$ac_compile"
12645 case "(($ac_try" in
12646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12647 *) ac_try_echo=$ac_try;;
12648 esac
12649 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12650 (eval "$ac_compile") 2>conftest.er1
12651 ac_status=$?
12652 grep -v '^ *+' conftest.er1 >conftest.err
12653 rm -f conftest.er1
12654 cat conftest.err >&5
12655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12656 (exit $ac_status); } && {
12657 test -z "$ac_c_werror_flag" ||
12658 test ! -s conftest.err
12659 } && test -s conftest.$ac_objext; then
12660 ac_cv_type_uintptr_t=yes
12661 else
12662 echo "$as_me: failed program was:" >&5
12663 sed 's/^/| /' conftest.$ac_ext >&5
12665 ac_cv_type_uintptr_t=no
12668 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12670 { echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
12671 echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6; }
12673 # The cast to long int works around a bug in the HP C Compiler
12674 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12675 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12676 # This bug is HP SR number 8606223364.
12677 { echo "$as_me:$LINENO: checking size of uintptr_t" >&5
12678 echo $ECHO_N "checking size of uintptr_t... $ECHO_C" >&6; }
12679 if test "${ac_cv_sizeof_uintptr_t+set}" = set; then
12680 echo $ECHO_N "(cached) $ECHO_C" >&6
12681 else
12682 if test "$cross_compiling" = yes; then
12683 # Depending upon the size, compute the lo and hi bounds.
12684 cat >conftest.$ac_ext <<_ACEOF
12685 /* confdefs.h. */
12686 _ACEOF
12687 cat confdefs.h >>conftest.$ac_ext
12688 cat >>conftest.$ac_ext <<_ACEOF
12689 /* end confdefs.h. */
12690 $ac_includes_default
12691 typedef uintptr_t ac__type_sizeof_;
12693 main ()
12695 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
12696 test_array [0] = 0
12699 return 0;
12701 _ACEOF
12702 rm -f conftest.$ac_objext
12703 if { (ac_try="$ac_compile"
12704 case "(($ac_try" in
12705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12706 *) ac_try_echo=$ac_try;;
12707 esac
12708 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12709 (eval "$ac_compile") 2>conftest.er1
12710 ac_status=$?
12711 grep -v '^ *+' conftest.er1 >conftest.err
12712 rm -f conftest.er1
12713 cat conftest.err >&5
12714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12715 (exit $ac_status); } && {
12716 test -z "$ac_c_werror_flag" ||
12717 test ! -s conftest.err
12718 } && test -s conftest.$ac_objext; then
12719 ac_lo=0 ac_mid=0
12720 while :; do
12721 cat >conftest.$ac_ext <<_ACEOF
12722 /* confdefs.h. */
12723 _ACEOF
12724 cat confdefs.h >>conftest.$ac_ext
12725 cat >>conftest.$ac_ext <<_ACEOF
12726 /* end confdefs.h. */
12727 $ac_includes_default
12728 typedef uintptr_t ac__type_sizeof_;
12730 main ()
12732 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
12733 test_array [0] = 0
12736 return 0;
12738 _ACEOF
12739 rm -f conftest.$ac_objext
12740 if { (ac_try="$ac_compile"
12741 case "(($ac_try" in
12742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12743 *) ac_try_echo=$ac_try;;
12744 esac
12745 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12746 (eval "$ac_compile") 2>conftest.er1
12747 ac_status=$?
12748 grep -v '^ *+' conftest.er1 >conftest.err
12749 rm -f conftest.er1
12750 cat conftest.err >&5
12751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12752 (exit $ac_status); } && {
12753 test -z "$ac_c_werror_flag" ||
12754 test ! -s conftest.err
12755 } && test -s conftest.$ac_objext; then
12756 ac_hi=$ac_mid; break
12757 else
12758 echo "$as_me: failed program was:" >&5
12759 sed 's/^/| /' conftest.$ac_ext >&5
12761 ac_lo=`expr $ac_mid + 1`
12762 if test $ac_lo -le $ac_mid; then
12763 ac_lo= ac_hi=
12764 break
12766 ac_mid=`expr 2 '*' $ac_mid + 1`
12769 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12770 done
12771 else
12772 echo "$as_me: failed program was:" >&5
12773 sed 's/^/| /' conftest.$ac_ext >&5
12775 cat >conftest.$ac_ext <<_ACEOF
12776 /* confdefs.h. */
12777 _ACEOF
12778 cat confdefs.h >>conftest.$ac_ext
12779 cat >>conftest.$ac_ext <<_ACEOF
12780 /* end confdefs.h. */
12781 $ac_includes_default
12782 typedef uintptr_t ac__type_sizeof_;
12784 main ()
12786 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
12787 test_array [0] = 0
12790 return 0;
12792 _ACEOF
12793 rm -f conftest.$ac_objext
12794 if { (ac_try="$ac_compile"
12795 case "(($ac_try" in
12796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12797 *) ac_try_echo=$ac_try;;
12798 esac
12799 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12800 (eval "$ac_compile") 2>conftest.er1
12801 ac_status=$?
12802 grep -v '^ *+' conftest.er1 >conftest.err
12803 rm -f conftest.er1
12804 cat conftest.err >&5
12805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12806 (exit $ac_status); } && {
12807 test -z "$ac_c_werror_flag" ||
12808 test ! -s conftest.err
12809 } && test -s conftest.$ac_objext; then
12810 ac_hi=-1 ac_mid=-1
12811 while :; do
12812 cat >conftest.$ac_ext <<_ACEOF
12813 /* confdefs.h. */
12814 _ACEOF
12815 cat confdefs.h >>conftest.$ac_ext
12816 cat >>conftest.$ac_ext <<_ACEOF
12817 /* end confdefs.h. */
12818 $ac_includes_default
12819 typedef uintptr_t ac__type_sizeof_;
12821 main ()
12823 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
12824 test_array [0] = 0
12827 return 0;
12829 _ACEOF
12830 rm -f conftest.$ac_objext
12831 if { (ac_try="$ac_compile"
12832 case "(($ac_try" in
12833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12834 *) ac_try_echo=$ac_try;;
12835 esac
12836 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12837 (eval "$ac_compile") 2>conftest.er1
12838 ac_status=$?
12839 grep -v '^ *+' conftest.er1 >conftest.err
12840 rm -f conftest.er1
12841 cat conftest.err >&5
12842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12843 (exit $ac_status); } && {
12844 test -z "$ac_c_werror_flag" ||
12845 test ! -s conftest.err
12846 } && test -s conftest.$ac_objext; then
12847 ac_lo=$ac_mid; break
12848 else
12849 echo "$as_me: failed program was:" >&5
12850 sed 's/^/| /' conftest.$ac_ext >&5
12852 ac_hi=`expr '(' $ac_mid ')' - 1`
12853 if test $ac_mid -le $ac_hi; then
12854 ac_lo= ac_hi=
12855 break
12857 ac_mid=`expr 2 '*' $ac_mid`
12860 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12861 done
12862 else
12863 echo "$as_me: failed program was:" >&5
12864 sed 's/^/| /' conftest.$ac_ext >&5
12866 ac_lo= ac_hi=
12869 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12872 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12873 # Binary search between lo and hi bounds.
12874 while test "x$ac_lo" != "x$ac_hi"; do
12875 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12876 cat >conftest.$ac_ext <<_ACEOF
12877 /* confdefs.h. */
12878 _ACEOF
12879 cat confdefs.h >>conftest.$ac_ext
12880 cat >>conftest.$ac_ext <<_ACEOF
12881 /* end confdefs.h. */
12882 $ac_includes_default
12883 typedef uintptr_t ac__type_sizeof_;
12885 main ()
12887 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
12888 test_array [0] = 0
12891 return 0;
12893 _ACEOF
12894 rm -f conftest.$ac_objext
12895 if { (ac_try="$ac_compile"
12896 case "(($ac_try" in
12897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12898 *) ac_try_echo=$ac_try;;
12899 esac
12900 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12901 (eval "$ac_compile") 2>conftest.er1
12902 ac_status=$?
12903 grep -v '^ *+' conftest.er1 >conftest.err
12904 rm -f conftest.er1
12905 cat conftest.err >&5
12906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12907 (exit $ac_status); } && {
12908 test -z "$ac_c_werror_flag" ||
12909 test ! -s conftest.err
12910 } && test -s conftest.$ac_objext; then
12911 ac_hi=$ac_mid
12912 else
12913 echo "$as_me: failed program was:" >&5
12914 sed 's/^/| /' conftest.$ac_ext >&5
12916 ac_lo=`expr '(' $ac_mid ')' + 1`
12919 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12920 done
12921 case $ac_lo in
12922 ?*) ac_cv_sizeof_uintptr_t=$ac_lo;;
12923 '') if test "$ac_cv_type_uintptr_t" = yes; then
12924 { { echo "$as_me:$LINENO: error: cannot compute sizeof (uintptr_t)
12925 See \`config.log' for more details." >&5
12926 echo "$as_me: error: cannot compute sizeof (uintptr_t)
12927 See \`config.log' for more details." >&2;}
12928 { (exit 77); exit 77; }; }
12929 else
12930 ac_cv_sizeof_uintptr_t=0
12931 fi ;;
12932 esac
12933 else
12934 cat >conftest.$ac_ext <<_ACEOF
12935 /* confdefs.h. */
12936 _ACEOF
12937 cat confdefs.h >>conftest.$ac_ext
12938 cat >>conftest.$ac_ext <<_ACEOF
12939 /* end confdefs.h. */
12940 $ac_includes_default
12941 typedef uintptr_t ac__type_sizeof_;
12942 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
12943 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
12944 #include <stdio.h>
12945 #include <stdlib.h>
12947 main ()
12950 FILE *f = fopen ("conftest.val", "w");
12951 if (! f)
12952 return 1;
12953 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
12955 long int i = longval ();
12956 if (i != ((long int) (sizeof (ac__type_sizeof_))))
12957 return 1;
12958 fprintf (f, "%ld\n", i);
12960 else
12962 unsigned long int i = ulongval ();
12963 if (i != ((long int) (sizeof (ac__type_sizeof_))))
12964 return 1;
12965 fprintf (f, "%lu\n", i);
12967 return ferror (f) || fclose (f) != 0;
12970 return 0;
12972 _ACEOF
12973 rm -f conftest$ac_exeext
12974 if { (ac_try="$ac_link"
12975 case "(($ac_try" in
12976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12977 *) ac_try_echo=$ac_try;;
12978 esac
12979 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12980 (eval "$ac_link") 2>&5
12981 ac_status=$?
12982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12983 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12984 { (case "(($ac_try" in
12985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12986 *) ac_try_echo=$ac_try;;
12987 esac
12988 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12989 (eval "$ac_try") 2>&5
12990 ac_status=$?
12991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12992 (exit $ac_status); }; }; then
12993 ac_cv_sizeof_uintptr_t=`cat conftest.val`
12994 else
12995 echo "$as_me: program exited with status $ac_status" >&5
12996 echo "$as_me: failed program was:" >&5
12997 sed 's/^/| /' conftest.$ac_ext >&5
12999 ( exit $ac_status )
13000 if test "$ac_cv_type_uintptr_t" = yes; then
13001 { { echo "$as_me:$LINENO: error: cannot compute sizeof (uintptr_t)
13002 See \`config.log' for more details." >&5
13003 echo "$as_me: error: cannot compute sizeof (uintptr_t)
13004 See \`config.log' for more details." >&2;}
13005 { (exit 77); exit 77; }; }
13006 else
13007 ac_cv_sizeof_uintptr_t=0
13010 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13012 rm -f conftest.val
13014 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_uintptr_t" >&5
13015 echo "${ECHO_T}$ac_cv_sizeof_uintptr_t" >&6; }
13019 cat >>confdefs.h <<_ACEOF
13020 #define SIZEOF_UINTPTR_T $ac_cv_sizeof_uintptr_t
13021 _ACEOF
13027 { echo "$as_me:$LINENO: checking for off_t" >&5
13028 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
13029 if test "${ac_cv_type_off_t+set}" = set; then
13030 echo $ECHO_N "(cached) $ECHO_C" >&6
13031 else
13032 cat >conftest.$ac_ext <<_ACEOF
13033 /* confdefs.h. */
13034 _ACEOF
13035 cat confdefs.h >>conftest.$ac_ext
13036 cat >>conftest.$ac_ext <<_ACEOF
13037 /* end confdefs.h. */
13039 #ifdef HAVE_SYS_TYPES_H
13040 #include <sys/types.h>
13041 #endif
13044 typedef off_t ac__type_new_;
13046 main ()
13048 if ((ac__type_new_ *) 0)
13049 return 0;
13050 if (sizeof (ac__type_new_))
13051 return 0;
13053 return 0;
13055 _ACEOF
13056 rm -f conftest.$ac_objext
13057 if { (ac_try="$ac_compile"
13058 case "(($ac_try" in
13059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13060 *) ac_try_echo=$ac_try;;
13061 esac
13062 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13063 (eval "$ac_compile") 2>conftest.er1
13064 ac_status=$?
13065 grep -v '^ *+' conftest.er1 >conftest.err
13066 rm -f conftest.er1
13067 cat conftest.err >&5
13068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13069 (exit $ac_status); } && {
13070 test -z "$ac_c_werror_flag" ||
13071 test ! -s conftest.err
13072 } && test -s conftest.$ac_objext; then
13073 ac_cv_type_off_t=yes
13074 else
13075 echo "$as_me: failed program was:" >&5
13076 sed 's/^/| /' conftest.$ac_ext >&5
13078 ac_cv_type_off_t=no
13081 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13083 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
13084 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
13086 # The cast to long int works around a bug in the HP C Compiler
13087 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13088 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13089 # This bug is HP SR number 8606223364.
13090 { echo "$as_me:$LINENO: checking size of off_t" >&5
13091 echo $ECHO_N "checking size of off_t... $ECHO_C" >&6; }
13092 if test "${ac_cv_sizeof_off_t+set}" = set; then
13093 echo $ECHO_N "(cached) $ECHO_C" >&6
13094 else
13095 if test "$cross_compiling" = yes; then
13096 # Depending upon the size, compute the lo and hi bounds.
13097 cat >conftest.$ac_ext <<_ACEOF
13098 /* confdefs.h. */
13099 _ACEOF
13100 cat confdefs.h >>conftest.$ac_ext
13101 cat >>conftest.$ac_ext <<_ACEOF
13102 /* end confdefs.h. */
13104 #ifdef HAVE_SYS_TYPES_H
13105 #include <sys/types.h>
13106 #endif
13109 typedef off_t ac__type_sizeof_;
13111 main ()
13113 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
13114 test_array [0] = 0
13117 return 0;
13119 _ACEOF
13120 rm -f conftest.$ac_objext
13121 if { (ac_try="$ac_compile"
13122 case "(($ac_try" in
13123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13124 *) ac_try_echo=$ac_try;;
13125 esac
13126 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13127 (eval "$ac_compile") 2>conftest.er1
13128 ac_status=$?
13129 grep -v '^ *+' conftest.er1 >conftest.err
13130 rm -f conftest.er1
13131 cat conftest.err >&5
13132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13133 (exit $ac_status); } && {
13134 test -z "$ac_c_werror_flag" ||
13135 test ! -s conftest.err
13136 } && test -s conftest.$ac_objext; then
13137 ac_lo=0 ac_mid=0
13138 while :; do
13139 cat >conftest.$ac_ext <<_ACEOF
13140 /* confdefs.h. */
13141 _ACEOF
13142 cat confdefs.h >>conftest.$ac_ext
13143 cat >>conftest.$ac_ext <<_ACEOF
13144 /* end confdefs.h. */
13146 #ifdef HAVE_SYS_TYPES_H
13147 #include <sys/types.h>
13148 #endif
13151 typedef off_t ac__type_sizeof_;
13153 main ()
13155 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
13156 test_array [0] = 0
13159 return 0;
13161 _ACEOF
13162 rm -f conftest.$ac_objext
13163 if { (ac_try="$ac_compile"
13164 case "(($ac_try" in
13165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13166 *) ac_try_echo=$ac_try;;
13167 esac
13168 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13169 (eval "$ac_compile") 2>conftest.er1
13170 ac_status=$?
13171 grep -v '^ *+' conftest.er1 >conftest.err
13172 rm -f conftest.er1
13173 cat conftest.err >&5
13174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13175 (exit $ac_status); } && {
13176 test -z "$ac_c_werror_flag" ||
13177 test ! -s conftest.err
13178 } && test -s conftest.$ac_objext; then
13179 ac_hi=$ac_mid; break
13180 else
13181 echo "$as_me: failed program was:" >&5
13182 sed 's/^/| /' conftest.$ac_ext >&5
13184 ac_lo=`expr $ac_mid + 1`
13185 if test $ac_lo -le $ac_mid; then
13186 ac_lo= ac_hi=
13187 break
13189 ac_mid=`expr 2 '*' $ac_mid + 1`
13192 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13193 done
13194 else
13195 echo "$as_me: failed program was:" >&5
13196 sed 's/^/| /' conftest.$ac_ext >&5
13198 cat >conftest.$ac_ext <<_ACEOF
13199 /* confdefs.h. */
13200 _ACEOF
13201 cat confdefs.h >>conftest.$ac_ext
13202 cat >>conftest.$ac_ext <<_ACEOF
13203 /* end confdefs.h. */
13205 #ifdef HAVE_SYS_TYPES_H
13206 #include <sys/types.h>
13207 #endif
13210 typedef off_t ac__type_sizeof_;
13212 main ()
13214 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
13215 test_array [0] = 0
13218 return 0;
13220 _ACEOF
13221 rm -f conftest.$ac_objext
13222 if { (ac_try="$ac_compile"
13223 case "(($ac_try" in
13224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13225 *) ac_try_echo=$ac_try;;
13226 esac
13227 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13228 (eval "$ac_compile") 2>conftest.er1
13229 ac_status=$?
13230 grep -v '^ *+' conftest.er1 >conftest.err
13231 rm -f conftest.er1
13232 cat conftest.err >&5
13233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13234 (exit $ac_status); } && {
13235 test -z "$ac_c_werror_flag" ||
13236 test ! -s conftest.err
13237 } && test -s conftest.$ac_objext; then
13238 ac_hi=-1 ac_mid=-1
13239 while :; do
13240 cat >conftest.$ac_ext <<_ACEOF
13241 /* confdefs.h. */
13242 _ACEOF
13243 cat confdefs.h >>conftest.$ac_ext
13244 cat >>conftest.$ac_ext <<_ACEOF
13245 /* end confdefs.h. */
13247 #ifdef HAVE_SYS_TYPES_H
13248 #include <sys/types.h>
13249 #endif
13252 typedef off_t ac__type_sizeof_;
13254 main ()
13256 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
13257 test_array [0] = 0
13260 return 0;
13262 _ACEOF
13263 rm -f conftest.$ac_objext
13264 if { (ac_try="$ac_compile"
13265 case "(($ac_try" in
13266 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13267 *) ac_try_echo=$ac_try;;
13268 esac
13269 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13270 (eval "$ac_compile") 2>conftest.er1
13271 ac_status=$?
13272 grep -v '^ *+' conftest.er1 >conftest.err
13273 rm -f conftest.er1
13274 cat conftest.err >&5
13275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13276 (exit $ac_status); } && {
13277 test -z "$ac_c_werror_flag" ||
13278 test ! -s conftest.err
13279 } && test -s conftest.$ac_objext; then
13280 ac_lo=$ac_mid; break
13281 else
13282 echo "$as_me: failed program was:" >&5
13283 sed 's/^/| /' conftest.$ac_ext >&5
13285 ac_hi=`expr '(' $ac_mid ')' - 1`
13286 if test $ac_mid -le $ac_hi; then
13287 ac_lo= ac_hi=
13288 break
13290 ac_mid=`expr 2 '*' $ac_mid`
13293 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13294 done
13295 else
13296 echo "$as_me: failed program was:" >&5
13297 sed 's/^/| /' conftest.$ac_ext >&5
13299 ac_lo= ac_hi=
13302 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13305 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13306 # Binary search between lo and hi bounds.
13307 while test "x$ac_lo" != "x$ac_hi"; do
13308 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13309 cat >conftest.$ac_ext <<_ACEOF
13310 /* confdefs.h. */
13311 _ACEOF
13312 cat confdefs.h >>conftest.$ac_ext
13313 cat >>conftest.$ac_ext <<_ACEOF
13314 /* end confdefs.h. */
13316 #ifdef HAVE_SYS_TYPES_H
13317 #include <sys/types.h>
13318 #endif
13321 typedef off_t ac__type_sizeof_;
13323 main ()
13325 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
13326 test_array [0] = 0
13329 return 0;
13331 _ACEOF
13332 rm -f conftest.$ac_objext
13333 if { (ac_try="$ac_compile"
13334 case "(($ac_try" in
13335 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13336 *) ac_try_echo=$ac_try;;
13337 esac
13338 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13339 (eval "$ac_compile") 2>conftest.er1
13340 ac_status=$?
13341 grep -v '^ *+' conftest.er1 >conftest.err
13342 rm -f conftest.er1
13343 cat conftest.err >&5
13344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13345 (exit $ac_status); } && {
13346 test -z "$ac_c_werror_flag" ||
13347 test ! -s conftest.err
13348 } && test -s conftest.$ac_objext; then
13349 ac_hi=$ac_mid
13350 else
13351 echo "$as_me: failed program was:" >&5
13352 sed 's/^/| /' conftest.$ac_ext >&5
13354 ac_lo=`expr '(' $ac_mid ')' + 1`
13357 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13358 done
13359 case $ac_lo in
13360 ?*) ac_cv_sizeof_off_t=$ac_lo;;
13361 '') if test "$ac_cv_type_off_t" = yes; then
13362 { { echo "$as_me:$LINENO: error: cannot compute sizeof (off_t)
13363 See \`config.log' for more details." >&5
13364 echo "$as_me: error: cannot compute sizeof (off_t)
13365 See \`config.log' for more details." >&2;}
13366 { (exit 77); exit 77; }; }
13367 else
13368 ac_cv_sizeof_off_t=0
13369 fi ;;
13370 esac
13371 else
13372 cat >conftest.$ac_ext <<_ACEOF
13373 /* confdefs.h. */
13374 _ACEOF
13375 cat confdefs.h >>conftest.$ac_ext
13376 cat >>conftest.$ac_ext <<_ACEOF
13377 /* end confdefs.h. */
13379 #ifdef HAVE_SYS_TYPES_H
13380 #include <sys/types.h>
13381 #endif
13384 typedef off_t ac__type_sizeof_;
13385 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
13386 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
13387 #include <stdio.h>
13388 #include <stdlib.h>
13390 main ()
13393 FILE *f = fopen ("conftest.val", "w");
13394 if (! f)
13395 return 1;
13396 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
13398 long int i = longval ();
13399 if (i != ((long int) (sizeof (ac__type_sizeof_))))
13400 return 1;
13401 fprintf (f, "%ld\n", i);
13403 else
13405 unsigned long int i = ulongval ();
13406 if (i != ((long int) (sizeof (ac__type_sizeof_))))
13407 return 1;
13408 fprintf (f, "%lu\n", i);
13410 return ferror (f) || fclose (f) != 0;
13413 return 0;
13415 _ACEOF
13416 rm -f conftest$ac_exeext
13417 if { (ac_try="$ac_link"
13418 case "(($ac_try" in
13419 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13420 *) ac_try_echo=$ac_try;;
13421 esac
13422 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13423 (eval "$ac_link") 2>&5
13424 ac_status=$?
13425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13426 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13427 { (case "(($ac_try" in
13428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13429 *) ac_try_echo=$ac_try;;
13430 esac
13431 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13432 (eval "$ac_try") 2>&5
13433 ac_status=$?
13434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13435 (exit $ac_status); }; }; then
13436 ac_cv_sizeof_off_t=`cat conftest.val`
13437 else
13438 echo "$as_me: program exited with status $ac_status" >&5
13439 echo "$as_me: failed program was:" >&5
13440 sed 's/^/| /' conftest.$ac_ext >&5
13442 ( exit $ac_status )
13443 if test "$ac_cv_type_off_t" = yes; then
13444 { { echo "$as_me:$LINENO: error: cannot compute sizeof (off_t)
13445 See \`config.log' for more details." >&5
13446 echo "$as_me: error: cannot compute sizeof (off_t)
13447 See \`config.log' for more details." >&2;}
13448 { (exit 77); exit 77; }; }
13449 else
13450 ac_cv_sizeof_off_t=0
13453 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13455 rm -f conftest.val
13457 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_off_t" >&5
13458 echo "${ECHO_T}$ac_cv_sizeof_off_t" >&6; }
13462 cat >>confdefs.h <<_ACEOF
13463 #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
13464 _ACEOF
13468 { echo "$as_me:$LINENO: checking whether to enable large file support" >&5
13469 echo $ECHO_N "checking whether to enable large file support... $ECHO_C" >&6; }
13470 if test "$have_long_long" = yes -a \
13471 "$ac_cv_sizeof_off_t" -gt "$ac_cv_sizeof_long" -a \
13472 "$ac_cv_sizeof_long_long" -ge "$ac_cv_sizeof_off_t"; then
13474 cat >>confdefs.h <<\_ACEOF
13475 #define HAVE_LARGEFILE_SUPPORT 1
13476 _ACEOF
13478 { echo "$as_me:$LINENO: result: yes" >&5
13479 echo "${ECHO_T}yes" >&6; }
13480 else
13481 { echo "$as_me:$LINENO: result: no" >&5
13482 echo "${ECHO_T}no" >&6; }
13485 { echo "$as_me:$LINENO: checking for time_t" >&5
13486 echo $ECHO_N "checking for time_t... $ECHO_C" >&6; }
13487 if test "${ac_cv_type_time_t+set}" = set; then
13488 echo $ECHO_N "(cached) $ECHO_C" >&6
13489 else
13490 cat >conftest.$ac_ext <<_ACEOF
13491 /* confdefs.h. */
13492 _ACEOF
13493 cat confdefs.h >>conftest.$ac_ext
13494 cat >>conftest.$ac_ext <<_ACEOF
13495 /* end confdefs.h. */
13497 #ifdef HAVE_SYS_TYPES_H
13498 #include <sys/types.h>
13499 #endif
13500 #ifdef HAVE_TIME_H
13501 #include <time.h>
13502 #endif
13505 typedef time_t ac__type_new_;
13507 main ()
13509 if ((ac__type_new_ *) 0)
13510 return 0;
13511 if (sizeof (ac__type_new_))
13512 return 0;
13514 return 0;
13516 _ACEOF
13517 rm -f conftest.$ac_objext
13518 if { (ac_try="$ac_compile"
13519 case "(($ac_try" in
13520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13521 *) ac_try_echo=$ac_try;;
13522 esac
13523 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13524 (eval "$ac_compile") 2>conftest.er1
13525 ac_status=$?
13526 grep -v '^ *+' conftest.er1 >conftest.err
13527 rm -f conftest.er1
13528 cat conftest.err >&5
13529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13530 (exit $ac_status); } && {
13531 test -z "$ac_c_werror_flag" ||
13532 test ! -s conftest.err
13533 } && test -s conftest.$ac_objext; then
13534 ac_cv_type_time_t=yes
13535 else
13536 echo "$as_me: failed program was:" >&5
13537 sed 's/^/| /' conftest.$ac_ext >&5
13539 ac_cv_type_time_t=no
13542 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13544 { echo "$as_me:$LINENO: result: $ac_cv_type_time_t" >&5
13545 echo "${ECHO_T}$ac_cv_type_time_t" >&6; }
13547 # The cast to long int works around a bug in the HP C Compiler
13548 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13549 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13550 # This bug is HP SR number 8606223364.
13551 { echo "$as_me:$LINENO: checking size of time_t" >&5
13552 echo $ECHO_N "checking size of time_t... $ECHO_C" >&6; }
13553 if test "${ac_cv_sizeof_time_t+set}" = set; then
13554 echo $ECHO_N "(cached) $ECHO_C" >&6
13555 else
13556 if test "$cross_compiling" = yes; then
13557 # Depending upon the size, compute the lo and hi bounds.
13558 cat >conftest.$ac_ext <<_ACEOF
13559 /* confdefs.h. */
13560 _ACEOF
13561 cat confdefs.h >>conftest.$ac_ext
13562 cat >>conftest.$ac_ext <<_ACEOF
13563 /* end confdefs.h. */
13565 #ifdef HAVE_SYS_TYPES_H
13566 #include <sys/types.h>
13567 #endif
13568 #ifdef HAVE_TIME_H
13569 #include <time.h>
13570 #endif
13573 typedef time_t ac__type_sizeof_;
13575 main ()
13577 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
13578 test_array [0] = 0
13581 return 0;
13583 _ACEOF
13584 rm -f conftest.$ac_objext
13585 if { (ac_try="$ac_compile"
13586 case "(($ac_try" in
13587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13588 *) ac_try_echo=$ac_try;;
13589 esac
13590 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13591 (eval "$ac_compile") 2>conftest.er1
13592 ac_status=$?
13593 grep -v '^ *+' conftest.er1 >conftest.err
13594 rm -f conftest.er1
13595 cat conftest.err >&5
13596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13597 (exit $ac_status); } && {
13598 test -z "$ac_c_werror_flag" ||
13599 test ! -s conftest.err
13600 } && test -s conftest.$ac_objext; then
13601 ac_lo=0 ac_mid=0
13602 while :; do
13603 cat >conftest.$ac_ext <<_ACEOF
13604 /* confdefs.h. */
13605 _ACEOF
13606 cat confdefs.h >>conftest.$ac_ext
13607 cat >>conftest.$ac_ext <<_ACEOF
13608 /* end confdefs.h. */
13610 #ifdef HAVE_SYS_TYPES_H
13611 #include <sys/types.h>
13612 #endif
13613 #ifdef HAVE_TIME_H
13614 #include <time.h>
13615 #endif
13618 typedef time_t ac__type_sizeof_;
13620 main ()
13622 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
13623 test_array [0] = 0
13626 return 0;
13628 _ACEOF
13629 rm -f conftest.$ac_objext
13630 if { (ac_try="$ac_compile"
13631 case "(($ac_try" in
13632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13633 *) ac_try_echo=$ac_try;;
13634 esac
13635 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13636 (eval "$ac_compile") 2>conftest.er1
13637 ac_status=$?
13638 grep -v '^ *+' conftest.er1 >conftest.err
13639 rm -f conftest.er1
13640 cat conftest.err >&5
13641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13642 (exit $ac_status); } && {
13643 test -z "$ac_c_werror_flag" ||
13644 test ! -s conftest.err
13645 } && test -s conftest.$ac_objext; then
13646 ac_hi=$ac_mid; break
13647 else
13648 echo "$as_me: failed program was:" >&5
13649 sed 's/^/| /' conftest.$ac_ext >&5
13651 ac_lo=`expr $ac_mid + 1`
13652 if test $ac_lo -le $ac_mid; then
13653 ac_lo= ac_hi=
13654 break
13656 ac_mid=`expr 2 '*' $ac_mid + 1`
13659 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13660 done
13661 else
13662 echo "$as_me: failed program was:" >&5
13663 sed 's/^/| /' conftest.$ac_ext >&5
13665 cat >conftest.$ac_ext <<_ACEOF
13666 /* confdefs.h. */
13667 _ACEOF
13668 cat confdefs.h >>conftest.$ac_ext
13669 cat >>conftest.$ac_ext <<_ACEOF
13670 /* end confdefs.h. */
13672 #ifdef HAVE_SYS_TYPES_H
13673 #include <sys/types.h>
13674 #endif
13675 #ifdef HAVE_TIME_H
13676 #include <time.h>
13677 #endif
13680 typedef time_t ac__type_sizeof_;
13682 main ()
13684 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
13685 test_array [0] = 0
13688 return 0;
13690 _ACEOF
13691 rm -f conftest.$ac_objext
13692 if { (ac_try="$ac_compile"
13693 case "(($ac_try" in
13694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13695 *) ac_try_echo=$ac_try;;
13696 esac
13697 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13698 (eval "$ac_compile") 2>conftest.er1
13699 ac_status=$?
13700 grep -v '^ *+' conftest.er1 >conftest.err
13701 rm -f conftest.er1
13702 cat conftest.err >&5
13703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13704 (exit $ac_status); } && {
13705 test -z "$ac_c_werror_flag" ||
13706 test ! -s conftest.err
13707 } && test -s conftest.$ac_objext; then
13708 ac_hi=-1 ac_mid=-1
13709 while :; do
13710 cat >conftest.$ac_ext <<_ACEOF
13711 /* confdefs.h. */
13712 _ACEOF
13713 cat confdefs.h >>conftest.$ac_ext
13714 cat >>conftest.$ac_ext <<_ACEOF
13715 /* end confdefs.h. */
13717 #ifdef HAVE_SYS_TYPES_H
13718 #include <sys/types.h>
13719 #endif
13720 #ifdef HAVE_TIME_H
13721 #include <time.h>
13722 #endif
13725 typedef time_t ac__type_sizeof_;
13727 main ()
13729 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
13730 test_array [0] = 0
13733 return 0;
13735 _ACEOF
13736 rm -f conftest.$ac_objext
13737 if { (ac_try="$ac_compile"
13738 case "(($ac_try" in
13739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13740 *) ac_try_echo=$ac_try;;
13741 esac
13742 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13743 (eval "$ac_compile") 2>conftest.er1
13744 ac_status=$?
13745 grep -v '^ *+' conftest.er1 >conftest.err
13746 rm -f conftest.er1
13747 cat conftest.err >&5
13748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13749 (exit $ac_status); } && {
13750 test -z "$ac_c_werror_flag" ||
13751 test ! -s conftest.err
13752 } && test -s conftest.$ac_objext; then
13753 ac_lo=$ac_mid; break
13754 else
13755 echo "$as_me: failed program was:" >&5
13756 sed 's/^/| /' conftest.$ac_ext >&5
13758 ac_hi=`expr '(' $ac_mid ')' - 1`
13759 if test $ac_mid -le $ac_hi; then
13760 ac_lo= ac_hi=
13761 break
13763 ac_mid=`expr 2 '*' $ac_mid`
13766 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13767 done
13768 else
13769 echo "$as_me: failed program was:" >&5
13770 sed 's/^/| /' conftest.$ac_ext >&5
13772 ac_lo= ac_hi=
13775 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13778 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13779 # Binary search between lo and hi bounds.
13780 while test "x$ac_lo" != "x$ac_hi"; do
13781 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13782 cat >conftest.$ac_ext <<_ACEOF
13783 /* confdefs.h. */
13784 _ACEOF
13785 cat confdefs.h >>conftest.$ac_ext
13786 cat >>conftest.$ac_ext <<_ACEOF
13787 /* end confdefs.h. */
13789 #ifdef HAVE_SYS_TYPES_H
13790 #include <sys/types.h>
13791 #endif
13792 #ifdef HAVE_TIME_H
13793 #include <time.h>
13794 #endif
13797 typedef time_t ac__type_sizeof_;
13799 main ()
13801 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
13802 test_array [0] = 0
13805 return 0;
13807 _ACEOF
13808 rm -f conftest.$ac_objext
13809 if { (ac_try="$ac_compile"
13810 case "(($ac_try" in
13811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13812 *) ac_try_echo=$ac_try;;
13813 esac
13814 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13815 (eval "$ac_compile") 2>conftest.er1
13816 ac_status=$?
13817 grep -v '^ *+' conftest.er1 >conftest.err
13818 rm -f conftest.er1
13819 cat conftest.err >&5
13820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13821 (exit $ac_status); } && {
13822 test -z "$ac_c_werror_flag" ||
13823 test ! -s conftest.err
13824 } && test -s conftest.$ac_objext; then
13825 ac_hi=$ac_mid
13826 else
13827 echo "$as_me: failed program was:" >&5
13828 sed 's/^/| /' conftest.$ac_ext >&5
13830 ac_lo=`expr '(' $ac_mid ')' + 1`
13833 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13834 done
13835 case $ac_lo in
13836 ?*) ac_cv_sizeof_time_t=$ac_lo;;
13837 '') if test "$ac_cv_type_time_t" = yes; then
13838 { { echo "$as_me:$LINENO: error: cannot compute sizeof (time_t)
13839 See \`config.log' for more details." >&5
13840 echo "$as_me: error: cannot compute sizeof (time_t)
13841 See \`config.log' for more details." >&2;}
13842 { (exit 77); exit 77; }; }
13843 else
13844 ac_cv_sizeof_time_t=0
13845 fi ;;
13846 esac
13847 else
13848 cat >conftest.$ac_ext <<_ACEOF
13849 /* confdefs.h. */
13850 _ACEOF
13851 cat confdefs.h >>conftest.$ac_ext
13852 cat >>conftest.$ac_ext <<_ACEOF
13853 /* end confdefs.h. */
13855 #ifdef HAVE_SYS_TYPES_H
13856 #include <sys/types.h>
13857 #endif
13858 #ifdef HAVE_TIME_H
13859 #include <time.h>
13860 #endif
13863 typedef time_t ac__type_sizeof_;
13864 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
13865 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
13866 #include <stdio.h>
13867 #include <stdlib.h>
13869 main ()
13872 FILE *f = fopen ("conftest.val", "w");
13873 if (! f)
13874 return 1;
13875 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
13877 long int i = longval ();
13878 if (i != ((long int) (sizeof (ac__type_sizeof_))))
13879 return 1;
13880 fprintf (f, "%ld\n", i);
13882 else
13884 unsigned long int i = ulongval ();
13885 if (i != ((long int) (sizeof (ac__type_sizeof_))))
13886 return 1;
13887 fprintf (f, "%lu\n", i);
13889 return ferror (f) || fclose (f) != 0;
13892 return 0;
13894 _ACEOF
13895 rm -f conftest$ac_exeext
13896 if { (ac_try="$ac_link"
13897 case "(($ac_try" in
13898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13899 *) ac_try_echo=$ac_try;;
13900 esac
13901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13902 (eval "$ac_link") 2>&5
13903 ac_status=$?
13904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13905 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13906 { (case "(($ac_try" in
13907 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13908 *) ac_try_echo=$ac_try;;
13909 esac
13910 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13911 (eval "$ac_try") 2>&5
13912 ac_status=$?
13913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13914 (exit $ac_status); }; }; then
13915 ac_cv_sizeof_time_t=`cat conftest.val`
13916 else
13917 echo "$as_me: program exited with status $ac_status" >&5
13918 echo "$as_me: failed program was:" >&5
13919 sed 's/^/| /' conftest.$ac_ext >&5
13921 ( exit $ac_status )
13922 if test "$ac_cv_type_time_t" = yes; then
13923 { { echo "$as_me:$LINENO: error: cannot compute sizeof (time_t)
13924 See \`config.log' for more details." >&5
13925 echo "$as_me: error: cannot compute sizeof (time_t)
13926 See \`config.log' for more details." >&2;}
13927 { (exit 77); exit 77; }; }
13928 else
13929 ac_cv_sizeof_time_t=0
13932 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13934 rm -f conftest.val
13936 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_time_t" >&5
13937 echo "${ECHO_T}$ac_cv_sizeof_time_t" >&6; }
13941 cat >>confdefs.h <<_ACEOF
13942 #define SIZEOF_TIME_T $ac_cv_sizeof_time_t
13943 _ACEOF
13947 # if have pthread_t then define SIZEOF_PTHREAD_T
13948 ac_save_cc="$CC"
13949 if test "$ac_cv_kpthread" = "yes"
13950 then CC="$CC -Kpthread"
13951 elif test "$ac_cv_kthread" = "yes"
13952 then CC="$CC -Kthread"
13953 elif test "$ac_cv_pthread" = "yes"
13954 then CC="$CC -pthread"
13956 { echo "$as_me:$LINENO: checking for pthread_t" >&5
13957 echo $ECHO_N "checking for pthread_t... $ECHO_C" >&6; }
13958 have_pthread_t=no
13959 cat >conftest.$ac_ext <<_ACEOF
13960 /* confdefs.h. */
13961 _ACEOF
13962 cat confdefs.h >>conftest.$ac_ext
13963 cat >>conftest.$ac_ext <<_ACEOF
13964 /* end confdefs.h. */
13965 #include <pthread.h>
13967 main ()
13969 pthread_t x; x = *(pthread_t*)0;
13971 return 0;
13973 _ACEOF
13974 rm -f conftest.$ac_objext
13975 if { (ac_try="$ac_compile"
13976 case "(($ac_try" in
13977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13978 *) ac_try_echo=$ac_try;;
13979 esac
13980 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13981 (eval "$ac_compile") 2>conftest.er1
13982 ac_status=$?
13983 grep -v '^ *+' conftest.er1 >conftest.err
13984 rm -f conftest.er1
13985 cat conftest.err >&5
13986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13987 (exit $ac_status); } && {
13988 test -z "$ac_c_werror_flag" ||
13989 test ! -s conftest.err
13990 } && test -s conftest.$ac_objext; then
13991 have_pthread_t=yes
13992 else
13993 echo "$as_me: failed program was:" >&5
13994 sed 's/^/| /' conftest.$ac_ext >&5
13999 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14000 { echo "$as_me:$LINENO: result: $have_pthread_t" >&5
14001 echo "${ECHO_T}$have_pthread_t" >&6; }
14002 if test "$have_pthread_t" = yes ; then
14003 { echo "$as_me:$LINENO: checking for pthread_t" >&5
14004 echo $ECHO_N "checking for pthread_t... $ECHO_C" >&6; }
14005 if test "${ac_cv_type_pthread_t+set}" = set; then
14006 echo $ECHO_N "(cached) $ECHO_C" >&6
14007 else
14008 cat >conftest.$ac_ext <<_ACEOF
14009 /* confdefs.h. */
14010 _ACEOF
14011 cat confdefs.h >>conftest.$ac_ext
14012 cat >>conftest.$ac_ext <<_ACEOF
14013 /* end confdefs.h. */
14015 #ifdef HAVE_PTHREAD_H
14016 #include <pthread.h>
14017 #endif
14020 typedef pthread_t ac__type_new_;
14022 main ()
14024 if ((ac__type_new_ *) 0)
14025 return 0;
14026 if (sizeof (ac__type_new_))
14027 return 0;
14029 return 0;
14031 _ACEOF
14032 rm -f conftest.$ac_objext
14033 if { (ac_try="$ac_compile"
14034 case "(($ac_try" in
14035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14036 *) ac_try_echo=$ac_try;;
14037 esac
14038 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14039 (eval "$ac_compile") 2>conftest.er1
14040 ac_status=$?
14041 grep -v '^ *+' conftest.er1 >conftest.err
14042 rm -f conftest.er1
14043 cat conftest.err >&5
14044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14045 (exit $ac_status); } && {
14046 test -z "$ac_c_werror_flag" ||
14047 test ! -s conftest.err
14048 } && test -s conftest.$ac_objext; then
14049 ac_cv_type_pthread_t=yes
14050 else
14051 echo "$as_me: failed program was:" >&5
14052 sed 's/^/| /' conftest.$ac_ext >&5
14054 ac_cv_type_pthread_t=no
14057 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14059 { echo "$as_me:$LINENO: result: $ac_cv_type_pthread_t" >&5
14060 echo "${ECHO_T}$ac_cv_type_pthread_t" >&6; }
14062 # The cast to long int works around a bug in the HP C Compiler
14063 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14064 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14065 # This bug is HP SR number 8606223364.
14066 { echo "$as_me:$LINENO: checking size of pthread_t" >&5
14067 echo $ECHO_N "checking size of pthread_t... $ECHO_C" >&6; }
14068 if test "${ac_cv_sizeof_pthread_t+set}" = set; then
14069 echo $ECHO_N "(cached) $ECHO_C" >&6
14070 else
14071 if test "$cross_compiling" = yes; then
14072 # Depending upon the size, compute the lo and hi bounds.
14073 cat >conftest.$ac_ext <<_ACEOF
14074 /* confdefs.h. */
14075 _ACEOF
14076 cat confdefs.h >>conftest.$ac_ext
14077 cat >>conftest.$ac_ext <<_ACEOF
14078 /* end confdefs.h. */
14080 #ifdef HAVE_PTHREAD_H
14081 #include <pthread.h>
14082 #endif
14085 typedef pthread_t ac__type_sizeof_;
14087 main ()
14089 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
14090 test_array [0] = 0
14093 return 0;
14095 _ACEOF
14096 rm -f conftest.$ac_objext
14097 if { (ac_try="$ac_compile"
14098 case "(($ac_try" in
14099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14100 *) ac_try_echo=$ac_try;;
14101 esac
14102 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14103 (eval "$ac_compile") 2>conftest.er1
14104 ac_status=$?
14105 grep -v '^ *+' conftest.er1 >conftest.err
14106 rm -f conftest.er1
14107 cat conftest.err >&5
14108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14109 (exit $ac_status); } && {
14110 test -z "$ac_c_werror_flag" ||
14111 test ! -s conftest.err
14112 } && test -s conftest.$ac_objext; then
14113 ac_lo=0 ac_mid=0
14114 while :; do
14115 cat >conftest.$ac_ext <<_ACEOF
14116 /* confdefs.h. */
14117 _ACEOF
14118 cat confdefs.h >>conftest.$ac_ext
14119 cat >>conftest.$ac_ext <<_ACEOF
14120 /* end confdefs.h. */
14122 #ifdef HAVE_PTHREAD_H
14123 #include <pthread.h>
14124 #endif
14127 typedef pthread_t ac__type_sizeof_;
14129 main ()
14131 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
14132 test_array [0] = 0
14135 return 0;
14137 _ACEOF
14138 rm -f conftest.$ac_objext
14139 if { (ac_try="$ac_compile"
14140 case "(($ac_try" in
14141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14142 *) ac_try_echo=$ac_try;;
14143 esac
14144 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14145 (eval "$ac_compile") 2>conftest.er1
14146 ac_status=$?
14147 grep -v '^ *+' conftest.er1 >conftest.err
14148 rm -f conftest.er1
14149 cat conftest.err >&5
14150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14151 (exit $ac_status); } && {
14152 test -z "$ac_c_werror_flag" ||
14153 test ! -s conftest.err
14154 } && test -s conftest.$ac_objext; then
14155 ac_hi=$ac_mid; break
14156 else
14157 echo "$as_me: failed program was:" >&5
14158 sed 's/^/| /' conftest.$ac_ext >&5
14160 ac_lo=`expr $ac_mid + 1`
14161 if test $ac_lo -le $ac_mid; then
14162 ac_lo= ac_hi=
14163 break
14165 ac_mid=`expr 2 '*' $ac_mid + 1`
14168 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14169 done
14170 else
14171 echo "$as_me: failed program was:" >&5
14172 sed 's/^/| /' conftest.$ac_ext >&5
14174 cat >conftest.$ac_ext <<_ACEOF
14175 /* confdefs.h. */
14176 _ACEOF
14177 cat confdefs.h >>conftest.$ac_ext
14178 cat >>conftest.$ac_ext <<_ACEOF
14179 /* end confdefs.h. */
14181 #ifdef HAVE_PTHREAD_H
14182 #include <pthread.h>
14183 #endif
14186 typedef pthread_t ac__type_sizeof_;
14188 main ()
14190 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
14191 test_array [0] = 0
14194 return 0;
14196 _ACEOF
14197 rm -f conftest.$ac_objext
14198 if { (ac_try="$ac_compile"
14199 case "(($ac_try" in
14200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14201 *) ac_try_echo=$ac_try;;
14202 esac
14203 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14204 (eval "$ac_compile") 2>conftest.er1
14205 ac_status=$?
14206 grep -v '^ *+' conftest.er1 >conftest.err
14207 rm -f conftest.er1
14208 cat conftest.err >&5
14209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14210 (exit $ac_status); } && {
14211 test -z "$ac_c_werror_flag" ||
14212 test ! -s conftest.err
14213 } && test -s conftest.$ac_objext; then
14214 ac_hi=-1 ac_mid=-1
14215 while :; do
14216 cat >conftest.$ac_ext <<_ACEOF
14217 /* confdefs.h. */
14218 _ACEOF
14219 cat confdefs.h >>conftest.$ac_ext
14220 cat >>conftest.$ac_ext <<_ACEOF
14221 /* end confdefs.h. */
14223 #ifdef HAVE_PTHREAD_H
14224 #include <pthread.h>
14225 #endif
14228 typedef pthread_t ac__type_sizeof_;
14230 main ()
14232 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
14233 test_array [0] = 0
14236 return 0;
14238 _ACEOF
14239 rm -f conftest.$ac_objext
14240 if { (ac_try="$ac_compile"
14241 case "(($ac_try" in
14242 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14243 *) ac_try_echo=$ac_try;;
14244 esac
14245 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14246 (eval "$ac_compile") 2>conftest.er1
14247 ac_status=$?
14248 grep -v '^ *+' conftest.er1 >conftest.err
14249 rm -f conftest.er1
14250 cat conftest.err >&5
14251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14252 (exit $ac_status); } && {
14253 test -z "$ac_c_werror_flag" ||
14254 test ! -s conftest.err
14255 } && test -s conftest.$ac_objext; then
14256 ac_lo=$ac_mid; break
14257 else
14258 echo "$as_me: failed program was:" >&5
14259 sed 's/^/| /' conftest.$ac_ext >&5
14261 ac_hi=`expr '(' $ac_mid ')' - 1`
14262 if test $ac_mid -le $ac_hi; then
14263 ac_lo= ac_hi=
14264 break
14266 ac_mid=`expr 2 '*' $ac_mid`
14269 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14270 done
14271 else
14272 echo "$as_me: failed program was:" >&5
14273 sed 's/^/| /' conftest.$ac_ext >&5
14275 ac_lo= ac_hi=
14278 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14281 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14282 # Binary search between lo and hi bounds.
14283 while test "x$ac_lo" != "x$ac_hi"; do
14284 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14285 cat >conftest.$ac_ext <<_ACEOF
14286 /* confdefs.h. */
14287 _ACEOF
14288 cat confdefs.h >>conftest.$ac_ext
14289 cat >>conftest.$ac_ext <<_ACEOF
14290 /* end confdefs.h. */
14292 #ifdef HAVE_PTHREAD_H
14293 #include <pthread.h>
14294 #endif
14297 typedef pthread_t ac__type_sizeof_;
14299 main ()
14301 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
14302 test_array [0] = 0
14305 return 0;
14307 _ACEOF
14308 rm -f conftest.$ac_objext
14309 if { (ac_try="$ac_compile"
14310 case "(($ac_try" in
14311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14312 *) ac_try_echo=$ac_try;;
14313 esac
14314 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14315 (eval "$ac_compile") 2>conftest.er1
14316 ac_status=$?
14317 grep -v '^ *+' conftest.er1 >conftest.err
14318 rm -f conftest.er1
14319 cat conftest.err >&5
14320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14321 (exit $ac_status); } && {
14322 test -z "$ac_c_werror_flag" ||
14323 test ! -s conftest.err
14324 } && test -s conftest.$ac_objext; then
14325 ac_hi=$ac_mid
14326 else
14327 echo "$as_me: failed program was:" >&5
14328 sed 's/^/| /' conftest.$ac_ext >&5
14330 ac_lo=`expr '(' $ac_mid ')' + 1`
14333 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14334 done
14335 case $ac_lo in
14336 ?*) ac_cv_sizeof_pthread_t=$ac_lo;;
14337 '') if test "$ac_cv_type_pthread_t" = yes; then
14338 { { echo "$as_me:$LINENO: error: cannot compute sizeof (pthread_t)
14339 See \`config.log' for more details." >&5
14340 echo "$as_me: error: cannot compute sizeof (pthread_t)
14341 See \`config.log' for more details." >&2;}
14342 { (exit 77); exit 77; }; }
14343 else
14344 ac_cv_sizeof_pthread_t=0
14345 fi ;;
14346 esac
14347 else
14348 cat >conftest.$ac_ext <<_ACEOF
14349 /* confdefs.h. */
14350 _ACEOF
14351 cat confdefs.h >>conftest.$ac_ext
14352 cat >>conftest.$ac_ext <<_ACEOF
14353 /* end confdefs.h. */
14355 #ifdef HAVE_PTHREAD_H
14356 #include <pthread.h>
14357 #endif
14360 typedef pthread_t ac__type_sizeof_;
14361 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
14362 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
14363 #include <stdio.h>
14364 #include <stdlib.h>
14366 main ()
14369 FILE *f = fopen ("conftest.val", "w");
14370 if (! f)
14371 return 1;
14372 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
14374 long int i = longval ();
14375 if (i != ((long int) (sizeof (ac__type_sizeof_))))
14376 return 1;
14377 fprintf (f, "%ld\n", i);
14379 else
14381 unsigned long int i = ulongval ();
14382 if (i != ((long int) (sizeof (ac__type_sizeof_))))
14383 return 1;
14384 fprintf (f, "%lu\n", i);
14386 return ferror (f) || fclose (f) != 0;
14389 return 0;
14391 _ACEOF
14392 rm -f conftest$ac_exeext
14393 if { (ac_try="$ac_link"
14394 case "(($ac_try" in
14395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14396 *) ac_try_echo=$ac_try;;
14397 esac
14398 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14399 (eval "$ac_link") 2>&5
14400 ac_status=$?
14401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14402 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14403 { (case "(($ac_try" in
14404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14405 *) ac_try_echo=$ac_try;;
14406 esac
14407 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14408 (eval "$ac_try") 2>&5
14409 ac_status=$?
14410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14411 (exit $ac_status); }; }; then
14412 ac_cv_sizeof_pthread_t=`cat conftest.val`
14413 else
14414 echo "$as_me: program exited with status $ac_status" >&5
14415 echo "$as_me: failed program was:" >&5
14416 sed 's/^/| /' conftest.$ac_ext >&5
14418 ( exit $ac_status )
14419 if test "$ac_cv_type_pthread_t" = yes; then
14420 { { echo "$as_me:$LINENO: error: cannot compute sizeof (pthread_t)
14421 See \`config.log' for more details." >&5
14422 echo "$as_me: error: cannot compute sizeof (pthread_t)
14423 See \`config.log' for more details." >&2;}
14424 { (exit 77); exit 77; }; }
14425 else
14426 ac_cv_sizeof_pthread_t=0
14429 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14431 rm -f conftest.val
14433 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_pthread_t" >&5
14434 echo "${ECHO_T}$ac_cv_sizeof_pthread_t" >&6; }
14438 cat >>confdefs.h <<_ACEOF
14439 #define SIZEOF_PTHREAD_T $ac_cv_sizeof_pthread_t
14440 _ACEOF
14444 CC="$ac_save_cc"
14446 { echo "$as_me:$LINENO: checking for --enable-toolbox-glue" >&5
14447 echo $ECHO_N "checking for --enable-toolbox-glue... $ECHO_C" >&6; }
14448 # Check whether --enable-toolbox-glue was given.
14449 if test "${enable_toolbox_glue+set}" = set; then
14450 enableval=$enable_toolbox_glue;
14454 if test -z "$enable_toolbox_glue"
14455 then
14456 case $ac_sys_system/$ac_sys_release in
14457 Darwin/*)
14458 enable_toolbox_glue="yes";;
14460 enable_toolbox_glue="no";;
14461 esac
14463 case "$enable_toolbox_glue" in
14464 yes)
14465 extra_machdep_objs="Python/mactoolboxglue.o"
14466 extra_undefs="-u _PyMac_Error"
14468 cat >>confdefs.h <<\_ACEOF
14469 #define USE_TOOLBOX_OBJECT_GLUE 1
14470 _ACEOF
14474 extra_machdep_objs=""
14475 extra_undefs=""
14477 esac
14478 { echo "$as_me:$LINENO: result: $enable_toolbox_glue" >&5
14479 echo "${ECHO_T}$enable_toolbox_glue" >&6; }
14483 case $ac_sys_system/$ac_sys_release in
14484 Darwin/[01567]\..*)
14485 OTHER_LIBTOOL_OPT="-prebind -seg1addr 0x10000000"
14487 Darwin/*)
14488 OTHER_LIBTOOL_OPT=""
14490 esac
14493 ARCH_RUN_32BIT=""
14495 case $ac_sys_system/$ac_sys_release in
14496 Darwin/[01567]\..*)
14497 LIBTOOL_CRUFT="-framework System -lcc_dynamic"
14498 if test "${enable_universalsdk}"; then
14500 else
14501 LIBTOOL_CRUFT="${LIBTOOL_CRUFT} -arch_only `arch`"
14503 LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -install_name $(PYTHONFRAMEWORKINSTALLDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
14504 LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -compatibility_version $(VERSION) -current_version $(VERSION)';;
14505 Darwin/*)
14506 gcc_version=`gcc -v 2>&1 | grep version | cut -d\ -f3`
14507 if test ${gcc_version} '<' 4.0
14508 then
14509 LIBTOOL_CRUFT="-lcc_dynamic"
14510 else
14511 LIBTOOL_CRUFT=""
14513 if test "$cross_compiling" = yes; then
14514 ac_osx_32bit=yes
14515 else
14516 cat >conftest.$ac_ext <<_ACEOF
14517 /* confdefs.h. */
14518 _ACEOF
14519 cat confdefs.h >>conftest.$ac_ext
14520 cat >>conftest.$ac_ext <<_ACEOF
14521 /* end confdefs.h. */
14523 #include <unistd.h>
14524 int main(int argc, char*argv[])
14526 if (sizeof(long) == 4) {
14527 return 0;
14528 } else {
14529 return 1;
14533 _ACEOF
14534 rm -f conftest$ac_exeext
14535 if { (ac_try="$ac_link"
14536 case "(($ac_try" in
14537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14538 *) ac_try_echo=$ac_try;;
14539 esac
14540 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14541 (eval "$ac_link") 2>&5
14542 ac_status=$?
14543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14544 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14545 { (case "(($ac_try" in
14546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14547 *) ac_try_echo=$ac_try;;
14548 esac
14549 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14550 (eval "$ac_try") 2>&5
14551 ac_status=$?
14552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14553 (exit $ac_status); }; }; then
14554 ac_osx_32bit=yes
14555 else
14556 echo "$as_me: program exited with status $ac_status" >&5
14557 echo "$as_me: failed program was:" >&5
14558 sed 's/^/| /' conftest.$ac_ext >&5
14560 ( exit $ac_status )
14561 ac_osx_32bit=no
14563 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14568 if test "${ac_osx_32bit}" = "yes"; then
14569 case `arch` in
14570 i386)
14571 MACOSX_DEFAULT_ARCH="i386"
14573 ppc)
14574 MACOSX_DEFAULT_ARCH="ppc"
14577 { { echo "$as_me:$LINENO: error: Unexpected output of 'arch' on OSX" >&5
14578 echo "$as_me: error: Unexpected output of 'arch' on OSX" >&2;}
14579 { (exit 1); exit 1; }; }
14581 esac
14582 else
14583 case `arch` in
14584 i386)
14585 MACOSX_DEFAULT_ARCH="x86_64"
14587 ppc)
14588 MACOSX_DEFAULT_ARCH="ppc64"
14591 { { echo "$as_me:$LINENO: error: Unexpected output of 'arch' on OSX" >&5
14592 echo "$as_me: error: Unexpected output of 'arch' on OSX" >&2;}
14593 { (exit 1); exit 1; }; }
14595 esac
14597 #ARCH_RUN_32BIT="true"
14600 LIBTOOL_CRUFT=$LIBTOOL_CRUFT" -lSystem -lSystemStubs -arch_only ${MACOSX_DEFAULT_ARCH}"
14601 LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -install_name $(PYTHONFRAMEWORKINSTALLDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
14602 LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -compatibility_version $(VERSION) -current_version $(VERSION)';;
14603 esac
14605 { echo "$as_me:$LINENO: checking for --enable-framework" >&5
14606 echo $ECHO_N "checking for --enable-framework... $ECHO_C" >&6; }
14607 if test "$enable_framework"
14608 then
14609 BASECFLAGS="$BASECFLAGS -fno-common -dynamic"
14610 # -F. is needed to allow linking to the framework while
14611 # in the build location.
14613 cat >>confdefs.h <<\_ACEOF
14614 #define WITH_NEXT_FRAMEWORK 1
14615 _ACEOF
14617 { echo "$as_me:$LINENO: result: yes" >&5
14618 echo "${ECHO_T}yes" >&6; }
14619 if test $enable_shared = "yes"
14620 then
14621 { { echo "$as_me:$LINENO: error: Specifying both --enable-shared and --enable-framework is not supported, use only --enable-framework instead. See Mac/README." >&5
14622 echo "$as_me: error: Specifying both --enable-shared and --enable-framework is not supported, use only --enable-framework instead. See Mac/README." >&2;}
14623 { (exit 1); exit 1; }; }
14625 else
14626 { echo "$as_me:$LINENO: result: no" >&5
14627 echo "${ECHO_T}no" >&6; }
14630 { echo "$as_me:$LINENO: checking for dyld" >&5
14631 echo $ECHO_N "checking for dyld... $ECHO_C" >&6; }
14632 case $ac_sys_system/$ac_sys_release in
14633 Darwin/*)
14635 cat >>confdefs.h <<\_ACEOF
14636 #define WITH_DYLD 1
14637 _ACEOF
14639 { echo "$as_me:$LINENO: result: always on for Darwin" >&5
14640 echo "${ECHO_T}always on for Darwin" >&6; }
14643 { echo "$as_me:$LINENO: result: no" >&5
14644 echo "${ECHO_T}no" >&6; }
14646 esac
14648 # Set info about shared libraries.
14654 # SO is the extension of shared libraries `(including the dot!)
14655 # -- usually .so, .sl on HP-UX, .dll on Cygwin
14656 { echo "$as_me:$LINENO: checking SO" >&5
14657 echo $ECHO_N "checking SO... $ECHO_C" >&6; }
14658 if test -z "$SO"
14659 then
14660 case $ac_sys_system in
14661 hp*|HP*)
14662 case `uname -m` in
14663 ia64) SO=.so;;
14664 *) SO=.sl;;
14665 esac
14667 CYGWIN*) SO=.dll;;
14668 *) SO=.so;;
14669 esac
14670 else
14671 # this might also be a termcap variable, see #610332
14672 echo
14673 echo '====================================================================='
14674 echo '+ +'
14675 echo '+ WARNING: You have set SO in your environment. +'
14676 echo '+ Do you really mean to change the extension for shared libraries? +'
14677 echo '+ Continuing in 10 seconds to let you to ponder. +'
14678 echo '+ +'
14679 echo '====================================================================='
14680 sleep 10
14682 { echo "$as_me:$LINENO: result: $SO" >&5
14683 echo "${ECHO_T}$SO" >&6; }
14686 cat >>confdefs.h <<_ACEOF
14687 #define SHLIB_EXT "$SO"
14688 _ACEOF
14690 # LDSHARED is the ld *command* used to create shared library
14691 # -- "cc -G" on SunOS 5.x, "ld -shared" on IRIX 5
14692 # (Shared libraries in this instance are shared modules to be loaded into
14693 # Python, as opposed to building Python itself as a shared library.)
14694 { echo "$as_me:$LINENO: checking LDSHARED" >&5
14695 echo $ECHO_N "checking LDSHARED... $ECHO_C" >&6; }
14696 if test -z "$LDSHARED"
14697 then
14698 case $ac_sys_system/$ac_sys_release in
14699 AIX*)
14700 BLDSHARED="\$(srcdir)/Modules/ld_so_aix \$(CC) -bI:Modules/python.exp"
14701 LDSHARED="\$(BINLIBDEST)/config/ld_so_aix \$(CC) -bI:\$(BINLIBDEST)/config/python.exp"
14703 BeOS*)
14704 BLDSHARED="\$(srcdir)/Modules/ld_so_beos $LDLIBRARY"
14705 LDSHARED="\$(BINLIBDEST)/config/ld_so_beos \$(LIBDIR)/$LDLIBRARY"
14707 IRIX/5*) LDSHARED="ld -shared";;
14708 IRIX*/6*) LDSHARED="ld ${SGI_ABI} -shared -all";;
14709 SunOS/5*)
14710 if test "$GCC" = "yes"
14711 then LDSHARED='$(CC) -shared'
14712 else LDSHARED='$(CC) -G';
14713 fi ;;
14714 hp*|HP*)
14715 if test "$GCC" = "yes"
14716 then LDSHARED='$(CC) -shared'
14717 else LDSHARED='ld -b';
14718 fi ;;
14719 OSF*) LDSHARED="ld -shared -expect_unresolved \"*\"";;
14720 Darwin/1.3*)
14721 LDSHARED='$(CC) $(LDFLAGS) -bundle'
14722 if test "$enable_framework" ; then
14723 # Link against the framework. All externals should be defined.
14724 BLDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
14725 LDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
14726 else
14727 # No framework. Ignore undefined symbols, assuming they come from Python
14728 LDSHARED="$LDSHARED -undefined suppress"
14729 fi ;;
14730 Darwin/1.4*|Darwin/5.*|Darwin/6.*)
14731 LDSHARED='$(CC) $(LDFLAGS) -bundle'
14732 if test "$enable_framework" ; then
14733 # Link against the framework. All externals should be defined.
14734 BLDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
14735 LDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
14736 else
14737 # No framework, use the Python app as bundle-loader
14738 BLDSHARED="$LDSHARED "'-bundle_loader $(BUILDPYTHON)'
14739 LDSHARED="$LDSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)'
14740 fi ;;
14741 Darwin/*)
14742 # Use -undefined dynamic_lookup whenever possible (10.3 and later).
14743 # This allows an extension to be used in any Python
14745 if test ${MACOSX_DEPLOYMENT_TARGET} '>' 10.2
14746 then
14747 if test "${enable_universalsdk}"; then
14748 LDFLAGS="${UNIVERSAL_ARCH_FLAGS} -isysroot ${UNIVERSALSDK} ${LDFLAGS}"
14750 LDSHARED='$(CC) $(LDFLAGS) -bundle -undefined dynamic_lookup'
14751 BLDSHARED="$LDSHARED"
14752 else
14753 LDSHARED='$(CC) $(LDFLAGS) -bundle'
14754 if test "$enable_framework" ; then
14755 # Link against the framework. All externals should be defined.
14756 BLDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
14757 LDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
14758 else
14759 # No framework, use the Python app as bundle-loader
14760 BLDSHARED="$LDSHARED "'-bundle_loader $(BUILDPYTHON)'
14761 LDSHARED="$LDSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)'
14765 Linux*|GNU*|QNX*) LDSHARED='$(CC) -shared';;
14766 BSD/OS*/4*) LDSHARED="gcc -shared";;
14767 FreeBSD*)
14768 if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]
14769 then
14770 LDSHARED="$CC -shared ${LDFLAGS}"
14771 else
14772 LDSHARED="ld -Bshareable ${LDFLAGS}"
14773 fi;;
14774 OpenBSD*)
14775 if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]
14776 then
14777 LDSHARED='$(CC) -shared $(CCSHARED) ${LDFLAGS}'
14778 else
14779 case `uname -r` in
14780 [01].* | 2.[0-7] | 2.[0-7].*)
14781 LDSHARED="ld -Bshareable ${LDFLAGS}"
14784 LDSHARED='$(CC) -shared $(CCSHARED) ${LDFLAGS}'
14786 esac
14787 fi;;
14788 NetBSD*|DragonFly*) LDSHARED="cc -shared ${LDFLAGS}";;
14789 OpenUNIX*|UnixWare*)
14790 if test "$GCC" = "yes"
14791 then LDSHARED='$(CC) -shared'
14792 else LDSHARED='$(CC) -G'
14793 fi;;
14794 SCO_SV*) LDSHARED='$(CC) -Wl,-G,-Bexport';;
14795 CYGWIN*) LDSHARED="gcc -shared -Wl,--enable-auto-image-base";;
14796 atheos*) LDSHARED="gcc -shared";;
14797 *) LDSHARED="ld";;
14798 esac
14800 { echo "$as_me:$LINENO: result: $LDSHARED" >&5
14801 echo "${ECHO_T}$LDSHARED" >&6; }
14802 BLDSHARED=${BLDSHARED-$LDSHARED}
14803 # CCSHARED are the C *flags* used to create objects to go into a shared
14804 # library (module) -- this is only needed for a few systems
14805 { echo "$as_me:$LINENO: checking CCSHARED" >&5
14806 echo $ECHO_N "checking CCSHARED... $ECHO_C" >&6; }
14807 if test -z "$CCSHARED"
14808 then
14809 case $ac_sys_system/$ac_sys_release in
14810 SunOS*) if test "$GCC" = yes;
14811 then CCSHARED="-fPIC";
14812 elif test `uname -p` = sparc;
14813 then CCSHARED="-xcode=pic32";
14814 else CCSHARED="-Kpic";
14815 fi;;
14816 hp*|HP*) if test "$GCC" = yes;
14817 then CCSHARED="-fPIC";
14818 else CCSHARED="+z";
14819 fi;;
14820 Linux*|GNU*) CCSHARED="-fPIC";;
14821 BSD/OS*/4*) CCSHARED="-fpic";;
14822 FreeBSD*|NetBSD*|OpenBSD*|DragonFly*) CCSHARED="-fPIC";;
14823 OpenUNIX*|UnixWare*)
14824 if test "$GCC" = "yes"
14825 then CCSHARED="-fPIC"
14826 else CCSHARED="-KPIC"
14827 fi;;
14828 SCO_SV*)
14829 if test "$GCC" = "yes"
14830 then CCSHARED="-fPIC"
14831 else CCSHARED="-Kpic -belf"
14832 fi;;
14833 IRIX*/6*) case $CC in
14834 *gcc*) CCSHARED="-shared";;
14835 *) CCSHARED="";;
14836 esac;;
14837 atheos*) CCSHARED="-fPIC";;
14838 esac
14840 { echo "$as_me:$LINENO: result: $CCSHARED" >&5
14841 echo "${ECHO_T}$CCSHARED" >&6; }
14842 # LINKFORSHARED are the flags passed to the $(CC) command that links
14843 # the python executable -- this is only needed for a few systems
14844 { echo "$as_me:$LINENO: checking LINKFORSHARED" >&5
14845 echo $ECHO_N "checking LINKFORSHARED... $ECHO_C" >&6; }
14846 if test -z "$LINKFORSHARED"
14847 then
14848 case $ac_sys_system/$ac_sys_release in
14849 AIX*) LINKFORSHARED='-Wl,-bE:Modules/python.exp -lld';;
14850 hp*|HP*)
14851 LINKFORSHARED="-Wl,-E -Wl,+s";;
14852 # LINKFORSHARED="-Wl,-E -Wl,+s -Wl,+b\$(BINLIBDEST)/lib-dynload";;
14853 BSD/OS/4*) LINKFORSHARED="-Xlinker -export-dynamic";;
14854 Linux*|GNU*) LINKFORSHARED="-Xlinker -export-dynamic";;
14855 # -u libsys_s pulls in all symbols in libsys
14856 Darwin/*)
14857 # -u _PyMac_Error is needed to pull in the mac toolbox glue,
14858 # which is
14859 # not used by the core itself but which needs to be in the core so
14860 # that dynamically loaded extension modules have access to it.
14861 # -prebind is no longer used, because it actually seems to give a
14862 # slowdown in stead of a speedup, maybe due to the large number of
14863 # dynamic loads Python does.
14865 LINKFORSHARED="$extra_undefs"
14866 if test "$enable_framework"
14867 then
14868 LINKFORSHARED="$LINKFORSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
14870 LINKFORSHARED="$LINKFORSHARED";;
14871 OpenUNIX*|UnixWare*) LINKFORSHARED="-Wl,-Bexport";;
14872 SCO_SV*) LINKFORSHARED="-Wl,-Bexport";;
14873 ReliantUNIX*) LINKFORSHARED="-W1 -Blargedynsym";;
14874 FreeBSD*|NetBSD*|OpenBSD*|DragonFly*)
14875 if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]
14876 then
14877 LINKFORSHARED="-Wl,--export-dynamic"
14878 fi;;
14879 SunOS/5*) case $CC in
14880 *gcc*)
14881 if $CC -Xlinker --help 2>&1 | grep export-dynamic >/dev/null
14882 then
14883 LINKFORSHARED="-Xlinker --export-dynamic"
14884 fi;;
14885 esac;;
14886 CYGWIN*)
14887 if test $enable_shared = "no"
14888 then
14889 LINKFORSHARED='-Wl,--out-implib=$(LDLIBRARY)'
14890 fi;;
14891 QNX*)
14892 # -Wl,-E causes the symbols to be added to the dynamic
14893 # symbol table so that they can be found when a module
14894 # is loaded. -N 2048K causes the stack size to be set
14895 # to 2048 kilobytes so that the stack doesn't overflow
14896 # when running test_compile.py.
14897 LINKFORSHARED='-Wl,-E -N 2048K';;
14898 esac
14900 { echo "$as_me:$LINENO: result: $LINKFORSHARED" >&5
14901 echo "${ECHO_T}$LINKFORSHARED" >&6; }
14905 { echo "$as_me:$LINENO: checking CFLAGSFORSHARED" >&5
14906 echo $ECHO_N "checking CFLAGSFORSHARED... $ECHO_C" >&6; }
14907 if test ! "$LIBRARY" = "$LDLIBRARY"
14908 then
14909 case $ac_sys_system in
14910 CYGWIN*)
14911 # Cygwin needs CCSHARED when building extension DLLs
14912 # but not when building the interpreter DLL.
14913 CFLAGSFORSHARED='';;
14915 CFLAGSFORSHARED='$(CCSHARED)'
14916 esac
14918 { echo "$as_me:$LINENO: result: $CFLAGSFORSHARED" >&5
14919 echo "${ECHO_T}$CFLAGSFORSHARED" >&6; }
14921 # SHLIBS are libraries (except -lc and -lm) to link to the python shared
14922 # library (with --enable-shared).
14923 # For platforms on which shared libraries are not allowed to have unresolved
14924 # symbols, this must be set to $(LIBS) (expanded by make). We do this even
14925 # if it is not required, since it creates a dependency of the shared library
14926 # to LIBS. This, in turn, means that applications linking the shared libpython
14927 # don't need to link LIBS explicitly. The default should be only changed
14928 # on systems where this approach causes problems.
14930 { echo "$as_me:$LINENO: checking SHLIBS" >&5
14931 echo $ECHO_N "checking SHLIBS... $ECHO_C" >&6; }
14932 case "$ac_sys_system" in
14934 SHLIBS='$(LIBS)';;
14935 esac
14936 { echo "$as_me:$LINENO: result: $SHLIBS" >&5
14937 echo "${ECHO_T}$SHLIBS" >&6; }
14940 # checks for libraries
14942 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
14943 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
14944 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
14945 echo $ECHO_N "(cached) $ECHO_C" >&6
14946 else
14947 ac_check_lib_save_LIBS=$LIBS
14948 LIBS="-ldl $LIBS"
14949 cat >conftest.$ac_ext <<_ACEOF
14950 /* confdefs.h. */
14951 _ACEOF
14952 cat confdefs.h >>conftest.$ac_ext
14953 cat >>conftest.$ac_ext <<_ACEOF
14954 /* end confdefs.h. */
14956 /* Override any GCC internal prototype to avoid an error.
14957 Use char because int might match the return type of a GCC
14958 builtin and then its argument prototype would still apply. */
14959 #ifdef __cplusplus
14960 extern "C"
14961 #endif
14962 char dlopen ();
14964 main ()
14966 return dlopen ();
14968 return 0;
14970 _ACEOF
14971 rm -f conftest.$ac_objext conftest$ac_exeext
14972 if { (ac_try="$ac_link"
14973 case "(($ac_try" in
14974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14975 *) ac_try_echo=$ac_try;;
14976 esac
14977 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14978 (eval "$ac_link") 2>conftest.er1
14979 ac_status=$?
14980 grep -v '^ *+' conftest.er1 >conftest.err
14981 rm -f conftest.er1
14982 cat conftest.err >&5
14983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14984 (exit $ac_status); } && {
14985 test -z "$ac_c_werror_flag" ||
14986 test ! -s conftest.err
14987 } && test -s conftest$ac_exeext &&
14988 $as_test_x conftest$ac_exeext; then
14989 ac_cv_lib_dl_dlopen=yes
14990 else
14991 echo "$as_me: failed program was:" >&5
14992 sed 's/^/| /' conftest.$ac_ext >&5
14994 ac_cv_lib_dl_dlopen=no
14997 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14998 conftest$ac_exeext conftest.$ac_ext
14999 LIBS=$ac_check_lib_save_LIBS
15001 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
15002 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
15003 if test $ac_cv_lib_dl_dlopen = yes; then
15004 cat >>confdefs.h <<_ACEOF
15005 #define HAVE_LIBDL 1
15006 _ACEOF
15008 LIBS="-ldl $LIBS"
15011 # Dynamic linking for SunOS/Solaris and SYSV
15013 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
15014 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
15015 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
15016 echo $ECHO_N "(cached) $ECHO_C" >&6
15017 else
15018 ac_check_lib_save_LIBS=$LIBS
15019 LIBS="-ldld $LIBS"
15020 cat >conftest.$ac_ext <<_ACEOF
15021 /* confdefs.h. */
15022 _ACEOF
15023 cat confdefs.h >>conftest.$ac_ext
15024 cat >>conftest.$ac_ext <<_ACEOF
15025 /* end confdefs.h. */
15027 /* Override any GCC internal prototype to avoid an error.
15028 Use char because int might match the return type of a GCC
15029 builtin and then its argument prototype would still apply. */
15030 #ifdef __cplusplus
15031 extern "C"
15032 #endif
15033 char shl_load ();
15035 main ()
15037 return shl_load ();
15039 return 0;
15041 _ACEOF
15042 rm -f conftest.$ac_objext conftest$ac_exeext
15043 if { (ac_try="$ac_link"
15044 case "(($ac_try" in
15045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15046 *) ac_try_echo=$ac_try;;
15047 esac
15048 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15049 (eval "$ac_link") 2>conftest.er1
15050 ac_status=$?
15051 grep -v '^ *+' conftest.er1 >conftest.err
15052 rm -f conftest.er1
15053 cat conftest.err >&5
15054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15055 (exit $ac_status); } && {
15056 test -z "$ac_c_werror_flag" ||
15057 test ! -s conftest.err
15058 } && test -s conftest$ac_exeext &&
15059 $as_test_x conftest$ac_exeext; then
15060 ac_cv_lib_dld_shl_load=yes
15061 else
15062 echo "$as_me: failed program was:" >&5
15063 sed 's/^/| /' conftest.$ac_ext >&5
15065 ac_cv_lib_dld_shl_load=no
15068 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15069 conftest$ac_exeext conftest.$ac_ext
15070 LIBS=$ac_check_lib_save_LIBS
15072 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
15073 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
15074 if test $ac_cv_lib_dld_shl_load = yes; then
15075 cat >>confdefs.h <<_ACEOF
15076 #define HAVE_LIBDLD 1
15077 _ACEOF
15079 LIBS="-ldld $LIBS"
15082 # Dynamic linking for HP-UX
15084 # only check for sem_init if thread support is requested
15085 if test "$with_threads" = "yes" -o -z "$with_threads"; then
15086 { echo "$as_me:$LINENO: checking for library containing sem_init" >&5
15087 echo $ECHO_N "checking for library containing sem_init... $ECHO_C" >&6; }
15088 if test "${ac_cv_search_sem_init+set}" = set; then
15089 echo $ECHO_N "(cached) $ECHO_C" >&6
15090 else
15091 ac_func_search_save_LIBS=$LIBS
15092 cat >conftest.$ac_ext <<_ACEOF
15093 /* confdefs.h. */
15094 _ACEOF
15095 cat confdefs.h >>conftest.$ac_ext
15096 cat >>conftest.$ac_ext <<_ACEOF
15097 /* end confdefs.h. */
15099 /* Override any GCC internal prototype to avoid an error.
15100 Use char because int might match the return type of a GCC
15101 builtin and then its argument prototype would still apply. */
15102 #ifdef __cplusplus
15103 extern "C"
15104 #endif
15105 char sem_init ();
15107 main ()
15109 return sem_init ();
15111 return 0;
15113 _ACEOF
15114 for ac_lib in '' pthread rt posix4; do
15115 if test -z "$ac_lib"; then
15116 ac_res="none required"
15117 else
15118 ac_res=-l$ac_lib
15119 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15121 rm -f conftest.$ac_objext conftest$ac_exeext
15122 if { (ac_try="$ac_link"
15123 case "(($ac_try" in
15124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15125 *) ac_try_echo=$ac_try;;
15126 esac
15127 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15128 (eval "$ac_link") 2>conftest.er1
15129 ac_status=$?
15130 grep -v '^ *+' conftest.er1 >conftest.err
15131 rm -f conftest.er1
15132 cat conftest.err >&5
15133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15134 (exit $ac_status); } && {
15135 test -z "$ac_c_werror_flag" ||
15136 test ! -s conftest.err
15137 } && test -s conftest$ac_exeext &&
15138 $as_test_x conftest$ac_exeext; then
15139 ac_cv_search_sem_init=$ac_res
15140 else
15141 echo "$as_me: failed program was:" >&5
15142 sed 's/^/| /' conftest.$ac_ext >&5
15147 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15148 conftest$ac_exeext
15149 if test "${ac_cv_search_sem_init+set}" = set; then
15150 break
15152 done
15153 if test "${ac_cv_search_sem_init+set}" = set; then
15155 else
15156 ac_cv_search_sem_init=no
15158 rm conftest.$ac_ext
15159 LIBS=$ac_func_search_save_LIBS
15161 { echo "$as_me:$LINENO: result: $ac_cv_search_sem_init" >&5
15162 echo "${ECHO_T}$ac_cv_search_sem_init" >&6; }
15163 ac_res=$ac_cv_search_sem_init
15164 if test "$ac_res" != no; then
15165 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15168 # 'Real Time' functions on Solaris
15169 # posix4 on Solaris 2.6
15170 # pthread (first!) on Linux
15173 # check if we need libintl for locale functions
15174 { echo "$as_me:$LINENO: checking for textdomain in -lintl" >&5
15175 echo $ECHO_N "checking for textdomain in -lintl... $ECHO_C" >&6; }
15176 if test "${ac_cv_lib_intl_textdomain+set}" = set; then
15177 echo $ECHO_N "(cached) $ECHO_C" >&6
15178 else
15179 ac_check_lib_save_LIBS=$LIBS
15180 LIBS="-lintl $LIBS"
15181 cat >conftest.$ac_ext <<_ACEOF
15182 /* confdefs.h. */
15183 _ACEOF
15184 cat confdefs.h >>conftest.$ac_ext
15185 cat >>conftest.$ac_ext <<_ACEOF
15186 /* end confdefs.h. */
15188 /* Override any GCC internal prototype to avoid an error.
15189 Use char because int might match the return type of a GCC
15190 builtin and then its argument prototype would still apply. */
15191 #ifdef __cplusplus
15192 extern "C"
15193 #endif
15194 char textdomain ();
15196 main ()
15198 return textdomain ();
15200 return 0;
15202 _ACEOF
15203 rm -f conftest.$ac_objext conftest$ac_exeext
15204 if { (ac_try="$ac_link"
15205 case "(($ac_try" in
15206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15207 *) ac_try_echo=$ac_try;;
15208 esac
15209 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15210 (eval "$ac_link") 2>conftest.er1
15211 ac_status=$?
15212 grep -v '^ *+' conftest.er1 >conftest.err
15213 rm -f conftest.er1
15214 cat conftest.err >&5
15215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15216 (exit $ac_status); } && {
15217 test -z "$ac_c_werror_flag" ||
15218 test ! -s conftest.err
15219 } && test -s conftest$ac_exeext &&
15220 $as_test_x conftest$ac_exeext; then
15221 ac_cv_lib_intl_textdomain=yes
15222 else
15223 echo "$as_me: failed program was:" >&5
15224 sed 's/^/| /' conftest.$ac_ext >&5
15226 ac_cv_lib_intl_textdomain=no
15229 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15230 conftest$ac_exeext conftest.$ac_ext
15231 LIBS=$ac_check_lib_save_LIBS
15233 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_textdomain" >&5
15234 echo "${ECHO_T}$ac_cv_lib_intl_textdomain" >&6; }
15235 if test $ac_cv_lib_intl_textdomain = yes; then
15237 cat >>confdefs.h <<\_ACEOF
15238 #define WITH_LIBINTL 1
15239 _ACEOF
15244 # checks for system dependent C++ extensions support
15245 case "$ac_sys_system" in
15246 AIX*) { echo "$as_me:$LINENO: checking for genuine AIX C++ extensions support" >&5
15247 echo $ECHO_N "checking for genuine AIX C++ extensions support... $ECHO_C" >&6; }
15248 cat >conftest.$ac_ext <<_ACEOF
15249 /* confdefs.h. */
15250 _ACEOF
15251 cat confdefs.h >>conftest.$ac_ext
15252 cat >>conftest.$ac_ext <<_ACEOF
15253 /* end confdefs.h. */
15254 #include "/usr/lpp/xlC/include/load.h"
15256 main ()
15258 loadAndInit("", 0, "")
15260 return 0;
15262 _ACEOF
15263 rm -f conftest.$ac_objext conftest$ac_exeext
15264 if { (ac_try="$ac_link"
15265 case "(($ac_try" in
15266 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15267 *) ac_try_echo=$ac_try;;
15268 esac
15269 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15270 (eval "$ac_link") 2>conftest.er1
15271 ac_status=$?
15272 grep -v '^ *+' conftest.er1 >conftest.err
15273 rm -f conftest.er1
15274 cat conftest.err >&5
15275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15276 (exit $ac_status); } && {
15277 test -z "$ac_c_werror_flag" ||
15278 test ! -s conftest.err
15279 } && test -s conftest$ac_exeext &&
15280 $as_test_x conftest$ac_exeext; then
15282 cat >>confdefs.h <<\_ACEOF
15283 #define AIX_GENUINE_CPLUSPLUS 1
15284 _ACEOF
15286 { echo "$as_me:$LINENO: result: yes" >&5
15287 echo "${ECHO_T}yes" >&6; }
15288 else
15289 echo "$as_me: failed program was:" >&5
15290 sed 's/^/| /' conftest.$ac_ext >&5
15292 { echo "$as_me:$LINENO: result: no" >&5
15293 echo "${ECHO_T}no" >&6; }
15296 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15297 conftest$ac_exeext conftest.$ac_ext;;
15298 *) ;;
15299 esac
15301 # Most SVR4 platforms (e.g. Solaris) need -lsocket and -lnsl.
15302 # BeOS' sockets are stashed in libnet.
15303 { echo "$as_me:$LINENO: checking for t_open in -lnsl" >&5
15304 echo $ECHO_N "checking for t_open in -lnsl... $ECHO_C" >&6; }
15305 if test "${ac_cv_lib_nsl_t_open+set}" = set; then
15306 echo $ECHO_N "(cached) $ECHO_C" >&6
15307 else
15308 ac_check_lib_save_LIBS=$LIBS
15309 LIBS="-lnsl $LIBS"
15310 cat >conftest.$ac_ext <<_ACEOF
15311 /* confdefs.h. */
15312 _ACEOF
15313 cat confdefs.h >>conftest.$ac_ext
15314 cat >>conftest.$ac_ext <<_ACEOF
15315 /* end confdefs.h. */
15317 /* Override any GCC internal prototype to avoid an error.
15318 Use char because int might match the return type of a GCC
15319 builtin and then its argument prototype would still apply. */
15320 #ifdef __cplusplus
15321 extern "C"
15322 #endif
15323 char t_open ();
15325 main ()
15327 return t_open ();
15329 return 0;
15331 _ACEOF
15332 rm -f conftest.$ac_objext conftest$ac_exeext
15333 if { (ac_try="$ac_link"
15334 case "(($ac_try" in
15335 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15336 *) ac_try_echo=$ac_try;;
15337 esac
15338 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15339 (eval "$ac_link") 2>conftest.er1
15340 ac_status=$?
15341 grep -v '^ *+' conftest.er1 >conftest.err
15342 rm -f conftest.er1
15343 cat conftest.err >&5
15344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15345 (exit $ac_status); } && {
15346 test -z "$ac_c_werror_flag" ||
15347 test ! -s conftest.err
15348 } && test -s conftest$ac_exeext &&
15349 $as_test_x conftest$ac_exeext; then
15350 ac_cv_lib_nsl_t_open=yes
15351 else
15352 echo "$as_me: failed program was:" >&5
15353 sed 's/^/| /' conftest.$ac_ext >&5
15355 ac_cv_lib_nsl_t_open=no
15358 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15359 conftest$ac_exeext conftest.$ac_ext
15360 LIBS=$ac_check_lib_save_LIBS
15362 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_t_open" >&5
15363 echo "${ECHO_T}$ac_cv_lib_nsl_t_open" >&6; }
15364 if test $ac_cv_lib_nsl_t_open = yes; then
15365 LIBS="-lnsl $LIBS"
15367 # SVR4
15368 { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
15369 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
15370 if test "${ac_cv_lib_socket_socket+set}" = set; then
15371 echo $ECHO_N "(cached) $ECHO_C" >&6
15372 else
15373 ac_check_lib_save_LIBS=$LIBS
15374 LIBS="-lsocket $LIBS $LIBS"
15375 cat >conftest.$ac_ext <<_ACEOF
15376 /* confdefs.h. */
15377 _ACEOF
15378 cat confdefs.h >>conftest.$ac_ext
15379 cat >>conftest.$ac_ext <<_ACEOF
15380 /* end confdefs.h. */
15382 /* Override any GCC internal prototype to avoid an error.
15383 Use char because int might match the return type of a GCC
15384 builtin and then its argument prototype would still apply. */
15385 #ifdef __cplusplus
15386 extern "C"
15387 #endif
15388 char socket ();
15390 main ()
15392 return socket ();
15394 return 0;
15396 _ACEOF
15397 rm -f conftest.$ac_objext conftest$ac_exeext
15398 if { (ac_try="$ac_link"
15399 case "(($ac_try" in
15400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15401 *) ac_try_echo=$ac_try;;
15402 esac
15403 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15404 (eval "$ac_link") 2>conftest.er1
15405 ac_status=$?
15406 grep -v '^ *+' conftest.er1 >conftest.err
15407 rm -f conftest.er1
15408 cat conftest.err >&5
15409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15410 (exit $ac_status); } && {
15411 test -z "$ac_c_werror_flag" ||
15412 test ! -s conftest.err
15413 } && test -s conftest$ac_exeext &&
15414 $as_test_x conftest$ac_exeext; then
15415 ac_cv_lib_socket_socket=yes
15416 else
15417 echo "$as_me: failed program was:" >&5
15418 sed 's/^/| /' conftest.$ac_ext >&5
15420 ac_cv_lib_socket_socket=no
15423 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15424 conftest$ac_exeext conftest.$ac_ext
15425 LIBS=$ac_check_lib_save_LIBS
15427 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
15428 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; }
15429 if test $ac_cv_lib_socket_socket = yes; then
15430 LIBS="-lsocket $LIBS"
15432 # SVR4 sockets
15434 case "$ac_sys_system" in
15435 BeOS*)
15436 { echo "$as_me:$LINENO: checking for socket in -lnet" >&5
15437 echo $ECHO_N "checking for socket in -lnet... $ECHO_C" >&6; }
15438 if test "${ac_cv_lib_net_socket+set}" = set; then
15439 echo $ECHO_N "(cached) $ECHO_C" >&6
15440 else
15441 ac_check_lib_save_LIBS=$LIBS
15442 LIBS="-lnet $LIBS $LIBS"
15443 cat >conftest.$ac_ext <<_ACEOF
15444 /* confdefs.h. */
15445 _ACEOF
15446 cat confdefs.h >>conftest.$ac_ext
15447 cat >>conftest.$ac_ext <<_ACEOF
15448 /* end confdefs.h. */
15450 /* Override any GCC internal prototype to avoid an error.
15451 Use char because int might match the return type of a GCC
15452 builtin and then its argument prototype would still apply. */
15453 #ifdef __cplusplus
15454 extern "C"
15455 #endif
15456 char socket ();
15458 main ()
15460 return socket ();
15462 return 0;
15464 _ACEOF
15465 rm -f conftest.$ac_objext conftest$ac_exeext
15466 if { (ac_try="$ac_link"
15467 case "(($ac_try" in
15468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15469 *) ac_try_echo=$ac_try;;
15470 esac
15471 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15472 (eval "$ac_link") 2>conftest.er1
15473 ac_status=$?
15474 grep -v '^ *+' conftest.er1 >conftest.err
15475 rm -f conftest.er1
15476 cat conftest.err >&5
15477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15478 (exit $ac_status); } && {
15479 test -z "$ac_c_werror_flag" ||
15480 test ! -s conftest.err
15481 } && test -s conftest$ac_exeext &&
15482 $as_test_x conftest$ac_exeext; then
15483 ac_cv_lib_net_socket=yes
15484 else
15485 echo "$as_me: failed program was:" >&5
15486 sed 's/^/| /' conftest.$ac_ext >&5
15488 ac_cv_lib_net_socket=no
15491 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15492 conftest$ac_exeext conftest.$ac_ext
15493 LIBS=$ac_check_lib_save_LIBS
15495 { echo "$as_me:$LINENO: result: $ac_cv_lib_net_socket" >&5
15496 echo "${ECHO_T}$ac_cv_lib_net_socket" >&6; }
15497 if test $ac_cv_lib_net_socket = yes; then
15498 LIBS="-lnet $LIBS"
15500 # BeOS
15502 esac
15504 { echo "$as_me:$LINENO: checking for --with-libs" >&5
15505 echo $ECHO_N "checking for --with-libs... $ECHO_C" >&6; }
15507 # Check whether --with-libs was given.
15508 if test "${with_libs+set}" = set; then
15509 withval=$with_libs;
15510 { echo "$as_me:$LINENO: result: $withval" >&5
15511 echo "${ECHO_T}$withval" >&6; }
15512 LIBS="$withval $LIBS"
15514 else
15515 { echo "$as_me:$LINENO: result: no" >&5
15516 echo "${ECHO_T}no" >&6; }
15520 # Check for use of the system libffi library
15521 { echo "$as_me:$LINENO: checking for --with-system-ffi" >&5
15522 echo $ECHO_N "checking for --with-system-ffi... $ECHO_C" >&6; }
15524 # Check whether --with-system_ffi was given.
15525 if test "${with_system_ffi+set}" = set; then
15526 withval=$with_system_ffi;
15530 { echo "$as_me:$LINENO: result: $with_system_ffi" >&5
15531 echo "${ECHO_T}$with_system_ffi" >&6; }
15533 # Check for --with-dbmliborder
15534 { echo "$as_me:$LINENO: checking for --with-dbmliborder" >&5
15535 echo $ECHO_N "checking for --with-dbmliborder... $ECHO_C" >&6; }
15537 # Check whether --with-dbmliborder was given.
15538 if test "${with_dbmliborder+set}" = set; then
15539 withval=$with_dbmliborder;
15540 if test x$with_dbmliborder = xyes
15541 then
15542 { { echo "$as_me:$LINENO: error: proper usage is --with-dbmliborder=db1:db2:..." >&5
15543 echo "$as_me: error: proper usage is --with-dbmliborder=db1:db2:..." >&2;}
15544 { (exit 1); exit 1; }; }
15545 else
15546 for db in `echo $with_dbmliborder | sed 's/:/ /g'`; do
15547 if test x$db != xndbm && test x$db != xgdbm && test x$db != xbdb
15548 then
15549 { { echo "$as_me:$LINENO: error: proper usage is --with-dbmliborder=db1:db2:..." >&5
15550 echo "$as_me: error: proper usage is --with-dbmliborder=db1:db2:..." >&2;}
15551 { (exit 1); exit 1; }; }
15553 done
15557 { echo "$as_me:$LINENO: result: $with_dbmliborder" >&5
15558 echo "${ECHO_T}$with_dbmliborder" >&6; }
15560 # Determine if signalmodule should be used.
15563 { echo "$as_me:$LINENO: checking for --with-signal-module" >&5
15564 echo $ECHO_N "checking for --with-signal-module... $ECHO_C" >&6; }
15566 # Check whether --with-signal-module was given.
15567 if test "${with_signal_module+set}" = set; then
15568 withval=$with_signal_module;
15572 if test -z "$with_signal_module"
15573 then with_signal_module="yes"
15575 { echo "$as_me:$LINENO: result: $with_signal_module" >&5
15576 echo "${ECHO_T}$with_signal_module" >&6; }
15578 if test "${with_signal_module}" = "yes"; then
15579 USE_SIGNAL_MODULE=""
15580 SIGNAL_OBJS=""
15581 else
15582 USE_SIGNAL_MODULE="#"
15583 SIGNAL_OBJS="Parser/intrcheck.o Python/sigcheck.o"
15586 # This is used to generate Setup.config
15588 USE_THREAD_MODULE=""
15590 { echo "$as_me:$LINENO: checking for --with-dec-threads" >&5
15591 echo $ECHO_N "checking for --with-dec-threads... $ECHO_C" >&6; }
15594 # Check whether --with-dec-threads was given.
15595 if test "${with_dec_threads+set}" = set; then
15596 withval=$with_dec_threads;
15597 { echo "$as_me:$LINENO: result: $withval" >&5
15598 echo "${ECHO_T}$withval" >&6; }
15599 LDLAST=-threads
15600 if test "${with_thread+set}" != set; then
15601 with_thread="$withval";
15603 else
15604 { echo "$as_me:$LINENO: result: no" >&5
15605 echo "${ECHO_T}no" >&6; }
15609 # Templates for things AC_DEFINEd more than once.
15610 # For a single AC_DEFINE, no template is needed.
15618 { echo "$as_me:$LINENO: checking for --with-threads" >&5
15619 echo $ECHO_N "checking for --with-threads... $ECHO_C" >&6; }
15621 # Check whether --with-threads was given.
15622 if test "${with_threads+set}" = set; then
15623 withval=$with_threads;
15627 # --with-thread is deprecated, but check for it anyway
15629 # Check whether --with-thread was given.
15630 if test "${with_thread+set}" = set; then
15631 withval=$with_thread; with_threads=$with_thread
15635 if test -z "$with_threads"
15636 then with_threads="yes"
15638 { echo "$as_me:$LINENO: result: $with_threads" >&5
15639 echo "${ECHO_T}$with_threads" >&6; }
15642 if test "$with_threads" = "no"
15643 then
15644 USE_THREAD_MODULE="#"
15645 elif test "$ac_cv_pthread_is_default" = yes
15646 then
15647 cat >>confdefs.h <<\_ACEOF
15648 #define WITH_THREAD 1
15649 _ACEOF
15651 # Defining _REENTRANT on system with POSIX threads should not hurt.
15652 cat >>confdefs.h <<\_ACEOF
15653 #define _REENTRANT 1
15654 _ACEOF
15656 posix_threads=yes
15657 THREADOBJ="Python/thread.o"
15658 elif test "$ac_cv_kpthread" = "yes"
15659 then
15660 CC="$CC -Kpthread"
15661 if test "$ac_cv_cxx_thread" = "yes"; then
15662 CXX="$CXX -Kpthread"
15664 cat >>confdefs.h <<\_ACEOF
15665 #define WITH_THREAD 1
15666 _ACEOF
15668 posix_threads=yes
15669 THREADOBJ="Python/thread.o"
15670 elif test "$ac_cv_kthread" = "yes"
15671 then
15672 CC="$CC -Kthread"
15673 if test "$ac_cv_cxx_thread" = "yes"; then
15674 CXX="$CXX -Kthread"
15676 cat >>confdefs.h <<\_ACEOF
15677 #define WITH_THREAD 1
15678 _ACEOF
15680 posix_threads=yes
15681 THREADOBJ="Python/thread.o"
15682 elif test "$ac_cv_pthread" = "yes"
15683 then
15684 CC="$CC -pthread"
15685 if test "$ac_cv_cxx_thread" = "yes"; then
15686 CXX="$CXX -pthread"
15688 cat >>confdefs.h <<\_ACEOF
15689 #define WITH_THREAD 1
15690 _ACEOF
15692 posix_threads=yes
15693 THREADOBJ="Python/thread.o"
15694 else
15695 if test ! -z "$with_threads" -a -d "$with_threads"
15696 then LDFLAGS="$LDFLAGS -L$with_threads"
15698 if test ! -z "$withval" -a -d "$withval"
15699 then LDFLAGS="$LDFLAGS -L$withval"
15702 # According to the POSIX spec, a pthreads implementation must
15703 # define _POSIX_THREADS in unistd.h. Some apparently don't
15704 # (e.g. gnu pth with pthread emulation)
15705 { echo "$as_me:$LINENO: checking for _POSIX_THREADS in unistd.h" >&5
15706 echo $ECHO_N "checking for _POSIX_THREADS in unistd.h... $ECHO_C" >&6; }
15707 cat >conftest.$ac_ext <<_ACEOF
15708 /* confdefs.h. */
15709 _ACEOF
15710 cat confdefs.h >>conftest.$ac_ext
15711 cat >>conftest.$ac_ext <<_ACEOF
15712 /* end confdefs.h. */
15714 #include <unistd.h>
15715 #ifdef _POSIX_THREADS
15717 #endif
15719 _ACEOF
15720 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15721 $EGREP "yes" >/dev/null 2>&1; then
15722 unistd_defines_pthreads=yes
15723 else
15724 unistd_defines_pthreads=no
15726 rm -f conftest*
15728 { echo "$as_me:$LINENO: result: $unistd_defines_pthreads" >&5
15729 echo "${ECHO_T}$unistd_defines_pthreads" >&6; }
15731 cat >>confdefs.h <<\_ACEOF
15732 #define _REENTRANT 1
15733 _ACEOF
15735 if test "${ac_cv_header_cthreads_h+set}" = set; then
15736 { echo "$as_me:$LINENO: checking for cthreads.h" >&5
15737 echo $ECHO_N "checking for cthreads.h... $ECHO_C" >&6; }
15738 if test "${ac_cv_header_cthreads_h+set}" = set; then
15739 echo $ECHO_N "(cached) $ECHO_C" >&6
15741 { echo "$as_me:$LINENO: result: $ac_cv_header_cthreads_h" >&5
15742 echo "${ECHO_T}$ac_cv_header_cthreads_h" >&6; }
15743 else
15744 # Is the header compilable?
15745 { echo "$as_me:$LINENO: checking cthreads.h usability" >&5
15746 echo $ECHO_N "checking cthreads.h usability... $ECHO_C" >&6; }
15747 cat >conftest.$ac_ext <<_ACEOF
15748 /* confdefs.h. */
15749 _ACEOF
15750 cat confdefs.h >>conftest.$ac_ext
15751 cat >>conftest.$ac_ext <<_ACEOF
15752 /* end confdefs.h. */
15753 $ac_includes_default
15754 #include <cthreads.h>
15755 _ACEOF
15756 rm -f conftest.$ac_objext
15757 if { (ac_try="$ac_compile"
15758 case "(($ac_try" in
15759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15760 *) ac_try_echo=$ac_try;;
15761 esac
15762 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15763 (eval "$ac_compile") 2>conftest.er1
15764 ac_status=$?
15765 grep -v '^ *+' conftest.er1 >conftest.err
15766 rm -f conftest.er1
15767 cat conftest.err >&5
15768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15769 (exit $ac_status); } && {
15770 test -z "$ac_c_werror_flag" ||
15771 test ! -s conftest.err
15772 } && test -s conftest.$ac_objext; then
15773 ac_header_compiler=yes
15774 else
15775 echo "$as_me: failed program was:" >&5
15776 sed 's/^/| /' conftest.$ac_ext >&5
15778 ac_header_compiler=no
15781 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15782 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15783 echo "${ECHO_T}$ac_header_compiler" >&6; }
15785 # Is the header present?
15786 { echo "$as_me:$LINENO: checking cthreads.h presence" >&5
15787 echo $ECHO_N "checking cthreads.h presence... $ECHO_C" >&6; }
15788 cat >conftest.$ac_ext <<_ACEOF
15789 /* confdefs.h. */
15790 _ACEOF
15791 cat confdefs.h >>conftest.$ac_ext
15792 cat >>conftest.$ac_ext <<_ACEOF
15793 /* end confdefs.h. */
15794 #include <cthreads.h>
15795 _ACEOF
15796 if { (ac_try="$ac_cpp conftest.$ac_ext"
15797 case "(($ac_try" in
15798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15799 *) ac_try_echo=$ac_try;;
15800 esac
15801 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15802 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15803 ac_status=$?
15804 grep -v '^ *+' conftest.er1 >conftest.err
15805 rm -f conftest.er1
15806 cat conftest.err >&5
15807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15808 (exit $ac_status); } >/dev/null && {
15809 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15810 test ! -s conftest.err
15811 }; then
15812 ac_header_preproc=yes
15813 else
15814 echo "$as_me: failed program was:" >&5
15815 sed 's/^/| /' conftest.$ac_ext >&5
15817 ac_header_preproc=no
15820 rm -f conftest.err conftest.$ac_ext
15821 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15822 echo "${ECHO_T}$ac_header_preproc" >&6; }
15824 # So? What about this header?
15825 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15826 yes:no: )
15827 { echo "$as_me:$LINENO: WARNING: cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&5
15828 echo "$as_me: WARNING: cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15829 { echo "$as_me:$LINENO: WARNING: cthreads.h: proceeding with the compiler's result" >&5
15830 echo "$as_me: WARNING: cthreads.h: proceeding with the compiler's result" >&2;}
15831 ac_header_preproc=yes
15833 no:yes:* )
15834 { echo "$as_me:$LINENO: WARNING: cthreads.h: present but cannot be compiled" >&5
15835 echo "$as_me: WARNING: cthreads.h: present but cannot be compiled" >&2;}
15836 { echo "$as_me:$LINENO: WARNING: cthreads.h: check for missing prerequisite headers?" >&5
15837 echo "$as_me: WARNING: cthreads.h: check for missing prerequisite headers?" >&2;}
15838 { echo "$as_me:$LINENO: WARNING: cthreads.h: see the Autoconf documentation" >&5
15839 echo "$as_me: WARNING: cthreads.h: see the Autoconf documentation" >&2;}
15840 { echo "$as_me:$LINENO: WARNING: cthreads.h: section \"Present But Cannot Be Compiled\"" >&5
15841 echo "$as_me: WARNING: cthreads.h: section \"Present But Cannot Be Compiled\"" >&2;}
15842 { echo "$as_me:$LINENO: WARNING: cthreads.h: proceeding with the preprocessor's result" >&5
15843 echo "$as_me: WARNING: cthreads.h: proceeding with the preprocessor's result" >&2;}
15844 { echo "$as_me:$LINENO: WARNING: cthreads.h: in the future, the compiler will take precedence" >&5
15845 echo "$as_me: WARNING: cthreads.h: in the future, the compiler will take precedence" >&2;}
15846 ( cat <<\_ASBOX
15847 ## -------------------------------------- ##
15848 ## Report this to http://bugs.python.org/ ##
15849 ## -------------------------------------- ##
15850 _ASBOX
15851 ) | sed "s/^/$as_me: WARNING: /" >&2
15853 esac
15854 { echo "$as_me:$LINENO: checking for cthreads.h" >&5
15855 echo $ECHO_N "checking for cthreads.h... $ECHO_C" >&6; }
15856 if test "${ac_cv_header_cthreads_h+set}" = set; then
15857 echo $ECHO_N "(cached) $ECHO_C" >&6
15858 else
15859 ac_cv_header_cthreads_h=$ac_header_preproc
15861 { echo "$as_me:$LINENO: result: $ac_cv_header_cthreads_h" >&5
15862 echo "${ECHO_T}$ac_cv_header_cthreads_h" >&6; }
15865 if test $ac_cv_header_cthreads_h = yes; then
15866 cat >>confdefs.h <<\_ACEOF
15867 #define WITH_THREAD 1
15868 _ACEOF
15870 cat >>confdefs.h <<\_ACEOF
15871 #define C_THREADS 1
15872 _ACEOF
15875 cat >>confdefs.h <<\_ACEOF
15876 #define HURD_C_THREADS 1
15877 _ACEOF
15879 LIBS="$LIBS -lthreads"
15880 THREADOBJ="Python/thread.o"
15881 else
15883 if test "${ac_cv_header_mach_cthreads_h+set}" = set; then
15884 { echo "$as_me:$LINENO: checking for mach/cthreads.h" >&5
15885 echo $ECHO_N "checking for mach/cthreads.h... $ECHO_C" >&6; }
15886 if test "${ac_cv_header_mach_cthreads_h+set}" = set; then
15887 echo $ECHO_N "(cached) $ECHO_C" >&6
15889 { echo "$as_me:$LINENO: result: $ac_cv_header_mach_cthreads_h" >&5
15890 echo "${ECHO_T}$ac_cv_header_mach_cthreads_h" >&6; }
15891 else
15892 # Is the header compilable?
15893 { echo "$as_me:$LINENO: checking mach/cthreads.h usability" >&5
15894 echo $ECHO_N "checking mach/cthreads.h usability... $ECHO_C" >&6; }
15895 cat >conftest.$ac_ext <<_ACEOF
15896 /* confdefs.h. */
15897 _ACEOF
15898 cat confdefs.h >>conftest.$ac_ext
15899 cat >>conftest.$ac_ext <<_ACEOF
15900 /* end confdefs.h. */
15901 $ac_includes_default
15902 #include <mach/cthreads.h>
15903 _ACEOF
15904 rm -f conftest.$ac_objext
15905 if { (ac_try="$ac_compile"
15906 case "(($ac_try" in
15907 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15908 *) ac_try_echo=$ac_try;;
15909 esac
15910 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15911 (eval "$ac_compile") 2>conftest.er1
15912 ac_status=$?
15913 grep -v '^ *+' conftest.er1 >conftest.err
15914 rm -f conftest.er1
15915 cat conftest.err >&5
15916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15917 (exit $ac_status); } && {
15918 test -z "$ac_c_werror_flag" ||
15919 test ! -s conftest.err
15920 } && test -s conftest.$ac_objext; then
15921 ac_header_compiler=yes
15922 else
15923 echo "$as_me: failed program was:" >&5
15924 sed 's/^/| /' conftest.$ac_ext >&5
15926 ac_header_compiler=no
15929 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15930 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15931 echo "${ECHO_T}$ac_header_compiler" >&6; }
15933 # Is the header present?
15934 { echo "$as_me:$LINENO: checking mach/cthreads.h presence" >&5
15935 echo $ECHO_N "checking mach/cthreads.h presence... $ECHO_C" >&6; }
15936 cat >conftest.$ac_ext <<_ACEOF
15937 /* confdefs.h. */
15938 _ACEOF
15939 cat confdefs.h >>conftest.$ac_ext
15940 cat >>conftest.$ac_ext <<_ACEOF
15941 /* end confdefs.h. */
15942 #include <mach/cthreads.h>
15943 _ACEOF
15944 if { (ac_try="$ac_cpp conftest.$ac_ext"
15945 case "(($ac_try" in
15946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15947 *) ac_try_echo=$ac_try;;
15948 esac
15949 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15950 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15951 ac_status=$?
15952 grep -v '^ *+' conftest.er1 >conftest.err
15953 rm -f conftest.er1
15954 cat conftest.err >&5
15955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15956 (exit $ac_status); } >/dev/null && {
15957 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15958 test ! -s conftest.err
15959 }; then
15960 ac_header_preproc=yes
15961 else
15962 echo "$as_me: failed program was:" >&5
15963 sed 's/^/| /' conftest.$ac_ext >&5
15965 ac_header_preproc=no
15968 rm -f conftest.err conftest.$ac_ext
15969 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15970 echo "${ECHO_T}$ac_header_preproc" >&6; }
15972 # So? What about this header?
15973 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15974 yes:no: )
15975 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&5
15976 echo "$as_me: WARNING: mach/cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15977 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: proceeding with the compiler's result" >&5
15978 echo "$as_me: WARNING: mach/cthreads.h: proceeding with the compiler's result" >&2;}
15979 ac_header_preproc=yes
15981 no:yes:* )
15982 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: present but cannot be compiled" >&5
15983 echo "$as_me: WARNING: mach/cthreads.h: present but cannot be compiled" >&2;}
15984 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: check for missing prerequisite headers?" >&5
15985 echo "$as_me: WARNING: mach/cthreads.h: check for missing prerequisite headers?" >&2;}
15986 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: see the Autoconf documentation" >&5
15987 echo "$as_me: WARNING: mach/cthreads.h: see the Autoconf documentation" >&2;}
15988 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: section \"Present But Cannot Be Compiled\"" >&5
15989 echo "$as_me: WARNING: mach/cthreads.h: section \"Present But Cannot Be Compiled\"" >&2;}
15990 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: proceeding with the preprocessor's result" >&5
15991 echo "$as_me: WARNING: mach/cthreads.h: proceeding with the preprocessor's result" >&2;}
15992 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: in the future, the compiler will take precedence" >&5
15993 echo "$as_me: WARNING: mach/cthreads.h: in the future, the compiler will take precedence" >&2;}
15994 ( cat <<\_ASBOX
15995 ## -------------------------------------- ##
15996 ## Report this to http://bugs.python.org/ ##
15997 ## -------------------------------------- ##
15998 _ASBOX
15999 ) | sed "s/^/$as_me: WARNING: /" >&2
16001 esac
16002 { echo "$as_me:$LINENO: checking for mach/cthreads.h" >&5
16003 echo $ECHO_N "checking for mach/cthreads.h... $ECHO_C" >&6; }
16004 if test "${ac_cv_header_mach_cthreads_h+set}" = set; then
16005 echo $ECHO_N "(cached) $ECHO_C" >&6
16006 else
16007 ac_cv_header_mach_cthreads_h=$ac_header_preproc
16009 { echo "$as_me:$LINENO: result: $ac_cv_header_mach_cthreads_h" >&5
16010 echo "${ECHO_T}$ac_cv_header_mach_cthreads_h" >&6; }
16013 if test $ac_cv_header_mach_cthreads_h = yes; then
16014 cat >>confdefs.h <<\_ACEOF
16015 #define WITH_THREAD 1
16016 _ACEOF
16018 cat >>confdefs.h <<\_ACEOF
16019 #define C_THREADS 1
16020 _ACEOF
16023 cat >>confdefs.h <<\_ACEOF
16024 #define MACH_C_THREADS 1
16025 _ACEOF
16027 THREADOBJ="Python/thread.o"
16028 else
16030 { echo "$as_me:$LINENO: checking for --with-pth" >&5
16031 echo $ECHO_N "checking for --with-pth... $ECHO_C" >&6; }
16033 # Check whether --with-pth was given.
16034 if test "${with_pth+set}" = set; then
16035 withval=$with_pth; { echo "$as_me:$LINENO: result: $withval" >&5
16036 echo "${ECHO_T}$withval" >&6; }
16037 cat >>confdefs.h <<\_ACEOF
16038 #define WITH_THREAD 1
16039 _ACEOF
16042 cat >>confdefs.h <<\_ACEOF
16043 #define HAVE_PTH 1
16044 _ACEOF
16046 LIBS="-lpth $LIBS"
16047 THREADOBJ="Python/thread.o"
16048 else
16049 { echo "$as_me:$LINENO: result: no" >&5
16050 echo "${ECHO_T}no" >&6; }
16052 # Just looking for pthread_create in libpthread is not enough:
16053 # on HP/UX, pthread.h renames pthread_create to a different symbol name.
16054 # So we really have to include pthread.h, and then link.
16055 _libs=$LIBS
16056 LIBS="$LIBS -lpthread"
16057 { echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
16058 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6; }
16059 cat >conftest.$ac_ext <<_ACEOF
16060 /* confdefs.h. */
16061 _ACEOF
16062 cat confdefs.h >>conftest.$ac_ext
16063 cat >>conftest.$ac_ext <<_ACEOF
16064 /* end confdefs.h. */
16065 #include <pthread.h>
16067 void * start_routine (void *arg) { exit (0); }
16069 main ()
16072 pthread_create (NULL, NULL, start_routine, NULL)
16074 return 0;
16076 _ACEOF
16077 rm -f conftest.$ac_objext conftest$ac_exeext
16078 if { (ac_try="$ac_link"
16079 case "(($ac_try" in
16080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16081 *) ac_try_echo=$ac_try;;
16082 esac
16083 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16084 (eval "$ac_link") 2>conftest.er1
16085 ac_status=$?
16086 grep -v '^ *+' conftest.er1 >conftest.err
16087 rm -f conftest.er1
16088 cat conftest.err >&5
16089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16090 (exit $ac_status); } && {
16091 test -z "$ac_c_werror_flag" ||
16092 test ! -s conftest.err
16093 } && test -s conftest$ac_exeext &&
16094 $as_test_x conftest$ac_exeext; then
16096 { echo "$as_me:$LINENO: result: yes" >&5
16097 echo "${ECHO_T}yes" >&6; }
16098 cat >>confdefs.h <<\_ACEOF
16099 #define WITH_THREAD 1
16100 _ACEOF
16102 posix_threads=yes
16103 THREADOBJ="Python/thread.o"
16104 else
16105 echo "$as_me: failed program was:" >&5
16106 sed 's/^/| /' conftest.$ac_ext >&5
16109 LIBS=$_libs
16110 { echo "$as_me:$LINENO: checking for pthread_detach" >&5
16111 echo $ECHO_N "checking for pthread_detach... $ECHO_C" >&6; }
16112 if test "${ac_cv_func_pthread_detach+set}" = set; then
16113 echo $ECHO_N "(cached) $ECHO_C" >&6
16114 else
16115 cat >conftest.$ac_ext <<_ACEOF
16116 /* confdefs.h. */
16117 _ACEOF
16118 cat confdefs.h >>conftest.$ac_ext
16119 cat >>conftest.$ac_ext <<_ACEOF
16120 /* end confdefs.h. */
16121 /* Define pthread_detach to an innocuous variant, in case <limits.h> declares pthread_detach.
16122 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16123 #define pthread_detach innocuous_pthread_detach
16125 /* System header to define __stub macros and hopefully few prototypes,
16126 which can conflict with char pthread_detach (); below.
16127 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16128 <limits.h> exists even on freestanding compilers. */
16130 #ifdef __STDC__
16131 # include <limits.h>
16132 #else
16133 # include <assert.h>
16134 #endif
16136 #undef pthread_detach
16138 /* Override any GCC internal prototype to avoid an error.
16139 Use char because int might match the return type of a GCC
16140 builtin and then its argument prototype would still apply. */
16141 #ifdef __cplusplus
16142 extern "C"
16143 #endif
16144 char pthread_detach ();
16145 /* The GNU C library defines this for functions which it implements
16146 to always fail with ENOSYS. Some functions are actually named
16147 something starting with __ and the normal name is an alias. */
16148 #if defined __stub_pthread_detach || defined __stub___pthread_detach
16149 choke me
16150 #endif
16153 main ()
16155 return pthread_detach ();
16157 return 0;
16159 _ACEOF
16160 rm -f conftest.$ac_objext conftest$ac_exeext
16161 if { (ac_try="$ac_link"
16162 case "(($ac_try" in
16163 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16164 *) ac_try_echo=$ac_try;;
16165 esac
16166 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16167 (eval "$ac_link") 2>conftest.er1
16168 ac_status=$?
16169 grep -v '^ *+' conftest.er1 >conftest.err
16170 rm -f conftest.er1
16171 cat conftest.err >&5
16172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16173 (exit $ac_status); } && {
16174 test -z "$ac_c_werror_flag" ||
16175 test ! -s conftest.err
16176 } && test -s conftest$ac_exeext &&
16177 $as_test_x conftest$ac_exeext; then
16178 ac_cv_func_pthread_detach=yes
16179 else
16180 echo "$as_me: failed program was:" >&5
16181 sed 's/^/| /' conftest.$ac_ext >&5
16183 ac_cv_func_pthread_detach=no
16186 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16187 conftest$ac_exeext conftest.$ac_ext
16189 { echo "$as_me:$LINENO: result: $ac_cv_func_pthread_detach" >&5
16190 echo "${ECHO_T}$ac_cv_func_pthread_detach" >&6; }
16191 if test $ac_cv_func_pthread_detach = yes; then
16192 cat >>confdefs.h <<\_ACEOF
16193 #define WITH_THREAD 1
16194 _ACEOF
16196 posix_threads=yes
16197 THREADOBJ="Python/thread.o"
16198 else
16200 if test "${ac_cv_header_atheos_threads_h+set}" = set; then
16201 { echo "$as_me:$LINENO: checking for atheos/threads.h" >&5
16202 echo $ECHO_N "checking for atheos/threads.h... $ECHO_C" >&6; }
16203 if test "${ac_cv_header_atheos_threads_h+set}" = set; then
16204 echo $ECHO_N "(cached) $ECHO_C" >&6
16206 { echo "$as_me:$LINENO: result: $ac_cv_header_atheos_threads_h" >&5
16207 echo "${ECHO_T}$ac_cv_header_atheos_threads_h" >&6; }
16208 else
16209 # Is the header compilable?
16210 { echo "$as_me:$LINENO: checking atheos/threads.h usability" >&5
16211 echo $ECHO_N "checking atheos/threads.h usability... $ECHO_C" >&6; }
16212 cat >conftest.$ac_ext <<_ACEOF
16213 /* confdefs.h. */
16214 _ACEOF
16215 cat confdefs.h >>conftest.$ac_ext
16216 cat >>conftest.$ac_ext <<_ACEOF
16217 /* end confdefs.h. */
16218 $ac_includes_default
16219 #include <atheos/threads.h>
16220 _ACEOF
16221 rm -f conftest.$ac_objext
16222 if { (ac_try="$ac_compile"
16223 case "(($ac_try" in
16224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16225 *) ac_try_echo=$ac_try;;
16226 esac
16227 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16228 (eval "$ac_compile") 2>conftest.er1
16229 ac_status=$?
16230 grep -v '^ *+' conftest.er1 >conftest.err
16231 rm -f conftest.er1
16232 cat conftest.err >&5
16233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16234 (exit $ac_status); } && {
16235 test -z "$ac_c_werror_flag" ||
16236 test ! -s conftest.err
16237 } && test -s conftest.$ac_objext; then
16238 ac_header_compiler=yes
16239 else
16240 echo "$as_me: failed program was:" >&5
16241 sed 's/^/| /' conftest.$ac_ext >&5
16243 ac_header_compiler=no
16246 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16247 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16248 echo "${ECHO_T}$ac_header_compiler" >&6; }
16250 # Is the header present?
16251 { echo "$as_me:$LINENO: checking atheos/threads.h presence" >&5
16252 echo $ECHO_N "checking atheos/threads.h presence... $ECHO_C" >&6; }
16253 cat >conftest.$ac_ext <<_ACEOF
16254 /* confdefs.h. */
16255 _ACEOF
16256 cat confdefs.h >>conftest.$ac_ext
16257 cat >>conftest.$ac_ext <<_ACEOF
16258 /* end confdefs.h. */
16259 #include <atheos/threads.h>
16260 _ACEOF
16261 if { (ac_try="$ac_cpp conftest.$ac_ext"
16262 case "(($ac_try" in
16263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16264 *) ac_try_echo=$ac_try;;
16265 esac
16266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16267 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16268 ac_status=$?
16269 grep -v '^ *+' conftest.er1 >conftest.err
16270 rm -f conftest.er1
16271 cat conftest.err >&5
16272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16273 (exit $ac_status); } >/dev/null && {
16274 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16275 test ! -s conftest.err
16276 }; then
16277 ac_header_preproc=yes
16278 else
16279 echo "$as_me: failed program was:" >&5
16280 sed 's/^/| /' conftest.$ac_ext >&5
16282 ac_header_preproc=no
16285 rm -f conftest.err conftest.$ac_ext
16286 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16287 echo "${ECHO_T}$ac_header_preproc" >&6; }
16289 # So? What about this header?
16290 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16291 yes:no: )
16292 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: accepted by the compiler, rejected by the preprocessor!" >&5
16293 echo "$as_me: WARNING: atheos/threads.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16294 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: proceeding with the compiler's result" >&5
16295 echo "$as_me: WARNING: atheos/threads.h: proceeding with the compiler's result" >&2;}
16296 ac_header_preproc=yes
16298 no:yes:* )
16299 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: present but cannot be compiled" >&5
16300 echo "$as_me: WARNING: atheos/threads.h: present but cannot be compiled" >&2;}
16301 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: check for missing prerequisite headers?" >&5
16302 echo "$as_me: WARNING: atheos/threads.h: check for missing prerequisite headers?" >&2;}
16303 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: see the Autoconf documentation" >&5
16304 echo "$as_me: WARNING: atheos/threads.h: see the Autoconf documentation" >&2;}
16305 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: section \"Present But Cannot Be Compiled\"" >&5
16306 echo "$as_me: WARNING: atheos/threads.h: section \"Present But Cannot Be Compiled\"" >&2;}
16307 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: proceeding with the preprocessor's result" >&5
16308 echo "$as_me: WARNING: atheos/threads.h: proceeding with the preprocessor's result" >&2;}
16309 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: in the future, the compiler will take precedence" >&5
16310 echo "$as_me: WARNING: atheos/threads.h: in the future, the compiler will take precedence" >&2;}
16311 ( cat <<\_ASBOX
16312 ## -------------------------------------- ##
16313 ## Report this to http://bugs.python.org/ ##
16314 ## -------------------------------------- ##
16315 _ASBOX
16316 ) | sed "s/^/$as_me: WARNING: /" >&2
16318 esac
16319 { echo "$as_me:$LINENO: checking for atheos/threads.h" >&5
16320 echo $ECHO_N "checking for atheos/threads.h... $ECHO_C" >&6; }
16321 if test "${ac_cv_header_atheos_threads_h+set}" = set; then
16322 echo $ECHO_N "(cached) $ECHO_C" >&6
16323 else
16324 ac_cv_header_atheos_threads_h=$ac_header_preproc
16326 { echo "$as_me:$LINENO: result: $ac_cv_header_atheos_threads_h" >&5
16327 echo "${ECHO_T}$ac_cv_header_atheos_threads_h" >&6; }
16330 if test $ac_cv_header_atheos_threads_h = yes; then
16331 cat >>confdefs.h <<\_ACEOF
16332 #define WITH_THREAD 1
16333 _ACEOF
16336 cat >>confdefs.h <<\_ACEOF
16337 #define ATHEOS_THREADS 1
16338 _ACEOF
16340 THREADOBJ="Python/thread.o"
16341 else
16343 if test "${ac_cv_header_kernel_OS_h+set}" = set; then
16344 { echo "$as_me:$LINENO: checking for kernel/OS.h" >&5
16345 echo $ECHO_N "checking for kernel/OS.h... $ECHO_C" >&6; }
16346 if test "${ac_cv_header_kernel_OS_h+set}" = set; then
16347 echo $ECHO_N "(cached) $ECHO_C" >&6
16349 { echo "$as_me:$LINENO: result: $ac_cv_header_kernel_OS_h" >&5
16350 echo "${ECHO_T}$ac_cv_header_kernel_OS_h" >&6; }
16351 else
16352 # Is the header compilable?
16353 { echo "$as_me:$LINENO: checking kernel/OS.h usability" >&5
16354 echo $ECHO_N "checking kernel/OS.h usability... $ECHO_C" >&6; }
16355 cat >conftest.$ac_ext <<_ACEOF
16356 /* confdefs.h. */
16357 _ACEOF
16358 cat confdefs.h >>conftest.$ac_ext
16359 cat >>conftest.$ac_ext <<_ACEOF
16360 /* end confdefs.h. */
16361 $ac_includes_default
16362 #include <kernel/OS.h>
16363 _ACEOF
16364 rm -f conftest.$ac_objext
16365 if { (ac_try="$ac_compile"
16366 case "(($ac_try" in
16367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16368 *) ac_try_echo=$ac_try;;
16369 esac
16370 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16371 (eval "$ac_compile") 2>conftest.er1
16372 ac_status=$?
16373 grep -v '^ *+' conftest.er1 >conftest.err
16374 rm -f conftest.er1
16375 cat conftest.err >&5
16376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16377 (exit $ac_status); } && {
16378 test -z "$ac_c_werror_flag" ||
16379 test ! -s conftest.err
16380 } && test -s conftest.$ac_objext; then
16381 ac_header_compiler=yes
16382 else
16383 echo "$as_me: failed program was:" >&5
16384 sed 's/^/| /' conftest.$ac_ext >&5
16386 ac_header_compiler=no
16389 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16390 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16391 echo "${ECHO_T}$ac_header_compiler" >&6; }
16393 # Is the header present?
16394 { echo "$as_me:$LINENO: checking kernel/OS.h presence" >&5
16395 echo $ECHO_N "checking kernel/OS.h presence... $ECHO_C" >&6; }
16396 cat >conftest.$ac_ext <<_ACEOF
16397 /* confdefs.h. */
16398 _ACEOF
16399 cat confdefs.h >>conftest.$ac_ext
16400 cat >>conftest.$ac_ext <<_ACEOF
16401 /* end confdefs.h. */
16402 #include <kernel/OS.h>
16403 _ACEOF
16404 if { (ac_try="$ac_cpp conftest.$ac_ext"
16405 case "(($ac_try" in
16406 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16407 *) ac_try_echo=$ac_try;;
16408 esac
16409 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16410 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16411 ac_status=$?
16412 grep -v '^ *+' conftest.er1 >conftest.err
16413 rm -f conftest.er1
16414 cat conftest.err >&5
16415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16416 (exit $ac_status); } >/dev/null && {
16417 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16418 test ! -s conftest.err
16419 }; then
16420 ac_header_preproc=yes
16421 else
16422 echo "$as_me: failed program was:" >&5
16423 sed 's/^/| /' conftest.$ac_ext >&5
16425 ac_header_preproc=no
16428 rm -f conftest.err conftest.$ac_ext
16429 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16430 echo "${ECHO_T}$ac_header_preproc" >&6; }
16432 # So? What about this header?
16433 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16434 yes:no: )
16435 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: accepted by the compiler, rejected by the preprocessor!" >&5
16436 echo "$as_me: WARNING: kernel/OS.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16437 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: proceeding with the compiler's result" >&5
16438 echo "$as_me: WARNING: kernel/OS.h: proceeding with the compiler's result" >&2;}
16439 ac_header_preproc=yes
16441 no:yes:* )
16442 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: present but cannot be compiled" >&5
16443 echo "$as_me: WARNING: kernel/OS.h: present but cannot be compiled" >&2;}
16444 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: check for missing prerequisite headers?" >&5
16445 echo "$as_me: WARNING: kernel/OS.h: check for missing prerequisite headers?" >&2;}
16446 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: see the Autoconf documentation" >&5
16447 echo "$as_me: WARNING: kernel/OS.h: see the Autoconf documentation" >&2;}
16448 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: section \"Present But Cannot Be Compiled\"" >&5
16449 echo "$as_me: WARNING: kernel/OS.h: section \"Present But Cannot Be Compiled\"" >&2;}
16450 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: proceeding with the preprocessor's result" >&5
16451 echo "$as_me: WARNING: kernel/OS.h: proceeding with the preprocessor's result" >&2;}
16452 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: in the future, the compiler will take precedence" >&5
16453 echo "$as_me: WARNING: kernel/OS.h: in the future, the compiler will take precedence" >&2;}
16454 ( cat <<\_ASBOX
16455 ## -------------------------------------- ##
16456 ## Report this to http://bugs.python.org/ ##
16457 ## -------------------------------------- ##
16458 _ASBOX
16459 ) | sed "s/^/$as_me: WARNING: /" >&2
16461 esac
16462 { echo "$as_me:$LINENO: checking for kernel/OS.h" >&5
16463 echo $ECHO_N "checking for kernel/OS.h... $ECHO_C" >&6; }
16464 if test "${ac_cv_header_kernel_OS_h+set}" = set; then
16465 echo $ECHO_N "(cached) $ECHO_C" >&6
16466 else
16467 ac_cv_header_kernel_OS_h=$ac_header_preproc
16469 { echo "$as_me:$LINENO: result: $ac_cv_header_kernel_OS_h" >&5
16470 echo "${ECHO_T}$ac_cv_header_kernel_OS_h" >&6; }
16473 if test $ac_cv_header_kernel_OS_h = yes; then
16474 cat >>confdefs.h <<\_ACEOF
16475 #define WITH_THREAD 1
16476 _ACEOF
16479 cat >>confdefs.h <<\_ACEOF
16480 #define BEOS_THREADS 1
16481 _ACEOF
16483 THREADOBJ="Python/thread.o"
16484 else
16486 { echo "$as_me:$LINENO: checking for pthread_create in -lpthreads" >&5
16487 echo $ECHO_N "checking for pthread_create in -lpthreads... $ECHO_C" >&6; }
16488 if test "${ac_cv_lib_pthreads_pthread_create+set}" = set; then
16489 echo $ECHO_N "(cached) $ECHO_C" >&6
16490 else
16491 ac_check_lib_save_LIBS=$LIBS
16492 LIBS="-lpthreads $LIBS"
16493 cat >conftest.$ac_ext <<_ACEOF
16494 /* confdefs.h. */
16495 _ACEOF
16496 cat confdefs.h >>conftest.$ac_ext
16497 cat >>conftest.$ac_ext <<_ACEOF
16498 /* end confdefs.h. */
16500 /* Override any GCC internal prototype to avoid an error.
16501 Use char because int might match the return type of a GCC
16502 builtin and then its argument prototype would still apply. */
16503 #ifdef __cplusplus
16504 extern "C"
16505 #endif
16506 char pthread_create ();
16508 main ()
16510 return pthread_create ();
16512 return 0;
16514 _ACEOF
16515 rm -f conftest.$ac_objext conftest$ac_exeext
16516 if { (ac_try="$ac_link"
16517 case "(($ac_try" in
16518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16519 *) ac_try_echo=$ac_try;;
16520 esac
16521 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16522 (eval "$ac_link") 2>conftest.er1
16523 ac_status=$?
16524 grep -v '^ *+' conftest.er1 >conftest.err
16525 rm -f conftest.er1
16526 cat conftest.err >&5
16527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16528 (exit $ac_status); } && {
16529 test -z "$ac_c_werror_flag" ||
16530 test ! -s conftest.err
16531 } && test -s conftest$ac_exeext &&
16532 $as_test_x conftest$ac_exeext; then
16533 ac_cv_lib_pthreads_pthread_create=yes
16534 else
16535 echo "$as_me: failed program was:" >&5
16536 sed 's/^/| /' conftest.$ac_ext >&5
16538 ac_cv_lib_pthreads_pthread_create=no
16541 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16542 conftest$ac_exeext conftest.$ac_ext
16543 LIBS=$ac_check_lib_save_LIBS
16545 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_create" >&5
16546 echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_create" >&6; }
16547 if test $ac_cv_lib_pthreads_pthread_create = yes; then
16548 cat >>confdefs.h <<\_ACEOF
16549 #define WITH_THREAD 1
16550 _ACEOF
16552 posix_threads=yes
16553 LIBS="$LIBS -lpthreads"
16554 THREADOBJ="Python/thread.o"
16555 else
16557 { echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
16558 echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6; }
16559 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then
16560 echo $ECHO_N "(cached) $ECHO_C" >&6
16561 else
16562 ac_check_lib_save_LIBS=$LIBS
16563 LIBS="-lc_r $LIBS"
16564 cat >conftest.$ac_ext <<_ACEOF
16565 /* confdefs.h. */
16566 _ACEOF
16567 cat confdefs.h >>conftest.$ac_ext
16568 cat >>conftest.$ac_ext <<_ACEOF
16569 /* end confdefs.h. */
16571 /* Override any GCC internal prototype to avoid an error.
16572 Use char because int might match the return type of a GCC
16573 builtin and then its argument prototype would still apply. */
16574 #ifdef __cplusplus
16575 extern "C"
16576 #endif
16577 char pthread_create ();
16579 main ()
16581 return pthread_create ();
16583 return 0;
16585 _ACEOF
16586 rm -f conftest.$ac_objext conftest$ac_exeext
16587 if { (ac_try="$ac_link"
16588 case "(($ac_try" in
16589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16590 *) ac_try_echo=$ac_try;;
16591 esac
16592 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16593 (eval "$ac_link") 2>conftest.er1
16594 ac_status=$?
16595 grep -v '^ *+' conftest.er1 >conftest.err
16596 rm -f conftest.er1
16597 cat conftest.err >&5
16598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16599 (exit $ac_status); } && {
16600 test -z "$ac_c_werror_flag" ||
16601 test ! -s conftest.err
16602 } && test -s conftest$ac_exeext &&
16603 $as_test_x conftest$ac_exeext; then
16604 ac_cv_lib_c_r_pthread_create=yes
16605 else
16606 echo "$as_me: failed program was:" >&5
16607 sed 's/^/| /' conftest.$ac_ext >&5
16609 ac_cv_lib_c_r_pthread_create=no
16612 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16613 conftest$ac_exeext conftest.$ac_ext
16614 LIBS=$ac_check_lib_save_LIBS
16616 { echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5
16617 echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6; }
16618 if test $ac_cv_lib_c_r_pthread_create = yes; then
16619 cat >>confdefs.h <<\_ACEOF
16620 #define WITH_THREAD 1
16621 _ACEOF
16623 posix_threads=yes
16624 LIBS="$LIBS -lc_r"
16625 THREADOBJ="Python/thread.o"
16626 else
16628 { echo "$as_me:$LINENO: checking for __pthread_create_system in -lpthread" >&5
16629 echo $ECHO_N "checking for __pthread_create_system in -lpthread... $ECHO_C" >&6; }
16630 if test "${ac_cv_lib_pthread___pthread_create_system+set}" = set; then
16631 echo $ECHO_N "(cached) $ECHO_C" >&6
16632 else
16633 ac_check_lib_save_LIBS=$LIBS
16634 LIBS="-lpthread $LIBS"
16635 cat >conftest.$ac_ext <<_ACEOF
16636 /* confdefs.h. */
16637 _ACEOF
16638 cat confdefs.h >>conftest.$ac_ext
16639 cat >>conftest.$ac_ext <<_ACEOF
16640 /* end confdefs.h. */
16642 /* Override any GCC internal prototype to avoid an error.
16643 Use char because int might match the return type of a GCC
16644 builtin and then its argument prototype would still apply. */
16645 #ifdef __cplusplus
16646 extern "C"
16647 #endif
16648 char __pthread_create_system ();
16650 main ()
16652 return __pthread_create_system ();
16654 return 0;
16656 _ACEOF
16657 rm -f conftest.$ac_objext conftest$ac_exeext
16658 if { (ac_try="$ac_link"
16659 case "(($ac_try" in
16660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16661 *) ac_try_echo=$ac_try;;
16662 esac
16663 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16664 (eval "$ac_link") 2>conftest.er1
16665 ac_status=$?
16666 grep -v '^ *+' conftest.er1 >conftest.err
16667 rm -f conftest.er1
16668 cat conftest.err >&5
16669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16670 (exit $ac_status); } && {
16671 test -z "$ac_c_werror_flag" ||
16672 test ! -s conftest.err
16673 } && test -s conftest$ac_exeext &&
16674 $as_test_x conftest$ac_exeext; then
16675 ac_cv_lib_pthread___pthread_create_system=yes
16676 else
16677 echo "$as_me: failed program was:" >&5
16678 sed 's/^/| /' conftest.$ac_ext >&5
16680 ac_cv_lib_pthread___pthread_create_system=no
16683 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16684 conftest$ac_exeext conftest.$ac_ext
16685 LIBS=$ac_check_lib_save_LIBS
16687 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread___pthread_create_system" >&5
16688 echo "${ECHO_T}$ac_cv_lib_pthread___pthread_create_system" >&6; }
16689 if test $ac_cv_lib_pthread___pthread_create_system = yes; then
16690 cat >>confdefs.h <<\_ACEOF
16691 #define WITH_THREAD 1
16692 _ACEOF
16694 posix_threads=yes
16695 LIBS="$LIBS -lpthread"
16696 THREADOBJ="Python/thread.o"
16697 else
16699 { echo "$as_me:$LINENO: checking for pthread_create in -lcma" >&5
16700 echo $ECHO_N "checking for pthread_create in -lcma... $ECHO_C" >&6; }
16701 if test "${ac_cv_lib_cma_pthread_create+set}" = set; then
16702 echo $ECHO_N "(cached) $ECHO_C" >&6
16703 else
16704 ac_check_lib_save_LIBS=$LIBS
16705 LIBS="-lcma $LIBS"
16706 cat >conftest.$ac_ext <<_ACEOF
16707 /* confdefs.h. */
16708 _ACEOF
16709 cat confdefs.h >>conftest.$ac_ext
16710 cat >>conftest.$ac_ext <<_ACEOF
16711 /* end confdefs.h. */
16713 /* Override any GCC internal prototype to avoid an error.
16714 Use char because int might match the return type of a GCC
16715 builtin and then its argument prototype would still apply. */
16716 #ifdef __cplusplus
16717 extern "C"
16718 #endif
16719 char pthread_create ();
16721 main ()
16723 return pthread_create ();
16725 return 0;
16727 _ACEOF
16728 rm -f conftest.$ac_objext conftest$ac_exeext
16729 if { (ac_try="$ac_link"
16730 case "(($ac_try" in
16731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16732 *) ac_try_echo=$ac_try;;
16733 esac
16734 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16735 (eval "$ac_link") 2>conftest.er1
16736 ac_status=$?
16737 grep -v '^ *+' conftest.er1 >conftest.err
16738 rm -f conftest.er1
16739 cat conftest.err >&5
16740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16741 (exit $ac_status); } && {
16742 test -z "$ac_c_werror_flag" ||
16743 test ! -s conftest.err
16744 } && test -s conftest$ac_exeext &&
16745 $as_test_x conftest$ac_exeext; then
16746 ac_cv_lib_cma_pthread_create=yes
16747 else
16748 echo "$as_me: failed program was:" >&5
16749 sed 's/^/| /' conftest.$ac_ext >&5
16751 ac_cv_lib_cma_pthread_create=no
16754 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16755 conftest$ac_exeext conftest.$ac_ext
16756 LIBS=$ac_check_lib_save_LIBS
16758 { echo "$as_me:$LINENO: result: $ac_cv_lib_cma_pthread_create" >&5
16759 echo "${ECHO_T}$ac_cv_lib_cma_pthread_create" >&6; }
16760 if test $ac_cv_lib_cma_pthread_create = yes; then
16761 cat >>confdefs.h <<\_ACEOF
16762 #define WITH_THREAD 1
16763 _ACEOF
16765 posix_threads=yes
16766 LIBS="$LIBS -lcma"
16767 THREADOBJ="Python/thread.o"
16768 else
16770 USE_THREAD_MODULE="#"
16790 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16791 conftest$ac_exeext conftest.$ac_ext
16801 { echo "$as_me:$LINENO: checking for usconfig in -lmpc" >&5
16802 echo $ECHO_N "checking for usconfig in -lmpc... $ECHO_C" >&6; }
16803 if test "${ac_cv_lib_mpc_usconfig+set}" = set; then
16804 echo $ECHO_N "(cached) $ECHO_C" >&6
16805 else
16806 ac_check_lib_save_LIBS=$LIBS
16807 LIBS="-lmpc $LIBS"
16808 cat >conftest.$ac_ext <<_ACEOF
16809 /* confdefs.h. */
16810 _ACEOF
16811 cat confdefs.h >>conftest.$ac_ext
16812 cat >>conftest.$ac_ext <<_ACEOF
16813 /* end confdefs.h. */
16815 /* Override any GCC internal prototype to avoid an error.
16816 Use char because int might match the return type of a GCC
16817 builtin and then its argument prototype would still apply. */
16818 #ifdef __cplusplus
16819 extern "C"
16820 #endif
16821 char usconfig ();
16823 main ()
16825 return usconfig ();
16827 return 0;
16829 _ACEOF
16830 rm -f conftest.$ac_objext conftest$ac_exeext
16831 if { (ac_try="$ac_link"
16832 case "(($ac_try" in
16833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16834 *) ac_try_echo=$ac_try;;
16835 esac
16836 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16837 (eval "$ac_link") 2>conftest.er1
16838 ac_status=$?
16839 grep -v '^ *+' conftest.er1 >conftest.err
16840 rm -f conftest.er1
16841 cat conftest.err >&5
16842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16843 (exit $ac_status); } && {
16844 test -z "$ac_c_werror_flag" ||
16845 test ! -s conftest.err
16846 } && test -s conftest$ac_exeext &&
16847 $as_test_x conftest$ac_exeext; then
16848 ac_cv_lib_mpc_usconfig=yes
16849 else
16850 echo "$as_me: failed program was:" >&5
16851 sed 's/^/| /' conftest.$ac_ext >&5
16853 ac_cv_lib_mpc_usconfig=no
16856 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16857 conftest$ac_exeext conftest.$ac_ext
16858 LIBS=$ac_check_lib_save_LIBS
16860 { echo "$as_me:$LINENO: result: $ac_cv_lib_mpc_usconfig" >&5
16861 echo "${ECHO_T}$ac_cv_lib_mpc_usconfig" >&6; }
16862 if test $ac_cv_lib_mpc_usconfig = yes; then
16863 cat >>confdefs.h <<\_ACEOF
16864 #define WITH_THREAD 1
16865 _ACEOF
16867 LIBS="$LIBS -lmpc"
16868 THREADOBJ="Python/thread.o"
16869 USE_THREAD_MODULE=""
16873 if test "$posix_threads" != "yes"; then
16874 { echo "$as_me:$LINENO: checking for thr_create in -lthread" >&5
16875 echo $ECHO_N "checking for thr_create in -lthread... $ECHO_C" >&6; }
16876 if test "${ac_cv_lib_thread_thr_create+set}" = set; then
16877 echo $ECHO_N "(cached) $ECHO_C" >&6
16878 else
16879 ac_check_lib_save_LIBS=$LIBS
16880 LIBS="-lthread $LIBS"
16881 cat >conftest.$ac_ext <<_ACEOF
16882 /* confdefs.h. */
16883 _ACEOF
16884 cat confdefs.h >>conftest.$ac_ext
16885 cat >>conftest.$ac_ext <<_ACEOF
16886 /* end confdefs.h. */
16888 /* Override any GCC internal prototype to avoid an error.
16889 Use char because int might match the return type of a GCC
16890 builtin and then its argument prototype would still apply. */
16891 #ifdef __cplusplus
16892 extern "C"
16893 #endif
16894 char thr_create ();
16896 main ()
16898 return thr_create ();
16900 return 0;
16902 _ACEOF
16903 rm -f conftest.$ac_objext conftest$ac_exeext
16904 if { (ac_try="$ac_link"
16905 case "(($ac_try" in
16906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16907 *) ac_try_echo=$ac_try;;
16908 esac
16909 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16910 (eval "$ac_link") 2>conftest.er1
16911 ac_status=$?
16912 grep -v '^ *+' conftest.er1 >conftest.err
16913 rm -f conftest.er1
16914 cat conftest.err >&5
16915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16916 (exit $ac_status); } && {
16917 test -z "$ac_c_werror_flag" ||
16918 test ! -s conftest.err
16919 } && test -s conftest$ac_exeext &&
16920 $as_test_x conftest$ac_exeext; then
16921 ac_cv_lib_thread_thr_create=yes
16922 else
16923 echo "$as_me: failed program was:" >&5
16924 sed 's/^/| /' conftest.$ac_ext >&5
16926 ac_cv_lib_thread_thr_create=no
16929 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16930 conftest$ac_exeext conftest.$ac_ext
16931 LIBS=$ac_check_lib_save_LIBS
16933 { echo "$as_me:$LINENO: result: $ac_cv_lib_thread_thr_create" >&5
16934 echo "${ECHO_T}$ac_cv_lib_thread_thr_create" >&6; }
16935 if test $ac_cv_lib_thread_thr_create = yes; then
16936 cat >>confdefs.h <<\_ACEOF
16937 #define WITH_THREAD 1
16938 _ACEOF
16940 LIBS="$LIBS -lthread"
16941 THREADOBJ="Python/thread.o"
16942 USE_THREAD_MODULE=""
16947 if test "$USE_THREAD_MODULE" != "#"
16948 then
16949 # If the above checks didn't disable threads, (at least) OSF1
16950 # needs this '-threads' argument during linking.
16951 case $ac_sys_system in
16952 OSF1) LDLAST=-threads;;
16953 esac
16957 if test "$posix_threads" = "yes"; then
16958 if test "$unistd_defines_pthreads" = "no"; then
16960 cat >>confdefs.h <<\_ACEOF
16961 #define _POSIX_THREADS 1
16962 _ACEOF
16966 # Bug 662787: Using semaphores causes unexplicable hangs on Solaris 8.
16967 case $ac_sys_system/$ac_sys_release in
16968 SunOS/5.6)
16969 cat >>confdefs.h <<\_ACEOF
16970 #define HAVE_PTHREAD_DESTRUCTOR 1
16971 _ACEOF
16974 SunOS/5.8)
16975 cat >>confdefs.h <<\_ACEOF
16976 #define HAVE_BROKEN_POSIX_SEMAPHORES 1
16977 _ACEOF
16980 AIX/5)
16981 cat >>confdefs.h <<\_ACEOF
16982 #define HAVE_BROKEN_POSIX_SEMAPHORES 1
16983 _ACEOF
16986 esac
16988 { echo "$as_me:$LINENO: checking if PTHREAD_SCOPE_SYSTEM is supported" >&5
16989 echo $ECHO_N "checking if PTHREAD_SCOPE_SYSTEM is supported... $ECHO_C" >&6; }
16990 if test "${ac_cv_pthread_system_supported+set}" = set; then
16991 echo $ECHO_N "(cached) $ECHO_C" >&6
16992 else
16993 if test "$cross_compiling" = yes; then
16994 ac_cv_pthread_system_supported=no
16995 else
16996 cat >conftest.$ac_ext <<_ACEOF
16997 /* confdefs.h. */
16998 _ACEOF
16999 cat confdefs.h >>conftest.$ac_ext
17000 cat >>conftest.$ac_ext <<_ACEOF
17001 /* end confdefs.h. */
17002 #include <pthread.h>
17003 void *foo(void *parm) {
17004 return NULL;
17006 main() {
17007 pthread_attr_t attr;
17008 pthread_t id;
17009 if (pthread_attr_init(&attr)) exit(-1);
17010 if (pthread_attr_setscope(&attr, PTHREAD_SCOPE_SYSTEM)) exit(-1);
17011 if (pthread_create(&id, &attr, foo, NULL)) exit(-1);
17012 exit(0);
17014 _ACEOF
17015 rm -f conftest$ac_exeext
17016 if { (ac_try="$ac_link"
17017 case "(($ac_try" in
17018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17019 *) ac_try_echo=$ac_try;;
17020 esac
17021 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17022 (eval "$ac_link") 2>&5
17023 ac_status=$?
17024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17025 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17026 { (case "(($ac_try" in
17027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17028 *) ac_try_echo=$ac_try;;
17029 esac
17030 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17031 (eval "$ac_try") 2>&5
17032 ac_status=$?
17033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17034 (exit $ac_status); }; }; then
17035 ac_cv_pthread_system_supported=yes
17036 else
17037 echo "$as_me: program exited with status $ac_status" >&5
17038 echo "$as_me: failed program was:" >&5
17039 sed 's/^/| /' conftest.$ac_ext >&5
17041 ( exit $ac_status )
17042 ac_cv_pthread_system_supported=no
17044 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17051 { echo "$as_me:$LINENO: result: $ac_cv_pthread_system_supported" >&5
17052 echo "${ECHO_T}$ac_cv_pthread_system_supported" >&6; }
17053 if test "$ac_cv_pthread_system_supported" = "yes"; then
17055 cat >>confdefs.h <<\_ACEOF
17056 #define PTHREAD_SYSTEM_SCHED_SUPPORTED 1
17057 _ACEOF
17061 for ac_func in pthread_sigmask
17063 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17064 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17065 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17066 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17067 echo $ECHO_N "(cached) $ECHO_C" >&6
17068 else
17069 cat >conftest.$ac_ext <<_ACEOF
17070 /* confdefs.h. */
17071 _ACEOF
17072 cat confdefs.h >>conftest.$ac_ext
17073 cat >>conftest.$ac_ext <<_ACEOF
17074 /* end confdefs.h. */
17075 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17076 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17077 #define $ac_func innocuous_$ac_func
17079 /* System header to define __stub macros and hopefully few prototypes,
17080 which can conflict with char $ac_func (); below.
17081 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17082 <limits.h> exists even on freestanding compilers. */
17084 #ifdef __STDC__
17085 # include <limits.h>
17086 #else
17087 # include <assert.h>
17088 #endif
17090 #undef $ac_func
17092 /* Override any GCC internal prototype to avoid an error.
17093 Use char because int might match the return type of a GCC
17094 builtin and then its argument prototype would still apply. */
17095 #ifdef __cplusplus
17096 extern "C"
17097 #endif
17098 char $ac_func ();
17099 /* The GNU C library defines this for functions which it implements
17100 to always fail with ENOSYS. Some functions are actually named
17101 something starting with __ and the normal name is an alias. */
17102 #if defined __stub_$ac_func || defined __stub___$ac_func
17103 choke me
17104 #endif
17107 main ()
17109 return $ac_func ();
17111 return 0;
17113 _ACEOF
17114 rm -f conftest.$ac_objext conftest$ac_exeext
17115 if { (ac_try="$ac_link"
17116 case "(($ac_try" in
17117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17118 *) ac_try_echo=$ac_try;;
17119 esac
17120 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17121 (eval "$ac_link") 2>conftest.er1
17122 ac_status=$?
17123 grep -v '^ *+' conftest.er1 >conftest.err
17124 rm -f conftest.er1
17125 cat conftest.err >&5
17126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17127 (exit $ac_status); } && {
17128 test -z "$ac_c_werror_flag" ||
17129 test ! -s conftest.err
17130 } && test -s conftest$ac_exeext &&
17131 $as_test_x conftest$ac_exeext; then
17132 eval "$as_ac_var=yes"
17133 else
17134 echo "$as_me: failed program was:" >&5
17135 sed 's/^/| /' conftest.$ac_ext >&5
17137 eval "$as_ac_var=no"
17140 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17141 conftest$ac_exeext conftest.$ac_ext
17143 ac_res=`eval echo '${'$as_ac_var'}'`
17144 { echo "$as_me:$LINENO: result: $ac_res" >&5
17145 echo "${ECHO_T}$ac_res" >&6; }
17146 if test `eval echo '${'$as_ac_var'}'` = yes; then
17147 cat >>confdefs.h <<_ACEOF
17148 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17149 _ACEOF
17150 case $ac_sys_system in
17151 CYGWIN*)
17153 cat >>confdefs.h <<\_ACEOF
17154 #define HAVE_BROKEN_PTHREAD_SIGMASK 1
17155 _ACEOF
17158 esac
17160 done
17165 # Check for enable-ipv6
17168 { echo "$as_me:$LINENO: checking if --enable-ipv6 is specified" >&5
17169 echo $ECHO_N "checking if --enable-ipv6 is specified... $ECHO_C" >&6; }
17170 # Check whether --enable-ipv6 was given.
17171 if test "${enable_ipv6+set}" = set; then
17172 enableval=$enable_ipv6; case "$enableval" in
17174 { echo "$as_me:$LINENO: result: no" >&5
17175 echo "${ECHO_T}no" >&6; }
17176 ipv6=no
17178 *) { echo "$as_me:$LINENO: result: yes" >&5
17179 echo "${ECHO_T}yes" >&6; }
17180 cat >>confdefs.h <<\_ACEOF
17181 #define ENABLE_IPV6 1
17182 _ACEOF
17184 ipv6=yes
17186 esac
17187 else
17189 if test "$cross_compiling" = yes; then
17190 { echo "$as_me:$LINENO: result: no" >&5
17191 echo "${ECHO_T}no" >&6; }
17192 ipv6=no
17194 else
17195 cat >conftest.$ac_ext <<_ACEOF
17196 /* confdefs.h. */
17197 _ACEOF
17198 cat confdefs.h >>conftest.$ac_ext
17199 cat >>conftest.$ac_ext <<_ACEOF
17200 /* end confdefs.h. */
17201 /* AF_INET6 available check */
17202 #include <sys/types.h>
17203 #include <sys/socket.h>
17204 main()
17206 if (socket(AF_INET6, SOCK_STREAM, 0) < 0)
17207 exit(1);
17208 else
17209 exit(0);
17212 _ACEOF
17213 rm -f conftest$ac_exeext
17214 if { (ac_try="$ac_link"
17215 case "(($ac_try" in
17216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17217 *) ac_try_echo=$ac_try;;
17218 esac
17219 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17220 (eval "$ac_link") 2>&5
17221 ac_status=$?
17222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17223 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17224 { (case "(($ac_try" in
17225 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17226 *) ac_try_echo=$ac_try;;
17227 esac
17228 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17229 (eval "$ac_try") 2>&5
17230 ac_status=$?
17231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17232 (exit $ac_status); }; }; then
17233 { echo "$as_me:$LINENO: result: yes" >&5
17234 echo "${ECHO_T}yes" >&6; }
17235 ipv6=yes
17236 else
17237 echo "$as_me: program exited with status $ac_status" >&5
17238 echo "$as_me: failed program was:" >&5
17239 sed 's/^/| /' conftest.$ac_ext >&5
17241 ( exit $ac_status )
17242 { echo "$as_me:$LINENO: result: no" >&5
17243 echo "${ECHO_T}no" >&6; }
17244 ipv6=no
17246 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17251 if test "$ipv6" = "yes"; then
17252 { echo "$as_me:$LINENO: checking if RFC2553 API is available" >&5
17253 echo $ECHO_N "checking if RFC2553 API is available... $ECHO_C" >&6; }
17254 cat >conftest.$ac_ext <<_ACEOF
17255 /* confdefs.h. */
17256 _ACEOF
17257 cat confdefs.h >>conftest.$ac_ext
17258 cat >>conftest.$ac_ext <<_ACEOF
17259 /* end confdefs.h. */
17260 #include <sys/types.h>
17261 #include <netinet/in.h>
17263 main ()
17265 struct sockaddr_in6 x;
17266 x.sin6_scope_id;
17268 return 0;
17270 _ACEOF
17271 rm -f conftest.$ac_objext
17272 if { (ac_try="$ac_compile"
17273 case "(($ac_try" in
17274 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17275 *) ac_try_echo=$ac_try;;
17276 esac
17277 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17278 (eval "$ac_compile") 2>conftest.er1
17279 ac_status=$?
17280 grep -v '^ *+' conftest.er1 >conftest.err
17281 rm -f conftest.er1
17282 cat conftest.err >&5
17283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17284 (exit $ac_status); } && {
17285 test -z "$ac_c_werror_flag" ||
17286 test ! -s conftest.err
17287 } && test -s conftest.$ac_objext; then
17288 { echo "$as_me:$LINENO: result: yes" >&5
17289 echo "${ECHO_T}yes" >&6; }
17290 ipv6=yes
17291 else
17292 echo "$as_me: failed program was:" >&5
17293 sed 's/^/| /' conftest.$ac_ext >&5
17295 { echo "$as_me:$LINENO: result: no" >&5
17296 echo "${ECHO_T}no" >&6; }
17297 ipv6=no
17300 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17303 if test "$ipv6" = "yes"; then
17304 cat >>confdefs.h <<\_ACEOF
17305 #define ENABLE_IPV6 1
17306 _ACEOF
17313 ipv6type=unknown
17314 ipv6lib=none
17315 ipv6trylibc=no
17317 if test "$ipv6" = "yes"; then
17318 { echo "$as_me:$LINENO: checking ipv6 stack type" >&5
17319 echo $ECHO_N "checking ipv6 stack type... $ECHO_C" >&6; }
17320 for i in inria kame linux-glibc linux-inet6 solaris toshiba v6d zeta;
17322 case $i in
17323 inria)
17324 cat >conftest.$ac_ext <<_ACEOF
17325 /* confdefs.h. */
17326 _ACEOF
17327 cat confdefs.h >>conftest.$ac_ext
17328 cat >>conftest.$ac_ext <<_ACEOF
17329 /* end confdefs.h. */
17331 #include <netinet/in.h>
17332 #ifdef IPV6_INRIA_VERSION
17334 #endif
17335 _ACEOF
17336 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17337 $EGREP "yes" >/dev/null 2>&1; then
17338 ipv6type=$i
17340 rm -f conftest*
17343 kame)
17344 cat >conftest.$ac_ext <<_ACEOF
17345 /* confdefs.h. */
17346 _ACEOF
17347 cat confdefs.h >>conftest.$ac_ext
17348 cat >>conftest.$ac_ext <<_ACEOF
17349 /* end confdefs.h. */
17351 #include <netinet/in.h>
17352 #ifdef __KAME__
17354 #endif
17355 _ACEOF
17356 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17357 $EGREP "yes" >/dev/null 2>&1; then
17358 ipv6type=$i;
17359 ipv6lib=inet6
17360 ipv6libdir=/usr/local/v6/lib
17361 ipv6trylibc=yes
17363 rm -f conftest*
17366 linux-glibc)
17367 cat >conftest.$ac_ext <<_ACEOF
17368 /* confdefs.h. */
17369 _ACEOF
17370 cat confdefs.h >>conftest.$ac_ext
17371 cat >>conftest.$ac_ext <<_ACEOF
17372 /* end confdefs.h. */
17374 #include <features.h>
17375 #if defined(__GLIBC__) && ((__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2))
17377 #endif
17378 _ACEOF
17379 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17380 $EGREP "yes" >/dev/null 2>&1; then
17381 ipv6type=$i;
17382 ipv6trylibc=yes
17384 rm -f conftest*
17387 linux-inet6)
17388 if test -d /usr/inet6; then
17389 ipv6type=$i
17390 ipv6lib=inet6
17391 ipv6libdir=/usr/inet6/lib
17392 BASECFLAGS="-I/usr/inet6/include $BASECFLAGS"
17395 solaris)
17396 if test -f /etc/netconfig; then
17397 if /usr/xpg4/bin/grep -q tcp6 /etc/netconfig; then
17398 ipv6type=$i
17399 ipv6trylibc=yes
17403 toshiba)
17404 cat >conftest.$ac_ext <<_ACEOF
17405 /* confdefs.h. */
17406 _ACEOF
17407 cat confdefs.h >>conftest.$ac_ext
17408 cat >>conftest.$ac_ext <<_ACEOF
17409 /* end confdefs.h. */
17411 #include <sys/param.h>
17412 #ifdef _TOSHIBA_INET6
17414 #endif
17415 _ACEOF
17416 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17417 $EGREP "yes" >/dev/null 2>&1; then
17418 ipv6type=$i;
17419 ipv6lib=inet6;
17420 ipv6libdir=/usr/local/v6/lib
17422 rm -f conftest*
17425 v6d)
17426 cat >conftest.$ac_ext <<_ACEOF
17427 /* confdefs.h. */
17428 _ACEOF
17429 cat confdefs.h >>conftest.$ac_ext
17430 cat >>conftest.$ac_ext <<_ACEOF
17431 /* end confdefs.h. */
17433 #include </usr/local/v6/include/sys/v6config.h>
17434 #ifdef __V6D__
17436 #endif
17437 _ACEOF
17438 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17439 $EGREP "yes" >/dev/null 2>&1; then
17440 ipv6type=$i;
17441 ipv6lib=v6;
17442 ipv6libdir=/usr/local/v6/lib;
17443 BASECFLAGS="-I/usr/local/v6/include $BASECFLAGS"
17445 rm -f conftest*
17448 zeta)
17449 cat >conftest.$ac_ext <<_ACEOF
17450 /* confdefs.h. */
17451 _ACEOF
17452 cat confdefs.h >>conftest.$ac_ext
17453 cat >>conftest.$ac_ext <<_ACEOF
17454 /* end confdefs.h. */
17456 #include <sys/param.h>
17457 #ifdef _ZETA_MINAMI_INET6
17459 #endif
17460 _ACEOF
17461 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17462 $EGREP "yes" >/dev/null 2>&1; then
17463 ipv6type=$i;
17464 ipv6lib=inet6;
17465 ipv6libdir=/usr/local/v6/lib
17467 rm -f conftest*
17470 esac
17471 if test "$ipv6type" != "unknown"; then
17472 break
17474 done
17475 { echo "$as_me:$LINENO: result: $ipv6type" >&5
17476 echo "${ECHO_T}$ipv6type" >&6; }
17479 if test "$ipv6" = "yes" -a "$ipv6lib" != "none"; then
17480 if test -d $ipv6libdir -a -f $ipv6libdir/lib$ipv6lib.a; then
17481 LIBS="-L$ipv6libdir -l$ipv6lib $LIBS"
17482 echo "using lib$ipv6lib"
17483 else
17484 if test $ipv6trylibc = "yes"; then
17485 echo "using libc"
17486 else
17487 echo 'Fatal: no $ipv6lib library found. cannot continue.'
17488 echo "You need to fetch lib$ipv6lib.a from appropriate"
17489 echo 'ipv6 kit and compile beforehand.'
17490 exit 1
17495 { echo "$as_me:$LINENO: checking for OSX 10.5 SDK or later" >&5
17496 echo $ECHO_N "checking for OSX 10.5 SDK or later... $ECHO_C" >&6; }
17497 cat >conftest.$ac_ext <<_ACEOF
17498 /* confdefs.h. */
17499 _ACEOF
17500 cat confdefs.h >>conftest.$ac_ext
17501 cat >>conftest.$ac_ext <<_ACEOF
17502 /* end confdefs.h. */
17503 #include <Carbon/Carbon.h>
17505 main ()
17507 FSIORefNum fRef = 0
17509 return 0;
17511 _ACEOF
17512 rm -f conftest.$ac_objext
17513 if { (ac_try="$ac_compile"
17514 case "(($ac_try" in
17515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17516 *) ac_try_echo=$ac_try;;
17517 esac
17518 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17519 (eval "$ac_compile") 2>conftest.er1
17520 ac_status=$?
17521 grep -v '^ *+' conftest.er1 >conftest.err
17522 rm -f conftest.er1
17523 cat conftest.err >&5
17524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17525 (exit $ac_status); } && {
17526 test -z "$ac_c_werror_flag" ||
17527 test ! -s conftest.err
17528 } && test -s conftest.$ac_objext; then
17530 cat >>confdefs.h <<\_ACEOF
17531 #define HAVE_OSX105_SDK 1
17532 _ACEOF
17534 { echo "$as_me:$LINENO: result: yes" >&5
17535 echo "${ECHO_T}yes" >&6; }
17536 else
17537 echo "$as_me: failed program was:" >&5
17538 sed 's/^/| /' conftest.$ac_ext >&5
17540 { echo "$as_me:$LINENO: result: no" >&5
17541 echo "${ECHO_T}no" >&6; }
17545 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17547 # Check for --with-doc-strings
17548 { echo "$as_me:$LINENO: checking for --with-doc-strings" >&5
17549 echo $ECHO_N "checking for --with-doc-strings... $ECHO_C" >&6; }
17551 # Check whether --with-doc-strings was given.
17552 if test "${with_doc_strings+set}" = set; then
17553 withval=$with_doc_strings;
17557 if test -z "$with_doc_strings"
17558 then with_doc_strings="yes"
17560 if test "$with_doc_strings" != "no"
17561 then
17563 cat >>confdefs.h <<\_ACEOF
17564 #define WITH_DOC_STRINGS 1
17565 _ACEOF
17568 { echo "$as_me:$LINENO: result: $with_doc_strings" >&5
17569 echo "${ECHO_T}$with_doc_strings" >&6; }
17571 # Check for Python-specific malloc support
17572 { echo "$as_me:$LINENO: checking for --with-tsc" >&5
17573 echo $ECHO_N "checking for --with-tsc... $ECHO_C" >&6; }
17575 # Check whether --with-tsc was given.
17576 if test "${with_tsc+set}" = set; then
17577 withval=$with_tsc;
17578 if test "$withval" != no
17579 then
17581 cat >>confdefs.h <<\_ACEOF
17582 #define WITH_TSC 1
17583 _ACEOF
17585 { echo "$as_me:$LINENO: result: yes" >&5
17586 echo "${ECHO_T}yes" >&6; }
17587 else { echo "$as_me:$LINENO: result: no" >&5
17588 echo "${ECHO_T}no" >&6; }
17590 else
17591 { echo "$as_me:$LINENO: result: no" >&5
17592 echo "${ECHO_T}no" >&6; }
17596 # Check for Python-specific malloc support
17597 { echo "$as_me:$LINENO: checking for --with-pymalloc" >&5
17598 echo $ECHO_N "checking for --with-pymalloc... $ECHO_C" >&6; }
17600 # Check whether --with-pymalloc was given.
17601 if test "${with_pymalloc+set}" = set; then
17602 withval=$with_pymalloc;
17606 if test -z "$with_pymalloc"
17607 then with_pymalloc="yes"
17609 if test "$with_pymalloc" != "no"
17610 then
17612 cat >>confdefs.h <<\_ACEOF
17613 #define WITH_PYMALLOC 1
17614 _ACEOF
17617 { echo "$as_me:$LINENO: result: $with_pymalloc" >&5
17618 echo "${ECHO_T}$with_pymalloc" >&6; }
17620 # Check for Valgrind support
17621 { echo "$as_me:$LINENO: checking for --with-valgrind" >&5
17622 echo $ECHO_N "checking for --with-valgrind... $ECHO_C" >&6; }
17624 # Check whether --with-valgrind was given.
17625 if test "${with_valgrind+set}" = set; then
17626 withval=$with_valgrind;
17627 else
17628 with_valgrind=no
17631 { echo "$as_me:$LINENO: result: $with_valgrind" >&5
17632 echo "${ECHO_T}$with_valgrind" >&6; }
17633 if test "$with_valgrind" != no; then
17634 if test "${ac_cv_header_valgrind_valgrind_h+set}" = set; then
17635 { echo "$as_me:$LINENO: checking for valgrind/valgrind.h" >&5
17636 echo $ECHO_N "checking for valgrind/valgrind.h... $ECHO_C" >&6; }
17637 if test "${ac_cv_header_valgrind_valgrind_h+set}" = set; then
17638 echo $ECHO_N "(cached) $ECHO_C" >&6
17640 { echo "$as_me:$LINENO: result: $ac_cv_header_valgrind_valgrind_h" >&5
17641 echo "${ECHO_T}$ac_cv_header_valgrind_valgrind_h" >&6; }
17642 else
17643 # Is the header compilable?
17644 { echo "$as_me:$LINENO: checking valgrind/valgrind.h usability" >&5
17645 echo $ECHO_N "checking valgrind/valgrind.h usability... $ECHO_C" >&6; }
17646 cat >conftest.$ac_ext <<_ACEOF
17647 /* confdefs.h. */
17648 _ACEOF
17649 cat confdefs.h >>conftest.$ac_ext
17650 cat >>conftest.$ac_ext <<_ACEOF
17651 /* end confdefs.h. */
17652 $ac_includes_default
17653 #include <valgrind/valgrind.h>
17654 _ACEOF
17655 rm -f conftest.$ac_objext
17656 if { (ac_try="$ac_compile"
17657 case "(($ac_try" in
17658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17659 *) ac_try_echo=$ac_try;;
17660 esac
17661 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17662 (eval "$ac_compile") 2>conftest.er1
17663 ac_status=$?
17664 grep -v '^ *+' conftest.er1 >conftest.err
17665 rm -f conftest.er1
17666 cat conftest.err >&5
17667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17668 (exit $ac_status); } && {
17669 test -z "$ac_c_werror_flag" ||
17670 test ! -s conftest.err
17671 } && test -s conftest.$ac_objext; then
17672 ac_header_compiler=yes
17673 else
17674 echo "$as_me: failed program was:" >&5
17675 sed 's/^/| /' conftest.$ac_ext >&5
17677 ac_header_compiler=no
17680 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17681 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17682 echo "${ECHO_T}$ac_header_compiler" >&6; }
17684 # Is the header present?
17685 { echo "$as_me:$LINENO: checking valgrind/valgrind.h presence" >&5
17686 echo $ECHO_N "checking valgrind/valgrind.h presence... $ECHO_C" >&6; }
17687 cat >conftest.$ac_ext <<_ACEOF
17688 /* confdefs.h. */
17689 _ACEOF
17690 cat confdefs.h >>conftest.$ac_ext
17691 cat >>conftest.$ac_ext <<_ACEOF
17692 /* end confdefs.h. */
17693 #include <valgrind/valgrind.h>
17694 _ACEOF
17695 if { (ac_try="$ac_cpp conftest.$ac_ext"
17696 case "(($ac_try" in
17697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17698 *) ac_try_echo=$ac_try;;
17699 esac
17700 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17701 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17702 ac_status=$?
17703 grep -v '^ *+' conftest.er1 >conftest.err
17704 rm -f conftest.er1
17705 cat conftest.err >&5
17706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17707 (exit $ac_status); } >/dev/null && {
17708 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17709 test ! -s conftest.err
17710 }; then
17711 ac_header_preproc=yes
17712 else
17713 echo "$as_me: failed program was:" >&5
17714 sed 's/^/| /' conftest.$ac_ext >&5
17716 ac_header_preproc=no
17719 rm -f conftest.err conftest.$ac_ext
17720 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17721 echo "${ECHO_T}$ac_header_preproc" >&6; }
17723 # So? What about this header?
17724 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17725 yes:no: )
17726 { echo "$as_me:$LINENO: WARNING: valgrind/valgrind.h: accepted by the compiler, rejected by the preprocessor!" >&5
17727 echo "$as_me: WARNING: valgrind/valgrind.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17728 { echo "$as_me:$LINENO: WARNING: valgrind/valgrind.h: proceeding with the compiler's result" >&5
17729 echo "$as_me: WARNING: valgrind/valgrind.h: proceeding with the compiler's result" >&2;}
17730 ac_header_preproc=yes
17732 no:yes:* )
17733 { echo "$as_me:$LINENO: WARNING: valgrind/valgrind.h: present but cannot be compiled" >&5
17734 echo "$as_me: WARNING: valgrind/valgrind.h: present but cannot be compiled" >&2;}
17735 { echo "$as_me:$LINENO: WARNING: valgrind/valgrind.h: check for missing prerequisite headers?" >&5
17736 echo "$as_me: WARNING: valgrind/valgrind.h: check for missing prerequisite headers?" >&2;}
17737 { echo "$as_me:$LINENO: WARNING: valgrind/valgrind.h: see the Autoconf documentation" >&5
17738 echo "$as_me: WARNING: valgrind/valgrind.h: see the Autoconf documentation" >&2;}
17739 { echo "$as_me:$LINENO: WARNING: valgrind/valgrind.h: section \"Present But Cannot Be Compiled\"" >&5
17740 echo "$as_me: WARNING: valgrind/valgrind.h: section \"Present But Cannot Be Compiled\"" >&2;}
17741 { echo "$as_me:$LINENO: WARNING: valgrind/valgrind.h: proceeding with the preprocessor's result" >&5
17742 echo "$as_me: WARNING: valgrind/valgrind.h: proceeding with the preprocessor's result" >&2;}
17743 { echo "$as_me:$LINENO: WARNING: valgrind/valgrind.h: in the future, the compiler will take precedence" >&5
17744 echo "$as_me: WARNING: valgrind/valgrind.h: in the future, the compiler will take precedence" >&2;}
17745 ( cat <<\_ASBOX
17746 ## -------------------------------------- ##
17747 ## Report this to http://bugs.python.org/ ##
17748 ## -------------------------------------- ##
17749 _ASBOX
17750 ) | sed "s/^/$as_me: WARNING: /" >&2
17752 esac
17753 { echo "$as_me:$LINENO: checking for valgrind/valgrind.h" >&5
17754 echo $ECHO_N "checking for valgrind/valgrind.h... $ECHO_C" >&6; }
17755 if test "${ac_cv_header_valgrind_valgrind_h+set}" = set; then
17756 echo $ECHO_N "(cached) $ECHO_C" >&6
17757 else
17758 ac_cv_header_valgrind_valgrind_h=$ac_header_preproc
17760 { echo "$as_me:$LINENO: result: $ac_cv_header_valgrind_valgrind_h" >&5
17761 echo "${ECHO_T}$ac_cv_header_valgrind_valgrind_h" >&6; }
17764 if test $ac_cv_header_valgrind_valgrind_h = yes; then
17766 cat >>confdefs.h <<\_ACEOF
17767 #define WITH_VALGRIND 1
17768 _ACEOF
17770 else
17771 { { echo "$as_me:$LINENO: error: Valgrind support requested but headers not available" >&5
17772 echo "$as_me: error: Valgrind support requested but headers not available" >&2;}
17773 { (exit 1); exit 1; }; }
17780 # Check for --with-wctype-functions
17781 { echo "$as_me:$LINENO: checking for --with-wctype-functions" >&5
17782 echo $ECHO_N "checking for --with-wctype-functions... $ECHO_C" >&6; }
17784 # Check whether --with-wctype-functions was given.
17785 if test "${with_wctype_functions+set}" = set; then
17786 withval=$with_wctype_functions;
17787 if test "$withval" != no
17788 then
17790 cat >>confdefs.h <<\_ACEOF
17791 #define WANT_WCTYPE_FUNCTIONS 1
17792 _ACEOF
17794 { echo "$as_me:$LINENO: result: yes" >&5
17795 echo "${ECHO_T}yes" >&6; }
17796 else { echo "$as_me:$LINENO: result: no" >&5
17797 echo "${ECHO_T}no" >&6; }
17799 else
17800 { echo "$as_me:$LINENO: result: no" >&5
17801 echo "${ECHO_T}no" >&6; }
17805 # -I${DLINCLDIR} is added to the compile rule for importdl.o
17807 DLINCLDIR=.
17809 # the dlopen() function means we might want to use dynload_shlib.o. some
17810 # platforms, such as AIX, have dlopen(), but don't want to use it.
17812 for ac_func in dlopen
17814 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17815 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17816 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17817 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17818 echo $ECHO_N "(cached) $ECHO_C" >&6
17819 else
17820 cat >conftest.$ac_ext <<_ACEOF
17821 /* confdefs.h. */
17822 _ACEOF
17823 cat confdefs.h >>conftest.$ac_ext
17824 cat >>conftest.$ac_ext <<_ACEOF
17825 /* end confdefs.h. */
17826 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17827 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17828 #define $ac_func innocuous_$ac_func
17830 /* System header to define __stub macros and hopefully few prototypes,
17831 which can conflict with char $ac_func (); below.
17832 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17833 <limits.h> exists even on freestanding compilers. */
17835 #ifdef __STDC__
17836 # include <limits.h>
17837 #else
17838 # include <assert.h>
17839 #endif
17841 #undef $ac_func
17843 /* Override any GCC internal prototype to avoid an error.
17844 Use char because int might match the return type of a GCC
17845 builtin and then its argument prototype would still apply. */
17846 #ifdef __cplusplus
17847 extern "C"
17848 #endif
17849 char $ac_func ();
17850 /* The GNU C library defines this for functions which it implements
17851 to always fail with ENOSYS. Some functions are actually named
17852 something starting with __ and the normal name is an alias. */
17853 #if defined __stub_$ac_func || defined __stub___$ac_func
17854 choke me
17855 #endif
17858 main ()
17860 return $ac_func ();
17862 return 0;
17864 _ACEOF
17865 rm -f conftest.$ac_objext conftest$ac_exeext
17866 if { (ac_try="$ac_link"
17867 case "(($ac_try" in
17868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17869 *) ac_try_echo=$ac_try;;
17870 esac
17871 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17872 (eval "$ac_link") 2>conftest.er1
17873 ac_status=$?
17874 grep -v '^ *+' conftest.er1 >conftest.err
17875 rm -f conftest.er1
17876 cat conftest.err >&5
17877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17878 (exit $ac_status); } && {
17879 test -z "$ac_c_werror_flag" ||
17880 test ! -s conftest.err
17881 } && test -s conftest$ac_exeext &&
17882 $as_test_x conftest$ac_exeext; then
17883 eval "$as_ac_var=yes"
17884 else
17885 echo "$as_me: failed program was:" >&5
17886 sed 's/^/| /' conftest.$ac_ext >&5
17888 eval "$as_ac_var=no"
17891 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17892 conftest$ac_exeext conftest.$ac_ext
17894 ac_res=`eval echo '${'$as_ac_var'}'`
17895 { echo "$as_me:$LINENO: result: $ac_res" >&5
17896 echo "${ECHO_T}$ac_res" >&6; }
17897 if test `eval echo '${'$as_ac_var'}'` = yes; then
17898 cat >>confdefs.h <<_ACEOF
17899 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17900 _ACEOF
17903 done
17906 # DYNLOADFILE specifies which dynload_*.o file we will use for dynamic
17907 # loading of modules.
17909 { echo "$as_me:$LINENO: checking DYNLOADFILE" >&5
17910 echo $ECHO_N "checking DYNLOADFILE... $ECHO_C" >&6; }
17911 if test -z "$DYNLOADFILE"
17912 then
17913 case $ac_sys_system/$ac_sys_release in
17914 AIX*) # Use dynload_shlib.c and dlopen() if we have it; otherwise dynload_aix.c
17915 if test "$ac_cv_func_dlopen" = yes
17916 then DYNLOADFILE="dynload_shlib.o"
17917 else DYNLOADFILE="dynload_aix.o"
17920 BeOS*) DYNLOADFILE="dynload_beos.o";;
17921 hp*|HP*) DYNLOADFILE="dynload_hpux.o";;
17922 # Use dynload_next.c only on 10.2 and below, which don't have native dlopen()
17923 Darwin/[0156]\..*) DYNLOADFILE="dynload_next.o";;
17924 atheos*) DYNLOADFILE="dynload_atheos.o";;
17926 # use dynload_shlib.c and dlopen() if we have it; otherwise stub
17927 # out any dynamic loading
17928 if test "$ac_cv_func_dlopen" = yes
17929 then DYNLOADFILE="dynload_shlib.o"
17930 else DYNLOADFILE="dynload_stub.o"
17933 esac
17935 { echo "$as_me:$LINENO: result: $DYNLOADFILE" >&5
17936 echo "${ECHO_T}$DYNLOADFILE" >&6; }
17937 if test "$DYNLOADFILE" != "dynload_stub.o"
17938 then
17940 cat >>confdefs.h <<\_ACEOF
17941 #define HAVE_DYNAMIC_LOADING 1
17942 _ACEOF
17946 # MACHDEP_OBJS can be set to platform-specific object files needed by Python
17949 { echo "$as_me:$LINENO: checking MACHDEP_OBJS" >&5
17950 echo $ECHO_N "checking MACHDEP_OBJS... $ECHO_C" >&6; }
17951 if test -z "$MACHDEP_OBJS"
17952 then
17953 MACHDEP_OBJS=$extra_machdep_objs
17954 else
17955 MACHDEP_OBJS="$MACHDEP_OBJS $extra_machdep_objs"
17957 { echo "$as_me:$LINENO: result: MACHDEP_OBJS" >&5
17958 echo "${ECHO_T}MACHDEP_OBJS" >&6; }
17960 # checks for library functions
18060 for ac_func in alarm setitimer getitimer bind_textdomain_codeset chown \
18061 clock confstr ctermid execv fchmod fchown fork fpathconf ftime ftruncate \
18062 gai_strerror getgroups getlogin getloadavg getpeername getpgid getpid \
18063 getpriority getresuid getresgid getpwent getspnam getspent getsid getwd \
18064 initgroups kill killpg lchmod lchown lstat mkfifo mknod mktime \
18065 mremap nice pathconf pause plock poll pthread_init \
18066 putenv readlink realpath \
18067 select sem_open sem_timedwait sem_getvalue sem_unlink setegid seteuid \
18068 setgid \
18069 setlocale setregid setreuid setsid setpgid setpgrp setuid setvbuf snprintf \
18070 setlocale setregid setreuid setresuid setresgid \
18071 setsid setpgid setpgrp setuid setvbuf snprintf \
18072 sigaction siginterrupt sigrelse strftime \
18073 sysconf tcgetpgrp tcsetpgrp tempnam timegm times tmpfile tmpnam tmpnam_r \
18074 truncate uname unsetenv utimes waitpid wait3 wait4 wcscoll _getpty
18076 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18077 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18078 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18079 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18080 echo $ECHO_N "(cached) $ECHO_C" >&6
18081 else
18082 cat >conftest.$ac_ext <<_ACEOF
18083 /* confdefs.h. */
18084 _ACEOF
18085 cat confdefs.h >>conftest.$ac_ext
18086 cat >>conftest.$ac_ext <<_ACEOF
18087 /* end confdefs.h. */
18088 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18089 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18090 #define $ac_func innocuous_$ac_func
18092 /* System header to define __stub macros and hopefully few prototypes,
18093 which can conflict with char $ac_func (); below.
18094 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18095 <limits.h> exists even on freestanding compilers. */
18097 #ifdef __STDC__
18098 # include <limits.h>
18099 #else
18100 # include <assert.h>
18101 #endif
18103 #undef $ac_func
18105 /* Override any GCC internal prototype to avoid an error.
18106 Use char because int might match the return type of a GCC
18107 builtin and then its argument prototype would still apply. */
18108 #ifdef __cplusplus
18109 extern "C"
18110 #endif
18111 char $ac_func ();
18112 /* The GNU C library defines this for functions which it implements
18113 to always fail with ENOSYS. Some functions are actually named
18114 something starting with __ and the normal name is an alias. */
18115 #if defined __stub_$ac_func || defined __stub___$ac_func
18116 choke me
18117 #endif
18120 main ()
18122 return $ac_func ();
18124 return 0;
18126 _ACEOF
18127 rm -f conftest.$ac_objext conftest$ac_exeext
18128 if { (ac_try="$ac_link"
18129 case "(($ac_try" in
18130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18131 *) ac_try_echo=$ac_try;;
18132 esac
18133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18134 (eval "$ac_link") 2>conftest.er1
18135 ac_status=$?
18136 grep -v '^ *+' conftest.er1 >conftest.err
18137 rm -f conftest.er1
18138 cat conftest.err >&5
18139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18140 (exit $ac_status); } && {
18141 test -z "$ac_c_werror_flag" ||
18142 test ! -s conftest.err
18143 } && test -s conftest$ac_exeext &&
18144 $as_test_x conftest$ac_exeext; then
18145 eval "$as_ac_var=yes"
18146 else
18147 echo "$as_me: failed program was:" >&5
18148 sed 's/^/| /' conftest.$ac_ext >&5
18150 eval "$as_ac_var=no"
18153 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18154 conftest$ac_exeext conftest.$ac_ext
18156 ac_res=`eval echo '${'$as_ac_var'}'`
18157 { echo "$as_me:$LINENO: result: $ac_res" >&5
18158 echo "${ECHO_T}$ac_res" >&6; }
18159 if test `eval echo '${'$as_ac_var'}'` = yes; then
18160 cat >>confdefs.h <<_ACEOF
18161 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18162 _ACEOF
18165 done
18168 # For some functions, having a definition is not sufficient, since
18169 # we want to take their address.
18170 { echo "$as_me:$LINENO: checking for chroot" >&5
18171 echo $ECHO_N "checking for chroot... $ECHO_C" >&6; }
18172 cat >conftest.$ac_ext <<_ACEOF
18173 /* confdefs.h. */
18174 _ACEOF
18175 cat confdefs.h >>conftest.$ac_ext
18176 cat >>conftest.$ac_ext <<_ACEOF
18177 /* end confdefs.h. */
18178 #include <unistd.h>
18180 main ()
18182 void *x=chroot
18184 return 0;
18186 _ACEOF
18187 rm -f conftest.$ac_objext
18188 if { (ac_try="$ac_compile"
18189 case "(($ac_try" in
18190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18191 *) ac_try_echo=$ac_try;;
18192 esac
18193 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18194 (eval "$ac_compile") 2>conftest.er1
18195 ac_status=$?
18196 grep -v '^ *+' conftest.er1 >conftest.err
18197 rm -f conftest.er1
18198 cat conftest.err >&5
18199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18200 (exit $ac_status); } && {
18201 test -z "$ac_c_werror_flag" ||
18202 test ! -s conftest.err
18203 } && test -s conftest.$ac_objext; then
18205 cat >>confdefs.h <<\_ACEOF
18206 #define HAVE_CHROOT 1
18207 _ACEOF
18209 { echo "$as_me:$LINENO: result: yes" >&5
18210 echo "${ECHO_T}yes" >&6; }
18211 else
18212 echo "$as_me: failed program was:" >&5
18213 sed 's/^/| /' conftest.$ac_ext >&5
18215 { echo "$as_me:$LINENO: result: no" >&5
18216 echo "${ECHO_T}no" >&6; }
18220 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18221 { echo "$as_me:$LINENO: checking for link" >&5
18222 echo $ECHO_N "checking for link... $ECHO_C" >&6; }
18223 cat >conftest.$ac_ext <<_ACEOF
18224 /* confdefs.h. */
18225 _ACEOF
18226 cat confdefs.h >>conftest.$ac_ext
18227 cat >>conftest.$ac_ext <<_ACEOF
18228 /* end confdefs.h. */
18229 #include <unistd.h>
18231 main ()
18233 void *x=link
18235 return 0;
18237 _ACEOF
18238 rm -f conftest.$ac_objext
18239 if { (ac_try="$ac_compile"
18240 case "(($ac_try" in
18241 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18242 *) ac_try_echo=$ac_try;;
18243 esac
18244 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18245 (eval "$ac_compile") 2>conftest.er1
18246 ac_status=$?
18247 grep -v '^ *+' conftest.er1 >conftest.err
18248 rm -f conftest.er1
18249 cat conftest.err >&5
18250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18251 (exit $ac_status); } && {
18252 test -z "$ac_c_werror_flag" ||
18253 test ! -s conftest.err
18254 } && test -s conftest.$ac_objext; then
18256 cat >>confdefs.h <<\_ACEOF
18257 #define HAVE_LINK 1
18258 _ACEOF
18260 { echo "$as_me:$LINENO: result: yes" >&5
18261 echo "${ECHO_T}yes" >&6; }
18262 else
18263 echo "$as_me: failed program was:" >&5
18264 sed 's/^/| /' conftest.$ac_ext >&5
18266 { echo "$as_me:$LINENO: result: no" >&5
18267 echo "${ECHO_T}no" >&6; }
18271 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18272 { echo "$as_me:$LINENO: checking for symlink" >&5
18273 echo $ECHO_N "checking for symlink... $ECHO_C" >&6; }
18274 cat >conftest.$ac_ext <<_ACEOF
18275 /* confdefs.h. */
18276 _ACEOF
18277 cat confdefs.h >>conftest.$ac_ext
18278 cat >>conftest.$ac_ext <<_ACEOF
18279 /* end confdefs.h. */
18280 #include <unistd.h>
18282 main ()
18284 void *x=symlink
18286 return 0;
18288 _ACEOF
18289 rm -f conftest.$ac_objext
18290 if { (ac_try="$ac_compile"
18291 case "(($ac_try" in
18292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18293 *) ac_try_echo=$ac_try;;
18294 esac
18295 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18296 (eval "$ac_compile") 2>conftest.er1
18297 ac_status=$?
18298 grep -v '^ *+' conftest.er1 >conftest.err
18299 rm -f conftest.er1
18300 cat conftest.err >&5
18301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18302 (exit $ac_status); } && {
18303 test -z "$ac_c_werror_flag" ||
18304 test ! -s conftest.err
18305 } && test -s conftest.$ac_objext; then
18307 cat >>confdefs.h <<\_ACEOF
18308 #define HAVE_SYMLINK 1
18309 _ACEOF
18311 { echo "$as_me:$LINENO: result: yes" >&5
18312 echo "${ECHO_T}yes" >&6; }
18313 else
18314 echo "$as_me: failed program was:" >&5
18315 sed 's/^/| /' conftest.$ac_ext >&5
18317 { echo "$as_me:$LINENO: result: no" >&5
18318 echo "${ECHO_T}no" >&6; }
18322 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18323 { echo "$as_me:$LINENO: checking for fchdir" >&5
18324 echo $ECHO_N "checking for fchdir... $ECHO_C" >&6; }
18325 cat >conftest.$ac_ext <<_ACEOF
18326 /* confdefs.h. */
18327 _ACEOF
18328 cat confdefs.h >>conftest.$ac_ext
18329 cat >>conftest.$ac_ext <<_ACEOF
18330 /* end confdefs.h. */
18331 #include <unistd.h>
18333 main ()
18335 void *x=fchdir
18337 return 0;
18339 _ACEOF
18340 rm -f conftest.$ac_objext
18341 if { (ac_try="$ac_compile"
18342 case "(($ac_try" in
18343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18344 *) ac_try_echo=$ac_try;;
18345 esac
18346 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18347 (eval "$ac_compile") 2>conftest.er1
18348 ac_status=$?
18349 grep -v '^ *+' conftest.er1 >conftest.err
18350 rm -f conftest.er1
18351 cat conftest.err >&5
18352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18353 (exit $ac_status); } && {
18354 test -z "$ac_c_werror_flag" ||
18355 test ! -s conftest.err
18356 } && test -s conftest.$ac_objext; then
18358 cat >>confdefs.h <<\_ACEOF
18359 #define HAVE_FCHDIR 1
18360 _ACEOF
18362 { echo "$as_me:$LINENO: result: yes" >&5
18363 echo "${ECHO_T}yes" >&6; }
18364 else
18365 echo "$as_me: failed program was:" >&5
18366 sed 's/^/| /' conftest.$ac_ext >&5
18368 { echo "$as_me:$LINENO: result: no" >&5
18369 echo "${ECHO_T}no" >&6; }
18373 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18374 { echo "$as_me:$LINENO: checking for fsync" >&5
18375 echo $ECHO_N "checking for fsync... $ECHO_C" >&6; }
18376 cat >conftest.$ac_ext <<_ACEOF
18377 /* confdefs.h. */
18378 _ACEOF
18379 cat confdefs.h >>conftest.$ac_ext
18380 cat >>conftest.$ac_ext <<_ACEOF
18381 /* end confdefs.h. */
18382 #include <unistd.h>
18384 main ()
18386 void *x=fsync
18388 return 0;
18390 _ACEOF
18391 rm -f conftest.$ac_objext
18392 if { (ac_try="$ac_compile"
18393 case "(($ac_try" in
18394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18395 *) ac_try_echo=$ac_try;;
18396 esac
18397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18398 (eval "$ac_compile") 2>conftest.er1
18399 ac_status=$?
18400 grep -v '^ *+' conftest.er1 >conftest.err
18401 rm -f conftest.er1
18402 cat conftest.err >&5
18403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18404 (exit $ac_status); } && {
18405 test -z "$ac_c_werror_flag" ||
18406 test ! -s conftest.err
18407 } && test -s conftest.$ac_objext; then
18409 cat >>confdefs.h <<\_ACEOF
18410 #define HAVE_FSYNC 1
18411 _ACEOF
18413 { echo "$as_me:$LINENO: result: yes" >&5
18414 echo "${ECHO_T}yes" >&6; }
18415 else
18416 echo "$as_me: failed program was:" >&5
18417 sed 's/^/| /' conftest.$ac_ext >&5
18419 { echo "$as_me:$LINENO: result: no" >&5
18420 echo "${ECHO_T}no" >&6; }
18424 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18425 { echo "$as_me:$LINENO: checking for fdatasync" >&5
18426 echo $ECHO_N "checking for fdatasync... $ECHO_C" >&6; }
18427 cat >conftest.$ac_ext <<_ACEOF
18428 /* confdefs.h. */
18429 _ACEOF
18430 cat confdefs.h >>conftest.$ac_ext
18431 cat >>conftest.$ac_ext <<_ACEOF
18432 /* end confdefs.h. */
18433 #include <unistd.h>
18435 main ()
18437 void *x=fdatasync
18439 return 0;
18441 _ACEOF
18442 rm -f conftest.$ac_objext
18443 if { (ac_try="$ac_compile"
18444 case "(($ac_try" in
18445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18446 *) ac_try_echo=$ac_try;;
18447 esac
18448 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18449 (eval "$ac_compile") 2>conftest.er1
18450 ac_status=$?
18451 grep -v '^ *+' conftest.er1 >conftest.err
18452 rm -f conftest.er1
18453 cat conftest.err >&5
18454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18455 (exit $ac_status); } && {
18456 test -z "$ac_c_werror_flag" ||
18457 test ! -s conftest.err
18458 } && test -s conftest.$ac_objext; then
18460 cat >>confdefs.h <<\_ACEOF
18461 #define HAVE_FDATASYNC 1
18462 _ACEOF
18464 { echo "$as_me:$LINENO: result: yes" >&5
18465 echo "${ECHO_T}yes" >&6; }
18466 else
18467 echo "$as_me: failed program was:" >&5
18468 sed 's/^/| /' conftest.$ac_ext >&5
18470 { echo "$as_me:$LINENO: result: no" >&5
18471 echo "${ECHO_T}no" >&6; }
18475 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18476 { echo "$as_me:$LINENO: checking for epoll" >&5
18477 echo $ECHO_N "checking for epoll... $ECHO_C" >&6; }
18478 cat >conftest.$ac_ext <<_ACEOF
18479 /* confdefs.h. */
18480 _ACEOF
18481 cat confdefs.h >>conftest.$ac_ext
18482 cat >>conftest.$ac_ext <<_ACEOF
18483 /* end confdefs.h. */
18484 #include <sys/epoll.h>
18486 main ()
18488 void *x=epoll_create
18490 return 0;
18492 _ACEOF
18493 rm -f conftest.$ac_objext
18494 if { (ac_try="$ac_compile"
18495 case "(($ac_try" in
18496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18497 *) ac_try_echo=$ac_try;;
18498 esac
18499 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18500 (eval "$ac_compile") 2>conftest.er1
18501 ac_status=$?
18502 grep -v '^ *+' conftest.er1 >conftest.err
18503 rm -f conftest.er1
18504 cat conftest.err >&5
18505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18506 (exit $ac_status); } && {
18507 test -z "$ac_c_werror_flag" ||
18508 test ! -s conftest.err
18509 } && test -s conftest.$ac_objext; then
18511 cat >>confdefs.h <<\_ACEOF
18512 #define HAVE_EPOLL 1
18513 _ACEOF
18515 { echo "$as_me:$LINENO: result: yes" >&5
18516 echo "${ECHO_T}yes" >&6; }
18517 else
18518 echo "$as_me: failed program was:" >&5
18519 sed 's/^/| /' conftest.$ac_ext >&5
18521 { echo "$as_me:$LINENO: result: no" >&5
18522 echo "${ECHO_T}no" >&6; }
18526 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18527 { echo "$as_me:$LINENO: checking for kqueue" >&5
18528 echo $ECHO_N "checking for kqueue... $ECHO_C" >&6; }
18529 cat >conftest.$ac_ext <<_ACEOF
18530 /* confdefs.h. */
18531 _ACEOF
18532 cat confdefs.h >>conftest.$ac_ext
18533 cat >>conftest.$ac_ext <<_ACEOF
18534 /* end confdefs.h. */
18536 #include <sys/types.h>
18537 #include <sys/event.h>
18540 main ()
18542 int x=kqueue()
18544 return 0;
18546 _ACEOF
18547 rm -f conftest.$ac_objext
18548 if { (ac_try="$ac_compile"
18549 case "(($ac_try" in
18550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18551 *) ac_try_echo=$ac_try;;
18552 esac
18553 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18554 (eval "$ac_compile") 2>conftest.er1
18555 ac_status=$?
18556 grep -v '^ *+' conftest.er1 >conftest.err
18557 rm -f conftest.er1
18558 cat conftest.err >&5
18559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18560 (exit $ac_status); } && {
18561 test -z "$ac_c_werror_flag" ||
18562 test ! -s conftest.err
18563 } && test -s conftest.$ac_objext; then
18565 cat >>confdefs.h <<\_ACEOF
18566 #define HAVE_KQUEUE 1
18567 _ACEOF
18569 { echo "$as_me:$LINENO: result: yes" >&5
18570 echo "${ECHO_T}yes" >&6; }
18571 else
18572 echo "$as_me: failed program was:" >&5
18573 sed 's/^/| /' conftest.$ac_ext >&5
18575 { echo "$as_me:$LINENO: result: no" >&5
18576 echo "${ECHO_T}no" >&6; }
18580 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18581 # On some systems (eg. FreeBSD 5), we would find a definition of the
18582 # functions ctermid_r, setgroups in the library, but no prototype
18583 # (e.g. because we use _XOPEN_SOURCE). See whether we can take their
18584 # address to avoid compiler warnings and potential miscompilations
18585 # because of the missing prototypes.
18587 { echo "$as_me:$LINENO: checking for ctermid_r" >&5
18588 echo $ECHO_N "checking for ctermid_r... $ECHO_C" >&6; }
18589 cat >conftest.$ac_ext <<_ACEOF
18590 /* confdefs.h. */
18591 _ACEOF
18592 cat confdefs.h >>conftest.$ac_ext
18593 cat >>conftest.$ac_ext <<_ACEOF
18594 /* end confdefs.h. */
18596 #include "confdefs.h"
18597 #include <stdio.h>
18600 main ()
18602 void* p = ctermid_r
18604 return 0;
18606 _ACEOF
18607 rm -f conftest.$ac_objext
18608 if { (ac_try="$ac_compile"
18609 case "(($ac_try" in
18610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18611 *) ac_try_echo=$ac_try;;
18612 esac
18613 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18614 (eval "$ac_compile") 2>conftest.er1
18615 ac_status=$?
18616 grep -v '^ *+' conftest.er1 >conftest.err
18617 rm -f conftest.er1
18618 cat conftest.err >&5
18619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18620 (exit $ac_status); } && {
18621 test -z "$ac_c_werror_flag" ||
18622 test ! -s conftest.err
18623 } && test -s conftest.$ac_objext; then
18625 cat >>confdefs.h <<\_ACEOF
18626 #define HAVE_CTERMID_R 1
18627 _ACEOF
18629 { echo "$as_me:$LINENO: result: yes" >&5
18630 echo "${ECHO_T}yes" >&6; }
18631 else
18632 echo "$as_me: failed program was:" >&5
18633 sed 's/^/| /' conftest.$ac_ext >&5
18635 { echo "$as_me:$LINENO: result: no" >&5
18636 echo "${ECHO_T}no" >&6; }
18640 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18642 { echo "$as_me:$LINENO: checking for flock" >&5
18643 echo $ECHO_N "checking for flock... $ECHO_C" >&6; }
18644 cat >conftest.$ac_ext <<_ACEOF
18645 /* confdefs.h. */
18646 _ACEOF
18647 cat confdefs.h >>conftest.$ac_ext
18648 cat >>conftest.$ac_ext <<_ACEOF
18649 /* end confdefs.h. */
18651 #include "confdefs.h"
18652 #include <sys/file.h>
18655 main ()
18657 void* p = flock
18659 return 0;
18661 _ACEOF
18662 rm -f conftest.$ac_objext
18663 if { (ac_try="$ac_compile"
18664 case "(($ac_try" in
18665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18666 *) ac_try_echo=$ac_try;;
18667 esac
18668 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18669 (eval "$ac_compile") 2>conftest.er1
18670 ac_status=$?
18671 grep -v '^ *+' conftest.er1 >conftest.err
18672 rm -f conftest.er1
18673 cat conftest.err >&5
18674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18675 (exit $ac_status); } && {
18676 test -z "$ac_c_werror_flag" ||
18677 test ! -s conftest.err
18678 } && test -s conftest.$ac_objext; then
18680 cat >>confdefs.h <<\_ACEOF
18681 #define HAVE_FLOCK 1
18682 _ACEOF
18684 { echo "$as_me:$LINENO: result: yes" >&5
18685 echo "${ECHO_T}yes" >&6; }
18686 else
18687 echo "$as_me: failed program was:" >&5
18688 sed 's/^/| /' conftest.$ac_ext >&5
18690 { echo "$as_me:$LINENO: result: no" >&5
18691 echo "${ECHO_T}no" >&6; }
18695 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18697 { echo "$as_me:$LINENO: checking for getpagesize" >&5
18698 echo $ECHO_N "checking for getpagesize... $ECHO_C" >&6; }
18699 cat >conftest.$ac_ext <<_ACEOF
18700 /* confdefs.h. */
18701 _ACEOF
18702 cat confdefs.h >>conftest.$ac_ext
18703 cat >>conftest.$ac_ext <<_ACEOF
18704 /* end confdefs.h. */
18706 #include "confdefs.h"
18707 #include <unistd.h>
18710 main ()
18712 void* p = getpagesize
18714 return 0;
18716 _ACEOF
18717 rm -f conftest.$ac_objext
18718 if { (ac_try="$ac_compile"
18719 case "(($ac_try" in
18720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18721 *) ac_try_echo=$ac_try;;
18722 esac
18723 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18724 (eval "$ac_compile") 2>conftest.er1
18725 ac_status=$?
18726 grep -v '^ *+' conftest.er1 >conftest.err
18727 rm -f conftest.er1
18728 cat conftest.err >&5
18729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18730 (exit $ac_status); } && {
18731 test -z "$ac_c_werror_flag" ||
18732 test ! -s conftest.err
18733 } && test -s conftest.$ac_objext; then
18735 cat >>confdefs.h <<\_ACEOF
18736 #define HAVE_GETPAGESIZE 1
18737 _ACEOF
18739 { echo "$as_me:$LINENO: result: yes" >&5
18740 echo "${ECHO_T}yes" >&6; }
18741 else
18742 echo "$as_me: failed program was:" >&5
18743 sed 's/^/| /' conftest.$ac_ext >&5
18745 { echo "$as_me:$LINENO: result: no" >&5
18746 echo "${ECHO_T}no" >&6; }
18750 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18752 for ac_prog in true
18754 # Extract the first word of "$ac_prog", so it can be a program name with args.
18755 set dummy $ac_prog; ac_word=$2
18756 { echo "$as_me:$LINENO: checking for $ac_word" >&5
18757 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
18758 if test "${ac_cv_prog_TRUE+set}" = set; then
18759 echo $ECHO_N "(cached) $ECHO_C" >&6
18760 else
18761 if test -n "$TRUE"; then
18762 ac_cv_prog_TRUE="$TRUE" # Let the user override the test.
18763 else
18764 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18765 for as_dir in $PATH
18767 IFS=$as_save_IFS
18768 test -z "$as_dir" && as_dir=.
18769 for ac_exec_ext in '' $ac_executable_extensions; do
18770 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18771 ac_cv_prog_TRUE="$ac_prog"
18772 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18773 break 2
18775 done
18776 done
18777 IFS=$as_save_IFS
18781 TRUE=$ac_cv_prog_TRUE
18782 if test -n "$TRUE"; then
18783 { echo "$as_me:$LINENO: result: $TRUE" >&5
18784 echo "${ECHO_T}$TRUE" >&6; }
18785 else
18786 { echo "$as_me:$LINENO: result: no" >&5
18787 echo "${ECHO_T}no" >&6; }
18791 test -n "$TRUE" && break
18792 done
18793 test -n "$TRUE" || TRUE="/bin/true"
18796 { echo "$as_me:$LINENO: checking for inet_aton in -lc" >&5
18797 echo $ECHO_N "checking for inet_aton in -lc... $ECHO_C" >&6; }
18798 if test "${ac_cv_lib_c_inet_aton+set}" = set; then
18799 echo $ECHO_N "(cached) $ECHO_C" >&6
18800 else
18801 ac_check_lib_save_LIBS=$LIBS
18802 LIBS="-lc $LIBS"
18803 cat >conftest.$ac_ext <<_ACEOF
18804 /* confdefs.h. */
18805 _ACEOF
18806 cat confdefs.h >>conftest.$ac_ext
18807 cat >>conftest.$ac_ext <<_ACEOF
18808 /* end confdefs.h. */
18810 /* Override any GCC internal prototype to avoid an error.
18811 Use char because int might match the return type of a GCC
18812 builtin and then its argument prototype would still apply. */
18813 #ifdef __cplusplus
18814 extern "C"
18815 #endif
18816 char inet_aton ();
18818 main ()
18820 return inet_aton ();
18822 return 0;
18824 _ACEOF
18825 rm -f conftest.$ac_objext conftest$ac_exeext
18826 if { (ac_try="$ac_link"
18827 case "(($ac_try" in
18828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18829 *) ac_try_echo=$ac_try;;
18830 esac
18831 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18832 (eval "$ac_link") 2>conftest.er1
18833 ac_status=$?
18834 grep -v '^ *+' conftest.er1 >conftest.err
18835 rm -f conftest.er1
18836 cat conftest.err >&5
18837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18838 (exit $ac_status); } && {
18839 test -z "$ac_c_werror_flag" ||
18840 test ! -s conftest.err
18841 } && test -s conftest$ac_exeext &&
18842 $as_test_x conftest$ac_exeext; then
18843 ac_cv_lib_c_inet_aton=yes
18844 else
18845 echo "$as_me: failed program was:" >&5
18846 sed 's/^/| /' conftest.$ac_ext >&5
18848 ac_cv_lib_c_inet_aton=no
18851 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18852 conftest$ac_exeext conftest.$ac_ext
18853 LIBS=$ac_check_lib_save_LIBS
18855 { echo "$as_me:$LINENO: result: $ac_cv_lib_c_inet_aton" >&5
18856 echo "${ECHO_T}$ac_cv_lib_c_inet_aton" >&6; }
18857 if test $ac_cv_lib_c_inet_aton = yes; then
18858 $ac_cv_prog_TRUE
18859 else
18861 { echo "$as_me:$LINENO: checking for inet_aton in -lresolv" >&5
18862 echo $ECHO_N "checking for inet_aton in -lresolv... $ECHO_C" >&6; }
18863 if test "${ac_cv_lib_resolv_inet_aton+set}" = set; then
18864 echo $ECHO_N "(cached) $ECHO_C" >&6
18865 else
18866 ac_check_lib_save_LIBS=$LIBS
18867 LIBS="-lresolv $LIBS"
18868 cat >conftest.$ac_ext <<_ACEOF
18869 /* confdefs.h. */
18870 _ACEOF
18871 cat confdefs.h >>conftest.$ac_ext
18872 cat >>conftest.$ac_ext <<_ACEOF
18873 /* end confdefs.h. */
18875 /* Override any GCC internal prototype to avoid an error.
18876 Use char because int might match the return type of a GCC
18877 builtin and then its argument prototype would still apply. */
18878 #ifdef __cplusplus
18879 extern "C"
18880 #endif
18881 char inet_aton ();
18883 main ()
18885 return inet_aton ();
18887 return 0;
18889 _ACEOF
18890 rm -f conftest.$ac_objext conftest$ac_exeext
18891 if { (ac_try="$ac_link"
18892 case "(($ac_try" in
18893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18894 *) ac_try_echo=$ac_try;;
18895 esac
18896 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18897 (eval "$ac_link") 2>conftest.er1
18898 ac_status=$?
18899 grep -v '^ *+' conftest.er1 >conftest.err
18900 rm -f conftest.er1
18901 cat conftest.err >&5
18902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18903 (exit $ac_status); } && {
18904 test -z "$ac_c_werror_flag" ||
18905 test ! -s conftest.err
18906 } && test -s conftest$ac_exeext &&
18907 $as_test_x conftest$ac_exeext; then
18908 ac_cv_lib_resolv_inet_aton=yes
18909 else
18910 echo "$as_me: failed program was:" >&5
18911 sed 's/^/| /' conftest.$ac_ext >&5
18913 ac_cv_lib_resolv_inet_aton=no
18916 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18917 conftest$ac_exeext conftest.$ac_ext
18918 LIBS=$ac_check_lib_save_LIBS
18920 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_aton" >&5
18921 echo "${ECHO_T}$ac_cv_lib_resolv_inet_aton" >&6; }
18922 if test $ac_cv_lib_resolv_inet_aton = yes; then
18923 cat >>confdefs.h <<_ACEOF
18924 #define HAVE_LIBRESOLV 1
18925 _ACEOF
18927 LIBS="-lresolv $LIBS"
18935 # On Tru64, chflags seems to be present, but calling it will
18936 # exit Python
18937 { echo "$as_me:$LINENO: checking for chflags" >&5
18938 echo $ECHO_N "checking for chflags... $ECHO_C" >&6; }
18939 if test "${ac_cv_have_chflags+set}" = set; then
18940 echo $ECHO_N "(cached) $ECHO_C" >&6
18941 else
18942 if test "$cross_compiling" = yes; then
18943 ac_cv_have_chflags=cross
18944 else
18945 cat >conftest.$ac_ext <<_ACEOF
18946 /* confdefs.h. */
18947 _ACEOF
18948 cat confdefs.h >>conftest.$ac_ext
18949 cat >>conftest.$ac_ext <<_ACEOF
18950 /* end confdefs.h. */
18952 #include <sys/stat.h>
18953 #include <unistd.h>
18954 int main(int argc, char*argv[])
18956 if(chflags(argv[0], 0) != 0)
18957 return 1;
18958 return 0;
18961 _ACEOF
18962 rm -f conftest$ac_exeext
18963 if { (ac_try="$ac_link"
18964 case "(($ac_try" in
18965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18966 *) ac_try_echo=$ac_try;;
18967 esac
18968 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18969 (eval "$ac_link") 2>&5
18970 ac_status=$?
18971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18972 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18973 { (case "(($ac_try" in
18974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18975 *) ac_try_echo=$ac_try;;
18976 esac
18977 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18978 (eval "$ac_try") 2>&5
18979 ac_status=$?
18980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18981 (exit $ac_status); }; }; then
18982 ac_cv_have_chflags=yes
18983 else
18984 echo "$as_me: program exited with status $ac_status" >&5
18985 echo "$as_me: failed program was:" >&5
18986 sed 's/^/| /' conftest.$ac_ext >&5
18988 ( exit $ac_status )
18989 ac_cv_have_chflags=no
18991 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18997 { echo "$as_me:$LINENO: result: $ac_cv_have_chflags" >&5
18998 echo "${ECHO_T}$ac_cv_have_chflags" >&6; }
18999 if test "$ac_cv_have_chflags" = cross ; then
19000 { echo "$as_me:$LINENO: checking for chflags" >&5
19001 echo $ECHO_N "checking for chflags... $ECHO_C" >&6; }
19002 if test "${ac_cv_func_chflags+set}" = set; then
19003 echo $ECHO_N "(cached) $ECHO_C" >&6
19004 else
19005 cat >conftest.$ac_ext <<_ACEOF
19006 /* confdefs.h. */
19007 _ACEOF
19008 cat confdefs.h >>conftest.$ac_ext
19009 cat >>conftest.$ac_ext <<_ACEOF
19010 /* end confdefs.h. */
19011 /* Define chflags to an innocuous variant, in case <limits.h> declares chflags.
19012 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19013 #define chflags innocuous_chflags
19015 /* System header to define __stub macros and hopefully few prototypes,
19016 which can conflict with char chflags (); below.
19017 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19018 <limits.h> exists even on freestanding compilers. */
19020 #ifdef __STDC__
19021 # include <limits.h>
19022 #else
19023 # include <assert.h>
19024 #endif
19026 #undef chflags
19028 /* Override any GCC internal prototype to avoid an error.
19029 Use char because int might match the return type of a GCC
19030 builtin and then its argument prototype would still apply. */
19031 #ifdef __cplusplus
19032 extern "C"
19033 #endif
19034 char chflags ();
19035 /* The GNU C library defines this for functions which it implements
19036 to always fail with ENOSYS. Some functions are actually named
19037 something starting with __ and the normal name is an alias. */
19038 #if defined __stub_chflags || defined __stub___chflags
19039 choke me
19040 #endif
19043 main ()
19045 return chflags ();
19047 return 0;
19049 _ACEOF
19050 rm -f conftest.$ac_objext conftest$ac_exeext
19051 if { (ac_try="$ac_link"
19052 case "(($ac_try" in
19053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19054 *) ac_try_echo=$ac_try;;
19055 esac
19056 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19057 (eval "$ac_link") 2>conftest.er1
19058 ac_status=$?
19059 grep -v '^ *+' conftest.er1 >conftest.err
19060 rm -f conftest.er1
19061 cat conftest.err >&5
19062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19063 (exit $ac_status); } && {
19064 test -z "$ac_c_werror_flag" ||
19065 test ! -s conftest.err
19066 } && test -s conftest$ac_exeext &&
19067 $as_test_x conftest$ac_exeext; then
19068 ac_cv_func_chflags=yes
19069 else
19070 echo "$as_me: failed program was:" >&5
19071 sed 's/^/| /' conftest.$ac_ext >&5
19073 ac_cv_func_chflags=no
19076 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19077 conftest$ac_exeext conftest.$ac_ext
19079 { echo "$as_me:$LINENO: result: $ac_cv_func_chflags" >&5
19080 echo "${ECHO_T}$ac_cv_func_chflags" >&6; }
19081 if test $ac_cv_func_chflags = yes; then
19082 ac_cv_have_chflags="yes"
19083 else
19084 ac_cv_have_chflags="no"
19088 if test "$ac_cv_have_chflags" = yes ; then
19090 cat >>confdefs.h <<\_ACEOF
19091 #define HAVE_CHFLAGS 1
19092 _ACEOF
19096 { echo "$as_me:$LINENO: checking for lchflags" >&5
19097 echo $ECHO_N "checking for lchflags... $ECHO_C" >&6; }
19098 if test "${ac_cv_have_lchflags+set}" = set; then
19099 echo $ECHO_N "(cached) $ECHO_C" >&6
19100 else
19101 if test "$cross_compiling" = yes; then
19102 ac_cv_have_lchflags=cross
19103 else
19104 cat >conftest.$ac_ext <<_ACEOF
19105 /* confdefs.h. */
19106 _ACEOF
19107 cat confdefs.h >>conftest.$ac_ext
19108 cat >>conftest.$ac_ext <<_ACEOF
19109 /* end confdefs.h. */
19111 #include <sys/stat.h>
19112 #include <unistd.h>
19113 int main(int argc, char*argv[])
19115 if(lchflags(argv[0], 0) != 0)
19116 return 1;
19117 return 0;
19120 _ACEOF
19121 rm -f conftest$ac_exeext
19122 if { (ac_try="$ac_link"
19123 case "(($ac_try" in
19124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19125 *) ac_try_echo=$ac_try;;
19126 esac
19127 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19128 (eval "$ac_link") 2>&5
19129 ac_status=$?
19130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19131 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19132 { (case "(($ac_try" in
19133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19134 *) ac_try_echo=$ac_try;;
19135 esac
19136 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19137 (eval "$ac_try") 2>&5
19138 ac_status=$?
19139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19140 (exit $ac_status); }; }; then
19141 ac_cv_have_lchflags=yes
19142 else
19143 echo "$as_me: program exited with status $ac_status" >&5
19144 echo "$as_me: failed program was:" >&5
19145 sed 's/^/| /' conftest.$ac_ext >&5
19147 ( exit $ac_status )
19148 ac_cv_have_lchflags=no
19150 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19156 { echo "$as_me:$LINENO: result: $ac_cv_have_lchflags" >&5
19157 echo "${ECHO_T}$ac_cv_have_lchflags" >&6; }
19158 if test "$ac_cv_have_lchflags" = cross ; then
19159 { echo "$as_me:$LINENO: checking for lchflags" >&5
19160 echo $ECHO_N "checking for lchflags... $ECHO_C" >&6; }
19161 if test "${ac_cv_func_lchflags+set}" = set; then
19162 echo $ECHO_N "(cached) $ECHO_C" >&6
19163 else
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. */
19170 /* Define lchflags to an innocuous variant, in case <limits.h> declares lchflags.
19171 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19172 #define lchflags innocuous_lchflags
19174 /* System header to define __stub macros and hopefully few prototypes,
19175 which can conflict with char lchflags (); below.
19176 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19177 <limits.h> exists even on freestanding compilers. */
19179 #ifdef __STDC__
19180 # include <limits.h>
19181 #else
19182 # include <assert.h>
19183 #endif
19185 #undef lchflags
19187 /* Override any GCC internal prototype to avoid an error.
19188 Use char because int might match the return type of a GCC
19189 builtin and then its argument prototype would still apply. */
19190 #ifdef __cplusplus
19191 extern "C"
19192 #endif
19193 char lchflags ();
19194 /* The GNU C library defines this for functions which it implements
19195 to always fail with ENOSYS. Some functions are actually named
19196 something starting with __ and the normal name is an alias. */
19197 #if defined __stub_lchflags || defined __stub___lchflags
19198 choke me
19199 #endif
19202 main ()
19204 return lchflags ();
19206 return 0;
19208 _ACEOF
19209 rm -f conftest.$ac_objext conftest$ac_exeext
19210 if { (ac_try="$ac_link"
19211 case "(($ac_try" in
19212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19213 *) ac_try_echo=$ac_try;;
19214 esac
19215 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19216 (eval "$ac_link") 2>conftest.er1
19217 ac_status=$?
19218 grep -v '^ *+' conftest.er1 >conftest.err
19219 rm -f conftest.er1
19220 cat conftest.err >&5
19221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19222 (exit $ac_status); } && {
19223 test -z "$ac_c_werror_flag" ||
19224 test ! -s conftest.err
19225 } && test -s conftest$ac_exeext &&
19226 $as_test_x conftest$ac_exeext; then
19227 ac_cv_func_lchflags=yes
19228 else
19229 echo "$as_me: failed program was:" >&5
19230 sed 's/^/| /' conftest.$ac_ext >&5
19232 ac_cv_func_lchflags=no
19235 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19236 conftest$ac_exeext conftest.$ac_ext
19238 { echo "$as_me:$LINENO: result: $ac_cv_func_lchflags" >&5
19239 echo "${ECHO_T}$ac_cv_func_lchflags" >&6; }
19240 if test $ac_cv_func_lchflags = yes; then
19241 ac_cv_have_lchflags="yes"
19242 else
19243 ac_cv_have_lchflags="no"
19247 if test "$ac_cv_have_lchflags" = yes ; then
19249 cat >>confdefs.h <<\_ACEOF
19250 #define HAVE_LCHFLAGS 1
19251 _ACEOF
19255 case $ac_sys_system/$ac_sys_release in
19256 Darwin/*)
19257 _CUR_CFLAGS="${CFLAGS}"
19258 _CUR_LDFLAGS="${LDFLAGS}"
19259 CFLAGS="${CFLAGS} -Wl,-search_paths_first"
19260 LDFLAGS="${LDFLAGS} -Wl,-search_paths_first -L/usr/local/lib"
19262 esac
19264 { echo "$as_me:$LINENO: checking for inflateCopy in -lz" >&5
19265 echo $ECHO_N "checking for inflateCopy in -lz... $ECHO_C" >&6; }
19266 if test "${ac_cv_lib_z_inflateCopy+set}" = set; then
19267 echo $ECHO_N "(cached) $ECHO_C" >&6
19268 else
19269 ac_check_lib_save_LIBS=$LIBS
19270 LIBS="-lz $LIBS"
19271 cat >conftest.$ac_ext <<_ACEOF
19272 /* confdefs.h. */
19273 _ACEOF
19274 cat confdefs.h >>conftest.$ac_ext
19275 cat >>conftest.$ac_ext <<_ACEOF
19276 /* end confdefs.h. */
19278 /* Override any GCC internal prototype to avoid an error.
19279 Use char because int might match the return type of a GCC
19280 builtin and then its argument prototype would still apply. */
19281 #ifdef __cplusplus
19282 extern "C"
19283 #endif
19284 char inflateCopy ();
19286 main ()
19288 return inflateCopy ();
19290 return 0;
19292 _ACEOF
19293 rm -f conftest.$ac_objext conftest$ac_exeext
19294 if { (ac_try="$ac_link"
19295 case "(($ac_try" in
19296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19297 *) ac_try_echo=$ac_try;;
19298 esac
19299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19300 (eval "$ac_link") 2>conftest.er1
19301 ac_status=$?
19302 grep -v '^ *+' conftest.er1 >conftest.err
19303 rm -f conftest.er1
19304 cat conftest.err >&5
19305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19306 (exit $ac_status); } && {
19307 test -z "$ac_c_werror_flag" ||
19308 test ! -s conftest.err
19309 } && test -s conftest$ac_exeext &&
19310 $as_test_x conftest$ac_exeext; then
19311 ac_cv_lib_z_inflateCopy=yes
19312 else
19313 echo "$as_me: failed program was:" >&5
19314 sed 's/^/| /' conftest.$ac_ext >&5
19316 ac_cv_lib_z_inflateCopy=no
19319 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19320 conftest$ac_exeext conftest.$ac_ext
19321 LIBS=$ac_check_lib_save_LIBS
19323 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_inflateCopy" >&5
19324 echo "${ECHO_T}$ac_cv_lib_z_inflateCopy" >&6; }
19325 if test $ac_cv_lib_z_inflateCopy = yes; then
19327 cat >>confdefs.h <<\_ACEOF
19328 #define HAVE_ZLIB_COPY 1
19329 _ACEOF
19334 case $ac_sys_system/$ac_sys_release in
19335 Darwin/*)
19336 CFLAGS="${_CUR_CFLAGS}"
19337 LDFLAGS="${_CUR_LDFLAGS}"
19339 esac
19341 { echo "$as_me:$LINENO: checking for hstrerror" >&5
19342 echo $ECHO_N "checking for hstrerror... $ECHO_C" >&6; }
19343 cat >conftest.$ac_ext <<_ACEOF
19344 /* confdefs.h. */
19345 _ACEOF
19346 cat confdefs.h >>conftest.$ac_ext
19347 cat >>conftest.$ac_ext <<_ACEOF
19348 /* end confdefs.h. */
19350 #include "confdefs.h"
19351 #include <netdb.h>
19354 main ()
19356 void* p = hstrerror; hstrerror(0)
19358 return 0;
19360 _ACEOF
19361 rm -f conftest.$ac_objext conftest$ac_exeext
19362 if { (ac_try="$ac_link"
19363 case "(($ac_try" in
19364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19365 *) ac_try_echo=$ac_try;;
19366 esac
19367 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19368 (eval "$ac_link") 2>conftest.er1
19369 ac_status=$?
19370 grep -v '^ *+' conftest.er1 >conftest.err
19371 rm -f conftest.er1
19372 cat conftest.err >&5
19373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19374 (exit $ac_status); } && {
19375 test -z "$ac_c_werror_flag" ||
19376 test ! -s conftest.err
19377 } && test -s conftest$ac_exeext &&
19378 $as_test_x conftest$ac_exeext; then
19380 cat >>confdefs.h <<\_ACEOF
19381 #define HAVE_HSTRERROR 1
19382 _ACEOF
19384 { echo "$as_me:$LINENO: result: yes" >&5
19385 echo "${ECHO_T}yes" >&6; }
19386 else
19387 echo "$as_me: failed program was:" >&5
19388 sed 's/^/| /' conftest.$ac_ext >&5
19390 { echo "$as_me:$LINENO: result: no" >&5
19391 echo "${ECHO_T}no" >&6; }
19395 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19396 conftest$ac_exeext conftest.$ac_ext
19398 { echo "$as_me:$LINENO: checking for inet_aton" >&5
19399 echo $ECHO_N "checking for inet_aton... $ECHO_C" >&6; }
19400 cat >conftest.$ac_ext <<_ACEOF
19401 /* confdefs.h. */
19402 _ACEOF
19403 cat confdefs.h >>conftest.$ac_ext
19404 cat >>conftest.$ac_ext <<_ACEOF
19405 /* end confdefs.h. */
19407 #include "confdefs.h"
19408 #include <sys/types.h>
19409 #include <sys/socket.h>
19410 #include <netinet/in.h>
19411 #include <arpa/inet.h>
19414 main ()
19416 void* p = inet_aton;inet_aton(0,0)
19418 return 0;
19420 _ACEOF
19421 rm -f conftest.$ac_objext conftest$ac_exeext
19422 if { (ac_try="$ac_link"
19423 case "(($ac_try" in
19424 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19425 *) ac_try_echo=$ac_try;;
19426 esac
19427 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19428 (eval "$ac_link") 2>conftest.er1
19429 ac_status=$?
19430 grep -v '^ *+' conftest.er1 >conftest.err
19431 rm -f conftest.er1
19432 cat conftest.err >&5
19433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19434 (exit $ac_status); } && {
19435 test -z "$ac_c_werror_flag" ||
19436 test ! -s conftest.err
19437 } && test -s conftest$ac_exeext &&
19438 $as_test_x conftest$ac_exeext; then
19440 cat >>confdefs.h <<\_ACEOF
19441 #define HAVE_INET_ATON 1
19442 _ACEOF
19444 { echo "$as_me:$LINENO: result: yes" >&5
19445 echo "${ECHO_T}yes" >&6; }
19446 else
19447 echo "$as_me: failed program was:" >&5
19448 sed 's/^/| /' conftest.$ac_ext >&5
19450 { echo "$as_me:$LINENO: result: no" >&5
19451 echo "${ECHO_T}no" >&6; }
19455 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19456 conftest$ac_exeext conftest.$ac_ext
19458 { echo "$as_me:$LINENO: checking for inet_pton" >&5
19459 echo $ECHO_N "checking for inet_pton... $ECHO_C" >&6; }
19460 cat >conftest.$ac_ext <<_ACEOF
19461 /* confdefs.h. */
19462 _ACEOF
19463 cat confdefs.h >>conftest.$ac_ext
19464 cat >>conftest.$ac_ext <<_ACEOF
19465 /* end confdefs.h. */
19467 #include "confdefs.h"
19468 #include <sys/types.h>
19469 #include <sys/socket.h>
19470 #include <netinet/in.h>
19471 #include <arpa/inet.h>
19474 main ()
19476 void* p = inet_pton
19478 return 0;
19480 _ACEOF
19481 rm -f conftest.$ac_objext
19482 if { (ac_try="$ac_compile"
19483 case "(($ac_try" in
19484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19485 *) ac_try_echo=$ac_try;;
19486 esac
19487 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19488 (eval "$ac_compile") 2>conftest.er1
19489 ac_status=$?
19490 grep -v '^ *+' conftest.er1 >conftest.err
19491 rm -f conftest.er1
19492 cat conftest.err >&5
19493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19494 (exit $ac_status); } && {
19495 test -z "$ac_c_werror_flag" ||
19496 test ! -s conftest.err
19497 } && test -s conftest.$ac_objext; then
19499 cat >>confdefs.h <<\_ACEOF
19500 #define HAVE_INET_PTON 1
19501 _ACEOF
19503 { echo "$as_me:$LINENO: result: yes" >&5
19504 echo "${ECHO_T}yes" >&6; }
19505 else
19506 echo "$as_me: failed program was:" >&5
19507 sed 's/^/| /' conftest.$ac_ext >&5
19509 { echo "$as_me:$LINENO: result: no" >&5
19510 echo "${ECHO_T}no" >&6; }
19514 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19516 # On some systems, setgroups is in unistd.h, on others, in grp.h
19517 { echo "$as_me:$LINENO: checking for setgroups" >&5
19518 echo $ECHO_N "checking for setgroups... $ECHO_C" >&6; }
19519 cat >conftest.$ac_ext <<_ACEOF
19520 /* confdefs.h. */
19521 _ACEOF
19522 cat confdefs.h >>conftest.$ac_ext
19523 cat >>conftest.$ac_ext <<_ACEOF
19524 /* end confdefs.h. */
19526 #include "confdefs.h"
19527 #include <unistd.h>
19528 #ifdef HAVE_GRP_H
19529 #include <grp.h>
19530 #endif
19533 main ()
19535 void* p = setgroups
19537 return 0;
19539 _ACEOF
19540 rm -f conftest.$ac_objext
19541 if { (ac_try="$ac_compile"
19542 case "(($ac_try" in
19543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19544 *) ac_try_echo=$ac_try;;
19545 esac
19546 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19547 (eval "$ac_compile") 2>conftest.er1
19548 ac_status=$?
19549 grep -v '^ *+' conftest.er1 >conftest.err
19550 rm -f conftest.er1
19551 cat conftest.err >&5
19552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19553 (exit $ac_status); } && {
19554 test -z "$ac_c_werror_flag" ||
19555 test ! -s conftest.err
19556 } && test -s conftest.$ac_objext; then
19558 cat >>confdefs.h <<\_ACEOF
19559 #define HAVE_SETGROUPS 1
19560 _ACEOF
19562 { echo "$as_me:$LINENO: result: yes" >&5
19563 echo "${ECHO_T}yes" >&6; }
19564 else
19565 echo "$as_me: failed program was:" >&5
19566 sed 's/^/| /' conftest.$ac_ext >&5
19568 { echo "$as_me:$LINENO: result: no" >&5
19569 echo "${ECHO_T}no" >&6; }
19573 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19575 # check for openpty and forkpty
19578 for ac_func in openpty
19580 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19581 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19582 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19583 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19584 echo $ECHO_N "(cached) $ECHO_C" >&6
19585 else
19586 cat >conftest.$ac_ext <<_ACEOF
19587 /* confdefs.h. */
19588 _ACEOF
19589 cat confdefs.h >>conftest.$ac_ext
19590 cat >>conftest.$ac_ext <<_ACEOF
19591 /* end confdefs.h. */
19592 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19593 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19594 #define $ac_func innocuous_$ac_func
19596 /* System header to define __stub macros and hopefully few prototypes,
19597 which can conflict with char $ac_func (); below.
19598 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19599 <limits.h> exists even on freestanding compilers. */
19601 #ifdef __STDC__
19602 # include <limits.h>
19603 #else
19604 # include <assert.h>
19605 #endif
19607 #undef $ac_func
19609 /* Override any GCC internal prototype to avoid an error.
19610 Use char because int might match the return type of a GCC
19611 builtin and then its argument prototype would still apply. */
19612 #ifdef __cplusplus
19613 extern "C"
19614 #endif
19615 char $ac_func ();
19616 /* The GNU C library defines this for functions which it implements
19617 to always fail with ENOSYS. Some functions are actually named
19618 something starting with __ and the normal name is an alias. */
19619 #if defined __stub_$ac_func || defined __stub___$ac_func
19620 choke me
19621 #endif
19624 main ()
19626 return $ac_func ();
19628 return 0;
19630 _ACEOF
19631 rm -f conftest.$ac_objext conftest$ac_exeext
19632 if { (ac_try="$ac_link"
19633 case "(($ac_try" in
19634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19635 *) ac_try_echo=$ac_try;;
19636 esac
19637 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19638 (eval "$ac_link") 2>conftest.er1
19639 ac_status=$?
19640 grep -v '^ *+' conftest.er1 >conftest.err
19641 rm -f conftest.er1
19642 cat conftest.err >&5
19643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19644 (exit $ac_status); } && {
19645 test -z "$ac_c_werror_flag" ||
19646 test ! -s conftest.err
19647 } && test -s conftest$ac_exeext &&
19648 $as_test_x conftest$ac_exeext; then
19649 eval "$as_ac_var=yes"
19650 else
19651 echo "$as_me: failed program was:" >&5
19652 sed 's/^/| /' conftest.$ac_ext >&5
19654 eval "$as_ac_var=no"
19657 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19658 conftest$ac_exeext conftest.$ac_ext
19660 ac_res=`eval echo '${'$as_ac_var'}'`
19661 { echo "$as_me:$LINENO: result: $ac_res" >&5
19662 echo "${ECHO_T}$ac_res" >&6; }
19663 if test `eval echo '${'$as_ac_var'}'` = yes; then
19664 cat >>confdefs.h <<_ACEOF
19665 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19666 _ACEOF
19668 else
19669 { echo "$as_me:$LINENO: checking for openpty in -lutil" >&5
19670 echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6; }
19671 if test "${ac_cv_lib_util_openpty+set}" = set; then
19672 echo $ECHO_N "(cached) $ECHO_C" >&6
19673 else
19674 ac_check_lib_save_LIBS=$LIBS
19675 LIBS="-lutil $LIBS"
19676 cat >conftest.$ac_ext <<_ACEOF
19677 /* confdefs.h. */
19678 _ACEOF
19679 cat confdefs.h >>conftest.$ac_ext
19680 cat >>conftest.$ac_ext <<_ACEOF
19681 /* end confdefs.h. */
19683 /* Override any GCC internal prototype to avoid an error.
19684 Use char because int might match the return type of a GCC
19685 builtin and then its argument prototype would still apply. */
19686 #ifdef __cplusplus
19687 extern "C"
19688 #endif
19689 char openpty ();
19691 main ()
19693 return openpty ();
19695 return 0;
19697 _ACEOF
19698 rm -f conftest.$ac_objext conftest$ac_exeext
19699 if { (ac_try="$ac_link"
19700 case "(($ac_try" in
19701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19702 *) ac_try_echo=$ac_try;;
19703 esac
19704 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19705 (eval "$ac_link") 2>conftest.er1
19706 ac_status=$?
19707 grep -v '^ *+' conftest.er1 >conftest.err
19708 rm -f conftest.er1
19709 cat conftest.err >&5
19710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19711 (exit $ac_status); } && {
19712 test -z "$ac_c_werror_flag" ||
19713 test ! -s conftest.err
19714 } && test -s conftest$ac_exeext &&
19715 $as_test_x conftest$ac_exeext; then
19716 ac_cv_lib_util_openpty=yes
19717 else
19718 echo "$as_me: failed program was:" >&5
19719 sed 's/^/| /' conftest.$ac_ext >&5
19721 ac_cv_lib_util_openpty=no
19724 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19725 conftest$ac_exeext conftest.$ac_ext
19726 LIBS=$ac_check_lib_save_LIBS
19728 { echo "$as_me:$LINENO: result: $ac_cv_lib_util_openpty" >&5
19729 echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6; }
19730 if test $ac_cv_lib_util_openpty = yes; then
19731 cat >>confdefs.h <<\_ACEOF
19732 #define HAVE_OPENPTY 1
19733 _ACEOF
19734 LIBS="$LIBS -lutil"
19735 else
19736 { echo "$as_me:$LINENO: checking for openpty in -lbsd" >&5
19737 echo $ECHO_N "checking for openpty in -lbsd... $ECHO_C" >&6; }
19738 if test "${ac_cv_lib_bsd_openpty+set}" = set; then
19739 echo $ECHO_N "(cached) $ECHO_C" >&6
19740 else
19741 ac_check_lib_save_LIBS=$LIBS
19742 LIBS="-lbsd $LIBS"
19743 cat >conftest.$ac_ext <<_ACEOF
19744 /* confdefs.h. */
19745 _ACEOF
19746 cat confdefs.h >>conftest.$ac_ext
19747 cat >>conftest.$ac_ext <<_ACEOF
19748 /* end confdefs.h. */
19750 /* Override any GCC internal prototype to avoid an error.
19751 Use char because int might match the return type of a GCC
19752 builtin and then its argument prototype would still apply. */
19753 #ifdef __cplusplus
19754 extern "C"
19755 #endif
19756 char openpty ();
19758 main ()
19760 return openpty ();
19762 return 0;
19764 _ACEOF
19765 rm -f conftest.$ac_objext conftest$ac_exeext
19766 if { (ac_try="$ac_link"
19767 case "(($ac_try" in
19768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19769 *) ac_try_echo=$ac_try;;
19770 esac
19771 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19772 (eval "$ac_link") 2>conftest.er1
19773 ac_status=$?
19774 grep -v '^ *+' conftest.er1 >conftest.err
19775 rm -f conftest.er1
19776 cat conftest.err >&5
19777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19778 (exit $ac_status); } && {
19779 test -z "$ac_c_werror_flag" ||
19780 test ! -s conftest.err
19781 } && test -s conftest$ac_exeext &&
19782 $as_test_x conftest$ac_exeext; then
19783 ac_cv_lib_bsd_openpty=yes
19784 else
19785 echo "$as_me: failed program was:" >&5
19786 sed 's/^/| /' conftest.$ac_ext >&5
19788 ac_cv_lib_bsd_openpty=no
19791 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19792 conftest$ac_exeext conftest.$ac_ext
19793 LIBS=$ac_check_lib_save_LIBS
19795 { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_openpty" >&5
19796 echo "${ECHO_T}$ac_cv_lib_bsd_openpty" >&6; }
19797 if test $ac_cv_lib_bsd_openpty = yes; then
19798 cat >>confdefs.h <<\_ACEOF
19799 #define HAVE_OPENPTY 1
19800 _ACEOF
19801 LIBS="$LIBS -lbsd"
19809 done
19812 for ac_func in forkpty
19814 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19815 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19816 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19817 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19818 echo $ECHO_N "(cached) $ECHO_C" >&6
19819 else
19820 cat >conftest.$ac_ext <<_ACEOF
19821 /* confdefs.h. */
19822 _ACEOF
19823 cat confdefs.h >>conftest.$ac_ext
19824 cat >>conftest.$ac_ext <<_ACEOF
19825 /* end confdefs.h. */
19826 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19827 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19828 #define $ac_func innocuous_$ac_func
19830 /* System header to define __stub macros and hopefully few prototypes,
19831 which can conflict with char $ac_func (); below.
19832 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19833 <limits.h> exists even on freestanding compilers. */
19835 #ifdef __STDC__
19836 # include <limits.h>
19837 #else
19838 # include <assert.h>
19839 #endif
19841 #undef $ac_func
19843 /* Override any GCC internal prototype to avoid an error.
19844 Use char because int might match the return type of a GCC
19845 builtin and then its argument prototype would still apply. */
19846 #ifdef __cplusplus
19847 extern "C"
19848 #endif
19849 char $ac_func ();
19850 /* The GNU C library defines this for functions which it implements
19851 to always fail with ENOSYS. Some functions are actually named
19852 something starting with __ and the normal name is an alias. */
19853 #if defined __stub_$ac_func || defined __stub___$ac_func
19854 choke me
19855 #endif
19858 main ()
19860 return $ac_func ();
19862 return 0;
19864 _ACEOF
19865 rm -f conftest.$ac_objext conftest$ac_exeext
19866 if { (ac_try="$ac_link"
19867 case "(($ac_try" in
19868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19869 *) ac_try_echo=$ac_try;;
19870 esac
19871 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19872 (eval "$ac_link") 2>conftest.er1
19873 ac_status=$?
19874 grep -v '^ *+' conftest.er1 >conftest.err
19875 rm -f conftest.er1
19876 cat conftest.err >&5
19877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19878 (exit $ac_status); } && {
19879 test -z "$ac_c_werror_flag" ||
19880 test ! -s conftest.err
19881 } && test -s conftest$ac_exeext &&
19882 $as_test_x conftest$ac_exeext; then
19883 eval "$as_ac_var=yes"
19884 else
19885 echo "$as_me: failed program was:" >&5
19886 sed 's/^/| /' conftest.$ac_ext >&5
19888 eval "$as_ac_var=no"
19891 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19892 conftest$ac_exeext conftest.$ac_ext
19894 ac_res=`eval echo '${'$as_ac_var'}'`
19895 { echo "$as_me:$LINENO: result: $ac_res" >&5
19896 echo "${ECHO_T}$ac_res" >&6; }
19897 if test `eval echo '${'$as_ac_var'}'` = yes; then
19898 cat >>confdefs.h <<_ACEOF
19899 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19900 _ACEOF
19902 else
19903 { echo "$as_me:$LINENO: checking for forkpty in -lutil" >&5
19904 echo $ECHO_N "checking for forkpty in -lutil... $ECHO_C" >&6; }
19905 if test "${ac_cv_lib_util_forkpty+set}" = set; then
19906 echo $ECHO_N "(cached) $ECHO_C" >&6
19907 else
19908 ac_check_lib_save_LIBS=$LIBS
19909 LIBS="-lutil $LIBS"
19910 cat >conftest.$ac_ext <<_ACEOF
19911 /* confdefs.h. */
19912 _ACEOF
19913 cat confdefs.h >>conftest.$ac_ext
19914 cat >>conftest.$ac_ext <<_ACEOF
19915 /* end confdefs.h. */
19917 /* Override any GCC internal prototype to avoid an error.
19918 Use char because int might match the return type of a GCC
19919 builtin and then its argument prototype would still apply. */
19920 #ifdef __cplusplus
19921 extern "C"
19922 #endif
19923 char forkpty ();
19925 main ()
19927 return forkpty ();
19929 return 0;
19931 _ACEOF
19932 rm -f conftest.$ac_objext conftest$ac_exeext
19933 if { (ac_try="$ac_link"
19934 case "(($ac_try" in
19935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19936 *) ac_try_echo=$ac_try;;
19937 esac
19938 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19939 (eval "$ac_link") 2>conftest.er1
19940 ac_status=$?
19941 grep -v '^ *+' conftest.er1 >conftest.err
19942 rm -f conftest.er1
19943 cat conftest.err >&5
19944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19945 (exit $ac_status); } && {
19946 test -z "$ac_c_werror_flag" ||
19947 test ! -s conftest.err
19948 } && test -s conftest$ac_exeext &&
19949 $as_test_x conftest$ac_exeext; then
19950 ac_cv_lib_util_forkpty=yes
19951 else
19952 echo "$as_me: failed program was:" >&5
19953 sed 's/^/| /' conftest.$ac_ext >&5
19955 ac_cv_lib_util_forkpty=no
19958 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19959 conftest$ac_exeext conftest.$ac_ext
19960 LIBS=$ac_check_lib_save_LIBS
19962 { echo "$as_me:$LINENO: result: $ac_cv_lib_util_forkpty" >&5
19963 echo "${ECHO_T}$ac_cv_lib_util_forkpty" >&6; }
19964 if test $ac_cv_lib_util_forkpty = yes; then
19965 cat >>confdefs.h <<\_ACEOF
19966 #define HAVE_FORKPTY 1
19967 _ACEOF
19968 LIBS="$LIBS -lutil"
19969 else
19970 { echo "$as_me:$LINENO: checking for forkpty in -lbsd" >&5
19971 echo $ECHO_N "checking for forkpty in -lbsd... $ECHO_C" >&6; }
19972 if test "${ac_cv_lib_bsd_forkpty+set}" = set; then
19973 echo $ECHO_N "(cached) $ECHO_C" >&6
19974 else
19975 ac_check_lib_save_LIBS=$LIBS
19976 LIBS="-lbsd $LIBS"
19977 cat >conftest.$ac_ext <<_ACEOF
19978 /* confdefs.h. */
19979 _ACEOF
19980 cat confdefs.h >>conftest.$ac_ext
19981 cat >>conftest.$ac_ext <<_ACEOF
19982 /* end confdefs.h. */
19984 /* Override any GCC internal prototype to avoid an error.
19985 Use char because int might match the return type of a GCC
19986 builtin and then its argument prototype would still apply. */
19987 #ifdef __cplusplus
19988 extern "C"
19989 #endif
19990 char forkpty ();
19992 main ()
19994 return forkpty ();
19996 return 0;
19998 _ACEOF
19999 rm -f conftest.$ac_objext conftest$ac_exeext
20000 if { (ac_try="$ac_link"
20001 case "(($ac_try" in
20002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20003 *) ac_try_echo=$ac_try;;
20004 esac
20005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20006 (eval "$ac_link") 2>conftest.er1
20007 ac_status=$?
20008 grep -v '^ *+' conftest.er1 >conftest.err
20009 rm -f conftest.er1
20010 cat conftest.err >&5
20011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20012 (exit $ac_status); } && {
20013 test -z "$ac_c_werror_flag" ||
20014 test ! -s conftest.err
20015 } && test -s conftest$ac_exeext &&
20016 $as_test_x conftest$ac_exeext; then
20017 ac_cv_lib_bsd_forkpty=yes
20018 else
20019 echo "$as_me: failed program was:" >&5
20020 sed 's/^/| /' conftest.$ac_ext >&5
20022 ac_cv_lib_bsd_forkpty=no
20025 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20026 conftest$ac_exeext conftest.$ac_ext
20027 LIBS=$ac_check_lib_save_LIBS
20029 { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_forkpty" >&5
20030 echo "${ECHO_T}$ac_cv_lib_bsd_forkpty" >&6; }
20031 if test $ac_cv_lib_bsd_forkpty = yes; then
20032 cat >>confdefs.h <<\_ACEOF
20033 #define HAVE_FORKPTY 1
20034 _ACEOF
20035 LIBS="$LIBS -lbsd"
20043 done
20046 # Stuff for expat.
20048 for ac_func in memmove
20050 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20051 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20052 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20053 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20054 echo $ECHO_N "(cached) $ECHO_C" >&6
20055 else
20056 cat >conftest.$ac_ext <<_ACEOF
20057 /* confdefs.h. */
20058 _ACEOF
20059 cat confdefs.h >>conftest.$ac_ext
20060 cat >>conftest.$ac_ext <<_ACEOF
20061 /* end confdefs.h. */
20062 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20063 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20064 #define $ac_func innocuous_$ac_func
20066 /* System header to define __stub macros and hopefully few prototypes,
20067 which can conflict with char $ac_func (); below.
20068 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20069 <limits.h> exists even on freestanding compilers. */
20071 #ifdef __STDC__
20072 # include <limits.h>
20073 #else
20074 # include <assert.h>
20075 #endif
20077 #undef $ac_func
20079 /* Override any GCC internal prototype to avoid an error.
20080 Use char because int might match the return type of a GCC
20081 builtin and then its argument prototype would still apply. */
20082 #ifdef __cplusplus
20083 extern "C"
20084 #endif
20085 char $ac_func ();
20086 /* The GNU C library defines this for functions which it implements
20087 to always fail with ENOSYS. Some functions are actually named
20088 something starting with __ and the normal name is an alias. */
20089 #if defined __stub_$ac_func || defined __stub___$ac_func
20090 choke me
20091 #endif
20094 main ()
20096 return $ac_func ();
20098 return 0;
20100 _ACEOF
20101 rm -f conftest.$ac_objext conftest$ac_exeext
20102 if { (ac_try="$ac_link"
20103 case "(($ac_try" in
20104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20105 *) ac_try_echo=$ac_try;;
20106 esac
20107 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20108 (eval "$ac_link") 2>conftest.er1
20109 ac_status=$?
20110 grep -v '^ *+' conftest.er1 >conftest.err
20111 rm -f conftest.er1
20112 cat conftest.err >&5
20113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20114 (exit $ac_status); } && {
20115 test -z "$ac_c_werror_flag" ||
20116 test ! -s conftest.err
20117 } && test -s conftest$ac_exeext &&
20118 $as_test_x conftest$ac_exeext; then
20119 eval "$as_ac_var=yes"
20120 else
20121 echo "$as_me: failed program was:" >&5
20122 sed 's/^/| /' conftest.$ac_ext >&5
20124 eval "$as_ac_var=no"
20127 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20128 conftest$ac_exeext conftest.$ac_ext
20130 ac_res=`eval echo '${'$as_ac_var'}'`
20131 { echo "$as_me:$LINENO: result: $ac_res" >&5
20132 echo "${ECHO_T}$ac_res" >&6; }
20133 if test `eval echo '${'$as_ac_var'}'` = yes; then
20134 cat >>confdefs.h <<_ACEOF
20135 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20136 _ACEOF
20139 done
20142 # check for long file support functions
20149 for ac_func in fseek64 fseeko fstatvfs ftell64 ftello statvfs
20151 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20152 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20153 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20154 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20155 echo $ECHO_N "(cached) $ECHO_C" >&6
20156 else
20157 cat >conftest.$ac_ext <<_ACEOF
20158 /* confdefs.h. */
20159 _ACEOF
20160 cat confdefs.h >>conftest.$ac_ext
20161 cat >>conftest.$ac_ext <<_ACEOF
20162 /* end confdefs.h. */
20163 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20164 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20165 #define $ac_func innocuous_$ac_func
20167 /* System header to define __stub macros and hopefully few prototypes,
20168 which can conflict with char $ac_func (); below.
20169 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20170 <limits.h> exists even on freestanding compilers. */
20172 #ifdef __STDC__
20173 # include <limits.h>
20174 #else
20175 # include <assert.h>
20176 #endif
20178 #undef $ac_func
20180 /* Override any GCC internal prototype to avoid an error.
20181 Use char because int might match the return type of a GCC
20182 builtin and then its argument prototype would still apply. */
20183 #ifdef __cplusplus
20184 extern "C"
20185 #endif
20186 char $ac_func ();
20187 /* The GNU C library defines this for functions which it implements
20188 to always fail with ENOSYS. Some functions are actually named
20189 something starting with __ and the normal name is an alias. */
20190 #if defined __stub_$ac_func || defined __stub___$ac_func
20191 choke me
20192 #endif
20195 main ()
20197 return $ac_func ();
20199 return 0;
20201 _ACEOF
20202 rm -f conftest.$ac_objext conftest$ac_exeext
20203 if { (ac_try="$ac_link"
20204 case "(($ac_try" in
20205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20206 *) ac_try_echo=$ac_try;;
20207 esac
20208 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20209 (eval "$ac_link") 2>conftest.er1
20210 ac_status=$?
20211 grep -v '^ *+' conftest.er1 >conftest.err
20212 rm -f conftest.er1
20213 cat conftest.err >&5
20214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20215 (exit $ac_status); } && {
20216 test -z "$ac_c_werror_flag" ||
20217 test ! -s conftest.err
20218 } && test -s conftest$ac_exeext &&
20219 $as_test_x conftest$ac_exeext; then
20220 eval "$as_ac_var=yes"
20221 else
20222 echo "$as_me: failed program was:" >&5
20223 sed 's/^/| /' conftest.$ac_ext >&5
20225 eval "$as_ac_var=no"
20228 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20229 conftest$ac_exeext conftest.$ac_ext
20231 ac_res=`eval echo '${'$as_ac_var'}'`
20232 { echo "$as_me:$LINENO: result: $ac_res" >&5
20233 echo "${ECHO_T}$ac_res" >&6; }
20234 if test `eval echo '${'$as_ac_var'}'` = yes; then
20235 cat >>confdefs.h <<_ACEOF
20236 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20237 _ACEOF
20240 done
20246 for ac_func in dup2 getcwd strdup
20248 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20249 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20250 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20251 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20252 echo $ECHO_N "(cached) $ECHO_C" >&6
20253 else
20254 cat >conftest.$ac_ext <<_ACEOF
20255 /* confdefs.h. */
20256 _ACEOF
20257 cat confdefs.h >>conftest.$ac_ext
20258 cat >>conftest.$ac_ext <<_ACEOF
20259 /* end confdefs.h. */
20260 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20261 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20262 #define $ac_func innocuous_$ac_func
20264 /* System header to define __stub macros and hopefully few prototypes,
20265 which can conflict with char $ac_func (); below.
20266 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20267 <limits.h> exists even on freestanding compilers. */
20269 #ifdef __STDC__
20270 # include <limits.h>
20271 #else
20272 # include <assert.h>
20273 #endif
20275 #undef $ac_func
20277 /* Override any GCC internal prototype to avoid an error.
20278 Use char because int might match the return type of a GCC
20279 builtin and then its argument prototype would still apply. */
20280 #ifdef __cplusplus
20281 extern "C"
20282 #endif
20283 char $ac_func ();
20284 /* The GNU C library defines this for functions which it implements
20285 to always fail with ENOSYS. Some functions are actually named
20286 something starting with __ and the normal name is an alias. */
20287 #if defined __stub_$ac_func || defined __stub___$ac_func
20288 choke me
20289 #endif
20292 main ()
20294 return $ac_func ();
20296 return 0;
20298 _ACEOF
20299 rm -f conftest.$ac_objext conftest$ac_exeext
20300 if { (ac_try="$ac_link"
20301 case "(($ac_try" in
20302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20303 *) ac_try_echo=$ac_try;;
20304 esac
20305 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20306 (eval "$ac_link") 2>conftest.er1
20307 ac_status=$?
20308 grep -v '^ *+' conftest.er1 >conftest.err
20309 rm -f conftest.er1
20310 cat conftest.err >&5
20311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20312 (exit $ac_status); } && {
20313 test -z "$ac_c_werror_flag" ||
20314 test ! -s conftest.err
20315 } && test -s conftest$ac_exeext &&
20316 $as_test_x conftest$ac_exeext; then
20317 eval "$as_ac_var=yes"
20318 else
20319 echo "$as_me: failed program was:" >&5
20320 sed 's/^/| /' conftest.$ac_ext >&5
20322 eval "$as_ac_var=no"
20325 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20326 conftest$ac_exeext conftest.$ac_ext
20328 ac_res=`eval echo '${'$as_ac_var'}'`
20329 { echo "$as_me:$LINENO: result: $ac_res" >&5
20330 echo "${ECHO_T}$ac_res" >&6; }
20331 if test `eval echo '${'$as_ac_var'}'` = yes; then
20332 cat >>confdefs.h <<_ACEOF
20333 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20334 _ACEOF
20336 else
20337 case " $LIBOBJS " in
20338 *" $ac_func.$ac_objext "* ) ;;
20339 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
20341 esac
20344 done
20348 for ac_func in getpgrp
20350 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20351 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20352 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20353 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20354 echo $ECHO_N "(cached) $ECHO_C" >&6
20355 else
20356 cat >conftest.$ac_ext <<_ACEOF
20357 /* confdefs.h. */
20358 _ACEOF
20359 cat confdefs.h >>conftest.$ac_ext
20360 cat >>conftest.$ac_ext <<_ACEOF
20361 /* end confdefs.h. */
20362 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20363 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20364 #define $ac_func innocuous_$ac_func
20366 /* System header to define __stub macros and hopefully few prototypes,
20367 which can conflict with char $ac_func (); below.
20368 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20369 <limits.h> exists even on freestanding compilers. */
20371 #ifdef __STDC__
20372 # include <limits.h>
20373 #else
20374 # include <assert.h>
20375 #endif
20377 #undef $ac_func
20379 /* Override any GCC internal prototype to avoid an error.
20380 Use char because int might match the return type of a GCC
20381 builtin and then its argument prototype would still apply. */
20382 #ifdef __cplusplus
20383 extern "C"
20384 #endif
20385 char $ac_func ();
20386 /* The GNU C library defines this for functions which it implements
20387 to always fail with ENOSYS. Some functions are actually named
20388 something starting with __ and the normal name is an alias. */
20389 #if defined __stub_$ac_func || defined __stub___$ac_func
20390 choke me
20391 #endif
20394 main ()
20396 return $ac_func ();
20398 return 0;
20400 _ACEOF
20401 rm -f conftest.$ac_objext conftest$ac_exeext
20402 if { (ac_try="$ac_link"
20403 case "(($ac_try" in
20404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20405 *) ac_try_echo=$ac_try;;
20406 esac
20407 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20408 (eval "$ac_link") 2>conftest.er1
20409 ac_status=$?
20410 grep -v '^ *+' conftest.er1 >conftest.err
20411 rm -f conftest.er1
20412 cat conftest.err >&5
20413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20414 (exit $ac_status); } && {
20415 test -z "$ac_c_werror_flag" ||
20416 test ! -s conftest.err
20417 } && test -s conftest$ac_exeext &&
20418 $as_test_x conftest$ac_exeext; then
20419 eval "$as_ac_var=yes"
20420 else
20421 echo "$as_me: failed program was:" >&5
20422 sed 's/^/| /' conftest.$ac_ext >&5
20424 eval "$as_ac_var=no"
20427 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20428 conftest$ac_exeext conftest.$ac_ext
20430 ac_res=`eval echo '${'$as_ac_var'}'`
20431 { echo "$as_me:$LINENO: result: $ac_res" >&5
20432 echo "${ECHO_T}$ac_res" >&6; }
20433 if test `eval echo '${'$as_ac_var'}'` = yes; then
20434 cat >>confdefs.h <<_ACEOF
20435 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20436 _ACEOF
20437 cat >conftest.$ac_ext <<_ACEOF
20438 /* confdefs.h. */
20439 _ACEOF
20440 cat confdefs.h >>conftest.$ac_ext
20441 cat >>conftest.$ac_ext <<_ACEOF
20442 /* end confdefs.h. */
20443 #include <unistd.h>
20445 main ()
20447 getpgrp(0);
20449 return 0;
20451 _ACEOF
20452 rm -f conftest.$ac_objext
20453 if { (ac_try="$ac_compile"
20454 case "(($ac_try" in
20455 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20456 *) ac_try_echo=$ac_try;;
20457 esac
20458 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20459 (eval "$ac_compile") 2>conftest.er1
20460 ac_status=$?
20461 grep -v '^ *+' conftest.er1 >conftest.err
20462 rm -f conftest.er1
20463 cat conftest.err >&5
20464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20465 (exit $ac_status); } && {
20466 test -z "$ac_c_werror_flag" ||
20467 test ! -s conftest.err
20468 } && test -s conftest.$ac_objext; then
20470 cat >>confdefs.h <<\_ACEOF
20471 #define GETPGRP_HAVE_ARG 1
20472 _ACEOF
20475 else
20476 echo "$as_me: failed program was:" >&5
20477 sed 's/^/| /' conftest.$ac_ext >&5
20482 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20485 done
20488 for ac_func in setpgrp
20490 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20491 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20492 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20493 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20494 echo $ECHO_N "(cached) $ECHO_C" >&6
20495 else
20496 cat >conftest.$ac_ext <<_ACEOF
20497 /* confdefs.h. */
20498 _ACEOF
20499 cat confdefs.h >>conftest.$ac_ext
20500 cat >>conftest.$ac_ext <<_ACEOF
20501 /* end confdefs.h. */
20502 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20503 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20504 #define $ac_func innocuous_$ac_func
20506 /* System header to define __stub macros and hopefully few prototypes,
20507 which can conflict with char $ac_func (); below.
20508 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20509 <limits.h> exists even on freestanding compilers. */
20511 #ifdef __STDC__
20512 # include <limits.h>
20513 #else
20514 # include <assert.h>
20515 #endif
20517 #undef $ac_func
20519 /* Override any GCC internal prototype to avoid an error.
20520 Use char because int might match the return type of a GCC
20521 builtin and then its argument prototype would still apply. */
20522 #ifdef __cplusplus
20523 extern "C"
20524 #endif
20525 char $ac_func ();
20526 /* The GNU C library defines this for functions which it implements
20527 to always fail with ENOSYS. Some functions are actually named
20528 something starting with __ and the normal name is an alias. */
20529 #if defined __stub_$ac_func || defined __stub___$ac_func
20530 choke me
20531 #endif
20534 main ()
20536 return $ac_func ();
20538 return 0;
20540 _ACEOF
20541 rm -f conftest.$ac_objext conftest$ac_exeext
20542 if { (ac_try="$ac_link"
20543 case "(($ac_try" in
20544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20545 *) ac_try_echo=$ac_try;;
20546 esac
20547 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20548 (eval "$ac_link") 2>conftest.er1
20549 ac_status=$?
20550 grep -v '^ *+' conftest.er1 >conftest.err
20551 rm -f conftest.er1
20552 cat conftest.err >&5
20553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20554 (exit $ac_status); } && {
20555 test -z "$ac_c_werror_flag" ||
20556 test ! -s conftest.err
20557 } && test -s conftest$ac_exeext &&
20558 $as_test_x conftest$ac_exeext; then
20559 eval "$as_ac_var=yes"
20560 else
20561 echo "$as_me: failed program was:" >&5
20562 sed 's/^/| /' conftest.$ac_ext >&5
20564 eval "$as_ac_var=no"
20567 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20568 conftest$ac_exeext conftest.$ac_ext
20570 ac_res=`eval echo '${'$as_ac_var'}'`
20571 { echo "$as_me:$LINENO: result: $ac_res" >&5
20572 echo "${ECHO_T}$ac_res" >&6; }
20573 if test `eval echo '${'$as_ac_var'}'` = yes; then
20574 cat >>confdefs.h <<_ACEOF
20575 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20576 _ACEOF
20577 cat >conftest.$ac_ext <<_ACEOF
20578 /* confdefs.h. */
20579 _ACEOF
20580 cat confdefs.h >>conftest.$ac_ext
20581 cat >>conftest.$ac_ext <<_ACEOF
20582 /* end confdefs.h. */
20583 #include <unistd.h>
20585 main ()
20587 setpgrp(0,0);
20589 return 0;
20591 _ACEOF
20592 rm -f conftest.$ac_objext
20593 if { (ac_try="$ac_compile"
20594 case "(($ac_try" in
20595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20596 *) ac_try_echo=$ac_try;;
20597 esac
20598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20599 (eval "$ac_compile") 2>conftest.er1
20600 ac_status=$?
20601 grep -v '^ *+' conftest.er1 >conftest.err
20602 rm -f conftest.er1
20603 cat conftest.err >&5
20604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20605 (exit $ac_status); } && {
20606 test -z "$ac_c_werror_flag" ||
20607 test ! -s conftest.err
20608 } && test -s conftest.$ac_objext; then
20610 cat >>confdefs.h <<\_ACEOF
20611 #define SETPGRP_HAVE_ARG 1
20612 _ACEOF
20615 else
20616 echo "$as_me: failed program was:" >&5
20617 sed 's/^/| /' conftest.$ac_ext >&5
20622 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20625 done
20628 for ac_func in gettimeofday
20630 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20631 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20632 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20633 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20634 echo $ECHO_N "(cached) $ECHO_C" >&6
20635 else
20636 cat >conftest.$ac_ext <<_ACEOF
20637 /* confdefs.h. */
20638 _ACEOF
20639 cat confdefs.h >>conftest.$ac_ext
20640 cat >>conftest.$ac_ext <<_ACEOF
20641 /* end confdefs.h. */
20642 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20643 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20644 #define $ac_func innocuous_$ac_func
20646 /* System header to define __stub macros and hopefully few prototypes,
20647 which can conflict with char $ac_func (); below.
20648 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20649 <limits.h> exists even on freestanding compilers. */
20651 #ifdef __STDC__
20652 # include <limits.h>
20653 #else
20654 # include <assert.h>
20655 #endif
20657 #undef $ac_func
20659 /* Override any GCC internal prototype to avoid an error.
20660 Use char because int might match the return type of a GCC
20661 builtin and then its argument prototype would still apply. */
20662 #ifdef __cplusplus
20663 extern "C"
20664 #endif
20665 char $ac_func ();
20666 /* The GNU C library defines this for functions which it implements
20667 to always fail with ENOSYS. Some functions are actually named
20668 something starting with __ and the normal name is an alias. */
20669 #if defined __stub_$ac_func || defined __stub___$ac_func
20670 choke me
20671 #endif
20674 main ()
20676 return $ac_func ();
20678 return 0;
20680 _ACEOF
20681 rm -f conftest.$ac_objext conftest$ac_exeext
20682 if { (ac_try="$ac_link"
20683 case "(($ac_try" in
20684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20685 *) ac_try_echo=$ac_try;;
20686 esac
20687 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20688 (eval "$ac_link") 2>conftest.er1
20689 ac_status=$?
20690 grep -v '^ *+' conftest.er1 >conftest.err
20691 rm -f conftest.er1
20692 cat conftest.err >&5
20693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20694 (exit $ac_status); } && {
20695 test -z "$ac_c_werror_flag" ||
20696 test ! -s conftest.err
20697 } && test -s conftest$ac_exeext &&
20698 $as_test_x conftest$ac_exeext; then
20699 eval "$as_ac_var=yes"
20700 else
20701 echo "$as_me: failed program was:" >&5
20702 sed 's/^/| /' conftest.$ac_ext >&5
20704 eval "$as_ac_var=no"
20707 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20708 conftest$ac_exeext conftest.$ac_ext
20710 ac_res=`eval echo '${'$as_ac_var'}'`
20711 { echo "$as_me:$LINENO: result: $ac_res" >&5
20712 echo "${ECHO_T}$ac_res" >&6; }
20713 if test `eval echo '${'$as_ac_var'}'` = yes; then
20714 cat >>confdefs.h <<_ACEOF
20715 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20716 _ACEOF
20717 cat >conftest.$ac_ext <<_ACEOF
20718 /* confdefs.h. */
20719 _ACEOF
20720 cat confdefs.h >>conftest.$ac_ext
20721 cat >>conftest.$ac_ext <<_ACEOF
20722 /* end confdefs.h. */
20723 #include <sys/time.h>
20725 main ()
20727 gettimeofday((struct timeval*)0,(struct timezone*)0);
20729 return 0;
20731 _ACEOF
20732 rm -f conftest.$ac_objext
20733 if { (ac_try="$ac_compile"
20734 case "(($ac_try" in
20735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20736 *) ac_try_echo=$ac_try;;
20737 esac
20738 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20739 (eval "$ac_compile") 2>conftest.er1
20740 ac_status=$?
20741 grep -v '^ *+' conftest.er1 >conftest.err
20742 rm -f conftest.er1
20743 cat conftest.err >&5
20744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20745 (exit $ac_status); } && {
20746 test -z "$ac_c_werror_flag" ||
20747 test ! -s conftest.err
20748 } && test -s conftest.$ac_objext; then
20750 else
20751 echo "$as_me: failed program was:" >&5
20752 sed 's/^/| /' conftest.$ac_ext >&5
20755 cat >>confdefs.h <<\_ACEOF
20756 #define GETTIMEOFDAY_NO_TZ 1
20757 _ACEOF
20762 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20765 done
20768 { echo "$as_me:$LINENO: checking for major" >&5
20769 echo $ECHO_N "checking for major... $ECHO_C" >&6; }
20770 cat >conftest.$ac_ext <<_ACEOF
20771 /* confdefs.h. */
20772 _ACEOF
20773 cat confdefs.h >>conftest.$ac_ext
20774 cat >>conftest.$ac_ext <<_ACEOF
20775 /* end confdefs.h. */
20777 #if defined(MAJOR_IN_MKDEV)
20778 #include <sys/mkdev.h>
20779 #elif defined(MAJOR_IN_SYSMACROS)
20780 #include <sys/sysmacros.h>
20781 #else
20782 #include <sys/types.h>
20783 #endif
20786 main ()
20789 makedev(major(0),minor(0));
20792 return 0;
20794 _ACEOF
20795 rm -f conftest.$ac_objext conftest$ac_exeext
20796 if { (ac_try="$ac_link"
20797 case "(($ac_try" in
20798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20799 *) ac_try_echo=$ac_try;;
20800 esac
20801 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20802 (eval "$ac_link") 2>conftest.er1
20803 ac_status=$?
20804 grep -v '^ *+' conftest.er1 >conftest.err
20805 rm -f conftest.er1
20806 cat conftest.err >&5
20807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20808 (exit $ac_status); } && {
20809 test -z "$ac_c_werror_flag" ||
20810 test ! -s conftest.err
20811 } && test -s conftest$ac_exeext &&
20812 $as_test_x conftest$ac_exeext; then
20815 cat >>confdefs.h <<\_ACEOF
20816 #define HAVE_DEVICE_MACROS 1
20817 _ACEOF
20819 { echo "$as_me:$LINENO: result: yes" >&5
20820 echo "${ECHO_T}yes" >&6; }
20822 else
20823 echo "$as_me: failed program was:" >&5
20824 sed 's/^/| /' conftest.$ac_ext >&5
20827 { echo "$as_me:$LINENO: result: no" >&5
20828 echo "${ECHO_T}no" >&6; }
20832 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20833 conftest$ac_exeext conftest.$ac_ext
20835 # On OSF/1 V5.1, getaddrinfo is available, but a define
20836 # for [no]getaddrinfo in netdb.h.
20837 { echo "$as_me:$LINENO: checking for getaddrinfo" >&5
20838 echo $ECHO_N "checking for getaddrinfo... $ECHO_C" >&6; }
20839 cat >conftest.$ac_ext <<_ACEOF
20840 /* confdefs.h. */
20841 _ACEOF
20842 cat confdefs.h >>conftest.$ac_ext
20843 cat >>conftest.$ac_ext <<_ACEOF
20844 /* end confdefs.h. */
20846 #include <sys/types.h>
20847 #include <sys/socket.h>
20848 #include <netdb.h>
20849 #include <stdio.h>
20852 main ()
20854 getaddrinfo(NULL, NULL, NULL, NULL);
20856 return 0;
20858 _ACEOF
20859 rm -f conftest.$ac_objext conftest$ac_exeext
20860 if { (ac_try="$ac_link"
20861 case "(($ac_try" in
20862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20863 *) ac_try_echo=$ac_try;;
20864 esac
20865 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20866 (eval "$ac_link") 2>conftest.er1
20867 ac_status=$?
20868 grep -v '^ *+' conftest.er1 >conftest.err
20869 rm -f conftest.er1
20870 cat conftest.err >&5
20871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20872 (exit $ac_status); } && {
20873 test -z "$ac_c_werror_flag" ||
20874 test ! -s conftest.err
20875 } && test -s conftest$ac_exeext &&
20876 $as_test_x conftest$ac_exeext; then
20877 have_getaddrinfo=yes
20878 else
20879 echo "$as_me: failed program was:" >&5
20880 sed 's/^/| /' conftest.$ac_ext >&5
20882 have_getaddrinfo=no
20885 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20886 conftest$ac_exeext conftest.$ac_ext
20887 { echo "$as_me:$LINENO: result: $have_getaddrinfo" >&5
20888 echo "${ECHO_T}$have_getaddrinfo" >&6; }
20889 if test $have_getaddrinfo = yes
20890 then
20891 { echo "$as_me:$LINENO: checking getaddrinfo bug" >&5
20892 echo $ECHO_N "checking getaddrinfo bug... $ECHO_C" >&6; }
20893 if test "${ac_cv_buggy_getaddrinfo+set}" = set; then
20894 echo $ECHO_N "(cached) $ECHO_C" >&6
20895 else
20896 if test "$cross_compiling" = yes; then
20897 ac_cv_buggy_getaddrinfo=yes
20898 else
20899 cat >conftest.$ac_ext <<_ACEOF
20900 /* confdefs.h. */
20901 _ACEOF
20902 cat confdefs.h >>conftest.$ac_ext
20903 cat >>conftest.$ac_ext <<_ACEOF
20904 /* end confdefs.h. */
20906 #include <sys/types.h>
20907 #include <netdb.h>
20908 #include <string.h>
20909 #include <sys/socket.h>
20910 #include <netinet/in.h>
20912 int main()
20914 int passive, gaierr, inet4 = 0, inet6 = 0;
20915 struct addrinfo hints, *ai, *aitop;
20916 char straddr[INET6_ADDRSTRLEN], strport[16];
20918 for (passive = 0; passive <= 1; passive++) {
20919 memset(&hints, 0, sizeof(hints));
20920 hints.ai_family = AF_UNSPEC;
20921 hints.ai_flags = passive ? AI_PASSIVE : 0;
20922 hints.ai_socktype = SOCK_STREAM;
20923 hints.ai_protocol = IPPROTO_TCP;
20924 if ((gaierr = getaddrinfo(NULL, "54321", &hints, &aitop)) != 0) {
20925 (void)gai_strerror(gaierr);
20926 goto bad;
20928 for (ai = aitop; ai; ai = ai->ai_next) {
20929 if (ai->ai_addr == NULL ||
20930 ai->ai_addrlen == 0 ||
20931 getnameinfo(ai->ai_addr, ai->ai_addrlen,
20932 straddr, sizeof(straddr), strport, sizeof(strport),
20933 NI_NUMERICHOST|NI_NUMERICSERV) != 0) {
20934 goto bad;
20936 switch (ai->ai_family) {
20937 case AF_INET:
20938 if (strcmp(strport, "54321") != 0) {
20939 goto bad;
20941 if (passive) {
20942 if (strcmp(straddr, "0.0.0.0") != 0) {
20943 goto bad;
20945 } else {
20946 if (strcmp(straddr, "127.0.0.1") != 0) {
20947 goto bad;
20950 inet4++;
20951 break;
20952 case AF_INET6:
20953 if (strcmp(strport, "54321") != 0) {
20954 goto bad;
20956 if (passive) {
20957 if (strcmp(straddr, "::") != 0) {
20958 goto bad;
20960 } else {
20961 if (strcmp(straddr, "::1") != 0) {
20962 goto bad;
20965 inet6++;
20966 break;
20967 case AF_UNSPEC:
20968 goto bad;
20969 break;
20970 default:
20971 /* another family support? */
20972 break;
20977 if (!(inet4 == 0 || inet4 == 2))
20978 goto bad;
20979 if (!(inet6 == 0 || inet6 == 2))
20980 goto bad;
20982 if (aitop)
20983 freeaddrinfo(aitop);
20984 return 0;
20986 bad:
20987 if (aitop)
20988 freeaddrinfo(aitop);
20989 return 1;
20992 _ACEOF
20993 rm -f conftest$ac_exeext
20994 if { (ac_try="$ac_link"
20995 case "(($ac_try" in
20996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20997 *) ac_try_echo=$ac_try;;
20998 esac
20999 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21000 (eval "$ac_link") 2>&5
21001 ac_status=$?
21002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21003 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21004 { (case "(($ac_try" in
21005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21006 *) ac_try_echo=$ac_try;;
21007 esac
21008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21009 (eval "$ac_try") 2>&5
21010 ac_status=$?
21011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21012 (exit $ac_status); }; }; then
21013 ac_cv_buggy_getaddrinfo=no
21014 else
21015 echo "$as_me: program exited with status $ac_status" >&5
21016 echo "$as_me: failed program was:" >&5
21017 sed 's/^/| /' conftest.$ac_ext >&5
21019 ( exit $ac_status )
21020 ac_cv_buggy_getaddrinfo=yes
21022 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21030 if test $have_getaddrinfo = no -o $ac_cv_buggy_getaddrinfo = yes
21031 then
21032 if test $ipv6 = yes
21033 then
21034 echo 'Fatal: You must get working getaddrinfo() function.'
21035 echo ' or you can specify "--disable-ipv6"'.
21036 exit 1
21038 else
21040 cat >>confdefs.h <<\_ACEOF
21041 #define HAVE_GETADDRINFO 1
21042 _ACEOF
21046 for ac_func in getnameinfo
21048 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21049 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21050 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21051 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21052 echo $ECHO_N "(cached) $ECHO_C" >&6
21053 else
21054 cat >conftest.$ac_ext <<_ACEOF
21055 /* confdefs.h. */
21056 _ACEOF
21057 cat confdefs.h >>conftest.$ac_ext
21058 cat >>conftest.$ac_ext <<_ACEOF
21059 /* end confdefs.h. */
21060 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21061 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21062 #define $ac_func innocuous_$ac_func
21064 /* System header to define __stub macros and hopefully few prototypes,
21065 which can conflict with char $ac_func (); below.
21066 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21067 <limits.h> exists even on freestanding compilers. */
21069 #ifdef __STDC__
21070 # include <limits.h>
21071 #else
21072 # include <assert.h>
21073 #endif
21075 #undef $ac_func
21077 /* Override any GCC internal prototype to avoid an error.
21078 Use char because int might match the return type of a GCC
21079 builtin and then its argument prototype would still apply. */
21080 #ifdef __cplusplus
21081 extern "C"
21082 #endif
21083 char $ac_func ();
21084 /* The GNU C library defines this for functions which it implements
21085 to always fail with ENOSYS. Some functions are actually named
21086 something starting with __ and the normal name is an alias. */
21087 #if defined __stub_$ac_func || defined __stub___$ac_func
21088 choke me
21089 #endif
21092 main ()
21094 return $ac_func ();
21096 return 0;
21098 _ACEOF
21099 rm -f conftest.$ac_objext conftest$ac_exeext
21100 if { (ac_try="$ac_link"
21101 case "(($ac_try" in
21102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21103 *) ac_try_echo=$ac_try;;
21104 esac
21105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21106 (eval "$ac_link") 2>conftest.er1
21107 ac_status=$?
21108 grep -v '^ *+' conftest.er1 >conftest.err
21109 rm -f conftest.er1
21110 cat conftest.err >&5
21111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21112 (exit $ac_status); } && {
21113 test -z "$ac_c_werror_flag" ||
21114 test ! -s conftest.err
21115 } && test -s conftest$ac_exeext &&
21116 $as_test_x conftest$ac_exeext; then
21117 eval "$as_ac_var=yes"
21118 else
21119 echo "$as_me: failed program was:" >&5
21120 sed 's/^/| /' conftest.$ac_ext >&5
21122 eval "$as_ac_var=no"
21125 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21126 conftest$ac_exeext conftest.$ac_ext
21128 ac_res=`eval echo '${'$as_ac_var'}'`
21129 { echo "$as_me:$LINENO: result: $ac_res" >&5
21130 echo "${ECHO_T}$ac_res" >&6; }
21131 if test `eval echo '${'$as_ac_var'}'` = yes; then
21132 cat >>confdefs.h <<_ACEOF
21133 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21134 _ACEOF
21137 done
21140 # checks for structures
21141 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
21142 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
21143 if test "${ac_cv_header_time+set}" = set; then
21144 echo $ECHO_N "(cached) $ECHO_C" >&6
21145 else
21146 cat >conftest.$ac_ext <<_ACEOF
21147 /* confdefs.h. */
21148 _ACEOF
21149 cat confdefs.h >>conftest.$ac_ext
21150 cat >>conftest.$ac_ext <<_ACEOF
21151 /* end confdefs.h. */
21152 #include <sys/types.h>
21153 #include <sys/time.h>
21154 #include <time.h>
21157 main ()
21159 if ((struct tm *) 0)
21160 return 0;
21162 return 0;
21164 _ACEOF
21165 rm -f conftest.$ac_objext
21166 if { (ac_try="$ac_compile"
21167 case "(($ac_try" in
21168 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21169 *) ac_try_echo=$ac_try;;
21170 esac
21171 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21172 (eval "$ac_compile") 2>conftest.er1
21173 ac_status=$?
21174 grep -v '^ *+' conftest.er1 >conftest.err
21175 rm -f conftest.er1
21176 cat conftest.err >&5
21177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21178 (exit $ac_status); } && {
21179 test -z "$ac_c_werror_flag" ||
21180 test ! -s conftest.err
21181 } && test -s conftest.$ac_objext; then
21182 ac_cv_header_time=yes
21183 else
21184 echo "$as_me: failed program was:" >&5
21185 sed 's/^/| /' conftest.$ac_ext >&5
21187 ac_cv_header_time=no
21190 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21192 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
21193 echo "${ECHO_T}$ac_cv_header_time" >&6; }
21194 if test $ac_cv_header_time = yes; then
21196 cat >>confdefs.h <<\_ACEOF
21197 #define TIME_WITH_SYS_TIME 1
21198 _ACEOF
21202 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
21203 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
21204 if test "${ac_cv_struct_tm+set}" = set; then
21205 echo $ECHO_N "(cached) $ECHO_C" >&6
21206 else
21207 cat >conftest.$ac_ext <<_ACEOF
21208 /* confdefs.h. */
21209 _ACEOF
21210 cat confdefs.h >>conftest.$ac_ext
21211 cat >>conftest.$ac_ext <<_ACEOF
21212 /* end confdefs.h. */
21213 #include <sys/types.h>
21214 #include <time.h>
21217 main ()
21219 struct tm tm;
21220 int *p = &tm.tm_sec;
21221 return !p;
21223 return 0;
21225 _ACEOF
21226 rm -f conftest.$ac_objext
21227 if { (ac_try="$ac_compile"
21228 case "(($ac_try" in
21229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21230 *) ac_try_echo=$ac_try;;
21231 esac
21232 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21233 (eval "$ac_compile") 2>conftest.er1
21234 ac_status=$?
21235 grep -v '^ *+' conftest.er1 >conftest.err
21236 rm -f conftest.er1
21237 cat conftest.err >&5
21238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21239 (exit $ac_status); } && {
21240 test -z "$ac_c_werror_flag" ||
21241 test ! -s conftest.err
21242 } && test -s conftest.$ac_objext; then
21243 ac_cv_struct_tm=time.h
21244 else
21245 echo "$as_me: failed program was:" >&5
21246 sed 's/^/| /' conftest.$ac_ext >&5
21248 ac_cv_struct_tm=sys/time.h
21251 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21253 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
21254 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
21255 if test $ac_cv_struct_tm = sys/time.h; then
21257 cat >>confdefs.h <<\_ACEOF
21258 #define TM_IN_SYS_TIME 1
21259 _ACEOF
21263 { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
21264 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
21265 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
21266 echo $ECHO_N "(cached) $ECHO_C" >&6
21267 else
21268 cat >conftest.$ac_ext <<_ACEOF
21269 /* confdefs.h. */
21270 _ACEOF
21271 cat confdefs.h >>conftest.$ac_ext
21272 cat >>conftest.$ac_ext <<_ACEOF
21273 /* end confdefs.h. */
21274 #include <sys/types.h>
21275 #include <$ac_cv_struct_tm>
21279 main ()
21281 static struct tm ac_aggr;
21282 if (ac_aggr.tm_zone)
21283 return 0;
21285 return 0;
21287 _ACEOF
21288 rm -f conftest.$ac_objext
21289 if { (ac_try="$ac_compile"
21290 case "(($ac_try" in
21291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21292 *) ac_try_echo=$ac_try;;
21293 esac
21294 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21295 (eval "$ac_compile") 2>conftest.er1
21296 ac_status=$?
21297 grep -v '^ *+' conftest.er1 >conftest.err
21298 rm -f conftest.er1
21299 cat conftest.err >&5
21300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21301 (exit $ac_status); } && {
21302 test -z "$ac_c_werror_flag" ||
21303 test ! -s conftest.err
21304 } && test -s conftest.$ac_objext; then
21305 ac_cv_member_struct_tm_tm_zone=yes
21306 else
21307 echo "$as_me: failed program was:" >&5
21308 sed 's/^/| /' conftest.$ac_ext >&5
21310 cat >conftest.$ac_ext <<_ACEOF
21311 /* confdefs.h. */
21312 _ACEOF
21313 cat confdefs.h >>conftest.$ac_ext
21314 cat >>conftest.$ac_ext <<_ACEOF
21315 /* end confdefs.h. */
21316 #include <sys/types.h>
21317 #include <$ac_cv_struct_tm>
21321 main ()
21323 static struct tm ac_aggr;
21324 if (sizeof ac_aggr.tm_zone)
21325 return 0;
21327 return 0;
21329 _ACEOF
21330 rm -f conftest.$ac_objext
21331 if { (ac_try="$ac_compile"
21332 case "(($ac_try" in
21333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21334 *) ac_try_echo=$ac_try;;
21335 esac
21336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21337 (eval "$ac_compile") 2>conftest.er1
21338 ac_status=$?
21339 grep -v '^ *+' conftest.er1 >conftest.err
21340 rm -f conftest.er1
21341 cat conftest.err >&5
21342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21343 (exit $ac_status); } && {
21344 test -z "$ac_c_werror_flag" ||
21345 test ! -s conftest.err
21346 } && test -s conftest.$ac_objext; then
21347 ac_cv_member_struct_tm_tm_zone=yes
21348 else
21349 echo "$as_me: failed program was:" >&5
21350 sed 's/^/| /' conftest.$ac_ext >&5
21352 ac_cv_member_struct_tm_tm_zone=no
21355 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21358 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21360 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
21361 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
21362 if test $ac_cv_member_struct_tm_tm_zone = yes; then
21364 cat >>confdefs.h <<_ACEOF
21365 #define HAVE_STRUCT_TM_TM_ZONE 1
21366 _ACEOF
21371 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
21373 cat >>confdefs.h <<\_ACEOF
21374 #define HAVE_TM_ZONE 1
21375 _ACEOF
21377 else
21378 { echo "$as_me:$LINENO: checking whether tzname is declared" >&5
21379 echo $ECHO_N "checking whether tzname is declared... $ECHO_C" >&6; }
21380 if test "${ac_cv_have_decl_tzname+set}" = set; then
21381 echo $ECHO_N "(cached) $ECHO_C" >&6
21382 else
21383 cat >conftest.$ac_ext <<_ACEOF
21384 /* confdefs.h. */
21385 _ACEOF
21386 cat confdefs.h >>conftest.$ac_ext
21387 cat >>conftest.$ac_ext <<_ACEOF
21388 /* end confdefs.h. */
21389 #include <time.h>
21392 main ()
21394 #ifndef tzname
21395 (void) tzname;
21396 #endif
21399 return 0;
21401 _ACEOF
21402 rm -f conftest.$ac_objext
21403 if { (ac_try="$ac_compile"
21404 case "(($ac_try" in
21405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21406 *) ac_try_echo=$ac_try;;
21407 esac
21408 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21409 (eval "$ac_compile") 2>conftest.er1
21410 ac_status=$?
21411 grep -v '^ *+' conftest.er1 >conftest.err
21412 rm -f conftest.er1
21413 cat conftest.err >&5
21414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21415 (exit $ac_status); } && {
21416 test -z "$ac_c_werror_flag" ||
21417 test ! -s conftest.err
21418 } && test -s conftest.$ac_objext; then
21419 ac_cv_have_decl_tzname=yes
21420 else
21421 echo "$as_me: failed program was:" >&5
21422 sed 's/^/| /' conftest.$ac_ext >&5
21424 ac_cv_have_decl_tzname=no
21427 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21429 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
21430 echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; }
21431 if test $ac_cv_have_decl_tzname = yes; then
21433 cat >>confdefs.h <<_ACEOF
21434 #define HAVE_DECL_TZNAME 1
21435 _ACEOF
21438 else
21439 cat >>confdefs.h <<_ACEOF
21440 #define HAVE_DECL_TZNAME 0
21441 _ACEOF
21447 { echo "$as_me:$LINENO: checking for tzname" >&5
21448 echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
21449 if test "${ac_cv_var_tzname+set}" = set; then
21450 echo $ECHO_N "(cached) $ECHO_C" >&6
21451 else
21452 cat >conftest.$ac_ext <<_ACEOF
21453 /* confdefs.h. */
21454 _ACEOF
21455 cat confdefs.h >>conftest.$ac_ext
21456 cat >>conftest.$ac_ext <<_ACEOF
21457 /* end confdefs.h. */
21458 #include <time.h>
21459 #if !HAVE_DECL_TZNAME
21460 extern char *tzname[];
21461 #endif
21464 main ()
21466 return tzname[0][0];
21468 return 0;
21470 _ACEOF
21471 rm -f conftest.$ac_objext conftest$ac_exeext
21472 if { (ac_try="$ac_link"
21473 case "(($ac_try" in
21474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21475 *) ac_try_echo=$ac_try;;
21476 esac
21477 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21478 (eval "$ac_link") 2>conftest.er1
21479 ac_status=$?
21480 grep -v '^ *+' conftest.er1 >conftest.err
21481 rm -f conftest.er1
21482 cat conftest.err >&5
21483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21484 (exit $ac_status); } && {
21485 test -z "$ac_c_werror_flag" ||
21486 test ! -s conftest.err
21487 } && test -s conftest$ac_exeext &&
21488 $as_test_x conftest$ac_exeext; then
21489 ac_cv_var_tzname=yes
21490 else
21491 echo "$as_me: failed program was:" >&5
21492 sed 's/^/| /' conftest.$ac_ext >&5
21494 ac_cv_var_tzname=no
21497 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21498 conftest$ac_exeext conftest.$ac_ext
21500 { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
21501 echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
21502 if test $ac_cv_var_tzname = yes; then
21504 cat >>confdefs.h <<\_ACEOF
21505 #define HAVE_TZNAME 1
21506 _ACEOF
21511 { echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
21512 echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6; }
21513 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
21514 echo $ECHO_N "(cached) $ECHO_C" >&6
21515 else
21516 cat >conftest.$ac_ext <<_ACEOF
21517 /* confdefs.h. */
21518 _ACEOF
21519 cat confdefs.h >>conftest.$ac_ext
21520 cat >>conftest.$ac_ext <<_ACEOF
21521 /* end confdefs.h. */
21522 $ac_includes_default
21524 main ()
21526 static struct stat ac_aggr;
21527 if (ac_aggr.st_rdev)
21528 return 0;
21530 return 0;
21532 _ACEOF
21533 rm -f conftest.$ac_objext
21534 if { (ac_try="$ac_compile"
21535 case "(($ac_try" in
21536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21537 *) ac_try_echo=$ac_try;;
21538 esac
21539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21540 (eval "$ac_compile") 2>conftest.er1
21541 ac_status=$?
21542 grep -v '^ *+' conftest.er1 >conftest.err
21543 rm -f conftest.er1
21544 cat conftest.err >&5
21545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21546 (exit $ac_status); } && {
21547 test -z "$ac_c_werror_flag" ||
21548 test ! -s conftest.err
21549 } && test -s conftest.$ac_objext; then
21550 ac_cv_member_struct_stat_st_rdev=yes
21551 else
21552 echo "$as_me: failed program was:" >&5
21553 sed 's/^/| /' conftest.$ac_ext >&5
21555 cat >conftest.$ac_ext <<_ACEOF
21556 /* confdefs.h. */
21557 _ACEOF
21558 cat confdefs.h >>conftest.$ac_ext
21559 cat >>conftest.$ac_ext <<_ACEOF
21560 /* end confdefs.h. */
21561 $ac_includes_default
21563 main ()
21565 static struct stat ac_aggr;
21566 if (sizeof ac_aggr.st_rdev)
21567 return 0;
21569 return 0;
21571 _ACEOF
21572 rm -f conftest.$ac_objext
21573 if { (ac_try="$ac_compile"
21574 case "(($ac_try" in
21575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21576 *) ac_try_echo=$ac_try;;
21577 esac
21578 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21579 (eval "$ac_compile") 2>conftest.er1
21580 ac_status=$?
21581 grep -v '^ *+' conftest.er1 >conftest.err
21582 rm -f conftest.er1
21583 cat conftest.err >&5
21584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21585 (exit $ac_status); } && {
21586 test -z "$ac_c_werror_flag" ||
21587 test ! -s conftest.err
21588 } && test -s conftest.$ac_objext; then
21589 ac_cv_member_struct_stat_st_rdev=yes
21590 else
21591 echo "$as_me: failed program was:" >&5
21592 sed 's/^/| /' conftest.$ac_ext >&5
21594 ac_cv_member_struct_stat_st_rdev=no
21597 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21600 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21602 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
21603 echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6; }
21604 if test $ac_cv_member_struct_stat_st_rdev = yes; then
21606 cat >>confdefs.h <<_ACEOF
21607 #define HAVE_STRUCT_STAT_ST_RDEV 1
21608 _ACEOF
21613 { echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
21614 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6; }
21615 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
21616 echo $ECHO_N "(cached) $ECHO_C" >&6
21617 else
21618 cat >conftest.$ac_ext <<_ACEOF
21619 /* confdefs.h. */
21620 _ACEOF
21621 cat confdefs.h >>conftest.$ac_ext
21622 cat >>conftest.$ac_ext <<_ACEOF
21623 /* end confdefs.h. */
21624 $ac_includes_default
21626 main ()
21628 static struct stat ac_aggr;
21629 if (ac_aggr.st_blksize)
21630 return 0;
21632 return 0;
21634 _ACEOF
21635 rm -f conftest.$ac_objext
21636 if { (ac_try="$ac_compile"
21637 case "(($ac_try" in
21638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21639 *) ac_try_echo=$ac_try;;
21640 esac
21641 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21642 (eval "$ac_compile") 2>conftest.er1
21643 ac_status=$?
21644 grep -v '^ *+' conftest.er1 >conftest.err
21645 rm -f conftest.er1
21646 cat conftest.err >&5
21647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21648 (exit $ac_status); } && {
21649 test -z "$ac_c_werror_flag" ||
21650 test ! -s conftest.err
21651 } && test -s conftest.$ac_objext; then
21652 ac_cv_member_struct_stat_st_blksize=yes
21653 else
21654 echo "$as_me: failed program was:" >&5
21655 sed 's/^/| /' conftest.$ac_ext >&5
21657 cat >conftest.$ac_ext <<_ACEOF
21658 /* confdefs.h. */
21659 _ACEOF
21660 cat confdefs.h >>conftest.$ac_ext
21661 cat >>conftest.$ac_ext <<_ACEOF
21662 /* end confdefs.h. */
21663 $ac_includes_default
21665 main ()
21667 static struct stat ac_aggr;
21668 if (sizeof ac_aggr.st_blksize)
21669 return 0;
21671 return 0;
21673 _ACEOF
21674 rm -f conftest.$ac_objext
21675 if { (ac_try="$ac_compile"
21676 case "(($ac_try" in
21677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21678 *) ac_try_echo=$ac_try;;
21679 esac
21680 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21681 (eval "$ac_compile") 2>conftest.er1
21682 ac_status=$?
21683 grep -v '^ *+' conftest.er1 >conftest.err
21684 rm -f conftest.er1
21685 cat conftest.err >&5
21686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21687 (exit $ac_status); } && {
21688 test -z "$ac_c_werror_flag" ||
21689 test ! -s conftest.err
21690 } && test -s conftest.$ac_objext; then
21691 ac_cv_member_struct_stat_st_blksize=yes
21692 else
21693 echo "$as_me: failed program was:" >&5
21694 sed 's/^/| /' conftest.$ac_ext >&5
21696 ac_cv_member_struct_stat_st_blksize=no
21699 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21702 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21704 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
21705 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6; }
21706 if test $ac_cv_member_struct_stat_st_blksize = yes; then
21708 cat >>confdefs.h <<_ACEOF
21709 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
21710 _ACEOF
21715 { echo "$as_me:$LINENO: checking for struct stat.st_flags" >&5
21716 echo $ECHO_N "checking for struct stat.st_flags... $ECHO_C" >&6; }
21717 if test "${ac_cv_member_struct_stat_st_flags+set}" = set; then
21718 echo $ECHO_N "(cached) $ECHO_C" >&6
21719 else
21720 cat >conftest.$ac_ext <<_ACEOF
21721 /* confdefs.h. */
21722 _ACEOF
21723 cat confdefs.h >>conftest.$ac_ext
21724 cat >>conftest.$ac_ext <<_ACEOF
21725 /* end confdefs.h. */
21726 $ac_includes_default
21728 main ()
21730 static struct stat ac_aggr;
21731 if (ac_aggr.st_flags)
21732 return 0;
21734 return 0;
21736 _ACEOF
21737 rm -f conftest.$ac_objext
21738 if { (ac_try="$ac_compile"
21739 case "(($ac_try" in
21740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21741 *) ac_try_echo=$ac_try;;
21742 esac
21743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21744 (eval "$ac_compile") 2>conftest.er1
21745 ac_status=$?
21746 grep -v '^ *+' conftest.er1 >conftest.err
21747 rm -f conftest.er1
21748 cat conftest.err >&5
21749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21750 (exit $ac_status); } && {
21751 test -z "$ac_c_werror_flag" ||
21752 test ! -s conftest.err
21753 } && test -s conftest.$ac_objext; then
21754 ac_cv_member_struct_stat_st_flags=yes
21755 else
21756 echo "$as_me: failed program was:" >&5
21757 sed 's/^/| /' conftest.$ac_ext >&5
21759 cat >conftest.$ac_ext <<_ACEOF
21760 /* confdefs.h. */
21761 _ACEOF
21762 cat confdefs.h >>conftest.$ac_ext
21763 cat >>conftest.$ac_ext <<_ACEOF
21764 /* end confdefs.h. */
21765 $ac_includes_default
21767 main ()
21769 static struct stat ac_aggr;
21770 if (sizeof ac_aggr.st_flags)
21771 return 0;
21773 return 0;
21775 _ACEOF
21776 rm -f conftest.$ac_objext
21777 if { (ac_try="$ac_compile"
21778 case "(($ac_try" in
21779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21780 *) ac_try_echo=$ac_try;;
21781 esac
21782 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21783 (eval "$ac_compile") 2>conftest.er1
21784 ac_status=$?
21785 grep -v '^ *+' conftest.er1 >conftest.err
21786 rm -f conftest.er1
21787 cat conftest.err >&5
21788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21789 (exit $ac_status); } && {
21790 test -z "$ac_c_werror_flag" ||
21791 test ! -s conftest.err
21792 } && test -s conftest.$ac_objext; then
21793 ac_cv_member_struct_stat_st_flags=yes
21794 else
21795 echo "$as_me: failed program was:" >&5
21796 sed 's/^/| /' conftest.$ac_ext >&5
21798 ac_cv_member_struct_stat_st_flags=no
21801 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21804 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21806 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_flags" >&5
21807 echo "${ECHO_T}$ac_cv_member_struct_stat_st_flags" >&6; }
21808 if test $ac_cv_member_struct_stat_st_flags = yes; then
21810 cat >>confdefs.h <<_ACEOF
21811 #define HAVE_STRUCT_STAT_ST_FLAGS 1
21812 _ACEOF
21817 { echo "$as_me:$LINENO: checking for struct stat.st_gen" >&5
21818 echo $ECHO_N "checking for struct stat.st_gen... $ECHO_C" >&6; }
21819 if test "${ac_cv_member_struct_stat_st_gen+set}" = set; then
21820 echo $ECHO_N "(cached) $ECHO_C" >&6
21821 else
21822 cat >conftest.$ac_ext <<_ACEOF
21823 /* confdefs.h. */
21824 _ACEOF
21825 cat confdefs.h >>conftest.$ac_ext
21826 cat >>conftest.$ac_ext <<_ACEOF
21827 /* end confdefs.h. */
21828 $ac_includes_default
21830 main ()
21832 static struct stat ac_aggr;
21833 if (ac_aggr.st_gen)
21834 return 0;
21836 return 0;
21838 _ACEOF
21839 rm -f conftest.$ac_objext
21840 if { (ac_try="$ac_compile"
21841 case "(($ac_try" in
21842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21843 *) ac_try_echo=$ac_try;;
21844 esac
21845 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21846 (eval "$ac_compile") 2>conftest.er1
21847 ac_status=$?
21848 grep -v '^ *+' conftest.er1 >conftest.err
21849 rm -f conftest.er1
21850 cat conftest.err >&5
21851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21852 (exit $ac_status); } && {
21853 test -z "$ac_c_werror_flag" ||
21854 test ! -s conftest.err
21855 } && test -s conftest.$ac_objext; then
21856 ac_cv_member_struct_stat_st_gen=yes
21857 else
21858 echo "$as_me: failed program was:" >&5
21859 sed 's/^/| /' conftest.$ac_ext >&5
21861 cat >conftest.$ac_ext <<_ACEOF
21862 /* confdefs.h. */
21863 _ACEOF
21864 cat confdefs.h >>conftest.$ac_ext
21865 cat >>conftest.$ac_ext <<_ACEOF
21866 /* end confdefs.h. */
21867 $ac_includes_default
21869 main ()
21871 static struct stat ac_aggr;
21872 if (sizeof ac_aggr.st_gen)
21873 return 0;
21875 return 0;
21877 _ACEOF
21878 rm -f conftest.$ac_objext
21879 if { (ac_try="$ac_compile"
21880 case "(($ac_try" in
21881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21882 *) ac_try_echo=$ac_try;;
21883 esac
21884 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21885 (eval "$ac_compile") 2>conftest.er1
21886 ac_status=$?
21887 grep -v '^ *+' conftest.er1 >conftest.err
21888 rm -f conftest.er1
21889 cat conftest.err >&5
21890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21891 (exit $ac_status); } && {
21892 test -z "$ac_c_werror_flag" ||
21893 test ! -s conftest.err
21894 } && test -s conftest.$ac_objext; then
21895 ac_cv_member_struct_stat_st_gen=yes
21896 else
21897 echo "$as_me: failed program was:" >&5
21898 sed 's/^/| /' conftest.$ac_ext >&5
21900 ac_cv_member_struct_stat_st_gen=no
21903 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21906 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21908 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_gen" >&5
21909 echo "${ECHO_T}$ac_cv_member_struct_stat_st_gen" >&6; }
21910 if test $ac_cv_member_struct_stat_st_gen = yes; then
21912 cat >>confdefs.h <<_ACEOF
21913 #define HAVE_STRUCT_STAT_ST_GEN 1
21914 _ACEOF
21919 { echo "$as_me:$LINENO: checking for struct stat.st_birthtime" >&5
21920 echo $ECHO_N "checking for struct stat.st_birthtime... $ECHO_C" >&6; }
21921 if test "${ac_cv_member_struct_stat_st_birthtime+set}" = set; then
21922 echo $ECHO_N "(cached) $ECHO_C" >&6
21923 else
21924 cat >conftest.$ac_ext <<_ACEOF
21925 /* confdefs.h. */
21926 _ACEOF
21927 cat confdefs.h >>conftest.$ac_ext
21928 cat >>conftest.$ac_ext <<_ACEOF
21929 /* end confdefs.h. */
21930 $ac_includes_default
21932 main ()
21934 static struct stat ac_aggr;
21935 if (ac_aggr.st_birthtime)
21936 return 0;
21938 return 0;
21940 _ACEOF
21941 rm -f conftest.$ac_objext
21942 if { (ac_try="$ac_compile"
21943 case "(($ac_try" in
21944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21945 *) ac_try_echo=$ac_try;;
21946 esac
21947 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21948 (eval "$ac_compile") 2>conftest.er1
21949 ac_status=$?
21950 grep -v '^ *+' conftest.er1 >conftest.err
21951 rm -f conftest.er1
21952 cat conftest.err >&5
21953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21954 (exit $ac_status); } && {
21955 test -z "$ac_c_werror_flag" ||
21956 test ! -s conftest.err
21957 } && test -s conftest.$ac_objext; then
21958 ac_cv_member_struct_stat_st_birthtime=yes
21959 else
21960 echo "$as_me: failed program was:" >&5
21961 sed 's/^/| /' conftest.$ac_ext >&5
21963 cat >conftest.$ac_ext <<_ACEOF
21964 /* confdefs.h. */
21965 _ACEOF
21966 cat confdefs.h >>conftest.$ac_ext
21967 cat >>conftest.$ac_ext <<_ACEOF
21968 /* end confdefs.h. */
21969 $ac_includes_default
21971 main ()
21973 static struct stat ac_aggr;
21974 if (sizeof ac_aggr.st_birthtime)
21975 return 0;
21977 return 0;
21979 _ACEOF
21980 rm -f conftest.$ac_objext
21981 if { (ac_try="$ac_compile"
21982 case "(($ac_try" in
21983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21984 *) ac_try_echo=$ac_try;;
21985 esac
21986 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21987 (eval "$ac_compile") 2>conftest.er1
21988 ac_status=$?
21989 grep -v '^ *+' conftest.er1 >conftest.err
21990 rm -f conftest.er1
21991 cat conftest.err >&5
21992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21993 (exit $ac_status); } && {
21994 test -z "$ac_c_werror_flag" ||
21995 test ! -s conftest.err
21996 } && test -s conftest.$ac_objext; then
21997 ac_cv_member_struct_stat_st_birthtime=yes
21998 else
21999 echo "$as_me: failed program was:" >&5
22000 sed 's/^/| /' conftest.$ac_ext >&5
22002 ac_cv_member_struct_stat_st_birthtime=no
22005 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22008 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22010 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_birthtime" >&5
22011 echo "${ECHO_T}$ac_cv_member_struct_stat_st_birthtime" >&6; }
22012 if test $ac_cv_member_struct_stat_st_birthtime = yes; then
22014 cat >>confdefs.h <<_ACEOF
22015 #define HAVE_STRUCT_STAT_ST_BIRTHTIME 1
22016 _ACEOF
22021 { echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
22022 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6; }
22023 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
22024 echo $ECHO_N "(cached) $ECHO_C" >&6
22025 else
22026 cat >conftest.$ac_ext <<_ACEOF
22027 /* confdefs.h. */
22028 _ACEOF
22029 cat confdefs.h >>conftest.$ac_ext
22030 cat >>conftest.$ac_ext <<_ACEOF
22031 /* end confdefs.h. */
22032 $ac_includes_default
22034 main ()
22036 static struct stat ac_aggr;
22037 if (ac_aggr.st_blocks)
22038 return 0;
22040 return 0;
22042 _ACEOF
22043 rm -f conftest.$ac_objext
22044 if { (ac_try="$ac_compile"
22045 case "(($ac_try" in
22046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22047 *) ac_try_echo=$ac_try;;
22048 esac
22049 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22050 (eval "$ac_compile") 2>conftest.er1
22051 ac_status=$?
22052 grep -v '^ *+' conftest.er1 >conftest.err
22053 rm -f conftest.er1
22054 cat conftest.err >&5
22055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22056 (exit $ac_status); } && {
22057 test -z "$ac_c_werror_flag" ||
22058 test ! -s conftest.err
22059 } && test -s conftest.$ac_objext; then
22060 ac_cv_member_struct_stat_st_blocks=yes
22061 else
22062 echo "$as_me: failed program was:" >&5
22063 sed 's/^/| /' conftest.$ac_ext >&5
22065 cat >conftest.$ac_ext <<_ACEOF
22066 /* confdefs.h. */
22067 _ACEOF
22068 cat confdefs.h >>conftest.$ac_ext
22069 cat >>conftest.$ac_ext <<_ACEOF
22070 /* end confdefs.h. */
22071 $ac_includes_default
22073 main ()
22075 static struct stat ac_aggr;
22076 if (sizeof ac_aggr.st_blocks)
22077 return 0;
22079 return 0;
22081 _ACEOF
22082 rm -f conftest.$ac_objext
22083 if { (ac_try="$ac_compile"
22084 case "(($ac_try" in
22085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22086 *) ac_try_echo=$ac_try;;
22087 esac
22088 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22089 (eval "$ac_compile") 2>conftest.er1
22090 ac_status=$?
22091 grep -v '^ *+' conftest.er1 >conftest.err
22092 rm -f conftest.er1
22093 cat conftest.err >&5
22094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22095 (exit $ac_status); } && {
22096 test -z "$ac_c_werror_flag" ||
22097 test ! -s conftest.err
22098 } && test -s conftest.$ac_objext; then
22099 ac_cv_member_struct_stat_st_blocks=yes
22100 else
22101 echo "$as_me: failed program was:" >&5
22102 sed 's/^/| /' conftest.$ac_ext >&5
22104 ac_cv_member_struct_stat_st_blocks=no
22107 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22110 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22112 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
22113 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6; }
22114 if test $ac_cv_member_struct_stat_st_blocks = yes; then
22116 cat >>confdefs.h <<_ACEOF
22117 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
22118 _ACEOF
22121 cat >>confdefs.h <<\_ACEOF
22122 #define HAVE_ST_BLOCKS 1
22123 _ACEOF
22125 else
22126 case " $LIBOBJS " in
22127 *" fileblocks.$ac_objext "* ) ;;
22128 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
22130 esac
22136 { echo "$as_me:$LINENO: checking for time.h that defines altzone" >&5
22137 echo $ECHO_N "checking for time.h that defines altzone... $ECHO_C" >&6; }
22138 if test "${ac_cv_header_time_altzone+set}" = set; then
22139 echo $ECHO_N "(cached) $ECHO_C" >&6
22140 else
22141 cat >conftest.$ac_ext <<_ACEOF
22142 /* confdefs.h. */
22143 _ACEOF
22144 cat confdefs.h >>conftest.$ac_ext
22145 cat >>conftest.$ac_ext <<_ACEOF
22146 /* end confdefs.h. */
22147 #include <time.h>
22149 main ()
22151 return altzone;
22153 return 0;
22155 _ACEOF
22156 rm -f conftest.$ac_objext
22157 if { (ac_try="$ac_compile"
22158 case "(($ac_try" in
22159 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22160 *) ac_try_echo=$ac_try;;
22161 esac
22162 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22163 (eval "$ac_compile") 2>conftest.er1
22164 ac_status=$?
22165 grep -v '^ *+' conftest.er1 >conftest.err
22166 rm -f conftest.er1
22167 cat conftest.err >&5
22168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22169 (exit $ac_status); } && {
22170 test -z "$ac_c_werror_flag" ||
22171 test ! -s conftest.err
22172 } && test -s conftest.$ac_objext; then
22173 ac_cv_header_time_altzone=yes
22174 else
22175 echo "$as_me: failed program was:" >&5
22176 sed 's/^/| /' conftest.$ac_ext >&5
22178 ac_cv_header_time_altzone=no
22181 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22184 { echo "$as_me:$LINENO: result: $ac_cv_header_time_altzone" >&5
22185 echo "${ECHO_T}$ac_cv_header_time_altzone" >&6; }
22186 if test $ac_cv_header_time_altzone = yes; then
22188 cat >>confdefs.h <<\_ACEOF
22189 #define HAVE_ALTZONE 1
22190 _ACEOF
22194 was_it_defined=no
22195 { echo "$as_me:$LINENO: checking whether sys/select.h and sys/time.h may both be included" >&5
22196 echo $ECHO_N "checking whether sys/select.h and sys/time.h may both be included... $ECHO_C" >&6; }
22197 cat >conftest.$ac_ext <<_ACEOF
22198 /* confdefs.h. */
22199 _ACEOF
22200 cat confdefs.h >>conftest.$ac_ext
22201 cat >>conftest.$ac_ext <<_ACEOF
22202 /* end confdefs.h. */
22204 #include <sys/types.h>
22205 #include <sys/select.h>
22206 #include <sys/time.h>
22209 main ()
22213 return 0;
22215 _ACEOF
22216 rm -f conftest.$ac_objext
22217 if { (ac_try="$ac_compile"
22218 case "(($ac_try" in
22219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22220 *) ac_try_echo=$ac_try;;
22221 esac
22222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22223 (eval "$ac_compile") 2>conftest.er1
22224 ac_status=$?
22225 grep -v '^ *+' conftest.er1 >conftest.err
22226 rm -f conftest.er1
22227 cat conftest.err >&5
22228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22229 (exit $ac_status); } && {
22230 test -z "$ac_c_werror_flag" ||
22231 test ! -s conftest.err
22232 } && test -s conftest.$ac_objext; then
22235 cat >>confdefs.h <<\_ACEOF
22236 #define SYS_SELECT_WITH_SYS_TIME 1
22237 _ACEOF
22239 was_it_defined=yes
22241 else
22242 echo "$as_me: failed program was:" >&5
22243 sed 's/^/| /' conftest.$ac_ext >&5
22248 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22249 { echo "$as_me:$LINENO: result: $was_it_defined" >&5
22250 echo "${ECHO_T}$was_it_defined" >&6; }
22252 { echo "$as_me:$LINENO: checking for addrinfo" >&5
22253 echo $ECHO_N "checking for addrinfo... $ECHO_C" >&6; }
22254 if test "${ac_cv_struct_addrinfo+set}" = set; then
22255 echo $ECHO_N "(cached) $ECHO_C" >&6
22256 else
22257 cat >conftest.$ac_ext <<_ACEOF
22258 /* confdefs.h. */
22259 _ACEOF
22260 cat confdefs.h >>conftest.$ac_ext
22261 cat >>conftest.$ac_ext <<_ACEOF
22262 /* end confdefs.h. */
22264 # include <netdb.h>
22266 main ()
22268 struct addrinfo a
22270 return 0;
22272 _ACEOF
22273 rm -f conftest.$ac_objext
22274 if { (ac_try="$ac_compile"
22275 case "(($ac_try" in
22276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22277 *) ac_try_echo=$ac_try;;
22278 esac
22279 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22280 (eval "$ac_compile") 2>conftest.er1
22281 ac_status=$?
22282 grep -v '^ *+' conftest.er1 >conftest.err
22283 rm -f conftest.er1
22284 cat conftest.err >&5
22285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22286 (exit $ac_status); } && {
22287 test -z "$ac_c_werror_flag" ||
22288 test ! -s conftest.err
22289 } && test -s conftest.$ac_objext; then
22290 ac_cv_struct_addrinfo=yes
22291 else
22292 echo "$as_me: failed program was:" >&5
22293 sed 's/^/| /' conftest.$ac_ext >&5
22295 ac_cv_struct_addrinfo=no
22298 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22301 { echo "$as_me:$LINENO: result: $ac_cv_struct_addrinfo" >&5
22302 echo "${ECHO_T}$ac_cv_struct_addrinfo" >&6; }
22303 if test $ac_cv_struct_addrinfo = yes; then
22305 cat >>confdefs.h <<\_ACEOF
22306 #define HAVE_ADDRINFO 1
22307 _ACEOF
22311 { echo "$as_me:$LINENO: checking for sockaddr_storage" >&5
22312 echo $ECHO_N "checking for sockaddr_storage... $ECHO_C" >&6; }
22313 if test "${ac_cv_struct_sockaddr_storage+set}" = set; then
22314 echo $ECHO_N "(cached) $ECHO_C" >&6
22315 else
22316 cat >conftest.$ac_ext <<_ACEOF
22317 /* confdefs.h. */
22318 _ACEOF
22319 cat confdefs.h >>conftest.$ac_ext
22320 cat >>conftest.$ac_ext <<_ACEOF
22321 /* end confdefs.h. */
22323 # include <sys/types.h>
22324 # include <sys/socket.h>
22326 main ()
22328 struct sockaddr_storage s
22330 return 0;
22332 _ACEOF
22333 rm -f conftest.$ac_objext
22334 if { (ac_try="$ac_compile"
22335 case "(($ac_try" in
22336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22337 *) ac_try_echo=$ac_try;;
22338 esac
22339 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22340 (eval "$ac_compile") 2>conftest.er1
22341 ac_status=$?
22342 grep -v '^ *+' conftest.er1 >conftest.err
22343 rm -f conftest.er1
22344 cat conftest.err >&5
22345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22346 (exit $ac_status); } && {
22347 test -z "$ac_c_werror_flag" ||
22348 test ! -s conftest.err
22349 } && test -s conftest.$ac_objext; then
22350 ac_cv_struct_sockaddr_storage=yes
22351 else
22352 echo "$as_me: failed program was:" >&5
22353 sed 's/^/| /' conftest.$ac_ext >&5
22355 ac_cv_struct_sockaddr_storage=no
22358 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22361 { echo "$as_me:$LINENO: result: $ac_cv_struct_sockaddr_storage" >&5
22362 echo "${ECHO_T}$ac_cv_struct_sockaddr_storage" >&6; }
22363 if test $ac_cv_struct_sockaddr_storage = yes; then
22365 cat >>confdefs.h <<\_ACEOF
22366 #define HAVE_SOCKADDR_STORAGE 1
22367 _ACEOF
22371 # checks for compiler characteristics
22374 { echo "$as_me:$LINENO: checking whether char is unsigned" >&5
22375 echo $ECHO_N "checking whether char is unsigned... $ECHO_C" >&6; }
22376 if test "${ac_cv_c_char_unsigned+set}" = set; then
22377 echo $ECHO_N "(cached) $ECHO_C" >&6
22378 else
22379 cat >conftest.$ac_ext <<_ACEOF
22380 /* confdefs.h. */
22381 _ACEOF
22382 cat confdefs.h >>conftest.$ac_ext
22383 cat >>conftest.$ac_ext <<_ACEOF
22384 /* end confdefs.h. */
22385 $ac_includes_default
22387 main ()
22389 static int test_array [1 - 2 * !(((char) -1) < 0)];
22390 test_array [0] = 0
22393 return 0;
22395 _ACEOF
22396 rm -f conftest.$ac_objext
22397 if { (ac_try="$ac_compile"
22398 case "(($ac_try" in
22399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22400 *) ac_try_echo=$ac_try;;
22401 esac
22402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22403 (eval "$ac_compile") 2>conftest.er1
22404 ac_status=$?
22405 grep -v '^ *+' conftest.er1 >conftest.err
22406 rm -f conftest.er1
22407 cat conftest.err >&5
22408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22409 (exit $ac_status); } && {
22410 test -z "$ac_c_werror_flag" ||
22411 test ! -s conftest.err
22412 } && test -s conftest.$ac_objext; then
22413 ac_cv_c_char_unsigned=no
22414 else
22415 echo "$as_me: failed program was:" >&5
22416 sed 's/^/| /' conftest.$ac_ext >&5
22418 ac_cv_c_char_unsigned=yes
22421 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22423 { echo "$as_me:$LINENO: result: $ac_cv_c_char_unsigned" >&5
22424 echo "${ECHO_T}$ac_cv_c_char_unsigned" >&6; }
22425 if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
22426 cat >>confdefs.h <<\_ACEOF
22427 #define __CHAR_UNSIGNED__ 1
22428 _ACEOF
22432 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
22433 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
22434 if test "${ac_cv_c_const+set}" = set; then
22435 echo $ECHO_N "(cached) $ECHO_C" >&6
22436 else
22437 cat >conftest.$ac_ext <<_ACEOF
22438 /* confdefs.h. */
22439 _ACEOF
22440 cat confdefs.h >>conftest.$ac_ext
22441 cat >>conftest.$ac_ext <<_ACEOF
22442 /* end confdefs.h. */
22445 main ()
22447 /* FIXME: Include the comments suggested by Paul. */
22448 #ifndef __cplusplus
22449 /* Ultrix mips cc rejects this. */
22450 typedef int charset[2];
22451 const charset cs;
22452 /* SunOS 4.1.1 cc rejects this. */
22453 char const *const *pcpcc;
22454 char **ppc;
22455 /* NEC SVR4.0.2 mips cc rejects this. */
22456 struct point {int x, y;};
22457 static struct point const zero = {0,0};
22458 /* AIX XL C 1.02.0.0 rejects this.
22459 It does not let you subtract one const X* pointer from another in
22460 an arm of an if-expression whose if-part is not a constant
22461 expression */
22462 const char *g = "string";
22463 pcpcc = &g + (g ? g-g : 0);
22464 /* HPUX 7.0 cc rejects these. */
22465 ++pcpcc;
22466 ppc = (char**) pcpcc;
22467 pcpcc = (char const *const *) ppc;
22468 { /* SCO 3.2v4 cc rejects this. */
22469 char *t;
22470 char const *s = 0 ? (char *) 0 : (char const *) 0;
22472 *t++ = 0;
22473 if (s) return 0;
22475 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
22476 int x[] = {25, 17};
22477 const int *foo = &x[0];
22478 ++foo;
22480 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
22481 typedef const int *iptr;
22482 iptr p = 0;
22483 ++p;
22485 { /* AIX XL C 1.02.0.0 rejects this saying
22486 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
22487 struct s { int j; const int *ap[3]; };
22488 struct s *b; b->j = 5;
22490 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
22491 const int foo = 10;
22492 if (!foo) return 0;
22494 return !cs[0] && !zero.x;
22495 #endif
22498 return 0;
22500 _ACEOF
22501 rm -f conftest.$ac_objext
22502 if { (ac_try="$ac_compile"
22503 case "(($ac_try" in
22504 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22505 *) ac_try_echo=$ac_try;;
22506 esac
22507 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22508 (eval "$ac_compile") 2>conftest.er1
22509 ac_status=$?
22510 grep -v '^ *+' conftest.er1 >conftest.err
22511 rm -f conftest.er1
22512 cat conftest.err >&5
22513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22514 (exit $ac_status); } && {
22515 test -z "$ac_c_werror_flag" ||
22516 test ! -s conftest.err
22517 } && test -s conftest.$ac_objext; then
22518 ac_cv_c_const=yes
22519 else
22520 echo "$as_me: failed program was:" >&5
22521 sed 's/^/| /' conftest.$ac_ext >&5
22523 ac_cv_c_const=no
22526 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22528 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
22529 echo "${ECHO_T}$ac_cv_c_const" >&6; }
22530 if test $ac_cv_c_const = no; then
22532 cat >>confdefs.h <<\_ACEOF
22533 #define const
22534 _ACEOF
22539 works=no
22540 { echo "$as_me:$LINENO: checking for working volatile" >&5
22541 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6; }
22542 cat >conftest.$ac_ext <<_ACEOF
22543 /* confdefs.h. */
22544 _ACEOF
22545 cat confdefs.h >>conftest.$ac_ext
22546 cat >>conftest.$ac_ext <<_ACEOF
22547 /* end confdefs.h. */
22550 main ()
22552 volatile int x; x = 0;
22554 return 0;
22556 _ACEOF
22557 rm -f conftest.$ac_objext
22558 if { (ac_try="$ac_compile"
22559 case "(($ac_try" in
22560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22561 *) ac_try_echo=$ac_try;;
22562 esac
22563 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22564 (eval "$ac_compile") 2>conftest.er1
22565 ac_status=$?
22566 grep -v '^ *+' conftest.er1 >conftest.err
22567 rm -f conftest.er1
22568 cat conftest.err >&5
22569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22570 (exit $ac_status); } && {
22571 test -z "$ac_c_werror_flag" ||
22572 test ! -s conftest.err
22573 } && test -s conftest.$ac_objext; then
22574 works=yes
22575 else
22576 echo "$as_me: failed program was:" >&5
22577 sed 's/^/| /' conftest.$ac_ext >&5
22580 cat >>confdefs.h <<\_ACEOF
22581 #define volatile
22582 _ACEOF
22587 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22588 { echo "$as_me:$LINENO: result: $works" >&5
22589 echo "${ECHO_T}$works" >&6; }
22591 works=no
22592 { echo "$as_me:$LINENO: checking for working signed char" >&5
22593 echo $ECHO_N "checking for working signed char... $ECHO_C" >&6; }
22594 cat >conftest.$ac_ext <<_ACEOF
22595 /* confdefs.h. */
22596 _ACEOF
22597 cat confdefs.h >>conftest.$ac_ext
22598 cat >>conftest.$ac_ext <<_ACEOF
22599 /* end confdefs.h. */
22602 main ()
22604 signed char c;
22606 return 0;
22608 _ACEOF
22609 rm -f conftest.$ac_objext
22610 if { (ac_try="$ac_compile"
22611 case "(($ac_try" in
22612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22613 *) ac_try_echo=$ac_try;;
22614 esac
22615 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22616 (eval "$ac_compile") 2>conftest.er1
22617 ac_status=$?
22618 grep -v '^ *+' conftest.er1 >conftest.err
22619 rm -f conftest.er1
22620 cat conftest.err >&5
22621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22622 (exit $ac_status); } && {
22623 test -z "$ac_c_werror_flag" ||
22624 test ! -s conftest.err
22625 } && test -s conftest.$ac_objext; then
22626 works=yes
22627 else
22628 echo "$as_me: failed program was:" >&5
22629 sed 's/^/| /' conftest.$ac_ext >&5
22632 cat >>confdefs.h <<\_ACEOF
22633 #define signed
22634 _ACEOF
22639 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22640 { echo "$as_me:$LINENO: result: $works" >&5
22641 echo "${ECHO_T}$works" >&6; }
22643 have_prototypes=no
22644 { echo "$as_me:$LINENO: checking for prototypes" >&5
22645 echo $ECHO_N "checking for prototypes... $ECHO_C" >&6; }
22646 cat >conftest.$ac_ext <<_ACEOF
22647 /* confdefs.h. */
22648 _ACEOF
22649 cat confdefs.h >>conftest.$ac_ext
22650 cat >>conftest.$ac_ext <<_ACEOF
22651 /* end confdefs.h. */
22652 int foo(int x) { return 0; }
22654 main ()
22656 return foo(10);
22658 return 0;
22660 _ACEOF
22661 rm -f conftest.$ac_objext
22662 if { (ac_try="$ac_compile"
22663 case "(($ac_try" in
22664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22665 *) ac_try_echo=$ac_try;;
22666 esac
22667 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22668 (eval "$ac_compile") 2>conftest.er1
22669 ac_status=$?
22670 grep -v '^ *+' conftest.er1 >conftest.err
22671 rm -f conftest.er1
22672 cat conftest.err >&5
22673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22674 (exit $ac_status); } && {
22675 test -z "$ac_c_werror_flag" ||
22676 test ! -s conftest.err
22677 } && test -s conftest.$ac_objext; then
22680 cat >>confdefs.h <<\_ACEOF
22681 #define HAVE_PROTOTYPES 1
22682 _ACEOF
22684 have_prototypes=yes
22686 else
22687 echo "$as_me: failed program was:" >&5
22688 sed 's/^/| /' conftest.$ac_ext >&5
22693 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22694 { echo "$as_me:$LINENO: result: $have_prototypes" >&5
22695 echo "${ECHO_T}$have_prototypes" >&6; }
22697 works=no
22698 { echo "$as_me:$LINENO: checking for variable length prototypes and stdarg.h" >&5
22699 echo $ECHO_N "checking for variable length prototypes and stdarg.h... $ECHO_C" >&6; }
22700 cat >conftest.$ac_ext <<_ACEOF
22701 /* confdefs.h. */
22702 _ACEOF
22703 cat confdefs.h >>conftest.$ac_ext
22704 cat >>conftest.$ac_ext <<_ACEOF
22705 /* end confdefs.h. */
22707 #include <stdarg.h>
22708 int foo(int x, ...) {
22709 va_list va;
22710 va_start(va, x);
22711 va_arg(va, int);
22712 va_arg(va, char *);
22713 va_arg(va, double);
22714 return 0;
22718 main ()
22720 return foo(10, "", 3.14);
22722 return 0;
22724 _ACEOF
22725 rm -f conftest.$ac_objext
22726 if { (ac_try="$ac_compile"
22727 case "(($ac_try" in
22728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22729 *) ac_try_echo=$ac_try;;
22730 esac
22731 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22732 (eval "$ac_compile") 2>conftest.er1
22733 ac_status=$?
22734 grep -v '^ *+' conftest.er1 >conftest.err
22735 rm -f conftest.er1
22736 cat conftest.err >&5
22737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22738 (exit $ac_status); } && {
22739 test -z "$ac_c_werror_flag" ||
22740 test ! -s conftest.err
22741 } && test -s conftest.$ac_objext; then
22744 cat >>confdefs.h <<\_ACEOF
22745 #define HAVE_STDARG_PROTOTYPES 1
22746 _ACEOF
22748 works=yes
22750 else
22751 echo "$as_me: failed program was:" >&5
22752 sed 's/^/| /' conftest.$ac_ext >&5
22757 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22758 { echo "$as_me:$LINENO: result: $works" >&5
22759 echo "${ECHO_T}$works" >&6; }
22761 # check for socketpair
22762 { echo "$as_me:$LINENO: checking for socketpair" >&5
22763 echo $ECHO_N "checking for socketpair... $ECHO_C" >&6; }
22764 cat >conftest.$ac_ext <<_ACEOF
22765 /* confdefs.h. */
22766 _ACEOF
22767 cat confdefs.h >>conftest.$ac_ext
22768 cat >>conftest.$ac_ext <<_ACEOF
22769 /* end confdefs.h. */
22771 #include <sys/types.h>
22772 #include <sys/socket.h>
22775 main ()
22777 void *x=socketpair
22779 return 0;
22781 _ACEOF
22782 rm -f conftest.$ac_objext
22783 if { (ac_try="$ac_compile"
22784 case "(($ac_try" in
22785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22786 *) ac_try_echo=$ac_try;;
22787 esac
22788 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22789 (eval "$ac_compile") 2>conftest.er1
22790 ac_status=$?
22791 grep -v '^ *+' conftest.er1 >conftest.err
22792 rm -f conftest.er1
22793 cat conftest.err >&5
22794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22795 (exit $ac_status); } && {
22796 test -z "$ac_c_werror_flag" ||
22797 test ! -s conftest.err
22798 } && test -s conftest.$ac_objext; then
22800 cat >>confdefs.h <<\_ACEOF
22801 #define HAVE_SOCKETPAIR 1
22802 _ACEOF
22804 { echo "$as_me:$LINENO: result: yes" >&5
22805 echo "${ECHO_T}yes" >&6; }
22806 else
22807 echo "$as_me: failed program was:" >&5
22808 sed 's/^/| /' conftest.$ac_ext >&5
22810 { echo "$as_me:$LINENO: result: no" >&5
22811 echo "${ECHO_T}no" >&6; }
22815 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22817 # check if sockaddr has sa_len member
22818 { echo "$as_me:$LINENO: checking if sockaddr has sa_len member" >&5
22819 echo $ECHO_N "checking if sockaddr has sa_len member... $ECHO_C" >&6; }
22820 cat >conftest.$ac_ext <<_ACEOF
22821 /* confdefs.h. */
22822 _ACEOF
22823 cat confdefs.h >>conftest.$ac_ext
22824 cat >>conftest.$ac_ext <<_ACEOF
22825 /* end confdefs.h. */
22826 #include <sys/types.h>
22827 #include <sys/socket.h>
22829 main ()
22831 struct sockaddr x;
22832 x.sa_len = 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 { echo "$as_me:$LINENO: result: yes" >&5
22855 echo "${ECHO_T}yes" >&6; }
22857 cat >>confdefs.h <<\_ACEOF
22858 #define HAVE_SOCKADDR_SA_LEN 1
22859 _ACEOF
22861 else
22862 echo "$as_me: failed program was:" >&5
22863 sed 's/^/| /' conftest.$ac_ext >&5
22865 { echo "$as_me:$LINENO: result: no" >&5
22866 echo "${ECHO_T}no" >&6; }
22869 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22871 va_list_is_array=no
22872 { echo "$as_me:$LINENO: checking whether va_list is an array" >&5
22873 echo $ECHO_N "checking whether va_list is an array... $ECHO_C" >&6; }
22874 cat >conftest.$ac_ext <<_ACEOF
22875 /* confdefs.h. */
22876 _ACEOF
22877 cat confdefs.h >>conftest.$ac_ext
22878 cat >>conftest.$ac_ext <<_ACEOF
22879 /* end confdefs.h. */
22881 #ifdef HAVE_STDARG_PROTOTYPES
22882 #include <stdarg.h>
22883 #else
22884 #include <varargs.h>
22885 #endif
22888 main ()
22890 va_list list1, list2; list1 = list2;
22892 return 0;
22894 _ACEOF
22895 rm -f conftest.$ac_objext
22896 if { (ac_try="$ac_compile"
22897 case "(($ac_try" in
22898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22899 *) ac_try_echo=$ac_try;;
22900 esac
22901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22902 (eval "$ac_compile") 2>conftest.er1
22903 ac_status=$?
22904 grep -v '^ *+' conftest.er1 >conftest.err
22905 rm -f conftest.er1
22906 cat conftest.err >&5
22907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22908 (exit $ac_status); } && {
22909 test -z "$ac_c_werror_flag" ||
22910 test ! -s conftest.err
22911 } && test -s conftest.$ac_objext; then
22913 else
22914 echo "$as_me: failed program was:" >&5
22915 sed 's/^/| /' conftest.$ac_ext >&5
22919 cat >>confdefs.h <<\_ACEOF
22920 #define VA_LIST_IS_ARRAY 1
22921 _ACEOF
22923 va_list_is_array=yes
22927 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22928 { echo "$as_me:$LINENO: result: $va_list_is_array" >&5
22929 echo "${ECHO_T}$va_list_is_array" >&6; }
22931 # sigh -- gethostbyname_r is a mess; it can have 3, 5 or 6 arguments :-(
22935 { echo "$as_me:$LINENO: checking for gethostbyname_r" >&5
22936 echo $ECHO_N "checking for gethostbyname_r... $ECHO_C" >&6; }
22937 if test "${ac_cv_func_gethostbyname_r+set}" = set; then
22938 echo $ECHO_N "(cached) $ECHO_C" >&6
22939 else
22940 cat >conftest.$ac_ext <<_ACEOF
22941 /* confdefs.h. */
22942 _ACEOF
22943 cat confdefs.h >>conftest.$ac_ext
22944 cat >>conftest.$ac_ext <<_ACEOF
22945 /* end confdefs.h. */
22946 /* Define gethostbyname_r to an innocuous variant, in case <limits.h> declares gethostbyname_r.
22947 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22948 #define gethostbyname_r innocuous_gethostbyname_r
22950 /* System header to define __stub macros and hopefully few prototypes,
22951 which can conflict with char gethostbyname_r (); below.
22952 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22953 <limits.h> exists even on freestanding compilers. */
22955 #ifdef __STDC__
22956 # include <limits.h>
22957 #else
22958 # include <assert.h>
22959 #endif
22961 #undef gethostbyname_r
22963 /* Override any GCC internal prototype to avoid an error.
22964 Use char because int might match the return type of a GCC
22965 builtin and then its argument prototype would still apply. */
22966 #ifdef __cplusplus
22967 extern "C"
22968 #endif
22969 char gethostbyname_r ();
22970 /* The GNU C library defines this for functions which it implements
22971 to always fail with ENOSYS. Some functions are actually named
22972 something starting with __ and the normal name is an alias. */
22973 #if defined __stub_gethostbyname_r || defined __stub___gethostbyname_r
22974 choke me
22975 #endif
22978 main ()
22980 return gethostbyname_r ();
22982 return 0;
22984 _ACEOF
22985 rm -f conftest.$ac_objext conftest$ac_exeext
22986 if { (ac_try="$ac_link"
22987 case "(($ac_try" in
22988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22989 *) ac_try_echo=$ac_try;;
22990 esac
22991 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22992 (eval "$ac_link") 2>conftest.er1
22993 ac_status=$?
22994 grep -v '^ *+' conftest.er1 >conftest.err
22995 rm -f conftest.er1
22996 cat conftest.err >&5
22997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22998 (exit $ac_status); } && {
22999 test -z "$ac_c_werror_flag" ||
23000 test ! -s conftest.err
23001 } && test -s conftest$ac_exeext &&
23002 $as_test_x conftest$ac_exeext; then
23003 ac_cv_func_gethostbyname_r=yes
23004 else
23005 echo "$as_me: failed program was:" >&5
23006 sed 's/^/| /' conftest.$ac_ext >&5
23008 ac_cv_func_gethostbyname_r=no
23011 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23012 conftest$ac_exeext conftest.$ac_ext
23014 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname_r" >&5
23015 echo "${ECHO_T}$ac_cv_func_gethostbyname_r" >&6; }
23016 if test $ac_cv_func_gethostbyname_r = yes; then
23018 cat >>confdefs.h <<\_ACEOF
23019 #define HAVE_GETHOSTBYNAME_R 1
23020 _ACEOF
23022 { echo "$as_me:$LINENO: checking gethostbyname_r with 6 args" >&5
23023 echo $ECHO_N "checking gethostbyname_r with 6 args... $ECHO_C" >&6; }
23024 OLD_CFLAGS=$CFLAGS
23025 CFLAGS="$CFLAGS $MY_CPPFLAGS $MY_THREAD_CPPFLAGS $MY_CFLAGS"
23026 cat >conftest.$ac_ext <<_ACEOF
23027 /* confdefs.h. */
23028 _ACEOF
23029 cat confdefs.h >>conftest.$ac_ext
23030 cat >>conftest.$ac_ext <<_ACEOF
23031 /* end confdefs.h. */
23033 # include <netdb.h>
23036 main ()
23039 char *name;
23040 struct hostent *he, *res;
23041 char buffer[2048];
23042 int buflen = 2048;
23043 int h_errnop;
23045 (void) gethostbyname_r(name, he, buffer, buflen, &res, &h_errnop)
23048 return 0;
23050 _ACEOF
23051 rm -f conftest.$ac_objext
23052 if { (ac_try="$ac_compile"
23053 case "(($ac_try" in
23054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23055 *) ac_try_echo=$ac_try;;
23056 esac
23057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23058 (eval "$ac_compile") 2>conftest.er1
23059 ac_status=$?
23060 grep -v '^ *+' conftest.er1 >conftest.err
23061 rm -f conftest.er1
23062 cat conftest.err >&5
23063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23064 (exit $ac_status); } && {
23065 test -z "$ac_c_werror_flag" ||
23066 test ! -s conftest.err
23067 } && test -s conftest.$ac_objext; then
23069 cat >>confdefs.h <<\_ACEOF
23070 #define HAVE_GETHOSTBYNAME_R 1
23071 _ACEOF
23074 cat >>confdefs.h <<\_ACEOF
23075 #define HAVE_GETHOSTBYNAME_R_6_ARG 1
23076 _ACEOF
23078 { echo "$as_me:$LINENO: result: yes" >&5
23079 echo "${ECHO_T}yes" >&6; }
23081 else
23082 echo "$as_me: failed program was:" >&5
23083 sed 's/^/| /' conftest.$ac_ext >&5
23086 { echo "$as_me:$LINENO: result: no" >&5
23087 echo "${ECHO_T}no" >&6; }
23088 { echo "$as_me:$LINENO: checking gethostbyname_r with 5 args" >&5
23089 echo $ECHO_N "checking gethostbyname_r with 5 args... $ECHO_C" >&6; }
23090 cat >conftest.$ac_ext <<_ACEOF
23091 /* confdefs.h. */
23092 _ACEOF
23093 cat confdefs.h >>conftest.$ac_ext
23094 cat >>conftest.$ac_ext <<_ACEOF
23095 /* end confdefs.h. */
23097 # include <netdb.h>
23100 main ()
23103 char *name;
23104 struct hostent *he;
23105 char buffer[2048];
23106 int buflen = 2048;
23107 int h_errnop;
23109 (void) gethostbyname_r(name, he, buffer, buflen, &h_errnop)
23112 return 0;
23114 _ACEOF
23115 rm -f conftest.$ac_objext
23116 if { (ac_try="$ac_compile"
23117 case "(($ac_try" in
23118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23119 *) ac_try_echo=$ac_try;;
23120 esac
23121 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23122 (eval "$ac_compile") 2>conftest.er1
23123 ac_status=$?
23124 grep -v '^ *+' conftest.er1 >conftest.err
23125 rm -f conftest.er1
23126 cat conftest.err >&5
23127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23128 (exit $ac_status); } && {
23129 test -z "$ac_c_werror_flag" ||
23130 test ! -s conftest.err
23131 } && test -s conftest.$ac_objext; then
23133 cat >>confdefs.h <<\_ACEOF
23134 #define HAVE_GETHOSTBYNAME_R 1
23135 _ACEOF
23138 cat >>confdefs.h <<\_ACEOF
23139 #define HAVE_GETHOSTBYNAME_R_5_ARG 1
23140 _ACEOF
23142 { echo "$as_me:$LINENO: result: yes" >&5
23143 echo "${ECHO_T}yes" >&6; }
23145 else
23146 echo "$as_me: failed program was:" >&5
23147 sed 's/^/| /' conftest.$ac_ext >&5
23150 { echo "$as_me:$LINENO: result: no" >&5
23151 echo "${ECHO_T}no" >&6; }
23152 { echo "$as_me:$LINENO: checking gethostbyname_r with 3 args" >&5
23153 echo $ECHO_N "checking gethostbyname_r with 3 args... $ECHO_C" >&6; }
23154 cat >conftest.$ac_ext <<_ACEOF
23155 /* confdefs.h. */
23156 _ACEOF
23157 cat confdefs.h >>conftest.$ac_ext
23158 cat >>conftest.$ac_ext <<_ACEOF
23159 /* end confdefs.h. */
23161 # include <netdb.h>
23164 main ()
23167 char *name;
23168 struct hostent *he;
23169 struct hostent_data data;
23171 (void) gethostbyname_r(name, he, &data);
23174 return 0;
23176 _ACEOF
23177 rm -f conftest.$ac_objext
23178 if { (ac_try="$ac_compile"
23179 case "(($ac_try" in
23180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23181 *) ac_try_echo=$ac_try;;
23182 esac
23183 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23184 (eval "$ac_compile") 2>conftest.er1
23185 ac_status=$?
23186 grep -v '^ *+' conftest.er1 >conftest.err
23187 rm -f conftest.er1
23188 cat conftest.err >&5
23189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23190 (exit $ac_status); } && {
23191 test -z "$ac_c_werror_flag" ||
23192 test ! -s conftest.err
23193 } && test -s conftest.$ac_objext; then
23195 cat >>confdefs.h <<\_ACEOF
23196 #define HAVE_GETHOSTBYNAME_R 1
23197 _ACEOF
23200 cat >>confdefs.h <<\_ACEOF
23201 #define HAVE_GETHOSTBYNAME_R_3_ARG 1
23202 _ACEOF
23204 { echo "$as_me:$LINENO: result: yes" >&5
23205 echo "${ECHO_T}yes" >&6; }
23207 else
23208 echo "$as_me: failed program was:" >&5
23209 sed 's/^/| /' conftest.$ac_ext >&5
23212 { echo "$as_me:$LINENO: result: no" >&5
23213 echo "${ECHO_T}no" >&6; }
23217 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23221 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23225 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23226 CFLAGS=$OLD_CFLAGS
23228 else
23231 for ac_func in gethostbyname
23233 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23234 { echo "$as_me:$LINENO: checking for $ac_func" >&5
23235 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
23236 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
23237 echo $ECHO_N "(cached) $ECHO_C" >&6
23238 else
23239 cat >conftest.$ac_ext <<_ACEOF
23240 /* confdefs.h. */
23241 _ACEOF
23242 cat confdefs.h >>conftest.$ac_ext
23243 cat >>conftest.$ac_ext <<_ACEOF
23244 /* end confdefs.h. */
23245 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23246 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23247 #define $ac_func innocuous_$ac_func
23249 /* System header to define __stub macros and hopefully few prototypes,
23250 which can conflict with char $ac_func (); below.
23251 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23252 <limits.h> exists even on freestanding compilers. */
23254 #ifdef __STDC__
23255 # include <limits.h>
23256 #else
23257 # include <assert.h>
23258 #endif
23260 #undef $ac_func
23262 /* Override any GCC internal prototype to avoid an error.
23263 Use char because int might match the return type of a GCC
23264 builtin and then its argument prototype would still apply. */
23265 #ifdef __cplusplus
23266 extern "C"
23267 #endif
23268 char $ac_func ();
23269 /* The GNU C library defines this for functions which it implements
23270 to always fail with ENOSYS. Some functions are actually named
23271 something starting with __ and the normal name is an alias. */
23272 #if defined __stub_$ac_func || defined __stub___$ac_func
23273 choke me
23274 #endif
23277 main ()
23279 return $ac_func ();
23281 return 0;
23283 _ACEOF
23284 rm -f conftest.$ac_objext conftest$ac_exeext
23285 if { (ac_try="$ac_link"
23286 case "(($ac_try" in
23287 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23288 *) ac_try_echo=$ac_try;;
23289 esac
23290 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23291 (eval "$ac_link") 2>conftest.er1
23292 ac_status=$?
23293 grep -v '^ *+' conftest.er1 >conftest.err
23294 rm -f conftest.er1
23295 cat conftest.err >&5
23296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23297 (exit $ac_status); } && {
23298 test -z "$ac_c_werror_flag" ||
23299 test ! -s conftest.err
23300 } && test -s conftest$ac_exeext &&
23301 $as_test_x conftest$ac_exeext; then
23302 eval "$as_ac_var=yes"
23303 else
23304 echo "$as_me: failed program was:" >&5
23305 sed 's/^/| /' conftest.$ac_ext >&5
23307 eval "$as_ac_var=no"
23310 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23311 conftest$ac_exeext conftest.$ac_ext
23313 ac_res=`eval echo '${'$as_ac_var'}'`
23314 { echo "$as_me:$LINENO: result: $ac_res" >&5
23315 echo "${ECHO_T}$ac_res" >&6; }
23316 if test `eval echo '${'$as_ac_var'}'` = yes; then
23317 cat >>confdefs.h <<_ACEOF
23318 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23319 _ACEOF
23322 done
23333 # checks for system services
23334 # (none yet)
23336 # Linux requires this for correct f.p. operations
23337 { echo "$as_me:$LINENO: checking for __fpu_control" >&5
23338 echo $ECHO_N "checking for __fpu_control... $ECHO_C" >&6; }
23339 if test "${ac_cv_func___fpu_control+set}" = set; then
23340 echo $ECHO_N "(cached) $ECHO_C" >&6
23341 else
23342 cat >conftest.$ac_ext <<_ACEOF
23343 /* confdefs.h. */
23344 _ACEOF
23345 cat confdefs.h >>conftest.$ac_ext
23346 cat >>conftest.$ac_ext <<_ACEOF
23347 /* end confdefs.h. */
23348 /* Define __fpu_control to an innocuous variant, in case <limits.h> declares __fpu_control.
23349 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23350 #define __fpu_control innocuous___fpu_control
23352 /* System header to define __stub macros and hopefully few prototypes,
23353 which can conflict with char __fpu_control (); below.
23354 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23355 <limits.h> exists even on freestanding compilers. */
23357 #ifdef __STDC__
23358 # include <limits.h>
23359 #else
23360 # include <assert.h>
23361 #endif
23363 #undef __fpu_control
23365 /* Override any GCC internal prototype to avoid an error.
23366 Use char because int might match the return type of a GCC
23367 builtin and then its argument prototype would still apply. */
23368 #ifdef __cplusplus
23369 extern "C"
23370 #endif
23371 char __fpu_control ();
23372 /* The GNU C library defines this for functions which it implements
23373 to always fail with ENOSYS. Some functions are actually named
23374 something starting with __ and the normal name is an alias. */
23375 #if defined __stub___fpu_control || defined __stub_____fpu_control
23376 choke me
23377 #endif
23380 main ()
23382 return __fpu_control ();
23384 return 0;
23386 _ACEOF
23387 rm -f conftest.$ac_objext conftest$ac_exeext
23388 if { (ac_try="$ac_link"
23389 case "(($ac_try" in
23390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23391 *) ac_try_echo=$ac_try;;
23392 esac
23393 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23394 (eval "$ac_link") 2>conftest.er1
23395 ac_status=$?
23396 grep -v '^ *+' conftest.er1 >conftest.err
23397 rm -f conftest.er1
23398 cat conftest.err >&5
23399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23400 (exit $ac_status); } && {
23401 test -z "$ac_c_werror_flag" ||
23402 test ! -s conftest.err
23403 } && test -s conftest$ac_exeext &&
23404 $as_test_x conftest$ac_exeext; then
23405 ac_cv_func___fpu_control=yes
23406 else
23407 echo "$as_me: failed program was:" >&5
23408 sed 's/^/| /' conftest.$ac_ext >&5
23410 ac_cv_func___fpu_control=no
23413 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23414 conftest$ac_exeext conftest.$ac_ext
23416 { echo "$as_me:$LINENO: result: $ac_cv_func___fpu_control" >&5
23417 echo "${ECHO_T}$ac_cv_func___fpu_control" >&6; }
23418 if test $ac_cv_func___fpu_control = yes; then
23420 else
23422 { echo "$as_me:$LINENO: checking for __fpu_control in -lieee" >&5
23423 echo $ECHO_N "checking for __fpu_control in -lieee... $ECHO_C" >&6; }
23424 if test "${ac_cv_lib_ieee___fpu_control+set}" = set; then
23425 echo $ECHO_N "(cached) $ECHO_C" >&6
23426 else
23427 ac_check_lib_save_LIBS=$LIBS
23428 LIBS="-lieee $LIBS"
23429 cat >conftest.$ac_ext <<_ACEOF
23430 /* confdefs.h. */
23431 _ACEOF
23432 cat confdefs.h >>conftest.$ac_ext
23433 cat >>conftest.$ac_ext <<_ACEOF
23434 /* end confdefs.h. */
23436 /* Override any GCC internal prototype to avoid an error.
23437 Use char because int might match the return type of a GCC
23438 builtin and then its argument prototype would still apply. */
23439 #ifdef __cplusplus
23440 extern "C"
23441 #endif
23442 char __fpu_control ();
23444 main ()
23446 return __fpu_control ();
23448 return 0;
23450 _ACEOF
23451 rm -f conftest.$ac_objext conftest$ac_exeext
23452 if { (ac_try="$ac_link"
23453 case "(($ac_try" in
23454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23455 *) ac_try_echo=$ac_try;;
23456 esac
23457 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23458 (eval "$ac_link") 2>conftest.er1
23459 ac_status=$?
23460 grep -v '^ *+' conftest.er1 >conftest.err
23461 rm -f conftest.er1
23462 cat conftest.err >&5
23463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23464 (exit $ac_status); } && {
23465 test -z "$ac_c_werror_flag" ||
23466 test ! -s conftest.err
23467 } && test -s conftest$ac_exeext &&
23468 $as_test_x conftest$ac_exeext; then
23469 ac_cv_lib_ieee___fpu_control=yes
23470 else
23471 echo "$as_me: failed program was:" >&5
23472 sed 's/^/| /' conftest.$ac_ext >&5
23474 ac_cv_lib_ieee___fpu_control=no
23477 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23478 conftest$ac_exeext conftest.$ac_ext
23479 LIBS=$ac_check_lib_save_LIBS
23481 { echo "$as_me:$LINENO: result: $ac_cv_lib_ieee___fpu_control" >&5
23482 echo "${ECHO_T}$ac_cv_lib_ieee___fpu_control" >&6; }
23483 if test $ac_cv_lib_ieee___fpu_control = yes; then
23484 cat >>confdefs.h <<_ACEOF
23485 #define HAVE_LIBIEEE 1
23486 _ACEOF
23488 LIBS="-lieee $LIBS"
23496 # Check for --with-fpectl
23497 { echo "$as_me:$LINENO: checking for --with-fpectl" >&5
23498 echo $ECHO_N "checking for --with-fpectl... $ECHO_C" >&6; }
23500 # Check whether --with-fpectl was given.
23501 if test "${with_fpectl+set}" = set; then
23502 withval=$with_fpectl;
23503 if test "$withval" != no
23504 then
23506 cat >>confdefs.h <<\_ACEOF
23507 #define WANT_SIGFPE_HANDLER 1
23508 _ACEOF
23510 { echo "$as_me:$LINENO: result: yes" >&5
23511 echo "${ECHO_T}yes" >&6; }
23512 else { echo "$as_me:$LINENO: result: no" >&5
23513 echo "${ECHO_T}no" >&6; }
23515 else
23516 { echo "$as_me:$LINENO: result: no" >&5
23517 echo "${ECHO_T}no" >&6; }
23521 # check for --with-libm=...
23523 case $ac_sys_system in
23524 Darwin) ;;
23525 BeOS) ;;
23526 *) LIBM=-lm
23527 esac
23528 { echo "$as_me:$LINENO: checking for --with-libm=STRING" >&5
23529 echo $ECHO_N "checking for --with-libm=STRING... $ECHO_C" >&6; }
23531 # Check whether --with-libm was given.
23532 if test "${with_libm+set}" = set; then
23533 withval=$with_libm;
23534 if test "$withval" = no
23535 then LIBM=
23536 { echo "$as_me:$LINENO: result: force LIBM empty" >&5
23537 echo "${ECHO_T}force LIBM empty" >&6; }
23538 elif test "$withval" != yes
23539 then LIBM=$withval
23540 { echo "$as_me:$LINENO: result: set LIBM=\"$withval\"" >&5
23541 echo "${ECHO_T}set LIBM=\"$withval\"" >&6; }
23542 else { { echo "$as_me:$LINENO: error: proper usage is --with-libm=STRING" >&5
23543 echo "$as_me: error: proper usage is --with-libm=STRING" >&2;}
23544 { (exit 1); exit 1; }; }
23546 else
23547 { echo "$as_me:$LINENO: result: default LIBM=\"$LIBM\"" >&5
23548 echo "${ECHO_T}default LIBM=\"$LIBM\"" >&6; }
23552 # check for --with-libc=...
23554 { echo "$as_me:$LINENO: checking for --with-libc=STRING" >&5
23555 echo $ECHO_N "checking for --with-libc=STRING... $ECHO_C" >&6; }
23557 # Check whether --with-libc was given.
23558 if test "${with_libc+set}" = set; then
23559 withval=$with_libc;
23560 if test "$withval" = no
23561 then LIBC=
23562 { echo "$as_me:$LINENO: result: force LIBC empty" >&5
23563 echo "${ECHO_T}force LIBC empty" >&6; }
23564 elif test "$withval" != yes
23565 then LIBC=$withval
23566 { echo "$as_me:$LINENO: result: set LIBC=\"$withval\"" >&5
23567 echo "${ECHO_T}set LIBC=\"$withval\"" >&6; }
23568 else { { echo "$as_me:$LINENO: error: proper usage is --with-libc=STRING" >&5
23569 echo "$as_me: error: proper usage is --with-libc=STRING" >&2;}
23570 { (exit 1); exit 1; }; }
23572 else
23573 { echo "$as_me:$LINENO: result: default LIBC=\"$LIBC\"" >&5
23574 echo "${ECHO_T}default LIBC=\"$LIBC\"" >&6; }
23578 # **************************************************
23579 # * Check for various properties of floating point *
23580 # **************************************************
23582 { echo "$as_me:$LINENO: checking whether C doubles are little-endian IEEE 754 binary64" >&5
23583 echo $ECHO_N "checking whether C doubles are little-endian IEEE 754 binary64... $ECHO_C" >&6; }
23584 if test "${ac_cv_little_endian_double+set}" = set; then
23585 echo $ECHO_N "(cached) $ECHO_C" >&6
23586 else
23588 if test "$cross_compiling" = yes; then
23589 ac_cv_little_endian_double=no
23590 else
23591 cat >conftest.$ac_ext <<_ACEOF
23592 /* confdefs.h. */
23593 _ACEOF
23594 cat confdefs.h >>conftest.$ac_ext
23595 cat >>conftest.$ac_ext <<_ACEOF
23596 /* end confdefs.h. */
23598 #include <string.h>
23599 int main() {
23600 double x = 9006104071832581.0;
23601 if (memcmp(&x, "\x05\x04\x03\x02\x01\xff\x3f\x43", 8) == 0)
23602 return 0;
23603 else
23604 return 1;
23607 _ACEOF
23608 rm -f conftest$ac_exeext
23609 if { (ac_try="$ac_link"
23610 case "(($ac_try" in
23611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23612 *) ac_try_echo=$ac_try;;
23613 esac
23614 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23615 (eval "$ac_link") 2>&5
23616 ac_status=$?
23617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23618 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23619 { (case "(($ac_try" in
23620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23621 *) ac_try_echo=$ac_try;;
23622 esac
23623 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23624 (eval "$ac_try") 2>&5
23625 ac_status=$?
23626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23627 (exit $ac_status); }; }; then
23628 ac_cv_little_endian_double=yes
23629 else
23630 echo "$as_me: program exited with status $ac_status" >&5
23631 echo "$as_me: failed program was:" >&5
23632 sed 's/^/| /' conftest.$ac_ext >&5
23634 ( exit $ac_status )
23635 ac_cv_little_endian_double=no
23637 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23643 { echo "$as_me:$LINENO: result: $ac_cv_little_endian_double" >&5
23644 echo "${ECHO_T}$ac_cv_little_endian_double" >&6; }
23645 if test "$ac_cv_little_endian_double" = yes
23646 then
23648 cat >>confdefs.h <<\_ACEOF
23649 #define DOUBLE_IS_LITTLE_ENDIAN_IEEE754 1
23650 _ACEOF
23654 { echo "$as_me:$LINENO: checking whether C doubles are big-endian IEEE 754 binary64" >&5
23655 echo $ECHO_N "checking whether C doubles are big-endian IEEE 754 binary64... $ECHO_C" >&6; }
23656 if test "${ac_cv_big_endian_double+set}" = set; then
23657 echo $ECHO_N "(cached) $ECHO_C" >&6
23658 else
23660 if test "$cross_compiling" = yes; then
23661 ac_cv_big_endian_double=no
23662 else
23663 cat >conftest.$ac_ext <<_ACEOF
23664 /* confdefs.h. */
23665 _ACEOF
23666 cat confdefs.h >>conftest.$ac_ext
23667 cat >>conftest.$ac_ext <<_ACEOF
23668 /* end confdefs.h. */
23670 #include <string.h>
23671 int main() {
23672 double x = 9006104071832581.0;
23673 if (memcmp(&x, "\x43\x3f\xff\x01\x02\x03\x04\x05", 8) == 0)
23674 return 0;
23675 else
23676 return 1;
23679 _ACEOF
23680 rm -f conftest$ac_exeext
23681 if { (ac_try="$ac_link"
23682 case "(($ac_try" in
23683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23684 *) ac_try_echo=$ac_try;;
23685 esac
23686 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23687 (eval "$ac_link") 2>&5
23688 ac_status=$?
23689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23690 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23691 { (case "(($ac_try" in
23692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23693 *) ac_try_echo=$ac_try;;
23694 esac
23695 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23696 (eval "$ac_try") 2>&5
23697 ac_status=$?
23698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23699 (exit $ac_status); }; }; then
23700 ac_cv_big_endian_double=yes
23701 else
23702 echo "$as_me: program exited with status $ac_status" >&5
23703 echo "$as_me: failed program was:" >&5
23704 sed 's/^/| /' conftest.$ac_ext >&5
23706 ( exit $ac_status )
23707 ac_cv_big_endian_double=no
23709 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23715 { echo "$as_me:$LINENO: result: $ac_cv_big_endian_double" >&5
23716 echo "${ECHO_T}$ac_cv_big_endian_double" >&6; }
23717 if test "$ac_cv_big_endian_double" = yes
23718 then
23720 cat >>confdefs.h <<\_ACEOF
23721 #define DOUBLE_IS_BIG_ENDIAN_IEEE754 1
23722 _ACEOF
23726 # Some ARM platforms use a mixed-endian representation for doubles.
23727 # While Python doesn't currently have full support for these platforms
23728 # (see e.g., issue 1762561), we can at least make sure that float <-> string
23729 # conversions work.
23730 { echo "$as_me:$LINENO: checking whether C doubles are ARM mixed-endian IEEE 754 binary64" >&5
23731 echo $ECHO_N "checking whether C doubles are ARM mixed-endian IEEE 754 binary64... $ECHO_C" >&6; }
23732 if test "${ac_cv_mixed_endian_double+set}" = set; then
23733 echo $ECHO_N "(cached) $ECHO_C" >&6
23734 else
23736 if test "$cross_compiling" = yes; then
23737 ac_cv_mixed_endian_double=no
23738 else
23739 cat >conftest.$ac_ext <<_ACEOF
23740 /* confdefs.h. */
23741 _ACEOF
23742 cat confdefs.h >>conftest.$ac_ext
23743 cat >>conftest.$ac_ext <<_ACEOF
23744 /* end confdefs.h. */
23746 #include <string.h>
23747 int main() {
23748 double x = 9006104071832581.0;
23749 if (memcmp(&x, "\x01\xff\x3f\x43\x05\x04\x03\x02", 8) == 0)
23750 return 0;
23751 else
23752 return 1;
23755 _ACEOF
23756 rm -f conftest$ac_exeext
23757 if { (ac_try="$ac_link"
23758 case "(($ac_try" in
23759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23760 *) ac_try_echo=$ac_try;;
23761 esac
23762 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23763 (eval "$ac_link") 2>&5
23764 ac_status=$?
23765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23766 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23767 { (case "(($ac_try" in
23768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23769 *) ac_try_echo=$ac_try;;
23770 esac
23771 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23772 (eval "$ac_try") 2>&5
23773 ac_status=$?
23774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23775 (exit $ac_status); }; }; then
23776 ac_cv_mixed_endian_double=yes
23777 else
23778 echo "$as_me: program exited with status $ac_status" >&5
23779 echo "$as_me: failed program was:" >&5
23780 sed 's/^/| /' conftest.$ac_ext >&5
23782 ( exit $ac_status )
23783 ac_cv_mixed_endian_double=no
23785 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23791 { echo "$as_me:$LINENO: result: $ac_cv_mixed_endian_double" >&5
23792 echo "${ECHO_T}$ac_cv_mixed_endian_double" >&6; }
23793 if test "$ac_cv_mixed_endian_double" = yes
23794 then
23796 cat >>confdefs.h <<\_ACEOF
23797 #define DOUBLE_IS_ARM_MIXED_ENDIAN_IEEE754 1
23798 _ACEOF
23802 # The short float repr introduced in Python 3.1 requires the
23803 # correctly-rounded string <-> double conversion functions from
23804 # Python/dtoa.c, which in turn require that the FPU uses 53-bit
23805 # rounding; this is a problem on x86, where the x87 FPU has a default
23806 # rounding precision of 64 bits. For gcc/x86, we can fix this by
23807 # using inline assembler to get and set the x87 FPU control word.
23809 # This inline assembler syntax may also work for suncc and icc,
23810 # so we try it on all platforms.
23812 { echo "$as_me:$LINENO: checking whether we can use gcc inline assembler to get and set x87 control word" >&5
23813 echo $ECHO_N "checking whether we can use gcc inline assembler to get and set x87 control word... $ECHO_C" >&6; }
23814 cat >conftest.$ac_ext <<_ACEOF
23815 /* confdefs.h. */
23816 _ACEOF
23817 cat confdefs.h >>conftest.$ac_ext
23818 cat >>conftest.$ac_ext <<_ACEOF
23819 /* end confdefs.h. */
23822 main ()
23825 unsigned short cw;
23826 __asm__ __volatile__ ("fnstcw %0" : "=m" (cw));
23827 __asm__ __volatile__ ("fldcw %0" : : "m" (cw));
23830 return 0;
23832 _ACEOF
23833 rm -f conftest.$ac_objext
23834 if { (ac_try="$ac_compile"
23835 case "(($ac_try" in
23836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23837 *) ac_try_echo=$ac_try;;
23838 esac
23839 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23840 (eval "$ac_compile") 2>conftest.er1
23841 ac_status=$?
23842 grep -v '^ *+' conftest.er1 >conftest.err
23843 rm -f conftest.er1
23844 cat conftest.err >&5
23845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23846 (exit $ac_status); } && {
23847 test -z "$ac_c_werror_flag" ||
23848 test ! -s conftest.err
23849 } && test -s conftest.$ac_objext; then
23850 have_gcc_asm_for_x87=yes
23851 else
23852 echo "$as_me: failed program was:" >&5
23853 sed 's/^/| /' conftest.$ac_ext >&5
23855 have_gcc_asm_for_x87=no
23858 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23859 { echo "$as_me:$LINENO: result: $have_gcc_asm_for_x87" >&5
23860 echo "${ECHO_T}$have_gcc_asm_for_x87" >&6; }
23861 if test "$have_gcc_asm_for_x87" = yes
23862 then
23864 cat >>confdefs.h <<\_ACEOF
23865 #define HAVE_GCC_ASM_FOR_X87 1
23866 _ACEOF
23870 # Detect whether system arithmetic is subject to x87-style double
23871 # rounding issues. The result of this test has little meaning on non
23872 # IEEE 754 platforms. On IEEE 754, test should return 1 if rounding
23873 # mode is round-to-nearest and double rounding issues are present, and
23874 # 0 otherwise. See http://bugs.python.org/issue2937 for more info.
23875 { echo "$as_me:$LINENO: checking for x87-style double rounding" >&5
23876 echo $ECHO_N "checking for x87-style double rounding... $ECHO_C" >&6; }
23877 # $BASECFLAGS may affect the result
23878 ac_save_cc="$CC"
23879 CC="$CC $BASECFLAGS"
23880 if test "$cross_compiling" = yes; then
23881 ac_cv_x87_double_rounding=no
23882 else
23883 cat >conftest.$ac_ext <<_ACEOF
23884 /* confdefs.h. */
23885 _ACEOF
23886 cat confdefs.h >>conftest.$ac_ext
23887 cat >>conftest.$ac_ext <<_ACEOF
23888 /* end confdefs.h. */
23890 #include <stdlib.h>
23891 #include <math.h>
23892 int main() {
23893 volatile double x, y, z;
23894 /* 1./(1-2**-53) -> 1+2**-52 (correct), 1.0 (double rounding) */
23895 x = 0.99999999999999989; /* 1-2**-53 */
23896 y = 1./x;
23897 if (y != 1.)
23898 exit(0);
23899 /* 1e16+2.99999 -> 1e16+2. (correct), 1e16+4. (double rounding) */
23900 x = 1e16;
23901 y = 2.99999;
23902 z = x + y;
23903 if (z != 1e16+4.)
23904 exit(0);
23905 /* both tests show evidence of double rounding */
23906 exit(1);
23909 _ACEOF
23910 rm -f conftest$ac_exeext
23911 if { (ac_try="$ac_link"
23912 case "(($ac_try" in
23913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23914 *) ac_try_echo=$ac_try;;
23915 esac
23916 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23917 (eval "$ac_link") 2>&5
23918 ac_status=$?
23919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23920 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23921 { (case "(($ac_try" in
23922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23923 *) ac_try_echo=$ac_try;;
23924 esac
23925 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23926 (eval "$ac_try") 2>&5
23927 ac_status=$?
23928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23929 (exit $ac_status); }; }; then
23930 ac_cv_x87_double_rounding=no
23931 else
23932 echo "$as_me: program exited with status $ac_status" >&5
23933 echo "$as_me: failed program was:" >&5
23934 sed 's/^/| /' conftest.$ac_ext >&5
23936 ( exit $ac_status )
23937 ac_cv_x87_double_rounding=yes
23939 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23943 CC="$ac_save_cc"
23944 { echo "$as_me:$LINENO: result: $ac_cv_x87_double_rounding" >&5
23945 echo "${ECHO_T}$ac_cv_x87_double_rounding" >&6; }
23946 if test "$ac_cv_x87_double_rounding" = yes
23947 then
23949 cat >>confdefs.h <<\_ACEOF
23950 #define X87_DOUBLE_ROUNDING 1
23951 _ACEOF
23955 # ************************************
23956 # * Check for mathematical functions *
23957 # ************************************
23959 LIBS_SAVE=$LIBS
23960 LIBS="$LIBS $LIBM"
23962 # On FreeBSD 6.2, it appears that tanh(-0.) returns 0. instead of
23963 # -0. on some architectures.
23964 { echo "$as_me:$LINENO: checking whether tanh preserves the sign of zero" >&5
23965 echo $ECHO_N "checking whether tanh preserves the sign of zero... $ECHO_C" >&6; }
23966 if test "${ac_cv_tanh_preserves_zero_sign+set}" = set; then
23967 echo $ECHO_N "(cached) $ECHO_C" >&6
23968 else
23970 if test "$cross_compiling" = yes; then
23971 ac_cv_tanh_preserves_zero_sign=no
23972 else
23973 cat >conftest.$ac_ext <<_ACEOF
23974 /* confdefs.h. */
23975 _ACEOF
23976 cat confdefs.h >>conftest.$ac_ext
23977 cat >>conftest.$ac_ext <<_ACEOF
23978 /* end confdefs.h. */
23980 #include <math.h>
23981 #include <stdlib.h>
23982 int main() {
23983 /* return 0 if either negative zeros don't exist
23984 on this platform or if negative zeros exist
23985 and tanh(-0.) == -0. */
23986 if (atan2(0., -1.) == atan2(-0., -1.) ||
23987 atan2(tanh(-0.), -1.) == atan2(-0., -1.)) exit(0);
23988 else exit(1);
23991 _ACEOF
23992 rm -f conftest$ac_exeext
23993 if { (ac_try="$ac_link"
23994 case "(($ac_try" in
23995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23996 *) ac_try_echo=$ac_try;;
23997 esac
23998 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23999 (eval "$ac_link") 2>&5
24000 ac_status=$?
24001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24002 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24003 { (case "(($ac_try" in
24004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24005 *) ac_try_echo=$ac_try;;
24006 esac
24007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24008 (eval "$ac_try") 2>&5
24009 ac_status=$?
24010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24011 (exit $ac_status); }; }; then
24012 ac_cv_tanh_preserves_zero_sign=yes
24013 else
24014 echo "$as_me: program exited with status $ac_status" >&5
24015 echo "$as_me: failed program was:" >&5
24016 sed 's/^/| /' conftest.$ac_ext >&5
24018 ( exit $ac_status )
24019 ac_cv_tanh_preserves_zero_sign=no
24021 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24027 { echo "$as_me:$LINENO: result: $ac_cv_tanh_preserves_zero_sign" >&5
24028 echo "${ECHO_T}$ac_cv_tanh_preserves_zero_sign" >&6; }
24029 if test "$ac_cv_tanh_preserves_zero_sign" = yes
24030 then
24032 cat >>confdefs.h <<\_ACEOF
24033 #define TANH_PRESERVES_ZERO_SIGN 1
24034 _ACEOF
24047 for ac_func in acosh asinh atanh copysign erf erfc expm1 finite gamma
24049 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24050 { echo "$as_me:$LINENO: checking for $ac_func" >&5
24051 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
24052 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
24053 echo $ECHO_N "(cached) $ECHO_C" >&6
24054 else
24055 cat >conftest.$ac_ext <<_ACEOF
24056 /* confdefs.h. */
24057 _ACEOF
24058 cat confdefs.h >>conftest.$ac_ext
24059 cat >>conftest.$ac_ext <<_ACEOF
24060 /* end confdefs.h. */
24061 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24062 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24063 #define $ac_func innocuous_$ac_func
24065 /* System header to define __stub macros and hopefully few prototypes,
24066 which can conflict with char $ac_func (); below.
24067 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24068 <limits.h> exists even on freestanding compilers. */
24070 #ifdef __STDC__
24071 # include <limits.h>
24072 #else
24073 # include <assert.h>
24074 #endif
24076 #undef $ac_func
24078 /* Override any GCC internal prototype to avoid an error.
24079 Use char because int might match the return type of a GCC
24080 builtin and then its argument prototype would still apply. */
24081 #ifdef __cplusplus
24082 extern "C"
24083 #endif
24084 char $ac_func ();
24085 /* The GNU C library defines this for functions which it implements
24086 to always fail with ENOSYS. Some functions are actually named
24087 something starting with __ and the normal name is an alias. */
24088 #if defined __stub_$ac_func || defined __stub___$ac_func
24089 choke me
24090 #endif
24093 main ()
24095 return $ac_func ();
24097 return 0;
24099 _ACEOF
24100 rm -f conftest.$ac_objext conftest$ac_exeext
24101 if { (ac_try="$ac_link"
24102 case "(($ac_try" in
24103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24104 *) ac_try_echo=$ac_try;;
24105 esac
24106 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24107 (eval "$ac_link") 2>conftest.er1
24108 ac_status=$?
24109 grep -v '^ *+' conftest.er1 >conftest.err
24110 rm -f conftest.er1
24111 cat conftest.err >&5
24112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24113 (exit $ac_status); } && {
24114 test -z "$ac_c_werror_flag" ||
24115 test ! -s conftest.err
24116 } && test -s conftest$ac_exeext &&
24117 $as_test_x conftest$ac_exeext; then
24118 eval "$as_ac_var=yes"
24119 else
24120 echo "$as_me: failed program was:" >&5
24121 sed 's/^/| /' conftest.$ac_ext >&5
24123 eval "$as_ac_var=no"
24126 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24127 conftest$ac_exeext conftest.$ac_ext
24129 ac_res=`eval echo '${'$as_ac_var'}'`
24130 { echo "$as_me:$LINENO: result: $ac_res" >&5
24131 echo "${ECHO_T}$ac_res" >&6; }
24132 if test `eval echo '${'$as_ac_var'}'` = yes; then
24133 cat >>confdefs.h <<_ACEOF
24134 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24135 _ACEOF
24138 done
24145 for ac_func in hypot lgamma log1p round tgamma
24147 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24148 { echo "$as_me:$LINENO: checking for $ac_func" >&5
24149 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
24150 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
24151 echo $ECHO_N "(cached) $ECHO_C" >&6
24152 else
24153 cat >conftest.$ac_ext <<_ACEOF
24154 /* confdefs.h. */
24155 _ACEOF
24156 cat confdefs.h >>conftest.$ac_ext
24157 cat >>conftest.$ac_ext <<_ACEOF
24158 /* end confdefs.h. */
24159 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24160 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24161 #define $ac_func innocuous_$ac_func
24163 /* System header to define __stub macros and hopefully few prototypes,
24164 which can conflict with char $ac_func (); below.
24165 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24166 <limits.h> exists even on freestanding compilers. */
24168 #ifdef __STDC__
24169 # include <limits.h>
24170 #else
24171 # include <assert.h>
24172 #endif
24174 #undef $ac_func
24176 /* Override any GCC internal prototype to avoid an error.
24177 Use char because int might match the return type of a GCC
24178 builtin and then its argument prototype would still apply. */
24179 #ifdef __cplusplus
24180 extern "C"
24181 #endif
24182 char $ac_func ();
24183 /* The GNU C library defines this for functions which it implements
24184 to always fail with ENOSYS. Some functions are actually named
24185 something starting with __ and the normal name is an alias. */
24186 #if defined __stub_$ac_func || defined __stub___$ac_func
24187 choke me
24188 #endif
24191 main ()
24193 return $ac_func ();
24195 return 0;
24197 _ACEOF
24198 rm -f conftest.$ac_objext conftest$ac_exeext
24199 if { (ac_try="$ac_link"
24200 case "(($ac_try" in
24201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24202 *) ac_try_echo=$ac_try;;
24203 esac
24204 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24205 (eval "$ac_link") 2>conftest.er1
24206 ac_status=$?
24207 grep -v '^ *+' conftest.er1 >conftest.err
24208 rm -f conftest.er1
24209 cat conftest.err >&5
24210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24211 (exit $ac_status); } && {
24212 test -z "$ac_c_werror_flag" ||
24213 test ! -s conftest.err
24214 } && test -s conftest$ac_exeext &&
24215 $as_test_x conftest$ac_exeext; then
24216 eval "$as_ac_var=yes"
24217 else
24218 echo "$as_me: failed program was:" >&5
24219 sed 's/^/| /' conftest.$ac_ext >&5
24221 eval "$as_ac_var=no"
24224 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24225 conftest$ac_exeext conftest.$ac_ext
24227 ac_res=`eval echo '${'$as_ac_var'}'`
24228 { echo "$as_me:$LINENO: result: $ac_res" >&5
24229 echo "${ECHO_T}$ac_res" >&6; }
24230 if test `eval echo '${'$as_ac_var'}'` = yes; then
24231 cat >>confdefs.h <<_ACEOF
24232 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24233 _ACEOF
24236 done
24238 { echo "$as_me:$LINENO: checking whether isinf is declared" >&5
24239 echo $ECHO_N "checking whether isinf is declared... $ECHO_C" >&6; }
24240 if test "${ac_cv_have_decl_isinf+set}" = set; then
24241 echo $ECHO_N "(cached) $ECHO_C" >&6
24242 else
24243 cat >conftest.$ac_ext <<_ACEOF
24244 /* confdefs.h. */
24245 _ACEOF
24246 cat confdefs.h >>conftest.$ac_ext
24247 cat >>conftest.$ac_ext <<_ACEOF
24248 /* end confdefs.h. */
24249 #include <math.h>
24252 main ()
24254 #ifndef isinf
24255 (void) isinf;
24256 #endif
24259 return 0;
24261 _ACEOF
24262 rm -f conftest.$ac_objext
24263 if { (ac_try="$ac_compile"
24264 case "(($ac_try" in
24265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24266 *) ac_try_echo=$ac_try;;
24267 esac
24268 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24269 (eval "$ac_compile") 2>conftest.er1
24270 ac_status=$?
24271 grep -v '^ *+' conftest.er1 >conftest.err
24272 rm -f conftest.er1
24273 cat conftest.err >&5
24274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24275 (exit $ac_status); } && {
24276 test -z "$ac_c_werror_flag" ||
24277 test ! -s conftest.err
24278 } && test -s conftest.$ac_objext; then
24279 ac_cv_have_decl_isinf=yes
24280 else
24281 echo "$as_me: failed program was:" >&5
24282 sed 's/^/| /' conftest.$ac_ext >&5
24284 ac_cv_have_decl_isinf=no
24287 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24289 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_isinf" >&5
24290 echo "${ECHO_T}$ac_cv_have_decl_isinf" >&6; }
24291 if test $ac_cv_have_decl_isinf = yes; then
24293 cat >>confdefs.h <<_ACEOF
24294 #define HAVE_DECL_ISINF 1
24295 _ACEOF
24298 else
24299 cat >>confdefs.h <<_ACEOF
24300 #define HAVE_DECL_ISINF 0
24301 _ACEOF
24305 { echo "$as_me:$LINENO: checking whether isnan is declared" >&5
24306 echo $ECHO_N "checking whether isnan is declared... $ECHO_C" >&6; }
24307 if test "${ac_cv_have_decl_isnan+set}" = set; then
24308 echo $ECHO_N "(cached) $ECHO_C" >&6
24309 else
24310 cat >conftest.$ac_ext <<_ACEOF
24311 /* confdefs.h. */
24312 _ACEOF
24313 cat confdefs.h >>conftest.$ac_ext
24314 cat >>conftest.$ac_ext <<_ACEOF
24315 /* end confdefs.h. */
24316 #include <math.h>
24319 main ()
24321 #ifndef isnan
24322 (void) isnan;
24323 #endif
24326 return 0;
24328 _ACEOF
24329 rm -f conftest.$ac_objext
24330 if { (ac_try="$ac_compile"
24331 case "(($ac_try" in
24332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24333 *) ac_try_echo=$ac_try;;
24334 esac
24335 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24336 (eval "$ac_compile") 2>conftest.er1
24337 ac_status=$?
24338 grep -v '^ *+' conftest.er1 >conftest.err
24339 rm -f conftest.er1
24340 cat conftest.err >&5
24341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24342 (exit $ac_status); } && {
24343 test -z "$ac_c_werror_flag" ||
24344 test ! -s conftest.err
24345 } && test -s conftest.$ac_objext; then
24346 ac_cv_have_decl_isnan=yes
24347 else
24348 echo "$as_me: failed program was:" >&5
24349 sed 's/^/| /' conftest.$ac_ext >&5
24351 ac_cv_have_decl_isnan=no
24354 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24356 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_isnan" >&5
24357 echo "${ECHO_T}$ac_cv_have_decl_isnan" >&6; }
24358 if test $ac_cv_have_decl_isnan = yes; then
24360 cat >>confdefs.h <<_ACEOF
24361 #define HAVE_DECL_ISNAN 1
24362 _ACEOF
24365 else
24366 cat >>confdefs.h <<_ACEOF
24367 #define HAVE_DECL_ISNAN 0
24368 _ACEOF
24372 { echo "$as_me:$LINENO: checking whether isfinite is declared" >&5
24373 echo $ECHO_N "checking whether isfinite is declared... $ECHO_C" >&6; }
24374 if test "${ac_cv_have_decl_isfinite+set}" = set; then
24375 echo $ECHO_N "(cached) $ECHO_C" >&6
24376 else
24377 cat >conftest.$ac_ext <<_ACEOF
24378 /* confdefs.h. */
24379 _ACEOF
24380 cat confdefs.h >>conftest.$ac_ext
24381 cat >>conftest.$ac_ext <<_ACEOF
24382 /* end confdefs.h. */
24383 #include <math.h>
24386 main ()
24388 #ifndef isfinite
24389 (void) isfinite;
24390 #endif
24393 return 0;
24395 _ACEOF
24396 rm -f conftest.$ac_objext
24397 if { (ac_try="$ac_compile"
24398 case "(($ac_try" in
24399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24400 *) ac_try_echo=$ac_try;;
24401 esac
24402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24403 (eval "$ac_compile") 2>conftest.er1
24404 ac_status=$?
24405 grep -v '^ *+' conftest.er1 >conftest.err
24406 rm -f conftest.er1
24407 cat conftest.err >&5
24408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24409 (exit $ac_status); } && {
24410 test -z "$ac_c_werror_flag" ||
24411 test ! -s conftest.err
24412 } && test -s conftest.$ac_objext; then
24413 ac_cv_have_decl_isfinite=yes
24414 else
24415 echo "$as_me: failed program was:" >&5
24416 sed 's/^/| /' conftest.$ac_ext >&5
24418 ac_cv_have_decl_isfinite=no
24421 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24423 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_isfinite" >&5
24424 echo "${ECHO_T}$ac_cv_have_decl_isfinite" >&6; }
24425 if test $ac_cv_have_decl_isfinite = yes; then
24427 cat >>confdefs.h <<_ACEOF
24428 #define HAVE_DECL_ISFINITE 1
24429 _ACEOF
24432 else
24433 cat >>confdefs.h <<_ACEOF
24434 #define HAVE_DECL_ISFINITE 0
24435 _ACEOF
24442 LIBS=$LIBS_SAVE
24444 # For multiprocessing module, check that sem_open
24445 # actually works. For FreeBSD versions <= 7.2,
24446 # the kernel module that provides POSIX semaphores
24447 # isn't loaded by default, so an attempt to call
24448 # sem_open results in a 'Signal 12' error.
24449 { echo "$as_me:$LINENO: checking whether POSIX semaphores are enabled" >&5
24450 echo $ECHO_N "checking whether POSIX semaphores are enabled... $ECHO_C" >&6; }
24451 if test "${ac_cv_posix_semaphores_enabled+set}" = set; then
24452 echo $ECHO_N "(cached) $ECHO_C" >&6
24453 else
24454 if test "$cross_compiling" = yes; then
24455 ac_cv_posix_semaphores_enabled=yes
24456 else
24457 cat >conftest.$ac_ext <<_ACEOF
24458 /* confdefs.h. */
24459 _ACEOF
24460 cat confdefs.h >>conftest.$ac_ext
24461 cat >>conftest.$ac_ext <<_ACEOF
24462 /* end confdefs.h. */
24464 #include <unistd.h>
24465 #include <fcntl.h>
24466 #include <stdio.h>
24467 #include <semaphore.h>
24468 #include <sys/stat.h>
24470 int main(void) {
24471 sem_t *a = sem_open("/autoconf", O_CREAT, S_IRUSR|S_IWUSR, 0);
24472 if (a == SEM_FAILED) {
24473 perror("sem_open");
24474 return 1;
24476 sem_close(a);
24477 return 0;
24480 _ACEOF
24481 rm -f conftest$ac_exeext
24482 if { (ac_try="$ac_link"
24483 case "(($ac_try" in
24484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24485 *) ac_try_echo=$ac_try;;
24486 esac
24487 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24488 (eval "$ac_link") 2>&5
24489 ac_status=$?
24490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24491 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24492 { (case "(($ac_try" in
24493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24494 *) ac_try_echo=$ac_try;;
24495 esac
24496 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24497 (eval "$ac_try") 2>&5
24498 ac_status=$?
24499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24500 (exit $ac_status); }; }; then
24501 ac_cv_posix_semaphores_enabled=yes
24502 else
24503 echo "$as_me: program exited with status $ac_status" >&5
24504 echo "$as_me: failed program was:" >&5
24505 sed 's/^/| /' conftest.$ac_ext >&5
24507 ( exit $ac_status )
24508 ac_cv_posix_semaphores_enabled=no
24510 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24517 { echo "$as_me:$LINENO: result: $ac_cv_posix_semaphores_enabled" >&5
24518 echo "${ECHO_T}$ac_cv_posix_semaphores_enabled" >&6; }
24519 if test $ac_cv_posix_semaphores_enabled = no
24520 then
24522 cat >>confdefs.h <<\_ACEOF
24523 #define POSIX_SEMAPHORES_NOT_ENABLED 1
24524 _ACEOF
24528 # Multiprocessing check for broken sem_getvalue
24529 { echo "$as_me:$LINENO: checking for broken sem_getvalue" >&5
24530 echo $ECHO_N "checking for broken sem_getvalue... $ECHO_C" >&6; }
24531 if test "${ac_cv_broken_sem_getvalue+set}" = set; then
24532 echo $ECHO_N "(cached) $ECHO_C" >&6
24533 else
24534 if test "$cross_compiling" = yes; then
24535 ac_cv_broken_sem_getvalue=yes
24536 else
24537 cat >conftest.$ac_ext <<_ACEOF
24538 /* confdefs.h. */
24539 _ACEOF
24540 cat confdefs.h >>conftest.$ac_ext
24541 cat >>conftest.$ac_ext <<_ACEOF
24542 /* end confdefs.h. */
24544 #include <unistd.h>
24545 #include <fcntl.h>
24546 #include <stdio.h>
24547 #include <semaphore.h>
24548 #include <sys/stat.h>
24550 int main(void){
24551 sem_t *a = sem_open("/autoconf", O_CREAT, S_IRUSR|S_IWUSR, 0);
24552 int count;
24553 int res;
24554 if(a==SEM_FAILED){
24555 perror("sem_open");
24556 return 1;
24559 res = sem_getvalue(a, &count);
24560 sem_close(a);
24561 return res==-1 ? 1 : 0;
24564 _ACEOF
24565 rm -f conftest$ac_exeext
24566 if { (ac_try="$ac_link"
24567 case "(($ac_try" in
24568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24569 *) ac_try_echo=$ac_try;;
24570 esac
24571 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24572 (eval "$ac_link") 2>&5
24573 ac_status=$?
24574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24575 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24576 { (case "(($ac_try" in
24577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24578 *) ac_try_echo=$ac_try;;
24579 esac
24580 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24581 (eval "$ac_try") 2>&5
24582 ac_status=$?
24583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24584 (exit $ac_status); }; }; then
24585 ac_cv_broken_sem_getvalue=no
24586 else
24587 echo "$as_me: program exited with status $ac_status" >&5
24588 echo "$as_me: failed program was:" >&5
24589 sed 's/^/| /' conftest.$ac_ext >&5
24591 ( exit $ac_status )
24592 ac_cv_broken_sem_getvalue=yes
24594 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24601 { echo "$as_me:$LINENO: result: $ac_cv_broken_sem_getvalue" >&5
24602 echo "${ECHO_T}$ac_cv_broken_sem_getvalue" >&6; }
24603 if test $ac_cv_broken_sem_getvalue = yes
24604 then
24606 cat >>confdefs.h <<\_ACEOF
24607 #define HAVE_BROKEN_SEM_GETVALUE 1
24608 _ACEOF
24612 # determine what size digit to use for Python's longs
24613 { echo "$as_me:$LINENO: checking digit size for Python's longs" >&5
24614 echo $ECHO_N "checking digit size for Python's longs... $ECHO_C" >&6; }
24615 # Check whether --enable-big-digits was given.
24616 if test "${enable_big_digits+set}" = set; then
24617 enableval=$enable_big_digits; case $enable_big_digits in
24618 yes)
24619 enable_big_digits=30 ;;
24621 enable_big_digits=15 ;;
24622 15|30)
24625 { { echo "$as_me:$LINENO: error: bad value $enable_big_digits for --enable-big-digits; value should be 15 or 30" >&5
24626 echo "$as_me: error: bad value $enable_big_digits for --enable-big-digits; value should be 15 or 30" >&2;}
24627 { (exit 1); exit 1; }; } ;;
24628 esac
24629 { echo "$as_me:$LINENO: result: $enable_big_digits" >&5
24630 echo "${ECHO_T}$enable_big_digits" >&6; }
24632 cat >>confdefs.h <<_ACEOF
24633 #define PYLONG_BITS_IN_DIGIT $enable_big_digits
24634 _ACEOF
24637 else
24638 { echo "$as_me:$LINENO: result: no value specified" >&5
24639 echo "${ECHO_T}no value specified" >&6; }
24643 # check for wchar.h
24644 if test "${ac_cv_header_wchar_h+set}" = set; then
24645 { echo "$as_me:$LINENO: checking for wchar.h" >&5
24646 echo $ECHO_N "checking for wchar.h... $ECHO_C" >&6; }
24647 if test "${ac_cv_header_wchar_h+set}" = set; then
24648 echo $ECHO_N "(cached) $ECHO_C" >&6
24650 { echo "$as_me:$LINENO: result: $ac_cv_header_wchar_h" >&5
24651 echo "${ECHO_T}$ac_cv_header_wchar_h" >&6; }
24652 else
24653 # Is the header compilable?
24654 { echo "$as_me:$LINENO: checking wchar.h usability" >&5
24655 echo $ECHO_N "checking wchar.h usability... $ECHO_C" >&6; }
24656 cat >conftest.$ac_ext <<_ACEOF
24657 /* confdefs.h. */
24658 _ACEOF
24659 cat confdefs.h >>conftest.$ac_ext
24660 cat >>conftest.$ac_ext <<_ACEOF
24661 /* end confdefs.h. */
24662 $ac_includes_default
24663 #include <wchar.h>
24664 _ACEOF
24665 rm -f conftest.$ac_objext
24666 if { (ac_try="$ac_compile"
24667 case "(($ac_try" in
24668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24669 *) ac_try_echo=$ac_try;;
24670 esac
24671 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24672 (eval "$ac_compile") 2>conftest.er1
24673 ac_status=$?
24674 grep -v '^ *+' conftest.er1 >conftest.err
24675 rm -f conftest.er1
24676 cat conftest.err >&5
24677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24678 (exit $ac_status); } && {
24679 test -z "$ac_c_werror_flag" ||
24680 test ! -s conftest.err
24681 } && test -s conftest.$ac_objext; then
24682 ac_header_compiler=yes
24683 else
24684 echo "$as_me: failed program was:" >&5
24685 sed 's/^/| /' conftest.$ac_ext >&5
24687 ac_header_compiler=no
24690 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24691 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24692 echo "${ECHO_T}$ac_header_compiler" >&6; }
24694 # Is the header present?
24695 { echo "$as_me:$LINENO: checking wchar.h presence" >&5
24696 echo $ECHO_N "checking wchar.h presence... $ECHO_C" >&6; }
24697 cat >conftest.$ac_ext <<_ACEOF
24698 /* confdefs.h. */
24699 _ACEOF
24700 cat confdefs.h >>conftest.$ac_ext
24701 cat >>conftest.$ac_ext <<_ACEOF
24702 /* end confdefs.h. */
24703 #include <wchar.h>
24704 _ACEOF
24705 if { (ac_try="$ac_cpp conftest.$ac_ext"
24706 case "(($ac_try" in
24707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24708 *) ac_try_echo=$ac_try;;
24709 esac
24710 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24711 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24712 ac_status=$?
24713 grep -v '^ *+' conftest.er1 >conftest.err
24714 rm -f conftest.er1
24715 cat conftest.err >&5
24716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24717 (exit $ac_status); } >/dev/null && {
24718 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24719 test ! -s conftest.err
24720 }; then
24721 ac_header_preproc=yes
24722 else
24723 echo "$as_me: failed program was:" >&5
24724 sed 's/^/| /' conftest.$ac_ext >&5
24726 ac_header_preproc=no
24729 rm -f conftest.err conftest.$ac_ext
24730 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24731 echo "${ECHO_T}$ac_header_preproc" >&6; }
24733 # So? What about this header?
24734 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24735 yes:no: )
24736 { echo "$as_me:$LINENO: WARNING: wchar.h: accepted by the compiler, rejected by the preprocessor!" >&5
24737 echo "$as_me: WARNING: wchar.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24738 { echo "$as_me:$LINENO: WARNING: wchar.h: proceeding with the compiler's result" >&5
24739 echo "$as_me: WARNING: wchar.h: proceeding with the compiler's result" >&2;}
24740 ac_header_preproc=yes
24742 no:yes:* )
24743 { echo "$as_me:$LINENO: WARNING: wchar.h: present but cannot be compiled" >&5
24744 echo "$as_me: WARNING: wchar.h: present but cannot be compiled" >&2;}
24745 { echo "$as_me:$LINENO: WARNING: wchar.h: check for missing prerequisite headers?" >&5
24746 echo "$as_me: WARNING: wchar.h: check for missing prerequisite headers?" >&2;}
24747 { echo "$as_me:$LINENO: WARNING: wchar.h: see the Autoconf documentation" >&5
24748 echo "$as_me: WARNING: wchar.h: see the Autoconf documentation" >&2;}
24749 { echo "$as_me:$LINENO: WARNING: wchar.h: section \"Present But Cannot Be Compiled\"" >&5
24750 echo "$as_me: WARNING: wchar.h: section \"Present But Cannot Be Compiled\"" >&2;}
24751 { echo "$as_me:$LINENO: WARNING: wchar.h: proceeding with the preprocessor's result" >&5
24752 echo "$as_me: WARNING: wchar.h: proceeding with the preprocessor's result" >&2;}
24753 { echo "$as_me:$LINENO: WARNING: wchar.h: in the future, the compiler will take precedence" >&5
24754 echo "$as_me: WARNING: wchar.h: in the future, the compiler will take precedence" >&2;}
24755 ( cat <<\_ASBOX
24756 ## -------------------------------------- ##
24757 ## Report this to http://bugs.python.org/ ##
24758 ## -------------------------------------- ##
24759 _ASBOX
24760 ) | sed "s/^/$as_me: WARNING: /" >&2
24762 esac
24763 { echo "$as_me:$LINENO: checking for wchar.h" >&5
24764 echo $ECHO_N "checking for wchar.h... $ECHO_C" >&6; }
24765 if test "${ac_cv_header_wchar_h+set}" = set; then
24766 echo $ECHO_N "(cached) $ECHO_C" >&6
24767 else
24768 ac_cv_header_wchar_h=$ac_header_preproc
24770 { echo "$as_me:$LINENO: result: $ac_cv_header_wchar_h" >&5
24771 echo "${ECHO_T}$ac_cv_header_wchar_h" >&6; }
24774 if test $ac_cv_header_wchar_h = yes; then
24777 cat >>confdefs.h <<\_ACEOF
24778 #define HAVE_WCHAR_H 1
24779 _ACEOF
24781 wchar_h="yes"
24783 else
24784 wchar_h="no"
24790 # determine wchar_t size
24791 if test "$wchar_h" = yes
24792 then
24793 { echo "$as_me:$LINENO: checking for wchar_t" >&5
24794 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6; }
24795 if test "${ac_cv_type_wchar_t+set}" = set; then
24796 echo $ECHO_N "(cached) $ECHO_C" >&6
24797 else
24798 cat >conftest.$ac_ext <<_ACEOF
24799 /* confdefs.h. */
24800 _ACEOF
24801 cat confdefs.h >>conftest.$ac_ext
24802 cat >>conftest.$ac_ext <<_ACEOF
24803 /* end confdefs.h. */
24804 #include <wchar.h>
24806 typedef wchar_t ac__type_new_;
24808 main ()
24810 if ((ac__type_new_ *) 0)
24811 return 0;
24812 if (sizeof (ac__type_new_))
24813 return 0;
24815 return 0;
24817 _ACEOF
24818 rm -f conftest.$ac_objext
24819 if { (ac_try="$ac_compile"
24820 case "(($ac_try" in
24821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24822 *) ac_try_echo=$ac_try;;
24823 esac
24824 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24825 (eval "$ac_compile") 2>conftest.er1
24826 ac_status=$?
24827 grep -v '^ *+' conftest.er1 >conftest.err
24828 rm -f conftest.er1
24829 cat conftest.err >&5
24830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24831 (exit $ac_status); } && {
24832 test -z "$ac_c_werror_flag" ||
24833 test ! -s conftest.err
24834 } && test -s conftest.$ac_objext; then
24835 ac_cv_type_wchar_t=yes
24836 else
24837 echo "$as_me: failed program was:" >&5
24838 sed 's/^/| /' conftest.$ac_ext >&5
24840 ac_cv_type_wchar_t=no
24843 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24845 { echo "$as_me:$LINENO: result: $ac_cv_type_wchar_t" >&5
24846 echo "${ECHO_T}$ac_cv_type_wchar_t" >&6; }
24848 # The cast to long int works around a bug in the HP C Compiler
24849 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24850 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24851 # This bug is HP SR number 8606223364.
24852 { echo "$as_me:$LINENO: checking size of wchar_t" >&5
24853 echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6; }
24854 if test "${ac_cv_sizeof_wchar_t+set}" = set; then
24855 echo $ECHO_N "(cached) $ECHO_C" >&6
24856 else
24857 if test "$cross_compiling" = yes; then
24858 # Depending upon the size, compute the lo and hi bounds.
24859 cat >conftest.$ac_ext <<_ACEOF
24860 /* confdefs.h. */
24861 _ACEOF
24862 cat confdefs.h >>conftest.$ac_ext
24863 cat >>conftest.$ac_ext <<_ACEOF
24864 /* end confdefs.h. */
24865 #include <wchar.h>
24867 typedef wchar_t ac__type_sizeof_;
24869 main ()
24871 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
24872 test_array [0] = 0
24875 return 0;
24877 _ACEOF
24878 rm -f conftest.$ac_objext
24879 if { (ac_try="$ac_compile"
24880 case "(($ac_try" in
24881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24882 *) ac_try_echo=$ac_try;;
24883 esac
24884 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24885 (eval "$ac_compile") 2>conftest.er1
24886 ac_status=$?
24887 grep -v '^ *+' conftest.er1 >conftest.err
24888 rm -f conftest.er1
24889 cat conftest.err >&5
24890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24891 (exit $ac_status); } && {
24892 test -z "$ac_c_werror_flag" ||
24893 test ! -s conftest.err
24894 } && test -s conftest.$ac_objext; then
24895 ac_lo=0 ac_mid=0
24896 while :; do
24897 cat >conftest.$ac_ext <<_ACEOF
24898 /* confdefs.h. */
24899 _ACEOF
24900 cat confdefs.h >>conftest.$ac_ext
24901 cat >>conftest.$ac_ext <<_ACEOF
24902 /* end confdefs.h. */
24903 #include <wchar.h>
24905 typedef wchar_t ac__type_sizeof_;
24907 main ()
24909 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
24910 test_array [0] = 0
24913 return 0;
24915 _ACEOF
24916 rm -f conftest.$ac_objext
24917 if { (ac_try="$ac_compile"
24918 case "(($ac_try" in
24919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24920 *) ac_try_echo=$ac_try;;
24921 esac
24922 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24923 (eval "$ac_compile") 2>conftest.er1
24924 ac_status=$?
24925 grep -v '^ *+' conftest.er1 >conftest.err
24926 rm -f conftest.er1
24927 cat conftest.err >&5
24928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24929 (exit $ac_status); } && {
24930 test -z "$ac_c_werror_flag" ||
24931 test ! -s conftest.err
24932 } && test -s conftest.$ac_objext; then
24933 ac_hi=$ac_mid; break
24934 else
24935 echo "$as_me: failed program was:" >&5
24936 sed 's/^/| /' conftest.$ac_ext >&5
24938 ac_lo=`expr $ac_mid + 1`
24939 if test $ac_lo -le $ac_mid; then
24940 ac_lo= ac_hi=
24941 break
24943 ac_mid=`expr 2 '*' $ac_mid + 1`
24946 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24947 done
24948 else
24949 echo "$as_me: failed program was:" >&5
24950 sed 's/^/| /' conftest.$ac_ext >&5
24952 cat >conftest.$ac_ext <<_ACEOF
24953 /* confdefs.h. */
24954 _ACEOF
24955 cat confdefs.h >>conftest.$ac_ext
24956 cat >>conftest.$ac_ext <<_ACEOF
24957 /* end confdefs.h. */
24958 #include <wchar.h>
24960 typedef wchar_t ac__type_sizeof_;
24962 main ()
24964 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
24965 test_array [0] = 0
24968 return 0;
24970 _ACEOF
24971 rm -f conftest.$ac_objext
24972 if { (ac_try="$ac_compile"
24973 case "(($ac_try" in
24974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24975 *) ac_try_echo=$ac_try;;
24976 esac
24977 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24978 (eval "$ac_compile") 2>conftest.er1
24979 ac_status=$?
24980 grep -v '^ *+' conftest.er1 >conftest.err
24981 rm -f conftest.er1
24982 cat conftest.err >&5
24983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24984 (exit $ac_status); } && {
24985 test -z "$ac_c_werror_flag" ||
24986 test ! -s conftest.err
24987 } && test -s conftest.$ac_objext; then
24988 ac_hi=-1 ac_mid=-1
24989 while :; do
24990 cat >conftest.$ac_ext <<_ACEOF
24991 /* confdefs.h. */
24992 _ACEOF
24993 cat confdefs.h >>conftest.$ac_ext
24994 cat >>conftest.$ac_ext <<_ACEOF
24995 /* end confdefs.h. */
24996 #include <wchar.h>
24998 typedef wchar_t ac__type_sizeof_;
25000 main ()
25002 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
25003 test_array [0] = 0
25006 return 0;
25008 _ACEOF
25009 rm -f conftest.$ac_objext
25010 if { (ac_try="$ac_compile"
25011 case "(($ac_try" in
25012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25013 *) ac_try_echo=$ac_try;;
25014 esac
25015 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25016 (eval "$ac_compile") 2>conftest.er1
25017 ac_status=$?
25018 grep -v '^ *+' conftest.er1 >conftest.err
25019 rm -f conftest.er1
25020 cat conftest.err >&5
25021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25022 (exit $ac_status); } && {
25023 test -z "$ac_c_werror_flag" ||
25024 test ! -s conftest.err
25025 } && test -s conftest.$ac_objext; then
25026 ac_lo=$ac_mid; break
25027 else
25028 echo "$as_me: failed program was:" >&5
25029 sed 's/^/| /' conftest.$ac_ext >&5
25031 ac_hi=`expr '(' $ac_mid ')' - 1`
25032 if test $ac_mid -le $ac_hi; then
25033 ac_lo= ac_hi=
25034 break
25036 ac_mid=`expr 2 '*' $ac_mid`
25039 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25040 done
25041 else
25042 echo "$as_me: failed program was:" >&5
25043 sed 's/^/| /' conftest.$ac_ext >&5
25045 ac_lo= ac_hi=
25048 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25051 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25052 # Binary search between lo and hi bounds.
25053 while test "x$ac_lo" != "x$ac_hi"; do
25054 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
25055 cat >conftest.$ac_ext <<_ACEOF
25056 /* confdefs.h. */
25057 _ACEOF
25058 cat confdefs.h >>conftest.$ac_ext
25059 cat >>conftest.$ac_ext <<_ACEOF
25060 /* end confdefs.h. */
25061 #include <wchar.h>
25063 typedef wchar_t ac__type_sizeof_;
25065 main ()
25067 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
25068 test_array [0] = 0
25071 return 0;
25073 _ACEOF
25074 rm -f conftest.$ac_objext
25075 if { (ac_try="$ac_compile"
25076 case "(($ac_try" in
25077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25078 *) ac_try_echo=$ac_try;;
25079 esac
25080 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25081 (eval "$ac_compile") 2>conftest.er1
25082 ac_status=$?
25083 grep -v '^ *+' conftest.er1 >conftest.err
25084 rm -f conftest.er1
25085 cat conftest.err >&5
25086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25087 (exit $ac_status); } && {
25088 test -z "$ac_c_werror_flag" ||
25089 test ! -s conftest.err
25090 } && test -s conftest.$ac_objext; then
25091 ac_hi=$ac_mid
25092 else
25093 echo "$as_me: failed program was:" >&5
25094 sed 's/^/| /' conftest.$ac_ext >&5
25096 ac_lo=`expr '(' $ac_mid ')' + 1`
25099 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25100 done
25101 case $ac_lo in
25102 ?*) ac_cv_sizeof_wchar_t=$ac_lo;;
25103 '') if test "$ac_cv_type_wchar_t" = yes; then
25104 { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t)
25105 See \`config.log' for more details." >&5
25106 echo "$as_me: error: cannot compute sizeof (wchar_t)
25107 See \`config.log' for more details." >&2;}
25108 { (exit 77); exit 77; }; }
25109 else
25110 ac_cv_sizeof_wchar_t=0
25111 fi ;;
25112 esac
25113 else
25114 cat >conftest.$ac_ext <<_ACEOF
25115 /* confdefs.h. */
25116 _ACEOF
25117 cat confdefs.h >>conftest.$ac_ext
25118 cat >>conftest.$ac_ext <<_ACEOF
25119 /* end confdefs.h. */
25120 #include <wchar.h>
25122 typedef wchar_t ac__type_sizeof_;
25123 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
25124 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
25125 #include <stdio.h>
25126 #include <stdlib.h>
25128 main ()
25131 FILE *f = fopen ("conftest.val", "w");
25132 if (! f)
25133 return 1;
25134 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
25136 long int i = longval ();
25137 if (i != ((long int) (sizeof (ac__type_sizeof_))))
25138 return 1;
25139 fprintf (f, "%ld\n", i);
25141 else
25143 unsigned long int i = ulongval ();
25144 if (i != ((long int) (sizeof (ac__type_sizeof_))))
25145 return 1;
25146 fprintf (f, "%lu\n", i);
25148 return ferror (f) || fclose (f) != 0;
25151 return 0;
25153 _ACEOF
25154 rm -f conftest$ac_exeext
25155 if { (ac_try="$ac_link"
25156 case "(($ac_try" in
25157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25158 *) ac_try_echo=$ac_try;;
25159 esac
25160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25161 (eval "$ac_link") 2>&5
25162 ac_status=$?
25163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25164 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25165 { (case "(($ac_try" in
25166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25167 *) ac_try_echo=$ac_try;;
25168 esac
25169 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25170 (eval "$ac_try") 2>&5
25171 ac_status=$?
25172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25173 (exit $ac_status); }; }; then
25174 ac_cv_sizeof_wchar_t=`cat conftest.val`
25175 else
25176 echo "$as_me: program exited with status $ac_status" >&5
25177 echo "$as_me: failed program was:" >&5
25178 sed 's/^/| /' conftest.$ac_ext >&5
25180 ( exit $ac_status )
25181 if test "$ac_cv_type_wchar_t" = yes; then
25182 { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t)
25183 See \`config.log' for more details." >&5
25184 echo "$as_me: error: cannot compute sizeof (wchar_t)
25185 See \`config.log' for more details." >&2;}
25186 { (exit 77); exit 77; }; }
25187 else
25188 ac_cv_sizeof_wchar_t=0
25191 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25193 rm -f conftest.val
25195 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_wchar_t" >&5
25196 echo "${ECHO_T}$ac_cv_sizeof_wchar_t" >&6; }
25200 cat >>confdefs.h <<_ACEOF
25201 #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
25202 _ACEOF
25207 { echo "$as_me:$LINENO: checking for UCS-4 tcl" >&5
25208 echo $ECHO_N "checking for UCS-4 tcl... $ECHO_C" >&6; }
25209 have_ucs4_tcl=no
25210 cat >conftest.$ac_ext <<_ACEOF
25211 /* confdefs.h. */
25212 _ACEOF
25213 cat confdefs.h >>conftest.$ac_ext
25214 cat >>conftest.$ac_ext <<_ACEOF
25215 /* end confdefs.h. */
25217 #include <tcl.h>
25218 #if TCL_UTF_MAX != 6
25219 # error "NOT UCS4_TCL"
25220 #endif
25222 main ()
25226 return 0;
25228 _ACEOF
25229 rm -f conftest.$ac_objext
25230 if { (ac_try="$ac_compile"
25231 case "(($ac_try" in
25232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25233 *) ac_try_echo=$ac_try;;
25234 esac
25235 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25236 (eval "$ac_compile") 2>conftest.er1
25237 ac_status=$?
25238 grep -v '^ *+' conftest.er1 >conftest.err
25239 rm -f conftest.er1
25240 cat conftest.err >&5
25241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25242 (exit $ac_status); } && {
25243 test -z "$ac_c_werror_flag" ||
25244 test ! -s conftest.err
25245 } && test -s conftest.$ac_objext; then
25248 cat >>confdefs.h <<\_ACEOF
25249 #define HAVE_UCS4_TCL 1
25250 _ACEOF
25252 have_ucs4_tcl=yes
25254 else
25255 echo "$as_me: failed program was:" >&5
25256 sed 's/^/| /' conftest.$ac_ext >&5
25261 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25262 { echo "$as_me:$LINENO: result: $have_ucs4_tcl" >&5
25263 echo "${ECHO_T}$have_ucs4_tcl" >&6; }
25265 # check whether wchar_t is signed or not
25266 if test "$wchar_h" = yes
25267 then
25268 # check whether wchar_t is signed or not
25269 { echo "$as_me:$LINENO: checking whether wchar_t is signed" >&5
25270 echo $ECHO_N "checking whether wchar_t is signed... $ECHO_C" >&6; }
25271 if test "${ac_cv_wchar_t_signed+set}" = set; then
25272 echo $ECHO_N "(cached) $ECHO_C" >&6
25273 else
25275 if test "$cross_compiling" = yes; then
25276 ac_cv_wchar_t_signed=yes
25277 else
25278 cat >conftest.$ac_ext <<_ACEOF
25279 /* confdefs.h. */
25280 _ACEOF
25281 cat confdefs.h >>conftest.$ac_ext
25282 cat >>conftest.$ac_ext <<_ACEOF
25283 /* end confdefs.h. */
25285 #include <wchar.h>
25286 int main()
25288 /* Success: exit code 0 */
25289 exit((((wchar_t) -1) < ((wchar_t) 0)) ? 0 : 1);
25292 _ACEOF
25293 rm -f conftest$ac_exeext
25294 if { (ac_try="$ac_link"
25295 case "(($ac_try" in
25296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25297 *) ac_try_echo=$ac_try;;
25298 esac
25299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25300 (eval "$ac_link") 2>&5
25301 ac_status=$?
25302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25303 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25304 { (case "(($ac_try" in
25305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25306 *) ac_try_echo=$ac_try;;
25307 esac
25308 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25309 (eval "$ac_try") 2>&5
25310 ac_status=$?
25311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25312 (exit $ac_status); }; }; then
25313 ac_cv_wchar_t_signed=yes
25314 else
25315 echo "$as_me: program exited with status $ac_status" >&5
25316 echo "$as_me: failed program was:" >&5
25317 sed 's/^/| /' conftest.$ac_ext >&5
25319 ( exit $ac_status )
25320 ac_cv_wchar_t_signed=no
25322 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25328 { echo "$as_me:$LINENO: result: $ac_cv_wchar_t_signed" >&5
25329 echo "${ECHO_T}$ac_cv_wchar_t_signed" >&6; }
25332 { echo "$as_me:$LINENO: checking what type to use for unicode" >&5
25333 echo $ECHO_N "checking what type to use for unicode... $ECHO_C" >&6; }
25334 # Check whether --enable-unicode was given.
25335 if test "${enable_unicode+set}" = set; then
25336 enableval=$enable_unicode;
25337 else
25338 enable_unicode=yes
25342 if test $enable_unicode = yes
25343 then
25344 # Without any arguments, Py_UNICODE defaults to two-byte mode
25345 case "$have_ucs4_tcl" in
25346 yes) enable_unicode="ucs4"
25348 *) enable_unicode="ucs2"
25350 esac
25355 case "$enable_unicode" in
25356 ucs2) unicode_size="2"
25357 cat >>confdefs.h <<\_ACEOF
25358 #define Py_UNICODE_SIZE 2
25359 _ACEOF
25362 ucs4) unicode_size="4"
25363 cat >>confdefs.h <<\_ACEOF
25364 #define Py_UNICODE_SIZE 4
25365 _ACEOF
25368 esac
25374 if test "$enable_unicode" = "no"
25375 then
25376 UNICODE_OBJS=""
25377 { echo "$as_me:$LINENO: result: not used" >&5
25378 echo "${ECHO_T}not used" >&6; }
25379 else
25380 UNICODE_OBJS="Objects/unicodeobject.o Objects/unicodectype.o"
25382 cat >>confdefs.h <<\_ACEOF
25383 #define Py_USING_UNICODE 1
25384 _ACEOF
25387 # wchar_t is only usable if it maps to an unsigned type
25388 if test "$unicode_size" = "$ac_cv_sizeof_wchar_t" \
25389 -a "$ac_cv_wchar_t_signed" = "no"
25390 then
25391 PY_UNICODE_TYPE="wchar_t"
25393 cat >>confdefs.h <<\_ACEOF
25394 #define HAVE_USABLE_WCHAR_T 1
25395 _ACEOF
25397 cat >>confdefs.h <<\_ACEOF
25398 #define PY_UNICODE_TYPE wchar_t
25399 _ACEOF
25401 elif test "$ac_cv_sizeof_short" = "$unicode_size"
25402 then
25403 PY_UNICODE_TYPE="unsigned short"
25404 cat >>confdefs.h <<\_ACEOF
25405 #define PY_UNICODE_TYPE unsigned short
25406 _ACEOF
25408 elif test "$ac_cv_sizeof_long" = "$unicode_size"
25409 then
25410 PY_UNICODE_TYPE="unsigned long"
25411 cat >>confdefs.h <<\_ACEOF
25412 #define PY_UNICODE_TYPE unsigned long
25413 _ACEOF
25415 else
25416 PY_UNICODE_TYPE="no type found"
25418 { echo "$as_me:$LINENO: result: $PY_UNICODE_TYPE" >&5
25419 echo "${ECHO_T}$PY_UNICODE_TYPE" >&6; }
25422 # check for endianness
25423 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
25424 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
25425 if test "${ac_cv_c_bigendian+set}" = set; then
25426 echo $ECHO_N "(cached) $ECHO_C" >&6
25427 else
25428 # See if sys/param.h defines the BYTE_ORDER macro.
25429 cat >conftest.$ac_ext <<_ACEOF
25430 /* confdefs.h. */
25431 _ACEOF
25432 cat confdefs.h >>conftest.$ac_ext
25433 cat >>conftest.$ac_ext <<_ACEOF
25434 /* end confdefs.h. */
25435 #include <sys/types.h>
25436 #include <sys/param.h>
25439 main ()
25441 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
25442 && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
25443 bogus endian macros
25444 #endif
25447 return 0;
25449 _ACEOF
25450 rm -f conftest.$ac_objext
25451 if { (ac_try="$ac_compile"
25452 case "(($ac_try" in
25453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25454 *) ac_try_echo=$ac_try;;
25455 esac
25456 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25457 (eval "$ac_compile") 2>conftest.er1
25458 ac_status=$?
25459 grep -v '^ *+' conftest.er1 >conftest.err
25460 rm -f conftest.er1
25461 cat conftest.err >&5
25462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25463 (exit $ac_status); } && {
25464 test -z "$ac_c_werror_flag" ||
25465 test ! -s conftest.err
25466 } && test -s conftest.$ac_objext; then
25467 # It does; now see whether it defined to BIG_ENDIAN or not.
25468 cat >conftest.$ac_ext <<_ACEOF
25469 /* confdefs.h. */
25470 _ACEOF
25471 cat confdefs.h >>conftest.$ac_ext
25472 cat >>conftest.$ac_ext <<_ACEOF
25473 /* end confdefs.h. */
25474 #include <sys/types.h>
25475 #include <sys/param.h>
25478 main ()
25480 #if BYTE_ORDER != BIG_ENDIAN
25481 not big endian
25482 #endif
25485 return 0;
25487 _ACEOF
25488 rm -f conftest.$ac_objext
25489 if { (ac_try="$ac_compile"
25490 case "(($ac_try" in
25491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25492 *) ac_try_echo=$ac_try;;
25493 esac
25494 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25495 (eval "$ac_compile") 2>conftest.er1
25496 ac_status=$?
25497 grep -v '^ *+' conftest.er1 >conftest.err
25498 rm -f conftest.er1
25499 cat conftest.err >&5
25500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25501 (exit $ac_status); } && {
25502 test -z "$ac_c_werror_flag" ||
25503 test ! -s conftest.err
25504 } && test -s conftest.$ac_objext; then
25505 ac_cv_c_bigendian=yes
25506 else
25507 echo "$as_me: failed program was:" >&5
25508 sed 's/^/| /' conftest.$ac_ext >&5
25510 ac_cv_c_bigendian=no
25513 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25514 else
25515 echo "$as_me: failed program was:" >&5
25516 sed 's/^/| /' conftest.$ac_ext >&5
25518 # It does not; compile a test program.
25519 if test "$cross_compiling" = yes; then
25520 # try to guess the endianness by grepping values into an object file
25521 ac_cv_c_bigendian=unknown
25522 cat >conftest.$ac_ext <<_ACEOF
25523 /* confdefs.h. */
25524 _ACEOF
25525 cat confdefs.h >>conftest.$ac_ext
25526 cat >>conftest.$ac_ext <<_ACEOF
25527 /* end confdefs.h. */
25528 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
25529 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
25530 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
25531 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
25532 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
25533 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
25535 main ()
25537 _ascii (); _ebcdic ();
25539 return 0;
25541 _ACEOF
25542 rm -f conftest.$ac_objext
25543 if { (ac_try="$ac_compile"
25544 case "(($ac_try" in
25545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25546 *) ac_try_echo=$ac_try;;
25547 esac
25548 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25549 (eval "$ac_compile") 2>conftest.er1
25550 ac_status=$?
25551 grep -v '^ *+' conftest.er1 >conftest.err
25552 rm -f conftest.er1
25553 cat conftest.err >&5
25554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25555 (exit $ac_status); } && {
25556 test -z "$ac_c_werror_flag" ||
25557 test ! -s conftest.err
25558 } && test -s conftest.$ac_objext; then
25559 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
25560 ac_cv_c_bigendian=yes
25562 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
25563 if test "$ac_cv_c_bigendian" = unknown; then
25564 ac_cv_c_bigendian=no
25565 else
25566 # finding both strings is unlikely to happen, but who knows?
25567 ac_cv_c_bigendian=unknown
25570 else
25571 echo "$as_me: failed program was:" >&5
25572 sed 's/^/| /' conftest.$ac_ext >&5
25577 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25578 else
25579 cat >conftest.$ac_ext <<_ACEOF
25580 /* confdefs.h. */
25581 _ACEOF
25582 cat confdefs.h >>conftest.$ac_ext
25583 cat >>conftest.$ac_ext <<_ACEOF
25584 /* end confdefs.h. */
25585 $ac_includes_default
25587 main ()
25590 /* Are we little or big endian? From Harbison&Steele. */
25591 union
25593 long int l;
25594 char c[sizeof (long int)];
25595 } u;
25596 u.l = 1;
25597 return u.c[sizeof (long int) - 1] == 1;
25600 return 0;
25602 _ACEOF
25603 rm -f conftest$ac_exeext
25604 if { (ac_try="$ac_link"
25605 case "(($ac_try" in
25606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25607 *) ac_try_echo=$ac_try;;
25608 esac
25609 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25610 (eval "$ac_link") 2>&5
25611 ac_status=$?
25612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25613 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25614 { (case "(($ac_try" in
25615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25616 *) ac_try_echo=$ac_try;;
25617 esac
25618 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25619 (eval "$ac_try") 2>&5
25620 ac_status=$?
25621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25622 (exit $ac_status); }; }; then
25623 ac_cv_c_bigendian=no
25624 else
25625 echo "$as_me: program exited with status $ac_status" >&5
25626 echo "$as_me: failed program was:" >&5
25627 sed 's/^/| /' conftest.$ac_ext >&5
25629 ( exit $ac_status )
25630 ac_cv_c_bigendian=yes
25632 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25638 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25640 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
25641 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
25642 case $ac_cv_c_bigendian in
25643 yes)
25645 cat >>confdefs.h <<\_ACEOF
25646 #define WORDS_BIGENDIAN 1
25647 _ACEOF
25652 { { echo "$as_me:$LINENO: error: unknown endianness
25653 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
25654 echo "$as_me: error: unknown endianness
25655 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
25656 { (exit 1); exit 1; }; } ;;
25657 esac
25660 # Check whether right shifting a negative integer extends the sign bit
25661 # or fills with zeros (like the Cray J90, according to Tim Peters).
25662 { echo "$as_me:$LINENO: checking whether right shift extends the sign bit" >&5
25663 echo $ECHO_N "checking whether right shift extends the sign bit... $ECHO_C" >&6; }
25664 if test "${ac_cv_rshift_extends_sign+set}" = set; then
25665 echo $ECHO_N "(cached) $ECHO_C" >&6
25666 else
25668 if test "$cross_compiling" = yes; then
25669 ac_cv_rshift_extends_sign=yes
25670 else
25671 cat >conftest.$ac_ext <<_ACEOF
25672 /* confdefs.h. */
25673 _ACEOF
25674 cat confdefs.h >>conftest.$ac_ext
25675 cat >>conftest.$ac_ext <<_ACEOF
25676 /* end confdefs.h. */
25678 int main()
25680 exit(((-1)>>3 == -1) ? 0 : 1);
25683 _ACEOF
25684 rm -f conftest$ac_exeext
25685 if { (ac_try="$ac_link"
25686 case "(($ac_try" in
25687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25688 *) ac_try_echo=$ac_try;;
25689 esac
25690 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25691 (eval "$ac_link") 2>&5
25692 ac_status=$?
25693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25694 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25695 { (case "(($ac_try" in
25696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25697 *) ac_try_echo=$ac_try;;
25698 esac
25699 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25700 (eval "$ac_try") 2>&5
25701 ac_status=$?
25702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25703 (exit $ac_status); }; }; then
25704 ac_cv_rshift_extends_sign=yes
25705 else
25706 echo "$as_me: program exited with status $ac_status" >&5
25707 echo "$as_me: failed program was:" >&5
25708 sed 's/^/| /' conftest.$ac_ext >&5
25710 ( exit $ac_status )
25711 ac_cv_rshift_extends_sign=no
25713 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25719 { echo "$as_me:$LINENO: result: $ac_cv_rshift_extends_sign" >&5
25720 echo "${ECHO_T}$ac_cv_rshift_extends_sign" >&6; }
25721 if test "$ac_cv_rshift_extends_sign" = no
25722 then
25724 cat >>confdefs.h <<\_ACEOF
25725 #define SIGNED_RIGHT_SHIFT_ZERO_FILLS 1
25726 _ACEOF
25730 # check for getc_unlocked and related locking functions
25731 { echo "$as_me:$LINENO: checking for getc_unlocked() and friends" >&5
25732 echo $ECHO_N "checking for getc_unlocked() and friends... $ECHO_C" >&6; }
25733 if test "${ac_cv_have_getc_unlocked+set}" = set; then
25734 echo $ECHO_N "(cached) $ECHO_C" >&6
25735 else
25737 cat >conftest.$ac_ext <<_ACEOF
25738 /* confdefs.h. */
25739 _ACEOF
25740 cat confdefs.h >>conftest.$ac_ext
25741 cat >>conftest.$ac_ext <<_ACEOF
25742 /* end confdefs.h. */
25743 #include <stdio.h>
25745 main ()
25748 FILE *f = fopen("/dev/null", "r");
25749 flockfile(f);
25750 getc_unlocked(f);
25751 funlockfile(f);
25754 return 0;
25756 _ACEOF
25757 rm -f conftest.$ac_objext conftest$ac_exeext
25758 if { (ac_try="$ac_link"
25759 case "(($ac_try" in
25760 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25761 *) ac_try_echo=$ac_try;;
25762 esac
25763 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25764 (eval "$ac_link") 2>conftest.er1
25765 ac_status=$?
25766 grep -v '^ *+' conftest.er1 >conftest.err
25767 rm -f conftest.er1
25768 cat conftest.err >&5
25769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25770 (exit $ac_status); } && {
25771 test -z "$ac_c_werror_flag" ||
25772 test ! -s conftest.err
25773 } && test -s conftest$ac_exeext &&
25774 $as_test_x conftest$ac_exeext; then
25775 ac_cv_have_getc_unlocked=yes
25776 else
25777 echo "$as_me: failed program was:" >&5
25778 sed 's/^/| /' conftest.$ac_ext >&5
25780 ac_cv_have_getc_unlocked=no
25783 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25784 conftest$ac_exeext conftest.$ac_ext
25787 { echo "$as_me:$LINENO: result: $ac_cv_have_getc_unlocked" >&5
25788 echo "${ECHO_T}$ac_cv_have_getc_unlocked" >&6; }
25789 if test "$ac_cv_have_getc_unlocked" = yes
25790 then
25792 cat >>confdefs.h <<\_ACEOF
25793 #define HAVE_GETC_UNLOCKED 1
25794 _ACEOF
25798 # check where readline lives
25799 # save the value of LIBS so we don't actually link Python with readline
25800 LIBS_no_readline=$LIBS
25802 # On some systems we need to link readline to a termcap compatible
25803 # library. NOTE: Keep the precedence of listed libraries synchronised
25804 # with setup.py.
25805 py_cv_lib_readline=no
25806 { echo "$as_me:$LINENO: checking how to link readline libs" >&5
25807 echo $ECHO_N "checking how to link readline libs... $ECHO_C" >&6; }
25808 for py_libtermcap in "" ncursesw ncurses curses termcap; do
25809 if test -z "$py_libtermcap"; then
25810 READLINE_LIBS="-lreadline"
25811 else
25812 READLINE_LIBS="-lreadline -l$py_libtermcap"
25814 LIBS="$READLINE_LIBS $LIBS_no_readline"
25815 cat >conftest.$ac_ext <<_ACEOF
25816 /* confdefs.h. */
25817 _ACEOF
25818 cat confdefs.h >>conftest.$ac_ext
25819 cat >>conftest.$ac_ext <<_ACEOF
25820 /* end confdefs.h. */
25822 /* Override any GCC internal prototype to avoid an error.
25823 Use char because int might match the return type of a GCC
25824 builtin and then its argument prototype would still apply. */
25825 #ifdef __cplusplus
25826 extern "C"
25827 #endif
25828 char readline ();
25830 main ()
25832 return readline ();
25834 return 0;
25836 _ACEOF
25837 rm -f conftest.$ac_objext conftest$ac_exeext
25838 if { (ac_try="$ac_link"
25839 case "(($ac_try" in
25840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25841 *) ac_try_echo=$ac_try;;
25842 esac
25843 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25844 (eval "$ac_link") 2>conftest.er1
25845 ac_status=$?
25846 grep -v '^ *+' conftest.er1 >conftest.err
25847 rm -f conftest.er1
25848 cat conftest.err >&5
25849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25850 (exit $ac_status); } && {
25851 test -z "$ac_c_werror_flag" ||
25852 test ! -s conftest.err
25853 } && test -s conftest$ac_exeext &&
25854 $as_test_x conftest$ac_exeext; then
25855 py_cv_lib_readline=yes
25856 else
25857 echo "$as_me: failed program was:" >&5
25858 sed 's/^/| /' conftest.$ac_ext >&5
25863 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25864 conftest$ac_exeext conftest.$ac_ext
25865 if test $py_cv_lib_readline = yes; then
25866 break
25868 done
25869 # Uncomment this line if you want to use READINE_LIBS in Makefile or scripts
25870 #AC_SUBST([READLINE_LIBS])
25871 if test $py_cv_lib_readline = no; then
25872 { echo "$as_me:$LINENO: result: none" >&5
25873 echo "${ECHO_T}none" >&6; }
25874 else
25875 { echo "$as_me:$LINENO: result: $READLINE_LIBS" >&5
25876 echo "${ECHO_T}$READLINE_LIBS" >&6; }
25878 cat >>confdefs.h <<\_ACEOF
25879 #define HAVE_LIBREADLINE 1
25880 _ACEOF
25884 # check for readline 2.1
25885 { echo "$as_me:$LINENO: checking for rl_callback_handler_install in -lreadline" >&5
25886 echo $ECHO_N "checking for rl_callback_handler_install in -lreadline... $ECHO_C" >&6; }
25887 if test "${ac_cv_lib_readline_rl_callback_handler_install+set}" = set; then
25888 echo $ECHO_N "(cached) $ECHO_C" >&6
25889 else
25890 ac_check_lib_save_LIBS=$LIBS
25891 LIBS="-lreadline $READLINE_LIBS $LIBS"
25892 cat >conftest.$ac_ext <<_ACEOF
25893 /* confdefs.h. */
25894 _ACEOF
25895 cat confdefs.h >>conftest.$ac_ext
25896 cat >>conftest.$ac_ext <<_ACEOF
25897 /* end confdefs.h. */
25899 /* Override any GCC internal prototype to avoid an error.
25900 Use char because int might match the return type of a GCC
25901 builtin and then its argument prototype would still apply. */
25902 #ifdef __cplusplus
25903 extern "C"
25904 #endif
25905 char rl_callback_handler_install ();
25907 main ()
25909 return rl_callback_handler_install ();
25911 return 0;
25913 _ACEOF
25914 rm -f conftest.$ac_objext conftest$ac_exeext
25915 if { (ac_try="$ac_link"
25916 case "(($ac_try" in
25917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25918 *) ac_try_echo=$ac_try;;
25919 esac
25920 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25921 (eval "$ac_link") 2>conftest.er1
25922 ac_status=$?
25923 grep -v '^ *+' conftest.er1 >conftest.err
25924 rm -f conftest.er1
25925 cat conftest.err >&5
25926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25927 (exit $ac_status); } && {
25928 test -z "$ac_c_werror_flag" ||
25929 test ! -s conftest.err
25930 } && test -s conftest$ac_exeext &&
25931 $as_test_x conftest$ac_exeext; then
25932 ac_cv_lib_readline_rl_callback_handler_install=yes
25933 else
25934 echo "$as_me: failed program was:" >&5
25935 sed 's/^/| /' conftest.$ac_ext >&5
25937 ac_cv_lib_readline_rl_callback_handler_install=no
25940 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25941 conftest$ac_exeext conftest.$ac_ext
25942 LIBS=$ac_check_lib_save_LIBS
25944 { echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_callback_handler_install" >&5
25945 echo "${ECHO_T}$ac_cv_lib_readline_rl_callback_handler_install" >&6; }
25946 if test $ac_cv_lib_readline_rl_callback_handler_install = yes; then
25948 cat >>confdefs.h <<\_ACEOF
25949 #define HAVE_RL_CALLBACK 1
25950 _ACEOF
25955 # check for readline 2.2
25956 cat >conftest.$ac_ext <<_ACEOF
25957 /* confdefs.h. */
25958 _ACEOF
25959 cat confdefs.h >>conftest.$ac_ext
25960 cat >>conftest.$ac_ext <<_ACEOF
25961 /* end confdefs.h. */
25962 #include <readline/readline.h>
25963 _ACEOF
25964 if { (ac_try="$ac_cpp conftest.$ac_ext"
25965 case "(($ac_try" in
25966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25967 *) ac_try_echo=$ac_try;;
25968 esac
25969 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25970 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25971 ac_status=$?
25972 grep -v '^ *+' conftest.er1 >conftest.err
25973 rm -f conftest.er1
25974 cat conftest.err >&5
25975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25976 (exit $ac_status); } >/dev/null && {
25977 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25978 test ! -s conftest.err
25979 }; then
25980 have_readline=yes
25981 else
25982 echo "$as_me: failed program was:" >&5
25983 sed 's/^/| /' conftest.$ac_ext >&5
25985 have_readline=no
25988 rm -f conftest.err conftest.$ac_ext
25989 if test $have_readline = yes
25990 then
25991 cat >conftest.$ac_ext <<_ACEOF
25992 /* confdefs.h. */
25993 _ACEOF
25994 cat confdefs.h >>conftest.$ac_ext
25995 cat >>conftest.$ac_ext <<_ACEOF
25996 /* end confdefs.h. */
25997 #include <readline/readline.h>
25999 _ACEOF
26000 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26001 $EGREP "extern int rl_completion_append_character;" >/dev/null 2>&1; then
26003 cat >>confdefs.h <<\_ACEOF
26004 #define HAVE_RL_COMPLETION_APPEND_CHARACTER 1
26005 _ACEOF
26008 rm -f conftest*
26010 cat >conftest.$ac_ext <<_ACEOF
26011 /* confdefs.h. */
26012 _ACEOF
26013 cat confdefs.h >>conftest.$ac_ext
26014 cat >>conftest.$ac_ext <<_ACEOF
26015 /* end confdefs.h. */
26016 #include <readline/readline.h>
26018 _ACEOF
26019 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26020 $EGREP "extern int rl_completion_suppress_append;" >/dev/null 2>&1; then
26022 cat >>confdefs.h <<\_ACEOF
26023 #define HAVE_RL_COMPLETION_SUPPRESS_APPEND 1
26024 _ACEOF
26027 rm -f conftest*
26031 # check for readline 4.0
26032 { echo "$as_me:$LINENO: checking for rl_pre_input_hook in -lreadline" >&5
26033 echo $ECHO_N "checking for rl_pre_input_hook in -lreadline... $ECHO_C" >&6; }
26034 if test "${ac_cv_lib_readline_rl_pre_input_hook+set}" = set; then
26035 echo $ECHO_N "(cached) $ECHO_C" >&6
26036 else
26037 ac_check_lib_save_LIBS=$LIBS
26038 LIBS="-lreadline $READLINE_LIBS $LIBS"
26039 cat >conftest.$ac_ext <<_ACEOF
26040 /* confdefs.h. */
26041 _ACEOF
26042 cat confdefs.h >>conftest.$ac_ext
26043 cat >>conftest.$ac_ext <<_ACEOF
26044 /* end confdefs.h. */
26046 /* Override any GCC internal prototype to avoid an error.
26047 Use char because int might match the return type of a GCC
26048 builtin and then its argument prototype would still apply. */
26049 #ifdef __cplusplus
26050 extern "C"
26051 #endif
26052 char rl_pre_input_hook ();
26054 main ()
26056 return rl_pre_input_hook ();
26058 return 0;
26060 _ACEOF
26061 rm -f conftest.$ac_objext conftest$ac_exeext
26062 if { (ac_try="$ac_link"
26063 case "(($ac_try" in
26064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26065 *) ac_try_echo=$ac_try;;
26066 esac
26067 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26068 (eval "$ac_link") 2>conftest.er1
26069 ac_status=$?
26070 grep -v '^ *+' conftest.er1 >conftest.err
26071 rm -f conftest.er1
26072 cat conftest.err >&5
26073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26074 (exit $ac_status); } && {
26075 test -z "$ac_c_werror_flag" ||
26076 test ! -s conftest.err
26077 } && test -s conftest$ac_exeext &&
26078 $as_test_x conftest$ac_exeext; then
26079 ac_cv_lib_readline_rl_pre_input_hook=yes
26080 else
26081 echo "$as_me: failed program was:" >&5
26082 sed 's/^/| /' conftest.$ac_ext >&5
26084 ac_cv_lib_readline_rl_pre_input_hook=no
26087 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26088 conftest$ac_exeext conftest.$ac_ext
26089 LIBS=$ac_check_lib_save_LIBS
26091 { echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_pre_input_hook" >&5
26092 echo "${ECHO_T}$ac_cv_lib_readline_rl_pre_input_hook" >&6; }
26093 if test $ac_cv_lib_readline_rl_pre_input_hook = yes; then
26095 cat >>confdefs.h <<\_ACEOF
26096 #define HAVE_RL_PRE_INPUT_HOOK 1
26097 _ACEOF
26102 # also in 4.0
26103 { echo "$as_me:$LINENO: checking for rl_completion_display_matches_hook in -lreadline" >&5
26104 echo $ECHO_N "checking for rl_completion_display_matches_hook in -lreadline... $ECHO_C" >&6; }
26105 if test "${ac_cv_lib_readline_rl_completion_display_matches_hook+set}" = set; then
26106 echo $ECHO_N "(cached) $ECHO_C" >&6
26107 else
26108 ac_check_lib_save_LIBS=$LIBS
26109 LIBS="-lreadline $READLINE_LIBS $LIBS"
26110 cat >conftest.$ac_ext <<_ACEOF
26111 /* confdefs.h. */
26112 _ACEOF
26113 cat confdefs.h >>conftest.$ac_ext
26114 cat >>conftest.$ac_ext <<_ACEOF
26115 /* end confdefs.h. */
26117 /* Override any GCC internal prototype to avoid an error.
26118 Use char because int might match the return type of a GCC
26119 builtin and then its argument prototype would still apply. */
26120 #ifdef __cplusplus
26121 extern "C"
26122 #endif
26123 char rl_completion_display_matches_hook ();
26125 main ()
26127 return rl_completion_display_matches_hook ();
26129 return 0;
26131 _ACEOF
26132 rm -f conftest.$ac_objext conftest$ac_exeext
26133 if { (ac_try="$ac_link"
26134 case "(($ac_try" in
26135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26136 *) ac_try_echo=$ac_try;;
26137 esac
26138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26139 (eval "$ac_link") 2>conftest.er1
26140 ac_status=$?
26141 grep -v '^ *+' conftest.er1 >conftest.err
26142 rm -f conftest.er1
26143 cat conftest.err >&5
26144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26145 (exit $ac_status); } && {
26146 test -z "$ac_c_werror_flag" ||
26147 test ! -s conftest.err
26148 } && test -s conftest$ac_exeext &&
26149 $as_test_x conftest$ac_exeext; then
26150 ac_cv_lib_readline_rl_completion_display_matches_hook=yes
26151 else
26152 echo "$as_me: failed program was:" >&5
26153 sed 's/^/| /' conftest.$ac_ext >&5
26155 ac_cv_lib_readline_rl_completion_display_matches_hook=no
26158 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26159 conftest$ac_exeext conftest.$ac_ext
26160 LIBS=$ac_check_lib_save_LIBS
26162 { echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_completion_display_matches_hook" >&5
26163 echo "${ECHO_T}$ac_cv_lib_readline_rl_completion_display_matches_hook" >&6; }
26164 if test $ac_cv_lib_readline_rl_completion_display_matches_hook = yes; then
26166 cat >>confdefs.h <<\_ACEOF
26167 #define HAVE_RL_COMPLETION_DISPLAY_MATCHES_HOOK 1
26168 _ACEOF
26173 # check for readline 4.2
26174 { echo "$as_me:$LINENO: checking for rl_completion_matches in -lreadline" >&5
26175 echo $ECHO_N "checking for rl_completion_matches in -lreadline... $ECHO_C" >&6; }
26176 if test "${ac_cv_lib_readline_rl_completion_matches+set}" = set; then
26177 echo $ECHO_N "(cached) $ECHO_C" >&6
26178 else
26179 ac_check_lib_save_LIBS=$LIBS
26180 LIBS="-lreadline $READLINE_LIBS $LIBS"
26181 cat >conftest.$ac_ext <<_ACEOF
26182 /* confdefs.h. */
26183 _ACEOF
26184 cat confdefs.h >>conftest.$ac_ext
26185 cat >>conftest.$ac_ext <<_ACEOF
26186 /* end confdefs.h. */
26188 /* Override any GCC internal prototype to avoid an error.
26189 Use char because int might match the return type of a GCC
26190 builtin and then its argument prototype would still apply. */
26191 #ifdef __cplusplus
26192 extern "C"
26193 #endif
26194 char rl_completion_matches ();
26196 main ()
26198 return rl_completion_matches ();
26200 return 0;
26202 _ACEOF
26203 rm -f conftest.$ac_objext conftest$ac_exeext
26204 if { (ac_try="$ac_link"
26205 case "(($ac_try" in
26206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26207 *) ac_try_echo=$ac_try;;
26208 esac
26209 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26210 (eval "$ac_link") 2>conftest.er1
26211 ac_status=$?
26212 grep -v '^ *+' conftest.er1 >conftest.err
26213 rm -f conftest.er1
26214 cat conftest.err >&5
26215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26216 (exit $ac_status); } && {
26217 test -z "$ac_c_werror_flag" ||
26218 test ! -s conftest.err
26219 } && test -s conftest$ac_exeext &&
26220 $as_test_x conftest$ac_exeext; then
26221 ac_cv_lib_readline_rl_completion_matches=yes
26222 else
26223 echo "$as_me: failed program was:" >&5
26224 sed 's/^/| /' conftest.$ac_ext >&5
26226 ac_cv_lib_readline_rl_completion_matches=no
26229 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26230 conftest$ac_exeext conftest.$ac_ext
26231 LIBS=$ac_check_lib_save_LIBS
26233 { echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_completion_matches" >&5
26234 echo "${ECHO_T}$ac_cv_lib_readline_rl_completion_matches" >&6; }
26235 if test $ac_cv_lib_readline_rl_completion_matches = yes; then
26237 cat >>confdefs.h <<\_ACEOF
26238 #define HAVE_RL_COMPLETION_MATCHES 1
26239 _ACEOF
26244 # also in readline 4.2
26245 cat >conftest.$ac_ext <<_ACEOF
26246 /* confdefs.h. */
26247 _ACEOF
26248 cat confdefs.h >>conftest.$ac_ext
26249 cat >>conftest.$ac_ext <<_ACEOF
26250 /* end confdefs.h. */
26251 #include <readline/readline.h>
26252 _ACEOF
26253 if { (ac_try="$ac_cpp conftest.$ac_ext"
26254 case "(($ac_try" in
26255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26256 *) ac_try_echo=$ac_try;;
26257 esac
26258 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26259 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26260 ac_status=$?
26261 grep -v '^ *+' conftest.er1 >conftest.err
26262 rm -f conftest.er1
26263 cat conftest.err >&5
26264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26265 (exit $ac_status); } >/dev/null && {
26266 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26267 test ! -s conftest.err
26268 }; then
26269 have_readline=yes
26270 else
26271 echo "$as_me: failed program was:" >&5
26272 sed 's/^/| /' conftest.$ac_ext >&5
26274 have_readline=no
26277 rm -f conftest.err conftest.$ac_ext
26278 if test $have_readline = yes
26279 then
26280 cat >conftest.$ac_ext <<_ACEOF
26281 /* confdefs.h. */
26282 _ACEOF
26283 cat confdefs.h >>conftest.$ac_ext
26284 cat >>conftest.$ac_ext <<_ACEOF
26285 /* end confdefs.h. */
26286 #include <readline/readline.h>
26288 _ACEOF
26289 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26290 $EGREP "extern int rl_catch_signals;" >/dev/null 2>&1; then
26292 cat >>confdefs.h <<\_ACEOF
26293 #define HAVE_RL_CATCH_SIGNAL 1
26294 _ACEOF
26297 rm -f conftest*
26301 # End of readline checks: restore LIBS
26302 LIBS=$LIBS_no_readline
26304 { echo "$as_me:$LINENO: checking for broken nice()" >&5
26305 echo $ECHO_N "checking for broken nice()... $ECHO_C" >&6; }
26306 if test "${ac_cv_broken_nice+set}" = set; then
26307 echo $ECHO_N "(cached) $ECHO_C" >&6
26308 else
26310 if test "$cross_compiling" = yes; then
26311 ac_cv_broken_nice=no
26312 else
26313 cat >conftest.$ac_ext <<_ACEOF
26314 /* confdefs.h. */
26315 _ACEOF
26316 cat confdefs.h >>conftest.$ac_ext
26317 cat >>conftest.$ac_ext <<_ACEOF
26318 /* end confdefs.h. */
26320 int main()
26322 int val1 = nice(1);
26323 if (val1 != -1 && val1 == nice(2))
26324 exit(0);
26325 exit(1);
26328 _ACEOF
26329 rm -f conftest$ac_exeext
26330 if { (ac_try="$ac_link"
26331 case "(($ac_try" in
26332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26333 *) ac_try_echo=$ac_try;;
26334 esac
26335 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26336 (eval "$ac_link") 2>&5
26337 ac_status=$?
26338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26339 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26340 { (case "(($ac_try" in
26341 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26342 *) ac_try_echo=$ac_try;;
26343 esac
26344 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26345 (eval "$ac_try") 2>&5
26346 ac_status=$?
26347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26348 (exit $ac_status); }; }; then
26349 ac_cv_broken_nice=yes
26350 else
26351 echo "$as_me: program exited with status $ac_status" >&5
26352 echo "$as_me: failed program was:" >&5
26353 sed 's/^/| /' conftest.$ac_ext >&5
26355 ( exit $ac_status )
26356 ac_cv_broken_nice=no
26358 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26364 { echo "$as_me:$LINENO: result: $ac_cv_broken_nice" >&5
26365 echo "${ECHO_T}$ac_cv_broken_nice" >&6; }
26366 if test "$ac_cv_broken_nice" = yes
26367 then
26369 cat >>confdefs.h <<\_ACEOF
26370 #define HAVE_BROKEN_NICE 1
26371 _ACEOF
26375 { echo "$as_me:$LINENO: checking for broken poll()" >&5
26376 echo $ECHO_N "checking for broken poll()... $ECHO_C" >&6; }
26377 if test "${ac_cv_broken_poll+set}" = set; then
26378 echo $ECHO_N "(cached) $ECHO_C" >&6
26379 else
26380 if test "$cross_compiling" = yes; then
26381 ac_cv_broken_poll=no
26382 else
26383 cat >conftest.$ac_ext <<_ACEOF
26384 /* confdefs.h. */
26385 _ACEOF
26386 cat confdefs.h >>conftest.$ac_ext
26387 cat >>conftest.$ac_ext <<_ACEOF
26388 /* end confdefs.h. */
26390 #include <poll.h>
26392 int main()
26394 struct pollfd poll_struct = { 42, POLLIN|POLLPRI|POLLOUT, 0 };
26395 int poll_test;
26397 close (42);
26399 poll_test = poll(&poll_struct, 1, 0);
26400 if (poll_test < 0)
26401 return 0;
26402 else if (poll_test == 0 && poll_struct.revents != POLLNVAL)
26403 return 0;
26404 else
26405 return 1;
26408 _ACEOF
26409 rm -f conftest$ac_exeext
26410 if { (ac_try="$ac_link"
26411 case "(($ac_try" in
26412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26413 *) ac_try_echo=$ac_try;;
26414 esac
26415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26416 (eval "$ac_link") 2>&5
26417 ac_status=$?
26418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26419 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26420 { (case "(($ac_try" in
26421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26422 *) ac_try_echo=$ac_try;;
26423 esac
26424 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26425 (eval "$ac_try") 2>&5
26426 ac_status=$?
26427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26428 (exit $ac_status); }; }; then
26429 ac_cv_broken_poll=yes
26430 else
26431 echo "$as_me: program exited with status $ac_status" >&5
26432 echo "$as_me: failed program was:" >&5
26433 sed 's/^/| /' conftest.$ac_ext >&5
26435 ( exit $ac_status )
26436 ac_cv_broken_poll=no
26438 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26444 { echo "$as_me:$LINENO: result: $ac_cv_broken_poll" >&5
26445 echo "${ECHO_T}$ac_cv_broken_poll" >&6; }
26446 if test "$ac_cv_broken_poll" = yes
26447 then
26449 cat >>confdefs.h <<\_ACEOF
26450 #define HAVE_BROKEN_POLL 1
26451 _ACEOF
26455 # Before we can test tzset, we need to check if struct tm has a tm_zone
26456 # (which is not required by ISO C or UNIX spec) and/or if we support
26457 # tzname[]
26458 { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
26459 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
26460 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
26461 echo $ECHO_N "(cached) $ECHO_C" >&6
26462 else
26463 cat >conftest.$ac_ext <<_ACEOF
26464 /* confdefs.h. */
26465 _ACEOF
26466 cat confdefs.h >>conftest.$ac_ext
26467 cat >>conftest.$ac_ext <<_ACEOF
26468 /* end confdefs.h. */
26469 #include <sys/types.h>
26470 #include <$ac_cv_struct_tm>
26474 main ()
26476 static struct tm ac_aggr;
26477 if (ac_aggr.tm_zone)
26478 return 0;
26480 return 0;
26482 _ACEOF
26483 rm -f conftest.$ac_objext
26484 if { (ac_try="$ac_compile"
26485 case "(($ac_try" in
26486 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26487 *) ac_try_echo=$ac_try;;
26488 esac
26489 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26490 (eval "$ac_compile") 2>conftest.er1
26491 ac_status=$?
26492 grep -v '^ *+' conftest.er1 >conftest.err
26493 rm -f conftest.er1
26494 cat conftest.err >&5
26495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26496 (exit $ac_status); } && {
26497 test -z "$ac_c_werror_flag" ||
26498 test ! -s conftest.err
26499 } && test -s conftest.$ac_objext; then
26500 ac_cv_member_struct_tm_tm_zone=yes
26501 else
26502 echo "$as_me: failed program was:" >&5
26503 sed 's/^/| /' conftest.$ac_ext >&5
26505 cat >conftest.$ac_ext <<_ACEOF
26506 /* confdefs.h. */
26507 _ACEOF
26508 cat confdefs.h >>conftest.$ac_ext
26509 cat >>conftest.$ac_ext <<_ACEOF
26510 /* end confdefs.h. */
26511 #include <sys/types.h>
26512 #include <$ac_cv_struct_tm>
26516 main ()
26518 static struct tm ac_aggr;
26519 if (sizeof ac_aggr.tm_zone)
26520 return 0;
26522 return 0;
26524 _ACEOF
26525 rm -f conftest.$ac_objext
26526 if { (ac_try="$ac_compile"
26527 case "(($ac_try" in
26528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26529 *) ac_try_echo=$ac_try;;
26530 esac
26531 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26532 (eval "$ac_compile") 2>conftest.er1
26533 ac_status=$?
26534 grep -v '^ *+' conftest.er1 >conftest.err
26535 rm -f conftest.er1
26536 cat conftest.err >&5
26537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26538 (exit $ac_status); } && {
26539 test -z "$ac_c_werror_flag" ||
26540 test ! -s conftest.err
26541 } && test -s conftest.$ac_objext; then
26542 ac_cv_member_struct_tm_tm_zone=yes
26543 else
26544 echo "$as_me: failed program was:" >&5
26545 sed 's/^/| /' conftest.$ac_ext >&5
26547 ac_cv_member_struct_tm_tm_zone=no
26550 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26553 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26555 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
26556 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
26557 if test $ac_cv_member_struct_tm_tm_zone = yes; then
26559 cat >>confdefs.h <<_ACEOF
26560 #define HAVE_STRUCT_TM_TM_ZONE 1
26561 _ACEOF
26566 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
26568 cat >>confdefs.h <<\_ACEOF
26569 #define HAVE_TM_ZONE 1
26570 _ACEOF
26572 else
26573 { echo "$as_me:$LINENO: checking whether tzname is declared" >&5
26574 echo $ECHO_N "checking whether tzname is declared... $ECHO_C" >&6; }
26575 if test "${ac_cv_have_decl_tzname+set}" = set; then
26576 echo $ECHO_N "(cached) $ECHO_C" >&6
26577 else
26578 cat >conftest.$ac_ext <<_ACEOF
26579 /* confdefs.h. */
26580 _ACEOF
26581 cat confdefs.h >>conftest.$ac_ext
26582 cat >>conftest.$ac_ext <<_ACEOF
26583 /* end confdefs.h. */
26584 #include <time.h>
26587 main ()
26589 #ifndef tzname
26590 (void) tzname;
26591 #endif
26594 return 0;
26596 _ACEOF
26597 rm -f conftest.$ac_objext
26598 if { (ac_try="$ac_compile"
26599 case "(($ac_try" in
26600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26601 *) ac_try_echo=$ac_try;;
26602 esac
26603 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26604 (eval "$ac_compile") 2>conftest.er1
26605 ac_status=$?
26606 grep -v '^ *+' conftest.er1 >conftest.err
26607 rm -f conftest.er1
26608 cat conftest.err >&5
26609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26610 (exit $ac_status); } && {
26611 test -z "$ac_c_werror_flag" ||
26612 test ! -s conftest.err
26613 } && test -s conftest.$ac_objext; then
26614 ac_cv_have_decl_tzname=yes
26615 else
26616 echo "$as_me: failed program was:" >&5
26617 sed 's/^/| /' conftest.$ac_ext >&5
26619 ac_cv_have_decl_tzname=no
26622 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26624 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
26625 echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; }
26626 if test $ac_cv_have_decl_tzname = yes; then
26628 cat >>confdefs.h <<_ACEOF
26629 #define HAVE_DECL_TZNAME 1
26630 _ACEOF
26633 else
26634 cat >>confdefs.h <<_ACEOF
26635 #define HAVE_DECL_TZNAME 0
26636 _ACEOF
26642 { echo "$as_me:$LINENO: checking for tzname" >&5
26643 echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
26644 if test "${ac_cv_var_tzname+set}" = set; then
26645 echo $ECHO_N "(cached) $ECHO_C" >&6
26646 else
26647 cat >conftest.$ac_ext <<_ACEOF
26648 /* confdefs.h. */
26649 _ACEOF
26650 cat confdefs.h >>conftest.$ac_ext
26651 cat >>conftest.$ac_ext <<_ACEOF
26652 /* end confdefs.h. */
26653 #include <time.h>
26654 #if !HAVE_DECL_TZNAME
26655 extern char *tzname[];
26656 #endif
26659 main ()
26661 return tzname[0][0];
26663 return 0;
26665 _ACEOF
26666 rm -f conftest.$ac_objext conftest$ac_exeext
26667 if { (ac_try="$ac_link"
26668 case "(($ac_try" in
26669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26670 *) ac_try_echo=$ac_try;;
26671 esac
26672 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26673 (eval "$ac_link") 2>conftest.er1
26674 ac_status=$?
26675 grep -v '^ *+' conftest.er1 >conftest.err
26676 rm -f conftest.er1
26677 cat conftest.err >&5
26678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26679 (exit $ac_status); } && {
26680 test -z "$ac_c_werror_flag" ||
26681 test ! -s conftest.err
26682 } && test -s conftest$ac_exeext &&
26683 $as_test_x conftest$ac_exeext; then
26684 ac_cv_var_tzname=yes
26685 else
26686 echo "$as_me: failed program was:" >&5
26687 sed 's/^/| /' conftest.$ac_ext >&5
26689 ac_cv_var_tzname=no
26692 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26693 conftest$ac_exeext conftest.$ac_ext
26695 { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
26696 echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
26697 if test $ac_cv_var_tzname = yes; then
26699 cat >>confdefs.h <<\_ACEOF
26700 #define HAVE_TZNAME 1
26701 _ACEOF
26707 # check tzset(3) exists and works like we expect it to
26708 { echo "$as_me:$LINENO: checking for working tzset()" >&5
26709 echo $ECHO_N "checking for working tzset()... $ECHO_C" >&6; }
26710 if test "${ac_cv_working_tzset+set}" = set; then
26711 echo $ECHO_N "(cached) $ECHO_C" >&6
26712 else
26714 if test "$cross_compiling" = yes; then
26715 ac_cv_working_tzset=no
26716 else
26717 cat >conftest.$ac_ext <<_ACEOF
26718 /* confdefs.h. */
26719 _ACEOF
26720 cat confdefs.h >>conftest.$ac_ext
26721 cat >>conftest.$ac_ext <<_ACEOF
26722 /* end confdefs.h. */
26724 #include <stdlib.h>
26725 #include <time.h>
26726 #include <string.h>
26728 #if HAVE_TZNAME
26729 extern char *tzname[];
26730 #endif
26732 int main()
26734 /* Note that we need to ensure that not only does tzset(3)
26735 do 'something' with localtime, but it works as documented
26736 in the library reference and as expected by the test suite.
26737 This includes making sure that tzname is set properly if
26738 tm->tm_zone does not exist since it is the alternative way
26739 of getting timezone info.
26741 Red Hat 6.2 doesn't understand the southern hemisphere
26742 after New Year's Day.
26745 time_t groundhogday = 1044144000; /* GMT-based */
26746 time_t midyear = groundhogday + (365 * 24 * 3600 / 2);
26748 putenv("TZ=UTC+0");
26749 tzset();
26750 if (localtime(&groundhogday)->tm_hour != 0)
26751 exit(1);
26752 #if HAVE_TZNAME
26753 /* For UTC, tzname[1] is sometimes "", sometimes " " */
26754 if (strcmp(tzname[0], "UTC") ||
26755 (tzname[1][0] != 0 && tzname[1][0] != ' '))
26756 exit(1);
26757 #endif
26759 putenv("TZ=EST+5EDT,M4.1.0,M10.5.0");
26760 tzset();
26761 if (localtime(&groundhogday)->tm_hour != 19)
26762 exit(1);
26763 #if HAVE_TZNAME
26764 if (strcmp(tzname[0], "EST") || strcmp(tzname[1], "EDT"))
26765 exit(1);
26766 #endif
26768 putenv("TZ=AEST-10AEDT-11,M10.5.0,M3.5.0");
26769 tzset();
26770 if (localtime(&groundhogday)->tm_hour != 11)
26771 exit(1);
26772 #if HAVE_TZNAME
26773 if (strcmp(tzname[0], "AEST") || strcmp(tzname[1], "AEDT"))
26774 exit(1);
26775 #endif
26777 #if HAVE_STRUCT_TM_TM_ZONE
26778 if (strcmp(localtime(&groundhogday)->tm_zone, "AEDT"))
26779 exit(1);
26780 if (strcmp(localtime(&midyear)->tm_zone, "AEST"))
26781 exit(1);
26782 #endif
26784 exit(0);
26787 _ACEOF
26788 rm -f conftest$ac_exeext
26789 if { (ac_try="$ac_link"
26790 case "(($ac_try" in
26791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26792 *) ac_try_echo=$ac_try;;
26793 esac
26794 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26795 (eval "$ac_link") 2>&5
26796 ac_status=$?
26797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26798 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26799 { (case "(($ac_try" in
26800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26801 *) ac_try_echo=$ac_try;;
26802 esac
26803 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26804 (eval "$ac_try") 2>&5
26805 ac_status=$?
26806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26807 (exit $ac_status); }; }; then
26808 ac_cv_working_tzset=yes
26809 else
26810 echo "$as_me: program exited with status $ac_status" >&5
26811 echo "$as_me: failed program was:" >&5
26812 sed 's/^/| /' conftest.$ac_ext >&5
26814 ( exit $ac_status )
26815 ac_cv_working_tzset=no
26817 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26823 { echo "$as_me:$LINENO: result: $ac_cv_working_tzset" >&5
26824 echo "${ECHO_T}$ac_cv_working_tzset" >&6; }
26825 if test "$ac_cv_working_tzset" = yes
26826 then
26828 cat >>confdefs.h <<\_ACEOF
26829 #define HAVE_WORKING_TZSET 1
26830 _ACEOF
26834 # Look for subsecond timestamps in struct stat
26835 { echo "$as_me:$LINENO: checking for tv_nsec in struct stat" >&5
26836 echo $ECHO_N "checking for tv_nsec in struct stat... $ECHO_C" >&6; }
26837 if test "${ac_cv_stat_tv_nsec+set}" = set; then
26838 echo $ECHO_N "(cached) $ECHO_C" >&6
26839 else
26840 cat >conftest.$ac_ext <<_ACEOF
26841 /* confdefs.h. */
26842 _ACEOF
26843 cat confdefs.h >>conftest.$ac_ext
26844 cat >>conftest.$ac_ext <<_ACEOF
26845 /* end confdefs.h. */
26846 #include <sys/stat.h>
26848 main ()
26851 struct stat st;
26852 st.st_mtim.tv_nsec = 1;
26855 return 0;
26857 _ACEOF
26858 rm -f conftest.$ac_objext
26859 if { (ac_try="$ac_compile"
26860 case "(($ac_try" in
26861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26862 *) ac_try_echo=$ac_try;;
26863 esac
26864 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26865 (eval "$ac_compile") 2>conftest.er1
26866 ac_status=$?
26867 grep -v '^ *+' conftest.er1 >conftest.err
26868 rm -f conftest.er1
26869 cat conftest.err >&5
26870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26871 (exit $ac_status); } && {
26872 test -z "$ac_c_werror_flag" ||
26873 test ! -s conftest.err
26874 } && test -s conftest.$ac_objext; then
26875 ac_cv_stat_tv_nsec=yes
26876 else
26877 echo "$as_me: failed program was:" >&5
26878 sed 's/^/| /' conftest.$ac_ext >&5
26880 ac_cv_stat_tv_nsec=no
26883 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26886 { echo "$as_me:$LINENO: result: $ac_cv_stat_tv_nsec" >&5
26887 echo "${ECHO_T}$ac_cv_stat_tv_nsec" >&6; }
26888 if test "$ac_cv_stat_tv_nsec" = yes
26889 then
26891 cat >>confdefs.h <<\_ACEOF
26892 #define HAVE_STAT_TV_NSEC 1
26893 _ACEOF
26897 # Look for BSD style subsecond timestamps in struct stat
26898 { echo "$as_me:$LINENO: checking for tv_nsec2 in struct stat" >&5
26899 echo $ECHO_N "checking for tv_nsec2 in struct stat... $ECHO_C" >&6; }
26900 if test "${ac_cv_stat_tv_nsec2+set}" = set; then
26901 echo $ECHO_N "(cached) $ECHO_C" >&6
26902 else
26903 cat >conftest.$ac_ext <<_ACEOF
26904 /* confdefs.h. */
26905 _ACEOF
26906 cat confdefs.h >>conftest.$ac_ext
26907 cat >>conftest.$ac_ext <<_ACEOF
26908 /* end confdefs.h. */
26909 #include <sys/stat.h>
26911 main ()
26914 struct stat st;
26915 st.st_mtimespec.tv_nsec = 1;
26918 return 0;
26920 _ACEOF
26921 rm -f conftest.$ac_objext
26922 if { (ac_try="$ac_compile"
26923 case "(($ac_try" in
26924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26925 *) ac_try_echo=$ac_try;;
26926 esac
26927 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26928 (eval "$ac_compile") 2>conftest.er1
26929 ac_status=$?
26930 grep -v '^ *+' conftest.er1 >conftest.err
26931 rm -f conftest.er1
26932 cat conftest.err >&5
26933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26934 (exit $ac_status); } && {
26935 test -z "$ac_c_werror_flag" ||
26936 test ! -s conftest.err
26937 } && test -s conftest.$ac_objext; then
26938 ac_cv_stat_tv_nsec2=yes
26939 else
26940 echo "$as_me: failed program was:" >&5
26941 sed 's/^/| /' conftest.$ac_ext >&5
26943 ac_cv_stat_tv_nsec2=no
26946 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26949 { echo "$as_me:$LINENO: result: $ac_cv_stat_tv_nsec2" >&5
26950 echo "${ECHO_T}$ac_cv_stat_tv_nsec2" >&6; }
26951 if test "$ac_cv_stat_tv_nsec2" = yes
26952 then
26954 cat >>confdefs.h <<\_ACEOF
26955 #define HAVE_STAT_TV_NSEC2 1
26956 _ACEOF
26960 # On HP/UX 11.0, mvwdelch is a block with a return statement
26961 { echo "$as_me:$LINENO: checking whether mvwdelch is an expression" >&5
26962 echo $ECHO_N "checking whether mvwdelch is an expression... $ECHO_C" >&6; }
26963 if test "${ac_cv_mvwdelch_is_expression+set}" = set; then
26964 echo $ECHO_N "(cached) $ECHO_C" >&6
26965 else
26966 cat >conftest.$ac_ext <<_ACEOF
26967 /* confdefs.h. */
26968 _ACEOF
26969 cat confdefs.h >>conftest.$ac_ext
26970 cat >>conftest.$ac_ext <<_ACEOF
26971 /* end confdefs.h. */
26972 #include <curses.h>
26974 main ()
26977 int rtn;
26978 rtn = mvwdelch(0,0,0);
26981 return 0;
26983 _ACEOF
26984 rm -f conftest.$ac_objext
26985 if { (ac_try="$ac_compile"
26986 case "(($ac_try" in
26987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26988 *) ac_try_echo=$ac_try;;
26989 esac
26990 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26991 (eval "$ac_compile") 2>conftest.er1
26992 ac_status=$?
26993 grep -v '^ *+' conftest.er1 >conftest.err
26994 rm -f conftest.er1
26995 cat conftest.err >&5
26996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26997 (exit $ac_status); } && {
26998 test -z "$ac_c_werror_flag" ||
26999 test ! -s conftest.err
27000 } && test -s conftest.$ac_objext; then
27001 ac_cv_mvwdelch_is_expression=yes
27002 else
27003 echo "$as_me: failed program was:" >&5
27004 sed 's/^/| /' conftest.$ac_ext >&5
27006 ac_cv_mvwdelch_is_expression=no
27009 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27012 { echo "$as_me:$LINENO: result: $ac_cv_mvwdelch_is_expression" >&5
27013 echo "${ECHO_T}$ac_cv_mvwdelch_is_expression" >&6; }
27015 if test "$ac_cv_mvwdelch_is_expression" = yes
27016 then
27018 cat >>confdefs.h <<\_ACEOF
27019 #define MVWDELCH_IS_EXPRESSION 1
27020 _ACEOF
27024 { echo "$as_me:$LINENO: checking whether WINDOW has _flags" >&5
27025 echo $ECHO_N "checking whether WINDOW has _flags... $ECHO_C" >&6; }
27026 if test "${ac_cv_window_has_flags+set}" = set; then
27027 echo $ECHO_N "(cached) $ECHO_C" >&6
27028 else
27029 cat >conftest.$ac_ext <<_ACEOF
27030 /* confdefs.h. */
27031 _ACEOF
27032 cat confdefs.h >>conftest.$ac_ext
27033 cat >>conftest.$ac_ext <<_ACEOF
27034 /* end confdefs.h. */
27035 #include <curses.h>
27037 main ()
27040 WINDOW *w;
27041 w->_flags = 0;
27044 return 0;
27046 _ACEOF
27047 rm -f conftest.$ac_objext
27048 if { (ac_try="$ac_compile"
27049 case "(($ac_try" in
27050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27051 *) ac_try_echo=$ac_try;;
27052 esac
27053 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27054 (eval "$ac_compile") 2>conftest.er1
27055 ac_status=$?
27056 grep -v '^ *+' conftest.er1 >conftest.err
27057 rm -f conftest.er1
27058 cat conftest.err >&5
27059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27060 (exit $ac_status); } && {
27061 test -z "$ac_c_werror_flag" ||
27062 test ! -s conftest.err
27063 } && test -s conftest.$ac_objext; then
27064 ac_cv_window_has_flags=yes
27065 else
27066 echo "$as_me: failed program was:" >&5
27067 sed 's/^/| /' conftest.$ac_ext >&5
27069 ac_cv_window_has_flags=no
27072 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27075 { echo "$as_me:$LINENO: result: $ac_cv_window_has_flags" >&5
27076 echo "${ECHO_T}$ac_cv_window_has_flags" >&6; }
27079 if test "$ac_cv_window_has_flags" = yes
27080 then
27082 cat >>confdefs.h <<\_ACEOF
27083 #define WINDOW_HAS_FLAGS 1
27084 _ACEOF
27088 { echo "$as_me:$LINENO: checking for is_term_resized" >&5
27089 echo $ECHO_N "checking for is_term_resized... $ECHO_C" >&6; }
27090 cat >conftest.$ac_ext <<_ACEOF
27091 /* confdefs.h. */
27092 _ACEOF
27093 cat confdefs.h >>conftest.$ac_ext
27094 cat >>conftest.$ac_ext <<_ACEOF
27095 /* end confdefs.h. */
27096 #include <curses.h>
27098 main ()
27100 void *x=is_term_resized
27102 return 0;
27104 _ACEOF
27105 rm -f conftest.$ac_objext
27106 if { (ac_try="$ac_compile"
27107 case "(($ac_try" in
27108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27109 *) ac_try_echo=$ac_try;;
27110 esac
27111 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27112 (eval "$ac_compile") 2>conftest.er1
27113 ac_status=$?
27114 grep -v '^ *+' conftest.er1 >conftest.err
27115 rm -f conftest.er1
27116 cat conftest.err >&5
27117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27118 (exit $ac_status); } && {
27119 test -z "$ac_c_werror_flag" ||
27120 test ! -s conftest.err
27121 } && test -s conftest.$ac_objext; then
27123 cat >>confdefs.h <<\_ACEOF
27124 #define HAVE_CURSES_IS_TERM_RESIZED 1
27125 _ACEOF
27127 { echo "$as_me:$LINENO: result: yes" >&5
27128 echo "${ECHO_T}yes" >&6; }
27129 else
27130 echo "$as_me: failed program was:" >&5
27131 sed 's/^/| /' conftest.$ac_ext >&5
27133 { echo "$as_me:$LINENO: result: no" >&5
27134 echo "${ECHO_T}no" >&6; }
27138 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27140 { echo "$as_me:$LINENO: checking for resize_term" >&5
27141 echo $ECHO_N "checking for resize_term... $ECHO_C" >&6; }
27142 cat >conftest.$ac_ext <<_ACEOF
27143 /* confdefs.h. */
27144 _ACEOF
27145 cat confdefs.h >>conftest.$ac_ext
27146 cat >>conftest.$ac_ext <<_ACEOF
27147 /* end confdefs.h. */
27148 #include <curses.h>
27150 main ()
27152 void *x=resize_term
27154 return 0;
27156 _ACEOF
27157 rm -f conftest.$ac_objext
27158 if { (ac_try="$ac_compile"
27159 case "(($ac_try" in
27160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27161 *) ac_try_echo=$ac_try;;
27162 esac
27163 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27164 (eval "$ac_compile") 2>conftest.er1
27165 ac_status=$?
27166 grep -v '^ *+' conftest.er1 >conftest.err
27167 rm -f conftest.er1
27168 cat conftest.err >&5
27169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27170 (exit $ac_status); } && {
27171 test -z "$ac_c_werror_flag" ||
27172 test ! -s conftest.err
27173 } && test -s conftest.$ac_objext; then
27175 cat >>confdefs.h <<\_ACEOF
27176 #define HAVE_CURSES_RESIZE_TERM 1
27177 _ACEOF
27179 { echo "$as_me:$LINENO: result: yes" >&5
27180 echo "${ECHO_T}yes" >&6; }
27181 else
27182 echo "$as_me: failed program was:" >&5
27183 sed 's/^/| /' conftest.$ac_ext >&5
27185 { echo "$as_me:$LINENO: result: no" >&5
27186 echo "${ECHO_T}no" >&6; }
27190 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27192 { echo "$as_me:$LINENO: checking for resizeterm" >&5
27193 echo $ECHO_N "checking for resizeterm... $ECHO_C" >&6; }
27194 cat >conftest.$ac_ext <<_ACEOF
27195 /* confdefs.h. */
27196 _ACEOF
27197 cat confdefs.h >>conftest.$ac_ext
27198 cat >>conftest.$ac_ext <<_ACEOF
27199 /* end confdefs.h. */
27200 #include <curses.h>
27202 main ()
27204 void *x=resizeterm
27206 return 0;
27208 _ACEOF
27209 rm -f conftest.$ac_objext
27210 if { (ac_try="$ac_compile"
27211 case "(($ac_try" in
27212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27213 *) ac_try_echo=$ac_try;;
27214 esac
27215 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27216 (eval "$ac_compile") 2>conftest.er1
27217 ac_status=$?
27218 grep -v '^ *+' conftest.er1 >conftest.err
27219 rm -f conftest.er1
27220 cat conftest.err >&5
27221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27222 (exit $ac_status); } && {
27223 test -z "$ac_c_werror_flag" ||
27224 test ! -s conftest.err
27225 } && test -s conftest.$ac_objext; then
27227 cat >>confdefs.h <<\_ACEOF
27228 #define HAVE_CURSES_RESIZETERM 1
27229 _ACEOF
27231 { echo "$as_me:$LINENO: result: yes" >&5
27232 echo "${ECHO_T}yes" >&6; }
27233 else
27234 echo "$as_me: failed program was:" >&5
27235 sed 's/^/| /' conftest.$ac_ext >&5
27237 { echo "$as_me:$LINENO: result: no" >&5
27238 echo "${ECHO_T}no" >&6; }
27242 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27244 { echo "$as_me:$LINENO: checking for /dev/ptmx" >&5
27245 echo $ECHO_N "checking for /dev/ptmx... $ECHO_C" >&6; }
27247 if test -r /dev/ptmx
27248 then
27249 { echo "$as_me:$LINENO: result: yes" >&5
27250 echo "${ECHO_T}yes" >&6; }
27252 cat >>confdefs.h <<\_ACEOF
27253 #define HAVE_DEV_PTMX 1
27254 _ACEOF
27256 else
27257 { echo "$as_me:$LINENO: result: no" >&5
27258 echo "${ECHO_T}no" >&6; }
27261 { echo "$as_me:$LINENO: checking for /dev/ptc" >&5
27262 echo $ECHO_N "checking for /dev/ptc... $ECHO_C" >&6; }
27264 if test -r /dev/ptc
27265 then
27266 { echo "$as_me:$LINENO: result: yes" >&5
27267 echo "${ECHO_T}yes" >&6; }
27269 cat >>confdefs.h <<\_ACEOF
27270 #define HAVE_DEV_PTC 1
27271 _ACEOF
27273 else
27274 { echo "$as_me:$LINENO: result: no" >&5
27275 echo "${ECHO_T}no" >&6; }
27278 if test "$have_long_long" = yes
27279 then
27280 { echo "$as_me:$LINENO: checking for %lld and %llu printf() format support" >&5
27281 echo $ECHO_N "checking for %lld and %llu printf() format support... $ECHO_C" >&6; }
27282 if test "${ac_cv_have_long_long_format+set}" = set; then
27283 echo $ECHO_N "(cached) $ECHO_C" >&6
27284 else
27285 if test "$cross_compiling" = yes; then
27286 ac_cv_have_long_long_format=no
27287 else
27288 cat >conftest.$ac_ext <<_ACEOF
27289 /* confdefs.h. */
27290 _ACEOF
27291 cat confdefs.h >>conftest.$ac_ext
27292 cat >>conftest.$ac_ext <<_ACEOF
27293 /* end confdefs.h. */
27295 #include <stdio.h>
27296 #include <stddef.h>
27297 #include <string.h>
27299 #ifdef HAVE_SYS_TYPES_H
27300 #include <sys/types.h>
27301 #endif
27303 int main()
27305 char buffer[256];
27307 if (sprintf(buffer, "%lld", (long long)123) < 0)
27308 return 1;
27309 if (strcmp(buffer, "123"))
27310 return 1;
27312 if (sprintf(buffer, "%lld", (long long)-123) < 0)
27313 return 1;
27314 if (strcmp(buffer, "-123"))
27315 return 1;
27317 if (sprintf(buffer, "%llu", (unsigned long long)123) < 0)
27318 return 1;
27319 if (strcmp(buffer, "123"))
27320 return 1;
27322 return 0;
27325 _ACEOF
27326 rm -f conftest$ac_exeext
27327 if { (ac_try="$ac_link"
27328 case "(($ac_try" in
27329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27330 *) ac_try_echo=$ac_try;;
27331 esac
27332 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27333 (eval "$ac_link") 2>&5
27334 ac_status=$?
27335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27336 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27337 { (case "(($ac_try" in
27338 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27339 *) ac_try_echo=$ac_try;;
27340 esac
27341 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27342 (eval "$ac_try") 2>&5
27343 ac_status=$?
27344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27345 (exit $ac_status); }; }; then
27346 ac_cv_have_long_long_format=yes
27347 else
27348 echo "$as_me: program exited with status $ac_status" >&5
27349 echo "$as_me: failed program was:" >&5
27350 sed 's/^/| /' conftest.$ac_ext >&5
27352 ( exit $ac_status )
27353 ac_cv_have_long_long_format=no
27355 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27362 { echo "$as_me:$LINENO: result: $ac_cv_have_long_long_format" >&5
27363 echo "${ECHO_T}$ac_cv_have_long_long_format" >&6; }
27366 if test $ac_cv_have_long_long_format = yes
27367 then
27369 cat >>confdefs.h <<\_ACEOF
27370 #define PY_FORMAT_LONG_LONG "ll"
27371 _ACEOF
27375 if test $ac_sys_system = Darwin
27376 then
27377 LIBS="$LIBS -framework CoreFoundation"
27381 { echo "$as_me:$LINENO: checking for %zd printf() format support" >&5
27382 echo $ECHO_N "checking for %zd printf() format support... $ECHO_C" >&6; }
27383 if test "${ac_cv_have_size_t_format+set}" = set; then
27384 echo $ECHO_N "(cached) $ECHO_C" >&6
27385 else
27386 if test "$cross_compiling" = yes; then
27387 ac_cv_have_size_t_format="cross -- assuming yes"
27389 else
27390 cat >conftest.$ac_ext <<_ACEOF
27391 /* confdefs.h. */
27392 _ACEOF
27393 cat confdefs.h >>conftest.$ac_ext
27394 cat >>conftest.$ac_ext <<_ACEOF
27395 /* end confdefs.h. */
27397 #include <stdio.h>
27398 #include <stddef.h>
27399 #include <string.h>
27401 #ifdef HAVE_SYS_TYPES_H
27402 #include <sys/types.h>
27403 #endif
27405 #ifdef HAVE_SSIZE_T
27406 typedef ssize_t Py_ssize_t;
27407 #elif SIZEOF_VOID_P == SIZEOF_LONG
27408 typedef long Py_ssize_t;
27409 #else
27410 typedef int Py_ssize_t;
27411 #endif
27413 int main()
27415 char buffer[256];
27417 if(sprintf(buffer, "%zd", (size_t)123) < 0)
27418 return 1;
27420 if (strcmp(buffer, "123"))
27421 return 1;
27423 if (sprintf(buffer, "%zd", (Py_ssize_t)-123) < 0)
27424 return 1;
27426 if (strcmp(buffer, "-123"))
27427 return 1;
27429 return 0;
27432 _ACEOF
27433 rm -f conftest$ac_exeext
27434 if { (ac_try="$ac_link"
27435 case "(($ac_try" in
27436 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27437 *) ac_try_echo=$ac_try;;
27438 esac
27439 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27440 (eval "$ac_link") 2>&5
27441 ac_status=$?
27442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27443 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27444 { (case "(($ac_try" in
27445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27446 *) ac_try_echo=$ac_try;;
27447 esac
27448 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27449 (eval "$ac_try") 2>&5
27450 ac_status=$?
27451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27452 (exit $ac_status); }; }; then
27453 ac_cv_have_size_t_format=yes
27454 else
27455 echo "$as_me: program exited with status $ac_status" >&5
27456 echo "$as_me: failed program was:" >&5
27457 sed 's/^/| /' conftest.$ac_ext >&5
27459 ( exit $ac_status )
27460 ac_cv_have_size_t_format=no
27462 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27467 { echo "$as_me:$LINENO: result: $ac_cv_have_size_t_format" >&5
27468 echo "${ECHO_T}$ac_cv_have_size_t_format" >&6; }
27469 if test "$ac_cv_have_size_t_format" != no ; then
27471 cat >>confdefs.h <<\_ACEOF
27472 #define PY_FORMAT_SIZE_T "z"
27473 _ACEOF
27477 { echo "$as_me:$LINENO: checking for socklen_t" >&5
27478 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; }
27479 if test "${ac_cv_type_socklen_t+set}" = set; then
27480 echo $ECHO_N "(cached) $ECHO_C" >&6
27481 else
27482 cat >conftest.$ac_ext <<_ACEOF
27483 /* confdefs.h. */
27484 _ACEOF
27485 cat confdefs.h >>conftest.$ac_ext
27486 cat >>conftest.$ac_ext <<_ACEOF
27487 /* end confdefs.h. */
27489 #ifdef HAVE_SYS_TYPES_H
27490 #include <sys/types.h>
27491 #endif
27492 #ifdef HAVE_SYS_SOCKET_H
27493 #include <sys/socket.h>
27494 #endif
27497 typedef socklen_t ac__type_new_;
27499 main ()
27501 if ((ac__type_new_ *) 0)
27502 return 0;
27503 if (sizeof (ac__type_new_))
27504 return 0;
27506 return 0;
27508 _ACEOF
27509 rm -f conftest.$ac_objext
27510 if { (ac_try="$ac_compile"
27511 case "(($ac_try" in
27512 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27513 *) ac_try_echo=$ac_try;;
27514 esac
27515 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27516 (eval "$ac_compile") 2>conftest.er1
27517 ac_status=$?
27518 grep -v '^ *+' conftest.er1 >conftest.err
27519 rm -f conftest.er1
27520 cat conftest.err >&5
27521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27522 (exit $ac_status); } && {
27523 test -z "$ac_c_werror_flag" ||
27524 test ! -s conftest.err
27525 } && test -s conftest.$ac_objext; then
27526 ac_cv_type_socklen_t=yes
27527 else
27528 echo "$as_me: failed program was:" >&5
27529 sed 's/^/| /' conftest.$ac_ext >&5
27531 ac_cv_type_socklen_t=no
27534 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27536 { echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
27537 echo "${ECHO_T}$ac_cv_type_socklen_t" >&6; }
27538 if test $ac_cv_type_socklen_t = yes; then
27540 else
27542 cat >>confdefs.h <<\_ACEOF
27543 #define socklen_t int
27544 _ACEOF
27551 for h in `(cd $srcdir;echo Python/thread_*.h)`
27553 THREADHEADERS="$THREADHEADERS \$(srcdir)/$h"
27554 done
27557 SRCDIRS="Parser Grammar Objects Python Modules Mac"
27558 { echo "$as_me:$LINENO: checking for build directories" >&5
27559 echo $ECHO_N "checking for build directories... $ECHO_C" >&6; }
27560 for dir in $SRCDIRS; do
27561 if test ! -d $dir; then
27562 mkdir $dir
27564 done
27565 { echo "$as_me:$LINENO: result: done" >&5
27566 echo "${ECHO_T}done" >&6; }
27568 # generate output files
27569 ac_config_files="$ac_config_files Makefile.pre Modules/Setup.config Misc/python.pc"
27571 cat >confcache <<\_ACEOF
27572 # This file is a shell script that caches the results of configure
27573 # tests run on this system so they can be shared between configure
27574 # scripts and configure runs, see configure's option --config-cache.
27575 # It is not useful on other systems. If it contains results you don't
27576 # want to keep, you may remove or edit it.
27578 # config.status only pays attention to the cache file if you give it
27579 # the --recheck option to rerun configure.
27581 # `ac_cv_env_foo' variables (set or unset) will be overridden when
27582 # loading this file, other *unset* `ac_cv_foo' will be assigned the
27583 # following values.
27585 _ACEOF
27587 # The following way of writing the cache mishandles newlines in values,
27588 # but we know of no workaround that is simple, portable, and efficient.
27589 # So, we kill variables containing newlines.
27590 # Ultrix sh set writes to stderr and can't be redirected directly,
27591 # and sets the high bit in the cache file unless we assign to the vars.
27593 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
27594 eval ac_val=\$$ac_var
27595 case $ac_val in #(
27596 *${as_nl}*)
27597 case $ac_var in #(
27598 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
27599 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
27600 esac
27601 case $ac_var in #(
27602 _ | IFS | as_nl) ;; #(
27603 *) $as_unset $ac_var ;;
27604 esac ;;
27605 esac
27606 done
27608 (set) 2>&1 |
27609 case $as_nl`(ac_space=' '; set) 2>&1` in #(
27610 *${as_nl}ac_space=\ *)
27611 # `set' does not quote correctly, so add quotes (double-quote
27612 # substitution turns \\\\ into \\, and sed turns \\ into \).
27613 sed -n \
27614 "s/'/'\\\\''/g;
27615 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
27616 ;; #(
27618 # `set' quotes correctly as required by POSIX, so do not add quotes.
27619 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
27621 esac |
27622 sort
27624 sed '
27625 /^ac_cv_env_/b end
27626 t clear
27627 :clear
27628 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
27629 t end
27630 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
27631 :end' >>confcache
27632 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
27633 if test -w "$cache_file"; then
27634 test "x$cache_file" != "x/dev/null" &&
27635 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
27636 echo "$as_me: updating cache $cache_file" >&6;}
27637 cat confcache >$cache_file
27638 else
27639 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
27640 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
27643 rm -f confcache
27645 test "x$prefix" = xNONE && prefix=$ac_default_prefix
27646 # Let make expand exec_prefix.
27647 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
27649 DEFS=-DHAVE_CONFIG_H
27651 ac_libobjs=
27652 ac_ltlibobjs=
27653 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
27654 # 1. Remove the extension, and $U if already installed.
27655 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
27656 ac_i=`echo "$ac_i" | sed "$ac_script"`
27657 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
27658 # will be set to the directory where LIBOBJS objects are built.
27659 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
27660 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
27661 done
27662 LIBOBJS=$ac_libobjs
27664 LTLIBOBJS=$ac_ltlibobjs
27668 : ${CONFIG_STATUS=./config.status}
27669 ac_clean_files_save=$ac_clean_files
27670 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
27671 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
27672 echo "$as_me: creating $CONFIG_STATUS" >&6;}
27673 cat >$CONFIG_STATUS <<_ACEOF
27674 #! $SHELL
27675 # Generated by $as_me.
27676 # Run this file to recreate the current configuration.
27677 # Compiler output produced by configure, useful for debugging
27678 # configure, is in config.log if it exists.
27680 debug=false
27681 ac_cs_recheck=false
27682 ac_cs_silent=false
27683 SHELL=\${CONFIG_SHELL-$SHELL}
27684 _ACEOF
27686 cat >>$CONFIG_STATUS <<\_ACEOF
27687 ## --------------------- ##
27688 ## M4sh Initialization. ##
27689 ## --------------------- ##
27691 # Be more Bourne compatible
27692 DUALCASE=1; export DUALCASE # for MKS sh
27693 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
27694 emulate sh
27695 NULLCMD=:
27696 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
27697 # is contrary to our usage. Disable this feature.
27698 alias -g '${1+"$@"}'='"$@"'
27699 setopt NO_GLOB_SUBST
27700 else
27701 case `(set -o) 2>/dev/null` in
27702 *posix*) set -o posix ;;
27703 esac
27710 # PATH needs CR
27711 # Avoid depending upon Character Ranges.
27712 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
27713 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
27714 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
27715 as_cr_digits='0123456789'
27716 as_cr_alnum=$as_cr_Letters$as_cr_digits
27718 # The user is always right.
27719 if test "${PATH_SEPARATOR+set}" != set; then
27720 echo "#! /bin/sh" >conf$$.sh
27721 echo "exit 0" >>conf$$.sh
27722 chmod +x conf$$.sh
27723 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
27724 PATH_SEPARATOR=';'
27725 else
27726 PATH_SEPARATOR=:
27728 rm -f conf$$.sh
27731 # Support unset when possible.
27732 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
27733 as_unset=unset
27734 else
27735 as_unset=false
27739 # IFS
27740 # We need space, tab and new line, in precisely that order. Quoting is
27741 # there to prevent editors from complaining about space-tab.
27742 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
27743 # splitting by setting IFS to empty value.)
27744 as_nl='
27746 IFS=" "" $as_nl"
27748 # Find who we are. Look in the path if we contain no directory separator.
27749 case $0 in
27750 *[\\/]* ) as_myself=$0 ;;
27751 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27752 for as_dir in $PATH
27754 IFS=$as_save_IFS
27755 test -z "$as_dir" && as_dir=.
27756 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
27757 done
27758 IFS=$as_save_IFS
27761 esac
27762 # We did not find ourselves, most probably we were run as `sh COMMAND'
27763 # in which case we are not to be found in the path.
27764 if test "x$as_myself" = x; then
27765 as_myself=$0
27767 if test ! -f "$as_myself"; then
27768 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
27769 { (exit 1); exit 1; }
27772 # Work around bugs in pre-3.0 UWIN ksh.
27773 for as_var in ENV MAIL MAILPATH
27774 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
27775 done
27776 PS1='$ '
27777 PS2='> '
27778 PS4='+ '
27780 # NLS nuisances.
27781 for as_var in \
27782 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
27783 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
27784 LC_TELEPHONE LC_TIME
27786 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
27787 eval $as_var=C; export $as_var
27788 else
27789 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
27791 done
27793 # Required to use basename.
27794 if expr a : '\(a\)' >/dev/null 2>&1 &&
27795 test "X`expr 00001 : '.*\(...\)'`" = X001; then
27796 as_expr=expr
27797 else
27798 as_expr=false
27801 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
27802 as_basename=basename
27803 else
27804 as_basename=false
27808 # Name of the executable.
27809 as_me=`$as_basename -- "$0" ||
27810 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
27811 X"$0" : 'X\(//\)$' \| \
27812 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
27813 echo X/"$0" |
27814 sed '/^.*\/\([^/][^/]*\)\/*$/{
27815 s//\1/
27818 /^X\/\(\/\/\)$/{
27819 s//\1/
27822 /^X\/\(\/\).*/{
27823 s//\1/
27826 s/.*/./; q'`
27828 # CDPATH.
27829 $as_unset CDPATH
27833 as_lineno_1=$LINENO
27834 as_lineno_2=$LINENO
27835 test "x$as_lineno_1" != "x$as_lineno_2" &&
27836 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
27838 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
27839 # uniformly replaced by the line number. The first 'sed' inserts a
27840 # line-number line after each line using $LINENO; the second 'sed'
27841 # does the real work. The second script uses 'N' to pair each
27842 # line-number line with the line containing $LINENO, and appends
27843 # trailing '-' during substitution so that $LINENO is not a special
27844 # case at line end.
27845 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
27846 # scripts with optimization help from Paolo Bonzini. Blame Lee
27847 # E. McMahon (1931-1989) for sed's syntax. :-)
27848 sed -n '
27850 /[$]LINENO/=
27851 ' <$as_myself |
27852 sed '
27853 s/[$]LINENO.*/&-/
27854 t lineno
27856 :lineno
27858 :loop
27859 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
27860 t loop
27861 s/-\n.*//
27862 ' >$as_me.lineno &&
27863 chmod +x "$as_me.lineno" ||
27864 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
27865 { (exit 1); exit 1; }; }
27867 # Don't try to exec as it changes $[0], causing all sort of problems
27868 # (the dirname of $[0] is not the place where we might find the
27869 # original and so on. Autoconf is especially sensitive to this).
27870 . "./$as_me.lineno"
27871 # Exit status is that of the last command.
27872 exit
27876 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
27877 as_dirname=dirname
27878 else
27879 as_dirname=false
27882 ECHO_C= ECHO_N= ECHO_T=
27883 case `echo -n x` in
27884 -n*)
27885 case `echo 'x\c'` in
27886 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
27887 *) ECHO_C='\c';;
27888 esac;;
27890 ECHO_N='-n';;
27891 esac
27893 if expr a : '\(a\)' >/dev/null 2>&1 &&
27894 test "X`expr 00001 : '.*\(...\)'`" = X001; then
27895 as_expr=expr
27896 else
27897 as_expr=false
27900 rm -f conf$$ conf$$.exe conf$$.file
27901 if test -d conf$$.dir; then
27902 rm -f conf$$.dir/conf$$.file
27903 else
27904 rm -f conf$$.dir
27905 mkdir conf$$.dir
27907 echo >conf$$.file
27908 if ln -s conf$$.file conf$$ 2>/dev/null; then
27909 as_ln_s='ln -s'
27910 # ... but there are two gotchas:
27911 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
27912 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
27913 # In both cases, we have to default to `cp -p'.
27914 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
27915 as_ln_s='cp -p'
27916 elif ln conf$$.file conf$$ 2>/dev/null; then
27917 as_ln_s=ln
27918 else
27919 as_ln_s='cp -p'
27921 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
27922 rmdir conf$$.dir 2>/dev/null
27924 if mkdir -p . 2>/dev/null; then
27925 as_mkdir_p=:
27926 else
27927 test -d ./-p && rmdir ./-p
27928 as_mkdir_p=false
27931 if test -x / >/dev/null 2>&1; then
27932 as_test_x='test -x'
27933 else
27934 if ls -dL / >/dev/null 2>&1; then
27935 as_ls_L_option=L
27936 else
27937 as_ls_L_option=
27939 as_test_x='
27940 eval sh -c '\''
27941 if test -d "$1"; then
27942 test -d "$1/.";
27943 else
27944 case $1 in
27945 -*)set "./$1";;
27946 esac;
27947 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
27948 ???[sx]*):;;*)false;;esac;fi
27949 '\'' sh
27952 as_executable_p=$as_test_x
27954 # Sed expression to map a string onto a valid CPP name.
27955 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
27957 # Sed expression to map a string onto a valid variable name.
27958 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
27961 exec 6>&1
27963 # Save the log message, to keep $[0] and so on meaningful, and to
27964 # report actual input values of CONFIG_FILES etc. instead of their
27965 # values after options handling.
27966 ac_log="
27967 This file was extended by python $as_me 2.7, which was
27968 generated by GNU Autoconf 2.61. Invocation command line was
27970 CONFIG_FILES = $CONFIG_FILES
27971 CONFIG_HEADERS = $CONFIG_HEADERS
27972 CONFIG_LINKS = $CONFIG_LINKS
27973 CONFIG_COMMANDS = $CONFIG_COMMANDS
27974 $ $0 $@
27976 on `(hostname || uname -n) 2>/dev/null | sed 1q`
27979 _ACEOF
27981 cat >>$CONFIG_STATUS <<_ACEOF
27982 # Files that config.status was made for.
27983 config_files="$ac_config_files"
27984 config_headers="$ac_config_headers"
27986 _ACEOF
27988 cat >>$CONFIG_STATUS <<\_ACEOF
27989 ac_cs_usage="\
27990 \`$as_me' instantiates files from templates according to the
27991 current configuration.
27993 Usage: $0 [OPTIONS] [FILE]...
27995 -h, --help print this help, then exit
27996 -V, --version print version number and configuration settings, then exit
27997 -q, --quiet do not print progress messages
27998 -d, --debug don't remove temporary files
27999 --recheck update $as_me by reconfiguring in the same conditions
28000 --file=FILE[:TEMPLATE]
28001 instantiate the configuration file FILE
28002 --header=FILE[:TEMPLATE]
28003 instantiate the configuration header FILE
28005 Configuration files:
28006 $config_files
28008 Configuration headers:
28009 $config_headers
28011 Report bugs to <bug-autoconf@gnu.org>."
28013 _ACEOF
28014 cat >>$CONFIG_STATUS <<_ACEOF
28015 ac_cs_version="\\
28016 python config.status 2.7
28017 configured by $0, generated by GNU Autoconf 2.61,
28018 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
28020 Copyright (C) 2006 Free Software Foundation, Inc.
28021 This config.status script is free software; the Free Software Foundation
28022 gives unlimited permission to copy, distribute and modify it."
28024 ac_pwd='$ac_pwd'
28025 srcdir='$srcdir'
28026 INSTALL='$INSTALL'
28027 _ACEOF
28029 cat >>$CONFIG_STATUS <<\_ACEOF
28030 # If no file are specified by the user, then we need to provide default
28031 # value. By we need to know if files were specified by the user.
28032 ac_need_defaults=:
28033 while test $# != 0
28035 case $1 in
28036 --*=*)
28037 ac_option=`expr "X$1" : 'X\([^=]*\)='`
28038 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
28039 ac_shift=:
28042 ac_option=$1
28043 ac_optarg=$2
28044 ac_shift=shift
28046 esac
28048 case $ac_option in
28049 # Handling of the options.
28050 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
28051 ac_cs_recheck=: ;;
28052 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
28053 echo "$ac_cs_version"; exit ;;
28054 --debug | --debu | --deb | --de | --d | -d )
28055 debug=: ;;
28056 --file | --fil | --fi | --f )
28057 $ac_shift
28058 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
28059 ac_need_defaults=false;;
28060 --header | --heade | --head | --hea )
28061 $ac_shift
28062 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
28063 ac_need_defaults=false;;
28064 --he | --h)
28065 # Conflict between --help and --header
28066 { echo "$as_me: error: ambiguous option: $1
28067 Try \`$0 --help' for more information." >&2
28068 { (exit 1); exit 1; }; };;
28069 --help | --hel | -h )
28070 echo "$ac_cs_usage"; exit ;;
28071 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
28072 | -silent | --silent | --silen | --sile | --sil | --si | --s)
28073 ac_cs_silent=: ;;
28075 # This is an error.
28076 -*) { echo "$as_me: error: unrecognized option: $1
28077 Try \`$0 --help' for more information." >&2
28078 { (exit 1); exit 1; }; } ;;
28080 *) ac_config_targets="$ac_config_targets $1"
28081 ac_need_defaults=false ;;
28083 esac
28084 shift
28085 done
28087 ac_configure_extra_args=
28089 if $ac_cs_silent; then
28090 exec 6>/dev/null
28091 ac_configure_extra_args="$ac_configure_extra_args --silent"
28094 _ACEOF
28095 cat >>$CONFIG_STATUS <<_ACEOF
28096 if \$ac_cs_recheck; then
28097 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
28098 CONFIG_SHELL=$SHELL
28099 export CONFIG_SHELL
28100 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
28103 _ACEOF
28104 cat >>$CONFIG_STATUS <<\_ACEOF
28105 exec 5>>config.log
28107 echo
28108 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
28109 ## Running $as_me. ##
28110 _ASBOX
28111 echo "$ac_log"
28112 } >&5
28114 _ACEOF
28115 cat >>$CONFIG_STATUS <<_ACEOF
28116 _ACEOF
28118 cat >>$CONFIG_STATUS <<\_ACEOF
28120 # Handling of arguments.
28121 for ac_config_target in $ac_config_targets
28123 case $ac_config_target in
28124 "pyconfig.h") CONFIG_HEADERS="$CONFIG_HEADERS pyconfig.h" ;;
28125 "Mac/Makefile") CONFIG_FILES="$CONFIG_FILES Mac/Makefile" ;;
28126 "Mac/PythonLauncher/Makefile") CONFIG_FILES="$CONFIG_FILES Mac/PythonLauncher/Makefile" ;;
28127 "Mac/IDLE/Makefile") CONFIG_FILES="$CONFIG_FILES Mac/IDLE/Makefile" ;;
28128 "Mac/Resources/framework/Info.plist") CONFIG_FILES="$CONFIG_FILES Mac/Resources/framework/Info.plist" ;;
28129 "Mac/Resources/app/Info.plist") CONFIG_FILES="$CONFIG_FILES Mac/Resources/app/Info.plist" ;;
28130 "Makefile.pre") CONFIG_FILES="$CONFIG_FILES Makefile.pre" ;;
28131 "Modules/Setup.config") CONFIG_FILES="$CONFIG_FILES Modules/Setup.config" ;;
28132 "Misc/python.pc") CONFIG_FILES="$CONFIG_FILES Misc/python.pc" ;;
28134 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
28135 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
28136 { (exit 1); exit 1; }; };;
28137 esac
28138 done
28141 # If the user did not use the arguments to specify the items to instantiate,
28142 # then the envvar interface is used. Set only those that are not.
28143 # We use the long form for the default assignment because of an extremely
28144 # bizarre bug on SunOS 4.1.3.
28145 if $ac_need_defaults; then
28146 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
28147 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
28150 # Have a temporary directory for convenience. Make it in the build tree
28151 # simply because there is no reason against having it here, and in addition,
28152 # creating and moving files from /tmp can sometimes cause problems.
28153 # Hook for its removal unless debugging.
28154 # Note that there is a small window in which the directory will not be cleaned:
28155 # after its creation but before its name has been assigned to `$tmp'.
28156 $debug ||
28158 tmp=
28159 trap 'exit_status=$?
28160 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
28162 trap '{ (exit 1); exit 1; }' 1 2 13 15
28164 # Create a (secure) tmp directory for tmp files.
28167 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
28168 test -n "$tmp" && test -d "$tmp"
28169 } ||
28171 tmp=./conf$$-$RANDOM
28172 (umask 077 && mkdir "$tmp")
28173 } ||
28175 echo "$me: cannot create a temporary directory in ." >&2
28176 { (exit 1); exit 1; }
28180 # Set up the sed scripts for CONFIG_FILES section.
28183 # No need to generate the scripts if there are no CONFIG_FILES.
28184 # This happens for instance when ./config.status config.h
28185 if test -n "$CONFIG_FILES"; then
28187 _ACEOF
28191 ac_delim='%!_!# '
28192 for ac_last_try in false false false false false :; do
28193 cat >conf$$subs.sed <<_ACEOF
28194 SHELL!$SHELL$ac_delim
28195 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
28196 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
28197 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
28198 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
28199 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
28200 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
28201 exec_prefix!$exec_prefix$ac_delim
28202 prefix!$prefix$ac_delim
28203 program_transform_name!$program_transform_name$ac_delim
28204 bindir!$bindir$ac_delim
28205 sbindir!$sbindir$ac_delim
28206 libexecdir!$libexecdir$ac_delim
28207 datarootdir!$datarootdir$ac_delim
28208 datadir!$datadir$ac_delim
28209 sysconfdir!$sysconfdir$ac_delim
28210 sharedstatedir!$sharedstatedir$ac_delim
28211 localstatedir!$localstatedir$ac_delim
28212 includedir!$includedir$ac_delim
28213 oldincludedir!$oldincludedir$ac_delim
28214 docdir!$docdir$ac_delim
28215 infodir!$infodir$ac_delim
28216 htmldir!$htmldir$ac_delim
28217 dvidir!$dvidir$ac_delim
28218 pdfdir!$pdfdir$ac_delim
28219 psdir!$psdir$ac_delim
28220 libdir!$libdir$ac_delim
28221 localedir!$localedir$ac_delim
28222 mandir!$mandir$ac_delim
28223 DEFS!$DEFS$ac_delim
28224 ECHO_C!$ECHO_C$ac_delim
28225 ECHO_N!$ECHO_N$ac_delim
28226 ECHO_T!$ECHO_T$ac_delim
28227 LIBS!$LIBS$ac_delim
28228 build_alias!$build_alias$ac_delim
28229 host_alias!$host_alias$ac_delim
28230 target_alias!$target_alias$ac_delim
28231 VERSION!$VERSION$ac_delim
28232 SOVERSION!$SOVERSION$ac_delim
28233 CONFIG_ARGS!$CONFIG_ARGS$ac_delim
28234 UNIVERSALSDK!$UNIVERSALSDK$ac_delim
28235 ARCH_RUN_32BIT!$ARCH_RUN_32BIT$ac_delim
28236 PYTHONFRAMEWORK!$PYTHONFRAMEWORK$ac_delim
28237 PYTHONFRAMEWORKIDENTIFIER!$PYTHONFRAMEWORKIDENTIFIER$ac_delim
28238 PYTHONFRAMEWORKDIR!$PYTHONFRAMEWORKDIR$ac_delim
28239 PYTHONFRAMEWORKPREFIX!$PYTHONFRAMEWORKPREFIX$ac_delim
28240 PYTHONFRAMEWORKINSTALLDIR!$PYTHONFRAMEWORKINSTALLDIR$ac_delim
28241 FRAMEWORKINSTALLFIRST!$FRAMEWORKINSTALLFIRST$ac_delim
28242 FRAMEWORKINSTALLLAST!$FRAMEWORKINSTALLLAST$ac_delim
28243 FRAMEWORKALTINSTALLFIRST!$FRAMEWORKALTINSTALLFIRST$ac_delim
28244 FRAMEWORKALTINSTALLLAST!$FRAMEWORKALTINSTALLLAST$ac_delim
28245 FRAMEWORKUNIXTOOLSPREFIX!$FRAMEWORKUNIXTOOLSPREFIX$ac_delim
28246 MACHDEP!$MACHDEP$ac_delim
28247 SGI_ABI!$SGI_ABI$ac_delim
28248 EXTRAPLATDIR!$EXTRAPLATDIR$ac_delim
28249 EXTRAMACHDEPPATH!$EXTRAMACHDEPPATH$ac_delim
28250 CONFIGURE_MACOSX_DEPLOYMENT_TARGET!$CONFIGURE_MACOSX_DEPLOYMENT_TARGET$ac_delim
28251 EXPORT_MACOSX_DEPLOYMENT_TARGET!$EXPORT_MACOSX_DEPLOYMENT_TARGET$ac_delim
28252 CC!$CC$ac_delim
28253 CFLAGS!$CFLAGS$ac_delim
28254 LDFLAGS!$LDFLAGS$ac_delim
28255 CPPFLAGS!$CPPFLAGS$ac_delim
28256 ac_ct_CC!$ac_ct_CC$ac_delim
28257 EXEEXT!$EXEEXT$ac_delim
28258 OBJEXT!$OBJEXT$ac_delim
28259 CXX!$CXX$ac_delim
28260 MAINCC!$MAINCC$ac_delim
28261 CPP!$CPP$ac_delim
28262 GREP!$GREP$ac_delim
28263 EGREP!$EGREP$ac_delim
28264 BUILDEXEEXT!$BUILDEXEEXT$ac_delim
28265 LIBRARY!$LIBRARY$ac_delim
28266 LDLIBRARY!$LDLIBRARY$ac_delim
28267 DLLLIBRARY!$DLLLIBRARY$ac_delim
28268 BLDLIBRARY!$BLDLIBRARY$ac_delim
28269 LDLIBRARYDIR!$LDLIBRARYDIR$ac_delim
28270 INSTSONAME!$INSTSONAME$ac_delim
28271 RUNSHARED!$RUNSHARED$ac_delim
28272 LINKCC!$LINKCC$ac_delim
28273 GNULD!$GNULD$ac_delim
28274 RANLIB!$RANLIB$ac_delim
28275 AR!$AR$ac_delim
28276 ARFLAGS!$ARFLAGS$ac_delim
28277 SVNVERSION!$SVNVERSION$ac_delim
28278 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
28279 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
28280 INSTALL_DATA!$INSTALL_DATA$ac_delim
28281 LN!$LN$ac_delim
28282 OPT!$OPT$ac_delim
28283 BASECFLAGS!$BASECFLAGS$ac_delim
28284 UNIVERSAL_ARCH_FLAGS!$UNIVERSAL_ARCH_FLAGS$ac_delim
28285 OTHER_LIBTOOL_OPT!$OTHER_LIBTOOL_OPT$ac_delim
28286 LIBTOOL_CRUFT!$LIBTOOL_CRUFT$ac_delim
28287 SO!$SO$ac_delim
28288 LDSHARED!$LDSHARED$ac_delim
28289 BLDSHARED!$BLDSHARED$ac_delim
28290 CCSHARED!$CCSHARED$ac_delim
28291 _ACEOF
28293 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
28294 break
28295 elif $ac_last_try; then
28296 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
28297 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
28298 { (exit 1); exit 1; }; }
28299 else
28300 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
28302 done
28304 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
28305 if test -n "$ac_eof"; then
28306 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
28307 ac_eof=`expr $ac_eof + 1`
28310 cat >>$CONFIG_STATUS <<_ACEOF
28311 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
28312 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
28313 _ACEOF
28314 sed '
28315 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
28316 s/^/s,@/; s/!/@,|#_!!_#|/
28319 s/'"$ac_delim"'$/,g/; t
28320 s/$/\\/; p
28321 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
28322 ' >>$CONFIG_STATUS <conf$$subs.sed
28323 rm -f conf$$subs.sed
28324 cat >>$CONFIG_STATUS <<_ACEOF
28325 CEOF$ac_eof
28326 _ACEOF
28329 ac_delim='%!_!# '
28330 for ac_last_try in false false false false false :; do
28331 cat >conf$$subs.sed <<_ACEOF
28332 LINKFORSHARED!$LINKFORSHARED$ac_delim
28333 CFLAGSFORSHARED!$CFLAGSFORSHARED$ac_delim
28334 SHLIBS!$SHLIBS$ac_delim
28335 USE_SIGNAL_MODULE!$USE_SIGNAL_MODULE$ac_delim
28336 SIGNAL_OBJS!$SIGNAL_OBJS$ac_delim
28337 USE_THREAD_MODULE!$USE_THREAD_MODULE$ac_delim
28338 LDLAST!$LDLAST$ac_delim
28339 THREADOBJ!$THREADOBJ$ac_delim
28340 DLINCLDIR!$DLINCLDIR$ac_delim
28341 DYNLOADFILE!$DYNLOADFILE$ac_delim
28342 MACHDEP_OBJS!$MACHDEP_OBJS$ac_delim
28343 TRUE!$TRUE$ac_delim
28344 LIBOBJS!$LIBOBJS$ac_delim
28345 HAVE_GETHOSTBYNAME_R_6_ARG!$HAVE_GETHOSTBYNAME_R_6_ARG$ac_delim
28346 HAVE_GETHOSTBYNAME_R_5_ARG!$HAVE_GETHOSTBYNAME_R_5_ARG$ac_delim
28347 HAVE_GETHOSTBYNAME_R_3_ARG!$HAVE_GETHOSTBYNAME_R_3_ARG$ac_delim
28348 HAVE_GETHOSTBYNAME_R!$HAVE_GETHOSTBYNAME_R$ac_delim
28349 HAVE_GETHOSTBYNAME!$HAVE_GETHOSTBYNAME$ac_delim
28350 LIBM!$LIBM$ac_delim
28351 LIBC!$LIBC$ac_delim
28352 UNICODE_OBJS!$UNICODE_OBJS$ac_delim
28353 THREADHEADERS!$THREADHEADERS$ac_delim
28354 SRCDIRS!$SRCDIRS$ac_delim
28355 LTLIBOBJS!$LTLIBOBJS$ac_delim
28356 _ACEOF
28358 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 24; then
28359 break
28360 elif $ac_last_try; then
28361 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
28362 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
28363 { (exit 1); exit 1; }; }
28364 else
28365 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
28367 done
28369 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
28370 if test -n "$ac_eof"; then
28371 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
28372 ac_eof=`expr $ac_eof + 1`
28375 cat >>$CONFIG_STATUS <<_ACEOF
28376 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
28377 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
28378 _ACEOF
28379 sed '
28380 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
28381 s/^/s,@/; s/!/@,|#_!!_#|/
28384 s/'"$ac_delim"'$/,g/; t
28385 s/$/\\/; p
28386 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
28387 ' >>$CONFIG_STATUS <conf$$subs.sed
28388 rm -f conf$$subs.sed
28389 cat >>$CONFIG_STATUS <<_ACEOF
28390 :end
28391 s/|#_!!_#|//g
28392 CEOF$ac_eof
28393 _ACEOF
28396 # VPATH may cause trouble with some makes, so we remove $(srcdir),
28397 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
28398 # trailing colons and then remove the whole line if VPATH becomes empty
28399 # (actually we leave an empty line to preserve line numbers).
28400 if test "x$srcdir" = x.; then
28401 ac_vpsub='/^[ ]*VPATH[ ]*=/{
28402 s/:*\$(srcdir):*/:/
28403 s/:*\${srcdir}:*/:/
28404 s/:*@srcdir@:*/:/
28405 s/^\([^=]*=[ ]*\):*/\1/
28406 s/:*$//
28407 s/^[^=]*=[ ]*$//
28411 cat >>$CONFIG_STATUS <<\_ACEOF
28412 fi # test -n "$CONFIG_FILES"
28415 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS
28417 case $ac_tag in
28418 :[FHLC]) ac_mode=$ac_tag; continue;;
28419 esac
28420 case $ac_mode$ac_tag in
28421 :[FHL]*:*);;
28422 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
28423 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
28424 { (exit 1); exit 1; }; };;
28425 :[FH]-) ac_tag=-:-;;
28426 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
28427 esac
28428 ac_save_IFS=$IFS
28429 IFS=:
28430 set x $ac_tag
28431 IFS=$ac_save_IFS
28432 shift
28433 ac_file=$1
28434 shift
28436 case $ac_mode in
28437 :L) ac_source=$1;;
28438 :[FH])
28439 ac_file_inputs=
28440 for ac_f
28442 case $ac_f in
28443 -) ac_f="$tmp/stdin";;
28444 *) # Look for the file first in the build tree, then in the source tree
28445 # (if the path is not absolute). The absolute path cannot be DOS-style,
28446 # because $ac_f cannot contain `:'.
28447 test -f "$ac_f" ||
28448 case $ac_f in
28449 [\\/$]*) false;;
28450 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
28451 esac ||
28452 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
28453 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
28454 { (exit 1); exit 1; }; };;
28455 esac
28456 ac_file_inputs="$ac_file_inputs $ac_f"
28457 done
28459 # Let's still pretend it is `configure' which instantiates (i.e., don't
28460 # use $as_me), people would be surprised to read:
28461 # /* config.h. Generated by config.status. */
28462 configure_input="Generated from "`IFS=:
28463 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
28464 if test x"$ac_file" != x-; then
28465 configure_input="$ac_file. $configure_input"
28466 { echo "$as_me:$LINENO: creating $ac_file" >&5
28467 echo "$as_me: creating $ac_file" >&6;}
28470 case $ac_tag in
28471 *:-:* | *:-) cat >"$tmp/stdin";;
28472 esac
28474 esac
28476 ac_dir=`$as_dirname -- "$ac_file" ||
28477 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28478 X"$ac_file" : 'X\(//\)[^/]' \| \
28479 X"$ac_file" : 'X\(//\)$' \| \
28480 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
28481 echo X"$ac_file" |
28482 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28483 s//\1/
28486 /^X\(\/\/\)[^/].*/{
28487 s//\1/
28490 /^X\(\/\/\)$/{
28491 s//\1/
28494 /^X\(\/\).*/{
28495 s//\1/
28498 s/.*/./; q'`
28499 { as_dir="$ac_dir"
28500 case $as_dir in #(
28501 -*) as_dir=./$as_dir;;
28502 esac
28503 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
28504 as_dirs=
28505 while :; do
28506 case $as_dir in #(
28507 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
28508 *) as_qdir=$as_dir;;
28509 esac
28510 as_dirs="'$as_qdir' $as_dirs"
28511 as_dir=`$as_dirname -- "$as_dir" ||
28512 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28513 X"$as_dir" : 'X\(//\)[^/]' \| \
28514 X"$as_dir" : 'X\(//\)$' \| \
28515 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
28516 echo X"$as_dir" |
28517 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28518 s//\1/
28521 /^X\(\/\/\)[^/].*/{
28522 s//\1/
28525 /^X\(\/\/\)$/{
28526 s//\1/
28529 /^X\(\/\).*/{
28530 s//\1/
28533 s/.*/./; q'`
28534 test -d "$as_dir" && break
28535 done
28536 test -z "$as_dirs" || eval "mkdir $as_dirs"
28537 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
28538 echo "$as_me: error: cannot create directory $as_dir" >&2;}
28539 { (exit 1); exit 1; }; }; }
28540 ac_builddir=.
28542 case "$ac_dir" in
28543 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
28545 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
28546 # A ".." for each directory in $ac_dir_suffix.
28547 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
28548 case $ac_top_builddir_sub in
28549 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
28550 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
28551 esac ;;
28552 esac
28553 ac_abs_top_builddir=$ac_pwd
28554 ac_abs_builddir=$ac_pwd$ac_dir_suffix
28555 # for backward compatibility:
28556 ac_top_builddir=$ac_top_build_prefix
28558 case $srcdir in
28559 .) # We are building in place.
28560 ac_srcdir=.
28561 ac_top_srcdir=$ac_top_builddir_sub
28562 ac_abs_top_srcdir=$ac_pwd ;;
28563 [\\/]* | ?:[\\/]* ) # Absolute name.
28564 ac_srcdir=$srcdir$ac_dir_suffix;
28565 ac_top_srcdir=$srcdir
28566 ac_abs_top_srcdir=$srcdir ;;
28567 *) # Relative name.
28568 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
28569 ac_top_srcdir=$ac_top_build_prefix$srcdir
28570 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
28571 esac
28572 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
28575 case $ac_mode in
28578 # CONFIG_FILE
28581 case $INSTALL in
28582 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
28583 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
28584 esac
28585 _ACEOF
28587 cat >>$CONFIG_STATUS <<\_ACEOF
28588 # If the template does not know about datarootdir, expand it.
28589 # FIXME: This hack should be removed a few years after 2.60.
28590 ac_datarootdir_hack=; ac_datarootdir_seen=
28592 case `sed -n '/datarootdir/ {
28596 /@datadir@/p
28597 /@docdir@/p
28598 /@infodir@/p
28599 /@localedir@/p
28600 /@mandir@/p
28601 ' $ac_file_inputs` in
28602 *datarootdir*) ac_datarootdir_seen=yes;;
28603 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
28604 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
28605 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
28606 _ACEOF
28607 cat >>$CONFIG_STATUS <<_ACEOF
28608 ac_datarootdir_hack='
28609 s&@datadir@&$datadir&g
28610 s&@docdir@&$docdir&g
28611 s&@infodir@&$infodir&g
28612 s&@localedir@&$localedir&g
28613 s&@mandir@&$mandir&g
28614 s&\\\${datarootdir}&$datarootdir&g' ;;
28615 esac
28616 _ACEOF
28618 # Neutralize VPATH when `$srcdir' = `.'.
28619 # Shell code in configure.ac might set extrasub.
28620 # FIXME: do we really want to maintain this feature?
28621 cat >>$CONFIG_STATUS <<_ACEOF
28622 sed "$ac_vpsub
28623 $extrasub
28624 _ACEOF
28625 cat >>$CONFIG_STATUS <<\_ACEOF
28627 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
28628 s&@configure_input@&$configure_input&;t t
28629 s&@top_builddir@&$ac_top_builddir_sub&;t t
28630 s&@srcdir@&$ac_srcdir&;t t
28631 s&@abs_srcdir@&$ac_abs_srcdir&;t t
28632 s&@top_srcdir@&$ac_top_srcdir&;t t
28633 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
28634 s&@builddir@&$ac_builddir&;t t
28635 s&@abs_builddir@&$ac_abs_builddir&;t t
28636 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
28637 s&@INSTALL@&$ac_INSTALL&;t t
28638 $ac_datarootdir_hack
28639 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
28641 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
28642 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
28643 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
28644 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
28645 which seems to be undefined. Please make sure it is defined." >&5
28646 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
28647 which seems to be undefined. Please make sure it is defined." >&2;}
28649 rm -f "$tmp/stdin"
28650 case $ac_file in
28651 -) cat "$tmp/out"; rm -f "$tmp/out";;
28652 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
28653 esac
28657 # CONFIG_HEADER
28659 _ACEOF
28661 # Transform confdefs.h into a sed script `conftest.defines', that
28662 # substitutes the proper values into config.h.in to produce config.h.
28663 rm -f conftest.defines conftest.tail
28664 # First, append a space to every undef/define line, to ease matching.
28665 echo 's/$/ /' >conftest.defines
28666 # Then, protect against being on the right side of a sed subst, or in
28667 # an unquoted here document, in config.status. If some macros were
28668 # called several times there might be several #defines for the same
28669 # symbol, which is useless. But do not sort them, since the last
28670 # AC_DEFINE must be honored.
28671 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
28672 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
28673 # NAME is the cpp macro being defined, VALUE is the value it is being given.
28674 # PARAMS is the parameter list in the macro definition--in most cases, it's
28675 # just an empty string.
28676 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
28677 ac_dB='\\)[ (].*,\\1define\\2'
28678 ac_dC=' '
28679 ac_dD=' ,'
28681 uniq confdefs.h |
28682 sed -n '
28683 t rset
28684 :rset
28685 s/^[ ]*#[ ]*define[ ][ ]*//
28686 t ok
28689 s/[\\&,]/\\&/g
28690 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
28691 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
28692 ' >>conftest.defines
28694 # Remove the space that was appended to ease matching.
28695 # Then replace #undef with comments. This is necessary, for
28696 # example, in the case of _POSIX_SOURCE, which is predefined and required
28697 # on some systems where configure will not decide to define it.
28698 # (The regexp can be short, since the line contains either #define or #undef.)
28699 echo 's/ $//
28700 s,^[ #]*u.*,/* & */,' >>conftest.defines
28702 # Break up conftest.defines:
28703 ac_max_sed_lines=50
28705 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
28706 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
28707 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
28708 # et cetera.
28709 ac_in='$ac_file_inputs'
28710 ac_out='"$tmp/out1"'
28711 ac_nxt='"$tmp/out2"'
28713 while :
28715 # Write a here document:
28716 cat >>$CONFIG_STATUS <<_ACEOF
28717 # First, check the format of the line:
28718 cat >"\$tmp/defines.sed" <<\\CEOF
28719 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
28720 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
28722 :def
28723 _ACEOF
28724 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
28725 echo 'CEOF
28726 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
28727 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
28728 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
28729 grep . conftest.tail >/dev/null || break
28730 rm -f conftest.defines
28731 mv conftest.tail conftest.defines
28732 done
28733 rm -f conftest.defines conftest.tail
28735 echo "ac_result=$ac_in" >>$CONFIG_STATUS
28736 cat >>$CONFIG_STATUS <<\_ACEOF
28737 if test x"$ac_file" != x-; then
28738 echo "/* $configure_input */" >"$tmp/config.h"
28739 cat "$ac_result" >>"$tmp/config.h"
28740 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
28741 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
28742 echo "$as_me: $ac_file is unchanged" >&6;}
28743 else
28744 rm -f $ac_file
28745 mv "$tmp/config.h" $ac_file
28747 else
28748 echo "/* $configure_input */"
28749 cat "$ac_result"
28751 rm -f "$tmp/out12"
28755 esac
28757 done # for ac_tag
28760 { (exit 0); exit 0; }
28761 _ACEOF
28762 chmod +x $CONFIG_STATUS
28763 ac_clean_files=$ac_clean_files_save
28766 # configure is writing to config.log, and then calls config.status.
28767 # config.status does its own redirection, appending to config.log.
28768 # Unfortunately, on DOS this fails, as config.log is still kept open
28769 # by configure, so config.status won't be able to write to it; its
28770 # output is simply discarded. So we exec the FD to /dev/null,
28771 # effectively closing config.log, so it can be properly (re)opened and
28772 # appended to by config.status. When coming back to configure, we
28773 # need to make the FD available again.
28774 if test "$no_create" != yes; then
28775 ac_cs_success=:
28776 ac_config_status_args=
28777 test "$silent" = yes &&
28778 ac_config_status_args="$ac_config_status_args --quiet"
28779 exec 5>/dev/null
28780 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
28781 exec 5>>config.log
28782 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
28783 # would make configure fail if this is the last instruction.
28784 $ac_cs_success || { (exit 1); exit 1; }
28788 echo "creating Modules/Setup"
28789 if test ! -f Modules/Setup
28790 then
28791 cp $srcdir/Modules/Setup.dist Modules/Setup
28794 echo "creating Modules/Setup.local"
28795 if test ! -f Modules/Setup.local
28796 then
28797 echo "# Edit this file for local setup changes" >Modules/Setup.local
28800 echo "creating Makefile"
28801 $SHELL $srcdir/Modules/makesetup -c $srcdir/Modules/config.c.in \
28802 -s Modules Modules/Setup.config \
28803 Modules/Setup.local Modules/Setup
28805 case $ac_sys_system in
28806 BeOS)
28807 { echo "$as_me:$LINENO: WARNING:
28809 Support for BeOS is deprecated as of Python 2.6.
28810 See PEP 11 for the gory details.
28811 " >&5
28812 echo "$as_me: WARNING:
28814 Support for BeOS is deprecated as of Python 2.6.
28815 See PEP 11 for the gory details.
28816 " >&2;}
28818 *) ;;
28819 esac
28821 mv config.c Modules