Silence some SyntaxWarnings for tuple unpacking in a parameter list for
[python.git] / configure
blob3656e6256936145504349f736081a118c06d0633
1 #! /bin/sh
2 # From configure.in Revision: 65061 .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.61 for python 2.6.
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.6'
579 PACKAGE_STRING='python 2.6'
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.6 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.6:";;
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-unicode[=ucs[24]]
1328 Enable Unicode strings (default is yes)
1330 Optional Packages:
1331 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1332 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1333 --with-universal-archs=ARCH
1334 select architectures for universal build ("32-bit",
1335 "64-bit" or "all")
1336 --with-framework-name=FRAMEWORK
1337 specify an alternate name of the framework built
1338 with --enable-framework
1339 --without-gcc never use gcc
1340 --with-cxx-main=<compiler>
1341 compile main() and link python executable with C++
1342 compiler
1343 --with-suffix=.exe set executable suffix
1344 --with-pydebug build with Py_DEBUG defined
1345 --with-libs='lib1 ...' link against additional libs
1346 --with-system-ffi build _ctypes module using an installed ffi library
1347 --with-signal-module disable/enable signal module
1348 --with-dec-threads use DEC Alpha/OSF1 thread-safe libraries
1349 --with(out)-threads[=DIRECTORY]
1350 disable/enable thread support
1351 --with(out)-thread[=DIRECTORY]
1352 deprecated; use --with(out)-threads
1353 --with-pth use GNU pth threading libraries
1354 --with(out)-doc-strings disable/enable documentation strings
1355 --with(out)-tsc enable/disable timestamp counter profile
1356 --with(out)-pymalloc disable/enable specialized mallocs
1357 --with-wctype-functions use wctype.h functions
1358 --with-fpectl enable SIGFPE catching
1359 --with-libm=STRING math library
1360 --with-libc=STRING C library
1362 Some influential environment variables:
1363 CC C compiler command
1364 CFLAGS C compiler flags
1365 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1366 nonstandard directory <lib dir>
1367 LIBS libraries to pass to the linker, e.g. -l<library>
1368 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1369 you have headers in a nonstandard directory <include dir>
1370 CPP C preprocessor
1372 Use these variables to override the choices made by `configure' or to help
1373 it to find libraries and programs with nonstandard names/locations.
1375 Report bugs to <http://www.python.org/python-bugs>.
1376 _ACEOF
1377 ac_status=$?
1380 if test "$ac_init_help" = "recursive"; then
1381 # If there are subdirs, report their specific --help.
1382 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1383 test -d "$ac_dir" || continue
1384 ac_builddir=.
1386 case "$ac_dir" in
1387 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1389 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1390 # A ".." for each directory in $ac_dir_suffix.
1391 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1392 case $ac_top_builddir_sub in
1393 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1394 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1395 esac ;;
1396 esac
1397 ac_abs_top_builddir=$ac_pwd
1398 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1399 # for backward compatibility:
1400 ac_top_builddir=$ac_top_build_prefix
1402 case $srcdir in
1403 .) # We are building in place.
1404 ac_srcdir=.
1405 ac_top_srcdir=$ac_top_builddir_sub
1406 ac_abs_top_srcdir=$ac_pwd ;;
1407 [\\/]* | ?:[\\/]* ) # Absolute name.
1408 ac_srcdir=$srcdir$ac_dir_suffix;
1409 ac_top_srcdir=$srcdir
1410 ac_abs_top_srcdir=$srcdir ;;
1411 *) # Relative name.
1412 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1413 ac_top_srcdir=$ac_top_build_prefix$srcdir
1414 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1415 esac
1416 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1418 cd "$ac_dir" || { ac_status=$?; continue; }
1419 # Check for guested configure.
1420 if test -f "$ac_srcdir/configure.gnu"; then
1421 echo &&
1422 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1423 elif test -f "$ac_srcdir/configure"; then
1424 echo &&
1425 $SHELL "$ac_srcdir/configure" --help=recursive
1426 else
1427 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1428 fi || ac_status=$?
1429 cd "$ac_pwd" || { ac_status=$?; break; }
1430 done
1433 test -n "$ac_init_help" && exit $ac_status
1434 if $ac_init_version; then
1435 cat <<\_ACEOF
1436 python configure 2.6
1437 generated by GNU Autoconf 2.61
1439 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1440 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1441 This configure script is free software; the Free Software Foundation
1442 gives unlimited permission to copy, distribute and modify it.
1443 _ACEOF
1444 exit
1446 cat >config.log <<_ACEOF
1447 This file contains any messages produced by compilers while
1448 running configure, to aid debugging if configure makes a mistake.
1450 It was created by python $as_me 2.6, which was
1451 generated by GNU Autoconf 2.61. Invocation command line was
1453 $ $0 $@
1455 _ACEOF
1456 exec 5>>config.log
1458 cat <<_ASUNAME
1459 ## --------- ##
1460 ## Platform. ##
1461 ## --------- ##
1463 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1464 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1465 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1466 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1467 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1469 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1470 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1472 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1473 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1474 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1475 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1476 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1477 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1478 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1480 _ASUNAME
1482 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1483 for as_dir in $PATH
1485 IFS=$as_save_IFS
1486 test -z "$as_dir" && as_dir=.
1487 echo "PATH: $as_dir"
1488 done
1489 IFS=$as_save_IFS
1491 } >&5
1493 cat >&5 <<_ACEOF
1496 ## ----------- ##
1497 ## Core tests. ##
1498 ## ----------- ##
1500 _ACEOF
1503 # Keep a trace of the command line.
1504 # Strip out --no-create and --no-recursion so they do not pile up.
1505 # Strip out --silent because we don't want to record it for future runs.
1506 # Also quote any args containing shell meta-characters.
1507 # Make two passes to allow for proper duplicate-argument suppression.
1508 ac_configure_args=
1509 ac_configure_args0=
1510 ac_configure_args1=
1511 ac_must_keep_next=false
1512 for ac_pass in 1 2
1514 for ac_arg
1516 case $ac_arg in
1517 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1518 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1519 | -silent | --silent | --silen | --sile | --sil)
1520 continue ;;
1521 *\'*)
1522 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1523 esac
1524 case $ac_pass in
1525 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1527 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1528 if test $ac_must_keep_next = true; then
1529 ac_must_keep_next=false # Got value, back to normal.
1530 else
1531 case $ac_arg in
1532 *=* | --config-cache | -C | -disable-* | --disable-* \
1533 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1534 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1535 | -with-* | --with-* | -without-* | --without-* | --x)
1536 case "$ac_configure_args0 " in
1537 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1538 esac
1540 -* ) ac_must_keep_next=true ;;
1541 esac
1543 ac_configure_args="$ac_configure_args '$ac_arg'"
1545 esac
1546 done
1547 done
1548 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1549 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1551 # When interrupted or exit'd, cleanup temporary files, and complete
1552 # config.log. We remove comments because anyway the quotes in there
1553 # would cause problems or look ugly.
1554 # WARNING: Use '\'' to represent an apostrophe within the trap.
1555 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1556 trap 'exit_status=$?
1557 # Save into config.log some information that might help in debugging.
1559 echo
1561 cat <<\_ASBOX
1562 ## ---------------- ##
1563 ## Cache variables. ##
1564 ## ---------------- ##
1565 _ASBOX
1566 echo
1567 # The following way of writing the cache mishandles newlines in values,
1569 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1570 eval ac_val=\$$ac_var
1571 case $ac_val in #(
1572 *${as_nl}*)
1573 case $ac_var in #(
1574 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1575 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1576 esac
1577 case $ac_var in #(
1578 _ | IFS | as_nl) ;; #(
1579 *) $as_unset $ac_var ;;
1580 esac ;;
1581 esac
1582 done
1583 (set) 2>&1 |
1584 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1585 *${as_nl}ac_space=\ *)
1586 sed -n \
1587 "s/'\''/'\''\\\\'\'''\''/g;
1588 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1589 ;; #(
1591 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1593 esac |
1594 sort
1596 echo
1598 cat <<\_ASBOX
1599 ## ----------------- ##
1600 ## Output variables. ##
1601 ## ----------------- ##
1602 _ASBOX
1603 echo
1604 for ac_var in $ac_subst_vars
1606 eval ac_val=\$$ac_var
1607 case $ac_val in
1608 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1609 esac
1610 echo "$ac_var='\''$ac_val'\''"
1611 done | sort
1612 echo
1614 if test -n "$ac_subst_files"; then
1615 cat <<\_ASBOX
1616 ## ------------------- ##
1617 ## File substitutions. ##
1618 ## ------------------- ##
1619 _ASBOX
1620 echo
1621 for ac_var in $ac_subst_files
1623 eval ac_val=\$$ac_var
1624 case $ac_val in
1625 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1626 esac
1627 echo "$ac_var='\''$ac_val'\''"
1628 done | sort
1629 echo
1632 if test -s confdefs.h; then
1633 cat <<\_ASBOX
1634 ## ----------- ##
1635 ## confdefs.h. ##
1636 ## ----------- ##
1637 _ASBOX
1638 echo
1639 cat confdefs.h
1640 echo
1642 test "$ac_signal" != 0 &&
1643 echo "$as_me: caught signal $ac_signal"
1644 echo "$as_me: exit $exit_status"
1645 } >&5
1646 rm -f core *.core core.conftest.* &&
1647 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1648 exit $exit_status
1650 for ac_signal in 1 2 13 15; do
1651 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1652 done
1653 ac_signal=0
1655 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1656 rm -f -r conftest* confdefs.h
1658 # Predefined preprocessor variables.
1660 cat >>confdefs.h <<_ACEOF
1661 #define PACKAGE_NAME "$PACKAGE_NAME"
1662 _ACEOF
1665 cat >>confdefs.h <<_ACEOF
1666 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1667 _ACEOF
1670 cat >>confdefs.h <<_ACEOF
1671 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1672 _ACEOF
1675 cat >>confdefs.h <<_ACEOF
1676 #define PACKAGE_STRING "$PACKAGE_STRING"
1677 _ACEOF
1680 cat >>confdefs.h <<_ACEOF
1681 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1682 _ACEOF
1685 # Let the site file select an alternate cache file if it wants to.
1686 # Prefer explicitly selected file to automatically selected ones.
1687 if test -n "$CONFIG_SITE"; then
1688 set x "$CONFIG_SITE"
1689 elif test "x$prefix" != xNONE; then
1690 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1691 else
1692 set x "$ac_default_prefix/share/config.site" \
1693 "$ac_default_prefix/etc/config.site"
1695 shift
1696 for ac_site_file
1698 if test -r "$ac_site_file"; then
1699 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1700 echo "$as_me: loading site script $ac_site_file" >&6;}
1701 sed 's/^/| /' "$ac_site_file" >&5
1702 . "$ac_site_file"
1704 done
1706 if test -r "$cache_file"; then
1707 # Some versions of bash will fail to source /dev/null (special
1708 # files actually), so we avoid doing that.
1709 if test -f "$cache_file"; then
1710 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1711 echo "$as_me: loading cache $cache_file" >&6;}
1712 case $cache_file in
1713 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1714 *) . "./$cache_file";;
1715 esac
1717 else
1718 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1719 echo "$as_me: creating cache $cache_file" >&6;}
1720 >$cache_file
1723 # Check that the precious variables saved in the cache have kept the same
1724 # value.
1725 ac_cache_corrupted=false
1726 for ac_var in $ac_precious_vars; do
1727 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1728 eval ac_new_set=\$ac_env_${ac_var}_set
1729 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1730 eval ac_new_val=\$ac_env_${ac_var}_value
1731 case $ac_old_set,$ac_new_set in
1732 set,)
1733 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1734 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1735 ac_cache_corrupted=: ;;
1736 ,set)
1737 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1738 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1739 ac_cache_corrupted=: ;;
1740 ,);;
1742 if test "x$ac_old_val" != "x$ac_new_val"; then
1743 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1744 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1745 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1746 echo "$as_me: former value: $ac_old_val" >&2;}
1747 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1748 echo "$as_me: current value: $ac_new_val" >&2;}
1749 ac_cache_corrupted=:
1750 fi;;
1751 esac
1752 # Pass precious variables to config.status.
1753 if test "$ac_new_set" = set; then
1754 case $ac_new_val in
1755 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1756 *) ac_arg=$ac_var=$ac_new_val ;;
1757 esac
1758 case " $ac_configure_args " in
1759 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1760 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1761 esac
1763 done
1764 if $ac_cache_corrupted; then
1765 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1766 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1767 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1768 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1769 { (exit 1); exit 1; }; }
1796 ac_ext=c
1797 ac_cpp='$CPP $CPPFLAGS'
1798 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1799 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1800 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1804 ac_config_headers="$ac_config_headers pyconfig.h"
1812 # We don't use PACKAGE_ variables, and they cause conflicts
1813 # with other autoconf-based packages that include Python.h
1814 grep -v 'define PACKAGE_' <confdefs.h >confdefs.h.new
1815 rm confdefs.h
1816 mv confdefs.h.new confdefs.h
1819 VERSION=2.6
1822 SOVERSION=1.0
1824 # The later defininition of _XOPEN_SOURCE disables certain features
1825 # on Linux, so we need _GNU_SOURCE to re-enable them (makedev, tm_zone).
1827 cat >>confdefs.h <<\_ACEOF
1828 #define _GNU_SOURCE 1
1829 _ACEOF
1832 # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables
1833 # certain features on NetBSD, so we need _NETBSD_SOURCE to re-enable
1834 # them.
1836 cat >>confdefs.h <<\_ACEOF
1837 #define _NETBSD_SOURCE 1
1838 _ACEOF
1841 # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables
1842 # certain features on FreeBSD, so we need __BSD_VISIBLE to re-enable
1843 # them.
1845 cat >>confdefs.h <<\_ACEOF
1846 #define __BSD_VISIBLE 1
1847 _ACEOF
1850 # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables
1851 # u_int on Irix 5.3. Defining _BSD_TYPES brings it back.
1853 cat >>confdefs.h <<\_ACEOF
1854 #define _BSD_TYPES 1
1855 _ACEOF
1858 # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables
1859 # certain features on Mac OS X, so we need _DARWIN_C_SOURCE to re-enable
1860 # them.
1862 cat >>confdefs.h <<\_ACEOF
1863 #define _DARWIN_C_SOURCE 1
1864 _ACEOF
1868 define_xopen_source=yes
1870 # Arguments passed to configure.
1872 CONFIG_ARGS="$ac_configure_args"
1874 # Check whether --enable-universalsdk was given.
1875 if test "${enable_universalsdk+set}" = set; then
1876 enableval=$enable_universalsdk;
1877 case $enableval in
1878 yes)
1879 enableval=/Developer/SDKs/MacOSX10.4u.sdk
1881 esac
1882 case $enableval in
1884 UNIVERSALSDK=
1885 enable_universalsdk=
1888 UNIVERSALSDK=$enableval
1890 esac
1892 else
1894 UNIVERSALSDK=
1895 enable_universalsdk=
1901 ARCH_RUN_32BIT=
1904 UNIVERSAL_ARCHS="32-bit"
1905 { echo "$as_me:$LINENO: checking for --with-universal-archs" >&5
1906 echo $ECHO_N "checking for --with-universal-archs... $ECHO_C" >&6; }
1908 # Check whether --with-universal-archs was given.
1909 if test "${with_universal_archs+set}" = set; then
1910 withval=$with_universal_archs;
1911 { echo "$as_me:$LINENO: result: $withval" >&5
1912 echo "${ECHO_T}$withval" >&6; }
1913 UNIVERSAL_ARCHS="$withval"
1915 else
1917 { echo "$as_me:$LINENO: result: 32-bit" >&5
1918 echo "${ECHO_T}32-bit" >&6; }
1926 # Check whether --with-framework-name was given.
1927 if test "${with_framework_name+set}" = set; then
1928 withval=$with_framework_name;
1929 PYTHONFRAMEWORK=${withval}
1930 PYTHONFRAMEWORKDIR=${withval}.framework
1931 PYTHONFRAMEWORKIDENTIFIER=org.python.`echo $withval | tr 'A-Z' 'a-z'`
1933 else
1935 PYTHONFRAMEWORK=Python
1936 PYTHONFRAMEWORKDIR=Python.framework
1937 PYTHONFRAMEWORKIDENTIFIER=org.python.python
1941 # Check whether --enable-framework was given.
1942 if test "${enable_framework+set}" = set; then
1943 enableval=$enable_framework;
1944 case $enableval in
1945 yes)
1946 enableval=/Library/Frameworks
1947 esac
1948 case $enableval in
1950 PYTHONFRAMEWORK=
1951 PYTHONFRAMEWORKDIR=no-framework
1952 PYTHONFRAMEWORKPREFIX=
1953 PYTHONFRAMEWORKINSTALLDIR=
1954 FRAMEWORKINSTALLFIRST=
1955 FRAMEWORKINSTALLLAST=
1956 FRAMEWORKALTINSTALLFIRST=
1957 FRAMEWORKALTINSTALLLAST=
1958 if test "x${prefix}" = "xNONE"; then
1959 FRAMEWORKUNIXTOOLSPREFIX="${ac_default_prefix}"
1960 else
1961 FRAMEWORKUNIXTOOLSPREFIX="${prefix}"
1963 enable_framework=
1966 PYTHONFRAMEWORKPREFIX=$enableval
1967 PYTHONFRAMEWORKINSTALLDIR=$PYTHONFRAMEWORKPREFIX/$PYTHONFRAMEWORKDIR
1968 FRAMEWORKINSTALLFIRST="frameworkinstallstructure"
1969 FRAMEWORKALTINSTALLFIRST="frameworkinstallstructure bininstall maninstall"
1970 if test "$UNIVERSAL_ARCHS" = "all"
1971 then
1972 FRAMEWORKINSTALLLAST="frameworkinstallmaclib frameworkinstallapps4way frameworkinstallunixtools4way"
1973 else
1974 FRAMEWORKALTINSTALLLAST="frameworkinstallmaclib frameworkinstallapps frameworkaltinstallunixtools"
1977 if test "x${prefix}" = "xNONE" ; then
1978 FRAMEWORKUNIXTOOLSPREFIX="${ac_default_prefix}"
1979 else
1980 FRAMEWORKUNIXTOOLSPREFIX="${prefix}"
1982 prefix=$PYTHONFRAMEWORKINSTALLDIR/Versions/$VERSION
1984 # Add files for Mac specific code to the list of output
1985 # files:
1986 ac_config_files="$ac_config_files Mac/Makefile"
1988 ac_config_files="$ac_config_files Mac/PythonLauncher/Makefile"
1990 ac_config_files="$ac_config_files Mac/IDLE/Makefile"
1992 ac_config_files="$ac_config_files Mac/Resources/framework/Info.plist"
1994 ac_config_files="$ac_config_files Mac/Resources/app/Info.plist"
1996 esac
1998 else
2000 PYTHONFRAMEWORK=
2001 PYTHONFRAMEWORKDIR=no-framework
2002 PYTHONFRAMEWORKPREFIX=
2003 PYTHONFRAMEWORKINSTALLDIR=
2004 FRAMEWORKINSTALLFIRST=
2005 FRAMEWORKINSTALLLAST=
2006 FRAMEWORKALTINSTALLFIRST=
2007 FRAMEWORKALTINSTALLLAST=
2008 if test "x${prefix}" = "xNONE" ; then
2009 FRAMEWORKUNIXTOOLSPREFIX="${ac_default_prefix}"
2010 else
2011 FRAMEWORKUNIXTOOLSPREFIX="${prefix}"
2013 enable_framework=
2015 if test "$UNIVERSAL_ARCHS" = "all"
2016 then
2017 FRAMEWORKINSTALLLAST=update4wayuniversal
2018 FRAMEWORKALTINSTALLLAST=update4wayuniversal
2034 ##AC_ARG_WITH(dyld,
2035 ## AC_HELP_STRING(--with-dyld,
2036 ## Use (OpenStep|Rhapsody) dynamic linker))
2038 # Set name for machine-dependent library files
2040 { echo "$as_me:$LINENO: checking MACHDEP" >&5
2041 echo $ECHO_N "checking MACHDEP... $ECHO_C" >&6; }
2042 if test -z "$MACHDEP"
2043 then
2044 ac_sys_system=`uname -s`
2045 if test "$ac_sys_system" = "AIX" -o "$ac_sys_system" = "Monterey64" \
2046 -o "$ac_sys_system" = "UnixWare" -o "$ac_sys_system" = "OpenUNIX"; then
2047 ac_sys_release=`uname -v`
2048 else
2049 ac_sys_release=`uname -r`
2051 ac_md_system=`echo $ac_sys_system |
2052 tr -d '/ ' | tr '[A-Z]' '[a-z]'`
2053 ac_md_release=`echo $ac_sys_release |
2054 tr -d '/ ' | sed 's/^[A-Z]\.//' | sed 's/\..*//'`
2055 MACHDEP="$ac_md_system$ac_md_release"
2057 case $MACHDEP in
2058 cygwin*) MACHDEP="cygwin";;
2059 darwin*) MACHDEP="darwin";;
2060 atheos*) MACHDEP="atheos";;
2061 irix646) MACHDEP="irix6";;
2062 '') MACHDEP="unknown";;
2063 esac
2066 # Some systems cannot stand _XOPEN_SOURCE being defined at all; they
2067 # disable features if it is defined, without any means to access these
2068 # features as extensions. For these systems, we skip the definition of
2069 # _XOPEN_SOURCE. Before adding a system to the list to gain access to
2070 # some feature, make sure there is no alternative way to access this
2071 # feature. Also, when using wildcards, make sure you have verified the
2072 # need for not defining _XOPEN_SOURCE on all systems matching the
2073 # wildcard, and that the wildcard does not include future systems
2074 # (which may remove their limitations).
2075 case $ac_sys_system/$ac_sys_release in
2076 # On OpenBSD, select(2) is not available if _XOPEN_SOURCE is defined,
2077 # even though select is a POSIX function. Reported by J. Ribbens.
2078 # Reconfirmed for OpenBSD 3.3 by Zachary Hamm, for 3.4 by Jason Ish.
2079 OpenBSD/2.* | OpenBSD/3.[0123456789] | OpenBSD/4.[0123])
2080 define_xopen_source=no
2081 # OpenBSD undoes our definition of __BSD_VISIBLE if _XOPEN_SOURCE is
2082 # also defined. This can be overridden by defining _BSD_SOURCE
2083 # As this has a different meaning on Linux, only define it on OpenBSD
2085 cat >>confdefs.h <<\_ACEOF
2086 #define _BSD_SOURCE 1
2087 _ACEOF
2090 # Defining _XOPEN_SOURCE on NetBSD version prior to the introduction of
2091 # _NETBSD_SOURCE disables certain features (eg. setgroups). Reported by
2092 # Marc Recht
2093 NetBSD/1.5 | NetBSD/1.5.* | NetBSD/1.6 | NetBSD/1.6.* | NetBSD/1.6A-S)
2094 define_xopen_source=no;;
2095 # On Solaris 2.6, sys/wait.h is inconsistent in the usage
2096 # of union __?sigval. Reported by Stuart Bishop.
2097 SunOS/5.6)
2098 define_xopen_source=no;;
2099 # On UnixWare 7, u_long is never defined with _XOPEN_SOURCE,
2100 # but used in /usr/include/netinet/tcp.h. Reported by Tim Rice.
2101 # Reconfirmed for 7.1.4 by Martin v. Loewis.
2102 OpenUNIX/8.0.0| UnixWare/7.1.[0-4])
2103 define_xopen_source=no;;
2104 # On OpenServer 5, u_short is never defined with _XOPEN_SOURCE,
2105 # but used in struct sockaddr.sa_family. Reported by Tim Rice.
2106 SCO_SV/3.2)
2107 define_xopen_source=no;;
2108 # On FreeBSD 4.8 and MacOS X 10.2, a bug in ncurses.h means that
2109 # it craps out if _XOPEN_EXTENDED_SOURCE is defined. Apparently,
2110 # this is fixed in 10.3, which identifies itself as Darwin/7.*
2111 # This should hopefully be fixed in FreeBSD 4.9
2112 FreeBSD/4.8* | Darwin/6* )
2113 define_xopen_source=no;;
2114 # On AIX 4 and 5.1, mbstate_t is defined only when _XOPEN_SOURCE == 500 but
2115 # used in wcsnrtombs() and mbsnrtowcs() even if _XOPEN_SOURCE is not defined
2116 # or has another value. By not (re)defining it, the defaults come in place.
2117 AIX/4)
2118 define_xopen_source=no;;
2119 AIX/5)
2120 if test `uname -r` -eq 1; then
2121 define_xopen_source=no
2124 # On Mac OS X 10.4, defining _POSIX_C_SOURCE or _XOPEN_SOURCE
2125 # disables platform specific features beyond repair.
2126 # On Mac OS X 10.3, defining _POSIX_C_SOURCE or _XOPEN_SOURCE
2127 # has no effect, don't bother defining them
2128 Darwin/[789].*)
2129 define_xopen_source=no
2131 # On QNX 6.3.2, defining _XOPEN_SOURCE prevents netdb.h from
2132 # defining NI_NUMERICHOST.
2133 QNX/6.3.2)
2134 define_xopen_source=no
2137 esac
2139 if test $define_xopen_source = yes
2140 then
2141 # On Solaris w/ g++ it appears that _XOPEN_SOURCE has to be
2142 # defined precisely as g++ defines it
2143 # Furthermore, on Solaris 10, XPG6 requires the use of a C99
2144 # compiler
2145 case $ac_sys_system/$ac_sys_release in
2146 SunOS/5.8|SunOS/5.9|SunOS/5.10)
2148 cat >>confdefs.h <<\_ACEOF
2149 #define _XOPEN_SOURCE 500
2150 _ACEOF
2155 cat >>confdefs.h <<\_ACEOF
2156 #define _XOPEN_SOURCE 600
2157 _ACEOF
2160 esac
2162 # On Tru64 Unix 4.0F, defining _XOPEN_SOURCE also requires
2163 # definition of _XOPEN_SOURCE_EXTENDED and _POSIX_C_SOURCE, or else
2164 # several APIs are not declared. Since this is also needed in some
2165 # cases for HP-UX, we define it globally.
2166 # except for Solaris 10, where it must not be defined,
2167 # as it implies XPG4.2
2168 case $ac_sys_system/$ac_sys_release in
2169 SunOS/5.10)
2173 cat >>confdefs.h <<\_ACEOF
2174 #define _XOPEN_SOURCE_EXTENDED 1
2175 _ACEOF
2178 esac
2181 cat >>confdefs.h <<\_ACEOF
2182 #define _POSIX_C_SOURCE 200112L
2183 _ACEOF
2189 # SGI compilers allow the specification of the both the ABI and the
2190 # ISA on the command line. Depending on the values of these switches,
2191 # different and often incompatable code will be generated.
2193 # The SGI_ABI variable can be used to modify the CC and LDFLAGS and
2194 # thus supply support for various ABI/ISA combinations. The MACHDEP
2195 # variable is also adjusted.
2198 if test ! -z "$SGI_ABI"
2199 then
2200 CC="cc $SGI_ABI"
2201 LDFLAGS="$SGI_ABI $LDFLAGS"
2202 MACHDEP=`echo "${MACHDEP}${SGI_ABI}" | sed 's/ *//g'`
2204 { echo "$as_me:$LINENO: result: $MACHDEP" >&5
2205 echo "${ECHO_T}$MACHDEP" >&6; }
2207 # And add extra plat-mac for darwin
2210 { echo "$as_me:$LINENO: checking EXTRAPLATDIR" >&5
2211 echo $ECHO_N "checking EXTRAPLATDIR... $ECHO_C" >&6; }
2212 if test -z "$EXTRAPLATDIR"
2213 then
2214 case $MACHDEP in
2215 darwin)
2216 EXTRAPLATDIR="\$(PLATMACDIRS)"
2217 EXTRAMACHDEPPATH="\$(PLATMACPATH)"
2220 EXTRAPLATDIR=""
2221 EXTRAMACHDEPPATH=""
2223 esac
2225 { echo "$as_me:$LINENO: result: $EXTRAPLATDIR" >&5
2226 echo "${ECHO_T}$EXTRAPLATDIR" >&6; }
2228 # Record the configure-time value of MACOSX_DEPLOYMENT_TARGET,
2229 # it may influence the way we can build extensions, so distutils
2230 # needs to check it
2233 CONFIGURE_MACOSX_DEPLOYMENT_TARGET=
2234 EXPORT_MACOSX_DEPLOYMENT_TARGET='#'
2236 { echo "$as_me:$LINENO: checking machine type as reported by uname -m" >&5
2237 echo $ECHO_N "checking machine type as reported by uname -m... $ECHO_C" >&6; }
2238 ac_sys_machine=`uname -m`
2239 { echo "$as_me:$LINENO: result: $ac_sys_machine" >&5
2240 echo "${ECHO_T}$ac_sys_machine" >&6; }
2242 # checks for alternative programs
2244 # compiler flags are generated in two sets, BASECFLAGS and OPT. OPT is just
2245 # for debug/optimization stuff. BASECFLAGS is for flags that are required
2246 # just to get things to compile and link. Users are free to override OPT
2247 # when running configure or make. The build should not break if they do.
2248 # BASECFLAGS should generally not be messed with, however.
2250 # XXX shouldn't some/most/all of this code be merged with the stuff later
2251 # on that fiddles with OPT and BASECFLAGS?
2252 { echo "$as_me:$LINENO: checking for --without-gcc" >&5
2253 echo $ECHO_N "checking for --without-gcc... $ECHO_C" >&6; }
2255 # Check whether --with-gcc was given.
2256 if test "${with_gcc+set}" = set; then
2257 withval=$with_gcc;
2258 case $withval in
2259 no) CC=cc
2260 without_gcc=yes;;
2261 yes) CC=gcc
2262 without_gcc=no;;
2263 *) CC=$withval
2264 without_gcc=$withval;;
2265 esac
2266 else
2268 case $ac_sys_system in
2269 AIX*) CC=cc_r
2270 without_gcc=;;
2271 BeOS*)
2272 case $BE_HOST_CPU in
2273 ppc)
2274 CC=mwcc
2275 without_gcc=yes
2276 BASECFLAGS="$BASECFLAGS -export pragma"
2277 OPT="$OPT -O"
2278 LDFLAGS="$LDFLAGS -nodup"
2280 x86)
2281 CC=gcc
2282 without_gcc=no
2283 OPT="$OPT -O"
2286 { { echo "$as_me:$LINENO: error: Unknown BeOS platform \"$BE_HOST_CPU\"" >&5
2287 echo "$as_me: error: Unknown BeOS platform \"$BE_HOST_CPU\"" >&2;}
2288 { (exit 1); exit 1; }; }
2290 esac
2291 AR="\$(srcdir)/Modules/ar_beos"
2292 RANLIB=:
2294 Monterey*)
2295 RANLIB=:
2296 without_gcc=;;
2297 *) without_gcc=no;;
2298 esac
2301 { echo "$as_me:$LINENO: result: $without_gcc" >&5
2302 echo "${ECHO_T}$without_gcc" >&6; }
2304 # If the user switches compilers, we can't believe the cache
2305 if test ! -z "$ac_cv_prog_CC" -a ! -z "$CC" -a "$CC" != "$ac_cv_prog_CC"
2306 then
2307 { { echo "$as_me:$LINENO: error: cached CC is different -- throw away $cache_file
2308 (it is also a good idea to do 'make clean' before compiling)" >&5
2309 echo "$as_me: error: cached CC is different -- throw away $cache_file
2310 (it is also a good idea to do 'make clean' before compiling)" >&2;}
2311 { (exit 1); exit 1; }; }
2314 ac_ext=c
2315 ac_cpp='$CPP $CPPFLAGS'
2316 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2317 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2318 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2319 if test -n "$ac_tool_prefix"; then
2320 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2321 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2322 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2323 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2324 if test "${ac_cv_prog_CC+set}" = set; then
2325 echo $ECHO_N "(cached) $ECHO_C" >&6
2326 else
2327 if test -n "$CC"; then
2328 ac_cv_prog_CC="$CC" # Let the user override the test.
2329 else
2330 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2331 for as_dir in $PATH
2333 IFS=$as_save_IFS
2334 test -z "$as_dir" && as_dir=.
2335 for ac_exec_ext in '' $ac_executable_extensions; do
2336 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2337 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2338 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2339 break 2
2341 done
2342 done
2343 IFS=$as_save_IFS
2347 CC=$ac_cv_prog_CC
2348 if test -n "$CC"; then
2349 { echo "$as_me:$LINENO: result: $CC" >&5
2350 echo "${ECHO_T}$CC" >&6; }
2351 else
2352 { echo "$as_me:$LINENO: result: no" >&5
2353 echo "${ECHO_T}no" >&6; }
2358 if test -z "$ac_cv_prog_CC"; then
2359 ac_ct_CC=$CC
2360 # Extract the first word of "gcc", so it can be a program name with args.
2361 set dummy gcc; ac_word=$2
2362 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2363 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2364 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2365 echo $ECHO_N "(cached) $ECHO_C" >&6
2366 else
2367 if test -n "$ac_ct_CC"; then
2368 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2369 else
2370 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2371 for as_dir in $PATH
2373 IFS=$as_save_IFS
2374 test -z "$as_dir" && as_dir=.
2375 for ac_exec_ext in '' $ac_executable_extensions; do
2376 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2377 ac_cv_prog_ac_ct_CC="gcc"
2378 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2379 break 2
2381 done
2382 done
2383 IFS=$as_save_IFS
2387 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2388 if test -n "$ac_ct_CC"; then
2389 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2390 echo "${ECHO_T}$ac_ct_CC" >&6; }
2391 else
2392 { echo "$as_me:$LINENO: result: no" >&5
2393 echo "${ECHO_T}no" >&6; }
2396 if test "x$ac_ct_CC" = x; then
2397 CC=""
2398 else
2399 case $cross_compiling:$ac_tool_warned in
2400 yes:)
2401 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2402 whose name does not start with the host triplet. If you think this
2403 configuration is useful to you, please write to autoconf@gnu.org." >&5
2404 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2405 whose name does not start with the host triplet. If you think this
2406 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2407 ac_tool_warned=yes ;;
2408 esac
2409 CC=$ac_ct_CC
2411 else
2412 CC="$ac_cv_prog_CC"
2415 if test -z "$CC"; then
2416 if test -n "$ac_tool_prefix"; then
2417 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2418 set dummy ${ac_tool_prefix}cc; ac_word=$2
2419 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2420 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2421 if test "${ac_cv_prog_CC+set}" = set; then
2422 echo $ECHO_N "(cached) $ECHO_C" >&6
2423 else
2424 if test -n "$CC"; then
2425 ac_cv_prog_CC="$CC" # Let the user override the test.
2426 else
2427 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2428 for as_dir in $PATH
2430 IFS=$as_save_IFS
2431 test -z "$as_dir" && as_dir=.
2432 for ac_exec_ext in '' $ac_executable_extensions; do
2433 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2434 ac_cv_prog_CC="${ac_tool_prefix}cc"
2435 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2436 break 2
2438 done
2439 done
2440 IFS=$as_save_IFS
2444 CC=$ac_cv_prog_CC
2445 if test -n "$CC"; then
2446 { echo "$as_me:$LINENO: result: $CC" >&5
2447 echo "${ECHO_T}$CC" >&6; }
2448 else
2449 { echo "$as_me:$LINENO: result: no" >&5
2450 echo "${ECHO_T}no" >&6; }
2456 if test -z "$CC"; then
2457 # Extract the first word of "cc", so it can be a program name with args.
2458 set dummy cc; ac_word=$2
2459 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2460 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2461 if test "${ac_cv_prog_CC+set}" = set; then
2462 echo $ECHO_N "(cached) $ECHO_C" >&6
2463 else
2464 if test -n "$CC"; then
2465 ac_cv_prog_CC="$CC" # Let the user override the test.
2466 else
2467 ac_prog_rejected=no
2468 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2469 for as_dir in $PATH
2471 IFS=$as_save_IFS
2472 test -z "$as_dir" && as_dir=.
2473 for ac_exec_ext in '' $ac_executable_extensions; do
2474 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2475 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2476 ac_prog_rejected=yes
2477 continue
2479 ac_cv_prog_CC="cc"
2480 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2481 break 2
2483 done
2484 done
2485 IFS=$as_save_IFS
2487 if test $ac_prog_rejected = yes; then
2488 # We found a bogon in the path, so make sure we never use it.
2489 set dummy $ac_cv_prog_CC
2490 shift
2491 if test $# != 0; then
2492 # We chose a different compiler from the bogus one.
2493 # However, it has the same basename, so the bogon will be chosen
2494 # first if we set CC to just the basename; use the full file name.
2495 shift
2496 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2501 CC=$ac_cv_prog_CC
2502 if test -n "$CC"; then
2503 { echo "$as_me:$LINENO: result: $CC" >&5
2504 echo "${ECHO_T}$CC" >&6; }
2505 else
2506 { echo "$as_me:$LINENO: result: no" >&5
2507 echo "${ECHO_T}no" >&6; }
2512 if test -z "$CC"; then
2513 if test -n "$ac_tool_prefix"; then
2514 for ac_prog in cl.exe
2516 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2517 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2518 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2519 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2520 if test "${ac_cv_prog_CC+set}" = set; then
2521 echo $ECHO_N "(cached) $ECHO_C" >&6
2522 else
2523 if test -n "$CC"; then
2524 ac_cv_prog_CC="$CC" # Let the user override the test.
2525 else
2526 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2527 for as_dir in $PATH
2529 IFS=$as_save_IFS
2530 test -z "$as_dir" && as_dir=.
2531 for ac_exec_ext in '' $ac_executable_extensions; do
2532 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2533 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2534 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2535 break 2
2537 done
2538 done
2539 IFS=$as_save_IFS
2543 CC=$ac_cv_prog_CC
2544 if test -n "$CC"; then
2545 { echo "$as_me:$LINENO: result: $CC" >&5
2546 echo "${ECHO_T}$CC" >&6; }
2547 else
2548 { echo "$as_me:$LINENO: result: no" >&5
2549 echo "${ECHO_T}no" >&6; }
2553 test -n "$CC" && break
2554 done
2556 if test -z "$CC"; then
2557 ac_ct_CC=$CC
2558 for ac_prog in cl.exe
2560 # Extract the first word of "$ac_prog", so it can be a program name with args.
2561 set dummy $ac_prog; ac_word=$2
2562 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2563 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2564 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2565 echo $ECHO_N "(cached) $ECHO_C" >&6
2566 else
2567 if test -n "$ac_ct_CC"; then
2568 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2569 else
2570 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2571 for as_dir in $PATH
2573 IFS=$as_save_IFS
2574 test -z "$as_dir" && as_dir=.
2575 for ac_exec_ext in '' $ac_executable_extensions; do
2576 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2577 ac_cv_prog_ac_ct_CC="$ac_prog"
2578 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2579 break 2
2581 done
2582 done
2583 IFS=$as_save_IFS
2587 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2588 if test -n "$ac_ct_CC"; then
2589 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2590 echo "${ECHO_T}$ac_ct_CC" >&6; }
2591 else
2592 { echo "$as_me:$LINENO: result: no" >&5
2593 echo "${ECHO_T}no" >&6; }
2597 test -n "$ac_ct_CC" && break
2598 done
2600 if test "x$ac_ct_CC" = x; then
2601 CC=""
2602 else
2603 case $cross_compiling:$ac_tool_warned in
2604 yes:)
2605 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2606 whose name does not start with the host triplet. If you think this
2607 configuration is useful to you, please write to autoconf@gnu.org." >&5
2608 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2609 whose name does not start with the host triplet. If you think this
2610 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2611 ac_tool_warned=yes ;;
2612 esac
2613 CC=$ac_ct_CC
2620 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2621 See \`config.log' for more details." >&5
2622 echo "$as_me: error: no acceptable C compiler found in \$PATH
2623 See \`config.log' for more details." >&2;}
2624 { (exit 1); exit 1; }; }
2626 # Provide some information about the compiler.
2627 echo "$as_me:$LINENO: checking for C compiler version" >&5
2628 ac_compiler=`set X $ac_compile; echo $2`
2629 { (ac_try="$ac_compiler --version >&5"
2630 case "(($ac_try" in
2631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2632 *) ac_try_echo=$ac_try;;
2633 esac
2634 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2635 (eval "$ac_compiler --version >&5") 2>&5
2636 ac_status=$?
2637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2638 (exit $ac_status); }
2639 { (ac_try="$ac_compiler -v >&5"
2640 case "(($ac_try" in
2641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2642 *) ac_try_echo=$ac_try;;
2643 esac
2644 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2645 (eval "$ac_compiler -v >&5") 2>&5
2646 ac_status=$?
2647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2648 (exit $ac_status); }
2649 { (ac_try="$ac_compiler -V >&5"
2650 case "(($ac_try" in
2651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2652 *) ac_try_echo=$ac_try;;
2653 esac
2654 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2655 (eval "$ac_compiler -V >&5") 2>&5
2656 ac_status=$?
2657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2658 (exit $ac_status); }
2660 cat >conftest.$ac_ext <<_ACEOF
2661 /* confdefs.h. */
2662 _ACEOF
2663 cat confdefs.h >>conftest.$ac_ext
2664 cat >>conftest.$ac_ext <<_ACEOF
2665 /* end confdefs.h. */
2668 main ()
2672 return 0;
2674 _ACEOF
2675 ac_clean_files_save=$ac_clean_files
2676 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2677 # Try to create an executable without -o first, disregard a.out.
2678 # It will help us diagnose broken compilers, and finding out an intuition
2679 # of exeext.
2680 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2681 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2682 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2684 # List of possible output files, starting from the most likely.
2685 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2686 # only as a last resort. b.out is created by i960 compilers.
2687 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2689 # The IRIX 6 linker writes into existing files which may not be
2690 # executable, retaining their permissions. Remove them first so a
2691 # subsequent execution test works.
2692 ac_rmfiles=
2693 for ac_file in $ac_files
2695 case $ac_file in
2696 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2697 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2698 esac
2699 done
2700 rm -f $ac_rmfiles
2702 if { (ac_try="$ac_link_default"
2703 case "(($ac_try" in
2704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2705 *) ac_try_echo=$ac_try;;
2706 esac
2707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2708 (eval "$ac_link_default") 2>&5
2709 ac_status=$?
2710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2711 (exit $ac_status); }; then
2712 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2713 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2714 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2715 # so that the user can short-circuit this test for compilers unknown to
2716 # Autoconf.
2717 for ac_file in $ac_files ''
2719 test -f "$ac_file" || continue
2720 case $ac_file in
2721 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2723 [ab].out )
2724 # We found the default executable, but exeext='' is most
2725 # certainly right.
2726 break;;
2727 *.* )
2728 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2729 then :; else
2730 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2732 # We set ac_cv_exeext here because the later test for it is not
2733 # safe: cross compilers may not add the suffix if given an `-o'
2734 # argument, so we may need to know it at that point already.
2735 # Even if this section looks crufty: it has the advantage of
2736 # actually working.
2737 break;;
2739 break;;
2740 esac
2741 done
2742 test "$ac_cv_exeext" = no && ac_cv_exeext=
2744 else
2745 ac_file=''
2748 { echo "$as_me:$LINENO: result: $ac_file" >&5
2749 echo "${ECHO_T}$ac_file" >&6; }
2750 if test -z "$ac_file"; then
2751 echo "$as_me: failed program was:" >&5
2752 sed 's/^/| /' conftest.$ac_ext >&5
2754 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2755 See \`config.log' for more details." >&5
2756 echo "$as_me: error: C compiler cannot create executables
2757 See \`config.log' for more details." >&2;}
2758 { (exit 77); exit 77; }; }
2761 ac_exeext=$ac_cv_exeext
2763 # Check that the compiler produces executables we can run. If not, either
2764 # the compiler is broken, or we cross compile.
2765 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2766 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2767 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2768 # If not cross compiling, check that we can run a simple program.
2769 if test "$cross_compiling" != yes; then
2770 if { ac_try='./$ac_file'
2771 { (case "(($ac_try" in
2772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2773 *) ac_try_echo=$ac_try;;
2774 esac
2775 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2776 (eval "$ac_try") 2>&5
2777 ac_status=$?
2778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2779 (exit $ac_status); }; }; then
2780 cross_compiling=no
2781 else
2782 if test "$cross_compiling" = maybe; then
2783 cross_compiling=yes
2784 else
2785 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2786 If you meant to cross compile, use \`--host'.
2787 See \`config.log' for more details." >&5
2788 echo "$as_me: error: cannot run C compiled programs.
2789 If you meant to cross compile, use \`--host'.
2790 See \`config.log' for more details." >&2;}
2791 { (exit 1); exit 1; }; }
2795 { echo "$as_me:$LINENO: result: yes" >&5
2796 echo "${ECHO_T}yes" >&6; }
2798 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2799 ac_clean_files=$ac_clean_files_save
2800 # Check that the compiler produces executables we can run. If not, either
2801 # the compiler is broken, or we cross compile.
2802 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2803 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2804 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2805 echo "${ECHO_T}$cross_compiling" >&6; }
2807 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2808 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2809 if { (ac_try="$ac_link"
2810 case "(($ac_try" in
2811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2812 *) ac_try_echo=$ac_try;;
2813 esac
2814 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2815 (eval "$ac_link") 2>&5
2816 ac_status=$?
2817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2818 (exit $ac_status); }; then
2819 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2820 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2821 # work properly (i.e., refer to `conftest.exe'), while it won't with
2822 # `rm'.
2823 for ac_file in conftest.exe conftest conftest.*; do
2824 test -f "$ac_file" || continue
2825 case $ac_file in
2826 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2827 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2828 break;;
2829 * ) break;;
2830 esac
2831 done
2832 else
2833 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2834 See \`config.log' for more details." >&5
2835 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2836 See \`config.log' for more details." >&2;}
2837 { (exit 1); exit 1; }; }
2840 rm -f conftest$ac_cv_exeext
2841 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2842 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2844 rm -f conftest.$ac_ext
2845 EXEEXT=$ac_cv_exeext
2846 ac_exeext=$EXEEXT
2847 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2848 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2849 if test "${ac_cv_objext+set}" = set; then
2850 echo $ECHO_N "(cached) $ECHO_C" >&6
2851 else
2852 cat >conftest.$ac_ext <<_ACEOF
2853 /* confdefs.h. */
2854 _ACEOF
2855 cat confdefs.h >>conftest.$ac_ext
2856 cat >>conftest.$ac_ext <<_ACEOF
2857 /* end confdefs.h. */
2860 main ()
2864 return 0;
2866 _ACEOF
2867 rm -f conftest.o conftest.obj
2868 if { (ac_try="$ac_compile"
2869 case "(($ac_try" in
2870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2871 *) ac_try_echo=$ac_try;;
2872 esac
2873 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2874 (eval "$ac_compile") 2>&5
2875 ac_status=$?
2876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2877 (exit $ac_status); }; then
2878 for ac_file in conftest.o conftest.obj conftest.*; do
2879 test -f "$ac_file" || continue;
2880 case $ac_file in
2881 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2882 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2883 break;;
2884 esac
2885 done
2886 else
2887 echo "$as_me: failed program was:" >&5
2888 sed 's/^/| /' conftest.$ac_ext >&5
2890 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2891 See \`config.log' for more details." >&5
2892 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2893 See \`config.log' for more details." >&2;}
2894 { (exit 1); exit 1; }; }
2897 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2899 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2900 echo "${ECHO_T}$ac_cv_objext" >&6; }
2901 OBJEXT=$ac_cv_objext
2902 ac_objext=$OBJEXT
2903 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2904 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2905 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2906 echo $ECHO_N "(cached) $ECHO_C" >&6
2907 else
2908 cat >conftest.$ac_ext <<_ACEOF
2909 /* confdefs.h. */
2910 _ACEOF
2911 cat confdefs.h >>conftest.$ac_ext
2912 cat >>conftest.$ac_ext <<_ACEOF
2913 /* end confdefs.h. */
2916 main ()
2918 #ifndef __GNUC__
2919 choke me
2920 #endif
2923 return 0;
2925 _ACEOF
2926 rm -f conftest.$ac_objext
2927 if { (ac_try="$ac_compile"
2928 case "(($ac_try" in
2929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2930 *) ac_try_echo=$ac_try;;
2931 esac
2932 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2933 (eval "$ac_compile") 2>conftest.er1
2934 ac_status=$?
2935 grep -v '^ *+' conftest.er1 >conftest.err
2936 rm -f conftest.er1
2937 cat conftest.err >&5
2938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2939 (exit $ac_status); } && {
2940 test -z "$ac_c_werror_flag" ||
2941 test ! -s conftest.err
2942 } && test -s conftest.$ac_objext; then
2943 ac_compiler_gnu=yes
2944 else
2945 echo "$as_me: failed program was:" >&5
2946 sed 's/^/| /' conftest.$ac_ext >&5
2948 ac_compiler_gnu=no
2951 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2952 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2955 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2956 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2957 GCC=`test $ac_compiler_gnu = yes && echo yes`
2958 ac_test_CFLAGS=${CFLAGS+set}
2959 ac_save_CFLAGS=$CFLAGS
2960 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2961 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2962 if test "${ac_cv_prog_cc_g+set}" = set; then
2963 echo $ECHO_N "(cached) $ECHO_C" >&6
2964 else
2965 ac_save_c_werror_flag=$ac_c_werror_flag
2966 ac_c_werror_flag=yes
2967 ac_cv_prog_cc_g=no
2968 CFLAGS="-g"
2969 cat >conftest.$ac_ext <<_ACEOF
2970 /* confdefs.h. */
2971 _ACEOF
2972 cat confdefs.h >>conftest.$ac_ext
2973 cat >>conftest.$ac_ext <<_ACEOF
2974 /* end confdefs.h. */
2977 main ()
2981 return 0;
2983 _ACEOF
2984 rm -f conftest.$ac_objext
2985 if { (ac_try="$ac_compile"
2986 case "(($ac_try" in
2987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2988 *) ac_try_echo=$ac_try;;
2989 esac
2990 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2991 (eval "$ac_compile") 2>conftest.er1
2992 ac_status=$?
2993 grep -v '^ *+' conftest.er1 >conftest.err
2994 rm -f conftest.er1
2995 cat conftest.err >&5
2996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2997 (exit $ac_status); } && {
2998 test -z "$ac_c_werror_flag" ||
2999 test ! -s conftest.err
3000 } && test -s conftest.$ac_objext; then
3001 ac_cv_prog_cc_g=yes
3002 else
3003 echo "$as_me: failed program was:" >&5
3004 sed 's/^/| /' conftest.$ac_ext >&5
3006 CFLAGS=""
3007 cat >conftest.$ac_ext <<_ACEOF
3008 /* confdefs.h. */
3009 _ACEOF
3010 cat confdefs.h >>conftest.$ac_ext
3011 cat >>conftest.$ac_ext <<_ACEOF
3012 /* end confdefs.h. */
3015 main ()
3019 return 0;
3021 _ACEOF
3022 rm -f conftest.$ac_objext
3023 if { (ac_try="$ac_compile"
3024 case "(($ac_try" in
3025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3026 *) ac_try_echo=$ac_try;;
3027 esac
3028 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3029 (eval "$ac_compile") 2>conftest.er1
3030 ac_status=$?
3031 grep -v '^ *+' conftest.er1 >conftest.err
3032 rm -f conftest.er1
3033 cat conftest.err >&5
3034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3035 (exit $ac_status); } && {
3036 test -z "$ac_c_werror_flag" ||
3037 test ! -s conftest.err
3038 } && test -s conftest.$ac_objext; then
3040 else
3041 echo "$as_me: failed program was:" >&5
3042 sed 's/^/| /' conftest.$ac_ext >&5
3044 ac_c_werror_flag=$ac_save_c_werror_flag
3045 CFLAGS="-g"
3046 cat >conftest.$ac_ext <<_ACEOF
3047 /* confdefs.h. */
3048 _ACEOF
3049 cat confdefs.h >>conftest.$ac_ext
3050 cat >>conftest.$ac_ext <<_ACEOF
3051 /* end confdefs.h. */
3054 main ()
3058 return 0;
3060 _ACEOF
3061 rm -f conftest.$ac_objext
3062 if { (ac_try="$ac_compile"
3063 case "(($ac_try" in
3064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3065 *) ac_try_echo=$ac_try;;
3066 esac
3067 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3068 (eval "$ac_compile") 2>conftest.er1
3069 ac_status=$?
3070 grep -v '^ *+' conftest.er1 >conftest.err
3071 rm -f conftest.er1
3072 cat conftest.err >&5
3073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3074 (exit $ac_status); } && {
3075 test -z "$ac_c_werror_flag" ||
3076 test ! -s conftest.err
3077 } && test -s conftest.$ac_objext; then
3078 ac_cv_prog_cc_g=yes
3079 else
3080 echo "$as_me: failed program was:" >&5
3081 sed 's/^/| /' conftest.$ac_ext >&5
3086 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3089 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3092 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3093 ac_c_werror_flag=$ac_save_c_werror_flag
3095 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3096 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3097 if test "$ac_test_CFLAGS" = set; then
3098 CFLAGS=$ac_save_CFLAGS
3099 elif test $ac_cv_prog_cc_g = yes; then
3100 if test "$GCC" = yes; then
3101 CFLAGS="-g -O2"
3102 else
3103 CFLAGS="-g"
3105 else
3106 if test "$GCC" = yes; then
3107 CFLAGS="-O2"
3108 else
3109 CFLAGS=
3112 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3113 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3114 if test "${ac_cv_prog_cc_c89+set}" = set; then
3115 echo $ECHO_N "(cached) $ECHO_C" >&6
3116 else
3117 ac_cv_prog_cc_c89=no
3118 ac_save_CC=$CC
3119 cat >conftest.$ac_ext <<_ACEOF
3120 /* confdefs.h. */
3121 _ACEOF
3122 cat confdefs.h >>conftest.$ac_ext
3123 cat >>conftest.$ac_ext <<_ACEOF
3124 /* end confdefs.h. */
3125 #include <stdarg.h>
3126 #include <stdio.h>
3127 #include <sys/types.h>
3128 #include <sys/stat.h>
3129 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3130 struct buf { int x; };
3131 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3132 static char *e (p, i)
3133 char **p;
3134 int i;
3136 return p[i];
3138 static char *f (char * (*g) (char **, int), char **p, ...)
3140 char *s;
3141 va_list v;
3142 va_start (v,p);
3143 s = g (p, va_arg (v,int));
3144 va_end (v);
3145 return s;
3148 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3149 function prototypes and stuff, but not '\xHH' hex character constants.
3150 These don't provoke an error unfortunately, instead are silently treated
3151 as 'x'. The following induces an error, until -std is added to get
3152 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3153 array size at least. It's necessary to write '\x00'==0 to get something
3154 that's true only with -std. */
3155 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3157 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3158 inside strings and character constants. */
3159 #define FOO(x) 'x'
3160 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3162 int test (int i, double x);
3163 struct s1 {int (*f) (int a);};
3164 struct s2 {int (*f) (double a);};
3165 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3166 int argc;
3167 char **argv;
3169 main ()
3171 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3173 return 0;
3175 _ACEOF
3176 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3177 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3179 CC="$ac_save_CC $ac_arg"
3180 rm -f conftest.$ac_objext
3181 if { (ac_try="$ac_compile"
3182 case "(($ac_try" in
3183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3184 *) ac_try_echo=$ac_try;;
3185 esac
3186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3187 (eval "$ac_compile") 2>conftest.er1
3188 ac_status=$?
3189 grep -v '^ *+' conftest.er1 >conftest.err
3190 rm -f conftest.er1
3191 cat conftest.err >&5
3192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3193 (exit $ac_status); } && {
3194 test -z "$ac_c_werror_flag" ||
3195 test ! -s conftest.err
3196 } && test -s conftest.$ac_objext; then
3197 ac_cv_prog_cc_c89=$ac_arg
3198 else
3199 echo "$as_me: failed program was:" >&5
3200 sed 's/^/| /' conftest.$ac_ext >&5
3205 rm -f core conftest.err conftest.$ac_objext
3206 test "x$ac_cv_prog_cc_c89" != "xno" && break
3207 done
3208 rm -f conftest.$ac_ext
3209 CC=$ac_save_CC
3212 # AC_CACHE_VAL
3213 case "x$ac_cv_prog_cc_c89" in
3215 { echo "$as_me:$LINENO: result: none needed" >&5
3216 echo "${ECHO_T}none needed" >&6; } ;;
3217 xno)
3218 { echo "$as_me:$LINENO: result: unsupported" >&5
3219 echo "${ECHO_T}unsupported" >&6; } ;;
3221 CC="$CC $ac_cv_prog_cc_c89"
3222 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3223 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3224 esac
3227 ac_ext=c
3228 ac_cpp='$CPP $CPPFLAGS'
3229 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3230 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3231 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3236 { echo "$as_me:$LINENO: checking for --with-cxx-main=<compiler>" >&5
3237 echo $ECHO_N "checking for --with-cxx-main=<compiler>... $ECHO_C" >&6; }
3239 # Check whether --with-cxx_main was given.
3240 if test "${with_cxx_main+set}" = set; then
3241 withval=$with_cxx_main;
3243 case $withval in
3244 no) with_cxx_main=no
3245 MAINCC='$(CC)';;
3246 yes) with_cxx_main=yes
3247 MAINCC='$(CXX)';;
3248 *) with_cxx_main=yes
3249 MAINCC=$withval
3250 if test -z "$CXX"
3251 then
3252 CXX=$withval
3253 fi;;
3254 esac
3255 else
3257 with_cxx_main=no
3258 MAINCC='$(CC)'
3262 { echo "$as_me:$LINENO: result: $with_cxx_main" >&5
3263 echo "${ECHO_T}$with_cxx_main" >&6; }
3265 preset_cxx="$CXX"
3266 if test -z "$CXX"
3267 then
3268 case "$CC" in
3269 gcc) # Extract the first word of "g++", so it can be a program name with args.
3270 set dummy g++; ac_word=$2
3271 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3272 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3273 if test "${ac_cv_path_CXX+set}" = set; then
3274 echo $ECHO_N "(cached) $ECHO_C" >&6
3275 else
3276 case $CXX in
3277 [\\/]* | ?:[\\/]*)
3278 ac_cv_path_CXX="$CXX" # Let the user override the test with a path.
3281 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3282 for as_dir in notfound
3284 IFS=$as_save_IFS
3285 test -z "$as_dir" && as_dir=.
3286 for ac_exec_ext in '' $ac_executable_extensions; do
3287 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3288 ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext"
3289 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3290 break 2
3292 done
3293 done
3294 IFS=$as_save_IFS
3296 test -z "$ac_cv_path_CXX" && ac_cv_path_CXX="g++"
3298 esac
3300 CXX=$ac_cv_path_CXX
3301 if test -n "$CXX"; then
3302 { echo "$as_me:$LINENO: result: $CXX" >&5
3303 echo "${ECHO_T}$CXX" >&6; }
3304 else
3305 { echo "$as_me:$LINENO: result: no" >&5
3306 echo "${ECHO_T}no" >&6; }
3310 cc) # Extract the first word of "c++", so it can be a program name with args.
3311 set dummy c++; ac_word=$2
3312 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3313 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3314 if test "${ac_cv_path_CXX+set}" = set; then
3315 echo $ECHO_N "(cached) $ECHO_C" >&6
3316 else
3317 case $CXX in
3318 [\\/]* | ?:[\\/]*)
3319 ac_cv_path_CXX="$CXX" # Let the user override the test with a path.
3322 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3323 for as_dir in notfound
3325 IFS=$as_save_IFS
3326 test -z "$as_dir" && as_dir=.
3327 for ac_exec_ext in '' $ac_executable_extensions; do
3328 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3329 ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext"
3330 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3331 break 2
3333 done
3334 done
3335 IFS=$as_save_IFS
3337 test -z "$ac_cv_path_CXX" && ac_cv_path_CXX="c++"
3339 esac
3341 CXX=$ac_cv_path_CXX
3342 if test -n "$CXX"; then
3343 { echo "$as_me:$LINENO: result: $CXX" >&5
3344 echo "${ECHO_T}$CXX" >&6; }
3345 else
3346 { echo "$as_me:$LINENO: result: no" >&5
3347 echo "${ECHO_T}no" >&6; }
3351 esac
3352 if test "$CXX" = "notfound"
3353 then
3354 CXX=""
3357 if test -z "$CXX"
3358 then
3359 for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
3361 # Extract the first word of "$ac_prog", so it can be a program name with args.
3362 set dummy $ac_prog; ac_word=$2
3363 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3364 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3365 if test "${ac_cv_prog_CXX+set}" = set; then
3366 echo $ECHO_N "(cached) $ECHO_C" >&6
3367 else
3368 if test -n "$CXX"; then
3369 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3370 else
3371 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3372 for as_dir in $PATH
3374 IFS=$as_save_IFS
3375 test -z "$as_dir" && as_dir=.
3376 for ac_exec_ext in '' $ac_executable_extensions; do
3377 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3378 ac_cv_prog_CXX="$ac_prog"
3379 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3380 break 2
3382 done
3383 done
3384 IFS=$as_save_IFS
3388 CXX=$ac_cv_prog_CXX
3389 if test -n "$CXX"; then
3390 { echo "$as_me:$LINENO: result: $CXX" >&5
3391 echo "${ECHO_T}$CXX" >&6; }
3392 else
3393 { echo "$as_me:$LINENO: result: no" >&5
3394 echo "${ECHO_T}no" >&6; }
3398 test -n "$CXX" && break
3399 done
3400 test -n "$CXX" || CXX="notfound"
3402 if test "$CXX" = "notfound"
3403 then
3404 CXX=""
3407 if test "$preset_cxx" != "$CXX"
3408 then
3409 { echo "$as_me:$LINENO: WARNING:
3411 By default, distutils will build C++ extension modules with \"$CXX\".
3412 If this is not intended, then set CXX on the configure command line.
3413 " >&5
3414 echo "$as_me: WARNING:
3416 By default, distutils will build C++ extension modules with \"$CXX\".
3417 If this is not intended, then set CXX on the configure command line.
3418 " >&2;}
3422 # checks for UNIX variants that set C preprocessor variables
3424 ac_ext=c
3425 ac_cpp='$CPP $CPPFLAGS'
3426 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3427 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3428 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3429 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3430 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3431 # On Suns, sometimes $CPP names a directory.
3432 if test -n "$CPP" && test -d "$CPP"; then
3433 CPP=
3435 if test -z "$CPP"; then
3436 if test "${ac_cv_prog_CPP+set}" = set; then
3437 echo $ECHO_N "(cached) $ECHO_C" >&6
3438 else
3439 # Double quotes because CPP needs to be expanded
3440 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3442 ac_preproc_ok=false
3443 for ac_c_preproc_warn_flag in '' yes
3445 # Use a header file that comes with gcc, so configuring glibc
3446 # with a fresh cross-compiler works.
3447 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3448 # <limits.h> exists even on freestanding compilers.
3449 # On the NeXT, cc -E runs the code through the compiler's parser,
3450 # not just through cpp. "Syntax error" is here to catch this case.
3451 cat >conftest.$ac_ext <<_ACEOF
3452 /* confdefs.h. */
3453 _ACEOF
3454 cat confdefs.h >>conftest.$ac_ext
3455 cat >>conftest.$ac_ext <<_ACEOF
3456 /* end confdefs.h. */
3457 #ifdef __STDC__
3458 # include <limits.h>
3459 #else
3460 # include <assert.h>
3461 #endif
3462 Syntax error
3463 _ACEOF
3464 if { (ac_try="$ac_cpp conftest.$ac_ext"
3465 case "(($ac_try" in
3466 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3467 *) ac_try_echo=$ac_try;;
3468 esac
3469 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3470 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3471 ac_status=$?
3472 grep -v '^ *+' conftest.er1 >conftest.err
3473 rm -f conftest.er1
3474 cat conftest.err >&5
3475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3476 (exit $ac_status); } >/dev/null && {
3477 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3478 test ! -s conftest.err
3479 }; then
3481 else
3482 echo "$as_me: failed program was:" >&5
3483 sed 's/^/| /' conftest.$ac_ext >&5
3485 # Broken: fails on valid input.
3486 continue
3489 rm -f conftest.err conftest.$ac_ext
3491 # OK, works on sane cases. Now check whether nonexistent headers
3492 # can be detected and how.
3493 cat >conftest.$ac_ext <<_ACEOF
3494 /* confdefs.h. */
3495 _ACEOF
3496 cat confdefs.h >>conftest.$ac_ext
3497 cat >>conftest.$ac_ext <<_ACEOF
3498 /* end confdefs.h. */
3499 #include <ac_nonexistent.h>
3500 _ACEOF
3501 if { (ac_try="$ac_cpp conftest.$ac_ext"
3502 case "(($ac_try" in
3503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3504 *) ac_try_echo=$ac_try;;
3505 esac
3506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3507 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3508 ac_status=$?
3509 grep -v '^ *+' conftest.er1 >conftest.err
3510 rm -f conftest.er1
3511 cat conftest.err >&5
3512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3513 (exit $ac_status); } >/dev/null && {
3514 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3515 test ! -s conftest.err
3516 }; then
3517 # Broken: success on invalid input.
3518 continue
3519 else
3520 echo "$as_me: failed program was:" >&5
3521 sed 's/^/| /' conftest.$ac_ext >&5
3523 # Passes both tests.
3524 ac_preproc_ok=:
3525 break
3528 rm -f conftest.err conftest.$ac_ext
3530 done
3531 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3532 rm -f conftest.err conftest.$ac_ext
3533 if $ac_preproc_ok; then
3534 break
3537 done
3538 ac_cv_prog_CPP=$CPP
3541 CPP=$ac_cv_prog_CPP
3542 else
3543 ac_cv_prog_CPP=$CPP
3545 { echo "$as_me:$LINENO: result: $CPP" >&5
3546 echo "${ECHO_T}$CPP" >&6; }
3547 ac_preproc_ok=false
3548 for ac_c_preproc_warn_flag in '' yes
3550 # Use a header file that comes with gcc, so configuring glibc
3551 # with a fresh cross-compiler works.
3552 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3553 # <limits.h> exists even on freestanding compilers.
3554 # On the NeXT, cc -E runs the code through the compiler's parser,
3555 # not just through cpp. "Syntax error" is here to catch this case.
3556 cat >conftest.$ac_ext <<_ACEOF
3557 /* confdefs.h. */
3558 _ACEOF
3559 cat confdefs.h >>conftest.$ac_ext
3560 cat >>conftest.$ac_ext <<_ACEOF
3561 /* end confdefs.h. */
3562 #ifdef __STDC__
3563 # include <limits.h>
3564 #else
3565 # include <assert.h>
3566 #endif
3567 Syntax error
3568 _ACEOF
3569 if { (ac_try="$ac_cpp conftest.$ac_ext"
3570 case "(($ac_try" in
3571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3572 *) ac_try_echo=$ac_try;;
3573 esac
3574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3575 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3576 ac_status=$?
3577 grep -v '^ *+' conftest.er1 >conftest.err
3578 rm -f conftest.er1
3579 cat conftest.err >&5
3580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3581 (exit $ac_status); } >/dev/null && {
3582 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3583 test ! -s conftest.err
3584 }; then
3586 else
3587 echo "$as_me: failed program was:" >&5
3588 sed 's/^/| /' conftest.$ac_ext >&5
3590 # Broken: fails on valid input.
3591 continue
3594 rm -f conftest.err conftest.$ac_ext
3596 # OK, works on sane cases. Now check whether nonexistent headers
3597 # can be detected and how.
3598 cat >conftest.$ac_ext <<_ACEOF
3599 /* confdefs.h. */
3600 _ACEOF
3601 cat confdefs.h >>conftest.$ac_ext
3602 cat >>conftest.$ac_ext <<_ACEOF
3603 /* end confdefs.h. */
3604 #include <ac_nonexistent.h>
3605 _ACEOF
3606 if { (ac_try="$ac_cpp conftest.$ac_ext"
3607 case "(($ac_try" in
3608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3609 *) ac_try_echo=$ac_try;;
3610 esac
3611 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3612 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3613 ac_status=$?
3614 grep -v '^ *+' conftest.er1 >conftest.err
3615 rm -f conftest.er1
3616 cat conftest.err >&5
3617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3618 (exit $ac_status); } >/dev/null && {
3619 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3620 test ! -s conftest.err
3621 }; then
3622 # Broken: success on invalid input.
3623 continue
3624 else
3625 echo "$as_me: failed program was:" >&5
3626 sed 's/^/| /' conftest.$ac_ext >&5
3628 # Passes both tests.
3629 ac_preproc_ok=:
3630 break
3633 rm -f conftest.err conftest.$ac_ext
3635 done
3636 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3637 rm -f conftest.err conftest.$ac_ext
3638 if $ac_preproc_ok; then
3640 else
3641 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3642 See \`config.log' for more details." >&5
3643 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3644 See \`config.log' for more details." >&2;}
3645 { (exit 1); exit 1; }; }
3648 ac_ext=c
3649 ac_cpp='$CPP $CPPFLAGS'
3650 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3651 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3652 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3655 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3656 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3657 if test "${ac_cv_path_GREP+set}" = set; then
3658 echo $ECHO_N "(cached) $ECHO_C" >&6
3659 else
3660 # Extract the first word of "grep ggrep" to use in msg output
3661 if test -z "$GREP"; then
3662 set dummy grep ggrep; ac_prog_name=$2
3663 if test "${ac_cv_path_GREP+set}" = set; then
3664 echo $ECHO_N "(cached) $ECHO_C" >&6
3665 else
3666 ac_path_GREP_found=false
3667 # Loop through the user's path and test for each of PROGNAME-LIST
3668 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3669 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3671 IFS=$as_save_IFS
3672 test -z "$as_dir" && as_dir=.
3673 for ac_prog in grep ggrep; do
3674 for ac_exec_ext in '' $ac_executable_extensions; do
3675 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3676 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3677 # Check for GNU ac_path_GREP and select it if it is found.
3678 # Check for GNU $ac_path_GREP
3679 case `"$ac_path_GREP" --version 2>&1` in
3680 *GNU*)
3681 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3683 ac_count=0
3684 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3685 while :
3687 cat "conftest.in" "conftest.in" >"conftest.tmp"
3688 mv "conftest.tmp" "conftest.in"
3689 cp "conftest.in" "conftest.nl"
3690 echo 'GREP' >> "conftest.nl"
3691 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3692 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3693 ac_count=`expr $ac_count + 1`
3694 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3695 # Best one so far, save it but keep looking for a better one
3696 ac_cv_path_GREP="$ac_path_GREP"
3697 ac_path_GREP_max=$ac_count
3699 # 10*(2^10) chars as input seems more than enough
3700 test $ac_count -gt 10 && break
3701 done
3702 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3703 esac
3706 $ac_path_GREP_found && break 3
3707 done
3708 done
3710 done
3711 IFS=$as_save_IFS
3716 GREP="$ac_cv_path_GREP"
3717 if test -z "$GREP"; then
3718 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3719 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3720 { (exit 1); exit 1; }; }
3723 else
3724 ac_cv_path_GREP=$GREP
3729 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3730 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3731 GREP="$ac_cv_path_GREP"
3734 { echo "$as_me:$LINENO: checking for egrep" >&5
3735 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3736 if test "${ac_cv_path_EGREP+set}" = set; then
3737 echo $ECHO_N "(cached) $ECHO_C" >&6
3738 else
3739 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3740 then ac_cv_path_EGREP="$GREP -E"
3741 else
3742 # Extract the first word of "egrep" to use in msg output
3743 if test -z "$EGREP"; then
3744 set dummy egrep; ac_prog_name=$2
3745 if test "${ac_cv_path_EGREP+set}" = set; then
3746 echo $ECHO_N "(cached) $ECHO_C" >&6
3747 else
3748 ac_path_EGREP_found=false
3749 # Loop through the user's path and test for each of PROGNAME-LIST
3750 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3751 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3753 IFS=$as_save_IFS
3754 test -z "$as_dir" && as_dir=.
3755 for ac_prog in egrep; do
3756 for ac_exec_ext in '' $ac_executable_extensions; do
3757 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3758 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3759 # Check for GNU ac_path_EGREP and select it if it is found.
3760 # Check for GNU $ac_path_EGREP
3761 case `"$ac_path_EGREP" --version 2>&1` in
3762 *GNU*)
3763 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3765 ac_count=0
3766 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3767 while :
3769 cat "conftest.in" "conftest.in" >"conftest.tmp"
3770 mv "conftest.tmp" "conftest.in"
3771 cp "conftest.in" "conftest.nl"
3772 echo 'EGREP' >> "conftest.nl"
3773 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3774 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3775 ac_count=`expr $ac_count + 1`
3776 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3777 # Best one so far, save it but keep looking for a better one
3778 ac_cv_path_EGREP="$ac_path_EGREP"
3779 ac_path_EGREP_max=$ac_count
3781 # 10*(2^10) chars as input seems more than enough
3782 test $ac_count -gt 10 && break
3783 done
3784 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3785 esac
3788 $ac_path_EGREP_found && break 3
3789 done
3790 done
3792 done
3793 IFS=$as_save_IFS
3798 EGREP="$ac_cv_path_EGREP"
3799 if test -z "$EGREP"; then
3800 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3801 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3802 { (exit 1); exit 1; }; }
3805 else
3806 ac_cv_path_EGREP=$EGREP
3812 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3813 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3814 EGREP="$ac_cv_path_EGREP"
3818 { echo "$as_me:$LINENO: checking for AIX" >&5
3819 echo $ECHO_N "checking for AIX... $ECHO_C" >&6; }
3820 cat >conftest.$ac_ext <<_ACEOF
3821 /* confdefs.h. */
3822 _ACEOF
3823 cat confdefs.h >>conftest.$ac_ext
3824 cat >>conftest.$ac_ext <<_ACEOF
3825 /* end confdefs.h. */
3826 #ifdef _AIX
3828 #endif
3830 _ACEOF
3831 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3832 $EGREP "yes" >/dev/null 2>&1; then
3833 { echo "$as_me:$LINENO: result: yes" >&5
3834 echo "${ECHO_T}yes" >&6; }
3835 cat >>confdefs.h <<\_ACEOF
3836 #define _ALL_SOURCE 1
3837 _ACEOF
3839 else
3840 { echo "$as_me:$LINENO: result: no" >&5
3841 echo "${ECHO_T}no" >&6; }
3843 rm -f conftest*
3847 # Check for unsupported systems
3848 case $ac_sys_system/$ac_sys_release in
3849 atheos*|Linux*/1*)
3850 echo This system \($ac_sys_system/$ac_sys_release\) is no longer supported.
3851 echo See README for details.
3852 exit 1;;
3853 esac
3856 { echo "$as_me:$LINENO: checking for --with-suffix" >&5
3857 echo $ECHO_N "checking for --with-suffix... $ECHO_C" >&6; }
3859 # Check whether --with-suffix was given.
3860 if test "${with_suffix+set}" = set; then
3861 withval=$with_suffix;
3862 case $withval in
3863 no) EXEEXT=;;
3864 yes) EXEEXT=.exe;;
3865 *) EXEEXT=$withval;;
3866 esac
3869 { echo "$as_me:$LINENO: result: $EXEEXT" >&5
3870 echo "${ECHO_T}$EXEEXT" >&6; }
3872 # Test whether we're running on a non-case-sensitive system, in which
3873 # case we give a warning if no ext is given
3875 { echo "$as_me:$LINENO: checking for case-insensitive build directory" >&5
3876 echo $ECHO_N "checking for case-insensitive build directory... $ECHO_C" >&6; }
3877 if test ! -d CaseSensitiveTestDir; then
3878 mkdir CaseSensitiveTestDir
3881 if test -d casesensitivetestdir
3882 then
3883 { echo "$as_me:$LINENO: result: yes" >&5
3884 echo "${ECHO_T}yes" >&6; }
3885 BUILDEXEEXT=.exe
3886 else
3887 { echo "$as_me:$LINENO: result: no" >&5
3888 echo "${ECHO_T}no" >&6; }
3889 BUILDEXEEXT=$EXEEXT
3891 rmdir CaseSensitiveTestDir
3893 case $MACHDEP in
3894 bsdos*)
3895 case $CC in
3896 gcc) CC="$CC -D_HAVE_BSDI";;
3897 esac;;
3898 esac
3900 case $ac_sys_system in
3901 hp*|HP*)
3902 case $CC in
3903 cc|*/cc) CC="$CC -Ae";;
3904 esac;;
3905 Monterey*)
3906 case $CC in
3907 cc) CC="$CC -Wl,-Bexport";;
3908 esac;;
3909 SunOS*)
3910 # Some functions have a prototype only with that define, e.g. confstr
3912 cat >>confdefs.h <<\_ACEOF
3913 #define __EXTENSIONS__ 1
3914 _ACEOF
3917 esac
3921 { echo "$as_me:$LINENO: checking LIBRARY" >&5
3922 echo $ECHO_N "checking LIBRARY... $ECHO_C" >&6; }
3923 if test -z "$LIBRARY"
3924 then
3925 LIBRARY='libpython$(VERSION).a'
3927 { echo "$as_me:$LINENO: result: $LIBRARY" >&5
3928 echo "${ECHO_T}$LIBRARY" >&6; }
3930 # LDLIBRARY is the name of the library to link against (as opposed to the
3931 # name of the library into which to insert object files). BLDLIBRARY is also
3932 # the library to link against, usually. On Mac OS X frameworks, BLDLIBRARY
3933 # is blank as the main program is not linked directly against LDLIBRARY.
3934 # LDLIBRARYDIR is the path to LDLIBRARY, which is made in a subdirectory. On
3935 # systems without shared libraries, LDLIBRARY is the same as LIBRARY
3936 # (defined in the Makefiles). On Cygwin LDLIBRARY is the import library,
3937 # DLLLIBRARY is the shared (i.e., DLL) library.
3939 # RUNSHARED is used to run shared python without installed libraries
3941 # INSTSONAME is the name of the shared library that will be use to install
3942 # on the system - some systems like version suffix, others don't
3949 LDLIBRARY="$LIBRARY"
3950 BLDLIBRARY='$(LDLIBRARY)'
3951 INSTSONAME='$(LDLIBRARY)'
3952 DLLLIBRARY=''
3953 LDLIBRARYDIR=''
3954 RUNSHARED=''
3956 # LINKCC is the command that links the python executable -- default is $(CC).
3957 # If CXX is set, and if it is needed to link a main function that was
3958 # compiled with CXX, LINKCC is CXX instead. Always using CXX is undesirable:
3959 # python might then depend on the C++ runtime
3960 # This is altered for AIX in order to build the export list before
3961 # linking.
3963 { echo "$as_me:$LINENO: checking LINKCC" >&5
3964 echo $ECHO_N "checking LINKCC... $ECHO_C" >&6; }
3965 if test -z "$LINKCC"
3966 then
3967 LINKCC='$(PURIFY) $(MAINCC)'
3968 case $ac_sys_system in
3969 AIX*)
3970 exp_extra="\"\""
3971 if test $ac_sys_release -ge 5 -o \
3972 $ac_sys_release -eq 4 -a `uname -r` -ge 2 ; then
3973 exp_extra="."
3975 LINKCC="\$(srcdir)/Modules/makexp_aix Modules/python.exp $exp_extra \$(LIBRARY); $LINKCC";;
3976 Monterey64*)
3977 LINKCC="$LINKCC -L/usr/lib/ia64l64";;
3978 QNX*)
3979 # qcc must be used because the other compilers do not
3980 # support -N.
3981 LINKCC=qcc;;
3982 esac
3984 { echo "$as_me:$LINENO: result: $LINKCC" >&5
3985 echo "${ECHO_T}$LINKCC" >&6; }
3987 { echo "$as_me:$LINENO: checking for --enable-shared" >&5
3988 echo $ECHO_N "checking for --enable-shared... $ECHO_C" >&6; }
3989 # Check whether --enable-shared was given.
3990 if test "${enable_shared+set}" = set; then
3991 enableval=$enable_shared;
3995 if test -z "$enable_shared"
3996 then
3997 case $ac_sys_system in
3998 CYGWIN* | atheos*)
3999 enable_shared="yes";;
4001 enable_shared="no";;
4002 esac
4004 { echo "$as_me:$LINENO: result: $enable_shared" >&5
4005 echo "${ECHO_T}$enable_shared" >&6; }
4007 { echo "$as_me:$LINENO: checking for --enable-profiling" >&5
4008 echo $ECHO_N "checking for --enable-profiling... $ECHO_C" >&6; }
4009 # Check whether --enable-profiling was given.
4010 if test "${enable_profiling+set}" = set; then
4011 enableval=$enable_profiling; ac_save_cc="$CC"
4012 CC="$CC -pg"
4013 if test "$cross_compiling" = yes; then
4014 ac_enable_profiling="no"
4015 else
4016 cat >conftest.$ac_ext <<_ACEOF
4017 /* confdefs.h. */
4018 _ACEOF
4019 cat confdefs.h >>conftest.$ac_ext
4020 cat >>conftest.$ac_ext <<_ACEOF
4021 /* end confdefs.h. */
4022 int main() { return 0; }
4023 _ACEOF
4024 rm -f conftest$ac_exeext
4025 if { (ac_try="$ac_link"
4026 case "(($ac_try" in
4027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4028 *) ac_try_echo=$ac_try;;
4029 esac
4030 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4031 (eval "$ac_link") 2>&5
4032 ac_status=$?
4033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4034 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4035 { (case "(($ac_try" in
4036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4037 *) ac_try_echo=$ac_try;;
4038 esac
4039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4040 (eval "$ac_try") 2>&5
4041 ac_status=$?
4042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4043 (exit $ac_status); }; }; then
4044 ac_enable_profiling="yes"
4045 else
4046 echo "$as_me: program exited with status $ac_status" >&5
4047 echo "$as_me: failed program was:" >&5
4048 sed 's/^/| /' conftest.$ac_ext >&5
4050 ( exit $ac_status )
4051 ac_enable_profiling="no"
4053 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4057 CC="$ac_save_cc"
4060 { echo "$as_me:$LINENO: result: $ac_enable_profiling" >&5
4061 echo "${ECHO_T}$ac_enable_profiling" >&6; }
4063 case "$ac_enable_profiling" in
4064 "yes")
4065 BASECFLAGS="-pg $BASECFLAGS"
4066 LDFLAGS="-pg $LDFLAGS"
4068 esac
4070 { echo "$as_me:$LINENO: checking LDLIBRARY" >&5
4071 echo $ECHO_N "checking LDLIBRARY... $ECHO_C" >&6; }
4073 # MacOSX framework builds need more magic. LDLIBRARY is the dynamic
4074 # library that we build, but we do not want to link against it (we
4075 # will find it with a -framework option). For this reason there is an
4076 # extra variable BLDLIBRARY against which Python and the extension
4077 # modules are linked, BLDLIBRARY. This is normally the same as
4078 # LDLIBRARY, but empty for MacOSX framework builds.
4079 if test "$enable_framework"
4080 then
4081 LDLIBRARY='$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
4082 RUNSHARED=DYLD_FRAMEWORK_PATH="`pwd`:$DYLD_FRAMEWORK_PATH"
4083 BLDLIBRARY=''
4084 else
4085 BLDLIBRARY='$(LDLIBRARY)'
4088 # Other platforms follow
4089 if test $enable_shared = "yes"; then
4091 cat >>confdefs.h <<\_ACEOF
4092 #define Py_ENABLE_SHARED 1
4093 _ACEOF
4095 case $ac_sys_system in
4096 BeOS*)
4097 LDLIBRARY='libpython$(VERSION).so'
4099 CYGWIN*)
4100 LDLIBRARY='libpython$(VERSION).dll.a'
4101 DLLLIBRARY='libpython$(VERSION).dll'
4103 SunOS*)
4104 LDLIBRARY='libpython$(VERSION).so'
4105 BLDLIBRARY='-Wl,-R,$(LIBDIR) -L. -lpython$(VERSION)'
4106 RUNSHARED=LD_LIBRARY_PATH=`pwd`:${LD_LIBRARY_PATH}
4107 INSTSONAME="$LDLIBRARY".$SOVERSION
4109 Linux*|GNU*|NetBSD*|FreeBSD*|DragonFly*)
4110 LDLIBRARY='libpython$(VERSION).so'
4111 BLDLIBRARY='-L. -lpython$(VERSION)'
4112 RUNSHARED=LD_LIBRARY_PATH=`pwd`:${LD_LIBRARY_PATH}
4113 case $ac_sys_system in
4114 FreeBSD*)
4115 SOVERSION=`echo $SOVERSION|cut -d "." -f 1`
4117 esac
4118 INSTSONAME="$LDLIBRARY".$SOVERSION
4120 hp*|HP*)
4121 case `uname -m` in
4122 ia64)
4123 LDLIBRARY='libpython$(VERSION).so'
4126 LDLIBRARY='libpython$(VERSION).sl'
4128 esac
4129 BLDLIBRARY='-Wl,+b,$(LIBDIR) -L. -lpython$(VERSION)'
4130 RUNSHARED=SHLIB_PATH=`pwd`:${SHLIB_PATH}
4132 OSF*)
4133 LDLIBRARY='libpython$(VERSION).so'
4134 BLDLIBRARY='-rpath $(LIBDIR) -L. -lpython$(VERSION)'
4135 RUNSHARED=LD_LIBRARY_PATH=`pwd`:${LD_LIBRARY_PATH}
4137 atheos*)
4138 LDLIBRARY='libpython$(VERSION).so'
4139 BLDLIBRARY='-L. -lpython$(VERSION)'
4140 RUNSHARED=DLL_PATH=`pwd`:${DLL_PATH:-/atheos/sys/libs:/atheos/autolnk/lib}
4142 esac
4143 else # shared is disabled
4144 case $ac_sys_system in
4145 CYGWIN*)
4146 BLDLIBRARY='$(LIBRARY)'
4147 LDLIBRARY='libpython$(VERSION).dll.a'
4149 esac
4152 { echo "$as_me:$LINENO: result: $LDLIBRARY" >&5
4153 echo "${ECHO_T}$LDLIBRARY" >&6; }
4155 if test -n "$ac_tool_prefix"; then
4156 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4157 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4158 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4159 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4160 if test "${ac_cv_prog_RANLIB+set}" = set; then
4161 echo $ECHO_N "(cached) $ECHO_C" >&6
4162 else
4163 if test -n "$RANLIB"; then
4164 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4165 else
4166 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4167 for as_dir in $PATH
4169 IFS=$as_save_IFS
4170 test -z "$as_dir" && as_dir=.
4171 for ac_exec_ext in '' $ac_executable_extensions; do
4172 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4173 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4174 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4175 break 2
4177 done
4178 done
4179 IFS=$as_save_IFS
4183 RANLIB=$ac_cv_prog_RANLIB
4184 if test -n "$RANLIB"; then
4185 { echo "$as_me:$LINENO: result: $RANLIB" >&5
4186 echo "${ECHO_T}$RANLIB" >&6; }
4187 else
4188 { echo "$as_me:$LINENO: result: no" >&5
4189 echo "${ECHO_T}no" >&6; }
4194 if test -z "$ac_cv_prog_RANLIB"; then
4195 ac_ct_RANLIB=$RANLIB
4196 # Extract the first word of "ranlib", so it can be a program name with args.
4197 set dummy ranlib; ac_word=$2
4198 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4199 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4200 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4201 echo $ECHO_N "(cached) $ECHO_C" >&6
4202 else
4203 if test -n "$ac_ct_RANLIB"; then
4204 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4205 else
4206 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4207 for as_dir in $PATH
4209 IFS=$as_save_IFS
4210 test -z "$as_dir" && as_dir=.
4211 for ac_exec_ext in '' $ac_executable_extensions; do
4212 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4213 ac_cv_prog_ac_ct_RANLIB="ranlib"
4214 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4215 break 2
4217 done
4218 done
4219 IFS=$as_save_IFS
4223 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4224 if test -n "$ac_ct_RANLIB"; then
4225 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4226 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
4227 else
4228 { echo "$as_me:$LINENO: result: no" >&5
4229 echo "${ECHO_T}no" >&6; }
4232 if test "x$ac_ct_RANLIB" = x; then
4233 RANLIB=":"
4234 else
4235 case $cross_compiling:$ac_tool_warned in
4236 yes:)
4237 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4238 whose name does not start with the host triplet. If you think this
4239 configuration is useful to you, please write to autoconf@gnu.org." >&5
4240 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4241 whose name does not start with the host triplet. If you think this
4242 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4243 ac_tool_warned=yes ;;
4244 esac
4245 RANLIB=$ac_ct_RANLIB
4247 else
4248 RANLIB="$ac_cv_prog_RANLIB"
4252 for ac_prog in ar aal
4254 # Extract the first word of "$ac_prog", so it can be a program name with args.
4255 set dummy $ac_prog; ac_word=$2
4256 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4257 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4258 if test "${ac_cv_prog_AR+set}" = set; then
4259 echo $ECHO_N "(cached) $ECHO_C" >&6
4260 else
4261 if test -n "$AR"; then
4262 ac_cv_prog_AR="$AR" # Let the user override the test.
4263 else
4264 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4265 for as_dir in $PATH
4267 IFS=$as_save_IFS
4268 test -z "$as_dir" && as_dir=.
4269 for ac_exec_ext in '' $ac_executable_extensions; do
4270 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4271 ac_cv_prog_AR="$ac_prog"
4272 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4273 break 2
4275 done
4276 done
4277 IFS=$as_save_IFS
4281 AR=$ac_cv_prog_AR
4282 if test -n "$AR"; then
4283 { echo "$as_me:$LINENO: result: $AR" >&5
4284 echo "${ECHO_T}$AR" >&6; }
4285 else
4286 { echo "$as_me:$LINENO: result: no" >&5
4287 echo "${ECHO_T}no" >&6; }
4291 test -n "$AR" && break
4292 done
4293 test -n "$AR" || AR="ar"
4297 # Extract the first word of "svnversion", so it can be a program name with args.
4298 set dummy svnversion; ac_word=$2
4299 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4300 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4301 if test "${ac_cv_prog_SVNVERSION+set}" = set; then
4302 echo $ECHO_N "(cached) $ECHO_C" >&6
4303 else
4304 if test -n "$SVNVERSION"; then
4305 ac_cv_prog_SVNVERSION="$SVNVERSION" # Let the user override the test.
4306 else
4307 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4308 for as_dir in $PATH
4310 IFS=$as_save_IFS
4311 test -z "$as_dir" && as_dir=.
4312 for ac_exec_ext in '' $ac_executable_extensions; do
4313 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4314 ac_cv_prog_SVNVERSION="found"
4315 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4316 break 2
4318 done
4319 done
4320 IFS=$as_save_IFS
4322 test -z "$ac_cv_prog_SVNVERSION" && ac_cv_prog_SVNVERSION="not-found"
4325 SVNVERSION=$ac_cv_prog_SVNVERSION
4326 if test -n "$SVNVERSION"; then
4327 { echo "$as_me:$LINENO: result: $SVNVERSION" >&5
4328 echo "${ECHO_T}$SVNVERSION" >&6; }
4329 else
4330 { echo "$as_me:$LINENO: result: no" >&5
4331 echo "${ECHO_T}no" >&6; }
4335 if test $SVNVERSION = found
4336 then
4337 SVNVERSION="svnversion \$(srcdir)"
4338 else
4339 SVNVERSION="echo exported"
4342 case $MACHDEP in
4343 bsdos*|hp*|HP*)
4344 # install -d does not work on BSDI or HP-UX
4345 if test -z "$INSTALL"
4346 then
4347 INSTALL="${srcdir}/install-sh -c"
4349 esac
4350 ac_aux_dir=
4351 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
4352 if test -f "$ac_dir/install-sh"; then
4353 ac_aux_dir=$ac_dir
4354 ac_install_sh="$ac_aux_dir/install-sh -c"
4355 break
4356 elif test -f "$ac_dir/install.sh"; then
4357 ac_aux_dir=$ac_dir
4358 ac_install_sh="$ac_aux_dir/install.sh -c"
4359 break
4360 elif test -f "$ac_dir/shtool"; then
4361 ac_aux_dir=$ac_dir
4362 ac_install_sh="$ac_aux_dir/shtool install -c"
4363 break
4365 done
4366 if test -z "$ac_aux_dir"; then
4367 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
4368 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
4369 { (exit 1); exit 1; }; }
4372 # These three variables are undocumented and unsupported,
4373 # and are intended to be withdrawn in a future Autoconf release.
4374 # They can cause serious problems if a builder's source tree is in a directory
4375 # whose full name contains unusual characters.
4376 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
4377 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
4378 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
4381 # Find a good install program. We prefer a C program (faster),
4382 # so one script is as good as another. But avoid the broken or
4383 # incompatible versions:
4384 # SysV /etc/install, /usr/sbin/install
4385 # SunOS /usr/etc/install
4386 # IRIX /sbin/install
4387 # AIX /bin/install
4388 # AmigaOS /C/install, which installs bootblocks on floppy discs
4389 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4390 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4391 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4392 # OS/2's system install, which has a completely different semantic
4393 # ./install, which can be erroneously created by make from ./install.sh.
4394 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4395 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
4396 if test -z "$INSTALL"; then
4397 if test "${ac_cv_path_install+set}" = set; then
4398 echo $ECHO_N "(cached) $ECHO_C" >&6
4399 else
4400 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4401 for as_dir in $PATH
4403 IFS=$as_save_IFS
4404 test -z "$as_dir" && as_dir=.
4405 # Account for people who put trailing slashes in PATH elements.
4406 case $as_dir/ in
4407 ./ | .// | /cC/* | \
4408 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4409 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4410 /usr/ucb/* ) ;;
4412 # OSF1 and SCO ODT 3.0 have their own names for install.
4413 # Don't use installbsd from OSF since it installs stuff as root
4414 # by default.
4415 for ac_prog in ginstall scoinst install; do
4416 for ac_exec_ext in '' $ac_executable_extensions; do
4417 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4418 if test $ac_prog = install &&
4419 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4420 # AIX install. It has an incompatible calling convention.
4422 elif test $ac_prog = install &&
4423 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4424 # program-specific install script used by HP pwplus--don't use.
4426 else
4427 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4428 break 3
4431 done
4432 done
4434 esac
4435 done
4436 IFS=$as_save_IFS
4440 if test "${ac_cv_path_install+set}" = set; then
4441 INSTALL=$ac_cv_path_install
4442 else
4443 # As a last resort, use the slow shell script. Don't cache a
4444 # value for INSTALL within a source directory, because that will
4445 # break other packages using the cache if that directory is
4446 # removed, or if the value is a relative name.
4447 INSTALL=$ac_install_sh
4450 { echo "$as_me:$LINENO: result: $INSTALL" >&5
4451 echo "${ECHO_T}$INSTALL" >&6; }
4453 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4454 # It thinks the first close brace ends the variable substitution.
4455 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4457 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4459 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4462 # Not every filesystem supports hard links
4464 if test -z "$LN" ; then
4465 case $ac_sys_system in
4466 BeOS*) LN="ln -s";;
4467 CYGWIN*) LN="ln -s";;
4468 atheos*) LN="ln -s";;
4469 *) LN=ln;;
4470 esac
4473 # Check for --with-pydebug
4474 { echo "$as_me:$LINENO: checking for --with-pydebug" >&5
4475 echo $ECHO_N "checking for --with-pydebug... $ECHO_C" >&6; }
4477 # Check whether --with-pydebug was given.
4478 if test "${with_pydebug+set}" = set; then
4479 withval=$with_pydebug;
4480 if test "$withval" != no
4481 then
4483 cat >>confdefs.h <<\_ACEOF
4484 #define Py_DEBUG 1
4485 _ACEOF
4487 { echo "$as_me:$LINENO: result: yes" >&5
4488 echo "${ECHO_T}yes" >&6; };
4489 Py_DEBUG='true'
4490 else { echo "$as_me:$LINENO: result: no" >&5
4491 echo "${ECHO_T}no" >&6; }; Py_DEBUG='false'
4493 else
4494 { echo "$as_me:$LINENO: result: no" >&5
4495 echo "${ECHO_T}no" >&6; }
4499 # XXX Shouldn't the code above that fiddles with BASECFLAGS and OPT be
4500 # merged with this chunk of code?
4502 # Optimizer/debugger flags
4503 # ------------------------
4504 # (The following bit of code is complicated enough - please keep things
4505 # indented properly. Just pretend you're editing Python code. ;-)
4507 # There are two parallel sets of case statements below, one that checks to
4508 # see if OPT was set and one that does BASECFLAGS setting based upon
4509 # compiler and platform. BASECFLAGS tweaks need to be made even if the
4510 # user set OPT.
4512 # tweak OPT based on compiler and platform, only if the user didn't set
4513 # it on the command line
4515 if test -z "$OPT"
4516 then
4517 case $GCC in
4518 yes)
4519 if test "$CC" != 'g++' ; then
4520 STRICT_PROTO="-Wstrict-prototypes"
4522 # For gcc 4.x we need to use -fwrapv so lets check if its supported
4523 if "$CC" -v --help 2>/dev/null |grep -- -fwrapv > /dev/null; then
4524 WRAP="-fwrapv"
4526 case $ac_cv_prog_cc_g in
4527 yes)
4528 if test "$Py_DEBUG" = 'true' ; then
4529 # Optimization messes up debuggers, so turn it off for
4530 # debug builds.
4531 OPT="-g -Wall $STRICT_PROTO"
4532 else
4533 OPT="-g $WRAP -O3 -Wall $STRICT_PROTO"
4537 OPT="-O3 -Wall $STRICT_PROTO"
4539 esac
4540 case $ac_sys_system in
4541 SCO_SV*) OPT="$OPT -m486 -DSCO5"
4543 esac
4547 OPT="-O"
4549 esac
4551 # The current (beta) Monterey compiler dies with optimizations
4552 # XXX what is Monterey? Does it still die w/ -O? Can we get rid of this?
4553 case $ac_sys_system in
4554 Monterey*)
4555 OPT=""
4557 esac
4563 # The -arch flags for universal builds on OSX
4564 UNIVERSAL_ARCH_FLAGS=
4567 # tweak BASECFLAGS based on compiler and platform
4568 case $GCC in
4569 yes)
4570 # Python violates C99 rules, by casting between incompatible
4571 # pointer types. GCC may generate bad code as a result of that,
4572 # so use -fno-strict-aliasing if supported.
4573 { echo "$as_me:$LINENO: checking whether $CC accepts -fno-strict-aliasing" >&5
4574 echo $ECHO_N "checking whether $CC accepts -fno-strict-aliasing... $ECHO_C" >&6; }
4575 ac_save_cc="$CC"
4576 CC="$CC -fno-strict-aliasing"
4577 if test "$cross_compiling" = yes; then
4578 ac_cv_no_strict_aliasing_ok=no
4579 else
4580 cat >conftest.$ac_ext <<_ACEOF
4581 /* confdefs.h. */
4582 _ACEOF
4583 cat confdefs.h >>conftest.$ac_ext
4584 cat >>conftest.$ac_ext <<_ACEOF
4585 /* end confdefs.h. */
4586 int main() { return 0; }
4587 _ACEOF
4588 rm -f conftest$ac_exeext
4589 if { (ac_try="$ac_link"
4590 case "(($ac_try" in
4591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4592 *) ac_try_echo=$ac_try;;
4593 esac
4594 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4595 (eval "$ac_link") 2>&5
4596 ac_status=$?
4597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4598 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4599 { (case "(($ac_try" in
4600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4601 *) ac_try_echo=$ac_try;;
4602 esac
4603 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4604 (eval "$ac_try") 2>&5
4605 ac_status=$?
4606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4607 (exit $ac_status); }; }; then
4608 ac_cv_no_strict_aliasing_ok=yes
4609 else
4610 echo "$as_me: program exited with status $ac_status" >&5
4611 echo "$as_me: failed program was:" >&5
4612 sed 's/^/| /' conftest.$ac_ext >&5
4614 ( exit $ac_status )
4615 ac_cv_no_strict_aliasing_ok=no
4617 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4621 CC="$ac_save_cc"
4622 { echo "$as_me:$LINENO: result: $ac_cv_no_strict_aliasing_ok" >&5
4623 echo "${ECHO_T}$ac_cv_no_strict_aliasing_ok" >&6; }
4624 if test $ac_cv_no_strict_aliasing_ok = yes
4625 then
4626 BASECFLAGS="$BASECFLAGS -fno-strict-aliasing"
4629 # if using gcc on alpha, use -mieee to get (near) full IEEE 754
4630 # support. Without this, treatment of subnormals doesn't follow
4631 # the standard.
4632 case $ac_sys_machine in
4633 alpha*)
4634 BASECFLAGS="$BASECFLAGS -mieee"
4636 esac
4638 case $ac_sys_system in
4639 SCO_SV*)
4640 BASECFLAGS="$BASECFLAGS -m486 -DSCO5"
4642 # is there any other compiler on Darwin besides gcc?
4643 Darwin*)
4644 # -Wno-long-double, -no-cpp-precomp, and -mno-fused-madd
4645 # used to be here, but non-Apple gcc doesn't accept them.
4648 if test "${enable_universalsdk}"; then
4649 UNIVERSAL_ARCH_FLAGS=""
4650 if test "$UNIVERSAL_ARCHS" = "32-bit" ; then
4651 UNIVERSAL_ARCH_FLAGS="-arch ppc -arch i386"
4652 ARCH_RUN_32BIT=""
4654 elif test "$UNIVERSAL_ARCHS" = "64-bit" ; then
4655 UNIVERSAL_ARCH_FLAGS="-arch ppc64 -arch x86_64"
4657 elif test "$UNIVERSAL_ARCHS" = "all" ; then
4658 UNIVERSAL_ARCH_FLAGS="-arch i386 -arch ppc -arch ppc64 -arch x86_64"
4659 ARCH_RUN_32BIT="arch -386 -ppc"
4661 else
4662 { { echo "$as_me:$LINENO: error: proper usage is --with-universalarch=32-bit|64-bit|all" >&5
4663 echo "$as_me: error: proper usage is --with-universalarch=32-bit|64-bit|all" >&2;}
4664 { (exit 1); exit 1; }; }
4669 BASECFLAGS="${UNIVERSAL_ARCH_FLAGS} -isysroot ${UNIVERSALSDK} ${BASECFLAGS}"
4670 tgt=`sw_vers -productVersion | sed 's/\(10\.[0-9]*\).*/\1/'`
4671 if test "${UNIVERSALSDK}" != "/" -a "${tgt}" '>' '10.4' ; then
4672 CFLAGS="${UNIVERSAL_ARCH_FLAGS} -isysroot ${UNIVERSALSDK} ${CFLAGS}"
4676 # Calculate the right deployment target for this build.
4678 cur_target=`sw_vers -productVersion | sed 's/\(10\.[0-9]*\).*/\1/'`
4679 if test ${cur_target} '>' 10.2; then
4680 cur_target=10.3
4682 if test "${UNIVERSAL_ARCHS}" = "all"; then
4683 # Ensure that the default platform for a 4-way
4684 # universal build is OSX 10.5, that's the first
4685 # OS release where 4-way builds make sense.
4686 cur_target='10.5'
4688 CONFIGURE_MACOSX_DEPLOYMENT_TARGET=${MACOSX_DEPLOYMENT_TARGET-${cur_target}}
4690 # Make sure that MACOSX_DEPLOYMENT_TARGET is set in the
4691 # environment with a value that is the same as what we'll use
4692 # in the Makefile to ensure that we'll get the same compiler
4693 # environment during configure and build time.
4694 MACOSX_DEPLOYMENT_TARGET="$CONFIGURE_MACOSX_DEPLOYMENT_TARGET"
4695 export MACOSX_DEPLOYMENT_TARGET
4696 EXPORT_MACOSX_DEPLOYMENT_TARGET=''
4699 OSF*)
4700 BASECFLAGS="$BASECFLAGS -mieee"
4702 esac
4706 case $ac_sys_system in
4707 OpenUNIX*|UnixWare*)
4708 BASECFLAGS="$BASECFLAGS -K pentium,host,inline,loop_unroll,alloca "
4710 OSF*)
4711 BASECFLAGS="$BASECFLAGS -ieee -std"
4713 SCO_SV*)
4714 BASECFLAGS="$BASECFLAGS -belf -Ki486 -DSCO5"
4716 esac
4718 esac
4720 if test "$Py_DEBUG" = 'true'; then
4722 else
4723 OPT="-DNDEBUG $OPT"
4726 if test "$ac_arch_flags"
4727 then
4728 BASECFLAGS="$BASECFLAGS $ac_arch_flags"
4731 # disable check for icc since it seems to pass, but generates a warning
4732 if test "$CC" = icc
4733 then
4734 ac_cv_opt_olimit_ok=no
4737 { echo "$as_me:$LINENO: checking whether $CC accepts -OPT:Olimit=0" >&5
4738 echo $ECHO_N "checking whether $CC accepts -OPT:Olimit=0... $ECHO_C" >&6; }
4739 if test "${ac_cv_opt_olimit_ok+set}" = set; then
4740 echo $ECHO_N "(cached) $ECHO_C" >&6
4741 else
4742 ac_save_cc="$CC"
4743 CC="$CC -OPT:Olimit=0"
4744 if test "$cross_compiling" = yes; then
4745 ac_cv_opt_olimit_ok=no
4746 else
4747 cat >conftest.$ac_ext <<_ACEOF
4748 /* confdefs.h. */
4749 _ACEOF
4750 cat confdefs.h >>conftest.$ac_ext
4751 cat >>conftest.$ac_ext <<_ACEOF
4752 /* end confdefs.h. */
4753 int main() { return 0; }
4754 _ACEOF
4755 rm -f conftest$ac_exeext
4756 if { (ac_try="$ac_link"
4757 case "(($ac_try" in
4758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4759 *) ac_try_echo=$ac_try;;
4760 esac
4761 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4762 (eval "$ac_link") 2>&5
4763 ac_status=$?
4764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4765 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4766 { (case "(($ac_try" in
4767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4768 *) ac_try_echo=$ac_try;;
4769 esac
4770 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4771 (eval "$ac_try") 2>&5
4772 ac_status=$?
4773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4774 (exit $ac_status); }; }; then
4775 ac_cv_opt_olimit_ok=yes
4776 else
4777 echo "$as_me: program exited with status $ac_status" >&5
4778 echo "$as_me: failed program was:" >&5
4779 sed 's/^/| /' conftest.$ac_ext >&5
4781 ( exit $ac_status )
4782 ac_cv_opt_olimit_ok=no
4784 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4788 CC="$ac_save_cc"
4791 { echo "$as_me:$LINENO: result: $ac_cv_opt_olimit_ok" >&5
4792 echo "${ECHO_T}$ac_cv_opt_olimit_ok" >&6; }
4793 if test $ac_cv_opt_olimit_ok = yes; then
4794 case $ac_sys_system in
4795 # XXX is this branch needed? On MacOSX 10.2.2 the result of the
4796 # olimit_ok test is "no". Is it "yes" in some other Darwin-esque
4797 # environment?
4798 Darwin*)
4801 BASECFLAGS="$BASECFLAGS -OPT:Olimit=0"
4803 esac
4804 else
4805 { echo "$as_me:$LINENO: checking whether $CC accepts -Olimit 1500" >&5
4806 echo $ECHO_N "checking whether $CC accepts -Olimit 1500... $ECHO_C" >&6; }
4807 if test "${ac_cv_olimit_ok+set}" = set; then
4808 echo $ECHO_N "(cached) $ECHO_C" >&6
4809 else
4810 ac_save_cc="$CC"
4811 CC="$CC -Olimit 1500"
4812 if test "$cross_compiling" = yes; then
4813 ac_cv_olimit_ok=no
4814 else
4815 cat >conftest.$ac_ext <<_ACEOF
4816 /* confdefs.h. */
4817 _ACEOF
4818 cat confdefs.h >>conftest.$ac_ext
4819 cat >>conftest.$ac_ext <<_ACEOF
4820 /* end confdefs.h. */
4821 int main() { return 0; }
4822 _ACEOF
4823 rm -f conftest$ac_exeext
4824 if { (ac_try="$ac_link"
4825 case "(($ac_try" in
4826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4827 *) ac_try_echo=$ac_try;;
4828 esac
4829 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4830 (eval "$ac_link") 2>&5
4831 ac_status=$?
4832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4833 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4834 { (case "(($ac_try" in
4835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4836 *) ac_try_echo=$ac_try;;
4837 esac
4838 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4839 (eval "$ac_try") 2>&5
4840 ac_status=$?
4841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4842 (exit $ac_status); }; }; then
4843 ac_cv_olimit_ok=yes
4844 else
4845 echo "$as_me: program exited with status $ac_status" >&5
4846 echo "$as_me: failed program was:" >&5
4847 sed 's/^/| /' conftest.$ac_ext >&5
4849 ( exit $ac_status )
4850 ac_cv_olimit_ok=no
4852 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4856 CC="$ac_save_cc"
4859 { echo "$as_me:$LINENO: result: $ac_cv_olimit_ok" >&5
4860 echo "${ECHO_T}$ac_cv_olimit_ok" >&6; }
4861 if test $ac_cv_olimit_ok = yes; then
4862 BASECFLAGS="$BASECFLAGS -Olimit 1500"
4866 # Check whether GCC supports PyArg_ParseTuple format
4867 if test "$GCC" = "yes"
4868 then
4869 { echo "$as_me:$LINENO: checking whether gcc supports ParseTuple __format__" >&5
4870 echo $ECHO_N "checking whether gcc supports ParseTuple __format__... $ECHO_C" >&6; }
4871 save_CFLAGS=$CFLAGS
4872 CFLAGS="$CFLAGS -Werror"
4873 cat >conftest.$ac_ext <<_ACEOF
4874 /* confdefs.h. */
4875 _ACEOF
4876 cat confdefs.h >>conftest.$ac_ext
4877 cat >>conftest.$ac_ext <<_ACEOF
4878 /* end confdefs.h. */
4880 void f(char*,...)__attribute((format(PyArg_ParseTuple, 1, 2)));
4883 main ()
4887 return 0;
4889 _ACEOF
4890 rm -f conftest.$ac_objext
4891 if { (ac_try="$ac_compile"
4892 case "(($ac_try" in
4893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4894 *) ac_try_echo=$ac_try;;
4895 esac
4896 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4897 (eval "$ac_compile") 2>conftest.er1
4898 ac_status=$?
4899 grep -v '^ *+' conftest.er1 >conftest.err
4900 rm -f conftest.er1
4901 cat conftest.err >&5
4902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4903 (exit $ac_status); } && {
4904 test -z "$ac_c_werror_flag" ||
4905 test ! -s conftest.err
4906 } && test -s conftest.$ac_objext; then
4908 cat >>confdefs.h <<\_ACEOF
4909 #define HAVE_ATTRIBUTE_FORMAT_PARSETUPLE 1
4910 _ACEOF
4912 { echo "$as_me:$LINENO: result: yes" >&5
4913 echo "${ECHO_T}yes" >&6; }
4914 else
4915 echo "$as_me: failed program was:" >&5
4916 sed 's/^/| /' conftest.$ac_ext >&5
4918 { echo "$as_me:$LINENO: result: no" >&5
4919 echo "${ECHO_T}no" >&6; }
4923 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4924 CFLAGS=$save_CFLAGS
4927 # On some compilers, pthreads are available without further options
4928 # (e.g. MacOS X). On some of these systems, the compiler will not
4929 # complain if unaccepted options are passed (e.g. gcc on Mac OS X).
4930 # So we have to see first whether pthreads are available without
4931 # options before we can check whether -Kpthread improves anything.
4932 { echo "$as_me:$LINENO: checking whether pthreads are available without options" >&5
4933 echo $ECHO_N "checking whether pthreads are available without options... $ECHO_C" >&6; }
4934 if test "${ac_cv_pthread_is_default+set}" = set; then
4935 echo $ECHO_N "(cached) $ECHO_C" >&6
4936 else
4937 if test "$cross_compiling" = yes; then
4938 ac_cv_pthread_is_default=no
4939 else
4940 cat >conftest.$ac_ext <<_ACEOF
4941 /* confdefs.h. */
4942 _ACEOF
4943 cat confdefs.h >>conftest.$ac_ext
4944 cat >>conftest.$ac_ext <<_ACEOF
4945 /* end confdefs.h. */
4947 #include <pthread.h>
4949 void* routine(void* p){return NULL;}
4951 int main(){
4952 pthread_t p;
4953 if(pthread_create(&p,NULL,routine,NULL)!=0)
4954 return 1;
4955 (void)pthread_detach(p);
4956 return 0;
4959 _ACEOF
4960 rm -f conftest$ac_exeext
4961 if { (ac_try="$ac_link"
4962 case "(($ac_try" in
4963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4964 *) ac_try_echo=$ac_try;;
4965 esac
4966 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4967 (eval "$ac_link") 2>&5
4968 ac_status=$?
4969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4970 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4971 { (case "(($ac_try" in
4972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4973 *) ac_try_echo=$ac_try;;
4974 esac
4975 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4976 (eval "$ac_try") 2>&5
4977 ac_status=$?
4978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4979 (exit $ac_status); }; }; then
4981 ac_cv_pthread_is_default=yes
4982 ac_cv_kthread=no
4983 ac_cv_pthread=no
4985 else
4986 echo "$as_me: program exited with status $ac_status" >&5
4987 echo "$as_me: failed program was:" >&5
4988 sed 's/^/| /' conftest.$ac_ext >&5
4990 ( exit $ac_status )
4991 ac_cv_pthread_is_default=no
4993 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5000 { echo "$as_me:$LINENO: result: $ac_cv_pthread_is_default" >&5
5001 echo "${ECHO_T}$ac_cv_pthread_is_default" >&6; }
5004 if test $ac_cv_pthread_is_default = yes
5005 then
5006 ac_cv_kpthread=no
5007 else
5008 # -Kpthread, if available, provides the right #defines
5009 # and linker options to make pthread_create available
5010 # Some compilers won't report that they do not support -Kpthread,
5011 # so we need to run a program to see whether it really made the
5012 # function available.
5013 { echo "$as_me:$LINENO: checking whether $CC accepts -Kpthread" >&5
5014 echo $ECHO_N "checking whether $CC accepts -Kpthread... $ECHO_C" >&6; }
5015 if test "${ac_cv_kpthread+set}" = set; then
5016 echo $ECHO_N "(cached) $ECHO_C" >&6
5017 else
5018 ac_save_cc="$CC"
5019 CC="$CC -Kpthread"
5020 if test "$cross_compiling" = yes; then
5021 ac_cv_kpthread=no
5022 else
5023 cat >conftest.$ac_ext <<_ACEOF
5024 /* confdefs.h. */
5025 _ACEOF
5026 cat confdefs.h >>conftest.$ac_ext
5027 cat >>conftest.$ac_ext <<_ACEOF
5028 /* end confdefs.h. */
5030 #include <pthread.h>
5032 void* routine(void* p){return NULL;}
5034 int main(){
5035 pthread_t p;
5036 if(pthread_create(&p,NULL,routine,NULL)!=0)
5037 return 1;
5038 (void)pthread_detach(p);
5039 return 0;
5042 _ACEOF
5043 rm -f conftest$ac_exeext
5044 if { (ac_try="$ac_link"
5045 case "(($ac_try" in
5046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5047 *) ac_try_echo=$ac_try;;
5048 esac
5049 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5050 (eval "$ac_link") 2>&5
5051 ac_status=$?
5052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5053 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5054 { (case "(($ac_try" in
5055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5056 *) ac_try_echo=$ac_try;;
5057 esac
5058 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5059 (eval "$ac_try") 2>&5
5060 ac_status=$?
5061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5062 (exit $ac_status); }; }; then
5063 ac_cv_kpthread=yes
5064 else
5065 echo "$as_me: program exited with status $ac_status" >&5
5066 echo "$as_me: failed program was:" >&5
5067 sed 's/^/| /' conftest.$ac_ext >&5
5069 ( exit $ac_status )
5070 ac_cv_kpthread=no
5072 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5076 CC="$ac_save_cc"
5079 { echo "$as_me:$LINENO: result: $ac_cv_kpthread" >&5
5080 echo "${ECHO_T}$ac_cv_kpthread" >&6; }
5083 if test $ac_cv_kpthread = no -a $ac_cv_pthread_is_default = no
5084 then
5085 # -Kthread, if available, provides the right #defines
5086 # and linker options to make pthread_create available
5087 # Some compilers won't report that they do not support -Kthread,
5088 # so we need to run a program to see whether it really made the
5089 # function available.
5090 { echo "$as_me:$LINENO: checking whether $CC accepts -Kthread" >&5
5091 echo $ECHO_N "checking whether $CC accepts -Kthread... $ECHO_C" >&6; }
5092 if test "${ac_cv_kthread+set}" = set; then
5093 echo $ECHO_N "(cached) $ECHO_C" >&6
5094 else
5095 ac_save_cc="$CC"
5096 CC="$CC -Kthread"
5097 if test "$cross_compiling" = yes; then
5098 ac_cv_kthread=no
5099 else
5100 cat >conftest.$ac_ext <<_ACEOF
5101 /* confdefs.h. */
5102 _ACEOF
5103 cat confdefs.h >>conftest.$ac_ext
5104 cat >>conftest.$ac_ext <<_ACEOF
5105 /* end confdefs.h. */
5107 #include <pthread.h>
5109 void* routine(void* p){return NULL;}
5111 int main(){
5112 pthread_t p;
5113 if(pthread_create(&p,NULL,routine,NULL)!=0)
5114 return 1;
5115 (void)pthread_detach(p);
5116 return 0;
5119 _ACEOF
5120 rm -f conftest$ac_exeext
5121 if { (ac_try="$ac_link"
5122 case "(($ac_try" in
5123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5124 *) ac_try_echo=$ac_try;;
5125 esac
5126 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5127 (eval "$ac_link") 2>&5
5128 ac_status=$?
5129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5130 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5131 { (case "(($ac_try" in
5132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5133 *) ac_try_echo=$ac_try;;
5134 esac
5135 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5136 (eval "$ac_try") 2>&5
5137 ac_status=$?
5138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5139 (exit $ac_status); }; }; then
5140 ac_cv_kthread=yes
5141 else
5142 echo "$as_me: program exited with status $ac_status" >&5
5143 echo "$as_me: failed program was:" >&5
5144 sed 's/^/| /' conftest.$ac_ext >&5
5146 ( exit $ac_status )
5147 ac_cv_kthread=no
5149 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5153 CC="$ac_save_cc"
5156 { echo "$as_me:$LINENO: result: $ac_cv_kthread" >&5
5157 echo "${ECHO_T}$ac_cv_kthread" >&6; }
5160 if test $ac_cv_kthread = no -a $ac_cv_pthread_is_default = no
5161 then
5162 # -pthread, if available, provides the right #defines
5163 # and linker options to make pthread_create available
5164 # Some compilers won't report that they do not support -pthread,
5165 # so we need to run a program to see whether it really made the
5166 # function available.
5167 { echo "$as_me:$LINENO: checking whether $CC accepts -pthread" >&5
5168 echo $ECHO_N "checking whether $CC accepts -pthread... $ECHO_C" >&6; }
5169 if test "${ac_cv_thread+set}" = set; then
5170 echo $ECHO_N "(cached) $ECHO_C" >&6
5171 else
5172 ac_save_cc="$CC"
5173 CC="$CC -pthread"
5174 if test "$cross_compiling" = yes; then
5175 ac_cv_pthread=no
5176 else
5177 cat >conftest.$ac_ext <<_ACEOF
5178 /* confdefs.h. */
5179 _ACEOF
5180 cat confdefs.h >>conftest.$ac_ext
5181 cat >>conftest.$ac_ext <<_ACEOF
5182 /* end confdefs.h. */
5184 #include <pthread.h>
5186 void* routine(void* p){return NULL;}
5188 int main(){
5189 pthread_t p;
5190 if(pthread_create(&p,NULL,routine,NULL)!=0)
5191 return 1;
5192 (void)pthread_detach(p);
5193 return 0;
5196 _ACEOF
5197 rm -f conftest$ac_exeext
5198 if { (ac_try="$ac_link"
5199 case "(($ac_try" in
5200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5201 *) ac_try_echo=$ac_try;;
5202 esac
5203 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5204 (eval "$ac_link") 2>&5
5205 ac_status=$?
5206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5207 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5208 { (case "(($ac_try" in
5209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5210 *) ac_try_echo=$ac_try;;
5211 esac
5212 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5213 (eval "$ac_try") 2>&5
5214 ac_status=$?
5215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5216 (exit $ac_status); }; }; then
5217 ac_cv_pthread=yes
5218 else
5219 echo "$as_me: program exited with status $ac_status" >&5
5220 echo "$as_me: failed program was:" >&5
5221 sed 's/^/| /' conftest.$ac_ext >&5
5223 ( exit $ac_status )
5224 ac_cv_pthread=no
5226 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5230 CC="$ac_save_cc"
5233 { echo "$as_me:$LINENO: result: $ac_cv_pthread" >&5
5234 echo "${ECHO_T}$ac_cv_pthread" >&6; }
5237 # If we have set a CC compiler flag for thread support then
5238 # check if it works for CXX, too.
5239 ac_cv_cxx_thread=no
5240 if test ! -z "$CXX"
5241 then
5242 { echo "$as_me:$LINENO: checking whether $CXX also accepts flags for thread support" >&5
5243 echo $ECHO_N "checking whether $CXX also accepts flags for thread support... $ECHO_C" >&6; }
5244 ac_save_cxx="$CXX"
5246 if test "$ac_cv_kpthread" = "yes"
5247 then
5248 CXX="$CXX -Kpthread"
5249 ac_cv_cxx_thread=yes
5250 elif test "$ac_cv_kthread" = "yes"
5251 then
5252 CXX="$CXX -Kthread"
5253 ac_cv_cxx_thread=yes
5254 elif test "$ac_cv_pthread" = "yes"
5255 then
5256 CXX="$CXX -pthread"
5257 ac_cv_cxx_thread=yes
5260 if test $ac_cv_cxx_thread = yes
5261 then
5262 echo 'void foo();int main(){foo();}void foo(){}' > conftest.$ac_ext
5263 $CXX -c conftest.$ac_ext 2>&5
5264 if $CXX -o conftest$ac_exeext conftest.$ac_objext 2>&5 \
5265 && test -s conftest$ac_exeext && ./conftest$ac_exeext
5266 then
5267 ac_cv_cxx_thread=yes
5268 else
5269 ac_cv_cxx_thread=no
5271 rm -fr conftest*
5273 { echo "$as_me:$LINENO: result: $ac_cv_cxx_thread" >&5
5274 echo "${ECHO_T}$ac_cv_cxx_thread" >&6; }
5276 CXX="$ac_save_cxx"
5279 # checks for header files
5280 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5281 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
5282 if test "${ac_cv_header_stdc+set}" = set; then
5283 echo $ECHO_N "(cached) $ECHO_C" >&6
5284 else
5285 cat >conftest.$ac_ext <<_ACEOF
5286 /* confdefs.h. */
5287 _ACEOF
5288 cat confdefs.h >>conftest.$ac_ext
5289 cat >>conftest.$ac_ext <<_ACEOF
5290 /* end confdefs.h. */
5291 #include <stdlib.h>
5292 #include <stdarg.h>
5293 #include <string.h>
5294 #include <float.h>
5297 main ()
5301 return 0;
5303 _ACEOF
5304 rm -f conftest.$ac_objext
5305 if { (ac_try="$ac_compile"
5306 case "(($ac_try" in
5307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5308 *) ac_try_echo=$ac_try;;
5309 esac
5310 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5311 (eval "$ac_compile") 2>conftest.er1
5312 ac_status=$?
5313 grep -v '^ *+' conftest.er1 >conftest.err
5314 rm -f conftest.er1
5315 cat conftest.err >&5
5316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5317 (exit $ac_status); } && {
5318 test -z "$ac_c_werror_flag" ||
5319 test ! -s conftest.err
5320 } && test -s conftest.$ac_objext; then
5321 ac_cv_header_stdc=yes
5322 else
5323 echo "$as_me: failed program was:" >&5
5324 sed 's/^/| /' conftest.$ac_ext >&5
5326 ac_cv_header_stdc=no
5329 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5331 if test $ac_cv_header_stdc = yes; then
5332 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5333 cat >conftest.$ac_ext <<_ACEOF
5334 /* confdefs.h. */
5335 _ACEOF
5336 cat confdefs.h >>conftest.$ac_ext
5337 cat >>conftest.$ac_ext <<_ACEOF
5338 /* end confdefs.h. */
5339 #include <string.h>
5341 _ACEOF
5342 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5343 $EGREP "memchr" >/dev/null 2>&1; then
5345 else
5346 ac_cv_header_stdc=no
5348 rm -f conftest*
5352 if test $ac_cv_header_stdc = yes; then
5353 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5354 cat >conftest.$ac_ext <<_ACEOF
5355 /* confdefs.h. */
5356 _ACEOF
5357 cat confdefs.h >>conftest.$ac_ext
5358 cat >>conftest.$ac_ext <<_ACEOF
5359 /* end confdefs.h. */
5360 #include <stdlib.h>
5362 _ACEOF
5363 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5364 $EGREP "free" >/dev/null 2>&1; then
5366 else
5367 ac_cv_header_stdc=no
5369 rm -f conftest*
5373 if test $ac_cv_header_stdc = yes; then
5374 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5375 if test "$cross_compiling" = yes; then
5377 else
5378 cat >conftest.$ac_ext <<_ACEOF
5379 /* confdefs.h. */
5380 _ACEOF
5381 cat confdefs.h >>conftest.$ac_ext
5382 cat >>conftest.$ac_ext <<_ACEOF
5383 /* end confdefs.h. */
5384 #include <ctype.h>
5385 #include <stdlib.h>
5386 #if ((' ' & 0x0FF) == 0x020)
5387 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5388 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5389 #else
5390 # define ISLOWER(c) \
5391 (('a' <= (c) && (c) <= 'i') \
5392 || ('j' <= (c) && (c) <= 'r') \
5393 || ('s' <= (c) && (c) <= 'z'))
5394 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5395 #endif
5397 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5399 main ()
5401 int i;
5402 for (i = 0; i < 256; i++)
5403 if (XOR (islower (i), ISLOWER (i))
5404 || toupper (i) != TOUPPER (i))
5405 return 2;
5406 return 0;
5408 _ACEOF
5409 rm -f conftest$ac_exeext
5410 if { (ac_try="$ac_link"
5411 case "(($ac_try" in
5412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5413 *) ac_try_echo=$ac_try;;
5414 esac
5415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5416 (eval "$ac_link") 2>&5
5417 ac_status=$?
5418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5419 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5420 { (case "(($ac_try" in
5421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5422 *) ac_try_echo=$ac_try;;
5423 esac
5424 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5425 (eval "$ac_try") 2>&5
5426 ac_status=$?
5427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5428 (exit $ac_status); }; }; then
5430 else
5431 echo "$as_me: program exited with status $ac_status" >&5
5432 echo "$as_me: failed program was:" >&5
5433 sed 's/^/| /' conftest.$ac_ext >&5
5435 ( exit $ac_status )
5436 ac_cv_header_stdc=no
5438 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5444 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5445 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
5446 if test $ac_cv_header_stdc = yes; then
5448 cat >>confdefs.h <<\_ACEOF
5449 #define STDC_HEADERS 1
5450 _ACEOF
5454 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5464 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5465 inttypes.h stdint.h unistd.h
5467 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5468 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5469 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5470 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5471 echo $ECHO_N "(cached) $ECHO_C" >&6
5472 else
5473 cat >conftest.$ac_ext <<_ACEOF
5474 /* confdefs.h. */
5475 _ACEOF
5476 cat confdefs.h >>conftest.$ac_ext
5477 cat >>conftest.$ac_ext <<_ACEOF
5478 /* end confdefs.h. */
5479 $ac_includes_default
5481 #include <$ac_header>
5482 _ACEOF
5483 rm -f conftest.$ac_objext
5484 if { (ac_try="$ac_compile"
5485 case "(($ac_try" in
5486 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5487 *) ac_try_echo=$ac_try;;
5488 esac
5489 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5490 (eval "$ac_compile") 2>conftest.er1
5491 ac_status=$?
5492 grep -v '^ *+' conftest.er1 >conftest.err
5493 rm -f conftest.er1
5494 cat conftest.err >&5
5495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5496 (exit $ac_status); } && {
5497 test -z "$ac_c_werror_flag" ||
5498 test ! -s conftest.err
5499 } && test -s conftest.$ac_objext; then
5500 eval "$as_ac_Header=yes"
5501 else
5502 echo "$as_me: failed program was:" >&5
5503 sed 's/^/| /' conftest.$ac_ext >&5
5505 eval "$as_ac_Header=no"
5508 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5510 ac_res=`eval echo '${'$as_ac_Header'}'`
5511 { echo "$as_me:$LINENO: result: $ac_res" >&5
5512 echo "${ECHO_T}$ac_res" >&6; }
5513 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5514 cat >>confdefs.h <<_ACEOF
5515 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5516 _ACEOF
5520 done
5577 for ac_header in asm/types.h conio.h curses.h direct.h dlfcn.h errno.h \
5578 fcntl.h grp.h \
5579 ieeefp.h io.h langinfo.h libintl.h ncurses.h poll.h process.h pthread.h \
5580 shadow.h signal.h stdint.h stropts.h termios.h thread.h \
5581 unistd.h utime.h \
5582 sys/audioio.h sys/bsdtty.h sys/epoll.h sys/event.h sys/file.h sys/loadavg.h \
5583 sys/lock.h sys/mkdev.h sys/modem.h \
5584 sys/param.h sys/poll.h sys/select.h sys/socket.h sys/statvfs.h sys/stat.h \
5585 sys/termio.h sys/time.h \
5586 sys/times.h sys/types.h sys/un.h sys/utsname.h sys/wait.h pty.h libutil.h \
5587 sys/resource.h netpacket/packet.h sysexits.h bluetooth.h \
5588 bluetooth/bluetooth.h linux/tipc.h
5590 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5591 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5592 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5593 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5594 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5595 echo $ECHO_N "(cached) $ECHO_C" >&6
5597 ac_res=`eval echo '${'$as_ac_Header'}'`
5598 { echo "$as_me:$LINENO: result: $ac_res" >&5
5599 echo "${ECHO_T}$ac_res" >&6; }
5600 else
5601 # Is the header compilable?
5602 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5603 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5604 cat >conftest.$ac_ext <<_ACEOF
5605 /* confdefs.h. */
5606 _ACEOF
5607 cat confdefs.h >>conftest.$ac_ext
5608 cat >>conftest.$ac_ext <<_ACEOF
5609 /* end confdefs.h. */
5610 $ac_includes_default
5611 #include <$ac_header>
5612 _ACEOF
5613 rm -f conftest.$ac_objext
5614 if { (ac_try="$ac_compile"
5615 case "(($ac_try" in
5616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5617 *) ac_try_echo=$ac_try;;
5618 esac
5619 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5620 (eval "$ac_compile") 2>conftest.er1
5621 ac_status=$?
5622 grep -v '^ *+' conftest.er1 >conftest.err
5623 rm -f conftest.er1
5624 cat conftest.err >&5
5625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5626 (exit $ac_status); } && {
5627 test -z "$ac_c_werror_flag" ||
5628 test ! -s conftest.err
5629 } && test -s conftest.$ac_objext; then
5630 ac_header_compiler=yes
5631 else
5632 echo "$as_me: failed program was:" >&5
5633 sed 's/^/| /' conftest.$ac_ext >&5
5635 ac_header_compiler=no
5638 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5639 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5640 echo "${ECHO_T}$ac_header_compiler" >&6; }
5642 # Is the header present?
5643 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5644 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5645 cat >conftest.$ac_ext <<_ACEOF
5646 /* confdefs.h. */
5647 _ACEOF
5648 cat confdefs.h >>conftest.$ac_ext
5649 cat >>conftest.$ac_ext <<_ACEOF
5650 /* end confdefs.h. */
5651 #include <$ac_header>
5652 _ACEOF
5653 if { (ac_try="$ac_cpp conftest.$ac_ext"
5654 case "(($ac_try" in
5655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5656 *) ac_try_echo=$ac_try;;
5657 esac
5658 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5659 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5660 ac_status=$?
5661 grep -v '^ *+' conftest.er1 >conftest.err
5662 rm -f conftest.er1
5663 cat conftest.err >&5
5664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5665 (exit $ac_status); } >/dev/null && {
5666 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5667 test ! -s conftest.err
5668 }; then
5669 ac_header_preproc=yes
5670 else
5671 echo "$as_me: failed program was:" >&5
5672 sed 's/^/| /' conftest.$ac_ext >&5
5674 ac_header_preproc=no
5677 rm -f conftest.err conftest.$ac_ext
5678 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5679 echo "${ECHO_T}$ac_header_preproc" >&6; }
5681 # So? What about this header?
5682 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5683 yes:no: )
5684 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5685 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5686 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5687 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5688 ac_header_preproc=yes
5690 no:yes:* )
5691 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5692 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5693 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5694 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5695 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5696 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5697 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5698 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5699 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5700 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5701 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5702 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5703 ( cat <<\_ASBOX
5704 ## ------------------------------------------------ ##
5705 ## Report this to http://www.python.org/python-bugs ##
5706 ## ------------------------------------------------ ##
5707 _ASBOX
5708 ) | sed "s/^/$as_me: WARNING: /" >&2
5710 esac
5711 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5712 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5713 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5714 echo $ECHO_N "(cached) $ECHO_C" >&6
5715 else
5716 eval "$as_ac_Header=\$ac_header_preproc"
5718 ac_res=`eval echo '${'$as_ac_Header'}'`
5719 { echo "$as_me:$LINENO: result: $ac_res" >&5
5720 echo "${ECHO_T}$ac_res" >&6; }
5723 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5724 cat >>confdefs.h <<_ACEOF
5725 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5726 _ACEOF
5730 done
5737 ac_header_dirent=no
5738 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
5739 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
5740 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
5741 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
5742 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5743 echo $ECHO_N "(cached) $ECHO_C" >&6
5744 else
5745 cat >conftest.$ac_ext <<_ACEOF
5746 /* confdefs.h. */
5747 _ACEOF
5748 cat confdefs.h >>conftest.$ac_ext
5749 cat >>conftest.$ac_ext <<_ACEOF
5750 /* end confdefs.h. */
5751 #include <sys/types.h>
5752 #include <$ac_hdr>
5755 main ()
5757 if ((DIR *) 0)
5758 return 0;
5760 return 0;
5762 _ACEOF
5763 rm -f conftest.$ac_objext
5764 if { (ac_try="$ac_compile"
5765 case "(($ac_try" in
5766 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5767 *) ac_try_echo=$ac_try;;
5768 esac
5769 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5770 (eval "$ac_compile") 2>conftest.er1
5771 ac_status=$?
5772 grep -v '^ *+' conftest.er1 >conftest.err
5773 rm -f conftest.er1
5774 cat conftest.err >&5
5775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5776 (exit $ac_status); } && {
5777 test -z "$ac_c_werror_flag" ||
5778 test ! -s conftest.err
5779 } && test -s conftest.$ac_objext; then
5780 eval "$as_ac_Header=yes"
5781 else
5782 echo "$as_me: failed program was:" >&5
5783 sed 's/^/| /' conftest.$ac_ext >&5
5785 eval "$as_ac_Header=no"
5788 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5790 ac_res=`eval echo '${'$as_ac_Header'}'`
5791 { echo "$as_me:$LINENO: result: $ac_res" >&5
5792 echo "${ECHO_T}$ac_res" >&6; }
5793 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5794 cat >>confdefs.h <<_ACEOF
5795 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
5796 _ACEOF
5798 ac_header_dirent=$ac_hdr; break
5801 done
5802 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
5803 if test $ac_header_dirent = dirent.h; then
5804 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
5805 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
5806 if test "${ac_cv_search_opendir+set}" = set; then
5807 echo $ECHO_N "(cached) $ECHO_C" >&6
5808 else
5809 ac_func_search_save_LIBS=$LIBS
5810 cat >conftest.$ac_ext <<_ACEOF
5811 /* confdefs.h. */
5812 _ACEOF
5813 cat confdefs.h >>conftest.$ac_ext
5814 cat >>conftest.$ac_ext <<_ACEOF
5815 /* end confdefs.h. */
5817 /* Override any GCC internal prototype to avoid an error.
5818 Use char because int might match the return type of a GCC
5819 builtin and then its argument prototype would still apply. */
5820 #ifdef __cplusplus
5821 extern "C"
5822 #endif
5823 char opendir ();
5825 main ()
5827 return opendir ();
5829 return 0;
5831 _ACEOF
5832 for ac_lib in '' dir; do
5833 if test -z "$ac_lib"; then
5834 ac_res="none required"
5835 else
5836 ac_res=-l$ac_lib
5837 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5839 rm -f conftest.$ac_objext conftest$ac_exeext
5840 if { (ac_try="$ac_link"
5841 case "(($ac_try" in
5842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5843 *) ac_try_echo=$ac_try;;
5844 esac
5845 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5846 (eval "$ac_link") 2>conftest.er1
5847 ac_status=$?
5848 grep -v '^ *+' conftest.er1 >conftest.err
5849 rm -f conftest.er1
5850 cat conftest.err >&5
5851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5852 (exit $ac_status); } && {
5853 test -z "$ac_c_werror_flag" ||
5854 test ! -s conftest.err
5855 } && test -s conftest$ac_exeext &&
5856 $as_test_x conftest$ac_exeext; then
5857 ac_cv_search_opendir=$ac_res
5858 else
5859 echo "$as_me: failed program was:" >&5
5860 sed 's/^/| /' conftest.$ac_ext >&5
5865 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5866 conftest$ac_exeext
5867 if test "${ac_cv_search_opendir+set}" = set; then
5868 break
5870 done
5871 if test "${ac_cv_search_opendir+set}" = set; then
5873 else
5874 ac_cv_search_opendir=no
5876 rm conftest.$ac_ext
5877 LIBS=$ac_func_search_save_LIBS
5879 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
5880 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
5881 ac_res=$ac_cv_search_opendir
5882 if test "$ac_res" != no; then
5883 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5887 else
5888 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
5889 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
5890 if test "${ac_cv_search_opendir+set}" = set; then
5891 echo $ECHO_N "(cached) $ECHO_C" >&6
5892 else
5893 ac_func_search_save_LIBS=$LIBS
5894 cat >conftest.$ac_ext <<_ACEOF
5895 /* confdefs.h. */
5896 _ACEOF
5897 cat confdefs.h >>conftest.$ac_ext
5898 cat >>conftest.$ac_ext <<_ACEOF
5899 /* end confdefs.h. */
5901 /* Override any GCC internal prototype to avoid an error.
5902 Use char because int might match the return type of a GCC
5903 builtin and then its argument prototype would still apply. */
5904 #ifdef __cplusplus
5905 extern "C"
5906 #endif
5907 char opendir ();
5909 main ()
5911 return opendir ();
5913 return 0;
5915 _ACEOF
5916 for ac_lib in '' x; do
5917 if test -z "$ac_lib"; then
5918 ac_res="none required"
5919 else
5920 ac_res=-l$ac_lib
5921 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5923 rm -f conftest.$ac_objext conftest$ac_exeext
5924 if { (ac_try="$ac_link"
5925 case "(($ac_try" in
5926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5927 *) ac_try_echo=$ac_try;;
5928 esac
5929 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5930 (eval "$ac_link") 2>conftest.er1
5931 ac_status=$?
5932 grep -v '^ *+' conftest.er1 >conftest.err
5933 rm -f conftest.er1
5934 cat conftest.err >&5
5935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5936 (exit $ac_status); } && {
5937 test -z "$ac_c_werror_flag" ||
5938 test ! -s conftest.err
5939 } && test -s conftest$ac_exeext &&
5940 $as_test_x conftest$ac_exeext; then
5941 ac_cv_search_opendir=$ac_res
5942 else
5943 echo "$as_me: failed program was:" >&5
5944 sed 's/^/| /' conftest.$ac_ext >&5
5949 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5950 conftest$ac_exeext
5951 if test "${ac_cv_search_opendir+set}" = set; then
5952 break
5954 done
5955 if test "${ac_cv_search_opendir+set}" = set; then
5957 else
5958 ac_cv_search_opendir=no
5960 rm conftest.$ac_ext
5961 LIBS=$ac_func_search_save_LIBS
5963 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
5964 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
5965 ac_res=$ac_cv_search_opendir
5966 if test "$ac_res" != no; then
5967 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5973 { echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
5974 echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6; }
5975 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
5976 echo $ECHO_N "(cached) $ECHO_C" >&6
5977 else
5978 cat >conftest.$ac_ext <<_ACEOF
5979 /* confdefs.h. */
5980 _ACEOF
5981 cat confdefs.h >>conftest.$ac_ext
5982 cat >>conftest.$ac_ext <<_ACEOF
5983 /* end confdefs.h. */
5984 #include <sys/types.h>
5986 main ()
5988 return makedev(0, 0);
5990 return 0;
5992 _ACEOF
5993 rm -f conftest.$ac_objext conftest$ac_exeext
5994 if { (ac_try="$ac_link"
5995 case "(($ac_try" in
5996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5997 *) ac_try_echo=$ac_try;;
5998 esac
5999 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6000 (eval "$ac_link") 2>conftest.er1
6001 ac_status=$?
6002 grep -v '^ *+' conftest.er1 >conftest.err
6003 rm -f conftest.er1
6004 cat conftest.err >&5
6005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6006 (exit $ac_status); } && {
6007 test -z "$ac_c_werror_flag" ||
6008 test ! -s conftest.err
6009 } && test -s conftest$ac_exeext &&
6010 $as_test_x conftest$ac_exeext; then
6011 ac_cv_header_sys_types_h_makedev=yes
6012 else
6013 echo "$as_me: failed program was:" >&5
6014 sed 's/^/| /' conftest.$ac_ext >&5
6016 ac_cv_header_sys_types_h_makedev=no
6019 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6020 conftest$ac_exeext conftest.$ac_ext
6023 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
6024 echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6; }
6026 if test $ac_cv_header_sys_types_h_makedev = no; then
6027 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
6028 { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
6029 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
6030 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
6031 echo $ECHO_N "(cached) $ECHO_C" >&6
6033 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
6034 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
6035 else
6036 # Is the header compilable?
6037 { echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
6038 echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6; }
6039 cat >conftest.$ac_ext <<_ACEOF
6040 /* confdefs.h. */
6041 _ACEOF
6042 cat confdefs.h >>conftest.$ac_ext
6043 cat >>conftest.$ac_ext <<_ACEOF
6044 /* end confdefs.h. */
6045 $ac_includes_default
6046 #include <sys/mkdev.h>
6047 _ACEOF
6048 rm -f conftest.$ac_objext
6049 if { (ac_try="$ac_compile"
6050 case "(($ac_try" in
6051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6052 *) ac_try_echo=$ac_try;;
6053 esac
6054 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6055 (eval "$ac_compile") 2>conftest.er1
6056 ac_status=$?
6057 grep -v '^ *+' conftest.er1 >conftest.err
6058 rm -f conftest.er1
6059 cat conftest.err >&5
6060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6061 (exit $ac_status); } && {
6062 test -z "$ac_c_werror_flag" ||
6063 test ! -s conftest.err
6064 } && test -s conftest.$ac_objext; then
6065 ac_header_compiler=yes
6066 else
6067 echo "$as_me: failed program was:" >&5
6068 sed 's/^/| /' conftest.$ac_ext >&5
6070 ac_header_compiler=no
6073 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6074 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6075 echo "${ECHO_T}$ac_header_compiler" >&6; }
6077 # Is the header present?
6078 { echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
6079 echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6; }
6080 cat >conftest.$ac_ext <<_ACEOF
6081 /* confdefs.h. */
6082 _ACEOF
6083 cat confdefs.h >>conftest.$ac_ext
6084 cat >>conftest.$ac_ext <<_ACEOF
6085 /* end confdefs.h. */
6086 #include <sys/mkdev.h>
6087 _ACEOF
6088 if { (ac_try="$ac_cpp conftest.$ac_ext"
6089 case "(($ac_try" in
6090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6091 *) ac_try_echo=$ac_try;;
6092 esac
6093 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6094 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6095 ac_status=$?
6096 grep -v '^ *+' conftest.er1 >conftest.err
6097 rm -f conftest.er1
6098 cat conftest.err >&5
6099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6100 (exit $ac_status); } >/dev/null && {
6101 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6102 test ! -s conftest.err
6103 }; then
6104 ac_header_preproc=yes
6105 else
6106 echo "$as_me: failed program was:" >&5
6107 sed 's/^/| /' conftest.$ac_ext >&5
6109 ac_header_preproc=no
6112 rm -f conftest.err conftest.$ac_ext
6113 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6114 echo "${ECHO_T}$ac_header_preproc" >&6; }
6116 # So? What about this header?
6117 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6118 yes:no: )
6119 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
6120 echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6121 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&5
6122 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&2;}
6123 ac_header_preproc=yes
6125 no:yes:* )
6126 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
6127 echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
6128 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&5
6129 echo "$as_me: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&2;}
6130 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: see the Autoconf documentation" >&5
6131 echo "$as_me: WARNING: sys/mkdev.h: see the Autoconf documentation" >&2;}
6132 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&5
6133 echo "$as_me: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&2;}
6134 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
6135 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
6136 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&5
6137 echo "$as_me: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&2;}
6138 ( cat <<\_ASBOX
6139 ## ------------------------------------------------ ##
6140 ## Report this to http://www.python.org/python-bugs ##
6141 ## ------------------------------------------------ ##
6142 _ASBOX
6143 ) | sed "s/^/$as_me: WARNING: /" >&2
6145 esac
6146 { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
6147 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
6148 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
6149 echo $ECHO_N "(cached) $ECHO_C" >&6
6150 else
6151 ac_cv_header_sys_mkdev_h=$ac_header_preproc
6153 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
6154 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
6157 if test $ac_cv_header_sys_mkdev_h = yes; then
6159 cat >>confdefs.h <<\_ACEOF
6160 #define MAJOR_IN_MKDEV 1
6161 _ACEOF
6167 if test $ac_cv_header_sys_mkdev_h = no; then
6168 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
6169 { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
6170 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
6171 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
6172 echo $ECHO_N "(cached) $ECHO_C" >&6
6174 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
6175 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
6176 else
6177 # Is the header compilable?
6178 { echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
6179 echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6; }
6180 cat >conftest.$ac_ext <<_ACEOF
6181 /* confdefs.h. */
6182 _ACEOF
6183 cat confdefs.h >>conftest.$ac_ext
6184 cat >>conftest.$ac_ext <<_ACEOF
6185 /* end confdefs.h. */
6186 $ac_includes_default
6187 #include <sys/sysmacros.h>
6188 _ACEOF
6189 rm -f conftest.$ac_objext
6190 if { (ac_try="$ac_compile"
6191 case "(($ac_try" in
6192 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6193 *) ac_try_echo=$ac_try;;
6194 esac
6195 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6196 (eval "$ac_compile") 2>conftest.er1
6197 ac_status=$?
6198 grep -v '^ *+' conftest.er1 >conftest.err
6199 rm -f conftest.er1
6200 cat conftest.err >&5
6201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6202 (exit $ac_status); } && {
6203 test -z "$ac_c_werror_flag" ||
6204 test ! -s conftest.err
6205 } && test -s conftest.$ac_objext; then
6206 ac_header_compiler=yes
6207 else
6208 echo "$as_me: failed program was:" >&5
6209 sed 's/^/| /' conftest.$ac_ext >&5
6211 ac_header_compiler=no
6214 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6215 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6216 echo "${ECHO_T}$ac_header_compiler" >&6; }
6218 # Is the header present?
6219 { echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
6220 echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6; }
6221 cat >conftest.$ac_ext <<_ACEOF
6222 /* confdefs.h. */
6223 _ACEOF
6224 cat confdefs.h >>conftest.$ac_ext
6225 cat >>conftest.$ac_ext <<_ACEOF
6226 /* end confdefs.h. */
6227 #include <sys/sysmacros.h>
6228 _ACEOF
6229 if { (ac_try="$ac_cpp conftest.$ac_ext"
6230 case "(($ac_try" in
6231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6232 *) ac_try_echo=$ac_try;;
6233 esac
6234 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6235 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6236 ac_status=$?
6237 grep -v '^ *+' conftest.er1 >conftest.err
6238 rm -f conftest.er1
6239 cat conftest.err >&5
6240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6241 (exit $ac_status); } >/dev/null && {
6242 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6243 test ! -s conftest.err
6244 }; then
6245 ac_header_preproc=yes
6246 else
6247 echo "$as_me: failed program was:" >&5
6248 sed 's/^/| /' conftest.$ac_ext >&5
6250 ac_header_preproc=no
6253 rm -f conftest.err conftest.$ac_ext
6254 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6255 echo "${ECHO_T}$ac_header_preproc" >&6; }
6257 # So? What about this header?
6258 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6259 yes:no: )
6260 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
6261 echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6262 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&5
6263 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&2;}
6264 ac_header_preproc=yes
6266 no:yes:* )
6267 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
6268 echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
6269 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&5
6270 echo "$as_me: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&2;}
6271 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&5
6272 echo "$as_me: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&2;}
6273 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&5
6274 echo "$as_me: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&2;}
6275 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
6276 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
6277 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&5
6278 echo "$as_me: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&2;}
6279 ( cat <<\_ASBOX
6280 ## ------------------------------------------------ ##
6281 ## Report this to http://www.python.org/python-bugs ##
6282 ## ------------------------------------------------ ##
6283 _ASBOX
6284 ) | sed "s/^/$as_me: WARNING: /" >&2
6286 esac
6287 { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
6288 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
6289 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
6290 echo $ECHO_N "(cached) $ECHO_C" >&6
6291 else
6292 ac_cv_header_sys_sysmacros_h=$ac_header_preproc
6294 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
6295 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
6298 if test $ac_cv_header_sys_sysmacros_h = yes; then
6300 cat >>confdefs.h <<\_ACEOF
6301 #define MAJOR_IN_SYSMACROS 1
6302 _ACEOF
6311 # On Solaris, term.h requires curses.h
6313 for ac_header in term.h
6315 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6316 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6317 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6318 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6319 echo $ECHO_N "(cached) $ECHO_C" >&6
6320 else
6321 cat >conftest.$ac_ext <<_ACEOF
6322 /* confdefs.h. */
6323 _ACEOF
6324 cat confdefs.h >>conftest.$ac_ext
6325 cat >>conftest.$ac_ext <<_ACEOF
6326 /* end confdefs.h. */
6328 #ifdef HAVE_CURSES_H
6329 #include <curses.h>
6330 #endif
6333 #include <$ac_header>
6334 _ACEOF
6335 rm -f conftest.$ac_objext
6336 if { (ac_try="$ac_compile"
6337 case "(($ac_try" in
6338 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6339 *) ac_try_echo=$ac_try;;
6340 esac
6341 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6342 (eval "$ac_compile") 2>conftest.er1
6343 ac_status=$?
6344 grep -v '^ *+' conftest.er1 >conftest.err
6345 rm -f conftest.er1
6346 cat conftest.err >&5
6347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6348 (exit $ac_status); } && {
6349 test -z "$ac_c_werror_flag" ||
6350 test ! -s conftest.err
6351 } && test -s conftest.$ac_objext; then
6352 eval "$as_ac_Header=yes"
6353 else
6354 echo "$as_me: failed program was:" >&5
6355 sed 's/^/| /' conftest.$ac_ext >&5
6357 eval "$as_ac_Header=no"
6360 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6362 ac_res=`eval echo '${'$as_ac_Header'}'`
6363 { echo "$as_me:$LINENO: result: $ac_res" >&5
6364 echo "${ECHO_T}$ac_res" >&6; }
6365 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6366 cat >>confdefs.h <<_ACEOF
6367 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6368 _ACEOF
6372 done
6375 # On Linux, netlink.h requires asm/types.h
6377 for ac_header in linux/netlink.h
6379 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6380 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6381 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6382 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6383 echo $ECHO_N "(cached) $ECHO_C" >&6
6384 else
6385 cat >conftest.$ac_ext <<_ACEOF
6386 /* confdefs.h. */
6387 _ACEOF
6388 cat confdefs.h >>conftest.$ac_ext
6389 cat >>conftest.$ac_ext <<_ACEOF
6390 /* end confdefs.h. */
6392 #ifdef HAVE_ASM_TYPES_H
6393 #include <asm/types.h>
6394 #endif
6395 #ifdef HAVE_SYS_SOCKET_H
6396 #include <sys/socket.h>
6397 #endif
6400 #include <$ac_header>
6401 _ACEOF
6402 rm -f conftest.$ac_objext
6403 if { (ac_try="$ac_compile"
6404 case "(($ac_try" in
6405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6406 *) ac_try_echo=$ac_try;;
6407 esac
6408 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6409 (eval "$ac_compile") 2>conftest.er1
6410 ac_status=$?
6411 grep -v '^ *+' conftest.er1 >conftest.err
6412 rm -f conftest.er1
6413 cat conftest.err >&5
6414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6415 (exit $ac_status); } && {
6416 test -z "$ac_c_werror_flag" ||
6417 test ! -s conftest.err
6418 } && test -s conftest.$ac_objext; then
6419 eval "$as_ac_Header=yes"
6420 else
6421 echo "$as_me: failed program was:" >&5
6422 sed 's/^/| /' conftest.$ac_ext >&5
6424 eval "$as_ac_Header=no"
6427 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6429 ac_res=`eval echo '${'$as_ac_Header'}'`
6430 { echo "$as_me:$LINENO: result: $ac_res" >&5
6431 echo "${ECHO_T}$ac_res" >&6; }
6432 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6433 cat >>confdefs.h <<_ACEOF
6434 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6435 _ACEOF
6439 done
6442 # checks for typedefs
6443 was_it_defined=no
6444 { echo "$as_me:$LINENO: checking for clock_t in time.h" >&5
6445 echo $ECHO_N "checking for clock_t in time.h... $ECHO_C" >&6; }
6446 cat >conftest.$ac_ext <<_ACEOF
6447 /* confdefs.h. */
6448 _ACEOF
6449 cat confdefs.h >>conftest.$ac_ext
6450 cat >>conftest.$ac_ext <<_ACEOF
6451 /* end confdefs.h. */
6452 #include <time.h>
6454 _ACEOF
6455 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6456 $EGREP "clock_t" >/dev/null 2>&1; then
6457 was_it_defined=yes
6458 else
6461 cat >>confdefs.h <<\_ACEOF
6462 #define clock_t long
6463 _ACEOF
6467 rm -f conftest*
6469 { echo "$as_me:$LINENO: result: $was_it_defined" >&5
6470 echo "${ECHO_T}$was_it_defined" >&6; }
6472 # Check whether using makedev requires defining _OSF_SOURCE
6473 { echo "$as_me:$LINENO: checking for makedev" >&5
6474 echo $ECHO_N "checking for makedev... $ECHO_C" >&6; }
6475 cat >conftest.$ac_ext <<_ACEOF
6476 /* confdefs.h. */
6477 _ACEOF
6478 cat confdefs.h >>conftest.$ac_ext
6479 cat >>conftest.$ac_ext <<_ACEOF
6480 /* end confdefs.h. */
6481 #include <sys/types.h>
6483 main ()
6485 makedev(0, 0)
6487 return 0;
6489 _ACEOF
6490 rm -f conftest.$ac_objext conftest$ac_exeext
6491 if { (ac_try="$ac_link"
6492 case "(($ac_try" in
6493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6494 *) ac_try_echo=$ac_try;;
6495 esac
6496 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6497 (eval "$ac_link") 2>conftest.er1
6498 ac_status=$?
6499 grep -v '^ *+' conftest.er1 >conftest.err
6500 rm -f conftest.er1
6501 cat conftest.err >&5
6502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6503 (exit $ac_status); } && {
6504 test -z "$ac_c_werror_flag" ||
6505 test ! -s conftest.err
6506 } && test -s conftest$ac_exeext &&
6507 $as_test_x conftest$ac_exeext; then
6508 ac_cv_has_makedev=yes
6509 else
6510 echo "$as_me: failed program was:" >&5
6511 sed 's/^/| /' conftest.$ac_ext >&5
6513 ac_cv_has_makedev=no
6516 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6517 conftest$ac_exeext conftest.$ac_ext
6518 if test "$ac_cv_has_makedev" = "no"; then
6519 # we didn't link, try if _OSF_SOURCE will allow us to link
6520 cat >conftest.$ac_ext <<_ACEOF
6521 /* confdefs.h. */
6522 _ACEOF
6523 cat confdefs.h >>conftest.$ac_ext
6524 cat >>conftest.$ac_ext <<_ACEOF
6525 /* end confdefs.h. */
6527 #define _OSF_SOURCE 1
6528 #include <sys/types.h>
6531 main ()
6533 makedev(0, 0)
6535 return 0;
6537 _ACEOF
6538 rm -f conftest.$ac_objext conftest$ac_exeext
6539 if { (ac_try="$ac_link"
6540 case "(($ac_try" in
6541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6542 *) ac_try_echo=$ac_try;;
6543 esac
6544 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6545 (eval "$ac_link") 2>conftest.er1
6546 ac_status=$?
6547 grep -v '^ *+' conftest.er1 >conftest.err
6548 rm -f conftest.er1
6549 cat conftest.err >&5
6550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6551 (exit $ac_status); } && {
6552 test -z "$ac_c_werror_flag" ||
6553 test ! -s conftest.err
6554 } && test -s conftest$ac_exeext &&
6555 $as_test_x conftest$ac_exeext; then
6556 ac_cv_has_makedev=yes
6557 else
6558 echo "$as_me: failed program was:" >&5
6559 sed 's/^/| /' conftest.$ac_ext >&5
6561 ac_cv_has_makedev=no
6564 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6565 conftest$ac_exeext conftest.$ac_ext
6566 if test "$ac_cv_has_makedev" = "yes"; then
6568 cat >>confdefs.h <<\_ACEOF
6569 #define _OSF_SOURCE 1
6570 _ACEOF
6574 { echo "$as_me:$LINENO: result: $ac_cv_has_makedev" >&5
6575 echo "${ECHO_T}$ac_cv_has_makedev" >&6; }
6576 if test "$ac_cv_has_makedev" = "yes"; then
6578 cat >>confdefs.h <<\_ACEOF
6579 #define HAVE_MAKEDEV 1
6580 _ACEOF
6584 # Enabling LFS on Solaris (2.6 to 9) with gcc 2.95 triggers a bug in
6585 # the system headers: If _XOPEN_SOURCE and _LARGEFILE_SOURCE are
6586 # defined, but the compiler does not support pragma redefine_extname,
6587 # and _LARGEFILE64_SOURCE is not defined, the headers refer to 64-bit
6588 # structures (such as rlimit64) without declaring them. As a
6589 # work-around, disable LFS on such configurations
6591 use_lfs=yes
6592 { echo "$as_me:$LINENO: checking Solaris LFS bug" >&5
6593 echo $ECHO_N "checking Solaris LFS bug... $ECHO_C" >&6; }
6594 cat >conftest.$ac_ext <<_ACEOF
6595 /* confdefs.h. */
6596 _ACEOF
6597 cat confdefs.h >>conftest.$ac_ext
6598 cat >>conftest.$ac_ext <<_ACEOF
6599 /* end confdefs.h. */
6601 #define _LARGEFILE_SOURCE 1
6602 #define _FILE_OFFSET_BITS 64
6603 #include <sys/resource.h>
6606 main ()
6608 struct rlimit foo;
6610 return 0;
6612 _ACEOF
6613 rm -f conftest.$ac_objext
6614 if { (ac_try="$ac_compile"
6615 case "(($ac_try" in
6616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6617 *) ac_try_echo=$ac_try;;
6618 esac
6619 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6620 (eval "$ac_compile") 2>conftest.er1
6621 ac_status=$?
6622 grep -v '^ *+' conftest.er1 >conftest.err
6623 rm -f conftest.er1
6624 cat conftest.err >&5
6625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6626 (exit $ac_status); } && {
6627 test -z "$ac_c_werror_flag" ||
6628 test ! -s conftest.err
6629 } && test -s conftest.$ac_objext; then
6630 sol_lfs_bug=no
6631 else
6632 echo "$as_me: failed program was:" >&5
6633 sed 's/^/| /' conftest.$ac_ext >&5
6635 sol_lfs_bug=yes
6638 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6639 { echo "$as_me:$LINENO: result: $sol_lfs_bug" >&5
6640 echo "${ECHO_T}$sol_lfs_bug" >&6; }
6641 if test "$sol_lfs_bug" = "yes"; then
6642 use_lfs=no
6645 if test "$use_lfs" = "yes"; then
6646 # Two defines needed to enable largefile support on various platforms
6647 # These may affect some typedefs
6649 cat >>confdefs.h <<\_ACEOF
6650 #define _LARGEFILE_SOURCE 1
6651 _ACEOF
6654 cat >>confdefs.h <<\_ACEOF
6655 #define _FILE_OFFSET_BITS 64
6656 _ACEOF
6660 # Add some code to confdefs.h so that the test for off_t works on SCO
6661 cat >> confdefs.h <<\EOF
6662 #if defined(SCO_DS)
6663 #undef _OFF_T
6664 #endif
6667 # Type availability checks
6668 { echo "$as_me:$LINENO: checking for mode_t" >&5
6669 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; }
6670 if test "${ac_cv_type_mode_t+set}" = set; then
6671 echo $ECHO_N "(cached) $ECHO_C" >&6
6672 else
6673 cat >conftest.$ac_ext <<_ACEOF
6674 /* confdefs.h. */
6675 _ACEOF
6676 cat confdefs.h >>conftest.$ac_ext
6677 cat >>conftest.$ac_ext <<_ACEOF
6678 /* end confdefs.h. */
6679 $ac_includes_default
6680 typedef mode_t ac__type_new_;
6682 main ()
6684 if ((ac__type_new_ *) 0)
6685 return 0;
6686 if (sizeof (ac__type_new_))
6687 return 0;
6689 return 0;
6691 _ACEOF
6692 rm -f conftest.$ac_objext
6693 if { (ac_try="$ac_compile"
6694 case "(($ac_try" in
6695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6696 *) ac_try_echo=$ac_try;;
6697 esac
6698 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6699 (eval "$ac_compile") 2>conftest.er1
6700 ac_status=$?
6701 grep -v '^ *+' conftest.er1 >conftest.err
6702 rm -f conftest.er1
6703 cat conftest.err >&5
6704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6705 (exit $ac_status); } && {
6706 test -z "$ac_c_werror_flag" ||
6707 test ! -s conftest.err
6708 } && test -s conftest.$ac_objext; then
6709 ac_cv_type_mode_t=yes
6710 else
6711 echo "$as_me: failed program was:" >&5
6712 sed 's/^/| /' conftest.$ac_ext >&5
6714 ac_cv_type_mode_t=no
6717 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6719 { echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
6720 echo "${ECHO_T}$ac_cv_type_mode_t" >&6; }
6721 if test $ac_cv_type_mode_t = yes; then
6723 else
6725 cat >>confdefs.h <<_ACEOF
6726 #define mode_t int
6727 _ACEOF
6731 { echo "$as_me:$LINENO: checking for off_t" >&5
6732 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
6733 if test "${ac_cv_type_off_t+set}" = set; then
6734 echo $ECHO_N "(cached) $ECHO_C" >&6
6735 else
6736 cat >conftest.$ac_ext <<_ACEOF
6737 /* confdefs.h. */
6738 _ACEOF
6739 cat confdefs.h >>conftest.$ac_ext
6740 cat >>conftest.$ac_ext <<_ACEOF
6741 /* end confdefs.h. */
6742 $ac_includes_default
6743 typedef off_t ac__type_new_;
6745 main ()
6747 if ((ac__type_new_ *) 0)
6748 return 0;
6749 if (sizeof (ac__type_new_))
6750 return 0;
6752 return 0;
6754 _ACEOF
6755 rm -f conftest.$ac_objext
6756 if { (ac_try="$ac_compile"
6757 case "(($ac_try" in
6758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6759 *) ac_try_echo=$ac_try;;
6760 esac
6761 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6762 (eval "$ac_compile") 2>conftest.er1
6763 ac_status=$?
6764 grep -v '^ *+' conftest.er1 >conftest.err
6765 rm -f conftest.er1
6766 cat conftest.err >&5
6767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6768 (exit $ac_status); } && {
6769 test -z "$ac_c_werror_flag" ||
6770 test ! -s conftest.err
6771 } && test -s conftest.$ac_objext; then
6772 ac_cv_type_off_t=yes
6773 else
6774 echo "$as_me: failed program was:" >&5
6775 sed 's/^/| /' conftest.$ac_ext >&5
6777 ac_cv_type_off_t=no
6780 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6782 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
6783 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
6784 if test $ac_cv_type_off_t = yes; then
6786 else
6788 cat >>confdefs.h <<_ACEOF
6789 #define off_t long int
6790 _ACEOF
6794 { echo "$as_me:$LINENO: checking for pid_t" >&5
6795 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
6796 if test "${ac_cv_type_pid_t+set}" = set; then
6797 echo $ECHO_N "(cached) $ECHO_C" >&6
6798 else
6799 cat >conftest.$ac_ext <<_ACEOF
6800 /* confdefs.h. */
6801 _ACEOF
6802 cat confdefs.h >>conftest.$ac_ext
6803 cat >>conftest.$ac_ext <<_ACEOF
6804 /* end confdefs.h. */
6805 $ac_includes_default
6806 typedef pid_t ac__type_new_;
6808 main ()
6810 if ((ac__type_new_ *) 0)
6811 return 0;
6812 if (sizeof (ac__type_new_))
6813 return 0;
6815 return 0;
6817 _ACEOF
6818 rm -f conftest.$ac_objext
6819 if { (ac_try="$ac_compile"
6820 case "(($ac_try" in
6821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6822 *) ac_try_echo=$ac_try;;
6823 esac
6824 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6825 (eval "$ac_compile") 2>conftest.er1
6826 ac_status=$?
6827 grep -v '^ *+' conftest.er1 >conftest.err
6828 rm -f conftest.er1
6829 cat conftest.err >&5
6830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6831 (exit $ac_status); } && {
6832 test -z "$ac_c_werror_flag" ||
6833 test ! -s conftest.err
6834 } && test -s conftest.$ac_objext; then
6835 ac_cv_type_pid_t=yes
6836 else
6837 echo "$as_me: failed program was:" >&5
6838 sed 's/^/| /' conftest.$ac_ext >&5
6840 ac_cv_type_pid_t=no
6843 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6845 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
6846 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
6847 if test $ac_cv_type_pid_t = yes; then
6849 else
6851 cat >>confdefs.h <<_ACEOF
6852 #define pid_t int
6853 _ACEOF
6857 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
6858 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
6859 if test "${ac_cv_type_signal+set}" = set; then
6860 echo $ECHO_N "(cached) $ECHO_C" >&6
6861 else
6862 cat >conftest.$ac_ext <<_ACEOF
6863 /* confdefs.h. */
6864 _ACEOF
6865 cat confdefs.h >>conftest.$ac_ext
6866 cat >>conftest.$ac_ext <<_ACEOF
6867 /* end confdefs.h. */
6868 #include <sys/types.h>
6869 #include <signal.h>
6872 main ()
6874 return *(signal (0, 0)) (0) == 1;
6876 return 0;
6878 _ACEOF
6879 rm -f conftest.$ac_objext
6880 if { (ac_try="$ac_compile"
6881 case "(($ac_try" in
6882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6883 *) ac_try_echo=$ac_try;;
6884 esac
6885 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6886 (eval "$ac_compile") 2>conftest.er1
6887 ac_status=$?
6888 grep -v '^ *+' conftest.er1 >conftest.err
6889 rm -f conftest.er1
6890 cat conftest.err >&5
6891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6892 (exit $ac_status); } && {
6893 test -z "$ac_c_werror_flag" ||
6894 test ! -s conftest.err
6895 } && test -s conftest.$ac_objext; then
6896 ac_cv_type_signal=int
6897 else
6898 echo "$as_me: failed program was:" >&5
6899 sed 's/^/| /' conftest.$ac_ext >&5
6901 ac_cv_type_signal=void
6904 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6906 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
6907 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
6909 cat >>confdefs.h <<_ACEOF
6910 #define RETSIGTYPE $ac_cv_type_signal
6911 _ACEOF
6914 { echo "$as_me:$LINENO: checking for size_t" >&5
6915 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
6916 if test "${ac_cv_type_size_t+set}" = set; then
6917 echo $ECHO_N "(cached) $ECHO_C" >&6
6918 else
6919 cat >conftest.$ac_ext <<_ACEOF
6920 /* confdefs.h. */
6921 _ACEOF
6922 cat confdefs.h >>conftest.$ac_ext
6923 cat >>conftest.$ac_ext <<_ACEOF
6924 /* end confdefs.h. */
6925 $ac_includes_default
6926 typedef size_t ac__type_new_;
6928 main ()
6930 if ((ac__type_new_ *) 0)
6931 return 0;
6932 if (sizeof (ac__type_new_))
6933 return 0;
6935 return 0;
6937 _ACEOF
6938 rm -f conftest.$ac_objext
6939 if { (ac_try="$ac_compile"
6940 case "(($ac_try" in
6941 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6942 *) ac_try_echo=$ac_try;;
6943 esac
6944 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6945 (eval "$ac_compile") 2>conftest.er1
6946 ac_status=$?
6947 grep -v '^ *+' conftest.er1 >conftest.err
6948 rm -f conftest.er1
6949 cat conftest.err >&5
6950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6951 (exit $ac_status); } && {
6952 test -z "$ac_c_werror_flag" ||
6953 test ! -s conftest.err
6954 } && test -s conftest.$ac_objext; then
6955 ac_cv_type_size_t=yes
6956 else
6957 echo "$as_me: failed program was:" >&5
6958 sed 's/^/| /' conftest.$ac_ext >&5
6960 ac_cv_type_size_t=no
6963 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6965 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
6966 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
6967 if test $ac_cv_type_size_t = yes; then
6969 else
6971 cat >>confdefs.h <<_ACEOF
6972 #define size_t unsigned int
6973 _ACEOF
6977 { echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
6978 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
6979 if test "${ac_cv_type_uid_t+set}" = set; then
6980 echo $ECHO_N "(cached) $ECHO_C" >&6
6981 else
6982 cat >conftest.$ac_ext <<_ACEOF
6983 /* confdefs.h. */
6984 _ACEOF
6985 cat confdefs.h >>conftest.$ac_ext
6986 cat >>conftest.$ac_ext <<_ACEOF
6987 /* end confdefs.h. */
6988 #include <sys/types.h>
6990 _ACEOF
6991 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6992 $EGREP "uid_t" >/dev/null 2>&1; then
6993 ac_cv_type_uid_t=yes
6994 else
6995 ac_cv_type_uid_t=no
6997 rm -f conftest*
7000 { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
7001 echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
7002 if test $ac_cv_type_uid_t = no; then
7004 cat >>confdefs.h <<\_ACEOF
7005 #define uid_t int
7006 _ACEOF
7009 cat >>confdefs.h <<\_ACEOF
7010 #define gid_t int
7011 _ACEOF
7015 { echo "$as_me:$LINENO: checking for ssize_t" >&5
7016 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
7017 if test "${ac_cv_type_ssize_t+set}" = set; then
7018 echo $ECHO_N "(cached) $ECHO_C" >&6
7019 else
7020 cat >conftest.$ac_ext <<_ACEOF
7021 /* confdefs.h. */
7022 _ACEOF
7023 cat confdefs.h >>conftest.$ac_ext
7024 cat >>conftest.$ac_ext <<_ACEOF
7025 /* end confdefs.h. */
7026 $ac_includes_default
7027 typedef ssize_t ac__type_new_;
7029 main ()
7031 if ((ac__type_new_ *) 0)
7032 return 0;
7033 if (sizeof (ac__type_new_))
7034 return 0;
7036 return 0;
7038 _ACEOF
7039 rm -f conftest.$ac_objext
7040 if { (ac_try="$ac_compile"
7041 case "(($ac_try" in
7042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7043 *) ac_try_echo=$ac_try;;
7044 esac
7045 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7046 (eval "$ac_compile") 2>conftest.er1
7047 ac_status=$?
7048 grep -v '^ *+' conftest.er1 >conftest.err
7049 rm -f conftest.er1
7050 cat conftest.err >&5
7051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7052 (exit $ac_status); } && {
7053 test -z "$ac_c_werror_flag" ||
7054 test ! -s conftest.err
7055 } && test -s conftest.$ac_objext; then
7056 ac_cv_type_ssize_t=yes
7057 else
7058 echo "$as_me: failed program was:" >&5
7059 sed 's/^/| /' conftest.$ac_ext >&5
7061 ac_cv_type_ssize_t=no
7064 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7066 { echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
7067 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6; }
7068 if test $ac_cv_type_ssize_t = yes; then
7070 cat >>confdefs.h <<\_ACEOF
7071 #define HAVE_SSIZE_T 1
7072 _ACEOF
7077 # Sizes of various common basic types
7078 # ANSI C requires sizeof(char) == 1, so no need to check it
7079 { echo "$as_me:$LINENO: checking for int" >&5
7080 echo $ECHO_N "checking for int... $ECHO_C" >&6; }
7081 if test "${ac_cv_type_int+set}" = set; then
7082 echo $ECHO_N "(cached) $ECHO_C" >&6
7083 else
7084 cat >conftest.$ac_ext <<_ACEOF
7085 /* confdefs.h. */
7086 _ACEOF
7087 cat confdefs.h >>conftest.$ac_ext
7088 cat >>conftest.$ac_ext <<_ACEOF
7089 /* end confdefs.h. */
7090 $ac_includes_default
7091 typedef int ac__type_new_;
7093 main ()
7095 if ((ac__type_new_ *) 0)
7096 return 0;
7097 if (sizeof (ac__type_new_))
7098 return 0;
7100 return 0;
7102 _ACEOF
7103 rm -f conftest.$ac_objext
7104 if { (ac_try="$ac_compile"
7105 case "(($ac_try" in
7106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7107 *) ac_try_echo=$ac_try;;
7108 esac
7109 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7110 (eval "$ac_compile") 2>conftest.er1
7111 ac_status=$?
7112 grep -v '^ *+' conftest.er1 >conftest.err
7113 rm -f conftest.er1
7114 cat conftest.err >&5
7115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7116 (exit $ac_status); } && {
7117 test -z "$ac_c_werror_flag" ||
7118 test ! -s conftest.err
7119 } && test -s conftest.$ac_objext; then
7120 ac_cv_type_int=yes
7121 else
7122 echo "$as_me: failed program was:" >&5
7123 sed 's/^/| /' conftest.$ac_ext >&5
7125 ac_cv_type_int=no
7128 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7130 { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
7131 echo "${ECHO_T}$ac_cv_type_int" >&6; }
7133 # The cast to long int works around a bug in the HP C Compiler
7134 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7135 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7136 # This bug is HP SR number 8606223364.
7137 { echo "$as_me:$LINENO: checking size of int" >&5
7138 echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
7139 if test "${ac_cv_sizeof_int+set}" = set; then
7140 echo $ECHO_N "(cached) $ECHO_C" >&6
7141 else
7142 if test "$cross_compiling" = yes; then
7143 # Depending upon the size, compute the lo and hi bounds.
7144 cat >conftest.$ac_ext <<_ACEOF
7145 /* confdefs.h. */
7146 _ACEOF
7147 cat confdefs.h >>conftest.$ac_ext
7148 cat >>conftest.$ac_ext <<_ACEOF
7149 /* end confdefs.h. */
7150 $ac_includes_default
7151 typedef int ac__type_sizeof_;
7153 main ()
7155 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
7156 test_array [0] = 0
7159 return 0;
7161 _ACEOF
7162 rm -f conftest.$ac_objext
7163 if { (ac_try="$ac_compile"
7164 case "(($ac_try" in
7165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7166 *) ac_try_echo=$ac_try;;
7167 esac
7168 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7169 (eval "$ac_compile") 2>conftest.er1
7170 ac_status=$?
7171 grep -v '^ *+' conftest.er1 >conftest.err
7172 rm -f conftest.er1
7173 cat conftest.err >&5
7174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7175 (exit $ac_status); } && {
7176 test -z "$ac_c_werror_flag" ||
7177 test ! -s conftest.err
7178 } && test -s conftest.$ac_objext; then
7179 ac_lo=0 ac_mid=0
7180 while :; do
7181 cat >conftest.$ac_ext <<_ACEOF
7182 /* confdefs.h. */
7183 _ACEOF
7184 cat confdefs.h >>conftest.$ac_ext
7185 cat >>conftest.$ac_ext <<_ACEOF
7186 /* end confdefs.h. */
7187 $ac_includes_default
7188 typedef int ac__type_sizeof_;
7190 main ()
7192 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
7193 test_array [0] = 0
7196 return 0;
7198 _ACEOF
7199 rm -f conftest.$ac_objext
7200 if { (ac_try="$ac_compile"
7201 case "(($ac_try" in
7202 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7203 *) ac_try_echo=$ac_try;;
7204 esac
7205 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7206 (eval "$ac_compile") 2>conftest.er1
7207 ac_status=$?
7208 grep -v '^ *+' conftest.er1 >conftest.err
7209 rm -f conftest.er1
7210 cat conftest.err >&5
7211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7212 (exit $ac_status); } && {
7213 test -z "$ac_c_werror_flag" ||
7214 test ! -s conftest.err
7215 } && test -s conftest.$ac_objext; then
7216 ac_hi=$ac_mid; break
7217 else
7218 echo "$as_me: failed program was:" >&5
7219 sed 's/^/| /' conftest.$ac_ext >&5
7221 ac_lo=`expr $ac_mid + 1`
7222 if test $ac_lo -le $ac_mid; then
7223 ac_lo= ac_hi=
7224 break
7226 ac_mid=`expr 2 '*' $ac_mid + 1`
7229 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7230 done
7231 else
7232 echo "$as_me: failed program was:" >&5
7233 sed 's/^/| /' conftest.$ac_ext >&5
7235 cat >conftest.$ac_ext <<_ACEOF
7236 /* confdefs.h. */
7237 _ACEOF
7238 cat confdefs.h >>conftest.$ac_ext
7239 cat >>conftest.$ac_ext <<_ACEOF
7240 /* end confdefs.h. */
7241 $ac_includes_default
7242 typedef int ac__type_sizeof_;
7244 main ()
7246 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
7247 test_array [0] = 0
7250 return 0;
7252 _ACEOF
7253 rm -f conftest.$ac_objext
7254 if { (ac_try="$ac_compile"
7255 case "(($ac_try" in
7256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7257 *) ac_try_echo=$ac_try;;
7258 esac
7259 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7260 (eval "$ac_compile") 2>conftest.er1
7261 ac_status=$?
7262 grep -v '^ *+' conftest.er1 >conftest.err
7263 rm -f conftest.er1
7264 cat conftest.err >&5
7265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7266 (exit $ac_status); } && {
7267 test -z "$ac_c_werror_flag" ||
7268 test ! -s conftest.err
7269 } && test -s conftest.$ac_objext; then
7270 ac_hi=-1 ac_mid=-1
7271 while :; do
7272 cat >conftest.$ac_ext <<_ACEOF
7273 /* confdefs.h. */
7274 _ACEOF
7275 cat confdefs.h >>conftest.$ac_ext
7276 cat >>conftest.$ac_ext <<_ACEOF
7277 /* end confdefs.h. */
7278 $ac_includes_default
7279 typedef int ac__type_sizeof_;
7281 main ()
7283 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
7284 test_array [0] = 0
7287 return 0;
7289 _ACEOF
7290 rm -f conftest.$ac_objext
7291 if { (ac_try="$ac_compile"
7292 case "(($ac_try" in
7293 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7294 *) ac_try_echo=$ac_try;;
7295 esac
7296 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7297 (eval "$ac_compile") 2>conftest.er1
7298 ac_status=$?
7299 grep -v '^ *+' conftest.er1 >conftest.err
7300 rm -f conftest.er1
7301 cat conftest.err >&5
7302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7303 (exit $ac_status); } && {
7304 test -z "$ac_c_werror_flag" ||
7305 test ! -s conftest.err
7306 } && test -s conftest.$ac_objext; then
7307 ac_lo=$ac_mid; break
7308 else
7309 echo "$as_me: failed program was:" >&5
7310 sed 's/^/| /' conftest.$ac_ext >&5
7312 ac_hi=`expr '(' $ac_mid ')' - 1`
7313 if test $ac_mid -le $ac_hi; then
7314 ac_lo= ac_hi=
7315 break
7317 ac_mid=`expr 2 '*' $ac_mid`
7320 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7321 done
7322 else
7323 echo "$as_me: failed program was:" >&5
7324 sed 's/^/| /' conftest.$ac_ext >&5
7326 ac_lo= ac_hi=
7329 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7332 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7333 # Binary search between lo and hi bounds.
7334 while test "x$ac_lo" != "x$ac_hi"; do
7335 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7336 cat >conftest.$ac_ext <<_ACEOF
7337 /* confdefs.h. */
7338 _ACEOF
7339 cat confdefs.h >>conftest.$ac_ext
7340 cat >>conftest.$ac_ext <<_ACEOF
7341 /* end confdefs.h. */
7342 $ac_includes_default
7343 typedef int ac__type_sizeof_;
7345 main ()
7347 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
7348 test_array [0] = 0
7351 return 0;
7353 _ACEOF
7354 rm -f conftest.$ac_objext
7355 if { (ac_try="$ac_compile"
7356 case "(($ac_try" in
7357 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7358 *) ac_try_echo=$ac_try;;
7359 esac
7360 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7361 (eval "$ac_compile") 2>conftest.er1
7362 ac_status=$?
7363 grep -v '^ *+' conftest.er1 >conftest.err
7364 rm -f conftest.er1
7365 cat conftest.err >&5
7366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7367 (exit $ac_status); } && {
7368 test -z "$ac_c_werror_flag" ||
7369 test ! -s conftest.err
7370 } && test -s conftest.$ac_objext; then
7371 ac_hi=$ac_mid
7372 else
7373 echo "$as_me: failed program was:" >&5
7374 sed 's/^/| /' conftest.$ac_ext >&5
7376 ac_lo=`expr '(' $ac_mid ')' + 1`
7379 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7380 done
7381 case $ac_lo in
7382 ?*) ac_cv_sizeof_int=$ac_lo;;
7383 '') if test "$ac_cv_type_int" = yes; then
7384 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
7385 See \`config.log' for more details." >&5
7386 echo "$as_me: error: cannot compute sizeof (int)
7387 See \`config.log' for more details." >&2;}
7388 { (exit 77); exit 77; }; }
7389 else
7390 ac_cv_sizeof_int=0
7391 fi ;;
7392 esac
7393 else
7394 cat >conftest.$ac_ext <<_ACEOF
7395 /* confdefs.h. */
7396 _ACEOF
7397 cat confdefs.h >>conftest.$ac_ext
7398 cat >>conftest.$ac_ext <<_ACEOF
7399 /* end confdefs.h. */
7400 $ac_includes_default
7401 typedef int ac__type_sizeof_;
7402 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
7403 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
7404 #include <stdio.h>
7405 #include <stdlib.h>
7407 main ()
7410 FILE *f = fopen ("conftest.val", "w");
7411 if (! f)
7412 return 1;
7413 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
7415 long int i = longval ();
7416 if (i != ((long int) (sizeof (ac__type_sizeof_))))
7417 return 1;
7418 fprintf (f, "%ld\n", i);
7420 else
7422 unsigned long int i = ulongval ();
7423 if (i != ((long int) (sizeof (ac__type_sizeof_))))
7424 return 1;
7425 fprintf (f, "%lu\n", i);
7427 return ferror (f) || fclose (f) != 0;
7430 return 0;
7432 _ACEOF
7433 rm -f conftest$ac_exeext
7434 if { (ac_try="$ac_link"
7435 case "(($ac_try" in
7436 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7437 *) ac_try_echo=$ac_try;;
7438 esac
7439 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7440 (eval "$ac_link") 2>&5
7441 ac_status=$?
7442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7443 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7444 { (case "(($ac_try" in
7445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7446 *) ac_try_echo=$ac_try;;
7447 esac
7448 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7449 (eval "$ac_try") 2>&5
7450 ac_status=$?
7451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7452 (exit $ac_status); }; }; then
7453 ac_cv_sizeof_int=`cat conftest.val`
7454 else
7455 echo "$as_me: program exited with status $ac_status" >&5
7456 echo "$as_me: failed program was:" >&5
7457 sed 's/^/| /' conftest.$ac_ext >&5
7459 ( exit $ac_status )
7460 if test "$ac_cv_type_int" = yes; then
7461 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
7462 See \`config.log' for more details." >&5
7463 echo "$as_me: error: cannot compute sizeof (int)
7464 See \`config.log' for more details." >&2;}
7465 { (exit 77); exit 77; }; }
7466 else
7467 ac_cv_sizeof_int=0
7470 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7472 rm -f conftest.val
7474 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
7475 echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
7479 cat >>confdefs.h <<_ACEOF
7480 #define SIZEOF_INT $ac_cv_sizeof_int
7481 _ACEOF
7484 { echo "$as_me:$LINENO: checking for long" >&5
7485 echo $ECHO_N "checking for long... $ECHO_C" >&6; }
7486 if test "${ac_cv_type_long+set}" = set; then
7487 echo $ECHO_N "(cached) $ECHO_C" >&6
7488 else
7489 cat >conftest.$ac_ext <<_ACEOF
7490 /* confdefs.h. */
7491 _ACEOF
7492 cat confdefs.h >>conftest.$ac_ext
7493 cat >>conftest.$ac_ext <<_ACEOF
7494 /* end confdefs.h. */
7495 $ac_includes_default
7496 typedef long ac__type_new_;
7498 main ()
7500 if ((ac__type_new_ *) 0)
7501 return 0;
7502 if (sizeof (ac__type_new_))
7503 return 0;
7505 return 0;
7507 _ACEOF
7508 rm -f conftest.$ac_objext
7509 if { (ac_try="$ac_compile"
7510 case "(($ac_try" in
7511 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7512 *) ac_try_echo=$ac_try;;
7513 esac
7514 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7515 (eval "$ac_compile") 2>conftest.er1
7516 ac_status=$?
7517 grep -v '^ *+' conftest.er1 >conftest.err
7518 rm -f conftest.er1
7519 cat conftest.err >&5
7520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7521 (exit $ac_status); } && {
7522 test -z "$ac_c_werror_flag" ||
7523 test ! -s conftest.err
7524 } && test -s conftest.$ac_objext; then
7525 ac_cv_type_long=yes
7526 else
7527 echo "$as_me: failed program was:" >&5
7528 sed 's/^/| /' conftest.$ac_ext >&5
7530 ac_cv_type_long=no
7533 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7535 { echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
7536 echo "${ECHO_T}$ac_cv_type_long" >&6; }
7538 # The cast to long int works around a bug in the HP C Compiler
7539 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7540 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7541 # This bug is HP SR number 8606223364.
7542 { echo "$as_me:$LINENO: checking size of long" >&5
7543 echo $ECHO_N "checking size of long... $ECHO_C" >&6; }
7544 if test "${ac_cv_sizeof_long+set}" = set; then
7545 echo $ECHO_N "(cached) $ECHO_C" >&6
7546 else
7547 if test "$cross_compiling" = yes; then
7548 # Depending upon the size, compute the lo and hi bounds.
7549 cat >conftest.$ac_ext <<_ACEOF
7550 /* confdefs.h. */
7551 _ACEOF
7552 cat confdefs.h >>conftest.$ac_ext
7553 cat >>conftest.$ac_ext <<_ACEOF
7554 /* end confdefs.h. */
7555 $ac_includes_default
7556 typedef long ac__type_sizeof_;
7558 main ()
7560 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
7561 test_array [0] = 0
7564 return 0;
7566 _ACEOF
7567 rm -f conftest.$ac_objext
7568 if { (ac_try="$ac_compile"
7569 case "(($ac_try" in
7570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7571 *) ac_try_echo=$ac_try;;
7572 esac
7573 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7574 (eval "$ac_compile") 2>conftest.er1
7575 ac_status=$?
7576 grep -v '^ *+' conftest.er1 >conftest.err
7577 rm -f conftest.er1
7578 cat conftest.err >&5
7579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7580 (exit $ac_status); } && {
7581 test -z "$ac_c_werror_flag" ||
7582 test ! -s conftest.err
7583 } && test -s conftest.$ac_objext; then
7584 ac_lo=0 ac_mid=0
7585 while :; do
7586 cat >conftest.$ac_ext <<_ACEOF
7587 /* confdefs.h. */
7588 _ACEOF
7589 cat confdefs.h >>conftest.$ac_ext
7590 cat >>conftest.$ac_ext <<_ACEOF
7591 /* end confdefs.h. */
7592 $ac_includes_default
7593 typedef long ac__type_sizeof_;
7595 main ()
7597 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
7598 test_array [0] = 0
7601 return 0;
7603 _ACEOF
7604 rm -f conftest.$ac_objext
7605 if { (ac_try="$ac_compile"
7606 case "(($ac_try" in
7607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7608 *) ac_try_echo=$ac_try;;
7609 esac
7610 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7611 (eval "$ac_compile") 2>conftest.er1
7612 ac_status=$?
7613 grep -v '^ *+' conftest.er1 >conftest.err
7614 rm -f conftest.er1
7615 cat conftest.err >&5
7616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7617 (exit $ac_status); } && {
7618 test -z "$ac_c_werror_flag" ||
7619 test ! -s conftest.err
7620 } && test -s conftest.$ac_objext; then
7621 ac_hi=$ac_mid; break
7622 else
7623 echo "$as_me: failed program was:" >&5
7624 sed 's/^/| /' conftest.$ac_ext >&5
7626 ac_lo=`expr $ac_mid + 1`
7627 if test $ac_lo -le $ac_mid; then
7628 ac_lo= ac_hi=
7629 break
7631 ac_mid=`expr 2 '*' $ac_mid + 1`
7634 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7635 done
7636 else
7637 echo "$as_me: failed program was:" >&5
7638 sed 's/^/| /' conftest.$ac_ext >&5
7640 cat >conftest.$ac_ext <<_ACEOF
7641 /* confdefs.h. */
7642 _ACEOF
7643 cat confdefs.h >>conftest.$ac_ext
7644 cat >>conftest.$ac_ext <<_ACEOF
7645 /* end confdefs.h. */
7646 $ac_includes_default
7647 typedef long ac__type_sizeof_;
7649 main ()
7651 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
7652 test_array [0] = 0
7655 return 0;
7657 _ACEOF
7658 rm -f conftest.$ac_objext
7659 if { (ac_try="$ac_compile"
7660 case "(($ac_try" in
7661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7662 *) ac_try_echo=$ac_try;;
7663 esac
7664 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7665 (eval "$ac_compile") 2>conftest.er1
7666 ac_status=$?
7667 grep -v '^ *+' conftest.er1 >conftest.err
7668 rm -f conftest.er1
7669 cat conftest.err >&5
7670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7671 (exit $ac_status); } && {
7672 test -z "$ac_c_werror_flag" ||
7673 test ! -s conftest.err
7674 } && test -s conftest.$ac_objext; then
7675 ac_hi=-1 ac_mid=-1
7676 while :; do
7677 cat >conftest.$ac_ext <<_ACEOF
7678 /* confdefs.h. */
7679 _ACEOF
7680 cat confdefs.h >>conftest.$ac_ext
7681 cat >>conftest.$ac_ext <<_ACEOF
7682 /* end confdefs.h. */
7683 $ac_includes_default
7684 typedef long ac__type_sizeof_;
7686 main ()
7688 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
7689 test_array [0] = 0
7692 return 0;
7694 _ACEOF
7695 rm -f conftest.$ac_objext
7696 if { (ac_try="$ac_compile"
7697 case "(($ac_try" in
7698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7699 *) ac_try_echo=$ac_try;;
7700 esac
7701 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7702 (eval "$ac_compile") 2>conftest.er1
7703 ac_status=$?
7704 grep -v '^ *+' conftest.er1 >conftest.err
7705 rm -f conftest.er1
7706 cat conftest.err >&5
7707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7708 (exit $ac_status); } && {
7709 test -z "$ac_c_werror_flag" ||
7710 test ! -s conftest.err
7711 } && test -s conftest.$ac_objext; then
7712 ac_lo=$ac_mid; break
7713 else
7714 echo "$as_me: failed program was:" >&5
7715 sed 's/^/| /' conftest.$ac_ext >&5
7717 ac_hi=`expr '(' $ac_mid ')' - 1`
7718 if test $ac_mid -le $ac_hi; then
7719 ac_lo= ac_hi=
7720 break
7722 ac_mid=`expr 2 '*' $ac_mid`
7725 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7726 done
7727 else
7728 echo "$as_me: failed program was:" >&5
7729 sed 's/^/| /' conftest.$ac_ext >&5
7731 ac_lo= ac_hi=
7734 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7737 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7738 # Binary search between lo and hi bounds.
7739 while test "x$ac_lo" != "x$ac_hi"; do
7740 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7741 cat >conftest.$ac_ext <<_ACEOF
7742 /* confdefs.h. */
7743 _ACEOF
7744 cat confdefs.h >>conftest.$ac_ext
7745 cat >>conftest.$ac_ext <<_ACEOF
7746 /* end confdefs.h. */
7747 $ac_includes_default
7748 typedef long ac__type_sizeof_;
7750 main ()
7752 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
7753 test_array [0] = 0
7756 return 0;
7758 _ACEOF
7759 rm -f conftest.$ac_objext
7760 if { (ac_try="$ac_compile"
7761 case "(($ac_try" in
7762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7763 *) ac_try_echo=$ac_try;;
7764 esac
7765 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7766 (eval "$ac_compile") 2>conftest.er1
7767 ac_status=$?
7768 grep -v '^ *+' conftest.er1 >conftest.err
7769 rm -f conftest.er1
7770 cat conftest.err >&5
7771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7772 (exit $ac_status); } && {
7773 test -z "$ac_c_werror_flag" ||
7774 test ! -s conftest.err
7775 } && test -s conftest.$ac_objext; then
7776 ac_hi=$ac_mid
7777 else
7778 echo "$as_me: failed program was:" >&5
7779 sed 's/^/| /' conftest.$ac_ext >&5
7781 ac_lo=`expr '(' $ac_mid ')' + 1`
7784 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7785 done
7786 case $ac_lo in
7787 ?*) ac_cv_sizeof_long=$ac_lo;;
7788 '') if test "$ac_cv_type_long" = yes; then
7789 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
7790 See \`config.log' for more details." >&5
7791 echo "$as_me: error: cannot compute sizeof (long)
7792 See \`config.log' for more details." >&2;}
7793 { (exit 77); exit 77; }; }
7794 else
7795 ac_cv_sizeof_long=0
7796 fi ;;
7797 esac
7798 else
7799 cat >conftest.$ac_ext <<_ACEOF
7800 /* confdefs.h. */
7801 _ACEOF
7802 cat confdefs.h >>conftest.$ac_ext
7803 cat >>conftest.$ac_ext <<_ACEOF
7804 /* end confdefs.h. */
7805 $ac_includes_default
7806 typedef long ac__type_sizeof_;
7807 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
7808 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
7809 #include <stdio.h>
7810 #include <stdlib.h>
7812 main ()
7815 FILE *f = fopen ("conftest.val", "w");
7816 if (! f)
7817 return 1;
7818 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
7820 long int i = longval ();
7821 if (i != ((long int) (sizeof (ac__type_sizeof_))))
7822 return 1;
7823 fprintf (f, "%ld\n", i);
7825 else
7827 unsigned long int i = ulongval ();
7828 if (i != ((long int) (sizeof (ac__type_sizeof_))))
7829 return 1;
7830 fprintf (f, "%lu\n", i);
7832 return ferror (f) || fclose (f) != 0;
7835 return 0;
7837 _ACEOF
7838 rm -f conftest$ac_exeext
7839 if { (ac_try="$ac_link"
7840 case "(($ac_try" in
7841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7842 *) ac_try_echo=$ac_try;;
7843 esac
7844 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7845 (eval "$ac_link") 2>&5
7846 ac_status=$?
7847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7848 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7849 { (case "(($ac_try" in
7850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7851 *) ac_try_echo=$ac_try;;
7852 esac
7853 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7854 (eval "$ac_try") 2>&5
7855 ac_status=$?
7856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7857 (exit $ac_status); }; }; then
7858 ac_cv_sizeof_long=`cat conftest.val`
7859 else
7860 echo "$as_me: program exited with status $ac_status" >&5
7861 echo "$as_me: failed program was:" >&5
7862 sed 's/^/| /' conftest.$ac_ext >&5
7864 ( exit $ac_status )
7865 if test "$ac_cv_type_long" = yes; then
7866 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
7867 See \`config.log' for more details." >&5
7868 echo "$as_me: error: cannot compute sizeof (long)
7869 See \`config.log' for more details." >&2;}
7870 { (exit 77); exit 77; }; }
7871 else
7872 ac_cv_sizeof_long=0
7875 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7877 rm -f conftest.val
7879 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
7880 echo "${ECHO_T}$ac_cv_sizeof_long" >&6; }
7884 cat >>confdefs.h <<_ACEOF
7885 #define SIZEOF_LONG $ac_cv_sizeof_long
7886 _ACEOF
7889 { echo "$as_me:$LINENO: checking for void *" >&5
7890 echo $ECHO_N "checking for void *... $ECHO_C" >&6; }
7891 if test "${ac_cv_type_void_p+set}" = set; then
7892 echo $ECHO_N "(cached) $ECHO_C" >&6
7893 else
7894 cat >conftest.$ac_ext <<_ACEOF
7895 /* confdefs.h. */
7896 _ACEOF
7897 cat confdefs.h >>conftest.$ac_ext
7898 cat >>conftest.$ac_ext <<_ACEOF
7899 /* end confdefs.h. */
7900 $ac_includes_default
7901 typedef void * ac__type_new_;
7903 main ()
7905 if ((ac__type_new_ *) 0)
7906 return 0;
7907 if (sizeof (ac__type_new_))
7908 return 0;
7910 return 0;
7912 _ACEOF
7913 rm -f conftest.$ac_objext
7914 if { (ac_try="$ac_compile"
7915 case "(($ac_try" in
7916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7917 *) ac_try_echo=$ac_try;;
7918 esac
7919 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7920 (eval "$ac_compile") 2>conftest.er1
7921 ac_status=$?
7922 grep -v '^ *+' conftest.er1 >conftest.err
7923 rm -f conftest.er1
7924 cat conftest.err >&5
7925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7926 (exit $ac_status); } && {
7927 test -z "$ac_c_werror_flag" ||
7928 test ! -s conftest.err
7929 } && test -s conftest.$ac_objext; then
7930 ac_cv_type_void_p=yes
7931 else
7932 echo "$as_me: failed program was:" >&5
7933 sed 's/^/| /' conftest.$ac_ext >&5
7935 ac_cv_type_void_p=no
7938 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7940 { echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
7941 echo "${ECHO_T}$ac_cv_type_void_p" >&6; }
7943 # The cast to long int works around a bug in the HP C Compiler
7944 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7945 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7946 # This bug is HP SR number 8606223364.
7947 { echo "$as_me:$LINENO: checking size of void *" >&5
7948 echo $ECHO_N "checking size of void *... $ECHO_C" >&6; }
7949 if test "${ac_cv_sizeof_void_p+set}" = set; then
7950 echo $ECHO_N "(cached) $ECHO_C" >&6
7951 else
7952 if test "$cross_compiling" = yes; then
7953 # Depending upon the size, compute the lo and hi bounds.
7954 cat >conftest.$ac_ext <<_ACEOF
7955 /* confdefs.h. */
7956 _ACEOF
7957 cat confdefs.h >>conftest.$ac_ext
7958 cat >>conftest.$ac_ext <<_ACEOF
7959 /* end confdefs.h. */
7960 $ac_includes_default
7961 typedef void * ac__type_sizeof_;
7963 main ()
7965 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
7966 test_array [0] = 0
7969 return 0;
7971 _ACEOF
7972 rm -f conftest.$ac_objext
7973 if { (ac_try="$ac_compile"
7974 case "(($ac_try" in
7975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7976 *) ac_try_echo=$ac_try;;
7977 esac
7978 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7979 (eval "$ac_compile") 2>conftest.er1
7980 ac_status=$?
7981 grep -v '^ *+' conftest.er1 >conftest.err
7982 rm -f conftest.er1
7983 cat conftest.err >&5
7984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7985 (exit $ac_status); } && {
7986 test -z "$ac_c_werror_flag" ||
7987 test ! -s conftest.err
7988 } && test -s conftest.$ac_objext; then
7989 ac_lo=0 ac_mid=0
7990 while :; do
7991 cat >conftest.$ac_ext <<_ACEOF
7992 /* confdefs.h. */
7993 _ACEOF
7994 cat confdefs.h >>conftest.$ac_ext
7995 cat >>conftest.$ac_ext <<_ACEOF
7996 /* end confdefs.h. */
7997 $ac_includes_default
7998 typedef void * ac__type_sizeof_;
8000 main ()
8002 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8003 test_array [0] = 0
8006 return 0;
8008 _ACEOF
8009 rm -f conftest.$ac_objext
8010 if { (ac_try="$ac_compile"
8011 case "(($ac_try" in
8012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8013 *) ac_try_echo=$ac_try;;
8014 esac
8015 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8016 (eval "$ac_compile") 2>conftest.er1
8017 ac_status=$?
8018 grep -v '^ *+' conftest.er1 >conftest.err
8019 rm -f conftest.er1
8020 cat conftest.err >&5
8021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8022 (exit $ac_status); } && {
8023 test -z "$ac_c_werror_flag" ||
8024 test ! -s conftest.err
8025 } && test -s conftest.$ac_objext; then
8026 ac_hi=$ac_mid; break
8027 else
8028 echo "$as_me: failed program was:" >&5
8029 sed 's/^/| /' conftest.$ac_ext >&5
8031 ac_lo=`expr $ac_mid + 1`
8032 if test $ac_lo -le $ac_mid; then
8033 ac_lo= ac_hi=
8034 break
8036 ac_mid=`expr 2 '*' $ac_mid + 1`
8039 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8040 done
8041 else
8042 echo "$as_me: failed program was:" >&5
8043 sed 's/^/| /' conftest.$ac_ext >&5
8045 cat >conftest.$ac_ext <<_ACEOF
8046 /* confdefs.h. */
8047 _ACEOF
8048 cat confdefs.h >>conftest.$ac_ext
8049 cat >>conftest.$ac_ext <<_ACEOF
8050 /* end confdefs.h. */
8051 $ac_includes_default
8052 typedef void * ac__type_sizeof_;
8054 main ()
8056 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
8057 test_array [0] = 0
8060 return 0;
8062 _ACEOF
8063 rm -f conftest.$ac_objext
8064 if { (ac_try="$ac_compile"
8065 case "(($ac_try" in
8066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8067 *) ac_try_echo=$ac_try;;
8068 esac
8069 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8070 (eval "$ac_compile") 2>conftest.er1
8071 ac_status=$?
8072 grep -v '^ *+' conftest.er1 >conftest.err
8073 rm -f conftest.er1
8074 cat conftest.err >&5
8075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8076 (exit $ac_status); } && {
8077 test -z "$ac_c_werror_flag" ||
8078 test ! -s conftest.err
8079 } && test -s conftest.$ac_objext; then
8080 ac_hi=-1 ac_mid=-1
8081 while :; do
8082 cat >conftest.$ac_ext <<_ACEOF
8083 /* confdefs.h. */
8084 _ACEOF
8085 cat confdefs.h >>conftest.$ac_ext
8086 cat >>conftest.$ac_ext <<_ACEOF
8087 /* end confdefs.h. */
8088 $ac_includes_default
8089 typedef void * ac__type_sizeof_;
8091 main ()
8093 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
8094 test_array [0] = 0
8097 return 0;
8099 _ACEOF
8100 rm -f conftest.$ac_objext
8101 if { (ac_try="$ac_compile"
8102 case "(($ac_try" in
8103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8104 *) ac_try_echo=$ac_try;;
8105 esac
8106 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8107 (eval "$ac_compile") 2>conftest.er1
8108 ac_status=$?
8109 grep -v '^ *+' conftest.er1 >conftest.err
8110 rm -f conftest.er1
8111 cat conftest.err >&5
8112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8113 (exit $ac_status); } && {
8114 test -z "$ac_c_werror_flag" ||
8115 test ! -s conftest.err
8116 } && test -s conftest.$ac_objext; then
8117 ac_lo=$ac_mid; break
8118 else
8119 echo "$as_me: failed program was:" >&5
8120 sed 's/^/| /' conftest.$ac_ext >&5
8122 ac_hi=`expr '(' $ac_mid ')' - 1`
8123 if test $ac_mid -le $ac_hi; then
8124 ac_lo= ac_hi=
8125 break
8127 ac_mid=`expr 2 '*' $ac_mid`
8130 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8131 done
8132 else
8133 echo "$as_me: failed program was:" >&5
8134 sed 's/^/| /' conftest.$ac_ext >&5
8136 ac_lo= ac_hi=
8139 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8142 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8143 # Binary search between lo and hi bounds.
8144 while test "x$ac_lo" != "x$ac_hi"; do
8145 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8146 cat >conftest.$ac_ext <<_ACEOF
8147 /* confdefs.h. */
8148 _ACEOF
8149 cat confdefs.h >>conftest.$ac_ext
8150 cat >>conftest.$ac_ext <<_ACEOF
8151 /* end confdefs.h. */
8152 $ac_includes_default
8153 typedef void * ac__type_sizeof_;
8155 main ()
8157 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8158 test_array [0] = 0
8161 return 0;
8163 _ACEOF
8164 rm -f conftest.$ac_objext
8165 if { (ac_try="$ac_compile"
8166 case "(($ac_try" in
8167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8168 *) ac_try_echo=$ac_try;;
8169 esac
8170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8171 (eval "$ac_compile") 2>conftest.er1
8172 ac_status=$?
8173 grep -v '^ *+' conftest.er1 >conftest.err
8174 rm -f conftest.er1
8175 cat conftest.err >&5
8176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8177 (exit $ac_status); } && {
8178 test -z "$ac_c_werror_flag" ||
8179 test ! -s conftest.err
8180 } && test -s conftest.$ac_objext; then
8181 ac_hi=$ac_mid
8182 else
8183 echo "$as_me: failed program was:" >&5
8184 sed 's/^/| /' conftest.$ac_ext >&5
8186 ac_lo=`expr '(' $ac_mid ')' + 1`
8189 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8190 done
8191 case $ac_lo in
8192 ?*) ac_cv_sizeof_void_p=$ac_lo;;
8193 '') if test "$ac_cv_type_void_p" = yes; then
8194 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
8195 See \`config.log' for more details." >&5
8196 echo "$as_me: error: cannot compute sizeof (void *)
8197 See \`config.log' for more details." >&2;}
8198 { (exit 77); exit 77; }; }
8199 else
8200 ac_cv_sizeof_void_p=0
8201 fi ;;
8202 esac
8203 else
8204 cat >conftest.$ac_ext <<_ACEOF
8205 /* confdefs.h. */
8206 _ACEOF
8207 cat confdefs.h >>conftest.$ac_ext
8208 cat >>conftest.$ac_ext <<_ACEOF
8209 /* end confdefs.h. */
8210 $ac_includes_default
8211 typedef void * ac__type_sizeof_;
8212 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
8213 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
8214 #include <stdio.h>
8215 #include <stdlib.h>
8217 main ()
8220 FILE *f = fopen ("conftest.val", "w");
8221 if (! f)
8222 return 1;
8223 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
8225 long int i = longval ();
8226 if (i != ((long int) (sizeof (ac__type_sizeof_))))
8227 return 1;
8228 fprintf (f, "%ld\n", i);
8230 else
8232 unsigned long int i = ulongval ();
8233 if (i != ((long int) (sizeof (ac__type_sizeof_))))
8234 return 1;
8235 fprintf (f, "%lu\n", i);
8237 return ferror (f) || fclose (f) != 0;
8240 return 0;
8242 _ACEOF
8243 rm -f conftest$ac_exeext
8244 if { (ac_try="$ac_link"
8245 case "(($ac_try" in
8246 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8247 *) ac_try_echo=$ac_try;;
8248 esac
8249 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8250 (eval "$ac_link") 2>&5
8251 ac_status=$?
8252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8253 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8254 { (case "(($ac_try" in
8255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8256 *) ac_try_echo=$ac_try;;
8257 esac
8258 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8259 (eval "$ac_try") 2>&5
8260 ac_status=$?
8261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8262 (exit $ac_status); }; }; then
8263 ac_cv_sizeof_void_p=`cat conftest.val`
8264 else
8265 echo "$as_me: program exited with status $ac_status" >&5
8266 echo "$as_me: failed program was:" >&5
8267 sed 's/^/| /' conftest.$ac_ext >&5
8269 ( exit $ac_status )
8270 if test "$ac_cv_type_void_p" = yes; then
8271 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
8272 See \`config.log' for more details." >&5
8273 echo "$as_me: error: cannot compute sizeof (void *)
8274 See \`config.log' for more details." >&2;}
8275 { (exit 77); exit 77; }; }
8276 else
8277 ac_cv_sizeof_void_p=0
8280 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8282 rm -f conftest.val
8284 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
8285 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6; }
8289 cat >>confdefs.h <<_ACEOF
8290 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
8291 _ACEOF
8294 { echo "$as_me:$LINENO: checking for short" >&5
8295 echo $ECHO_N "checking for short... $ECHO_C" >&6; }
8296 if test "${ac_cv_type_short+set}" = set; then
8297 echo $ECHO_N "(cached) $ECHO_C" >&6
8298 else
8299 cat >conftest.$ac_ext <<_ACEOF
8300 /* confdefs.h. */
8301 _ACEOF
8302 cat confdefs.h >>conftest.$ac_ext
8303 cat >>conftest.$ac_ext <<_ACEOF
8304 /* end confdefs.h. */
8305 $ac_includes_default
8306 typedef short ac__type_new_;
8308 main ()
8310 if ((ac__type_new_ *) 0)
8311 return 0;
8312 if (sizeof (ac__type_new_))
8313 return 0;
8315 return 0;
8317 _ACEOF
8318 rm -f conftest.$ac_objext
8319 if { (ac_try="$ac_compile"
8320 case "(($ac_try" in
8321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8322 *) ac_try_echo=$ac_try;;
8323 esac
8324 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8325 (eval "$ac_compile") 2>conftest.er1
8326 ac_status=$?
8327 grep -v '^ *+' conftest.er1 >conftest.err
8328 rm -f conftest.er1
8329 cat conftest.err >&5
8330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8331 (exit $ac_status); } && {
8332 test -z "$ac_c_werror_flag" ||
8333 test ! -s conftest.err
8334 } && test -s conftest.$ac_objext; then
8335 ac_cv_type_short=yes
8336 else
8337 echo "$as_me: failed program was:" >&5
8338 sed 's/^/| /' conftest.$ac_ext >&5
8340 ac_cv_type_short=no
8343 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8345 { echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
8346 echo "${ECHO_T}$ac_cv_type_short" >&6; }
8348 # The cast to long int works around a bug in the HP C Compiler
8349 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8350 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8351 # This bug is HP SR number 8606223364.
8352 { echo "$as_me:$LINENO: checking size of short" >&5
8353 echo $ECHO_N "checking size of short... $ECHO_C" >&6; }
8354 if test "${ac_cv_sizeof_short+set}" = set; then
8355 echo $ECHO_N "(cached) $ECHO_C" >&6
8356 else
8357 if test "$cross_compiling" = yes; then
8358 # Depending upon the size, compute the lo and hi bounds.
8359 cat >conftest.$ac_ext <<_ACEOF
8360 /* confdefs.h. */
8361 _ACEOF
8362 cat confdefs.h >>conftest.$ac_ext
8363 cat >>conftest.$ac_ext <<_ACEOF
8364 /* end confdefs.h. */
8365 $ac_includes_default
8366 typedef short ac__type_sizeof_;
8368 main ()
8370 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
8371 test_array [0] = 0
8374 return 0;
8376 _ACEOF
8377 rm -f conftest.$ac_objext
8378 if { (ac_try="$ac_compile"
8379 case "(($ac_try" in
8380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8381 *) ac_try_echo=$ac_try;;
8382 esac
8383 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8384 (eval "$ac_compile") 2>conftest.er1
8385 ac_status=$?
8386 grep -v '^ *+' conftest.er1 >conftest.err
8387 rm -f conftest.er1
8388 cat conftest.err >&5
8389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8390 (exit $ac_status); } && {
8391 test -z "$ac_c_werror_flag" ||
8392 test ! -s conftest.err
8393 } && test -s conftest.$ac_objext; then
8394 ac_lo=0 ac_mid=0
8395 while :; do
8396 cat >conftest.$ac_ext <<_ACEOF
8397 /* confdefs.h. */
8398 _ACEOF
8399 cat confdefs.h >>conftest.$ac_ext
8400 cat >>conftest.$ac_ext <<_ACEOF
8401 /* end confdefs.h. */
8402 $ac_includes_default
8403 typedef short ac__type_sizeof_;
8405 main ()
8407 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8408 test_array [0] = 0
8411 return 0;
8413 _ACEOF
8414 rm -f conftest.$ac_objext
8415 if { (ac_try="$ac_compile"
8416 case "(($ac_try" in
8417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8418 *) ac_try_echo=$ac_try;;
8419 esac
8420 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8421 (eval "$ac_compile") 2>conftest.er1
8422 ac_status=$?
8423 grep -v '^ *+' conftest.er1 >conftest.err
8424 rm -f conftest.er1
8425 cat conftest.err >&5
8426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8427 (exit $ac_status); } && {
8428 test -z "$ac_c_werror_flag" ||
8429 test ! -s conftest.err
8430 } && test -s conftest.$ac_objext; then
8431 ac_hi=$ac_mid; break
8432 else
8433 echo "$as_me: failed program was:" >&5
8434 sed 's/^/| /' conftest.$ac_ext >&5
8436 ac_lo=`expr $ac_mid + 1`
8437 if test $ac_lo -le $ac_mid; then
8438 ac_lo= ac_hi=
8439 break
8441 ac_mid=`expr 2 '*' $ac_mid + 1`
8444 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8445 done
8446 else
8447 echo "$as_me: failed program was:" >&5
8448 sed 's/^/| /' conftest.$ac_ext >&5
8450 cat >conftest.$ac_ext <<_ACEOF
8451 /* confdefs.h. */
8452 _ACEOF
8453 cat confdefs.h >>conftest.$ac_ext
8454 cat >>conftest.$ac_ext <<_ACEOF
8455 /* end confdefs.h. */
8456 $ac_includes_default
8457 typedef short ac__type_sizeof_;
8459 main ()
8461 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
8462 test_array [0] = 0
8465 return 0;
8467 _ACEOF
8468 rm -f conftest.$ac_objext
8469 if { (ac_try="$ac_compile"
8470 case "(($ac_try" in
8471 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8472 *) ac_try_echo=$ac_try;;
8473 esac
8474 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8475 (eval "$ac_compile") 2>conftest.er1
8476 ac_status=$?
8477 grep -v '^ *+' conftest.er1 >conftest.err
8478 rm -f conftest.er1
8479 cat conftest.err >&5
8480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8481 (exit $ac_status); } && {
8482 test -z "$ac_c_werror_flag" ||
8483 test ! -s conftest.err
8484 } && test -s conftest.$ac_objext; then
8485 ac_hi=-1 ac_mid=-1
8486 while :; do
8487 cat >conftest.$ac_ext <<_ACEOF
8488 /* confdefs.h. */
8489 _ACEOF
8490 cat confdefs.h >>conftest.$ac_ext
8491 cat >>conftest.$ac_ext <<_ACEOF
8492 /* end confdefs.h. */
8493 $ac_includes_default
8494 typedef short ac__type_sizeof_;
8496 main ()
8498 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
8499 test_array [0] = 0
8502 return 0;
8504 _ACEOF
8505 rm -f conftest.$ac_objext
8506 if { (ac_try="$ac_compile"
8507 case "(($ac_try" in
8508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8509 *) ac_try_echo=$ac_try;;
8510 esac
8511 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8512 (eval "$ac_compile") 2>conftest.er1
8513 ac_status=$?
8514 grep -v '^ *+' conftest.er1 >conftest.err
8515 rm -f conftest.er1
8516 cat conftest.err >&5
8517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8518 (exit $ac_status); } && {
8519 test -z "$ac_c_werror_flag" ||
8520 test ! -s conftest.err
8521 } && test -s conftest.$ac_objext; then
8522 ac_lo=$ac_mid; break
8523 else
8524 echo "$as_me: failed program was:" >&5
8525 sed 's/^/| /' conftest.$ac_ext >&5
8527 ac_hi=`expr '(' $ac_mid ')' - 1`
8528 if test $ac_mid -le $ac_hi; then
8529 ac_lo= ac_hi=
8530 break
8532 ac_mid=`expr 2 '*' $ac_mid`
8535 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8536 done
8537 else
8538 echo "$as_me: failed program was:" >&5
8539 sed 's/^/| /' conftest.$ac_ext >&5
8541 ac_lo= ac_hi=
8544 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8547 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8548 # Binary search between lo and hi bounds.
8549 while test "x$ac_lo" != "x$ac_hi"; do
8550 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8551 cat >conftest.$ac_ext <<_ACEOF
8552 /* confdefs.h. */
8553 _ACEOF
8554 cat confdefs.h >>conftest.$ac_ext
8555 cat >>conftest.$ac_ext <<_ACEOF
8556 /* end confdefs.h. */
8557 $ac_includes_default
8558 typedef short ac__type_sizeof_;
8560 main ()
8562 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8563 test_array [0] = 0
8566 return 0;
8568 _ACEOF
8569 rm -f conftest.$ac_objext
8570 if { (ac_try="$ac_compile"
8571 case "(($ac_try" in
8572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8573 *) ac_try_echo=$ac_try;;
8574 esac
8575 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8576 (eval "$ac_compile") 2>conftest.er1
8577 ac_status=$?
8578 grep -v '^ *+' conftest.er1 >conftest.err
8579 rm -f conftest.er1
8580 cat conftest.err >&5
8581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8582 (exit $ac_status); } && {
8583 test -z "$ac_c_werror_flag" ||
8584 test ! -s conftest.err
8585 } && test -s conftest.$ac_objext; then
8586 ac_hi=$ac_mid
8587 else
8588 echo "$as_me: failed program was:" >&5
8589 sed 's/^/| /' conftest.$ac_ext >&5
8591 ac_lo=`expr '(' $ac_mid ')' + 1`
8594 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8595 done
8596 case $ac_lo in
8597 ?*) ac_cv_sizeof_short=$ac_lo;;
8598 '') if test "$ac_cv_type_short" = yes; then
8599 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
8600 See \`config.log' for more details." >&5
8601 echo "$as_me: error: cannot compute sizeof (short)
8602 See \`config.log' for more details." >&2;}
8603 { (exit 77); exit 77; }; }
8604 else
8605 ac_cv_sizeof_short=0
8606 fi ;;
8607 esac
8608 else
8609 cat >conftest.$ac_ext <<_ACEOF
8610 /* confdefs.h. */
8611 _ACEOF
8612 cat confdefs.h >>conftest.$ac_ext
8613 cat >>conftest.$ac_ext <<_ACEOF
8614 /* end confdefs.h. */
8615 $ac_includes_default
8616 typedef short ac__type_sizeof_;
8617 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
8618 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
8619 #include <stdio.h>
8620 #include <stdlib.h>
8622 main ()
8625 FILE *f = fopen ("conftest.val", "w");
8626 if (! f)
8627 return 1;
8628 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
8630 long int i = longval ();
8631 if (i != ((long int) (sizeof (ac__type_sizeof_))))
8632 return 1;
8633 fprintf (f, "%ld\n", i);
8635 else
8637 unsigned long int i = ulongval ();
8638 if (i != ((long int) (sizeof (ac__type_sizeof_))))
8639 return 1;
8640 fprintf (f, "%lu\n", i);
8642 return ferror (f) || fclose (f) != 0;
8645 return 0;
8647 _ACEOF
8648 rm -f conftest$ac_exeext
8649 if { (ac_try="$ac_link"
8650 case "(($ac_try" in
8651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8652 *) ac_try_echo=$ac_try;;
8653 esac
8654 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8655 (eval "$ac_link") 2>&5
8656 ac_status=$?
8657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8658 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8659 { (case "(($ac_try" in
8660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8661 *) ac_try_echo=$ac_try;;
8662 esac
8663 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8664 (eval "$ac_try") 2>&5
8665 ac_status=$?
8666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8667 (exit $ac_status); }; }; then
8668 ac_cv_sizeof_short=`cat conftest.val`
8669 else
8670 echo "$as_me: program exited with status $ac_status" >&5
8671 echo "$as_me: failed program was:" >&5
8672 sed 's/^/| /' conftest.$ac_ext >&5
8674 ( exit $ac_status )
8675 if test "$ac_cv_type_short" = yes; then
8676 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
8677 See \`config.log' for more details." >&5
8678 echo "$as_me: error: cannot compute sizeof (short)
8679 See \`config.log' for more details." >&2;}
8680 { (exit 77); exit 77; }; }
8681 else
8682 ac_cv_sizeof_short=0
8685 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8687 rm -f conftest.val
8689 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
8690 echo "${ECHO_T}$ac_cv_sizeof_short" >&6; }
8694 cat >>confdefs.h <<_ACEOF
8695 #define SIZEOF_SHORT $ac_cv_sizeof_short
8696 _ACEOF
8699 { echo "$as_me:$LINENO: checking for float" >&5
8700 echo $ECHO_N "checking for float... $ECHO_C" >&6; }
8701 if test "${ac_cv_type_float+set}" = set; then
8702 echo $ECHO_N "(cached) $ECHO_C" >&6
8703 else
8704 cat >conftest.$ac_ext <<_ACEOF
8705 /* confdefs.h. */
8706 _ACEOF
8707 cat confdefs.h >>conftest.$ac_ext
8708 cat >>conftest.$ac_ext <<_ACEOF
8709 /* end confdefs.h. */
8710 $ac_includes_default
8711 typedef float ac__type_new_;
8713 main ()
8715 if ((ac__type_new_ *) 0)
8716 return 0;
8717 if (sizeof (ac__type_new_))
8718 return 0;
8720 return 0;
8722 _ACEOF
8723 rm -f conftest.$ac_objext
8724 if { (ac_try="$ac_compile"
8725 case "(($ac_try" in
8726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8727 *) ac_try_echo=$ac_try;;
8728 esac
8729 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8730 (eval "$ac_compile") 2>conftest.er1
8731 ac_status=$?
8732 grep -v '^ *+' conftest.er1 >conftest.err
8733 rm -f conftest.er1
8734 cat conftest.err >&5
8735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8736 (exit $ac_status); } && {
8737 test -z "$ac_c_werror_flag" ||
8738 test ! -s conftest.err
8739 } && test -s conftest.$ac_objext; then
8740 ac_cv_type_float=yes
8741 else
8742 echo "$as_me: failed program was:" >&5
8743 sed 's/^/| /' conftest.$ac_ext >&5
8745 ac_cv_type_float=no
8748 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8750 { echo "$as_me:$LINENO: result: $ac_cv_type_float" >&5
8751 echo "${ECHO_T}$ac_cv_type_float" >&6; }
8753 # The cast to long int works around a bug in the HP C Compiler
8754 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8755 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8756 # This bug is HP SR number 8606223364.
8757 { echo "$as_me:$LINENO: checking size of float" >&5
8758 echo $ECHO_N "checking size of float... $ECHO_C" >&6; }
8759 if test "${ac_cv_sizeof_float+set}" = set; then
8760 echo $ECHO_N "(cached) $ECHO_C" >&6
8761 else
8762 if test "$cross_compiling" = yes; then
8763 # Depending upon the size, compute the lo and hi bounds.
8764 cat >conftest.$ac_ext <<_ACEOF
8765 /* confdefs.h. */
8766 _ACEOF
8767 cat confdefs.h >>conftest.$ac_ext
8768 cat >>conftest.$ac_ext <<_ACEOF
8769 /* end confdefs.h. */
8770 $ac_includes_default
8771 typedef float ac__type_sizeof_;
8773 main ()
8775 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
8776 test_array [0] = 0
8779 return 0;
8781 _ACEOF
8782 rm -f conftest.$ac_objext
8783 if { (ac_try="$ac_compile"
8784 case "(($ac_try" in
8785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8786 *) ac_try_echo=$ac_try;;
8787 esac
8788 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8789 (eval "$ac_compile") 2>conftest.er1
8790 ac_status=$?
8791 grep -v '^ *+' conftest.er1 >conftest.err
8792 rm -f conftest.er1
8793 cat conftest.err >&5
8794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8795 (exit $ac_status); } && {
8796 test -z "$ac_c_werror_flag" ||
8797 test ! -s conftest.err
8798 } && test -s conftest.$ac_objext; then
8799 ac_lo=0 ac_mid=0
8800 while :; do
8801 cat >conftest.$ac_ext <<_ACEOF
8802 /* confdefs.h. */
8803 _ACEOF
8804 cat confdefs.h >>conftest.$ac_ext
8805 cat >>conftest.$ac_ext <<_ACEOF
8806 /* end confdefs.h. */
8807 $ac_includes_default
8808 typedef float ac__type_sizeof_;
8810 main ()
8812 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8813 test_array [0] = 0
8816 return 0;
8818 _ACEOF
8819 rm -f conftest.$ac_objext
8820 if { (ac_try="$ac_compile"
8821 case "(($ac_try" in
8822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8823 *) ac_try_echo=$ac_try;;
8824 esac
8825 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8826 (eval "$ac_compile") 2>conftest.er1
8827 ac_status=$?
8828 grep -v '^ *+' conftest.er1 >conftest.err
8829 rm -f conftest.er1
8830 cat conftest.err >&5
8831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8832 (exit $ac_status); } && {
8833 test -z "$ac_c_werror_flag" ||
8834 test ! -s conftest.err
8835 } && test -s conftest.$ac_objext; then
8836 ac_hi=$ac_mid; break
8837 else
8838 echo "$as_me: failed program was:" >&5
8839 sed 's/^/| /' conftest.$ac_ext >&5
8841 ac_lo=`expr $ac_mid + 1`
8842 if test $ac_lo -le $ac_mid; then
8843 ac_lo= ac_hi=
8844 break
8846 ac_mid=`expr 2 '*' $ac_mid + 1`
8849 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8850 done
8851 else
8852 echo "$as_me: failed program was:" >&5
8853 sed 's/^/| /' conftest.$ac_ext >&5
8855 cat >conftest.$ac_ext <<_ACEOF
8856 /* confdefs.h. */
8857 _ACEOF
8858 cat confdefs.h >>conftest.$ac_ext
8859 cat >>conftest.$ac_ext <<_ACEOF
8860 /* end confdefs.h. */
8861 $ac_includes_default
8862 typedef float ac__type_sizeof_;
8864 main ()
8866 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
8867 test_array [0] = 0
8870 return 0;
8872 _ACEOF
8873 rm -f conftest.$ac_objext
8874 if { (ac_try="$ac_compile"
8875 case "(($ac_try" in
8876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8877 *) ac_try_echo=$ac_try;;
8878 esac
8879 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8880 (eval "$ac_compile") 2>conftest.er1
8881 ac_status=$?
8882 grep -v '^ *+' conftest.er1 >conftest.err
8883 rm -f conftest.er1
8884 cat conftest.err >&5
8885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8886 (exit $ac_status); } && {
8887 test -z "$ac_c_werror_flag" ||
8888 test ! -s conftest.err
8889 } && test -s conftest.$ac_objext; then
8890 ac_hi=-1 ac_mid=-1
8891 while :; do
8892 cat >conftest.$ac_ext <<_ACEOF
8893 /* confdefs.h. */
8894 _ACEOF
8895 cat confdefs.h >>conftest.$ac_ext
8896 cat >>conftest.$ac_ext <<_ACEOF
8897 /* end confdefs.h. */
8898 $ac_includes_default
8899 typedef float ac__type_sizeof_;
8901 main ()
8903 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
8904 test_array [0] = 0
8907 return 0;
8909 _ACEOF
8910 rm -f conftest.$ac_objext
8911 if { (ac_try="$ac_compile"
8912 case "(($ac_try" in
8913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8914 *) ac_try_echo=$ac_try;;
8915 esac
8916 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8917 (eval "$ac_compile") 2>conftest.er1
8918 ac_status=$?
8919 grep -v '^ *+' conftest.er1 >conftest.err
8920 rm -f conftest.er1
8921 cat conftest.err >&5
8922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8923 (exit $ac_status); } && {
8924 test -z "$ac_c_werror_flag" ||
8925 test ! -s conftest.err
8926 } && test -s conftest.$ac_objext; then
8927 ac_lo=$ac_mid; break
8928 else
8929 echo "$as_me: failed program was:" >&5
8930 sed 's/^/| /' conftest.$ac_ext >&5
8932 ac_hi=`expr '(' $ac_mid ')' - 1`
8933 if test $ac_mid -le $ac_hi; then
8934 ac_lo= ac_hi=
8935 break
8937 ac_mid=`expr 2 '*' $ac_mid`
8940 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8941 done
8942 else
8943 echo "$as_me: failed program was:" >&5
8944 sed 's/^/| /' conftest.$ac_ext >&5
8946 ac_lo= ac_hi=
8949 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8952 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8953 # Binary search between lo and hi bounds.
8954 while test "x$ac_lo" != "x$ac_hi"; do
8955 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8956 cat >conftest.$ac_ext <<_ACEOF
8957 /* confdefs.h. */
8958 _ACEOF
8959 cat confdefs.h >>conftest.$ac_ext
8960 cat >>conftest.$ac_ext <<_ACEOF
8961 /* end confdefs.h. */
8962 $ac_includes_default
8963 typedef float ac__type_sizeof_;
8965 main ()
8967 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8968 test_array [0] = 0
8971 return 0;
8973 _ACEOF
8974 rm -f conftest.$ac_objext
8975 if { (ac_try="$ac_compile"
8976 case "(($ac_try" in
8977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8978 *) ac_try_echo=$ac_try;;
8979 esac
8980 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8981 (eval "$ac_compile") 2>conftest.er1
8982 ac_status=$?
8983 grep -v '^ *+' conftest.er1 >conftest.err
8984 rm -f conftest.er1
8985 cat conftest.err >&5
8986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8987 (exit $ac_status); } && {
8988 test -z "$ac_c_werror_flag" ||
8989 test ! -s conftest.err
8990 } && test -s conftest.$ac_objext; then
8991 ac_hi=$ac_mid
8992 else
8993 echo "$as_me: failed program was:" >&5
8994 sed 's/^/| /' conftest.$ac_ext >&5
8996 ac_lo=`expr '(' $ac_mid ')' + 1`
8999 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9000 done
9001 case $ac_lo in
9002 ?*) ac_cv_sizeof_float=$ac_lo;;
9003 '') if test "$ac_cv_type_float" = yes; then
9004 { { echo "$as_me:$LINENO: error: cannot compute sizeof (float)
9005 See \`config.log' for more details." >&5
9006 echo "$as_me: error: cannot compute sizeof (float)
9007 See \`config.log' for more details." >&2;}
9008 { (exit 77); exit 77; }; }
9009 else
9010 ac_cv_sizeof_float=0
9011 fi ;;
9012 esac
9013 else
9014 cat >conftest.$ac_ext <<_ACEOF
9015 /* confdefs.h. */
9016 _ACEOF
9017 cat confdefs.h >>conftest.$ac_ext
9018 cat >>conftest.$ac_ext <<_ACEOF
9019 /* end confdefs.h. */
9020 $ac_includes_default
9021 typedef float ac__type_sizeof_;
9022 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
9023 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
9024 #include <stdio.h>
9025 #include <stdlib.h>
9027 main ()
9030 FILE *f = fopen ("conftest.val", "w");
9031 if (! f)
9032 return 1;
9033 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
9035 long int i = longval ();
9036 if (i != ((long int) (sizeof (ac__type_sizeof_))))
9037 return 1;
9038 fprintf (f, "%ld\n", i);
9040 else
9042 unsigned long int i = ulongval ();
9043 if (i != ((long int) (sizeof (ac__type_sizeof_))))
9044 return 1;
9045 fprintf (f, "%lu\n", i);
9047 return ferror (f) || fclose (f) != 0;
9050 return 0;
9052 _ACEOF
9053 rm -f conftest$ac_exeext
9054 if { (ac_try="$ac_link"
9055 case "(($ac_try" in
9056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9057 *) ac_try_echo=$ac_try;;
9058 esac
9059 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9060 (eval "$ac_link") 2>&5
9061 ac_status=$?
9062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9063 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9064 { (case "(($ac_try" in
9065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9066 *) ac_try_echo=$ac_try;;
9067 esac
9068 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9069 (eval "$ac_try") 2>&5
9070 ac_status=$?
9071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9072 (exit $ac_status); }; }; then
9073 ac_cv_sizeof_float=`cat conftest.val`
9074 else
9075 echo "$as_me: program exited with status $ac_status" >&5
9076 echo "$as_me: failed program was:" >&5
9077 sed 's/^/| /' conftest.$ac_ext >&5
9079 ( exit $ac_status )
9080 if test "$ac_cv_type_float" = yes; then
9081 { { echo "$as_me:$LINENO: error: cannot compute sizeof (float)
9082 See \`config.log' for more details." >&5
9083 echo "$as_me: error: cannot compute sizeof (float)
9084 See \`config.log' for more details." >&2;}
9085 { (exit 77); exit 77; }; }
9086 else
9087 ac_cv_sizeof_float=0
9090 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9092 rm -f conftest.val
9094 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_float" >&5
9095 echo "${ECHO_T}$ac_cv_sizeof_float" >&6; }
9099 cat >>confdefs.h <<_ACEOF
9100 #define SIZEOF_FLOAT $ac_cv_sizeof_float
9101 _ACEOF
9104 { echo "$as_me:$LINENO: checking for double" >&5
9105 echo $ECHO_N "checking for double... $ECHO_C" >&6; }
9106 if test "${ac_cv_type_double+set}" = set; then
9107 echo $ECHO_N "(cached) $ECHO_C" >&6
9108 else
9109 cat >conftest.$ac_ext <<_ACEOF
9110 /* confdefs.h. */
9111 _ACEOF
9112 cat confdefs.h >>conftest.$ac_ext
9113 cat >>conftest.$ac_ext <<_ACEOF
9114 /* end confdefs.h. */
9115 $ac_includes_default
9116 typedef double ac__type_new_;
9118 main ()
9120 if ((ac__type_new_ *) 0)
9121 return 0;
9122 if (sizeof (ac__type_new_))
9123 return 0;
9125 return 0;
9127 _ACEOF
9128 rm -f conftest.$ac_objext
9129 if { (ac_try="$ac_compile"
9130 case "(($ac_try" in
9131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9132 *) ac_try_echo=$ac_try;;
9133 esac
9134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9135 (eval "$ac_compile") 2>conftest.er1
9136 ac_status=$?
9137 grep -v '^ *+' conftest.er1 >conftest.err
9138 rm -f conftest.er1
9139 cat conftest.err >&5
9140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9141 (exit $ac_status); } && {
9142 test -z "$ac_c_werror_flag" ||
9143 test ! -s conftest.err
9144 } && test -s conftest.$ac_objext; then
9145 ac_cv_type_double=yes
9146 else
9147 echo "$as_me: failed program was:" >&5
9148 sed 's/^/| /' conftest.$ac_ext >&5
9150 ac_cv_type_double=no
9153 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9155 { echo "$as_me:$LINENO: result: $ac_cv_type_double" >&5
9156 echo "${ECHO_T}$ac_cv_type_double" >&6; }
9158 # The cast to long int works around a bug in the HP C Compiler
9159 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9160 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9161 # This bug is HP SR number 8606223364.
9162 { echo "$as_me:$LINENO: checking size of double" >&5
9163 echo $ECHO_N "checking size of double... $ECHO_C" >&6; }
9164 if test "${ac_cv_sizeof_double+set}" = set; then
9165 echo $ECHO_N "(cached) $ECHO_C" >&6
9166 else
9167 if test "$cross_compiling" = yes; then
9168 # Depending upon the size, compute the lo and hi bounds.
9169 cat >conftest.$ac_ext <<_ACEOF
9170 /* confdefs.h. */
9171 _ACEOF
9172 cat confdefs.h >>conftest.$ac_ext
9173 cat >>conftest.$ac_ext <<_ACEOF
9174 /* end confdefs.h. */
9175 $ac_includes_default
9176 typedef double ac__type_sizeof_;
9178 main ()
9180 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
9181 test_array [0] = 0
9184 return 0;
9186 _ACEOF
9187 rm -f conftest.$ac_objext
9188 if { (ac_try="$ac_compile"
9189 case "(($ac_try" in
9190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9191 *) ac_try_echo=$ac_try;;
9192 esac
9193 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9194 (eval "$ac_compile") 2>conftest.er1
9195 ac_status=$?
9196 grep -v '^ *+' conftest.er1 >conftest.err
9197 rm -f conftest.er1
9198 cat conftest.err >&5
9199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9200 (exit $ac_status); } && {
9201 test -z "$ac_c_werror_flag" ||
9202 test ! -s conftest.err
9203 } && test -s conftest.$ac_objext; then
9204 ac_lo=0 ac_mid=0
9205 while :; do
9206 cat >conftest.$ac_ext <<_ACEOF
9207 /* confdefs.h. */
9208 _ACEOF
9209 cat confdefs.h >>conftest.$ac_ext
9210 cat >>conftest.$ac_ext <<_ACEOF
9211 /* end confdefs.h. */
9212 $ac_includes_default
9213 typedef double ac__type_sizeof_;
9215 main ()
9217 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
9218 test_array [0] = 0
9221 return 0;
9223 _ACEOF
9224 rm -f conftest.$ac_objext
9225 if { (ac_try="$ac_compile"
9226 case "(($ac_try" in
9227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9228 *) ac_try_echo=$ac_try;;
9229 esac
9230 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9231 (eval "$ac_compile") 2>conftest.er1
9232 ac_status=$?
9233 grep -v '^ *+' conftest.er1 >conftest.err
9234 rm -f conftest.er1
9235 cat conftest.err >&5
9236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9237 (exit $ac_status); } && {
9238 test -z "$ac_c_werror_flag" ||
9239 test ! -s conftest.err
9240 } && test -s conftest.$ac_objext; then
9241 ac_hi=$ac_mid; break
9242 else
9243 echo "$as_me: failed program was:" >&5
9244 sed 's/^/| /' conftest.$ac_ext >&5
9246 ac_lo=`expr $ac_mid + 1`
9247 if test $ac_lo -le $ac_mid; then
9248 ac_lo= ac_hi=
9249 break
9251 ac_mid=`expr 2 '*' $ac_mid + 1`
9254 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9255 done
9256 else
9257 echo "$as_me: failed program was:" >&5
9258 sed 's/^/| /' conftest.$ac_ext >&5
9260 cat >conftest.$ac_ext <<_ACEOF
9261 /* confdefs.h. */
9262 _ACEOF
9263 cat confdefs.h >>conftest.$ac_ext
9264 cat >>conftest.$ac_ext <<_ACEOF
9265 /* end confdefs.h. */
9266 $ac_includes_default
9267 typedef double ac__type_sizeof_;
9269 main ()
9271 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
9272 test_array [0] = 0
9275 return 0;
9277 _ACEOF
9278 rm -f conftest.$ac_objext
9279 if { (ac_try="$ac_compile"
9280 case "(($ac_try" in
9281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9282 *) ac_try_echo=$ac_try;;
9283 esac
9284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9285 (eval "$ac_compile") 2>conftest.er1
9286 ac_status=$?
9287 grep -v '^ *+' conftest.er1 >conftest.err
9288 rm -f conftest.er1
9289 cat conftest.err >&5
9290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9291 (exit $ac_status); } && {
9292 test -z "$ac_c_werror_flag" ||
9293 test ! -s conftest.err
9294 } && test -s conftest.$ac_objext; then
9295 ac_hi=-1 ac_mid=-1
9296 while :; do
9297 cat >conftest.$ac_ext <<_ACEOF
9298 /* confdefs.h. */
9299 _ACEOF
9300 cat confdefs.h >>conftest.$ac_ext
9301 cat >>conftest.$ac_ext <<_ACEOF
9302 /* end confdefs.h. */
9303 $ac_includes_default
9304 typedef double ac__type_sizeof_;
9306 main ()
9308 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
9309 test_array [0] = 0
9312 return 0;
9314 _ACEOF
9315 rm -f conftest.$ac_objext
9316 if { (ac_try="$ac_compile"
9317 case "(($ac_try" in
9318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9319 *) ac_try_echo=$ac_try;;
9320 esac
9321 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9322 (eval "$ac_compile") 2>conftest.er1
9323 ac_status=$?
9324 grep -v '^ *+' conftest.er1 >conftest.err
9325 rm -f conftest.er1
9326 cat conftest.err >&5
9327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9328 (exit $ac_status); } && {
9329 test -z "$ac_c_werror_flag" ||
9330 test ! -s conftest.err
9331 } && test -s conftest.$ac_objext; then
9332 ac_lo=$ac_mid; break
9333 else
9334 echo "$as_me: failed program was:" >&5
9335 sed 's/^/| /' conftest.$ac_ext >&5
9337 ac_hi=`expr '(' $ac_mid ')' - 1`
9338 if test $ac_mid -le $ac_hi; then
9339 ac_lo= ac_hi=
9340 break
9342 ac_mid=`expr 2 '*' $ac_mid`
9345 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9346 done
9347 else
9348 echo "$as_me: failed program was:" >&5
9349 sed 's/^/| /' conftest.$ac_ext >&5
9351 ac_lo= ac_hi=
9354 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9357 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9358 # Binary search between lo and hi bounds.
9359 while test "x$ac_lo" != "x$ac_hi"; do
9360 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9361 cat >conftest.$ac_ext <<_ACEOF
9362 /* confdefs.h. */
9363 _ACEOF
9364 cat confdefs.h >>conftest.$ac_ext
9365 cat >>conftest.$ac_ext <<_ACEOF
9366 /* end confdefs.h. */
9367 $ac_includes_default
9368 typedef double ac__type_sizeof_;
9370 main ()
9372 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
9373 test_array [0] = 0
9376 return 0;
9378 _ACEOF
9379 rm -f conftest.$ac_objext
9380 if { (ac_try="$ac_compile"
9381 case "(($ac_try" in
9382 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9383 *) ac_try_echo=$ac_try;;
9384 esac
9385 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9386 (eval "$ac_compile") 2>conftest.er1
9387 ac_status=$?
9388 grep -v '^ *+' conftest.er1 >conftest.err
9389 rm -f conftest.er1
9390 cat conftest.err >&5
9391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9392 (exit $ac_status); } && {
9393 test -z "$ac_c_werror_flag" ||
9394 test ! -s conftest.err
9395 } && test -s conftest.$ac_objext; then
9396 ac_hi=$ac_mid
9397 else
9398 echo "$as_me: failed program was:" >&5
9399 sed 's/^/| /' conftest.$ac_ext >&5
9401 ac_lo=`expr '(' $ac_mid ')' + 1`
9404 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9405 done
9406 case $ac_lo in
9407 ?*) ac_cv_sizeof_double=$ac_lo;;
9408 '') if test "$ac_cv_type_double" = yes; then
9409 { { echo "$as_me:$LINENO: error: cannot compute sizeof (double)
9410 See \`config.log' for more details." >&5
9411 echo "$as_me: error: cannot compute sizeof (double)
9412 See \`config.log' for more details." >&2;}
9413 { (exit 77); exit 77; }; }
9414 else
9415 ac_cv_sizeof_double=0
9416 fi ;;
9417 esac
9418 else
9419 cat >conftest.$ac_ext <<_ACEOF
9420 /* confdefs.h. */
9421 _ACEOF
9422 cat confdefs.h >>conftest.$ac_ext
9423 cat >>conftest.$ac_ext <<_ACEOF
9424 /* end confdefs.h. */
9425 $ac_includes_default
9426 typedef double ac__type_sizeof_;
9427 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
9428 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
9429 #include <stdio.h>
9430 #include <stdlib.h>
9432 main ()
9435 FILE *f = fopen ("conftest.val", "w");
9436 if (! f)
9437 return 1;
9438 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
9440 long int i = longval ();
9441 if (i != ((long int) (sizeof (ac__type_sizeof_))))
9442 return 1;
9443 fprintf (f, "%ld\n", i);
9445 else
9447 unsigned long int i = ulongval ();
9448 if (i != ((long int) (sizeof (ac__type_sizeof_))))
9449 return 1;
9450 fprintf (f, "%lu\n", i);
9452 return ferror (f) || fclose (f) != 0;
9455 return 0;
9457 _ACEOF
9458 rm -f conftest$ac_exeext
9459 if { (ac_try="$ac_link"
9460 case "(($ac_try" in
9461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9462 *) ac_try_echo=$ac_try;;
9463 esac
9464 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9465 (eval "$ac_link") 2>&5
9466 ac_status=$?
9467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9468 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9469 { (case "(($ac_try" in
9470 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9471 *) ac_try_echo=$ac_try;;
9472 esac
9473 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9474 (eval "$ac_try") 2>&5
9475 ac_status=$?
9476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9477 (exit $ac_status); }; }; then
9478 ac_cv_sizeof_double=`cat conftest.val`
9479 else
9480 echo "$as_me: program exited with status $ac_status" >&5
9481 echo "$as_me: failed program was:" >&5
9482 sed 's/^/| /' conftest.$ac_ext >&5
9484 ( exit $ac_status )
9485 if test "$ac_cv_type_double" = yes; then
9486 { { echo "$as_me:$LINENO: error: cannot compute sizeof (double)
9487 See \`config.log' for more details." >&5
9488 echo "$as_me: error: cannot compute sizeof (double)
9489 See \`config.log' for more details." >&2;}
9490 { (exit 77); exit 77; }; }
9491 else
9492 ac_cv_sizeof_double=0
9495 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9497 rm -f conftest.val
9499 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_double" >&5
9500 echo "${ECHO_T}$ac_cv_sizeof_double" >&6; }
9504 cat >>confdefs.h <<_ACEOF
9505 #define SIZEOF_DOUBLE $ac_cv_sizeof_double
9506 _ACEOF
9509 { echo "$as_me:$LINENO: checking for fpos_t" >&5
9510 echo $ECHO_N "checking for fpos_t... $ECHO_C" >&6; }
9511 if test "${ac_cv_type_fpos_t+set}" = set; then
9512 echo $ECHO_N "(cached) $ECHO_C" >&6
9513 else
9514 cat >conftest.$ac_ext <<_ACEOF
9515 /* confdefs.h. */
9516 _ACEOF
9517 cat confdefs.h >>conftest.$ac_ext
9518 cat >>conftest.$ac_ext <<_ACEOF
9519 /* end confdefs.h. */
9520 $ac_includes_default
9521 typedef fpos_t ac__type_new_;
9523 main ()
9525 if ((ac__type_new_ *) 0)
9526 return 0;
9527 if (sizeof (ac__type_new_))
9528 return 0;
9530 return 0;
9532 _ACEOF
9533 rm -f conftest.$ac_objext
9534 if { (ac_try="$ac_compile"
9535 case "(($ac_try" in
9536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9537 *) ac_try_echo=$ac_try;;
9538 esac
9539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9540 (eval "$ac_compile") 2>conftest.er1
9541 ac_status=$?
9542 grep -v '^ *+' conftest.er1 >conftest.err
9543 rm -f conftest.er1
9544 cat conftest.err >&5
9545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9546 (exit $ac_status); } && {
9547 test -z "$ac_c_werror_flag" ||
9548 test ! -s conftest.err
9549 } && test -s conftest.$ac_objext; then
9550 ac_cv_type_fpos_t=yes
9551 else
9552 echo "$as_me: failed program was:" >&5
9553 sed 's/^/| /' conftest.$ac_ext >&5
9555 ac_cv_type_fpos_t=no
9558 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9560 { echo "$as_me:$LINENO: result: $ac_cv_type_fpos_t" >&5
9561 echo "${ECHO_T}$ac_cv_type_fpos_t" >&6; }
9563 # The cast to long int works around a bug in the HP C Compiler
9564 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9565 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9566 # This bug is HP SR number 8606223364.
9567 { echo "$as_me:$LINENO: checking size of fpos_t" >&5
9568 echo $ECHO_N "checking size of fpos_t... $ECHO_C" >&6; }
9569 if test "${ac_cv_sizeof_fpos_t+set}" = set; then
9570 echo $ECHO_N "(cached) $ECHO_C" >&6
9571 else
9572 if test "$cross_compiling" = yes; then
9573 # Depending upon the size, compute the lo and hi bounds.
9574 cat >conftest.$ac_ext <<_ACEOF
9575 /* confdefs.h. */
9576 _ACEOF
9577 cat confdefs.h >>conftest.$ac_ext
9578 cat >>conftest.$ac_ext <<_ACEOF
9579 /* end confdefs.h. */
9580 $ac_includes_default
9581 typedef fpos_t ac__type_sizeof_;
9583 main ()
9585 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
9586 test_array [0] = 0
9589 return 0;
9591 _ACEOF
9592 rm -f conftest.$ac_objext
9593 if { (ac_try="$ac_compile"
9594 case "(($ac_try" in
9595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9596 *) ac_try_echo=$ac_try;;
9597 esac
9598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9599 (eval "$ac_compile") 2>conftest.er1
9600 ac_status=$?
9601 grep -v '^ *+' conftest.er1 >conftest.err
9602 rm -f conftest.er1
9603 cat conftest.err >&5
9604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9605 (exit $ac_status); } && {
9606 test -z "$ac_c_werror_flag" ||
9607 test ! -s conftest.err
9608 } && test -s conftest.$ac_objext; then
9609 ac_lo=0 ac_mid=0
9610 while :; do
9611 cat >conftest.$ac_ext <<_ACEOF
9612 /* confdefs.h. */
9613 _ACEOF
9614 cat confdefs.h >>conftest.$ac_ext
9615 cat >>conftest.$ac_ext <<_ACEOF
9616 /* end confdefs.h. */
9617 $ac_includes_default
9618 typedef fpos_t ac__type_sizeof_;
9620 main ()
9622 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
9623 test_array [0] = 0
9626 return 0;
9628 _ACEOF
9629 rm -f conftest.$ac_objext
9630 if { (ac_try="$ac_compile"
9631 case "(($ac_try" in
9632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9633 *) ac_try_echo=$ac_try;;
9634 esac
9635 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9636 (eval "$ac_compile") 2>conftest.er1
9637 ac_status=$?
9638 grep -v '^ *+' conftest.er1 >conftest.err
9639 rm -f conftest.er1
9640 cat conftest.err >&5
9641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9642 (exit $ac_status); } && {
9643 test -z "$ac_c_werror_flag" ||
9644 test ! -s conftest.err
9645 } && test -s conftest.$ac_objext; then
9646 ac_hi=$ac_mid; break
9647 else
9648 echo "$as_me: failed program was:" >&5
9649 sed 's/^/| /' conftest.$ac_ext >&5
9651 ac_lo=`expr $ac_mid + 1`
9652 if test $ac_lo -le $ac_mid; then
9653 ac_lo= ac_hi=
9654 break
9656 ac_mid=`expr 2 '*' $ac_mid + 1`
9659 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9660 done
9661 else
9662 echo "$as_me: failed program was:" >&5
9663 sed 's/^/| /' conftest.$ac_ext >&5
9665 cat >conftest.$ac_ext <<_ACEOF
9666 /* confdefs.h. */
9667 _ACEOF
9668 cat confdefs.h >>conftest.$ac_ext
9669 cat >>conftest.$ac_ext <<_ACEOF
9670 /* end confdefs.h. */
9671 $ac_includes_default
9672 typedef fpos_t ac__type_sizeof_;
9674 main ()
9676 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
9677 test_array [0] = 0
9680 return 0;
9682 _ACEOF
9683 rm -f conftest.$ac_objext
9684 if { (ac_try="$ac_compile"
9685 case "(($ac_try" in
9686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9687 *) ac_try_echo=$ac_try;;
9688 esac
9689 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9690 (eval "$ac_compile") 2>conftest.er1
9691 ac_status=$?
9692 grep -v '^ *+' conftest.er1 >conftest.err
9693 rm -f conftest.er1
9694 cat conftest.err >&5
9695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9696 (exit $ac_status); } && {
9697 test -z "$ac_c_werror_flag" ||
9698 test ! -s conftest.err
9699 } && test -s conftest.$ac_objext; then
9700 ac_hi=-1 ac_mid=-1
9701 while :; do
9702 cat >conftest.$ac_ext <<_ACEOF
9703 /* confdefs.h. */
9704 _ACEOF
9705 cat confdefs.h >>conftest.$ac_ext
9706 cat >>conftest.$ac_ext <<_ACEOF
9707 /* end confdefs.h. */
9708 $ac_includes_default
9709 typedef fpos_t ac__type_sizeof_;
9711 main ()
9713 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
9714 test_array [0] = 0
9717 return 0;
9719 _ACEOF
9720 rm -f conftest.$ac_objext
9721 if { (ac_try="$ac_compile"
9722 case "(($ac_try" in
9723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9724 *) ac_try_echo=$ac_try;;
9725 esac
9726 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9727 (eval "$ac_compile") 2>conftest.er1
9728 ac_status=$?
9729 grep -v '^ *+' conftest.er1 >conftest.err
9730 rm -f conftest.er1
9731 cat conftest.err >&5
9732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9733 (exit $ac_status); } && {
9734 test -z "$ac_c_werror_flag" ||
9735 test ! -s conftest.err
9736 } && test -s conftest.$ac_objext; then
9737 ac_lo=$ac_mid; break
9738 else
9739 echo "$as_me: failed program was:" >&5
9740 sed 's/^/| /' conftest.$ac_ext >&5
9742 ac_hi=`expr '(' $ac_mid ')' - 1`
9743 if test $ac_mid -le $ac_hi; then
9744 ac_lo= ac_hi=
9745 break
9747 ac_mid=`expr 2 '*' $ac_mid`
9750 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9751 done
9752 else
9753 echo "$as_me: failed program was:" >&5
9754 sed 's/^/| /' conftest.$ac_ext >&5
9756 ac_lo= ac_hi=
9759 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9762 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9763 # Binary search between lo and hi bounds.
9764 while test "x$ac_lo" != "x$ac_hi"; do
9765 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9766 cat >conftest.$ac_ext <<_ACEOF
9767 /* confdefs.h. */
9768 _ACEOF
9769 cat confdefs.h >>conftest.$ac_ext
9770 cat >>conftest.$ac_ext <<_ACEOF
9771 /* end confdefs.h. */
9772 $ac_includes_default
9773 typedef fpos_t ac__type_sizeof_;
9775 main ()
9777 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
9778 test_array [0] = 0
9781 return 0;
9783 _ACEOF
9784 rm -f conftest.$ac_objext
9785 if { (ac_try="$ac_compile"
9786 case "(($ac_try" in
9787 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9788 *) ac_try_echo=$ac_try;;
9789 esac
9790 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9791 (eval "$ac_compile") 2>conftest.er1
9792 ac_status=$?
9793 grep -v '^ *+' conftest.er1 >conftest.err
9794 rm -f conftest.er1
9795 cat conftest.err >&5
9796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9797 (exit $ac_status); } && {
9798 test -z "$ac_c_werror_flag" ||
9799 test ! -s conftest.err
9800 } && test -s conftest.$ac_objext; then
9801 ac_hi=$ac_mid
9802 else
9803 echo "$as_me: failed program was:" >&5
9804 sed 's/^/| /' conftest.$ac_ext >&5
9806 ac_lo=`expr '(' $ac_mid ')' + 1`
9809 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9810 done
9811 case $ac_lo in
9812 ?*) ac_cv_sizeof_fpos_t=$ac_lo;;
9813 '') if test "$ac_cv_type_fpos_t" = yes; then
9814 { { echo "$as_me:$LINENO: error: cannot compute sizeof (fpos_t)
9815 See \`config.log' for more details." >&5
9816 echo "$as_me: error: cannot compute sizeof (fpos_t)
9817 See \`config.log' for more details." >&2;}
9818 { (exit 77); exit 77; }; }
9819 else
9820 ac_cv_sizeof_fpos_t=0
9821 fi ;;
9822 esac
9823 else
9824 cat >conftest.$ac_ext <<_ACEOF
9825 /* confdefs.h. */
9826 _ACEOF
9827 cat confdefs.h >>conftest.$ac_ext
9828 cat >>conftest.$ac_ext <<_ACEOF
9829 /* end confdefs.h. */
9830 $ac_includes_default
9831 typedef fpos_t ac__type_sizeof_;
9832 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
9833 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
9834 #include <stdio.h>
9835 #include <stdlib.h>
9837 main ()
9840 FILE *f = fopen ("conftest.val", "w");
9841 if (! f)
9842 return 1;
9843 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
9845 long int i = longval ();
9846 if (i != ((long int) (sizeof (ac__type_sizeof_))))
9847 return 1;
9848 fprintf (f, "%ld\n", i);
9850 else
9852 unsigned long int i = ulongval ();
9853 if (i != ((long int) (sizeof (ac__type_sizeof_))))
9854 return 1;
9855 fprintf (f, "%lu\n", i);
9857 return ferror (f) || fclose (f) != 0;
9860 return 0;
9862 _ACEOF
9863 rm -f conftest$ac_exeext
9864 if { (ac_try="$ac_link"
9865 case "(($ac_try" in
9866 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9867 *) ac_try_echo=$ac_try;;
9868 esac
9869 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9870 (eval "$ac_link") 2>&5
9871 ac_status=$?
9872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9873 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9874 { (case "(($ac_try" in
9875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9876 *) ac_try_echo=$ac_try;;
9877 esac
9878 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9879 (eval "$ac_try") 2>&5
9880 ac_status=$?
9881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9882 (exit $ac_status); }; }; then
9883 ac_cv_sizeof_fpos_t=`cat conftest.val`
9884 else
9885 echo "$as_me: program exited with status $ac_status" >&5
9886 echo "$as_me: failed program was:" >&5
9887 sed 's/^/| /' conftest.$ac_ext >&5
9889 ( exit $ac_status )
9890 if test "$ac_cv_type_fpos_t" = yes; then
9891 { { echo "$as_me:$LINENO: error: cannot compute sizeof (fpos_t)
9892 See \`config.log' for more details." >&5
9893 echo "$as_me: error: cannot compute sizeof (fpos_t)
9894 See \`config.log' for more details." >&2;}
9895 { (exit 77); exit 77; }; }
9896 else
9897 ac_cv_sizeof_fpos_t=0
9900 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9902 rm -f conftest.val
9904 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_fpos_t" >&5
9905 echo "${ECHO_T}$ac_cv_sizeof_fpos_t" >&6; }
9909 cat >>confdefs.h <<_ACEOF
9910 #define SIZEOF_FPOS_T $ac_cv_sizeof_fpos_t
9911 _ACEOF
9914 { echo "$as_me:$LINENO: checking for size_t" >&5
9915 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
9916 if test "${ac_cv_type_size_t+set}" = set; then
9917 echo $ECHO_N "(cached) $ECHO_C" >&6
9918 else
9919 cat >conftest.$ac_ext <<_ACEOF
9920 /* confdefs.h. */
9921 _ACEOF
9922 cat confdefs.h >>conftest.$ac_ext
9923 cat >>conftest.$ac_ext <<_ACEOF
9924 /* end confdefs.h. */
9925 $ac_includes_default
9926 typedef size_t ac__type_new_;
9928 main ()
9930 if ((ac__type_new_ *) 0)
9931 return 0;
9932 if (sizeof (ac__type_new_))
9933 return 0;
9935 return 0;
9937 _ACEOF
9938 rm -f conftest.$ac_objext
9939 if { (ac_try="$ac_compile"
9940 case "(($ac_try" in
9941 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9942 *) ac_try_echo=$ac_try;;
9943 esac
9944 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9945 (eval "$ac_compile") 2>conftest.er1
9946 ac_status=$?
9947 grep -v '^ *+' conftest.er1 >conftest.err
9948 rm -f conftest.er1
9949 cat conftest.err >&5
9950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9951 (exit $ac_status); } && {
9952 test -z "$ac_c_werror_flag" ||
9953 test ! -s conftest.err
9954 } && test -s conftest.$ac_objext; then
9955 ac_cv_type_size_t=yes
9956 else
9957 echo "$as_me: failed program was:" >&5
9958 sed 's/^/| /' conftest.$ac_ext >&5
9960 ac_cv_type_size_t=no
9963 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9965 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
9966 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
9968 # The cast to long int works around a bug in the HP C Compiler
9969 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9970 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9971 # This bug is HP SR number 8606223364.
9972 { echo "$as_me:$LINENO: checking size of size_t" >&5
9973 echo $ECHO_N "checking size of size_t... $ECHO_C" >&6; }
9974 if test "${ac_cv_sizeof_size_t+set}" = set; then
9975 echo $ECHO_N "(cached) $ECHO_C" >&6
9976 else
9977 if test "$cross_compiling" = yes; then
9978 # Depending upon the size, compute the lo and hi bounds.
9979 cat >conftest.$ac_ext <<_ACEOF
9980 /* confdefs.h. */
9981 _ACEOF
9982 cat confdefs.h >>conftest.$ac_ext
9983 cat >>conftest.$ac_ext <<_ACEOF
9984 /* end confdefs.h. */
9985 $ac_includes_default
9986 typedef size_t ac__type_sizeof_;
9988 main ()
9990 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
9991 test_array [0] = 0
9994 return 0;
9996 _ACEOF
9997 rm -f conftest.$ac_objext
9998 if { (ac_try="$ac_compile"
9999 case "(($ac_try" in
10000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10001 *) ac_try_echo=$ac_try;;
10002 esac
10003 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10004 (eval "$ac_compile") 2>conftest.er1
10005 ac_status=$?
10006 grep -v '^ *+' conftest.er1 >conftest.err
10007 rm -f conftest.er1
10008 cat conftest.err >&5
10009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10010 (exit $ac_status); } && {
10011 test -z "$ac_c_werror_flag" ||
10012 test ! -s conftest.err
10013 } && test -s conftest.$ac_objext; then
10014 ac_lo=0 ac_mid=0
10015 while :; do
10016 cat >conftest.$ac_ext <<_ACEOF
10017 /* confdefs.h. */
10018 _ACEOF
10019 cat confdefs.h >>conftest.$ac_ext
10020 cat >>conftest.$ac_ext <<_ACEOF
10021 /* end confdefs.h. */
10022 $ac_includes_default
10023 typedef size_t ac__type_sizeof_;
10025 main ()
10027 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
10028 test_array [0] = 0
10031 return 0;
10033 _ACEOF
10034 rm -f conftest.$ac_objext
10035 if { (ac_try="$ac_compile"
10036 case "(($ac_try" in
10037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10038 *) ac_try_echo=$ac_try;;
10039 esac
10040 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10041 (eval "$ac_compile") 2>conftest.er1
10042 ac_status=$?
10043 grep -v '^ *+' conftest.er1 >conftest.err
10044 rm -f conftest.er1
10045 cat conftest.err >&5
10046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10047 (exit $ac_status); } && {
10048 test -z "$ac_c_werror_flag" ||
10049 test ! -s conftest.err
10050 } && test -s conftest.$ac_objext; then
10051 ac_hi=$ac_mid; break
10052 else
10053 echo "$as_me: failed program was:" >&5
10054 sed 's/^/| /' conftest.$ac_ext >&5
10056 ac_lo=`expr $ac_mid + 1`
10057 if test $ac_lo -le $ac_mid; then
10058 ac_lo= ac_hi=
10059 break
10061 ac_mid=`expr 2 '*' $ac_mid + 1`
10064 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10065 done
10066 else
10067 echo "$as_me: failed program was:" >&5
10068 sed 's/^/| /' conftest.$ac_ext >&5
10070 cat >conftest.$ac_ext <<_ACEOF
10071 /* confdefs.h. */
10072 _ACEOF
10073 cat confdefs.h >>conftest.$ac_ext
10074 cat >>conftest.$ac_ext <<_ACEOF
10075 /* end confdefs.h. */
10076 $ac_includes_default
10077 typedef size_t ac__type_sizeof_;
10079 main ()
10081 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
10082 test_array [0] = 0
10085 return 0;
10087 _ACEOF
10088 rm -f conftest.$ac_objext
10089 if { (ac_try="$ac_compile"
10090 case "(($ac_try" in
10091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10092 *) ac_try_echo=$ac_try;;
10093 esac
10094 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10095 (eval "$ac_compile") 2>conftest.er1
10096 ac_status=$?
10097 grep -v '^ *+' conftest.er1 >conftest.err
10098 rm -f conftest.er1
10099 cat conftest.err >&5
10100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10101 (exit $ac_status); } && {
10102 test -z "$ac_c_werror_flag" ||
10103 test ! -s conftest.err
10104 } && test -s conftest.$ac_objext; then
10105 ac_hi=-1 ac_mid=-1
10106 while :; do
10107 cat >conftest.$ac_ext <<_ACEOF
10108 /* confdefs.h. */
10109 _ACEOF
10110 cat confdefs.h >>conftest.$ac_ext
10111 cat >>conftest.$ac_ext <<_ACEOF
10112 /* end confdefs.h. */
10113 $ac_includes_default
10114 typedef size_t ac__type_sizeof_;
10116 main ()
10118 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
10119 test_array [0] = 0
10122 return 0;
10124 _ACEOF
10125 rm -f conftest.$ac_objext
10126 if { (ac_try="$ac_compile"
10127 case "(($ac_try" in
10128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10129 *) ac_try_echo=$ac_try;;
10130 esac
10131 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10132 (eval "$ac_compile") 2>conftest.er1
10133 ac_status=$?
10134 grep -v '^ *+' conftest.er1 >conftest.err
10135 rm -f conftest.er1
10136 cat conftest.err >&5
10137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10138 (exit $ac_status); } && {
10139 test -z "$ac_c_werror_flag" ||
10140 test ! -s conftest.err
10141 } && test -s conftest.$ac_objext; then
10142 ac_lo=$ac_mid; break
10143 else
10144 echo "$as_me: failed program was:" >&5
10145 sed 's/^/| /' conftest.$ac_ext >&5
10147 ac_hi=`expr '(' $ac_mid ')' - 1`
10148 if test $ac_mid -le $ac_hi; then
10149 ac_lo= ac_hi=
10150 break
10152 ac_mid=`expr 2 '*' $ac_mid`
10155 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10156 done
10157 else
10158 echo "$as_me: failed program was:" >&5
10159 sed 's/^/| /' conftest.$ac_ext >&5
10161 ac_lo= ac_hi=
10164 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10167 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10168 # Binary search between lo and hi bounds.
10169 while test "x$ac_lo" != "x$ac_hi"; do
10170 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10171 cat >conftest.$ac_ext <<_ACEOF
10172 /* confdefs.h. */
10173 _ACEOF
10174 cat confdefs.h >>conftest.$ac_ext
10175 cat >>conftest.$ac_ext <<_ACEOF
10176 /* end confdefs.h. */
10177 $ac_includes_default
10178 typedef size_t ac__type_sizeof_;
10180 main ()
10182 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
10183 test_array [0] = 0
10186 return 0;
10188 _ACEOF
10189 rm -f conftest.$ac_objext
10190 if { (ac_try="$ac_compile"
10191 case "(($ac_try" in
10192 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10193 *) ac_try_echo=$ac_try;;
10194 esac
10195 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10196 (eval "$ac_compile") 2>conftest.er1
10197 ac_status=$?
10198 grep -v '^ *+' conftest.er1 >conftest.err
10199 rm -f conftest.er1
10200 cat conftest.err >&5
10201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10202 (exit $ac_status); } && {
10203 test -z "$ac_c_werror_flag" ||
10204 test ! -s conftest.err
10205 } && test -s conftest.$ac_objext; then
10206 ac_hi=$ac_mid
10207 else
10208 echo "$as_me: failed program was:" >&5
10209 sed 's/^/| /' conftest.$ac_ext >&5
10211 ac_lo=`expr '(' $ac_mid ')' + 1`
10214 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10215 done
10216 case $ac_lo in
10217 ?*) ac_cv_sizeof_size_t=$ac_lo;;
10218 '') if test "$ac_cv_type_size_t" = yes; then
10219 { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
10220 See \`config.log' for more details." >&5
10221 echo "$as_me: error: cannot compute sizeof (size_t)
10222 See \`config.log' for more details." >&2;}
10223 { (exit 77); exit 77; }; }
10224 else
10225 ac_cv_sizeof_size_t=0
10226 fi ;;
10227 esac
10228 else
10229 cat >conftest.$ac_ext <<_ACEOF
10230 /* confdefs.h. */
10231 _ACEOF
10232 cat confdefs.h >>conftest.$ac_ext
10233 cat >>conftest.$ac_ext <<_ACEOF
10234 /* end confdefs.h. */
10235 $ac_includes_default
10236 typedef size_t ac__type_sizeof_;
10237 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
10238 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
10239 #include <stdio.h>
10240 #include <stdlib.h>
10242 main ()
10245 FILE *f = fopen ("conftest.val", "w");
10246 if (! f)
10247 return 1;
10248 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
10250 long int i = longval ();
10251 if (i != ((long int) (sizeof (ac__type_sizeof_))))
10252 return 1;
10253 fprintf (f, "%ld\n", i);
10255 else
10257 unsigned long int i = ulongval ();
10258 if (i != ((long int) (sizeof (ac__type_sizeof_))))
10259 return 1;
10260 fprintf (f, "%lu\n", i);
10262 return ferror (f) || fclose (f) != 0;
10265 return 0;
10267 _ACEOF
10268 rm -f conftest$ac_exeext
10269 if { (ac_try="$ac_link"
10270 case "(($ac_try" in
10271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10272 *) ac_try_echo=$ac_try;;
10273 esac
10274 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10275 (eval "$ac_link") 2>&5
10276 ac_status=$?
10277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10278 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10279 { (case "(($ac_try" in
10280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10281 *) ac_try_echo=$ac_try;;
10282 esac
10283 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10284 (eval "$ac_try") 2>&5
10285 ac_status=$?
10286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10287 (exit $ac_status); }; }; then
10288 ac_cv_sizeof_size_t=`cat conftest.val`
10289 else
10290 echo "$as_me: program exited with status $ac_status" >&5
10291 echo "$as_me: failed program was:" >&5
10292 sed 's/^/| /' conftest.$ac_ext >&5
10294 ( exit $ac_status )
10295 if test "$ac_cv_type_size_t" = yes; then
10296 { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
10297 See \`config.log' for more details." >&5
10298 echo "$as_me: error: cannot compute sizeof (size_t)
10299 See \`config.log' for more details." >&2;}
10300 { (exit 77); exit 77; }; }
10301 else
10302 ac_cv_sizeof_size_t=0
10305 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10307 rm -f conftest.val
10309 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
10310 echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6; }
10314 cat >>confdefs.h <<_ACEOF
10315 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
10316 _ACEOF
10319 { echo "$as_me:$LINENO: checking for pid_t" >&5
10320 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
10321 if test "${ac_cv_type_pid_t+set}" = set; then
10322 echo $ECHO_N "(cached) $ECHO_C" >&6
10323 else
10324 cat >conftest.$ac_ext <<_ACEOF
10325 /* confdefs.h. */
10326 _ACEOF
10327 cat confdefs.h >>conftest.$ac_ext
10328 cat >>conftest.$ac_ext <<_ACEOF
10329 /* end confdefs.h. */
10330 $ac_includes_default
10331 typedef pid_t ac__type_new_;
10333 main ()
10335 if ((ac__type_new_ *) 0)
10336 return 0;
10337 if (sizeof (ac__type_new_))
10338 return 0;
10340 return 0;
10342 _ACEOF
10343 rm -f conftest.$ac_objext
10344 if { (ac_try="$ac_compile"
10345 case "(($ac_try" in
10346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10347 *) ac_try_echo=$ac_try;;
10348 esac
10349 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10350 (eval "$ac_compile") 2>conftest.er1
10351 ac_status=$?
10352 grep -v '^ *+' conftest.er1 >conftest.err
10353 rm -f conftest.er1
10354 cat conftest.err >&5
10355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10356 (exit $ac_status); } && {
10357 test -z "$ac_c_werror_flag" ||
10358 test ! -s conftest.err
10359 } && test -s conftest.$ac_objext; then
10360 ac_cv_type_pid_t=yes
10361 else
10362 echo "$as_me: failed program was:" >&5
10363 sed 's/^/| /' conftest.$ac_ext >&5
10365 ac_cv_type_pid_t=no
10368 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10370 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
10371 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
10373 # The cast to long int works around a bug in the HP C Compiler
10374 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10375 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10376 # This bug is HP SR number 8606223364.
10377 { echo "$as_me:$LINENO: checking size of pid_t" >&5
10378 echo $ECHO_N "checking size of pid_t... $ECHO_C" >&6; }
10379 if test "${ac_cv_sizeof_pid_t+set}" = set; then
10380 echo $ECHO_N "(cached) $ECHO_C" >&6
10381 else
10382 if test "$cross_compiling" = yes; then
10383 # Depending upon the size, compute the lo and hi bounds.
10384 cat >conftest.$ac_ext <<_ACEOF
10385 /* confdefs.h. */
10386 _ACEOF
10387 cat confdefs.h >>conftest.$ac_ext
10388 cat >>conftest.$ac_ext <<_ACEOF
10389 /* end confdefs.h. */
10390 $ac_includes_default
10391 typedef pid_t ac__type_sizeof_;
10393 main ()
10395 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
10396 test_array [0] = 0
10399 return 0;
10401 _ACEOF
10402 rm -f conftest.$ac_objext
10403 if { (ac_try="$ac_compile"
10404 case "(($ac_try" in
10405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10406 *) ac_try_echo=$ac_try;;
10407 esac
10408 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10409 (eval "$ac_compile") 2>conftest.er1
10410 ac_status=$?
10411 grep -v '^ *+' conftest.er1 >conftest.err
10412 rm -f conftest.er1
10413 cat conftest.err >&5
10414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10415 (exit $ac_status); } && {
10416 test -z "$ac_c_werror_flag" ||
10417 test ! -s conftest.err
10418 } && test -s conftest.$ac_objext; then
10419 ac_lo=0 ac_mid=0
10420 while :; do
10421 cat >conftest.$ac_ext <<_ACEOF
10422 /* confdefs.h. */
10423 _ACEOF
10424 cat confdefs.h >>conftest.$ac_ext
10425 cat >>conftest.$ac_ext <<_ACEOF
10426 /* end confdefs.h. */
10427 $ac_includes_default
10428 typedef pid_t ac__type_sizeof_;
10430 main ()
10432 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
10433 test_array [0] = 0
10436 return 0;
10438 _ACEOF
10439 rm -f conftest.$ac_objext
10440 if { (ac_try="$ac_compile"
10441 case "(($ac_try" in
10442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10443 *) ac_try_echo=$ac_try;;
10444 esac
10445 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10446 (eval "$ac_compile") 2>conftest.er1
10447 ac_status=$?
10448 grep -v '^ *+' conftest.er1 >conftest.err
10449 rm -f conftest.er1
10450 cat conftest.err >&5
10451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10452 (exit $ac_status); } && {
10453 test -z "$ac_c_werror_flag" ||
10454 test ! -s conftest.err
10455 } && test -s conftest.$ac_objext; then
10456 ac_hi=$ac_mid; break
10457 else
10458 echo "$as_me: failed program was:" >&5
10459 sed 's/^/| /' conftest.$ac_ext >&5
10461 ac_lo=`expr $ac_mid + 1`
10462 if test $ac_lo -le $ac_mid; then
10463 ac_lo= ac_hi=
10464 break
10466 ac_mid=`expr 2 '*' $ac_mid + 1`
10469 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10470 done
10471 else
10472 echo "$as_me: failed program was:" >&5
10473 sed 's/^/| /' conftest.$ac_ext >&5
10475 cat >conftest.$ac_ext <<_ACEOF
10476 /* confdefs.h. */
10477 _ACEOF
10478 cat confdefs.h >>conftest.$ac_ext
10479 cat >>conftest.$ac_ext <<_ACEOF
10480 /* end confdefs.h. */
10481 $ac_includes_default
10482 typedef pid_t ac__type_sizeof_;
10484 main ()
10486 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
10487 test_array [0] = 0
10490 return 0;
10492 _ACEOF
10493 rm -f conftest.$ac_objext
10494 if { (ac_try="$ac_compile"
10495 case "(($ac_try" in
10496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10497 *) ac_try_echo=$ac_try;;
10498 esac
10499 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10500 (eval "$ac_compile") 2>conftest.er1
10501 ac_status=$?
10502 grep -v '^ *+' conftest.er1 >conftest.err
10503 rm -f conftest.er1
10504 cat conftest.err >&5
10505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10506 (exit $ac_status); } && {
10507 test -z "$ac_c_werror_flag" ||
10508 test ! -s conftest.err
10509 } && test -s conftest.$ac_objext; then
10510 ac_hi=-1 ac_mid=-1
10511 while :; do
10512 cat >conftest.$ac_ext <<_ACEOF
10513 /* confdefs.h. */
10514 _ACEOF
10515 cat confdefs.h >>conftest.$ac_ext
10516 cat >>conftest.$ac_ext <<_ACEOF
10517 /* end confdefs.h. */
10518 $ac_includes_default
10519 typedef pid_t ac__type_sizeof_;
10521 main ()
10523 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
10524 test_array [0] = 0
10527 return 0;
10529 _ACEOF
10530 rm -f conftest.$ac_objext
10531 if { (ac_try="$ac_compile"
10532 case "(($ac_try" in
10533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10534 *) ac_try_echo=$ac_try;;
10535 esac
10536 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10537 (eval "$ac_compile") 2>conftest.er1
10538 ac_status=$?
10539 grep -v '^ *+' conftest.er1 >conftest.err
10540 rm -f conftest.er1
10541 cat conftest.err >&5
10542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10543 (exit $ac_status); } && {
10544 test -z "$ac_c_werror_flag" ||
10545 test ! -s conftest.err
10546 } && test -s conftest.$ac_objext; then
10547 ac_lo=$ac_mid; break
10548 else
10549 echo "$as_me: failed program was:" >&5
10550 sed 's/^/| /' conftest.$ac_ext >&5
10552 ac_hi=`expr '(' $ac_mid ')' - 1`
10553 if test $ac_mid -le $ac_hi; then
10554 ac_lo= ac_hi=
10555 break
10557 ac_mid=`expr 2 '*' $ac_mid`
10560 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10561 done
10562 else
10563 echo "$as_me: failed program was:" >&5
10564 sed 's/^/| /' conftest.$ac_ext >&5
10566 ac_lo= ac_hi=
10569 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10572 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10573 # Binary search between lo and hi bounds.
10574 while test "x$ac_lo" != "x$ac_hi"; do
10575 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10576 cat >conftest.$ac_ext <<_ACEOF
10577 /* confdefs.h. */
10578 _ACEOF
10579 cat confdefs.h >>conftest.$ac_ext
10580 cat >>conftest.$ac_ext <<_ACEOF
10581 /* end confdefs.h. */
10582 $ac_includes_default
10583 typedef pid_t ac__type_sizeof_;
10585 main ()
10587 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
10588 test_array [0] = 0
10591 return 0;
10593 _ACEOF
10594 rm -f conftest.$ac_objext
10595 if { (ac_try="$ac_compile"
10596 case "(($ac_try" in
10597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10598 *) ac_try_echo=$ac_try;;
10599 esac
10600 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10601 (eval "$ac_compile") 2>conftest.er1
10602 ac_status=$?
10603 grep -v '^ *+' conftest.er1 >conftest.err
10604 rm -f conftest.er1
10605 cat conftest.err >&5
10606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10607 (exit $ac_status); } && {
10608 test -z "$ac_c_werror_flag" ||
10609 test ! -s conftest.err
10610 } && test -s conftest.$ac_objext; then
10611 ac_hi=$ac_mid
10612 else
10613 echo "$as_me: failed program was:" >&5
10614 sed 's/^/| /' conftest.$ac_ext >&5
10616 ac_lo=`expr '(' $ac_mid ')' + 1`
10619 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10620 done
10621 case $ac_lo in
10622 ?*) ac_cv_sizeof_pid_t=$ac_lo;;
10623 '') if test "$ac_cv_type_pid_t" = yes; then
10624 { { echo "$as_me:$LINENO: error: cannot compute sizeof (pid_t)
10625 See \`config.log' for more details." >&5
10626 echo "$as_me: error: cannot compute sizeof (pid_t)
10627 See \`config.log' for more details." >&2;}
10628 { (exit 77); exit 77; }; }
10629 else
10630 ac_cv_sizeof_pid_t=0
10631 fi ;;
10632 esac
10633 else
10634 cat >conftest.$ac_ext <<_ACEOF
10635 /* confdefs.h. */
10636 _ACEOF
10637 cat confdefs.h >>conftest.$ac_ext
10638 cat >>conftest.$ac_ext <<_ACEOF
10639 /* end confdefs.h. */
10640 $ac_includes_default
10641 typedef pid_t ac__type_sizeof_;
10642 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
10643 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
10644 #include <stdio.h>
10645 #include <stdlib.h>
10647 main ()
10650 FILE *f = fopen ("conftest.val", "w");
10651 if (! f)
10652 return 1;
10653 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
10655 long int i = longval ();
10656 if (i != ((long int) (sizeof (ac__type_sizeof_))))
10657 return 1;
10658 fprintf (f, "%ld\n", i);
10660 else
10662 unsigned long int i = ulongval ();
10663 if (i != ((long int) (sizeof (ac__type_sizeof_))))
10664 return 1;
10665 fprintf (f, "%lu\n", i);
10667 return ferror (f) || fclose (f) != 0;
10670 return 0;
10672 _ACEOF
10673 rm -f conftest$ac_exeext
10674 if { (ac_try="$ac_link"
10675 case "(($ac_try" in
10676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10677 *) ac_try_echo=$ac_try;;
10678 esac
10679 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10680 (eval "$ac_link") 2>&5
10681 ac_status=$?
10682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10683 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10684 { (case "(($ac_try" in
10685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10686 *) ac_try_echo=$ac_try;;
10687 esac
10688 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10689 (eval "$ac_try") 2>&5
10690 ac_status=$?
10691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10692 (exit $ac_status); }; }; then
10693 ac_cv_sizeof_pid_t=`cat conftest.val`
10694 else
10695 echo "$as_me: program exited with status $ac_status" >&5
10696 echo "$as_me: failed program was:" >&5
10697 sed 's/^/| /' conftest.$ac_ext >&5
10699 ( exit $ac_status )
10700 if test "$ac_cv_type_pid_t" = yes; then
10701 { { echo "$as_me:$LINENO: error: cannot compute sizeof (pid_t)
10702 See \`config.log' for more details." >&5
10703 echo "$as_me: error: cannot compute sizeof (pid_t)
10704 See \`config.log' for more details." >&2;}
10705 { (exit 77); exit 77; }; }
10706 else
10707 ac_cv_sizeof_pid_t=0
10710 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10712 rm -f conftest.val
10714 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_pid_t" >&5
10715 echo "${ECHO_T}$ac_cv_sizeof_pid_t" >&6; }
10719 cat >>confdefs.h <<_ACEOF
10720 #define SIZEOF_PID_T $ac_cv_sizeof_pid_t
10721 _ACEOF
10725 { echo "$as_me:$LINENO: checking for long long support" >&5
10726 echo $ECHO_N "checking for long long support... $ECHO_C" >&6; }
10727 have_long_long=no
10728 cat >conftest.$ac_ext <<_ACEOF
10729 /* confdefs.h. */
10730 _ACEOF
10731 cat confdefs.h >>conftest.$ac_ext
10732 cat >>conftest.$ac_ext <<_ACEOF
10733 /* end confdefs.h. */
10736 main ()
10738 long long x; x = (long long)0;
10740 return 0;
10742 _ACEOF
10743 rm -f conftest.$ac_objext
10744 if { (ac_try="$ac_compile"
10745 case "(($ac_try" in
10746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10747 *) ac_try_echo=$ac_try;;
10748 esac
10749 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10750 (eval "$ac_compile") 2>conftest.er1
10751 ac_status=$?
10752 grep -v '^ *+' conftest.er1 >conftest.err
10753 rm -f conftest.er1
10754 cat conftest.err >&5
10755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10756 (exit $ac_status); } && {
10757 test -z "$ac_c_werror_flag" ||
10758 test ! -s conftest.err
10759 } && test -s conftest.$ac_objext; then
10762 cat >>confdefs.h <<\_ACEOF
10763 #define HAVE_LONG_LONG 1
10764 _ACEOF
10766 have_long_long=yes
10768 else
10769 echo "$as_me: failed program was:" >&5
10770 sed 's/^/| /' conftest.$ac_ext >&5
10775 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10776 { echo "$as_me:$LINENO: result: $have_long_long" >&5
10777 echo "${ECHO_T}$have_long_long" >&6; }
10778 if test "$have_long_long" = yes ; then
10779 { echo "$as_me:$LINENO: checking for long long" >&5
10780 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
10781 if test "${ac_cv_type_long_long+set}" = set; then
10782 echo $ECHO_N "(cached) $ECHO_C" >&6
10783 else
10784 cat >conftest.$ac_ext <<_ACEOF
10785 /* confdefs.h. */
10786 _ACEOF
10787 cat confdefs.h >>conftest.$ac_ext
10788 cat >>conftest.$ac_ext <<_ACEOF
10789 /* end confdefs.h. */
10790 $ac_includes_default
10791 typedef long long ac__type_new_;
10793 main ()
10795 if ((ac__type_new_ *) 0)
10796 return 0;
10797 if (sizeof (ac__type_new_))
10798 return 0;
10800 return 0;
10802 _ACEOF
10803 rm -f conftest.$ac_objext
10804 if { (ac_try="$ac_compile"
10805 case "(($ac_try" in
10806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10807 *) ac_try_echo=$ac_try;;
10808 esac
10809 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10810 (eval "$ac_compile") 2>conftest.er1
10811 ac_status=$?
10812 grep -v '^ *+' conftest.er1 >conftest.err
10813 rm -f conftest.er1
10814 cat conftest.err >&5
10815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10816 (exit $ac_status); } && {
10817 test -z "$ac_c_werror_flag" ||
10818 test ! -s conftest.err
10819 } && test -s conftest.$ac_objext; then
10820 ac_cv_type_long_long=yes
10821 else
10822 echo "$as_me: failed program was:" >&5
10823 sed 's/^/| /' conftest.$ac_ext >&5
10825 ac_cv_type_long_long=no
10828 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10830 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
10831 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
10833 # The cast to long int works around a bug in the HP C Compiler
10834 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10835 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10836 # This bug is HP SR number 8606223364.
10837 { echo "$as_me:$LINENO: checking size of long long" >&5
10838 echo $ECHO_N "checking size of long long... $ECHO_C" >&6; }
10839 if test "${ac_cv_sizeof_long_long+set}" = set; then
10840 echo $ECHO_N "(cached) $ECHO_C" >&6
10841 else
10842 if test "$cross_compiling" = yes; then
10843 # Depending upon the size, compute the lo and hi bounds.
10844 cat >conftest.$ac_ext <<_ACEOF
10845 /* confdefs.h. */
10846 _ACEOF
10847 cat confdefs.h >>conftest.$ac_ext
10848 cat >>conftest.$ac_ext <<_ACEOF
10849 /* end confdefs.h. */
10850 $ac_includes_default
10851 typedef long long ac__type_sizeof_;
10853 main ()
10855 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
10856 test_array [0] = 0
10859 return 0;
10861 _ACEOF
10862 rm -f conftest.$ac_objext
10863 if { (ac_try="$ac_compile"
10864 case "(($ac_try" in
10865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10866 *) ac_try_echo=$ac_try;;
10867 esac
10868 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10869 (eval "$ac_compile") 2>conftest.er1
10870 ac_status=$?
10871 grep -v '^ *+' conftest.er1 >conftest.err
10872 rm -f conftest.er1
10873 cat conftest.err >&5
10874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10875 (exit $ac_status); } && {
10876 test -z "$ac_c_werror_flag" ||
10877 test ! -s conftest.err
10878 } && test -s conftest.$ac_objext; then
10879 ac_lo=0 ac_mid=0
10880 while :; do
10881 cat >conftest.$ac_ext <<_ACEOF
10882 /* confdefs.h. */
10883 _ACEOF
10884 cat confdefs.h >>conftest.$ac_ext
10885 cat >>conftest.$ac_ext <<_ACEOF
10886 /* end confdefs.h. */
10887 $ac_includes_default
10888 typedef long long ac__type_sizeof_;
10890 main ()
10892 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
10893 test_array [0] = 0
10896 return 0;
10898 _ACEOF
10899 rm -f conftest.$ac_objext
10900 if { (ac_try="$ac_compile"
10901 case "(($ac_try" in
10902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10903 *) ac_try_echo=$ac_try;;
10904 esac
10905 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10906 (eval "$ac_compile") 2>conftest.er1
10907 ac_status=$?
10908 grep -v '^ *+' conftest.er1 >conftest.err
10909 rm -f conftest.er1
10910 cat conftest.err >&5
10911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10912 (exit $ac_status); } && {
10913 test -z "$ac_c_werror_flag" ||
10914 test ! -s conftest.err
10915 } && test -s conftest.$ac_objext; then
10916 ac_hi=$ac_mid; break
10917 else
10918 echo "$as_me: failed program was:" >&5
10919 sed 's/^/| /' conftest.$ac_ext >&5
10921 ac_lo=`expr $ac_mid + 1`
10922 if test $ac_lo -le $ac_mid; then
10923 ac_lo= ac_hi=
10924 break
10926 ac_mid=`expr 2 '*' $ac_mid + 1`
10929 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10930 done
10931 else
10932 echo "$as_me: failed program was:" >&5
10933 sed 's/^/| /' conftest.$ac_ext >&5
10935 cat >conftest.$ac_ext <<_ACEOF
10936 /* confdefs.h. */
10937 _ACEOF
10938 cat confdefs.h >>conftest.$ac_ext
10939 cat >>conftest.$ac_ext <<_ACEOF
10940 /* end confdefs.h. */
10941 $ac_includes_default
10942 typedef long long ac__type_sizeof_;
10944 main ()
10946 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
10947 test_array [0] = 0
10950 return 0;
10952 _ACEOF
10953 rm -f conftest.$ac_objext
10954 if { (ac_try="$ac_compile"
10955 case "(($ac_try" in
10956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10957 *) ac_try_echo=$ac_try;;
10958 esac
10959 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10960 (eval "$ac_compile") 2>conftest.er1
10961 ac_status=$?
10962 grep -v '^ *+' conftest.er1 >conftest.err
10963 rm -f conftest.er1
10964 cat conftest.err >&5
10965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10966 (exit $ac_status); } && {
10967 test -z "$ac_c_werror_flag" ||
10968 test ! -s conftest.err
10969 } && test -s conftest.$ac_objext; then
10970 ac_hi=-1 ac_mid=-1
10971 while :; do
10972 cat >conftest.$ac_ext <<_ACEOF
10973 /* confdefs.h. */
10974 _ACEOF
10975 cat confdefs.h >>conftest.$ac_ext
10976 cat >>conftest.$ac_ext <<_ACEOF
10977 /* end confdefs.h. */
10978 $ac_includes_default
10979 typedef long long ac__type_sizeof_;
10981 main ()
10983 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
10984 test_array [0] = 0
10987 return 0;
10989 _ACEOF
10990 rm -f conftest.$ac_objext
10991 if { (ac_try="$ac_compile"
10992 case "(($ac_try" in
10993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10994 *) ac_try_echo=$ac_try;;
10995 esac
10996 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10997 (eval "$ac_compile") 2>conftest.er1
10998 ac_status=$?
10999 grep -v '^ *+' conftest.er1 >conftest.err
11000 rm -f conftest.er1
11001 cat conftest.err >&5
11002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11003 (exit $ac_status); } && {
11004 test -z "$ac_c_werror_flag" ||
11005 test ! -s conftest.err
11006 } && test -s conftest.$ac_objext; then
11007 ac_lo=$ac_mid; break
11008 else
11009 echo "$as_me: failed program was:" >&5
11010 sed 's/^/| /' conftest.$ac_ext >&5
11012 ac_hi=`expr '(' $ac_mid ')' - 1`
11013 if test $ac_mid -le $ac_hi; then
11014 ac_lo= ac_hi=
11015 break
11017 ac_mid=`expr 2 '*' $ac_mid`
11020 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11021 done
11022 else
11023 echo "$as_me: failed program was:" >&5
11024 sed 's/^/| /' conftest.$ac_ext >&5
11026 ac_lo= ac_hi=
11029 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11032 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11033 # Binary search between lo and hi bounds.
11034 while test "x$ac_lo" != "x$ac_hi"; do
11035 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
11036 cat >conftest.$ac_ext <<_ACEOF
11037 /* confdefs.h. */
11038 _ACEOF
11039 cat confdefs.h >>conftest.$ac_ext
11040 cat >>conftest.$ac_ext <<_ACEOF
11041 /* end confdefs.h. */
11042 $ac_includes_default
11043 typedef long long ac__type_sizeof_;
11045 main ()
11047 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
11048 test_array [0] = 0
11051 return 0;
11053 _ACEOF
11054 rm -f conftest.$ac_objext
11055 if { (ac_try="$ac_compile"
11056 case "(($ac_try" in
11057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11058 *) ac_try_echo=$ac_try;;
11059 esac
11060 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11061 (eval "$ac_compile") 2>conftest.er1
11062 ac_status=$?
11063 grep -v '^ *+' conftest.er1 >conftest.err
11064 rm -f conftest.er1
11065 cat conftest.err >&5
11066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11067 (exit $ac_status); } && {
11068 test -z "$ac_c_werror_flag" ||
11069 test ! -s conftest.err
11070 } && test -s conftest.$ac_objext; then
11071 ac_hi=$ac_mid
11072 else
11073 echo "$as_me: failed program was:" >&5
11074 sed 's/^/| /' conftest.$ac_ext >&5
11076 ac_lo=`expr '(' $ac_mid ')' + 1`
11079 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11080 done
11081 case $ac_lo in
11082 ?*) ac_cv_sizeof_long_long=$ac_lo;;
11083 '') if test "$ac_cv_type_long_long" = yes; then
11084 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
11085 See \`config.log' for more details." >&5
11086 echo "$as_me: error: cannot compute sizeof (long long)
11087 See \`config.log' for more details." >&2;}
11088 { (exit 77); exit 77; }; }
11089 else
11090 ac_cv_sizeof_long_long=0
11091 fi ;;
11092 esac
11093 else
11094 cat >conftest.$ac_ext <<_ACEOF
11095 /* confdefs.h. */
11096 _ACEOF
11097 cat confdefs.h >>conftest.$ac_ext
11098 cat >>conftest.$ac_ext <<_ACEOF
11099 /* end confdefs.h. */
11100 $ac_includes_default
11101 typedef long long ac__type_sizeof_;
11102 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
11103 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
11104 #include <stdio.h>
11105 #include <stdlib.h>
11107 main ()
11110 FILE *f = fopen ("conftest.val", "w");
11111 if (! f)
11112 return 1;
11113 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
11115 long int i = longval ();
11116 if (i != ((long int) (sizeof (ac__type_sizeof_))))
11117 return 1;
11118 fprintf (f, "%ld\n", i);
11120 else
11122 unsigned long int i = ulongval ();
11123 if (i != ((long int) (sizeof (ac__type_sizeof_))))
11124 return 1;
11125 fprintf (f, "%lu\n", i);
11127 return ferror (f) || fclose (f) != 0;
11130 return 0;
11132 _ACEOF
11133 rm -f conftest$ac_exeext
11134 if { (ac_try="$ac_link"
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_link") 2>&5
11141 ac_status=$?
11142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11143 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11144 { (case "(($ac_try" in
11145 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11146 *) ac_try_echo=$ac_try;;
11147 esac
11148 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11149 (eval "$ac_try") 2>&5
11150 ac_status=$?
11151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11152 (exit $ac_status); }; }; then
11153 ac_cv_sizeof_long_long=`cat conftest.val`
11154 else
11155 echo "$as_me: program exited with status $ac_status" >&5
11156 echo "$as_me: failed program was:" >&5
11157 sed 's/^/| /' conftest.$ac_ext >&5
11159 ( exit $ac_status )
11160 if test "$ac_cv_type_long_long" = yes; then
11161 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
11162 See \`config.log' for more details." >&5
11163 echo "$as_me: error: cannot compute sizeof (long long)
11164 See \`config.log' for more details." >&2;}
11165 { (exit 77); exit 77; }; }
11166 else
11167 ac_cv_sizeof_long_long=0
11170 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11172 rm -f conftest.val
11174 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
11175 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6; }
11179 cat >>confdefs.h <<_ACEOF
11180 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
11181 _ACEOF
11186 { echo "$as_me:$LINENO: checking for long double support" >&5
11187 echo $ECHO_N "checking for long double support... $ECHO_C" >&6; }
11188 have_long_double=no
11189 cat >conftest.$ac_ext <<_ACEOF
11190 /* confdefs.h. */
11191 _ACEOF
11192 cat confdefs.h >>conftest.$ac_ext
11193 cat >>conftest.$ac_ext <<_ACEOF
11194 /* end confdefs.h. */
11197 main ()
11199 long double x; x = (long double)0.;
11201 return 0;
11203 _ACEOF
11204 rm -f conftest.$ac_objext
11205 if { (ac_try="$ac_compile"
11206 case "(($ac_try" in
11207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11208 *) ac_try_echo=$ac_try;;
11209 esac
11210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11211 (eval "$ac_compile") 2>conftest.er1
11212 ac_status=$?
11213 grep -v '^ *+' conftest.er1 >conftest.err
11214 rm -f conftest.er1
11215 cat conftest.err >&5
11216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11217 (exit $ac_status); } && {
11218 test -z "$ac_c_werror_flag" ||
11219 test ! -s conftest.err
11220 } && test -s conftest.$ac_objext; then
11223 cat >>confdefs.h <<\_ACEOF
11224 #define HAVE_LONG_DOUBLE 1
11225 _ACEOF
11227 have_long_double=yes
11229 else
11230 echo "$as_me: failed program was:" >&5
11231 sed 's/^/| /' conftest.$ac_ext >&5
11236 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11237 { echo "$as_me:$LINENO: result: $have_long_double" >&5
11238 echo "${ECHO_T}$have_long_double" >&6; }
11239 if test "$have_long_double" = yes ; then
11240 { echo "$as_me:$LINENO: checking for long double" >&5
11241 echo $ECHO_N "checking for long double... $ECHO_C" >&6; }
11242 if test "${ac_cv_type_long_double+set}" = set; then
11243 echo $ECHO_N "(cached) $ECHO_C" >&6
11244 else
11245 cat >conftest.$ac_ext <<_ACEOF
11246 /* confdefs.h. */
11247 _ACEOF
11248 cat confdefs.h >>conftest.$ac_ext
11249 cat >>conftest.$ac_ext <<_ACEOF
11250 /* end confdefs.h. */
11251 $ac_includes_default
11252 typedef long double ac__type_new_;
11254 main ()
11256 if ((ac__type_new_ *) 0)
11257 return 0;
11258 if (sizeof (ac__type_new_))
11259 return 0;
11261 return 0;
11263 _ACEOF
11264 rm -f conftest.$ac_objext
11265 if { (ac_try="$ac_compile"
11266 case "(($ac_try" in
11267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11268 *) ac_try_echo=$ac_try;;
11269 esac
11270 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11271 (eval "$ac_compile") 2>conftest.er1
11272 ac_status=$?
11273 grep -v '^ *+' conftest.er1 >conftest.err
11274 rm -f conftest.er1
11275 cat conftest.err >&5
11276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11277 (exit $ac_status); } && {
11278 test -z "$ac_c_werror_flag" ||
11279 test ! -s conftest.err
11280 } && test -s conftest.$ac_objext; then
11281 ac_cv_type_long_double=yes
11282 else
11283 echo "$as_me: failed program was:" >&5
11284 sed 's/^/| /' conftest.$ac_ext >&5
11286 ac_cv_type_long_double=no
11289 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11291 { echo "$as_me:$LINENO: result: $ac_cv_type_long_double" >&5
11292 echo "${ECHO_T}$ac_cv_type_long_double" >&6; }
11294 # The cast to long int works around a bug in the HP C Compiler
11295 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11296 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11297 # This bug is HP SR number 8606223364.
11298 { echo "$as_me:$LINENO: checking size of long double" >&5
11299 echo $ECHO_N "checking size of long double... $ECHO_C" >&6; }
11300 if test "${ac_cv_sizeof_long_double+set}" = set; then
11301 echo $ECHO_N "(cached) $ECHO_C" >&6
11302 else
11303 if test "$cross_compiling" = yes; then
11304 # Depending upon the size, compute the lo and hi bounds.
11305 cat >conftest.$ac_ext <<_ACEOF
11306 /* confdefs.h. */
11307 _ACEOF
11308 cat confdefs.h >>conftest.$ac_ext
11309 cat >>conftest.$ac_ext <<_ACEOF
11310 /* end confdefs.h. */
11311 $ac_includes_default
11312 typedef long double ac__type_sizeof_;
11314 main ()
11316 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
11317 test_array [0] = 0
11320 return 0;
11322 _ACEOF
11323 rm -f conftest.$ac_objext
11324 if { (ac_try="$ac_compile"
11325 case "(($ac_try" in
11326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11327 *) ac_try_echo=$ac_try;;
11328 esac
11329 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11330 (eval "$ac_compile") 2>conftest.er1
11331 ac_status=$?
11332 grep -v '^ *+' conftest.er1 >conftest.err
11333 rm -f conftest.er1
11334 cat conftest.err >&5
11335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11336 (exit $ac_status); } && {
11337 test -z "$ac_c_werror_flag" ||
11338 test ! -s conftest.err
11339 } && test -s conftest.$ac_objext; then
11340 ac_lo=0 ac_mid=0
11341 while :; do
11342 cat >conftest.$ac_ext <<_ACEOF
11343 /* confdefs.h. */
11344 _ACEOF
11345 cat confdefs.h >>conftest.$ac_ext
11346 cat >>conftest.$ac_ext <<_ACEOF
11347 /* end confdefs.h. */
11348 $ac_includes_default
11349 typedef long double ac__type_sizeof_;
11351 main ()
11353 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
11354 test_array [0] = 0
11357 return 0;
11359 _ACEOF
11360 rm -f conftest.$ac_objext
11361 if { (ac_try="$ac_compile"
11362 case "(($ac_try" in
11363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11364 *) ac_try_echo=$ac_try;;
11365 esac
11366 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11367 (eval "$ac_compile") 2>conftest.er1
11368 ac_status=$?
11369 grep -v '^ *+' conftest.er1 >conftest.err
11370 rm -f conftest.er1
11371 cat conftest.err >&5
11372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11373 (exit $ac_status); } && {
11374 test -z "$ac_c_werror_flag" ||
11375 test ! -s conftest.err
11376 } && test -s conftest.$ac_objext; then
11377 ac_hi=$ac_mid; break
11378 else
11379 echo "$as_me: failed program was:" >&5
11380 sed 's/^/| /' conftest.$ac_ext >&5
11382 ac_lo=`expr $ac_mid + 1`
11383 if test $ac_lo -le $ac_mid; then
11384 ac_lo= ac_hi=
11385 break
11387 ac_mid=`expr 2 '*' $ac_mid + 1`
11390 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11391 done
11392 else
11393 echo "$as_me: failed program was:" >&5
11394 sed 's/^/| /' conftest.$ac_ext >&5
11396 cat >conftest.$ac_ext <<_ACEOF
11397 /* confdefs.h. */
11398 _ACEOF
11399 cat confdefs.h >>conftest.$ac_ext
11400 cat >>conftest.$ac_ext <<_ACEOF
11401 /* end confdefs.h. */
11402 $ac_includes_default
11403 typedef long double ac__type_sizeof_;
11405 main ()
11407 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
11408 test_array [0] = 0
11411 return 0;
11413 _ACEOF
11414 rm -f conftest.$ac_objext
11415 if { (ac_try="$ac_compile"
11416 case "(($ac_try" in
11417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11418 *) ac_try_echo=$ac_try;;
11419 esac
11420 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11421 (eval "$ac_compile") 2>conftest.er1
11422 ac_status=$?
11423 grep -v '^ *+' conftest.er1 >conftest.err
11424 rm -f conftest.er1
11425 cat conftest.err >&5
11426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11427 (exit $ac_status); } && {
11428 test -z "$ac_c_werror_flag" ||
11429 test ! -s conftest.err
11430 } && test -s conftest.$ac_objext; then
11431 ac_hi=-1 ac_mid=-1
11432 while :; do
11433 cat >conftest.$ac_ext <<_ACEOF
11434 /* confdefs.h. */
11435 _ACEOF
11436 cat confdefs.h >>conftest.$ac_ext
11437 cat >>conftest.$ac_ext <<_ACEOF
11438 /* end confdefs.h. */
11439 $ac_includes_default
11440 typedef long double ac__type_sizeof_;
11442 main ()
11444 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
11445 test_array [0] = 0
11448 return 0;
11450 _ACEOF
11451 rm -f conftest.$ac_objext
11452 if { (ac_try="$ac_compile"
11453 case "(($ac_try" in
11454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11455 *) ac_try_echo=$ac_try;;
11456 esac
11457 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11458 (eval "$ac_compile") 2>conftest.er1
11459 ac_status=$?
11460 grep -v '^ *+' conftest.er1 >conftest.err
11461 rm -f conftest.er1
11462 cat conftest.err >&5
11463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11464 (exit $ac_status); } && {
11465 test -z "$ac_c_werror_flag" ||
11466 test ! -s conftest.err
11467 } && test -s conftest.$ac_objext; then
11468 ac_lo=$ac_mid; break
11469 else
11470 echo "$as_me: failed program was:" >&5
11471 sed 's/^/| /' conftest.$ac_ext >&5
11473 ac_hi=`expr '(' $ac_mid ')' - 1`
11474 if test $ac_mid -le $ac_hi; then
11475 ac_lo= ac_hi=
11476 break
11478 ac_mid=`expr 2 '*' $ac_mid`
11481 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11482 done
11483 else
11484 echo "$as_me: failed program was:" >&5
11485 sed 's/^/| /' conftest.$ac_ext >&5
11487 ac_lo= ac_hi=
11490 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11493 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11494 # Binary search between lo and hi bounds.
11495 while test "x$ac_lo" != "x$ac_hi"; do
11496 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
11497 cat >conftest.$ac_ext <<_ACEOF
11498 /* confdefs.h. */
11499 _ACEOF
11500 cat confdefs.h >>conftest.$ac_ext
11501 cat >>conftest.$ac_ext <<_ACEOF
11502 /* end confdefs.h. */
11503 $ac_includes_default
11504 typedef long double ac__type_sizeof_;
11506 main ()
11508 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
11509 test_array [0] = 0
11512 return 0;
11514 _ACEOF
11515 rm -f conftest.$ac_objext
11516 if { (ac_try="$ac_compile"
11517 case "(($ac_try" in
11518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11519 *) ac_try_echo=$ac_try;;
11520 esac
11521 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11522 (eval "$ac_compile") 2>conftest.er1
11523 ac_status=$?
11524 grep -v '^ *+' conftest.er1 >conftest.err
11525 rm -f conftest.er1
11526 cat conftest.err >&5
11527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11528 (exit $ac_status); } && {
11529 test -z "$ac_c_werror_flag" ||
11530 test ! -s conftest.err
11531 } && test -s conftest.$ac_objext; then
11532 ac_hi=$ac_mid
11533 else
11534 echo "$as_me: failed program was:" >&5
11535 sed 's/^/| /' conftest.$ac_ext >&5
11537 ac_lo=`expr '(' $ac_mid ')' + 1`
11540 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11541 done
11542 case $ac_lo in
11543 ?*) ac_cv_sizeof_long_double=$ac_lo;;
11544 '') if test "$ac_cv_type_long_double" = yes; then
11545 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long double)
11546 See \`config.log' for more details." >&5
11547 echo "$as_me: error: cannot compute sizeof (long double)
11548 See \`config.log' for more details." >&2;}
11549 { (exit 77); exit 77; }; }
11550 else
11551 ac_cv_sizeof_long_double=0
11552 fi ;;
11553 esac
11554 else
11555 cat >conftest.$ac_ext <<_ACEOF
11556 /* confdefs.h. */
11557 _ACEOF
11558 cat confdefs.h >>conftest.$ac_ext
11559 cat >>conftest.$ac_ext <<_ACEOF
11560 /* end confdefs.h. */
11561 $ac_includes_default
11562 typedef long double ac__type_sizeof_;
11563 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
11564 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
11565 #include <stdio.h>
11566 #include <stdlib.h>
11568 main ()
11571 FILE *f = fopen ("conftest.val", "w");
11572 if (! f)
11573 return 1;
11574 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
11576 long int i = longval ();
11577 if (i != ((long int) (sizeof (ac__type_sizeof_))))
11578 return 1;
11579 fprintf (f, "%ld\n", i);
11581 else
11583 unsigned long int i = ulongval ();
11584 if (i != ((long int) (sizeof (ac__type_sizeof_))))
11585 return 1;
11586 fprintf (f, "%lu\n", i);
11588 return ferror (f) || fclose (f) != 0;
11591 return 0;
11593 _ACEOF
11594 rm -f conftest$ac_exeext
11595 if { (ac_try="$ac_link"
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_link") 2>&5
11602 ac_status=$?
11603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11604 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11605 { (case "(($ac_try" in
11606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11607 *) ac_try_echo=$ac_try;;
11608 esac
11609 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11610 (eval "$ac_try") 2>&5
11611 ac_status=$?
11612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11613 (exit $ac_status); }; }; then
11614 ac_cv_sizeof_long_double=`cat conftest.val`
11615 else
11616 echo "$as_me: program exited with status $ac_status" >&5
11617 echo "$as_me: failed program was:" >&5
11618 sed 's/^/| /' conftest.$ac_ext >&5
11620 ( exit $ac_status )
11621 if test "$ac_cv_type_long_double" = yes; then
11622 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long double)
11623 See \`config.log' for more details." >&5
11624 echo "$as_me: error: cannot compute sizeof (long double)
11625 See \`config.log' for more details." >&2;}
11626 { (exit 77); exit 77; }; }
11627 else
11628 ac_cv_sizeof_long_double=0
11631 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11633 rm -f conftest.val
11635 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_double" >&5
11636 echo "${ECHO_T}$ac_cv_sizeof_long_double" >&6; }
11640 cat >>confdefs.h <<_ACEOF
11641 #define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double
11642 _ACEOF
11647 { echo "$as_me:$LINENO: checking for _Bool support" >&5
11648 echo $ECHO_N "checking for _Bool support... $ECHO_C" >&6; }
11649 have_c99_bool=no
11650 cat >conftest.$ac_ext <<_ACEOF
11651 /* confdefs.h. */
11652 _ACEOF
11653 cat confdefs.h >>conftest.$ac_ext
11654 cat >>conftest.$ac_ext <<_ACEOF
11655 /* end confdefs.h. */
11658 main ()
11660 _Bool x; x = (_Bool)0;
11662 return 0;
11664 _ACEOF
11665 rm -f conftest.$ac_objext
11666 if { (ac_try="$ac_compile"
11667 case "(($ac_try" in
11668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11669 *) ac_try_echo=$ac_try;;
11670 esac
11671 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11672 (eval "$ac_compile") 2>conftest.er1
11673 ac_status=$?
11674 grep -v '^ *+' conftest.er1 >conftest.err
11675 rm -f conftest.er1
11676 cat conftest.err >&5
11677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11678 (exit $ac_status); } && {
11679 test -z "$ac_c_werror_flag" ||
11680 test ! -s conftest.err
11681 } && test -s conftest.$ac_objext; then
11684 cat >>confdefs.h <<\_ACEOF
11685 #define HAVE_C99_BOOL 1
11686 _ACEOF
11688 have_c99_bool=yes
11690 else
11691 echo "$as_me: failed program was:" >&5
11692 sed 's/^/| /' conftest.$ac_ext >&5
11697 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11698 { echo "$as_me:$LINENO: result: $have_c99_bool" >&5
11699 echo "${ECHO_T}$have_c99_bool" >&6; }
11700 if test "$have_c99_bool" = yes ; then
11701 { echo "$as_me:$LINENO: checking for _Bool" >&5
11702 echo $ECHO_N "checking for _Bool... $ECHO_C" >&6; }
11703 if test "${ac_cv_type__Bool+set}" = set; then
11704 echo $ECHO_N "(cached) $ECHO_C" >&6
11705 else
11706 cat >conftest.$ac_ext <<_ACEOF
11707 /* confdefs.h. */
11708 _ACEOF
11709 cat confdefs.h >>conftest.$ac_ext
11710 cat >>conftest.$ac_ext <<_ACEOF
11711 /* end confdefs.h. */
11712 $ac_includes_default
11713 typedef _Bool ac__type_new_;
11715 main ()
11717 if ((ac__type_new_ *) 0)
11718 return 0;
11719 if (sizeof (ac__type_new_))
11720 return 0;
11722 return 0;
11724 _ACEOF
11725 rm -f conftest.$ac_objext
11726 if { (ac_try="$ac_compile"
11727 case "(($ac_try" in
11728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11729 *) ac_try_echo=$ac_try;;
11730 esac
11731 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11732 (eval "$ac_compile") 2>conftest.er1
11733 ac_status=$?
11734 grep -v '^ *+' conftest.er1 >conftest.err
11735 rm -f conftest.er1
11736 cat conftest.err >&5
11737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11738 (exit $ac_status); } && {
11739 test -z "$ac_c_werror_flag" ||
11740 test ! -s conftest.err
11741 } && test -s conftest.$ac_objext; then
11742 ac_cv_type__Bool=yes
11743 else
11744 echo "$as_me: failed program was:" >&5
11745 sed 's/^/| /' conftest.$ac_ext >&5
11747 ac_cv_type__Bool=no
11750 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11752 { echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5
11753 echo "${ECHO_T}$ac_cv_type__Bool" >&6; }
11755 # The cast to long int works around a bug in the HP C Compiler
11756 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11757 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11758 # This bug is HP SR number 8606223364.
11759 { echo "$as_me:$LINENO: checking size of _Bool" >&5
11760 echo $ECHO_N "checking size of _Bool... $ECHO_C" >&6; }
11761 if test "${ac_cv_sizeof__Bool+set}" = set; then
11762 echo $ECHO_N "(cached) $ECHO_C" >&6
11763 else
11764 if test "$cross_compiling" = yes; then
11765 # Depending upon the size, compute the lo and hi bounds.
11766 cat >conftest.$ac_ext <<_ACEOF
11767 /* confdefs.h. */
11768 _ACEOF
11769 cat confdefs.h >>conftest.$ac_ext
11770 cat >>conftest.$ac_ext <<_ACEOF
11771 /* end confdefs.h. */
11772 $ac_includes_default
11773 typedef _Bool ac__type_sizeof_;
11775 main ()
11777 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
11778 test_array [0] = 0
11781 return 0;
11783 _ACEOF
11784 rm -f conftest.$ac_objext
11785 if { (ac_try="$ac_compile"
11786 case "(($ac_try" in
11787 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11788 *) ac_try_echo=$ac_try;;
11789 esac
11790 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11791 (eval "$ac_compile") 2>conftest.er1
11792 ac_status=$?
11793 grep -v '^ *+' conftest.er1 >conftest.err
11794 rm -f conftest.er1
11795 cat conftest.err >&5
11796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11797 (exit $ac_status); } && {
11798 test -z "$ac_c_werror_flag" ||
11799 test ! -s conftest.err
11800 } && test -s conftest.$ac_objext; then
11801 ac_lo=0 ac_mid=0
11802 while :; do
11803 cat >conftest.$ac_ext <<_ACEOF
11804 /* confdefs.h. */
11805 _ACEOF
11806 cat confdefs.h >>conftest.$ac_ext
11807 cat >>conftest.$ac_ext <<_ACEOF
11808 /* end confdefs.h. */
11809 $ac_includes_default
11810 typedef _Bool ac__type_sizeof_;
11812 main ()
11814 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
11815 test_array [0] = 0
11818 return 0;
11820 _ACEOF
11821 rm -f conftest.$ac_objext
11822 if { (ac_try="$ac_compile"
11823 case "(($ac_try" in
11824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11825 *) ac_try_echo=$ac_try;;
11826 esac
11827 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11828 (eval "$ac_compile") 2>conftest.er1
11829 ac_status=$?
11830 grep -v '^ *+' conftest.er1 >conftest.err
11831 rm -f conftest.er1
11832 cat conftest.err >&5
11833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11834 (exit $ac_status); } && {
11835 test -z "$ac_c_werror_flag" ||
11836 test ! -s conftest.err
11837 } && test -s conftest.$ac_objext; then
11838 ac_hi=$ac_mid; break
11839 else
11840 echo "$as_me: failed program was:" >&5
11841 sed 's/^/| /' conftest.$ac_ext >&5
11843 ac_lo=`expr $ac_mid + 1`
11844 if test $ac_lo -le $ac_mid; then
11845 ac_lo= ac_hi=
11846 break
11848 ac_mid=`expr 2 '*' $ac_mid + 1`
11851 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11852 done
11853 else
11854 echo "$as_me: failed program was:" >&5
11855 sed 's/^/| /' conftest.$ac_ext >&5
11857 cat >conftest.$ac_ext <<_ACEOF
11858 /* confdefs.h. */
11859 _ACEOF
11860 cat confdefs.h >>conftest.$ac_ext
11861 cat >>conftest.$ac_ext <<_ACEOF
11862 /* end confdefs.h. */
11863 $ac_includes_default
11864 typedef _Bool ac__type_sizeof_;
11866 main ()
11868 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
11869 test_array [0] = 0
11872 return 0;
11874 _ACEOF
11875 rm -f conftest.$ac_objext
11876 if { (ac_try="$ac_compile"
11877 case "(($ac_try" in
11878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11879 *) ac_try_echo=$ac_try;;
11880 esac
11881 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11882 (eval "$ac_compile") 2>conftest.er1
11883 ac_status=$?
11884 grep -v '^ *+' conftest.er1 >conftest.err
11885 rm -f conftest.er1
11886 cat conftest.err >&5
11887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11888 (exit $ac_status); } && {
11889 test -z "$ac_c_werror_flag" ||
11890 test ! -s conftest.err
11891 } && test -s conftest.$ac_objext; then
11892 ac_hi=-1 ac_mid=-1
11893 while :; do
11894 cat >conftest.$ac_ext <<_ACEOF
11895 /* confdefs.h. */
11896 _ACEOF
11897 cat confdefs.h >>conftest.$ac_ext
11898 cat >>conftest.$ac_ext <<_ACEOF
11899 /* end confdefs.h. */
11900 $ac_includes_default
11901 typedef _Bool ac__type_sizeof_;
11903 main ()
11905 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
11906 test_array [0] = 0
11909 return 0;
11911 _ACEOF
11912 rm -f conftest.$ac_objext
11913 if { (ac_try="$ac_compile"
11914 case "(($ac_try" in
11915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11916 *) ac_try_echo=$ac_try;;
11917 esac
11918 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11919 (eval "$ac_compile") 2>conftest.er1
11920 ac_status=$?
11921 grep -v '^ *+' conftest.er1 >conftest.err
11922 rm -f conftest.er1
11923 cat conftest.err >&5
11924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11925 (exit $ac_status); } && {
11926 test -z "$ac_c_werror_flag" ||
11927 test ! -s conftest.err
11928 } && test -s conftest.$ac_objext; then
11929 ac_lo=$ac_mid; break
11930 else
11931 echo "$as_me: failed program was:" >&5
11932 sed 's/^/| /' conftest.$ac_ext >&5
11934 ac_hi=`expr '(' $ac_mid ')' - 1`
11935 if test $ac_mid -le $ac_hi; then
11936 ac_lo= ac_hi=
11937 break
11939 ac_mid=`expr 2 '*' $ac_mid`
11942 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11943 done
11944 else
11945 echo "$as_me: failed program was:" >&5
11946 sed 's/^/| /' conftest.$ac_ext >&5
11948 ac_lo= ac_hi=
11951 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11954 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11955 # Binary search between lo and hi bounds.
11956 while test "x$ac_lo" != "x$ac_hi"; do
11957 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
11958 cat >conftest.$ac_ext <<_ACEOF
11959 /* confdefs.h. */
11960 _ACEOF
11961 cat confdefs.h >>conftest.$ac_ext
11962 cat >>conftest.$ac_ext <<_ACEOF
11963 /* end confdefs.h. */
11964 $ac_includes_default
11965 typedef _Bool ac__type_sizeof_;
11967 main ()
11969 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
11970 test_array [0] = 0
11973 return 0;
11975 _ACEOF
11976 rm -f conftest.$ac_objext
11977 if { (ac_try="$ac_compile"
11978 case "(($ac_try" in
11979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11980 *) ac_try_echo=$ac_try;;
11981 esac
11982 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11983 (eval "$ac_compile") 2>conftest.er1
11984 ac_status=$?
11985 grep -v '^ *+' conftest.er1 >conftest.err
11986 rm -f conftest.er1
11987 cat conftest.err >&5
11988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11989 (exit $ac_status); } && {
11990 test -z "$ac_c_werror_flag" ||
11991 test ! -s conftest.err
11992 } && test -s conftest.$ac_objext; then
11993 ac_hi=$ac_mid
11994 else
11995 echo "$as_me: failed program was:" >&5
11996 sed 's/^/| /' conftest.$ac_ext >&5
11998 ac_lo=`expr '(' $ac_mid ')' + 1`
12001 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12002 done
12003 case $ac_lo in
12004 ?*) ac_cv_sizeof__Bool=$ac_lo;;
12005 '') if test "$ac_cv_type__Bool" = yes; then
12006 { { echo "$as_me:$LINENO: error: cannot compute sizeof (_Bool)
12007 See \`config.log' for more details." >&5
12008 echo "$as_me: error: cannot compute sizeof (_Bool)
12009 See \`config.log' for more details." >&2;}
12010 { (exit 77); exit 77; }; }
12011 else
12012 ac_cv_sizeof__Bool=0
12013 fi ;;
12014 esac
12015 else
12016 cat >conftest.$ac_ext <<_ACEOF
12017 /* confdefs.h. */
12018 _ACEOF
12019 cat confdefs.h >>conftest.$ac_ext
12020 cat >>conftest.$ac_ext <<_ACEOF
12021 /* end confdefs.h. */
12022 $ac_includes_default
12023 typedef _Bool ac__type_sizeof_;
12024 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
12025 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
12026 #include <stdio.h>
12027 #include <stdlib.h>
12029 main ()
12032 FILE *f = fopen ("conftest.val", "w");
12033 if (! f)
12034 return 1;
12035 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
12037 long int i = longval ();
12038 if (i != ((long int) (sizeof (ac__type_sizeof_))))
12039 return 1;
12040 fprintf (f, "%ld\n", i);
12042 else
12044 unsigned long int i = ulongval ();
12045 if (i != ((long int) (sizeof (ac__type_sizeof_))))
12046 return 1;
12047 fprintf (f, "%lu\n", i);
12049 return ferror (f) || fclose (f) != 0;
12052 return 0;
12054 _ACEOF
12055 rm -f conftest$ac_exeext
12056 if { (ac_try="$ac_link"
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_link") 2>&5
12063 ac_status=$?
12064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12065 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12066 { (case "(($ac_try" in
12067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12068 *) ac_try_echo=$ac_try;;
12069 esac
12070 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12071 (eval "$ac_try") 2>&5
12072 ac_status=$?
12073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12074 (exit $ac_status); }; }; then
12075 ac_cv_sizeof__Bool=`cat conftest.val`
12076 else
12077 echo "$as_me: program exited with status $ac_status" >&5
12078 echo "$as_me: failed program was:" >&5
12079 sed 's/^/| /' conftest.$ac_ext >&5
12081 ( exit $ac_status )
12082 if test "$ac_cv_type__Bool" = yes; then
12083 { { echo "$as_me:$LINENO: error: cannot compute sizeof (_Bool)
12084 See \`config.log' for more details." >&5
12085 echo "$as_me: error: cannot compute sizeof (_Bool)
12086 See \`config.log' for more details." >&2;}
12087 { (exit 77); exit 77; }; }
12088 else
12089 ac_cv_sizeof__Bool=0
12092 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12094 rm -f conftest.val
12096 { echo "$as_me:$LINENO: result: $ac_cv_sizeof__Bool" >&5
12097 echo "${ECHO_T}$ac_cv_sizeof__Bool" >&6; }
12101 cat >>confdefs.h <<_ACEOF
12102 #define SIZEOF__BOOL $ac_cv_sizeof__Bool
12103 _ACEOF
12108 { echo "$as_me:$LINENO: checking for uintptr_t" >&5
12109 echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6; }
12110 if test "${ac_cv_type_uintptr_t+set}" = set; then
12111 echo $ECHO_N "(cached) $ECHO_C" >&6
12112 else
12113 cat >conftest.$ac_ext <<_ACEOF
12114 /* confdefs.h. */
12115 _ACEOF
12116 cat confdefs.h >>conftest.$ac_ext
12117 cat >>conftest.$ac_ext <<_ACEOF
12118 /* end confdefs.h. */
12119 #ifdef HAVE_STDINT_H
12120 #include <stdint.h>
12121 #endif
12123 typedef uintptr_t ac__type_new_;
12125 main ()
12127 if ((ac__type_new_ *) 0)
12128 return 0;
12129 if (sizeof (ac__type_new_))
12130 return 0;
12132 return 0;
12134 _ACEOF
12135 rm -f conftest.$ac_objext
12136 if { (ac_try="$ac_compile"
12137 case "(($ac_try" in
12138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12139 *) ac_try_echo=$ac_try;;
12140 esac
12141 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12142 (eval "$ac_compile") 2>conftest.er1
12143 ac_status=$?
12144 grep -v '^ *+' conftest.er1 >conftest.err
12145 rm -f conftest.er1
12146 cat conftest.err >&5
12147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12148 (exit $ac_status); } && {
12149 test -z "$ac_c_werror_flag" ||
12150 test ! -s conftest.err
12151 } && test -s conftest.$ac_objext; then
12152 ac_cv_type_uintptr_t=yes
12153 else
12154 echo "$as_me: failed program was:" >&5
12155 sed 's/^/| /' conftest.$ac_ext >&5
12157 ac_cv_type_uintptr_t=no
12160 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12162 { echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
12163 echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6; }
12164 if test $ac_cv_type_uintptr_t = yes; then
12166 cat >>confdefs.h <<_ACEOF
12167 #define HAVE_UINTPTR_T 1
12168 _ACEOF
12170 { echo "$as_me:$LINENO: checking for uintptr_t" >&5
12171 echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6; }
12172 if test "${ac_cv_type_uintptr_t+set}" = set; then
12173 echo $ECHO_N "(cached) $ECHO_C" >&6
12174 else
12175 cat >conftest.$ac_ext <<_ACEOF
12176 /* confdefs.h. */
12177 _ACEOF
12178 cat confdefs.h >>conftest.$ac_ext
12179 cat >>conftest.$ac_ext <<_ACEOF
12180 /* end confdefs.h. */
12181 $ac_includes_default
12182 typedef uintptr_t ac__type_new_;
12184 main ()
12186 if ((ac__type_new_ *) 0)
12187 return 0;
12188 if (sizeof (ac__type_new_))
12189 return 0;
12191 return 0;
12193 _ACEOF
12194 rm -f conftest.$ac_objext
12195 if { (ac_try="$ac_compile"
12196 case "(($ac_try" in
12197 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12198 *) ac_try_echo=$ac_try;;
12199 esac
12200 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12201 (eval "$ac_compile") 2>conftest.er1
12202 ac_status=$?
12203 grep -v '^ *+' conftest.er1 >conftest.err
12204 rm -f conftest.er1
12205 cat conftest.err >&5
12206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12207 (exit $ac_status); } && {
12208 test -z "$ac_c_werror_flag" ||
12209 test ! -s conftest.err
12210 } && test -s conftest.$ac_objext; then
12211 ac_cv_type_uintptr_t=yes
12212 else
12213 echo "$as_me: failed program was:" >&5
12214 sed 's/^/| /' conftest.$ac_ext >&5
12216 ac_cv_type_uintptr_t=no
12219 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12221 { echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
12222 echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6; }
12224 # The cast to long int works around a bug in the HP C Compiler
12225 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12226 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12227 # This bug is HP SR number 8606223364.
12228 { echo "$as_me:$LINENO: checking size of uintptr_t" >&5
12229 echo $ECHO_N "checking size of uintptr_t... $ECHO_C" >&6; }
12230 if test "${ac_cv_sizeof_uintptr_t+set}" = set; then
12231 echo $ECHO_N "(cached) $ECHO_C" >&6
12232 else
12233 if test "$cross_compiling" = yes; then
12234 # Depending upon the size, compute the lo and hi bounds.
12235 cat >conftest.$ac_ext <<_ACEOF
12236 /* confdefs.h. */
12237 _ACEOF
12238 cat confdefs.h >>conftest.$ac_ext
12239 cat >>conftest.$ac_ext <<_ACEOF
12240 /* end confdefs.h. */
12241 $ac_includes_default
12242 typedef uintptr_t ac__type_sizeof_;
12244 main ()
12246 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
12247 test_array [0] = 0
12250 return 0;
12252 _ACEOF
12253 rm -f conftest.$ac_objext
12254 if { (ac_try="$ac_compile"
12255 case "(($ac_try" in
12256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12257 *) ac_try_echo=$ac_try;;
12258 esac
12259 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12260 (eval "$ac_compile") 2>conftest.er1
12261 ac_status=$?
12262 grep -v '^ *+' conftest.er1 >conftest.err
12263 rm -f conftest.er1
12264 cat conftest.err >&5
12265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12266 (exit $ac_status); } && {
12267 test -z "$ac_c_werror_flag" ||
12268 test ! -s conftest.err
12269 } && test -s conftest.$ac_objext; then
12270 ac_lo=0 ac_mid=0
12271 while :; do
12272 cat >conftest.$ac_ext <<_ACEOF
12273 /* confdefs.h. */
12274 _ACEOF
12275 cat confdefs.h >>conftest.$ac_ext
12276 cat >>conftest.$ac_ext <<_ACEOF
12277 /* end confdefs.h. */
12278 $ac_includes_default
12279 typedef uintptr_t ac__type_sizeof_;
12281 main ()
12283 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
12284 test_array [0] = 0
12287 return 0;
12289 _ACEOF
12290 rm -f conftest.$ac_objext
12291 if { (ac_try="$ac_compile"
12292 case "(($ac_try" in
12293 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12294 *) ac_try_echo=$ac_try;;
12295 esac
12296 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12297 (eval "$ac_compile") 2>conftest.er1
12298 ac_status=$?
12299 grep -v '^ *+' conftest.er1 >conftest.err
12300 rm -f conftest.er1
12301 cat conftest.err >&5
12302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12303 (exit $ac_status); } && {
12304 test -z "$ac_c_werror_flag" ||
12305 test ! -s conftest.err
12306 } && test -s conftest.$ac_objext; then
12307 ac_hi=$ac_mid; break
12308 else
12309 echo "$as_me: failed program was:" >&5
12310 sed 's/^/| /' conftest.$ac_ext >&5
12312 ac_lo=`expr $ac_mid + 1`
12313 if test $ac_lo -le $ac_mid; then
12314 ac_lo= ac_hi=
12315 break
12317 ac_mid=`expr 2 '*' $ac_mid + 1`
12320 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12321 done
12322 else
12323 echo "$as_me: failed program was:" >&5
12324 sed 's/^/| /' conftest.$ac_ext >&5
12326 cat >conftest.$ac_ext <<_ACEOF
12327 /* confdefs.h. */
12328 _ACEOF
12329 cat confdefs.h >>conftest.$ac_ext
12330 cat >>conftest.$ac_ext <<_ACEOF
12331 /* end confdefs.h. */
12332 $ac_includes_default
12333 typedef uintptr_t ac__type_sizeof_;
12335 main ()
12337 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
12338 test_array [0] = 0
12341 return 0;
12343 _ACEOF
12344 rm -f conftest.$ac_objext
12345 if { (ac_try="$ac_compile"
12346 case "(($ac_try" in
12347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12348 *) ac_try_echo=$ac_try;;
12349 esac
12350 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12351 (eval "$ac_compile") 2>conftest.er1
12352 ac_status=$?
12353 grep -v '^ *+' conftest.er1 >conftest.err
12354 rm -f conftest.er1
12355 cat conftest.err >&5
12356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12357 (exit $ac_status); } && {
12358 test -z "$ac_c_werror_flag" ||
12359 test ! -s conftest.err
12360 } && test -s conftest.$ac_objext; then
12361 ac_hi=-1 ac_mid=-1
12362 while :; do
12363 cat >conftest.$ac_ext <<_ACEOF
12364 /* confdefs.h. */
12365 _ACEOF
12366 cat confdefs.h >>conftest.$ac_ext
12367 cat >>conftest.$ac_ext <<_ACEOF
12368 /* end confdefs.h. */
12369 $ac_includes_default
12370 typedef uintptr_t ac__type_sizeof_;
12372 main ()
12374 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
12375 test_array [0] = 0
12378 return 0;
12380 _ACEOF
12381 rm -f conftest.$ac_objext
12382 if { (ac_try="$ac_compile"
12383 case "(($ac_try" in
12384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12385 *) ac_try_echo=$ac_try;;
12386 esac
12387 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12388 (eval "$ac_compile") 2>conftest.er1
12389 ac_status=$?
12390 grep -v '^ *+' conftest.er1 >conftest.err
12391 rm -f conftest.er1
12392 cat conftest.err >&5
12393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12394 (exit $ac_status); } && {
12395 test -z "$ac_c_werror_flag" ||
12396 test ! -s conftest.err
12397 } && test -s conftest.$ac_objext; then
12398 ac_lo=$ac_mid; break
12399 else
12400 echo "$as_me: failed program was:" >&5
12401 sed 's/^/| /' conftest.$ac_ext >&5
12403 ac_hi=`expr '(' $ac_mid ')' - 1`
12404 if test $ac_mid -le $ac_hi; then
12405 ac_lo= ac_hi=
12406 break
12408 ac_mid=`expr 2 '*' $ac_mid`
12411 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12412 done
12413 else
12414 echo "$as_me: failed program was:" >&5
12415 sed 's/^/| /' conftest.$ac_ext >&5
12417 ac_lo= ac_hi=
12420 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12423 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12424 # Binary search between lo and hi bounds.
12425 while test "x$ac_lo" != "x$ac_hi"; do
12426 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12427 cat >conftest.$ac_ext <<_ACEOF
12428 /* confdefs.h. */
12429 _ACEOF
12430 cat confdefs.h >>conftest.$ac_ext
12431 cat >>conftest.$ac_ext <<_ACEOF
12432 /* end confdefs.h. */
12433 $ac_includes_default
12434 typedef uintptr_t ac__type_sizeof_;
12436 main ()
12438 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
12439 test_array [0] = 0
12442 return 0;
12444 _ACEOF
12445 rm -f conftest.$ac_objext
12446 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
12453 ac_status=$?
12454 grep -v '^ *+' conftest.er1 >conftest.err
12455 rm -f conftest.er1
12456 cat conftest.err >&5
12457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12458 (exit $ac_status); } && {
12459 test -z "$ac_c_werror_flag" ||
12460 test ! -s conftest.err
12461 } && test -s conftest.$ac_objext; then
12462 ac_hi=$ac_mid
12463 else
12464 echo "$as_me: failed program was:" >&5
12465 sed 's/^/| /' conftest.$ac_ext >&5
12467 ac_lo=`expr '(' $ac_mid ')' + 1`
12470 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12471 done
12472 case $ac_lo in
12473 ?*) ac_cv_sizeof_uintptr_t=$ac_lo;;
12474 '') if test "$ac_cv_type_uintptr_t" = yes; then
12475 { { echo "$as_me:$LINENO: error: cannot compute sizeof (uintptr_t)
12476 See \`config.log' for more details." >&5
12477 echo "$as_me: error: cannot compute sizeof (uintptr_t)
12478 See \`config.log' for more details." >&2;}
12479 { (exit 77); exit 77; }; }
12480 else
12481 ac_cv_sizeof_uintptr_t=0
12482 fi ;;
12483 esac
12484 else
12485 cat >conftest.$ac_ext <<_ACEOF
12486 /* confdefs.h. */
12487 _ACEOF
12488 cat confdefs.h >>conftest.$ac_ext
12489 cat >>conftest.$ac_ext <<_ACEOF
12490 /* end confdefs.h. */
12491 $ac_includes_default
12492 typedef uintptr_t ac__type_sizeof_;
12493 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
12494 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
12495 #include <stdio.h>
12496 #include <stdlib.h>
12498 main ()
12501 FILE *f = fopen ("conftest.val", "w");
12502 if (! f)
12503 return 1;
12504 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
12506 long int i = longval ();
12507 if (i != ((long int) (sizeof (ac__type_sizeof_))))
12508 return 1;
12509 fprintf (f, "%ld\n", i);
12511 else
12513 unsigned long int i = ulongval ();
12514 if (i != ((long int) (sizeof (ac__type_sizeof_))))
12515 return 1;
12516 fprintf (f, "%lu\n", i);
12518 return ferror (f) || fclose (f) != 0;
12521 return 0;
12523 _ACEOF
12524 rm -f conftest$ac_exeext
12525 if { (ac_try="$ac_link"
12526 case "(($ac_try" in
12527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12528 *) ac_try_echo=$ac_try;;
12529 esac
12530 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12531 (eval "$ac_link") 2>&5
12532 ac_status=$?
12533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12534 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12535 { (case "(($ac_try" in
12536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12537 *) ac_try_echo=$ac_try;;
12538 esac
12539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12540 (eval "$ac_try") 2>&5
12541 ac_status=$?
12542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12543 (exit $ac_status); }; }; then
12544 ac_cv_sizeof_uintptr_t=`cat conftest.val`
12545 else
12546 echo "$as_me: program exited with status $ac_status" >&5
12547 echo "$as_me: failed program was:" >&5
12548 sed 's/^/| /' conftest.$ac_ext >&5
12550 ( exit $ac_status )
12551 if test "$ac_cv_type_uintptr_t" = yes; then
12552 { { echo "$as_me:$LINENO: error: cannot compute sizeof (uintptr_t)
12553 See \`config.log' for more details." >&5
12554 echo "$as_me: error: cannot compute sizeof (uintptr_t)
12555 See \`config.log' for more details." >&2;}
12556 { (exit 77); exit 77; }; }
12557 else
12558 ac_cv_sizeof_uintptr_t=0
12561 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12563 rm -f conftest.val
12565 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_uintptr_t" >&5
12566 echo "${ECHO_T}$ac_cv_sizeof_uintptr_t" >&6; }
12570 cat >>confdefs.h <<_ACEOF
12571 #define SIZEOF_UINTPTR_T $ac_cv_sizeof_uintptr_t
12572 _ACEOF
12579 # Hmph. AC_CHECK_SIZEOF() doesn't include <sys/types.h>.
12580 { echo "$as_me:$LINENO: checking size of off_t" >&5
12581 echo $ECHO_N "checking size of off_t... $ECHO_C" >&6; }
12582 if test "${ac_cv_sizeof_off_t+set}" = set; then
12583 echo $ECHO_N "(cached) $ECHO_C" >&6
12584 else
12585 if test "$cross_compiling" = yes; then
12586 ac_cv_sizeof_off_t=4
12587 else
12588 cat >conftest.$ac_ext <<_ACEOF
12589 /* confdefs.h. */
12590 _ACEOF
12591 cat confdefs.h >>conftest.$ac_ext
12592 cat >>conftest.$ac_ext <<_ACEOF
12593 /* end confdefs.h. */
12594 #include <stdio.h>
12595 #include <sys/types.h>
12596 main()
12598 FILE *f=fopen("conftestval", "w");
12599 if (!f) exit(1);
12600 fprintf(f, "%d\n", sizeof(off_t));
12601 exit(0);
12603 _ACEOF
12604 rm -f conftest$ac_exeext
12605 if { (ac_try="$ac_link"
12606 case "(($ac_try" in
12607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12608 *) ac_try_echo=$ac_try;;
12609 esac
12610 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12611 (eval "$ac_link") 2>&5
12612 ac_status=$?
12613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12614 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12615 { (case "(($ac_try" in
12616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12617 *) ac_try_echo=$ac_try;;
12618 esac
12619 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12620 (eval "$ac_try") 2>&5
12621 ac_status=$?
12622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12623 (exit $ac_status); }; }; then
12624 ac_cv_sizeof_off_t=`cat conftestval`
12625 else
12626 echo "$as_me: program exited with status $ac_status" >&5
12627 echo "$as_me: failed program was:" >&5
12628 sed 's/^/| /' conftest.$ac_ext >&5
12630 ( exit $ac_status )
12631 ac_cv_sizeof_off_t=0
12633 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12640 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_off_t" >&5
12641 echo "${ECHO_T}$ac_cv_sizeof_off_t" >&6; }
12643 cat >>confdefs.h <<_ACEOF
12644 #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
12645 _ACEOF
12648 { echo "$as_me:$LINENO: checking whether to enable large file support" >&5
12649 echo $ECHO_N "checking whether to enable large file support... $ECHO_C" >&6; }
12650 if test "$have_long_long" = yes -a \
12651 "$ac_cv_sizeof_off_t" -gt "$ac_cv_sizeof_long" -a \
12652 "$ac_cv_sizeof_long_long" -ge "$ac_cv_sizeof_off_t"; then
12654 cat >>confdefs.h <<\_ACEOF
12655 #define HAVE_LARGEFILE_SUPPORT 1
12656 _ACEOF
12658 { echo "$as_me:$LINENO: result: yes" >&5
12659 echo "${ECHO_T}yes" >&6; }
12660 else
12661 { echo "$as_me:$LINENO: result: no" >&5
12662 echo "${ECHO_T}no" >&6; }
12665 # AC_CHECK_SIZEOF() doesn't include <time.h>.
12666 { echo "$as_me:$LINENO: checking size of time_t" >&5
12667 echo $ECHO_N "checking size of time_t... $ECHO_C" >&6; }
12668 if test "${ac_cv_sizeof_time_t+set}" = set; then
12669 echo $ECHO_N "(cached) $ECHO_C" >&6
12670 else
12671 if test "$cross_compiling" = yes; then
12672 ac_cv_sizeof_time_t=4
12673 else
12674 cat >conftest.$ac_ext <<_ACEOF
12675 /* confdefs.h. */
12676 _ACEOF
12677 cat confdefs.h >>conftest.$ac_ext
12678 cat >>conftest.$ac_ext <<_ACEOF
12679 /* end confdefs.h. */
12680 #include <stdio.h>
12681 #include <time.h>
12682 main()
12684 FILE *f=fopen("conftestval", "w");
12685 if (!f) exit(1);
12686 fprintf(f, "%d\n", sizeof(time_t));
12687 exit(0);
12689 _ACEOF
12690 rm -f conftest$ac_exeext
12691 if { (ac_try="$ac_link"
12692 case "(($ac_try" in
12693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12694 *) ac_try_echo=$ac_try;;
12695 esac
12696 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12697 (eval "$ac_link") 2>&5
12698 ac_status=$?
12699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12700 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12701 { (case "(($ac_try" in
12702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12703 *) ac_try_echo=$ac_try;;
12704 esac
12705 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12706 (eval "$ac_try") 2>&5
12707 ac_status=$?
12708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12709 (exit $ac_status); }; }; then
12710 ac_cv_sizeof_time_t=`cat conftestval`
12711 else
12712 echo "$as_me: program exited with status $ac_status" >&5
12713 echo "$as_me: failed program was:" >&5
12714 sed 's/^/| /' conftest.$ac_ext >&5
12716 ( exit $ac_status )
12717 ac_cv_sizeof_time_t=0
12719 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12726 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_time_t" >&5
12727 echo "${ECHO_T}$ac_cv_sizeof_time_t" >&6; }
12729 cat >>confdefs.h <<_ACEOF
12730 #define SIZEOF_TIME_T $ac_cv_sizeof_time_t
12731 _ACEOF
12735 # if have pthread_t then define SIZEOF_PTHREAD_T
12736 ac_save_cc="$CC"
12737 if test "$ac_cv_kpthread" = "yes"
12738 then CC="$CC -Kpthread"
12739 elif test "$ac_cv_kthread" = "yes"
12740 then CC="$CC -Kthread"
12741 elif test "$ac_cv_pthread" = "yes"
12742 then CC="$CC -pthread"
12744 { echo "$as_me:$LINENO: checking for pthread_t" >&5
12745 echo $ECHO_N "checking for pthread_t... $ECHO_C" >&6; }
12746 have_pthread_t=no
12747 cat >conftest.$ac_ext <<_ACEOF
12748 /* confdefs.h. */
12749 _ACEOF
12750 cat confdefs.h >>conftest.$ac_ext
12751 cat >>conftest.$ac_ext <<_ACEOF
12752 /* end confdefs.h. */
12753 #include <pthread.h>
12755 main ()
12757 pthread_t x; x = *(pthread_t*)0;
12759 return 0;
12761 _ACEOF
12762 rm -f conftest.$ac_objext
12763 if { (ac_try="$ac_compile"
12764 case "(($ac_try" in
12765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12766 *) ac_try_echo=$ac_try;;
12767 esac
12768 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12769 (eval "$ac_compile") 2>conftest.er1
12770 ac_status=$?
12771 grep -v '^ *+' conftest.er1 >conftest.err
12772 rm -f conftest.er1
12773 cat conftest.err >&5
12774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12775 (exit $ac_status); } && {
12776 test -z "$ac_c_werror_flag" ||
12777 test ! -s conftest.err
12778 } && test -s conftest.$ac_objext; then
12779 have_pthread_t=yes
12780 else
12781 echo "$as_me: failed program was:" >&5
12782 sed 's/^/| /' conftest.$ac_ext >&5
12787 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12788 { echo "$as_me:$LINENO: result: $have_pthread_t" >&5
12789 echo "${ECHO_T}$have_pthread_t" >&6; }
12790 if test "$have_pthread_t" = yes ; then
12791 # AC_CHECK_SIZEOF() doesn't include <pthread.h>.
12792 { echo "$as_me:$LINENO: checking size of pthread_t" >&5
12793 echo $ECHO_N "checking size of pthread_t... $ECHO_C" >&6; }
12794 if test "${ac_cv_sizeof_pthread_t+set}" = set; then
12795 echo $ECHO_N "(cached) $ECHO_C" >&6
12796 else
12797 if test "$cross_compiling" = yes; then
12798 ac_cv_sizeof_pthread_t=4
12799 else
12800 cat >conftest.$ac_ext <<_ACEOF
12801 /* confdefs.h. */
12802 _ACEOF
12803 cat confdefs.h >>conftest.$ac_ext
12804 cat >>conftest.$ac_ext <<_ACEOF
12805 /* end confdefs.h. */
12806 #include <stdio.h>
12807 #include <pthread.h>
12808 main()
12810 FILE *f=fopen("conftestval", "w");
12811 if (!f) exit(1);
12812 fprintf(f, "%d\n", sizeof(pthread_t));
12813 exit(0);
12815 _ACEOF
12816 rm -f conftest$ac_exeext
12817 if { (ac_try="$ac_link"
12818 case "(($ac_try" in
12819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12820 *) ac_try_echo=$ac_try;;
12821 esac
12822 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12823 (eval "$ac_link") 2>&5
12824 ac_status=$?
12825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12826 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12827 { (case "(($ac_try" in
12828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12829 *) ac_try_echo=$ac_try;;
12830 esac
12831 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12832 (eval "$ac_try") 2>&5
12833 ac_status=$?
12834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12835 (exit $ac_status); }; }; then
12836 ac_cv_sizeof_pthread_t=`cat conftestval`
12837 else
12838 echo "$as_me: program exited with status $ac_status" >&5
12839 echo "$as_me: failed program was:" >&5
12840 sed 's/^/| /' conftest.$ac_ext >&5
12842 ( exit $ac_status )
12843 ac_cv_sizeof_pthread_t=0
12845 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12852 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_pthread_t" >&5
12853 echo "${ECHO_T}$ac_cv_sizeof_pthread_t" >&6; }
12855 cat >>confdefs.h <<_ACEOF
12856 #define SIZEOF_PTHREAD_T $ac_cv_sizeof_pthread_t
12857 _ACEOF
12860 CC="$ac_save_cc"
12862 { echo "$as_me:$LINENO: checking for --enable-toolbox-glue" >&5
12863 echo $ECHO_N "checking for --enable-toolbox-glue... $ECHO_C" >&6; }
12864 # Check whether --enable-toolbox-glue was given.
12865 if test "${enable_toolbox_glue+set}" = set; then
12866 enableval=$enable_toolbox_glue;
12870 if test -z "$enable_toolbox_glue"
12871 then
12872 case $ac_sys_system/$ac_sys_release in
12873 Darwin/*)
12874 enable_toolbox_glue="yes";;
12876 enable_toolbox_glue="no";;
12877 esac
12879 case "$enable_toolbox_glue" in
12880 yes)
12881 extra_machdep_objs="Python/mactoolboxglue.o"
12882 extra_undefs="-u _PyMac_Error"
12884 cat >>confdefs.h <<\_ACEOF
12885 #define USE_TOOLBOX_OBJECT_GLUE 1
12886 _ACEOF
12890 extra_machdep_objs=""
12891 extra_undefs=""
12893 esac
12894 { echo "$as_me:$LINENO: result: $enable_toolbox_glue" >&5
12895 echo "${ECHO_T}$enable_toolbox_glue" >&6; }
12899 case $ac_sys_system/$ac_sys_release in
12900 Darwin/[01567]\..*)
12901 OTHER_LIBTOOL_OPT="-prebind -seg1addr 0x10000000"
12903 Darwin/*)
12904 OTHER_LIBTOOL_OPT=""
12906 esac
12909 case $ac_sys_system/$ac_sys_release in
12910 Darwin/[01567]\..*)
12911 LIBTOOL_CRUFT="-framework System -lcc_dynamic"
12912 if test "${enable_universalsdk}"; then
12914 else
12915 LIBTOOL_CRUFT="${LIBTOOL_CRUFT} -arch_only `arch`"
12917 LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -install_name $(PYTHONFRAMEWORKINSTALLDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
12918 LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -compatibility_version $(VERSION) -current_version $(VERSION)';;
12919 Darwin/*)
12920 gcc_version=`gcc -v 2>&1 | grep version | cut -d\ -f3`
12921 if test ${gcc_version} '<' 4.0
12922 then
12923 LIBTOOL_CRUFT="-lcc_dynamic"
12924 else
12925 LIBTOOL_CRUFT=""
12927 LIBTOOL_CRUFT=$LIBTOOL_CRUFT" -lSystem -lSystemStubs -arch_only `arch`"
12928 LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -install_name $(PYTHONFRAMEWORKINSTALLDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
12929 LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -compatibility_version $(VERSION) -current_version $(VERSION)';;
12930 esac
12932 { echo "$as_me:$LINENO: checking for --enable-framework" >&5
12933 echo $ECHO_N "checking for --enable-framework... $ECHO_C" >&6; }
12934 if test "$enable_framework"
12935 then
12936 BASECFLAGS="$BASECFLAGS -fno-common -dynamic"
12937 # -F. is needed to allow linking to the framework while
12938 # in the build location.
12940 cat >>confdefs.h <<\_ACEOF
12941 #define WITH_NEXT_FRAMEWORK 1
12942 _ACEOF
12944 { echo "$as_me:$LINENO: result: yes" >&5
12945 echo "${ECHO_T}yes" >&6; }
12946 else
12947 { echo "$as_me:$LINENO: result: no" >&5
12948 echo "${ECHO_T}no" >&6; }
12951 { echo "$as_me:$LINENO: checking for dyld" >&5
12952 echo $ECHO_N "checking for dyld... $ECHO_C" >&6; }
12953 case $ac_sys_system/$ac_sys_release in
12954 Darwin/*)
12956 cat >>confdefs.h <<\_ACEOF
12957 #define WITH_DYLD 1
12958 _ACEOF
12960 { echo "$as_me:$LINENO: result: always on for Darwin" >&5
12961 echo "${ECHO_T}always on for Darwin" >&6; }
12964 { echo "$as_me:$LINENO: result: no" >&5
12965 echo "${ECHO_T}no" >&6; }
12967 esac
12969 # Set info about shared libraries.
12975 # SO is the extension of shared libraries `(including the dot!)
12976 # -- usually .so, .sl on HP-UX, .dll on Cygwin
12977 { echo "$as_me:$LINENO: checking SO" >&5
12978 echo $ECHO_N "checking SO... $ECHO_C" >&6; }
12979 if test -z "$SO"
12980 then
12981 case $ac_sys_system in
12982 hp*|HP*)
12983 case `uname -m` in
12984 ia64) SO=.so;;
12985 *) SO=.sl;;
12986 esac
12988 CYGWIN*) SO=.dll;;
12989 *) SO=.so;;
12990 esac
12991 else
12992 # this might also be a termcap variable, see #610332
12993 echo
12994 echo '====================================================================='
12995 echo '+ +'
12996 echo '+ WARNING: You have set SO in your environment. +'
12997 echo '+ Do you really mean to change the extension for shared libraries? +'
12998 echo '+ Continuing in 10 seconds to let you to ponder. +'
12999 echo '+ +'
13000 echo '====================================================================='
13001 sleep 10
13003 { echo "$as_me:$LINENO: result: $SO" >&5
13004 echo "${ECHO_T}$SO" >&6; }
13006 cat >>confdefs.h <<_ACEOF
13007 #define SHLIB_EXT "$SO"
13008 _ACEOF
13010 # LDSHARED is the ld *command* used to create shared library
13011 # -- "cc -G" on SunOS 5.x, "ld -shared" on IRIX 5
13012 # (Shared libraries in this instance are shared modules to be loaded into
13013 # Python, as opposed to building Python itself as a shared library.)
13014 { echo "$as_me:$LINENO: checking LDSHARED" >&5
13015 echo $ECHO_N "checking LDSHARED... $ECHO_C" >&6; }
13016 if test -z "$LDSHARED"
13017 then
13018 case $ac_sys_system/$ac_sys_release in
13019 AIX*)
13020 BLDSHARED="\$(srcdir)/Modules/ld_so_aix \$(CC) -bI:Modules/python.exp"
13021 LDSHARED="\$(BINLIBDEST)/config/ld_so_aix \$(CC) -bI:\$(BINLIBDEST)/config/python.exp"
13023 BeOS*)
13024 BLDSHARED="\$(srcdir)/Modules/ld_so_beos $LDLIBRARY"
13025 LDSHARED="\$(BINLIBDEST)/config/ld_so_beos \$(LIBDIR)/$LDLIBRARY"
13027 IRIX/5*) LDSHARED="ld -shared";;
13028 IRIX*/6*) LDSHARED="ld ${SGI_ABI} -shared -all";;
13029 SunOS/5*)
13030 if test "$GCC" = "yes"
13031 then LDSHARED='$(CC) -shared'
13032 else LDSHARED='$(CC) -G';
13033 fi ;;
13034 hp*|HP*)
13035 if test "$GCC" = "yes"
13036 then LDSHARED='$(CC) -shared'
13037 else LDSHARED='ld -b';
13038 fi ;;
13039 OSF*) LDSHARED="ld -shared -expect_unresolved \"*\"";;
13040 Darwin/1.3*)
13041 LDSHARED='$(CC) $(LDFLAGS) -bundle'
13042 if test "$enable_framework" ; then
13043 # Link against the framework. All externals should be defined.
13044 BLDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
13045 LDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
13046 else
13047 # No framework. Ignore undefined symbols, assuming they come from Python
13048 LDSHARED="$LDSHARED -undefined suppress"
13049 fi ;;
13050 Darwin/1.4*|Darwin/5.*|Darwin/6.*)
13051 LDSHARED='$(CC) $(LDFLAGS) -bundle'
13052 if test "$enable_framework" ; then
13053 # Link against the framework. All externals should be defined.
13054 BLDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
13055 LDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
13056 else
13057 # No framework, use the Python app as bundle-loader
13058 BLDSHARED="$LDSHARED "'-bundle_loader $(BUILDPYTHON)'
13059 LDSHARED="$LDSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)'
13060 fi ;;
13061 Darwin/*)
13062 # Use -undefined dynamic_lookup whenever possible (10.3 and later).
13063 # This allows an extension to be used in any Python
13065 if test ${MACOSX_DEPLOYMENT_TARGET} '>' 10.2
13066 then
13067 if test "${enable_universalsdk}"; then
13068 LDFLAGS="${UNIVERSAL_ARCH_FLAGS} -isysroot ${UNIVERSALSDK} ${LDFLAGS}"
13070 LDSHARED='$(CC) $(LDFLAGS) -bundle -undefined dynamic_lookup'
13071 BLDSHARED="$LDSHARED"
13072 else
13073 LDSHARED='$(CC) $(LDFLAGS) -bundle'
13074 if test "$enable_framework" ; then
13075 # Link against the framework. All externals should be defined.
13076 BLDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
13077 LDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
13078 else
13079 # No framework, use the Python app as bundle-loader
13080 BLDSHARED="$LDSHARED "'-bundle_loader $(BUILDPYTHON)'
13081 LDSHARED="$LDSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)'
13085 Linux*|GNU*|QNX*) LDSHARED='$(CC) -shared';;
13086 BSD/OS*/4*) LDSHARED="gcc -shared";;
13087 FreeBSD*)
13088 if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]
13089 then
13090 LDSHARED="$CC -shared ${LDFLAGS}"
13091 else
13092 LDSHARED="ld -Bshareable ${LDFLAGS}"
13093 fi;;
13094 OpenBSD*)
13095 if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]
13096 then
13097 LDSHARED='$(CC) -shared $(CCSHARED) ${LDFLAGS}'
13098 else
13099 case `uname -r` in
13100 [01].* | 2.[0-7] | 2.[0-7].*)
13101 LDSHARED="ld -Bshareable ${LDFLAGS}"
13104 LDSHARED='$(CC) -shared $(CCSHARED) ${LDFLAGS}'
13106 esac
13107 fi;;
13108 NetBSD*|DragonFly*) LDSHARED="cc -shared ${LDFLAGS}";;
13109 OpenUNIX*|UnixWare*)
13110 if test "$GCC" = "yes"
13111 then LDSHARED='$(CC) -shared'
13112 else LDSHARED='$(CC) -G'
13113 fi;;
13114 SCO_SV*) LDSHARED='$(CC) -Wl,-G,-Bexport';;
13115 Monterey*) LDSHARED="cc -G -dy -Bdynamic -Bexport -L/usr/lib/ia64l64";;
13116 CYGWIN*) LDSHARED="gcc -shared -Wl,--enable-auto-image-base";;
13117 atheos*) LDSHARED="gcc -shared";;
13118 *) LDSHARED="ld";;
13119 esac
13121 { echo "$as_me:$LINENO: result: $LDSHARED" >&5
13122 echo "${ECHO_T}$LDSHARED" >&6; }
13123 BLDSHARED=${BLDSHARED-$LDSHARED}
13124 # CCSHARED are the C *flags* used to create objects to go into a shared
13125 # library (module) -- this is only needed for a few systems
13126 { echo "$as_me:$LINENO: checking CCSHARED" >&5
13127 echo $ECHO_N "checking CCSHARED... $ECHO_C" >&6; }
13128 if test -z "$CCSHARED"
13129 then
13130 case $ac_sys_system/$ac_sys_release in
13131 SunOS*) if test "$GCC" = yes;
13132 then CCSHARED="-fPIC";
13133 elif test `uname -p` = sparc;
13134 then CCSHARED="-xcode=pic32";
13135 else CCSHARED="-Kpic";
13136 fi;;
13137 hp*|HP*) if test "$GCC" = yes;
13138 then CCSHARED="-fPIC";
13139 else CCSHARED="+z";
13140 fi;;
13141 Linux*|GNU*) CCSHARED="-fPIC";;
13142 BSD/OS*/4*) CCSHARED="-fpic";;
13143 FreeBSD*|NetBSD*|OpenBSD*|DragonFly*) CCSHARED="-fPIC";;
13144 OpenUNIX*|UnixWare*)
13145 if test "$GCC" = "yes"
13146 then CCSHARED="-fPIC"
13147 else CCSHARED="-KPIC"
13148 fi;;
13149 SCO_SV*)
13150 if test "$GCC" = "yes"
13151 then CCSHARED="-fPIC"
13152 else CCSHARED="-Kpic -belf"
13153 fi;;
13154 Monterey*) CCSHARED="-G";;
13155 IRIX*/6*) case $CC in
13156 *gcc*) CCSHARED="-shared";;
13157 *) CCSHARED="";;
13158 esac;;
13159 atheos*) CCSHARED="-fPIC";;
13160 esac
13162 { echo "$as_me:$LINENO: result: $CCSHARED" >&5
13163 echo "${ECHO_T}$CCSHARED" >&6; }
13164 # LINKFORSHARED are the flags passed to the $(CC) command that links
13165 # the python executable -- this is only needed for a few systems
13166 { echo "$as_me:$LINENO: checking LINKFORSHARED" >&5
13167 echo $ECHO_N "checking LINKFORSHARED... $ECHO_C" >&6; }
13168 if test -z "$LINKFORSHARED"
13169 then
13170 case $ac_sys_system/$ac_sys_release in
13171 AIX*) LINKFORSHARED='-Wl,-bE:Modules/python.exp -lld';;
13172 hp*|HP*)
13173 LINKFORSHARED="-Wl,-E -Wl,+s";;
13174 # LINKFORSHARED="-Wl,-E -Wl,+s -Wl,+b\$(BINLIBDEST)/lib-dynload";;
13175 BSD/OS/4*) LINKFORSHARED="-Xlinker -export-dynamic";;
13176 Linux*|GNU*) LINKFORSHARED="-Xlinker -export-dynamic";;
13177 # -u libsys_s pulls in all symbols in libsys
13178 Darwin/*)
13179 # -u _PyMac_Error is needed to pull in the mac toolbox glue,
13180 # which is
13181 # not used by the core itself but which needs to be in the core so
13182 # that dynamically loaded extension modules have access to it.
13183 # -prebind is no longer used, because it actually seems to give a
13184 # slowdown in stead of a speedup, maybe due to the large number of
13185 # dynamic loads Python does.
13187 LINKFORSHARED="$extra_undefs"
13188 if test "$enable_framework"
13189 then
13190 LINKFORSHARED="$LINKFORSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
13192 LINKFORSHARED="$LINKFORSHARED";;
13193 OpenUNIX*|UnixWare*) LINKFORSHARED="-Wl,-Bexport";;
13194 SCO_SV*) LINKFORSHARED="-Wl,-Bexport";;
13195 ReliantUNIX*) LINKFORSHARED="-W1 -Blargedynsym";;
13196 FreeBSD*|NetBSD*|OpenBSD*|DragonFly*)
13197 if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]
13198 then
13199 LINKFORSHARED="-Wl,--export-dynamic"
13200 fi;;
13201 SunOS/5*) case $CC in
13202 *gcc*)
13203 if $CC -Xlinker --help 2>&1 | grep export-dynamic >/dev/null
13204 then
13205 LINKFORSHARED="-Xlinker --export-dynamic"
13206 fi;;
13207 esac;;
13208 CYGWIN*)
13209 if test $enable_shared = "no"
13210 then
13211 LINKFORSHARED='-Wl,--out-implib=$(LDLIBRARY)'
13212 fi;;
13213 QNX*)
13214 # -Wl,-E causes the symbols to be added to the dynamic
13215 # symbol table so that they can be found when a module
13216 # is loaded. -N 2048K causes the stack size to be set
13217 # to 2048 kilobytes so that the stack doesn't overflow
13218 # when running test_compile.py.
13219 LINKFORSHARED='-Wl,-E -N 2048K';;
13220 esac
13222 { echo "$as_me:$LINENO: result: $LINKFORSHARED" >&5
13223 echo "${ECHO_T}$LINKFORSHARED" >&6; }
13227 { echo "$as_me:$LINENO: checking CFLAGSFORSHARED" >&5
13228 echo $ECHO_N "checking CFLAGSFORSHARED... $ECHO_C" >&6; }
13229 if test ! "$LIBRARY" = "$LDLIBRARY"
13230 then
13231 case $ac_sys_system in
13232 CYGWIN*)
13233 # Cygwin needs CCSHARED when building extension DLLs
13234 # but not when building the interpreter DLL.
13235 CFLAGSFORSHARED='';;
13237 CFLAGSFORSHARED='$(CCSHARED)'
13238 esac
13240 { echo "$as_me:$LINENO: result: $CFLAGSFORSHARED" >&5
13241 echo "${ECHO_T}$CFLAGSFORSHARED" >&6; }
13243 # SHLIBS are libraries (except -lc and -lm) to link to the python shared
13244 # library (with --enable-shared).
13245 # For platforms on which shared libraries are not allowed to have unresolved
13246 # symbols, this must be set to $(LIBS) (expanded by make). We do this even
13247 # if it is not required, since it creates a dependency of the shared library
13248 # to LIBS. This, in turn, means that applications linking the shared libpython
13249 # don't need to link LIBS explicitly. The default should be only changed
13250 # on systems where this approach causes problems.
13252 { echo "$as_me:$LINENO: checking SHLIBS" >&5
13253 echo $ECHO_N "checking SHLIBS... $ECHO_C" >&6; }
13254 case "$ac_sys_system" in
13256 SHLIBS='$(LIBS)';;
13257 esac
13258 { echo "$as_me:$LINENO: result: $SHLIBS" >&5
13259 echo "${ECHO_T}$SHLIBS" >&6; }
13262 # checks for libraries
13264 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
13265 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
13266 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
13267 echo $ECHO_N "(cached) $ECHO_C" >&6
13268 else
13269 ac_check_lib_save_LIBS=$LIBS
13270 LIBS="-ldl $LIBS"
13271 cat >conftest.$ac_ext <<_ACEOF
13272 /* confdefs.h. */
13273 _ACEOF
13274 cat confdefs.h >>conftest.$ac_ext
13275 cat >>conftest.$ac_ext <<_ACEOF
13276 /* end confdefs.h. */
13278 /* Override any GCC internal prototype to avoid an error.
13279 Use char because int might match the return type of a GCC
13280 builtin and then its argument prototype would still apply. */
13281 #ifdef __cplusplus
13282 extern "C"
13283 #endif
13284 char dlopen ();
13286 main ()
13288 return dlopen ();
13290 return 0;
13292 _ACEOF
13293 rm -f conftest.$ac_objext conftest$ac_exeext
13294 if { (ac_try="$ac_link"
13295 case "(($ac_try" in
13296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13297 *) ac_try_echo=$ac_try;;
13298 esac
13299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13300 (eval "$ac_link") 2>conftest.er1
13301 ac_status=$?
13302 grep -v '^ *+' conftest.er1 >conftest.err
13303 rm -f conftest.er1
13304 cat conftest.err >&5
13305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13306 (exit $ac_status); } && {
13307 test -z "$ac_c_werror_flag" ||
13308 test ! -s conftest.err
13309 } && test -s conftest$ac_exeext &&
13310 $as_test_x conftest$ac_exeext; then
13311 ac_cv_lib_dl_dlopen=yes
13312 else
13313 echo "$as_me: failed program was:" >&5
13314 sed 's/^/| /' conftest.$ac_ext >&5
13316 ac_cv_lib_dl_dlopen=no
13319 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13320 conftest$ac_exeext conftest.$ac_ext
13321 LIBS=$ac_check_lib_save_LIBS
13323 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
13324 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
13325 if test $ac_cv_lib_dl_dlopen = yes; then
13326 cat >>confdefs.h <<_ACEOF
13327 #define HAVE_LIBDL 1
13328 _ACEOF
13330 LIBS="-ldl $LIBS"
13333 # Dynamic linking for SunOS/Solaris and SYSV
13335 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
13336 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
13337 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
13338 echo $ECHO_N "(cached) $ECHO_C" >&6
13339 else
13340 ac_check_lib_save_LIBS=$LIBS
13341 LIBS="-ldld $LIBS"
13342 cat >conftest.$ac_ext <<_ACEOF
13343 /* confdefs.h. */
13344 _ACEOF
13345 cat confdefs.h >>conftest.$ac_ext
13346 cat >>conftest.$ac_ext <<_ACEOF
13347 /* end confdefs.h. */
13349 /* Override any GCC internal prototype to avoid an error.
13350 Use char because int might match the return type of a GCC
13351 builtin and then its argument prototype would still apply. */
13352 #ifdef __cplusplus
13353 extern "C"
13354 #endif
13355 char shl_load ();
13357 main ()
13359 return shl_load ();
13361 return 0;
13363 _ACEOF
13364 rm -f conftest.$ac_objext conftest$ac_exeext
13365 if { (ac_try="$ac_link"
13366 case "(($ac_try" in
13367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13368 *) ac_try_echo=$ac_try;;
13369 esac
13370 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13371 (eval "$ac_link") 2>conftest.er1
13372 ac_status=$?
13373 grep -v '^ *+' conftest.er1 >conftest.err
13374 rm -f conftest.er1
13375 cat conftest.err >&5
13376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13377 (exit $ac_status); } && {
13378 test -z "$ac_c_werror_flag" ||
13379 test ! -s conftest.err
13380 } && test -s conftest$ac_exeext &&
13381 $as_test_x conftest$ac_exeext; then
13382 ac_cv_lib_dld_shl_load=yes
13383 else
13384 echo "$as_me: failed program was:" >&5
13385 sed 's/^/| /' conftest.$ac_ext >&5
13387 ac_cv_lib_dld_shl_load=no
13390 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13391 conftest$ac_exeext conftest.$ac_ext
13392 LIBS=$ac_check_lib_save_LIBS
13394 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
13395 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
13396 if test $ac_cv_lib_dld_shl_load = yes; then
13397 cat >>confdefs.h <<_ACEOF
13398 #define HAVE_LIBDLD 1
13399 _ACEOF
13401 LIBS="-ldld $LIBS"
13404 # Dynamic linking for HP-UX
13406 # only check for sem_ini if thread support is requested
13407 if test "$with_threads" = "yes" -o -z "$with_threads"; then
13408 { echo "$as_me:$LINENO: checking for library containing sem_init" >&5
13409 echo $ECHO_N "checking for library containing sem_init... $ECHO_C" >&6; }
13410 if test "${ac_cv_search_sem_init+set}" = set; then
13411 echo $ECHO_N "(cached) $ECHO_C" >&6
13412 else
13413 ac_func_search_save_LIBS=$LIBS
13414 cat >conftest.$ac_ext <<_ACEOF
13415 /* confdefs.h. */
13416 _ACEOF
13417 cat confdefs.h >>conftest.$ac_ext
13418 cat >>conftest.$ac_ext <<_ACEOF
13419 /* end confdefs.h. */
13421 /* Override any GCC internal prototype to avoid an error.
13422 Use char because int might match the return type of a GCC
13423 builtin and then its argument prototype would still apply. */
13424 #ifdef __cplusplus
13425 extern "C"
13426 #endif
13427 char sem_init ();
13429 main ()
13431 return sem_init ();
13433 return 0;
13435 _ACEOF
13436 for ac_lib in '' pthread rt posix4; do
13437 if test -z "$ac_lib"; then
13438 ac_res="none required"
13439 else
13440 ac_res=-l$ac_lib
13441 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13443 rm -f conftest.$ac_objext conftest$ac_exeext
13444 if { (ac_try="$ac_link"
13445 case "(($ac_try" in
13446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13447 *) ac_try_echo=$ac_try;;
13448 esac
13449 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13450 (eval "$ac_link") 2>conftest.er1
13451 ac_status=$?
13452 grep -v '^ *+' conftest.er1 >conftest.err
13453 rm -f conftest.er1
13454 cat conftest.err >&5
13455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13456 (exit $ac_status); } && {
13457 test -z "$ac_c_werror_flag" ||
13458 test ! -s conftest.err
13459 } && test -s conftest$ac_exeext &&
13460 $as_test_x conftest$ac_exeext; then
13461 ac_cv_search_sem_init=$ac_res
13462 else
13463 echo "$as_me: failed program was:" >&5
13464 sed 's/^/| /' conftest.$ac_ext >&5
13469 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13470 conftest$ac_exeext
13471 if test "${ac_cv_search_sem_init+set}" = set; then
13472 break
13474 done
13475 if test "${ac_cv_search_sem_init+set}" = set; then
13477 else
13478 ac_cv_search_sem_init=no
13480 rm conftest.$ac_ext
13481 LIBS=$ac_func_search_save_LIBS
13483 { echo "$as_me:$LINENO: result: $ac_cv_search_sem_init" >&5
13484 echo "${ECHO_T}$ac_cv_search_sem_init" >&6; }
13485 ac_res=$ac_cv_search_sem_init
13486 if test "$ac_res" != no; then
13487 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13490 # 'Real Time' functions on Solaris
13491 # posix4 on Solaris 2.6
13492 # pthread (first!) on Linux
13495 # check if we need libintl for locale functions
13496 { echo "$as_me:$LINENO: checking for textdomain in -lintl" >&5
13497 echo $ECHO_N "checking for textdomain in -lintl... $ECHO_C" >&6; }
13498 if test "${ac_cv_lib_intl_textdomain+set}" = set; then
13499 echo $ECHO_N "(cached) $ECHO_C" >&6
13500 else
13501 ac_check_lib_save_LIBS=$LIBS
13502 LIBS="-lintl $LIBS"
13503 cat >conftest.$ac_ext <<_ACEOF
13504 /* confdefs.h. */
13505 _ACEOF
13506 cat confdefs.h >>conftest.$ac_ext
13507 cat >>conftest.$ac_ext <<_ACEOF
13508 /* end confdefs.h. */
13510 /* Override any GCC internal prototype to avoid an error.
13511 Use char because int might match the return type of a GCC
13512 builtin and then its argument prototype would still apply. */
13513 #ifdef __cplusplus
13514 extern "C"
13515 #endif
13516 char textdomain ();
13518 main ()
13520 return textdomain ();
13522 return 0;
13524 _ACEOF
13525 rm -f conftest.$ac_objext conftest$ac_exeext
13526 if { (ac_try="$ac_link"
13527 case "(($ac_try" in
13528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13529 *) ac_try_echo=$ac_try;;
13530 esac
13531 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13532 (eval "$ac_link") 2>conftest.er1
13533 ac_status=$?
13534 grep -v '^ *+' conftest.er1 >conftest.err
13535 rm -f conftest.er1
13536 cat conftest.err >&5
13537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13538 (exit $ac_status); } && {
13539 test -z "$ac_c_werror_flag" ||
13540 test ! -s conftest.err
13541 } && test -s conftest$ac_exeext &&
13542 $as_test_x conftest$ac_exeext; then
13543 ac_cv_lib_intl_textdomain=yes
13544 else
13545 echo "$as_me: failed program was:" >&5
13546 sed 's/^/| /' conftest.$ac_ext >&5
13548 ac_cv_lib_intl_textdomain=no
13551 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13552 conftest$ac_exeext conftest.$ac_ext
13553 LIBS=$ac_check_lib_save_LIBS
13555 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_textdomain" >&5
13556 echo "${ECHO_T}$ac_cv_lib_intl_textdomain" >&6; }
13557 if test $ac_cv_lib_intl_textdomain = yes; then
13559 cat >>confdefs.h <<\_ACEOF
13560 #define WITH_LIBINTL 1
13561 _ACEOF
13566 # checks for system dependent C++ extensions support
13567 case "$ac_sys_system" in
13568 AIX*) { echo "$as_me:$LINENO: checking for genuine AIX C++ extensions support" >&5
13569 echo $ECHO_N "checking for genuine AIX C++ extensions support... $ECHO_C" >&6; }
13570 cat >conftest.$ac_ext <<_ACEOF
13571 /* confdefs.h. */
13572 _ACEOF
13573 cat confdefs.h >>conftest.$ac_ext
13574 cat >>conftest.$ac_ext <<_ACEOF
13575 /* end confdefs.h. */
13576 #include "/usr/lpp/xlC/include/load.h"
13578 main ()
13580 loadAndInit("", 0, "")
13582 return 0;
13584 _ACEOF
13585 rm -f conftest.$ac_objext conftest$ac_exeext
13586 if { (ac_try="$ac_link"
13587 case "(($ac_try" in
13588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13589 *) ac_try_echo=$ac_try;;
13590 esac
13591 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13592 (eval "$ac_link") 2>conftest.er1
13593 ac_status=$?
13594 grep -v '^ *+' conftest.er1 >conftest.err
13595 rm -f conftest.er1
13596 cat conftest.err >&5
13597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13598 (exit $ac_status); } && {
13599 test -z "$ac_c_werror_flag" ||
13600 test ! -s conftest.err
13601 } && test -s conftest$ac_exeext &&
13602 $as_test_x conftest$ac_exeext; then
13604 cat >>confdefs.h <<\_ACEOF
13605 #define AIX_GENUINE_CPLUSPLUS 1
13606 _ACEOF
13608 { echo "$as_me:$LINENO: result: yes" >&5
13609 echo "${ECHO_T}yes" >&6; }
13610 else
13611 echo "$as_me: failed program was:" >&5
13612 sed 's/^/| /' conftest.$ac_ext >&5
13614 { echo "$as_me:$LINENO: result: no" >&5
13615 echo "${ECHO_T}no" >&6; }
13618 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13619 conftest$ac_exeext conftest.$ac_ext;;
13620 *) ;;
13621 esac
13623 # Most SVR4 platforms (e.g. Solaris) need -lsocket and -lnsl.
13624 # BeOS' sockets are stashed in libnet.
13625 { echo "$as_me:$LINENO: checking for t_open in -lnsl" >&5
13626 echo $ECHO_N "checking for t_open in -lnsl... $ECHO_C" >&6; }
13627 if test "${ac_cv_lib_nsl_t_open+set}" = set; then
13628 echo $ECHO_N "(cached) $ECHO_C" >&6
13629 else
13630 ac_check_lib_save_LIBS=$LIBS
13631 LIBS="-lnsl $LIBS"
13632 cat >conftest.$ac_ext <<_ACEOF
13633 /* confdefs.h. */
13634 _ACEOF
13635 cat confdefs.h >>conftest.$ac_ext
13636 cat >>conftest.$ac_ext <<_ACEOF
13637 /* end confdefs.h. */
13639 /* Override any GCC internal prototype to avoid an error.
13640 Use char because int might match the return type of a GCC
13641 builtin and then its argument prototype would still apply. */
13642 #ifdef __cplusplus
13643 extern "C"
13644 #endif
13645 char t_open ();
13647 main ()
13649 return t_open ();
13651 return 0;
13653 _ACEOF
13654 rm -f conftest.$ac_objext conftest$ac_exeext
13655 if { (ac_try="$ac_link"
13656 case "(($ac_try" in
13657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13658 *) ac_try_echo=$ac_try;;
13659 esac
13660 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13661 (eval "$ac_link") 2>conftest.er1
13662 ac_status=$?
13663 grep -v '^ *+' conftest.er1 >conftest.err
13664 rm -f conftest.er1
13665 cat conftest.err >&5
13666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13667 (exit $ac_status); } && {
13668 test -z "$ac_c_werror_flag" ||
13669 test ! -s conftest.err
13670 } && test -s conftest$ac_exeext &&
13671 $as_test_x conftest$ac_exeext; then
13672 ac_cv_lib_nsl_t_open=yes
13673 else
13674 echo "$as_me: failed program was:" >&5
13675 sed 's/^/| /' conftest.$ac_ext >&5
13677 ac_cv_lib_nsl_t_open=no
13680 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13681 conftest$ac_exeext conftest.$ac_ext
13682 LIBS=$ac_check_lib_save_LIBS
13684 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_t_open" >&5
13685 echo "${ECHO_T}$ac_cv_lib_nsl_t_open" >&6; }
13686 if test $ac_cv_lib_nsl_t_open = yes; then
13687 LIBS="-lnsl $LIBS"
13689 # SVR4
13690 { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
13691 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
13692 if test "${ac_cv_lib_socket_socket+set}" = set; then
13693 echo $ECHO_N "(cached) $ECHO_C" >&6
13694 else
13695 ac_check_lib_save_LIBS=$LIBS
13696 LIBS="-lsocket $LIBS $LIBS"
13697 cat >conftest.$ac_ext <<_ACEOF
13698 /* confdefs.h. */
13699 _ACEOF
13700 cat confdefs.h >>conftest.$ac_ext
13701 cat >>conftest.$ac_ext <<_ACEOF
13702 /* end confdefs.h. */
13704 /* Override any GCC internal prototype to avoid an error.
13705 Use char because int might match the return type of a GCC
13706 builtin and then its argument prototype would still apply. */
13707 #ifdef __cplusplus
13708 extern "C"
13709 #endif
13710 char socket ();
13712 main ()
13714 return socket ();
13716 return 0;
13718 _ACEOF
13719 rm -f conftest.$ac_objext conftest$ac_exeext
13720 if { (ac_try="$ac_link"
13721 case "(($ac_try" in
13722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13723 *) ac_try_echo=$ac_try;;
13724 esac
13725 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13726 (eval "$ac_link") 2>conftest.er1
13727 ac_status=$?
13728 grep -v '^ *+' conftest.er1 >conftest.err
13729 rm -f conftest.er1
13730 cat conftest.err >&5
13731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13732 (exit $ac_status); } && {
13733 test -z "$ac_c_werror_flag" ||
13734 test ! -s conftest.err
13735 } && test -s conftest$ac_exeext &&
13736 $as_test_x conftest$ac_exeext; then
13737 ac_cv_lib_socket_socket=yes
13738 else
13739 echo "$as_me: failed program was:" >&5
13740 sed 's/^/| /' conftest.$ac_ext >&5
13742 ac_cv_lib_socket_socket=no
13745 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13746 conftest$ac_exeext conftest.$ac_ext
13747 LIBS=$ac_check_lib_save_LIBS
13749 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
13750 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; }
13751 if test $ac_cv_lib_socket_socket = yes; then
13752 LIBS="-lsocket $LIBS"
13754 # SVR4 sockets
13756 case "$ac_sys_system" in
13757 BeOS*)
13758 { echo "$as_me:$LINENO: checking for socket in -lnet" >&5
13759 echo $ECHO_N "checking for socket in -lnet... $ECHO_C" >&6; }
13760 if test "${ac_cv_lib_net_socket+set}" = set; then
13761 echo $ECHO_N "(cached) $ECHO_C" >&6
13762 else
13763 ac_check_lib_save_LIBS=$LIBS
13764 LIBS="-lnet $LIBS $LIBS"
13765 cat >conftest.$ac_ext <<_ACEOF
13766 /* confdefs.h. */
13767 _ACEOF
13768 cat confdefs.h >>conftest.$ac_ext
13769 cat >>conftest.$ac_ext <<_ACEOF
13770 /* end confdefs.h. */
13772 /* Override any GCC internal prototype to avoid an error.
13773 Use char because int might match the return type of a GCC
13774 builtin and then its argument prototype would still apply. */
13775 #ifdef __cplusplus
13776 extern "C"
13777 #endif
13778 char socket ();
13780 main ()
13782 return socket ();
13784 return 0;
13786 _ACEOF
13787 rm -f conftest.$ac_objext conftest$ac_exeext
13788 if { (ac_try="$ac_link"
13789 case "(($ac_try" in
13790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13791 *) ac_try_echo=$ac_try;;
13792 esac
13793 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13794 (eval "$ac_link") 2>conftest.er1
13795 ac_status=$?
13796 grep -v '^ *+' conftest.er1 >conftest.err
13797 rm -f conftest.er1
13798 cat conftest.err >&5
13799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13800 (exit $ac_status); } && {
13801 test -z "$ac_c_werror_flag" ||
13802 test ! -s conftest.err
13803 } && test -s conftest$ac_exeext &&
13804 $as_test_x conftest$ac_exeext; then
13805 ac_cv_lib_net_socket=yes
13806 else
13807 echo "$as_me: failed program was:" >&5
13808 sed 's/^/| /' conftest.$ac_ext >&5
13810 ac_cv_lib_net_socket=no
13813 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13814 conftest$ac_exeext conftest.$ac_ext
13815 LIBS=$ac_check_lib_save_LIBS
13817 { echo "$as_me:$LINENO: result: $ac_cv_lib_net_socket" >&5
13818 echo "${ECHO_T}$ac_cv_lib_net_socket" >&6; }
13819 if test $ac_cv_lib_net_socket = yes; then
13820 LIBS="-lnet $LIBS"
13822 # BeOS
13824 esac
13826 { echo "$as_me:$LINENO: checking for --with-libs" >&5
13827 echo $ECHO_N "checking for --with-libs... $ECHO_C" >&6; }
13829 # Check whether --with-libs was given.
13830 if test "${with_libs+set}" = set; then
13831 withval=$with_libs;
13832 { echo "$as_me:$LINENO: result: $withval" >&5
13833 echo "${ECHO_T}$withval" >&6; }
13834 LIBS="$withval $LIBS"
13836 else
13837 { echo "$as_me:$LINENO: result: no" >&5
13838 echo "${ECHO_T}no" >&6; }
13842 # Check for use of the system libffi library
13843 { echo "$as_me:$LINENO: checking for --with-system-ffi" >&5
13844 echo $ECHO_N "checking for --with-system-ffi... $ECHO_C" >&6; }
13846 # Check whether --with-system_ffi was given.
13847 if test "${with_system_ffi+set}" = set; then
13848 withval=$with_system_ffi;
13852 { echo "$as_me:$LINENO: result: $with_system_ffi" >&5
13853 echo "${ECHO_T}$with_system_ffi" >&6; }
13855 # Determine if signalmodule should be used.
13858 { echo "$as_me:$LINENO: checking for --with-signal-module" >&5
13859 echo $ECHO_N "checking for --with-signal-module... $ECHO_C" >&6; }
13861 # Check whether --with-signal-module was given.
13862 if test "${with_signal_module+set}" = set; then
13863 withval=$with_signal_module;
13867 if test -z "$with_signal_module"
13868 then with_signal_module="yes"
13870 { echo "$as_me:$LINENO: result: $with_signal_module" >&5
13871 echo "${ECHO_T}$with_signal_module" >&6; }
13873 if test "${with_signal_module}" = "yes"; then
13874 USE_SIGNAL_MODULE=""
13875 SIGNAL_OBJS=""
13876 else
13877 USE_SIGNAL_MODULE="#"
13878 SIGNAL_OBJS="Parser/intrcheck.o Python/sigcheck.o"
13881 # This is used to generate Setup.config
13883 USE_THREAD_MODULE=""
13885 { echo "$as_me:$LINENO: checking for --with-dec-threads" >&5
13886 echo $ECHO_N "checking for --with-dec-threads... $ECHO_C" >&6; }
13889 # Check whether --with-dec-threads was given.
13890 if test "${with_dec_threads+set}" = set; then
13891 withval=$with_dec_threads;
13892 { echo "$as_me:$LINENO: result: $withval" >&5
13893 echo "${ECHO_T}$withval" >&6; }
13894 LDLAST=-threads
13895 if test "${with_thread+set}" != set; then
13896 with_thread="$withval";
13898 else
13899 { echo "$as_me:$LINENO: result: no" >&5
13900 echo "${ECHO_T}no" >&6; }
13904 # Templates for things AC_DEFINEd more than once.
13905 # For a single AC_DEFINE, no template is needed.
13913 { echo "$as_me:$LINENO: checking for --with-threads" >&5
13914 echo $ECHO_N "checking for --with-threads... $ECHO_C" >&6; }
13916 # Check whether --with-threads was given.
13917 if test "${with_threads+set}" = set; then
13918 withval=$with_threads;
13922 # --with-thread is deprecated, but check for it anyway
13924 # Check whether --with-thread was given.
13925 if test "${with_thread+set}" = set; then
13926 withval=$with_thread; with_threads=$with_thread
13930 if test -z "$with_threads"
13931 then with_threads="yes"
13933 { echo "$as_me:$LINENO: result: $with_threads" >&5
13934 echo "${ECHO_T}$with_threads" >&6; }
13937 if test "$with_threads" = "no"
13938 then
13939 USE_THREAD_MODULE="#"
13940 elif test "$ac_cv_pthread_is_default" = yes
13941 then
13942 cat >>confdefs.h <<\_ACEOF
13943 #define WITH_THREAD 1
13944 _ACEOF
13946 # Defining _REENTRANT on system with POSIX threads should not hurt.
13947 cat >>confdefs.h <<\_ACEOF
13948 #define _REENTRANT 1
13949 _ACEOF
13951 posix_threads=yes
13952 THREADOBJ="Python/thread.o"
13953 elif test "$ac_cv_kpthread" = "yes"
13954 then
13955 CC="$CC -Kpthread"
13956 if test "$ac_cv_cxx_thread" = "yes"; then
13957 CXX="$CXX -Kpthread"
13959 cat >>confdefs.h <<\_ACEOF
13960 #define WITH_THREAD 1
13961 _ACEOF
13963 posix_threads=yes
13964 THREADOBJ="Python/thread.o"
13965 elif test "$ac_cv_kthread" = "yes"
13966 then
13967 CC="$CC -Kthread"
13968 if test "$ac_cv_cxx_thread" = "yes"; then
13969 CXX="$CXX -Kthread"
13971 cat >>confdefs.h <<\_ACEOF
13972 #define WITH_THREAD 1
13973 _ACEOF
13975 posix_threads=yes
13976 THREADOBJ="Python/thread.o"
13977 elif test "$ac_cv_pthread" = "yes"
13978 then
13979 CC="$CC -pthread"
13980 if test "$ac_cv_cxx_thread" = "yes"; then
13981 CXX="$CXX -pthread"
13983 cat >>confdefs.h <<\_ACEOF
13984 #define WITH_THREAD 1
13985 _ACEOF
13987 posix_threads=yes
13988 THREADOBJ="Python/thread.o"
13989 else
13990 if test ! -z "$with_threads" -a -d "$with_threads"
13991 then LDFLAGS="$LDFLAGS -L$with_threads"
13993 if test ! -z "$withval" -a -d "$withval"
13994 then LDFLAGS="$LDFLAGS -L$withval"
13997 # According to the POSIX spec, a pthreads implementation must
13998 # define _POSIX_THREADS in unistd.h. Some apparently don't
13999 # (e.g. gnu pth with pthread emulation)
14000 { echo "$as_me:$LINENO: checking for _POSIX_THREADS in unistd.h" >&5
14001 echo $ECHO_N "checking for _POSIX_THREADS in unistd.h... $ECHO_C" >&6; }
14002 cat >conftest.$ac_ext <<_ACEOF
14003 /* confdefs.h. */
14004 _ACEOF
14005 cat confdefs.h >>conftest.$ac_ext
14006 cat >>conftest.$ac_ext <<_ACEOF
14007 /* end confdefs.h. */
14009 #include <unistd.h>
14010 #ifdef _POSIX_THREADS
14012 #endif
14014 _ACEOF
14015 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14016 $EGREP "yes" >/dev/null 2>&1; then
14017 unistd_defines_pthreads=yes
14018 else
14019 unistd_defines_pthreads=no
14021 rm -f conftest*
14023 { echo "$as_me:$LINENO: result: $unistd_defines_pthreads" >&5
14024 echo "${ECHO_T}$unistd_defines_pthreads" >&6; }
14026 cat >>confdefs.h <<\_ACEOF
14027 #define _REENTRANT 1
14028 _ACEOF
14030 if test "${ac_cv_header_cthreads_h+set}" = set; then
14031 { echo "$as_me:$LINENO: checking for cthreads.h" >&5
14032 echo $ECHO_N "checking for cthreads.h... $ECHO_C" >&6; }
14033 if test "${ac_cv_header_cthreads_h+set}" = set; then
14034 echo $ECHO_N "(cached) $ECHO_C" >&6
14036 { echo "$as_me:$LINENO: result: $ac_cv_header_cthreads_h" >&5
14037 echo "${ECHO_T}$ac_cv_header_cthreads_h" >&6; }
14038 else
14039 # Is the header compilable?
14040 { echo "$as_me:$LINENO: checking cthreads.h usability" >&5
14041 echo $ECHO_N "checking cthreads.h usability... $ECHO_C" >&6; }
14042 cat >conftest.$ac_ext <<_ACEOF
14043 /* confdefs.h. */
14044 _ACEOF
14045 cat confdefs.h >>conftest.$ac_ext
14046 cat >>conftest.$ac_ext <<_ACEOF
14047 /* end confdefs.h. */
14048 $ac_includes_default
14049 #include <cthreads.h>
14050 _ACEOF
14051 rm -f conftest.$ac_objext
14052 if { (ac_try="$ac_compile"
14053 case "(($ac_try" in
14054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14055 *) ac_try_echo=$ac_try;;
14056 esac
14057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14058 (eval "$ac_compile") 2>conftest.er1
14059 ac_status=$?
14060 grep -v '^ *+' conftest.er1 >conftest.err
14061 rm -f conftest.er1
14062 cat conftest.err >&5
14063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14064 (exit $ac_status); } && {
14065 test -z "$ac_c_werror_flag" ||
14066 test ! -s conftest.err
14067 } && test -s conftest.$ac_objext; then
14068 ac_header_compiler=yes
14069 else
14070 echo "$as_me: failed program was:" >&5
14071 sed 's/^/| /' conftest.$ac_ext >&5
14073 ac_header_compiler=no
14076 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14077 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14078 echo "${ECHO_T}$ac_header_compiler" >&6; }
14080 # Is the header present?
14081 { echo "$as_me:$LINENO: checking cthreads.h presence" >&5
14082 echo $ECHO_N "checking cthreads.h presence... $ECHO_C" >&6; }
14083 cat >conftest.$ac_ext <<_ACEOF
14084 /* confdefs.h. */
14085 _ACEOF
14086 cat confdefs.h >>conftest.$ac_ext
14087 cat >>conftest.$ac_ext <<_ACEOF
14088 /* end confdefs.h. */
14089 #include <cthreads.h>
14090 _ACEOF
14091 if { (ac_try="$ac_cpp conftest.$ac_ext"
14092 case "(($ac_try" in
14093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14094 *) ac_try_echo=$ac_try;;
14095 esac
14096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14097 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14098 ac_status=$?
14099 grep -v '^ *+' conftest.er1 >conftest.err
14100 rm -f conftest.er1
14101 cat conftest.err >&5
14102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14103 (exit $ac_status); } >/dev/null && {
14104 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14105 test ! -s conftest.err
14106 }; then
14107 ac_header_preproc=yes
14108 else
14109 echo "$as_me: failed program was:" >&5
14110 sed 's/^/| /' conftest.$ac_ext >&5
14112 ac_header_preproc=no
14115 rm -f conftest.err conftest.$ac_ext
14116 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14117 echo "${ECHO_T}$ac_header_preproc" >&6; }
14119 # So? What about this header?
14120 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14121 yes:no: )
14122 { echo "$as_me:$LINENO: WARNING: cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&5
14123 echo "$as_me: WARNING: cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14124 { echo "$as_me:$LINENO: WARNING: cthreads.h: proceeding with the compiler's result" >&5
14125 echo "$as_me: WARNING: cthreads.h: proceeding with the compiler's result" >&2;}
14126 ac_header_preproc=yes
14128 no:yes:* )
14129 { echo "$as_me:$LINENO: WARNING: cthreads.h: present but cannot be compiled" >&5
14130 echo "$as_me: WARNING: cthreads.h: present but cannot be compiled" >&2;}
14131 { echo "$as_me:$LINENO: WARNING: cthreads.h: check for missing prerequisite headers?" >&5
14132 echo "$as_me: WARNING: cthreads.h: check for missing prerequisite headers?" >&2;}
14133 { echo "$as_me:$LINENO: WARNING: cthreads.h: see the Autoconf documentation" >&5
14134 echo "$as_me: WARNING: cthreads.h: see the Autoconf documentation" >&2;}
14135 { echo "$as_me:$LINENO: WARNING: cthreads.h: section \"Present But Cannot Be Compiled\"" >&5
14136 echo "$as_me: WARNING: cthreads.h: section \"Present But Cannot Be Compiled\"" >&2;}
14137 { echo "$as_me:$LINENO: WARNING: cthreads.h: proceeding with the preprocessor's result" >&5
14138 echo "$as_me: WARNING: cthreads.h: proceeding with the preprocessor's result" >&2;}
14139 { echo "$as_me:$LINENO: WARNING: cthreads.h: in the future, the compiler will take precedence" >&5
14140 echo "$as_me: WARNING: cthreads.h: in the future, the compiler will take precedence" >&2;}
14141 ( cat <<\_ASBOX
14142 ## ------------------------------------------------ ##
14143 ## Report this to http://www.python.org/python-bugs ##
14144 ## ------------------------------------------------ ##
14145 _ASBOX
14146 ) | sed "s/^/$as_me: WARNING: /" >&2
14148 esac
14149 { echo "$as_me:$LINENO: checking for cthreads.h" >&5
14150 echo $ECHO_N "checking for cthreads.h... $ECHO_C" >&6; }
14151 if test "${ac_cv_header_cthreads_h+set}" = set; then
14152 echo $ECHO_N "(cached) $ECHO_C" >&6
14153 else
14154 ac_cv_header_cthreads_h=$ac_header_preproc
14156 { echo "$as_me:$LINENO: result: $ac_cv_header_cthreads_h" >&5
14157 echo "${ECHO_T}$ac_cv_header_cthreads_h" >&6; }
14160 if test $ac_cv_header_cthreads_h = yes; then
14161 cat >>confdefs.h <<\_ACEOF
14162 #define WITH_THREAD 1
14163 _ACEOF
14165 cat >>confdefs.h <<\_ACEOF
14166 #define C_THREADS 1
14167 _ACEOF
14170 cat >>confdefs.h <<\_ACEOF
14171 #define HURD_C_THREADS 1
14172 _ACEOF
14174 LIBS="$LIBS -lthreads"
14175 THREADOBJ="Python/thread.o"
14176 else
14178 if test "${ac_cv_header_mach_cthreads_h+set}" = set; then
14179 { echo "$as_me:$LINENO: checking for mach/cthreads.h" >&5
14180 echo $ECHO_N "checking for mach/cthreads.h... $ECHO_C" >&6; }
14181 if test "${ac_cv_header_mach_cthreads_h+set}" = set; then
14182 echo $ECHO_N "(cached) $ECHO_C" >&6
14184 { echo "$as_me:$LINENO: result: $ac_cv_header_mach_cthreads_h" >&5
14185 echo "${ECHO_T}$ac_cv_header_mach_cthreads_h" >&6; }
14186 else
14187 # Is the header compilable?
14188 { echo "$as_me:$LINENO: checking mach/cthreads.h usability" >&5
14189 echo $ECHO_N "checking mach/cthreads.h usability... $ECHO_C" >&6; }
14190 cat >conftest.$ac_ext <<_ACEOF
14191 /* confdefs.h. */
14192 _ACEOF
14193 cat confdefs.h >>conftest.$ac_ext
14194 cat >>conftest.$ac_ext <<_ACEOF
14195 /* end confdefs.h. */
14196 $ac_includes_default
14197 #include <mach/cthreads.h>
14198 _ACEOF
14199 rm -f conftest.$ac_objext
14200 if { (ac_try="$ac_compile"
14201 case "(($ac_try" in
14202 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14203 *) ac_try_echo=$ac_try;;
14204 esac
14205 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14206 (eval "$ac_compile") 2>conftest.er1
14207 ac_status=$?
14208 grep -v '^ *+' conftest.er1 >conftest.err
14209 rm -f conftest.er1
14210 cat conftest.err >&5
14211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14212 (exit $ac_status); } && {
14213 test -z "$ac_c_werror_flag" ||
14214 test ! -s conftest.err
14215 } && test -s conftest.$ac_objext; then
14216 ac_header_compiler=yes
14217 else
14218 echo "$as_me: failed program was:" >&5
14219 sed 's/^/| /' conftest.$ac_ext >&5
14221 ac_header_compiler=no
14224 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14225 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14226 echo "${ECHO_T}$ac_header_compiler" >&6; }
14228 # Is the header present?
14229 { echo "$as_me:$LINENO: checking mach/cthreads.h presence" >&5
14230 echo $ECHO_N "checking mach/cthreads.h presence... $ECHO_C" >&6; }
14231 cat >conftest.$ac_ext <<_ACEOF
14232 /* confdefs.h. */
14233 _ACEOF
14234 cat confdefs.h >>conftest.$ac_ext
14235 cat >>conftest.$ac_ext <<_ACEOF
14236 /* end confdefs.h. */
14237 #include <mach/cthreads.h>
14238 _ACEOF
14239 if { (ac_try="$ac_cpp conftest.$ac_ext"
14240 case "(($ac_try" in
14241 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14242 *) ac_try_echo=$ac_try;;
14243 esac
14244 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14245 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14246 ac_status=$?
14247 grep -v '^ *+' conftest.er1 >conftest.err
14248 rm -f conftest.er1
14249 cat conftest.err >&5
14250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14251 (exit $ac_status); } >/dev/null && {
14252 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14253 test ! -s conftest.err
14254 }; then
14255 ac_header_preproc=yes
14256 else
14257 echo "$as_me: failed program was:" >&5
14258 sed 's/^/| /' conftest.$ac_ext >&5
14260 ac_header_preproc=no
14263 rm -f conftest.err conftest.$ac_ext
14264 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14265 echo "${ECHO_T}$ac_header_preproc" >&6; }
14267 # So? What about this header?
14268 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14269 yes:no: )
14270 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&5
14271 echo "$as_me: WARNING: mach/cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14272 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: proceeding with the compiler's result" >&5
14273 echo "$as_me: WARNING: mach/cthreads.h: proceeding with the compiler's result" >&2;}
14274 ac_header_preproc=yes
14276 no:yes:* )
14277 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: present but cannot be compiled" >&5
14278 echo "$as_me: WARNING: mach/cthreads.h: present but cannot be compiled" >&2;}
14279 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: check for missing prerequisite headers?" >&5
14280 echo "$as_me: WARNING: mach/cthreads.h: check for missing prerequisite headers?" >&2;}
14281 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: see the Autoconf documentation" >&5
14282 echo "$as_me: WARNING: mach/cthreads.h: see the Autoconf documentation" >&2;}
14283 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: section \"Present But Cannot Be Compiled\"" >&5
14284 echo "$as_me: WARNING: mach/cthreads.h: section \"Present But Cannot Be Compiled\"" >&2;}
14285 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: proceeding with the preprocessor's result" >&5
14286 echo "$as_me: WARNING: mach/cthreads.h: proceeding with the preprocessor's result" >&2;}
14287 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: in the future, the compiler will take precedence" >&5
14288 echo "$as_me: WARNING: mach/cthreads.h: in the future, the compiler will take precedence" >&2;}
14289 ( cat <<\_ASBOX
14290 ## ------------------------------------------------ ##
14291 ## Report this to http://www.python.org/python-bugs ##
14292 ## ------------------------------------------------ ##
14293 _ASBOX
14294 ) | sed "s/^/$as_me: WARNING: /" >&2
14296 esac
14297 { echo "$as_me:$LINENO: checking for mach/cthreads.h" >&5
14298 echo $ECHO_N "checking for mach/cthreads.h... $ECHO_C" >&6; }
14299 if test "${ac_cv_header_mach_cthreads_h+set}" = set; then
14300 echo $ECHO_N "(cached) $ECHO_C" >&6
14301 else
14302 ac_cv_header_mach_cthreads_h=$ac_header_preproc
14304 { echo "$as_me:$LINENO: result: $ac_cv_header_mach_cthreads_h" >&5
14305 echo "${ECHO_T}$ac_cv_header_mach_cthreads_h" >&6; }
14308 if test $ac_cv_header_mach_cthreads_h = yes; then
14309 cat >>confdefs.h <<\_ACEOF
14310 #define WITH_THREAD 1
14311 _ACEOF
14313 cat >>confdefs.h <<\_ACEOF
14314 #define C_THREADS 1
14315 _ACEOF
14318 cat >>confdefs.h <<\_ACEOF
14319 #define MACH_C_THREADS 1
14320 _ACEOF
14322 THREADOBJ="Python/thread.o"
14323 else
14325 { echo "$as_me:$LINENO: checking for --with-pth" >&5
14326 echo $ECHO_N "checking for --with-pth... $ECHO_C" >&6; }
14328 # Check whether --with-pth was given.
14329 if test "${with_pth+set}" = set; then
14330 withval=$with_pth; { echo "$as_me:$LINENO: result: $withval" >&5
14331 echo "${ECHO_T}$withval" >&6; }
14332 cat >>confdefs.h <<\_ACEOF
14333 #define WITH_THREAD 1
14334 _ACEOF
14337 cat >>confdefs.h <<\_ACEOF
14338 #define HAVE_PTH 1
14339 _ACEOF
14341 LIBS="-lpth $LIBS"
14342 THREADOBJ="Python/thread.o"
14343 else
14344 { echo "$as_me:$LINENO: result: no" >&5
14345 echo "${ECHO_T}no" >&6; }
14347 # Just looking for pthread_create in libpthread is not enough:
14348 # on HP/UX, pthread.h renames pthread_create to a different symbol name.
14349 # So we really have to include pthread.h, and then link.
14350 _libs=$LIBS
14351 LIBS="$LIBS -lpthread"
14352 { echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
14353 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6; }
14354 cat >conftest.$ac_ext <<_ACEOF
14355 /* confdefs.h. */
14356 _ACEOF
14357 cat confdefs.h >>conftest.$ac_ext
14358 cat >>conftest.$ac_ext <<_ACEOF
14359 /* end confdefs.h. */
14360 #include <pthread.h>
14362 void * start_routine (void *arg) { exit (0); }
14364 main ()
14367 pthread_create (NULL, NULL, start_routine, NULL)
14369 return 0;
14371 _ACEOF
14372 rm -f conftest.$ac_objext conftest$ac_exeext
14373 if { (ac_try="$ac_link"
14374 case "(($ac_try" in
14375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14376 *) ac_try_echo=$ac_try;;
14377 esac
14378 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14379 (eval "$ac_link") 2>conftest.er1
14380 ac_status=$?
14381 grep -v '^ *+' conftest.er1 >conftest.err
14382 rm -f conftest.er1
14383 cat conftest.err >&5
14384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14385 (exit $ac_status); } && {
14386 test -z "$ac_c_werror_flag" ||
14387 test ! -s conftest.err
14388 } && test -s conftest$ac_exeext &&
14389 $as_test_x conftest$ac_exeext; then
14391 { echo "$as_me:$LINENO: result: yes" >&5
14392 echo "${ECHO_T}yes" >&6; }
14393 cat >>confdefs.h <<\_ACEOF
14394 #define WITH_THREAD 1
14395 _ACEOF
14397 posix_threads=yes
14398 THREADOBJ="Python/thread.o"
14399 else
14400 echo "$as_me: failed program was:" >&5
14401 sed 's/^/| /' conftest.$ac_ext >&5
14404 LIBS=$_libs
14405 { echo "$as_me:$LINENO: checking for pthread_detach" >&5
14406 echo $ECHO_N "checking for pthread_detach... $ECHO_C" >&6; }
14407 if test "${ac_cv_func_pthread_detach+set}" = set; then
14408 echo $ECHO_N "(cached) $ECHO_C" >&6
14409 else
14410 cat >conftest.$ac_ext <<_ACEOF
14411 /* confdefs.h. */
14412 _ACEOF
14413 cat confdefs.h >>conftest.$ac_ext
14414 cat >>conftest.$ac_ext <<_ACEOF
14415 /* end confdefs.h. */
14416 /* Define pthread_detach to an innocuous variant, in case <limits.h> declares pthread_detach.
14417 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14418 #define pthread_detach innocuous_pthread_detach
14420 /* System header to define __stub macros and hopefully few prototypes,
14421 which can conflict with char pthread_detach (); below.
14422 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14423 <limits.h> exists even on freestanding compilers. */
14425 #ifdef __STDC__
14426 # include <limits.h>
14427 #else
14428 # include <assert.h>
14429 #endif
14431 #undef pthread_detach
14433 /* Override any GCC internal prototype to avoid an error.
14434 Use char because int might match the return type of a GCC
14435 builtin and then its argument prototype would still apply. */
14436 #ifdef __cplusplus
14437 extern "C"
14438 #endif
14439 char pthread_detach ();
14440 /* The GNU C library defines this for functions which it implements
14441 to always fail with ENOSYS. Some functions are actually named
14442 something starting with __ and the normal name is an alias. */
14443 #if defined __stub_pthread_detach || defined __stub___pthread_detach
14444 choke me
14445 #endif
14448 main ()
14450 return pthread_detach ();
14452 return 0;
14454 _ACEOF
14455 rm -f conftest.$ac_objext conftest$ac_exeext
14456 if { (ac_try="$ac_link"
14457 case "(($ac_try" in
14458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14459 *) ac_try_echo=$ac_try;;
14460 esac
14461 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14462 (eval "$ac_link") 2>conftest.er1
14463 ac_status=$?
14464 grep -v '^ *+' conftest.er1 >conftest.err
14465 rm -f conftest.er1
14466 cat conftest.err >&5
14467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14468 (exit $ac_status); } && {
14469 test -z "$ac_c_werror_flag" ||
14470 test ! -s conftest.err
14471 } && test -s conftest$ac_exeext &&
14472 $as_test_x conftest$ac_exeext; then
14473 ac_cv_func_pthread_detach=yes
14474 else
14475 echo "$as_me: failed program was:" >&5
14476 sed 's/^/| /' conftest.$ac_ext >&5
14478 ac_cv_func_pthread_detach=no
14481 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14482 conftest$ac_exeext conftest.$ac_ext
14484 { echo "$as_me:$LINENO: result: $ac_cv_func_pthread_detach" >&5
14485 echo "${ECHO_T}$ac_cv_func_pthread_detach" >&6; }
14486 if test $ac_cv_func_pthread_detach = yes; then
14487 cat >>confdefs.h <<\_ACEOF
14488 #define WITH_THREAD 1
14489 _ACEOF
14491 posix_threads=yes
14492 THREADOBJ="Python/thread.o"
14493 else
14495 if test "${ac_cv_header_atheos_threads_h+set}" = set; then
14496 { echo "$as_me:$LINENO: checking for atheos/threads.h" >&5
14497 echo $ECHO_N "checking for atheos/threads.h... $ECHO_C" >&6; }
14498 if test "${ac_cv_header_atheos_threads_h+set}" = set; then
14499 echo $ECHO_N "(cached) $ECHO_C" >&6
14501 { echo "$as_me:$LINENO: result: $ac_cv_header_atheos_threads_h" >&5
14502 echo "${ECHO_T}$ac_cv_header_atheos_threads_h" >&6; }
14503 else
14504 # Is the header compilable?
14505 { echo "$as_me:$LINENO: checking atheos/threads.h usability" >&5
14506 echo $ECHO_N "checking atheos/threads.h usability... $ECHO_C" >&6; }
14507 cat >conftest.$ac_ext <<_ACEOF
14508 /* confdefs.h. */
14509 _ACEOF
14510 cat confdefs.h >>conftest.$ac_ext
14511 cat >>conftest.$ac_ext <<_ACEOF
14512 /* end confdefs.h. */
14513 $ac_includes_default
14514 #include <atheos/threads.h>
14515 _ACEOF
14516 rm -f conftest.$ac_objext
14517 if { (ac_try="$ac_compile"
14518 case "(($ac_try" in
14519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14520 *) ac_try_echo=$ac_try;;
14521 esac
14522 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14523 (eval "$ac_compile") 2>conftest.er1
14524 ac_status=$?
14525 grep -v '^ *+' conftest.er1 >conftest.err
14526 rm -f conftest.er1
14527 cat conftest.err >&5
14528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14529 (exit $ac_status); } && {
14530 test -z "$ac_c_werror_flag" ||
14531 test ! -s conftest.err
14532 } && test -s conftest.$ac_objext; then
14533 ac_header_compiler=yes
14534 else
14535 echo "$as_me: failed program was:" >&5
14536 sed 's/^/| /' conftest.$ac_ext >&5
14538 ac_header_compiler=no
14541 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14542 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14543 echo "${ECHO_T}$ac_header_compiler" >&6; }
14545 # Is the header present?
14546 { echo "$as_me:$LINENO: checking atheos/threads.h presence" >&5
14547 echo $ECHO_N "checking atheos/threads.h presence... $ECHO_C" >&6; }
14548 cat >conftest.$ac_ext <<_ACEOF
14549 /* confdefs.h. */
14550 _ACEOF
14551 cat confdefs.h >>conftest.$ac_ext
14552 cat >>conftest.$ac_ext <<_ACEOF
14553 /* end confdefs.h. */
14554 #include <atheos/threads.h>
14555 _ACEOF
14556 if { (ac_try="$ac_cpp conftest.$ac_ext"
14557 case "(($ac_try" in
14558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14559 *) ac_try_echo=$ac_try;;
14560 esac
14561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14562 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14563 ac_status=$?
14564 grep -v '^ *+' conftest.er1 >conftest.err
14565 rm -f conftest.er1
14566 cat conftest.err >&5
14567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14568 (exit $ac_status); } >/dev/null && {
14569 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14570 test ! -s conftest.err
14571 }; then
14572 ac_header_preproc=yes
14573 else
14574 echo "$as_me: failed program was:" >&5
14575 sed 's/^/| /' conftest.$ac_ext >&5
14577 ac_header_preproc=no
14580 rm -f conftest.err conftest.$ac_ext
14581 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14582 echo "${ECHO_T}$ac_header_preproc" >&6; }
14584 # So? What about this header?
14585 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14586 yes:no: )
14587 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: accepted by the compiler, rejected by the preprocessor!" >&5
14588 echo "$as_me: WARNING: atheos/threads.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14589 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: proceeding with the compiler's result" >&5
14590 echo "$as_me: WARNING: atheos/threads.h: proceeding with the compiler's result" >&2;}
14591 ac_header_preproc=yes
14593 no:yes:* )
14594 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: present but cannot be compiled" >&5
14595 echo "$as_me: WARNING: atheos/threads.h: present but cannot be compiled" >&2;}
14596 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: check for missing prerequisite headers?" >&5
14597 echo "$as_me: WARNING: atheos/threads.h: check for missing prerequisite headers?" >&2;}
14598 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: see the Autoconf documentation" >&5
14599 echo "$as_me: WARNING: atheos/threads.h: see the Autoconf documentation" >&2;}
14600 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: section \"Present But Cannot Be Compiled\"" >&5
14601 echo "$as_me: WARNING: atheos/threads.h: section \"Present But Cannot Be Compiled\"" >&2;}
14602 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: proceeding with the preprocessor's result" >&5
14603 echo "$as_me: WARNING: atheos/threads.h: proceeding with the preprocessor's result" >&2;}
14604 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: in the future, the compiler will take precedence" >&5
14605 echo "$as_me: WARNING: atheos/threads.h: in the future, the compiler will take precedence" >&2;}
14606 ( cat <<\_ASBOX
14607 ## ------------------------------------------------ ##
14608 ## Report this to http://www.python.org/python-bugs ##
14609 ## ------------------------------------------------ ##
14610 _ASBOX
14611 ) | sed "s/^/$as_me: WARNING: /" >&2
14613 esac
14614 { echo "$as_me:$LINENO: checking for atheos/threads.h" >&5
14615 echo $ECHO_N "checking for atheos/threads.h... $ECHO_C" >&6; }
14616 if test "${ac_cv_header_atheos_threads_h+set}" = set; then
14617 echo $ECHO_N "(cached) $ECHO_C" >&6
14618 else
14619 ac_cv_header_atheos_threads_h=$ac_header_preproc
14621 { echo "$as_me:$LINENO: result: $ac_cv_header_atheos_threads_h" >&5
14622 echo "${ECHO_T}$ac_cv_header_atheos_threads_h" >&6; }
14625 if test $ac_cv_header_atheos_threads_h = yes; then
14626 cat >>confdefs.h <<\_ACEOF
14627 #define WITH_THREAD 1
14628 _ACEOF
14631 cat >>confdefs.h <<\_ACEOF
14632 #define ATHEOS_THREADS 1
14633 _ACEOF
14635 THREADOBJ="Python/thread.o"
14636 else
14638 if test "${ac_cv_header_kernel_OS_h+set}" = set; then
14639 { echo "$as_me:$LINENO: checking for kernel/OS.h" >&5
14640 echo $ECHO_N "checking for kernel/OS.h... $ECHO_C" >&6; }
14641 if test "${ac_cv_header_kernel_OS_h+set}" = set; then
14642 echo $ECHO_N "(cached) $ECHO_C" >&6
14644 { echo "$as_me:$LINENO: result: $ac_cv_header_kernel_OS_h" >&5
14645 echo "${ECHO_T}$ac_cv_header_kernel_OS_h" >&6; }
14646 else
14647 # Is the header compilable?
14648 { echo "$as_me:$LINENO: checking kernel/OS.h usability" >&5
14649 echo $ECHO_N "checking kernel/OS.h usability... $ECHO_C" >&6; }
14650 cat >conftest.$ac_ext <<_ACEOF
14651 /* confdefs.h. */
14652 _ACEOF
14653 cat confdefs.h >>conftest.$ac_ext
14654 cat >>conftest.$ac_ext <<_ACEOF
14655 /* end confdefs.h. */
14656 $ac_includes_default
14657 #include <kernel/OS.h>
14658 _ACEOF
14659 rm -f conftest.$ac_objext
14660 if { (ac_try="$ac_compile"
14661 case "(($ac_try" in
14662 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14663 *) ac_try_echo=$ac_try;;
14664 esac
14665 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14666 (eval "$ac_compile") 2>conftest.er1
14667 ac_status=$?
14668 grep -v '^ *+' conftest.er1 >conftest.err
14669 rm -f conftest.er1
14670 cat conftest.err >&5
14671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14672 (exit $ac_status); } && {
14673 test -z "$ac_c_werror_flag" ||
14674 test ! -s conftest.err
14675 } && test -s conftest.$ac_objext; then
14676 ac_header_compiler=yes
14677 else
14678 echo "$as_me: failed program was:" >&5
14679 sed 's/^/| /' conftest.$ac_ext >&5
14681 ac_header_compiler=no
14684 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14685 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14686 echo "${ECHO_T}$ac_header_compiler" >&6; }
14688 # Is the header present?
14689 { echo "$as_me:$LINENO: checking kernel/OS.h presence" >&5
14690 echo $ECHO_N "checking kernel/OS.h presence... $ECHO_C" >&6; }
14691 cat >conftest.$ac_ext <<_ACEOF
14692 /* confdefs.h. */
14693 _ACEOF
14694 cat confdefs.h >>conftest.$ac_ext
14695 cat >>conftest.$ac_ext <<_ACEOF
14696 /* end confdefs.h. */
14697 #include <kernel/OS.h>
14698 _ACEOF
14699 if { (ac_try="$ac_cpp conftest.$ac_ext"
14700 case "(($ac_try" in
14701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14702 *) ac_try_echo=$ac_try;;
14703 esac
14704 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14705 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14706 ac_status=$?
14707 grep -v '^ *+' conftest.er1 >conftest.err
14708 rm -f conftest.er1
14709 cat conftest.err >&5
14710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14711 (exit $ac_status); } >/dev/null && {
14712 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14713 test ! -s conftest.err
14714 }; then
14715 ac_header_preproc=yes
14716 else
14717 echo "$as_me: failed program was:" >&5
14718 sed 's/^/| /' conftest.$ac_ext >&5
14720 ac_header_preproc=no
14723 rm -f conftest.err conftest.$ac_ext
14724 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14725 echo "${ECHO_T}$ac_header_preproc" >&6; }
14727 # So? What about this header?
14728 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14729 yes:no: )
14730 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: accepted by the compiler, rejected by the preprocessor!" >&5
14731 echo "$as_me: WARNING: kernel/OS.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14732 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: proceeding with the compiler's result" >&5
14733 echo "$as_me: WARNING: kernel/OS.h: proceeding with the compiler's result" >&2;}
14734 ac_header_preproc=yes
14736 no:yes:* )
14737 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: present but cannot be compiled" >&5
14738 echo "$as_me: WARNING: kernel/OS.h: present but cannot be compiled" >&2;}
14739 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: check for missing prerequisite headers?" >&5
14740 echo "$as_me: WARNING: kernel/OS.h: check for missing prerequisite headers?" >&2;}
14741 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: see the Autoconf documentation" >&5
14742 echo "$as_me: WARNING: kernel/OS.h: see the Autoconf documentation" >&2;}
14743 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: section \"Present But Cannot Be Compiled\"" >&5
14744 echo "$as_me: WARNING: kernel/OS.h: section \"Present But Cannot Be Compiled\"" >&2;}
14745 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: proceeding with the preprocessor's result" >&5
14746 echo "$as_me: WARNING: kernel/OS.h: proceeding with the preprocessor's result" >&2;}
14747 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: in the future, the compiler will take precedence" >&5
14748 echo "$as_me: WARNING: kernel/OS.h: in the future, the compiler will take precedence" >&2;}
14749 ( cat <<\_ASBOX
14750 ## ------------------------------------------------ ##
14751 ## Report this to http://www.python.org/python-bugs ##
14752 ## ------------------------------------------------ ##
14753 _ASBOX
14754 ) | sed "s/^/$as_me: WARNING: /" >&2
14756 esac
14757 { echo "$as_me:$LINENO: checking for kernel/OS.h" >&5
14758 echo $ECHO_N "checking for kernel/OS.h... $ECHO_C" >&6; }
14759 if test "${ac_cv_header_kernel_OS_h+set}" = set; then
14760 echo $ECHO_N "(cached) $ECHO_C" >&6
14761 else
14762 ac_cv_header_kernel_OS_h=$ac_header_preproc
14764 { echo "$as_me:$LINENO: result: $ac_cv_header_kernel_OS_h" >&5
14765 echo "${ECHO_T}$ac_cv_header_kernel_OS_h" >&6; }
14768 if test $ac_cv_header_kernel_OS_h = yes; then
14769 cat >>confdefs.h <<\_ACEOF
14770 #define WITH_THREAD 1
14771 _ACEOF
14774 cat >>confdefs.h <<\_ACEOF
14775 #define BEOS_THREADS 1
14776 _ACEOF
14778 THREADOBJ="Python/thread.o"
14779 else
14781 { echo "$as_me:$LINENO: checking for pthread_create in -lpthreads" >&5
14782 echo $ECHO_N "checking for pthread_create in -lpthreads... $ECHO_C" >&6; }
14783 if test "${ac_cv_lib_pthreads_pthread_create+set}" = set; then
14784 echo $ECHO_N "(cached) $ECHO_C" >&6
14785 else
14786 ac_check_lib_save_LIBS=$LIBS
14787 LIBS="-lpthreads $LIBS"
14788 cat >conftest.$ac_ext <<_ACEOF
14789 /* confdefs.h. */
14790 _ACEOF
14791 cat confdefs.h >>conftest.$ac_ext
14792 cat >>conftest.$ac_ext <<_ACEOF
14793 /* end confdefs.h. */
14795 /* Override any GCC internal prototype to avoid an error.
14796 Use char because int might match the return type of a GCC
14797 builtin and then its argument prototype would still apply. */
14798 #ifdef __cplusplus
14799 extern "C"
14800 #endif
14801 char pthread_create ();
14803 main ()
14805 return pthread_create ();
14807 return 0;
14809 _ACEOF
14810 rm -f conftest.$ac_objext conftest$ac_exeext
14811 if { (ac_try="$ac_link"
14812 case "(($ac_try" in
14813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14814 *) ac_try_echo=$ac_try;;
14815 esac
14816 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14817 (eval "$ac_link") 2>conftest.er1
14818 ac_status=$?
14819 grep -v '^ *+' conftest.er1 >conftest.err
14820 rm -f conftest.er1
14821 cat conftest.err >&5
14822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14823 (exit $ac_status); } && {
14824 test -z "$ac_c_werror_flag" ||
14825 test ! -s conftest.err
14826 } && test -s conftest$ac_exeext &&
14827 $as_test_x conftest$ac_exeext; then
14828 ac_cv_lib_pthreads_pthread_create=yes
14829 else
14830 echo "$as_me: failed program was:" >&5
14831 sed 's/^/| /' conftest.$ac_ext >&5
14833 ac_cv_lib_pthreads_pthread_create=no
14836 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14837 conftest$ac_exeext conftest.$ac_ext
14838 LIBS=$ac_check_lib_save_LIBS
14840 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_create" >&5
14841 echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_create" >&6; }
14842 if test $ac_cv_lib_pthreads_pthread_create = yes; then
14843 cat >>confdefs.h <<\_ACEOF
14844 #define WITH_THREAD 1
14845 _ACEOF
14847 posix_threads=yes
14848 LIBS="$LIBS -lpthreads"
14849 THREADOBJ="Python/thread.o"
14850 else
14852 { echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
14853 echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6; }
14854 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then
14855 echo $ECHO_N "(cached) $ECHO_C" >&6
14856 else
14857 ac_check_lib_save_LIBS=$LIBS
14858 LIBS="-lc_r $LIBS"
14859 cat >conftest.$ac_ext <<_ACEOF
14860 /* confdefs.h. */
14861 _ACEOF
14862 cat confdefs.h >>conftest.$ac_ext
14863 cat >>conftest.$ac_ext <<_ACEOF
14864 /* end confdefs.h. */
14866 /* Override any GCC internal prototype to avoid an error.
14867 Use char because int might match the return type of a GCC
14868 builtin and then its argument prototype would still apply. */
14869 #ifdef __cplusplus
14870 extern "C"
14871 #endif
14872 char pthread_create ();
14874 main ()
14876 return pthread_create ();
14878 return 0;
14880 _ACEOF
14881 rm -f conftest.$ac_objext conftest$ac_exeext
14882 if { (ac_try="$ac_link"
14883 case "(($ac_try" in
14884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14885 *) ac_try_echo=$ac_try;;
14886 esac
14887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14888 (eval "$ac_link") 2>conftest.er1
14889 ac_status=$?
14890 grep -v '^ *+' conftest.er1 >conftest.err
14891 rm -f conftest.er1
14892 cat conftest.err >&5
14893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14894 (exit $ac_status); } && {
14895 test -z "$ac_c_werror_flag" ||
14896 test ! -s conftest.err
14897 } && test -s conftest$ac_exeext &&
14898 $as_test_x conftest$ac_exeext; then
14899 ac_cv_lib_c_r_pthread_create=yes
14900 else
14901 echo "$as_me: failed program was:" >&5
14902 sed 's/^/| /' conftest.$ac_ext >&5
14904 ac_cv_lib_c_r_pthread_create=no
14907 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14908 conftest$ac_exeext conftest.$ac_ext
14909 LIBS=$ac_check_lib_save_LIBS
14911 { echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5
14912 echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6; }
14913 if test $ac_cv_lib_c_r_pthread_create = yes; then
14914 cat >>confdefs.h <<\_ACEOF
14915 #define WITH_THREAD 1
14916 _ACEOF
14918 posix_threads=yes
14919 LIBS="$LIBS -lc_r"
14920 THREADOBJ="Python/thread.o"
14921 else
14923 { echo "$as_me:$LINENO: checking for __pthread_create_system in -lpthread" >&5
14924 echo $ECHO_N "checking for __pthread_create_system in -lpthread... $ECHO_C" >&6; }
14925 if test "${ac_cv_lib_pthread___pthread_create_system+set}" = set; then
14926 echo $ECHO_N "(cached) $ECHO_C" >&6
14927 else
14928 ac_check_lib_save_LIBS=$LIBS
14929 LIBS="-lpthread $LIBS"
14930 cat >conftest.$ac_ext <<_ACEOF
14931 /* confdefs.h. */
14932 _ACEOF
14933 cat confdefs.h >>conftest.$ac_ext
14934 cat >>conftest.$ac_ext <<_ACEOF
14935 /* end confdefs.h. */
14937 /* Override any GCC internal prototype to avoid an error.
14938 Use char because int might match the return type of a GCC
14939 builtin and then its argument prototype would still apply. */
14940 #ifdef __cplusplus
14941 extern "C"
14942 #endif
14943 char __pthread_create_system ();
14945 main ()
14947 return __pthread_create_system ();
14949 return 0;
14951 _ACEOF
14952 rm -f conftest.$ac_objext conftest$ac_exeext
14953 if { (ac_try="$ac_link"
14954 case "(($ac_try" in
14955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14956 *) ac_try_echo=$ac_try;;
14957 esac
14958 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14959 (eval "$ac_link") 2>conftest.er1
14960 ac_status=$?
14961 grep -v '^ *+' conftest.er1 >conftest.err
14962 rm -f conftest.er1
14963 cat conftest.err >&5
14964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14965 (exit $ac_status); } && {
14966 test -z "$ac_c_werror_flag" ||
14967 test ! -s conftest.err
14968 } && test -s conftest$ac_exeext &&
14969 $as_test_x conftest$ac_exeext; then
14970 ac_cv_lib_pthread___pthread_create_system=yes
14971 else
14972 echo "$as_me: failed program was:" >&5
14973 sed 's/^/| /' conftest.$ac_ext >&5
14975 ac_cv_lib_pthread___pthread_create_system=no
14978 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14979 conftest$ac_exeext conftest.$ac_ext
14980 LIBS=$ac_check_lib_save_LIBS
14982 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread___pthread_create_system" >&5
14983 echo "${ECHO_T}$ac_cv_lib_pthread___pthread_create_system" >&6; }
14984 if test $ac_cv_lib_pthread___pthread_create_system = yes; then
14985 cat >>confdefs.h <<\_ACEOF
14986 #define WITH_THREAD 1
14987 _ACEOF
14989 posix_threads=yes
14990 LIBS="$LIBS -lpthread"
14991 THREADOBJ="Python/thread.o"
14992 else
14994 { echo "$as_me:$LINENO: checking for pthread_create in -lcma" >&5
14995 echo $ECHO_N "checking for pthread_create in -lcma... $ECHO_C" >&6; }
14996 if test "${ac_cv_lib_cma_pthread_create+set}" = set; then
14997 echo $ECHO_N "(cached) $ECHO_C" >&6
14998 else
14999 ac_check_lib_save_LIBS=$LIBS
15000 LIBS="-lcma $LIBS"
15001 cat >conftest.$ac_ext <<_ACEOF
15002 /* confdefs.h. */
15003 _ACEOF
15004 cat confdefs.h >>conftest.$ac_ext
15005 cat >>conftest.$ac_ext <<_ACEOF
15006 /* end confdefs.h. */
15008 /* Override any GCC internal prototype to avoid an error.
15009 Use char because int might match the return type of a GCC
15010 builtin and then its argument prototype would still apply. */
15011 #ifdef __cplusplus
15012 extern "C"
15013 #endif
15014 char pthread_create ();
15016 main ()
15018 return pthread_create ();
15020 return 0;
15022 _ACEOF
15023 rm -f conftest.$ac_objext conftest$ac_exeext
15024 if { (ac_try="$ac_link"
15025 case "(($ac_try" in
15026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15027 *) ac_try_echo=$ac_try;;
15028 esac
15029 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15030 (eval "$ac_link") 2>conftest.er1
15031 ac_status=$?
15032 grep -v '^ *+' conftest.er1 >conftest.err
15033 rm -f conftest.er1
15034 cat conftest.err >&5
15035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15036 (exit $ac_status); } && {
15037 test -z "$ac_c_werror_flag" ||
15038 test ! -s conftest.err
15039 } && test -s conftest$ac_exeext &&
15040 $as_test_x conftest$ac_exeext; then
15041 ac_cv_lib_cma_pthread_create=yes
15042 else
15043 echo "$as_me: failed program was:" >&5
15044 sed 's/^/| /' conftest.$ac_ext >&5
15046 ac_cv_lib_cma_pthread_create=no
15049 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15050 conftest$ac_exeext conftest.$ac_ext
15051 LIBS=$ac_check_lib_save_LIBS
15053 { echo "$as_me:$LINENO: result: $ac_cv_lib_cma_pthread_create" >&5
15054 echo "${ECHO_T}$ac_cv_lib_cma_pthread_create" >&6; }
15055 if test $ac_cv_lib_cma_pthread_create = yes; then
15056 cat >>confdefs.h <<\_ACEOF
15057 #define WITH_THREAD 1
15058 _ACEOF
15060 posix_threads=yes
15061 LIBS="$LIBS -lcma"
15062 THREADOBJ="Python/thread.o"
15063 else
15065 USE_THREAD_MODULE="#"
15085 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15086 conftest$ac_exeext conftest.$ac_ext
15096 { echo "$as_me:$LINENO: checking for usconfig in -lmpc" >&5
15097 echo $ECHO_N "checking for usconfig in -lmpc... $ECHO_C" >&6; }
15098 if test "${ac_cv_lib_mpc_usconfig+set}" = set; then
15099 echo $ECHO_N "(cached) $ECHO_C" >&6
15100 else
15101 ac_check_lib_save_LIBS=$LIBS
15102 LIBS="-lmpc $LIBS"
15103 cat >conftest.$ac_ext <<_ACEOF
15104 /* confdefs.h. */
15105 _ACEOF
15106 cat confdefs.h >>conftest.$ac_ext
15107 cat >>conftest.$ac_ext <<_ACEOF
15108 /* end confdefs.h. */
15110 /* Override any GCC internal prototype to avoid an error.
15111 Use char because int might match the return type of a GCC
15112 builtin and then its argument prototype would still apply. */
15113 #ifdef __cplusplus
15114 extern "C"
15115 #endif
15116 char usconfig ();
15118 main ()
15120 return usconfig ();
15122 return 0;
15124 _ACEOF
15125 rm -f conftest.$ac_objext conftest$ac_exeext
15126 if { (ac_try="$ac_link"
15127 case "(($ac_try" in
15128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15129 *) ac_try_echo=$ac_try;;
15130 esac
15131 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15132 (eval "$ac_link") 2>conftest.er1
15133 ac_status=$?
15134 grep -v '^ *+' conftest.er1 >conftest.err
15135 rm -f conftest.er1
15136 cat conftest.err >&5
15137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15138 (exit $ac_status); } && {
15139 test -z "$ac_c_werror_flag" ||
15140 test ! -s conftest.err
15141 } && test -s conftest$ac_exeext &&
15142 $as_test_x conftest$ac_exeext; then
15143 ac_cv_lib_mpc_usconfig=yes
15144 else
15145 echo "$as_me: failed program was:" >&5
15146 sed 's/^/| /' conftest.$ac_ext >&5
15148 ac_cv_lib_mpc_usconfig=no
15151 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15152 conftest$ac_exeext conftest.$ac_ext
15153 LIBS=$ac_check_lib_save_LIBS
15155 { echo "$as_me:$LINENO: result: $ac_cv_lib_mpc_usconfig" >&5
15156 echo "${ECHO_T}$ac_cv_lib_mpc_usconfig" >&6; }
15157 if test $ac_cv_lib_mpc_usconfig = yes; then
15158 cat >>confdefs.h <<\_ACEOF
15159 #define WITH_THREAD 1
15160 _ACEOF
15162 LIBS="$LIBS -lmpc"
15163 THREADOBJ="Python/thread.o"
15164 USE_THREAD_MODULE=""
15168 if test "$posix_threads" != "yes"; then
15169 { echo "$as_me:$LINENO: checking for thr_create in -lthread" >&5
15170 echo $ECHO_N "checking for thr_create in -lthread... $ECHO_C" >&6; }
15171 if test "${ac_cv_lib_thread_thr_create+set}" = set; then
15172 echo $ECHO_N "(cached) $ECHO_C" >&6
15173 else
15174 ac_check_lib_save_LIBS=$LIBS
15175 LIBS="-lthread $LIBS"
15176 cat >conftest.$ac_ext <<_ACEOF
15177 /* confdefs.h. */
15178 _ACEOF
15179 cat confdefs.h >>conftest.$ac_ext
15180 cat >>conftest.$ac_ext <<_ACEOF
15181 /* end confdefs.h. */
15183 /* Override any GCC internal prototype to avoid an error.
15184 Use char because int might match the return type of a GCC
15185 builtin and then its argument prototype would still apply. */
15186 #ifdef __cplusplus
15187 extern "C"
15188 #endif
15189 char thr_create ();
15191 main ()
15193 return thr_create ();
15195 return 0;
15197 _ACEOF
15198 rm -f conftest.$ac_objext conftest$ac_exeext
15199 if { (ac_try="$ac_link"
15200 case "(($ac_try" in
15201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15202 *) ac_try_echo=$ac_try;;
15203 esac
15204 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15205 (eval "$ac_link") 2>conftest.er1
15206 ac_status=$?
15207 grep -v '^ *+' conftest.er1 >conftest.err
15208 rm -f conftest.er1
15209 cat conftest.err >&5
15210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15211 (exit $ac_status); } && {
15212 test -z "$ac_c_werror_flag" ||
15213 test ! -s conftest.err
15214 } && test -s conftest$ac_exeext &&
15215 $as_test_x conftest$ac_exeext; then
15216 ac_cv_lib_thread_thr_create=yes
15217 else
15218 echo "$as_me: failed program was:" >&5
15219 sed 's/^/| /' conftest.$ac_ext >&5
15221 ac_cv_lib_thread_thr_create=no
15224 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15225 conftest$ac_exeext conftest.$ac_ext
15226 LIBS=$ac_check_lib_save_LIBS
15228 { echo "$as_me:$LINENO: result: $ac_cv_lib_thread_thr_create" >&5
15229 echo "${ECHO_T}$ac_cv_lib_thread_thr_create" >&6; }
15230 if test $ac_cv_lib_thread_thr_create = yes; then
15231 cat >>confdefs.h <<\_ACEOF
15232 #define WITH_THREAD 1
15233 _ACEOF
15235 LIBS="$LIBS -lthread"
15236 THREADOBJ="Python/thread.o"
15237 USE_THREAD_MODULE=""
15242 if test "$USE_THREAD_MODULE" != "#"
15243 then
15244 # If the above checks didn't disable threads, (at least) OSF1
15245 # needs this '-threads' argument during linking.
15246 case $ac_sys_system in
15247 OSF1) LDLAST=-threads;;
15248 esac
15252 if test "$posix_threads" = "yes"; then
15253 if test "$unistd_defines_pthreads" = "no"; then
15255 cat >>confdefs.h <<\_ACEOF
15256 #define _POSIX_THREADS 1
15257 _ACEOF
15261 # Bug 662787: Using semaphores causes unexplicable hangs on Solaris 8.
15262 case $ac_sys_system/$ac_sys_release in
15263 SunOS/5.6)
15264 cat >>confdefs.h <<\_ACEOF
15265 #define HAVE_PTHREAD_DESTRUCTOR 1
15266 _ACEOF
15269 SunOS/5.8)
15270 cat >>confdefs.h <<\_ACEOF
15271 #define HAVE_BROKEN_POSIX_SEMAPHORES 1
15272 _ACEOF
15275 AIX/5)
15276 cat >>confdefs.h <<\_ACEOF
15277 #define HAVE_BROKEN_POSIX_SEMAPHORES 1
15278 _ACEOF
15281 esac
15283 { echo "$as_me:$LINENO: checking if PTHREAD_SCOPE_SYSTEM is supported" >&5
15284 echo $ECHO_N "checking if PTHREAD_SCOPE_SYSTEM is supported... $ECHO_C" >&6; }
15285 if test "${ac_cv_pthread_system_supported+set}" = set; then
15286 echo $ECHO_N "(cached) $ECHO_C" >&6
15287 else
15288 if test "$cross_compiling" = yes; then
15289 ac_cv_pthread_system_supported=no
15290 else
15291 cat >conftest.$ac_ext <<_ACEOF
15292 /* confdefs.h. */
15293 _ACEOF
15294 cat confdefs.h >>conftest.$ac_ext
15295 cat >>conftest.$ac_ext <<_ACEOF
15296 /* end confdefs.h. */
15297 #include <pthread.h>
15298 void *foo(void *parm) {
15299 return NULL;
15301 main() {
15302 pthread_attr_t attr;
15303 pthread_t id;
15304 if (pthread_attr_init(&attr)) exit(-1);
15305 if (pthread_attr_setscope(&attr, PTHREAD_SCOPE_SYSTEM)) exit(-1);
15306 if (pthread_create(&id, &attr, foo, NULL)) exit(-1);
15307 exit(0);
15309 _ACEOF
15310 rm -f conftest$ac_exeext
15311 if { (ac_try="$ac_link"
15312 case "(($ac_try" in
15313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15314 *) ac_try_echo=$ac_try;;
15315 esac
15316 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15317 (eval "$ac_link") 2>&5
15318 ac_status=$?
15319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15320 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15321 { (case "(($ac_try" in
15322 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15323 *) ac_try_echo=$ac_try;;
15324 esac
15325 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15326 (eval "$ac_try") 2>&5
15327 ac_status=$?
15328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15329 (exit $ac_status); }; }; then
15330 ac_cv_pthread_system_supported=yes
15331 else
15332 echo "$as_me: program exited with status $ac_status" >&5
15333 echo "$as_me: failed program was:" >&5
15334 sed 's/^/| /' conftest.$ac_ext >&5
15336 ( exit $ac_status )
15337 ac_cv_pthread_system_supported=no
15339 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15346 { echo "$as_me:$LINENO: result: $ac_cv_pthread_system_supported" >&5
15347 echo "${ECHO_T}$ac_cv_pthread_system_supported" >&6; }
15348 if test "$ac_cv_pthread_system_supported" = "yes"; then
15350 cat >>confdefs.h <<\_ACEOF
15351 #define PTHREAD_SYSTEM_SCHED_SUPPORTED 1
15352 _ACEOF
15356 for ac_func in pthread_sigmask
15358 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15359 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15360 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15361 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15362 echo $ECHO_N "(cached) $ECHO_C" >&6
15363 else
15364 cat >conftest.$ac_ext <<_ACEOF
15365 /* confdefs.h. */
15366 _ACEOF
15367 cat confdefs.h >>conftest.$ac_ext
15368 cat >>conftest.$ac_ext <<_ACEOF
15369 /* end confdefs.h. */
15370 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15371 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15372 #define $ac_func innocuous_$ac_func
15374 /* System header to define __stub macros and hopefully few prototypes,
15375 which can conflict with char $ac_func (); below.
15376 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15377 <limits.h> exists even on freestanding compilers. */
15379 #ifdef __STDC__
15380 # include <limits.h>
15381 #else
15382 # include <assert.h>
15383 #endif
15385 #undef $ac_func
15387 /* Override any GCC internal prototype to avoid an error.
15388 Use char because int might match the return type of a GCC
15389 builtin and then its argument prototype would still apply. */
15390 #ifdef __cplusplus
15391 extern "C"
15392 #endif
15393 char $ac_func ();
15394 /* The GNU C library defines this for functions which it implements
15395 to always fail with ENOSYS. Some functions are actually named
15396 something starting with __ and the normal name is an alias. */
15397 #if defined __stub_$ac_func || defined __stub___$ac_func
15398 choke me
15399 #endif
15402 main ()
15404 return $ac_func ();
15406 return 0;
15408 _ACEOF
15409 rm -f conftest.$ac_objext conftest$ac_exeext
15410 if { (ac_try="$ac_link"
15411 case "(($ac_try" in
15412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15413 *) ac_try_echo=$ac_try;;
15414 esac
15415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15416 (eval "$ac_link") 2>conftest.er1
15417 ac_status=$?
15418 grep -v '^ *+' conftest.er1 >conftest.err
15419 rm -f conftest.er1
15420 cat conftest.err >&5
15421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15422 (exit $ac_status); } && {
15423 test -z "$ac_c_werror_flag" ||
15424 test ! -s conftest.err
15425 } && test -s conftest$ac_exeext &&
15426 $as_test_x conftest$ac_exeext; then
15427 eval "$as_ac_var=yes"
15428 else
15429 echo "$as_me: failed program was:" >&5
15430 sed 's/^/| /' conftest.$ac_ext >&5
15432 eval "$as_ac_var=no"
15435 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15436 conftest$ac_exeext conftest.$ac_ext
15438 ac_res=`eval echo '${'$as_ac_var'}'`
15439 { echo "$as_me:$LINENO: result: $ac_res" >&5
15440 echo "${ECHO_T}$ac_res" >&6; }
15441 if test `eval echo '${'$as_ac_var'}'` = yes; then
15442 cat >>confdefs.h <<_ACEOF
15443 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15444 _ACEOF
15445 case $ac_sys_system in
15446 CYGWIN*)
15448 cat >>confdefs.h <<\_ACEOF
15449 #define HAVE_BROKEN_PTHREAD_SIGMASK 1
15450 _ACEOF
15453 esac
15455 done
15460 # Check for enable-ipv6
15463 { echo "$as_me:$LINENO: checking if --enable-ipv6 is specified" >&5
15464 echo $ECHO_N "checking if --enable-ipv6 is specified... $ECHO_C" >&6; }
15465 # Check whether --enable-ipv6 was given.
15466 if test "${enable_ipv6+set}" = set; then
15467 enableval=$enable_ipv6; case "$enableval" in
15469 { echo "$as_me:$LINENO: result: no" >&5
15470 echo "${ECHO_T}no" >&6; }
15471 ipv6=no
15473 *) { echo "$as_me:$LINENO: result: yes" >&5
15474 echo "${ECHO_T}yes" >&6; }
15475 cat >>confdefs.h <<\_ACEOF
15476 #define ENABLE_IPV6 1
15477 _ACEOF
15479 ipv6=yes
15481 esac
15482 else
15484 if test "$cross_compiling" = yes; then
15485 { echo "$as_me:$LINENO: result: no" >&5
15486 echo "${ECHO_T}no" >&6; }
15487 ipv6=no
15489 else
15490 cat >conftest.$ac_ext <<_ACEOF
15491 /* confdefs.h. */
15492 _ACEOF
15493 cat confdefs.h >>conftest.$ac_ext
15494 cat >>conftest.$ac_ext <<_ACEOF
15495 /* end confdefs.h. */
15496 /* AF_INET6 available check */
15497 #include <sys/types.h>
15498 #include <sys/socket.h>
15499 main()
15501 if (socket(AF_INET6, SOCK_STREAM, 0) < 0)
15502 exit(1);
15503 else
15504 exit(0);
15507 _ACEOF
15508 rm -f conftest$ac_exeext
15509 if { (ac_try="$ac_link"
15510 case "(($ac_try" in
15511 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15512 *) ac_try_echo=$ac_try;;
15513 esac
15514 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15515 (eval "$ac_link") 2>&5
15516 ac_status=$?
15517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15518 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15519 { (case "(($ac_try" in
15520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15521 *) ac_try_echo=$ac_try;;
15522 esac
15523 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15524 (eval "$ac_try") 2>&5
15525 ac_status=$?
15526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15527 (exit $ac_status); }; }; then
15528 { echo "$as_me:$LINENO: result: yes" >&5
15529 echo "${ECHO_T}yes" >&6; }
15530 ipv6=yes
15531 else
15532 echo "$as_me: program exited with status $ac_status" >&5
15533 echo "$as_me: failed program was:" >&5
15534 sed 's/^/| /' conftest.$ac_ext >&5
15536 ( exit $ac_status )
15537 { echo "$as_me:$LINENO: result: no" >&5
15538 echo "${ECHO_T}no" >&6; }
15539 ipv6=no
15541 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15546 if test "$ipv6" = "yes"; then
15547 { echo "$as_me:$LINENO: checking if RFC2553 API is available" >&5
15548 echo $ECHO_N "checking if RFC2553 API is available... $ECHO_C" >&6; }
15549 cat >conftest.$ac_ext <<_ACEOF
15550 /* confdefs.h. */
15551 _ACEOF
15552 cat confdefs.h >>conftest.$ac_ext
15553 cat >>conftest.$ac_ext <<_ACEOF
15554 /* end confdefs.h. */
15555 #include <sys/types.h>
15556 #include <netinet/in.h>
15558 main ()
15560 struct sockaddr_in6 x;
15561 x.sin6_scope_id;
15563 return 0;
15565 _ACEOF
15566 rm -f conftest.$ac_objext
15567 if { (ac_try="$ac_compile"
15568 case "(($ac_try" in
15569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15570 *) ac_try_echo=$ac_try;;
15571 esac
15572 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15573 (eval "$ac_compile") 2>conftest.er1
15574 ac_status=$?
15575 grep -v '^ *+' conftest.er1 >conftest.err
15576 rm -f conftest.er1
15577 cat conftest.err >&5
15578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15579 (exit $ac_status); } && {
15580 test -z "$ac_c_werror_flag" ||
15581 test ! -s conftest.err
15582 } && test -s conftest.$ac_objext; then
15583 { echo "$as_me:$LINENO: result: yes" >&5
15584 echo "${ECHO_T}yes" >&6; }
15585 ipv6=yes
15586 else
15587 echo "$as_me: failed program was:" >&5
15588 sed 's/^/| /' conftest.$ac_ext >&5
15590 { echo "$as_me:$LINENO: result: no" >&5
15591 echo "${ECHO_T}no" >&6; }
15592 ipv6=no
15595 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15598 if test "$ipv6" = "yes"; then
15599 cat >>confdefs.h <<\_ACEOF
15600 #define ENABLE_IPV6 1
15601 _ACEOF
15608 ipv6type=unknown
15609 ipv6lib=none
15610 ipv6trylibc=no
15612 if test "$ipv6" = "yes"; then
15613 { echo "$as_me:$LINENO: checking ipv6 stack type" >&5
15614 echo $ECHO_N "checking ipv6 stack type... $ECHO_C" >&6; }
15615 for i in inria kame linux-glibc linux-inet6 solaris toshiba v6d zeta;
15617 case $i in
15618 inria)
15619 cat >conftest.$ac_ext <<_ACEOF
15620 /* confdefs.h. */
15621 _ACEOF
15622 cat confdefs.h >>conftest.$ac_ext
15623 cat >>conftest.$ac_ext <<_ACEOF
15624 /* end confdefs.h. */
15626 #include <netinet/in.h>
15627 #ifdef IPV6_INRIA_VERSION
15629 #endif
15630 _ACEOF
15631 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15632 $EGREP "yes" >/dev/null 2>&1; then
15633 ipv6type=$i
15635 rm -f conftest*
15638 kame)
15639 cat >conftest.$ac_ext <<_ACEOF
15640 /* confdefs.h. */
15641 _ACEOF
15642 cat confdefs.h >>conftest.$ac_ext
15643 cat >>conftest.$ac_ext <<_ACEOF
15644 /* end confdefs.h. */
15646 #include <netinet/in.h>
15647 #ifdef __KAME__
15649 #endif
15650 _ACEOF
15651 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15652 $EGREP "yes" >/dev/null 2>&1; then
15653 ipv6type=$i;
15654 ipv6lib=inet6
15655 ipv6libdir=/usr/local/v6/lib
15656 ipv6trylibc=yes
15658 rm -f conftest*
15661 linux-glibc)
15662 cat >conftest.$ac_ext <<_ACEOF
15663 /* confdefs.h. */
15664 _ACEOF
15665 cat confdefs.h >>conftest.$ac_ext
15666 cat >>conftest.$ac_ext <<_ACEOF
15667 /* end confdefs.h. */
15669 #include <features.h>
15670 #if defined(__GLIBC__) && ((__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2))
15672 #endif
15673 _ACEOF
15674 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15675 $EGREP "yes" >/dev/null 2>&1; then
15676 ipv6type=$i;
15677 ipv6trylibc=yes
15679 rm -f conftest*
15682 linux-inet6)
15683 if test -d /usr/inet6; then
15684 ipv6type=$i
15685 ipv6lib=inet6
15686 ipv6libdir=/usr/inet6/lib
15687 BASECFLAGS="-I/usr/inet6/include $BASECFLAGS"
15690 solaris)
15691 if test -f /etc/netconfig; then
15692 if /usr/xpg4/bin/grep -q tcp6 /etc/netconfig; then
15693 ipv6type=$i
15694 ipv6trylibc=yes
15698 toshiba)
15699 cat >conftest.$ac_ext <<_ACEOF
15700 /* confdefs.h. */
15701 _ACEOF
15702 cat confdefs.h >>conftest.$ac_ext
15703 cat >>conftest.$ac_ext <<_ACEOF
15704 /* end confdefs.h. */
15706 #include <sys/param.h>
15707 #ifdef _TOSHIBA_INET6
15709 #endif
15710 _ACEOF
15711 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15712 $EGREP "yes" >/dev/null 2>&1; then
15713 ipv6type=$i;
15714 ipv6lib=inet6;
15715 ipv6libdir=/usr/local/v6/lib
15717 rm -f conftest*
15720 v6d)
15721 cat >conftest.$ac_ext <<_ACEOF
15722 /* confdefs.h. */
15723 _ACEOF
15724 cat confdefs.h >>conftest.$ac_ext
15725 cat >>conftest.$ac_ext <<_ACEOF
15726 /* end confdefs.h. */
15728 #include </usr/local/v6/include/sys/v6config.h>
15729 #ifdef __V6D__
15731 #endif
15732 _ACEOF
15733 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15734 $EGREP "yes" >/dev/null 2>&1; then
15735 ipv6type=$i;
15736 ipv6lib=v6;
15737 ipv6libdir=/usr/local/v6/lib;
15738 BASECFLAGS="-I/usr/local/v6/include $BASECFLAGS"
15740 rm -f conftest*
15743 zeta)
15744 cat >conftest.$ac_ext <<_ACEOF
15745 /* confdefs.h. */
15746 _ACEOF
15747 cat confdefs.h >>conftest.$ac_ext
15748 cat >>conftest.$ac_ext <<_ACEOF
15749 /* end confdefs.h. */
15751 #include <sys/param.h>
15752 #ifdef _ZETA_MINAMI_INET6
15754 #endif
15755 _ACEOF
15756 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15757 $EGREP "yes" >/dev/null 2>&1; then
15758 ipv6type=$i;
15759 ipv6lib=inet6;
15760 ipv6libdir=/usr/local/v6/lib
15762 rm -f conftest*
15765 esac
15766 if test "$ipv6type" != "unknown"; then
15767 break
15769 done
15770 { echo "$as_me:$LINENO: result: $ipv6type" >&5
15771 echo "${ECHO_T}$ipv6type" >&6; }
15774 if test "$ipv6" = "yes" -a "$ipv6lib" != "none"; then
15775 if test -d $ipv6libdir -a -f $ipv6libdir/lib$ipv6lib.a; then
15776 LIBS="-L$ipv6libdir -l$ipv6lib $LIBS"
15777 echo "using lib$ipv6lib"
15778 else
15779 if test $ipv6trylibc = "yes"; then
15780 echo "using libc"
15781 else
15782 echo 'Fatal: no $ipv6lib library found. cannot continue.'
15783 echo "You need to fetch lib$ipv6lib.a from appropriate"
15784 echo 'ipv6 kit and compile beforehand.'
15785 exit 1
15790 { echo "$as_me:$LINENO: checking for OSX 10.5 SDK or later" >&5
15791 echo $ECHO_N "checking for OSX 10.5 SDK or later... $ECHO_C" >&6; }
15792 cat >conftest.$ac_ext <<_ACEOF
15793 /* confdefs.h. */
15794 _ACEOF
15795 cat confdefs.h >>conftest.$ac_ext
15796 cat >>conftest.$ac_ext <<_ACEOF
15797 /* end confdefs.h. */
15798 #include <Carbon/Carbon.h>
15800 main ()
15802 FSIORefNum fRef = 0
15804 return 0;
15806 _ACEOF
15807 rm -f conftest.$ac_objext
15808 if { (ac_try="$ac_compile"
15809 case "(($ac_try" in
15810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15811 *) ac_try_echo=$ac_try;;
15812 esac
15813 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15814 (eval "$ac_compile") 2>conftest.er1
15815 ac_status=$?
15816 grep -v '^ *+' conftest.er1 >conftest.err
15817 rm -f conftest.er1
15818 cat conftest.err >&5
15819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15820 (exit $ac_status); } && {
15821 test -z "$ac_c_werror_flag" ||
15822 test ! -s conftest.err
15823 } && test -s conftest.$ac_objext; then
15825 cat >>confdefs.h <<\_ACEOF
15826 #define HAVE_OSX105_SDK 1
15827 _ACEOF
15829 { echo "$as_me:$LINENO: result: yes" >&5
15830 echo "${ECHO_T}yes" >&6; }
15831 else
15832 echo "$as_me: failed program was:" >&5
15833 sed 's/^/| /' conftest.$ac_ext >&5
15835 { echo "$as_me:$LINENO: result: no" >&5
15836 echo "${ECHO_T}no" >&6; }
15840 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15842 # Check for --with-doc-strings
15843 { echo "$as_me:$LINENO: checking for --with-doc-strings" >&5
15844 echo $ECHO_N "checking for --with-doc-strings... $ECHO_C" >&6; }
15846 # Check whether --with-doc-strings was given.
15847 if test "${with_doc_strings+set}" = set; then
15848 withval=$with_doc_strings;
15852 if test -z "$with_doc_strings"
15853 then with_doc_strings="yes"
15855 if test "$with_doc_strings" != "no"
15856 then
15858 cat >>confdefs.h <<\_ACEOF
15859 #define WITH_DOC_STRINGS 1
15860 _ACEOF
15863 { echo "$as_me:$LINENO: result: $with_doc_strings" >&5
15864 echo "${ECHO_T}$with_doc_strings" >&6; }
15866 # Check for Python-specific malloc support
15867 { echo "$as_me:$LINENO: checking for --with-tsc" >&5
15868 echo $ECHO_N "checking for --with-tsc... $ECHO_C" >&6; }
15870 # Check whether --with-tsc was given.
15871 if test "${with_tsc+set}" = set; then
15872 withval=$with_tsc;
15873 if test "$withval" != no
15874 then
15876 cat >>confdefs.h <<\_ACEOF
15877 #define WITH_TSC 1
15878 _ACEOF
15880 { echo "$as_me:$LINENO: result: yes" >&5
15881 echo "${ECHO_T}yes" >&6; }
15882 else { echo "$as_me:$LINENO: result: no" >&5
15883 echo "${ECHO_T}no" >&6; }
15885 else
15886 { echo "$as_me:$LINENO: result: no" >&5
15887 echo "${ECHO_T}no" >&6; }
15891 # Check for Python-specific malloc support
15892 { echo "$as_me:$LINENO: checking for --with-pymalloc" >&5
15893 echo $ECHO_N "checking for --with-pymalloc... $ECHO_C" >&6; }
15895 # Check whether --with-pymalloc was given.
15896 if test "${with_pymalloc+set}" = set; then
15897 withval=$with_pymalloc;
15901 if test -z "$with_pymalloc"
15902 then with_pymalloc="yes"
15904 if test "$with_pymalloc" != "no"
15905 then
15907 cat >>confdefs.h <<\_ACEOF
15908 #define WITH_PYMALLOC 1
15909 _ACEOF
15912 { echo "$as_me:$LINENO: result: $with_pymalloc" >&5
15913 echo "${ECHO_T}$with_pymalloc" >&6; }
15915 # Check for --with-wctype-functions
15916 { echo "$as_me:$LINENO: checking for --with-wctype-functions" >&5
15917 echo $ECHO_N "checking for --with-wctype-functions... $ECHO_C" >&6; }
15919 # Check whether --with-wctype-functions was given.
15920 if test "${with_wctype_functions+set}" = set; then
15921 withval=$with_wctype_functions;
15922 if test "$withval" != no
15923 then
15925 cat >>confdefs.h <<\_ACEOF
15926 #define WANT_WCTYPE_FUNCTIONS 1
15927 _ACEOF
15929 { echo "$as_me:$LINENO: result: yes" >&5
15930 echo "${ECHO_T}yes" >&6; }
15931 else { echo "$as_me:$LINENO: result: no" >&5
15932 echo "${ECHO_T}no" >&6; }
15934 else
15935 { echo "$as_me:$LINENO: result: no" >&5
15936 echo "${ECHO_T}no" >&6; }
15940 # -I${DLINCLDIR} is added to the compile rule for importdl.o
15942 DLINCLDIR=.
15944 # the dlopen() function means we might want to use dynload_shlib.o. some
15945 # platforms, such as AIX, have dlopen(), but don't want to use it.
15947 for ac_func in dlopen
15949 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15950 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15951 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15952 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15953 echo $ECHO_N "(cached) $ECHO_C" >&6
15954 else
15955 cat >conftest.$ac_ext <<_ACEOF
15956 /* confdefs.h. */
15957 _ACEOF
15958 cat confdefs.h >>conftest.$ac_ext
15959 cat >>conftest.$ac_ext <<_ACEOF
15960 /* end confdefs.h. */
15961 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15962 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15963 #define $ac_func innocuous_$ac_func
15965 /* System header to define __stub macros and hopefully few prototypes,
15966 which can conflict with char $ac_func (); below.
15967 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15968 <limits.h> exists even on freestanding compilers. */
15970 #ifdef __STDC__
15971 # include <limits.h>
15972 #else
15973 # include <assert.h>
15974 #endif
15976 #undef $ac_func
15978 /* Override any GCC internal prototype to avoid an error.
15979 Use char because int might match the return type of a GCC
15980 builtin and then its argument prototype would still apply. */
15981 #ifdef __cplusplus
15982 extern "C"
15983 #endif
15984 char $ac_func ();
15985 /* The GNU C library defines this for functions which it implements
15986 to always fail with ENOSYS. Some functions are actually named
15987 something starting with __ and the normal name is an alias. */
15988 #if defined __stub_$ac_func || defined __stub___$ac_func
15989 choke me
15990 #endif
15993 main ()
15995 return $ac_func ();
15997 return 0;
15999 _ACEOF
16000 rm -f conftest.$ac_objext conftest$ac_exeext
16001 if { (ac_try="$ac_link"
16002 case "(($ac_try" in
16003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16004 *) ac_try_echo=$ac_try;;
16005 esac
16006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16007 (eval "$ac_link") 2>conftest.er1
16008 ac_status=$?
16009 grep -v '^ *+' conftest.er1 >conftest.err
16010 rm -f conftest.er1
16011 cat conftest.err >&5
16012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16013 (exit $ac_status); } && {
16014 test -z "$ac_c_werror_flag" ||
16015 test ! -s conftest.err
16016 } && test -s conftest$ac_exeext &&
16017 $as_test_x conftest$ac_exeext; then
16018 eval "$as_ac_var=yes"
16019 else
16020 echo "$as_me: failed program was:" >&5
16021 sed 's/^/| /' conftest.$ac_ext >&5
16023 eval "$as_ac_var=no"
16026 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16027 conftest$ac_exeext conftest.$ac_ext
16029 ac_res=`eval echo '${'$as_ac_var'}'`
16030 { echo "$as_me:$LINENO: result: $ac_res" >&5
16031 echo "${ECHO_T}$ac_res" >&6; }
16032 if test `eval echo '${'$as_ac_var'}'` = yes; then
16033 cat >>confdefs.h <<_ACEOF
16034 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16035 _ACEOF
16038 done
16041 # DYNLOADFILE specifies which dynload_*.o file we will use for dynamic
16042 # loading of modules.
16044 { echo "$as_me:$LINENO: checking DYNLOADFILE" >&5
16045 echo $ECHO_N "checking DYNLOADFILE... $ECHO_C" >&6; }
16046 if test -z "$DYNLOADFILE"
16047 then
16048 case $ac_sys_system/$ac_sys_release in
16049 AIX*) # Use dynload_shlib.c and dlopen() if we have it; otherwise dynload_aix.c
16050 if test "$ac_cv_func_dlopen" = yes
16051 then DYNLOADFILE="dynload_shlib.o"
16052 else DYNLOADFILE="dynload_aix.o"
16055 BeOS*) DYNLOADFILE="dynload_beos.o";;
16056 hp*|HP*) DYNLOADFILE="dynload_hpux.o";;
16057 # Use dynload_next.c only on 10.2 and below, which don't have native dlopen()
16058 Darwin/[0156]\..*) DYNLOADFILE="dynload_next.o";;
16059 atheos*) DYNLOADFILE="dynload_atheos.o";;
16061 # use dynload_shlib.c and dlopen() if we have it; otherwise stub
16062 # out any dynamic loading
16063 if test "$ac_cv_func_dlopen" = yes
16064 then DYNLOADFILE="dynload_shlib.o"
16065 else DYNLOADFILE="dynload_stub.o"
16068 esac
16070 { echo "$as_me:$LINENO: result: $DYNLOADFILE" >&5
16071 echo "${ECHO_T}$DYNLOADFILE" >&6; }
16072 if test "$DYNLOADFILE" != "dynload_stub.o"
16073 then
16075 cat >>confdefs.h <<\_ACEOF
16076 #define HAVE_DYNAMIC_LOADING 1
16077 _ACEOF
16081 # MACHDEP_OBJS can be set to platform-specific object files needed by Python
16084 { echo "$as_me:$LINENO: checking MACHDEP_OBJS" >&5
16085 echo $ECHO_N "checking MACHDEP_OBJS... $ECHO_C" >&6; }
16086 if test -z "$MACHDEP_OBJS"
16087 then
16088 MACHDEP_OBJS=$extra_machdep_objs
16089 else
16090 MACHDEP_OBJS="$MACHDEP_OBJS $extra_machdep_objs"
16092 { echo "$as_me:$LINENO: result: MACHDEP_OBJS" >&5
16093 echo "${ECHO_T}MACHDEP_OBJS" >&6; }
16095 # checks for library functions
16177 for ac_func in alarm setitimer getitimer bind_textdomain_codeset chown \
16178 clock confstr ctermid execv fchmod fchown fork fpathconf ftime ftruncate \
16179 gai_strerror getgroups getlogin getloadavg getpeername getpgid getpid \
16180 getpriority getpwent getspnam getspent getsid getwd \
16181 kill killpg lchmod lchown lstat mkfifo mknod mktime \
16182 mremap nice pathconf pause plock poll pthread_init \
16183 putenv readlink realpath \
16184 select setegid seteuid setgid \
16185 setlocale setregid setreuid setsid setpgid setpgrp setuid setvbuf snprintf \
16186 sigaction siginterrupt sigrelse strftime \
16187 sysconf tcgetpgrp tcsetpgrp tempnam timegm times tmpfile tmpnam tmpnam_r \
16188 truncate uname unsetenv utimes waitpid wait3 wait4 wcscoll _getpty
16190 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16191 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16192 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16193 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16194 echo $ECHO_N "(cached) $ECHO_C" >&6
16195 else
16196 cat >conftest.$ac_ext <<_ACEOF
16197 /* confdefs.h. */
16198 _ACEOF
16199 cat confdefs.h >>conftest.$ac_ext
16200 cat >>conftest.$ac_ext <<_ACEOF
16201 /* end confdefs.h. */
16202 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16203 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16204 #define $ac_func innocuous_$ac_func
16206 /* System header to define __stub macros and hopefully few prototypes,
16207 which can conflict with char $ac_func (); below.
16208 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16209 <limits.h> exists even on freestanding compilers. */
16211 #ifdef __STDC__
16212 # include <limits.h>
16213 #else
16214 # include <assert.h>
16215 #endif
16217 #undef $ac_func
16219 /* Override any GCC internal prototype to avoid an error.
16220 Use char because int might match the return type of a GCC
16221 builtin and then its argument prototype would still apply. */
16222 #ifdef __cplusplus
16223 extern "C"
16224 #endif
16225 char $ac_func ();
16226 /* The GNU C library defines this for functions which it implements
16227 to always fail with ENOSYS. Some functions are actually named
16228 something starting with __ and the normal name is an alias. */
16229 #if defined __stub_$ac_func || defined __stub___$ac_func
16230 choke me
16231 #endif
16234 main ()
16236 return $ac_func ();
16238 return 0;
16240 _ACEOF
16241 rm -f conftest.$ac_objext conftest$ac_exeext
16242 if { (ac_try="$ac_link"
16243 case "(($ac_try" in
16244 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16245 *) ac_try_echo=$ac_try;;
16246 esac
16247 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16248 (eval "$ac_link") 2>conftest.er1
16249 ac_status=$?
16250 grep -v '^ *+' conftest.er1 >conftest.err
16251 rm -f conftest.er1
16252 cat conftest.err >&5
16253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16254 (exit $ac_status); } && {
16255 test -z "$ac_c_werror_flag" ||
16256 test ! -s conftest.err
16257 } && test -s conftest$ac_exeext &&
16258 $as_test_x conftest$ac_exeext; then
16259 eval "$as_ac_var=yes"
16260 else
16261 echo "$as_me: failed program was:" >&5
16262 sed 's/^/| /' conftest.$ac_ext >&5
16264 eval "$as_ac_var=no"
16267 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16268 conftest$ac_exeext conftest.$ac_ext
16270 ac_res=`eval echo '${'$as_ac_var'}'`
16271 { echo "$as_me:$LINENO: result: $ac_res" >&5
16272 echo "${ECHO_T}$ac_res" >&6; }
16273 if test `eval echo '${'$as_ac_var'}'` = yes; then
16274 cat >>confdefs.h <<_ACEOF
16275 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16276 _ACEOF
16279 done
16282 # For some functions, having a definition is not sufficient, since
16283 # we want to take their address.
16284 { echo "$as_me:$LINENO: checking for chroot" >&5
16285 echo $ECHO_N "checking for chroot... $ECHO_C" >&6; }
16286 cat >conftest.$ac_ext <<_ACEOF
16287 /* confdefs.h. */
16288 _ACEOF
16289 cat confdefs.h >>conftest.$ac_ext
16290 cat >>conftest.$ac_ext <<_ACEOF
16291 /* end confdefs.h. */
16292 #include <unistd.h>
16294 main ()
16296 void *x=chroot
16298 return 0;
16300 _ACEOF
16301 rm -f conftest.$ac_objext
16302 if { (ac_try="$ac_compile"
16303 case "(($ac_try" in
16304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16305 *) ac_try_echo=$ac_try;;
16306 esac
16307 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16308 (eval "$ac_compile") 2>conftest.er1
16309 ac_status=$?
16310 grep -v '^ *+' conftest.er1 >conftest.err
16311 rm -f conftest.er1
16312 cat conftest.err >&5
16313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16314 (exit $ac_status); } && {
16315 test -z "$ac_c_werror_flag" ||
16316 test ! -s conftest.err
16317 } && test -s conftest.$ac_objext; then
16319 cat >>confdefs.h <<\_ACEOF
16320 #define HAVE_CHROOT 1
16321 _ACEOF
16323 { echo "$as_me:$LINENO: result: yes" >&5
16324 echo "${ECHO_T}yes" >&6; }
16325 else
16326 echo "$as_me: failed program was:" >&5
16327 sed 's/^/| /' conftest.$ac_ext >&5
16329 { echo "$as_me:$LINENO: result: no" >&5
16330 echo "${ECHO_T}no" >&6; }
16334 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16335 { echo "$as_me:$LINENO: checking for link" >&5
16336 echo $ECHO_N "checking for link... $ECHO_C" >&6; }
16337 cat >conftest.$ac_ext <<_ACEOF
16338 /* confdefs.h. */
16339 _ACEOF
16340 cat confdefs.h >>conftest.$ac_ext
16341 cat >>conftest.$ac_ext <<_ACEOF
16342 /* end confdefs.h. */
16343 #include <unistd.h>
16345 main ()
16347 void *x=link
16349 return 0;
16351 _ACEOF
16352 rm -f conftest.$ac_objext
16353 if { (ac_try="$ac_compile"
16354 case "(($ac_try" in
16355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16356 *) ac_try_echo=$ac_try;;
16357 esac
16358 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16359 (eval "$ac_compile") 2>conftest.er1
16360 ac_status=$?
16361 grep -v '^ *+' conftest.er1 >conftest.err
16362 rm -f conftest.er1
16363 cat conftest.err >&5
16364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16365 (exit $ac_status); } && {
16366 test -z "$ac_c_werror_flag" ||
16367 test ! -s conftest.err
16368 } && test -s conftest.$ac_objext; then
16370 cat >>confdefs.h <<\_ACEOF
16371 #define HAVE_LINK 1
16372 _ACEOF
16374 { echo "$as_me:$LINENO: result: yes" >&5
16375 echo "${ECHO_T}yes" >&6; }
16376 else
16377 echo "$as_me: failed program was:" >&5
16378 sed 's/^/| /' conftest.$ac_ext >&5
16380 { echo "$as_me:$LINENO: result: no" >&5
16381 echo "${ECHO_T}no" >&6; }
16385 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16386 { echo "$as_me:$LINENO: checking for symlink" >&5
16387 echo $ECHO_N "checking for symlink... $ECHO_C" >&6; }
16388 cat >conftest.$ac_ext <<_ACEOF
16389 /* confdefs.h. */
16390 _ACEOF
16391 cat confdefs.h >>conftest.$ac_ext
16392 cat >>conftest.$ac_ext <<_ACEOF
16393 /* end confdefs.h. */
16394 #include <unistd.h>
16396 main ()
16398 void *x=symlink
16400 return 0;
16402 _ACEOF
16403 rm -f conftest.$ac_objext
16404 if { (ac_try="$ac_compile"
16405 case "(($ac_try" in
16406 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16407 *) ac_try_echo=$ac_try;;
16408 esac
16409 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16410 (eval "$ac_compile") 2>conftest.er1
16411 ac_status=$?
16412 grep -v '^ *+' conftest.er1 >conftest.err
16413 rm -f conftest.er1
16414 cat conftest.err >&5
16415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16416 (exit $ac_status); } && {
16417 test -z "$ac_c_werror_flag" ||
16418 test ! -s conftest.err
16419 } && test -s conftest.$ac_objext; then
16421 cat >>confdefs.h <<\_ACEOF
16422 #define HAVE_SYMLINK 1
16423 _ACEOF
16425 { echo "$as_me:$LINENO: result: yes" >&5
16426 echo "${ECHO_T}yes" >&6; }
16427 else
16428 echo "$as_me: failed program was:" >&5
16429 sed 's/^/| /' conftest.$ac_ext >&5
16431 { echo "$as_me:$LINENO: result: no" >&5
16432 echo "${ECHO_T}no" >&6; }
16436 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16437 { echo "$as_me:$LINENO: checking for fchdir" >&5
16438 echo $ECHO_N "checking for fchdir... $ECHO_C" >&6; }
16439 cat >conftest.$ac_ext <<_ACEOF
16440 /* confdefs.h. */
16441 _ACEOF
16442 cat confdefs.h >>conftest.$ac_ext
16443 cat >>conftest.$ac_ext <<_ACEOF
16444 /* end confdefs.h. */
16445 #include <unistd.h>
16447 main ()
16449 void *x=fchdir
16451 return 0;
16453 _ACEOF
16454 rm -f conftest.$ac_objext
16455 if { (ac_try="$ac_compile"
16456 case "(($ac_try" in
16457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16458 *) ac_try_echo=$ac_try;;
16459 esac
16460 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16461 (eval "$ac_compile") 2>conftest.er1
16462 ac_status=$?
16463 grep -v '^ *+' conftest.er1 >conftest.err
16464 rm -f conftest.er1
16465 cat conftest.err >&5
16466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16467 (exit $ac_status); } && {
16468 test -z "$ac_c_werror_flag" ||
16469 test ! -s conftest.err
16470 } && test -s conftest.$ac_objext; then
16472 cat >>confdefs.h <<\_ACEOF
16473 #define HAVE_FCHDIR 1
16474 _ACEOF
16476 { echo "$as_me:$LINENO: result: yes" >&5
16477 echo "${ECHO_T}yes" >&6; }
16478 else
16479 echo "$as_me: failed program was:" >&5
16480 sed 's/^/| /' conftest.$ac_ext >&5
16482 { echo "$as_me:$LINENO: result: no" >&5
16483 echo "${ECHO_T}no" >&6; }
16487 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16488 { echo "$as_me:$LINENO: checking for fsync" >&5
16489 echo $ECHO_N "checking for fsync... $ECHO_C" >&6; }
16490 cat >conftest.$ac_ext <<_ACEOF
16491 /* confdefs.h. */
16492 _ACEOF
16493 cat confdefs.h >>conftest.$ac_ext
16494 cat >>conftest.$ac_ext <<_ACEOF
16495 /* end confdefs.h. */
16496 #include <unistd.h>
16498 main ()
16500 void *x=fsync
16502 return 0;
16504 _ACEOF
16505 rm -f conftest.$ac_objext
16506 if { (ac_try="$ac_compile"
16507 case "(($ac_try" in
16508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16509 *) ac_try_echo=$ac_try;;
16510 esac
16511 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16512 (eval "$ac_compile") 2>conftest.er1
16513 ac_status=$?
16514 grep -v '^ *+' conftest.er1 >conftest.err
16515 rm -f conftest.er1
16516 cat conftest.err >&5
16517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16518 (exit $ac_status); } && {
16519 test -z "$ac_c_werror_flag" ||
16520 test ! -s conftest.err
16521 } && test -s conftest.$ac_objext; then
16523 cat >>confdefs.h <<\_ACEOF
16524 #define HAVE_FSYNC 1
16525 _ACEOF
16527 { echo "$as_me:$LINENO: result: yes" >&5
16528 echo "${ECHO_T}yes" >&6; }
16529 else
16530 echo "$as_me: failed program was:" >&5
16531 sed 's/^/| /' conftest.$ac_ext >&5
16533 { echo "$as_me:$LINENO: result: no" >&5
16534 echo "${ECHO_T}no" >&6; }
16538 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16539 { echo "$as_me:$LINENO: checking for fdatasync" >&5
16540 echo $ECHO_N "checking for fdatasync... $ECHO_C" >&6; }
16541 cat >conftest.$ac_ext <<_ACEOF
16542 /* confdefs.h. */
16543 _ACEOF
16544 cat confdefs.h >>conftest.$ac_ext
16545 cat >>conftest.$ac_ext <<_ACEOF
16546 /* end confdefs.h. */
16547 #include <unistd.h>
16549 main ()
16551 void *x=fdatasync
16553 return 0;
16555 _ACEOF
16556 rm -f conftest.$ac_objext
16557 if { (ac_try="$ac_compile"
16558 case "(($ac_try" in
16559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16560 *) ac_try_echo=$ac_try;;
16561 esac
16562 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16563 (eval "$ac_compile") 2>conftest.er1
16564 ac_status=$?
16565 grep -v '^ *+' conftest.er1 >conftest.err
16566 rm -f conftest.er1
16567 cat conftest.err >&5
16568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16569 (exit $ac_status); } && {
16570 test -z "$ac_c_werror_flag" ||
16571 test ! -s conftest.err
16572 } && test -s conftest.$ac_objext; then
16574 cat >>confdefs.h <<\_ACEOF
16575 #define HAVE_FDATASYNC 1
16576 _ACEOF
16578 { echo "$as_me:$LINENO: result: yes" >&5
16579 echo "${ECHO_T}yes" >&6; }
16580 else
16581 echo "$as_me: failed program was:" >&5
16582 sed 's/^/| /' conftest.$ac_ext >&5
16584 { echo "$as_me:$LINENO: result: no" >&5
16585 echo "${ECHO_T}no" >&6; }
16589 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16590 { echo "$as_me:$LINENO: checking for epoll" >&5
16591 echo $ECHO_N "checking for epoll... $ECHO_C" >&6; }
16592 cat >conftest.$ac_ext <<_ACEOF
16593 /* confdefs.h. */
16594 _ACEOF
16595 cat confdefs.h >>conftest.$ac_ext
16596 cat >>conftest.$ac_ext <<_ACEOF
16597 /* end confdefs.h. */
16598 #include <sys/epoll.h>
16600 main ()
16602 void *x=epoll_create
16604 return 0;
16606 _ACEOF
16607 rm -f conftest.$ac_objext
16608 if { (ac_try="$ac_compile"
16609 case "(($ac_try" in
16610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16611 *) ac_try_echo=$ac_try;;
16612 esac
16613 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16614 (eval "$ac_compile") 2>conftest.er1
16615 ac_status=$?
16616 grep -v '^ *+' conftest.er1 >conftest.err
16617 rm -f conftest.er1
16618 cat conftest.err >&5
16619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16620 (exit $ac_status); } && {
16621 test -z "$ac_c_werror_flag" ||
16622 test ! -s conftest.err
16623 } && test -s conftest.$ac_objext; then
16625 cat >>confdefs.h <<\_ACEOF
16626 #define HAVE_EPOLL 1
16627 _ACEOF
16629 { echo "$as_me:$LINENO: result: yes" >&5
16630 echo "${ECHO_T}yes" >&6; }
16631 else
16632 echo "$as_me: failed program was:" >&5
16633 sed 's/^/| /' conftest.$ac_ext >&5
16635 { echo "$as_me:$LINENO: result: no" >&5
16636 echo "${ECHO_T}no" >&6; }
16640 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16641 { echo "$as_me:$LINENO: checking for kqueue" >&5
16642 echo $ECHO_N "checking for kqueue... $ECHO_C" >&6; }
16643 cat >conftest.$ac_ext <<_ACEOF
16644 /* confdefs.h. */
16645 _ACEOF
16646 cat confdefs.h >>conftest.$ac_ext
16647 cat >>conftest.$ac_ext <<_ACEOF
16648 /* end confdefs.h. */
16650 #include <sys/types.h>
16651 #include <sys/event.h>
16654 main ()
16656 int x=kqueue()
16658 return 0;
16660 _ACEOF
16661 rm -f conftest.$ac_objext
16662 if { (ac_try="$ac_compile"
16663 case "(($ac_try" in
16664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16665 *) ac_try_echo=$ac_try;;
16666 esac
16667 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16668 (eval "$ac_compile") 2>conftest.er1
16669 ac_status=$?
16670 grep -v '^ *+' conftest.er1 >conftest.err
16671 rm -f conftest.er1
16672 cat conftest.err >&5
16673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16674 (exit $ac_status); } && {
16675 test -z "$ac_c_werror_flag" ||
16676 test ! -s conftest.err
16677 } && test -s conftest.$ac_objext; then
16679 cat >>confdefs.h <<\_ACEOF
16680 #define HAVE_KQUEUE 1
16681 _ACEOF
16683 { echo "$as_me:$LINENO: result: yes" >&5
16684 echo "${ECHO_T}yes" >&6; }
16685 else
16686 echo "$as_me: failed program was:" >&5
16687 sed 's/^/| /' conftest.$ac_ext >&5
16689 { echo "$as_me:$LINENO: result: no" >&5
16690 echo "${ECHO_T}no" >&6; }
16694 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16695 # On some systems (eg. FreeBSD 5), we would find a definition of the
16696 # functions ctermid_r, setgroups in the library, but no prototype
16697 # (e.g. because we use _XOPEN_SOURCE). See whether we can take their
16698 # address to avoid compiler warnings and potential miscompilations
16699 # because of the missing prototypes.
16701 { echo "$as_me:$LINENO: checking for ctermid_r" >&5
16702 echo $ECHO_N "checking for ctermid_r... $ECHO_C" >&6; }
16703 cat >conftest.$ac_ext <<_ACEOF
16704 /* confdefs.h. */
16705 _ACEOF
16706 cat confdefs.h >>conftest.$ac_ext
16707 cat >>conftest.$ac_ext <<_ACEOF
16708 /* end confdefs.h. */
16710 #include "confdefs.h"
16711 #include <stdio.h>
16714 main ()
16716 void* p = ctermid_r
16718 return 0;
16720 _ACEOF
16721 rm -f conftest.$ac_objext
16722 if { (ac_try="$ac_compile"
16723 case "(($ac_try" in
16724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16725 *) ac_try_echo=$ac_try;;
16726 esac
16727 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16728 (eval "$ac_compile") 2>conftest.er1
16729 ac_status=$?
16730 grep -v '^ *+' conftest.er1 >conftest.err
16731 rm -f conftest.er1
16732 cat conftest.err >&5
16733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16734 (exit $ac_status); } && {
16735 test -z "$ac_c_werror_flag" ||
16736 test ! -s conftest.err
16737 } && test -s conftest.$ac_objext; then
16739 cat >>confdefs.h <<\_ACEOF
16740 #define HAVE_CTERMID_R 1
16741 _ACEOF
16743 { echo "$as_me:$LINENO: result: yes" >&5
16744 echo "${ECHO_T}yes" >&6; }
16745 else
16746 echo "$as_me: failed program was:" >&5
16747 sed 's/^/| /' conftest.$ac_ext >&5
16749 { echo "$as_me:$LINENO: result: no" >&5
16750 echo "${ECHO_T}no" >&6; }
16754 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16756 { echo "$as_me:$LINENO: checking for flock" >&5
16757 echo $ECHO_N "checking for flock... $ECHO_C" >&6; }
16758 cat >conftest.$ac_ext <<_ACEOF
16759 /* confdefs.h. */
16760 _ACEOF
16761 cat confdefs.h >>conftest.$ac_ext
16762 cat >>conftest.$ac_ext <<_ACEOF
16763 /* end confdefs.h. */
16765 #include "confdefs.h"
16766 #include <sys/file.h>
16769 main ()
16771 void* p = flock
16773 return 0;
16775 _ACEOF
16776 rm -f conftest.$ac_objext
16777 if { (ac_try="$ac_compile"
16778 case "(($ac_try" in
16779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16780 *) ac_try_echo=$ac_try;;
16781 esac
16782 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16783 (eval "$ac_compile") 2>conftest.er1
16784 ac_status=$?
16785 grep -v '^ *+' conftest.er1 >conftest.err
16786 rm -f conftest.er1
16787 cat conftest.err >&5
16788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16789 (exit $ac_status); } && {
16790 test -z "$ac_c_werror_flag" ||
16791 test ! -s conftest.err
16792 } && test -s conftest.$ac_objext; then
16794 cat >>confdefs.h <<\_ACEOF
16795 #define HAVE_FLOCK 1
16796 _ACEOF
16798 { echo "$as_me:$LINENO: result: yes" >&5
16799 echo "${ECHO_T}yes" >&6; }
16800 else
16801 echo "$as_me: failed program was:" >&5
16802 sed 's/^/| /' conftest.$ac_ext >&5
16804 { echo "$as_me:$LINENO: result: no" >&5
16805 echo "${ECHO_T}no" >&6; }
16809 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16811 { echo "$as_me:$LINENO: checking for getpagesize" >&5
16812 echo $ECHO_N "checking for getpagesize... $ECHO_C" >&6; }
16813 cat >conftest.$ac_ext <<_ACEOF
16814 /* confdefs.h. */
16815 _ACEOF
16816 cat confdefs.h >>conftest.$ac_ext
16817 cat >>conftest.$ac_ext <<_ACEOF
16818 /* end confdefs.h. */
16820 #include "confdefs.h"
16821 #include <unistd.h>
16824 main ()
16826 void* p = getpagesize
16828 return 0;
16830 _ACEOF
16831 rm -f conftest.$ac_objext
16832 if { (ac_try="$ac_compile"
16833 case "(($ac_try" in
16834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16835 *) ac_try_echo=$ac_try;;
16836 esac
16837 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16838 (eval "$ac_compile") 2>conftest.er1
16839 ac_status=$?
16840 grep -v '^ *+' conftest.er1 >conftest.err
16841 rm -f conftest.er1
16842 cat conftest.err >&5
16843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16844 (exit $ac_status); } && {
16845 test -z "$ac_c_werror_flag" ||
16846 test ! -s conftest.err
16847 } && test -s conftest.$ac_objext; then
16849 cat >>confdefs.h <<\_ACEOF
16850 #define HAVE_GETPAGESIZE 1
16851 _ACEOF
16853 { echo "$as_me:$LINENO: result: yes" >&5
16854 echo "${ECHO_T}yes" >&6; }
16855 else
16856 echo "$as_me: failed program was:" >&5
16857 sed 's/^/| /' conftest.$ac_ext >&5
16859 { echo "$as_me:$LINENO: result: no" >&5
16860 echo "${ECHO_T}no" >&6; }
16864 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16866 for ac_prog in true
16868 # Extract the first word of "$ac_prog", so it can be a program name with args.
16869 set dummy $ac_prog; ac_word=$2
16870 { echo "$as_me:$LINENO: checking for $ac_word" >&5
16871 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
16872 if test "${ac_cv_prog_TRUE+set}" = set; then
16873 echo $ECHO_N "(cached) $ECHO_C" >&6
16874 else
16875 if test -n "$TRUE"; then
16876 ac_cv_prog_TRUE="$TRUE" # Let the user override the test.
16877 else
16878 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16879 for as_dir in $PATH
16881 IFS=$as_save_IFS
16882 test -z "$as_dir" && as_dir=.
16883 for ac_exec_ext in '' $ac_executable_extensions; do
16884 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16885 ac_cv_prog_TRUE="$ac_prog"
16886 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16887 break 2
16889 done
16890 done
16891 IFS=$as_save_IFS
16895 TRUE=$ac_cv_prog_TRUE
16896 if test -n "$TRUE"; then
16897 { echo "$as_me:$LINENO: result: $TRUE" >&5
16898 echo "${ECHO_T}$TRUE" >&6; }
16899 else
16900 { echo "$as_me:$LINENO: result: no" >&5
16901 echo "${ECHO_T}no" >&6; }
16905 test -n "$TRUE" && break
16906 done
16907 test -n "$TRUE" || TRUE="/bin/true"
16910 { echo "$as_me:$LINENO: checking for inet_aton in -lc" >&5
16911 echo $ECHO_N "checking for inet_aton in -lc... $ECHO_C" >&6; }
16912 if test "${ac_cv_lib_c_inet_aton+set}" = set; then
16913 echo $ECHO_N "(cached) $ECHO_C" >&6
16914 else
16915 ac_check_lib_save_LIBS=$LIBS
16916 LIBS="-lc $LIBS"
16917 cat >conftest.$ac_ext <<_ACEOF
16918 /* confdefs.h. */
16919 _ACEOF
16920 cat confdefs.h >>conftest.$ac_ext
16921 cat >>conftest.$ac_ext <<_ACEOF
16922 /* end confdefs.h. */
16924 /* Override any GCC internal prototype to avoid an error.
16925 Use char because int might match the return type of a GCC
16926 builtin and then its argument prototype would still apply. */
16927 #ifdef __cplusplus
16928 extern "C"
16929 #endif
16930 char inet_aton ();
16932 main ()
16934 return inet_aton ();
16936 return 0;
16938 _ACEOF
16939 rm -f conftest.$ac_objext conftest$ac_exeext
16940 if { (ac_try="$ac_link"
16941 case "(($ac_try" in
16942 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16943 *) ac_try_echo=$ac_try;;
16944 esac
16945 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16946 (eval "$ac_link") 2>conftest.er1
16947 ac_status=$?
16948 grep -v '^ *+' conftest.er1 >conftest.err
16949 rm -f conftest.er1
16950 cat conftest.err >&5
16951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16952 (exit $ac_status); } && {
16953 test -z "$ac_c_werror_flag" ||
16954 test ! -s conftest.err
16955 } && test -s conftest$ac_exeext &&
16956 $as_test_x conftest$ac_exeext; then
16957 ac_cv_lib_c_inet_aton=yes
16958 else
16959 echo "$as_me: failed program was:" >&5
16960 sed 's/^/| /' conftest.$ac_ext >&5
16962 ac_cv_lib_c_inet_aton=no
16965 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16966 conftest$ac_exeext conftest.$ac_ext
16967 LIBS=$ac_check_lib_save_LIBS
16969 { echo "$as_me:$LINENO: result: $ac_cv_lib_c_inet_aton" >&5
16970 echo "${ECHO_T}$ac_cv_lib_c_inet_aton" >&6; }
16971 if test $ac_cv_lib_c_inet_aton = yes; then
16972 $ac_cv_prog_TRUE
16973 else
16975 { echo "$as_me:$LINENO: checking for inet_aton in -lresolv" >&5
16976 echo $ECHO_N "checking for inet_aton in -lresolv... $ECHO_C" >&6; }
16977 if test "${ac_cv_lib_resolv_inet_aton+set}" = set; then
16978 echo $ECHO_N "(cached) $ECHO_C" >&6
16979 else
16980 ac_check_lib_save_LIBS=$LIBS
16981 LIBS="-lresolv $LIBS"
16982 cat >conftest.$ac_ext <<_ACEOF
16983 /* confdefs.h. */
16984 _ACEOF
16985 cat confdefs.h >>conftest.$ac_ext
16986 cat >>conftest.$ac_ext <<_ACEOF
16987 /* end confdefs.h. */
16989 /* Override any GCC internal prototype to avoid an error.
16990 Use char because int might match the return type of a GCC
16991 builtin and then its argument prototype would still apply. */
16992 #ifdef __cplusplus
16993 extern "C"
16994 #endif
16995 char inet_aton ();
16997 main ()
16999 return inet_aton ();
17001 return 0;
17003 _ACEOF
17004 rm -f conftest.$ac_objext conftest$ac_exeext
17005 if { (ac_try="$ac_link"
17006 case "(($ac_try" in
17007 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17008 *) ac_try_echo=$ac_try;;
17009 esac
17010 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17011 (eval "$ac_link") 2>conftest.er1
17012 ac_status=$?
17013 grep -v '^ *+' conftest.er1 >conftest.err
17014 rm -f conftest.er1
17015 cat conftest.err >&5
17016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17017 (exit $ac_status); } && {
17018 test -z "$ac_c_werror_flag" ||
17019 test ! -s conftest.err
17020 } && test -s conftest$ac_exeext &&
17021 $as_test_x conftest$ac_exeext; then
17022 ac_cv_lib_resolv_inet_aton=yes
17023 else
17024 echo "$as_me: failed program was:" >&5
17025 sed 's/^/| /' conftest.$ac_ext >&5
17027 ac_cv_lib_resolv_inet_aton=no
17030 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17031 conftest$ac_exeext conftest.$ac_ext
17032 LIBS=$ac_check_lib_save_LIBS
17034 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_aton" >&5
17035 echo "${ECHO_T}$ac_cv_lib_resolv_inet_aton" >&6; }
17036 if test $ac_cv_lib_resolv_inet_aton = yes; then
17037 cat >>confdefs.h <<_ACEOF
17038 #define HAVE_LIBRESOLV 1
17039 _ACEOF
17041 LIBS="-lresolv $LIBS"
17049 # On Tru64, chflags seems to be present, but calling it will
17050 # exit Python
17051 { echo "$as_me:$LINENO: checking for chflags" >&5
17052 echo $ECHO_N "checking for chflags... $ECHO_C" >&6; }
17053 if test "$cross_compiling" = yes; then
17054 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
17055 See \`config.log' for more details." >&5
17056 echo "$as_me: error: cannot run test program while cross compiling
17057 See \`config.log' for more details." >&2;}
17058 { (exit 1); exit 1; }; }
17059 else
17060 cat >conftest.$ac_ext <<_ACEOF
17061 /* confdefs.h. */
17062 _ACEOF
17063 cat confdefs.h >>conftest.$ac_ext
17064 cat >>conftest.$ac_ext <<_ACEOF
17065 /* end confdefs.h. */
17067 #include <sys/stat.h>
17068 #include <unistd.h>
17069 int main(int argc, char*argv[])
17071 if(chflags(argv[0], 0) != 0)
17072 return 1;
17073 return 0;
17076 _ACEOF
17077 rm -f conftest$ac_exeext
17078 if { (ac_try="$ac_link"
17079 case "(($ac_try" in
17080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17081 *) ac_try_echo=$ac_try;;
17082 esac
17083 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17084 (eval "$ac_link") 2>&5
17085 ac_status=$?
17086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17087 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17088 { (case "(($ac_try" in
17089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17090 *) ac_try_echo=$ac_try;;
17091 esac
17092 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17093 (eval "$ac_try") 2>&5
17094 ac_status=$?
17095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17096 (exit $ac_status); }; }; then
17098 cat >>confdefs.h <<\_ACEOF
17099 #define HAVE_CHFLAGS 1
17100 _ACEOF
17102 { echo "$as_me:$LINENO: result: yes" >&5
17103 echo "${ECHO_T}yes" >&6; }
17104 else
17105 echo "$as_me: program exited with status $ac_status" >&5
17106 echo "$as_me: failed program was:" >&5
17107 sed 's/^/| /' conftest.$ac_ext >&5
17109 ( exit $ac_status )
17110 { echo "$as_me:$LINENO: result: no" >&5
17111 echo "${ECHO_T}no" >&6; }
17114 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17119 { echo "$as_me:$LINENO: checking for lchflags" >&5
17120 echo $ECHO_N "checking for lchflags... $ECHO_C" >&6; }
17121 if test "$cross_compiling" = yes; then
17122 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
17123 See \`config.log' for more details." >&5
17124 echo "$as_me: error: cannot run test program while cross compiling
17125 See \`config.log' for more details." >&2;}
17126 { (exit 1); exit 1; }; }
17127 else
17128 cat >conftest.$ac_ext <<_ACEOF
17129 /* confdefs.h. */
17130 _ACEOF
17131 cat confdefs.h >>conftest.$ac_ext
17132 cat >>conftest.$ac_ext <<_ACEOF
17133 /* end confdefs.h. */
17135 #include <sys/stat.h>
17136 #include <unistd.h>
17137 int main(int argc, char*argv[])
17139 if(lchflags(argv[0], 0) != 0)
17140 return 1;
17141 return 0;
17144 _ACEOF
17145 rm -f conftest$ac_exeext
17146 if { (ac_try="$ac_link"
17147 case "(($ac_try" in
17148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17149 *) ac_try_echo=$ac_try;;
17150 esac
17151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17152 (eval "$ac_link") 2>&5
17153 ac_status=$?
17154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17155 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17156 { (case "(($ac_try" in
17157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17158 *) ac_try_echo=$ac_try;;
17159 esac
17160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17161 (eval "$ac_try") 2>&5
17162 ac_status=$?
17163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17164 (exit $ac_status); }; }; then
17166 cat >>confdefs.h <<\_ACEOF
17167 #define HAVE_LCHFLAGS 1
17168 _ACEOF
17170 { echo "$as_me:$LINENO: result: yes" >&5
17171 echo "${ECHO_T}yes" >&6; }
17172 else
17173 echo "$as_me: program exited with status $ac_status" >&5
17174 echo "$as_me: failed program was:" >&5
17175 sed 's/^/| /' conftest.$ac_ext >&5
17177 ( exit $ac_status )
17178 { echo "$as_me:$LINENO: result: no" >&5
17179 echo "${ECHO_T}no" >&6; }
17182 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17187 case $ac_sys_system/$ac_sys_release in
17188 Darwin/*)
17189 _CUR_CFLAGS="${CFLAGS}"
17190 _CUR_LDFLAGS="${LDFLAGS}"
17191 CFLAGS="${CFLAGS} -Wl,-search_paths_first"
17192 LDFLAGS="${LDFLAGS} -Wl,-search_paths_first -L/usr/local/lib"
17194 esac
17196 { echo "$as_me:$LINENO: checking for inflateCopy in -lz" >&5
17197 echo $ECHO_N "checking for inflateCopy in -lz... $ECHO_C" >&6; }
17198 if test "${ac_cv_lib_z_inflateCopy+set}" = set; then
17199 echo $ECHO_N "(cached) $ECHO_C" >&6
17200 else
17201 ac_check_lib_save_LIBS=$LIBS
17202 LIBS="-lz $LIBS"
17203 cat >conftest.$ac_ext <<_ACEOF
17204 /* confdefs.h. */
17205 _ACEOF
17206 cat confdefs.h >>conftest.$ac_ext
17207 cat >>conftest.$ac_ext <<_ACEOF
17208 /* end confdefs.h. */
17210 /* Override any GCC internal prototype to avoid an error.
17211 Use char because int might match the return type of a GCC
17212 builtin and then its argument prototype would still apply. */
17213 #ifdef __cplusplus
17214 extern "C"
17215 #endif
17216 char inflateCopy ();
17218 main ()
17220 return inflateCopy ();
17222 return 0;
17224 _ACEOF
17225 rm -f conftest.$ac_objext conftest$ac_exeext
17226 if { (ac_try="$ac_link"
17227 case "(($ac_try" in
17228 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17229 *) ac_try_echo=$ac_try;;
17230 esac
17231 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17232 (eval "$ac_link") 2>conftest.er1
17233 ac_status=$?
17234 grep -v '^ *+' conftest.er1 >conftest.err
17235 rm -f conftest.er1
17236 cat conftest.err >&5
17237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17238 (exit $ac_status); } && {
17239 test -z "$ac_c_werror_flag" ||
17240 test ! -s conftest.err
17241 } && test -s conftest$ac_exeext &&
17242 $as_test_x conftest$ac_exeext; then
17243 ac_cv_lib_z_inflateCopy=yes
17244 else
17245 echo "$as_me: failed program was:" >&5
17246 sed 's/^/| /' conftest.$ac_ext >&5
17248 ac_cv_lib_z_inflateCopy=no
17251 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17252 conftest$ac_exeext conftest.$ac_ext
17253 LIBS=$ac_check_lib_save_LIBS
17255 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_inflateCopy" >&5
17256 echo "${ECHO_T}$ac_cv_lib_z_inflateCopy" >&6; }
17257 if test $ac_cv_lib_z_inflateCopy = yes; then
17259 cat >>confdefs.h <<\_ACEOF
17260 #define HAVE_ZLIB_COPY 1
17261 _ACEOF
17266 case $ac_sys_system/$ac_sys_release in
17267 Darwin/*)
17268 CFLAGS="${_CUR_CFLAGS}"
17269 LDFLAGS="${_CUR_LDFLAGS}"
17271 esac
17273 { echo "$as_me:$LINENO: checking for hstrerror" >&5
17274 echo $ECHO_N "checking for hstrerror... $ECHO_C" >&6; }
17275 cat >conftest.$ac_ext <<_ACEOF
17276 /* confdefs.h. */
17277 _ACEOF
17278 cat confdefs.h >>conftest.$ac_ext
17279 cat >>conftest.$ac_ext <<_ACEOF
17280 /* end confdefs.h. */
17282 #include "confdefs.h"
17283 #include <netdb.h>
17286 main ()
17288 void* p = hstrerror; hstrerror(0)
17290 return 0;
17292 _ACEOF
17293 rm -f conftest.$ac_objext conftest$ac_exeext
17294 if { (ac_try="$ac_link"
17295 case "(($ac_try" in
17296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17297 *) ac_try_echo=$ac_try;;
17298 esac
17299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17300 (eval "$ac_link") 2>conftest.er1
17301 ac_status=$?
17302 grep -v '^ *+' conftest.er1 >conftest.err
17303 rm -f conftest.er1
17304 cat conftest.err >&5
17305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17306 (exit $ac_status); } && {
17307 test -z "$ac_c_werror_flag" ||
17308 test ! -s conftest.err
17309 } && test -s conftest$ac_exeext &&
17310 $as_test_x conftest$ac_exeext; then
17312 cat >>confdefs.h <<\_ACEOF
17313 #define HAVE_HSTRERROR 1
17314 _ACEOF
17316 { echo "$as_me:$LINENO: result: yes" >&5
17317 echo "${ECHO_T}yes" >&6; }
17318 else
17319 echo "$as_me: failed program was:" >&5
17320 sed 's/^/| /' conftest.$ac_ext >&5
17322 { echo "$as_me:$LINENO: result: no" >&5
17323 echo "${ECHO_T}no" >&6; }
17327 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17328 conftest$ac_exeext conftest.$ac_ext
17330 { echo "$as_me:$LINENO: checking for inet_aton" >&5
17331 echo $ECHO_N "checking for inet_aton... $ECHO_C" >&6; }
17332 cat >conftest.$ac_ext <<_ACEOF
17333 /* confdefs.h. */
17334 _ACEOF
17335 cat confdefs.h >>conftest.$ac_ext
17336 cat >>conftest.$ac_ext <<_ACEOF
17337 /* end confdefs.h. */
17339 #include "confdefs.h"
17340 #include <sys/types.h>
17341 #include <sys/socket.h>
17342 #include <netinet/in.h>
17343 #include <arpa/inet.h>
17346 main ()
17348 void* p = inet_aton;inet_aton(0,0)
17350 return 0;
17352 _ACEOF
17353 rm -f conftest.$ac_objext conftest$ac_exeext
17354 if { (ac_try="$ac_link"
17355 case "(($ac_try" in
17356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17357 *) ac_try_echo=$ac_try;;
17358 esac
17359 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17360 (eval "$ac_link") 2>conftest.er1
17361 ac_status=$?
17362 grep -v '^ *+' conftest.er1 >conftest.err
17363 rm -f conftest.er1
17364 cat conftest.err >&5
17365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17366 (exit $ac_status); } && {
17367 test -z "$ac_c_werror_flag" ||
17368 test ! -s conftest.err
17369 } && test -s conftest$ac_exeext &&
17370 $as_test_x conftest$ac_exeext; then
17372 cat >>confdefs.h <<\_ACEOF
17373 #define HAVE_INET_ATON 1
17374 _ACEOF
17376 { echo "$as_me:$LINENO: result: yes" >&5
17377 echo "${ECHO_T}yes" >&6; }
17378 else
17379 echo "$as_me: failed program was:" >&5
17380 sed 's/^/| /' conftest.$ac_ext >&5
17382 { echo "$as_me:$LINENO: result: no" >&5
17383 echo "${ECHO_T}no" >&6; }
17387 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17388 conftest$ac_exeext conftest.$ac_ext
17390 { echo "$as_me:$LINENO: checking for inet_pton" >&5
17391 echo $ECHO_N "checking for inet_pton... $ECHO_C" >&6; }
17392 cat >conftest.$ac_ext <<_ACEOF
17393 /* confdefs.h. */
17394 _ACEOF
17395 cat confdefs.h >>conftest.$ac_ext
17396 cat >>conftest.$ac_ext <<_ACEOF
17397 /* end confdefs.h. */
17399 #include "confdefs.h"
17400 #include <sys/types.h>
17401 #include <sys/socket.h>
17402 #include <netinet/in.h>
17403 #include <arpa/inet.h>
17406 main ()
17408 void* p = inet_pton
17410 return 0;
17412 _ACEOF
17413 rm -f conftest.$ac_objext
17414 if { (ac_try="$ac_compile"
17415 case "(($ac_try" in
17416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17417 *) ac_try_echo=$ac_try;;
17418 esac
17419 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17420 (eval "$ac_compile") 2>conftest.er1
17421 ac_status=$?
17422 grep -v '^ *+' conftest.er1 >conftest.err
17423 rm -f conftest.er1
17424 cat conftest.err >&5
17425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17426 (exit $ac_status); } && {
17427 test -z "$ac_c_werror_flag" ||
17428 test ! -s conftest.err
17429 } && test -s conftest.$ac_objext; then
17431 cat >>confdefs.h <<\_ACEOF
17432 #define HAVE_INET_PTON 1
17433 _ACEOF
17435 { echo "$as_me:$LINENO: result: yes" >&5
17436 echo "${ECHO_T}yes" >&6; }
17437 else
17438 echo "$as_me: failed program was:" >&5
17439 sed 's/^/| /' conftest.$ac_ext >&5
17441 { echo "$as_me:$LINENO: result: no" >&5
17442 echo "${ECHO_T}no" >&6; }
17446 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17448 # On some systems, setgroups is in unistd.h, on others, in grp.h
17449 { echo "$as_me:$LINENO: checking for setgroups" >&5
17450 echo $ECHO_N "checking for setgroups... $ECHO_C" >&6; }
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 "confdefs.h"
17459 #include <unistd.h>
17460 #ifdef HAVE_GRP_H
17461 #include <grp.h>
17462 #endif
17465 main ()
17467 void* p = setgroups
17469 return 0;
17471 _ACEOF
17472 rm -f conftest.$ac_objext
17473 if { (ac_try="$ac_compile"
17474 case "(($ac_try" in
17475 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17476 *) ac_try_echo=$ac_try;;
17477 esac
17478 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17479 (eval "$ac_compile") 2>conftest.er1
17480 ac_status=$?
17481 grep -v '^ *+' conftest.er1 >conftest.err
17482 rm -f conftest.er1
17483 cat conftest.err >&5
17484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17485 (exit $ac_status); } && {
17486 test -z "$ac_c_werror_flag" ||
17487 test ! -s conftest.err
17488 } && test -s conftest.$ac_objext; then
17490 cat >>confdefs.h <<\_ACEOF
17491 #define HAVE_SETGROUPS 1
17492 _ACEOF
17494 { echo "$as_me:$LINENO: result: yes" >&5
17495 echo "${ECHO_T}yes" >&6; }
17496 else
17497 echo "$as_me: failed program was:" >&5
17498 sed 's/^/| /' conftest.$ac_ext >&5
17500 { echo "$as_me:$LINENO: result: no" >&5
17501 echo "${ECHO_T}no" >&6; }
17505 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17507 # check for openpty and forkpty
17510 for ac_func in openpty
17512 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17513 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17514 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17515 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17516 echo $ECHO_N "(cached) $ECHO_C" >&6
17517 else
17518 cat >conftest.$ac_ext <<_ACEOF
17519 /* confdefs.h. */
17520 _ACEOF
17521 cat confdefs.h >>conftest.$ac_ext
17522 cat >>conftest.$ac_ext <<_ACEOF
17523 /* end confdefs.h. */
17524 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17525 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17526 #define $ac_func innocuous_$ac_func
17528 /* System header to define __stub macros and hopefully few prototypes,
17529 which can conflict with char $ac_func (); below.
17530 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17531 <limits.h> exists even on freestanding compilers. */
17533 #ifdef __STDC__
17534 # include <limits.h>
17535 #else
17536 # include <assert.h>
17537 #endif
17539 #undef $ac_func
17541 /* Override any GCC internal prototype to avoid an error.
17542 Use char because int might match the return type of a GCC
17543 builtin and then its argument prototype would still apply. */
17544 #ifdef __cplusplus
17545 extern "C"
17546 #endif
17547 char $ac_func ();
17548 /* The GNU C library defines this for functions which it implements
17549 to always fail with ENOSYS. Some functions are actually named
17550 something starting with __ and the normal name is an alias. */
17551 #if defined __stub_$ac_func || defined __stub___$ac_func
17552 choke me
17553 #endif
17556 main ()
17558 return $ac_func ();
17560 return 0;
17562 _ACEOF
17563 rm -f conftest.$ac_objext conftest$ac_exeext
17564 if { (ac_try="$ac_link"
17565 case "(($ac_try" in
17566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17567 *) ac_try_echo=$ac_try;;
17568 esac
17569 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17570 (eval "$ac_link") 2>conftest.er1
17571 ac_status=$?
17572 grep -v '^ *+' conftest.er1 >conftest.err
17573 rm -f conftest.er1
17574 cat conftest.err >&5
17575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17576 (exit $ac_status); } && {
17577 test -z "$ac_c_werror_flag" ||
17578 test ! -s conftest.err
17579 } && test -s conftest$ac_exeext &&
17580 $as_test_x conftest$ac_exeext; then
17581 eval "$as_ac_var=yes"
17582 else
17583 echo "$as_me: failed program was:" >&5
17584 sed 's/^/| /' conftest.$ac_ext >&5
17586 eval "$as_ac_var=no"
17589 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17590 conftest$ac_exeext conftest.$ac_ext
17592 ac_res=`eval echo '${'$as_ac_var'}'`
17593 { echo "$as_me:$LINENO: result: $ac_res" >&5
17594 echo "${ECHO_T}$ac_res" >&6; }
17595 if test `eval echo '${'$as_ac_var'}'` = yes; then
17596 cat >>confdefs.h <<_ACEOF
17597 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17598 _ACEOF
17600 else
17601 { echo "$as_me:$LINENO: checking for openpty in -lutil" >&5
17602 echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6; }
17603 if test "${ac_cv_lib_util_openpty+set}" = set; then
17604 echo $ECHO_N "(cached) $ECHO_C" >&6
17605 else
17606 ac_check_lib_save_LIBS=$LIBS
17607 LIBS="-lutil $LIBS"
17608 cat >conftest.$ac_ext <<_ACEOF
17609 /* confdefs.h. */
17610 _ACEOF
17611 cat confdefs.h >>conftest.$ac_ext
17612 cat >>conftest.$ac_ext <<_ACEOF
17613 /* end confdefs.h. */
17615 /* Override any GCC internal prototype to avoid an error.
17616 Use char because int might match the return type of a GCC
17617 builtin and then its argument prototype would still apply. */
17618 #ifdef __cplusplus
17619 extern "C"
17620 #endif
17621 char openpty ();
17623 main ()
17625 return openpty ();
17627 return 0;
17629 _ACEOF
17630 rm -f conftest.$ac_objext conftest$ac_exeext
17631 if { (ac_try="$ac_link"
17632 case "(($ac_try" in
17633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17634 *) ac_try_echo=$ac_try;;
17635 esac
17636 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17637 (eval "$ac_link") 2>conftest.er1
17638 ac_status=$?
17639 grep -v '^ *+' conftest.er1 >conftest.err
17640 rm -f conftest.er1
17641 cat conftest.err >&5
17642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17643 (exit $ac_status); } && {
17644 test -z "$ac_c_werror_flag" ||
17645 test ! -s conftest.err
17646 } && test -s conftest$ac_exeext &&
17647 $as_test_x conftest$ac_exeext; then
17648 ac_cv_lib_util_openpty=yes
17649 else
17650 echo "$as_me: failed program was:" >&5
17651 sed 's/^/| /' conftest.$ac_ext >&5
17653 ac_cv_lib_util_openpty=no
17656 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17657 conftest$ac_exeext conftest.$ac_ext
17658 LIBS=$ac_check_lib_save_LIBS
17660 { echo "$as_me:$LINENO: result: $ac_cv_lib_util_openpty" >&5
17661 echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6; }
17662 if test $ac_cv_lib_util_openpty = yes; then
17663 cat >>confdefs.h <<\_ACEOF
17664 #define HAVE_OPENPTY 1
17665 _ACEOF
17666 LIBS="$LIBS -lutil"
17667 else
17668 { echo "$as_me:$LINENO: checking for openpty in -lbsd" >&5
17669 echo $ECHO_N "checking for openpty in -lbsd... $ECHO_C" >&6; }
17670 if test "${ac_cv_lib_bsd_openpty+set}" = set; then
17671 echo $ECHO_N "(cached) $ECHO_C" >&6
17672 else
17673 ac_check_lib_save_LIBS=$LIBS
17674 LIBS="-lbsd $LIBS"
17675 cat >conftest.$ac_ext <<_ACEOF
17676 /* confdefs.h. */
17677 _ACEOF
17678 cat confdefs.h >>conftest.$ac_ext
17679 cat >>conftest.$ac_ext <<_ACEOF
17680 /* end confdefs.h. */
17682 /* Override any GCC internal prototype to avoid an error.
17683 Use char because int might match the return type of a GCC
17684 builtin and then its argument prototype would still apply. */
17685 #ifdef __cplusplus
17686 extern "C"
17687 #endif
17688 char openpty ();
17690 main ()
17692 return openpty ();
17694 return 0;
17696 _ACEOF
17697 rm -f conftest.$ac_objext conftest$ac_exeext
17698 if { (ac_try="$ac_link"
17699 case "(($ac_try" in
17700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17701 *) ac_try_echo=$ac_try;;
17702 esac
17703 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17704 (eval "$ac_link") 2>conftest.er1
17705 ac_status=$?
17706 grep -v '^ *+' conftest.er1 >conftest.err
17707 rm -f conftest.er1
17708 cat conftest.err >&5
17709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17710 (exit $ac_status); } && {
17711 test -z "$ac_c_werror_flag" ||
17712 test ! -s conftest.err
17713 } && test -s conftest$ac_exeext &&
17714 $as_test_x conftest$ac_exeext; then
17715 ac_cv_lib_bsd_openpty=yes
17716 else
17717 echo "$as_me: failed program was:" >&5
17718 sed 's/^/| /' conftest.$ac_ext >&5
17720 ac_cv_lib_bsd_openpty=no
17723 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17724 conftest$ac_exeext conftest.$ac_ext
17725 LIBS=$ac_check_lib_save_LIBS
17727 { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_openpty" >&5
17728 echo "${ECHO_T}$ac_cv_lib_bsd_openpty" >&6; }
17729 if test $ac_cv_lib_bsd_openpty = yes; then
17730 cat >>confdefs.h <<\_ACEOF
17731 #define HAVE_OPENPTY 1
17732 _ACEOF
17733 LIBS="$LIBS -lbsd"
17741 done
17744 for ac_func in forkpty
17746 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17747 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17748 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17749 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17750 echo $ECHO_N "(cached) $ECHO_C" >&6
17751 else
17752 cat >conftest.$ac_ext <<_ACEOF
17753 /* confdefs.h. */
17754 _ACEOF
17755 cat confdefs.h >>conftest.$ac_ext
17756 cat >>conftest.$ac_ext <<_ACEOF
17757 /* end confdefs.h. */
17758 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17759 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17760 #define $ac_func innocuous_$ac_func
17762 /* System header to define __stub macros and hopefully few prototypes,
17763 which can conflict with char $ac_func (); below.
17764 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17765 <limits.h> exists even on freestanding compilers. */
17767 #ifdef __STDC__
17768 # include <limits.h>
17769 #else
17770 # include <assert.h>
17771 #endif
17773 #undef $ac_func
17775 /* Override any GCC internal prototype to avoid an error.
17776 Use char because int might match the return type of a GCC
17777 builtin and then its argument prototype would still apply. */
17778 #ifdef __cplusplus
17779 extern "C"
17780 #endif
17781 char $ac_func ();
17782 /* The GNU C library defines this for functions which it implements
17783 to always fail with ENOSYS. Some functions are actually named
17784 something starting with __ and the normal name is an alias. */
17785 #if defined __stub_$ac_func || defined __stub___$ac_func
17786 choke me
17787 #endif
17790 main ()
17792 return $ac_func ();
17794 return 0;
17796 _ACEOF
17797 rm -f conftest.$ac_objext conftest$ac_exeext
17798 if { (ac_try="$ac_link"
17799 case "(($ac_try" in
17800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17801 *) ac_try_echo=$ac_try;;
17802 esac
17803 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17804 (eval "$ac_link") 2>conftest.er1
17805 ac_status=$?
17806 grep -v '^ *+' conftest.er1 >conftest.err
17807 rm -f conftest.er1
17808 cat conftest.err >&5
17809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17810 (exit $ac_status); } && {
17811 test -z "$ac_c_werror_flag" ||
17812 test ! -s conftest.err
17813 } && test -s conftest$ac_exeext &&
17814 $as_test_x conftest$ac_exeext; then
17815 eval "$as_ac_var=yes"
17816 else
17817 echo "$as_me: failed program was:" >&5
17818 sed 's/^/| /' conftest.$ac_ext >&5
17820 eval "$as_ac_var=no"
17823 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17824 conftest$ac_exeext conftest.$ac_ext
17826 ac_res=`eval echo '${'$as_ac_var'}'`
17827 { echo "$as_me:$LINENO: result: $ac_res" >&5
17828 echo "${ECHO_T}$ac_res" >&6; }
17829 if test `eval echo '${'$as_ac_var'}'` = yes; then
17830 cat >>confdefs.h <<_ACEOF
17831 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17832 _ACEOF
17834 else
17835 { echo "$as_me:$LINENO: checking for forkpty in -lutil" >&5
17836 echo $ECHO_N "checking for forkpty in -lutil... $ECHO_C" >&6; }
17837 if test "${ac_cv_lib_util_forkpty+set}" = set; then
17838 echo $ECHO_N "(cached) $ECHO_C" >&6
17839 else
17840 ac_check_lib_save_LIBS=$LIBS
17841 LIBS="-lutil $LIBS"
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 /* Override any GCC internal prototype to avoid an error.
17850 Use char because int might match the return type of a GCC
17851 builtin and then its argument prototype would still apply. */
17852 #ifdef __cplusplus
17853 extern "C"
17854 #endif
17855 char forkpty ();
17857 main ()
17859 return forkpty ();
17861 return 0;
17863 _ACEOF
17864 rm -f conftest.$ac_objext conftest$ac_exeext
17865 if { (ac_try="$ac_link"
17866 case "(($ac_try" in
17867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17868 *) ac_try_echo=$ac_try;;
17869 esac
17870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17871 (eval "$ac_link") 2>conftest.er1
17872 ac_status=$?
17873 grep -v '^ *+' conftest.er1 >conftest.err
17874 rm -f conftest.er1
17875 cat conftest.err >&5
17876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17877 (exit $ac_status); } && {
17878 test -z "$ac_c_werror_flag" ||
17879 test ! -s conftest.err
17880 } && test -s conftest$ac_exeext &&
17881 $as_test_x conftest$ac_exeext; then
17882 ac_cv_lib_util_forkpty=yes
17883 else
17884 echo "$as_me: failed program was:" >&5
17885 sed 's/^/| /' conftest.$ac_ext >&5
17887 ac_cv_lib_util_forkpty=no
17890 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17891 conftest$ac_exeext conftest.$ac_ext
17892 LIBS=$ac_check_lib_save_LIBS
17894 { echo "$as_me:$LINENO: result: $ac_cv_lib_util_forkpty" >&5
17895 echo "${ECHO_T}$ac_cv_lib_util_forkpty" >&6; }
17896 if test $ac_cv_lib_util_forkpty = yes; then
17897 cat >>confdefs.h <<\_ACEOF
17898 #define HAVE_FORKPTY 1
17899 _ACEOF
17900 LIBS="$LIBS -lutil"
17901 else
17902 { echo "$as_me:$LINENO: checking for forkpty in -lbsd" >&5
17903 echo $ECHO_N "checking for forkpty in -lbsd... $ECHO_C" >&6; }
17904 if test "${ac_cv_lib_bsd_forkpty+set}" = set; then
17905 echo $ECHO_N "(cached) $ECHO_C" >&6
17906 else
17907 ac_check_lib_save_LIBS=$LIBS
17908 LIBS="-lbsd $LIBS"
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. */
17916 /* Override any GCC internal prototype to avoid an error.
17917 Use char because int might match the return type of a GCC
17918 builtin and then its argument prototype would still apply. */
17919 #ifdef __cplusplus
17920 extern "C"
17921 #endif
17922 char forkpty ();
17924 main ()
17926 return forkpty ();
17928 return 0;
17930 _ACEOF
17931 rm -f conftest.$ac_objext conftest$ac_exeext
17932 if { (ac_try="$ac_link"
17933 case "(($ac_try" in
17934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17935 *) ac_try_echo=$ac_try;;
17936 esac
17937 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17938 (eval "$ac_link") 2>conftest.er1
17939 ac_status=$?
17940 grep -v '^ *+' conftest.er1 >conftest.err
17941 rm -f conftest.er1
17942 cat conftest.err >&5
17943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17944 (exit $ac_status); } && {
17945 test -z "$ac_c_werror_flag" ||
17946 test ! -s conftest.err
17947 } && test -s conftest$ac_exeext &&
17948 $as_test_x conftest$ac_exeext; then
17949 ac_cv_lib_bsd_forkpty=yes
17950 else
17951 echo "$as_me: failed program was:" >&5
17952 sed 's/^/| /' conftest.$ac_ext >&5
17954 ac_cv_lib_bsd_forkpty=no
17957 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17958 conftest$ac_exeext conftest.$ac_ext
17959 LIBS=$ac_check_lib_save_LIBS
17961 { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_forkpty" >&5
17962 echo "${ECHO_T}$ac_cv_lib_bsd_forkpty" >&6; }
17963 if test $ac_cv_lib_bsd_forkpty = yes; then
17964 cat >>confdefs.h <<\_ACEOF
17965 #define HAVE_FORKPTY 1
17966 _ACEOF
17967 LIBS="$LIBS -lbsd"
17975 done
17978 # Stuff for expat.
17980 for ac_func in memmove
17982 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17983 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17984 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17985 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17986 echo $ECHO_N "(cached) $ECHO_C" >&6
17987 else
17988 cat >conftest.$ac_ext <<_ACEOF
17989 /* confdefs.h. */
17990 _ACEOF
17991 cat confdefs.h >>conftest.$ac_ext
17992 cat >>conftest.$ac_ext <<_ACEOF
17993 /* end confdefs.h. */
17994 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17995 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17996 #define $ac_func innocuous_$ac_func
17998 /* System header to define __stub macros and hopefully few prototypes,
17999 which can conflict with char $ac_func (); below.
18000 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18001 <limits.h> exists even on freestanding compilers. */
18003 #ifdef __STDC__
18004 # include <limits.h>
18005 #else
18006 # include <assert.h>
18007 #endif
18009 #undef $ac_func
18011 /* Override any GCC internal prototype to avoid an error.
18012 Use char because int might match the return type of a GCC
18013 builtin and then its argument prototype would still apply. */
18014 #ifdef __cplusplus
18015 extern "C"
18016 #endif
18017 char $ac_func ();
18018 /* The GNU C library defines this for functions which it implements
18019 to always fail with ENOSYS. Some functions are actually named
18020 something starting with __ and the normal name is an alias. */
18021 #if defined __stub_$ac_func || defined __stub___$ac_func
18022 choke me
18023 #endif
18026 main ()
18028 return $ac_func ();
18030 return 0;
18032 _ACEOF
18033 rm -f conftest.$ac_objext conftest$ac_exeext
18034 if { (ac_try="$ac_link"
18035 case "(($ac_try" in
18036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18037 *) ac_try_echo=$ac_try;;
18038 esac
18039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18040 (eval "$ac_link") 2>conftest.er1
18041 ac_status=$?
18042 grep -v '^ *+' conftest.er1 >conftest.err
18043 rm -f conftest.er1
18044 cat conftest.err >&5
18045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18046 (exit $ac_status); } && {
18047 test -z "$ac_c_werror_flag" ||
18048 test ! -s conftest.err
18049 } && test -s conftest$ac_exeext &&
18050 $as_test_x conftest$ac_exeext; then
18051 eval "$as_ac_var=yes"
18052 else
18053 echo "$as_me: failed program was:" >&5
18054 sed 's/^/| /' conftest.$ac_ext >&5
18056 eval "$as_ac_var=no"
18059 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18060 conftest$ac_exeext conftest.$ac_ext
18062 ac_res=`eval echo '${'$as_ac_var'}'`
18063 { echo "$as_me:$LINENO: result: $ac_res" >&5
18064 echo "${ECHO_T}$ac_res" >&6; }
18065 if test `eval echo '${'$as_ac_var'}'` = yes; then
18066 cat >>confdefs.h <<_ACEOF
18067 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18068 _ACEOF
18071 done
18074 # check for long file support functions
18081 for ac_func in fseek64 fseeko fstatvfs ftell64 ftello statvfs
18083 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18084 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18085 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18086 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18087 echo $ECHO_N "(cached) $ECHO_C" >&6
18088 else
18089 cat >conftest.$ac_ext <<_ACEOF
18090 /* confdefs.h. */
18091 _ACEOF
18092 cat confdefs.h >>conftest.$ac_ext
18093 cat >>conftest.$ac_ext <<_ACEOF
18094 /* end confdefs.h. */
18095 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18096 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18097 #define $ac_func innocuous_$ac_func
18099 /* System header to define __stub macros and hopefully few prototypes,
18100 which can conflict with char $ac_func (); below.
18101 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18102 <limits.h> exists even on freestanding compilers. */
18104 #ifdef __STDC__
18105 # include <limits.h>
18106 #else
18107 # include <assert.h>
18108 #endif
18110 #undef $ac_func
18112 /* Override any GCC internal prototype to avoid an error.
18113 Use char because int might match the return type of a GCC
18114 builtin and then its argument prototype would still apply. */
18115 #ifdef __cplusplus
18116 extern "C"
18117 #endif
18118 char $ac_func ();
18119 /* The GNU C library defines this for functions which it implements
18120 to always fail with ENOSYS. Some functions are actually named
18121 something starting with __ and the normal name is an alias. */
18122 #if defined __stub_$ac_func || defined __stub___$ac_func
18123 choke me
18124 #endif
18127 main ()
18129 return $ac_func ();
18131 return 0;
18133 _ACEOF
18134 rm -f conftest.$ac_objext conftest$ac_exeext
18135 if { (ac_try="$ac_link"
18136 case "(($ac_try" in
18137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18138 *) ac_try_echo=$ac_try;;
18139 esac
18140 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18141 (eval "$ac_link") 2>conftest.er1
18142 ac_status=$?
18143 grep -v '^ *+' conftest.er1 >conftest.err
18144 rm -f conftest.er1
18145 cat conftest.err >&5
18146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18147 (exit $ac_status); } && {
18148 test -z "$ac_c_werror_flag" ||
18149 test ! -s conftest.err
18150 } && test -s conftest$ac_exeext &&
18151 $as_test_x conftest$ac_exeext; then
18152 eval "$as_ac_var=yes"
18153 else
18154 echo "$as_me: failed program was:" >&5
18155 sed 's/^/| /' conftest.$ac_ext >&5
18157 eval "$as_ac_var=no"
18160 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18161 conftest$ac_exeext conftest.$ac_ext
18163 ac_res=`eval echo '${'$as_ac_var'}'`
18164 { echo "$as_me:$LINENO: result: $ac_res" >&5
18165 echo "${ECHO_T}$ac_res" >&6; }
18166 if test `eval echo '${'$as_ac_var'}'` = yes; then
18167 cat >>confdefs.h <<_ACEOF
18168 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18169 _ACEOF
18172 done
18178 for ac_func in dup2 getcwd strdup
18180 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18181 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18182 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18183 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18184 echo $ECHO_N "(cached) $ECHO_C" >&6
18185 else
18186 cat >conftest.$ac_ext <<_ACEOF
18187 /* confdefs.h. */
18188 _ACEOF
18189 cat confdefs.h >>conftest.$ac_ext
18190 cat >>conftest.$ac_ext <<_ACEOF
18191 /* end confdefs.h. */
18192 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18193 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18194 #define $ac_func innocuous_$ac_func
18196 /* System header to define __stub macros and hopefully few prototypes,
18197 which can conflict with char $ac_func (); below.
18198 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18199 <limits.h> exists even on freestanding compilers. */
18201 #ifdef __STDC__
18202 # include <limits.h>
18203 #else
18204 # include <assert.h>
18205 #endif
18207 #undef $ac_func
18209 /* Override any GCC internal prototype to avoid an error.
18210 Use char because int might match the return type of a GCC
18211 builtin and then its argument prototype would still apply. */
18212 #ifdef __cplusplus
18213 extern "C"
18214 #endif
18215 char $ac_func ();
18216 /* The GNU C library defines this for functions which it implements
18217 to always fail with ENOSYS. Some functions are actually named
18218 something starting with __ and the normal name is an alias. */
18219 #if defined __stub_$ac_func || defined __stub___$ac_func
18220 choke me
18221 #endif
18224 main ()
18226 return $ac_func ();
18228 return 0;
18230 _ACEOF
18231 rm -f conftest.$ac_objext conftest$ac_exeext
18232 if { (ac_try="$ac_link"
18233 case "(($ac_try" in
18234 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18235 *) ac_try_echo=$ac_try;;
18236 esac
18237 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18238 (eval "$ac_link") 2>conftest.er1
18239 ac_status=$?
18240 grep -v '^ *+' conftest.er1 >conftest.err
18241 rm -f conftest.er1
18242 cat conftest.err >&5
18243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18244 (exit $ac_status); } && {
18245 test -z "$ac_c_werror_flag" ||
18246 test ! -s conftest.err
18247 } && test -s conftest$ac_exeext &&
18248 $as_test_x conftest$ac_exeext; then
18249 eval "$as_ac_var=yes"
18250 else
18251 echo "$as_me: failed program was:" >&5
18252 sed 's/^/| /' conftest.$ac_ext >&5
18254 eval "$as_ac_var=no"
18257 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18258 conftest$ac_exeext conftest.$ac_ext
18260 ac_res=`eval echo '${'$as_ac_var'}'`
18261 { echo "$as_me:$LINENO: result: $ac_res" >&5
18262 echo "${ECHO_T}$ac_res" >&6; }
18263 if test `eval echo '${'$as_ac_var'}'` = yes; then
18264 cat >>confdefs.h <<_ACEOF
18265 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18266 _ACEOF
18268 else
18269 case " $LIBOBJS " in
18270 *" $ac_func.$ac_objext "* ) ;;
18271 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
18273 esac
18276 done
18280 for ac_func in getpgrp
18282 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18283 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18284 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18285 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18286 echo $ECHO_N "(cached) $ECHO_C" >&6
18287 else
18288 cat >conftest.$ac_ext <<_ACEOF
18289 /* confdefs.h. */
18290 _ACEOF
18291 cat confdefs.h >>conftest.$ac_ext
18292 cat >>conftest.$ac_ext <<_ACEOF
18293 /* end confdefs.h. */
18294 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18295 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18296 #define $ac_func innocuous_$ac_func
18298 /* System header to define __stub macros and hopefully few prototypes,
18299 which can conflict with char $ac_func (); below.
18300 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18301 <limits.h> exists even on freestanding compilers. */
18303 #ifdef __STDC__
18304 # include <limits.h>
18305 #else
18306 # include <assert.h>
18307 #endif
18309 #undef $ac_func
18311 /* Override any GCC internal prototype to avoid an error.
18312 Use char because int might match the return type of a GCC
18313 builtin and then its argument prototype would still apply. */
18314 #ifdef __cplusplus
18315 extern "C"
18316 #endif
18317 char $ac_func ();
18318 /* The GNU C library defines this for functions which it implements
18319 to always fail with ENOSYS. Some functions are actually named
18320 something starting with __ and the normal name is an alias. */
18321 #if defined __stub_$ac_func || defined __stub___$ac_func
18322 choke me
18323 #endif
18326 main ()
18328 return $ac_func ();
18330 return 0;
18332 _ACEOF
18333 rm -f conftest.$ac_objext conftest$ac_exeext
18334 if { (ac_try="$ac_link"
18335 case "(($ac_try" in
18336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18337 *) ac_try_echo=$ac_try;;
18338 esac
18339 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18340 (eval "$ac_link") 2>conftest.er1
18341 ac_status=$?
18342 grep -v '^ *+' conftest.er1 >conftest.err
18343 rm -f conftest.er1
18344 cat conftest.err >&5
18345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18346 (exit $ac_status); } && {
18347 test -z "$ac_c_werror_flag" ||
18348 test ! -s conftest.err
18349 } && test -s conftest$ac_exeext &&
18350 $as_test_x conftest$ac_exeext; then
18351 eval "$as_ac_var=yes"
18352 else
18353 echo "$as_me: failed program was:" >&5
18354 sed 's/^/| /' conftest.$ac_ext >&5
18356 eval "$as_ac_var=no"
18359 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18360 conftest$ac_exeext conftest.$ac_ext
18362 ac_res=`eval echo '${'$as_ac_var'}'`
18363 { echo "$as_me:$LINENO: result: $ac_res" >&5
18364 echo "${ECHO_T}$ac_res" >&6; }
18365 if test `eval echo '${'$as_ac_var'}'` = yes; then
18366 cat >>confdefs.h <<_ACEOF
18367 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18368 _ACEOF
18369 cat >conftest.$ac_ext <<_ACEOF
18370 /* confdefs.h. */
18371 _ACEOF
18372 cat confdefs.h >>conftest.$ac_ext
18373 cat >>conftest.$ac_ext <<_ACEOF
18374 /* end confdefs.h. */
18375 #include <unistd.h>
18377 main ()
18379 getpgrp(0);
18381 return 0;
18383 _ACEOF
18384 rm -f conftest.$ac_objext
18385 if { (ac_try="$ac_compile"
18386 case "(($ac_try" in
18387 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18388 *) ac_try_echo=$ac_try;;
18389 esac
18390 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18391 (eval "$ac_compile") 2>conftest.er1
18392 ac_status=$?
18393 grep -v '^ *+' conftest.er1 >conftest.err
18394 rm -f conftest.er1
18395 cat conftest.err >&5
18396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18397 (exit $ac_status); } && {
18398 test -z "$ac_c_werror_flag" ||
18399 test ! -s conftest.err
18400 } && test -s conftest.$ac_objext; then
18402 cat >>confdefs.h <<\_ACEOF
18403 #define GETPGRP_HAVE_ARG 1
18404 _ACEOF
18407 else
18408 echo "$as_me: failed program was:" >&5
18409 sed 's/^/| /' conftest.$ac_ext >&5
18414 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18417 done
18420 for ac_func in setpgrp
18422 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18423 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18424 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18425 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18426 echo $ECHO_N "(cached) $ECHO_C" >&6
18427 else
18428 cat >conftest.$ac_ext <<_ACEOF
18429 /* confdefs.h. */
18430 _ACEOF
18431 cat confdefs.h >>conftest.$ac_ext
18432 cat >>conftest.$ac_ext <<_ACEOF
18433 /* end confdefs.h. */
18434 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18435 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18436 #define $ac_func innocuous_$ac_func
18438 /* System header to define __stub macros and hopefully few prototypes,
18439 which can conflict with char $ac_func (); below.
18440 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18441 <limits.h> exists even on freestanding compilers. */
18443 #ifdef __STDC__
18444 # include <limits.h>
18445 #else
18446 # include <assert.h>
18447 #endif
18449 #undef $ac_func
18451 /* Override any GCC internal prototype to avoid an error.
18452 Use char because int might match the return type of a GCC
18453 builtin and then its argument prototype would still apply. */
18454 #ifdef __cplusplus
18455 extern "C"
18456 #endif
18457 char $ac_func ();
18458 /* The GNU C library defines this for functions which it implements
18459 to always fail with ENOSYS. Some functions are actually named
18460 something starting with __ and the normal name is an alias. */
18461 #if defined __stub_$ac_func || defined __stub___$ac_func
18462 choke me
18463 #endif
18466 main ()
18468 return $ac_func ();
18470 return 0;
18472 _ACEOF
18473 rm -f conftest.$ac_objext conftest$ac_exeext
18474 if { (ac_try="$ac_link"
18475 case "(($ac_try" in
18476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18477 *) ac_try_echo=$ac_try;;
18478 esac
18479 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18480 (eval "$ac_link") 2>conftest.er1
18481 ac_status=$?
18482 grep -v '^ *+' conftest.er1 >conftest.err
18483 rm -f conftest.er1
18484 cat conftest.err >&5
18485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18486 (exit $ac_status); } && {
18487 test -z "$ac_c_werror_flag" ||
18488 test ! -s conftest.err
18489 } && test -s conftest$ac_exeext &&
18490 $as_test_x conftest$ac_exeext; then
18491 eval "$as_ac_var=yes"
18492 else
18493 echo "$as_me: failed program was:" >&5
18494 sed 's/^/| /' conftest.$ac_ext >&5
18496 eval "$as_ac_var=no"
18499 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18500 conftest$ac_exeext conftest.$ac_ext
18502 ac_res=`eval echo '${'$as_ac_var'}'`
18503 { echo "$as_me:$LINENO: result: $ac_res" >&5
18504 echo "${ECHO_T}$ac_res" >&6; }
18505 if test `eval echo '${'$as_ac_var'}'` = yes; then
18506 cat >>confdefs.h <<_ACEOF
18507 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18508 _ACEOF
18509 cat >conftest.$ac_ext <<_ACEOF
18510 /* confdefs.h. */
18511 _ACEOF
18512 cat confdefs.h >>conftest.$ac_ext
18513 cat >>conftest.$ac_ext <<_ACEOF
18514 /* end confdefs.h. */
18515 #include <unistd.h>
18517 main ()
18519 setpgrp(0,0);
18521 return 0;
18523 _ACEOF
18524 rm -f conftest.$ac_objext
18525 if { (ac_try="$ac_compile"
18526 case "(($ac_try" in
18527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18528 *) ac_try_echo=$ac_try;;
18529 esac
18530 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18531 (eval "$ac_compile") 2>conftest.er1
18532 ac_status=$?
18533 grep -v '^ *+' conftest.er1 >conftest.err
18534 rm -f conftest.er1
18535 cat conftest.err >&5
18536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18537 (exit $ac_status); } && {
18538 test -z "$ac_c_werror_flag" ||
18539 test ! -s conftest.err
18540 } && test -s conftest.$ac_objext; then
18542 cat >>confdefs.h <<\_ACEOF
18543 #define SETPGRP_HAVE_ARG 1
18544 _ACEOF
18547 else
18548 echo "$as_me: failed program was:" >&5
18549 sed 's/^/| /' conftest.$ac_ext >&5
18554 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18557 done
18560 for ac_func in gettimeofday
18562 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18563 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18564 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18565 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18566 echo $ECHO_N "(cached) $ECHO_C" >&6
18567 else
18568 cat >conftest.$ac_ext <<_ACEOF
18569 /* confdefs.h. */
18570 _ACEOF
18571 cat confdefs.h >>conftest.$ac_ext
18572 cat >>conftest.$ac_ext <<_ACEOF
18573 /* end confdefs.h. */
18574 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18575 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18576 #define $ac_func innocuous_$ac_func
18578 /* System header to define __stub macros and hopefully few prototypes,
18579 which can conflict with char $ac_func (); below.
18580 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18581 <limits.h> exists even on freestanding compilers. */
18583 #ifdef __STDC__
18584 # include <limits.h>
18585 #else
18586 # include <assert.h>
18587 #endif
18589 #undef $ac_func
18591 /* Override any GCC internal prototype to avoid an error.
18592 Use char because int might match the return type of a GCC
18593 builtin and then its argument prototype would still apply. */
18594 #ifdef __cplusplus
18595 extern "C"
18596 #endif
18597 char $ac_func ();
18598 /* The GNU C library defines this for functions which it implements
18599 to always fail with ENOSYS. Some functions are actually named
18600 something starting with __ and the normal name is an alias. */
18601 #if defined __stub_$ac_func || defined __stub___$ac_func
18602 choke me
18603 #endif
18606 main ()
18608 return $ac_func ();
18610 return 0;
18612 _ACEOF
18613 rm -f conftest.$ac_objext conftest$ac_exeext
18614 if { (ac_try="$ac_link"
18615 case "(($ac_try" in
18616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18617 *) ac_try_echo=$ac_try;;
18618 esac
18619 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18620 (eval "$ac_link") 2>conftest.er1
18621 ac_status=$?
18622 grep -v '^ *+' conftest.er1 >conftest.err
18623 rm -f conftest.er1
18624 cat conftest.err >&5
18625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18626 (exit $ac_status); } && {
18627 test -z "$ac_c_werror_flag" ||
18628 test ! -s conftest.err
18629 } && test -s conftest$ac_exeext &&
18630 $as_test_x conftest$ac_exeext; then
18631 eval "$as_ac_var=yes"
18632 else
18633 echo "$as_me: failed program was:" >&5
18634 sed 's/^/| /' conftest.$ac_ext >&5
18636 eval "$as_ac_var=no"
18639 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18640 conftest$ac_exeext conftest.$ac_ext
18642 ac_res=`eval echo '${'$as_ac_var'}'`
18643 { echo "$as_me:$LINENO: result: $ac_res" >&5
18644 echo "${ECHO_T}$ac_res" >&6; }
18645 if test `eval echo '${'$as_ac_var'}'` = yes; then
18646 cat >>confdefs.h <<_ACEOF
18647 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18648 _ACEOF
18649 cat >conftest.$ac_ext <<_ACEOF
18650 /* confdefs.h. */
18651 _ACEOF
18652 cat confdefs.h >>conftest.$ac_ext
18653 cat >>conftest.$ac_ext <<_ACEOF
18654 /* end confdefs.h. */
18655 #include <sys/time.h>
18657 main ()
18659 gettimeofday((struct timeval*)0,(struct timezone*)0);
18661 return 0;
18663 _ACEOF
18664 rm -f conftest.$ac_objext
18665 if { (ac_try="$ac_compile"
18666 case "(($ac_try" in
18667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18668 *) ac_try_echo=$ac_try;;
18669 esac
18670 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18671 (eval "$ac_compile") 2>conftest.er1
18672 ac_status=$?
18673 grep -v '^ *+' conftest.er1 >conftest.err
18674 rm -f conftest.er1
18675 cat conftest.err >&5
18676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18677 (exit $ac_status); } && {
18678 test -z "$ac_c_werror_flag" ||
18679 test ! -s conftest.err
18680 } && test -s conftest.$ac_objext; then
18682 else
18683 echo "$as_me: failed program was:" >&5
18684 sed 's/^/| /' conftest.$ac_ext >&5
18687 cat >>confdefs.h <<\_ACEOF
18688 #define GETTIMEOFDAY_NO_TZ 1
18689 _ACEOF
18694 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18697 done
18700 { echo "$as_me:$LINENO: checking for major" >&5
18701 echo $ECHO_N "checking for major... $ECHO_C" >&6; }
18702 cat >conftest.$ac_ext <<_ACEOF
18703 /* confdefs.h. */
18704 _ACEOF
18705 cat confdefs.h >>conftest.$ac_ext
18706 cat >>conftest.$ac_ext <<_ACEOF
18707 /* end confdefs.h. */
18709 #if defined(MAJOR_IN_MKDEV)
18710 #include <sys/mkdev.h>
18711 #elif defined(MAJOR_IN_SYSMACROS)
18712 #include <sys/sysmacros.h>
18713 #else
18714 #include <sys/types.h>
18715 #endif
18718 main ()
18721 makedev(major(0),minor(0));
18724 return 0;
18726 _ACEOF
18727 rm -f conftest.$ac_objext conftest$ac_exeext
18728 if { (ac_try="$ac_link"
18729 case "(($ac_try" in
18730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18731 *) ac_try_echo=$ac_try;;
18732 esac
18733 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18734 (eval "$ac_link") 2>conftest.er1
18735 ac_status=$?
18736 grep -v '^ *+' conftest.er1 >conftest.err
18737 rm -f conftest.er1
18738 cat conftest.err >&5
18739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18740 (exit $ac_status); } && {
18741 test -z "$ac_c_werror_flag" ||
18742 test ! -s conftest.err
18743 } && test -s conftest$ac_exeext &&
18744 $as_test_x conftest$ac_exeext; then
18747 cat >>confdefs.h <<\_ACEOF
18748 #define HAVE_DEVICE_MACROS 1
18749 _ACEOF
18751 { echo "$as_me:$LINENO: result: yes" >&5
18752 echo "${ECHO_T}yes" >&6; }
18754 else
18755 echo "$as_me: failed program was:" >&5
18756 sed 's/^/| /' conftest.$ac_ext >&5
18759 { echo "$as_me:$LINENO: result: no" >&5
18760 echo "${ECHO_T}no" >&6; }
18764 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18765 conftest$ac_exeext conftest.$ac_ext
18767 # On OSF/1 V5.1, getaddrinfo is available, but a define
18768 # for [no]getaddrinfo in netdb.h.
18769 { echo "$as_me:$LINENO: checking for getaddrinfo" >&5
18770 echo $ECHO_N "checking for getaddrinfo... $ECHO_C" >&6; }
18771 cat >conftest.$ac_ext <<_ACEOF
18772 /* confdefs.h. */
18773 _ACEOF
18774 cat confdefs.h >>conftest.$ac_ext
18775 cat >>conftest.$ac_ext <<_ACEOF
18776 /* end confdefs.h. */
18778 #include <sys/types.h>
18779 #include <sys/socket.h>
18780 #include <netdb.h>
18781 #include <stdio.h>
18784 main ()
18787 getaddrinfo(NULL, NULL, NULL, NULL);
18790 return 0;
18792 _ACEOF
18793 rm -f conftest.$ac_objext conftest$ac_exeext
18794 if { (ac_try="$ac_link"
18795 case "(($ac_try" in
18796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18797 *) ac_try_echo=$ac_try;;
18798 esac
18799 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18800 (eval "$ac_link") 2>conftest.er1
18801 ac_status=$?
18802 grep -v '^ *+' conftest.er1 >conftest.err
18803 rm -f conftest.er1
18804 cat conftest.err >&5
18805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18806 (exit $ac_status); } && {
18807 test -z "$ac_c_werror_flag" ||
18808 test ! -s conftest.err
18809 } && test -s conftest$ac_exeext &&
18810 $as_test_x conftest$ac_exeext; then
18812 { echo "$as_me:$LINENO: result: yes" >&5
18813 echo "${ECHO_T}yes" >&6; }
18814 { echo "$as_me:$LINENO: checking getaddrinfo bug" >&5
18815 echo $ECHO_N "checking getaddrinfo bug... $ECHO_C" >&6; }
18816 if test "$cross_compiling" = yes; then
18817 { echo "$as_me:$LINENO: result: buggy" >&5
18818 echo "${ECHO_T}buggy" >&6; }
18819 buggygetaddrinfo=yes
18820 else
18821 cat >conftest.$ac_ext <<_ACEOF
18822 /* confdefs.h. */
18823 _ACEOF
18824 cat confdefs.h >>conftest.$ac_ext
18825 cat >>conftest.$ac_ext <<_ACEOF
18826 /* end confdefs.h. */
18828 #include <sys/types.h>
18829 #include <netdb.h>
18830 #include <string.h>
18831 #include <sys/socket.h>
18832 #include <netinet/in.h>
18834 main()
18836 int passive, gaierr, inet4 = 0, inet6 = 0;
18837 struct addrinfo hints, *ai, *aitop;
18838 char straddr[INET6_ADDRSTRLEN], strport[16];
18840 for (passive = 0; passive <= 1; passive++) {
18841 memset(&hints, 0, sizeof(hints));
18842 hints.ai_family = AF_UNSPEC;
18843 hints.ai_flags = passive ? AI_PASSIVE : 0;
18844 hints.ai_socktype = SOCK_STREAM;
18845 hints.ai_protocol = IPPROTO_TCP;
18846 if ((gaierr = getaddrinfo(NULL, "54321", &hints, &aitop)) != 0) {
18847 (void)gai_strerror(gaierr);
18848 goto bad;
18850 for (ai = aitop; ai; ai = ai->ai_next) {
18851 if (ai->ai_addr == NULL ||
18852 ai->ai_addrlen == 0 ||
18853 getnameinfo(ai->ai_addr, ai->ai_addrlen,
18854 straddr, sizeof(straddr), strport, sizeof(strport),
18855 NI_NUMERICHOST|NI_NUMERICSERV) != 0) {
18856 goto bad;
18858 switch (ai->ai_family) {
18859 case AF_INET:
18860 if (strcmp(strport, "54321") != 0) {
18861 goto bad;
18863 if (passive) {
18864 if (strcmp(straddr, "0.0.0.0") != 0) {
18865 goto bad;
18867 } else {
18868 if (strcmp(straddr, "127.0.0.1") != 0) {
18869 goto bad;
18872 inet4++;
18873 break;
18874 case AF_INET6:
18875 if (strcmp(strport, "54321") != 0) {
18876 goto bad;
18878 if (passive) {
18879 if (strcmp(straddr, "::") != 0) {
18880 goto bad;
18882 } else {
18883 if (strcmp(straddr, "::1") != 0) {
18884 goto bad;
18887 inet6++;
18888 break;
18889 case AF_UNSPEC:
18890 goto bad;
18891 break;
18892 default:
18893 /* another family support? */
18894 break;
18899 if (!(inet4 == 0 || inet4 == 2))
18900 goto bad;
18901 if (!(inet6 == 0 || inet6 == 2))
18902 goto bad;
18904 if (aitop)
18905 freeaddrinfo(aitop);
18906 exit(0);
18908 bad:
18909 if (aitop)
18910 freeaddrinfo(aitop);
18911 exit(1);
18914 _ACEOF
18915 rm -f conftest$ac_exeext
18916 if { (ac_try="$ac_link"
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_link") 2>&5
18923 ac_status=$?
18924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18925 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18926 { (case "(($ac_try" in
18927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18928 *) ac_try_echo=$ac_try;;
18929 esac
18930 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18931 (eval "$ac_try") 2>&5
18932 ac_status=$?
18933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18934 (exit $ac_status); }; }; then
18935 { echo "$as_me:$LINENO: result: good" >&5
18936 echo "${ECHO_T}good" >&6; }
18937 buggygetaddrinfo=no
18938 else
18939 echo "$as_me: program exited with status $ac_status" >&5
18940 echo "$as_me: failed program was:" >&5
18941 sed 's/^/| /' conftest.$ac_ext >&5
18943 ( exit $ac_status )
18944 { echo "$as_me:$LINENO: result: buggy" >&5
18945 echo "${ECHO_T}buggy" >&6; }
18946 buggygetaddrinfo=yes
18948 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18952 else
18953 echo "$as_me: failed program was:" >&5
18954 sed 's/^/| /' conftest.$ac_ext >&5
18957 { echo "$as_me:$LINENO: result: no" >&5
18958 echo "${ECHO_T}no" >&6; }
18959 buggygetaddrinfo=yes
18963 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18964 conftest$ac_exeext conftest.$ac_ext
18966 if test "$buggygetaddrinfo" = "yes"; then
18967 if test "$ipv6" = "yes"; then
18968 echo 'Fatal: You must get working getaddrinfo() function.'
18969 echo ' or you can specify "--disable-ipv6"'.
18970 exit 1
18972 else
18974 cat >>confdefs.h <<\_ACEOF
18975 #define HAVE_GETADDRINFO 1
18976 _ACEOF
18980 for ac_func in getnameinfo
18982 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18983 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18984 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18985 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18986 echo $ECHO_N "(cached) $ECHO_C" >&6
18987 else
18988 cat >conftest.$ac_ext <<_ACEOF
18989 /* confdefs.h. */
18990 _ACEOF
18991 cat confdefs.h >>conftest.$ac_ext
18992 cat >>conftest.$ac_ext <<_ACEOF
18993 /* end confdefs.h. */
18994 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18995 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18996 #define $ac_func innocuous_$ac_func
18998 /* System header to define __stub macros and hopefully few prototypes,
18999 which can conflict with char $ac_func (); below.
19000 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19001 <limits.h> exists even on freestanding compilers. */
19003 #ifdef __STDC__
19004 # include <limits.h>
19005 #else
19006 # include <assert.h>
19007 #endif
19009 #undef $ac_func
19011 /* Override any GCC internal prototype to avoid an error.
19012 Use char because int might match the return type of a GCC
19013 builtin and then its argument prototype would still apply. */
19014 #ifdef __cplusplus
19015 extern "C"
19016 #endif
19017 char $ac_func ();
19018 /* The GNU C library defines this for functions which it implements
19019 to always fail with ENOSYS. Some functions are actually named
19020 something starting with __ and the normal name is an alias. */
19021 #if defined __stub_$ac_func || defined __stub___$ac_func
19022 choke me
19023 #endif
19026 main ()
19028 return $ac_func ();
19030 return 0;
19032 _ACEOF
19033 rm -f conftest.$ac_objext conftest$ac_exeext
19034 if { (ac_try="$ac_link"
19035 case "(($ac_try" in
19036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19037 *) ac_try_echo=$ac_try;;
19038 esac
19039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19040 (eval "$ac_link") 2>conftest.er1
19041 ac_status=$?
19042 grep -v '^ *+' conftest.er1 >conftest.err
19043 rm -f conftest.er1
19044 cat conftest.err >&5
19045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19046 (exit $ac_status); } && {
19047 test -z "$ac_c_werror_flag" ||
19048 test ! -s conftest.err
19049 } && test -s conftest$ac_exeext &&
19050 $as_test_x conftest$ac_exeext; then
19051 eval "$as_ac_var=yes"
19052 else
19053 echo "$as_me: failed program was:" >&5
19054 sed 's/^/| /' conftest.$ac_ext >&5
19056 eval "$as_ac_var=no"
19059 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19060 conftest$ac_exeext conftest.$ac_ext
19062 ac_res=`eval echo '${'$as_ac_var'}'`
19063 { echo "$as_me:$LINENO: result: $ac_res" >&5
19064 echo "${ECHO_T}$ac_res" >&6; }
19065 if test `eval echo '${'$as_ac_var'}'` = yes; then
19066 cat >>confdefs.h <<_ACEOF
19067 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19068 _ACEOF
19071 done
19074 # checks for structures
19075 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
19076 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
19077 if test "${ac_cv_header_time+set}" = set; then
19078 echo $ECHO_N "(cached) $ECHO_C" >&6
19079 else
19080 cat >conftest.$ac_ext <<_ACEOF
19081 /* confdefs.h. */
19082 _ACEOF
19083 cat confdefs.h >>conftest.$ac_ext
19084 cat >>conftest.$ac_ext <<_ACEOF
19085 /* end confdefs.h. */
19086 #include <sys/types.h>
19087 #include <sys/time.h>
19088 #include <time.h>
19091 main ()
19093 if ((struct tm *) 0)
19094 return 0;
19096 return 0;
19098 _ACEOF
19099 rm -f conftest.$ac_objext
19100 if { (ac_try="$ac_compile"
19101 case "(($ac_try" in
19102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19103 *) ac_try_echo=$ac_try;;
19104 esac
19105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19106 (eval "$ac_compile") 2>conftest.er1
19107 ac_status=$?
19108 grep -v '^ *+' conftest.er1 >conftest.err
19109 rm -f conftest.er1
19110 cat conftest.err >&5
19111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19112 (exit $ac_status); } && {
19113 test -z "$ac_c_werror_flag" ||
19114 test ! -s conftest.err
19115 } && test -s conftest.$ac_objext; then
19116 ac_cv_header_time=yes
19117 else
19118 echo "$as_me: failed program was:" >&5
19119 sed 's/^/| /' conftest.$ac_ext >&5
19121 ac_cv_header_time=no
19124 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19126 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
19127 echo "${ECHO_T}$ac_cv_header_time" >&6; }
19128 if test $ac_cv_header_time = yes; then
19130 cat >>confdefs.h <<\_ACEOF
19131 #define TIME_WITH_SYS_TIME 1
19132 _ACEOF
19136 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
19137 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
19138 if test "${ac_cv_struct_tm+set}" = set; then
19139 echo $ECHO_N "(cached) $ECHO_C" >&6
19140 else
19141 cat >conftest.$ac_ext <<_ACEOF
19142 /* confdefs.h. */
19143 _ACEOF
19144 cat confdefs.h >>conftest.$ac_ext
19145 cat >>conftest.$ac_ext <<_ACEOF
19146 /* end confdefs.h. */
19147 #include <sys/types.h>
19148 #include <time.h>
19151 main ()
19153 struct tm tm;
19154 int *p = &tm.tm_sec;
19155 return !p;
19157 return 0;
19159 _ACEOF
19160 rm -f conftest.$ac_objext
19161 if { (ac_try="$ac_compile"
19162 case "(($ac_try" in
19163 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19164 *) ac_try_echo=$ac_try;;
19165 esac
19166 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19167 (eval "$ac_compile") 2>conftest.er1
19168 ac_status=$?
19169 grep -v '^ *+' conftest.er1 >conftest.err
19170 rm -f conftest.er1
19171 cat conftest.err >&5
19172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19173 (exit $ac_status); } && {
19174 test -z "$ac_c_werror_flag" ||
19175 test ! -s conftest.err
19176 } && test -s conftest.$ac_objext; then
19177 ac_cv_struct_tm=time.h
19178 else
19179 echo "$as_me: failed program was:" >&5
19180 sed 's/^/| /' conftest.$ac_ext >&5
19182 ac_cv_struct_tm=sys/time.h
19185 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19187 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
19188 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
19189 if test $ac_cv_struct_tm = sys/time.h; then
19191 cat >>confdefs.h <<\_ACEOF
19192 #define TM_IN_SYS_TIME 1
19193 _ACEOF
19197 { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
19198 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
19199 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
19200 echo $ECHO_N "(cached) $ECHO_C" >&6
19201 else
19202 cat >conftest.$ac_ext <<_ACEOF
19203 /* confdefs.h. */
19204 _ACEOF
19205 cat confdefs.h >>conftest.$ac_ext
19206 cat >>conftest.$ac_ext <<_ACEOF
19207 /* end confdefs.h. */
19208 #include <sys/types.h>
19209 #include <$ac_cv_struct_tm>
19213 main ()
19215 static struct tm ac_aggr;
19216 if (ac_aggr.tm_zone)
19217 return 0;
19219 return 0;
19221 _ACEOF
19222 rm -f conftest.$ac_objext
19223 if { (ac_try="$ac_compile"
19224 case "(($ac_try" in
19225 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19226 *) ac_try_echo=$ac_try;;
19227 esac
19228 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19229 (eval "$ac_compile") 2>conftest.er1
19230 ac_status=$?
19231 grep -v '^ *+' conftest.er1 >conftest.err
19232 rm -f conftest.er1
19233 cat conftest.err >&5
19234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19235 (exit $ac_status); } && {
19236 test -z "$ac_c_werror_flag" ||
19237 test ! -s conftest.err
19238 } && test -s conftest.$ac_objext; then
19239 ac_cv_member_struct_tm_tm_zone=yes
19240 else
19241 echo "$as_me: failed program was:" >&5
19242 sed 's/^/| /' conftest.$ac_ext >&5
19244 cat >conftest.$ac_ext <<_ACEOF
19245 /* confdefs.h. */
19246 _ACEOF
19247 cat confdefs.h >>conftest.$ac_ext
19248 cat >>conftest.$ac_ext <<_ACEOF
19249 /* end confdefs.h. */
19250 #include <sys/types.h>
19251 #include <$ac_cv_struct_tm>
19255 main ()
19257 static struct tm ac_aggr;
19258 if (sizeof ac_aggr.tm_zone)
19259 return 0;
19261 return 0;
19263 _ACEOF
19264 rm -f conftest.$ac_objext
19265 if { (ac_try="$ac_compile"
19266 case "(($ac_try" in
19267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19268 *) ac_try_echo=$ac_try;;
19269 esac
19270 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19271 (eval "$ac_compile") 2>conftest.er1
19272 ac_status=$?
19273 grep -v '^ *+' conftest.er1 >conftest.err
19274 rm -f conftest.er1
19275 cat conftest.err >&5
19276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19277 (exit $ac_status); } && {
19278 test -z "$ac_c_werror_flag" ||
19279 test ! -s conftest.err
19280 } && test -s conftest.$ac_objext; then
19281 ac_cv_member_struct_tm_tm_zone=yes
19282 else
19283 echo "$as_me: failed program was:" >&5
19284 sed 's/^/| /' conftest.$ac_ext >&5
19286 ac_cv_member_struct_tm_tm_zone=no
19289 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19292 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19294 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
19295 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
19296 if test $ac_cv_member_struct_tm_tm_zone = yes; then
19298 cat >>confdefs.h <<_ACEOF
19299 #define HAVE_STRUCT_TM_TM_ZONE 1
19300 _ACEOF
19305 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
19307 cat >>confdefs.h <<\_ACEOF
19308 #define HAVE_TM_ZONE 1
19309 _ACEOF
19311 else
19312 { echo "$as_me:$LINENO: checking whether tzname is declared" >&5
19313 echo $ECHO_N "checking whether tzname is declared... $ECHO_C" >&6; }
19314 if test "${ac_cv_have_decl_tzname+set}" = set; then
19315 echo $ECHO_N "(cached) $ECHO_C" >&6
19316 else
19317 cat >conftest.$ac_ext <<_ACEOF
19318 /* confdefs.h. */
19319 _ACEOF
19320 cat confdefs.h >>conftest.$ac_ext
19321 cat >>conftest.$ac_ext <<_ACEOF
19322 /* end confdefs.h. */
19323 #include <time.h>
19326 main ()
19328 #ifndef tzname
19329 (void) tzname;
19330 #endif
19333 return 0;
19335 _ACEOF
19336 rm -f conftest.$ac_objext
19337 if { (ac_try="$ac_compile"
19338 case "(($ac_try" in
19339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19340 *) ac_try_echo=$ac_try;;
19341 esac
19342 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19343 (eval "$ac_compile") 2>conftest.er1
19344 ac_status=$?
19345 grep -v '^ *+' conftest.er1 >conftest.err
19346 rm -f conftest.er1
19347 cat conftest.err >&5
19348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19349 (exit $ac_status); } && {
19350 test -z "$ac_c_werror_flag" ||
19351 test ! -s conftest.err
19352 } && test -s conftest.$ac_objext; then
19353 ac_cv_have_decl_tzname=yes
19354 else
19355 echo "$as_me: failed program was:" >&5
19356 sed 's/^/| /' conftest.$ac_ext >&5
19358 ac_cv_have_decl_tzname=no
19361 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19363 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
19364 echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; }
19365 if test $ac_cv_have_decl_tzname = yes; then
19367 cat >>confdefs.h <<_ACEOF
19368 #define HAVE_DECL_TZNAME 1
19369 _ACEOF
19372 else
19373 cat >>confdefs.h <<_ACEOF
19374 #define HAVE_DECL_TZNAME 0
19375 _ACEOF
19381 { echo "$as_me:$LINENO: checking for tzname" >&5
19382 echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
19383 if test "${ac_cv_var_tzname+set}" = set; then
19384 echo $ECHO_N "(cached) $ECHO_C" >&6
19385 else
19386 cat >conftest.$ac_ext <<_ACEOF
19387 /* confdefs.h. */
19388 _ACEOF
19389 cat confdefs.h >>conftest.$ac_ext
19390 cat >>conftest.$ac_ext <<_ACEOF
19391 /* end confdefs.h. */
19392 #include <time.h>
19393 #if !HAVE_DECL_TZNAME
19394 extern char *tzname[];
19395 #endif
19398 main ()
19400 return tzname[0][0];
19402 return 0;
19404 _ACEOF
19405 rm -f conftest.$ac_objext conftest$ac_exeext
19406 if { (ac_try="$ac_link"
19407 case "(($ac_try" in
19408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19409 *) ac_try_echo=$ac_try;;
19410 esac
19411 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19412 (eval "$ac_link") 2>conftest.er1
19413 ac_status=$?
19414 grep -v '^ *+' conftest.er1 >conftest.err
19415 rm -f conftest.er1
19416 cat conftest.err >&5
19417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19418 (exit $ac_status); } && {
19419 test -z "$ac_c_werror_flag" ||
19420 test ! -s conftest.err
19421 } && test -s conftest$ac_exeext &&
19422 $as_test_x conftest$ac_exeext; then
19423 ac_cv_var_tzname=yes
19424 else
19425 echo "$as_me: failed program was:" >&5
19426 sed 's/^/| /' conftest.$ac_ext >&5
19428 ac_cv_var_tzname=no
19431 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19432 conftest$ac_exeext conftest.$ac_ext
19434 { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
19435 echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
19436 if test $ac_cv_var_tzname = yes; then
19438 cat >>confdefs.h <<\_ACEOF
19439 #define HAVE_TZNAME 1
19440 _ACEOF
19445 { echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
19446 echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6; }
19447 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
19448 echo $ECHO_N "(cached) $ECHO_C" >&6
19449 else
19450 cat >conftest.$ac_ext <<_ACEOF
19451 /* confdefs.h. */
19452 _ACEOF
19453 cat confdefs.h >>conftest.$ac_ext
19454 cat >>conftest.$ac_ext <<_ACEOF
19455 /* end confdefs.h. */
19456 $ac_includes_default
19458 main ()
19460 static struct stat ac_aggr;
19461 if (ac_aggr.st_rdev)
19462 return 0;
19464 return 0;
19466 _ACEOF
19467 rm -f conftest.$ac_objext
19468 if { (ac_try="$ac_compile"
19469 case "(($ac_try" in
19470 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19471 *) ac_try_echo=$ac_try;;
19472 esac
19473 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19474 (eval "$ac_compile") 2>conftest.er1
19475 ac_status=$?
19476 grep -v '^ *+' conftest.er1 >conftest.err
19477 rm -f conftest.er1
19478 cat conftest.err >&5
19479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19480 (exit $ac_status); } && {
19481 test -z "$ac_c_werror_flag" ||
19482 test ! -s conftest.err
19483 } && test -s conftest.$ac_objext; then
19484 ac_cv_member_struct_stat_st_rdev=yes
19485 else
19486 echo "$as_me: failed program was:" >&5
19487 sed 's/^/| /' conftest.$ac_ext >&5
19489 cat >conftest.$ac_ext <<_ACEOF
19490 /* confdefs.h. */
19491 _ACEOF
19492 cat confdefs.h >>conftest.$ac_ext
19493 cat >>conftest.$ac_ext <<_ACEOF
19494 /* end confdefs.h. */
19495 $ac_includes_default
19497 main ()
19499 static struct stat ac_aggr;
19500 if (sizeof ac_aggr.st_rdev)
19501 return 0;
19503 return 0;
19505 _ACEOF
19506 rm -f conftest.$ac_objext
19507 if { (ac_try="$ac_compile"
19508 case "(($ac_try" in
19509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19510 *) ac_try_echo=$ac_try;;
19511 esac
19512 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19513 (eval "$ac_compile") 2>conftest.er1
19514 ac_status=$?
19515 grep -v '^ *+' conftest.er1 >conftest.err
19516 rm -f conftest.er1
19517 cat conftest.err >&5
19518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19519 (exit $ac_status); } && {
19520 test -z "$ac_c_werror_flag" ||
19521 test ! -s conftest.err
19522 } && test -s conftest.$ac_objext; then
19523 ac_cv_member_struct_stat_st_rdev=yes
19524 else
19525 echo "$as_me: failed program was:" >&5
19526 sed 's/^/| /' conftest.$ac_ext >&5
19528 ac_cv_member_struct_stat_st_rdev=no
19531 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19534 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19536 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
19537 echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6; }
19538 if test $ac_cv_member_struct_stat_st_rdev = yes; then
19540 cat >>confdefs.h <<_ACEOF
19541 #define HAVE_STRUCT_STAT_ST_RDEV 1
19542 _ACEOF
19547 { echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
19548 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6; }
19549 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
19550 echo $ECHO_N "(cached) $ECHO_C" >&6
19551 else
19552 cat >conftest.$ac_ext <<_ACEOF
19553 /* confdefs.h. */
19554 _ACEOF
19555 cat confdefs.h >>conftest.$ac_ext
19556 cat >>conftest.$ac_ext <<_ACEOF
19557 /* end confdefs.h. */
19558 $ac_includes_default
19560 main ()
19562 static struct stat ac_aggr;
19563 if (ac_aggr.st_blksize)
19564 return 0;
19566 return 0;
19568 _ACEOF
19569 rm -f conftest.$ac_objext
19570 if { (ac_try="$ac_compile"
19571 case "(($ac_try" in
19572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19573 *) ac_try_echo=$ac_try;;
19574 esac
19575 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19576 (eval "$ac_compile") 2>conftest.er1
19577 ac_status=$?
19578 grep -v '^ *+' conftest.er1 >conftest.err
19579 rm -f conftest.er1
19580 cat conftest.err >&5
19581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19582 (exit $ac_status); } && {
19583 test -z "$ac_c_werror_flag" ||
19584 test ! -s conftest.err
19585 } && test -s conftest.$ac_objext; then
19586 ac_cv_member_struct_stat_st_blksize=yes
19587 else
19588 echo "$as_me: failed program was:" >&5
19589 sed 's/^/| /' conftest.$ac_ext >&5
19591 cat >conftest.$ac_ext <<_ACEOF
19592 /* confdefs.h. */
19593 _ACEOF
19594 cat confdefs.h >>conftest.$ac_ext
19595 cat >>conftest.$ac_ext <<_ACEOF
19596 /* end confdefs.h. */
19597 $ac_includes_default
19599 main ()
19601 static struct stat ac_aggr;
19602 if (sizeof ac_aggr.st_blksize)
19603 return 0;
19605 return 0;
19607 _ACEOF
19608 rm -f conftest.$ac_objext
19609 if { (ac_try="$ac_compile"
19610 case "(($ac_try" in
19611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19612 *) ac_try_echo=$ac_try;;
19613 esac
19614 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19615 (eval "$ac_compile") 2>conftest.er1
19616 ac_status=$?
19617 grep -v '^ *+' conftest.er1 >conftest.err
19618 rm -f conftest.er1
19619 cat conftest.err >&5
19620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19621 (exit $ac_status); } && {
19622 test -z "$ac_c_werror_flag" ||
19623 test ! -s conftest.err
19624 } && test -s conftest.$ac_objext; then
19625 ac_cv_member_struct_stat_st_blksize=yes
19626 else
19627 echo "$as_me: failed program was:" >&5
19628 sed 's/^/| /' conftest.$ac_ext >&5
19630 ac_cv_member_struct_stat_st_blksize=no
19633 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19636 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19638 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
19639 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6; }
19640 if test $ac_cv_member_struct_stat_st_blksize = yes; then
19642 cat >>confdefs.h <<_ACEOF
19643 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
19644 _ACEOF
19649 { echo "$as_me:$LINENO: checking for struct stat.st_flags" >&5
19650 echo $ECHO_N "checking for struct stat.st_flags... $ECHO_C" >&6; }
19651 if test "${ac_cv_member_struct_stat_st_flags+set}" = set; then
19652 echo $ECHO_N "(cached) $ECHO_C" >&6
19653 else
19654 cat >conftest.$ac_ext <<_ACEOF
19655 /* confdefs.h. */
19656 _ACEOF
19657 cat confdefs.h >>conftest.$ac_ext
19658 cat >>conftest.$ac_ext <<_ACEOF
19659 /* end confdefs.h. */
19660 $ac_includes_default
19662 main ()
19664 static struct stat ac_aggr;
19665 if (ac_aggr.st_flags)
19666 return 0;
19668 return 0;
19670 _ACEOF
19671 rm -f conftest.$ac_objext
19672 if { (ac_try="$ac_compile"
19673 case "(($ac_try" in
19674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19675 *) ac_try_echo=$ac_try;;
19676 esac
19677 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19678 (eval "$ac_compile") 2>conftest.er1
19679 ac_status=$?
19680 grep -v '^ *+' conftest.er1 >conftest.err
19681 rm -f conftest.er1
19682 cat conftest.err >&5
19683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19684 (exit $ac_status); } && {
19685 test -z "$ac_c_werror_flag" ||
19686 test ! -s conftest.err
19687 } && test -s conftest.$ac_objext; then
19688 ac_cv_member_struct_stat_st_flags=yes
19689 else
19690 echo "$as_me: failed program was:" >&5
19691 sed 's/^/| /' conftest.$ac_ext >&5
19693 cat >conftest.$ac_ext <<_ACEOF
19694 /* confdefs.h. */
19695 _ACEOF
19696 cat confdefs.h >>conftest.$ac_ext
19697 cat >>conftest.$ac_ext <<_ACEOF
19698 /* end confdefs.h. */
19699 $ac_includes_default
19701 main ()
19703 static struct stat ac_aggr;
19704 if (sizeof ac_aggr.st_flags)
19705 return 0;
19707 return 0;
19709 _ACEOF
19710 rm -f conftest.$ac_objext
19711 if { (ac_try="$ac_compile"
19712 case "(($ac_try" in
19713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19714 *) ac_try_echo=$ac_try;;
19715 esac
19716 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19717 (eval "$ac_compile") 2>conftest.er1
19718 ac_status=$?
19719 grep -v '^ *+' conftest.er1 >conftest.err
19720 rm -f conftest.er1
19721 cat conftest.err >&5
19722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19723 (exit $ac_status); } && {
19724 test -z "$ac_c_werror_flag" ||
19725 test ! -s conftest.err
19726 } && test -s conftest.$ac_objext; then
19727 ac_cv_member_struct_stat_st_flags=yes
19728 else
19729 echo "$as_me: failed program was:" >&5
19730 sed 's/^/| /' conftest.$ac_ext >&5
19732 ac_cv_member_struct_stat_st_flags=no
19735 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19738 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19740 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_flags" >&5
19741 echo "${ECHO_T}$ac_cv_member_struct_stat_st_flags" >&6; }
19742 if test $ac_cv_member_struct_stat_st_flags = yes; then
19744 cat >>confdefs.h <<_ACEOF
19745 #define HAVE_STRUCT_STAT_ST_FLAGS 1
19746 _ACEOF
19751 { echo "$as_me:$LINENO: checking for struct stat.st_gen" >&5
19752 echo $ECHO_N "checking for struct stat.st_gen... $ECHO_C" >&6; }
19753 if test "${ac_cv_member_struct_stat_st_gen+set}" = set; then
19754 echo $ECHO_N "(cached) $ECHO_C" >&6
19755 else
19756 cat >conftest.$ac_ext <<_ACEOF
19757 /* confdefs.h. */
19758 _ACEOF
19759 cat confdefs.h >>conftest.$ac_ext
19760 cat >>conftest.$ac_ext <<_ACEOF
19761 /* end confdefs.h. */
19762 $ac_includes_default
19764 main ()
19766 static struct stat ac_aggr;
19767 if (ac_aggr.st_gen)
19768 return 0;
19770 return 0;
19772 _ACEOF
19773 rm -f conftest.$ac_objext
19774 if { (ac_try="$ac_compile"
19775 case "(($ac_try" in
19776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19777 *) ac_try_echo=$ac_try;;
19778 esac
19779 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19780 (eval "$ac_compile") 2>conftest.er1
19781 ac_status=$?
19782 grep -v '^ *+' conftest.er1 >conftest.err
19783 rm -f conftest.er1
19784 cat conftest.err >&5
19785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19786 (exit $ac_status); } && {
19787 test -z "$ac_c_werror_flag" ||
19788 test ! -s conftest.err
19789 } && test -s conftest.$ac_objext; then
19790 ac_cv_member_struct_stat_st_gen=yes
19791 else
19792 echo "$as_me: failed program was:" >&5
19793 sed 's/^/| /' conftest.$ac_ext >&5
19795 cat >conftest.$ac_ext <<_ACEOF
19796 /* confdefs.h. */
19797 _ACEOF
19798 cat confdefs.h >>conftest.$ac_ext
19799 cat >>conftest.$ac_ext <<_ACEOF
19800 /* end confdefs.h. */
19801 $ac_includes_default
19803 main ()
19805 static struct stat ac_aggr;
19806 if (sizeof ac_aggr.st_gen)
19807 return 0;
19809 return 0;
19811 _ACEOF
19812 rm -f conftest.$ac_objext
19813 if { (ac_try="$ac_compile"
19814 case "(($ac_try" in
19815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19816 *) ac_try_echo=$ac_try;;
19817 esac
19818 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19819 (eval "$ac_compile") 2>conftest.er1
19820 ac_status=$?
19821 grep -v '^ *+' conftest.er1 >conftest.err
19822 rm -f conftest.er1
19823 cat conftest.err >&5
19824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19825 (exit $ac_status); } && {
19826 test -z "$ac_c_werror_flag" ||
19827 test ! -s conftest.err
19828 } && test -s conftest.$ac_objext; then
19829 ac_cv_member_struct_stat_st_gen=yes
19830 else
19831 echo "$as_me: failed program was:" >&5
19832 sed 's/^/| /' conftest.$ac_ext >&5
19834 ac_cv_member_struct_stat_st_gen=no
19837 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19840 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19842 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_gen" >&5
19843 echo "${ECHO_T}$ac_cv_member_struct_stat_st_gen" >&6; }
19844 if test $ac_cv_member_struct_stat_st_gen = yes; then
19846 cat >>confdefs.h <<_ACEOF
19847 #define HAVE_STRUCT_STAT_ST_GEN 1
19848 _ACEOF
19853 { echo "$as_me:$LINENO: checking for struct stat.st_birthtime" >&5
19854 echo $ECHO_N "checking for struct stat.st_birthtime... $ECHO_C" >&6; }
19855 if test "${ac_cv_member_struct_stat_st_birthtime+set}" = set; then
19856 echo $ECHO_N "(cached) $ECHO_C" >&6
19857 else
19858 cat >conftest.$ac_ext <<_ACEOF
19859 /* confdefs.h. */
19860 _ACEOF
19861 cat confdefs.h >>conftest.$ac_ext
19862 cat >>conftest.$ac_ext <<_ACEOF
19863 /* end confdefs.h. */
19864 $ac_includes_default
19866 main ()
19868 static struct stat ac_aggr;
19869 if (ac_aggr.st_birthtime)
19870 return 0;
19872 return 0;
19874 _ACEOF
19875 rm -f conftest.$ac_objext
19876 if { (ac_try="$ac_compile"
19877 case "(($ac_try" in
19878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19879 *) ac_try_echo=$ac_try;;
19880 esac
19881 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19882 (eval "$ac_compile") 2>conftest.er1
19883 ac_status=$?
19884 grep -v '^ *+' conftest.er1 >conftest.err
19885 rm -f conftest.er1
19886 cat conftest.err >&5
19887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19888 (exit $ac_status); } && {
19889 test -z "$ac_c_werror_flag" ||
19890 test ! -s conftest.err
19891 } && test -s conftest.$ac_objext; then
19892 ac_cv_member_struct_stat_st_birthtime=yes
19893 else
19894 echo "$as_me: failed program was:" >&5
19895 sed 's/^/| /' conftest.$ac_ext >&5
19897 cat >conftest.$ac_ext <<_ACEOF
19898 /* confdefs.h. */
19899 _ACEOF
19900 cat confdefs.h >>conftest.$ac_ext
19901 cat >>conftest.$ac_ext <<_ACEOF
19902 /* end confdefs.h. */
19903 $ac_includes_default
19905 main ()
19907 static struct stat ac_aggr;
19908 if (sizeof ac_aggr.st_birthtime)
19909 return 0;
19911 return 0;
19913 _ACEOF
19914 rm -f conftest.$ac_objext
19915 if { (ac_try="$ac_compile"
19916 case "(($ac_try" in
19917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19918 *) ac_try_echo=$ac_try;;
19919 esac
19920 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19921 (eval "$ac_compile") 2>conftest.er1
19922 ac_status=$?
19923 grep -v '^ *+' conftest.er1 >conftest.err
19924 rm -f conftest.er1
19925 cat conftest.err >&5
19926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19927 (exit $ac_status); } && {
19928 test -z "$ac_c_werror_flag" ||
19929 test ! -s conftest.err
19930 } && test -s conftest.$ac_objext; then
19931 ac_cv_member_struct_stat_st_birthtime=yes
19932 else
19933 echo "$as_me: failed program was:" >&5
19934 sed 's/^/| /' conftest.$ac_ext >&5
19936 ac_cv_member_struct_stat_st_birthtime=no
19939 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19942 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19944 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_birthtime" >&5
19945 echo "${ECHO_T}$ac_cv_member_struct_stat_st_birthtime" >&6; }
19946 if test $ac_cv_member_struct_stat_st_birthtime = yes; then
19948 cat >>confdefs.h <<_ACEOF
19949 #define HAVE_STRUCT_STAT_ST_BIRTHTIME 1
19950 _ACEOF
19955 { echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
19956 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6; }
19957 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
19958 echo $ECHO_N "(cached) $ECHO_C" >&6
19959 else
19960 cat >conftest.$ac_ext <<_ACEOF
19961 /* confdefs.h. */
19962 _ACEOF
19963 cat confdefs.h >>conftest.$ac_ext
19964 cat >>conftest.$ac_ext <<_ACEOF
19965 /* end confdefs.h. */
19966 $ac_includes_default
19968 main ()
19970 static struct stat ac_aggr;
19971 if (ac_aggr.st_blocks)
19972 return 0;
19974 return 0;
19976 _ACEOF
19977 rm -f conftest.$ac_objext
19978 if { (ac_try="$ac_compile"
19979 case "(($ac_try" in
19980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19981 *) ac_try_echo=$ac_try;;
19982 esac
19983 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19984 (eval "$ac_compile") 2>conftest.er1
19985 ac_status=$?
19986 grep -v '^ *+' conftest.er1 >conftest.err
19987 rm -f conftest.er1
19988 cat conftest.err >&5
19989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19990 (exit $ac_status); } && {
19991 test -z "$ac_c_werror_flag" ||
19992 test ! -s conftest.err
19993 } && test -s conftest.$ac_objext; then
19994 ac_cv_member_struct_stat_st_blocks=yes
19995 else
19996 echo "$as_me: failed program was:" >&5
19997 sed 's/^/| /' conftest.$ac_ext >&5
19999 cat >conftest.$ac_ext <<_ACEOF
20000 /* confdefs.h. */
20001 _ACEOF
20002 cat confdefs.h >>conftest.$ac_ext
20003 cat >>conftest.$ac_ext <<_ACEOF
20004 /* end confdefs.h. */
20005 $ac_includes_default
20007 main ()
20009 static struct stat ac_aggr;
20010 if (sizeof ac_aggr.st_blocks)
20011 return 0;
20013 return 0;
20015 _ACEOF
20016 rm -f conftest.$ac_objext
20017 if { (ac_try="$ac_compile"
20018 case "(($ac_try" in
20019 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20020 *) ac_try_echo=$ac_try;;
20021 esac
20022 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20023 (eval "$ac_compile") 2>conftest.er1
20024 ac_status=$?
20025 grep -v '^ *+' conftest.er1 >conftest.err
20026 rm -f conftest.er1
20027 cat conftest.err >&5
20028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20029 (exit $ac_status); } && {
20030 test -z "$ac_c_werror_flag" ||
20031 test ! -s conftest.err
20032 } && test -s conftest.$ac_objext; then
20033 ac_cv_member_struct_stat_st_blocks=yes
20034 else
20035 echo "$as_me: failed program was:" >&5
20036 sed 's/^/| /' conftest.$ac_ext >&5
20038 ac_cv_member_struct_stat_st_blocks=no
20041 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20044 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20046 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
20047 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6; }
20048 if test $ac_cv_member_struct_stat_st_blocks = yes; then
20050 cat >>confdefs.h <<_ACEOF
20051 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
20052 _ACEOF
20055 cat >>confdefs.h <<\_ACEOF
20056 #define HAVE_ST_BLOCKS 1
20057 _ACEOF
20059 else
20060 case " $LIBOBJS " in
20061 *" fileblocks.$ac_objext "* ) ;;
20062 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
20064 esac
20070 { echo "$as_me:$LINENO: checking for time.h that defines altzone" >&5
20071 echo $ECHO_N "checking for time.h that defines altzone... $ECHO_C" >&6; }
20072 if test "${ac_cv_header_time_altzone+set}" = set; then
20073 echo $ECHO_N "(cached) $ECHO_C" >&6
20074 else
20075 cat >conftest.$ac_ext <<_ACEOF
20076 /* confdefs.h. */
20077 _ACEOF
20078 cat confdefs.h >>conftest.$ac_ext
20079 cat >>conftest.$ac_ext <<_ACEOF
20080 /* end confdefs.h. */
20081 #include <time.h>
20083 main ()
20085 return altzone;
20087 return 0;
20089 _ACEOF
20090 rm -f conftest.$ac_objext
20091 if { (ac_try="$ac_compile"
20092 case "(($ac_try" in
20093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20094 *) ac_try_echo=$ac_try;;
20095 esac
20096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20097 (eval "$ac_compile") 2>conftest.er1
20098 ac_status=$?
20099 grep -v '^ *+' conftest.er1 >conftest.err
20100 rm -f conftest.er1
20101 cat conftest.err >&5
20102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20103 (exit $ac_status); } && {
20104 test -z "$ac_c_werror_flag" ||
20105 test ! -s conftest.err
20106 } && test -s conftest.$ac_objext; then
20107 ac_cv_header_time_altzone=yes
20108 else
20109 echo "$as_me: failed program was:" >&5
20110 sed 's/^/| /' conftest.$ac_ext >&5
20112 ac_cv_header_time_altzone=no
20115 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20118 { echo "$as_me:$LINENO: result: $ac_cv_header_time_altzone" >&5
20119 echo "${ECHO_T}$ac_cv_header_time_altzone" >&6; }
20120 if test $ac_cv_header_time_altzone = yes; then
20122 cat >>confdefs.h <<\_ACEOF
20123 #define HAVE_ALTZONE 1
20124 _ACEOF
20128 was_it_defined=no
20129 { echo "$as_me:$LINENO: checking whether sys/select.h and sys/time.h may both be included" >&5
20130 echo $ECHO_N "checking whether sys/select.h and sys/time.h may both be included... $ECHO_C" >&6; }
20131 cat >conftest.$ac_ext <<_ACEOF
20132 /* confdefs.h. */
20133 _ACEOF
20134 cat confdefs.h >>conftest.$ac_ext
20135 cat >>conftest.$ac_ext <<_ACEOF
20136 /* end confdefs.h. */
20138 #include <sys/types.h>
20139 #include <sys/select.h>
20140 #include <sys/time.h>
20143 main ()
20147 return 0;
20149 _ACEOF
20150 rm -f conftest.$ac_objext
20151 if { (ac_try="$ac_compile"
20152 case "(($ac_try" in
20153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20154 *) ac_try_echo=$ac_try;;
20155 esac
20156 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20157 (eval "$ac_compile") 2>conftest.er1
20158 ac_status=$?
20159 grep -v '^ *+' conftest.er1 >conftest.err
20160 rm -f conftest.er1
20161 cat conftest.err >&5
20162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20163 (exit $ac_status); } && {
20164 test -z "$ac_c_werror_flag" ||
20165 test ! -s conftest.err
20166 } && test -s conftest.$ac_objext; then
20169 cat >>confdefs.h <<\_ACEOF
20170 #define SYS_SELECT_WITH_SYS_TIME 1
20171 _ACEOF
20173 was_it_defined=yes
20175 else
20176 echo "$as_me: failed program was:" >&5
20177 sed 's/^/| /' conftest.$ac_ext >&5
20182 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20183 { echo "$as_me:$LINENO: result: $was_it_defined" >&5
20184 echo "${ECHO_T}$was_it_defined" >&6; }
20186 { echo "$as_me:$LINENO: checking for addrinfo" >&5
20187 echo $ECHO_N "checking for addrinfo... $ECHO_C" >&6; }
20188 if test "${ac_cv_struct_addrinfo+set}" = set; then
20189 echo $ECHO_N "(cached) $ECHO_C" >&6
20190 else
20191 cat >conftest.$ac_ext <<_ACEOF
20192 /* confdefs.h. */
20193 _ACEOF
20194 cat confdefs.h >>conftest.$ac_ext
20195 cat >>conftest.$ac_ext <<_ACEOF
20196 /* end confdefs.h. */
20198 # include <netdb.h>
20200 main ()
20202 struct addrinfo a
20204 return 0;
20206 _ACEOF
20207 rm -f conftest.$ac_objext
20208 if { (ac_try="$ac_compile"
20209 case "(($ac_try" in
20210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20211 *) ac_try_echo=$ac_try;;
20212 esac
20213 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20214 (eval "$ac_compile") 2>conftest.er1
20215 ac_status=$?
20216 grep -v '^ *+' conftest.er1 >conftest.err
20217 rm -f conftest.er1
20218 cat conftest.err >&5
20219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20220 (exit $ac_status); } && {
20221 test -z "$ac_c_werror_flag" ||
20222 test ! -s conftest.err
20223 } && test -s conftest.$ac_objext; then
20224 ac_cv_struct_addrinfo=yes
20225 else
20226 echo "$as_me: failed program was:" >&5
20227 sed 's/^/| /' conftest.$ac_ext >&5
20229 ac_cv_struct_addrinfo=no
20232 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20235 { echo "$as_me:$LINENO: result: $ac_cv_struct_addrinfo" >&5
20236 echo "${ECHO_T}$ac_cv_struct_addrinfo" >&6; }
20237 if test $ac_cv_struct_addrinfo = yes; then
20239 cat >>confdefs.h <<\_ACEOF
20240 #define HAVE_ADDRINFO 1
20241 _ACEOF
20245 { echo "$as_me:$LINENO: checking for sockaddr_storage" >&5
20246 echo $ECHO_N "checking for sockaddr_storage... $ECHO_C" >&6; }
20247 if test "${ac_cv_struct_sockaddr_storage+set}" = set; then
20248 echo $ECHO_N "(cached) $ECHO_C" >&6
20249 else
20250 cat >conftest.$ac_ext <<_ACEOF
20251 /* confdefs.h. */
20252 _ACEOF
20253 cat confdefs.h >>conftest.$ac_ext
20254 cat >>conftest.$ac_ext <<_ACEOF
20255 /* end confdefs.h. */
20257 # include <sys/types.h>
20258 # include <sys/socket.h>
20260 main ()
20262 struct sockaddr_storage s
20264 return 0;
20266 _ACEOF
20267 rm -f conftest.$ac_objext
20268 if { (ac_try="$ac_compile"
20269 case "(($ac_try" in
20270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20271 *) ac_try_echo=$ac_try;;
20272 esac
20273 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20274 (eval "$ac_compile") 2>conftest.er1
20275 ac_status=$?
20276 grep -v '^ *+' conftest.er1 >conftest.err
20277 rm -f conftest.er1
20278 cat conftest.err >&5
20279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20280 (exit $ac_status); } && {
20281 test -z "$ac_c_werror_flag" ||
20282 test ! -s conftest.err
20283 } && test -s conftest.$ac_objext; then
20284 ac_cv_struct_sockaddr_storage=yes
20285 else
20286 echo "$as_me: failed program was:" >&5
20287 sed 's/^/| /' conftest.$ac_ext >&5
20289 ac_cv_struct_sockaddr_storage=no
20292 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20295 { echo "$as_me:$LINENO: result: $ac_cv_struct_sockaddr_storage" >&5
20296 echo "${ECHO_T}$ac_cv_struct_sockaddr_storage" >&6; }
20297 if test $ac_cv_struct_sockaddr_storage = yes; then
20299 cat >>confdefs.h <<\_ACEOF
20300 #define HAVE_SOCKADDR_STORAGE 1
20301 _ACEOF
20305 # checks for compiler characteristics
20308 { echo "$as_me:$LINENO: checking whether char is unsigned" >&5
20309 echo $ECHO_N "checking whether char is unsigned... $ECHO_C" >&6; }
20310 if test "${ac_cv_c_char_unsigned+set}" = set; then
20311 echo $ECHO_N "(cached) $ECHO_C" >&6
20312 else
20313 cat >conftest.$ac_ext <<_ACEOF
20314 /* confdefs.h. */
20315 _ACEOF
20316 cat confdefs.h >>conftest.$ac_ext
20317 cat >>conftest.$ac_ext <<_ACEOF
20318 /* end confdefs.h. */
20319 $ac_includes_default
20321 main ()
20323 static int test_array [1 - 2 * !(((char) -1) < 0)];
20324 test_array [0] = 0
20327 return 0;
20329 _ACEOF
20330 rm -f conftest.$ac_objext
20331 if { (ac_try="$ac_compile"
20332 case "(($ac_try" in
20333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20334 *) ac_try_echo=$ac_try;;
20335 esac
20336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20337 (eval "$ac_compile") 2>conftest.er1
20338 ac_status=$?
20339 grep -v '^ *+' conftest.er1 >conftest.err
20340 rm -f conftest.er1
20341 cat conftest.err >&5
20342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20343 (exit $ac_status); } && {
20344 test -z "$ac_c_werror_flag" ||
20345 test ! -s conftest.err
20346 } && test -s conftest.$ac_objext; then
20347 ac_cv_c_char_unsigned=no
20348 else
20349 echo "$as_me: failed program was:" >&5
20350 sed 's/^/| /' conftest.$ac_ext >&5
20352 ac_cv_c_char_unsigned=yes
20355 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20357 { echo "$as_me:$LINENO: result: $ac_cv_c_char_unsigned" >&5
20358 echo "${ECHO_T}$ac_cv_c_char_unsigned" >&6; }
20359 if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
20360 cat >>confdefs.h <<\_ACEOF
20361 #define __CHAR_UNSIGNED__ 1
20362 _ACEOF
20366 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
20367 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
20368 if test "${ac_cv_c_const+set}" = set; then
20369 echo $ECHO_N "(cached) $ECHO_C" >&6
20370 else
20371 cat >conftest.$ac_ext <<_ACEOF
20372 /* confdefs.h. */
20373 _ACEOF
20374 cat confdefs.h >>conftest.$ac_ext
20375 cat >>conftest.$ac_ext <<_ACEOF
20376 /* end confdefs.h. */
20379 main ()
20381 /* FIXME: Include the comments suggested by Paul. */
20382 #ifndef __cplusplus
20383 /* Ultrix mips cc rejects this. */
20384 typedef int charset[2];
20385 const charset cs;
20386 /* SunOS 4.1.1 cc rejects this. */
20387 char const *const *pcpcc;
20388 char **ppc;
20389 /* NEC SVR4.0.2 mips cc rejects this. */
20390 struct point {int x, y;};
20391 static struct point const zero = {0,0};
20392 /* AIX XL C 1.02.0.0 rejects this.
20393 It does not let you subtract one const X* pointer from another in
20394 an arm of an if-expression whose if-part is not a constant
20395 expression */
20396 const char *g = "string";
20397 pcpcc = &g + (g ? g-g : 0);
20398 /* HPUX 7.0 cc rejects these. */
20399 ++pcpcc;
20400 ppc = (char**) pcpcc;
20401 pcpcc = (char const *const *) ppc;
20402 { /* SCO 3.2v4 cc rejects this. */
20403 char *t;
20404 char const *s = 0 ? (char *) 0 : (char const *) 0;
20406 *t++ = 0;
20407 if (s) return 0;
20409 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
20410 int x[] = {25, 17};
20411 const int *foo = &x[0];
20412 ++foo;
20414 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
20415 typedef const int *iptr;
20416 iptr p = 0;
20417 ++p;
20419 { /* AIX XL C 1.02.0.0 rejects this saying
20420 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
20421 struct s { int j; const int *ap[3]; };
20422 struct s *b; b->j = 5;
20424 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
20425 const int foo = 10;
20426 if (!foo) return 0;
20428 return !cs[0] && !zero.x;
20429 #endif
20432 return 0;
20434 _ACEOF
20435 rm -f conftest.$ac_objext
20436 if { (ac_try="$ac_compile"
20437 case "(($ac_try" in
20438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20439 *) ac_try_echo=$ac_try;;
20440 esac
20441 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20442 (eval "$ac_compile") 2>conftest.er1
20443 ac_status=$?
20444 grep -v '^ *+' conftest.er1 >conftest.err
20445 rm -f conftest.er1
20446 cat conftest.err >&5
20447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20448 (exit $ac_status); } && {
20449 test -z "$ac_c_werror_flag" ||
20450 test ! -s conftest.err
20451 } && test -s conftest.$ac_objext; then
20452 ac_cv_c_const=yes
20453 else
20454 echo "$as_me: failed program was:" >&5
20455 sed 's/^/| /' conftest.$ac_ext >&5
20457 ac_cv_c_const=no
20460 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20462 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
20463 echo "${ECHO_T}$ac_cv_c_const" >&6; }
20464 if test $ac_cv_c_const = no; then
20466 cat >>confdefs.h <<\_ACEOF
20467 #define const
20468 _ACEOF
20473 works=no
20474 { echo "$as_me:$LINENO: checking for working volatile" >&5
20475 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6; }
20476 cat >conftest.$ac_ext <<_ACEOF
20477 /* confdefs.h. */
20478 _ACEOF
20479 cat confdefs.h >>conftest.$ac_ext
20480 cat >>conftest.$ac_ext <<_ACEOF
20481 /* end confdefs.h. */
20484 main ()
20486 volatile int x; x = 0;
20488 return 0;
20490 _ACEOF
20491 rm -f conftest.$ac_objext
20492 if { (ac_try="$ac_compile"
20493 case "(($ac_try" in
20494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20495 *) ac_try_echo=$ac_try;;
20496 esac
20497 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20498 (eval "$ac_compile") 2>conftest.er1
20499 ac_status=$?
20500 grep -v '^ *+' conftest.er1 >conftest.err
20501 rm -f conftest.er1
20502 cat conftest.err >&5
20503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20504 (exit $ac_status); } && {
20505 test -z "$ac_c_werror_flag" ||
20506 test ! -s conftest.err
20507 } && test -s conftest.$ac_objext; then
20508 works=yes
20509 else
20510 echo "$as_me: failed program was:" >&5
20511 sed 's/^/| /' conftest.$ac_ext >&5
20514 cat >>confdefs.h <<\_ACEOF
20515 #define volatile
20516 _ACEOF
20521 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20522 { echo "$as_me:$LINENO: result: $works" >&5
20523 echo "${ECHO_T}$works" >&6; }
20525 works=no
20526 { echo "$as_me:$LINENO: checking for working signed char" >&5
20527 echo $ECHO_N "checking for working signed char... $ECHO_C" >&6; }
20528 cat >conftest.$ac_ext <<_ACEOF
20529 /* confdefs.h. */
20530 _ACEOF
20531 cat confdefs.h >>conftest.$ac_ext
20532 cat >>conftest.$ac_ext <<_ACEOF
20533 /* end confdefs.h. */
20536 main ()
20538 signed char c;
20540 return 0;
20542 _ACEOF
20543 rm -f conftest.$ac_objext
20544 if { (ac_try="$ac_compile"
20545 case "(($ac_try" in
20546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20547 *) ac_try_echo=$ac_try;;
20548 esac
20549 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20550 (eval "$ac_compile") 2>conftest.er1
20551 ac_status=$?
20552 grep -v '^ *+' conftest.er1 >conftest.err
20553 rm -f conftest.er1
20554 cat conftest.err >&5
20555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20556 (exit $ac_status); } && {
20557 test -z "$ac_c_werror_flag" ||
20558 test ! -s conftest.err
20559 } && test -s conftest.$ac_objext; then
20560 works=yes
20561 else
20562 echo "$as_me: failed program was:" >&5
20563 sed 's/^/| /' conftest.$ac_ext >&5
20566 cat >>confdefs.h <<\_ACEOF
20567 #define signed
20568 _ACEOF
20573 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20574 { echo "$as_me:$LINENO: result: $works" >&5
20575 echo "${ECHO_T}$works" >&6; }
20577 have_prototypes=no
20578 { echo "$as_me:$LINENO: checking for prototypes" >&5
20579 echo $ECHO_N "checking for prototypes... $ECHO_C" >&6; }
20580 cat >conftest.$ac_ext <<_ACEOF
20581 /* confdefs.h. */
20582 _ACEOF
20583 cat confdefs.h >>conftest.$ac_ext
20584 cat >>conftest.$ac_ext <<_ACEOF
20585 /* end confdefs.h. */
20586 int foo(int x) { return 0; }
20588 main ()
20590 return foo(10);
20592 return 0;
20594 _ACEOF
20595 rm -f conftest.$ac_objext
20596 if { (ac_try="$ac_compile"
20597 case "(($ac_try" in
20598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20599 *) ac_try_echo=$ac_try;;
20600 esac
20601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20602 (eval "$ac_compile") 2>conftest.er1
20603 ac_status=$?
20604 grep -v '^ *+' conftest.er1 >conftest.err
20605 rm -f conftest.er1
20606 cat conftest.err >&5
20607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20608 (exit $ac_status); } && {
20609 test -z "$ac_c_werror_flag" ||
20610 test ! -s conftest.err
20611 } && test -s conftest.$ac_objext; then
20614 cat >>confdefs.h <<\_ACEOF
20615 #define HAVE_PROTOTYPES 1
20616 _ACEOF
20618 have_prototypes=yes
20620 else
20621 echo "$as_me: failed program was:" >&5
20622 sed 's/^/| /' conftest.$ac_ext >&5
20627 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20628 { echo "$as_me:$LINENO: result: $have_prototypes" >&5
20629 echo "${ECHO_T}$have_prototypes" >&6; }
20631 works=no
20632 { echo "$as_me:$LINENO: checking for variable length prototypes and stdarg.h" >&5
20633 echo $ECHO_N "checking for variable length prototypes and stdarg.h... $ECHO_C" >&6; }
20634 cat >conftest.$ac_ext <<_ACEOF
20635 /* confdefs.h. */
20636 _ACEOF
20637 cat confdefs.h >>conftest.$ac_ext
20638 cat >>conftest.$ac_ext <<_ACEOF
20639 /* end confdefs.h. */
20641 #include <stdarg.h>
20642 int foo(int x, ...) {
20643 va_list va;
20644 va_start(va, x);
20645 va_arg(va, int);
20646 va_arg(va, char *);
20647 va_arg(va, double);
20648 return 0;
20652 main ()
20654 return foo(10, "", 3.14);
20656 return 0;
20658 _ACEOF
20659 rm -f conftest.$ac_objext
20660 if { (ac_try="$ac_compile"
20661 case "(($ac_try" in
20662 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20663 *) ac_try_echo=$ac_try;;
20664 esac
20665 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20666 (eval "$ac_compile") 2>conftest.er1
20667 ac_status=$?
20668 grep -v '^ *+' conftest.er1 >conftest.err
20669 rm -f conftest.er1
20670 cat conftest.err >&5
20671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20672 (exit $ac_status); } && {
20673 test -z "$ac_c_werror_flag" ||
20674 test ! -s conftest.err
20675 } && test -s conftest.$ac_objext; then
20678 cat >>confdefs.h <<\_ACEOF
20679 #define HAVE_STDARG_PROTOTYPES 1
20680 _ACEOF
20682 works=yes
20684 else
20685 echo "$as_me: failed program was:" >&5
20686 sed 's/^/| /' conftest.$ac_ext >&5
20691 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20692 { echo "$as_me:$LINENO: result: $works" >&5
20693 echo "${ECHO_T}$works" >&6; }
20695 # check for socketpair
20696 { echo "$as_me:$LINENO: checking for socketpair" >&5
20697 echo $ECHO_N "checking for socketpair... $ECHO_C" >&6; }
20698 cat >conftest.$ac_ext <<_ACEOF
20699 /* confdefs.h. */
20700 _ACEOF
20701 cat confdefs.h >>conftest.$ac_ext
20702 cat >>conftest.$ac_ext <<_ACEOF
20703 /* end confdefs.h. */
20705 #include <sys/types.h>
20706 #include <sys/socket.h>
20709 main ()
20711 void *x=socketpair
20713 return 0;
20715 _ACEOF
20716 rm -f conftest.$ac_objext
20717 if { (ac_try="$ac_compile"
20718 case "(($ac_try" in
20719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20720 *) ac_try_echo=$ac_try;;
20721 esac
20722 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20723 (eval "$ac_compile") 2>conftest.er1
20724 ac_status=$?
20725 grep -v '^ *+' conftest.er1 >conftest.err
20726 rm -f conftest.er1
20727 cat conftest.err >&5
20728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20729 (exit $ac_status); } && {
20730 test -z "$ac_c_werror_flag" ||
20731 test ! -s conftest.err
20732 } && test -s conftest.$ac_objext; then
20734 cat >>confdefs.h <<\_ACEOF
20735 #define HAVE_SOCKETPAIR 1
20736 _ACEOF
20738 { echo "$as_me:$LINENO: result: yes" >&5
20739 echo "${ECHO_T}yes" >&6; }
20740 else
20741 echo "$as_me: failed program was:" >&5
20742 sed 's/^/| /' conftest.$ac_ext >&5
20744 { echo "$as_me:$LINENO: result: no" >&5
20745 echo "${ECHO_T}no" >&6; }
20749 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20751 # check if sockaddr has sa_len member
20752 { echo "$as_me:$LINENO: checking if sockaddr has sa_len member" >&5
20753 echo $ECHO_N "checking if sockaddr has sa_len member... $ECHO_C" >&6; }
20754 cat >conftest.$ac_ext <<_ACEOF
20755 /* confdefs.h. */
20756 _ACEOF
20757 cat confdefs.h >>conftest.$ac_ext
20758 cat >>conftest.$ac_ext <<_ACEOF
20759 /* end confdefs.h. */
20760 #include <sys/types.h>
20761 #include <sys/socket.h>
20763 main ()
20765 struct sockaddr x;
20766 x.sa_len = 0;
20768 return 0;
20770 _ACEOF
20771 rm -f conftest.$ac_objext
20772 if { (ac_try="$ac_compile"
20773 case "(($ac_try" in
20774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20775 *) ac_try_echo=$ac_try;;
20776 esac
20777 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20778 (eval "$ac_compile") 2>conftest.er1
20779 ac_status=$?
20780 grep -v '^ *+' conftest.er1 >conftest.err
20781 rm -f conftest.er1
20782 cat conftest.err >&5
20783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20784 (exit $ac_status); } && {
20785 test -z "$ac_c_werror_flag" ||
20786 test ! -s conftest.err
20787 } && test -s conftest.$ac_objext; then
20788 { echo "$as_me:$LINENO: result: yes" >&5
20789 echo "${ECHO_T}yes" >&6; }
20791 cat >>confdefs.h <<\_ACEOF
20792 #define HAVE_SOCKADDR_SA_LEN 1
20793 _ACEOF
20795 else
20796 echo "$as_me: failed program was:" >&5
20797 sed 's/^/| /' conftest.$ac_ext >&5
20799 { echo "$as_me:$LINENO: result: no" >&5
20800 echo "${ECHO_T}no" >&6; }
20803 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20805 va_list_is_array=no
20806 { echo "$as_me:$LINENO: checking whether va_list is an array" >&5
20807 echo $ECHO_N "checking whether va_list is an array... $ECHO_C" >&6; }
20808 cat >conftest.$ac_ext <<_ACEOF
20809 /* confdefs.h. */
20810 _ACEOF
20811 cat confdefs.h >>conftest.$ac_ext
20812 cat >>conftest.$ac_ext <<_ACEOF
20813 /* end confdefs.h. */
20815 #ifdef HAVE_STDARG_PROTOTYPES
20816 #include <stdarg.h>
20817 #else
20818 #include <varargs.h>
20819 #endif
20822 main ()
20824 va_list list1, list2; list1 = list2;
20826 return 0;
20828 _ACEOF
20829 rm -f conftest.$ac_objext
20830 if { (ac_try="$ac_compile"
20831 case "(($ac_try" in
20832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20833 *) ac_try_echo=$ac_try;;
20834 esac
20835 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20836 (eval "$ac_compile") 2>conftest.er1
20837 ac_status=$?
20838 grep -v '^ *+' conftest.er1 >conftest.err
20839 rm -f conftest.er1
20840 cat conftest.err >&5
20841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20842 (exit $ac_status); } && {
20843 test -z "$ac_c_werror_flag" ||
20844 test ! -s conftest.err
20845 } && test -s conftest.$ac_objext; then
20847 else
20848 echo "$as_me: failed program was:" >&5
20849 sed 's/^/| /' conftest.$ac_ext >&5
20853 cat >>confdefs.h <<\_ACEOF
20854 #define VA_LIST_IS_ARRAY 1
20855 _ACEOF
20857 va_list_is_array=yes
20861 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20862 { echo "$as_me:$LINENO: result: $va_list_is_array" >&5
20863 echo "${ECHO_T}$va_list_is_array" >&6; }
20865 # sigh -- gethostbyname_r is a mess; it can have 3, 5 or 6 arguments :-(
20869 { echo "$as_me:$LINENO: checking for gethostbyname_r" >&5
20870 echo $ECHO_N "checking for gethostbyname_r... $ECHO_C" >&6; }
20871 if test "${ac_cv_func_gethostbyname_r+set}" = set; then
20872 echo $ECHO_N "(cached) $ECHO_C" >&6
20873 else
20874 cat >conftest.$ac_ext <<_ACEOF
20875 /* confdefs.h. */
20876 _ACEOF
20877 cat confdefs.h >>conftest.$ac_ext
20878 cat >>conftest.$ac_ext <<_ACEOF
20879 /* end confdefs.h. */
20880 /* Define gethostbyname_r to an innocuous variant, in case <limits.h> declares gethostbyname_r.
20881 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20882 #define gethostbyname_r innocuous_gethostbyname_r
20884 /* System header to define __stub macros and hopefully few prototypes,
20885 which can conflict with char gethostbyname_r (); below.
20886 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20887 <limits.h> exists even on freestanding compilers. */
20889 #ifdef __STDC__
20890 # include <limits.h>
20891 #else
20892 # include <assert.h>
20893 #endif
20895 #undef gethostbyname_r
20897 /* Override any GCC internal prototype to avoid an error.
20898 Use char because int might match the return type of a GCC
20899 builtin and then its argument prototype would still apply. */
20900 #ifdef __cplusplus
20901 extern "C"
20902 #endif
20903 char gethostbyname_r ();
20904 /* The GNU C library defines this for functions which it implements
20905 to always fail with ENOSYS. Some functions are actually named
20906 something starting with __ and the normal name is an alias. */
20907 #if defined __stub_gethostbyname_r || defined __stub___gethostbyname_r
20908 choke me
20909 #endif
20912 main ()
20914 return gethostbyname_r ();
20916 return 0;
20918 _ACEOF
20919 rm -f conftest.$ac_objext conftest$ac_exeext
20920 if { (ac_try="$ac_link"
20921 case "(($ac_try" in
20922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20923 *) ac_try_echo=$ac_try;;
20924 esac
20925 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20926 (eval "$ac_link") 2>conftest.er1
20927 ac_status=$?
20928 grep -v '^ *+' conftest.er1 >conftest.err
20929 rm -f conftest.er1
20930 cat conftest.err >&5
20931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20932 (exit $ac_status); } && {
20933 test -z "$ac_c_werror_flag" ||
20934 test ! -s conftest.err
20935 } && test -s conftest$ac_exeext &&
20936 $as_test_x conftest$ac_exeext; then
20937 ac_cv_func_gethostbyname_r=yes
20938 else
20939 echo "$as_me: failed program was:" >&5
20940 sed 's/^/| /' conftest.$ac_ext >&5
20942 ac_cv_func_gethostbyname_r=no
20945 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20946 conftest$ac_exeext conftest.$ac_ext
20948 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname_r" >&5
20949 echo "${ECHO_T}$ac_cv_func_gethostbyname_r" >&6; }
20950 if test $ac_cv_func_gethostbyname_r = yes; then
20952 cat >>confdefs.h <<\_ACEOF
20953 #define HAVE_GETHOSTBYNAME_R 1
20954 _ACEOF
20956 { echo "$as_me:$LINENO: checking gethostbyname_r with 6 args" >&5
20957 echo $ECHO_N "checking gethostbyname_r with 6 args... $ECHO_C" >&6; }
20958 OLD_CFLAGS=$CFLAGS
20959 CFLAGS="$CFLAGS $MY_CPPFLAGS $MY_THREAD_CPPFLAGS $MY_CFLAGS"
20960 cat >conftest.$ac_ext <<_ACEOF
20961 /* confdefs.h. */
20962 _ACEOF
20963 cat confdefs.h >>conftest.$ac_ext
20964 cat >>conftest.$ac_ext <<_ACEOF
20965 /* end confdefs.h. */
20967 # include <netdb.h>
20970 main ()
20973 char *name;
20974 struct hostent *he, *res;
20975 char buffer[2048];
20976 int buflen = 2048;
20977 int h_errnop;
20979 (void) gethostbyname_r(name, he, buffer, buflen, &res, &h_errnop)
20982 return 0;
20984 _ACEOF
20985 rm -f conftest.$ac_objext
20986 if { (ac_try="$ac_compile"
20987 case "(($ac_try" in
20988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20989 *) ac_try_echo=$ac_try;;
20990 esac
20991 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20992 (eval "$ac_compile") 2>conftest.er1
20993 ac_status=$?
20994 grep -v '^ *+' conftest.er1 >conftest.err
20995 rm -f conftest.er1
20996 cat conftest.err >&5
20997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20998 (exit $ac_status); } && {
20999 test -z "$ac_c_werror_flag" ||
21000 test ! -s conftest.err
21001 } && test -s conftest.$ac_objext; then
21003 cat >>confdefs.h <<\_ACEOF
21004 #define HAVE_GETHOSTBYNAME_R 1
21005 _ACEOF
21008 cat >>confdefs.h <<\_ACEOF
21009 #define HAVE_GETHOSTBYNAME_R_6_ARG 1
21010 _ACEOF
21012 { echo "$as_me:$LINENO: result: yes" >&5
21013 echo "${ECHO_T}yes" >&6; }
21015 else
21016 echo "$as_me: failed program was:" >&5
21017 sed 's/^/| /' conftest.$ac_ext >&5
21020 { echo "$as_me:$LINENO: result: no" >&5
21021 echo "${ECHO_T}no" >&6; }
21022 { echo "$as_me:$LINENO: checking gethostbyname_r with 5 args" >&5
21023 echo $ECHO_N "checking gethostbyname_r with 5 args... $ECHO_C" >&6; }
21024 cat >conftest.$ac_ext <<_ACEOF
21025 /* confdefs.h. */
21026 _ACEOF
21027 cat confdefs.h >>conftest.$ac_ext
21028 cat >>conftest.$ac_ext <<_ACEOF
21029 /* end confdefs.h. */
21031 # include <netdb.h>
21034 main ()
21037 char *name;
21038 struct hostent *he;
21039 char buffer[2048];
21040 int buflen = 2048;
21041 int h_errnop;
21043 (void) gethostbyname_r(name, he, buffer, buflen, &h_errnop)
21046 return 0;
21048 _ACEOF
21049 rm -f conftest.$ac_objext
21050 if { (ac_try="$ac_compile"
21051 case "(($ac_try" in
21052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21053 *) ac_try_echo=$ac_try;;
21054 esac
21055 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21056 (eval "$ac_compile") 2>conftest.er1
21057 ac_status=$?
21058 grep -v '^ *+' conftest.er1 >conftest.err
21059 rm -f conftest.er1
21060 cat conftest.err >&5
21061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21062 (exit $ac_status); } && {
21063 test -z "$ac_c_werror_flag" ||
21064 test ! -s conftest.err
21065 } && test -s conftest.$ac_objext; then
21067 cat >>confdefs.h <<\_ACEOF
21068 #define HAVE_GETHOSTBYNAME_R 1
21069 _ACEOF
21072 cat >>confdefs.h <<\_ACEOF
21073 #define HAVE_GETHOSTBYNAME_R_5_ARG 1
21074 _ACEOF
21076 { echo "$as_me:$LINENO: result: yes" >&5
21077 echo "${ECHO_T}yes" >&6; }
21079 else
21080 echo "$as_me: failed program was:" >&5
21081 sed 's/^/| /' conftest.$ac_ext >&5
21084 { echo "$as_me:$LINENO: result: no" >&5
21085 echo "${ECHO_T}no" >&6; }
21086 { echo "$as_me:$LINENO: checking gethostbyname_r with 3 args" >&5
21087 echo $ECHO_N "checking gethostbyname_r with 3 args... $ECHO_C" >&6; }
21088 cat >conftest.$ac_ext <<_ACEOF
21089 /* confdefs.h. */
21090 _ACEOF
21091 cat confdefs.h >>conftest.$ac_ext
21092 cat >>conftest.$ac_ext <<_ACEOF
21093 /* end confdefs.h. */
21095 # include <netdb.h>
21098 main ()
21101 char *name;
21102 struct hostent *he;
21103 struct hostent_data data;
21105 (void) gethostbyname_r(name, he, &data);
21108 return 0;
21110 _ACEOF
21111 rm -f conftest.$ac_objext
21112 if { (ac_try="$ac_compile"
21113 case "(($ac_try" in
21114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21115 *) ac_try_echo=$ac_try;;
21116 esac
21117 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21118 (eval "$ac_compile") 2>conftest.er1
21119 ac_status=$?
21120 grep -v '^ *+' conftest.er1 >conftest.err
21121 rm -f conftest.er1
21122 cat conftest.err >&5
21123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21124 (exit $ac_status); } && {
21125 test -z "$ac_c_werror_flag" ||
21126 test ! -s conftest.err
21127 } && test -s conftest.$ac_objext; then
21129 cat >>confdefs.h <<\_ACEOF
21130 #define HAVE_GETHOSTBYNAME_R 1
21131 _ACEOF
21134 cat >>confdefs.h <<\_ACEOF
21135 #define HAVE_GETHOSTBYNAME_R_3_ARG 1
21136 _ACEOF
21138 { echo "$as_me:$LINENO: result: yes" >&5
21139 echo "${ECHO_T}yes" >&6; }
21141 else
21142 echo "$as_me: failed program was:" >&5
21143 sed 's/^/| /' conftest.$ac_ext >&5
21146 { echo "$as_me:$LINENO: result: no" >&5
21147 echo "${ECHO_T}no" >&6; }
21151 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21155 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21159 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21160 CFLAGS=$OLD_CFLAGS
21162 else
21165 for ac_func in gethostbyname
21167 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21168 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21169 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21170 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21171 echo $ECHO_N "(cached) $ECHO_C" >&6
21172 else
21173 cat >conftest.$ac_ext <<_ACEOF
21174 /* confdefs.h. */
21175 _ACEOF
21176 cat confdefs.h >>conftest.$ac_ext
21177 cat >>conftest.$ac_ext <<_ACEOF
21178 /* end confdefs.h. */
21179 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21180 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21181 #define $ac_func innocuous_$ac_func
21183 /* System header to define __stub macros and hopefully few prototypes,
21184 which can conflict with char $ac_func (); below.
21185 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21186 <limits.h> exists even on freestanding compilers. */
21188 #ifdef __STDC__
21189 # include <limits.h>
21190 #else
21191 # include <assert.h>
21192 #endif
21194 #undef $ac_func
21196 /* Override any GCC internal prototype to avoid an error.
21197 Use char because int might match the return type of a GCC
21198 builtin and then its argument prototype would still apply. */
21199 #ifdef __cplusplus
21200 extern "C"
21201 #endif
21202 char $ac_func ();
21203 /* The GNU C library defines this for functions which it implements
21204 to always fail with ENOSYS. Some functions are actually named
21205 something starting with __ and the normal name is an alias. */
21206 #if defined __stub_$ac_func || defined __stub___$ac_func
21207 choke me
21208 #endif
21211 main ()
21213 return $ac_func ();
21215 return 0;
21217 _ACEOF
21218 rm -f conftest.$ac_objext conftest$ac_exeext
21219 if { (ac_try="$ac_link"
21220 case "(($ac_try" in
21221 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21222 *) ac_try_echo=$ac_try;;
21223 esac
21224 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21225 (eval "$ac_link") 2>conftest.er1
21226 ac_status=$?
21227 grep -v '^ *+' conftest.er1 >conftest.err
21228 rm -f conftest.er1
21229 cat conftest.err >&5
21230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21231 (exit $ac_status); } && {
21232 test -z "$ac_c_werror_flag" ||
21233 test ! -s conftest.err
21234 } && test -s conftest$ac_exeext &&
21235 $as_test_x conftest$ac_exeext; then
21236 eval "$as_ac_var=yes"
21237 else
21238 echo "$as_me: failed program was:" >&5
21239 sed 's/^/| /' conftest.$ac_ext >&5
21241 eval "$as_ac_var=no"
21244 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21245 conftest$ac_exeext conftest.$ac_ext
21247 ac_res=`eval echo '${'$as_ac_var'}'`
21248 { echo "$as_me:$LINENO: result: $ac_res" >&5
21249 echo "${ECHO_T}$ac_res" >&6; }
21250 if test `eval echo '${'$as_ac_var'}'` = yes; then
21251 cat >>confdefs.h <<_ACEOF
21252 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21253 _ACEOF
21256 done
21267 # checks for system services
21268 # (none yet)
21270 # Linux requires this for correct f.p. operations
21271 { echo "$as_me:$LINENO: checking for __fpu_control" >&5
21272 echo $ECHO_N "checking for __fpu_control... $ECHO_C" >&6; }
21273 if test "${ac_cv_func___fpu_control+set}" = set; then
21274 echo $ECHO_N "(cached) $ECHO_C" >&6
21275 else
21276 cat >conftest.$ac_ext <<_ACEOF
21277 /* confdefs.h. */
21278 _ACEOF
21279 cat confdefs.h >>conftest.$ac_ext
21280 cat >>conftest.$ac_ext <<_ACEOF
21281 /* end confdefs.h. */
21282 /* Define __fpu_control to an innocuous variant, in case <limits.h> declares __fpu_control.
21283 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21284 #define __fpu_control innocuous___fpu_control
21286 /* System header to define __stub macros and hopefully few prototypes,
21287 which can conflict with char __fpu_control (); below.
21288 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21289 <limits.h> exists even on freestanding compilers. */
21291 #ifdef __STDC__
21292 # include <limits.h>
21293 #else
21294 # include <assert.h>
21295 #endif
21297 #undef __fpu_control
21299 /* Override any GCC internal prototype to avoid an error.
21300 Use char because int might match the return type of a GCC
21301 builtin and then its argument prototype would still apply. */
21302 #ifdef __cplusplus
21303 extern "C"
21304 #endif
21305 char __fpu_control ();
21306 /* The GNU C library defines this for functions which it implements
21307 to always fail with ENOSYS. Some functions are actually named
21308 something starting with __ and the normal name is an alias. */
21309 #if defined __stub___fpu_control || defined __stub_____fpu_control
21310 choke me
21311 #endif
21314 main ()
21316 return __fpu_control ();
21318 return 0;
21320 _ACEOF
21321 rm -f conftest.$ac_objext conftest$ac_exeext
21322 if { (ac_try="$ac_link"
21323 case "(($ac_try" in
21324 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21325 *) ac_try_echo=$ac_try;;
21326 esac
21327 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21328 (eval "$ac_link") 2>conftest.er1
21329 ac_status=$?
21330 grep -v '^ *+' conftest.er1 >conftest.err
21331 rm -f conftest.er1
21332 cat conftest.err >&5
21333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21334 (exit $ac_status); } && {
21335 test -z "$ac_c_werror_flag" ||
21336 test ! -s conftest.err
21337 } && test -s conftest$ac_exeext &&
21338 $as_test_x conftest$ac_exeext; then
21339 ac_cv_func___fpu_control=yes
21340 else
21341 echo "$as_me: failed program was:" >&5
21342 sed 's/^/| /' conftest.$ac_ext >&5
21344 ac_cv_func___fpu_control=no
21347 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21348 conftest$ac_exeext conftest.$ac_ext
21350 { echo "$as_me:$LINENO: result: $ac_cv_func___fpu_control" >&5
21351 echo "${ECHO_T}$ac_cv_func___fpu_control" >&6; }
21352 if test $ac_cv_func___fpu_control = yes; then
21354 else
21356 { echo "$as_me:$LINENO: checking for __fpu_control in -lieee" >&5
21357 echo $ECHO_N "checking for __fpu_control in -lieee... $ECHO_C" >&6; }
21358 if test "${ac_cv_lib_ieee___fpu_control+set}" = set; then
21359 echo $ECHO_N "(cached) $ECHO_C" >&6
21360 else
21361 ac_check_lib_save_LIBS=$LIBS
21362 LIBS="-lieee $LIBS"
21363 cat >conftest.$ac_ext <<_ACEOF
21364 /* confdefs.h. */
21365 _ACEOF
21366 cat confdefs.h >>conftest.$ac_ext
21367 cat >>conftest.$ac_ext <<_ACEOF
21368 /* end confdefs.h. */
21370 /* Override any GCC internal prototype to avoid an error.
21371 Use char because int might match the return type of a GCC
21372 builtin and then its argument prototype would still apply. */
21373 #ifdef __cplusplus
21374 extern "C"
21375 #endif
21376 char __fpu_control ();
21378 main ()
21380 return __fpu_control ();
21382 return 0;
21384 _ACEOF
21385 rm -f conftest.$ac_objext conftest$ac_exeext
21386 if { (ac_try="$ac_link"
21387 case "(($ac_try" in
21388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21389 *) ac_try_echo=$ac_try;;
21390 esac
21391 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21392 (eval "$ac_link") 2>conftest.er1
21393 ac_status=$?
21394 grep -v '^ *+' conftest.er1 >conftest.err
21395 rm -f conftest.er1
21396 cat conftest.err >&5
21397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21398 (exit $ac_status); } && {
21399 test -z "$ac_c_werror_flag" ||
21400 test ! -s conftest.err
21401 } && test -s conftest$ac_exeext &&
21402 $as_test_x conftest$ac_exeext; then
21403 ac_cv_lib_ieee___fpu_control=yes
21404 else
21405 echo "$as_me: failed program was:" >&5
21406 sed 's/^/| /' conftest.$ac_ext >&5
21408 ac_cv_lib_ieee___fpu_control=no
21411 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21412 conftest$ac_exeext conftest.$ac_ext
21413 LIBS=$ac_check_lib_save_LIBS
21415 { echo "$as_me:$LINENO: result: $ac_cv_lib_ieee___fpu_control" >&5
21416 echo "${ECHO_T}$ac_cv_lib_ieee___fpu_control" >&6; }
21417 if test $ac_cv_lib_ieee___fpu_control = yes; then
21418 cat >>confdefs.h <<_ACEOF
21419 #define HAVE_LIBIEEE 1
21420 _ACEOF
21422 LIBS="-lieee $LIBS"
21430 # Check for --with-fpectl
21431 { echo "$as_me:$LINENO: checking for --with-fpectl" >&5
21432 echo $ECHO_N "checking for --with-fpectl... $ECHO_C" >&6; }
21434 # Check whether --with-fpectl was given.
21435 if test "${with_fpectl+set}" = set; then
21436 withval=$with_fpectl;
21437 if test "$withval" != no
21438 then
21440 cat >>confdefs.h <<\_ACEOF
21441 #define WANT_SIGFPE_HANDLER 1
21442 _ACEOF
21444 { echo "$as_me:$LINENO: result: yes" >&5
21445 echo "${ECHO_T}yes" >&6; }
21446 else { echo "$as_me:$LINENO: result: no" >&5
21447 echo "${ECHO_T}no" >&6; }
21449 else
21450 { echo "$as_me:$LINENO: result: no" >&5
21451 echo "${ECHO_T}no" >&6; }
21455 # check for --with-libm=...
21457 case $ac_sys_system in
21458 Darwin) ;;
21459 BeOS) ;;
21460 *) LIBM=-lm
21461 esac
21462 { echo "$as_me:$LINENO: checking for --with-libm=STRING" >&5
21463 echo $ECHO_N "checking for --with-libm=STRING... $ECHO_C" >&6; }
21465 # Check whether --with-libm was given.
21466 if test "${with_libm+set}" = set; then
21467 withval=$with_libm;
21468 if test "$withval" = no
21469 then LIBM=
21470 { echo "$as_me:$LINENO: result: force LIBM empty" >&5
21471 echo "${ECHO_T}force LIBM empty" >&6; }
21472 elif test "$withval" != yes
21473 then LIBM=$withval
21474 { echo "$as_me:$LINENO: result: set LIBM=\"$withval\"" >&5
21475 echo "${ECHO_T}set LIBM=\"$withval\"" >&6; }
21476 else { { echo "$as_me:$LINENO: error: proper usage is --with-libm=STRING" >&5
21477 echo "$as_me: error: proper usage is --with-libm=STRING" >&2;}
21478 { (exit 1); exit 1; }; }
21480 else
21481 { echo "$as_me:$LINENO: result: default LIBM=\"$LIBM\"" >&5
21482 echo "${ECHO_T}default LIBM=\"$LIBM\"" >&6; }
21486 # check for --with-libc=...
21488 { echo "$as_me:$LINENO: checking for --with-libc=STRING" >&5
21489 echo $ECHO_N "checking for --with-libc=STRING... $ECHO_C" >&6; }
21491 # Check whether --with-libc was given.
21492 if test "${with_libc+set}" = set; then
21493 withval=$with_libc;
21494 if test "$withval" = no
21495 then LIBC=
21496 { echo "$as_me:$LINENO: result: force LIBC empty" >&5
21497 echo "${ECHO_T}force LIBC empty" >&6; }
21498 elif test "$withval" != yes
21499 then LIBC=$withval
21500 { echo "$as_me:$LINENO: result: set LIBC=\"$withval\"" >&5
21501 echo "${ECHO_T}set LIBC=\"$withval\"" >&6; }
21502 else { { echo "$as_me:$LINENO: error: proper usage is --with-libc=STRING" >&5
21503 echo "$as_me: error: proper usage is --with-libc=STRING" >&2;}
21504 { (exit 1); exit 1; }; }
21506 else
21507 { echo "$as_me:$LINENO: result: default LIBC=\"$LIBC\"" >&5
21508 echo "${ECHO_T}default LIBC=\"$LIBC\"" >&6; }
21512 # ************************************
21513 # * Check for mathematical functions *
21514 # ************************************
21516 LIBS_SAVE=$LIBS
21517 LIBS="$LIBS $LIBM"
21519 # On FreeBSD 6.2, it appears that tanh(-0.) returns 0. instead of
21520 # -0. on some architectures.
21521 { echo "$as_me:$LINENO: checking whether tanh preserves the sign of zero" >&5
21522 echo $ECHO_N "checking whether tanh preserves the sign of zero... $ECHO_C" >&6; }
21523 if test "${ac_cv_tanh_preserves_zero_sign+set}" = set; then
21524 echo $ECHO_N "(cached) $ECHO_C" >&6
21525 else
21527 if test "$cross_compiling" = yes; then
21528 ac_cv_tanh_preserves_zero_sign=no
21529 else
21530 cat >conftest.$ac_ext <<_ACEOF
21531 /* confdefs.h. */
21532 _ACEOF
21533 cat confdefs.h >>conftest.$ac_ext
21534 cat >>conftest.$ac_ext <<_ACEOF
21535 /* end confdefs.h. */
21537 #include <math.h>
21538 #include <stdlib.h>
21539 int main() {
21540 /* return 0 if either negative zeros don't exist
21541 on this platform or if negative zeros exist
21542 and tanh(-0.) == -0. */
21543 if (atan2(0., -1.) == atan2(-0., -1.) ||
21544 atan2(tanh(-0.), -1.) == atan2(-0., -1.)) exit(0);
21545 else exit(1);
21548 _ACEOF
21549 rm -f conftest$ac_exeext
21550 if { (ac_try="$ac_link"
21551 case "(($ac_try" in
21552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21553 *) ac_try_echo=$ac_try;;
21554 esac
21555 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21556 (eval "$ac_link") 2>&5
21557 ac_status=$?
21558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21559 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21560 { (case "(($ac_try" in
21561 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21562 *) ac_try_echo=$ac_try;;
21563 esac
21564 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21565 (eval "$ac_try") 2>&5
21566 ac_status=$?
21567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21568 (exit $ac_status); }; }; then
21569 ac_cv_tanh_preserves_zero_sign=yes
21570 else
21571 echo "$as_me: program exited with status $ac_status" >&5
21572 echo "$as_me: failed program was:" >&5
21573 sed 's/^/| /' conftest.$ac_ext >&5
21575 ( exit $ac_status )
21576 ac_cv_tanh_preserves_zero_sign=no
21578 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21584 { echo "$as_me:$LINENO: result: $ac_cv_tanh_preserves_zero_sign" >&5
21585 echo "${ECHO_T}$ac_cv_tanh_preserves_zero_sign" >&6; }
21586 if test "$ac_cv_tanh_preserves_zero_sign" = yes
21587 then
21589 cat >>confdefs.h <<\_ACEOF
21590 #define TANH_PRESERVES_ZERO_SIGN 1
21591 _ACEOF
21596 for ac_func in hypot
21598 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21599 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21600 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21601 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21602 echo $ECHO_N "(cached) $ECHO_C" >&6
21603 else
21604 cat >conftest.$ac_ext <<_ACEOF
21605 /* confdefs.h. */
21606 _ACEOF
21607 cat confdefs.h >>conftest.$ac_ext
21608 cat >>conftest.$ac_ext <<_ACEOF
21609 /* end confdefs.h. */
21610 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21611 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21612 #define $ac_func innocuous_$ac_func
21614 /* System header to define __stub macros and hopefully few prototypes,
21615 which can conflict with char $ac_func (); below.
21616 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21617 <limits.h> exists even on freestanding compilers. */
21619 #ifdef __STDC__
21620 # include <limits.h>
21621 #else
21622 # include <assert.h>
21623 #endif
21625 #undef $ac_func
21627 /* Override any GCC internal prototype to avoid an error.
21628 Use char because int might match the return type of a GCC
21629 builtin and then its argument prototype would still apply. */
21630 #ifdef __cplusplus
21631 extern "C"
21632 #endif
21633 char $ac_func ();
21634 /* The GNU C library defines this for functions which it implements
21635 to always fail with ENOSYS. Some functions are actually named
21636 something starting with __ and the normal name is an alias. */
21637 #if defined __stub_$ac_func || defined __stub___$ac_func
21638 choke me
21639 #endif
21642 main ()
21644 return $ac_func ();
21646 return 0;
21648 _ACEOF
21649 rm -f conftest.$ac_objext conftest$ac_exeext
21650 if { (ac_try="$ac_link"
21651 case "(($ac_try" in
21652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21653 *) ac_try_echo=$ac_try;;
21654 esac
21655 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21656 (eval "$ac_link") 2>conftest.er1
21657 ac_status=$?
21658 grep -v '^ *+' conftest.er1 >conftest.err
21659 rm -f conftest.er1
21660 cat conftest.err >&5
21661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21662 (exit $ac_status); } && {
21663 test -z "$ac_c_werror_flag" ||
21664 test ! -s conftest.err
21665 } && test -s conftest$ac_exeext &&
21666 $as_test_x conftest$ac_exeext; then
21667 eval "$as_ac_var=yes"
21668 else
21669 echo "$as_me: failed program was:" >&5
21670 sed 's/^/| /' conftest.$ac_ext >&5
21672 eval "$as_ac_var=no"
21675 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21676 conftest$ac_exeext conftest.$ac_ext
21678 ac_res=`eval echo '${'$as_ac_var'}'`
21679 { echo "$as_me:$LINENO: result: $ac_res" >&5
21680 echo "${ECHO_T}$ac_res" >&6; }
21681 if test `eval echo '${'$as_ac_var'}'` = yes; then
21682 cat >>confdefs.h <<_ACEOF
21683 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21684 _ACEOF
21686 else
21687 case " $LIBOBJS " in
21688 *" $ac_func.$ac_objext "* ) ;;
21689 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
21691 esac
21694 done
21707 for ac_func in acosh asinh atanh copysign expm1 finite isinf isnan log1p
21709 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21710 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21711 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21712 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21713 echo $ECHO_N "(cached) $ECHO_C" >&6
21714 else
21715 cat >conftest.$ac_ext <<_ACEOF
21716 /* confdefs.h. */
21717 _ACEOF
21718 cat confdefs.h >>conftest.$ac_ext
21719 cat >>conftest.$ac_ext <<_ACEOF
21720 /* end confdefs.h. */
21721 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21722 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21723 #define $ac_func innocuous_$ac_func
21725 /* System header to define __stub macros and hopefully few prototypes,
21726 which can conflict with char $ac_func (); below.
21727 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21728 <limits.h> exists even on freestanding compilers. */
21730 #ifdef __STDC__
21731 # include <limits.h>
21732 #else
21733 # include <assert.h>
21734 #endif
21736 #undef $ac_func
21738 /* Override any GCC internal prototype to avoid an error.
21739 Use char because int might match the return type of a GCC
21740 builtin and then its argument prototype would still apply. */
21741 #ifdef __cplusplus
21742 extern "C"
21743 #endif
21744 char $ac_func ();
21745 /* The GNU C library defines this for functions which it implements
21746 to always fail with ENOSYS. Some functions are actually named
21747 something starting with __ and the normal name is an alias. */
21748 #if defined __stub_$ac_func || defined __stub___$ac_func
21749 choke me
21750 #endif
21753 main ()
21755 return $ac_func ();
21757 return 0;
21759 _ACEOF
21760 rm -f conftest.$ac_objext conftest$ac_exeext
21761 if { (ac_try="$ac_link"
21762 case "(($ac_try" in
21763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21764 *) ac_try_echo=$ac_try;;
21765 esac
21766 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21767 (eval "$ac_link") 2>conftest.er1
21768 ac_status=$?
21769 grep -v '^ *+' conftest.er1 >conftest.err
21770 rm -f conftest.er1
21771 cat conftest.err >&5
21772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21773 (exit $ac_status); } && {
21774 test -z "$ac_c_werror_flag" ||
21775 test ! -s conftest.err
21776 } && test -s conftest$ac_exeext &&
21777 $as_test_x conftest$ac_exeext; then
21778 eval "$as_ac_var=yes"
21779 else
21780 echo "$as_me: failed program was:" >&5
21781 sed 's/^/| /' conftest.$ac_ext >&5
21783 eval "$as_ac_var=no"
21786 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21787 conftest$ac_exeext conftest.$ac_ext
21789 ac_res=`eval echo '${'$as_ac_var'}'`
21790 { echo "$as_me:$LINENO: result: $ac_res" >&5
21791 echo "${ECHO_T}$ac_res" >&6; }
21792 if test `eval echo '${'$as_ac_var'}'` = yes; then
21793 cat >>confdefs.h <<_ACEOF
21794 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21795 _ACEOF
21798 done
21801 LIBS=$LIBS_SAVE
21803 # check for wchar.h
21804 if test "${ac_cv_header_wchar_h+set}" = set; then
21805 { echo "$as_me:$LINENO: checking for wchar.h" >&5
21806 echo $ECHO_N "checking for wchar.h... $ECHO_C" >&6; }
21807 if test "${ac_cv_header_wchar_h+set}" = set; then
21808 echo $ECHO_N "(cached) $ECHO_C" >&6
21810 { echo "$as_me:$LINENO: result: $ac_cv_header_wchar_h" >&5
21811 echo "${ECHO_T}$ac_cv_header_wchar_h" >&6; }
21812 else
21813 # Is the header compilable?
21814 { echo "$as_me:$LINENO: checking wchar.h usability" >&5
21815 echo $ECHO_N "checking wchar.h usability... $ECHO_C" >&6; }
21816 cat >conftest.$ac_ext <<_ACEOF
21817 /* confdefs.h. */
21818 _ACEOF
21819 cat confdefs.h >>conftest.$ac_ext
21820 cat >>conftest.$ac_ext <<_ACEOF
21821 /* end confdefs.h. */
21822 $ac_includes_default
21823 #include <wchar.h>
21824 _ACEOF
21825 rm -f conftest.$ac_objext
21826 if { (ac_try="$ac_compile"
21827 case "(($ac_try" in
21828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21829 *) ac_try_echo=$ac_try;;
21830 esac
21831 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21832 (eval "$ac_compile") 2>conftest.er1
21833 ac_status=$?
21834 grep -v '^ *+' conftest.er1 >conftest.err
21835 rm -f conftest.er1
21836 cat conftest.err >&5
21837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21838 (exit $ac_status); } && {
21839 test -z "$ac_c_werror_flag" ||
21840 test ! -s conftest.err
21841 } && test -s conftest.$ac_objext; then
21842 ac_header_compiler=yes
21843 else
21844 echo "$as_me: failed program was:" >&5
21845 sed 's/^/| /' conftest.$ac_ext >&5
21847 ac_header_compiler=no
21850 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21851 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21852 echo "${ECHO_T}$ac_header_compiler" >&6; }
21854 # Is the header present?
21855 { echo "$as_me:$LINENO: checking wchar.h presence" >&5
21856 echo $ECHO_N "checking wchar.h presence... $ECHO_C" >&6; }
21857 cat >conftest.$ac_ext <<_ACEOF
21858 /* confdefs.h. */
21859 _ACEOF
21860 cat confdefs.h >>conftest.$ac_ext
21861 cat >>conftest.$ac_ext <<_ACEOF
21862 /* end confdefs.h. */
21863 #include <wchar.h>
21864 _ACEOF
21865 if { (ac_try="$ac_cpp conftest.$ac_ext"
21866 case "(($ac_try" in
21867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21868 *) ac_try_echo=$ac_try;;
21869 esac
21870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21871 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21872 ac_status=$?
21873 grep -v '^ *+' conftest.er1 >conftest.err
21874 rm -f conftest.er1
21875 cat conftest.err >&5
21876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21877 (exit $ac_status); } >/dev/null && {
21878 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21879 test ! -s conftest.err
21880 }; then
21881 ac_header_preproc=yes
21882 else
21883 echo "$as_me: failed program was:" >&5
21884 sed 's/^/| /' conftest.$ac_ext >&5
21886 ac_header_preproc=no
21889 rm -f conftest.err conftest.$ac_ext
21890 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21891 echo "${ECHO_T}$ac_header_preproc" >&6; }
21893 # So? What about this header?
21894 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21895 yes:no: )
21896 { echo "$as_me:$LINENO: WARNING: wchar.h: accepted by the compiler, rejected by the preprocessor!" >&5
21897 echo "$as_me: WARNING: wchar.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21898 { echo "$as_me:$LINENO: WARNING: wchar.h: proceeding with the compiler's result" >&5
21899 echo "$as_me: WARNING: wchar.h: proceeding with the compiler's result" >&2;}
21900 ac_header_preproc=yes
21902 no:yes:* )
21903 { echo "$as_me:$LINENO: WARNING: wchar.h: present but cannot be compiled" >&5
21904 echo "$as_me: WARNING: wchar.h: present but cannot be compiled" >&2;}
21905 { echo "$as_me:$LINENO: WARNING: wchar.h: check for missing prerequisite headers?" >&5
21906 echo "$as_me: WARNING: wchar.h: check for missing prerequisite headers?" >&2;}
21907 { echo "$as_me:$LINENO: WARNING: wchar.h: see the Autoconf documentation" >&5
21908 echo "$as_me: WARNING: wchar.h: see the Autoconf documentation" >&2;}
21909 { echo "$as_me:$LINENO: WARNING: wchar.h: section \"Present But Cannot Be Compiled\"" >&5
21910 echo "$as_me: WARNING: wchar.h: section \"Present But Cannot Be Compiled\"" >&2;}
21911 { echo "$as_me:$LINENO: WARNING: wchar.h: proceeding with the preprocessor's result" >&5
21912 echo "$as_me: WARNING: wchar.h: proceeding with the preprocessor's result" >&2;}
21913 { echo "$as_me:$LINENO: WARNING: wchar.h: in the future, the compiler will take precedence" >&5
21914 echo "$as_me: WARNING: wchar.h: in the future, the compiler will take precedence" >&2;}
21915 ( cat <<\_ASBOX
21916 ## ------------------------------------------------ ##
21917 ## Report this to http://www.python.org/python-bugs ##
21918 ## ------------------------------------------------ ##
21919 _ASBOX
21920 ) | sed "s/^/$as_me: WARNING: /" >&2
21922 esac
21923 { echo "$as_me:$LINENO: checking for wchar.h" >&5
21924 echo $ECHO_N "checking for wchar.h... $ECHO_C" >&6; }
21925 if test "${ac_cv_header_wchar_h+set}" = set; then
21926 echo $ECHO_N "(cached) $ECHO_C" >&6
21927 else
21928 ac_cv_header_wchar_h=$ac_header_preproc
21930 { echo "$as_me:$LINENO: result: $ac_cv_header_wchar_h" >&5
21931 echo "${ECHO_T}$ac_cv_header_wchar_h" >&6; }
21934 if test $ac_cv_header_wchar_h = yes; then
21937 cat >>confdefs.h <<\_ACEOF
21938 #define HAVE_WCHAR_H 1
21939 _ACEOF
21941 wchar_h="yes"
21943 else
21944 wchar_h="no"
21950 # determine wchar_t size
21951 if test "$wchar_h" = yes
21952 then
21953 { echo "$as_me:$LINENO: checking for wchar_t" >&5
21954 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6; }
21955 if test "${ac_cv_type_wchar_t+set}" = set; then
21956 echo $ECHO_N "(cached) $ECHO_C" >&6
21957 else
21958 cat >conftest.$ac_ext <<_ACEOF
21959 /* confdefs.h. */
21960 _ACEOF
21961 cat confdefs.h >>conftest.$ac_ext
21962 cat >>conftest.$ac_ext <<_ACEOF
21963 /* end confdefs.h. */
21964 #include <wchar.h>
21966 typedef wchar_t ac__type_new_;
21968 main ()
21970 if ((ac__type_new_ *) 0)
21971 return 0;
21972 if (sizeof (ac__type_new_))
21973 return 0;
21975 return 0;
21977 _ACEOF
21978 rm -f conftest.$ac_objext
21979 if { (ac_try="$ac_compile"
21980 case "(($ac_try" in
21981 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21982 *) ac_try_echo=$ac_try;;
21983 esac
21984 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21985 (eval "$ac_compile") 2>conftest.er1
21986 ac_status=$?
21987 grep -v '^ *+' conftest.er1 >conftest.err
21988 rm -f conftest.er1
21989 cat conftest.err >&5
21990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21991 (exit $ac_status); } && {
21992 test -z "$ac_c_werror_flag" ||
21993 test ! -s conftest.err
21994 } && test -s conftest.$ac_objext; then
21995 ac_cv_type_wchar_t=yes
21996 else
21997 echo "$as_me: failed program was:" >&5
21998 sed 's/^/| /' conftest.$ac_ext >&5
22000 ac_cv_type_wchar_t=no
22003 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22005 { echo "$as_me:$LINENO: result: $ac_cv_type_wchar_t" >&5
22006 echo "${ECHO_T}$ac_cv_type_wchar_t" >&6; }
22008 # The cast to long int works around a bug in the HP C Compiler
22009 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22010 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22011 # This bug is HP SR number 8606223364.
22012 { echo "$as_me:$LINENO: checking size of wchar_t" >&5
22013 echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6; }
22014 if test "${ac_cv_sizeof_wchar_t+set}" = set; then
22015 echo $ECHO_N "(cached) $ECHO_C" >&6
22016 else
22017 if test "$cross_compiling" = yes; then
22018 # Depending upon the size, compute the lo and hi bounds.
22019 cat >conftest.$ac_ext <<_ACEOF
22020 /* confdefs.h. */
22021 _ACEOF
22022 cat confdefs.h >>conftest.$ac_ext
22023 cat >>conftest.$ac_ext <<_ACEOF
22024 /* end confdefs.h. */
22025 #include <wchar.h>
22027 typedef wchar_t ac__type_sizeof_;
22029 main ()
22031 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
22032 test_array [0] = 0
22035 return 0;
22037 _ACEOF
22038 rm -f conftest.$ac_objext
22039 if { (ac_try="$ac_compile"
22040 case "(($ac_try" in
22041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22042 *) ac_try_echo=$ac_try;;
22043 esac
22044 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22045 (eval "$ac_compile") 2>conftest.er1
22046 ac_status=$?
22047 grep -v '^ *+' conftest.er1 >conftest.err
22048 rm -f conftest.er1
22049 cat conftest.err >&5
22050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22051 (exit $ac_status); } && {
22052 test -z "$ac_c_werror_flag" ||
22053 test ! -s conftest.err
22054 } && test -s conftest.$ac_objext; then
22055 ac_lo=0 ac_mid=0
22056 while :; do
22057 cat >conftest.$ac_ext <<_ACEOF
22058 /* confdefs.h. */
22059 _ACEOF
22060 cat confdefs.h >>conftest.$ac_ext
22061 cat >>conftest.$ac_ext <<_ACEOF
22062 /* end confdefs.h. */
22063 #include <wchar.h>
22065 typedef wchar_t ac__type_sizeof_;
22067 main ()
22069 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
22070 test_array [0] = 0
22073 return 0;
22075 _ACEOF
22076 rm -f conftest.$ac_objext
22077 if { (ac_try="$ac_compile"
22078 case "(($ac_try" in
22079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22080 *) ac_try_echo=$ac_try;;
22081 esac
22082 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22083 (eval "$ac_compile") 2>conftest.er1
22084 ac_status=$?
22085 grep -v '^ *+' conftest.er1 >conftest.err
22086 rm -f conftest.er1
22087 cat conftest.err >&5
22088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22089 (exit $ac_status); } && {
22090 test -z "$ac_c_werror_flag" ||
22091 test ! -s conftest.err
22092 } && test -s conftest.$ac_objext; then
22093 ac_hi=$ac_mid; break
22094 else
22095 echo "$as_me: failed program was:" >&5
22096 sed 's/^/| /' conftest.$ac_ext >&5
22098 ac_lo=`expr $ac_mid + 1`
22099 if test $ac_lo -le $ac_mid; then
22100 ac_lo= ac_hi=
22101 break
22103 ac_mid=`expr 2 '*' $ac_mid + 1`
22106 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22107 done
22108 else
22109 echo "$as_me: failed program was:" >&5
22110 sed 's/^/| /' conftest.$ac_ext >&5
22112 cat >conftest.$ac_ext <<_ACEOF
22113 /* confdefs.h. */
22114 _ACEOF
22115 cat confdefs.h >>conftest.$ac_ext
22116 cat >>conftest.$ac_ext <<_ACEOF
22117 /* end confdefs.h. */
22118 #include <wchar.h>
22120 typedef wchar_t ac__type_sizeof_;
22122 main ()
22124 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
22125 test_array [0] = 0
22128 return 0;
22130 _ACEOF
22131 rm -f conftest.$ac_objext
22132 if { (ac_try="$ac_compile"
22133 case "(($ac_try" in
22134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22135 *) ac_try_echo=$ac_try;;
22136 esac
22137 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22138 (eval "$ac_compile") 2>conftest.er1
22139 ac_status=$?
22140 grep -v '^ *+' conftest.er1 >conftest.err
22141 rm -f conftest.er1
22142 cat conftest.err >&5
22143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22144 (exit $ac_status); } && {
22145 test -z "$ac_c_werror_flag" ||
22146 test ! -s conftest.err
22147 } && test -s conftest.$ac_objext; then
22148 ac_hi=-1 ac_mid=-1
22149 while :; do
22150 cat >conftest.$ac_ext <<_ACEOF
22151 /* confdefs.h. */
22152 _ACEOF
22153 cat confdefs.h >>conftest.$ac_ext
22154 cat >>conftest.$ac_ext <<_ACEOF
22155 /* end confdefs.h. */
22156 #include <wchar.h>
22158 typedef wchar_t ac__type_sizeof_;
22160 main ()
22162 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
22163 test_array [0] = 0
22166 return 0;
22168 _ACEOF
22169 rm -f conftest.$ac_objext
22170 if { (ac_try="$ac_compile"
22171 case "(($ac_try" in
22172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22173 *) ac_try_echo=$ac_try;;
22174 esac
22175 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22176 (eval "$ac_compile") 2>conftest.er1
22177 ac_status=$?
22178 grep -v '^ *+' conftest.er1 >conftest.err
22179 rm -f conftest.er1
22180 cat conftest.err >&5
22181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22182 (exit $ac_status); } && {
22183 test -z "$ac_c_werror_flag" ||
22184 test ! -s conftest.err
22185 } && test -s conftest.$ac_objext; then
22186 ac_lo=$ac_mid; break
22187 else
22188 echo "$as_me: failed program was:" >&5
22189 sed 's/^/| /' conftest.$ac_ext >&5
22191 ac_hi=`expr '(' $ac_mid ')' - 1`
22192 if test $ac_mid -le $ac_hi; then
22193 ac_lo= ac_hi=
22194 break
22196 ac_mid=`expr 2 '*' $ac_mid`
22199 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22200 done
22201 else
22202 echo "$as_me: failed program was:" >&5
22203 sed 's/^/| /' conftest.$ac_ext >&5
22205 ac_lo= ac_hi=
22208 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22211 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22212 # Binary search between lo and hi bounds.
22213 while test "x$ac_lo" != "x$ac_hi"; do
22214 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
22215 cat >conftest.$ac_ext <<_ACEOF
22216 /* confdefs.h. */
22217 _ACEOF
22218 cat confdefs.h >>conftest.$ac_ext
22219 cat >>conftest.$ac_ext <<_ACEOF
22220 /* end confdefs.h. */
22221 #include <wchar.h>
22223 typedef wchar_t ac__type_sizeof_;
22225 main ()
22227 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
22228 test_array [0] = 0
22231 return 0;
22233 _ACEOF
22234 rm -f conftest.$ac_objext
22235 if { (ac_try="$ac_compile"
22236 case "(($ac_try" in
22237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22238 *) ac_try_echo=$ac_try;;
22239 esac
22240 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22241 (eval "$ac_compile") 2>conftest.er1
22242 ac_status=$?
22243 grep -v '^ *+' conftest.er1 >conftest.err
22244 rm -f conftest.er1
22245 cat conftest.err >&5
22246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22247 (exit $ac_status); } && {
22248 test -z "$ac_c_werror_flag" ||
22249 test ! -s conftest.err
22250 } && test -s conftest.$ac_objext; then
22251 ac_hi=$ac_mid
22252 else
22253 echo "$as_me: failed program was:" >&5
22254 sed 's/^/| /' conftest.$ac_ext >&5
22256 ac_lo=`expr '(' $ac_mid ')' + 1`
22259 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22260 done
22261 case $ac_lo in
22262 ?*) ac_cv_sizeof_wchar_t=$ac_lo;;
22263 '') if test "$ac_cv_type_wchar_t" = yes; then
22264 { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t)
22265 See \`config.log' for more details." >&5
22266 echo "$as_me: error: cannot compute sizeof (wchar_t)
22267 See \`config.log' for more details." >&2;}
22268 { (exit 77); exit 77; }; }
22269 else
22270 ac_cv_sizeof_wchar_t=0
22271 fi ;;
22272 esac
22273 else
22274 cat >conftest.$ac_ext <<_ACEOF
22275 /* confdefs.h. */
22276 _ACEOF
22277 cat confdefs.h >>conftest.$ac_ext
22278 cat >>conftest.$ac_ext <<_ACEOF
22279 /* end confdefs.h. */
22280 #include <wchar.h>
22282 typedef wchar_t ac__type_sizeof_;
22283 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
22284 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
22285 #include <stdio.h>
22286 #include <stdlib.h>
22288 main ()
22291 FILE *f = fopen ("conftest.val", "w");
22292 if (! f)
22293 return 1;
22294 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
22296 long int i = longval ();
22297 if (i != ((long int) (sizeof (ac__type_sizeof_))))
22298 return 1;
22299 fprintf (f, "%ld\n", i);
22301 else
22303 unsigned long int i = ulongval ();
22304 if (i != ((long int) (sizeof (ac__type_sizeof_))))
22305 return 1;
22306 fprintf (f, "%lu\n", i);
22308 return ferror (f) || fclose (f) != 0;
22311 return 0;
22313 _ACEOF
22314 rm -f conftest$ac_exeext
22315 if { (ac_try="$ac_link"
22316 case "(($ac_try" in
22317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22318 *) ac_try_echo=$ac_try;;
22319 esac
22320 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22321 (eval "$ac_link") 2>&5
22322 ac_status=$?
22323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22324 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22325 { (case "(($ac_try" in
22326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22327 *) ac_try_echo=$ac_try;;
22328 esac
22329 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22330 (eval "$ac_try") 2>&5
22331 ac_status=$?
22332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22333 (exit $ac_status); }; }; then
22334 ac_cv_sizeof_wchar_t=`cat conftest.val`
22335 else
22336 echo "$as_me: program exited with status $ac_status" >&5
22337 echo "$as_me: failed program was:" >&5
22338 sed 's/^/| /' conftest.$ac_ext >&5
22340 ( exit $ac_status )
22341 if test "$ac_cv_type_wchar_t" = yes; then
22342 { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t)
22343 See \`config.log' for more details." >&5
22344 echo "$as_me: error: cannot compute sizeof (wchar_t)
22345 See \`config.log' for more details." >&2;}
22346 { (exit 77); exit 77; }; }
22347 else
22348 ac_cv_sizeof_wchar_t=0
22351 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22353 rm -f conftest.val
22355 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_wchar_t" >&5
22356 echo "${ECHO_T}$ac_cv_sizeof_wchar_t" >&6; }
22360 cat >>confdefs.h <<_ACEOF
22361 #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
22362 _ACEOF
22367 { echo "$as_me:$LINENO: checking for UCS-4 tcl" >&5
22368 echo $ECHO_N "checking for UCS-4 tcl... $ECHO_C" >&6; }
22369 have_ucs4_tcl=no
22370 cat >conftest.$ac_ext <<_ACEOF
22371 /* confdefs.h. */
22372 _ACEOF
22373 cat confdefs.h >>conftest.$ac_ext
22374 cat >>conftest.$ac_ext <<_ACEOF
22375 /* end confdefs.h. */
22377 #include <tcl.h>
22378 #if TCL_UTF_MAX != 6
22379 # error "NOT UCS4_TCL"
22380 #endif
22382 main ()
22386 return 0;
22388 _ACEOF
22389 rm -f conftest.$ac_objext
22390 if { (ac_try="$ac_compile"
22391 case "(($ac_try" in
22392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22393 *) ac_try_echo=$ac_try;;
22394 esac
22395 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22396 (eval "$ac_compile") 2>conftest.er1
22397 ac_status=$?
22398 grep -v '^ *+' conftest.er1 >conftest.err
22399 rm -f conftest.er1
22400 cat conftest.err >&5
22401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22402 (exit $ac_status); } && {
22403 test -z "$ac_c_werror_flag" ||
22404 test ! -s conftest.err
22405 } && test -s conftest.$ac_objext; then
22408 cat >>confdefs.h <<\_ACEOF
22409 #define HAVE_UCS4_TCL 1
22410 _ACEOF
22412 have_ucs4_tcl=yes
22414 else
22415 echo "$as_me: failed program was:" >&5
22416 sed 's/^/| /' conftest.$ac_ext >&5
22421 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22422 { echo "$as_me:$LINENO: result: $have_ucs4_tcl" >&5
22423 echo "${ECHO_T}$have_ucs4_tcl" >&6; }
22425 # check whether wchar_t is signed or not
22426 if test "$wchar_h" = yes
22427 then
22428 # check whether wchar_t is signed or not
22429 { echo "$as_me:$LINENO: checking whether wchar_t is signed" >&5
22430 echo $ECHO_N "checking whether wchar_t is signed... $ECHO_C" >&6; }
22431 if test "${ac_cv_wchar_t_signed+set}" = set; then
22432 echo $ECHO_N "(cached) $ECHO_C" >&6
22433 else
22435 if test "$cross_compiling" = yes; then
22436 ac_cv_wchar_t_signed=yes
22437 else
22438 cat >conftest.$ac_ext <<_ACEOF
22439 /* confdefs.h. */
22440 _ACEOF
22441 cat confdefs.h >>conftest.$ac_ext
22442 cat >>conftest.$ac_ext <<_ACEOF
22443 /* end confdefs.h. */
22445 #include <wchar.h>
22446 int main()
22448 /* Success: exit code 0 */
22449 exit((((wchar_t) -1) < ((wchar_t) 0)) ? 0 : 1);
22452 _ACEOF
22453 rm -f conftest$ac_exeext
22454 if { (ac_try="$ac_link"
22455 case "(($ac_try" in
22456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22457 *) ac_try_echo=$ac_try;;
22458 esac
22459 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22460 (eval "$ac_link") 2>&5
22461 ac_status=$?
22462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22463 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22464 { (case "(($ac_try" in
22465 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22466 *) ac_try_echo=$ac_try;;
22467 esac
22468 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22469 (eval "$ac_try") 2>&5
22470 ac_status=$?
22471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22472 (exit $ac_status); }; }; then
22473 ac_cv_wchar_t_signed=yes
22474 else
22475 echo "$as_me: program exited with status $ac_status" >&5
22476 echo "$as_me: failed program was:" >&5
22477 sed 's/^/| /' conftest.$ac_ext >&5
22479 ( exit $ac_status )
22480 ac_cv_wchar_t_signed=no
22482 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22488 { echo "$as_me:$LINENO: result: $ac_cv_wchar_t_signed" >&5
22489 echo "${ECHO_T}$ac_cv_wchar_t_signed" >&6; }
22492 { echo "$as_me:$LINENO: checking what type to use for unicode" >&5
22493 echo $ECHO_N "checking what type to use for unicode... $ECHO_C" >&6; }
22494 # Check whether --enable-unicode was given.
22495 if test "${enable_unicode+set}" = set; then
22496 enableval=$enable_unicode;
22497 else
22498 enable_unicode=yes
22502 if test $enable_unicode = yes
22503 then
22504 # Without any arguments, Py_UNICODE defaults to two-byte mode
22505 case "$have_ucs4_tcl" in
22506 yes) enable_unicode="ucs4"
22508 *) enable_unicode="ucs2"
22510 esac
22515 case "$enable_unicode" in
22516 ucs2) unicode_size="2"
22517 cat >>confdefs.h <<\_ACEOF
22518 #define Py_UNICODE_SIZE 2
22519 _ACEOF
22522 ucs4) unicode_size="4"
22523 cat >>confdefs.h <<\_ACEOF
22524 #define Py_UNICODE_SIZE 4
22525 _ACEOF
22528 esac
22534 if test "$enable_unicode" = "no"
22535 then
22536 UNICODE_OBJS=""
22537 { echo "$as_me:$LINENO: result: not used" >&5
22538 echo "${ECHO_T}not used" >&6; }
22539 else
22540 UNICODE_OBJS="Objects/unicodeobject.o Objects/unicodectype.o"
22542 cat >>confdefs.h <<\_ACEOF
22543 #define Py_USING_UNICODE 1
22544 _ACEOF
22547 # wchar_t is only usable if it maps to an unsigned type
22548 if test "$unicode_size" = "$ac_cv_sizeof_wchar_t" \
22549 -a "$ac_cv_wchar_t_signed" = "no"
22550 then
22551 PY_UNICODE_TYPE="wchar_t"
22553 cat >>confdefs.h <<\_ACEOF
22554 #define HAVE_USABLE_WCHAR_T 1
22555 _ACEOF
22557 cat >>confdefs.h <<\_ACEOF
22558 #define PY_UNICODE_TYPE wchar_t
22559 _ACEOF
22561 elif test "$ac_cv_sizeof_short" = "$unicode_size"
22562 then
22563 PY_UNICODE_TYPE="unsigned short"
22564 cat >>confdefs.h <<\_ACEOF
22565 #define PY_UNICODE_TYPE unsigned short
22566 _ACEOF
22568 elif test "$ac_cv_sizeof_long" = "$unicode_size"
22569 then
22570 PY_UNICODE_TYPE="unsigned long"
22571 cat >>confdefs.h <<\_ACEOF
22572 #define PY_UNICODE_TYPE unsigned long
22573 _ACEOF
22575 else
22576 PY_UNICODE_TYPE="no type found"
22578 { echo "$as_me:$LINENO: result: $PY_UNICODE_TYPE" >&5
22579 echo "${ECHO_T}$PY_UNICODE_TYPE" >&6; }
22582 # check for endianness
22583 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
22584 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
22585 if test "${ac_cv_c_bigendian+set}" = set; then
22586 echo $ECHO_N "(cached) $ECHO_C" >&6
22587 else
22588 # See if sys/param.h defines the BYTE_ORDER macro.
22589 cat >conftest.$ac_ext <<_ACEOF
22590 /* confdefs.h. */
22591 _ACEOF
22592 cat confdefs.h >>conftest.$ac_ext
22593 cat >>conftest.$ac_ext <<_ACEOF
22594 /* end confdefs.h. */
22595 #include <sys/types.h>
22596 #include <sys/param.h>
22599 main ()
22601 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
22602 && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
22603 bogus endian macros
22604 #endif
22607 return 0;
22609 _ACEOF
22610 rm -f conftest.$ac_objext
22611 if { (ac_try="$ac_compile"
22612 case "(($ac_try" in
22613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22614 *) ac_try_echo=$ac_try;;
22615 esac
22616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22617 (eval "$ac_compile") 2>conftest.er1
22618 ac_status=$?
22619 grep -v '^ *+' conftest.er1 >conftest.err
22620 rm -f conftest.er1
22621 cat conftest.err >&5
22622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22623 (exit $ac_status); } && {
22624 test -z "$ac_c_werror_flag" ||
22625 test ! -s conftest.err
22626 } && test -s conftest.$ac_objext; then
22627 # It does; now see whether it defined to BIG_ENDIAN or not.
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 <sys/types.h>
22635 #include <sys/param.h>
22638 main ()
22640 #if BYTE_ORDER != BIG_ENDIAN
22641 not big endian
22642 #endif
22645 return 0;
22647 _ACEOF
22648 rm -f conftest.$ac_objext
22649 if { (ac_try="$ac_compile"
22650 case "(($ac_try" in
22651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22652 *) ac_try_echo=$ac_try;;
22653 esac
22654 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22655 (eval "$ac_compile") 2>conftest.er1
22656 ac_status=$?
22657 grep -v '^ *+' conftest.er1 >conftest.err
22658 rm -f conftest.er1
22659 cat conftest.err >&5
22660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22661 (exit $ac_status); } && {
22662 test -z "$ac_c_werror_flag" ||
22663 test ! -s conftest.err
22664 } && test -s conftest.$ac_objext; then
22665 ac_cv_c_bigendian=yes
22666 else
22667 echo "$as_me: failed program was:" >&5
22668 sed 's/^/| /' conftest.$ac_ext >&5
22670 ac_cv_c_bigendian=no
22673 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22674 else
22675 echo "$as_me: failed program was:" >&5
22676 sed 's/^/| /' conftest.$ac_ext >&5
22678 # It does not; compile a test program.
22679 if test "$cross_compiling" = yes; then
22680 # try to guess the endianness by grepping values into an object file
22681 ac_cv_c_bigendian=unknown
22682 cat >conftest.$ac_ext <<_ACEOF
22683 /* confdefs.h. */
22684 _ACEOF
22685 cat confdefs.h >>conftest.$ac_ext
22686 cat >>conftest.$ac_ext <<_ACEOF
22687 /* end confdefs.h. */
22688 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
22689 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
22690 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
22691 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
22692 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
22693 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
22695 main ()
22697 _ascii (); _ebcdic ();
22699 return 0;
22701 _ACEOF
22702 rm -f conftest.$ac_objext
22703 if { (ac_try="$ac_compile"
22704 case "(($ac_try" in
22705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22706 *) ac_try_echo=$ac_try;;
22707 esac
22708 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22709 (eval "$ac_compile") 2>conftest.er1
22710 ac_status=$?
22711 grep -v '^ *+' conftest.er1 >conftest.err
22712 rm -f conftest.er1
22713 cat conftest.err >&5
22714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22715 (exit $ac_status); } && {
22716 test -z "$ac_c_werror_flag" ||
22717 test ! -s conftest.err
22718 } && test -s conftest.$ac_objext; then
22719 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
22720 ac_cv_c_bigendian=yes
22722 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
22723 if test "$ac_cv_c_bigendian" = unknown; then
22724 ac_cv_c_bigendian=no
22725 else
22726 # finding both strings is unlikely to happen, but who knows?
22727 ac_cv_c_bigendian=unknown
22730 else
22731 echo "$as_me: failed program was:" >&5
22732 sed 's/^/| /' conftest.$ac_ext >&5
22737 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22738 else
22739 cat >conftest.$ac_ext <<_ACEOF
22740 /* confdefs.h. */
22741 _ACEOF
22742 cat confdefs.h >>conftest.$ac_ext
22743 cat >>conftest.$ac_ext <<_ACEOF
22744 /* end confdefs.h. */
22745 $ac_includes_default
22747 main ()
22750 /* Are we little or big endian? From Harbison&Steele. */
22751 union
22753 long int l;
22754 char c[sizeof (long int)];
22755 } u;
22756 u.l = 1;
22757 return u.c[sizeof (long int) - 1] == 1;
22760 return 0;
22762 _ACEOF
22763 rm -f conftest$ac_exeext
22764 if { (ac_try="$ac_link"
22765 case "(($ac_try" in
22766 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22767 *) ac_try_echo=$ac_try;;
22768 esac
22769 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22770 (eval "$ac_link") 2>&5
22771 ac_status=$?
22772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22773 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22774 { (case "(($ac_try" in
22775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22776 *) ac_try_echo=$ac_try;;
22777 esac
22778 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22779 (eval "$ac_try") 2>&5
22780 ac_status=$?
22781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22782 (exit $ac_status); }; }; then
22783 ac_cv_c_bigendian=no
22784 else
22785 echo "$as_me: program exited with status $ac_status" >&5
22786 echo "$as_me: failed program was:" >&5
22787 sed 's/^/| /' conftest.$ac_ext >&5
22789 ( exit $ac_status )
22790 ac_cv_c_bigendian=yes
22792 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22798 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22800 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
22801 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
22802 case $ac_cv_c_bigendian in
22803 yes)
22805 cat >>confdefs.h <<\_ACEOF
22806 #define WORDS_BIGENDIAN 1
22807 _ACEOF
22812 { { echo "$as_me:$LINENO: error: unknown endianness
22813 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
22814 echo "$as_me: error: unknown endianness
22815 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
22816 { (exit 1); exit 1; }; } ;;
22817 esac
22820 # Check whether right shifting a negative integer extends the sign bit
22821 # or fills with zeros (like the Cray J90, according to Tim Peters).
22822 { echo "$as_me:$LINENO: checking whether right shift extends the sign bit" >&5
22823 echo $ECHO_N "checking whether right shift extends the sign bit... $ECHO_C" >&6; }
22824 if test "${ac_cv_rshift_extends_sign+set}" = set; then
22825 echo $ECHO_N "(cached) $ECHO_C" >&6
22826 else
22828 if test "$cross_compiling" = yes; then
22829 ac_cv_rshift_extends_sign=yes
22830 else
22831 cat >conftest.$ac_ext <<_ACEOF
22832 /* confdefs.h. */
22833 _ACEOF
22834 cat confdefs.h >>conftest.$ac_ext
22835 cat >>conftest.$ac_ext <<_ACEOF
22836 /* end confdefs.h. */
22838 int main()
22840 exit(((-1)>>3 == -1) ? 0 : 1);
22843 _ACEOF
22844 rm -f conftest$ac_exeext
22845 if { (ac_try="$ac_link"
22846 case "(($ac_try" in
22847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22848 *) ac_try_echo=$ac_try;;
22849 esac
22850 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22851 (eval "$ac_link") 2>&5
22852 ac_status=$?
22853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22854 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22855 { (case "(($ac_try" in
22856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22857 *) ac_try_echo=$ac_try;;
22858 esac
22859 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22860 (eval "$ac_try") 2>&5
22861 ac_status=$?
22862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22863 (exit $ac_status); }; }; then
22864 ac_cv_rshift_extends_sign=yes
22865 else
22866 echo "$as_me: program exited with status $ac_status" >&5
22867 echo "$as_me: failed program was:" >&5
22868 sed 's/^/| /' conftest.$ac_ext >&5
22870 ( exit $ac_status )
22871 ac_cv_rshift_extends_sign=no
22873 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22879 { echo "$as_me:$LINENO: result: $ac_cv_rshift_extends_sign" >&5
22880 echo "${ECHO_T}$ac_cv_rshift_extends_sign" >&6; }
22881 if test "$ac_cv_rshift_extends_sign" = no
22882 then
22884 cat >>confdefs.h <<\_ACEOF
22885 #define SIGNED_RIGHT_SHIFT_ZERO_FILLS 1
22886 _ACEOF
22890 # check for getc_unlocked and related locking functions
22891 { echo "$as_me:$LINENO: checking for getc_unlocked() and friends" >&5
22892 echo $ECHO_N "checking for getc_unlocked() and friends... $ECHO_C" >&6; }
22893 if test "${ac_cv_have_getc_unlocked+set}" = set; then
22894 echo $ECHO_N "(cached) $ECHO_C" >&6
22895 else
22897 cat >conftest.$ac_ext <<_ACEOF
22898 /* confdefs.h. */
22899 _ACEOF
22900 cat confdefs.h >>conftest.$ac_ext
22901 cat >>conftest.$ac_ext <<_ACEOF
22902 /* end confdefs.h. */
22903 #include <stdio.h>
22905 main ()
22908 FILE *f = fopen("/dev/null", "r");
22909 flockfile(f);
22910 getc_unlocked(f);
22911 funlockfile(f);
22914 return 0;
22916 _ACEOF
22917 rm -f conftest.$ac_objext conftest$ac_exeext
22918 if { (ac_try="$ac_link"
22919 case "(($ac_try" in
22920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22921 *) ac_try_echo=$ac_try;;
22922 esac
22923 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22924 (eval "$ac_link") 2>conftest.er1
22925 ac_status=$?
22926 grep -v '^ *+' conftest.er1 >conftest.err
22927 rm -f conftest.er1
22928 cat conftest.err >&5
22929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22930 (exit $ac_status); } && {
22931 test -z "$ac_c_werror_flag" ||
22932 test ! -s conftest.err
22933 } && test -s conftest$ac_exeext &&
22934 $as_test_x conftest$ac_exeext; then
22935 ac_cv_have_getc_unlocked=yes
22936 else
22937 echo "$as_me: failed program was:" >&5
22938 sed 's/^/| /' conftest.$ac_ext >&5
22940 ac_cv_have_getc_unlocked=no
22943 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22944 conftest$ac_exeext conftest.$ac_ext
22947 { echo "$as_me:$LINENO: result: $ac_cv_have_getc_unlocked" >&5
22948 echo "${ECHO_T}$ac_cv_have_getc_unlocked" >&6; }
22949 if test "$ac_cv_have_getc_unlocked" = yes
22950 then
22952 cat >>confdefs.h <<\_ACEOF
22953 #define HAVE_GETC_UNLOCKED 1
22954 _ACEOF
22958 # check where readline lives
22959 # save the value of LIBS so we don't actually link Python with readline
22960 LIBS_no_readline=$LIBS
22962 { echo "$as_me:$LINENO: checking for readline in -lreadline" >&5
22963 echo $ECHO_N "checking for readline in -lreadline... $ECHO_C" >&6; }
22964 if test "${ac_cv_lib_readline_readline+set}" = set; then
22965 echo $ECHO_N "(cached) $ECHO_C" >&6
22966 else
22967 ac_check_lib_save_LIBS=$LIBS
22968 LIBS="-lreadline $LIBS"
22969 cat >conftest.$ac_ext <<_ACEOF
22970 /* confdefs.h. */
22971 _ACEOF
22972 cat confdefs.h >>conftest.$ac_ext
22973 cat >>conftest.$ac_ext <<_ACEOF
22974 /* end confdefs.h. */
22976 /* Override any GCC internal prototype to avoid an error.
22977 Use char because int might match the return type of a GCC
22978 builtin and then its argument prototype would still apply. */
22979 #ifdef __cplusplus
22980 extern "C"
22981 #endif
22982 char readline ();
22984 main ()
22986 return readline ();
22988 return 0;
22990 _ACEOF
22991 rm -f conftest.$ac_objext conftest$ac_exeext
22992 if { (ac_try="$ac_link"
22993 case "(($ac_try" in
22994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22995 *) ac_try_echo=$ac_try;;
22996 esac
22997 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22998 (eval "$ac_link") 2>conftest.er1
22999 ac_status=$?
23000 grep -v '^ *+' conftest.er1 >conftest.err
23001 rm -f conftest.er1
23002 cat conftest.err >&5
23003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23004 (exit $ac_status); } && {
23005 test -z "$ac_c_werror_flag" ||
23006 test ! -s conftest.err
23007 } && test -s conftest$ac_exeext &&
23008 $as_test_x conftest$ac_exeext; then
23009 ac_cv_lib_readline_readline=yes
23010 else
23011 echo "$as_me: failed program was:" >&5
23012 sed 's/^/| /' conftest.$ac_ext >&5
23014 ac_cv_lib_readline_readline=no
23017 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23018 conftest$ac_exeext conftest.$ac_ext
23019 LIBS=$ac_check_lib_save_LIBS
23021 { echo "$as_me:$LINENO: result: $ac_cv_lib_readline_readline" >&5
23022 echo "${ECHO_T}$ac_cv_lib_readline_readline" >&6; }
23023 if test $ac_cv_lib_readline_readline = yes; then
23024 cat >>confdefs.h <<_ACEOF
23025 #define HAVE_LIBREADLINE 1
23026 _ACEOF
23028 LIBS="-lreadline $LIBS"
23032 if test "$ac_cv_have_readline_readline" = no
23033 then
23035 { echo "$as_me:$LINENO: checking for readline in -ltermcap" >&5
23036 echo $ECHO_N "checking for readline in -ltermcap... $ECHO_C" >&6; }
23037 if test "${ac_cv_lib_termcap_readline+set}" = set; then
23038 echo $ECHO_N "(cached) $ECHO_C" >&6
23039 else
23040 ac_check_lib_save_LIBS=$LIBS
23041 LIBS="-ltermcap $LIBS"
23042 cat >conftest.$ac_ext <<_ACEOF
23043 /* confdefs.h. */
23044 _ACEOF
23045 cat confdefs.h >>conftest.$ac_ext
23046 cat >>conftest.$ac_ext <<_ACEOF
23047 /* end confdefs.h. */
23049 /* Override any GCC internal prototype to avoid an error.
23050 Use char because int might match the return type of a GCC
23051 builtin and then its argument prototype would still apply. */
23052 #ifdef __cplusplus
23053 extern "C"
23054 #endif
23055 char readline ();
23057 main ()
23059 return readline ();
23061 return 0;
23063 _ACEOF
23064 rm -f conftest.$ac_objext conftest$ac_exeext
23065 if { (ac_try="$ac_link"
23066 case "(($ac_try" in
23067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23068 *) ac_try_echo=$ac_try;;
23069 esac
23070 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23071 (eval "$ac_link") 2>conftest.er1
23072 ac_status=$?
23073 grep -v '^ *+' conftest.er1 >conftest.err
23074 rm -f conftest.er1
23075 cat conftest.err >&5
23076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23077 (exit $ac_status); } && {
23078 test -z "$ac_c_werror_flag" ||
23079 test ! -s conftest.err
23080 } && test -s conftest$ac_exeext &&
23081 $as_test_x conftest$ac_exeext; then
23082 ac_cv_lib_termcap_readline=yes
23083 else
23084 echo "$as_me: failed program was:" >&5
23085 sed 's/^/| /' conftest.$ac_ext >&5
23087 ac_cv_lib_termcap_readline=no
23090 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23091 conftest$ac_exeext conftest.$ac_ext
23092 LIBS=$ac_check_lib_save_LIBS
23094 { echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_readline" >&5
23095 echo "${ECHO_T}$ac_cv_lib_termcap_readline" >&6; }
23096 if test $ac_cv_lib_termcap_readline = yes; then
23097 cat >>confdefs.h <<_ACEOF
23098 #define HAVE_LIBTERMCAP 1
23099 _ACEOF
23101 LIBS="-ltermcap $LIBS"
23107 # check for readline 2.1
23108 { echo "$as_me:$LINENO: checking for rl_callback_handler_install in -lreadline" >&5
23109 echo $ECHO_N "checking for rl_callback_handler_install in -lreadline... $ECHO_C" >&6; }
23110 if test "${ac_cv_lib_readline_rl_callback_handler_install+set}" = set; then
23111 echo $ECHO_N "(cached) $ECHO_C" >&6
23112 else
23113 ac_check_lib_save_LIBS=$LIBS
23114 LIBS="-lreadline $LIBS"
23115 cat >conftest.$ac_ext <<_ACEOF
23116 /* confdefs.h. */
23117 _ACEOF
23118 cat confdefs.h >>conftest.$ac_ext
23119 cat >>conftest.$ac_ext <<_ACEOF
23120 /* end confdefs.h. */
23122 /* Override any GCC internal prototype to avoid an error.
23123 Use char because int might match the return type of a GCC
23124 builtin and then its argument prototype would still apply. */
23125 #ifdef __cplusplus
23126 extern "C"
23127 #endif
23128 char rl_callback_handler_install ();
23130 main ()
23132 return rl_callback_handler_install ();
23134 return 0;
23136 _ACEOF
23137 rm -f conftest.$ac_objext conftest$ac_exeext
23138 if { (ac_try="$ac_link"
23139 case "(($ac_try" in
23140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23141 *) ac_try_echo=$ac_try;;
23142 esac
23143 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23144 (eval "$ac_link") 2>conftest.er1
23145 ac_status=$?
23146 grep -v '^ *+' conftest.er1 >conftest.err
23147 rm -f conftest.er1
23148 cat conftest.err >&5
23149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23150 (exit $ac_status); } && {
23151 test -z "$ac_c_werror_flag" ||
23152 test ! -s conftest.err
23153 } && test -s conftest$ac_exeext &&
23154 $as_test_x conftest$ac_exeext; then
23155 ac_cv_lib_readline_rl_callback_handler_install=yes
23156 else
23157 echo "$as_me: failed program was:" >&5
23158 sed 's/^/| /' conftest.$ac_ext >&5
23160 ac_cv_lib_readline_rl_callback_handler_install=no
23163 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23164 conftest$ac_exeext conftest.$ac_ext
23165 LIBS=$ac_check_lib_save_LIBS
23167 { echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_callback_handler_install" >&5
23168 echo "${ECHO_T}$ac_cv_lib_readline_rl_callback_handler_install" >&6; }
23169 if test $ac_cv_lib_readline_rl_callback_handler_install = yes; then
23171 cat >>confdefs.h <<\_ACEOF
23172 #define HAVE_RL_CALLBACK 1
23173 _ACEOF
23178 # check for readline 2.2
23179 cat >conftest.$ac_ext <<_ACEOF
23180 /* confdefs.h. */
23181 _ACEOF
23182 cat confdefs.h >>conftest.$ac_ext
23183 cat >>conftest.$ac_ext <<_ACEOF
23184 /* end confdefs.h. */
23185 #include <readline/readline.h>
23186 _ACEOF
23187 if { (ac_try="$ac_cpp conftest.$ac_ext"
23188 case "(($ac_try" in
23189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23190 *) ac_try_echo=$ac_try;;
23191 esac
23192 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23193 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23194 ac_status=$?
23195 grep -v '^ *+' conftest.er1 >conftest.err
23196 rm -f conftest.er1
23197 cat conftest.err >&5
23198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23199 (exit $ac_status); } >/dev/null && {
23200 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23201 test ! -s conftest.err
23202 }; then
23203 have_readline=yes
23204 else
23205 echo "$as_me: failed program was:" >&5
23206 sed 's/^/| /' conftest.$ac_ext >&5
23208 have_readline=no
23211 rm -f conftest.err conftest.$ac_ext
23212 if test $have_readline = yes
23213 then
23214 cat >conftest.$ac_ext <<_ACEOF
23215 /* confdefs.h. */
23216 _ACEOF
23217 cat confdefs.h >>conftest.$ac_ext
23218 cat >>conftest.$ac_ext <<_ACEOF
23219 /* end confdefs.h. */
23220 #include <readline/readline.h>
23222 _ACEOF
23223 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23224 $EGREP "extern int rl_completion_append_character;" >/dev/null 2>&1; then
23226 cat >>confdefs.h <<\_ACEOF
23227 #define HAVE_RL_COMPLETION_APPEND_CHARACTER 1
23228 _ACEOF
23231 rm -f conftest*
23235 # check for readline 4.0
23236 { echo "$as_me:$LINENO: checking for rl_pre_input_hook in -lreadline" >&5
23237 echo $ECHO_N "checking for rl_pre_input_hook in -lreadline... $ECHO_C" >&6; }
23238 if test "${ac_cv_lib_readline_rl_pre_input_hook+set}" = set; then
23239 echo $ECHO_N "(cached) $ECHO_C" >&6
23240 else
23241 ac_check_lib_save_LIBS=$LIBS
23242 LIBS="-lreadline $LIBS"
23243 cat >conftest.$ac_ext <<_ACEOF
23244 /* confdefs.h. */
23245 _ACEOF
23246 cat confdefs.h >>conftest.$ac_ext
23247 cat >>conftest.$ac_ext <<_ACEOF
23248 /* end confdefs.h. */
23250 /* Override any GCC internal prototype to avoid an error.
23251 Use char because int might match the return type of a GCC
23252 builtin and then its argument prototype would still apply. */
23253 #ifdef __cplusplus
23254 extern "C"
23255 #endif
23256 char rl_pre_input_hook ();
23258 main ()
23260 return rl_pre_input_hook ();
23262 return 0;
23264 _ACEOF
23265 rm -f conftest.$ac_objext conftest$ac_exeext
23266 if { (ac_try="$ac_link"
23267 case "(($ac_try" in
23268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23269 *) ac_try_echo=$ac_try;;
23270 esac
23271 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23272 (eval "$ac_link") 2>conftest.er1
23273 ac_status=$?
23274 grep -v '^ *+' conftest.er1 >conftest.err
23275 rm -f conftest.er1
23276 cat conftest.err >&5
23277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23278 (exit $ac_status); } && {
23279 test -z "$ac_c_werror_flag" ||
23280 test ! -s conftest.err
23281 } && test -s conftest$ac_exeext &&
23282 $as_test_x conftest$ac_exeext; then
23283 ac_cv_lib_readline_rl_pre_input_hook=yes
23284 else
23285 echo "$as_me: failed program was:" >&5
23286 sed 's/^/| /' conftest.$ac_ext >&5
23288 ac_cv_lib_readline_rl_pre_input_hook=no
23291 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23292 conftest$ac_exeext conftest.$ac_ext
23293 LIBS=$ac_check_lib_save_LIBS
23295 { echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_pre_input_hook" >&5
23296 echo "${ECHO_T}$ac_cv_lib_readline_rl_pre_input_hook" >&6; }
23297 if test $ac_cv_lib_readline_rl_pre_input_hook = yes; then
23299 cat >>confdefs.h <<\_ACEOF
23300 #define HAVE_RL_PRE_INPUT_HOOK 1
23301 _ACEOF
23306 # also in 4.0
23307 { echo "$as_me:$LINENO: checking for rl_completion_display_matches_hook in -lreadline" >&5
23308 echo $ECHO_N "checking for rl_completion_display_matches_hook in -lreadline... $ECHO_C" >&6; }
23309 if test "${ac_cv_lib_readline_rl_completion_display_matches_hook+set}" = set; then
23310 echo $ECHO_N "(cached) $ECHO_C" >&6
23311 else
23312 ac_check_lib_save_LIBS=$LIBS
23313 LIBS="-lreadline $LIBS"
23314 cat >conftest.$ac_ext <<_ACEOF
23315 /* confdefs.h. */
23316 _ACEOF
23317 cat confdefs.h >>conftest.$ac_ext
23318 cat >>conftest.$ac_ext <<_ACEOF
23319 /* end confdefs.h. */
23321 /* Override any GCC internal prototype to avoid an error.
23322 Use char because int might match the return type of a GCC
23323 builtin and then its argument prototype would still apply. */
23324 #ifdef __cplusplus
23325 extern "C"
23326 #endif
23327 char rl_completion_display_matches_hook ();
23329 main ()
23331 return rl_completion_display_matches_hook ();
23333 return 0;
23335 _ACEOF
23336 rm -f conftest.$ac_objext conftest$ac_exeext
23337 if { (ac_try="$ac_link"
23338 case "(($ac_try" in
23339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23340 *) ac_try_echo=$ac_try;;
23341 esac
23342 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23343 (eval "$ac_link") 2>conftest.er1
23344 ac_status=$?
23345 grep -v '^ *+' conftest.er1 >conftest.err
23346 rm -f conftest.er1
23347 cat conftest.err >&5
23348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23349 (exit $ac_status); } && {
23350 test -z "$ac_c_werror_flag" ||
23351 test ! -s conftest.err
23352 } && test -s conftest$ac_exeext &&
23353 $as_test_x conftest$ac_exeext; then
23354 ac_cv_lib_readline_rl_completion_display_matches_hook=yes
23355 else
23356 echo "$as_me: failed program was:" >&5
23357 sed 's/^/| /' conftest.$ac_ext >&5
23359 ac_cv_lib_readline_rl_completion_display_matches_hook=no
23362 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23363 conftest$ac_exeext conftest.$ac_ext
23364 LIBS=$ac_check_lib_save_LIBS
23366 { echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_completion_display_matches_hook" >&5
23367 echo "${ECHO_T}$ac_cv_lib_readline_rl_completion_display_matches_hook" >&6; }
23368 if test $ac_cv_lib_readline_rl_completion_display_matches_hook = yes; then
23370 cat >>confdefs.h <<\_ACEOF
23371 #define HAVE_RL_COMPLETION_DISPLAY_MATCHES_HOOK 1
23372 _ACEOF
23377 # check for readline 4.2
23378 { echo "$as_me:$LINENO: checking for rl_completion_matches in -lreadline" >&5
23379 echo $ECHO_N "checking for rl_completion_matches in -lreadline... $ECHO_C" >&6; }
23380 if test "${ac_cv_lib_readline_rl_completion_matches+set}" = set; then
23381 echo $ECHO_N "(cached) $ECHO_C" >&6
23382 else
23383 ac_check_lib_save_LIBS=$LIBS
23384 LIBS="-lreadline $LIBS"
23385 cat >conftest.$ac_ext <<_ACEOF
23386 /* confdefs.h. */
23387 _ACEOF
23388 cat confdefs.h >>conftest.$ac_ext
23389 cat >>conftest.$ac_ext <<_ACEOF
23390 /* end confdefs.h. */
23392 /* Override any GCC internal prototype to avoid an error.
23393 Use char because int might match the return type of a GCC
23394 builtin and then its argument prototype would still apply. */
23395 #ifdef __cplusplus
23396 extern "C"
23397 #endif
23398 char rl_completion_matches ();
23400 main ()
23402 return rl_completion_matches ();
23404 return 0;
23406 _ACEOF
23407 rm -f conftest.$ac_objext conftest$ac_exeext
23408 if { (ac_try="$ac_link"
23409 case "(($ac_try" in
23410 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23411 *) ac_try_echo=$ac_try;;
23412 esac
23413 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23414 (eval "$ac_link") 2>conftest.er1
23415 ac_status=$?
23416 grep -v '^ *+' conftest.er1 >conftest.err
23417 rm -f conftest.er1
23418 cat conftest.err >&5
23419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23420 (exit $ac_status); } && {
23421 test -z "$ac_c_werror_flag" ||
23422 test ! -s conftest.err
23423 } && test -s conftest$ac_exeext &&
23424 $as_test_x conftest$ac_exeext; then
23425 ac_cv_lib_readline_rl_completion_matches=yes
23426 else
23427 echo "$as_me: failed program was:" >&5
23428 sed 's/^/| /' conftest.$ac_ext >&5
23430 ac_cv_lib_readline_rl_completion_matches=no
23433 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23434 conftest$ac_exeext conftest.$ac_ext
23435 LIBS=$ac_check_lib_save_LIBS
23437 { echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_completion_matches" >&5
23438 echo "${ECHO_T}$ac_cv_lib_readline_rl_completion_matches" >&6; }
23439 if test $ac_cv_lib_readline_rl_completion_matches = yes; then
23441 cat >>confdefs.h <<\_ACEOF
23442 #define HAVE_RL_COMPLETION_MATCHES 1
23443 _ACEOF
23448 # also in readline 4.2
23449 cat >conftest.$ac_ext <<_ACEOF
23450 /* confdefs.h. */
23451 _ACEOF
23452 cat confdefs.h >>conftest.$ac_ext
23453 cat >>conftest.$ac_ext <<_ACEOF
23454 /* end confdefs.h. */
23455 #include <readline/readline.h>
23456 _ACEOF
23457 if { (ac_try="$ac_cpp conftest.$ac_ext"
23458 case "(($ac_try" in
23459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23460 *) ac_try_echo=$ac_try;;
23461 esac
23462 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23463 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23464 ac_status=$?
23465 grep -v '^ *+' conftest.er1 >conftest.err
23466 rm -f conftest.er1
23467 cat conftest.err >&5
23468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23469 (exit $ac_status); } >/dev/null && {
23470 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23471 test ! -s conftest.err
23472 }; then
23473 have_readline=yes
23474 else
23475 echo "$as_me: failed program was:" >&5
23476 sed 's/^/| /' conftest.$ac_ext >&5
23478 have_readline=no
23481 rm -f conftest.err conftest.$ac_ext
23482 if test $have_readline = yes
23483 then
23484 cat >conftest.$ac_ext <<_ACEOF
23485 /* confdefs.h. */
23486 _ACEOF
23487 cat confdefs.h >>conftest.$ac_ext
23488 cat >>conftest.$ac_ext <<_ACEOF
23489 /* end confdefs.h. */
23490 #include <readline/readline.h>
23492 _ACEOF
23493 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23494 $EGREP "extern int rl_catch_signals;" >/dev/null 2>&1; then
23496 cat >>confdefs.h <<\_ACEOF
23497 #define HAVE_RL_CATCH_SIGNAL 1
23498 _ACEOF
23501 rm -f conftest*
23505 # End of readline checks: restore LIBS
23506 LIBS=$LIBS_no_readline
23508 { echo "$as_me:$LINENO: checking for broken nice()" >&5
23509 echo $ECHO_N "checking for broken nice()... $ECHO_C" >&6; }
23510 if test "${ac_cv_broken_nice+set}" = set; then
23511 echo $ECHO_N "(cached) $ECHO_C" >&6
23512 else
23514 if test "$cross_compiling" = yes; then
23515 ac_cv_broken_nice=no
23516 else
23517 cat >conftest.$ac_ext <<_ACEOF
23518 /* confdefs.h. */
23519 _ACEOF
23520 cat confdefs.h >>conftest.$ac_ext
23521 cat >>conftest.$ac_ext <<_ACEOF
23522 /* end confdefs.h. */
23524 int main()
23526 int val1 = nice(1);
23527 if (val1 != -1 && val1 == nice(2))
23528 exit(0);
23529 exit(1);
23532 _ACEOF
23533 rm -f conftest$ac_exeext
23534 if { (ac_try="$ac_link"
23535 case "(($ac_try" in
23536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23537 *) ac_try_echo=$ac_try;;
23538 esac
23539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23540 (eval "$ac_link") 2>&5
23541 ac_status=$?
23542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23543 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23544 { (case "(($ac_try" in
23545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23546 *) ac_try_echo=$ac_try;;
23547 esac
23548 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23549 (eval "$ac_try") 2>&5
23550 ac_status=$?
23551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23552 (exit $ac_status); }; }; then
23553 ac_cv_broken_nice=yes
23554 else
23555 echo "$as_me: program exited with status $ac_status" >&5
23556 echo "$as_me: failed program was:" >&5
23557 sed 's/^/| /' conftest.$ac_ext >&5
23559 ( exit $ac_status )
23560 ac_cv_broken_nice=no
23562 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23568 { echo "$as_me:$LINENO: result: $ac_cv_broken_nice" >&5
23569 echo "${ECHO_T}$ac_cv_broken_nice" >&6; }
23570 if test "$ac_cv_broken_nice" = yes
23571 then
23573 cat >>confdefs.h <<\_ACEOF
23574 #define HAVE_BROKEN_NICE 1
23575 _ACEOF
23579 { echo "$as_me:$LINENO: checking for broken poll()" >&5
23580 echo $ECHO_N "checking for broken poll()... $ECHO_C" >&6; }
23581 if test "$cross_compiling" = yes; then
23582 ac_cv_broken_poll=no
23583 else
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 #include <poll.h>
23593 int main (void)
23595 struct pollfd poll_struct = { 42, POLLIN|POLLPRI|POLLOUT, 0 };
23597 close (42);
23599 int poll_test = poll (&poll_struct, 1, 0);
23601 if (poll_test < 0)
23603 exit(0);
23605 else if (poll_test == 0 && poll_struct.revents != POLLNVAL)
23607 exit(0);
23609 else
23611 exit(1);
23615 _ACEOF
23616 rm -f conftest$ac_exeext
23617 if { (ac_try="$ac_link"
23618 case "(($ac_try" in
23619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23620 *) ac_try_echo=$ac_try;;
23621 esac
23622 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23623 (eval "$ac_link") 2>&5
23624 ac_status=$?
23625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23626 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23627 { (case "(($ac_try" in
23628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23629 *) ac_try_echo=$ac_try;;
23630 esac
23631 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23632 (eval "$ac_try") 2>&5
23633 ac_status=$?
23634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23635 (exit $ac_status); }; }; then
23636 ac_cv_broken_poll=yes
23637 else
23638 echo "$as_me: program exited with status $ac_status" >&5
23639 echo "$as_me: failed program was:" >&5
23640 sed 's/^/| /' conftest.$ac_ext >&5
23642 ( exit $ac_status )
23643 ac_cv_broken_poll=no
23645 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23649 { echo "$as_me:$LINENO: result: $ac_cv_broken_poll" >&5
23650 echo "${ECHO_T}$ac_cv_broken_poll" >&6; }
23651 if test "$ac_cv_broken_poll" = yes
23652 then
23654 cat >>confdefs.h <<\_ACEOF
23655 #define HAVE_BROKEN_POLL 1
23656 _ACEOF
23660 # Before we can test tzset, we need to check if struct tm has a tm_zone
23661 # (which is not required by ISO C or UNIX spec) and/or if we support
23662 # tzname[]
23663 { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
23664 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
23665 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
23666 echo $ECHO_N "(cached) $ECHO_C" >&6
23667 else
23668 cat >conftest.$ac_ext <<_ACEOF
23669 /* confdefs.h. */
23670 _ACEOF
23671 cat confdefs.h >>conftest.$ac_ext
23672 cat >>conftest.$ac_ext <<_ACEOF
23673 /* end confdefs.h. */
23674 #include <sys/types.h>
23675 #include <$ac_cv_struct_tm>
23679 main ()
23681 static struct tm ac_aggr;
23682 if (ac_aggr.tm_zone)
23683 return 0;
23685 return 0;
23687 _ACEOF
23688 rm -f conftest.$ac_objext
23689 if { (ac_try="$ac_compile"
23690 case "(($ac_try" in
23691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23692 *) ac_try_echo=$ac_try;;
23693 esac
23694 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23695 (eval "$ac_compile") 2>conftest.er1
23696 ac_status=$?
23697 grep -v '^ *+' conftest.er1 >conftest.err
23698 rm -f conftest.er1
23699 cat conftest.err >&5
23700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23701 (exit $ac_status); } && {
23702 test -z "$ac_c_werror_flag" ||
23703 test ! -s conftest.err
23704 } && test -s conftest.$ac_objext; then
23705 ac_cv_member_struct_tm_tm_zone=yes
23706 else
23707 echo "$as_me: failed program was:" >&5
23708 sed 's/^/| /' conftest.$ac_ext >&5
23710 cat >conftest.$ac_ext <<_ACEOF
23711 /* confdefs.h. */
23712 _ACEOF
23713 cat confdefs.h >>conftest.$ac_ext
23714 cat >>conftest.$ac_ext <<_ACEOF
23715 /* end confdefs.h. */
23716 #include <sys/types.h>
23717 #include <$ac_cv_struct_tm>
23721 main ()
23723 static struct tm ac_aggr;
23724 if (sizeof ac_aggr.tm_zone)
23725 return 0;
23727 return 0;
23729 _ACEOF
23730 rm -f conftest.$ac_objext
23731 if { (ac_try="$ac_compile"
23732 case "(($ac_try" in
23733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23734 *) ac_try_echo=$ac_try;;
23735 esac
23736 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23737 (eval "$ac_compile") 2>conftest.er1
23738 ac_status=$?
23739 grep -v '^ *+' conftest.er1 >conftest.err
23740 rm -f conftest.er1
23741 cat conftest.err >&5
23742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23743 (exit $ac_status); } && {
23744 test -z "$ac_c_werror_flag" ||
23745 test ! -s conftest.err
23746 } && test -s conftest.$ac_objext; then
23747 ac_cv_member_struct_tm_tm_zone=yes
23748 else
23749 echo "$as_me: failed program was:" >&5
23750 sed 's/^/| /' conftest.$ac_ext >&5
23752 ac_cv_member_struct_tm_tm_zone=no
23755 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23758 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23760 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
23761 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
23762 if test $ac_cv_member_struct_tm_tm_zone = yes; then
23764 cat >>confdefs.h <<_ACEOF
23765 #define HAVE_STRUCT_TM_TM_ZONE 1
23766 _ACEOF
23771 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
23773 cat >>confdefs.h <<\_ACEOF
23774 #define HAVE_TM_ZONE 1
23775 _ACEOF
23777 else
23778 { echo "$as_me:$LINENO: checking whether tzname is declared" >&5
23779 echo $ECHO_N "checking whether tzname is declared... $ECHO_C" >&6; }
23780 if test "${ac_cv_have_decl_tzname+set}" = set; then
23781 echo $ECHO_N "(cached) $ECHO_C" >&6
23782 else
23783 cat >conftest.$ac_ext <<_ACEOF
23784 /* confdefs.h. */
23785 _ACEOF
23786 cat confdefs.h >>conftest.$ac_ext
23787 cat >>conftest.$ac_ext <<_ACEOF
23788 /* end confdefs.h. */
23789 #include <time.h>
23792 main ()
23794 #ifndef tzname
23795 (void) tzname;
23796 #endif
23799 return 0;
23801 _ACEOF
23802 rm -f conftest.$ac_objext
23803 if { (ac_try="$ac_compile"
23804 case "(($ac_try" in
23805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23806 *) ac_try_echo=$ac_try;;
23807 esac
23808 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23809 (eval "$ac_compile") 2>conftest.er1
23810 ac_status=$?
23811 grep -v '^ *+' conftest.er1 >conftest.err
23812 rm -f conftest.er1
23813 cat conftest.err >&5
23814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23815 (exit $ac_status); } && {
23816 test -z "$ac_c_werror_flag" ||
23817 test ! -s conftest.err
23818 } && test -s conftest.$ac_objext; then
23819 ac_cv_have_decl_tzname=yes
23820 else
23821 echo "$as_me: failed program was:" >&5
23822 sed 's/^/| /' conftest.$ac_ext >&5
23824 ac_cv_have_decl_tzname=no
23827 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23829 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
23830 echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; }
23831 if test $ac_cv_have_decl_tzname = yes; then
23833 cat >>confdefs.h <<_ACEOF
23834 #define HAVE_DECL_TZNAME 1
23835 _ACEOF
23838 else
23839 cat >>confdefs.h <<_ACEOF
23840 #define HAVE_DECL_TZNAME 0
23841 _ACEOF
23847 { echo "$as_me:$LINENO: checking for tzname" >&5
23848 echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
23849 if test "${ac_cv_var_tzname+set}" = set; then
23850 echo $ECHO_N "(cached) $ECHO_C" >&6
23851 else
23852 cat >conftest.$ac_ext <<_ACEOF
23853 /* confdefs.h. */
23854 _ACEOF
23855 cat confdefs.h >>conftest.$ac_ext
23856 cat >>conftest.$ac_ext <<_ACEOF
23857 /* end confdefs.h. */
23858 #include <time.h>
23859 #if !HAVE_DECL_TZNAME
23860 extern char *tzname[];
23861 #endif
23864 main ()
23866 return tzname[0][0];
23868 return 0;
23870 _ACEOF
23871 rm -f conftest.$ac_objext conftest$ac_exeext
23872 if { (ac_try="$ac_link"
23873 case "(($ac_try" in
23874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23875 *) ac_try_echo=$ac_try;;
23876 esac
23877 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23878 (eval "$ac_link") 2>conftest.er1
23879 ac_status=$?
23880 grep -v '^ *+' conftest.er1 >conftest.err
23881 rm -f conftest.er1
23882 cat conftest.err >&5
23883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23884 (exit $ac_status); } && {
23885 test -z "$ac_c_werror_flag" ||
23886 test ! -s conftest.err
23887 } && test -s conftest$ac_exeext &&
23888 $as_test_x conftest$ac_exeext; then
23889 ac_cv_var_tzname=yes
23890 else
23891 echo "$as_me: failed program was:" >&5
23892 sed 's/^/| /' conftest.$ac_ext >&5
23894 ac_cv_var_tzname=no
23897 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23898 conftest$ac_exeext conftest.$ac_ext
23900 { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
23901 echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
23902 if test $ac_cv_var_tzname = yes; then
23904 cat >>confdefs.h <<\_ACEOF
23905 #define HAVE_TZNAME 1
23906 _ACEOF
23912 # check tzset(3) exists and works like we expect it to
23913 { echo "$as_me:$LINENO: checking for working tzset()" >&5
23914 echo $ECHO_N "checking for working tzset()... $ECHO_C" >&6; }
23915 if test "${ac_cv_working_tzset+set}" = set; then
23916 echo $ECHO_N "(cached) $ECHO_C" >&6
23917 else
23919 if test "$cross_compiling" = yes; then
23920 ac_cv_working_tzset=no
23921 else
23922 cat >conftest.$ac_ext <<_ACEOF
23923 /* confdefs.h. */
23924 _ACEOF
23925 cat confdefs.h >>conftest.$ac_ext
23926 cat >>conftest.$ac_ext <<_ACEOF
23927 /* end confdefs.h. */
23929 #include <stdlib.h>
23930 #include <time.h>
23931 #include <string.h>
23933 #if HAVE_TZNAME
23934 extern char *tzname[];
23935 #endif
23937 int main()
23939 /* Note that we need to ensure that not only does tzset(3)
23940 do 'something' with localtime, but it works as documented
23941 in the library reference and as expected by the test suite.
23942 This includes making sure that tzname is set properly if
23943 tm->tm_zone does not exist since it is the alternative way
23944 of getting timezone info.
23946 Red Hat 6.2 doesn't understand the southern hemisphere
23947 after New Year's Day.
23950 time_t groundhogday = 1044144000; /* GMT-based */
23951 time_t midyear = groundhogday + (365 * 24 * 3600 / 2);
23953 putenv("TZ=UTC+0");
23954 tzset();
23955 if (localtime(&groundhogday)->tm_hour != 0)
23956 exit(1);
23957 #if HAVE_TZNAME
23958 /* For UTC, tzname[1] is sometimes "", sometimes " " */
23959 if (strcmp(tzname[0], "UTC") ||
23960 (tzname[1][0] != 0 && tzname[1][0] != ' '))
23961 exit(1);
23962 #endif
23964 putenv("TZ=EST+5EDT,M4.1.0,M10.5.0");
23965 tzset();
23966 if (localtime(&groundhogday)->tm_hour != 19)
23967 exit(1);
23968 #if HAVE_TZNAME
23969 if (strcmp(tzname[0], "EST") || strcmp(tzname[1], "EDT"))
23970 exit(1);
23971 #endif
23973 putenv("TZ=AEST-10AEDT-11,M10.5.0,M3.5.0");
23974 tzset();
23975 if (localtime(&groundhogday)->tm_hour != 11)
23976 exit(1);
23977 #if HAVE_TZNAME
23978 if (strcmp(tzname[0], "AEST") || strcmp(tzname[1], "AEDT"))
23979 exit(1);
23980 #endif
23982 #if HAVE_STRUCT_TM_TM_ZONE
23983 if (strcmp(localtime(&groundhogday)->tm_zone, "AEDT"))
23984 exit(1);
23985 if (strcmp(localtime(&midyear)->tm_zone, "AEST"))
23986 exit(1);
23987 #endif
23989 exit(0);
23992 _ACEOF
23993 rm -f conftest$ac_exeext
23994 if { (ac_try="$ac_link"
23995 case "(($ac_try" in
23996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23997 *) ac_try_echo=$ac_try;;
23998 esac
23999 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24000 (eval "$ac_link") 2>&5
24001 ac_status=$?
24002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24003 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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_try") 2>&5
24010 ac_status=$?
24011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24012 (exit $ac_status); }; }; then
24013 ac_cv_working_tzset=yes
24014 else
24015 echo "$as_me: program exited with status $ac_status" >&5
24016 echo "$as_me: failed program was:" >&5
24017 sed 's/^/| /' conftest.$ac_ext >&5
24019 ( exit $ac_status )
24020 ac_cv_working_tzset=no
24022 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24028 { echo "$as_me:$LINENO: result: $ac_cv_working_tzset" >&5
24029 echo "${ECHO_T}$ac_cv_working_tzset" >&6; }
24030 if test "$ac_cv_working_tzset" = yes
24031 then
24033 cat >>confdefs.h <<\_ACEOF
24034 #define HAVE_WORKING_TZSET 1
24035 _ACEOF
24039 # Look for subsecond timestamps in struct stat
24040 { echo "$as_me:$LINENO: checking for tv_nsec in struct stat" >&5
24041 echo $ECHO_N "checking for tv_nsec in struct stat... $ECHO_C" >&6; }
24042 if test "${ac_cv_stat_tv_nsec+set}" = set; then
24043 echo $ECHO_N "(cached) $ECHO_C" >&6
24044 else
24045 cat >conftest.$ac_ext <<_ACEOF
24046 /* confdefs.h. */
24047 _ACEOF
24048 cat confdefs.h >>conftest.$ac_ext
24049 cat >>conftest.$ac_ext <<_ACEOF
24050 /* end confdefs.h. */
24051 #include <sys/stat.h>
24053 main ()
24056 struct stat st;
24057 st.st_mtim.tv_nsec = 1;
24060 return 0;
24062 _ACEOF
24063 rm -f conftest.$ac_objext
24064 if { (ac_try="$ac_compile"
24065 case "(($ac_try" in
24066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24067 *) ac_try_echo=$ac_try;;
24068 esac
24069 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24070 (eval "$ac_compile") 2>conftest.er1
24071 ac_status=$?
24072 grep -v '^ *+' conftest.er1 >conftest.err
24073 rm -f conftest.er1
24074 cat conftest.err >&5
24075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24076 (exit $ac_status); } && {
24077 test -z "$ac_c_werror_flag" ||
24078 test ! -s conftest.err
24079 } && test -s conftest.$ac_objext; then
24080 ac_cv_stat_tv_nsec=yes
24081 else
24082 echo "$as_me: failed program was:" >&5
24083 sed 's/^/| /' conftest.$ac_ext >&5
24085 ac_cv_stat_tv_nsec=no
24088 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24091 { echo "$as_me:$LINENO: result: $ac_cv_stat_tv_nsec" >&5
24092 echo "${ECHO_T}$ac_cv_stat_tv_nsec" >&6; }
24093 if test "$ac_cv_stat_tv_nsec" = yes
24094 then
24096 cat >>confdefs.h <<\_ACEOF
24097 #define HAVE_STAT_TV_NSEC 1
24098 _ACEOF
24102 # Look for BSD style subsecond timestamps in struct stat
24103 { echo "$as_me:$LINENO: checking for tv_nsec2 in struct stat" >&5
24104 echo $ECHO_N "checking for tv_nsec2 in struct stat... $ECHO_C" >&6; }
24105 if test "${ac_cv_stat_tv_nsec2+set}" = set; then
24106 echo $ECHO_N "(cached) $ECHO_C" >&6
24107 else
24108 cat >conftest.$ac_ext <<_ACEOF
24109 /* confdefs.h. */
24110 _ACEOF
24111 cat confdefs.h >>conftest.$ac_ext
24112 cat >>conftest.$ac_ext <<_ACEOF
24113 /* end confdefs.h. */
24114 #include <sys/stat.h>
24116 main ()
24119 struct stat st;
24120 st.st_mtimespec.tv_nsec = 1;
24123 return 0;
24125 _ACEOF
24126 rm -f conftest.$ac_objext
24127 if { (ac_try="$ac_compile"
24128 case "(($ac_try" in
24129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24130 *) ac_try_echo=$ac_try;;
24131 esac
24132 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24133 (eval "$ac_compile") 2>conftest.er1
24134 ac_status=$?
24135 grep -v '^ *+' conftest.er1 >conftest.err
24136 rm -f conftest.er1
24137 cat conftest.err >&5
24138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24139 (exit $ac_status); } && {
24140 test -z "$ac_c_werror_flag" ||
24141 test ! -s conftest.err
24142 } && test -s conftest.$ac_objext; then
24143 ac_cv_stat_tv_nsec2=yes
24144 else
24145 echo "$as_me: failed program was:" >&5
24146 sed 's/^/| /' conftest.$ac_ext >&5
24148 ac_cv_stat_tv_nsec2=no
24151 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24154 { echo "$as_me:$LINENO: result: $ac_cv_stat_tv_nsec2" >&5
24155 echo "${ECHO_T}$ac_cv_stat_tv_nsec2" >&6; }
24156 if test "$ac_cv_stat_tv_nsec2" = yes
24157 then
24159 cat >>confdefs.h <<\_ACEOF
24160 #define HAVE_STAT_TV_NSEC2 1
24161 _ACEOF
24165 # On HP/UX 11.0, mvwdelch is a block with a return statement
24166 { echo "$as_me:$LINENO: checking whether mvwdelch is an expression" >&5
24167 echo $ECHO_N "checking whether mvwdelch is an expression... $ECHO_C" >&6; }
24168 if test "${ac_cv_mvwdelch_is_expression+set}" = set; then
24169 echo $ECHO_N "(cached) $ECHO_C" >&6
24170 else
24171 cat >conftest.$ac_ext <<_ACEOF
24172 /* confdefs.h. */
24173 _ACEOF
24174 cat confdefs.h >>conftest.$ac_ext
24175 cat >>conftest.$ac_ext <<_ACEOF
24176 /* end confdefs.h. */
24177 #include <curses.h>
24179 main ()
24182 int rtn;
24183 rtn = mvwdelch(0,0,0);
24186 return 0;
24188 _ACEOF
24189 rm -f conftest.$ac_objext
24190 if { (ac_try="$ac_compile"
24191 case "(($ac_try" in
24192 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24193 *) ac_try_echo=$ac_try;;
24194 esac
24195 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24196 (eval "$ac_compile") 2>conftest.er1
24197 ac_status=$?
24198 grep -v '^ *+' conftest.er1 >conftest.err
24199 rm -f conftest.er1
24200 cat conftest.err >&5
24201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24202 (exit $ac_status); } && {
24203 test -z "$ac_c_werror_flag" ||
24204 test ! -s conftest.err
24205 } && test -s conftest.$ac_objext; then
24206 ac_cv_mvwdelch_is_expression=yes
24207 else
24208 echo "$as_me: failed program was:" >&5
24209 sed 's/^/| /' conftest.$ac_ext >&5
24211 ac_cv_mvwdelch_is_expression=no
24214 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24217 { echo "$as_me:$LINENO: result: $ac_cv_mvwdelch_is_expression" >&5
24218 echo "${ECHO_T}$ac_cv_mvwdelch_is_expression" >&6; }
24220 if test "$ac_cv_mvwdelch_is_expression" = yes
24221 then
24223 cat >>confdefs.h <<\_ACEOF
24224 #define MVWDELCH_IS_EXPRESSION 1
24225 _ACEOF
24229 { echo "$as_me:$LINENO: checking whether WINDOW has _flags" >&5
24230 echo $ECHO_N "checking whether WINDOW has _flags... $ECHO_C" >&6; }
24231 if test "${ac_cv_window_has_flags+set}" = set; then
24232 echo $ECHO_N "(cached) $ECHO_C" >&6
24233 else
24234 cat >conftest.$ac_ext <<_ACEOF
24235 /* confdefs.h. */
24236 _ACEOF
24237 cat confdefs.h >>conftest.$ac_ext
24238 cat >>conftest.$ac_ext <<_ACEOF
24239 /* end confdefs.h. */
24240 #include <curses.h>
24242 main ()
24245 WINDOW *w;
24246 w->_flags = 0;
24249 return 0;
24251 _ACEOF
24252 rm -f conftest.$ac_objext
24253 if { (ac_try="$ac_compile"
24254 case "(($ac_try" in
24255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24256 *) ac_try_echo=$ac_try;;
24257 esac
24258 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24259 (eval "$ac_compile") 2>conftest.er1
24260 ac_status=$?
24261 grep -v '^ *+' conftest.er1 >conftest.err
24262 rm -f conftest.er1
24263 cat conftest.err >&5
24264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24265 (exit $ac_status); } && {
24266 test -z "$ac_c_werror_flag" ||
24267 test ! -s conftest.err
24268 } && test -s conftest.$ac_objext; then
24269 ac_cv_window_has_flags=yes
24270 else
24271 echo "$as_me: failed program was:" >&5
24272 sed 's/^/| /' conftest.$ac_ext >&5
24274 ac_cv_window_has_flags=no
24277 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24280 { echo "$as_me:$LINENO: result: $ac_cv_window_has_flags" >&5
24281 echo "${ECHO_T}$ac_cv_window_has_flags" >&6; }
24284 if test "$ac_cv_window_has_flags" = yes
24285 then
24287 cat >>confdefs.h <<\_ACEOF
24288 #define WINDOW_HAS_FLAGS 1
24289 _ACEOF
24293 { echo "$as_me:$LINENO: checking for is_term_resized" >&5
24294 echo $ECHO_N "checking for is_term_resized... $ECHO_C" >&6; }
24295 cat >conftest.$ac_ext <<_ACEOF
24296 /* confdefs.h. */
24297 _ACEOF
24298 cat confdefs.h >>conftest.$ac_ext
24299 cat >>conftest.$ac_ext <<_ACEOF
24300 /* end confdefs.h. */
24301 #include <curses.h>
24303 main ()
24305 void *x=is_term_resized
24307 return 0;
24309 _ACEOF
24310 rm -f conftest.$ac_objext
24311 if { (ac_try="$ac_compile"
24312 case "(($ac_try" in
24313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24314 *) ac_try_echo=$ac_try;;
24315 esac
24316 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24317 (eval "$ac_compile") 2>conftest.er1
24318 ac_status=$?
24319 grep -v '^ *+' conftest.er1 >conftest.err
24320 rm -f conftest.er1
24321 cat conftest.err >&5
24322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24323 (exit $ac_status); } && {
24324 test -z "$ac_c_werror_flag" ||
24325 test ! -s conftest.err
24326 } && test -s conftest.$ac_objext; then
24328 cat >>confdefs.h <<\_ACEOF
24329 #define HAVE_CURSES_IS_TERM_RESIZED 1
24330 _ACEOF
24332 { echo "$as_me:$LINENO: result: yes" >&5
24333 echo "${ECHO_T}yes" >&6; }
24334 else
24335 echo "$as_me: failed program was:" >&5
24336 sed 's/^/| /' conftest.$ac_ext >&5
24338 { echo "$as_me:$LINENO: result: no" >&5
24339 echo "${ECHO_T}no" >&6; }
24343 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24345 { echo "$as_me:$LINENO: checking for resize_term" >&5
24346 echo $ECHO_N "checking for resize_term... $ECHO_C" >&6; }
24347 cat >conftest.$ac_ext <<_ACEOF
24348 /* confdefs.h. */
24349 _ACEOF
24350 cat confdefs.h >>conftest.$ac_ext
24351 cat >>conftest.$ac_ext <<_ACEOF
24352 /* end confdefs.h. */
24353 #include <curses.h>
24355 main ()
24357 void *x=resize_term
24359 return 0;
24361 _ACEOF
24362 rm -f conftest.$ac_objext
24363 if { (ac_try="$ac_compile"
24364 case "(($ac_try" in
24365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24366 *) ac_try_echo=$ac_try;;
24367 esac
24368 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24369 (eval "$ac_compile") 2>conftest.er1
24370 ac_status=$?
24371 grep -v '^ *+' conftest.er1 >conftest.err
24372 rm -f conftest.er1
24373 cat conftest.err >&5
24374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24375 (exit $ac_status); } && {
24376 test -z "$ac_c_werror_flag" ||
24377 test ! -s conftest.err
24378 } && test -s conftest.$ac_objext; then
24380 cat >>confdefs.h <<\_ACEOF
24381 #define HAVE_CURSES_RESIZE_TERM 1
24382 _ACEOF
24384 { echo "$as_me:$LINENO: result: yes" >&5
24385 echo "${ECHO_T}yes" >&6; }
24386 else
24387 echo "$as_me: failed program was:" >&5
24388 sed 's/^/| /' conftest.$ac_ext >&5
24390 { echo "$as_me:$LINENO: result: no" >&5
24391 echo "${ECHO_T}no" >&6; }
24395 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24397 { echo "$as_me:$LINENO: checking for resizeterm" >&5
24398 echo $ECHO_N "checking for resizeterm... $ECHO_C" >&6; }
24399 cat >conftest.$ac_ext <<_ACEOF
24400 /* confdefs.h. */
24401 _ACEOF
24402 cat confdefs.h >>conftest.$ac_ext
24403 cat >>conftest.$ac_ext <<_ACEOF
24404 /* end confdefs.h. */
24405 #include <curses.h>
24407 main ()
24409 void *x=resizeterm
24411 return 0;
24413 _ACEOF
24414 rm -f conftest.$ac_objext
24415 if { (ac_try="$ac_compile"
24416 case "(($ac_try" in
24417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24418 *) ac_try_echo=$ac_try;;
24419 esac
24420 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24421 (eval "$ac_compile") 2>conftest.er1
24422 ac_status=$?
24423 grep -v '^ *+' conftest.er1 >conftest.err
24424 rm -f conftest.er1
24425 cat conftest.err >&5
24426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24427 (exit $ac_status); } && {
24428 test -z "$ac_c_werror_flag" ||
24429 test ! -s conftest.err
24430 } && test -s conftest.$ac_objext; then
24432 cat >>confdefs.h <<\_ACEOF
24433 #define HAVE_CURSES_RESIZETERM 1
24434 _ACEOF
24436 { echo "$as_me:$LINENO: result: yes" >&5
24437 echo "${ECHO_T}yes" >&6; }
24438 else
24439 echo "$as_me: failed program was:" >&5
24440 sed 's/^/| /' conftest.$ac_ext >&5
24442 { echo "$as_me:$LINENO: result: no" >&5
24443 echo "${ECHO_T}no" >&6; }
24447 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24449 { echo "$as_me:$LINENO: checking for /dev/ptmx" >&5
24450 echo $ECHO_N "checking for /dev/ptmx... $ECHO_C" >&6; }
24452 if test -r /dev/ptmx
24453 then
24454 { echo "$as_me:$LINENO: result: yes" >&5
24455 echo "${ECHO_T}yes" >&6; }
24457 cat >>confdefs.h <<\_ACEOF
24458 #define HAVE_DEV_PTMX 1
24459 _ACEOF
24461 else
24462 { echo "$as_me:$LINENO: result: no" >&5
24463 echo "${ECHO_T}no" >&6; }
24466 { echo "$as_me:$LINENO: checking for /dev/ptc" >&5
24467 echo $ECHO_N "checking for /dev/ptc... $ECHO_C" >&6; }
24469 if test -r /dev/ptc
24470 then
24471 { echo "$as_me:$LINENO: result: yes" >&5
24472 echo "${ECHO_T}yes" >&6; }
24474 cat >>confdefs.h <<\_ACEOF
24475 #define HAVE_DEV_PTC 1
24476 _ACEOF
24478 else
24479 { echo "$as_me:$LINENO: result: no" >&5
24480 echo "${ECHO_T}no" >&6; }
24483 { echo "$as_me:$LINENO: checking for %zd printf() format support" >&5
24484 echo $ECHO_N "checking for %zd printf() format support... $ECHO_C" >&6; }
24485 if test "$cross_compiling" = yes; then
24486 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
24487 See \`config.log' for more details." >&5
24488 echo "$as_me: error: cannot run test program while cross compiling
24489 See \`config.log' for more details." >&2;}
24490 { (exit 1); exit 1; }; }
24491 else
24492 cat >conftest.$ac_ext <<_ACEOF
24493 /* confdefs.h. */
24494 _ACEOF
24495 cat confdefs.h >>conftest.$ac_ext
24496 cat >>conftest.$ac_ext <<_ACEOF
24497 /* end confdefs.h. */
24498 #include <stdio.h>
24499 #include <stddef.h>
24500 #include <string.h>
24502 #ifdef HAVE_SYS_TYPES_H
24503 #include <sys/types.h>
24504 #endif
24506 #ifdef HAVE_SSIZE_T
24507 typedef ssize_t Py_ssize_t;
24508 #elif SIZEOF_VOID_P == SIZEOF_LONG
24509 typedef long Py_ssize_t;
24510 #else
24511 typedef int Py_ssize_t;
24512 #endif
24514 int main()
24516 char buffer[256];
24518 if(sprintf(buffer, "%zd", (size_t)123) < 0)
24519 return 1;
24521 if (strcmp(buffer, "123"))
24522 return 1;
24524 if (sprintf(buffer, "%zd", (Py_ssize_t)-123) < 0)
24525 return 1;
24527 if (strcmp(buffer, "-123"))
24528 return 1;
24530 return 0;
24532 _ACEOF
24533 rm -f conftest$ac_exeext
24534 if { (ac_try="$ac_link"
24535 case "(($ac_try" in
24536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24537 *) ac_try_echo=$ac_try;;
24538 esac
24539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24540 (eval "$ac_link") 2>&5
24541 ac_status=$?
24542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24543 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24544 { (case "(($ac_try" in
24545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24546 *) ac_try_echo=$ac_try;;
24547 esac
24548 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24549 (eval "$ac_try") 2>&5
24550 ac_status=$?
24551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24552 (exit $ac_status); }; }; then
24553 { echo "$as_me:$LINENO: result: yes" >&5
24554 echo "${ECHO_T}yes" >&6; }
24556 cat >>confdefs.h <<\_ACEOF
24557 #define PY_FORMAT_SIZE_T "z"
24558 _ACEOF
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 { echo "$as_me:$LINENO: result: no" >&5
24567 echo "${ECHO_T}no" >&6; }
24569 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24574 { echo "$as_me:$LINENO: checking for socklen_t" >&5
24575 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; }
24576 if test "${ac_cv_type_socklen_t+set}" = set; then
24577 echo $ECHO_N "(cached) $ECHO_C" >&6
24578 else
24579 cat >conftest.$ac_ext <<_ACEOF
24580 /* confdefs.h. */
24581 _ACEOF
24582 cat confdefs.h >>conftest.$ac_ext
24583 cat >>conftest.$ac_ext <<_ACEOF
24584 /* end confdefs.h. */
24586 #ifdef HAVE_SYS_TYPES_H
24587 #include <sys/types.h>
24588 #endif
24589 #ifdef HAVE_SYS_SOCKET_H
24590 #include <sys/socket.h>
24591 #endif
24594 typedef socklen_t ac__type_new_;
24596 main ()
24598 if ((ac__type_new_ *) 0)
24599 return 0;
24600 if (sizeof (ac__type_new_))
24601 return 0;
24603 return 0;
24605 _ACEOF
24606 rm -f conftest.$ac_objext
24607 if { (ac_try="$ac_compile"
24608 case "(($ac_try" in
24609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24610 *) ac_try_echo=$ac_try;;
24611 esac
24612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24613 (eval "$ac_compile") 2>conftest.er1
24614 ac_status=$?
24615 grep -v '^ *+' conftest.er1 >conftest.err
24616 rm -f conftest.er1
24617 cat conftest.err >&5
24618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24619 (exit $ac_status); } && {
24620 test -z "$ac_c_werror_flag" ||
24621 test ! -s conftest.err
24622 } && test -s conftest.$ac_objext; then
24623 ac_cv_type_socklen_t=yes
24624 else
24625 echo "$as_me: failed program was:" >&5
24626 sed 's/^/| /' conftest.$ac_ext >&5
24628 ac_cv_type_socklen_t=no
24631 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24633 { echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
24634 echo "${ECHO_T}$ac_cv_type_socklen_t" >&6; }
24635 if test $ac_cv_type_socklen_t = yes; then
24637 else
24639 cat >>confdefs.h <<\_ACEOF
24640 #define socklen_t int
24641 _ACEOF
24648 for h in `(cd $srcdir;echo Python/thread_*.h)`
24650 THREADHEADERS="$THREADHEADERS \$(srcdir)/$h"
24651 done
24654 SRCDIRS="Parser Grammar Objects Python Modules Mac"
24655 { echo "$as_me:$LINENO: checking for build directories" >&5
24656 echo $ECHO_N "checking for build directories... $ECHO_C" >&6; }
24657 for dir in $SRCDIRS; do
24658 if test ! -d $dir; then
24659 mkdir $dir
24661 done
24662 { echo "$as_me:$LINENO: result: done" >&5
24663 echo "${ECHO_T}done" >&6; }
24665 # generate output files
24666 ac_config_files="$ac_config_files Makefile.pre Modules/Setup.config"
24668 cat >confcache <<\_ACEOF
24669 # This file is a shell script that caches the results of configure
24670 # tests run on this system so they can be shared between configure
24671 # scripts and configure runs, see configure's option --config-cache.
24672 # It is not useful on other systems. If it contains results you don't
24673 # want to keep, you may remove or edit it.
24675 # config.status only pays attention to the cache file if you give it
24676 # the --recheck option to rerun configure.
24678 # `ac_cv_env_foo' variables (set or unset) will be overridden when
24679 # loading this file, other *unset* `ac_cv_foo' will be assigned the
24680 # following values.
24682 _ACEOF
24684 # The following way of writing the cache mishandles newlines in values,
24685 # but we know of no workaround that is simple, portable, and efficient.
24686 # So, we kill variables containing newlines.
24687 # Ultrix sh set writes to stderr and can't be redirected directly,
24688 # and sets the high bit in the cache file unless we assign to the vars.
24690 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
24691 eval ac_val=\$$ac_var
24692 case $ac_val in #(
24693 *${as_nl}*)
24694 case $ac_var in #(
24695 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
24696 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
24697 esac
24698 case $ac_var in #(
24699 _ | IFS | as_nl) ;; #(
24700 *) $as_unset $ac_var ;;
24701 esac ;;
24702 esac
24703 done
24705 (set) 2>&1 |
24706 case $as_nl`(ac_space=' '; set) 2>&1` in #(
24707 *${as_nl}ac_space=\ *)
24708 # `set' does not quote correctly, so add quotes (double-quote
24709 # substitution turns \\\\ into \\, and sed turns \\ into \).
24710 sed -n \
24711 "s/'/'\\\\''/g;
24712 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
24713 ;; #(
24715 # `set' quotes correctly as required by POSIX, so do not add quotes.
24716 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
24718 esac |
24719 sort
24721 sed '
24722 /^ac_cv_env_/b end
24723 t clear
24724 :clear
24725 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
24726 t end
24727 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
24728 :end' >>confcache
24729 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
24730 if test -w "$cache_file"; then
24731 test "x$cache_file" != "x/dev/null" &&
24732 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
24733 echo "$as_me: updating cache $cache_file" >&6;}
24734 cat confcache >$cache_file
24735 else
24736 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
24737 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
24740 rm -f confcache
24742 test "x$prefix" = xNONE && prefix=$ac_default_prefix
24743 # Let make expand exec_prefix.
24744 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
24746 DEFS=-DHAVE_CONFIG_H
24748 ac_libobjs=
24749 ac_ltlibobjs=
24750 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
24751 # 1. Remove the extension, and $U if already installed.
24752 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
24753 ac_i=`echo "$ac_i" | sed "$ac_script"`
24754 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
24755 # will be set to the directory where LIBOBJS objects are built.
24756 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
24757 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
24758 done
24759 LIBOBJS=$ac_libobjs
24761 LTLIBOBJS=$ac_ltlibobjs
24765 : ${CONFIG_STATUS=./config.status}
24766 ac_clean_files_save=$ac_clean_files
24767 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
24768 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
24769 echo "$as_me: creating $CONFIG_STATUS" >&6;}
24770 cat >$CONFIG_STATUS <<_ACEOF
24771 #! $SHELL
24772 # Generated by $as_me.
24773 # Run this file to recreate the current configuration.
24774 # Compiler output produced by configure, useful for debugging
24775 # configure, is in config.log if it exists.
24777 debug=false
24778 ac_cs_recheck=false
24779 ac_cs_silent=false
24780 SHELL=\${CONFIG_SHELL-$SHELL}
24781 _ACEOF
24783 cat >>$CONFIG_STATUS <<\_ACEOF
24784 ## --------------------- ##
24785 ## M4sh Initialization. ##
24786 ## --------------------- ##
24788 # Be more Bourne compatible
24789 DUALCASE=1; export DUALCASE # for MKS sh
24790 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
24791 emulate sh
24792 NULLCMD=:
24793 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
24794 # is contrary to our usage. Disable this feature.
24795 alias -g '${1+"$@"}'='"$@"'
24796 setopt NO_GLOB_SUBST
24797 else
24798 case `(set -o) 2>/dev/null` in
24799 *posix*) set -o posix ;;
24800 esac
24807 # PATH needs CR
24808 # Avoid depending upon Character Ranges.
24809 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
24810 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
24811 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
24812 as_cr_digits='0123456789'
24813 as_cr_alnum=$as_cr_Letters$as_cr_digits
24815 # The user is always right.
24816 if test "${PATH_SEPARATOR+set}" != set; then
24817 echo "#! /bin/sh" >conf$$.sh
24818 echo "exit 0" >>conf$$.sh
24819 chmod +x conf$$.sh
24820 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
24821 PATH_SEPARATOR=';'
24822 else
24823 PATH_SEPARATOR=:
24825 rm -f conf$$.sh
24828 # Support unset when possible.
24829 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
24830 as_unset=unset
24831 else
24832 as_unset=false
24836 # IFS
24837 # We need space, tab and new line, in precisely that order. Quoting is
24838 # there to prevent editors from complaining about space-tab.
24839 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
24840 # splitting by setting IFS to empty value.)
24841 as_nl='
24843 IFS=" "" $as_nl"
24845 # Find who we are. Look in the path if we contain no directory separator.
24846 case $0 in
24847 *[\\/]* ) as_myself=$0 ;;
24848 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24849 for as_dir in $PATH
24851 IFS=$as_save_IFS
24852 test -z "$as_dir" && as_dir=.
24853 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
24854 done
24855 IFS=$as_save_IFS
24858 esac
24859 # We did not find ourselves, most probably we were run as `sh COMMAND'
24860 # in which case we are not to be found in the path.
24861 if test "x$as_myself" = x; then
24862 as_myself=$0
24864 if test ! -f "$as_myself"; then
24865 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
24866 { (exit 1); exit 1; }
24869 # Work around bugs in pre-3.0 UWIN ksh.
24870 for as_var in ENV MAIL MAILPATH
24871 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
24872 done
24873 PS1='$ '
24874 PS2='> '
24875 PS4='+ '
24877 # NLS nuisances.
24878 for as_var in \
24879 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
24880 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
24881 LC_TELEPHONE LC_TIME
24883 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
24884 eval $as_var=C; export $as_var
24885 else
24886 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
24888 done
24890 # Required to use basename.
24891 if expr a : '\(a\)' >/dev/null 2>&1 &&
24892 test "X`expr 00001 : '.*\(...\)'`" = X001; then
24893 as_expr=expr
24894 else
24895 as_expr=false
24898 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
24899 as_basename=basename
24900 else
24901 as_basename=false
24905 # Name of the executable.
24906 as_me=`$as_basename -- "$0" ||
24907 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
24908 X"$0" : 'X\(//\)$' \| \
24909 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
24910 echo X/"$0" |
24911 sed '/^.*\/\([^/][^/]*\)\/*$/{
24912 s//\1/
24915 /^X\/\(\/\/\)$/{
24916 s//\1/
24919 /^X\/\(\/\).*/{
24920 s//\1/
24923 s/.*/./; q'`
24925 # CDPATH.
24926 $as_unset CDPATH
24930 as_lineno_1=$LINENO
24931 as_lineno_2=$LINENO
24932 test "x$as_lineno_1" != "x$as_lineno_2" &&
24933 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
24935 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
24936 # uniformly replaced by the line number. The first 'sed' inserts a
24937 # line-number line after each line using $LINENO; the second 'sed'
24938 # does the real work. The second script uses 'N' to pair each
24939 # line-number line with the line containing $LINENO, and appends
24940 # trailing '-' during substitution so that $LINENO is not a special
24941 # case at line end.
24942 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
24943 # scripts with optimization help from Paolo Bonzini. Blame Lee
24944 # E. McMahon (1931-1989) for sed's syntax. :-)
24945 sed -n '
24947 /[$]LINENO/=
24948 ' <$as_myself |
24949 sed '
24950 s/[$]LINENO.*/&-/
24951 t lineno
24953 :lineno
24955 :loop
24956 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
24957 t loop
24958 s/-\n.*//
24959 ' >$as_me.lineno &&
24960 chmod +x "$as_me.lineno" ||
24961 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
24962 { (exit 1); exit 1; }; }
24964 # Don't try to exec as it changes $[0], causing all sort of problems
24965 # (the dirname of $[0] is not the place where we might find the
24966 # original and so on. Autoconf is especially sensitive to this).
24967 . "./$as_me.lineno"
24968 # Exit status is that of the last command.
24969 exit
24973 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
24974 as_dirname=dirname
24975 else
24976 as_dirname=false
24979 ECHO_C= ECHO_N= ECHO_T=
24980 case `echo -n x` in
24981 -n*)
24982 case `echo 'x\c'` in
24983 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
24984 *) ECHO_C='\c';;
24985 esac;;
24987 ECHO_N='-n';;
24988 esac
24990 if expr a : '\(a\)' >/dev/null 2>&1 &&
24991 test "X`expr 00001 : '.*\(...\)'`" = X001; then
24992 as_expr=expr
24993 else
24994 as_expr=false
24997 rm -f conf$$ conf$$.exe conf$$.file
24998 if test -d conf$$.dir; then
24999 rm -f conf$$.dir/conf$$.file
25000 else
25001 rm -f conf$$.dir
25002 mkdir conf$$.dir
25004 echo >conf$$.file
25005 if ln -s conf$$.file conf$$ 2>/dev/null; then
25006 as_ln_s='ln -s'
25007 # ... but there are two gotchas:
25008 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
25009 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
25010 # In both cases, we have to default to `cp -p'.
25011 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
25012 as_ln_s='cp -p'
25013 elif ln conf$$.file conf$$ 2>/dev/null; then
25014 as_ln_s=ln
25015 else
25016 as_ln_s='cp -p'
25018 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
25019 rmdir conf$$.dir 2>/dev/null
25021 if mkdir -p . 2>/dev/null; then
25022 as_mkdir_p=:
25023 else
25024 test -d ./-p && rmdir ./-p
25025 as_mkdir_p=false
25028 if test -x / >/dev/null 2>&1; then
25029 as_test_x='test -x'
25030 else
25031 if ls -dL / >/dev/null 2>&1; then
25032 as_ls_L_option=L
25033 else
25034 as_ls_L_option=
25036 as_test_x='
25037 eval sh -c '\''
25038 if test -d "$1"; then
25039 test -d "$1/.";
25040 else
25041 case $1 in
25042 -*)set "./$1";;
25043 esac;
25044 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
25045 ???[sx]*):;;*)false;;esac;fi
25046 '\'' sh
25049 as_executable_p=$as_test_x
25051 # Sed expression to map a string onto a valid CPP name.
25052 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
25054 # Sed expression to map a string onto a valid variable name.
25055 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
25058 exec 6>&1
25060 # Save the log message, to keep $[0] and so on meaningful, and to
25061 # report actual input values of CONFIG_FILES etc. instead of their
25062 # values after options handling.
25063 ac_log="
25064 This file was extended by python $as_me 2.6, which was
25065 generated by GNU Autoconf 2.61. Invocation command line was
25067 CONFIG_FILES = $CONFIG_FILES
25068 CONFIG_HEADERS = $CONFIG_HEADERS
25069 CONFIG_LINKS = $CONFIG_LINKS
25070 CONFIG_COMMANDS = $CONFIG_COMMANDS
25071 $ $0 $@
25073 on `(hostname || uname -n) 2>/dev/null | sed 1q`
25076 _ACEOF
25078 cat >>$CONFIG_STATUS <<_ACEOF
25079 # Files that config.status was made for.
25080 config_files="$ac_config_files"
25081 config_headers="$ac_config_headers"
25083 _ACEOF
25085 cat >>$CONFIG_STATUS <<\_ACEOF
25086 ac_cs_usage="\
25087 \`$as_me' instantiates files from templates according to the
25088 current configuration.
25090 Usage: $0 [OPTIONS] [FILE]...
25092 -h, --help print this help, then exit
25093 -V, --version print version number and configuration settings, then exit
25094 -q, --quiet do not print progress messages
25095 -d, --debug don't remove temporary files
25096 --recheck update $as_me by reconfiguring in the same conditions
25097 --file=FILE[:TEMPLATE]
25098 instantiate the configuration file FILE
25099 --header=FILE[:TEMPLATE]
25100 instantiate the configuration header FILE
25102 Configuration files:
25103 $config_files
25105 Configuration headers:
25106 $config_headers
25108 Report bugs to <bug-autoconf@gnu.org>."
25110 _ACEOF
25111 cat >>$CONFIG_STATUS <<_ACEOF
25112 ac_cs_version="\\
25113 python config.status 2.6
25114 configured by $0, generated by GNU Autoconf 2.61,
25115 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
25117 Copyright (C) 2006 Free Software Foundation, Inc.
25118 This config.status script is free software; the Free Software Foundation
25119 gives unlimited permission to copy, distribute and modify it."
25121 ac_pwd='$ac_pwd'
25122 srcdir='$srcdir'
25123 INSTALL='$INSTALL'
25124 _ACEOF
25126 cat >>$CONFIG_STATUS <<\_ACEOF
25127 # If no file are specified by the user, then we need to provide default
25128 # value. By we need to know if files were specified by the user.
25129 ac_need_defaults=:
25130 while test $# != 0
25132 case $1 in
25133 --*=*)
25134 ac_option=`expr "X$1" : 'X\([^=]*\)='`
25135 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
25136 ac_shift=:
25139 ac_option=$1
25140 ac_optarg=$2
25141 ac_shift=shift
25143 esac
25145 case $ac_option in
25146 # Handling of the options.
25147 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
25148 ac_cs_recheck=: ;;
25149 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
25150 echo "$ac_cs_version"; exit ;;
25151 --debug | --debu | --deb | --de | --d | -d )
25152 debug=: ;;
25153 --file | --fil | --fi | --f )
25154 $ac_shift
25155 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
25156 ac_need_defaults=false;;
25157 --header | --heade | --head | --hea )
25158 $ac_shift
25159 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
25160 ac_need_defaults=false;;
25161 --he | --h)
25162 # Conflict between --help and --header
25163 { echo "$as_me: error: ambiguous option: $1
25164 Try \`$0 --help' for more information." >&2
25165 { (exit 1); exit 1; }; };;
25166 --help | --hel | -h )
25167 echo "$ac_cs_usage"; exit ;;
25168 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
25169 | -silent | --silent | --silen | --sile | --sil | --si | --s)
25170 ac_cs_silent=: ;;
25172 # This is an error.
25173 -*) { echo "$as_me: error: unrecognized option: $1
25174 Try \`$0 --help' for more information." >&2
25175 { (exit 1); exit 1; }; } ;;
25177 *) ac_config_targets="$ac_config_targets $1"
25178 ac_need_defaults=false ;;
25180 esac
25181 shift
25182 done
25184 ac_configure_extra_args=
25186 if $ac_cs_silent; then
25187 exec 6>/dev/null
25188 ac_configure_extra_args="$ac_configure_extra_args --silent"
25191 _ACEOF
25192 cat >>$CONFIG_STATUS <<_ACEOF
25193 if \$ac_cs_recheck; then
25194 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
25195 CONFIG_SHELL=$SHELL
25196 export CONFIG_SHELL
25197 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
25200 _ACEOF
25201 cat >>$CONFIG_STATUS <<\_ACEOF
25202 exec 5>>config.log
25204 echo
25205 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
25206 ## Running $as_me. ##
25207 _ASBOX
25208 echo "$ac_log"
25209 } >&5
25211 _ACEOF
25212 cat >>$CONFIG_STATUS <<_ACEOF
25213 _ACEOF
25215 cat >>$CONFIG_STATUS <<\_ACEOF
25217 # Handling of arguments.
25218 for ac_config_target in $ac_config_targets
25220 case $ac_config_target in
25221 "pyconfig.h") CONFIG_HEADERS="$CONFIG_HEADERS pyconfig.h" ;;
25222 "Mac/Makefile") CONFIG_FILES="$CONFIG_FILES Mac/Makefile" ;;
25223 "Mac/PythonLauncher/Makefile") CONFIG_FILES="$CONFIG_FILES Mac/PythonLauncher/Makefile" ;;
25224 "Mac/IDLE/Makefile") CONFIG_FILES="$CONFIG_FILES Mac/IDLE/Makefile" ;;
25225 "Mac/Resources/framework/Info.plist") CONFIG_FILES="$CONFIG_FILES Mac/Resources/framework/Info.plist" ;;
25226 "Mac/Resources/app/Info.plist") CONFIG_FILES="$CONFIG_FILES Mac/Resources/app/Info.plist" ;;
25227 "Makefile.pre") CONFIG_FILES="$CONFIG_FILES Makefile.pre" ;;
25228 "Modules/Setup.config") CONFIG_FILES="$CONFIG_FILES Modules/Setup.config" ;;
25230 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
25231 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
25232 { (exit 1); exit 1; }; };;
25233 esac
25234 done
25237 # If the user did not use the arguments to specify the items to instantiate,
25238 # then the envvar interface is used. Set only those that are not.
25239 # We use the long form for the default assignment because of an extremely
25240 # bizarre bug on SunOS 4.1.3.
25241 if $ac_need_defaults; then
25242 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
25243 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
25246 # Have a temporary directory for convenience. Make it in the build tree
25247 # simply because there is no reason against having it here, and in addition,
25248 # creating and moving files from /tmp can sometimes cause problems.
25249 # Hook for its removal unless debugging.
25250 # Note that there is a small window in which the directory will not be cleaned:
25251 # after its creation but before its name has been assigned to `$tmp'.
25252 $debug ||
25254 tmp=
25255 trap 'exit_status=$?
25256 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
25258 trap '{ (exit 1); exit 1; }' 1 2 13 15
25260 # Create a (secure) tmp directory for tmp files.
25263 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
25264 test -n "$tmp" && test -d "$tmp"
25265 } ||
25267 tmp=./conf$$-$RANDOM
25268 (umask 077 && mkdir "$tmp")
25269 } ||
25271 echo "$me: cannot create a temporary directory in ." >&2
25272 { (exit 1); exit 1; }
25276 # Set up the sed scripts for CONFIG_FILES section.
25279 # No need to generate the scripts if there are no CONFIG_FILES.
25280 # This happens for instance when ./config.status config.h
25281 if test -n "$CONFIG_FILES"; then
25283 _ACEOF
25287 ac_delim='%!_!# '
25288 for ac_last_try in false false false false false :; do
25289 cat >conf$$subs.sed <<_ACEOF
25290 SHELL!$SHELL$ac_delim
25291 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
25292 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
25293 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
25294 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
25295 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
25296 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
25297 exec_prefix!$exec_prefix$ac_delim
25298 prefix!$prefix$ac_delim
25299 program_transform_name!$program_transform_name$ac_delim
25300 bindir!$bindir$ac_delim
25301 sbindir!$sbindir$ac_delim
25302 libexecdir!$libexecdir$ac_delim
25303 datarootdir!$datarootdir$ac_delim
25304 datadir!$datadir$ac_delim
25305 sysconfdir!$sysconfdir$ac_delim
25306 sharedstatedir!$sharedstatedir$ac_delim
25307 localstatedir!$localstatedir$ac_delim
25308 includedir!$includedir$ac_delim
25309 oldincludedir!$oldincludedir$ac_delim
25310 docdir!$docdir$ac_delim
25311 infodir!$infodir$ac_delim
25312 htmldir!$htmldir$ac_delim
25313 dvidir!$dvidir$ac_delim
25314 pdfdir!$pdfdir$ac_delim
25315 psdir!$psdir$ac_delim
25316 libdir!$libdir$ac_delim
25317 localedir!$localedir$ac_delim
25318 mandir!$mandir$ac_delim
25319 DEFS!$DEFS$ac_delim
25320 ECHO_C!$ECHO_C$ac_delim
25321 ECHO_N!$ECHO_N$ac_delim
25322 ECHO_T!$ECHO_T$ac_delim
25323 LIBS!$LIBS$ac_delim
25324 build_alias!$build_alias$ac_delim
25325 host_alias!$host_alias$ac_delim
25326 target_alias!$target_alias$ac_delim
25327 VERSION!$VERSION$ac_delim
25328 SOVERSION!$SOVERSION$ac_delim
25329 CONFIG_ARGS!$CONFIG_ARGS$ac_delim
25330 UNIVERSALSDK!$UNIVERSALSDK$ac_delim
25331 ARCH_RUN_32BIT!$ARCH_RUN_32BIT$ac_delim
25332 PYTHONFRAMEWORK!$PYTHONFRAMEWORK$ac_delim
25333 PYTHONFRAMEWORKIDENTIFIER!$PYTHONFRAMEWORKIDENTIFIER$ac_delim
25334 PYTHONFRAMEWORKDIR!$PYTHONFRAMEWORKDIR$ac_delim
25335 PYTHONFRAMEWORKPREFIX!$PYTHONFRAMEWORKPREFIX$ac_delim
25336 PYTHONFRAMEWORKINSTALLDIR!$PYTHONFRAMEWORKINSTALLDIR$ac_delim
25337 FRAMEWORKINSTALLFIRST!$FRAMEWORKINSTALLFIRST$ac_delim
25338 FRAMEWORKINSTALLLAST!$FRAMEWORKINSTALLLAST$ac_delim
25339 FRAMEWORKALTINSTALLFIRST!$FRAMEWORKALTINSTALLFIRST$ac_delim
25340 FRAMEWORKALTINSTALLLAST!$FRAMEWORKALTINSTALLLAST$ac_delim
25341 FRAMEWORKUNIXTOOLSPREFIX!$FRAMEWORKUNIXTOOLSPREFIX$ac_delim
25342 MACHDEP!$MACHDEP$ac_delim
25343 SGI_ABI!$SGI_ABI$ac_delim
25344 EXTRAPLATDIR!$EXTRAPLATDIR$ac_delim
25345 EXTRAMACHDEPPATH!$EXTRAMACHDEPPATH$ac_delim
25346 CONFIGURE_MACOSX_DEPLOYMENT_TARGET!$CONFIGURE_MACOSX_DEPLOYMENT_TARGET$ac_delim
25347 EXPORT_MACOSX_DEPLOYMENT_TARGET!$EXPORT_MACOSX_DEPLOYMENT_TARGET$ac_delim
25348 CC!$CC$ac_delim
25349 CFLAGS!$CFLAGS$ac_delim
25350 LDFLAGS!$LDFLAGS$ac_delim
25351 CPPFLAGS!$CPPFLAGS$ac_delim
25352 ac_ct_CC!$ac_ct_CC$ac_delim
25353 EXEEXT!$EXEEXT$ac_delim
25354 OBJEXT!$OBJEXT$ac_delim
25355 CXX!$CXX$ac_delim
25356 MAINCC!$MAINCC$ac_delim
25357 CPP!$CPP$ac_delim
25358 GREP!$GREP$ac_delim
25359 EGREP!$EGREP$ac_delim
25360 BUILDEXEEXT!$BUILDEXEEXT$ac_delim
25361 LIBRARY!$LIBRARY$ac_delim
25362 LDLIBRARY!$LDLIBRARY$ac_delim
25363 DLLLIBRARY!$DLLLIBRARY$ac_delim
25364 BLDLIBRARY!$BLDLIBRARY$ac_delim
25365 LDLIBRARYDIR!$LDLIBRARYDIR$ac_delim
25366 INSTSONAME!$INSTSONAME$ac_delim
25367 RUNSHARED!$RUNSHARED$ac_delim
25368 LINKCC!$LINKCC$ac_delim
25369 RANLIB!$RANLIB$ac_delim
25370 AR!$AR$ac_delim
25371 SVNVERSION!$SVNVERSION$ac_delim
25372 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
25373 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
25374 INSTALL_DATA!$INSTALL_DATA$ac_delim
25375 LN!$LN$ac_delim
25376 OPT!$OPT$ac_delim
25377 BASECFLAGS!$BASECFLAGS$ac_delim
25378 UNIVERSAL_ARCH_FLAGS!$UNIVERSAL_ARCH_FLAGS$ac_delim
25379 OTHER_LIBTOOL_OPT!$OTHER_LIBTOOL_OPT$ac_delim
25380 LIBTOOL_CRUFT!$LIBTOOL_CRUFT$ac_delim
25381 SO!$SO$ac_delim
25382 LDSHARED!$LDSHARED$ac_delim
25383 BLDSHARED!$BLDSHARED$ac_delim
25384 CCSHARED!$CCSHARED$ac_delim
25385 LINKFORSHARED!$LINKFORSHARED$ac_delim
25386 CFLAGSFORSHARED!$CFLAGSFORSHARED$ac_delim
25387 _ACEOF
25389 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
25390 break
25391 elif $ac_last_try; then
25392 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
25393 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
25394 { (exit 1); exit 1; }; }
25395 else
25396 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
25398 done
25400 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
25401 if test -n "$ac_eof"; then
25402 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
25403 ac_eof=`expr $ac_eof + 1`
25406 cat >>$CONFIG_STATUS <<_ACEOF
25407 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
25408 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
25409 _ACEOF
25410 sed '
25411 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
25412 s/^/s,@/; s/!/@,|#_!!_#|/
25415 s/'"$ac_delim"'$/,g/; t
25416 s/$/\\/; p
25417 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
25418 ' >>$CONFIG_STATUS <conf$$subs.sed
25419 rm -f conf$$subs.sed
25420 cat >>$CONFIG_STATUS <<_ACEOF
25421 CEOF$ac_eof
25422 _ACEOF
25425 ac_delim='%!_!# '
25426 for ac_last_try in false false false false false :; do
25427 cat >conf$$subs.sed <<_ACEOF
25428 SHLIBS!$SHLIBS$ac_delim
25429 USE_SIGNAL_MODULE!$USE_SIGNAL_MODULE$ac_delim
25430 SIGNAL_OBJS!$SIGNAL_OBJS$ac_delim
25431 USE_THREAD_MODULE!$USE_THREAD_MODULE$ac_delim
25432 LDLAST!$LDLAST$ac_delim
25433 THREADOBJ!$THREADOBJ$ac_delim
25434 DLINCLDIR!$DLINCLDIR$ac_delim
25435 DYNLOADFILE!$DYNLOADFILE$ac_delim
25436 MACHDEP_OBJS!$MACHDEP_OBJS$ac_delim
25437 TRUE!$TRUE$ac_delim
25438 LIBOBJS!$LIBOBJS$ac_delim
25439 HAVE_GETHOSTBYNAME_R_6_ARG!$HAVE_GETHOSTBYNAME_R_6_ARG$ac_delim
25440 HAVE_GETHOSTBYNAME_R_5_ARG!$HAVE_GETHOSTBYNAME_R_5_ARG$ac_delim
25441 HAVE_GETHOSTBYNAME_R_3_ARG!$HAVE_GETHOSTBYNAME_R_3_ARG$ac_delim
25442 HAVE_GETHOSTBYNAME_R!$HAVE_GETHOSTBYNAME_R$ac_delim
25443 HAVE_GETHOSTBYNAME!$HAVE_GETHOSTBYNAME$ac_delim
25444 LIBM!$LIBM$ac_delim
25445 LIBC!$LIBC$ac_delim
25446 UNICODE_OBJS!$UNICODE_OBJS$ac_delim
25447 THREADHEADERS!$THREADHEADERS$ac_delim
25448 SRCDIRS!$SRCDIRS$ac_delim
25449 LTLIBOBJS!$LTLIBOBJS$ac_delim
25450 _ACEOF
25452 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 22; then
25453 break
25454 elif $ac_last_try; then
25455 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
25456 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
25457 { (exit 1); exit 1; }; }
25458 else
25459 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
25461 done
25463 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
25464 if test -n "$ac_eof"; then
25465 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
25466 ac_eof=`expr $ac_eof + 1`
25469 cat >>$CONFIG_STATUS <<_ACEOF
25470 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
25471 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
25472 _ACEOF
25473 sed '
25474 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
25475 s/^/s,@/; s/!/@,|#_!!_#|/
25478 s/'"$ac_delim"'$/,g/; t
25479 s/$/\\/; p
25480 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
25481 ' >>$CONFIG_STATUS <conf$$subs.sed
25482 rm -f conf$$subs.sed
25483 cat >>$CONFIG_STATUS <<_ACEOF
25484 :end
25485 s/|#_!!_#|//g
25486 CEOF$ac_eof
25487 _ACEOF
25490 # VPATH may cause trouble with some makes, so we remove $(srcdir),
25491 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
25492 # trailing colons and then remove the whole line if VPATH becomes empty
25493 # (actually we leave an empty line to preserve line numbers).
25494 if test "x$srcdir" = x.; then
25495 ac_vpsub='/^[ ]*VPATH[ ]*=/{
25496 s/:*\$(srcdir):*/:/
25497 s/:*\${srcdir}:*/:/
25498 s/:*@srcdir@:*/:/
25499 s/^\([^=]*=[ ]*\):*/\1/
25500 s/:*$//
25501 s/^[^=]*=[ ]*$//
25505 cat >>$CONFIG_STATUS <<\_ACEOF
25506 fi # test -n "$CONFIG_FILES"
25509 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS
25511 case $ac_tag in
25512 :[FHLC]) ac_mode=$ac_tag; continue;;
25513 esac
25514 case $ac_mode$ac_tag in
25515 :[FHL]*:*);;
25516 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
25517 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
25518 { (exit 1); exit 1; }; };;
25519 :[FH]-) ac_tag=-:-;;
25520 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
25521 esac
25522 ac_save_IFS=$IFS
25523 IFS=:
25524 set x $ac_tag
25525 IFS=$ac_save_IFS
25526 shift
25527 ac_file=$1
25528 shift
25530 case $ac_mode in
25531 :L) ac_source=$1;;
25532 :[FH])
25533 ac_file_inputs=
25534 for ac_f
25536 case $ac_f in
25537 -) ac_f="$tmp/stdin";;
25538 *) # Look for the file first in the build tree, then in the source tree
25539 # (if the path is not absolute). The absolute path cannot be DOS-style,
25540 # because $ac_f cannot contain `:'.
25541 test -f "$ac_f" ||
25542 case $ac_f in
25543 [\\/$]*) false;;
25544 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
25545 esac ||
25546 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
25547 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
25548 { (exit 1); exit 1; }; };;
25549 esac
25550 ac_file_inputs="$ac_file_inputs $ac_f"
25551 done
25553 # Let's still pretend it is `configure' which instantiates (i.e., don't
25554 # use $as_me), people would be surprised to read:
25555 # /* config.h. Generated by config.status. */
25556 configure_input="Generated from "`IFS=:
25557 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
25558 if test x"$ac_file" != x-; then
25559 configure_input="$ac_file. $configure_input"
25560 { echo "$as_me:$LINENO: creating $ac_file" >&5
25561 echo "$as_me: creating $ac_file" >&6;}
25564 case $ac_tag in
25565 *:-:* | *:-) cat >"$tmp/stdin";;
25566 esac
25568 esac
25570 ac_dir=`$as_dirname -- "$ac_file" ||
25571 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25572 X"$ac_file" : 'X\(//\)[^/]' \| \
25573 X"$ac_file" : 'X\(//\)$' \| \
25574 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
25575 echo X"$ac_file" |
25576 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25577 s//\1/
25580 /^X\(\/\/\)[^/].*/{
25581 s//\1/
25584 /^X\(\/\/\)$/{
25585 s//\1/
25588 /^X\(\/\).*/{
25589 s//\1/
25592 s/.*/./; q'`
25593 { as_dir="$ac_dir"
25594 case $as_dir in #(
25595 -*) as_dir=./$as_dir;;
25596 esac
25597 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
25598 as_dirs=
25599 while :; do
25600 case $as_dir in #(
25601 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
25602 *) as_qdir=$as_dir;;
25603 esac
25604 as_dirs="'$as_qdir' $as_dirs"
25605 as_dir=`$as_dirname -- "$as_dir" ||
25606 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25607 X"$as_dir" : 'X\(//\)[^/]' \| \
25608 X"$as_dir" : 'X\(//\)$' \| \
25609 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
25610 echo X"$as_dir" |
25611 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25612 s//\1/
25615 /^X\(\/\/\)[^/].*/{
25616 s//\1/
25619 /^X\(\/\/\)$/{
25620 s//\1/
25623 /^X\(\/\).*/{
25624 s//\1/
25627 s/.*/./; q'`
25628 test -d "$as_dir" && break
25629 done
25630 test -z "$as_dirs" || eval "mkdir $as_dirs"
25631 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
25632 echo "$as_me: error: cannot create directory $as_dir" >&2;}
25633 { (exit 1); exit 1; }; }; }
25634 ac_builddir=.
25636 case "$ac_dir" in
25637 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
25639 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
25640 # A ".." for each directory in $ac_dir_suffix.
25641 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
25642 case $ac_top_builddir_sub in
25643 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
25644 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
25645 esac ;;
25646 esac
25647 ac_abs_top_builddir=$ac_pwd
25648 ac_abs_builddir=$ac_pwd$ac_dir_suffix
25649 # for backward compatibility:
25650 ac_top_builddir=$ac_top_build_prefix
25652 case $srcdir in
25653 .) # We are building in place.
25654 ac_srcdir=.
25655 ac_top_srcdir=$ac_top_builddir_sub
25656 ac_abs_top_srcdir=$ac_pwd ;;
25657 [\\/]* | ?:[\\/]* ) # Absolute name.
25658 ac_srcdir=$srcdir$ac_dir_suffix;
25659 ac_top_srcdir=$srcdir
25660 ac_abs_top_srcdir=$srcdir ;;
25661 *) # Relative name.
25662 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
25663 ac_top_srcdir=$ac_top_build_prefix$srcdir
25664 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
25665 esac
25666 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
25669 case $ac_mode in
25672 # CONFIG_FILE
25675 case $INSTALL in
25676 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
25677 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
25678 esac
25679 _ACEOF
25681 cat >>$CONFIG_STATUS <<\_ACEOF
25682 # If the template does not know about datarootdir, expand it.
25683 # FIXME: This hack should be removed a few years after 2.60.
25684 ac_datarootdir_hack=; ac_datarootdir_seen=
25686 case `sed -n '/datarootdir/ {
25690 /@datadir@/p
25691 /@docdir@/p
25692 /@infodir@/p
25693 /@localedir@/p
25694 /@mandir@/p
25695 ' $ac_file_inputs` in
25696 *datarootdir*) ac_datarootdir_seen=yes;;
25697 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
25698 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
25699 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
25700 _ACEOF
25701 cat >>$CONFIG_STATUS <<_ACEOF
25702 ac_datarootdir_hack='
25703 s&@datadir@&$datadir&g
25704 s&@docdir@&$docdir&g
25705 s&@infodir@&$infodir&g
25706 s&@localedir@&$localedir&g
25707 s&@mandir@&$mandir&g
25708 s&\\\${datarootdir}&$datarootdir&g' ;;
25709 esac
25710 _ACEOF
25712 # Neutralize VPATH when `$srcdir' = `.'.
25713 # Shell code in configure.ac might set extrasub.
25714 # FIXME: do we really want to maintain this feature?
25715 cat >>$CONFIG_STATUS <<_ACEOF
25716 sed "$ac_vpsub
25717 $extrasub
25718 _ACEOF
25719 cat >>$CONFIG_STATUS <<\_ACEOF
25721 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
25722 s&@configure_input@&$configure_input&;t t
25723 s&@top_builddir@&$ac_top_builddir_sub&;t t
25724 s&@srcdir@&$ac_srcdir&;t t
25725 s&@abs_srcdir@&$ac_abs_srcdir&;t t
25726 s&@top_srcdir@&$ac_top_srcdir&;t t
25727 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
25728 s&@builddir@&$ac_builddir&;t t
25729 s&@abs_builddir@&$ac_abs_builddir&;t t
25730 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
25731 s&@INSTALL@&$ac_INSTALL&;t t
25732 $ac_datarootdir_hack
25733 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
25735 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
25736 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
25737 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
25738 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
25739 which seems to be undefined. Please make sure it is defined." >&5
25740 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
25741 which seems to be undefined. Please make sure it is defined." >&2;}
25743 rm -f "$tmp/stdin"
25744 case $ac_file in
25745 -) cat "$tmp/out"; rm -f "$tmp/out";;
25746 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
25747 esac
25751 # CONFIG_HEADER
25753 _ACEOF
25755 # Transform confdefs.h into a sed script `conftest.defines', that
25756 # substitutes the proper values into config.h.in to produce config.h.
25757 rm -f conftest.defines conftest.tail
25758 # First, append a space to every undef/define line, to ease matching.
25759 echo 's/$/ /' >conftest.defines
25760 # Then, protect against being on the right side of a sed subst, or in
25761 # an unquoted here document, in config.status. If some macros were
25762 # called several times there might be several #defines for the same
25763 # symbol, which is useless. But do not sort them, since the last
25764 # AC_DEFINE must be honored.
25765 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
25766 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
25767 # NAME is the cpp macro being defined, VALUE is the value it is being given.
25768 # PARAMS is the parameter list in the macro definition--in most cases, it's
25769 # just an empty string.
25770 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
25771 ac_dB='\\)[ (].*,\\1define\\2'
25772 ac_dC=' '
25773 ac_dD=' ,'
25775 uniq confdefs.h |
25776 sed -n '
25777 t rset
25778 :rset
25779 s/^[ ]*#[ ]*define[ ][ ]*//
25780 t ok
25783 s/[\\&,]/\\&/g
25784 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
25785 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
25786 ' >>conftest.defines
25788 # Remove the space that was appended to ease matching.
25789 # Then replace #undef with comments. This is necessary, for
25790 # example, in the case of _POSIX_SOURCE, which is predefined and required
25791 # on some systems where configure will not decide to define it.
25792 # (The regexp can be short, since the line contains either #define or #undef.)
25793 echo 's/ $//
25794 s,^[ #]*u.*,/* & */,' >>conftest.defines
25796 # Break up conftest.defines:
25797 ac_max_sed_lines=50
25799 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
25800 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
25801 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
25802 # et cetera.
25803 ac_in='$ac_file_inputs'
25804 ac_out='"$tmp/out1"'
25805 ac_nxt='"$tmp/out2"'
25807 while :
25809 # Write a here document:
25810 cat >>$CONFIG_STATUS <<_ACEOF
25811 # First, check the format of the line:
25812 cat >"\$tmp/defines.sed" <<\\CEOF
25813 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
25814 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
25816 :def
25817 _ACEOF
25818 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
25819 echo 'CEOF
25820 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
25821 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
25822 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
25823 grep . conftest.tail >/dev/null || break
25824 rm -f conftest.defines
25825 mv conftest.tail conftest.defines
25826 done
25827 rm -f conftest.defines conftest.tail
25829 echo "ac_result=$ac_in" >>$CONFIG_STATUS
25830 cat >>$CONFIG_STATUS <<\_ACEOF
25831 if test x"$ac_file" != x-; then
25832 echo "/* $configure_input */" >"$tmp/config.h"
25833 cat "$ac_result" >>"$tmp/config.h"
25834 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
25835 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
25836 echo "$as_me: $ac_file is unchanged" >&6;}
25837 else
25838 rm -f $ac_file
25839 mv "$tmp/config.h" $ac_file
25841 else
25842 echo "/* $configure_input */"
25843 cat "$ac_result"
25845 rm -f "$tmp/out12"
25849 esac
25851 done # for ac_tag
25854 { (exit 0); exit 0; }
25855 _ACEOF
25856 chmod +x $CONFIG_STATUS
25857 ac_clean_files=$ac_clean_files_save
25860 # configure is writing to config.log, and then calls config.status.
25861 # config.status does its own redirection, appending to config.log.
25862 # Unfortunately, on DOS this fails, as config.log is still kept open
25863 # by configure, so config.status won't be able to write to it; its
25864 # output is simply discarded. So we exec the FD to /dev/null,
25865 # effectively closing config.log, so it can be properly (re)opened and
25866 # appended to by config.status. When coming back to configure, we
25867 # need to make the FD available again.
25868 if test "$no_create" != yes; then
25869 ac_cs_success=:
25870 ac_config_status_args=
25871 test "$silent" = yes &&
25872 ac_config_status_args="$ac_config_status_args --quiet"
25873 exec 5>/dev/null
25874 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
25875 exec 5>>config.log
25876 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
25877 # would make configure fail if this is the last instruction.
25878 $ac_cs_success || { (exit 1); exit 1; }
25882 echo "creating Modules/Setup"
25883 if test ! -f Modules/Setup
25884 then
25885 cp $srcdir/Modules/Setup.dist Modules/Setup
25888 echo "creating Modules/Setup.local"
25889 if test ! -f Modules/Setup.local
25890 then
25891 echo "# Edit this file for local setup changes" >Modules/Setup.local
25894 echo "creating Makefile"
25895 $SHELL $srcdir/Modules/makesetup -c $srcdir/Modules/config.c.in \
25896 -s Modules Modules/Setup.config \
25897 Modules/Setup.local Modules/Setup
25899 case $ac_sys_system in
25900 BeOS)
25901 { echo "$as_me:$LINENO: WARNING:
25903 Support for BeOS is deprecated as of Python 2.6.
25904 See PEP 11 for the gory details.
25905 " >&5
25906 echo "$as_me: WARNING:
25908 Support for BeOS is deprecated as of Python 2.6.
25909 See PEP 11 for the gory details.
25910 " >&2;}
25912 *) ;;
25913 esac
25915 mv config.c Modules