Remove the regrtest check that turns any ImportError into a skipped test.
[python.git] / configure
blob328629d3511257b2833a91bab46d1a5b89a86fbd
1 #! /bin/sh
2 # From configure.in Revision: 70479 .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.61 for python 2.7.
6 # Report bugs to <http://www.python.org/python-bugs>.
8 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
10 # This configure script is free software; the Free Software Foundation
11 # gives unlimited permission to copy, distribute and modify it.
12 ## --------------------- ##
13 ## M4sh Initialization. ##
14 ## --------------------- ##
16 # Be more Bourne compatible
17 DUALCASE=1; export DUALCASE # for MKS sh
18 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
19 emulate sh
20 NULLCMD=:
21 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22 # is contrary to our usage. Disable this feature.
23 alias -g '${1+"$@"}'='"$@"'
24 setopt NO_GLOB_SUBST
25 else
26 case `(set -o) 2>/dev/null` in
27 *posix*) set -o posix ;;
28 esac
35 # PATH needs CR
36 # Avoid depending upon Character Ranges.
37 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
38 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
39 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
40 as_cr_digits='0123456789'
41 as_cr_alnum=$as_cr_Letters$as_cr_digits
43 # The user is always right.
44 if test "${PATH_SEPARATOR+set}" != set; then
45 echo "#! /bin/sh" >conf$$.sh
46 echo "exit 0" >>conf$$.sh
47 chmod +x conf$$.sh
48 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
49 PATH_SEPARATOR=';'
50 else
51 PATH_SEPARATOR=:
53 rm -f conf$$.sh
56 # Support unset when possible.
57 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
58 as_unset=unset
59 else
60 as_unset=false
64 # IFS
65 # We need space, tab and new line, in precisely that order. Quoting is
66 # there to prevent editors from complaining about space-tab.
67 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
68 # splitting by setting IFS to empty value.)
69 as_nl='
71 IFS=" "" $as_nl"
73 # Find who we are. Look in the path if we contain no directory separator.
74 case $0 in
75 *[\\/]* ) as_myself=$0 ;;
76 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
77 for as_dir in $PATH
79 IFS=$as_save_IFS
80 test -z "$as_dir" && as_dir=.
81 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
82 done
83 IFS=$as_save_IFS
86 esac
87 # We did not find ourselves, most probably we were run as `sh COMMAND'
88 # in which case we are not to be found in the path.
89 if test "x$as_myself" = x; then
90 as_myself=$0
92 if test ! -f "$as_myself"; then
93 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
94 { (exit 1); exit 1; }
97 # Work around bugs in pre-3.0 UWIN ksh.
98 for as_var in ENV MAIL MAILPATH
99 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
100 done
101 PS1='$ '
102 PS2='> '
103 PS4='+ '
105 # NLS nuisances.
106 for as_var in \
107 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
108 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
109 LC_TELEPHONE LC_TIME
111 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
112 eval $as_var=C; export $as_var
113 else
114 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
116 done
118 # Required to use basename.
119 if expr a : '\(a\)' >/dev/null 2>&1 &&
120 test "X`expr 00001 : '.*\(...\)'`" = X001; then
121 as_expr=expr
122 else
123 as_expr=false
126 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
127 as_basename=basename
128 else
129 as_basename=false
133 # Name of the executable.
134 as_me=`$as_basename -- "$0" ||
135 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
136 X"$0" : 'X\(//\)$' \| \
137 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
138 echo X/"$0" |
139 sed '/^.*\/\([^/][^/]*\)\/*$/{
140 s//\1/
143 /^X\/\(\/\/\)$/{
144 s//\1/
147 /^X\/\(\/\).*/{
148 s//\1/
151 s/.*/./; q'`
153 # CDPATH.
154 $as_unset CDPATH
157 if test "x$CONFIG_SHELL" = x; then
158 if (eval ":") 2>/dev/null; then
159 as_have_required=yes
160 else
161 as_have_required=no
164 if test $as_have_required = yes && (eval ":
165 (as_func_return () {
166 (exit \$1)
168 as_func_success () {
169 as_func_return 0
171 as_func_failure () {
172 as_func_return 1
174 as_func_ret_success () {
175 return 0
177 as_func_ret_failure () {
178 return 1
181 exitcode=0
182 if as_func_success; then
184 else
185 exitcode=1
186 echo as_func_success failed.
189 if as_func_failure; then
190 exitcode=1
191 echo as_func_failure succeeded.
194 if as_func_ret_success; then
196 else
197 exitcode=1
198 echo as_func_ret_success failed.
201 if as_func_ret_failure; then
202 exitcode=1
203 echo as_func_ret_failure succeeded.
206 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
208 else
209 exitcode=1
210 echo positional parameters were not saved.
213 test \$exitcode = 0) || { (exit 1); exit 1; }
216 as_lineno_1=\$LINENO
217 as_lineno_2=\$LINENO
218 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
219 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
220 ") 2> /dev/null; then
222 else
223 as_candidate_shells=
224 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
225 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
227 IFS=$as_save_IFS
228 test -z "$as_dir" && as_dir=.
229 case $as_dir in
231 for as_base in sh bash ksh sh5; do
232 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
233 done;;
234 esac
235 done
236 IFS=$as_save_IFS
239 for as_shell in $as_candidate_shells $SHELL; do
240 # Try only shells that exist, to save several forks.
241 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
242 { ("$as_shell") 2> /dev/null <<\_ASEOF
243 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
244 emulate sh
245 NULLCMD=:
246 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
247 # is contrary to our usage. Disable this feature.
248 alias -g '${1+"$@"}'='"$@"'
249 setopt NO_GLOB_SUBST
250 else
251 case `(set -o) 2>/dev/null` in
252 *posix*) set -o posix ;;
253 esac
259 _ASEOF
260 }; then
261 CONFIG_SHELL=$as_shell
262 as_have_required=yes
263 if { "$as_shell" 2> /dev/null <<\_ASEOF
264 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
265 emulate sh
266 NULLCMD=:
267 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
268 # is contrary to our usage. Disable this feature.
269 alias -g '${1+"$@"}'='"$@"'
270 setopt NO_GLOB_SUBST
271 else
272 case `(set -o) 2>/dev/null` in
273 *posix*) set -o posix ;;
274 esac
280 (as_func_return () {
281 (exit $1)
283 as_func_success () {
284 as_func_return 0
286 as_func_failure () {
287 as_func_return 1
289 as_func_ret_success () {
290 return 0
292 as_func_ret_failure () {
293 return 1
296 exitcode=0
297 if as_func_success; then
299 else
300 exitcode=1
301 echo as_func_success failed.
304 if as_func_failure; then
305 exitcode=1
306 echo as_func_failure succeeded.
309 if as_func_ret_success; then
311 else
312 exitcode=1
313 echo as_func_ret_success failed.
316 if as_func_ret_failure; then
317 exitcode=1
318 echo as_func_ret_failure succeeded.
321 if ( set x; as_func_ret_success y && test x = "$1" ); then
323 else
324 exitcode=1
325 echo positional parameters were not saved.
328 test $exitcode = 0) || { (exit 1); exit 1; }
331 as_lineno_1=$LINENO
332 as_lineno_2=$LINENO
333 test "x$as_lineno_1" != "x$as_lineno_2" &&
334 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
336 _ASEOF
337 }; then
338 break
343 done
345 if test "x$CONFIG_SHELL" != x; then
346 for as_var in BASH_ENV ENV
347 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
348 done
349 export CONFIG_SHELL
350 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
354 if test $as_have_required = no; then
355 echo This script requires a shell more modern than all the
356 echo shells that I found on your system. Please install a
357 echo modern shell, or manually run the script under such a
358 echo shell if you do have one.
359 { (exit 1); exit 1; }
369 (eval "as_func_return () {
370 (exit \$1)
372 as_func_success () {
373 as_func_return 0
375 as_func_failure () {
376 as_func_return 1
378 as_func_ret_success () {
379 return 0
381 as_func_ret_failure () {
382 return 1
385 exitcode=0
386 if as_func_success; then
388 else
389 exitcode=1
390 echo as_func_success failed.
393 if as_func_failure; then
394 exitcode=1
395 echo as_func_failure succeeded.
398 if as_func_ret_success; then
400 else
401 exitcode=1
402 echo as_func_ret_success failed.
405 if as_func_ret_failure; then
406 exitcode=1
407 echo as_func_ret_failure succeeded.
410 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
412 else
413 exitcode=1
414 echo positional parameters were not saved.
417 test \$exitcode = 0") || {
418 echo No shell found that supports shell functions.
419 echo Please tell autoconf@gnu.org about your system,
420 echo including any error possibly output before this
421 echo message
426 as_lineno_1=$LINENO
427 as_lineno_2=$LINENO
428 test "x$as_lineno_1" != "x$as_lineno_2" &&
429 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
431 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
432 # uniformly replaced by the line number. The first 'sed' inserts a
433 # line-number line after each line using $LINENO; the second 'sed'
434 # does the real work. The second script uses 'N' to pair each
435 # line-number line with the line containing $LINENO, and appends
436 # trailing '-' during substitution so that $LINENO is not a special
437 # case at line end.
438 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
439 # scripts with optimization help from Paolo Bonzini. Blame Lee
440 # E. McMahon (1931-1989) for sed's syntax. :-)
441 sed -n '
443 /[$]LINENO/=
444 ' <$as_myself |
445 sed '
446 s/[$]LINENO.*/&-/
447 t lineno
449 :lineno
451 :loop
452 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
453 t loop
454 s/-\n.*//
455 ' >$as_me.lineno &&
456 chmod +x "$as_me.lineno" ||
457 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
458 { (exit 1); exit 1; }; }
460 # Don't try to exec as it changes $[0], causing all sort of problems
461 # (the dirname of $[0] is not the place where we might find the
462 # original and so on. Autoconf is especially sensitive to this).
463 . "./$as_me.lineno"
464 # Exit status is that of the last command.
465 exit
469 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
470 as_dirname=dirname
471 else
472 as_dirname=false
475 ECHO_C= ECHO_N= ECHO_T=
476 case `echo -n x` in
477 -n*)
478 case `echo 'x\c'` in
479 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
480 *) ECHO_C='\c';;
481 esac;;
483 ECHO_N='-n';;
484 esac
486 if expr a : '\(a\)' >/dev/null 2>&1 &&
487 test "X`expr 00001 : '.*\(...\)'`" = X001; then
488 as_expr=expr
489 else
490 as_expr=false
493 rm -f conf$$ conf$$.exe conf$$.file
494 if test -d conf$$.dir; then
495 rm -f conf$$.dir/conf$$.file
496 else
497 rm -f conf$$.dir
498 mkdir conf$$.dir
500 echo >conf$$.file
501 if ln -s conf$$.file conf$$ 2>/dev/null; then
502 as_ln_s='ln -s'
503 # ... but there are two gotchas:
504 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
505 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
506 # In both cases, we have to default to `cp -p'.
507 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
508 as_ln_s='cp -p'
509 elif ln conf$$.file conf$$ 2>/dev/null; then
510 as_ln_s=ln
511 else
512 as_ln_s='cp -p'
514 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
515 rmdir conf$$.dir 2>/dev/null
517 if mkdir -p . 2>/dev/null; then
518 as_mkdir_p=:
519 else
520 test -d ./-p && rmdir ./-p
521 as_mkdir_p=false
524 if test -x / >/dev/null 2>&1; then
525 as_test_x='test -x'
526 else
527 if ls -dL / >/dev/null 2>&1; then
528 as_ls_L_option=L
529 else
530 as_ls_L_option=
532 as_test_x='
533 eval sh -c '\''
534 if test -d "$1"; then
535 test -d "$1/.";
536 else
537 case $1 in
538 -*)set "./$1";;
539 esac;
540 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
541 ???[sx]*):;;*)false;;esac;fi
542 '\'' sh
545 as_executable_p=$as_test_x
547 # Sed expression to map a string onto a valid CPP name.
548 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
550 # Sed expression to map a string onto a valid variable name.
551 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
555 exec 7<&0 </dev/null 6>&1
557 # Name of the host.
558 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
559 # so uname gets run too.
560 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
563 # Initializations.
565 ac_default_prefix=/usr/local
566 ac_clean_files=
567 ac_config_libobj_dir=.
568 LIBOBJS=
569 cross_compiling=no
570 subdirs=
571 MFLAGS=
572 MAKEFLAGS=
573 SHELL=${CONFIG_SHELL-/bin/sh}
575 # Identity of this package.
576 PACKAGE_NAME='python'
577 PACKAGE_TARNAME='python'
578 PACKAGE_VERSION='2.7'
579 PACKAGE_STRING='python 2.7'
580 PACKAGE_BUGREPORT='http://www.python.org/python-bugs'
582 ac_unique_file="Include/object.h"
583 # Factoring default headers for most tests.
584 ac_includes_default="\
585 #include <stdio.h>
586 #ifdef HAVE_SYS_TYPES_H
587 # include <sys/types.h>
588 #endif
589 #ifdef HAVE_SYS_STAT_H
590 # include <sys/stat.h>
591 #endif
592 #ifdef STDC_HEADERS
593 # include <stdlib.h>
594 # include <stddef.h>
595 #else
596 # ifdef HAVE_STDLIB_H
597 # include <stdlib.h>
598 # endif
599 #endif
600 #ifdef HAVE_STRING_H
601 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
602 # include <memory.h>
603 # endif
604 # include <string.h>
605 #endif
606 #ifdef HAVE_STRINGS_H
607 # include <strings.h>
608 #endif
609 #ifdef HAVE_INTTYPES_H
610 # include <inttypes.h>
611 #endif
612 #ifdef HAVE_STDINT_H
613 # include <stdint.h>
614 #endif
615 #ifdef HAVE_UNISTD_H
616 # include <unistd.h>
617 #endif"
619 ac_subst_vars='SHELL
620 PATH_SEPARATOR
621 PACKAGE_NAME
622 PACKAGE_TARNAME
623 PACKAGE_VERSION
624 PACKAGE_STRING
625 PACKAGE_BUGREPORT
626 exec_prefix
627 prefix
628 program_transform_name
629 bindir
630 sbindir
631 libexecdir
632 datarootdir
633 datadir
634 sysconfdir
635 sharedstatedir
636 localstatedir
637 includedir
638 oldincludedir
639 docdir
640 infodir
641 htmldir
642 dvidir
643 pdfdir
644 psdir
645 libdir
646 localedir
647 mandir
648 DEFS
649 ECHO_C
650 ECHO_N
651 ECHO_T
652 LIBS
653 build_alias
654 host_alias
655 target_alias
656 VERSION
657 SOVERSION
658 CONFIG_ARGS
659 UNIVERSALSDK
660 ARCH_RUN_32BIT
661 PYTHONFRAMEWORK
662 PYTHONFRAMEWORKIDENTIFIER
663 PYTHONFRAMEWORKDIR
664 PYTHONFRAMEWORKPREFIX
665 PYTHONFRAMEWORKINSTALLDIR
666 FRAMEWORKINSTALLFIRST
667 FRAMEWORKINSTALLLAST
668 FRAMEWORKALTINSTALLFIRST
669 FRAMEWORKALTINSTALLLAST
670 FRAMEWORKUNIXTOOLSPREFIX
671 MACHDEP
672 SGI_ABI
673 EXTRAPLATDIR
674 EXTRAMACHDEPPATH
675 CONFIGURE_MACOSX_DEPLOYMENT_TARGET
676 EXPORT_MACOSX_DEPLOYMENT_TARGET
678 CFLAGS
679 LDFLAGS
680 CPPFLAGS
681 ac_ct_CC
682 EXEEXT
683 OBJEXT
685 MAINCC
687 GREP
688 EGREP
689 BUILDEXEEXT
690 LIBRARY
691 LDLIBRARY
692 DLLLIBRARY
693 BLDLIBRARY
694 LDLIBRARYDIR
695 INSTSONAME
696 RUNSHARED
697 LINKCC
698 RANLIB
700 SVNVERSION
701 INSTALL_PROGRAM
702 INSTALL_SCRIPT
703 INSTALL_DATA
706 BASECFLAGS
707 UNIVERSAL_ARCH_FLAGS
708 OTHER_LIBTOOL_OPT
709 LIBTOOL_CRUFT
711 LDSHARED
712 BLDSHARED
713 CCSHARED
714 LINKFORSHARED
715 CFLAGSFORSHARED
716 SHLIBS
717 USE_SIGNAL_MODULE
718 SIGNAL_OBJS
719 USE_THREAD_MODULE
720 LDLAST
721 THREADOBJ
722 DLINCLDIR
723 DYNLOADFILE
724 MACHDEP_OBJS
725 TRUE
726 LIBOBJS
727 HAVE_GETHOSTBYNAME_R_6_ARG
728 HAVE_GETHOSTBYNAME_R_5_ARG
729 HAVE_GETHOSTBYNAME_R_3_ARG
730 HAVE_GETHOSTBYNAME_R
731 HAVE_GETHOSTBYNAME
732 LIBM
733 LIBC
734 UNICODE_OBJS
735 THREADHEADERS
736 SRCDIRS
737 LTLIBOBJS'
738 ac_subst_files=''
739 ac_precious_vars='build_alias
740 host_alias
741 target_alias
743 CFLAGS
744 LDFLAGS
745 LIBS
746 CPPFLAGS
747 CPP'
750 # Initialize some variables set by options.
751 ac_init_help=
752 ac_init_version=false
753 # The variables have the same names as the options, with
754 # dashes changed to underlines.
755 cache_file=/dev/null
756 exec_prefix=NONE
757 no_create=
758 no_recursion=
759 prefix=NONE
760 program_prefix=NONE
761 program_suffix=NONE
762 program_transform_name=s,x,x,
763 silent=
764 site=
765 srcdir=
766 verbose=
767 x_includes=NONE
768 x_libraries=NONE
770 # Installation directory options.
771 # These are left unexpanded so users can "make install exec_prefix=/foo"
772 # and all the variables that are supposed to be based on exec_prefix
773 # by default will actually change.
774 # Use braces instead of parens because sh, perl, etc. also accept them.
775 # (The list follows the same order as the GNU Coding Standards.)
776 bindir='${exec_prefix}/bin'
777 sbindir='${exec_prefix}/sbin'
778 libexecdir='${exec_prefix}/libexec'
779 datarootdir='${prefix}/share'
780 datadir='${datarootdir}'
781 sysconfdir='${prefix}/etc'
782 sharedstatedir='${prefix}/com'
783 localstatedir='${prefix}/var'
784 includedir='${prefix}/include'
785 oldincludedir='/usr/include'
786 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
787 infodir='${datarootdir}/info'
788 htmldir='${docdir}'
789 dvidir='${docdir}'
790 pdfdir='${docdir}'
791 psdir='${docdir}'
792 libdir='${exec_prefix}/lib'
793 localedir='${datarootdir}/locale'
794 mandir='${datarootdir}/man'
796 ac_prev=
797 ac_dashdash=
798 for ac_option
800 # If the previous option needs an argument, assign it.
801 if test -n "$ac_prev"; then
802 eval $ac_prev=\$ac_option
803 ac_prev=
804 continue
807 case $ac_option in
808 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
809 *) ac_optarg=yes ;;
810 esac
812 # Accept the important Cygnus configure options, so we can diagnose typos.
814 case $ac_dashdash$ac_option in
816 ac_dashdash=yes ;;
818 -bindir | --bindir | --bindi | --bind | --bin | --bi)
819 ac_prev=bindir ;;
820 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
821 bindir=$ac_optarg ;;
823 -build | --build | --buil | --bui | --bu)
824 ac_prev=build_alias ;;
825 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
826 build_alias=$ac_optarg ;;
828 -cache-file | --cache-file | --cache-fil | --cache-fi \
829 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
830 ac_prev=cache_file ;;
831 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
832 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
833 cache_file=$ac_optarg ;;
835 --config-cache | -C)
836 cache_file=config.cache ;;
838 -datadir | --datadir | --datadi | --datad)
839 ac_prev=datadir ;;
840 -datadir=* | --datadir=* | --datadi=* | --datad=*)
841 datadir=$ac_optarg ;;
843 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
844 | --dataroo | --dataro | --datar)
845 ac_prev=datarootdir ;;
846 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
847 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
848 datarootdir=$ac_optarg ;;
850 -disable-* | --disable-*)
851 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
852 # Reject names that are not valid shell variable names.
853 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
854 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
855 { (exit 1); exit 1; }; }
856 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
857 eval enable_$ac_feature=no ;;
859 -docdir | --docdir | --docdi | --doc | --do)
860 ac_prev=docdir ;;
861 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
862 docdir=$ac_optarg ;;
864 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
865 ac_prev=dvidir ;;
866 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
867 dvidir=$ac_optarg ;;
869 -enable-* | --enable-*)
870 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
871 # Reject names that are not valid shell variable names.
872 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
873 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
874 { (exit 1); exit 1; }; }
875 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
876 eval enable_$ac_feature=\$ac_optarg ;;
878 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
879 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
880 | --exec | --exe | --ex)
881 ac_prev=exec_prefix ;;
882 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
883 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
884 | --exec=* | --exe=* | --ex=*)
885 exec_prefix=$ac_optarg ;;
887 -gas | --gas | --ga | --g)
888 # Obsolete; use --with-gas.
889 with_gas=yes ;;
891 -help | --help | --hel | --he | -h)
892 ac_init_help=long ;;
893 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
894 ac_init_help=recursive ;;
895 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
896 ac_init_help=short ;;
898 -host | --host | --hos | --ho)
899 ac_prev=host_alias ;;
900 -host=* | --host=* | --hos=* | --ho=*)
901 host_alias=$ac_optarg ;;
903 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
904 ac_prev=htmldir ;;
905 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
906 | --ht=*)
907 htmldir=$ac_optarg ;;
909 -includedir | --includedir | --includedi | --included | --include \
910 | --includ | --inclu | --incl | --inc)
911 ac_prev=includedir ;;
912 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
913 | --includ=* | --inclu=* | --incl=* | --inc=*)
914 includedir=$ac_optarg ;;
916 -infodir | --infodir | --infodi | --infod | --info | --inf)
917 ac_prev=infodir ;;
918 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
919 infodir=$ac_optarg ;;
921 -libdir | --libdir | --libdi | --libd)
922 ac_prev=libdir ;;
923 -libdir=* | --libdir=* | --libdi=* | --libd=*)
924 libdir=$ac_optarg ;;
926 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
927 | --libexe | --libex | --libe)
928 ac_prev=libexecdir ;;
929 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
930 | --libexe=* | --libex=* | --libe=*)
931 libexecdir=$ac_optarg ;;
933 -localedir | --localedir | --localedi | --localed | --locale)
934 ac_prev=localedir ;;
935 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
936 localedir=$ac_optarg ;;
938 -localstatedir | --localstatedir | --localstatedi | --localstated \
939 | --localstate | --localstat | --localsta | --localst | --locals)
940 ac_prev=localstatedir ;;
941 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
942 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
943 localstatedir=$ac_optarg ;;
945 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
946 ac_prev=mandir ;;
947 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
948 mandir=$ac_optarg ;;
950 -nfp | --nfp | --nf)
951 # Obsolete; use --without-fp.
952 with_fp=no ;;
954 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
955 | --no-cr | --no-c | -n)
956 no_create=yes ;;
958 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
959 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
960 no_recursion=yes ;;
962 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
963 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
964 | --oldin | --oldi | --old | --ol | --o)
965 ac_prev=oldincludedir ;;
966 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
967 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
968 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
969 oldincludedir=$ac_optarg ;;
971 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
972 ac_prev=prefix ;;
973 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
974 prefix=$ac_optarg ;;
976 -program-prefix | --program-prefix | --program-prefi | --program-pref \
977 | --program-pre | --program-pr | --program-p)
978 ac_prev=program_prefix ;;
979 -program-prefix=* | --program-prefix=* | --program-prefi=* \
980 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
981 program_prefix=$ac_optarg ;;
983 -program-suffix | --program-suffix | --program-suffi | --program-suff \
984 | --program-suf | --program-su | --program-s)
985 ac_prev=program_suffix ;;
986 -program-suffix=* | --program-suffix=* | --program-suffi=* \
987 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
988 program_suffix=$ac_optarg ;;
990 -program-transform-name | --program-transform-name \
991 | --program-transform-nam | --program-transform-na \
992 | --program-transform-n | --program-transform- \
993 | --program-transform | --program-transfor \
994 | --program-transfo | --program-transf \
995 | --program-trans | --program-tran \
996 | --progr-tra | --program-tr | --program-t)
997 ac_prev=program_transform_name ;;
998 -program-transform-name=* | --program-transform-name=* \
999 | --program-transform-nam=* | --program-transform-na=* \
1000 | --program-transform-n=* | --program-transform-=* \
1001 | --program-transform=* | --program-transfor=* \
1002 | --program-transfo=* | --program-transf=* \
1003 | --program-trans=* | --program-tran=* \
1004 | --progr-tra=* | --program-tr=* | --program-t=*)
1005 program_transform_name=$ac_optarg ;;
1007 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1008 ac_prev=pdfdir ;;
1009 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1010 pdfdir=$ac_optarg ;;
1012 -psdir | --psdir | --psdi | --psd | --ps)
1013 ac_prev=psdir ;;
1014 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1015 psdir=$ac_optarg ;;
1017 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1018 | -silent | --silent | --silen | --sile | --sil)
1019 silent=yes ;;
1021 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1022 ac_prev=sbindir ;;
1023 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1024 | --sbi=* | --sb=*)
1025 sbindir=$ac_optarg ;;
1027 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1028 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1029 | --sharedst | --shareds | --shared | --share | --shar \
1030 | --sha | --sh)
1031 ac_prev=sharedstatedir ;;
1032 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1033 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1034 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1035 | --sha=* | --sh=*)
1036 sharedstatedir=$ac_optarg ;;
1038 -site | --site | --sit)
1039 ac_prev=site ;;
1040 -site=* | --site=* | --sit=*)
1041 site=$ac_optarg ;;
1043 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1044 ac_prev=srcdir ;;
1045 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1046 srcdir=$ac_optarg ;;
1048 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1049 | --syscon | --sysco | --sysc | --sys | --sy)
1050 ac_prev=sysconfdir ;;
1051 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1052 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1053 sysconfdir=$ac_optarg ;;
1055 -target | --target | --targe | --targ | --tar | --ta | --t)
1056 ac_prev=target_alias ;;
1057 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1058 target_alias=$ac_optarg ;;
1060 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1061 verbose=yes ;;
1063 -version | --version | --versio | --versi | --vers | -V)
1064 ac_init_version=: ;;
1066 -with-* | --with-*)
1067 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1068 # Reject names that are not valid shell variable names.
1069 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1070 { echo "$as_me: error: invalid package name: $ac_package" >&2
1071 { (exit 1); exit 1; }; }
1072 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1073 eval with_$ac_package=\$ac_optarg ;;
1075 -without-* | --without-*)
1076 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1077 # Reject names that are not valid shell variable names.
1078 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1079 { echo "$as_me: error: invalid package name: $ac_package" >&2
1080 { (exit 1); exit 1; }; }
1081 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1082 eval with_$ac_package=no ;;
1084 --x)
1085 # Obsolete; use --with-x.
1086 with_x=yes ;;
1088 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1089 | --x-incl | --x-inc | --x-in | --x-i)
1090 ac_prev=x_includes ;;
1091 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1092 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1093 x_includes=$ac_optarg ;;
1095 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1096 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1097 ac_prev=x_libraries ;;
1098 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1099 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1100 x_libraries=$ac_optarg ;;
1102 -*) { echo "$as_me: error: unrecognized option: $ac_option
1103 Try \`$0 --help' for more information." >&2
1104 { (exit 1); exit 1; }; }
1107 *=*)
1108 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1109 # Reject names that are not valid shell variable names.
1110 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1111 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1112 { (exit 1); exit 1; }; }
1113 eval $ac_envvar=\$ac_optarg
1114 export $ac_envvar ;;
1117 # FIXME: should be removed in autoconf 3.0.
1118 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1119 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1120 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1121 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1124 esac
1125 done
1127 if test -n "$ac_prev"; then
1128 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1129 { echo "$as_me: error: missing argument to $ac_option" >&2
1130 { (exit 1); exit 1; }; }
1133 # Be sure to have absolute directory names.
1134 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1135 datadir sysconfdir sharedstatedir localstatedir includedir \
1136 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1137 libdir localedir mandir
1139 eval ac_val=\$$ac_var
1140 case $ac_val in
1141 [\\/$]* | ?:[\\/]* ) continue;;
1142 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1143 esac
1144 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1145 { (exit 1); exit 1; }; }
1146 done
1148 # There might be people who depend on the old broken behavior: `$host'
1149 # used to hold the argument of --host etc.
1150 # FIXME: To remove some day.
1151 build=$build_alias
1152 host=$host_alias
1153 target=$target_alias
1155 # FIXME: To remove some day.
1156 if test "x$host_alias" != x; then
1157 if test "x$build_alias" = x; then
1158 cross_compiling=maybe
1159 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1160 If a cross compiler is detected then cross compile mode will be used." >&2
1161 elif test "x$build_alias" != "x$host_alias"; then
1162 cross_compiling=yes
1166 ac_tool_prefix=
1167 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1169 test "$silent" = yes && exec 6>/dev/null
1172 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1173 ac_ls_di=`ls -di .` &&
1174 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1175 { echo "$as_me: error: Working directory cannot be determined" >&2
1176 { (exit 1); exit 1; }; }
1177 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1178 { echo "$as_me: error: pwd does not report name of working directory" >&2
1179 { (exit 1); exit 1; }; }
1182 # Find the source files, if location was not specified.
1183 if test -z "$srcdir"; then
1184 ac_srcdir_defaulted=yes
1185 # Try the directory containing this script, then the parent directory.
1186 ac_confdir=`$as_dirname -- "$0" ||
1187 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1188 X"$0" : 'X\(//\)[^/]' \| \
1189 X"$0" : 'X\(//\)$' \| \
1190 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1191 echo X"$0" |
1192 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1193 s//\1/
1196 /^X\(\/\/\)[^/].*/{
1197 s//\1/
1200 /^X\(\/\/\)$/{
1201 s//\1/
1204 /^X\(\/\).*/{
1205 s//\1/
1208 s/.*/./; q'`
1209 srcdir=$ac_confdir
1210 if test ! -r "$srcdir/$ac_unique_file"; then
1211 srcdir=..
1213 else
1214 ac_srcdir_defaulted=no
1216 if test ! -r "$srcdir/$ac_unique_file"; then
1217 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1218 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1219 { (exit 1); exit 1; }; }
1221 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1222 ac_abs_confdir=`(
1223 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1224 { (exit 1); exit 1; }; }
1225 pwd)`
1226 # When building in place, set srcdir=.
1227 if test "$ac_abs_confdir" = "$ac_pwd"; then
1228 srcdir=.
1230 # Remove unnecessary trailing slashes from srcdir.
1231 # Double slashes in file names in object file debugging info
1232 # mess up M-x gdb in Emacs.
1233 case $srcdir in
1234 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1235 esac
1236 for ac_var in $ac_precious_vars; do
1237 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1238 eval ac_env_${ac_var}_value=\$${ac_var}
1239 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1240 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1241 done
1244 # Report the --help message.
1246 if test "$ac_init_help" = "long"; then
1247 # Omit some internal or obsolete options to make the list less imposing.
1248 # This message is too long to be a string in the A/UX 3.1 sh.
1249 cat <<_ACEOF
1250 \`configure' configures python 2.7 to adapt to many kinds of systems.
1252 Usage: $0 [OPTION]... [VAR=VALUE]...
1254 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1255 VAR=VALUE. See below for descriptions of some of the useful variables.
1257 Defaults for the options are specified in brackets.
1259 Configuration:
1260 -h, --help display this help and exit
1261 --help=short display options specific to this package
1262 --help=recursive display the short help of all the included packages
1263 -V, --version display version information and exit
1264 -q, --quiet, --silent do not print \`checking...' messages
1265 --cache-file=FILE cache test results in FILE [disabled]
1266 -C, --config-cache alias for \`--cache-file=config.cache'
1267 -n, --no-create do not create output files
1268 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1270 Installation directories:
1271 --prefix=PREFIX install architecture-independent files in PREFIX
1272 [$ac_default_prefix]
1273 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1274 [PREFIX]
1276 By default, \`make install' will install all the files in
1277 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1278 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1279 for instance \`--prefix=\$HOME'.
1281 For better control, use the options below.
1283 Fine tuning of the installation directories:
1284 --bindir=DIR user executables [EPREFIX/bin]
1285 --sbindir=DIR system admin executables [EPREFIX/sbin]
1286 --libexecdir=DIR program executables [EPREFIX/libexec]
1287 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1288 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1289 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1290 --libdir=DIR object code libraries [EPREFIX/lib]
1291 --includedir=DIR C header files [PREFIX/include]
1292 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1293 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1294 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1295 --infodir=DIR info documentation [DATAROOTDIR/info]
1296 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1297 --mandir=DIR man documentation [DATAROOTDIR/man]
1298 --docdir=DIR documentation root [DATAROOTDIR/doc/python]
1299 --htmldir=DIR html documentation [DOCDIR]
1300 --dvidir=DIR dvi documentation [DOCDIR]
1301 --pdfdir=DIR pdf documentation [DOCDIR]
1302 --psdir=DIR ps documentation [DOCDIR]
1303 _ACEOF
1305 cat <<\_ACEOF
1306 _ACEOF
1309 if test -n "$ac_init_help"; then
1310 case $ac_init_help in
1311 short | recursive ) echo "Configuration of python 2.7:";;
1312 esac
1313 cat <<\_ACEOF
1315 Optional Features:
1316 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1317 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1318 --enable-universalsdk[=SDKDIR]
1319 Build against Mac OS X 10.4u SDK (ppc/i386)
1320 --enable-framework[=INSTALLDIR]
1321 Build (MacOSX|Darwin) framework
1322 --enable-shared disable/enable building shared python library
1323 --enable-profiling enable C-level code profiling
1324 --enable-toolbox-glue disable/enable MacOSX glue code for extensions
1325 --enable-ipv6 Enable ipv6 (with ipv4) support
1326 --disable-ipv6 Disable ipv6 support
1327 --enable-big-digits[=BITS]
1328 use big digits for Python longs [BITS=30]
1329 --enable-unicode[=ucs[24]]
1330 Enable Unicode strings (default is yes)
1332 Optional Packages:
1333 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1334 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1335 --with-universal-archs=ARCH
1336 select architectures for universal build ("32-bit",
1337 "64-bit" or "all")
1338 --with-framework-name=FRAMEWORK
1339 specify an alternate name of the framework built
1340 with --enable-framework
1341 --without-gcc never use gcc
1342 --with-cxx-main=<compiler>
1343 compile main() and link python executable with C++
1344 compiler
1345 --with-suffix=.exe set executable suffix
1346 --with-pydebug build with Py_DEBUG defined
1347 --with-libs='lib1 ...' link against additional libs
1348 --with-system-ffi build _ctypes module using an installed ffi library
1349 --with-signal-module disable/enable signal module
1350 --with-dec-threads use DEC Alpha/OSF1 thread-safe libraries
1351 --with(out)-threads[=DIRECTORY]
1352 disable/enable thread support
1353 --with(out)-thread[=DIRECTORY]
1354 deprecated; use --with(out)-threads
1355 --with-pth use GNU pth threading libraries
1356 --with(out)-doc-strings disable/enable documentation strings
1357 --with(out)-tsc enable/disable timestamp counter profile
1358 --with(out)-pymalloc disable/enable specialized mallocs
1359 --with-wctype-functions use wctype.h functions
1360 --with-fpectl enable SIGFPE catching
1361 --with-libm=STRING math library
1362 --with-libc=STRING C library
1364 Some influential environment variables:
1365 CC C compiler command
1366 CFLAGS C compiler flags
1367 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1368 nonstandard directory <lib dir>
1369 LIBS libraries to pass to the linker, e.g. -l<library>
1370 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1371 you have headers in a nonstandard directory <include dir>
1372 CPP C preprocessor
1374 Use these variables to override the choices made by `configure' or to help
1375 it to find libraries and programs with nonstandard names/locations.
1377 Report bugs to <http://www.python.org/python-bugs>.
1378 _ACEOF
1379 ac_status=$?
1382 if test "$ac_init_help" = "recursive"; then
1383 # If there are subdirs, report their specific --help.
1384 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1385 test -d "$ac_dir" || continue
1386 ac_builddir=.
1388 case "$ac_dir" in
1389 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1391 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1392 # A ".." for each directory in $ac_dir_suffix.
1393 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1394 case $ac_top_builddir_sub in
1395 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1396 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1397 esac ;;
1398 esac
1399 ac_abs_top_builddir=$ac_pwd
1400 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1401 # for backward compatibility:
1402 ac_top_builddir=$ac_top_build_prefix
1404 case $srcdir in
1405 .) # We are building in place.
1406 ac_srcdir=.
1407 ac_top_srcdir=$ac_top_builddir_sub
1408 ac_abs_top_srcdir=$ac_pwd ;;
1409 [\\/]* | ?:[\\/]* ) # Absolute name.
1410 ac_srcdir=$srcdir$ac_dir_suffix;
1411 ac_top_srcdir=$srcdir
1412 ac_abs_top_srcdir=$srcdir ;;
1413 *) # Relative name.
1414 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1415 ac_top_srcdir=$ac_top_build_prefix$srcdir
1416 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1417 esac
1418 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1420 cd "$ac_dir" || { ac_status=$?; continue; }
1421 # Check for guested configure.
1422 if test -f "$ac_srcdir/configure.gnu"; then
1423 echo &&
1424 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1425 elif test -f "$ac_srcdir/configure"; then
1426 echo &&
1427 $SHELL "$ac_srcdir/configure" --help=recursive
1428 else
1429 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1430 fi || ac_status=$?
1431 cd "$ac_pwd" || { ac_status=$?; break; }
1432 done
1435 test -n "$ac_init_help" && exit $ac_status
1436 if $ac_init_version; then
1437 cat <<\_ACEOF
1438 python configure 2.7
1439 generated by GNU Autoconf 2.61
1441 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1442 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1443 This configure script is free software; the Free Software Foundation
1444 gives unlimited permission to copy, distribute and modify it.
1445 _ACEOF
1446 exit
1448 cat >config.log <<_ACEOF
1449 This file contains any messages produced by compilers while
1450 running configure, to aid debugging if configure makes a mistake.
1452 It was created by python $as_me 2.7, which was
1453 generated by GNU Autoconf 2.61. Invocation command line was
1455 $ $0 $@
1457 _ACEOF
1458 exec 5>>config.log
1460 cat <<_ASUNAME
1461 ## --------- ##
1462 ## Platform. ##
1463 ## --------- ##
1465 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1466 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1467 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1468 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1469 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1471 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1472 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1474 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1475 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1476 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1477 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1478 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1479 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1480 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1482 _ASUNAME
1484 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1485 for as_dir in $PATH
1487 IFS=$as_save_IFS
1488 test -z "$as_dir" && as_dir=.
1489 echo "PATH: $as_dir"
1490 done
1491 IFS=$as_save_IFS
1493 } >&5
1495 cat >&5 <<_ACEOF
1498 ## ----------- ##
1499 ## Core tests. ##
1500 ## ----------- ##
1502 _ACEOF
1505 # Keep a trace of the command line.
1506 # Strip out --no-create and --no-recursion so they do not pile up.
1507 # Strip out --silent because we don't want to record it for future runs.
1508 # Also quote any args containing shell meta-characters.
1509 # Make two passes to allow for proper duplicate-argument suppression.
1510 ac_configure_args=
1511 ac_configure_args0=
1512 ac_configure_args1=
1513 ac_must_keep_next=false
1514 for ac_pass in 1 2
1516 for ac_arg
1518 case $ac_arg in
1519 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1520 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1521 | -silent | --silent | --silen | --sile | --sil)
1522 continue ;;
1523 *\'*)
1524 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1525 esac
1526 case $ac_pass in
1527 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1529 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1530 if test $ac_must_keep_next = true; then
1531 ac_must_keep_next=false # Got value, back to normal.
1532 else
1533 case $ac_arg in
1534 *=* | --config-cache | -C | -disable-* | --disable-* \
1535 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1536 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1537 | -with-* | --with-* | -without-* | --without-* | --x)
1538 case "$ac_configure_args0 " in
1539 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1540 esac
1542 -* ) ac_must_keep_next=true ;;
1543 esac
1545 ac_configure_args="$ac_configure_args '$ac_arg'"
1547 esac
1548 done
1549 done
1550 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1551 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1553 # When interrupted or exit'd, cleanup temporary files, and complete
1554 # config.log. We remove comments because anyway the quotes in there
1555 # would cause problems or look ugly.
1556 # WARNING: Use '\'' to represent an apostrophe within the trap.
1557 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1558 trap 'exit_status=$?
1559 # Save into config.log some information that might help in debugging.
1561 echo
1563 cat <<\_ASBOX
1564 ## ---------------- ##
1565 ## Cache variables. ##
1566 ## ---------------- ##
1567 _ASBOX
1568 echo
1569 # The following way of writing the cache mishandles newlines in values,
1571 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1572 eval ac_val=\$$ac_var
1573 case $ac_val in #(
1574 *${as_nl}*)
1575 case $ac_var in #(
1576 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1577 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1578 esac
1579 case $ac_var in #(
1580 _ | IFS | as_nl) ;; #(
1581 *) $as_unset $ac_var ;;
1582 esac ;;
1583 esac
1584 done
1585 (set) 2>&1 |
1586 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1587 *${as_nl}ac_space=\ *)
1588 sed -n \
1589 "s/'\''/'\''\\\\'\'''\''/g;
1590 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1591 ;; #(
1593 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1595 esac |
1596 sort
1598 echo
1600 cat <<\_ASBOX
1601 ## ----------------- ##
1602 ## Output variables. ##
1603 ## ----------------- ##
1604 _ASBOX
1605 echo
1606 for ac_var in $ac_subst_vars
1608 eval ac_val=\$$ac_var
1609 case $ac_val in
1610 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1611 esac
1612 echo "$ac_var='\''$ac_val'\''"
1613 done | sort
1614 echo
1616 if test -n "$ac_subst_files"; then
1617 cat <<\_ASBOX
1618 ## ------------------- ##
1619 ## File substitutions. ##
1620 ## ------------------- ##
1621 _ASBOX
1622 echo
1623 for ac_var in $ac_subst_files
1625 eval ac_val=\$$ac_var
1626 case $ac_val in
1627 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1628 esac
1629 echo "$ac_var='\''$ac_val'\''"
1630 done | sort
1631 echo
1634 if test -s confdefs.h; then
1635 cat <<\_ASBOX
1636 ## ----------- ##
1637 ## confdefs.h. ##
1638 ## ----------- ##
1639 _ASBOX
1640 echo
1641 cat confdefs.h
1642 echo
1644 test "$ac_signal" != 0 &&
1645 echo "$as_me: caught signal $ac_signal"
1646 echo "$as_me: exit $exit_status"
1647 } >&5
1648 rm -f core *.core core.conftest.* &&
1649 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1650 exit $exit_status
1652 for ac_signal in 1 2 13 15; do
1653 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1654 done
1655 ac_signal=0
1657 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1658 rm -f -r conftest* confdefs.h
1660 # Predefined preprocessor variables.
1662 cat >>confdefs.h <<_ACEOF
1663 #define PACKAGE_NAME "$PACKAGE_NAME"
1664 _ACEOF
1667 cat >>confdefs.h <<_ACEOF
1668 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1669 _ACEOF
1672 cat >>confdefs.h <<_ACEOF
1673 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1674 _ACEOF
1677 cat >>confdefs.h <<_ACEOF
1678 #define PACKAGE_STRING "$PACKAGE_STRING"
1679 _ACEOF
1682 cat >>confdefs.h <<_ACEOF
1683 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1684 _ACEOF
1687 # Let the site file select an alternate cache file if it wants to.
1688 # Prefer explicitly selected file to automatically selected ones.
1689 if test -n "$CONFIG_SITE"; then
1690 set x "$CONFIG_SITE"
1691 elif test "x$prefix" != xNONE; then
1692 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1693 else
1694 set x "$ac_default_prefix/share/config.site" \
1695 "$ac_default_prefix/etc/config.site"
1697 shift
1698 for ac_site_file
1700 if test -r "$ac_site_file"; then
1701 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1702 echo "$as_me: loading site script $ac_site_file" >&6;}
1703 sed 's/^/| /' "$ac_site_file" >&5
1704 . "$ac_site_file"
1706 done
1708 if test -r "$cache_file"; then
1709 # Some versions of bash will fail to source /dev/null (special
1710 # files actually), so we avoid doing that.
1711 if test -f "$cache_file"; then
1712 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1713 echo "$as_me: loading cache $cache_file" >&6;}
1714 case $cache_file in
1715 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1716 *) . "./$cache_file";;
1717 esac
1719 else
1720 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1721 echo "$as_me: creating cache $cache_file" >&6;}
1722 >$cache_file
1725 # Check that the precious variables saved in the cache have kept the same
1726 # value.
1727 ac_cache_corrupted=false
1728 for ac_var in $ac_precious_vars; do
1729 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1730 eval ac_new_set=\$ac_env_${ac_var}_set
1731 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1732 eval ac_new_val=\$ac_env_${ac_var}_value
1733 case $ac_old_set,$ac_new_set in
1734 set,)
1735 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1736 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1737 ac_cache_corrupted=: ;;
1738 ,set)
1739 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1740 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1741 ac_cache_corrupted=: ;;
1742 ,);;
1744 if test "x$ac_old_val" != "x$ac_new_val"; then
1745 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1746 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1747 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1748 echo "$as_me: former value: $ac_old_val" >&2;}
1749 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1750 echo "$as_me: current value: $ac_new_val" >&2;}
1751 ac_cache_corrupted=:
1752 fi;;
1753 esac
1754 # Pass precious variables to config.status.
1755 if test "$ac_new_set" = set; then
1756 case $ac_new_val in
1757 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1758 *) ac_arg=$ac_var=$ac_new_val ;;
1759 esac
1760 case " $ac_configure_args " in
1761 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1762 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1763 esac
1765 done
1766 if $ac_cache_corrupted; then
1767 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1768 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1769 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1770 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1771 { (exit 1); exit 1; }; }
1798 ac_ext=c
1799 ac_cpp='$CPP $CPPFLAGS'
1800 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1801 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1802 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1806 ac_config_headers="$ac_config_headers pyconfig.h"
1814 # We don't use PACKAGE_ variables, and they cause conflicts
1815 # with other autoconf-based packages that include Python.h
1816 grep -v 'define PACKAGE_' <confdefs.h >confdefs.h.new
1817 rm confdefs.h
1818 mv confdefs.h.new confdefs.h
1821 VERSION=2.7
1824 SOVERSION=1.0
1826 # The later defininition of _XOPEN_SOURCE disables certain features
1827 # on Linux, so we need _GNU_SOURCE to re-enable them (makedev, tm_zone).
1829 cat >>confdefs.h <<\_ACEOF
1830 #define _GNU_SOURCE 1
1831 _ACEOF
1834 # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables
1835 # certain features on NetBSD, so we need _NETBSD_SOURCE to re-enable
1836 # them.
1838 cat >>confdefs.h <<\_ACEOF
1839 #define _NETBSD_SOURCE 1
1840 _ACEOF
1843 # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables
1844 # certain features on FreeBSD, so we need __BSD_VISIBLE to re-enable
1845 # them.
1847 cat >>confdefs.h <<\_ACEOF
1848 #define __BSD_VISIBLE 1
1849 _ACEOF
1852 # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables
1853 # u_int on Irix 5.3. Defining _BSD_TYPES brings it back.
1855 cat >>confdefs.h <<\_ACEOF
1856 #define _BSD_TYPES 1
1857 _ACEOF
1860 # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables
1861 # certain features on Mac OS X, so we need _DARWIN_C_SOURCE to re-enable
1862 # them.
1864 cat >>confdefs.h <<\_ACEOF
1865 #define _DARWIN_C_SOURCE 1
1866 _ACEOF
1870 define_xopen_source=yes
1872 # Arguments passed to configure.
1874 CONFIG_ARGS="$ac_configure_args"
1876 # Check whether --enable-universalsdk was given.
1877 if test "${enable_universalsdk+set}" = set; then
1878 enableval=$enable_universalsdk;
1879 case $enableval in
1880 yes)
1881 enableval=/Developer/SDKs/MacOSX10.4u.sdk
1883 esac
1884 case $enableval in
1886 UNIVERSALSDK=
1887 enable_universalsdk=
1890 UNIVERSALSDK=$enableval
1892 esac
1894 else
1896 UNIVERSALSDK=
1897 enable_universalsdk=
1903 ARCH_RUN_32BIT=
1906 UNIVERSAL_ARCHS="32-bit"
1907 { echo "$as_me:$LINENO: checking for --with-universal-archs" >&5
1908 echo $ECHO_N "checking for --with-universal-archs... $ECHO_C" >&6; }
1910 # Check whether --with-universal-archs was given.
1911 if test "${with_universal_archs+set}" = set; then
1912 withval=$with_universal_archs;
1913 { echo "$as_me:$LINENO: result: $withval" >&5
1914 echo "${ECHO_T}$withval" >&6; }
1915 UNIVERSAL_ARCHS="$withval"
1917 else
1919 { echo "$as_me:$LINENO: result: 32-bit" >&5
1920 echo "${ECHO_T}32-bit" >&6; }
1928 # Check whether --with-framework-name was given.
1929 if test "${with_framework_name+set}" = set; then
1930 withval=$with_framework_name;
1931 PYTHONFRAMEWORK=${withval}
1932 PYTHONFRAMEWORKDIR=${withval}.framework
1933 PYTHONFRAMEWORKIDENTIFIER=org.python.`echo $withval | tr 'A-Z' 'a-z'`
1935 else
1937 PYTHONFRAMEWORK=Python
1938 PYTHONFRAMEWORKDIR=Python.framework
1939 PYTHONFRAMEWORKIDENTIFIER=org.python.python
1943 # Check whether --enable-framework was given.
1944 if test "${enable_framework+set}" = set; then
1945 enableval=$enable_framework;
1946 case $enableval in
1947 yes)
1948 enableval=/Library/Frameworks
1949 esac
1950 case $enableval in
1952 PYTHONFRAMEWORK=
1953 PYTHONFRAMEWORKDIR=no-framework
1954 PYTHONFRAMEWORKPREFIX=
1955 PYTHONFRAMEWORKINSTALLDIR=
1956 FRAMEWORKINSTALLFIRST=
1957 FRAMEWORKINSTALLLAST=
1958 FRAMEWORKALTINSTALLFIRST=
1959 FRAMEWORKALTINSTALLLAST=
1960 if test "x${prefix}" = "xNONE"; then
1961 FRAMEWORKUNIXTOOLSPREFIX="${ac_default_prefix}"
1962 else
1963 FRAMEWORKUNIXTOOLSPREFIX="${prefix}"
1965 enable_framework=
1968 PYTHONFRAMEWORKPREFIX=$enableval
1969 PYTHONFRAMEWORKINSTALLDIR=$PYTHONFRAMEWORKPREFIX/$PYTHONFRAMEWORKDIR
1970 FRAMEWORKINSTALLFIRST="frameworkinstallstructure"
1971 FRAMEWORKALTINSTALLFIRST="frameworkinstallstructure bininstall maninstall"
1972 if test "$UNIVERSAL_ARCHS" = "all"
1973 then
1974 FRAMEWORKINSTALLLAST="frameworkinstallmaclib frameworkinstallapps4way frameworkinstallunixtools4way"
1975 FRAMEWORKALTINSTALLLAST="frameworkinstallmaclib frameworkinstallapps4way frameworkaltinstallunixtools4way"
1976 else
1977 FRAMEWORKINSTALLLAST="frameworkinstallmaclib frameworkinstallapps frameworkinstallunixtools"
1978 FRAMEWORKALTINSTALLLAST="frameworkinstallmaclib frameworkinstallapps frameworkaltinstallunixtools"
1981 if test "x${prefix}" = "xNONE" ; then
1982 FRAMEWORKUNIXTOOLSPREFIX="${ac_default_prefix}"
1983 else
1984 FRAMEWORKUNIXTOOLSPREFIX="${prefix}"
1986 prefix=$PYTHONFRAMEWORKINSTALLDIR/Versions/$VERSION
1988 # Add files for Mac specific code to the list of output
1989 # files:
1990 ac_config_files="$ac_config_files Mac/Makefile"
1992 ac_config_files="$ac_config_files Mac/PythonLauncher/Makefile"
1994 ac_config_files="$ac_config_files Mac/IDLE/Makefile"
1996 ac_config_files="$ac_config_files Mac/Resources/framework/Info.plist"
1998 ac_config_files="$ac_config_files Mac/Resources/app/Info.plist"
2000 esac
2002 else
2004 PYTHONFRAMEWORK=
2005 PYTHONFRAMEWORKDIR=no-framework
2006 PYTHONFRAMEWORKPREFIX=
2007 PYTHONFRAMEWORKINSTALLDIR=
2008 FRAMEWORKINSTALLFIRST=
2009 FRAMEWORKINSTALLLAST=
2010 FRAMEWORKALTINSTALLFIRST=
2011 FRAMEWORKALTINSTALLLAST=
2012 if test "x${prefix}" = "xNONE" ; then
2013 FRAMEWORKUNIXTOOLSPREFIX="${ac_default_prefix}"
2014 else
2015 FRAMEWORKUNIXTOOLSPREFIX="${prefix}"
2017 enable_framework=
2019 if test "$UNIVERSAL_ARCHS" = "all"
2020 then
2021 FRAMEWORKINSTALLLAST=update4wayuniversal
2022 FRAMEWORKALTINSTALLLAST=update4wayuniversal
2038 ##AC_ARG_WITH(dyld,
2039 ## AC_HELP_STRING(--with-dyld,
2040 ## Use (OpenStep|Rhapsody) dynamic linker))
2042 # Set name for machine-dependent library files
2044 { echo "$as_me:$LINENO: checking MACHDEP" >&5
2045 echo $ECHO_N "checking MACHDEP... $ECHO_C" >&6; }
2046 if test -z "$MACHDEP"
2047 then
2048 ac_sys_system=`uname -s`
2049 if test "$ac_sys_system" = "AIX" -o "$ac_sys_system" = "Monterey64" \
2050 -o "$ac_sys_system" = "UnixWare" -o "$ac_sys_system" = "OpenUNIX"; then
2051 ac_sys_release=`uname -v`
2052 else
2053 ac_sys_release=`uname -r`
2055 ac_md_system=`echo $ac_sys_system |
2056 tr -d '/ ' | tr '[A-Z]' '[a-z]'`
2057 ac_md_release=`echo $ac_sys_release |
2058 tr -d '/ ' | sed 's/^[A-Z]\.//' | sed 's/\..*//'`
2059 MACHDEP="$ac_md_system$ac_md_release"
2061 case $MACHDEP in
2062 cygwin*) MACHDEP="cygwin";;
2063 darwin*) MACHDEP="darwin";;
2064 atheos*) MACHDEP="atheos";;
2065 irix646) MACHDEP="irix6";;
2066 '') MACHDEP="unknown";;
2067 esac
2070 # Some systems cannot stand _XOPEN_SOURCE being defined at all; they
2071 # disable features if it is defined, without any means to access these
2072 # features as extensions. For these systems, we skip the definition of
2073 # _XOPEN_SOURCE. Before adding a system to the list to gain access to
2074 # some feature, make sure there is no alternative way to access this
2075 # feature. Also, when using wildcards, make sure you have verified the
2076 # need for not defining _XOPEN_SOURCE on all systems matching the
2077 # wildcard, and that the wildcard does not include future systems
2078 # (which may remove their limitations).
2079 case $ac_sys_system/$ac_sys_release in
2080 # On OpenBSD, select(2) is not available if _XOPEN_SOURCE is defined,
2081 # even though select is a POSIX function. Reported by J. Ribbens.
2082 # Reconfirmed for OpenBSD 3.3 by Zachary Hamm, for 3.4 by Jason Ish.
2083 OpenBSD/2.* | OpenBSD/3.[0123456789] | OpenBSD/4.[0123])
2084 define_xopen_source=no
2085 # OpenBSD undoes our definition of __BSD_VISIBLE if _XOPEN_SOURCE is
2086 # also defined. This can be overridden by defining _BSD_SOURCE
2087 # As this has a different meaning on Linux, only define it on OpenBSD
2089 cat >>confdefs.h <<\_ACEOF
2090 #define _BSD_SOURCE 1
2091 _ACEOF
2094 # Defining _XOPEN_SOURCE on NetBSD version prior to the introduction of
2095 # _NETBSD_SOURCE disables certain features (eg. setgroups). Reported by
2096 # Marc Recht
2097 NetBSD/1.5 | NetBSD/1.5.* | NetBSD/1.6 | NetBSD/1.6.* | NetBSD/1.6[A-S])
2098 define_xopen_source=no;;
2099 # On Solaris 2.6, sys/wait.h is inconsistent in the usage
2100 # of union __?sigval. Reported by Stuart Bishop.
2101 SunOS/5.6)
2102 define_xopen_source=no;;
2103 # On UnixWare 7, u_long is never defined with _XOPEN_SOURCE,
2104 # but used in /usr/include/netinet/tcp.h. Reported by Tim Rice.
2105 # Reconfirmed for 7.1.4 by Martin v. Loewis.
2106 OpenUNIX/8.0.0| UnixWare/7.1.[0-4])
2107 define_xopen_source=no;;
2108 # On OpenServer 5, u_short is never defined with _XOPEN_SOURCE,
2109 # but used in struct sockaddr.sa_family. Reported by Tim Rice.
2110 SCO_SV/3.2)
2111 define_xopen_source=no;;
2112 # On FreeBSD 4, the math functions C89 does not cover are never defined
2113 # with _XOPEN_SOURCE and __BSD_VISIBLE does not re-enable them.
2114 FreeBSD/4.*)
2115 define_xopen_source=no;;
2116 # On MacOS X 10.2, a bug in ncurses.h means that it craps out if
2117 # _XOPEN_EXTENDED_SOURCE is defined. Apparently, this is fixed in 10.3, which
2118 # identifies itself as Darwin/7.*
2119 # On Mac OS X 10.4, defining _POSIX_C_SOURCE or _XOPEN_SOURCE
2120 # disables platform specific features beyond repair.
2121 # On Mac OS X 10.3, defining _POSIX_C_SOURCE or _XOPEN_SOURCE
2122 # has no effect, don't bother defining them
2123 Darwin/[6789].*)
2124 define_xopen_source=no;;
2125 # On AIX 4 and 5.1, mbstate_t is defined only when _XOPEN_SOURCE == 500 but
2126 # used in wcsnrtombs() and mbsnrtowcs() even if _XOPEN_SOURCE is not defined
2127 # or has another value. By not (re)defining it, the defaults come in place.
2128 AIX/4)
2129 define_xopen_source=no;;
2130 AIX/5)
2131 if test `uname -r` -eq 1; then
2132 define_xopen_source=no
2135 # On QNX 6.3.2, defining _XOPEN_SOURCE prevents netdb.h from
2136 # defining NI_NUMERICHOST.
2137 QNX/6.3.2)
2138 define_xopen_source=no
2141 esac
2143 if test $define_xopen_source = yes
2144 then
2145 # On Solaris w/ g++ it appears that _XOPEN_SOURCE has to be
2146 # defined precisely as g++ defines it
2147 # Furthermore, on Solaris 10, XPG6 requires the use of a C99
2148 # compiler
2149 case $ac_sys_system/$ac_sys_release in
2150 SunOS/5.8|SunOS/5.9|SunOS/5.10)
2152 cat >>confdefs.h <<\_ACEOF
2153 #define _XOPEN_SOURCE 500
2154 _ACEOF
2159 cat >>confdefs.h <<\_ACEOF
2160 #define _XOPEN_SOURCE 600
2161 _ACEOF
2164 esac
2166 # On Tru64 Unix 4.0F, defining _XOPEN_SOURCE also requires
2167 # definition of _XOPEN_SOURCE_EXTENDED and _POSIX_C_SOURCE, or else
2168 # several APIs are not declared. Since this is also needed in some
2169 # cases for HP-UX, we define it globally.
2170 # except for Solaris 10, where it must not be defined,
2171 # as it implies XPG4.2
2172 case $ac_sys_system/$ac_sys_release in
2173 SunOS/5.10)
2177 cat >>confdefs.h <<\_ACEOF
2178 #define _XOPEN_SOURCE_EXTENDED 1
2179 _ACEOF
2182 esac
2185 cat >>confdefs.h <<\_ACEOF
2186 #define _POSIX_C_SOURCE 200112L
2187 _ACEOF
2193 # SGI compilers allow the specification of the both the ABI and the
2194 # ISA on the command line. Depending on the values of these switches,
2195 # different and often incompatable code will be generated.
2197 # The SGI_ABI variable can be used to modify the CC and LDFLAGS and
2198 # thus supply support for various ABI/ISA combinations. The MACHDEP
2199 # variable is also adjusted.
2202 if test ! -z "$SGI_ABI"
2203 then
2204 CC="cc $SGI_ABI"
2205 LDFLAGS="$SGI_ABI $LDFLAGS"
2206 MACHDEP=`echo "${MACHDEP}${SGI_ABI}" | sed 's/ *//g'`
2208 { echo "$as_me:$LINENO: result: $MACHDEP" >&5
2209 echo "${ECHO_T}$MACHDEP" >&6; }
2211 # And add extra plat-mac for darwin
2214 { echo "$as_me:$LINENO: checking EXTRAPLATDIR" >&5
2215 echo $ECHO_N "checking EXTRAPLATDIR... $ECHO_C" >&6; }
2216 if test -z "$EXTRAPLATDIR"
2217 then
2218 case $MACHDEP in
2219 darwin)
2220 EXTRAPLATDIR="\$(PLATMACDIRS)"
2221 EXTRAMACHDEPPATH="\$(PLATMACPATH)"
2224 EXTRAPLATDIR=""
2225 EXTRAMACHDEPPATH=""
2227 esac
2229 { echo "$as_me:$LINENO: result: $EXTRAPLATDIR" >&5
2230 echo "${ECHO_T}$EXTRAPLATDIR" >&6; }
2232 # Record the configure-time value of MACOSX_DEPLOYMENT_TARGET,
2233 # it may influence the way we can build extensions, so distutils
2234 # needs to check it
2237 CONFIGURE_MACOSX_DEPLOYMENT_TARGET=
2238 EXPORT_MACOSX_DEPLOYMENT_TARGET='#'
2240 { echo "$as_me:$LINENO: checking machine type as reported by uname -m" >&5
2241 echo $ECHO_N "checking machine type as reported by uname -m... $ECHO_C" >&6; }
2242 ac_sys_machine=`uname -m`
2243 { echo "$as_me:$LINENO: result: $ac_sys_machine" >&5
2244 echo "${ECHO_T}$ac_sys_machine" >&6; }
2246 # checks for alternative programs
2248 # compiler flags are generated in two sets, BASECFLAGS and OPT. OPT is just
2249 # for debug/optimization stuff. BASECFLAGS is for flags that are required
2250 # just to get things to compile and link. Users are free to override OPT
2251 # when running configure or make. The build should not break if they do.
2252 # BASECFLAGS should generally not be messed with, however.
2254 # XXX shouldn't some/most/all of this code be merged with the stuff later
2255 # on that fiddles with OPT and BASECFLAGS?
2256 { echo "$as_me:$LINENO: checking for --without-gcc" >&5
2257 echo $ECHO_N "checking for --without-gcc... $ECHO_C" >&6; }
2259 # Check whether --with-gcc was given.
2260 if test "${with_gcc+set}" = set; then
2261 withval=$with_gcc;
2262 case $withval in
2263 no) CC=${CC:-cc}
2264 without_gcc=yes;;
2265 yes) CC=gcc
2266 without_gcc=no;;
2267 *) CC=$withval
2268 without_gcc=$withval;;
2269 esac
2270 else
2272 case $ac_sys_system in
2273 AIX*) CC=cc_r
2274 without_gcc=;;
2275 BeOS*)
2276 case $BE_HOST_CPU in
2277 ppc)
2278 CC=mwcc
2279 without_gcc=yes
2280 BASECFLAGS="$BASECFLAGS -export pragma"
2281 OPT="$OPT -O"
2282 LDFLAGS="$LDFLAGS -nodup"
2284 x86)
2285 CC=gcc
2286 without_gcc=no
2287 OPT="$OPT -O"
2290 { { echo "$as_me:$LINENO: error: Unknown BeOS platform \"$BE_HOST_CPU\"" >&5
2291 echo "$as_me: error: Unknown BeOS platform \"$BE_HOST_CPU\"" >&2;}
2292 { (exit 1); exit 1; }; }
2294 esac
2295 AR="\$(srcdir)/Modules/ar_beos"
2296 RANLIB=:
2298 Monterey*)
2299 RANLIB=:
2300 without_gcc=;;
2301 *) without_gcc=no;;
2302 esac
2305 { echo "$as_me:$LINENO: result: $without_gcc" >&5
2306 echo "${ECHO_T}$without_gcc" >&6; }
2308 # If the user switches compilers, we can't believe the cache
2309 if test ! -z "$ac_cv_prog_CC" -a ! -z "$CC" -a "$CC" != "$ac_cv_prog_CC"
2310 then
2311 { { echo "$as_me:$LINENO: error: cached CC is different -- throw away $cache_file
2312 (it is also a good idea to do 'make clean' before compiling)" >&5
2313 echo "$as_me: error: cached CC is different -- throw away $cache_file
2314 (it is also a good idea to do 'make clean' before compiling)" >&2;}
2315 { (exit 1); exit 1; }; }
2318 ac_ext=c
2319 ac_cpp='$CPP $CPPFLAGS'
2320 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2321 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2322 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2323 if test -n "$ac_tool_prefix"; then
2324 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2325 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2326 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2327 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2328 if test "${ac_cv_prog_CC+set}" = set; then
2329 echo $ECHO_N "(cached) $ECHO_C" >&6
2330 else
2331 if test -n "$CC"; then
2332 ac_cv_prog_CC="$CC" # Let the user override the test.
2333 else
2334 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2335 for as_dir in $PATH
2337 IFS=$as_save_IFS
2338 test -z "$as_dir" && as_dir=.
2339 for ac_exec_ext in '' $ac_executable_extensions; do
2340 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2341 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2342 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2343 break 2
2345 done
2346 done
2347 IFS=$as_save_IFS
2351 CC=$ac_cv_prog_CC
2352 if test -n "$CC"; then
2353 { echo "$as_me:$LINENO: result: $CC" >&5
2354 echo "${ECHO_T}$CC" >&6; }
2355 else
2356 { echo "$as_me:$LINENO: result: no" >&5
2357 echo "${ECHO_T}no" >&6; }
2362 if test -z "$ac_cv_prog_CC"; then
2363 ac_ct_CC=$CC
2364 # Extract the first word of "gcc", so it can be a program name with args.
2365 set dummy gcc; ac_word=$2
2366 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2367 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2368 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2369 echo $ECHO_N "(cached) $ECHO_C" >&6
2370 else
2371 if test -n "$ac_ct_CC"; then
2372 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2373 else
2374 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2375 for as_dir in $PATH
2377 IFS=$as_save_IFS
2378 test -z "$as_dir" && as_dir=.
2379 for ac_exec_ext in '' $ac_executable_extensions; do
2380 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2381 ac_cv_prog_ac_ct_CC="gcc"
2382 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2383 break 2
2385 done
2386 done
2387 IFS=$as_save_IFS
2391 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2392 if test -n "$ac_ct_CC"; then
2393 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2394 echo "${ECHO_T}$ac_ct_CC" >&6; }
2395 else
2396 { echo "$as_me:$LINENO: result: no" >&5
2397 echo "${ECHO_T}no" >&6; }
2400 if test "x$ac_ct_CC" = x; then
2401 CC=""
2402 else
2403 case $cross_compiling:$ac_tool_warned in
2404 yes:)
2405 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2406 whose name does not start with the host triplet. If you think this
2407 configuration is useful to you, please write to autoconf@gnu.org." >&5
2408 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2409 whose name does not start with the host triplet. If you think this
2410 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2411 ac_tool_warned=yes ;;
2412 esac
2413 CC=$ac_ct_CC
2415 else
2416 CC="$ac_cv_prog_CC"
2419 if test -z "$CC"; then
2420 if test -n "$ac_tool_prefix"; then
2421 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2422 set dummy ${ac_tool_prefix}cc; ac_word=$2
2423 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2424 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2425 if test "${ac_cv_prog_CC+set}" = set; then
2426 echo $ECHO_N "(cached) $ECHO_C" >&6
2427 else
2428 if test -n "$CC"; then
2429 ac_cv_prog_CC="$CC" # Let the user override the test.
2430 else
2431 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2432 for as_dir in $PATH
2434 IFS=$as_save_IFS
2435 test -z "$as_dir" && as_dir=.
2436 for ac_exec_ext in '' $ac_executable_extensions; do
2437 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2438 ac_cv_prog_CC="${ac_tool_prefix}cc"
2439 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2440 break 2
2442 done
2443 done
2444 IFS=$as_save_IFS
2448 CC=$ac_cv_prog_CC
2449 if test -n "$CC"; then
2450 { echo "$as_me:$LINENO: result: $CC" >&5
2451 echo "${ECHO_T}$CC" >&6; }
2452 else
2453 { echo "$as_me:$LINENO: result: no" >&5
2454 echo "${ECHO_T}no" >&6; }
2460 if test -z "$CC"; then
2461 # Extract the first word of "cc", so it can be a program name with args.
2462 set dummy cc; ac_word=$2
2463 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2464 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2465 if test "${ac_cv_prog_CC+set}" = set; then
2466 echo $ECHO_N "(cached) $ECHO_C" >&6
2467 else
2468 if test -n "$CC"; then
2469 ac_cv_prog_CC="$CC" # Let the user override the test.
2470 else
2471 ac_prog_rejected=no
2472 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2473 for as_dir in $PATH
2475 IFS=$as_save_IFS
2476 test -z "$as_dir" && as_dir=.
2477 for ac_exec_ext in '' $ac_executable_extensions; do
2478 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2479 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2480 ac_prog_rejected=yes
2481 continue
2483 ac_cv_prog_CC="cc"
2484 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2485 break 2
2487 done
2488 done
2489 IFS=$as_save_IFS
2491 if test $ac_prog_rejected = yes; then
2492 # We found a bogon in the path, so make sure we never use it.
2493 set dummy $ac_cv_prog_CC
2494 shift
2495 if test $# != 0; then
2496 # We chose a different compiler from the bogus one.
2497 # However, it has the same basename, so the bogon will be chosen
2498 # first if we set CC to just the basename; use the full file name.
2499 shift
2500 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2505 CC=$ac_cv_prog_CC
2506 if test -n "$CC"; then
2507 { echo "$as_me:$LINENO: result: $CC" >&5
2508 echo "${ECHO_T}$CC" >&6; }
2509 else
2510 { echo "$as_me:$LINENO: result: no" >&5
2511 echo "${ECHO_T}no" >&6; }
2516 if test -z "$CC"; then
2517 if test -n "$ac_tool_prefix"; then
2518 for ac_prog in cl.exe
2520 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2521 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2522 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2523 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2524 if test "${ac_cv_prog_CC+set}" = set; then
2525 echo $ECHO_N "(cached) $ECHO_C" >&6
2526 else
2527 if test -n "$CC"; then
2528 ac_cv_prog_CC="$CC" # Let the user override the test.
2529 else
2530 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2531 for as_dir in $PATH
2533 IFS=$as_save_IFS
2534 test -z "$as_dir" && as_dir=.
2535 for ac_exec_ext in '' $ac_executable_extensions; do
2536 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2537 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2538 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2539 break 2
2541 done
2542 done
2543 IFS=$as_save_IFS
2547 CC=$ac_cv_prog_CC
2548 if test -n "$CC"; then
2549 { echo "$as_me:$LINENO: result: $CC" >&5
2550 echo "${ECHO_T}$CC" >&6; }
2551 else
2552 { echo "$as_me:$LINENO: result: no" >&5
2553 echo "${ECHO_T}no" >&6; }
2557 test -n "$CC" && break
2558 done
2560 if test -z "$CC"; then
2561 ac_ct_CC=$CC
2562 for ac_prog in cl.exe
2564 # Extract the first word of "$ac_prog", so it can be a program name with args.
2565 set dummy $ac_prog; ac_word=$2
2566 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2567 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2568 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2569 echo $ECHO_N "(cached) $ECHO_C" >&6
2570 else
2571 if test -n "$ac_ct_CC"; then
2572 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2573 else
2574 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2575 for as_dir in $PATH
2577 IFS=$as_save_IFS
2578 test -z "$as_dir" && as_dir=.
2579 for ac_exec_ext in '' $ac_executable_extensions; do
2580 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2581 ac_cv_prog_ac_ct_CC="$ac_prog"
2582 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2583 break 2
2585 done
2586 done
2587 IFS=$as_save_IFS
2591 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2592 if test -n "$ac_ct_CC"; then
2593 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2594 echo "${ECHO_T}$ac_ct_CC" >&6; }
2595 else
2596 { echo "$as_me:$LINENO: result: no" >&5
2597 echo "${ECHO_T}no" >&6; }
2601 test -n "$ac_ct_CC" && break
2602 done
2604 if test "x$ac_ct_CC" = x; then
2605 CC=""
2606 else
2607 case $cross_compiling:$ac_tool_warned in
2608 yes:)
2609 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2610 whose name does not start with the host triplet. If you think this
2611 configuration is useful to you, please write to autoconf@gnu.org." >&5
2612 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2613 whose name does not start with the host triplet. If you think this
2614 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2615 ac_tool_warned=yes ;;
2616 esac
2617 CC=$ac_ct_CC
2624 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2625 See \`config.log' for more details." >&5
2626 echo "$as_me: error: no acceptable C compiler found in \$PATH
2627 See \`config.log' for more details." >&2;}
2628 { (exit 1); exit 1; }; }
2630 # Provide some information about the compiler.
2631 echo "$as_me:$LINENO: checking for C compiler version" >&5
2632 ac_compiler=`set X $ac_compile; echo $2`
2633 { (ac_try="$ac_compiler --version >&5"
2634 case "(($ac_try" in
2635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2636 *) ac_try_echo=$ac_try;;
2637 esac
2638 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2639 (eval "$ac_compiler --version >&5") 2>&5
2640 ac_status=$?
2641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2642 (exit $ac_status); }
2643 { (ac_try="$ac_compiler -v >&5"
2644 case "(($ac_try" in
2645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2646 *) ac_try_echo=$ac_try;;
2647 esac
2648 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2649 (eval "$ac_compiler -v >&5") 2>&5
2650 ac_status=$?
2651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2652 (exit $ac_status); }
2653 { (ac_try="$ac_compiler -V >&5"
2654 case "(($ac_try" in
2655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2656 *) ac_try_echo=$ac_try;;
2657 esac
2658 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2659 (eval "$ac_compiler -V >&5") 2>&5
2660 ac_status=$?
2661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2662 (exit $ac_status); }
2664 cat >conftest.$ac_ext <<_ACEOF
2665 /* confdefs.h. */
2666 _ACEOF
2667 cat confdefs.h >>conftest.$ac_ext
2668 cat >>conftest.$ac_ext <<_ACEOF
2669 /* end confdefs.h. */
2672 main ()
2676 return 0;
2678 _ACEOF
2679 ac_clean_files_save=$ac_clean_files
2680 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2681 # Try to create an executable without -o first, disregard a.out.
2682 # It will help us diagnose broken compilers, and finding out an intuition
2683 # of exeext.
2684 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2685 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2686 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2688 # List of possible output files, starting from the most likely.
2689 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2690 # only as a last resort. b.out is created by i960 compilers.
2691 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2693 # The IRIX 6 linker writes into existing files which may not be
2694 # executable, retaining their permissions. Remove them first so a
2695 # subsequent execution test works.
2696 ac_rmfiles=
2697 for ac_file in $ac_files
2699 case $ac_file in
2700 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2701 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2702 esac
2703 done
2704 rm -f $ac_rmfiles
2706 if { (ac_try="$ac_link_default"
2707 case "(($ac_try" in
2708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2709 *) ac_try_echo=$ac_try;;
2710 esac
2711 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2712 (eval "$ac_link_default") 2>&5
2713 ac_status=$?
2714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2715 (exit $ac_status); }; then
2716 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2717 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2718 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2719 # so that the user can short-circuit this test for compilers unknown to
2720 # Autoconf.
2721 for ac_file in $ac_files ''
2723 test -f "$ac_file" || continue
2724 case $ac_file in
2725 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2727 [ab].out )
2728 # We found the default executable, but exeext='' is most
2729 # certainly right.
2730 break;;
2731 *.* )
2732 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2733 then :; else
2734 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2736 # We set ac_cv_exeext here because the later test for it is not
2737 # safe: cross compilers may not add the suffix if given an `-o'
2738 # argument, so we may need to know it at that point already.
2739 # Even if this section looks crufty: it has the advantage of
2740 # actually working.
2741 break;;
2743 break;;
2744 esac
2745 done
2746 test "$ac_cv_exeext" = no && ac_cv_exeext=
2748 else
2749 ac_file=''
2752 { echo "$as_me:$LINENO: result: $ac_file" >&5
2753 echo "${ECHO_T}$ac_file" >&6; }
2754 if test -z "$ac_file"; then
2755 echo "$as_me: failed program was:" >&5
2756 sed 's/^/| /' conftest.$ac_ext >&5
2758 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2759 See \`config.log' for more details." >&5
2760 echo "$as_me: error: C compiler cannot create executables
2761 See \`config.log' for more details." >&2;}
2762 { (exit 77); exit 77; }; }
2765 ac_exeext=$ac_cv_exeext
2767 # Check that the compiler produces executables we can run. If not, either
2768 # the compiler is broken, or we cross compile.
2769 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2770 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2771 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2772 # If not cross compiling, check that we can run a simple program.
2773 if test "$cross_compiling" != yes; then
2774 if { ac_try='./$ac_file'
2775 { (case "(($ac_try" in
2776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2777 *) ac_try_echo=$ac_try;;
2778 esac
2779 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2780 (eval "$ac_try") 2>&5
2781 ac_status=$?
2782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2783 (exit $ac_status); }; }; then
2784 cross_compiling=no
2785 else
2786 if test "$cross_compiling" = maybe; then
2787 cross_compiling=yes
2788 else
2789 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2790 If you meant to cross compile, use \`--host'.
2791 See \`config.log' for more details." >&5
2792 echo "$as_me: error: cannot run C compiled programs.
2793 If you meant to cross compile, use \`--host'.
2794 See \`config.log' for more details." >&2;}
2795 { (exit 1); exit 1; }; }
2799 { echo "$as_me:$LINENO: result: yes" >&5
2800 echo "${ECHO_T}yes" >&6; }
2802 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2803 ac_clean_files=$ac_clean_files_save
2804 # Check that the compiler produces executables we can run. If not, either
2805 # the compiler is broken, or we cross compile.
2806 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2807 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2808 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2809 echo "${ECHO_T}$cross_compiling" >&6; }
2811 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2812 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2813 if { (ac_try="$ac_link"
2814 case "(($ac_try" in
2815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2816 *) ac_try_echo=$ac_try;;
2817 esac
2818 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2819 (eval "$ac_link") 2>&5
2820 ac_status=$?
2821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2822 (exit $ac_status); }; then
2823 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2824 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2825 # work properly (i.e., refer to `conftest.exe'), while it won't with
2826 # `rm'.
2827 for ac_file in conftest.exe conftest conftest.*; do
2828 test -f "$ac_file" || continue
2829 case $ac_file in
2830 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2831 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2832 break;;
2833 * ) break;;
2834 esac
2835 done
2836 else
2837 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2838 See \`config.log' for more details." >&5
2839 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2840 See \`config.log' for more details." >&2;}
2841 { (exit 1); exit 1; }; }
2844 rm -f conftest$ac_cv_exeext
2845 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2846 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2848 rm -f conftest.$ac_ext
2849 EXEEXT=$ac_cv_exeext
2850 ac_exeext=$EXEEXT
2851 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2852 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2853 if test "${ac_cv_objext+set}" = set; then
2854 echo $ECHO_N "(cached) $ECHO_C" >&6
2855 else
2856 cat >conftest.$ac_ext <<_ACEOF
2857 /* confdefs.h. */
2858 _ACEOF
2859 cat confdefs.h >>conftest.$ac_ext
2860 cat >>conftest.$ac_ext <<_ACEOF
2861 /* end confdefs.h. */
2864 main ()
2868 return 0;
2870 _ACEOF
2871 rm -f conftest.o conftest.obj
2872 if { (ac_try="$ac_compile"
2873 case "(($ac_try" in
2874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2875 *) ac_try_echo=$ac_try;;
2876 esac
2877 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2878 (eval "$ac_compile") 2>&5
2879 ac_status=$?
2880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2881 (exit $ac_status); }; then
2882 for ac_file in conftest.o conftest.obj conftest.*; do
2883 test -f "$ac_file" || continue;
2884 case $ac_file in
2885 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2886 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2887 break;;
2888 esac
2889 done
2890 else
2891 echo "$as_me: failed program was:" >&5
2892 sed 's/^/| /' conftest.$ac_ext >&5
2894 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2895 See \`config.log' for more details." >&5
2896 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2897 See \`config.log' for more details." >&2;}
2898 { (exit 1); exit 1; }; }
2901 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2903 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2904 echo "${ECHO_T}$ac_cv_objext" >&6; }
2905 OBJEXT=$ac_cv_objext
2906 ac_objext=$OBJEXT
2907 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2908 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2909 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2910 echo $ECHO_N "(cached) $ECHO_C" >&6
2911 else
2912 cat >conftest.$ac_ext <<_ACEOF
2913 /* confdefs.h. */
2914 _ACEOF
2915 cat confdefs.h >>conftest.$ac_ext
2916 cat >>conftest.$ac_ext <<_ACEOF
2917 /* end confdefs.h. */
2920 main ()
2922 #ifndef __GNUC__
2923 choke me
2924 #endif
2927 return 0;
2929 _ACEOF
2930 rm -f conftest.$ac_objext
2931 if { (ac_try="$ac_compile"
2932 case "(($ac_try" in
2933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2934 *) ac_try_echo=$ac_try;;
2935 esac
2936 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2937 (eval "$ac_compile") 2>conftest.er1
2938 ac_status=$?
2939 grep -v '^ *+' conftest.er1 >conftest.err
2940 rm -f conftest.er1
2941 cat conftest.err >&5
2942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2943 (exit $ac_status); } && {
2944 test -z "$ac_c_werror_flag" ||
2945 test ! -s conftest.err
2946 } && test -s conftest.$ac_objext; then
2947 ac_compiler_gnu=yes
2948 else
2949 echo "$as_me: failed program was:" >&5
2950 sed 's/^/| /' conftest.$ac_ext >&5
2952 ac_compiler_gnu=no
2955 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2956 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2959 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2960 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2961 GCC=`test $ac_compiler_gnu = yes && echo yes`
2962 ac_test_CFLAGS=${CFLAGS+set}
2963 ac_save_CFLAGS=$CFLAGS
2964 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2965 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2966 if test "${ac_cv_prog_cc_g+set}" = set; then
2967 echo $ECHO_N "(cached) $ECHO_C" >&6
2968 else
2969 ac_save_c_werror_flag=$ac_c_werror_flag
2970 ac_c_werror_flag=yes
2971 ac_cv_prog_cc_g=no
2972 CFLAGS="-g"
2973 cat >conftest.$ac_ext <<_ACEOF
2974 /* confdefs.h. */
2975 _ACEOF
2976 cat confdefs.h >>conftest.$ac_ext
2977 cat >>conftest.$ac_ext <<_ACEOF
2978 /* end confdefs.h. */
2981 main ()
2985 return 0;
2987 _ACEOF
2988 rm -f conftest.$ac_objext
2989 if { (ac_try="$ac_compile"
2990 case "(($ac_try" in
2991 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2992 *) ac_try_echo=$ac_try;;
2993 esac
2994 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2995 (eval "$ac_compile") 2>conftest.er1
2996 ac_status=$?
2997 grep -v '^ *+' conftest.er1 >conftest.err
2998 rm -f conftest.er1
2999 cat conftest.err >&5
3000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3001 (exit $ac_status); } && {
3002 test -z "$ac_c_werror_flag" ||
3003 test ! -s conftest.err
3004 } && test -s conftest.$ac_objext; then
3005 ac_cv_prog_cc_g=yes
3006 else
3007 echo "$as_me: failed program was:" >&5
3008 sed 's/^/| /' conftest.$ac_ext >&5
3010 CFLAGS=""
3011 cat >conftest.$ac_ext <<_ACEOF
3012 /* confdefs.h. */
3013 _ACEOF
3014 cat confdefs.h >>conftest.$ac_ext
3015 cat >>conftest.$ac_ext <<_ACEOF
3016 /* end confdefs.h. */
3019 main ()
3023 return 0;
3025 _ACEOF
3026 rm -f conftest.$ac_objext
3027 if { (ac_try="$ac_compile"
3028 case "(($ac_try" in
3029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3030 *) ac_try_echo=$ac_try;;
3031 esac
3032 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3033 (eval "$ac_compile") 2>conftest.er1
3034 ac_status=$?
3035 grep -v '^ *+' conftest.er1 >conftest.err
3036 rm -f conftest.er1
3037 cat conftest.err >&5
3038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3039 (exit $ac_status); } && {
3040 test -z "$ac_c_werror_flag" ||
3041 test ! -s conftest.err
3042 } && test -s conftest.$ac_objext; then
3044 else
3045 echo "$as_me: failed program was:" >&5
3046 sed 's/^/| /' conftest.$ac_ext >&5
3048 ac_c_werror_flag=$ac_save_c_werror_flag
3049 CFLAGS="-g"
3050 cat >conftest.$ac_ext <<_ACEOF
3051 /* confdefs.h. */
3052 _ACEOF
3053 cat confdefs.h >>conftest.$ac_ext
3054 cat >>conftest.$ac_ext <<_ACEOF
3055 /* end confdefs.h. */
3058 main ()
3062 return 0;
3064 _ACEOF
3065 rm -f conftest.$ac_objext
3066 if { (ac_try="$ac_compile"
3067 case "(($ac_try" in
3068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3069 *) ac_try_echo=$ac_try;;
3070 esac
3071 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3072 (eval "$ac_compile") 2>conftest.er1
3073 ac_status=$?
3074 grep -v '^ *+' conftest.er1 >conftest.err
3075 rm -f conftest.er1
3076 cat conftest.err >&5
3077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3078 (exit $ac_status); } && {
3079 test -z "$ac_c_werror_flag" ||
3080 test ! -s conftest.err
3081 } && test -s conftest.$ac_objext; then
3082 ac_cv_prog_cc_g=yes
3083 else
3084 echo "$as_me: failed program was:" >&5
3085 sed 's/^/| /' conftest.$ac_ext >&5
3090 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3093 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3096 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3097 ac_c_werror_flag=$ac_save_c_werror_flag
3099 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3100 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3101 if test "$ac_test_CFLAGS" = set; then
3102 CFLAGS=$ac_save_CFLAGS
3103 elif test $ac_cv_prog_cc_g = yes; then
3104 if test "$GCC" = yes; then
3105 CFLAGS="-g -O2"
3106 else
3107 CFLAGS="-g"
3109 else
3110 if test "$GCC" = yes; then
3111 CFLAGS="-O2"
3112 else
3113 CFLAGS=
3116 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3117 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3118 if test "${ac_cv_prog_cc_c89+set}" = set; then
3119 echo $ECHO_N "(cached) $ECHO_C" >&6
3120 else
3121 ac_cv_prog_cc_c89=no
3122 ac_save_CC=$CC
3123 cat >conftest.$ac_ext <<_ACEOF
3124 /* confdefs.h. */
3125 _ACEOF
3126 cat confdefs.h >>conftest.$ac_ext
3127 cat >>conftest.$ac_ext <<_ACEOF
3128 /* end confdefs.h. */
3129 #include <stdarg.h>
3130 #include <stdio.h>
3131 #include <sys/types.h>
3132 #include <sys/stat.h>
3133 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3134 struct buf { int x; };
3135 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3136 static char *e (p, i)
3137 char **p;
3138 int i;
3140 return p[i];
3142 static char *f (char * (*g) (char **, int), char **p, ...)
3144 char *s;
3145 va_list v;
3146 va_start (v,p);
3147 s = g (p, va_arg (v,int));
3148 va_end (v);
3149 return s;
3152 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3153 function prototypes and stuff, but not '\xHH' hex character constants.
3154 These don't provoke an error unfortunately, instead are silently treated
3155 as 'x'. The following induces an error, until -std is added to get
3156 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3157 array size at least. It's necessary to write '\x00'==0 to get something
3158 that's true only with -std. */
3159 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3161 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3162 inside strings and character constants. */
3163 #define FOO(x) 'x'
3164 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3166 int test (int i, double x);
3167 struct s1 {int (*f) (int a);};
3168 struct s2 {int (*f) (double a);};
3169 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3170 int argc;
3171 char **argv;
3173 main ()
3175 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3177 return 0;
3179 _ACEOF
3180 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3181 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3183 CC="$ac_save_CC $ac_arg"
3184 rm -f conftest.$ac_objext
3185 if { (ac_try="$ac_compile"
3186 case "(($ac_try" in
3187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3188 *) ac_try_echo=$ac_try;;
3189 esac
3190 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3191 (eval "$ac_compile") 2>conftest.er1
3192 ac_status=$?
3193 grep -v '^ *+' conftest.er1 >conftest.err
3194 rm -f conftest.er1
3195 cat conftest.err >&5
3196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3197 (exit $ac_status); } && {
3198 test -z "$ac_c_werror_flag" ||
3199 test ! -s conftest.err
3200 } && test -s conftest.$ac_objext; then
3201 ac_cv_prog_cc_c89=$ac_arg
3202 else
3203 echo "$as_me: failed program was:" >&5
3204 sed 's/^/| /' conftest.$ac_ext >&5
3209 rm -f core conftest.err conftest.$ac_objext
3210 test "x$ac_cv_prog_cc_c89" != "xno" && break
3211 done
3212 rm -f conftest.$ac_ext
3213 CC=$ac_save_CC
3216 # AC_CACHE_VAL
3217 case "x$ac_cv_prog_cc_c89" in
3219 { echo "$as_me:$LINENO: result: none needed" >&5
3220 echo "${ECHO_T}none needed" >&6; } ;;
3221 xno)
3222 { echo "$as_me:$LINENO: result: unsupported" >&5
3223 echo "${ECHO_T}unsupported" >&6; } ;;
3225 CC="$CC $ac_cv_prog_cc_c89"
3226 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3227 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3228 esac
3231 ac_ext=c
3232 ac_cpp='$CPP $CPPFLAGS'
3233 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3234 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3235 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3240 { echo "$as_me:$LINENO: checking for --with-cxx-main=<compiler>" >&5
3241 echo $ECHO_N "checking for --with-cxx-main=<compiler>... $ECHO_C" >&6; }
3243 # Check whether --with-cxx_main was given.
3244 if test "${with_cxx_main+set}" = set; then
3245 withval=$with_cxx_main;
3247 case $withval in
3248 no) with_cxx_main=no
3249 MAINCC='$(CC)';;
3250 yes) with_cxx_main=yes
3251 MAINCC='$(CXX)';;
3252 *) with_cxx_main=yes
3253 MAINCC=$withval
3254 if test -z "$CXX"
3255 then
3256 CXX=$withval
3257 fi;;
3258 esac
3259 else
3261 with_cxx_main=no
3262 MAINCC='$(CC)'
3266 { echo "$as_me:$LINENO: result: $with_cxx_main" >&5
3267 echo "${ECHO_T}$with_cxx_main" >&6; }
3269 preset_cxx="$CXX"
3270 if test -z "$CXX"
3271 then
3272 case "$CC" in
3273 gcc) # Extract the first word of "g++", so it can be a program name with args.
3274 set dummy g++; ac_word=$2
3275 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3276 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3277 if test "${ac_cv_path_CXX+set}" = set; then
3278 echo $ECHO_N "(cached) $ECHO_C" >&6
3279 else
3280 case $CXX in
3281 [\\/]* | ?:[\\/]*)
3282 ac_cv_path_CXX="$CXX" # Let the user override the test with a path.
3285 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3286 for as_dir in notfound
3288 IFS=$as_save_IFS
3289 test -z "$as_dir" && as_dir=.
3290 for ac_exec_ext in '' $ac_executable_extensions; do
3291 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3292 ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext"
3293 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3294 break 2
3296 done
3297 done
3298 IFS=$as_save_IFS
3300 test -z "$ac_cv_path_CXX" && ac_cv_path_CXX="g++"
3302 esac
3304 CXX=$ac_cv_path_CXX
3305 if test -n "$CXX"; then
3306 { echo "$as_me:$LINENO: result: $CXX" >&5
3307 echo "${ECHO_T}$CXX" >&6; }
3308 else
3309 { echo "$as_me:$LINENO: result: no" >&5
3310 echo "${ECHO_T}no" >&6; }
3314 cc) # Extract the first word of "c++", so it can be a program name with args.
3315 set dummy c++; ac_word=$2
3316 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3317 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3318 if test "${ac_cv_path_CXX+set}" = set; then
3319 echo $ECHO_N "(cached) $ECHO_C" >&6
3320 else
3321 case $CXX in
3322 [\\/]* | ?:[\\/]*)
3323 ac_cv_path_CXX="$CXX" # Let the user override the test with a path.
3326 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3327 for as_dir in notfound
3329 IFS=$as_save_IFS
3330 test -z "$as_dir" && as_dir=.
3331 for ac_exec_ext in '' $ac_executable_extensions; do
3332 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3333 ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext"
3334 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3335 break 2
3337 done
3338 done
3339 IFS=$as_save_IFS
3341 test -z "$ac_cv_path_CXX" && ac_cv_path_CXX="c++"
3343 esac
3345 CXX=$ac_cv_path_CXX
3346 if test -n "$CXX"; then
3347 { echo "$as_me:$LINENO: result: $CXX" >&5
3348 echo "${ECHO_T}$CXX" >&6; }
3349 else
3350 { echo "$as_me:$LINENO: result: no" >&5
3351 echo "${ECHO_T}no" >&6; }
3355 esac
3356 if test "$CXX" = "notfound"
3357 then
3358 CXX=""
3361 if test -z "$CXX"
3362 then
3363 for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
3365 # Extract the first word of "$ac_prog", so it can be a program name with args.
3366 set dummy $ac_prog; ac_word=$2
3367 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3368 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3369 if test "${ac_cv_prog_CXX+set}" = set; then
3370 echo $ECHO_N "(cached) $ECHO_C" >&6
3371 else
3372 if test -n "$CXX"; then
3373 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3374 else
3375 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3376 for as_dir in $PATH
3378 IFS=$as_save_IFS
3379 test -z "$as_dir" && as_dir=.
3380 for ac_exec_ext in '' $ac_executable_extensions; do
3381 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3382 ac_cv_prog_CXX="$ac_prog"
3383 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3384 break 2
3386 done
3387 done
3388 IFS=$as_save_IFS
3392 CXX=$ac_cv_prog_CXX
3393 if test -n "$CXX"; then
3394 { echo "$as_me:$LINENO: result: $CXX" >&5
3395 echo "${ECHO_T}$CXX" >&6; }
3396 else
3397 { echo "$as_me:$LINENO: result: no" >&5
3398 echo "${ECHO_T}no" >&6; }
3402 test -n "$CXX" && break
3403 done
3404 test -n "$CXX" || CXX="notfound"
3406 if test "$CXX" = "notfound"
3407 then
3408 CXX=""
3411 if test "$preset_cxx" != "$CXX"
3412 then
3413 { echo "$as_me:$LINENO: WARNING:
3415 By default, distutils will build C++ extension modules with \"$CXX\".
3416 If this is not intended, then set CXX on the configure command line.
3417 " >&5
3418 echo "$as_me: WARNING:
3420 By default, distutils will build C++ extension modules with \"$CXX\".
3421 If this is not intended, then set CXX on the configure command line.
3422 " >&2;}
3426 # checks for UNIX variants that set C preprocessor variables
3428 ac_ext=c
3429 ac_cpp='$CPP $CPPFLAGS'
3430 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3431 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3432 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3433 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3434 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3435 # On Suns, sometimes $CPP names a directory.
3436 if test -n "$CPP" && test -d "$CPP"; then
3437 CPP=
3439 if test -z "$CPP"; then
3440 if test "${ac_cv_prog_CPP+set}" = set; then
3441 echo $ECHO_N "(cached) $ECHO_C" >&6
3442 else
3443 # Double quotes because CPP needs to be expanded
3444 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3446 ac_preproc_ok=false
3447 for ac_c_preproc_warn_flag in '' yes
3449 # Use a header file that comes with gcc, so configuring glibc
3450 # with a fresh cross-compiler works.
3451 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3452 # <limits.h> exists even on freestanding compilers.
3453 # On the NeXT, cc -E runs the code through the compiler's parser,
3454 # not just through cpp. "Syntax error" is here to catch this case.
3455 cat >conftest.$ac_ext <<_ACEOF
3456 /* confdefs.h. */
3457 _ACEOF
3458 cat confdefs.h >>conftest.$ac_ext
3459 cat >>conftest.$ac_ext <<_ACEOF
3460 /* end confdefs.h. */
3461 #ifdef __STDC__
3462 # include <limits.h>
3463 #else
3464 # include <assert.h>
3465 #endif
3466 Syntax error
3467 _ACEOF
3468 if { (ac_try="$ac_cpp conftest.$ac_ext"
3469 case "(($ac_try" in
3470 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3471 *) ac_try_echo=$ac_try;;
3472 esac
3473 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3474 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3475 ac_status=$?
3476 grep -v '^ *+' conftest.er1 >conftest.err
3477 rm -f conftest.er1
3478 cat conftest.err >&5
3479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3480 (exit $ac_status); } >/dev/null && {
3481 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3482 test ! -s conftest.err
3483 }; then
3485 else
3486 echo "$as_me: failed program was:" >&5
3487 sed 's/^/| /' conftest.$ac_ext >&5
3489 # Broken: fails on valid input.
3490 continue
3493 rm -f conftest.err conftest.$ac_ext
3495 # OK, works on sane cases. Now check whether nonexistent headers
3496 # can be detected and how.
3497 cat >conftest.$ac_ext <<_ACEOF
3498 /* confdefs.h. */
3499 _ACEOF
3500 cat confdefs.h >>conftest.$ac_ext
3501 cat >>conftest.$ac_ext <<_ACEOF
3502 /* end confdefs.h. */
3503 #include <ac_nonexistent.h>
3504 _ACEOF
3505 if { (ac_try="$ac_cpp conftest.$ac_ext"
3506 case "(($ac_try" in
3507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3508 *) ac_try_echo=$ac_try;;
3509 esac
3510 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3511 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3512 ac_status=$?
3513 grep -v '^ *+' conftest.er1 >conftest.err
3514 rm -f conftest.er1
3515 cat conftest.err >&5
3516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3517 (exit $ac_status); } >/dev/null && {
3518 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3519 test ! -s conftest.err
3520 }; then
3521 # Broken: success on invalid input.
3522 continue
3523 else
3524 echo "$as_me: failed program was:" >&5
3525 sed 's/^/| /' conftest.$ac_ext >&5
3527 # Passes both tests.
3528 ac_preproc_ok=:
3529 break
3532 rm -f conftest.err conftest.$ac_ext
3534 done
3535 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3536 rm -f conftest.err conftest.$ac_ext
3537 if $ac_preproc_ok; then
3538 break
3541 done
3542 ac_cv_prog_CPP=$CPP
3545 CPP=$ac_cv_prog_CPP
3546 else
3547 ac_cv_prog_CPP=$CPP
3549 { echo "$as_me:$LINENO: result: $CPP" >&5
3550 echo "${ECHO_T}$CPP" >&6; }
3551 ac_preproc_ok=false
3552 for ac_c_preproc_warn_flag in '' yes
3554 # Use a header file that comes with gcc, so configuring glibc
3555 # with a fresh cross-compiler works.
3556 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3557 # <limits.h> exists even on freestanding compilers.
3558 # On the NeXT, cc -E runs the code through the compiler's parser,
3559 # not just through cpp. "Syntax error" is here to catch this case.
3560 cat >conftest.$ac_ext <<_ACEOF
3561 /* confdefs.h. */
3562 _ACEOF
3563 cat confdefs.h >>conftest.$ac_ext
3564 cat >>conftest.$ac_ext <<_ACEOF
3565 /* end confdefs.h. */
3566 #ifdef __STDC__
3567 # include <limits.h>
3568 #else
3569 # include <assert.h>
3570 #endif
3571 Syntax error
3572 _ACEOF
3573 if { (ac_try="$ac_cpp conftest.$ac_ext"
3574 case "(($ac_try" in
3575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3576 *) ac_try_echo=$ac_try;;
3577 esac
3578 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3579 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3580 ac_status=$?
3581 grep -v '^ *+' conftest.er1 >conftest.err
3582 rm -f conftest.er1
3583 cat conftest.err >&5
3584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3585 (exit $ac_status); } >/dev/null && {
3586 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3587 test ! -s conftest.err
3588 }; then
3590 else
3591 echo "$as_me: failed program was:" >&5
3592 sed 's/^/| /' conftest.$ac_ext >&5
3594 # Broken: fails on valid input.
3595 continue
3598 rm -f conftest.err conftest.$ac_ext
3600 # OK, works on sane cases. Now check whether nonexistent headers
3601 # can be detected and how.
3602 cat >conftest.$ac_ext <<_ACEOF
3603 /* confdefs.h. */
3604 _ACEOF
3605 cat confdefs.h >>conftest.$ac_ext
3606 cat >>conftest.$ac_ext <<_ACEOF
3607 /* end confdefs.h. */
3608 #include <ac_nonexistent.h>
3609 _ACEOF
3610 if { (ac_try="$ac_cpp conftest.$ac_ext"
3611 case "(($ac_try" in
3612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3613 *) ac_try_echo=$ac_try;;
3614 esac
3615 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3616 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3617 ac_status=$?
3618 grep -v '^ *+' conftest.er1 >conftest.err
3619 rm -f conftest.er1
3620 cat conftest.err >&5
3621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3622 (exit $ac_status); } >/dev/null && {
3623 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3624 test ! -s conftest.err
3625 }; then
3626 # Broken: success on invalid input.
3627 continue
3628 else
3629 echo "$as_me: failed program was:" >&5
3630 sed 's/^/| /' conftest.$ac_ext >&5
3632 # Passes both tests.
3633 ac_preproc_ok=:
3634 break
3637 rm -f conftest.err conftest.$ac_ext
3639 done
3640 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3641 rm -f conftest.err conftest.$ac_ext
3642 if $ac_preproc_ok; then
3644 else
3645 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3646 See \`config.log' for more details." >&5
3647 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3648 See \`config.log' for more details." >&2;}
3649 { (exit 1); exit 1; }; }
3652 ac_ext=c
3653 ac_cpp='$CPP $CPPFLAGS'
3654 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3655 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3656 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3659 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3660 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3661 if test "${ac_cv_path_GREP+set}" = set; then
3662 echo $ECHO_N "(cached) $ECHO_C" >&6
3663 else
3664 # Extract the first word of "grep ggrep" to use in msg output
3665 if test -z "$GREP"; then
3666 set dummy grep ggrep; ac_prog_name=$2
3667 if test "${ac_cv_path_GREP+set}" = set; then
3668 echo $ECHO_N "(cached) $ECHO_C" >&6
3669 else
3670 ac_path_GREP_found=false
3671 # Loop through the user's path and test for each of PROGNAME-LIST
3672 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3673 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3675 IFS=$as_save_IFS
3676 test -z "$as_dir" && as_dir=.
3677 for ac_prog in grep ggrep; do
3678 for ac_exec_ext in '' $ac_executable_extensions; do
3679 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3680 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3681 # Check for GNU ac_path_GREP and select it if it is found.
3682 # Check for GNU $ac_path_GREP
3683 case `"$ac_path_GREP" --version 2>&1` in
3684 *GNU*)
3685 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3687 ac_count=0
3688 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3689 while :
3691 cat "conftest.in" "conftest.in" >"conftest.tmp"
3692 mv "conftest.tmp" "conftest.in"
3693 cp "conftest.in" "conftest.nl"
3694 echo 'GREP' >> "conftest.nl"
3695 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3696 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3697 ac_count=`expr $ac_count + 1`
3698 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3699 # Best one so far, save it but keep looking for a better one
3700 ac_cv_path_GREP="$ac_path_GREP"
3701 ac_path_GREP_max=$ac_count
3703 # 10*(2^10) chars as input seems more than enough
3704 test $ac_count -gt 10 && break
3705 done
3706 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3707 esac
3710 $ac_path_GREP_found && break 3
3711 done
3712 done
3714 done
3715 IFS=$as_save_IFS
3720 GREP="$ac_cv_path_GREP"
3721 if test -z "$GREP"; then
3722 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3723 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3724 { (exit 1); exit 1; }; }
3727 else
3728 ac_cv_path_GREP=$GREP
3733 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3734 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3735 GREP="$ac_cv_path_GREP"
3738 { echo "$as_me:$LINENO: checking for egrep" >&5
3739 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3740 if test "${ac_cv_path_EGREP+set}" = set; then
3741 echo $ECHO_N "(cached) $ECHO_C" >&6
3742 else
3743 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3744 then ac_cv_path_EGREP="$GREP -E"
3745 else
3746 # Extract the first word of "egrep" to use in msg output
3747 if test -z "$EGREP"; then
3748 set dummy egrep; ac_prog_name=$2
3749 if test "${ac_cv_path_EGREP+set}" = set; then
3750 echo $ECHO_N "(cached) $ECHO_C" >&6
3751 else
3752 ac_path_EGREP_found=false
3753 # Loop through the user's path and test for each of PROGNAME-LIST
3754 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3755 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3757 IFS=$as_save_IFS
3758 test -z "$as_dir" && as_dir=.
3759 for ac_prog in egrep; do
3760 for ac_exec_ext in '' $ac_executable_extensions; do
3761 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3762 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3763 # Check for GNU ac_path_EGREP and select it if it is found.
3764 # Check for GNU $ac_path_EGREP
3765 case `"$ac_path_EGREP" --version 2>&1` in
3766 *GNU*)
3767 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3769 ac_count=0
3770 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3771 while :
3773 cat "conftest.in" "conftest.in" >"conftest.tmp"
3774 mv "conftest.tmp" "conftest.in"
3775 cp "conftest.in" "conftest.nl"
3776 echo 'EGREP' >> "conftest.nl"
3777 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3778 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3779 ac_count=`expr $ac_count + 1`
3780 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3781 # Best one so far, save it but keep looking for a better one
3782 ac_cv_path_EGREP="$ac_path_EGREP"
3783 ac_path_EGREP_max=$ac_count
3785 # 10*(2^10) chars as input seems more than enough
3786 test $ac_count -gt 10 && break
3787 done
3788 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3789 esac
3792 $ac_path_EGREP_found && break 3
3793 done
3794 done
3796 done
3797 IFS=$as_save_IFS
3802 EGREP="$ac_cv_path_EGREP"
3803 if test -z "$EGREP"; then
3804 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3805 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3806 { (exit 1); exit 1; }; }
3809 else
3810 ac_cv_path_EGREP=$EGREP
3816 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3817 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3818 EGREP="$ac_cv_path_EGREP"
3822 { echo "$as_me:$LINENO: checking for AIX" >&5
3823 echo $ECHO_N "checking for AIX... $ECHO_C" >&6; }
3824 cat >conftest.$ac_ext <<_ACEOF
3825 /* confdefs.h. */
3826 _ACEOF
3827 cat confdefs.h >>conftest.$ac_ext
3828 cat >>conftest.$ac_ext <<_ACEOF
3829 /* end confdefs.h. */
3830 #ifdef _AIX
3832 #endif
3834 _ACEOF
3835 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3836 $EGREP "yes" >/dev/null 2>&1; then
3837 { echo "$as_me:$LINENO: result: yes" >&5
3838 echo "${ECHO_T}yes" >&6; }
3839 cat >>confdefs.h <<\_ACEOF
3840 #define _ALL_SOURCE 1
3841 _ACEOF
3843 else
3844 { echo "$as_me:$LINENO: result: no" >&5
3845 echo "${ECHO_T}no" >&6; }
3847 rm -f conftest*
3851 # Check for unsupported systems
3852 case $ac_sys_system/$ac_sys_release in
3853 atheos*|Linux*/1*)
3854 echo This system \($ac_sys_system/$ac_sys_release\) is no longer supported.
3855 echo See README for details.
3856 exit 1;;
3857 esac
3860 { echo "$as_me:$LINENO: checking for --with-suffix" >&5
3861 echo $ECHO_N "checking for --with-suffix... $ECHO_C" >&6; }
3863 # Check whether --with-suffix was given.
3864 if test "${with_suffix+set}" = set; then
3865 withval=$with_suffix;
3866 case $withval in
3867 no) EXEEXT=;;
3868 yes) EXEEXT=.exe;;
3869 *) EXEEXT=$withval;;
3870 esac
3873 { echo "$as_me:$LINENO: result: $EXEEXT" >&5
3874 echo "${ECHO_T}$EXEEXT" >&6; }
3876 # Test whether we're running on a non-case-sensitive system, in which
3877 # case we give a warning if no ext is given
3879 { echo "$as_me:$LINENO: checking for case-insensitive build directory" >&5
3880 echo $ECHO_N "checking for case-insensitive build directory... $ECHO_C" >&6; }
3881 if test ! -d CaseSensitiveTestDir; then
3882 mkdir CaseSensitiveTestDir
3885 if test -d casesensitivetestdir
3886 then
3887 { echo "$as_me:$LINENO: result: yes" >&5
3888 echo "${ECHO_T}yes" >&6; }
3889 BUILDEXEEXT=.exe
3890 else
3891 { echo "$as_me:$LINENO: result: no" >&5
3892 echo "${ECHO_T}no" >&6; }
3893 BUILDEXEEXT=$EXEEXT
3895 rmdir CaseSensitiveTestDir
3897 case $MACHDEP in
3898 bsdos*)
3899 case $CC in
3900 gcc) CC="$CC -D_HAVE_BSDI";;
3901 esac;;
3902 esac
3904 case $ac_sys_system in
3905 hp*|HP*)
3906 case $CC in
3907 cc|*/cc) CC="$CC -Ae";;
3908 esac;;
3909 Monterey*)
3910 case $CC in
3911 cc) CC="$CC -Wl,-Bexport";;
3912 esac;;
3913 SunOS*)
3914 # Some functions have a prototype only with that define, e.g. confstr
3916 cat >>confdefs.h <<\_ACEOF
3917 #define __EXTENSIONS__ 1
3918 _ACEOF
3921 esac
3925 { echo "$as_me:$LINENO: checking LIBRARY" >&5
3926 echo $ECHO_N "checking LIBRARY... $ECHO_C" >&6; }
3927 if test -z "$LIBRARY"
3928 then
3929 LIBRARY='libpython$(VERSION).a'
3931 { echo "$as_me:$LINENO: result: $LIBRARY" >&5
3932 echo "${ECHO_T}$LIBRARY" >&6; }
3934 # LDLIBRARY is the name of the library to link against (as opposed to the
3935 # name of the library into which to insert object files). BLDLIBRARY is also
3936 # the library to link against, usually. On Mac OS X frameworks, BLDLIBRARY
3937 # is blank as the main program is not linked directly against LDLIBRARY.
3938 # LDLIBRARYDIR is the path to LDLIBRARY, which is made in a subdirectory. On
3939 # systems without shared libraries, LDLIBRARY is the same as LIBRARY
3940 # (defined in the Makefiles). On Cygwin LDLIBRARY is the import library,
3941 # DLLLIBRARY is the shared (i.e., DLL) library.
3943 # RUNSHARED is used to run shared python without installed libraries
3945 # INSTSONAME is the name of the shared library that will be use to install
3946 # on the system - some systems like version suffix, others don't
3953 LDLIBRARY="$LIBRARY"
3954 BLDLIBRARY='$(LDLIBRARY)'
3955 INSTSONAME='$(LDLIBRARY)'
3956 DLLLIBRARY=''
3957 LDLIBRARYDIR=''
3958 RUNSHARED=''
3960 # LINKCC is the command that links the python executable -- default is $(CC).
3961 # If CXX is set, and if it is needed to link a main function that was
3962 # compiled with CXX, LINKCC is CXX instead. Always using CXX is undesirable:
3963 # python might then depend on the C++ runtime
3964 # This is altered for AIX in order to build the export list before
3965 # linking.
3967 { echo "$as_me:$LINENO: checking LINKCC" >&5
3968 echo $ECHO_N "checking LINKCC... $ECHO_C" >&6; }
3969 if test -z "$LINKCC"
3970 then
3971 LINKCC='$(PURIFY) $(MAINCC)'
3972 case $ac_sys_system in
3973 AIX*)
3974 exp_extra="\"\""
3975 if test $ac_sys_release -ge 5 -o \
3976 $ac_sys_release -eq 4 -a `uname -r` -ge 2 ; then
3977 exp_extra="."
3979 LINKCC="\$(srcdir)/Modules/makexp_aix Modules/python.exp $exp_extra \$(LIBRARY); $LINKCC";;
3980 Monterey64*)
3981 LINKCC="$LINKCC -L/usr/lib/ia64l64";;
3982 QNX*)
3983 # qcc must be used because the other compilers do not
3984 # support -N.
3985 LINKCC=qcc;;
3986 esac
3988 { echo "$as_me:$LINENO: result: $LINKCC" >&5
3989 echo "${ECHO_T}$LINKCC" >&6; }
3991 { echo "$as_me:$LINENO: checking for --enable-shared" >&5
3992 echo $ECHO_N "checking for --enable-shared... $ECHO_C" >&6; }
3993 # Check whether --enable-shared was given.
3994 if test "${enable_shared+set}" = set; then
3995 enableval=$enable_shared;
3999 if test -z "$enable_shared"
4000 then
4001 case $ac_sys_system in
4002 CYGWIN* | atheos*)
4003 enable_shared="yes";;
4005 enable_shared="no";;
4006 esac
4008 { echo "$as_me:$LINENO: result: $enable_shared" >&5
4009 echo "${ECHO_T}$enable_shared" >&6; }
4011 { echo "$as_me:$LINENO: checking for --enable-profiling" >&5
4012 echo $ECHO_N "checking for --enable-profiling... $ECHO_C" >&6; }
4013 # Check whether --enable-profiling was given.
4014 if test "${enable_profiling+set}" = set; then
4015 enableval=$enable_profiling; ac_save_cc="$CC"
4016 CC="$CC -pg"
4017 if test "$cross_compiling" = yes; then
4018 ac_enable_profiling="no"
4019 else
4020 cat >conftest.$ac_ext <<_ACEOF
4021 /* confdefs.h. */
4022 _ACEOF
4023 cat confdefs.h >>conftest.$ac_ext
4024 cat >>conftest.$ac_ext <<_ACEOF
4025 /* end confdefs.h. */
4026 int main() { return 0; }
4027 _ACEOF
4028 rm -f conftest$ac_exeext
4029 if { (ac_try="$ac_link"
4030 case "(($ac_try" in
4031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4032 *) ac_try_echo=$ac_try;;
4033 esac
4034 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4035 (eval "$ac_link") 2>&5
4036 ac_status=$?
4037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4038 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4039 { (case "(($ac_try" in
4040 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4041 *) ac_try_echo=$ac_try;;
4042 esac
4043 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4044 (eval "$ac_try") 2>&5
4045 ac_status=$?
4046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4047 (exit $ac_status); }; }; then
4048 ac_enable_profiling="yes"
4049 else
4050 echo "$as_me: program exited with status $ac_status" >&5
4051 echo "$as_me: failed program was:" >&5
4052 sed 's/^/| /' conftest.$ac_ext >&5
4054 ( exit $ac_status )
4055 ac_enable_profiling="no"
4057 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4061 CC="$ac_save_cc"
4064 { echo "$as_me:$LINENO: result: $ac_enable_profiling" >&5
4065 echo "${ECHO_T}$ac_enable_profiling" >&6; }
4067 case "$ac_enable_profiling" in
4068 "yes")
4069 BASECFLAGS="-pg $BASECFLAGS"
4070 LDFLAGS="-pg $LDFLAGS"
4072 esac
4074 { echo "$as_me:$LINENO: checking LDLIBRARY" >&5
4075 echo $ECHO_N "checking LDLIBRARY... $ECHO_C" >&6; }
4077 # MacOSX framework builds need more magic. LDLIBRARY is the dynamic
4078 # library that we build, but we do not want to link against it (we
4079 # will find it with a -framework option). For this reason there is an
4080 # extra variable BLDLIBRARY against which Python and the extension
4081 # modules are linked, BLDLIBRARY. This is normally the same as
4082 # LDLIBRARY, but empty for MacOSX framework builds.
4083 if test "$enable_framework"
4084 then
4085 LDLIBRARY='$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
4086 RUNSHARED=DYLD_FRAMEWORK_PATH="`pwd`:$DYLD_FRAMEWORK_PATH"
4087 BLDLIBRARY=''
4088 else
4089 BLDLIBRARY='$(LDLIBRARY)'
4092 # Other platforms follow
4093 if test $enable_shared = "yes"; then
4095 cat >>confdefs.h <<\_ACEOF
4096 #define Py_ENABLE_SHARED 1
4097 _ACEOF
4099 case $ac_sys_system in
4100 BeOS*)
4101 LDLIBRARY='libpython$(VERSION).so'
4103 CYGWIN*)
4104 LDLIBRARY='libpython$(VERSION).dll.a'
4105 DLLLIBRARY='libpython$(VERSION).dll'
4107 SunOS*)
4108 LDLIBRARY='libpython$(VERSION).so'
4109 BLDLIBRARY='-Wl,-R,$(LIBDIR) -L. -lpython$(VERSION)'
4110 RUNSHARED=LD_LIBRARY_PATH=`pwd`:${LD_LIBRARY_PATH}
4111 INSTSONAME="$LDLIBRARY".$SOVERSION
4113 Linux*|GNU*|NetBSD*|FreeBSD*|DragonFly*)
4114 LDLIBRARY='libpython$(VERSION).so'
4115 BLDLIBRARY='-L. -lpython$(VERSION)'
4116 RUNSHARED=LD_LIBRARY_PATH=`pwd`:${LD_LIBRARY_PATH}
4117 case $ac_sys_system in
4118 FreeBSD*)
4119 SOVERSION=`echo $SOVERSION|cut -d "." -f 1`
4121 esac
4122 INSTSONAME="$LDLIBRARY".$SOVERSION
4124 hp*|HP*)
4125 case `uname -m` in
4126 ia64)
4127 LDLIBRARY='libpython$(VERSION).so'
4130 LDLIBRARY='libpython$(VERSION).sl'
4132 esac
4133 BLDLIBRARY='-Wl,+b,$(LIBDIR) -L. -lpython$(VERSION)'
4134 RUNSHARED=SHLIB_PATH=`pwd`:${SHLIB_PATH}
4136 OSF*)
4137 LDLIBRARY='libpython$(VERSION).so'
4138 BLDLIBRARY='-rpath $(LIBDIR) -L. -lpython$(VERSION)'
4139 RUNSHARED=LD_LIBRARY_PATH=`pwd`:${LD_LIBRARY_PATH}
4141 atheos*)
4142 LDLIBRARY='libpython$(VERSION).so'
4143 BLDLIBRARY='-L. -lpython$(VERSION)'
4144 RUNSHARED=DLL_PATH=`pwd`:${DLL_PATH:-/atheos/sys/libs:/atheos/autolnk/lib}
4146 Darwin*)
4147 LDLIBRARY='libpython$(VERSION).dylib'
4148 BLDLIBRARY='-L. -lpython$(VERSION)'
4149 RUNSHARED='DYLD_LIBRARY_PATH=`pwd`:${DYLD_LIBRARY_PATH}'
4152 esac
4153 else # shared is disabled
4154 case $ac_sys_system in
4155 CYGWIN*)
4156 BLDLIBRARY='$(LIBRARY)'
4157 LDLIBRARY='libpython$(VERSION).dll.a'
4159 esac
4162 { echo "$as_me:$LINENO: result: $LDLIBRARY" >&5
4163 echo "${ECHO_T}$LDLIBRARY" >&6; }
4165 if test -n "$ac_tool_prefix"; then
4166 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4167 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4168 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4169 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4170 if test "${ac_cv_prog_RANLIB+set}" = set; then
4171 echo $ECHO_N "(cached) $ECHO_C" >&6
4172 else
4173 if test -n "$RANLIB"; then
4174 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4175 else
4176 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4177 for as_dir in $PATH
4179 IFS=$as_save_IFS
4180 test -z "$as_dir" && as_dir=.
4181 for ac_exec_ext in '' $ac_executable_extensions; do
4182 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4183 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4184 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4185 break 2
4187 done
4188 done
4189 IFS=$as_save_IFS
4193 RANLIB=$ac_cv_prog_RANLIB
4194 if test -n "$RANLIB"; then
4195 { echo "$as_me:$LINENO: result: $RANLIB" >&5
4196 echo "${ECHO_T}$RANLIB" >&6; }
4197 else
4198 { echo "$as_me:$LINENO: result: no" >&5
4199 echo "${ECHO_T}no" >&6; }
4204 if test -z "$ac_cv_prog_RANLIB"; then
4205 ac_ct_RANLIB=$RANLIB
4206 # Extract the first word of "ranlib", so it can be a program name with args.
4207 set dummy ranlib; ac_word=$2
4208 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4209 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4210 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4211 echo $ECHO_N "(cached) $ECHO_C" >&6
4212 else
4213 if test -n "$ac_ct_RANLIB"; then
4214 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4215 else
4216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4217 for as_dir in $PATH
4219 IFS=$as_save_IFS
4220 test -z "$as_dir" && as_dir=.
4221 for ac_exec_ext in '' $ac_executable_extensions; do
4222 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4223 ac_cv_prog_ac_ct_RANLIB="ranlib"
4224 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4225 break 2
4227 done
4228 done
4229 IFS=$as_save_IFS
4233 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4234 if test -n "$ac_ct_RANLIB"; then
4235 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4236 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
4237 else
4238 { echo "$as_me:$LINENO: result: no" >&5
4239 echo "${ECHO_T}no" >&6; }
4242 if test "x$ac_ct_RANLIB" = x; then
4243 RANLIB=":"
4244 else
4245 case $cross_compiling:$ac_tool_warned in
4246 yes:)
4247 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4248 whose name does not start with the host triplet. If you think this
4249 configuration is useful to you, please write to autoconf@gnu.org." >&5
4250 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4251 whose name does not start with the host triplet. If you think this
4252 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4253 ac_tool_warned=yes ;;
4254 esac
4255 RANLIB=$ac_ct_RANLIB
4257 else
4258 RANLIB="$ac_cv_prog_RANLIB"
4262 for ac_prog in ar aal
4264 # Extract the first word of "$ac_prog", so it can be a program name with args.
4265 set dummy $ac_prog; ac_word=$2
4266 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4267 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4268 if test "${ac_cv_prog_AR+set}" = set; then
4269 echo $ECHO_N "(cached) $ECHO_C" >&6
4270 else
4271 if test -n "$AR"; then
4272 ac_cv_prog_AR="$AR" # Let the user override the test.
4273 else
4274 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4275 for as_dir in $PATH
4277 IFS=$as_save_IFS
4278 test -z "$as_dir" && as_dir=.
4279 for ac_exec_ext in '' $ac_executable_extensions; do
4280 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4281 ac_cv_prog_AR="$ac_prog"
4282 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4283 break 2
4285 done
4286 done
4287 IFS=$as_save_IFS
4291 AR=$ac_cv_prog_AR
4292 if test -n "$AR"; then
4293 { echo "$as_me:$LINENO: result: $AR" >&5
4294 echo "${ECHO_T}$AR" >&6; }
4295 else
4296 { echo "$as_me:$LINENO: result: no" >&5
4297 echo "${ECHO_T}no" >&6; }
4301 test -n "$AR" && break
4302 done
4303 test -n "$AR" || AR="ar"
4307 # Extract the first word of "svnversion", so it can be a program name with args.
4308 set dummy svnversion; ac_word=$2
4309 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4310 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4311 if test "${ac_cv_prog_SVNVERSION+set}" = set; then
4312 echo $ECHO_N "(cached) $ECHO_C" >&6
4313 else
4314 if test -n "$SVNVERSION"; then
4315 ac_cv_prog_SVNVERSION="$SVNVERSION" # Let the user override the test.
4316 else
4317 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4318 for as_dir in $PATH
4320 IFS=$as_save_IFS
4321 test -z "$as_dir" && as_dir=.
4322 for ac_exec_ext in '' $ac_executable_extensions; do
4323 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4324 ac_cv_prog_SVNVERSION="found"
4325 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4326 break 2
4328 done
4329 done
4330 IFS=$as_save_IFS
4332 test -z "$ac_cv_prog_SVNVERSION" && ac_cv_prog_SVNVERSION="not-found"
4335 SVNVERSION=$ac_cv_prog_SVNVERSION
4336 if test -n "$SVNVERSION"; then
4337 { echo "$as_me:$LINENO: result: $SVNVERSION" >&5
4338 echo "${ECHO_T}$SVNVERSION" >&6; }
4339 else
4340 { echo "$as_me:$LINENO: result: no" >&5
4341 echo "${ECHO_T}no" >&6; }
4345 if test $SVNVERSION = found
4346 then
4347 SVNVERSION="svnversion \$(srcdir)"
4348 else
4349 SVNVERSION="echo exported"
4352 case $MACHDEP in
4353 bsdos*|hp*|HP*)
4354 # install -d does not work on BSDI or HP-UX
4355 if test -z "$INSTALL"
4356 then
4357 INSTALL="${srcdir}/install-sh -c"
4359 esac
4360 ac_aux_dir=
4361 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
4362 if test -f "$ac_dir/install-sh"; then
4363 ac_aux_dir=$ac_dir
4364 ac_install_sh="$ac_aux_dir/install-sh -c"
4365 break
4366 elif test -f "$ac_dir/install.sh"; then
4367 ac_aux_dir=$ac_dir
4368 ac_install_sh="$ac_aux_dir/install.sh -c"
4369 break
4370 elif test -f "$ac_dir/shtool"; then
4371 ac_aux_dir=$ac_dir
4372 ac_install_sh="$ac_aux_dir/shtool install -c"
4373 break
4375 done
4376 if test -z "$ac_aux_dir"; then
4377 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
4378 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
4379 { (exit 1); exit 1; }; }
4382 # These three variables are undocumented and unsupported,
4383 # and are intended to be withdrawn in a future Autoconf release.
4384 # They can cause serious problems if a builder's source tree is in a directory
4385 # whose full name contains unusual characters.
4386 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
4387 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
4388 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
4391 # Find a good install program. We prefer a C program (faster),
4392 # so one script is as good as another. But avoid the broken or
4393 # incompatible versions:
4394 # SysV /etc/install, /usr/sbin/install
4395 # SunOS /usr/etc/install
4396 # IRIX /sbin/install
4397 # AIX /bin/install
4398 # AmigaOS /C/install, which installs bootblocks on floppy discs
4399 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4400 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4401 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4402 # OS/2's system install, which has a completely different semantic
4403 # ./install, which can be erroneously created by make from ./install.sh.
4404 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4405 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
4406 if test -z "$INSTALL"; then
4407 if test "${ac_cv_path_install+set}" = set; then
4408 echo $ECHO_N "(cached) $ECHO_C" >&6
4409 else
4410 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4411 for as_dir in $PATH
4413 IFS=$as_save_IFS
4414 test -z "$as_dir" && as_dir=.
4415 # Account for people who put trailing slashes in PATH elements.
4416 case $as_dir/ in
4417 ./ | .// | /cC/* | \
4418 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4419 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4420 /usr/ucb/* ) ;;
4422 # OSF1 and SCO ODT 3.0 have their own names for install.
4423 # Don't use installbsd from OSF since it installs stuff as root
4424 # by default.
4425 for ac_prog in ginstall scoinst install; do
4426 for ac_exec_ext in '' $ac_executable_extensions; do
4427 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4428 if test $ac_prog = install &&
4429 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4430 # AIX install. It has an incompatible calling convention.
4432 elif test $ac_prog = install &&
4433 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4434 # program-specific install script used by HP pwplus--don't use.
4436 else
4437 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4438 break 3
4441 done
4442 done
4444 esac
4445 done
4446 IFS=$as_save_IFS
4450 if test "${ac_cv_path_install+set}" = set; then
4451 INSTALL=$ac_cv_path_install
4452 else
4453 # As a last resort, use the slow shell script. Don't cache a
4454 # value for INSTALL within a source directory, because that will
4455 # break other packages using the cache if that directory is
4456 # removed, or if the value is a relative name.
4457 INSTALL=$ac_install_sh
4460 { echo "$as_me:$LINENO: result: $INSTALL" >&5
4461 echo "${ECHO_T}$INSTALL" >&6; }
4463 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4464 # It thinks the first close brace ends the variable substitution.
4465 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4467 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4469 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4472 # Not every filesystem supports hard links
4474 if test -z "$LN" ; then
4475 case $ac_sys_system in
4476 BeOS*) LN="ln -s";;
4477 CYGWIN*) LN="ln -s";;
4478 atheos*) LN="ln -s";;
4479 *) LN=ln;;
4480 esac
4483 # Check for --with-pydebug
4484 { echo "$as_me:$LINENO: checking for --with-pydebug" >&5
4485 echo $ECHO_N "checking for --with-pydebug... $ECHO_C" >&6; }
4487 # Check whether --with-pydebug was given.
4488 if test "${with_pydebug+set}" = set; then
4489 withval=$with_pydebug;
4490 if test "$withval" != no
4491 then
4493 cat >>confdefs.h <<\_ACEOF
4494 #define Py_DEBUG 1
4495 _ACEOF
4497 { echo "$as_me:$LINENO: result: yes" >&5
4498 echo "${ECHO_T}yes" >&6; };
4499 Py_DEBUG='true'
4500 else { echo "$as_me:$LINENO: result: no" >&5
4501 echo "${ECHO_T}no" >&6; }; Py_DEBUG='false'
4503 else
4504 { echo "$as_me:$LINENO: result: no" >&5
4505 echo "${ECHO_T}no" >&6; }
4509 # XXX Shouldn't the code above that fiddles with BASECFLAGS and OPT be
4510 # merged with this chunk of code?
4512 # Optimizer/debugger flags
4513 # ------------------------
4514 # (The following bit of code is complicated enough - please keep things
4515 # indented properly. Just pretend you're editing Python code. ;-)
4517 # There are two parallel sets of case statements below, one that checks to
4518 # see if OPT was set and one that does BASECFLAGS setting based upon
4519 # compiler and platform. BASECFLAGS tweaks need to be made even if the
4520 # user set OPT.
4522 # tweak OPT based on compiler and platform, only if the user didn't set
4523 # it on the command line
4525 if test -z "$OPT"
4526 then
4527 case $GCC in
4528 yes)
4529 if test "$CC" != 'g++' ; then
4530 STRICT_PROTO="-Wstrict-prototypes"
4532 # For gcc 4.x we need to use -fwrapv so lets check if its supported
4533 if "$CC" -v --help 2>/dev/null |grep -- -fwrapv > /dev/null; then
4534 WRAP="-fwrapv"
4536 case $ac_cv_prog_cc_g in
4537 yes)
4538 if test "$Py_DEBUG" = 'true' ; then
4539 # Optimization messes up debuggers, so turn it off for
4540 # debug builds.
4541 OPT="-g -Wall $STRICT_PROTO"
4542 else
4543 OPT="-g $WRAP -O3 -Wall $STRICT_PROTO"
4547 OPT="-O3 -Wall $STRICT_PROTO"
4549 esac
4550 case $ac_sys_system in
4551 SCO_SV*) OPT="$OPT -m486 -DSCO5"
4553 esac
4557 OPT="-O"
4559 esac
4561 # The current (beta) Monterey compiler dies with optimizations
4562 # XXX what is Monterey? Does it still die w/ -O? Can we get rid of this?
4563 case $ac_sys_system in
4564 Monterey*)
4565 OPT=""
4567 esac
4573 # The -arch flags for universal builds on OSX
4574 UNIVERSAL_ARCH_FLAGS=
4577 # tweak BASECFLAGS based on compiler and platform
4578 case $GCC in
4579 yes)
4580 # Python violates C99 rules, by casting between incompatible
4581 # pointer types. GCC may generate bad code as a result of that,
4582 # so use -fno-strict-aliasing if supported.
4583 { echo "$as_me:$LINENO: checking whether $CC accepts -fno-strict-aliasing" >&5
4584 echo $ECHO_N "checking whether $CC accepts -fno-strict-aliasing... $ECHO_C" >&6; }
4585 ac_save_cc="$CC"
4586 CC="$CC -fno-strict-aliasing"
4587 if test "$cross_compiling" = yes; then
4588 ac_cv_no_strict_aliasing_ok=no
4589 else
4590 cat >conftest.$ac_ext <<_ACEOF
4591 /* confdefs.h. */
4592 _ACEOF
4593 cat confdefs.h >>conftest.$ac_ext
4594 cat >>conftest.$ac_ext <<_ACEOF
4595 /* end confdefs.h. */
4596 int main() { return 0; }
4597 _ACEOF
4598 rm -f conftest$ac_exeext
4599 if { (ac_try="$ac_link"
4600 case "(($ac_try" in
4601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4602 *) ac_try_echo=$ac_try;;
4603 esac
4604 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4605 (eval "$ac_link") 2>&5
4606 ac_status=$?
4607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4608 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4609 { (case "(($ac_try" in
4610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4611 *) ac_try_echo=$ac_try;;
4612 esac
4613 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4614 (eval "$ac_try") 2>&5
4615 ac_status=$?
4616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4617 (exit $ac_status); }; }; then
4618 ac_cv_no_strict_aliasing_ok=yes
4619 else
4620 echo "$as_me: program exited with status $ac_status" >&5
4621 echo "$as_me: failed program was:" >&5
4622 sed 's/^/| /' conftest.$ac_ext >&5
4624 ( exit $ac_status )
4625 ac_cv_no_strict_aliasing_ok=no
4627 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4631 CC="$ac_save_cc"
4632 { echo "$as_me:$LINENO: result: $ac_cv_no_strict_aliasing_ok" >&5
4633 echo "${ECHO_T}$ac_cv_no_strict_aliasing_ok" >&6; }
4634 if test $ac_cv_no_strict_aliasing_ok = yes
4635 then
4636 BASECFLAGS="$BASECFLAGS -fno-strict-aliasing"
4639 # if using gcc on alpha, use -mieee to get (near) full IEEE 754
4640 # support. Without this, treatment of subnormals doesn't follow
4641 # the standard.
4642 case $ac_sys_machine in
4643 alpha*)
4644 BASECFLAGS="$BASECFLAGS -mieee"
4646 esac
4648 case $ac_sys_system in
4649 SCO_SV*)
4650 BASECFLAGS="$BASECFLAGS -m486 -DSCO5"
4652 # is there any other compiler on Darwin besides gcc?
4653 Darwin*)
4654 # -Wno-long-double, -no-cpp-precomp, and -mno-fused-madd
4655 # used to be here, but non-Apple gcc doesn't accept them.
4658 if test "${enable_universalsdk}"; then
4659 UNIVERSAL_ARCH_FLAGS=""
4660 if test "$UNIVERSAL_ARCHS" = "32-bit" ; then
4661 UNIVERSAL_ARCH_FLAGS="-arch ppc -arch i386"
4662 ARCH_RUN_32BIT=""
4664 elif test "$UNIVERSAL_ARCHS" = "64-bit" ; then
4665 UNIVERSAL_ARCH_FLAGS="-arch ppc64 -arch x86_64"
4667 elif test "$UNIVERSAL_ARCHS" = "all" ; then
4668 UNIVERSAL_ARCH_FLAGS="-arch i386 -arch ppc -arch ppc64 -arch x86_64"
4669 ARCH_RUN_32BIT="arch -i386 -ppc"
4671 else
4672 { { echo "$as_me:$LINENO: error: proper usage is --with-universalarch=32-bit|64-bit|all" >&5
4673 echo "$as_me: error: proper usage is --with-universalarch=32-bit|64-bit|all" >&2;}
4674 { (exit 1); exit 1; }; }
4679 BASECFLAGS="${UNIVERSAL_ARCH_FLAGS} -isysroot ${UNIVERSALSDK} ${BASECFLAGS}"
4680 tgt=`sw_vers -productVersion | sed 's/\(10\.[0-9]*\).*/\1/'`
4681 if test "${UNIVERSALSDK}" != "/" -a "${tgt}" '>' '10.4' ; then
4682 CFLAGS="${UNIVERSAL_ARCH_FLAGS} -isysroot ${UNIVERSALSDK} ${CFLAGS}"
4686 # Calculate the right deployment target for this build.
4688 cur_target=`sw_vers -productVersion | sed 's/\(10\.[0-9]*\).*/\1/'`
4689 if test ${cur_target} '>' 10.2; then
4690 cur_target=10.3
4692 if test "${UNIVERSAL_ARCHS}" = "all"; then
4693 # Ensure that the default platform for a 4-way
4694 # universal build is OSX 10.5, that's the first
4695 # OS release where 4-way builds make sense.
4696 cur_target='10.5'
4698 CONFIGURE_MACOSX_DEPLOYMENT_TARGET=${MACOSX_DEPLOYMENT_TARGET-${cur_target}}
4700 # Make sure that MACOSX_DEPLOYMENT_TARGET is set in the
4701 # environment with a value that is the same as what we'll use
4702 # in the Makefile to ensure that we'll get the same compiler
4703 # environment during configure and build time.
4704 MACOSX_DEPLOYMENT_TARGET="$CONFIGURE_MACOSX_DEPLOYMENT_TARGET"
4705 export MACOSX_DEPLOYMENT_TARGET
4706 EXPORT_MACOSX_DEPLOYMENT_TARGET=''
4709 OSF*)
4710 BASECFLAGS="$BASECFLAGS -mieee"
4712 esac
4716 case $ac_sys_system in
4717 OpenUNIX*|UnixWare*)
4718 BASECFLAGS="$BASECFLAGS -K pentium,host,inline,loop_unroll,alloca "
4720 OSF*)
4721 BASECFLAGS="$BASECFLAGS -ieee -std"
4723 SCO_SV*)
4724 BASECFLAGS="$BASECFLAGS -belf -Ki486 -DSCO5"
4726 esac
4728 esac
4730 if test "$Py_DEBUG" = 'true'; then
4732 else
4733 OPT="-DNDEBUG $OPT"
4736 if test "$ac_arch_flags"
4737 then
4738 BASECFLAGS="$BASECFLAGS $ac_arch_flags"
4741 # disable check for icc since it seems to pass, but generates a warning
4742 if test "$CC" = icc
4743 then
4744 ac_cv_opt_olimit_ok=no
4747 { echo "$as_me:$LINENO: checking whether $CC accepts -OPT:Olimit=0" >&5
4748 echo $ECHO_N "checking whether $CC accepts -OPT:Olimit=0... $ECHO_C" >&6; }
4749 if test "${ac_cv_opt_olimit_ok+set}" = set; then
4750 echo $ECHO_N "(cached) $ECHO_C" >&6
4751 else
4752 ac_save_cc="$CC"
4753 CC="$CC -OPT:Olimit=0"
4754 if test "$cross_compiling" = yes; then
4755 ac_cv_opt_olimit_ok=no
4756 else
4757 cat >conftest.$ac_ext <<_ACEOF
4758 /* confdefs.h. */
4759 _ACEOF
4760 cat confdefs.h >>conftest.$ac_ext
4761 cat >>conftest.$ac_ext <<_ACEOF
4762 /* end confdefs.h. */
4763 int main() { return 0; }
4764 _ACEOF
4765 rm -f conftest$ac_exeext
4766 if { (ac_try="$ac_link"
4767 case "(($ac_try" in
4768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4769 *) ac_try_echo=$ac_try;;
4770 esac
4771 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4772 (eval "$ac_link") 2>&5
4773 ac_status=$?
4774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4775 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4776 { (case "(($ac_try" in
4777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4778 *) ac_try_echo=$ac_try;;
4779 esac
4780 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4781 (eval "$ac_try") 2>&5
4782 ac_status=$?
4783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4784 (exit $ac_status); }; }; then
4785 ac_cv_opt_olimit_ok=yes
4786 else
4787 echo "$as_me: program exited with status $ac_status" >&5
4788 echo "$as_me: failed program was:" >&5
4789 sed 's/^/| /' conftest.$ac_ext >&5
4791 ( exit $ac_status )
4792 ac_cv_opt_olimit_ok=no
4794 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4798 CC="$ac_save_cc"
4801 { echo "$as_me:$LINENO: result: $ac_cv_opt_olimit_ok" >&5
4802 echo "${ECHO_T}$ac_cv_opt_olimit_ok" >&6; }
4803 if test $ac_cv_opt_olimit_ok = yes; then
4804 case $ac_sys_system in
4805 # XXX is this branch needed? On MacOSX 10.2.2 the result of the
4806 # olimit_ok test is "no". Is it "yes" in some other Darwin-esque
4807 # environment?
4808 Darwin*)
4811 BASECFLAGS="$BASECFLAGS -OPT:Olimit=0"
4813 esac
4814 else
4815 { echo "$as_me:$LINENO: checking whether $CC accepts -Olimit 1500" >&5
4816 echo $ECHO_N "checking whether $CC accepts -Olimit 1500... $ECHO_C" >&6; }
4817 if test "${ac_cv_olimit_ok+set}" = set; then
4818 echo $ECHO_N "(cached) $ECHO_C" >&6
4819 else
4820 ac_save_cc="$CC"
4821 CC="$CC -Olimit 1500"
4822 if test "$cross_compiling" = yes; then
4823 ac_cv_olimit_ok=no
4824 else
4825 cat >conftest.$ac_ext <<_ACEOF
4826 /* confdefs.h. */
4827 _ACEOF
4828 cat confdefs.h >>conftest.$ac_ext
4829 cat >>conftest.$ac_ext <<_ACEOF
4830 /* end confdefs.h. */
4831 int main() { return 0; }
4832 _ACEOF
4833 rm -f conftest$ac_exeext
4834 if { (ac_try="$ac_link"
4835 case "(($ac_try" in
4836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4837 *) ac_try_echo=$ac_try;;
4838 esac
4839 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4840 (eval "$ac_link") 2>&5
4841 ac_status=$?
4842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4843 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4844 { (case "(($ac_try" in
4845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4846 *) ac_try_echo=$ac_try;;
4847 esac
4848 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4849 (eval "$ac_try") 2>&5
4850 ac_status=$?
4851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4852 (exit $ac_status); }; }; then
4853 ac_cv_olimit_ok=yes
4854 else
4855 echo "$as_me: program exited with status $ac_status" >&5
4856 echo "$as_me: failed program was:" >&5
4857 sed 's/^/| /' conftest.$ac_ext >&5
4859 ( exit $ac_status )
4860 ac_cv_olimit_ok=no
4862 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4866 CC="$ac_save_cc"
4869 { echo "$as_me:$LINENO: result: $ac_cv_olimit_ok" >&5
4870 echo "${ECHO_T}$ac_cv_olimit_ok" >&6; }
4871 if test $ac_cv_olimit_ok = yes; then
4872 BASECFLAGS="$BASECFLAGS -Olimit 1500"
4876 # Check whether GCC supports PyArg_ParseTuple format
4877 if test "$GCC" = "yes"
4878 then
4879 { echo "$as_me:$LINENO: checking whether gcc supports ParseTuple __format__" >&5
4880 echo $ECHO_N "checking whether gcc supports ParseTuple __format__... $ECHO_C" >&6; }
4881 save_CFLAGS=$CFLAGS
4882 CFLAGS="$CFLAGS -Werror"
4883 cat >conftest.$ac_ext <<_ACEOF
4884 /* confdefs.h. */
4885 _ACEOF
4886 cat confdefs.h >>conftest.$ac_ext
4887 cat >>conftest.$ac_ext <<_ACEOF
4888 /* end confdefs.h. */
4890 void f(char*,...)__attribute((format(PyArg_ParseTuple, 1, 2)));
4893 main ()
4897 return 0;
4899 _ACEOF
4900 rm -f conftest.$ac_objext
4901 if { (ac_try="$ac_compile"
4902 case "(($ac_try" in
4903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4904 *) ac_try_echo=$ac_try;;
4905 esac
4906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4907 (eval "$ac_compile") 2>conftest.er1
4908 ac_status=$?
4909 grep -v '^ *+' conftest.er1 >conftest.err
4910 rm -f conftest.er1
4911 cat conftest.err >&5
4912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4913 (exit $ac_status); } && {
4914 test -z "$ac_c_werror_flag" ||
4915 test ! -s conftest.err
4916 } && test -s conftest.$ac_objext; then
4918 cat >>confdefs.h <<\_ACEOF
4919 #define HAVE_ATTRIBUTE_FORMAT_PARSETUPLE 1
4920 _ACEOF
4922 { echo "$as_me:$LINENO: result: yes" >&5
4923 echo "${ECHO_T}yes" >&6; }
4924 else
4925 echo "$as_me: failed program was:" >&5
4926 sed 's/^/| /' conftest.$ac_ext >&5
4928 { echo "$as_me:$LINENO: result: no" >&5
4929 echo "${ECHO_T}no" >&6; }
4933 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4934 CFLAGS=$save_CFLAGS
4937 # On some compilers, pthreads are available without further options
4938 # (e.g. MacOS X). On some of these systems, the compiler will not
4939 # complain if unaccepted options are passed (e.g. gcc on Mac OS X).
4940 # So we have to see first whether pthreads are available without
4941 # options before we can check whether -Kpthread improves anything.
4942 { echo "$as_me:$LINENO: checking whether pthreads are available without options" >&5
4943 echo $ECHO_N "checking whether pthreads are available without options... $ECHO_C" >&6; }
4944 if test "${ac_cv_pthread_is_default+set}" = set; then
4945 echo $ECHO_N "(cached) $ECHO_C" >&6
4946 else
4947 if test "$cross_compiling" = yes; then
4948 ac_cv_pthread_is_default=no
4949 else
4950 cat >conftest.$ac_ext <<_ACEOF
4951 /* confdefs.h. */
4952 _ACEOF
4953 cat confdefs.h >>conftest.$ac_ext
4954 cat >>conftest.$ac_ext <<_ACEOF
4955 /* end confdefs.h. */
4957 #include <pthread.h>
4959 void* routine(void* p){return NULL;}
4961 int main(){
4962 pthread_t p;
4963 if(pthread_create(&p,NULL,routine,NULL)!=0)
4964 return 1;
4965 (void)pthread_detach(p);
4966 return 0;
4969 _ACEOF
4970 rm -f conftest$ac_exeext
4971 if { (ac_try="$ac_link"
4972 case "(($ac_try" in
4973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4974 *) ac_try_echo=$ac_try;;
4975 esac
4976 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4977 (eval "$ac_link") 2>&5
4978 ac_status=$?
4979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4980 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4981 { (case "(($ac_try" in
4982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4983 *) ac_try_echo=$ac_try;;
4984 esac
4985 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4986 (eval "$ac_try") 2>&5
4987 ac_status=$?
4988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4989 (exit $ac_status); }; }; then
4991 ac_cv_pthread_is_default=yes
4992 ac_cv_kthread=no
4993 ac_cv_pthread=no
4995 else
4996 echo "$as_me: program exited with status $ac_status" >&5
4997 echo "$as_me: failed program was:" >&5
4998 sed 's/^/| /' conftest.$ac_ext >&5
5000 ( exit $ac_status )
5001 ac_cv_pthread_is_default=no
5003 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5010 { echo "$as_me:$LINENO: result: $ac_cv_pthread_is_default" >&5
5011 echo "${ECHO_T}$ac_cv_pthread_is_default" >&6; }
5014 if test $ac_cv_pthread_is_default = yes
5015 then
5016 ac_cv_kpthread=no
5017 else
5018 # -Kpthread, if available, provides the right #defines
5019 # and linker options to make pthread_create available
5020 # Some compilers won't report that they do not support -Kpthread,
5021 # so we need to run a program to see whether it really made the
5022 # function available.
5023 { echo "$as_me:$LINENO: checking whether $CC accepts -Kpthread" >&5
5024 echo $ECHO_N "checking whether $CC accepts -Kpthread... $ECHO_C" >&6; }
5025 if test "${ac_cv_kpthread+set}" = set; then
5026 echo $ECHO_N "(cached) $ECHO_C" >&6
5027 else
5028 ac_save_cc="$CC"
5029 CC="$CC -Kpthread"
5030 if test "$cross_compiling" = yes; then
5031 ac_cv_kpthread=no
5032 else
5033 cat >conftest.$ac_ext <<_ACEOF
5034 /* confdefs.h. */
5035 _ACEOF
5036 cat confdefs.h >>conftest.$ac_ext
5037 cat >>conftest.$ac_ext <<_ACEOF
5038 /* end confdefs.h. */
5040 #include <pthread.h>
5042 void* routine(void* p){return NULL;}
5044 int main(){
5045 pthread_t p;
5046 if(pthread_create(&p,NULL,routine,NULL)!=0)
5047 return 1;
5048 (void)pthread_detach(p);
5049 return 0;
5052 _ACEOF
5053 rm -f conftest$ac_exeext
5054 if { (ac_try="$ac_link"
5055 case "(($ac_try" in
5056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5057 *) ac_try_echo=$ac_try;;
5058 esac
5059 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5060 (eval "$ac_link") 2>&5
5061 ac_status=$?
5062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5063 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5064 { (case "(($ac_try" in
5065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5066 *) ac_try_echo=$ac_try;;
5067 esac
5068 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5069 (eval "$ac_try") 2>&5
5070 ac_status=$?
5071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5072 (exit $ac_status); }; }; then
5073 ac_cv_kpthread=yes
5074 else
5075 echo "$as_me: program exited with status $ac_status" >&5
5076 echo "$as_me: failed program was:" >&5
5077 sed 's/^/| /' conftest.$ac_ext >&5
5079 ( exit $ac_status )
5080 ac_cv_kpthread=no
5082 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5086 CC="$ac_save_cc"
5089 { echo "$as_me:$LINENO: result: $ac_cv_kpthread" >&5
5090 echo "${ECHO_T}$ac_cv_kpthread" >&6; }
5093 if test $ac_cv_kpthread = no -a $ac_cv_pthread_is_default = no
5094 then
5095 # -Kthread, if available, provides the right #defines
5096 # and linker options to make pthread_create available
5097 # Some compilers won't report that they do not support -Kthread,
5098 # so we need to run a program to see whether it really made the
5099 # function available.
5100 { echo "$as_me:$LINENO: checking whether $CC accepts -Kthread" >&5
5101 echo $ECHO_N "checking whether $CC accepts -Kthread... $ECHO_C" >&6; }
5102 if test "${ac_cv_kthread+set}" = set; then
5103 echo $ECHO_N "(cached) $ECHO_C" >&6
5104 else
5105 ac_save_cc="$CC"
5106 CC="$CC -Kthread"
5107 if test "$cross_compiling" = yes; then
5108 ac_cv_kthread=no
5109 else
5110 cat >conftest.$ac_ext <<_ACEOF
5111 /* confdefs.h. */
5112 _ACEOF
5113 cat confdefs.h >>conftest.$ac_ext
5114 cat >>conftest.$ac_ext <<_ACEOF
5115 /* end confdefs.h. */
5117 #include <pthread.h>
5119 void* routine(void* p){return NULL;}
5121 int main(){
5122 pthread_t p;
5123 if(pthread_create(&p,NULL,routine,NULL)!=0)
5124 return 1;
5125 (void)pthread_detach(p);
5126 return 0;
5129 _ACEOF
5130 rm -f conftest$ac_exeext
5131 if { (ac_try="$ac_link"
5132 case "(($ac_try" in
5133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5134 *) ac_try_echo=$ac_try;;
5135 esac
5136 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5137 (eval "$ac_link") 2>&5
5138 ac_status=$?
5139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5140 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5141 { (case "(($ac_try" in
5142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5143 *) ac_try_echo=$ac_try;;
5144 esac
5145 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5146 (eval "$ac_try") 2>&5
5147 ac_status=$?
5148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5149 (exit $ac_status); }; }; then
5150 ac_cv_kthread=yes
5151 else
5152 echo "$as_me: program exited with status $ac_status" >&5
5153 echo "$as_me: failed program was:" >&5
5154 sed 's/^/| /' conftest.$ac_ext >&5
5156 ( exit $ac_status )
5157 ac_cv_kthread=no
5159 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5163 CC="$ac_save_cc"
5166 { echo "$as_me:$LINENO: result: $ac_cv_kthread" >&5
5167 echo "${ECHO_T}$ac_cv_kthread" >&6; }
5170 if test $ac_cv_kthread = no -a $ac_cv_pthread_is_default = no
5171 then
5172 # -pthread, if available, provides the right #defines
5173 # and linker options to make pthread_create available
5174 # Some compilers won't report that they do not support -pthread,
5175 # so we need to run a program to see whether it really made the
5176 # function available.
5177 { echo "$as_me:$LINENO: checking whether $CC accepts -pthread" >&5
5178 echo $ECHO_N "checking whether $CC accepts -pthread... $ECHO_C" >&6; }
5179 if test "${ac_cv_thread+set}" = set; then
5180 echo $ECHO_N "(cached) $ECHO_C" >&6
5181 else
5182 ac_save_cc="$CC"
5183 CC="$CC -pthread"
5184 if test "$cross_compiling" = yes; then
5185 ac_cv_pthread=no
5186 else
5187 cat >conftest.$ac_ext <<_ACEOF
5188 /* confdefs.h. */
5189 _ACEOF
5190 cat confdefs.h >>conftest.$ac_ext
5191 cat >>conftest.$ac_ext <<_ACEOF
5192 /* end confdefs.h. */
5194 #include <pthread.h>
5196 void* routine(void* p){return NULL;}
5198 int main(){
5199 pthread_t p;
5200 if(pthread_create(&p,NULL,routine,NULL)!=0)
5201 return 1;
5202 (void)pthread_detach(p);
5203 return 0;
5206 _ACEOF
5207 rm -f conftest$ac_exeext
5208 if { (ac_try="$ac_link"
5209 case "(($ac_try" in
5210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5211 *) ac_try_echo=$ac_try;;
5212 esac
5213 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5214 (eval "$ac_link") 2>&5
5215 ac_status=$?
5216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5217 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5218 { (case "(($ac_try" in
5219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5220 *) ac_try_echo=$ac_try;;
5221 esac
5222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5223 (eval "$ac_try") 2>&5
5224 ac_status=$?
5225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5226 (exit $ac_status); }; }; then
5227 ac_cv_pthread=yes
5228 else
5229 echo "$as_me: program exited with status $ac_status" >&5
5230 echo "$as_me: failed program was:" >&5
5231 sed 's/^/| /' conftest.$ac_ext >&5
5233 ( exit $ac_status )
5234 ac_cv_pthread=no
5236 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5240 CC="$ac_save_cc"
5243 { echo "$as_me:$LINENO: result: $ac_cv_pthread" >&5
5244 echo "${ECHO_T}$ac_cv_pthread" >&6; }
5247 # If we have set a CC compiler flag for thread support then
5248 # check if it works for CXX, too.
5249 ac_cv_cxx_thread=no
5250 if test ! -z "$CXX"
5251 then
5252 { echo "$as_me:$LINENO: checking whether $CXX also accepts flags for thread support" >&5
5253 echo $ECHO_N "checking whether $CXX also accepts flags for thread support... $ECHO_C" >&6; }
5254 ac_save_cxx="$CXX"
5256 if test "$ac_cv_kpthread" = "yes"
5257 then
5258 CXX="$CXX -Kpthread"
5259 ac_cv_cxx_thread=yes
5260 elif test "$ac_cv_kthread" = "yes"
5261 then
5262 CXX="$CXX -Kthread"
5263 ac_cv_cxx_thread=yes
5264 elif test "$ac_cv_pthread" = "yes"
5265 then
5266 CXX="$CXX -pthread"
5267 ac_cv_cxx_thread=yes
5270 if test $ac_cv_cxx_thread = yes
5271 then
5272 echo 'void foo();int main(){foo();}void foo(){}' > conftest.$ac_ext
5273 $CXX -c conftest.$ac_ext 2>&5
5274 if $CXX -o conftest$ac_exeext conftest.$ac_objext 2>&5 \
5275 && test -s conftest$ac_exeext && ./conftest$ac_exeext
5276 then
5277 ac_cv_cxx_thread=yes
5278 else
5279 ac_cv_cxx_thread=no
5281 rm -fr conftest*
5283 { echo "$as_me:$LINENO: result: $ac_cv_cxx_thread" >&5
5284 echo "${ECHO_T}$ac_cv_cxx_thread" >&6; }
5286 CXX="$ac_save_cxx"
5289 # checks for header files
5290 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5291 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
5292 if test "${ac_cv_header_stdc+set}" = set; then
5293 echo $ECHO_N "(cached) $ECHO_C" >&6
5294 else
5295 cat >conftest.$ac_ext <<_ACEOF
5296 /* confdefs.h. */
5297 _ACEOF
5298 cat confdefs.h >>conftest.$ac_ext
5299 cat >>conftest.$ac_ext <<_ACEOF
5300 /* end confdefs.h. */
5301 #include <stdlib.h>
5302 #include <stdarg.h>
5303 #include <string.h>
5304 #include <float.h>
5307 main ()
5311 return 0;
5313 _ACEOF
5314 rm -f conftest.$ac_objext
5315 if { (ac_try="$ac_compile"
5316 case "(($ac_try" in
5317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5318 *) ac_try_echo=$ac_try;;
5319 esac
5320 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5321 (eval "$ac_compile") 2>conftest.er1
5322 ac_status=$?
5323 grep -v '^ *+' conftest.er1 >conftest.err
5324 rm -f conftest.er1
5325 cat conftest.err >&5
5326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5327 (exit $ac_status); } && {
5328 test -z "$ac_c_werror_flag" ||
5329 test ! -s conftest.err
5330 } && test -s conftest.$ac_objext; then
5331 ac_cv_header_stdc=yes
5332 else
5333 echo "$as_me: failed program was:" >&5
5334 sed 's/^/| /' conftest.$ac_ext >&5
5336 ac_cv_header_stdc=no
5339 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5341 if test $ac_cv_header_stdc = yes; then
5342 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5343 cat >conftest.$ac_ext <<_ACEOF
5344 /* confdefs.h. */
5345 _ACEOF
5346 cat confdefs.h >>conftest.$ac_ext
5347 cat >>conftest.$ac_ext <<_ACEOF
5348 /* end confdefs.h. */
5349 #include <string.h>
5351 _ACEOF
5352 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5353 $EGREP "memchr" >/dev/null 2>&1; then
5355 else
5356 ac_cv_header_stdc=no
5358 rm -f conftest*
5362 if test $ac_cv_header_stdc = yes; then
5363 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5364 cat >conftest.$ac_ext <<_ACEOF
5365 /* confdefs.h. */
5366 _ACEOF
5367 cat confdefs.h >>conftest.$ac_ext
5368 cat >>conftest.$ac_ext <<_ACEOF
5369 /* end confdefs.h. */
5370 #include <stdlib.h>
5372 _ACEOF
5373 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5374 $EGREP "free" >/dev/null 2>&1; then
5376 else
5377 ac_cv_header_stdc=no
5379 rm -f conftest*
5383 if test $ac_cv_header_stdc = yes; then
5384 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5385 if test "$cross_compiling" = yes; then
5387 else
5388 cat >conftest.$ac_ext <<_ACEOF
5389 /* confdefs.h. */
5390 _ACEOF
5391 cat confdefs.h >>conftest.$ac_ext
5392 cat >>conftest.$ac_ext <<_ACEOF
5393 /* end confdefs.h. */
5394 #include <ctype.h>
5395 #include <stdlib.h>
5396 #if ((' ' & 0x0FF) == 0x020)
5397 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5398 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5399 #else
5400 # define ISLOWER(c) \
5401 (('a' <= (c) && (c) <= 'i') \
5402 || ('j' <= (c) && (c) <= 'r') \
5403 || ('s' <= (c) && (c) <= 'z'))
5404 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5405 #endif
5407 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5409 main ()
5411 int i;
5412 for (i = 0; i < 256; i++)
5413 if (XOR (islower (i), ISLOWER (i))
5414 || toupper (i) != TOUPPER (i))
5415 return 2;
5416 return 0;
5418 _ACEOF
5419 rm -f conftest$ac_exeext
5420 if { (ac_try="$ac_link"
5421 case "(($ac_try" in
5422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5423 *) ac_try_echo=$ac_try;;
5424 esac
5425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5426 (eval "$ac_link") 2>&5
5427 ac_status=$?
5428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5429 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5430 { (case "(($ac_try" in
5431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5432 *) ac_try_echo=$ac_try;;
5433 esac
5434 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5435 (eval "$ac_try") 2>&5
5436 ac_status=$?
5437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5438 (exit $ac_status); }; }; then
5440 else
5441 echo "$as_me: program exited with status $ac_status" >&5
5442 echo "$as_me: failed program was:" >&5
5443 sed 's/^/| /' conftest.$ac_ext >&5
5445 ( exit $ac_status )
5446 ac_cv_header_stdc=no
5448 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5454 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5455 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
5456 if test $ac_cv_header_stdc = yes; then
5458 cat >>confdefs.h <<\_ACEOF
5459 #define STDC_HEADERS 1
5460 _ACEOF
5464 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5474 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5475 inttypes.h stdint.h unistd.h
5477 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5478 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5479 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5480 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5481 echo $ECHO_N "(cached) $ECHO_C" >&6
5482 else
5483 cat >conftest.$ac_ext <<_ACEOF
5484 /* confdefs.h. */
5485 _ACEOF
5486 cat confdefs.h >>conftest.$ac_ext
5487 cat >>conftest.$ac_ext <<_ACEOF
5488 /* end confdefs.h. */
5489 $ac_includes_default
5491 #include <$ac_header>
5492 _ACEOF
5493 rm -f conftest.$ac_objext
5494 if { (ac_try="$ac_compile"
5495 case "(($ac_try" in
5496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5497 *) ac_try_echo=$ac_try;;
5498 esac
5499 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5500 (eval "$ac_compile") 2>conftest.er1
5501 ac_status=$?
5502 grep -v '^ *+' conftest.er1 >conftest.err
5503 rm -f conftest.er1
5504 cat conftest.err >&5
5505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5506 (exit $ac_status); } && {
5507 test -z "$ac_c_werror_flag" ||
5508 test ! -s conftest.err
5509 } && test -s conftest.$ac_objext; then
5510 eval "$as_ac_Header=yes"
5511 else
5512 echo "$as_me: failed program was:" >&5
5513 sed 's/^/| /' conftest.$ac_ext >&5
5515 eval "$as_ac_Header=no"
5518 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5520 ac_res=`eval echo '${'$as_ac_Header'}'`
5521 { echo "$as_me:$LINENO: result: $ac_res" >&5
5522 echo "${ECHO_T}$ac_res" >&6; }
5523 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5524 cat >>confdefs.h <<_ACEOF
5525 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5526 _ACEOF
5530 done
5587 for ac_header in asm/types.h conio.h curses.h direct.h dlfcn.h errno.h \
5588 fcntl.h grp.h \
5589 ieeefp.h io.h langinfo.h libintl.h ncurses.h poll.h process.h pthread.h \
5590 shadow.h signal.h stdint.h stropts.h termios.h thread.h \
5591 unistd.h utime.h \
5592 sys/audioio.h sys/bsdtty.h sys/epoll.h sys/event.h sys/file.h sys/loadavg.h \
5593 sys/lock.h sys/mkdev.h sys/modem.h \
5594 sys/param.h sys/poll.h sys/select.h sys/socket.h sys/statvfs.h sys/stat.h \
5595 sys/termio.h sys/time.h \
5596 sys/times.h sys/types.h sys/un.h sys/utsname.h sys/wait.h pty.h libutil.h \
5597 sys/resource.h netpacket/packet.h sysexits.h bluetooth.h \
5598 bluetooth/bluetooth.h linux/tipc.h
5600 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5601 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5602 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5603 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5604 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5605 echo $ECHO_N "(cached) $ECHO_C" >&6
5607 ac_res=`eval echo '${'$as_ac_Header'}'`
5608 { echo "$as_me:$LINENO: result: $ac_res" >&5
5609 echo "${ECHO_T}$ac_res" >&6; }
5610 else
5611 # Is the header compilable?
5612 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5613 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5614 cat >conftest.$ac_ext <<_ACEOF
5615 /* confdefs.h. */
5616 _ACEOF
5617 cat confdefs.h >>conftest.$ac_ext
5618 cat >>conftest.$ac_ext <<_ACEOF
5619 /* end confdefs.h. */
5620 $ac_includes_default
5621 #include <$ac_header>
5622 _ACEOF
5623 rm -f conftest.$ac_objext
5624 if { (ac_try="$ac_compile"
5625 case "(($ac_try" in
5626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5627 *) ac_try_echo=$ac_try;;
5628 esac
5629 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5630 (eval "$ac_compile") 2>conftest.er1
5631 ac_status=$?
5632 grep -v '^ *+' conftest.er1 >conftest.err
5633 rm -f conftest.er1
5634 cat conftest.err >&5
5635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5636 (exit $ac_status); } && {
5637 test -z "$ac_c_werror_flag" ||
5638 test ! -s conftest.err
5639 } && test -s conftest.$ac_objext; then
5640 ac_header_compiler=yes
5641 else
5642 echo "$as_me: failed program was:" >&5
5643 sed 's/^/| /' conftest.$ac_ext >&5
5645 ac_header_compiler=no
5648 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5649 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5650 echo "${ECHO_T}$ac_header_compiler" >&6; }
5652 # Is the header present?
5653 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5654 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5655 cat >conftest.$ac_ext <<_ACEOF
5656 /* confdefs.h. */
5657 _ACEOF
5658 cat confdefs.h >>conftest.$ac_ext
5659 cat >>conftest.$ac_ext <<_ACEOF
5660 /* end confdefs.h. */
5661 #include <$ac_header>
5662 _ACEOF
5663 if { (ac_try="$ac_cpp conftest.$ac_ext"
5664 case "(($ac_try" in
5665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5666 *) ac_try_echo=$ac_try;;
5667 esac
5668 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5669 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5670 ac_status=$?
5671 grep -v '^ *+' conftest.er1 >conftest.err
5672 rm -f conftest.er1
5673 cat conftest.err >&5
5674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5675 (exit $ac_status); } >/dev/null && {
5676 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5677 test ! -s conftest.err
5678 }; then
5679 ac_header_preproc=yes
5680 else
5681 echo "$as_me: failed program was:" >&5
5682 sed 's/^/| /' conftest.$ac_ext >&5
5684 ac_header_preproc=no
5687 rm -f conftest.err conftest.$ac_ext
5688 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5689 echo "${ECHO_T}$ac_header_preproc" >&6; }
5691 # So? What about this header?
5692 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5693 yes:no: )
5694 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5695 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5696 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5697 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5698 ac_header_preproc=yes
5700 no:yes:* )
5701 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5702 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5703 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5704 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5705 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5706 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5707 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5708 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5709 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5710 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5711 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5712 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5713 ( cat <<\_ASBOX
5714 ## ------------------------------------------------ ##
5715 ## Report this to http://www.python.org/python-bugs ##
5716 ## ------------------------------------------------ ##
5717 _ASBOX
5718 ) | sed "s/^/$as_me: WARNING: /" >&2
5720 esac
5721 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5722 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5723 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5724 echo $ECHO_N "(cached) $ECHO_C" >&6
5725 else
5726 eval "$as_ac_Header=\$ac_header_preproc"
5728 ac_res=`eval echo '${'$as_ac_Header'}'`
5729 { echo "$as_me:$LINENO: result: $ac_res" >&5
5730 echo "${ECHO_T}$ac_res" >&6; }
5733 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5734 cat >>confdefs.h <<_ACEOF
5735 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5736 _ACEOF
5740 done
5747 ac_header_dirent=no
5748 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
5749 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
5750 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
5751 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
5752 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5753 echo $ECHO_N "(cached) $ECHO_C" >&6
5754 else
5755 cat >conftest.$ac_ext <<_ACEOF
5756 /* confdefs.h. */
5757 _ACEOF
5758 cat confdefs.h >>conftest.$ac_ext
5759 cat >>conftest.$ac_ext <<_ACEOF
5760 /* end confdefs.h. */
5761 #include <sys/types.h>
5762 #include <$ac_hdr>
5765 main ()
5767 if ((DIR *) 0)
5768 return 0;
5770 return 0;
5772 _ACEOF
5773 rm -f conftest.$ac_objext
5774 if { (ac_try="$ac_compile"
5775 case "(($ac_try" in
5776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5777 *) ac_try_echo=$ac_try;;
5778 esac
5779 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5780 (eval "$ac_compile") 2>conftest.er1
5781 ac_status=$?
5782 grep -v '^ *+' conftest.er1 >conftest.err
5783 rm -f conftest.er1
5784 cat conftest.err >&5
5785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5786 (exit $ac_status); } && {
5787 test -z "$ac_c_werror_flag" ||
5788 test ! -s conftest.err
5789 } && test -s conftest.$ac_objext; then
5790 eval "$as_ac_Header=yes"
5791 else
5792 echo "$as_me: failed program was:" >&5
5793 sed 's/^/| /' conftest.$ac_ext >&5
5795 eval "$as_ac_Header=no"
5798 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5800 ac_res=`eval echo '${'$as_ac_Header'}'`
5801 { echo "$as_me:$LINENO: result: $ac_res" >&5
5802 echo "${ECHO_T}$ac_res" >&6; }
5803 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5804 cat >>confdefs.h <<_ACEOF
5805 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
5806 _ACEOF
5808 ac_header_dirent=$ac_hdr; break
5811 done
5812 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
5813 if test $ac_header_dirent = dirent.h; then
5814 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
5815 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
5816 if test "${ac_cv_search_opendir+set}" = set; then
5817 echo $ECHO_N "(cached) $ECHO_C" >&6
5818 else
5819 ac_func_search_save_LIBS=$LIBS
5820 cat >conftest.$ac_ext <<_ACEOF
5821 /* confdefs.h. */
5822 _ACEOF
5823 cat confdefs.h >>conftest.$ac_ext
5824 cat >>conftest.$ac_ext <<_ACEOF
5825 /* end confdefs.h. */
5827 /* Override any GCC internal prototype to avoid an error.
5828 Use char because int might match the return type of a GCC
5829 builtin and then its argument prototype would still apply. */
5830 #ifdef __cplusplus
5831 extern "C"
5832 #endif
5833 char opendir ();
5835 main ()
5837 return opendir ();
5839 return 0;
5841 _ACEOF
5842 for ac_lib in '' dir; do
5843 if test -z "$ac_lib"; then
5844 ac_res="none required"
5845 else
5846 ac_res=-l$ac_lib
5847 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5849 rm -f conftest.$ac_objext conftest$ac_exeext
5850 if { (ac_try="$ac_link"
5851 case "(($ac_try" in
5852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5853 *) ac_try_echo=$ac_try;;
5854 esac
5855 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5856 (eval "$ac_link") 2>conftest.er1
5857 ac_status=$?
5858 grep -v '^ *+' conftest.er1 >conftest.err
5859 rm -f conftest.er1
5860 cat conftest.err >&5
5861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5862 (exit $ac_status); } && {
5863 test -z "$ac_c_werror_flag" ||
5864 test ! -s conftest.err
5865 } && test -s conftest$ac_exeext &&
5866 $as_test_x conftest$ac_exeext; then
5867 ac_cv_search_opendir=$ac_res
5868 else
5869 echo "$as_me: failed program was:" >&5
5870 sed 's/^/| /' conftest.$ac_ext >&5
5875 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5876 conftest$ac_exeext
5877 if test "${ac_cv_search_opendir+set}" = set; then
5878 break
5880 done
5881 if test "${ac_cv_search_opendir+set}" = set; then
5883 else
5884 ac_cv_search_opendir=no
5886 rm conftest.$ac_ext
5887 LIBS=$ac_func_search_save_LIBS
5889 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
5890 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
5891 ac_res=$ac_cv_search_opendir
5892 if test "$ac_res" != no; then
5893 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5897 else
5898 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
5899 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
5900 if test "${ac_cv_search_opendir+set}" = set; then
5901 echo $ECHO_N "(cached) $ECHO_C" >&6
5902 else
5903 ac_func_search_save_LIBS=$LIBS
5904 cat >conftest.$ac_ext <<_ACEOF
5905 /* confdefs.h. */
5906 _ACEOF
5907 cat confdefs.h >>conftest.$ac_ext
5908 cat >>conftest.$ac_ext <<_ACEOF
5909 /* end confdefs.h. */
5911 /* Override any GCC internal prototype to avoid an error.
5912 Use char because int might match the return type of a GCC
5913 builtin and then its argument prototype would still apply. */
5914 #ifdef __cplusplus
5915 extern "C"
5916 #endif
5917 char opendir ();
5919 main ()
5921 return opendir ();
5923 return 0;
5925 _ACEOF
5926 for ac_lib in '' x; do
5927 if test -z "$ac_lib"; then
5928 ac_res="none required"
5929 else
5930 ac_res=-l$ac_lib
5931 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5933 rm -f conftest.$ac_objext conftest$ac_exeext
5934 if { (ac_try="$ac_link"
5935 case "(($ac_try" in
5936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5937 *) ac_try_echo=$ac_try;;
5938 esac
5939 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5940 (eval "$ac_link") 2>conftest.er1
5941 ac_status=$?
5942 grep -v '^ *+' conftest.er1 >conftest.err
5943 rm -f conftest.er1
5944 cat conftest.err >&5
5945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5946 (exit $ac_status); } && {
5947 test -z "$ac_c_werror_flag" ||
5948 test ! -s conftest.err
5949 } && test -s conftest$ac_exeext &&
5950 $as_test_x conftest$ac_exeext; then
5951 ac_cv_search_opendir=$ac_res
5952 else
5953 echo "$as_me: failed program was:" >&5
5954 sed 's/^/| /' conftest.$ac_ext >&5
5959 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5960 conftest$ac_exeext
5961 if test "${ac_cv_search_opendir+set}" = set; then
5962 break
5964 done
5965 if test "${ac_cv_search_opendir+set}" = set; then
5967 else
5968 ac_cv_search_opendir=no
5970 rm conftest.$ac_ext
5971 LIBS=$ac_func_search_save_LIBS
5973 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
5974 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
5975 ac_res=$ac_cv_search_opendir
5976 if test "$ac_res" != no; then
5977 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5983 { echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
5984 echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6; }
5985 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
5986 echo $ECHO_N "(cached) $ECHO_C" >&6
5987 else
5988 cat >conftest.$ac_ext <<_ACEOF
5989 /* confdefs.h. */
5990 _ACEOF
5991 cat confdefs.h >>conftest.$ac_ext
5992 cat >>conftest.$ac_ext <<_ACEOF
5993 /* end confdefs.h. */
5994 #include <sys/types.h>
5996 main ()
5998 return makedev(0, 0);
6000 return 0;
6002 _ACEOF
6003 rm -f conftest.$ac_objext conftest$ac_exeext
6004 if { (ac_try="$ac_link"
6005 case "(($ac_try" in
6006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6007 *) ac_try_echo=$ac_try;;
6008 esac
6009 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6010 (eval "$ac_link") 2>conftest.er1
6011 ac_status=$?
6012 grep -v '^ *+' conftest.er1 >conftest.err
6013 rm -f conftest.er1
6014 cat conftest.err >&5
6015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6016 (exit $ac_status); } && {
6017 test -z "$ac_c_werror_flag" ||
6018 test ! -s conftest.err
6019 } && test -s conftest$ac_exeext &&
6020 $as_test_x conftest$ac_exeext; then
6021 ac_cv_header_sys_types_h_makedev=yes
6022 else
6023 echo "$as_me: failed program was:" >&5
6024 sed 's/^/| /' conftest.$ac_ext >&5
6026 ac_cv_header_sys_types_h_makedev=no
6029 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6030 conftest$ac_exeext conftest.$ac_ext
6033 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
6034 echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6; }
6036 if test $ac_cv_header_sys_types_h_makedev = no; then
6037 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
6038 { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
6039 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
6040 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
6041 echo $ECHO_N "(cached) $ECHO_C" >&6
6043 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
6044 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
6045 else
6046 # Is the header compilable?
6047 { echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
6048 echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6; }
6049 cat >conftest.$ac_ext <<_ACEOF
6050 /* confdefs.h. */
6051 _ACEOF
6052 cat confdefs.h >>conftest.$ac_ext
6053 cat >>conftest.$ac_ext <<_ACEOF
6054 /* end confdefs.h. */
6055 $ac_includes_default
6056 #include <sys/mkdev.h>
6057 _ACEOF
6058 rm -f conftest.$ac_objext
6059 if { (ac_try="$ac_compile"
6060 case "(($ac_try" in
6061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6062 *) ac_try_echo=$ac_try;;
6063 esac
6064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6065 (eval "$ac_compile") 2>conftest.er1
6066 ac_status=$?
6067 grep -v '^ *+' conftest.er1 >conftest.err
6068 rm -f conftest.er1
6069 cat conftest.err >&5
6070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6071 (exit $ac_status); } && {
6072 test -z "$ac_c_werror_flag" ||
6073 test ! -s conftest.err
6074 } && test -s conftest.$ac_objext; then
6075 ac_header_compiler=yes
6076 else
6077 echo "$as_me: failed program was:" >&5
6078 sed 's/^/| /' conftest.$ac_ext >&5
6080 ac_header_compiler=no
6083 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6084 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6085 echo "${ECHO_T}$ac_header_compiler" >&6; }
6087 # Is the header present?
6088 { echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
6089 echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6; }
6090 cat >conftest.$ac_ext <<_ACEOF
6091 /* confdefs.h. */
6092 _ACEOF
6093 cat confdefs.h >>conftest.$ac_ext
6094 cat >>conftest.$ac_ext <<_ACEOF
6095 /* end confdefs.h. */
6096 #include <sys/mkdev.h>
6097 _ACEOF
6098 if { (ac_try="$ac_cpp conftest.$ac_ext"
6099 case "(($ac_try" in
6100 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6101 *) ac_try_echo=$ac_try;;
6102 esac
6103 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6104 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6105 ac_status=$?
6106 grep -v '^ *+' conftest.er1 >conftest.err
6107 rm -f conftest.er1
6108 cat conftest.err >&5
6109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6110 (exit $ac_status); } >/dev/null && {
6111 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6112 test ! -s conftest.err
6113 }; then
6114 ac_header_preproc=yes
6115 else
6116 echo "$as_me: failed program was:" >&5
6117 sed 's/^/| /' conftest.$ac_ext >&5
6119 ac_header_preproc=no
6122 rm -f conftest.err conftest.$ac_ext
6123 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6124 echo "${ECHO_T}$ac_header_preproc" >&6; }
6126 # So? What about this header?
6127 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6128 yes:no: )
6129 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
6130 echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6131 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&5
6132 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&2;}
6133 ac_header_preproc=yes
6135 no:yes:* )
6136 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
6137 echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
6138 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&5
6139 echo "$as_me: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&2;}
6140 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: see the Autoconf documentation" >&5
6141 echo "$as_me: WARNING: sys/mkdev.h: see the Autoconf documentation" >&2;}
6142 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&5
6143 echo "$as_me: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&2;}
6144 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
6145 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
6146 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&5
6147 echo "$as_me: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&2;}
6148 ( cat <<\_ASBOX
6149 ## ------------------------------------------------ ##
6150 ## Report this to http://www.python.org/python-bugs ##
6151 ## ------------------------------------------------ ##
6152 _ASBOX
6153 ) | sed "s/^/$as_me: WARNING: /" >&2
6155 esac
6156 { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
6157 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
6158 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
6159 echo $ECHO_N "(cached) $ECHO_C" >&6
6160 else
6161 ac_cv_header_sys_mkdev_h=$ac_header_preproc
6163 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
6164 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
6167 if test $ac_cv_header_sys_mkdev_h = yes; then
6169 cat >>confdefs.h <<\_ACEOF
6170 #define MAJOR_IN_MKDEV 1
6171 _ACEOF
6177 if test $ac_cv_header_sys_mkdev_h = no; then
6178 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
6179 { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
6180 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
6181 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
6182 echo $ECHO_N "(cached) $ECHO_C" >&6
6184 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
6185 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
6186 else
6187 # Is the header compilable?
6188 { echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
6189 echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6; }
6190 cat >conftest.$ac_ext <<_ACEOF
6191 /* confdefs.h. */
6192 _ACEOF
6193 cat confdefs.h >>conftest.$ac_ext
6194 cat >>conftest.$ac_ext <<_ACEOF
6195 /* end confdefs.h. */
6196 $ac_includes_default
6197 #include <sys/sysmacros.h>
6198 _ACEOF
6199 rm -f conftest.$ac_objext
6200 if { (ac_try="$ac_compile"
6201 case "(($ac_try" in
6202 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6203 *) ac_try_echo=$ac_try;;
6204 esac
6205 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6206 (eval "$ac_compile") 2>conftest.er1
6207 ac_status=$?
6208 grep -v '^ *+' conftest.er1 >conftest.err
6209 rm -f conftest.er1
6210 cat conftest.err >&5
6211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6212 (exit $ac_status); } && {
6213 test -z "$ac_c_werror_flag" ||
6214 test ! -s conftest.err
6215 } && test -s conftest.$ac_objext; then
6216 ac_header_compiler=yes
6217 else
6218 echo "$as_me: failed program was:" >&5
6219 sed 's/^/| /' conftest.$ac_ext >&5
6221 ac_header_compiler=no
6224 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6225 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6226 echo "${ECHO_T}$ac_header_compiler" >&6; }
6228 # Is the header present?
6229 { echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
6230 echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6; }
6231 cat >conftest.$ac_ext <<_ACEOF
6232 /* confdefs.h. */
6233 _ACEOF
6234 cat confdefs.h >>conftest.$ac_ext
6235 cat >>conftest.$ac_ext <<_ACEOF
6236 /* end confdefs.h. */
6237 #include <sys/sysmacros.h>
6238 _ACEOF
6239 if { (ac_try="$ac_cpp conftest.$ac_ext"
6240 case "(($ac_try" in
6241 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6242 *) ac_try_echo=$ac_try;;
6243 esac
6244 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6245 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6246 ac_status=$?
6247 grep -v '^ *+' conftest.er1 >conftest.err
6248 rm -f conftest.er1
6249 cat conftest.err >&5
6250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6251 (exit $ac_status); } >/dev/null && {
6252 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6253 test ! -s conftest.err
6254 }; then
6255 ac_header_preproc=yes
6256 else
6257 echo "$as_me: failed program was:" >&5
6258 sed 's/^/| /' conftest.$ac_ext >&5
6260 ac_header_preproc=no
6263 rm -f conftest.err conftest.$ac_ext
6264 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6265 echo "${ECHO_T}$ac_header_preproc" >&6; }
6267 # So? What about this header?
6268 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6269 yes:no: )
6270 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
6271 echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6272 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&5
6273 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&2;}
6274 ac_header_preproc=yes
6276 no:yes:* )
6277 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
6278 echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
6279 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&5
6280 echo "$as_me: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&2;}
6281 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&5
6282 echo "$as_me: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&2;}
6283 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&5
6284 echo "$as_me: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&2;}
6285 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
6286 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
6287 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&5
6288 echo "$as_me: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&2;}
6289 ( cat <<\_ASBOX
6290 ## ------------------------------------------------ ##
6291 ## Report this to http://www.python.org/python-bugs ##
6292 ## ------------------------------------------------ ##
6293 _ASBOX
6294 ) | sed "s/^/$as_me: WARNING: /" >&2
6296 esac
6297 { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
6298 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
6299 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
6300 echo $ECHO_N "(cached) $ECHO_C" >&6
6301 else
6302 ac_cv_header_sys_sysmacros_h=$ac_header_preproc
6304 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
6305 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
6308 if test $ac_cv_header_sys_sysmacros_h = yes; then
6310 cat >>confdefs.h <<\_ACEOF
6311 #define MAJOR_IN_SYSMACROS 1
6312 _ACEOF
6321 # On Solaris, term.h requires curses.h
6323 for ac_header in term.h
6325 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6326 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6327 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6328 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6329 echo $ECHO_N "(cached) $ECHO_C" >&6
6330 else
6331 cat >conftest.$ac_ext <<_ACEOF
6332 /* confdefs.h. */
6333 _ACEOF
6334 cat confdefs.h >>conftest.$ac_ext
6335 cat >>conftest.$ac_ext <<_ACEOF
6336 /* end confdefs.h. */
6338 #ifdef HAVE_CURSES_H
6339 #include <curses.h>
6340 #endif
6343 #include <$ac_header>
6344 _ACEOF
6345 rm -f conftest.$ac_objext
6346 if { (ac_try="$ac_compile"
6347 case "(($ac_try" in
6348 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6349 *) ac_try_echo=$ac_try;;
6350 esac
6351 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6352 (eval "$ac_compile") 2>conftest.er1
6353 ac_status=$?
6354 grep -v '^ *+' conftest.er1 >conftest.err
6355 rm -f conftest.er1
6356 cat conftest.err >&5
6357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6358 (exit $ac_status); } && {
6359 test -z "$ac_c_werror_flag" ||
6360 test ! -s conftest.err
6361 } && test -s conftest.$ac_objext; then
6362 eval "$as_ac_Header=yes"
6363 else
6364 echo "$as_me: failed program was:" >&5
6365 sed 's/^/| /' conftest.$ac_ext >&5
6367 eval "$as_ac_Header=no"
6370 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6372 ac_res=`eval echo '${'$as_ac_Header'}'`
6373 { echo "$as_me:$LINENO: result: $ac_res" >&5
6374 echo "${ECHO_T}$ac_res" >&6; }
6375 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6376 cat >>confdefs.h <<_ACEOF
6377 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6378 _ACEOF
6382 done
6385 # On Linux, netlink.h requires asm/types.h
6387 for ac_header in linux/netlink.h
6389 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6390 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6391 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6392 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6393 echo $ECHO_N "(cached) $ECHO_C" >&6
6394 else
6395 cat >conftest.$ac_ext <<_ACEOF
6396 /* confdefs.h. */
6397 _ACEOF
6398 cat confdefs.h >>conftest.$ac_ext
6399 cat >>conftest.$ac_ext <<_ACEOF
6400 /* end confdefs.h. */
6402 #ifdef HAVE_ASM_TYPES_H
6403 #include <asm/types.h>
6404 #endif
6405 #ifdef HAVE_SYS_SOCKET_H
6406 #include <sys/socket.h>
6407 #endif
6410 #include <$ac_header>
6411 _ACEOF
6412 rm -f conftest.$ac_objext
6413 if { (ac_try="$ac_compile"
6414 case "(($ac_try" in
6415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6416 *) ac_try_echo=$ac_try;;
6417 esac
6418 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6419 (eval "$ac_compile") 2>conftest.er1
6420 ac_status=$?
6421 grep -v '^ *+' conftest.er1 >conftest.err
6422 rm -f conftest.er1
6423 cat conftest.err >&5
6424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6425 (exit $ac_status); } && {
6426 test -z "$ac_c_werror_flag" ||
6427 test ! -s conftest.err
6428 } && test -s conftest.$ac_objext; then
6429 eval "$as_ac_Header=yes"
6430 else
6431 echo "$as_me: failed program was:" >&5
6432 sed 's/^/| /' conftest.$ac_ext >&5
6434 eval "$as_ac_Header=no"
6437 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6439 ac_res=`eval echo '${'$as_ac_Header'}'`
6440 { echo "$as_me:$LINENO: result: $ac_res" >&5
6441 echo "${ECHO_T}$ac_res" >&6; }
6442 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6443 cat >>confdefs.h <<_ACEOF
6444 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6445 _ACEOF
6449 done
6452 # checks for typedefs
6453 was_it_defined=no
6454 { echo "$as_me:$LINENO: checking for clock_t in time.h" >&5
6455 echo $ECHO_N "checking for clock_t in time.h... $ECHO_C" >&6; }
6456 cat >conftest.$ac_ext <<_ACEOF
6457 /* confdefs.h. */
6458 _ACEOF
6459 cat confdefs.h >>conftest.$ac_ext
6460 cat >>conftest.$ac_ext <<_ACEOF
6461 /* end confdefs.h. */
6462 #include <time.h>
6464 _ACEOF
6465 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6466 $EGREP "clock_t" >/dev/null 2>&1; then
6467 was_it_defined=yes
6468 else
6471 cat >>confdefs.h <<\_ACEOF
6472 #define clock_t long
6473 _ACEOF
6477 rm -f conftest*
6479 { echo "$as_me:$LINENO: result: $was_it_defined" >&5
6480 echo "${ECHO_T}$was_it_defined" >&6; }
6482 # Check whether using makedev requires defining _OSF_SOURCE
6483 { echo "$as_me:$LINENO: checking for makedev" >&5
6484 echo $ECHO_N "checking for makedev... $ECHO_C" >&6; }
6485 cat >conftest.$ac_ext <<_ACEOF
6486 /* confdefs.h. */
6487 _ACEOF
6488 cat confdefs.h >>conftest.$ac_ext
6489 cat >>conftest.$ac_ext <<_ACEOF
6490 /* end confdefs.h. */
6491 #include <sys/types.h>
6493 main ()
6495 makedev(0, 0)
6497 return 0;
6499 _ACEOF
6500 rm -f conftest.$ac_objext conftest$ac_exeext
6501 if { (ac_try="$ac_link"
6502 case "(($ac_try" in
6503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6504 *) ac_try_echo=$ac_try;;
6505 esac
6506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6507 (eval "$ac_link") 2>conftest.er1
6508 ac_status=$?
6509 grep -v '^ *+' conftest.er1 >conftest.err
6510 rm -f conftest.er1
6511 cat conftest.err >&5
6512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6513 (exit $ac_status); } && {
6514 test -z "$ac_c_werror_flag" ||
6515 test ! -s conftest.err
6516 } && test -s conftest$ac_exeext &&
6517 $as_test_x conftest$ac_exeext; then
6518 ac_cv_has_makedev=yes
6519 else
6520 echo "$as_me: failed program was:" >&5
6521 sed 's/^/| /' conftest.$ac_ext >&5
6523 ac_cv_has_makedev=no
6526 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6527 conftest$ac_exeext conftest.$ac_ext
6528 if test "$ac_cv_has_makedev" = "no"; then
6529 # we didn't link, try if _OSF_SOURCE will allow us to link
6530 cat >conftest.$ac_ext <<_ACEOF
6531 /* confdefs.h. */
6532 _ACEOF
6533 cat confdefs.h >>conftest.$ac_ext
6534 cat >>conftest.$ac_ext <<_ACEOF
6535 /* end confdefs.h. */
6537 #define _OSF_SOURCE 1
6538 #include <sys/types.h>
6541 main ()
6543 makedev(0, 0)
6545 return 0;
6547 _ACEOF
6548 rm -f conftest.$ac_objext conftest$ac_exeext
6549 if { (ac_try="$ac_link"
6550 case "(($ac_try" in
6551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6552 *) ac_try_echo=$ac_try;;
6553 esac
6554 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6555 (eval "$ac_link") 2>conftest.er1
6556 ac_status=$?
6557 grep -v '^ *+' conftest.er1 >conftest.err
6558 rm -f conftest.er1
6559 cat conftest.err >&5
6560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6561 (exit $ac_status); } && {
6562 test -z "$ac_c_werror_flag" ||
6563 test ! -s conftest.err
6564 } && test -s conftest$ac_exeext &&
6565 $as_test_x conftest$ac_exeext; then
6566 ac_cv_has_makedev=yes
6567 else
6568 echo "$as_me: failed program was:" >&5
6569 sed 's/^/| /' conftest.$ac_ext >&5
6571 ac_cv_has_makedev=no
6574 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6575 conftest$ac_exeext conftest.$ac_ext
6576 if test "$ac_cv_has_makedev" = "yes"; then
6578 cat >>confdefs.h <<\_ACEOF
6579 #define _OSF_SOURCE 1
6580 _ACEOF
6584 { echo "$as_me:$LINENO: result: $ac_cv_has_makedev" >&5
6585 echo "${ECHO_T}$ac_cv_has_makedev" >&6; }
6586 if test "$ac_cv_has_makedev" = "yes"; then
6588 cat >>confdefs.h <<\_ACEOF
6589 #define HAVE_MAKEDEV 1
6590 _ACEOF
6594 # Enabling LFS on Solaris (2.6 to 9) with gcc 2.95 triggers a bug in
6595 # the system headers: If _XOPEN_SOURCE and _LARGEFILE_SOURCE are
6596 # defined, but the compiler does not support pragma redefine_extname,
6597 # and _LARGEFILE64_SOURCE is not defined, the headers refer to 64-bit
6598 # structures (such as rlimit64) without declaring them. As a
6599 # work-around, disable LFS on such configurations
6601 use_lfs=yes
6602 { echo "$as_me:$LINENO: checking Solaris LFS bug" >&5
6603 echo $ECHO_N "checking Solaris LFS bug... $ECHO_C" >&6; }
6604 cat >conftest.$ac_ext <<_ACEOF
6605 /* confdefs.h. */
6606 _ACEOF
6607 cat confdefs.h >>conftest.$ac_ext
6608 cat >>conftest.$ac_ext <<_ACEOF
6609 /* end confdefs.h. */
6611 #define _LARGEFILE_SOURCE 1
6612 #define _FILE_OFFSET_BITS 64
6613 #include <sys/resource.h>
6616 main ()
6618 struct rlimit foo;
6620 return 0;
6622 _ACEOF
6623 rm -f conftest.$ac_objext
6624 if { (ac_try="$ac_compile"
6625 case "(($ac_try" in
6626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6627 *) ac_try_echo=$ac_try;;
6628 esac
6629 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6630 (eval "$ac_compile") 2>conftest.er1
6631 ac_status=$?
6632 grep -v '^ *+' conftest.er1 >conftest.err
6633 rm -f conftest.er1
6634 cat conftest.err >&5
6635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6636 (exit $ac_status); } && {
6637 test -z "$ac_c_werror_flag" ||
6638 test ! -s conftest.err
6639 } && test -s conftest.$ac_objext; then
6640 sol_lfs_bug=no
6641 else
6642 echo "$as_me: failed program was:" >&5
6643 sed 's/^/| /' conftest.$ac_ext >&5
6645 sol_lfs_bug=yes
6648 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6649 { echo "$as_me:$LINENO: result: $sol_lfs_bug" >&5
6650 echo "${ECHO_T}$sol_lfs_bug" >&6; }
6651 if test "$sol_lfs_bug" = "yes"; then
6652 use_lfs=no
6655 if test "$use_lfs" = "yes"; then
6656 # Two defines needed to enable largefile support on various platforms
6657 # These may affect some typedefs
6659 cat >>confdefs.h <<\_ACEOF
6660 #define _LARGEFILE_SOURCE 1
6661 _ACEOF
6664 cat >>confdefs.h <<\_ACEOF
6665 #define _FILE_OFFSET_BITS 64
6666 _ACEOF
6670 # Add some code to confdefs.h so that the test for off_t works on SCO
6671 cat >> confdefs.h <<\EOF
6672 #if defined(SCO_DS)
6673 #undef _OFF_T
6674 #endif
6677 # Type availability checks
6678 { echo "$as_me:$LINENO: checking for mode_t" >&5
6679 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; }
6680 if test "${ac_cv_type_mode_t+set}" = set; then
6681 echo $ECHO_N "(cached) $ECHO_C" >&6
6682 else
6683 cat >conftest.$ac_ext <<_ACEOF
6684 /* confdefs.h. */
6685 _ACEOF
6686 cat confdefs.h >>conftest.$ac_ext
6687 cat >>conftest.$ac_ext <<_ACEOF
6688 /* end confdefs.h. */
6689 $ac_includes_default
6690 typedef mode_t ac__type_new_;
6692 main ()
6694 if ((ac__type_new_ *) 0)
6695 return 0;
6696 if (sizeof (ac__type_new_))
6697 return 0;
6699 return 0;
6701 _ACEOF
6702 rm -f conftest.$ac_objext
6703 if { (ac_try="$ac_compile"
6704 case "(($ac_try" in
6705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6706 *) ac_try_echo=$ac_try;;
6707 esac
6708 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6709 (eval "$ac_compile") 2>conftest.er1
6710 ac_status=$?
6711 grep -v '^ *+' conftest.er1 >conftest.err
6712 rm -f conftest.er1
6713 cat conftest.err >&5
6714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6715 (exit $ac_status); } && {
6716 test -z "$ac_c_werror_flag" ||
6717 test ! -s conftest.err
6718 } && test -s conftest.$ac_objext; then
6719 ac_cv_type_mode_t=yes
6720 else
6721 echo "$as_me: failed program was:" >&5
6722 sed 's/^/| /' conftest.$ac_ext >&5
6724 ac_cv_type_mode_t=no
6727 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6729 { echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
6730 echo "${ECHO_T}$ac_cv_type_mode_t" >&6; }
6731 if test $ac_cv_type_mode_t = yes; then
6733 else
6735 cat >>confdefs.h <<_ACEOF
6736 #define mode_t int
6737 _ACEOF
6741 { echo "$as_me:$LINENO: checking for off_t" >&5
6742 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
6743 if test "${ac_cv_type_off_t+set}" = set; then
6744 echo $ECHO_N "(cached) $ECHO_C" >&6
6745 else
6746 cat >conftest.$ac_ext <<_ACEOF
6747 /* confdefs.h. */
6748 _ACEOF
6749 cat confdefs.h >>conftest.$ac_ext
6750 cat >>conftest.$ac_ext <<_ACEOF
6751 /* end confdefs.h. */
6752 $ac_includes_default
6753 typedef off_t ac__type_new_;
6755 main ()
6757 if ((ac__type_new_ *) 0)
6758 return 0;
6759 if (sizeof (ac__type_new_))
6760 return 0;
6762 return 0;
6764 _ACEOF
6765 rm -f conftest.$ac_objext
6766 if { (ac_try="$ac_compile"
6767 case "(($ac_try" in
6768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6769 *) ac_try_echo=$ac_try;;
6770 esac
6771 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6772 (eval "$ac_compile") 2>conftest.er1
6773 ac_status=$?
6774 grep -v '^ *+' conftest.er1 >conftest.err
6775 rm -f conftest.er1
6776 cat conftest.err >&5
6777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6778 (exit $ac_status); } && {
6779 test -z "$ac_c_werror_flag" ||
6780 test ! -s conftest.err
6781 } && test -s conftest.$ac_objext; then
6782 ac_cv_type_off_t=yes
6783 else
6784 echo "$as_me: failed program was:" >&5
6785 sed 's/^/| /' conftest.$ac_ext >&5
6787 ac_cv_type_off_t=no
6790 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6792 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
6793 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
6794 if test $ac_cv_type_off_t = yes; then
6796 else
6798 cat >>confdefs.h <<_ACEOF
6799 #define off_t long int
6800 _ACEOF
6804 { echo "$as_me:$LINENO: checking for pid_t" >&5
6805 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
6806 if test "${ac_cv_type_pid_t+set}" = set; then
6807 echo $ECHO_N "(cached) $ECHO_C" >&6
6808 else
6809 cat >conftest.$ac_ext <<_ACEOF
6810 /* confdefs.h. */
6811 _ACEOF
6812 cat confdefs.h >>conftest.$ac_ext
6813 cat >>conftest.$ac_ext <<_ACEOF
6814 /* end confdefs.h. */
6815 $ac_includes_default
6816 typedef pid_t ac__type_new_;
6818 main ()
6820 if ((ac__type_new_ *) 0)
6821 return 0;
6822 if (sizeof (ac__type_new_))
6823 return 0;
6825 return 0;
6827 _ACEOF
6828 rm -f conftest.$ac_objext
6829 if { (ac_try="$ac_compile"
6830 case "(($ac_try" in
6831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6832 *) ac_try_echo=$ac_try;;
6833 esac
6834 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6835 (eval "$ac_compile") 2>conftest.er1
6836 ac_status=$?
6837 grep -v '^ *+' conftest.er1 >conftest.err
6838 rm -f conftest.er1
6839 cat conftest.err >&5
6840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6841 (exit $ac_status); } && {
6842 test -z "$ac_c_werror_flag" ||
6843 test ! -s conftest.err
6844 } && test -s conftest.$ac_objext; then
6845 ac_cv_type_pid_t=yes
6846 else
6847 echo "$as_me: failed program was:" >&5
6848 sed 's/^/| /' conftest.$ac_ext >&5
6850 ac_cv_type_pid_t=no
6853 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6855 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
6856 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
6857 if test $ac_cv_type_pid_t = yes; then
6859 else
6861 cat >>confdefs.h <<_ACEOF
6862 #define pid_t int
6863 _ACEOF
6867 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
6868 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
6869 if test "${ac_cv_type_signal+set}" = set; then
6870 echo $ECHO_N "(cached) $ECHO_C" >&6
6871 else
6872 cat >conftest.$ac_ext <<_ACEOF
6873 /* confdefs.h. */
6874 _ACEOF
6875 cat confdefs.h >>conftest.$ac_ext
6876 cat >>conftest.$ac_ext <<_ACEOF
6877 /* end confdefs.h. */
6878 #include <sys/types.h>
6879 #include <signal.h>
6882 main ()
6884 return *(signal (0, 0)) (0) == 1;
6886 return 0;
6888 _ACEOF
6889 rm -f conftest.$ac_objext
6890 if { (ac_try="$ac_compile"
6891 case "(($ac_try" in
6892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6893 *) ac_try_echo=$ac_try;;
6894 esac
6895 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6896 (eval "$ac_compile") 2>conftest.er1
6897 ac_status=$?
6898 grep -v '^ *+' conftest.er1 >conftest.err
6899 rm -f conftest.er1
6900 cat conftest.err >&5
6901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6902 (exit $ac_status); } && {
6903 test -z "$ac_c_werror_flag" ||
6904 test ! -s conftest.err
6905 } && test -s conftest.$ac_objext; then
6906 ac_cv_type_signal=int
6907 else
6908 echo "$as_me: failed program was:" >&5
6909 sed 's/^/| /' conftest.$ac_ext >&5
6911 ac_cv_type_signal=void
6914 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6916 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
6917 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
6919 cat >>confdefs.h <<_ACEOF
6920 #define RETSIGTYPE $ac_cv_type_signal
6921 _ACEOF
6924 { echo "$as_me:$LINENO: checking for size_t" >&5
6925 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
6926 if test "${ac_cv_type_size_t+set}" = set; then
6927 echo $ECHO_N "(cached) $ECHO_C" >&6
6928 else
6929 cat >conftest.$ac_ext <<_ACEOF
6930 /* confdefs.h. */
6931 _ACEOF
6932 cat confdefs.h >>conftest.$ac_ext
6933 cat >>conftest.$ac_ext <<_ACEOF
6934 /* end confdefs.h. */
6935 $ac_includes_default
6936 typedef size_t ac__type_new_;
6938 main ()
6940 if ((ac__type_new_ *) 0)
6941 return 0;
6942 if (sizeof (ac__type_new_))
6943 return 0;
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_size_t=yes
6966 else
6967 echo "$as_me: failed program was:" >&5
6968 sed 's/^/| /' conftest.$ac_ext >&5
6970 ac_cv_type_size_t=no
6973 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6975 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
6976 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
6977 if test $ac_cv_type_size_t = yes; then
6979 else
6981 cat >>confdefs.h <<_ACEOF
6982 #define size_t unsigned int
6983 _ACEOF
6987 { echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
6988 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
6989 if test "${ac_cv_type_uid_t+set}" = set; then
6990 echo $ECHO_N "(cached) $ECHO_C" >&6
6991 else
6992 cat >conftest.$ac_ext <<_ACEOF
6993 /* confdefs.h. */
6994 _ACEOF
6995 cat confdefs.h >>conftest.$ac_ext
6996 cat >>conftest.$ac_ext <<_ACEOF
6997 /* end confdefs.h. */
6998 #include <sys/types.h>
7000 _ACEOF
7001 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7002 $EGREP "uid_t" >/dev/null 2>&1; then
7003 ac_cv_type_uid_t=yes
7004 else
7005 ac_cv_type_uid_t=no
7007 rm -f conftest*
7010 { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
7011 echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
7012 if test $ac_cv_type_uid_t = no; then
7014 cat >>confdefs.h <<\_ACEOF
7015 #define uid_t int
7016 _ACEOF
7019 cat >>confdefs.h <<\_ACEOF
7020 #define gid_t int
7021 _ACEOF
7026 { echo "$as_me:$LINENO: checking for uint32_t" >&5
7027 echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6; }
7028 if test "${ac_cv_c_uint32_t+set}" = set; then
7029 echo $ECHO_N "(cached) $ECHO_C" >&6
7030 else
7031 ac_cv_c_uint32_t=no
7032 for ac_type in 'uint32_t' 'unsigned int' 'unsigned long int' \
7033 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
7034 cat >conftest.$ac_ext <<_ACEOF
7035 /* confdefs.h. */
7036 _ACEOF
7037 cat confdefs.h >>conftest.$ac_ext
7038 cat >>conftest.$ac_ext <<_ACEOF
7039 /* end confdefs.h. */
7040 $ac_includes_default
7042 main ()
7044 static int test_array [1 - 2 * !(($ac_type) -1 >> (32 - 1) == 1)];
7045 test_array [0] = 0
7048 return 0;
7050 _ACEOF
7051 rm -f conftest.$ac_objext
7052 if { (ac_try="$ac_compile"
7053 case "(($ac_try" in
7054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7055 *) ac_try_echo=$ac_try;;
7056 esac
7057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7058 (eval "$ac_compile") 2>conftest.er1
7059 ac_status=$?
7060 grep -v '^ *+' conftest.er1 >conftest.err
7061 rm -f conftest.er1
7062 cat conftest.err >&5
7063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7064 (exit $ac_status); } && {
7065 test -z "$ac_c_werror_flag" ||
7066 test ! -s conftest.err
7067 } && test -s conftest.$ac_objext; then
7068 case $ac_type in
7069 uint32_t) ac_cv_c_uint32_t=yes ;;
7070 *) ac_cv_c_uint32_t=$ac_type ;;
7071 esac
7073 else
7074 echo "$as_me: failed program was:" >&5
7075 sed 's/^/| /' conftest.$ac_ext >&5
7080 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7081 test "$ac_cv_c_uint32_t" != no && break
7082 done
7084 { echo "$as_me:$LINENO: result: $ac_cv_c_uint32_t" >&5
7085 echo "${ECHO_T}$ac_cv_c_uint32_t" >&6; }
7086 case $ac_cv_c_uint32_t in #(
7087 no|yes) ;; #(
7090 cat >>confdefs.h <<\_ACEOF
7091 #define _UINT32_T 1
7092 _ACEOF
7095 cat >>confdefs.h <<_ACEOF
7096 #define uint32_t $ac_cv_c_uint32_t
7097 _ACEOF
7099 esac
7102 { echo "$as_me:$LINENO: checking for uint64_t" >&5
7103 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
7104 if test "${ac_cv_c_uint64_t+set}" = set; then
7105 echo $ECHO_N "(cached) $ECHO_C" >&6
7106 else
7107 ac_cv_c_uint64_t=no
7108 for ac_type in 'uint64_t' 'unsigned int' 'unsigned long int' \
7109 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
7110 cat >conftest.$ac_ext <<_ACEOF
7111 /* confdefs.h. */
7112 _ACEOF
7113 cat confdefs.h >>conftest.$ac_ext
7114 cat >>conftest.$ac_ext <<_ACEOF
7115 /* end confdefs.h. */
7116 $ac_includes_default
7118 main ()
7120 static int test_array [1 - 2 * !(($ac_type) -1 >> (64 - 1) == 1)];
7121 test_array [0] = 0
7124 return 0;
7126 _ACEOF
7127 rm -f conftest.$ac_objext
7128 if { (ac_try="$ac_compile"
7129 case "(($ac_try" in
7130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7131 *) ac_try_echo=$ac_try;;
7132 esac
7133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7134 (eval "$ac_compile") 2>conftest.er1
7135 ac_status=$?
7136 grep -v '^ *+' conftest.er1 >conftest.err
7137 rm -f conftest.er1
7138 cat conftest.err >&5
7139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7140 (exit $ac_status); } && {
7141 test -z "$ac_c_werror_flag" ||
7142 test ! -s conftest.err
7143 } && test -s conftest.$ac_objext; then
7144 case $ac_type in
7145 uint64_t) ac_cv_c_uint64_t=yes ;;
7146 *) ac_cv_c_uint64_t=$ac_type ;;
7147 esac
7149 else
7150 echo "$as_me: failed program was:" >&5
7151 sed 's/^/| /' conftest.$ac_ext >&5
7156 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7157 test "$ac_cv_c_uint64_t" != no && break
7158 done
7160 { echo "$as_me:$LINENO: result: $ac_cv_c_uint64_t" >&5
7161 echo "${ECHO_T}$ac_cv_c_uint64_t" >&6; }
7162 case $ac_cv_c_uint64_t in #(
7163 no|yes) ;; #(
7166 cat >>confdefs.h <<\_ACEOF
7167 #define _UINT64_T 1
7168 _ACEOF
7171 cat >>confdefs.h <<_ACEOF
7172 #define uint64_t $ac_cv_c_uint64_t
7173 _ACEOF
7175 esac
7178 { echo "$as_me:$LINENO: checking for int32_t" >&5
7179 echo $ECHO_N "checking for int32_t... $ECHO_C" >&6; }
7180 if test "${ac_cv_c_int32_t+set}" = set; then
7181 echo $ECHO_N "(cached) $ECHO_C" >&6
7182 else
7183 ac_cv_c_int32_t=no
7184 for ac_type in 'int32_t' 'int' 'long int' \
7185 'long long int' 'short int' 'signed char'; do
7186 cat >conftest.$ac_ext <<_ACEOF
7187 /* confdefs.h. */
7188 _ACEOF
7189 cat confdefs.h >>conftest.$ac_ext
7190 cat >>conftest.$ac_ext <<_ACEOF
7191 /* end confdefs.h. */
7192 $ac_includes_default
7194 main ()
7196 static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << (32 - 2)) - 1) * 2 + 1))];
7197 test_array [0] = 0
7200 return 0;
7202 _ACEOF
7203 rm -f conftest.$ac_objext
7204 if { (ac_try="$ac_compile"
7205 case "(($ac_try" in
7206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7207 *) ac_try_echo=$ac_try;;
7208 esac
7209 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7210 (eval "$ac_compile") 2>conftest.er1
7211 ac_status=$?
7212 grep -v '^ *+' conftest.er1 >conftest.err
7213 rm -f conftest.er1
7214 cat conftest.err >&5
7215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7216 (exit $ac_status); } && {
7217 test -z "$ac_c_werror_flag" ||
7218 test ! -s conftest.err
7219 } && test -s conftest.$ac_objext; then
7220 cat >conftest.$ac_ext <<_ACEOF
7221 /* confdefs.h. */
7222 _ACEOF
7223 cat confdefs.h >>conftest.$ac_ext
7224 cat >>conftest.$ac_ext <<_ACEOF
7225 /* end confdefs.h. */
7226 $ac_includes_default
7228 main ()
7230 static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << (32 - 2)) - 1) * 2 + 1)
7231 < ($ac_type) (((($ac_type) 1 << (32 - 2)) - 1) * 2 + 2))];
7232 test_array [0] = 0
7235 return 0;
7237 _ACEOF
7238 rm -f conftest.$ac_objext
7239 if { (ac_try="$ac_compile"
7240 case "(($ac_try" in
7241 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7242 *) ac_try_echo=$ac_try;;
7243 esac
7244 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7245 (eval "$ac_compile") 2>conftest.er1
7246 ac_status=$?
7247 grep -v '^ *+' conftest.er1 >conftest.err
7248 rm -f conftest.er1
7249 cat conftest.err >&5
7250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7251 (exit $ac_status); } && {
7252 test -z "$ac_c_werror_flag" ||
7253 test ! -s conftest.err
7254 } && test -s conftest.$ac_objext; then
7256 else
7257 echo "$as_me: failed program was:" >&5
7258 sed 's/^/| /' conftest.$ac_ext >&5
7260 case $ac_type in
7261 int32_t) ac_cv_c_int32_t=yes ;;
7262 *) ac_cv_c_int32_t=$ac_type ;;
7263 esac
7267 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7268 else
7269 echo "$as_me: failed program was:" >&5
7270 sed 's/^/| /' conftest.$ac_ext >&5
7275 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7276 test "$ac_cv_c_int32_t" != no && break
7277 done
7279 { echo "$as_me:$LINENO: result: $ac_cv_c_int32_t" >&5
7280 echo "${ECHO_T}$ac_cv_c_int32_t" >&6; }
7281 case $ac_cv_c_int32_t in #(
7282 no|yes) ;; #(
7285 cat >>confdefs.h <<_ACEOF
7286 #define int32_t $ac_cv_c_int32_t
7287 _ACEOF
7289 esac
7292 { echo "$as_me:$LINENO: checking for int64_t" >&5
7293 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
7294 if test "${ac_cv_c_int64_t+set}" = set; then
7295 echo $ECHO_N "(cached) $ECHO_C" >&6
7296 else
7297 ac_cv_c_int64_t=no
7298 for ac_type in 'int64_t' 'int' 'long int' \
7299 'long long int' 'short int' 'signed char'; do
7300 cat >conftest.$ac_ext <<_ACEOF
7301 /* confdefs.h. */
7302 _ACEOF
7303 cat confdefs.h >>conftest.$ac_ext
7304 cat >>conftest.$ac_ext <<_ACEOF
7305 /* end confdefs.h. */
7306 $ac_includes_default
7308 main ()
7310 static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << (64 - 2)) - 1) * 2 + 1))];
7311 test_array [0] = 0
7314 return 0;
7316 _ACEOF
7317 rm -f conftest.$ac_objext
7318 if { (ac_try="$ac_compile"
7319 case "(($ac_try" in
7320 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7321 *) ac_try_echo=$ac_try;;
7322 esac
7323 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7324 (eval "$ac_compile") 2>conftest.er1
7325 ac_status=$?
7326 grep -v '^ *+' conftest.er1 >conftest.err
7327 rm -f conftest.er1
7328 cat conftest.err >&5
7329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7330 (exit $ac_status); } && {
7331 test -z "$ac_c_werror_flag" ||
7332 test ! -s conftest.err
7333 } && test -s conftest.$ac_objext; then
7334 cat >conftest.$ac_ext <<_ACEOF
7335 /* confdefs.h. */
7336 _ACEOF
7337 cat confdefs.h >>conftest.$ac_ext
7338 cat >>conftest.$ac_ext <<_ACEOF
7339 /* end confdefs.h. */
7340 $ac_includes_default
7342 main ()
7344 static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << (64 - 2)) - 1) * 2 + 1)
7345 < ($ac_type) (((($ac_type) 1 << (64 - 2)) - 1) * 2 + 2))];
7346 test_array [0] = 0
7349 return 0;
7351 _ACEOF
7352 rm -f conftest.$ac_objext
7353 if { (ac_try="$ac_compile"
7354 case "(($ac_try" in
7355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7356 *) ac_try_echo=$ac_try;;
7357 esac
7358 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7359 (eval "$ac_compile") 2>conftest.er1
7360 ac_status=$?
7361 grep -v '^ *+' conftest.er1 >conftest.err
7362 rm -f conftest.er1
7363 cat conftest.err >&5
7364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7365 (exit $ac_status); } && {
7366 test -z "$ac_c_werror_flag" ||
7367 test ! -s conftest.err
7368 } && test -s conftest.$ac_objext; then
7370 else
7371 echo "$as_me: failed program was:" >&5
7372 sed 's/^/| /' conftest.$ac_ext >&5
7374 case $ac_type in
7375 int64_t) ac_cv_c_int64_t=yes ;;
7376 *) ac_cv_c_int64_t=$ac_type ;;
7377 esac
7381 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7382 else
7383 echo "$as_me: failed program was:" >&5
7384 sed 's/^/| /' conftest.$ac_ext >&5
7389 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7390 test "$ac_cv_c_int64_t" != no && break
7391 done
7393 { echo "$as_me:$LINENO: result: $ac_cv_c_int64_t" >&5
7394 echo "${ECHO_T}$ac_cv_c_int64_t" >&6; }
7395 case $ac_cv_c_int64_t in #(
7396 no|yes) ;; #(
7399 cat >>confdefs.h <<_ACEOF
7400 #define int64_t $ac_cv_c_int64_t
7401 _ACEOF
7403 esac
7405 { echo "$as_me:$LINENO: checking for ssize_t" >&5
7406 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
7407 if test "${ac_cv_type_ssize_t+set}" = set; then
7408 echo $ECHO_N "(cached) $ECHO_C" >&6
7409 else
7410 cat >conftest.$ac_ext <<_ACEOF
7411 /* confdefs.h. */
7412 _ACEOF
7413 cat confdefs.h >>conftest.$ac_ext
7414 cat >>conftest.$ac_ext <<_ACEOF
7415 /* end confdefs.h. */
7416 $ac_includes_default
7417 typedef ssize_t ac__type_new_;
7419 main ()
7421 if ((ac__type_new_ *) 0)
7422 return 0;
7423 if (sizeof (ac__type_new_))
7424 return 0;
7426 return 0;
7428 _ACEOF
7429 rm -f conftest.$ac_objext
7430 if { (ac_try="$ac_compile"
7431 case "(($ac_try" in
7432 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7433 *) ac_try_echo=$ac_try;;
7434 esac
7435 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7436 (eval "$ac_compile") 2>conftest.er1
7437 ac_status=$?
7438 grep -v '^ *+' conftest.er1 >conftest.err
7439 rm -f conftest.er1
7440 cat conftest.err >&5
7441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7442 (exit $ac_status); } && {
7443 test -z "$ac_c_werror_flag" ||
7444 test ! -s conftest.err
7445 } && test -s conftest.$ac_objext; then
7446 ac_cv_type_ssize_t=yes
7447 else
7448 echo "$as_me: failed program was:" >&5
7449 sed 's/^/| /' conftest.$ac_ext >&5
7451 ac_cv_type_ssize_t=no
7454 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7456 { echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
7457 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6; }
7458 if test $ac_cv_type_ssize_t = yes; then
7460 cat >>confdefs.h <<\_ACEOF
7461 #define HAVE_SSIZE_T 1
7462 _ACEOF
7467 # Sizes of various common basic types
7468 # ANSI C requires sizeof(char) == 1, so no need to check it
7469 { echo "$as_me:$LINENO: checking for int" >&5
7470 echo $ECHO_N "checking for int... $ECHO_C" >&6; }
7471 if test "${ac_cv_type_int+set}" = set; then
7472 echo $ECHO_N "(cached) $ECHO_C" >&6
7473 else
7474 cat >conftest.$ac_ext <<_ACEOF
7475 /* confdefs.h. */
7476 _ACEOF
7477 cat confdefs.h >>conftest.$ac_ext
7478 cat >>conftest.$ac_ext <<_ACEOF
7479 /* end confdefs.h. */
7480 $ac_includes_default
7481 typedef int ac__type_new_;
7483 main ()
7485 if ((ac__type_new_ *) 0)
7486 return 0;
7487 if (sizeof (ac__type_new_))
7488 return 0;
7490 return 0;
7492 _ACEOF
7493 rm -f conftest.$ac_objext
7494 if { (ac_try="$ac_compile"
7495 case "(($ac_try" in
7496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7497 *) ac_try_echo=$ac_try;;
7498 esac
7499 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7500 (eval "$ac_compile") 2>conftest.er1
7501 ac_status=$?
7502 grep -v '^ *+' conftest.er1 >conftest.err
7503 rm -f conftest.er1
7504 cat conftest.err >&5
7505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7506 (exit $ac_status); } && {
7507 test -z "$ac_c_werror_flag" ||
7508 test ! -s conftest.err
7509 } && test -s conftest.$ac_objext; then
7510 ac_cv_type_int=yes
7511 else
7512 echo "$as_me: failed program was:" >&5
7513 sed 's/^/| /' conftest.$ac_ext >&5
7515 ac_cv_type_int=no
7518 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7520 { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
7521 echo "${ECHO_T}$ac_cv_type_int" >&6; }
7523 # The cast to long int works around a bug in the HP C Compiler
7524 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7525 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7526 # This bug is HP SR number 8606223364.
7527 { echo "$as_me:$LINENO: checking size of int" >&5
7528 echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
7529 if test "${ac_cv_sizeof_int+set}" = set; then
7530 echo $ECHO_N "(cached) $ECHO_C" >&6
7531 else
7532 if test "$cross_compiling" = yes; then
7533 # Depending upon the size, compute the lo and hi bounds.
7534 cat >conftest.$ac_ext <<_ACEOF
7535 /* confdefs.h. */
7536 _ACEOF
7537 cat confdefs.h >>conftest.$ac_ext
7538 cat >>conftest.$ac_ext <<_ACEOF
7539 /* end confdefs.h. */
7540 $ac_includes_default
7541 typedef int ac__type_sizeof_;
7543 main ()
7545 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
7546 test_array [0] = 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_lo=0 ac_mid=0
7570 while :; do
7571 cat >conftest.$ac_ext <<_ACEOF
7572 /* confdefs.h. */
7573 _ACEOF
7574 cat confdefs.h >>conftest.$ac_ext
7575 cat >>conftest.$ac_ext <<_ACEOF
7576 /* end confdefs.h. */
7577 $ac_includes_default
7578 typedef int ac__type_sizeof_;
7580 main ()
7582 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
7583 test_array [0] = 0
7586 return 0;
7588 _ACEOF
7589 rm -f conftest.$ac_objext
7590 if { (ac_try="$ac_compile"
7591 case "(($ac_try" in
7592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7593 *) ac_try_echo=$ac_try;;
7594 esac
7595 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7596 (eval "$ac_compile") 2>conftest.er1
7597 ac_status=$?
7598 grep -v '^ *+' conftest.er1 >conftest.err
7599 rm -f conftest.er1
7600 cat conftest.err >&5
7601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7602 (exit $ac_status); } && {
7603 test -z "$ac_c_werror_flag" ||
7604 test ! -s conftest.err
7605 } && test -s conftest.$ac_objext; then
7606 ac_hi=$ac_mid; break
7607 else
7608 echo "$as_me: failed program was:" >&5
7609 sed 's/^/| /' conftest.$ac_ext >&5
7611 ac_lo=`expr $ac_mid + 1`
7612 if test $ac_lo -le $ac_mid; then
7613 ac_lo= ac_hi=
7614 break
7616 ac_mid=`expr 2 '*' $ac_mid + 1`
7619 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7620 done
7621 else
7622 echo "$as_me: failed program was:" >&5
7623 sed 's/^/| /' conftest.$ac_ext >&5
7625 cat >conftest.$ac_ext <<_ACEOF
7626 /* confdefs.h. */
7627 _ACEOF
7628 cat confdefs.h >>conftest.$ac_ext
7629 cat >>conftest.$ac_ext <<_ACEOF
7630 /* end confdefs.h. */
7631 $ac_includes_default
7632 typedef int ac__type_sizeof_;
7634 main ()
7636 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
7637 test_array [0] = 0
7640 return 0;
7642 _ACEOF
7643 rm -f conftest.$ac_objext
7644 if { (ac_try="$ac_compile"
7645 case "(($ac_try" in
7646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7647 *) ac_try_echo=$ac_try;;
7648 esac
7649 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7650 (eval "$ac_compile") 2>conftest.er1
7651 ac_status=$?
7652 grep -v '^ *+' conftest.er1 >conftest.err
7653 rm -f conftest.er1
7654 cat conftest.err >&5
7655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7656 (exit $ac_status); } && {
7657 test -z "$ac_c_werror_flag" ||
7658 test ! -s conftest.err
7659 } && test -s conftest.$ac_objext; then
7660 ac_hi=-1 ac_mid=-1
7661 while :; do
7662 cat >conftest.$ac_ext <<_ACEOF
7663 /* confdefs.h. */
7664 _ACEOF
7665 cat confdefs.h >>conftest.$ac_ext
7666 cat >>conftest.$ac_ext <<_ACEOF
7667 /* end confdefs.h. */
7668 $ac_includes_default
7669 typedef int ac__type_sizeof_;
7671 main ()
7673 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
7674 test_array [0] = 0
7677 return 0;
7679 _ACEOF
7680 rm -f conftest.$ac_objext
7681 if { (ac_try="$ac_compile"
7682 case "(($ac_try" in
7683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7684 *) ac_try_echo=$ac_try;;
7685 esac
7686 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7687 (eval "$ac_compile") 2>conftest.er1
7688 ac_status=$?
7689 grep -v '^ *+' conftest.er1 >conftest.err
7690 rm -f conftest.er1
7691 cat conftest.err >&5
7692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7693 (exit $ac_status); } && {
7694 test -z "$ac_c_werror_flag" ||
7695 test ! -s conftest.err
7696 } && test -s conftest.$ac_objext; then
7697 ac_lo=$ac_mid; break
7698 else
7699 echo "$as_me: failed program was:" >&5
7700 sed 's/^/| /' conftest.$ac_ext >&5
7702 ac_hi=`expr '(' $ac_mid ')' - 1`
7703 if test $ac_mid -le $ac_hi; then
7704 ac_lo= ac_hi=
7705 break
7707 ac_mid=`expr 2 '*' $ac_mid`
7710 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7711 done
7712 else
7713 echo "$as_me: failed program was:" >&5
7714 sed 's/^/| /' conftest.$ac_ext >&5
7716 ac_lo= ac_hi=
7719 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7722 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7723 # Binary search between lo and hi bounds.
7724 while test "x$ac_lo" != "x$ac_hi"; do
7725 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7726 cat >conftest.$ac_ext <<_ACEOF
7727 /* confdefs.h. */
7728 _ACEOF
7729 cat confdefs.h >>conftest.$ac_ext
7730 cat >>conftest.$ac_ext <<_ACEOF
7731 /* end confdefs.h. */
7732 $ac_includes_default
7733 typedef int ac__type_sizeof_;
7735 main ()
7737 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
7738 test_array [0] = 0
7741 return 0;
7743 _ACEOF
7744 rm -f conftest.$ac_objext
7745 if { (ac_try="$ac_compile"
7746 case "(($ac_try" in
7747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7748 *) ac_try_echo=$ac_try;;
7749 esac
7750 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7751 (eval "$ac_compile") 2>conftest.er1
7752 ac_status=$?
7753 grep -v '^ *+' conftest.er1 >conftest.err
7754 rm -f conftest.er1
7755 cat conftest.err >&5
7756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7757 (exit $ac_status); } && {
7758 test -z "$ac_c_werror_flag" ||
7759 test ! -s conftest.err
7760 } && test -s conftest.$ac_objext; then
7761 ac_hi=$ac_mid
7762 else
7763 echo "$as_me: failed program was:" >&5
7764 sed 's/^/| /' conftest.$ac_ext >&5
7766 ac_lo=`expr '(' $ac_mid ')' + 1`
7769 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7770 done
7771 case $ac_lo in
7772 ?*) ac_cv_sizeof_int=$ac_lo;;
7773 '') if test "$ac_cv_type_int" = yes; then
7774 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
7775 See \`config.log' for more details." >&5
7776 echo "$as_me: error: cannot compute sizeof (int)
7777 See \`config.log' for more details." >&2;}
7778 { (exit 77); exit 77; }; }
7779 else
7780 ac_cv_sizeof_int=0
7781 fi ;;
7782 esac
7783 else
7784 cat >conftest.$ac_ext <<_ACEOF
7785 /* confdefs.h. */
7786 _ACEOF
7787 cat confdefs.h >>conftest.$ac_ext
7788 cat >>conftest.$ac_ext <<_ACEOF
7789 /* end confdefs.h. */
7790 $ac_includes_default
7791 typedef int ac__type_sizeof_;
7792 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
7793 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
7794 #include <stdio.h>
7795 #include <stdlib.h>
7797 main ()
7800 FILE *f = fopen ("conftest.val", "w");
7801 if (! f)
7802 return 1;
7803 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
7805 long int i = longval ();
7806 if (i != ((long int) (sizeof (ac__type_sizeof_))))
7807 return 1;
7808 fprintf (f, "%ld\n", i);
7810 else
7812 unsigned long int i = ulongval ();
7813 if (i != ((long int) (sizeof (ac__type_sizeof_))))
7814 return 1;
7815 fprintf (f, "%lu\n", i);
7817 return ferror (f) || fclose (f) != 0;
7820 return 0;
7822 _ACEOF
7823 rm -f conftest$ac_exeext
7824 if { (ac_try="$ac_link"
7825 case "(($ac_try" in
7826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7827 *) ac_try_echo=$ac_try;;
7828 esac
7829 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7830 (eval "$ac_link") 2>&5
7831 ac_status=$?
7832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7833 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7834 { (case "(($ac_try" in
7835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7836 *) ac_try_echo=$ac_try;;
7837 esac
7838 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7839 (eval "$ac_try") 2>&5
7840 ac_status=$?
7841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7842 (exit $ac_status); }; }; then
7843 ac_cv_sizeof_int=`cat conftest.val`
7844 else
7845 echo "$as_me: program exited with status $ac_status" >&5
7846 echo "$as_me: failed program was:" >&5
7847 sed 's/^/| /' conftest.$ac_ext >&5
7849 ( exit $ac_status )
7850 if test "$ac_cv_type_int" = yes; then
7851 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
7852 See \`config.log' for more details." >&5
7853 echo "$as_me: error: cannot compute sizeof (int)
7854 See \`config.log' for more details." >&2;}
7855 { (exit 77); exit 77; }; }
7856 else
7857 ac_cv_sizeof_int=0
7860 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7862 rm -f conftest.val
7864 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
7865 echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
7869 cat >>confdefs.h <<_ACEOF
7870 #define SIZEOF_INT $ac_cv_sizeof_int
7871 _ACEOF
7874 { echo "$as_me:$LINENO: checking for long" >&5
7875 echo $ECHO_N "checking for long... $ECHO_C" >&6; }
7876 if test "${ac_cv_type_long+set}" = set; then
7877 echo $ECHO_N "(cached) $ECHO_C" >&6
7878 else
7879 cat >conftest.$ac_ext <<_ACEOF
7880 /* confdefs.h. */
7881 _ACEOF
7882 cat confdefs.h >>conftest.$ac_ext
7883 cat >>conftest.$ac_ext <<_ACEOF
7884 /* end confdefs.h. */
7885 $ac_includes_default
7886 typedef long ac__type_new_;
7888 main ()
7890 if ((ac__type_new_ *) 0)
7891 return 0;
7892 if (sizeof (ac__type_new_))
7893 return 0;
7895 return 0;
7897 _ACEOF
7898 rm -f conftest.$ac_objext
7899 if { (ac_try="$ac_compile"
7900 case "(($ac_try" in
7901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7902 *) ac_try_echo=$ac_try;;
7903 esac
7904 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7905 (eval "$ac_compile") 2>conftest.er1
7906 ac_status=$?
7907 grep -v '^ *+' conftest.er1 >conftest.err
7908 rm -f conftest.er1
7909 cat conftest.err >&5
7910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7911 (exit $ac_status); } && {
7912 test -z "$ac_c_werror_flag" ||
7913 test ! -s conftest.err
7914 } && test -s conftest.$ac_objext; then
7915 ac_cv_type_long=yes
7916 else
7917 echo "$as_me: failed program was:" >&5
7918 sed 's/^/| /' conftest.$ac_ext >&5
7920 ac_cv_type_long=no
7923 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7925 { echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
7926 echo "${ECHO_T}$ac_cv_type_long" >&6; }
7928 # The cast to long int works around a bug in the HP C Compiler
7929 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7930 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7931 # This bug is HP SR number 8606223364.
7932 { echo "$as_me:$LINENO: checking size of long" >&5
7933 echo $ECHO_N "checking size of long... $ECHO_C" >&6; }
7934 if test "${ac_cv_sizeof_long+set}" = set; then
7935 echo $ECHO_N "(cached) $ECHO_C" >&6
7936 else
7937 if test "$cross_compiling" = yes; then
7938 # Depending upon the size, compute the lo and hi bounds.
7939 cat >conftest.$ac_ext <<_ACEOF
7940 /* confdefs.h. */
7941 _ACEOF
7942 cat confdefs.h >>conftest.$ac_ext
7943 cat >>conftest.$ac_ext <<_ACEOF
7944 /* end confdefs.h. */
7945 $ac_includes_default
7946 typedef long ac__type_sizeof_;
7948 main ()
7950 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
7951 test_array [0] = 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_lo=0 ac_mid=0
7975 while :; do
7976 cat >conftest.$ac_ext <<_ACEOF
7977 /* confdefs.h. */
7978 _ACEOF
7979 cat confdefs.h >>conftest.$ac_ext
7980 cat >>conftest.$ac_ext <<_ACEOF
7981 /* end confdefs.h. */
7982 $ac_includes_default
7983 typedef long ac__type_sizeof_;
7985 main ()
7987 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
7988 test_array [0] = 0
7991 return 0;
7993 _ACEOF
7994 rm -f conftest.$ac_objext
7995 if { (ac_try="$ac_compile"
7996 case "(($ac_try" in
7997 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7998 *) ac_try_echo=$ac_try;;
7999 esac
8000 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8001 (eval "$ac_compile") 2>conftest.er1
8002 ac_status=$?
8003 grep -v '^ *+' conftest.er1 >conftest.err
8004 rm -f conftest.er1
8005 cat conftest.err >&5
8006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8007 (exit $ac_status); } && {
8008 test -z "$ac_c_werror_flag" ||
8009 test ! -s conftest.err
8010 } && test -s conftest.$ac_objext; then
8011 ac_hi=$ac_mid; break
8012 else
8013 echo "$as_me: failed program was:" >&5
8014 sed 's/^/| /' conftest.$ac_ext >&5
8016 ac_lo=`expr $ac_mid + 1`
8017 if test $ac_lo -le $ac_mid; then
8018 ac_lo= ac_hi=
8019 break
8021 ac_mid=`expr 2 '*' $ac_mid + 1`
8024 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8025 done
8026 else
8027 echo "$as_me: failed program was:" >&5
8028 sed 's/^/| /' conftest.$ac_ext >&5
8030 cat >conftest.$ac_ext <<_ACEOF
8031 /* confdefs.h. */
8032 _ACEOF
8033 cat confdefs.h >>conftest.$ac_ext
8034 cat >>conftest.$ac_ext <<_ACEOF
8035 /* end confdefs.h. */
8036 $ac_includes_default
8037 typedef long ac__type_sizeof_;
8039 main ()
8041 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
8042 test_array [0] = 0
8045 return 0;
8047 _ACEOF
8048 rm -f conftest.$ac_objext
8049 if { (ac_try="$ac_compile"
8050 case "(($ac_try" in
8051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8052 *) ac_try_echo=$ac_try;;
8053 esac
8054 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8055 (eval "$ac_compile") 2>conftest.er1
8056 ac_status=$?
8057 grep -v '^ *+' conftest.er1 >conftest.err
8058 rm -f conftest.er1
8059 cat conftest.err >&5
8060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8061 (exit $ac_status); } && {
8062 test -z "$ac_c_werror_flag" ||
8063 test ! -s conftest.err
8064 } && test -s conftest.$ac_objext; then
8065 ac_hi=-1 ac_mid=-1
8066 while :; do
8067 cat >conftest.$ac_ext <<_ACEOF
8068 /* confdefs.h. */
8069 _ACEOF
8070 cat confdefs.h >>conftest.$ac_ext
8071 cat >>conftest.$ac_ext <<_ACEOF
8072 /* end confdefs.h. */
8073 $ac_includes_default
8074 typedef long ac__type_sizeof_;
8076 main ()
8078 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
8079 test_array [0] = 0
8082 return 0;
8084 _ACEOF
8085 rm -f conftest.$ac_objext
8086 if { (ac_try="$ac_compile"
8087 case "(($ac_try" in
8088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8089 *) ac_try_echo=$ac_try;;
8090 esac
8091 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8092 (eval "$ac_compile") 2>conftest.er1
8093 ac_status=$?
8094 grep -v '^ *+' conftest.er1 >conftest.err
8095 rm -f conftest.er1
8096 cat conftest.err >&5
8097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8098 (exit $ac_status); } && {
8099 test -z "$ac_c_werror_flag" ||
8100 test ! -s conftest.err
8101 } && test -s conftest.$ac_objext; then
8102 ac_lo=$ac_mid; break
8103 else
8104 echo "$as_me: failed program was:" >&5
8105 sed 's/^/| /' conftest.$ac_ext >&5
8107 ac_hi=`expr '(' $ac_mid ')' - 1`
8108 if test $ac_mid -le $ac_hi; then
8109 ac_lo= ac_hi=
8110 break
8112 ac_mid=`expr 2 '*' $ac_mid`
8115 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8116 done
8117 else
8118 echo "$as_me: failed program was:" >&5
8119 sed 's/^/| /' conftest.$ac_ext >&5
8121 ac_lo= ac_hi=
8124 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8127 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8128 # Binary search between lo and hi bounds.
8129 while test "x$ac_lo" != "x$ac_hi"; do
8130 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8131 cat >conftest.$ac_ext <<_ACEOF
8132 /* confdefs.h. */
8133 _ACEOF
8134 cat confdefs.h >>conftest.$ac_ext
8135 cat >>conftest.$ac_ext <<_ACEOF
8136 /* end confdefs.h. */
8137 $ac_includes_default
8138 typedef long ac__type_sizeof_;
8140 main ()
8142 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8143 test_array [0] = 0
8146 return 0;
8148 _ACEOF
8149 rm -f conftest.$ac_objext
8150 if { (ac_try="$ac_compile"
8151 case "(($ac_try" in
8152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8153 *) ac_try_echo=$ac_try;;
8154 esac
8155 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8156 (eval "$ac_compile") 2>conftest.er1
8157 ac_status=$?
8158 grep -v '^ *+' conftest.er1 >conftest.err
8159 rm -f conftest.er1
8160 cat conftest.err >&5
8161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8162 (exit $ac_status); } && {
8163 test -z "$ac_c_werror_flag" ||
8164 test ! -s conftest.err
8165 } && test -s conftest.$ac_objext; then
8166 ac_hi=$ac_mid
8167 else
8168 echo "$as_me: failed program was:" >&5
8169 sed 's/^/| /' conftest.$ac_ext >&5
8171 ac_lo=`expr '(' $ac_mid ')' + 1`
8174 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8175 done
8176 case $ac_lo in
8177 ?*) ac_cv_sizeof_long=$ac_lo;;
8178 '') if test "$ac_cv_type_long" = yes; then
8179 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
8180 See \`config.log' for more details." >&5
8181 echo "$as_me: error: cannot compute sizeof (long)
8182 See \`config.log' for more details." >&2;}
8183 { (exit 77); exit 77; }; }
8184 else
8185 ac_cv_sizeof_long=0
8186 fi ;;
8187 esac
8188 else
8189 cat >conftest.$ac_ext <<_ACEOF
8190 /* confdefs.h. */
8191 _ACEOF
8192 cat confdefs.h >>conftest.$ac_ext
8193 cat >>conftest.$ac_ext <<_ACEOF
8194 /* end confdefs.h. */
8195 $ac_includes_default
8196 typedef long ac__type_sizeof_;
8197 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
8198 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
8199 #include <stdio.h>
8200 #include <stdlib.h>
8202 main ()
8205 FILE *f = fopen ("conftest.val", "w");
8206 if (! f)
8207 return 1;
8208 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
8210 long int i = longval ();
8211 if (i != ((long int) (sizeof (ac__type_sizeof_))))
8212 return 1;
8213 fprintf (f, "%ld\n", i);
8215 else
8217 unsigned long int i = ulongval ();
8218 if (i != ((long int) (sizeof (ac__type_sizeof_))))
8219 return 1;
8220 fprintf (f, "%lu\n", i);
8222 return ferror (f) || fclose (f) != 0;
8225 return 0;
8227 _ACEOF
8228 rm -f conftest$ac_exeext
8229 if { (ac_try="$ac_link"
8230 case "(($ac_try" in
8231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8232 *) ac_try_echo=$ac_try;;
8233 esac
8234 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8235 (eval "$ac_link") 2>&5
8236 ac_status=$?
8237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8238 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8239 { (case "(($ac_try" in
8240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8241 *) ac_try_echo=$ac_try;;
8242 esac
8243 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8244 (eval "$ac_try") 2>&5
8245 ac_status=$?
8246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8247 (exit $ac_status); }; }; then
8248 ac_cv_sizeof_long=`cat conftest.val`
8249 else
8250 echo "$as_me: program exited with status $ac_status" >&5
8251 echo "$as_me: failed program was:" >&5
8252 sed 's/^/| /' conftest.$ac_ext >&5
8254 ( exit $ac_status )
8255 if test "$ac_cv_type_long" = yes; then
8256 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
8257 See \`config.log' for more details." >&5
8258 echo "$as_me: error: cannot compute sizeof (long)
8259 See \`config.log' for more details." >&2;}
8260 { (exit 77); exit 77; }; }
8261 else
8262 ac_cv_sizeof_long=0
8265 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8267 rm -f conftest.val
8269 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
8270 echo "${ECHO_T}$ac_cv_sizeof_long" >&6; }
8274 cat >>confdefs.h <<_ACEOF
8275 #define SIZEOF_LONG $ac_cv_sizeof_long
8276 _ACEOF
8279 { echo "$as_me:$LINENO: checking for void *" >&5
8280 echo $ECHO_N "checking for void *... $ECHO_C" >&6; }
8281 if test "${ac_cv_type_void_p+set}" = set; then
8282 echo $ECHO_N "(cached) $ECHO_C" >&6
8283 else
8284 cat >conftest.$ac_ext <<_ACEOF
8285 /* confdefs.h. */
8286 _ACEOF
8287 cat confdefs.h >>conftest.$ac_ext
8288 cat >>conftest.$ac_ext <<_ACEOF
8289 /* end confdefs.h. */
8290 $ac_includes_default
8291 typedef void * ac__type_new_;
8293 main ()
8295 if ((ac__type_new_ *) 0)
8296 return 0;
8297 if (sizeof (ac__type_new_))
8298 return 0;
8300 return 0;
8302 _ACEOF
8303 rm -f conftest.$ac_objext
8304 if { (ac_try="$ac_compile"
8305 case "(($ac_try" in
8306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8307 *) ac_try_echo=$ac_try;;
8308 esac
8309 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8310 (eval "$ac_compile") 2>conftest.er1
8311 ac_status=$?
8312 grep -v '^ *+' conftest.er1 >conftest.err
8313 rm -f conftest.er1
8314 cat conftest.err >&5
8315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8316 (exit $ac_status); } && {
8317 test -z "$ac_c_werror_flag" ||
8318 test ! -s conftest.err
8319 } && test -s conftest.$ac_objext; then
8320 ac_cv_type_void_p=yes
8321 else
8322 echo "$as_me: failed program was:" >&5
8323 sed 's/^/| /' conftest.$ac_ext >&5
8325 ac_cv_type_void_p=no
8328 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8330 { echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
8331 echo "${ECHO_T}$ac_cv_type_void_p" >&6; }
8333 # The cast to long int works around a bug in the HP C Compiler
8334 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8335 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8336 # This bug is HP SR number 8606223364.
8337 { echo "$as_me:$LINENO: checking size of void *" >&5
8338 echo $ECHO_N "checking size of void *... $ECHO_C" >&6; }
8339 if test "${ac_cv_sizeof_void_p+set}" = set; then
8340 echo $ECHO_N "(cached) $ECHO_C" >&6
8341 else
8342 if test "$cross_compiling" = yes; then
8343 # Depending upon the size, compute the lo and hi bounds.
8344 cat >conftest.$ac_ext <<_ACEOF
8345 /* confdefs.h. */
8346 _ACEOF
8347 cat confdefs.h >>conftest.$ac_ext
8348 cat >>conftest.$ac_ext <<_ACEOF
8349 /* end confdefs.h. */
8350 $ac_includes_default
8351 typedef void * ac__type_sizeof_;
8353 main ()
8355 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
8356 test_array [0] = 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_lo=0 ac_mid=0
8380 while :; do
8381 cat >conftest.$ac_ext <<_ACEOF
8382 /* confdefs.h. */
8383 _ACEOF
8384 cat confdefs.h >>conftest.$ac_ext
8385 cat >>conftest.$ac_ext <<_ACEOF
8386 /* end confdefs.h. */
8387 $ac_includes_default
8388 typedef void * ac__type_sizeof_;
8390 main ()
8392 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8393 test_array [0] = 0
8396 return 0;
8398 _ACEOF
8399 rm -f conftest.$ac_objext
8400 if { (ac_try="$ac_compile"
8401 case "(($ac_try" in
8402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8403 *) ac_try_echo=$ac_try;;
8404 esac
8405 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8406 (eval "$ac_compile") 2>conftest.er1
8407 ac_status=$?
8408 grep -v '^ *+' conftest.er1 >conftest.err
8409 rm -f conftest.er1
8410 cat conftest.err >&5
8411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8412 (exit $ac_status); } && {
8413 test -z "$ac_c_werror_flag" ||
8414 test ! -s conftest.err
8415 } && test -s conftest.$ac_objext; then
8416 ac_hi=$ac_mid; break
8417 else
8418 echo "$as_me: failed program was:" >&5
8419 sed 's/^/| /' conftest.$ac_ext >&5
8421 ac_lo=`expr $ac_mid + 1`
8422 if test $ac_lo -le $ac_mid; then
8423 ac_lo= ac_hi=
8424 break
8426 ac_mid=`expr 2 '*' $ac_mid + 1`
8429 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8430 done
8431 else
8432 echo "$as_me: failed program was:" >&5
8433 sed 's/^/| /' conftest.$ac_ext >&5
8435 cat >conftest.$ac_ext <<_ACEOF
8436 /* confdefs.h. */
8437 _ACEOF
8438 cat confdefs.h >>conftest.$ac_ext
8439 cat >>conftest.$ac_ext <<_ACEOF
8440 /* end confdefs.h. */
8441 $ac_includes_default
8442 typedef void * ac__type_sizeof_;
8444 main ()
8446 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
8447 test_array [0] = 0
8450 return 0;
8452 _ACEOF
8453 rm -f conftest.$ac_objext
8454 if { (ac_try="$ac_compile"
8455 case "(($ac_try" in
8456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8457 *) ac_try_echo=$ac_try;;
8458 esac
8459 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8460 (eval "$ac_compile") 2>conftest.er1
8461 ac_status=$?
8462 grep -v '^ *+' conftest.er1 >conftest.err
8463 rm -f conftest.er1
8464 cat conftest.err >&5
8465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8466 (exit $ac_status); } && {
8467 test -z "$ac_c_werror_flag" ||
8468 test ! -s conftest.err
8469 } && test -s conftest.$ac_objext; then
8470 ac_hi=-1 ac_mid=-1
8471 while :; do
8472 cat >conftest.$ac_ext <<_ACEOF
8473 /* confdefs.h. */
8474 _ACEOF
8475 cat confdefs.h >>conftest.$ac_ext
8476 cat >>conftest.$ac_ext <<_ACEOF
8477 /* end confdefs.h. */
8478 $ac_includes_default
8479 typedef void * ac__type_sizeof_;
8481 main ()
8483 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
8484 test_array [0] = 0
8487 return 0;
8489 _ACEOF
8490 rm -f conftest.$ac_objext
8491 if { (ac_try="$ac_compile"
8492 case "(($ac_try" in
8493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8494 *) ac_try_echo=$ac_try;;
8495 esac
8496 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8497 (eval "$ac_compile") 2>conftest.er1
8498 ac_status=$?
8499 grep -v '^ *+' conftest.er1 >conftest.err
8500 rm -f conftest.er1
8501 cat conftest.err >&5
8502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8503 (exit $ac_status); } && {
8504 test -z "$ac_c_werror_flag" ||
8505 test ! -s conftest.err
8506 } && test -s conftest.$ac_objext; then
8507 ac_lo=$ac_mid; break
8508 else
8509 echo "$as_me: failed program was:" >&5
8510 sed 's/^/| /' conftest.$ac_ext >&5
8512 ac_hi=`expr '(' $ac_mid ')' - 1`
8513 if test $ac_mid -le $ac_hi; then
8514 ac_lo= ac_hi=
8515 break
8517 ac_mid=`expr 2 '*' $ac_mid`
8520 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8521 done
8522 else
8523 echo "$as_me: failed program was:" >&5
8524 sed 's/^/| /' conftest.$ac_ext >&5
8526 ac_lo= ac_hi=
8529 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8532 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8533 # Binary search between lo and hi bounds.
8534 while test "x$ac_lo" != "x$ac_hi"; do
8535 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8536 cat >conftest.$ac_ext <<_ACEOF
8537 /* confdefs.h. */
8538 _ACEOF
8539 cat confdefs.h >>conftest.$ac_ext
8540 cat >>conftest.$ac_ext <<_ACEOF
8541 /* end confdefs.h. */
8542 $ac_includes_default
8543 typedef void * ac__type_sizeof_;
8545 main ()
8547 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8548 test_array [0] = 0
8551 return 0;
8553 _ACEOF
8554 rm -f conftest.$ac_objext
8555 if { (ac_try="$ac_compile"
8556 case "(($ac_try" in
8557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8558 *) ac_try_echo=$ac_try;;
8559 esac
8560 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8561 (eval "$ac_compile") 2>conftest.er1
8562 ac_status=$?
8563 grep -v '^ *+' conftest.er1 >conftest.err
8564 rm -f conftest.er1
8565 cat conftest.err >&5
8566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8567 (exit $ac_status); } && {
8568 test -z "$ac_c_werror_flag" ||
8569 test ! -s conftest.err
8570 } && test -s conftest.$ac_objext; then
8571 ac_hi=$ac_mid
8572 else
8573 echo "$as_me: failed program was:" >&5
8574 sed 's/^/| /' conftest.$ac_ext >&5
8576 ac_lo=`expr '(' $ac_mid ')' + 1`
8579 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8580 done
8581 case $ac_lo in
8582 ?*) ac_cv_sizeof_void_p=$ac_lo;;
8583 '') if test "$ac_cv_type_void_p" = yes; then
8584 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
8585 See \`config.log' for more details." >&5
8586 echo "$as_me: error: cannot compute sizeof (void *)
8587 See \`config.log' for more details." >&2;}
8588 { (exit 77); exit 77; }; }
8589 else
8590 ac_cv_sizeof_void_p=0
8591 fi ;;
8592 esac
8593 else
8594 cat >conftest.$ac_ext <<_ACEOF
8595 /* confdefs.h. */
8596 _ACEOF
8597 cat confdefs.h >>conftest.$ac_ext
8598 cat >>conftest.$ac_ext <<_ACEOF
8599 /* end confdefs.h. */
8600 $ac_includes_default
8601 typedef void * ac__type_sizeof_;
8602 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
8603 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
8604 #include <stdio.h>
8605 #include <stdlib.h>
8607 main ()
8610 FILE *f = fopen ("conftest.val", "w");
8611 if (! f)
8612 return 1;
8613 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
8615 long int i = longval ();
8616 if (i != ((long int) (sizeof (ac__type_sizeof_))))
8617 return 1;
8618 fprintf (f, "%ld\n", i);
8620 else
8622 unsigned long int i = ulongval ();
8623 if (i != ((long int) (sizeof (ac__type_sizeof_))))
8624 return 1;
8625 fprintf (f, "%lu\n", i);
8627 return ferror (f) || fclose (f) != 0;
8630 return 0;
8632 _ACEOF
8633 rm -f conftest$ac_exeext
8634 if { (ac_try="$ac_link"
8635 case "(($ac_try" in
8636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8637 *) ac_try_echo=$ac_try;;
8638 esac
8639 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8640 (eval "$ac_link") 2>&5
8641 ac_status=$?
8642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8643 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8644 { (case "(($ac_try" in
8645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8646 *) ac_try_echo=$ac_try;;
8647 esac
8648 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8649 (eval "$ac_try") 2>&5
8650 ac_status=$?
8651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8652 (exit $ac_status); }; }; then
8653 ac_cv_sizeof_void_p=`cat conftest.val`
8654 else
8655 echo "$as_me: program exited with status $ac_status" >&5
8656 echo "$as_me: failed program was:" >&5
8657 sed 's/^/| /' conftest.$ac_ext >&5
8659 ( exit $ac_status )
8660 if test "$ac_cv_type_void_p" = yes; then
8661 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
8662 See \`config.log' for more details." >&5
8663 echo "$as_me: error: cannot compute sizeof (void *)
8664 See \`config.log' for more details." >&2;}
8665 { (exit 77); exit 77; }; }
8666 else
8667 ac_cv_sizeof_void_p=0
8670 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8672 rm -f conftest.val
8674 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
8675 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6; }
8679 cat >>confdefs.h <<_ACEOF
8680 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
8681 _ACEOF
8684 { echo "$as_me:$LINENO: checking for short" >&5
8685 echo $ECHO_N "checking for short... $ECHO_C" >&6; }
8686 if test "${ac_cv_type_short+set}" = set; then
8687 echo $ECHO_N "(cached) $ECHO_C" >&6
8688 else
8689 cat >conftest.$ac_ext <<_ACEOF
8690 /* confdefs.h. */
8691 _ACEOF
8692 cat confdefs.h >>conftest.$ac_ext
8693 cat >>conftest.$ac_ext <<_ACEOF
8694 /* end confdefs.h. */
8695 $ac_includes_default
8696 typedef short ac__type_new_;
8698 main ()
8700 if ((ac__type_new_ *) 0)
8701 return 0;
8702 if (sizeof (ac__type_new_))
8703 return 0;
8705 return 0;
8707 _ACEOF
8708 rm -f conftest.$ac_objext
8709 if { (ac_try="$ac_compile"
8710 case "(($ac_try" in
8711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8712 *) ac_try_echo=$ac_try;;
8713 esac
8714 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8715 (eval "$ac_compile") 2>conftest.er1
8716 ac_status=$?
8717 grep -v '^ *+' conftest.er1 >conftest.err
8718 rm -f conftest.er1
8719 cat conftest.err >&5
8720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8721 (exit $ac_status); } && {
8722 test -z "$ac_c_werror_flag" ||
8723 test ! -s conftest.err
8724 } && test -s conftest.$ac_objext; then
8725 ac_cv_type_short=yes
8726 else
8727 echo "$as_me: failed program was:" >&5
8728 sed 's/^/| /' conftest.$ac_ext >&5
8730 ac_cv_type_short=no
8733 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8735 { echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
8736 echo "${ECHO_T}$ac_cv_type_short" >&6; }
8738 # The cast to long int works around a bug in the HP C Compiler
8739 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8740 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8741 # This bug is HP SR number 8606223364.
8742 { echo "$as_me:$LINENO: checking size of short" >&5
8743 echo $ECHO_N "checking size of short... $ECHO_C" >&6; }
8744 if test "${ac_cv_sizeof_short+set}" = set; then
8745 echo $ECHO_N "(cached) $ECHO_C" >&6
8746 else
8747 if test "$cross_compiling" = yes; then
8748 # Depending upon the size, compute the lo and hi bounds.
8749 cat >conftest.$ac_ext <<_ACEOF
8750 /* confdefs.h. */
8751 _ACEOF
8752 cat confdefs.h >>conftest.$ac_ext
8753 cat >>conftest.$ac_ext <<_ACEOF
8754 /* end confdefs.h. */
8755 $ac_includes_default
8756 typedef short ac__type_sizeof_;
8758 main ()
8760 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
8761 test_array [0] = 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_lo=0 ac_mid=0
8785 while :; do
8786 cat >conftest.$ac_ext <<_ACEOF
8787 /* confdefs.h. */
8788 _ACEOF
8789 cat confdefs.h >>conftest.$ac_ext
8790 cat >>conftest.$ac_ext <<_ACEOF
8791 /* end confdefs.h. */
8792 $ac_includes_default
8793 typedef short ac__type_sizeof_;
8795 main ()
8797 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8798 test_array [0] = 0
8801 return 0;
8803 _ACEOF
8804 rm -f conftest.$ac_objext
8805 if { (ac_try="$ac_compile"
8806 case "(($ac_try" in
8807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8808 *) ac_try_echo=$ac_try;;
8809 esac
8810 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8811 (eval "$ac_compile") 2>conftest.er1
8812 ac_status=$?
8813 grep -v '^ *+' conftest.er1 >conftest.err
8814 rm -f conftest.er1
8815 cat conftest.err >&5
8816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8817 (exit $ac_status); } && {
8818 test -z "$ac_c_werror_flag" ||
8819 test ! -s conftest.err
8820 } && test -s conftest.$ac_objext; then
8821 ac_hi=$ac_mid; break
8822 else
8823 echo "$as_me: failed program was:" >&5
8824 sed 's/^/| /' conftest.$ac_ext >&5
8826 ac_lo=`expr $ac_mid + 1`
8827 if test $ac_lo -le $ac_mid; then
8828 ac_lo= ac_hi=
8829 break
8831 ac_mid=`expr 2 '*' $ac_mid + 1`
8834 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8835 done
8836 else
8837 echo "$as_me: failed program was:" >&5
8838 sed 's/^/| /' conftest.$ac_ext >&5
8840 cat >conftest.$ac_ext <<_ACEOF
8841 /* confdefs.h. */
8842 _ACEOF
8843 cat confdefs.h >>conftest.$ac_ext
8844 cat >>conftest.$ac_ext <<_ACEOF
8845 /* end confdefs.h. */
8846 $ac_includes_default
8847 typedef short ac__type_sizeof_;
8849 main ()
8851 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
8852 test_array [0] = 0
8855 return 0;
8857 _ACEOF
8858 rm -f conftest.$ac_objext
8859 if { (ac_try="$ac_compile"
8860 case "(($ac_try" in
8861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8862 *) ac_try_echo=$ac_try;;
8863 esac
8864 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8865 (eval "$ac_compile") 2>conftest.er1
8866 ac_status=$?
8867 grep -v '^ *+' conftest.er1 >conftest.err
8868 rm -f conftest.er1
8869 cat conftest.err >&5
8870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8871 (exit $ac_status); } && {
8872 test -z "$ac_c_werror_flag" ||
8873 test ! -s conftest.err
8874 } && test -s conftest.$ac_objext; then
8875 ac_hi=-1 ac_mid=-1
8876 while :; do
8877 cat >conftest.$ac_ext <<_ACEOF
8878 /* confdefs.h. */
8879 _ACEOF
8880 cat confdefs.h >>conftest.$ac_ext
8881 cat >>conftest.$ac_ext <<_ACEOF
8882 /* end confdefs.h. */
8883 $ac_includes_default
8884 typedef short ac__type_sizeof_;
8886 main ()
8888 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
8889 test_array [0] = 0
8892 return 0;
8894 _ACEOF
8895 rm -f conftest.$ac_objext
8896 if { (ac_try="$ac_compile"
8897 case "(($ac_try" in
8898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8899 *) ac_try_echo=$ac_try;;
8900 esac
8901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8902 (eval "$ac_compile") 2>conftest.er1
8903 ac_status=$?
8904 grep -v '^ *+' conftest.er1 >conftest.err
8905 rm -f conftest.er1
8906 cat conftest.err >&5
8907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8908 (exit $ac_status); } && {
8909 test -z "$ac_c_werror_flag" ||
8910 test ! -s conftest.err
8911 } && test -s conftest.$ac_objext; then
8912 ac_lo=$ac_mid; break
8913 else
8914 echo "$as_me: failed program was:" >&5
8915 sed 's/^/| /' conftest.$ac_ext >&5
8917 ac_hi=`expr '(' $ac_mid ')' - 1`
8918 if test $ac_mid -le $ac_hi; then
8919 ac_lo= ac_hi=
8920 break
8922 ac_mid=`expr 2 '*' $ac_mid`
8925 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8926 done
8927 else
8928 echo "$as_me: failed program was:" >&5
8929 sed 's/^/| /' conftest.$ac_ext >&5
8931 ac_lo= ac_hi=
8934 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8937 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8938 # Binary search between lo and hi bounds.
8939 while test "x$ac_lo" != "x$ac_hi"; do
8940 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8941 cat >conftest.$ac_ext <<_ACEOF
8942 /* confdefs.h. */
8943 _ACEOF
8944 cat confdefs.h >>conftest.$ac_ext
8945 cat >>conftest.$ac_ext <<_ACEOF
8946 /* end confdefs.h. */
8947 $ac_includes_default
8948 typedef short ac__type_sizeof_;
8950 main ()
8952 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8953 test_array [0] = 0
8956 return 0;
8958 _ACEOF
8959 rm -f conftest.$ac_objext
8960 if { (ac_try="$ac_compile"
8961 case "(($ac_try" in
8962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8963 *) ac_try_echo=$ac_try;;
8964 esac
8965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8966 (eval "$ac_compile") 2>conftest.er1
8967 ac_status=$?
8968 grep -v '^ *+' conftest.er1 >conftest.err
8969 rm -f conftest.er1
8970 cat conftest.err >&5
8971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8972 (exit $ac_status); } && {
8973 test -z "$ac_c_werror_flag" ||
8974 test ! -s conftest.err
8975 } && test -s conftest.$ac_objext; then
8976 ac_hi=$ac_mid
8977 else
8978 echo "$as_me: failed program was:" >&5
8979 sed 's/^/| /' conftest.$ac_ext >&5
8981 ac_lo=`expr '(' $ac_mid ')' + 1`
8984 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8985 done
8986 case $ac_lo in
8987 ?*) ac_cv_sizeof_short=$ac_lo;;
8988 '') if test "$ac_cv_type_short" = yes; then
8989 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
8990 See \`config.log' for more details." >&5
8991 echo "$as_me: error: cannot compute sizeof (short)
8992 See \`config.log' for more details." >&2;}
8993 { (exit 77); exit 77; }; }
8994 else
8995 ac_cv_sizeof_short=0
8996 fi ;;
8997 esac
8998 else
8999 cat >conftest.$ac_ext <<_ACEOF
9000 /* confdefs.h. */
9001 _ACEOF
9002 cat confdefs.h >>conftest.$ac_ext
9003 cat >>conftest.$ac_ext <<_ACEOF
9004 /* end confdefs.h. */
9005 $ac_includes_default
9006 typedef short ac__type_sizeof_;
9007 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
9008 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
9009 #include <stdio.h>
9010 #include <stdlib.h>
9012 main ()
9015 FILE *f = fopen ("conftest.val", "w");
9016 if (! f)
9017 return 1;
9018 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
9020 long int i = longval ();
9021 if (i != ((long int) (sizeof (ac__type_sizeof_))))
9022 return 1;
9023 fprintf (f, "%ld\n", i);
9025 else
9027 unsigned long int i = ulongval ();
9028 if (i != ((long int) (sizeof (ac__type_sizeof_))))
9029 return 1;
9030 fprintf (f, "%lu\n", i);
9032 return ferror (f) || fclose (f) != 0;
9035 return 0;
9037 _ACEOF
9038 rm -f conftest$ac_exeext
9039 if { (ac_try="$ac_link"
9040 case "(($ac_try" in
9041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9042 *) ac_try_echo=$ac_try;;
9043 esac
9044 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9045 (eval "$ac_link") 2>&5
9046 ac_status=$?
9047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9048 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9049 { (case "(($ac_try" in
9050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9051 *) ac_try_echo=$ac_try;;
9052 esac
9053 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9054 (eval "$ac_try") 2>&5
9055 ac_status=$?
9056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9057 (exit $ac_status); }; }; then
9058 ac_cv_sizeof_short=`cat conftest.val`
9059 else
9060 echo "$as_me: program exited with status $ac_status" >&5
9061 echo "$as_me: failed program was:" >&5
9062 sed 's/^/| /' conftest.$ac_ext >&5
9064 ( exit $ac_status )
9065 if test "$ac_cv_type_short" = yes; then
9066 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
9067 See \`config.log' for more details." >&5
9068 echo "$as_me: error: cannot compute sizeof (short)
9069 See \`config.log' for more details." >&2;}
9070 { (exit 77); exit 77; }; }
9071 else
9072 ac_cv_sizeof_short=0
9075 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9077 rm -f conftest.val
9079 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
9080 echo "${ECHO_T}$ac_cv_sizeof_short" >&6; }
9084 cat >>confdefs.h <<_ACEOF
9085 #define SIZEOF_SHORT $ac_cv_sizeof_short
9086 _ACEOF
9089 { echo "$as_me:$LINENO: checking for float" >&5
9090 echo $ECHO_N "checking for float... $ECHO_C" >&6; }
9091 if test "${ac_cv_type_float+set}" = set; then
9092 echo $ECHO_N "(cached) $ECHO_C" >&6
9093 else
9094 cat >conftest.$ac_ext <<_ACEOF
9095 /* confdefs.h. */
9096 _ACEOF
9097 cat confdefs.h >>conftest.$ac_ext
9098 cat >>conftest.$ac_ext <<_ACEOF
9099 /* end confdefs.h. */
9100 $ac_includes_default
9101 typedef float ac__type_new_;
9103 main ()
9105 if ((ac__type_new_ *) 0)
9106 return 0;
9107 if (sizeof (ac__type_new_))
9108 return 0;
9110 return 0;
9112 _ACEOF
9113 rm -f conftest.$ac_objext
9114 if { (ac_try="$ac_compile"
9115 case "(($ac_try" in
9116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9117 *) ac_try_echo=$ac_try;;
9118 esac
9119 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9120 (eval "$ac_compile") 2>conftest.er1
9121 ac_status=$?
9122 grep -v '^ *+' conftest.er1 >conftest.err
9123 rm -f conftest.er1
9124 cat conftest.err >&5
9125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9126 (exit $ac_status); } && {
9127 test -z "$ac_c_werror_flag" ||
9128 test ! -s conftest.err
9129 } && test -s conftest.$ac_objext; then
9130 ac_cv_type_float=yes
9131 else
9132 echo "$as_me: failed program was:" >&5
9133 sed 's/^/| /' conftest.$ac_ext >&5
9135 ac_cv_type_float=no
9138 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9140 { echo "$as_me:$LINENO: result: $ac_cv_type_float" >&5
9141 echo "${ECHO_T}$ac_cv_type_float" >&6; }
9143 # The cast to long int works around a bug in the HP C Compiler
9144 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9145 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9146 # This bug is HP SR number 8606223364.
9147 { echo "$as_me:$LINENO: checking size of float" >&5
9148 echo $ECHO_N "checking size of float... $ECHO_C" >&6; }
9149 if test "${ac_cv_sizeof_float+set}" = set; then
9150 echo $ECHO_N "(cached) $ECHO_C" >&6
9151 else
9152 if test "$cross_compiling" = yes; then
9153 # Depending upon the size, compute the lo and hi bounds.
9154 cat >conftest.$ac_ext <<_ACEOF
9155 /* confdefs.h. */
9156 _ACEOF
9157 cat confdefs.h >>conftest.$ac_ext
9158 cat >>conftest.$ac_ext <<_ACEOF
9159 /* end confdefs.h. */
9160 $ac_includes_default
9161 typedef float ac__type_sizeof_;
9163 main ()
9165 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
9166 test_array [0] = 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_lo=0 ac_mid=0
9190 while :; do
9191 cat >conftest.$ac_ext <<_ACEOF
9192 /* confdefs.h. */
9193 _ACEOF
9194 cat confdefs.h >>conftest.$ac_ext
9195 cat >>conftest.$ac_ext <<_ACEOF
9196 /* end confdefs.h. */
9197 $ac_includes_default
9198 typedef float ac__type_sizeof_;
9200 main ()
9202 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
9203 test_array [0] = 0
9206 return 0;
9208 _ACEOF
9209 rm -f conftest.$ac_objext
9210 if { (ac_try="$ac_compile"
9211 case "(($ac_try" in
9212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9213 *) ac_try_echo=$ac_try;;
9214 esac
9215 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9216 (eval "$ac_compile") 2>conftest.er1
9217 ac_status=$?
9218 grep -v '^ *+' conftest.er1 >conftest.err
9219 rm -f conftest.er1
9220 cat conftest.err >&5
9221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9222 (exit $ac_status); } && {
9223 test -z "$ac_c_werror_flag" ||
9224 test ! -s conftest.err
9225 } && test -s conftest.$ac_objext; then
9226 ac_hi=$ac_mid; break
9227 else
9228 echo "$as_me: failed program was:" >&5
9229 sed 's/^/| /' conftest.$ac_ext >&5
9231 ac_lo=`expr $ac_mid + 1`
9232 if test $ac_lo -le $ac_mid; then
9233 ac_lo= ac_hi=
9234 break
9236 ac_mid=`expr 2 '*' $ac_mid + 1`
9239 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9240 done
9241 else
9242 echo "$as_me: failed program was:" >&5
9243 sed 's/^/| /' conftest.$ac_ext >&5
9245 cat >conftest.$ac_ext <<_ACEOF
9246 /* confdefs.h. */
9247 _ACEOF
9248 cat confdefs.h >>conftest.$ac_ext
9249 cat >>conftest.$ac_ext <<_ACEOF
9250 /* end confdefs.h. */
9251 $ac_includes_default
9252 typedef float ac__type_sizeof_;
9254 main ()
9256 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
9257 test_array [0] = 0
9260 return 0;
9262 _ACEOF
9263 rm -f conftest.$ac_objext
9264 if { (ac_try="$ac_compile"
9265 case "(($ac_try" in
9266 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9267 *) ac_try_echo=$ac_try;;
9268 esac
9269 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9270 (eval "$ac_compile") 2>conftest.er1
9271 ac_status=$?
9272 grep -v '^ *+' conftest.er1 >conftest.err
9273 rm -f conftest.er1
9274 cat conftest.err >&5
9275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9276 (exit $ac_status); } && {
9277 test -z "$ac_c_werror_flag" ||
9278 test ! -s conftest.err
9279 } && test -s conftest.$ac_objext; then
9280 ac_hi=-1 ac_mid=-1
9281 while :; do
9282 cat >conftest.$ac_ext <<_ACEOF
9283 /* confdefs.h. */
9284 _ACEOF
9285 cat confdefs.h >>conftest.$ac_ext
9286 cat >>conftest.$ac_ext <<_ACEOF
9287 /* end confdefs.h. */
9288 $ac_includes_default
9289 typedef float ac__type_sizeof_;
9291 main ()
9293 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
9294 test_array [0] = 0
9297 return 0;
9299 _ACEOF
9300 rm -f conftest.$ac_objext
9301 if { (ac_try="$ac_compile"
9302 case "(($ac_try" in
9303 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9304 *) ac_try_echo=$ac_try;;
9305 esac
9306 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9307 (eval "$ac_compile") 2>conftest.er1
9308 ac_status=$?
9309 grep -v '^ *+' conftest.er1 >conftest.err
9310 rm -f conftest.er1
9311 cat conftest.err >&5
9312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9313 (exit $ac_status); } && {
9314 test -z "$ac_c_werror_flag" ||
9315 test ! -s conftest.err
9316 } && test -s conftest.$ac_objext; then
9317 ac_lo=$ac_mid; break
9318 else
9319 echo "$as_me: failed program was:" >&5
9320 sed 's/^/| /' conftest.$ac_ext >&5
9322 ac_hi=`expr '(' $ac_mid ')' - 1`
9323 if test $ac_mid -le $ac_hi; then
9324 ac_lo= ac_hi=
9325 break
9327 ac_mid=`expr 2 '*' $ac_mid`
9330 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9331 done
9332 else
9333 echo "$as_me: failed program was:" >&5
9334 sed 's/^/| /' conftest.$ac_ext >&5
9336 ac_lo= ac_hi=
9339 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9342 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9343 # Binary search between lo and hi bounds.
9344 while test "x$ac_lo" != "x$ac_hi"; do
9345 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9346 cat >conftest.$ac_ext <<_ACEOF
9347 /* confdefs.h. */
9348 _ACEOF
9349 cat confdefs.h >>conftest.$ac_ext
9350 cat >>conftest.$ac_ext <<_ACEOF
9351 /* end confdefs.h. */
9352 $ac_includes_default
9353 typedef float ac__type_sizeof_;
9355 main ()
9357 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
9358 test_array [0] = 0
9361 return 0;
9363 _ACEOF
9364 rm -f conftest.$ac_objext
9365 if { (ac_try="$ac_compile"
9366 case "(($ac_try" in
9367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9368 *) ac_try_echo=$ac_try;;
9369 esac
9370 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9371 (eval "$ac_compile") 2>conftest.er1
9372 ac_status=$?
9373 grep -v '^ *+' conftest.er1 >conftest.err
9374 rm -f conftest.er1
9375 cat conftest.err >&5
9376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9377 (exit $ac_status); } && {
9378 test -z "$ac_c_werror_flag" ||
9379 test ! -s conftest.err
9380 } && test -s conftest.$ac_objext; then
9381 ac_hi=$ac_mid
9382 else
9383 echo "$as_me: failed program was:" >&5
9384 sed 's/^/| /' conftest.$ac_ext >&5
9386 ac_lo=`expr '(' $ac_mid ')' + 1`
9389 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9390 done
9391 case $ac_lo in
9392 ?*) ac_cv_sizeof_float=$ac_lo;;
9393 '') if test "$ac_cv_type_float" = yes; then
9394 { { echo "$as_me:$LINENO: error: cannot compute sizeof (float)
9395 See \`config.log' for more details." >&5
9396 echo "$as_me: error: cannot compute sizeof (float)
9397 See \`config.log' for more details." >&2;}
9398 { (exit 77); exit 77; }; }
9399 else
9400 ac_cv_sizeof_float=0
9401 fi ;;
9402 esac
9403 else
9404 cat >conftest.$ac_ext <<_ACEOF
9405 /* confdefs.h. */
9406 _ACEOF
9407 cat confdefs.h >>conftest.$ac_ext
9408 cat >>conftest.$ac_ext <<_ACEOF
9409 /* end confdefs.h. */
9410 $ac_includes_default
9411 typedef float ac__type_sizeof_;
9412 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
9413 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
9414 #include <stdio.h>
9415 #include <stdlib.h>
9417 main ()
9420 FILE *f = fopen ("conftest.val", "w");
9421 if (! f)
9422 return 1;
9423 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
9425 long int i = longval ();
9426 if (i != ((long int) (sizeof (ac__type_sizeof_))))
9427 return 1;
9428 fprintf (f, "%ld\n", i);
9430 else
9432 unsigned long int i = ulongval ();
9433 if (i != ((long int) (sizeof (ac__type_sizeof_))))
9434 return 1;
9435 fprintf (f, "%lu\n", i);
9437 return ferror (f) || fclose (f) != 0;
9440 return 0;
9442 _ACEOF
9443 rm -f conftest$ac_exeext
9444 if { (ac_try="$ac_link"
9445 case "(($ac_try" in
9446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9447 *) ac_try_echo=$ac_try;;
9448 esac
9449 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9450 (eval "$ac_link") 2>&5
9451 ac_status=$?
9452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9453 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9454 { (case "(($ac_try" in
9455 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9456 *) ac_try_echo=$ac_try;;
9457 esac
9458 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9459 (eval "$ac_try") 2>&5
9460 ac_status=$?
9461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9462 (exit $ac_status); }; }; then
9463 ac_cv_sizeof_float=`cat conftest.val`
9464 else
9465 echo "$as_me: program exited with status $ac_status" >&5
9466 echo "$as_me: failed program was:" >&5
9467 sed 's/^/| /' conftest.$ac_ext >&5
9469 ( exit $ac_status )
9470 if test "$ac_cv_type_float" = yes; then
9471 { { echo "$as_me:$LINENO: error: cannot compute sizeof (float)
9472 See \`config.log' for more details." >&5
9473 echo "$as_me: error: cannot compute sizeof (float)
9474 See \`config.log' for more details." >&2;}
9475 { (exit 77); exit 77; }; }
9476 else
9477 ac_cv_sizeof_float=0
9480 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9482 rm -f conftest.val
9484 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_float" >&5
9485 echo "${ECHO_T}$ac_cv_sizeof_float" >&6; }
9489 cat >>confdefs.h <<_ACEOF
9490 #define SIZEOF_FLOAT $ac_cv_sizeof_float
9491 _ACEOF
9494 { echo "$as_me:$LINENO: checking for double" >&5
9495 echo $ECHO_N "checking for double... $ECHO_C" >&6; }
9496 if test "${ac_cv_type_double+set}" = set; then
9497 echo $ECHO_N "(cached) $ECHO_C" >&6
9498 else
9499 cat >conftest.$ac_ext <<_ACEOF
9500 /* confdefs.h. */
9501 _ACEOF
9502 cat confdefs.h >>conftest.$ac_ext
9503 cat >>conftest.$ac_ext <<_ACEOF
9504 /* end confdefs.h. */
9505 $ac_includes_default
9506 typedef double ac__type_new_;
9508 main ()
9510 if ((ac__type_new_ *) 0)
9511 return 0;
9512 if (sizeof (ac__type_new_))
9513 return 0;
9515 return 0;
9517 _ACEOF
9518 rm -f conftest.$ac_objext
9519 if { (ac_try="$ac_compile"
9520 case "(($ac_try" in
9521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9522 *) ac_try_echo=$ac_try;;
9523 esac
9524 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9525 (eval "$ac_compile") 2>conftest.er1
9526 ac_status=$?
9527 grep -v '^ *+' conftest.er1 >conftest.err
9528 rm -f conftest.er1
9529 cat conftest.err >&5
9530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9531 (exit $ac_status); } && {
9532 test -z "$ac_c_werror_flag" ||
9533 test ! -s conftest.err
9534 } && test -s conftest.$ac_objext; then
9535 ac_cv_type_double=yes
9536 else
9537 echo "$as_me: failed program was:" >&5
9538 sed 's/^/| /' conftest.$ac_ext >&5
9540 ac_cv_type_double=no
9543 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9545 { echo "$as_me:$LINENO: result: $ac_cv_type_double" >&5
9546 echo "${ECHO_T}$ac_cv_type_double" >&6; }
9548 # The cast to long int works around a bug in the HP C Compiler
9549 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9550 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9551 # This bug is HP SR number 8606223364.
9552 { echo "$as_me:$LINENO: checking size of double" >&5
9553 echo $ECHO_N "checking size of double... $ECHO_C" >&6; }
9554 if test "${ac_cv_sizeof_double+set}" = set; then
9555 echo $ECHO_N "(cached) $ECHO_C" >&6
9556 else
9557 if test "$cross_compiling" = yes; then
9558 # Depending upon the size, compute the lo and hi bounds.
9559 cat >conftest.$ac_ext <<_ACEOF
9560 /* confdefs.h. */
9561 _ACEOF
9562 cat confdefs.h >>conftest.$ac_ext
9563 cat >>conftest.$ac_ext <<_ACEOF
9564 /* end confdefs.h. */
9565 $ac_includes_default
9566 typedef double ac__type_sizeof_;
9568 main ()
9570 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
9571 test_array [0] = 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_lo=0 ac_mid=0
9595 while :; do
9596 cat >conftest.$ac_ext <<_ACEOF
9597 /* confdefs.h. */
9598 _ACEOF
9599 cat confdefs.h >>conftest.$ac_ext
9600 cat >>conftest.$ac_ext <<_ACEOF
9601 /* end confdefs.h. */
9602 $ac_includes_default
9603 typedef double ac__type_sizeof_;
9605 main ()
9607 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
9608 test_array [0] = 0
9611 return 0;
9613 _ACEOF
9614 rm -f conftest.$ac_objext
9615 if { (ac_try="$ac_compile"
9616 case "(($ac_try" in
9617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9618 *) ac_try_echo=$ac_try;;
9619 esac
9620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9621 (eval "$ac_compile") 2>conftest.er1
9622 ac_status=$?
9623 grep -v '^ *+' conftest.er1 >conftest.err
9624 rm -f conftest.er1
9625 cat conftest.err >&5
9626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9627 (exit $ac_status); } && {
9628 test -z "$ac_c_werror_flag" ||
9629 test ! -s conftest.err
9630 } && test -s conftest.$ac_objext; then
9631 ac_hi=$ac_mid; break
9632 else
9633 echo "$as_me: failed program was:" >&5
9634 sed 's/^/| /' conftest.$ac_ext >&5
9636 ac_lo=`expr $ac_mid + 1`
9637 if test $ac_lo -le $ac_mid; then
9638 ac_lo= ac_hi=
9639 break
9641 ac_mid=`expr 2 '*' $ac_mid + 1`
9644 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9645 done
9646 else
9647 echo "$as_me: failed program was:" >&5
9648 sed 's/^/| /' conftest.$ac_ext >&5
9650 cat >conftest.$ac_ext <<_ACEOF
9651 /* confdefs.h. */
9652 _ACEOF
9653 cat confdefs.h >>conftest.$ac_ext
9654 cat >>conftest.$ac_ext <<_ACEOF
9655 /* end confdefs.h. */
9656 $ac_includes_default
9657 typedef double ac__type_sizeof_;
9659 main ()
9661 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
9662 test_array [0] = 0
9665 return 0;
9667 _ACEOF
9668 rm -f conftest.$ac_objext
9669 if { (ac_try="$ac_compile"
9670 case "(($ac_try" in
9671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9672 *) ac_try_echo=$ac_try;;
9673 esac
9674 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9675 (eval "$ac_compile") 2>conftest.er1
9676 ac_status=$?
9677 grep -v '^ *+' conftest.er1 >conftest.err
9678 rm -f conftest.er1
9679 cat conftest.err >&5
9680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9681 (exit $ac_status); } && {
9682 test -z "$ac_c_werror_flag" ||
9683 test ! -s conftest.err
9684 } && test -s conftest.$ac_objext; then
9685 ac_hi=-1 ac_mid=-1
9686 while :; do
9687 cat >conftest.$ac_ext <<_ACEOF
9688 /* confdefs.h. */
9689 _ACEOF
9690 cat confdefs.h >>conftest.$ac_ext
9691 cat >>conftest.$ac_ext <<_ACEOF
9692 /* end confdefs.h. */
9693 $ac_includes_default
9694 typedef double ac__type_sizeof_;
9696 main ()
9698 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
9699 test_array [0] = 0
9702 return 0;
9704 _ACEOF
9705 rm -f conftest.$ac_objext
9706 if { (ac_try="$ac_compile"
9707 case "(($ac_try" in
9708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9709 *) ac_try_echo=$ac_try;;
9710 esac
9711 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9712 (eval "$ac_compile") 2>conftest.er1
9713 ac_status=$?
9714 grep -v '^ *+' conftest.er1 >conftest.err
9715 rm -f conftest.er1
9716 cat conftest.err >&5
9717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9718 (exit $ac_status); } && {
9719 test -z "$ac_c_werror_flag" ||
9720 test ! -s conftest.err
9721 } && test -s conftest.$ac_objext; then
9722 ac_lo=$ac_mid; break
9723 else
9724 echo "$as_me: failed program was:" >&5
9725 sed 's/^/| /' conftest.$ac_ext >&5
9727 ac_hi=`expr '(' $ac_mid ')' - 1`
9728 if test $ac_mid -le $ac_hi; then
9729 ac_lo= ac_hi=
9730 break
9732 ac_mid=`expr 2 '*' $ac_mid`
9735 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9736 done
9737 else
9738 echo "$as_me: failed program was:" >&5
9739 sed 's/^/| /' conftest.$ac_ext >&5
9741 ac_lo= ac_hi=
9744 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9747 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9748 # Binary search between lo and hi bounds.
9749 while test "x$ac_lo" != "x$ac_hi"; do
9750 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9751 cat >conftest.$ac_ext <<_ACEOF
9752 /* confdefs.h. */
9753 _ACEOF
9754 cat confdefs.h >>conftest.$ac_ext
9755 cat >>conftest.$ac_ext <<_ACEOF
9756 /* end confdefs.h. */
9757 $ac_includes_default
9758 typedef double ac__type_sizeof_;
9760 main ()
9762 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
9763 test_array [0] = 0
9766 return 0;
9768 _ACEOF
9769 rm -f conftest.$ac_objext
9770 if { (ac_try="$ac_compile"
9771 case "(($ac_try" in
9772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9773 *) ac_try_echo=$ac_try;;
9774 esac
9775 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9776 (eval "$ac_compile") 2>conftest.er1
9777 ac_status=$?
9778 grep -v '^ *+' conftest.er1 >conftest.err
9779 rm -f conftest.er1
9780 cat conftest.err >&5
9781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9782 (exit $ac_status); } && {
9783 test -z "$ac_c_werror_flag" ||
9784 test ! -s conftest.err
9785 } && test -s conftest.$ac_objext; then
9786 ac_hi=$ac_mid
9787 else
9788 echo "$as_me: failed program was:" >&5
9789 sed 's/^/| /' conftest.$ac_ext >&5
9791 ac_lo=`expr '(' $ac_mid ')' + 1`
9794 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9795 done
9796 case $ac_lo in
9797 ?*) ac_cv_sizeof_double=$ac_lo;;
9798 '') if test "$ac_cv_type_double" = yes; then
9799 { { echo "$as_me:$LINENO: error: cannot compute sizeof (double)
9800 See \`config.log' for more details." >&5
9801 echo "$as_me: error: cannot compute sizeof (double)
9802 See \`config.log' for more details." >&2;}
9803 { (exit 77); exit 77; }; }
9804 else
9805 ac_cv_sizeof_double=0
9806 fi ;;
9807 esac
9808 else
9809 cat >conftest.$ac_ext <<_ACEOF
9810 /* confdefs.h. */
9811 _ACEOF
9812 cat confdefs.h >>conftest.$ac_ext
9813 cat >>conftest.$ac_ext <<_ACEOF
9814 /* end confdefs.h. */
9815 $ac_includes_default
9816 typedef double ac__type_sizeof_;
9817 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
9818 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
9819 #include <stdio.h>
9820 #include <stdlib.h>
9822 main ()
9825 FILE *f = fopen ("conftest.val", "w");
9826 if (! f)
9827 return 1;
9828 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
9830 long int i = longval ();
9831 if (i != ((long int) (sizeof (ac__type_sizeof_))))
9832 return 1;
9833 fprintf (f, "%ld\n", i);
9835 else
9837 unsigned long int i = ulongval ();
9838 if (i != ((long int) (sizeof (ac__type_sizeof_))))
9839 return 1;
9840 fprintf (f, "%lu\n", i);
9842 return ferror (f) || fclose (f) != 0;
9845 return 0;
9847 _ACEOF
9848 rm -f conftest$ac_exeext
9849 if { (ac_try="$ac_link"
9850 case "(($ac_try" in
9851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9852 *) ac_try_echo=$ac_try;;
9853 esac
9854 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9855 (eval "$ac_link") 2>&5
9856 ac_status=$?
9857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9858 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9859 { (case "(($ac_try" in
9860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9861 *) ac_try_echo=$ac_try;;
9862 esac
9863 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9864 (eval "$ac_try") 2>&5
9865 ac_status=$?
9866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9867 (exit $ac_status); }; }; then
9868 ac_cv_sizeof_double=`cat conftest.val`
9869 else
9870 echo "$as_me: program exited with status $ac_status" >&5
9871 echo "$as_me: failed program was:" >&5
9872 sed 's/^/| /' conftest.$ac_ext >&5
9874 ( exit $ac_status )
9875 if test "$ac_cv_type_double" = yes; then
9876 { { echo "$as_me:$LINENO: error: cannot compute sizeof (double)
9877 See \`config.log' for more details." >&5
9878 echo "$as_me: error: cannot compute sizeof (double)
9879 See \`config.log' for more details." >&2;}
9880 { (exit 77); exit 77; }; }
9881 else
9882 ac_cv_sizeof_double=0
9885 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9887 rm -f conftest.val
9889 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_double" >&5
9890 echo "${ECHO_T}$ac_cv_sizeof_double" >&6; }
9894 cat >>confdefs.h <<_ACEOF
9895 #define SIZEOF_DOUBLE $ac_cv_sizeof_double
9896 _ACEOF
9899 { echo "$as_me:$LINENO: checking for fpos_t" >&5
9900 echo $ECHO_N "checking for fpos_t... $ECHO_C" >&6; }
9901 if test "${ac_cv_type_fpos_t+set}" = set; then
9902 echo $ECHO_N "(cached) $ECHO_C" >&6
9903 else
9904 cat >conftest.$ac_ext <<_ACEOF
9905 /* confdefs.h. */
9906 _ACEOF
9907 cat confdefs.h >>conftest.$ac_ext
9908 cat >>conftest.$ac_ext <<_ACEOF
9909 /* end confdefs.h. */
9910 $ac_includes_default
9911 typedef fpos_t ac__type_new_;
9913 main ()
9915 if ((ac__type_new_ *) 0)
9916 return 0;
9917 if (sizeof (ac__type_new_))
9918 return 0;
9920 return 0;
9922 _ACEOF
9923 rm -f conftest.$ac_objext
9924 if { (ac_try="$ac_compile"
9925 case "(($ac_try" in
9926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9927 *) ac_try_echo=$ac_try;;
9928 esac
9929 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9930 (eval "$ac_compile") 2>conftest.er1
9931 ac_status=$?
9932 grep -v '^ *+' conftest.er1 >conftest.err
9933 rm -f conftest.er1
9934 cat conftest.err >&5
9935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9936 (exit $ac_status); } && {
9937 test -z "$ac_c_werror_flag" ||
9938 test ! -s conftest.err
9939 } && test -s conftest.$ac_objext; then
9940 ac_cv_type_fpos_t=yes
9941 else
9942 echo "$as_me: failed program was:" >&5
9943 sed 's/^/| /' conftest.$ac_ext >&5
9945 ac_cv_type_fpos_t=no
9948 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9950 { echo "$as_me:$LINENO: result: $ac_cv_type_fpos_t" >&5
9951 echo "${ECHO_T}$ac_cv_type_fpos_t" >&6; }
9953 # The cast to long int works around a bug in the HP C Compiler
9954 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9955 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9956 # This bug is HP SR number 8606223364.
9957 { echo "$as_me:$LINENO: checking size of fpos_t" >&5
9958 echo $ECHO_N "checking size of fpos_t... $ECHO_C" >&6; }
9959 if test "${ac_cv_sizeof_fpos_t+set}" = set; then
9960 echo $ECHO_N "(cached) $ECHO_C" >&6
9961 else
9962 if test "$cross_compiling" = yes; then
9963 # Depending upon the size, compute the lo and hi bounds.
9964 cat >conftest.$ac_ext <<_ACEOF
9965 /* confdefs.h. */
9966 _ACEOF
9967 cat confdefs.h >>conftest.$ac_ext
9968 cat >>conftest.$ac_ext <<_ACEOF
9969 /* end confdefs.h. */
9970 $ac_includes_default
9971 typedef fpos_t ac__type_sizeof_;
9973 main ()
9975 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
9976 test_array [0] = 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_lo=0 ac_mid=0
10000 while :; do
10001 cat >conftest.$ac_ext <<_ACEOF
10002 /* confdefs.h. */
10003 _ACEOF
10004 cat confdefs.h >>conftest.$ac_ext
10005 cat >>conftest.$ac_ext <<_ACEOF
10006 /* end confdefs.h. */
10007 $ac_includes_default
10008 typedef fpos_t ac__type_sizeof_;
10010 main ()
10012 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
10013 test_array [0] = 0
10016 return 0;
10018 _ACEOF
10019 rm -f conftest.$ac_objext
10020 if { (ac_try="$ac_compile"
10021 case "(($ac_try" in
10022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10023 *) ac_try_echo=$ac_try;;
10024 esac
10025 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10026 (eval "$ac_compile") 2>conftest.er1
10027 ac_status=$?
10028 grep -v '^ *+' conftest.er1 >conftest.err
10029 rm -f conftest.er1
10030 cat conftest.err >&5
10031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10032 (exit $ac_status); } && {
10033 test -z "$ac_c_werror_flag" ||
10034 test ! -s conftest.err
10035 } && test -s conftest.$ac_objext; then
10036 ac_hi=$ac_mid; break
10037 else
10038 echo "$as_me: failed program was:" >&5
10039 sed 's/^/| /' conftest.$ac_ext >&5
10041 ac_lo=`expr $ac_mid + 1`
10042 if test $ac_lo -le $ac_mid; then
10043 ac_lo= ac_hi=
10044 break
10046 ac_mid=`expr 2 '*' $ac_mid + 1`
10049 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10050 done
10051 else
10052 echo "$as_me: failed program was:" >&5
10053 sed 's/^/| /' conftest.$ac_ext >&5
10055 cat >conftest.$ac_ext <<_ACEOF
10056 /* confdefs.h. */
10057 _ACEOF
10058 cat confdefs.h >>conftest.$ac_ext
10059 cat >>conftest.$ac_ext <<_ACEOF
10060 /* end confdefs.h. */
10061 $ac_includes_default
10062 typedef fpos_t ac__type_sizeof_;
10064 main ()
10066 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
10067 test_array [0] = 0
10070 return 0;
10072 _ACEOF
10073 rm -f conftest.$ac_objext
10074 if { (ac_try="$ac_compile"
10075 case "(($ac_try" in
10076 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10077 *) ac_try_echo=$ac_try;;
10078 esac
10079 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10080 (eval "$ac_compile") 2>conftest.er1
10081 ac_status=$?
10082 grep -v '^ *+' conftest.er1 >conftest.err
10083 rm -f conftest.er1
10084 cat conftest.err >&5
10085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10086 (exit $ac_status); } && {
10087 test -z "$ac_c_werror_flag" ||
10088 test ! -s conftest.err
10089 } && test -s conftest.$ac_objext; then
10090 ac_hi=-1 ac_mid=-1
10091 while :; do
10092 cat >conftest.$ac_ext <<_ACEOF
10093 /* confdefs.h. */
10094 _ACEOF
10095 cat confdefs.h >>conftest.$ac_ext
10096 cat >>conftest.$ac_ext <<_ACEOF
10097 /* end confdefs.h. */
10098 $ac_includes_default
10099 typedef fpos_t ac__type_sizeof_;
10101 main ()
10103 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
10104 test_array [0] = 0
10107 return 0;
10109 _ACEOF
10110 rm -f conftest.$ac_objext
10111 if { (ac_try="$ac_compile"
10112 case "(($ac_try" in
10113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10114 *) ac_try_echo=$ac_try;;
10115 esac
10116 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10117 (eval "$ac_compile") 2>conftest.er1
10118 ac_status=$?
10119 grep -v '^ *+' conftest.er1 >conftest.err
10120 rm -f conftest.er1
10121 cat conftest.err >&5
10122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10123 (exit $ac_status); } && {
10124 test -z "$ac_c_werror_flag" ||
10125 test ! -s conftest.err
10126 } && test -s conftest.$ac_objext; then
10127 ac_lo=$ac_mid; break
10128 else
10129 echo "$as_me: failed program was:" >&5
10130 sed 's/^/| /' conftest.$ac_ext >&5
10132 ac_hi=`expr '(' $ac_mid ')' - 1`
10133 if test $ac_mid -le $ac_hi; then
10134 ac_lo= ac_hi=
10135 break
10137 ac_mid=`expr 2 '*' $ac_mid`
10140 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10141 done
10142 else
10143 echo "$as_me: failed program was:" >&5
10144 sed 's/^/| /' conftest.$ac_ext >&5
10146 ac_lo= ac_hi=
10149 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10152 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10153 # Binary search between lo and hi bounds.
10154 while test "x$ac_lo" != "x$ac_hi"; do
10155 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10156 cat >conftest.$ac_ext <<_ACEOF
10157 /* confdefs.h. */
10158 _ACEOF
10159 cat confdefs.h >>conftest.$ac_ext
10160 cat >>conftest.$ac_ext <<_ACEOF
10161 /* end confdefs.h. */
10162 $ac_includes_default
10163 typedef fpos_t ac__type_sizeof_;
10165 main ()
10167 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
10168 test_array [0] = 0
10171 return 0;
10173 _ACEOF
10174 rm -f conftest.$ac_objext
10175 if { (ac_try="$ac_compile"
10176 case "(($ac_try" in
10177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10178 *) ac_try_echo=$ac_try;;
10179 esac
10180 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10181 (eval "$ac_compile") 2>conftest.er1
10182 ac_status=$?
10183 grep -v '^ *+' conftest.er1 >conftest.err
10184 rm -f conftest.er1
10185 cat conftest.err >&5
10186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10187 (exit $ac_status); } && {
10188 test -z "$ac_c_werror_flag" ||
10189 test ! -s conftest.err
10190 } && test -s conftest.$ac_objext; then
10191 ac_hi=$ac_mid
10192 else
10193 echo "$as_me: failed program was:" >&5
10194 sed 's/^/| /' conftest.$ac_ext >&5
10196 ac_lo=`expr '(' $ac_mid ')' + 1`
10199 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10200 done
10201 case $ac_lo in
10202 ?*) ac_cv_sizeof_fpos_t=$ac_lo;;
10203 '') if test "$ac_cv_type_fpos_t" = yes; then
10204 { { echo "$as_me:$LINENO: error: cannot compute sizeof (fpos_t)
10205 See \`config.log' for more details." >&5
10206 echo "$as_me: error: cannot compute sizeof (fpos_t)
10207 See \`config.log' for more details." >&2;}
10208 { (exit 77); exit 77; }; }
10209 else
10210 ac_cv_sizeof_fpos_t=0
10211 fi ;;
10212 esac
10213 else
10214 cat >conftest.$ac_ext <<_ACEOF
10215 /* confdefs.h. */
10216 _ACEOF
10217 cat confdefs.h >>conftest.$ac_ext
10218 cat >>conftest.$ac_ext <<_ACEOF
10219 /* end confdefs.h. */
10220 $ac_includes_default
10221 typedef fpos_t ac__type_sizeof_;
10222 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
10223 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
10224 #include <stdio.h>
10225 #include <stdlib.h>
10227 main ()
10230 FILE *f = fopen ("conftest.val", "w");
10231 if (! f)
10232 return 1;
10233 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
10235 long int i = longval ();
10236 if (i != ((long int) (sizeof (ac__type_sizeof_))))
10237 return 1;
10238 fprintf (f, "%ld\n", i);
10240 else
10242 unsigned long int i = ulongval ();
10243 if (i != ((long int) (sizeof (ac__type_sizeof_))))
10244 return 1;
10245 fprintf (f, "%lu\n", i);
10247 return ferror (f) || fclose (f) != 0;
10250 return 0;
10252 _ACEOF
10253 rm -f conftest$ac_exeext
10254 if { (ac_try="$ac_link"
10255 case "(($ac_try" in
10256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10257 *) ac_try_echo=$ac_try;;
10258 esac
10259 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10260 (eval "$ac_link") 2>&5
10261 ac_status=$?
10262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10263 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10264 { (case "(($ac_try" in
10265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10266 *) ac_try_echo=$ac_try;;
10267 esac
10268 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10269 (eval "$ac_try") 2>&5
10270 ac_status=$?
10271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10272 (exit $ac_status); }; }; then
10273 ac_cv_sizeof_fpos_t=`cat conftest.val`
10274 else
10275 echo "$as_me: program exited with status $ac_status" >&5
10276 echo "$as_me: failed program was:" >&5
10277 sed 's/^/| /' conftest.$ac_ext >&5
10279 ( exit $ac_status )
10280 if test "$ac_cv_type_fpos_t" = yes; then
10281 { { echo "$as_me:$LINENO: error: cannot compute sizeof (fpos_t)
10282 See \`config.log' for more details." >&5
10283 echo "$as_me: error: cannot compute sizeof (fpos_t)
10284 See \`config.log' for more details." >&2;}
10285 { (exit 77); exit 77; }; }
10286 else
10287 ac_cv_sizeof_fpos_t=0
10290 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10292 rm -f conftest.val
10294 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_fpos_t" >&5
10295 echo "${ECHO_T}$ac_cv_sizeof_fpos_t" >&6; }
10299 cat >>confdefs.h <<_ACEOF
10300 #define SIZEOF_FPOS_T $ac_cv_sizeof_fpos_t
10301 _ACEOF
10304 { echo "$as_me:$LINENO: checking for size_t" >&5
10305 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
10306 if test "${ac_cv_type_size_t+set}" = set; then
10307 echo $ECHO_N "(cached) $ECHO_C" >&6
10308 else
10309 cat >conftest.$ac_ext <<_ACEOF
10310 /* confdefs.h. */
10311 _ACEOF
10312 cat confdefs.h >>conftest.$ac_ext
10313 cat >>conftest.$ac_ext <<_ACEOF
10314 /* end confdefs.h. */
10315 $ac_includes_default
10316 typedef size_t ac__type_new_;
10318 main ()
10320 if ((ac__type_new_ *) 0)
10321 return 0;
10322 if (sizeof (ac__type_new_))
10323 return 0;
10325 return 0;
10327 _ACEOF
10328 rm -f conftest.$ac_objext
10329 if { (ac_try="$ac_compile"
10330 case "(($ac_try" in
10331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10332 *) ac_try_echo=$ac_try;;
10333 esac
10334 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10335 (eval "$ac_compile") 2>conftest.er1
10336 ac_status=$?
10337 grep -v '^ *+' conftest.er1 >conftest.err
10338 rm -f conftest.er1
10339 cat conftest.err >&5
10340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10341 (exit $ac_status); } && {
10342 test -z "$ac_c_werror_flag" ||
10343 test ! -s conftest.err
10344 } && test -s conftest.$ac_objext; then
10345 ac_cv_type_size_t=yes
10346 else
10347 echo "$as_me: failed program was:" >&5
10348 sed 's/^/| /' conftest.$ac_ext >&5
10350 ac_cv_type_size_t=no
10353 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10355 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
10356 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
10358 # The cast to long int works around a bug in the HP C Compiler
10359 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10360 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10361 # This bug is HP SR number 8606223364.
10362 { echo "$as_me:$LINENO: checking size of size_t" >&5
10363 echo $ECHO_N "checking size of size_t... $ECHO_C" >&6; }
10364 if test "${ac_cv_sizeof_size_t+set}" = set; then
10365 echo $ECHO_N "(cached) $ECHO_C" >&6
10366 else
10367 if test "$cross_compiling" = yes; then
10368 # Depending upon the size, compute the lo and hi bounds.
10369 cat >conftest.$ac_ext <<_ACEOF
10370 /* confdefs.h. */
10371 _ACEOF
10372 cat confdefs.h >>conftest.$ac_ext
10373 cat >>conftest.$ac_ext <<_ACEOF
10374 /* end confdefs.h. */
10375 $ac_includes_default
10376 typedef size_t ac__type_sizeof_;
10378 main ()
10380 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
10381 test_array [0] = 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_lo=0 ac_mid=0
10405 while :; do
10406 cat >conftest.$ac_ext <<_ACEOF
10407 /* confdefs.h. */
10408 _ACEOF
10409 cat confdefs.h >>conftest.$ac_ext
10410 cat >>conftest.$ac_ext <<_ACEOF
10411 /* end confdefs.h. */
10412 $ac_includes_default
10413 typedef size_t ac__type_sizeof_;
10415 main ()
10417 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
10418 test_array [0] = 0
10421 return 0;
10423 _ACEOF
10424 rm -f conftest.$ac_objext
10425 if { (ac_try="$ac_compile"
10426 case "(($ac_try" in
10427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10428 *) ac_try_echo=$ac_try;;
10429 esac
10430 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10431 (eval "$ac_compile") 2>conftest.er1
10432 ac_status=$?
10433 grep -v '^ *+' conftest.er1 >conftest.err
10434 rm -f conftest.er1
10435 cat conftest.err >&5
10436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10437 (exit $ac_status); } && {
10438 test -z "$ac_c_werror_flag" ||
10439 test ! -s conftest.err
10440 } && test -s conftest.$ac_objext; then
10441 ac_hi=$ac_mid; break
10442 else
10443 echo "$as_me: failed program was:" >&5
10444 sed 's/^/| /' conftest.$ac_ext >&5
10446 ac_lo=`expr $ac_mid + 1`
10447 if test $ac_lo -le $ac_mid; then
10448 ac_lo= ac_hi=
10449 break
10451 ac_mid=`expr 2 '*' $ac_mid + 1`
10454 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10455 done
10456 else
10457 echo "$as_me: failed program was:" >&5
10458 sed 's/^/| /' conftest.$ac_ext >&5
10460 cat >conftest.$ac_ext <<_ACEOF
10461 /* confdefs.h. */
10462 _ACEOF
10463 cat confdefs.h >>conftest.$ac_ext
10464 cat >>conftest.$ac_ext <<_ACEOF
10465 /* end confdefs.h. */
10466 $ac_includes_default
10467 typedef size_t ac__type_sizeof_;
10469 main ()
10471 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
10472 test_array [0] = 0
10475 return 0;
10477 _ACEOF
10478 rm -f conftest.$ac_objext
10479 if { (ac_try="$ac_compile"
10480 case "(($ac_try" in
10481 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10482 *) ac_try_echo=$ac_try;;
10483 esac
10484 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10485 (eval "$ac_compile") 2>conftest.er1
10486 ac_status=$?
10487 grep -v '^ *+' conftest.er1 >conftest.err
10488 rm -f conftest.er1
10489 cat conftest.err >&5
10490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10491 (exit $ac_status); } && {
10492 test -z "$ac_c_werror_flag" ||
10493 test ! -s conftest.err
10494 } && test -s conftest.$ac_objext; then
10495 ac_hi=-1 ac_mid=-1
10496 while :; do
10497 cat >conftest.$ac_ext <<_ACEOF
10498 /* confdefs.h. */
10499 _ACEOF
10500 cat confdefs.h >>conftest.$ac_ext
10501 cat >>conftest.$ac_ext <<_ACEOF
10502 /* end confdefs.h. */
10503 $ac_includes_default
10504 typedef size_t ac__type_sizeof_;
10506 main ()
10508 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
10509 test_array [0] = 0
10512 return 0;
10514 _ACEOF
10515 rm -f conftest.$ac_objext
10516 if { (ac_try="$ac_compile"
10517 case "(($ac_try" in
10518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10519 *) ac_try_echo=$ac_try;;
10520 esac
10521 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10522 (eval "$ac_compile") 2>conftest.er1
10523 ac_status=$?
10524 grep -v '^ *+' conftest.er1 >conftest.err
10525 rm -f conftest.er1
10526 cat conftest.err >&5
10527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10528 (exit $ac_status); } && {
10529 test -z "$ac_c_werror_flag" ||
10530 test ! -s conftest.err
10531 } && test -s conftest.$ac_objext; then
10532 ac_lo=$ac_mid; break
10533 else
10534 echo "$as_me: failed program was:" >&5
10535 sed 's/^/| /' conftest.$ac_ext >&5
10537 ac_hi=`expr '(' $ac_mid ')' - 1`
10538 if test $ac_mid -le $ac_hi; then
10539 ac_lo= ac_hi=
10540 break
10542 ac_mid=`expr 2 '*' $ac_mid`
10545 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10546 done
10547 else
10548 echo "$as_me: failed program was:" >&5
10549 sed 's/^/| /' conftest.$ac_ext >&5
10551 ac_lo= ac_hi=
10554 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10557 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10558 # Binary search between lo and hi bounds.
10559 while test "x$ac_lo" != "x$ac_hi"; do
10560 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10561 cat >conftest.$ac_ext <<_ACEOF
10562 /* confdefs.h. */
10563 _ACEOF
10564 cat confdefs.h >>conftest.$ac_ext
10565 cat >>conftest.$ac_ext <<_ACEOF
10566 /* end confdefs.h. */
10567 $ac_includes_default
10568 typedef size_t ac__type_sizeof_;
10570 main ()
10572 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
10573 test_array [0] = 0
10576 return 0;
10578 _ACEOF
10579 rm -f conftest.$ac_objext
10580 if { (ac_try="$ac_compile"
10581 case "(($ac_try" in
10582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10583 *) ac_try_echo=$ac_try;;
10584 esac
10585 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10586 (eval "$ac_compile") 2>conftest.er1
10587 ac_status=$?
10588 grep -v '^ *+' conftest.er1 >conftest.err
10589 rm -f conftest.er1
10590 cat conftest.err >&5
10591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10592 (exit $ac_status); } && {
10593 test -z "$ac_c_werror_flag" ||
10594 test ! -s conftest.err
10595 } && test -s conftest.$ac_objext; then
10596 ac_hi=$ac_mid
10597 else
10598 echo "$as_me: failed program was:" >&5
10599 sed 's/^/| /' conftest.$ac_ext >&5
10601 ac_lo=`expr '(' $ac_mid ')' + 1`
10604 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10605 done
10606 case $ac_lo in
10607 ?*) ac_cv_sizeof_size_t=$ac_lo;;
10608 '') if test "$ac_cv_type_size_t" = yes; then
10609 { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
10610 See \`config.log' for more details." >&5
10611 echo "$as_me: error: cannot compute sizeof (size_t)
10612 See \`config.log' for more details." >&2;}
10613 { (exit 77); exit 77; }; }
10614 else
10615 ac_cv_sizeof_size_t=0
10616 fi ;;
10617 esac
10618 else
10619 cat >conftest.$ac_ext <<_ACEOF
10620 /* confdefs.h. */
10621 _ACEOF
10622 cat confdefs.h >>conftest.$ac_ext
10623 cat >>conftest.$ac_ext <<_ACEOF
10624 /* end confdefs.h. */
10625 $ac_includes_default
10626 typedef size_t ac__type_sizeof_;
10627 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
10628 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
10629 #include <stdio.h>
10630 #include <stdlib.h>
10632 main ()
10635 FILE *f = fopen ("conftest.val", "w");
10636 if (! f)
10637 return 1;
10638 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
10640 long int i = longval ();
10641 if (i != ((long int) (sizeof (ac__type_sizeof_))))
10642 return 1;
10643 fprintf (f, "%ld\n", i);
10645 else
10647 unsigned long int i = ulongval ();
10648 if (i != ((long int) (sizeof (ac__type_sizeof_))))
10649 return 1;
10650 fprintf (f, "%lu\n", i);
10652 return ferror (f) || fclose (f) != 0;
10655 return 0;
10657 _ACEOF
10658 rm -f conftest$ac_exeext
10659 if { (ac_try="$ac_link"
10660 case "(($ac_try" in
10661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10662 *) ac_try_echo=$ac_try;;
10663 esac
10664 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10665 (eval "$ac_link") 2>&5
10666 ac_status=$?
10667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10668 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10669 { (case "(($ac_try" in
10670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10671 *) ac_try_echo=$ac_try;;
10672 esac
10673 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10674 (eval "$ac_try") 2>&5
10675 ac_status=$?
10676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10677 (exit $ac_status); }; }; then
10678 ac_cv_sizeof_size_t=`cat conftest.val`
10679 else
10680 echo "$as_me: program exited with status $ac_status" >&5
10681 echo "$as_me: failed program was:" >&5
10682 sed 's/^/| /' conftest.$ac_ext >&5
10684 ( exit $ac_status )
10685 if test "$ac_cv_type_size_t" = yes; then
10686 { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
10687 See \`config.log' for more details." >&5
10688 echo "$as_me: error: cannot compute sizeof (size_t)
10689 See \`config.log' for more details." >&2;}
10690 { (exit 77); exit 77; }; }
10691 else
10692 ac_cv_sizeof_size_t=0
10695 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10697 rm -f conftest.val
10699 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
10700 echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6; }
10704 cat >>confdefs.h <<_ACEOF
10705 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
10706 _ACEOF
10709 { echo "$as_me:$LINENO: checking for pid_t" >&5
10710 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
10711 if test "${ac_cv_type_pid_t+set}" = set; then
10712 echo $ECHO_N "(cached) $ECHO_C" >&6
10713 else
10714 cat >conftest.$ac_ext <<_ACEOF
10715 /* confdefs.h. */
10716 _ACEOF
10717 cat confdefs.h >>conftest.$ac_ext
10718 cat >>conftest.$ac_ext <<_ACEOF
10719 /* end confdefs.h. */
10720 $ac_includes_default
10721 typedef pid_t ac__type_new_;
10723 main ()
10725 if ((ac__type_new_ *) 0)
10726 return 0;
10727 if (sizeof (ac__type_new_))
10728 return 0;
10730 return 0;
10732 _ACEOF
10733 rm -f conftest.$ac_objext
10734 if { (ac_try="$ac_compile"
10735 case "(($ac_try" in
10736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10737 *) ac_try_echo=$ac_try;;
10738 esac
10739 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10740 (eval "$ac_compile") 2>conftest.er1
10741 ac_status=$?
10742 grep -v '^ *+' conftest.er1 >conftest.err
10743 rm -f conftest.er1
10744 cat conftest.err >&5
10745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10746 (exit $ac_status); } && {
10747 test -z "$ac_c_werror_flag" ||
10748 test ! -s conftest.err
10749 } && test -s conftest.$ac_objext; then
10750 ac_cv_type_pid_t=yes
10751 else
10752 echo "$as_me: failed program was:" >&5
10753 sed 's/^/| /' conftest.$ac_ext >&5
10755 ac_cv_type_pid_t=no
10758 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10760 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
10761 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
10763 # The cast to long int works around a bug in the HP C Compiler
10764 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10765 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10766 # This bug is HP SR number 8606223364.
10767 { echo "$as_me:$LINENO: checking size of pid_t" >&5
10768 echo $ECHO_N "checking size of pid_t... $ECHO_C" >&6; }
10769 if test "${ac_cv_sizeof_pid_t+set}" = set; then
10770 echo $ECHO_N "(cached) $ECHO_C" >&6
10771 else
10772 if test "$cross_compiling" = yes; then
10773 # Depending upon the size, compute the lo and hi bounds.
10774 cat >conftest.$ac_ext <<_ACEOF
10775 /* confdefs.h. */
10776 _ACEOF
10777 cat confdefs.h >>conftest.$ac_ext
10778 cat >>conftest.$ac_ext <<_ACEOF
10779 /* end confdefs.h. */
10780 $ac_includes_default
10781 typedef pid_t ac__type_sizeof_;
10783 main ()
10785 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
10786 test_array [0] = 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_lo=0 ac_mid=0
10810 while :; do
10811 cat >conftest.$ac_ext <<_ACEOF
10812 /* confdefs.h. */
10813 _ACEOF
10814 cat confdefs.h >>conftest.$ac_ext
10815 cat >>conftest.$ac_ext <<_ACEOF
10816 /* end confdefs.h. */
10817 $ac_includes_default
10818 typedef pid_t ac__type_sizeof_;
10820 main ()
10822 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
10823 test_array [0] = 0
10826 return 0;
10828 _ACEOF
10829 rm -f conftest.$ac_objext
10830 if { (ac_try="$ac_compile"
10831 case "(($ac_try" in
10832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10833 *) ac_try_echo=$ac_try;;
10834 esac
10835 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10836 (eval "$ac_compile") 2>conftest.er1
10837 ac_status=$?
10838 grep -v '^ *+' conftest.er1 >conftest.err
10839 rm -f conftest.er1
10840 cat conftest.err >&5
10841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10842 (exit $ac_status); } && {
10843 test -z "$ac_c_werror_flag" ||
10844 test ! -s conftest.err
10845 } && test -s conftest.$ac_objext; then
10846 ac_hi=$ac_mid; break
10847 else
10848 echo "$as_me: failed program was:" >&5
10849 sed 's/^/| /' conftest.$ac_ext >&5
10851 ac_lo=`expr $ac_mid + 1`
10852 if test $ac_lo -le $ac_mid; then
10853 ac_lo= ac_hi=
10854 break
10856 ac_mid=`expr 2 '*' $ac_mid + 1`
10859 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10860 done
10861 else
10862 echo "$as_me: failed program was:" >&5
10863 sed 's/^/| /' conftest.$ac_ext >&5
10865 cat >conftest.$ac_ext <<_ACEOF
10866 /* confdefs.h. */
10867 _ACEOF
10868 cat confdefs.h >>conftest.$ac_ext
10869 cat >>conftest.$ac_ext <<_ACEOF
10870 /* end confdefs.h. */
10871 $ac_includes_default
10872 typedef pid_t ac__type_sizeof_;
10874 main ()
10876 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
10877 test_array [0] = 0
10880 return 0;
10882 _ACEOF
10883 rm -f conftest.$ac_objext
10884 if { (ac_try="$ac_compile"
10885 case "(($ac_try" in
10886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10887 *) ac_try_echo=$ac_try;;
10888 esac
10889 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10890 (eval "$ac_compile") 2>conftest.er1
10891 ac_status=$?
10892 grep -v '^ *+' conftest.er1 >conftest.err
10893 rm -f conftest.er1
10894 cat conftest.err >&5
10895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10896 (exit $ac_status); } && {
10897 test -z "$ac_c_werror_flag" ||
10898 test ! -s conftest.err
10899 } && test -s conftest.$ac_objext; then
10900 ac_hi=-1 ac_mid=-1
10901 while :; do
10902 cat >conftest.$ac_ext <<_ACEOF
10903 /* confdefs.h. */
10904 _ACEOF
10905 cat confdefs.h >>conftest.$ac_ext
10906 cat >>conftest.$ac_ext <<_ACEOF
10907 /* end confdefs.h. */
10908 $ac_includes_default
10909 typedef pid_t ac__type_sizeof_;
10911 main ()
10913 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
10914 test_array [0] = 0
10917 return 0;
10919 _ACEOF
10920 rm -f conftest.$ac_objext
10921 if { (ac_try="$ac_compile"
10922 case "(($ac_try" in
10923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10924 *) ac_try_echo=$ac_try;;
10925 esac
10926 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10927 (eval "$ac_compile") 2>conftest.er1
10928 ac_status=$?
10929 grep -v '^ *+' conftest.er1 >conftest.err
10930 rm -f conftest.er1
10931 cat conftest.err >&5
10932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10933 (exit $ac_status); } && {
10934 test -z "$ac_c_werror_flag" ||
10935 test ! -s conftest.err
10936 } && test -s conftest.$ac_objext; then
10937 ac_lo=$ac_mid; break
10938 else
10939 echo "$as_me: failed program was:" >&5
10940 sed 's/^/| /' conftest.$ac_ext >&5
10942 ac_hi=`expr '(' $ac_mid ')' - 1`
10943 if test $ac_mid -le $ac_hi; then
10944 ac_lo= ac_hi=
10945 break
10947 ac_mid=`expr 2 '*' $ac_mid`
10950 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10951 done
10952 else
10953 echo "$as_me: failed program was:" >&5
10954 sed 's/^/| /' conftest.$ac_ext >&5
10956 ac_lo= ac_hi=
10959 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10962 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10963 # Binary search between lo and hi bounds.
10964 while test "x$ac_lo" != "x$ac_hi"; do
10965 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10966 cat >conftest.$ac_ext <<_ACEOF
10967 /* confdefs.h. */
10968 _ACEOF
10969 cat confdefs.h >>conftest.$ac_ext
10970 cat >>conftest.$ac_ext <<_ACEOF
10971 /* end confdefs.h. */
10972 $ac_includes_default
10973 typedef pid_t ac__type_sizeof_;
10975 main ()
10977 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
10978 test_array [0] = 0
10981 return 0;
10983 _ACEOF
10984 rm -f conftest.$ac_objext
10985 if { (ac_try="$ac_compile"
10986 case "(($ac_try" in
10987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10988 *) ac_try_echo=$ac_try;;
10989 esac
10990 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10991 (eval "$ac_compile") 2>conftest.er1
10992 ac_status=$?
10993 grep -v '^ *+' conftest.er1 >conftest.err
10994 rm -f conftest.er1
10995 cat conftest.err >&5
10996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10997 (exit $ac_status); } && {
10998 test -z "$ac_c_werror_flag" ||
10999 test ! -s conftest.err
11000 } && test -s conftest.$ac_objext; then
11001 ac_hi=$ac_mid
11002 else
11003 echo "$as_me: failed program was:" >&5
11004 sed 's/^/| /' conftest.$ac_ext >&5
11006 ac_lo=`expr '(' $ac_mid ')' + 1`
11009 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11010 done
11011 case $ac_lo in
11012 ?*) ac_cv_sizeof_pid_t=$ac_lo;;
11013 '') if test "$ac_cv_type_pid_t" = yes; then
11014 { { echo "$as_me:$LINENO: error: cannot compute sizeof (pid_t)
11015 See \`config.log' for more details." >&5
11016 echo "$as_me: error: cannot compute sizeof (pid_t)
11017 See \`config.log' for more details." >&2;}
11018 { (exit 77); exit 77; }; }
11019 else
11020 ac_cv_sizeof_pid_t=0
11021 fi ;;
11022 esac
11023 else
11024 cat >conftest.$ac_ext <<_ACEOF
11025 /* confdefs.h. */
11026 _ACEOF
11027 cat confdefs.h >>conftest.$ac_ext
11028 cat >>conftest.$ac_ext <<_ACEOF
11029 /* end confdefs.h. */
11030 $ac_includes_default
11031 typedef pid_t ac__type_sizeof_;
11032 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
11033 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
11034 #include <stdio.h>
11035 #include <stdlib.h>
11037 main ()
11040 FILE *f = fopen ("conftest.val", "w");
11041 if (! f)
11042 return 1;
11043 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
11045 long int i = longval ();
11046 if (i != ((long int) (sizeof (ac__type_sizeof_))))
11047 return 1;
11048 fprintf (f, "%ld\n", i);
11050 else
11052 unsigned long int i = ulongval ();
11053 if (i != ((long int) (sizeof (ac__type_sizeof_))))
11054 return 1;
11055 fprintf (f, "%lu\n", i);
11057 return ferror (f) || fclose (f) != 0;
11060 return 0;
11062 _ACEOF
11063 rm -f conftest$ac_exeext
11064 if { (ac_try="$ac_link"
11065 case "(($ac_try" in
11066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11067 *) ac_try_echo=$ac_try;;
11068 esac
11069 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11070 (eval "$ac_link") 2>&5
11071 ac_status=$?
11072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11073 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11074 { (case "(($ac_try" in
11075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11076 *) ac_try_echo=$ac_try;;
11077 esac
11078 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11079 (eval "$ac_try") 2>&5
11080 ac_status=$?
11081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11082 (exit $ac_status); }; }; then
11083 ac_cv_sizeof_pid_t=`cat conftest.val`
11084 else
11085 echo "$as_me: program exited with status $ac_status" >&5
11086 echo "$as_me: failed program was:" >&5
11087 sed 's/^/| /' conftest.$ac_ext >&5
11089 ( exit $ac_status )
11090 if test "$ac_cv_type_pid_t" = yes; then
11091 { { echo "$as_me:$LINENO: error: cannot compute sizeof (pid_t)
11092 See \`config.log' for more details." >&5
11093 echo "$as_me: error: cannot compute sizeof (pid_t)
11094 See \`config.log' for more details." >&2;}
11095 { (exit 77); exit 77; }; }
11096 else
11097 ac_cv_sizeof_pid_t=0
11100 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11102 rm -f conftest.val
11104 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_pid_t" >&5
11105 echo "${ECHO_T}$ac_cv_sizeof_pid_t" >&6; }
11109 cat >>confdefs.h <<_ACEOF
11110 #define SIZEOF_PID_T $ac_cv_sizeof_pid_t
11111 _ACEOF
11115 { echo "$as_me:$LINENO: checking for long long support" >&5
11116 echo $ECHO_N "checking for long long support... $ECHO_C" >&6; }
11117 have_long_long=no
11118 cat >conftest.$ac_ext <<_ACEOF
11119 /* confdefs.h. */
11120 _ACEOF
11121 cat confdefs.h >>conftest.$ac_ext
11122 cat >>conftest.$ac_ext <<_ACEOF
11123 /* end confdefs.h. */
11126 main ()
11128 long long x; x = (long long)0;
11130 return 0;
11132 _ACEOF
11133 rm -f conftest.$ac_objext
11134 if { (ac_try="$ac_compile"
11135 case "(($ac_try" in
11136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11137 *) ac_try_echo=$ac_try;;
11138 esac
11139 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11140 (eval "$ac_compile") 2>conftest.er1
11141 ac_status=$?
11142 grep -v '^ *+' conftest.er1 >conftest.err
11143 rm -f conftest.er1
11144 cat conftest.err >&5
11145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11146 (exit $ac_status); } && {
11147 test -z "$ac_c_werror_flag" ||
11148 test ! -s conftest.err
11149 } && test -s conftest.$ac_objext; then
11152 cat >>confdefs.h <<\_ACEOF
11153 #define HAVE_LONG_LONG 1
11154 _ACEOF
11156 have_long_long=yes
11158 else
11159 echo "$as_me: failed program was:" >&5
11160 sed 's/^/| /' conftest.$ac_ext >&5
11165 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11166 { echo "$as_me:$LINENO: result: $have_long_long" >&5
11167 echo "${ECHO_T}$have_long_long" >&6; }
11168 if test "$have_long_long" = yes ; then
11169 { echo "$as_me:$LINENO: checking for long long" >&5
11170 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
11171 if test "${ac_cv_type_long_long+set}" = set; then
11172 echo $ECHO_N "(cached) $ECHO_C" >&6
11173 else
11174 cat >conftest.$ac_ext <<_ACEOF
11175 /* confdefs.h. */
11176 _ACEOF
11177 cat confdefs.h >>conftest.$ac_ext
11178 cat >>conftest.$ac_ext <<_ACEOF
11179 /* end confdefs.h. */
11180 $ac_includes_default
11181 typedef long long ac__type_new_;
11183 main ()
11185 if ((ac__type_new_ *) 0)
11186 return 0;
11187 if (sizeof (ac__type_new_))
11188 return 0;
11190 return 0;
11192 _ACEOF
11193 rm -f conftest.$ac_objext
11194 if { (ac_try="$ac_compile"
11195 case "(($ac_try" in
11196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11197 *) ac_try_echo=$ac_try;;
11198 esac
11199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11200 (eval "$ac_compile") 2>conftest.er1
11201 ac_status=$?
11202 grep -v '^ *+' conftest.er1 >conftest.err
11203 rm -f conftest.er1
11204 cat conftest.err >&5
11205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11206 (exit $ac_status); } && {
11207 test -z "$ac_c_werror_flag" ||
11208 test ! -s conftest.err
11209 } && test -s conftest.$ac_objext; then
11210 ac_cv_type_long_long=yes
11211 else
11212 echo "$as_me: failed program was:" >&5
11213 sed 's/^/| /' conftest.$ac_ext >&5
11215 ac_cv_type_long_long=no
11218 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11220 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
11221 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
11223 # The cast to long int works around a bug in the HP C Compiler
11224 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11225 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11226 # This bug is HP SR number 8606223364.
11227 { echo "$as_me:$LINENO: checking size of long long" >&5
11228 echo $ECHO_N "checking size of long long... $ECHO_C" >&6; }
11229 if test "${ac_cv_sizeof_long_long+set}" = set; then
11230 echo $ECHO_N "(cached) $ECHO_C" >&6
11231 else
11232 if test "$cross_compiling" = yes; then
11233 # Depending upon the size, compute the lo and hi bounds.
11234 cat >conftest.$ac_ext <<_ACEOF
11235 /* confdefs.h. */
11236 _ACEOF
11237 cat confdefs.h >>conftest.$ac_ext
11238 cat >>conftest.$ac_ext <<_ACEOF
11239 /* end confdefs.h. */
11240 $ac_includes_default
11241 typedef long long ac__type_sizeof_;
11243 main ()
11245 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
11246 test_array [0] = 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_lo=0 ac_mid=0
11270 while :; do
11271 cat >conftest.$ac_ext <<_ACEOF
11272 /* confdefs.h. */
11273 _ACEOF
11274 cat confdefs.h >>conftest.$ac_ext
11275 cat >>conftest.$ac_ext <<_ACEOF
11276 /* end confdefs.h. */
11277 $ac_includes_default
11278 typedef long long ac__type_sizeof_;
11280 main ()
11282 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
11283 test_array [0] = 0
11286 return 0;
11288 _ACEOF
11289 rm -f conftest.$ac_objext
11290 if { (ac_try="$ac_compile"
11291 case "(($ac_try" in
11292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11293 *) ac_try_echo=$ac_try;;
11294 esac
11295 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11296 (eval "$ac_compile") 2>conftest.er1
11297 ac_status=$?
11298 grep -v '^ *+' conftest.er1 >conftest.err
11299 rm -f conftest.er1
11300 cat conftest.err >&5
11301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11302 (exit $ac_status); } && {
11303 test -z "$ac_c_werror_flag" ||
11304 test ! -s conftest.err
11305 } && test -s conftest.$ac_objext; then
11306 ac_hi=$ac_mid; break
11307 else
11308 echo "$as_me: failed program was:" >&5
11309 sed 's/^/| /' conftest.$ac_ext >&5
11311 ac_lo=`expr $ac_mid + 1`
11312 if test $ac_lo -le $ac_mid; then
11313 ac_lo= ac_hi=
11314 break
11316 ac_mid=`expr 2 '*' $ac_mid + 1`
11319 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11320 done
11321 else
11322 echo "$as_me: failed program was:" >&5
11323 sed 's/^/| /' conftest.$ac_ext >&5
11325 cat >conftest.$ac_ext <<_ACEOF
11326 /* confdefs.h. */
11327 _ACEOF
11328 cat confdefs.h >>conftest.$ac_ext
11329 cat >>conftest.$ac_ext <<_ACEOF
11330 /* end confdefs.h. */
11331 $ac_includes_default
11332 typedef long long ac__type_sizeof_;
11334 main ()
11336 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
11337 test_array [0] = 0
11340 return 0;
11342 _ACEOF
11343 rm -f conftest.$ac_objext
11344 if { (ac_try="$ac_compile"
11345 case "(($ac_try" in
11346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11347 *) ac_try_echo=$ac_try;;
11348 esac
11349 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11350 (eval "$ac_compile") 2>conftest.er1
11351 ac_status=$?
11352 grep -v '^ *+' conftest.er1 >conftest.err
11353 rm -f conftest.er1
11354 cat conftest.err >&5
11355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11356 (exit $ac_status); } && {
11357 test -z "$ac_c_werror_flag" ||
11358 test ! -s conftest.err
11359 } && test -s conftest.$ac_objext; then
11360 ac_hi=-1 ac_mid=-1
11361 while :; do
11362 cat >conftest.$ac_ext <<_ACEOF
11363 /* confdefs.h. */
11364 _ACEOF
11365 cat confdefs.h >>conftest.$ac_ext
11366 cat >>conftest.$ac_ext <<_ACEOF
11367 /* end confdefs.h. */
11368 $ac_includes_default
11369 typedef long long ac__type_sizeof_;
11371 main ()
11373 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
11374 test_array [0] = 0
11377 return 0;
11379 _ACEOF
11380 rm -f conftest.$ac_objext
11381 if { (ac_try="$ac_compile"
11382 case "(($ac_try" in
11383 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11384 *) ac_try_echo=$ac_try;;
11385 esac
11386 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11387 (eval "$ac_compile") 2>conftest.er1
11388 ac_status=$?
11389 grep -v '^ *+' conftest.er1 >conftest.err
11390 rm -f conftest.er1
11391 cat conftest.err >&5
11392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11393 (exit $ac_status); } && {
11394 test -z "$ac_c_werror_flag" ||
11395 test ! -s conftest.err
11396 } && test -s conftest.$ac_objext; then
11397 ac_lo=$ac_mid; break
11398 else
11399 echo "$as_me: failed program was:" >&5
11400 sed 's/^/| /' conftest.$ac_ext >&5
11402 ac_hi=`expr '(' $ac_mid ')' - 1`
11403 if test $ac_mid -le $ac_hi; then
11404 ac_lo= ac_hi=
11405 break
11407 ac_mid=`expr 2 '*' $ac_mid`
11410 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11411 done
11412 else
11413 echo "$as_me: failed program was:" >&5
11414 sed 's/^/| /' conftest.$ac_ext >&5
11416 ac_lo= ac_hi=
11419 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11422 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11423 # Binary search between lo and hi bounds.
11424 while test "x$ac_lo" != "x$ac_hi"; do
11425 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
11426 cat >conftest.$ac_ext <<_ACEOF
11427 /* confdefs.h. */
11428 _ACEOF
11429 cat confdefs.h >>conftest.$ac_ext
11430 cat >>conftest.$ac_ext <<_ACEOF
11431 /* end confdefs.h. */
11432 $ac_includes_default
11433 typedef long long ac__type_sizeof_;
11435 main ()
11437 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
11438 test_array [0] = 0
11441 return 0;
11443 _ACEOF
11444 rm -f conftest.$ac_objext
11445 if { (ac_try="$ac_compile"
11446 case "(($ac_try" in
11447 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11448 *) ac_try_echo=$ac_try;;
11449 esac
11450 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11451 (eval "$ac_compile") 2>conftest.er1
11452 ac_status=$?
11453 grep -v '^ *+' conftest.er1 >conftest.err
11454 rm -f conftest.er1
11455 cat conftest.err >&5
11456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11457 (exit $ac_status); } && {
11458 test -z "$ac_c_werror_flag" ||
11459 test ! -s conftest.err
11460 } && test -s conftest.$ac_objext; then
11461 ac_hi=$ac_mid
11462 else
11463 echo "$as_me: failed program was:" >&5
11464 sed 's/^/| /' conftest.$ac_ext >&5
11466 ac_lo=`expr '(' $ac_mid ')' + 1`
11469 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11470 done
11471 case $ac_lo in
11472 ?*) ac_cv_sizeof_long_long=$ac_lo;;
11473 '') if test "$ac_cv_type_long_long" = yes; then
11474 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
11475 See \`config.log' for more details." >&5
11476 echo "$as_me: error: cannot compute sizeof (long long)
11477 See \`config.log' for more details." >&2;}
11478 { (exit 77); exit 77; }; }
11479 else
11480 ac_cv_sizeof_long_long=0
11481 fi ;;
11482 esac
11483 else
11484 cat >conftest.$ac_ext <<_ACEOF
11485 /* confdefs.h. */
11486 _ACEOF
11487 cat confdefs.h >>conftest.$ac_ext
11488 cat >>conftest.$ac_ext <<_ACEOF
11489 /* end confdefs.h. */
11490 $ac_includes_default
11491 typedef long long ac__type_sizeof_;
11492 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
11493 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
11494 #include <stdio.h>
11495 #include <stdlib.h>
11497 main ()
11500 FILE *f = fopen ("conftest.val", "w");
11501 if (! f)
11502 return 1;
11503 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
11505 long int i = longval ();
11506 if (i != ((long int) (sizeof (ac__type_sizeof_))))
11507 return 1;
11508 fprintf (f, "%ld\n", i);
11510 else
11512 unsigned long int i = ulongval ();
11513 if (i != ((long int) (sizeof (ac__type_sizeof_))))
11514 return 1;
11515 fprintf (f, "%lu\n", i);
11517 return ferror (f) || fclose (f) != 0;
11520 return 0;
11522 _ACEOF
11523 rm -f conftest$ac_exeext
11524 if { (ac_try="$ac_link"
11525 case "(($ac_try" in
11526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11527 *) ac_try_echo=$ac_try;;
11528 esac
11529 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11530 (eval "$ac_link") 2>&5
11531 ac_status=$?
11532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11533 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11534 { (case "(($ac_try" in
11535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11536 *) ac_try_echo=$ac_try;;
11537 esac
11538 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11539 (eval "$ac_try") 2>&5
11540 ac_status=$?
11541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11542 (exit $ac_status); }; }; then
11543 ac_cv_sizeof_long_long=`cat conftest.val`
11544 else
11545 echo "$as_me: program exited with status $ac_status" >&5
11546 echo "$as_me: failed program was:" >&5
11547 sed 's/^/| /' conftest.$ac_ext >&5
11549 ( exit $ac_status )
11550 if test "$ac_cv_type_long_long" = yes; then
11551 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
11552 See \`config.log' for more details." >&5
11553 echo "$as_me: error: cannot compute sizeof (long long)
11554 See \`config.log' for more details." >&2;}
11555 { (exit 77); exit 77; }; }
11556 else
11557 ac_cv_sizeof_long_long=0
11560 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11562 rm -f conftest.val
11564 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
11565 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6; }
11569 cat >>confdefs.h <<_ACEOF
11570 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
11571 _ACEOF
11576 { echo "$as_me:$LINENO: checking for long double support" >&5
11577 echo $ECHO_N "checking for long double support... $ECHO_C" >&6; }
11578 have_long_double=no
11579 cat >conftest.$ac_ext <<_ACEOF
11580 /* confdefs.h. */
11581 _ACEOF
11582 cat confdefs.h >>conftest.$ac_ext
11583 cat >>conftest.$ac_ext <<_ACEOF
11584 /* end confdefs.h. */
11587 main ()
11589 long double x; x = (long double)0.;
11591 return 0;
11593 _ACEOF
11594 rm -f conftest.$ac_objext
11595 if { (ac_try="$ac_compile"
11596 case "(($ac_try" in
11597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11598 *) ac_try_echo=$ac_try;;
11599 esac
11600 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11601 (eval "$ac_compile") 2>conftest.er1
11602 ac_status=$?
11603 grep -v '^ *+' conftest.er1 >conftest.err
11604 rm -f conftest.er1
11605 cat conftest.err >&5
11606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11607 (exit $ac_status); } && {
11608 test -z "$ac_c_werror_flag" ||
11609 test ! -s conftest.err
11610 } && test -s conftest.$ac_objext; then
11613 cat >>confdefs.h <<\_ACEOF
11614 #define HAVE_LONG_DOUBLE 1
11615 _ACEOF
11617 have_long_double=yes
11619 else
11620 echo "$as_me: failed program was:" >&5
11621 sed 's/^/| /' conftest.$ac_ext >&5
11626 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11627 { echo "$as_me:$LINENO: result: $have_long_double" >&5
11628 echo "${ECHO_T}$have_long_double" >&6; }
11629 if test "$have_long_double" = yes ; then
11630 { echo "$as_me:$LINENO: checking for long double" >&5
11631 echo $ECHO_N "checking for long double... $ECHO_C" >&6; }
11632 if test "${ac_cv_type_long_double+set}" = set; then
11633 echo $ECHO_N "(cached) $ECHO_C" >&6
11634 else
11635 cat >conftest.$ac_ext <<_ACEOF
11636 /* confdefs.h. */
11637 _ACEOF
11638 cat confdefs.h >>conftest.$ac_ext
11639 cat >>conftest.$ac_ext <<_ACEOF
11640 /* end confdefs.h. */
11641 $ac_includes_default
11642 typedef long double ac__type_new_;
11644 main ()
11646 if ((ac__type_new_ *) 0)
11647 return 0;
11648 if (sizeof (ac__type_new_))
11649 return 0;
11651 return 0;
11653 _ACEOF
11654 rm -f conftest.$ac_objext
11655 if { (ac_try="$ac_compile"
11656 case "(($ac_try" in
11657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11658 *) ac_try_echo=$ac_try;;
11659 esac
11660 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11661 (eval "$ac_compile") 2>conftest.er1
11662 ac_status=$?
11663 grep -v '^ *+' conftest.er1 >conftest.err
11664 rm -f conftest.er1
11665 cat conftest.err >&5
11666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11667 (exit $ac_status); } && {
11668 test -z "$ac_c_werror_flag" ||
11669 test ! -s conftest.err
11670 } && test -s conftest.$ac_objext; then
11671 ac_cv_type_long_double=yes
11672 else
11673 echo "$as_me: failed program was:" >&5
11674 sed 's/^/| /' conftest.$ac_ext >&5
11676 ac_cv_type_long_double=no
11679 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11681 { echo "$as_me:$LINENO: result: $ac_cv_type_long_double" >&5
11682 echo "${ECHO_T}$ac_cv_type_long_double" >&6; }
11684 # The cast to long int works around a bug in the HP C Compiler
11685 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11686 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11687 # This bug is HP SR number 8606223364.
11688 { echo "$as_me:$LINENO: checking size of long double" >&5
11689 echo $ECHO_N "checking size of long double... $ECHO_C" >&6; }
11690 if test "${ac_cv_sizeof_long_double+set}" = set; then
11691 echo $ECHO_N "(cached) $ECHO_C" >&6
11692 else
11693 if test "$cross_compiling" = yes; then
11694 # Depending upon the size, compute the lo and hi bounds.
11695 cat >conftest.$ac_ext <<_ACEOF
11696 /* confdefs.h. */
11697 _ACEOF
11698 cat confdefs.h >>conftest.$ac_ext
11699 cat >>conftest.$ac_ext <<_ACEOF
11700 /* end confdefs.h. */
11701 $ac_includes_default
11702 typedef long double ac__type_sizeof_;
11704 main ()
11706 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
11707 test_array [0] = 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_lo=0 ac_mid=0
11731 while :; do
11732 cat >conftest.$ac_ext <<_ACEOF
11733 /* confdefs.h. */
11734 _ACEOF
11735 cat confdefs.h >>conftest.$ac_ext
11736 cat >>conftest.$ac_ext <<_ACEOF
11737 /* end confdefs.h. */
11738 $ac_includes_default
11739 typedef long double ac__type_sizeof_;
11741 main ()
11743 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
11744 test_array [0] = 0
11747 return 0;
11749 _ACEOF
11750 rm -f conftest.$ac_objext
11751 if { (ac_try="$ac_compile"
11752 case "(($ac_try" in
11753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11754 *) ac_try_echo=$ac_try;;
11755 esac
11756 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11757 (eval "$ac_compile") 2>conftest.er1
11758 ac_status=$?
11759 grep -v '^ *+' conftest.er1 >conftest.err
11760 rm -f conftest.er1
11761 cat conftest.err >&5
11762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11763 (exit $ac_status); } && {
11764 test -z "$ac_c_werror_flag" ||
11765 test ! -s conftest.err
11766 } && test -s conftest.$ac_objext; then
11767 ac_hi=$ac_mid; break
11768 else
11769 echo "$as_me: failed program was:" >&5
11770 sed 's/^/| /' conftest.$ac_ext >&5
11772 ac_lo=`expr $ac_mid + 1`
11773 if test $ac_lo -le $ac_mid; then
11774 ac_lo= ac_hi=
11775 break
11777 ac_mid=`expr 2 '*' $ac_mid + 1`
11780 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11781 done
11782 else
11783 echo "$as_me: failed program was:" >&5
11784 sed 's/^/| /' conftest.$ac_ext >&5
11786 cat >conftest.$ac_ext <<_ACEOF
11787 /* confdefs.h. */
11788 _ACEOF
11789 cat confdefs.h >>conftest.$ac_ext
11790 cat >>conftest.$ac_ext <<_ACEOF
11791 /* end confdefs.h. */
11792 $ac_includes_default
11793 typedef long double ac__type_sizeof_;
11795 main ()
11797 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
11798 test_array [0] = 0
11801 return 0;
11803 _ACEOF
11804 rm -f conftest.$ac_objext
11805 if { (ac_try="$ac_compile"
11806 case "(($ac_try" in
11807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11808 *) ac_try_echo=$ac_try;;
11809 esac
11810 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11811 (eval "$ac_compile") 2>conftest.er1
11812 ac_status=$?
11813 grep -v '^ *+' conftest.er1 >conftest.err
11814 rm -f conftest.er1
11815 cat conftest.err >&5
11816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11817 (exit $ac_status); } && {
11818 test -z "$ac_c_werror_flag" ||
11819 test ! -s conftest.err
11820 } && test -s conftest.$ac_objext; then
11821 ac_hi=-1 ac_mid=-1
11822 while :; do
11823 cat >conftest.$ac_ext <<_ACEOF
11824 /* confdefs.h. */
11825 _ACEOF
11826 cat confdefs.h >>conftest.$ac_ext
11827 cat >>conftest.$ac_ext <<_ACEOF
11828 /* end confdefs.h. */
11829 $ac_includes_default
11830 typedef long double ac__type_sizeof_;
11832 main ()
11834 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
11835 test_array [0] = 0
11838 return 0;
11840 _ACEOF
11841 rm -f conftest.$ac_objext
11842 if { (ac_try="$ac_compile"
11843 case "(($ac_try" in
11844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11845 *) ac_try_echo=$ac_try;;
11846 esac
11847 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11848 (eval "$ac_compile") 2>conftest.er1
11849 ac_status=$?
11850 grep -v '^ *+' conftest.er1 >conftest.err
11851 rm -f conftest.er1
11852 cat conftest.err >&5
11853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11854 (exit $ac_status); } && {
11855 test -z "$ac_c_werror_flag" ||
11856 test ! -s conftest.err
11857 } && test -s conftest.$ac_objext; then
11858 ac_lo=$ac_mid; break
11859 else
11860 echo "$as_me: failed program was:" >&5
11861 sed 's/^/| /' conftest.$ac_ext >&5
11863 ac_hi=`expr '(' $ac_mid ')' - 1`
11864 if test $ac_mid -le $ac_hi; then
11865 ac_lo= ac_hi=
11866 break
11868 ac_mid=`expr 2 '*' $ac_mid`
11871 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11872 done
11873 else
11874 echo "$as_me: failed program was:" >&5
11875 sed 's/^/| /' conftest.$ac_ext >&5
11877 ac_lo= ac_hi=
11880 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11883 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11884 # Binary search between lo and hi bounds.
11885 while test "x$ac_lo" != "x$ac_hi"; do
11886 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
11887 cat >conftest.$ac_ext <<_ACEOF
11888 /* confdefs.h. */
11889 _ACEOF
11890 cat confdefs.h >>conftest.$ac_ext
11891 cat >>conftest.$ac_ext <<_ACEOF
11892 /* end confdefs.h. */
11893 $ac_includes_default
11894 typedef long double ac__type_sizeof_;
11896 main ()
11898 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
11899 test_array [0] = 0
11902 return 0;
11904 _ACEOF
11905 rm -f conftest.$ac_objext
11906 if { (ac_try="$ac_compile"
11907 case "(($ac_try" in
11908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11909 *) ac_try_echo=$ac_try;;
11910 esac
11911 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11912 (eval "$ac_compile") 2>conftest.er1
11913 ac_status=$?
11914 grep -v '^ *+' conftest.er1 >conftest.err
11915 rm -f conftest.er1
11916 cat conftest.err >&5
11917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11918 (exit $ac_status); } && {
11919 test -z "$ac_c_werror_flag" ||
11920 test ! -s conftest.err
11921 } && test -s conftest.$ac_objext; then
11922 ac_hi=$ac_mid
11923 else
11924 echo "$as_me: failed program was:" >&5
11925 sed 's/^/| /' conftest.$ac_ext >&5
11927 ac_lo=`expr '(' $ac_mid ')' + 1`
11930 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11931 done
11932 case $ac_lo in
11933 ?*) ac_cv_sizeof_long_double=$ac_lo;;
11934 '') if test "$ac_cv_type_long_double" = yes; then
11935 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long double)
11936 See \`config.log' for more details." >&5
11937 echo "$as_me: error: cannot compute sizeof (long double)
11938 See \`config.log' for more details." >&2;}
11939 { (exit 77); exit 77; }; }
11940 else
11941 ac_cv_sizeof_long_double=0
11942 fi ;;
11943 esac
11944 else
11945 cat >conftest.$ac_ext <<_ACEOF
11946 /* confdefs.h. */
11947 _ACEOF
11948 cat confdefs.h >>conftest.$ac_ext
11949 cat >>conftest.$ac_ext <<_ACEOF
11950 /* end confdefs.h. */
11951 $ac_includes_default
11952 typedef long double ac__type_sizeof_;
11953 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
11954 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
11955 #include <stdio.h>
11956 #include <stdlib.h>
11958 main ()
11961 FILE *f = fopen ("conftest.val", "w");
11962 if (! f)
11963 return 1;
11964 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
11966 long int i = longval ();
11967 if (i != ((long int) (sizeof (ac__type_sizeof_))))
11968 return 1;
11969 fprintf (f, "%ld\n", i);
11971 else
11973 unsigned long int i = ulongval ();
11974 if (i != ((long int) (sizeof (ac__type_sizeof_))))
11975 return 1;
11976 fprintf (f, "%lu\n", i);
11978 return ferror (f) || fclose (f) != 0;
11981 return 0;
11983 _ACEOF
11984 rm -f conftest$ac_exeext
11985 if { (ac_try="$ac_link"
11986 case "(($ac_try" in
11987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11988 *) ac_try_echo=$ac_try;;
11989 esac
11990 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11991 (eval "$ac_link") 2>&5
11992 ac_status=$?
11993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11994 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11995 { (case "(($ac_try" in
11996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11997 *) ac_try_echo=$ac_try;;
11998 esac
11999 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12000 (eval "$ac_try") 2>&5
12001 ac_status=$?
12002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12003 (exit $ac_status); }; }; then
12004 ac_cv_sizeof_long_double=`cat conftest.val`
12005 else
12006 echo "$as_me: program exited with status $ac_status" >&5
12007 echo "$as_me: failed program was:" >&5
12008 sed 's/^/| /' conftest.$ac_ext >&5
12010 ( exit $ac_status )
12011 if test "$ac_cv_type_long_double" = yes; then
12012 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long double)
12013 See \`config.log' for more details." >&5
12014 echo "$as_me: error: cannot compute sizeof (long double)
12015 See \`config.log' for more details." >&2;}
12016 { (exit 77); exit 77; }; }
12017 else
12018 ac_cv_sizeof_long_double=0
12021 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12023 rm -f conftest.val
12025 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_double" >&5
12026 echo "${ECHO_T}$ac_cv_sizeof_long_double" >&6; }
12030 cat >>confdefs.h <<_ACEOF
12031 #define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double
12032 _ACEOF
12037 { echo "$as_me:$LINENO: checking for _Bool support" >&5
12038 echo $ECHO_N "checking for _Bool support... $ECHO_C" >&6; }
12039 have_c99_bool=no
12040 cat >conftest.$ac_ext <<_ACEOF
12041 /* confdefs.h. */
12042 _ACEOF
12043 cat confdefs.h >>conftest.$ac_ext
12044 cat >>conftest.$ac_ext <<_ACEOF
12045 /* end confdefs.h. */
12048 main ()
12050 _Bool x; x = (_Bool)0;
12052 return 0;
12054 _ACEOF
12055 rm -f conftest.$ac_objext
12056 if { (ac_try="$ac_compile"
12057 case "(($ac_try" in
12058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12059 *) ac_try_echo=$ac_try;;
12060 esac
12061 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12062 (eval "$ac_compile") 2>conftest.er1
12063 ac_status=$?
12064 grep -v '^ *+' conftest.er1 >conftest.err
12065 rm -f conftest.er1
12066 cat conftest.err >&5
12067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12068 (exit $ac_status); } && {
12069 test -z "$ac_c_werror_flag" ||
12070 test ! -s conftest.err
12071 } && test -s conftest.$ac_objext; then
12074 cat >>confdefs.h <<\_ACEOF
12075 #define HAVE_C99_BOOL 1
12076 _ACEOF
12078 have_c99_bool=yes
12080 else
12081 echo "$as_me: failed program was:" >&5
12082 sed 's/^/| /' conftest.$ac_ext >&5
12087 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12088 { echo "$as_me:$LINENO: result: $have_c99_bool" >&5
12089 echo "${ECHO_T}$have_c99_bool" >&6; }
12090 if test "$have_c99_bool" = yes ; then
12091 { echo "$as_me:$LINENO: checking for _Bool" >&5
12092 echo $ECHO_N "checking for _Bool... $ECHO_C" >&6; }
12093 if test "${ac_cv_type__Bool+set}" = set; then
12094 echo $ECHO_N "(cached) $ECHO_C" >&6
12095 else
12096 cat >conftest.$ac_ext <<_ACEOF
12097 /* confdefs.h. */
12098 _ACEOF
12099 cat confdefs.h >>conftest.$ac_ext
12100 cat >>conftest.$ac_ext <<_ACEOF
12101 /* end confdefs.h. */
12102 $ac_includes_default
12103 typedef _Bool ac__type_new_;
12105 main ()
12107 if ((ac__type_new_ *) 0)
12108 return 0;
12109 if (sizeof (ac__type_new_))
12110 return 0;
12112 return 0;
12114 _ACEOF
12115 rm -f conftest.$ac_objext
12116 if { (ac_try="$ac_compile"
12117 case "(($ac_try" in
12118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12119 *) ac_try_echo=$ac_try;;
12120 esac
12121 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12122 (eval "$ac_compile") 2>conftest.er1
12123 ac_status=$?
12124 grep -v '^ *+' conftest.er1 >conftest.err
12125 rm -f conftest.er1
12126 cat conftest.err >&5
12127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12128 (exit $ac_status); } && {
12129 test -z "$ac_c_werror_flag" ||
12130 test ! -s conftest.err
12131 } && test -s conftest.$ac_objext; then
12132 ac_cv_type__Bool=yes
12133 else
12134 echo "$as_me: failed program was:" >&5
12135 sed 's/^/| /' conftest.$ac_ext >&5
12137 ac_cv_type__Bool=no
12140 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12142 { echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5
12143 echo "${ECHO_T}$ac_cv_type__Bool" >&6; }
12145 # The cast to long int works around a bug in the HP C Compiler
12146 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12147 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12148 # This bug is HP SR number 8606223364.
12149 { echo "$as_me:$LINENO: checking size of _Bool" >&5
12150 echo $ECHO_N "checking size of _Bool... $ECHO_C" >&6; }
12151 if test "${ac_cv_sizeof__Bool+set}" = set; then
12152 echo $ECHO_N "(cached) $ECHO_C" >&6
12153 else
12154 if test "$cross_compiling" = yes; then
12155 # Depending upon the size, compute the lo and hi bounds.
12156 cat >conftest.$ac_ext <<_ACEOF
12157 /* confdefs.h. */
12158 _ACEOF
12159 cat confdefs.h >>conftest.$ac_ext
12160 cat >>conftest.$ac_ext <<_ACEOF
12161 /* end confdefs.h. */
12162 $ac_includes_default
12163 typedef _Bool ac__type_sizeof_;
12165 main ()
12167 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
12168 test_array [0] = 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_lo=0 ac_mid=0
12192 while :; do
12193 cat >conftest.$ac_ext <<_ACEOF
12194 /* confdefs.h. */
12195 _ACEOF
12196 cat confdefs.h >>conftest.$ac_ext
12197 cat >>conftest.$ac_ext <<_ACEOF
12198 /* end confdefs.h. */
12199 $ac_includes_default
12200 typedef _Bool ac__type_sizeof_;
12202 main ()
12204 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
12205 test_array [0] = 0
12208 return 0;
12210 _ACEOF
12211 rm -f conftest.$ac_objext
12212 if { (ac_try="$ac_compile"
12213 case "(($ac_try" in
12214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12215 *) ac_try_echo=$ac_try;;
12216 esac
12217 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12218 (eval "$ac_compile") 2>conftest.er1
12219 ac_status=$?
12220 grep -v '^ *+' conftest.er1 >conftest.err
12221 rm -f conftest.er1
12222 cat conftest.err >&5
12223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12224 (exit $ac_status); } && {
12225 test -z "$ac_c_werror_flag" ||
12226 test ! -s conftest.err
12227 } && test -s conftest.$ac_objext; then
12228 ac_hi=$ac_mid; break
12229 else
12230 echo "$as_me: failed program was:" >&5
12231 sed 's/^/| /' conftest.$ac_ext >&5
12233 ac_lo=`expr $ac_mid + 1`
12234 if test $ac_lo -le $ac_mid; then
12235 ac_lo= ac_hi=
12236 break
12238 ac_mid=`expr 2 '*' $ac_mid + 1`
12241 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12242 done
12243 else
12244 echo "$as_me: failed program was:" >&5
12245 sed 's/^/| /' conftest.$ac_ext >&5
12247 cat >conftest.$ac_ext <<_ACEOF
12248 /* confdefs.h. */
12249 _ACEOF
12250 cat confdefs.h >>conftest.$ac_ext
12251 cat >>conftest.$ac_ext <<_ACEOF
12252 /* end confdefs.h. */
12253 $ac_includes_default
12254 typedef _Bool ac__type_sizeof_;
12256 main ()
12258 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
12259 test_array [0] = 0
12262 return 0;
12264 _ACEOF
12265 rm -f conftest.$ac_objext
12266 if { (ac_try="$ac_compile"
12267 case "(($ac_try" in
12268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12269 *) ac_try_echo=$ac_try;;
12270 esac
12271 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12272 (eval "$ac_compile") 2>conftest.er1
12273 ac_status=$?
12274 grep -v '^ *+' conftest.er1 >conftest.err
12275 rm -f conftest.er1
12276 cat conftest.err >&5
12277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12278 (exit $ac_status); } && {
12279 test -z "$ac_c_werror_flag" ||
12280 test ! -s conftest.err
12281 } && test -s conftest.$ac_objext; then
12282 ac_hi=-1 ac_mid=-1
12283 while :; do
12284 cat >conftest.$ac_ext <<_ACEOF
12285 /* confdefs.h. */
12286 _ACEOF
12287 cat confdefs.h >>conftest.$ac_ext
12288 cat >>conftest.$ac_ext <<_ACEOF
12289 /* end confdefs.h. */
12290 $ac_includes_default
12291 typedef _Bool ac__type_sizeof_;
12293 main ()
12295 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
12296 test_array [0] = 0
12299 return 0;
12301 _ACEOF
12302 rm -f conftest.$ac_objext
12303 if { (ac_try="$ac_compile"
12304 case "(($ac_try" in
12305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12306 *) ac_try_echo=$ac_try;;
12307 esac
12308 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12309 (eval "$ac_compile") 2>conftest.er1
12310 ac_status=$?
12311 grep -v '^ *+' conftest.er1 >conftest.err
12312 rm -f conftest.er1
12313 cat conftest.err >&5
12314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12315 (exit $ac_status); } && {
12316 test -z "$ac_c_werror_flag" ||
12317 test ! -s conftest.err
12318 } && test -s conftest.$ac_objext; then
12319 ac_lo=$ac_mid; break
12320 else
12321 echo "$as_me: failed program was:" >&5
12322 sed 's/^/| /' conftest.$ac_ext >&5
12324 ac_hi=`expr '(' $ac_mid ')' - 1`
12325 if test $ac_mid -le $ac_hi; then
12326 ac_lo= ac_hi=
12327 break
12329 ac_mid=`expr 2 '*' $ac_mid`
12332 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12333 done
12334 else
12335 echo "$as_me: failed program was:" >&5
12336 sed 's/^/| /' conftest.$ac_ext >&5
12338 ac_lo= ac_hi=
12341 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12344 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12345 # Binary search between lo and hi bounds.
12346 while test "x$ac_lo" != "x$ac_hi"; do
12347 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12348 cat >conftest.$ac_ext <<_ACEOF
12349 /* confdefs.h. */
12350 _ACEOF
12351 cat confdefs.h >>conftest.$ac_ext
12352 cat >>conftest.$ac_ext <<_ACEOF
12353 /* end confdefs.h. */
12354 $ac_includes_default
12355 typedef _Bool ac__type_sizeof_;
12357 main ()
12359 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
12360 test_array [0] = 0
12363 return 0;
12365 _ACEOF
12366 rm -f conftest.$ac_objext
12367 if { (ac_try="$ac_compile"
12368 case "(($ac_try" in
12369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12370 *) ac_try_echo=$ac_try;;
12371 esac
12372 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12373 (eval "$ac_compile") 2>conftest.er1
12374 ac_status=$?
12375 grep -v '^ *+' conftest.er1 >conftest.err
12376 rm -f conftest.er1
12377 cat conftest.err >&5
12378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12379 (exit $ac_status); } && {
12380 test -z "$ac_c_werror_flag" ||
12381 test ! -s conftest.err
12382 } && test -s conftest.$ac_objext; then
12383 ac_hi=$ac_mid
12384 else
12385 echo "$as_me: failed program was:" >&5
12386 sed 's/^/| /' conftest.$ac_ext >&5
12388 ac_lo=`expr '(' $ac_mid ')' + 1`
12391 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12392 done
12393 case $ac_lo in
12394 ?*) ac_cv_sizeof__Bool=$ac_lo;;
12395 '') if test "$ac_cv_type__Bool" = yes; then
12396 { { echo "$as_me:$LINENO: error: cannot compute sizeof (_Bool)
12397 See \`config.log' for more details." >&5
12398 echo "$as_me: error: cannot compute sizeof (_Bool)
12399 See \`config.log' for more details." >&2;}
12400 { (exit 77); exit 77; }; }
12401 else
12402 ac_cv_sizeof__Bool=0
12403 fi ;;
12404 esac
12405 else
12406 cat >conftest.$ac_ext <<_ACEOF
12407 /* confdefs.h. */
12408 _ACEOF
12409 cat confdefs.h >>conftest.$ac_ext
12410 cat >>conftest.$ac_ext <<_ACEOF
12411 /* end confdefs.h. */
12412 $ac_includes_default
12413 typedef _Bool ac__type_sizeof_;
12414 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
12415 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
12416 #include <stdio.h>
12417 #include <stdlib.h>
12419 main ()
12422 FILE *f = fopen ("conftest.val", "w");
12423 if (! f)
12424 return 1;
12425 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
12427 long int i = longval ();
12428 if (i != ((long int) (sizeof (ac__type_sizeof_))))
12429 return 1;
12430 fprintf (f, "%ld\n", i);
12432 else
12434 unsigned long int i = ulongval ();
12435 if (i != ((long int) (sizeof (ac__type_sizeof_))))
12436 return 1;
12437 fprintf (f, "%lu\n", i);
12439 return ferror (f) || fclose (f) != 0;
12442 return 0;
12444 _ACEOF
12445 rm -f conftest$ac_exeext
12446 if { (ac_try="$ac_link"
12447 case "(($ac_try" in
12448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12449 *) ac_try_echo=$ac_try;;
12450 esac
12451 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12452 (eval "$ac_link") 2>&5
12453 ac_status=$?
12454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12455 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12456 { (case "(($ac_try" in
12457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12458 *) ac_try_echo=$ac_try;;
12459 esac
12460 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12461 (eval "$ac_try") 2>&5
12462 ac_status=$?
12463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12464 (exit $ac_status); }; }; then
12465 ac_cv_sizeof__Bool=`cat conftest.val`
12466 else
12467 echo "$as_me: program exited with status $ac_status" >&5
12468 echo "$as_me: failed program was:" >&5
12469 sed 's/^/| /' conftest.$ac_ext >&5
12471 ( exit $ac_status )
12472 if test "$ac_cv_type__Bool" = yes; then
12473 { { echo "$as_me:$LINENO: error: cannot compute sizeof (_Bool)
12474 See \`config.log' for more details." >&5
12475 echo "$as_me: error: cannot compute sizeof (_Bool)
12476 See \`config.log' for more details." >&2;}
12477 { (exit 77); exit 77; }; }
12478 else
12479 ac_cv_sizeof__Bool=0
12482 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12484 rm -f conftest.val
12486 { echo "$as_me:$LINENO: result: $ac_cv_sizeof__Bool" >&5
12487 echo "${ECHO_T}$ac_cv_sizeof__Bool" >&6; }
12491 cat >>confdefs.h <<_ACEOF
12492 #define SIZEOF__BOOL $ac_cv_sizeof__Bool
12493 _ACEOF
12498 { echo "$as_me:$LINENO: checking for uintptr_t" >&5
12499 echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6; }
12500 if test "${ac_cv_type_uintptr_t+set}" = set; then
12501 echo $ECHO_N "(cached) $ECHO_C" >&6
12502 else
12503 cat >conftest.$ac_ext <<_ACEOF
12504 /* confdefs.h. */
12505 _ACEOF
12506 cat confdefs.h >>conftest.$ac_ext
12507 cat >>conftest.$ac_ext <<_ACEOF
12508 /* end confdefs.h. */
12509 #ifdef HAVE_STDINT_H
12510 #include <stdint.h>
12511 #endif
12513 typedef uintptr_t ac__type_new_;
12515 main ()
12517 if ((ac__type_new_ *) 0)
12518 return 0;
12519 if (sizeof (ac__type_new_))
12520 return 0;
12522 return 0;
12524 _ACEOF
12525 rm -f conftest.$ac_objext
12526 if { (ac_try="$ac_compile"
12527 case "(($ac_try" in
12528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12529 *) ac_try_echo=$ac_try;;
12530 esac
12531 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12532 (eval "$ac_compile") 2>conftest.er1
12533 ac_status=$?
12534 grep -v '^ *+' conftest.er1 >conftest.err
12535 rm -f conftest.er1
12536 cat conftest.err >&5
12537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12538 (exit $ac_status); } && {
12539 test -z "$ac_c_werror_flag" ||
12540 test ! -s conftest.err
12541 } && test -s conftest.$ac_objext; then
12542 ac_cv_type_uintptr_t=yes
12543 else
12544 echo "$as_me: failed program was:" >&5
12545 sed 's/^/| /' conftest.$ac_ext >&5
12547 ac_cv_type_uintptr_t=no
12550 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12552 { echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
12553 echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6; }
12554 if test $ac_cv_type_uintptr_t = yes; then
12556 cat >>confdefs.h <<_ACEOF
12557 #define HAVE_UINTPTR_T 1
12558 _ACEOF
12560 { echo "$as_me:$LINENO: checking for uintptr_t" >&5
12561 echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6; }
12562 if test "${ac_cv_type_uintptr_t+set}" = set; then
12563 echo $ECHO_N "(cached) $ECHO_C" >&6
12564 else
12565 cat >conftest.$ac_ext <<_ACEOF
12566 /* confdefs.h. */
12567 _ACEOF
12568 cat confdefs.h >>conftest.$ac_ext
12569 cat >>conftest.$ac_ext <<_ACEOF
12570 /* end confdefs.h. */
12571 $ac_includes_default
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; }
12614 # The cast to long int works around a bug in the HP C Compiler
12615 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12616 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12617 # This bug is HP SR number 8606223364.
12618 { echo "$as_me:$LINENO: checking size of uintptr_t" >&5
12619 echo $ECHO_N "checking size of uintptr_t... $ECHO_C" >&6; }
12620 if test "${ac_cv_sizeof_uintptr_t+set}" = set; then
12621 echo $ECHO_N "(cached) $ECHO_C" >&6
12622 else
12623 if test "$cross_compiling" = yes; then
12624 # Depending upon the size, compute the lo and hi bounds.
12625 cat >conftest.$ac_ext <<_ACEOF
12626 /* confdefs.h. */
12627 _ACEOF
12628 cat confdefs.h >>conftest.$ac_ext
12629 cat >>conftest.$ac_ext <<_ACEOF
12630 /* end confdefs.h. */
12631 $ac_includes_default
12632 typedef uintptr_t ac__type_sizeof_;
12634 main ()
12636 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
12637 test_array [0] = 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_lo=0 ac_mid=0
12661 while :; do
12662 cat >conftest.$ac_ext <<_ACEOF
12663 /* confdefs.h. */
12664 _ACEOF
12665 cat confdefs.h >>conftest.$ac_ext
12666 cat >>conftest.$ac_ext <<_ACEOF
12667 /* end confdefs.h. */
12668 $ac_includes_default
12669 typedef uintptr_t ac__type_sizeof_;
12671 main ()
12673 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
12674 test_array [0] = 0
12677 return 0;
12679 _ACEOF
12680 rm -f conftest.$ac_objext
12681 if { (ac_try="$ac_compile"
12682 case "(($ac_try" in
12683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12684 *) ac_try_echo=$ac_try;;
12685 esac
12686 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12687 (eval "$ac_compile") 2>conftest.er1
12688 ac_status=$?
12689 grep -v '^ *+' conftest.er1 >conftest.err
12690 rm -f conftest.er1
12691 cat conftest.err >&5
12692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12693 (exit $ac_status); } && {
12694 test -z "$ac_c_werror_flag" ||
12695 test ! -s conftest.err
12696 } && test -s conftest.$ac_objext; then
12697 ac_hi=$ac_mid; break
12698 else
12699 echo "$as_me: failed program was:" >&5
12700 sed 's/^/| /' conftest.$ac_ext >&5
12702 ac_lo=`expr $ac_mid + 1`
12703 if test $ac_lo -le $ac_mid; then
12704 ac_lo= ac_hi=
12705 break
12707 ac_mid=`expr 2 '*' $ac_mid + 1`
12710 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12711 done
12712 else
12713 echo "$as_me: failed program was:" >&5
12714 sed 's/^/| /' conftest.$ac_ext >&5
12716 cat >conftest.$ac_ext <<_ACEOF
12717 /* confdefs.h. */
12718 _ACEOF
12719 cat confdefs.h >>conftest.$ac_ext
12720 cat >>conftest.$ac_ext <<_ACEOF
12721 /* end confdefs.h. */
12722 $ac_includes_default
12723 typedef uintptr_t ac__type_sizeof_;
12725 main ()
12727 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
12728 test_array [0] = 0
12731 return 0;
12733 _ACEOF
12734 rm -f conftest.$ac_objext
12735 if { (ac_try="$ac_compile"
12736 case "(($ac_try" in
12737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12738 *) ac_try_echo=$ac_try;;
12739 esac
12740 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12741 (eval "$ac_compile") 2>conftest.er1
12742 ac_status=$?
12743 grep -v '^ *+' conftest.er1 >conftest.err
12744 rm -f conftest.er1
12745 cat conftest.err >&5
12746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12747 (exit $ac_status); } && {
12748 test -z "$ac_c_werror_flag" ||
12749 test ! -s conftest.err
12750 } && test -s conftest.$ac_objext; then
12751 ac_hi=-1 ac_mid=-1
12752 while :; do
12753 cat >conftest.$ac_ext <<_ACEOF
12754 /* confdefs.h. */
12755 _ACEOF
12756 cat confdefs.h >>conftest.$ac_ext
12757 cat >>conftest.$ac_ext <<_ACEOF
12758 /* end confdefs.h. */
12759 $ac_includes_default
12760 typedef uintptr_t ac__type_sizeof_;
12762 main ()
12764 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
12765 test_array [0] = 0
12768 return 0;
12770 _ACEOF
12771 rm -f conftest.$ac_objext
12772 if { (ac_try="$ac_compile"
12773 case "(($ac_try" in
12774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12775 *) ac_try_echo=$ac_try;;
12776 esac
12777 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12778 (eval "$ac_compile") 2>conftest.er1
12779 ac_status=$?
12780 grep -v '^ *+' conftest.er1 >conftest.err
12781 rm -f conftest.er1
12782 cat conftest.err >&5
12783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12784 (exit $ac_status); } && {
12785 test -z "$ac_c_werror_flag" ||
12786 test ! -s conftest.err
12787 } && test -s conftest.$ac_objext; then
12788 ac_lo=$ac_mid; break
12789 else
12790 echo "$as_me: failed program was:" >&5
12791 sed 's/^/| /' conftest.$ac_ext >&5
12793 ac_hi=`expr '(' $ac_mid ')' - 1`
12794 if test $ac_mid -le $ac_hi; then
12795 ac_lo= ac_hi=
12796 break
12798 ac_mid=`expr 2 '*' $ac_mid`
12801 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12802 done
12803 else
12804 echo "$as_me: failed program was:" >&5
12805 sed 's/^/| /' conftest.$ac_ext >&5
12807 ac_lo= ac_hi=
12810 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12813 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12814 # Binary search between lo and hi bounds.
12815 while test "x$ac_lo" != "x$ac_hi"; do
12816 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12817 cat >conftest.$ac_ext <<_ACEOF
12818 /* confdefs.h. */
12819 _ACEOF
12820 cat confdefs.h >>conftest.$ac_ext
12821 cat >>conftest.$ac_ext <<_ACEOF
12822 /* end confdefs.h. */
12823 $ac_includes_default
12824 typedef uintptr_t ac__type_sizeof_;
12826 main ()
12828 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
12829 test_array [0] = 0
12832 return 0;
12834 _ACEOF
12835 rm -f conftest.$ac_objext
12836 if { (ac_try="$ac_compile"
12837 case "(($ac_try" in
12838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12839 *) ac_try_echo=$ac_try;;
12840 esac
12841 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12842 (eval "$ac_compile") 2>conftest.er1
12843 ac_status=$?
12844 grep -v '^ *+' conftest.er1 >conftest.err
12845 rm -f conftest.er1
12846 cat conftest.err >&5
12847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12848 (exit $ac_status); } && {
12849 test -z "$ac_c_werror_flag" ||
12850 test ! -s conftest.err
12851 } && test -s conftest.$ac_objext; then
12852 ac_hi=$ac_mid
12853 else
12854 echo "$as_me: failed program was:" >&5
12855 sed 's/^/| /' conftest.$ac_ext >&5
12857 ac_lo=`expr '(' $ac_mid ')' + 1`
12860 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12861 done
12862 case $ac_lo in
12863 ?*) ac_cv_sizeof_uintptr_t=$ac_lo;;
12864 '') if test "$ac_cv_type_uintptr_t" = yes; then
12865 { { echo "$as_me:$LINENO: error: cannot compute sizeof (uintptr_t)
12866 See \`config.log' for more details." >&5
12867 echo "$as_me: error: cannot compute sizeof (uintptr_t)
12868 See \`config.log' for more details." >&2;}
12869 { (exit 77); exit 77; }; }
12870 else
12871 ac_cv_sizeof_uintptr_t=0
12872 fi ;;
12873 esac
12874 else
12875 cat >conftest.$ac_ext <<_ACEOF
12876 /* confdefs.h. */
12877 _ACEOF
12878 cat confdefs.h >>conftest.$ac_ext
12879 cat >>conftest.$ac_ext <<_ACEOF
12880 /* end confdefs.h. */
12881 $ac_includes_default
12882 typedef uintptr_t ac__type_sizeof_;
12883 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
12884 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
12885 #include <stdio.h>
12886 #include <stdlib.h>
12888 main ()
12891 FILE *f = fopen ("conftest.val", "w");
12892 if (! f)
12893 return 1;
12894 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
12896 long int i = longval ();
12897 if (i != ((long int) (sizeof (ac__type_sizeof_))))
12898 return 1;
12899 fprintf (f, "%ld\n", i);
12901 else
12903 unsigned long int i = ulongval ();
12904 if (i != ((long int) (sizeof (ac__type_sizeof_))))
12905 return 1;
12906 fprintf (f, "%lu\n", i);
12908 return ferror (f) || fclose (f) != 0;
12911 return 0;
12913 _ACEOF
12914 rm -f conftest$ac_exeext
12915 if { (ac_try="$ac_link"
12916 case "(($ac_try" in
12917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12918 *) ac_try_echo=$ac_try;;
12919 esac
12920 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12921 (eval "$ac_link") 2>&5
12922 ac_status=$?
12923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12924 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12925 { (case "(($ac_try" in
12926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12927 *) ac_try_echo=$ac_try;;
12928 esac
12929 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12930 (eval "$ac_try") 2>&5
12931 ac_status=$?
12932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12933 (exit $ac_status); }; }; then
12934 ac_cv_sizeof_uintptr_t=`cat conftest.val`
12935 else
12936 echo "$as_me: program exited with status $ac_status" >&5
12937 echo "$as_me: failed program was:" >&5
12938 sed 's/^/| /' conftest.$ac_ext >&5
12940 ( exit $ac_status )
12941 if test "$ac_cv_type_uintptr_t" = yes; then
12942 { { echo "$as_me:$LINENO: error: cannot compute sizeof (uintptr_t)
12943 See \`config.log' for more details." >&5
12944 echo "$as_me: error: cannot compute sizeof (uintptr_t)
12945 See \`config.log' for more details." >&2;}
12946 { (exit 77); exit 77; }; }
12947 else
12948 ac_cv_sizeof_uintptr_t=0
12951 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12953 rm -f conftest.val
12955 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_uintptr_t" >&5
12956 echo "${ECHO_T}$ac_cv_sizeof_uintptr_t" >&6; }
12960 cat >>confdefs.h <<_ACEOF
12961 #define SIZEOF_UINTPTR_T $ac_cv_sizeof_uintptr_t
12962 _ACEOF
12969 # Hmph. AC_CHECK_SIZEOF() doesn't include <sys/types.h>.
12970 { echo "$as_me:$LINENO: checking size of off_t" >&5
12971 echo $ECHO_N "checking size of off_t... $ECHO_C" >&6; }
12972 if test "${ac_cv_sizeof_off_t+set}" = set; then
12973 echo $ECHO_N "(cached) $ECHO_C" >&6
12974 else
12975 if test "$cross_compiling" = yes; then
12976 ac_cv_sizeof_off_t=4
12977 else
12978 cat >conftest.$ac_ext <<_ACEOF
12979 /* confdefs.h. */
12980 _ACEOF
12981 cat confdefs.h >>conftest.$ac_ext
12982 cat >>conftest.$ac_ext <<_ACEOF
12983 /* end confdefs.h. */
12984 #include <stdio.h>
12985 #include <sys/types.h>
12986 main()
12988 FILE *f=fopen("conftestval", "w");
12989 if (!f) exit(1);
12990 fprintf(f, "%d\n", sizeof(off_t));
12991 exit(0);
12993 _ACEOF
12994 rm -f conftest$ac_exeext
12995 if { (ac_try="$ac_link"
12996 case "(($ac_try" in
12997 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12998 *) ac_try_echo=$ac_try;;
12999 esac
13000 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13001 (eval "$ac_link") 2>&5
13002 ac_status=$?
13003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13004 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13005 { (case "(($ac_try" in
13006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13007 *) ac_try_echo=$ac_try;;
13008 esac
13009 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13010 (eval "$ac_try") 2>&5
13011 ac_status=$?
13012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13013 (exit $ac_status); }; }; then
13014 ac_cv_sizeof_off_t=`cat conftestval`
13015 else
13016 echo "$as_me: program exited with status $ac_status" >&5
13017 echo "$as_me: failed program was:" >&5
13018 sed 's/^/| /' conftest.$ac_ext >&5
13020 ( exit $ac_status )
13021 ac_cv_sizeof_off_t=0
13023 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13030 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_off_t" >&5
13031 echo "${ECHO_T}$ac_cv_sizeof_off_t" >&6; }
13033 cat >>confdefs.h <<_ACEOF
13034 #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
13035 _ACEOF
13038 { echo "$as_me:$LINENO: checking whether to enable large file support" >&5
13039 echo $ECHO_N "checking whether to enable large file support... $ECHO_C" >&6; }
13040 if test "$have_long_long" = yes -a \
13041 "$ac_cv_sizeof_off_t" -gt "$ac_cv_sizeof_long" -a \
13042 "$ac_cv_sizeof_long_long" -ge "$ac_cv_sizeof_off_t"; then
13044 cat >>confdefs.h <<\_ACEOF
13045 #define HAVE_LARGEFILE_SUPPORT 1
13046 _ACEOF
13048 { echo "$as_me:$LINENO: result: yes" >&5
13049 echo "${ECHO_T}yes" >&6; }
13050 else
13051 { echo "$as_me:$LINENO: result: no" >&5
13052 echo "${ECHO_T}no" >&6; }
13055 # AC_CHECK_SIZEOF() doesn't include <time.h>.
13056 { echo "$as_me:$LINENO: checking size of time_t" >&5
13057 echo $ECHO_N "checking size of time_t... $ECHO_C" >&6; }
13058 if test "${ac_cv_sizeof_time_t+set}" = set; then
13059 echo $ECHO_N "(cached) $ECHO_C" >&6
13060 else
13061 if test "$cross_compiling" = yes; then
13062 ac_cv_sizeof_time_t=4
13063 else
13064 cat >conftest.$ac_ext <<_ACEOF
13065 /* confdefs.h. */
13066 _ACEOF
13067 cat confdefs.h >>conftest.$ac_ext
13068 cat >>conftest.$ac_ext <<_ACEOF
13069 /* end confdefs.h. */
13070 #include <stdio.h>
13071 #include <time.h>
13072 main()
13074 FILE *f=fopen("conftestval", "w");
13075 if (!f) exit(1);
13076 fprintf(f, "%d\n", sizeof(time_t));
13077 exit(0);
13079 _ACEOF
13080 rm -f conftest$ac_exeext
13081 if { (ac_try="$ac_link"
13082 case "(($ac_try" in
13083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13084 *) ac_try_echo=$ac_try;;
13085 esac
13086 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13087 (eval "$ac_link") 2>&5
13088 ac_status=$?
13089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13090 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13091 { (case "(($ac_try" in
13092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13093 *) ac_try_echo=$ac_try;;
13094 esac
13095 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13096 (eval "$ac_try") 2>&5
13097 ac_status=$?
13098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13099 (exit $ac_status); }; }; then
13100 ac_cv_sizeof_time_t=`cat conftestval`
13101 else
13102 echo "$as_me: program exited with status $ac_status" >&5
13103 echo "$as_me: failed program was:" >&5
13104 sed 's/^/| /' conftest.$ac_ext >&5
13106 ( exit $ac_status )
13107 ac_cv_sizeof_time_t=0
13109 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13116 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_time_t" >&5
13117 echo "${ECHO_T}$ac_cv_sizeof_time_t" >&6; }
13119 cat >>confdefs.h <<_ACEOF
13120 #define SIZEOF_TIME_T $ac_cv_sizeof_time_t
13121 _ACEOF
13125 # if have pthread_t then define SIZEOF_PTHREAD_T
13126 ac_save_cc="$CC"
13127 if test "$ac_cv_kpthread" = "yes"
13128 then CC="$CC -Kpthread"
13129 elif test "$ac_cv_kthread" = "yes"
13130 then CC="$CC -Kthread"
13131 elif test "$ac_cv_pthread" = "yes"
13132 then CC="$CC -pthread"
13134 { echo "$as_me:$LINENO: checking for pthread_t" >&5
13135 echo $ECHO_N "checking for pthread_t... $ECHO_C" >&6; }
13136 have_pthread_t=no
13137 cat >conftest.$ac_ext <<_ACEOF
13138 /* confdefs.h. */
13139 _ACEOF
13140 cat confdefs.h >>conftest.$ac_ext
13141 cat >>conftest.$ac_ext <<_ACEOF
13142 /* end confdefs.h. */
13143 #include <pthread.h>
13145 main ()
13147 pthread_t x; x = *(pthread_t*)0;
13149 return 0;
13151 _ACEOF
13152 rm -f conftest.$ac_objext
13153 if { (ac_try="$ac_compile"
13154 case "(($ac_try" in
13155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13156 *) ac_try_echo=$ac_try;;
13157 esac
13158 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13159 (eval "$ac_compile") 2>conftest.er1
13160 ac_status=$?
13161 grep -v '^ *+' conftest.er1 >conftest.err
13162 rm -f conftest.er1
13163 cat conftest.err >&5
13164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13165 (exit $ac_status); } && {
13166 test -z "$ac_c_werror_flag" ||
13167 test ! -s conftest.err
13168 } && test -s conftest.$ac_objext; then
13169 have_pthread_t=yes
13170 else
13171 echo "$as_me: failed program was:" >&5
13172 sed 's/^/| /' conftest.$ac_ext >&5
13177 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13178 { echo "$as_me:$LINENO: result: $have_pthread_t" >&5
13179 echo "${ECHO_T}$have_pthread_t" >&6; }
13180 if test "$have_pthread_t" = yes ; then
13181 # AC_CHECK_SIZEOF() doesn't include <pthread.h>.
13182 { echo "$as_me:$LINENO: checking size of pthread_t" >&5
13183 echo $ECHO_N "checking size of pthread_t... $ECHO_C" >&6; }
13184 if test "${ac_cv_sizeof_pthread_t+set}" = set; then
13185 echo $ECHO_N "(cached) $ECHO_C" >&6
13186 else
13187 if test "$cross_compiling" = yes; then
13188 ac_cv_sizeof_pthread_t=4
13189 else
13190 cat >conftest.$ac_ext <<_ACEOF
13191 /* confdefs.h. */
13192 _ACEOF
13193 cat confdefs.h >>conftest.$ac_ext
13194 cat >>conftest.$ac_ext <<_ACEOF
13195 /* end confdefs.h. */
13196 #include <stdio.h>
13197 #include <pthread.h>
13198 main()
13200 FILE *f=fopen("conftestval", "w");
13201 if (!f) exit(1);
13202 fprintf(f, "%d\n", sizeof(pthread_t));
13203 exit(0);
13205 _ACEOF
13206 rm -f conftest$ac_exeext
13207 if { (ac_try="$ac_link"
13208 case "(($ac_try" in
13209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13210 *) ac_try_echo=$ac_try;;
13211 esac
13212 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13213 (eval "$ac_link") 2>&5
13214 ac_status=$?
13215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13216 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13217 { (case "(($ac_try" in
13218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13219 *) ac_try_echo=$ac_try;;
13220 esac
13221 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13222 (eval "$ac_try") 2>&5
13223 ac_status=$?
13224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13225 (exit $ac_status); }; }; then
13226 ac_cv_sizeof_pthread_t=`cat conftestval`
13227 else
13228 echo "$as_me: program exited with status $ac_status" >&5
13229 echo "$as_me: failed program was:" >&5
13230 sed 's/^/| /' conftest.$ac_ext >&5
13232 ( exit $ac_status )
13233 ac_cv_sizeof_pthread_t=0
13235 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13242 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_pthread_t" >&5
13243 echo "${ECHO_T}$ac_cv_sizeof_pthread_t" >&6; }
13245 cat >>confdefs.h <<_ACEOF
13246 #define SIZEOF_PTHREAD_T $ac_cv_sizeof_pthread_t
13247 _ACEOF
13250 CC="$ac_save_cc"
13252 { echo "$as_me:$LINENO: checking for --enable-toolbox-glue" >&5
13253 echo $ECHO_N "checking for --enable-toolbox-glue... $ECHO_C" >&6; }
13254 # Check whether --enable-toolbox-glue was given.
13255 if test "${enable_toolbox_glue+set}" = set; then
13256 enableval=$enable_toolbox_glue;
13260 if test -z "$enable_toolbox_glue"
13261 then
13262 case $ac_sys_system/$ac_sys_release in
13263 Darwin/*)
13264 enable_toolbox_glue="yes";;
13266 enable_toolbox_glue="no";;
13267 esac
13269 case "$enable_toolbox_glue" in
13270 yes)
13271 extra_machdep_objs="Python/mactoolboxglue.o"
13272 extra_undefs="-u _PyMac_Error"
13274 cat >>confdefs.h <<\_ACEOF
13275 #define USE_TOOLBOX_OBJECT_GLUE 1
13276 _ACEOF
13280 extra_machdep_objs=""
13281 extra_undefs=""
13283 esac
13284 { echo "$as_me:$LINENO: result: $enable_toolbox_glue" >&5
13285 echo "${ECHO_T}$enable_toolbox_glue" >&6; }
13289 case $ac_sys_system/$ac_sys_release in
13290 Darwin/[01567]\..*)
13291 OTHER_LIBTOOL_OPT="-prebind -seg1addr 0x10000000"
13293 Darwin/*)
13294 OTHER_LIBTOOL_OPT=""
13296 esac
13299 case $ac_sys_system/$ac_sys_release in
13300 Darwin/[01567]\..*)
13301 LIBTOOL_CRUFT="-framework System -lcc_dynamic"
13302 if test "${enable_universalsdk}"; then
13304 else
13305 LIBTOOL_CRUFT="${LIBTOOL_CRUFT} -arch_only `arch`"
13307 LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -install_name $(PYTHONFRAMEWORKINSTALLDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
13308 LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -compatibility_version $(VERSION) -current_version $(VERSION)';;
13309 Darwin/*)
13310 gcc_version=`gcc -v 2>&1 | grep version | cut -d\ -f3`
13311 if test ${gcc_version} '<' 4.0
13312 then
13313 LIBTOOL_CRUFT="-lcc_dynamic"
13314 else
13315 LIBTOOL_CRUFT=""
13317 LIBTOOL_CRUFT=$LIBTOOL_CRUFT" -lSystem -lSystemStubs -arch_only `arch`"
13318 LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -install_name $(PYTHONFRAMEWORKINSTALLDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
13319 LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -compatibility_version $(VERSION) -current_version $(VERSION)';;
13320 esac
13322 { echo "$as_me:$LINENO: checking for --enable-framework" >&5
13323 echo $ECHO_N "checking for --enable-framework... $ECHO_C" >&6; }
13324 if test "$enable_framework"
13325 then
13326 BASECFLAGS="$BASECFLAGS -fno-common -dynamic"
13327 # -F. is needed to allow linking to the framework while
13328 # in the build location.
13330 cat >>confdefs.h <<\_ACEOF
13331 #define WITH_NEXT_FRAMEWORK 1
13332 _ACEOF
13334 { echo "$as_me:$LINENO: result: yes" >&5
13335 echo "${ECHO_T}yes" >&6; }
13336 else
13337 { echo "$as_me:$LINENO: result: no" >&5
13338 echo "${ECHO_T}no" >&6; }
13341 { echo "$as_me:$LINENO: checking for dyld" >&5
13342 echo $ECHO_N "checking for dyld... $ECHO_C" >&6; }
13343 case $ac_sys_system/$ac_sys_release in
13344 Darwin/*)
13346 cat >>confdefs.h <<\_ACEOF
13347 #define WITH_DYLD 1
13348 _ACEOF
13350 { echo "$as_me:$LINENO: result: always on for Darwin" >&5
13351 echo "${ECHO_T}always on for Darwin" >&6; }
13354 { echo "$as_me:$LINENO: result: no" >&5
13355 echo "${ECHO_T}no" >&6; }
13357 esac
13359 # Set info about shared libraries.
13365 # SO is the extension of shared libraries `(including the dot!)
13366 # -- usually .so, .sl on HP-UX, .dll on Cygwin
13367 { echo "$as_me:$LINENO: checking SO" >&5
13368 echo $ECHO_N "checking SO... $ECHO_C" >&6; }
13369 if test -z "$SO"
13370 then
13371 case $ac_sys_system in
13372 hp*|HP*)
13373 case `uname -m` in
13374 ia64) SO=.so;;
13375 *) SO=.sl;;
13376 esac
13378 CYGWIN*) SO=.dll;;
13379 *) SO=.so;;
13380 esac
13381 else
13382 # this might also be a termcap variable, see #610332
13383 echo
13384 echo '====================================================================='
13385 echo '+ +'
13386 echo '+ WARNING: You have set SO in your environment. +'
13387 echo '+ Do you really mean to change the extension for shared libraries? +'
13388 echo '+ Continuing in 10 seconds to let you to ponder. +'
13389 echo '+ +'
13390 echo '====================================================================='
13391 sleep 10
13393 { echo "$as_me:$LINENO: result: $SO" >&5
13394 echo "${ECHO_T}$SO" >&6; }
13397 cat >>confdefs.h <<_ACEOF
13398 #define SHLIB_EXT "$SO"
13399 _ACEOF
13401 # LDSHARED is the ld *command* used to create shared library
13402 # -- "cc -G" on SunOS 5.x, "ld -shared" on IRIX 5
13403 # (Shared libraries in this instance are shared modules to be loaded into
13404 # Python, as opposed to building Python itself as a shared library.)
13405 { echo "$as_me:$LINENO: checking LDSHARED" >&5
13406 echo $ECHO_N "checking LDSHARED... $ECHO_C" >&6; }
13407 if test -z "$LDSHARED"
13408 then
13409 case $ac_sys_system/$ac_sys_release in
13410 AIX*)
13411 BLDSHARED="\$(srcdir)/Modules/ld_so_aix \$(CC) -bI:Modules/python.exp"
13412 LDSHARED="\$(BINLIBDEST)/config/ld_so_aix \$(CC) -bI:\$(BINLIBDEST)/config/python.exp"
13414 BeOS*)
13415 BLDSHARED="\$(srcdir)/Modules/ld_so_beos $LDLIBRARY"
13416 LDSHARED="\$(BINLIBDEST)/config/ld_so_beos \$(LIBDIR)/$LDLIBRARY"
13418 IRIX/5*) LDSHARED="ld -shared";;
13419 IRIX*/6*) LDSHARED="ld ${SGI_ABI} -shared -all";;
13420 SunOS/5*)
13421 if test "$GCC" = "yes"
13422 then LDSHARED='$(CC) -shared'
13423 else LDSHARED='$(CC) -G';
13424 fi ;;
13425 hp*|HP*)
13426 if test "$GCC" = "yes"
13427 then LDSHARED='$(CC) -shared'
13428 else LDSHARED='ld -b';
13429 fi ;;
13430 OSF*) LDSHARED="ld -shared -expect_unresolved \"*\"";;
13431 Darwin/1.3*)
13432 LDSHARED='$(CC) $(LDFLAGS) -bundle'
13433 if test "$enable_framework" ; then
13434 # Link against the framework. All externals should be defined.
13435 BLDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
13436 LDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
13437 else
13438 # No framework. Ignore undefined symbols, assuming they come from Python
13439 LDSHARED="$LDSHARED -undefined suppress"
13440 fi ;;
13441 Darwin/1.4*|Darwin/5.*|Darwin/6.*)
13442 LDSHARED='$(CC) $(LDFLAGS) -bundle'
13443 if test "$enable_framework" ; then
13444 # Link against the framework. All externals should be defined.
13445 BLDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
13446 LDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
13447 else
13448 # No framework, use the Python app as bundle-loader
13449 BLDSHARED="$LDSHARED "'-bundle_loader $(BUILDPYTHON)'
13450 LDSHARED="$LDSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)'
13451 fi ;;
13452 Darwin/*)
13453 # Use -undefined dynamic_lookup whenever possible (10.3 and later).
13454 # This allows an extension to be used in any Python
13456 if test ${MACOSX_DEPLOYMENT_TARGET} '>' 10.2
13457 then
13458 if test "${enable_universalsdk}"; then
13459 LDFLAGS="${UNIVERSAL_ARCH_FLAGS} -isysroot ${UNIVERSALSDK} ${LDFLAGS}"
13461 LDSHARED='$(CC) $(LDFLAGS) -bundle -undefined dynamic_lookup'
13462 BLDSHARED="$LDSHARED"
13463 else
13464 LDSHARED='$(CC) $(LDFLAGS) -bundle'
13465 if test "$enable_framework" ; then
13466 # Link against the framework. All externals should be defined.
13467 BLDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
13468 LDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
13469 else
13470 # No framework, use the Python app as bundle-loader
13471 BLDSHARED="$LDSHARED "'-bundle_loader $(BUILDPYTHON)'
13472 LDSHARED="$LDSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)'
13476 Linux*|GNU*|QNX*) LDSHARED='$(CC) -shared';;
13477 BSD/OS*/4*) LDSHARED="gcc -shared";;
13478 FreeBSD*)
13479 if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]
13480 then
13481 LDSHARED="$CC -shared ${LDFLAGS}"
13482 else
13483 LDSHARED="ld -Bshareable ${LDFLAGS}"
13484 fi;;
13485 OpenBSD*)
13486 if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]
13487 then
13488 LDSHARED='$(CC) -shared $(CCSHARED) ${LDFLAGS}'
13489 else
13490 case `uname -r` in
13491 [01].* | 2.[0-7] | 2.[0-7].*)
13492 LDSHARED="ld -Bshareable ${LDFLAGS}"
13495 LDSHARED='$(CC) -shared $(CCSHARED) ${LDFLAGS}'
13497 esac
13498 fi;;
13499 NetBSD*|DragonFly*) LDSHARED="cc -shared ${LDFLAGS}";;
13500 OpenUNIX*|UnixWare*)
13501 if test "$GCC" = "yes"
13502 then LDSHARED='$(CC) -shared'
13503 else LDSHARED='$(CC) -G'
13504 fi;;
13505 SCO_SV*) LDSHARED='$(CC) -Wl,-G,-Bexport';;
13506 Monterey*) LDSHARED="cc -G -dy -Bdynamic -Bexport -L/usr/lib/ia64l64";;
13507 CYGWIN*) LDSHARED="gcc -shared -Wl,--enable-auto-image-base";;
13508 atheos*) LDSHARED="gcc -shared";;
13509 *) LDSHARED="ld";;
13510 esac
13512 { echo "$as_me:$LINENO: result: $LDSHARED" >&5
13513 echo "${ECHO_T}$LDSHARED" >&6; }
13514 BLDSHARED=${BLDSHARED-$LDSHARED}
13515 # CCSHARED are the C *flags* used to create objects to go into a shared
13516 # library (module) -- this is only needed for a few systems
13517 { echo "$as_me:$LINENO: checking CCSHARED" >&5
13518 echo $ECHO_N "checking CCSHARED... $ECHO_C" >&6; }
13519 if test -z "$CCSHARED"
13520 then
13521 case $ac_sys_system/$ac_sys_release in
13522 SunOS*) if test "$GCC" = yes;
13523 then CCSHARED="-fPIC";
13524 elif test `uname -p` = sparc;
13525 then CCSHARED="-xcode=pic32";
13526 else CCSHARED="-Kpic";
13527 fi;;
13528 hp*|HP*) if test "$GCC" = yes;
13529 then CCSHARED="-fPIC";
13530 else CCSHARED="+z";
13531 fi;;
13532 Linux*|GNU*) CCSHARED="-fPIC";;
13533 BSD/OS*/4*) CCSHARED="-fpic";;
13534 FreeBSD*|NetBSD*|OpenBSD*|DragonFly*) CCSHARED="-fPIC";;
13535 OpenUNIX*|UnixWare*)
13536 if test "$GCC" = "yes"
13537 then CCSHARED="-fPIC"
13538 else CCSHARED="-KPIC"
13539 fi;;
13540 SCO_SV*)
13541 if test "$GCC" = "yes"
13542 then CCSHARED="-fPIC"
13543 else CCSHARED="-Kpic -belf"
13544 fi;;
13545 Monterey*) CCSHARED="-G";;
13546 IRIX*/6*) case $CC in
13547 *gcc*) CCSHARED="-shared";;
13548 *) CCSHARED="";;
13549 esac;;
13550 atheos*) CCSHARED="-fPIC";;
13551 esac
13553 { echo "$as_me:$LINENO: result: $CCSHARED" >&5
13554 echo "${ECHO_T}$CCSHARED" >&6; }
13555 # LINKFORSHARED are the flags passed to the $(CC) command that links
13556 # the python executable -- this is only needed for a few systems
13557 { echo "$as_me:$LINENO: checking LINKFORSHARED" >&5
13558 echo $ECHO_N "checking LINKFORSHARED... $ECHO_C" >&6; }
13559 if test -z "$LINKFORSHARED"
13560 then
13561 case $ac_sys_system/$ac_sys_release in
13562 AIX*) LINKFORSHARED='-Wl,-bE:Modules/python.exp -lld';;
13563 hp*|HP*)
13564 LINKFORSHARED="-Wl,-E -Wl,+s";;
13565 # LINKFORSHARED="-Wl,-E -Wl,+s -Wl,+b\$(BINLIBDEST)/lib-dynload";;
13566 BSD/OS/4*) LINKFORSHARED="-Xlinker -export-dynamic";;
13567 Linux*|GNU*) LINKFORSHARED="-Xlinker -export-dynamic";;
13568 # -u libsys_s pulls in all symbols in libsys
13569 Darwin/*)
13570 # -u _PyMac_Error is needed to pull in the mac toolbox glue,
13571 # which is
13572 # not used by the core itself but which needs to be in the core so
13573 # that dynamically loaded extension modules have access to it.
13574 # -prebind is no longer used, because it actually seems to give a
13575 # slowdown in stead of a speedup, maybe due to the large number of
13576 # dynamic loads Python does.
13578 LINKFORSHARED="$extra_undefs"
13579 if test "$enable_framework"
13580 then
13581 LINKFORSHARED="$LINKFORSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
13583 LINKFORSHARED="$LINKFORSHARED";;
13584 OpenUNIX*|UnixWare*) LINKFORSHARED="-Wl,-Bexport";;
13585 SCO_SV*) LINKFORSHARED="-Wl,-Bexport";;
13586 ReliantUNIX*) LINKFORSHARED="-W1 -Blargedynsym";;
13587 FreeBSD*|NetBSD*|OpenBSD*|DragonFly*)
13588 if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]
13589 then
13590 LINKFORSHARED="-Wl,--export-dynamic"
13591 fi;;
13592 SunOS/5*) case $CC in
13593 *gcc*)
13594 if $CC -Xlinker --help 2>&1 | grep export-dynamic >/dev/null
13595 then
13596 LINKFORSHARED="-Xlinker --export-dynamic"
13597 fi;;
13598 esac;;
13599 CYGWIN*)
13600 if test $enable_shared = "no"
13601 then
13602 LINKFORSHARED='-Wl,--out-implib=$(LDLIBRARY)'
13603 fi;;
13604 QNX*)
13605 # -Wl,-E causes the symbols to be added to the dynamic
13606 # symbol table so that they can be found when a module
13607 # is loaded. -N 2048K causes the stack size to be set
13608 # to 2048 kilobytes so that the stack doesn't overflow
13609 # when running test_compile.py.
13610 LINKFORSHARED='-Wl,-E -N 2048K';;
13611 esac
13613 { echo "$as_me:$LINENO: result: $LINKFORSHARED" >&5
13614 echo "${ECHO_T}$LINKFORSHARED" >&6; }
13618 { echo "$as_me:$LINENO: checking CFLAGSFORSHARED" >&5
13619 echo $ECHO_N "checking CFLAGSFORSHARED... $ECHO_C" >&6; }
13620 if test ! "$LIBRARY" = "$LDLIBRARY"
13621 then
13622 case $ac_sys_system in
13623 CYGWIN*)
13624 # Cygwin needs CCSHARED when building extension DLLs
13625 # but not when building the interpreter DLL.
13626 CFLAGSFORSHARED='';;
13628 CFLAGSFORSHARED='$(CCSHARED)'
13629 esac
13631 { echo "$as_me:$LINENO: result: $CFLAGSFORSHARED" >&5
13632 echo "${ECHO_T}$CFLAGSFORSHARED" >&6; }
13634 # SHLIBS are libraries (except -lc and -lm) to link to the python shared
13635 # library (with --enable-shared).
13636 # For platforms on which shared libraries are not allowed to have unresolved
13637 # symbols, this must be set to $(LIBS) (expanded by make). We do this even
13638 # if it is not required, since it creates a dependency of the shared library
13639 # to LIBS. This, in turn, means that applications linking the shared libpython
13640 # don't need to link LIBS explicitly. The default should be only changed
13641 # on systems where this approach causes problems.
13643 { echo "$as_me:$LINENO: checking SHLIBS" >&5
13644 echo $ECHO_N "checking SHLIBS... $ECHO_C" >&6; }
13645 case "$ac_sys_system" in
13647 SHLIBS='$(LIBS)';;
13648 esac
13649 { echo "$as_me:$LINENO: result: $SHLIBS" >&5
13650 echo "${ECHO_T}$SHLIBS" >&6; }
13653 # checks for libraries
13655 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
13656 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
13657 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
13658 echo $ECHO_N "(cached) $ECHO_C" >&6
13659 else
13660 ac_check_lib_save_LIBS=$LIBS
13661 LIBS="-ldl $LIBS"
13662 cat >conftest.$ac_ext <<_ACEOF
13663 /* confdefs.h. */
13664 _ACEOF
13665 cat confdefs.h >>conftest.$ac_ext
13666 cat >>conftest.$ac_ext <<_ACEOF
13667 /* end confdefs.h. */
13669 /* Override any GCC internal prototype to avoid an error.
13670 Use char because int might match the return type of a GCC
13671 builtin and then its argument prototype would still apply. */
13672 #ifdef __cplusplus
13673 extern "C"
13674 #endif
13675 char dlopen ();
13677 main ()
13679 return dlopen ();
13681 return 0;
13683 _ACEOF
13684 rm -f conftest.$ac_objext conftest$ac_exeext
13685 if { (ac_try="$ac_link"
13686 case "(($ac_try" in
13687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13688 *) ac_try_echo=$ac_try;;
13689 esac
13690 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13691 (eval "$ac_link") 2>conftest.er1
13692 ac_status=$?
13693 grep -v '^ *+' conftest.er1 >conftest.err
13694 rm -f conftest.er1
13695 cat conftest.err >&5
13696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13697 (exit $ac_status); } && {
13698 test -z "$ac_c_werror_flag" ||
13699 test ! -s conftest.err
13700 } && test -s conftest$ac_exeext &&
13701 $as_test_x conftest$ac_exeext; then
13702 ac_cv_lib_dl_dlopen=yes
13703 else
13704 echo "$as_me: failed program was:" >&5
13705 sed 's/^/| /' conftest.$ac_ext >&5
13707 ac_cv_lib_dl_dlopen=no
13710 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13711 conftest$ac_exeext conftest.$ac_ext
13712 LIBS=$ac_check_lib_save_LIBS
13714 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
13715 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
13716 if test $ac_cv_lib_dl_dlopen = yes; then
13717 cat >>confdefs.h <<_ACEOF
13718 #define HAVE_LIBDL 1
13719 _ACEOF
13721 LIBS="-ldl $LIBS"
13724 # Dynamic linking for SunOS/Solaris and SYSV
13726 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
13727 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
13728 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
13729 echo $ECHO_N "(cached) $ECHO_C" >&6
13730 else
13731 ac_check_lib_save_LIBS=$LIBS
13732 LIBS="-ldld $LIBS"
13733 cat >conftest.$ac_ext <<_ACEOF
13734 /* confdefs.h. */
13735 _ACEOF
13736 cat confdefs.h >>conftest.$ac_ext
13737 cat >>conftest.$ac_ext <<_ACEOF
13738 /* end confdefs.h. */
13740 /* Override any GCC internal prototype to avoid an error.
13741 Use char because int might match the return type of a GCC
13742 builtin and then its argument prototype would still apply. */
13743 #ifdef __cplusplus
13744 extern "C"
13745 #endif
13746 char shl_load ();
13748 main ()
13750 return shl_load ();
13752 return 0;
13754 _ACEOF
13755 rm -f conftest.$ac_objext conftest$ac_exeext
13756 if { (ac_try="$ac_link"
13757 case "(($ac_try" in
13758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13759 *) ac_try_echo=$ac_try;;
13760 esac
13761 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13762 (eval "$ac_link") 2>conftest.er1
13763 ac_status=$?
13764 grep -v '^ *+' conftest.er1 >conftest.err
13765 rm -f conftest.er1
13766 cat conftest.err >&5
13767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13768 (exit $ac_status); } && {
13769 test -z "$ac_c_werror_flag" ||
13770 test ! -s conftest.err
13771 } && test -s conftest$ac_exeext &&
13772 $as_test_x conftest$ac_exeext; then
13773 ac_cv_lib_dld_shl_load=yes
13774 else
13775 echo "$as_me: failed program was:" >&5
13776 sed 's/^/| /' conftest.$ac_ext >&5
13778 ac_cv_lib_dld_shl_load=no
13781 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13782 conftest$ac_exeext conftest.$ac_ext
13783 LIBS=$ac_check_lib_save_LIBS
13785 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
13786 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
13787 if test $ac_cv_lib_dld_shl_load = yes; then
13788 cat >>confdefs.h <<_ACEOF
13789 #define HAVE_LIBDLD 1
13790 _ACEOF
13792 LIBS="-ldld $LIBS"
13795 # Dynamic linking for HP-UX
13797 # only check for sem_init if thread support is requested
13798 if test "$with_threads" = "yes" -o -z "$with_threads"; then
13799 { echo "$as_me:$LINENO: checking for library containing sem_init" >&5
13800 echo $ECHO_N "checking for library containing sem_init... $ECHO_C" >&6; }
13801 if test "${ac_cv_search_sem_init+set}" = set; then
13802 echo $ECHO_N "(cached) $ECHO_C" >&6
13803 else
13804 ac_func_search_save_LIBS=$LIBS
13805 cat >conftest.$ac_ext <<_ACEOF
13806 /* confdefs.h. */
13807 _ACEOF
13808 cat confdefs.h >>conftest.$ac_ext
13809 cat >>conftest.$ac_ext <<_ACEOF
13810 /* end confdefs.h. */
13812 /* Override any GCC internal prototype to avoid an error.
13813 Use char because int might match the return type of a GCC
13814 builtin and then its argument prototype would still apply. */
13815 #ifdef __cplusplus
13816 extern "C"
13817 #endif
13818 char sem_init ();
13820 main ()
13822 return sem_init ();
13824 return 0;
13826 _ACEOF
13827 for ac_lib in '' pthread rt posix4; do
13828 if test -z "$ac_lib"; then
13829 ac_res="none required"
13830 else
13831 ac_res=-l$ac_lib
13832 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13834 rm -f conftest.$ac_objext conftest$ac_exeext
13835 if { (ac_try="$ac_link"
13836 case "(($ac_try" in
13837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13838 *) ac_try_echo=$ac_try;;
13839 esac
13840 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13841 (eval "$ac_link") 2>conftest.er1
13842 ac_status=$?
13843 grep -v '^ *+' conftest.er1 >conftest.err
13844 rm -f conftest.er1
13845 cat conftest.err >&5
13846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13847 (exit $ac_status); } && {
13848 test -z "$ac_c_werror_flag" ||
13849 test ! -s conftest.err
13850 } && test -s conftest$ac_exeext &&
13851 $as_test_x conftest$ac_exeext; then
13852 ac_cv_search_sem_init=$ac_res
13853 else
13854 echo "$as_me: failed program was:" >&5
13855 sed 's/^/| /' conftest.$ac_ext >&5
13860 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13861 conftest$ac_exeext
13862 if test "${ac_cv_search_sem_init+set}" = set; then
13863 break
13865 done
13866 if test "${ac_cv_search_sem_init+set}" = set; then
13868 else
13869 ac_cv_search_sem_init=no
13871 rm conftest.$ac_ext
13872 LIBS=$ac_func_search_save_LIBS
13874 { echo "$as_me:$LINENO: result: $ac_cv_search_sem_init" >&5
13875 echo "${ECHO_T}$ac_cv_search_sem_init" >&6; }
13876 ac_res=$ac_cv_search_sem_init
13877 if test "$ac_res" != no; then
13878 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13881 # 'Real Time' functions on Solaris
13882 # posix4 on Solaris 2.6
13883 # pthread (first!) on Linux
13886 # check if we need libintl for locale functions
13887 { echo "$as_me:$LINENO: checking for textdomain in -lintl" >&5
13888 echo $ECHO_N "checking for textdomain in -lintl... $ECHO_C" >&6; }
13889 if test "${ac_cv_lib_intl_textdomain+set}" = set; then
13890 echo $ECHO_N "(cached) $ECHO_C" >&6
13891 else
13892 ac_check_lib_save_LIBS=$LIBS
13893 LIBS="-lintl $LIBS"
13894 cat >conftest.$ac_ext <<_ACEOF
13895 /* confdefs.h. */
13896 _ACEOF
13897 cat confdefs.h >>conftest.$ac_ext
13898 cat >>conftest.$ac_ext <<_ACEOF
13899 /* end confdefs.h. */
13901 /* Override any GCC internal prototype to avoid an error.
13902 Use char because int might match the return type of a GCC
13903 builtin and then its argument prototype would still apply. */
13904 #ifdef __cplusplus
13905 extern "C"
13906 #endif
13907 char textdomain ();
13909 main ()
13911 return textdomain ();
13913 return 0;
13915 _ACEOF
13916 rm -f conftest.$ac_objext conftest$ac_exeext
13917 if { (ac_try="$ac_link"
13918 case "(($ac_try" in
13919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13920 *) ac_try_echo=$ac_try;;
13921 esac
13922 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13923 (eval "$ac_link") 2>conftest.er1
13924 ac_status=$?
13925 grep -v '^ *+' conftest.er1 >conftest.err
13926 rm -f conftest.er1
13927 cat conftest.err >&5
13928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13929 (exit $ac_status); } && {
13930 test -z "$ac_c_werror_flag" ||
13931 test ! -s conftest.err
13932 } && test -s conftest$ac_exeext &&
13933 $as_test_x conftest$ac_exeext; then
13934 ac_cv_lib_intl_textdomain=yes
13935 else
13936 echo "$as_me: failed program was:" >&5
13937 sed 's/^/| /' conftest.$ac_ext >&5
13939 ac_cv_lib_intl_textdomain=no
13942 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13943 conftest$ac_exeext conftest.$ac_ext
13944 LIBS=$ac_check_lib_save_LIBS
13946 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_textdomain" >&5
13947 echo "${ECHO_T}$ac_cv_lib_intl_textdomain" >&6; }
13948 if test $ac_cv_lib_intl_textdomain = yes; then
13950 cat >>confdefs.h <<\_ACEOF
13951 #define WITH_LIBINTL 1
13952 _ACEOF
13957 # checks for system dependent C++ extensions support
13958 case "$ac_sys_system" in
13959 AIX*) { echo "$as_me:$LINENO: checking for genuine AIX C++ extensions support" >&5
13960 echo $ECHO_N "checking for genuine AIX C++ extensions support... $ECHO_C" >&6; }
13961 cat >conftest.$ac_ext <<_ACEOF
13962 /* confdefs.h. */
13963 _ACEOF
13964 cat confdefs.h >>conftest.$ac_ext
13965 cat >>conftest.$ac_ext <<_ACEOF
13966 /* end confdefs.h. */
13967 #include "/usr/lpp/xlC/include/load.h"
13969 main ()
13971 loadAndInit("", 0, "")
13973 return 0;
13975 _ACEOF
13976 rm -f conftest.$ac_objext conftest$ac_exeext
13977 if { (ac_try="$ac_link"
13978 case "(($ac_try" in
13979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13980 *) ac_try_echo=$ac_try;;
13981 esac
13982 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13983 (eval "$ac_link") 2>conftest.er1
13984 ac_status=$?
13985 grep -v '^ *+' conftest.er1 >conftest.err
13986 rm -f conftest.er1
13987 cat conftest.err >&5
13988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13989 (exit $ac_status); } && {
13990 test -z "$ac_c_werror_flag" ||
13991 test ! -s conftest.err
13992 } && test -s conftest$ac_exeext &&
13993 $as_test_x conftest$ac_exeext; then
13995 cat >>confdefs.h <<\_ACEOF
13996 #define AIX_GENUINE_CPLUSPLUS 1
13997 _ACEOF
13999 { echo "$as_me:$LINENO: result: yes" >&5
14000 echo "${ECHO_T}yes" >&6; }
14001 else
14002 echo "$as_me: failed program was:" >&5
14003 sed 's/^/| /' conftest.$ac_ext >&5
14005 { echo "$as_me:$LINENO: result: no" >&5
14006 echo "${ECHO_T}no" >&6; }
14009 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14010 conftest$ac_exeext conftest.$ac_ext;;
14011 *) ;;
14012 esac
14014 # Most SVR4 platforms (e.g. Solaris) need -lsocket and -lnsl.
14015 # BeOS' sockets are stashed in libnet.
14016 { echo "$as_me:$LINENO: checking for t_open in -lnsl" >&5
14017 echo $ECHO_N "checking for t_open in -lnsl... $ECHO_C" >&6; }
14018 if test "${ac_cv_lib_nsl_t_open+set}" = set; then
14019 echo $ECHO_N "(cached) $ECHO_C" >&6
14020 else
14021 ac_check_lib_save_LIBS=$LIBS
14022 LIBS="-lnsl $LIBS"
14023 cat >conftest.$ac_ext <<_ACEOF
14024 /* confdefs.h. */
14025 _ACEOF
14026 cat confdefs.h >>conftest.$ac_ext
14027 cat >>conftest.$ac_ext <<_ACEOF
14028 /* end confdefs.h. */
14030 /* Override any GCC internal prototype to avoid an error.
14031 Use char because int might match the return type of a GCC
14032 builtin and then its argument prototype would still apply. */
14033 #ifdef __cplusplus
14034 extern "C"
14035 #endif
14036 char t_open ();
14038 main ()
14040 return t_open ();
14042 return 0;
14044 _ACEOF
14045 rm -f conftest.$ac_objext conftest$ac_exeext
14046 if { (ac_try="$ac_link"
14047 case "(($ac_try" in
14048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14049 *) ac_try_echo=$ac_try;;
14050 esac
14051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14052 (eval "$ac_link") 2>conftest.er1
14053 ac_status=$?
14054 grep -v '^ *+' conftest.er1 >conftest.err
14055 rm -f conftest.er1
14056 cat conftest.err >&5
14057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14058 (exit $ac_status); } && {
14059 test -z "$ac_c_werror_flag" ||
14060 test ! -s conftest.err
14061 } && test -s conftest$ac_exeext &&
14062 $as_test_x conftest$ac_exeext; then
14063 ac_cv_lib_nsl_t_open=yes
14064 else
14065 echo "$as_me: failed program was:" >&5
14066 sed 's/^/| /' conftest.$ac_ext >&5
14068 ac_cv_lib_nsl_t_open=no
14071 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14072 conftest$ac_exeext conftest.$ac_ext
14073 LIBS=$ac_check_lib_save_LIBS
14075 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_t_open" >&5
14076 echo "${ECHO_T}$ac_cv_lib_nsl_t_open" >&6; }
14077 if test $ac_cv_lib_nsl_t_open = yes; then
14078 LIBS="-lnsl $LIBS"
14080 # SVR4
14081 { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
14082 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
14083 if test "${ac_cv_lib_socket_socket+set}" = set; then
14084 echo $ECHO_N "(cached) $ECHO_C" >&6
14085 else
14086 ac_check_lib_save_LIBS=$LIBS
14087 LIBS="-lsocket $LIBS $LIBS"
14088 cat >conftest.$ac_ext <<_ACEOF
14089 /* confdefs.h. */
14090 _ACEOF
14091 cat confdefs.h >>conftest.$ac_ext
14092 cat >>conftest.$ac_ext <<_ACEOF
14093 /* end confdefs.h. */
14095 /* Override any GCC internal prototype to avoid an error.
14096 Use char because int might match the return type of a GCC
14097 builtin and then its argument prototype would still apply. */
14098 #ifdef __cplusplus
14099 extern "C"
14100 #endif
14101 char socket ();
14103 main ()
14105 return socket ();
14107 return 0;
14109 _ACEOF
14110 rm -f conftest.$ac_objext conftest$ac_exeext
14111 if { (ac_try="$ac_link"
14112 case "(($ac_try" in
14113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14114 *) ac_try_echo=$ac_try;;
14115 esac
14116 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14117 (eval "$ac_link") 2>conftest.er1
14118 ac_status=$?
14119 grep -v '^ *+' conftest.er1 >conftest.err
14120 rm -f conftest.er1
14121 cat conftest.err >&5
14122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14123 (exit $ac_status); } && {
14124 test -z "$ac_c_werror_flag" ||
14125 test ! -s conftest.err
14126 } && test -s conftest$ac_exeext &&
14127 $as_test_x conftest$ac_exeext; then
14128 ac_cv_lib_socket_socket=yes
14129 else
14130 echo "$as_me: failed program was:" >&5
14131 sed 's/^/| /' conftest.$ac_ext >&5
14133 ac_cv_lib_socket_socket=no
14136 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14137 conftest$ac_exeext conftest.$ac_ext
14138 LIBS=$ac_check_lib_save_LIBS
14140 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
14141 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; }
14142 if test $ac_cv_lib_socket_socket = yes; then
14143 LIBS="-lsocket $LIBS"
14145 # SVR4 sockets
14147 case "$ac_sys_system" in
14148 BeOS*)
14149 { echo "$as_me:$LINENO: checking for socket in -lnet" >&5
14150 echo $ECHO_N "checking for socket in -lnet... $ECHO_C" >&6; }
14151 if test "${ac_cv_lib_net_socket+set}" = set; then
14152 echo $ECHO_N "(cached) $ECHO_C" >&6
14153 else
14154 ac_check_lib_save_LIBS=$LIBS
14155 LIBS="-lnet $LIBS $LIBS"
14156 cat >conftest.$ac_ext <<_ACEOF
14157 /* confdefs.h. */
14158 _ACEOF
14159 cat confdefs.h >>conftest.$ac_ext
14160 cat >>conftest.$ac_ext <<_ACEOF
14161 /* end confdefs.h. */
14163 /* Override any GCC internal prototype to avoid an error.
14164 Use char because int might match the return type of a GCC
14165 builtin and then its argument prototype would still apply. */
14166 #ifdef __cplusplus
14167 extern "C"
14168 #endif
14169 char socket ();
14171 main ()
14173 return socket ();
14175 return 0;
14177 _ACEOF
14178 rm -f conftest.$ac_objext conftest$ac_exeext
14179 if { (ac_try="$ac_link"
14180 case "(($ac_try" in
14181 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14182 *) ac_try_echo=$ac_try;;
14183 esac
14184 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14185 (eval "$ac_link") 2>conftest.er1
14186 ac_status=$?
14187 grep -v '^ *+' conftest.er1 >conftest.err
14188 rm -f conftest.er1
14189 cat conftest.err >&5
14190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14191 (exit $ac_status); } && {
14192 test -z "$ac_c_werror_flag" ||
14193 test ! -s conftest.err
14194 } && test -s conftest$ac_exeext &&
14195 $as_test_x conftest$ac_exeext; then
14196 ac_cv_lib_net_socket=yes
14197 else
14198 echo "$as_me: failed program was:" >&5
14199 sed 's/^/| /' conftest.$ac_ext >&5
14201 ac_cv_lib_net_socket=no
14204 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14205 conftest$ac_exeext conftest.$ac_ext
14206 LIBS=$ac_check_lib_save_LIBS
14208 { echo "$as_me:$LINENO: result: $ac_cv_lib_net_socket" >&5
14209 echo "${ECHO_T}$ac_cv_lib_net_socket" >&6; }
14210 if test $ac_cv_lib_net_socket = yes; then
14211 LIBS="-lnet $LIBS"
14213 # BeOS
14215 esac
14217 { echo "$as_me:$LINENO: checking for --with-libs" >&5
14218 echo $ECHO_N "checking for --with-libs... $ECHO_C" >&6; }
14220 # Check whether --with-libs was given.
14221 if test "${with_libs+set}" = set; then
14222 withval=$with_libs;
14223 { echo "$as_me:$LINENO: result: $withval" >&5
14224 echo "${ECHO_T}$withval" >&6; }
14225 LIBS="$withval $LIBS"
14227 else
14228 { echo "$as_me:$LINENO: result: no" >&5
14229 echo "${ECHO_T}no" >&6; }
14233 # Check for use of the system libffi library
14234 { echo "$as_me:$LINENO: checking for --with-system-ffi" >&5
14235 echo $ECHO_N "checking for --with-system-ffi... $ECHO_C" >&6; }
14237 # Check whether --with-system_ffi was given.
14238 if test "${with_system_ffi+set}" = set; then
14239 withval=$with_system_ffi;
14243 { echo "$as_me:$LINENO: result: $with_system_ffi" >&5
14244 echo "${ECHO_T}$with_system_ffi" >&6; }
14246 # Determine if signalmodule should be used.
14249 { echo "$as_me:$LINENO: checking for --with-signal-module" >&5
14250 echo $ECHO_N "checking for --with-signal-module... $ECHO_C" >&6; }
14252 # Check whether --with-signal-module was given.
14253 if test "${with_signal_module+set}" = set; then
14254 withval=$with_signal_module;
14258 if test -z "$with_signal_module"
14259 then with_signal_module="yes"
14261 { echo "$as_me:$LINENO: result: $with_signal_module" >&5
14262 echo "${ECHO_T}$with_signal_module" >&6; }
14264 if test "${with_signal_module}" = "yes"; then
14265 USE_SIGNAL_MODULE=""
14266 SIGNAL_OBJS=""
14267 else
14268 USE_SIGNAL_MODULE="#"
14269 SIGNAL_OBJS="Parser/intrcheck.o Python/sigcheck.o"
14272 # This is used to generate Setup.config
14274 USE_THREAD_MODULE=""
14276 { echo "$as_me:$LINENO: checking for --with-dec-threads" >&5
14277 echo $ECHO_N "checking for --with-dec-threads... $ECHO_C" >&6; }
14280 # Check whether --with-dec-threads was given.
14281 if test "${with_dec_threads+set}" = set; then
14282 withval=$with_dec_threads;
14283 { echo "$as_me:$LINENO: result: $withval" >&5
14284 echo "${ECHO_T}$withval" >&6; }
14285 LDLAST=-threads
14286 if test "${with_thread+set}" != set; then
14287 with_thread="$withval";
14289 else
14290 { echo "$as_me:$LINENO: result: no" >&5
14291 echo "${ECHO_T}no" >&6; }
14295 # Templates for things AC_DEFINEd more than once.
14296 # For a single AC_DEFINE, no template is needed.
14304 { echo "$as_me:$LINENO: checking for --with-threads" >&5
14305 echo $ECHO_N "checking for --with-threads... $ECHO_C" >&6; }
14307 # Check whether --with-threads was given.
14308 if test "${with_threads+set}" = set; then
14309 withval=$with_threads;
14313 # --with-thread is deprecated, but check for it anyway
14315 # Check whether --with-thread was given.
14316 if test "${with_thread+set}" = set; then
14317 withval=$with_thread; with_threads=$with_thread
14321 if test -z "$with_threads"
14322 then with_threads="yes"
14324 { echo "$as_me:$LINENO: result: $with_threads" >&5
14325 echo "${ECHO_T}$with_threads" >&6; }
14328 if test "$with_threads" = "no"
14329 then
14330 USE_THREAD_MODULE="#"
14331 elif test "$ac_cv_pthread_is_default" = yes
14332 then
14333 cat >>confdefs.h <<\_ACEOF
14334 #define WITH_THREAD 1
14335 _ACEOF
14337 # Defining _REENTRANT on system with POSIX threads should not hurt.
14338 cat >>confdefs.h <<\_ACEOF
14339 #define _REENTRANT 1
14340 _ACEOF
14342 posix_threads=yes
14343 THREADOBJ="Python/thread.o"
14344 elif test "$ac_cv_kpthread" = "yes"
14345 then
14346 CC="$CC -Kpthread"
14347 if test "$ac_cv_cxx_thread" = "yes"; then
14348 CXX="$CXX -Kpthread"
14350 cat >>confdefs.h <<\_ACEOF
14351 #define WITH_THREAD 1
14352 _ACEOF
14354 posix_threads=yes
14355 THREADOBJ="Python/thread.o"
14356 elif test "$ac_cv_kthread" = "yes"
14357 then
14358 CC="$CC -Kthread"
14359 if test "$ac_cv_cxx_thread" = "yes"; then
14360 CXX="$CXX -Kthread"
14362 cat >>confdefs.h <<\_ACEOF
14363 #define WITH_THREAD 1
14364 _ACEOF
14366 posix_threads=yes
14367 THREADOBJ="Python/thread.o"
14368 elif test "$ac_cv_pthread" = "yes"
14369 then
14370 CC="$CC -pthread"
14371 if test "$ac_cv_cxx_thread" = "yes"; then
14372 CXX="$CXX -pthread"
14374 cat >>confdefs.h <<\_ACEOF
14375 #define WITH_THREAD 1
14376 _ACEOF
14378 posix_threads=yes
14379 THREADOBJ="Python/thread.o"
14380 else
14381 if test ! -z "$with_threads" -a -d "$with_threads"
14382 then LDFLAGS="$LDFLAGS -L$with_threads"
14384 if test ! -z "$withval" -a -d "$withval"
14385 then LDFLAGS="$LDFLAGS -L$withval"
14388 # According to the POSIX spec, a pthreads implementation must
14389 # define _POSIX_THREADS in unistd.h. Some apparently don't
14390 # (e.g. gnu pth with pthread emulation)
14391 { echo "$as_me:$LINENO: checking for _POSIX_THREADS in unistd.h" >&5
14392 echo $ECHO_N "checking for _POSIX_THREADS in unistd.h... $ECHO_C" >&6; }
14393 cat >conftest.$ac_ext <<_ACEOF
14394 /* confdefs.h. */
14395 _ACEOF
14396 cat confdefs.h >>conftest.$ac_ext
14397 cat >>conftest.$ac_ext <<_ACEOF
14398 /* end confdefs.h. */
14400 #include <unistd.h>
14401 #ifdef _POSIX_THREADS
14403 #endif
14405 _ACEOF
14406 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14407 $EGREP "yes" >/dev/null 2>&1; then
14408 unistd_defines_pthreads=yes
14409 else
14410 unistd_defines_pthreads=no
14412 rm -f conftest*
14414 { echo "$as_me:$LINENO: result: $unistd_defines_pthreads" >&5
14415 echo "${ECHO_T}$unistd_defines_pthreads" >&6; }
14417 cat >>confdefs.h <<\_ACEOF
14418 #define _REENTRANT 1
14419 _ACEOF
14421 if test "${ac_cv_header_cthreads_h+set}" = set; then
14422 { echo "$as_me:$LINENO: checking for cthreads.h" >&5
14423 echo $ECHO_N "checking for cthreads.h... $ECHO_C" >&6; }
14424 if test "${ac_cv_header_cthreads_h+set}" = set; then
14425 echo $ECHO_N "(cached) $ECHO_C" >&6
14427 { echo "$as_me:$LINENO: result: $ac_cv_header_cthreads_h" >&5
14428 echo "${ECHO_T}$ac_cv_header_cthreads_h" >&6; }
14429 else
14430 # Is the header compilable?
14431 { echo "$as_me:$LINENO: checking cthreads.h usability" >&5
14432 echo $ECHO_N "checking cthreads.h usability... $ECHO_C" >&6; }
14433 cat >conftest.$ac_ext <<_ACEOF
14434 /* confdefs.h. */
14435 _ACEOF
14436 cat confdefs.h >>conftest.$ac_ext
14437 cat >>conftest.$ac_ext <<_ACEOF
14438 /* end confdefs.h. */
14439 $ac_includes_default
14440 #include <cthreads.h>
14441 _ACEOF
14442 rm -f conftest.$ac_objext
14443 if { (ac_try="$ac_compile"
14444 case "(($ac_try" in
14445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14446 *) ac_try_echo=$ac_try;;
14447 esac
14448 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14449 (eval "$ac_compile") 2>conftest.er1
14450 ac_status=$?
14451 grep -v '^ *+' conftest.er1 >conftest.err
14452 rm -f conftest.er1
14453 cat conftest.err >&5
14454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14455 (exit $ac_status); } && {
14456 test -z "$ac_c_werror_flag" ||
14457 test ! -s conftest.err
14458 } && test -s conftest.$ac_objext; then
14459 ac_header_compiler=yes
14460 else
14461 echo "$as_me: failed program was:" >&5
14462 sed 's/^/| /' conftest.$ac_ext >&5
14464 ac_header_compiler=no
14467 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14468 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14469 echo "${ECHO_T}$ac_header_compiler" >&6; }
14471 # Is the header present?
14472 { echo "$as_me:$LINENO: checking cthreads.h presence" >&5
14473 echo $ECHO_N "checking cthreads.h presence... $ECHO_C" >&6; }
14474 cat >conftest.$ac_ext <<_ACEOF
14475 /* confdefs.h. */
14476 _ACEOF
14477 cat confdefs.h >>conftest.$ac_ext
14478 cat >>conftest.$ac_ext <<_ACEOF
14479 /* end confdefs.h. */
14480 #include <cthreads.h>
14481 _ACEOF
14482 if { (ac_try="$ac_cpp conftest.$ac_ext"
14483 case "(($ac_try" in
14484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14485 *) ac_try_echo=$ac_try;;
14486 esac
14487 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14488 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14489 ac_status=$?
14490 grep -v '^ *+' conftest.er1 >conftest.err
14491 rm -f conftest.er1
14492 cat conftest.err >&5
14493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14494 (exit $ac_status); } >/dev/null && {
14495 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14496 test ! -s conftest.err
14497 }; then
14498 ac_header_preproc=yes
14499 else
14500 echo "$as_me: failed program was:" >&5
14501 sed 's/^/| /' conftest.$ac_ext >&5
14503 ac_header_preproc=no
14506 rm -f conftest.err conftest.$ac_ext
14507 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14508 echo "${ECHO_T}$ac_header_preproc" >&6; }
14510 # So? What about this header?
14511 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14512 yes:no: )
14513 { echo "$as_me:$LINENO: WARNING: cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&5
14514 echo "$as_me: WARNING: cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14515 { echo "$as_me:$LINENO: WARNING: cthreads.h: proceeding with the compiler's result" >&5
14516 echo "$as_me: WARNING: cthreads.h: proceeding with the compiler's result" >&2;}
14517 ac_header_preproc=yes
14519 no:yes:* )
14520 { echo "$as_me:$LINENO: WARNING: cthreads.h: present but cannot be compiled" >&5
14521 echo "$as_me: WARNING: cthreads.h: present but cannot be compiled" >&2;}
14522 { echo "$as_me:$LINENO: WARNING: cthreads.h: check for missing prerequisite headers?" >&5
14523 echo "$as_me: WARNING: cthreads.h: check for missing prerequisite headers?" >&2;}
14524 { echo "$as_me:$LINENO: WARNING: cthreads.h: see the Autoconf documentation" >&5
14525 echo "$as_me: WARNING: cthreads.h: see the Autoconf documentation" >&2;}
14526 { echo "$as_me:$LINENO: WARNING: cthreads.h: section \"Present But Cannot Be Compiled\"" >&5
14527 echo "$as_me: WARNING: cthreads.h: section \"Present But Cannot Be Compiled\"" >&2;}
14528 { echo "$as_me:$LINENO: WARNING: cthreads.h: proceeding with the preprocessor's result" >&5
14529 echo "$as_me: WARNING: cthreads.h: proceeding with the preprocessor's result" >&2;}
14530 { echo "$as_me:$LINENO: WARNING: cthreads.h: in the future, the compiler will take precedence" >&5
14531 echo "$as_me: WARNING: cthreads.h: in the future, the compiler will take precedence" >&2;}
14532 ( cat <<\_ASBOX
14533 ## ------------------------------------------------ ##
14534 ## Report this to http://www.python.org/python-bugs ##
14535 ## ------------------------------------------------ ##
14536 _ASBOX
14537 ) | sed "s/^/$as_me: WARNING: /" >&2
14539 esac
14540 { echo "$as_me:$LINENO: checking for cthreads.h" >&5
14541 echo $ECHO_N "checking for cthreads.h... $ECHO_C" >&6; }
14542 if test "${ac_cv_header_cthreads_h+set}" = set; then
14543 echo $ECHO_N "(cached) $ECHO_C" >&6
14544 else
14545 ac_cv_header_cthreads_h=$ac_header_preproc
14547 { echo "$as_me:$LINENO: result: $ac_cv_header_cthreads_h" >&5
14548 echo "${ECHO_T}$ac_cv_header_cthreads_h" >&6; }
14551 if test $ac_cv_header_cthreads_h = yes; then
14552 cat >>confdefs.h <<\_ACEOF
14553 #define WITH_THREAD 1
14554 _ACEOF
14556 cat >>confdefs.h <<\_ACEOF
14557 #define C_THREADS 1
14558 _ACEOF
14561 cat >>confdefs.h <<\_ACEOF
14562 #define HURD_C_THREADS 1
14563 _ACEOF
14565 LIBS="$LIBS -lthreads"
14566 THREADOBJ="Python/thread.o"
14567 else
14569 if test "${ac_cv_header_mach_cthreads_h+set}" = set; then
14570 { echo "$as_me:$LINENO: checking for mach/cthreads.h" >&5
14571 echo $ECHO_N "checking for mach/cthreads.h... $ECHO_C" >&6; }
14572 if test "${ac_cv_header_mach_cthreads_h+set}" = set; then
14573 echo $ECHO_N "(cached) $ECHO_C" >&6
14575 { echo "$as_me:$LINENO: result: $ac_cv_header_mach_cthreads_h" >&5
14576 echo "${ECHO_T}$ac_cv_header_mach_cthreads_h" >&6; }
14577 else
14578 # Is the header compilable?
14579 { echo "$as_me:$LINENO: checking mach/cthreads.h usability" >&5
14580 echo $ECHO_N "checking mach/cthreads.h usability... $ECHO_C" >&6; }
14581 cat >conftest.$ac_ext <<_ACEOF
14582 /* confdefs.h. */
14583 _ACEOF
14584 cat confdefs.h >>conftest.$ac_ext
14585 cat >>conftest.$ac_ext <<_ACEOF
14586 /* end confdefs.h. */
14587 $ac_includes_default
14588 #include <mach/cthreads.h>
14589 _ACEOF
14590 rm -f conftest.$ac_objext
14591 if { (ac_try="$ac_compile"
14592 case "(($ac_try" in
14593 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14594 *) ac_try_echo=$ac_try;;
14595 esac
14596 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14597 (eval "$ac_compile") 2>conftest.er1
14598 ac_status=$?
14599 grep -v '^ *+' conftest.er1 >conftest.err
14600 rm -f conftest.er1
14601 cat conftest.err >&5
14602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14603 (exit $ac_status); } && {
14604 test -z "$ac_c_werror_flag" ||
14605 test ! -s conftest.err
14606 } && test -s conftest.$ac_objext; then
14607 ac_header_compiler=yes
14608 else
14609 echo "$as_me: failed program was:" >&5
14610 sed 's/^/| /' conftest.$ac_ext >&5
14612 ac_header_compiler=no
14615 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14616 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14617 echo "${ECHO_T}$ac_header_compiler" >&6; }
14619 # Is the header present?
14620 { echo "$as_me:$LINENO: checking mach/cthreads.h presence" >&5
14621 echo $ECHO_N "checking mach/cthreads.h presence... $ECHO_C" >&6; }
14622 cat >conftest.$ac_ext <<_ACEOF
14623 /* confdefs.h. */
14624 _ACEOF
14625 cat confdefs.h >>conftest.$ac_ext
14626 cat >>conftest.$ac_ext <<_ACEOF
14627 /* end confdefs.h. */
14628 #include <mach/cthreads.h>
14629 _ACEOF
14630 if { (ac_try="$ac_cpp conftest.$ac_ext"
14631 case "(($ac_try" in
14632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14633 *) ac_try_echo=$ac_try;;
14634 esac
14635 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14636 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14637 ac_status=$?
14638 grep -v '^ *+' conftest.er1 >conftest.err
14639 rm -f conftest.er1
14640 cat conftest.err >&5
14641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14642 (exit $ac_status); } >/dev/null && {
14643 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14644 test ! -s conftest.err
14645 }; then
14646 ac_header_preproc=yes
14647 else
14648 echo "$as_me: failed program was:" >&5
14649 sed 's/^/| /' conftest.$ac_ext >&5
14651 ac_header_preproc=no
14654 rm -f conftest.err conftest.$ac_ext
14655 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14656 echo "${ECHO_T}$ac_header_preproc" >&6; }
14658 # So? What about this header?
14659 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14660 yes:no: )
14661 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&5
14662 echo "$as_me: WARNING: mach/cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14663 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: proceeding with the compiler's result" >&5
14664 echo "$as_me: WARNING: mach/cthreads.h: proceeding with the compiler's result" >&2;}
14665 ac_header_preproc=yes
14667 no:yes:* )
14668 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: present but cannot be compiled" >&5
14669 echo "$as_me: WARNING: mach/cthreads.h: present but cannot be compiled" >&2;}
14670 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: check for missing prerequisite headers?" >&5
14671 echo "$as_me: WARNING: mach/cthreads.h: check for missing prerequisite headers?" >&2;}
14672 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: see the Autoconf documentation" >&5
14673 echo "$as_me: WARNING: mach/cthreads.h: see the Autoconf documentation" >&2;}
14674 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: section \"Present But Cannot Be Compiled\"" >&5
14675 echo "$as_me: WARNING: mach/cthreads.h: section \"Present But Cannot Be Compiled\"" >&2;}
14676 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: proceeding with the preprocessor's result" >&5
14677 echo "$as_me: WARNING: mach/cthreads.h: proceeding with the preprocessor's result" >&2;}
14678 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: in the future, the compiler will take precedence" >&5
14679 echo "$as_me: WARNING: mach/cthreads.h: in the future, the compiler will take precedence" >&2;}
14680 ( cat <<\_ASBOX
14681 ## ------------------------------------------------ ##
14682 ## Report this to http://www.python.org/python-bugs ##
14683 ## ------------------------------------------------ ##
14684 _ASBOX
14685 ) | sed "s/^/$as_me: WARNING: /" >&2
14687 esac
14688 { echo "$as_me:$LINENO: checking for mach/cthreads.h" >&5
14689 echo $ECHO_N "checking for mach/cthreads.h... $ECHO_C" >&6; }
14690 if test "${ac_cv_header_mach_cthreads_h+set}" = set; then
14691 echo $ECHO_N "(cached) $ECHO_C" >&6
14692 else
14693 ac_cv_header_mach_cthreads_h=$ac_header_preproc
14695 { echo "$as_me:$LINENO: result: $ac_cv_header_mach_cthreads_h" >&5
14696 echo "${ECHO_T}$ac_cv_header_mach_cthreads_h" >&6; }
14699 if test $ac_cv_header_mach_cthreads_h = yes; then
14700 cat >>confdefs.h <<\_ACEOF
14701 #define WITH_THREAD 1
14702 _ACEOF
14704 cat >>confdefs.h <<\_ACEOF
14705 #define C_THREADS 1
14706 _ACEOF
14709 cat >>confdefs.h <<\_ACEOF
14710 #define MACH_C_THREADS 1
14711 _ACEOF
14713 THREADOBJ="Python/thread.o"
14714 else
14716 { echo "$as_me:$LINENO: checking for --with-pth" >&5
14717 echo $ECHO_N "checking for --with-pth... $ECHO_C" >&6; }
14719 # Check whether --with-pth was given.
14720 if test "${with_pth+set}" = set; then
14721 withval=$with_pth; { echo "$as_me:$LINENO: result: $withval" >&5
14722 echo "${ECHO_T}$withval" >&6; }
14723 cat >>confdefs.h <<\_ACEOF
14724 #define WITH_THREAD 1
14725 _ACEOF
14728 cat >>confdefs.h <<\_ACEOF
14729 #define HAVE_PTH 1
14730 _ACEOF
14732 LIBS="-lpth $LIBS"
14733 THREADOBJ="Python/thread.o"
14734 else
14735 { echo "$as_me:$LINENO: result: no" >&5
14736 echo "${ECHO_T}no" >&6; }
14738 # Just looking for pthread_create in libpthread is not enough:
14739 # on HP/UX, pthread.h renames pthread_create to a different symbol name.
14740 # So we really have to include pthread.h, and then link.
14741 _libs=$LIBS
14742 LIBS="$LIBS -lpthread"
14743 { echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
14744 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6; }
14745 cat >conftest.$ac_ext <<_ACEOF
14746 /* confdefs.h. */
14747 _ACEOF
14748 cat confdefs.h >>conftest.$ac_ext
14749 cat >>conftest.$ac_ext <<_ACEOF
14750 /* end confdefs.h. */
14751 #include <pthread.h>
14753 void * start_routine (void *arg) { exit (0); }
14755 main ()
14758 pthread_create (NULL, NULL, start_routine, NULL)
14760 return 0;
14762 _ACEOF
14763 rm -f conftest.$ac_objext conftest$ac_exeext
14764 if { (ac_try="$ac_link"
14765 case "(($ac_try" in
14766 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14767 *) ac_try_echo=$ac_try;;
14768 esac
14769 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14770 (eval "$ac_link") 2>conftest.er1
14771 ac_status=$?
14772 grep -v '^ *+' conftest.er1 >conftest.err
14773 rm -f conftest.er1
14774 cat conftest.err >&5
14775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14776 (exit $ac_status); } && {
14777 test -z "$ac_c_werror_flag" ||
14778 test ! -s conftest.err
14779 } && test -s conftest$ac_exeext &&
14780 $as_test_x conftest$ac_exeext; then
14782 { echo "$as_me:$LINENO: result: yes" >&5
14783 echo "${ECHO_T}yes" >&6; }
14784 cat >>confdefs.h <<\_ACEOF
14785 #define WITH_THREAD 1
14786 _ACEOF
14788 posix_threads=yes
14789 THREADOBJ="Python/thread.o"
14790 else
14791 echo "$as_me: failed program was:" >&5
14792 sed 's/^/| /' conftest.$ac_ext >&5
14795 LIBS=$_libs
14796 { echo "$as_me:$LINENO: checking for pthread_detach" >&5
14797 echo $ECHO_N "checking for pthread_detach... $ECHO_C" >&6; }
14798 if test "${ac_cv_func_pthread_detach+set}" = set; then
14799 echo $ECHO_N "(cached) $ECHO_C" >&6
14800 else
14801 cat >conftest.$ac_ext <<_ACEOF
14802 /* confdefs.h. */
14803 _ACEOF
14804 cat confdefs.h >>conftest.$ac_ext
14805 cat >>conftest.$ac_ext <<_ACEOF
14806 /* end confdefs.h. */
14807 /* Define pthread_detach to an innocuous variant, in case <limits.h> declares pthread_detach.
14808 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14809 #define pthread_detach innocuous_pthread_detach
14811 /* System header to define __stub macros and hopefully few prototypes,
14812 which can conflict with char pthread_detach (); below.
14813 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14814 <limits.h> exists even on freestanding compilers. */
14816 #ifdef __STDC__
14817 # include <limits.h>
14818 #else
14819 # include <assert.h>
14820 #endif
14822 #undef pthread_detach
14824 /* Override any GCC internal prototype to avoid an error.
14825 Use char because int might match the return type of a GCC
14826 builtin and then its argument prototype would still apply. */
14827 #ifdef __cplusplus
14828 extern "C"
14829 #endif
14830 char pthread_detach ();
14831 /* The GNU C library defines this for functions which it implements
14832 to always fail with ENOSYS. Some functions are actually named
14833 something starting with __ and the normal name is an alias. */
14834 #if defined __stub_pthread_detach || defined __stub___pthread_detach
14835 choke me
14836 #endif
14839 main ()
14841 return pthread_detach ();
14843 return 0;
14845 _ACEOF
14846 rm -f conftest.$ac_objext conftest$ac_exeext
14847 if { (ac_try="$ac_link"
14848 case "(($ac_try" in
14849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14850 *) ac_try_echo=$ac_try;;
14851 esac
14852 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14853 (eval "$ac_link") 2>conftest.er1
14854 ac_status=$?
14855 grep -v '^ *+' conftest.er1 >conftest.err
14856 rm -f conftest.er1
14857 cat conftest.err >&5
14858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14859 (exit $ac_status); } && {
14860 test -z "$ac_c_werror_flag" ||
14861 test ! -s conftest.err
14862 } && test -s conftest$ac_exeext &&
14863 $as_test_x conftest$ac_exeext; then
14864 ac_cv_func_pthread_detach=yes
14865 else
14866 echo "$as_me: failed program was:" >&5
14867 sed 's/^/| /' conftest.$ac_ext >&5
14869 ac_cv_func_pthread_detach=no
14872 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14873 conftest$ac_exeext conftest.$ac_ext
14875 { echo "$as_me:$LINENO: result: $ac_cv_func_pthread_detach" >&5
14876 echo "${ECHO_T}$ac_cv_func_pthread_detach" >&6; }
14877 if test $ac_cv_func_pthread_detach = yes; then
14878 cat >>confdefs.h <<\_ACEOF
14879 #define WITH_THREAD 1
14880 _ACEOF
14882 posix_threads=yes
14883 THREADOBJ="Python/thread.o"
14884 else
14886 if test "${ac_cv_header_atheos_threads_h+set}" = set; then
14887 { echo "$as_me:$LINENO: checking for atheos/threads.h" >&5
14888 echo $ECHO_N "checking for atheos/threads.h... $ECHO_C" >&6; }
14889 if test "${ac_cv_header_atheos_threads_h+set}" = set; then
14890 echo $ECHO_N "(cached) $ECHO_C" >&6
14892 { echo "$as_me:$LINENO: result: $ac_cv_header_atheos_threads_h" >&5
14893 echo "${ECHO_T}$ac_cv_header_atheos_threads_h" >&6; }
14894 else
14895 # Is the header compilable?
14896 { echo "$as_me:$LINENO: checking atheos/threads.h usability" >&5
14897 echo $ECHO_N "checking atheos/threads.h usability... $ECHO_C" >&6; }
14898 cat >conftest.$ac_ext <<_ACEOF
14899 /* confdefs.h. */
14900 _ACEOF
14901 cat confdefs.h >>conftest.$ac_ext
14902 cat >>conftest.$ac_ext <<_ACEOF
14903 /* end confdefs.h. */
14904 $ac_includes_default
14905 #include <atheos/threads.h>
14906 _ACEOF
14907 rm -f conftest.$ac_objext
14908 if { (ac_try="$ac_compile"
14909 case "(($ac_try" in
14910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14911 *) ac_try_echo=$ac_try;;
14912 esac
14913 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14914 (eval "$ac_compile") 2>conftest.er1
14915 ac_status=$?
14916 grep -v '^ *+' conftest.er1 >conftest.err
14917 rm -f conftest.er1
14918 cat conftest.err >&5
14919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14920 (exit $ac_status); } && {
14921 test -z "$ac_c_werror_flag" ||
14922 test ! -s conftest.err
14923 } && test -s conftest.$ac_objext; then
14924 ac_header_compiler=yes
14925 else
14926 echo "$as_me: failed program was:" >&5
14927 sed 's/^/| /' conftest.$ac_ext >&5
14929 ac_header_compiler=no
14932 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14933 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14934 echo "${ECHO_T}$ac_header_compiler" >&6; }
14936 # Is the header present?
14937 { echo "$as_me:$LINENO: checking atheos/threads.h presence" >&5
14938 echo $ECHO_N "checking atheos/threads.h presence... $ECHO_C" >&6; }
14939 cat >conftest.$ac_ext <<_ACEOF
14940 /* confdefs.h. */
14941 _ACEOF
14942 cat confdefs.h >>conftest.$ac_ext
14943 cat >>conftest.$ac_ext <<_ACEOF
14944 /* end confdefs.h. */
14945 #include <atheos/threads.h>
14946 _ACEOF
14947 if { (ac_try="$ac_cpp conftest.$ac_ext"
14948 case "(($ac_try" in
14949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14950 *) ac_try_echo=$ac_try;;
14951 esac
14952 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14953 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14954 ac_status=$?
14955 grep -v '^ *+' conftest.er1 >conftest.err
14956 rm -f conftest.er1
14957 cat conftest.err >&5
14958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14959 (exit $ac_status); } >/dev/null && {
14960 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14961 test ! -s conftest.err
14962 }; then
14963 ac_header_preproc=yes
14964 else
14965 echo "$as_me: failed program was:" >&5
14966 sed 's/^/| /' conftest.$ac_ext >&5
14968 ac_header_preproc=no
14971 rm -f conftest.err conftest.$ac_ext
14972 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14973 echo "${ECHO_T}$ac_header_preproc" >&6; }
14975 # So? What about this header?
14976 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14977 yes:no: )
14978 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: accepted by the compiler, rejected by the preprocessor!" >&5
14979 echo "$as_me: WARNING: atheos/threads.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14980 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: proceeding with the compiler's result" >&5
14981 echo "$as_me: WARNING: atheos/threads.h: proceeding with the compiler's result" >&2;}
14982 ac_header_preproc=yes
14984 no:yes:* )
14985 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: present but cannot be compiled" >&5
14986 echo "$as_me: WARNING: atheos/threads.h: present but cannot be compiled" >&2;}
14987 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: check for missing prerequisite headers?" >&5
14988 echo "$as_me: WARNING: atheos/threads.h: check for missing prerequisite headers?" >&2;}
14989 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: see the Autoconf documentation" >&5
14990 echo "$as_me: WARNING: atheos/threads.h: see the Autoconf documentation" >&2;}
14991 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: section \"Present But Cannot Be Compiled\"" >&5
14992 echo "$as_me: WARNING: atheos/threads.h: section \"Present But Cannot Be Compiled\"" >&2;}
14993 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: proceeding with the preprocessor's result" >&5
14994 echo "$as_me: WARNING: atheos/threads.h: proceeding with the preprocessor's result" >&2;}
14995 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: in the future, the compiler will take precedence" >&5
14996 echo "$as_me: WARNING: atheos/threads.h: in the future, the compiler will take precedence" >&2;}
14997 ( cat <<\_ASBOX
14998 ## ------------------------------------------------ ##
14999 ## Report this to http://www.python.org/python-bugs ##
15000 ## ------------------------------------------------ ##
15001 _ASBOX
15002 ) | sed "s/^/$as_me: WARNING: /" >&2
15004 esac
15005 { echo "$as_me:$LINENO: checking for atheos/threads.h" >&5
15006 echo $ECHO_N "checking for atheos/threads.h... $ECHO_C" >&6; }
15007 if test "${ac_cv_header_atheos_threads_h+set}" = set; then
15008 echo $ECHO_N "(cached) $ECHO_C" >&6
15009 else
15010 ac_cv_header_atheos_threads_h=$ac_header_preproc
15012 { echo "$as_me:$LINENO: result: $ac_cv_header_atheos_threads_h" >&5
15013 echo "${ECHO_T}$ac_cv_header_atheos_threads_h" >&6; }
15016 if test $ac_cv_header_atheos_threads_h = yes; then
15017 cat >>confdefs.h <<\_ACEOF
15018 #define WITH_THREAD 1
15019 _ACEOF
15022 cat >>confdefs.h <<\_ACEOF
15023 #define ATHEOS_THREADS 1
15024 _ACEOF
15026 THREADOBJ="Python/thread.o"
15027 else
15029 if test "${ac_cv_header_kernel_OS_h+set}" = set; then
15030 { echo "$as_me:$LINENO: checking for kernel/OS.h" >&5
15031 echo $ECHO_N "checking for kernel/OS.h... $ECHO_C" >&6; }
15032 if test "${ac_cv_header_kernel_OS_h+set}" = set; then
15033 echo $ECHO_N "(cached) $ECHO_C" >&6
15035 { echo "$as_me:$LINENO: result: $ac_cv_header_kernel_OS_h" >&5
15036 echo "${ECHO_T}$ac_cv_header_kernel_OS_h" >&6; }
15037 else
15038 # Is the header compilable?
15039 { echo "$as_me:$LINENO: checking kernel/OS.h usability" >&5
15040 echo $ECHO_N "checking kernel/OS.h usability... $ECHO_C" >&6; }
15041 cat >conftest.$ac_ext <<_ACEOF
15042 /* confdefs.h. */
15043 _ACEOF
15044 cat confdefs.h >>conftest.$ac_ext
15045 cat >>conftest.$ac_ext <<_ACEOF
15046 /* end confdefs.h. */
15047 $ac_includes_default
15048 #include <kernel/OS.h>
15049 _ACEOF
15050 rm -f conftest.$ac_objext
15051 if { (ac_try="$ac_compile"
15052 case "(($ac_try" in
15053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15054 *) ac_try_echo=$ac_try;;
15055 esac
15056 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15057 (eval "$ac_compile") 2>conftest.er1
15058 ac_status=$?
15059 grep -v '^ *+' conftest.er1 >conftest.err
15060 rm -f conftest.er1
15061 cat conftest.err >&5
15062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15063 (exit $ac_status); } && {
15064 test -z "$ac_c_werror_flag" ||
15065 test ! -s conftest.err
15066 } && test -s conftest.$ac_objext; then
15067 ac_header_compiler=yes
15068 else
15069 echo "$as_me: failed program was:" >&5
15070 sed 's/^/| /' conftest.$ac_ext >&5
15072 ac_header_compiler=no
15075 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15076 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15077 echo "${ECHO_T}$ac_header_compiler" >&6; }
15079 # Is the header present?
15080 { echo "$as_me:$LINENO: checking kernel/OS.h presence" >&5
15081 echo $ECHO_N "checking kernel/OS.h presence... $ECHO_C" >&6; }
15082 cat >conftest.$ac_ext <<_ACEOF
15083 /* confdefs.h. */
15084 _ACEOF
15085 cat confdefs.h >>conftest.$ac_ext
15086 cat >>conftest.$ac_ext <<_ACEOF
15087 /* end confdefs.h. */
15088 #include <kernel/OS.h>
15089 _ACEOF
15090 if { (ac_try="$ac_cpp conftest.$ac_ext"
15091 case "(($ac_try" in
15092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15093 *) ac_try_echo=$ac_try;;
15094 esac
15095 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15096 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15097 ac_status=$?
15098 grep -v '^ *+' conftest.er1 >conftest.err
15099 rm -f conftest.er1
15100 cat conftest.err >&5
15101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15102 (exit $ac_status); } >/dev/null && {
15103 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15104 test ! -s conftest.err
15105 }; then
15106 ac_header_preproc=yes
15107 else
15108 echo "$as_me: failed program was:" >&5
15109 sed 's/^/| /' conftest.$ac_ext >&5
15111 ac_header_preproc=no
15114 rm -f conftest.err conftest.$ac_ext
15115 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15116 echo "${ECHO_T}$ac_header_preproc" >&6; }
15118 # So? What about this header?
15119 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15120 yes:no: )
15121 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: accepted by the compiler, rejected by the preprocessor!" >&5
15122 echo "$as_me: WARNING: kernel/OS.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15123 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: proceeding with the compiler's result" >&5
15124 echo "$as_me: WARNING: kernel/OS.h: proceeding with the compiler's result" >&2;}
15125 ac_header_preproc=yes
15127 no:yes:* )
15128 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: present but cannot be compiled" >&5
15129 echo "$as_me: WARNING: kernel/OS.h: present but cannot be compiled" >&2;}
15130 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: check for missing prerequisite headers?" >&5
15131 echo "$as_me: WARNING: kernel/OS.h: check for missing prerequisite headers?" >&2;}
15132 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: see the Autoconf documentation" >&5
15133 echo "$as_me: WARNING: kernel/OS.h: see the Autoconf documentation" >&2;}
15134 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: section \"Present But Cannot Be Compiled\"" >&5
15135 echo "$as_me: WARNING: kernel/OS.h: section \"Present But Cannot Be Compiled\"" >&2;}
15136 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: proceeding with the preprocessor's result" >&5
15137 echo "$as_me: WARNING: kernel/OS.h: proceeding with the preprocessor's result" >&2;}
15138 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: in the future, the compiler will take precedence" >&5
15139 echo "$as_me: WARNING: kernel/OS.h: in the future, the compiler will take precedence" >&2;}
15140 ( cat <<\_ASBOX
15141 ## ------------------------------------------------ ##
15142 ## Report this to http://www.python.org/python-bugs ##
15143 ## ------------------------------------------------ ##
15144 _ASBOX
15145 ) | sed "s/^/$as_me: WARNING: /" >&2
15147 esac
15148 { echo "$as_me:$LINENO: checking for kernel/OS.h" >&5
15149 echo $ECHO_N "checking for kernel/OS.h... $ECHO_C" >&6; }
15150 if test "${ac_cv_header_kernel_OS_h+set}" = set; then
15151 echo $ECHO_N "(cached) $ECHO_C" >&6
15152 else
15153 ac_cv_header_kernel_OS_h=$ac_header_preproc
15155 { echo "$as_me:$LINENO: result: $ac_cv_header_kernel_OS_h" >&5
15156 echo "${ECHO_T}$ac_cv_header_kernel_OS_h" >&6; }
15159 if test $ac_cv_header_kernel_OS_h = yes; then
15160 cat >>confdefs.h <<\_ACEOF
15161 #define WITH_THREAD 1
15162 _ACEOF
15165 cat >>confdefs.h <<\_ACEOF
15166 #define BEOS_THREADS 1
15167 _ACEOF
15169 THREADOBJ="Python/thread.o"
15170 else
15172 { echo "$as_me:$LINENO: checking for pthread_create in -lpthreads" >&5
15173 echo $ECHO_N "checking for pthread_create in -lpthreads... $ECHO_C" >&6; }
15174 if test "${ac_cv_lib_pthreads_pthread_create+set}" = set; then
15175 echo $ECHO_N "(cached) $ECHO_C" >&6
15176 else
15177 ac_check_lib_save_LIBS=$LIBS
15178 LIBS="-lpthreads $LIBS"
15179 cat >conftest.$ac_ext <<_ACEOF
15180 /* confdefs.h. */
15181 _ACEOF
15182 cat confdefs.h >>conftest.$ac_ext
15183 cat >>conftest.$ac_ext <<_ACEOF
15184 /* end confdefs.h. */
15186 /* Override any GCC internal prototype to avoid an error.
15187 Use char because int might match the return type of a GCC
15188 builtin and then its argument prototype would still apply. */
15189 #ifdef __cplusplus
15190 extern "C"
15191 #endif
15192 char pthread_create ();
15194 main ()
15196 return pthread_create ();
15198 return 0;
15200 _ACEOF
15201 rm -f conftest.$ac_objext conftest$ac_exeext
15202 if { (ac_try="$ac_link"
15203 case "(($ac_try" in
15204 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15205 *) ac_try_echo=$ac_try;;
15206 esac
15207 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15208 (eval "$ac_link") 2>conftest.er1
15209 ac_status=$?
15210 grep -v '^ *+' conftest.er1 >conftest.err
15211 rm -f conftest.er1
15212 cat conftest.err >&5
15213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15214 (exit $ac_status); } && {
15215 test -z "$ac_c_werror_flag" ||
15216 test ! -s conftest.err
15217 } && test -s conftest$ac_exeext &&
15218 $as_test_x conftest$ac_exeext; then
15219 ac_cv_lib_pthreads_pthread_create=yes
15220 else
15221 echo "$as_me: failed program was:" >&5
15222 sed 's/^/| /' conftest.$ac_ext >&5
15224 ac_cv_lib_pthreads_pthread_create=no
15227 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15228 conftest$ac_exeext conftest.$ac_ext
15229 LIBS=$ac_check_lib_save_LIBS
15231 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_create" >&5
15232 echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_create" >&6; }
15233 if test $ac_cv_lib_pthreads_pthread_create = yes; then
15234 cat >>confdefs.h <<\_ACEOF
15235 #define WITH_THREAD 1
15236 _ACEOF
15238 posix_threads=yes
15239 LIBS="$LIBS -lpthreads"
15240 THREADOBJ="Python/thread.o"
15241 else
15243 { echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
15244 echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6; }
15245 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then
15246 echo $ECHO_N "(cached) $ECHO_C" >&6
15247 else
15248 ac_check_lib_save_LIBS=$LIBS
15249 LIBS="-lc_r $LIBS"
15250 cat >conftest.$ac_ext <<_ACEOF
15251 /* confdefs.h. */
15252 _ACEOF
15253 cat confdefs.h >>conftest.$ac_ext
15254 cat >>conftest.$ac_ext <<_ACEOF
15255 /* end confdefs.h. */
15257 /* Override any GCC internal prototype to avoid an error.
15258 Use char because int might match the return type of a GCC
15259 builtin and then its argument prototype would still apply. */
15260 #ifdef __cplusplus
15261 extern "C"
15262 #endif
15263 char pthread_create ();
15265 main ()
15267 return pthread_create ();
15269 return 0;
15271 _ACEOF
15272 rm -f conftest.$ac_objext conftest$ac_exeext
15273 if { (ac_try="$ac_link"
15274 case "(($ac_try" in
15275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15276 *) ac_try_echo=$ac_try;;
15277 esac
15278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15279 (eval "$ac_link") 2>conftest.er1
15280 ac_status=$?
15281 grep -v '^ *+' conftest.er1 >conftest.err
15282 rm -f conftest.er1
15283 cat conftest.err >&5
15284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15285 (exit $ac_status); } && {
15286 test -z "$ac_c_werror_flag" ||
15287 test ! -s conftest.err
15288 } && test -s conftest$ac_exeext &&
15289 $as_test_x conftest$ac_exeext; then
15290 ac_cv_lib_c_r_pthread_create=yes
15291 else
15292 echo "$as_me: failed program was:" >&5
15293 sed 's/^/| /' conftest.$ac_ext >&5
15295 ac_cv_lib_c_r_pthread_create=no
15298 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15299 conftest$ac_exeext conftest.$ac_ext
15300 LIBS=$ac_check_lib_save_LIBS
15302 { echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5
15303 echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6; }
15304 if test $ac_cv_lib_c_r_pthread_create = yes; then
15305 cat >>confdefs.h <<\_ACEOF
15306 #define WITH_THREAD 1
15307 _ACEOF
15309 posix_threads=yes
15310 LIBS="$LIBS -lc_r"
15311 THREADOBJ="Python/thread.o"
15312 else
15314 { echo "$as_me:$LINENO: checking for __pthread_create_system in -lpthread" >&5
15315 echo $ECHO_N "checking for __pthread_create_system in -lpthread... $ECHO_C" >&6; }
15316 if test "${ac_cv_lib_pthread___pthread_create_system+set}" = set; then
15317 echo $ECHO_N "(cached) $ECHO_C" >&6
15318 else
15319 ac_check_lib_save_LIBS=$LIBS
15320 LIBS="-lpthread $LIBS"
15321 cat >conftest.$ac_ext <<_ACEOF
15322 /* confdefs.h. */
15323 _ACEOF
15324 cat confdefs.h >>conftest.$ac_ext
15325 cat >>conftest.$ac_ext <<_ACEOF
15326 /* end confdefs.h. */
15328 /* Override any GCC internal prototype to avoid an error.
15329 Use char because int might match the return type of a GCC
15330 builtin and then its argument prototype would still apply. */
15331 #ifdef __cplusplus
15332 extern "C"
15333 #endif
15334 char __pthread_create_system ();
15336 main ()
15338 return __pthread_create_system ();
15340 return 0;
15342 _ACEOF
15343 rm -f conftest.$ac_objext conftest$ac_exeext
15344 if { (ac_try="$ac_link"
15345 case "(($ac_try" in
15346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15347 *) ac_try_echo=$ac_try;;
15348 esac
15349 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15350 (eval "$ac_link") 2>conftest.er1
15351 ac_status=$?
15352 grep -v '^ *+' conftest.er1 >conftest.err
15353 rm -f conftest.er1
15354 cat conftest.err >&5
15355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15356 (exit $ac_status); } && {
15357 test -z "$ac_c_werror_flag" ||
15358 test ! -s conftest.err
15359 } && test -s conftest$ac_exeext &&
15360 $as_test_x conftest$ac_exeext; then
15361 ac_cv_lib_pthread___pthread_create_system=yes
15362 else
15363 echo "$as_me: failed program was:" >&5
15364 sed 's/^/| /' conftest.$ac_ext >&5
15366 ac_cv_lib_pthread___pthread_create_system=no
15369 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15370 conftest$ac_exeext conftest.$ac_ext
15371 LIBS=$ac_check_lib_save_LIBS
15373 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread___pthread_create_system" >&5
15374 echo "${ECHO_T}$ac_cv_lib_pthread___pthread_create_system" >&6; }
15375 if test $ac_cv_lib_pthread___pthread_create_system = yes; then
15376 cat >>confdefs.h <<\_ACEOF
15377 #define WITH_THREAD 1
15378 _ACEOF
15380 posix_threads=yes
15381 LIBS="$LIBS -lpthread"
15382 THREADOBJ="Python/thread.o"
15383 else
15385 { echo "$as_me:$LINENO: checking for pthread_create in -lcma" >&5
15386 echo $ECHO_N "checking for pthread_create in -lcma... $ECHO_C" >&6; }
15387 if test "${ac_cv_lib_cma_pthread_create+set}" = set; then
15388 echo $ECHO_N "(cached) $ECHO_C" >&6
15389 else
15390 ac_check_lib_save_LIBS=$LIBS
15391 LIBS="-lcma $LIBS"
15392 cat >conftest.$ac_ext <<_ACEOF
15393 /* confdefs.h. */
15394 _ACEOF
15395 cat confdefs.h >>conftest.$ac_ext
15396 cat >>conftest.$ac_ext <<_ACEOF
15397 /* end confdefs.h. */
15399 /* Override any GCC internal prototype to avoid an error.
15400 Use char because int might match the return type of a GCC
15401 builtin and then its argument prototype would still apply. */
15402 #ifdef __cplusplus
15403 extern "C"
15404 #endif
15405 char pthread_create ();
15407 main ()
15409 return pthread_create ();
15411 return 0;
15413 _ACEOF
15414 rm -f conftest.$ac_objext conftest$ac_exeext
15415 if { (ac_try="$ac_link"
15416 case "(($ac_try" in
15417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15418 *) ac_try_echo=$ac_try;;
15419 esac
15420 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15421 (eval "$ac_link") 2>conftest.er1
15422 ac_status=$?
15423 grep -v '^ *+' conftest.er1 >conftest.err
15424 rm -f conftest.er1
15425 cat conftest.err >&5
15426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15427 (exit $ac_status); } && {
15428 test -z "$ac_c_werror_flag" ||
15429 test ! -s conftest.err
15430 } && test -s conftest$ac_exeext &&
15431 $as_test_x conftest$ac_exeext; then
15432 ac_cv_lib_cma_pthread_create=yes
15433 else
15434 echo "$as_me: failed program was:" >&5
15435 sed 's/^/| /' conftest.$ac_ext >&5
15437 ac_cv_lib_cma_pthread_create=no
15440 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15441 conftest$ac_exeext conftest.$ac_ext
15442 LIBS=$ac_check_lib_save_LIBS
15444 { echo "$as_me:$LINENO: result: $ac_cv_lib_cma_pthread_create" >&5
15445 echo "${ECHO_T}$ac_cv_lib_cma_pthread_create" >&6; }
15446 if test $ac_cv_lib_cma_pthread_create = yes; then
15447 cat >>confdefs.h <<\_ACEOF
15448 #define WITH_THREAD 1
15449 _ACEOF
15451 posix_threads=yes
15452 LIBS="$LIBS -lcma"
15453 THREADOBJ="Python/thread.o"
15454 else
15456 USE_THREAD_MODULE="#"
15476 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15477 conftest$ac_exeext conftest.$ac_ext
15487 { echo "$as_me:$LINENO: checking for usconfig in -lmpc" >&5
15488 echo $ECHO_N "checking for usconfig in -lmpc... $ECHO_C" >&6; }
15489 if test "${ac_cv_lib_mpc_usconfig+set}" = set; then
15490 echo $ECHO_N "(cached) $ECHO_C" >&6
15491 else
15492 ac_check_lib_save_LIBS=$LIBS
15493 LIBS="-lmpc $LIBS"
15494 cat >conftest.$ac_ext <<_ACEOF
15495 /* confdefs.h. */
15496 _ACEOF
15497 cat confdefs.h >>conftest.$ac_ext
15498 cat >>conftest.$ac_ext <<_ACEOF
15499 /* end confdefs.h. */
15501 /* Override any GCC internal prototype to avoid an error.
15502 Use char because int might match the return type of a GCC
15503 builtin and then its argument prototype would still apply. */
15504 #ifdef __cplusplus
15505 extern "C"
15506 #endif
15507 char usconfig ();
15509 main ()
15511 return usconfig ();
15513 return 0;
15515 _ACEOF
15516 rm -f conftest.$ac_objext conftest$ac_exeext
15517 if { (ac_try="$ac_link"
15518 case "(($ac_try" in
15519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15520 *) ac_try_echo=$ac_try;;
15521 esac
15522 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15523 (eval "$ac_link") 2>conftest.er1
15524 ac_status=$?
15525 grep -v '^ *+' conftest.er1 >conftest.err
15526 rm -f conftest.er1
15527 cat conftest.err >&5
15528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15529 (exit $ac_status); } && {
15530 test -z "$ac_c_werror_flag" ||
15531 test ! -s conftest.err
15532 } && test -s conftest$ac_exeext &&
15533 $as_test_x conftest$ac_exeext; then
15534 ac_cv_lib_mpc_usconfig=yes
15535 else
15536 echo "$as_me: failed program was:" >&5
15537 sed 's/^/| /' conftest.$ac_ext >&5
15539 ac_cv_lib_mpc_usconfig=no
15542 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15543 conftest$ac_exeext conftest.$ac_ext
15544 LIBS=$ac_check_lib_save_LIBS
15546 { echo "$as_me:$LINENO: result: $ac_cv_lib_mpc_usconfig" >&5
15547 echo "${ECHO_T}$ac_cv_lib_mpc_usconfig" >&6; }
15548 if test $ac_cv_lib_mpc_usconfig = yes; then
15549 cat >>confdefs.h <<\_ACEOF
15550 #define WITH_THREAD 1
15551 _ACEOF
15553 LIBS="$LIBS -lmpc"
15554 THREADOBJ="Python/thread.o"
15555 USE_THREAD_MODULE=""
15559 if test "$posix_threads" != "yes"; then
15560 { echo "$as_me:$LINENO: checking for thr_create in -lthread" >&5
15561 echo $ECHO_N "checking for thr_create in -lthread... $ECHO_C" >&6; }
15562 if test "${ac_cv_lib_thread_thr_create+set}" = set; then
15563 echo $ECHO_N "(cached) $ECHO_C" >&6
15564 else
15565 ac_check_lib_save_LIBS=$LIBS
15566 LIBS="-lthread $LIBS"
15567 cat >conftest.$ac_ext <<_ACEOF
15568 /* confdefs.h. */
15569 _ACEOF
15570 cat confdefs.h >>conftest.$ac_ext
15571 cat >>conftest.$ac_ext <<_ACEOF
15572 /* end confdefs.h. */
15574 /* Override any GCC internal prototype to avoid an error.
15575 Use char because int might match the return type of a GCC
15576 builtin and then its argument prototype would still apply. */
15577 #ifdef __cplusplus
15578 extern "C"
15579 #endif
15580 char thr_create ();
15582 main ()
15584 return thr_create ();
15586 return 0;
15588 _ACEOF
15589 rm -f conftest.$ac_objext conftest$ac_exeext
15590 if { (ac_try="$ac_link"
15591 case "(($ac_try" in
15592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15593 *) ac_try_echo=$ac_try;;
15594 esac
15595 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15596 (eval "$ac_link") 2>conftest.er1
15597 ac_status=$?
15598 grep -v '^ *+' conftest.er1 >conftest.err
15599 rm -f conftest.er1
15600 cat conftest.err >&5
15601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15602 (exit $ac_status); } && {
15603 test -z "$ac_c_werror_flag" ||
15604 test ! -s conftest.err
15605 } && test -s conftest$ac_exeext &&
15606 $as_test_x conftest$ac_exeext; then
15607 ac_cv_lib_thread_thr_create=yes
15608 else
15609 echo "$as_me: failed program was:" >&5
15610 sed 's/^/| /' conftest.$ac_ext >&5
15612 ac_cv_lib_thread_thr_create=no
15615 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15616 conftest$ac_exeext conftest.$ac_ext
15617 LIBS=$ac_check_lib_save_LIBS
15619 { echo "$as_me:$LINENO: result: $ac_cv_lib_thread_thr_create" >&5
15620 echo "${ECHO_T}$ac_cv_lib_thread_thr_create" >&6; }
15621 if test $ac_cv_lib_thread_thr_create = yes; then
15622 cat >>confdefs.h <<\_ACEOF
15623 #define WITH_THREAD 1
15624 _ACEOF
15626 LIBS="$LIBS -lthread"
15627 THREADOBJ="Python/thread.o"
15628 USE_THREAD_MODULE=""
15633 if test "$USE_THREAD_MODULE" != "#"
15634 then
15635 # If the above checks didn't disable threads, (at least) OSF1
15636 # needs this '-threads' argument during linking.
15637 case $ac_sys_system in
15638 OSF1) LDLAST=-threads;;
15639 esac
15643 if test "$posix_threads" = "yes"; then
15644 if test "$unistd_defines_pthreads" = "no"; then
15646 cat >>confdefs.h <<\_ACEOF
15647 #define _POSIX_THREADS 1
15648 _ACEOF
15652 # Bug 662787: Using semaphores causes unexplicable hangs on Solaris 8.
15653 case $ac_sys_system/$ac_sys_release in
15654 SunOS/5.6)
15655 cat >>confdefs.h <<\_ACEOF
15656 #define HAVE_PTHREAD_DESTRUCTOR 1
15657 _ACEOF
15660 SunOS/5.8)
15661 cat >>confdefs.h <<\_ACEOF
15662 #define HAVE_BROKEN_POSIX_SEMAPHORES 1
15663 _ACEOF
15666 AIX/5)
15667 cat >>confdefs.h <<\_ACEOF
15668 #define HAVE_BROKEN_POSIX_SEMAPHORES 1
15669 _ACEOF
15672 esac
15674 { echo "$as_me:$LINENO: checking if PTHREAD_SCOPE_SYSTEM is supported" >&5
15675 echo $ECHO_N "checking if PTHREAD_SCOPE_SYSTEM is supported... $ECHO_C" >&6; }
15676 if test "${ac_cv_pthread_system_supported+set}" = set; then
15677 echo $ECHO_N "(cached) $ECHO_C" >&6
15678 else
15679 if test "$cross_compiling" = yes; then
15680 ac_cv_pthread_system_supported=no
15681 else
15682 cat >conftest.$ac_ext <<_ACEOF
15683 /* confdefs.h. */
15684 _ACEOF
15685 cat confdefs.h >>conftest.$ac_ext
15686 cat >>conftest.$ac_ext <<_ACEOF
15687 /* end confdefs.h. */
15688 #include <pthread.h>
15689 void *foo(void *parm) {
15690 return NULL;
15692 main() {
15693 pthread_attr_t attr;
15694 pthread_t id;
15695 if (pthread_attr_init(&attr)) exit(-1);
15696 if (pthread_attr_setscope(&attr, PTHREAD_SCOPE_SYSTEM)) exit(-1);
15697 if (pthread_create(&id, &attr, foo, NULL)) exit(-1);
15698 exit(0);
15700 _ACEOF
15701 rm -f conftest$ac_exeext
15702 if { (ac_try="$ac_link"
15703 case "(($ac_try" in
15704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15705 *) ac_try_echo=$ac_try;;
15706 esac
15707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15708 (eval "$ac_link") 2>&5
15709 ac_status=$?
15710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15711 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15712 { (case "(($ac_try" in
15713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15714 *) ac_try_echo=$ac_try;;
15715 esac
15716 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15717 (eval "$ac_try") 2>&5
15718 ac_status=$?
15719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15720 (exit $ac_status); }; }; then
15721 ac_cv_pthread_system_supported=yes
15722 else
15723 echo "$as_me: program exited with status $ac_status" >&5
15724 echo "$as_me: failed program was:" >&5
15725 sed 's/^/| /' conftest.$ac_ext >&5
15727 ( exit $ac_status )
15728 ac_cv_pthread_system_supported=no
15730 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15737 { echo "$as_me:$LINENO: result: $ac_cv_pthread_system_supported" >&5
15738 echo "${ECHO_T}$ac_cv_pthread_system_supported" >&6; }
15739 if test "$ac_cv_pthread_system_supported" = "yes"; then
15741 cat >>confdefs.h <<\_ACEOF
15742 #define PTHREAD_SYSTEM_SCHED_SUPPORTED 1
15743 _ACEOF
15747 for ac_func in pthread_sigmask
15749 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15750 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15751 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15752 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15753 echo $ECHO_N "(cached) $ECHO_C" >&6
15754 else
15755 cat >conftest.$ac_ext <<_ACEOF
15756 /* confdefs.h. */
15757 _ACEOF
15758 cat confdefs.h >>conftest.$ac_ext
15759 cat >>conftest.$ac_ext <<_ACEOF
15760 /* end confdefs.h. */
15761 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15762 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15763 #define $ac_func innocuous_$ac_func
15765 /* System header to define __stub macros and hopefully few prototypes,
15766 which can conflict with char $ac_func (); below.
15767 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15768 <limits.h> exists even on freestanding compilers. */
15770 #ifdef __STDC__
15771 # include <limits.h>
15772 #else
15773 # include <assert.h>
15774 #endif
15776 #undef $ac_func
15778 /* Override any GCC internal prototype to avoid an error.
15779 Use char because int might match the return type of a GCC
15780 builtin and then its argument prototype would still apply. */
15781 #ifdef __cplusplus
15782 extern "C"
15783 #endif
15784 char $ac_func ();
15785 /* The GNU C library defines this for functions which it implements
15786 to always fail with ENOSYS. Some functions are actually named
15787 something starting with __ and the normal name is an alias. */
15788 #if defined __stub_$ac_func || defined __stub___$ac_func
15789 choke me
15790 #endif
15793 main ()
15795 return $ac_func ();
15797 return 0;
15799 _ACEOF
15800 rm -f conftest.$ac_objext conftest$ac_exeext
15801 if { (ac_try="$ac_link"
15802 case "(($ac_try" in
15803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15804 *) ac_try_echo=$ac_try;;
15805 esac
15806 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15807 (eval "$ac_link") 2>conftest.er1
15808 ac_status=$?
15809 grep -v '^ *+' conftest.er1 >conftest.err
15810 rm -f conftest.er1
15811 cat conftest.err >&5
15812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15813 (exit $ac_status); } && {
15814 test -z "$ac_c_werror_flag" ||
15815 test ! -s conftest.err
15816 } && test -s conftest$ac_exeext &&
15817 $as_test_x conftest$ac_exeext; then
15818 eval "$as_ac_var=yes"
15819 else
15820 echo "$as_me: failed program was:" >&5
15821 sed 's/^/| /' conftest.$ac_ext >&5
15823 eval "$as_ac_var=no"
15826 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15827 conftest$ac_exeext conftest.$ac_ext
15829 ac_res=`eval echo '${'$as_ac_var'}'`
15830 { echo "$as_me:$LINENO: result: $ac_res" >&5
15831 echo "${ECHO_T}$ac_res" >&6; }
15832 if test `eval echo '${'$as_ac_var'}'` = yes; then
15833 cat >>confdefs.h <<_ACEOF
15834 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15835 _ACEOF
15836 case $ac_sys_system in
15837 CYGWIN*)
15839 cat >>confdefs.h <<\_ACEOF
15840 #define HAVE_BROKEN_PTHREAD_SIGMASK 1
15841 _ACEOF
15844 esac
15846 done
15851 # Check for enable-ipv6
15854 { echo "$as_me:$LINENO: checking if --enable-ipv6 is specified" >&5
15855 echo $ECHO_N "checking if --enable-ipv6 is specified... $ECHO_C" >&6; }
15856 # Check whether --enable-ipv6 was given.
15857 if test "${enable_ipv6+set}" = set; then
15858 enableval=$enable_ipv6; case "$enableval" in
15860 { echo "$as_me:$LINENO: result: no" >&5
15861 echo "${ECHO_T}no" >&6; }
15862 ipv6=no
15864 *) { echo "$as_me:$LINENO: result: yes" >&5
15865 echo "${ECHO_T}yes" >&6; }
15866 cat >>confdefs.h <<\_ACEOF
15867 #define ENABLE_IPV6 1
15868 _ACEOF
15870 ipv6=yes
15872 esac
15873 else
15875 if test "$cross_compiling" = yes; then
15876 { echo "$as_me:$LINENO: result: no" >&5
15877 echo "${ECHO_T}no" >&6; }
15878 ipv6=no
15880 else
15881 cat >conftest.$ac_ext <<_ACEOF
15882 /* confdefs.h. */
15883 _ACEOF
15884 cat confdefs.h >>conftest.$ac_ext
15885 cat >>conftest.$ac_ext <<_ACEOF
15886 /* end confdefs.h. */
15887 /* AF_INET6 available check */
15888 #include <sys/types.h>
15889 #include <sys/socket.h>
15890 main()
15892 if (socket(AF_INET6, SOCK_STREAM, 0) < 0)
15893 exit(1);
15894 else
15895 exit(0);
15898 _ACEOF
15899 rm -f conftest$ac_exeext
15900 if { (ac_try="$ac_link"
15901 case "(($ac_try" in
15902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15903 *) ac_try_echo=$ac_try;;
15904 esac
15905 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15906 (eval "$ac_link") 2>&5
15907 ac_status=$?
15908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15909 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15910 { (case "(($ac_try" in
15911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15912 *) ac_try_echo=$ac_try;;
15913 esac
15914 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15915 (eval "$ac_try") 2>&5
15916 ac_status=$?
15917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15918 (exit $ac_status); }; }; then
15919 { echo "$as_me:$LINENO: result: yes" >&5
15920 echo "${ECHO_T}yes" >&6; }
15921 ipv6=yes
15922 else
15923 echo "$as_me: program exited with status $ac_status" >&5
15924 echo "$as_me: failed program was:" >&5
15925 sed 's/^/| /' conftest.$ac_ext >&5
15927 ( exit $ac_status )
15928 { echo "$as_me:$LINENO: result: no" >&5
15929 echo "${ECHO_T}no" >&6; }
15930 ipv6=no
15932 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15937 if test "$ipv6" = "yes"; then
15938 { echo "$as_me:$LINENO: checking if RFC2553 API is available" >&5
15939 echo $ECHO_N "checking if RFC2553 API is available... $ECHO_C" >&6; }
15940 cat >conftest.$ac_ext <<_ACEOF
15941 /* confdefs.h. */
15942 _ACEOF
15943 cat confdefs.h >>conftest.$ac_ext
15944 cat >>conftest.$ac_ext <<_ACEOF
15945 /* end confdefs.h. */
15946 #include <sys/types.h>
15947 #include <netinet/in.h>
15949 main ()
15951 struct sockaddr_in6 x;
15952 x.sin6_scope_id;
15954 return 0;
15956 _ACEOF
15957 rm -f conftest.$ac_objext
15958 if { (ac_try="$ac_compile"
15959 case "(($ac_try" in
15960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15961 *) ac_try_echo=$ac_try;;
15962 esac
15963 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15964 (eval "$ac_compile") 2>conftest.er1
15965 ac_status=$?
15966 grep -v '^ *+' conftest.er1 >conftest.err
15967 rm -f conftest.er1
15968 cat conftest.err >&5
15969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15970 (exit $ac_status); } && {
15971 test -z "$ac_c_werror_flag" ||
15972 test ! -s conftest.err
15973 } && test -s conftest.$ac_objext; then
15974 { echo "$as_me:$LINENO: result: yes" >&5
15975 echo "${ECHO_T}yes" >&6; }
15976 ipv6=yes
15977 else
15978 echo "$as_me: failed program was:" >&5
15979 sed 's/^/| /' conftest.$ac_ext >&5
15981 { echo "$as_me:$LINENO: result: no" >&5
15982 echo "${ECHO_T}no" >&6; }
15983 ipv6=no
15986 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15989 if test "$ipv6" = "yes"; then
15990 cat >>confdefs.h <<\_ACEOF
15991 #define ENABLE_IPV6 1
15992 _ACEOF
15999 ipv6type=unknown
16000 ipv6lib=none
16001 ipv6trylibc=no
16003 if test "$ipv6" = "yes"; then
16004 { echo "$as_me:$LINENO: checking ipv6 stack type" >&5
16005 echo $ECHO_N "checking ipv6 stack type... $ECHO_C" >&6; }
16006 for i in inria kame linux-glibc linux-inet6 solaris toshiba v6d zeta;
16008 case $i in
16009 inria)
16010 cat >conftest.$ac_ext <<_ACEOF
16011 /* confdefs.h. */
16012 _ACEOF
16013 cat confdefs.h >>conftest.$ac_ext
16014 cat >>conftest.$ac_ext <<_ACEOF
16015 /* end confdefs.h. */
16017 #include <netinet/in.h>
16018 #ifdef IPV6_INRIA_VERSION
16020 #endif
16021 _ACEOF
16022 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16023 $EGREP "yes" >/dev/null 2>&1; then
16024 ipv6type=$i
16026 rm -f conftest*
16029 kame)
16030 cat >conftest.$ac_ext <<_ACEOF
16031 /* confdefs.h. */
16032 _ACEOF
16033 cat confdefs.h >>conftest.$ac_ext
16034 cat >>conftest.$ac_ext <<_ACEOF
16035 /* end confdefs.h. */
16037 #include <netinet/in.h>
16038 #ifdef __KAME__
16040 #endif
16041 _ACEOF
16042 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16043 $EGREP "yes" >/dev/null 2>&1; then
16044 ipv6type=$i;
16045 ipv6lib=inet6
16046 ipv6libdir=/usr/local/v6/lib
16047 ipv6trylibc=yes
16049 rm -f conftest*
16052 linux-glibc)
16053 cat >conftest.$ac_ext <<_ACEOF
16054 /* confdefs.h. */
16055 _ACEOF
16056 cat confdefs.h >>conftest.$ac_ext
16057 cat >>conftest.$ac_ext <<_ACEOF
16058 /* end confdefs.h. */
16060 #include <features.h>
16061 #if defined(__GLIBC__) && ((__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2))
16063 #endif
16064 _ACEOF
16065 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16066 $EGREP "yes" >/dev/null 2>&1; then
16067 ipv6type=$i;
16068 ipv6trylibc=yes
16070 rm -f conftest*
16073 linux-inet6)
16074 if test -d /usr/inet6; then
16075 ipv6type=$i
16076 ipv6lib=inet6
16077 ipv6libdir=/usr/inet6/lib
16078 BASECFLAGS="-I/usr/inet6/include $BASECFLAGS"
16081 solaris)
16082 if test -f /etc/netconfig; then
16083 if /usr/xpg4/bin/grep -q tcp6 /etc/netconfig; then
16084 ipv6type=$i
16085 ipv6trylibc=yes
16089 toshiba)
16090 cat >conftest.$ac_ext <<_ACEOF
16091 /* confdefs.h. */
16092 _ACEOF
16093 cat confdefs.h >>conftest.$ac_ext
16094 cat >>conftest.$ac_ext <<_ACEOF
16095 /* end confdefs.h. */
16097 #include <sys/param.h>
16098 #ifdef _TOSHIBA_INET6
16100 #endif
16101 _ACEOF
16102 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16103 $EGREP "yes" >/dev/null 2>&1; then
16104 ipv6type=$i;
16105 ipv6lib=inet6;
16106 ipv6libdir=/usr/local/v6/lib
16108 rm -f conftest*
16111 v6d)
16112 cat >conftest.$ac_ext <<_ACEOF
16113 /* confdefs.h. */
16114 _ACEOF
16115 cat confdefs.h >>conftest.$ac_ext
16116 cat >>conftest.$ac_ext <<_ACEOF
16117 /* end confdefs.h. */
16119 #include </usr/local/v6/include/sys/v6config.h>
16120 #ifdef __V6D__
16122 #endif
16123 _ACEOF
16124 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16125 $EGREP "yes" >/dev/null 2>&1; then
16126 ipv6type=$i;
16127 ipv6lib=v6;
16128 ipv6libdir=/usr/local/v6/lib;
16129 BASECFLAGS="-I/usr/local/v6/include $BASECFLAGS"
16131 rm -f conftest*
16134 zeta)
16135 cat >conftest.$ac_ext <<_ACEOF
16136 /* confdefs.h. */
16137 _ACEOF
16138 cat confdefs.h >>conftest.$ac_ext
16139 cat >>conftest.$ac_ext <<_ACEOF
16140 /* end confdefs.h. */
16142 #include <sys/param.h>
16143 #ifdef _ZETA_MINAMI_INET6
16145 #endif
16146 _ACEOF
16147 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16148 $EGREP "yes" >/dev/null 2>&1; then
16149 ipv6type=$i;
16150 ipv6lib=inet6;
16151 ipv6libdir=/usr/local/v6/lib
16153 rm -f conftest*
16156 esac
16157 if test "$ipv6type" != "unknown"; then
16158 break
16160 done
16161 { echo "$as_me:$LINENO: result: $ipv6type" >&5
16162 echo "${ECHO_T}$ipv6type" >&6; }
16165 if test "$ipv6" = "yes" -a "$ipv6lib" != "none"; then
16166 if test -d $ipv6libdir -a -f $ipv6libdir/lib$ipv6lib.a; then
16167 LIBS="-L$ipv6libdir -l$ipv6lib $LIBS"
16168 echo "using lib$ipv6lib"
16169 else
16170 if test $ipv6trylibc = "yes"; then
16171 echo "using libc"
16172 else
16173 echo 'Fatal: no $ipv6lib library found. cannot continue.'
16174 echo "You need to fetch lib$ipv6lib.a from appropriate"
16175 echo 'ipv6 kit and compile beforehand.'
16176 exit 1
16181 { echo "$as_me:$LINENO: checking for OSX 10.5 SDK or later" >&5
16182 echo $ECHO_N "checking for OSX 10.5 SDK or later... $ECHO_C" >&6; }
16183 cat >conftest.$ac_ext <<_ACEOF
16184 /* confdefs.h. */
16185 _ACEOF
16186 cat confdefs.h >>conftest.$ac_ext
16187 cat >>conftest.$ac_ext <<_ACEOF
16188 /* end confdefs.h. */
16189 #include <Carbon/Carbon.h>
16191 main ()
16193 FSIORefNum fRef = 0
16195 return 0;
16197 _ACEOF
16198 rm -f conftest.$ac_objext
16199 if { (ac_try="$ac_compile"
16200 case "(($ac_try" in
16201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16202 *) ac_try_echo=$ac_try;;
16203 esac
16204 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16205 (eval "$ac_compile") 2>conftest.er1
16206 ac_status=$?
16207 grep -v '^ *+' conftest.er1 >conftest.err
16208 rm -f conftest.er1
16209 cat conftest.err >&5
16210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16211 (exit $ac_status); } && {
16212 test -z "$ac_c_werror_flag" ||
16213 test ! -s conftest.err
16214 } && test -s conftest.$ac_objext; then
16216 cat >>confdefs.h <<\_ACEOF
16217 #define HAVE_OSX105_SDK 1
16218 _ACEOF
16220 { echo "$as_me:$LINENO: result: yes" >&5
16221 echo "${ECHO_T}yes" >&6; }
16222 else
16223 echo "$as_me: failed program was:" >&5
16224 sed 's/^/| /' conftest.$ac_ext >&5
16226 { echo "$as_me:$LINENO: result: no" >&5
16227 echo "${ECHO_T}no" >&6; }
16231 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16233 # Check for --with-doc-strings
16234 { echo "$as_me:$LINENO: checking for --with-doc-strings" >&5
16235 echo $ECHO_N "checking for --with-doc-strings... $ECHO_C" >&6; }
16237 # Check whether --with-doc-strings was given.
16238 if test "${with_doc_strings+set}" = set; then
16239 withval=$with_doc_strings;
16243 if test -z "$with_doc_strings"
16244 then with_doc_strings="yes"
16246 if test "$with_doc_strings" != "no"
16247 then
16249 cat >>confdefs.h <<\_ACEOF
16250 #define WITH_DOC_STRINGS 1
16251 _ACEOF
16254 { echo "$as_me:$LINENO: result: $with_doc_strings" >&5
16255 echo "${ECHO_T}$with_doc_strings" >&6; }
16257 # Check for Python-specific malloc support
16258 { echo "$as_me:$LINENO: checking for --with-tsc" >&5
16259 echo $ECHO_N "checking for --with-tsc... $ECHO_C" >&6; }
16261 # Check whether --with-tsc was given.
16262 if test "${with_tsc+set}" = set; then
16263 withval=$with_tsc;
16264 if test "$withval" != no
16265 then
16267 cat >>confdefs.h <<\_ACEOF
16268 #define WITH_TSC 1
16269 _ACEOF
16271 { echo "$as_me:$LINENO: result: yes" >&5
16272 echo "${ECHO_T}yes" >&6; }
16273 else { echo "$as_me:$LINENO: result: no" >&5
16274 echo "${ECHO_T}no" >&6; }
16276 else
16277 { echo "$as_me:$LINENO: result: no" >&5
16278 echo "${ECHO_T}no" >&6; }
16282 # Check for Python-specific malloc support
16283 { echo "$as_me:$LINENO: checking for --with-pymalloc" >&5
16284 echo $ECHO_N "checking for --with-pymalloc... $ECHO_C" >&6; }
16286 # Check whether --with-pymalloc was given.
16287 if test "${with_pymalloc+set}" = set; then
16288 withval=$with_pymalloc;
16292 if test -z "$with_pymalloc"
16293 then with_pymalloc="yes"
16295 if test "$with_pymalloc" != "no"
16296 then
16298 cat >>confdefs.h <<\_ACEOF
16299 #define WITH_PYMALLOC 1
16300 _ACEOF
16303 { echo "$as_me:$LINENO: result: $with_pymalloc" >&5
16304 echo "${ECHO_T}$with_pymalloc" >&6; }
16306 # Check for --with-wctype-functions
16307 { echo "$as_me:$LINENO: checking for --with-wctype-functions" >&5
16308 echo $ECHO_N "checking for --with-wctype-functions... $ECHO_C" >&6; }
16310 # Check whether --with-wctype-functions was given.
16311 if test "${with_wctype_functions+set}" = set; then
16312 withval=$with_wctype_functions;
16313 if test "$withval" != no
16314 then
16316 cat >>confdefs.h <<\_ACEOF
16317 #define WANT_WCTYPE_FUNCTIONS 1
16318 _ACEOF
16320 { echo "$as_me:$LINENO: result: yes" >&5
16321 echo "${ECHO_T}yes" >&6; }
16322 else { echo "$as_me:$LINENO: result: no" >&5
16323 echo "${ECHO_T}no" >&6; }
16325 else
16326 { echo "$as_me:$LINENO: result: no" >&5
16327 echo "${ECHO_T}no" >&6; }
16331 # -I${DLINCLDIR} is added to the compile rule for importdl.o
16333 DLINCLDIR=.
16335 # the dlopen() function means we might want to use dynload_shlib.o. some
16336 # platforms, such as AIX, have dlopen(), but don't want to use it.
16338 for ac_func in dlopen
16340 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16341 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16342 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16343 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16344 echo $ECHO_N "(cached) $ECHO_C" >&6
16345 else
16346 cat >conftest.$ac_ext <<_ACEOF
16347 /* confdefs.h. */
16348 _ACEOF
16349 cat confdefs.h >>conftest.$ac_ext
16350 cat >>conftest.$ac_ext <<_ACEOF
16351 /* end confdefs.h. */
16352 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16353 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16354 #define $ac_func innocuous_$ac_func
16356 /* System header to define __stub macros and hopefully few prototypes,
16357 which can conflict with char $ac_func (); below.
16358 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16359 <limits.h> exists even on freestanding compilers. */
16361 #ifdef __STDC__
16362 # include <limits.h>
16363 #else
16364 # include <assert.h>
16365 #endif
16367 #undef $ac_func
16369 /* Override any GCC internal prototype to avoid an error.
16370 Use char because int might match the return type of a GCC
16371 builtin and then its argument prototype would still apply. */
16372 #ifdef __cplusplus
16373 extern "C"
16374 #endif
16375 char $ac_func ();
16376 /* The GNU C library defines this for functions which it implements
16377 to always fail with ENOSYS. Some functions are actually named
16378 something starting with __ and the normal name is an alias. */
16379 #if defined __stub_$ac_func || defined __stub___$ac_func
16380 choke me
16381 #endif
16384 main ()
16386 return $ac_func ();
16388 return 0;
16390 _ACEOF
16391 rm -f conftest.$ac_objext conftest$ac_exeext
16392 if { (ac_try="$ac_link"
16393 case "(($ac_try" in
16394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16395 *) ac_try_echo=$ac_try;;
16396 esac
16397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16398 (eval "$ac_link") 2>conftest.er1
16399 ac_status=$?
16400 grep -v '^ *+' conftest.er1 >conftest.err
16401 rm -f conftest.er1
16402 cat conftest.err >&5
16403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16404 (exit $ac_status); } && {
16405 test -z "$ac_c_werror_flag" ||
16406 test ! -s conftest.err
16407 } && test -s conftest$ac_exeext &&
16408 $as_test_x conftest$ac_exeext; then
16409 eval "$as_ac_var=yes"
16410 else
16411 echo "$as_me: failed program was:" >&5
16412 sed 's/^/| /' conftest.$ac_ext >&5
16414 eval "$as_ac_var=no"
16417 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16418 conftest$ac_exeext conftest.$ac_ext
16420 ac_res=`eval echo '${'$as_ac_var'}'`
16421 { echo "$as_me:$LINENO: result: $ac_res" >&5
16422 echo "${ECHO_T}$ac_res" >&6; }
16423 if test `eval echo '${'$as_ac_var'}'` = yes; then
16424 cat >>confdefs.h <<_ACEOF
16425 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16426 _ACEOF
16429 done
16432 # DYNLOADFILE specifies which dynload_*.o file we will use for dynamic
16433 # loading of modules.
16435 { echo "$as_me:$LINENO: checking DYNLOADFILE" >&5
16436 echo $ECHO_N "checking DYNLOADFILE... $ECHO_C" >&6; }
16437 if test -z "$DYNLOADFILE"
16438 then
16439 case $ac_sys_system/$ac_sys_release in
16440 AIX*) # Use dynload_shlib.c and dlopen() if we have it; otherwise dynload_aix.c
16441 if test "$ac_cv_func_dlopen" = yes
16442 then DYNLOADFILE="dynload_shlib.o"
16443 else DYNLOADFILE="dynload_aix.o"
16446 BeOS*) DYNLOADFILE="dynload_beos.o";;
16447 hp*|HP*) DYNLOADFILE="dynload_hpux.o";;
16448 # Use dynload_next.c only on 10.2 and below, which don't have native dlopen()
16449 Darwin/[0156]\..*) DYNLOADFILE="dynload_next.o";;
16450 atheos*) DYNLOADFILE="dynload_atheos.o";;
16452 # use dynload_shlib.c and dlopen() if we have it; otherwise stub
16453 # out any dynamic loading
16454 if test "$ac_cv_func_dlopen" = yes
16455 then DYNLOADFILE="dynload_shlib.o"
16456 else DYNLOADFILE="dynload_stub.o"
16459 esac
16461 { echo "$as_me:$LINENO: result: $DYNLOADFILE" >&5
16462 echo "${ECHO_T}$DYNLOADFILE" >&6; }
16463 if test "$DYNLOADFILE" != "dynload_stub.o"
16464 then
16466 cat >>confdefs.h <<\_ACEOF
16467 #define HAVE_DYNAMIC_LOADING 1
16468 _ACEOF
16472 # MACHDEP_OBJS can be set to platform-specific object files needed by Python
16475 { echo "$as_me:$LINENO: checking MACHDEP_OBJS" >&5
16476 echo $ECHO_N "checking MACHDEP_OBJS... $ECHO_C" >&6; }
16477 if test -z "$MACHDEP_OBJS"
16478 then
16479 MACHDEP_OBJS=$extra_machdep_objs
16480 else
16481 MACHDEP_OBJS="$MACHDEP_OBJS $extra_machdep_objs"
16483 { echo "$as_me:$LINENO: result: MACHDEP_OBJS" >&5
16484 echo "${ECHO_T}MACHDEP_OBJS" >&6; }
16486 # checks for library functions
16568 for ac_func in alarm setitimer getitimer bind_textdomain_codeset chown \
16569 clock confstr ctermid execv fchmod fchown fork fpathconf ftime ftruncate \
16570 gai_strerror getgroups getlogin getloadavg getpeername getpgid getpid \
16571 getpriority getpwent getspnam getspent getsid getwd \
16572 kill killpg lchmod lchown lstat mkfifo mknod mktime \
16573 mremap nice pathconf pause plock poll pthread_init \
16574 putenv readlink realpath \
16575 select setegid seteuid setgid \
16576 setlocale setregid setreuid setsid setpgid setpgrp setuid setvbuf snprintf \
16577 sigaction siginterrupt sigrelse strftime \
16578 sysconf tcgetpgrp tcsetpgrp tempnam timegm times tmpfile tmpnam tmpnam_r \
16579 truncate uname unsetenv utimes waitpid wait3 wait4 wcscoll _getpty
16581 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16582 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16583 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16584 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16585 echo $ECHO_N "(cached) $ECHO_C" >&6
16586 else
16587 cat >conftest.$ac_ext <<_ACEOF
16588 /* confdefs.h. */
16589 _ACEOF
16590 cat confdefs.h >>conftest.$ac_ext
16591 cat >>conftest.$ac_ext <<_ACEOF
16592 /* end confdefs.h. */
16593 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16594 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16595 #define $ac_func innocuous_$ac_func
16597 /* System header to define __stub macros and hopefully few prototypes,
16598 which can conflict with char $ac_func (); below.
16599 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16600 <limits.h> exists even on freestanding compilers. */
16602 #ifdef __STDC__
16603 # include <limits.h>
16604 #else
16605 # include <assert.h>
16606 #endif
16608 #undef $ac_func
16610 /* Override any GCC internal prototype to avoid an error.
16611 Use char because int might match the return type of a GCC
16612 builtin and then its argument prototype would still apply. */
16613 #ifdef __cplusplus
16614 extern "C"
16615 #endif
16616 char $ac_func ();
16617 /* The GNU C library defines this for functions which it implements
16618 to always fail with ENOSYS. Some functions are actually named
16619 something starting with __ and the normal name is an alias. */
16620 #if defined __stub_$ac_func || defined __stub___$ac_func
16621 choke me
16622 #endif
16625 main ()
16627 return $ac_func ();
16629 return 0;
16631 _ACEOF
16632 rm -f conftest.$ac_objext conftest$ac_exeext
16633 if { (ac_try="$ac_link"
16634 case "(($ac_try" in
16635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16636 *) ac_try_echo=$ac_try;;
16637 esac
16638 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16639 (eval "$ac_link") 2>conftest.er1
16640 ac_status=$?
16641 grep -v '^ *+' conftest.er1 >conftest.err
16642 rm -f conftest.er1
16643 cat conftest.err >&5
16644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16645 (exit $ac_status); } && {
16646 test -z "$ac_c_werror_flag" ||
16647 test ! -s conftest.err
16648 } && test -s conftest$ac_exeext &&
16649 $as_test_x conftest$ac_exeext; then
16650 eval "$as_ac_var=yes"
16651 else
16652 echo "$as_me: failed program was:" >&5
16653 sed 's/^/| /' conftest.$ac_ext >&5
16655 eval "$as_ac_var=no"
16658 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16659 conftest$ac_exeext conftest.$ac_ext
16661 ac_res=`eval echo '${'$as_ac_var'}'`
16662 { echo "$as_me:$LINENO: result: $ac_res" >&5
16663 echo "${ECHO_T}$ac_res" >&6; }
16664 if test `eval echo '${'$as_ac_var'}'` = yes; then
16665 cat >>confdefs.h <<_ACEOF
16666 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16667 _ACEOF
16670 done
16673 # For some functions, having a definition is not sufficient, since
16674 # we want to take their address.
16675 { echo "$as_me:$LINENO: checking for chroot" >&5
16676 echo $ECHO_N "checking for chroot... $ECHO_C" >&6; }
16677 cat >conftest.$ac_ext <<_ACEOF
16678 /* confdefs.h. */
16679 _ACEOF
16680 cat confdefs.h >>conftest.$ac_ext
16681 cat >>conftest.$ac_ext <<_ACEOF
16682 /* end confdefs.h. */
16683 #include <unistd.h>
16685 main ()
16687 void *x=chroot
16689 return 0;
16691 _ACEOF
16692 rm -f conftest.$ac_objext
16693 if { (ac_try="$ac_compile"
16694 case "(($ac_try" in
16695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16696 *) ac_try_echo=$ac_try;;
16697 esac
16698 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16699 (eval "$ac_compile") 2>conftest.er1
16700 ac_status=$?
16701 grep -v '^ *+' conftest.er1 >conftest.err
16702 rm -f conftest.er1
16703 cat conftest.err >&5
16704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16705 (exit $ac_status); } && {
16706 test -z "$ac_c_werror_flag" ||
16707 test ! -s conftest.err
16708 } && test -s conftest.$ac_objext; then
16710 cat >>confdefs.h <<\_ACEOF
16711 #define HAVE_CHROOT 1
16712 _ACEOF
16714 { echo "$as_me:$LINENO: result: yes" >&5
16715 echo "${ECHO_T}yes" >&6; }
16716 else
16717 echo "$as_me: failed program was:" >&5
16718 sed 's/^/| /' conftest.$ac_ext >&5
16720 { echo "$as_me:$LINENO: result: no" >&5
16721 echo "${ECHO_T}no" >&6; }
16725 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16726 { echo "$as_me:$LINENO: checking for link" >&5
16727 echo $ECHO_N "checking for link... $ECHO_C" >&6; }
16728 cat >conftest.$ac_ext <<_ACEOF
16729 /* confdefs.h. */
16730 _ACEOF
16731 cat confdefs.h >>conftest.$ac_ext
16732 cat >>conftest.$ac_ext <<_ACEOF
16733 /* end confdefs.h. */
16734 #include <unistd.h>
16736 main ()
16738 void *x=link
16740 return 0;
16742 _ACEOF
16743 rm -f conftest.$ac_objext
16744 if { (ac_try="$ac_compile"
16745 case "(($ac_try" in
16746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16747 *) ac_try_echo=$ac_try;;
16748 esac
16749 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16750 (eval "$ac_compile") 2>conftest.er1
16751 ac_status=$?
16752 grep -v '^ *+' conftest.er1 >conftest.err
16753 rm -f conftest.er1
16754 cat conftest.err >&5
16755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16756 (exit $ac_status); } && {
16757 test -z "$ac_c_werror_flag" ||
16758 test ! -s conftest.err
16759 } && test -s conftest.$ac_objext; then
16761 cat >>confdefs.h <<\_ACEOF
16762 #define HAVE_LINK 1
16763 _ACEOF
16765 { echo "$as_me:$LINENO: result: yes" >&5
16766 echo "${ECHO_T}yes" >&6; }
16767 else
16768 echo "$as_me: failed program was:" >&5
16769 sed 's/^/| /' conftest.$ac_ext >&5
16771 { echo "$as_me:$LINENO: result: no" >&5
16772 echo "${ECHO_T}no" >&6; }
16776 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16777 { echo "$as_me:$LINENO: checking for symlink" >&5
16778 echo $ECHO_N "checking for symlink... $ECHO_C" >&6; }
16779 cat >conftest.$ac_ext <<_ACEOF
16780 /* confdefs.h. */
16781 _ACEOF
16782 cat confdefs.h >>conftest.$ac_ext
16783 cat >>conftest.$ac_ext <<_ACEOF
16784 /* end confdefs.h. */
16785 #include <unistd.h>
16787 main ()
16789 void *x=symlink
16791 return 0;
16793 _ACEOF
16794 rm -f conftest.$ac_objext
16795 if { (ac_try="$ac_compile"
16796 case "(($ac_try" in
16797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16798 *) ac_try_echo=$ac_try;;
16799 esac
16800 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16801 (eval "$ac_compile") 2>conftest.er1
16802 ac_status=$?
16803 grep -v '^ *+' conftest.er1 >conftest.err
16804 rm -f conftest.er1
16805 cat conftest.err >&5
16806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16807 (exit $ac_status); } && {
16808 test -z "$ac_c_werror_flag" ||
16809 test ! -s conftest.err
16810 } && test -s conftest.$ac_objext; then
16812 cat >>confdefs.h <<\_ACEOF
16813 #define HAVE_SYMLINK 1
16814 _ACEOF
16816 { echo "$as_me:$LINENO: result: yes" >&5
16817 echo "${ECHO_T}yes" >&6; }
16818 else
16819 echo "$as_me: failed program was:" >&5
16820 sed 's/^/| /' conftest.$ac_ext >&5
16822 { echo "$as_me:$LINENO: result: no" >&5
16823 echo "${ECHO_T}no" >&6; }
16827 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16828 { echo "$as_me:$LINENO: checking for fchdir" >&5
16829 echo $ECHO_N "checking for fchdir... $ECHO_C" >&6; }
16830 cat >conftest.$ac_ext <<_ACEOF
16831 /* confdefs.h. */
16832 _ACEOF
16833 cat confdefs.h >>conftest.$ac_ext
16834 cat >>conftest.$ac_ext <<_ACEOF
16835 /* end confdefs.h. */
16836 #include <unistd.h>
16838 main ()
16840 void *x=fchdir
16842 return 0;
16844 _ACEOF
16845 rm -f conftest.$ac_objext
16846 if { (ac_try="$ac_compile"
16847 case "(($ac_try" in
16848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16849 *) ac_try_echo=$ac_try;;
16850 esac
16851 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16852 (eval "$ac_compile") 2>conftest.er1
16853 ac_status=$?
16854 grep -v '^ *+' conftest.er1 >conftest.err
16855 rm -f conftest.er1
16856 cat conftest.err >&5
16857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16858 (exit $ac_status); } && {
16859 test -z "$ac_c_werror_flag" ||
16860 test ! -s conftest.err
16861 } && test -s conftest.$ac_objext; then
16863 cat >>confdefs.h <<\_ACEOF
16864 #define HAVE_FCHDIR 1
16865 _ACEOF
16867 { echo "$as_me:$LINENO: result: yes" >&5
16868 echo "${ECHO_T}yes" >&6; }
16869 else
16870 echo "$as_me: failed program was:" >&5
16871 sed 's/^/| /' conftest.$ac_ext >&5
16873 { echo "$as_me:$LINENO: result: no" >&5
16874 echo "${ECHO_T}no" >&6; }
16878 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16879 { echo "$as_me:$LINENO: checking for fsync" >&5
16880 echo $ECHO_N "checking for fsync... $ECHO_C" >&6; }
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. */
16887 #include <unistd.h>
16889 main ()
16891 void *x=fsync
16893 return 0;
16895 _ACEOF
16896 rm -f conftest.$ac_objext
16897 if { (ac_try="$ac_compile"
16898 case "(($ac_try" in
16899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16900 *) ac_try_echo=$ac_try;;
16901 esac
16902 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16903 (eval "$ac_compile") 2>conftest.er1
16904 ac_status=$?
16905 grep -v '^ *+' conftest.er1 >conftest.err
16906 rm -f conftest.er1
16907 cat conftest.err >&5
16908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16909 (exit $ac_status); } && {
16910 test -z "$ac_c_werror_flag" ||
16911 test ! -s conftest.err
16912 } && test -s conftest.$ac_objext; then
16914 cat >>confdefs.h <<\_ACEOF
16915 #define HAVE_FSYNC 1
16916 _ACEOF
16918 { echo "$as_me:$LINENO: result: yes" >&5
16919 echo "${ECHO_T}yes" >&6; }
16920 else
16921 echo "$as_me: failed program was:" >&5
16922 sed 's/^/| /' conftest.$ac_ext >&5
16924 { echo "$as_me:$LINENO: result: no" >&5
16925 echo "${ECHO_T}no" >&6; }
16929 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16930 { echo "$as_me:$LINENO: checking for fdatasync" >&5
16931 echo $ECHO_N "checking for fdatasync... $ECHO_C" >&6; }
16932 cat >conftest.$ac_ext <<_ACEOF
16933 /* confdefs.h. */
16934 _ACEOF
16935 cat confdefs.h >>conftest.$ac_ext
16936 cat >>conftest.$ac_ext <<_ACEOF
16937 /* end confdefs.h. */
16938 #include <unistd.h>
16940 main ()
16942 void *x=fdatasync
16944 return 0;
16946 _ACEOF
16947 rm -f conftest.$ac_objext
16948 if { (ac_try="$ac_compile"
16949 case "(($ac_try" in
16950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16951 *) ac_try_echo=$ac_try;;
16952 esac
16953 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16954 (eval "$ac_compile") 2>conftest.er1
16955 ac_status=$?
16956 grep -v '^ *+' conftest.er1 >conftest.err
16957 rm -f conftest.er1
16958 cat conftest.err >&5
16959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16960 (exit $ac_status); } && {
16961 test -z "$ac_c_werror_flag" ||
16962 test ! -s conftest.err
16963 } && test -s conftest.$ac_objext; then
16965 cat >>confdefs.h <<\_ACEOF
16966 #define HAVE_FDATASYNC 1
16967 _ACEOF
16969 { echo "$as_me:$LINENO: result: yes" >&5
16970 echo "${ECHO_T}yes" >&6; }
16971 else
16972 echo "$as_me: failed program was:" >&5
16973 sed 's/^/| /' conftest.$ac_ext >&5
16975 { echo "$as_me:$LINENO: result: no" >&5
16976 echo "${ECHO_T}no" >&6; }
16980 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16981 { echo "$as_me:$LINENO: checking for epoll" >&5
16982 echo $ECHO_N "checking for epoll... $ECHO_C" >&6; }
16983 cat >conftest.$ac_ext <<_ACEOF
16984 /* confdefs.h. */
16985 _ACEOF
16986 cat confdefs.h >>conftest.$ac_ext
16987 cat >>conftest.$ac_ext <<_ACEOF
16988 /* end confdefs.h. */
16989 #include <sys/epoll.h>
16991 main ()
16993 void *x=epoll_create
16995 return 0;
16997 _ACEOF
16998 rm -f conftest.$ac_objext
16999 if { (ac_try="$ac_compile"
17000 case "(($ac_try" in
17001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17002 *) ac_try_echo=$ac_try;;
17003 esac
17004 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17005 (eval "$ac_compile") 2>conftest.er1
17006 ac_status=$?
17007 grep -v '^ *+' conftest.er1 >conftest.err
17008 rm -f conftest.er1
17009 cat conftest.err >&5
17010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17011 (exit $ac_status); } && {
17012 test -z "$ac_c_werror_flag" ||
17013 test ! -s conftest.err
17014 } && test -s conftest.$ac_objext; then
17016 cat >>confdefs.h <<\_ACEOF
17017 #define HAVE_EPOLL 1
17018 _ACEOF
17020 { echo "$as_me:$LINENO: result: yes" >&5
17021 echo "${ECHO_T}yes" >&6; }
17022 else
17023 echo "$as_me: failed program was:" >&5
17024 sed 's/^/| /' conftest.$ac_ext >&5
17026 { echo "$as_me:$LINENO: result: no" >&5
17027 echo "${ECHO_T}no" >&6; }
17031 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17032 { echo "$as_me:$LINENO: checking for kqueue" >&5
17033 echo $ECHO_N "checking for kqueue... $ECHO_C" >&6; }
17034 cat >conftest.$ac_ext <<_ACEOF
17035 /* confdefs.h. */
17036 _ACEOF
17037 cat confdefs.h >>conftest.$ac_ext
17038 cat >>conftest.$ac_ext <<_ACEOF
17039 /* end confdefs.h. */
17041 #include <sys/types.h>
17042 #include <sys/event.h>
17045 main ()
17047 int x=kqueue()
17049 return 0;
17051 _ACEOF
17052 rm -f conftest.$ac_objext
17053 if { (ac_try="$ac_compile"
17054 case "(($ac_try" in
17055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17056 *) ac_try_echo=$ac_try;;
17057 esac
17058 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17059 (eval "$ac_compile") 2>conftest.er1
17060 ac_status=$?
17061 grep -v '^ *+' conftest.er1 >conftest.err
17062 rm -f conftest.er1
17063 cat conftest.err >&5
17064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17065 (exit $ac_status); } && {
17066 test -z "$ac_c_werror_flag" ||
17067 test ! -s conftest.err
17068 } && test -s conftest.$ac_objext; then
17070 cat >>confdefs.h <<\_ACEOF
17071 #define HAVE_KQUEUE 1
17072 _ACEOF
17074 { echo "$as_me:$LINENO: result: yes" >&5
17075 echo "${ECHO_T}yes" >&6; }
17076 else
17077 echo "$as_me: failed program was:" >&5
17078 sed 's/^/| /' conftest.$ac_ext >&5
17080 { echo "$as_me:$LINENO: result: no" >&5
17081 echo "${ECHO_T}no" >&6; }
17085 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17086 # On some systems (eg. FreeBSD 5), we would find a definition of the
17087 # functions ctermid_r, setgroups in the library, but no prototype
17088 # (e.g. because we use _XOPEN_SOURCE). See whether we can take their
17089 # address to avoid compiler warnings and potential miscompilations
17090 # because of the missing prototypes.
17092 { echo "$as_me:$LINENO: checking for ctermid_r" >&5
17093 echo $ECHO_N "checking for ctermid_r... $ECHO_C" >&6; }
17094 cat >conftest.$ac_ext <<_ACEOF
17095 /* confdefs.h. */
17096 _ACEOF
17097 cat confdefs.h >>conftest.$ac_ext
17098 cat >>conftest.$ac_ext <<_ACEOF
17099 /* end confdefs.h. */
17101 #include "confdefs.h"
17102 #include <stdio.h>
17105 main ()
17107 void* p = ctermid_r
17109 return 0;
17111 _ACEOF
17112 rm -f conftest.$ac_objext
17113 if { (ac_try="$ac_compile"
17114 case "(($ac_try" in
17115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17116 *) ac_try_echo=$ac_try;;
17117 esac
17118 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17119 (eval "$ac_compile") 2>conftest.er1
17120 ac_status=$?
17121 grep -v '^ *+' conftest.er1 >conftest.err
17122 rm -f conftest.er1
17123 cat conftest.err >&5
17124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17125 (exit $ac_status); } && {
17126 test -z "$ac_c_werror_flag" ||
17127 test ! -s conftest.err
17128 } && test -s conftest.$ac_objext; then
17130 cat >>confdefs.h <<\_ACEOF
17131 #define HAVE_CTERMID_R 1
17132 _ACEOF
17134 { echo "$as_me:$LINENO: result: yes" >&5
17135 echo "${ECHO_T}yes" >&6; }
17136 else
17137 echo "$as_me: failed program was:" >&5
17138 sed 's/^/| /' conftest.$ac_ext >&5
17140 { echo "$as_me:$LINENO: result: no" >&5
17141 echo "${ECHO_T}no" >&6; }
17145 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17147 { echo "$as_me:$LINENO: checking for flock" >&5
17148 echo $ECHO_N "checking for flock... $ECHO_C" >&6; }
17149 cat >conftest.$ac_ext <<_ACEOF
17150 /* confdefs.h. */
17151 _ACEOF
17152 cat confdefs.h >>conftest.$ac_ext
17153 cat >>conftest.$ac_ext <<_ACEOF
17154 /* end confdefs.h. */
17156 #include "confdefs.h"
17157 #include <sys/file.h>
17160 main ()
17162 void* p = flock
17164 return 0;
17166 _ACEOF
17167 rm -f conftest.$ac_objext
17168 if { (ac_try="$ac_compile"
17169 case "(($ac_try" in
17170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17171 *) ac_try_echo=$ac_try;;
17172 esac
17173 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17174 (eval "$ac_compile") 2>conftest.er1
17175 ac_status=$?
17176 grep -v '^ *+' conftest.er1 >conftest.err
17177 rm -f conftest.er1
17178 cat conftest.err >&5
17179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17180 (exit $ac_status); } && {
17181 test -z "$ac_c_werror_flag" ||
17182 test ! -s conftest.err
17183 } && test -s conftest.$ac_objext; then
17185 cat >>confdefs.h <<\_ACEOF
17186 #define HAVE_FLOCK 1
17187 _ACEOF
17189 { echo "$as_me:$LINENO: result: yes" >&5
17190 echo "${ECHO_T}yes" >&6; }
17191 else
17192 echo "$as_me: failed program was:" >&5
17193 sed 's/^/| /' conftest.$ac_ext >&5
17195 { echo "$as_me:$LINENO: result: no" >&5
17196 echo "${ECHO_T}no" >&6; }
17200 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17202 { echo "$as_me:$LINENO: checking for getpagesize" >&5
17203 echo $ECHO_N "checking for getpagesize... $ECHO_C" >&6; }
17204 cat >conftest.$ac_ext <<_ACEOF
17205 /* confdefs.h. */
17206 _ACEOF
17207 cat confdefs.h >>conftest.$ac_ext
17208 cat >>conftest.$ac_ext <<_ACEOF
17209 /* end confdefs.h. */
17211 #include "confdefs.h"
17212 #include <unistd.h>
17215 main ()
17217 void* p = getpagesize
17219 return 0;
17221 _ACEOF
17222 rm -f conftest.$ac_objext
17223 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
17230 ac_status=$?
17231 grep -v '^ *+' conftest.er1 >conftest.err
17232 rm -f conftest.er1
17233 cat conftest.err >&5
17234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17235 (exit $ac_status); } && {
17236 test -z "$ac_c_werror_flag" ||
17237 test ! -s conftest.err
17238 } && test -s conftest.$ac_objext; then
17240 cat >>confdefs.h <<\_ACEOF
17241 #define HAVE_GETPAGESIZE 1
17242 _ACEOF
17244 { echo "$as_me:$LINENO: result: yes" >&5
17245 echo "${ECHO_T}yes" >&6; }
17246 else
17247 echo "$as_me: failed program was:" >&5
17248 sed 's/^/| /' conftest.$ac_ext >&5
17250 { echo "$as_me:$LINENO: result: no" >&5
17251 echo "${ECHO_T}no" >&6; }
17255 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17257 for ac_prog in true
17259 # Extract the first word of "$ac_prog", so it can be a program name with args.
17260 set dummy $ac_prog; ac_word=$2
17261 { echo "$as_me:$LINENO: checking for $ac_word" >&5
17262 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
17263 if test "${ac_cv_prog_TRUE+set}" = set; then
17264 echo $ECHO_N "(cached) $ECHO_C" >&6
17265 else
17266 if test -n "$TRUE"; then
17267 ac_cv_prog_TRUE="$TRUE" # Let the user override the test.
17268 else
17269 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17270 for as_dir in $PATH
17272 IFS=$as_save_IFS
17273 test -z "$as_dir" && as_dir=.
17274 for ac_exec_ext in '' $ac_executable_extensions; do
17275 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17276 ac_cv_prog_TRUE="$ac_prog"
17277 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17278 break 2
17280 done
17281 done
17282 IFS=$as_save_IFS
17286 TRUE=$ac_cv_prog_TRUE
17287 if test -n "$TRUE"; then
17288 { echo "$as_me:$LINENO: result: $TRUE" >&5
17289 echo "${ECHO_T}$TRUE" >&6; }
17290 else
17291 { echo "$as_me:$LINENO: result: no" >&5
17292 echo "${ECHO_T}no" >&6; }
17296 test -n "$TRUE" && break
17297 done
17298 test -n "$TRUE" || TRUE="/bin/true"
17301 { echo "$as_me:$LINENO: checking for inet_aton in -lc" >&5
17302 echo $ECHO_N "checking for inet_aton in -lc... $ECHO_C" >&6; }
17303 if test "${ac_cv_lib_c_inet_aton+set}" = set; then
17304 echo $ECHO_N "(cached) $ECHO_C" >&6
17305 else
17306 ac_check_lib_save_LIBS=$LIBS
17307 LIBS="-lc $LIBS"
17308 cat >conftest.$ac_ext <<_ACEOF
17309 /* confdefs.h. */
17310 _ACEOF
17311 cat confdefs.h >>conftest.$ac_ext
17312 cat >>conftest.$ac_ext <<_ACEOF
17313 /* end confdefs.h. */
17315 /* Override any GCC internal prototype to avoid an error.
17316 Use char because int might match the return type of a GCC
17317 builtin and then its argument prototype would still apply. */
17318 #ifdef __cplusplus
17319 extern "C"
17320 #endif
17321 char inet_aton ();
17323 main ()
17325 return inet_aton ();
17327 return 0;
17329 _ACEOF
17330 rm -f conftest.$ac_objext conftest$ac_exeext
17331 if { (ac_try="$ac_link"
17332 case "(($ac_try" in
17333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17334 *) ac_try_echo=$ac_try;;
17335 esac
17336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17337 (eval "$ac_link") 2>conftest.er1
17338 ac_status=$?
17339 grep -v '^ *+' conftest.er1 >conftest.err
17340 rm -f conftest.er1
17341 cat conftest.err >&5
17342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17343 (exit $ac_status); } && {
17344 test -z "$ac_c_werror_flag" ||
17345 test ! -s conftest.err
17346 } && test -s conftest$ac_exeext &&
17347 $as_test_x conftest$ac_exeext; then
17348 ac_cv_lib_c_inet_aton=yes
17349 else
17350 echo "$as_me: failed program was:" >&5
17351 sed 's/^/| /' conftest.$ac_ext >&5
17353 ac_cv_lib_c_inet_aton=no
17356 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17357 conftest$ac_exeext conftest.$ac_ext
17358 LIBS=$ac_check_lib_save_LIBS
17360 { echo "$as_me:$LINENO: result: $ac_cv_lib_c_inet_aton" >&5
17361 echo "${ECHO_T}$ac_cv_lib_c_inet_aton" >&6; }
17362 if test $ac_cv_lib_c_inet_aton = yes; then
17363 $ac_cv_prog_TRUE
17364 else
17366 { echo "$as_me:$LINENO: checking for inet_aton in -lresolv" >&5
17367 echo $ECHO_N "checking for inet_aton in -lresolv... $ECHO_C" >&6; }
17368 if test "${ac_cv_lib_resolv_inet_aton+set}" = set; then
17369 echo $ECHO_N "(cached) $ECHO_C" >&6
17370 else
17371 ac_check_lib_save_LIBS=$LIBS
17372 LIBS="-lresolv $LIBS"
17373 cat >conftest.$ac_ext <<_ACEOF
17374 /* confdefs.h. */
17375 _ACEOF
17376 cat confdefs.h >>conftest.$ac_ext
17377 cat >>conftest.$ac_ext <<_ACEOF
17378 /* end confdefs.h. */
17380 /* Override any GCC internal prototype to avoid an error.
17381 Use char because int might match the return type of a GCC
17382 builtin and then its argument prototype would still apply. */
17383 #ifdef __cplusplus
17384 extern "C"
17385 #endif
17386 char inet_aton ();
17388 main ()
17390 return inet_aton ();
17392 return 0;
17394 _ACEOF
17395 rm -f conftest.$ac_objext conftest$ac_exeext
17396 if { (ac_try="$ac_link"
17397 case "(($ac_try" in
17398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17399 *) ac_try_echo=$ac_try;;
17400 esac
17401 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17402 (eval "$ac_link") 2>conftest.er1
17403 ac_status=$?
17404 grep -v '^ *+' conftest.er1 >conftest.err
17405 rm -f conftest.er1
17406 cat conftest.err >&5
17407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17408 (exit $ac_status); } && {
17409 test -z "$ac_c_werror_flag" ||
17410 test ! -s conftest.err
17411 } && test -s conftest$ac_exeext &&
17412 $as_test_x conftest$ac_exeext; then
17413 ac_cv_lib_resolv_inet_aton=yes
17414 else
17415 echo "$as_me: failed program was:" >&5
17416 sed 's/^/| /' conftest.$ac_ext >&5
17418 ac_cv_lib_resolv_inet_aton=no
17421 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17422 conftest$ac_exeext conftest.$ac_ext
17423 LIBS=$ac_check_lib_save_LIBS
17425 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_aton" >&5
17426 echo "${ECHO_T}$ac_cv_lib_resolv_inet_aton" >&6; }
17427 if test $ac_cv_lib_resolv_inet_aton = yes; then
17428 cat >>confdefs.h <<_ACEOF
17429 #define HAVE_LIBRESOLV 1
17430 _ACEOF
17432 LIBS="-lresolv $LIBS"
17440 # On Tru64, chflags seems to be present, but calling it will
17441 # exit Python
17442 { echo "$as_me:$LINENO: checking for chflags" >&5
17443 echo $ECHO_N "checking for chflags... $ECHO_C" >&6; }
17444 if test "$cross_compiling" = yes; then
17445 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
17446 See \`config.log' for more details." >&5
17447 echo "$as_me: error: cannot run test program while cross compiling
17448 See \`config.log' for more details." >&2;}
17449 { (exit 1); exit 1; }; }
17450 else
17451 cat >conftest.$ac_ext <<_ACEOF
17452 /* confdefs.h. */
17453 _ACEOF
17454 cat confdefs.h >>conftest.$ac_ext
17455 cat >>conftest.$ac_ext <<_ACEOF
17456 /* end confdefs.h. */
17458 #include <sys/stat.h>
17459 #include <unistd.h>
17460 int main(int argc, char*argv[])
17462 if(chflags(argv[0], 0) != 0)
17463 return 1;
17464 return 0;
17467 _ACEOF
17468 rm -f conftest$ac_exeext
17469 if { (ac_try="$ac_link"
17470 case "(($ac_try" in
17471 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17472 *) ac_try_echo=$ac_try;;
17473 esac
17474 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17475 (eval "$ac_link") 2>&5
17476 ac_status=$?
17477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17478 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17479 { (case "(($ac_try" in
17480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17481 *) ac_try_echo=$ac_try;;
17482 esac
17483 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17484 (eval "$ac_try") 2>&5
17485 ac_status=$?
17486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17487 (exit $ac_status); }; }; then
17489 cat >>confdefs.h <<\_ACEOF
17490 #define HAVE_CHFLAGS 1
17491 _ACEOF
17493 { echo "$as_me:$LINENO: result: yes" >&5
17494 echo "${ECHO_T}yes" >&6; }
17495 else
17496 echo "$as_me: program exited with status $ac_status" >&5
17497 echo "$as_me: failed program was:" >&5
17498 sed 's/^/| /' conftest.$ac_ext >&5
17500 ( exit $ac_status )
17501 { echo "$as_me:$LINENO: result: no" >&5
17502 echo "${ECHO_T}no" >&6; }
17505 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17510 { echo "$as_me:$LINENO: checking for lchflags" >&5
17511 echo $ECHO_N "checking for lchflags... $ECHO_C" >&6; }
17512 if test "$cross_compiling" = yes; then
17513 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
17514 See \`config.log' for more details." >&5
17515 echo "$as_me: error: cannot run test program while cross compiling
17516 See \`config.log' for more details." >&2;}
17517 { (exit 1); exit 1; }; }
17518 else
17519 cat >conftest.$ac_ext <<_ACEOF
17520 /* confdefs.h. */
17521 _ACEOF
17522 cat confdefs.h >>conftest.$ac_ext
17523 cat >>conftest.$ac_ext <<_ACEOF
17524 /* end confdefs.h. */
17526 #include <sys/stat.h>
17527 #include <unistd.h>
17528 int main(int argc, char*argv[])
17530 if(lchflags(argv[0], 0) != 0)
17531 return 1;
17532 return 0;
17535 _ACEOF
17536 rm -f conftest$ac_exeext
17537 if { (ac_try="$ac_link"
17538 case "(($ac_try" in
17539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17540 *) ac_try_echo=$ac_try;;
17541 esac
17542 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17543 (eval "$ac_link") 2>&5
17544 ac_status=$?
17545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17546 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17547 { (case "(($ac_try" in
17548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17549 *) ac_try_echo=$ac_try;;
17550 esac
17551 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17552 (eval "$ac_try") 2>&5
17553 ac_status=$?
17554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17555 (exit $ac_status); }; }; then
17557 cat >>confdefs.h <<\_ACEOF
17558 #define HAVE_LCHFLAGS 1
17559 _ACEOF
17561 { echo "$as_me:$LINENO: result: yes" >&5
17562 echo "${ECHO_T}yes" >&6; }
17563 else
17564 echo "$as_me: program exited with status $ac_status" >&5
17565 echo "$as_me: failed program was:" >&5
17566 sed 's/^/| /' conftest.$ac_ext >&5
17568 ( exit $ac_status )
17569 { echo "$as_me:$LINENO: result: no" >&5
17570 echo "${ECHO_T}no" >&6; }
17573 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17578 case $ac_sys_system/$ac_sys_release in
17579 Darwin/*)
17580 _CUR_CFLAGS="${CFLAGS}"
17581 _CUR_LDFLAGS="${LDFLAGS}"
17582 CFLAGS="${CFLAGS} -Wl,-search_paths_first"
17583 LDFLAGS="${LDFLAGS} -Wl,-search_paths_first -L/usr/local/lib"
17585 esac
17587 { echo "$as_me:$LINENO: checking for inflateCopy in -lz" >&5
17588 echo $ECHO_N "checking for inflateCopy in -lz... $ECHO_C" >&6; }
17589 if test "${ac_cv_lib_z_inflateCopy+set}" = set; then
17590 echo $ECHO_N "(cached) $ECHO_C" >&6
17591 else
17592 ac_check_lib_save_LIBS=$LIBS
17593 LIBS="-lz $LIBS"
17594 cat >conftest.$ac_ext <<_ACEOF
17595 /* confdefs.h. */
17596 _ACEOF
17597 cat confdefs.h >>conftest.$ac_ext
17598 cat >>conftest.$ac_ext <<_ACEOF
17599 /* end confdefs.h. */
17601 /* Override any GCC internal prototype to avoid an error.
17602 Use char because int might match the return type of a GCC
17603 builtin and then its argument prototype would still apply. */
17604 #ifdef __cplusplus
17605 extern "C"
17606 #endif
17607 char inflateCopy ();
17609 main ()
17611 return inflateCopy ();
17613 return 0;
17615 _ACEOF
17616 rm -f conftest.$ac_objext conftest$ac_exeext
17617 if { (ac_try="$ac_link"
17618 case "(($ac_try" in
17619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17620 *) ac_try_echo=$ac_try;;
17621 esac
17622 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17623 (eval "$ac_link") 2>conftest.er1
17624 ac_status=$?
17625 grep -v '^ *+' conftest.er1 >conftest.err
17626 rm -f conftest.er1
17627 cat conftest.err >&5
17628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17629 (exit $ac_status); } && {
17630 test -z "$ac_c_werror_flag" ||
17631 test ! -s conftest.err
17632 } && test -s conftest$ac_exeext &&
17633 $as_test_x conftest$ac_exeext; then
17634 ac_cv_lib_z_inflateCopy=yes
17635 else
17636 echo "$as_me: failed program was:" >&5
17637 sed 's/^/| /' conftest.$ac_ext >&5
17639 ac_cv_lib_z_inflateCopy=no
17642 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17643 conftest$ac_exeext conftest.$ac_ext
17644 LIBS=$ac_check_lib_save_LIBS
17646 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_inflateCopy" >&5
17647 echo "${ECHO_T}$ac_cv_lib_z_inflateCopy" >&6; }
17648 if test $ac_cv_lib_z_inflateCopy = yes; then
17650 cat >>confdefs.h <<\_ACEOF
17651 #define HAVE_ZLIB_COPY 1
17652 _ACEOF
17657 case $ac_sys_system/$ac_sys_release in
17658 Darwin/*)
17659 CFLAGS="${_CUR_CFLAGS}"
17660 LDFLAGS="${_CUR_LDFLAGS}"
17662 esac
17664 { echo "$as_me:$LINENO: checking for hstrerror" >&5
17665 echo $ECHO_N "checking for hstrerror... $ECHO_C" >&6; }
17666 cat >conftest.$ac_ext <<_ACEOF
17667 /* confdefs.h. */
17668 _ACEOF
17669 cat confdefs.h >>conftest.$ac_ext
17670 cat >>conftest.$ac_ext <<_ACEOF
17671 /* end confdefs.h. */
17673 #include "confdefs.h"
17674 #include <netdb.h>
17677 main ()
17679 void* p = hstrerror; hstrerror(0)
17681 return 0;
17683 _ACEOF
17684 rm -f conftest.$ac_objext conftest$ac_exeext
17685 if { (ac_try="$ac_link"
17686 case "(($ac_try" in
17687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17688 *) ac_try_echo=$ac_try;;
17689 esac
17690 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17691 (eval "$ac_link") 2>conftest.er1
17692 ac_status=$?
17693 grep -v '^ *+' conftest.er1 >conftest.err
17694 rm -f conftest.er1
17695 cat conftest.err >&5
17696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17697 (exit $ac_status); } && {
17698 test -z "$ac_c_werror_flag" ||
17699 test ! -s conftest.err
17700 } && test -s conftest$ac_exeext &&
17701 $as_test_x conftest$ac_exeext; then
17703 cat >>confdefs.h <<\_ACEOF
17704 #define HAVE_HSTRERROR 1
17705 _ACEOF
17707 { echo "$as_me:$LINENO: result: yes" >&5
17708 echo "${ECHO_T}yes" >&6; }
17709 else
17710 echo "$as_me: failed program was:" >&5
17711 sed 's/^/| /' conftest.$ac_ext >&5
17713 { echo "$as_me:$LINENO: result: no" >&5
17714 echo "${ECHO_T}no" >&6; }
17718 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17719 conftest$ac_exeext conftest.$ac_ext
17721 { echo "$as_me:$LINENO: checking for inet_aton" >&5
17722 echo $ECHO_N "checking for inet_aton... $ECHO_C" >&6; }
17723 cat >conftest.$ac_ext <<_ACEOF
17724 /* confdefs.h. */
17725 _ACEOF
17726 cat confdefs.h >>conftest.$ac_ext
17727 cat >>conftest.$ac_ext <<_ACEOF
17728 /* end confdefs.h. */
17730 #include "confdefs.h"
17731 #include <sys/types.h>
17732 #include <sys/socket.h>
17733 #include <netinet/in.h>
17734 #include <arpa/inet.h>
17737 main ()
17739 void* p = inet_aton;inet_aton(0,0)
17741 return 0;
17743 _ACEOF
17744 rm -f conftest.$ac_objext conftest$ac_exeext
17745 if { (ac_try="$ac_link"
17746 case "(($ac_try" in
17747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17748 *) ac_try_echo=$ac_try;;
17749 esac
17750 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17751 (eval "$ac_link") 2>conftest.er1
17752 ac_status=$?
17753 grep -v '^ *+' conftest.er1 >conftest.err
17754 rm -f conftest.er1
17755 cat conftest.err >&5
17756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17757 (exit $ac_status); } && {
17758 test -z "$ac_c_werror_flag" ||
17759 test ! -s conftest.err
17760 } && test -s conftest$ac_exeext &&
17761 $as_test_x conftest$ac_exeext; then
17763 cat >>confdefs.h <<\_ACEOF
17764 #define HAVE_INET_ATON 1
17765 _ACEOF
17767 { echo "$as_me:$LINENO: result: yes" >&5
17768 echo "${ECHO_T}yes" >&6; }
17769 else
17770 echo "$as_me: failed program was:" >&5
17771 sed 's/^/| /' conftest.$ac_ext >&5
17773 { echo "$as_me:$LINENO: result: no" >&5
17774 echo "${ECHO_T}no" >&6; }
17778 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17779 conftest$ac_exeext conftest.$ac_ext
17781 { echo "$as_me:$LINENO: checking for inet_pton" >&5
17782 echo $ECHO_N "checking for inet_pton... $ECHO_C" >&6; }
17783 cat >conftest.$ac_ext <<_ACEOF
17784 /* confdefs.h. */
17785 _ACEOF
17786 cat confdefs.h >>conftest.$ac_ext
17787 cat >>conftest.$ac_ext <<_ACEOF
17788 /* end confdefs.h. */
17790 #include "confdefs.h"
17791 #include <sys/types.h>
17792 #include <sys/socket.h>
17793 #include <netinet/in.h>
17794 #include <arpa/inet.h>
17797 main ()
17799 void* p = inet_pton
17801 return 0;
17803 _ACEOF
17804 rm -f conftest.$ac_objext
17805 if { (ac_try="$ac_compile"
17806 case "(($ac_try" in
17807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17808 *) ac_try_echo=$ac_try;;
17809 esac
17810 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17811 (eval "$ac_compile") 2>conftest.er1
17812 ac_status=$?
17813 grep -v '^ *+' conftest.er1 >conftest.err
17814 rm -f conftest.er1
17815 cat conftest.err >&5
17816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17817 (exit $ac_status); } && {
17818 test -z "$ac_c_werror_flag" ||
17819 test ! -s conftest.err
17820 } && test -s conftest.$ac_objext; then
17822 cat >>confdefs.h <<\_ACEOF
17823 #define HAVE_INET_PTON 1
17824 _ACEOF
17826 { echo "$as_me:$LINENO: result: yes" >&5
17827 echo "${ECHO_T}yes" >&6; }
17828 else
17829 echo "$as_me: failed program was:" >&5
17830 sed 's/^/| /' conftest.$ac_ext >&5
17832 { echo "$as_me:$LINENO: result: no" >&5
17833 echo "${ECHO_T}no" >&6; }
17837 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17839 # On some systems, setgroups is in unistd.h, on others, in grp.h
17840 { echo "$as_me:$LINENO: checking for setgroups" >&5
17841 echo $ECHO_N "checking for setgroups... $ECHO_C" >&6; }
17842 cat >conftest.$ac_ext <<_ACEOF
17843 /* confdefs.h. */
17844 _ACEOF
17845 cat confdefs.h >>conftest.$ac_ext
17846 cat >>conftest.$ac_ext <<_ACEOF
17847 /* end confdefs.h. */
17849 #include "confdefs.h"
17850 #include <unistd.h>
17851 #ifdef HAVE_GRP_H
17852 #include <grp.h>
17853 #endif
17856 main ()
17858 void* p = setgroups
17860 return 0;
17862 _ACEOF
17863 rm -f conftest.$ac_objext
17864 if { (ac_try="$ac_compile"
17865 case "(($ac_try" in
17866 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17867 *) ac_try_echo=$ac_try;;
17868 esac
17869 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17870 (eval "$ac_compile") 2>conftest.er1
17871 ac_status=$?
17872 grep -v '^ *+' conftest.er1 >conftest.err
17873 rm -f conftest.er1
17874 cat conftest.err >&5
17875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17876 (exit $ac_status); } && {
17877 test -z "$ac_c_werror_flag" ||
17878 test ! -s conftest.err
17879 } && test -s conftest.$ac_objext; then
17881 cat >>confdefs.h <<\_ACEOF
17882 #define HAVE_SETGROUPS 1
17883 _ACEOF
17885 { echo "$as_me:$LINENO: result: yes" >&5
17886 echo "${ECHO_T}yes" >&6; }
17887 else
17888 echo "$as_me: failed program was:" >&5
17889 sed 's/^/| /' conftest.$ac_ext >&5
17891 { echo "$as_me:$LINENO: result: no" >&5
17892 echo "${ECHO_T}no" >&6; }
17896 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17898 # check for openpty and forkpty
17901 for ac_func in openpty
17903 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17904 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17905 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17906 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17907 echo $ECHO_N "(cached) $ECHO_C" >&6
17908 else
17909 cat >conftest.$ac_ext <<_ACEOF
17910 /* confdefs.h. */
17911 _ACEOF
17912 cat confdefs.h >>conftest.$ac_ext
17913 cat >>conftest.$ac_ext <<_ACEOF
17914 /* end confdefs.h. */
17915 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17916 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17917 #define $ac_func innocuous_$ac_func
17919 /* System header to define __stub macros and hopefully few prototypes,
17920 which can conflict with char $ac_func (); below.
17921 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17922 <limits.h> exists even on freestanding compilers. */
17924 #ifdef __STDC__
17925 # include <limits.h>
17926 #else
17927 # include <assert.h>
17928 #endif
17930 #undef $ac_func
17932 /* Override any GCC internal prototype to avoid an error.
17933 Use char because int might match the return type of a GCC
17934 builtin and then its argument prototype would still apply. */
17935 #ifdef __cplusplus
17936 extern "C"
17937 #endif
17938 char $ac_func ();
17939 /* The GNU C library defines this for functions which it implements
17940 to always fail with ENOSYS. Some functions are actually named
17941 something starting with __ and the normal name is an alias. */
17942 #if defined __stub_$ac_func || defined __stub___$ac_func
17943 choke me
17944 #endif
17947 main ()
17949 return $ac_func ();
17951 return 0;
17953 _ACEOF
17954 rm -f conftest.$ac_objext conftest$ac_exeext
17955 if { (ac_try="$ac_link"
17956 case "(($ac_try" in
17957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17958 *) ac_try_echo=$ac_try;;
17959 esac
17960 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17961 (eval "$ac_link") 2>conftest.er1
17962 ac_status=$?
17963 grep -v '^ *+' conftest.er1 >conftest.err
17964 rm -f conftest.er1
17965 cat conftest.err >&5
17966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17967 (exit $ac_status); } && {
17968 test -z "$ac_c_werror_flag" ||
17969 test ! -s conftest.err
17970 } && test -s conftest$ac_exeext &&
17971 $as_test_x conftest$ac_exeext; then
17972 eval "$as_ac_var=yes"
17973 else
17974 echo "$as_me: failed program was:" >&5
17975 sed 's/^/| /' conftest.$ac_ext >&5
17977 eval "$as_ac_var=no"
17980 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17981 conftest$ac_exeext conftest.$ac_ext
17983 ac_res=`eval echo '${'$as_ac_var'}'`
17984 { echo "$as_me:$LINENO: result: $ac_res" >&5
17985 echo "${ECHO_T}$ac_res" >&6; }
17986 if test `eval echo '${'$as_ac_var'}'` = yes; then
17987 cat >>confdefs.h <<_ACEOF
17988 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17989 _ACEOF
17991 else
17992 { echo "$as_me:$LINENO: checking for openpty in -lutil" >&5
17993 echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6; }
17994 if test "${ac_cv_lib_util_openpty+set}" = set; then
17995 echo $ECHO_N "(cached) $ECHO_C" >&6
17996 else
17997 ac_check_lib_save_LIBS=$LIBS
17998 LIBS="-lutil $LIBS"
17999 cat >conftest.$ac_ext <<_ACEOF
18000 /* confdefs.h. */
18001 _ACEOF
18002 cat confdefs.h >>conftest.$ac_ext
18003 cat >>conftest.$ac_ext <<_ACEOF
18004 /* end confdefs.h. */
18006 /* Override any GCC internal prototype to avoid an error.
18007 Use char because int might match the return type of a GCC
18008 builtin and then its argument prototype would still apply. */
18009 #ifdef __cplusplus
18010 extern "C"
18011 #endif
18012 char openpty ();
18014 main ()
18016 return openpty ();
18018 return 0;
18020 _ACEOF
18021 rm -f conftest.$ac_objext conftest$ac_exeext
18022 if { (ac_try="$ac_link"
18023 case "(($ac_try" in
18024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18025 *) ac_try_echo=$ac_try;;
18026 esac
18027 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18028 (eval "$ac_link") 2>conftest.er1
18029 ac_status=$?
18030 grep -v '^ *+' conftest.er1 >conftest.err
18031 rm -f conftest.er1
18032 cat conftest.err >&5
18033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18034 (exit $ac_status); } && {
18035 test -z "$ac_c_werror_flag" ||
18036 test ! -s conftest.err
18037 } && test -s conftest$ac_exeext &&
18038 $as_test_x conftest$ac_exeext; then
18039 ac_cv_lib_util_openpty=yes
18040 else
18041 echo "$as_me: failed program was:" >&5
18042 sed 's/^/| /' conftest.$ac_ext >&5
18044 ac_cv_lib_util_openpty=no
18047 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18048 conftest$ac_exeext conftest.$ac_ext
18049 LIBS=$ac_check_lib_save_LIBS
18051 { echo "$as_me:$LINENO: result: $ac_cv_lib_util_openpty" >&5
18052 echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6; }
18053 if test $ac_cv_lib_util_openpty = yes; then
18054 cat >>confdefs.h <<\_ACEOF
18055 #define HAVE_OPENPTY 1
18056 _ACEOF
18057 LIBS="$LIBS -lutil"
18058 else
18059 { echo "$as_me:$LINENO: checking for openpty in -lbsd" >&5
18060 echo $ECHO_N "checking for openpty in -lbsd... $ECHO_C" >&6; }
18061 if test "${ac_cv_lib_bsd_openpty+set}" = set; then
18062 echo $ECHO_N "(cached) $ECHO_C" >&6
18063 else
18064 ac_check_lib_save_LIBS=$LIBS
18065 LIBS="-lbsd $LIBS"
18066 cat >conftest.$ac_ext <<_ACEOF
18067 /* confdefs.h. */
18068 _ACEOF
18069 cat confdefs.h >>conftest.$ac_ext
18070 cat >>conftest.$ac_ext <<_ACEOF
18071 /* end confdefs.h. */
18073 /* Override any GCC internal prototype to avoid an error.
18074 Use char because int might match the return type of a GCC
18075 builtin and then its argument prototype would still apply. */
18076 #ifdef __cplusplus
18077 extern "C"
18078 #endif
18079 char openpty ();
18081 main ()
18083 return openpty ();
18085 return 0;
18087 _ACEOF
18088 rm -f conftest.$ac_objext conftest$ac_exeext
18089 if { (ac_try="$ac_link"
18090 case "(($ac_try" in
18091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18092 *) ac_try_echo=$ac_try;;
18093 esac
18094 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18095 (eval "$ac_link") 2>conftest.er1
18096 ac_status=$?
18097 grep -v '^ *+' conftest.er1 >conftest.err
18098 rm -f conftest.er1
18099 cat conftest.err >&5
18100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18101 (exit $ac_status); } && {
18102 test -z "$ac_c_werror_flag" ||
18103 test ! -s conftest.err
18104 } && test -s conftest$ac_exeext &&
18105 $as_test_x conftest$ac_exeext; then
18106 ac_cv_lib_bsd_openpty=yes
18107 else
18108 echo "$as_me: failed program was:" >&5
18109 sed 's/^/| /' conftest.$ac_ext >&5
18111 ac_cv_lib_bsd_openpty=no
18114 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18115 conftest$ac_exeext conftest.$ac_ext
18116 LIBS=$ac_check_lib_save_LIBS
18118 { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_openpty" >&5
18119 echo "${ECHO_T}$ac_cv_lib_bsd_openpty" >&6; }
18120 if test $ac_cv_lib_bsd_openpty = yes; then
18121 cat >>confdefs.h <<\_ACEOF
18122 #define HAVE_OPENPTY 1
18123 _ACEOF
18124 LIBS="$LIBS -lbsd"
18132 done
18135 for ac_func in forkpty
18137 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18138 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18139 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18140 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18141 echo $ECHO_N "(cached) $ECHO_C" >&6
18142 else
18143 cat >conftest.$ac_ext <<_ACEOF
18144 /* confdefs.h. */
18145 _ACEOF
18146 cat confdefs.h >>conftest.$ac_ext
18147 cat >>conftest.$ac_ext <<_ACEOF
18148 /* end confdefs.h. */
18149 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18150 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18151 #define $ac_func innocuous_$ac_func
18153 /* System header to define __stub macros and hopefully few prototypes,
18154 which can conflict with char $ac_func (); below.
18155 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18156 <limits.h> exists even on freestanding compilers. */
18158 #ifdef __STDC__
18159 # include <limits.h>
18160 #else
18161 # include <assert.h>
18162 #endif
18164 #undef $ac_func
18166 /* Override any GCC internal prototype to avoid an error.
18167 Use char because int might match the return type of a GCC
18168 builtin and then its argument prototype would still apply. */
18169 #ifdef __cplusplus
18170 extern "C"
18171 #endif
18172 char $ac_func ();
18173 /* The GNU C library defines this for functions which it implements
18174 to always fail with ENOSYS. Some functions are actually named
18175 something starting with __ and the normal name is an alias. */
18176 #if defined __stub_$ac_func || defined __stub___$ac_func
18177 choke me
18178 #endif
18181 main ()
18183 return $ac_func ();
18185 return 0;
18187 _ACEOF
18188 rm -f conftest.$ac_objext conftest$ac_exeext
18189 if { (ac_try="$ac_link"
18190 case "(($ac_try" in
18191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18192 *) ac_try_echo=$ac_try;;
18193 esac
18194 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18195 (eval "$ac_link") 2>conftest.er1
18196 ac_status=$?
18197 grep -v '^ *+' conftest.er1 >conftest.err
18198 rm -f conftest.er1
18199 cat conftest.err >&5
18200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18201 (exit $ac_status); } && {
18202 test -z "$ac_c_werror_flag" ||
18203 test ! -s conftest.err
18204 } && test -s conftest$ac_exeext &&
18205 $as_test_x conftest$ac_exeext; then
18206 eval "$as_ac_var=yes"
18207 else
18208 echo "$as_me: failed program was:" >&5
18209 sed 's/^/| /' conftest.$ac_ext >&5
18211 eval "$as_ac_var=no"
18214 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18215 conftest$ac_exeext conftest.$ac_ext
18217 ac_res=`eval echo '${'$as_ac_var'}'`
18218 { echo "$as_me:$LINENO: result: $ac_res" >&5
18219 echo "${ECHO_T}$ac_res" >&6; }
18220 if test `eval echo '${'$as_ac_var'}'` = yes; then
18221 cat >>confdefs.h <<_ACEOF
18222 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18223 _ACEOF
18225 else
18226 { echo "$as_me:$LINENO: checking for forkpty in -lutil" >&5
18227 echo $ECHO_N "checking for forkpty in -lutil... $ECHO_C" >&6; }
18228 if test "${ac_cv_lib_util_forkpty+set}" = set; then
18229 echo $ECHO_N "(cached) $ECHO_C" >&6
18230 else
18231 ac_check_lib_save_LIBS=$LIBS
18232 LIBS="-lutil $LIBS"
18233 cat >conftest.$ac_ext <<_ACEOF
18234 /* confdefs.h. */
18235 _ACEOF
18236 cat confdefs.h >>conftest.$ac_ext
18237 cat >>conftest.$ac_ext <<_ACEOF
18238 /* end confdefs.h. */
18240 /* Override any GCC internal prototype to avoid an error.
18241 Use char because int might match the return type of a GCC
18242 builtin and then its argument prototype would still apply. */
18243 #ifdef __cplusplus
18244 extern "C"
18245 #endif
18246 char forkpty ();
18248 main ()
18250 return forkpty ();
18252 return 0;
18254 _ACEOF
18255 rm -f conftest.$ac_objext conftest$ac_exeext
18256 if { (ac_try="$ac_link"
18257 case "(($ac_try" in
18258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18259 *) ac_try_echo=$ac_try;;
18260 esac
18261 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18262 (eval "$ac_link") 2>conftest.er1
18263 ac_status=$?
18264 grep -v '^ *+' conftest.er1 >conftest.err
18265 rm -f conftest.er1
18266 cat conftest.err >&5
18267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18268 (exit $ac_status); } && {
18269 test -z "$ac_c_werror_flag" ||
18270 test ! -s conftest.err
18271 } && test -s conftest$ac_exeext &&
18272 $as_test_x conftest$ac_exeext; then
18273 ac_cv_lib_util_forkpty=yes
18274 else
18275 echo "$as_me: failed program was:" >&5
18276 sed 's/^/| /' conftest.$ac_ext >&5
18278 ac_cv_lib_util_forkpty=no
18281 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18282 conftest$ac_exeext conftest.$ac_ext
18283 LIBS=$ac_check_lib_save_LIBS
18285 { echo "$as_me:$LINENO: result: $ac_cv_lib_util_forkpty" >&5
18286 echo "${ECHO_T}$ac_cv_lib_util_forkpty" >&6; }
18287 if test $ac_cv_lib_util_forkpty = yes; then
18288 cat >>confdefs.h <<\_ACEOF
18289 #define HAVE_FORKPTY 1
18290 _ACEOF
18291 LIBS="$LIBS -lutil"
18292 else
18293 { echo "$as_me:$LINENO: checking for forkpty in -lbsd" >&5
18294 echo $ECHO_N "checking for forkpty in -lbsd... $ECHO_C" >&6; }
18295 if test "${ac_cv_lib_bsd_forkpty+set}" = set; then
18296 echo $ECHO_N "(cached) $ECHO_C" >&6
18297 else
18298 ac_check_lib_save_LIBS=$LIBS
18299 LIBS="-lbsd $LIBS"
18300 cat >conftest.$ac_ext <<_ACEOF
18301 /* confdefs.h. */
18302 _ACEOF
18303 cat confdefs.h >>conftest.$ac_ext
18304 cat >>conftest.$ac_ext <<_ACEOF
18305 /* end confdefs.h. */
18307 /* Override any GCC internal prototype to avoid an error.
18308 Use char because int might match the return type of a GCC
18309 builtin and then its argument prototype would still apply. */
18310 #ifdef __cplusplus
18311 extern "C"
18312 #endif
18313 char forkpty ();
18315 main ()
18317 return forkpty ();
18319 return 0;
18321 _ACEOF
18322 rm -f conftest.$ac_objext conftest$ac_exeext
18323 if { (ac_try="$ac_link"
18324 case "(($ac_try" in
18325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18326 *) ac_try_echo=$ac_try;;
18327 esac
18328 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18329 (eval "$ac_link") 2>conftest.er1
18330 ac_status=$?
18331 grep -v '^ *+' conftest.er1 >conftest.err
18332 rm -f conftest.er1
18333 cat conftest.err >&5
18334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18335 (exit $ac_status); } && {
18336 test -z "$ac_c_werror_flag" ||
18337 test ! -s conftest.err
18338 } && test -s conftest$ac_exeext &&
18339 $as_test_x conftest$ac_exeext; then
18340 ac_cv_lib_bsd_forkpty=yes
18341 else
18342 echo "$as_me: failed program was:" >&5
18343 sed 's/^/| /' conftest.$ac_ext >&5
18345 ac_cv_lib_bsd_forkpty=no
18348 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18349 conftest$ac_exeext conftest.$ac_ext
18350 LIBS=$ac_check_lib_save_LIBS
18352 { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_forkpty" >&5
18353 echo "${ECHO_T}$ac_cv_lib_bsd_forkpty" >&6; }
18354 if test $ac_cv_lib_bsd_forkpty = yes; then
18355 cat >>confdefs.h <<\_ACEOF
18356 #define HAVE_FORKPTY 1
18357 _ACEOF
18358 LIBS="$LIBS -lbsd"
18366 done
18369 # Stuff for expat.
18371 for ac_func in memmove
18373 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18374 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18375 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18376 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18377 echo $ECHO_N "(cached) $ECHO_C" >&6
18378 else
18379 cat >conftest.$ac_ext <<_ACEOF
18380 /* confdefs.h. */
18381 _ACEOF
18382 cat confdefs.h >>conftest.$ac_ext
18383 cat >>conftest.$ac_ext <<_ACEOF
18384 /* end confdefs.h. */
18385 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18386 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18387 #define $ac_func innocuous_$ac_func
18389 /* System header to define __stub macros and hopefully few prototypes,
18390 which can conflict with char $ac_func (); below.
18391 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18392 <limits.h> exists even on freestanding compilers. */
18394 #ifdef __STDC__
18395 # include <limits.h>
18396 #else
18397 # include <assert.h>
18398 #endif
18400 #undef $ac_func
18402 /* Override any GCC internal prototype to avoid an error.
18403 Use char because int might match the return type of a GCC
18404 builtin and then its argument prototype would still apply. */
18405 #ifdef __cplusplus
18406 extern "C"
18407 #endif
18408 char $ac_func ();
18409 /* The GNU C library defines this for functions which it implements
18410 to always fail with ENOSYS. Some functions are actually named
18411 something starting with __ and the normal name is an alias. */
18412 #if defined __stub_$ac_func || defined __stub___$ac_func
18413 choke me
18414 #endif
18417 main ()
18419 return $ac_func ();
18421 return 0;
18423 _ACEOF
18424 rm -f conftest.$ac_objext conftest$ac_exeext
18425 if { (ac_try="$ac_link"
18426 case "(($ac_try" in
18427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18428 *) ac_try_echo=$ac_try;;
18429 esac
18430 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18431 (eval "$ac_link") 2>conftest.er1
18432 ac_status=$?
18433 grep -v '^ *+' conftest.er1 >conftest.err
18434 rm -f conftest.er1
18435 cat conftest.err >&5
18436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18437 (exit $ac_status); } && {
18438 test -z "$ac_c_werror_flag" ||
18439 test ! -s conftest.err
18440 } && test -s conftest$ac_exeext &&
18441 $as_test_x conftest$ac_exeext; then
18442 eval "$as_ac_var=yes"
18443 else
18444 echo "$as_me: failed program was:" >&5
18445 sed 's/^/| /' conftest.$ac_ext >&5
18447 eval "$as_ac_var=no"
18450 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18451 conftest$ac_exeext conftest.$ac_ext
18453 ac_res=`eval echo '${'$as_ac_var'}'`
18454 { echo "$as_me:$LINENO: result: $ac_res" >&5
18455 echo "${ECHO_T}$ac_res" >&6; }
18456 if test `eval echo '${'$as_ac_var'}'` = yes; then
18457 cat >>confdefs.h <<_ACEOF
18458 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18459 _ACEOF
18462 done
18465 # check for long file support functions
18472 for ac_func in fseek64 fseeko fstatvfs ftell64 ftello statvfs
18474 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18475 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18476 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18477 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18478 echo $ECHO_N "(cached) $ECHO_C" >&6
18479 else
18480 cat >conftest.$ac_ext <<_ACEOF
18481 /* confdefs.h. */
18482 _ACEOF
18483 cat confdefs.h >>conftest.$ac_ext
18484 cat >>conftest.$ac_ext <<_ACEOF
18485 /* end confdefs.h. */
18486 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18487 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18488 #define $ac_func innocuous_$ac_func
18490 /* System header to define __stub macros and hopefully few prototypes,
18491 which can conflict with char $ac_func (); below.
18492 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18493 <limits.h> exists even on freestanding compilers. */
18495 #ifdef __STDC__
18496 # include <limits.h>
18497 #else
18498 # include <assert.h>
18499 #endif
18501 #undef $ac_func
18503 /* Override any GCC internal prototype to avoid an error.
18504 Use char because int might match the return type of a GCC
18505 builtin and then its argument prototype would still apply. */
18506 #ifdef __cplusplus
18507 extern "C"
18508 #endif
18509 char $ac_func ();
18510 /* The GNU C library defines this for functions which it implements
18511 to always fail with ENOSYS. Some functions are actually named
18512 something starting with __ and the normal name is an alias. */
18513 #if defined __stub_$ac_func || defined __stub___$ac_func
18514 choke me
18515 #endif
18518 main ()
18520 return $ac_func ();
18522 return 0;
18524 _ACEOF
18525 rm -f conftest.$ac_objext conftest$ac_exeext
18526 if { (ac_try="$ac_link"
18527 case "(($ac_try" in
18528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18529 *) ac_try_echo=$ac_try;;
18530 esac
18531 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18532 (eval "$ac_link") 2>conftest.er1
18533 ac_status=$?
18534 grep -v '^ *+' conftest.er1 >conftest.err
18535 rm -f conftest.er1
18536 cat conftest.err >&5
18537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18538 (exit $ac_status); } && {
18539 test -z "$ac_c_werror_flag" ||
18540 test ! -s conftest.err
18541 } && test -s conftest$ac_exeext &&
18542 $as_test_x conftest$ac_exeext; then
18543 eval "$as_ac_var=yes"
18544 else
18545 echo "$as_me: failed program was:" >&5
18546 sed 's/^/| /' conftest.$ac_ext >&5
18548 eval "$as_ac_var=no"
18551 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18552 conftest$ac_exeext conftest.$ac_ext
18554 ac_res=`eval echo '${'$as_ac_var'}'`
18555 { echo "$as_me:$LINENO: result: $ac_res" >&5
18556 echo "${ECHO_T}$ac_res" >&6; }
18557 if test `eval echo '${'$as_ac_var'}'` = yes; then
18558 cat >>confdefs.h <<_ACEOF
18559 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18560 _ACEOF
18563 done
18569 for ac_func in dup2 getcwd strdup
18571 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18572 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18573 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18574 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18575 echo $ECHO_N "(cached) $ECHO_C" >&6
18576 else
18577 cat >conftest.$ac_ext <<_ACEOF
18578 /* confdefs.h. */
18579 _ACEOF
18580 cat confdefs.h >>conftest.$ac_ext
18581 cat >>conftest.$ac_ext <<_ACEOF
18582 /* end confdefs.h. */
18583 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18584 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18585 #define $ac_func innocuous_$ac_func
18587 /* System header to define __stub macros and hopefully few prototypes,
18588 which can conflict with char $ac_func (); below.
18589 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18590 <limits.h> exists even on freestanding compilers. */
18592 #ifdef __STDC__
18593 # include <limits.h>
18594 #else
18595 # include <assert.h>
18596 #endif
18598 #undef $ac_func
18600 /* Override any GCC internal prototype to avoid an error.
18601 Use char because int might match the return type of a GCC
18602 builtin and then its argument prototype would still apply. */
18603 #ifdef __cplusplus
18604 extern "C"
18605 #endif
18606 char $ac_func ();
18607 /* The GNU C library defines this for functions which it implements
18608 to always fail with ENOSYS. Some functions are actually named
18609 something starting with __ and the normal name is an alias. */
18610 #if defined __stub_$ac_func || defined __stub___$ac_func
18611 choke me
18612 #endif
18615 main ()
18617 return $ac_func ();
18619 return 0;
18621 _ACEOF
18622 rm -f conftest.$ac_objext conftest$ac_exeext
18623 if { (ac_try="$ac_link"
18624 case "(($ac_try" in
18625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18626 *) ac_try_echo=$ac_try;;
18627 esac
18628 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18629 (eval "$ac_link") 2>conftest.er1
18630 ac_status=$?
18631 grep -v '^ *+' conftest.er1 >conftest.err
18632 rm -f conftest.er1
18633 cat conftest.err >&5
18634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18635 (exit $ac_status); } && {
18636 test -z "$ac_c_werror_flag" ||
18637 test ! -s conftest.err
18638 } && test -s conftest$ac_exeext &&
18639 $as_test_x conftest$ac_exeext; then
18640 eval "$as_ac_var=yes"
18641 else
18642 echo "$as_me: failed program was:" >&5
18643 sed 's/^/| /' conftest.$ac_ext >&5
18645 eval "$as_ac_var=no"
18648 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18649 conftest$ac_exeext conftest.$ac_ext
18651 ac_res=`eval echo '${'$as_ac_var'}'`
18652 { echo "$as_me:$LINENO: result: $ac_res" >&5
18653 echo "${ECHO_T}$ac_res" >&6; }
18654 if test `eval echo '${'$as_ac_var'}'` = yes; then
18655 cat >>confdefs.h <<_ACEOF
18656 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18657 _ACEOF
18659 else
18660 case " $LIBOBJS " in
18661 *" $ac_func.$ac_objext "* ) ;;
18662 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
18664 esac
18667 done
18671 for ac_func in getpgrp
18673 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18674 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18675 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18676 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18677 echo $ECHO_N "(cached) $ECHO_C" >&6
18678 else
18679 cat >conftest.$ac_ext <<_ACEOF
18680 /* confdefs.h. */
18681 _ACEOF
18682 cat confdefs.h >>conftest.$ac_ext
18683 cat >>conftest.$ac_ext <<_ACEOF
18684 /* end confdefs.h. */
18685 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18686 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18687 #define $ac_func innocuous_$ac_func
18689 /* System header to define __stub macros and hopefully few prototypes,
18690 which can conflict with char $ac_func (); below.
18691 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18692 <limits.h> exists even on freestanding compilers. */
18694 #ifdef __STDC__
18695 # include <limits.h>
18696 #else
18697 # include <assert.h>
18698 #endif
18700 #undef $ac_func
18702 /* Override any GCC internal prototype to avoid an error.
18703 Use char because int might match the return type of a GCC
18704 builtin and then its argument prototype would still apply. */
18705 #ifdef __cplusplus
18706 extern "C"
18707 #endif
18708 char $ac_func ();
18709 /* The GNU C library defines this for functions which it implements
18710 to always fail with ENOSYS. Some functions are actually named
18711 something starting with __ and the normal name is an alias. */
18712 #if defined __stub_$ac_func || defined __stub___$ac_func
18713 choke me
18714 #endif
18717 main ()
18719 return $ac_func ();
18721 return 0;
18723 _ACEOF
18724 rm -f conftest.$ac_objext conftest$ac_exeext
18725 if { (ac_try="$ac_link"
18726 case "(($ac_try" in
18727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18728 *) ac_try_echo=$ac_try;;
18729 esac
18730 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18731 (eval "$ac_link") 2>conftest.er1
18732 ac_status=$?
18733 grep -v '^ *+' conftest.er1 >conftest.err
18734 rm -f conftest.er1
18735 cat conftest.err >&5
18736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18737 (exit $ac_status); } && {
18738 test -z "$ac_c_werror_flag" ||
18739 test ! -s conftest.err
18740 } && test -s conftest$ac_exeext &&
18741 $as_test_x conftest$ac_exeext; then
18742 eval "$as_ac_var=yes"
18743 else
18744 echo "$as_me: failed program was:" >&5
18745 sed 's/^/| /' conftest.$ac_ext >&5
18747 eval "$as_ac_var=no"
18750 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18751 conftest$ac_exeext conftest.$ac_ext
18753 ac_res=`eval echo '${'$as_ac_var'}'`
18754 { echo "$as_me:$LINENO: result: $ac_res" >&5
18755 echo "${ECHO_T}$ac_res" >&6; }
18756 if test `eval echo '${'$as_ac_var'}'` = yes; then
18757 cat >>confdefs.h <<_ACEOF
18758 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18759 _ACEOF
18760 cat >conftest.$ac_ext <<_ACEOF
18761 /* confdefs.h. */
18762 _ACEOF
18763 cat confdefs.h >>conftest.$ac_ext
18764 cat >>conftest.$ac_ext <<_ACEOF
18765 /* end confdefs.h. */
18766 #include <unistd.h>
18768 main ()
18770 getpgrp(0);
18772 return 0;
18774 _ACEOF
18775 rm -f conftest.$ac_objext
18776 if { (ac_try="$ac_compile"
18777 case "(($ac_try" in
18778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18779 *) ac_try_echo=$ac_try;;
18780 esac
18781 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18782 (eval "$ac_compile") 2>conftest.er1
18783 ac_status=$?
18784 grep -v '^ *+' conftest.er1 >conftest.err
18785 rm -f conftest.er1
18786 cat conftest.err >&5
18787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18788 (exit $ac_status); } && {
18789 test -z "$ac_c_werror_flag" ||
18790 test ! -s conftest.err
18791 } && test -s conftest.$ac_objext; then
18793 cat >>confdefs.h <<\_ACEOF
18794 #define GETPGRP_HAVE_ARG 1
18795 _ACEOF
18798 else
18799 echo "$as_me: failed program was:" >&5
18800 sed 's/^/| /' conftest.$ac_ext >&5
18805 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18808 done
18811 for ac_func in setpgrp
18813 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18814 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18815 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18816 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18817 echo $ECHO_N "(cached) $ECHO_C" >&6
18818 else
18819 cat >conftest.$ac_ext <<_ACEOF
18820 /* confdefs.h. */
18821 _ACEOF
18822 cat confdefs.h >>conftest.$ac_ext
18823 cat >>conftest.$ac_ext <<_ACEOF
18824 /* end confdefs.h. */
18825 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18826 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18827 #define $ac_func innocuous_$ac_func
18829 /* System header to define __stub macros and hopefully few prototypes,
18830 which can conflict with char $ac_func (); below.
18831 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18832 <limits.h> exists even on freestanding compilers. */
18834 #ifdef __STDC__
18835 # include <limits.h>
18836 #else
18837 # include <assert.h>
18838 #endif
18840 #undef $ac_func
18842 /* Override any GCC internal prototype to avoid an error.
18843 Use char because int might match the return type of a GCC
18844 builtin and then its argument prototype would still apply. */
18845 #ifdef __cplusplus
18846 extern "C"
18847 #endif
18848 char $ac_func ();
18849 /* The GNU C library defines this for functions which it implements
18850 to always fail with ENOSYS. Some functions are actually named
18851 something starting with __ and the normal name is an alias. */
18852 #if defined __stub_$ac_func || defined __stub___$ac_func
18853 choke me
18854 #endif
18857 main ()
18859 return $ac_func ();
18861 return 0;
18863 _ACEOF
18864 rm -f conftest.$ac_objext conftest$ac_exeext
18865 if { (ac_try="$ac_link"
18866 case "(($ac_try" in
18867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18868 *) ac_try_echo=$ac_try;;
18869 esac
18870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18871 (eval "$ac_link") 2>conftest.er1
18872 ac_status=$?
18873 grep -v '^ *+' conftest.er1 >conftest.err
18874 rm -f conftest.er1
18875 cat conftest.err >&5
18876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18877 (exit $ac_status); } && {
18878 test -z "$ac_c_werror_flag" ||
18879 test ! -s conftest.err
18880 } && test -s conftest$ac_exeext &&
18881 $as_test_x conftest$ac_exeext; then
18882 eval "$as_ac_var=yes"
18883 else
18884 echo "$as_me: failed program was:" >&5
18885 sed 's/^/| /' conftest.$ac_ext >&5
18887 eval "$as_ac_var=no"
18890 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18891 conftest$ac_exeext conftest.$ac_ext
18893 ac_res=`eval echo '${'$as_ac_var'}'`
18894 { echo "$as_me:$LINENO: result: $ac_res" >&5
18895 echo "${ECHO_T}$ac_res" >&6; }
18896 if test `eval echo '${'$as_ac_var'}'` = yes; then
18897 cat >>confdefs.h <<_ACEOF
18898 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18899 _ACEOF
18900 cat >conftest.$ac_ext <<_ACEOF
18901 /* confdefs.h. */
18902 _ACEOF
18903 cat confdefs.h >>conftest.$ac_ext
18904 cat >>conftest.$ac_ext <<_ACEOF
18905 /* end confdefs.h. */
18906 #include <unistd.h>
18908 main ()
18910 setpgrp(0,0);
18912 return 0;
18914 _ACEOF
18915 rm -f conftest.$ac_objext
18916 if { (ac_try="$ac_compile"
18917 case "(($ac_try" in
18918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18919 *) ac_try_echo=$ac_try;;
18920 esac
18921 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18922 (eval "$ac_compile") 2>conftest.er1
18923 ac_status=$?
18924 grep -v '^ *+' conftest.er1 >conftest.err
18925 rm -f conftest.er1
18926 cat conftest.err >&5
18927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18928 (exit $ac_status); } && {
18929 test -z "$ac_c_werror_flag" ||
18930 test ! -s conftest.err
18931 } && test -s conftest.$ac_objext; then
18933 cat >>confdefs.h <<\_ACEOF
18934 #define SETPGRP_HAVE_ARG 1
18935 _ACEOF
18938 else
18939 echo "$as_me: failed program was:" >&5
18940 sed 's/^/| /' conftest.$ac_ext >&5
18945 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18948 done
18951 for ac_func in gettimeofday
18953 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18954 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18955 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18956 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18957 echo $ECHO_N "(cached) $ECHO_C" >&6
18958 else
18959 cat >conftest.$ac_ext <<_ACEOF
18960 /* confdefs.h. */
18961 _ACEOF
18962 cat confdefs.h >>conftest.$ac_ext
18963 cat >>conftest.$ac_ext <<_ACEOF
18964 /* end confdefs.h. */
18965 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18966 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18967 #define $ac_func innocuous_$ac_func
18969 /* System header to define __stub macros and hopefully few prototypes,
18970 which can conflict with char $ac_func (); below.
18971 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18972 <limits.h> exists even on freestanding compilers. */
18974 #ifdef __STDC__
18975 # include <limits.h>
18976 #else
18977 # include <assert.h>
18978 #endif
18980 #undef $ac_func
18982 /* Override any GCC internal prototype to avoid an error.
18983 Use char because int might match the return type of a GCC
18984 builtin and then its argument prototype would still apply. */
18985 #ifdef __cplusplus
18986 extern "C"
18987 #endif
18988 char $ac_func ();
18989 /* The GNU C library defines this for functions which it implements
18990 to always fail with ENOSYS. Some functions are actually named
18991 something starting with __ and the normal name is an alias. */
18992 #if defined __stub_$ac_func || defined __stub___$ac_func
18993 choke me
18994 #endif
18997 main ()
18999 return $ac_func ();
19001 return 0;
19003 _ACEOF
19004 rm -f conftest.$ac_objext conftest$ac_exeext
19005 if { (ac_try="$ac_link"
19006 case "(($ac_try" in
19007 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19008 *) ac_try_echo=$ac_try;;
19009 esac
19010 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19011 (eval "$ac_link") 2>conftest.er1
19012 ac_status=$?
19013 grep -v '^ *+' conftest.er1 >conftest.err
19014 rm -f conftest.er1
19015 cat conftest.err >&5
19016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19017 (exit $ac_status); } && {
19018 test -z "$ac_c_werror_flag" ||
19019 test ! -s conftest.err
19020 } && test -s conftest$ac_exeext &&
19021 $as_test_x conftest$ac_exeext; then
19022 eval "$as_ac_var=yes"
19023 else
19024 echo "$as_me: failed program was:" >&5
19025 sed 's/^/| /' conftest.$ac_ext >&5
19027 eval "$as_ac_var=no"
19030 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19031 conftest$ac_exeext conftest.$ac_ext
19033 ac_res=`eval echo '${'$as_ac_var'}'`
19034 { echo "$as_me:$LINENO: result: $ac_res" >&5
19035 echo "${ECHO_T}$ac_res" >&6; }
19036 if test `eval echo '${'$as_ac_var'}'` = yes; then
19037 cat >>confdefs.h <<_ACEOF
19038 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19039 _ACEOF
19040 cat >conftest.$ac_ext <<_ACEOF
19041 /* confdefs.h. */
19042 _ACEOF
19043 cat confdefs.h >>conftest.$ac_ext
19044 cat >>conftest.$ac_ext <<_ACEOF
19045 /* end confdefs.h. */
19046 #include <sys/time.h>
19048 main ()
19050 gettimeofday((struct timeval*)0,(struct timezone*)0);
19052 return 0;
19054 _ACEOF
19055 rm -f conftest.$ac_objext
19056 if { (ac_try="$ac_compile"
19057 case "(($ac_try" in
19058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19059 *) ac_try_echo=$ac_try;;
19060 esac
19061 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19062 (eval "$ac_compile") 2>conftest.er1
19063 ac_status=$?
19064 grep -v '^ *+' conftest.er1 >conftest.err
19065 rm -f conftest.er1
19066 cat conftest.err >&5
19067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19068 (exit $ac_status); } && {
19069 test -z "$ac_c_werror_flag" ||
19070 test ! -s conftest.err
19071 } && test -s conftest.$ac_objext; then
19073 else
19074 echo "$as_me: failed program was:" >&5
19075 sed 's/^/| /' conftest.$ac_ext >&5
19078 cat >>confdefs.h <<\_ACEOF
19079 #define GETTIMEOFDAY_NO_TZ 1
19080 _ACEOF
19085 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19088 done
19091 { echo "$as_me:$LINENO: checking for major" >&5
19092 echo $ECHO_N "checking for major... $ECHO_C" >&6; }
19093 cat >conftest.$ac_ext <<_ACEOF
19094 /* confdefs.h. */
19095 _ACEOF
19096 cat confdefs.h >>conftest.$ac_ext
19097 cat >>conftest.$ac_ext <<_ACEOF
19098 /* end confdefs.h. */
19100 #if defined(MAJOR_IN_MKDEV)
19101 #include <sys/mkdev.h>
19102 #elif defined(MAJOR_IN_SYSMACROS)
19103 #include <sys/sysmacros.h>
19104 #else
19105 #include <sys/types.h>
19106 #endif
19109 main ()
19112 makedev(major(0),minor(0));
19115 return 0;
19117 _ACEOF
19118 rm -f conftest.$ac_objext conftest$ac_exeext
19119 if { (ac_try="$ac_link"
19120 case "(($ac_try" in
19121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19122 *) ac_try_echo=$ac_try;;
19123 esac
19124 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19125 (eval "$ac_link") 2>conftest.er1
19126 ac_status=$?
19127 grep -v '^ *+' conftest.er1 >conftest.err
19128 rm -f conftest.er1
19129 cat conftest.err >&5
19130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19131 (exit $ac_status); } && {
19132 test -z "$ac_c_werror_flag" ||
19133 test ! -s conftest.err
19134 } && test -s conftest$ac_exeext &&
19135 $as_test_x conftest$ac_exeext; then
19138 cat >>confdefs.h <<\_ACEOF
19139 #define HAVE_DEVICE_MACROS 1
19140 _ACEOF
19142 { echo "$as_me:$LINENO: result: yes" >&5
19143 echo "${ECHO_T}yes" >&6; }
19145 else
19146 echo "$as_me: failed program was:" >&5
19147 sed 's/^/| /' conftest.$ac_ext >&5
19150 { echo "$as_me:$LINENO: result: no" >&5
19151 echo "${ECHO_T}no" >&6; }
19155 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19156 conftest$ac_exeext conftest.$ac_ext
19158 # On OSF/1 V5.1, getaddrinfo is available, but a define
19159 # for [no]getaddrinfo in netdb.h.
19160 { echo "$as_me:$LINENO: checking for getaddrinfo" >&5
19161 echo $ECHO_N "checking for getaddrinfo... $ECHO_C" >&6; }
19162 cat >conftest.$ac_ext <<_ACEOF
19163 /* confdefs.h. */
19164 _ACEOF
19165 cat confdefs.h >>conftest.$ac_ext
19166 cat >>conftest.$ac_ext <<_ACEOF
19167 /* end confdefs.h. */
19169 #include <sys/types.h>
19170 #include <sys/socket.h>
19171 #include <netdb.h>
19172 #include <stdio.h>
19175 main ()
19178 getaddrinfo(NULL, NULL, NULL, NULL);
19181 return 0;
19183 _ACEOF
19184 rm -f conftest.$ac_objext conftest$ac_exeext
19185 if { (ac_try="$ac_link"
19186 case "(($ac_try" in
19187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19188 *) ac_try_echo=$ac_try;;
19189 esac
19190 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19191 (eval "$ac_link") 2>conftest.er1
19192 ac_status=$?
19193 grep -v '^ *+' conftest.er1 >conftest.err
19194 rm -f conftest.er1
19195 cat conftest.err >&5
19196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19197 (exit $ac_status); } && {
19198 test -z "$ac_c_werror_flag" ||
19199 test ! -s conftest.err
19200 } && test -s conftest$ac_exeext &&
19201 $as_test_x conftest$ac_exeext; then
19203 { echo "$as_me:$LINENO: result: yes" >&5
19204 echo "${ECHO_T}yes" >&6; }
19205 { echo "$as_me:$LINENO: checking getaddrinfo bug" >&5
19206 echo $ECHO_N "checking getaddrinfo bug... $ECHO_C" >&6; }
19207 if test "$cross_compiling" = yes; then
19208 { echo "$as_me:$LINENO: result: buggy" >&5
19209 echo "${ECHO_T}buggy" >&6; }
19210 buggygetaddrinfo=yes
19211 else
19212 cat >conftest.$ac_ext <<_ACEOF
19213 /* confdefs.h. */
19214 _ACEOF
19215 cat confdefs.h >>conftest.$ac_ext
19216 cat >>conftest.$ac_ext <<_ACEOF
19217 /* end confdefs.h. */
19219 #include <sys/types.h>
19220 #include <netdb.h>
19221 #include <string.h>
19222 #include <sys/socket.h>
19223 #include <netinet/in.h>
19225 main()
19227 int passive, gaierr, inet4 = 0, inet6 = 0;
19228 struct addrinfo hints, *ai, *aitop;
19229 char straddr[INET6_ADDRSTRLEN], strport[16];
19231 for (passive = 0; passive <= 1; passive++) {
19232 memset(&hints, 0, sizeof(hints));
19233 hints.ai_family = AF_UNSPEC;
19234 hints.ai_flags = passive ? AI_PASSIVE : 0;
19235 hints.ai_socktype = SOCK_STREAM;
19236 hints.ai_protocol = IPPROTO_TCP;
19237 if ((gaierr = getaddrinfo(NULL, "54321", &hints, &aitop)) != 0) {
19238 (void)gai_strerror(gaierr);
19239 goto bad;
19241 for (ai = aitop; ai; ai = ai->ai_next) {
19242 if (ai->ai_addr == NULL ||
19243 ai->ai_addrlen == 0 ||
19244 getnameinfo(ai->ai_addr, ai->ai_addrlen,
19245 straddr, sizeof(straddr), strport, sizeof(strport),
19246 NI_NUMERICHOST|NI_NUMERICSERV) != 0) {
19247 goto bad;
19249 switch (ai->ai_family) {
19250 case AF_INET:
19251 if (strcmp(strport, "54321") != 0) {
19252 goto bad;
19254 if (passive) {
19255 if (strcmp(straddr, "0.0.0.0") != 0) {
19256 goto bad;
19258 } else {
19259 if (strcmp(straddr, "127.0.0.1") != 0) {
19260 goto bad;
19263 inet4++;
19264 break;
19265 case AF_INET6:
19266 if (strcmp(strport, "54321") != 0) {
19267 goto bad;
19269 if (passive) {
19270 if (strcmp(straddr, "::") != 0) {
19271 goto bad;
19273 } else {
19274 if (strcmp(straddr, "::1") != 0) {
19275 goto bad;
19278 inet6++;
19279 break;
19280 case AF_UNSPEC:
19281 goto bad;
19282 break;
19283 default:
19284 /* another family support? */
19285 break;
19290 if (!(inet4 == 0 || inet4 == 2))
19291 goto bad;
19292 if (!(inet6 == 0 || inet6 == 2))
19293 goto bad;
19295 if (aitop)
19296 freeaddrinfo(aitop);
19297 exit(0);
19299 bad:
19300 if (aitop)
19301 freeaddrinfo(aitop);
19302 exit(1);
19305 _ACEOF
19306 rm -f conftest$ac_exeext
19307 if { (ac_try="$ac_link"
19308 case "(($ac_try" in
19309 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19310 *) ac_try_echo=$ac_try;;
19311 esac
19312 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19313 (eval "$ac_link") 2>&5
19314 ac_status=$?
19315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19316 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19317 { (case "(($ac_try" in
19318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19319 *) ac_try_echo=$ac_try;;
19320 esac
19321 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19322 (eval "$ac_try") 2>&5
19323 ac_status=$?
19324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19325 (exit $ac_status); }; }; then
19326 { echo "$as_me:$LINENO: result: good" >&5
19327 echo "${ECHO_T}good" >&6; }
19328 buggygetaddrinfo=no
19329 else
19330 echo "$as_me: program exited with status $ac_status" >&5
19331 echo "$as_me: failed program was:" >&5
19332 sed 's/^/| /' conftest.$ac_ext >&5
19334 ( exit $ac_status )
19335 { echo "$as_me:$LINENO: result: buggy" >&5
19336 echo "${ECHO_T}buggy" >&6; }
19337 buggygetaddrinfo=yes
19339 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19343 else
19344 echo "$as_me: failed program was:" >&5
19345 sed 's/^/| /' conftest.$ac_ext >&5
19348 { echo "$as_me:$LINENO: result: no" >&5
19349 echo "${ECHO_T}no" >&6; }
19350 buggygetaddrinfo=yes
19354 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19355 conftest$ac_exeext conftest.$ac_ext
19357 if test "$buggygetaddrinfo" = "yes"; then
19358 if test "$ipv6" = "yes"; then
19359 echo 'Fatal: You must get working getaddrinfo() function.'
19360 echo ' or you can specify "--disable-ipv6"'.
19361 exit 1
19363 else
19365 cat >>confdefs.h <<\_ACEOF
19366 #define HAVE_GETADDRINFO 1
19367 _ACEOF
19371 for ac_func in getnameinfo
19373 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19374 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19375 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19376 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19377 echo $ECHO_N "(cached) $ECHO_C" >&6
19378 else
19379 cat >conftest.$ac_ext <<_ACEOF
19380 /* confdefs.h. */
19381 _ACEOF
19382 cat confdefs.h >>conftest.$ac_ext
19383 cat >>conftest.$ac_ext <<_ACEOF
19384 /* end confdefs.h. */
19385 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19386 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19387 #define $ac_func innocuous_$ac_func
19389 /* System header to define __stub macros and hopefully few prototypes,
19390 which can conflict with char $ac_func (); below.
19391 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19392 <limits.h> exists even on freestanding compilers. */
19394 #ifdef __STDC__
19395 # include <limits.h>
19396 #else
19397 # include <assert.h>
19398 #endif
19400 #undef $ac_func
19402 /* Override any GCC internal prototype to avoid an error.
19403 Use char because int might match the return type of a GCC
19404 builtin and then its argument prototype would still apply. */
19405 #ifdef __cplusplus
19406 extern "C"
19407 #endif
19408 char $ac_func ();
19409 /* The GNU C library defines this for functions which it implements
19410 to always fail with ENOSYS. Some functions are actually named
19411 something starting with __ and the normal name is an alias. */
19412 #if defined __stub_$ac_func || defined __stub___$ac_func
19413 choke me
19414 #endif
19417 main ()
19419 return $ac_func ();
19421 return 0;
19423 _ACEOF
19424 rm -f conftest.$ac_objext conftest$ac_exeext
19425 if { (ac_try="$ac_link"
19426 case "(($ac_try" in
19427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19428 *) ac_try_echo=$ac_try;;
19429 esac
19430 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19431 (eval "$ac_link") 2>conftest.er1
19432 ac_status=$?
19433 grep -v '^ *+' conftest.er1 >conftest.err
19434 rm -f conftest.er1
19435 cat conftest.err >&5
19436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19437 (exit $ac_status); } && {
19438 test -z "$ac_c_werror_flag" ||
19439 test ! -s conftest.err
19440 } && test -s conftest$ac_exeext &&
19441 $as_test_x conftest$ac_exeext; then
19442 eval "$as_ac_var=yes"
19443 else
19444 echo "$as_me: failed program was:" >&5
19445 sed 's/^/| /' conftest.$ac_ext >&5
19447 eval "$as_ac_var=no"
19450 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19451 conftest$ac_exeext conftest.$ac_ext
19453 ac_res=`eval echo '${'$as_ac_var'}'`
19454 { echo "$as_me:$LINENO: result: $ac_res" >&5
19455 echo "${ECHO_T}$ac_res" >&6; }
19456 if test `eval echo '${'$as_ac_var'}'` = yes; then
19457 cat >>confdefs.h <<_ACEOF
19458 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19459 _ACEOF
19462 done
19465 # checks for structures
19466 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
19467 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
19468 if test "${ac_cv_header_time+set}" = set; then
19469 echo $ECHO_N "(cached) $ECHO_C" >&6
19470 else
19471 cat >conftest.$ac_ext <<_ACEOF
19472 /* confdefs.h. */
19473 _ACEOF
19474 cat confdefs.h >>conftest.$ac_ext
19475 cat >>conftest.$ac_ext <<_ACEOF
19476 /* end confdefs.h. */
19477 #include <sys/types.h>
19478 #include <sys/time.h>
19479 #include <time.h>
19482 main ()
19484 if ((struct tm *) 0)
19485 return 0;
19487 return 0;
19489 _ACEOF
19490 rm -f conftest.$ac_objext
19491 if { (ac_try="$ac_compile"
19492 case "(($ac_try" in
19493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19494 *) ac_try_echo=$ac_try;;
19495 esac
19496 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19497 (eval "$ac_compile") 2>conftest.er1
19498 ac_status=$?
19499 grep -v '^ *+' conftest.er1 >conftest.err
19500 rm -f conftest.er1
19501 cat conftest.err >&5
19502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19503 (exit $ac_status); } && {
19504 test -z "$ac_c_werror_flag" ||
19505 test ! -s conftest.err
19506 } && test -s conftest.$ac_objext; then
19507 ac_cv_header_time=yes
19508 else
19509 echo "$as_me: failed program was:" >&5
19510 sed 's/^/| /' conftest.$ac_ext >&5
19512 ac_cv_header_time=no
19515 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19517 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
19518 echo "${ECHO_T}$ac_cv_header_time" >&6; }
19519 if test $ac_cv_header_time = yes; then
19521 cat >>confdefs.h <<\_ACEOF
19522 #define TIME_WITH_SYS_TIME 1
19523 _ACEOF
19527 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
19528 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
19529 if test "${ac_cv_struct_tm+set}" = set; then
19530 echo $ECHO_N "(cached) $ECHO_C" >&6
19531 else
19532 cat >conftest.$ac_ext <<_ACEOF
19533 /* confdefs.h. */
19534 _ACEOF
19535 cat confdefs.h >>conftest.$ac_ext
19536 cat >>conftest.$ac_ext <<_ACEOF
19537 /* end confdefs.h. */
19538 #include <sys/types.h>
19539 #include <time.h>
19542 main ()
19544 struct tm tm;
19545 int *p = &tm.tm_sec;
19546 return !p;
19548 return 0;
19550 _ACEOF
19551 rm -f conftest.$ac_objext
19552 if { (ac_try="$ac_compile"
19553 case "(($ac_try" in
19554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19555 *) ac_try_echo=$ac_try;;
19556 esac
19557 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19558 (eval "$ac_compile") 2>conftest.er1
19559 ac_status=$?
19560 grep -v '^ *+' conftest.er1 >conftest.err
19561 rm -f conftest.er1
19562 cat conftest.err >&5
19563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19564 (exit $ac_status); } && {
19565 test -z "$ac_c_werror_flag" ||
19566 test ! -s conftest.err
19567 } && test -s conftest.$ac_objext; then
19568 ac_cv_struct_tm=time.h
19569 else
19570 echo "$as_me: failed program was:" >&5
19571 sed 's/^/| /' conftest.$ac_ext >&5
19573 ac_cv_struct_tm=sys/time.h
19576 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19578 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
19579 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
19580 if test $ac_cv_struct_tm = sys/time.h; then
19582 cat >>confdefs.h <<\_ACEOF
19583 #define TM_IN_SYS_TIME 1
19584 _ACEOF
19588 { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
19589 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
19590 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
19591 echo $ECHO_N "(cached) $ECHO_C" >&6
19592 else
19593 cat >conftest.$ac_ext <<_ACEOF
19594 /* confdefs.h. */
19595 _ACEOF
19596 cat confdefs.h >>conftest.$ac_ext
19597 cat >>conftest.$ac_ext <<_ACEOF
19598 /* end confdefs.h. */
19599 #include <sys/types.h>
19600 #include <$ac_cv_struct_tm>
19604 main ()
19606 static struct tm ac_aggr;
19607 if (ac_aggr.tm_zone)
19608 return 0;
19610 return 0;
19612 _ACEOF
19613 rm -f conftest.$ac_objext
19614 if { (ac_try="$ac_compile"
19615 case "(($ac_try" in
19616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19617 *) ac_try_echo=$ac_try;;
19618 esac
19619 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19620 (eval "$ac_compile") 2>conftest.er1
19621 ac_status=$?
19622 grep -v '^ *+' conftest.er1 >conftest.err
19623 rm -f conftest.er1
19624 cat conftest.err >&5
19625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19626 (exit $ac_status); } && {
19627 test -z "$ac_c_werror_flag" ||
19628 test ! -s conftest.err
19629 } && test -s conftest.$ac_objext; then
19630 ac_cv_member_struct_tm_tm_zone=yes
19631 else
19632 echo "$as_me: failed program was:" >&5
19633 sed 's/^/| /' conftest.$ac_ext >&5
19635 cat >conftest.$ac_ext <<_ACEOF
19636 /* confdefs.h. */
19637 _ACEOF
19638 cat confdefs.h >>conftest.$ac_ext
19639 cat >>conftest.$ac_ext <<_ACEOF
19640 /* end confdefs.h. */
19641 #include <sys/types.h>
19642 #include <$ac_cv_struct_tm>
19646 main ()
19648 static struct tm ac_aggr;
19649 if (sizeof ac_aggr.tm_zone)
19650 return 0;
19652 return 0;
19654 _ACEOF
19655 rm -f conftest.$ac_objext
19656 if { (ac_try="$ac_compile"
19657 case "(($ac_try" in
19658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19659 *) ac_try_echo=$ac_try;;
19660 esac
19661 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19662 (eval "$ac_compile") 2>conftest.er1
19663 ac_status=$?
19664 grep -v '^ *+' conftest.er1 >conftest.err
19665 rm -f conftest.er1
19666 cat conftest.err >&5
19667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19668 (exit $ac_status); } && {
19669 test -z "$ac_c_werror_flag" ||
19670 test ! -s conftest.err
19671 } && test -s conftest.$ac_objext; then
19672 ac_cv_member_struct_tm_tm_zone=yes
19673 else
19674 echo "$as_me: failed program was:" >&5
19675 sed 's/^/| /' conftest.$ac_ext >&5
19677 ac_cv_member_struct_tm_tm_zone=no
19680 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19683 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19685 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
19686 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
19687 if test $ac_cv_member_struct_tm_tm_zone = yes; then
19689 cat >>confdefs.h <<_ACEOF
19690 #define HAVE_STRUCT_TM_TM_ZONE 1
19691 _ACEOF
19696 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
19698 cat >>confdefs.h <<\_ACEOF
19699 #define HAVE_TM_ZONE 1
19700 _ACEOF
19702 else
19703 { echo "$as_me:$LINENO: checking whether tzname is declared" >&5
19704 echo $ECHO_N "checking whether tzname is declared... $ECHO_C" >&6; }
19705 if test "${ac_cv_have_decl_tzname+set}" = set; then
19706 echo $ECHO_N "(cached) $ECHO_C" >&6
19707 else
19708 cat >conftest.$ac_ext <<_ACEOF
19709 /* confdefs.h. */
19710 _ACEOF
19711 cat confdefs.h >>conftest.$ac_ext
19712 cat >>conftest.$ac_ext <<_ACEOF
19713 /* end confdefs.h. */
19714 #include <time.h>
19717 main ()
19719 #ifndef tzname
19720 (void) tzname;
19721 #endif
19724 return 0;
19726 _ACEOF
19727 rm -f conftest.$ac_objext
19728 if { (ac_try="$ac_compile"
19729 case "(($ac_try" in
19730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19731 *) ac_try_echo=$ac_try;;
19732 esac
19733 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19734 (eval "$ac_compile") 2>conftest.er1
19735 ac_status=$?
19736 grep -v '^ *+' conftest.er1 >conftest.err
19737 rm -f conftest.er1
19738 cat conftest.err >&5
19739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19740 (exit $ac_status); } && {
19741 test -z "$ac_c_werror_flag" ||
19742 test ! -s conftest.err
19743 } && test -s conftest.$ac_objext; then
19744 ac_cv_have_decl_tzname=yes
19745 else
19746 echo "$as_me: failed program was:" >&5
19747 sed 's/^/| /' conftest.$ac_ext >&5
19749 ac_cv_have_decl_tzname=no
19752 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19754 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
19755 echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; }
19756 if test $ac_cv_have_decl_tzname = yes; then
19758 cat >>confdefs.h <<_ACEOF
19759 #define HAVE_DECL_TZNAME 1
19760 _ACEOF
19763 else
19764 cat >>confdefs.h <<_ACEOF
19765 #define HAVE_DECL_TZNAME 0
19766 _ACEOF
19772 { echo "$as_me:$LINENO: checking for tzname" >&5
19773 echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
19774 if test "${ac_cv_var_tzname+set}" = set; then
19775 echo $ECHO_N "(cached) $ECHO_C" >&6
19776 else
19777 cat >conftest.$ac_ext <<_ACEOF
19778 /* confdefs.h. */
19779 _ACEOF
19780 cat confdefs.h >>conftest.$ac_ext
19781 cat >>conftest.$ac_ext <<_ACEOF
19782 /* end confdefs.h. */
19783 #include <time.h>
19784 #if !HAVE_DECL_TZNAME
19785 extern char *tzname[];
19786 #endif
19789 main ()
19791 return tzname[0][0];
19793 return 0;
19795 _ACEOF
19796 rm -f conftest.$ac_objext conftest$ac_exeext
19797 if { (ac_try="$ac_link"
19798 case "(($ac_try" in
19799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19800 *) ac_try_echo=$ac_try;;
19801 esac
19802 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19803 (eval "$ac_link") 2>conftest.er1
19804 ac_status=$?
19805 grep -v '^ *+' conftest.er1 >conftest.err
19806 rm -f conftest.er1
19807 cat conftest.err >&5
19808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19809 (exit $ac_status); } && {
19810 test -z "$ac_c_werror_flag" ||
19811 test ! -s conftest.err
19812 } && test -s conftest$ac_exeext &&
19813 $as_test_x conftest$ac_exeext; then
19814 ac_cv_var_tzname=yes
19815 else
19816 echo "$as_me: failed program was:" >&5
19817 sed 's/^/| /' conftest.$ac_ext >&5
19819 ac_cv_var_tzname=no
19822 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19823 conftest$ac_exeext conftest.$ac_ext
19825 { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
19826 echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
19827 if test $ac_cv_var_tzname = yes; then
19829 cat >>confdefs.h <<\_ACEOF
19830 #define HAVE_TZNAME 1
19831 _ACEOF
19836 { echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
19837 echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6; }
19838 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
19839 echo $ECHO_N "(cached) $ECHO_C" >&6
19840 else
19841 cat >conftest.$ac_ext <<_ACEOF
19842 /* confdefs.h. */
19843 _ACEOF
19844 cat confdefs.h >>conftest.$ac_ext
19845 cat >>conftest.$ac_ext <<_ACEOF
19846 /* end confdefs.h. */
19847 $ac_includes_default
19849 main ()
19851 static struct stat ac_aggr;
19852 if (ac_aggr.st_rdev)
19853 return 0;
19855 return 0;
19857 _ACEOF
19858 rm -f conftest.$ac_objext
19859 if { (ac_try="$ac_compile"
19860 case "(($ac_try" in
19861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19862 *) ac_try_echo=$ac_try;;
19863 esac
19864 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19865 (eval "$ac_compile") 2>conftest.er1
19866 ac_status=$?
19867 grep -v '^ *+' conftest.er1 >conftest.err
19868 rm -f conftest.er1
19869 cat conftest.err >&5
19870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19871 (exit $ac_status); } && {
19872 test -z "$ac_c_werror_flag" ||
19873 test ! -s conftest.err
19874 } && test -s conftest.$ac_objext; then
19875 ac_cv_member_struct_stat_st_rdev=yes
19876 else
19877 echo "$as_me: failed program was:" >&5
19878 sed 's/^/| /' conftest.$ac_ext >&5
19880 cat >conftest.$ac_ext <<_ACEOF
19881 /* confdefs.h. */
19882 _ACEOF
19883 cat confdefs.h >>conftest.$ac_ext
19884 cat >>conftest.$ac_ext <<_ACEOF
19885 /* end confdefs.h. */
19886 $ac_includes_default
19888 main ()
19890 static struct stat ac_aggr;
19891 if (sizeof ac_aggr.st_rdev)
19892 return 0;
19894 return 0;
19896 _ACEOF
19897 rm -f conftest.$ac_objext
19898 if { (ac_try="$ac_compile"
19899 case "(($ac_try" in
19900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19901 *) ac_try_echo=$ac_try;;
19902 esac
19903 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19904 (eval "$ac_compile") 2>conftest.er1
19905 ac_status=$?
19906 grep -v '^ *+' conftest.er1 >conftest.err
19907 rm -f conftest.er1
19908 cat conftest.err >&5
19909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19910 (exit $ac_status); } && {
19911 test -z "$ac_c_werror_flag" ||
19912 test ! -s conftest.err
19913 } && test -s conftest.$ac_objext; then
19914 ac_cv_member_struct_stat_st_rdev=yes
19915 else
19916 echo "$as_me: failed program was:" >&5
19917 sed 's/^/| /' conftest.$ac_ext >&5
19919 ac_cv_member_struct_stat_st_rdev=no
19922 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19925 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19927 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
19928 echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6; }
19929 if test $ac_cv_member_struct_stat_st_rdev = yes; then
19931 cat >>confdefs.h <<_ACEOF
19932 #define HAVE_STRUCT_STAT_ST_RDEV 1
19933 _ACEOF
19938 { echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
19939 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6; }
19940 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
19941 echo $ECHO_N "(cached) $ECHO_C" >&6
19942 else
19943 cat >conftest.$ac_ext <<_ACEOF
19944 /* confdefs.h. */
19945 _ACEOF
19946 cat confdefs.h >>conftest.$ac_ext
19947 cat >>conftest.$ac_ext <<_ACEOF
19948 /* end confdefs.h. */
19949 $ac_includes_default
19951 main ()
19953 static struct stat ac_aggr;
19954 if (ac_aggr.st_blksize)
19955 return 0;
19957 return 0;
19959 _ACEOF
19960 rm -f conftest.$ac_objext
19961 if { (ac_try="$ac_compile"
19962 case "(($ac_try" in
19963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19964 *) ac_try_echo=$ac_try;;
19965 esac
19966 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19967 (eval "$ac_compile") 2>conftest.er1
19968 ac_status=$?
19969 grep -v '^ *+' conftest.er1 >conftest.err
19970 rm -f conftest.er1
19971 cat conftest.err >&5
19972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19973 (exit $ac_status); } && {
19974 test -z "$ac_c_werror_flag" ||
19975 test ! -s conftest.err
19976 } && test -s conftest.$ac_objext; then
19977 ac_cv_member_struct_stat_st_blksize=yes
19978 else
19979 echo "$as_me: failed program was:" >&5
19980 sed 's/^/| /' conftest.$ac_ext >&5
19982 cat >conftest.$ac_ext <<_ACEOF
19983 /* confdefs.h. */
19984 _ACEOF
19985 cat confdefs.h >>conftest.$ac_ext
19986 cat >>conftest.$ac_ext <<_ACEOF
19987 /* end confdefs.h. */
19988 $ac_includes_default
19990 main ()
19992 static struct stat ac_aggr;
19993 if (sizeof ac_aggr.st_blksize)
19994 return 0;
19996 return 0;
19998 _ACEOF
19999 rm -f conftest.$ac_objext
20000 if { (ac_try="$ac_compile"
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_compile") 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_objext; then
20016 ac_cv_member_struct_stat_st_blksize=yes
20017 else
20018 echo "$as_me: failed program was:" >&5
20019 sed 's/^/| /' conftest.$ac_ext >&5
20021 ac_cv_member_struct_stat_st_blksize=no
20024 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20027 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20029 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
20030 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6; }
20031 if test $ac_cv_member_struct_stat_st_blksize = yes; then
20033 cat >>confdefs.h <<_ACEOF
20034 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
20035 _ACEOF
20040 { echo "$as_me:$LINENO: checking for struct stat.st_flags" >&5
20041 echo $ECHO_N "checking for struct stat.st_flags... $ECHO_C" >&6; }
20042 if test "${ac_cv_member_struct_stat_st_flags+set}" = set; then
20043 echo $ECHO_N "(cached) $ECHO_C" >&6
20044 else
20045 cat >conftest.$ac_ext <<_ACEOF
20046 /* confdefs.h. */
20047 _ACEOF
20048 cat confdefs.h >>conftest.$ac_ext
20049 cat >>conftest.$ac_ext <<_ACEOF
20050 /* end confdefs.h. */
20051 $ac_includes_default
20053 main ()
20055 static struct stat ac_aggr;
20056 if (ac_aggr.st_flags)
20057 return 0;
20059 return 0;
20061 _ACEOF
20062 rm -f conftest.$ac_objext
20063 if { (ac_try="$ac_compile"
20064 case "(($ac_try" in
20065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20066 *) ac_try_echo=$ac_try;;
20067 esac
20068 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20069 (eval "$ac_compile") 2>conftest.er1
20070 ac_status=$?
20071 grep -v '^ *+' conftest.er1 >conftest.err
20072 rm -f conftest.er1
20073 cat conftest.err >&5
20074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20075 (exit $ac_status); } && {
20076 test -z "$ac_c_werror_flag" ||
20077 test ! -s conftest.err
20078 } && test -s conftest.$ac_objext; then
20079 ac_cv_member_struct_stat_st_flags=yes
20080 else
20081 echo "$as_me: failed program was:" >&5
20082 sed 's/^/| /' conftest.$ac_ext >&5
20084 cat >conftest.$ac_ext <<_ACEOF
20085 /* confdefs.h. */
20086 _ACEOF
20087 cat confdefs.h >>conftest.$ac_ext
20088 cat >>conftest.$ac_ext <<_ACEOF
20089 /* end confdefs.h. */
20090 $ac_includes_default
20092 main ()
20094 static struct stat ac_aggr;
20095 if (sizeof ac_aggr.st_flags)
20096 return 0;
20098 return 0;
20100 _ACEOF
20101 rm -f conftest.$ac_objext
20102 if { (ac_try="$ac_compile"
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_compile") 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_objext; then
20118 ac_cv_member_struct_stat_st_flags=yes
20119 else
20120 echo "$as_me: failed program was:" >&5
20121 sed 's/^/| /' conftest.$ac_ext >&5
20123 ac_cv_member_struct_stat_st_flags=no
20126 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20129 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20131 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_flags" >&5
20132 echo "${ECHO_T}$ac_cv_member_struct_stat_st_flags" >&6; }
20133 if test $ac_cv_member_struct_stat_st_flags = yes; then
20135 cat >>confdefs.h <<_ACEOF
20136 #define HAVE_STRUCT_STAT_ST_FLAGS 1
20137 _ACEOF
20142 { echo "$as_me:$LINENO: checking for struct stat.st_gen" >&5
20143 echo $ECHO_N "checking for struct stat.st_gen... $ECHO_C" >&6; }
20144 if test "${ac_cv_member_struct_stat_st_gen+set}" = set; then
20145 echo $ECHO_N "(cached) $ECHO_C" >&6
20146 else
20147 cat >conftest.$ac_ext <<_ACEOF
20148 /* confdefs.h. */
20149 _ACEOF
20150 cat confdefs.h >>conftest.$ac_ext
20151 cat >>conftest.$ac_ext <<_ACEOF
20152 /* end confdefs.h. */
20153 $ac_includes_default
20155 main ()
20157 static struct stat ac_aggr;
20158 if (ac_aggr.st_gen)
20159 return 0;
20161 return 0;
20163 _ACEOF
20164 rm -f conftest.$ac_objext
20165 if { (ac_try="$ac_compile"
20166 case "(($ac_try" in
20167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20168 *) ac_try_echo=$ac_try;;
20169 esac
20170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20171 (eval "$ac_compile") 2>conftest.er1
20172 ac_status=$?
20173 grep -v '^ *+' conftest.er1 >conftest.err
20174 rm -f conftest.er1
20175 cat conftest.err >&5
20176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20177 (exit $ac_status); } && {
20178 test -z "$ac_c_werror_flag" ||
20179 test ! -s conftest.err
20180 } && test -s conftest.$ac_objext; then
20181 ac_cv_member_struct_stat_st_gen=yes
20182 else
20183 echo "$as_me: failed program was:" >&5
20184 sed 's/^/| /' conftest.$ac_ext >&5
20186 cat >conftest.$ac_ext <<_ACEOF
20187 /* confdefs.h. */
20188 _ACEOF
20189 cat confdefs.h >>conftest.$ac_ext
20190 cat >>conftest.$ac_ext <<_ACEOF
20191 /* end confdefs.h. */
20192 $ac_includes_default
20194 main ()
20196 static struct stat ac_aggr;
20197 if (sizeof ac_aggr.st_gen)
20198 return 0;
20200 return 0;
20202 _ACEOF
20203 rm -f conftest.$ac_objext
20204 if { (ac_try="$ac_compile"
20205 case "(($ac_try" in
20206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20207 *) ac_try_echo=$ac_try;;
20208 esac
20209 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20210 (eval "$ac_compile") 2>conftest.er1
20211 ac_status=$?
20212 grep -v '^ *+' conftest.er1 >conftest.err
20213 rm -f conftest.er1
20214 cat conftest.err >&5
20215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20216 (exit $ac_status); } && {
20217 test -z "$ac_c_werror_flag" ||
20218 test ! -s conftest.err
20219 } && test -s conftest.$ac_objext; then
20220 ac_cv_member_struct_stat_st_gen=yes
20221 else
20222 echo "$as_me: failed program was:" >&5
20223 sed 's/^/| /' conftest.$ac_ext >&5
20225 ac_cv_member_struct_stat_st_gen=no
20228 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20231 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20233 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_gen" >&5
20234 echo "${ECHO_T}$ac_cv_member_struct_stat_st_gen" >&6; }
20235 if test $ac_cv_member_struct_stat_st_gen = yes; then
20237 cat >>confdefs.h <<_ACEOF
20238 #define HAVE_STRUCT_STAT_ST_GEN 1
20239 _ACEOF
20244 { echo "$as_me:$LINENO: checking for struct stat.st_birthtime" >&5
20245 echo $ECHO_N "checking for struct stat.st_birthtime... $ECHO_C" >&6; }
20246 if test "${ac_cv_member_struct_stat_st_birthtime+set}" = set; then
20247 echo $ECHO_N "(cached) $ECHO_C" >&6
20248 else
20249 cat >conftest.$ac_ext <<_ACEOF
20250 /* confdefs.h. */
20251 _ACEOF
20252 cat confdefs.h >>conftest.$ac_ext
20253 cat >>conftest.$ac_ext <<_ACEOF
20254 /* end confdefs.h. */
20255 $ac_includes_default
20257 main ()
20259 static struct stat ac_aggr;
20260 if (ac_aggr.st_birthtime)
20261 return 0;
20263 return 0;
20265 _ACEOF
20266 rm -f conftest.$ac_objext
20267 if { (ac_try="$ac_compile"
20268 case "(($ac_try" in
20269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20270 *) ac_try_echo=$ac_try;;
20271 esac
20272 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20273 (eval "$ac_compile") 2>conftest.er1
20274 ac_status=$?
20275 grep -v '^ *+' conftest.er1 >conftest.err
20276 rm -f conftest.er1
20277 cat conftest.err >&5
20278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20279 (exit $ac_status); } && {
20280 test -z "$ac_c_werror_flag" ||
20281 test ! -s conftest.err
20282 } && test -s conftest.$ac_objext; then
20283 ac_cv_member_struct_stat_st_birthtime=yes
20284 else
20285 echo "$as_me: failed program was:" >&5
20286 sed 's/^/| /' conftest.$ac_ext >&5
20288 cat >conftest.$ac_ext <<_ACEOF
20289 /* confdefs.h. */
20290 _ACEOF
20291 cat confdefs.h >>conftest.$ac_ext
20292 cat >>conftest.$ac_ext <<_ACEOF
20293 /* end confdefs.h. */
20294 $ac_includes_default
20296 main ()
20298 static struct stat ac_aggr;
20299 if (sizeof ac_aggr.st_birthtime)
20300 return 0;
20302 return 0;
20304 _ACEOF
20305 rm -f conftest.$ac_objext
20306 if { (ac_try="$ac_compile"
20307 case "(($ac_try" in
20308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20309 *) ac_try_echo=$ac_try;;
20310 esac
20311 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20312 (eval "$ac_compile") 2>conftest.er1
20313 ac_status=$?
20314 grep -v '^ *+' conftest.er1 >conftest.err
20315 rm -f conftest.er1
20316 cat conftest.err >&5
20317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20318 (exit $ac_status); } && {
20319 test -z "$ac_c_werror_flag" ||
20320 test ! -s conftest.err
20321 } && test -s conftest.$ac_objext; then
20322 ac_cv_member_struct_stat_st_birthtime=yes
20323 else
20324 echo "$as_me: failed program was:" >&5
20325 sed 's/^/| /' conftest.$ac_ext >&5
20327 ac_cv_member_struct_stat_st_birthtime=no
20330 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20333 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20335 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_birthtime" >&5
20336 echo "${ECHO_T}$ac_cv_member_struct_stat_st_birthtime" >&6; }
20337 if test $ac_cv_member_struct_stat_st_birthtime = yes; then
20339 cat >>confdefs.h <<_ACEOF
20340 #define HAVE_STRUCT_STAT_ST_BIRTHTIME 1
20341 _ACEOF
20346 { echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
20347 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6; }
20348 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
20349 echo $ECHO_N "(cached) $ECHO_C" >&6
20350 else
20351 cat >conftest.$ac_ext <<_ACEOF
20352 /* confdefs.h. */
20353 _ACEOF
20354 cat confdefs.h >>conftest.$ac_ext
20355 cat >>conftest.$ac_ext <<_ACEOF
20356 /* end confdefs.h. */
20357 $ac_includes_default
20359 main ()
20361 static struct stat ac_aggr;
20362 if (ac_aggr.st_blocks)
20363 return 0;
20365 return 0;
20367 _ACEOF
20368 rm -f conftest.$ac_objext
20369 if { (ac_try="$ac_compile"
20370 case "(($ac_try" in
20371 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20372 *) ac_try_echo=$ac_try;;
20373 esac
20374 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20375 (eval "$ac_compile") 2>conftest.er1
20376 ac_status=$?
20377 grep -v '^ *+' conftest.er1 >conftest.err
20378 rm -f conftest.er1
20379 cat conftest.err >&5
20380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20381 (exit $ac_status); } && {
20382 test -z "$ac_c_werror_flag" ||
20383 test ! -s conftest.err
20384 } && test -s conftest.$ac_objext; then
20385 ac_cv_member_struct_stat_st_blocks=yes
20386 else
20387 echo "$as_me: failed program was:" >&5
20388 sed 's/^/| /' conftest.$ac_ext >&5
20390 cat >conftest.$ac_ext <<_ACEOF
20391 /* confdefs.h. */
20392 _ACEOF
20393 cat confdefs.h >>conftest.$ac_ext
20394 cat >>conftest.$ac_ext <<_ACEOF
20395 /* end confdefs.h. */
20396 $ac_includes_default
20398 main ()
20400 static struct stat ac_aggr;
20401 if (sizeof ac_aggr.st_blocks)
20402 return 0;
20404 return 0;
20406 _ACEOF
20407 rm -f conftest.$ac_objext
20408 if { (ac_try="$ac_compile"
20409 case "(($ac_try" in
20410 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20411 *) ac_try_echo=$ac_try;;
20412 esac
20413 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20414 (eval "$ac_compile") 2>conftest.er1
20415 ac_status=$?
20416 grep -v '^ *+' conftest.er1 >conftest.err
20417 rm -f conftest.er1
20418 cat conftest.err >&5
20419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20420 (exit $ac_status); } && {
20421 test -z "$ac_c_werror_flag" ||
20422 test ! -s conftest.err
20423 } && test -s conftest.$ac_objext; then
20424 ac_cv_member_struct_stat_st_blocks=yes
20425 else
20426 echo "$as_me: failed program was:" >&5
20427 sed 's/^/| /' conftest.$ac_ext >&5
20429 ac_cv_member_struct_stat_st_blocks=no
20432 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20435 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20437 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
20438 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6; }
20439 if test $ac_cv_member_struct_stat_st_blocks = yes; then
20441 cat >>confdefs.h <<_ACEOF
20442 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
20443 _ACEOF
20446 cat >>confdefs.h <<\_ACEOF
20447 #define HAVE_ST_BLOCKS 1
20448 _ACEOF
20450 else
20451 case " $LIBOBJS " in
20452 *" fileblocks.$ac_objext "* ) ;;
20453 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
20455 esac
20461 { echo "$as_me:$LINENO: checking for time.h that defines altzone" >&5
20462 echo $ECHO_N "checking for time.h that defines altzone... $ECHO_C" >&6; }
20463 if test "${ac_cv_header_time_altzone+set}" = set; then
20464 echo $ECHO_N "(cached) $ECHO_C" >&6
20465 else
20466 cat >conftest.$ac_ext <<_ACEOF
20467 /* confdefs.h. */
20468 _ACEOF
20469 cat confdefs.h >>conftest.$ac_ext
20470 cat >>conftest.$ac_ext <<_ACEOF
20471 /* end confdefs.h. */
20472 #include <time.h>
20474 main ()
20476 return altzone;
20478 return 0;
20480 _ACEOF
20481 rm -f conftest.$ac_objext
20482 if { (ac_try="$ac_compile"
20483 case "(($ac_try" in
20484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20485 *) ac_try_echo=$ac_try;;
20486 esac
20487 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20488 (eval "$ac_compile") 2>conftest.er1
20489 ac_status=$?
20490 grep -v '^ *+' conftest.er1 >conftest.err
20491 rm -f conftest.er1
20492 cat conftest.err >&5
20493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20494 (exit $ac_status); } && {
20495 test -z "$ac_c_werror_flag" ||
20496 test ! -s conftest.err
20497 } && test -s conftest.$ac_objext; then
20498 ac_cv_header_time_altzone=yes
20499 else
20500 echo "$as_me: failed program was:" >&5
20501 sed 's/^/| /' conftest.$ac_ext >&5
20503 ac_cv_header_time_altzone=no
20506 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20509 { echo "$as_me:$LINENO: result: $ac_cv_header_time_altzone" >&5
20510 echo "${ECHO_T}$ac_cv_header_time_altzone" >&6; }
20511 if test $ac_cv_header_time_altzone = yes; then
20513 cat >>confdefs.h <<\_ACEOF
20514 #define HAVE_ALTZONE 1
20515 _ACEOF
20519 was_it_defined=no
20520 { echo "$as_me:$LINENO: checking whether sys/select.h and sys/time.h may both be included" >&5
20521 echo $ECHO_N "checking whether sys/select.h and sys/time.h may both be included... $ECHO_C" >&6; }
20522 cat >conftest.$ac_ext <<_ACEOF
20523 /* confdefs.h. */
20524 _ACEOF
20525 cat confdefs.h >>conftest.$ac_ext
20526 cat >>conftest.$ac_ext <<_ACEOF
20527 /* end confdefs.h. */
20529 #include <sys/types.h>
20530 #include <sys/select.h>
20531 #include <sys/time.h>
20534 main ()
20538 return 0;
20540 _ACEOF
20541 rm -f conftest.$ac_objext
20542 if { (ac_try="$ac_compile"
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_compile") 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_objext; then
20560 cat >>confdefs.h <<\_ACEOF
20561 #define SYS_SELECT_WITH_SYS_TIME 1
20562 _ACEOF
20564 was_it_defined=yes
20566 else
20567 echo "$as_me: failed program was:" >&5
20568 sed 's/^/| /' conftest.$ac_ext >&5
20573 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20574 { echo "$as_me:$LINENO: result: $was_it_defined" >&5
20575 echo "${ECHO_T}$was_it_defined" >&6; }
20577 { echo "$as_me:$LINENO: checking for addrinfo" >&5
20578 echo $ECHO_N "checking for addrinfo... $ECHO_C" >&6; }
20579 if test "${ac_cv_struct_addrinfo+set}" = set; then
20580 echo $ECHO_N "(cached) $ECHO_C" >&6
20581 else
20582 cat >conftest.$ac_ext <<_ACEOF
20583 /* confdefs.h. */
20584 _ACEOF
20585 cat confdefs.h >>conftest.$ac_ext
20586 cat >>conftest.$ac_ext <<_ACEOF
20587 /* end confdefs.h. */
20589 # include <netdb.h>
20591 main ()
20593 struct addrinfo a
20595 return 0;
20597 _ACEOF
20598 rm -f conftest.$ac_objext
20599 if { (ac_try="$ac_compile"
20600 case "(($ac_try" in
20601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20602 *) ac_try_echo=$ac_try;;
20603 esac
20604 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20605 (eval "$ac_compile") 2>conftest.er1
20606 ac_status=$?
20607 grep -v '^ *+' conftest.er1 >conftest.err
20608 rm -f conftest.er1
20609 cat conftest.err >&5
20610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20611 (exit $ac_status); } && {
20612 test -z "$ac_c_werror_flag" ||
20613 test ! -s conftest.err
20614 } && test -s conftest.$ac_objext; then
20615 ac_cv_struct_addrinfo=yes
20616 else
20617 echo "$as_me: failed program was:" >&5
20618 sed 's/^/| /' conftest.$ac_ext >&5
20620 ac_cv_struct_addrinfo=no
20623 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20626 { echo "$as_me:$LINENO: result: $ac_cv_struct_addrinfo" >&5
20627 echo "${ECHO_T}$ac_cv_struct_addrinfo" >&6; }
20628 if test $ac_cv_struct_addrinfo = yes; then
20630 cat >>confdefs.h <<\_ACEOF
20631 #define HAVE_ADDRINFO 1
20632 _ACEOF
20636 { echo "$as_me:$LINENO: checking for sockaddr_storage" >&5
20637 echo $ECHO_N "checking for sockaddr_storage... $ECHO_C" >&6; }
20638 if test "${ac_cv_struct_sockaddr_storage+set}" = set; then
20639 echo $ECHO_N "(cached) $ECHO_C" >&6
20640 else
20641 cat >conftest.$ac_ext <<_ACEOF
20642 /* confdefs.h. */
20643 _ACEOF
20644 cat confdefs.h >>conftest.$ac_ext
20645 cat >>conftest.$ac_ext <<_ACEOF
20646 /* end confdefs.h. */
20648 # include <sys/types.h>
20649 # include <sys/socket.h>
20651 main ()
20653 struct sockaddr_storage s
20655 return 0;
20657 _ACEOF
20658 rm -f conftest.$ac_objext
20659 if { (ac_try="$ac_compile"
20660 case "(($ac_try" in
20661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20662 *) ac_try_echo=$ac_try;;
20663 esac
20664 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20665 (eval "$ac_compile") 2>conftest.er1
20666 ac_status=$?
20667 grep -v '^ *+' conftest.er1 >conftest.err
20668 rm -f conftest.er1
20669 cat conftest.err >&5
20670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20671 (exit $ac_status); } && {
20672 test -z "$ac_c_werror_flag" ||
20673 test ! -s conftest.err
20674 } && test -s conftest.$ac_objext; then
20675 ac_cv_struct_sockaddr_storage=yes
20676 else
20677 echo "$as_me: failed program was:" >&5
20678 sed 's/^/| /' conftest.$ac_ext >&5
20680 ac_cv_struct_sockaddr_storage=no
20683 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20686 { echo "$as_me:$LINENO: result: $ac_cv_struct_sockaddr_storage" >&5
20687 echo "${ECHO_T}$ac_cv_struct_sockaddr_storage" >&6; }
20688 if test $ac_cv_struct_sockaddr_storage = yes; then
20690 cat >>confdefs.h <<\_ACEOF
20691 #define HAVE_SOCKADDR_STORAGE 1
20692 _ACEOF
20696 # checks for compiler characteristics
20699 { echo "$as_me:$LINENO: checking whether char is unsigned" >&5
20700 echo $ECHO_N "checking whether char is unsigned... $ECHO_C" >&6; }
20701 if test "${ac_cv_c_char_unsigned+set}" = set; then
20702 echo $ECHO_N "(cached) $ECHO_C" >&6
20703 else
20704 cat >conftest.$ac_ext <<_ACEOF
20705 /* confdefs.h. */
20706 _ACEOF
20707 cat confdefs.h >>conftest.$ac_ext
20708 cat >>conftest.$ac_ext <<_ACEOF
20709 /* end confdefs.h. */
20710 $ac_includes_default
20712 main ()
20714 static int test_array [1 - 2 * !(((char) -1) < 0)];
20715 test_array [0] = 0
20718 return 0;
20720 _ACEOF
20721 rm -f conftest.$ac_objext
20722 if { (ac_try="$ac_compile"
20723 case "(($ac_try" in
20724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20725 *) ac_try_echo=$ac_try;;
20726 esac
20727 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20728 (eval "$ac_compile") 2>conftest.er1
20729 ac_status=$?
20730 grep -v '^ *+' conftest.er1 >conftest.err
20731 rm -f conftest.er1
20732 cat conftest.err >&5
20733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20734 (exit $ac_status); } && {
20735 test -z "$ac_c_werror_flag" ||
20736 test ! -s conftest.err
20737 } && test -s conftest.$ac_objext; then
20738 ac_cv_c_char_unsigned=no
20739 else
20740 echo "$as_me: failed program was:" >&5
20741 sed 's/^/| /' conftest.$ac_ext >&5
20743 ac_cv_c_char_unsigned=yes
20746 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20748 { echo "$as_me:$LINENO: result: $ac_cv_c_char_unsigned" >&5
20749 echo "${ECHO_T}$ac_cv_c_char_unsigned" >&6; }
20750 if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
20751 cat >>confdefs.h <<\_ACEOF
20752 #define __CHAR_UNSIGNED__ 1
20753 _ACEOF
20757 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
20758 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
20759 if test "${ac_cv_c_const+set}" = set; then
20760 echo $ECHO_N "(cached) $ECHO_C" >&6
20761 else
20762 cat >conftest.$ac_ext <<_ACEOF
20763 /* confdefs.h. */
20764 _ACEOF
20765 cat confdefs.h >>conftest.$ac_ext
20766 cat >>conftest.$ac_ext <<_ACEOF
20767 /* end confdefs.h. */
20770 main ()
20772 /* FIXME: Include the comments suggested by Paul. */
20773 #ifndef __cplusplus
20774 /* Ultrix mips cc rejects this. */
20775 typedef int charset[2];
20776 const charset cs;
20777 /* SunOS 4.1.1 cc rejects this. */
20778 char const *const *pcpcc;
20779 char **ppc;
20780 /* NEC SVR4.0.2 mips cc rejects this. */
20781 struct point {int x, y;};
20782 static struct point const zero = {0,0};
20783 /* AIX XL C 1.02.0.0 rejects this.
20784 It does not let you subtract one const X* pointer from another in
20785 an arm of an if-expression whose if-part is not a constant
20786 expression */
20787 const char *g = "string";
20788 pcpcc = &g + (g ? g-g : 0);
20789 /* HPUX 7.0 cc rejects these. */
20790 ++pcpcc;
20791 ppc = (char**) pcpcc;
20792 pcpcc = (char const *const *) ppc;
20793 { /* SCO 3.2v4 cc rejects this. */
20794 char *t;
20795 char const *s = 0 ? (char *) 0 : (char const *) 0;
20797 *t++ = 0;
20798 if (s) return 0;
20800 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
20801 int x[] = {25, 17};
20802 const int *foo = &x[0];
20803 ++foo;
20805 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
20806 typedef const int *iptr;
20807 iptr p = 0;
20808 ++p;
20810 { /* AIX XL C 1.02.0.0 rejects this saying
20811 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
20812 struct s { int j; const int *ap[3]; };
20813 struct s *b; b->j = 5;
20815 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
20816 const int foo = 10;
20817 if (!foo) return 0;
20819 return !cs[0] && !zero.x;
20820 #endif
20823 return 0;
20825 _ACEOF
20826 rm -f conftest.$ac_objext
20827 if { (ac_try="$ac_compile"
20828 case "(($ac_try" in
20829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20830 *) ac_try_echo=$ac_try;;
20831 esac
20832 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20833 (eval "$ac_compile") 2>conftest.er1
20834 ac_status=$?
20835 grep -v '^ *+' conftest.er1 >conftest.err
20836 rm -f conftest.er1
20837 cat conftest.err >&5
20838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20839 (exit $ac_status); } && {
20840 test -z "$ac_c_werror_flag" ||
20841 test ! -s conftest.err
20842 } && test -s conftest.$ac_objext; then
20843 ac_cv_c_const=yes
20844 else
20845 echo "$as_me: failed program was:" >&5
20846 sed 's/^/| /' conftest.$ac_ext >&5
20848 ac_cv_c_const=no
20851 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20853 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
20854 echo "${ECHO_T}$ac_cv_c_const" >&6; }
20855 if test $ac_cv_c_const = no; then
20857 cat >>confdefs.h <<\_ACEOF
20858 #define const
20859 _ACEOF
20864 works=no
20865 { echo "$as_me:$LINENO: checking for working volatile" >&5
20866 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6; }
20867 cat >conftest.$ac_ext <<_ACEOF
20868 /* confdefs.h. */
20869 _ACEOF
20870 cat confdefs.h >>conftest.$ac_ext
20871 cat >>conftest.$ac_ext <<_ACEOF
20872 /* end confdefs.h. */
20875 main ()
20877 volatile int x; x = 0;
20879 return 0;
20881 _ACEOF
20882 rm -f conftest.$ac_objext
20883 if { (ac_try="$ac_compile"
20884 case "(($ac_try" in
20885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20886 *) ac_try_echo=$ac_try;;
20887 esac
20888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20889 (eval "$ac_compile") 2>conftest.er1
20890 ac_status=$?
20891 grep -v '^ *+' conftest.er1 >conftest.err
20892 rm -f conftest.er1
20893 cat conftest.err >&5
20894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20895 (exit $ac_status); } && {
20896 test -z "$ac_c_werror_flag" ||
20897 test ! -s conftest.err
20898 } && test -s conftest.$ac_objext; then
20899 works=yes
20900 else
20901 echo "$as_me: failed program was:" >&5
20902 sed 's/^/| /' conftest.$ac_ext >&5
20905 cat >>confdefs.h <<\_ACEOF
20906 #define volatile
20907 _ACEOF
20912 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20913 { echo "$as_me:$LINENO: result: $works" >&5
20914 echo "${ECHO_T}$works" >&6; }
20916 works=no
20917 { echo "$as_me:$LINENO: checking for working signed char" >&5
20918 echo $ECHO_N "checking for working signed char... $ECHO_C" >&6; }
20919 cat >conftest.$ac_ext <<_ACEOF
20920 /* confdefs.h. */
20921 _ACEOF
20922 cat confdefs.h >>conftest.$ac_ext
20923 cat >>conftest.$ac_ext <<_ACEOF
20924 /* end confdefs.h. */
20927 main ()
20929 signed char c;
20931 return 0;
20933 _ACEOF
20934 rm -f conftest.$ac_objext
20935 if { (ac_try="$ac_compile"
20936 case "(($ac_try" in
20937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20938 *) ac_try_echo=$ac_try;;
20939 esac
20940 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20941 (eval "$ac_compile") 2>conftest.er1
20942 ac_status=$?
20943 grep -v '^ *+' conftest.er1 >conftest.err
20944 rm -f conftest.er1
20945 cat conftest.err >&5
20946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20947 (exit $ac_status); } && {
20948 test -z "$ac_c_werror_flag" ||
20949 test ! -s conftest.err
20950 } && test -s conftest.$ac_objext; then
20951 works=yes
20952 else
20953 echo "$as_me: failed program was:" >&5
20954 sed 's/^/| /' conftest.$ac_ext >&5
20957 cat >>confdefs.h <<\_ACEOF
20958 #define signed
20959 _ACEOF
20964 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20965 { echo "$as_me:$LINENO: result: $works" >&5
20966 echo "${ECHO_T}$works" >&6; }
20968 have_prototypes=no
20969 { echo "$as_me:$LINENO: checking for prototypes" >&5
20970 echo $ECHO_N "checking for prototypes... $ECHO_C" >&6; }
20971 cat >conftest.$ac_ext <<_ACEOF
20972 /* confdefs.h. */
20973 _ACEOF
20974 cat confdefs.h >>conftest.$ac_ext
20975 cat >>conftest.$ac_ext <<_ACEOF
20976 /* end confdefs.h. */
20977 int foo(int x) { return 0; }
20979 main ()
20981 return foo(10);
20983 return 0;
20985 _ACEOF
20986 rm -f conftest.$ac_objext
20987 if { (ac_try="$ac_compile"
20988 case "(($ac_try" in
20989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20990 *) ac_try_echo=$ac_try;;
20991 esac
20992 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20993 (eval "$ac_compile") 2>conftest.er1
20994 ac_status=$?
20995 grep -v '^ *+' conftest.er1 >conftest.err
20996 rm -f conftest.er1
20997 cat conftest.err >&5
20998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20999 (exit $ac_status); } && {
21000 test -z "$ac_c_werror_flag" ||
21001 test ! -s conftest.err
21002 } && test -s conftest.$ac_objext; then
21005 cat >>confdefs.h <<\_ACEOF
21006 #define HAVE_PROTOTYPES 1
21007 _ACEOF
21009 have_prototypes=yes
21011 else
21012 echo "$as_me: failed program was:" >&5
21013 sed 's/^/| /' conftest.$ac_ext >&5
21018 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21019 { echo "$as_me:$LINENO: result: $have_prototypes" >&5
21020 echo "${ECHO_T}$have_prototypes" >&6; }
21022 works=no
21023 { echo "$as_me:$LINENO: checking for variable length prototypes and stdarg.h" >&5
21024 echo $ECHO_N "checking for variable length prototypes and stdarg.h... $ECHO_C" >&6; }
21025 cat >conftest.$ac_ext <<_ACEOF
21026 /* confdefs.h. */
21027 _ACEOF
21028 cat confdefs.h >>conftest.$ac_ext
21029 cat >>conftest.$ac_ext <<_ACEOF
21030 /* end confdefs.h. */
21032 #include <stdarg.h>
21033 int foo(int x, ...) {
21034 va_list va;
21035 va_start(va, x);
21036 va_arg(va, int);
21037 va_arg(va, char *);
21038 va_arg(va, double);
21039 return 0;
21043 main ()
21045 return foo(10, "", 3.14);
21047 return 0;
21049 _ACEOF
21050 rm -f conftest.$ac_objext
21051 if { (ac_try="$ac_compile"
21052 case "(($ac_try" in
21053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21054 *) ac_try_echo=$ac_try;;
21055 esac
21056 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21057 (eval "$ac_compile") 2>conftest.er1
21058 ac_status=$?
21059 grep -v '^ *+' conftest.er1 >conftest.err
21060 rm -f conftest.er1
21061 cat conftest.err >&5
21062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21063 (exit $ac_status); } && {
21064 test -z "$ac_c_werror_flag" ||
21065 test ! -s conftest.err
21066 } && test -s conftest.$ac_objext; then
21069 cat >>confdefs.h <<\_ACEOF
21070 #define HAVE_STDARG_PROTOTYPES 1
21071 _ACEOF
21073 works=yes
21075 else
21076 echo "$as_me: failed program was:" >&5
21077 sed 's/^/| /' conftest.$ac_ext >&5
21082 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21083 { echo "$as_me:$LINENO: result: $works" >&5
21084 echo "${ECHO_T}$works" >&6; }
21086 # check for socketpair
21087 { echo "$as_me:$LINENO: checking for socketpair" >&5
21088 echo $ECHO_N "checking for socketpair... $ECHO_C" >&6; }
21089 cat >conftest.$ac_ext <<_ACEOF
21090 /* confdefs.h. */
21091 _ACEOF
21092 cat confdefs.h >>conftest.$ac_ext
21093 cat >>conftest.$ac_ext <<_ACEOF
21094 /* end confdefs.h. */
21096 #include <sys/types.h>
21097 #include <sys/socket.h>
21100 main ()
21102 void *x=socketpair
21104 return 0;
21106 _ACEOF
21107 rm -f conftest.$ac_objext
21108 if { (ac_try="$ac_compile"
21109 case "(($ac_try" in
21110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21111 *) ac_try_echo=$ac_try;;
21112 esac
21113 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21114 (eval "$ac_compile") 2>conftest.er1
21115 ac_status=$?
21116 grep -v '^ *+' conftest.er1 >conftest.err
21117 rm -f conftest.er1
21118 cat conftest.err >&5
21119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21120 (exit $ac_status); } && {
21121 test -z "$ac_c_werror_flag" ||
21122 test ! -s conftest.err
21123 } && test -s conftest.$ac_objext; then
21125 cat >>confdefs.h <<\_ACEOF
21126 #define HAVE_SOCKETPAIR 1
21127 _ACEOF
21129 { echo "$as_me:$LINENO: result: yes" >&5
21130 echo "${ECHO_T}yes" >&6; }
21131 else
21132 echo "$as_me: failed program was:" >&5
21133 sed 's/^/| /' conftest.$ac_ext >&5
21135 { echo "$as_me:$LINENO: result: no" >&5
21136 echo "${ECHO_T}no" >&6; }
21140 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21142 # check if sockaddr has sa_len member
21143 { echo "$as_me:$LINENO: checking if sockaddr has sa_len member" >&5
21144 echo $ECHO_N "checking if sockaddr has sa_len member... $ECHO_C" >&6; }
21145 cat >conftest.$ac_ext <<_ACEOF
21146 /* confdefs.h. */
21147 _ACEOF
21148 cat confdefs.h >>conftest.$ac_ext
21149 cat >>conftest.$ac_ext <<_ACEOF
21150 /* end confdefs.h. */
21151 #include <sys/types.h>
21152 #include <sys/socket.h>
21154 main ()
21156 struct sockaddr x;
21157 x.sa_len = 0;
21159 return 0;
21161 _ACEOF
21162 rm -f conftest.$ac_objext
21163 if { (ac_try="$ac_compile"
21164 case "(($ac_try" in
21165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21166 *) ac_try_echo=$ac_try;;
21167 esac
21168 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21169 (eval "$ac_compile") 2>conftest.er1
21170 ac_status=$?
21171 grep -v '^ *+' conftest.er1 >conftest.err
21172 rm -f conftest.er1
21173 cat conftest.err >&5
21174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21175 (exit $ac_status); } && {
21176 test -z "$ac_c_werror_flag" ||
21177 test ! -s conftest.err
21178 } && test -s conftest.$ac_objext; then
21179 { echo "$as_me:$LINENO: result: yes" >&5
21180 echo "${ECHO_T}yes" >&6; }
21182 cat >>confdefs.h <<\_ACEOF
21183 #define HAVE_SOCKADDR_SA_LEN 1
21184 _ACEOF
21186 else
21187 echo "$as_me: failed program was:" >&5
21188 sed 's/^/| /' conftest.$ac_ext >&5
21190 { echo "$as_me:$LINENO: result: no" >&5
21191 echo "${ECHO_T}no" >&6; }
21194 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21196 va_list_is_array=no
21197 { echo "$as_me:$LINENO: checking whether va_list is an array" >&5
21198 echo $ECHO_N "checking whether va_list is an array... $ECHO_C" >&6; }
21199 cat >conftest.$ac_ext <<_ACEOF
21200 /* confdefs.h. */
21201 _ACEOF
21202 cat confdefs.h >>conftest.$ac_ext
21203 cat >>conftest.$ac_ext <<_ACEOF
21204 /* end confdefs.h. */
21206 #ifdef HAVE_STDARG_PROTOTYPES
21207 #include <stdarg.h>
21208 #else
21209 #include <varargs.h>
21210 #endif
21213 main ()
21215 va_list list1, list2; list1 = list2;
21217 return 0;
21219 _ACEOF
21220 rm -f conftest.$ac_objext
21221 if { (ac_try="$ac_compile"
21222 case "(($ac_try" in
21223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21224 *) ac_try_echo=$ac_try;;
21225 esac
21226 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21227 (eval "$ac_compile") 2>conftest.er1
21228 ac_status=$?
21229 grep -v '^ *+' conftest.er1 >conftest.err
21230 rm -f conftest.er1
21231 cat conftest.err >&5
21232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21233 (exit $ac_status); } && {
21234 test -z "$ac_c_werror_flag" ||
21235 test ! -s conftest.err
21236 } && test -s conftest.$ac_objext; then
21238 else
21239 echo "$as_me: failed program was:" >&5
21240 sed 's/^/| /' conftest.$ac_ext >&5
21244 cat >>confdefs.h <<\_ACEOF
21245 #define VA_LIST_IS_ARRAY 1
21246 _ACEOF
21248 va_list_is_array=yes
21252 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21253 { echo "$as_me:$LINENO: result: $va_list_is_array" >&5
21254 echo "${ECHO_T}$va_list_is_array" >&6; }
21256 # sigh -- gethostbyname_r is a mess; it can have 3, 5 or 6 arguments :-(
21260 { echo "$as_me:$LINENO: checking for gethostbyname_r" >&5
21261 echo $ECHO_N "checking for gethostbyname_r... $ECHO_C" >&6; }
21262 if test "${ac_cv_func_gethostbyname_r+set}" = set; then
21263 echo $ECHO_N "(cached) $ECHO_C" >&6
21264 else
21265 cat >conftest.$ac_ext <<_ACEOF
21266 /* confdefs.h. */
21267 _ACEOF
21268 cat confdefs.h >>conftest.$ac_ext
21269 cat >>conftest.$ac_ext <<_ACEOF
21270 /* end confdefs.h. */
21271 /* Define gethostbyname_r to an innocuous variant, in case <limits.h> declares gethostbyname_r.
21272 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21273 #define gethostbyname_r innocuous_gethostbyname_r
21275 /* System header to define __stub macros and hopefully few prototypes,
21276 which can conflict with char gethostbyname_r (); below.
21277 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21278 <limits.h> exists even on freestanding compilers. */
21280 #ifdef __STDC__
21281 # include <limits.h>
21282 #else
21283 # include <assert.h>
21284 #endif
21286 #undef gethostbyname_r
21288 /* Override any GCC internal prototype to avoid an error.
21289 Use char because int might match the return type of a GCC
21290 builtin and then its argument prototype would still apply. */
21291 #ifdef __cplusplus
21292 extern "C"
21293 #endif
21294 char gethostbyname_r ();
21295 /* The GNU C library defines this for functions which it implements
21296 to always fail with ENOSYS. Some functions are actually named
21297 something starting with __ and the normal name is an alias. */
21298 #if defined __stub_gethostbyname_r || defined __stub___gethostbyname_r
21299 choke me
21300 #endif
21303 main ()
21305 return gethostbyname_r ();
21307 return 0;
21309 _ACEOF
21310 rm -f conftest.$ac_objext conftest$ac_exeext
21311 if { (ac_try="$ac_link"
21312 case "(($ac_try" in
21313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21314 *) ac_try_echo=$ac_try;;
21315 esac
21316 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21317 (eval "$ac_link") 2>conftest.er1
21318 ac_status=$?
21319 grep -v '^ *+' conftest.er1 >conftest.err
21320 rm -f conftest.er1
21321 cat conftest.err >&5
21322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21323 (exit $ac_status); } && {
21324 test -z "$ac_c_werror_flag" ||
21325 test ! -s conftest.err
21326 } && test -s conftest$ac_exeext &&
21327 $as_test_x conftest$ac_exeext; then
21328 ac_cv_func_gethostbyname_r=yes
21329 else
21330 echo "$as_me: failed program was:" >&5
21331 sed 's/^/| /' conftest.$ac_ext >&5
21333 ac_cv_func_gethostbyname_r=no
21336 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21337 conftest$ac_exeext conftest.$ac_ext
21339 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname_r" >&5
21340 echo "${ECHO_T}$ac_cv_func_gethostbyname_r" >&6; }
21341 if test $ac_cv_func_gethostbyname_r = yes; then
21343 cat >>confdefs.h <<\_ACEOF
21344 #define HAVE_GETHOSTBYNAME_R 1
21345 _ACEOF
21347 { echo "$as_me:$LINENO: checking gethostbyname_r with 6 args" >&5
21348 echo $ECHO_N "checking gethostbyname_r with 6 args... $ECHO_C" >&6; }
21349 OLD_CFLAGS=$CFLAGS
21350 CFLAGS="$CFLAGS $MY_CPPFLAGS $MY_THREAD_CPPFLAGS $MY_CFLAGS"
21351 cat >conftest.$ac_ext <<_ACEOF
21352 /* confdefs.h. */
21353 _ACEOF
21354 cat confdefs.h >>conftest.$ac_ext
21355 cat >>conftest.$ac_ext <<_ACEOF
21356 /* end confdefs.h. */
21358 # include <netdb.h>
21361 main ()
21364 char *name;
21365 struct hostent *he, *res;
21366 char buffer[2048];
21367 int buflen = 2048;
21368 int h_errnop;
21370 (void) gethostbyname_r(name, he, buffer, buflen, &res, &h_errnop)
21373 return 0;
21375 _ACEOF
21376 rm -f conftest.$ac_objext
21377 if { (ac_try="$ac_compile"
21378 case "(($ac_try" in
21379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21380 *) ac_try_echo=$ac_try;;
21381 esac
21382 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21383 (eval "$ac_compile") 2>conftest.er1
21384 ac_status=$?
21385 grep -v '^ *+' conftest.er1 >conftest.err
21386 rm -f conftest.er1
21387 cat conftest.err >&5
21388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21389 (exit $ac_status); } && {
21390 test -z "$ac_c_werror_flag" ||
21391 test ! -s conftest.err
21392 } && test -s conftest.$ac_objext; then
21394 cat >>confdefs.h <<\_ACEOF
21395 #define HAVE_GETHOSTBYNAME_R 1
21396 _ACEOF
21399 cat >>confdefs.h <<\_ACEOF
21400 #define HAVE_GETHOSTBYNAME_R_6_ARG 1
21401 _ACEOF
21403 { echo "$as_me:$LINENO: result: yes" >&5
21404 echo "${ECHO_T}yes" >&6; }
21406 else
21407 echo "$as_me: failed program was:" >&5
21408 sed 's/^/| /' conftest.$ac_ext >&5
21411 { echo "$as_me:$LINENO: result: no" >&5
21412 echo "${ECHO_T}no" >&6; }
21413 { echo "$as_me:$LINENO: checking gethostbyname_r with 5 args" >&5
21414 echo $ECHO_N "checking gethostbyname_r with 5 args... $ECHO_C" >&6; }
21415 cat >conftest.$ac_ext <<_ACEOF
21416 /* confdefs.h. */
21417 _ACEOF
21418 cat confdefs.h >>conftest.$ac_ext
21419 cat >>conftest.$ac_ext <<_ACEOF
21420 /* end confdefs.h. */
21422 # include <netdb.h>
21425 main ()
21428 char *name;
21429 struct hostent *he;
21430 char buffer[2048];
21431 int buflen = 2048;
21432 int h_errnop;
21434 (void) gethostbyname_r(name, he, buffer, buflen, &h_errnop)
21437 return 0;
21439 _ACEOF
21440 rm -f conftest.$ac_objext
21441 if { (ac_try="$ac_compile"
21442 case "(($ac_try" in
21443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21444 *) ac_try_echo=$ac_try;;
21445 esac
21446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21447 (eval "$ac_compile") 2>conftest.er1
21448 ac_status=$?
21449 grep -v '^ *+' conftest.er1 >conftest.err
21450 rm -f conftest.er1
21451 cat conftest.err >&5
21452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21453 (exit $ac_status); } && {
21454 test -z "$ac_c_werror_flag" ||
21455 test ! -s conftest.err
21456 } && test -s conftest.$ac_objext; then
21458 cat >>confdefs.h <<\_ACEOF
21459 #define HAVE_GETHOSTBYNAME_R 1
21460 _ACEOF
21463 cat >>confdefs.h <<\_ACEOF
21464 #define HAVE_GETHOSTBYNAME_R_5_ARG 1
21465 _ACEOF
21467 { echo "$as_me:$LINENO: result: yes" >&5
21468 echo "${ECHO_T}yes" >&6; }
21470 else
21471 echo "$as_me: failed program was:" >&5
21472 sed 's/^/| /' conftest.$ac_ext >&5
21475 { echo "$as_me:$LINENO: result: no" >&5
21476 echo "${ECHO_T}no" >&6; }
21477 { echo "$as_me:$LINENO: checking gethostbyname_r with 3 args" >&5
21478 echo $ECHO_N "checking gethostbyname_r with 3 args... $ECHO_C" >&6; }
21479 cat >conftest.$ac_ext <<_ACEOF
21480 /* confdefs.h. */
21481 _ACEOF
21482 cat confdefs.h >>conftest.$ac_ext
21483 cat >>conftest.$ac_ext <<_ACEOF
21484 /* end confdefs.h. */
21486 # include <netdb.h>
21489 main ()
21492 char *name;
21493 struct hostent *he;
21494 struct hostent_data data;
21496 (void) gethostbyname_r(name, he, &data);
21499 return 0;
21501 _ACEOF
21502 rm -f conftest.$ac_objext
21503 if { (ac_try="$ac_compile"
21504 case "(($ac_try" in
21505 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21506 *) ac_try_echo=$ac_try;;
21507 esac
21508 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21509 (eval "$ac_compile") 2>conftest.er1
21510 ac_status=$?
21511 grep -v '^ *+' conftest.er1 >conftest.err
21512 rm -f conftest.er1
21513 cat conftest.err >&5
21514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21515 (exit $ac_status); } && {
21516 test -z "$ac_c_werror_flag" ||
21517 test ! -s conftest.err
21518 } && test -s conftest.$ac_objext; then
21520 cat >>confdefs.h <<\_ACEOF
21521 #define HAVE_GETHOSTBYNAME_R 1
21522 _ACEOF
21525 cat >>confdefs.h <<\_ACEOF
21526 #define HAVE_GETHOSTBYNAME_R_3_ARG 1
21527 _ACEOF
21529 { echo "$as_me:$LINENO: result: yes" >&5
21530 echo "${ECHO_T}yes" >&6; }
21532 else
21533 echo "$as_me: failed program was:" >&5
21534 sed 's/^/| /' conftest.$ac_ext >&5
21537 { echo "$as_me:$LINENO: result: no" >&5
21538 echo "${ECHO_T}no" >&6; }
21542 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21546 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21550 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21551 CFLAGS=$OLD_CFLAGS
21553 else
21556 for ac_func in gethostbyname
21558 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21559 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21560 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21561 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21562 echo $ECHO_N "(cached) $ECHO_C" >&6
21563 else
21564 cat >conftest.$ac_ext <<_ACEOF
21565 /* confdefs.h. */
21566 _ACEOF
21567 cat confdefs.h >>conftest.$ac_ext
21568 cat >>conftest.$ac_ext <<_ACEOF
21569 /* end confdefs.h. */
21570 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21571 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21572 #define $ac_func innocuous_$ac_func
21574 /* System header to define __stub macros and hopefully few prototypes,
21575 which can conflict with char $ac_func (); below.
21576 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21577 <limits.h> exists even on freestanding compilers. */
21579 #ifdef __STDC__
21580 # include <limits.h>
21581 #else
21582 # include <assert.h>
21583 #endif
21585 #undef $ac_func
21587 /* Override any GCC internal prototype to avoid an error.
21588 Use char because int might match the return type of a GCC
21589 builtin and then its argument prototype would still apply. */
21590 #ifdef __cplusplus
21591 extern "C"
21592 #endif
21593 char $ac_func ();
21594 /* The GNU C library defines this for functions which it implements
21595 to always fail with ENOSYS. Some functions are actually named
21596 something starting with __ and the normal name is an alias. */
21597 #if defined __stub_$ac_func || defined __stub___$ac_func
21598 choke me
21599 #endif
21602 main ()
21604 return $ac_func ();
21606 return 0;
21608 _ACEOF
21609 rm -f conftest.$ac_objext conftest$ac_exeext
21610 if { (ac_try="$ac_link"
21611 case "(($ac_try" in
21612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21613 *) ac_try_echo=$ac_try;;
21614 esac
21615 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21616 (eval "$ac_link") 2>conftest.er1
21617 ac_status=$?
21618 grep -v '^ *+' conftest.er1 >conftest.err
21619 rm -f conftest.er1
21620 cat conftest.err >&5
21621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21622 (exit $ac_status); } && {
21623 test -z "$ac_c_werror_flag" ||
21624 test ! -s conftest.err
21625 } && test -s conftest$ac_exeext &&
21626 $as_test_x conftest$ac_exeext; then
21627 eval "$as_ac_var=yes"
21628 else
21629 echo "$as_me: failed program was:" >&5
21630 sed 's/^/| /' conftest.$ac_ext >&5
21632 eval "$as_ac_var=no"
21635 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21636 conftest$ac_exeext conftest.$ac_ext
21638 ac_res=`eval echo '${'$as_ac_var'}'`
21639 { echo "$as_me:$LINENO: result: $ac_res" >&5
21640 echo "${ECHO_T}$ac_res" >&6; }
21641 if test `eval echo '${'$as_ac_var'}'` = yes; then
21642 cat >>confdefs.h <<_ACEOF
21643 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21644 _ACEOF
21647 done
21658 # checks for system services
21659 # (none yet)
21661 # Linux requires this for correct f.p. operations
21662 { echo "$as_me:$LINENO: checking for __fpu_control" >&5
21663 echo $ECHO_N "checking for __fpu_control... $ECHO_C" >&6; }
21664 if test "${ac_cv_func___fpu_control+set}" = set; then
21665 echo $ECHO_N "(cached) $ECHO_C" >&6
21666 else
21667 cat >conftest.$ac_ext <<_ACEOF
21668 /* confdefs.h. */
21669 _ACEOF
21670 cat confdefs.h >>conftest.$ac_ext
21671 cat >>conftest.$ac_ext <<_ACEOF
21672 /* end confdefs.h. */
21673 /* Define __fpu_control to an innocuous variant, in case <limits.h> declares __fpu_control.
21674 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21675 #define __fpu_control innocuous___fpu_control
21677 /* System header to define __stub macros and hopefully few prototypes,
21678 which can conflict with char __fpu_control (); below.
21679 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21680 <limits.h> exists even on freestanding compilers. */
21682 #ifdef __STDC__
21683 # include <limits.h>
21684 #else
21685 # include <assert.h>
21686 #endif
21688 #undef __fpu_control
21690 /* Override any GCC internal prototype to avoid an error.
21691 Use char because int might match the return type of a GCC
21692 builtin and then its argument prototype would still apply. */
21693 #ifdef __cplusplus
21694 extern "C"
21695 #endif
21696 char __fpu_control ();
21697 /* The GNU C library defines this for functions which it implements
21698 to always fail with ENOSYS. Some functions are actually named
21699 something starting with __ and the normal name is an alias. */
21700 #if defined __stub___fpu_control || defined __stub_____fpu_control
21701 choke me
21702 #endif
21705 main ()
21707 return __fpu_control ();
21709 return 0;
21711 _ACEOF
21712 rm -f conftest.$ac_objext conftest$ac_exeext
21713 if { (ac_try="$ac_link"
21714 case "(($ac_try" in
21715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21716 *) ac_try_echo=$ac_try;;
21717 esac
21718 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21719 (eval "$ac_link") 2>conftest.er1
21720 ac_status=$?
21721 grep -v '^ *+' conftest.er1 >conftest.err
21722 rm -f conftest.er1
21723 cat conftest.err >&5
21724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21725 (exit $ac_status); } && {
21726 test -z "$ac_c_werror_flag" ||
21727 test ! -s conftest.err
21728 } && test -s conftest$ac_exeext &&
21729 $as_test_x conftest$ac_exeext; then
21730 ac_cv_func___fpu_control=yes
21731 else
21732 echo "$as_me: failed program was:" >&5
21733 sed 's/^/| /' conftest.$ac_ext >&5
21735 ac_cv_func___fpu_control=no
21738 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21739 conftest$ac_exeext conftest.$ac_ext
21741 { echo "$as_me:$LINENO: result: $ac_cv_func___fpu_control" >&5
21742 echo "${ECHO_T}$ac_cv_func___fpu_control" >&6; }
21743 if test $ac_cv_func___fpu_control = yes; then
21745 else
21747 { echo "$as_me:$LINENO: checking for __fpu_control in -lieee" >&5
21748 echo $ECHO_N "checking for __fpu_control in -lieee... $ECHO_C" >&6; }
21749 if test "${ac_cv_lib_ieee___fpu_control+set}" = set; then
21750 echo $ECHO_N "(cached) $ECHO_C" >&6
21751 else
21752 ac_check_lib_save_LIBS=$LIBS
21753 LIBS="-lieee $LIBS"
21754 cat >conftest.$ac_ext <<_ACEOF
21755 /* confdefs.h. */
21756 _ACEOF
21757 cat confdefs.h >>conftest.$ac_ext
21758 cat >>conftest.$ac_ext <<_ACEOF
21759 /* end confdefs.h. */
21761 /* Override any GCC internal prototype to avoid an error.
21762 Use char because int might match the return type of a GCC
21763 builtin and then its argument prototype would still apply. */
21764 #ifdef __cplusplus
21765 extern "C"
21766 #endif
21767 char __fpu_control ();
21769 main ()
21771 return __fpu_control ();
21773 return 0;
21775 _ACEOF
21776 rm -f conftest.$ac_objext conftest$ac_exeext
21777 if { (ac_try="$ac_link"
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_link") 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_exeext &&
21793 $as_test_x conftest$ac_exeext; then
21794 ac_cv_lib_ieee___fpu_control=yes
21795 else
21796 echo "$as_me: failed program was:" >&5
21797 sed 's/^/| /' conftest.$ac_ext >&5
21799 ac_cv_lib_ieee___fpu_control=no
21802 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21803 conftest$ac_exeext conftest.$ac_ext
21804 LIBS=$ac_check_lib_save_LIBS
21806 { echo "$as_me:$LINENO: result: $ac_cv_lib_ieee___fpu_control" >&5
21807 echo "${ECHO_T}$ac_cv_lib_ieee___fpu_control" >&6; }
21808 if test $ac_cv_lib_ieee___fpu_control = yes; then
21809 cat >>confdefs.h <<_ACEOF
21810 #define HAVE_LIBIEEE 1
21811 _ACEOF
21813 LIBS="-lieee $LIBS"
21821 # Check for --with-fpectl
21822 { echo "$as_me:$LINENO: checking for --with-fpectl" >&5
21823 echo $ECHO_N "checking for --with-fpectl... $ECHO_C" >&6; }
21825 # Check whether --with-fpectl was given.
21826 if test "${with_fpectl+set}" = set; then
21827 withval=$with_fpectl;
21828 if test "$withval" != no
21829 then
21831 cat >>confdefs.h <<\_ACEOF
21832 #define WANT_SIGFPE_HANDLER 1
21833 _ACEOF
21835 { echo "$as_me:$LINENO: result: yes" >&5
21836 echo "${ECHO_T}yes" >&6; }
21837 else { echo "$as_me:$LINENO: result: no" >&5
21838 echo "${ECHO_T}no" >&6; }
21840 else
21841 { echo "$as_me:$LINENO: result: no" >&5
21842 echo "${ECHO_T}no" >&6; }
21846 # check for --with-libm=...
21848 case $ac_sys_system in
21849 Darwin) ;;
21850 BeOS) ;;
21851 *) LIBM=-lm
21852 esac
21853 { echo "$as_me:$LINENO: checking for --with-libm=STRING" >&5
21854 echo $ECHO_N "checking for --with-libm=STRING... $ECHO_C" >&6; }
21856 # Check whether --with-libm was given.
21857 if test "${with_libm+set}" = set; then
21858 withval=$with_libm;
21859 if test "$withval" = no
21860 then LIBM=
21861 { echo "$as_me:$LINENO: result: force LIBM empty" >&5
21862 echo "${ECHO_T}force LIBM empty" >&6; }
21863 elif test "$withval" != yes
21864 then LIBM=$withval
21865 { echo "$as_me:$LINENO: result: set LIBM=\"$withval\"" >&5
21866 echo "${ECHO_T}set LIBM=\"$withval\"" >&6; }
21867 else { { echo "$as_me:$LINENO: error: proper usage is --with-libm=STRING" >&5
21868 echo "$as_me: error: proper usage is --with-libm=STRING" >&2;}
21869 { (exit 1); exit 1; }; }
21871 else
21872 { echo "$as_me:$LINENO: result: default LIBM=\"$LIBM\"" >&5
21873 echo "${ECHO_T}default LIBM=\"$LIBM\"" >&6; }
21877 # check for --with-libc=...
21879 { echo "$as_me:$LINENO: checking for --with-libc=STRING" >&5
21880 echo $ECHO_N "checking for --with-libc=STRING... $ECHO_C" >&6; }
21882 # Check whether --with-libc was given.
21883 if test "${with_libc+set}" = set; then
21884 withval=$with_libc;
21885 if test "$withval" = no
21886 then LIBC=
21887 { echo "$as_me:$LINENO: result: force LIBC empty" >&5
21888 echo "${ECHO_T}force LIBC empty" >&6; }
21889 elif test "$withval" != yes
21890 then LIBC=$withval
21891 { echo "$as_me:$LINENO: result: set LIBC=\"$withval\"" >&5
21892 echo "${ECHO_T}set LIBC=\"$withval\"" >&6; }
21893 else { { echo "$as_me:$LINENO: error: proper usage is --with-libc=STRING" >&5
21894 echo "$as_me: error: proper usage is --with-libc=STRING" >&2;}
21895 { (exit 1); exit 1; }; }
21897 else
21898 { echo "$as_me:$LINENO: result: default LIBC=\"$LIBC\"" >&5
21899 echo "${ECHO_T}default LIBC=\"$LIBC\"" >&6; }
21903 # ************************************
21904 # * Check for mathematical functions *
21905 # ************************************
21907 LIBS_SAVE=$LIBS
21908 LIBS="$LIBS $LIBM"
21910 # Detect whether system arithmetic is subject to x87-style double
21911 # rounding issues. The result of this test has little meaning on non
21912 # IEEE 754 platforms. On IEEE 754, test should return 1 if rounding
21913 # mode is round-to-nearest and double rounding issues are present, and
21914 # 0 otherwise. See http://bugs.python.org/issue2937 for more info.
21915 { echo "$as_me:$LINENO: checking for x87-style double rounding" >&5
21916 echo $ECHO_N "checking for x87-style double rounding... $ECHO_C" >&6; }
21917 if test "${ac_cv_x87_double_rounding+set}" = set; then
21918 echo $ECHO_N "(cached) $ECHO_C" >&6
21919 else
21921 if test "$cross_compiling" = yes; then
21922 ac_cv_x87_double_rounding=no
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. */
21931 #include <stdlib.h>
21932 #include <math.h>
21933 int main() {
21934 volatile double x, y, z;
21935 /* 1./(1-2**-53) -> 1+2**-52 (correct), 1.0 (double rounding) */
21936 x = 0.99999999999999989; /* 1-2**-53 */
21937 y = 1./x;
21938 if (y != 1.)
21939 exit(0);
21940 /* 1e16+2.99999 -> 1e16+2. (correct), 1e16+4. (double rounding) */
21941 x = 1e16;
21942 y = 2.99999;
21943 z = x + y;
21944 if (z != 1e16+4.)
21945 exit(0);
21946 /* both tests show evidence of double rounding */
21947 exit(1);
21950 _ACEOF
21951 rm -f conftest$ac_exeext
21952 if { (ac_try="$ac_link"
21953 case "(($ac_try" in
21954 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21955 *) ac_try_echo=$ac_try;;
21956 esac
21957 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21958 (eval "$ac_link") 2>&5
21959 ac_status=$?
21960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21961 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21962 { (case "(($ac_try" in
21963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21964 *) ac_try_echo=$ac_try;;
21965 esac
21966 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21967 (eval "$ac_try") 2>&5
21968 ac_status=$?
21969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21970 (exit $ac_status); }; }; then
21971 ac_cv_x87_double_rounding=no
21972 else
21973 echo "$as_me: program exited with status $ac_status" >&5
21974 echo "$as_me: failed program was:" >&5
21975 sed 's/^/| /' conftest.$ac_ext >&5
21977 ( exit $ac_status )
21978 ac_cv_x87_double_rounding=yes
21980 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21986 { echo "$as_me:$LINENO: result: $ac_cv_x87_double_rounding" >&5
21987 echo "${ECHO_T}$ac_cv_x87_double_rounding" >&6; }
21988 if test "$ac_cv_x87_double_rounding" = yes
21989 then
21991 cat >>confdefs.h <<\_ACEOF
21992 #define X87_DOUBLE_ROUNDING 1
21993 _ACEOF
21998 # On FreeBSD 6.2, it appears that tanh(-0.) returns 0. instead of
21999 # -0. on some architectures.
22000 { echo "$as_me:$LINENO: checking whether tanh preserves the sign of zero" >&5
22001 echo $ECHO_N "checking whether tanh preserves the sign of zero... $ECHO_C" >&6; }
22002 if test "${ac_cv_tanh_preserves_zero_sign+set}" = set; then
22003 echo $ECHO_N "(cached) $ECHO_C" >&6
22004 else
22006 if test "$cross_compiling" = yes; then
22007 ac_cv_tanh_preserves_zero_sign=no
22008 else
22009 cat >conftest.$ac_ext <<_ACEOF
22010 /* confdefs.h. */
22011 _ACEOF
22012 cat confdefs.h >>conftest.$ac_ext
22013 cat >>conftest.$ac_ext <<_ACEOF
22014 /* end confdefs.h. */
22016 #include <math.h>
22017 #include <stdlib.h>
22018 int main() {
22019 /* return 0 if either negative zeros don't exist
22020 on this platform or if negative zeros exist
22021 and tanh(-0.) == -0. */
22022 if (atan2(0., -1.) == atan2(-0., -1.) ||
22023 atan2(tanh(-0.), -1.) == atan2(-0., -1.)) exit(0);
22024 else exit(1);
22027 _ACEOF
22028 rm -f conftest$ac_exeext
22029 if { (ac_try="$ac_link"
22030 case "(($ac_try" in
22031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22032 *) ac_try_echo=$ac_try;;
22033 esac
22034 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22035 (eval "$ac_link") 2>&5
22036 ac_status=$?
22037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22038 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22039 { (case "(($ac_try" in
22040 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22041 *) ac_try_echo=$ac_try;;
22042 esac
22043 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22044 (eval "$ac_try") 2>&5
22045 ac_status=$?
22046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22047 (exit $ac_status); }; }; then
22048 ac_cv_tanh_preserves_zero_sign=yes
22049 else
22050 echo "$as_me: program exited with status $ac_status" >&5
22051 echo "$as_me: failed program was:" >&5
22052 sed 's/^/| /' conftest.$ac_ext >&5
22054 ( exit $ac_status )
22055 ac_cv_tanh_preserves_zero_sign=no
22057 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22063 { echo "$as_me:$LINENO: result: $ac_cv_tanh_preserves_zero_sign" >&5
22064 echo "${ECHO_T}$ac_cv_tanh_preserves_zero_sign" >&6; }
22065 if test "$ac_cv_tanh_preserves_zero_sign" = yes
22066 then
22068 cat >>confdefs.h <<\_ACEOF
22069 #define TANH_PRESERVES_ZERO_SIGN 1
22070 _ACEOF
22082 for ac_func in acosh asinh atanh copysign expm1 finite hypot log1p
22084 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22085 { echo "$as_me:$LINENO: checking for $ac_func" >&5
22086 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22087 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22088 echo $ECHO_N "(cached) $ECHO_C" >&6
22089 else
22090 cat >conftest.$ac_ext <<_ACEOF
22091 /* confdefs.h. */
22092 _ACEOF
22093 cat confdefs.h >>conftest.$ac_ext
22094 cat >>conftest.$ac_ext <<_ACEOF
22095 /* end confdefs.h. */
22096 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22097 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22098 #define $ac_func innocuous_$ac_func
22100 /* System header to define __stub macros and hopefully few prototypes,
22101 which can conflict with char $ac_func (); below.
22102 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22103 <limits.h> exists even on freestanding compilers. */
22105 #ifdef __STDC__
22106 # include <limits.h>
22107 #else
22108 # include <assert.h>
22109 #endif
22111 #undef $ac_func
22113 /* Override any GCC internal prototype to avoid an error.
22114 Use char because int might match the return type of a GCC
22115 builtin and then its argument prototype would still apply. */
22116 #ifdef __cplusplus
22117 extern "C"
22118 #endif
22119 char $ac_func ();
22120 /* The GNU C library defines this for functions which it implements
22121 to always fail with ENOSYS. Some functions are actually named
22122 something starting with __ and the normal name is an alias. */
22123 #if defined __stub_$ac_func || defined __stub___$ac_func
22124 choke me
22125 #endif
22128 main ()
22130 return $ac_func ();
22132 return 0;
22134 _ACEOF
22135 rm -f conftest.$ac_objext conftest$ac_exeext
22136 if { (ac_try="$ac_link"
22137 case "(($ac_try" in
22138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22139 *) ac_try_echo=$ac_try;;
22140 esac
22141 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22142 (eval "$ac_link") 2>conftest.er1
22143 ac_status=$?
22144 grep -v '^ *+' conftest.er1 >conftest.err
22145 rm -f conftest.er1
22146 cat conftest.err >&5
22147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22148 (exit $ac_status); } && {
22149 test -z "$ac_c_werror_flag" ||
22150 test ! -s conftest.err
22151 } && test -s conftest$ac_exeext &&
22152 $as_test_x conftest$ac_exeext; then
22153 eval "$as_ac_var=yes"
22154 else
22155 echo "$as_me: failed program was:" >&5
22156 sed 's/^/| /' conftest.$ac_ext >&5
22158 eval "$as_ac_var=no"
22161 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22162 conftest$ac_exeext conftest.$ac_ext
22164 ac_res=`eval echo '${'$as_ac_var'}'`
22165 { echo "$as_me:$LINENO: result: $ac_res" >&5
22166 echo "${ECHO_T}$ac_res" >&6; }
22167 if test `eval echo '${'$as_ac_var'}'` = yes; then
22168 cat >>confdefs.h <<_ACEOF
22169 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22170 _ACEOF
22173 done
22175 { echo "$as_me:$LINENO: checking whether isinf is declared" >&5
22176 echo $ECHO_N "checking whether isinf is declared... $ECHO_C" >&6; }
22177 if test "${ac_cv_have_decl_isinf+set}" = set; then
22178 echo $ECHO_N "(cached) $ECHO_C" >&6
22179 else
22180 cat >conftest.$ac_ext <<_ACEOF
22181 /* confdefs.h. */
22182 _ACEOF
22183 cat confdefs.h >>conftest.$ac_ext
22184 cat >>conftest.$ac_ext <<_ACEOF
22185 /* end confdefs.h. */
22186 #include <math.h>
22189 main ()
22191 #ifndef isinf
22192 (void) isinf;
22193 #endif
22196 return 0;
22198 _ACEOF
22199 rm -f conftest.$ac_objext
22200 if { (ac_try="$ac_compile"
22201 case "(($ac_try" in
22202 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22203 *) ac_try_echo=$ac_try;;
22204 esac
22205 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22206 (eval "$ac_compile") 2>conftest.er1
22207 ac_status=$?
22208 grep -v '^ *+' conftest.er1 >conftest.err
22209 rm -f conftest.er1
22210 cat conftest.err >&5
22211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22212 (exit $ac_status); } && {
22213 test -z "$ac_c_werror_flag" ||
22214 test ! -s conftest.err
22215 } && test -s conftest.$ac_objext; then
22216 ac_cv_have_decl_isinf=yes
22217 else
22218 echo "$as_me: failed program was:" >&5
22219 sed 's/^/| /' conftest.$ac_ext >&5
22221 ac_cv_have_decl_isinf=no
22224 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22226 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_isinf" >&5
22227 echo "${ECHO_T}$ac_cv_have_decl_isinf" >&6; }
22228 if test $ac_cv_have_decl_isinf = yes; then
22230 cat >>confdefs.h <<_ACEOF
22231 #define HAVE_DECL_ISINF 1
22232 _ACEOF
22235 else
22236 cat >>confdefs.h <<_ACEOF
22237 #define HAVE_DECL_ISINF 0
22238 _ACEOF
22242 { echo "$as_me:$LINENO: checking whether isnan is declared" >&5
22243 echo $ECHO_N "checking whether isnan is declared... $ECHO_C" >&6; }
22244 if test "${ac_cv_have_decl_isnan+set}" = set; then
22245 echo $ECHO_N "(cached) $ECHO_C" >&6
22246 else
22247 cat >conftest.$ac_ext <<_ACEOF
22248 /* confdefs.h. */
22249 _ACEOF
22250 cat confdefs.h >>conftest.$ac_ext
22251 cat >>conftest.$ac_ext <<_ACEOF
22252 /* end confdefs.h. */
22253 #include <math.h>
22256 main ()
22258 #ifndef isnan
22259 (void) isnan;
22260 #endif
22263 return 0;
22265 _ACEOF
22266 rm -f conftest.$ac_objext
22267 if { (ac_try="$ac_compile"
22268 case "(($ac_try" in
22269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22270 *) ac_try_echo=$ac_try;;
22271 esac
22272 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22273 (eval "$ac_compile") 2>conftest.er1
22274 ac_status=$?
22275 grep -v '^ *+' conftest.er1 >conftest.err
22276 rm -f conftest.er1
22277 cat conftest.err >&5
22278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22279 (exit $ac_status); } && {
22280 test -z "$ac_c_werror_flag" ||
22281 test ! -s conftest.err
22282 } && test -s conftest.$ac_objext; then
22283 ac_cv_have_decl_isnan=yes
22284 else
22285 echo "$as_me: failed program was:" >&5
22286 sed 's/^/| /' conftest.$ac_ext >&5
22288 ac_cv_have_decl_isnan=no
22291 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22293 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_isnan" >&5
22294 echo "${ECHO_T}$ac_cv_have_decl_isnan" >&6; }
22295 if test $ac_cv_have_decl_isnan = yes; then
22297 cat >>confdefs.h <<_ACEOF
22298 #define HAVE_DECL_ISNAN 1
22299 _ACEOF
22302 else
22303 cat >>confdefs.h <<_ACEOF
22304 #define HAVE_DECL_ISNAN 0
22305 _ACEOF
22309 { echo "$as_me:$LINENO: checking whether isfinite is declared" >&5
22310 echo $ECHO_N "checking whether isfinite is declared... $ECHO_C" >&6; }
22311 if test "${ac_cv_have_decl_isfinite+set}" = set; then
22312 echo $ECHO_N "(cached) $ECHO_C" >&6
22313 else
22314 cat >conftest.$ac_ext <<_ACEOF
22315 /* confdefs.h. */
22316 _ACEOF
22317 cat confdefs.h >>conftest.$ac_ext
22318 cat >>conftest.$ac_ext <<_ACEOF
22319 /* end confdefs.h. */
22320 #include <math.h>
22323 main ()
22325 #ifndef isfinite
22326 (void) isfinite;
22327 #endif
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_have_decl_isfinite=yes
22351 else
22352 echo "$as_me: failed program was:" >&5
22353 sed 's/^/| /' conftest.$ac_ext >&5
22355 ac_cv_have_decl_isfinite=no
22358 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22360 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_isfinite" >&5
22361 echo "${ECHO_T}$ac_cv_have_decl_isfinite" >&6; }
22362 if test $ac_cv_have_decl_isfinite = yes; then
22364 cat >>confdefs.h <<_ACEOF
22365 #define HAVE_DECL_ISFINITE 1
22366 _ACEOF
22369 else
22370 cat >>confdefs.h <<_ACEOF
22371 #define HAVE_DECL_ISFINITE 0
22372 _ACEOF
22379 LIBS=$LIBS_SAVE
22381 # determine what size digit to use for Python's longs
22382 { echo "$as_me:$LINENO: checking digit size for Python's longs" >&5
22383 echo $ECHO_N "checking digit size for Python's longs... $ECHO_C" >&6; }
22384 # Check whether --enable-big-digits was given.
22385 if test "${enable_big_digits+set}" = set; then
22386 enableval=$enable_big_digits; case $enable_big_digits in
22387 yes)
22388 enable_big_digits=30 ;;
22390 enable_big_digits=15 ;;
22391 15|30)
22394 { { echo "$as_me:$LINENO: error: bad value $enable_big_digits for --enable-big-digits; value should be 15 or 30" >&5
22395 echo "$as_me: error: bad value $enable_big_digits for --enable-big-digits; value should be 15 or 30" >&2;}
22396 { (exit 1); exit 1; }; } ;;
22397 esac
22398 { echo "$as_me:$LINENO: result: $enable_big_digits" >&5
22399 echo "${ECHO_T}$enable_big_digits" >&6; }
22401 cat >>confdefs.h <<_ACEOF
22402 #define PYLONG_BITS_IN_DIGIT $enable_big_digits
22403 _ACEOF
22406 else
22407 { echo "$as_me:$LINENO: result: no value specified" >&5
22408 echo "${ECHO_T}no value specified" >&6; }
22412 # check for wchar.h
22413 if test "${ac_cv_header_wchar_h+set}" = set; then
22414 { echo "$as_me:$LINENO: checking for wchar.h" >&5
22415 echo $ECHO_N "checking for wchar.h... $ECHO_C" >&6; }
22416 if test "${ac_cv_header_wchar_h+set}" = set; then
22417 echo $ECHO_N "(cached) $ECHO_C" >&6
22419 { echo "$as_me:$LINENO: result: $ac_cv_header_wchar_h" >&5
22420 echo "${ECHO_T}$ac_cv_header_wchar_h" >&6; }
22421 else
22422 # Is the header compilable?
22423 { echo "$as_me:$LINENO: checking wchar.h usability" >&5
22424 echo $ECHO_N "checking wchar.h usability... $ECHO_C" >&6; }
22425 cat >conftest.$ac_ext <<_ACEOF
22426 /* confdefs.h. */
22427 _ACEOF
22428 cat confdefs.h >>conftest.$ac_ext
22429 cat >>conftest.$ac_ext <<_ACEOF
22430 /* end confdefs.h. */
22431 $ac_includes_default
22432 #include <wchar.h>
22433 _ACEOF
22434 rm -f conftest.$ac_objext
22435 if { (ac_try="$ac_compile"
22436 case "(($ac_try" in
22437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22438 *) ac_try_echo=$ac_try;;
22439 esac
22440 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22441 (eval "$ac_compile") 2>conftest.er1
22442 ac_status=$?
22443 grep -v '^ *+' conftest.er1 >conftest.err
22444 rm -f conftest.er1
22445 cat conftest.err >&5
22446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22447 (exit $ac_status); } && {
22448 test -z "$ac_c_werror_flag" ||
22449 test ! -s conftest.err
22450 } && test -s conftest.$ac_objext; then
22451 ac_header_compiler=yes
22452 else
22453 echo "$as_me: failed program was:" >&5
22454 sed 's/^/| /' conftest.$ac_ext >&5
22456 ac_header_compiler=no
22459 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22460 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22461 echo "${ECHO_T}$ac_header_compiler" >&6; }
22463 # Is the header present?
22464 { echo "$as_me:$LINENO: checking wchar.h presence" >&5
22465 echo $ECHO_N "checking wchar.h presence... $ECHO_C" >&6; }
22466 cat >conftest.$ac_ext <<_ACEOF
22467 /* confdefs.h. */
22468 _ACEOF
22469 cat confdefs.h >>conftest.$ac_ext
22470 cat >>conftest.$ac_ext <<_ACEOF
22471 /* end confdefs.h. */
22472 #include <wchar.h>
22473 _ACEOF
22474 if { (ac_try="$ac_cpp conftest.$ac_ext"
22475 case "(($ac_try" in
22476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22477 *) ac_try_echo=$ac_try;;
22478 esac
22479 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22480 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22481 ac_status=$?
22482 grep -v '^ *+' conftest.er1 >conftest.err
22483 rm -f conftest.er1
22484 cat conftest.err >&5
22485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22486 (exit $ac_status); } >/dev/null && {
22487 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22488 test ! -s conftest.err
22489 }; then
22490 ac_header_preproc=yes
22491 else
22492 echo "$as_me: failed program was:" >&5
22493 sed 's/^/| /' conftest.$ac_ext >&5
22495 ac_header_preproc=no
22498 rm -f conftest.err conftest.$ac_ext
22499 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22500 echo "${ECHO_T}$ac_header_preproc" >&6; }
22502 # So? What about this header?
22503 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22504 yes:no: )
22505 { echo "$as_me:$LINENO: WARNING: wchar.h: accepted by the compiler, rejected by the preprocessor!" >&5
22506 echo "$as_me: WARNING: wchar.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22507 { echo "$as_me:$LINENO: WARNING: wchar.h: proceeding with the compiler's result" >&5
22508 echo "$as_me: WARNING: wchar.h: proceeding with the compiler's result" >&2;}
22509 ac_header_preproc=yes
22511 no:yes:* )
22512 { echo "$as_me:$LINENO: WARNING: wchar.h: present but cannot be compiled" >&5
22513 echo "$as_me: WARNING: wchar.h: present but cannot be compiled" >&2;}
22514 { echo "$as_me:$LINENO: WARNING: wchar.h: check for missing prerequisite headers?" >&5
22515 echo "$as_me: WARNING: wchar.h: check for missing prerequisite headers?" >&2;}
22516 { echo "$as_me:$LINENO: WARNING: wchar.h: see the Autoconf documentation" >&5
22517 echo "$as_me: WARNING: wchar.h: see the Autoconf documentation" >&2;}
22518 { echo "$as_me:$LINENO: WARNING: wchar.h: section \"Present But Cannot Be Compiled\"" >&5
22519 echo "$as_me: WARNING: wchar.h: section \"Present But Cannot Be Compiled\"" >&2;}
22520 { echo "$as_me:$LINENO: WARNING: wchar.h: proceeding with the preprocessor's result" >&5
22521 echo "$as_me: WARNING: wchar.h: proceeding with the preprocessor's result" >&2;}
22522 { echo "$as_me:$LINENO: WARNING: wchar.h: in the future, the compiler will take precedence" >&5
22523 echo "$as_me: WARNING: wchar.h: in the future, the compiler will take precedence" >&2;}
22524 ( cat <<\_ASBOX
22525 ## ------------------------------------------------ ##
22526 ## Report this to http://www.python.org/python-bugs ##
22527 ## ------------------------------------------------ ##
22528 _ASBOX
22529 ) | sed "s/^/$as_me: WARNING: /" >&2
22531 esac
22532 { echo "$as_me:$LINENO: checking for wchar.h" >&5
22533 echo $ECHO_N "checking for wchar.h... $ECHO_C" >&6; }
22534 if test "${ac_cv_header_wchar_h+set}" = set; then
22535 echo $ECHO_N "(cached) $ECHO_C" >&6
22536 else
22537 ac_cv_header_wchar_h=$ac_header_preproc
22539 { echo "$as_me:$LINENO: result: $ac_cv_header_wchar_h" >&5
22540 echo "${ECHO_T}$ac_cv_header_wchar_h" >&6; }
22543 if test $ac_cv_header_wchar_h = yes; then
22546 cat >>confdefs.h <<\_ACEOF
22547 #define HAVE_WCHAR_H 1
22548 _ACEOF
22550 wchar_h="yes"
22552 else
22553 wchar_h="no"
22559 # determine wchar_t size
22560 if test "$wchar_h" = yes
22561 then
22562 { echo "$as_me:$LINENO: checking for wchar_t" >&5
22563 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6; }
22564 if test "${ac_cv_type_wchar_t+set}" = set; then
22565 echo $ECHO_N "(cached) $ECHO_C" >&6
22566 else
22567 cat >conftest.$ac_ext <<_ACEOF
22568 /* confdefs.h. */
22569 _ACEOF
22570 cat confdefs.h >>conftest.$ac_ext
22571 cat >>conftest.$ac_ext <<_ACEOF
22572 /* end confdefs.h. */
22573 #include <wchar.h>
22575 typedef wchar_t ac__type_new_;
22577 main ()
22579 if ((ac__type_new_ *) 0)
22580 return 0;
22581 if (sizeof (ac__type_new_))
22582 return 0;
22584 return 0;
22586 _ACEOF
22587 rm -f conftest.$ac_objext
22588 if { (ac_try="$ac_compile"
22589 case "(($ac_try" in
22590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22591 *) ac_try_echo=$ac_try;;
22592 esac
22593 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22594 (eval "$ac_compile") 2>conftest.er1
22595 ac_status=$?
22596 grep -v '^ *+' conftest.er1 >conftest.err
22597 rm -f conftest.er1
22598 cat conftest.err >&5
22599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22600 (exit $ac_status); } && {
22601 test -z "$ac_c_werror_flag" ||
22602 test ! -s conftest.err
22603 } && test -s conftest.$ac_objext; then
22604 ac_cv_type_wchar_t=yes
22605 else
22606 echo "$as_me: failed program was:" >&5
22607 sed 's/^/| /' conftest.$ac_ext >&5
22609 ac_cv_type_wchar_t=no
22612 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22614 { echo "$as_me:$LINENO: result: $ac_cv_type_wchar_t" >&5
22615 echo "${ECHO_T}$ac_cv_type_wchar_t" >&6; }
22617 # The cast to long int works around a bug in the HP C Compiler
22618 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22619 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22620 # This bug is HP SR number 8606223364.
22621 { echo "$as_me:$LINENO: checking size of wchar_t" >&5
22622 echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6; }
22623 if test "${ac_cv_sizeof_wchar_t+set}" = set; then
22624 echo $ECHO_N "(cached) $ECHO_C" >&6
22625 else
22626 if test "$cross_compiling" = yes; then
22627 # Depending upon the size, compute the lo and hi bounds.
22628 cat >conftest.$ac_ext <<_ACEOF
22629 /* confdefs.h. */
22630 _ACEOF
22631 cat confdefs.h >>conftest.$ac_ext
22632 cat >>conftest.$ac_ext <<_ACEOF
22633 /* end confdefs.h. */
22634 #include <wchar.h>
22636 typedef wchar_t ac__type_sizeof_;
22638 main ()
22640 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
22641 test_array [0] = 0
22644 return 0;
22646 _ACEOF
22647 rm -f conftest.$ac_objext
22648 if { (ac_try="$ac_compile"
22649 case "(($ac_try" in
22650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22651 *) ac_try_echo=$ac_try;;
22652 esac
22653 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22654 (eval "$ac_compile") 2>conftest.er1
22655 ac_status=$?
22656 grep -v '^ *+' conftest.er1 >conftest.err
22657 rm -f conftest.er1
22658 cat conftest.err >&5
22659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22660 (exit $ac_status); } && {
22661 test -z "$ac_c_werror_flag" ||
22662 test ! -s conftest.err
22663 } && test -s conftest.$ac_objext; then
22664 ac_lo=0 ac_mid=0
22665 while :; do
22666 cat >conftest.$ac_ext <<_ACEOF
22667 /* confdefs.h. */
22668 _ACEOF
22669 cat confdefs.h >>conftest.$ac_ext
22670 cat >>conftest.$ac_ext <<_ACEOF
22671 /* end confdefs.h. */
22672 #include <wchar.h>
22674 typedef wchar_t ac__type_sizeof_;
22676 main ()
22678 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
22679 test_array [0] = 0
22682 return 0;
22684 _ACEOF
22685 rm -f conftest.$ac_objext
22686 if { (ac_try="$ac_compile"
22687 case "(($ac_try" in
22688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22689 *) ac_try_echo=$ac_try;;
22690 esac
22691 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22692 (eval "$ac_compile") 2>conftest.er1
22693 ac_status=$?
22694 grep -v '^ *+' conftest.er1 >conftest.err
22695 rm -f conftest.er1
22696 cat conftest.err >&5
22697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22698 (exit $ac_status); } && {
22699 test -z "$ac_c_werror_flag" ||
22700 test ! -s conftest.err
22701 } && test -s conftest.$ac_objext; then
22702 ac_hi=$ac_mid; break
22703 else
22704 echo "$as_me: failed program was:" >&5
22705 sed 's/^/| /' conftest.$ac_ext >&5
22707 ac_lo=`expr $ac_mid + 1`
22708 if test $ac_lo -le $ac_mid; then
22709 ac_lo= ac_hi=
22710 break
22712 ac_mid=`expr 2 '*' $ac_mid + 1`
22715 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22716 done
22717 else
22718 echo "$as_me: failed program was:" >&5
22719 sed 's/^/| /' conftest.$ac_ext >&5
22721 cat >conftest.$ac_ext <<_ACEOF
22722 /* confdefs.h. */
22723 _ACEOF
22724 cat confdefs.h >>conftest.$ac_ext
22725 cat >>conftest.$ac_ext <<_ACEOF
22726 /* end confdefs.h. */
22727 #include <wchar.h>
22729 typedef wchar_t ac__type_sizeof_;
22731 main ()
22733 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
22734 test_array [0] = 0
22737 return 0;
22739 _ACEOF
22740 rm -f conftest.$ac_objext
22741 if { (ac_try="$ac_compile"
22742 case "(($ac_try" in
22743 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22744 *) ac_try_echo=$ac_try;;
22745 esac
22746 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22747 (eval "$ac_compile") 2>conftest.er1
22748 ac_status=$?
22749 grep -v '^ *+' conftest.er1 >conftest.err
22750 rm -f conftest.er1
22751 cat conftest.err >&5
22752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22753 (exit $ac_status); } && {
22754 test -z "$ac_c_werror_flag" ||
22755 test ! -s conftest.err
22756 } && test -s conftest.$ac_objext; then
22757 ac_hi=-1 ac_mid=-1
22758 while :; do
22759 cat >conftest.$ac_ext <<_ACEOF
22760 /* confdefs.h. */
22761 _ACEOF
22762 cat confdefs.h >>conftest.$ac_ext
22763 cat >>conftest.$ac_ext <<_ACEOF
22764 /* end confdefs.h. */
22765 #include <wchar.h>
22767 typedef wchar_t ac__type_sizeof_;
22769 main ()
22771 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
22772 test_array [0] = 0
22775 return 0;
22777 _ACEOF
22778 rm -f conftest.$ac_objext
22779 if { (ac_try="$ac_compile"
22780 case "(($ac_try" in
22781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22782 *) ac_try_echo=$ac_try;;
22783 esac
22784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22785 (eval "$ac_compile") 2>conftest.er1
22786 ac_status=$?
22787 grep -v '^ *+' conftest.er1 >conftest.err
22788 rm -f conftest.er1
22789 cat conftest.err >&5
22790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22791 (exit $ac_status); } && {
22792 test -z "$ac_c_werror_flag" ||
22793 test ! -s conftest.err
22794 } && test -s conftest.$ac_objext; then
22795 ac_lo=$ac_mid; break
22796 else
22797 echo "$as_me: failed program was:" >&5
22798 sed 's/^/| /' conftest.$ac_ext >&5
22800 ac_hi=`expr '(' $ac_mid ')' - 1`
22801 if test $ac_mid -le $ac_hi; then
22802 ac_lo= ac_hi=
22803 break
22805 ac_mid=`expr 2 '*' $ac_mid`
22808 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22809 done
22810 else
22811 echo "$as_me: failed program was:" >&5
22812 sed 's/^/| /' conftest.$ac_ext >&5
22814 ac_lo= ac_hi=
22817 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22820 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22821 # Binary search between lo and hi bounds.
22822 while test "x$ac_lo" != "x$ac_hi"; do
22823 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
22824 cat >conftest.$ac_ext <<_ACEOF
22825 /* confdefs.h. */
22826 _ACEOF
22827 cat confdefs.h >>conftest.$ac_ext
22828 cat >>conftest.$ac_ext <<_ACEOF
22829 /* end confdefs.h. */
22830 #include <wchar.h>
22832 typedef wchar_t ac__type_sizeof_;
22834 main ()
22836 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
22837 test_array [0] = 0
22840 return 0;
22842 _ACEOF
22843 rm -f conftest.$ac_objext
22844 if { (ac_try="$ac_compile"
22845 case "(($ac_try" in
22846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22847 *) ac_try_echo=$ac_try;;
22848 esac
22849 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22850 (eval "$ac_compile") 2>conftest.er1
22851 ac_status=$?
22852 grep -v '^ *+' conftest.er1 >conftest.err
22853 rm -f conftest.er1
22854 cat conftest.err >&5
22855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22856 (exit $ac_status); } && {
22857 test -z "$ac_c_werror_flag" ||
22858 test ! -s conftest.err
22859 } && test -s conftest.$ac_objext; then
22860 ac_hi=$ac_mid
22861 else
22862 echo "$as_me: failed program was:" >&5
22863 sed 's/^/| /' conftest.$ac_ext >&5
22865 ac_lo=`expr '(' $ac_mid ')' + 1`
22868 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22869 done
22870 case $ac_lo in
22871 ?*) ac_cv_sizeof_wchar_t=$ac_lo;;
22872 '') if test "$ac_cv_type_wchar_t" = yes; then
22873 { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t)
22874 See \`config.log' for more details." >&5
22875 echo "$as_me: error: cannot compute sizeof (wchar_t)
22876 See \`config.log' for more details." >&2;}
22877 { (exit 77); exit 77; }; }
22878 else
22879 ac_cv_sizeof_wchar_t=0
22880 fi ;;
22881 esac
22882 else
22883 cat >conftest.$ac_ext <<_ACEOF
22884 /* confdefs.h. */
22885 _ACEOF
22886 cat confdefs.h >>conftest.$ac_ext
22887 cat >>conftest.$ac_ext <<_ACEOF
22888 /* end confdefs.h. */
22889 #include <wchar.h>
22891 typedef wchar_t ac__type_sizeof_;
22892 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
22893 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
22894 #include <stdio.h>
22895 #include <stdlib.h>
22897 main ()
22900 FILE *f = fopen ("conftest.val", "w");
22901 if (! f)
22902 return 1;
22903 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
22905 long int i = longval ();
22906 if (i != ((long int) (sizeof (ac__type_sizeof_))))
22907 return 1;
22908 fprintf (f, "%ld\n", i);
22910 else
22912 unsigned long int i = ulongval ();
22913 if (i != ((long int) (sizeof (ac__type_sizeof_))))
22914 return 1;
22915 fprintf (f, "%lu\n", i);
22917 return ferror (f) || fclose (f) != 0;
22920 return 0;
22922 _ACEOF
22923 rm -f conftest$ac_exeext
22924 if { (ac_try="$ac_link"
22925 case "(($ac_try" in
22926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22927 *) ac_try_echo=$ac_try;;
22928 esac
22929 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22930 (eval "$ac_link") 2>&5
22931 ac_status=$?
22932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22933 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22934 { (case "(($ac_try" in
22935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22936 *) ac_try_echo=$ac_try;;
22937 esac
22938 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22939 (eval "$ac_try") 2>&5
22940 ac_status=$?
22941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22942 (exit $ac_status); }; }; then
22943 ac_cv_sizeof_wchar_t=`cat conftest.val`
22944 else
22945 echo "$as_me: program exited with status $ac_status" >&5
22946 echo "$as_me: failed program was:" >&5
22947 sed 's/^/| /' conftest.$ac_ext >&5
22949 ( exit $ac_status )
22950 if test "$ac_cv_type_wchar_t" = yes; then
22951 { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t)
22952 See \`config.log' for more details." >&5
22953 echo "$as_me: error: cannot compute sizeof (wchar_t)
22954 See \`config.log' for more details." >&2;}
22955 { (exit 77); exit 77; }; }
22956 else
22957 ac_cv_sizeof_wchar_t=0
22960 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22962 rm -f conftest.val
22964 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_wchar_t" >&5
22965 echo "${ECHO_T}$ac_cv_sizeof_wchar_t" >&6; }
22969 cat >>confdefs.h <<_ACEOF
22970 #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
22971 _ACEOF
22976 { echo "$as_me:$LINENO: checking for UCS-4 tcl" >&5
22977 echo $ECHO_N "checking for UCS-4 tcl... $ECHO_C" >&6; }
22978 have_ucs4_tcl=no
22979 cat >conftest.$ac_ext <<_ACEOF
22980 /* confdefs.h. */
22981 _ACEOF
22982 cat confdefs.h >>conftest.$ac_ext
22983 cat >>conftest.$ac_ext <<_ACEOF
22984 /* end confdefs.h. */
22986 #include <tcl.h>
22987 #if TCL_UTF_MAX != 6
22988 # error "NOT UCS4_TCL"
22989 #endif
22991 main ()
22995 return 0;
22997 _ACEOF
22998 rm -f conftest.$ac_objext
22999 if { (ac_try="$ac_compile"
23000 case "(($ac_try" in
23001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23002 *) ac_try_echo=$ac_try;;
23003 esac
23004 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23005 (eval "$ac_compile") 2>conftest.er1
23006 ac_status=$?
23007 grep -v '^ *+' conftest.er1 >conftest.err
23008 rm -f conftest.er1
23009 cat conftest.err >&5
23010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23011 (exit $ac_status); } && {
23012 test -z "$ac_c_werror_flag" ||
23013 test ! -s conftest.err
23014 } && test -s conftest.$ac_objext; then
23017 cat >>confdefs.h <<\_ACEOF
23018 #define HAVE_UCS4_TCL 1
23019 _ACEOF
23021 have_ucs4_tcl=yes
23023 else
23024 echo "$as_me: failed program was:" >&5
23025 sed 's/^/| /' conftest.$ac_ext >&5
23030 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23031 { echo "$as_me:$LINENO: result: $have_ucs4_tcl" >&5
23032 echo "${ECHO_T}$have_ucs4_tcl" >&6; }
23034 # check whether wchar_t is signed or not
23035 if test "$wchar_h" = yes
23036 then
23037 # check whether wchar_t is signed or not
23038 { echo "$as_me:$LINENO: checking whether wchar_t is signed" >&5
23039 echo $ECHO_N "checking whether wchar_t is signed... $ECHO_C" >&6; }
23040 if test "${ac_cv_wchar_t_signed+set}" = set; then
23041 echo $ECHO_N "(cached) $ECHO_C" >&6
23042 else
23044 if test "$cross_compiling" = yes; then
23045 ac_cv_wchar_t_signed=yes
23046 else
23047 cat >conftest.$ac_ext <<_ACEOF
23048 /* confdefs.h. */
23049 _ACEOF
23050 cat confdefs.h >>conftest.$ac_ext
23051 cat >>conftest.$ac_ext <<_ACEOF
23052 /* end confdefs.h. */
23054 #include <wchar.h>
23055 int main()
23057 /* Success: exit code 0 */
23058 exit((((wchar_t) -1) < ((wchar_t) 0)) ? 0 : 1);
23061 _ACEOF
23062 rm -f conftest$ac_exeext
23063 if { (ac_try="$ac_link"
23064 case "(($ac_try" in
23065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23066 *) ac_try_echo=$ac_try;;
23067 esac
23068 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23069 (eval "$ac_link") 2>&5
23070 ac_status=$?
23071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23072 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23073 { (case "(($ac_try" in
23074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23075 *) ac_try_echo=$ac_try;;
23076 esac
23077 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23078 (eval "$ac_try") 2>&5
23079 ac_status=$?
23080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23081 (exit $ac_status); }; }; then
23082 ac_cv_wchar_t_signed=yes
23083 else
23084 echo "$as_me: program exited with status $ac_status" >&5
23085 echo "$as_me: failed program was:" >&5
23086 sed 's/^/| /' conftest.$ac_ext >&5
23088 ( exit $ac_status )
23089 ac_cv_wchar_t_signed=no
23091 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23097 { echo "$as_me:$LINENO: result: $ac_cv_wchar_t_signed" >&5
23098 echo "${ECHO_T}$ac_cv_wchar_t_signed" >&6; }
23101 { echo "$as_me:$LINENO: checking what type to use for unicode" >&5
23102 echo $ECHO_N "checking what type to use for unicode... $ECHO_C" >&6; }
23103 # Check whether --enable-unicode was given.
23104 if test "${enable_unicode+set}" = set; then
23105 enableval=$enable_unicode;
23106 else
23107 enable_unicode=yes
23111 if test $enable_unicode = yes
23112 then
23113 # Without any arguments, Py_UNICODE defaults to two-byte mode
23114 case "$have_ucs4_tcl" in
23115 yes) enable_unicode="ucs4"
23117 *) enable_unicode="ucs2"
23119 esac
23124 case "$enable_unicode" in
23125 ucs2) unicode_size="2"
23126 cat >>confdefs.h <<\_ACEOF
23127 #define Py_UNICODE_SIZE 2
23128 _ACEOF
23131 ucs4) unicode_size="4"
23132 cat >>confdefs.h <<\_ACEOF
23133 #define Py_UNICODE_SIZE 4
23134 _ACEOF
23137 esac
23143 if test "$enable_unicode" = "no"
23144 then
23145 UNICODE_OBJS=""
23146 { echo "$as_me:$LINENO: result: not used" >&5
23147 echo "${ECHO_T}not used" >&6; }
23148 else
23149 UNICODE_OBJS="Objects/unicodeobject.o Objects/unicodectype.o"
23151 cat >>confdefs.h <<\_ACEOF
23152 #define Py_USING_UNICODE 1
23153 _ACEOF
23156 # wchar_t is only usable if it maps to an unsigned type
23157 if test "$unicode_size" = "$ac_cv_sizeof_wchar_t" \
23158 -a "$ac_cv_wchar_t_signed" = "no"
23159 then
23160 PY_UNICODE_TYPE="wchar_t"
23162 cat >>confdefs.h <<\_ACEOF
23163 #define HAVE_USABLE_WCHAR_T 1
23164 _ACEOF
23166 cat >>confdefs.h <<\_ACEOF
23167 #define PY_UNICODE_TYPE wchar_t
23168 _ACEOF
23170 elif test "$ac_cv_sizeof_short" = "$unicode_size"
23171 then
23172 PY_UNICODE_TYPE="unsigned short"
23173 cat >>confdefs.h <<\_ACEOF
23174 #define PY_UNICODE_TYPE unsigned short
23175 _ACEOF
23177 elif test "$ac_cv_sizeof_long" = "$unicode_size"
23178 then
23179 PY_UNICODE_TYPE="unsigned long"
23180 cat >>confdefs.h <<\_ACEOF
23181 #define PY_UNICODE_TYPE unsigned long
23182 _ACEOF
23184 else
23185 PY_UNICODE_TYPE="no type found"
23187 { echo "$as_me:$LINENO: result: $PY_UNICODE_TYPE" >&5
23188 echo "${ECHO_T}$PY_UNICODE_TYPE" >&6; }
23191 # check for endianness
23192 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
23193 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
23194 if test "${ac_cv_c_bigendian+set}" = set; then
23195 echo $ECHO_N "(cached) $ECHO_C" >&6
23196 else
23197 # See if sys/param.h defines the BYTE_ORDER macro.
23198 cat >conftest.$ac_ext <<_ACEOF
23199 /* confdefs.h. */
23200 _ACEOF
23201 cat confdefs.h >>conftest.$ac_ext
23202 cat >>conftest.$ac_ext <<_ACEOF
23203 /* end confdefs.h. */
23204 #include <sys/types.h>
23205 #include <sys/param.h>
23208 main ()
23210 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
23211 && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
23212 bogus endian macros
23213 #endif
23216 return 0;
23218 _ACEOF
23219 rm -f conftest.$ac_objext
23220 if { (ac_try="$ac_compile"
23221 case "(($ac_try" in
23222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23223 *) ac_try_echo=$ac_try;;
23224 esac
23225 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23226 (eval "$ac_compile") 2>conftest.er1
23227 ac_status=$?
23228 grep -v '^ *+' conftest.er1 >conftest.err
23229 rm -f conftest.er1
23230 cat conftest.err >&5
23231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23232 (exit $ac_status); } && {
23233 test -z "$ac_c_werror_flag" ||
23234 test ! -s conftest.err
23235 } && test -s conftest.$ac_objext; then
23236 # It does; now see whether it defined to BIG_ENDIAN or not.
23237 cat >conftest.$ac_ext <<_ACEOF
23238 /* confdefs.h. */
23239 _ACEOF
23240 cat confdefs.h >>conftest.$ac_ext
23241 cat >>conftest.$ac_ext <<_ACEOF
23242 /* end confdefs.h. */
23243 #include <sys/types.h>
23244 #include <sys/param.h>
23247 main ()
23249 #if BYTE_ORDER != BIG_ENDIAN
23250 not big endian
23251 #endif
23254 return 0;
23256 _ACEOF
23257 rm -f conftest.$ac_objext
23258 if { (ac_try="$ac_compile"
23259 case "(($ac_try" in
23260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23261 *) ac_try_echo=$ac_try;;
23262 esac
23263 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23264 (eval "$ac_compile") 2>conftest.er1
23265 ac_status=$?
23266 grep -v '^ *+' conftest.er1 >conftest.err
23267 rm -f conftest.er1
23268 cat conftest.err >&5
23269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23270 (exit $ac_status); } && {
23271 test -z "$ac_c_werror_flag" ||
23272 test ! -s conftest.err
23273 } && test -s conftest.$ac_objext; then
23274 ac_cv_c_bigendian=yes
23275 else
23276 echo "$as_me: failed program was:" >&5
23277 sed 's/^/| /' conftest.$ac_ext >&5
23279 ac_cv_c_bigendian=no
23282 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23283 else
23284 echo "$as_me: failed program was:" >&5
23285 sed 's/^/| /' conftest.$ac_ext >&5
23287 # It does not; compile a test program.
23288 if test "$cross_compiling" = yes; then
23289 # try to guess the endianness by grepping values into an object file
23290 ac_cv_c_bigendian=unknown
23291 cat >conftest.$ac_ext <<_ACEOF
23292 /* confdefs.h. */
23293 _ACEOF
23294 cat confdefs.h >>conftest.$ac_ext
23295 cat >>conftest.$ac_ext <<_ACEOF
23296 /* end confdefs.h. */
23297 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
23298 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
23299 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
23300 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
23301 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
23302 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
23304 main ()
23306 _ascii (); _ebcdic ();
23308 return 0;
23310 _ACEOF
23311 rm -f conftest.$ac_objext
23312 if { (ac_try="$ac_compile"
23313 case "(($ac_try" in
23314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23315 *) ac_try_echo=$ac_try;;
23316 esac
23317 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23318 (eval "$ac_compile") 2>conftest.er1
23319 ac_status=$?
23320 grep -v '^ *+' conftest.er1 >conftest.err
23321 rm -f conftest.er1
23322 cat conftest.err >&5
23323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23324 (exit $ac_status); } && {
23325 test -z "$ac_c_werror_flag" ||
23326 test ! -s conftest.err
23327 } && test -s conftest.$ac_objext; then
23328 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
23329 ac_cv_c_bigendian=yes
23331 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
23332 if test "$ac_cv_c_bigendian" = unknown; then
23333 ac_cv_c_bigendian=no
23334 else
23335 # finding both strings is unlikely to happen, but who knows?
23336 ac_cv_c_bigendian=unknown
23339 else
23340 echo "$as_me: failed program was:" >&5
23341 sed 's/^/| /' conftest.$ac_ext >&5
23346 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23347 else
23348 cat >conftest.$ac_ext <<_ACEOF
23349 /* confdefs.h. */
23350 _ACEOF
23351 cat confdefs.h >>conftest.$ac_ext
23352 cat >>conftest.$ac_ext <<_ACEOF
23353 /* end confdefs.h. */
23354 $ac_includes_default
23356 main ()
23359 /* Are we little or big endian? From Harbison&Steele. */
23360 union
23362 long int l;
23363 char c[sizeof (long int)];
23364 } u;
23365 u.l = 1;
23366 return u.c[sizeof (long int) - 1] == 1;
23369 return 0;
23371 _ACEOF
23372 rm -f conftest$ac_exeext
23373 if { (ac_try="$ac_link"
23374 case "(($ac_try" in
23375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23376 *) ac_try_echo=$ac_try;;
23377 esac
23378 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23379 (eval "$ac_link") 2>&5
23380 ac_status=$?
23381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23382 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23383 { (case "(($ac_try" in
23384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23385 *) ac_try_echo=$ac_try;;
23386 esac
23387 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23388 (eval "$ac_try") 2>&5
23389 ac_status=$?
23390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23391 (exit $ac_status); }; }; then
23392 ac_cv_c_bigendian=no
23393 else
23394 echo "$as_me: program exited with status $ac_status" >&5
23395 echo "$as_me: failed program was:" >&5
23396 sed 's/^/| /' conftest.$ac_ext >&5
23398 ( exit $ac_status )
23399 ac_cv_c_bigendian=yes
23401 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23407 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23409 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
23410 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
23411 case $ac_cv_c_bigendian in
23412 yes)
23414 cat >>confdefs.h <<\_ACEOF
23415 #define WORDS_BIGENDIAN 1
23416 _ACEOF
23421 { { echo "$as_me:$LINENO: error: unknown endianness
23422 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
23423 echo "$as_me: error: unknown endianness
23424 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
23425 { (exit 1); exit 1; }; } ;;
23426 esac
23429 # Check whether right shifting a negative integer extends the sign bit
23430 # or fills with zeros (like the Cray J90, according to Tim Peters).
23431 { echo "$as_me:$LINENO: checking whether right shift extends the sign bit" >&5
23432 echo $ECHO_N "checking whether right shift extends the sign bit... $ECHO_C" >&6; }
23433 if test "${ac_cv_rshift_extends_sign+set}" = set; then
23434 echo $ECHO_N "(cached) $ECHO_C" >&6
23435 else
23437 if test "$cross_compiling" = yes; then
23438 ac_cv_rshift_extends_sign=yes
23439 else
23440 cat >conftest.$ac_ext <<_ACEOF
23441 /* confdefs.h. */
23442 _ACEOF
23443 cat confdefs.h >>conftest.$ac_ext
23444 cat >>conftest.$ac_ext <<_ACEOF
23445 /* end confdefs.h. */
23447 int main()
23449 exit(((-1)>>3 == -1) ? 0 : 1);
23452 _ACEOF
23453 rm -f conftest$ac_exeext
23454 if { (ac_try="$ac_link"
23455 case "(($ac_try" in
23456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23457 *) ac_try_echo=$ac_try;;
23458 esac
23459 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23460 (eval "$ac_link") 2>&5
23461 ac_status=$?
23462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23463 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23464 { (case "(($ac_try" in
23465 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23466 *) ac_try_echo=$ac_try;;
23467 esac
23468 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23469 (eval "$ac_try") 2>&5
23470 ac_status=$?
23471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23472 (exit $ac_status); }; }; then
23473 ac_cv_rshift_extends_sign=yes
23474 else
23475 echo "$as_me: program exited with status $ac_status" >&5
23476 echo "$as_me: failed program was:" >&5
23477 sed 's/^/| /' conftest.$ac_ext >&5
23479 ( exit $ac_status )
23480 ac_cv_rshift_extends_sign=no
23482 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23488 { echo "$as_me:$LINENO: result: $ac_cv_rshift_extends_sign" >&5
23489 echo "${ECHO_T}$ac_cv_rshift_extends_sign" >&6; }
23490 if test "$ac_cv_rshift_extends_sign" = no
23491 then
23493 cat >>confdefs.h <<\_ACEOF
23494 #define SIGNED_RIGHT_SHIFT_ZERO_FILLS 1
23495 _ACEOF
23499 # check for getc_unlocked and related locking functions
23500 { echo "$as_me:$LINENO: checking for getc_unlocked() and friends" >&5
23501 echo $ECHO_N "checking for getc_unlocked() and friends... $ECHO_C" >&6; }
23502 if test "${ac_cv_have_getc_unlocked+set}" = set; then
23503 echo $ECHO_N "(cached) $ECHO_C" >&6
23504 else
23506 cat >conftest.$ac_ext <<_ACEOF
23507 /* confdefs.h. */
23508 _ACEOF
23509 cat confdefs.h >>conftest.$ac_ext
23510 cat >>conftest.$ac_ext <<_ACEOF
23511 /* end confdefs.h. */
23512 #include <stdio.h>
23514 main ()
23517 FILE *f = fopen("/dev/null", "r");
23518 flockfile(f);
23519 getc_unlocked(f);
23520 funlockfile(f);
23523 return 0;
23525 _ACEOF
23526 rm -f conftest.$ac_objext conftest$ac_exeext
23527 if { (ac_try="$ac_link"
23528 case "(($ac_try" in
23529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23530 *) ac_try_echo=$ac_try;;
23531 esac
23532 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23533 (eval "$ac_link") 2>conftest.er1
23534 ac_status=$?
23535 grep -v '^ *+' conftest.er1 >conftest.err
23536 rm -f conftest.er1
23537 cat conftest.err >&5
23538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23539 (exit $ac_status); } && {
23540 test -z "$ac_c_werror_flag" ||
23541 test ! -s conftest.err
23542 } && test -s conftest$ac_exeext &&
23543 $as_test_x conftest$ac_exeext; then
23544 ac_cv_have_getc_unlocked=yes
23545 else
23546 echo "$as_me: failed program was:" >&5
23547 sed 's/^/| /' conftest.$ac_ext >&5
23549 ac_cv_have_getc_unlocked=no
23552 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23553 conftest$ac_exeext conftest.$ac_ext
23556 { echo "$as_me:$LINENO: result: $ac_cv_have_getc_unlocked" >&5
23557 echo "${ECHO_T}$ac_cv_have_getc_unlocked" >&6; }
23558 if test "$ac_cv_have_getc_unlocked" = yes
23559 then
23561 cat >>confdefs.h <<\_ACEOF
23562 #define HAVE_GETC_UNLOCKED 1
23563 _ACEOF
23567 # check where readline lives
23568 # save the value of LIBS so we don't actually link Python with readline
23569 LIBS_no_readline=$LIBS
23571 # On some systems we need to link readline to a termcap compatible
23572 # library. NOTE: Keep the precedence of listed libraries synchronised
23573 # with setup.py.
23574 py_cv_lib_readline=no
23575 { echo "$as_me:$LINENO: checking how to link readline libs" >&5
23576 echo $ECHO_N "checking how to link readline libs... $ECHO_C" >&6; }
23577 for py_libtermcap in "" ncursesw ncurses curses termcap; do
23578 if test -z "$py_libtermcap"; then
23579 READLINE_LIBS="-lreadline"
23580 else
23581 READLINE_LIBS="-lreadline -l$py_libtermcap"
23583 LIBS="$READLINE_LIBS $LIBS_no_readline"
23584 cat >conftest.$ac_ext <<_ACEOF
23585 /* confdefs.h. */
23586 _ACEOF
23587 cat confdefs.h >>conftest.$ac_ext
23588 cat >>conftest.$ac_ext <<_ACEOF
23589 /* end confdefs.h. */
23591 /* Override any GCC internal prototype to avoid an error.
23592 Use char because int might match the return type of a GCC
23593 builtin and then its argument prototype would still apply. */
23594 #ifdef __cplusplus
23595 extern "C"
23596 #endif
23597 char readline ();
23599 main ()
23601 return readline ();
23603 return 0;
23605 _ACEOF
23606 rm -f conftest.$ac_objext conftest$ac_exeext
23607 if { (ac_try="$ac_link"
23608 case "(($ac_try" in
23609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23610 *) ac_try_echo=$ac_try;;
23611 esac
23612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23613 (eval "$ac_link") 2>conftest.er1
23614 ac_status=$?
23615 grep -v '^ *+' conftest.er1 >conftest.err
23616 rm -f conftest.er1
23617 cat conftest.err >&5
23618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23619 (exit $ac_status); } && {
23620 test -z "$ac_c_werror_flag" ||
23621 test ! -s conftest.err
23622 } && test -s conftest$ac_exeext &&
23623 $as_test_x conftest$ac_exeext; then
23624 py_cv_lib_readline=yes
23625 else
23626 echo "$as_me: failed program was:" >&5
23627 sed 's/^/| /' conftest.$ac_ext >&5
23632 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23633 conftest$ac_exeext conftest.$ac_ext
23634 if test $py_cv_lib_readline = yes; then
23635 break
23637 done
23638 # Uncomment this line if you want to use READINE_LIBS in Makefile or scripts
23639 #AC_SUBST([READLINE_LIBS])
23640 if test $py_cv_lib_readline = no; then
23641 { echo "$as_me:$LINENO: result: none" >&5
23642 echo "${ECHO_T}none" >&6; }
23643 else
23644 { echo "$as_me:$LINENO: result: $READLINE_LIBS" >&5
23645 echo "${ECHO_T}$READLINE_LIBS" >&6; }
23647 cat >>confdefs.h <<\_ACEOF
23648 #define HAVE_LIBREADLINE 1
23649 _ACEOF
23653 # check for readline 2.1
23654 { echo "$as_me:$LINENO: checking for rl_callback_handler_install in -lreadline" >&5
23655 echo $ECHO_N "checking for rl_callback_handler_install in -lreadline... $ECHO_C" >&6; }
23656 if test "${ac_cv_lib_readline_rl_callback_handler_install+set}" = set; then
23657 echo $ECHO_N "(cached) $ECHO_C" >&6
23658 else
23659 ac_check_lib_save_LIBS=$LIBS
23660 LIBS="-lreadline $READLINE_LIBS $LIBS"
23661 cat >conftest.$ac_ext <<_ACEOF
23662 /* confdefs.h. */
23663 _ACEOF
23664 cat confdefs.h >>conftest.$ac_ext
23665 cat >>conftest.$ac_ext <<_ACEOF
23666 /* end confdefs.h. */
23668 /* Override any GCC internal prototype to avoid an error.
23669 Use char because int might match the return type of a GCC
23670 builtin and then its argument prototype would still apply. */
23671 #ifdef __cplusplus
23672 extern "C"
23673 #endif
23674 char rl_callback_handler_install ();
23676 main ()
23678 return rl_callback_handler_install ();
23680 return 0;
23682 _ACEOF
23683 rm -f conftest.$ac_objext conftest$ac_exeext
23684 if { (ac_try="$ac_link"
23685 case "(($ac_try" in
23686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23687 *) ac_try_echo=$ac_try;;
23688 esac
23689 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23690 (eval "$ac_link") 2>conftest.er1
23691 ac_status=$?
23692 grep -v '^ *+' conftest.er1 >conftest.err
23693 rm -f conftest.er1
23694 cat conftest.err >&5
23695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23696 (exit $ac_status); } && {
23697 test -z "$ac_c_werror_flag" ||
23698 test ! -s conftest.err
23699 } && test -s conftest$ac_exeext &&
23700 $as_test_x conftest$ac_exeext; then
23701 ac_cv_lib_readline_rl_callback_handler_install=yes
23702 else
23703 echo "$as_me: failed program was:" >&5
23704 sed 's/^/| /' conftest.$ac_ext >&5
23706 ac_cv_lib_readline_rl_callback_handler_install=no
23709 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23710 conftest$ac_exeext conftest.$ac_ext
23711 LIBS=$ac_check_lib_save_LIBS
23713 { echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_callback_handler_install" >&5
23714 echo "${ECHO_T}$ac_cv_lib_readline_rl_callback_handler_install" >&6; }
23715 if test $ac_cv_lib_readline_rl_callback_handler_install = yes; then
23717 cat >>confdefs.h <<\_ACEOF
23718 #define HAVE_RL_CALLBACK 1
23719 _ACEOF
23724 # check for readline 2.2
23725 cat >conftest.$ac_ext <<_ACEOF
23726 /* confdefs.h. */
23727 _ACEOF
23728 cat confdefs.h >>conftest.$ac_ext
23729 cat >>conftest.$ac_ext <<_ACEOF
23730 /* end confdefs.h. */
23731 #include <readline/readline.h>
23732 _ACEOF
23733 if { (ac_try="$ac_cpp conftest.$ac_ext"
23734 case "(($ac_try" in
23735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23736 *) ac_try_echo=$ac_try;;
23737 esac
23738 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23739 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23740 ac_status=$?
23741 grep -v '^ *+' conftest.er1 >conftest.err
23742 rm -f conftest.er1
23743 cat conftest.err >&5
23744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23745 (exit $ac_status); } >/dev/null && {
23746 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23747 test ! -s conftest.err
23748 }; then
23749 have_readline=yes
23750 else
23751 echo "$as_me: failed program was:" >&5
23752 sed 's/^/| /' conftest.$ac_ext >&5
23754 have_readline=no
23757 rm -f conftest.err conftest.$ac_ext
23758 if test $have_readline = yes
23759 then
23760 cat >conftest.$ac_ext <<_ACEOF
23761 /* confdefs.h. */
23762 _ACEOF
23763 cat confdefs.h >>conftest.$ac_ext
23764 cat >>conftest.$ac_ext <<_ACEOF
23765 /* end confdefs.h. */
23766 #include <readline/readline.h>
23768 _ACEOF
23769 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23770 $EGREP "extern int rl_completion_append_character;" >/dev/null 2>&1; then
23772 cat >>confdefs.h <<\_ACEOF
23773 #define HAVE_RL_COMPLETION_APPEND_CHARACTER 1
23774 _ACEOF
23777 rm -f conftest*
23781 # check for readline 4.0
23782 { echo "$as_me:$LINENO: checking for rl_pre_input_hook in -lreadline" >&5
23783 echo $ECHO_N "checking for rl_pre_input_hook in -lreadline... $ECHO_C" >&6; }
23784 if test "${ac_cv_lib_readline_rl_pre_input_hook+set}" = set; then
23785 echo $ECHO_N "(cached) $ECHO_C" >&6
23786 else
23787 ac_check_lib_save_LIBS=$LIBS
23788 LIBS="-lreadline $READLINE_LIBS $LIBS"
23789 cat >conftest.$ac_ext <<_ACEOF
23790 /* confdefs.h. */
23791 _ACEOF
23792 cat confdefs.h >>conftest.$ac_ext
23793 cat >>conftest.$ac_ext <<_ACEOF
23794 /* end confdefs.h. */
23796 /* Override any GCC internal prototype to avoid an error.
23797 Use char because int might match the return type of a GCC
23798 builtin and then its argument prototype would still apply. */
23799 #ifdef __cplusplus
23800 extern "C"
23801 #endif
23802 char rl_pre_input_hook ();
23804 main ()
23806 return rl_pre_input_hook ();
23808 return 0;
23810 _ACEOF
23811 rm -f conftest.$ac_objext conftest$ac_exeext
23812 if { (ac_try="$ac_link"
23813 case "(($ac_try" in
23814 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23815 *) ac_try_echo=$ac_try;;
23816 esac
23817 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23818 (eval "$ac_link") 2>conftest.er1
23819 ac_status=$?
23820 grep -v '^ *+' conftest.er1 >conftest.err
23821 rm -f conftest.er1
23822 cat conftest.err >&5
23823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23824 (exit $ac_status); } && {
23825 test -z "$ac_c_werror_flag" ||
23826 test ! -s conftest.err
23827 } && test -s conftest$ac_exeext &&
23828 $as_test_x conftest$ac_exeext; then
23829 ac_cv_lib_readline_rl_pre_input_hook=yes
23830 else
23831 echo "$as_me: failed program was:" >&5
23832 sed 's/^/| /' conftest.$ac_ext >&5
23834 ac_cv_lib_readline_rl_pre_input_hook=no
23837 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23838 conftest$ac_exeext conftest.$ac_ext
23839 LIBS=$ac_check_lib_save_LIBS
23841 { echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_pre_input_hook" >&5
23842 echo "${ECHO_T}$ac_cv_lib_readline_rl_pre_input_hook" >&6; }
23843 if test $ac_cv_lib_readline_rl_pre_input_hook = yes; then
23845 cat >>confdefs.h <<\_ACEOF
23846 #define HAVE_RL_PRE_INPUT_HOOK 1
23847 _ACEOF
23852 # also in 4.0
23853 { echo "$as_me:$LINENO: checking for rl_completion_display_matches_hook in -lreadline" >&5
23854 echo $ECHO_N "checking for rl_completion_display_matches_hook in -lreadline... $ECHO_C" >&6; }
23855 if test "${ac_cv_lib_readline_rl_completion_display_matches_hook+set}" = set; then
23856 echo $ECHO_N "(cached) $ECHO_C" >&6
23857 else
23858 ac_check_lib_save_LIBS=$LIBS
23859 LIBS="-lreadline $READLINE_LIBS $LIBS"
23860 cat >conftest.$ac_ext <<_ACEOF
23861 /* confdefs.h. */
23862 _ACEOF
23863 cat confdefs.h >>conftest.$ac_ext
23864 cat >>conftest.$ac_ext <<_ACEOF
23865 /* end confdefs.h. */
23867 /* Override any GCC internal prototype to avoid an error.
23868 Use char because int might match the return type of a GCC
23869 builtin and then its argument prototype would still apply. */
23870 #ifdef __cplusplus
23871 extern "C"
23872 #endif
23873 char rl_completion_display_matches_hook ();
23875 main ()
23877 return rl_completion_display_matches_hook ();
23879 return 0;
23881 _ACEOF
23882 rm -f conftest.$ac_objext conftest$ac_exeext
23883 if { (ac_try="$ac_link"
23884 case "(($ac_try" in
23885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23886 *) ac_try_echo=$ac_try;;
23887 esac
23888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23889 (eval "$ac_link") 2>conftest.er1
23890 ac_status=$?
23891 grep -v '^ *+' conftest.er1 >conftest.err
23892 rm -f conftest.er1
23893 cat conftest.err >&5
23894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23895 (exit $ac_status); } && {
23896 test -z "$ac_c_werror_flag" ||
23897 test ! -s conftest.err
23898 } && test -s conftest$ac_exeext &&
23899 $as_test_x conftest$ac_exeext; then
23900 ac_cv_lib_readline_rl_completion_display_matches_hook=yes
23901 else
23902 echo "$as_me: failed program was:" >&5
23903 sed 's/^/| /' conftest.$ac_ext >&5
23905 ac_cv_lib_readline_rl_completion_display_matches_hook=no
23908 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23909 conftest$ac_exeext conftest.$ac_ext
23910 LIBS=$ac_check_lib_save_LIBS
23912 { echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_completion_display_matches_hook" >&5
23913 echo "${ECHO_T}$ac_cv_lib_readline_rl_completion_display_matches_hook" >&6; }
23914 if test $ac_cv_lib_readline_rl_completion_display_matches_hook = yes; then
23916 cat >>confdefs.h <<\_ACEOF
23917 #define HAVE_RL_COMPLETION_DISPLAY_MATCHES_HOOK 1
23918 _ACEOF
23923 # check for readline 4.2
23924 { echo "$as_me:$LINENO: checking for rl_completion_matches in -lreadline" >&5
23925 echo $ECHO_N "checking for rl_completion_matches in -lreadline... $ECHO_C" >&6; }
23926 if test "${ac_cv_lib_readline_rl_completion_matches+set}" = set; then
23927 echo $ECHO_N "(cached) $ECHO_C" >&6
23928 else
23929 ac_check_lib_save_LIBS=$LIBS
23930 LIBS="-lreadline $READLINE_LIBS $LIBS"
23931 cat >conftest.$ac_ext <<_ACEOF
23932 /* confdefs.h. */
23933 _ACEOF
23934 cat confdefs.h >>conftest.$ac_ext
23935 cat >>conftest.$ac_ext <<_ACEOF
23936 /* end confdefs.h. */
23938 /* Override any GCC internal prototype to avoid an error.
23939 Use char because int might match the return type of a GCC
23940 builtin and then its argument prototype would still apply. */
23941 #ifdef __cplusplus
23942 extern "C"
23943 #endif
23944 char rl_completion_matches ();
23946 main ()
23948 return rl_completion_matches ();
23950 return 0;
23952 _ACEOF
23953 rm -f conftest.$ac_objext conftest$ac_exeext
23954 if { (ac_try="$ac_link"
23955 case "(($ac_try" in
23956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23957 *) ac_try_echo=$ac_try;;
23958 esac
23959 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23960 (eval "$ac_link") 2>conftest.er1
23961 ac_status=$?
23962 grep -v '^ *+' conftest.er1 >conftest.err
23963 rm -f conftest.er1
23964 cat conftest.err >&5
23965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23966 (exit $ac_status); } && {
23967 test -z "$ac_c_werror_flag" ||
23968 test ! -s conftest.err
23969 } && test -s conftest$ac_exeext &&
23970 $as_test_x conftest$ac_exeext; then
23971 ac_cv_lib_readline_rl_completion_matches=yes
23972 else
23973 echo "$as_me: failed program was:" >&5
23974 sed 's/^/| /' conftest.$ac_ext >&5
23976 ac_cv_lib_readline_rl_completion_matches=no
23979 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23980 conftest$ac_exeext conftest.$ac_ext
23981 LIBS=$ac_check_lib_save_LIBS
23983 { echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_completion_matches" >&5
23984 echo "${ECHO_T}$ac_cv_lib_readline_rl_completion_matches" >&6; }
23985 if test $ac_cv_lib_readline_rl_completion_matches = yes; then
23987 cat >>confdefs.h <<\_ACEOF
23988 #define HAVE_RL_COMPLETION_MATCHES 1
23989 _ACEOF
23994 # also in readline 4.2
23995 cat >conftest.$ac_ext <<_ACEOF
23996 /* confdefs.h. */
23997 _ACEOF
23998 cat confdefs.h >>conftest.$ac_ext
23999 cat >>conftest.$ac_ext <<_ACEOF
24000 /* end confdefs.h. */
24001 #include <readline/readline.h>
24002 _ACEOF
24003 if { (ac_try="$ac_cpp conftest.$ac_ext"
24004 case "(($ac_try" in
24005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24006 *) ac_try_echo=$ac_try;;
24007 esac
24008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24009 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24010 ac_status=$?
24011 grep -v '^ *+' conftest.er1 >conftest.err
24012 rm -f conftest.er1
24013 cat conftest.err >&5
24014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24015 (exit $ac_status); } >/dev/null && {
24016 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24017 test ! -s conftest.err
24018 }; then
24019 have_readline=yes
24020 else
24021 echo "$as_me: failed program was:" >&5
24022 sed 's/^/| /' conftest.$ac_ext >&5
24024 have_readline=no
24027 rm -f conftest.err conftest.$ac_ext
24028 if test $have_readline = yes
24029 then
24030 cat >conftest.$ac_ext <<_ACEOF
24031 /* confdefs.h. */
24032 _ACEOF
24033 cat confdefs.h >>conftest.$ac_ext
24034 cat >>conftest.$ac_ext <<_ACEOF
24035 /* end confdefs.h. */
24036 #include <readline/readline.h>
24038 _ACEOF
24039 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24040 $EGREP "extern int rl_catch_signals;" >/dev/null 2>&1; then
24042 cat >>confdefs.h <<\_ACEOF
24043 #define HAVE_RL_CATCH_SIGNAL 1
24044 _ACEOF
24047 rm -f conftest*
24051 # End of readline checks: restore LIBS
24052 LIBS=$LIBS_no_readline
24054 { echo "$as_me:$LINENO: checking for broken nice()" >&5
24055 echo $ECHO_N "checking for broken nice()... $ECHO_C" >&6; }
24056 if test "${ac_cv_broken_nice+set}" = set; then
24057 echo $ECHO_N "(cached) $ECHO_C" >&6
24058 else
24060 if test "$cross_compiling" = yes; then
24061 ac_cv_broken_nice=no
24062 else
24063 cat >conftest.$ac_ext <<_ACEOF
24064 /* confdefs.h. */
24065 _ACEOF
24066 cat confdefs.h >>conftest.$ac_ext
24067 cat >>conftest.$ac_ext <<_ACEOF
24068 /* end confdefs.h. */
24070 int main()
24072 int val1 = nice(1);
24073 if (val1 != -1 && val1 == nice(2))
24074 exit(0);
24075 exit(1);
24078 _ACEOF
24079 rm -f conftest$ac_exeext
24080 if { (ac_try="$ac_link"
24081 case "(($ac_try" in
24082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24083 *) ac_try_echo=$ac_try;;
24084 esac
24085 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24086 (eval "$ac_link") 2>&5
24087 ac_status=$?
24088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24089 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24090 { (case "(($ac_try" in
24091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24092 *) ac_try_echo=$ac_try;;
24093 esac
24094 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24095 (eval "$ac_try") 2>&5
24096 ac_status=$?
24097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24098 (exit $ac_status); }; }; then
24099 ac_cv_broken_nice=yes
24100 else
24101 echo "$as_me: program exited with status $ac_status" >&5
24102 echo "$as_me: failed program was:" >&5
24103 sed 's/^/| /' conftest.$ac_ext >&5
24105 ( exit $ac_status )
24106 ac_cv_broken_nice=no
24108 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24114 { echo "$as_me:$LINENO: result: $ac_cv_broken_nice" >&5
24115 echo "${ECHO_T}$ac_cv_broken_nice" >&6; }
24116 if test "$ac_cv_broken_nice" = yes
24117 then
24119 cat >>confdefs.h <<\_ACEOF
24120 #define HAVE_BROKEN_NICE 1
24121 _ACEOF
24125 { echo "$as_me:$LINENO: checking for broken poll()" >&5
24126 echo $ECHO_N "checking for broken poll()... $ECHO_C" >&6; }
24127 if test "$cross_compiling" = yes; then
24128 ac_cv_broken_poll=no
24129 else
24130 cat >conftest.$ac_ext <<_ACEOF
24131 /* confdefs.h. */
24132 _ACEOF
24133 cat confdefs.h >>conftest.$ac_ext
24134 cat >>conftest.$ac_ext <<_ACEOF
24135 /* end confdefs.h. */
24137 #include <poll.h>
24139 int main (void)
24141 struct pollfd poll_struct = { 42, POLLIN|POLLPRI|POLLOUT, 0 };
24143 close (42);
24145 int poll_test = poll (&poll_struct, 1, 0);
24147 if (poll_test < 0)
24149 exit(0);
24151 else if (poll_test == 0 && poll_struct.revents != POLLNVAL)
24153 exit(0);
24155 else
24157 exit(1);
24161 _ACEOF
24162 rm -f conftest$ac_exeext
24163 if { (ac_try="$ac_link"
24164 case "(($ac_try" in
24165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24166 *) ac_try_echo=$ac_try;;
24167 esac
24168 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24169 (eval "$ac_link") 2>&5
24170 ac_status=$?
24171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24172 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24173 { (case "(($ac_try" in
24174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24175 *) ac_try_echo=$ac_try;;
24176 esac
24177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24178 (eval "$ac_try") 2>&5
24179 ac_status=$?
24180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24181 (exit $ac_status); }; }; then
24182 ac_cv_broken_poll=yes
24183 else
24184 echo "$as_me: program exited with status $ac_status" >&5
24185 echo "$as_me: failed program was:" >&5
24186 sed 's/^/| /' conftest.$ac_ext >&5
24188 ( exit $ac_status )
24189 ac_cv_broken_poll=no
24191 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24195 { echo "$as_me:$LINENO: result: $ac_cv_broken_poll" >&5
24196 echo "${ECHO_T}$ac_cv_broken_poll" >&6; }
24197 if test "$ac_cv_broken_poll" = yes
24198 then
24200 cat >>confdefs.h <<\_ACEOF
24201 #define HAVE_BROKEN_POLL 1
24202 _ACEOF
24206 # Before we can test tzset, we need to check if struct tm has a tm_zone
24207 # (which is not required by ISO C or UNIX spec) and/or if we support
24208 # tzname[]
24209 { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
24210 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
24211 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
24212 echo $ECHO_N "(cached) $ECHO_C" >&6
24213 else
24214 cat >conftest.$ac_ext <<_ACEOF
24215 /* confdefs.h. */
24216 _ACEOF
24217 cat confdefs.h >>conftest.$ac_ext
24218 cat >>conftest.$ac_ext <<_ACEOF
24219 /* end confdefs.h. */
24220 #include <sys/types.h>
24221 #include <$ac_cv_struct_tm>
24225 main ()
24227 static struct tm ac_aggr;
24228 if (ac_aggr.tm_zone)
24229 return 0;
24231 return 0;
24233 _ACEOF
24234 rm -f conftest.$ac_objext
24235 if { (ac_try="$ac_compile"
24236 case "(($ac_try" in
24237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24238 *) ac_try_echo=$ac_try;;
24239 esac
24240 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24241 (eval "$ac_compile") 2>conftest.er1
24242 ac_status=$?
24243 grep -v '^ *+' conftest.er1 >conftest.err
24244 rm -f conftest.er1
24245 cat conftest.err >&5
24246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24247 (exit $ac_status); } && {
24248 test -z "$ac_c_werror_flag" ||
24249 test ! -s conftest.err
24250 } && test -s conftest.$ac_objext; then
24251 ac_cv_member_struct_tm_tm_zone=yes
24252 else
24253 echo "$as_me: failed program was:" >&5
24254 sed 's/^/| /' conftest.$ac_ext >&5
24256 cat >conftest.$ac_ext <<_ACEOF
24257 /* confdefs.h. */
24258 _ACEOF
24259 cat confdefs.h >>conftest.$ac_ext
24260 cat >>conftest.$ac_ext <<_ACEOF
24261 /* end confdefs.h. */
24262 #include <sys/types.h>
24263 #include <$ac_cv_struct_tm>
24267 main ()
24269 static struct tm ac_aggr;
24270 if (sizeof ac_aggr.tm_zone)
24271 return 0;
24273 return 0;
24275 _ACEOF
24276 rm -f conftest.$ac_objext
24277 if { (ac_try="$ac_compile"
24278 case "(($ac_try" in
24279 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24280 *) ac_try_echo=$ac_try;;
24281 esac
24282 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24283 (eval "$ac_compile") 2>conftest.er1
24284 ac_status=$?
24285 grep -v '^ *+' conftest.er1 >conftest.err
24286 rm -f conftest.er1
24287 cat conftest.err >&5
24288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24289 (exit $ac_status); } && {
24290 test -z "$ac_c_werror_flag" ||
24291 test ! -s conftest.err
24292 } && test -s conftest.$ac_objext; then
24293 ac_cv_member_struct_tm_tm_zone=yes
24294 else
24295 echo "$as_me: failed program was:" >&5
24296 sed 's/^/| /' conftest.$ac_ext >&5
24298 ac_cv_member_struct_tm_tm_zone=no
24301 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24304 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24306 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
24307 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
24308 if test $ac_cv_member_struct_tm_tm_zone = yes; then
24310 cat >>confdefs.h <<_ACEOF
24311 #define HAVE_STRUCT_TM_TM_ZONE 1
24312 _ACEOF
24317 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
24319 cat >>confdefs.h <<\_ACEOF
24320 #define HAVE_TM_ZONE 1
24321 _ACEOF
24323 else
24324 { echo "$as_me:$LINENO: checking whether tzname is declared" >&5
24325 echo $ECHO_N "checking whether tzname is declared... $ECHO_C" >&6; }
24326 if test "${ac_cv_have_decl_tzname+set}" = set; then
24327 echo $ECHO_N "(cached) $ECHO_C" >&6
24328 else
24329 cat >conftest.$ac_ext <<_ACEOF
24330 /* confdefs.h. */
24331 _ACEOF
24332 cat confdefs.h >>conftest.$ac_ext
24333 cat >>conftest.$ac_ext <<_ACEOF
24334 /* end confdefs.h. */
24335 #include <time.h>
24338 main ()
24340 #ifndef tzname
24341 (void) tzname;
24342 #endif
24345 return 0;
24347 _ACEOF
24348 rm -f conftest.$ac_objext
24349 if { (ac_try="$ac_compile"
24350 case "(($ac_try" in
24351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24352 *) ac_try_echo=$ac_try;;
24353 esac
24354 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24355 (eval "$ac_compile") 2>conftest.er1
24356 ac_status=$?
24357 grep -v '^ *+' conftest.er1 >conftest.err
24358 rm -f conftest.er1
24359 cat conftest.err >&5
24360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24361 (exit $ac_status); } && {
24362 test -z "$ac_c_werror_flag" ||
24363 test ! -s conftest.err
24364 } && test -s conftest.$ac_objext; then
24365 ac_cv_have_decl_tzname=yes
24366 else
24367 echo "$as_me: failed program was:" >&5
24368 sed 's/^/| /' conftest.$ac_ext >&5
24370 ac_cv_have_decl_tzname=no
24373 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24375 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
24376 echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; }
24377 if test $ac_cv_have_decl_tzname = yes; then
24379 cat >>confdefs.h <<_ACEOF
24380 #define HAVE_DECL_TZNAME 1
24381 _ACEOF
24384 else
24385 cat >>confdefs.h <<_ACEOF
24386 #define HAVE_DECL_TZNAME 0
24387 _ACEOF
24393 { echo "$as_me:$LINENO: checking for tzname" >&5
24394 echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
24395 if test "${ac_cv_var_tzname+set}" = set; then
24396 echo $ECHO_N "(cached) $ECHO_C" >&6
24397 else
24398 cat >conftest.$ac_ext <<_ACEOF
24399 /* confdefs.h. */
24400 _ACEOF
24401 cat confdefs.h >>conftest.$ac_ext
24402 cat >>conftest.$ac_ext <<_ACEOF
24403 /* end confdefs.h. */
24404 #include <time.h>
24405 #if !HAVE_DECL_TZNAME
24406 extern char *tzname[];
24407 #endif
24410 main ()
24412 return tzname[0][0];
24414 return 0;
24416 _ACEOF
24417 rm -f conftest.$ac_objext conftest$ac_exeext
24418 if { (ac_try="$ac_link"
24419 case "(($ac_try" in
24420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24421 *) ac_try_echo=$ac_try;;
24422 esac
24423 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24424 (eval "$ac_link") 2>conftest.er1
24425 ac_status=$?
24426 grep -v '^ *+' conftest.er1 >conftest.err
24427 rm -f conftest.er1
24428 cat conftest.err >&5
24429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24430 (exit $ac_status); } && {
24431 test -z "$ac_c_werror_flag" ||
24432 test ! -s conftest.err
24433 } && test -s conftest$ac_exeext &&
24434 $as_test_x conftest$ac_exeext; then
24435 ac_cv_var_tzname=yes
24436 else
24437 echo "$as_me: failed program was:" >&5
24438 sed 's/^/| /' conftest.$ac_ext >&5
24440 ac_cv_var_tzname=no
24443 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24444 conftest$ac_exeext conftest.$ac_ext
24446 { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
24447 echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
24448 if test $ac_cv_var_tzname = yes; then
24450 cat >>confdefs.h <<\_ACEOF
24451 #define HAVE_TZNAME 1
24452 _ACEOF
24458 # check tzset(3) exists and works like we expect it to
24459 { echo "$as_me:$LINENO: checking for working tzset()" >&5
24460 echo $ECHO_N "checking for working tzset()... $ECHO_C" >&6; }
24461 if test "${ac_cv_working_tzset+set}" = set; then
24462 echo $ECHO_N "(cached) $ECHO_C" >&6
24463 else
24465 if test "$cross_compiling" = yes; then
24466 ac_cv_working_tzset=no
24467 else
24468 cat >conftest.$ac_ext <<_ACEOF
24469 /* confdefs.h. */
24470 _ACEOF
24471 cat confdefs.h >>conftest.$ac_ext
24472 cat >>conftest.$ac_ext <<_ACEOF
24473 /* end confdefs.h. */
24475 #include <stdlib.h>
24476 #include <time.h>
24477 #include <string.h>
24479 #if HAVE_TZNAME
24480 extern char *tzname[];
24481 #endif
24483 int main()
24485 /* Note that we need to ensure that not only does tzset(3)
24486 do 'something' with localtime, but it works as documented
24487 in the library reference and as expected by the test suite.
24488 This includes making sure that tzname is set properly if
24489 tm->tm_zone does not exist since it is the alternative way
24490 of getting timezone info.
24492 Red Hat 6.2 doesn't understand the southern hemisphere
24493 after New Year's Day.
24496 time_t groundhogday = 1044144000; /* GMT-based */
24497 time_t midyear = groundhogday + (365 * 24 * 3600 / 2);
24499 putenv("TZ=UTC+0");
24500 tzset();
24501 if (localtime(&groundhogday)->tm_hour != 0)
24502 exit(1);
24503 #if HAVE_TZNAME
24504 /* For UTC, tzname[1] is sometimes "", sometimes " " */
24505 if (strcmp(tzname[0], "UTC") ||
24506 (tzname[1][0] != 0 && tzname[1][0] != ' '))
24507 exit(1);
24508 #endif
24510 putenv("TZ=EST+5EDT,M4.1.0,M10.5.0");
24511 tzset();
24512 if (localtime(&groundhogday)->tm_hour != 19)
24513 exit(1);
24514 #if HAVE_TZNAME
24515 if (strcmp(tzname[0], "EST") || strcmp(tzname[1], "EDT"))
24516 exit(1);
24517 #endif
24519 putenv("TZ=AEST-10AEDT-11,M10.5.0,M3.5.0");
24520 tzset();
24521 if (localtime(&groundhogday)->tm_hour != 11)
24522 exit(1);
24523 #if HAVE_TZNAME
24524 if (strcmp(tzname[0], "AEST") || strcmp(tzname[1], "AEDT"))
24525 exit(1);
24526 #endif
24528 #if HAVE_STRUCT_TM_TM_ZONE
24529 if (strcmp(localtime(&groundhogday)->tm_zone, "AEDT"))
24530 exit(1);
24531 if (strcmp(localtime(&midyear)->tm_zone, "AEST"))
24532 exit(1);
24533 #endif
24535 exit(0);
24538 _ACEOF
24539 rm -f conftest$ac_exeext
24540 if { (ac_try="$ac_link"
24541 case "(($ac_try" in
24542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24543 *) ac_try_echo=$ac_try;;
24544 esac
24545 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24546 (eval "$ac_link") 2>&5
24547 ac_status=$?
24548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24549 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24550 { (case "(($ac_try" in
24551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24552 *) ac_try_echo=$ac_try;;
24553 esac
24554 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24555 (eval "$ac_try") 2>&5
24556 ac_status=$?
24557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24558 (exit $ac_status); }; }; then
24559 ac_cv_working_tzset=yes
24560 else
24561 echo "$as_me: program exited with status $ac_status" >&5
24562 echo "$as_me: failed program was:" >&5
24563 sed 's/^/| /' conftest.$ac_ext >&5
24565 ( exit $ac_status )
24566 ac_cv_working_tzset=no
24568 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24574 { echo "$as_me:$LINENO: result: $ac_cv_working_tzset" >&5
24575 echo "${ECHO_T}$ac_cv_working_tzset" >&6; }
24576 if test "$ac_cv_working_tzset" = yes
24577 then
24579 cat >>confdefs.h <<\_ACEOF
24580 #define HAVE_WORKING_TZSET 1
24581 _ACEOF
24585 # Look for subsecond timestamps in struct stat
24586 { echo "$as_me:$LINENO: checking for tv_nsec in struct stat" >&5
24587 echo $ECHO_N "checking for tv_nsec in struct stat... $ECHO_C" >&6; }
24588 if test "${ac_cv_stat_tv_nsec+set}" = set; then
24589 echo $ECHO_N "(cached) $ECHO_C" >&6
24590 else
24591 cat >conftest.$ac_ext <<_ACEOF
24592 /* confdefs.h. */
24593 _ACEOF
24594 cat confdefs.h >>conftest.$ac_ext
24595 cat >>conftest.$ac_ext <<_ACEOF
24596 /* end confdefs.h. */
24597 #include <sys/stat.h>
24599 main ()
24602 struct stat st;
24603 st.st_mtim.tv_nsec = 1;
24606 return 0;
24608 _ACEOF
24609 rm -f conftest.$ac_objext
24610 if { (ac_try="$ac_compile"
24611 case "(($ac_try" in
24612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24613 *) ac_try_echo=$ac_try;;
24614 esac
24615 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24616 (eval "$ac_compile") 2>conftest.er1
24617 ac_status=$?
24618 grep -v '^ *+' conftest.er1 >conftest.err
24619 rm -f conftest.er1
24620 cat conftest.err >&5
24621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24622 (exit $ac_status); } && {
24623 test -z "$ac_c_werror_flag" ||
24624 test ! -s conftest.err
24625 } && test -s conftest.$ac_objext; then
24626 ac_cv_stat_tv_nsec=yes
24627 else
24628 echo "$as_me: failed program was:" >&5
24629 sed 's/^/| /' conftest.$ac_ext >&5
24631 ac_cv_stat_tv_nsec=no
24634 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24637 { echo "$as_me:$LINENO: result: $ac_cv_stat_tv_nsec" >&5
24638 echo "${ECHO_T}$ac_cv_stat_tv_nsec" >&6; }
24639 if test "$ac_cv_stat_tv_nsec" = yes
24640 then
24642 cat >>confdefs.h <<\_ACEOF
24643 #define HAVE_STAT_TV_NSEC 1
24644 _ACEOF
24648 # Look for BSD style subsecond timestamps in struct stat
24649 { echo "$as_me:$LINENO: checking for tv_nsec2 in struct stat" >&5
24650 echo $ECHO_N "checking for tv_nsec2 in struct stat... $ECHO_C" >&6; }
24651 if test "${ac_cv_stat_tv_nsec2+set}" = set; then
24652 echo $ECHO_N "(cached) $ECHO_C" >&6
24653 else
24654 cat >conftest.$ac_ext <<_ACEOF
24655 /* confdefs.h. */
24656 _ACEOF
24657 cat confdefs.h >>conftest.$ac_ext
24658 cat >>conftest.$ac_ext <<_ACEOF
24659 /* end confdefs.h. */
24660 #include <sys/stat.h>
24662 main ()
24665 struct stat st;
24666 st.st_mtimespec.tv_nsec = 1;
24669 return 0;
24671 _ACEOF
24672 rm -f conftest.$ac_objext
24673 if { (ac_try="$ac_compile"
24674 case "(($ac_try" in
24675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24676 *) ac_try_echo=$ac_try;;
24677 esac
24678 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24679 (eval "$ac_compile") 2>conftest.er1
24680 ac_status=$?
24681 grep -v '^ *+' conftest.er1 >conftest.err
24682 rm -f conftest.er1
24683 cat conftest.err >&5
24684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24685 (exit $ac_status); } && {
24686 test -z "$ac_c_werror_flag" ||
24687 test ! -s conftest.err
24688 } && test -s conftest.$ac_objext; then
24689 ac_cv_stat_tv_nsec2=yes
24690 else
24691 echo "$as_me: failed program was:" >&5
24692 sed 's/^/| /' conftest.$ac_ext >&5
24694 ac_cv_stat_tv_nsec2=no
24697 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24700 { echo "$as_me:$LINENO: result: $ac_cv_stat_tv_nsec2" >&5
24701 echo "${ECHO_T}$ac_cv_stat_tv_nsec2" >&6; }
24702 if test "$ac_cv_stat_tv_nsec2" = yes
24703 then
24705 cat >>confdefs.h <<\_ACEOF
24706 #define HAVE_STAT_TV_NSEC2 1
24707 _ACEOF
24711 # On HP/UX 11.0, mvwdelch is a block with a return statement
24712 { echo "$as_me:$LINENO: checking whether mvwdelch is an expression" >&5
24713 echo $ECHO_N "checking whether mvwdelch is an expression... $ECHO_C" >&6; }
24714 if test "${ac_cv_mvwdelch_is_expression+set}" = set; then
24715 echo $ECHO_N "(cached) $ECHO_C" >&6
24716 else
24717 cat >conftest.$ac_ext <<_ACEOF
24718 /* confdefs.h. */
24719 _ACEOF
24720 cat confdefs.h >>conftest.$ac_ext
24721 cat >>conftest.$ac_ext <<_ACEOF
24722 /* end confdefs.h. */
24723 #include <curses.h>
24725 main ()
24728 int rtn;
24729 rtn = mvwdelch(0,0,0);
24732 return 0;
24734 _ACEOF
24735 rm -f conftest.$ac_objext
24736 if { (ac_try="$ac_compile"
24737 case "(($ac_try" in
24738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24739 *) ac_try_echo=$ac_try;;
24740 esac
24741 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24742 (eval "$ac_compile") 2>conftest.er1
24743 ac_status=$?
24744 grep -v '^ *+' conftest.er1 >conftest.err
24745 rm -f conftest.er1
24746 cat conftest.err >&5
24747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24748 (exit $ac_status); } && {
24749 test -z "$ac_c_werror_flag" ||
24750 test ! -s conftest.err
24751 } && test -s conftest.$ac_objext; then
24752 ac_cv_mvwdelch_is_expression=yes
24753 else
24754 echo "$as_me: failed program was:" >&5
24755 sed 's/^/| /' conftest.$ac_ext >&5
24757 ac_cv_mvwdelch_is_expression=no
24760 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24763 { echo "$as_me:$LINENO: result: $ac_cv_mvwdelch_is_expression" >&5
24764 echo "${ECHO_T}$ac_cv_mvwdelch_is_expression" >&6; }
24766 if test "$ac_cv_mvwdelch_is_expression" = yes
24767 then
24769 cat >>confdefs.h <<\_ACEOF
24770 #define MVWDELCH_IS_EXPRESSION 1
24771 _ACEOF
24775 { echo "$as_me:$LINENO: checking whether WINDOW has _flags" >&5
24776 echo $ECHO_N "checking whether WINDOW has _flags... $ECHO_C" >&6; }
24777 if test "${ac_cv_window_has_flags+set}" = set; then
24778 echo $ECHO_N "(cached) $ECHO_C" >&6
24779 else
24780 cat >conftest.$ac_ext <<_ACEOF
24781 /* confdefs.h. */
24782 _ACEOF
24783 cat confdefs.h >>conftest.$ac_ext
24784 cat >>conftest.$ac_ext <<_ACEOF
24785 /* end confdefs.h. */
24786 #include <curses.h>
24788 main ()
24791 WINDOW *w;
24792 w->_flags = 0;
24795 return 0;
24797 _ACEOF
24798 rm -f conftest.$ac_objext
24799 if { (ac_try="$ac_compile"
24800 case "(($ac_try" in
24801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24802 *) ac_try_echo=$ac_try;;
24803 esac
24804 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24805 (eval "$ac_compile") 2>conftest.er1
24806 ac_status=$?
24807 grep -v '^ *+' conftest.er1 >conftest.err
24808 rm -f conftest.er1
24809 cat conftest.err >&5
24810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24811 (exit $ac_status); } && {
24812 test -z "$ac_c_werror_flag" ||
24813 test ! -s conftest.err
24814 } && test -s conftest.$ac_objext; then
24815 ac_cv_window_has_flags=yes
24816 else
24817 echo "$as_me: failed program was:" >&5
24818 sed 's/^/| /' conftest.$ac_ext >&5
24820 ac_cv_window_has_flags=no
24823 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24826 { echo "$as_me:$LINENO: result: $ac_cv_window_has_flags" >&5
24827 echo "${ECHO_T}$ac_cv_window_has_flags" >&6; }
24830 if test "$ac_cv_window_has_flags" = yes
24831 then
24833 cat >>confdefs.h <<\_ACEOF
24834 #define WINDOW_HAS_FLAGS 1
24835 _ACEOF
24839 { echo "$as_me:$LINENO: checking for is_term_resized" >&5
24840 echo $ECHO_N "checking for is_term_resized... $ECHO_C" >&6; }
24841 cat >conftest.$ac_ext <<_ACEOF
24842 /* confdefs.h. */
24843 _ACEOF
24844 cat confdefs.h >>conftest.$ac_ext
24845 cat >>conftest.$ac_ext <<_ACEOF
24846 /* end confdefs.h. */
24847 #include <curses.h>
24849 main ()
24851 void *x=is_term_resized
24853 return 0;
24855 _ACEOF
24856 rm -f conftest.$ac_objext
24857 if { (ac_try="$ac_compile"
24858 case "(($ac_try" in
24859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24860 *) ac_try_echo=$ac_try;;
24861 esac
24862 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24863 (eval "$ac_compile") 2>conftest.er1
24864 ac_status=$?
24865 grep -v '^ *+' conftest.er1 >conftest.err
24866 rm -f conftest.er1
24867 cat conftest.err >&5
24868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24869 (exit $ac_status); } && {
24870 test -z "$ac_c_werror_flag" ||
24871 test ! -s conftest.err
24872 } && test -s conftest.$ac_objext; then
24874 cat >>confdefs.h <<\_ACEOF
24875 #define HAVE_CURSES_IS_TERM_RESIZED 1
24876 _ACEOF
24878 { echo "$as_me:$LINENO: result: yes" >&5
24879 echo "${ECHO_T}yes" >&6; }
24880 else
24881 echo "$as_me: failed program was:" >&5
24882 sed 's/^/| /' conftest.$ac_ext >&5
24884 { echo "$as_me:$LINENO: result: no" >&5
24885 echo "${ECHO_T}no" >&6; }
24889 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24891 { echo "$as_me:$LINENO: checking for resize_term" >&5
24892 echo $ECHO_N "checking for resize_term... $ECHO_C" >&6; }
24893 cat >conftest.$ac_ext <<_ACEOF
24894 /* confdefs.h. */
24895 _ACEOF
24896 cat confdefs.h >>conftest.$ac_ext
24897 cat >>conftest.$ac_ext <<_ACEOF
24898 /* end confdefs.h. */
24899 #include <curses.h>
24901 main ()
24903 void *x=resize_term
24905 return 0;
24907 _ACEOF
24908 rm -f conftest.$ac_objext
24909 if { (ac_try="$ac_compile"
24910 case "(($ac_try" in
24911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24912 *) ac_try_echo=$ac_try;;
24913 esac
24914 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24915 (eval "$ac_compile") 2>conftest.er1
24916 ac_status=$?
24917 grep -v '^ *+' conftest.er1 >conftest.err
24918 rm -f conftest.er1
24919 cat conftest.err >&5
24920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24921 (exit $ac_status); } && {
24922 test -z "$ac_c_werror_flag" ||
24923 test ! -s conftest.err
24924 } && test -s conftest.$ac_objext; then
24926 cat >>confdefs.h <<\_ACEOF
24927 #define HAVE_CURSES_RESIZE_TERM 1
24928 _ACEOF
24930 { echo "$as_me:$LINENO: result: yes" >&5
24931 echo "${ECHO_T}yes" >&6; }
24932 else
24933 echo "$as_me: failed program was:" >&5
24934 sed 's/^/| /' conftest.$ac_ext >&5
24936 { echo "$as_me:$LINENO: result: no" >&5
24937 echo "${ECHO_T}no" >&6; }
24941 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24943 { echo "$as_me:$LINENO: checking for resizeterm" >&5
24944 echo $ECHO_N "checking for resizeterm... $ECHO_C" >&6; }
24945 cat >conftest.$ac_ext <<_ACEOF
24946 /* confdefs.h. */
24947 _ACEOF
24948 cat confdefs.h >>conftest.$ac_ext
24949 cat >>conftest.$ac_ext <<_ACEOF
24950 /* end confdefs.h. */
24951 #include <curses.h>
24953 main ()
24955 void *x=resizeterm
24957 return 0;
24959 _ACEOF
24960 rm -f conftest.$ac_objext
24961 if { (ac_try="$ac_compile"
24962 case "(($ac_try" in
24963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24964 *) ac_try_echo=$ac_try;;
24965 esac
24966 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24967 (eval "$ac_compile") 2>conftest.er1
24968 ac_status=$?
24969 grep -v '^ *+' conftest.er1 >conftest.err
24970 rm -f conftest.er1
24971 cat conftest.err >&5
24972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24973 (exit $ac_status); } && {
24974 test -z "$ac_c_werror_flag" ||
24975 test ! -s conftest.err
24976 } && test -s conftest.$ac_objext; then
24978 cat >>confdefs.h <<\_ACEOF
24979 #define HAVE_CURSES_RESIZETERM 1
24980 _ACEOF
24982 { echo "$as_me:$LINENO: result: yes" >&5
24983 echo "${ECHO_T}yes" >&6; }
24984 else
24985 echo "$as_me: failed program was:" >&5
24986 sed 's/^/| /' conftest.$ac_ext >&5
24988 { echo "$as_me:$LINENO: result: no" >&5
24989 echo "${ECHO_T}no" >&6; }
24993 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24995 { echo "$as_me:$LINENO: checking for /dev/ptmx" >&5
24996 echo $ECHO_N "checking for /dev/ptmx... $ECHO_C" >&6; }
24998 if test -r /dev/ptmx
24999 then
25000 { echo "$as_me:$LINENO: result: yes" >&5
25001 echo "${ECHO_T}yes" >&6; }
25003 cat >>confdefs.h <<\_ACEOF
25004 #define HAVE_DEV_PTMX 1
25005 _ACEOF
25007 else
25008 { echo "$as_me:$LINENO: result: no" >&5
25009 echo "${ECHO_T}no" >&6; }
25012 { echo "$as_me:$LINENO: checking for /dev/ptc" >&5
25013 echo $ECHO_N "checking for /dev/ptc... $ECHO_C" >&6; }
25015 if test -r /dev/ptc
25016 then
25017 { echo "$as_me:$LINENO: result: yes" >&5
25018 echo "${ECHO_T}yes" >&6; }
25020 cat >>confdefs.h <<\_ACEOF
25021 #define HAVE_DEV_PTC 1
25022 _ACEOF
25024 else
25025 { echo "$as_me:$LINENO: result: no" >&5
25026 echo "${ECHO_T}no" >&6; }
25029 { echo "$as_me:$LINENO: checking for %zd printf() format support" >&5
25030 echo $ECHO_N "checking for %zd printf() format support... $ECHO_C" >&6; }
25031 if test "$cross_compiling" = yes; then
25032 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
25033 See \`config.log' for more details." >&5
25034 echo "$as_me: error: cannot run test program while cross compiling
25035 See \`config.log' for more details." >&2;}
25036 { (exit 1); exit 1; }; }
25037 else
25038 cat >conftest.$ac_ext <<_ACEOF
25039 /* confdefs.h. */
25040 _ACEOF
25041 cat confdefs.h >>conftest.$ac_ext
25042 cat >>conftest.$ac_ext <<_ACEOF
25043 /* end confdefs.h. */
25044 #include <stdio.h>
25045 #include <stddef.h>
25046 #include <string.h>
25048 #ifdef HAVE_SYS_TYPES_H
25049 #include <sys/types.h>
25050 #endif
25052 #ifdef HAVE_SSIZE_T
25053 typedef ssize_t Py_ssize_t;
25054 #elif SIZEOF_VOID_P == SIZEOF_LONG
25055 typedef long Py_ssize_t;
25056 #else
25057 typedef int Py_ssize_t;
25058 #endif
25060 int main()
25062 char buffer[256];
25064 if(sprintf(buffer, "%zd", (size_t)123) < 0)
25065 return 1;
25067 if (strcmp(buffer, "123"))
25068 return 1;
25070 if (sprintf(buffer, "%zd", (Py_ssize_t)-123) < 0)
25071 return 1;
25073 if (strcmp(buffer, "-123"))
25074 return 1;
25076 return 0;
25078 _ACEOF
25079 rm -f conftest$ac_exeext
25080 if { (ac_try="$ac_link"
25081 case "(($ac_try" in
25082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25083 *) ac_try_echo=$ac_try;;
25084 esac
25085 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25086 (eval "$ac_link") 2>&5
25087 ac_status=$?
25088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25089 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25090 { (case "(($ac_try" in
25091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25092 *) ac_try_echo=$ac_try;;
25093 esac
25094 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25095 (eval "$ac_try") 2>&5
25096 ac_status=$?
25097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25098 (exit $ac_status); }; }; then
25099 { echo "$as_me:$LINENO: result: yes" >&5
25100 echo "${ECHO_T}yes" >&6; }
25102 cat >>confdefs.h <<\_ACEOF
25103 #define PY_FORMAT_SIZE_T "z"
25104 _ACEOF
25106 else
25107 echo "$as_me: program exited with status $ac_status" >&5
25108 echo "$as_me: failed program was:" >&5
25109 sed 's/^/| /' conftest.$ac_ext >&5
25111 ( exit $ac_status )
25112 { echo "$as_me:$LINENO: result: no" >&5
25113 echo "${ECHO_T}no" >&6; }
25115 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25120 { echo "$as_me:$LINENO: checking for socklen_t" >&5
25121 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; }
25122 if test "${ac_cv_type_socklen_t+set}" = set; then
25123 echo $ECHO_N "(cached) $ECHO_C" >&6
25124 else
25125 cat >conftest.$ac_ext <<_ACEOF
25126 /* confdefs.h. */
25127 _ACEOF
25128 cat confdefs.h >>conftest.$ac_ext
25129 cat >>conftest.$ac_ext <<_ACEOF
25130 /* end confdefs.h. */
25132 #ifdef HAVE_SYS_TYPES_H
25133 #include <sys/types.h>
25134 #endif
25135 #ifdef HAVE_SYS_SOCKET_H
25136 #include <sys/socket.h>
25137 #endif
25140 typedef socklen_t ac__type_new_;
25142 main ()
25144 if ((ac__type_new_ *) 0)
25145 return 0;
25146 if (sizeof (ac__type_new_))
25147 return 0;
25149 return 0;
25151 _ACEOF
25152 rm -f conftest.$ac_objext
25153 if { (ac_try="$ac_compile"
25154 case "(($ac_try" in
25155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25156 *) ac_try_echo=$ac_try;;
25157 esac
25158 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25159 (eval "$ac_compile") 2>conftest.er1
25160 ac_status=$?
25161 grep -v '^ *+' conftest.er1 >conftest.err
25162 rm -f conftest.er1
25163 cat conftest.err >&5
25164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25165 (exit $ac_status); } && {
25166 test -z "$ac_c_werror_flag" ||
25167 test ! -s conftest.err
25168 } && test -s conftest.$ac_objext; then
25169 ac_cv_type_socklen_t=yes
25170 else
25171 echo "$as_me: failed program was:" >&5
25172 sed 's/^/| /' conftest.$ac_ext >&5
25174 ac_cv_type_socklen_t=no
25177 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25179 { echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
25180 echo "${ECHO_T}$ac_cv_type_socklen_t" >&6; }
25181 if test $ac_cv_type_socklen_t = yes; then
25183 else
25185 cat >>confdefs.h <<\_ACEOF
25186 #define socklen_t int
25187 _ACEOF
25194 for h in `(cd $srcdir;echo Python/thread_*.h)`
25196 THREADHEADERS="$THREADHEADERS \$(srcdir)/$h"
25197 done
25200 SRCDIRS="Parser Grammar Objects Python Modules Mac"
25201 { echo "$as_me:$LINENO: checking for build directories" >&5
25202 echo $ECHO_N "checking for build directories... $ECHO_C" >&6; }
25203 for dir in $SRCDIRS; do
25204 if test ! -d $dir; then
25205 mkdir $dir
25207 done
25208 { echo "$as_me:$LINENO: result: done" >&5
25209 echo "${ECHO_T}done" >&6; }
25211 # generate output files
25212 ac_config_files="$ac_config_files Makefile.pre Modules/Setup.config"
25214 cat >confcache <<\_ACEOF
25215 # This file is a shell script that caches the results of configure
25216 # tests run on this system so they can be shared between configure
25217 # scripts and configure runs, see configure's option --config-cache.
25218 # It is not useful on other systems. If it contains results you don't
25219 # want to keep, you may remove or edit it.
25221 # config.status only pays attention to the cache file if you give it
25222 # the --recheck option to rerun configure.
25224 # `ac_cv_env_foo' variables (set or unset) will be overridden when
25225 # loading this file, other *unset* `ac_cv_foo' will be assigned the
25226 # following values.
25228 _ACEOF
25230 # The following way of writing the cache mishandles newlines in values,
25231 # but we know of no workaround that is simple, portable, and efficient.
25232 # So, we kill variables containing newlines.
25233 # Ultrix sh set writes to stderr and can't be redirected directly,
25234 # and sets the high bit in the cache file unless we assign to the vars.
25236 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
25237 eval ac_val=\$$ac_var
25238 case $ac_val in #(
25239 *${as_nl}*)
25240 case $ac_var in #(
25241 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
25242 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
25243 esac
25244 case $ac_var in #(
25245 _ | IFS | as_nl) ;; #(
25246 *) $as_unset $ac_var ;;
25247 esac ;;
25248 esac
25249 done
25251 (set) 2>&1 |
25252 case $as_nl`(ac_space=' '; set) 2>&1` in #(
25253 *${as_nl}ac_space=\ *)
25254 # `set' does not quote correctly, so add quotes (double-quote
25255 # substitution turns \\\\ into \\, and sed turns \\ into \).
25256 sed -n \
25257 "s/'/'\\\\''/g;
25258 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
25259 ;; #(
25261 # `set' quotes correctly as required by POSIX, so do not add quotes.
25262 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
25264 esac |
25265 sort
25267 sed '
25268 /^ac_cv_env_/b end
25269 t clear
25270 :clear
25271 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
25272 t end
25273 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
25274 :end' >>confcache
25275 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
25276 if test -w "$cache_file"; then
25277 test "x$cache_file" != "x/dev/null" &&
25278 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
25279 echo "$as_me: updating cache $cache_file" >&6;}
25280 cat confcache >$cache_file
25281 else
25282 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
25283 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
25286 rm -f confcache
25288 test "x$prefix" = xNONE && prefix=$ac_default_prefix
25289 # Let make expand exec_prefix.
25290 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
25292 DEFS=-DHAVE_CONFIG_H
25294 ac_libobjs=
25295 ac_ltlibobjs=
25296 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
25297 # 1. Remove the extension, and $U if already installed.
25298 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
25299 ac_i=`echo "$ac_i" | sed "$ac_script"`
25300 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
25301 # will be set to the directory where LIBOBJS objects are built.
25302 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
25303 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
25304 done
25305 LIBOBJS=$ac_libobjs
25307 LTLIBOBJS=$ac_ltlibobjs
25311 : ${CONFIG_STATUS=./config.status}
25312 ac_clean_files_save=$ac_clean_files
25313 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
25314 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
25315 echo "$as_me: creating $CONFIG_STATUS" >&6;}
25316 cat >$CONFIG_STATUS <<_ACEOF
25317 #! $SHELL
25318 # Generated by $as_me.
25319 # Run this file to recreate the current configuration.
25320 # Compiler output produced by configure, useful for debugging
25321 # configure, is in config.log if it exists.
25323 debug=false
25324 ac_cs_recheck=false
25325 ac_cs_silent=false
25326 SHELL=\${CONFIG_SHELL-$SHELL}
25327 _ACEOF
25329 cat >>$CONFIG_STATUS <<\_ACEOF
25330 ## --------------------- ##
25331 ## M4sh Initialization. ##
25332 ## --------------------- ##
25334 # Be more Bourne compatible
25335 DUALCASE=1; export DUALCASE # for MKS sh
25336 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
25337 emulate sh
25338 NULLCMD=:
25339 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
25340 # is contrary to our usage. Disable this feature.
25341 alias -g '${1+"$@"}'='"$@"'
25342 setopt NO_GLOB_SUBST
25343 else
25344 case `(set -o) 2>/dev/null` in
25345 *posix*) set -o posix ;;
25346 esac
25353 # PATH needs CR
25354 # Avoid depending upon Character Ranges.
25355 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
25356 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
25357 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
25358 as_cr_digits='0123456789'
25359 as_cr_alnum=$as_cr_Letters$as_cr_digits
25361 # The user is always right.
25362 if test "${PATH_SEPARATOR+set}" != set; then
25363 echo "#! /bin/sh" >conf$$.sh
25364 echo "exit 0" >>conf$$.sh
25365 chmod +x conf$$.sh
25366 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
25367 PATH_SEPARATOR=';'
25368 else
25369 PATH_SEPARATOR=:
25371 rm -f conf$$.sh
25374 # Support unset when possible.
25375 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
25376 as_unset=unset
25377 else
25378 as_unset=false
25382 # IFS
25383 # We need space, tab and new line, in precisely that order. Quoting is
25384 # there to prevent editors from complaining about space-tab.
25385 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
25386 # splitting by setting IFS to empty value.)
25387 as_nl='
25389 IFS=" "" $as_nl"
25391 # Find who we are. Look in the path if we contain no directory separator.
25392 case $0 in
25393 *[\\/]* ) as_myself=$0 ;;
25394 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25395 for as_dir in $PATH
25397 IFS=$as_save_IFS
25398 test -z "$as_dir" && as_dir=.
25399 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
25400 done
25401 IFS=$as_save_IFS
25404 esac
25405 # We did not find ourselves, most probably we were run as `sh COMMAND'
25406 # in which case we are not to be found in the path.
25407 if test "x$as_myself" = x; then
25408 as_myself=$0
25410 if test ! -f "$as_myself"; then
25411 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
25412 { (exit 1); exit 1; }
25415 # Work around bugs in pre-3.0 UWIN ksh.
25416 for as_var in ENV MAIL MAILPATH
25417 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
25418 done
25419 PS1='$ '
25420 PS2='> '
25421 PS4='+ '
25423 # NLS nuisances.
25424 for as_var in \
25425 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
25426 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
25427 LC_TELEPHONE LC_TIME
25429 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
25430 eval $as_var=C; export $as_var
25431 else
25432 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
25434 done
25436 # Required to use basename.
25437 if expr a : '\(a\)' >/dev/null 2>&1 &&
25438 test "X`expr 00001 : '.*\(...\)'`" = X001; then
25439 as_expr=expr
25440 else
25441 as_expr=false
25444 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
25445 as_basename=basename
25446 else
25447 as_basename=false
25451 # Name of the executable.
25452 as_me=`$as_basename -- "$0" ||
25453 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
25454 X"$0" : 'X\(//\)$' \| \
25455 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
25456 echo X/"$0" |
25457 sed '/^.*\/\([^/][^/]*\)\/*$/{
25458 s//\1/
25461 /^X\/\(\/\/\)$/{
25462 s//\1/
25465 /^X\/\(\/\).*/{
25466 s//\1/
25469 s/.*/./; q'`
25471 # CDPATH.
25472 $as_unset CDPATH
25476 as_lineno_1=$LINENO
25477 as_lineno_2=$LINENO
25478 test "x$as_lineno_1" != "x$as_lineno_2" &&
25479 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
25481 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
25482 # uniformly replaced by the line number. The first 'sed' inserts a
25483 # line-number line after each line using $LINENO; the second 'sed'
25484 # does the real work. The second script uses 'N' to pair each
25485 # line-number line with the line containing $LINENO, and appends
25486 # trailing '-' during substitution so that $LINENO is not a special
25487 # case at line end.
25488 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
25489 # scripts with optimization help from Paolo Bonzini. Blame Lee
25490 # E. McMahon (1931-1989) for sed's syntax. :-)
25491 sed -n '
25493 /[$]LINENO/=
25494 ' <$as_myself |
25495 sed '
25496 s/[$]LINENO.*/&-/
25497 t lineno
25499 :lineno
25501 :loop
25502 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
25503 t loop
25504 s/-\n.*//
25505 ' >$as_me.lineno &&
25506 chmod +x "$as_me.lineno" ||
25507 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
25508 { (exit 1); exit 1; }; }
25510 # Don't try to exec as it changes $[0], causing all sort of problems
25511 # (the dirname of $[0] is not the place where we might find the
25512 # original and so on. Autoconf is especially sensitive to this).
25513 . "./$as_me.lineno"
25514 # Exit status is that of the last command.
25515 exit
25519 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
25520 as_dirname=dirname
25521 else
25522 as_dirname=false
25525 ECHO_C= ECHO_N= ECHO_T=
25526 case `echo -n x` in
25527 -n*)
25528 case `echo 'x\c'` in
25529 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
25530 *) ECHO_C='\c';;
25531 esac;;
25533 ECHO_N='-n';;
25534 esac
25536 if expr a : '\(a\)' >/dev/null 2>&1 &&
25537 test "X`expr 00001 : '.*\(...\)'`" = X001; then
25538 as_expr=expr
25539 else
25540 as_expr=false
25543 rm -f conf$$ conf$$.exe conf$$.file
25544 if test -d conf$$.dir; then
25545 rm -f conf$$.dir/conf$$.file
25546 else
25547 rm -f conf$$.dir
25548 mkdir conf$$.dir
25550 echo >conf$$.file
25551 if ln -s conf$$.file conf$$ 2>/dev/null; then
25552 as_ln_s='ln -s'
25553 # ... but there are two gotchas:
25554 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
25555 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
25556 # In both cases, we have to default to `cp -p'.
25557 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
25558 as_ln_s='cp -p'
25559 elif ln conf$$.file conf$$ 2>/dev/null; then
25560 as_ln_s=ln
25561 else
25562 as_ln_s='cp -p'
25564 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
25565 rmdir conf$$.dir 2>/dev/null
25567 if mkdir -p . 2>/dev/null; then
25568 as_mkdir_p=:
25569 else
25570 test -d ./-p && rmdir ./-p
25571 as_mkdir_p=false
25574 if test -x / >/dev/null 2>&1; then
25575 as_test_x='test -x'
25576 else
25577 if ls -dL / >/dev/null 2>&1; then
25578 as_ls_L_option=L
25579 else
25580 as_ls_L_option=
25582 as_test_x='
25583 eval sh -c '\''
25584 if test -d "$1"; then
25585 test -d "$1/.";
25586 else
25587 case $1 in
25588 -*)set "./$1";;
25589 esac;
25590 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
25591 ???[sx]*):;;*)false;;esac;fi
25592 '\'' sh
25595 as_executable_p=$as_test_x
25597 # Sed expression to map a string onto a valid CPP name.
25598 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
25600 # Sed expression to map a string onto a valid variable name.
25601 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
25604 exec 6>&1
25606 # Save the log message, to keep $[0] and so on meaningful, and to
25607 # report actual input values of CONFIG_FILES etc. instead of their
25608 # values after options handling.
25609 ac_log="
25610 This file was extended by python $as_me 2.7, which was
25611 generated by GNU Autoconf 2.61. Invocation command line was
25613 CONFIG_FILES = $CONFIG_FILES
25614 CONFIG_HEADERS = $CONFIG_HEADERS
25615 CONFIG_LINKS = $CONFIG_LINKS
25616 CONFIG_COMMANDS = $CONFIG_COMMANDS
25617 $ $0 $@
25619 on `(hostname || uname -n) 2>/dev/null | sed 1q`
25622 _ACEOF
25624 cat >>$CONFIG_STATUS <<_ACEOF
25625 # Files that config.status was made for.
25626 config_files="$ac_config_files"
25627 config_headers="$ac_config_headers"
25629 _ACEOF
25631 cat >>$CONFIG_STATUS <<\_ACEOF
25632 ac_cs_usage="\
25633 \`$as_me' instantiates files from templates according to the
25634 current configuration.
25636 Usage: $0 [OPTIONS] [FILE]...
25638 -h, --help print this help, then exit
25639 -V, --version print version number and configuration settings, then exit
25640 -q, --quiet do not print progress messages
25641 -d, --debug don't remove temporary files
25642 --recheck update $as_me by reconfiguring in the same conditions
25643 --file=FILE[:TEMPLATE]
25644 instantiate the configuration file FILE
25645 --header=FILE[:TEMPLATE]
25646 instantiate the configuration header FILE
25648 Configuration files:
25649 $config_files
25651 Configuration headers:
25652 $config_headers
25654 Report bugs to <bug-autoconf@gnu.org>."
25656 _ACEOF
25657 cat >>$CONFIG_STATUS <<_ACEOF
25658 ac_cs_version="\\
25659 python config.status 2.7
25660 configured by $0, generated by GNU Autoconf 2.61,
25661 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
25663 Copyright (C) 2006 Free Software Foundation, Inc.
25664 This config.status script is free software; the Free Software Foundation
25665 gives unlimited permission to copy, distribute and modify it."
25667 ac_pwd='$ac_pwd'
25668 srcdir='$srcdir'
25669 INSTALL='$INSTALL'
25670 _ACEOF
25672 cat >>$CONFIG_STATUS <<\_ACEOF
25673 # If no file are specified by the user, then we need to provide default
25674 # value. By we need to know if files were specified by the user.
25675 ac_need_defaults=:
25676 while test $# != 0
25678 case $1 in
25679 --*=*)
25680 ac_option=`expr "X$1" : 'X\([^=]*\)='`
25681 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
25682 ac_shift=:
25685 ac_option=$1
25686 ac_optarg=$2
25687 ac_shift=shift
25689 esac
25691 case $ac_option in
25692 # Handling of the options.
25693 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
25694 ac_cs_recheck=: ;;
25695 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
25696 echo "$ac_cs_version"; exit ;;
25697 --debug | --debu | --deb | --de | --d | -d )
25698 debug=: ;;
25699 --file | --fil | --fi | --f )
25700 $ac_shift
25701 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
25702 ac_need_defaults=false;;
25703 --header | --heade | --head | --hea )
25704 $ac_shift
25705 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
25706 ac_need_defaults=false;;
25707 --he | --h)
25708 # Conflict between --help and --header
25709 { echo "$as_me: error: ambiguous option: $1
25710 Try \`$0 --help' for more information." >&2
25711 { (exit 1); exit 1; }; };;
25712 --help | --hel | -h )
25713 echo "$ac_cs_usage"; exit ;;
25714 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
25715 | -silent | --silent | --silen | --sile | --sil | --si | --s)
25716 ac_cs_silent=: ;;
25718 # This is an error.
25719 -*) { echo "$as_me: error: unrecognized option: $1
25720 Try \`$0 --help' for more information." >&2
25721 { (exit 1); exit 1; }; } ;;
25723 *) ac_config_targets="$ac_config_targets $1"
25724 ac_need_defaults=false ;;
25726 esac
25727 shift
25728 done
25730 ac_configure_extra_args=
25732 if $ac_cs_silent; then
25733 exec 6>/dev/null
25734 ac_configure_extra_args="$ac_configure_extra_args --silent"
25737 _ACEOF
25738 cat >>$CONFIG_STATUS <<_ACEOF
25739 if \$ac_cs_recheck; then
25740 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
25741 CONFIG_SHELL=$SHELL
25742 export CONFIG_SHELL
25743 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
25746 _ACEOF
25747 cat >>$CONFIG_STATUS <<\_ACEOF
25748 exec 5>>config.log
25750 echo
25751 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
25752 ## Running $as_me. ##
25753 _ASBOX
25754 echo "$ac_log"
25755 } >&5
25757 _ACEOF
25758 cat >>$CONFIG_STATUS <<_ACEOF
25759 _ACEOF
25761 cat >>$CONFIG_STATUS <<\_ACEOF
25763 # Handling of arguments.
25764 for ac_config_target in $ac_config_targets
25766 case $ac_config_target in
25767 "pyconfig.h") CONFIG_HEADERS="$CONFIG_HEADERS pyconfig.h" ;;
25768 "Mac/Makefile") CONFIG_FILES="$CONFIG_FILES Mac/Makefile" ;;
25769 "Mac/PythonLauncher/Makefile") CONFIG_FILES="$CONFIG_FILES Mac/PythonLauncher/Makefile" ;;
25770 "Mac/IDLE/Makefile") CONFIG_FILES="$CONFIG_FILES Mac/IDLE/Makefile" ;;
25771 "Mac/Resources/framework/Info.plist") CONFIG_FILES="$CONFIG_FILES Mac/Resources/framework/Info.plist" ;;
25772 "Mac/Resources/app/Info.plist") CONFIG_FILES="$CONFIG_FILES Mac/Resources/app/Info.plist" ;;
25773 "Makefile.pre") CONFIG_FILES="$CONFIG_FILES Makefile.pre" ;;
25774 "Modules/Setup.config") CONFIG_FILES="$CONFIG_FILES Modules/Setup.config" ;;
25776 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
25777 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
25778 { (exit 1); exit 1; }; };;
25779 esac
25780 done
25783 # If the user did not use the arguments to specify the items to instantiate,
25784 # then the envvar interface is used. Set only those that are not.
25785 # We use the long form for the default assignment because of an extremely
25786 # bizarre bug on SunOS 4.1.3.
25787 if $ac_need_defaults; then
25788 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
25789 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
25792 # Have a temporary directory for convenience. Make it in the build tree
25793 # simply because there is no reason against having it here, and in addition,
25794 # creating and moving files from /tmp can sometimes cause problems.
25795 # Hook for its removal unless debugging.
25796 # Note that there is a small window in which the directory will not be cleaned:
25797 # after its creation but before its name has been assigned to `$tmp'.
25798 $debug ||
25800 tmp=
25801 trap 'exit_status=$?
25802 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
25804 trap '{ (exit 1); exit 1; }' 1 2 13 15
25806 # Create a (secure) tmp directory for tmp files.
25809 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
25810 test -n "$tmp" && test -d "$tmp"
25811 } ||
25813 tmp=./conf$$-$RANDOM
25814 (umask 077 && mkdir "$tmp")
25815 } ||
25817 echo "$me: cannot create a temporary directory in ." >&2
25818 { (exit 1); exit 1; }
25822 # Set up the sed scripts for CONFIG_FILES section.
25825 # No need to generate the scripts if there are no CONFIG_FILES.
25826 # This happens for instance when ./config.status config.h
25827 if test -n "$CONFIG_FILES"; then
25829 _ACEOF
25833 ac_delim='%!_!# '
25834 for ac_last_try in false false false false false :; do
25835 cat >conf$$subs.sed <<_ACEOF
25836 SHELL!$SHELL$ac_delim
25837 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
25838 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
25839 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
25840 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
25841 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
25842 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
25843 exec_prefix!$exec_prefix$ac_delim
25844 prefix!$prefix$ac_delim
25845 program_transform_name!$program_transform_name$ac_delim
25846 bindir!$bindir$ac_delim
25847 sbindir!$sbindir$ac_delim
25848 libexecdir!$libexecdir$ac_delim
25849 datarootdir!$datarootdir$ac_delim
25850 datadir!$datadir$ac_delim
25851 sysconfdir!$sysconfdir$ac_delim
25852 sharedstatedir!$sharedstatedir$ac_delim
25853 localstatedir!$localstatedir$ac_delim
25854 includedir!$includedir$ac_delim
25855 oldincludedir!$oldincludedir$ac_delim
25856 docdir!$docdir$ac_delim
25857 infodir!$infodir$ac_delim
25858 htmldir!$htmldir$ac_delim
25859 dvidir!$dvidir$ac_delim
25860 pdfdir!$pdfdir$ac_delim
25861 psdir!$psdir$ac_delim
25862 libdir!$libdir$ac_delim
25863 localedir!$localedir$ac_delim
25864 mandir!$mandir$ac_delim
25865 DEFS!$DEFS$ac_delim
25866 ECHO_C!$ECHO_C$ac_delim
25867 ECHO_N!$ECHO_N$ac_delim
25868 ECHO_T!$ECHO_T$ac_delim
25869 LIBS!$LIBS$ac_delim
25870 build_alias!$build_alias$ac_delim
25871 host_alias!$host_alias$ac_delim
25872 target_alias!$target_alias$ac_delim
25873 VERSION!$VERSION$ac_delim
25874 SOVERSION!$SOVERSION$ac_delim
25875 CONFIG_ARGS!$CONFIG_ARGS$ac_delim
25876 UNIVERSALSDK!$UNIVERSALSDK$ac_delim
25877 ARCH_RUN_32BIT!$ARCH_RUN_32BIT$ac_delim
25878 PYTHONFRAMEWORK!$PYTHONFRAMEWORK$ac_delim
25879 PYTHONFRAMEWORKIDENTIFIER!$PYTHONFRAMEWORKIDENTIFIER$ac_delim
25880 PYTHONFRAMEWORKDIR!$PYTHONFRAMEWORKDIR$ac_delim
25881 PYTHONFRAMEWORKPREFIX!$PYTHONFRAMEWORKPREFIX$ac_delim
25882 PYTHONFRAMEWORKINSTALLDIR!$PYTHONFRAMEWORKINSTALLDIR$ac_delim
25883 FRAMEWORKINSTALLFIRST!$FRAMEWORKINSTALLFIRST$ac_delim
25884 FRAMEWORKINSTALLLAST!$FRAMEWORKINSTALLLAST$ac_delim
25885 FRAMEWORKALTINSTALLFIRST!$FRAMEWORKALTINSTALLFIRST$ac_delim
25886 FRAMEWORKALTINSTALLLAST!$FRAMEWORKALTINSTALLLAST$ac_delim
25887 FRAMEWORKUNIXTOOLSPREFIX!$FRAMEWORKUNIXTOOLSPREFIX$ac_delim
25888 MACHDEP!$MACHDEP$ac_delim
25889 SGI_ABI!$SGI_ABI$ac_delim
25890 EXTRAPLATDIR!$EXTRAPLATDIR$ac_delim
25891 EXTRAMACHDEPPATH!$EXTRAMACHDEPPATH$ac_delim
25892 CONFIGURE_MACOSX_DEPLOYMENT_TARGET!$CONFIGURE_MACOSX_DEPLOYMENT_TARGET$ac_delim
25893 EXPORT_MACOSX_DEPLOYMENT_TARGET!$EXPORT_MACOSX_DEPLOYMENT_TARGET$ac_delim
25894 CC!$CC$ac_delim
25895 CFLAGS!$CFLAGS$ac_delim
25896 LDFLAGS!$LDFLAGS$ac_delim
25897 CPPFLAGS!$CPPFLAGS$ac_delim
25898 ac_ct_CC!$ac_ct_CC$ac_delim
25899 EXEEXT!$EXEEXT$ac_delim
25900 OBJEXT!$OBJEXT$ac_delim
25901 CXX!$CXX$ac_delim
25902 MAINCC!$MAINCC$ac_delim
25903 CPP!$CPP$ac_delim
25904 GREP!$GREP$ac_delim
25905 EGREP!$EGREP$ac_delim
25906 BUILDEXEEXT!$BUILDEXEEXT$ac_delim
25907 LIBRARY!$LIBRARY$ac_delim
25908 LDLIBRARY!$LDLIBRARY$ac_delim
25909 DLLLIBRARY!$DLLLIBRARY$ac_delim
25910 BLDLIBRARY!$BLDLIBRARY$ac_delim
25911 LDLIBRARYDIR!$LDLIBRARYDIR$ac_delim
25912 INSTSONAME!$INSTSONAME$ac_delim
25913 RUNSHARED!$RUNSHARED$ac_delim
25914 LINKCC!$LINKCC$ac_delim
25915 RANLIB!$RANLIB$ac_delim
25916 AR!$AR$ac_delim
25917 SVNVERSION!$SVNVERSION$ac_delim
25918 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
25919 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
25920 INSTALL_DATA!$INSTALL_DATA$ac_delim
25921 LN!$LN$ac_delim
25922 OPT!$OPT$ac_delim
25923 BASECFLAGS!$BASECFLAGS$ac_delim
25924 UNIVERSAL_ARCH_FLAGS!$UNIVERSAL_ARCH_FLAGS$ac_delim
25925 OTHER_LIBTOOL_OPT!$OTHER_LIBTOOL_OPT$ac_delim
25926 LIBTOOL_CRUFT!$LIBTOOL_CRUFT$ac_delim
25927 SO!$SO$ac_delim
25928 LDSHARED!$LDSHARED$ac_delim
25929 BLDSHARED!$BLDSHARED$ac_delim
25930 CCSHARED!$CCSHARED$ac_delim
25931 LINKFORSHARED!$LINKFORSHARED$ac_delim
25932 CFLAGSFORSHARED!$CFLAGSFORSHARED$ac_delim
25933 _ACEOF
25935 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
25936 break
25937 elif $ac_last_try; then
25938 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
25939 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
25940 { (exit 1); exit 1; }; }
25941 else
25942 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
25944 done
25946 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
25947 if test -n "$ac_eof"; then
25948 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
25949 ac_eof=`expr $ac_eof + 1`
25952 cat >>$CONFIG_STATUS <<_ACEOF
25953 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
25954 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
25955 _ACEOF
25956 sed '
25957 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
25958 s/^/s,@/; s/!/@,|#_!!_#|/
25961 s/'"$ac_delim"'$/,g/; t
25962 s/$/\\/; p
25963 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
25964 ' >>$CONFIG_STATUS <conf$$subs.sed
25965 rm -f conf$$subs.sed
25966 cat >>$CONFIG_STATUS <<_ACEOF
25967 CEOF$ac_eof
25968 _ACEOF
25971 ac_delim='%!_!# '
25972 for ac_last_try in false false false false false :; do
25973 cat >conf$$subs.sed <<_ACEOF
25974 SHLIBS!$SHLIBS$ac_delim
25975 USE_SIGNAL_MODULE!$USE_SIGNAL_MODULE$ac_delim
25976 SIGNAL_OBJS!$SIGNAL_OBJS$ac_delim
25977 USE_THREAD_MODULE!$USE_THREAD_MODULE$ac_delim
25978 LDLAST!$LDLAST$ac_delim
25979 THREADOBJ!$THREADOBJ$ac_delim
25980 DLINCLDIR!$DLINCLDIR$ac_delim
25981 DYNLOADFILE!$DYNLOADFILE$ac_delim
25982 MACHDEP_OBJS!$MACHDEP_OBJS$ac_delim
25983 TRUE!$TRUE$ac_delim
25984 LIBOBJS!$LIBOBJS$ac_delim
25985 HAVE_GETHOSTBYNAME_R_6_ARG!$HAVE_GETHOSTBYNAME_R_6_ARG$ac_delim
25986 HAVE_GETHOSTBYNAME_R_5_ARG!$HAVE_GETHOSTBYNAME_R_5_ARG$ac_delim
25987 HAVE_GETHOSTBYNAME_R_3_ARG!$HAVE_GETHOSTBYNAME_R_3_ARG$ac_delim
25988 HAVE_GETHOSTBYNAME_R!$HAVE_GETHOSTBYNAME_R$ac_delim
25989 HAVE_GETHOSTBYNAME!$HAVE_GETHOSTBYNAME$ac_delim
25990 LIBM!$LIBM$ac_delim
25991 LIBC!$LIBC$ac_delim
25992 UNICODE_OBJS!$UNICODE_OBJS$ac_delim
25993 THREADHEADERS!$THREADHEADERS$ac_delim
25994 SRCDIRS!$SRCDIRS$ac_delim
25995 LTLIBOBJS!$LTLIBOBJS$ac_delim
25996 _ACEOF
25998 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 22; then
25999 break
26000 elif $ac_last_try; then
26001 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
26002 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
26003 { (exit 1); exit 1; }; }
26004 else
26005 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
26007 done
26009 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
26010 if test -n "$ac_eof"; then
26011 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
26012 ac_eof=`expr $ac_eof + 1`
26015 cat >>$CONFIG_STATUS <<_ACEOF
26016 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
26017 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
26018 _ACEOF
26019 sed '
26020 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
26021 s/^/s,@/; s/!/@,|#_!!_#|/
26024 s/'"$ac_delim"'$/,g/; t
26025 s/$/\\/; p
26026 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
26027 ' >>$CONFIG_STATUS <conf$$subs.sed
26028 rm -f conf$$subs.sed
26029 cat >>$CONFIG_STATUS <<_ACEOF
26030 :end
26031 s/|#_!!_#|//g
26032 CEOF$ac_eof
26033 _ACEOF
26036 # VPATH may cause trouble with some makes, so we remove $(srcdir),
26037 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
26038 # trailing colons and then remove the whole line if VPATH becomes empty
26039 # (actually we leave an empty line to preserve line numbers).
26040 if test "x$srcdir" = x.; then
26041 ac_vpsub='/^[ ]*VPATH[ ]*=/{
26042 s/:*\$(srcdir):*/:/
26043 s/:*\${srcdir}:*/:/
26044 s/:*@srcdir@:*/:/
26045 s/^\([^=]*=[ ]*\):*/\1/
26046 s/:*$//
26047 s/^[^=]*=[ ]*$//
26051 cat >>$CONFIG_STATUS <<\_ACEOF
26052 fi # test -n "$CONFIG_FILES"
26055 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS
26057 case $ac_tag in
26058 :[FHLC]) ac_mode=$ac_tag; continue;;
26059 esac
26060 case $ac_mode$ac_tag in
26061 :[FHL]*:*);;
26062 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
26063 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
26064 { (exit 1); exit 1; }; };;
26065 :[FH]-) ac_tag=-:-;;
26066 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
26067 esac
26068 ac_save_IFS=$IFS
26069 IFS=:
26070 set x $ac_tag
26071 IFS=$ac_save_IFS
26072 shift
26073 ac_file=$1
26074 shift
26076 case $ac_mode in
26077 :L) ac_source=$1;;
26078 :[FH])
26079 ac_file_inputs=
26080 for ac_f
26082 case $ac_f in
26083 -) ac_f="$tmp/stdin";;
26084 *) # Look for the file first in the build tree, then in the source tree
26085 # (if the path is not absolute). The absolute path cannot be DOS-style,
26086 # because $ac_f cannot contain `:'.
26087 test -f "$ac_f" ||
26088 case $ac_f in
26089 [\\/$]*) false;;
26090 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
26091 esac ||
26092 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
26093 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
26094 { (exit 1); exit 1; }; };;
26095 esac
26096 ac_file_inputs="$ac_file_inputs $ac_f"
26097 done
26099 # Let's still pretend it is `configure' which instantiates (i.e., don't
26100 # use $as_me), people would be surprised to read:
26101 # /* config.h. Generated by config.status. */
26102 configure_input="Generated from "`IFS=:
26103 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
26104 if test x"$ac_file" != x-; then
26105 configure_input="$ac_file. $configure_input"
26106 { echo "$as_me:$LINENO: creating $ac_file" >&5
26107 echo "$as_me: creating $ac_file" >&6;}
26110 case $ac_tag in
26111 *:-:* | *:-) cat >"$tmp/stdin";;
26112 esac
26114 esac
26116 ac_dir=`$as_dirname -- "$ac_file" ||
26117 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26118 X"$ac_file" : 'X\(//\)[^/]' \| \
26119 X"$ac_file" : 'X\(//\)$' \| \
26120 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
26121 echo X"$ac_file" |
26122 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26123 s//\1/
26126 /^X\(\/\/\)[^/].*/{
26127 s//\1/
26130 /^X\(\/\/\)$/{
26131 s//\1/
26134 /^X\(\/\).*/{
26135 s//\1/
26138 s/.*/./; q'`
26139 { as_dir="$ac_dir"
26140 case $as_dir in #(
26141 -*) as_dir=./$as_dir;;
26142 esac
26143 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
26144 as_dirs=
26145 while :; do
26146 case $as_dir in #(
26147 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
26148 *) as_qdir=$as_dir;;
26149 esac
26150 as_dirs="'$as_qdir' $as_dirs"
26151 as_dir=`$as_dirname -- "$as_dir" ||
26152 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26153 X"$as_dir" : 'X\(//\)[^/]' \| \
26154 X"$as_dir" : 'X\(//\)$' \| \
26155 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
26156 echo X"$as_dir" |
26157 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26158 s//\1/
26161 /^X\(\/\/\)[^/].*/{
26162 s//\1/
26165 /^X\(\/\/\)$/{
26166 s//\1/
26169 /^X\(\/\).*/{
26170 s//\1/
26173 s/.*/./; q'`
26174 test -d "$as_dir" && break
26175 done
26176 test -z "$as_dirs" || eval "mkdir $as_dirs"
26177 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
26178 echo "$as_me: error: cannot create directory $as_dir" >&2;}
26179 { (exit 1); exit 1; }; }; }
26180 ac_builddir=.
26182 case "$ac_dir" in
26183 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
26185 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
26186 # A ".." for each directory in $ac_dir_suffix.
26187 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
26188 case $ac_top_builddir_sub in
26189 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
26190 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
26191 esac ;;
26192 esac
26193 ac_abs_top_builddir=$ac_pwd
26194 ac_abs_builddir=$ac_pwd$ac_dir_suffix
26195 # for backward compatibility:
26196 ac_top_builddir=$ac_top_build_prefix
26198 case $srcdir in
26199 .) # We are building in place.
26200 ac_srcdir=.
26201 ac_top_srcdir=$ac_top_builddir_sub
26202 ac_abs_top_srcdir=$ac_pwd ;;
26203 [\\/]* | ?:[\\/]* ) # Absolute name.
26204 ac_srcdir=$srcdir$ac_dir_suffix;
26205 ac_top_srcdir=$srcdir
26206 ac_abs_top_srcdir=$srcdir ;;
26207 *) # Relative name.
26208 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
26209 ac_top_srcdir=$ac_top_build_prefix$srcdir
26210 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
26211 esac
26212 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
26215 case $ac_mode in
26218 # CONFIG_FILE
26221 case $INSTALL in
26222 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
26223 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
26224 esac
26225 _ACEOF
26227 cat >>$CONFIG_STATUS <<\_ACEOF
26228 # If the template does not know about datarootdir, expand it.
26229 # FIXME: This hack should be removed a few years after 2.60.
26230 ac_datarootdir_hack=; ac_datarootdir_seen=
26232 case `sed -n '/datarootdir/ {
26236 /@datadir@/p
26237 /@docdir@/p
26238 /@infodir@/p
26239 /@localedir@/p
26240 /@mandir@/p
26241 ' $ac_file_inputs` in
26242 *datarootdir*) ac_datarootdir_seen=yes;;
26243 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
26244 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
26245 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
26246 _ACEOF
26247 cat >>$CONFIG_STATUS <<_ACEOF
26248 ac_datarootdir_hack='
26249 s&@datadir@&$datadir&g
26250 s&@docdir@&$docdir&g
26251 s&@infodir@&$infodir&g
26252 s&@localedir@&$localedir&g
26253 s&@mandir@&$mandir&g
26254 s&\\\${datarootdir}&$datarootdir&g' ;;
26255 esac
26256 _ACEOF
26258 # Neutralize VPATH when `$srcdir' = `.'.
26259 # Shell code in configure.ac might set extrasub.
26260 # FIXME: do we really want to maintain this feature?
26261 cat >>$CONFIG_STATUS <<_ACEOF
26262 sed "$ac_vpsub
26263 $extrasub
26264 _ACEOF
26265 cat >>$CONFIG_STATUS <<\_ACEOF
26267 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
26268 s&@configure_input@&$configure_input&;t t
26269 s&@top_builddir@&$ac_top_builddir_sub&;t t
26270 s&@srcdir@&$ac_srcdir&;t t
26271 s&@abs_srcdir@&$ac_abs_srcdir&;t t
26272 s&@top_srcdir@&$ac_top_srcdir&;t t
26273 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
26274 s&@builddir@&$ac_builddir&;t t
26275 s&@abs_builddir@&$ac_abs_builddir&;t t
26276 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
26277 s&@INSTALL@&$ac_INSTALL&;t t
26278 $ac_datarootdir_hack
26279 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
26281 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
26282 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
26283 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
26284 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
26285 which seems to be undefined. Please make sure it is defined." >&5
26286 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
26287 which seems to be undefined. Please make sure it is defined." >&2;}
26289 rm -f "$tmp/stdin"
26290 case $ac_file in
26291 -) cat "$tmp/out"; rm -f "$tmp/out";;
26292 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
26293 esac
26297 # CONFIG_HEADER
26299 _ACEOF
26301 # Transform confdefs.h into a sed script `conftest.defines', that
26302 # substitutes the proper values into config.h.in to produce config.h.
26303 rm -f conftest.defines conftest.tail
26304 # First, append a space to every undef/define line, to ease matching.
26305 echo 's/$/ /' >conftest.defines
26306 # Then, protect against being on the right side of a sed subst, or in
26307 # an unquoted here document, in config.status. If some macros were
26308 # called several times there might be several #defines for the same
26309 # symbol, which is useless. But do not sort them, since the last
26310 # AC_DEFINE must be honored.
26311 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
26312 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
26313 # NAME is the cpp macro being defined, VALUE is the value it is being given.
26314 # PARAMS is the parameter list in the macro definition--in most cases, it's
26315 # just an empty string.
26316 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
26317 ac_dB='\\)[ (].*,\\1define\\2'
26318 ac_dC=' '
26319 ac_dD=' ,'
26321 uniq confdefs.h |
26322 sed -n '
26323 t rset
26324 :rset
26325 s/^[ ]*#[ ]*define[ ][ ]*//
26326 t ok
26329 s/[\\&,]/\\&/g
26330 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
26331 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
26332 ' >>conftest.defines
26334 # Remove the space that was appended to ease matching.
26335 # Then replace #undef with comments. This is necessary, for
26336 # example, in the case of _POSIX_SOURCE, which is predefined and required
26337 # on some systems where configure will not decide to define it.
26338 # (The regexp can be short, since the line contains either #define or #undef.)
26339 echo 's/ $//
26340 s,^[ #]*u.*,/* & */,' >>conftest.defines
26342 # Break up conftest.defines:
26343 ac_max_sed_lines=50
26345 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
26346 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
26347 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
26348 # et cetera.
26349 ac_in='$ac_file_inputs'
26350 ac_out='"$tmp/out1"'
26351 ac_nxt='"$tmp/out2"'
26353 while :
26355 # Write a here document:
26356 cat >>$CONFIG_STATUS <<_ACEOF
26357 # First, check the format of the line:
26358 cat >"\$tmp/defines.sed" <<\\CEOF
26359 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
26360 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
26362 :def
26363 _ACEOF
26364 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
26365 echo 'CEOF
26366 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
26367 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
26368 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
26369 grep . conftest.tail >/dev/null || break
26370 rm -f conftest.defines
26371 mv conftest.tail conftest.defines
26372 done
26373 rm -f conftest.defines conftest.tail
26375 echo "ac_result=$ac_in" >>$CONFIG_STATUS
26376 cat >>$CONFIG_STATUS <<\_ACEOF
26377 if test x"$ac_file" != x-; then
26378 echo "/* $configure_input */" >"$tmp/config.h"
26379 cat "$ac_result" >>"$tmp/config.h"
26380 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
26381 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
26382 echo "$as_me: $ac_file is unchanged" >&6;}
26383 else
26384 rm -f $ac_file
26385 mv "$tmp/config.h" $ac_file
26387 else
26388 echo "/* $configure_input */"
26389 cat "$ac_result"
26391 rm -f "$tmp/out12"
26395 esac
26397 done # for ac_tag
26400 { (exit 0); exit 0; }
26401 _ACEOF
26402 chmod +x $CONFIG_STATUS
26403 ac_clean_files=$ac_clean_files_save
26406 # configure is writing to config.log, and then calls config.status.
26407 # config.status does its own redirection, appending to config.log.
26408 # Unfortunately, on DOS this fails, as config.log is still kept open
26409 # by configure, so config.status won't be able to write to it; its
26410 # output is simply discarded. So we exec the FD to /dev/null,
26411 # effectively closing config.log, so it can be properly (re)opened and
26412 # appended to by config.status. When coming back to configure, we
26413 # need to make the FD available again.
26414 if test "$no_create" != yes; then
26415 ac_cs_success=:
26416 ac_config_status_args=
26417 test "$silent" = yes &&
26418 ac_config_status_args="$ac_config_status_args --quiet"
26419 exec 5>/dev/null
26420 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
26421 exec 5>>config.log
26422 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
26423 # would make configure fail if this is the last instruction.
26424 $ac_cs_success || { (exit 1); exit 1; }
26428 echo "creating Modules/Setup"
26429 if test ! -f Modules/Setup
26430 then
26431 cp $srcdir/Modules/Setup.dist Modules/Setup
26434 echo "creating Modules/Setup.local"
26435 if test ! -f Modules/Setup.local
26436 then
26437 echo "# Edit this file for local setup changes" >Modules/Setup.local
26440 echo "creating Makefile"
26441 $SHELL $srcdir/Modules/makesetup -c $srcdir/Modules/config.c.in \
26442 -s Modules Modules/Setup.config \
26443 Modules/Setup.local Modules/Setup
26445 case $ac_sys_system in
26446 BeOS)
26447 { echo "$as_me:$LINENO: WARNING:
26449 Support for BeOS is deprecated as of Python 2.6.
26450 See PEP 11 for the gory details.
26451 " >&5
26452 echo "$as_me: WARNING:
26454 Support for BeOS is deprecated as of Python 2.6.
26455 See PEP 11 for the gory details.
26456 " >&2;}
26458 *) ;;
26459 esac
26461 mv config.c Modules