Merged revisions 71627 via svnmerge from
[python/dscho.git] / configure
blobf5d7352bed055fa5dd8425afbbbd8b8eea9d0d04
1 #! /bin/sh
2 # From configure.in Revision: 71261 .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.61 for python 3.1.
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='3.1'
579 PACKAGE_STRING='python 3.1'
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 CONFIGURE_MACOSX_DEPLOYMENT_TARGET
674 EXPORT_MACOSX_DEPLOYMENT_TARGET
676 CFLAGS
677 LDFLAGS
678 CPPFLAGS
679 ac_ct_CC
680 EXEEXT
681 OBJEXT
683 MAINCC
685 GREP
686 EGREP
687 BUILDEXEEXT
688 LIBRARY
689 LDLIBRARY
690 DLLLIBRARY
691 BLDLIBRARY
692 LDLIBRARYDIR
693 INSTSONAME
694 RUNSHARED
695 LINKCC
696 RANLIB
698 SVNVERSION
699 INSTALL_PROGRAM
700 INSTALL_SCRIPT
701 INSTALL_DATA
704 BASECFLAGS
705 UNIVERSAL_ARCH_FLAGS
706 OTHER_LIBTOOL_OPT
707 LIBTOOL_CRUFT
709 LDSHARED
710 BLDSHARED
711 CCSHARED
712 LINKFORSHARED
713 CFLAGSFORSHARED
714 SHLIBS
715 USE_SIGNAL_MODULE
716 SIGNAL_OBJS
717 USE_THREAD_MODULE
718 LDLAST
719 THREADOBJ
720 DLINCLDIR
721 DYNLOADFILE
722 MACHDEP_OBJS
723 TRUE
724 LIBOBJS
725 HAVE_GETHOSTBYNAME_R_6_ARG
726 HAVE_GETHOSTBYNAME_R_5_ARG
727 HAVE_GETHOSTBYNAME_R_3_ARG
728 HAVE_GETHOSTBYNAME_R
729 HAVE_GETHOSTBYNAME
730 LIBM
731 LIBC
732 THREADHEADERS
733 SRCDIRS
734 LTLIBOBJS'
735 ac_subst_files=''
736 ac_precious_vars='build_alias
737 host_alias
738 target_alias
740 CFLAGS
741 LDFLAGS
742 LIBS
743 CPPFLAGS
744 CPP'
747 # Initialize some variables set by options.
748 ac_init_help=
749 ac_init_version=false
750 # The variables have the same names as the options, with
751 # dashes changed to underlines.
752 cache_file=/dev/null
753 exec_prefix=NONE
754 no_create=
755 no_recursion=
756 prefix=NONE
757 program_prefix=NONE
758 program_suffix=NONE
759 program_transform_name=s,x,x,
760 silent=
761 site=
762 srcdir=
763 verbose=
764 x_includes=NONE
765 x_libraries=NONE
767 # Installation directory options.
768 # These are left unexpanded so users can "make install exec_prefix=/foo"
769 # and all the variables that are supposed to be based on exec_prefix
770 # by default will actually change.
771 # Use braces instead of parens because sh, perl, etc. also accept them.
772 # (The list follows the same order as the GNU Coding Standards.)
773 bindir='${exec_prefix}/bin'
774 sbindir='${exec_prefix}/sbin'
775 libexecdir='${exec_prefix}/libexec'
776 datarootdir='${prefix}/share'
777 datadir='${datarootdir}'
778 sysconfdir='${prefix}/etc'
779 sharedstatedir='${prefix}/com'
780 localstatedir='${prefix}/var'
781 includedir='${prefix}/include'
782 oldincludedir='/usr/include'
783 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
784 infodir='${datarootdir}/info'
785 htmldir='${docdir}'
786 dvidir='${docdir}'
787 pdfdir='${docdir}'
788 psdir='${docdir}'
789 libdir='${exec_prefix}/lib'
790 localedir='${datarootdir}/locale'
791 mandir='${datarootdir}/man'
793 ac_prev=
794 ac_dashdash=
795 for ac_option
797 # If the previous option needs an argument, assign it.
798 if test -n "$ac_prev"; then
799 eval $ac_prev=\$ac_option
800 ac_prev=
801 continue
804 case $ac_option in
805 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
806 *) ac_optarg=yes ;;
807 esac
809 # Accept the important Cygnus configure options, so we can diagnose typos.
811 case $ac_dashdash$ac_option in
813 ac_dashdash=yes ;;
815 -bindir | --bindir | --bindi | --bind | --bin | --bi)
816 ac_prev=bindir ;;
817 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
818 bindir=$ac_optarg ;;
820 -build | --build | --buil | --bui | --bu)
821 ac_prev=build_alias ;;
822 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
823 build_alias=$ac_optarg ;;
825 -cache-file | --cache-file | --cache-fil | --cache-fi \
826 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
827 ac_prev=cache_file ;;
828 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
829 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
830 cache_file=$ac_optarg ;;
832 --config-cache | -C)
833 cache_file=config.cache ;;
835 -datadir | --datadir | --datadi | --datad)
836 ac_prev=datadir ;;
837 -datadir=* | --datadir=* | --datadi=* | --datad=*)
838 datadir=$ac_optarg ;;
840 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
841 | --dataroo | --dataro | --datar)
842 ac_prev=datarootdir ;;
843 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
844 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
845 datarootdir=$ac_optarg ;;
847 -disable-* | --disable-*)
848 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
849 # Reject names that are not valid shell variable names.
850 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
851 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
852 { (exit 1); exit 1; }; }
853 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
854 eval enable_$ac_feature=no ;;
856 -docdir | --docdir | --docdi | --doc | --do)
857 ac_prev=docdir ;;
858 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
859 docdir=$ac_optarg ;;
861 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
862 ac_prev=dvidir ;;
863 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
864 dvidir=$ac_optarg ;;
866 -enable-* | --enable-*)
867 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
868 # Reject names that are not valid shell variable names.
869 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
870 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
871 { (exit 1); exit 1; }; }
872 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
873 eval enable_$ac_feature=\$ac_optarg ;;
875 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
876 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
877 | --exec | --exe | --ex)
878 ac_prev=exec_prefix ;;
879 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
880 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
881 | --exec=* | --exe=* | --ex=*)
882 exec_prefix=$ac_optarg ;;
884 -gas | --gas | --ga | --g)
885 # Obsolete; use --with-gas.
886 with_gas=yes ;;
888 -help | --help | --hel | --he | -h)
889 ac_init_help=long ;;
890 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
891 ac_init_help=recursive ;;
892 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
893 ac_init_help=short ;;
895 -host | --host | --hos | --ho)
896 ac_prev=host_alias ;;
897 -host=* | --host=* | --hos=* | --ho=*)
898 host_alias=$ac_optarg ;;
900 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
901 ac_prev=htmldir ;;
902 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
903 | --ht=*)
904 htmldir=$ac_optarg ;;
906 -includedir | --includedir | --includedi | --included | --include \
907 | --includ | --inclu | --incl | --inc)
908 ac_prev=includedir ;;
909 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
910 | --includ=* | --inclu=* | --incl=* | --inc=*)
911 includedir=$ac_optarg ;;
913 -infodir | --infodir | --infodi | --infod | --info | --inf)
914 ac_prev=infodir ;;
915 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
916 infodir=$ac_optarg ;;
918 -libdir | --libdir | --libdi | --libd)
919 ac_prev=libdir ;;
920 -libdir=* | --libdir=* | --libdi=* | --libd=*)
921 libdir=$ac_optarg ;;
923 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
924 | --libexe | --libex | --libe)
925 ac_prev=libexecdir ;;
926 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
927 | --libexe=* | --libex=* | --libe=*)
928 libexecdir=$ac_optarg ;;
930 -localedir | --localedir | --localedi | --localed | --locale)
931 ac_prev=localedir ;;
932 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
933 localedir=$ac_optarg ;;
935 -localstatedir | --localstatedir | --localstatedi | --localstated \
936 | --localstate | --localstat | --localsta | --localst | --locals)
937 ac_prev=localstatedir ;;
938 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
939 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
940 localstatedir=$ac_optarg ;;
942 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
943 ac_prev=mandir ;;
944 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
945 mandir=$ac_optarg ;;
947 -nfp | --nfp | --nf)
948 # Obsolete; use --without-fp.
949 with_fp=no ;;
951 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
952 | --no-cr | --no-c | -n)
953 no_create=yes ;;
955 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
956 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
957 no_recursion=yes ;;
959 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
960 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
961 | --oldin | --oldi | --old | --ol | --o)
962 ac_prev=oldincludedir ;;
963 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
964 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
965 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
966 oldincludedir=$ac_optarg ;;
968 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
969 ac_prev=prefix ;;
970 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
971 prefix=$ac_optarg ;;
973 -program-prefix | --program-prefix | --program-prefi | --program-pref \
974 | --program-pre | --program-pr | --program-p)
975 ac_prev=program_prefix ;;
976 -program-prefix=* | --program-prefix=* | --program-prefi=* \
977 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
978 program_prefix=$ac_optarg ;;
980 -program-suffix | --program-suffix | --program-suffi | --program-suff \
981 | --program-suf | --program-su | --program-s)
982 ac_prev=program_suffix ;;
983 -program-suffix=* | --program-suffix=* | --program-suffi=* \
984 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
985 program_suffix=$ac_optarg ;;
987 -program-transform-name | --program-transform-name \
988 | --program-transform-nam | --program-transform-na \
989 | --program-transform-n | --program-transform- \
990 | --program-transform | --program-transfor \
991 | --program-transfo | --program-transf \
992 | --program-trans | --program-tran \
993 | --progr-tra | --program-tr | --program-t)
994 ac_prev=program_transform_name ;;
995 -program-transform-name=* | --program-transform-name=* \
996 | --program-transform-nam=* | --program-transform-na=* \
997 | --program-transform-n=* | --program-transform-=* \
998 | --program-transform=* | --program-transfor=* \
999 | --program-transfo=* | --program-transf=* \
1000 | --program-trans=* | --program-tran=* \
1001 | --progr-tra=* | --program-tr=* | --program-t=*)
1002 program_transform_name=$ac_optarg ;;
1004 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1005 ac_prev=pdfdir ;;
1006 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1007 pdfdir=$ac_optarg ;;
1009 -psdir | --psdir | --psdi | --psd | --ps)
1010 ac_prev=psdir ;;
1011 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1012 psdir=$ac_optarg ;;
1014 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1015 | -silent | --silent | --silen | --sile | --sil)
1016 silent=yes ;;
1018 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1019 ac_prev=sbindir ;;
1020 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1021 | --sbi=* | --sb=*)
1022 sbindir=$ac_optarg ;;
1024 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1025 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1026 | --sharedst | --shareds | --shared | --share | --shar \
1027 | --sha | --sh)
1028 ac_prev=sharedstatedir ;;
1029 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1030 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1031 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1032 | --sha=* | --sh=*)
1033 sharedstatedir=$ac_optarg ;;
1035 -site | --site | --sit)
1036 ac_prev=site ;;
1037 -site=* | --site=* | --sit=*)
1038 site=$ac_optarg ;;
1040 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1041 ac_prev=srcdir ;;
1042 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1043 srcdir=$ac_optarg ;;
1045 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1046 | --syscon | --sysco | --sysc | --sys | --sy)
1047 ac_prev=sysconfdir ;;
1048 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1049 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1050 sysconfdir=$ac_optarg ;;
1052 -target | --target | --targe | --targ | --tar | --ta | --t)
1053 ac_prev=target_alias ;;
1054 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1055 target_alias=$ac_optarg ;;
1057 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1058 verbose=yes ;;
1060 -version | --version | --versio | --versi | --vers | -V)
1061 ac_init_version=: ;;
1063 -with-* | --with-*)
1064 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1065 # Reject names that are not valid shell variable names.
1066 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1067 { echo "$as_me: error: invalid package name: $ac_package" >&2
1068 { (exit 1); exit 1; }; }
1069 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1070 eval with_$ac_package=\$ac_optarg ;;
1072 -without-* | --without-*)
1073 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1074 # Reject names that are not valid shell variable names.
1075 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1076 { echo "$as_me: error: invalid package name: $ac_package" >&2
1077 { (exit 1); exit 1; }; }
1078 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1079 eval with_$ac_package=no ;;
1081 --x)
1082 # Obsolete; use --with-x.
1083 with_x=yes ;;
1085 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1086 | --x-incl | --x-inc | --x-in | --x-i)
1087 ac_prev=x_includes ;;
1088 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1089 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1090 x_includes=$ac_optarg ;;
1092 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1093 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1094 ac_prev=x_libraries ;;
1095 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1096 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1097 x_libraries=$ac_optarg ;;
1099 -*) { echo "$as_me: error: unrecognized option: $ac_option
1100 Try \`$0 --help' for more information." >&2
1101 { (exit 1); exit 1; }; }
1104 *=*)
1105 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1106 # Reject names that are not valid shell variable names.
1107 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1108 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1109 { (exit 1); exit 1; }; }
1110 eval $ac_envvar=\$ac_optarg
1111 export $ac_envvar ;;
1114 # FIXME: should be removed in autoconf 3.0.
1115 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1116 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1117 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1118 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1121 esac
1122 done
1124 if test -n "$ac_prev"; then
1125 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1126 { echo "$as_me: error: missing argument to $ac_option" >&2
1127 { (exit 1); exit 1; }; }
1130 # Be sure to have absolute directory names.
1131 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1132 datadir sysconfdir sharedstatedir localstatedir includedir \
1133 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1134 libdir localedir mandir
1136 eval ac_val=\$$ac_var
1137 case $ac_val in
1138 [\\/$]* | ?:[\\/]* ) continue;;
1139 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1140 esac
1141 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1142 { (exit 1); exit 1; }; }
1143 done
1145 # There might be people who depend on the old broken behavior: `$host'
1146 # used to hold the argument of --host etc.
1147 # FIXME: To remove some day.
1148 build=$build_alias
1149 host=$host_alias
1150 target=$target_alias
1152 # FIXME: To remove some day.
1153 if test "x$host_alias" != x; then
1154 if test "x$build_alias" = x; then
1155 cross_compiling=maybe
1156 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1157 If a cross compiler is detected then cross compile mode will be used." >&2
1158 elif test "x$build_alias" != "x$host_alias"; then
1159 cross_compiling=yes
1163 ac_tool_prefix=
1164 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1166 test "$silent" = yes && exec 6>/dev/null
1169 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1170 ac_ls_di=`ls -di .` &&
1171 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1172 { echo "$as_me: error: Working directory cannot be determined" >&2
1173 { (exit 1); exit 1; }; }
1174 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1175 { echo "$as_me: error: pwd does not report name of working directory" >&2
1176 { (exit 1); exit 1; }; }
1179 # Find the source files, if location was not specified.
1180 if test -z "$srcdir"; then
1181 ac_srcdir_defaulted=yes
1182 # Try the directory containing this script, then the parent directory.
1183 ac_confdir=`$as_dirname -- "$0" ||
1184 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1185 X"$0" : 'X\(//\)[^/]' \| \
1186 X"$0" : 'X\(//\)$' \| \
1187 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1188 echo X"$0" |
1189 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1190 s//\1/
1193 /^X\(\/\/\)[^/].*/{
1194 s//\1/
1197 /^X\(\/\/\)$/{
1198 s//\1/
1201 /^X\(\/\).*/{
1202 s//\1/
1205 s/.*/./; q'`
1206 srcdir=$ac_confdir
1207 if test ! -r "$srcdir/$ac_unique_file"; then
1208 srcdir=..
1210 else
1211 ac_srcdir_defaulted=no
1213 if test ! -r "$srcdir/$ac_unique_file"; then
1214 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1215 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1216 { (exit 1); exit 1; }; }
1218 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1219 ac_abs_confdir=`(
1220 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1221 { (exit 1); exit 1; }; }
1222 pwd)`
1223 # When building in place, set srcdir=.
1224 if test "$ac_abs_confdir" = "$ac_pwd"; then
1225 srcdir=.
1227 # Remove unnecessary trailing slashes from srcdir.
1228 # Double slashes in file names in object file debugging info
1229 # mess up M-x gdb in Emacs.
1230 case $srcdir in
1231 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1232 esac
1233 for ac_var in $ac_precious_vars; do
1234 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1235 eval ac_env_${ac_var}_value=\$${ac_var}
1236 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1237 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1238 done
1241 # Report the --help message.
1243 if test "$ac_init_help" = "long"; then
1244 # Omit some internal or obsolete options to make the list less imposing.
1245 # This message is too long to be a string in the A/UX 3.1 sh.
1246 cat <<_ACEOF
1247 \`configure' configures python 3.1 to adapt to many kinds of systems.
1249 Usage: $0 [OPTION]... [VAR=VALUE]...
1251 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1252 VAR=VALUE. See below for descriptions of some of the useful variables.
1254 Defaults for the options are specified in brackets.
1256 Configuration:
1257 -h, --help display this help and exit
1258 --help=short display options specific to this package
1259 --help=recursive display the short help of all the included packages
1260 -V, --version display version information and exit
1261 -q, --quiet, --silent do not print \`checking...' messages
1262 --cache-file=FILE cache test results in FILE [disabled]
1263 -C, --config-cache alias for \`--cache-file=config.cache'
1264 -n, --no-create do not create output files
1265 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1267 Installation directories:
1268 --prefix=PREFIX install architecture-independent files in PREFIX
1269 [$ac_default_prefix]
1270 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1271 [PREFIX]
1273 By default, \`make install' will install all the files in
1274 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1275 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1276 for instance \`--prefix=\$HOME'.
1278 For better control, use the options below.
1280 Fine tuning of the installation directories:
1281 --bindir=DIR user executables [EPREFIX/bin]
1282 --sbindir=DIR system admin executables [EPREFIX/sbin]
1283 --libexecdir=DIR program executables [EPREFIX/libexec]
1284 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1285 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1286 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1287 --libdir=DIR object code libraries [EPREFIX/lib]
1288 --includedir=DIR C header files [PREFIX/include]
1289 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1290 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1291 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1292 --infodir=DIR info documentation [DATAROOTDIR/info]
1293 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1294 --mandir=DIR man documentation [DATAROOTDIR/man]
1295 --docdir=DIR documentation root [DATAROOTDIR/doc/python]
1296 --htmldir=DIR html documentation [DOCDIR]
1297 --dvidir=DIR dvi documentation [DOCDIR]
1298 --pdfdir=DIR pdf documentation [DOCDIR]
1299 --psdir=DIR ps documentation [DOCDIR]
1300 _ACEOF
1302 cat <<\_ACEOF
1303 _ACEOF
1306 if test -n "$ac_init_help"; then
1307 case $ac_init_help in
1308 short | recursive ) echo "Configuration of python 3.1:";;
1309 esac
1310 cat <<\_ACEOF
1312 Optional Features:
1313 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1314 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1315 --enable-universalsdk[=SDKDIR]
1316 Build against Mac OS X 10.4u SDK (ppc/i386)
1317 --enable-framework[=INSTALLDIR]
1318 Build (MacOSX|Darwin) framework
1319 --enable-shared disable/enable building shared python library
1320 --enable-profiling enable C-level code profiling
1321 --enable-ipv6 Enable ipv6 (with ipv4) support
1322 --disable-ipv6 Disable ipv6 support
1323 --enable-big-digits[=BITS]
1324 use big digits for Python longs [BITS=30]
1326 Optional Packages:
1327 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1328 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1329 --with-universal-archs=ARCH
1330 select architectures for universal build ("32-bit",
1331 "64-bit" or "all")
1332 --with-framework-name=FRAMEWORK
1333 specify an alternate name of the framework built
1334 with --enable-framework
1335 --without-gcc never use gcc
1336 --with-cxx-main=<compiler>
1337 compile main() and link python executable with C++
1338 compiler
1339 --with-suffix=.exe set executable suffix
1340 --with-pydebug build with Py_DEBUG defined
1341 --with-libs='lib1 ...' link against additional libs
1342 --with-system-ffi build _ctypes module using an installed ffi library
1343 --with-signal-module disable/enable signal module
1344 --with-dec-threads use DEC Alpha/OSF1 thread-safe libraries
1345 --with(out)-threads[=DIRECTORY]
1346 disable/enable thread support
1347 --with(out)-thread[=DIRECTORY]
1348 deprecated; use --with(out)-threads
1349 --with-pth use GNU pth threading libraries
1350 --with(out)-doc-strings disable/enable documentation strings
1351 --with(out)-tsc enable/disable timestamp counter profile
1352 --with(out)-pymalloc disable/enable specialized mallocs
1353 --with-wctype-functions use wctype.h functions
1354 --with-fpectl enable SIGFPE catching
1355 --with-libm=STRING math library
1356 --with-libc=STRING C library
1357 --with-wide-unicode Use 4-byte Unicode characters (default is 2 bytes)
1358 --with-computed-gotos Use computed gotos / threaded dispatch in evaluation
1359 loop (not available on all compilers)
1361 Some influential environment variables:
1362 CC C compiler command
1363 CFLAGS C compiler flags
1364 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1365 nonstandard directory <lib dir>
1366 LIBS libraries to pass to the linker, e.g. -l<library>
1367 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1368 you have headers in a nonstandard directory <include dir>
1369 CPP C preprocessor
1371 Use these variables to override the choices made by `configure' or to help
1372 it to find libraries and programs with nonstandard names/locations.
1374 Report bugs to <http://www.python.org/python-bugs>.
1375 _ACEOF
1376 ac_status=$?
1379 if test "$ac_init_help" = "recursive"; then
1380 # If there are subdirs, report their specific --help.
1381 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1382 test -d "$ac_dir" || continue
1383 ac_builddir=.
1385 case "$ac_dir" in
1386 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1388 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1389 # A ".." for each directory in $ac_dir_suffix.
1390 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1391 case $ac_top_builddir_sub in
1392 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1393 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1394 esac ;;
1395 esac
1396 ac_abs_top_builddir=$ac_pwd
1397 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1398 # for backward compatibility:
1399 ac_top_builddir=$ac_top_build_prefix
1401 case $srcdir in
1402 .) # We are building in place.
1403 ac_srcdir=.
1404 ac_top_srcdir=$ac_top_builddir_sub
1405 ac_abs_top_srcdir=$ac_pwd ;;
1406 [\\/]* | ?:[\\/]* ) # Absolute name.
1407 ac_srcdir=$srcdir$ac_dir_suffix;
1408 ac_top_srcdir=$srcdir
1409 ac_abs_top_srcdir=$srcdir ;;
1410 *) # Relative name.
1411 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1412 ac_top_srcdir=$ac_top_build_prefix$srcdir
1413 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1414 esac
1415 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1417 cd "$ac_dir" || { ac_status=$?; continue; }
1418 # Check for guested configure.
1419 if test -f "$ac_srcdir/configure.gnu"; then
1420 echo &&
1421 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1422 elif test -f "$ac_srcdir/configure"; then
1423 echo &&
1424 $SHELL "$ac_srcdir/configure" --help=recursive
1425 else
1426 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1427 fi || ac_status=$?
1428 cd "$ac_pwd" || { ac_status=$?; break; }
1429 done
1432 test -n "$ac_init_help" && exit $ac_status
1433 if $ac_init_version; then
1434 cat <<\_ACEOF
1435 python configure 3.1
1436 generated by GNU Autoconf 2.61
1438 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1439 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1440 This configure script is free software; the Free Software Foundation
1441 gives unlimited permission to copy, distribute and modify it.
1442 _ACEOF
1443 exit
1445 cat >config.log <<_ACEOF
1446 This file contains any messages produced by compilers while
1447 running configure, to aid debugging if configure makes a mistake.
1449 It was created by python $as_me 3.1, which was
1450 generated by GNU Autoconf 2.61. Invocation command line was
1452 $ $0 $@
1454 _ACEOF
1455 exec 5>>config.log
1457 cat <<_ASUNAME
1458 ## --------- ##
1459 ## Platform. ##
1460 ## --------- ##
1462 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1463 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1464 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1465 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1466 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1468 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1469 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1471 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1472 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1473 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1474 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1475 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1476 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1477 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1479 _ASUNAME
1481 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1482 for as_dir in $PATH
1484 IFS=$as_save_IFS
1485 test -z "$as_dir" && as_dir=.
1486 echo "PATH: $as_dir"
1487 done
1488 IFS=$as_save_IFS
1490 } >&5
1492 cat >&5 <<_ACEOF
1495 ## ----------- ##
1496 ## Core tests. ##
1497 ## ----------- ##
1499 _ACEOF
1502 # Keep a trace of the command line.
1503 # Strip out --no-create and --no-recursion so they do not pile up.
1504 # Strip out --silent because we don't want to record it for future runs.
1505 # Also quote any args containing shell meta-characters.
1506 # Make two passes to allow for proper duplicate-argument suppression.
1507 ac_configure_args=
1508 ac_configure_args0=
1509 ac_configure_args1=
1510 ac_must_keep_next=false
1511 for ac_pass in 1 2
1513 for ac_arg
1515 case $ac_arg in
1516 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1517 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1518 | -silent | --silent | --silen | --sile | --sil)
1519 continue ;;
1520 *\'*)
1521 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1522 esac
1523 case $ac_pass in
1524 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1526 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1527 if test $ac_must_keep_next = true; then
1528 ac_must_keep_next=false # Got value, back to normal.
1529 else
1530 case $ac_arg in
1531 *=* | --config-cache | -C | -disable-* | --disable-* \
1532 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1533 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1534 | -with-* | --with-* | -without-* | --without-* | --x)
1535 case "$ac_configure_args0 " in
1536 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1537 esac
1539 -* ) ac_must_keep_next=true ;;
1540 esac
1542 ac_configure_args="$ac_configure_args '$ac_arg'"
1544 esac
1545 done
1546 done
1547 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1548 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1550 # When interrupted or exit'd, cleanup temporary files, and complete
1551 # config.log. We remove comments because anyway the quotes in there
1552 # would cause problems or look ugly.
1553 # WARNING: Use '\'' to represent an apostrophe within the trap.
1554 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1555 trap 'exit_status=$?
1556 # Save into config.log some information that might help in debugging.
1558 echo
1560 cat <<\_ASBOX
1561 ## ---------------- ##
1562 ## Cache variables. ##
1563 ## ---------------- ##
1564 _ASBOX
1565 echo
1566 # The following way of writing the cache mishandles newlines in values,
1568 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1569 eval ac_val=\$$ac_var
1570 case $ac_val in #(
1571 *${as_nl}*)
1572 case $ac_var in #(
1573 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1574 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1575 esac
1576 case $ac_var in #(
1577 _ | IFS | as_nl) ;; #(
1578 *) $as_unset $ac_var ;;
1579 esac ;;
1580 esac
1581 done
1582 (set) 2>&1 |
1583 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1584 *${as_nl}ac_space=\ *)
1585 sed -n \
1586 "s/'\''/'\''\\\\'\'''\''/g;
1587 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1588 ;; #(
1590 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1592 esac |
1593 sort
1595 echo
1597 cat <<\_ASBOX
1598 ## ----------------- ##
1599 ## Output variables. ##
1600 ## ----------------- ##
1601 _ASBOX
1602 echo
1603 for ac_var in $ac_subst_vars
1605 eval ac_val=\$$ac_var
1606 case $ac_val in
1607 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1608 esac
1609 echo "$ac_var='\''$ac_val'\''"
1610 done | sort
1611 echo
1613 if test -n "$ac_subst_files"; then
1614 cat <<\_ASBOX
1615 ## ------------------- ##
1616 ## File substitutions. ##
1617 ## ------------------- ##
1618 _ASBOX
1619 echo
1620 for ac_var in $ac_subst_files
1622 eval ac_val=\$$ac_var
1623 case $ac_val in
1624 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1625 esac
1626 echo "$ac_var='\''$ac_val'\''"
1627 done | sort
1628 echo
1631 if test -s confdefs.h; then
1632 cat <<\_ASBOX
1633 ## ----------- ##
1634 ## confdefs.h. ##
1635 ## ----------- ##
1636 _ASBOX
1637 echo
1638 cat confdefs.h
1639 echo
1641 test "$ac_signal" != 0 &&
1642 echo "$as_me: caught signal $ac_signal"
1643 echo "$as_me: exit $exit_status"
1644 } >&5
1645 rm -f core *.core core.conftest.* &&
1646 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1647 exit $exit_status
1649 for ac_signal in 1 2 13 15; do
1650 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1651 done
1652 ac_signal=0
1654 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1655 rm -f -r conftest* confdefs.h
1657 # Predefined preprocessor variables.
1659 cat >>confdefs.h <<_ACEOF
1660 #define PACKAGE_NAME "$PACKAGE_NAME"
1661 _ACEOF
1664 cat >>confdefs.h <<_ACEOF
1665 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1666 _ACEOF
1669 cat >>confdefs.h <<_ACEOF
1670 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1671 _ACEOF
1674 cat >>confdefs.h <<_ACEOF
1675 #define PACKAGE_STRING "$PACKAGE_STRING"
1676 _ACEOF
1679 cat >>confdefs.h <<_ACEOF
1680 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1681 _ACEOF
1684 # Let the site file select an alternate cache file if it wants to.
1685 # Prefer explicitly selected file to automatically selected ones.
1686 if test -n "$CONFIG_SITE"; then
1687 set x "$CONFIG_SITE"
1688 elif test "x$prefix" != xNONE; then
1689 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1690 else
1691 set x "$ac_default_prefix/share/config.site" \
1692 "$ac_default_prefix/etc/config.site"
1694 shift
1695 for ac_site_file
1697 if test -r "$ac_site_file"; then
1698 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1699 echo "$as_me: loading site script $ac_site_file" >&6;}
1700 sed 's/^/| /' "$ac_site_file" >&5
1701 . "$ac_site_file"
1703 done
1705 if test -r "$cache_file"; then
1706 # Some versions of bash will fail to source /dev/null (special
1707 # files actually), so we avoid doing that.
1708 if test -f "$cache_file"; then
1709 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1710 echo "$as_me: loading cache $cache_file" >&6;}
1711 case $cache_file in
1712 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1713 *) . "./$cache_file";;
1714 esac
1716 else
1717 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1718 echo "$as_me: creating cache $cache_file" >&6;}
1719 >$cache_file
1722 # Check that the precious variables saved in the cache have kept the same
1723 # value.
1724 ac_cache_corrupted=false
1725 for ac_var in $ac_precious_vars; do
1726 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1727 eval ac_new_set=\$ac_env_${ac_var}_set
1728 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1729 eval ac_new_val=\$ac_env_${ac_var}_value
1730 case $ac_old_set,$ac_new_set in
1731 set,)
1732 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1733 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1734 ac_cache_corrupted=: ;;
1735 ,set)
1736 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1737 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1738 ac_cache_corrupted=: ;;
1739 ,);;
1741 if test "x$ac_old_val" != "x$ac_new_val"; then
1742 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1743 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1744 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1745 echo "$as_me: former value: $ac_old_val" >&2;}
1746 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1747 echo "$as_me: current value: $ac_new_val" >&2;}
1748 ac_cache_corrupted=:
1749 fi;;
1750 esac
1751 # Pass precious variables to config.status.
1752 if test "$ac_new_set" = set; then
1753 case $ac_new_val in
1754 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1755 *) ac_arg=$ac_var=$ac_new_val ;;
1756 esac
1757 case " $ac_configure_args " in
1758 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1759 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1760 esac
1762 done
1763 if $ac_cache_corrupted; then
1764 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1765 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1766 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1767 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1768 { (exit 1); exit 1; }; }
1795 ac_ext=c
1796 ac_cpp='$CPP $CPPFLAGS'
1797 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1798 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1799 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1803 ac_config_headers="$ac_config_headers pyconfig.h"
1807 if test "$prefix" != "/"; then
1808 prefix=`echo "$prefix" | sed -e 's/\/$//g'`
1816 # We don't use PACKAGE_ variables, and they cause conflicts
1817 # with other autoconf-based packages that include Python.h
1818 grep -v 'define PACKAGE_' <confdefs.h >confdefs.h.new
1819 rm confdefs.h
1820 mv confdefs.h.new confdefs.h
1823 VERSION=3.1
1826 SOVERSION=1.0
1828 # The later defininition of _XOPEN_SOURCE disables certain features
1829 # on Linux, so we need _GNU_SOURCE to re-enable them (makedev, tm_zone).
1831 cat >>confdefs.h <<\_ACEOF
1832 #define _GNU_SOURCE 1
1833 _ACEOF
1836 # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables
1837 # certain features on NetBSD, so we need _NETBSD_SOURCE to re-enable
1838 # them.
1840 cat >>confdefs.h <<\_ACEOF
1841 #define _NETBSD_SOURCE 1
1842 _ACEOF
1845 # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables
1846 # certain features on FreeBSD, so we need __BSD_VISIBLE to re-enable
1847 # them.
1849 cat >>confdefs.h <<\_ACEOF
1850 #define __BSD_VISIBLE 1
1851 _ACEOF
1854 # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables
1855 # u_int on Irix 5.3. Defining _BSD_TYPES brings it back.
1857 cat >>confdefs.h <<\_ACEOF
1858 #define _BSD_TYPES 1
1859 _ACEOF
1862 # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables
1863 # certain features on Mac OS X, so we need _DARWIN_C_SOURCE to re-enable
1864 # them.
1866 cat >>confdefs.h <<\_ACEOF
1867 #define _DARWIN_C_SOURCE 1
1868 _ACEOF
1872 define_xopen_source=yes
1874 # Arguments passed to configure.
1876 CONFIG_ARGS="$ac_configure_args"
1878 # Check whether --enable-universalsdk was given.
1879 if test "${enable_universalsdk+set}" = set; then
1880 enableval=$enable_universalsdk;
1881 case $enableval in
1882 yes)
1883 enableval=/Developer/SDKs/MacOSX10.4u.sdk
1885 esac
1886 case $enableval in
1888 UNIVERSALSDK=
1889 enable_universalsdk=
1892 UNIVERSALSDK=$enableval
1894 esac
1896 else
1898 UNIVERSALSDK=
1899 enable_universalsdk=
1905 ARCH_RUN_32BIT=
1908 UNIVERSAL_ARCHS="32-bit"
1909 { echo "$as_me:$LINENO: checking for --with-universal-archs" >&5
1910 echo $ECHO_N "checking for --with-universal-archs... $ECHO_C" >&6; }
1912 # Check whether --with-universal-archs was given.
1913 if test "${with_universal_archs+set}" = set; then
1914 withval=$with_universal_archs;
1915 { echo "$as_me:$LINENO: result: $withval" >&5
1916 echo "${ECHO_T}$withval" >&6; }
1917 UNIVERSAL_ARCHS="$withval"
1919 else
1921 { echo "$as_me:$LINENO: result: 32-bit" >&5
1922 echo "${ECHO_T}32-bit" >&6; }
1930 # Check whether --with-framework-name was given.
1931 if test "${with_framework_name+set}" = set; then
1932 withval=$with_framework_name;
1933 PYTHONFRAMEWORK=${withval}
1934 PYTHONFRAMEWORKDIR=${withval}.framework
1935 PYTHONFRAMEWORKIDENTIFIER=org.python.`echo $withval | tr 'A-Z' 'a-z'`
1937 else
1939 PYTHONFRAMEWORK=Python
1940 PYTHONFRAMEWORKDIR=Python.framework
1941 PYTHONFRAMEWORKIDENTIFIER=org.python.python
1945 # Check whether --enable-framework was given.
1946 if test "${enable_framework+set}" = set; then
1947 enableval=$enable_framework;
1948 case $enableval in
1949 yes)
1950 enableval=/Library/Frameworks
1951 esac
1952 case $enableval in
1954 PYTHONFRAMEWORK=
1955 PYTHONFRAMEWORKDIR=no-framework
1956 PYTHONFRAMEWORKPREFIX=
1957 PYTHONFRAMEWORKINSTALLDIR=
1958 FRAMEWORKINSTALLFIRST=
1959 FRAMEWORKINSTALLLAST=
1960 FRAMEWORKALTINSTALLFIRST=
1961 FRAMEWORKALTINSTALLLAST=
1962 if test "x${prefix}" = "xNONE"; then
1963 FRAMEWORKUNIXTOOLSPREFIX="${ac_default_prefix}"
1964 else
1965 FRAMEWORKUNIXTOOLSPREFIX="${prefix}"
1967 enable_framework=
1970 PYTHONFRAMEWORKPREFIX=$enableval
1971 PYTHONFRAMEWORKINSTALLDIR=$PYTHONFRAMEWORKPREFIX/$PYTHONFRAMEWORKDIR
1972 FRAMEWORKINSTALLFIRST="frameworkinstallstructure"
1973 FRAMEWORKALTINSTALLFIRST="frameworkinstallstructure bininstall maninstall"
1974 if test "$UNIVERSAL_ARCHS" = "all"
1975 then
1976 FRAMEWORKINSTALLLAST="frameworkinstallmaclib frameworkinstallapps4way frameworkinstallunixtools4way"
1977 FRAMEWORKALTINSTALLLAST="frameworkinstallmaclib frameworkinstallapps4way frameworkaltinstallunixtools4way"
1978 else
1979 FRAMEWORKINSTALLLAST="frameworkinstallmaclib frameworkinstallapps frameworkinstallunixtools"
1980 FRAMEWORKALTINSTALLLAST="frameworkinstallmaclib frameworkinstallapps frameworkaltinstallunixtools"
1983 if test "x${prefix}" = "xNONE" ; then
1984 FRAMEWORKUNIXTOOLSPREFIX="${ac_default_prefix}"
1985 else
1986 FRAMEWORKUNIXTOOLSPREFIX="${prefix}"
1988 prefix=$PYTHONFRAMEWORKINSTALLDIR/Versions/$VERSION
1990 # Add files for Mac specific code to the list of output
1991 # files:
1992 ac_config_files="$ac_config_files Mac/Makefile"
1994 ac_config_files="$ac_config_files Mac/PythonLauncher/Makefile"
1996 ac_config_files="$ac_config_files Mac/Resources/framework/Info.plist"
1998 ac_config_files="$ac_config_files Mac/Resources/app/Info.plist"
2000 esac
2002 else
2004 PYTHONFRAMEWORK=
2005 PYTHONFRAMEWORKDIR=no-framework
2006 PYTHONFRAMEWORKPREFIX=
2007 PYTHONFRAMEWORKINSTALLDIR=
2008 FRAMEWORKINSTALLFIRST=
2009 FRAMEWORKINSTALLLAST=
2010 FRAMEWORKALTINSTALLFIRST=
2011 FRAMEWORKALTINSTALLLAST=
2012 if test "x${prefix}" = "xNONE" ; then
2013 FRAMEWORKUNIXTOOLSPREFIX="${ac_default_prefix}"
2014 else
2015 FRAMEWORKUNIXTOOLSPREFIX="${prefix}"
2017 enable_framework=
2019 if test "$UNIVERSAL_ARCHS" = "all"
2020 then
2021 FRAMEWORKINSTALLLAST=update4wayuniversal
2022 FRAMEWORKALTINSTALLLAST=update4wayuniversal
2038 ##AC_ARG_WITH(dyld,
2039 ## AC_HELP_STRING(--with-dyld,
2040 ## Use (OpenStep|Rhapsody) dynamic linker))
2042 # Set name for machine-dependent library files
2044 { echo "$as_me:$LINENO: checking MACHDEP" >&5
2045 echo $ECHO_N "checking MACHDEP... $ECHO_C" >&6; }
2046 if test -z "$MACHDEP"
2047 then
2048 ac_sys_system=`uname -s`
2049 if test "$ac_sys_system" = "AIX" -o "$ac_sys_system" = "Monterey64" \
2050 -o "$ac_sys_system" = "UnixWare" -o "$ac_sys_system" = "OpenUNIX"; then
2051 ac_sys_release=`uname -v`
2052 else
2053 ac_sys_release=`uname -r`
2055 ac_md_system=`echo $ac_sys_system |
2056 tr -d '/ ' | tr '[A-Z]' '[a-z]'`
2057 ac_md_release=`echo $ac_sys_release |
2058 tr -d '/ ' | sed 's/^[A-Z]\.//' | sed 's/\..*//'`
2059 MACHDEP="$ac_md_system$ac_md_release"
2061 case $MACHDEP in
2062 cygwin*) MACHDEP="cygwin";;
2063 darwin*) MACHDEP="darwin";;
2064 atheos*) MACHDEP="atheos";;
2065 irix646) MACHDEP="irix6";;
2066 '') MACHDEP="unknown";;
2067 esac
2070 # Some systems cannot stand _XOPEN_SOURCE being defined at all; they
2071 # disable features if it is defined, without any means to access these
2072 # features as extensions. For these systems, we skip the definition of
2073 # _XOPEN_SOURCE. Before adding a system to the list to gain access to
2074 # some feature, make sure there is no alternative way to access this
2075 # feature. Also, when using wildcards, make sure you have verified the
2076 # need for not defining _XOPEN_SOURCE on all systems matching the
2077 # wildcard, and that the wildcard does not include future systems
2078 # (which may remove their limitations).
2079 case $ac_sys_system/$ac_sys_release in
2080 # On OpenBSD, select(2) is not available if _XOPEN_SOURCE is defined,
2081 # even though select is a POSIX function. Reported by J. Ribbens.
2082 # Reconfirmed for OpenBSD 3.3 by Zachary Hamm, for 3.4 by Jason Ish.
2083 OpenBSD/2.* | OpenBSD/3.[0123456789] | OpenBSD/4.[0123])
2084 define_xopen_source=no
2085 # OpenBSD undoes our definition of __BSD_VISIBLE if _XOPEN_SOURCE is
2086 # also defined. This can be overridden by defining _BSD_SOURCE
2087 # As this has a different meaning on Linux, only define it on OpenBSD
2089 cat >>confdefs.h <<\_ACEOF
2090 #define _BSD_SOURCE 1
2091 _ACEOF
2094 # Defining _XOPEN_SOURCE on NetBSD version prior to the introduction of
2095 # _NETBSD_SOURCE disables certain features (eg. setgroups). Reported by
2096 # Marc Recht
2097 NetBSD/1.5 | NetBSD/1.5.* | NetBSD/1.6 | NetBSD/1.6.* | NetBSD/1.6[A-S])
2098 define_xopen_source=no;;
2099 # On Solaris 2.6, sys/wait.h is inconsistent in the usage
2100 # of union __?sigval. Reported by Stuart Bishop.
2101 SunOS/5.6)
2102 define_xopen_source=no;;
2103 # On UnixWare 7, u_long is never defined with _XOPEN_SOURCE,
2104 # but used in /usr/include/netinet/tcp.h. Reported by Tim Rice.
2105 # Reconfirmed for 7.1.4 by Martin v. Loewis.
2106 OpenUNIX/8.0.0| UnixWare/7.1.[0-4])
2107 define_xopen_source=no;;
2108 # On OpenServer 5, u_short is never defined with _XOPEN_SOURCE,
2109 # but used in struct sockaddr.sa_family. Reported by Tim Rice.
2110 SCO_SV/3.2)
2111 define_xopen_source=no;;
2112 # On FreeBSD 4, the math functions C89 does not cover are never defined
2113 # with _XOPEN_SOURCE and __BSD_VISIBLE does not re-enable them.
2114 FreeBSD/4.*)
2115 define_xopen_source=no;;
2116 # On MacOS X 10.2, a bug in ncurses.h means that it craps out if
2117 # _XOPEN_EXTENDED_SOURCE is defined. Apparently, this is fixed in 10.3, which
2118 # identifies itself as Darwin/7.*
2119 # On Mac OS X 10.4, defining _POSIX_C_SOURCE or _XOPEN_SOURCE
2120 # disables platform specific features beyond repair.
2121 # On Mac OS X 10.3, defining _POSIX_C_SOURCE or _XOPEN_SOURCE
2122 # has no effect, don't bother defining them
2123 Darwin/[6789].*)
2124 define_xopen_source=no;;
2125 # On AIX 4 and 5.1, mbstate_t is defined only when _XOPEN_SOURCE == 500 but
2126 # used in wcsnrtombs() and mbsnrtowcs() even if _XOPEN_SOURCE is not defined
2127 # or has another value. By not (re)defining it, the defaults come in place.
2128 AIX/4)
2129 define_xopen_source=no;;
2130 AIX/5)
2131 if test `uname -r` -eq 1; then
2132 define_xopen_source=no
2135 # On QNX 6.3.2, defining _XOPEN_SOURCE prevents netdb.h from
2136 # defining NI_NUMERICHOST.
2137 QNX/6.3.2)
2138 define_xopen_source=no
2141 esac
2143 if test $define_xopen_source = yes
2144 then
2145 # On Solaris w/ g++ it appears that _XOPEN_SOURCE has to be
2146 # defined precisely as g++ defines it
2147 # Furthermore, on Solaris 10, XPG6 requires the use of a C99
2148 # compiler
2149 case $ac_sys_system/$ac_sys_release in
2150 SunOS/5.8|SunOS/5.9|SunOS/5.10)
2152 cat >>confdefs.h <<\_ACEOF
2153 #define _XOPEN_SOURCE 500
2154 _ACEOF
2159 cat >>confdefs.h <<\_ACEOF
2160 #define _XOPEN_SOURCE 600
2161 _ACEOF
2164 esac
2166 # On Tru64 Unix 4.0F, defining _XOPEN_SOURCE also requires
2167 # definition of _XOPEN_SOURCE_EXTENDED and _POSIX_C_SOURCE, or else
2168 # several APIs are not declared. Since this is also needed in some
2169 # cases for HP-UX, we define it globally.
2170 # except for Solaris 10, where it must not be defined,
2171 # as it implies XPG4.2
2172 case $ac_sys_system/$ac_sys_release in
2173 SunOS/5.10)
2177 cat >>confdefs.h <<\_ACEOF
2178 #define _XOPEN_SOURCE_EXTENDED 1
2179 _ACEOF
2182 esac
2185 cat >>confdefs.h <<\_ACEOF
2186 #define _POSIX_C_SOURCE 200112L
2187 _ACEOF
2193 # SGI compilers allow the specification of the both the ABI and the
2194 # ISA on the command line. Depending on the values of these switches,
2195 # different and often incompatable code will be generated.
2197 # The SGI_ABI variable can be used to modify the CC and LDFLAGS and
2198 # thus supply support for various ABI/ISA combinations. The MACHDEP
2199 # variable is also adjusted.
2202 if test ! -z "$SGI_ABI"
2203 then
2204 CC="cc $SGI_ABI"
2205 LDFLAGS="$SGI_ABI $LDFLAGS"
2206 MACHDEP=`echo "${MACHDEP}${SGI_ABI}" | sed 's/ *//g'`
2208 { echo "$as_me:$LINENO: result: $MACHDEP" >&5
2209 echo "${ECHO_T}$MACHDEP" >&6; }
2211 # Record the configure-time value of MACOSX_DEPLOYMENT_TARGET,
2212 # it may influence the way we can build extensions, so distutils
2213 # needs to check it
2216 CONFIGURE_MACOSX_DEPLOYMENT_TARGET=
2217 EXPORT_MACOSX_DEPLOYMENT_TARGET='#'
2219 { echo "$as_me:$LINENO: checking machine type as reported by uname -m" >&5
2220 echo $ECHO_N "checking machine type as reported by uname -m... $ECHO_C" >&6; }
2221 ac_sys_machine=`uname -m`
2222 { echo "$as_me:$LINENO: result: $ac_sys_machine" >&5
2223 echo "${ECHO_T}$ac_sys_machine" >&6; }
2225 # checks for alternative programs
2227 # compiler flags are generated in two sets, BASECFLAGS and OPT. OPT is just
2228 # for debug/optimization stuff. BASECFLAGS is for flags that are required
2229 # just to get things to compile and link. Users are free to override OPT
2230 # when running configure or make. The build should not break if they do.
2231 # BASECFLAGS should generally not be messed with, however.
2233 # XXX shouldn't some/most/all of this code be merged with the stuff later
2234 # on that fiddles with OPT and BASECFLAGS?
2235 { echo "$as_me:$LINENO: checking for --without-gcc" >&5
2236 echo $ECHO_N "checking for --without-gcc... $ECHO_C" >&6; }
2238 # Check whether --with-gcc was given.
2239 if test "${with_gcc+set}" = set; then
2240 withval=$with_gcc;
2241 case $withval in
2242 no) CC=${CC:-cc}
2243 without_gcc=yes;;
2244 yes) CC=gcc
2245 without_gcc=no;;
2246 *) CC=$withval
2247 without_gcc=$withval;;
2248 esac
2249 else
2251 case $ac_sys_system in
2252 AIX*) CC=cc_r
2253 without_gcc=;;
2254 Monterey*)
2255 RANLIB=:
2256 without_gcc=;;
2257 *) without_gcc=no;;
2258 esac
2261 { echo "$as_me:$LINENO: result: $without_gcc" >&5
2262 echo "${ECHO_T}$without_gcc" >&6; }
2264 # If the user switches compilers, we can't believe the cache
2265 if test ! -z "$ac_cv_prog_CC" -a ! -z "$CC" -a "$CC" != "$ac_cv_prog_CC"
2266 then
2267 { { echo "$as_me:$LINENO: error: cached CC is different -- throw away $cache_file
2268 (it is also a good idea to do 'make clean' before compiling)" >&5
2269 echo "$as_me: error: cached CC is different -- throw away $cache_file
2270 (it is also a good idea to do 'make clean' before compiling)" >&2;}
2271 { (exit 1); exit 1; }; }
2274 ac_ext=c
2275 ac_cpp='$CPP $CPPFLAGS'
2276 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2277 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2278 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2279 if test -n "$ac_tool_prefix"; then
2280 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2281 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2282 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2283 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2284 if test "${ac_cv_prog_CC+set}" = set; then
2285 echo $ECHO_N "(cached) $ECHO_C" >&6
2286 else
2287 if test -n "$CC"; then
2288 ac_cv_prog_CC="$CC" # Let the user override the test.
2289 else
2290 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2291 for as_dir in $PATH
2293 IFS=$as_save_IFS
2294 test -z "$as_dir" && as_dir=.
2295 for ac_exec_ext in '' $ac_executable_extensions; do
2296 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2297 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2298 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2299 break 2
2301 done
2302 done
2303 IFS=$as_save_IFS
2307 CC=$ac_cv_prog_CC
2308 if test -n "$CC"; then
2309 { echo "$as_me:$LINENO: result: $CC" >&5
2310 echo "${ECHO_T}$CC" >&6; }
2311 else
2312 { echo "$as_me:$LINENO: result: no" >&5
2313 echo "${ECHO_T}no" >&6; }
2318 if test -z "$ac_cv_prog_CC"; then
2319 ac_ct_CC=$CC
2320 # Extract the first word of "gcc", so it can be a program name with args.
2321 set dummy 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_ac_ct_CC+set}" = set; then
2325 echo $ECHO_N "(cached) $ECHO_C" >&6
2326 else
2327 if test -n "$ac_ct_CC"; then
2328 ac_cv_prog_ac_ct_CC="$ac_ct_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_ac_ct_CC="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 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2348 if test -n "$ac_ct_CC"; then
2349 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2350 echo "${ECHO_T}$ac_ct_CC" >&6; }
2351 else
2352 { echo "$as_me:$LINENO: result: no" >&5
2353 echo "${ECHO_T}no" >&6; }
2356 if test "x$ac_ct_CC" = x; then
2357 CC=""
2358 else
2359 case $cross_compiling:$ac_tool_warned in
2360 yes:)
2361 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2362 whose name does not start with the host triplet. If you think this
2363 configuration is useful to you, please write to autoconf@gnu.org." >&5
2364 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2365 whose name does not start with the host triplet. If you think this
2366 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2367 ac_tool_warned=yes ;;
2368 esac
2369 CC=$ac_ct_CC
2371 else
2372 CC="$ac_cv_prog_CC"
2375 if test -z "$CC"; then
2376 if test -n "$ac_tool_prefix"; then
2377 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2378 set dummy ${ac_tool_prefix}cc; ac_word=$2
2379 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2380 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2381 if test "${ac_cv_prog_CC+set}" = set; then
2382 echo $ECHO_N "(cached) $ECHO_C" >&6
2383 else
2384 if test -n "$CC"; then
2385 ac_cv_prog_CC="$CC" # Let the user override the test.
2386 else
2387 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2388 for as_dir in $PATH
2390 IFS=$as_save_IFS
2391 test -z "$as_dir" && as_dir=.
2392 for ac_exec_ext in '' $ac_executable_extensions; do
2393 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2394 ac_cv_prog_CC="${ac_tool_prefix}cc"
2395 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2396 break 2
2398 done
2399 done
2400 IFS=$as_save_IFS
2404 CC=$ac_cv_prog_CC
2405 if test -n "$CC"; then
2406 { echo "$as_me:$LINENO: result: $CC" >&5
2407 echo "${ECHO_T}$CC" >&6; }
2408 else
2409 { echo "$as_me:$LINENO: result: no" >&5
2410 echo "${ECHO_T}no" >&6; }
2416 if test -z "$CC"; then
2417 # Extract the first word of "cc", so it can be a program name with args.
2418 set dummy 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 ac_prog_rejected=no
2428 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2429 for as_dir in $PATH
2431 IFS=$as_save_IFS
2432 test -z "$as_dir" && as_dir=.
2433 for ac_exec_ext in '' $ac_executable_extensions; do
2434 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2435 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2436 ac_prog_rejected=yes
2437 continue
2439 ac_cv_prog_CC="cc"
2440 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2441 break 2
2443 done
2444 done
2445 IFS=$as_save_IFS
2447 if test $ac_prog_rejected = yes; then
2448 # We found a bogon in the path, so make sure we never use it.
2449 set dummy $ac_cv_prog_CC
2450 shift
2451 if test $# != 0; then
2452 # We chose a different compiler from the bogus one.
2453 # However, it has the same basename, so the bogon will be chosen
2454 # first if we set CC to just the basename; use the full file name.
2455 shift
2456 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2461 CC=$ac_cv_prog_CC
2462 if test -n "$CC"; then
2463 { echo "$as_me:$LINENO: result: $CC" >&5
2464 echo "${ECHO_T}$CC" >&6; }
2465 else
2466 { echo "$as_me:$LINENO: result: no" >&5
2467 echo "${ECHO_T}no" >&6; }
2472 if test -z "$CC"; then
2473 if test -n "$ac_tool_prefix"; then
2474 for ac_prog in cl.exe
2476 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2477 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2478 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2479 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2480 if test "${ac_cv_prog_CC+set}" = set; then
2481 echo $ECHO_N "(cached) $ECHO_C" >&6
2482 else
2483 if test -n "$CC"; then
2484 ac_cv_prog_CC="$CC" # Let the user override the test.
2485 else
2486 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2487 for as_dir in $PATH
2489 IFS=$as_save_IFS
2490 test -z "$as_dir" && as_dir=.
2491 for ac_exec_ext in '' $ac_executable_extensions; do
2492 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2493 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2494 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2495 break 2
2497 done
2498 done
2499 IFS=$as_save_IFS
2503 CC=$ac_cv_prog_CC
2504 if test -n "$CC"; then
2505 { echo "$as_me:$LINENO: result: $CC" >&5
2506 echo "${ECHO_T}$CC" >&6; }
2507 else
2508 { echo "$as_me:$LINENO: result: no" >&5
2509 echo "${ECHO_T}no" >&6; }
2513 test -n "$CC" && break
2514 done
2516 if test -z "$CC"; then
2517 ac_ct_CC=$CC
2518 for ac_prog in cl.exe
2520 # Extract the first word of "$ac_prog", so it can be a program name with args.
2521 set dummy $ac_prog; ac_word=$2
2522 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2523 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2524 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2525 echo $ECHO_N "(cached) $ECHO_C" >&6
2526 else
2527 if test -n "$ac_ct_CC"; then
2528 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2529 else
2530 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2531 for as_dir in $PATH
2533 IFS=$as_save_IFS
2534 test -z "$as_dir" && as_dir=.
2535 for ac_exec_ext in '' $ac_executable_extensions; do
2536 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2537 ac_cv_prog_ac_ct_CC="$ac_prog"
2538 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2539 break 2
2541 done
2542 done
2543 IFS=$as_save_IFS
2547 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2548 if test -n "$ac_ct_CC"; then
2549 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2550 echo "${ECHO_T}$ac_ct_CC" >&6; }
2551 else
2552 { echo "$as_me:$LINENO: result: no" >&5
2553 echo "${ECHO_T}no" >&6; }
2557 test -n "$ac_ct_CC" && break
2558 done
2560 if test "x$ac_ct_CC" = x; then
2561 CC=""
2562 else
2563 case $cross_compiling:$ac_tool_warned in
2564 yes:)
2565 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2566 whose name does not start with the host triplet. If you think this
2567 configuration is useful to you, please write to autoconf@gnu.org." >&5
2568 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2569 whose name does not start with the host triplet. If you think this
2570 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2571 ac_tool_warned=yes ;;
2572 esac
2573 CC=$ac_ct_CC
2580 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2581 See \`config.log' for more details." >&5
2582 echo "$as_me: error: no acceptable C compiler found in \$PATH
2583 See \`config.log' for more details." >&2;}
2584 { (exit 1); exit 1; }; }
2586 # Provide some information about the compiler.
2587 echo "$as_me:$LINENO: checking for C compiler version" >&5
2588 ac_compiler=`set X $ac_compile; echo $2`
2589 { (ac_try="$ac_compiler --version >&5"
2590 case "(($ac_try" in
2591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2592 *) ac_try_echo=$ac_try;;
2593 esac
2594 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2595 (eval "$ac_compiler --version >&5") 2>&5
2596 ac_status=$?
2597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2598 (exit $ac_status); }
2599 { (ac_try="$ac_compiler -v >&5"
2600 case "(($ac_try" in
2601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2602 *) ac_try_echo=$ac_try;;
2603 esac
2604 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2605 (eval "$ac_compiler -v >&5") 2>&5
2606 ac_status=$?
2607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2608 (exit $ac_status); }
2609 { (ac_try="$ac_compiler -V >&5"
2610 case "(($ac_try" in
2611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2612 *) ac_try_echo=$ac_try;;
2613 esac
2614 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2615 (eval "$ac_compiler -V >&5") 2>&5
2616 ac_status=$?
2617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2618 (exit $ac_status); }
2620 cat >conftest.$ac_ext <<_ACEOF
2621 /* confdefs.h. */
2622 _ACEOF
2623 cat confdefs.h >>conftest.$ac_ext
2624 cat >>conftest.$ac_ext <<_ACEOF
2625 /* end confdefs.h. */
2628 main ()
2632 return 0;
2634 _ACEOF
2635 ac_clean_files_save=$ac_clean_files
2636 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2637 # Try to create an executable without -o first, disregard a.out.
2638 # It will help us diagnose broken compilers, and finding out an intuition
2639 # of exeext.
2640 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2641 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2642 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2644 # List of possible output files, starting from the most likely.
2645 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2646 # only as a last resort. b.out is created by i960 compilers.
2647 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2649 # The IRIX 6 linker writes into existing files which may not be
2650 # executable, retaining their permissions. Remove them first so a
2651 # subsequent execution test works.
2652 ac_rmfiles=
2653 for ac_file in $ac_files
2655 case $ac_file in
2656 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2657 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2658 esac
2659 done
2660 rm -f $ac_rmfiles
2662 if { (ac_try="$ac_link_default"
2663 case "(($ac_try" in
2664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2665 *) ac_try_echo=$ac_try;;
2666 esac
2667 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2668 (eval "$ac_link_default") 2>&5
2669 ac_status=$?
2670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2671 (exit $ac_status); }; then
2672 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2673 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2674 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2675 # so that the user can short-circuit this test for compilers unknown to
2676 # Autoconf.
2677 for ac_file in $ac_files ''
2679 test -f "$ac_file" || continue
2680 case $ac_file in
2681 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2683 [ab].out )
2684 # We found the default executable, but exeext='' is most
2685 # certainly right.
2686 break;;
2687 *.* )
2688 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2689 then :; else
2690 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2692 # We set ac_cv_exeext here because the later test for it is not
2693 # safe: cross compilers may not add the suffix if given an `-o'
2694 # argument, so we may need to know it at that point already.
2695 # Even if this section looks crufty: it has the advantage of
2696 # actually working.
2697 break;;
2699 break;;
2700 esac
2701 done
2702 test "$ac_cv_exeext" = no && ac_cv_exeext=
2704 else
2705 ac_file=''
2708 { echo "$as_me:$LINENO: result: $ac_file" >&5
2709 echo "${ECHO_T}$ac_file" >&6; }
2710 if test -z "$ac_file"; then
2711 echo "$as_me: failed program was:" >&5
2712 sed 's/^/| /' conftest.$ac_ext >&5
2714 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2715 See \`config.log' for more details." >&5
2716 echo "$as_me: error: C compiler cannot create executables
2717 See \`config.log' for more details." >&2;}
2718 { (exit 77); exit 77; }; }
2721 ac_exeext=$ac_cv_exeext
2723 # Check that the compiler produces executables we can run. If not, either
2724 # the compiler is broken, or we cross compile.
2725 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2726 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2727 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2728 # If not cross compiling, check that we can run a simple program.
2729 if test "$cross_compiling" != yes; then
2730 if { ac_try='./$ac_file'
2731 { (case "(($ac_try" in
2732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2733 *) ac_try_echo=$ac_try;;
2734 esac
2735 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2736 (eval "$ac_try") 2>&5
2737 ac_status=$?
2738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2739 (exit $ac_status); }; }; then
2740 cross_compiling=no
2741 else
2742 if test "$cross_compiling" = maybe; then
2743 cross_compiling=yes
2744 else
2745 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2746 If you meant to cross compile, use \`--host'.
2747 See \`config.log' for more details." >&5
2748 echo "$as_me: error: cannot run C compiled programs.
2749 If you meant to cross compile, use \`--host'.
2750 See \`config.log' for more details." >&2;}
2751 { (exit 1); exit 1; }; }
2755 { echo "$as_me:$LINENO: result: yes" >&5
2756 echo "${ECHO_T}yes" >&6; }
2758 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2759 ac_clean_files=$ac_clean_files_save
2760 # Check that the compiler produces executables we can run. If not, either
2761 # the compiler is broken, or we cross compile.
2762 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2763 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2764 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2765 echo "${ECHO_T}$cross_compiling" >&6; }
2767 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2768 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2769 if { (ac_try="$ac_link"
2770 case "(($ac_try" in
2771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2772 *) ac_try_echo=$ac_try;;
2773 esac
2774 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2775 (eval "$ac_link") 2>&5
2776 ac_status=$?
2777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2778 (exit $ac_status); }; then
2779 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2780 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2781 # work properly (i.e., refer to `conftest.exe'), while it won't with
2782 # `rm'.
2783 for ac_file in conftest.exe conftest conftest.*; do
2784 test -f "$ac_file" || continue
2785 case $ac_file in
2786 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2787 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2788 break;;
2789 * ) break;;
2790 esac
2791 done
2792 else
2793 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2794 See \`config.log' for more details." >&5
2795 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2796 See \`config.log' for more details." >&2;}
2797 { (exit 1); exit 1; }; }
2800 rm -f conftest$ac_cv_exeext
2801 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2802 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2804 rm -f conftest.$ac_ext
2805 EXEEXT=$ac_cv_exeext
2806 ac_exeext=$EXEEXT
2807 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2808 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2809 if test "${ac_cv_objext+set}" = set; then
2810 echo $ECHO_N "(cached) $ECHO_C" >&6
2811 else
2812 cat >conftest.$ac_ext <<_ACEOF
2813 /* confdefs.h. */
2814 _ACEOF
2815 cat confdefs.h >>conftest.$ac_ext
2816 cat >>conftest.$ac_ext <<_ACEOF
2817 /* end confdefs.h. */
2820 main ()
2824 return 0;
2826 _ACEOF
2827 rm -f conftest.o conftest.obj
2828 if { (ac_try="$ac_compile"
2829 case "(($ac_try" in
2830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2831 *) ac_try_echo=$ac_try;;
2832 esac
2833 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2834 (eval "$ac_compile") 2>&5
2835 ac_status=$?
2836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2837 (exit $ac_status); }; then
2838 for ac_file in conftest.o conftest.obj conftest.*; do
2839 test -f "$ac_file" || continue;
2840 case $ac_file in
2841 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2842 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2843 break;;
2844 esac
2845 done
2846 else
2847 echo "$as_me: failed program was:" >&5
2848 sed 's/^/| /' conftest.$ac_ext >&5
2850 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2851 See \`config.log' for more details." >&5
2852 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2853 See \`config.log' for more details." >&2;}
2854 { (exit 1); exit 1; }; }
2857 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2859 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2860 echo "${ECHO_T}$ac_cv_objext" >&6; }
2861 OBJEXT=$ac_cv_objext
2862 ac_objext=$OBJEXT
2863 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2864 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2865 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2866 echo $ECHO_N "(cached) $ECHO_C" >&6
2867 else
2868 cat >conftest.$ac_ext <<_ACEOF
2869 /* confdefs.h. */
2870 _ACEOF
2871 cat confdefs.h >>conftest.$ac_ext
2872 cat >>conftest.$ac_ext <<_ACEOF
2873 /* end confdefs.h. */
2876 main ()
2878 #ifndef __GNUC__
2879 choke me
2880 #endif
2883 return 0;
2885 _ACEOF
2886 rm -f conftest.$ac_objext
2887 if { (ac_try="$ac_compile"
2888 case "(($ac_try" in
2889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2890 *) ac_try_echo=$ac_try;;
2891 esac
2892 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2893 (eval "$ac_compile") 2>conftest.er1
2894 ac_status=$?
2895 grep -v '^ *+' conftest.er1 >conftest.err
2896 rm -f conftest.er1
2897 cat conftest.err >&5
2898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2899 (exit $ac_status); } && {
2900 test -z "$ac_c_werror_flag" ||
2901 test ! -s conftest.err
2902 } && test -s conftest.$ac_objext; then
2903 ac_compiler_gnu=yes
2904 else
2905 echo "$as_me: failed program was:" >&5
2906 sed 's/^/| /' conftest.$ac_ext >&5
2908 ac_compiler_gnu=no
2911 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2912 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2915 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2916 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2917 GCC=`test $ac_compiler_gnu = yes && echo yes`
2918 ac_test_CFLAGS=${CFLAGS+set}
2919 ac_save_CFLAGS=$CFLAGS
2920 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2921 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2922 if test "${ac_cv_prog_cc_g+set}" = set; then
2923 echo $ECHO_N "(cached) $ECHO_C" >&6
2924 else
2925 ac_save_c_werror_flag=$ac_c_werror_flag
2926 ac_c_werror_flag=yes
2927 ac_cv_prog_cc_g=no
2928 CFLAGS="-g"
2929 cat >conftest.$ac_ext <<_ACEOF
2930 /* confdefs.h. */
2931 _ACEOF
2932 cat confdefs.h >>conftest.$ac_ext
2933 cat >>conftest.$ac_ext <<_ACEOF
2934 /* end confdefs.h. */
2937 main ()
2941 return 0;
2943 _ACEOF
2944 rm -f conftest.$ac_objext
2945 if { (ac_try="$ac_compile"
2946 case "(($ac_try" in
2947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2948 *) ac_try_echo=$ac_try;;
2949 esac
2950 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2951 (eval "$ac_compile") 2>conftest.er1
2952 ac_status=$?
2953 grep -v '^ *+' conftest.er1 >conftest.err
2954 rm -f conftest.er1
2955 cat conftest.err >&5
2956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2957 (exit $ac_status); } && {
2958 test -z "$ac_c_werror_flag" ||
2959 test ! -s conftest.err
2960 } && test -s conftest.$ac_objext; then
2961 ac_cv_prog_cc_g=yes
2962 else
2963 echo "$as_me: failed program was:" >&5
2964 sed 's/^/| /' conftest.$ac_ext >&5
2966 CFLAGS=""
2967 cat >conftest.$ac_ext <<_ACEOF
2968 /* confdefs.h. */
2969 _ACEOF
2970 cat confdefs.h >>conftest.$ac_ext
2971 cat >>conftest.$ac_ext <<_ACEOF
2972 /* end confdefs.h. */
2975 main ()
2979 return 0;
2981 _ACEOF
2982 rm -f conftest.$ac_objext
2983 if { (ac_try="$ac_compile"
2984 case "(($ac_try" in
2985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2986 *) ac_try_echo=$ac_try;;
2987 esac
2988 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2989 (eval "$ac_compile") 2>conftest.er1
2990 ac_status=$?
2991 grep -v '^ *+' conftest.er1 >conftest.err
2992 rm -f conftest.er1
2993 cat conftest.err >&5
2994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2995 (exit $ac_status); } && {
2996 test -z "$ac_c_werror_flag" ||
2997 test ! -s conftest.err
2998 } && test -s conftest.$ac_objext; then
3000 else
3001 echo "$as_me: failed program was:" >&5
3002 sed 's/^/| /' conftest.$ac_ext >&5
3004 ac_c_werror_flag=$ac_save_c_werror_flag
3005 CFLAGS="-g"
3006 cat >conftest.$ac_ext <<_ACEOF
3007 /* confdefs.h. */
3008 _ACEOF
3009 cat confdefs.h >>conftest.$ac_ext
3010 cat >>conftest.$ac_ext <<_ACEOF
3011 /* end confdefs.h. */
3014 main ()
3018 return 0;
3020 _ACEOF
3021 rm -f conftest.$ac_objext
3022 if { (ac_try="$ac_compile"
3023 case "(($ac_try" in
3024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3025 *) ac_try_echo=$ac_try;;
3026 esac
3027 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3028 (eval "$ac_compile") 2>conftest.er1
3029 ac_status=$?
3030 grep -v '^ *+' conftest.er1 >conftest.err
3031 rm -f conftest.er1
3032 cat conftest.err >&5
3033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3034 (exit $ac_status); } && {
3035 test -z "$ac_c_werror_flag" ||
3036 test ! -s conftest.err
3037 } && test -s conftest.$ac_objext; then
3038 ac_cv_prog_cc_g=yes
3039 else
3040 echo "$as_me: failed program was:" >&5
3041 sed 's/^/| /' conftest.$ac_ext >&5
3046 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3049 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3052 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3053 ac_c_werror_flag=$ac_save_c_werror_flag
3055 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3056 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3057 if test "$ac_test_CFLAGS" = set; then
3058 CFLAGS=$ac_save_CFLAGS
3059 elif test $ac_cv_prog_cc_g = yes; then
3060 if test "$GCC" = yes; then
3061 CFLAGS="-g -O2"
3062 else
3063 CFLAGS="-g"
3065 else
3066 if test "$GCC" = yes; then
3067 CFLAGS="-O2"
3068 else
3069 CFLAGS=
3072 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3073 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3074 if test "${ac_cv_prog_cc_c89+set}" = set; then
3075 echo $ECHO_N "(cached) $ECHO_C" >&6
3076 else
3077 ac_cv_prog_cc_c89=no
3078 ac_save_CC=$CC
3079 cat >conftest.$ac_ext <<_ACEOF
3080 /* confdefs.h. */
3081 _ACEOF
3082 cat confdefs.h >>conftest.$ac_ext
3083 cat >>conftest.$ac_ext <<_ACEOF
3084 /* end confdefs.h. */
3085 #include <stdarg.h>
3086 #include <stdio.h>
3087 #include <sys/types.h>
3088 #include <sys/stat.h>
3089 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3090 struct buf { int x; };
3091 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3092 static char *e (p, i)
3093 char **p;
3094 int i;
3096 return p[i];
3098 static char *f (char * (*g) (char **, int), char **p, ...)
3100 char *s;
3101 va_list v;
3102 va_start (v,p);
3103 s = g (p, va_arg (v,int));
3104 va_end (v);
3105 return s;
3108 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3109 function prototypes and stuff, but not '\xHH' hex character constants.
3110 These don't provoke an error unfortunately, instead are silently treated
3111 as 'x'. The following induces an error, until -std is added to get
3112 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3113 array size at least. It's necessary to write '\x00'==0 to get something
3114 that's true only with -std. */
3115 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3117 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3118 inside strings and character constants. */
3119 #define FOO(x) 'x'
3120 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3122 int test (int i, double x);
3123 struct s1 {int (*f) (int a);};
3124 struct s2 {int (*f) (double a);};
3125 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3126 int argc;
3127 char **argv;
3129 main ()
3131 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3133 return 0;
3135 _ACEOF
3136 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3137 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3139 CC="$ac_save_CC $ac_arg"
3140 rm -f conftest.$ac_objext
3141 if { (ac_try="$ac_compile"
3142 case "(($ac_try" in
3143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3144 *) ac_try_echo=$ac_try;;
3145 esac
3146 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3147 (eval "$ac_compile") 2>conftest.er1
3148 ac_status=$?
3149 grep -v '^ *+' conftest.er1 >conftest.err
3150 rm -f conftest.er1
3151 cat conftest.err >&5
3152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3153 (exit $ac_status); } && {
3154 test -z "$ac_c_werror_flag" ||
3155 test ! -s conftest.err
3156 } && test -s conftest.$ac_objext; then
3157 ac_cv_prog_cc_c89=$ac_arg
3158 else
3159 echo "$as_me: failed program was:" >&5
3160 sed 's/^/| /' conftest.$ac_ext >&5
3165 rm -f core conftest.err conftest.$ac_objext
3166 test "x$ac_cv_prog_cc_c89" != "xno" && break
3167 done
3168 rm -f conftest.$ac_ext
3169 CC=$ac_save_CC
3172 # AC_CACHE_VAL
3173 case "x$ac_cv_prog_cc_c89" in
3175 { echo "$as_me:$LINENO: result: none needed" >&5
3176 echo "${ECHO_T}none needed" >&6; } ;;
3177 xno)
3178 { echo "$as_me:$LINENO: result: unsupported" >&5
3179 echo "${ECHO_T}unsupported" >&6; } ;;
3181 CC="$CC $ac_cv_prog_cc_c89"
3182 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3183 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3184 esac
3187 ac_ext=c
3188 ac_cpp='$CPP $CPPFLAGS'
3189 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3190 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3191 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3196 { echo "$as_me:$LINENO: checking for --with-cxx-main=<compiler>" >&5
3197 echo $ECHO_N "checking for --with-cxx-main=<compiler>... $ECHO_C" >&6; }
3199 # Check whether --with-cxx_main was given.
3200 if test "${with_cxx_main+set}" = set; then
3201 withval=$with_cxx_main;
3203 case $withval in
3204 no) with_cxx_main=no
3205 MAINCC='$(CC)';;
3206 yes) with_cxx_main=yes
3207 MAINCC='$(CXX)';;
3208 *) with_cxx_main=yes
3209 MAINCC=$withval
3210 if test -z "$CXX"
3211 then
3212 CXX=$withval
3213 fi;;
3214 esac
3215 else
3217 with_cxx_main=no
3218 MAINCC='$(CC)'
3222 { echo "$as_me:$LINENO: result: $with_cxx_main" >&5
3223 echo "${ECHO_T}$with_cxx_main" >&6; }
3225 preset_cxx="$CXX"
3226 if test -z "$CXX"
3227 then
3228 case "$CC" in
3229 gcc) # Extract the first word of "g++", so it can be a program name with args.
3230 set dummy g++; ac_word=$2
3231 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3232 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3233 if test "${ac_cv_path_CXX+set}" = set; then
3234 echo $ECHO_N "(cached) $ECHO_C" >&6
3235 else
3236 case $CXX in
3237 [\\/]* | ?:[\\/]*)
3238 ac_cv_path_CXX="$CXX" # Let the user override the test with a path.
3241 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3242 for as_dir in notfound
3244 IFS=$as_save_IFS
3245 test -z "$as_dir" && as_dir=.
3246 for ac_exec_ext in '' $ac_executable_extensions; do
3247 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3248 ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext"
3249 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3250 break 2
3252 done
3253 done
3254 IFS=$as_save_IFS
3256 test -z "$ac_cv_path_CXX" && ac_cv_path_CXX="g++"
3258 esac
3260 CXX=$ac_cv_path_CXX
3261 if test -n "$CXX"; then
3262 { echo "$as_me:$LINENO: result: $CXX" >&5
3263 echo "${ECHO_T}$CXX" >&6; }
3264 else
3265 { echo "$as_me:$LINENO: result: no" >&5
3266 echo "${ECHO_T}no" >&6; }
3270 cc) # Extract the first word of "c++", so it can be a program name with args.
3271 set dummy c++; ac_word=$2
3272 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3273 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3274 if test "${ac_cv_path_CXX+set}" = set; then
3275 echo $ECHO_N "(cached) $ECHO_C" >&6
3276 else
3277 case $CXX in
3278 [\\/]* | ?:[\\/]*)
3279 ac_cv_path_CXX="$CXX" # Let the user override the test with a path.
3282 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3283 for as_dir in notfound
3285 IFS=$as_save_IFS
3286 test -z "$as_dir" && as_dir=.
3287 for ac_exec_ext in '' $ac_executable_extensions; do
3288 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3289 ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext"
3290 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3291 break 2
3293 done
3294 done
3295 IFS=$as_save_IFS
3297 test -z "$ac_cv_path_CXX" && ac_cv_path_CXX="c++"
3299 esac
3301 CXX=$ac_cv_path_CXX
3302 if test -n "$CXX"; then
3303 { echo "$as_me:$LINENO: result: $CXX" >&5
3304 echo "${ECHO_T}$CXX" >&6; }
3305 else
3306 { echo "$as_me:$LINENO: result: no" >&5
3307 echo "${ECHO_T}no" >&6; }
3311 esac
3312 if test "$CXX" = "notfound"
3313 then
3314 CXX=""
3317 if test -z "$CXX"
3318 then
3319 for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
3321 # Extract the first word of "$ac_prog", so it can be a program name with args.
3322 set dummy $ac_prog; ac_word=$2
3323 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3324 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3325 if test "${ac_cv_prog_CXX+set}" = set; then
3326 echo $ECHO_N "(cached) $ECHO_C" >&6
3327 else
3328 if test -n "$CXX"; then
3329 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3330 else
3331 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3332 for as_dir in $PATH
3334 IFS=$as_save_IFS
3335 test -z "$as_dir" && as_dir=.
3336 for ac_exec_ext in '' $ac_executable_extensions; do
3337 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3338 ac_cv_prog_CXX="$ac_prog"
3339 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3340 break 2
3342 done
3343 done
3344 IFS=$as_save_IFS
3348 CXX=$ac_cv_prog_CXX
3349 if test -n "$CXX"; then
3350 { echo "$as_me:$LINENO: result: $CXX" >&5
3351 echo "${ECHO_T}$CXX" >&6; }
3352 else
3353 { echo "$as_me:$LINENO: result: no" >&5
3354 echo "${ECHO_T}no" >&6; }
3358 test -n "$CXX" && break
3359 done
3360 test -n "$CXX" || CXX="notfound"
3362 if test "$CXX" = "notfound"
3363 then
3364 CXX=""
3367 if test "$preset_cxx" != "$CXX"
3368 then
3369 { echo "$as_me:$LINENO: WARNING:
3371 By default, distutils will build C++ extension modules with \"$CXX\".
3372 If this is not intended, then set CXX on the configure command line.
3373 " >&5
3374 echo "$as_me: WARNING:
3376 By default, distutils will build C++ extension modules with \"$CXX\".
3377 If this is not intended, then set CXX on the configure command line.
3378 " >&2;}
3382 # checks for UNIX variants that set C preprocessor variables
3384 ac_ext=c
3385 ac_cpp='$CPP $CPPFLAGS'
3386 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3387 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3388 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3389 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3390 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3391 # On Suns, sometimes $CPP names a directory.
3392 if test -n "$CPP" && test -d "$CPP"; then
3393 CPP=
3395 if test -z "$CPP"; then
3396 if test "${ac_cv_prog_CPP+set}" = set; then
3397 echo $ECHO_N "(cached) $ECHO_C" >&6
3398 else
3399 # Double quotes because CPP needs to be expanded
3400 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3402 ac_preproc_ok=false
3403 for ac_c_preproc_warn_flag in '' yes
3405 # Use a header file that comes with gcc, so configuring glibc
3406 # with a fresh cross-compiler works.
3407 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3408 # <limits.h> exists even on freestanding compilers.
3409 # On the NeXT, cc -E runs the code through the compiler's parser,
3410 # not just through cpp. "Syntax error" is here to catch this case.
3411 cat >conftest.$ac_ext <<_ACEOF
3412 /* confdefs.h. */
3413 _ACEOF
3414 cat confdefs.h >>conftest.$ac_ext
3415 cat >>conftest.$ac_ext <<_ACEOF
3416 /* end confdefs.h. */
3417 #ifdef __STDC__
3418 # include <limits.h>
3419 #else
3420 # include <assert.h>
3421 #endif
3422 Syntax error
3423 _ACEOF
3424 if { (ac_try="$ac_cpp conftest.$ac_ext"
3425 case "(($ac_try" in
3426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3427 *) ac_try_echo=$ac_try;;
3428 esac
3429 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3430 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3431 ac_status=$?
3432 grep -v '^ *+' conftest.er1 >conftest.err
3433 rm -f conftest.er1
3434 cat conftest.err >&5
3435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3436 (exit $ac_status); } >/dev/null && {
3437 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3438 test ! -s conftest.err
3439 }; then
3441 else
3442 echo "$as_me: failed program was:" >&5
3443 sed 's/^/| /' conftest.$ac_ext >&5
3445 # Broken: fails on valid input.
3446 continue
3449 rm -f conftest.err conftest.$ac_ext
3451 # OK, works on sane cases. Now check whether nonexistent headers
3452 # can be detected and how.
3453 cat >conftest.$ac_ext <<_ACEOF
3454 /* confdefs.h. */
3455 _ACEOF
3456 cat confdefs.h >>conftest.$ac_ext
3457 cat >>conftest.$ac_ext <<_ACEOF
3458 /* end confdefs.h. */
3459 #include <ac_nonexistent.h>
3460 _ACEOF
3461 if { (ac_try="$ac_cpp conftest.$ac_ext"
3462 case "(($ac_try" in
3463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3464 *) ac_try_echo=$ac_try;;
3465 esac
3466 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3467 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3468 ac_status=$?
3469 grep -v '^ *+' conftest.er1 >conftest.err
3470 rm -f conftest.er1
3471 cat conftest.err >&5
3472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3473 (exit $ac_status); } >/dev/null && {
3474 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3475 test ! -s conftest.err
3476 }; then
3477 # Broken: success on invalid input.
3478 continue
3479 else
3480 echo "$as_me: failed program was:" >&5
3481 sed 's/^/| /' conftest.$ac_ext >&5
3483 # Passes both tests.
3484 ac_preproc_ok=:
3485 break
3488 rm -f conftest.err conftest.$ac_ext
3490 done
3491 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3492 rm -f conftest.err conftest.$ac_ext
3493 if $ac_preproc_ok; then
3494 break
3497 done
3498 ac_cv_prog_CPP=$CPP
3501 CPP=$ac_cv_prog_CPP
3502 else
3503 ac_cv_prog_CPP=$CPP
3505 { echo "$as_me:$LINENO: result: $CPP" >&5
3506 echo "${ECHO_T}$CPP" >&6; }
3507 ac_preproc_ok=false
3508 for ac_c_preproc_warn_flag in '' yes
3510 # Use a header file that comes with gcc, so configuring glibc
3511 # with a fresh cross-compiler works.
3512 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3513 # <limits.h> exists even on freestanding compilers.
3514 # On the NeXT, cc -E runs the code through the compiler's parser,
3515 # not just through cpp. "Syntax error" is here to catch this case.
3516 cat >conftest.$ac_ext <<_ACEOF
3517 /* confdefs.h. */
3518 _ACEOF
3519 cat confdefs.h >>conftest.$ac_ext
3520 cat >>conftest.$ac_ext <<_ACEOF
3521 /* end confdefs.h. */
3522 #ifdef __STDC__
3523 # include <limits.h>
3524 #else
3525 # include <assert.h>
3526 #endif
3527 Syntax error
3528 _ACEOF
3529 if { (ac_try="$ac_cpp conftest.$ac_ext"
3530 case "(($ac_try" in
3531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3532 *) ac_try_echo=$ac_try;;
3533 esac
3534 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3535 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3536 ac_status=$?
3537 grep -v '^ *+' conftest.er1 >conftest.err
3538 rm -f conftest.er1
3539 cat conftest.err >&5
3540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3541 (exit $ac_status); } >/dev/null && {
3542 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3543 test ! -s conftest.err
3544 }; then
3546 else
3547 echo "$as_me: failed program was:" >&5
3548 sed 's/^/| /' conftest.$ac_ext >&5
3550 # Broken: fails on valid input.
3551 continue
3554 rm -f conftest.err conftest.$ac_ext
3556 # OK, works on sane cases. Now check whether nonexistent headers
3557 # can be detected and how.
3558 cat >conftest.$ac_ext <<_ACEOF
3559 /* confdefs.h. */
3560 _ACEOF
3561 cat confdefs.h >>conftest.$ac_ext
3562 cat >>conftest.$ac_ext <<_ACEOF
3563 /* end confdefs.h. */
3564 #include <ac_nonexistent.h>
3565 _ACEOF
3566 if { (ac_try="$ac_cpp conftest.$ac_ext"
3567 case "(($ac_try" in
3568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3569 *) ac_try_echo=$ac_try;;
3570 esac
3571 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3572 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3573 ac_status=$?
3574 grep -v '^ *+' conftest.er1 >conftest.err
3575 rm -f conftest.er1
3576 cat conftest.err >&5
3577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3578 (exit $ac_status); } >/dev/null && {
3579 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3580 test ! -s conftest.err
3581 }; then
3582 # Broken: success on invalid input.
3583 continue
3584 else
3585 echo "$as_me: failed program was:" >&5
3586 sed 's/^/| /' conftest.$ac_ext >&5
3588 # Passes both tests.
3589 ac_preproc_ok=:
3590 break
3593 rm -f conftest.err conftest.$ac_ext
3595 done
3596 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3597 rm -f conftest.err conftest.$ac_ext
3598 if $ac_preproc_ok; then
3600 else
3601 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3602 See \`config.log' for more details." >&5
3603 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3604 See \`config.log' for more details." >&2;}
3605 { (exit 1); exit 1; }; }
3608 ac_ext=c
3609 ac_cpp='$CPP $CPPFLAGS'
3610 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3611 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3612 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3615 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3616 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3617 if test "${ac_cv_path_GREP+set}" = set; then
3618 echo $ECHO_N "(cached) $ECHO_C" >&6
3619 else
3620 # Extract the first word of "grep ggrep" to use in msg output
3621 if test -z "$GREP"; then
3622 set dummy grep ggrep; ac_prog_name=$2
3623 if test "${ac_cv_path_GREP+set}" = set; then
3624 echo $ECHO_N "(cached) $ECHO_C" >&6
3625 else
3626 ac_path_GREP_found=false
3627 # Loop through the user's path and test for each of PROGNAME-LIST
3628 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3629 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3631 IFS=$as_save_IFS
3632 test -z "$as_dir" && as_dir=.
3633 for ac_prog in grep ggrep; do
3634 for ac_exec_ext in '' $ac_executable_extensions; do
3635 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3636 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3637 # Check for GNU ac_path_GREP and select it if it is found.
3638 # Check for GNU $ac_path_GREP
3639 case `"$ac_path_GREP" --version 2>&1` in
3640 *GNU*)
3641 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3643 ac_count=0
3644 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3645 while :
3647 cat "conftest.in" "conftest.in" >"conftest.tmp"
3648 mv "conftest.tmp" "conftest.in"
3649 cp "conftest.in" "conftest.nl"
3650 echo 'GREP' >> "conftest.nl"
3651 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3652 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3653 ac_count=`expr $ac_count + 1`
3654 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3655 # Best one so far, save it but keep looking for a better one
3656 ac_cv_path_GREP="$ac_path_GREP"
3657 ac_path_GREP_max=$ac_count
3659 # 10*(2^10) chars as input seems more than enough
3660 test $ac_count -gt 10 && break
3661 done
3662 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3663 esac
3666 $ac_path_GREP_found && break 3
3667 done
3668 done
3670 done
3671 IFS=$as_save_IFS
3676 GREP="$ac_cv_path_GREP"
3677 if test -z "$GREP"; then
3678 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3679 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3680 { (exit 1); exit 1; }; }
3683 else
3684 ac_cv_path_GREP=$GREP
3689 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3690 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3691 GREP="$ac_cv_path_GREP"
3694 { echo "$as_me:$LINENO: checking for egrep" >&5
3695 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3696 if test "${ac_cv_path_EGREP+set}" = set; then
3697 echo $ECHO_N "(cached) $ECHO_C" >&6
3698 else
3699 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3700 then ac_cv_path_EGREP="$GREP -E"
3701 else
3702 # Extract the first word of "egrep" to use in msg output
3703 if test -z "$EGREP"; then
3704 set dummy egrep; ac_prog_name=$2
3705 if test "${ac_cv_path_EGREP+set}" = set; then
3706 echo $ECHO_N "(cached) $ECHO_C" >&6
3707 else
3708 ac_path_EGREP_found=false
3709 # Loop through the user's path and test for each of PROGNAME-LIST
3710 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3711 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3713 IFS=$as_save_IFS
3714 test -z "$as_dir" && as_dir=.
3715 for ac_prog in egrep; do
3716 for ac_exec_ext in '' $ac_executable_extensions; do
3717 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3718 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3719 # Check for GNU ac_path_EGREP and select it if it is found.
3720 # Check for GNU $ac_path_EGREP
3721 case `"$ac_path_EGREP" --version 2>&1` in
3722 *GNU*)
3723 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3725 ac_count=0
3726 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3727 while :
3729 cat "conftest.in" "conftest.in" >"conftest.tmp"
3730 mv "conftest.tmp" "conftest.in"
3731 cp "conftest.in" "conftest.nl"
3732 echo 'EGREP' >> "conftest.nl"
3733 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3734 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3735 ac_count=`expr $ac_count + 1`
3736 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3737 # Best one so far, save it but keep looking for a better one
3738 ac_cv_path_EGREP="$ac_path_EGREP"
3739 ac_path_EGREP_max=$ac_count
3741 # 10*(2^10) chars as input seems more than enough
3742 test $ac_count -gt 10 && break
3743 done
3744 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3745 esac
3748 $ac_path_EGREP_found && break 3
3749 done
3750 done
3752 done
3753 IFS=$as_save_IFS
3758 EGREP="$ac_cv_path_EGREP"
3759 if test -z "$EGREP"; then
3760 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3761 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3762 { (exit 1); exit 1; }; }
3765 else
3766 ac_cv_path_EGREP=$EGREP
3772 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3773 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3774 EGREP="$ac_cv_path_EGREP"
3778 { echo "$as_me:$LINENO: checking for AIX" >&5
3779 echo $ECHO_N "checking for AIX... $ECHO_C" >&6; }
3780 cat >conftest.$ac_ext <<_ACEOF
3781 /* confdefs.h. */
3782 _ACEOF
3783 cat confdefs.h >>conftest.$ac_ext
3784 cat >>conftest.$ac_ext <<_ACEOF
3785 /* end confdefs.h. */
3786 #ifdef _AIX
3788 #endif
3790 _ACEOF
3791 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3792 $EGREP "yes" >/dev/null 2>&1; then
3793 { echo "$as_me:$LINENO: result: yes" >&5
3794 echo "${ECHO_T}yes" >&6; }
3795 cat >>confdefs.h <<\_ACEOF
3796 #define _ALL_SOURCE 1
3797 _ACEOF
3799 else
3800 { echo "$as_me:$LINENO: result: no" >&5
3801 echo "${ECHO_T}no" >&6; }
3803 rm -f conftest*
3807 # Check for unsupported systems
3808 case $ac_sys_system/$ac_sys_release in
3809 atheos*|Linux*/1*)
3810 echo This system \($ac_sys_system/$ac_sys_release\) is no longer supported.
3811 echo See README for details.
3812 exit 1;;
3813 esac
3816 { echo "$as_me:$LINENO: checking for --with-suffix" >&5
3817 echo $ECHO_N "checking for --with-suffix... $ECHO_C" >&6; }
3819 # Check whether --with-suffix was given.
3820 if test "${with_suffix+set}" = set; then
3821 withval=$with_suffix;
3822 case $withval in
3823 no) EXEEXT=;;
3824 yes) EXEEXT=.exe;;
3825 *) EXEEXT=$withval;;
3826 esac
3829 { echo "$as_me:$LINENO: result: $EXEEXT" >&5
3830 echo "${ECHO_T}$EXEEXT" >&6; }
3832 # Test whether we're running on a non-case-sensitive system, in which
3833 # case we give a warning if no ext is given
3835 { echo "$as_me:$LINENO: checking for case-insensitive build directory" >&5
3836 echo $ECHO_N "checking for case-insensitive build directory... $ECHO_C" >&6; }
3837 if test ! -d CaseSensitiveTestDir; then
3838 mkdir CaseSensitiveTestDir
3841 if test -d casesensitivetestdir
3842 then
3843 { echo "$as_me:$LINENO: result: yes" >&5
3844 echo "${ECHO_T}yes" >&6; }
3845 BUILDEXEEXT=.exe
3846 else
3847 { echo "$as_me:$LINENO: result: no" >&5
3848 echo "${ECHO_T}no" >&6; }
3849 BUILDEXEEXT=$EXEEXT
3851 rmdir CaseSensitiveTestDir
3853 case $MACHDEP in
3854 bsdos*)
3855 case $CC in
3856 gcc) CC="$CC -D_HAVE_BSDI";;
3857 esac;;
3858 esac
3860 case $ac_sys_system in
3861 hp*|HP*)
3862 case $CC in
3863 cc|*/cc) CC="$CC -Ae";;
3864 esac;;
3865 Monterey*)
3866 case $CC in
3867 cc) CC="$CC -Wl,-Bexport";;
3868 esac;;
3869 SunOS*)
3870 # Some functions have a prototype only with that define, e.g. confstr
3872 cat >>confdefs.h <<\_ACEOF
3873 #define __EXTENSIONS__ 1
3874 _ACEOF
3877 esac
3881 { echo "$as_me:$LINENO: checking LIBRARY" >&5
3882 echo $ECHO_N "checking LIBRARY... $ECHO_C" >&6; }
3883 if test -z "$LIBRARY"
3884 then
3885 LIBRARY='libpython$(VERSION).a'
3887 { echo "$as_me:$LINENO: result: $LIBRARY" >&5
3888 echo "${ECHO_T}$LIBRARY" >&6; }
3890 # LDLIBRARY is the name of the library to link against (as opposed to the
3891 # name of the library into which to insert object files). BLDLIBRARY is also
3892 # the library to link against, usually. On Mac OS X frameworks, BLDLIBRARY
3893 # is blank as the main program is not linked directly against LDLIBRARY.
3894 # LDLIBRARYDIR is the path to LDLIBRARY, which is made in a subdirectory. On
3895 # systems without shared libraries, LDLIBRARY is the same as LIBRARY
3896 # (defined in the Makefiles). On Cygwin LDLIBRARY is the import library,
3897 # DLLLIBRARY is the shared (i.e., DLL) library.
3899 # RUNSHARED is used to run shared python without installed libraries
3901 # INSTSONAME is the name of the shared library that will be use to install
3902 # on the system - some systems like version suffix, others don't
3909 LDLIBRARY="$LIBRARY"
3910 BLDLIBRARY='$(LDLIBRARY)'
3911 INSTSONAME='$(LDLIBRARY)'
3912 DLLLIBRARY=''
3913 LDLIBRARYDIR=''
3914 RUNSHARED=''
3916 # LINKCC is the command that links the python executable -- default is $(CC).
3917 # If CXX is set, and if it is needed to link a main function that was
3918 # compiled with CXX, LINKCC is CXX instead. Always using CXX is undesirable:
3919 # python might then depend on the C++ runtime
3920 # This is altered for AIX in order to build the export list before
3921 # linking.
3923 { echo "$as_me:$LINENO: checking LINKCC" >&5
3924 echo $ECHO_N "checking LINKCC... $ECHO_C" >&6; }
3925 if test -z "$LINKCC"
3926 then
3927 LINKCC='$(PURIFY) $(MAINCC)'
3928 case $ac_sys_system in
3929 AIX*)
3930 exp_extra="\"\""
3931 if test $ac_sys_release -ge 5 -o \
3932 $ac_sys_release -eq 4 -a `uname -r` -ge 2 ; then
3933 exp_extra="."
3935 LINKCC="\$(srcdir)/Modules/makexp_aix Modules/python.exp $exp_extra \$(LIBRARY); $LINKCC";;
3936 Monterey64*)
3937 LINKCC="$LINKCC -L/usr/lib/ia64l64";;
3938 QNX*)
3939 # qcc must be used because the other compilers do not
3940 # support -N.
3941 LINKCC=qcc;;
3942 esac
3944 { echo "$as_me:$LINENO: result: $LINKCC" >&5
3945 echo "${ECHO_T}$LINKCC" >&6; }
3947 { echo "$as_me:$LINENO: checking for --enable-shared" >&5
3948 echo $ECHO_N "checking for --enable-shared... $ECHO_C" >&6; }
3949 # Check whether --enable-shared was given.
3950 if test "${enable_shared+set}" = set; then
3951 enableval=$enable_shared;
3955 if test -z "$enable_shared"
3956 then
3957 case $ac_sys_system in
3958 CYGWIN* | atheos*)
3959 enable_shared="yes";;
3961 enable_shared="no";;
3962 esac
3964 { echo "$as_me:$LINENO: result: $enable_shared" >&5
3965 echo "${ECHO_T}$enable_shared" >&6; }
3967 { echo "$as_me:$LINENO: checking for --enable-profiling" >&5
3968 echo $ECHO_N "checking for --enable-profiling... $ECHO_C" >&6; }
3969 # Check whether --enable-profiling was given.
3970 if test "${enable_profiling+set}" = set; then
3971 enableval=$enable_profiling; ac_save_cc="$CC"
3972 CC="$CC -pg"
3973 if test "$cross_compiling" = yes; then
3974 ac_enable_profiling="no"
3975 else
3976 cat >conftest.$ac_ext <<_ACEOF
3977 /* confdefs.h. */
3978 _ACEOF
3979 cat confdefs.h >>conftest.$ac_ext
3980 cat >>conftest.$ac_ext <<_ACEOF
3981 /* end confdefs.h. */
3982 int main() { return 0; }
3983 _ACEOF
3984 rm -f conftest$ac_exeext
3985 if { (ac_try="$ac_link"
3986 case "(($ac_try" in
3987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3988 *) ac_try_echo=$ac_try;;
3989 esac
3990 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3991 (eval "$ac_link") 2>&5
3992 ac_status=$?
3993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3994 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3995 { (case "(($ac_try" in
3996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3997 *) ac_try_echo=$ac_try;;
3998 esac
3999 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4000 (eval "$ac_try") 2>&5
4001 ac_status=$?
4002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4003 (exit $ac_status); }; }; then
4004 ac_enable_profiling="yes"
4005 else
4006 echo "$as_me: program exited with status $ac_status" >&5
4007 echo "$as_me: failed program was:" >&5
4008 sed 's/^/| /' conftest.$ac_ext >&5
4010 ( exit $ac_status )
4011 ac_enable_profiling="no"
4013 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4017 CC="$ac_save_cc"
4020 { echo "$as_me:$LINENO: result: $ac_enable_profiling" >&5
4021 echo "${ECHO_T}$ac_enable_profiling" >&6; }
4023 case "$ac_enable_profiling" in
4024 "yes")
4025 BASECFLAGS="-pg $BASECFLAGS"
4026 LDFLAGS="-pg $LDFLAGS"
4028 esac
4030 { echo "$as_me:$LINENO: checking LDLIBRARY" >&5
4031 echo $ECHO_N "checking LDLIBRARY... $ECHO_C" >&6; }
4033 # MacOSX framework builds need more magic. LDLIBRARY is the dynamic
4034 # library that we build, but we do not want to link against it (we
4035 # will find it with a -framework option). For this reason there is an
4036 # extra variable BLDLIBRARY against which Python and the extension
4037 # modules are linked, BLDLIBRARY. This is normally the same as
4038 # LDLIBRARY, but empty for MacOSX framework builds.
4039 if test "$enable_framework"
4040 then
4041 LDLIBRARY='$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
4042 RUNSHARED=DYLD_FRAMEWORK_PATH="`pwd`:$DYLD_FRAMEWORK_PATH"
4043 BLDLIBRARY=''
4044 else
4045 BLDLIBRARY='$(LDLIBRARY)'
4048 # Other platforms follow
4049 if test $enable_shared = "yes"; then
4051 cat >>confdefs.h <<\_ACEOF
4052 #define Py_ENABLE_SHARED 1
4053 _ACEOF
4055 case $ac_sys_system in
4056 CYGWIN*)
4057 LDLIBRARY='libpython$(VERSION).dll.a'
4058 DLLLIBRARY='libpython$(VERSION).dll'
4060 SunOS*)
4061 LDLIBRARY='libpython$(VERSION).so'
4062 BLDLIBRARY='-Wl,-R,$(LIBDIR) -L. -lpython$(VERSION)'
4063 RUNSHARED=LD_LIBRARY_PATH=`pwd`:${LD_LIBRARY_PATH}
4064 INSTSONAME="$LDLIBRARY".$SOVERSION
4066 Linux*|GNU*|NetBSD*|FreeBSD*|DragonFly*)
4067 LDLIBRARY='libpython$(VERSION).so'
4068 BLDLIBRARY='-L. -lpython$(VERSION)'
4069 RUNSHARED=LD_LIBRARY_PATH=`pwd`:${LD_LIBRARY_PATH}
4070 case $ac_sys_system in
4071 FreeBSD*)
4072 SOVERSION=`echo $SOVERSION|cut -d "." -f 1`
4074 esac
4075 INSTSONAME="$LDLIBRARY".$SOVERSION
4077 hp*|HP*)
4078 case `uname -m` in
4079 ia64)
4080 LDLIBRARY='libpython$(VERSION).so'
4083 LDLIBRARY='libpython$(VERSION).sl'
4085 esac
4086 BLDLIBRARY='-Wl,+b,$(LIBDIR) -L. -lpython$(VERSION)'
4087 RUNSHARED=SHLIB_PATH=`pwd`:${SHLIB_PATH}
4089 OSF*)
4090 LDLIBRARY='libpython$(VERSION).so'
4091 BLDLIBRARY='-rpath $(LIBDIR) -L. -lpython$(VERSION)'
4092 RUNSHARED=LD_LIBRARY_PATH=`pwd`:${LD_LIBRARY_PATH}
4094 atheos*)
4095 LDLIBRARY='libpython$(VERSION).so'
4096 BLDLIBRARY='-L. -lpython$(VERSION)'
4097 RUNSHARED=DLL_PATH=`pwd`:${DLL_PATH:-/atheos/sys/libs:/atheos/autolnk/lib}
4099 Darwin*)
4100 LDLIBRARY='libpython$(VERSION).dylib'
4101 BLDLIBRARY='-L. -lpython$(VERSION)'
4102 RUNSHARED='DYLD_LIBRARY_PATH=`pwd`:${DYLD_LIBRARY_PATH}'
4105 esac
4106 else # shared is disabled
4107 case $ac_sys_system in
4108 CYGWIN*)
4109 BLDLIBRARY='$(LIBRARY)'
4110 LDLIBRARY='libpython$(VERSION).dll.a'
4112 esac
4115 { echo "$as_me:$LINENO: result: $LDLIBRARY" >&5
4116 echo "${ECHO_T}$LDLIBRARY" >&6; }
4118 if test -n "$ac_tool_prefix"; then
4119 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4120 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4121 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4122 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4123 if test "${ac_cv_prog_RANLIB+set}" = set; then
4124 echo $ECHO_N "(cached) $ECHO_C" >&6
4125 else
4126 if test -n "$RANLIB"; then
4127 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4128 else
4129 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4130 for as_dir in $PATH
4132 IFS=$as_save_IFS
4133 test -z "$as_dir" && as_dir=.
4134 for ac_exec_ext in '' $ac_executable_extensions; do
4135 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4136 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4137 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4138 break 2
4140 done
4141 done
4142 IFS=$as_save_IFS
4146 RANLIB=$ac_cv_prog_RANLIB
4147 if test -n "$RANLIB"; then
4148 { echo "$as_me:$LINENO: result: $RANLIB" >&5
4149 echo "${ECHO_T}$RANLIB" >&6; }
4150 else
4151 { echo "$as_me:$LINENO: result: no" >&5
4152 echo "${ECHO_T}no" >&6; }
4157 if test -z "$ac_cv_prog_RANLIB"; then
4158 ac_ct_RANLIB=$RANLIB
4159 # Extract the first word of "ranlib", so it can be a program name with args.
4160 set dummy ranlib; ac_word=$2
4161 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4162 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4163 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4164 echo $ECHO_N "(cached) $ECHO_C" >&6
4165 else
4166 if test -n "$ac_ct_RANLIB"; then
4167 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4168 else
4169 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4170 for as_dir in $PATH
4172 IFS=$as_save_IFS
4173 test -z "$as_dir" && as_dir=.
4174 for ac_exec_ext in '' $ac_executable_extensions; do
4175 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4176 ac_cv_prog_ac_ct_RANLIB="ranlib"
4177 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4178 break 2
4180 done
4181 done
4182 IFS=$as_save_IFS
4186 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4187 if test -n "$ac_ct_RANLIB"; then
4188 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4189 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
4190 else
4191 { echo "$as_me:$LINENO: result: no" >&5
4192 echo "${ECHO_T}no" >&6; }
4195 if test "x$ac_ct_RANLIB" = x; then
4196 RANLIB=":"
4197 else
4198 case $cross_compiling:$ac_tool_warned in
4199 yes:)
4200 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4201 whose name does not start with the host triplet. If you think this
4202 configuration is useful to you, please write to autoconf@gnu.org." >&5
4203 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4204 whose name does not start with the host triplet. If you think this
4205 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4206 ac_tool_warned=yes ;;
4207 esac
4208 RANLIB=$ac_ct_RANLIB
4210 else
4211 RANLIB="$ac_cv_prog_RANLIB"
4215 for ac_prog in ar aal
4217 # Extract the first word of "$ac_prog", so it can be a program name with args.
4218 set dummy $ac_prog; ac_word=$2
4219 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4220 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4221 if test "${ac_cv_prog_AR+set}" = set; then
4222 echo $ECHO_N "(cached) $ECHO_C" >&6
4223 else
4224 if test -n "$AR"; then
4225 ac_cv_prog_AR="$AR" # Let the user override the test.
4226 else
4227 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4228 for as_dir in $PATH
4230 IFS=$as_save_IFS
4231 test -z "$as_dir" && as_dir=.
4232 for ac_exec_ext in '' $ac_executable_extensions; do
4233 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4234 ac_cv_prog_AR="$ac_prog"
4235 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4236 break 2
4238 done
4239 done
4240 IFS=$as_save_IFS
4244 AR=$ac_cv_prog_AR
4245 if test -n "$AR"; then
4246 { echo "$as_me:$LINENO: result: $AR" >&5
4247 echo "${ECHO_T}$AR" >&6; }
4248 else
4249 { echo "$as_me:$LINENO: result: no" >&5
4250 echo "${ECHO_T}no" >&6; }
4254 test -n "$AR" && break
4255 done
4256 test -n "$AR" || AR="ar"
4260 # Extract the first word of "svnversion", so it can be a program name with args.
4261 set dummy svnversion; ac_word=$2
4262 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4263 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4264 if test "${ac_cv_prog_SVNVERSION+set}" = set; then
4265 echo $ECHO_N "(cached) $ECHO_C" >&6
4266 else
4267 if test -n "$SVNVERSION"; then
4268 ac_cv_prog_SVNVERSION="$SVNVERSION" # Let the user override the test.
4269 else
4270 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4271 for as_dir in $PATH
4273 IFS=$as_save_IFS
4274 test -z "$as_dir" && as_dir=.
4275 for ac_exec_ext in '' $ac_executable_extensions; do
4276 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4277 ac_cv_prog_SVNVERSION="found"
4278 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4279 break 2
4281 done
4282 done
4283 IFS=$as_save_IFS
4285 test -z "$ac_cv_prog_SVNVERSION" && ac_cv_prog_SVNVERSION="not-found"
4288 SVNVERSION=$ac_cv_prog_SVNVERSION
4289 if test -n "$SVNVERSION"; then
4290 { echo "$as_me:$LINENO: result: $SVNVERSION" >&5
4291 echo "${ECHO_T}$SVNVERSION" >&6; }
4292 else
4293 { echo "$as_me:$LINENO: result: no" >&5
4294 echo "${ECHO_T}no" >&6; }
4298 if test $SVNVERSION = found
4299 then
4300 SVNVERSION="svnversion \$(srcdir)"
4301 else
4302 SVNVERSION="echo exported"
4305 case $MACHDEP in
4306 bsdos*|hp*|HP*)
4307 # install -d does not work on BSDI or HP-UX
4308 if test -z "$INSTALL"
4309 then
4310 INSTALL="${srcdir}/install-sh -c"
4312 esac
4313 ac_aux_dir=
4314 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
4315 if test -f "$ac_dir/install-sh"; then
4316 ac_aux_dir=$ac_dir
4317 ac_install_sh="$ac_aux_dir/install-sh -c"
4318 break
4319 elif test -f "$ac_dir/install.sh"; then
4320 ac_aux_dir=$ac_dir
4321 ac_install_sh="$ac_aux_dir/install.sh -c"
4322 break
4323 elif test -f "$ac_dir/shtool"; then
4324 ac_aux_dir=$ac_dir
4325 ac_install_sh="$ac_aux_dir/shtool install -c"
4326 break
4328 done
4329 if test -z "$ac_aux_dir"; then
4330 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
4331 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
4332 { (exit 1); exit 1; }; }
4335 # These three variables are undocumented and unsupported,
4336 # and are intended to be withdrawn in a future Autoconf release.
4337 # They can cause serious problems if a builder's source tree is in a directory
4338 # whose full name contains unusual characters.
4339 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
4340 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
4341 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
4344 # Find a good install program. We prefer a C program (faster),
4345 # so one script is as good as another. But avoid the broken or
4346 # incompatible versions:
4347 # SysV /etc/install, /usr/sbin/install
4348 # SunOS /usr/etc/install
4349 # IRIX /sbin/install
4350 # AIX /bin/install
4351 # AmigaOS /C/install, which installs bootblocks on floppy discs
4352 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4353 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4354 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4355 # OS/2's system install, which has a completely different semantic
4356 # ./install, which can be erroneously created by make from ./install.sh.
4357 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4358 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
4359 if test -z "$INSTALL"; then
4360 if test "${ac_cv_path_install+set}" = set; then
4361 echo $ECHO_N "(cached) $ECHO_C" >&6
4362 else
4363 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4364 for as_dir in $PATH
4366 IFS=$as_save_IFS
4367 test -z "$as_dir" && as_dir=.
4368 # Account for people who put trailing slashes in PATH elements.
4369 case $as_dir/ in
4370 ./ | .// | /cC/* | \
4371 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4372 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4373 /usr/ucb/* ) ;;
4375 # OSF1 and SCO ODT 3.0 have their own names for install.
4376 # Don't use installbsd from OSF since it installs stuff as root
4377 # by default.
4378 for ac_prog in ginstall scoinst install; do
4379 for ac_exec_ext in '' $ac_executable_extensions; do
4380 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4381 if test $ac_prog = install &&
4382 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4383 # AIX install. It has an incompatible calling convention.
4385 elif test $ac_prog = install &&
4386 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4387 # program-specific install script used by HP pwplus--don't use.
4389 else
4390 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4391 break 3
4394 done
4395 done
4397 esac
4398 done
4399 IFS=$as_save_IFS
4403 if test "${ac_cv_path_install+set}" = set; then
4404 INSTALL=$ac_cv_path_install
4405 else
4406 # As a last resort, use the slow shell script. Don't cache a
4407 # value for INSTALL within a source directory, because that will
4408 # break other packages using the cache if that directory is
4409 # removed, or if the value is a relative name.
4410 INSTALL=$ac_install_sh
4413 { echo "$as_me:$LINENO: result: $INSTALL" >&5
4414 echo "${ECHO_T}$INSTALL" >&6; }
4416 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4417 # It thinks the first close brace ends the variable substitution.
4418 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4420 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4422 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4425 # Not every filesystem supports hard links
4427 if test -z "$LN" ; then
4428 case $ac_sys_system in
4429 CYGWIN*) LN="ln -s";;
4430 atheos*) LN="ln -s";;
4431 *) LN=ln;;
4432 esac
4435 # Check for --with-pydebug
4436 { echo "$as_me:$LINENO: checking for --with-pydebug" >&5
4437 echo $ECHO_N "checking for --with-pydebug... $ECHO_C" >&6; }
4439 # Check whether --with-pydebug was given.
4440 if test "${with_pydebug+set}" = set; then
4441 withval=$with_pydebug;
4442 if test "$withval" != no
4443 then
4445 cat >>confdefs.h <<\_ACEOF
4446 #define Py_DEBUG 1
4447 _ACEOF
4449 { echo "$as_me:$LINENO: result: yes" >&5
4450 echo "${ECHO_T}yes" >&6; };
4451 Py_DEBUG='true'
4452 else { echo "$as_me:$LINENO: result: no" >&5
4453 echo "${ECHO_T}no" >&6; }; Py_DEBUG='false'
4455 else
4456 { echo "$as_me:$LINENO: result: no" >&5
4457 echo "${ECHO_T}no" >&6; }
4461 # XXX Shouldn't the code above that fiddles with BASECFLAGS and OPT be
4462 # merged with this chunk of code?
4464 # Optimizer/debugger flags
4465 # ------------------------
4466 # (The following bit of code is complicated enough - please keep things
4467 # indented properly. Just pretend you're editing Python code. ;-)
4469 # There are two parallel sets of case statements below, one that checks to
4470 # see if OPT was set and one that does BASECFLAGS setting based upon
4471 # compiler and platform. BASECFLAGS tweaks need to be made even if the
4472 # user set OPT.
4474 # tweak OPT based on compiler and platform, only if the user didn't set
4475 # it on the command line
4477 if test -z "$OPT"
4478 then
4479 case $GCC in
4480 yes)
4481 if test "$CC" != 'g++' ; then
4482 STRICT_PROTO="-Wstrict-prototypes"
4484 # For gcc 4.x we need to use -fwrapv so lets check if its supported
4485 if "$CC" -v --help 2>/dev/null |grep -- -fwrapv > /dev/null; then
4486 WRAP="-fwrapv"
4488 case $ac_cv_prog_cc_g in
4489 yes)
4490 if test "$Py_DEBUG" = 'true' ; then
4491 # Optimization messes up debuggers, so turn it off for
4492 # debug builds.
4493 OPT="-g -Wall $STRICT_PROTO"
4494 else
4495 OPT="-g $WRAP -O3 -Wall $STRICT_PROTO"
4499 OPT="-O3 -Wall $STRICT_PROTO"
4501 esac
4502 case $ac_sys_system in
4503 SCO_SV*) OPT="$OPT -m486 -DSCO5"
4505 esac
4509 OPT="-O"
4511 esac
4513 # The current (beta) Monterey compiler dies with optimizations
4514 # XXX what is Monterey? Does it still die w/ -O? Can we get rid of this?
4515 case $ac_sys_system in
4516 Monterey*)
4517 OPT=""
4519 esac
4525 # The -arch flags for universal builds on OSX
4526 UNIVERSAL_ARCH_FLAGS=
4529 # tweak BASECFLAGS based on compiler and platform
4530 case $GCC in
4531 yes)
4532 # Python violates C99 rules, by casting between incompatible
4533 # pointer types. GCC may generate bad code as a result of that,
4534 # so use -fno-strict-aliasing if supported.
4535 { echo "$as_me:$LINENO: checking whether $CC accepts -fno-strict-aliasing" >&5
4536 echo $ECHO_N "checking whether $CC accepts -fno-strict-aliasing... $ECHO_C" >&6; }
4537 ac_save_cc="$CC"
4538 CC="$CC -fno-strict-aliasing"
4539 if test "$cross_compiling" = yes; then
4540 ac_cv_no_strict_aliasing_ok=no
4541 else
4542 cat >conftest.$ac_ext <<_ACEOF
4543 /* confdefs.h. */
4544 _ACEOF
4545 cat confdefs.h >>conftest.$ac_ext
4546 cat >>conftest.$ac_ext <<_ACEOF
4547 /* end confdefs.h. */
4548 int main() { return 0; }
4549 _ACEOF
4550 rm -f conftest$ac_exeext
4551 if { (ac_try="$ac_link"
4552 case "(($ac_try" in
4553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4554 *) ac_try_echo=$ac_try;;
4555 esac
4556 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4557 (eval "$ac_link") 2>&5
4558 ac_status=$?
4559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4560 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4561 { (case "(($ac_try" in
4562 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4563 *) ac_try_echo=$ac_try;;
4564 esac
4565 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4566 (eval "$ac_try") 2>&5
4567 ac_status=$?
4568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4569 (exit $ac_status); }; }; then
4570 ac_cv_no_strict_aliasing_ok=yes
4571 else
4572 echo "$as_me: program exited with status $ac_status" >&5
4573 echo "$as_me: failed program was:" >&5
4574 sed 's/^/| /' conftest.$ac_ext >&5
4576 ( exit $ac_status )
4577 ac_cv_no_strict_aliasing_ok=no
4579 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4583 CC="$ac_save_cc"
4584 { echo "$as_me:$LINENO: result: $ac_cv_no_strict_aliasing_ok" >&5
4585 echo "${ECHO_T}$ac_cv_no_strict_aliasing_ok" >&6; }
4586 if test $ac_cv_no_strict_aliasing_ok = yes
4587 then
4588 BASECFLAGS="$BASECFLAGS -fno-strict-aliasing"
4591 # if using gcc on alpha, use -mieee to get (near) full IEEE 754
4592 # support. Without this, treatment of subnormals doesn't follow
4593 # the standard.
4594 case $ac_sys_machine in
4595 alpha*)
4596 BASECFLAGS="$BASECFLAGS -mieee"
4598 esac
4600 case $ac_sys_system in
4601 SCO_SV*)
4602 BASECFLAGS="$BASECFLAGS -m486 -DSCO5"
4604 # is there any other compiler on Darwin besides gcc?
4605 Darwin*)
4606 # -Wno-long-double, -no-cpp-precomp, and -mno-fused-madd
4607 # used to be here, but non-Apple gcc doesn't accept them.
4610 if test "${enable_universalsdk}"; then
4611 UNIVERSAL_ARCH_FLAGS=""
4612 if test "$UNIVERSAL_ARCHS" = "32-bit" ; then
4613 UNIVERSAL_ARCH_FLAGS="-arch ppc -arch i386"
4614 ARCH_RUN_32BIT=""
4616 elif test "$UNIVERSAL_ARCHS" = "64-bit" ; then
4617 UNIVERSAL_ARCH_FLAGS="-arch ppc64 -arch x86_64"
4619 elif test "$UNIVERSAL_ARCHS" = "all" ; then
4620 UNIVERSAL_ARCH_FLAGS="-arch i386 -arch ppc -arch ppc64 -arch x86_64"
4621 ARCH_RUN_32BIT="arch -i386 -ppc"
4623 else
4624 { { echo "$as_me:$LINENO: error: proper usage is --with-universalarch=32-bit|64-bit|all" >&5
4625 echo "$as_me: error: proper usage is --with-universalarch=32-bit|64-bit|all" >&2;}
4626 { (exit 1); exit 1; }; }
4631 BASECFLAGS="${UNIVERSAL_ARCH_FLAGS} -isysroot ${UNIVERSALSDK} ${BASECFLAGS}"
4632 tgt=`sw_vers -productVersion | sed 's/\(10\.[0-9]*\).*/\1/'`
4633 if test "${UNIVERSALSDK}" != "/" -a "${tgt}" '>' '10.4' ; then
4634 CFLAGS="${UNIVERSAL_ARCH_FLAGS} -isysroot ${UNIVERSALSDK} ${CFLAGS}"
4638 # Calculate the right deployment target for this build.
4640 cur_target=`sw_vers -productVersion | sed 's/\(10\.[0-9]*\).*/\1/'`
4641 if test ${cur_target} '>' 10.2; then
4642 cur_target=10.3
4644 if test "${UNIVERSAL_ARCHS}" = "all"; then
4645 # Ensure that the default platform for a 4-way
4646 # universal build is OSX 10.5, that's the first
4647 # OS release where 4-way builds make sense.
4648 cur_target='10.5'
4650 CONFIGURE_MACOSX_DEPLOYMENT_TARGET=${MACOSX_DEPLOYMENT_TARGET-${cur_target}}
4652 # Make sure that MACOSX_DEPLOYMENT_TARGET is set in the
4653 # environment with a value that is the same as what we'll use
4654 # in the Makefile to ensure that we'll get the same compiler
4655 # environment during configure and build time.
4656 MACOSX_DEPLOYMENT_TARGET="$CONFIGURE_MACOSX_DEPLOYMENT_TARGET"
4657 export MACOSX_DEPLOYMENT_TARGET
4658 EXPORT_MACOSX_DEPLOYMENT_TARGET=''
4661 OSF*)
4662 BASECFLAGS="$BASECFLAGS -mieee"
4664 esac
4668 case $ac_sys_system in
4669 OpenUNIX*|UnixWare*)
4670 BASECFLAGS="$BASECFLAGS -K pentium,host,inline,loop_unroll,alloca "
4672 OSF*)
4673 BASECFLAGS="$BASECFLAGS -ieee -std"
4675 SCO_SV*)
4676 BASECFLAGS="$BASECFLAGS -belf -Ki486 -DSCO5"
4678 esac
4680 esac
4682 if test "$Py_DEBUG" = 'true'; then
4684 else
4685 OPT="-DNDEBUG $OPT"
4688 if test "$ac_arch_flags"
4689 then
4690 BASECFLAGS="$BASECFLAGS $ac_arch_flags"
4693 # disable check for icc since it seems to pass, but generates a warning
4694 if test "$CC" = icc
4695 then
4696 ac_cv_opt_olimit_ok=no
4699 { echo "$as_me:$LINENO: checking whether $CC accepts -OPT:Olimit=0" >&5
4700 echo $ECHO_N "checking whether $CC accepts -OPT:Olimit=0... $ECHO_C" >&6; }
4701 if test "${ac_cv_opt_olimit_ok+set}" = set; then
4702 echo $ECHO_N "(cached) $ECHO_C" >&6
4703 else
4704 ac_save_cc="$CC"
4705 CC="$CC -OPT:Olimit=0"
4706 if test "$cross_compiling" = yes; then
4707 ac_cv_opt_olimit_ok=no
4708 else
4709 cat >conftest.$ac_ext <<_ACEOF
4710 /* confdefs.h. */
4711 _ACEOF
4712 cat confdefs.h >>conftest.$ac_ext
4713 cat >>conftest.$ac_ext <<_ACEOF
4714 /* end confdefs.h. */
4715 int main() { return 0; }
4716 _ACEOF
4717 rm -f conftest$ac_exeext
4718 if { (ac_try="$ac_link"
4719 case "(($ac_try" in
4720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4721 *) ac_try_echo=$ac_try;;
4722 esac
4723 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4724 (eval "$ac_link") 2>&5
4725 ac_status=$?
4726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4727 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4728 { (case "(($ac_try" in
4729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4730 *) ac_try_echo=$ac_try;;
4731 esac
4732 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4733 (eval "$ac_try") 2>&5
4734 ac_status=$?
4735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4736 (exit $ac_status); }; }; then
4737 ac_cv_opt_olimit_ok=yes
4738 else
4739 echo "$as_me: program exited with status $ac_status" >&5
4740 echo "$as_me: failed program was:" >&5
4741 sed 's/^/| /' conftest.$ac_ext >&5
4743 ( exit $ac_status )
4744 ac_cv_opt_olimit_ok=no
4746 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4750 CC="$ac_save_cc"
4753 { echo "$as_me:$LINENO: result: $ac_cv_opt_olimit_ok" >&5
4754 echo "${ECHO_T}$ac_cv_opt_olimit_ok" >&6; }
4755 if test $ac_cv_opt_olimit_ok = yes; then
4756 case $ac_sys_system in
4757 # XXX is this branch needed? On MacOSX 10.2.2 the result of the
4758 # olimit_ok test is "no". Is it "yes" in some other Darwin-esque
4759 # environment?
4760 Darwin*)
4763 BASECFLAGS="$BASECFLAGS -OPT:Olimit=0"
4765 esac
4766 else
4767 { echo "$as_me:$LINENO: checking whether $CC accepts -Olimit 1500" >&5
4768 echo $ECHO_N "checking whether $CC accepts -Olimit 1500... $ECHO_C" >&6; }
4769 if test "${ac_cv_olimit_ok+set}" = set; then
4770 echo $ECHO_N "(cached) $ECHO_C" >&6
4771 else
4772 ac_save_cc="$CC"
4773 CC="$CC -Olimit 1500"
4774 if test "$cross_compiling" = yes; then
4775 ac_cv_olimit_ok=no
4776 else
4777 cat >conftest.$ac_ext <<_ACEOF
4778 /* confdefs.h. */
4779 _ACEOF
4780 cat confdefs.h >>conftest.$ac_ext
4781 cat >>conftest.$ac_ext <<_ACEOF
4782 /* end confdefs.h. */
4783 int main() { return 0; }
4784 _ACEOF
4785 rm -f conftest$ac_exeext
4786 if { (ac_try="$ac_link"
4787 case "(($ac_try" in
4788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4789 *) ac_try_echo=$ac_try;;
4790 esac
4791 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4792 (eval "$ac_link") 2>&5
4793 ac_status=$?
4794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4795 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4796 { (case "(($ac_try" in
4797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4798 *) ac_try_echo=$ac_try;;
4799 esac
4800 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4801 (eval "$ac_try") 2>&5
4802 ac_status=$?
4803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4804 (exit $ac_status); }; }; then
4805 ac_cv_olimit_ok=yes
4806 else
4807 echo "$as_me: program exited with status $ac_status" >&5
4808 echo "$as_me: failed program was:" >&5
4809 sed 's/^/| /' conftest.$ac_ext >&5
4811 ( exit $ac_status )
4812 ac_cv_olimit_ok=no
4814 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4818 CC="$ac_save_cc"
4821 { echo "$as_me:$LINENO: result: $ac_cv_olimit_ok" >&5
4822 echo "${ECHO_T}$ac_cv_olimit_ok" >&6; }
4823 if test $ac_cv_olimit_ok = yes; then
4824 BASECFLAGS="$BASECFLAGS -Olimit 1500"
4828 # Check whether GCC supports PyArg_ParseTuple format
4829 if test "$GCC" = "yes"
4830 then
4831 { echo "$as_me:$LINENO: checking whether gcc supports ParseTuple __format__" >&5
4832 echo $ECHO_N "checking whether gcc supports ParseTuple __format__... $ECHO_C" >&6; }
4833 save_CFLAGS=$CFLAGS
4834 CFLAGS="$CFLAGS -Werror"
4835 cat >conftest.$ac_ext <<_ACEOF
4836 /* confdefs.h. */
4837 _ACEOF
4838 cat confdefs.h >>conftest.$ac_ext
4839 cat >>conftest.$ac_ext <<_ACEOF
4840 /* end confdefs.h. */
4842 void f(char*,...)__attribute((format(PyArg_ParseTuple, 1, 2)));
4845 main ()
4849 return 0;
4851 _ACEOF
4852 rm -f conftest.$ac_objext
4853 if { (ac_try="$ac_compile"
4854 case "(($ac_try" in
4855 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4856 *) ac_try_echo=$ac_try;;
4857 esac
4858 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4859 (eval "$ac_compile") 2>conftest.er1
4860 ac_status=$?
4861 grep -v '^ *+' conftest.er1 >conftest.err
4862 rm -f conftest.er1
4863 cat conftest.err >&5
4864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4865 (exit $ac_status); } && {
4866 test -z "$ac_c_werror_flag" ||
4867 test ! -s conftest.err
4868 } && test -s conftest.$ac_objext; then
4870 cat >>confdefs.h <<\_ACEOF
4871 #define HAVE_ATTRIBUTE_FORMAT_PARSETUPLE 1
4872 _ACEOF
4874 { echo "$as_me:$LINENO: result: yes" >&5
4875 echo "${ECHO_T}yes" >&6; }
4876 else
4877 echo "$as_me: failed program was:" >&5
4878 sed 's/^/| /' conftest.$ac_ext >&5
4880 { echo "$as_me:$LINENO: result: no" >&5
4881 echo "${ECHO_T}no" >&6; }
4885 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4886 CFLAGS=$save_CFLAGS
4889 # On some compilers, pthreads are available without further options
4890 # (e.g. MacOS X). On some of these systems, the compiler will not
4891 # complain if unaccepted options are passed (e.g. gcc on Mac OS X).
4892 # So we have to see first whether pthreads are available without
4893 # options before we can check whether -Kpthread improves anything.
4894 { echo "$as_me:$LINENO: checking whether pthreads are available without options" >&5
4895 echo $ECHO_N "checking whether pthreads are available without options... $ECHO_C" >&6; }
4896 if test "${ac_cv_pthread_is_default+set}" = set; then
4897 echo $ECHO_N "(cached) $ECHO_C" >&6
4898 else
4899 if test "$cross_compiling" = yes; then
4900 ac_cv_pthread_is_default=no
4901 else
4902 cat >conftest.$ac_ext <<_ACEOF
4903 /* confdefs.h. */
4904 _ACEOF
4905 cat confdefs.h >>conftest.$ac_ext
4906 cat >>conftest.$ac_ext <<_ACEOF
4907 /* end confdefs.h. */
4909 #include <pthread.h>
4911 void* routine(void* p){return NULL;}
4913 int main(){
4914 pthread_t p;
4915 if(pthread_create(&p,NULL,routine,NULL)!=0)
4916 return 1;
4917 (void)pthread_detach(p);
4918 return 0;
4921 _ACEOF
4922 rm -f conftest$ac_exeext
4923 if { (ac_try="$ac_link"
4924 case "(($ac_try" in
4925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4926 *) ac_try_echo=$ac_try;;
4927 esac
4928 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4929 (eval "$ac_link") 2>&5
4930 ac_status=$?
4931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4932 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4933 { (case "(($ac_try" in
4934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4935 *) ac_try_echo=$ac_try;;
4936 esac
4937 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4938 (eval "$ac_try") 2>&5
4939 ac_status=$?
4940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4941 (exit $ac_status); }; }; then
4943 ac_cv_pthread_is_default=yes
4944 ac_cv_kthread=no
4945 ac_cv_pthread=no
4947 else
4948 echo "$as_me: program exited with status $ac_status" >&5
4949 echo "$as_me: failed program was:" >&5
4950 sed 's/^/| /' conftest.$ac_ext >&5
4952 ( exit $ac_status )
4953 ac_cv_pthread_is_default=no
4955 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4962 { echo "$as_me:$LINENO: result: $ac_cv_pthread_is_default" >&5
4963 echo "${ECHO_T}$ac_cv_pthread_is_default" >&6; }
4966 if test $ac_cv_pthread_is_default = yes
4967 then
4968 ac_cv_kpthread=no
4969 else
4970 # -Kpthread, if available, provides the right #defines
4971 # and linker options to make pthread_create available
4972 # Some compilers won't report that they do not support -Kpthread,
4973 # so we need to run a program to see whether it really made the
4974 # function available.
4975 { echo "$as_me:$LINENO: checking whether $CC accepts -Kpthread" >&5
4976 echo $ECHO_N "checking whether $CC accepts -Kpthread... $ECHO_C" >&6; }
4977 if test "${ac_cv_kpthread+set}" = set; then
4978 echo $ECHO_N "(cached) $ECHO_C" >&6
4979 else
4980 ac_save_cc="$CC"
4981 CC="$CC -Kpthread"
4982 if test "$cross_compiling" = yes; then
4983 ac_cv_kpthread=no
4984 else
4985 cat >conftest.$ac_ext <<_ACEOF
4986 /* confdefs.h. */
4987 _ACEOF
4988 cat confdefs.h >>conftest.$ac_ext
4989 cat >>conftest.$ac_ext <<_ACEOF
4990 /* end confdefs.h. */
4992 #include <pthread.h>
4994 void* routine(void* p){return NULL;}
4996 int main(){
4997 pthread_t p;
4998 if(pthread_create(&p,NULL,routine,NULL)!=0)
4999 return 1;
5000 (void)pthread_detach(p);
5001 return 0;
5004 _ACEOF
5005 rm -f conftest$ac_exeext
5006 if { (ac_try="$ac_link"
5007 case "(($ac_try" in
5008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5009 *) ac_try_echo=$ac_try;;
5010 esac
5011 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5012 (eval "$ac_link") 2>&5
5013 ac_status=$?
5014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5015 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5016 { (case "(($ac_try" in
5017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5018 *) ac_try_echo=$ac_try;;
5019 esac
5020 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5021 (eval "$ac_try") 2>&5
5022 ac_status=$?
5023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5024 (exit $ac_status); }; }; then
5025 ac_cv_kpthread=yes
5026 else
5027 echo "$as_me: program exited with status $ac_status" >&5
5028 echo "$as_me: failed program was:" >&5
5029 sed 's/^/| /' conftest.$ac_ext >&5
5031 ( exit $ac_status )
5032 ac_cv_kpthread=no
5034 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5038 CC="$ac_save_cc"
5041 { echo "$as_me:$LINENO: result: $ac_cv_kpthread" >&5
5042 echo "${ECHO_T}$ac_cv_kpthread" >&6; }
5045 if test $ac_cv_kpthread = no -a $ac_cv_pthread_is_default = no
5046 then
5047 # -Kthread, if available, provides the right #defines
5048 # and linker options to make pthread_create available
5049 # Some compilers won't report that they do not support -Kthread,
5050 # so we need to run a program to see whether it really made the
5051 # function available.
5052 { echo "$as_me:$LINENO: checking whether $CC accepts -Kthread" >&5
5053 echo $ECHO_N "checking whether $CC accepts -Kthread... $ECHO_C" >&6; }
5054 if test "${ac_cv_kthread+set}" = set; then
5055 echo $ECHO_N "(cached) $ECHO_C" >&6
5056 else
5057 ac_save_cc="$CC"
5058 CC="$CC -Kthread"
5059 if test "$cross_compiling" = yes; then
5060 ac_cv_kthread=no
5061 else
5062 cat >conftest.$ac_ext <<_ACEOF
5063 /* confdefs.h. */
5064 _ACEOF
5065 cat confdefs.h >>conftest.$ac_ext
5066 cat >>conftest.$ac_ext <<_ACEOF
5067 /* end confdefs.h. */
5069 #include <pthread.h>
5071 void* routine(void* p){return NULL;}
5073 int main(){
5074 pthread_t p;
5075 if(pthread_create(&p,NULL,routine,NULL)!=0)
5076 return 1;
5077 (void)pthread_detach(p);
5078 return 0;
5081 _ACEOF
5082 rm -f conftest$ac_exeext
5083 if { (ac_try="$ac_link"
5084 case "(($ac_try" in
5085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5086 *) ac_try_echo=$ac_try;;
5087 esac
5088 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5089 (eval "$ac_link") 2>&5
5090 ac_status=$?
5091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5092 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5093 { (case "(($ac_try" in
5094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5095 *) ac_try_echo=$ac_try;;
5096 esac
5097 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5098 (eval "$ac_try") 2>&5
5099 ac_status=$?
5100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5101 (exit $ac_status); }; }; then
5102 ac_cv_kthread=yes
5103 else
5104 echo "$as_me: program exited with status $ac_status" >&5
5105 echo "$as_me: failed program was:" >&5
5106 sed 's/^/| /' conftest.$ac_ext >&5
5108 ( exit $ac_status )
5109 ac_cv_kthread=no
5111 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5115 CC="$ac_save_cc"
5118 { echo "$as_me:$LINENO: result: $ac_cv_kthread" >&5
5119 echo "${ECHO_T}$ac_cv_kthread" >&6; }
5122 if test $ac_cv_kthread = no -a $ac_cv_pthread_is_default = no
5123 then
5124 # -pthread, if available, provides the right #defines
5125 # and linker options to make pthread_create available
5126 # Some compilers won't report that they do not support -pthread,
5127 # so we need to run a program to see whether it really made the
5128 # function available.
5129 { echo "$as_me:$LINENO: checking whether $CC accepts -pthread" >&5
5130 echo $ECHO_N "checking whether $CC accepts -pthread... $ECHO_C" >&6; }
5131 if test "${ac_cv_thread+set}" = set; then
5132 echo $ECHO_N "(cached) $ECHO_C" >&6
5133 else
5134 ac_save_cc="$CC"
5135 CC="$CC -pthread"
5136 if test "$cross_compiling" = yes; then
5137 ac_cv_pthread=no
5138 else
5139 cat >conftest.$ac_ext <<_ACEOF
5140 /* confdefs.h. */
5141 _ACEOF
5142 cat confdefs.h >>conftest.$ac_ext
5143 cat >>conftest.$ac_ext <<_ACEOF
5144 /* end confdefs.h. */
5146 #include <pthread.h>
5148 void* routine(void* p){return NULL;}
5150 int main(){
5151 pthread_t p;
5152 if(pthread_create(&p,NULL,routine,NULL)!=0)
5153 return 1;
5154 (void)pthread_detach(p);
5155 return 0;
5158 _ACEOF
5159 rm -f conftest$ac_exeext
5160 if { (ac_try="$ac_link"
5161 case "(($ac_try" in
5162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5163 *) ac_try_echo=$ac_try;;
5164 esac
5165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5166 (eval "$ac_link") 2>&5
5167 ac_status=$?
5168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5169 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5170 { (case "(($ac_try" in
5171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5172 *) ac_try_echo=$ac_try;;
5173 esac
5174 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5175 (eval "$ac_try") 2>&5
5176 ac_status=$?
5177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5178 (exit $ac_status); }; }; then
5179 ac_cv_pthread=yes
5180 else
5181 echo "$as_me: program exited with status $ac_status" >&5
5182 echo "$as_me: failed program was:" >&5
5183 sed 's/^/| /' conftest.$ac_ext >&5
5185 ( exit $ac_status )
5186 ac_cv_pthread=no
5188 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5192 CC="$ac_save_cc"
5195 { echo "$as_me:$LINENO: result: $ac_cv_pthread" >&5
5196 echo "${ECHO_T}$ac_cv_pthread" >&6; }
5199 # If we have set a CC compiler flag for thread support then
5200 # check if it works for CXX, too.
5201 ac_cv_cxx_thread=no
5202 if test ! -z "$CXX"
5203 then
5204 { echo "$as_me:$LINENO: checking whether $CXX also accepts flags for thread support" >&5
5205 echo $ECHO_N "checking whether $CXX also accepts flags for thread support... $ECHO_C" >&6; }
5206 ac_save_cxx="$CXX"
5208 if test "$ac_cv_kpthread" = "yes"
5209 then
5210 CXX="$CXX -Kpthread"
5211 ac_cv_cxx_thread=yes
5212 elif test "$ac_cv_kthread" = "yes"
5213 then
5214 CXX="$CXX -Kthread"
5215 ac_cv_cxx_thread=yes
5216 elif test "$ac_cv_pthread" = "yes"
5217 then
5218 CXX="$CXX -pthread"
5219 ac_cv_cxx_thread=yes
5222 if test $ac_cv_cxx_thread = yes
5223 then
5224 echo 'void foo();int main(){foo();}void foo(){}' > conftest.$ac_ext
5225 $CXX -c conftest.$ac_ext 2>&5
5226 if $CXX -o conftest$ac_exeext conftest.$ac_objext 2>&5 \
5227 && test -s conftest$ac_exeext && ./conftest$ac_exeext
5228 then
5229 ac_cv_cxx_thread=yes
5230 else
5231 ac_cv_cxx_thread=no
5233 rm -fr conftest*
5235 { echo "$as_me:$LINENO: result: $ac_cv_cxx_thread" >&5
5236 echo "${ECHO_T}$ac_cv_cxx_thread" >&6; }
5238 CXX="$ac_save_cxx"
5241 # checks for header files
5242 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5243 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
5244 if test "${ac_cv_header_stdc+set}" = set; then
5245 echo $ECHO_N "(cached) $ECHO_C" >&6
5246 else
5247 cat >conftest.$ac_ext <<_ACEOF
5248 /* confdefs.h. */
5249 _ACEOF
5250 cat confdefs.h >>conftest.$ac_ext
5251 cat >>conftest.$ac_ext <<_ACEOF
5252 /* end confdefs.h. */
5253 #include <stdlib.h>
5254 #include <stdarg.h>
5255 #include <string.h>
5256 #include <float.h>
5259 main ()
5263 return 0;
5265 _ACEOF
5266 rm -f conftest.$ac_objext
5267 if { (ac_try="$ac_compile"
5268 case "(($ac_try" in
5269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5270 *) ac_try_echo=$ac_try;;
5271 esac
5272 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5273 (eval "$ac_compile") 2>conftest.er1
5274 ac_status=$?
5275 grep -v '^ *+' conftest.er1 >conftest.err
5276 rm -f conftest.er1
5277 cat conftest.err >&5
5278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5279 (exit $ac_status); } && {
5280 test -z "$ac_c_werror_flag" ||
5281 test ! -s conftest.err
5282 } && test -s conftest.$ac_objext; then
5283 ac_cv_header_stdc=yes
5284 else
5285 echo "$as_me: failed program was:" >&5
5286 sed 's/^/| /' conftest.$ac_ext >&5
5288 ac_cv_header_stdc=no
5291 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5293 if test $ac_cv_header_stdc = yes; then
5294 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5295 cat >conftest.$ac_ext <<_ACEOF
5296 /* confdefs.h. */
5297 _ACEOF
5298 cat confdefs.h >>conftest.$ac_ext
5299 cat >>conftest.$ac_ext <<_ACEOF
5300 /* end confdefs.h. */
5301 #include <string.h>
5303 _ACEOF
5304 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5305 $EGREP "memchr" >/dev/null 2>&1; then
5307 else
5308 ac_cv_header_stdc=no
5310 rm -f conftest*
5314 if test $ac_cv_header_stdc = yes; then
5315 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5316 cat >conftest.$ac_ext <<_ACEOF
5317 /* confdefs.h. */
5318 _ACEOF
5319 cat confdefs.h >>conftest.$ac_ext
5320 cat >>conftest.$ac_ext <<_ACEOF
5321 /* end confdefs.h. */
5322 #include <stdlib.h>
5324 _ACEOF
5325 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5326 $EGREP "free" >/dev/null 2>&1; then
5328 else
5329 ac_cv_header_stdc=no
5331 rm -f conftest*
5335 if test $ac_cv_header_stdc = yes; then
5336 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5337 if test "$cross_compiling" = yes; then
5339 else
5340 cat >conftest.$ac_ext <<_ACEOF
5341 /* confdefs.h. */
5342 _ACEOF
5343 cat confdefs.h >>conftest.$ac_ext
5344 cat >>conftest.$ac_ext <<_ACEOF
5345 /* end confdefs.h. */
5346 #include <ctype.h>
5347 #include <stdlib.h>
5348 #if ((' ' & 0x0FF) == 0x020)
5349 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5350 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5351 #else
5352 # define ISLOWER(c) \
5353 (('a' <= (c) && (c) <= 'i') \
5354 || ('j' <= (c) && (c) <= 'r') \
5355 || ('s' <= (c) && (c) <= 'z'))
5356 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5357 #endif
5359 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5361 main ()
5363 int i;
5364 for (i = 0; i < 256; i++)
5365 if (XOR (islower (i), ISLOWER (i))
5366 || toupper (i) != TOUPPER (i))
5367 return 2;
5368 return 0;
5370 _ACEOF
5371 rm -f conftest$ac_exeext
5372 if { (ac_try="$ac_link"
5373 case "(($ac_try" in
5374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5375 *) ac_try_echo=$ac_try;;
5376 esac
5377 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5378 (eval "$ac_link") 2>&5
5379 ac_status=$?
5380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5381 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5382 { (case "(($ac_try" in
5383 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5384 *) ac_try_echo=$ac_try;;
5385 esac
5386 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5387 (eval "$ac_try") 2>&5
5388 ac_status=$?
5389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5390 (exit $ac_status); }; }; then
5392 else
5393 echo "$as_me: program exited with status $ac_status" >&5
5394 echo "$as_me: failed program was:" >&5
5395 sed 's/^/| /' conftest.$ac_ext >&5
5397 ( exit $ac_status )
5398 ac_cv_header_stdc=no
5400 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5406 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5407 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
5408 if test $ac_cv_header_stdc = yes; then
5410 cat >>confdefs.h <<\_ACEOF
5411 #define STDC_HEADERS 1
5412 _ACEOF
5416 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5426 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5427 inttypes.h stdint.h unistd.h
5429 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5430 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5431 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5432 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5433 echo $ECHO_N "(cached) $ECHO_C" >&6
5434 else
5435 cat >conftest.$ac_ext <<_ACEOF
5436 /* confdefs.h. */
5437 _ACEOF
5438 cat confdefs.h >>conftest.$ac_ext
5439 cat >>conftest.$ac_ext <<_ACEOF
5440 /* end confdefs.h. */
5441 $ac_includes_default
5443 #include <$ac_header>
5444 _ACEOF
5445 rm -f conftest.$ac_objext
5446 if { (ac_try="$ac_compile"
5447 case "(($ac_try" in
5448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5449 *) ac_try_echo=$ac_try;;
5450 esac
5451 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5452 (eval "$ac_compile") 2>conftest.er1
5453 ac_status=$?
5454 grep -v '^ *+' conftest.er1 >conftest.err
5455 rm -f conftest.er1
5456 cat conftest.err >&5
5457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5458 (exit $ac_status); } && {
5459 test -z "$ac_c_werror_flag" ||
5460 test ! -s conftest.err
5461 } && test -s conftest.$ac_objext; then
5462 eval "$as_ac_Header=yes"
5463 else
5464 echo "$as_me: failed program was:" >&5
5465 sed 's/^/| /' conftest.$ac_ext >&5
5467 eval "$as_ac_Header=no"
5470 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5472 ac_res=`eval echo '${'$as_ac_Header'}'`
5473 { echo "$as_me:$LINENO: result: $ac_res" >&5
5474 echo "${ECHO_T}$ac_res" >&6; }
5475 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5476 cat >>confdefs.h <<_ACEOF
5477 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5478 _ACEOF
5482 done
5539 for ac_header in asm/types.h conio.h curses.h direct.h dlfcn.h errno.h \
5540 fcntl.h grp.h \
5541 ieeefp.h io.h langinfo.h libintl.h ncurses.h poll.h process.h pthread.h \
5542 shadow.h signal.h stdint.h stropts.h termios.h thread.h \
5543 unistd.h utime.h \
5544 sys/audioio.h sys/bsdtty.h sys/epoll.h sys/event.h sys/file.h sys/loadavg.h \
5545 sys/lock.h sys/mkdev.h sys/modem.h \
5546 sys/param.h sys/poll.h sys/select.h sys/socket.h sys/statvfs.h sys/stat.h \
5547 sys/termio.h sys/time.h \
5548 sys/times.h sys/types.h sys/un.h sys/utsname.h sys/wait.h pty.h libutil.h \
5549 sys/resource.h netpacket/packet.h sysexits.h bluetooth.h \
5550 bluetooth/bluetooth.h linux/tipc.h
5552 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5553 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5554 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5555 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5556 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5557 echo $ECHO_N "(cached) $ECHO_C" >&6
5559 ac_res=`eval echo '${'$as_ac_Header'}'`
5560 { echo "$as_me:$LINENO: result: $ac_res" >&5
5561 echo "${ECHO_T}$ac_res" >&6; }
5562 else
5563 # Is the header compilable?
5564 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5565 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5566 cat >conftest.$ac_ext <<_ACEOF
5567 /* confdefs.h. */
5568 _ACEOF
5569 cat confdefs.h >>conftest.$ac_ext
5570 cat >>conftest.$ac_ext <<_ACEOF
5571 /* end confdefs.h. */
5572 $ac_includes_default
5573 #include <$ac_header>
5574 _ACEOF
5575 rm -f conftest.$ac_objext
5576 if { (ac_try="$ac_compile"
5577 case "(($ac_try" in
5578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5579 *) ac_try_echo=$ac_try;;
5580 esac
5581 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5582 (eval "$ac_compile") 2>conftest.er1
5583 ac_status=$?
5584 grep -v '^ *+' conftest.er1 >conftest.err
5585 rm -f conftest.er1
5586 cat conftest.err >&5
5587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5588 (exit $ac_status); } && {
5589 test -z "$ac_c_werror_flag" ||
5590 test ! -s conftest.err
5591 } && test -s conftest.$ac_objext; then
5592 ac_header_compiler=yes
5593 else
5594 echo "$as_me: failed program was:" >&5
5595 sed 's/^/| /' conftest.$ac_ext >&5
5597 ac_header_compiler=no
5600 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5601 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5602 echo "${ECHO_T}$ac_header_compiler" >&6; }
5604 # Is the header present?
5605 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5606 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5607 cat >conftest.$ac_ext <<_ACEOF
5608 /* confdefs.h. */
5609 _ACEOF
5610 cat confdefs.h >>conftest.$ac_ext
5611 cat >>conftest.$ac_ext <<_ACEOF
5612 /* end confdefs.h. */
5613 #include <$ac_header>
5614 _ACEOF
5615 if { (ac_try="$ac_cpp conftest.$ac_ext"
5616 case "(($ac_try" in
5617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5618 *) ac_try_echo=$ac_try;;
5619 esac
5620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5621 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5622 ac_status=$?
5623 grep -v '^ *+' conftest.er1 >conftest.err
5624 rm -f conftest.er1
5625 cat conftest.err >&5
5626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5627 (exit $ac_status); } >/dev/null && {
5628 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5629 test ! -s conftest.err
5630 }; then
5631 ac_header_preproc=yes
5632 else
5633 echo "$as_me: failed program was:" >&5
5634 sed 's/^/| /' conftest.$ac_ext >&5
5636 ac_header_preproc=no
5639 rm -f conftest.err conftest.$ac_ext
5640 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5641 echo "${ECHO_T}$ac_header_preproc" >&6; }
5643 # So? What about this header?
5644 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5645 yes:no: )
5646 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5647 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5648 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5649 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5650 ac_header_preproc=yes
5652 no:yes:* )
5653 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5654 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5655 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5656 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5657 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5658 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5659 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5660 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5661 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5662 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5663 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5664 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5665 ( cat <<\_ASBOX
5666 ## ------------------------------------------------ ##
5667 ## Report this to http://www.python.org/python-bugs ##
5668 ## ------------------------------------------------ ##
5669 _ASBOX
5670 ) | sed "s/^/$as_me: WARNING: /" >&2
5672 esac
5673 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5674 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5675 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5676 echo $ECHO_N "(cached) $ECHO_C" >&6
5677 else
5678 eval "$as_ac_Header=\$ac_header_preproc"
5680 ac_res=`eval echo '${'$as_ac_Header'}'`
5681 { echo "$as_me:$LINENO: result: $ac_res" >&5
5682 echo "${ECHO_T}$ac_res" >&6; }
5685 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5686 cat >>confdefs.h <<_ACEOF
5687 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5688 _ACEOF
5692 done
5699 ac_header_dirent=no
5700 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
5701 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
5702 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
5703 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
5704 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5705 echo $ECHO_N "(cached) $ECHO_C" >&6
5706 else
5707 cat >conftest.$ac_ext <<_ACEOF
5708 /* confdefs.h. */
5709 _ACEOF
5710 cat confdefs.h >>conftest.$ac_ext
5711 cat >>conftest.$ac_ext <<_ACEOF
5712 /* end confdefs.h. */
5713 #include <sys/types.h>
5714 #include <$ac_hdr>
5717 main ()
5719 if ((DIR *) 0)
5720 return 0;
5722 return 0;
5724 _ACEOF
5725 rm -f conftest.$ac_objext
5726 if { (ac_try="$ac_compile"
5727 case "(($ac_try" in
5728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5729 *) ac_try_echo=$ac_try;;
5730 esac
5731 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5732 (eval "$ac_compile") 2>conftest.er1
5733 ac_status=$?
5734 grep -v '^ *+' conftest.er1 >conftest.err
5735 rm -f conftest.er1
5736 cat conftest.err >&5
5737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5738 (exit $ac_status); } && {
5739 test -z "$ac_c_werror_flag" ||
5740 test ! -s conftest.err
5741 } && test -s conftest.$ac_objext; then
5742 eval "$as_ac_Header=yes"
5743 else
5744 echo "$as_me: failed program was:" >&5
5745 sed 's/^/| /' conftest.$ac_ext >&5
5747 eval "$as_ac_Header=no"
5750 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5752 ac_res=`eval echo '${'$as_ac_Header'}'`
5753 { echo "$as_me:$LINENO: result: $ac_res" >&5
5754 echo "${ECHO_T}$ac_res" >&6; }
5755 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5756 cat >>confdefs.h <<_ACEOF
5757 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
5758 _ACEOF
5760 ac_header_dirent=$ac_hdr; break
5763 done
5764 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
5765 if test $ac_header_dirent = dirent.h; then
5766 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
5767 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
5768 if test "${ac_cv_search_opendir+set}" = set; then
5769 echo $ECHO_N "(cached) $ECHO_C" >&6
5770 else
5771 ac_func_search_save_LIBS=$LIBS
5772 cat >conftest.$ac_ext <<_ACEOF
5773 /* confdefs.h. */
5774 _ACEOF
5775 cat confdefs.h >>conftest.$ac_ext
5776 cat >>conftest.$ac_ext <<_ACEOF
5777 /* end confdefs.h. */
5779 /* Override any GCC internal prototype to avoid an error.
5780 Use char because int might match the return type of a GCC
5781 builtin and then its argument prototype would still apply. */
5782 #ifdef __cplusplus
5783 extern "C"
5784 #endif
5785 char opendir ();
5787 main ()
5789 return opendir ();
5791 return 0;
5793 _ACEOF
5794 for ac_lib in '' dir; do
5795 if test -z "$ac_lib"; then
5796 ac_res="none required"
5797 else
5798 ac_res=-l$ac_lib
5799 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5801 rm -f conftest.$ac_objext conftest$ac_exeext
5802 if { (ac_try="$ac_link"
5803 case "(($ac_try" in
5804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5805 *) ac_try_echo=$ac_try;;
5806 esac
5807 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5808 (eval "$ac_link") 2>conftest.er1
5809 ac_status=$?
5810 grep -v '^ *+' conftest.er1 >conftest.err
5811 rm -f conftest.er1
5812 cat conftest.err >&5
5813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5814 (exit $ac_status); } && {
5815 test -z "$ac_c_werror_flag" ||
5816 test ! -s conftest.err
5817 } && test -s conftest$ac_exeext &&
5818 $as_test_x conftest$ac_exeext; then
5819 ac_cv_search_opendir=$ac_res
5820 else
5821 echo "$as_me: failed program was:" >&5
5822 sed 's/^/| /' conftest.$ac_ext >&5
5827 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5828 conftest$ac_exeext
5829 if test "${ac_cv_search_opendir+set}" = set; then
5830 break
5832 done
5833 if test "${ac_cv_search_opendir+set}" = set; then
5835 else
5836 ac_cv_search_opendir=no
5838 rm conftest.$ac_ext
5839 LIBS=$ac_func_search_save_LIBS
5841 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
5842 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
5843 ac_res=$ac_cv_search_opendir
5844 if test "$ac_res" != no; then
5845 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5849 else
5850 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
5851 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
5852 if test "${ac_cv_search_opendir+set}" = set; then
5853 echo $ECHO_N "(cached) $ECHO_C" >&6
5854 else
5855 ac_func_search_save_LIBS=$LIBS
5856 cat >conftest.$ac_ext <<_ACEOF
5857 /* confdefs.h. */
5858 _ACEOF
5859 cat confdefs.h >>conftest.$ac_ext
5860 cat >>conftest.$ac_ext <<_ACEOF
5861 /* end confdefs.h. */
5863 /* Override any GCC internal prototype to avoid an error.
5864 Use char because int might match the return type of a GCC
5865 builtin and then its argument prototype would still apply. */
5866 #ifdef __cplusplus
5867 extern "C"
5868 #endif
5869 char opendir ();
5871 main ()
5873 return opendir ();
5875 return 0;
5877 _ACEOF
5878 for ac_lib in '' x; do
5879 if test -z "$ac_lib"; then
5880 ac_res="none required"
5881 else
5882 ac_res=-l$ac_lib
5883 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5885 rm -f conftest.$ac_objext conftest$ac_exeext
5886 if { (ac_try="$ac_link"
5887 case "(($ac_try" in
5888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5889 *) ac_try_echo=$ac_try;;
5890 esac
5891 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5892 (eval "$ac_link") 2>conftest.er1
5893 ac_status=$?
5894 grep -v '^ *+' conftest.er1 >conftest.err
5895 rm -f conftest.er1
5896 cat conftest.err >&5
5897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5898 (exit $ac_status); } && {
5899 test -z "$ac_c_werror_flag" ||
5900 test ! -s conftest.err
5901 } && test -s conftest$ac_exeext &&
5902 $as_test_x conftest$ac_exeext; then
5903 ac_cv_search_opendir=$ac_res
5904 else
5905 echo "$as_me: failed program was:" >&5
5906 sed 's/^/| /' conftest.$ac_ext >&5
5911 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5912 conftest$ac_exeext
5913 if test "${ac_cv_search_opendir+set}" = set; then
5914 break
5916 done
5917 if test "${ac_cv_search_opendir+set}" = set; then
5919 else
5920 ac_cv_search_opendir=no
5922 rm conftest.$ac_ext
5923 LIBS=$ac_func_search_save_LIBS
5925 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
5926 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
5927 ac_res=$ac_cv_search_opendir
5928 if test "$ac_res" != no; then
5929 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5935 { echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
5936 echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6; }
5937 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
5938 echo $ECHO_N "(cached) $ECHO_C" >&6
5939 else
5940 cat >conftest.$ac_ext <<_ACEOF
5941 /* confdefs.h. */
5942 _ACEOF
5943 cat confdefs.h >>conftest.$ac_ext
5944 cat >>conftest.$ac_ext <<_ACEOF
5945 /* end confdefs.h. */
5946 #include <sys/types.h>
5948 main ()
5950 return makedev(0, 0);
5952 return 0;
5954 _ACEOF
5955 rm -f conftest.$ac_objext conftest$ac_exeext
5956 if { (ac_try="$ac_link"
5957 case "(($ac_try" in
5958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5959 *) ac_try_echo=$ac_try;;
5960 esac
5961 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5962 (eval "$ac_link") 2>conftest.er1
5963 ac_status=$?
5964 grep -v '^ *+' conftest.er1 >conftest.err
5965 rm -f conftest.er1
5966 cat conftest.err >&5
5967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5968 (exit $ac_status); } && {
5969 test -z "$ac_c_werror_flag" ||
5970 test ! -s conftest.err
5971 } && test -s conftest$ac_exeext &&
5972 $as_test_x conftest$ac_exeext; then
5973 ac_cv_header_sys_types_h_makedev=yes
5974 else
5975 echo "$as_me: failed program was:" >&5
5976 sed 's/^/| /' conftest.$ac_ext >&5
5978 ac_cv_header_sys_types_h_makedev=no
5981 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5982 conftest$ac_exeext conftest.$ac_ext
5985 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
5986 echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6; }
5988 if test $ac_cv_header_sys_types_h_makedev = no; then
5989 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
5990 { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
5991 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
5992 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
5993 echo $ECHO_N "(cached) $ECHO_C" >&6
5995 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
5996 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
5997 else
5998 # Is the header compilable?
5999 { echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
6000 echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6; }
6001 cat >conftest.$ac_ext <<_ACEOF
6002 /* confdefs.h. */
6003 _ACEOF
6004 cat confdefs.h >>conftest.$ac_ext
6005 cat >>conftest.$ac_ext <<_ACEOF
6006 /* end confdefs.h. */
6007 $ac_includes_default
6008 #include <sys/mkdev.h>
6009 _ACEOF
6010 rm -f conftest.$ac_objext
6011 if { (ac_try="$ac_compile"
6012 case "(($ac_try" in
6013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6014 *) ac_try_echo=$ac_try;;
6015 esac
6016 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6017 (eval "$ac_compile") 2>conftest.er1
6018 ac_status=$?
6019 grep -v '^ *+' conftest.er1 >conftest.err
6020 rm -f conftest.er1
6021 cat conftest.err >&5
6022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6023 (exit $ac_status); } && {
6024 test -z "$ac_c_werror_flag" ||
6025 test ! -s conftest.err
6026 } && test -s conftest.$ac_objext; then
6027 ac_header_compiler=yes
6028 else
6029 echo "$as_me: failed program was:" >&5
6030 sed 's/^/| /' conftest.$ac_ext >&5
6032 ac_header_compiler=no
6035 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6036 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6037 echo "${ECHO_T}$ac_header_compiler" >&6; }
6039 # Is the header present?
6040 { echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
6041 echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6; }
6042 cat >conftest.$ac_ext <<_ACEOF
6043 /* confdefs.h. */
6044 _ACEOF
6045 cat confdefs.h >>conftest.$ac_ext
6046 cat >>conftest.$ac_ext <<_ACEOF
6047 /* end confdefs.h. */
6048 #include <sys/mkdev.h>
6049 _ACEOF
6050 if { (ac_try="$ac_cpp conftest.$ac_ext"
6051 case "(($ac_try" in
6052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6053 *) ac_try_echo=$ac_try;;
6054 esac
6055 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6056 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6057 ac_status=$?
6058 grep -v '^ *+' conftest.er1 >conftest.err
6059 rm -f conftest.er1
6060 cat conftest.err >&5
6061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6062 (exit $ac_status); } >/dev/null && {
6063 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6064 test ! -s conftest.err
6065 }; then
6066 ac_header_preproc=yes
6067 else
6068 echo "$as_me: failed program was:" >&5
6069 sed 's/^/| /' conftest.$ac_ext >&5
6071 ac_header_preproc=no
6074 rm -f conftest.err conftest.$ac_ext
6075 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6076 echo "${ECHO_T}$ac_header_preproc" >&6; }
6078 # So? What about this header?
6079 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6080 yes:no: )
6081 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
6082 echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6083 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&5
6084 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&2;}
6085 ac_header_preproc=yes
6087 no:yes:* )
6088 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
6089 echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
6090 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&5
6091 echo "$as_me: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&2;}
6092 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: see the Autoconf documentation" >&5
6093 echo "$as_me: WARNING: sys/mkdev.h: see the Autoconf documentation" >&2;}
6094 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&5
6095 echo "$as_me: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&2;}
6096 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
6097 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
6098 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&5
6099 echo "$as_me: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&2;}
6100 ( cat <<\_ASBOX
6101 ## ------------------------------------------------ ##
6102 ## Report this to http://www.python.org/python-bugs ##
6103 ## ------------------------------------------------ ##
6104 _ASBOX
6105 ) | sed "s/^/$as_me: WARNING: /" >&2
6107 esac
6108 { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
6109 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
6110 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
6111 echo $ECHO_N "(cached) $ECHO_C" >&6
6112 else
6113 ac_cv_header_sys_mkdev_h=$ac_header_preproc
6115 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
6116 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
6119 if test $ac_cv_header_sys_mkdev_h = yes; then
6121 cat >>confdefs.h <<\_ACEOF
6122 #define MAJOR_IN_MKDEV 1
6123 _ACEOF
6129 if test $ac_cv_header_sys_mkdev_h = no; then
6130 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
6131 { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
6132 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
6133 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
6134 echo $ECHO_N "(cached) $ECHO_C" >&6
6136 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
6137 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
6138 else
6139 # Is the header compilable?
6140 { echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
6141 echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6; }
6142 cat >conftest.$ac_ext <<_ACEOF
6143 /* confdefs.h. */
6144 _ACEOF
6145 cat confdefs.h >>conftest.$ac_ext
6146 cat >>conftest.$ac_ext <<_ACEOF
6147 /* end confdefs.h. */
6148 $ac_includes_default
6149 #include <sys/sysmacros.h>
6150 _ACEOF
6151 rm -f conftest.$ac_objext
6152 if { (ac_try="$ac_compile"
6153 case "(($ac_try" in
6154 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6155 *) ac_try_echo=$ac_try;;
6156 esac
6157 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6158 (eval "$ac_compile") 2>conftest.er1
6159 ac_status=$?
6160 grep -v '^ *+' conftest.er1 >conftest.err
6161 rm -f conftest.er1
6162 cat conftest.err >&5
6163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6164 (exit $ac_status); } && {
6165 test -z "$ac_c_werror_flag" ||
6166 test ! -s conftest.err
6167 } && test -s conftest.$ac_objext; then
6168 ac_header_compiler=yes
6169 else
6170 echo "$as_me: failed program was:" >&5
6171 sed 's/^/| /' conftest.$ac_ext >&5
6173 ac_header_compiler=no
6176 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6177 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6178 echo "${ECHO_T}$ac_header_compiler" >&6; }
6180 # Is the header present?
6181 { echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
6182 echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6; }
6183 cat >conftest.$ac_ext <<_ACEOF
6184 /* confdefs.h. */
6185 _ACEOF
6186 cat confdefs.h >>conftest.$ac_ext
6187 cat >>conftest.$ac_ext <<_ACEOF
6188 /* end confdefs.h. */
6189 #include <sys/sysmacros.h>
6190 _ACEOF
6191 if { (ac_try="$ac_cpp conftest.$ac_ext"
6192 case "(($ac_try" in
6193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6194 *) ac_try_echo=$ac_try;;
6195 esac
6196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6197 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6198 ac_status=$?
6199 grep -v '^ *+' conftest.er1 >conftest.err
6200 rm -f conftest.er1
6201 cat conftest.err >&5
6202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6203 (exit $ac_status); } >/dev/null && {
6204 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6205 test ! -s conftest.err
6206 }; then
6207 ac_header_preproc=yes
6208 else
6209 echo "$as_me: failed program was:" >&5
6210 sed 's/^/| /' conftest.$ac_ext >&5
6212 ac_header_preproc=no
6215 rm -f conftest.err conftest.$ac_ext
6216 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6217 echo "${ECHO_T}$ac_header_preproc" >&6; }
6219 # So? What about this header?
6220 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6221 yes:no: )
6222 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
6223 echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6224 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&5
6225 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&2;}
6226 ac_header_preproc=yes
6228 no:yes:* )
6229 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
6230 echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
6231 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&5
6232 echo "$as_me: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&2;}
6233 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&5
6234 echo "$as_me: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&2;}
6235 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&5
6236 echo "$as_me: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&2;}
6237 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
6238 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
6239 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&5
6240 echo "$as_me: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&2;}
6241 ( cat <<\_ASBOX
6242 ## ------------------------------------------------ ##
6243 ## Report this to http://www.python.org/python-bugs ##
6244 ## ------------------------------------------------ ##
6245 _ASBOX
6246 ) | sed "s/^/$as_me: WARNING: /" >&2
6248 esac
6249 { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
6250 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
6251 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
6252 echo $ECHO_N "(cached) $ECHO_C" >&6
6253 else
6254 ac_cv_header_sys_sysmacros_h=$ac_header_preproc
6256 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
6257 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
6260 if test $ac_cv_header_sys_sysmacros_h = yes; then
6262 cat >>confdefs.h <<\_ACEOF
6263 #define MAJOR_IN_SYSMACROS 1
6264 _ACEOF
6273 # On Solaris, term.h requires curses.h
6275 for ac_header in term.h
6277 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6278 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6279 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6280 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6281 echo $ECHO_N "(cached) $ECHO_C" >&6
6282 else
6283 cat >conftest.$ac_ext <<_ACEOF
6284 /* confdefs.h. */
6285 _ACEOF
6286 cat confdefs.h >>conftest.$ac_ext
6287 cat >>conftest.$ac_ext <<_ACEOF
6288 /* end confdefs.h. */
6290 #ifdef HAVE_CURSES_H
6291 #include <curses.h>
6292 #endif
6295 #include <$ac_header>
6296 _ACEOF
6297 rm -f conftest.$ac_objext
6298 if { (ac_try="$ac_compile"
6299 case "(($ac_try" in
6300 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6301 *) ac_try_echo=$ac_try;;
6302 esac
6303 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6304 (eval "$ac_compile") 2>conftest.er1
6305 ac_status=$?
6306 grep -v '^ *+' conftest.er1 >conftest.err
6307 rm -f conftest.er1
6308 cat conftest.err >&5
6309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6310 (exit $ac_status); } && {
6311 test -z "$ac_c_werror_flag" ||
6312 test ! -s conftest.err
6313 } && test -s conftest.$ac_objext; then
6314 eval "$as_ac_Header=yes"
6315 else
6316 echo "$as_me: failed program was:" >&5
6317 sed 's/^/| /' conftest.$ac_ext >&5
6319 eval "$as_ac_Header=no"
6322 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6324 ac_res=`eval echo '${'$as_ac_Header'}'`
6325 { echo "$as_me:$LINENO: result: $ac_res" >&5
6326 echo "${ECHO_T}$ac_res" >&6; }
6327 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6328 cat >>confdefs.h <<_ACEOF
6329 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6330 _ACEOF
6334 done
6337 # On Linux, netlink.h requires asm/types.h
6339 for ac_header in linux/netlink.h
6341 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6342 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6343 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6344 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6345 echo $ECHO_N "(cached) $ECHO_C" >&6
6346 else
6347 cat >conftest.$ac_ext <<_ACEOF
6348 /* confdefs.h. */
6349 _ACEOF
6350 cat confdefs.h >>conftest.$ac_ext
6351 cat >>conftest.$ac_ext <<_ACEOF
6352 /* end confdefs.h. */
6354 #ifdef HAVE_ASM_TYPES_H
6355 #include <asm/types.h>
6356 #endif
6357 #ifdef HAVE_SYS_SOCKET_H
6358 #include <sys/socket.h>
6359 #endif
6362 #include <$ac_header>
6363 _ACEOF
6364 rm -f conftest.$ac_objext
6365 if { (ac_try="$ac_compile"
6366 case "(($ac_try" in
6367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6368 *) ac_try_echo=$ac_try;;
6369 esac
6370 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6371 (eval "$ac_compile") 2>conftest.er1
6372 ac_status=$?
6373 grep -v '^ *+' conftest.er1 >conftest.err
6374 rm -f conftest.er1
6375 cat conftest.err >&5
6376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6377 (exit $ac_status); } && {
6378 test -z "$ac_c_werror_flag" ||
6379 test ! -s conftest.err
6380 } && test -s conftest.$ac_objext; then
6381 eval "$as_ac_Header=yes"
6382 else
6383 echo "$as_me: failed program was:" >&5
6384 sed 's/^/| /' conftest.$ac_ext >&5
6386 eval "$as_ac_Header=no"
6389 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6391 ac_res=`eval echo '${'$as_ac_Header'}'`
6392 { echo "$as_me:$LINENO: result: $ac_res" >&5
6393 echo "${ECHO_T}$ac_res" >&6; }
6394 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6395 cat >>confdefs.h <<_ACEOF
6396 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6397 _ACEOF
6401 done
6404 # checks for typedefs
6405 was_it_defined=no
6406 { echo "$as_me:$LINENO: checking for clock_t in time.h" >&5
6407 echo $ECHO_N "checking for clock_t in time.h... $ECHO_C" >&6; }
6408 cat >conftest.$ac_ext <<_ACEOF
6409 /* confdefs.h. */
6410 _ACEOF
6411 cat confdefs.h >>conftest.$ac_ext
6412 cat >>conftest.$ac_ext <<_ACEOF
6413 /* end confdefs.h. */
6414 #include <time.h>
6416 _ACEOF
6417 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6418 $EGREP "clock_t" >/dev/null 2>&1; then
6419 was_it_defined=yes
6420 else
6423 cat >>confdefs.h <<\_ACEOF
6424 #define clock_t long
6425 _ACEOF
6429 rm -f conftest*
6431 { echo "$as_me:$LINENO: result: $was_it_defined" >&5
6432 echo "${ECHO_T}$was_it_defined" >&6; }
6434 # Check whether using makedev requires defining _OSF_SOURCE
6435 { echo "$as_me:$LINENO: checking for makedev" >&5
6436 echo $ECHO_N "checking for makedev... $ECHO_C" >&6; }
6437 cat >conftest.$ac_ext <<_ACEOF
6438 /* confdefs.h. */
6439 _ACEOF
6440 cat confdefs.h >>conftest.$ac_ext
6441 cat >>conftest.$ac_ext <<_ACEOF
6442 /* end confdefs.h. */
6443 #include <sys/types.h>
6445 main ()
6447 makedev(0, 0)
6449 return 0;
6451 _ACEOF
6452 rm -f conftest.$ac_objext conftest$ac_exeext
6453 if { (ac_try="$ac_link"
6454 case "(($ac_try" in
6455 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6456 *) ac_try_echo=$ac_try;;
6457 esac
6458 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6459 (eval "$ac_link") 2>conftest.er1
6460 ac_status=$?
6461 grep -v '^ *+' conftest.er1 >conftest.err
6462 rm -f conftest.er1
6463 cat conftest.err >&5
6464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6465 (exit $ac_status); } && {
6466 test -z "$ac_c_werror_flag" ||
6467 test ! -s conftest.err
6468 } && test -s conftest$ac_exeext &&
6469 $as_test_x conftest$ac_exeext; then
6470 ac_cv_has_makedev=yes
6471 else
6472 echo "$as_me: failed program was:" >&5
6473 sed 's/^/| /' conftest.$ac_ext >&5
6475 ac_cv_has_makedev=no
6478 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6479 conftest$ac_exeext conftest.$ac_ext
6480 if test "$ac_cv_has_makedev" = "no"; then
6481 # we didn't link, try if _OSF_SOURCE will allow us to link
6482 cat >conftest.$ac_ext <<_ACEOF
6483 /* confdefs.h. */
6484 _ACEOF
6485 cat confdefs.h >>conftest.$ac_ext
6486 cat >>conftest.$ac_ext <<_ACEOF
6487 /* end confdefs.h. */
6489 #define _OSF_SOURCE 1
6490 #include <sys/types.h>
6493 main ()
6495 makedev(0, 0)
6497 return 0;
6499 _ACEOF
6500 rm -f conftest.$ac_objext conftest$ac_exeext
6501 if { (ac_try="$ac_link"
6502 case "(($ac_try" in
6503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6504 *) ac_try_echo=$ac_try;;
6505 esac
6506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6507 (eval "$ac_link") 2>conftest.er1
6508 ac_status=$?
6509 grep -v '^ *+' conftest.er1 >conftest.err
6510 rm -f conftest.er1
6511 cat conftest.err >&5
6512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6513 (exit $ac_status); } && {
6514 test -z "$ac_c_werror_flag" ||
6515 test ! -s conftest.err
6516 } && test -s conftest$ac_exeext &&
6517 $as_test_x conftest$ac_exeext; then
6518 ac_cv_has_makedev=yes
6519 else
6520 echo "$as_me: failed program was:" >&5
6521 sed 's/^/| /' conftest.$ac_ext >&5
6523 ac_cv_has_makedev=no
6526 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6527 conftest$ac_exeext conftest.$ac_ext
6528 if test "$ac_cv_has_makedev" = "yes"; then
6530 cat >>confdefs.h <<\_ACEOF
6531 #define _OSF_SOURCE 1
6532 _ACEOF
6536 { echo "$as_me:$LINENO: result: $ac_cv_has_makedev" >&5
6537 echo "${ECHO_T}$ac_cv_has_makedev" >&6; }
6538 if test "$ac_cv_has_makedev" = "yes"; then
6540 cat >>confdefs.h <<\_ACEOF
6541 #define HAVE_MAKEDEV 1
6542 _ACEOF
6546 # Enabling LFS on Solaris (2.6 to 9) with gcc 2.95 triggers a bug in
6547 # the system headers: If _XOPEN_SOURCE and _LARGEFILE_SOURCE are
6548 # defined, but the compiler does not support pragma redefine_extname,
6549 # and _LARGEFILE64_SOURCE is not defined, the headers refer to 64-bit
6550 # structures (such as rlimit64) without declaring them. As a
6551 # work-around, disable LFS on such configurations
6553 use_lfs=yes
6554 { echo "$as_me:$LINENO: checking Solaris LFS bug" >&5
6555 echo $ECHO_N "checking Solaris LFS bug... $ECHO_C" >&6; }
6556 cat >conftest.$ac_ext <<_ACEOF
6557 /* confdefs.h. */
6558 _ACEOF
6559 cat confdefs.h >>conftest.$ac_ext
6560 cat >>conftest.$ac_ext <<_ACEOF
6561 /* end confdefs.h. */
6563 #define _LARGEFILE_SOURCE 1
6564 #define _FILE_OFFSET_BITS 64
6565 #include <sys/resource.h>
6568 main ()
6570 struct rlimit foo;
6572 return 0;
6574 _ACEOF
6575 rm -f conftest.$ac_objext
6576 if { (ac_try="$ac_compile"
6577 case "(($ac_try" in
6578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6579 *) ac_try_echo=$ac_try;;
6580 esac
6581 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6582 (eval "$ac_compile") 2>conftest.er1
6583 ac_status=$?
6584 grep -v '^ *+' conftest.er1 >conftest.err
6585 rm -f conftest.er1
6586 cat conftest.err >&5
6587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6588 (exit $ac_status); } && {
6589 test -z "$ac_c_werror_flag" ||
6590 test ! -s conftest.err
6591 } && test -s conftest.$ac_objext; then
6592 sol_lfs_bug=no
6593 else
6594 echo "$as_me: failed program was:" >&5
6595 sed 's/^/| /' conftest.$ac_ext >&5
6597 sol_lfs_bug=yes
6600 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6601 { echo "$as_me:$LINENO: result: $sol_lfs_bug" >&5
6602 echo "${ECHO_T}$sol_lfs_bug" >&6; }
6603 if test "$sol_lfs_bug" = "yes"; then
6604 use_lfs=no
6607 if test "$use_lfs" = "yes"; then
6608 # Two defines needed to enable largefile support on various platforms
6609 # These may affect some typedefs
6611 cat >>confdefs.h <<\_ACEOF
6612 #define _LARGEFILE_SOURCE 1
6613 _ACEOF
6616 cat >>confdefs.h <<\_ACEOF
6617 #define _FILE_OFFSET_BITS 64
6618 _ACEOF
6622 # Add some code to confdefs.h so that the test for off_t works on SCO
6623 cat >> confdefs.h <<\EOF
6624 #if defined(SCO_DS)
6625 #undef _OFF_T
6626 #endif
6629 # Type availability checks
6630 { echo "$as_me:$LINENO: checking for mode_t" >&5
6631 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; }
6632 if test "${ac_cv_type_mode_t+set}" = set; then
6633 echo $ECHO_N "(cached) $ECHO_C" >&6
6634 else
6635 cat >conftest.$ac_ext <<_ACEOF
6636 /* confdefs.h. */
6637 _ACEOF
6638 cat confdefs.h >>conftest.$ac_ext
6639 cat >>conftest.$ac_ext <<_ACEOF
6640 /* end confdefs.h. */
6641 $ac_includes_default
6642 typedef mode_t ac__type_new_;
6644 main ()
6646 if ((ac__type_new_ *) 0)
6647 return 0;
6648 if (sizeof (ac__type_new_))
6649 return 0;
6651 return 0;
6653 _ACEOF
6654 rm -f conftest.$ac_objext
6655 if { (ac_try="$ac_compile"
6656 case "(($ac_try" in
6657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6658 *) ac_try_echo=$ac_try;;
6659 esac
6660 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6661 (eval "$ac_compile") 2>conftest.er1
6662 ac_status=$?
6663 grep -v '^ *+' conftest.er1 >conftest.err
6664 rm -f conftest.er1
6665 cat conftest.err >&5
6666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6667 (exit $ac_status); } && {
6668 test -z "$ac_c_werror_flag" ||
6669 test ! -s conftest.err
6670 } && test -s conftest.$ac_objext; then
6671 ac_cv_type_mode_t=yes
6672 else
6673 echo "$as_me: failed program was:" >&5
6674 sed 's/^/| /' conftest.$ac_ext >&5
6676 ac_cv_type_mode_t=no
6679 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6681 { echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
6682 echo "${ECHO_T}$ac_cv_type_mode_t" >&6; }
6683 if test $ac_cv_type_mode_t = yes; then
6685 else
6687 cat >>confdefs.h <<_ACEOF
6688 #define mode_t int
6689 _ACEOF
6693 { echo "$as_me:$LINENO: checking for off_t" >&5
6694 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
6695 if test "${ac_cv_type_off_t+set}" = set; then
6696 echo $ECHO_N "(cached) $ECHO_C" >&6
6697 else
6698 cat >conftest.$ac_ext <<_ACEOF
6699 /* confdefs.h. */
6700 _ACEOF
6701 cat confdefs.h >>conftest.$ac_ext
6702 cat >>conftest.$ac_ext <<_ACEOF
6703 /* end confdefs.h. */
6704 $ac_includes_default
6705 typedef off_t ac__type_new_;
6707 main ()
6709 if ((ac__type_new_ *) 0)
6710 return 0;
6711 if (sizeof (ac__type_new_))
6712 return 0;
6714 return 0;
6716 _ACEOF
6717 rm -f conftest.$ac_objext
6718 if { (ac_try="$ac_compile"
6719 case "(($ac_try" in
6720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6721 *) ac_try_echo=$ac_try;;
6722 esac
6723 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6724 (eval "$ac_compile") 2>conftest.er1
6725 ac_status=$?
6726 grep -v '^ *+' conftest.er1 >conftest.err
6727 rm -f conftest.er1
6728 cat conftest.err >&5
6729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6730 (exit $ac_status); } && {
6731 test -z "$ac_c_werror_flag" ||
6732 test ! -s conftest.err
6733 } && test -s conftest.$ac_objext; then
6734 ac_cv_type_off_t=yes
6735 else
6736 echo "$as_me: failed program was:" >&5
6737 sed 's/^/| /' conftest.$ac_ext >&5
6739 ac_cv_type_off_t=no
6742 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6744 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
6745 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
6746 if test $ac_cv_type_off_t = yes; then
6748 else
6750 cat >>confdefs.h <<_ACEOF
6751 #define off_t long int
6752 _ACEOF
6756 { echo "$as_me:$LINENO: checking for pid_t" >&5
6757 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
6758 if test "${ac_cv_type_pid_t+set}" = set; then
6759 echo $ECHO_N "(cached) $ECHO_C" >&6
6760 else
6761 cat >conftest.$ac_ext <<_ACEOF
6762 /* confdefs.h. */
6763 _ACEOF
6764 cat confdefs.h >>conftest.$ac_ext
6765 cat >>conftest.$ac_ext <<_ACEOF
6766 /* end confdefs.h. */
6767 $ac_includes_default
6768 typedef pid_t ac__type_new_;
6770 main ()
6772 if ((ac__type_new_ *) 0)
6773 return 0;
6774 if (sizeof (ac__type_new_))
6775 return 0;
6777 return 0;
6779 _ACEOF
6780 rm -f conftest.$ac_objext
6781 if { (ac_try="$ac_compile"
6782 case "(($ac_try" in
6783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6784 *) ac_try_echo=$ac_try;;
6785 esac
6786 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6787 (eval "$ac_compile") 2>conftest.er1
6788 ac_status=$?
6789 grep -v '^ *+' conftest.er1 >conftest.err
6790 rm -f conftest.er1
6791 cat conftest.err >&5
6792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6793 (exit $ac_status); } && {
6794 test -z "$ac_c_werror_flag" ||
6795 test ! -s conftest.err
6796 } && test -s conftest.$ac_objext; then
6797 ac_cv_type_pid_t=yes
6798 else
6799 echo "$as_me: failed program was:" >&5
6800 sed 's/^/| /' conftest.$ac_ext >&5
6802 ac_cv_type_pid_t=no
6805 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6807 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
6808 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
6809 if test $ac_cv_type_pid_t = yes; then
6811 else
6813 cat >>confdefs.h <<_ACEOF
6814 #define pid_t int
6815 _ACEOF
6819 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
6820 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
6821 if test "${ac_cv_type_signal+set}" = set; then
6822 echo $ECHO_N "(cached) $ECHO_C" >&6
6823 else
6824 cat >conftest.$ac_ext <<_ACEOF
6825 /* confdefs.h. */
6826 _ACEOF
6827 cat confdefs.h >>conftest.$ac_ext
6828 cat >>conftest.$ac_ext <<_ACEOF
6829 /* end confdefs.h. */
6830 #include <sys/types.h>
6831 #include <signal.h>
6834 main ()
6836 return *(signal (0, 0)) (0) == 1;
6838 return 0;
6840 _ACEOF
6841 rm -f conftest.$ac_objext
6842 if { (ac_try="$ac_compile"
6843 case "(($ac_try" in
6844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6845 *) ac_try_echo=$ac_try;;
6846 esac
6847 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6848 (eval "$ac_compile") 2>conftest.er1
6849 ac_status=$?
6850 grep -v '^ *+' conftest.er1 >conftest.err
6851 rm -f conftest.er1
6852 cat conftest.err >&5
6853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6854 (exit $ac_status); } && {
6855 test -z "$ac_c_werror_flag" ||
6856 test ! -s conftest.err
6857 } && test -s conftest.$ac_objext; then
6858 ac_cv_type_signal=int
6859 else
6860 echo "$as_me: failed program was:" >&5
6861 sed 's/^/| /' conftest.$ac_ext >&5
6863 ac_cv_type_signal=void
6866 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6868 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
6869 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
6871 cat >>confdefs.h <<_ACEOF
6872 #define RETSIGTYPE $ac_cv_type_signal
6873 _ACEOF
6876 { echo "$as_me:$LINENO: checking for size_t" >&5
6877 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
6878 if test "${ac_cv_type_size_t+set}" = set; then
6879 echo $ECHO_N "(cached) $ECHO_C" >&6
6880 else
6881 cat >conftest.$ac_ext <<_ACEOF
6882 /* confdefs.h. */
6883 _ACEOF
6884 cat confdefs.h >>conftest.$ac_ext
6885 cat >>conftest.$ac_ext <<_ACEOF
6886 /* end confdefs.h. */
6887 $ac_includes_default
6888 typedef size_t ac__type_new_;
6890 main ()
6892 if ((ac__type_new_ *) 0)
6893 return 0;
6894 if (sizeof (ac__type_new_))
6895 return 0;
6897 return 0;
6899 _ACEOF
6900 rm -f conftest.$ac_objext
6901 if { (ac_try="$ac_compile"
6902 case "(($ac_try" in
6903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6904 *) ac_try_echo=$ac_try;;
6905 esac
6906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6907 (eval "$ac_compile") 2>conftest.er1
6908 ac_status=$?
6909 grep -v '^ *+' conftest.er1 >conftest.err
6910 rm -f conftest.er1
6911 cat conftest.err >&5
6912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6913 (exit $ac_status); } && {
6914 test -z "$ac_c_werror_flag" ||
6915 test ! -s conftest.err
6916 } && test -s conftest.$ac_objext; then
6917 ac_cv_type_size_t=yes
6918 else
6919 echo "$as_me: failed program was:" >&5
6920 sed 's/^/| /' conftest.$ac_ext >&5
6922 ac_cv_type_size_t=no
6925 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6927 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
6928 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
6929 if test $ac_cv_type_size_t = yes; then
6931 else
6933 cat >>confdefs.h <<_ACEOF
6934 #define size_t unsigned int
6935 _ACEOF
6939 { echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
6940 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
6941 if test "${ac_cv_type_uid_t+set}" = set; then
6942 echo $ECHO_N "(cached) $ECHO_C" >&6
6943 else
6944 cat >conftest.$ac_ext <<_ACEOF
6945 /* confdefs.h. */
6946 _ACEOF
6947 cat confdefs.h >>conftest.$ac_ext
6948 cat >>conftest.$ac_ext <<_ACEOF
6949 /* end confdefs.h. */
6950 #include <sys/types.h>
6952 _ACEOF
6953 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6954 $EGREP "uid_t" >/dev/null 2>&1; then
6955 ac_cv_type_uid_t=yes
6956 else
6957 ac_cv_type_uid_t=no
6959 rm -f conftest*
6962 { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
6963 echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
6964 if test $ac_cv_type_uid_t = no; then
6966 cat >>confdefs.h <<\_ACEOF
6967 #define uid_t int
6968 _ACEOF
6971 cat >>confdefs.h <<\_ACEOF
6972 #define gid_t int
6973 _ACEOF
6978 { echo "$as_me:$LINENO: checking for uint32_t" >&5
6979 echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6; }
6980 if test "${ac_cv_c_uint32_t+set}" = set; then
6981 echo $ECHO_N "(cached) $ECHO_C" >&6
6982 else
6983 ac_cv_c_uint32_t=no
6984 for ac_type in 'uint32_t' 'unsigned int' 'unsigned long int' \
6985 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
6986 cat >conftest.$ac_ext <<_ACEOF
6987 /* confdefs.h. */
6988 _ACEOF
6989 cat confdefs.h >>conftest.$ac_ext
6990 cat >>conftest.$ac_ext <<_ACEOF
6991 /* end confdefs.h. */
6992 $ac_includes_default
6994 main ()
6996 static int test_array [1 - 2 * !(($ac_type) -1 >> (32 - 1) == 1)];
6997 test_array [0] = 0
7000 return 0;
7002 _ACEOF
7003 rm -f conftest.$ac_objext
7004 if { (ac_try="$ac_compile"
7005 case "(($ac_try" in
7006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7007 *) ac_try_echo=$ac_try;;
7008 esac
7009 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7010 (eval "$ac_compile") 2>conftest.er1
7011 ac_status=$?
7012 grep -v '^ *+' conftest.er1 >conftest.err
7013 rm -f conftest.er1
7014 cat conftest.err >&5
7015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7016 (exit $ac_status); } && {
7017 test -z "$ac_c_werror_flag" ||
7018 test ! -s conftest.err
7019 } && test -s conftest.$ac_objext; then
7020 case $ac_type in
7021 uint32_t) ac_cv_c_uint32_t=yes ;;
7022 *) ac_cv_c_uint32_t=$ac_type ;;
7023 esac
7025 else
7026 echo "$as_me: failed program was:" >&5
7027 sed 's/^/| /' conftest.$ac_ext >&5
7032 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7033 test "$ac_cv_c_uint32_t" != no && break
7034 done
7036 { echo "$as_me:$LINENO: result: $ac_cv_c_uint32_t" >&5
7037 echo "${ECHO_T}$ac_cv_c_uint32_t" >&6; }
7038 case $ac_cv_c_uint32_t in #(
7039 no|yes) ;; #(
7042 cat >>confdefs.h <<\_ACEOF
7043 #define _UINT32_T 1
7044 _ACEOF
7047 cat >>confdefs.h <<_ACEOF
7048 #define uint32_t $ac_cv_c_uint32_t
7049 _ACEOF
7051 esac
7054 { echo "$as_me:$LINENO: checking for uint64_t" >&5
7055 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
7056 if test "${ac_cv_c_uint64_t+set}" = set; then
7057 echo $ECHO_N "(cached) $ECHO_C" >&6
7058 else
7059 ac_cv_c_uint64_t=no
7060 for ac_type in 'uint64_t' 'unsigned int' 'unsigned long int' \
7061 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
7062 cat >conftest.$ac_ext <<_ACEOF
7063 /* confdefs.h. */
7064 _ACEOF
7065 cat confdefs.h >>conftest.$ac_ext
7066 cat >>conftest.$ac_ext <<_ACEOF
7067 /* end confdefs.h. */
7068 $ac_includes_default
7070 main ()
7072 static int test_array [1 - 2 * !(($ac_type) -1 >> (64 - 1) == 1)];
7073 test_array [0] = 0
7076 return 0;
7078 _ACEOF
7079 rm -f conftest.$ac_objext
7080 if { (ac_try="$ac_compile"
7081 case "(($ac_try" in
7082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7083 *) ac_try_echo=$ac_try;;
7084 esac
7085 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7086 (eval "$ac_compile") 2>conftest.er1
7087 ac_status=$?
7088 grep -v '^ *+' conftest.er1 >conftest.err
7089 rm -f conftest.er1
7090 cat conftest.err >&5
7091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7092 (exit $ac_status); } && {
7093 test -z "$ac_c_werror_flag" ||
7094 test ! -s conftest.err
7095 } && test -s conftest.$ac_objext; then
7096 case $ac_type in
7097 uint64_t) ac_cv_c_uint64_t=yes ;;
7098 *) ac_cv_c_uint64_t=$ac_type ;;
7099 esac
7101 else
7102 echo "$as_me: failed program was:" >&5
7103 sed 's/^/| /' conftest.$ac_ext >&5
7108 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7109 test "$ac_cv_c_uint64_t" != no && break
7110 done
7112 { echo "$as_me:$LINENO: result: $ac_cv_c_uint64_t" >&5
7113 echo "${ECHO_T}$ac_cv_c_uint64_t" >&6; }
7114 case $ac_cv_c_uint64_t in #(
7115 no|yes) ;; #(
7118 cat >>confdefs.h <<\_ACEOF
7119 #define _UINT64_T 1
7120 _ACEOF
7123 cat >>confdefs.h <<_ACEOF
7124 #define uint64_t $ac_cv_c_uint64_t
7125 _ACEOF
7127 esac
7130 { echo "$as_me:$LINENO: checking for int32_t" >&5
7131 echo $ECHO_N "checking for int32_t... $ECHO_C" >&6; }
7132 if test "${ac_cv_c_int32_t+set}" = set; then
7133 echo $ECHO_N "(cached) $ECHO_C" >&6
7134 else
7135 ac_cv_c_int32_t=no
7136 for ac_type in 'int32_t' 'int' 'long int' \
7137 'long long int' 'short int' 'signed char'; do
7138 cat >conftest.$ac_ext <<_ACEOF
7139 /* confdefs.h. */
7140 _ACEOF
7141 cat confdefs.h >>conftest.$ac_ext
7142 cat >>conftest.$ac_ext <<_ACEOF
7143 /* end confdefs.h. */
7144 $ac_includes_default
7146 main ()
7148 static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << (32 - 2)) - 1) * 2 + 1))];
7149 test_array [0] = 0
7152 return 0;
7154 _ACEOF
7155 rm -f conftest.$ac_objext
7156 if { (ac_try="$ac_compile"
7157 case "(($ac_try" in
7158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7159 *) ac_try_echo=$ac_try;;
7160 esac
7161 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7162 (eval "$ac_compile") 2>conftest.er1
7163 ac_status=$?
7164 grep -v '^ *+' conftest.er1 >conftest.err
7165 rm -f conftest.er1
7166 cat conftest.err >&5
7167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7168 (exit $ac_status); } && {
7169 test -z "$ac_c_werror_flag" ||
7170 test ! -s conftest.err
7171 } && test -s conftest.$ac_objext; then
7172 cat >conftest.$ac_ext <<_ACEOF
7173 /* confdefs.h. */
7174 _ACEOF
7175 cat confdefs.h >>conftest.$ac_ext
7176 cat >>conftest.$ac_ext <<_ACEOF
7177 /* end confdefs.h. */
7178 $ac_includes_default
7180 main ()
7182 static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << (32 - 2)) - 1) * 2 + 1)
7183 < ($ac_type) (((($ac_type) 1 << (32 - 2)) - 1) * 2 + 2))];
7184 test_array [0] = 0
7187 return 0;
7189 _ACEOF
7190 rm -f conftest.$ac_objext
7191 if { (ac_try="$ac_compile"
7192 case "(($ac_try" in
7193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7194 *) ac_try_echo=$ac_try;;
7195 esac
7196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7197 (eval "$ac_compile") 2>conftest.er1
7198 ac_status=$?
7199 grep -v '^ *+' conftest.er1 >conftest.err
7200 rm -f conftest.er1
7201 cat conftest.err >&5
7202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7203 (exit $ac_status); } && {
7204 test -z "$ac_c_werror_flag" ||
7205 test ! -s conftest.err
7206 } && test -s conftest.$ac_objext; then
7208 else
7209 echo "$as_me: failed program was:" >&5
7210 sed 's/^/| /' conftest.$ac_ext >&5
7212 case $ac_type in
7213 int32_t) ac_cv_c_int32_t=yes ;;
7214 *) ac_cv_c_int32_t=$ac_type ;;
7215 esac
7219 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7220 else
7221 echo "$as_me: failed program was:" >&5
7222 sed 's/^/| /' conftest.$ac_ext >&5
7227 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7228 test "$ac_cv_c_int32_t" != no && break
7229 done
7231 { echo "$as_me:$LINENO: result: $ac_cv_c_int32_t" >&5
7232 echo "${ECHO_T}$ac_cv_c_int32_t" >&6; }
7233 case $ac_cv_c_int32_t in #(
7234 no|yes) ;; #(
7237 cat >>confdefs.h <<_ACEOF
7238 #define int32_t $ac_cv_c_int32_t
7239 _ACEOF
7241 esac
7244 { echo "$as_me:$LINENO: checking for int64_t" >&5
7245 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
7246 if test "${ac_cv_c_int64_t+set}" = set; then
7247 echo $ECHO_N "(cached) $ECHO_C" >&6
7248 else
7249 ac_cv_c_int64_t=no
7250 for ac_type in 'int64_t' 'int' 'long int' \
7251 'long long int' 'short int' 'signed char'; do
7252 cat >conftest.$ac_ext <<_ACEOF
7253 /* confdefs.h. */
7254 _ACEOF
7255 cat confdefs.h >>conftest.$ac_ext
7256 cat >>conftest.$ac_ext <<_ACEOF
7257 /* end confdefs.h. */
7258 $ac_includes_default
7260 main ()
7262 static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << (64 - 2)) - 1) * 2 + 1))];
7263 test_array [0] = 0
7266 return 0;
7268 _ACEOF
7269 rm -f conftest.$ac_objext
7270 if { (ac_try="$ac_compile"
7271 case "(($ac_try" in
7272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7273 *) ac_try_echo=$ac_try;;
7274 esac
7275 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7276 (eval "$ac_compile") 2>conftest.er1
7277 ac_status=$?
7278 grep -v '^ *+' conftest.er1 >conftest.err
7279 rm -f conftest.er1
7280 cat conftest.err >&5
7281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7282 (exit $ac_status); } && {
7283 test -z "$ac_c_werror_flag" ||
7284 test ! -s conftest.err
7285 } && test -s conftest.$ac_objext; then
7286 cat >conftest.$ac_ext <<_ACEOF
7287 /* confdefs.h. */
7288 _ACEOF
7289 cat confdefs.h >>conftest.$ac_ext
7290 cat >>conftest.$ac_ext <<_ACEOF
7291 /* end confdefs.h. */
7292 $ac_includes_default
7294 main ()
7296 static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << (64 - 2)) - 1) * 2 + 1)
7297 < ($ac_type) (((($ac_type) 1 << (64 - 2)) - 1) * 2 + 2))];
7298 test_array [0] = 0
7301 return 0;
7303 _ACEOF
7304 rm -f conftest.$ac_objext
7305 if { (ac_try="$ac_compile"
7306 case "(($ac_try" in
7307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7308 *) ac_try_echo=$ac_try;;
7309 esac
7310 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7311 (eval "$ac_compile") 2>conftest.er1
7312 ac_status=$?
7313 grep -v '^ *+' conftest.er1 >conftest.err
7314 rm -f conftest.er1
7315 cat conftest.err >&5
7316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7317 (exit $ac_status); } && {
7318 test -z "$ac_c_werror_flag" ||
7319 test ! -s conftest.err
7320 } && test -s conftest.$ac_objext; then
7322 else
7323 echo "$as_me: failed program was:" >&5
7324 sed 's/^/| /' conftest.$ac_ext >&5
7326 case $ac_type in
7327 int64_t) ac_cv_c_int64_t=yes ;;
7328 *) ac_cv_c_int64_t=$ac_type ;;
7329 esac
7333 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7334 else
7335 echo "$as_me: failed program was:" >&5
7336 sed 's/^/| /' conftest.$ac_ext >&5
7341 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7342 test "$ac_cv_c_int64_t" != no && break
7343 done
7345 { echo "$as_me:$LINENO: result: $ac_cv_c_int64_t" >&5
7346 echo "${ECHO_T}$ac_cv_c_int64_t" >&6; }
7347 case $ac_cv_c_int64_t in #(
7348 no|yes) ;; #(
7351 cat >>confdefs.h <<_ACEOF
7352 #define int64_t $ac_cv_c_int64_t
7353 _ACEOF
7355 esac
7357 { echo "$as_me:$LINENO: checking for ssize_t" >&5
7358 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
7359 if test "${ac_cv_type_ssize_t+set}" = set; then
7360 echo $ECHO_N "(cached) $ECHO_C" >&6
7361 else
7362 cat >conftest.$ac_ext <<_ACEOF
7363 /* confdefs.h. */
7364 _ACEOF
7365 cat confdefs.h >>conftest.$ac_ext
7366 cat >>conftest.$ac_ext <<_ACEOF
7367 /* end confdefs.h. */
7368 $ac_includes_default
7369 typedef ssize_t ac__type_new_;
7371 main ()
7373 if ((ac__type_new_ *) 0)
7374 return 0;
7375 if (sizeof (ac__type_new_))
7376 return 0;
7378 return 0;
7380 _ACEOF
7381 rm -f conftest.$ac_objext
7382 if { (ac_try="$ac_compile"
7383 case "(($ac_try" in
7384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7385 *) ac_try_echo=$ac_try;;
7386 esac
7387 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7388 (eval "$ac_compile") 2>conftest.er1
7389 ac_status=$?
7390 grep -v '^ *+' conftest.er1 >conftest.err
7391 rm -f conftest.er1
7392 cat conftest.err >&5
7393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7394 (exit $ac_status); } && {
7395 test -z "$ac_c_werror_flag" ||
7396 test ! -s conftest.err
7397 } && test -s conftest.$ac_objext; then
7398 ac_cv_type_ssize_t=yes
7399 else
7400 echo "$as_me: failed program was:" >&5
7401 sed 's/^/| /' conftest.$ac_ext >&5
7403 ac_cv_type_ssize_t=no
7406 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7408 { echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
7409 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6; }
7410 if test $ac_cv_type_ssize_t = yes; then
7412 cat >>confdefs.h <<\_ACEOF
7413 #define HAVE_SSIZE_T 1
7414 _ACEOF
7419 # Sizes of various common basic types
7420 # ANSI C requires sizeof(char) == 1, so no need to check it
7421 { echo "$as_me:$LINENO: checking for int" >&5
7422 echo $ECHO_N "checking for int... $ECHO_C" >&6; }
7423 if test "${ac_cv_type_int+set}" = set; then
7424 echo $ECHO_N "(cached) $ECHO_C" >&6
7425 else
7426 cat >conftest.$ac_ext <<_ACEOF
7427 /* confdefs.h. */
7428 _ACEOF
7429 cat confdefs.h >>conftest.$ac_ext
7430 cat >>conftest.$ac_ext <<_ACEOF
7431 /* end confdefs.h. */
7432 $ac_includes_default
7433 typedef int ac__type_new_;
7435 main ()
7437 if ((ac__type_new_ *) 0)
7438 return 0;
7439 if (sizeof (ac__type_new_))
7440 return 0;
7442 return 0;
7444 _ACEOF
7445 rm -f conftest.$ac_objext
7446 if { (ac_try="$ac_compile"
7447 case "(($ac_try" in
7448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7449 *) ac_try_echo=$ac_try;;
7450 esac
7451 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7452 (eval "$ac_compile") 2>conftest.er1
7453 ac_status=$?
7454 grep -v '^ *+' conftest.er1 >conftest.err
7455 rm -f conftest.er1
7456 cat conftest.err >&5
7457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7458 (exit $ac_status); } && {
7459 test -z "$ac_c_werror_flag" ||
7460 test ! -s conftest.err
7461 } && test -s conftest.$ac_objext; then
7462 ac_cv_type_int=yes
7463 else
7464 echo "$as_me: failed program was:" >&5
7465 sed 's/^/| /' conftest.$ac_ext >&5
7467 ac_cv_type_int=no
7470 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7472 { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
7473 echo "${ECHO_T}$ac_cv_type_int" >&6; }
7475 # The cast to long int works around a bug in the HP C Compiler
7476 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7477 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7478 # This bug is HP SR number 8606223364.
7479 { echo "$as_me:$LINENO: checking size of int" >&5
7480 echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
7481 if test "${ac_cv_sizeof_int+set}" = set; then
7482 echo $ECHO_N "(cached) $ECHO_C" >&6
7483 else
7484 if test "$cross_compiling" = yes; then
7485 # Depending upon the size, compute the lo and hi bounds.
7486 cat >conftest.$ac_ext <<_ACEOF
7487 /* confdefs.h. */
7488 _ACEOF
7489 cat confdefs.h >>conftest.$ac_ext
7490 cat >>conftest.$ac_ext <<_ACEOF
7491 /* end confdefs.h. */
7492 $ac_includes_default
7493 typedef int ac__type_sizeof_;
7495 main ()
7497 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
7498 test_array [0] = 0
7501 return 0;
7503 _ACEOF
7504 rm -f conftest.$ac_objext
7505 if { (ac_try="$ac_compile"
7506 case "(($ac_try" in
7507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7508 *) ac_try_echo=$ac_try;;
7509 esac
7510 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7511 (eval "$ac_compile") 2>conftest.er1
7512 ac_status=$?
7513 grep -v '^ *+' conftest.er1 >conftest.err
7514 rm -f conftest.er1
7515 cat conftest.err >&5
7516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7517 (exit $ac_status); } && {
7518 test -z "$ac_c_werror_flag" ||
7519 test ! -s conftest.err
7520 } && test -s conftest.$ac_objext; then
7521 ac_lo=0 ac_mid=0
7522 while :; do
7523 cat >conftest.$ac_ext <<_ACEOF
7524 /* confdefs.h. */
7525 _ACEOF
7526 cat confdefs.h >>conftest.$ac_ext
7527 cat >>conftest.$ac_ext <<_ACEOF
7528 /* end confdefs.h. */
7529 $ac_includes_default
7530 typedef int ac__type_sizeof_;
7532 main ()
7534 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
7535 test_array [0] = 0
7538 return 0;
7540 _ACEOF
7541 rm -f conftest.$ac_objext
7542 if { (ac_try="$ac_compile"
7543 case "(($ac_try" in
7544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7545 *) ac_try_echo=$ac_try;;
7546 esac
7547 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7548 (eval "$ac_compile") 2>conftest.er1
7549 ac_status=$?
7550 grep -v '^ *+' conftest.er1 >conftest.err
7551 rm -f conftest.er1
7552 cat conftest.err >&5
7553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7554 (exit $ac_status); } && {
7555 test -z "$ac_c_werror_flag" ||
7556 test ! -s conftest.err
7557 } && test -s conftest.$ac_objext; then
7558 ac_hi=$ac_mid; break
7559 else
7560 echo "$as_me: failed program was:" >&5
7561 sed 's/^/| /' conftest.$ac_ext >&5
7563 ac_lo=`expr $ac_mid + 1`
7564 if test $ac_lo -le $ac_mid; then
7565 ac_lo= ac_hi=
7566 break
7568 ac_mid=`expr 2 '*' $ac_mid + 1`
7571 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7572 done
7573 else
7574 echo "$as_me: failed program was:" >&5
7575 sed 's/^/| /' conftest.$ac_ext >&5
7577 cat >conftest.$ac_ext <<_ACEOF
7578 /* confdefs.h. */
7579 _ACEOF
7580 cat confdefs.h >>conftest.$ac_ext
7581 cat >>conftest.$ac_ext <<_ACEOF
7582 /* end confdefs.h. */
7583 $ac_includes_default
7584 typedef int ac__type_sizeof_;
7586 main ()
7588 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
7589 test_array [0] = 0
7592 return 0;
7594 _ACEOF
7595 rm -f conftest.$ac_objext
7596 if { (ac_try="$ac_compile"
7597 case "(($ac_try" in
7598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7599 *) ac_try_echo=$ac_try;;
7600 esac
7601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7602 (eval "$ac_compile") 2>conftest.er1
7603 ac_status=$?
7604 grep -v '^ *+' conftest.er1 >conftest.err
7605 rm -f conftest.er1
7606 cat conftest.err >&5
7607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7608 (exit $ac_status); } && {
7609 test -z "$ac_c_werror_flag" ||
7610 test ! -s conftest.err
7611 } && test -s conftest.$ac_objext; then
7612 ac_hi=-1 ac_mid=-1
7613 while :; do
7614 cat >conftest.$ac_ext <<_ACEOF
7615 /* confdefs.h. */
7616 _ACEOF
7617 cat confdefs.h >>conftest.$ac_ext
7618 cat >>conftest.$ac_ext <<_ACEOF
7619 /* end confdefs.h. */
7620 $ac_includes_default
7621 typedef int ac__type_sizeof_;
7623 main ()
7625 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
7626 test_array [0] = 0
7629 return 0;
7631 _ACEOF
7632 rm -f conftest.$ac_objext
7633 if { (ac_try="$ac_compile"
7634 case "(($ac_try" in
7635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7636 *) ac_try_echo=$ac_try;;
7637 esac
7638 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7639 (eval "$ac_compile") 2>conftest.er1
7640 ac_status=$?
7641 grep -v '^ *+' conftest.er1 >conftest.err
7642 rm -f conftest.er1
7643 cat conftest.err >&5
7644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7645 (exit $ac_status); } && {
7646 test -z "$ac_c_werror_flag" ||
7647 test ! -s conftest.err
7648 } && test -s conftest.$ac_objext; then
7649 ac_lo=$ac_mid; break
7650 else
7651 echo "$as_me: failed program was:" >&5
7652 sed 's/^/| /' conftest.$ac_ext >&5
7654 ac_hi=`expr '(' $ac_mid ')' - 1`
7655 if test $ac_mid -le $ac_hi; then
7656 ac_lo= ac_hi=
7657 break
7659 ac_mid=`expr 2 '*' $ac_mid`
7662 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7663 done
7664 else
7665 echo "$as_me: failed program was:" >&5
7666 sed 's/^/| /' conftest.$ac_ext >&5
7668 ac_lo= ac_hi=
7671 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7674 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7675 # Binary search between lo and hi bounds.
7676 while test "x$ac_lo" != "x$ac_hi"; do
7677 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7678 cat >conftest.$ac_ext <<_ACEOF
7679 /* confdefs.h. */
7680 _ACEOF
7681 cat confdefs.h >>conftest.$ac_ext
7682 cat >>conftest.$ac_ext <<_ACEOF
7683 /* end confdefs.h. */
7684 $ac_includes_default
7685 typedef int ac__type_sizeof_;
7687 main ()
7689 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
7690 test_array [0] = 0
7693 return 0;
7695 _ACEOF
7696 rm -f conftest.$ac_objext
7697 if { (ac_try="$ac_compile"
7698 case "(($ac_try" in
7699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7700 *) ac_try_echo=$ac_try;;
7701 esac
7702 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7703 (eval "$ac_compile") 2>conftest.er1
7704 ac_status=$?
7705 grep -v '^ *+' conftest.er1 >conftest.err
7706 rm -f conftest.er1
7707 cat conftest.err >&5
7708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7709 (exit $ac_status); } && {
7710 test -z "$ac_c_werror_flag" ||
7711 test ! -s conftest.err
7712 } && test -s conftest.$ac_objext; then
7713 ac_hi=$ac_mid
7714 else
7715 echo "$as_me: failed program was:" >&5
7716 sed 's/^/| /' conftest.$ac_ext >&5
7718 ac_lo=`expr '(' $ac_mid ')' + 1`
7721 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7722 done
7723 case $ac_lo in
7724 ?*) ac_cv_sizeof_int=$ac_lo;;
7725 '') if test "$ac_cv_type_int" = yes; then
7726 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
7727 See \`config.log' for more details." >&5
7728 echo "$as_me: error: cannot compute sizeof (int)
7729 See \`config.log' for more details." >&2;}
7730 { (exit 77); exit 77; }; }
7731 else
7732 ac_cv_sizeof_int=0
7733 fi ;;
7734 esac
7735 else
7736 cat >conftest.$ac_ext <<_ACEOF
7737 /* confdefs.h. */
7738 _ACEOF
7739 cat confdefs.h >>conftest.$ac_ext
7740 cat >>conftest.$ac_ext <<_ACEOF
7741 /* end confdefs.h. */
7742 $ac_includes_default
7743 typedef int ac__type_sizeof_;
7744 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
7745 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
7746 #include <stdio.h>
7747 #include <stdlib.h>
7749 main ()
7752 FILE *f = fopen ("conftest.val", "w");
7753 if (! f)
7754 return 1;
7755 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
7757 long int i = longval ();
7758 if (i != ((long int) (sizeof (ac__type_sizeof_))))
7759 return 1;
7760 fprintf (f, "%ld\n", i);
7762 else
7764 unsigned long int i = ulongval ();
7765 if (i != ((long int) (sizeof (ac__type_sizeof_))))
7766 return 1;
7767 fprintf (f, "%lu\n", i);
7769 return ferror (f) || fclose (f) != 0;
7772 return 0;
7774 _ACEOF
7775 rm -f conftest$ac_exeext
7776 if { (ac_try="$ac_link"
7777 case "(($ac_try" in
7778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7779 *) ac_try_echo=$ac_try;;
7780 esac
7781 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7782 (eval "$ac_link") 2>&5
7783 ac_status=$?
7784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7785 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7786 { (case "(($ac_try" in
7787 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7788 *) ac_try_echo=$ac_try;;
7789 esac
7790 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7791 (eval "$ac_try") 2>&5
7792 ac_status=$?
7793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7794 (exit $ac_status); }; }; then
7795 ac_cv_sizeof_int=`cat conftest.val`
7796 else
7797 echo "$as_me: program exited with status $ac_status" >&5
7798 echo "$as_me: failed program was:" >&5
7799 sed 's/^/| /' conftest.$ac_ext >&5
7801 ( exit $ac_status )
7802 if test "$ac_cv_type_int" = yes; then
7803 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
7804 See \`config.log' for more details." >&5
7805 echo "$as_me: error: cannot compute sizeof (int)
7806 See \`config.log' for more details." >&2;}
7807 { (exit 77); exit 77; }; }
7808 else
7809 ac_cv_sizeof_int=0
7812 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7814 rm -f conftest.val
7816 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
7817 echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
7821 cat >>confdefs.h <<_ACEOF
7822 #define SIZEOF_INT $ac_cv_sizeof_int
7823 _ACEOF
7826 { echo "$as_me:$LINENO: checking for long" >&5
7827 echo $ECHO_N "checking for long... $ECHO_C" >&6; }
7828 if test "${ac_cv_type_long+set}" = set; then
7829 echo $ECHO_N "(cached) $ECHO_C" >&6
7830 else
7831 cat >conftest.$ac_ext <<_ACEOF
7832 /* confdefs.h. */
7833 _ACEOF
7834 cat confdefs.h >>conftest.$ac_ext
7835 cat >>conftest.$ac_ext <<_ACEOF
7836 /* end confdefs.h. */
7837 $ac_includes_default
7838 typedef long ac__type_new_;
7840 main ()
7842 if ((ac__type_new_ *) 0)
7843 return 0;
7844 if (sizeof (ac__type_new_))
7845 return 0;
7847 return 0;
7849 _ACEOF
7850 rm -f conftest.$ac_objext
7851 if { (ac_try="$ac_compile"
7852 case "(($ac_try" in
7853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7854 *) ac_try_echo=$ac_try;;
7855 esac
7856 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7857 (eval "$ac_compile") 2>conftest.er1
7858 ac_status=$?
7859 grep -v '^ *+' conftest.er1 >conftest.err
7860 rm -f conftest.er1
7861 cat conftest.err >&5
7862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7863 (exit $ac_status); } && {
7864 test -z "$ac_c_werror_flag" ||
7865 test ! -s conftest.err
7866 } && test -s conftest.$ac_objext; then
7867 ac_cv_type_long=yes
7868 else
7869 echo "$as_me: failed program was:" >&5
7870 sed 's/^/| /' conftest.$ac_ext >&5
7872 ac_cv_type_long=no
7875 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7877 { echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
7878 echo "${ECHO_T}$ac_cv_type_long" >&6; }
7880 # The cast to long int works around a bug in the HP C Compiler
7881 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7882 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7883 # This bug is HP SR number 8606223364.
7884 { echo "$as_me:$LINENO: checking size of long" >&5
7885 echo $ECHO_N "checking size of long... $ECHO_C" >&6; }
7886 if test "${ac_cv_sizeof_long+set}" = set; then
7887 echo $ECHO_N "(cached) $ECHO_C" >&6
7888 else
7889 if test "$cross_compiling" = yes; then
7890 # Depending upon the size, compute the lo and hi bounds.
7891 cat >conftest.$ac_ext <<_ACEOF
7892 /* confdefs.h. */
7893 _ACEOF
7894 cat confdefs.h >>conftest.$ac_ext
7895 cat >>conftest.$ac_ext <<_ACEOF
7896 /* end confdefs.h. */
7897 $ac_includes_default
7898 typedef long ac__type_sizeof_;
7900 main ()
7902 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
7903 test_array [0] = 0
7906 return 0;
7908 _ACEOF
7909 rm -f conftest.$ac_objext
7910 if { (ac_try="$ac_compile"
7911 case "(($ac_try" in
7912 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7913 *) ac_try_echo=$ac_try;;
7914 esac
7915 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7916 (eval "$ac_compile") 2>conftest.er1
7917 ac_status=$?
7918 grep -v '^ *+' conftest.er1 >conftest.err
7919 rm -f conftest.er1
7920 cat conftest.err >&5
7921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7922 (exit $ac_status); } && {
7923 test -z "$ac_c_werror_flag" ||
7924 test ! -s conftest.err
7925 } && test -s conftest.$ac_objext; then
7926 ac_lo=0 ac_mid=0
7927 while :; do
7928 cat >conftest.$ac_ext <<_ACEOF
7929 /* confdefs.h. */
7930 _ACEOF
7931 cat confdefs.h >>conftest.$ac_ext
7932 cat >>conftest.$ac_ext <<_ACEOF
7933 /* end confdefs.h. */
7934 $ac_includes_default
7935 typedef long ac__type_sizeof_;
7937 main ()
7939 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
7940 test_array [0] = 0
7943 return 0;
7945 _ACEOF
7946 rm -f conftest.$ac_objext
7947 if { (ac_try="$ac_compile"
7948 case "(($ac_try" in
7949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7950 *) ac_try_echo=$ac_try;;
7951 esac
7952 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7953 (eval "$ac_compile") 2>conftest.er1
7954 ac_status=$?
7955 grep -v '^ *+' conftest.er1 >conftest.err
7956 rm -f conftest.er1
7957 cat conftest.err >&5
7958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7959 (exit $ac_status); } && {
7960 test -z "$ac_c_werror_flag" ||
7961 test ! -s conftest.err
7962 } && test -s conftest.$ac_objext; then
7963 ac_hi=$ac_mid; break
7964 else
7965 echo "$as_me: failed program was:" >&5
7966 sed 's/^/| /' conftest.$ac_ext >&5
7968 ac_lo=`expr $ac_mid + 1`
7969 if test $ac_lo -le $ac_mid; then
7970 ac_lo= ac_hi=
7971 break
7973 ac_mid=`expr 2 '*' $ac_mid + 1`
7976 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7977 done
7978 else
7979 echo "$as_me: failed program was:" >&5
7980 sed 's/^/| /' conftest.$ac_ext >&5
7982 cat >conftest.$ac_ext <<_ACEOF
7983 /* confdefs.h. */
7984 _ACEOF
7985 cat confdefs.h >>conftest.$ac_ext
7986 cat >>conftest.$ac_ext <<_ACEOF
7987 /* end confdefs.h. */
7988 $ac_includes_default
7989 typedef long ac__type_sizeof_;
7991 main ()
7993 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
7994 test_array [0] = 0
7997 return 0;
7999 _ACEOF
8000 rm -f conftest.$ac_objext
8001 if { (ac_try="$ac_compile"
8002 case "(($ac_try" in
8003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8004 *) ac_try_echo=$ac_try;;
8005 esac
8006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8007 (eval "$ac_compile") 2>conftest.er1
8008 ac_status=$?
8009 grep -v '^ *+' conftest.er1 >conftest.err
8010 rm -f conftest.er1
8011 cat conftest.err >&5
8012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8013 (exit $ac_status); } && {
8014 test -z "$ac_c_werror_flag" ||
8015 test ! -s conftest.err
8016 } && test -s conftest.$ac_objext; then
8017 ac_hi=-1 ac_mid=-1
8018 while :; do
8019 cat >conftest.$ac_ext <<_ACEOF
8020 /* confdefs.h. */
8021 _ACEOF
8022 cat confdefs.h >>conftest.$ac_ext
8023 cat >>conftest.$ac_ext <<_ACEOF
8024 /* end confdefs.h. */
8025 $ac_includes_default
8026 typedef long ac__type_sizeof_;
8028 main ()
8030 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
8031 test_array [0] = 0
8034 return 0;
8036 _ACEOF
8037 rm -f conftest.$ac_objext
8038 if { (ac_try="$ac_compile"
8039 case "(($ac_try" in
8040 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8041 *) ac_try_echo=$ac_try;;
8042 esac
8043 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8044 (eval "$ac_compile") 2>conftest.er1
8045 ac_status=$?
8046 grep -v '^ *+' conftest.er1 >conftest.err
8047 rm -f conftest.er1
8048 cat conftest.err >&5
8049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8050 (exit $ac_status); } && {
8051 test -z "$ac_c_werror_flag" ||
8052 test ! -s conftest.err
8053 } && test -s conftest.$ac_objext; then
8054 ac_lo=$ac_mid; break
8055 else
8056 echo "$as_me: failed program was:" >&5
8057 sed 's/^/| /' conftest.$ac_ext >&5
8059 ac_hi=`expr '(' $ac_mid ')' - 1`
8060 if test $ac_mid -le $ac_hi; then
8061 ac_lo= ac_hi=
8062 break
8064 ac_mid=`expr 2 '*' $ac_mid`
8067 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8068 done
8069 else
8070 echo "$as_me: failed program was:" >&5
8071 sed 's/^/| /' conftest.$ac_ext >&5
8073 ac_lo= ac_hi=
8076 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8079 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8080 # Binary search between lo and hi bounds.
8081 while test "x$ac_lo" != "x$ac_hi"; do
8082 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8083 cat >conftest.$ac_ext <<_ACEOF
8084 /* confdefs.h. */
8085 _ACEOF
8086 cat confdefs.h >>conftest.$ac_ext
8087 cat >>conftest.$ac_ext <<_ACEOF
8088 /* end confdefs.h. */
8089 $ac_includes_default
8090 typedef long ac__type_sizeof_;
8092 main ()
8094 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8095 test_array [0] = 0
8098 return 0;
8100 _ACEOF
8101 rm -f conftest.$ac_objext
8102 if { (ac_try="$ac_compile"
8103 case "(($ac_try" in
8104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8105 *) ac_try_echo=$ac_try;;
8106 esac
8107 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8108 (eval "$ac_compile") 2>conftest.er1
8109 ac_status=$?
8110 grep -v '^ *+' conftest.er1 >conftest.err
8111 rm -f conftest.er1
8112 cat conftest.err >&5
8113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8114 (exit $ac_status); } && {
8115 test -z "$ac_c_werror_flag" ||
8116 test ! -s conftest.err
8117 } && test -s conftest.$ac_objext; then
8118 ac_hi=$ac_mid
8119 else
8120 echo "$as_me: failed program was:" >&5
8121 sed 's/^/| /' conftest.$ac_ext >&5
8123 ac_lo=`expr '(' $ac_mid ')' + 1`
8126 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8127 done
8128 case $ac_lo in
8129 ?*) ac_cv_sizeof_long=$ac_lo;;
8130 '') if test "$ac_cv_type_long" = yes; then
8131 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
8132 See \`config.log' for more details." >&5
8133 echo "$as_me: error: cannot compute sizeof (long)
8134 See \`config.log' for more details." >&2;}
8135 { (exit 77); exit 77; }; }
8136 else
8137 ac_cv_sizeof_long=0
8138 fi ;;
8139 esac
8140 else
8141 cat >conftest.$ac_ext <<_ACEOF
8142 /* confdefs.h. */
8143 _ACEOF
8144 cat confdefs.h >>conftest.$ac_ext
8145 cat >>conftest.$ac_ext <<_ACEOF
8146 /* end confdefs.h. */
8147 $ac_includes_default
8148 typedef long ac__type_sizeof_;
8149 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
8150 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
8151 #include <stdio.h>
8152 #include <stdlib.h>
8154 main ()
8157 FILE *f = fopen ("conftest.val", "w");
8158 if (! f)
8159 return 1;
8160 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
8162 long int i = longval ();
8163 if (i != ((long int) (sizeof (ac__type_sizeof_))))
8164 return 1;
8165 fprintf (f, "%ld\n", i);
8167 else
8169 unsigned long int i = ulongval ();
8170 if (i != ((long int) (sizeof (ac__type_sizeof_))))
8171 return 1;
8172 fprintf (f, "%lu\n", i);
8174 return ferror (f) || fclose (f) != 0;
8177 return 0;
8179 _ACEOF
8180 rm -f conftest$ac_exeext
8181 if { (ac_try="$ac_link"
8182 case "(($ac_try" in
8183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8184 *) ac_try_echo=$ac_try;;
8185 esac
8186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8187 (eval "$ac_link") 2>&5
8188 ac_status=$?
8189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8190 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8191 { (case "(($ac_try" in
8192 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8193 *) ac_try_echo=$ac_try;;
8194 esac
8195 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8196 (eval "$ac_try") 2>&5
8197 ac_status=$?
8198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8199 (exit $ac_status); }; }; then
8200 ac_cv_sizeof_long=`cat conftest.val`
8201 else
8202 echo "$as_me: program exited with status $ac_status" >&5
8203 echo "$as_me: failed program was:" >&5
8204 sed 's/^/| /' conftest.$ac_ext >&5
8206 ( exit $ac_status )
8207 if test "$ac_cv_type_long" = yes; then
8208 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
8209 See \`config.log' for more details." >&5
8210 echo "$as_me: error: cannot compute sizeof (long)
8211 See \`config.log' for more details." >&2;}
8212 { (exit 77); exit 77; }; }
8213 else
8214 ac_cv_sizeof_long=0
8217 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8219 rm -f conftest.val
8221 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
8222 echo "${ECHO_T}$ac_cv_sizeof_long" >&6; }
8226 cat >>confdefs.h <<_ACEOF
8227 #define SIZEOF_LONG $ac_cv_sizeof_long
8228 _ACEOF
8231 { echo "$as_me:$LINENO: checking for void *" >&5
8232 echo $ECHO_N "checking for void *... $ECHO_C" >&6; }
8233 if test "${ac_cv_type_void_p+set}" = set; then
8234 echo $ECHO_N "(cached) $ECHO_C" >&6
8235 else
8236 cat >conftest.$ac_ext <<_ACEOF
8237 /* confdefs.h. */
8238 _ACEOF
8239 cat confdefs.h >>conftest.$ac_ext
8240 cat >>conftest.$ac_ext <<_ACEOF
8241 /* end confdefs.h. */
8242 $ac_includes_default
8243 typedef void * ac__type_new_;
8245 main ()
8247 if ((ac__type_new_ *) 0)
8248 return 0;
8249 if (sizeof (ac__type_new_))
8250 return 0;
8252 return 0;
8254 _ACEOF
8255 rm -f conftest.$ac_objext
8256 if { (ac_try="$ac_compile"
8257 case "(($ac_try" in
8258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8259 *) ac_try_echo=$ac_try;;
8260 esac
8261 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8262 (eval "$ac_compile") 2>conftest.er1
8263 ac_status=$?
8264 grep -v '^ *+' conftest.er1 >conftest.err
8265 rm -f conftest.er1
8266 cat conftest.err >&5
8267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8268 (exit $ac_status); } && {
8269 test -z "$ac_c_werror_flag" ||
8270 test ! -s conftest.err
8271 } && test -s conftest.$ac_objext; then
8272 ac_cv_type_void_p=yes
8273 else
8274 echo "$as_me: failed program was:" >&5
8275 sed 's/^/| /' conftest.$ac_ext >&5
8277 ac_cv_type_void_p=no
8280 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8282 { echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
8283 echo "${ECHO_T}$ac_cv_type_void_p" >&6; }
8285 # The cast to long int works around a bug in the HP C Compiler
8286 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8287 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8288 # This bug is HP SR number 8606223364.
8289 { echo "$as_me:$LINENO: checking size of void *" >&5
8290 echo $ECHO_N "checking size of void *... $ECHO_C" >&6; }
8291 if test "${ac_cv_sizeof_void_p+set}" = set; then
8292 echo $ECHO_N "(cached) $ECHO_C" >&6
8293 else
8294 if test "$cross_compiling" = yes; then
8295 # Depending upon the size, compute the lo and hi bounds.
8296 cat >conftest.$ac_ext <<_ACEOF
8297 /* confdefs.h. */
8298 _ACEOF
8299 cat confdefs.h >>conftest.$ac_ext
8300 cat >>conftest.$ac_ext <<_ACEOF
8301 /* end confdefs.h. */
8302 $ac_includes_default
8303 typedef void * ac__type_sizeof_;
8305 main ()
8307 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
8308 test_array [0] = 0
8311 return 0;
8313 _ACEOF
8314 rm -f conftest.$ac_objext
8315 if { (ac_try="$ac_compile"
8316 case "(($ac_try" in
8317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8318 *) ac_try_echo=$ac_try;;
8319 esac
8320 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8321 (eval "$ac_compile") 2>conftest.er1
8322 ac_status=$?
8323 grep -v '^ *+' conftest.er1 >conftest.err
8324 rm -f conftest.er1
8325 cat conftest.err >&5
8326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8327 (exit $ac_status); } && {
8328 test -z "$ac_c_werror_flag" ||
8329 test ! -s conftest.err
8330 } && test -s conftest.$ac_objext; then
8331 ac_lo=0 ac_mid=0
8332 while :; do
8333 cat >conftest.$ac_ext <<_ACEOF
8334 /* confdefs.h. */
8335 _ACEOF
8336 cat confdefs.h >>conftest.$ac_ext
8337 cat >>conftest.$ac_ext <<_ACEOF
8338 /* end confdefs.h. */
8339 $ac_includes_default
8340 typedef void * ac__type_sizeof_;
8342 main ()
8344 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8345 test_array [0] = 0
8348 return 0;
8350 _ACEOF
8351 rm -f conftest.$ac_objext
8352 if { (ac_try="$ac_compile"
8353 case "(($ac_try" in
8354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8355 *) ac_try_echo=$ac_try;;
8356 esac
8357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8358 (eval "$ac_compile") 2>conftest.er1
8359 ac_status=$?
8360 grep -v '^ *+' conftest.er1 >conftest.err
8361 rm -f conftest.er1
8362 cat conftest.err >&5
8363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8364 (exit $ac_status); } && {
8365 test -z "$ac_c_werror_flag" ||
8366 test ! -s conftest.err
8367 } && test -s conftest.$ac_objext; then
8368 ac_hi=$ac_mid; break
8369 else
8370 echo "$as_me: failed program was:" >&5
8371 sed 's/^/| /' conftest.$ac_ext >&5
8373 ac_lo=`expr $ac_mid + 1`
8374 if test $ac_lo -le $ac_mid; then
8375 ac_lo= ac_hi=
8376 break
8378 ac_mid=`expr 2 '*' $ac_mid + 1`
8381 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8382 done
8383 else
8384 echo "$as_me: failed program was:" >&5
8385 sed 's/^/| /' conftest.$ac_ext >&5
8387 cat >conftest.$ac_ext <<_ACEOF
8388 /* confdefs.h. */
8389 _ACEOF
8390 cat confdefs.h >>conftest.$ac_ext
8391 cat >>conftest.$ac_ext <<_ACEOF
8392 /* end confdefs.h. */
8393 $ac_includes_default
8394 typedef void * ac__type_sizeof_;
8396 main ()
8398 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
8399 test_array [0] = 0
8402 return 0;
8404 _ACEOF
8405 rm -f conftest.$ac_objext
8406 if { (ac_try="$ac_compile"
8407 case "(($ac_try" in
8408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8409 *) ac_try_echo=$ac_try;;
8410 esac
8411 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8412 (eval "$ac_compile") 2>conftest.er1
8413 ac_status=$?
8414 grep -v '^ *+' conftest.er1 >conftest.err
8415 rm -f conftest.er1
8416 cat conftest.err >&5
8417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8418 (exit $ac_status); } && {
8419 test -z "$ac_c_werror_flag" ||
8420 test ! -s conftest.err
8421 } && test -s conftest.$ac_objext; then
8422 ac_hi=-1 ac_mid=-1
8423 while :; do
8424 cat >conftest.$ac_ext <<_ACEOF
8425 /* confdefs.h. */
8426 _ACEOF
8427 cat confdefs.h >>conftest.$ac_ext
8428 cat >>conftest.$ac_ext <<_ACEOF
8429 /* end confdefs.h. */
8430 $ac_includes_default
8431 typedef void * ac__type_sizeof_;
8433 main ()
8435 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
8436 test_array [0] = 0
8439 return 0;
8441 _ACEOF
8442 rm -f conftest.$ac_objext
8443 if { (ac_try="$ac_compile"
8444 case "(($ac_try" in
8445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8446 *) ac_try_echo=$ac_try;;
8447 esac
8448 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8449 (eval "$ac_compile") 2>conftest.er1
8450 ac_status=$?
8451 grep -v '^ *+' conftest.er1 >conftest.err
8452 rm -f conftest.er1
8453 cat conftest.err >&5
8454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8455 (exit $ac_status); } && {
8456 test -z "$ac_c_werror_flag" ||
8457 test ! -s conftest.err
8458 } && test -s conftest.$ac_objext; then
8459 ac_lo=$ac_mid; break
8460 else
8461 echo "$as_me: failed program was:" >&5
8462 sed 's/^/| /' conftest.$ac_ext >&5
8464 ac_hi=`expr '(' $ac_mid ')' - 1`
8465 if test $ac_mid -le $ac_hi; then
8466 ac_lo= ac_hi=
8467 break
8469 ac_mid=`expr 2 '*' $ac_mid`
8472 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8473 done
8474 else
8475 echo "$as_me: failed program was:" >&5
8476 sed 's/^/| /' conftest.$ac_ext >&5
8478 ac_lo= ac_hi=
8481 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8484 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8485 # Binary search between lo and hi bounds.
8486 while test "x$ac_lo" != "x$ac_hi"; do
8487 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8488 cat >conftest.$ac_ext <<_ACEOF
8489 /* confdefs.h. */
8490 _ACEOF
8491 cat confdefs.h >>conftest.$ac_ext
8492 cat >>conftest.$ac_ext <<_ACEOF
8493 /* end confdefs.h. */
8494 $ac_includes_default
8495 typedef void * ac__type_sizeof_;
8497 main ()
8499 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8500 test_array [0] = 0
8503 return 0;
8505 _ACEOF
8506 rm -f conftest.$ac_objext
8507 if { (ac_try="$ac_compile"
8508 case "(($ac_try" in
8509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8510 *) ac_try_echo=$ac_try;;
8511 esac
8512 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8513 (eval "$ac_compile") 2>conftest.er1
8514 ac_status=$?
8515 grep -v '^ *+' conftest.er1 >conftest.err
8516 rm -f conftest.er1
8517 cat conftest.err >&5
8518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8519 (exit $ac_status); } && {
8520 test -z "$ac_c_werror_flag" ||
8521 test ! -s conftest.err
8522 } && test -s conftest.$ac_objext; then
8523 ac_hi=$ac_mid
8524 else
8525 echo "$as_me: failed program was:" >&5
8526 sed 's/^/| /' conftest.$ac_ext >&5
8528 ac_lo=`expr '(' $ac_mid ')' + 1`
8531 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8532 done
8533 case $ac_lo in
8534 ?*) ac_cv_sizeof_void_p=$ac_lo;;
8535 '') if test "$ac_cv_type_void_p" = yes; then
8536 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
8537 See \`config.log' for more details." >&5
8538 echo "$as_me: error: cannot compute sizeof (void *)
8539 See \`config.log' for more details." >&2;}
8540 { (exit 77); exit 77; }; }
8541 else
8542 ac_cv_sizeof_void_p=0
8543 fi ;;
8544 esac
8545 else
8546 cat >conftest.$ac_ext <<_ACEOF
8547 /* confdefs.h. */
8548 _ACEOF
8549 cat confdefs.h >>conftest.$ac_ext
8550 cat >>conftest.$ac_ext <<_ACEOF
8551 /* end confdefs.h. */
8552 $ac_includes_default
8553 typedef void * ac__type_sizeof_;
8554 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
8555 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
8556 #include <stdio.h>
8557 #include <stdlib.h>
8559 main ()
8562 FILE *f = fopen ("conftest.val", "w");
8563 if (! f)
8564 return 1;
8565 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
8567 long int i = longval ();
8568 if (i != ((long int) (sizeof (ac__type_sizeof_))))
8569 return 1;
8570 fprintf (f, "%ld\n", i);
8572 else
8574 unsigned long int i = ulongval ();
8575 if (i != ((long int) (sizeof (ac__type_sizeof_))))
8576 return 1;
8577 fprintf (f, "%lu\n", i);
8579 return ferror (f) || fclose (f) != 0;
8582 return 0;
8584 _ACEOF
8585 rm -f conftest$ac_exeext
8586 if { (ac_try="$ac_link"
8587 case "(($ac_try" in
8588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8589 *) ac_try_echo=$ac_try;;
8590 esac
8591 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8592 (eval "$ac_link") 2>&5
8593 ac_status=$?
8594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8595 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8596 { (case "(($ac_try" in
8597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8598 *) ac_try_echo=$ac_try;;
8599 esac
8600 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8601 (eval "$ac_try") 2>&5
8602 ac_status=$?
8603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8604 (exit $ac_status); }; }; then
8605 ac_cv_sizeof_void_p=`cat conftest.val`
8606 else
8607 echo "$as_me: program exited with status $ac_status" >&5
8608 echo "$as_me: failed program was:" >&5
8609 sed 's/^/| /' conftest.$ac_ext >&5
8611 ( exit $ac_status )
8612 if test "$ac_cv_type_void_p" = yes; then
8613 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
8614 See \`config.log' for more details." >&5
8615 echo "$as_me: error: cannot compute sizeof (void *)
8616 See \`config.log' for more details." >&2;}
8617 { (exit 77); exit 77; }; }
8618 else
8619 ac_cv_sizeof_void_p=0
8622 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8624 rm -f conftest.val
8626 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
8627 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6; }
8631 cat >>confdefs.h <<_ACEOF
8632 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
8633 _ACEOF
8636 { echo "$as_me:$LINENO: checking for short" >&5
8637 echo $ECHO_N "checking for short... $ECHO_C" >&6; }
8638 if test "${ac_cv_type_short+set}" = set; then
8639 echo $ECHO_N "(cached) $ECHO_C" >&6
8640 else
8641 cat >conftest.$ac_ext <<_ACEOF
8642 /* confdefs.h. */
8643 _ACEOF
8644 cat confdefs.h >>conftest.$ac_ext
8645 cat >>conftest.$ac_ext <<_ACEOF
8646 /* end confdefs.h. */
8647 $ac_includes_default
8648 typedef short ac__type_new_;
8650 main ()
8652 if ((ac__type_new_ *) 0)
8653 return 0;
8654 if (sizeof (ac__type_new_))
8655 return 0;
8657 return 0;
8659 _ACEOF
8660 rm -f conftest.$ac_objext
8661 if { (ac_try="$ac_compile"
8662 case "(($ac_try" in
8663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8664 *) ac_try_echo=$ac_try;;
8665 esac
8666 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8667 (eval "$ac_compile") 2>conftest.er1
8668 ac_status=$?
8669 grep -v '^ *+' conftest.er1 >conftest.err
8670 rm -f conftest.er1
8671 cat conftest.err >&5
8672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8673 (exit $ac_status); } && {
8674 test -z "$ac_c_werror_flag" ||
8675 test ! -s conftest.err
8676 } && test -s conftest.$ac_objext; then
8677 ac_cv_type_short=yes
8678 else
8679 echo "$as_me: failed program was:" >&5
8680 sed 's/^/| /' conftest.$ac_ext >&5
8682 ac_cv_type_short=no
8685 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8687 { echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
8688 echo "${ECHO_T}$ac_cv_type_short" >&6; }
8690 # The cast to long int works around a bug in the HP C Compiler
8691 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8692 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8693 # This bug is HP SR number 8606223364.
8694 { echo "$as_me:$LINENO: checking size of short" >&5
8695 echo $ECHO_N "checking size of short... $ECHO_C" >&6; }
8696 if test "${ac_cv_sizeof_short+set}" = set; then
8697 echo $ECHO_N "(cached) $ECHO_C" >&6
8698 else
8699 if test "$cross_compiling" = yes; then
8700 # Depending upon the size, compute the lo and hi bounds.
8701 cat >conftest.$ac_ext <<_ACEOF
8702 /* confdefs.h. */
8703 _ACEOF
8704 cat confdefs.h >>conftest.$ac_ext
8705 cat >>conftest.$ac_ext <<_ACEOF
8706 /* end confdefs.h. */
8707 $ac_includes_default
8708 typedef short ac__type_sizeof_;
8710 main ()
8712 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
8713 test_array [0] = 0
8716 return 0;
8718 _ACEOF
8719 rm -f conftest.$ac_objext
8720 if { (ac_try="$ac_compile"
8721 case "(($ac_try" in
8722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8723 *) ac_try_echo=$ac_try;;
8724 esac
8725 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8726 (eval "$ac_compile") 2>conftest.er1
8727 ac_status=$?
8728 grep -v '^ *+' conftest.er1 >conftest.err
8729 rm -f conftest.er1
8730 cat conftest.err >&5
8731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8732 (exit $ac_status); } && {
8733 test -z "$ac_c_werror_flag" ||
8734 test ! -s conftest.err
8735 } && test -s conftest.$ac_objext; then
8736 ac_lo=0 ac_mid=0
8737 while :; do
8738 cat >conftest.$ac_ext <<_ACEOF
8739 /* confdefs.h. */
8740 _ACEOF
8741 cat confdefs.h >>conftest.$ac_ext
8742 cat >>conftest.$ac_ext <<_ACEOF
8743 /* end confdefs.h. */
8744 $ac_includes_default
8745 typedef short ac__type_sizeof_;
8747 main ()
8749 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8750 test_array [0] = 0
8753 return 0;
8755 _ACEOF
8756 rm -f conftest.$ac_objext
8757 if { (ac_try="$ac_compile"
8758 case "(($ac_try" in
8759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8760 *) ac_try_echo=$ac_try;;
8761 esac
8762 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8763 (eval "$ac_compile") 2>conftest.er1
8764 ac_status=$?
8765 grep -v '^ *+' conftest.er1 >conftest.err
8766 rm -f conftest.er1
8767 cat conftest.err >&5
8768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8769 (exit $ac_status); } && {
8770 test -z "$ac_c_werror_flag" ||
8771 test ! -s conftest.err
8772 } && test -s conftest.$ac_objext; then
8773 ac_hi=$ac_mid; break
8774 else
8775 echo "$as_me: failed program was:" >&5
8776 sed 's/^/| /' conftest.$ac_ext >&5
8778 ac_lo=`expr $ac_mid + 1`
8779 if test $ac_lo -le $ac_mid; then
8780 ac_lo= ac_hi=
8781 break
8783 ac_mid=`expr 2 '*' $ac_mid + 1`
8786 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8787 done
8788 else
8789 echo "$as_me: failed program was:" >&5
8790 sed 's/^/| /' conftest.$ac_ext >&5
8792 cat >conftest.$ac_ext <<_ACEOF
8793 /* confdefs.h. */
8794 _ACEOF
8795 cat confdefs.h >>conftest.$ac_ext
8796 cat >>conftest.$ac_ext <<_ACEOF
8797 /* end confdefs.h. */
8798 $ac_includes_default
8799 typedef short ac__type_sizeof_;
8801 main ()
8803 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
8804 test_array [0] = 0
8807 return 0;
8809 _ACEOF
8810 rm -f conftest.$ac_objext
8811 if { (ac_try="$ac_compile"
8812 case "(($ac_try" in
8813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8814 *) ac_try_echo=$ac_try;;
8815 esac
8816 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8817 (eval "$ac_compile") 2>conftest.er1
8818 ac_status=$?
8819 grep -v '^ *+' conftest.er1 >conftest.err
8820 rm -f conftest.er1
8821 cat conftest.err >&5
8822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8823 (exit $ac_status); } && {
8824 test -z "$ac_c_werror_flag" ||
8825 test ! -s conftest.err
8826 } && test -s conftest.$ac_objext; then
8827 ac_hi=-1 ac_mid=-1
8828 while :; do
8829 cat >conftest.$ac_ext <<_ACEOF
8830 /* confdefs.h. */
8831 _ACEOF
8832 cat confdefs.h >>conftest.$ac_ext
8833 cat >>conftest.$ac_ext <<_ACEOF
8834 /* end confdefs.h. */
8835 $ac_includes_default
8836 typedef short ac__type_sizeof_;
8838 main ()
8840 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
8841 test_array [0] = 0
8844 return 0;
8846 _ACEOF
8847 rm -f conftest.$ac_objext
8848 if { (ac_try="$ac_compile"
8849 case "(($ac_try" in
8850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8851 *) ac_try_echo=$ac_try;;
8852 esac
8853 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8854 (eval "$ac_compile") 2>conftest.er1
8855 ac_status=$?
8856 grep -v '^ *+' conftest.er1 >conftest.err
8857 rm -f conftest.er1
8858 cat conftest.err >&5
8859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8860 (exit $ac_status); } && {
8861 test -z "$ac_c_werror_flag" ||
8862 test ! -s conftest.err
8863 } && test -s conftest.$ac_objext; then
8864 ac_lo=$ac_mid; break
8865 else
8866 echo "$as_me: failed program was:" >&5
8867 sed 's/^/| /' conftest.$ac_ext >&5
8869 ac_hi=`expr '(' $ac_mid ')' - 1`
8870 if test $ac_mid -le $ac_hi; then
8871 ac_lo= ac_hi=
8872 break
8874 ac_mid=`expr 2 '*' $ac_mid`
8877 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8878 done
8879 else
8880 echo "$as_me: failed program was:" >&5
8881 sed 's/^/| /' conftest.$ac_ext >&5
8883 ac_lo= ac_hi=
8886 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8889 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8890 # Binary search between lo and hi bounds.
8891 while test "x$ac_lo" != "x$ac_hi"; do
8892 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8893 cat >conftest.$ac_ext <<_ACEOF
8894 /* confdefs.h. */
8895 _ACEOF
8896 cat confdefs.h >>conftest.$ac_ext
8897 cat >>conftest.$ac_ext <<_ACEOF
8898 /* end confdefs.h. */
8899 $ac_includes_default
8900 typedef short ac__type_sizeof_;
8902 main ()
8904 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8905 test_array [0] = 0
8908 return 0;
8910 _ACEOF
8911 rm -f conftest.$ac_objext
8912 if { (ac_try="$ac_compile"
8913 case "(($ac_try" in
8914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8915 *) ac_try_echo=$ac_try;;
8916 esac
8917 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8918 (eval "$ac_compile") 2>conftest.er1
8919 ac_status=$?
8920 grep -v '^ *+' conftest.er1 >conftest.err
8921 rm -f conftest.er1
8922 cat conftest.err >&5
8923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8924 (exit $ac_status); } && {
8925 test -z "$ac_c_werror_flag" ||
8926 test ! -s conftest.err
8927 } && test -s conftest.$ac_objext; then
8928 ac_hi=$ac_mid
8929 else
8930 echo "$as_me: failed program was:" >&5
8931 sed 's/^/| /' conftest.$ac_ext >&5
8933 ac_lo=`expr '(' $ac_mid ')' + 1`
8936 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8937 done
8938 case $ac_lo in
8939 ?*) ac_cv_sizeof_short=$ac_lo;;
8940 '') if test "$ac_cv_type_short" = yes; then
8941 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
8942 See \`config.log' for more details." >&5
8943 echo "$as_me: error: cannot compute sizeof (short)
8944 See \`config.log' for more details." >&2;}
8945 { (exit 77); exit 77; }; }
8946 else
8947 ac_cv_sizeof_short=0
8948 fi ;;
8949 esac
8950 else
8951 cat >conftest.$ac_ext <<_ACEOF
8952 /* confdefs.h. */
8953 _ACEOF
8954 cat confdefs.h >>conftest.$ac_ext
8955 cat >>conftest.$ac_ext <<_ACEOF
8956 /* end confdefs.h. */
8957 $ac_includes_default
8958 typedef short ac__type_sizeof_;
8959 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
8960 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
8961 #include <stdio.h>
8962 #include <stdlib.h>
8964 main ()
8967 FILE *f = fopen ("conftest.val", "w");
8968 if (! f)
8969 return 1;
8970 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
8972 long int i = longval ();
8973 if (i != ((long int) (sizeof (ac__type_sizeof_))))
8974 return 1;
8975 fprintf (f, "%ld\n", i);
8977 else
8979 unsigned long int i = ulongval ();
8980 if (i != ((long int) (sizeof (ac__type_sizeof_))))
8981 return 1;
8982 fprintf (f, "%lu\n", i);
8984 return ferror (f) || fclose (f) != 0;
8987 return 0;
8989 _ACEOF
8990 rm -f conftest$ac_exeext
8991 if { (ac_try="$ac_link"
8992 case "(($ac_try" in
8993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8994 *) ac_try_echo=$ac_try;;
8995 esac
8996 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8997 (eval "$ac_link") 2>&5
8998 ac_status=$?
8999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9000 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9001 { (case "(($ac_try" in
9002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9003 *) ac_try_echo=$ac_try;;
9004 esac
9005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9006 (eval "$ac_try") 2>&5
9007 ac_status=$?
9008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9009 (exit $ac_status); }; }; then
9010 ac_cv_sizeof_short=`cat conftest.val`
9011 else
9012 echo "$as_me: program exited with status $ac_status" >&5
9013 echo "$as_me: failed program was:" >&5
9014 sed 's/^/| /' conftest.$ac_ext >&5
9016 ( exit $ac_status )
9017 if test "$ac_cv_type_short" = yes; then
9018 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
9019 See \`config.log' for more details." >&5
9020 echo "$as_me: error: cannot compute sizeof (short)
9021 See \`config.log' for more details." >&2;}
9022 { (exit 77); exit 77; }; }
9023 else
9024 ac_cv_sizeof_short=0
9027 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9029 rm -f conftest.val
9031 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
9032 echo "${ECHO_T}$ac_cv_sizeof_short" >&6; }
9036 cat >>confdefs.h <<_ACEOF
9037 #define SIZEOF_SHORT $ac_cv_sizeof_short
9038 _ACEOF
9041 { echo "$as_me:$LINENO: checking for float" >&5
9042 echo $ECHO_N "checking for float... $ECHO_C" >&6; }
9043 if test "${ac_cv_type_float+set}" = set; then
9044 echo $ECHO_N "(cached) $ECHO_C" >&6
9045 else
9046 cat >conftest.$ac_ext <<_ACEOF
9047 /* confdefs.h. */
9048 _ACEOF
9049 cat confdefs.h >>conftest.$ac_ext
9050 cat >>conftest.$ac_ext <<_ACEOF
9051 /* end confdefs.h. */
9052 $ac_includes_default
9053 typedef float ac__type_new_;
9055 main ()
9057 if ((ac__type_new_ *) 0)
9058 return 0;
9059 if (sizeof (ac__type_new_))
9060 return 0;
9062 return 0;
9064 _ACEOF
9065 rm -f conftest.$ac_objext
9066 if { (ac_try="$ac_compile"
9067 case "(($ac_try" in
9068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9069 *) ac_try_echo=$ac_try;;
9070 esac
9071 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9072 (eval "$ac_compile") 2>conftest.er1
9073 ac_status=$?
9074 grep -v '^ *+' conftest.er1 >conftest.err
9075 rm -f conftest.er1
9076 cat conftest.err >&5
9077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9078 (exit $ac_status); } && {
9079 test -z "$ac_c_werror_flag" ||
9080 test ! -s conftest.err
9081 } && test -s conftest.$ac_objext; then
9082 ac_cv_type_float=yes
9083 else
9084 echo "$as_me: failed program was:" >&5
9085 sed 's/^/| /' conftest.$ac_ext >&5
9087 ac_cv_type_float=no
9090 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9092 { echo "$as_me:$LINENO: result: $ac_cv_type_float" >&5
9093 echo "${ECHO_T}$ac_cv_type_float" >&6; }
9095 # The cast to long int works around a bug in the HP C Compiler
9096 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9097 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9098 # This bug is HP SR number 8606223364.
9099 { echo "$as_me:$LINENO: checking size of float" >&5
9100 echo $ECHO_N "checking size of float... $ECHO_C" >&6; }
9101 if test "${ac_cv_sizeof_float+set}" = set; then
9102 echo $ECHO_N "(cached) $ECHO_C" >&6
9103 else
9104 if test "$cross_compiling" = yes; then
9105 # Depending upon the size, compute the lo and hi bounds.
9106 cat >conftest.$ac_ext <<_ACEOF
9107 /* confdefs.h. */
9108 _ACEOF
9109 cat confdefs.h >>conftest.$ac_ext
9110 cat >>conftest.$ac_ext <<_ACEOF
9111 /* end confdefs.h. */
9112 $ac_includes_default
9113 typedef float ac__type_sizeof_;
9115 main ()
9117 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
9118 test_array [0] = 0
9121 return 0;
9123 _ACEOF
9124 rm -f conftest.$ac_objext
9125 if { (ac_try="$ac_compile"
9126 case "(($ac_try" in
9127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9128 *) ac_try_echo=$ac_try;;
9129 esac
9130 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9131 (eval "$ac_compile") 2>conftest.er1
9132 ac_status=$?
9133 grep -v '^ *+' conftest.er1 >conftest.err
9134 rm -f conftest.er1
9135 cat conftest.err >&5
9136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9137 (exit $ac_status); } && {
9138 test -z "$ac_c_werror_flag" ||
9139 test ! -s conftest.err
9140 } && test -s conftest.$ac_objext; then
9141 ac_lo=0 ac_mid=0
9142 while :; do
9143 cat >conftest.$ac_ext <<_ACEOF
9144 /* confdefs.h. */
9145 _ACEOF
9146 cat confdefs.h >>conftest.$ac_ext
9147 cat >>conftest.$ac_ext <<_ACEOF
9148 /* end confdefs.h. */
9149 $ac_includes_default
9150 typedef float ac__type_sizeof_;
9152 main ()
9154 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
9155 test_array [0] = 0
9158 return 0;
9160 _ACEOF
9161 rm -f conftest.$ac_objext
9162 if { (ac_try="$ac_compile"
9163 case "(($ac_try" in
9164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9165 *) ac_try_echo=$ac_try;;
9166 esac
9167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9168 (eval "$ac_compile") 2>conftest.er1
9169 ac_status=$?
9170 grep -v '^ *+' conftest.er1 >conftest.err
9171 rm -f conftest.er1
9172 cat conftest.err >&5
9173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9174 (exit $ac_status); } && {
9175 test -z "$ac_c_werror_flag" ||
9176 test ! -s conftest.err
9177 } && test -s conftest.$ac_objext; then
9178 ac_hi=$ac_mid; break
9179 else
9180 echo "$as_me: failed program was:" >&5
9181 sed 's/^/| /' conftest.$ac_ext >&5
9183 ac_lo=`expr $ac_mid + 1`
9184 if test $ac_lo -le $ac_mid; then
9185 ac_lo= ac_hi=
9186 break
9188 ac_mid=`expr 2 '*' $ac_mid + 1`
9191 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9192 done
9193 else
9194 echo "$as_me: failed program was:" >&5
9195 sed 's/^/| /' conftest.$ac_ext >&5
9197 cat >conftest.$ac_ext <<_ACEOF
9198 /* confdefs.h. */
9199 _ACEOF
9200 cat confdefs.h >>conftest.$ac_ext
9201 cat >>conftest.$ac_ext <<_ACEOF
9202 /* end confdefs.h. */
9203 $ac_includes_default
9204 typedef float ac__type_sizeof_;
9206 main ()
9208 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
9209 test_array [0] = 0
9212 return 0;
9214 _ACEOF
9215 rm -f conftest.$ac_objext
9216 if { (ac_try="$ac_compile"
9217 case "(($ac_try" in
9218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9219 *) ac_try_echo=$ac_try;;
9220 esac
9221 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9222 (eval "$ac_compile") 2>conftest.er1
9223 ac_status=$?
9224 grep -v '^ *+' conftest.er1 >conftest.err
9225 rm -f conftest.er1
9226 cat conftest.err >&5
9227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9228 (exit $ac_status); } && {
9229 test -z "$ac_c_werror_flag" ||
9230 test ! -s conftest.err
9231 } && test -s conftest.$ac_objext; then
9232 ac_hi=-1 ac_mid=-1
9233 while :; do
9234 cat >conftest.$ac_ext <<_ACEOF
9235 /* confdefs.h. */
9236 _ACEOF
9237 cat confdefs.h >>conftest.$ac_ext
9238 cat >>conftest.$ac_ext <<_ACEOF
9239 /* end confdefs.h. */
9240 $ac_includes_default
9241 typedef float ac__type_sizeof_;
9243 main ()
9245 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
9246 test_array [0] = 0
9249 return 0;
9251 _ACEOF
9252 rm -f conftest.$ac_objext
9253 if { (ac_try="$ac_compile"
9254 case "(($ac_try" in
9255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9256 *) ac_try_echo=$ac_try;;
9257 esac
9258 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9259 (eval "$ac_compile") 2>conftest.er1
9260 ac_status=$?
9261 grep -v '^ *+' conftest.er1 >conftest.err
9262 rm -f conftest.er1
9263 cat conftest.err >&5
9264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9265 (exit $ac_status); } && {
9266 test -z "$ac_c_werror_flag" ||
9267 test ! -s conftest.err
9268 } && test -s conftest.$ac_objext; then
9269 ac_lo=$ac_mid; break
9270 else
9271 echo "$as_me: failed program was:" >&5
9272 sed 's/^/| /' conftest.$ac_ext >&5
9274 ac_hi=`expr '(' $ac_mid ')' - 1`
9275 if test $ac_mid -le $ac_hi; then
9276 ac_lo= ac_hi=
9277 break
9279 ac_mid=`expr 2 '*' $ac_mid`
9282 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9283 done
9284 else
9285 echo "$as_me: failed program was:" >&5
9286 sed 's/^/| /' conftest.$ac_ext >&5
9288 ac_lo= ac_hi=
9291 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9294 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9295 # Binary search between lo and hi bounds.
9296 while test "x$ac_lo" != "x$ac_hi"; do
9297 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9298 cat >conftest.$ac_ext <<_ACEOF
9299 /* confdefs.h. */
9300 _ACEOF
9301 cat confdefs.h >>conftest.$ac_ext
9302 cat >>conftest.$ac_ext <<_ACEOF
9303 /* end confdefs.h. */
9304 $ac_includes_default
9305 typedef float ac__type_sizeof_;
9307 main ()
9309 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
9310 test_array [0] = 0
9313 return 0;
9315 _ACEOF
9316 rm -f conftest.$ac_objext
9317 if { (ac_try="$ac_compile"
9318 case "(($ac_try" in
9319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9320 *) ac_try_echo=$ac_try;;
9321 esac
9322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9323 (eval "$ac_compile") 2>conftest.er1
9324 ac_status=$?
9325 grep -v '^ *+' conftest.er1 >conftest.err
9326 rm -f conftest.er1
9327 cat conftest.err >&5
9328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9329 (exit $ac_status); } && {
9330 test -z "$ac_c_werror_flag" ||
9331 test ! -s conftest.err
9332 } && test -s conftest.$ac_objext; then
9333 ac_hi=$ac_mid
9334 else
9335 echo "$as_me: failed program was:" >&5
9336 sed 's/^/| /' conftest.$ac_ext >&5
9338 ac_lo=`expr '(' $ac_mid ')' + 1`
9341 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9342 done
9343 case $ac_lo in
9344 ?*) ac_cv_sizeof_float=$ac_lo;;
9345 '') if test "$ac_cv_type_float" = yes; then
9346 { { echo "$as_me:$LINENO: error: cannot compute sizeof (float)
9347 See \`config.log' for more details." >&5
9348 echo "$as_me: error: cannot compute sizeof (float)
9349 See \`config.log' for more details." >&2;}
9350 { (exit 77); exit 77; }; }
9351 else
9352 ac_cv_sizeof_float=0
9353 fi ;;
9354 esac
9355 else
9356 cat >conftest.$ac_ext <<_ACEOF
9357 /* confdefs.h. */
9358 _ACEOF
9359 cat confdefs.h >>conftest.$ac_ext
9360 cat >>conftest.$ac_ext <<_ACEOF
9361 /* end confdefs.h. */
9362 $ac_includes_default
9363 typedef float ac__type_sizeof_;
9364 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
9365 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
9366 #include <stdio.h>
9367 #include <stdlib.h>
9369 main ()
9372 FILE *f = fopen ("conftest.val", "w");
9373 if (! f)
9374 return 1;
9375 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
9377 long int i = longval ();
9378 if (i != ((long int) (sizeof (ac__type_sizeof_))))
9379 return 1;
9380 fprintf (f, "%ld\n", i);
9382 else
9384 unsigned long int i = ulongval ();
9385 if (i != ((long int) (sizeof (ac__type_sizeof_))))
9386 return 1;
9387 fprintf (f, "%lu\n", i);
9389 return ferror (f) || fclose (f) != 0;
9392 return 0;
9394 _ACEOF
9395 rm -f conftest$ac_exeext
9396 if { (ac_try="$ac_link"
9397 case "(($ac_try" in
9398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9399 *) ac_try_echo=$ac_try;;
9400 esac
9401 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9402 (eval "$ac_link") 2>&5
9403 ac_status=$?
9404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9405 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9406 { (case "(($ac_try" in
9407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9408 *) ac_try_echo=$ac_try;;
9409 esac
9410 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9411 (eval "$ac_try") 2>&5
9412 ac_status=$?
9413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9414 (exit $ac_status); }; }; then
9415 ac_cv_sizeof_float=`cat conftest.val`
9416 else
9417 echo "$as_me: program exited with status $ac_status" >&5
9418 echo "$as_me: failed program was:" >&5
9419 sed 's/^/| /' conftest.$ac_ext >&5
9421 ( exit $ac_status )
9422 if test "$ac_cv_type_float" = yes; then
9423 { { echo "$as_me:$LINENO: error: cannot compute sizeof (float)
9424 See \`config.log' for more details." >&5
9425 echo "$as_me: error: cannot compute sizeof (float)
9426 See \`config.log' for more details." >&2;}
9427 { (exit 77); exit 77; }; }
9428 else
9429 ac_cv_sizeof_float=0
9432 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9434 rm -f conftest.val
9436 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_float" >&5
9437 echo "${ECHO_T}$ac_cv_sizeof_float" >&6; }
9441 cat >>confdefs.h <<_ACEOF
9442 #define SIZEOF_FLOAT $ac_cv_sizeof_float
9443 _ACEOF
9446 { echo "$as_me:$LINENO: checking for double" >&5
9447 echo $ECHO_N "checking for double... $ECHO_C" >&6; }
9448 if test "${ac_cv_type_double+set}" = set; then
9449 echo $ECHO_N "(cached) $ECHO_C" >&6
9450 else
9451 cat >conftest.$ac_ext <<_ACEOF
9452 /* confdefs.h. */
9453 _ACEOF
9454 cat confdefs.h >>conftest.$ac_ext
9455 cat >>conftest.$ac_ext <<_ACEOF
9456 /* end confdefs.h. */
9457 $ac_includes_default
9458 typedef double ac__type_new_;
9460 main ()
9462 if ((ac__type_new_ *) 0)
9463 return 0;
9464 if (sizeof (ac__type_new_))
9465 return 0;
9467 return 0;
9469 _ACEOF
9470 rm -f conftest.$ac_objext
9471 if { (ac_try="$ac_compile"
9472 case "(($ac_try" in
9473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9474 *) ac_try_echo=$ac_try;;
9475 esac
9476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9477 (eval "$ac_compile") 2>conftest.er1
9478 ac_status=$?
9479 grep -v '^ *+' conftest.er1 >conftest.err
9480 rm -f conftest.er1
9481 cat conftest.err >&5
9482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9483 (exit $ac_status); } && {
9484 test -z "$ac_c_werror_flag" ||
9485 test ! -s conftest.err
9486 } && test -s conftest.$ac_objext; then
9487 ac_cv_type_double=yes
9488 else
9489 echo "$as_me: failed program was:" >&5
9490 sed 's/^/| /' conftest.$ac_ext >&5
9492 ac_cv_type_double=no
9495 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9497 { echo "$as_me:$LINENO: result: $ac_cv_type_double" >&5
9498 echo "${ECHO_T}$ac_cv_type_double" >&6; }
9500 # The cast to long int works around a bug in the HP C Compiler
9501 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9502 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9503 # This bug is HP SR number 8606223364.
9504 { echo "$as_me:$LINENO: checking size of double" >&5
9505 echo $ECHO_N "checking size of double... $ECHO_C" >&6; }
9506 if test "${ac_cv_sizeof_double+set}" = set; then
9507 echo $ECHO_N "(cached) $ECHO_C" >&6
9508 else
9509 if test "$cross_compiling" = yes; then
9510 # Depending upon the size, compute the lo and hi bounds.
9511 cat >conftest.$ac_ext <<_ACEOF
9512 /* confdefs.h. */
9513 _ACEOF
9514 cat confdefs.h >>conftest.$ac_ext
9515 cat >>conftest.$ac_ext <<_ACEOF
9516 /* end confdefs.h. */
9517 $ac_includes_default
9518 typedef double ac__type_sizeof_;
9520 main ()
9522 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
9523 test_array [0] = 0
9526 return 0;
9528 _ACEOF
9529 rm -f conftest.$ac_objext
9530 if { (ac_try="$ac_compile"
9531 case "(($ac_try" in
9532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9533 *) ac_try_echo=$ac_try;;
9534 esac
9535 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9536 (eval "$ac_compile") 2>conftest.er1
9537 ac_status=$?
9538 grep -v '^ *+' conftest.er1 >conftest.err
9539 rm -f conftest.er1
9540 cat conftest.err >&5
9541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9542 (exit $ac_status); } && {
9543 test -z "$ac_c_werror_flag" ||
9544 test ! -s conftest.err
9545 } && test -s conftest.$ac_objext; then
9546 ac_lo=0 ac_mid=0
9547 while :; do
9548 cat >conftest.$ac_ext <<_ACEOF
9549 /* confdefs.h. */
9550 _ACEOF
9551 cat confdefs.h >>conftest.$ac_ext
9552 cat >>conftest.$ac_ext <<_ACEOF
9553 /* end confdefs.h. */
9554 $ac_includes_default
9555 typedef double ac__type_sizeof_;
9557 main ()
9559 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
9560 test_array [0] = 0
9563 return 0;
9565 _ACEOF
9566 rm -f conftest.$ac_objext
9567 if { (ac_try="$ac_compile"
9568 case "(($ac_try" in
9569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9570 *) ac_try_echo=$ac_try;;
9571 esac
9572 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9573 (eval "$ac_compile") 2>conftest.er1
9574 ac_status=$?
9575 grep -v '^ *+' conftest.er1 >conftest.err
9576 rm -f conftest.er1
9577 cat conftest.err >&5
9578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9579 (exit $ac_status); } && {
9580 test -z "$ac_c_werror_flag" ||
9581 test ! -s conftest.err
9582 } && test -s conftest.$ac_objext; then
9583 ac_hi=$ac_mid; break
9584 else
9585 echo "$as_me: failed program was:" >&5
9586 sed 's/^/| /' conftest.$ac_ext >&5
9588 ac_lo=`expr $ac_mid + 1`
9589 if test $ac_lo -le $ac_mid; then
9590 ac_lo= ac_hi=
9591 break
9593 ac_mid=`expr 2 '*' $ac_mid + 1`
9596 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9597 done
9598 else
9599 echo "$as_me: failed program was:" >&5
9600 sed 's/^/| /' conftest.$ac_ext >&5
9602 cat >conftest.$ac_ext <<_ACEOF
9603 /* confdefs.h. */
9604 _ACEOF
9605 cat confdefs.h >>conftest.$ac_ext
9606 cat >>conftest.$ac_ext <<_ACEOF
9607 /* end confdefs.h. */
9608 $ac_includes_default
9609 typedef double ac__type_sizeof_;
9611 main ()
9613 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
9614 test_array [0] = 0
9617 return 0;
9619 _ACEOF
9620 rm -f conftest.$ac_objext
9621 if { (ac_try="$ac_compile"
9622 case "(($ac_try" in
9623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9624 *) ac_try_echo=$ac_try;;
9625 esac
9626 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9627 (eval "$ac_compile") 2>conftest.er1
9628 ac_status=$?
9629 grep -v '^ *+' conftest.er1 >conftest.err
9630 rm -f conftest.er1
9631 cat conftest.err >&5
9632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9633 (exit $ac_status); } && {
9634 test -z "$ac_c_werror_flag" ||
9635 test ! -s conftest.err
9636 } && test -s conftest.$ac_objext; then
9637 ac_hi=-1 ac_mid=-1
9638 while :; do
9639 cat >conftest.$ac_ext <<_ACEOF
9640 /* confdefs.h. */
9641 _ACEOF
9642 cat confdefs.h >>conftest.$ac_ext
9643 cat >>conftest.$ac_ext <<_ACEOF
9644 /* end confdefs.h. */
9645 $ac_includes_default
9646 typedef double ac__type_sizeof_;
9648 main ()
9650 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
9651 test_array [0] = 0
9654 return 0;
9656 _ACEOF
9657 rm -f conftest.$ac_objext
9658 if { (ac_try="$ac_compile"
9659 case "(($ac_try" in
9660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9661 *) ac_try_echo=$ac_try;;
9662 esac
9663 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9664 (eval "$ac_compile") 2>conftest.er1
9665 ac_status=$?
9666 grep -v '^ *+' conftest.er1 >conftest.err
9667 rm -f conftest.er1
9668 cat conftest.err >&5
9669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9670 (exit $ac_status); } && {
9671 test -z "$ac_c_werror_flag" ||
9672 test ! -s conftest.err
9673 } && test -s conftest.$ac_objext; then
9674 ac_lo=$ac_mid; break
9675 else
9676 echo "$as_me: failed program was:" >&5
9677 sed 's/^/| /' conftest.$ac_ext >&5
9679 ac_hi=`expr '(' $ac_mid ')' - 1`
9680 if test $ac_mid -le $ac_hi; then
9681 ac_lo= ac_hi=
9682 break
9684 ac_mid=`expr 2 '*' $ac_mid`
9687 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9688 done
9689 else
9690 echo "$as_me: failed program was:" >&5
9691 sed 's/^/| /' conftest.$ac_ext >&5
9693 ac_lo= ac_hi=
9696 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9699 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9700 # Binary search between lo and hi bounds.
9701 while test "x$ac_lo" != "x$ac_hi"; do
9702 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9703 cat >conftest.$ac_ext <<_ACEOF
9704 /* confdefs.h. */
9705 _ACEOF
9706 cat confdefs.h >>conftest.$ac_ext
9707 cat >>conftest.$ac_ext <<_ACEOF
9708 /* end confdefs.h. */
9709 $ac_includes_default
9710 typedef double ac__type_sizeof_;
9712 main ()
9714 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
9715 test_array [0] = 0
9718 return 0;
9720 _ACEOF
9721 rm -f conftest.$ac_objext
9722 if { (ac_try="$ac_compile"
9723 case "(($ac_try" in
9724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9725 *) ac_try_echo=$ac_try;;
9726 esac
9727 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9728 (eval "$ac_compile") 2>conftest.er1
9729 ac_status=$?
9730 grep -v '^ *+' conftest.er1 >conftest.err
9731 rm -f conftest.er1
9732 cat conftest.err >&5
9733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9734 (exit $ac_status); } && {
9735 test -z "$ac_c_werror_flag" ||
9736 test ! -s conftest.err
9737 } && test -s conftest.$ac_objext; then
9738 ac_hi=$ac_mid
9739 else
9740 echo "$as_me: failed program was:" >&5
9741 sed 's/^/| /' conftest.$ac_ext >&5
9743 ac_lo=`expr '(' $ac_mid ')' + 1`
9746 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9747 done
9748 case $ac_lo in
9749 ?*) ac_cv_sizeof_double=$ac_lo;;
9750 '') if test "$ac_cv_type_double" = yes; then
9751 { { echo "$as_me:$LINENO: error: cannot compute sizeof (double)
9752 See \`config.log' for more details." >&5
9753 echo "$as_me: error: cannot compute sizeof (double)
9754 See \`config.log' for more details." >&2;}
9755 { (exit 77); exit 77; }; }
9756 else
9757 ac_cv_sizeof_double=0
9758 fi ;;
9759 esac
9760 else
9761 cat >conftest.$ac_ext <<_ACEOF
9762 /* confdefs.h. */
9763 _ACEOF
9764 cat confdefs.h >>conftest.$ac_ext
9765 cat >>conftest.$ac_ext <<_ACEOF
9766 /* end confdefs.h. */
9767 $ac_includes_default
9768 typedef double ac__type_sizeof_;
9769 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
9770 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
9771 #include <stdio.h>
9772 #include <stdlib.h>
9774 main ()
9777 FILE *f = fopen ("conftest.val", "w");
9778 if (! f)
9779 return 1;
9780 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
9782 long int i = longval ();
9783 if (i != ((long int) (sizeof (ac__type_sizeof_))))
9784 return 1;
9785 fprintf (f, "%ld\n", i);
9787 else
9789 unsigned long int i = ulongval ();
9790 if (i != ((long int) (sizeof (ac__type_sizeof_))))
9791 return 1;
9792 fprintf (f, "%lu\n", i);
9794 return ferror (f) || fclose (f) != 0;
9797 return 0;
9799 _ACEOF
9800 rm -f conftest$ac_exeext
9801 if { (ac_try="$ac_link"
9802 case "(($ac_try" in
9803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9804 *) ac_try_echo=$ac_try;;
9805 esac
9806 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9807 (eval "$ac_link") 2>&5
9808 ac_status=$?
9809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9810 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9811 { (case "(($ac_try" in
9812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9813 *) ac_try_echo=$ac_try;;
9814 esac
9815 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9816 (eval "$ac_try") 2>&5
9817 ac_status=$?
9818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9819 (exit $ac_status); }; }; then
9820 ac_cv_sizeof_double=`cat conftest.val`
9821 else
9822 echo "$as_me: program exited with status $ac_status" >&5
9823 echo "$as_me: failed program was:" >&5
9824 sed 's/^/| /' conftest.$ac_ext >&5
9826 ( exit $ac_status )
9827 if test "$ac_cv_type_double" = yes; then
9828 { { echo "$as_me:$LINENO: error: cannot compute sizeof (double)
9829 See \`config.log' for more details." >&5
9830 echo "$as_me: error: cannot compute sizeof (double)
9831 See \`config.log' for more details." >&2;}
9832 { (exit 77); exit 77; }; }
9833 else
9834 ac_cv_sizeof_double=0
9837 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9839 rm -f conftest.val
9841 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_double" >&5
9842 echo "${ECHO_T}$ac_cv_sizeof_double" >&6; }
9846 cat >>confdefs.h <<_ACEOF
9847 #define SIZEOF_DOUBLE $ac_cv_sizeof_double
9848 _ACEOF
9851 { echo "$as_me:$LINENO: checking for fpos_t" >&5
9852 echo $ECHO_N "checking for fpos_t... $ECHO_C" >&6; }
9853 if test "${ac_cv_type_fpos_t+set}" = set; then
9854 echo $ECHO_N "(cached) $ECHO_C" >&6
9855 else
9856 cat >conftest.$ac_ext <<_ACEOF
9857 /* confdefs.h. */
9858 _ACEOF
9859 cat confdefs.h >>conftest.$ac_ext
9860 cat >>conftest.$ac_ext <<_ACEOF
9861 /* end confdefs.h. */
9862 $ac_includes_default
9863 typedef fpos_t ac__type_new_;
9865 main ()
9867 if ((ac__type_new_ *) 0)
9868 return 0;
9869 if (sizeof (ac__type_new_))
9870 return 0;
9872 return 0;
9874 _ACEOF
9875 rm -f conftest.$ac_objext
9876 if { (ac_try="$ac_compile"
9877 case "(($ac_try" in
9878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9879 *) ac_try_echo=$ac_try;;
9880 esac
9881 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9882 (eval "$ac_compile") 2>conftest.er1
9883 ac_status=$?
9884 grep -v '^ *+' conftest.er1 >conftest.err
9885 rm -f conftest.er1
9886 cat conftest.err >&5
9887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9888 (exit $ac_status); } && {
9889 test -z "$ac_c_werror_flag" ||
9890 test ! -s conftest.err
9891 } && test -s conftest.$ac_objext; then
9892 ac_cv_type_fpos_t=yes
9893 else
9894 echo "$as_me: failed program was:" >&5
9895 sed 's/^/| /' conftest.$ac_ext >&5
9897 ac_cv_type_fpos_t=no
9900 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9902 { echo "$as_me:$LINENO: result: $ac_cv_type_fpos_t" >&5
9903 echo "${ECHO_T}$ac_cv_type_fpos_t" >&6; }
9905 # The cast to long int works around a bug in the HP C Compiler
9906 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9907 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9908 # This bug is HP SR number 8606223364.
9909 { echo "$as_me:$LINENO: checking size of fpos_t" >&5
9910 echo $ECHO_N "checking size of fpos_t... $ECHO_C" >&6; }
9911 if test "${ac_cv_sizeof_fpos_t+set}" = set; then
9912 echo $ECHO_N "(cached) $ECHO_C" >&6
9913 else
9914 if test "$cross_compiling" = yes; then
9915 # Depending upon the size, compute the lo and hi bounds.
9916 cat >conftest.$ac_ext <<_ACEOF
9917 /* confdefs.h. */
9918 _ACEOF
9919 cat confdefs.h >>conftest.$ac_ext
9920 cat >>conftest.$ac_ext <<_ACEOF
9921 /* end confdefs.h. */
9922 $ac_includes_default
9923 typedef fpos_t ac__type_sizeof_;
9925 main ()
9927 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
9928 test_array [0] = 0
9931 return 0;
9933 _ACEOF
9934 rm -f conftest.$ac_objext
9935 if { (ac_try="$ac_compile"
9936 case "(($ac_try" in
9937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9938 *) ac_try_echo=$ac_try;;
9939 esac
9940 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9941 (eval "$ac_compile") 2>conftest.er1
9942 ac_status=$?
9943 grep -v '^ *+' conftest.er1 >conftest.err
9944 rm -f conftest.er1
9945 cat conftest.err >&5
9946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9947 (exit $ac_status); } && {
9948 test -z "$ac_c_werror_flag" ||
9949 test ! -s conftest.err
9950 } && test -s conftest.$ac_objext; then
9951 ac_lo=0 ac_mid=0
9952 while :; do
9953 cat >conftest.$ac_ext <<_ACEOF
9954 /* confdefs.h. */
9955 _ACEOF
9956 cat confdefs.h >>conftest.$ac_ext
9957 cat >>conftest.$ac_ext <<_ACEOF
9958 /* end confdefs.h. */
9959 $ac_includes_default
9960 typedef fpos_t ac__type_sizeof_;
9962 main ()
9964 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
9965 test_array [0] = 0
9968 return 0;
9970 _ACEOF
9971 rm -f conftest.$ac_objext
9972 if { (ac_try="$ac_compile"
9973 case "(($ac_try" in
9974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9975 *) ac_try_echo=$ac_try;;
9976 esac
9977 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9978 (eval "$ac_compile") 2>conftest.er1
9979 ac_status=$?
9980 grep -v '^ *+' conftest.er1 >conftest.err
9981 rm -f conftest.er1
9982 cat conftest.err >&5
9983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9984 (exit $ac_status); } && {
9985 test -z "$ac_c_werror_flag" ||
9986 test ! -s conftest.err
9987 } && test -s conftest.$ac_objext; then
9988 ac_hi=$ac_mid; break
9989 else
9990 echo "$as_me: failed program was:" >&5
9991 sed 's/^/| /' conftest.$ac_ext >&5
9993 ac_lo=`expr $ac_mid + 1`
9994 if test $ac_lo -le $ac_mid; then
9995 ac_lo= ac_hi=
9996 break
9998 ac_mid=`expr 2 '*' $ac_mid + 1`
10001 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10002 done
10003 else
10004 echo "$as_me: failed program was:" >&5
10005 sed 's/^/| /' conftest.$ac_ext >&5
10007 cat >conftest.$ac_ext <<_ACEOF
10008 /* confdefs.h. */
10009 _ACEOF
10010 cat confdefs.h >>conftest.$ac_ext
10011 cat >>conftest.$ac_ext <<_ACEOF
10012 /* end confdefs.h. */
10013 $ac_includes_default
10014 typedef fpos_t ac__type_sizeof_;
10016 main ()
10018 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
10019 test_array [0] = 0
10022 return 0;
10024 _ACEOF
10025 rm -f conftest.$ac_objext
10026 if { (ac_try="$ac_compile"
10027 case "(($ac_try" in
10028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10029 *) ac_try_echo=$ac_try;;
10030 esac
10031 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10032 (eval "$ac_compile") 2>conftest.er1
10033 ac_status=$?
10034 grep -v '^ *+' conftest.er1 >conftest.err
10035 rm -f conftest.er1
10036 cat conftest.err >&5
10037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10038 (exit $ac_status); } && {
10039 test -z "$ac_c_werror_flag" ||
10040 test ! -s conftest.err
10041 } && test -s conftest.$ac_objext; then
10042 ac_hi=-1 ac_mid=-1
10043 while :; do
10044 cat >conftest.$ac_ext <<_ACEOF
10045 /* confdefs.h. */
10046 _ACEOF
10047 cat confdefs.h >>conftest.$ac_ext
10048 cat >>conftest.$ac_ext <<_ACEOF
10049 /* end confdefs.h. */
10050 $ac_includes_default
10051 typedef fpos_t ac__type_sizeof_;
10053 main ()
10055 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
10056 test_array [0] = 0
10059 return 0;
10061 _ACEOF
10062 rm -f conftest.$ac_objext
10063 if { (ac_try="$ac_compile"
10064 case "(($ac_try" in
10065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10066 *) ac_try_echo=$ac_try;;
10067 esac
10068 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10069 (eval "$ac_compile") 2>conftest.er1
10070 ac_status=$?
10071 grep -v '^ *+' conftest.er1 >conftest.err
10072 rm -f conftest.er1
10073 cat conftest.err >&5
10074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10075 (exit $ac_status); } && {
10076 test -z "$ac_c_werror_flag" ||
10077 test ! -s conftest.err
10078 } && test -s conftest.$ac_objext; then
10079 ac_lo=$ac_mid; break
10080 else
10081 echo "$as_me: failed program was:" >&5
10082 sed 's/^/| /' conftest.$ac_ext >&5
10084 ac_hi=`expr '(' $ac_mid ')' - 1`
10085 if test $ac_mid -le $ac_hi; then
10086 ac_lo= ac_hi=
10087 break
10089 ac_mid=`expr 2 '*' $ac_mid`
10092 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10093 done
10094 else
10095 echo "$as_me: failed program was:" >&5
10096 sed 's/^/| /' conftest.$ac_ext >&5
10098 ac_lo= ac_hi=
10101 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10104 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10105 # Binary search between lo and hi bounds.
10106 while test "x$ac_lo" != "x$ac_hi"; do
10107 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10108 cat >conftest.$ac_ext <<_ACEOF
10109 /* confdefs.h. */
10110 _ACEOF
10111 cat confdefs.h >>conftest.$ac_ext
10112 cat >>conftest.$ac_ext <<_ACEOF
10113 /* end confdefs.h. */
10114 $ac_includes_default
10115 typedef fpos_t ac__type_sizeof_;
10117 main ()
10119 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
10120 test_array [0] = 0
10123 return 0;
10125 _ACEOF
10126 rm -f conftest.$ac_objext
10127 if { (ac_try="$ac_compile"
10128 case "(($ac_try" in
10129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10130 *) ac_try_echo=$ac_try;;
10131 esac
10132 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10133 (eval "$ac_compile") 2>conftest.er1
10134 ac_status=$?
10135 grep -v '^ *+' conftest.er1 >conftest.err
10136 rm -f conftest.er1
10137 cat conftest.err >&5
10138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10139 (exit $ac_status); } && {
10140 test -z "$ac_c_werror_flag" ||
10141 test ! -s conftest.err
10142 } && test -s conftest.$ac_objext; then
10143 ac_hi=$ac_mid
10144 else
10145 echo "$as_me: failed program was:" >&5
10146 sed 's/^/| /' conftest.$ac_ext >&5
10148 ac_lo=`expr '(' $ac_mid ')' + 1`
10151 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10152 done
10153 case $ac_lo in
10154 ?*) ac_cv_sizeof_fpos_t=$ac_lo;;
10155 '') if test "$ac_cv_type_fpos_t" = yes; then
10156 { { echo "$as_me:$LINENO: error: cannot compute sizeof (fpos_t)
10157 See \`config.log' for more details." >&5
10158 echo "$as_me: error: cannot compute sizeof (fpos_t)
10159 See \`config.log' for more details." >&2;}
10160 { (exit 77); exit 77; }; }
10161 else
10162 ac_cv_sizeof_fpos_t=0
10163 fi ;;
10164 esac
10165 else
10166 cat >conftest.$ac_ext <<_ACEOF
10167 /* confdefs.h. */
10168 _ACEOF
10169 cat confdefs.h >>conftest.$ac_ext
10170 cat >>conftest.$ac_ext <<_ACEOF
10171 /* end confdefs.h. */
10172 $ac_includes_default
10173 typedef fpos_t ac__type_sizeof_;
10174 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
10175 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
10176 #include <stdio.h>
10177 #include <stdlib.h>
10179 main ()
10182 FILE *f = fopen ("conftest.val", "w");
10183 if (! f)
10184 return 1;
10185 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
10187 long int i = longval ();
10188 if (i != ((long int) (sizeof (ac__type_sizeof_))))
10189 return 1;
10190 fprintf (f, "%ld\n", i);
10192 else
10194 unsigned long int i = ulongval ();
10195 if (i != ((long int) (sizeof (ac__type_sizeof_))))
10196 return 1;
10197 fprintf (f, "%lu\n", i);
10199 return ferror (f) || fclose (f) != 0;
10202 return 0;
10204 _ACEOF
10205 rm -f conftest$ac_exeext
10206 if { (ac_try="$ac_link"
10207 case "(($ac_try" in
10208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10209 *) ac_try_echo=$ac_try;;
10210 esac
10211 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10212 (eval "$ac_link") 2>&5
10213 ac_status=$?
10214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10215 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10216 { (case "(($ac_try" in
10217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10218 *) ac_try_echo=$ac_try;;
10219 esac
10220 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10221 (eval "$ac_try") 2>&5
10222 ac_status=$?
10223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10224 (exit $ac_status); }; }; then
10225 ac_cv_sizeof_fpos_t=`cat conftest.val`
10226 else
10227 echo "$as_me: program exited with status $ac_status" >&5
10228 echo "$as_me: failed program was:" >&5
10229 sed 's/^/| /' conftest.$ac_ext >&5
10231 ( exit $ac_status )
10232 if test "$ac_cv_type_fpos_t" = yes; then
10233 { { echo "$as_me:$LINENO: error: cannot compute sizeof (fpos_t)
10234 See \`config.log' for more details." >&5
10235 echo "$as_me: error: cannot compute sizeof (fpos_t)
10236 See \`config.log' for more details." >&2;}
10237 { (exit 77); exit 77; }; }
10238 else
10239 ac_cv_sizeof_fpos_t=0
10242 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10244 rm -f conftest.val
10246 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_fpos_t" >&5
10247 echo "${ECHO_T}$ac_cv_sizeof_fpos_t" >&6; }
10251 cat >>confdefs.h <<_ACEOF
10252 #define SIZEOF_FPOS_T $ac_cv_sizeof_fpos_t
10253 _ACEOF
10256 { echo "$as_me:$LINENO: checking for size_t" >&5
10257 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
10258 if test "${ac_cv_type_size_t+set}" = set; then
10259 echo $ECHO_N "(cached) $ECHO_C" >&6
10260 else
10261 cat >conftest.$ac_ext <<_ACEOF
10262 /* confdefs.h. */
10263 _ACEOF
10264 cat confdefs.h >>conftest.$ac_ext
10265 cat >>conftest.$ac_ext <<_ACEOF
10266 /* end confdefs.h. */
10267 $ac_includes_default
10268 typedef size_t ac__type_new_;
10270 main ()
10272 if ((ac__type_new_ *) 0)
10273 return 0;
10274 if (sizeof (ac__type_new_))
10275 return 0;
10277 return 0;
10279 _ACEOF
10280 rm -f conftest.$ac_objext
10281 if { (ac_try="$ac_compile"
10282 case "(($ac_try" in
10283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10284 *) ac_try_echo=$ac_try;;
10285 esac
10286 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10287 (eval "$ac_compile") 2>conftest.er1
10288 ac_status=$?
10289 grep -v '^ *+' conftest.er1 >conftest.err
10290 rm -f conftest.er1
10291 cat conftest.err >&5
10292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10293 (exit $ac_status); } && {
10294 test -z "$ac_c_werror_flag" ||
10295 test ! -s conftest.err
10296 } && test -s conftest.$ac_objext; then
10297 ac_cv_type_size_t=yes
10298 else
10299 echo "$as_me: failed program was:" >&5
10300 sed 's/^/| /' conftest.$ac_ext >&5
10302 ac_cv_type_size_t=no
10305 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10307 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
10308 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
10310 # The cast to long int works around a bug in the HP C Compiler
10311 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10312 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10313 # This bug is HP SR number 8606223364.
10314 { echo "$as_me:$LINENO: checking size of size_t" >&5
10315 echo $ECHO_N "checking size of size_t... $ECHO_C" >&6; }
10316 if test "${ac_cv_sizeof_size_t+set}" = set; then
10317 echo $ECHO_N "(cached) $ECHO_C" >&6
10318 else
10319 if test "$cross_compiling" = yes; then
10320 # Depending upon the size, compute the lo and hi bounds.
10321 cat >conftest.$ac_ext <<_ACEOF
10322 /* confdefs.h. */
10323 _ACEOF
10324 cat confdefs.h >>conftest.$ac_ext
10325 cat >>conftest.$ac_ext <<_ACEOF
10326 /* end confdefs.h. */
10327 $ac_includes_default
10328 typedef size_t ac__type_sizeof_;
10330 main ()
10332 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
10333 test_array [0] = 0
10336 return 0;
10338 _ACEOF
10339 rm -f conftest.$ac_objext
10340 if { (ac_try="$ac_compile"
10341 case "(($ac_try" in
10342 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10343 *) ac_try_echo=$ac_try;;
10344 esac
10345 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10346 (eval "$ac_compile") 2>conftest.er1
10347 ac_status=$?
10348 grep -v '^ *+' conftest.er1 >conftest.err
10349 rm -f conftest.er1
10350 cat conftest.err >&5
10351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10352 (exit $ac_status); } && {
10353 test -z "$ac_c_werror_flag" ||
10354 test ! -s conftest.err
10355 } && test -s conftest.$ac_objext; then
10356 ac_lo=0 ac_mid=0
10357 while :; do
10358 cat >conftest.$ac_ext <<_ACEOF
10359 /* confdefs.h. */
10360 _ACEOF
10361 cat confdefs.h >>conftest.$ac_ext
10362 cat >>conftest.$ac_ext <<_ACEOF
10363 /* end confdefs.h. */
10364 $ac_includes_default
10365 typedef size_t ac__type_sizeof_;
10367 main ()
10369 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
10370 test_array [0] = 0
10373 return 0;
10375 _ACEOF
10376 rm -f conftest.$ac_objext
10377 if { (ac_try="$ac_compile"
10378 case "(($ac_try" in
10379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10380 *) ac_try_echo=$ac_try;;
10381 esac
10382 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10383 (eval "$ac_compile") 2>conftest.er1
10384 ac_status=$?
10385 grep -v '^ *+' conftest.er1 >conftest.err
10386 rm -f conftest.er1
10387 cat conftest.err >&5
10388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10389 (exit $ac_status); } && {
10390 test -z "$ac_c_werror_flag" ||
10391 test ! -s conftest.err
10392 } && test -s conftest.$ac_objext; then
10393 ac_hi=$ac_mid; break
10394 else
10395 echo "$as_me: failed program was:" >&5
10396 sed 's/^/| /' conftest.$ac_ext >&5
10398 ac_lo=`expr $ac_mid + 1`
10399 if test $ac_lo -le $ac_mid; then
10400 ac_lo= ac_hi=
10401 break
10403 ac_mid=`expr 2 '*' $ac_mid + 1`
10406 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10407 done
10408 else
10409 echo "$as_me: failed program was:" >&5
10410 sed 's/^/| /' conftest.$ac_ext >&5
10412 cat >conftest.$ac_ext <<_ACEOF
10413 /* confdefs.h. */
10414 _ACEOF
10415 cat confdefs.h >>conftest.$ac_ext
10416 cat >>conftest.$ac_ext <<_ACEOF
10417 /* end confdefs.h. */
10418 $ac_includes_default
10419 typedef size_t ac__type_sizeof_;
10421 main ()
10423 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
10424 test_array [0] = 0
10427 return 0;
10429 _ACEOF
10430 rm -f conftest.$ac_objext
10431 if { (ac_try="$ac_compile"
10432 case "(($ac_try" in
10433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10434 *) ac_try_echo=$ac_try;;
10435 esac
10436 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10437 (eval "$ac_compile") 2>conftest.er1
10438 ac_status=$?
10439 grep -v '^ *+' conftest.er1 >conftest.err
10440 rm -f conftest.er1
10441 cat conftest.err >&5
10442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10443 (exit $ac_status); } && {
10444 test -z "$ac_c_werror_flag" ||
10445 test ! -s conftest.err
10446 } && test -s conftest.$ac_objext; then
10447 ac_hi=-1 ac_mid=-1
10448 while :; do
10449 cat >conftest.$ac_ext <<_ACEOF
10450 /* confdefs.h. */
10451 _ACEOF
10452 cat confdefs.h >>conftest.$ac_ext
10453 cat >>conftest.$ac_ext <<_ACEOF
10454 /* end confdefs.h. */
10455 $ac_includes_default
10456 typedef size_t ac__type_sizeof_;
10458 main ()
10460 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
10461 test_array [0] = 0
10464 return 0;
10466 _ACEOF
10467 rm -f conftest.$ac_objext
10468 if { (ac_try="$ac_compile"
10469 case "(($ac_try" in
10470 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10471 *) ac_try_echo=$ac_try;;
10472 esac
10473 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10474 (eval "$ac_compile") 2>conftest.er1
10475 ac_status=$?
10476 grep -v '^ *+' conftest.er1 >conftest.err
10477 rm -f conftest.er1
10478 cat conftest.err >&5
10479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10480 (exit $ac_status); } && {
10481 test -z "$ac_c_werror_flag" ||
10482 test ! -s conftest.err
10483 } && test -s conftest.$ac_objext; then
10484 ac_lo=$ac_mid; break
10485 else
10486 echo "$as_me: failed program was:" >&5
10487 sed 's/^/| /' conftest.$ac_ext >&5
10489 ac_hi=`expr '(' $ac_mid ')' - 1`
10490 if test $ac_mid -le $ac_hi; then
10491 ac_lo= ac_hi=
10492 break
10494 ac_mid=`expr 2 '*' $ac_mid`
10497 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10498 done
10499 else
10500 echo "$as_me: failed program was:" >&5
10501 sed 's/^/| /' conftest.$ac_ext >&5
10503 ac_lo= ac_hi=
10506 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10509 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10510 # Binary search between lo and hi bounds.
10511 while test "x$ac_lo" != "x$ac_hi"; do
10512 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10513 cat >conftest.$ac_ext <<_ACEOF
10514 /* confdefs.h. */
10515 _ACEOF
10516 cat confdefs.h >>conftest.$ac_ext
10517 cat >>conftest.$ac_ext <<_ACEOF
10518 /* end confdefs.h. */
10519 $ac_includes_default
10520 typedef size_t ac__type_sizeof_;
10522 main ()
10524 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
10525 test_array [0] = 0
10528 return 0;
10530 _ACEOF
10531 rm -f conftest.$ac_objext
10532 if { (ac_try="$ac_compile"
10533 case "(($ac_try" in
10534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10535 *) ac_try_echo=$ac_try;;
10536 esac
10537 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10538 (eval "$ac_compile") 2>conftest.er1
10539 ac_status=$?
10540 grep -v '^ *+' conftest.er1 >conftest.err
10541 rm -f conftest.er1
10542 cat conftest.err >&5
10543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10544 (exit $ac_status); } && {
10545 test -z "$ac_c_werror_flag" ||
10546 test ! -s conftest.err
10547 } && test -s conftest.$ac_objext; then
10548 ac_hi=$ac_mid
10549 else
10550 echo "$as_me: failed program was:" >&5
10551 sed 's/^/| /' conftest.$ac_ext >&5
10553 ac_lo=`expr '(' $ac_mid ')' + 1`
10556 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10557 done
10558 case $ac_lo in
10559 ?*) ac_cv_sizeof_size_t=$ac_lo;;
10560 '') if test "$ac_cv_type_size_t" = yes; then
10561 { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
10562 See \`config.log' for more details." >&5
10563 echo "$as_me: error: cannot compute sizeof (size_t)
10564 See \`config.log' for more details." >&2;}
10565 { (exit 77); exit 77; }; }
10566 else
10567 ac_cv_sizeof_size_t=0
10568 fi ;;
10569 esac
10570 else
10571 cat >conftest.$ac_ext <<_ACEOF
10572 /* confdefs.h. */
10573 _ACEOF
10574 cat confdefs.h >>conftest.$ac_ext
10575 cat >>conftest.$ac_ext <<_ACEOF
10576 /* end confdefs.h. */
10577 $ac_includes_default
10578 typedef size_t ac__type_sizeof_;
10579 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
10580 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
10581 #include <stdio.h>
10582 #include <stdlib.h>
10584 main ()
10587 FILE *f = fopen ("conftest.val", "w");
10588 if (! f)
10589 return 1;
10590 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
10592 long int i = longval ();
10593 if (i != ((long int) (sizeof (ac__type_sizeof_))))
10594 return 1;
10595 fprintf (f, "%ld\n", i);
10597 else
10599 unsigned long int i = ulongval ();
10600 if (i != ((long int) (sizeof (ac__type_sizeof_))))
10601 return 1;
10602 fprintf (f, "%lu\n", i);
10604 return ferror (f) || fclose (f) != 0;
10607 return 0;
10609 _ACEOF
10610 rm -f conftest$ac_exeext
10611 if { (ac_try="$ac_link"
10612 case "(($ac_try" in
10613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10614 *) ac_try_echo=$ac_try;;
10615 esac
10616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10617 (eval "$ac_link") 2>&5
10618 ac_status=$?
10619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10620 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10621 { (case "(($ac_try" in
10622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10623 *) ac_try_echo=$ac_try;;
10624 esac
10625 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10626 (eval "$ac_try") 2>&5
10627 ac_status=$?
10628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10629 (exit $ac_status); }; }; then
10630 ac_cv_sizeof_size_t=`cat conftest.val`
10631 else
10632 echo "$as_me: program exited with status $ac_status" >&5
10633 echo "$as_me: failed program was:" >&5
10634 sed 's/^/| /' conftest.$ac_ext >&5
10636 ( exit $ac_status )
10637 if test "$ac_cv_type_size_t" = yes; then
10638 { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
10639 See \`config.log' for more details." >&5
10640 echo "$as_me: error: cannot compute sizeof (size_t)
10641 See \`config.log' for more details." >&2;}
10642 { (exit 77); exit 77; }; }
10643 else
10644 ac_cv_sizeof_size_t=0
10647 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10649 rm -f conftest.val
10651 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
10652 echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6; }
10656 cat >>confdefs.h <<_ACEOF
10657 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
10658 _ACEOF
10661 { echo "$as_me:$LINENO: checking for pid_t" >&5
10662 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
10663 if test "${ac_cv_type_pid_t+set}" = set; then
10664 echo $ECHO_N "(cached) $ECHO_C" >&6
10665 else
10666 cat >conftest.$ac_ext <<_ACEOF
10667 /* confdefs.h. */
10668 _ACEOF
10669 cat confdefs.h >>conftest.$ac_ext
10670 cat >>conftest.$ac_ext <<_ACEOF
10671 /* end confdefs.h. */
10672 $ac_includes_default
10673 typedef pid_t ac__type_new_;
10675 main ()
10677 if ((ac__type_new_ *) 0)
10678 return 0;
10679 if (sizeof (ac__type_new_))
10680 return 0;
10682 return 0;
10684 _ACEOF
10685 rm -f conftest.$ac_objext
10686 if { (ac_try="$ac_compile"
10687 case "(($ac_try" in
10688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10689 *) ac_try_echo=$ac_try;;
10690 esac
10691 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10692 (eval "$ac_compile") 2>conftest.er1
10693 ac_status=$?
10694 grep -v '^ *+' conftest.er1 >conftest.err
10695 rm -f conftest.er1
10696 cat conftest.err >&5
10697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10698 (exit $ac_status); } && {
10699 test -z "$ac_c_werror_flag" ||
10700 test ! -s conftest.err
10701 } && test -s conftest.$ac_objext; then
10702 ac_cv_type_pid_t=yes
10703 else
10704 echo "$as_me: failed program was:" >&5
10705 sed 's/^/| /' conftest.$ac_ext >&5
10707 ac_cv_type_pid_t=no
10710 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10712 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
10713 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
10715 # The cast to long int works around a bug in the HP C Compiler
10716 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10717 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10718 # This bug is HP SR number 8606223364.
10719 { echo "$as_me:$LINENO: checking size of pid_t" >&5
10720 echo $ECHO_N "checking size of pid_t... $ECHO_C" >&6; }
10721 if test "${ac_cv_sizeof_pid_t+set}" = set; then
10722 echo $ECHO_N "(cached) $ECHO_C" >&6
10723 else
10724 if test "$cross_compiling" = yes; then
10725 # Depending upon the size, compute the lo and hi bounds.
10726 cat >conftest.$ac_ext <<_ACEOF
10727 /* confdefs.h. */
10728 _ACEOF
10729 cat confdefs.h >>conftest.$ac_ext
10730 cat >>conftest.$ac_ext <<_ACEOF
10731 /* end confdefs.h. */
10732 $ac_includes_default
10733 typedef pid_t ac__type_sizeof_;
10735 main ()
10737 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
10738 test_array [0] = 0
10741 return 0;
10743 _ACEOF
10744 rm -f conftest.$ac_objext
10745 if { (ac_try="$ac_compile"
10746 case "(($ac_try" in
10747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10748 *) ac_try_echo=$ac_try;;
10749 esac
10750 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10751 (eval "$ac_compile") 2>conftest.er1
10752 ac_status=$?
10753 grep -v '^ *+' conftest.er1 >conftest.err
10754 rm -f conftest.er1
10755 cat conftest.err >&5
10756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10757 (exit $ac_status); } && {
10758 test -z "$ac_c_werror_flag" ||
10759 test ! -s conftest.err
10760 } && test -s conftest.$ac_objext; then
10761 ac_lo=0 ac_mid=0
10762 while :; do
10763 cat >conftest.$ac_ext <<_ACEOF
10764 /* confdefs.h. */
10765 _ACEOF
10766 cat confdefs.h >>conftest.$ac_ext
10767 cat >>conftest.$ac_ext <<_ACEOF
10768 /* end confdefs.h. */
10769 $ac_includes_default
10770 typedef pid_t ac__type_sizeof_;
10772 main ()
10774 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
10775 test_array [0] = 0
10778 return 0;
10780 _ACEOF
10781 rm -f conftest.$ac_objext
10782 if { (ac_try="$ac_compile"
10783 case "(($ac_try" in
10784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10785 *) ac_try_echo=$ac_try;;
10786 esac
10787 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10788 (eval "$ac_compile") 2>conftest.er1
10789 ac_status=$?
10790 grep -v '^ *+' conftest.er1 >conftest.err
10791 rm -f conftest.er1
10792 cat conftest.err >&5
10793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10794 (exit $ac_status); } && {
10795 test -z "$ac_c_werror_flag" ||
10796 test ! -s conftest.err
10797 } && test -s conftest.$ac_objext; then
10798 ac_hi=$ac_mid; break
10799 else
10800 echo "$as_me: failed program was:" >&5
10801 sed 's/^/| /' conftest.$ac_ext >&5
10803 ac_lo=`expr $ac_mid + 1`
10804 if test $ac_lo -le $ac_mid; then
10805 ac_lo= ac_hi=
10806 break
10808 ac_mid=`expr 2 '*' $ac_mid + 1`
10811 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10812 done
10813 else
10814 echo "$as_me: failed program was:" >&5
10815 sed 's/^/| /' conftest.$ac_ext >&5
10817 cat >conftest.$ac_ext <<_ACEOF
10818 /* confdefs.h. */
10819 _ACEOF
10820 cat confdefs.h >>conftest.$ac_ext
10821 cat >>conftest.$ac_ext <<_ACEOF
10822 /* end confdefs.h. */
10823 $ac_includes_default
10824 typedef pid_t ac__type_sizeof_;
10826 main ()
10828 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
10829 test_array [0] = 0
10832 return 0;
10834 _ACEOF
10835 rm -f conftest.$ac_objext
10836 if { (ac_try="$ac_compile"
10837 case "(($ac_try" in
10838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10839 *) ac_try_echo=$ac_try;;
10840 esac
10841 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10842 (eval "$ac_compile") 2>conftest.er1
10843 ac_status=$?
10844 grep -v '^ *+' conftest.er1 >conftest.err
10845 rm -f conftest.er1
10846 cat conftest.err >&5
10847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10848 (exit $ac_status); } && {
10849 test -z "$ac_c_werror_flag" ||
10850 test ! -s conftest.err
10851 } && test -s conftest.$ac_objext; then
10852 ac_hi=-1 ac_mid=-1
10853 while :; do
10854 cat >conftest.$ac_ext <<_ACEOF
10855 /* confdefs.h. */
10856 _ACEOF
10857 cat confdefs.h >>conftest.$ac_ext
10858 cat >>conftest.$ac_ext <<_ACEOF
10859 /* end confdefs.h. */
10860 $ac_includes_default
10861 typedef pid_t ac__type_sizeof_;
10863 main ()
10865 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
10866 test_array [0] = 0
10869 return 0;
10871 _ACEOF
10872 rm -f conftest.$ac_objext
10873 if { (ac_try="$ac_compile"
10874 case "(($ac_try" in
10875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10876 *) ac_try_echo=$ac_try;;
10877 esac
10878 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10879 (eval "$ac_compile") 2>conftest.er1
10880 ac_status=$?
10881 grep -v '^ *+' conftest.er1 >conftest.err
10882 rm -f conftest.er1
10883 cat conftest.err >&5
10884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10885 (exit $ac_status); } && {
10886 test -z "$ac_c_werror_flag" ||
10887 test ! -s conftest.err
10888 } && test -s conftest.$ac_objext; then
10889 ac_lo=$ac_mid; break
10890 else
10891 echo "$as_me: failed program was:" >&5
10892 sed 's/^/| /' conftest.$ac_ext >&5
10894 ac_hi=`expr '(' $ac_mid ')' - 1`
10895 if test $ac_mid -le $ac_hi; then
10896 ac_lo= ac_hi=
10897 break
10899 ac_mid=`expr 2 '*' $ac_mid`
10902 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10903 done
10904 else
10905 echo "$as_me: failed program was:" >&5
10906 sed 's/^/| /' conftest.$ac_ext >&5
10908 ac_lo= ac_hi=
10911 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10914 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10915 # Binary search between lo and hi bounds.
10916 while test "x$ac_lo" != "x$ac_hi"; do
10917 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10918 cat >conftest.$ac_ext <<_ACEOF
10919 /* confdefs.h. */
10920 _ACEOF
10921 cat confdefs.h >>conftest.$ac_ext
10922 cat >>conftest.$ac_ext <<_ACEOF
10923 /* end confdefs.h. */
10924 $ac_includes_default
10925 typedef pid_t ac__type_sizeof_;
10927 main ()
10929 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
10930 test_array [0] = 0
10933 return 0;
10935 _ACEOF
10936 rm -f conftest.$ac_objext
10937 if { (ac_try="$ac_compile"
10938 case "(($ac_try" in
10939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10940 *) ac_try_echo=$ac_try;;
10941 esac
10942 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10943 (eval "$ac_compile") 2>conftest.er1
10944 ac_status=$?
10945 grep -v '^ *+' conftest.er1 >conftest.err
10946 rm -f conftest.er1
10947 cat conftest.err >&5
10948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10949 (exit $ac_status); } && {
10950 test -z "$ac_c_werror_flag" ||
10951 test ! -s conftest.err
10952 } && test -s conftest.$ac_objext; then
10953 ac_hi=$ac_mid
10954 else
10955 echo "$as_me: failed program was:" >&5
10956 sed 's/^/| /' conftest.$ac_ext >&5
10958 ac_lo=`expr '(' $ac_mid ')' + 1`
10961 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10962 done
10963 case $ac_lo in
10964 ?*) ac_cv_sizeof_pid_t=$ac_lo;;
10965 '') if test "$ac_cv_type_pid_t" = yes; then
10966 { { echo "$as_me:$LINENO: error: cannot compute sizeof (pid_t)
10967 See \`config.log' for more details." >&5
10968 echo "$as_me: error: cannot compute sizeof (pid_t)
10969 See \`config.log' for more details." >&2;}
10970 { (exit 77); exit 77; }; }
10971 else
10972 ac_cv_sizeof_pid_t=0
10973 fi ;;
10974 esac
10975 else
10976 cat >conftest.$ac_ext <<_ACEOF
10977 /* confdefs.h. */
10978 _ACEOF
10979 cat confdefs.h >>conftest.$ac_ext
10980 cat >>conftest.$ac_ext <<_ACEOF
10981 /* end confdefs.h. */
10982 $ac_includes_default
10983 typedef pid_t ac__type_sizeof_;
10984 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
10985 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
10986 #include <stdio.h>
10987 #include <stdlib.h>
10989 main ()
10992 FILE *f = fopen ("conftest.val", "w");
10993 if (! f)
10994 return 1;
10995 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
10997 long int i = longval ();
10998 if (i != ((long int) (sizeof (ac__type_sizeof_))))
10999 return 1;
11000 fprintf (f, "%ld\n", i);
11002 else
11004 unsigned long int i = ulongval ();
11005 if (i != ((long int) (sizeof (ac__type_sizeof_))))
11006 return 1;
11007 fprintf (f, "%lu\n", i);
11009 return ferror (f) || fclose (f) != 0;
11012 return 0;
11014 _ACEOF
11015 rm -f conftest$ac_exeext
11016 if { (ac_try="$ac_link"
11017 case "(($ac_try" in
11018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11019 *) ac_try_echo=$ac_try;;
11020 esac
11021 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11022 (eval "$ac_link") 2>&5
11023 ac_status=$?
11024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11025 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11026 { (case "(($ac_try" in
11027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11028 *) ac_try_echo=$ac_try;;
11029 esac
11030 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11031 (eval "$ac_try") 2>&5
11032 ac_status=$?
11033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11034 (exit $ac_status); }; }; then
11035 ac_cv_sizeof_pid_t=`cat conftest.val`
11036 else
11037 echo "$as_me: program exited with status $ac_status" >&5
11038 echo "$as_me: failed program was:" >&5
11039 sed 's/^/| /' conftest.$ac_ext >&5
11041 ( exit $ac_status )
11042 if test "$ac_cv_type_pid_t" = yes; then
11043 { { echo "$as_me:$LINENO: error: cannot compute sizeof (pid_t)
11044 See \`config.log' for more details." >&5
11045 echo "$as_me: error: cannot compute sizeof (pid_t)
11046 See \`config.log' for more details." >&2;}
11047 { (exit 77); exit 77; }; }
11048 else
11049 ac_cv_sizeof_pid_t=0
11052 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11054 rm -f conftest.val
11056 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_pid_t" >&5
11057 echo "${ECHO_T}$ac_cv_sizeof_pid_t" >&6; }
11061 cat >>confdefs.h <<_ACEOF
11062 #define SIZEOF_PID_T $ac_cv_sizeof_pid_t
11063 _ACEOF
11067 { echo "$as_me:$LINENO: checking for long long support" >&5
11068 echo $ECHO_N "checking for long long support... $ECHO_C" >&6; }
11069 have_long_long=no
11070 cat >conftest.$ac_ext <<_ACEOF
11071 /* confdefs.h. */
11072 _ACEOF
11073 cat confdefs.h >>conftest.$ac_ext
11074 cat >>conftest.$ac_ext <<_ACEOF
11075 /* end confdefs.h. */
11078 main ()
11080 long long x; x = (long long)0;
11082 return 0;
11084 _ACEOF
11085 rm -f conftest.$ac_objext
11086 if { (ac_try="$ac_compile"
11087 case "(($ac_try" in
11088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11089 *) ac_try_echo=$ac_try;;
11090 esac
11091 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11092 (eval "$ac_compile") 2>conftest.er1
11093 ac_status=$?
11094 grep -v '^ *+' conftest.er1 >conftest.err
11095 rm -f conftest.er1
11096 cat conftest.err >&5
11097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11098 (exit $ac_status); } && {
11099 test -z "$ac_c_werror_flag" ||
11100 test ! -s conftest.err
11101 } && test -s conftest.$ac_objext; then
11104 cat >>confdefs.h <<\_ACEOF
11105 #define HAVE_LONG_LONG 1
11106 _ACEOF
11108 have_long_long=yes
11110 else
11111 echo "$as_me: failed program was:" >&5
11112 sed 's/^/| /' conftest.$ac_ext >&5
11117 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11118 { echo "$as_me:$LINENO: result: $have_long_long" >&5
11119 echo "${ECHO_T}$have_long_long" >&6; }
11120 if test "$have_long_long" = yes ; then
11121 { echo "$as_me:$LINENO: checking for long long" >&5
11122 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
11123 if test "${ac_cv_type_long_long+set}" = set; then
11124 echo $ECHO_N "(cached) $ECHO_C" >&6
11125 else
11126 cat >conftest.$ac_ext <<_ACEOF
11127 /* confdefs.h. */
11128 _ACEOF
11129 cat confdefs.h >>conftest.$ac_ext
11130 cat >>conftest.$ac_ext <<_ACEOF
11131 /* end confdefs.h. */
11132 $ac_includes_default
11133 typedef long long ac__type_new_;
11135 main ()
11137 if ((ac__type_new_ *) 0)
11138 return 0;
11139 if (sizeof (ac__type_new_))
11140 return 0;
11142 return 0;
11144 _ACEOF
11145 rm -f conftest.$ac_objext
11146 if { (ac_try="$ac_compile"
11147 case "(($ac_try" in
11148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11149 *) ac_try_echo=$ac_try;;
11150 esac
11151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11152 (eval "$ac_compile") 2>conftest.er1
11153 ac_status=$?
11154 grep -v '^ *+' conftest.er1 >conftest.err
11155 rm -f conftest.er1
11156 cat conftest.err >&5
11157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11158 (exit $ac_status); } && {
11159 test -z "$ac_c_werror_flag" ||
11160 test ! -s conftest.err
11161 } && test -s conftest.$ac_objext; then
11162 ac_cv_type_long_long=yes
11163 else
11164 echo "$as_me: failed program was:" >&5
11165 sed 's/^/| /' conftest.$ac_ext >&5
11167 ac_cv_type_long_long=no
11170 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11172 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
11173 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
11175 # The cast to long int works around a bug in the HP C Compiler
11176 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11177 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11178 # This bug is HP SR number 8606223364.
11179 { echo "$as_me:$LINENO: checking size of long long" >&5
11180 echo $ECHO_N "checking size of long long... $ECHO_C" >&6; }
11181 if test "${ac_cv_sizeof_long_long+set}" = set; then
11182 echo $ECHO_N "(cached) $ECHO_C" >&6
11183 else
11184 if test "$cross_compiling" = yes; then
11185 # Depending upon the size, compute the lo and hi bounds.
11186 cat >conftest.$ac_ext <<_ACEOF
11187 /* confdefs.h. */
11188 _ACEOF
11189 cat confdefs.h >>conftest.$ac_ext
11190 cat >>conftest.$ac_ext <<_ACEOF
11191 /* end confdefs.h. */
11192 $ac_includes_default
11193 typedef long long ac__type_sizeof_;
11195 main ()
11197 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
11198 test_array [0] = 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
11221 ac_lo=0 ac_mid=0
11222 while :; do
11223 cat >conftest.$ac_ext <<_ACEOF
11224 /* confdefs.h. */
11225 _ACEOF
11226 cat confdefs.h >>conftest.$ac_ext
11227 cat >>conftest.$ac_ext <<_ACEOF
11228 /* end confdefs.h. */
11229 $ac_includes_default
11230 typedef long long ac__type_sizeof_;
11232 main ()
11234 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
11235 test_array [0] = 0
11238 return 0;
11240 _ACEOF
11241 rm -f conftest.$ac_objext
11242 if { (ac_try="$ac_compile"
11243 case "(($ac_try" in
11244 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11245 *) ac_try_echo=$ac_try;;
11246 esac
11247 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11248 (eval "$ac_compile") 2>conftest.er1
11249 ac_status=$?
11250 grep -v '^ *+' conftest.er1 >conftest.err
11251 rm -f conftest.er1
11252 cat conftest.err >&5
11253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11254 (exit $ac_status); } && {
11255 test -z "$ac_c_werror_flag" ||
11256 test ! -s conftest.err
11257 } && test -s conftest.$ac_objext; then
11258 ac_hi=$ac_mid; break
11259 else
11260 echo "$as_me: failed program was:" >&5
11261 sed 's/^/| /' conftest.$ac_ext >&5
11263 ac_lo=`expr $ac_mid + 1`
11264 if test $ac_lo -le $ac_mid; then
11265 ac_lo= ac_hi=
11266 break
11268 ac_mid=`expr 2 '*' $ac_mid + 1`
11271 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11272 done
11273 else
11274 echo "$as_me: failed program was:" >&5
11275 sed 's/^/| /' conftest.$ac_ext >&5
11277 cat >conftest.$ac_ext <<_ACEOF
11278 /* confdefs.h. */
11279 _ACEOF
11280 cat confdefs.h >>conftest.$ac_ext
11281 cat >>conftest.$ac_ext <<_ACEOF
11282 /* end confdefs.h. */
11283 $ac_includes_default
11284 typedef long long ac__type_sizeof_;
11286 main ()
11288 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
11289 test_array [0] = 0
11292 return 0;
11294 _ACEOF
11295 rm -f conftest.$ac_objext
11296 if { (ac_try="$ac_compile"
11297 case "(($ac_try" in
11298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11299 *) ac_try_echo=$ac_try;;
11300 esac
11301 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11302 (eval "$ac_compile") 2>conftest.er1
11303 ac_status=$?
11304 grep -v '^ *+' conftest.er1 >conftest.err
11305 rm -f conftest.er1
11306 cat conftest.err >&5
11307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11308 (exit $ac_status); } && {
11309 test -z "$ac_c_werror_flag" ||
11310 test ! -s conftest.err
11311 } && test -s conftest.$ac_objext; then
11312 ac_hi=-1 ac_mid=-1
11313 while :; do
11314 cat >conftest.$ac_ext <<_ACEOF
11315 /* confdefs.h. */
11316 _ACEOF
11317 cat confdefs.h >>conftest.$ac_ext
11318 cat >>conftest.$ac_ext <<_ACEOF
11319 /* end confdefs.h. */
11320 $ac_includes_default
11321 typedef long long ac__type_sizeof_;
11323 main ()
11325 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
11326 test_array [0] = 0
11329 return 0;
11331 _ACEOF
11332 rm -f conftest.$ac_objext
11333 if { (ac_try="$ac_compile"
11334 case "(($ac_try" in
11335 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11336 *) ac_try_echo=$ac_try;;
11337 esac
11338 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11339 (eval "$ac_compile") 2>conftest.er1
11340 ac_status=$?
11341 grep -v '^ *+' conftest.er1 >conftest.err
11342 rm -f conftest.er1
11343 cat conftest.err >&5
11344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11345 (exit $ac_status); } && {
11346 test -z "$ac_c_werror_flag" ||
11347 test ! -s conftest.err
11348 } && test -s conftest.$ac_objext; then
11349 ac_lo=$ac_mid; break
11350 else
11351 echo "$as_me: failed program was:" >&5
11352 sed 's/^/| /' conftest.$ac_ext >&5
11354 ac_hi=`expr '(' $ac_mid ')' - 1`
11355 if test $ac_mid -le $ac_hi; then
11356 ac_lo= ac_hi=
11357 break
11359 ac_mid=`expr 2 '*' $ac_mid`
11362 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11363 done
11364 else
11365 echo "$as_me: failed program was:" >&5
11366 sed 's/^/| /' conftest.$ac_ext >&5
11368 ac_lo= ac_hi=
11371 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11374 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11375 # Binary search between lo and hi bounds.
11376 while test "x$ac_lo" != "x$ac_hi"; do
11377 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
11378 cat >conftest.$ac_ext <<_ACEOF
11379 /* confdefs.h. */
11380 _ACEOF
11381 cat confdefs.h >>conftest.$ac_ext
11382 cat >>conftest.$ac_ext <<_ACEOF
11383 /* end confdefs.h. */
11384 $ac_includes_default
11385 typedef long long ac__type_sizeof_;
11387 main ()
11389 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
11390 test_array [0] = 0
11393 return 0;
11395 _ACEOF
11396 rm -f conftest.$ac_objext
11397 if { (ac_try="$ac_compile"
11398 case "(($ac_try" in
11399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11400 *) ac_try_echo=$ac_try;;
11401 esac
11402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11403 (eval "$ac_compile") 2>conftest.er1
11404 ac_status=$?
11405 grep -v '^ *+' conftest.er1 >conftest.err
11406 rm -f conftest.er1
11407 cat conftest.err >&5
11408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11409 (exit $ac_status); } && {
11410 test -z "$ac_c_werror_flag" ||
11411 test ! -s conftest.err
11412 } && test -s conftest.$ac_objext; then
11413 ac_hi=$ac_mid
11414 else
11415 echo "$as_me: failed program was:" >&5
11416 sed 's/^/| /' conftest.$ac_ext >&5
11418 ac_lo=`expr '(' $ac_mid ')' + 1`
11421 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11422 done
11423 case $ac_lo in
11424 ?*) ac_cv_sizeof_long_long=$ac_lo;;
11425 '') if test "$ac_cv_type_long_long" = yes; then
11426 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
11427 See \`config.log' for more details." >&5
11428 echo "$as_me: error: cannot compute sizeof (long long)
11429 See \`config.log' for more details." >&2;}
11430 { (exit 77); exit 77; }; }
11431 else
11432 ac_cv_sizeof_long_long=0
11433 fi ;;
11434 esac
11435 else
11436 cat >conftest.$ac_ext <<_ACEOF
11437 /* confdefs.h. */
11438 _ACEOF
11439 cat confdefs.h >>conftest.$ac_ext
11440 cat >>conftest.$ac_ext <<_ACEOF
11441 /* end confdefs.h. */
11442 $ac_includes_default
11443 typedef long long ac__type_sizeof_;
11444 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
11445 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
11446 #include <stdio.h>
11447 #include <stdlib.h>
11449 main ()
11452 FILE *f = fopen ("conftest.val", "w");
11453 if (! f)
11454 return 1;
11455 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
11457 long int i = longval ();
11458 if (i != ((long int) (sizeof (ac__type_sizeof_))))
11459 return 1;
11460 fprintf (f, "%ld\n", i);
11462 else
11464 unsigned long int i = ulongval ();
11465 if (i != ((long int) (sizeof (ac__type_sizeof_))))
11466 return 1;
11467 fprintf (f, "%lu\n", i);
11469 return ferror (f) || fclose (f) != 0;
11472 return 0;
11474 _ACEOF
11475 rm -f conftest$ac_exeext
11476 if { (ac_try="$ac_link"
11477 case "(($ac_try" in
11478 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11479 *) ac_try_echo=$ac_try;;
11480 esac
11481 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11482 (eval "$ac_link") 2>&5
11483 ac_status=$?
11484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11485 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11486 { (case "(($ac_try" in
11487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11488 *) ac_try_echo=$ac_try;;
11489 esac
11490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11491 (eval "$ac_try") 2>&5
11492 ac_status=$?
11493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11494 (exit $ac_status); }; }; then
11495 ac_cv_sizeof_long_long=`cat conftest.val`
11496 else
11497 echo "$as_me: program exited with status $ac_status" >&5
11498 echo "$as_me: failed program was:" >&5
11499 sed 's/^/| /' conftest.$ac_ext >&5
11501 ( exit $ac_status )
11502 if test "$ac_cv_type_long_long" = yes; then
11503 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
11504 See \`config.log' for more details." >&5
11505 echo "$as_me: error: cannot compute sizeof (long long)
11506 See \`config.log' for more details." >&2;}
11507 { (exit 77); exit 77; }; }
11508 else
11509 ac_cv_sizeof_long_long=0
11512 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11514 rm -f conftest.val
11516 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
11517 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6; }
11521 cat >>confdefs.h <<_ACEOF
11522 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
11523 _ACEOF
11528 { echo "$as_me:$LINENO: checking for long double support" >&5
11529 echo $ECHO_N "checking for long double support... $ECHO_C" >&6; }
11530 have_long_double=no
11531 cat >conftest.$ac_ext <<_ACEOF
11532 /* confdefs.h. */
11533 _ACEOF
11534 cat confdefs.h >>conftest.$ac_ext
11535 cat >>conftest.$ac_ext <<_ACEOF
11536 /* end confdefs.h. */
11539 main ()
11541 long double x; x = (long double)0;
11543 return 0;
11545 _ACEOF
11546 rm -f conftest.$ac_objext
11547 if { (ac_try="$ac_compile"
11548 case "(($ac_try" in
11549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11550 *) ac_try_echo=$ac_try;;
11551 esac
11552 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11553 (eval "$ac_compile") 2>conftest.er1
11554 ac_status=$?
11555 grep -v '^ *+' conftest.er1 >conftest.err
11556 rm -f conftest.er1
11557 cat conftest.err >&5
11558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11559 (exit $ac_status); } && {
11560 test -z "$ac_c_werror_flag" ||
11561 test ! -s conftest.err
11562 } && test -s conftest.$ac_objext; then
11565 cat >>confdefs.h <<\_ACEOF
11566 #define HAVE_LONG_DOUBLE 1
11567 _ACEOF
11569 have_long_double=yes
11571 else
11572 echo "$as_me: failed program was:" >&5
11573 sed 's/^/| /' conftest.$ac_ext >&5
11578 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11579 { echo "$as_me:$LINENO: result: $have_long_double" >&5
11580 echo "${ECHO_T}$have_long_double" >&6; }
11581 if test "$have_long_double" = yes ; then
11582 { echo "$as_me:$LINENO: checking for long double" >&5
11583 echo $ECHO_N "checking for long double... $ECHO_C" >&6; }
11584 if test "${ac_cv_type_long_double+set}" = set; then
11585 echo $ECHO_N "(cached) $ECHO_C" >&6
11586 else
11587 cat >conftest.$ac_ext <<_ACEOF
11588 /* confdefs.h. */
11589 _ACEOF
11590 cat confdefs.h >>conftest.$ac_ext
11591 cat >>conftest.$ac_ext <<_ACEOF
11592 /* end confdefs.h. */
11593 $ac_includes_default
11594 typedef long double ac__type_new_;
11596 main ()
11598 if ((ac__type_new_ *) 0)
11599 return 0;
11600 if (sizeof (ac__type_new_))
11601 return 0;
11603 return 0;
11605 _ACEOF
11606 rm -f conftest.$ac_objext
11607 if { (ac_try="$ac_compile"
11608 case "(($ac_try" in
11609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11610 *) ac_try_echo=$ac_try;;
11611 esac
11612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11613 (eval "$ac_compile") 2>conftest.er1
11614 ac_status=$?
11615 grep -v '^ *+' conftest.er1 >conftest.err
11616 rm -f conftest.er1
11617 cat conftest.err >&5
11618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11619 (exit $ac_status); } && {
11620 test -z "$ac_c_werror_flag" ||
11621 test ! -s conftest.err
11622 } && test -s conftest.$ac_objext; then
11623 ac_cv_type_long_double=yes
11624 else
11625 echo "$as_me: failed program was:" >&5
11626 sed 's/^/| /' conftest.$ac_ext >&5
11628 ac_cv_type_long_double=no
11631 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11633 { echo "$as_me:$LINENO: result: $ac_cv_type_long_double" >&5
11634 echo "${ECHO_T}$ac_cv_type_long_double" >&6; }
11636 # The cast to long int works around a bug in the HP C Compiler
11637 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11638 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11639 # This bug is HP SR number 8606223364.
11640 { echo "$as_me:$LINENO: checking size of long double" >&5
11641 echo $ECHO_N "checking size of long double... $ECHO_C" >&6; }
11642 if test "${ac_cv_sizeof_long_double+set}" = set; then
11643 echo $ECHO_N "(cached) $ECHO_C" >&6
11644 else
11645 if test "$cross_compiling" = yes; then
11646 # Depending upon the size, compute the lo and hi bounds.
11647 cat >conftest.$ac_ext <<_ACEOF
11648 /* confdefs.h. */
11649 _ACEOF
11650 cat confdefs.h >>conftest.$ac_ext
11651 cat >>conftest.$ac_ext <<_ACEOF
11652 /* end confdefs.h. */
11653 $ac_includes_default
11654 typedef long double ac__type_sizeof_;
11656 main ()
11658 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
11659 test_array [0] = 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
11682 ac_lo=0 ac_mid=0
11683 while :; do
11684 cat >conftest.$ac_ext <<_ACEOF
11685 /* confdefs.h. */
11686 _ACEOF
11687 cat confdefs.h >>conftest.$ac_ext
11688 cat >>conftest.$ac_ext <<_ACEOF
11689 /* end confdefs.h. */
11690 $ac_includes_default
11691 typedef long double ac__type_sizeof_;
11693 main ()
11695 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
11696 test_array [0] = 0
11699 return 0;
11701 _ACEOF
11702 rm -f conftest.$ac_objext
11703 if { (ac_try="$ac_compile"
11704 case "(($ac_try" in
11705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11706 *) ac_try_echo=$ac_try;;
11707 esac
11708 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11709 (eval "$ac_compile") 2>conftest.er1
11710 ac_status=$?
11711 grep -v '^ *+' conftest.er1 >conftest.err
11712 rm -f conftest.er1
11713 cat conftest.err >&5
11714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11715 (exit $ac_status); } && {
11716 test -z "$ac_c_werror_flag" ||
11717 test ! -s conftest.err
11718 } && test -s conftest.$ac_objext; then
11719 ac_hi=$ac_mid; break
11720 else
11721 echo "$as_me: failed program was:" >&5
11722 sed 's/^/| /' conftest.$ac_ext >&5
11724 ac_lo=`expr $ac_mid + 1`
11725 if test $ac_lo -le $ac_mid; then
11726 ac_lo= ac_hi=
11727 break
11729 ac_mid=`expr 2 '*' $ac_mid + 1`
11732 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11733 done
11734 else
11735 echo "$as_me: failed program was:" >&5
11736 sed 's/^/| /' conftest.$ac_ext >&5
11738 cat >conftest.$ac_ext <<_ACEOF
11739 /* confdefs.h. */
11740 _ACEOF
11741 cat confdefs.h >>conftest.$ac_ext
11742 cat >>conftest.$ac_ext <<_ACEOF
11743 /* end confdefs.h. */
11744 $ac_includes_default
11745 typedef long double ac__type_sizeof_;
11747 main ()
11749 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
11750 test_array [0] = 0
11753 return 0;
11755 _ACEOF
11756 rm -f conftest.$ac_objext
11757 if { (ac_try="$ac_compile"
11758 case "(($ac_try" in
11759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11760 *) ac_try_echo=$ac_try;;
11761 esac
11762 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11763 (eval "$ac_compile") 2>conftest.er1
11764 ac_status=$?
11765 grep -v '^ *+' conftest.er1 >conftest.err
11766 rm -f conftest.er1
11767 cat conftest.err >&5
11768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11769 (exit $ac_status); } && {
11770 test -z "$ac_c_werror_flag" ||
11771 test ! -s conftest.err
11772 } && test -s conftest.$ac_objext; then
11773 ac_hi=-1 ac_mid=-1
11774 while :; do
11775 cat >conftest.$ac_ext <<_ACEOF
11776 /* confdefs.h. */
11777 _ACEOF
11778 cat confdefs.h >>conftest.$ac_ext
11779 cat >>conftest.$ac_ext <<_ACEOF
11780 /* end confdefs.h. */
11781 $ac_includes_default
11782 typedef long double ac__type_sizeof_;
11784 main ()
11786 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
11787 test_array [0] = 0
11790 return 0;
11792 _ACEOF
11793 rm -f conftest.$ac_objext
11794 if { (ac_try="$ac_compile"
11795 case "(($ac_try" in
11796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11797 *) ac_try_echo=$ac_try;;
11798 esac
11799 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11800 (eval "$ac_compile") 2>conftest.er1
11801 ac_status=$?
11802 grep -v '^ *+' conftest.er1 >conftest.err
11803 rm -f conftest.er1
11804 cat conftest.err >&5
11805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11806 (exit $ac_status); } && {
11807 test -z "$ac_c_werror_flag" ||
11808 test ! -s conftest.err
11809 } && test -s conftest.$ac_objext; then
11810 ac_lo=$ac_mid; break
11811 else
11812 echo "$as_me: failed program was:" >&5
11813 sed 's/^/| /' conftest.$ac_ext >&5
11815 ac_hi=`expr '(' $ac_mid ')' - 1`
11816 if test $ac_mid -le $ac_hi; then
11817 ac_lo= ac_hi=
11818 break
11820 ac_mid=`expr 2 '*' $ac_mid`
11823 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11824 done
11825 else
11826 echo "$as_me: failed program was:" >&5
11827 sed 's/^/| /' conftest.$ac_ext >&5
11829 ac_lo= ac_hi=
11832 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11835 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11836 # Binary search between lo and hi bounds.
11837 while test "x$ac_lo" != "x$ac_hi"; do
11838 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
11839 cat >conftest.$ac_ext <<_ACEOF
11840 /* confdefs.h. */
11841 _ACEOF
11842 cat confdefs.h >>conftest.$ac_ext
11843 cat >>conftest.$ac_ext <<_ACEOF
11844 /* end confdefs.h. */
11845 $ac_includes_default
11846 typedef long double ac__type_sizeof_;
11848 main ()
11850 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
11851 test_array [0] = 0
11854 return 0;
11856 _ACEOF
11857 rm -f conftest.$ac_objext
11858 if { (ac_try="$ac_compile"
11859 case "(($ac_try" in
11860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11861 *) ac_try_echo=$ac_try;;
11862 esac
11863 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11864 (eval "$ac_compile") 2>conftest.er1
11865 ac_status=$?
11866 grep -v '^ *+' conftest.er1 >conftest.err
11867 rm -f conftest.er1
11868 cat conftest.err >&5
11869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11870 (exit $ac_status); } && {
11871 test -z "$ac_c_werror_flag" ||
11872 test ! -s conftest.err
11873 } && test -s conftest.$ac_objext; then
11874 ac_hi=$ac_mid
11875 else
11876 echo "$as_me: failed program was:" >&5
11877 sed 's/^/| /' conftest.$ac_ext >&5
11879 ac_lo=`expr '(' $ac_mid ')' + 1`
11882 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11883 done
11884 case $ac_lo in
11885 ?*) ac_cv_sizeof_long_double=$ac_lo;;
11886 '') if test "$ac_cv_type_long_double" = yes; then
11887 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long double)
11888 See \`config.log' for more details." >&5
11889 echo "$as_me: error: cannot compute sizeof (long double)
11890 See \`config.log' for more details." >&2;}
11891 { (exit 77); exit 77; }; }
11892 else
11893 ac_cv_sizeof_long_double=0
11894 fi ;;
11895 esac
11896 else
11897 cat >conftest.$ac_ext <<_ACEOF
11898 /* confdefs.h. */
11899 _ACEOF
11900 cat confdefs.h >>conftest.$ac_ext
11901 cat >>conftest.$ac_ext <<_ACEOF
11902 /* end confdefs.h. */
11903 $ac_includes_default
11904 typedef long double ac__type_sizeof_;
11905 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
11906 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
11907 #include <stdio.h>
11908 #include <stdlib.h>
11910 main ()
11913 FILE *f = fopen ("conftest.val", "w");
11914 if (! f)
11915 return 1;
11916 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
11918 long int i = longval ();
11919 if (i != ((long int) (sizeof (ac__type_sizeof_))))
11920 return 1;
11921 fprintf (f, "%ld\n", i);
11923 else
11925 unsigned long int i = ulongval ();
11926 if (i != ((long int) (sizeof (ac__type_sizeof_))))
11927 return 1;
11928 fprintf (f, "%lu\n", i);
11930 return ferror (f) || fclose (f) != 0;
11933 return 0;
11935 _ACEOF
11936 rm -f conftest$ac_exeext
11937 if { (ac_try="$ac_link"
11938 case "(($ac_try" in
11939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11940 *) ac_try_echo=$ac_try;;
11941 esac
11942 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11943 (eval "$ac_link") 2>&5
11944 ac_status=$?
11945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11946 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11947 { (case "(($ac_try" in
11948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11949 *) ac_try_echo=$ac_try;;
11950 esac
11951 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11952 (eval "$ac_try") 2>&5
11953 ac_status=$?
11954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11955 (exit $ac_status); }; }; then
11956 ac_cv_sizeof_long_double=`cat conftest.val`
11957 else
11958 echo "$as_me: program exited with status $ac_status" >&5
11959 echo "$as_me: failed program was:" >&5
11960 sed 's/^/| /' conftest.$ac_ext >&5
11962 ( exit $ac_status )
11963 if test "$ac_cv_type_long_double" = yes; then
11964 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long double)
11965 See \`config.log' for more details." >&5
11966 echo "$as_me: error: cannot compute sizeof (long double)
11967 See \`config.log' for more details." >&2;}
11968 { (exit 77); exit 77; }; }
11969 else
11970 ac_cv_sizeof_long_double=0
11973 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11975 rm -f conftest.val
11977 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_double" >&5
11978 echo "${ECHO_T}$ac_cv_sizeof_long_double" >&6; }
11982 cat >>confdefs.h <<_ACEOF
11983 #define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double
11984 _ACEOF
11990 { echo "$as_me:$LINENO: checking for _Bool support" >&5
11991 echo $ECHO_N "checking for _Bool support... $ECHO_C" >&6; }
11992 have_c99_bool=no
11993 cat >conftest.$ac_ext <<_ACEOF
11994 /* confdefs.h. */
11995 _ACEOF
11996 cat confdefs.h >>conftest.$ac_ext
11997 cat >>conftest.$ac_ext <<_ACEOF
11998 /* end confdefs.h. */
12001 main ()
12003 _Bool x; x = (_Bool)0;
12005 return 0;
12007 _ACEOF
12008 rm -f conftest.$ac_objext
12009 if { (ac_try="$ac_compile"
12010 case "(($ac_try" in
12011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12012 *) ac_try_echo=$ac_try;;
12013 esac
12014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12015 (eval "$ac_compile") 2>conftest.er1
12016 ac_status=$?
12017 grep -v '^ *+' conftest.er1 >conftest.err
12018 rm -f conftest.er1
12019 cat conftest.err >&5
12020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12021 (exit $ac_status); } && {
12022 test -z "$ac_c_werror_flag" ||
12023 test ! -s conftest.err
12024 } && test -s conftest.$ac_objext; then
12027 cat >>confdefs.h <<\_ACEOF
12028 #define HAVE_C99_BOOL 1
12029 _ACEOF
12031 have_c99_bool=yes
12033 else
12034 echo "$as_me: failed program was:" >&5
12035 sed 's/^/| /' conftest.$ac_ext >&5
12040 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12041 { echo "$as_me:$LINENO: result: $have_c99_bool" >&5
12042 echo "${ECHO_T}$have_c99_bool" >&6; }
12043 if test "$have_c99_bool" = yes ; then
12044 { echo "$as_me:$LINENO: checking for _Bool" >&5
12045 echo $ECHO_N "checking for _Bool... $ECHO_C" >&6; }
12046 if test "${ac_cv_type__Bool+set}" = set; then
12047 echo $ECHO_N "(cached) $ECHO_C" >&6
12048 else
12049 cat >conftest.$ac_ext <<_ACEOF
12050 /* confdefs.h. */
12051 _ACEOF
12052 cat confdefs.h >>conftest.$ac_ext
12053 cat >>conftest.$ac_ext <<_ACEOF
12054 /* end confdefs.h. */
12055 $ac_includes_default
12056 typedef _Bool ac__type_new_;
12058 main ()
12060 if ((ac__type_new_ *) 0)
12061 return 0;
12062 if (sizeof (ac__type_new_))
12063 return 0;
12065 return 0;
12067 _ACEOF
12068 rm -f conftest.$ac_objext
12069 if { (ac_try="$ac_compile"
12070 case "(($ac_try" in
12071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12072 *) ac_try_echo=$ac_try;;
12073 esac
12074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12075 (eval "$ac_compile") 2>conftest.er1
12076 ac_status=$?
12077 grep -v '^ *+' conftest.er1 >conftest.err
12078 rm -f conftest.er1
12079 cat conftest.err >&5
12080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12081 (exit $ac_status); } && {
12082 test -z "$ac_c_werror_flag" ||
12083 test ! -s conftest.err
12084 } && test -s conftest.$ac_objext; then
12085 ac_cv_type__Bool=yes
12086 else
12087 echo "$as_me: failed program was:" >&5
12088 sed 's/^/| /' conftest.$ac_ext >&5
12090 ac_cv_type__Bool=no
12093 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12095 { echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5
12096 echo "${ECHO_T}$ac_cv_type__Bool" >&6; }
12098 # The cast to long int works around a bug in the HP C Compiler
12099 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12100 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12101 # This bug is HP SR number 8606223364.
12102 { echo "$as_me:$LINENO: checking size of _Bool" >&5
12103 echo $ECHO_N "checking size of _Bool... $ECHO_C" >&6; }
12104 if test "${ac_cv_sizeof__Bool+set}" = set; then
12105 echo $ECHO_N "(cached) $ECHO_C" >&6
12106 else
12107 if test "$cross_compiling" = yes; then
12108 # Depending upon the size, compute the lo and hi bounds.
12109 cat >conftest.$ac_ext <<_ACEOF
12110 /* confdefs.h. */
12111 _ACEOF
12112 cat confdefs.h >>conftest.$ac_ext
12113 cat >>conftest.$ac_ext <<_ACEOF
12114 /* end confdefs.h. */
12115 $ac_includes_default
12116 typedef _Bool ac__type_sizeof_;
12118 main ()
12120 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
12121 test_array [0] = 0
12124 return 0;
12126 _ACEOF
12127 rm -f conftest.$ac_objext
12128 if { (ac_try="$ac_compile"
12129 case "(($ac_try" in
12130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12131 *) ac_try_echo=$ac_try;;
12132 esac
12133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12134 (eval "$ac_compile") 2>conftest.er1
12135 ac_status=$?
12136 grep -v '^ *+' conftest.er1 >conftest.err
12137 rm -f conftest.er1
12138 cat conftest.err >&5
12139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12140 (exit $ac_status); } && {
12141 test -z "$ac_c_werror_flag" ||
12142 test ! -s conftest.err
12143 } && test -s conftest.$ac_objext; then
12144 ac_lo=0 ac_mid=0
12145 while :; do
12146 cat >conftest.$ac_ext <<_ACEOF
12147 /* confdefs.h. */
12148 _ACEOF
12149 cat confdefs.h >>conftest.$ac_ext
12150 cat >>conftest.$ac_ext <<_ACEOF
12151 /* end confdefs.h. */
12152 $ac_includes_default
12153 typedef _Bool ac__type_sizeof_;
12155 main ()
12157 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
12158 test_array [0] = 0
12161 return 0;
12163 _ACEOF
12164 rm -f conftest.$ac_objext
12165 if { (ac_try="$ac_compile"
12166 case "(($ac_try" in
12167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12168 *) ac_try_echo=$ac_try;;
12169 esac
12170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12171 (eval "$ac_compile") 2>conftest.er1
12172 ac_status=$?
12173 grep -v '^ *+' conftest.er1 >conftest.err
12174 rm -f conftest.er1
12175 cat conftest.err >&5
12176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12177 (exit $ac_status); } && {
12178 test -z "$ac_c_werror_flag" ||
12179 test ! -s conftest.err
12180 } && test -s conftest.$ac_objext; then
12181 ac_hi=$ac_mid; break
12182 else
12183 echo "$as_me: failed program was:" >&5
12184 sed 's/^/| /' conftest.$ac_ext >&5
12186 ac_lo=`expr $ac_mid + 1`
12187 if test $ac_lo -le $ac_mid; then
12188 ac_lo= ac_hi=
12189 break
12191 ac_mid=`expr 2 '*' $ac_mid + 1`
12194 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12195 done
12196 else
12197 echo "$as_me: failed program was:" >&5
12198 sed 's/^/| /' conftest.$ac_ext >&5
12200 cat >conftest.$ac_ext <<_ACEOF
12201 /* confdefs.h. */
12202 _ACEOF
12203 cat confdefs.h >>conftest.$ac_ext
12204 cat >>conftest.$ac_ext <<_ACEOF
12205 /* end confdefs.h. */
12206 $ac_includes_default
12207 typedef _Bool ac__type_sizeof_;
12209 main ()
12211 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
12212 test_array [0] = 0
12215 return 0;
12217 _ACEOF
12218 rm -f conftest.$ac_objext
12219 if { (ac_try="$ac_compile"
12220 case "(($ac_try" in
12221 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12222 *) ac_try_echo=$ac_try;;
12223 esac
12224 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12225 (eval "$ac_compile") 2>conftest.er1
12226 ac_status=$?
12227 grep -v '^ *+' conftest.er1 >conftest.err
12228 rm -f conftest.er1
12229 cat conftest.err >&5
12230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12231 (exit $ac_status); } && {
12232 test -z "$ac_c_werror_flag" ||
12233 test ! -s conftest.err
12234 } && test -s conftest.$ac_objext; then
12235 ac_hi=-1 ac_mid=-1
12236 while :; do
12237 cat >conftest.$ac_ext <<_ACEOF
12238 /* confdefs.h. */
12239 _ACEOF
12240 cat confdefs.h >>conftest.$ac_ext
12241 cat >>conftest.$ac_ext <<_ACEOF
12242 /* end confdefs.h. */
12243 $ac_includes_default
12244 typedef _Bool ac__type_sizeof_;
12246 main ()
12248 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
12249 test_array [0] = 0
12252 return 0;
12254 _ACEOF
12255 rm -f conftest.$ac_objext
12256 if { (ac_try="$ac_compile"
12257 case "(($ac_try" in
12258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12259 *) ac_try_echo=$ac_try;;
12260 esac
12261 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12262 (eval "$ac_compile") 2>conftest.er1
12263 ac_status=$?
12264 grep -v '^ *+' conftest.er1 >conftest.err
12265 rm -f conftest.er1
12266 cat conftest.err >&5
12267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12268 (exit $ac_status); } && {
12269 test -z "$ac_c_werror_flag" ||
12270 test ! -s conftest.err
12271 } && test -s conftest.$ac_objext; then
12272 ac_lo=$ac_mid; break
12273 else
12274 echo "$as_me: failed program was:" >&5
12275 sed 's/^/| /' conftest.$ac_ext >&5
12277 ac_hi=`expr '(' $ac_mid ')' - 1`
12278 if test $ac_mid -le $ac_hi; then
12279 ac_lo= ac_hi=
12280 break
12282 ac_mid=`expr 2 '*' $ac_mid`
12285 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12286 done
12287 else
12288 echo "$as_me: failed program was:" >&5
12289 sed 's/^/| /' conftest.$ac_ext >&5
12291 ac_lo= ac_hi=
12294 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12297 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12298 # Binary search between lo and hi bounds.
12299 while test "x$ac_lo" != "x$ac_hi"; do
12300 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12301 cat >conftest.$ac_ext <<_ACEOF
12302 /* confdefs.h. */
12303 _ACEOF
12304 cat confdefs.h >>conftest.$ac_ext
12305 cat >>conftest.$ac_ext <<_ACEOF
12306 /* end confdefs.h. */
12307 $ac_includes_default
12308 typedef _Bool ac__type_sizeof_;
12310 main ()
12312 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
12313 test_array [0] = 0
12316 return 0;
12318 _ACEOF
12319 rm -f conftest.$ac_objext
12320 if { (ac_try="$ac_compile"
12321 case "(($ac_try" in
12322 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12323 *) ac_try_echo=$ac_try;;
12324 esac
12325 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12326 (eval "$ac_compile") 2>conftest.er1
12327 ac_status=$?
12328 grep -v '^ *+' conftest.er1 >conftest.err
12329 rm -f conftest.er1
12330 cat conftest.err >&5
12331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12332 (exit $ac_status); } && {
12333 test -z "$ac_c_werror_flag" ||
12334 test ! -s conftest.err
12335 } && test -s conftest.$ac_objext; then
12336 ac_hi=$ac_mid
12337 else
12338 echo "$as_me: failed program was:" >&5
12339 sed 's/^/| /' conftest.$ac_ext >&5
12341 ac_lo=`expr '(' $ac_mid ')' + 1`
12344 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12345 done
12346 case $ac_lo in
12347 ?*) ac_cv_sizeof__Bool=$ac_lo;;
12348 '') if test "$ac_cv_type__Bool" = yes; then
12349 { { echo "$as_me:$LINENO: error: cannot compute sizeof (_Bool)
12350 See \`config.log' for more details." >&5
12351 echo "$as_me: error: cannot compute sizeof (_Bool)
12352 See \`config.log' for more details." >&2;}
12353 { (exit 77); exit 77; }; }
12354 else
12355 ac_cv_sizeof__Bool=0
12356 fi ;;
12357 esac
12358 else
12359 cat >conftest.$ac_ext <<_ACEOF
12360 /* confdefs.h. */
12361 _ACEOF
12362 cat confdefs.h >>conftest.$ac_ext
12363 cat >>conftest.$ac_ext <<_ACEOF
12364 /* end confdefs.h. */
12365 $ac_includes_default
12366 typedef _Bool ac__type_sizeof_;
12367 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
12368 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
12369 #include <stdio.h>
12370 #include <stdlib.h>
12372 main ()
12375 FILE *f = fopen ("conftest.val", "w");
12376 if (! f)
12377 return 1;
12378 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
12380 long int i = longval ();
12381 if (i != ((long int) (sizeof (ac__type_sizeof_))))
12382 return 1;
12383 fprintf (f, "%ld\n", i);
12385 else
12387 unsigned long int i = ulongval ();
12388 if (i != ((long int) (sizeof (ac__type_sizeof_))))
12389 return 1;
12390 fprintf (f, "%lu\n", i);
12392 return ferror (f) || fclose (f) != 0;
12395 return 0;
12397 _ACEOF
12398 rm -f conftest$ac_exeext
12399 if { (ac_try="$ac_link"
12400 case "(($ac_try" in
12401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12402 *) ac_try_echo=$ac_try;;
12403 esac
12404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12405 (eval "$ac_link") 2>&5
12406 ac_status=$?
12407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12408 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12409 { (case "(($ac_try" in
12410 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12411 *) ac_try_echo=$ac_try;;
12412 esac
12413 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12414 (eval "$ac_try") 2>&5
12415 ac_status=$?
12416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12417 (exit $ac_status); }; }; then
12418 ac_cv_sizeof__Bool=`cat conftest.val`
12419 else
12420 echo "$as_me: program exited with status $ac_status" >&5
12421 echo "$as_me: failed program was:" >&5
12422 sed 's/^/| /' conftest.$ac_ext >&5
12424 ( exit $ac_status )
12425 if test "$ac_cv_type__Bool" = yes; then
12426 { { echo "$as_me:$LINENO: error: cannot compute sizeof (_Bool)
12427 See \`config.log' for more details." >&5
12428 echo "$as_me: error: cannot compute sizeof (_Bool)
12429 See \`config.log' for more details." >&2;}
12430 { (exit 77); exit 77; }; }
12431 else
12432 ac_cv_sizeof__Bool=0
12435 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12437 rm -f conftest.val
12439 { echo "$as_me:$LINENO: result: $ac_cv_sizeof__Bool" >&5
12440 echo "${ECHO_T}$ac_cv_sizeof__Bool" >&6; }
12444 cat >>confdefs.h <<_ACEOF
12445 #define SIZEOF__BOOL $ac_cv_sizeof__Bool
12446 _ACEOF
12451 { echo "$as_me:$LINENO: checking for uintptr_t" >&5
12452 echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6; }
12453 if test "${ac_cv_type_uintptr_t+set}" = set; then
12454 echo $ECHO_N "(cached) $ECHO_C" >&6
12455 else
12456 cat >conftest.$ac_ext <<_ACEOF
12457 /* confdefs.h. */
12458 _ACEOF
12459 cat confdefs.h >>conftest.$ac_ext
12460 cat >>conftest.$ac_ext <<_ACEOF
12461 /* end confdefs.h. */
12462 #ifdef HAVE_STDINT_H
12463 #include <stdint.h>
12464 #endif
12466 typedef uintptr_t ac__type_new_;
12468 main ()
12470 if ((ac__type_new_ *) 0)
12471 return 0;
12472 if (sizeof (ac__type_new_))
12473 return 0;
12475 return 0;
12477 _ACEOF
12478 rm -f conftest.$ac_objext
12479 if { (ac_try="$ac_compile"
12480 case "(($ac_try" in
12481 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12482 *) ac_try_echo=$ac_try;;
12483 esac
12484 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12485 (eval "$ac_compile") 2>conftest.er1
12486 ac_status=$?
12487 grep -v '^ *+' conftest.er1 >conftest.err
12488 rm -f conftest.er1
12489 cat conftest.err >&5
12490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12491 (exit $ac_status); } && {
12492 test -z "$ac_c_werror_flag" ||
12493 test ! -s conftest.err
12494 } && test -s conftest.$ac_objext; then
12495 ac_cv_type_uintptr_t=yes
12496 else
12497 echo "$as_me: failed program was:" >&5
12498 sed 's/^/| /' conftest.$ac_ext >&5
12500 ac_cv_type_uintptr_t=no
12503 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12505 { echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
12506 echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6; }
12507 if test $ac_cv_type_uintptr_t = yes; then
12509 cat >>confdefs.h <<_ACEOF
12510 #define HAVE_UINTPTR_T 1
12511 _ACEOF
12513 { echo "$as_me:$LINENO: checking for uintptr_t" >&5
12514 echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6; }
12515 if test "${ac_cv_type_uintptr_t+set}" = set; then
12516 echo $ECHO_N "(cached) $ECHO_C" >&6
12517 else
12518 cat >conftest.$ac_ext <<_ACEOF
12519 /* confdefs.h. */
12520 _ACEOF
12521 cat confdefs.h >>conftest.$ac_ext
12522 cat >>conftest.$ac_ext <<_ACEOF
12523 /* end confdefs.h. */
12524 $ac_includes_default
12525 typedef uintptr_t ac__type_new_;
12527 main ()
12529 if ((ac__type_new_ *) 0)
12530 return 0;
12531 if (sizeof (ac__type_new_))
12532 return 0;
12534 return 0;
12536 _ACEOF
12537 rm -f conftest.$ac_objext
12538 if { (ac_try="$ac_compile"
12539 case "(($ac_try" in
12540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12541 *) ac_try_echo=$ac_try;;
12542 esac
12543 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12544 (eval "$ac_compile") 2>conftest.er1
12545 ac_status=$?
12546 grep -v '^ *+' conftest.er1 >conftest.err
12547 rm -f conftest.er1
12548 cat conftest.err >&5
12549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12550 (exit $ac_status); } && {
12551 test -z "$ac_c_werror_flag" ||
12552 test ! -s conftest.err
12553 } && test -s conftest.$ac_objext; then
12554 ac_cv_type_uintptr_t=yes
12555 else
12556 echo "$as_me: failed program was:" >&5
12557 sed 's/^/| /' conftest.$ac_ext >&5
12559 ac_cv_type_uintptr_t=no
12562 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12564 { echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
12565 echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6; }
12567 # The cast to long int works around a bug in the HP C Compiler
12568 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12569 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12570 # This bug is HP SR number 8606223364.
12571 { echo "$as_me:$LINENO: checking size of uintptr_t" >&5
12572 echo $ECHO_N "checking size of uintptr_t... $ECHO_C" >&6; }
12573 if test "${ac_cv_sizeof_uintptr_t+set}" = set; then
12574 echo $ECHO_N "(cached) $ECHO_C" >&6
12575 else
12576 if test "$cross_compiling" = yes; then
12577 # Depending upon the size, compute the lo and hi bounds.
12578 cat >conftest.$ac_ext <<_ACEOF
12579 /* confdefs.h. */
12580 _ACEOF
12581 cat confdefs.h >>conftest.$ac_ext
12582 cat >>conftest.$ac_ext <<_ACEOF
12583 /* end confdefs.h. */
12584 $ac_includes_default
12585 typedef uintptr_t ac__type_sizeof_;
12587 main ()
12589 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
12590 test_array [0] = 0
12593 return 0;
12595 _ACEOF
12596 rm -f conftest.$ac_objext
12597 if { (ac_try="$ac_compile"
12598 case "(($ac_try" in
12599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12600 *) ac_try_echo=$ac_try;;
12601 esac
12602 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12603 (eval "$ac_compile") 2>conftest.er1
12604 ac_status=$?
12605 grep -v '^ *+' conftest.er1 >conftest.err
12606 rm -f conftest.er1
12607 cat conftest.err >&5
12608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12609 (exit $ac_status); } && {
12610 test -z "$ac_c_werror_flag" ||
12611 test ! -s conftest.err
12612 } && test -s conftest.$ac_objext; then
12613 ac_lo=0 ac_mid=0
12614 while :; do
12615 cat >conftest.$ac_ext <<_ACEOF
12616 /* confdefs.h. */
12617 _ACEOF
12618 cat confdefs.h >>conftest.$ac_ext
12619 cat >>conftest.$ac_ext <<_ACEOF
12620 /* end confdefs.h. */
12621 $ac_includes_default
12622 typedef uintptr_t ac__type_sizeof_;
12624 main ()
12626 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
12627 test_array [0] = 0
12630 return 0;
12632 _ACEOF
12633 rm -f conftest.$ac_objext
12634 if { (ac_try="$ac_compile"
12635 case "(($ac_try" in
12636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12637 *) ac_try_echo=$ac_try;;
12638 esac
12639 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12640 (eval "$ac_compile") 2>conftest.er1
12641 ac_status=$?
12642 grep -v '^ *+' conftest.er1 >conftest.err
12643 rm -f conftest.er1
12644 cat conftest.err >&5
12645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12646 (exit $ac_status); } && {
12647 test -z "$ac_c_werror_flag" ||
12648 test ! -s conftest.err
12649 } && test -s conftest.$ac_objext; then
12650 ac_hi=$ac_mid; break
12651 else
12652 echo "$as_me: failed program was:" >&5
12653 sed 's/^/| /' conftest.$ac_ext >&5
12655 ac_lo=`expr $ac_mid + 1`
12656 if test $ac_lo -le $ac_mid; then
12657 ac_lo= ac_hi=
12658 break
12660 ac_mid=`expr 2 '*' $ac_mid + 1`
12663 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12664 done
12665 else
12666 echo "$as_me: failed program was:" >&5
12667 sed 's/^/| /' conftest.$ac_ext >&5
12669 cat >conftest.$ac_ext <<_ACEOF
12670 /* confdefs.h. */
12671 _ACEOF
12672 cat confdefs.h >>conftest.$ac_ext
12673 cat >>conftest.$ac_ext <<_ACEOF
12674 /* end confdefs.h. */
12675 $ac_includes_default
12676 typedef uintptr_t ac__type_sizeof_;
12678 main ()
12680 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
12681 test_array [0] = 0
12684 return 0;
12686 _ACEOF
12687 rm -f conftest.$ac_objext
12688 if { (ac_try="$ac_compile"
12689 case "(($ac_try" in
12690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12691 *) ac_try_echo=$ac_try;;
12692 esac
12693 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12694 (eval "$ac_compile") 2>conftest.er1
12695 ac_status=$?
12696 grep -v '^ *+' conftest.er1 >conftest.err
12697 rm -f conftest.er1
12698 cat conftest.err >&5
12699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12700 (exit $ac_status); } && {
12701 test -z "$ac_c_werror_flag" ||
12702 test ! -s conftest.err
12703 } && test -s conftest.$ac_objext; then
12704 ac_hi=-1 ac_mid=-1
12705 while :; do
12706 cat >conftest.$ac_ext <<_ACEOF
12707 /* confdefs.h. */
12708 _ACEOF
12709 cat confdefs.h >>conftest.$ac_ext
12710 cat >>conftest.$ac_ext <<_ACEOF
12711 /* end confdefs.h. */
12712 $ac_includes_default
12713 typedef uintptr_t ac__type_sizeof_;
12715 main ()
12717 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
12718 test_array [0] = 0
12721 return 0;
12723 _ACEOF
12724 rm -f conftest.$ac_objext
12725 if { (ac_try="$ac_compile"
12726 case "(($ac_try" in
12727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12728 *) ac_try_echo=$ac_try;;
12729 esac
12730 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12731 (eval "$ac_compile") 2>conftest.er1
12732 ac_status=$?
12733 grep -v '^ *+' conftest.er1 >conftest.err
12734 rm -f conftest.er1
12735 cat conftest.err >&5
12736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12737 (exit $ac_status); } && {
12738 test -z "$ac_c_werror_flag" ||
12739 test ! -s conftest.err
12740 } && test -s conftest.$ac_objext; then
12741 ac_lo=$ac_mid; break
12742 else
12743 echo "$as_me: failed program was:" >&5
12744 sed 's/^/| /' conftest.$ac_ext >&5
12746 ac_hi=`expr '(' $ac_mid ')' - 1`
12747 if test $ac_mid -le $ac_hi; then
12748 ac_lo= ac_hi=
12749 break
12751 ac_mid=`expr 2 '*' $ac_mid`
12754 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12755 done
12756 else
12757 echo "$as_me: failed program was:" >&5
12758 sed 's/^/| /' conftest.$ac_ext >&5
12760 ac_lo= ac_hi=
12763 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12766 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12767 # Binary search between lo and hi bounds.
12768 while test "x$ac_lo" != "x$ac_hi"; do
12769 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12770 cat >conftest.$ac_ext <<_ACEOF
12771 /* confdefs.h. */
12772 _ACEOF
12773 cat confdefs.h >>conftest.$ac_ext
12774 cat >>conftest.$ac_ext <<_ACEOF
12775 /* end confdefs.h. */
12776 $ac_includes_default
12777 typedef uintptr_t ac__type_sizeof_;
12779 main ()
12781 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
12782 test_array [0] = 0
12785 return 0;
12787 _ACEOF
12788 rm -f conftest.$ac_objext
12789 if { (ac_try="$ac_compile"
12790 case "(($ac_try" in
12791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12792 *) ac_try_echo=$ac_try;;
12793 esac
12794 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12795 (eval "$ac_compile") 2>conftest.er1
12796 ac_status=$?
12797 grep -v '^ *+' conftest.er1 >conftest.err
12798 rm -f conftest.er1
12799 cat conftest.err >&5
12800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12801 (exit $ac_status); } && {
12802 test -z "$ac_c_werror_flag" ||
12803 test ! -s conftest.err
12804 } && test -s conftest.$ac_objext; then
12805 ac_hi=$ac_mid
12806 else
12807 echo "$as_me: failed program was:" >&5
12808 sed 's/^/| /' conftest.$ac_ext >&5
12810 ac_lo=`expr '(' $ac_mid ')' + 1`
12813 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12814 done
12815 case $ac_lo in
12816 ?*) ac_cv_sizeof_uintptr_t=$ac_lo;;
12817 '') if test "$ac_cv_type_uintptr_t" = yes; then
12818 { { echo "$as_me:$LINENO: error: cannot compute sizeof (uintptr_t)
12819 See \`config.log' for more details." >&5
12820 echo "$as_me: error: cannot compute sizeof (uintptr_t)
12821 See \`config.log' for more details." >&2;}
12822 { (exit 77); exit 77; }; }
12823 else
12824 ac_cv_sizeof_uintptr_t=0
12825 fi ;;
12826 esac
12827 else
12828 cat >conftest.$ac_ext <<_ACEOF
12829 /* confdefs.h. */
12830 _ACEOF
12831 cat confdefs.h >>conftest.$ac_ext
12832 cat >>conftest.$ac_ext <<_ACEOF
12833 /* end confdefs.h. */
12834 $ac_includes_default
12835 typedef uintptr_t ac__type_sizeof_;
12836 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
12837 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
12838 #include <stdio.h>
12839 #include <stdlib.h>
12841 main ()
12844 FILE *f = fopen ("conftest.val", "w");
12845 if (! f)
12846 return 1;
12847 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
12849 long int i = longval ();
12850 if (i != ((long int) (sizeof (ac__type_sizeof_))))
12851 return 1;
12852 fprintf (f, "%ld\n", i);
12854 else
12856 unsigned long int i = ulongval ();
12857 if (i != ((long int) (sizeof (ac__type_sizeof_))))
12858 return 1;
12859 fprintf (f, "%lu\n", i);
12861 return ferror (f) || fclose (f) != 0;
12864 return 0;
12866 _ACEOF
12867 rm -f conftest$ac_exeext
12868 if { (ac_try="$ac_link"
12869 case "(($ac_try" in
12870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12871 *) ac_try_echo=$ac_try;;
12872 esac
12873 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12874 (eval "$ac_link") 2>&5
12875 ac_status=$?
12876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12877 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12878 { (case "(($ac_try" in
12879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12880 *) ac_try_echo=$ac_try;;
12881 esac
12882 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12883 (eval "$ac_try") 2>&5
12884 ac_status=$?
12885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12886 (exit $ac_status); }; }; then
12887 ac_cv_sizeof_uintptr_t=`cat conftest.val`
12888 else
12889 echo "$as_me: program exited with status $ac_status" >&5
12890 echo "$as_me: failed program was:" >&5
12891 sed 's/^/| /' conftest.$ac_ext >&5
12893 ( exit $ac_status )
12894 if test "$ac_cv_type_uintptr_t" = yes; then
12895 { { echo "$as_me:$LINENO: error: cannot compute sizeof (uintptr_t)
12896 See \`config.log' for more details." >&5
12897 echo "$as_me: error: cannot compute sizeof (uintptr_t)
12898 See \`config.log' for more details." >&2;}
12899 { (exit 77); exit 77; }; }
12900 else
12901 ac_cv_sizeof_uintptr_t=0
12904 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12906 rm -f conftest.val
12908 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_uintptr_t" >&5
12909 echo "${ECHO_T}$ac_cv_sizeof_uintptr_t" >&6; }
12913 cat >>confdefs.h <<_ACEOF
12914 #define SIZEOF_UINTPTR_T $ac_cv_sizeof_uintptr_t
12915 _ACEOF
12922 # Hmph. AC_CHECK_SIZEOF() doesn't include <sys/types.h>.
12923 { echo "$as_me:$LINENO: checking size of off_t" >&5
12924 echo $ECHO_N "checking size of off_t... $ECHO_C" >&6; }
12925 if test "${ac_cv_sizeof_off_t+set}" = set; then
12926 echo $ECHO_N "(cached) $ECHO_C" >&6
12927 else
12928 if test "$cross_compiling" = yes; then
12929 ac_cv_sizeof_off_t=4
12930 else
12931 cat >conftest.$ac_ext <<_ACEOF
12932 /* confdefs.h. */
12933 _ACEOF
12934 cat confdefs.h >>conftest.$ac_ext
12935 cat >>conftest.$ac_ext <<_ACEOF
12936 /* end confdefs.h. */
12937 #include <stdio.h>
12938 #include <sys/types.h>
12939 main()
12941 FILE *f=fopen("conftestval", "w");
12942 if (!f) exit(1);
12943 fprintf(f, "%d\n", sizeof(off_t));
12944 exit(0);
12946 _ACEOF
12947 rm -f conftest$ac_exeext
12948 if { (ac_try="$ac_link"
12949 case "(($ac_try" in
12950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12951 *) ac_try_echo=$ac_try;;
12952 esac
12953 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12954 (eval "$ac_link") 2>&5
12955 ac_status=$?
12956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12957 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12958 { (case "(($ac_try" in
12959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12960 *) ac_try_echo=$ac_try;;
12961 esac
12962 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12963 (eval "$ac_try") 2>&5
12964 ac_status=$?
12965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12966 (exit $ac_status); }; }; then
12967 ac_cv_sizeof_off_t=`cat conftestval`
12968 else
12969 echo "$as_me: program exited with status $ac_status" >&5
12970 echo "$as_me: failed program was:" >&5
12971 sed 's/^/| /' conftest.$ac_ext >&5
12973 ( exit $ac_status )
12974 ac_cv_sizeof_off_t=0
12976 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12983 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_off_t" >&5
12984 echo "${ECHO_T}$ac_cv_sizeof_off_t" >&6; }
12986 cat >>confdefs.h <<_ACEOF
12987 #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
12988 _ACEOF
12991 { echo "$as_me:$LINENO: checking whether to enable large file support" >&5
12992 echo $ECHO_N "checking whether to enable large file support... $ECHO_C" >&6; }
12993 if test "$have_long_long" = yes -a \
12994 "$ac_cv_sizeof_off_t" -gt "$ac_cv_sizeof_long" -a \
12995 "$ac_cv_sizeof_long_long" -ge "$ac_cv_sizeof_off_t"; then
12997 cat >>confdefs.h <<\_ACEOF
12998 #define HAVE_LARGEFILE_SUPPORT 1
12999 _ACEOF
13001 { echo "$as_me:$LINENO: result: yes" >&5
13002 echo "${ECHO_T}yes" >&6; }
13003 else
13004 { echo "$as_me:$LINENO: result: no" >&5
13005 echo "${ECHO_T}no" >&6; }
13008 # AC_CHECK_SIZEOF() doesn't include <time.h>.
13009 { echo "$as_me:$LINENO: checking size of time_t" >&5
13010 echo $ECHO_N "checking size of time_t... $ECHO_C" >&6; }
13011 if test "${ac_cv_sizeof_time_t+set}" = set; then
13012 echo $ECHO_N "(cached) $ECHO_C" >&6
13013 else
13014 if test "$cross_compiling" = yes; then
13015 ac_cv_sizeof_time_t=4
13016 else
13017 cat >conftest.$ac_ext <<_ACEOF
13018 /* confdefs.h. */
13019 _ACEOF
13020 cat confdefs.h >>conftest.$ac_ext
13021 cat >>conftest.$ac_ext <<_ACEOF
13022 /* end confdefs.h. */
13023 #include <stdio.h>
13024 #include <time.h>
13025 main()
13027 FILE *f=fopen("conftestval", "w");
13028 if (!f) exit(1);
13029 fprintf(f, "%d\n", sizeof(time_t));
13030 exit(0);
13032 _ACEOF
13033 rm -f conftest$ac_exeext
13034 if { (ac_try="$ac_link"
13035 case "(($ac_try" in
13036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13037 *) ac_try_echo=$ac_try;;
13038 esac
13039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13040 (eval "$ac_link") 2>&5
13041 ac_status=$?
13042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13043 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13044 { (case "(($ac_try" in
13045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13046 *) ac_try_echo=$ac_try;;
13047 esac
13048 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13049 (eval "$ac_try") 2>&5
13050 ac_status=$?
13051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13052 (exit $ac_status); }; }; then
13053 ac_cv_sizeof_time_t=`cat conftestval`
13054 else
13055 echo "$as_me: program exited with status $ac_status" >&5
13056 echo "$as_me: failed program was:" >&5
13057 sed 's/^/| /' conftest.$ac_ext >&5
13059 ( exit $ac_status )
13060 ac_cv_sizeof_time_t=0
13062 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13069 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_time_t" >&5
13070 echo "${ECHO_T}$ac_cv_sizeof_time_t" >&6; }
13072 cat >>confdefs.h <<_ACEOF
13073 #define SIZEOF_TIME_T $ac_cv_sizeof_time_t
13074 _ACEOF
13078 # if have pthread_t then define SIZEOF_PTHREAD_T
13079 ac_save_cc="$CC"
13080 if test "$ac_cv_kpthread" = "yes"
13081 then CC="$CC -Kpthread"
13082 elif test "$ac_cv_kthread" = "yes"
13083 then CC="$CC -Kthread"
13084 elif test "$ac_cv_pthread" = "yes"
13085 then CC="$CC -pthread"
13087 { echo "$as_me:$LINENO: checking for pthread_t" >&5
13088 echo $ECHO_N "checking for pthread_t... $ECHO_C" >&6; }
13089 have_pthread_t=no
13090 cat >conftest.$ac_ext <<_ACEOF
13091 /* confdefs.h. */
13092 _ACEOF
13093 cat confdefs.h >>conftest.$ac_ext
13094 cat >>conftest.$ac_ext <<_ACEOF
13095 /* end confdefs.h. */
13096 #include <pthread.h>
13098 main ()
13100 pthread_t x; x = *(pthread_t*)0;
13102 return 0;
13104 _ACEOF
13105 rm -f conftest.$ac_objext
13106 if { (ac_try="$ac_compile"
13107 case "(($ac_try" in
13108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13109 *) ac_try_echo=$ac_try;;
13110 esac
13111 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13112 (eval "$ac_compile") 2>conftest.er1
13113 ac_status=$?
13114 grep -v '^ *+' conftest.er1 >conftest.err
13115 rm -f conftest.er1
13116 cat conftest.err >&5
13117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13118 (exit $ac_status); } && {
13119 test -z "$ac_c_werror_flag" ||
13120 test ! -s conftest.err
13121 } && test -s conftest.$ac_objext; then
13122 have_pthread_t=yes
13123 else
13124 echo "$as_me: failed program was:" >&5
13125 sed 's/^/| /' conftest.$ac_ext >&5
13130 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13131 { echo "$as_me:$LINENO: result: $have_pthread_t" >&5
13132 echo "${ECHO_T}$have_pthread_t" >&6; }
13133 if test "$have_pthread_t" = yes ; then
13134 # AC_CHECK_SIZEOF() doesn't include <pthread.h>.
13135 { echo "$as_me:$LINENO: checking size of pthread_t" >&5
13136 echo $ECHO_N "checking size of pthread_t... $ECHO_C" >&6; }
13137 if test "${ac_cv_sizeof_pthread_t+set}" = set; then
13138 echo $ECHO_N "(cached) $ECHO_C" >&6
13139 else
13140 if test "$cross_compiling" = yes; then
13141 ac_cv_sizeof_pthread_t=4
13142 else
13143 cat >conftest.$ac_ext <<_ACEOF
13144 /* confdefs.h. */
13145 _ACEOF
13146 cat confdefs.h >>conftest.$ac_ext
13147 cat >>conftest.$ac_ext <<_ACEOF
13148 /* end confdefs.h. */
13149 #include <stdio.h>
13150 #include <pthread.h>
13151 main()
13153 FILE *f=fopen("conftestval", "w");
13154 if (!f) exit(1);
13155 fprintf(f, "%d\n", sizeof(pthread_t));
13156 exit(0);
13158 _ACEOF
13159 rm -f conftest$ac_exeext
13160 if { (ac_try="$ac_link"
13161 case "(($ac_try" in
13162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13163 *) ac_try_echo=$ac_try;;
13164 esac
13165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13166 (eval "$ac_link") 2>&5
13167 ac_status=$?
13168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13169 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13170 { (case "(($ac_try" in
13171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13172 *) ac_try_echo=$ac_try;;
13173 esac
13174 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13175 (eval "$ac_try") 2>&5
13176 ac_status=$?
13177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13178 (exit $ac_status); }; }; then
13179 ac_cv_sizeof_pthread_t=`cat conftestval`
13180 else
13181 echo "$as_me: program exited with status $ac_status" >&5
13182 echo "$as_me: failed program was:" >&5
13183 sed 's/^/| /' conftest.$ac_ext >&5
13185 ( exit $ac_status )
13186 ac_cv_sizeof_pthread_t=0
13188 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13195 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_pthread_t" >&5
13196 echo "${ECHO_T}$ac_cv_sizeof_pthread_t" >&6; }
13198 cat >>confdefs.h <<_ACEOF
13199 #define SIZEOF_PTHREAD_T $ac_cv_sizeof_pthread_t
13200 _ACEOF
13203 CC="$ac_save_cc"
13208 case $ac_sys_system/$ac_sys_release in
13209 Darwin/[01567]\..*)
13210 OTHER_LIBTOOL_OPT="-prebind -seg1addr 0x10000000"
13212 Darwin/*)
13213 OTHER_LIBTOOL_OPT=""
13215 esac
13218 case $ac_sys_system/$ac_sys_release in
13219 Darwin/[01567]\..*)
13220 LIBTOOL_CRUFT="-framework System -lcc_dynamic"
13221 if test "${enable_universalsdk}"; then
13223 else
13224 LIBTOOL_CRUFT="${LIBTOOL_CRUFT} -arch_only `arch`"
13226 LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -install_name $(PYTHONFRAMEWORKINSTALLDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
13227 LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -compatibility_version $(VERSION) -current_version $(VERSION)';;
13228 Darwin/*)
13229 gcc_version=`gcc -v 2>&1 | grep version | cut -d\ -f3`
13230 if test ${gcc_version} '<' 4.0
13231 then
13232 LIBTOOL_CRUFT="-lcc_dynamic"
13233 else
13234 LIBTOOL_CRUFT=""
13236 LIBTOOL_CRUFT=$LIBTOOL_CRUFT" -lSystem -lSystemStubs -arch_only `arch`"
13237 LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -install_name $(PYTHONFRAMEWORKINSTALLDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
13238 LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -compatibility_version $(VERSION) -current_version $(VERSION)';;
13239 esac
13241 { echo "$as_me:$LINENO: checking for --enable-framework" >&5
13242 echo $ECHO_N "checking for --enable-framework... $ECHO_C" >&6; }
13243 if test "$enable_framework"
13244 then
13245 BASECFLAGS="$BASECFLAGS -fno-common -dynamic"
13246 # -F. is needed to allow linking to the framework while
13247 # in the build location.
13249 cat >>confdefs.h <<\_ACEOF
13250 #define WITH_NEXT_FRAMEWORK 1
13251 _ACEOF
13253 { echo "$as_me:$LINENO: result: yes" >&5
13254 echo "${ECHO_T}yes" >&6; }
13255 else
13256 { echo "$as_me:$LINENO: result: no" >&5
13257 echo "${ECHO_T}no" >&6; }
13260 { echo "$as_me:$LINENO: checking for dyld" >&5
13261 echo $ECHO_N "checking for dyld... $ECHO_C" >&6; }
13262 case $ac_sys_system/$ac_sys_release in
13263 Darwin/*)
13265 cat >>confdefs.h <<\_ACEOF
13266 #define WITH_DYLD 1
13267 _ACEOF
13269 { echo "$as_me:$LINENO: result: always on for Darwin" >&5
13270 echo "${ECHO_T}always on for Darwin" >&6; }
13273 { echo "$as_me:$LINENO: result: no" >&5
13274 echo "${ECHO_T}no" >&6; }
13276 esac
13278 # Set info about shared libraries.
13284 # SO is the extension of shared libraries `(including the dot!)
13285 # -- usually .so, .sl on HP-UX, .dll on Cygwin
13286 { echo "$as_me:$LINENO: checking SO" >&5
13287 echo $ECHO_N "checking SO... $ECHO_C" >&6; }
13288 if test -z "$SO"
13289 then
13290 case $ac_sys_system in
13291 hp*|HP*)
13292 case `uname -m` in
13293 ia64) SO=.so;;
13294 *) SO=.sl;;
13295 esac
13297 CYGWIN*) SO=.dll;;
13298 *) SO=.so;;
13299 esac
13300 else
13301 # this might also be a termcap variable, see #610332
13302 echo
13303 echo '====================================================================='
13304 echo '+ +'
13305 echo '+ WARNING: You have set SO in your environment. +'
13306 echo '+ Do you really mean to change the extension for shared libraries? +'
13307 echo '+ Continuing in 10 seconds to let you to ponder. +'
13308 echo '+ +'
13309 echo '====================================================================='
13310 sleep 10
13312 { echo "$as_me:$LINENO: result: $SO" >&5
13313 echo "${ECHO_T}$SO" >&6; }
13316 cat >>confdefs.h <<_ACEOF
13317 #define SHLIB_EXT "$SO"
13318 _ACEOF
13320 # LDSHARED is the ld *command* used to create shared library
13321 # -- "cc -G" on SunOS 5.x, "ld -shared" on IRIX 5
13322 # (Shared libraries in this instance are shared modules to be loaded into
13323 # Python, as opposed to building Python itself as a shared library.)
13324 { echo "$as_me:$LINENO: checking LDSHARED" >&5
13325 echo $ECHO_N "checking LDSHARED... $ECHO_C" >&6; }
13326 if test -z "$LDSHARED"
13327 then
13328 case $ac_sys_system/$ac_sys_release in
13329 AIX*)
13330 BLDSHARED="\$(srcdir)/Modules/ld_so_aix \$(CC) -bI:Modules/python.exp"
13331 LDSHARED="\$(BINLIBDEST)/config/ld_so_aix \$(CC) -bI:\$(BINLIBDEST)/config/python.exp"
13333 IRIX/5*) LDSHARED="ld -shared";;
13334 IRIX*/6*) LDSHARED="ld ${SGI_ABI} -shared -all";;
13335 SunOS/5*)
13336 if test "$GCC" = "yes"
13337 then LDSHARED='$(CC) -shared'
13338 else LDSHARED='$(CC) -G';
13339 fi ;;
13340 hp*|HP*)
13341 if test "$GCC" = "yes"
13342 then LDSHARED='$(CC) -shared'
13343 else LDSHARED='ld -b';
13344 fi ;;
13345 OSF*) LDSHARED="ld -shared -expect_unresolved \"*\"";;
13346 Darwin/1.3*)
13347 LDSHARED='$(CC) $(LDFLAGS) -bundle'
13348 if test "$enable_framework" ; then
13349 # Link against the framework. All externals should be defined.
13350 BLDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
13351 LDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
13352 else
13353 # No framework. Ignore undefined symbols, assuming they come from Python
13354 LDSHARED="$LDSHARED -undefined suppress"
13355 fi ;;
13356 Darwin/1.4*|Darwin/5.*|Darwin/6.*)
13357 LDSHARED='$(CC) $(LDFLAGS) -bundle'
13358 if test "$enable_framework" ; then
13359 # Link against the framework. All externals should be defined.
13360 BLDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
13361 LDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
13362 else
13363 # No framework, use the Python app as bundle-loader
13364 BLDSHARED="$LDSHARED "'-bundle_loader $(BUILDPYTHON)'
13365 LDSHARED="$LDSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)'
13366 fi ;;
13367 Darwin/*)
13368 # Use -undefined dynamic_lookup whenever possible (10.3 and later).
13369 # This allows an extension to be used in any Python
13371 if test ${MACOSX_DEPLOYMENT_TARGET} '>' 10.2
13372 then
13373 if test "${enable_universalsdk}"; then
13374 LDFLAGS="${UNIVERSAL_ARCH_FLAGS} -isysroot ${UNIVERSALSDK} ${LDFLAGS}"
13376 LDSHARED='$(CC) $(LDFLAGS) -bundle -undefined dynamic_lookup'
13377 BLDSHARED="$LDSHARED"
13378 else
13379 LDSHARED='$(CC) $(LDFLAGS) -bundle'
13380 if test "$enable_framework" ; then
13381 # Link against the framework. All externals should be defined.
13382 BLDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
13383 LDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
13384 else
13385 # No framework, use the Python app as bundle-loader
13386 BLDSHARED="$LDSHARED "'-bundle_loader $(BUILDPYTHON)'
13387 LDSHARED="$LDSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)'
13391 Linux*|GNU*|QNX*) LDSHARED='$(CC) -shared';;
13392 BSD/OS*/4*) LDSHARED="gcc -shared";;
13393 FreeBSD*)
13394 if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]
13395 then
13396 LDSHARED="$CC -shared ${LDFLAGS}"
13397 else
13398 LDSHARED="ld -Bshareable ${LDFLAGS}"
13399 fi;;
13400 OpenBSD*)
13401 if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]
13402 then
13403 LDSHARED='$(CC) -shared $(CCSHARED) ${LDFLAGS}'
13404 else
13405 case `uname -r` in
13406 [01].* | 2.[0-7] | 2.[0-7].*)
13407 LDSHARED="ld -Bshareable ${LDFLAGS}"
13410 LDSHARED='$(CC) -shared $(CCSHARED) ${LDFLAGS}'
13412 esac
13413 fi;;
13414 NetBSD*|DragonFly*) LDSHARED="cc -shared ${LDFLAGS}";;
13415 OpenUNIX*|UnixWare*)
13416 if test "$GCC" = "yes"
13417 then LDSHARED='$(CC) -shared'
13418 else LDSHARED='$(CC) -G'
13419 fi;;
13420 SCO_SV*) LDSHARED='$(CC) -Wl,-G,-Bexport';;
13421 Monterey*) LDSHARED="cc -G -dy -Bdynamic -Bexport -L/usr/lib/ia64l64";;
13422 CYGWIN*) LDSHARED="gcc -shared -Wl,--enable-auto-image-base";;
13423 atheos*) LDSHARED="gcc -shared";;
13424 *) LDSHARED="ld";;
13425 esac
13427 { echo "$as_me:$LINENO: result: $LDSHARED" >&5
13428 echo "${ECHO_T}$LDSHARED" >&6; }
13429 BLDSHARED=${BLDSHARED-$LDSHARED}
13430 # CCSHARED are the C *flags* used to create objects to go into a shared
13431 # library (module) -- this is only needed for a few systems
13432 { echo "$as_me:$LINENO: checking CCSHARED" >&5
13433 echo $ECHO_N "checking CCSHARED... $ECHO_C" >&6; }
13434 if test -z "$CCSHARED"
13435 then
13436 case $ac_sys_system/$ac_sys_release in
13437 SunOS*) if test "$GCC" = yes;
13438 then CCSHARED="-fPIC";
13439 elif test `uname -p` = sparc;
13440 then CCSHARED="-xcode=pic32";
13441 else CCSHARED="-Kpic";
13442 fi;;
13443 hp*|HP*) if test "$GCC" = yes;
13444 then CCSHARED="-fPIC";
13445 else CCSHARED="+z";
13446 fi;;
13447 Linux*|GNU*) CCSHARED="-fPIC";;
13448 BSD/OS*/4*) CCSHARED="-fpic";;
13449 FreeBSD*|NetBSD*|OpenBSD*|DragonFly*) CCSHARED="-fPIC";;
13450 OpenUNIX*|UnixWare*)
13451 if test "$GCC" = "yes"
13452 then CCSHARED="-fPIC"
13453 else CCSHARED="-KPIC"
13454 fi;;
13455 SCO_SV*)
13456 if test "$GCC" = "yes"
13457 then CCSHARED="-fPIC"
13458 else CCSHARED="-Kpic -belf"
13459 fi;;
13460 Monterey*) CCSHARED="-G";;
13461 IRIX*/6*) case $CC in
13462 *gcc*) CCSHARED="-shared";;
13463 *) CCSHARED="";;
13464 esac;;
13465 atheos*) CCSHARED="-fPIC";;
13466 esac
13468 { echo "$as_me:$LINENO: result: $CCSHARED" >&5
13469 echo "${ECHO_T}$CCSHARED" >&6; }
13470 # LINKFORSHARED are the flags passed to the $(CC) command that links
13471 # the python executable -- this is only needed for a few systems
13472 { echo "$as_me:$LINENO: checking LINKFORSHARED" >&5
13473 echo $ECHO_N "checking LINKFORSHARED... $ECHO_C" >&6; }
13474 if test -z "$LINKFORSHARED"
13475 then
13476 case $ac_sys_system/$ac_sys_release in
13477 AIX*) LINKFORSHARED='-Wl,-bE:Modules/python.exp -lld';;
13478 hp*|HP*)
13479 LINKFORSHARED="-Wl,-E -Wl,+s";;
13480 # LINKFORSHARED="-Wl,-E -Wl,+s -Wl,+b\$(BINLIBDEST)/lib-dynload";;
13481 BSD/OS/4*) LINKFORSHARED="-Xlinker -export-dynamic";;
13482 Linux*|GNU*) LINKFORSHARED="-Xlinker -export-dynamic";;
13483 # -u libsys_s pulls in all symbols in libsys
13484 Darwin/*)
13485 # -u _PyMac_Error is needed to pull in the mac toolbox glue,
13486 # which is
13487 # not used by the core itself but which needs to be in the core so
13488 # that dynamically loaded extension modules have access to it.
13489 # -prebind is no longer used, because it actually seems to give a
13490 # slowdown in stead of a speedup, maybe due to the large number of
13491 # dynamic loads Python does.
13493 LINKFORSHARED="$extra_undefs"
13494 if test "$enable_framework"
13495 then
13496 LINKFORSHARED="$LINKFORSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
13498 LINKFORSHARED="$LINKFORSHARED";;
13499 OpenUNIX*|UnixWare*) LINKFORSHARED="-Wl,-Bexport";;
13500 SCO_SV*) LINKFORSHARED="-Wl,-Bexport";;
13501 ReliantUNIX*) LINKFORSHARED="-W1 -Blargedynsym";;
13502 FreeBSD*|NetBSD*|OpenBSD*|DragonFly*)
13503 if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]
13504 then
13505 LINKFORSHARED="-Wl,--export-dynamic"
13506 fi;;
13507 SunOS/5*) case $CC in
13508 *gcc*)
13509 if $CC -Xlinker --help 2>&1 | grep export-dynamic >/dev/null
13510 then
13511 LINKFORSHARED="-Xlinker --export-dynamic"
13512 fi;;
13513 esac;;
13514 CYGWIN*)
13515 if test $enable_shared = "no"
13516 then
13517 LINKFORSHARED='-Wl,--out-implib=$(LDLIBRARY)'
13518 fi;;
13519 QNX*)
13520 # -Wl,-E causes the symbols to be added to the dynamic
13521 # symbol table so that they can be found when a module
13522 # is loaded. -N 2048K causes the stack size to be set
13523 # to 2048 kilobytes so that the stack doesn't overflow
13524 # when running test_compile.py.
13525 LINKFORSHARED='-Wl,-E -N 2048K';;
13526 esac
13528 { echo "$as_me:$LINENO: result: $LINKFORSHARED" >&5
13529 echo "${ECHO_T}$LINKFORSHARED" >&6; }
13533 { echo "$as_me:$LINENO: checking CFLAGSFORSHARED" >&5
13534 echo $ECHO_N "checking CFLAGSFORSHARED... $ECHO_C" >&6; }
13535 if test ! "$LIBRARY" = "$LDLIBRARY"
13536 then
13537 case $ac_sys_system in
13538 CYGWIN*)
13539 # Cygwin needs CCSHARED when building extension DLLs
13540 # but not when building the interpreter DLL.
13541 CFLAGSFORSHARED='';;
13543 CFLAGSFORSHARED='$(CCSHARED)'
13544 esac
13546 { echo "$as_me:$LINENO: result: $CFLAGSFORSHARED" >&5
13547 echo "${ECHO_T}$CFLAGSFORSHARED" >&6; }
13549 # SHLIBS are libraries (except -lc and -lm) to link to the python shared
13550 # library (with --enable-shared).
13551 # For platforms on which shared libraries are not allowed to have unresolved
13552 # symbols, this must be set to $(LIBS) (expanded by make). We do this even
13553 # if it is not required, since it creates a dependency of the shared library
13554 # to LIBS. This, in turn, means that applications linking the shared libpython
13555 # don't need to link LIBS explicitly. The default should be only changed
13556 # on systems where this approach causes problems.
13558 { echo "$as_me:$LINENO: checking SHLIBS" >&5
13559 echo $ECHO_N "checking SHLIBS... $ECHO_C" >&6; }
13560 case "$ac_sys_system" in
13562 SHLIBS='$(LIBS)';;
13563 esac
13564 { echo "$as_me:$LINENO: result: $SHLIBS" >&5
13565 echo "${ECHO_T}$SHLIBS" >&6; }
13568 # checks for libraries
13570 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
13571 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
13572 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
13573 echo $ECHO_N "(cached) $ECHO_C" >&6
13574 else
13575 ac_check_lib_save_LIBS=$LIBS
13576 LIBS="-ldl $LIBS"
13577 cat >conftest.$ac_ext <<_ACEOF
13578 /* confdefs.h. */
13579 _ACEOF
13580 cat confdefs.h >>conftest.$ac_ext
13581 cat >>conftest.$ac_ext <<_ACEOF
13582 /* end confdefs.h. */
13584 /* Override any GCC internal prototype to avoid an error.
13585 Use char because int might match the return type of a GCC
13586 builtin and then its argument prototype would still apply. */
13587 #ifdef __cplusplus
13588 extern "C"
13589 #endif
13590 char dlopen ();
13592 main ()
13594 return dlopen ();
13596 return 0;
13598 _ACEOF
13599 rm -f conftest.$ac_objext conftest$ac_exeext
13600 if { (ac_try="$ac_link"
13601 case "(($ac_try" in
13602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13603 *) ac_try_echo=$ac_try;;
13604 esac
13605 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13606 (eval "$ac_link") 2>conftest.er1
13607 ac_status=$?
13608 grep -v '^ *+' conftest.er1 >conftest.err
13609 rm -f conftest.er1
13610 cat conftest.err >&5
13611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13612 (exit $ac_status); } && {
13613 test -z "$ac_c_werror_flag" ||
13614 test ! -s conftest.err
13615 } && test -s conftest$ac_exeext &&
13616 $as_test_x conftest$ac_exeext; then
13617 ac_cv_lib_dl_dlopen=yes
13618 else
13619 echo "$as_me: failed program was:" >&5
13620 sed 's/^/| /' conftest.$ac_ext >&5
13622 ac_cv_lib_dl_dlopen=no
13625 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13626 conftest$ac_exeext conftest.$ac_ext
13627 LIBS=$ac_check_lib_save_LIBS
13629 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
13630 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
13631 if test $ac_cv_lib_dl_dlopen = yes; then
13632 cat >>confdefs.h <<_ACEOF
13633 #define HAVE_LIBDL 1
13634 _ACEOF
13636 LIBS="-ldl $LIBS"
13639 # Dynamic linking for SunOS/Solaris and SYSV
13641 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
13642 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
13643 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
13644 echo $ECHO_N "(cached) $ECHO_C" >&6
13645 else
13646 ac_check_lib_save_LIBS=$LIBS
13647 LIBS="-ldld $LIBS"
13648 cat >conftest.$ac_ext <<_ACEOF
13649 /* confdefs.h. */
13650 _ACEOF
13651 cat confdefs.h >>conftest.$ac_ext
13652 cat >>conftest.$ac_ext <<_ACEOF
13653 /* end confdefs.h. */
13655 /* Override any GCC internal prototype to avoid an error.
13656 Use char because int might match the return type of a GCC
13657 builtin and then its argument prototype would still apply. */
13658 #ifdef __cplusplus
13659 extern "C"
13660 #endif
13661 char shl_load ();
13663 main ()
13665 return shl_load ();
13667 return 0;
13669 _ACEOF
13670 rm -f conftest.$ac_objext conftest$ac_exeext
13671 if { (ac_try="$ac_link"
13672 case "(($ac_try" in
13673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13674 *) ac_try_echo=$ac_try;;
13675 esac
13676 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13677 (eval "$ac_link") 2>conftest.er1
13678 ac_status=$?
13679 grep -v '^ *+' conftest.er1 >conftest.err
13680 rm -f conftest.er1
13681 cat conftest.err >&5
13682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13683 (exit $ac_status); } && {
13684 test -z "$ac_c_werror_flag" ||
13685 test ! -s conftest.err
13686 } && test -s conftest$ac_exeext &&
13687 $as_test_x conftest$ac_exeext; then
13688 ac_cv_lib_dld_shl_load=yes
13689 else
13690 echo "$as_me: failed program was:" >&5
13691 sed 's/^/| /' conftest.$ac_ext >&5
13693 ac_cv_lib_dld_shl_load=no
13696 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13697 conftest$ac_exeext conftest.$ac_ext
13698 LIBS=$ac_check_lib_save_LIBS
13700 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
13701 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
13702 if test $ac_cv_lib_dld_shl_load = yes; then
13703 cat >>confdefs.h <<_ACEOF
13704 #define HAVE_LIBDLD 1
13705 _ACEOF
13707 LIBS="-ldld $LIBS"
13710 # Dynamic linking for HP-UX
13712 # only check for sem_init if thread support is requested
13713 if test "$with_threads" = "yes" -o -z "$with_threads"; then
13714 { echo "$as_me:$LINENO: checking for library containing sem_init" >&5
13715 echo $ECHO_N "checking for library containing sem_init... $ECHO_C" >&6; }
13716 if test "${ac_cv_search_sem_init+set}" = set; then
13717 echo $ECHO_N "(cached) $ECHO_C" >&6
13718 else
13719 ac_func_search_save_LIBS=$LIBS
13720 cat >conftest.$ac_ext <<_ACEOF
13721 /* confdefs.h. */
13722 _ACEOF
13723 cat confdefs.h >>conftest.$ac_ext
13724 cat >>conftest.$ac_ext <<_ACEOF
13725 /* end confdefs.h. */
13727 /* Override any GCC internal prototype to avoid an error.
13728 Use char because int might match the return type of a GCC
13729 builtin and then its argument prototype would still apply. */
13730 #ifdef __cplusplus
13731 extern "C"
13732 #endif
13733 char sem_init ();
13735 main ()
13737 return sem_init ();
13739 return 0;
13741 _ACEOF
13742 for ac_lib in '' pthread rt posix4; do
13743 if test -z "$ac_lib"; then
13744 ac_res="none required"
13745 else
13746 ac_res=-l$ac_lib
13747 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13749 rm -f conftest.$ac_objext conftest$ac_exeext
13750 if { (ac_try="$ac_link"
13751 case "(($ac_try" in
13752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13753 *) ac_try_echo=$ac_try;;
13754 esac
13755 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13756 (eval "$ac_link") 2>conftest.er1
13757 ac_status=$?
13758 grep -v '^ *+' conftest.er1 >conftest.err
13759 rm -f conftest.er1
13760 cat conftest.err >&5
13761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13762 (exit $ac_status); } && {
13763 test -z "$ac_c_werror_flag" ||
13764 test ! -s conftest.err
13765 } && test -s conftest$ac_exeext &&
13766 $as_test_x conftest$ac_exeext; then
13767 ac_cv_search_sem_init=$ac_res
13768 else
13769 echo "$as_me: failed program was:" >&5
13770 sed 's/^/| /' conftest.$ac_ext >&5
13775 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13776 conftest$ac_exeext
13777 if test "${ac_cv_search_sem_init+set}" = set; then
13778 break
13780 done
13781 if test "${ac_cv_search_sem_init+set}" = set; then
13783 else
13784 ac_cv_search_sem_init=no
13786 rm conftest.$ac_ext
13787 LIBS=$ac_func_search_save_LIBS
13789 { echo "$as_me:$LINENO: result: $ac_cv_search_sem_init" >&5
13790 echo "${ECHO_T}$ac_cv_search_sem_init" >&6; }
13791 ac_res=$ac_cv_search_sem_init
13792 if test "$ac_res" != no; then
13793 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13796 # 'Real Time' functions on Solaris
13797 # posix4 on Solaris 2.6
13798 # pthread (first!) on Linux
13801 # check if we need libintl for locale functions
13802 { echo "$as_me:$LINENO: checking for textdomain in -lintl" >&5
13803 echo $ECHO_N "checking for textdomain in -lintl... $ECHO_C" >&6; }
13804 if test "${ac_cv_lib_intl_textdomain+set}" = set; then
13805 echo $ECHO_N "(cached) $ECHO_C" >&6
13806 else
13807 ac_check_lib_save_LIBS=$LIBS
13808 LIBS="-lintl $LIBS"
13809 cat >conftest.$ac_ext <<_ACEOF
13810 /* confdefs.h. */
13811 _ACEOF
13812 cat confdefs.h >>conftest.$ac_ext
13813 cat >>conftest.$ac_ext <<_ACEOF
13814 /* end confdefs.h. */
13816 /* Override any GCC internal prototype to avoid an error.
13817 Use char because int might match the return type of a GCC
13818 builtin and then its argument prototype would still apply. */
13819 #ifdef __cplusplus
13820 extern "C"
13821 #endif
13822 char textdomain ();
13824 main ()
13826 return textdomain ();
13828 return 0;
13830 _ACEOF
13831 rm -f conftest.$ac_objext conftest$ac_exeext
13832 if { (ac_try="$ac_link"
13833 case "(($ac_try" in
13834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13835 *) ac_try_echo=$ac_try;;
13836 esac
13837 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13838 (eval "$ac_link") 2>conftest.er1
13839 ac_status=$?
13840 grep -v '^ *+' conftest.er1 >conftest.err
13841 rm -f conftest.er1
13842 cat conftest.err >&5
13843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13844 (exit $ac_status); } && {
13845 test -z "$ac_c_werror_flag" ||
13846 test ! -s conftest.err
13847 } && test -s conftest$ac_exeext &&
13848 $as_test_x conftest$ac_exeext; then
13849 ac_cv_lib_intl_textdomain=yes
13850 else
13851 echo "$as_me: failed program was:" >&5
13852 sed 's/^/| /' conftest.$ac_ext >&5
13854 ac_cv_lib_intl_textdomain=no
13857 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13858 conftest$ac_exeext conftest.$ac_ext
13859 LIBS=$ac_check_lib_save_LIBS
13861 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_textdomain" >&5
13862 echo "${ECHO_T}$ac_cv_lib_intl_textdomain" >&6; }
13863 if test $ac_cv_lib_intl_textdomain = yes; then
13865 cat >>confdefs.h <<\_ACEOF
13866 #define WITH_LIBINTL 1
13867 _ACEOF
13872 # checks for system dependent C++ extensions support
13873 case "$ac_sys_system" in
13874 AIX*) { echo "$as_me:$LINENO: checking for genuine AIX C++ extensions support" >&5
13875 echo $ECHO_N "checking for genuine AIX C++ extensions support... $ECHO_C" >&6; }
13876 cat >conftest.$ac_ext <<_ACEOF
13877 /* confdefs.h. */
13878 _ACEOF
13879 cat confdefs.h >>conftest.$ac_ext
13880 cat >>conftest.$ac_ext <<_ACEOF
13881 /* end confdefs.h. */
13882 #include "/usr/lpp/xlC/include/load.h"
13884 main ()
13886 loadAndInit("", 0, "")
13888 return 0;
13890 _ACEOF
13891 rm -f conftest.$ac_objext conftest$ac_exeext
13892 if { (ac_try="$ac_link"
13893 case "(($ac_try" in
13894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13895 *) ac_try_echo=$ac_try;;
13896 esac
13897 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13898 (eval "$ac_link") 2>conftest.er1
13899 ac_status=$?
13900 grep -v '^ *+' conftest.er1 >conftest.err
13901 rm -f conftest.er1
13902 cat conftest.err >&5
13903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13904 (exit $ac_status); } && {
13905 test -z "$ac_c_werror_flag" ||
13906 test ! -s conftest.err
13907 } && test -s conftest$ac_exeext &&
13908 $as_test_x conftest$ac_exeext; then
13910 cat >>confdefs.h <<\_ACEOF
13911 #define AIX_GENUINE_CPLUSPLUS 1
13912 _ACEOF
13914 { echo "$as_me:$LINENO: result: yes" >&5
13915 echo "${ECHO_T}yes" >&6; }
13916 else
13917 echo "$as_me: failed program was:" >&5
13918 sed 's/^/| /' conftest.$ac_ext >&5
13920 { echo "$as_me:$LINENO: result: no" >&5
13921 echo "${ECHO_T}no" >&6; }
13924 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13925 conftest$ac_exeext conftest.$ac_ext;;
13926 *) ;;
13927 esac
13929 # Most SVR4 platforms (e.g. Solaris) need -lsocket and -lnsl.
13930 { echo "$as_me:$LINENO: checking for t_open in -lnsl" >&5
13931 echo $ECHO_N "checking for t_open in -lnsl... $ECHO_C" >&6; }
13932 if test "${ac_cv_lib_nsl_t_open+set}" = set; then
13933 echo $ECHO_N "(cached) $ECHO_C" >&6
13934 else
13935 ac_check_lib_save_LIBS=$LIBS
13936 LIBS="-lnsl $LIBS"
13937 cat >conftest.$ac_ext <<_ACEOF
13938 /* confdefs.h. */
13939 _ACEOF
13940 cat confdefs.h >>conftest.$ac_ext
13941 cat >>conftest.$ac_ext <<_ACEOF
13942 /* end confdefs.h. */
13944 /* Override any GCC internal prototype to avoid an error.
13945 Use char because int might match the return type of a GCC
13946 builtin and then its argument prototype would still apply. */
13947 #ifdef __cplusplus
13948 extern "C"
13949 #endif
13950 char t_open ();
13952 main ()
13954 return t_open ();
13956 return 0;
13958 _ACEOF
13959 rm -f conftest.$ac_objext conftest$ac_exeext
13960 if { (ac_try="$ac_link"
13961 case "(($ac_try" in
13962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13963 *) ac_try_echo=$ac_try;;
13964 esac
13965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13966 (eval "$ac_link") 2>conftest.er1
13967 ac_status=$?
13968 grep -v '^ *+' conftest.er1 >conftest.err
13969 rm -f conftest.er1
13970 cat conftest.err >&5
13971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13972 (exit $ac_status); } && {
13973 test -z "$ac_c_werror_flag" ||
13974 test ! -s conftest.err
13975 } && test -s conftest$ac_exeext &&
13976 $as_test_x conftest$ac_exeext; then
13977 ac_cv_lib_nsl_t_open=yes
13978 else
13979 echo "$as_me: failed program was:" >&5
13980 sed 's/^/| /' conftest.$ac_ext >&5
13982 ac_cv_lib_nsl_t_open=no
13985 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13986 conftest$ac_exeext conftest.$ac_ext
13987 LIBS=$ac_check_lib_save_LIBS
13989 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_t_open" >&5
13990 echo "${ECHO_T}$ac_cv_lib_nsl_t_open" >&6; }
13991 if test $ac_cv_lib_nsl_t_open = yes; then
13992 LIBS="-lnsl $LIBS"
13994 # SVR4
13995 { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
13996 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
13997 if test "${ac_cv_lib_socket_socket+set}" = set; then
13998 echo $ECHO_N "(cached) $ECHO_C" >&6
13999 else
14000 ac_check_lib_save_LIBS=$LIBS
14001 LIBS="-lsocket $LIBS $LIBS"
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 /* Override any GCC internal prototype to avoid an error.
14010 Use char because int might match the return type of a GCC
14011 builtin and then its argument prototype would still apply. */
14012 #ifdef __cplusplus
14013 extern "C"
14014 #endif
14015 char socket ();
14017 main ()
14019 return socket ();
14021 return 0;
14023 _ACEOF
14024 rm -f conftest.$ac_objext conftest$ac_exeext
14025 if { (ac_try="$ac_link"
14026 case "(($ac_try" in
14027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14028 *) ac_try_echo=$ac_try;;
14029 esac
14030 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14031 (eval "$ac_link") 2>conftest.er1
14032 ac_status=$?
14033 grep -v '^ *+' conftest.er1 >conftest.err
14034 rm -f conftest.er1
14035 cat conftest.err >&5
14036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14037 (exit $ac_status); } && {
14038 test -z "$ac_c_werror_flag" ||
14039 test ! -s conftest.err
14040 } && test -s conftest$ac_exeext &&
14041 $as_test_x conftest$ac_exeext; then
14042 ac_cv_lib_socket_socket=yes
14043 else
14044 echo "$as_me: failed program was:" >&5
14045 sed 's/^/| /' conftest.$ac_ext >&5
14047 ac_cv_lib_socket_socket=no
14050 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14051 conftest$ac_exeext conftest.$ac_ext
14052 LIBS=$ac_check_lib_save_LIBS
14054 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
14055 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; }
14056 if test $ac_cv_lib_socket_socket = yes; then
14057 LIBS="-lsocket $LIBS"
14059 # SVR4 sockets
14061 { echo "$as_me:$LINENO: checking for --with-libs" >&5
14062 echo $ECHO_N "checking for --with-libs... $ECHO_C" >&6; }
14064 # Check whether --with-libs was given.
14065 if test "${with_libs+set}" = set; then
14066 withval=$with_libs;
14067 { echo "$as_me:$LINENO: result: $withval" >&5
14068 echo "${ECHO_T}$withval" >&6; }
14069 LIBS="$withval $LIBS"
14071 else
14072 { echo "$as_me:$LINENO: result: no" >&5
14073 echo "${ECHO_T}no" >&6; }
14077 # Check for use of the system libffi library
14078 { echo "$as_me:$LINENO: checking for --with-system-ffi" >&5
14079 echo $ECHO_N "checking for --with-system-ffi... $ECHO_C" >&6; }
14081 # Check whether --with-system_ffi was given.
14082 if test "${with_system_ffi+set}" = set; then
14083 withval=$with_system_ffi;
14087 { echo "$as_me:$LINENO: result: $with_system_ffi" >&5
14088 echo "${ECHO_T}$with_system_ffi" >&6; }
14090 # Determine if signalmodule should be used.
14093 { echo "$as_me:$LINENO: checking for --with-signal-module" >&5
14094 echo $ECHO_N "checking for --with-signal-module... $ECHO_C" >&6; }
14096 # Check whether --with-signal-module was given.
14097 if test "${with_signal_module+set}" = set; then
14098 withval=$with_signal_module;
14102 if test -z "$with_signal_module"
14103 then with_signal_module="yes"
14105 { echo "$as_me:$LINENO: result: $with_signal_module" >&5
14106 echo "${ECHO_T}$with_signal_module" >&6; }
14108 if test "${with_signal_module}" = "yes"; then
14109 USE_SIGNAL_MODULE=""
14110 SIGNAL_OBJS=""
14111 else
14112 USE_SIGNAL_MODULE="#"
14113 SIGNAL_OBJS="Parser/intrcheck.o Python/sigcheck.o"
14116 # This is used to generate Setup.config
14118 USE_THREAD_MODULE=""
14120 { echo "$as_me:$LINENO: checking for --with-dec-threads" >&5
14121 echo $ECHO_N "checking for --with-dec-threads... $ECHO_C" >&6; }
14124 # Check whether --with-dec-threads was given.
14125 if test "${with_dec_threads+set}" = set; then
14126 withval=$with_dec_threads;
14127 { echo "$as_me:$LINENO: result: $withval" >&5
14128 echo "${ECHO_T}$withval" >&6; }
14129 LDLAST=-threads
14130 if test "${with_thread+set}" != set; then
14131 with_thread="$withval";
14133 else
14134 { echo "$as_me:$LINENO: result: no" >&5
14135 echo "${ECHO_T}no" >&6; }
14139 # Templates for things AC_DEFINEd more than once.
14140 # For a single AC_DEFINE, no template is needed.
14148 { echo "$as_me:$LINENO: checking for --with-threads" >&5
14149 echo $ECHO_N "checking for --with-threads... $ECHO_C" >&6; }
14151 # Check whether --with-threads was given.
14152 if test "${with_threads+set}" = set; then
14153 withval=$with_threads;
14157 # --with-thread is deprecated, but check for it anyway
14159 # Check whether --with-thread was given.
14160 if test "${with_thread+set}" = set; then
14161 withval=$with_thread; with_threads=$with_thread
14165 if test -z "$with_threads"
14166 then with_threads="yes"
14168 { echo "$as_me:$LINENO: result: $with_threads" >&5
14169 echo "${ECHO_T}$with_threads" >&6; }
14172 if test "$with_threads" = "no"
14173 then
14174 USE_THREAD_MODULE="#"
14175 elif test "$ac_cv_pthread_is_default" = yes
14176 then
14177 cat >>confdefs.h <<\_ACEOF
14178 #define WITH_THREAD 1
14179 _ACEOF
14181 # Defining _REENTRANT on system with POSIX threads should not hurt.
14182 cat >>confdefs.h <<\_ACEOF
14183 #define _REENTRANT 1
14184 _ACEOF
14186 posix_threads=yes
14187 THREADOBJ="Python/thread.o"
14188 elif test "$ac_cv_kpthread" = "yes"
14189 then
14190 CC="$CC -Kpthread"
14191 if test "$ac_cv_cxx_thread" = "yes"; then
14192 CXX="$CXX -Kpthread"
14194 cat >>confdefs.h <<\_ACEOF
14195 #define WITH_THREAD 1
14196 _ACEOF
14198 posix_threads=yes
14199 THREADOBJ="Python/thread.o"
14200 elif test "$ac_cv_kthread" = "yes"
14201 then
14202 CC="$CC -Kthread"
14203 if test "$ac_cv_cxx_thread" = "yes"; then
14204 CXX="$CXX -Kthread"
14206 cat >>confdefs.h <<\_ACEOF
14207 #define WITH_THREAD 1
14208 _ACEOF
14210 posix_threads=yes
14211 THREADOBJ="Python/thread.o"
14212 elif test "$ac_cv_pthread" = "yes"
14213 then
14214 CC="$CC -pthread"
14215 if test "$ac_cv_cxx_thread" = "yes"; then
14216 CXX="$CXX -pthread"
14218 cat >>confdefs.h <<\_ACEOF
14219 #define WITH_THREAD 1
14220 _ACEOF
14222 posix_threads=yes
14223 THREADOBJ="Python/thread.o"
14224 else
14225 if test ! -z "$with_threads" -a -d "$with_threads"
14226 then LDFLAGS="$LDFLAGS -L$with_threads"
14228 if test ! -z "$withval" -a -d "$withval"
14229 then LDFLAGS="$LDFLAGS -L$withval"
14232 # According to the POSIX spec, a pthreads implementation must
14233 # define _POSIX_THREADS in unistd.h. Some apparently don't
14234 # (e.g. gnu pth with pthread emulation)
14235 { echo "$as_me:$LINENO: checking for _POSIX_THREADS in unistd.h" >&5
14236 echo $ECHO_N "checking for _POSIX_THREADS in unistd.h... $ECHO_C" >&6; }
14237 cat >conftest.$ac_ext <<_ACEOF
14238 /* confdefs.h. */
14239 _ACEOF
14240 cat confdefs.h >>conftest.$ac_ext
14241 cat >>conftest.$ac_ext <<_ACEOF
14242 /* end confdefs.h. */
14244 #include <unistd.h>
14245 #ifdef _POSIX_THREADS
14247 #endif
14249 _ACEOF
14250 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14251 $EGREP "yes" >/dev/null 2>&1; then
14252 unistd_defines_pthreads=yes
14253 else
14254 unistd_defines_pthreads=no
14256 rm -f conftest*
14258 { echo "$as_me:$LINENO: result: $unistd_defines_pthreads" >&5
14259 echo "${ECHO_T}$unistd_defines_pthreads" >&6; }
14261 cat >>confdefs.h <<\_ACEOF
14262 #define _REENTRANT 1
14263 _ACEOF
14265 if test "${ac_cv_header_cthreads_h+set}" = set; then
14266 { echo "$as_me:$LINENO: checking for cthreads.h" >&5
14267 echo $ECHO_N "checking for cthreads.h... $ECHO_C" >&6; }
14268 if test "${ac_cv_header_cthreads_h+set}" = set; then
14269 echo $ECHO_N "(cached) $ECHO_C" >&6
14271 { echo "$as_me:$LINENO: result: $ac_cv_header_cthreads_h" >&5
14272 echo "${ECHO_T}$ac_cv_header_cthreads_h" >&6; }
14273 else
14274 # Is the header compilable?
14275 { echo "$as_me:$LINENO: checking cthreads.h usability" >&5
14276 echo $ECHO_N "checking cthreads.h usability... $ECHO_C" >&6; }
14277 cat >conftest.$ac_ext <<_ACEOF
14278 /* confdefs.h. */
14279 _ACEOF
14280 cat confdefs.h >>conftest.$ac_ext
14281 cat >>conftest.$ac_ext <<_ACEOF
14282 /* end confdefs.h. */
14283 $ac_includes_default
14284 #include <cthreads.h>
14285 _ACEOF
14286 rm -f conftest.$ac_objext
14287 if { (ac_try="$ac_compile"
14288 case "(($ac_try" in
14289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14290 *) ac_try_echo=$ac_try;;
14291 esac
14292 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14293 (eval "$ac_compile") 2>conftest.er1
14294 ac_status=$?
14295 grep -v '^ *+' conftest.er1 >conftest.err
14296 rm -f conftest.er1
14297 cat conftest.err >&5
14298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14299 (exit $ac_status); } && {
14300 test -z "$ac_c_werror_flag" ||
14301 test ! -s conftest.err
14302 } && test -s conftest.$ac_objext; then
14303 ac_header_compiler=yes
14304 else
14305 echo "$as_me: failed program was:" >&5
14306 sed 's/^/| /' conftest.$ac_ext >&5
14308 ac_header_compiler=no
14311 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14312 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14313 echo "${ECHO_T}$ac_header_compiler" >&6; }
14315 # Is the header present?
14316 { echo "$as_me:$LINENO: checking cthreads.h presence" >&5
14317 echo $ECHO_N "checking cthreads.h presence... $ECHO_C" >&6; }
14318 cat >conftest.$ac_ext <<_ACEOF
14319 /* confdefs.h. */
14320 _ACEOF
14321 cat confdefs.h >>conftest.$ac_ext
14322 cat >>conftest.$ac_ext <<_ACEOF
14323 /* end confdefs.h. */
14324 #include <cthreads.h>
14325 _ACEOF
14326 if { (ac_try="$ac_cpp conftest.$ac_ext"
14327 case "(($ac_try" in
14328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14329 *) ac_try_echo=$ac_try;;
14330 esac
14331 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14332 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14333 ac_status=$?
14334 grep -v '^ *+' conftest.er1 >conftest.err
14335 rm -f conftest.er1
14336 cat conftest.err >&5
14337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14338 (exit $ac_status); } >/dev/null && {
14339 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14340 test ! -s conftest.err
14341 }; then
14342 ac_header_preproc=yes
14343 else
14344 echo "$as_me: failed program was:" >&5
14345 sed 's/^/| /' conftest.$ac_ext >&5
14347 ac_header_preproc=no
14350 rm -f conftest.err conftest.$ac_ext
14351 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14352 echo "${ECHO_T}$ac_header_preproc" >&6; }
14354 # So? What about this header?
14355 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14356 yes:no: )
14357 { echo "$as_me:$LINENO: WARNING: cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&5
14358 echo "$as_me: WARNING: cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14359 { echo "$as_me:$LINENO: WARNING: cthreads.h: proceeding with the compiler's result" >&5
14360 echo "$as_me: WARNING: cthreads.h: proceeding with the compiler's result" >&2;}
14361 ac_header_preproc=yes
14363 no:yes:* )
14364 { echo "$as_me:$LINENO: WARNING: cthreads.h: present but cannot be compiled" >&5
14365 echo "$as_me: WARNING: cthreads.h: present but cannot be compiled" >&2;}
14366 { echo "$as_me:$LINENO: WARNING: cthreads.h: check for missing prerequisite headers?" >&5
14367 echo "$as_me: WARNING: cthreads.h: check for missing prerequisite headers?" >&2;}
14368 { echo "$as_me:$LINENO: WARNING: cthreads.h: see the Autoconf documentation" >&5
14369 echo "$as_me: WARNING: cthreads.h: see the Autoconf documentation" >&2;}
14370 { echo "$as_me:$LINENO: WARNING: cthreads.h: section \"Present But Cannot Be Compiled\"" >&5
14371 echo "$as_me: WARNING: cthreads.h: section \"Present But Cannot Be Compiled\"" >&2;}
14372 { echo "$as_me:$LINENO: WARNING: cthreads.h: proceeding with the preprocessor's result" >&5
14373 echo "$as_me: WARNING: cthreads.h: proceeding with the preprocessor's result" >&2;}
14374 { echo "$as_me:$LINENO: WARNING: cthreads.h: in the future, the compiler will take precedence" >&5
14375 echo "$as_me: WARNING: cthreads.h: in the future, the compiler will take precedence" >&2;}
14376 ( cat <<\_ASBOX
14377 ## ------------------------------------------------ ##
14378 ## Report this to http://www.python.org/python-bugs ##
14379 ## ------------------------------------------------ ##
14380 _ASBOX
14381 ) | sed "s/^/$as_me: WARNING: /" >&2
14383 esac
14384 { echo "$as_me:$LINENO: checking for cthreads.h" >&5
14385 echo $ECHO_N "checking for cthreads.h... $ECHO_C" >&6; }
14386 if test "${ac_cv_header_cthreads_h+set}" = set; then
14387 echo $ECHO_N "(cached) $ECHO_C" >&6
14388 else
14389 ac_cv_header_cthreads_h=$ac_header_preproc
14391 { echo "$as_me:$LINENO: result: $ac_cv_header_cthreads_h" >&5
14392 echo "${ECHO_T}$ac_cv_header_cthreads_h" >&6; }
14395 if test $ac_cv_header_cthreads_h = yes; then
14396 cat >>confdefs.h <<\_ACEOF
14397 #define WITH_THREAD 1
14398 _ACEOF
14400 cat >>confdefs.h <<\_ACEOF
14401 #define C_THREADS 1
14402 _ACEOF
14405 cat >>confdefs.h <<\_ACEOF
14406 #define HURD_C_THREADS 1
14407 _ACEOF
14409 LIBS="$LIBS -lthreads"
14410 THREADOBJ="Python/thread.o"
14411 else
14413 if test "${ac_cv_header_mach_cthreads_h+set}" = set; then
14414 { echo "$as_me:$LINENO: checking for mach/cthreads.h" >&5
14415 echo $ECHO_N "checking for mach/cthreads.h... $ECHO_C" >&6; }
14416 if test "${ac_cv_header_mach_cthreads_h+set}" = set; then
14417 echo $ECHO_N "(cached) $ECHO_C" >&6
14419 { echo "$as_me:$LINENO: result: $ac_cv_header_mach_cthreads_h" >&5
14420 echo "${ECHO_T}$ac_cv_header_mach_cthreads_h" >&6; }
14421 else
14422 # Is the header compilable?
14423 { echo "$as_me:$LINENO: checking mach/cthreads.h usability" >&5
14424 echo $ECHO_N "checking mach/cthreads.h usability... $ECHO_C" >&6; }
14425 cat >conftest.$ac_ext <<_ACEOF
14426 /* confdefs.h. */
14427 _ACEOF
14428 cat confdefs.h >>conftest.$ac_ext
14429 cat >>conftest.$ac_ext <<_ACEOF
14430 /* end confdefs.h. */
14431 $ac_includes_default
14432 #include <mach/cthreads.h>
14433 _ACEOF
14434 rm -f conftest.$ac_objext
14435 if { (ac_try="$ac_compile"
14436 case "(($ac_try" in
14437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14438 *) ac_try_echo=$ac_try;;
14439 esac
14440 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14441 (eval "$ac_compile") 2>conftest.er1
14442 ac_status=$?
14443 grep -v '^ *+' conftest.er1 >conftest.err
14444 rm -f conftest.er1
14445 cat conftest.err >&5
14446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14447 (exit $ac_status); } && {
14448 test -z "$ac_c_werror_flag" ||
14449 test ! -s conftest.err
14450 } && test -s conftest.$ac_objext; then
14451 ac_header_compiler=yes
14452 else
14453 echo "$as_me: failed program was:" >&5
14454 sed 's/^/| /' conftest.$ac_ext >&5
14456 ac_header_compiler=no
14459 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14460 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14461 echo "${ECHO_T}$ac_header_compiler" >&6; }
14463 # Is the header present?
14464 { echo "$as_me:$LINENO: checking mach/cthreads.h presence" >&5
14465 echo $ECHO_N "checking mach/cthreads.h presence... $ECHO_C" >&6; }
14466 cat >conftest.$ac_ext <<_ACEOF
14467 /* confdefs.h. */
14468 _ACEOF
14469 cat confdefs.h >>conftest.$ac_ext
14470 cat >>conftest.$ac_ext <<_ACEOF
14471 /* end confdefs.h. */
14472 #include <mach/cthreads.h>
14473 _ACEOF
14474 if { (ac_try="$ac_cpp conftest.$ac_ext"
14475 case "(($ac_try" in
14476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14477 *) ac_try_echo=$ac_try;;
14478 esac
14479 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14480 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14481 ac_status=$?
14482 grep -v '^ *+' conftest.er1 >conftest.err
14483 rm -f conftest.er1
14484 cat conftest.err >&5
14485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14486 (exit $ac_status); } >/dev/null && {
14487 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14488 test ! -s conftest.err
14489 }; then
14490 ac_header_preproc=yes
14491 else
14492 echo "$as_me: failed program was:" >&5
14493 sed 's/^/| /' conftest.$ac_ext >&5
14495 ac_header_preproc=no
14498 rm -f conftest.err conftest.$ac_ext
14499 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14500 echo "${ECHO_T}$ac_header_preproc" >&6; }
14502 # So? What about this header?
14503 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14504 yes:no: )
14505 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&5
14506 echo "$as_me: WARNING: mach/cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14507 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: proceeding with the compiler's result" >&5
14508 echo "$as_me: WARNING: mach/cthreads.h: proceeding with the compiler's result" >&2;}
14509 ac_header_preproc=yes
14511 no:yes:* )
14512 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: present but cannot be compiled" >&5
14513 echo "$as_me: WARNING: mach/cthreads.h: present but cannot be compiled" >&2;}
14514 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: check for missing prerequisite headers?" >&5
14515 echo "$as_me: WARNING: mach/cthreads.h: check for missing prerequisite headers?" >&2;}
14516 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: see the Autoconf documentation" >&5
14517 echo "$as_me: WARNING: mach/cthreads.h: see the Autoconf documentation" >&2;}
14518 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: section \"Present But Cannot Be Compiled\"" >&5
14519 echo "$as_me: WARNING: mach/cthreads.h: section \"Present But Cannot Be Compiled\"" >&2;}
14520 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: proceeding with the preprocessor's result" >&5
14521 echo "$as_me: WARNING: mach/cthreads.h: proceeding with the preprocessor's result" >&2;}
14522 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: in the future, the compiler will take precedence" >&5
14523 echo "$as_me: WARNING: mach/cthreads.h: in the future, the compiler will take precedence" >&2;}
14524 ( cat <<\_ASBOX
14525 ## ------------------------------------------------ ##
14526 ## Report this to http://www.python.org/python-bugs ##
14527 ## ------------------------------------------------ ##
14528 _ASBOX
14529 ) | sed "s/^/$as_me: WARNING: /" >&2
14531 esac
14532 { echo "$as_me:$LINENO: checking for mach/cthreads.h" >&5
14533 echo $ECHO_N "checking for mach/cthreads.h... $ECHO_C" >&6; }
14534 if test "${ac_cv_header_mach_cthreads_h+set}" = set; then
14535 echo $ECHO_N "(cached) $ECHO_C" >&6
14536 else
14537 ac_cv_header_mach_cthreads_h=$ac_header_preproc
14539 { echo "$as_me:$LINENO: result: $ac_cv_header_mach_cthreads_h" >&5
14540 echo "${ECHO_T}$ac_cv_header_mach_cthreads_h" >&6; }
14543 if test $ac_cv_header_mach_cthreads_h = yes; then
14544 cat >>confdefs.h <<\_ACEOF
14545 #define WITH_THREAD 1
14546 _ACEOF
14548 cat >>confdefs.h <<\_ACEOF
14549 #define C_THREADS 1
14550 _ACEOF
14553 cat >>confdefs.h <<\_ACEOF
14554 #define MACH_C_THREADS 1
14555 _ACEOF
14557 THREADOBJ="Python/thread.o"
14558 else
14560 { echo "$as_me:$LINENO: checking for --with-pth" >&5
14561 echo $ECHO_N "checking for --with-pth... $ECHO_C" >&6; }
14563 # Check whether --with-pth was given.
14564 if test "${with_pth+set}" = set; then
14565 withval=$with_pth; { echo "$as_me:$LINENO: result: $withval" >&5
14566 echo "${ECHO_T}$withval" >&6; }
14567 cat >>confdefs.h <<\_ACEOF
14568 #define WITH_THREAD 1
14569 _ACEOF
14572 cat >>confdefs.h <<\_ACEOF
14573 #define HAVE_PTH 1
14574 _ACEOF
14576 LIBS="-lpth $LIBS"
14577 THREADOBJ="Python/thread.o"
14578 else
14579 { echo "$as_me:$LINENO: result: no" >&5
14580 echo "${ECHO_T}no" >&6; }
14582 # Just looking for pthread_create in libpthread is not enough:
14583 # on HP/UX, pthread.h renames pthread_create to a different symbol name.
14584 # So we really have to include pthread.h, and then link.
14585 _libs=$LIBS
14586 LIBS="$LIBS -lpthread"
14587 { echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
14588 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6; }
14589 cat >conftest.$ac_ext <<_ACEOF
14590 /* confdefs.h. */
14591 _ACEOF
14592 cat confdefs.h >>conftest.$ac_ext
14593 cat >>conftest.$ac_ext <<_ACEOF
14594 /* end confdefs.h. */
14595 #include <pthread.h>
14597 void * start_routine (void *arg) { exit (0); }
14599 main ()
14602 pthread_create (NULL, NULL, start_routine, NULL)
14604 return 0;
14606 _ACEOF
14607 rm -f conftest.$ac_objext conftest$ac_exeext
14608 if { (ac_try="$ac_link"
14609 case "(($ac_try" in
14610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14611 *) ac_try_echo=$ac_try;;
14612 esac
14613 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14614 (eval "$ac_link") 2>conftest.er1
14615 ac_status=$?
14616 grep -v '^ *+' conftest.er1 >conftest.err
14617 rm -f conftest.er1
14618 cat conftest.err >&5
14619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14620 (exit $ac_status); } && {
14621 test -z "$ac_c_werror_flag" ||
14622 test ! -s conftest.err
14623 } && test -s conftest$ac_exeext &&
14624 $as_test_x conftest$ac_exeext; then
14626 { echo "$as_me:$LINENO: result: yes" >&5
14627 echo "${ECHO_T}yes" >&6; }
14628 cat >>confdefs.h <<\_ACEOF
14629 #define WITH_THREAD 1
14630 _ACEOF
14632 posix_threads=yes
14633 THREADOBJ="Python/thread.o"
14634 else
14635 echo "$as_me: failed program was:" >&5
14636 sed 's/^/| /' conftest.$ac_ext >&5
14639 LIBS=$_libs
14640 { echo "$as_me:$LINENO: checking for pthread_detach" >&5
14641 echo $ECHO_N "checking for pthread_detach... $ECHO_C" >&6; }
14642 if test "${ac_cv_func_pthread_detach+set}" = set; then
14643 echo $ECHO_N "(cached) $ECHO_C" >&6
14644 else
14645 cat >conftest.$ac_ext <<_ACEOF
14646 /* confdefs.h. */
14647 _ACEOF
14648 cat confdefs.h >>conftest.$ac_ext
14649 cat >>conftest.$ac_ext <<_ACEOF
14650 /* end confdefs.h. */
14651 /* Define pthread_detach to an innocuous variant, in case <limits.h> declares pthread_detach.
14652 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14653 #define pthread_detach innocuous_pthread_detach
14655 /* System header to define __stub macros and hopefully few prototypes,
14656 which can conflict with char pthread_detach (); below.
14657 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14658 <limits.h> exists even on freestanding compilers. */
14660 #ifdef __STDC__
14661 # include <limits.h>
14662 #else
14663 # include <assert.h>
14664 #endif
14666 #undef pthread_detach
14668 /* Override any GCC internal prototype to avoid an error.
14669 Use char because int might match the return type of a GCC
14670 builtin and then its argument prototype would still apply. */
14671 #ifdef __cplusplus
14672 extern "C"
14673 #endif
14674 char pthread_detach ();
14675 /* The GNU C library defines this for functions which it implements
14676 to always fail with ENOSYS. Some functions are actually named
14677 something starting with __ and the normal name is an alias. */
14678 #if defined __stub_pthread_detach || defined __stub___pthread_detach
14679 choke me
14680 #endif
14683 main ()
14685 return pthread_detach ();
14687 return 0;
14689 _ACEOF
14690 rm -f conftest.$ac_objext conftest$ac_exeext
14691 if { (ac_try="$ac_link"
14692 case "(($ac_try" in
14693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14694 *) ac_try_echo=$ac_try;;
14695 esac
14696 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14697 (eval "$ac_link") 2>conftest.er1
14698 ac_status=$?
14699 grep -v '^ *+' conftest.er1 >conftest.err
14700 rm -f conftest.er1
14701 cat conftest.err >&5
14702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14703 (exit $ac_status); } && {
14704 test -z "$ac_c_werror_flag" ||
14705 test ! -s conftest.err
14706 } && test -s conftest$ac_exeext &&
14707 $as_test_x conftest$ac_exeext; then
14708 ac_cv_func_pthread_detach=yes
14709 else
14710 echo "$as_me: failed program was:" >&5
14711 sed 's/^/| /' conftest.$ac_ext >&5
14713 ac_cv_func_pthread_detach=no
14716 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14717 conftest$ac_exeext conftest.$ac_ext
14719 { echo "$as_me:$LINENO: result: $ac_cv_func_pthread_detach" >&5
14720 echo "${ECHO_T}$ac_cv_func_pthread_detach" >&6; }
14721 if test $ac_cv_func_pthread_detach = yes; then
14722 cat >>confdefs.h <<\_ACEOF
14723 #define WITH_THREAD 1
14724 _ACEOF
14726 posix_threads=yes
14727 THREADOBJ="Python/thread.o"
14728 else
14730 if test "${ac_cv_header_atheos_threads_h+set}" = set; then
14731 { echo "$as_me:$LINENO: checking for atheos/threads.h" >&5
14732 echo $ECHO_N "checking for atheos/threads.h... $ECHO_C" >&6; }
14733 if test "${ac_cv_header_atheos_threads_h+set}" = set; then
14734 echo $ECHO_N "(cached) $ECHO_C" >&6
14736 { echo "$as_me:$LINENO: result: $ac_cv_header_atheos_threads_h" >&5
14737 echo "${ECHO_T}$ac_cv_header_atheos_threads_h" >&6; }
14738 else
14739 # Is the header compilable?
14740 { echo "$as_me:$LINENO: checking atheos/threads.h usability" >&5
14741 echo $ECHO_N "checking atheos/threads.h usability... $ECHO_C" >&6; }
14742 cat >conftest.$ac_ext <<_ACEOF
14743 /* confdefs.h. */
14744 _ACEOF
14745 cat confdefs.h >>conftest.$ac_ext
14746 cat >>conftest.$ac_ext <<_ACEOF
14747 /* end confdefs.h. */
14748 $ac_includes_default
14749 #include <atheos/threads.h>
14750 _ACEOF
14751 rm -f conftest.$ac_objext
14752 if { (ac_try="$ac_compile"
14753 case "(($ac_try" in
14754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14755 *) ac_try_echo=$ac_try;;
14756 esac
14757 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14758 (eval "$ac_compile") 2>conftest.er1
14759 ac_status=$?
14760 grep -v '^ *+' conftest.er1 >conftest.err
14761 rm -f conftest.er1
14762 cat conftest.err >&5
14763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14764 (exit $ac_status); } && {
14765 test -z "$ac_c_werror_flag" ||
14766 test ! -s conftest.err
14767 } && test -s conftest.$ac_objext; then
14768 ac_header_compiler=yes
14769 else
14770 echo "$as_me: failed program was:" >&5
14771 sed 's/^/| /' conftest.$ac_ext >&5
14773 ac_header_compiler=no
14776 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14777 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14778 echo "${ECHO_T}$ac_header_compiler" >&6; }
14780 # Is the header present?
14781 { echo "$as_me:$LINENO: checking atheos/threads.h presence" >&5
14782 echo $ECHO_N "checking atheos/threads.h presence... $ECHO_C" >&6; }
14783 cat >conftest.$ac_ext <<_ACEOF
14784 /* confdefs.h. */
14785 _ACEOF
14786 cat confdefs.h >>conftest.$ac_ext
14787 cat >>conftest.$ac_ext <<_ACEOF
14788 /* end confdefs.h. */
14789 #include <atheos/threads.h>
14790 _ACEOF
14791 if { (ac_try="$ac_cpp conftest.$ac_ext"
14792 case "(($ac_try" in
14793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14794 *) ac_try_echo=$ac_try;;
14795 esac
14796 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14797 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14798 ac_status=$?
14799 grep -v '^ *+' conftest.er1 >conftest.err
14800 rm -f conftest.er1
14801 cat conftest.err >&5
14802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14803 (exit $ac_status); } >/dev/null && {
14804 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14805 test ! -s conftest.err
14806 }; then
14807 ac_header_preproc=yes
14808 else
14809 echo "$as_me: failed program was:" >&5
14810 sed 's/^/| /' conftest.$ac_ext >&5
14812 ac_header_preproc=no
14815 rm -f conftest.err conftest.$ac_ext
14816 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14817 echo "${ECHO_T}$ac_header_preproc" >&6; }
14819 # So? What about this header?
14820 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14821 yes:no: )
14822 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: accepted by the compiler, rejected by the preprocessor!" >&5
14823 echo "$as_me: WARNING: atheos/threads.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14824 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: proceeding with the compiler's result" >&5
14825 echo "$as_me: WARNING: atheos/threads.h: proceeding with the compiler's result" >&2;}
14826 ac_header_preproc=yes
14828 no:yes:* )
14829 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: present but cannot be compiled" >&5
14830 echo "$as_me: WARNING: atheos/threads.h: present but cannot be compiled" >&2;}
14831 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: check for missing prerequisite headers?" >&5
14832 echo "$as_me: WARNING: atheos/threads.h: check for missing prerequisite headers?" >&2;}
14833 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: see the Autoconf documentation" >&5
14834 echo "$as_me: WARNING: atheos/threads.h: see the Autoconf documentation" >&2;}
14835 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: section \"Present But Cannot Be Compiled\"" >&5
14836 echo "$as_me: WARNING: atheos/threads.h: section \"Present But Cannot Be Compiled\"" >&2;}
14837 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: proceeding with the preprocessor's result" >&5
14838 echo "$as_me: WARNING: atheos/threads.h: proceeding with the preprocessor's result" >&2;}
14839 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: in the future, the compiler will take precedence" >&5
14840 echo "$as_me: WARNING: atheos/threads.h: in the future, the compiler will take precedence" >&2;}
14841 ( cat <<\_ASBOX
14842 ## ------------------------------------------------ ##
14843 ## Report this to http://www.python.org/python-bugs ##
14844 ## ------------------------------------------------ ##
14845 _ASBOX
14846 ) | sed "s/^/$as_me: WARNING: /" >&2
14848 esac
14849 { echo "$as_me:$LINENO: checking for atheos/threads.h" >&5
14850 echo $ECHO_N "checking for atheos/threads.h... $ECHO_C" >&6; }
14851 if test "${ac_cv_header_atheos_threads_h+set}" = set; then
14852 echo $ECHO_N "(cached) $ECHO_C" >&6
14853 else
14854 ac_cv_header_atheos_threads_h=$ac_header_preproc
14856 { echo "$as_me:$LINENO: result: $ac_cv_header_atheos_threads_h" >&5
14857 echo "${ECHO_T}$ac_cv_header_atheos_threads_h" >&6; }
14860 if test $ac_cv_header_atheos_threads_h = yes; then
14861 cat >>confdefs.h <<\_ACEOF
14862 #define WITH_THREAD 1
14863 _ACEOF
14866 cat >>confdefs.h <<\_ACEOF
14867 #define ATHEOS_THREADS 1
14868 _ACEOF
14870 THREADOBJ="Python/thread.o"
14871 else
14873 { echo "$as_me:$LINENO: checking for pthread_create in -lpthreads" >&5
14874 echo $ECHO_N "checking for pthread_create in -lpthreads... $ECHO_C" >&6; }
14875 if test "${ac_cv_lib_pthreads_pthread_create+set}" = set; then
14876 echo $ECHO_N "(cached) $ECHO_C" >&6
14877 else
14878 ac_check_lib_save_LIBS=$LIBS
14879 LIBS="-lpthreads $LIBS"
14880 cat >conftest.$ac_ext <<_ACEOF
14881 /* confdefs.h. */
14882 _ACEOF
14883 cat confdefs.h >>conftest.$ac_ext
14884 cat >>conftest.$ac_ext <<_ACEOF
14885 /* end confdefs.h. */
14887 /* Override any GCC internal prototype to avoid an error.
14888 Use char because int might match the return type of a GCC
14889 builtin and then its argument prototype would still apply. */
14890 #ifdef __cplusplus
14891 extern "C"
14892 #endif
14893 char pthread_create ();
14895 main ()
14897 return pthread_create ();
14899 return 0;
14901 _ACEOF
14902 rm -f conftest.$ac_objext conftest$ac_exeext
14903 if { (ac_try="$ac_link"
14904 case "(($ac_try" in
14905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14906 *) ac_try_echo=$ac_try;;
14907 esac
14908 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14909 (eval "$ac_link") 2>conftest.er1
14910 ac_status=$?
14911 grep -v '^ *+' conftest.er1 >conftest.err
14912 rm -f conftest.er1
14913 cat conftest.err >&5
14914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14915 (exit $ac_status); } && {
14916 test -z "$ac_c_werror_flag" ||
14917 test ! -s conftest.err
14918 } && test -s conftest$ac_exeext &&
14919 $as_test_x conftest$ac_exeext; then
14920 ac_cv_lib_pthreads_pthread_create=yes
14921 else
14922 echo "$as_me: failed program was:" >&5
14923 sed 's/^/| /' conftest.$ac_ext >&5
14925 ac_cv_lib_pthreads_pthread_create=no
14928 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14929 conftest$ac_exeext conftest.$ac_ext
14930 LIBS=$ac_check_lib_save_LIBS
14932 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_create" >&5
14933 echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_create" >&6; }
14934 if test $ac_cv_lib_pthreads_pthread_create = yes; then
14935 cat >>confdefs.h <<\_ACEOF
14936 #define WITH_THREAD 1
14937 _ACEOF
14939 posix_threads=yes
14940 LIBS="$LIBS -lpthreads"
14941 THREADOBJ="Python/thread.o"
14942 else
14944 { echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
14945 echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6; }
14946 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then
14947 echo $ECHO_N "(cached) $ECHO_C" >&6
14948 else
14949 ac_check_lib_save_LIBS=$LIBS
14950 LIBS="-lc_r $LIBS"
14951 cat >conftest.$ac_ext <<_ACEOF
14952 /* confdefs.h. */
14953 _ACEOF
14954 cat confdefs.h >>conftest.$ac_ext
14955 cat >>conftest.$ac_ext <<_ACEOF
14956 /* end confdefs.h. */
14958 /* Override any GCC internal prototype to avoid an error.
14959 Use char because int might match the return type of a GCC
14960 builtin and then its argument prototype would still apply. */
14961 #ifdef __cplusplus
14962 extern "C"
14963 #endif
14964 char pthread_create ();
14966 main ()
14968 return pthread_create ();
14970 return 0;
14972 _ACEOF
14973 rm -f conftest.$ac_objext conftest$ac_exeext
14974 if { (ac_try="$ac_link"
14975 case "(($ac_try" in
14976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14977 *) ac_try_echo=$ac_try;;
14978 esac
14979 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14980 (eval "$ac_link") 2>conftest.er1
14981 ac_status=$?
14982 grep -v '^ *+' conftest.er1 >conftest.err
14983 rm -f conftest.er1
14984 cat conftest.err >&5
14985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14986 (exit $ac_status); } && {
14987 test -z "$ac_c_werror_flag" ||
14988 test ! -s conftest.err
14989 } && test -s conftest$ac_exeext &&
14990 $as_test_x conftest$ac_exeext; then
14991 ac_cv_lib_c_r_pthread_create=yes
14992 else
14993 echo "$as_me: failed program was:" >&5
14994 sed 's/^/| /' conftest.$ac_ext >&5
14996 ac_cv_lib_c_r_pthread_create=no
14999 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15000 conftest$ac_exeext conftest.$ac_ext
15001 LIBS=$ac_check_lib_save_LIBS
15003 { echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5
15004 echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6; }
15005 if test $ac_cv_lib_c_r_pthread_create = yes; then
15006 cat >>confdefs.h <<\_ACEOF
15007 #define WITH_THREAD 1
15008 _ACEOF
15010 posix_threads=yes
15011 LIBS="$LIBS -lc_r"
15012 THREADOBJ="Python/thread.o"
15013 else
15015 { echo "$as_me:$LINENO: checking for __pthread_create_system in -lpthread" >&5
15016 echo $ECHO_N "checking for __pthread_create_system in -lpthread... $ECHO_C" >&6; }
15017 if test "${ac_cv_lib_pthread___pthread_create_system+set}" = set; then
15018 echo $ECHO_N "(cached) $ECHO_C" >&6
15019 else
15020 ac_check_lib_save_LIBS=$LIBS
15021 LIBS="-lpthread $LIBS"
15022 cat >conftest.$ac_ext <<_ACEOF
15023 /* confdefs.h. */
15024 _ACEOF
15025 cat confdefs.h >>conftest.$ac_ext
15026 cat >>conftest.$ac_ext <<_ACEOF
15027 /* end confdefs.h. */
15029 /* Override any GCC internal prototype to avoid an error.
15030 Use char because int might match the return type of a GCC
15031 builtin and then its argument prototype would still apply. */
15032 #ifdef __cplusplus
15033 extern "C"
15034 #endif
15035 char __pthread_create_system ();
15037 main ()
15039 return __pthread_create_system ();
15041 return 0;
15043 _ACEOF
15044 rm -f conftest.$ac_objext conftest$ac_exeext
15045 if { (ac_try="$ac_link"
15046 case "(($ac_try" in
15047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15048 *) ac_try_echo=$ac_try;;
15049 esac
15050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15051 (eval "$ac_link") 2>conftest.er1
15052 ac_status=$?
15053 grep -v '^ *+' conftest.er1 >conftest.err
15054 rm -f conftest.er1
15055 cat conftest.err >&5
15056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15057 (exit $ac_status); } && {
15058 test -z "$ac_c_werror_flag" ||
15059 test ! -s conftest.err
15060 } && test -s conftest$ac_exeext &&
15061 $as_test_x conftest$ac_exeext; then
15062 ac_cv_lib_pthread___pthread_create_system=yes
15063 else
15064 echo "$as_me: failed program was:" >&5
15065 sed 's/^/| /' conftest.$ac_ext >&5
15067 ac_cv_lib_pthread___pthread_create_system=no
15070 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15071 conftest$ac_exeext conftest.$ac_ext
15072 LIBS=$ac_check_lib_save_LIBS
15074 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread___pthread_create_system" >&5
15075 echo "${ECHO_T}$ac_cv_lib_pthread___pthread_create_system" >&6; }
15076 if test $ac_cv_lib_pthread___pthread_create_system = yes; then
15077 cat >>confdefs.h <<\_ACEOF
15078 #define WITH_THREAD 1
15079 _ACEOF
15081 posix_threads=yes
15082 LIBS="$LIBS -lpthread"
15083 THREADOBJ="Python/thread.o"
15084 else
15086 { echo "$as_me:$LINENO: checking for pthread_create in -lcma" >&5
15087 echo $ECHO_N "checking for pthread_create in -lcma... $ECHO_C" >&6; }
15088 if test "${ac_cv_lib_cma_pthread_create+set}" = set; then
15089 echo $ECHO_N "(cached) $ECHO_C" >&6
15090 else
15091 ac_check_lib_save_LIBS=$LIBS
15092 LIBS="-lcma $LIBS"
15093 cat >conftest.$ac_ext <<_ACEOF
15094 /* confdefs.h. */
15095 _ACEOF
15096 cat confdefs.h >>conftest.$ac_ext
15097 cat >>conftest.$ac_ext <<_ACEOF
15098 /* end confdefs.h. */
15100 /* Override any GCC internal prototype to avoid an error.
15101 Use char because int might match the return type of a GCC
15102 builtin and then its argument prototype would still apply. */
15103 #ifdef __cplusplus
15104 extern "C"
15105 #endif
15106 char pthread_create ();
15108 main ()
15110 return pthread_create ();
15112 return 0;
15114 _ACEOF
15115 rm -f conftest.$ac_objext conftest$ac_exeext
15116 if { (ac_try="$ac_link"
15117 case "(($ac_try" in
15118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15119 *) ac_try_echo=$ac_try;;
15120 esac
15121 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15122 (eval "$ac_link") 2>conftest.er1
15123 ac_status=$?
15124 grep -v '^ *+' conftest.er1 >conftest.err
15125 rm -f conftest.er1
15126 cat conftest.err >&5
15127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15128 (exit $ac_status); } && {
15129 test -z "$ac_c_werror_flag" ||
15130 test ! -s conftest.err
15131 } && test -s conftest$ac_exeext &&
15132 $as_test_x conftest$ac_exeext; then
15133 ac_cv_lib_cma_pthread_create=yes
15134 else
15135 echo "$as_me: failed program was:" >&5
15136 sed 's/^/| /' conftest.$ac_ext >&5
15138 ac_cv_lib_cma_pthread_create=no
15141 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15142 conftest$ac_exeext conftest.$ac_ext
15143 LIBS=$ac_check_lib_save_LIBS
15145 { echo "$as_me:$LINENO: result: $ac_cv_lib_cma_pthread_create" >&5
15146 echo "${ECHO_T}$ac_cv_lib_cma_pthread_create" >&6; }
15147 if test $ac_cv_lib_cma_pthread_create = yes; then
15148 cat >>confdefs.h <<\_ACEOF
15149 #define WITH_THREAD 1
15150 _ACEOF
15152 posix_threads=yes
15153 LIBS="$LIBS -lcma"
15154 THREADOBJ="Python/thread.o"
15155 else
15157 USE_THREAD_MODULE="#"
15174 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15175 conftest$ac_exeext conftest.$ac_ext
15185 { echo "$as_me:$LINENO: checking for usconfig in -lmpc" >&5
15186 echo $ECHO_N "checking for usconfig in -lmpc... $ECHO_C" >&6; }
15187 if test "${ac_cv_lib_mpc_usconfig+set}" = set; then
15188 echo $ECHO_N "(cached) $ECHO_C" >&6
15189 else
15190 ac_check_lib_save_LIBS=$LIBS
15191 LIBS="-lmpc $LIBS"
15192 cat >conftest.$ac_ext <<_ACEOF
15193 /* confdefs.h. */
15194 _ACEOF
15195 cat confdefs.h >>conftest.$ac_ext
15196 cat >>conftest.$ac_ext <<_ACEOF
15197 /* end confdefs.h. */
15199 /* Override any GCC internal prototype to avoid an error.
15200 Use char because int might match the return type of a GCC
15201 builtin and then its argument prototype would still apply. */
15202 #ifdef __cplusplus
15203 extern "C"
15204 #endif
15205 char usconfig ();
15207 main ()
15209 return usconfig ();
15211 return 0;
15213 _ACEOF
15214 rm -f conftest.$ac_objext conftest$ac_exeext
15215 if { (ac_try="$ac_link"
15216 case "(($ac_try" in
15217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15218 *) ac_try_echo=$ac_try;;
15219 esac
15220 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15221 (eval "$ac_link") 2>conftest.er1
15222 ac_status=$?
15223 grep -v '^ *+' conftest.er1 >conftest.err
15224 rm -f conftest.er1
15225 cat conftest.err >&5
15226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15227 (exit $ac_status); } && {
15228 test -z "$ac_c_werror_flag" ||
15229 test ! -s conftest.err
15230 } && test -s conftest$ac_exeext &&
15231 $as_test_x conftest$ac_exeext; then
15232 ac_cv_lib_mpc_usconfig=yes
15233 else
15234 echo "$as_me: failed program was:" >&5
15235 sed 's/^/| /' conftest.$ac_ext >&5
15237 ac_cv_lib_mpc_usconfig=no
15240 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15241 conftest$ac_exeext conftest.$ac_ext
15242 LIBS=$ac_check_lib_save_LIBS
15244 { echo "$as_me:$LINENO: result: $ac_cv_lib_mpc_usconfig" >&5
15245 echo "${ECHO_T}$ac_cv_lib_mpc_usconfig" >&6; }
15246 if test $ac_cv_lib_mpc_usconfig = yes; then
15247 cat >>confdefs.h <<\_ACEOF
15248 #define WITH_THREAD 1
15249 _ACEOF
15251 LIBS="$LIBS -lmpc"
15252 THREADOBJ="Python/thread.o"
15253 USE_THREAD_MODULE=""
15257 if test "$posix_threads" != "yes"; then
15258 { echo "$as_me:$LINENO: checking for thr_create in -lthread" >&5
15259 echo $ECHO_N "checking for thr_create in -lthread... $ECHO_C" >&6; }
15260 if test "${ac_cv_lib_thread_thr_create+set}" = set; then
15261 echo $ECHO_N "(cached) $ECHO_C" >&6
15262 else
15263 ac_check_lib_save_LIBS=$LIBS
15264 LIBS="-lthread $LIBS"
15265 cat >conftest.$ac_ext <<_ACEOF
15266 /* confdefs.h. */
15267 _ACEOF
15268 cat confdefs.h >>conftest.$ac_ext
15269 cat >>conftest.$ac_ext <<_ACEOF
15270 /* end confdefs.h. */
15272 /* Override any GCC internal prototype to avoid an error.
15273 Use char because int might match the return type of a GCC
15274 builtin and then its argument prototype would still apply. */
15275 #ifdef __cplusplus
15276 extern "C"
15277 #endif
15278 char thr_create ();
15280 main ()
15282 return thr_create ();
15284 return 0;
15286 _ACEOF
15287 rm -f conftest.$ac_objext conftest$ac_exeext
15288 if { (ac_try="$ac_link"
15289 case "(($ac_try" in
15290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15291 *) ac_try_echo=$ac_try;;
15292 esac
15293 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15294 (eval "$ac_link") 2>conftest.er1
15295 ac_status=$?
15296 grep -v '^ *+' conftest.er1 >conftest.err
15297 rm -f conftest.er1
15298 cat conftest.err >&5
15299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15300 (exit $ac_status); } && {
15301 test -z "$ac_c_werror_flag" ||
15302 test ! -s conftest.err
15303 } && test -s conftest$ac_exeext &&
15304 $as_test_x conftest$ac_exeext; then
15305 ac_cv_lib_thread_thr_create=yes
15306 else
15307 echo "$as_me: failed program was:" >&5
15308 sed 's/^/| /' conftest.$ac_ext >&5
15310 ac_cv_lib_thread_thr_create=no
15313 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15314 conftest$ac_exeext conftest.$ac_ext
15315 LIBS=$ac_check_lib_save_LIBS
15317 { echo "$as_me:$LINENO: result: $ac_cv_lib_thread_thr_create" >&5
15318 echo "${ECHO_T}$ac_cv_lib_thread_thr_create" >&6; }
15319 if test $ac_cv_lib_thread_thr_create = yes; then
15320 cat >>confdefs.h <<\_ACEOF
15321 #define WITH_THREAD 1
15322 _ACEOF
15324 LIBS="$LIBS -lthread"
15325 THREADOBJ="Python/thread.o"
15326 USE_THREAD_MODULE=""
15331 if test "$USE_THREAD_MODULE" != "#"
15332 then
15333 # If the above checks didn't disable threads, (at least) OSF1
15334 # needs this '-threads' argument during linking.
15335 case $ac_sys_system in
15336 OSF1) LDLAST=-threads;;
15337 esac
15341 if test "$posix_threads" = "yes"; then
15342 if test "$unistd_defines_pthreads" = "no"; then
15344 cat >>confdefs.h <<\_ACEOF
15345 #define _POSIX_THREADS 1
15346 _ACEOF
15350 # Bug 662787: Using semaphores causes unexplicable hangs on Solaris 8.
15351 case $ac_sys_system/$ac_sys_release in
15352 SunOS/5.6)
15353 cat >>confdefs.h <<\_ACEOF
15354 #define HAVE_PTHREAD_DESTRUCTOR 1
15355 _ACEOF
15358 SunOS/5.8)
15359 cat >>confdefs.h <<\_ACEOF
15360 #define HAVE_BROKEN_POSIX_SEMAPHORES 1
15361 _ACEOF
15364 AIX/5)
15365 cat >>confdefs.h <<\_ACEOF
15366 #define HAVE_BROKEN_POSIX_SEMAPHORES 1
15367 _ACEOF
15370 esac
15372 { echo "$as_me:$LINENO: checking if PTHREAD_SCOPE_SYSTEM is supported" >&5
15373 echo $ECHO_N "checking if PTHREAD_SCOPE_SYSTEM is supported... $ECHO_C" >&6; }
15374 if test "${ac_cv_pthread_system_supported+set}" = set; then
15375 echo $ECHO_N "(cached) $ECHO_C" >&6
15376 else
15377 if test "$cross_compiling" = yes; then
15378 ac_cv_pthread_system_supported=no
15379 else
15380 cat >conftest.$ac_ext <<_ACEOF
15381 /* confdefs.h. */
15382 _ACEOF
15383 cat confdefs.h >>conftest.$ac_ext
15384 cat >>conftest.$ac_ext <<_ACEOF
15385 /* end confdefs.h. */
15386 #include <pthread.h>
15387 void *foo(void *parm) {
15388 return NULL;
15390 main() {
15391 pthread_attr_t attr;
15392 pthread_t id;
15393 if (pthread_attr_init(&attr)) exit(-1);
15394 if (pthread_attr_setscope(&attr, PTHREAD_SCOPE_SYSTEM)) exit(-1);
15395 if (pthread_create(&id, &attr, foo, NULL)) exit(-1);
15396 exit(0);
15398 _ACEOF
15399 rm -f conftest$ac_exeext
15400 if { (ac_try="$ac_link"
15401 case "(($ac_try" in
15402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15403 *) ac_try_echo=$ac_try;;
15404 esac
15405 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15406 (eval "$ac_link") 2>&5
15407 ac_status=$?
15408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15409 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15410 { (case "(($ac_try" in
15411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15412 *) ac_try_echo=$ac_try;;
15413 esac
15414 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15415 (eval "$ac_try") 2>&5
15416 ac_status=$?
15417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15418 (exit $ac_status); }; }; then
15419 ac_cv_pthread_system_supported=yes
15420 else
15421 echo "$as_me: program exited with status $ac_status" >&5
15422 echo "$as_me: failed program was:" >&5
15423 sed 's/^/| /' conftest.$ac_ext >&5
15425 ( exit $ac_status )
15426 ac_cv_pthread_system_supported=no
15428 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15435 { echo "$as_me:$LINENO: result: $ac_cv_pthread_system_supported" >&5
15436 echo "${ECHO_T}$ac_cv_pthread_system_supported" >&6; }
15437 if test "$ac_cv_pthread_system_supported" = "yes"; then
15439 cat >>confdefs.h <<\_ACEOF
15440 #define PTHREAD_SYSTEM_SCHED_SUPPORTED 1
15441 _ACEOF
15445 for ac_func in pthread_sigmask
15447 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15448 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15449 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15450 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15451 echo $ECHO_N "(cached) $ECHO_C" >&6
15452 else
15453 cat >conftest.$ac_ext <<_ACEOF
15454 /* confdefs.h. */
15455 _ACEOF
15456 cat confdefs.h >>conftest.$ac_ext
15457 cat >>conftest.$ac_ext <<_ACEOF
15458 /* end confdefs.h. */
15459 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15460 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15461 #define $ac_func innocuous_$ac_func
15463 /* System header to define __stub macros and hopefully few prototypes,
15464 which can conflict with char $ac_func (); below.
15465 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15466 <limits.h> exists even on freestanding compilers. */
15468 #ifdef __STDC__
15469 # include <limits.h>
15470 #else
15471 # include <assert.h>
15472 #endif
15474 #undef $ac_func
15476 /* Override any GCC internal prototype to avoid an error.
15477 Use char because int might match the return type of a GCC
15478 builtin and then its argument prototype would still apply. */
15479 #ifdef __cplusplus
15480 extern "C"
15481 #endif
15482 char $ac_func ();
15483 /* The GNU C library defines this for functions which it implements
15484 to always fail with ENOSYS. Some functions are actually named
15485 something starting with __ and the normal name is an alias. */
15486 #if defined __stub_$ac_func || defined __stub___$ac_func
15487 choke me
15488 #endif
15491 main ()
15493 return $ac_func ();
15495 return 0;
15497 _ACEOF
15498 rm -f conftest.$ac_objext conftest$ac_exeext
15499 if { (ac_try="$ac_link"
15500 case "(($ac_try" in
15501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15502 *) ac_try_echo=$ac_try;;
15503 esac
15504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15505 (eval "$ac_link") 2>conftest.er1
15506 ac_status=$?
15507 grep -v '^ *+' conftest.er1 >conftest.err
15508 rm -f conftest.er1
15509 cat conftest.err >&5
15510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15511 (exit $ac_status); } && {
15512 test -z "$ac_c_werror_flag" ||
15513 test ! -s conftest.err
15514 } && test -s conftest$ac_exeext &&
15515 $as_test_x conftest$ac_exeext; then
15516 eval "$as_ac_var=yes"
15517 else
15518 echo "$as_me: failed program was:" >&5
15519 sed 's/^/| /' conftest.$ac_ext >&5
15521 eval "$as_ac_var=no"
15524 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15525 conftest$ac_exeext conftest.$ac_ext
15527 ac_res=`eval echo '${'$as_ac_var'}'`
15528 { echo "$as_me:$LINENO: result: $ac_res" >&5
15529 echo "${ECHO_T}$ac_res" >&6; }
15530 if test `eval echo '${'$as_ac_var'}'` = yes; then
15531 cat >>confdefs.h <<_ACEOF
15532 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15533 _ACEOF
15534 case $ac_sys_system in
15535 CYGWIN*)
15537 cat >>confdefs.h <<\_ACEOF
15538 #define HAVE_BROKEN_PTHREAD_SIGMASK 1
15539 _ACEOF
15542 esac
15544 done
15549 # Check for enable-ipv6
15552 { echo "$as_me:$LINENO: checking if --enable-ipv6 is specified" >&5
15553 echo $ECHO_N "checking if --enable-ipv6 is specified... $ECHO_C" >&6; }
15554 # Check whether --enable-ipv6 was given.
15555 if test "${enable_ipv6+set}" = set; then
15556 enableval=$enable_ipv6; case "$enableval" in
15558 { echo "$as_me:$LINENO: result: no" >&5
15559 echo "${ECHO_T}no" >&6; }
15560 ipv6=no
15562 *) { echo "$as_me:$LINENO: result: yes" >&5
15563 echo "${ECHO_T}yes" >&6; }
15564 cat >>confdefs.h <<\_ACEOF
15565 #define ENABLE_IPV6 1
15566 _ACEOF
15568 ipv6=yes
15570 esac
15571 else
15573 if test "$cross_compiling" = yes; then
15574 { echo "$as_me:$LINENO: result: no" >&5
15575 echo "${ECHO_T}no" >&6; }
15576 ipv6=no
15578 else
15579 cat >conftest.$ac_ext <<_ACEOF
15580 /* confdefs.h. */
15581 _ACEOF
15582 cat confdefs.h >>conftest.$ac_ext
15583 cat >>conftest.$ac_ext <<_ACEOF
15584 /* end confdefs.h. */
15585 /* AF_INET6 available check */
15586 #include <sys/types.h>
15587 #include <sys/socket.h>
15588 main()
15590 if (socket(AF_INET6, SOCK_STREAM, 0) < 0)
15591 exit(1);
15592 else
15593 exit(0);
15596 _ACEOF
15597 rm -f conftest$ac_exeext
15598 if { (ac_try="$ac_link"
15599 case "(($ac_try" in
15600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15601 *) ac_try_echo=$ac_try;;
15602 esac
15603 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15604 (eval "$ac_link") 2>&5
15605 ac_status=$?
15606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15607 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15608 { (case "(($ac_try" in
15609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15610 *) ac_try_echo=$ac_try;;
15611 esac
15612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15613 (eval "$ac_try") 2>&5
15614 ac_status=$?
15615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15616 (exit $ac_status); }; }; then
15617 { echo "$as_me:$LINENO: result: yes" >&5
15618 echo "${ECHO_T}yes" >&6; }
15619 ipv6=yes
15620 else
15621 echo "$as_me: program exited with status $ac_status" >&5
15622 echo "$as_me: failed program was:" >&5
15623 sed 's/^/| /' conftest.$ac_ext >&5
15625 ( exit $ac_status )
15626 { echo "$as_me:$LINENO: result: no" >&5
15627 echo "${ECHO_T}no" >&6; }
15628 ipv6=no
15630 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15635 if test "$ipv6" = "yes"; then
15636 { echo "$as_me:$LINENO: checking if RFC2553 API is available" >&5
15637 echo $ECHO_N "checking if RFC2553 API is available... $ECHO_C" >&6; }
15638 cat >conftest.$ac_ext <<_ACEOF
15639 /* confdefs.h. */
15640 _ACEOF
15641 cat confdefs.h >>conftest.$ac_ext
15642 cat >>conftest.$ac_ext <<_ACEOF
15643 /* end confdefs.h. */
15644 #include <sys/types.h>
15645 #include <netinet/in.h>
15647 main ()
15649 struct sockaddr_in6 x;
15650 x.sin6_scope_id;
15652 return 0;
15654 _ACEOF
15655 rm -f conftest.$ac_objext
15656 if { (ac_try="$ac_compile"
15657 case "(($ac_try" in
15658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15659 *) ac_try_echo=$ac_try;;
15660 esac
15661 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15662 (eval "$ac_compile") 2>conftest.er1
15663 ac_status=$?
15664 grep -v '^ *+' conftest.er1 >conftest.err
15665 rm -f conftest.er1
15666 cat conftest.err >&5
15667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15668 (exit $ac_status); } && {
15669 test -z "$ac_c_werror_flag" ||
15670 test ! -s conftest.err
15671 } && test -s conftest.$ac_objext; then
15672 { echo "$as_me:$LINENO: result: yes" >&5
15673 echo "${ECHO_T}yes" >&6; }
15674 ipv6=yes
15675 else
15676 echo "$as_me: failed program was:" >&5
15677 sed 's/^/| /' conftest.$ac_ext >&5
15679 { echo "$as_me:$LINENO: result: no" >&5
15680 echo "${ECHO_T}no" >&6; }
15681 ipv6=no
15684 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15687 if test "$ipv6" = "yes"; then
15688 cat >>confdefs.h <<\_ACEOF
15689 #define ENABLE_IPV6 1
15690 _ACEOF
15697 ipv6type=unknown
15698 ipv6lib=none
15699 ipv6trylibc=no
15701 if test "$ipv6" = "yes"; then
15702 { echo "$as_me:$LINENO: checking ipv6 stack type" >&5
15703 echo $ECHO_N "checking ipv6 stack type... $ECHO_C" >&6; }
15704 for i in inria kame linux-glibc linux-inet6 solaris toshiba v6d zeta;
15706 case $i in
15707 inria)
15708 cat >conftest.$ac_ext <<_ACEOF
15709 /* confdefs.h. */
15710 _ACEOF
15711 cat confdefs.h >>conftest.$ac_ext
15712 cat >>conftest.$ac_ext <<_ACEOF
15713 /* end confdefs.h. */
15715 #include <netinet/in.h>
15716 #ifdef IPV6_INRIA_VERSION
15718 #endif
15719 _ACEOF
15720 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15721 $EGREP "yes" >/dev/null 2>&1; then
15722 ipv6type=$i
15724 rm -f conftest*
15727 kame)
15728 cat >conftest.$ac_ext <<_ACEOF
15729 /* confdefs.h. */
15730 _ACEOF
15731 cat confdefs.h >>conftest.$ac_ext
15732 cat >>conftest.$ac_ext <<_ACEOF
15733 /* end confdefs.h. */
15735 #include <netinet/in.h>
15736 #ifdef __KAME__
15738 #endif
15739 _ACEOF
15740 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15741 $EGREP "yes" >/dev/null 2>&1; then
15742 ipv6type=$i;
15743 ipv6lib=inet6
15744 ipv6libdir=/usr/local/v6/lib
15745 ipv6trylibc=yes
15747 rm -f conftest*
15750 linux-glibc)
15751 cat >conftest.$ac_ext <<_ACEOF
15752 /* confdefs.h. */
15753 _ACEOF
15754 cat confdefs.h >>conftest.$ac_ext
15755 cat >>conftest.$ac_ext <<_ACEOF
15756 /* end confdefs.h. */
15758 #include <features.h>
15759 #if defined(__GLIBC__) && ((__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2))
15761 #endif
15762 _ACEOF
15763 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15764 $EGREP "yes" >/dev/null 2>&1; then
15765 ipv6type=$i;
15766 ipv6trylibc=yes
15768 rm -f conftest*
15771 linux-inet6)
15772 if test -d /usr/inet6; then
15773 ipv6type=$i
15774 ipv6lib=inet6
15775 ipv6libdir=/usr/inet6/lib
15776 BASECFLAGS="-I/usr/inet6/include $BASECFLAGS"
15779 solaris)
15780 if test -f /etc/netconfig; then
15781 if /usr/xpg4/bin/grep -q tcp6 /etc/netconfig; then
15782 ipv6type=$i
15783 ipv6trylibc=yes
15787 toshiba)
15788 cat >conftest.$ac_ext <<_ACEOF
15789 /* confdefs.h. */
15790 _ACEOF
15791 cat confdefs.h >>conftest.$ac_ext
15792 cat >>conftest.$ac_ext <<_ACEOF
15793 /* end confdefs.h. */
15795 #include <sys/param.h>
15796 #ifdef _TOSHIBA_INET6
15798 #endif
15799 _ACEOF
15800 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15801 $EGREP "yes" >/dev/null 2>&1; then
15802 ipv6type=$i;
15803 ipv6lib=inet6;
15804 ipv6libdir=/usr/local/v6/lib
15806 rm -f conftest*
15809 v6d)
15810 cat >conftest.$ac_ext <<_ACEOF
15811 /* confdefs.h. */
15812 _ACEOF
15813 cat confdefs.h >>conftest.$ac_ext
15814 cat >>conftest.$ac_ext <<_ACEOF
15815 /* end confdefs.h. */
15817 #include </usr/local/v6/include/sys/v6config.h>
15818 #ifdef __V6D__
15820 #endif
15821 _ACEOF
15822 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15823 $EGREP "yes" >/dev/null 2>&1; then
15824 ipv6type=$i;
15825 ipv6lib=v6;
15826 ipv6libdir=/usr/local/v6/lib;
15827 BASECFLAGS="-I/usr/local/v6/include $BASECFLAGS"
15829 rm -f conftest*
15832 zeta)
15833 cat >conftest.$ac_ext <<_ACEOF
15834 /* confdefs.h. */
15835 _ACEOF
15836 cat confdefs.h >>conftest.$ac_ext
15837 cat >>conftest.$ac_ext <<_ACEOF
15838 /* end confdefs.h. */
15840 #include <sys/param.h>
15841 #ifdef _ZETA_MINAMI_INET6
15843 #endif
15844 _ACEOF
15845 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15846 $EGREP "yes" >/dev/null 2>&1; then
15847 ipv6type=$i;
15848 ipv6lib=inet6;
15849 ipv6libdir=/usr/local/v6/lib
15851 rm -f conftest*
15854 esac
15855 if test "$ipv6type" != "unknown"; then
15856 break
15858 done
15859 { echo "$as_me:$LINENO: result: $ipv6type" >&5
15860 echo "${ECHO_T}$ipv6type" >&6; }
15863 if test "$ipv6" = "yes" -a "$ipv6lib" != "none"; then
15864 if test -d $ipv6libdir -a -f $ipv6libdir/lib$ipv6lib.a; then
15865 LIBS="-L$ipv6libdir -l$ipv6lib $LIBS"
15866 echo "using lib$ipv6lib"
15867 else
15868 if test $ipv6trylibc = "yes"; then
15869 echo "using libc"
15870 else
15871 echo 'Fatal: no $ipv6lib library found. cannot continue.'
15872 echo "You need to fetch lib$ipv6lib.a from appropriate"
15873 echo 'ipv6 kit and compile beforehand.'
15874 exit 1
15879 { echo "$as_me:$LINENO: checking for OSX 10.5 SDK or later" >&5
15880 echo $ECHO_N "checking for OSX 10.5 SDK or later... $ECHO_C" >&6; }
15881 cat >conftest.$ac_ext <<_ACEOF
15882 /* confdefs.h. */
15883 _ACEOF
15884 cat confdefs.h >>conftest.$ac_ext
15885 cat >>conftest.$ac_ext <<_ACEOF
15886 /* end confdefs.h. */
15887 #include <Carbon/Carbon.h>
15889 main ()
15891 FSIORefNum fRef = 0
15893 return 0;
15895 _ACEOF
15896 rm -f conftest.$ac_objext
15897 if { (ac_try="$ac_compile"
15898 case "(($ac_try" in
15899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15900 *) ac_try_echo=$ac_try;;
15901 esac
15902 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15903 (eval "$ac_compile") 2>conftest.er1
15904 ac_status=$?
15905 grep -v '^ *+' conftest.er1 >conftest.err
15906 rm -f conftest.er1
15907 cat conftest.err >&5
15908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15909 (exit $ac_status); } && {
15910 test -z "$ac_c_werror_flag" ||
15911 test ! -s conftest.err
15912 } && test -s conftest.$ac_objext; then
15914 cat >>confdefs.h <<\_ACEOF
15915 #define HAVE_OSX105_SDK 1
15916 _ACEOF
15918 { echo "$as_me:$LINENO: result: yes" >&5
15919 echo "${ECHO_T}yes" >&6; }
15920 else
15921 echo "$as_me: failed program was:" >&5
15922 sed 's/^/| /' conftest.$ac_ext >&5
15924 { echo "$as_me:$LINENO: result: no" >&5
15925 echo "${ECHO_T}no" >&6; }
15929 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15931 # Check for --with-doc-strings
15932 { echo "$as_me:$LINENO: checking for --with-doc-strings" >&5
15933 echo $ECHO_N "checking for --with-doc-strings... $ECHO_C" >&6; }
15935 # Check whether --with-doc-strings was given.
15936 if test "${with_doc_strings+set}" = set; then
15937 withval=$with_doc_strings;
15941 if test -z "$with_doc_strings"
15942 then with_doc_strings="yes"
15944 if test "$with_doc_strings" != "no"
15945 then
15947 cat >>confdefs.h <<\_ACEOF
15948 #define WITH_DOC_STRINGS 1
15949 _ACEOF
15952 { echo "$as_me:$LINENO: result: $with_doc_strings" >&5
15953 echo "${ECHO_T}$with_doc_strings" >&6; }
15955 # Check for Python-specific malloc support
15956 { echo "$as_me:$LINENO: checking for --with-tsc" >&5
15957 echo $ECHO_N "checking for --with-tsc... $ECHO_C" >&6; }
15959 # Check whether --with-tsc was given.
15960 if test "${with_tsc+set}" = set; then
15961 withval=$with_tsc;
15962 if test "$withval" != no
15963 then
15965 cat >>confdefs.h <<\_ACEOF
15966 #define WITH_TSC 1
15967 _ACEOF
15969 { echo "$as_me:$LINENO: result: yes" >&5
15970 echo "${ECHO_T}yes" >&6; }
15971 else { echo "$as_me:$LINENO: result: no" >&5
15972 echo "${ECHO_T}no" >&6; }
15974 else
15975 { echo "$as_me:$LINENO: result: no" >&5
15976 echo "${ECHO_T}no" >&6; }
15980 # Check for Python-specific malloc support
15981 { echo "$as_me:$LINENO: checking for --with-pymalloc" >&5
15982 echo $ECHO_N "checking for --with-pymalloc... $ECHO_C" >&6; }
15984 # Check whether --with-pymalloc was given.
15985 if test "${with_pymalloc+set}" = set; then
15986 withval=$with_pymalloc;
15990 if test -z "$with_pymalloc"
15991 then with_pymalloc="yes"
15993 if test "$with_pymalloc" != "no"
15994 then
15996 cat >>confdefs.h <<\_ACEOF
15997 #define WITH_PYMALLOC 1
15998 _ACEOF
16001 { echo "$as_me:$LINENO: result: $with_pymalloc" >&5
16002 echo "${ECHO_T}$with_pymalloc" >&6; }
16004 # Check for --with-wctype-functions
16005 { echo "$as_me:$LINENO: checking for --with-wctype-functions" >&5
16006 echo $ECHO_N "checking for --with-wctype-functions... $ECHO_C" >&6; }
16008 # Check whether --with-wctype-functions was given.
16009 if test "${with_wctype_functions+set}" = set; then
16010 withval=$with_wctype_functions;
16011 if test "$withval" != no
16012 then
16014 cat >>confdefs.h <<\_ACEOF
16015 #define WANT_WCTYPE_FUNCTIONS 1
16016 _ACEOF
16018 { echo "$as_me:$LINENO: result: yes" >&5
16019 echo "${ECHO_T}yes" >&6; }
16020 else { echo "$as_me:$LINENO: result: no" >&5
16021 echo "${ECHO_T}no" >&6; }
16023 else
16024 { echo "$as_me:$LINENO: result: no" >&5
16025 echo "${ECHO_T}no" >&6; }
16029 # -I${DLINCLDIR} is added to the compile rule for importdl.o
16031 DLINCLDIR=.
16033 # the dlopen() function means we might want to use dynload_shlib.o. some
16034 # platforms, such as AIX, have dlopen(), but don't want to use it.
16036 for ac_func in dlopen
16038 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16039 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16040 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16041 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16042 echo $ECHO_N "(cached) $ECHO_C" >&6
16043 else
16044 cat >conftest.$ac_ext <<_ACEOF
16045 /* confdefs.h. */
16046 _ACEOF
16047 cat confdefs.h >>conftest.$ac_ext
16048 cat >>conftest.$ac_ext <<_ACEOF
16049 /* end confdefs.h. */
16050 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16051 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16052 #define $ac_func innocuous_$ac_func
16054 /* System header to define __stub macros and hopefully few prototypes,
16055 which can conflict with char $ac_func (); below.
16056 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16057 <limits.h> exists even on freestanding compilers. */
16059 #ifdef __STDC__
16060 # include <limits.h>
16061 #else
16062 # include <assert.h>
16063 #endif
16065 #undef $ac_func
16067 /* Override any GCC internal prototype to avoid an error.
16068 Use char because int might match the return type of a GCC
16069 builtin and then its argument prototype would still apply. */
16070 #ifdef __cplusplus
16071 extern "C"
16072 #endif
16073 char $ac_func ();
16074 /* The GNU C library defines this for functions which it implements
16075 to always fail with ENOSYS. Some functions are actually named
16076 something starting with __ and the normal name is an alias. */
16077 #if defined __stub_$ac_func || defined __stub___$ac_func
16078 choke me
16079 #endif
16082 main ()
16084 return $ac_func ();
16086 return 0;
16088 _ACEOF
16089 rm -f conftest.$ac_objext conftest$ac_exeext
16090 if { (ac_try="$ac_link"
16091 case "(($ac_try" in
16092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16093 *) ac_try_echo=$ac_try;;
16094 esac
16095 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16096 (eval "$ac_link") 2>conftest.er1
16097 ac_status=$?
16098 grep -v '^ *+' conftest.er1 >conftest.err
16099 rm -f conftest.er1
16100 cat conftest.err >&5
16101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16102 (exit $ac_status); } && {
16103 test -z "$ac_c_werror_flag" ||
16104 test ! -s conftest.err
16105 } && test -s conftest$ac_exeext &&
16106 $as_test_x conftest$ac_exeext; then
16107 eval "$as_ac_var=yes"
16108 else
16109 echo "$as_me: failed program was:" >&5
16110 sed 's/^/| /' conftest.$ac_ext >&5
16112 eval "$as_ac_var=no"
16115 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16116 conftest$ac_exeext conftest.$ac_ext
16118 ac_res=`eval echo '${'$as_ac_var'}'`
16119 { echo "$as_me:$LINENO: result: $ac_res" >&5
16120 echo "${ECHO_T}$ac_res" >&6; }
16121 if test `eval echo '${'$as_ac_var'}'` = yes; then
16122 cat >>confdefs.h <<_ACEOF
16123 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16124 _ACEOF
16127 done
16130 # DYNLOADFILE specifies which dynload_*.o file we will use for dynamic
16131 # loading of modules.
16133 { echo "$as_me:$LINENO: checking DYNLOADFILE" >&5
16134 echo $ECHO_N "checking DYNLOADFILE... $ECHO_C" >&6; }
16135 if test -z "$DYNLOADFILE"
16136 then
16137 case $ac_sys_system/$ac_sys_release in
16138 AIX*) # Use dynload_shlib.c and dlopen() if we have it; otherwise dynload_aix.c
16139 if test "$ac_cv_func_dlopen" = yes
16140 then DYNLOADFILE="dynload_shlib.o"
16141 else DYNLOADFILE="dynload_aix.o"
16144 hp*|HP*) DYNLOADFILE="dynload_hpux.o";;
16145 # Use dynload_next.c only on 10.2 and below, which don't have native dlopen()
16146 Darwin/[0156]\..*) DYNLOADFILE="dynload_next.o";;
16147 atheos*) DYNLOADFILE="dynload_atheos.o";;
16149 # use dynload_shlib.c and dlopen() if we have it; otherwise stub
16150 # out any dynamic loading
16151 if test "$ac_cv_func_dlopen" = yes
16152 then DYNLOADFILE="dynload_shlib.o"
16153 else DYNLOADFILE="dynload_stub.o"
16156 esac
16158 { echo "$as_me:$LINENO: result: $DYNLOADFILE" >&5
16159 echo "${ECHO_T}$DYNLOADFILE" >&6; }
16160 if test "$DYNLOADFILE" != "dynload_stub.o"
16161 then
16163 cat >>confdefs.h <<\_ACEOF
16164 #define HAVE_DYNAMIC_LOADING 1
16165 _ACEOF
16169 # MACHDEP_OBJS can be set to platform-specific object files needed by Python
16172 { echo "$as_me:$LINENO: checking MACHDEP_OBJS" >&5
16173 echo $ECHO_N "checking MACHDEP_OBJS... $ECHO_C" >&6; }
16174 if test -z "$MACHDEP_OBJS"
16175 then
16176 MACHDEP_OBJS=$extra_machdep_objs
16177 else
16178 MACHDEP_OBJS="$MACHDEP_OBJS $extra_machdep_objs"
16180 { echo "$as_me:$LINENO: result: MACHDEP_OBJS" >&5
16181 echo "${ECHO_T}MACHDEP_OBJS" >&6; }
16183 # checks for library functions
16271 for ac_func in alarm setitimer getitimer bind_textdomain_codeset chown \
16272 clock confstr ctermid execv fchmod fchown fork fpathconf ftime ftruncate \
16273 gai_strerror getgroups getlogin getloadavg getpeername getpgid getpid \
16274 getpriority getpwent getspnam getspent getsid getwd \
16275 kill killpg lchmod lchown lstat mkfifo mknod mktime \
16276 mremap nice pathconf pause plock poll pthread_init \
16277 putenv readlink realpath \
16278 select sem_open sem_timedwait sem_getvalue sem_unlink setegid seteuid \
16279 setgid \
16280 setlocale setregid setreuid setsid setpgid setpgrp setuid setvbuf snprintf \
16281 sigaction siginterrupt sigrelse strftime strlcpy \
16282 sysconf tcgetpgrp tcsetpgrp tempnam timegm times tmpfile tmpnam tmpnam_r \
16283 truncate uname unsetenv utimes waitpid wait3 wait4 wcscoll wcsxfrm _getpty
16285 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16286 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16287 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16288 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16289 echo $ECHO_N "(cached) $ECHO_C" >&6
16290 else
16291 cat >conftest.$ac_ext <<_ACEOF
16292 /* confdefs.h. */
16293 _ACEOF
16294 cat confdefs.h >>conftest.$ac_ext
16295 cat >>conftest.$ac_ext <<_ACEOF
16296 /* end confdefs.h. */
16297 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16298 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16299 #define $ac_func innocuous_$ac_func
16301 /* System header to define __stub macros and hopefully few prototypes,
16302 which can conflict with char $ac_func (); below.
16303 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16304 <limits.h> exists even on freestanding compilers. */
16306 #ifdef __STDC__
16307 # include <limits.h>
16308 #else
16309 # include <assert.h>
16310 #endif
16312 #undef $ac_func
16314 /* Override any GCC internal prototype to avoid an error.
16315 Use char because int might match the return type of a GCC
16316 builtin and then its argument prototype would still apply. */
16317 #ifdef __cplusplus
16318 extern "C"
16319 #endif
16320 char $ac_func ();
16321 /* The GNU C library defines this for functions which it implements
16322 to always fail with ENOSYS. Some functions are actually named
16323 something starting with __ and the normal name is an alias. */
16324 #if defined __stub_$ac_func || defined __stub___$ac_func
16325 choke me
16326 #endif
16329 main ()
16331 return $ac_func ();
16333 return 0;
16335 _ACEOF
16336 rm -f conftest.$ac_objext conftest$ac_exeext
16337 if { (ac_try="$ac_link"
16338 case "(($ac_try" in
16339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16340 *) ac_try_echo=$ac_try;;
16341 esac
16342 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16343 (eval "$ac_link") 2>conftest.er1
16344 ac_status=$?
16345 grep -v '^ *+' conftest.er1 >conftest.err
16346 rm -f conftest.er1
16347 cat conftest.err >&5
16348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16349 (exit $ac_status); } && {
16350 test -z "$ac_c_werror_flag" ||
16351 test ! -s conftest.err
16352 } && test -s conftest$ac_exeext &&
16353 $as_test_x conftest$ac_exeext; then
16354 eval "$as_ac_var=yes"
16355 else
16356 echo "$as_me: failed program was:" >&5
16357 sed 's/^/| /' conftest.$ac_ext >&5
16359 eval "$as_ac_var=no"
16362 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16363 conftest$ac_exeext conftest.$ac_ext
16365 ac_res=`eval echo '${'$as_ac_var'}'`
16366 { echo "$as_me:$LINENO: result: $ac_res" >&5
16367 echo "${ECHO_T}$ac_res" >&6; }
16368 if test `eval echo '${'$as_ac_var'}'` = yes; then
16369 cat >>confdefs.h <<_ACEOF
16370 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16371 _ACEOF
16374 done
16377 # For some functions, having a definition is not sufficient, since
16378 # we want to take their address.
16379 { echo "$as_me:$LINENO: checking for chroot" >&5
16380 echo $ECHO_N "checking for chroot... $ECHO_C" >&6; }
16381 cat >conftest.$ac_ext <<_ACEOF
16382 /* confdefs.h. */
16383 _ACEOF
16384 cat confdefs.h >>conftest.$ac_ext
16385 cat >>conftest.$ac_ext <<_ACEOF
16386 /* end confdefs.h. */
16387 #include <unistd.h>
16389 main ()
16391 void *x=chroot
16393 return 0;
16395 _ACEOF
16396 rm -f conftest.$ac_objext
16397 if { (ac_try="$ac_compile"
16398 case "(($ac_try" in
16399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16400 *) ac_try_echo=$ac_try;;
16401 esac
16402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16403 (eval "$ac_compile") 2>conftest.er1
16404 ac_status=$?
16405 grep -v '^ *+' conftest.er1 >conftest.err
16406 rm -f conftest.er1
16407 cat conftest.err >&5
16408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16409 (exit $ac_status); } && {
16410 test -z "$ac_c_werror_flag" ||
16411 test ! -s conftest.err
16412 } && test -s conftest.$ac_objext; then
16414 cat >>confdefs.h <<\_ACEOF
16415 #define HAVE_CHROOT 1
16416 _ACEOF
16418 { echo "$as_me:$LINENO: result: yes" >&5
16419 echo "${ECHO_T}yes" >&6; }
16420 else
16421 echo "$as_me: failed program was:" >&5
16422 sed 's/^/| /' conftest.$ac_ext >&5
16424 { echo "$as_me:$LINENO: result: no" >&5
16425 echo "${ECHO_T}no" >&6; }
16429 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16430 { echo "$as_me:$LINENO: checking for link" >&5
16431 echo $ECHO_N "checking for link... $ECHO_C" >&6; }
16432 cat >conftest.$ac_ext <<_ACEOF
16433 /* confdefs.h. */
16434 _ACEOF
16435 cat confdefs.h >>conftest.$ac_ext
16436 cat >>conftest.$ac_ext <<_ACEOF
16437 /* end confdefs.h. */
16438 #include <unistd.h>
16440 main ()
16442 void *x=link
16444 return 0;
16446 _ACEOF
16447 rm -f conftest.$ac_objext
16448 if { (ac_try="$ac_compile"
16449 case "(($ac_try" in
16450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16451 *) ac_try_echo=$ac_try;;
16452 esac
16453 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16454 (eval "$ac_compile") 2>conftest.er1
16455 ac_status=$?
16456 grep -v '^ *+' conftest.er1 >conftest.err
16457 rm -f conftest.er1
16458 cat conftest.err >&5
16459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16460 (exit $ac_status); } && {
16461 test -z "$ac_c_werror_flag" ||
16462 test ! -s conftest.err
16463 } && test -s conftest.$ac_objext; then
16465 cat >>confdefs.h <<\_ACEOF
16466 #define HAVE_LINK 1
16467 _ACEOF
16469 { echo "$as_me:$LINENO: result: yes" >&5
16470 echo "${ECHO_T}yes" >&6; }
16471 else
16472 echo "$as_me: failed program was:" >&5
16473 sed 's/^/| /' conftest.$ac_ext >&5
16475 { echo "$as_me:$LINENO: result: no" >&5
16476 echo "${ECHO_T}no" >&6; }
16480 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16481 { echo "$as_me:$LINENO: checking for symlink" >&5
16482 echo $ECHO_N "checking for symlink... $ECHO_C" >&6; }
16483 cat >conftest.$ac_ext <<_ACEOF
16484 /* confdefs.h. */
16485 _ACEOF
16486 cat confdefs.h >>conftest.$ac_ext
16487 cat >>conftest.$ac_ext <<_ACEOF
16488 /* end confdefs.h. */
16489 #include <unistd.h>
16491 main ()
16493 void *x=symlink
16495 return 0;
16497 _ACEOF
16498 rm -f conftest.$ac_objext
16499 if { (ac_try="$ac_compile"
16500 case "(($ac_try" in
16501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16502 *) ac_try_echo=$ac_try;;
16503 esac
16504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16505 (eval "$ac_compile") 2>conftest.er1
16506 ac_status=$?
16507 grep -v '^ *+' conftest.er1 >conftest.err
16508 rm -f conftest.er1
16509 cat conftest.err >&5
16510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16511 (exit $ac_status); } && {
16512 test -z "$ac_c_werror_flag" ||
16513 test ! -s conftest.err
16514 } && test -s conftest.$ac_objext; then
16516 cat >>confdefs.h <<\_ACEOF
16517 #define HAVE_SYMLINK 1
16518 _ACEOF
16520 { echo "$as_me:$LINENO: result: yes" >&5
16521 echo "${ECHO_T}yes" >&6; }
16522 else
16523 echo "$as_me: failed program was:" >&5
16524 sed 's/^/| /' conftest.$ac_ext >&5
16526 { echo "$as_me:$LINENO: result: no" >&5
16527 echo "${ECHO_T}no" >&6; }
16531 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16532 { echo "$as_me:$LINENO: checking for fchdir" >&5
16533 echo $ECHO_N "checking for fchdir... $ECHO_C" >&6; }
16534 cat >conftest.$ac_ext <<_ACEOF
16535 /* confdefs.h. */
16536 _ACEOF
16537 cat confdefs.h >>conftest.$ac_ext
16538 cat >>conftest.$ac_ext <<_ACEOF
16539 /* end confdefs.h. */
16540 #include <unistd.h>
16542 main ()
16544 void *x=fchdir
16546 return 0;
16548 _ACEOF
16549 rm -f conftest.$ac_objext
16550 if { (ac_try="$ac_compile"
16551 case "(($ac_try" in
16552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16553 *) ac_try_echo=$ac_try;;
16554 esac
16555 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16556 (eval "$ac_compile") 2>conftest.er1
16557 ac_status=$?
16558 grep -v '^ *+' conftest.er1 >conftest.err
16559 rm -f conftest.er1
16560 cat conftest.err >&5
16561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16562 (exit $ac_status); } && {
16563 test -z "$ac_c_werror_flag" ||
16564 test ! -s conftest.err
16565 } && test -s conftest.$ac_objext; then
16567 cat >>confdefs.h <<\_ACEOF
16568 #define HAVE_FCHDIR 1
16569 _ACEOF
16571 { echo "$as_me:$LINENO: result: yes" >&5
16572 echo "${ECHO_T}yes" >&6; }
16573 else
16574 echo "$as_me: failed program was:" >&5
16575 sed 's/^/| /' conftest.$ac_ext >&5
16577 { echo "$as_me:$LINENO: result: no" >&5
16578 echo "${ECHO_T}no" >&6; }
16582 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16583 { echo "$as_me:$LINENO: checking for fsync" >&5
16584 echo $ECHO_N "checking for fsync... $ECHO_C" >&6; }
16585 cat >conftest.$ac_ext <<_ACEOF
16586 /* confdefs.h. */
16587 _ACEOF
16588 cat confdefs.h >>conftest.$ac_ext
16589 cat >>conftest.$ac_ext <<_ACEOF
16590 /* end confdefs.h. */
16591 #include <unistd.h>
16593 main ()
16595 void *x=fsync
16597 return 0;
16599 _ACEOF
16600 rm -f conftest.$ac_objext
16601 if { (ac_try="$ac_compile"
16602 case "(($ac_try" in
16603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16604 *) ac_try_echo=$ac_try;;
16605 esac
16606 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16607 (eval "$ac_compile") 2>conftest.er1
16608 ac_status=$?
16609 grep -v '^ *+' conftest.er1 >conftest.err
16610 rm -f conftest.er1
16611 cat conftest.err >&5
16612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16613 (exit $ac_status); } && {
16614 test -z "$ac_c_werror_flag" ||
16615 test ! -s conftest.err
16616 } && test -s conftest.$ac_objext; then
16618 cat >>confdefs.h <<\_ACEOF
16619 #define HAVE_FSYNC 1
16620 _ACEOF
16622 { echo "$as_me:$LINENO: result: yes" >&5
16623 echo "${ECHO_T}yes" >&6; }
16624 else
16625 echo "$as_me: failed program was:" >&5
16626 sed 's/^/| /' conftest.$ac_ext >&5
16628 { echo "$as_me:$LINENO: result: no" >&5
16629 echo "${ECHO_T}no" >&6; }
16633 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16634 { echo "$as_me:$LINENO: checking for fdatasync" >&5
16635 echo $ECHO_N "checking for fdatasync... $ECHO_C" >&6; }
16636 cat >conftest.$ac_ext <<_ACEOF
16637 /* confdefs.h. */
16638 _ACEOF
16639 cat confdefs.h >>conftest.$ac_ext
16640 cat >>conftest.$ac_ext <<_ACEOF
16641 /* end confdefs.h. */
16642 #include <unistd.h>
16644 main ()
16646 void *x=fdatasync
16648 return 0;
16650 _ACEOF
16651 rm -f conftest.$ac_objext
16652 if { (ac_try="$ac_compile"
16653 case "(($ac_try" in
16654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16655 *) ac_try_echo=$ac_try;;
16656 esac
16657 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16658 (eval "$ac_compile") 2>conftest.er1
16659 ac_status=$?
16660 grep -v '^ *+' conftest.er1 >conftest.err
16661 rm -f conftest.er1
16662 cat conftest.err >&5
16663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16664 (exit $ac_status); } && {
16665 test -z "$ac_c_werror_flag" ||
16666 test ! -s conftest.err
16667 } && test -s conftest.$ac_objext; then
16669 cat >>confdefs.h <<\_ACEOF
16670 #define HAVE_FDATASYNC 1
16671 _ACEOF
16673 { echo "$as_me:$LINENO: result: yes" >&5
16674 echo "${ECHO_T}yes" >&6; }
16675 else
16676 echo "$as_me: failed program was:" >&5
16677 sed 's/^/| /' conftest.$ac_ext >&5
16679 { echo "$as_me:$LINENO: result: no" >&5
16680 echo "${ECHO_T}no" >&6; }
16684 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16685 { echo "$as_me:$LINENO: checking for epoll" >&5
16686 echo $ECHO_N "checking for epoll... $ECHO_C" >&6; }
16687 cat >conftest.$ac_ext <<_ACEOF
16688 /* confdefs.h. */
16689 _ACEOF
16690 cat confdefs.h >>conftest.$ac_ext
16691 cat >>conftest.$ac_ext <<_ACEOF
16692 /* end confdefs.h. */
16693 #include <sys/epoll.h>
16695 main ()
16697 void *x=epoll_create
16699 return 0;
16701 _ACEOF
16702 rm -f conftest.$ac_objext
16703 if { (ac_try="$ac_compile"
16704 case "(($ac_try" in
16705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16706 *) ac_try_echo=$ac_try;;
16707 esac
16708 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16709 (eval "$ac_compile") 2>conftest.er1
16710 ac_status=$?
16711 grep -v '^ *+' conftest.er1 >conftest.err
16712 rm -f conftest.er1
16713 cat conftest.err >&5
16714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16715 (exit $ac_status); } && {
16716 test -z "$ac_c_werror_flag" ||
16717 test ! -s conftest.err
16718 } && test -s conftest.$ac_objext; then
16720 cat >>confdefs.h <<\_ACEOF
16721 #define HAVE_EPOLL 1
16722 _ACEOF
16724 { echo "$as_me:$LINENO: result: yes" >&5
16725 echo "${ECHO_T}yes" >&6; }
16726 else
16727 echo "$as_me: failed program was:" >&5
16728 sed 's/^/| /' conftest.$ac_ext >&5
16730 { echo "$as_me:$LINENO: result: no" >&5
16731 echo "${ECHO_T}no" >&6; }
16735 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16736 { echo "$as_me:$LINENO: checking for kqueue" >&5
16737 echo $ECHO_N "checking for kqueue... $ECHO_C" >&6; }
16738 cat >conftest.$ac_ext <<_ACEOF
16739 /* confdefs.h. */
16740 _ACEOF
16741 cat confdefs.h >>conftest.$ac_ext
16742 cat >>conftest.$ac_ext <<_ACEOF
16743 /* end confdefs.h. */
16745 #include <sys/types.h>
16746 #include <sys/event.h>
16749 main ()
16751 int x=kqueue()
16753 return 0;
16755 _ACEOF
16756 rm -f conftest.$ac_objext
16757 if { (ac_try="$ac_compile"
16758 case "(($ac_try" in
16759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16760 *) ac_try_echo=$ac_try;;
16761 esac
16762 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16763 (eval "$ac_compile") 2>conftest.er1
16764 ac_status=$?
16765 grep -v '^ *+' conftest.er1 >conftest.err
16766 rm -f conftest.er1
16767 cat conftest.err >&5
16768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16769 (exit $ac_status); } && {
16770 test -z "$ac_c_werror_flag" ||
16771 test ! -s conftest.err
16772 } && test -s conftest.$ac_objext; then
16774 cat >>confdefs.h <<\_ACEOF
16775 #define HAVE_KQUEUE 1
16776 _ACEOF
16778 { echo "$as_me:$LINENO: result: yes" >&5
16779 echo "${ECHO_T}yes" >&6; }
16780 else
16781 echo "$as_me: failed program was:" >&5
16782 sed 's/^/| /' conftest.$ac_ext >&5
16784 { echo "$as_me:$LINENO: result: no" >&5
16785 echo "${ECHO_T}no" >&6; }
16789 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16790 # On some systems (eg. FreeBSD 5), we would find a definition of the
16791 # functions ctermid_r, setgroups in the library, but no prototype
16792 # (e.g. because we use _XOPEN_SOURCE). See whether we can take their
16793 # address to avoid compiler warnings and potential miscompilations
16794 # because of the missing prototypes.
16796 { echo "$as_me:$LINENO: checking for ctermid_r" >&5
16797 echo $ECHO_N "checking for ctermid_r... $ECHO_C" >&6; }
16798 cat >conftest.$ac_ext <<_ACEOF
16799 /* confdefs.h. */
16800 _ACEOF
16801 cat confdefs.h >>conftest.$ac_ext
16802 cat >>conftest.$ac_ext <<_ACEOF
16803 /* end confdefs.h. */
16805 #include "confdefs.h"
16806 #include <stdio.h>
16809 main ()
16811 void* p = ctermid_r
16813 return 0;
16815 _ACEOF
16816 rm -f conftest.$ac_objext
16817 if { (ac_try="$ac_compile"
16818 case "(($ac_try" in
16819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16820 *) ac_try_echo=$ac_try;;
16821 esac
16822 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16823 (eval "$ac_compile") 2>conftest.er1
16824 ac_status=$?
16825 grep -v '^ *+' conftest.er1 >conftest.err
16826 rm -f conftest.er1
16827 cat conftest.err >&5
16828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16829 (exit $ac_status); } && {
16830 test -z "$ac_c_werror_flag" ||
16831 test ! -s conftest.err
16832 } && test -s conftest.$ac_objext; then
16834 cat >>confdefs.h <<\_ACEOF
16835 #define HAVE_CTERMID_R 1
16836 _ACEOF
16838 { echo "$as_me:$LINENO: result: yes" >&5
16839 echo "${ECHO_T}yes" >&6; }
16840 else
16841 echo "$as_me: failed program was:" >&5
16842 sed 's/^/| /' conftest.$ac_ext >&5
16844 { echo "$as_me:$LINENO: result: no" >&5
16845 echo "${ECHO_T}no" >&6; }
16849 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16851 { echo "$as_me:$LINENO: checking for flock" >&5
16852 echo $ECHO_N "checking for flock... $ECHO_C" >&6; }
16853 cat >conftest.$ac_ext <<_ACEOF
16854 /* confdefs.h. */
16855 _ACEOF
16856 cat confdefs.h >>conftest.$ac_ext
16857 cat >>conftest.$ac_ext <<_ACEOF
16858 /* end confdefs.h. */
16860 #include "confdefs.h"
16861 #include <sys/file.h>
16864 main ()
16866 void* p = flock
16868 return 0;
16870 _ACEOF
16871 rm -f conftest.$ac_objext
16872 if { (ac_try="$ac_compile"
16873 case "(($ac_try" in
16874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16875 *) ac_try_echo=$ac_try;;
16876 esac
16877 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16878 (eval "$ac_compile") 2>conftest.er1
16879 ac_status=$?
16880 grep -v '^ *+' conftest.er1 >conftest.err
16881 rm -f conftest.er1
16882 cat conftest.err >&5
16883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16884 (exit $ac_status); } && {
16885 test -z "$ac_c_werror_flag" ||
16886 test ! -s conftest.err
16887 } && test -s conftest.$ac_objext; then
16889 cat >>confdefs.h <<\_ACEOF
16890 #define HAVE_FLOCK 1
16891 _ACEOF
16893 { echo "$as_me:$LINENO: result: yes" >&5
16894 echo "${ECHO_T}yes" >&6; }
16895 else
16896 echo "$as_me: failed program was:" >&5
16897 sed 's/^/| /' conftest.$ac_ext >&5
16899 { echo "$as_me:$LINENO: result: no" >&5
16900 echo "${ECHO_T}no" >&6; }
16904 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16906 { echo "$as_me:$LINENO: checking for getpagesize" >&5
16907 echo $ECHO_N "checking for getpagesize... $ECHO_C" >&6; }
16908 cat >conftest.$ac_ext <<_ACEOF
16909 /* confdefs.h. */
16910 _ACEOF
16911 cat confdefs.h >>conftest.$ac_ext
16912 cat >>conftest.$ac_ext <<_ACEOF
16913 /* end confdefs.h. */
16915 #include "confdefs.h"
16916 #include <unistd.h>
16919 main ()
16921 void* p = getpagesize
16923 return 0;
16925 _ACEOF
16926 rm -f conftest.$ac_objext
16927 if { (ac_try="$ac_compile"
16928 case "(($ac_try" in
16929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16930 *) ac_try_echo=$ac_try;;
16931 esac
16932 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16933 (eval "$ac_compile") 2>conftest.er1
16934 ac_status=$?
16935 grep -v '^ *+' conftest.er1 >conftest.err
16936 rm -f conftest.er1
16937 cat conftest.err >&5
16938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16939 (exit $ac_status); } && {
16940 test -z "$ac_c_werror_flag" ||
16941 test ! -s conftest.err
16942 } && test -s conftest.$ac_objext; then
16944 cat >>confdefs.h <<\_ACEOF
16945 #define HAVE_GETPAGESIZE 1
16946 _ACEOF
16948 { echo "$as_me:$LINENO: result: yes" >&5
16949 echo "${ECHO_T}yes" >&6; }
16950 else
16951 echo "$as_me: failed program was:" >&5
16952 sed 's/^/| /' conftest.$ac_ext >&5
16954 { echo "$as_me:$LINENO: result: no" >&5
16955 echo "${ECHO_T}no" >&6; }
16959 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16961 for ac_prog in true
16963 # Extract the first word of "$ac_prog", so it can be a program name with args.
16964 set dummy $ac_prog; ac_word=$2
16965 { echo "$as_me:$LINENO: checking for $ac_word" >&5
16966 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
16967 if test "${ac_cv_prog_TRUE+set}" = set; then
16968 echo $ECHO_N "(cached) $ECHO_C" >&6
16969 else
16970 if test -n "$TRUE"; then
16971 ac_cv_prog_TRUE="$TRUE" # Let the user override the test.
16972 else
16973 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16974 for as_dir in $PATH
16976 IFS=$as_save_IFS
16977 test -z "$as_dir" && as_dir=.
16978 for ac_exec_ext in '' $ac_executable_extensions; do
16979 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16980 ac_cv_prog_TRUE="$ac_prog"
16981 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16982 break 2
16984 done
16985 done
16986 IFS=$as_save_IFS
16990 TRUE=$ac_cv_prog_TRUE
16991 if test -n "$TRUE"; then
16992 { echo "$as_me:$LINENO: result: $TRUE" >&5
16993 echo "${ECHO_T}$TRUE" >&6; }
16994 else
16995 { echo "$as_me:$LINENO: result: no" >&5
16996 echo "${ECHO_T}no" >&6; }
17000 test -n "$TRUE" && break
17001 done
17002 test -n "$TRUE" || TRUE="/bin/true"
17005 { echo "$as_me:$LINENO: checking for inet_aton in -lc" >&5
17006 echo $ECHO_N "checking for inet_aton in -lc... $ECHO_C" >&6; }
17007 if test "${ac_cv_lib_c_inet_aton+set}" = set; then
17008 echo $ECHO_N "(cached) $ECHO_C" >&6
17009 else
17010 ac_check_lib_save_LIBS=$LIBS
17011 LIBS="-lc $LIBS"
17012 cat >conftest.$ac_ext <<_ACEOF
17013 /* confdefs.h. */
17014 _ACEOF
17015 cat confdefs.h >>conftest.$ac_ext
17016 cat >>conftest.$ac_ext <<_ACEOF
17017 /* end confdefs.h. */
17019 /* Override any GCC internal prototype to avoid an error.
17020 Use char because int might match the return type of a GCC
17021 builtin and then its argument prototype would still apply. */
17022 #ifdef __cplusplus
17023 extern "C"
17024 #endif
17025 char inet_aton ();
17027 main ()
17029 return inet_aton ();
17031 return 0;
17033 _ACEOF
17034 rm -f conftest.$ac_objext conftest$ac_exeext
17035 if { (ac_try="$ac_link"
17036 case "(($ac_try" in
17037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17038 *) ac_try_echo=$ac_try;;
17039 esac
17040 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17041 (eval "$ac_link") 2>conftest.er1
17042 ac_status=$?
17043 grep -v '^ *+' conftest.er1 >conftest.err
17044 rm -f conftest.er1
17045 cat conftest.err >&5
17046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17047 (exit $ac_status); } && {
17048 test -z "$ac_c_werror_flag" ||
17049 test ! -s conftest.err
17050 } && test -s conftest$ac_exeext &&
17051 $as_test_x conftest$ac_exeext; then
17052 ac_cv_lib_c_inet_aton=yes
17053 else
17054 echo "$as_me: failed program was:" >&5
17055 sed 's/^/| /' conftest.$ac_ext >&5
17057 ac_cv_lib_c_inet_aton=no
17060 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17061 conftest$ac_exeext conftest.$ac_ext
17062 LIBS=$ac_check_lib_save_LIBS
17064 { echo "$as_me:$LINENO: result: $ac_cv_lib_c_inet_aton" >&5
17065 echo "${ECHO_T}$ac_cv_lib_c_inet_aton" >&6; }
17066 if test $ac_cv_lib_c_inet_aton = yes; then
17067 $ac_cv_prog_TRUE
17068 else
17070 { echo "$as_me:$LINENO: checking for inet_aton in -lresolv" >&5
17071 echo $ECHO_N "checking for inet_aton in -lresolv... $ECHO_C" >&6; }
17072 if test "${ac_cv_lib_resolv_inet_aton+set}" = set; then
17073 echo $ECHO_N "(cached) $ECHO_C" >&6
17074 else
17075 ac_check_lib_save_LIBS=$LIBS
17076 LIBS="-lresolv $LIBS"
17077 cat >conftest.$ac_ext <<_ACEOF
17078 /* confdefs.h. */
17079 _ACEOF
17080 cat confdefs.h >>conftest.$ac_ext
17081 cat >>conftest.$ac_ext <<_ACEOF
17082 /* end confdefs.h. */
17084 /* Override any GCC internal prototype to avoid an error.
17085 Use char because int might match the return type of a GCC
17086 builtin and then its argument prototype would still apply. */
17087 #ifdef __cplusplus
17088 extern "C"
17089 #endif
17090 char inet_aton ();
17092 main ()
17094 return inet_aton ();
17096 return 0;
17098 _ACEOF
17099 rm -f conftest.$ac_objext conftest$ac_exeext
17100 if { (ac_try="$ac_link"
17101 case "(($ac_try" in
17102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17103 *) ac_try_echo=$ac_try;;
17104 esac
17105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17106 (eval "$ac_link") 2>conftest.er1
17107 ac_status=$?
17108 grep -v '^ *+' conftest.er1 >conftest.err
17109 rm -f conftest.er1
17110 cat conftest.err >&5
17111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17112 (exit $ac_status); } && {
17113 test -z "$ac_c_werror_flag" ||
17114 test ! -s conftest.err
17115 } && test -s conftest$ac_exeext &&
17116 $as_test_x conftest$ac_exeext; then
17117 ac_cv_lib_resolv_inet_aton=yes
17118 else
17119 echo "$as_me: failed program was:" >&5
17120 sed 's/^/| /' conftest.$ac_ext >&5
17122 ac_cv_lib_resolv_inet_aton=no
17125 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17126 conftest$ac_exeext conftest.$ac_ext
17127 LIBS=$ac_check_lib_save_LIBS
17129 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_aton" >&5
17130 echo "${ECHO_T}$ac_cv_lib_resolv_inet_aton" >&6; }
17131 if test $ac_cv_lib_resolv_inet_aton = yes; then
17132 cat >>confdefs.h <<_ACEOF
17133 #define HAVE_LIBRESOLV 1
17134 _ACEOF
17136 LIBS="-lresolv $LIBS"
17144 # On Tru64, chflags seems to be present, but calling it will
17145 # exit Python
17146 { echo "$as_me:$LINENO: checking for chflags" >&5
17147 echo $ECHO_N "checking for chflags... $ECHO_C" >&6; }
17148 if test "$cross_compiling" = yes; then
17149 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
17150 See \`config.log' for more details." >&5
17151 echo "$as_me: error: cannot run test program while cross compiling
17152 See \`config.log' for more details." >&2;}
17153 { (exit 1); exit 1; }; }
17154 else
17155 cat >conftest.$ac_ext <<_ACEOF
17156 /* confdefs.h. */
17157 _ACEOF
17158 cat confdefs.h >>conftest.$ac_ext
17159 cat >>conftest.$ac_ext <<_ACEOF
17160 /* end confdefs.h. */
17162 #include <sys/stat.h>
17163 #include <unistd.h>
17164 int main(int argc, char*argv[])
17166 if(chflags(argv[0], 0) != 0)
17167 return 1;
17168 return 0;
17171 _ACEOF
17172 rm -f conftest$ac_exeext
17173 if { (ac_try="$ac_link"
17174 case "(($ac_try" in
17175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17176 *) ac_try_echo=$ac_try;;
17177 esac
17178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17179 (eval "$ac_link") 2>&5
17180 ac_status=$?
17181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17182 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17183 { (case "(($ac_try" in
17184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17185 *) ac_try_echo=$ac_try;;
17186 esac
17187 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17188 (eval "$ac_try") 2>&5
17189 ac_status=$?
17190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17191 (exit $ac_status); }; }; then
17193 cat >>confdefs.h <<\_ACEOF
17194 #define HAVE_CHFLAGS 1
17195 _ACEOF
17197 { echo "$as_me:$LINENO: result: yes" >&5
17198 echo "${ECHO_T}yes" >&6; }
17199 else
17200 echo "$as_me: program exited with status $ac_status" >&5
17201 echo "$as_me: failed program was:" >&5
17202 sed 's/^/| /' conftest.$ac_ext >&5
17204 ( exit $ac_status )
17205 { echo "$as_me:$LINENO: result: no" >&5
17206 echo "${ECHO_T}no" >&6; }
17209 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17214 { echo "$as_me:$LINENO: checking for lchflags" >&5
17215 echo $ECHO_N "checking for lchflags... $ECHO_C" >&6; }
17216 if test "$cross_compiling" = yes; then
17217 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
17218 See \`config.log' for more details." >&5
17219 echo "$as_me: error: cannot run test program while cross compiling
17220 See \`config.log' for more details." >&2;}
17221 { (exit 1); exit 1; }; }
17222 else
17223 cat >conftest.$ac_ext <<_ACEOF
17224 /* confdefs.h. */
17225 _ACEOF
17226 cat confdefs.h >>conftest.$ac_ext
17227 cat >>conftest.$ac_ext <<_ACEOF
17228 /* end confdefs.h. */
17230 #include <sys/stat.h>
17231 #include <unistd.h>
17232 int main(int argc, char*argv[])
17234 if(lchflags(argv[0], 0) != 0)
17235 return 1;
17236 return 0;
17239 _ACEOF
17240 rm -f conftest$ac_exeext
17241 if { (ac_try="$ac_link"
17242 case "(($ac_try" in
17243 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17244 *) ac_try_echo=$ac_try;;
17245 esac
17246 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17247 (eval "$ac_link") 2>&5
17248 ac_status=$?
17249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17250 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17251 { (case "(($ac_try" in
17252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17253 *) ac_try_echo=$ac_try;;
17254 esac
17255 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17256 (eval "$ac_try") 2>&5
17257 ac_status=$?
17258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17259 (exit $ac_status); }; }; then
17261 cat >>confdefs.h <<\_ACEOF
17262 #define HAVE_LCHFLAGS 1
17263 _ACEOF
17265 { echo "$as_me:$LINENO: result: yes" >&5
17266 echo "${ECHO_T}yes" >&6; }
17267 else
17268 echo "$as_me: program exited with status $ac_status" >&5
17269 echo "$as_me: failed program was:" >&5
17270 sed 's/^/| /' conftest.$ac_ext >&5
17272 ( exit $ac_status )
17273 { echo "$as_me:$LINENO: result: no" >&5
17274 echo "${ECHO_T}no" >&6; }
17277 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17282 case $ac_sys_system/$ac_sys_release in
17283 Darwin/*)
17284 _CUR_CFLAGS="${CFLAGS}"
17285 _CUR_LDFLAGS="${LDFLAGS}"
17286 CFLAGS="${CFLAGS} -Wl,-search_paths_first"
17287 LDFLAGS="${LDFLAGS} -Wl,-search_paths_first -L/usr/local/lib"
17289 esac
17291 { echo "$as_me:$LINENO: checking for inflateCopy in -lz" >&5
17292 echo $ECHO_N "checking for inflateCopy in -lz... $ECHO_C" >&6; }
17293 if test "${ac_cv_lib_z_inflateCopy+set}" = set; then
17294 echo $ECHO_N "(cached) $ECHO_C" >&6
17295 else
17296 ac_check_lib_save_LIBS=$LIBS
17297 LIBS="-lz $LIBS"
17298 cat >conftest.$ac_ext <<_ACEOF
17299 /* confdefs.h. */
17300 _ACEOF
17301 cat confdefs.h >>conftest.$ac_ext
17302 cat >>conftest.$ac_ext <<_ACEOF
17303 /* end confdefs.h. */
17305 /* Override any GCC internal prototype to avoid an error.
17306 Use char because int might match the return type of a GCC
17307 builtin and then its argument prototype would still apply. */
17308 #ifdef __cplusplus
17309 extern "C"
17310 #endif
17311 char inflateCopy ();
17313 main ()
17315 return inflateCopy ();
17317 return 0;
17319 _ACEOF
17320 rm -f conftest.$ac_objext conftest$ac_exeext
17321 if { (ac_try="$ac_link"
17322 case "(($ac_try" in
17323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17324 *) ac_try_echo=$ac_try;;
17325 esac
17326 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17327 (eval "$ac_link") 2>conftest.er1
17328 ac_status=$?
17329 grep -v '^ *+' conftest.er1 >conftest.err
17330 rm -f conftest.er1
17331 cat conftest.err >&5
17332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17333 (exit $ac_status); } && {
17334 test -z "$ac_c_werror_flag" ||
17335 test ! -s conftest.err
17336 } && test -s conftest$ac_exeext &&
17337 $as_test_x conftest$ac_exeext; then
17338 ac_cv_lib_z_inflateCopy=yes
17339 else
17340 echo "$as_me: failed program was:" >&5
17341 sed 's/^/| /' conftest.$ac_ext >&5
17343 ac_cv_lib_z_inflateCopy=no
17346 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17347 conftest$ac_exeext conftest.$ac_ext
17348 LIBS=$ac_check_lib_save_LIBS
17350 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_inflateCopy" >&5
17351 echo "${ECHO_T}$ac_cv_lib_z_inflateCopy" >&6; }
17352 if test $ac_cv_lib_z_inflateCopy = yes; then
17354 cat >>confdefs.h <<\_ACEOF
17355 #define HAVE_ZLIB_COPY 1
17356 _ACEOF
17361 case $ac_sys_system/$ac_sys_release in
17362 Darwin/*)
17363 CFLAGS="${_CUR_CFLAGS}"
17364 LDFLAGS="${_CUR_LDFLAGS}"
17366 esac
17368 { echo "$as_me:$LINENO: checking for hstrerror" >&5
17369 echo $ECHO_N "checking for hstrerror... $ECHO_C" >&6; }
17370 cat >conftest.$ac_ext <<_ACEOF
17371 /* confdefs.h. */
17372 _ACEOF
17373 cat confdefs.h >>conftest.$ac_ext
17374 cat >>conftest.$ac_ext <<_ACEOF
17375 /* end confdefs.h. */
17377 #include "confdefs.h"
17378 #include <netdb.h>
17381 main ()
17383 void* p = hstrerror; hstrerror(0)
17385 return 0;
17387 _ACEOF
17388 rm -f conftest.$ac_objext conftest$ac_exeext
17389 if { (ac_try="$ac_link"
17390 case "(($ac_try" in
17391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17392 *) ac_try_echo=$ac_try;;
17393 esac
17394 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17395 (eval "$ac_link") 2>conftest.er1
17396 ac_status=$?
17397 grep -v '^ *+' conftest.er1 >conftest.err
17398 rm -f conftest.er1
17399 cat conftest.err >&5
17400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17401 (exit $ac_status); } && {
17402 test -z "$ac_c_werror_flag" ||
17403 test ! -s conftest.err
17404 } && test -s conftest$ac_exeext &&
17405 $as_test_x conftest$ac_exeext; then
17407 cat >>confdefs.h <<\_ACEOF
17408 #define HAVE_HSTRERROR 1
17409 _ACEOF
17411 { echo "$as_me:$LINENO: result: yes" >&5
17412 echo "${ECHO_T}yes" >&6; }
17413 else
17414 echo "$as_me: failed program was:" >&5
17415 sed 's/^/| /' conftest.$ac_ext >&5
17417 { echo "$as_me:$LINENO: result: no" >&5
17418 echo "${ECHO_T}no" >&6; }
17422 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17423 conftest$ac_exeext conftest.$ac_ext
17425 { echo "$as_me:$LINENO: checking for inet_aton" >&5
17426 echo $ECHO_N "checking for inet_aton... $ECHO_C" >&6; }
17427 cat >conftest.$ac_ext <<_ACEOF
17428 /* confdefs.h. */
17429 _ACEOF
17430 cat confdefs.h >>conftest.$ac_ext
17431 cat >>conftest.$ac_ext <<_ACEOF
17432 /* end confdefs.h. */
17434 #include "confdefs.h"
17435 #include <sys/types.h>
17436 #include <sys/socket.h>
17437 #include <netinet/in.h>
17438 #include <arpa/inet.h>
17441 main ()
17443 void* p = inet_aton;inet_aton(0,0)
17445 return 0;
17447 _ACEOF
17448 rm -f conftest.$ac_objext conftest$ac_exeext
17449 if { (ac_try="$ac_link"
17450 case "(($ac_try" in
17451 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17452 *) ac_try_echo=$ac_try;;
17453 esac
17454 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17455 (eval "$ac_link") 2>conftest.er1
17456 ac_status=$?
17457 grep -v '^ *+' conftest.er1 >conftest.err
17458 rm -f conftest.er1
17459 cat conftest.err >&5
17460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17461 (exit $ac_status); } && {
17462 test -z "$ac_c_werror_flag" ||
17463 test ! -s conftest.err
17464 } && test -s conftest$ac_exeext &&
17465 $as_test_x conftest$ac_exeext; then
17467 cat >>confdefs.h <<\_ACEOF
17468 #define HAVE_INET_ATON 1
17469 _ACEOF
17471 { echo "$as_me:$LINENO: result: yes" >&5
17472 echo "${ECHO_T}yes" >&6; }
17473 else
17474 echo "$as_me: failed program was:" >&5
17475 sed 's/^/| /' conftest.$ac_ext >&5
17477 { echo "$as_me:$LINENO: result: no" >&5
17478 echo "${ECHO_T}no" >&6; }
17482 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17483 conftest$ac_exeext conftest.$ac_ext
17485 { echo "$as_me:$LINENO: checking for inet_pton" >&5
17486 echo $ECHO_N "checking for inet_pton... $ECHO_C" >&6; }
17487 cat >conftest.$ac_ext <<_ACEOF
17488 /* confdefs.h. */
17489 _ACEOF
17490 cat confdefs.h >>conftest.$ac_ext
17491 cat >>conftest.$ac_ext <<_ACEOF
17492 /* end confdefs.h. */
17494 #include "confdefs.h"
17495 #include <sys/types.h>
17496 #include <sys/socket.h>
17497 #include <netinet/in.h>
17498 #include <arpa/inet.h>
17501 main ()
17503 void* p = inet_pton
17505 return 0;
17507 _ACEOF
17508 rm -f conftest.$ac_objext
17509 if { (ac_try="$ac_compile"
17510 case "(($ac_try" in
17511 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17512 *) ac_try_echo=$ac_try;;
17513 esac
17514 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17515 (eval "$ac_compile") 2>conftest.er1
17516 ac_status=$?
17517 grep -v '^ *+' conftest.er1 >conftest.err
17518 rm -f conftest.er1
17519 cat conftest.err >&5
17520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17521 (exit $ac_status); } && {
17522 test -z "$ac_c_werror_flag" ||
17523 test ! -s conftest.err
17524 } && test -s conftest.$ac_objext; then
17526 cat >>confdefs.h <<\_ACEOF
17527 #define HAVE_INET_PTON 1
17528 _ACEOF
17530 { echo "$as_me:$LINENO: result: yes" >&5
17531 echo "${ECHO_T}yes" >&6; }
17532 else
17533 echo "$as_me: failed program was:" >&5
17534 sed 's/^/| /' conftest.$ac_ext >&5
17536 { echo "$as_me:$LINENO: result: no" >&5
17537 echo "${ECHO_T}no" >&6; }
17541 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17543 # On some systems, setgroups is in unistd.h, on others, in grp.h
17544 { echo "$as_me:$LINENO: checking for setgroups" >&5
17545 echo $ECHO_N "checking for setgroups... $ECHO_C" >&6; }
17546 cat >conftest.$ac_ext <<_ACEOF
17547 /* confdefs.h. */
17548 _ACEOF
17549 cat confdefs.h >>conftest.$ac_ext
17550 cat >>conftest.$ac_ext <<_ACEOF
17551 /* end confdefs.h. */
17553 #include "confdefs.h"
17554 #include <unistd.h>
17555 #ifdef HAVE_GRP_H
17556 #include <grp.h>
17557 #endif
17560 main ()
17562 void* p = setgroups
17564 return 0;
17566 _ACEOF
17567 rm -f conftest.$ac_objext
17568 if { (ac_try="$ac_compile"
17569 case "(($ac_try" in
17570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17571 *) ac_try_echo=$ac_try;;
17572 esac
17573 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17574 (eval "$ac_compile") 2>conftest.er1
17575 ac_status=$?
17576 grep -v '^ *+' conftest.er1 >conftest.err
17577 rm -f conftest.er1
17578 cat conftest.err >&5
17579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17580 (exit $ac_status); } && {
17581 test -z "$ac_c_werror_flag" ||
17582 test ! -s conftest.err
17583 } && test -s conftest.$ac_objext; then
17585 cat >>confdefs.h <<\_ACEOF
17586 #define HAVE_SETGROUPS 1
17587 _ACEOF
17589 { echo "$as_me:$LINENO: result: yes" >&5
17590 echo "${ECHO_T}yes" >&6; }
17591 else
17592 echo "$as_me: failed program was:" >&5
17593 sed 's/^/| /' conftest.$ac_ext >&5
17595 { echo "$as_me:$LINENO: result: no" >&5
17596 echo "${ECHO_T}no" >&6; }
17600 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17602 # check for openpty and forkpty
17605 for ac_func in openpty
17607 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17608 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17609 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17610 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17611 echo $ECHO_N "(cached) $ECHO_C" >&6
17612 else
17613 cat >conftest.$ac_ext <<_ACEOF
17614 /* confdefs.h. */
17615 _ACEOF
17616 cat confdefs.h >>conftest.$ac_ext
17617 cat >>conftest.$ac_ext <<_ACEOF
17618 /* end confdefs.h. */
17619 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17620 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17621 #define $ac_func innocuous_$ac_func
17623 /* System header to define __stub macros and hopefully few prototypes,
17624 which can conflict with char $ac_func (); below.
17625 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17626 <limits.h> exists even on freestanding compilers. */
17628 #ifdef __STDC__
17629 # include <limits.h>
17630 #else
17631 # include <assert.h>
17632 #endif
17634 #undef $ac_func
17636 /* Override any GCC internal prototype to avoid an error.
17637 Use char because int might match the return type of a GCC
17638 builtin and then its argument prototype would still apply. */
17639 #ifdef __cplusplus
17640 extern "C"
17641 #endif
17642 char $ac_func ();
17643 /* The GNU C library defines this for functions which it implements
17644 to always fail with ENOSYS. Some functions are actually named
17645 something starting with __ and the normal name is an alias. */
17646 #if defined __stub_$ac_func || defined __stub___$ac_func
17647 choke me
17648 #endif
17651 main ()
17653 return $ac_func ();
17655 return 0;
17657 _ACEOF
17658 rm -f conftest.$ac_objext conftest$ac_exeext
17659 if { (ac_try="$ac_link"
17660 case "(($ac_try" in
17661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17662 *) ac_try_echo=$ac_try;;
17663 esac
17664 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17665 (eval "$ac_link") 2>conftest.er1
17666 ac_status=$?
17667 grep -v '^ *+' conftest.er1 >conftest.err
17668 rm -f conftest.er1
17669 cat conftest.err >&5
17670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17671 (exit $ac_status); } && {
17672 test -z "$ac_c_werror_flag" ||
17673 test ! -s conftest.err
17674 } && test -s conftest$ac_exeext &&
17675 $as_test_x conftest$ac_exeext; then
17676 eval "$as_ac_var=yes"
17677 else
17678 echo "$as_me: failed program was:" >&5
17679 sed 's/^/| /' conftest.$ac_ext >&5
17681 eval "$as_ac_var=no"
17684 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17685 conftest$ac_exeext conftest.$ac_ext
17687 ac_res=`eval echo '${'$as_ac_var'}'`
17688 { echo "$as_me:$LINENO: result: $ac_res" >&5
17689 echo "${ECHO_T}$ac_res" >&6; }
17690 if test `eval echo '${'$as_ac_var'}'` = yes; then
17691 cat >>confdefs.h <<_ACEOF
17692 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17693 _ACEOF
17695 else
17696 { echo "$as_me:$LINENO: checking for openpty in -lutil" >&5
17697 echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6; }
17698 if test "${ac_cv_lib_util_openpty+set}" = set; then
17699 echo $ECHO_N "(cached) $ECHO_C" >&6
17700 else
17701 ac_check_lib_save_LIBS=$LIBS
17702 LIBS="-lutil $LIBS"
17703 cat >conftest.$ac_ext <<_ACEOF
17704 /* confdefs.h. */
17705 _ACEOF
17706 cat confdefs.h >>conftest.$ac_ext
17707 cat >>conftest.$ac_ext <<_ACEOF
17708 /* end confdefs.h. */
17710 /* Override any GCC internal prototype to avoid an error.
17711 Use char because int might match the return type of a GCC
17712 builtin and then its argument prototype would still apply. */
17713 #ifdef __cplusplus
17714 extern "C"
17715 #endif
17716 char openpty ();
17718 main ()
17720 return openpty ();
17722 return 0;
17724 _ACEOF
17725 rm -f conftest.$ac_objext conftest$ac_exeext
17726 if { (ac_try="$ac_link"
17727 case "(($ac_try" in
17728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17729 *) ac_try_echo=$ac_try;;
17730 esac
17731 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17732 (eval "$ac_link") 2>conftest.er1
17733 ac_status=$?
17734 grep -v '^ *+' conftest.er1 >conftest.err
17735 rm -f conftest.er1
17736 cat conftest.err >&5
17737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17738 (exit $ac_status); } && {
17739 test -z "$ac_c_werror_flag" ||
17740 test ! -s conftest.err
17741 } && test -s conftest$ac_exeext &&
17742 $as_test_x conftest$ac_exeext; then
17743 ac_cv_lib_util_openpty=yes
17744 else
17745 echo "$as_me: failed program was:" >&5
17746 sed 's/^/| /' conftest.$ac_ext >&5
17748 ac_cv_lib_util_openpty=no
17751 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17752 conftest$ac_exeext conftest.$ac_ext
17753 LIBS=$ac_check_lib_save_LIBS
17755 { echo "$as_me:$LINENO: result: $ac_cv_lib_util_openpty" >&5
17756 echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6; }
17757 if test $ac_cv_lib_util_openpty = yes; then
17758 cat >>confdefs.h <<\_ACEOF
17759 #define HAVE_OPENPTY 1
17760 _ACEOF
17761 LIBS="$LIBS -lutil"
17762 else
17763 { echo "$as_me:$LINENO: checking for openpty in -lbsd" >&5
17764 echo $ECHO_N "checking for openpty in -lbsd... $ECHO_C" >&6; }
17765 if test "${ac_cv_lib_bsd_openpty+set}" = set; then
17766 echo $ECHO_N "(cached) $ECHO_C" >&6
17767 else
17768 ac_check_lib_save_LIBS=$LIBS
17769 LIBS="-lbsd $LIBS"
17770 cat >conftest.$ac_ext <<_ACEOF
17771 /* confdefs.h. */
17772 _ACEOF
17773 cat confdefs.h >>conftest.$ac_ext
17774 cat >>conftest.$ac_ext <<_ACEOF
17775 /* end confdefs.h. */
17777 /* Override any GCC internal prototype to avoid an error.
17778 Use char because int might match the return type of a GCC
17779 builtin and then its argument prototype would still apply. */
17780 #ifdef __cplusplus
17781 extern "C"
17782 #endif
17783 char openpty ();
17785 main ()
17787 return openpty ();
17789 return 0;
17791 _ACEOF
17792 rm -f conftest.$ac_objext conftest$ac_exeext
17793 if { (ac_try="$ac_link"
17794 case "(($ac_try" in
17795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17796 *) ac_try_echo=$ac_try;;
17797 esac
17798 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17799 (eval "$ac_link") 2>conftest.er1
17800 ac_status=$?
17801 grep -v '^ *+' conftest.er1 >conftest.err
17802 rm -f conftest.er1
17803 cat conftest.err >&5
17804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17805 (exit $ac_status); } && {
17806 test -z "$ac_c_werror_flag" ||
17807 test ! -s conftest.err
17808 } && test -s conftest$ac_exeext &&
17809 $as_test_x conftest$ac_exeext; then
17810 ac_cv_lib_bsd_openpty=yes
17811 else
17812 echo "$as_me: failed program was:" >&5
17813 sed 's/^/| /' conftest.$ac_ext >&5
17815 ac_cv_lib_bsd_openpty=no
17818 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17819 conftest$ac_exeext conftest.$ac_ext
17820 LIBS=$ac_check_lib_save_LIBS
17822 { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_openpty" >&5
17823 echo "${ECHO_T}$ac_cv_lib_bsd_openpty" >&6; }
17824 if test $ac_cv_lib_bsd_openpty = yes; then
17825 cat >>confdefs.h <<\_ACEOF
17826 #define HAVE_OPENPTY 1
17827 _ACEOF
17828 LIBS="$LIBS -lbsd"
17836 done
17839 for ac_func in forkpty
17841 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17842 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17843 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17844 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17845 echo $ECHO_N "(cached) $ECHO_C" >&6
17846 else
17847 cat >conftest.$ac_ext <<_ACEOF
17848 /* confdefs.h. */
17849 _ACEOF
17850 cat confdefs.h >>conftest.$ac_ext
17851 cat >>conftest.$ac_ext <<_ACEOF
17852 /* end confdefs.h. */
17853 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17854 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17855 #define $ac_func innocuous_$ac_func
17857 /* System header to define __stub macros and hopefully few prototypes,
17858 which can conflict with char $ac_func (); below.
17859 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17860 <limits.h> exists even on freestanding compilers. */
17862 #ifdef __STDC__
17863 # include <limits.h>
17864 #else
17865 # include <assert.h>
17866 #endif
17868 #undef $ac_func
17870 /* Override any GCC internal prototype to avoid an error.
17871 Use char because int might match the return type of a GCC
17872 builtin and then its argument prototype would still apply. */
17873 #ifdef __cplusplus
17874 extern "C"
17875 #endif
17876 char $ac_func ();
17877 /* The GNU C library defines this for functions which it implements
17878 to always fail with ENOSYS. Some functions are actually named
17879 something starting with __ and the normal name is an alias. */
17880 #if defined __stub_$ac_func || defined __stub___$ac_func
17881 choke me
17882 #endif
17885 main ()
17887 return $ac_func ();
17889 return 0;
17891 _ACEOF
17892 rm -f conftest.$ac_objext conftest$ac_exeext
17893 if { (ac_try="$ac_link"
17894 case "(($ac_try" in
17895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17896 *) ac_try_echo=$ac_try;;
17897 esac
17898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17899 (eval "$ac_link") 2>conftest.er1
17900 ac_status=$?
17901 grep -v '^ *+' conftest.er1 >conftest.err
17902 rm -f conftest.er1
17903 cat conftest.err >&5
17904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17905 (exit $ac_status); } && {
17906 test -z "$ac_c_werror_flag" ||
17907 test ! -s conftest.err
17908 } && test -s conftest$ac_exeext &&
17909 $as_test_x conftest$ac_exeext; then
17910 eval "$as_ac_var=yes"
17911 else
17912 echo "$as_me: failed program was:" >&5
17913 sed 's/^/| /' conftest.$ac_ext >&5
17915 eval "$as_ac_var=no"
17918 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17919 conftest$ac_exeext conftest.$ac_ext
17921 ac_res=`eval echo '${'$as_ac_var'}'`
17922 { echo "$as_me:$LINENO: result: $ac_res" >&5
17923 echo "${ECHO_T}$ac_res" >&6; }
17924 if test `eval echo '${'$as_ac_var'}'` = yes; then
17925 cat >>confdefs.h <<_ACEOF
17926 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17927 _ACEOF
17929 else
17930 { echo "$as_me:$LINENO: checking for forkpty in -lutil" >&5
17931 echo $ECHO_N "checking for forkpty in -lutil... $ECHO_C" >&6; }
17932 if test "${ac_cv_lib_util_forkpty+set}" = set; then
17933 echo $ECHO_N "(cached) $ECHO_C" >&6
17934 else
17935 ac_check_lib_save_LIBS=$LIBS
17936 LIBS="-lutil $LIBS"
17937 cat >conftest.$ac_ext <<_ACEOF
17938 /* confdefs.h. */
17939 _ACEOF
17940 cat confdefs.h >>conftest.$ac_ext
17941 cat >>conftest.$ac_ext <<_ACEOF
17942 /* end confdefs.h. */
17944 /* Override any GCC internal prototype to avoid an error.
17945 Use char because int might match the return type of a GCC
17946 builtin and then its argument prototype would still apply. */
17947 #ifdef __cplusplus
17948 extern "C"
17949 #endif
17950 char forkpty ();
17952 main ()
17954 return forkpty ();
17956 return 0;
17958 _ACEOF
17959 rm -f conftest.$ac_objext conftest$ac_exeext
17960 if { (ac_try="$ac_link"
17961 case "(($ac_try" in
17962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17963 *) ac_try_echo=$ac_try;;
17964 esac
17965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17966 (eval "$ac_link") 2>conftest.er1
17967 ac_status=$?
17968 grep -v '^ *+' conftest.er1 >conftest.err
17969 rm -f conftest.er1
17970 cat conftest.err >&5
17971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17972 (exit $ac_status); } && {
17973 test -z "$ac_c_werror_flag" ||
17974 test ! -s conftest.err
17975 } && test -s conftest$ac_exeext &&
17976 $as_test_x conftest$ac_exeext; then
17977 ac_cv_lib_util_forkpty=yes
17978 else
17979 echo "$as_me: failed program was:" >&5
17980 sed 's/^/| /' conftest.$ac_ext >&5
17982 ac_cv_lib_util_forkpty=no
17985 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17986 conftest$ac_exeext conftest.$ac_ext
17987 LIBS=$ac_check_lib_save_LIBS
17989 { echo "$as_me:$LINENO: result: $ac_cv_lib_util_forkpty" >&5
17990 echo "${ECHO_T}$ac_cv_lib_util_forkpty" >&6; }
17991 if test $ac_cv_lib_util_forkpty = yes; then
17992 cat >>confdefs.h <<\_ACEOF
17993 #define HAVE_FORKPTY 1
17994 _ACEOF
17995 LIBS="$LIBS -lutil"
17996 else
17997 { echo "$as_me:$LINENO: checking for forkpty in -lbsd" >&5
17998 echo $ECHO_N "checking for forkpty in -lbsd... $ECHO_C" >&6; }
17999 if test "${ac_cv_lib_bsd_forkpty+set}" = set; then
18000 echo $ECHO_N "(cached) $ECHO_C" >&6
18001 else
18002 ac_check_lib_save_LIBS=$LIBS
18003 LIBS="-lbsd $LIBS"
18004 cat >conftest.$ac_ext <<_ACEOF
18005 /* confdefs.h. */
18006 _ACEOF
18007 cat confdefs.h >>conftest.$ac_ext
18008 cat >>conftest.$ac_ext <<_ACEOF
18009 /* end confdefs.h. */
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 forkpty ();
18019 main ()
18021 return forkpty ();
18023 return 0;
18025 _ACEOF
18026 rm -f conftest.$ac_objext conftest$ac_exeext
18027 if { (ac_try="$ac_link"
18028 case "(($ac_try" in
18029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18030 *) ac_try_echo=$ac_try;;
18031 esac
18032 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18033 (eval "$ac_link") 2>conftest.er1
18034 ac_status=$?
18035 grep -v '^ *+' conftest.er1 >conftest.err
18036 rm -f conftest.er1
18037 cat conftest.err >&5
18038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18039 (exit $ac_status); } && {
18040 test -z "$ac_c_werror_flag" ||
18041 test ! -s conftest.err
18042 } && test -s conftest$ac_exeext &&
18043 $as_test_x conftest$ac_exeext; then
18044 ac_cv_lib_bsd_forkpty=yes
18045 else
18046 echo "$as_me: failed program was:" >&5
18047 sed 's/^/| /' conftest.$ac_ext >&5
18049 ac_cv_lib_bsd_forkpty=no
18052 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18053 conftest$ac_exeext conftest.$ac_ext
18054 LIBS=$ac_check_lib_save_LIBS
18056 { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_forkpty" >&5
18057 echo "${ECHO_T}$ac_cv_lib_bsd_forkpty" >&6; }
18058 if test $ac_cv_lib_bsd_forkpty = yes; then
18059 cat >>confdefs.h <<\_ACEOF
18060 #define HAVE_FORKPTY 1
18061 _ACEOF
18062 LIBS="$LIBS -lbsd"
18070 done
18073 # Stuff for expat.
18075 for ac_func in memmove
18077 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18078 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18079 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18080 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18081 echo $ECHO_N "(cached) $ECHO_C" >&6
18082 else
18083 cat >conftest.$ac_ext <<_ACEOF
18084 /* confdefs.h. */
18085 _ACEOF
18086 cat confdefs.h >>conftest.$ac_ext
18087 cat >>conftest.$ac_ext <<_ACEOF
18088 /* end confdefs.h. */
18089 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18090 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18091 #define $ac_func innocuous_$ac_func
18093 /* System header to define __stub macros and hopefully few prototypes,
18094 which can conflict with char $ac_func (); below.
18095 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18096 <limits.h> exists even on freestanding compilers. */
18098 #ifdef __STDC__
18099 # include <limits.h>
18100 #else
18101 # include <assert.h>
18102 #endif
18104 #undef $ac_func
18106 /* Override any GCC internal prototype to avoid an error.
18107 Use char because int might match the return type of a GCC
18108 builtin and then its argument prototype would still apply. */
18109 #ifdef __cplusplus
18110 extern "C"
18111 #endif
18112 char $ac_func ();
18113 /* The GNU C library defines this for functions which it implements
18114 to always fail with ENOSYS. Some functions are actually named
18115 something starting with __ and the normal name is an alias. */
18116 #if defined __stub_$ac_func || defined __stub___$ac_func
18117 choke me
18118 #endif
18121 main ()
18123 return $ac_func ();
18125 return 0;
18127 _ACEOF
18128 rm -f conftest.$ac_objext conftest$ac_exeext
18129 if { (ac_try="$ac_link"
18130 case "(($ac_try" in
18131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18132 *) ac_try_echo=$ac_try;;
18133 esac
18134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18135 (eval "$ac_link") 2>conftest.er1
18136 ac_status=$?
18137 grep -v '^ *+' conftest.er1 >conftest.err
18138 rm -f conftest.er1
18139 cat conftest.err >&5
18140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18141 (exit $ac_status); } && {
18142 test -z "$ac_c_werror_flag" ||
18143 test ! -s conftest.err
18144 } && test -s conftest$ac_exeext &&
18145 $as_test_x conftest$ac_exeext; then
18146 eval "$as_ac_var=yes"
18147 else
18148 echo "$as_me: failed program was:" >&5
18149 sed 's/^/| /' conftest.$ac_ext >&5
18151 eval "$as_ac_var=no"
18154 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18155 conftest$ac_exeext conftest.$ac_ext
18157 ac_res=`eval echo '${'$as_ac_var'}'`
18158 { echo "$as_me:$LINENO: result: $ac_res" >&5
18159 echo "${ECHO_T}$ac_res" >&6; }
18160 if test `eval echo '${'$as_ac_var'}'` = yes; then
18161 cat >>confdefs.h <<_ACEOF
18162 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18163 _ACEOF
18166 done
18169 # check for long file support functions
18176 for ac_func in fseek64 fseeko fstatvfs ftell64 ftello statvfs
18178 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18179 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18180 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18181 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18182 echo $ECHO_N "(cached) $ECHO_C" >&6
18183 else
18184 cat >conftest.$ac_ext <<_ACEOF
18185 /* confdefs.h. */
18186 _ACEOF
18187 cat confdefs.h >>conftest.$ac_ext
18188 cat >>conftest.$ac_ext <<_ACEOF
18189 /* end confdefs.h. */
18190 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18191 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18192 #define $ac_func innocuous_$ac_func
18194 /* System header to define __stub macros and hopefully few prototypes,
18195 which can conflict with char $ac_func (); below.
18196 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18197 <limits.h> exists even on freestanding compilers. */
18199 #ifdef __STDC__
18200 # include <limits.h>
18201 #else
18202 # include <assert.h>
18203 #endif
18205 #undef $ac_func
18207 /* Override any GCC internal prototype to avoid an error.
18208 Use char because int might match the return type of a GCC
18209 builtin and then its argument prototype would still apply. */
18210 #ifdef __cplusplus
18211 extern "C"
18212 #endif
18213 char $ac_func ();
18214 /* The GNU C library defines this for functions which it implements
18215 to always fail with ENOSYS. Some functions are actually named
18216 something starting with __ and the normal name is an alias. */
18217 #if defined __stub_$ac_func || defined __stub___$ac_func
18218 choke me
18219 #endif
18222 main ()
18224 return $ac_func ();
18226 return 0;
18228 _ACEOF
18229 rm -f conftest.$ac_objext conftest$ac_exeext
18230 if { (ac_try="$ac_link"
18231 case "(($ac_try" in
18232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18233 *) ac_try_echo=$ac_try;;
18234 esac
18235 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18236 (eval "$ac_link") 2>conftest.er1
18237 ac_status=$?
18238 grep -v '^ *+' conftest.er1 >conftest.err
18239 rm -f conftest.er1
18240 cat conftest.err >&5
18241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18242 (exit $ac_status); } && {
18243 test -z "$ac_c_werror_flag" ||
18244 test ! -s conftest.err
18245 } && test -s conftest$ac_exeext &&
18246 $as_test_x conftest$ac_exeext; then
18247 eval "$as_ac_var=yes"
18248 else
18249 echo "$as_me: failed program was:" >&5
18250 sed 's/^/| /' conftest.$ac_ext >&5
18252 eval "$as_ac_var=no"
18255 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18256 conftest$ac_exeext conftest.$ac_ext
18258 ac_res=`eval echo '${'$as_ac_var'}'`
18259 { echo "$as_me:$LINENO: result: $ac_res" >&5
18260 echo "${ECHO_T}$ac_res" >&6; }
18261 if test `eval echo '${'$as_ac_var'}'` = yes; then
18262 cat >>confdefs.h <<_ACEOF
18263 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18264 _ACEOF
18267 done
18273 for ac_func in dup2 getcwd strdup
18275 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18276 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18277 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18278 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18279 echo $ECHO_N "(cached) $ECHO_C" >&6
18280 else
18281 cat >conftest.$ac_ext <<_ACEOF
18282 /* confdefs.h. */
18283 _ACEOF
18284 cat confdefs.h >>conftest.$ac_ext
18285 cat >>conftest.$ac_ext <<_ACEOF
18286 /* end confdefs.h. */
18287 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18288 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18289 #define $ac_func innocuous_$ac_func
18291 /* System header to define __stub macros and hopefully few prototypes,
18292 which can conflict with char $ac_func (); below.
18293 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18294 <limits.h> exists even on freestanding compilers. */
18296 #ifdef __STDC__
18297 # include <limits.h>
18298 #else
18299 # include <assert.h>
18300 #endif
18302 #undef $ac_func
18304 /* Override any GCC internal prototype to avoid an error.
18305 Use char because int might match the return type of a GCC
18306 builtin and then its argument prototype would still apply. */
18307 #ifdef __cplusplus
18308 extern "C"
18309 #endif
18310 char $ac_func ();
18311 /* The GNU C library defines this for functions which it implements
18312 to always fail with ENOSYS. Some functions are actually named
18313 something starting with __ and the normal name is an alias. */
18314 #if defined __stub_$ac_func || defined __stub___$ac_func
18315 choke me
18316 #endif
18319 main ()
18321 return $ac_func ();
18323 return 0;
18325 _ACEOF
18326 rm -f conftest.$ac_objext conftest$ac_exeext
18327 if { (ac_try="$ac_link"
18328 case "(($ac_try" in
18329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18330 *) ac_try_echo=$ac_try;;
18331 esac
18332 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18333 (eval "$ac_link") 2>conftest.er1
18334 ac_status=$?
18335 grep -v '^ *+' conftest.er1 >conftest.err
18336 rm -f conftest.er1
18337 cat conftest.err >&5
18338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18339 (exit $ac_status); } && {
18340 test -z "$ac_c_werror_flag" ||
18341 test ! -s conftest.err
18342 } && test -s conftest$ac_exeext &&
18343 $as_test_x conftest$ac_exeext; then
18344 eval "$as_ac_var=yes"
18345 else
18346 echo "$as_me: failed program was:" >&5
18347 sed 's/^/| /' conftest.$ac_ext >&5
18349 eval "$as_ac_var=no"
18352 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18353 conftest$ac_exeext conftest.$ac_ext
18355 ac_res=`eval echo '${'$as_ac_var'}'`
18356 { echo "$as_me:$LINENO: result: $ac_res" >&5
18357 echo "${ECHO_T}$ac_res" >&6; }
18358 if test `eval echo '${'$as_ac_var'}'` = yes; then
18359 cat >>confdefs.h <<_ACEOF
18360 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18361 _ACEOF
18363 else
18364 case " $LIBOBJS " in
18365 *" $ac_func.$ac_objext "* ) ;;
18366 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
18368 esac
18371 done
18375 for ac_func in getpgrp
18377 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18378 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18379 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18380 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18381 echo $ECHO_N "(cached) $ECHO_C" >&6
18382 else
18383 cat >conftest.$ac_ext <<_ACEOF
18384 /* confdefs.h. */
18385 _ACEOF
18386 cat confdefs.h >>conftest.$ac_ext
18387 cat >>conftest.$ac_ext <<_ACEOF
18388 /* end confdefs.h. */
18389 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18390 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18391 #define $ac_func innocuous_$ac_func
18393 /* System header to define __stub macros and hopefully few prototypes,
18394 which can conflict with char $ac_func (); below.
18395 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18396 <limits.h> exists even on freestanding compilers. */
18398 #ifdef __STDC__
18399 # include <limits.h>
18400 #else
18401 # include <assert.h>
18402 #endif
18404 #undef $ac_func
18406 /* Override any GCC internal prototype to avoid an error.
18407 Use char because int might match the return type of a GCC
18408 builtin and then its argument prototype would still apply. */
18409 #ifdef __cplusplus
18410 extern "C"
18411 #endif
18412 char $ac_func ();
18413 /* The GNU C library defines this for functions which it implements
18414 to always fail with ENOSYS. Some functions are actually named
18415 something starting with __ and the normal name is an alias. */
18416 #if defined __stub_$ac_func || defined __stub___$ac_func
18417 choke me
18418 #endif
18421 main ()
18423 return $ac_func ();
18425 return 0;
18427 _ACEOF
18428 rm -f conftest.$ac_objext conftest$ac_exeext
18429 if { (ac_try="$ac_link"
18430 case "(($ac_try" in
18431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18432 *) ac_try_echo=$ac_try;;
18433 esac
18434 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18435 (eval "$ac_link") 2>conftest.er1
18436 ac_status=$?
18437 grep -v '^ *+' conftest.er1 >conftest.err
18438 rm -f conftest.er1
18439 cat conftest.err >&5
18440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18441 (exit $ac_status); } && {
18442 test -z "$ac_c_werror_flag" ||
18443 test ! -s conftest.err
18444 } && test -s conftest$ac_exeext &&
18445 $as_test_x conftest$ac_exeext; then
18446 eval "$as_ac_var=yes"
18447 else
18448 echo "$as_me: failed program was:" >&5
18449 sed 's/^/| /' conftest.$ac_ext >&5
18451 eval "$as_ac_var=no"
18454 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18455 conftest$ac_exeext conftest.$ac_ext
18457 ac_res=`eval echo '${'$as_ac_var'}'`
18458 { echo "$as_me:$LINENO: result: $ac_res" >&5
18459 echo "${ECHO_T}$ac_res" >&6; }
18460 if test `eval echo '${'$as_ac_var'}'` = yes; then
18461 cat >>confdefs.h <<_ACEOF
18462 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18463 _ACEOF
18464 cat >conftest.$ac_ext <<_ACEOF
18465 /* confdefs.h. */
18466 _ACEOF
18467 cat confdefs.h >>conftest.$ac_ext
18468 cat >>conftest.$ac_ext <<_ACEOF
18469 /* end confdefs.h. */
18470 #include <unistd.h>
18472 main ()
18474 getpgrp(0);
18476 return 0;
18478 _ACEOF
18479 rm -f conftest.$ac_objext
18480 if { (ac_try="$ac_compile"
18481 case "(($ac_try" in
18482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18483 *) ac_try_echo=$ac_try;;
18484 esac
18485 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18486 (eval "$ac_compile") 2>conftest.er1
18487 ac_status=$?
18488 grep -v '^ *+' conftest.er1 >conftest.err
18489 rm -f conftest.er1
18490 cat conftest.err >&5
18491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18492 (exit $ac_status); } && {
18493 test -z "$ac_c_werror_flag" ||
18494 test ! -s conftest.err
18495 } && test -s conftest.$ac_objext; then
18497 cat >>confdefs.h <<\_ACEOF
18498 #define GETPGRP_HAVE_ARG 1
18499 _ACEOF
18502 else
18503 echo "$as_me: failed program was:" >&5
18504 sed 's/^/| /' conftest.$ac_ext >&5
18509 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18512 done
18515 for ac_func in setpgrp
18517 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18518 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18519 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18520 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18521 echo $ECHO_N "(cached) $ECHO_C" >&6
18522 else
18523 cat >conftest.$ac_ext <<_ACEOF
18524 /* confdefs.h. */
18525 _ACEOF
18526 cat confdefs.h >>conftest.$ac_ext
18527 cat >>conftest.$ac_ext <<_ACEOF
18528 /* end confdefs.h. */
18529 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18530 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18531 #define $ac_func innocuous_$ac_func
18533 /* System header to define __stub macros and hopefully few prototypes,
18534 which can conflict with char $ac_func (); below.
18535 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18536 <limits.h> exists even on freestanding compilers. */
18538 #ifdef __STDC__
18539 # include <limits.h>
18540 #else
18541 # include <assert.h>
18542 #endif
18544 #undef $ac_func
18546 /* Override any GCC internal prototype to avoid an error.
18547 Use char because int might match the return type of a GCC
18548 builtin and then its argument prototype would still apply. */
18549 #ifdef __cplusplus
18550 extern "C"
18551 #endif
18552 char $ac_func ();
18553 /* The GNU C library defines this for functions which it implements
18554 to always fail with ENOSYS. Some functions are actually named
18555 something starting with __ and the normal name is an alias. */
18556 #if defined __stub_$ac_func || defined __stub___$ac_func
18557 choke me
18558 #endif
18561 main ()
18563 return $ac_func ();
18565 return 0;
18567 _ACEOF
18568 rm -f conftest.$ac_objext conftest$ac_exeext
18569 if { (ac_try="$ac_link"
18570 case "(($ac_try" in
18571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18572 *) ac_try_echo=$ac_try;;
18573 esac
18574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18575 (eval "$ac_link") 2>conftest.er1
18576 ac_status=$?
18577 grep -v '^ *+' conftest.er1 >conftest.err
18578 rm -f conftest.er1
18579 cat conftest.err >&5
18580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18581 (exit $ac_status); } && {
18582 test -z "$ac_c_werror_flag" ||
18583 test ! -s conftest.err
18584 } && test -s conftest$ac_exeext &&
18585 $as_test_x conftest$ac_exeext; then
18586 eval "$as_ac_var=yes"
18587 else
18588 echo "$as_me: failed program was:" >&5
18589 sed 's/^/| /' conftest.$ac_ext >&5
18591 eval "$as_ac_var=no"
18594 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18595 conftest$ac_exeext conftest.$ac_ext
18597 ac_res=`eval echo '${'$as_ac_var'}'`
18598 { echo "$as_me:$LINENO: result: $ac_res" >&5
18599 echo "${ECHO_T}$ac_res" >&6; }
18600 if test `eval echo '${'$as_ac_var'}'` = yes; then
18601 cat >>confdefs.h <<_ACEOF
18602 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18603 _ACEOF
18604 cat >conftest.$ac_ext <<_ACEOF
18605 /* confdefs.h. */
18606 _ACEOF
18607 cat confdefs.h >>conftest.$ac_ext
18608 cat >>conftest.$ac_ext <<_ACEOF
18609 /* end confdefs.h. */
18610 #include <unistd.h>
18612 main ()
18614 setpgrp(0,0);
18616 return 0;
18618 _ACEOF
18619 rm -f conftest.$ac_objext
18620 if { (ac_try="$ac_compile"
18621 case "(($ac_try" in
18622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18623 *) ac_try_echo=$ac_try;;
18624 esac
18625 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18626 (eval "$ac_compile") 2>conftest.er1
18627 ac_status=$?
18628 grep -v '^ *+' conftest.er1 >conftest.err
18629 rm -f conftest.er1
18630 cat conftest.err >&5
18631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18632 (exit $ac_status); } && {
18633 test -z "$ac_c_werror_flag" ||
18634 test ! -s conftest.err
18635 } && test -s conftest.$ac_objext; then
18637 cat >>confdefs.h <<\_ACEOF
18638 #define SETPGRP_HAVE_ARG 1
18639 _ACEOF
18642 else
18643 echo "$as_me: failed program was:" >&5
18644 sed 's/^/| /' conftest.$ac_ext >&5
18649 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18652 done
18655 for ac_func in gettimeofday
18657 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18658 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18659 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18660 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18661 echo $ECHO_N "(cached) $ECHO_C" >&6
18662 else
18663 cat >conftest.$ac_ext <<_ACEOF
18664 /* confdefs.h. */
18665 _ACEOF
18666 cat confdefs.h >>conftest.$ac_ext
18667 cat >>conftest.$ac_ext <<_ACEOF
18668 /* end confdefs.h. */
18669 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18670 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18671 #define $ac_func innocuous_$ac_func
18673 /* System header to define __stub macros and hopefully few prototypes,
18674 which can conflict with char $ac_func (); below.
18675 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18676 <limits.h> exists even on freestanding compilers. */
18678 #ifdef __STDC__
18679 # include <limits.h>
18680 #else
18681 # include <assert.h>
18682 #endif
18684 #undef $ac_func
18686 /* Override any GCC internal prototype to avoid an error.
18687 Use char because int might match the return type of a GCC
18688 builtin and then its argument prototype would still apply. */
18689 #ifdef __cplusplus
18690 extern "C"
18691 #endif
18692 char $ac_func ();
18693 /* The GNU C library defines this for functions which it implements
18694 to always fail with ENOSYS. Some functions are actually named
18695 something starting with __ and the normal name is an alias. */
18696 #if defined __stub_$ac_func || defined __stub___$ac_func
18697 choke me
18698 #endif
18701 main ()
18703 return $ac_func ();
18705 return 0;
18707 _ACEOF
18708 rm -f conftest.$ac_objext conftest$ac_exeext
18709 if { (ac_try="$ac_link"
18710 case "(($ac_try" in
18711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18712 *) ac_try_echo=$ac_try;;
18713 esac
18714 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18715 (eval "$ac_link") 2>conftest.er1
18716 ac_status=$?
18717 grep -v '^ *+' conftest.er1 >conftest.err
18718 rm -f conftest.er1
18719 cat conftest.err >&5
18720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18721 (exit $ac_status); } && {
18722 test -z "$ac_c_werror_flag" ||
18723 test ! -s conftest.err
18724 } && test -s conftest$ac_exeext &&
18725 $as_test_x conftest$ac_exeext; then
18726 eval "$as_ac_var=yes"
18727 else
18728 echo "$as_me: failed program was:" >&5
18729 sed 's/^/| /' conftest.$ac_ext >&5
18731 eval "$as_ac_var=no"
18734 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18735 conftest$ac_exeext conftest.$ac_ext
18737 ac_res=`eval echo '${'$as_ac_var'}'`
18738 { echo "$as_me:$LINENO: result: $ac_res" >&5
18739 echo "${ECHO_T}$ac_res" >&6; }
18740 if test `eval echo '${'$as_ac_var'}'` = yes; then
18741 cat >>confdefs.h <<_ACEOF
18742 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18743 _ACEOF
18744 cat >conftest.$ac_ext <<_ACEOF
18745 /* confdefs.h. */
18746 _ACEOF
18747 cat confdefs.h >>conftest.$ac_ext
18748 cat >>conftest.$ac_ext <<_ACEOF
18749 /* end confdefs.h. */
18750 #include <sys/time.h>
18752 main ()
18754 gettimeofday((struct timeval*)0,(struct timezone*)0);
18756 return 0;
18758 _ACEOF
18759 rm -f conftest.$ac_objext
18760 if { (ac_try="$ac_compile"
18761 case "(($ac_try" in
18762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18763 *) ac_try_echo=$ac_try;;
18764 esac
18765 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18766 (eval "$ac_compile") 2>conftest.er1
18767 ac_status=$?
18768 grep -v '^ *+' conftest.er1 >conftest.err
18769 rm -f conftest.er1
18770 cat conftest.err >&5
18771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18772 (exit $ac_status); } && {
18773 test -z "$ac_c_werror_flag" ||
18774 test ! -s conftest.err
18775 } && test -s conftest.$ac_objext; then
18777 else
18778 echo "$as_me: failed program was:" >&5
18779 sed 's/^/| /' conftest.$ac_ext >&5
18782 cat >>confdefs.h <<\_ACEOF
18783 #define GETTIMEOFDAY_NO_TZ 1
18784 _ACEOF
18789 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18792 done
18795 { echo "$as_me:$LINENO: checking for major" >&5
18796 echo $ECHO_N "checking for major... $ECHO_C" >&6; }
18797 cat >conftest.$ac_ext <<_ACEOF
18798 /* confdefs.h. */
18799 _ACEOF
18800 cat confdefs.h >>conftest.$ac_ext
18801 cat >>conftest.$ac_ext <<_ACEOF
18802 /* end confdefs.h. */
18804 #if defined(MAJOR_IN_MKDEV)
18805 #include <sys/mkdev.h>
18806 #elif defined(MAJOR_IN_SYSMACROS)
18807 #include <sys/sysmacros.h>
18808 #else
18809 #include <sys/types.h>
18810 #endif
18813 main ()
18816 makedev(major(0),minor(0));
18819 return 0;
18821 _ACEOF
18822 rm -f conftest.$ac_objext conftest$ac_exeext
18823 if { (ac_try="$ac_link"
18824 case "(($ac_try" in
18825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18826 *) ac_try_echo=$ac_try;;
18827 esac
18828 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18829 (eval "$ac_link") 2>conftest.er1
18830 ac_status=$?
18831 grep -v '^ *+' conftest.er1 >conftest.err
18832 rm -f conftest.er1
18833 cat conftest.err >&5
18834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18835 (exit $ac_status); } && {
18836 test -z "$ac_c_werror_flag" ||
18837 test ! -s conftest.err
18838 } && test -s conftest$ac_exeext &&
18839 $as_test_x conftest$ac_exeext; then
18842 cat >>confdefs.h <<\_ACEOF
18843 #define HAVE_DEVICE_MACROS 1
18844 _ACEOF
18846 { echo "$as_me:$LINENO: result: yes" >&5
18847 echo "${ECHO_T}yes" >&6; }
18849 else
18850 echo "$as_me: failed program was:" >&5
18851 sed 's/^/| /' conftest.$ac_ext >&5
18854 { echo "$as_me:$LINENO: result: no" >&5
18855 echo "${ECHO_T}no" >&6; }
18859 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18860 conftest$ac_exeext conftest.$ac_ext
18862 # On OSF/1 V5.1, getaddrinfo is available, but a define
18863 # for [no]getaddrinfo in netdb.h.
18864 { echo "$as_me:$LINENO: checking for getaddrinfo" >&5
18865 echo $ECHO_N "checking for getaddrinfo... $ECHO_C" >&6; }
18866 cat >conftest.$ac_ext <<_ACEOF
18867 /* confdefs.h. */
18868 _ACEOF
18869 cat confdefs.h >>conftest.$ac_ext
18870 cat >>conftest.$ac_ext <<_ACEOF
18871 /* end confdefs.h. */
18873 #include <sys/types.h>
18874 #include <sys/socket.h>
18875 #include <netdb.h>
18876 #include <stdio.h>
18879 main ()
18882 getaddrinfo(NULL, NULL, NULL, NULL);
18885 return 0;
18887 _ACEOF
18888 rm -f conftest.$ac_objext conftest$ac_exeext
18889 if { (ac_try="$ac_link"
18890 case "(($ac_try" in
18891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18892 *) ac_try_echo=$ac_try;;
18893 esac
18894 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18895 (eval "$ac_link") 2>conftest.er1
18896 ac_status=$?
18897 grep -v '^ *+' conftest.er1 >conftest.err
18898 rm -f conftest.er1
18899 cat conftest.err >&5
18900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18901 (exit $ac_status); } && {
18902 test -z "$ac_c_werror_flag" ||
18903 test ! -s conftest.err
18904 } && test -s conftest$ac_exeext &&
18905 $as_test_x conftest$ac_exeext; then
18907 { echo "$as_me:$LINENO: result: yes" >&5
18908 echo "${ECHO_T}yes" >&6; }
18909 { echo "$as_me:$LINENO: checking getaddrinfo bug" >&5
18910 echo $ECHO_N "checking getaddrinfo bug... $ECHO_C" >&6; }
18911 if test "$cross_compiling" = yes; then
18912 { echo "$as_me:$LINENO: result: buggy" >&5
18913 echo "${ECHO_T}buggy" >&6; }
18914 buggygetaddrinfo=yes
18915 else
18916 cat >conftest.$ac_ext <<_ACEOF
18917 /* confdefs.h. */
18918 _ACEOF
18919 cat confdefs.h >>conftest.$ac_ext
18920 cat >>conftest.$ac_ext <<_ACEOF
18921 /* end confdefs.h. */
18923 #include <sys/types.h>
18924 #include <netdb.h>
18925 #include <string.h>
18926 #include <sys/socket.h>
18927 #include <netinet/in.h>
18929 main()
18931 int passive, gaierr, inet4 = 0, inet6 = 0;
18932 struct addrinfo hints, *ai, *aitop;
18933 char straddr[INET6_ADDRSTRLEN], strport[16];
18935 for (passive = 0; passive <= 1; passive++) {
18936 memset(&hints, 0, sizeof(hints));
18937 hints.ai_family = AF_UNSPEC;
18938 hints.ai_flags = passive ? AI_PASSIVE : 0;
18939 hints.ai_socktype = SOCK_STREAM;
18940 hints.ai_protocol = IPPROTO_TCP;
18941 if ((gaierr = getaddrinfo(NULL, "54321", &hints, &aitop)) != 0) {
18942 (void)gai_strerror(gaierr);
18943 goto bad;
18945 for (ai = aitop; ai; ai = ai->ai_next) {
18946 if (ai->ai_addr == NULL ||
18947 ai->ai_addrlen == 0 ||
18948 getnameinfo(ai->ai_addr, ai->ai_addrlen,
18949 straddr, sizeof(straddr), strport, sizeof(strport),
18950 NI_NUMERICHOST|NI_NUMERICSERV) != 0) {
18951 goto bad;
18953 switch (ai->ai_family) {
18954 case AF_INET:
18955 if (strcmp(strport, "54321") != 0) {
18956 goto bad;
18958 if (passive) {
18959 if (strcmp(straddr, "0.0.0.0") != 0) {
18960 goto bad;
18962 } else {
18963 if (strcmp(straddr, "127.0.0.1") != 0) {
18964 goto bad;
18967 inet4++;
18968 break;
18969 case AF_INET6:
18970 if (strcmp(strport, "54321") != 0) {
18971 goto bad;
18973 if (passive) {
18974 if (strcmp(straddr, "::") != 0) {
18975 goto bad;
18977 } else {
18978 if (strcmp(straddr, "::1") != 0) {
18979 goto bad;
18982 inet6++;
18983 break;
18984 case AF_UNSPEC:
18985 goto bad;
18986 break;
18987 default:
18988 /* another family support? */
18989 break;
18994 if (!(inet4 == 0 || inet4 == 2))
18995 goto bad;
18996 if (!(inet6 == 0 || inet6 == 2))
18997 goto bad;
18999 if (aitop)
19000 freeaddrinfo(aitop);
19001 exit(0);
19003 bad:
19004 if (aitop)
19005 freeaddrinfo(aitop);
19006 exit(1);
19009 _ACEOF
19010 rm -f conftest$ac_exeext
19011 if { (ac_try="$ac_link"
19012 case "(($ac_try" in
19013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19014 *) ac_try_echo=$ac_try;;
19015 esac
19016 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19017 (eval "$ac_link") 2>&5
19018 ac_status=$?
19019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19020 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19021 { (case "(($ac_try" in
19022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19023 *) ac_try_echo=$ac_try;;
19024 esac
19025 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19026 (eval "$ac_try") 2>&5
19027 ac_status=$?
19028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19029 (exit $ac_status); }; }; then
19030 { echo "$as_me:$LINENO: result: good" >&5
19031 echo "${ECHO_T}good" >&6; }
19032 buggygetaddrinfo=no
19033 else
19034 echo "$as_me: program exited with status $ac_status" >&5
19035 echo "$as_me: failed program was:" >&5
19036 sed 's/^/| /' conftest.$ac_ext >&5
19038 ( exit $ac_status )
19039 { echo "$as_me:$LINENO: result: buggy" >&5
19040 echo "${ECHO_T}buggy" >&6; }
19041 buggygetaddrinfo=yes
19043 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19047 else
19048 echo "$as_me: failed program was:" >&5
19049 sed 's/^/| /' conftest.$ac_ext >&5
19052 { echo "$as_me:$LINENO: result: no" >&5
19053 echo "${ECHO_T}no" >&6; }
19054 buggygetaddrinfo=yes
19058 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19059 conftest$ac_exeext conftest.$ac_ext
19061 if test "$buggygetaddrinfo" = "yes"; then
19062 if test "$ipv6" = "yes"; then
19063 echo 'Fatal: You must get working getaddrinfo() function.'
19064 echo ' or you can specify "--disable-ipv6"'.
19065 exit 1
19067 else
19069 cat >>confdefs.h <<\_ACEOF
19070 #define HAVE_GETADDRINFO 1
19071 _ACEOF
19075 for ac_func in getnameinfo
19077 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19078 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19079 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19080 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19081 echo $ECHO_N "(cached) $ECHO_C" >&6
19082 else
19083 cat >conftest.$ac_ext <<_ACEOF
19084 /* confdefs.h. */
19085 _ACEOF
19086 cat confdefs.h >>conftest.$ac_ext
19087 cat >>conftest.$ac_ext <<_ACEOF
19088 /* end confdefs.h. */
19089 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19090 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19091 #define $ac_func innocuous_$ac_func
19093 /* System header to define __stub macros and hopefully few prototypes,
19094 which can conflict with char $ac_func (); below.
19095 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19096 <limits.h> exists even on freestanding compilers. */
19098 #ifdef __STDC__
19099 # include <limits.h>
19100 #else
19101 # include <assert.h>
19102 #endif
19104 #undef $ac_func
19106 /* Override any GCC internal prototype to avoid an error.
19107 Use char because int might match the return type of a GCC
19108 builtin and then its argument prototype would still apply. */
19109 #ifdef __cplusplus
19110 extern "C"
19111 #endif
19112 char $ac_func ();
19113 /* The GNU C library defines this for functions which it implements
19114 to always fail with ENOSYS. Some functions are actually named
19115 something starting with __ and the normal name is an alias. */
19116 #if defined __stub_$ac_func || defined __stub___$ac_func
19117 choke me
19118 #endif
19121 main ()
19123 return $ac_func ();
19125 return 0;
19127 _ACEOF
19128 rm -f conftest.$ac_objext conftest$ac_exeext
19129 if { (ac_try="$ac_link"
19130 case "(($ac_try" in
19131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19132 *) ac_try_echo=$ac_try;;
19133 esac
19134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19135 (eval "$ac_link") 2>conftest.er1
19136 ac_status=$?
19137 grep -v '^ *+' conftest.er1 >conftest.err
19138 rm -f conftest.er1
19139 cat conftest.err >&5
19140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19141 (exit $ac_status); } && {
19142 test -z "$ac_c_werror_flag" ||
19143 test ! -s conftest.err
19144 } && test -s conftest$ac_exeext &&
19145 $as_test_x conftest$ac_exeext; then
19146 eval "$as_ac_var=yes"
19147 else
19148 echo "$as_me: failed program was:" >&5
19149 sed 's/^/| /' conftest.$ac_ext >&5
19151 eval "$as_ac_var=no"
19154 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19155 conftest$ac_exeext conftest.$ac_ext
19157 ac_res=`eval echo '${'$as_ac_var'}'`
19158 { echo "$as_me:$LINENO: result: $ac_res" >&5
19159 echo "${ECHO_T}$ac_res" >&6; }
19160 if test `eval echo '${'$as_ac_var'}'` = yes; then
19161 cat >>confdefs.h <<_ACEOF
19162 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19163 _ACEOF
19166 done
19169 # checks for structures
19170 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
19171 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
19172 if test "${ac_cv_header_time+set}" = set; then
19173 echo $ECHO_N "(cached) $ECHO_C" >&6
19174 else
19175 cat >conftest.$ac_ext <<_ACEOF
19176 /* confdefs.h. */
19177 _ACEOF
19178 cat confdefs.h >>conftest.$ac_ext
19179 cat >>conftest.$ac_ext <<_ACEOF
19180 /* end confdefs.h. */
19181 #include <sys/types.h>
19182 #include <sys/time.h>
19183 #include <time.h>
19186 main ()
19188 if ((struct tm *) 0)
19189 return 0;
19191 return 0;
19193 _ACEOF
19194 rm -f conftest.$ac_objext
19195 if { (ac_try="$ac_compile"
19196 case "(($ac_try" in
19197 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19198 *) ac_try_echo=$ac_try;;
19199 esac
19200 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19201 (eval "$ac_compile") 2>conftest.er1
19202 ac_status=$?
19203 grep -v '^ *+' conftest.er1 >conftest.err
19204 rm -f conftest.er1
19205 cat conftest.err >&5
19206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19207 (exit $ac_status); } && {
19208 test -z "$ac_c_werror_flag" ||
19209 test ! -s conftest.err
19210 } && test -s conftest.$ac_objext; then
19211 ac_cv_header_time=yes
19212 else
19213 echo "$as_me: failed program was:" >&5
19214 sed 's/^/| /' conftest.$ac_ext >&5
19216 ac_cv_header_time=no
19219 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19221 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
19222 echo "${ECHO_T}$ac_cv_header_time" >&6; }
19223 if test $ac_cv_header_time = yes; then
19225 cat >>confdefs.h <<\_ACEOF
19226 #define TIME_WITH_SYS_TIME 1
19227 _ACEOF
19231 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
19232 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
19233 if test "${ac_cv_struct_tm+set}" = set; then
19234 echo $ECHO_N "(cached) $ECHO_C" >&6
19235 else
19236 cat >conftest.$ac_ext <<_ACEOF
19237 /* confdefs.h. */
19238 _ACEOF
19239 cat confdefs.h >>conftest.$ac_ext
19240 cat >>conftest.$ac_ext <<_ACEOF
19241 /* end confdefs.h. */
19242 #include <sys/types.h>
19243 #include <time.h>
19246 main ()
19248 struct tm tm;
19249 int *p = &tm.tm_sec;
19250 return !p;
19252 return 0;
19254 _ACEOF
19255 rm -f conftest.$ac_objext
19256 if { (ac_try="$ac_compile"
19257 case "(($ac_try" in
19258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19259 *) ac_try_echo=$ac_try;;
19260 esac
19261 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19262 (eval "$ac_compile") 2>conftest.er1
19263 ac_status=$?
19264 grep -v '^ *+' conftest.er1 >conftest.err
19265 rm -f conftest.er1
19266 cat conftest.err >&5
19267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19268 (exit $ac_status); } && {
19269 test -z "$ac_c_werror_flag" ||
19270 test ! -s conftest.err
19271 } && test -s conftest.$ac_objext; then
19272 ac_cv_struct_tm=time.h
19273 else
19274 echo "$as_me: failed program was:" >&5
19275 sed 's/^/| /' conftest.$ac_ext >&5
19277 ac_cv_struct_tm=sys/time.h
19280 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19282 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
19283 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
19284 if test $ac_cv_struct_tm = sys/time.h; then
19286 cat >>confdefs.h <<\_ACEOF
19287 #define TM_IN_SYS_TIME 1
19288 _ACEOF
19292 { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
19293 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
19294 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
19295 echo $ECHO_N "(cached) $ECHO_C" >&6
19296 else
19297 cat >conftest.$ac_ext <<_ACEOF
19298 /* confdefs.h. */
19299 _ACEOF
19300 cat confdefs.h >>conftest.$ac_ext
19301 cat >>conftest.$ac_ext <<_ACEOF
19302 /* end confdefs.h. */
19303 #include <sys/types.h>
19304 #include <$ac_cv_struct_tm>
19308 main ()
19310 static struct tm ac_aggr;
19311 if (ac_aggr.tm_zone)
19312 return 0;
19314 return 0;
19316 _ACEOF
19317 rm -f conftest.$ac_objext
19318 if { (ac_try="$ac_compile"
19319 case "(($ac_try" in
19320 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19321 *) ac_try_echo=$ac_try;;
19322 esac
19323 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19324 (eval "$ac_compile") 2>conftest.er1
19325 ac_status=$?
19326 grep -v '^ *+' conftest.er1 >conftest.err
19327 rm -f conftest.er1
19328 cat conftest.err >&5
19329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19330 (exit $ac_status); } && {
19331 test -z "$ac_c_werror_flag" ||
19332 test ! -s conftest.err
19333 } && test -s conftest.$ac_objext; then
19334 ac_cv_member_struct_tm_tm_zone=yes
19335 else
19336 echo "$as_me: failed program was:" >&5
19337 sed 's/^/| /' conftest.$ac_ext >&5
19339 cat >conftest.$ac_ext <<_ACEOF
19340 /* confdefs.h. */
19341 _ACEOF
19342 cat confdefs.h >>conftest.$ac_ext
19343 cat >>conftest.$ac_ext <<_ACEOF
19344 /* end confdefs.h. */
19345 #include <sys/types.h>
19346 #include <$ac_cv_struct_tm>
19350 main ()
19352 static struct tm ac_aggr;
19353 if (sizeof ac_aggr.tm_zone)
19354 return 0;
19356 return 0;
19358 _ACEOF
19359 rm -f conftest.$ac_objext
19360 if { (ac_try="$ac_compile"
19361 case "(($ac_try" in
19362 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19363 *) ac_try_echo=$ac_try;;
19364 esac
19365 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19366 (eval "$ac_compile") 2>conftest.er1
19367 ac_status=$?
19368 grep -v '^ *+' conftest.er1 >conftest.err
19369 rm -f conftest.er1
19370 cat conftest.err >&5
19371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19372 (exit $ac_status); } && {
19373 test -z "$ac_c_werror_flag" ||
19374 test ! -s conftest.err
19375 } && test -s conftest.$ac_objext; then
19376 ac_cv_member_struct_tm_tm_zone=yes
19377 else
19378 echo "$as_me: failed program was:" >&5
19379 sed 's/^/| /' conftest.$ac_ext >&5
19381 ac_cv_member_struct_tm_tm_zone=no
19384 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19387 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19389 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
19390 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
19391 if test $ac_cv_member_struct_tm_tm_zone = yes; then
19393 cat >>confdefs.h <<_ACEOF
19394 #define HAVE_STRUCT_TM_TM_ZONE 1
19395 _ACEOF
19400 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
19402 cat >>confdefs.h <<\_ACEOF
19403 #define HAVE_TM_ZONE 1
19404 _ACEOF
19406 else
19407 { echo "$as_me:$LINENO: checking whether tzname is declared" >&5
19408 echo $ECHO_N "checking whether tzname is declared... $ECHO_C" >&6; }
19409 if test "${ac_cv_have_decl_tzname+set}" = set; then
19410 echo $ECHO_N "(cached) $ECHO_C" >&6
19411 else
19412 cat >conftest.$ac_ext <<_ACEOF
19413 /* confdefs.h. */
19414 _ACEOF
19415 cat confdefs.h >>conftest.$ac_ext
19416 cat >>conftest.$ac_ext <<_ACEOF
19417 /* end confdefs.h. */
19418 #include <time.h>
19421 main ()
19423 #ifndef tzname
19424 (void) tzname;
19425 #endif
19428 return 0;
19430 _ACEOF
19431 rm -f conftest.$ac_objext
19432 if { (ac_try="$ac_compile"
19433 case "(($ac_try" in
19434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19435 *) ac_try_echo=$ac_try;;
19436 esac
19437 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19438 (eval "$ac_compile") 2>conftest.er1
19439 ac_status=$?
19440 grep -v '^ *+' conftest.er1 >conftest.err
19441 rm -f conftest.er1
19442 cat conftest.err >&5
19443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19444 (exit $ac_status); } && {
19445 test -z "$ac_c_werror_flag" ||
19446 test ! -s conftest.err
19447 } && test -s conftest.$ac_objext; then
19448 ac_cv_have_decl_tzname=yes
19449 else
19450 echo "$as_me: failed program was:" >&5
19451 sed 's/^/| /' conftest.$ac_ext >&5
19453 ac_cv_have_decl_tzname=no
19456 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19458 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
19459 echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; }
19460 if test $ac_cv_have_decl_tzname = yes; then
19462 cat >>confdefs.h <<_ACEOF
19463 #define HAVE_DECL_TZNAME 1
19464 _ACEOF
19467 else
19468 cat >>confdefs.h <<_ACEOF
19469 #define HAVE_DECL_TZNAME 0
19470 _ACEOF
19476 { echo "$as_me:$LINENO: checking for tzname" >&5
19477 echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
19478 if test "${ac_cv_var_tzname+set}" = set; then
19479 echo $ECHO_N "(cached) $ECHO_C" >&6
19480 else
19481 cat >conftest.$ac_ext <<_ACEOF
19482 /* confdefs.h. */
19483 _ACEOF
19484 cat confdefs.h >>conftest.$ac_ext
19485 cat >>conftest.$ac_ext <<_ACEOF
19486 /* end confdefs.h. */
19487 #include <time.h>
19488 #if !HAVE_DECL_TZNAME
19489 extern char *tzname[];
19490 #endif
19493 main ()
19495 return tzname[0][0];
19497 return 0;
19499 _ACEOF
19500 rm -f conftest.$ac_objext conftest$ac_exeext
19501 if { (ac_try="$ac_link"
19502 case "(($ac_try" in
19503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19504 *) ac_try_echo=$ac_try;;
19505 esac
19506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19507 (eval "$ac_link") 2>conftest.er1
19508 ac_status=$?
19509 grep -v '^ *+' conftest.er1 >conftest.err
19510 rm -f conftest.er1
19511 cat conftest.err >&5
19512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19513 (exit $ac_status); } && {
19514 test -z "$ac_c_werror_flag" ||
19515 test ! -s conftest.err
19516 } && test -s conftest$ac_exeext &&
19517 $as_test_x conftest$ac_exeext; then
19518 ac_cv_var_tzname=yes
19519 else
19520 echo "$as_me: failed program was:" >&5
19521 sed 's/^/| /' conftest.$ac_ext >&5
19523 ac_cv_var_tzname=no
19526 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19527 conftest$ac_exeext conftest.$ac_ext
19529 { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
19530 echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
19531 if test $ac_cv_var_tzname = yes; then
19533 cat >>confdefs.h <<\_ACEOF
19534 #define HAVE_TZNAME 1
19535 _ACEOF
19540 { echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
19541 echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6; }
19542 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
19543 echo $ECHO_N "(cached) $ECHO_C" >&6
19544 else
19545 cat >conftest.$ac_ext <<_ACEOF
19546 /* confdefs.h. */
19547 _ACEOF
19548 cat confdefs.h >>conftest.$ac_ext
19549 cat >>conftest.$ac_ext <<_ACEOF
19550 /* end confdefs.h. */
19551 $ac_includes_default
19553 main ()
19555 static struct stat ac_aggr;
19556 if (ac_aggr.st_rdev)
19557 return 0;
19559 return 0;
19561 _ACEOF
19562 rm -f conftest.$ac_objext
19563 if { (ac_try="$ac_compile"
19564 case "(($ac_try" in
19565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19566 *) ac_try_echo=$ac_try;;
19567 esac
19568 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19569 (eval "$ac_compile") 2>conftest.er1
19570 ac_status=$?
19571 grep -v '^ *+' conftest.er1 >conftest.err
19572 rm -f conftest.er1
19573 cat conftest.err >&5
19574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19575 (exit $ac_status); } && {
19576 test -z "$ac_c_werror_flag" ||
19577 test ! -s conftest.err
19578 } && test -s conftest.$ac_objext; then
19579 ac_cv_member_struct_stat_st_rdev=yes
19580 else
19581 echo "$as_me: failed program was:" >&5
19582 sed 's/^/| /' conftest.$ac_ext >&5
19584 cat >conftest.$ac_ext <<_ACEOF
19585 /* confdefs.h. */
19586 _ACEOF
19587 cat confdefs.h >>conftest.$ac_ext
19588 cat >>conftest.$ac_ext <<_ACEOF
19589 /* end confdefs.h. */
19590 $ac_includes_default
19592 main ()
19594 static struct stat ac_aggr;
19595 if (sizeof ac_aggr.st_rdev)
19596 return 0;
19598 return 0;
19600 _ACEOF
19601 rm -f conftest.$ac_objext
19602 if { (ac_try="$ac_compile"
19603 case "(($ac_try" in
19604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19605 *) ac_try_echo=$ac_try;;
19606 esac
19607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19608 (eval "$ac_compile") 2>conftest.er1
19609 ac_status=$?
19610 grep -v '^ *+' conftest.er1 >conftest.err
19611 rm -f conftest.er1
19612 cat conftest.err >&5
19613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19614 (exit $ac_status); } && {
19615 test -z "$ac_c_werror_flag" ||
19616 test ! -s conftest.err
19617 } && test -s conftest.$ac_objext; then
19618 ac_cv_member_struct_stat_st_rdev=yes
19619 else
19620 echo "$as_me: failed program was:" >&5
19621 sed 's/^/| /' conftest.$ac_ext >&5
19623 ac_cv_member_struct_stat_st_rdev=no
19626 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19629 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19631 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
19632 echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6; }
19633 if test $ac_cv_member_struct_stat_st_rdev = yes; then
19635 cat >>confdefs.h <<_ACEOF
19636 #define HAVE_STRUCT_STAT_ST_RDEV 1
19637 _ACEOF
19642 { echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
19643 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6; }
19644 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
19645 echo $ECHO_N "(cached) $ECHO_C" >&6
19646 else
19647 cat >conftest.$ac_ext <<_ACEOF
19648 /* confdefs.h. */
19649 _ACEOF
19650 cat confdefs.h >>conftest.$ac_ext
19651 cat >>conftest.$ac_ext <<_ACEOF
19652 /* end confdefs.h. */
19653 $ac_includes_default
19655 main ()
19657 static struct stat ac_aggr;
19658 if (ac_aggr.st_blksize)
19659 return 0;
19661 return 0;
19663 _ACEOF
19664 rm -f conftest.$ac_objext
19665 if { (ac_try="$ac_compile"
19666 case "(($ac_try" in
19667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19668 *) ac_try_echo=$ac_try;;
19669 esac
19670 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19671 (eval "$ac_compile") 2>conftest.er1
19672 ac_status=$?
19673 grep -v '^ *+' conftest.er1 >conftest.err
19674 rm -f conftest.er1
19675 cat conftest.err >&5
19676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19677 (exit $ac_status); } && {
19678 test -z "$ac_c_werror_flag" ||
19679 test ! -s conftest.err
19680 } && test -s conftest.$ac_objext; then
19681 ac_cv_member_struct_stat_st_blksize=yes
19682 else
19683 echo "$as_me: failed program was:" >&5
19684 sed 's/^/| /' conftest.$ac_ext >&5
19686 cat >conftest.$ac_ext <<_ACEOF
19687 /* confdefs.h. */
19688 _ACEOF
19689 cat confdefs.h >>conftest.$ac_ext
19690 cat >>conftest.$ac_ext <<_ACEOF
19691 /* end confdefs.h. */
19692 $ac_includes_default
19694 main ()
19696 static struct stat ac_aggr;
19697 if (sizeof ac_aggr.st_blksize)
19698 return 0;
19700 return 0;
19702 _ACEOF
19703 rm -f conftest.$ac_objext
19704 if { (ac_try="$ac_compile"
19705 case "(($ac_try" in
19706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19707 *) ac_try_echo=$ac_try;;
19708 esac
19709 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19710 (eval "$ac_compile") 2>conftest.er1
19711 ac_status=$?
19712 grep -v '^ *+' conftest.er1 >conftest.err
19713 rm -f conftest.er1
19714 cat conftest.err >&5
19715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19716 (exit $ac_status); } && {
19717 test -z "$ac_c_werror_flag" ||
19718 test ! -s conftest.err
19719 } && test -s conftest.$ac_objext; then
19720 ac_cv_member_struct_stat_st_blksize=yes
19721 else
19722 echo "$as_me: failed program was:" >&5
19723 sed 's/^/| /' conftest.$ac_ext >&5
19725 ac_cv_member_struct_stat_st_blksize=no
19728 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19731 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19733 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
19734 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6; }
19735 if test $ac_cv_member_struct_stat_st_blksize = yes; then
19737 cat >>confdefs.h <<_ACEOF
19738 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
19739 _ACEOF
19744 { echo "$as_me:$LINENO: checking for struct stat.st_flags" >&5
19745 echo $ECHO_N "checking for struct stat.st_flags... $ECHO_C" >&6; }
19746 if test "${ac_cv_member_struct_stat_st_flags+set}" = set; then
19747 echo $ECHO_N "(cached) $ECHO_C" >&6
19748 else
19749 cat >conftest.$ac_ext <<_ACEOF
19750 /* confdefs.h. */
19751 _ACEOF
19752 cat confdefs.h >>conftest.$ac_ext
19753 cat >>conftest.$ac_ext <<_ACEOF
19754 /* end confdefs.h. */
19755 $ac_includes_default
19757 main ()
19759 static struct stat ac_aggr;
19760 if (ac_aggr.st_flags)
19761 return 0;
19763 return 0;
19765 _ACEOF
19766 rm -f conftest.$ac_objext
19767 if { (ac_try="$ac_compile"
19768 case "(($ac_try" in
19769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19770 *) ac_try_echo=$ac_try;;
19771 esac
19772 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19773 (eval "$ac_compile") 2>conftest.er1
19774 ac_status=$?
19775 grep -v '^ *+' conftest.er1 >conftest.err
19776 rm -f conftest.er1
19777 cat conftest.err >&5
19778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19779 (exit $ac_status); } && {
19780 test -z "$ac_c_werror_flag" ||
19781 test ! -s conftest.err
19782 } && test -s conftest.$ac_objext; then
19783 ac_cv_member_struct_stat_st_flags=yes
19784 else
19785 echo "$as_me: failed program was:" >&5
19786 sed 's/^/| /' conftest.$ac_ext >&5
19788 cat >conftest.$ac_ext <<_ACEOF
19789 /* confdefs.h. */
19790 _ACEOF
19791 cat confdefs.h >>conftest.$ac_ext
19792 cat >>conftest.$ac_ext <<_ACEOF
19793 /* end confdefs.h. */
19794 $ac_includes_default
19796 main ()
19798 static struct stat ac_aggr;
19799 if (sizeof ac_aggr.st_flags)
19800 return 0;
19802 return 0;
19804 _ACEOF
19805 rm -f conftest.$ac_objext
19806 if { (ac_try="$ac_compile"
19807 case "(($ac_try" in
19808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19809 *) ac_try_echo=$ac_try;;
19810 esac
19811 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19812 (eval "$ac_compile") 2>conftest.er1
19813 ac_status=$?
19814 grep -v '^ *+' conftest.er1 >conftest.err
19815 rm -f conftest.er1
19816 cat conftest.err >&5
19817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19818 (exit $ac_status); } && {
19819 test -z "$ac_c_werror_flag" ||
19820 test ! -s conftest.err
19821 } && test -s conftest.$ac_objext; then
19822 ac_cv_member_struct_stat_st_flags=yes
19823 else
19824 echo "$as_me: failed program was:" >&5
19825 sed 's/^/| /' conftest.$ac_ext >&5
19827 ac_cv_member_struct_stat_st_flags=no
19830 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19833 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19835 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_flags" >&5
19836 echo "${ECHO_T}$ac_cv_member_struct_stat_st_flags" >&6; }
19837 if test $ac_cv_member_struct_stat_st_flags = yes; then
19839 cat >>confdefs.h <<_ACEOF
19840 #define HAVE_STRUCT_STAT_ST_FLAGS 1
19841 _ACEOF
19846 { echo "$as_me:$LINENO: checking for struct stat.st_gen" >&5
19847 echo $ECHO_N "checking for struct stat.st_gen... $ECHO_C" >&6; }
19848 if test "${ac_cv_member_struct_stat_st_gen+set}" = set; then
19849 echo $ECHO_N "(cached) $ECHO_C" >&6
19850 else
19851 cat >conftest.$ac_ext <<_ACEOF
19852 /* confdefs.h. */
19853 _ACEOF
19854 cat confdefs.h >>conftest.$ac_ext
19855 cat >>conftest.$ac_ext <<_ACEOF
19856 /* end confdefs.h. */
19857 $ac_includes_default
19859 main ()
19861 static struct stat ac_aggr;
19862 if (ac_aggr.st_gen)
19863 return 0;
19865 return 0;
19867 _ACEOF
19868 rm -f conftest.$ac_objext
19869 if { (ac_try="$ac_compile"
19870 case "(($ac_try" in
19871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19872 *) ac_try_echo=$ac_try;;
19873 esac
19874 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19875 (eval "$ac_compile") 2>conftest.er1
19876 ac_status=$?
19877 grep -v '^ *+' conftest.er1 >conftest.err
19878 rm -f conftest.er1
19879 cat conftest.err >&5
19880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19881 (exit $ac_status); } && {
19882 test -z "$ac_c_werror_flag" ||
19883 test ! -s conftest.err
19884 } && test -s conftest.$ac_objext; then
19885 ac_cv_member_struct_stat_st_gen=yes
19886 else
19887 echo "$as_me: failed program was:" >&5
19888 sed 's/^/| /' conftest.$ac_ext >&5
19890 cat >conftest.$ac_ext <<_ACEOF
19891 /* confdefs.h. */
19892 _ACEOF
19893 cat confdefs.h >>conftest.$ac_ext
19894 cat >>conftest.$ac_ext <<_ACEOF
19895 /* end confdefs.h. */
19896 $ac_includes_default
19898 main ()
19900 static struct stat ac_aggr;
19901 if (sizeof ac_aggr.st_gen)
19902 return 0;
19904 return 0;
19906 _ACEOF
19907 rm -f conftest.$ac_objext
19908 if { (ac_try="$ac_compile"
19909 case "(($ac_try" in
19910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19911 *) ac_try_echo=$ac_try;;
19912 esac
19913 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19914 (eval "$ac_compile") 2>conftest.er1
19915 ac_status=$?
19916 grep -v '^ *+' conftest.er1 >conftest.err
19917 rm -f conftest.er1
19918 cat conftest.err >&5
19919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19920 (exit $ac_status); } && {
19921 test -z "$ac_c_werror_flag" ||
19922 test ! -s conftest.err
19923 } && test -s conftest.$ac_objext; then
19924 ac_cv_member_struct_stat_st_gen=yes
19925 else
19926 echo "$as_me: failed program was:" >&5
19927 sed 's/^/| /' conftest.$ac_ext >&5
19929 ac_cv_member_struct_stat_st_gen=no
19932 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19935 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19937 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_gen" >&5
19938 echo "${ECHO_T}$ac_cv_member_struct_stat_st_gen" >&6; }
19939 if test $ac_cv_member_struct_stat_st_gen = yes; then
19941 cat >>confdefs.h <<_ACEOF
19942 #define HAVE_STRUCT_STAT_ST_GEN 1
19943 _ACEOF
19948 { echo "$as_me:$LINENO: checking for struct stat.st_birthtime" >&5
19949 echo $ECHO_N "checking for struct stat.st_birthtime... $ECHO_C" >&6; }
19950 if test "${ac_cv_member_struct_stat_st_birthtime+set}" = set; then
19951 echo $ECHO_N "(cached) $ECHO_C" >&6
19952 else
19953 cat >conftest.$ac_ext <<_ACEOF
19954 /* confdefs.h. */
19955 _ACEOF
19956 cat confdefs.h >>conftest.$ac_ext
19957 cat >>conftest.$ac_ext <<_ACEOF
19958 /* end confdefs.h. */
19959 $ac_includes_default
19961 main ()
19963 static struct stat ac_aggr;
19964 if (ac_aggr.st_birthtime)
19965 return 0;
19967 return 0;
19969 _ACEOF
19970 rm -f conftest.$ac_objext
19971 if { (ac_try="$ac_compile"
19972 case "(($ac_try" in
19973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19974 *) ac_try_echo=$ac_try;;
19975 esac
19976 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19977 (eval "$ac_compile") 2>conftest.er1
19978 ac_status=$?
19979 grep -v '^ *+' conftest.er1 >conftest.err
19980 rm -f conftest.er1
19981 cat conftest.err >&5
19982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19983 (exit $ac_status); } && {
19984 test -z "$ac_c_werror_flag" ||
19985 test ! -s conftest.err
19986 } && test -s conftest.$ac_objext; then
19987 ac_cv_member_struct_stat_st_birthtime=yes
19988 else
19989 echo "$as_me: failed program was:" >&5
19990 sed 's/^/| /' conftest.$ac_ext >&5
19992 cat >conftest.$ac_ext <<_ACEOF
19993 /* confdefs.h. */
19994 _ACEOF
19995 cat confdefs.h >>conftest.$ac_ext
19996 cat >>conftest.$ac_ext <<_ACEOF
19997 /* end confdefs.h. */
19998 $ac_includes_default
20000 main ()
20002 static struct stat ac_aggr;
20003 if (sizeof ac_aggr.st_birthtime)
20004 return 0;
20006 return 0;
20008 _ACEOF
20009 rm -f conftest.$ac_objext
20010 if { (ac_try="$ac_compile"
20011 case "(($ac_try" in
20012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20013 *) ac_try_echo=$ac_try;;
20014 esac
20015 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20016 (eval "$ac_compile") 2>conftest.er1
20017 ac_status=$?
20018 grep -v '^ *+' conftest.er1 >conftest.err
20019 rm -f conftest.er1
20020 cat conftest.err >&5
20021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20022 (exit $ac_status); } && {
20023 test -z "$ac_c_werror_flag" ||
20024 test ! -s conftest.err
20025 } && test -s conftest.$ac_objext; then
20026 ac_cv_member_struct_stat_st_birthtime=yes
20027 else
20028 echo "$as_me: failed program was:" >&5
20029 sed 's/^/| /' conftest.$ac_ext >&5
20031 ac_cv_member_struct_stat_st_birthtime=no
20034 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20037 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20039 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_birthtime" >&5
20040 echo "${ECHO_T}$ac_cv_member_struct_stat_st_birthtime" >&6; }
20041 if test $ac_cv_member_struct_stat_st_birthtime = yes; then
20043 cat >>confdefs.h <<_ACEOF
20044 #define HAVE_STRUCT_STAT_ST_BIRTHTIME 1
20045 _ACEOF
20050 { echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
20051 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6; }
20052 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
20053 echo $ECHO_N "(cached) $ECHO_C" >&6
20054 else
20055 cat >conftest.$ac_ext <<_ACEOF
20056 /* confdefs.h. */
20057 _ACEOF
20058 cat confdefs.h >>conftest.$ac_ext
20059 cat >>conftest.$ac_ext <<_ACEOF
20060 /* end confdefs.h. */
20061 $ac_includes_default
20063 main ()
20065 static struct stat ac_aggr;
20066 if (ac_aggr.st_blocks)
20067 return 0;
20069 return 0;
20071 _ACEOF
20072 rm -f conftest.$ac_objext
20073 if { (ac_try="$ac_compile"
20074 case "(($ac_try" in
20075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20076 *) ac_try_echo=$ac_try;;
20077 esac
20078 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20079 (eval "$ac_compile") 2>conftest.er1
20080 ac_status=$?
20081 grep -v '^ *+' conftest.er1 >conftest.err
20082 rm -f conftest.er1
20083 cat conftest.err >&5
20084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20085 (exit $ac_status); } && {
20086 test -z "$ac_c_werror_flag" ||
20087 test ! -s conftest.err
20088 } && test -s conftest.$ac_objext; then
20089 ac_cv_member_struct_stat_st_blocks=yes
20090 else
20091 echo "$as_me: failed program was:" >&5
20092 sed 's/^/| /' conftest.$ac_ext >&5
20094 cat >conftest.$ac_ext <<_ACEOF
20095 /* confdefs.h. */
20096 _ACEOF
20097 cat confdefs.h >>conftest.$ac_ext
20098 cat >>conftest.$ac_ext <<_ACEOF
20099 /* end confdefs.h. */
20100 $ac_includes_default
20102 main ()
20104 static struct stat ac_aggr;
20105 if (sizeof ac_aggr.st_blocks)
20106 return 0;
20108 return 0;
20110 _ACEOF
20111 rm -f conftest.$ac_objext
20112 if { (ac_try="$ac_compile"
20113 case "(($ac_try" in
20114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20115 *) ac_try_echo=$ac_try;;
20116 esac
20117 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20118 (eval "$ac_compile") 2>conftest.er1
20119 ac_status=$?
20120 grep -v '^ *+' conftest.er1 >conftest.err
20121 rm -f conftest.er1
20122 cat conftest.err >&5
20123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20124 (exit $ac_status); } && {
20125 test -z "$ac_c_werror_flag" ||
20126 test ! -s conftest.err
20127 } && test -s conftest.$ac_objext; then
20128 ac_cv_member_struct_stat_st_blocks=yes
20129 else
20130 echo "$as_me: failed program was:" >&5
20131 sed 's/^/| /' conftest.$ac_ext >&5
20133 ac_cv_member_struct_stat_st_blocks=no
20136 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20139 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20141 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
20142 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6; }
20143 if test $ac_cv_member_struct_stat_st_blocks = yes; then
20145 cat >>confdefs.h <<_ACEOF
20146 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
20147 _ACEOF
20150 cat >>confdefs.h <<\_ACEOF
20151 #define HAVE_ST_BLOCKS 1
20152 _ACEOF
20154 else
20155 case " $LIBOBJS " in
20156 *" fileblocks.$ac_objext "* ) ;;
20157 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
20159 esac
20165 { echo "$as_me:$LINENO: checking for time.h that defines altzone" >&5
20166 echo $ECHO_N "checking for time.h that defines altzone... $ECHO_C" >&6; }
20167 if test "${ac_cv_header_time_altzone+set}" = set; then
20168 echo $ECHO_N "(cached) $ECHO_C" >&6
20169 else
20170 cat >conftest.$ac_ext <<_ACEOF
20171 /* confdefs.h. */
20172 _ACEOF
20173 cat confdefs.h >>conftest.$ac_ext
20174 cat >>conftest.$ac_ext <<_ACEOF
20175 /* end confdefs.h. */
20176 #include <time.h>
20178 main ()
20180 return altzone;
20182 return 0;
20184 _ACEOF
20185 rm -f conftest.$ac_objext
20186 if { (ac_try="$ac_compile"
20187 case "(($ac_try" in
20188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20189 *) ac_try_echo=$ac_try;;
20190 esac
20191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20192 (eval "$ac_compile") 2>conftest.er1
20193 ac_status=$?
20194 grep -v '^ *+' conftest.er1 >conftest.err
20195 rm -f conftest.er1
20196 cat conftest.err >&5
20197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20198 (exit $ac_status); } && {
20199 test -z "$ac_c_werror_flag" ||
20200 test ! -s conftest.err
20201 } && test -s conftest.$ac_objext; then
20202 ac_cv_header_time_altzone=yes
20203 else
20204 echo "$as_me: failed program was:" >&5
20205 sed 's/^/| /' conftest.$ac_ext >&5
20207 ac_cv_header_time_altzone=no
20210 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20213 { echo "$as_me:$LINENO: result: $ac_cv_header_time_altzone" >&5
20214 echo "${ECHO_T}$ac_cv_header_time_altzone" >&6; }
20215 if test $ac_cv_header_time_altzone = yes; then
20217 cat >>confdefs.h <<\_ACEOF
20218 #define HAVE_ALTZONE 1
20219 _ACEOF
20223 was_it_defined=no
20224 { echo "$as_me:$LINENO: checking whether sys/select.h and sys/time.h may both be included" >&5
20225 echo $ECHO_N "checking whether sys/select.h and sys/time.h may both be included... $ECHO_C" >&6; }
20226 cat >conftest.$ac_ext <<_ACEOF
20227 /* confdefs.h. */
20228 _ACEOF
20229 cat confdefs.h >>conftest.$ac_ext
20230 cat >>conftest.$ac_ext <<_ACEOF
20231 /* end confdefs.h. */
20233 #include <sys/types.h>
20234 #include <sys/select.h>
20235 #include <sys/time.h>
20238 main ()
20242 return 0;
20244 _ACEOF
20245 rm -f conftest.$ac_objext
20246 if { (ac_try="$ac_compile"
20247 case "(($ac_try" in
20248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20249 *) ac_try_echo=$ac_try;;
20250 esac
20251 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20252 (eval "$ac_compile") 2>conftest.er1
20253 ac_status=$?
20254 grep -v '^ *+' conftest.er1 >conftest.err
20255 rm -f conftest.er1
20256 cat conftest.err >&5
20257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20258 (exit $ac_status); } && {
20259 test -z "$ac_c_werror_flag" ||
20260 test ! -s conftest.err
20261 } && test -s conftest.$ac_objext; then
20264 cat >>confdefs.h <<\_ACEOF
20265 #define SYS_SELECT_WITH_SYS_TIME 1
20266 _ACEOF
20268 was_it_defined=yes
20270 else
20271 echo "$as_me: failed program was:" >&5
20272 sed 's/^/| /' conftest.$ac_ext >&5
20277 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20278 { echo "$as_me:$LINENO: result: $was_it_defined" >&5
20279 echo "${ECHO_T}$was_it_defined" >&6; }
20281 { echo "$as_me:$LINENO: checking for addrinfo" >&5
20282 echo $ECHO_N "checking for addrinfo... $ECHO_C" >&6; }
20283 if test "${ac_cv_struct_addrinfo+set}" = set; then
20284 echo $ECHO_N "(cached) $ECHO_C" >&6
20285 else
20286 cat >conftest.$ac_ext <<_ACEOF
20287 /* confdefs.h. */
20288 _ACEOF
20289 cat confdefs.h >>conftest.$ac_ext
20290 cat >>conftest.$ac_ext <<_ACEOF
20291 /* end confdefs.h. */
20293 # include <netdb.h>
20295 main ()
20297 struct addrinfo a
20299 return 0;
20301 _ACEOF
20302 rm -f conftest.$ac_objext
20303 if { (ac_try="$ac_compile"
20304 case "(($ac_try" in
20305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20306 *) ac_try_echo=$ac_try;;
20307 esac
20308 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20309 (eval "$ac_compile") 2>conftest.er1
20310 ac_status=$?
20311 grep -v '^ *+' conftest.er1 >conftest.err
20312 rm -f conftest.er1
20313 cat conftest.err >&5
20314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20315 (exit $ac_status); } && {
20316 test -z "$ac_c_werror_flag" ||
20317 test ! -s conftest.err
20318 } && test -s conftest.$ac_objext; then
20319 ac_cv_struct_addrinfo=yes
20320 else
20321 echo "$as_me: failed program was:" >&5
20322 sed 's/^/| /' conftest.$ac_ext >&5
20324 ac_cv_struct_addrinfo=no
20327 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20330 { echo "$as_me:$LINENO: result: $ac_cv_struct_addrinfo" >&5
20331 echo "${ECHO_T}$ac_cv_struct_addrinfo" >&6; }
20332 if test $ac_cv_struct_addrinfo = yes; then
20334 cat >>confdefs.h <<\_ACEOF
20335 #define HAVE_ADDRINFO 1
20336 _ACEOF
20340 { echo "$as_me:$LINENO: checking for sockaddr_storage" >&5
20341 echo $ECHO_N "checking for sockaddr_storage... $ECHO_C" >&6; }
20342 if test "${ac_cv_struct_sockaddr_storage+set}" = set; then
20343 echo $ECHO_N "(cached) $ECHO_C" >&6
20344 else
20345 cat >conftest.$ac_ext <<_ACEOF
20346 /* confdefs.h. */
20347 _ACEOF
20348 cat confdefs.h >>conftest.$ac_ext
20349 cat >>conftest.$ac_ext <<_ACEOF
20350 /* end confdefs.h. */
20352 # include <sys/types.h>
20353 # include <sys/socket.h>
20355 main ()
20357 struct sockaddr_storage s
20359 return 0;
20361 _ACEOF
20362 rm -f conftest.$ac_objext
20363 if { (ac_try="$ac_compile"
20364 case "(($ac_try" in
20365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20366 *) ac_try_echo=$ac_try;;
20367 esac
20368 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20369 (eval "$ac_compile") 2>conftest.er1
20370 ac_status=$?
20371 grep -v '^ *+' conftest.er1 >conftest.err
20372 rm -f conftest.er1
20373 cat conftest.err >&5
20374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20375 (exit $ac_status); } && {
20376 test -z "$ac_c_werror_flag" ||
20377 test ! -s conftest.err
20378 } && test -s conftest.$ac_objext; then
20379 ac_cv_struct_sockaddr_storage=yes
20380 else
20381 echo "$as_me: failed program was:" >&5
20382 sed 's/^/| /' conftest.$ac_ext >&5
20384 ac_cv_struct_sockaddr_storage=no
20387 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20390 { echo "$as_me:$LINENO: result: $ac_cv_struct_sockaddr_storage" >&5
20391 echo "${ECHO_T}$ac_cv_struct_sockaddr_storage" >&6; }
20392 if test $ac_cv_struct_sockaddr_storage = yes; then
20394 cat >>confdefs.h <<\_ACEOF
20395 #define HAVE_SOCKADDR_STORAGE 1
20396 _ACEOF
20400 # checks for compiler characteristics
20403 { echo "$as_me:$LINENO: checking whether char is unsigned" >&5
20404 echo $ECHO_N "checking whether char is unsigned... $ECHO_C" >&6; }
20405 if test "${ac_cv_c_char_unsigned+set}" = set; then
20406 echo $ECHO_N "(cached) $ECHO_C" >&6
20407 else
20408 cat >conftest.$ac_ext <<_ACEOF
20409 /* confdefs.h. */
20410 _ACEOF
20411 cat confdefs.h >>conftest.$ac_ext
20412 cat >>conftest.$ac_ext <<_ACEOF
20413 /* end confdefs.h. */
20414 $ac_includes_default
20416 main ()
20418 static int test_array [1 - 2 * !(((char) -1) < 0)];
20419 test_array [0] = 0
20422 return 0;
20424 _ACEOF
20425 rm -f conftest.$ac_objext
20426 if { (ac_try="$ac_compile"
20427 case "(($ac_try" in
20428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20429 *) ac_try_echo=$ac_try;;
20430 esac
20431 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20432 (eval "$ac_compile") 2>conftest.er1
20433 ac_status=$?
20434 grep -v '^ *+' conftest.er1 >conftest.err
20435 rm -f conftest.er1
20436 cat conftest.err >&5
20437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20438 (exit $ac_status); } && {
20439 test -z "$ac_c_werror_flag" ||
20440 test ! -s conftest.err
20441 } && test -s conftest.$ac_objext; then
20442 ac_cv_c_char_unsigned=no
20443 else
20444 echo "$as_me: failed program was:" >&5
20445 sed 's/^/| /' conftest.$ac_ext >&5
20447 ac_cv_c_char_unsigned=yes
20450 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20452 { echo "$as_me:$LINENO: result: $ac_cv_c_char_unsigned" >&5
20453 echo "${ECHO_T}$ac_cv_c_char_unsigned" >&6; }
20454 if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
20455 cat >>confdefs.h <<\_ACEOF
20456 #define __CHAR_UNSIGNED__ 1
20457 _ACEOF
20461 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
20462 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
20463 if test "${ac_cv_c_const+set}" = set; then
20464 echo $ECHO_N "(cached) $ECHO_C" >&6
20465 else
20466 cat >conftest.$ac_ext <<_ACEOF
20467 /* confdefs.h. */
20468 _ACEOF
20469 cat confdefs.h >>conftest.$ac_ext
20470 cat >>conftest.$ac_ext <<_ACEOF
20471 /* end confdefs.h. */
20474 main ()
20476 /* FIXME: Include the comments suggested by Paul. */
20477 #ifndef __cplusplus
20478 /* Ultrix mips cc rejects this. */
20479 typedef int charset[2];
20480 const charset cs;
20481 /* SunOS 4.1.1 cc rejects this. */
20482 char const *const *pcpcc;
20483 char **ppc;
20484 /* NEC SVR4.0.2 mips cc rejects this. */
20485 struct point {int x, y;};
20486 static struct point const zero = {0,0};
20487 /* AIX XL C 1.02.0.0 rejects this.
20488 It does not let you subtract one const X* pointer from another in
20489 an arm of an if-expression whose if-part is not a constant
20490 expression */
20491 const char *g = "string";
20492 pcpcc = &g + (g ? g-g : 0);
20493 /* HPUX 7.0 cc rejects these. */
20494 ++pcpcc;
20495 ppc = (char**) pcpcc;
20496 pcpcc = (char const *const *) ppc;
20497 { /* SCO 3.2v4 cc rejects this. */
20498 char *t;
20499 char const *s = 0 ? (char *) 0 : (char const *) 0;
20501 *t++ = 0;
20502 if (s) return 0;
20504 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
20505 int x[] = {25, 17};
20506 const int *foo = &x[0];
20507 ++foo;
20509 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
20510 typedef const int *iptr;
20511 iptr p = 0;
20512 ++p;
20514 { /* AIX XL C 1.02.0.0 rejects this saying
20515 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
20516 struct s { int j; const int *ap[3]; };
20517 struct s *b; b->j = 5;
20519 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
20520 const int foo = 10;
20521 if (!foo) return 0;
20523 return !cs[0] && !zero.x;
20524 #endif
20527 return 0;
20529 _ACEOF
20530 rm -f conftest.$ac_objext
20531 if { (ac_try="$ac_compile"
20532 case "(($ac_try" in
20533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20534 *) ac_try_echo=$ac_try;;
20535 esac
20536 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20537 (eval "$ac_compile") 2>conftest.er1
20538 ac_status=$?
20539 grep -v '^ *+' conftest.er1 >conftest.err
20540 rm -f conftest.er1
20541 cat conftest.err >&5
20542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20543 (exit $ac_status); } && {
20544 test -z "$ac_c_werror_flag" ||
20545 test ! -s conftest.err
20546 } && test -s conftest.$ac_objext; then
20547 ac_cv_c_const=yes
20548 else
20549 echo "$as_me: failed program was:" >&5
20550 sed 's/^/| /' conftest.$ac_ext >&5
20552 ac_cv_c_const=no
20555 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20557 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
20558 echo "${ECHO_T}$ac_cv_c_const" >&6; }
20559 if test $ac_cv_c_const = no; then
20561 cat >>confdefs.h <<\_ACEOF
20562 #define const
20563 _ACEOF
20568 works=no
20569 { echo "$as_me:$LINENO: checking for working volatile" >&5
20570 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6; }
20571 cat >conftest.$ac_ext <<_ACEOF
20572 /* confdefs.h. */
20573 _ACEOF
20574 cat confdefs.h >>conftest.$ac_ext
20575 cat >>conftest.$ac_ext <<_ACEOF
20576 /* end confdefs.h. */
20579 main ()
20581 volatile int x; x = 0;
20583 return 0;
20585 _ACEOF
20586 rm -f conftest.$ac_objext
20587 if { (ac_try="$ac_compile"
20588 case "(($ac_try" in
20589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20590 *) ac_try_echo=$ac_try;;
20591 esac
20592 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20593 (eval "$ac_compile") 2>conftest.er1
20594 ac_status=$?
20595 grep -v '^ *+' conftest.er1 >conftest.err
20596 rm -f conftest.er1
20597 cat conftest.err >&5
20598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20599 (exit $ac_status); } && {
20600 test -z "$ac_c_werror_flag" ||
20601 test ! -s conftest.err
20602 } && test -s conftest.$ac_objext; then
20603 works=yes
20604 else
20605 echo "$as_me: failed program was:" >&5
20606 sed 's/^/| /' conftest.$ac_ext >&5
20609 cat >>confdefs.h <<\_ACEOF
20610 #define volatile
20611 _ACEOF
20616 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20617 { echo "$as_me:$LINENO: result: $works" >&5
20618 echo "${ECHO_T}$works" >&6; }
20620 works=no
20621 { echo "$as_me:$LINENO: checking for working signed char" >&5
20622 echo $ECHO_N "checking for working signed char... $ECHO_C" >&6; }
20623 cat >conftest.$ac_ext <<_ACEOF
20624 /* confdefs.h. */
20625 _ACEOF
20626 cat confdefs.h >>conftest.$ac_ext
20627 cat >>conftest.$ac_ext <<_ACEOF
20628 /* end confdefs.h. */
20631 main ()
20633 signed char c;
20635 return 0;
20637 _ACEOF
20638 rm -f conftest.$ac_objext
20639 if { (ac_try="$ac_compile"
20640 case "(($ac_try" in
20641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20642 *) ac_try_echo=$ac_try;;
20643 esac
20644 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20645 (eval "$ac_compile") 2>conftest.er1
20646 ac_status=$?
20647 grep -v '^ *+' conftest.er1 >conftest.err
20648 rm -f conftest.er1
20649 cat conftest.err >&5
20650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20651 (exit $ac_status); } && {
20652 test -z "$ac_c_werror_flag" ||
20653 test ! -s conftest.err
20654 } && test -s conftest.$ac_objext; then
20655 works=yes
20656 else
20657 echo "$as_me: failed program was:" >&5
20658 sed 's/^/| /' conftest.$ac_ext >&5
20661 cat >>confdefs.h <<\_ACEOF
20662 #define signed
20663 _ACEOF
20668 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20669 { echo "$as_me:$LINENO: result: $works" >&5
20670 echo "${ECHO_T}$works" >&6; }
20672 have_prototypes=no
20673 { echo "$as_me:$LINENO: checking for prototypes" >&5
20674 echo $ECHO_N "checking for prototypes... $ECHO_C" >&6; }
20675 cat >conftest.$ac_ext <<_ACEOF
20676 /* confdefs.h. */
20677 _ACEOF
20678 cat confdefs.h >>conftest.$ac_ext
20679 cat >>conftest.$ac_ext <<_ACEOF
20680 /* end confdefs.h. */
20681 int foo(int x) { return 0; }
20683 main ()
20685 return foo(10);
20687 return 0;
20689 _ACEOF
20690 rm -f conftest.$ac_objext
20691 if { (ac_try="$ac_compile"
20692 case "(($ac_try" in
20693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20694 *) ac_try_echo=$ac_try;;
20695 esac
20696 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20697 (eval "$ac_compile") 2>conftest.er1
20698 ac_status=$?
20699 grep -v '^ *+' conftest.er1 >conftest.err
20700 rm -f conftest.er1
20701 cat conftest.err >&5
20702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20703 (exit $ac_status); } && {
20704 test -z "$ac_c_werror_flag" ||
20705 test ! -s conftest.err
20706 } && test -s conftest.$ac_objext; then
20709 cat >>confdefs.h <<\_ACEOF
20710 #define HAVE_PROTOTYPES 1
20711 _ACEOF
20713 have_prototypes=yes
20715 else
20716 echo "$as_me: failed program was:" >&5
20717 sed 's/^/| /' conftest.$ac_ext >&5
20722 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20723 { echo "$as_me:$LINENO: result: $have_prototypes" >&5
20724 echo "${ECHO_T}$have_prototypes" >&6; }
20726 works=no
20727 { echo "$as_me:$LINENO: checking for variable length prototypes and stdarg.h" >&5
20728 echo $ECHO_N "checking for variable length prototypes and stdarg.h... $ECHO_C" >&6; }
20729 cat >conftest.$ac_ext <<_ACEOF
20730 /* confdefs.h. */
20731 _ACEOF
20732 cat confdefs.h >>conftest.$ac_ext
20733 cat >>conftest.$ac_ext <<_ACEOF
20734 /* end confdefs.h. */
20736 #include <stdarg.h>
20737 int foo(int x, ...) {
20738 va_list va;
20739 va_start(va, x);
20740 va_arg(va, int);
20741 va_arg(va, char *);
20742 va_arg(va, double);
20743 return 0;
20747 main ()
20749 return foo(10, "", 3.14);
20751 return 0;
20753 _ACEOF
20754 rm -f conftest.$ac_objext
20755 if { (ac_try="$ac_compile"
20756 case "(($ac_try" in
20757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20758 *) ac_try_echo=$ac_try;;
20759 esac
20760 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20761 (eval "$ac_compile") 2>conftest.er1
20762 ac_status=$?
20763 grep -v '^ *+' conftest.er1 >conftest.err
20764 rm -f conftest.er1
20765 cat conftest.err >&5
20766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20767 (exit $ac_status); } && {
20768 test -z "$ac_c_werror_flag" ||
20769 test ! -s conftest.err
20770 } && test -s conftest.$ac_objext; then
20773 cat >>confdefs.h <<\_ACEOF
20774 #define HAVE_STDARG_PROTOTYPES 1
20775 _ACEOF
20777 works=yes
20779 else
20780 echo "$as_me: failed program was:" >&5
20781 sed 's/^/| /' conftest.$ac_ext >&5
20786 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20787 { echo "$as_me:$LINENO: result: $works" >&5
20788 echo "${ECHO_T}$works" >&6; }
20790 # check for socketpair
20791 { echo "$as_me:$LINENO: checking for socketpair" >&5
20792 echo $ECHO_N "checking for socketpair... $ECHO_C" >&6; }
20793 cat >conftest.$ac_ext <<_ACEOF
20794 /* confdefs.h. */
20795 _ACEOF
20796 cat confdefs.h >>conftest.$ac_ext
20797 cat >>conftest.$ac_ext <<_ACEOF
20798 /* end confdefs.h. */
20800 #include <sys/types.h>
20801 #include <sys/socket.h>
20804 main ()
20806 void *x=socketpair
20808 return 0;
20810 _ACEOF
20811 rm -f conftest.$ac_objext
20812 if { (ac_try="$ac_compile"
20813 case "(($ac_try" in
20814 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20815 *) ac_try_echo=$ac_try;;
20816 esac
20817 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20818 (eval "$ac_compile") 2>conftest.er1
20819 ac_status=$?
20820 grep -v '^ *+' conftest.er1 >conftest.err
20821 rm -f conftest.er1
20822 cat conftest.err >&5
20823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20824 (exit $ac_status); } && {
20825 test -z "$ac_c_werror_flag" ||
20826 test ! -s conftest.err
20827 } && test -s conftest.$ac_objext; then
20829 cat >>confdefs.h <<\_ACEOF
20830 #define HAVE_SOCKETPAIR 1
20831 _ACEOF
20833 { echo "$as_me:$LINENO: result: yes" >&5
20834 echo "${ECHO_T}yes" >&6; }
20835 else
20836 echo "$as_me: failed program was:" >&5
20837 sed 's/^/| /' conftest.$ac_ext >&5
20839 { echo "$as_me:$LINENO: result: no" >&5
20840 echo "${ECHO_T}no" >&6; }
20844 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20846 # check if sockaddr has sa_len member
20847 { echo "$as_me:$LINENO: checking if sockaddr has sa_len member" >&5
20848 echo $ECHO_N "checking if sockaddr has sa_len member... $ECHO_C" >&6; }
20849 cat >conftest.$ac_ext <<_ACEOF
20850 /* confdefs.h. */
20851 _ACEOF
20852 cat confdefs.h >>conftest.$ac_ext
20853 cat >>conftest.$ac_ext <<_ACEOF
20854 /* end confdefs.h. */
20855 #include <sys/types.h>
20856 #include <sys/socket.h>
20858 main ()
20860 struct sockaddr x;
20861 x.sa_len = 0;
20863 return 0;
20865 _ACEOF
20866 rm -f conftest.$ac_objext
20867 if { (ac_try="$ac_compile"
20868 case "(($ac_try" in
20869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20870 *) ac_try_echo=$ac_try;;
20871 esac
20872 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20873 (eval "$ac_compile") 2>conftest.er1
20874 ac_status=$?
20875 grep -v '^ *+' conftest.er1 >conftest.err
20876 rm -f conftest.er1
20877 cat conftest.err >&5
20878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20879 (exit $ac_status); } && {
20880 test -z "$ac_c_werror_flag" ||
20881 test ! -s conftest.err
20882 } && test -s conftest.$ac_objext; then
20883 { echo "$as_me:$LINENO: result: yes" >&5
20884 echo "${ECHO_T}yes" >&6; }
20886 cat >>confdefs.h <<\_ACEOF
20887 #define HAVE_SOCKADDR_SA_LEN 1
20888 _ACEOF
20890 else
20891 echo "$as_me: failed program was:" >&5
20892 sed 's/^/| /' conftest.$ac_ext >&5
20894 { echo "$as_me:$LINENO: result: no" >&5
20895 echo "${ECHO_T}no" >&6; }
20898 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20900 va_list_is_array=no
20901 { echo "$as_me:$LINENO: checking whether va_list is an array" >&5
20902 echo $ECHO_N "checking whether va_list is an array... $ECHO_C" >&6; }
20903 cat >conftest.$ac_ext <<_ACEOF
20904 /* confdefs.h. */
20905 _ACEOF
20906 cat confdefs.h >>conftest.$ac_ext
20907 cat >>conftest.$ac_ext <<_ACEOF
20908 /* end confdefs.h. */
20910 #ifdef HAVE_STDARG_PROTOTYPES
20911 #include <stdarg.h>
20912 #else
20913 #include <varargs.h>
20914 #endif
20917 main ()
20919 va_list list1, list2; list1 = list2;
20921 return 0;
20923 _ACEOF
20924 rm -f conftest.$ac_objext
20925 if { (ac_try="$ac_compile"
20926 case "(($ac_try" in
20927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20928 *) ac_try_echo=$ac_try;;
20929 esac
20930 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20931 (eval "$ac_compile") 2>conftest.er1
20932 ac_status=$?
20933 grep -v '^ *+' conftest.er1 >conftest.err
20934 rm -f conftest.er1
20935 cat conftest.err >&5
20936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20937 (exit $ac_status); } && {
20938 test -z "$ac_c_werror_flag" ||
20939 test ! -s conftest.err
20940 } && test -s conftest.$ac_objext; then
20942 else
20943 echo "$as_me: failed program was:" >&5
20944 sed 's/^/| /' conftest.$ac_ext >&5
20948 cat >>confdefs.h <<\_ACEOF
20949 #define VA_LIST_IS_ARRAY 1
20950 _ACEOF
20952 va_list_is_array=yes
20956 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20957 { echo "$as_me:$LINENO: result: $va_list_is_array" >&5
20958 echo "${ECHO_T}$va_list_is_array" >&6; }
20960 # sigh -- gethostbyname_r is a mess; it can have 3, 5 or 6 arguments :-(
20964 { echo "$as_me:$LINENO: checking for gethostbyname_r" >&5
20965 echo $ECHO_N "checking for gethostbyname_r... $ECHO_C" >&6; }
20966 if test "${ac_cv_func_gethostbyname_r+set}" = set; then
20967 echo $ECHO_N "(cached) $ECHO_C" >&6
20968 else
20969 cat >conftest.$ac_ext <<_ACEOF
20970 /* confdefs.h. */
20971 _ACEOF
20972 cat confdefs.h >>conftest.$ac_ext
20973 cat >>conftest.$ac_ext <<_ACEOF
20974 /* end confdefs.h. */
20975 /* Define gethostbyname_r to an innocuous variant, in case <limits.h> declares gethostbyname_r.
20976 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20977 #define gethostbyname_r innocuous_gethostbyname_r
20979 /* System header to define __stub macros and hopefully few prototypes,
20980 which can conflict with char gethostbyname_r (); below.
20981 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20982 <limits.h> exists even on freestanding compilers. */
20984 #ifdef __STDC__
20985 # include <limits.h>
20986 #else
20987 # include <assert.h>
20988 #endif
20990 #undef gethostbyname_r
20992 /* Override any GCC internal prototype to avoid an error.
20993 Use char because int might match the return type of a GCC
20994 builtin and then its argument prototype would still apply. */
20995 #ifdef __cplusplus
20996 extern "C"
20997 #endif
20998 char gethostbyname_r ();
20999 /* The GNU C library defines this for functions which it implements
21000 to always fail with ENOSYS. Some functions are actually named
21001 something starting with __ and the normal name is an alias. */
21002 #if defined __stub_gethostbyname_r || defined __stub___gethostbyname_r
21003 choke me
21004 #endif
21007 main ()
21009 return gethostbyname_r ();
21011 return 0;
21013 _ACEOF
21014 rm -f conftest.$ac_objext conftest$ac_exeext
21015 if { (ac_try="$ac_link"
21016 case "(($ac_try" in
21017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21018 *) ac_try_echo=$ac_try;;
21019 esac
21020 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21021 (eval "$ac_link") 2>conftest.er1
21022 ac_status=$?
21023 grep -v '^ *+' conftest.er1 >conftest.err
21024 rm -f conftest.er1
21025 cat conftest.err >&5
21026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21027 (exit $ac_status); } && {
21028 test -z "$ac_c_werror_flag" ||
21029 test ! -s conftest.err
21030 } && test -s conftest$ac_exeext &&
21031 $as_test_x conftest$ac_exeext; then
21032 ac_cv_func_gethostbyname_r=yes
21033 else
21034 echo "$as_me: failed program was:" >&5
21035 sed 's/^/| /' conftest.$ac_ext >&5
21037 ac_cv_func_gethostbyname_r=no
21040 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21041 conftest$ac_exeext conftest.$ac_ext
21043 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname_r" >&5
21044 echo "${ECHO_T}$ac_cv_func_gethostbyname_r" >&6; }
21045 if test $ac_cv_func_gethostbyname_r = yes; then
21047 cat >>confdefs.h <<\_ACEOF
21048 #define HAVE_GETHOSTBYNAME_R 1
21049 _ACEOF
21051 { echo "$as_me:$LINENO: checking gethostbyname_r with 6 args" >&5
21052 echo $ECHO_N "checking gethostbyname_r with 6 args... $ECHO_C" >&6; }
21053 OLD_CFLAGS=$CFLAGS
21054 CFLAGS="$CFLAGS $MY_CPPFLAGS $MY_THREAD_CPPFLAGS $MY_CFLAGS"
21055 cat >conftest.$ac_ext <<_ACEOF
21056 /* confdefs.h. */
21057 _ACEOF
21058 cat confdefs.h >>conftest.$ac_ext
21059 cat >>conftest.$ac_ext <<_ACEOF
21060 /* end confdefs.h. */
21062 # include <netdb.h>
21065 main ()
21068 char *name;
21069 struct hostent *he, *res;
21070 char buffer[2048];
21071 int buflen = 2048;
21072 int h_errnop;
21074 (void) gethostbyname_r(name, he, buffer, buflen, &res, &h_errnop)
21077 return 0;
21079 _ACEOF
21080 rm -f conftest.$ac_objext
21081 if { (ac_try="$ac_compile"
21082 case "(($ac_try" in
21083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21084 *) ac_try_echo=$ac_try;;
21085 esac
21086 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21087 (eval "$ac_compile") 2>conftest.er1
21088 ac_status=$?
21089 grep -v '^ *+' conftest.er1 >conftest.err
21090 rm -f conftest.er1
21091 cat conftest.err >&5
21092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21093 (exit $ac_status); } && {
21094 test -z "$ac_c_werror_flag" ||
21095 test ! -s conftest.err
21096 } && test -s conftest.$ac_objext; then
21098 cat >>confdefs.h <<\_ACEOF
21099 #define HAVE_GETHOSTBYNAME_R 1
21100 _ACEOF
21103 cat >>confdefs.h <<\_ACEOF
21104 #define HAVE_GETHOSTBYNAME_R_6_ARG 1
21105 _ACEOF
21107 { echo "$as_me:$LINENO: result: yes" >&5
21108 echo "${ECHO_T}yes" >&6; }
21110 else
21111 echo "$as_me: failed program was:" >&5
21112 sed 's/^/| /' conftest.$ac_ext >&5
21115 { echo "$as_me:$LINENO: result: no" >&5
21116 echo "${ECHO_T}no" >&6; }
21117 { echo "$as_me:$LINENO: checking gethostbyname_r with 5 args" >&5
21118 echo $ECHO_N "checking gethostbyname_r with 5 args... $ECHO_C" >&6; }
21119 cat >conftest.$ac_ext <<_ACEOF
21120 /* confdefs.h. */
21121 _ACEOF
21122 cat confdefs.h >>conftest.$ac_ext
21123 cat >>conftest.$ac_ext <<_ACEOF
21124 /* end confdefs.h. */
21126 # include <netdb.h>
21129 main ()
21132 char *name;
21133 struct hostent *he;
21134 char buffer[2048];
21135 int buflen = 2048;
21136 int h_errnop;
21138 (void) gethostbyname_r(name, he, buffer, buflen, &h_errnop)
21141 return 0;
21143 _ACEOF
21144 rm -f conftest.$ac_objext
21145 if { (ac_try="$ac_compile"
21146 case "(($ac_try" in
21147 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21148 *) ac_try_echo=$ac_try;;
21149 esac
21150 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21151 (eval "$ac_compile") 2>conftest.er1
21152 ac_status=$?
21153 grep -v '^ *+' conftest.er1 >conftest.err
21154 rm -f conftest.er1
21155 cat conftest.err >&5
21156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21157 (exit $ac_status); } && {
21158 test -z "$ac_c_werror_flag" ||
21159 test ! -s conftest.err
21160 } && test -s conftest.$ac_objext; then
21162 cat >>confdefs.h <<\_ACEOF
21163 #define HAVE_GETHOSTBYNAME_R 1
21164 _ACEOF
21167 cat >>confdefs.h <<\_ACEOF
21168 #define HAVE_GETHOSTBYNAME_R_5_ARG 1
21169 _ACEOF
21171 { echo "$as_me:$LINENO: result: yes" >&5
21172 echo "${ECHO_T}yes" >&6; }
21174 else
21175 echo "$as_me: failed program was:" >&5
21176 sed 's/^/| /' conftest.$ac_ext >&5
21179 { echo "$as_me:$LINENO: result: no" >&5
21180 echo "${ECHO_T}no" >&6; }
21181 { echo "$as_me:$LINENO: checking gethostbyname_r with 3 args" >&5
21182 echo $ECHO_N "checking gethostbyname_r with 3 args... $ECHO_C" >&6; }
21183 cat >conftest.$ac_ext <<_ACEOF
21184 /* confdefs.h. */
21185 _ACEOF
21186 cat confdefs.h >>conftest.$ac_ext
21187 cat >>conftest.$ac_ext <<_ACEOF
21188 /* end confdefs.h. */
21190 # include <netdb.h>
21193 main ()
21196 char *name;
21197 struct hostent *he;
21198 struct hostent_data data;
21200 (void) gethostbyname_r(name, he, &data);
21203 return 0;
21205 _ACEOF
21206 rm -f conftest.$ac_objext
21207 if { (ac_try="$ac_compile"
21208 case "(($ac_try" in
21209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21210 *) ac_try_echo=$ac_try;;
21211 esac
21212 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21213 (eval "$ac_compile") 2>conftest.er1
21214 ac_status=$?
21215 grep -v '^ *+' conftest.er1 >conftest.err
21216 rm -f conftest.er1
21217 cat conftest.err >&5
21218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21219 (exit $ac_status); } && {
21220 test -z "$ac_c_werror_flag" ||
21221 test ! -s conftest.err
21222 } && test -s conftest.$ac_objext; then
21224 cat >>confdefs.h <<\_ACEOF
21225 #define HAVE_GETHOSTBYNAME_R 1
21226 _ACEOF
21229 cat >>confdefs.h <<\_ACEOF
21230 #define HAVE_GETHOSTBYNAME_R_3_ARG 1
21231 _ACEOF
21233 { echo "$as_me:$LINENO: result: yes" >&5
21234 echo "${ECHO_T}yes" >&6; }
21236 else
21237 echo "$as_me: failed program was:" >&5
21238 sed 's/^/| /' conftest.$ac_ext >&5
21241 { echo "$as_me:$LINENO: result: no" >&5
21242 echo "${ECHO_T}no" >&6; }
21246 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21250 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21254 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21255 CFLAGS=$OLD_CFLAGS
21257 else
21260 for ac_func in gethostbyname
21262 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21263 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21264 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21265 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21266 echo $ECHO_N "(cached) $ECHO_C" >&6
21267 else
21268 cat >conftest.$ac_ext <<_ACEOF
21269 /* confdefs.h. */
21270 _ACEOF
21271 cat confdefs.h >>conftest.$ac_ext
21272 cat >>conftest.$ac_ext <<_ACEOF
21273 /* end confdefs.h. */
21274 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21275 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21276 #define $ac_func innocuous_$ac_func
21278 /* System header to define __stub macros and hopefully few prototypes,
21279 which can conflict with char $ac_func (); below.
21280 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21281 <limits.h> exists even on freestanding compilers. */
21283 #ifdef __STDC__
21284 # include <limits.h>
21285 #else
21286 # include <assert.h>
21287 #endif
21289 #undef $ac_func
21291 /* Override any GCC internal prototype to avoid an error.
21292 Use char because int might match the return type of a GCC
21293 builtin and then its argument prototype would still apply. */
21294 #ifdef __cplusplus
21295 extern "C"
21296 #endif
21297 char $ac_func ();
21298 /* The GNU C library defines this for functions which it implements
21299 to always fail with ENOSYS. Some functions are actually named
21300 something starting with __ and the normal name is an alias. */
21301 #if defined __stub_$ac_func || defined __stub___$ac_func
21302 choke me
21303 #endif
21306 main ()
21308 return $ac_func ();
21310 return 0;
21312 _ACEOF
21313 rm -f conftest.$ac_objext conftest$ac_exeext
21314 if { (ac_try="$ac_link"
21315 case "(($ac_try" in
21316 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21317 *) ac_try_echo=$ac_try;;
21318 esac
21319 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21320 (eval "$ac_link") 2>conftest.er1
21321 ac_status=$?
21322 grep -v '^ *+' conftest.er1 >conftest.err
21323 rm -f conftest.er1
21324 cat conftest.err >&5
21325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21326 (exit $ac_status); } && {
21327 test -z "$ac_c_werror_flag" ||
21328 test ! -s conftest.err
21329 } && test -s conftest$ac_exeext &&
21330 $as_test_x conftest$ac_exeext; then
21331 eval "$as_ac_var=yes"
21332 else
21333 echo "$as_me: failed program was:" >&5
21334 sed 's/^/| /' conftest.$ac_ext >&5
21336 eval "$as_ac_var=no"
21339 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21340 conftest$ac_exeext conftest.$ac_ext
21342 ac_res=`eval echo '${'$as_ac_var'}'`
21343 { echo "$as_me:$LINENO: result: $ac_res" >&5
21344 echo "${ECHO_T}$ac_res" >&6; }
21345 if test `eval echo '${'$as_ac_var'}'` = yes; then
21346 cat >>confdefs.h <<_ACEOF
21347 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21348 _ACEOF
21351 done
21362 # checks for system services
21363 # (none yet)
21365 # Linux requires this for correct f.p. operations
21366 { echo "$as_me:$LINENO: checking for __fpu_control" >&5
21367 echo $ECHO_N "checking for __fpu_control... $ECHO_C" >&6; }
21368 if test "${ac_cv_func___fpu_control+set}" = set; then
21369 echo $ECHO_N "(cached) $ECHO_C" >&6
21370 else
21371 cat >conftest.$ac_ext <<_ACEOF
21372 /* confdefs.h. */
21373 _ACEOF
21374 cat confdefs.h >>conftest.$ac_ext
21375 cat >>conftest.$ac_ext <<_ACEOF
21376 /* end confdefs.h. */
21377 /* Define __fpu_control to an innocuous variant, in case <limits.h> declares __fpu_control.
21378 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21379 #define __fpu_control innocuous___fpu_control
21381 /* System header to define __stub macros and hopefully few prototypes,
21382 which can conflict with char __fpu_control (); below.
21383 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21384 <limits.h> exists even on freestanding compilers. */
21386 #ifdef __STDC__
21387 # include <limits.h>
21388 #else
21389 # include <assert.h>
21390 #endif
21392 #undef __fpu_control
21394 /* Override any GCC internal prototype to avoid an error.
21395 Use char because int might match the return type of a GCC
21396 builtin and then its argument prototype would still apply. */
21397 #ifdef __cplusplus
21398 extern "C"
21399 #endif
21400 char __fpu_control ();
21401 /* The GNU C library defines this for functions which it implements
21402 to always fail with ENOSYS. Some functions are actually named
21403 something starting with __ and the normal name is an alias. */
21404 #if defined __stub___fpu_control || defined __stub_____fpu_control
21405 choke me
21406 #endif
21409 main ()
21411 return __fpu_control ();
21413 return 0;
21415 _ACEOF
21416 rm -f conftest.$ac_objext conftest$ac_exeext
21417 if { (ac_try="$ac_link"
21418 case "(($ac_try" in
21419 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21420 *) ac_try_echo=$ac_try;;
21421 esac
21422 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21423 (eval "$ac_link") 2>conftest.er1
21424 ac_status=$?
21425 grep -v '^ *+' conftest.er1 >conftest.err
21426 rm -f conftest.er1
21427 cat conftest.err >&5
21428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21429 (exit $ac_status); } && {
21430 test -z "$ac_c_werror_flag" ||
21431 test ! -s conftest.err
21432 } && test -s conftest$ac_exeext &&
21433 $as_test_x conftest$ac_exeext; then
21434 ac_cv_func___fpu_control=yes
21435 else
21436 echo "$as_me: failed program was:" >&5
21437 sed 's/^/| /' conftest.$ac_ext >&5
21439 ac_cv_func___fpu_control=no
21442 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21443 conftest$ac_exeext conftest.$ac_ext
21445 { echo "$as_me:$LINENO: result: $ac_cv_func___fpu_control" >&5
21446 echo "${ECHO_T}$ac_cv_func___fpu_control" >&6; }
21447 if test $ac_cv_func___fpu_control = yes; then
21449 else
21451 { echo "$as_me:$LINENO: checking for __fpu_control in -lieee" >&5
21452 echo $ECHO_N "checking for __fpu_control in -lieee... $ECHO_C" >&6; }
21453 if test "${ac_cv_lib_ieee___fpu_control+set}" = set; then
21454 echo $ECHO_N "(cached) $ECHO_C" >&6
21455 else
21456 ac_check_lib_save_LIBS=$LIBS
21457 LIBS="-lieee $LIBS"
21458 cat >conftest.$ac_ext <<_ACEOF
21459 /* confdefs.h. */
21460 _ACEOF
21461 cat confdefs.h >>conftest.$ac_ext
21462 cat >>conftest.$ac_ext <<_ACEOF
21463 /* end confdefs.h. */
21465 /* Override any GCC internal prototype to avoid an error.
21466 Use char because int might match the return type of a GCC
21467 builtin and then its argument prototype would still apply. */
21468 #ifdef __cplusplus
21469 extern "C"
21470 #endif
21471 char __fpu_control ();
21473 main ()
21475 return __fpu_control ();
21477 return 0;
21479 _ACEOF
21480 rm -f conftest.$ac_objext conftest$ac_exeext
21481 if { (ac_try="$ac_link"
21482 case "(($ac_try" in
21483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21484 *) ac_try_echo=$ac_try;;
21485 esac
21486 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21487 (eval "$ac_link") 2>conftest.er1
21488 ac_status=$?
21489 grep -v '^ *+' conftest.er1 >conftest.err
21490 rm -f conftest.er1
21491 cat conftest.err >&5
21492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21493 (exit $ac_status); } && {
21494 test -z "$ac_c_werror_flag" ||
21495 test ! -s conftest.err
21496 } && test -s conftest$ac_exeext &&
21497 $as_test_x conftest$ac_exeext; then
21498 ac_cv_lib_ieee___fpu_control=yes
21499 else
21500 echo "$as_me: failed program was:" >&5
21501 sed 's/^/| /' conftest.$ac_ext >&5
21503 ac_cv_lib_ieee___fpu_control=no
21506 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21507 conftest$ac_exeext conftest.$ac_ext
21508 LIBS=$ac_check_lib_save_LIBS
21510 { echo "$as_me:$LINENO: result: $ac_cv_lib_ieee___fpu_control" >&5
21511 echo "${ECHO_T}$ac_cv_lib_ieee___fpu_control" >&6; }
21512 if test $ac_cv_lib_ieee___fpu_control = yes; then
21513 cat >>confdefs.h <<_ACEOF
21514 #define HAVE_LIBIEEE 1
21515 _ACEOF
21517 LIBS="-lieee $LIBS"
21525 # Check for --with-fpectl
21526 { echo "$as_me:$LINENO: checking for --with-fpectl" >&5
21527 echo $ECHO_N "checking for --with-fpectl... $ECHO_C" >&6; }
21529 # Check whether --with-fpectl was given.
21530 if test "${with_fpectl+set}" = set; then
21531 withval=$with_fpectl;
21532 if test "$withval" != no
21533 then
21535 cat >>confdefs.h <<\_ACEOF
21536 #define WANT_SIGFPE_HANDLER 1
21537 _ACEOF
21539 { echo "$as_me:$LINENO: result: yes" >&5
21540 echo "${ECHO_T}yes" >&6; }
21541 else { echo "$as_me:$LINENO: result: no" >&5
21542 echo "${ECHO_T}no" >&6; }
21544 else
21545 { echo "$as_me:$LINENO: result: no" >&5
21546 echo "${ECHO_T}no" >&6; }
21550 # check for --with-libm=...
21552 case $ac_sys_system in
21553 Darwin) ;;
21554 *) LIBM=-lm
21555 esac
21556 { echo "$as_me:$LINENO: checking for --with-libm=STRING" >&5
21557 echo $ECHO_N "checking for --with-libm=STRING... $ECHO_C" >&6; }
21559 # Check whether --with-libm was given.
21560 if test "${with_libm+set}" = set; then
21561 withval=$with_libm;
21562 if test "$withval" = no
21563 then LIBM=
21564 { echo "$as_me:$LINENO: result: force LIBM empty" >&5
21565 echo "${ECHO_T}force LIBM empty" >&6; }
21566 elif test "$withval" != yes
21567 then LIBM=$withval
21568 { echo "$as_me:$LINENO: result: set LIBM=\"$withval\"" >&5
21569 echo "${ECHO_T}set LIBM=\"$withval\"" >&6; }
21570 else { { echo "$as_me:$LINENO: error: proper usage is --with-libm=STRING" >&5
21571 echo "$as_me: error: proper usage is --with-libm=STRING" >&2;}
21572 { (exit 1); exit 1; }; }
21574 else
21575 { echo "$as_me:$LINENO: result: default LIBM=\"$LIBM\"" >&5
21576 echo "${ECHO_T}default LIBM=\"$LIBM\"" >&6; }
21580 # check for --with-libc=...
21582 { echo "$as_me:$LINENO: checking for --with-libc=STRING" >&5
21583 echo $ECHO_N "checking for --with-libc=STRING... $ECHO_C" >&6; }
21585 # Check whether --with-libc was given.
21586 if test "${with_libc+set}" = set; then
21587 withval=$with_libc;
21588 if test "$withval" = no
21589 then LIBC=
21590 { echo "$as_me:$LINENO: result: force LIBC empty" >&5
21591 echo "${ECHO_T}force LIBC empty" >&6; }
21592 elif test "$withval" != yes
21593 then LIBC=$withval
21594 { echo "$as_me:$LINENO: result: set LIBC=\"$withval\"" >&5
21595 echo "${ECHO_T}set LIBC=\"$withval\"" >&6; }
21596 else { { echo "$as_me:$LINENO: error: proper usage is --with-libc=STRING" >&5
21597 echo "$as_me: error: proper usage is --with-libc=STRING" >&2;}
21598 { (exit 1); exit 1; }; }
21600 else
21601 { echo "$as_me:$LINENO: result: default LIBC=\"$LIBC\"" >&5
21602 echo "${ECHO_T}default LIBC=\"$LIBC\"" >&6; }
21606 # ************************************
21607 # * Check for mathematical functions *
21608 # ************************************
21610 LIBS_SAVE=$LIBS
21611 LIBS="$LIBS $LIBM"
21613 # Detect whether system arithmetic is subject to x87-style double
21614 # rounding issues. The result of this test has little meaning on non
21615 # IEEE 754 platforms. On IEEE 754, test should return 1 if rounding
21616 # mode is round-to-nearest and double rounding issues are present, and
21617 # 0 otherwise. See http://bugs.python.org/issue2937 for more info.
21618 { echo "$as_me:$LINENO: checking for x87-style double rounding" >&5
21619 echo $ECHO_N "checking for x87-style double rounding... $ECHO_C" >&6; }
21620 if test "${ac_cv_x87_double_rounding+set}" = set; then
21621 echo $ECHO_N "(cached) $ECHO_C" >&6
21622 else
21624 if test "$cross_compiling" = yes; then
21625 ac_cv_x87_double_rounding=no
21626 else
21627 cat >conftest.$ac_ext <<_ACEOF
21628 /* confdefs.h. */
21629 _ACEOF
21630 cat confdefs.h >>conftest.$ac_ext
21631 cat >>conftest.$ac_ext <<_ACEOF
21632 /* end confdefs.h. */
21634 #include <stdlib.h>
21635 #include <math.h>
21636 int main() {
21637 volatile double x, y, z;
21638 /* 1./(1-2**-53) -> 1+2**-52 (correct), 1.0 (double rounding) */
21639 x = 0.99999999999999989; /* 1-2**-53 */
21640 y = 1./x;
21641 if (y != 1.)
21642 exit(0);
21643 /* 1e16+2.99999 -> 1e16+2. (correct), 1e16+4. (double rounding) */
21644 x = 1e16;
21645 y = 2.99999;
21646 z = x + y;
21647 if (z != 1e16+4.)
21648 exit(0);
21649 /* both tests show evidence of double rounding */
21650 exit(1);
21653 _ACEOF
21654 rm -f conftest$ac_exeext
21655 if { (ac_try="$ac_link"
21656 case "(($ac_try" in
21657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21658 *) ac_try_echo=$ac_try;;
21659 esac
21660 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21661 (eval "$ac_link") 2>&5
21662 ac_status=$?
21663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21664 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21665 { (case "(($ac_try" in
21666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21667 *) ac_try_echo=$ac_try;;
21668 esac
21669 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21670 (eval "$ac_try") 2>&5
21671 ac_status=$?
21672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21673 (exit $ac_status); }; }; then
21674 ac_cv_x87_double_rounding=no
21675 else
21676 echo "$as_me: program exited with status $ac_status" >&5
21677 echo "$as_me: failed program was:" >&5
21678 sed 's/^/| /' conftest.$ac_ext >&5
21680 ( exit $ac_status )
21681 ac_cv_x87_double_rounding=yes
21683 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21689 { echo "$as_me:$LINENO: result: $ac_cv_x87_double_rounding" >&5
21690 echo "${ECHO_T}$ac_cv_x87_double_rounding" >&6; }
21691 if test "$ac_cv_x87_double_rounding" = yes
21692 then
21694 cat >>confdefs.h <<\_ACEOF
21695 #define X87_DOUBLE_ROUNDING 1
21696 _ACEOF
21700 # Multiprocessing check for broken sem_getvalue
21701 { echo "$as_me:$LINENO: checking for broken sem_getvalue" >&5
21702 echo $ECHO_N "checking for broken sem_getvalue... $ECHO_C" >&6; }
21703 if test "$cross_compiling" = yes; then
21704 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
21705 See \`config.log' for more details." >&5
21706 echo "$as_me: error: cannot run test program while cross compiling
21707 See \`config.log' for more details." >&2;}
21708 { (exit 1); exit 1; }; }
21709 else
21710 cat >conftest.$ac_ext <<_ACEOF
21711 /* confdefs.h. */
21712 _ACEOF
21713 cat confdefs.h >>conftest.$ac_ext
21714 cat >>conftest.$ac_ext <<_ACEOF
21715 /* end confdefs.h. */
21717 #include <unistd.h>
21718 #include <fcntl.h>
21719 #include <stdio.h>
21720 #include <semaphore.h>
21721 #include <sys/stat.h>
21723 int main(void){
21724 sem_t *a = sem_open("/autoconf", O_CREAT, S_IRUSR|S_IWUSR, 0);
21725 int count;
21726 int res;
21727 if(a==SEM_FAILED){
21728 perror("sem_open");
21729 return 1;
21732 res = sem_getvalue(a, &count);
21733 sem_close(a);
21734 return res==-1 ? 1 : 0;
21738 _ACEOF
21739 rm -f conftest$ac_exeext
21740 if { (ac_try="$ac_link"
21741 case "(($ac_try" in
21742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21743 *) ac_try_echo=$ac_try;;
21744 esac
21745 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21746 (eval "$ac_link") 2>&5
21747 ac_status=$?
21748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21749 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21750 { (case "(($ac_try" in
21751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21752 *) ac_try_echo=$ac_try;;
21753 esac
21754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21755 (eval "$ac_try") 2>&5
21756 ac_status=$?
21757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21758 (exit $ac_status); }; }; then
21759 { echo "$as_me:$LINENO: result: no" >&5
21760 echo "${ECHO_T}no" >&6; }
21761 else
21762 echo "$as_me: program exited with status $ac_status" >&5
21763 echo "$as_me: failed program was:" >&5
21764 sed 's/^/| /' conftest.$ac_ext >&5
21766 ( exit $ac_status )
21767 { echo "$as_me:$LINENO: result: yes" >&5
21768 echo "${ECHO_T}yes" >&6; }
21770 cat >>confdefs.h <<\_ACEOF
21771 #define HAVE_BROKEN_SEM_GETVALUE 1
21772 _ACEOF
21776 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21781 # On FreeBSD 6.2, it appears that tanh(-0.) returns 0. instead of
21782 # -0. on some architectures.
21783 { echo "$as_me:$LINENO: checking whether tanh preserves the sign of zero" >&5
21784 echo $ECHO_N "checking whether tanh preserves the sign of zero... $ECHO_C" >&6; }
21785 if test "${ac_cv_tanh_preserves_zero_sign+set}" = set; then
21786 echo $ECHO_N "(cached) $ECHO_C" >&6
21787 else
21789 if test "$cross_compiling" = yes; then
21790 ac_cv_tanh_preserves_zero_sign=no
21791 else
21792 cat >conftest.$ac_ext <<_ACEOF
21793 /* confdefs.h. */
21794 _ACEOF
21795 cat confdefs.h >>conftest.$ac_ext
21796 cat >>conftest.$ac_ext <<_ACEOF
21797 /* end confdefs.h. */
21799 #include <math.h>
21800 #include <stdlib.h>
21801 int main() {
21802 /* return 0 if either negative zeros don't exist
21803 on this platform or if negative zeros exist
21804 and tanh(-0.) == -0. */
21805 if (atan2(0., -1.) == atan2(-0., -1.) ||
21806 atan2(tanh(-0.), -1.) == atan2(-0., -1.)) exit(0);
21807 else exit(1);
21810 _ACEOF
21811 rm -f conftest$ac_exeext
21812 if { (ac_try="$ac_link"
21813 case "(($ac_try" in
21814 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21815 *) ac_try_echo=$ac_try;;
21816 esac
21817 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21818 (eval "$ac_link") 2>&5
21819 ac_status=$?
21820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21821 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21822 { (case "(($ac_try" in
21823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21824 *) ac_try_echo=$ac_try;;
21825 esac
21826 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21827 (eval "$ac_try") 2>&5
21828 ac_status=$?
21829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21830 (exit $ac_status); }; }; then
21831 ac_cv_tanh_preserves_zero_sign=yes
21832 else
21833 echo "$as_me: program exited with status $ac_status" >&5
21834 echo "$as_me: failed program was:" >&5
21835 sed 's/^/| /' conftest.$ac_ext >&5
21837 ( exit $ac_status )
21838 ac_cv_tanh_preserves_zero_sign=no
21840 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21846 { echo "$as_me:$LINENO: result: $ac_cv_tanh_preserves_zero_sign" >&5
21847 echo "${ECHO_T}$ac_cv_tanh_preserves_zero_sign" >&6; }
21848 if test "$ac_cv_tanh_preserves_zero_sign" = yes
21849 then
21851 cat >>confdefs.h <<\_ACEOF
21852 #define TANH_PRESERVES_ZERO_SIGN 1
21853 _ACEOF
21865 for ac_func in acosh asinh atanh copysign expm1 finite hypot log1p
21867 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21868 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21869 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21870 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21871 echo $ECHO_N "(cached) $ECHO_C" >&6
21872 else
21873 cat >conftest.$ac_ext <<_ACEOF
21874 /* confdefs.h. */
21875 _ACEOF
21876 cat confdefs.h >>conftest.$ac_ext
21877 cat >>conftest.$ac_ext <<_ACEOF
21878 /* end confdefs.h. */
21879 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21880 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21881 #define $ac_func innocuous_$ac_func
21883 /* System header to define __stub macros and hopefully few prototypes,
21884 which can conflict with char $ac_func (); below.
21885 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21886 <limits.h> exists even on freestanding compilers. */
21888 #ifdef __STDC__
21889 # include <limits.h>
21890 #else
21891 # include <assert.h>
21892 #endif
21894 #undef $ac_func
21896 /* Override any GCC internal prototype to avoid an error.
21897 Use char because int might match the return type of a GCC
21898 builtin and then its argument prototype would still apply. */
21899 #ifdef __cplusplus
21900 extern "C"
21901 #endif
21902 char $ac_func ();
21903 /* The GNU C library defines this for functions which it implements
21904 to always fail with ENOSYS. Some functions are actually named
21905 something starting with __ and the normal name is an alias. */
21906 #if defined __stub_$ac_func || defined __stub___$ac_func
21907 choke me
21908 #endif
21911 main ()
21913 return $ac_func ();
21915 return 0;
21917 _ACEOF
21918 rm -f conftest.$ac_objext conftest$ac_exeext
21919 if { (ac_try="$ac_link"
21920 case "(($ac_try" in
21921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21922 *) ac_try_echo=$ac_try;;
21923 esac
21924 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21925 (eval "$ac_link") 2>conftest.er1
21926 ac_status=$?
21927 grep -v '^ *+' conftest.er1 >conftest.err
21928 rm -f conftest.er1
21929 cat conftest.err >&5
21930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21931 (exit $ac_status); } && {
21932 test -z "$ac_c_werror_flag" ||
21933 test ! -s conftest.err
21934 } && test -s conftest$ac_exeext &&
21935 $as_test_x conftest$ac_exeext; then
21936 eval "$as_ac_var=yes"
21937 else
21938 echo "$as_me: failed program was:" >&5
21939 sed 's/^/| /' conftest.$ac_ext >&5
21941 eval "$as_ac_var=no"
21944 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21945 conftest$ac_exeext conftest.$ac_ext
21947 ac_res=`eval echo '${'$as_ac_var'}'`
21948 { echo "$as_me:$LINENO: result: $ac_res" >&5
21949 echo "${ECHO_T}$ac_res" >&6; }
21950 if test `eval echo '${'$as_ac_var'}'` = yes; then
21951 cat >>confdefs.h <<_ACEOF
21952 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21953 _ACEOF
21956 done
21958 { echo "$as_me:$LINENO: checking whether isinf is declared" >&5
21959 echo $ECHO_N "checking whether isinf is declared... $ECHO_C" >&6; }
21960 if test "${ac_cv_have_decl_isinf+set}" = set; then
21961 echo $ECHO_N "(cached) $ECHO_C" >&6
21962 else
21963 cat >conftest.$ac_ext <<_ACEOF
21964 /* confdefs.h. */
21965 _ACEOF
21966 cat confdefs.h >>conftest.$ac_ext
21967 cat >>conftest.$ac_ext <<_ACEOF
21968 /* end confdefs.h. */
21969 #include <math.h>
21972 main ()
21974 #ifndef isinf
21975 (void) isinf;
21976 #endif
21979 return 0;
21981 _ACEOF
21982 rm -f conftest.$ac_objext
21983 if { (ac_try="$ac_compile"
21984 case "(($ac_try" in
21985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21986 *) ac_try_echo=$ac_try;;
21987 esac
21988 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21989 (eval "$ac_compile") 2>conftest.er1
21990 ac_status=$?
21991 grep -v '^ *+' conftest.er1 >conftest.err
21992 rm -f conftest.er1
21993 cat conftest.err >&5
21994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21995 (exit $ac_status); } && {
21996 test -z "$ac_c_werror_flag" ||
21997 test ! -s conftest.err
21998 } && test -s conftest.$ac_objext; then
21999 ac_cv_have_decl_isinf=yes
22000 else
22001 echo "$as_me: failed program was:" >&5
22002 sed 's/^/| /' conftest.$ac_ext >&5
22004 ac_cv_have_decl_isinf=no
22007 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22009 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_isinf" >&5
22010 echo "${ECHO_T}$ac_cv_have_decl_isinf" >&6; }
22011 if test $ac_cv_have_decl_isinf = yes; then
22013 cat >>confdefs.h <<_ACEOF
22014 #define HAVE_DECL_ISINF 1
22015 _ACEOF
22018 else
22019 cat >>confdefs.h <<_ACEOF
22020 #define HAVE_DECL_ISINF 0
22021 _ACEOF
22025 { echo "$as_me:$LINENO: checking whether isnan is declared" >&5
22026 echo $ECHO_N "checking whether isnan is declared... $ECHO_C" >&6; }
22027 if test "${ac_cv_have_decl_isnan+set}" = set; then
22028 echo $ECHO_N "(cached) $ECHO_C" >&6
22029 else
22030 cat >conftest.$ac_ext <<_ACEOF
22031 /* confdefs.h. */
22032 _ACEOF
22033 cat confdefs.h >>conftest.$ac_ext
22034 cat >>conftest.$ac_ext <<_ACEOF
22035 /* end confdefs.h. */
22036 #include <math.h>
22039 main ()
22041 #ifndef isnan
22042 (void) isnan;
22043 #endif
22046 return 0;
22048 _ACEOF
22049 rm -f conftest.$ac_objext
22050 if { (ac_try="$ac_compile"
22051 case "(($ac_try" in
22052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22053 *) ac_try_echo=$ac_try;;
22054 esac
22055 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22056 (eval "$ac_compile") 2>conftest.er1
22057 ac_status=$?
22058 grep -v '^ *+' conftest.er1 >conftest.err
22059 rm -f conftest.er1
22060 cat conftest.err >&5
22061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22062 (exit $ac_status); } && {
22063 test -z "$ac_c_werror_flag" ||
22064 test ! -s conftest.err
22065 } && test -s conftest.$ac_objext; then
22066 ac_cv_have_decl_isnan=yes
22067 else
22068 echo "$as_me: failed program was:" >&5
22069 sed 's/^/| /' conftest.$ac_ext >&5
22071 ac_cv_have_decl_isnan=no
22074 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22076 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_isnan" >&5
22077 echo "${ECHO_T}$ac_cv_have_decl_isnan" >&6; }
22078 if test $ac_cv_have_decl_isnan = yes; then
22080 cat >>confdefs.h <<_ACEOF
22081 #define HAVE_DECL_ISNAN 1
22082 _ACEOF
22085 else
22086 cat >>confdefs.h <<_ACEOF
22087 #define HAVE_DECL_ISNAN 0
22088 _ACEOF
22092 { echo "$as_me:$LINENO: checking whether isfinite is declared" >&5
22093 echo $ECHO_N "checking whether isfinite is declared... $ECHO_C" >&6; }
22094 if test "${ac_cv_have_decl_isfinite+set}" = set; then
22095 echo $ECHO_N "(cached) $ECHO_C" >&6
22096 else
22097 cat >conftest.$ac_ext <<_ACEOF
22098 /* confdefs.h. */
22099 _ACEOF
22100 cat confdefs.h >>conftest.$ac_ext
22101 cat >>conftest.$ac_ext <<_ACEOF
22102 /* end confdefs.h. */
22103 #include <math.h>
22106 main ()
22108 #ifndef isfinite
22109 (void) isfinite;
22110 #endif
22113 return 0;
22115 _ACEOF
22116 rm -f conftest.$ac_objext
22117 if { (ac_try="$ac_compile"
22118 case "(($ac_try" in
22119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22120 *) ac_try_echo=$ac_try;;
22121 esac
22122 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22123 (eval "$ac_compile") 2>conftest.er1
22124 ac_status=$?
22125 grep -v '^ *+' conftest.er1 >conftest.err
22126 rm -f conftest.er1
22127 cat conftest.err >&5
22128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22129 (exit $ac_status); } && {
22130 test -z "$ac_c_werror_flag" ||
22131 test ! -s conftest.err
22132 } && test -s conftest.$ac_objext; then
22133 ac_cv_have_decl_isfinite=yes
22134 else
22135 echo "$as_me: failed program was:" >&5
22136 sed 's/^/| /' conftest.$ac_ext >&5
22138 ac_cv_have_decl_isfinite=no
22141 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22143 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_isfinite" >&5
22144 echo "${ECHO_T}$ac_cv_have_decl_isfinite" >&6; }
22145 if test $ac_cv_have_decl_isfinite = yes; then
22147 cat >>confdefs.h <<_ACEOF
22148 #define HAVE_DECL_ISFINITE 1
22149 _ACEOF
22152 else
22153 cat >>confdefs.h <<_ACEOF
22154 #define HAVE_DECL_ISFINITE 0
22155 _ACEOF
22162 LIBS=$LIBS_SAVE
22164 # determine what size digit to use for Python's longs
22165 { echo "$as_me:$LINENO: checking digit size for Python's longs" >&5
22166 echo $ECHO_N "checking digit size for Python's longs... $ECHO_C" >&6; }
22167 # Check whether --enable-big-digits was given.
22168 if test "${enable_big_digits+set}" = set; then
22169 enableval=$enable_big_digits; case $enable_big_digits in
22170 yes)
22171 enable_big_digits=30 ;;
22173 enable_big_digits=15 ;;
22174 15|30)
22177 { { echo "$as_me:$LINENO: error: bad value $enable_big_digits for --enable-big-digits; value should be 15 or 30" >&5
22178 echo "$as_me: error: bad value $enable_big_digits for --enable-big-digits; value should be 15 or 30" >&2;}
22179 { (exit 1); exit 1; }; } ;;
22180 esac
22181 { echo "$as_me:$LINENO: result: $enable_big_digits" >&5
22182 echo "${ECHO_T}$enable_big_digits" >&6; }
22184 cat >>confdefs.h <<_ACEOF
22185 #define PYLONG_BITS_IN_DIGIT $enable_big_digits
22186 _ACEOF
22189 else
22190 { echo "$as_me:$LINENO: result: no value specified" >&5
22191 echo "${ECHO_T}no value specified" >&6; }
22195 # check for wchar.h
22196 if test "${ac_cv_header_wchar_h+set}" = set; then
22197 { echo "$as_me:$LINENO: checking for wchar.h" >&5
22198 echo $ECHO_N "checking for wchar.h... $ECHO_C" >&6; }
22199 if test "${ac_cv_header_wchar_h+set}" = set; then
22200 echo $ECHO_N "(cached) $ECHO_C" >&6
22202 { echo "$as_me:$LINENO: result: $ac_cv_header_wchar_h" >&5
22203 echo "${ECHO_T}$ac_cv_header_wchar_h" >&6; }
22204 else
22205 # Is the header compilable?
22206 { echo "$as_me:$LINENO: checking wchar.h usability" >&5
22207 echo $ECHO_N "checking wchar.h usability... $ECHO_C" >&6; }
22208 cat >conftest.$ac_ext <<_ACEOF
22209 /* confdefs.h. */
22210 _ACEOF
22211 cat confdefs.h >>conftest.$ac_ext
22212 cat >>conftest.$ac_ext <<_ACEOF
22213 /* end confdefs.h. */
22214 $ac_includes_default
22215 #include <wchar.h>
22216 _ACEOF
22217 rm -f conftest.$ac_objext
22218 if { (ac_try="$ac_compile"
22219 case "(($ac_try" in
22220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22221 *) ac_try_echo=$ac_try;;
22222 esac
22223 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22224 (eval "$ac_compile") 2>conftest.er1
22225 ac_status=$?
22226 grep -v '^ *+' conftest.er1 >conftest.err
22227 rm -f conftest.er1
22228 cat conftest.err >&5
22229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22230 (exit $ac_status); } && {
22231 test -z "$ac_c_werror_flag" ||
22232 test ! -s conftest.err
22233 } && test -s conftest.$ac_objext; then
22234 ac_header_compiler=yes
22235 else
22236 echo "$as_me: failed program was:" >&5
22237 sed 's/^/| /' conftest.$ac_ext >&5
22239 ac_header_compiler=no
22242 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22243 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22244 echo "${ECHO_T}$ac_header_compiler" >&6; }
22246 # Is the header present?
22247 { echo "$as_me:$LINENO: checking wchar.h presence" >&5
22248 echo $ECHO_N "checking wchar.h presence... $ECHO_C" >&6; }
22249 cat >conftest.$ac_ext <<_ACEOF
22250 /* confdefs.h. */
22251 _ACEOF
22252 cat confdefs.h >>conftest.$ac_ext
22253 cat >>conftest.$ac_ext <<_ACEOF
22254 /* end confdefs.h. */
22255 #include <wchar.h>
22256 _ACEOF
22257 if { (ac_try="$ac_cpp conftest.$ac_ext"
22258 case "(($ac_try" in
22259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22260 *) ac_try_echo=$ac_try;;
22261 esac
22262 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22263 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22264 ac_status=$?
22265 grep -v '^ *+' conftest.er1 >conftest.err
22266 rm -f conftest.er1
22267 cat conftest.err >&5
22268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22269 (exit $ac_status); } >/dev/null && {
22270 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22271 test ! -s conftest.err
22272 }; then
22273 ac_header_preproc=yes
22274 else
22275 echo "$as_me: failed program was:" >&5
22276 sed 's/^/| /' conftest.$ac_ext >&5
22278 ac_header_preproc=no
22281 rm -f conftest.err conftest.$ac_ext
22282 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22283 echo "${ECHO_T}$ac_header_preproc" >&6; }
22285 # So? What about this header?
22286 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22287 yes:no: )
22288 { echo "$as_me:$LINENO: WARNING: wchar.h: accepted by the compiler, rejected by the preprocessor!" >&5
22289 echo "$as_me: WARNING: wchar.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22290 { echo "$as_me:$LINENO: WARNING: wchar.h: proceeding with the compiler's result" >&5
22291 echo "$as_me: WARNING: wchar.h: proceeding with the compiler's result" >&2;}
22292 ac_header_preproc=yes
22294 no:yes:* )
22295 { echo "$as_me:$LINENO: WARNING: wchar.h: present but cannot be compiled" >&5
22296 echo "$as_me: WARNING: wchar.h: present but cannot be compiled" >&2;}
22297 { echo "$as_me:$LINENO: WARNING: wchar.h: check for missing prerequisite headers?" >&5
22298 echo "$as_me: WARNING: wchar.h: check for missing prerequisite headers?" >&2;}
22299 { echo "$as_me:$LINENO: WARNING: wchar.h: see the Autoconf documentation" >&5
22300 echo "$as_me: WARNING: wchar.h: see the Autoconf documentation" >&2;}
22301 { echo "$as_me:$LINENO: WARNING: wchar.h: section \"Present But Cannot Be Compiled\"" >&5
22302 echo "$as_me: WARNING: wchar.h: section \"Present But Cannot Be Compiled\"" >&2;}
22303 { echo "$as_me:$LINENO: WARNING: wchar.h: proceeding with the preprocessor's result" >&5
22304 echo "$as_me: WARNING: wchar.h: proceeding with the preprocessor's result" >&2;}
22305 { echo "$as_me:$LINENO: WARNING: wchar.h: in the future, the compiler will take precedence" >&5
22306 echo "$as_me: WARNING: wchar.h: in the future, the compiler will take precedence" >&2;}
22307 ( cat <<\_ASBOX
22308 ## ------------------------------------------------ ##
22309 ## Report this to http://www.python.org/python-bugs ##
22310 ## ------------------------------------------------ ##
22311 _ASBOX
22312 ) | sed "s/^/$as_me: WARNING: /" >&2
22314 esac
22315 { echo "$as_me:$LINENO: checking for wchar.h" >&5
22316 echo $ECHO_N "checking for wchar.h... $ECHO_C" >&6; }
22317 if test "${ac_cv_header_wchar_h+set}" = set; then
22318 echo $ECHO_N "(cached) $ECHO_C" >&6
22319 else
22320 ac_cv_header_wchar_h=$ac_header_preproc
22322 { echo "$as_me:$LINENO: result: $ac_cv_header_wchar_h" >&5
22323 echo "${ECHO_T}$ac_cv_header_wchar_h" >&6; }
22326 if test $ac_cv_header_wchar_h = yes; then
22329 cat >>confdefs.h <<\_ACEOF
22330 #define HAVE_WCHAR_H 1
22331 _ACEOF
22333 wchar_h="yes"
22335 else
22336 wchar_h="no"
22342 # determine wchar_t size
22343 if test "$wchar_h" = yes
22344 then
22345 { echo "$as_me:$LINENO: checking for wchar_t" >&5
22346 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6; }
22347 if test "${ac_cv_type_wchar_t+set}" = set; then
22348 echo $ECHO_N "(cached) $ECHO_C" >&6
22349 else
22350 cat >conftest.$ac_ext <<_ACEOF
22351 /* confdefs.h. */
22352 _ACEOF
22353 cat confdefs.h >>conftest.$ac_ext
22354 cat >>conftest.$ac_ext <<_ACEOF
22355 /* end confdefs.h. */
22356 #include <wchar.h>
22358 typedef wchar_t ac__type_new_;
22360 main ()
22362 if ((ac__type_new_ *) 0)
22363 return 0;
22364 if (sizeof (ac__type_new_))
22365 return 0;
22367 return 0;
22369 _ACEOF
22370 rm -f conftest.$ac_objext
22371 if { (ac_try="$ac_compile"
22372 case "(($ac_try" in
22373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22374 *) ac_try_echo=$ac_try;;
22375 esac
22376 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22377 (eval "$ac_compile") 2>conftest.er1
22378 ac_status=$?
22379 grep -v '^ *+' conftest.er1 >conftest.err
22380 rm -f conftest.er1
22381 cat conftest.err >&5
22382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22383 (exit $ac_status); } && {
22384 test -z "$ac_c_werror_flag" ||
22385 test ! -s conftest.err
22386 } && test -s conftest.$ac_objext; then
22387 ac_cv_type_wchar_t=yes
22388 else
22389 echo "$as_me: failed program was:" >&5
22390 sed 's/^/| /' conftest.$ac_ext >&5
22392 ac_cv_type_wchar_t=no
22395 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22397 { echo "$as_me:$LINENO: result: $ac_cv_type_wchar_t" >&5
22398 echo "${ECHO_T}$ac_cv_type_wchar_t" >&6; }
22400 # The cast to long int works around a bug in the HP C Compiler
22401 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22402 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22403 # This bug is HP SR number 8606223364.
22404 { echo "$as_me:$LINENO: checking size of wchar_t" >&5
22405 echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6; }
22406 if test "${ac_cv_sizeof_wchar_t+set}" = set; then
22407 echo $ECHO_N "(cached) $ECHO_C" >&6
22408 else
22409 if test "$cross_compiling" = yes; then
22410 # Depending upon the size, compute the lo and hi bounds.
22411 cat >conftest.$ac_ext <<_ACEOF
22412 /* confdefs.h. */
22413 _ACEOF
22414 cat confdefs.h >>conftest.$ac_ext
22415 cat >>conftest.$ac_ext <<_ACEOF
22416 /* end confdefs.h. */
22417 #include <wchar.h>
22419 typedef wchar_t ac__type_sizeof_;
22421 main ()
22423 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
22424 test_array [0] = 0
22427 return 0;
22429 _ACEOF
22430 rm -f conftest.$ac_objext
22431 if { (ac_try="$ac_compile"
22432 case "(($ac_try" in
22433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22434 *) ac_try_echo=$ac_try;;
22435 esac
22436 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22437 (eval "$ac_compile") 2>conftest.er1
22438 ac_status=$?
22439 grep -v '^ *+' conftest.er1 >conftest.err
22440 rm -f conftest.er1
22441 cat conftest.err >&5
22442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22443 (exit $ac_status); } && {
22444 test -z "$ac_c_werror_flag" ||
22445 test ! -s conftest.err
22446 } && test -s conftest.$ac_objext; then
22447 ac_lo=0 ac_mid=0
22448 while :; do
22449 cat >conftest.$ac_ext <<_ACEOF
22450 /* confdefs.h. */
22451 _ACEOF
22452 cat confdefs.h >>conftest.$ac_ext
22453 cat >>conftest.$ac_ext <<_ACEOF
22454 /* end confdefs.h. */
22455 #include <wchar.h>
22457 typedef wchar_t ac__type_sizeof_;
22459 main ()
22461 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
22462 test_array [0] = 0
22465 return 0;
22467 _ACEOF
22468 rm -f conftest.$ac_objext
22469 if { (ac_try="$ac_compile"
22470 case "(($ac_try" in
22471 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22472 *) ac_try_echo=$ac_try;;
22473 esac
22474 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22475 (eval "$ac_compile") 2>conftest.er1
22476 ac_status=$?
22477 grep -v '^ *+' conftest.er1 >conftest.err
22478 rm -f conftest.er1
22479 cat conftest.err >&5
22480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22481 (exit $ac_status); } && {
22482 test -z "$ac_c_werror_flag" ||
22483 test ! -s conftest.err
22484 } && test -s conftest.$ac_objext; then
22485 ac_hi=$ac_mid; break
22486 else
22487 echo "$as_me: failed program was:" >&5
22488 sed 's/^/| /' conftest.$ac_ext >&5
22490 ac_lo=`expr $ac_mid + 1`
22491 if test $ac_lo -le $ac_mid; then
22492 ac_lo= ac_hi=
22493 break
22495 ac_mid=`expr 2 '*' $ac_mid + 1`
22498 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22499 done
22500 else
22501 echo "$as_me: failed program was:" >&5
22502 sed 's/^/| /' conftest.$ac_ext >&5
22504 cat >conftest.$ac_ext <<_ACEOF
22505 /* confdefs.h. */
22506 _ACEOF
22507 cat confdefs.h >>conftest.$ac_ext
22508 cat >>conftest.$ac_ext <<_ACEOF
22509 /* end confdefs.h. */
22510 #include <wchar.h>
22512 typedef wchar_t ac__type_sizeof_;
22514 main ()
22516 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
22517 test_array [0] = 0
22520 return 0;
22522 _ACEOF
22523 rm -f conftest.$ac_objext
22524 if { (ac_try="$ac_compile"
22525 case "(($ac_try" in
22526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22527 *) ac_try_echo=$ac_try;;
22528 esac
22529 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22530 (eval "$ac_compile") 2>conftest.er1
22531 ac_status=$?
22532 grep -v '^ *+' conftest.er1 >conftest.err
22533 rm -f conftest.er1
22534 cat conftest.err >&5
22535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22536 (exit $ac_status); } && {
22537 test -z "$ac_c_werror_flag" ||
22538 test ! -s conftest.err
22539 } && test -s conftest.$ac_objext; then
22540 ac_hi=-1 ac_mid=-1
22541 while :; do
22542 cat >conftest.$ac_ext <<_ACEOF
22543 /* confdefs.h. */
22544 _ACEOF
22545 cat confdefs.h >>conftest.$ac_ext
22546 cat >>conftest.$ac_ext <<_ACEOF
22547 /* end confdefs.h. */
22548 #include <wchar.h>
22550 typedef wchar_t ac__type_sizeof_;
22552 main ()
22554 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
22555 test_array [0] = 0
22558 return 0;
22560 _ACEOF
22561 rm -f conftest.$ac_objext
22562 if { (ac_try="$ac_compile"
22563 case "(($ac_try" in
22564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22565 *) ac_try_echo=$ac_try;;
22566 esac
22567 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22568 (eval "$ac_compile") 2>conftest.er1
22569 ac_status=$?
22570 grep -v '^ *+' conftest.er1 >conftest.err
22571 rm -f conftest.er1
22572 cat conftest.err >&5
22573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22574 (exit $ac_status); } && {
22575 test -z "$ac_c_werror_flag" ||
22576 test ! -s conftest.err
22577 } && test -s conftest.$ac_objext; then
22578 ac_lo=$ac_mid; break
22579 else
22580 echo "$as_me: failed program was:" >&5
22581 sed 's/^/| /' conftest.$ac_ext >&5
22583 ac_hi=`expr '(' $ac_mid ')' - 1`
22584 if test $ac_mid -le $ac_hi; then
22585 ac_lo= ac_hi=
22586 break
22588 ac_mid=`expr 2 '*' $ac_mid`
22591 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22592 done
22593 else
22594 echo "$as_me: failed program was:" >&5
22595 sed 's/^/| /' conftest.$ac_ext >&5
22597 ac_lo= ac_hi=
22600 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22603 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22604 # Binary search between lo and hi bounds.
22605 while test "x$ac_lo" != "x$ac_hi"; do
22606 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
22607 cat >conftest.$ac_ext <<_ACEOF
22608 /* confdefs.h. */
22609 _ACEOF
22610 cat confdefs.h >>conftest.$ac_ext
22611 cat >>conftest.$ac_ext <<_ACEOF
22612 /* end confdefs.h. */
22613 #include <wchar.h>
22615 typedef wchar_t ac__type_sizeof_;
22617 main ()
22619 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
22620 test_array [0] = 0
22623 return 0;
22625 _ACEOF
22626 rm -f conftest.$ac_objext
22627 if { (ac_try="$ac_compile"
22628 case "(($ac_try" in
22629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22630 *) ac_try_echo=$ac_try;;
22631 esac
22632 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22633 (eval "$ac_compile") 2>conftest.er1
22634 ac_status=$?
22635 grep -v '^ *+' conftest.er1 >conftest.err
22636 rm -f conftest.er1
22637 cat conftest.err >&5
22638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22639 (exit $ac_status); } && {
22640 test -z "$ac_c_werror_flag" ||
22641 test ! -s conftest.err
22642 } && test -s conftest.$ac_objext; then
22643 ac_hi=$ac_mid
22644 else
22645 echo "$as_me: failed program was:" >&5
22646 sed 's/^/| /' conftest.$ac_ext >&5
22648 ac_lo=`expr '(' $ac_mid ')' + 1`
22651 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22652 done
22653 case $ac_lo in
22654 ?*) ac_cv_sizeof_wchar_t=$ac_lo;;
22655 '') if test "$ac_cv_type_wchar_t" = yes; then
22656 { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t)
22657 See \`config.log' for more details." >&5
22658 echo "$as_me: error: cannot compute sizeof (wchar_t)
22659 See \`config.log' for more details." >&2;}
22660 { (exit 77); exit 77; }; }
22661 else
22662 ac_cv_sizeof_wchar_t=0
22663 fi ;;
22664 esac
22665 else
22666 cat >conftest.$ac_ext <<_ACEOF
22667 /* confdefs.h. */
22668 _ACEOF
22669 cat confdefs.h >>conftest.$ac_ext
22670 cat >>conftest.$ac_ext <<_ACEOF
22671 /* end confdefs.h. */
22672 #include <wchar.h>
22674 typedef wchar_t ac__type_sizeof_;
22675 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
22676 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
22677 #include <stdio.h>
22678 #include <stdlib.h>
22680 main ()
22683 FILE *f = fopen ("conftest.val", "w");
22684 if (! f)
22685 return 1;
22686 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
22688 long int i = longval ();
22689 if (i != ((long int) (sizeof (ac__type_sizeof_))))
22690 return 1;
22691 fprintf (f, "%ld\n", i);
22693 else
22695 unsigned long int i = ulongval ();
22696 if (i != ((long int) (sizeof (ac__type_sizeof_))))
22697 return 1;
22698 fprintf (f, "%lu\n", i);
22700 return ferror (f) || fclose (f) != 0;
22703 return 0;
22705 _ACEOF
22706 rm -f conftest$ac_exeext
22707 if { (ac_try="$ac_link"
22708 case "(($ac_try" in
22709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22710 *) ac_try_echo=$ac_try;;
22711 esac
22712 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22713 (eval "$ac_link") 2>&5
22714 ac_status=$?
22715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22716 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22717 { (case "(($ac_try" in
22718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22719 *) ac_try_echo=$ac_try;;
22720 esac
22721 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22722 (eval "$ac_try") 2>&5
22723 ac_status=$?
22724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22725 (exit $ac_status); }; }; then
22726 ac_cv_sizeof_wchar_t=`cat conftest.val`
22727 else
22728 echo "$as_me: program exited with status $ac_status" >&5
22729 echo "$as_me: failed program was:" >&5
22730 sed 's/^/| /' conftest.$ac_ext >&5
22732 ( exit $ac_status )
22733 if test "$ac_cv_type_wchar_t" = yes; then
22734 { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t)
22735 See \`config.log' for more details." >&5
22736 echo "$as_me: error: cannot compute sizeof (wchar_t)
22737 See \`config.log' for more details." >&2;}
22738 { (exit 77); exit 77; }; }
22739 else
22740 ac_cv_sizeof_wchar_t=0
22743 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22745 rm -f conftest.val
22747 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_wchar_t" >&5
22748 echo "${ECHO_T}$ac_cv_sizeof_wchar_t" >&6; }
22752 cat >>confdefs.h <<_ACEOF
22753 #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
22754 _ACEOF
22759 { echo "$as_me:$LINENO: checking for UCS-4 tcl" >&5
22760 echo $ECHO_N "checking for UCS-4 tcl... $ECHO_C" >&6; }
22761 have_ucs4_tcl=no
22762 cat >conftest.$ac_ext <<_ACEOF
22763 /* confdefs.h. */
22764 _ACEOF
22765 cat confdefs.h >>conftest.$ac_ext
22766 cat >>conftest.$ac_ext <<_ACEOF
22767 /* end confdefs.h. */
22769 #include <tcl.h>
22770 #if TCL_UTF_MAX != 6
22771 # error "NOT UCS4_TCL"
22772 #endif
22774 main ()
22778 return 0;
22780 _ACEOF
22781 rm -f conftest.$ac_objext
22782 if { (ac_try="$ac_compile"
22783 case "(($ac_try" in
22784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22785 *) ac_try_echo=$ac_try;;
22786 esac
22787 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22788 (eval "$ac_compile") 2>conftest.er1
22789 ac_status=$?
22790 grep -v '^ *+' conftest.er1 >conftest.err
22791 rm -f conftest.er1
22792 cat conftest.err >&5
22793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22794 (exit $ac_status); } && {
22795 test -z "$ac_c_werror_flag" ||
22796 test ! -s conftest.err
22797 } && test -s conftest.$ac_objext; then
22800 cat >>confdefs.h <<\_ACEOF
22801 #define HAVE_UCS4_TCL 1
22802 _ACEOF
22804 have_ucs4_tcl=yes
22806 else
22807 echo "$as_me: failed program was:" >&5
22808 sed 's/^/| /' conftest.$ac_ext >&5
22813 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22814 { echo "$as_me:$LINENO: result: $have_ucs4_tcl" >&5
22815 echo "${ECHO_T}$have_ucs4_tcl" >&6; }
22817 # check whether wchar_t is signed or not
22818 if test "$wchar_h" = yes
22819 then
22820 # check whether wchar_t is signed or not
22821 { echo "$as_me:$LINENO: checking whether wchar_t is signed" >&5
22822 echo $ECHO_N "checking whether wchar_t is signed... $ECHO_C" >&6; }
22823 if test "${ac_cv_wchar_t_signed+set}" = set; then
22824 echo $ECHO_N "(cached) $ECHO_C" >&6
22825 else
22827 if test "$cross_compiling" = yes; then
22828 ac_cv_wchar_t_signed=yes
22829 else
22830 cat >conftest.$ac_ext <<_ACEOF
22831 /* confdefs.h. */
22832 _ACEOF
22833 cat confdefs.h >>conftest.$ac_ext
22834 cat >>conftest.$ac_ext <<_ACEOF
22835 /* end confdefs.h. */
22837 #include <wchar.h>
22838 int main()
22840 /* Success: exit code 0 */
22841 exit((((wchar_t) -1) < ((wchar_t) 0)) ? 0 : 1);
22844 _ACEOF
22845 rm -f conftest$ac_exeext
22846 if { (ac_try="$ac_link"
22847 case "(($ac_try" in
22848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22849 *) ac_try_echo=$ac_try;;
22850 esac
22851 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22852 (eval "$ac_link") 2>&5
22853 ac_status=$?
22854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22855 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22856 { (case "(($ac_try" in
22857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22858 *) ac_try_echo=$ac_try;;
22859 esac
22860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22861 (eval "$ac_try") 2>&5
22862 ac_status=$?
22863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22864 (exit $ac_status); }; }; then
22865 ac_cv_wchar_t_signed=yes
22866 else
22867 echo "$as_me: program exited with status $ac_status" >&5
22868 echo "$as_me: failed program was:" >&5
22869 sed 's/^/| /' conftest.$ac_ext >&5
22871 ( exit $ac_status )
22872 ac_cv_wchar_t_signed=no
22874 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22880 { echo "$as_me:$LINENO: result: $ac_cv_wchar_t_signed" >&5
22881 echo "${ECHO_T}$ac_cv_wchar_t_signed" >&6; }
22884 { echo "$as_me:$LINENO: checking what type to use for str" >&5
22885 echo $ECHO_N "checking what type to use for str... $ECHO_C" >&6; }
22887 # Check whether --with-wide-unicode was given.
22888 if test "${with_wide_unicode+set}" = set; then
22889 withval=$with_wide_unicode;
22890 if test "$withval" != no
22891 then unicode_size="4"
22892 else unicode_size="2"
22895 else
22897 case "$have_ucs4_tcl" in
22898 yes) unicode_size="4" ;;
22899 *) unicode_size="2" ;;
22900 esac
22907 case "$unicode_size" in
22908 4) cat >>confdefs.h <<\_ACEOF
22909 #define Py_UNICODE_SIZE 4
22910 _ACEOF
22912 *) cat >>confdefs.h <<\_ACEOF
22913 #define Py_UNICODE_SIZE 2
22914 _ACEOF
22916 esac
22921 # wchar_t is only usable if it maps to an unsigned type
22922 if test "$unicode_size" = "$ac_cv_sizeof_wchar_t" \
22923 -a "$ac_cv_wchar_t_signed" = "no"
22924 then
22925 PY_UNICODE_TYPE="wchar_t"
22927 cat >>confdefs.h <<\_ACEOF
22928 #define HAVE_USABLE_WCHAR_T 1
22929 _ACEOF
22931 cat >>confdefs.h <<\_ACEOF
22932 #define PY_UNICODE_TYPE wchar_t
22933 _ACEOF
22935 elif test "$ac_cv_sizeof_short" = "$unicode_size"
22936 then
22937 PY_UNICODE_TYPE="unsigned short"
22938 cat >>confdefs.h <<\_ACEOF
22939 #define PY_UNICODE_TYPE unsigned short
22940 _ACEOF
22942 elif test "$ac_cv_sizeof_long" = "$unicode_size"
22943 then
22944 PY_UNICODE_TYPE="unsigned long"
22945 cat >>confdefs.h <<\_ACEOF
22946 #define PY_UNICODE_TYPE unsigned long
22947 _ACEOF
22949 else
22950 PY_UNICODE_TYPE="no type found"
22952 { echo "$as_me:$LINENO: result: $PY_UNICODE_TYPE" >&5
22953 echo "${ECHO_T}$PY_UNICODE_TYPE" >&6; }
22955 # check for endianness
22956 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
22957 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
22958 if test "${ac_cv_c_bigendian+set}" = set; then
22959 echo $ECHO_N "(cached) $ECHO_C" >&6
22960 else
22961 # See if sys/param.h defines the BYTE_ORDER macro.
22962 cat >conftest.$ac_ext <<_ACEOF
22963 /* confdefs.h. */
22964 _ACEOF
22965 cat confdefs.h >>conftest.$ac_ext
22966 cat >>conftest.$ac_ext <<_ACEOF
22967 /* end confdefs.h. */
22968 #include <sys/types.h>
22969 #include <sys/param.h>
22972 main ()
22974 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
22975 && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
22976 bogus endian macros
22977 #endif
22980 return 0;
22982 _ACEOF
22983 rm -f conftest.$ac_objext
22984 if { (ac_try="$ac_compile"
22985 case "(($ac_try" in
22986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22987 *) ac_try_echo=$ac_try;;
22988 esac
22989 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22990 (eval "$ac_compile") 2>conftest.er1
22991 ac_status=$?
22992 grep -v '^ *+' conftest.er1 >conftest.err
22993 rm -f conftest.er1
22994 cat conftest.err >&5
22995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22996 (exit $ac_status); } && {
22997 test -z "$ac_c_werror_flag" ||
22998 test ! -s conftest.err
22999 } && test -s conftest.$ac_objext; then
23000 # It does; now see whether it defined to BIG_ENDIAN or not.
23001 cat >conftest.$ac_ext <<_ACEOF
23002 /* confdefs.h. */
23003 _ACEOF
23004 cat confdefs.h >>conftest.$ac_ext
23005 cat >>conftest.$ac_ext <<_ACEOF
23006 /* end confdefs.h. */
23007 #include <sys/types.h>
23008 #include <sys/param.h>
23011 main ()
23013 #if BYTE_ORDER != BIG_ENDIAN
23014 not big endian
23015 #endif
23018 return 0;
23020 _ACEOF
23021 rm -f conftest.$ac_objext
23022 if { (ac_try="$ac_compile"
23023 case "(($ac_try" in
23024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23025 *) ac_try_echo=$ac_try;;
23026 esac
23027 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23028 (eval "$ac_compile") 2>conftest.er1
23029 ac_status=$?
23030 grep -v '^ *+' conftest.er1 >conftest.err
23031 rm -f conftest.er1
23032 cat conftest.err >&5
23033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23034 (exit $ac_status); } && {
23035 test -z "$ac_c_werror_flag" ||
23036 test ! -s conftest.err
23037 } && test -s conftest.$ac_objext; then
23038 ac_cv_c_bigendian=yes
23039 else
23040 echo "$as_me: failed program was:" >&5
23041 sed 's/^/| /' conftest.$ac_ext >&5
23043 ac_cv_c_bigendian=no
23046 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23047 else
23048 echo "$as_me: failed program was:" >&5
23049 sed 's/^/| /' conftest.$ac_ext >&5
23051 # It does not; compile a test program.
23052 if test "$cross_compiling" = yes; then
23053 # try to guess the endianness by grepping values into an object file
23054 ac_cv_c_bigendian=unknown
23055 cat >conftest.$ac_ext <<_ACEOF
23056 /* confdefs.h. */
23057 _ACEOF
23058 cat confdefs.h >>conftest.$ac_ext
23059 cat >>conftest.$ac_ext <<_ACEOF
23060 /* end confdefs.h. */
23061 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
23062 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
23063 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
23064 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
23065 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
23066 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
23068 main ()
23070 _ascii (); _ebcdic ();
23072 return 0;
23074 _ACEOF
23075 rm -f conftest.$ac_objext
23076 if { (ac_try="$ac_compile"
23077 case "(($ac_try" in
23078 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23079 *) ac_try_echo=$ac_try;;
23080 esac
23081 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23082 (eval "$ac_compile") 2>conftest.er1
23083 ac_status=$?
23084 grep -v '^ *+' conftest.er1 >conftest.err
23085 rm -f conftest.er1
23086 cat conftest.err >&5
23087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23088 (exit $ac_status); } && {
23089 test -z "$ac_c_werror_flag" ||
23090 test ! -s conftest.err
23091 } && test -s conftest.$ac_objext; then
23092 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
23093 ac_cv_c_bigendian=yes
23095 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
23096 if test "$ac_cv_c_bigendian" = unknown; then
23097 ac_cv_c_bigendian=no
23098 else
23099 # finding both strings is unlikely to happen, but who knows?
23100 ac_cv_c_bigendian=unknown
23103 else
23104 echo "$as_me: failed program was:" >&5
23105 sed 's/^/| /' conftest.$ac_ext >&5
23110 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23111 else
23112 cat >conftest.$ac_ext <<_ACEOF
23113 /* confdefs.h. */
23114 _ACEOF
23115 cat confdefs.h >>conftest.$ac_ext
23116 cat >>conftest.$ac_ext <<_ACEOF
23117 /* end confdefs.h. */
23118 $ac_includes_default
23120 main ()
23123 /* Are we little or big endian? From Harbison&Steele. */
23124 union
23126 long int l;
23127 char c[sizeof (long int)];
23128 } u;
23129 u.l = 1;
23130 return u.c[sizeof (long int) - 1] == 1;
23133 return 0;
23135 _ACEOF
23136 rm -f conftest$ac_exeext
23137 if { (ac_try="$ac_link"
23138 case "(($ac_try" in
23139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23140 *) ac_try_echo=$ac_try;;
23141 esac
23142 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23143 (eval "$ac_link") 2>&5
23144 ac_status=$?
23145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23146 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23147 { (case "(($ac_try" in
23148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23149 *) ac_try_echo=$ac_try;;
23150 esac
23151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23152 (eval "$ac_try") 2>&5
23153 ac_status=$?
23154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23155 (exit $ac_status); }; }; then
23156 ac_cv_c_bigendian=no
23157 else
23158 echo "$as_me: program exited with status $ac_status" >&5
23159 echo "$as_me: failed program was:" >&5
23160 sed 's/^/| /' conftest.$ac_ext >&5
23162 ( exit $ac_status )
23163 ac_cv_c_bigendian=yes
23165 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23171 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23173 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
23174 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
23175 case $ac_cv_c_bigendian in
23176 yes)
23178 cat >>confdefs.h <<\_ACEOF
23179 #define WORDS_BIGENDIAN 1
23180 _ACEOF
23185 { { echo "$as_me:$LINENO: error: unknown endianness
23186 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
23187 echo "$as_me: error: unknown endianness
23188 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
23189 { (exit 1); exit 1; }; } ;;
23190 esac
23193 # Check whether right shifting a negative integer extends the sign bit
23194 # or fills with zeros (like the Cray J90, according to Tim Peters).
23195 { echo "$as_me:$LINENO: checking whether right shift extends the sign bit" >&5
23196 echo $ECHO_N "checking whether right shift extends the sign bit... $ECHO_C" >&6; }
23197 if test "${ac_cv_rshift_extends_sign+set}" = set; then
23198 echo $ECHO_N "(cached) $ECHO_C" >&6
23199 else
23201 if test "$cross_compiling" = yes; then
23202 ac_cv_rshift_extends_sign=yes
23203 else
23204 cat >conftest.$ac_ext <<_ACEOF
23205 /* confdefs.h. */
23206 _ACEOF
23207 cat confdefs.h >>conftest.$ac_ext
23208 cat >>conftest.$ac_ext <<_ACEOF
23209 /* end confdefs.h. */
23211 int main()
23213 exit(((-1)>>3 == -1) ? 0 : 1);
23216 _ACEOF
23217 rm -f conftest$ac_exeext
23218 if { (ac_try="$ac_link"
23219 case "(($ac_try" in
23220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23221 *) ac_try_echo=$ac_try;;
23222 esac
23223 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23224 (eval "$ac_link") 2>&5
23225 ac_status=$?
23226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23227 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23228 { (case "(($ac_try" in
23229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23230 *) ac_try_echo=$ac_try;;
23231 esac
23232 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23233 (eval "$ac_try") 2>&5
23234 ac_status=$?
23235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23236 (exit $ac_status); }; }; then
23237 ac_cv_rshift_extends_sign=yes
23238 else
23239 echo "$as_me: program exited with status $ac_status" >&5
23240 echo "$as_me: failed program was:" >&5
23241 sed 's/^/| /' conftest.$ac_ext >&5
23243 ( exit $ac_status )
23244 ac_cv_rshift_extends_sign=no
23246 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23252 { echo "$as_me:$LINENO: result: $ac_cv_rshift_extends_sign" >&5
23253 echo "${ECHO_T}$ac_cv_rshift_extends_sign" >&6; }
23254 if test "$ac_cv_rshift_extends_sign" = no
23255 then
23257 cat >>confdefs.h <<\_ACEOF
23258 #define SIGNED_RIGHT_SHIFT_ZERO_FILLS 1
23259 _ACEOF
23263 # check for getc_unlocked and related locking functions
23264 { echo "$as_me:$LINENO: checking for getc_unlocked() and friends" >&5
23265 echo $ECHO_N "checking for getc_unlocked() and friends... $ECHO_C" >&6; }
23266 if test "${ac_cv_have_getc_unlocked+set}" = set; then
23267 echo $ECHO_N "(cached) $ECHO_C" >&6
23268 else
23270 cat >conftest.$ac_ext <<_ACEOF
23271 /* confdefs.h. */
23272 _ACEOF
23273 cat confdefs.h >>conftest.$ac_ext
23274 cat >>conftest.$ac_ext <<_ACEOF
23275 /* end confdefs.h. */
23276 #include <stdio.h>
23278 main ()
23281 FILE *f = fopen("/dev/null", "r");
23282 flockfile(f);
23283 getc_unlocked(f);
23284 funlockfile(f);
23287 return 0;
23289 _ACEOF
23290 rm -f conftest.$ac_objext conftest$ac_exeext
23291 if { (ac_try="$ac_link"
23292 case "(($ac_try" in
23293 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23294 *) ac_try_echo=$ac_try;;
23295 esac
23296 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23297 (eval "$ac_link") 2>conftest.er1
23298 ac_status=$?
23299 grep -v '^ *+' conftest.er1 >conftest.err
23300 rm -f conftest.er1
23301 cat conftest.err >&5
23302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23303 (exit $ac_status); } && {
23304 test -z "$ac_c_werror_flag" ||
23305 test ! -s conftest.err
23306 } && test -s conftest$ac_exeext &&
23307 $as_test_x conftest$ac_exeext; then
23308 ac_cv_have_getc_unlocked=yes
23309 else
23310 echo "$as_me: failed program was:" >&5
23311 sed 's/^/| /' conftest.$ac_ext >&5
23313 ac_cv_have_getc_unlocked=no
23316 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23317 conftest$ac_exeext conftest.$ac_ext
23320 { echo "$as_me:$LINENO: result: $ac_cv_have_getc_unlocked" >&5
23321 echo "${ECHO_T}$ac_cv_have_getc_unlocked" >&6; }
23322 if test "$ac_cv_have_getc_unlocked" = yes
23323 then
23325 cat >>confdefs.h <<\_ACEOF
23326 #define HAVE_GETC_UNLOCKED 1
23327 _ACEOF
23331 # check where readline lives
23332 # save the value of LIBS so we don't actually link Python with readline
23333 LIBS_no_readline=$LIBS
23335 # On some systems we need to link readline to a termcap compatible
23336 # library. NOTE: Keep the precedence of listed libraries synchronised
23337 # with setup.py.
23338 py_cv_lib_readline=no
23339 { echo "$as_me:$LINENO: checking how to link readline libs" >&5
23340 echo $ECHO_N "checking how to link readline libs... $ECHO_C" >&6; }
23341 for py_libtermcap in "" ncursesw ncurses curses termcap; do
23342 if test -z "$py_libtermcap"; then
23343 READLINE_LIBS="-lreadline"
23344 else
23345 READLINE_LIBS="-lreadline -l$py_libtermcap"
23347 LIBS="$READLINE_LIBS $LIBS_no_readline"
23348 cat >conftest.$ac_ext <<_ACEOF
23349 /* confdefs.h. */
23350 _ACEOF
23351 cat confdefs.h >>conftest.$ac_ext
23352 cat >>conftest.$ac_ext <<_ACEOF
23353 /* end confdefs.h. */
23355 /* Override any GCC internal prototype to avoid an error.
23356 Use char because int might match the return type of a GCC
23357 builtin and then its argument prototype would still apply. */
23358 #ifdef __cplusplus
23359 extern "C"
23360 #endif
23361 char readline ();
23363 main ()
23365 return readline ();
23367 return 0;
23369 _ACEOF
23370 rm -f conftest.$ac_objext conftest$ac_exeext
23371 if { (ac_try="$ac_link"
23372 case "(($ac_try" in
23373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23374 *) ac_try_echo=$ac_try;;
23375 esac
23376 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23377 (eval "$ac_link") 2>conftest.er1
23378 ac_status=$?
23379 grep -v '^ *+' conftest.er1 >conftest.err
23380 rm -f conftest.er1
23381 cat conftest.err >&5
23382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23383 (exit $ac_status); } && {
23384 test -z "$ac_c_werror_flag" ||
23385 test ! -s conftest.err
23386 } && test -s conftest$ac_exeext &&
23387 $as_test_x conftest$ac_exeext; then
23388 py_cv_lib_readline=yes
23389 else
23390 echo "$as_me: failed program was:" >&5
23391 sed 's/^/| /' conftest.$ac_ext >&5
23396 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23397 conftest$ac_exeext conftest.$ac_ext
23398 if test $py_cv_lib_readline = yes; then
23399 break
23401 done
23402 # Uncomment this line if you want to use READINE_LIBS in Makefile or scripts
23403 #AC_SUBST([READLINE_LIBS])
23404 if test $py_cv_lib_readline = no; then
23405 { echo "$as_me:$LINENO: result: none" >&5
23406 echo "${ECHO_T}none" >&6; }
23407 else
23408 { echo "$as_me:$LINENO: result: $READLINE_LIBS" >&5
23409 echo "${ECHO_T}$READLINE_LIBS" >&6; }
23411 cat >>confdefs.h <<\_ACEOF
23412 #define HAVE_LIBREADLINE 1
23413 _ACEOF
23417 # check for readline 2.1
23418 { echo "$as_me:$LINENO: checking for rl_callback_handler_install in -lreadline" >&5
23419 echo $ECHO_N "checking for rl_callback_handler_install in -lreadline... $ECHO_C" >&6; }
23420 if test "${ac_cv_lib_readline_rl_callback_handler_install+set}" = set; then
23421 echo $ECHO_N "(cached) $ECHO_C" >&6
23422 else
23423 ac_check_lib_save_LIBS=$LIBS
23424 LIBS="-lreadline $READLINE_LIBS $LIBS"
23425 cat >conftest.$ac_ext <<_ACEOF
23426 /* confdefs.h. */
23427 _ACEOF
23428 cat confdefs.h >>conftest.$ac_ext
23429 cat >>conftest.$ac_ext <<_ACEOF
23430 /* end confdefs.h. */
23432 /* Override any GCC internal prototype to avoid an error.
23433 Use char because int might match the return type of a GCC
23434 builtin and then its argument prototype would still apply. */
23435 #ifdef __cplusplus
23436 extern "C"
23437 #endif
23438 char rl_callback_handler_install ();
23440 main ()
23442 return rl_callback_handler_install ();
23444 return 0;
23446 _ACEOF
23447 rm -f conftest.$ac_objext conftest$ac_exeext
23448 if { (ac_try="$ac_link"
23449 case "(($ac_try" in
23450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23451 *) ac_try_echo=$ac_try;;
23452 esac
23453 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23454 (eval "$ac_link") 2>conftest.er1
23455 ac_status=$?
23456 grep -v '^ *+' conftest.er1 >conftest.err
23457 rm -f conftest.er1
23458 cat conftest.err >&5
23459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23460 (exit $ac_status); } && {
23461 test -z "$ac_c_werror_flag" ||
23462 test ! -s conftest.err
23463 } && test -s conftest$ac_exeext &&
23464 $as_test_x conftest$ac_exeext; then
23465 ac_cv_lib_readline_rl_callback_handler_install=yes
23466 else
23467 echo "$as_me: failed program was:" >&5
23468 sed 's/^/| /' conftest.$ac_ext >&5
23470 ac_cv_lib_readline_rl_callback_handler_install=no
23473 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23474 conftest$ac_exeext conftest.$ac_ext
23475 LIBS=$ac_check_lib_save_LIBS
23477 { echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_callback_handler_install" >&5
23478 echo "${ECHO_T}$ac_cv_lib_readline_rl_callback_handler_install" >&6; }
23479 if test $ac_cv_lib_readline_rl_callback_handler_install = yes; then
23481 cat >>confdefs.h <<\_ACEOF
23482 #define HAVE_RL_CALLBACK 1
23483 _ACEOF
23488 # check for readline 2.2
23489 cat >conftest.$ac_ext <<_ACEOF
23490 /* confdefs.h. */
23491 _ACEOF
23492 cat confdefs.h >>conftest.$ac_ext
23493 cat >>conftest.$ac_ext <<_ACEOF
23494 /* end confdefs.h. */
23495 #include <readline/readline.h>
23496 _ACEOF
23497 if { (ac_try="$ac_cpp conftest.$ac_ext"
23498 case "(($ac_try" in
23499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23500 *) ac_try_echo=$ac_try;;
23501 esac
23502 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23503 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23504 ac_status=$?
23505 grep -v '^ *+' conftest.er1 >conftest.err
23506 rm -f conftest.er1
23507 cat conftest.err >&5
23508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23509 (exit $ac_status); } >/dev/null && {
23510 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23511 test ! -s conftest.err
23512 }; then
23513 have_readline=yes
23514 else
23515 echo "$as_me: failed program was:" >&5
23516 sed 's/^/| /' conftest.$ac_ext >&5
23518 have_readline=no
23521 rm -f conftest.err conftest.$ac_ext
23522 if test $have_readline = yes
23523 then
23524 cat >conftest.$ac_ext <<_ACEOF
23525 /* confdefs.h. */
23526 _ACEOF
23527 cat confdefs.h >>conftest.$ac_ext
23528 cat >>conftest.$ac_ext <<_ACEOF
23529 /* end confdefs.h. */
23530 #include <readline/readline.h>
23532 _ACEOF
23533 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23534 $EGREP "extern int rl_completion_append_character;" >/dev/null 2>&1; then
23536 cat >>confdefs.h <<\_ACEOF
23537 #define HAVE_RL_COMPLETION_APPEND_CHARACTER 1
23538 _ACEOF
23541 rm -f conftest*
23545 # check for readline 4.0
23546 { echo "$as_me:$LINENO: checking for rl_pre_input_hook in -lreadline" >&5
23547 echo $ECHO_N "checking for rl_pre_input_hook in -lreadline... $ECHO_C" >&6; }
23548 if test "${ac_cv_lib_readline_rl_pre_input_hook+set}" = set; then
23549 echo $ECHO_N "(cached) $ECHO_C" >&6
23550 else
23551 ac_check_lib_save_LIBS=$LIBS
23552 LIBS="-lreadline $READLINE_LIBS $LIBS"
23553 cat >conftest.$ac_ext <<_ACEOF
23554 /* confdefs.h. */
23555 _ACEOF
23556 cat confdefs.h >>conftest.$ac_ext
23557 cat >>conftest.$ac_ext <<_ACEOF
23558 /* end confdefs.h. */
23560 /* Override any GCC internal prototype to avoid an error.
23561 Use char because int might match the return type of a GCC
23562 builtin and then its argument prototype would still apply. */
23563 #ifdef __cplusplus
23564 extern "C"
23565 #endif
23566 char rl_pre_input_hook ();
23568 main ()
23570 return rl_pre_input_hook ();
23572 return 0;
23574 _ACEOF
23575 rm -f conftest.$ac_objext conftest$ac_exeext
23576 if { (ac_try="$ac_link"
23577 case "(($ac_try" in
23578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23579 *) ac_try_echo=$ac_try;;
23580 esac
23581 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23582 (eval "$ac_link") 2>conftest.er1
23583 ac_status=$?
23584 grep -v '^ *+' conftest.er1 >conftest.err
23585 rm -f conftest.er1
23586 cat conftest.err >&5
23587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23588 (exit $ac_status); } && {
23589 test -z "$ac_c_werror_flag" ||
23590 test ! -s conftest.err
23591 } && test -s conftest$ac_exeext &&
23592 $as_test_x conftest$ac_exeext; then
23593 ac_cv_lib_readline_rl_pre_input_hook=yes
23594 else
23595 echo "$as_me: failed program was:" >&5
23596 sed 's/^/| /' conftest.$ac_ext >&5
23598 ac_cv_lib_readline_rl_pre_input_hook=no
23601 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23602 conftest$ac_exeext conftest.$ac_ext
23603 LIBS=$ac_check_lib_save_LIBS
23605 { echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_pre_input_hook" >&5
23606 echo "${ECHO_T}$ac_cv_lib_readline_rl_pre_input_hook" >&6; }
23607 if test $ac_cv_lib_readline_rl_pre_input_hook = yes; then
23609 cat >>confdefs.h <<\_ACEOF
23610 #define HAVE_RL_PRE_INPUT_HOOK 1
23611 _ACEOF
23616 # also in 4.0
23617 { echo "$as_me:$LINENO: checking for rl_completion_display_matches_hook in -lreadline" >&5
23618 echo $ECHO_N "checking for rl_completion_display_matches_hook in -lreadline... $ECHO_C" >&6; }
23619 if test "${ac_cv_lib_readline_rl_completion_display_matches_hook+set}" = set; then
23620 echo $ECHO_N "(cached) $ECHO_C" >&6
23621 else
23622 ac_check_lib_save_LIBS=$LIBS
23623 LIBS="-lreadline $READLINE_LIBS $LIBS"
23624 cat >conftest.$ac_ext <<_ACEOF
23625 /* confdefs.h. */
23626 _ACEOF
23627 cat confdefs.h >>conftest.$ac_ext
23628 cat >>conftest.$ac_ext <<_ACEOF
23629 /* end confdefs.h. */
23631 /* Override any GCC internal prototype to avoid an error.
23632 Use char because int might match the return type of a GCC
23633 builtin and then its argument prototype would still apply. */
23634 #ifdef __cplusplus
23635 extern "C"
23636 #endif
23637 char rl_completion_display_matches_hook ();
23639 main ()
23641 return rl_completion_display_matches_hook ();
23643 return 0;
23645 _ACEOF
23646 rm -f conftest.$ac_objext conftest$ac_exeext
23647 if { (ac_try="$ac_link"
23648 case "(($ac_try" in
23649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23650 *) ac_try_echo=$ac_try;;
23651 esac
23652 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23653 (eval "$ac_link") 2>conftest.er1
23654 ac_status=$?
23655 grep -v '^ *+' conftest.er1 >conftest.err
23656 rm -f conftest.er1
23657 cat conftest.err >&5
23658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23659 (exit $ac_status); } && {
23660 test -z "$ac_c_werror_flag" ||
23661 test ! -s conftest.err
23662 } && test -s conftest$ac_exeext &&
23663 $as_test_x conftest$ac_exeext; then
23664 ac_cv_lib_readline_rl_completion_display_matches_hook=yes
23665 else
23666 echo "$as_me: failed program was:" >&5
23667 sed 's/^/| /' conftest.$ac_ext >&5
23669 ac_cv_lib_readline_rl_completion_display_matches_hook=no
23672 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23673 conftest$ac_exeext conftest.$ac_ext
23674 LIBS=$ac_check_lib_save_LIBS
23676 { echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_completion_display_matches_hook" >&5
23677 echo "${ECHO_T}$ac_cv_lib_readline_rl_completion_display_matches_hook" >&6; }
23678 if test $ac_cv_lib_readline_rl_completion_display_matches_hook = yes; then
23680 cat >>confdefs.h <<\_ACEOF
23681 #define HAVE_RL_COMPLETION_DISPLAY_MATCHES_HOOK 1
23682 _ACEOF
23687 # check for readline 4.2
23688 { echo "$as_me:$LINENO: checking for rl_completion_matches in -lreadline" >&5
23689 echo $ECHO_N "checking for rl_completion_matches in -lreadline... $ECHO_C" >&6; }
23690 if test "${ac_cv_lib_readline_rl_completion_matches+set}" = set; then
23691 echo $ECHO_N "(cached) $ECHO_C" >&6
23692 else
23693 ac_check_lib_save_LIBS=$LIBS
23694 LIBS="-lreadline $READLINE_LIBS $LIBS"
23695 cat >conftest.$ac_ext <<_ACEOF
23696 /* confdefs.h. */
23697 _ACEOF
23698 cat confdefs.h >>conftest.$ac_ext
23699 cat >>conftest.$ac_ext <<_ACEOF
23700 /* end confdefs.h. */
23702 /* Override any GCC internal prototype to avoid an error.
23703 Use char because int might match the return type of a GCC
23704 builtin and then its argument prototype would still apply. */
23705 #ifdef __cplusplus
23706 extern "C"
23707 #endif
23708 char rl_completion_matches ();
23710 main ()
23712 return rl_completion_matches ();
23714 return 0;
23716 _ACEOF
23717 rm -f conftest.$ac_objext conftest$ac_exeext
23718 if { (ac_try="$ac_link"
23719 case "(($ac_try" in
23720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23721 *) ac_try_echo=$ac_try;;
23722 esac
23723 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23724 (eval "$ac_link") 2>conftest.er1
23725 ac_status=$?
23726 grep -v '^ *+' conftest.er1 >conftest.err
23727 rm -f conftest.er1
23728 cat conftest.err >&5
23729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23730 (exit $ac_status); } && {
23731 test -z "$ac_c_werror_flag" ||
23732 test ! -s conftest.err
23733 } && test -s conftest$ac_exeext &&
23734 $as_test_x conftest$ac_exeext; then
23735 ac_cv_lib_readline_rl_completion_matches=yes
23736 else
23737 echo "$as_me: failed program was:" >&5
23738 sed 's/^/| /' conftest.$ac_ext >&5
23740 ac_cv_lib_readline_rl_completion_matches=no
23743 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23744 conftest$ac_exeext conftest.$ac_ext
23745 LIBS=$ac_check_lib_save_LIBS
23747 { echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_completion_matches" >&5
23748 echo "${ECHO_T}$ac_cv_lib_readline_rl_completion_matches" >&6; }
23749 if test $ac_cv_lib_readline_rl_completion_matches = yes; then
23751 cat >>confdefs.h <<\_ACEOF
23752 #define HAVE_RL_COMPLETION_MATCHES 1
23753 _ACEOF
23758 # also in readline 4.2
23759 cat >conftest.$ac_ext <<_ACEOF
23760 /* confdefs.h. */
23761 _ACEOF
23762 cat confdefs.h >>conftest.$ac_ext
23763 cat >>conftest.$ac_ext <<_ACEOF
23764 /* end confdefs.h. */
23765 #include <readline/readline.h>
23766 _ACEOF
23767 if { (ac_try="$ac_cpp conftest.$ac_ext"
23768 case "(($ac_try" in
23769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23770 *) ac_try_echo=$ac_try;;
23771 esac
23772 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23773 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23774 ac_status=$?
23775 grep -v '^ *+' conftest.er1 >conftest.err
23776 rm -f conftest.er1
23777 cat conftest.err >&5
23778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23779 (exit $ac_status); } >/dev/null && {
23780 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23781 test ! -s conftest.err
23782 }; then
23783 have_readline=yes
23784 else
23785 echo "$as_me: failed program was:" >&5
23786 sed 's/^/| /' conftest.$ac_ext >&5
23788 have_readline=no
23791 rm -f conftest.err conftest.$ac_ext
23792 if test $have_readline = yes
23793 then
23794 cat >conftest.$ac_ext <<_ACEOF
23795 /* confdefs.h. */
23796 _ACEOF
23797 cat confdefs.h >>conftest.$ac_ext
23798 cat >>conftest.$ac_ext <<_ACEOF
23799 /* end confdefs.h. */
23800 #include <readline/readline.h>
23802 _ACEOF
23803 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23804 $EGREP "extern int rl_catch_signals;" >/dev/null 2>&1; then
23806 cat >>confdefs.h <<\_ACEOF
23807 #define HAVE_RL_CATCH_SIGNAL 1
23808 _ACEOF
23811 rm -f conftest*
23815 # End of readline checks: restore LIBS
23816 LIBS=$LIBS_no_readline
23818 { echo "$as_me:$LINENO: checking for broken nice()" >&5
23819 echo $ECHO_N "checking for broken nice()... $ECHO_C" >&6; }
23820 if test "${ac_cv_broken_nice+set}" = set; then
23821 echo $ECHO_N "(cached) $ECHO_C" >&6
23822 else
23824 if test "$cross_compiling" = yes; then
23825 ac_cv_broken_nice=no
23826 else
23827 cat >conftest.$ac_ext <<_ACEOF
23828 /* confdefs.h. */
23829 _ACEOF
23830 cat confdefs.h >>conftest.$ac_ext
23831 cat >>conftest.$ac_ext <<_ACEOF
23832 /* end confdefs.h. */
23834 int main()
23836 int val1 = nice(1);
23837 if (val1 != -1 && val1 == nice(2))
23838 exit(0);
23839 exit(1);
23842 _ACEOF
23843 rm -f conftest$ac_exeext
23844 if { (ac_try="$ac_link"
23845 case "(($ac_try" in
23846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23847 *) ac_try_echo=$ac_try;;
23848 esac
23849 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23850 (eval "$ac_link") 2>&5
23851 ac_status=$?
23852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23853 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23854 { (case "(($ac_try" in
23855 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23856 *) ac_try_echo=$ac_try;;
23857 esac
23858 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23859 (eval "$ac_try") 2>&5
23860 ac_status=$?
23861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23862 (exit $ac_status); }; }; then
23863 ac_cv_broken_nice=yes
23864 else
23865 echo "$as_me: program exited with status $ac_status" >&5
23866 echo "$as_me: failed program was:" >&5
23867 sed 's/^/| /' conftest.$ac_ext >&5
23869 ( exit $ac_status )
23870 ac_cv_broken_nice=no
23872 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23878 { echo "$as_me:$LINENO: result: $ac_cv_broken_nice" >&5
23879 echo "${ECHO_T}$ac_cv_broken_nice" >&6; }
23880 if test "$ac_cv_broken_nice" = yes
23881 then
23883 cat >>confdefs.h <<\_ACEOF
23884 #define HAVE_BROKEN_NICE 1
23885 _ACEOF
23889 { echo "$as_me:$LINENO: checking for broken poll()" >&5
23890 echo $ECHO_N "checking for broken poll()... $ECHO_C" >&6; }
23891 if test "$cross_compiling" = yes; then
23892 ac_cv_broken_poll=no
23893 else
23894 cat >conftest.$ac_ext <<_ACEOF
23895 /* confdefs.h. */
23896 _ACEOF
23897 cat confdefs.h >>conftest.$ac_ext
23898 cat >>conftest.$ac_ext <<_ACEOF
23899 /* end confdefs.h. */
23901 #include <poll.h>
23903 int main (void)
23905 struct pollfd poll_struct = { 42, POLLIN|POLLPRI|POLLOUT, 0 };
23907 close (42);
23909 int poll_test = poll (&poll_struct, 1, 0);
23911 if (poll_test < 0)
23913 exit(0);
23915 else if (poll_test == 0 && poll_struct.revents != POLLNVAL)
23917 exit(0);
23919 else
23921 exit(1);
23925 _ACEOF
23926 rm -f conftest$ac_exeext
23927 if { (ac_try="$ac_link"
23928 case "(($ac_try" in
23929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23930 *) ac_try_echo=$ac_try;;
23931 esac
23932 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23933 (eval "$ac_link") 2>&5
23934 ac_status=$?
23935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23936 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23937 { (case "(($ac_try" in
23938 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23939 *) ac_try_echo=$ac_try;;
23940 esac
23941 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23942 (eval "$ac_try") 2>&5
23943 ac_status=$?
23944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23945 (exit $ac_status); }; }; then
23946 ac_cv_broken_poll=yes
23947 else
23948 echo "$as_me: program exited with status $ac_status" >&5
23949 echo "$as_me: failed program was:" >&5
23950 sed 's/^/| /' conftest.$ac_ext >&5
23952 ( exit $ac_status )
23953 ac_cv_broken_poll=no
23955 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23959 { echo "$as_me:$LINENO: result: $ac_cv_broken_poll" >&5
23960 echo "${ECHO_T}$ac_cv_broken_poll" >&6; }
23961 if test "$ac_cv_broken_poll" = yes
23962 then
23964 cat >>confdefs.h <<\_ACEOF
23965 #define HAVE_BROKEN_POLL 1
23966 _ACEOF
23970 # Before we can test tzset, we need to check if struct tm has a tm_zone
23971 # (which is not required by ISO C or UNIX spec) and/or if we support
23972 # tzname[]
23973 { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
23974 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
23975 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
23976 echo $ECHO_N "(cached) $ECHO_C" >&6
23977 else
23978 cat >conftest.$ac_ext <<_ACEOF
23979 /* confdefs.h. */
23980 _ACEOF
23981 cat confdefs.h >>conftest.$ac_ext
23982 cat >>conftest.$ac_ext <<_ACEOF
23983 /* end confdefs.h. */
23984 #include <sys/types.h>
23985 #include <$ac_cv_struct_tm>
23989 main ()
23991 static struct tm ac_aggr;
23992 if (ac_aggr.tm_zone)
23993 return 0;
23995 return 0;
23997 _ACEOF
23998 rm -f conftest.$ac_objext
23999 if { (ac_try="$ac_compile"
24000 case "(($ac_try" in
24001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24002 *) ac_try_echo=$ac_try;;
24003 esac
24004 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24005 (eval "$ac_compile") 2>conftest.er1
24006 ac_status=$?
24007 grep -v '^ *+' conftest.er1 >conftest.err
24008 rm -f conftest.er1
24009 cat conftest.err >&5
24010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24011 (exit $ac_status); } && {
24012 test -z "$ac_c_werror_flag" ||
24013 test ! -s conftest.err
24014 } && test -s conftest.$ac_objext; then
24015 ac_cv_member_struct_tm_tm_zone=yes
24016 else
24017 echo "$as_me: failed program was:" >&5
24018 sed 's/^/| /' conftest.$ac_ext >&5
24020 cat >conftest.$ac_ext <<_ACEOF
24021 /* confdefs.h. */
24022 _ACEOF
24023 cat confdefs.h >>conftest.$ac_ext
24024 cat >>conftest.$ac_ext <<_ACEOF
24025 /* end confdefs.h. */
24026 #include <sys/types.h>
24027 #include <$ac_cv_struct_tm>
24031 main ()
24033 static struct tm ac_aggr;
24034 if (sizeof ac_aggr.tm_zone)
24035 return 0;
24037 return 0;
24039 _ACEOF
24040 rm -f conftest.$ac_objext
24041 if { (ac_try="$ac_compile"
24042 case "(($ac_try" in
24043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24044 *) ac_try_echo=$ac_try;;
24045 esac
24046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24047 (eval "$ac_compile") 2>conftest.er1
24048 ac_status=$?
24049 grep -v '^ *+' conftest.er1 >conftest.err
24050 rm -f conftest.er1
24051 cat conftest.err >&5
24052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24053 (exit $ac_status); } && {
24054 test -z "$ac_c_werror_flag" ||
24055 test ! -s conftest.err
24056 } && test -s conftest.$ac_objext; then
24057 ac_cv_member_struct_tm_tm_zone=yes
24058 else
24059 echo "$as_me: failed program was:" >&5
24060 sed 's/^/| /' conftest.$ac_ext >&5
24062 ac_cv_member_struct_tm_tm_zone=no
24065 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24068 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24070 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
24071 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
24072 if test $ac_cv_member_struct_tm_tm_zone = yes; then
24074 cat >>confdefs.h <<_ACEOF
24075 #define HAVE_STRUCT_TM_TM_ZONE 1
24076 _ACEOF
24081 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
24083 cat >>confdefs.h <<\_ACEOF
24084 #define HAVE_TM_ZONE 1
24085 _ACEOF
24087 else
24088 { echo "$as_me:$LINENO: checking whether tzname is declared" >&5
24089 echo $ECHO_N "checking whether tzname is declared... $ECHO_C" >&6; }
24090 if test "${ac_cv_have_decl_tzname+set}" = set; then
24091 echo $ECHO_N "(cached) $ECHO_C" >&6
24092 else
24093 cat >conftest.$ac_ext <<_ACEOF
24094 /* confdefs.h. */
24095 _ACEOF
24096 cat confdefs.h >>conftest.$ac_ext
24097 cat >>conftest.$ac_ext <<_ACEOF
24098 /* end confdefs.h. */
24099 #include <time.h>
24102 main ()
24104 #ifndef tzname
24105 (void) tzname;
24106 #endif
24109 return 0;
24111 _ACEOF
24112 rm -f conftest.$ac_objext
24113 if { (ac_try="$ac_compile"
24114 case "(($ac_try" in
24115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24116 *) ac_try_echo=$ac_try;;
24117 esac
24118 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24119 (eval "$ac_compile") 2>conftest.er1
24120 ac_status=$?
24121 grep -v '^ *+' conftest.er1 >conftest.err
24122 rm -f conftest.er1
24123 cat conftest.err >&5
24124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24125 (exit $ac_status); } && {
24126 test -z "$ac_c_werror_flag" ||
24127 test ! -s conftest.err
24128 } && test -s conftest.$ac_objext; then
24129 ac_cv_have_decl_tzname=yes
24130 else
24131 echo "$as_me: failed program was:" >&5
24132 sed 's/^/| /' conftest.$ac_ext >&5
24134 ac_cv_have_decl_tzname=no
24137 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24139 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
24140 echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; }
24141 if test $ac_cv_have_decl_tzname = yes; then
24143 cat >>confdefs.h <<_ACEOF
24144 #define HAVE_DECL_TZNAME 1
24145 _ACEOF
24148 else
24149 cat >>confdefs.h <<_ACEOF
24150 #define HAVE_DECL_TZNAME 0
24151 _ACEOF
24157 { echo "$as_me:$LINENO: checking for tzname" >&5
24158 echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
24159 if test "${ac_cv_var_tzname+set}" = set; then
24160 echo $ECHO_N "(cached) $ECHO_C" >&6
24161 else
24162 cat >conftest.$ac_ext <<_ACEOF
24163 /* confdefs.h. */
24164 _ACEOF
24165 cat confdefs.h >>conftest.$ac_ext
24166 cat >>conftest.$ac_ext <<_ACEOF
24167 /* end confdefs.h. */
24168 #include <time.h>
24169 #if !HAVE_DECL_TZNAME
24170 extern char *tzname[];
24171 #endif
24174 main ()
24176 return tzname[0][0];
24178 return 0;
24180 _ACEOF
24181 rm -f conftest.$ac_objext conftest$ac_exeext
24182 if { (ac_try="$ac_link"
24183 case "(($ac_try" in
24184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24185 *) ac_try_echo=$ac_try;;
24186 esac
24187 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24188 (eval "$ac_link") 2>conftest.er1
24189 ac_status=$?
24190 grep -v '^ *+' conftest.er1 >conftest.err
24191 rm -f conftest.er1
24192 cat conftest.err >&5
24193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24194 (exit $ac_status); } && {
24195 test -z "$ac_c_werror_flag" ||
24196 test ! -s conftest.err
24197 } && test -s conftest$ac_exeext &&
24198 $as_test_x conftest$ac_exeext; then
24199 ac_cv_var_tzname=yes
24200 else
24201 echo "$as_me: failed program was:" >&5
24202 sed 's/^/| /' conftest.$ac_ext >&5
24204 ac_cv_var_tzname=no
24207 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24208 conftest$ac_exeext conftest.$ac_ext
24210 { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
24211 echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
24212 if test $ac_cv_var_tzname = yes; then
24214 cat >>confdefs.h <<\_ACEOF
24215 #define HAVE_TZNAME 1
24216 _ACEOF
24222 # check tzset(3) exists and works like we expect it to
24223 { echo "$as_me:$LINENO: checking for working tzset()" >&5
24224 echo $ECHO_N "checking for working tzset()... $ECHO_C" >&6; }
24225 if test "${ac_cv_working_tzset+set}" = set; then
24226 echo $ECHO_N "(cached) $ECHO_C" >&6
24227 else
24229 if test "$cross_compiling" = yes; then
24230 ac_cv_working_tzset=no
24231 else
24232 cat >conftest.$ac_ext <<_ACEOF
24233 /* confdefs.h. */
24234 _ACEOF
24235 cat confdefs.h >>conftest.$ac_ext
24236 cat >>conftest.$ac_ext <<_ACEOF
24237 /* end confdefs.h. */
24239 #include <stdlib.h>
24240 #include <time.h>
24241 #include <string.h>
24243 #if HAVE_TZNAME
24244 extern char *tzname[];
24245 #endif
24247 int main()
24249 /* Note that we need to ensure that not only does tzset(3)
24250 do 'something' with localtime, but it works as documented
24251 in the library reference and as expected by the test suite.
24252 This includes making sure that tzname is set properly if
24253 tm->tm_zone does not exist since it is the alternative way
24254 of getting timezone info.
24256 Red Hat 6.2 doesn't understand the southern hemisphere
24257 after New Year's Day.
24260 time_t groundhogday = 1044144000; /* GMT-based */
24261 time_t midyear = groundhogday + (365 * 24 * 3600 / 2);
24263 putenv("TZ=UTC+0");
24264 tzset();
24265 if (localtime(&groundhogday)->tm_hour != 0)
24266 exit(1);
24267 #if HAVE_TZNAME
24268 /* For UTC, tzname[1] is sometimes "", sometimes " " */
24269 if (strcmp(tzname[0], "UTC") ||
24270 (tzname[1][0] != 0 && tzname[1][0] != ' '))
24271 exit(1);
24272 #endif
24274 putenv("TZ=EST+5EDT,M4.1.0,M10.5.0");
24275 tzset();
24276 if (localtime(&groundhogday)->tm_hour != 19)
24277 exit(1);
24278 #if HAVE_TZNAME
24279 if (strcmp(tzname[0], "EST") || strcmp(tzname[1], "EDT"))
24280 exit(1);
24281 #endif
24283 putenv("TZ=AEST-10AEDT-11,M10.5.0,M3.5.0");
24284 tzset();
24285 if (localtime(&groundhogday)->tm_hour != 11)
24286 exit(1);
24287 #if HAVE_TZNAME
24288 if (strcmp(tzname[0], "AEST") || strcmp(tzname[1], "AEDT"))
24289 exit(1);
24290 #endif
24292 #if HAVE_STRUCT_TM_TM_ZONE
24293 if (strcmp(localtime(&groundhogday)->tm_zone, "AEDT"))
24294 exit(1);
24295 if (strcmp(localtime(&midyear)->tm_zone, "AEST"))
24296 exit(1);
24297 #endif
24299 exit(0);
24302 _ACEOF
24303 rm -f conftest$ac_exeext
24304 if { (ac_try="$ac_link"
24305 case "(($ac_try" in
24306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24307 *) ac_try_echo=$ac_try;;
24308 esac
24309 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24310 (eval "$ac_link") 2>&5
24311 ac_status=$?
24312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24313 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24314 { (case "(($ac_try" in
24315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24316 *) ac_try_echo=$ac_try;;
24317 esac
24318 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24319 (eval "$ac_try") 2>&5
24320 ac_status=$?
24321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24322 (exit $ac_status); }; }; then
24323 ac_cv_working_tzset=yes
24324 else
24325 echo "$as_me: program exited with status $ac_status" >&5
24326 echo "$as_me: failed program was:" >&5
24327 sed 's/^/| /' conftest.$ac_ext >&5
24329 ( exit $ac_status )
24330 ac_cv_working_tzset=no
24332 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24338 { echo "$as_me:$LINENO: result: $ac_cv_working_tzset" >&5
24339 echo "${ECHO_T}$ac_cv_working_tzset" >&6; }
24340 if test "$ac_cv_working_tzset" = yes
24341 then
24343 cat >>confdefs.h <<\_ACEOF
24344 #define HAVE_WORKING_TZSET 1
24345 _ACEOF
24349 # Look for subsecond timestamps in struct stat
24350 { echo "$as_me:$LINENO: checking for tv_nsec in struct stat" >&5
24351 echo $ECHO_N "checking for tv_nsec in struct stat... $ECHO_C" >&6; }
24352 if test "${ac_cv_stat_tv_nsec+set}" = set; then
24353 echo $ECHO_N "(cached) $ECHO_C" >&6
24354 else
24355 cat >conftest.$ac_ext <<_ACEOF
24356 /* confdefs.h. */
24357 _ACEOF
24358 cat confdefs.h >>conftest.$ac_ext
24359 cat >>conftest.$ac_ext <<_ACEOF
24360 /* end confdefs.h. */
24361 #include <sys/stat.h>
24363 main ()
24366 struct stat st;
24367 st.st_mtim.tv_nsec = 1;
24370 return 0;
24372 _ACEOF
24373 rm -f conftest.$ac_objext
24374 if { (ac_try="$ac_compile"
24375 case "(($ac_try" in
24376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24377 *) ac_try_echo=$ac_try;;
24378 esac
24379 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24380 (eval "$ac_compile") 2>conftest.er1
24381 ac_status=$?
24382 grep -v '^ *+' conftest.er1 >conftest.err
24383 rm -f conftest.er1
24384 cat conftest.err >&5
24385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24386 (exit $ac_status); } && {
24387 test -z "$ac_c_werror_flag" ||
24388 test ! -s conftest.err
24389 } && test -s conftest.$ac_objext; then
24390 ac_cv_stat_tv_nsec=yes
24391 else
24392 echo "$as_me: failed program was:" >&5
24393 sed 's/^/| /' conftest.$ac_ext >&5
24395 ac_cv_stat_tv_nsec=no
24398 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24401 { echo "$as_me:$LINENO: result: $ac_cv_stat_tv_nsec" >&5
24402 echo "${ECHO_T}$ac_cv_stat_tv_nsec" >&6; }
24403 if test "$ac_cv_stat_tv_nsec" = yes
24404 then
24406 cat >>confdefs.h <<\_ACEOF
24407 #define HAVE_STAT_TV_NSEC 1
24408 _ACEOF
24412 # Look for BSD style subsecond timestamps in struct stat
24413 { echo "$as_me:$LINENO: checking for tv_nsec2 in struct stat" >&5
24414 echo $ECHO_N "checking for tv_nsec2 in struct stat... $ECHO_C" >&6; }
24415 if test "${ac_cv_stat_tv_nsec2+set}" = set; then
24416 echo $ECHO_N "(cached) $ECHO_C" >&6
24417 else
24418 cat >conftest.$ac_ext <<_ACEOF
24419 /* confdefs.h. */
24420 _ACEOF
24421 cat confdefs.h >>conftest.$ac_ext
24422 cat >>conftest.$ac_ext <<_ACEOF
24423 /* end confdefs.h. */
24424 #include <sys/stat.h>
24426 main ()
24429 struct stat st;
24430 st.st_mtimespec.tv_nsec = 1;
24433 return 0;
24435 _ACEOF
24436 rm -f conftest.$ac_objext
24437 if { (ac_try="$ac_compile"
24438 case "(($ac_try" in
24439 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24440 *) ac_try_echo=$ac_try;;
24441 esac
24442 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24443 (eval "$ac_compile") 2>conftest.er1
24444 ac_status=$?
24445 grep -v '^ *+' conftest.er1 >conftest.err
24446 rm -f conftest.er1
24447 cat conftest.err >&5
24448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24449 (exit $ac_status); } && {
24450 test -z "$ac_c_werror_flag" ||
24451 test ! -s conftest.err
24452 } && test -s conftest.$ac_objext; then
24453 ac_cv_stat_tv_nsec2=yes
24454 else
24455 echo "$as_me: failed program was:" >&5
24456 sed 's/^/| /' conftest.$ac_ext >&5
24458 ac_cv_stat_tv_nsec2=no
24461 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24464 { echo "$as_me:$LINENO: result: $ac_cv_stat_tv_nsec2" >&5
24465 echo "${ECHO_T}$ac_cv_stat_tv_nsec2" >&6; }
24466 if test "$ac_cv_stat_tv_nsec2" = yes
24467 then
24469 cat >>confdefs.h <<\_ACEOF
24470 #define HAVE_STAT_TV_NSEC2 1
24471 _ACEOF
24475 # On HP/UX 11.0, mvwdelch is a block with a return statement
24476 { echo "$as_me:$LINENO: checking whether mvwdelch is an expression" >&5
24477 echo $ECHO_N "checking whether mvwdelch is an expression... $ECHO_C" >&6; }
24478 if test "${ac_cv_mvwdelch_is_expression+set}" = set; then
24479 echo $ECHO_N "(cached) $ECHO_C" >&6
24480 else
24481 cat >conftest.$ac_ext <<_ACEOF
24482 /* confdefs.h. */
24483 _ACEOF
24484 cat confdefs.h >>conftest.$ac_ext
24485 cat >>conftest.$ac_ext <<_ACEOF
24486 /* end confdefs.h. */
24487 #include <curses.h>
24489 main ()
24492 int rtn;
24493 rtn = mvwdelch(0,0,0);
24496 return 0;
24498 _ACEOF
24499 rm -f conftest.$ac_objext
24500 if { (ac_try="$ac_compile"
24501 case "(($ac_try" in
24502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24503 *) ac_try_echo=$ac_try;;
24504 esac
24505 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24506 (eval "$ac_compile") 2>conftest.er1
24507 ac_status=$?
24508 grep -v '^ *+' conftest.er1 >conftest.err
24509 rm -f conftest.er1
24510 cat conftest.err >&5
24511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24512 (exit $ac_status); } && {
24513 test -z "$ac_c_werror_flag" ||
24514 test ! -s conftest.err
24515 } && test -s conftest.$ac_objext; then
24516 ac_cv_mvwdelch_is_expression=yes
24517 else
24518 echo "$as_me: failed program was:" >&5
24519 sed 's/^/| /' conftest.$ac_ext >&5
24521 ac_cv_mvwdelch_is_expression=no
24524 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24527 { echo "$as_me:$LINENO: result: $ac_cv_mvwdelch_is_expression" >&5
24528 echo "${ECHO_T}$ac_cv_mvwdelch_is_expression" >&6; }
24530 if test "$ac_cv_mvwdelch_is_expression" = yes
24531 then
24533 cat >>confdefs.h <<\_ACEOF
24534 #define MVWDELCH_IS_EXPRESSION 1
24535 _ACEOF
24539 { echo "$as_me:$LINENO: checking whether WINDOW has _flags" >&5
24540 echo $ECHO_N "checking whether WINDOW has _flags... $ECHO_C" >&6; }
24541 if test "${ac_cv_window_has_flags+set}" = set; then
24542 echo $ECHO_N "(cached) $ECHO_C" >&6
24543 else
24544 cat >conftest.$ac_ext <<_ACEOF
24545 /* confdefs.h. */
24546 _ACEOF
24547 cat confdefs.h >>conftest.$ac_ext
24548 cat >>conftest.$ac_ext <<_ACEOF
24549 /* end confdefs.h. */
24550 #include <curses.h>
24552 main ()
24555 WINDOW *w;
24556 w->_flags = 0;
24559 return 0;
24561 _ACEOF
24562 rm -f conftest.$ac_objext
24563 if { (ac_try="$ac_compile"
24564 case "(($ac_try" in
24565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24566 *) ac_try_echo=$ac_try;;
24567 esac
24568 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24569 (eval "$ac_compile") 2>conftest.er1
24570 ac_status=$?
24571 grep -v '^ *+' conftest.er1 >conftest.err
24572 rm -f conftest.er1
24573 cat conftest.err >&5
24574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24575 (exit $ac_status); } && {
24576 test -z "$ac_c_werror_flag" ||
24577 test ! -s conftest.err
24578 } && test -s conftest.$ac_objext; then
24579 ac_cv_window_has_flags=yes
24580 else
24581 echo "$as_me: failed program was:" >&5
24582 sed 's/^/| /' conftest.$ac_ext >&5
24584 ac_cv_window_has_flags=no
24587 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24590 { echo "$as_me:$LINENO: result: $ac_cv_window_has_flags" >&5
24591 echo "${ECHO_T}$ac_cv_window_has_flags" >&6; }
24594 if test "$ac_cv_window_has_flags" = yes
24595 then
24597 cat >>confdefs.h <<\_ACEOF
24598 #define WINDOW_HAS_FLAGS 1
24599 _ACEOF
24603 { echo "$as_me:$LINENO: checking for is_term_resized" >&5
24604 echo $ECHO_N "checking for is_term_resized... $ECHO_C" >&6; }
24605 cat >conftest.$ac_ext <<_ACEOF
24606 /* confdefs.h. */
24607 _ACEOF
24608 cat confdefs.h >>conftest.$ac_ext
24609 cat >>conftest.$ac_ext <<_ACEOF
24610 /* end confdefs.h. */
24611 #include <curses.h>
24613 main ()
24615 void *x=is_term_resized
24617 return 0;
24619 _ACEOF
24620 rm -f conftest.$ac_objext
24621 if { (ac_try="$ac_compile"
24622 case "(($ac_try" in
24623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24624 *) ac_try_echo=$ac_try;;
24625 esac
24626 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24627 (eval "$ac_compile") 2>conftest.er1
24628 ac_status=$?
24629 grep -v '^ *+' conftest.er1 >conftest.err
24630 rm -f conftest.er1
24631 cat conftest.err >&5
24632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24633 (exit $ac_status); } && {
24634 test -z "$ac_c_werror_flag" ||
24635 test ! -s conftest.err
24636 } && test -s conftest.$ac_objext; then
24638 cat >>confdefs.h <<\_ACEOF
24639 #define HAVE_CURSES_IS_TERM_RESIZED 1
24640 _ACEOF
24642 { echo "$as_me:$LINENO: result: yes" >&5
24643 echo "${ECHO_T}yes" >&6; }
24644 else
24645 echo "$as_me: failed program was:" >&5
24646 sed 's/^/| /' conftest.$ac_ext >&5
24648 { echo "$as_me:$LINENO: result: no" >&5
24649 echo "${ECHO_T}no" >&6; }
24653 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24655 { echo "$as_me:$LINENO: checking for resize_term" >&5
24656 echo $ECHO_N "checking for resize_term... $ECHO_C" >&6; }
24657 cat >conftest.$ac_ext <<_ACEOF
24658 /* confdefs.h. */
24659 _ACEOF
24660 cat confdefs.h >>conftest.$ac_ext
24661 cat >>conftest.$ac_ext <<_ACEOF
24662 /* end confdefs.h. */
24663 #include <curses.h>
24665 main ()
24667 void *x=resize_term
24669 return 0;
24671 _ACEOF
24672 rm -f conftest.$ac_objext
24673 if { (ac_try="$ac_compile"
24674 case "(($ac_try" in
24675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24676 *) ac_try_echo=$ac_try;;
24677 esac
24678 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24679 (eval "$ac_compile") 2>conftest.er1
24680 ac_status=$?
24681 grep -v '^ *+' conftest.er1 >conftest.err
24682 rm -f conftest.er1
24683 cat conftest.err >&5
24684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24685 (exit $ac_status); } && {
24686 test -z "$ac_c_werror_flag" ||
24687 test ! -s conftest.err
24688 } && test -s conftest.$ac_objext; then
24690 cat >>confdefs.h <<\_ACEOF
24691 #define HAVE_CURSES_RESIZE_TERM 1
24692 _ACEOF
24694 { echo "$as_me:$LINENO: result: yes" >&5
24695 echo "${ECHO_T}yes" >&6; }
24696 else
24697 echo "$as_me: failed program was:" >&5
24698 sed 's/^/| /' conftest.$ac_ext >&5
24700 { echo "$as_me:$LINENO: result: no" >&5
24701 echo "${ECHO_T}no" >&6; }
24705 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24707 { echo "$as_me:$LINENO: checking for resizeterm" >&5
24708 echo $ECHO_N "checking for resizeterm... $ECHO_C" >&6; }
24709 cat >conftest.$ac_ext <<_ACEOF
24710 /* confdefs.h. */
24711 _ACEOF
24712 cat confdefs.h >>conftest.$ac_ext
24713 cat >>conftest.$ac_ext <<_ACEOF
24714 /* end confdefs.h. */
24715 #include <curses.h>
24717 main ()
24719 void *x=resizeterm
24721 return 0;
24723 _ACEOF
24724 rm -f conftest.$ac_objext
24725 if { (ac_try="$ac_compile"
24726 case "(($ac_try" in
24727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24728 *) ac_try_echo=$ac_try;;
24729 esac
24730 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24731 (eval "$ac_compile") 2>conftest.er1
24732 ac_status=$?
24733 grep -v '^ *+' conftest.er1 >conftest.err
24734 rm -f conftest.er1
24735 cat conftest.err >&5
24736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24737 (exit $ac_status); } && {
24738 test -z "$ac_c_werror_flag" ||
24739 test ! -s conftest.err
24740 } && test -s conftest.$ac_objext; then
24742 cat >>confdefs.h <<\_ACEOF
24743 #define HAVE_CURSES_RESIZETERM 1
24744 _ACEOF
24746 { echo "$as_me:$LINENO: result: yes" >&5
24747 echo "${ECHO_T}yes" >&6; }
24748 else
24749 echo "$as_me: failed program was:" >&5
24750 sed 's/^/| /' conftest.$ac_ext >&5
24752 { echo "$as_me:$LINENO: result: no" >&5
24753 echo "${ECHO_T}no" >&6; }
24757 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24759 { echo "$as_me:$LINENO: checking for /dev/ptmx" >&5
24760 echo $ECHO_N "checking for /dev/ptmx... $ECHO_C" >&6; }
24762 if test -r /dev/ptmx
24763 then
24764 { echo "$as_me:$LINENO: result: yes" >&5
24765 echo "${ECHO_T}yes" >&6; }
24767 cat >>confdefs.h <<\_ACEOF
24768 #define HAVE_DEV_PTMX 1
24769 _ACEOF
24771 else
24772 { echo "$as_me:$LINENO: result: no" >&5
24773 echo "${ECHO_T}no" >&6; }
24776 { echo "$as_me:$LINENO: checking for /dev/ptc" >&5
24777 echo $ECHO_N "checking for /dev/ptc... $ECHO_C" >&6; }
24779 if test -r /dev/ptc
24780 then
24781 { echo "$as_me:$LINENO: result: yes" >&5
24782 echo "${ECHO_T}yes" >&6; }
24784 cat >>confdefs.h <<\_ACEOF
24785 #define HAVE_DEV_PTC 1
24786 _ACEOF
24788 else
24789 { echo "$as_me:$LINENO: result: no" >&5
24790 echo "${ECHO_T}no" >&6; }
24793 { echo "$as_me:$LINENO: checking for %zd printf() format support" >&5
24794 echo $ECHO_N "checking for %zd printf() format support... $ECHO_C" >&6; }
24795 if test "$cross_compiling" = yes; then
24796 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
24797 See \`config.log' for more details." >&5
24798 echo "$as_me: error: cannot run test program while cross compiling
24799 See \`config.log' for more details." >&2;}
24800 { (exit 1); exit 1; }; }
24801 else
24802 cat >conftest.$ac_ext <<_ACEOF
24803 /* confdefs.h. */
24804 _ACEOF
24805 cat confdefs.h >>conftest.$ac_ext
24806 cat >>conftest.$ac_ext <<_ACEOF
24807 /* end confdefs.h. */
24808 #include <stdio.h>
24809 #include <stddef.h>
24810 #include <string.h>
24812 #ifdef HAVE_SYS_TYPES_H
24813 #include <sys/types.h>
24814 #endif
24816 #ifdef HAVE_SSIZE_T
24817 typedef ssize_t Py_ssize_t;
24818 #elif SIZEOF_VOID_P == SIZEOF_LONG
24819 typedef long Py_ssize_t;
24820 #else
24821 typedef int Py_ssize_t;
24822 #endif
24824 int main()
24826 char buffer[256];
24828 if(sprintf(buffer, "%zd", (size_t)123) < 0)
24829 return 1;
24831 if (strcmp(buffer, "123"))
24832 return 1;
24834 if (sprintf(buffer, "%zd", (Py_ssize_t)-123) < 0)
24835 return 1;
24837 if (strcmp(buffer, "-123"))
24838 return 1;
24840 return 0;
24842 _ACEOF
24843 rm -f conftest$ac_exeext
24844 if { (ac_try="$ac_link"
24845 case "(($ac_try" in
24846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24847 *) ac_try_echo=$ac_try;;
24848 esac
24849 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24850 (eval "$ac_link") 2>&5
24851 ac_status=$?
24852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24853 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24854 { (case "(($ac_try" in
24855 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24856 *) ac_try_echo=$ac_try;;
24857 esac
24858 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24859 (eval "$ac_try") 2>&5
24860 ac_status=$?
24861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24862 (exit $ac_status); }; }; then
24863 { echo "$as_me:$LINENO: result: yes" >&5
24864 echo "${ECHO_T}yes" >&6; }
24866 cat >>confdefs.h <<\_ACEOF
24867 #define PY_FORMAT_SIZE_T "z"
24868 _ACEOF
24870 else
24871 echo "$as_me: program exited with status $ac_status" >&5
24872 echo "$as_me: failed program was:" >&5
24873 sed 's/^/| /' conftest.$ac_ext >&5
24875 ( exit $ac_status )
24876 { echo "$as_me:$LINENO: result: no" >&5
24877 echo "${ECHO_T}no" >&6; }
24879 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24884 { echo "$as_me:$LINENO: checking for socklen_t" >&5
24885 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; }
24886 if test "${ac_cv_type_socklen_t+set}" = set; then
24887 echo $ECHO_N "(cached) $ECHO_C" >&6
24888 else
24889 cat >conftest.$ac_ext <<_ACEOF
24890 /* confdefs.h. */
24891 _ACEOF
24892 cat confdefs.h >>conftest.$ac_ext
24893 cat >>conftest.$ac_ext <<_ACEOF
24894 /* end confdefs.h. */
24896 #ifdef HAVE_SYS_TYPES_H
24897 #include <sys/types.h>
24898 #endif
24899 #ifdef HAVE_SYS_SOCKET_H
24900 #include <sys/socket.h>
24901 #endif
24904 typedef socklen_t ac__type_new_;
24906 main ()
24908 if ((ac__type_new_ *) 0)
24909 return 0;
24910 if (sizeof (ac__type_new_))
24911 return 0;
24913 return 0;
24915 _ACEOF
24916 rm -f conftest.$ac_objext
24917 if { (ac_try="$ac_compile"
24918 case "(($ac_try" in
24919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24920 *) ac_try_echo=$ac_try;;
24921 esac
24922 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24923 (eval "$ac_compile") 2>conftest.er1
24924 ac_status=$?
24925 grep -v '^ *+' conftest.er1 >conftest.err
24926 rm -f conftest.er1
24927 cat conftest.err >&5
24928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24929 (exit $ac_status); } && {
24930 test -z "$ac_c_werror_flag" ||
24931 test ! -s conftest.err
24932 } && test -s conftest.$ac_objext; then
24933 ac_cv_type_socklen_t=yes
24934 else
24935 echo "$as_me: failed program was:" >&5
24936 sed 's/^/| /' conftest.$ac_ext >&5
24938 ac_cv_type_socklen_t=no
24941 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24943 { echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
24944 echo "${ECHO_T}$ac_cv_type_socklen_t" >&6; }
24945 if test $ac_cv_type_socklen_t = yes; then
24947 else
24949 cat >>confdefs.h <<\_ACEOF
24950 #define socklen_t int
24951 _ACEOF
24956 { echo "$as_me:$LINENO: checking for broken mbstowcs" >&5
24957 echo $ECHO_N "checking for broken mbstowcs... $ECHO_C" >&6; }
24958 if test "$cross_compiling" = yes; then
24959 ac_cv_broken_mbstowcs=no
24960 else
24961 cat >conftest.$ac_ext <<_ACEOF
24962 /* confdefs.h. */
24963 _ACEOF
24964 cat confdefs.h >>conftest.$ac_ext
24965 cat >>conftest.$ac_ext <<_ACEOF
24966 /* end confdefs.h. */
24968 #include<stdlib.h>
24969 int main() {
24970 size_t len = -1;
24971 const char *str = "text";
24972 len = mbstowcs(NULL, str, 0);
24973 return (len != 4);
24976 _ACEOF
24977 rm -f conftest$ac_exeext
24978 if { (ac_try="$ac_link"
24979 case "(($ac_try" in
24980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24981 *) ac_try_echo=$ac_try;;
24982 esac
24983 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24984 (eval "$ac_link") 2>&5
24985 ac_status=$?
24986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24987 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24988 { (case "(($ac_try" in
24989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24990 *) ac_try_echo=$ac_try;;
24991 esac
24992 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24993 (eval "$ac_try") 2>&5
24994 ac_status=$?
24995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24996 (exit $ac_status); }; }; then
24997 ac_cv_broken_mbstowcs=no
24998 else
24999 echo "$as_me: program exited with status $ac_status" >&5
25000 echo "$as_me: failed program was:" >&5
25001 sed 's/^/| /' conftest.$ac_ext >&5
25003 ( exit $ac_status )
25004 ac_cv_broken_mbstowcs=yes
25006 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25010 { echo "$as_me:$LINENO: result: $ac_cv_broken_mbstowcs" >&5
25011 echo "${ECHO_T}$ac_cv_broken_mbstowcs" >&6; }
25012 if test "$ac_cv_broken_mbstowcs" = yes
25013 then
25015 cat >>confdefs.h <<\_ACEOF
25016 #define HAVE_BROKEN_MBSTOWCS 1
25017 _ACEOF
25021 # Check for --with-computed-gotos
25022 { echo "$as_me:$LINENO: checking for --with-computed-gotos" >&5
25023 echo $ECHO_N "checking for --with-computed-gotos... $ECHO_C" >&6; }
25025 # Check whether --with-computed-gotos was given.
25026 if test "${with_computed_gotos+set}" = set; then
25027 withval=$with_computed_gotos;
25028 if test "$withval" != no
25029 then
25031 cat >>confdefs.h <<\_ACEOF
25032 #define USE_COMPUTED_GOTOS 1
25033 _ACEOF
25035 { echo "$as_me:$LINENO: result: yes" >&5
25036 echo "${ECHO_T}yes" >&6; }
25037 else { echo "$as_me:$LINENO: result: no" >&5
25038 echo "${ECHO_T}no" >&6; }
25040 else
25041 { echo "$as_me:$LINENO: result: no" >&5
25042 echo "${ECHO_T}no" >&6; }
25049 for h in `(cd $srcdir;echo Python/thread_*.h)`
25051 THREADHEADERS="$THREADHEADERS \$(srcdir)/$h"
25052 done
25055 SRCDIRS="Parser Grammar Objects Python Modules Mac"
25056 { echo "$as_me:$LINENO: checking for build directories" >&5
25057 echo $ECHO_N "checking for build directories... $ECHO_C" >&6; }
25058 for dir in $SRCDIRS; do
25059 if test ! -d $dir; then
25060 mkdir $dir
25062 done
25063 { echo "$as_me:$LINENO: result: done" >&5
25064 echo "${ECHO_T}done" >&6; }
25066 # generate output files
25067 ac_config_files="$ac_config_files Makefile.pre Modules/Setup.config"
25069 cat >confcache <<\_ACEOF
25070 # This file is a shell script that caches the results of configure
25071 # tests run on this system so they can be shared between configure
25072 # scripts and configure runs, see configure's option --config-cache.
25073 # It is not useful on other systems. If it contains results you don't
25074 # want to keep, you may remove or edit it.
25076 # config.status only pays attention to the cache file if you give it
25077 # the --recheck option to rerun configure.
25079 # `ac_cv_env_foo' variables (set or unset) will be overridden when
25080 # loading this file, other *unset* `ac_cv_foo' will be assigned the
25081 # following values.
25083 _ACEOF
25085 # The following way of writing the cache mishandles newlines in values,
25086 # but we know of no workaround that is simple, portable, and efficient.
25087 # So, we kill variables containing newlines.
25088 # Ultrix sh set writes to stderr and can't be redirected directly,
25089 # and sets the high bit in the cache file unless we assign to the vars.
25091 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
25092 eval ac_val=\$$ac_var
25093 case $ac_val in #(
25094 *${as_nl}*)
25095 case $ac_var in #(
25096 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
25097 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
25098 esac
25099 case $ac_var in #(
25100 _ | IFS | as_nl) ;; #(
25101 *) $as_unset $ac_var ;;
25102 esac ;;
25103 esac
25104 done
25106 (set) 2>&1 |
25107 case $as_nl`(ac_space=' '; set) 2>&1` in #(
25108 *${as_nl}ac_space=\ *)
25109 # `set' does not quote correctly, so add quotes (double-quote
25110 # substitution turns \\\\ into \\, and sed turns \\ into \).
25111 sed -n \
25112 "s/'/'\\\\''/g;
25113 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
25114 ;; #(
25116 # `set' quotes correctly as required by POSIX, so do not add quotes.
25117 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
25119 esac |
25120 sort
25122 sed '
25123 /^ac_cv_env_/b end
25124 t clear
25125 :clear
25126 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
25127 t end
25128 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
25129 :end' >>confcache
25130 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
25131 if test -w "$cache_file"; then
25132 test "x$cache_file" != "x/dev/null" &&
25133 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
25134 echo "$as_me: updating cache $cache_file" >&6;}
25135 cat confcache >$cache_file
25136 else
25137 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
25138 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
25141 rm -f confcache
25143 test "x$prefix" = xNONE && prefix=$ac_default_prefix
25144 # Let make expand exec_prefix.
25145 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
25147 DEFS=-DHAVE_CONFIG_H
25149 ac_libobjs=
25150 ac_ltlibobjs=
25151 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
25152 # 1. Remove the extension, and $U if already installed.
25153 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
25154 ac_i=`echo "$ac_i" | sed "$ac_script"`
25155 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
25156 # will be set to the directory where LIBOBJS objects are built.
25157 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
25158 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
25159 done
25160 LIBOBJS=$ac_libobjs
25162 LTLIBOBJS=$ac_ltlibobjs
25166 : ${CONFIG_STATUS=./config.status}
25167 ac_clean_files_save=$ac_clean_files
25168 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
25169 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
25170 echo "$as_me: creating $CONFIG_STATUS" >&6;}
25171 cat >$CONFIG_STATUS <<_ACEOF
25172 #! $SHELL
25173 # Generated by $as_me.
25174 # Run this file to recreate the current configuration.
25175 # Compiler output produced by configure, useful for debugging
25176 # configure, is in config.log if it exists.
25178 debug=false
25179 ac_cs_recheck=false
25180 ac_cs_silent=false
25181 SHELL=\${CONFIG_SHELL-$SHELL}
25182 _ACEOF
25184 cat >>$CONFIG_STATUS <<\_ACEOF
25185 ## --------------------- ##
25186 ## M4sh Initialization. ##
25187 ## --------------------- ##
25189 # Be more Bourne compatible
25190 DUALCASE=1; export DUALCASE # for MKS sh
25191 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
25192 emulate sh
25193 NULLCMD=:
25194 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
25195 # is contrary to our usage. Disable this feature.
25196 alias -g '${1+"$@"}'='"$@"'
25197 setopt NO_GLOB_SUBST
25198 else
25199 case `(set -o) 2>/dev/null` in
25200 *posix*) set -o posix ;;
25201 esac
25208 # PATH needs CR
25209 # Avoid depending upon Character Ranges.
25210 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
25211 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
25212 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
25213 as_cr_digits='0123456789'
25214 as_cr_alnum=$as_cr_Letters$as_cr_digits
25216 # The user is always right.
25217 if test "${PATH_SEPARATOR+set}" != set; then
25218 echo "#! /bin/sh" >conf$$.sh
25219 echo "exit 0" >>conf$$.sh
25220 chmod +x conf$$.sh
25221 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
25222 PATH_SEPARATOR=';'
25223 else
25224 PATH_SEPARATOR=:
25226 rm -f conf$$.sh
25229 # Support unset when possible.
25230 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
25231 as_unset=unset
25232 else
25233 as_unset=false
25237 # IFS
25238 # We need space, tab and new line, in precisely that order. Quoting is
25239 # there to prevent editors from complaining about space-tab.
25240 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
25241 # splitting by setting IFS to empty value.)
25242 as_nl='
25244 IFS=" "" $as_nl"
25246 # Find who we are. Look in the path if we contain no directory separator.
25247 case $0 in
25248 *[\\/]* ) as_myself=$0 ;;
25249 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25250 for as_dir in $PATH
25252 IFS=$as_save_IFS
25253 test -z "$as_dir" && as_dir=.
25254 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
25255 done
25256 IFS=$as_save_IFS
25259 esac
25260 # We did not find ourselves, most probably we were run as `sh COMMAND'
25261 # in which case we are not to be found in the path.
25262 if test "x$as_myself" = x; then
25263 as_myself=$0
25265 if test ! -f "$as_myself"; then
25266 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
25267 { (exit 1); exit 1; }
25270 # Work around bugs in pre-3.0 UWIN ksh.
25271 for as_var in ENV MAIL MAILPATH
25272 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
25273 done
25274 PS1='$ '
25275 PS2='> '
25276 PS4='+ '
25278 # NLS nuisances.
25279 for as_var in \
25280 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
25281 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
25282 LC_TELEPHONE LC_TIME
25284 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
25285 eval $as_var=C; export $as_var
25286 else
25287 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
25289 done
25291 # Required to use basename.
25292 if expr a : '\(a\)' >/dev/null 2>&1 &&
25293 test "X`expr 00001 : '.*\(...\)'`" = X001; then
25294 as_expr=expr
25295 else
25296 as_expr=false
25299 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
25300 as_basename=basename
25301 else
25302 as_basename=false
25306 # Name of the executable.
25307 as_me=`$as_basename -- "$0" ||
25308 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
25309 X"$0" : 'X\(//\)$' \| \
25310 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
25311 echo X/"$0" |
25312 sed '/^.*\/\([^/][^/]*\)\/*$/{
25313 s//\1/
25316 /^X\/\(\/\/\)$/{
25317 s//\1/
25320 /^X\/\(\/\).*/{
25321 s//\1/
25324 s/.*/./; q'`
25326 # CDPATH.
25327 $as_unset CDPATH
25331 as_lineno_1=$LINENO
25332 as_lineno_2=$LINENO
25333 test "x$as_lineno_1" != "x$as_lineno_2" &&
25334 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
25336 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
25337 # uniformly replaced by the line number. The first 'sed' inserts a
25338 # line-number line after each line using $LINENO; the second 'sed'
25339 # does the real work. The second script uses 'N' to pair each
25340 # line-number line with the line containing $LINENO, and appends
25341 # trailing '-' during substitution so that $LINENO is not a special
25342 # case at line end.
25343 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
25344 # scripts with optimization help from Paolo Bonzini. Blame Lee
25345 # E. McMahon (1931-1989) for sed's syntax. :-)
25346 sed -n '
25348 /[$]LINENO/=
25349 ' <$as_myself |
25350 sed '
25351 s/[$]LINENO.*/&-/
25352 t lineno
25354 :lineno
25356 :loop
25357 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
25358 t loop
25359 s/-\n.*//
25360 ' >$as_me.lineno &&
25361 chmod +x "$as_me.lineno" ||
25362 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
25363 { (exit 1); exit 1; }; }
25365 # Don't try to exec as it changes $[0], causing all sort of problems
25366 # (the dirname of $[0] is not the place where we might find the
25367 # original and so on. Autoconf is especially sensitive to this).
25368 . "./$as_me.lineno"
25369 # Exit status is that of the last command.
25370 exit
25374 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
25375 as_dirname=dirname
25376 else
25377 as_dirname=false
25380 ECHO_C= ECHO_N= ECHO_T=
25381 case `echo -n x` in
25382 -n*)
25383 case `echo 'x\c'` in
25384 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
25385 *) ECHO_C='\c';;
25386 esac;;
25388 ECHO_N='-n';;
25389 esac
25391 if expr a : '\(a\)' >/dev/null 2>&1 &&
25392 test "X`expr 00001 : '.*\(...\)'`" = X001; then
25393 as_expr=expr
25394 else
25395 as_expr=false
25398 rm -f conf$$ conf$$.exe conf$$.file
25399 if test -d conf$$.dir; then
25400 rm -f conf$$.dir/conf$$.file
25401 else
25402 rm -f conf$$.dir
25403 mkdir conf$$.dir
25405 echo >conf$$.file
25406 if ln -s conf$$.file conf$$ 2>/dev/null; then
25407 as_ln_s='ln -s'
25408 # ... but there are two gotchas:
25409 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
25410 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
25411 # In both cases, we have to default to `cp -p'.
25412 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
25413 as_ln_s='cp -p'
25414 elif ln conf$$.file conf$$ 2>/dev/null; then
25415 as_ln_s=ln
25416 else
25417 as_ln_s='cp -p'
25419 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
25420 rmdir conf$$.dir 2>/dev/null
25422 if mkdir -p . 2>/dev/null; then
25423 as_mkdir_p=:
25424 else
25425 test -d ./-p && rmdir ./-p
25426 as_mkdir_p=false
25429 if test -x / >/dev/null 2>&1; then
25430 as_test_x='test -x'
25431 else
25432 if ls -dL / >/dev/null 2>&1; then
25433 as_ls_L_option=L
25434 else
25435 as_ls_L_option=
25437 as_test_x='
25438 eval sh -c '\''
25439 if test -d "$1"; then
25440 test -d "$1/.";
25441 else
25442 case $1 in
25443 -*)set "./$1";;
25444 esac;
25445 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
25446 ???[sx]*):;;*)false;;esac;fi
25447 '\'' sh
25450 as_executable_p=$as_test_x
25452 # Sed expression to map a string onto a valid CPP name.
25453 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
25455 # Sed expression to map a string onto a valid variable name.
25456 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
25459 exec 6>&1
25461 # Save the log message, to keep $[0] and so on meaningful, and to
25462 # report actual input values of CONFIG_FILES etc. instead of their
25463 # values after options handling.
25464 ac_log="
25465 This file was extended by python $as_me 3.1, which was
25466 generated by GNU Autoconf 2.61. Invocation command line was
25468 CONFIG_FILES = $CONFIG_FILES
25469 CONFIG_HEADERS = $CONFIG_HEADERS
25470 CONFIG_LINKS = $CONFIG_LINKS
25471 CONFIG_COMMANDS = $CONFIG_COMMANDS
25472 $ $0 $@
25474 on `(hostname || uname -n) 2>/dev/null | sed 1q`
25477 _ACEOF
25479 cat >>$CONFIG_STATUS <<_ACEOF
25480 # Files that config.status was made for.
25481 config_files="$ac_config_files"
25482 config_headers="$ac_config_headers"
25484 _ACEOF
25486 cat >>$CONFIG_STATUS <<\_ACEOF
25487 ac_cs_usage="\
25488 \`$as_me' instantiates files from templates according to the
25489 current configuration.
25491 Usage: $0 [OPTIONS] [FILE]...
25493 -h, --help print this help, then exit
25494 -V, --version print version number and configuration settings, then exit
25495 -q, --quiet do not print progress messages
25496 -d, --debug don't remove temporary files
25497 --recheck update $as_me by reconfiguring in the same conditions
25498 --file=FILE[:TEMPLATE]
25499 instantiate the configuration file FILE
25500 --header=FILE[:TEMPLATE]
25501 instantiate the configuration header FILE
25503 Configuration files:
25504 $config_files
25506 Configuration headers:
25507 $config_headers
25509 Report bugs to <bug-autoconf@gnu.org>."
25511 _ACEOF
25512 cat >>$CONFIG_STATUS <<_ACEOF
25513 ac_cs_version="\\
25514 python config.status 3.1
25515 configured by $0, generated by GNU Autoconf 2.61,
25516 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
25518 Copyright (C) 2006 Free Software Foundation, Inc.
25519 This config.status script is free software; the Free Software Foundation
25520 gives unlimited permission to copy, distribute and modify it."
25522 ac_pwd='$ac_pwd'
25523 srcdir='$srcdir'
25524 INSTALL='$INSTALL'
25525 _ACEOF
25527 cat >>$CONFIG_STATUS <<\_ACEOF
25528 # If no file are specified by the user, then we need to provide default
25529 # value. By we need to know if files were specified by the user.
25530 ac_need_defaults=:
25531 while test $# != 0
25533 case $1 in
25534 --*=*)
25535 ac_option=`expr "X$1" : 'X\([^=]*\)='`
25536 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
25537 ac_shift=:
25540 ac_option=$1
25541 ac_optarg=$2
25542 ac_shift=shift
25544 esac
25546 case $ac_option in
25547 # Handling of the options.
25548 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
25549 ac_cs_recheck=: ;;
25550 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
25551 echo "$ac_cs_version"; exit ;;
25552 --debug | --debu | --deb | --de | --d | -d )
25553 debug=: ;;
25554 --file | --fil | --fi | --f )
25555 $ac_shift
25556 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
25557 ac_need_defaults=false;;
25558 --header | --heade | --head | --hea )
25559 $ac_shift
25560 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
25561 ac_need_defaults=false;;
25562 --he | --h)
25563 # Conflict between --help and --header
25564 { echo "$as_me: error: ambiguous option: $1
25565 Try \`$0 --help' for more information." >&2
25566 { (exit 1); exit 1; }; };;
25567 --help | --hel | -h )
25568 echo "$ac_cs_usage"; exit ;;
25569 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
25570 | -silent | --silent | --silen | --sile | --sil | --si | --s)
25571 ac_cs_silent=: ;;
25573 # This is an error.
25574 -*) { echo "$as_me: error: unrecognized option: $1
25575 Try \`$0 --help' for more information." >&2
25576 { (exit 1); exit 1; }; } ;;
25578 *) ac_config_targets="$ac_config_targets $1"
25579 ac_need_defaults=false ;;
25581 esac
25582 shift
25583 done
25585 ac_configure_extra_args=
25587 if $ac_cs_silent; then
25588 exec 6>/dev/null
25589 ac_configure_extra_args="$ac_configure_extra_args --silent"
25592 _ACEOF
25593 cat >>$CONFIG_STATUS <<_ACEOF
25594 if \$ac_cs_recheck; then
25595 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
25596 CONFIG_SHELL=$SHELL
25597 export CONFIG_SHELL
25598 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
25601 _ACEOF
25602 cat >>$CONFIG_STATUS <<\_ACEOF
25603 exec 5>>config.log
25605 echo
25606 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
25607 ## Running $as_me. ##
25608 _ASBOX
25609 echo "$ac_log"
25610 } >&5
25612 _ACEOF
25613 cat >>$CONFIG_STATUS <<_ACEOF
25614 _ACEOF
25616 cat >>$CONFIG_STATUS <<\_ACEOF
25618 # Handling of arguments.
25619 for ac_config_target in $ac_config_targets
25621 case $ac_config_target in
25622 "pyconfig.h") CONFIG_HEADERS="$CONFIG_HEADERS pyconfig.h" ;;
25623 "Mac/Makefile") CONFIG_FILES="$CONFIG_FILES Mac/Makefile" ;;
25624 "Mac/PythonLauncher/Makefile") CONFIG_FILES="$CONFIG_FILES Mac/PythonLauncher/Makefile" ;;
25625 "Mac/Resources/framework/Info.plist") CONFIG_FILES="$CONFIG_FILES Mac/Resources/framework/Info.plist" ;;
25626 "Mac/Resources/app/Info.plist") CONFIG_FILES="$CONFIG_FILES Mac/Resources/app/Info.plist" ;;
25627 "Makefile.pre") CONFIG_FILES="$CONFIG_FILES Makefile.pre" ;;
25628 "Modules/Setup.config") CONFIG_FILES="$CONFIG_FILES Modules/Setup.config" ;;
25630 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
25631 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
25632 { (exit 1); exit 1; }; };;
25633 esac
25634 done
25637 # If the user did not use the arguments to specify the items to instantiate,
25638 # then the envvar interface is used. Set only those that are not.
25639 # We use the long form for the default assignment because of an extremely
25640 # bizarre bug on SunOS 4.1.3.
25641 if $ac_need_defaults; then
25642 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
25643 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
25646 # Have a temporary directory for convenience. Make it in the build tree
25647 # simply because there is no reason against having it here, and in addition,
25648 # creating and moving files from /tmp can sometimes cause problems.
25649 # Hook for its removal unless debugging.
25650 # Note that there is a small window in which the directory will not be cleaned:
25651 # after its creation but before its name has been assigned to `$tmp'.
25652 $debug ||
25654 tmp=
25655 trap 'exit_status=$?
25656 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
25658 trap '{ (exit 1); exit 1; }' 1 2 13 15
25660 # Create a (secure) tmp directory for tmp files.
25663 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
25664 test -n "$tmp" && test -d "$tmp"
25665 } ||
25667 tmp=./conf$$-$RANDOM
25668 (umask 077 && mkdir "$tmp")
25669 } ||
25671 echo "$me: cannot create a temporary directory in ." >&2
25672 { (exit 1); exit 1; }
25676 # Set up the sed scripts for CONFIG_FILES section.
25679 # No need to generate the scripts if there are no CONFIG_FILES.
25680 # This happens for instance when ./config.status config.h
25681 if test -n "$CONFIG_FILES"; then
25683 _ACEOF
25687 ac_delim='%!_!# '
25688 for ac_last_try in false false false false false :; do
25689 cat >conf$$subs.sed <<_ACEOF
25690 SHELL!$SHELL$ac_delim
25691 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
25692 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
25693 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
25694 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
25695 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
25696 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
25697 exec_prefix!$exec_prefix$ac_delim
25698 prefix!$prefix$ac_delim
25699 program_transform_name!$program_transform_name$ac_delim
25700 bindir!$bindir$ac_delim
25701 sbindir!$sbindir$ac_delim
25702 libexecdir!$libexecdir$ac_delim
25703 datarootdir!$datarootdir$ac_delim
25704 datadir!$datadir$ac_delim
25705 sysconfdir!$sysconfdir$ac_delim
25706 sharedstatedir!$sharedstatedir$ac_delim
25707 localstatedir!$localstatedir$ac_delim
25708 includedir!$includedir$ac_delim
25709 oldincludedir!$oldincludedir$ac_delim
25710 docdir!$docdir$ac_delim
25711 infodir!$infodir$ac_delim
25712 htmldir!$htmldir$ac_delim
25713 dvidir!$dvidir$ac_delim
25714 pdfdir!$pdfdir$ac_delim
25715 psdir!$psdir$ac_delim
25716 libdir!$libdir$ac_delim
25717 localedir!$localedir$ac_delim
25718 mandir!$mandir$ac_delim
25719 DEFS!$DEFS$ac_delim
25720 ECHO_C!$ECHO_C$ac_delim
25721 ECHO_N!$ECHO_N$ac_delim
25722 ECHO_T!$ECHO_T$ac_delim
25723 LIBS!$LIBS$ac_delim
25724 build_alias!$build_alias$ac_delim
25725 host_alias!$host_alias$ac_delim
25726 target_alias!$target_alias$ac_delim
25727 VERSION!$VERSION$ac_delim
25728 SOVERSION!$SOVERSION$ac_delim
25729 CONFIG_ARGS!$CONFIG_ARGS$ac_delim
25730 UNIVERSALSDK!$UNIVERSALSDK$ac_delim
25731 ARCH_RUN_32BIT!$ARCH_RUN_32BIT$ac_delim
25732 PYTHONFRAMEWORK!$PYTHONFRAMEWORK$ac_delim
25733 PYTHONFRAMEWORKIDENTIFIER!$PYTHONFRAMEWORKIDENTIFIER$ac_delim
25734 PYTHONFRAMEWORKDIR!$PYTHONFRAMEWORKDIR$ac_delim
25735 PYTHONFRAMEWORKPREFIX!$PYTHONFRAMEWORKPREFIX$ac_delim
25736 PYTHONFRAMEWORKINSTALLDIR!$PYTHONFRAMEWORKINSTALLDIR$ac_delim
25737 FRAMEWORKINSTALLFIRST!$FRAMEWORKINSTALLFIRST$ac_delim
25738 FRAMEWORKINSTALLLAST!$FRAMEWORKINSTALLLAST$ac_delim
25739 FRAMEWORKALTINSTALLFIRST!$FRAMEWORKALTINSTALLFIRST$ac_delim
25740 FRAMEWORKALTINSTALLLAST!$FRAMEWORKALTINSTALLLAST$ac_delim
25741 FRAMEWORKUNIXTOOLSPREFIX!$FRAMEWORKUNIXTOOLSPREFIX$ac_delim
25742 MACHDEP!$MACHDEP$ac_delim
25743 SGI_ABI!$SGI_ABI$ac_delim
25744 CONFIGURE_MACOSX_DEPLOYMENT_TARGET!$CONFIGURE_MACOSX_DEPLOYMENT_TARGET$ac_delim
25745 EXPORT_MACOSX_DEPLOYMENT_TARGET!$EXPORT_MACOSX_DEPLOYMENT_TARGET$ac_delim
25746 CC!$CC$ac_delim
25747 CFLAGS!$CFLAGS$ac_delim
25748 LDFLAGS!$LDFLAGS$ac_delim
25749 CPPFLAGS!$CPPFLAGS$ac_delim
25750 ac_ct_CC!$ac_ct_CC$ac_delim
25751 EXEEXT!$EXEEXT$ac_delim
25752 OBJEXT!$OBJEXT$ac_delim
25753 CXX!$CXX$ac_delim
25754 MAINCC!$MAINCC$ac_delim
25755 CPP!$CPP$ac_delim
25756 GREP!$GREP$ac_delim
25757 EGREP!$EGREP$ac_delim
25758 BUILDEXEEXT!$BUILDEXEEXT$ac_delim
25759 LIBRARY!$LIBRARY$ac_delim
25760 LDLIBRARY!$LDLIBRARY$ac_delim
25761 DLLLIBRARY!$DLLLIBRARY$ac_delim
25762 BLDLIBRARY!$BLDLIBRARY$ac_delim
25763 LDLIBRARYDIR!$LDLIBRARYDIR$ac_delim
25764 INSTSONAME!$INSTSONAME$ac_delim
25765 RUNSHARED!$RUNSHARED$ac_delim
25766 LINKCC!$LINKCC$ac_delim
25767 RANLIB!$RANLIB$ac_delim
25768 AR!$AR$ac_delim
25769 SVNVERSION!$SVNVERSION$ac_delim
25770 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
25771 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
25772 INSTALL_DATA!$INSTALL_DATA$ac_delim
25773 LN!$LN$ac_delim
25774 OPT!$OPT$ac_delim
25775 BASECFLAGS!$BASECFLAGS$ac_delim
25776 UNIVERSAL_ARCH_FLAGS!$UNIVERSAL_ARCH_FLAGS$ac_delim
25777 OTHER_LIBTOOL_OPT!$OTHER_LIBTOOL_OPT$ac_delim
25778 LIBTOOL_CRUFT!$LIBTOOL_CRUFT$ac_delim
25779 SO!$SO$ac_delim
25780 LDSHARED!$LDSHARED$ac_delim
25781 BLDSHARED!$BLDSHARED$ac_delim
25782 CCSHARED!$CCSHARED$ac_delim
25783 LINKFORSHARED!$LINKFORSHARED$ac_delim
25784 CFLAGSFORSHARED!$CFLAGSFORSHARED$ac_delim
25785 SHLIBS!$SHLIBS$ac_delim
25786 USE_SIGNAL_MODULE!$USE_SIGNAL_MODULE$ac_delim
25787 _ACEOF
25789 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
25790 break
25791 elif $ac_last_try; then
25792 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
25793 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
25794 { (exit 1); exit 1; }; }
25795 else
25796 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
25798 done
25800 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
25801 if test -n "$ac_eof"; then
25802 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
25803 ac_eof=`expr $ac_eof + 1`
25806 cat >>$CONFIG_STATUS <<_ACEOF
25807 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
25808 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
25809 _ACEOF
25810 sed '
25811 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
25812 s/^/s,@/; s/!/@,|#_!!_#|/
25815 s/'"$ac_delim"'$/,g/; t
25816 s/$/\\/; p
25817 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
25818 ' >>$CONFIG_STATUS <conf$$subs.sed
25819 rm -f conf$$subs.sed
25820 cat >>$CONFIG_STATUS <<_ACEOF
25821 CEOF$ac_eof
25822 _ACEOF
25825 ac_delim='%!_!# '
25826 for ac_last_try in false false false false false :; do
25827 cat >conf$$subs.sed <<_ACEOF
25828 SIGNAL_OBJS!$SIGNAL_OBJS$ac_delim
25829 USE_THREAD_MODULE!$USE_THREAD_MODULE$ac_delim
25830 LDLAST!$LDLAST$ac_delim
25831 THREADOBJ!$THREADOBJ$ac_delim
25832 DLINCLDIR!$DLINCLDIR$ac_delim
25833 DYNLOADFILE!$DYNLOADFILE$ac_delim
25834 MACHDEP_OBJS!$MACHDEP_OBJS$ac_delim
25835 TRUE!$TRUE$ac_delim
25836 LIBOBJS!$LIBOBJS$ac_delim
25837 HAVE_GETHOSTBYNAME_R_6_ARG!$HAVE_GETHOSTBYNAME_R_6_ARG$ac_delim
25838 HAVE_GETHOSTBYNAME_R_5_ARG!$HAVE_GETHOSTBYNAME_R_5_ARG$ac_delim
25839 HAVE_GETHOSTBYNAME_R_3_ARG!$HAVE_GETHOSTBYNAME_R_3_ARG$ac_delim
25840 HAVE_GETHOSTBYNAME_R!$HAVE_GETHOSTBYNAME_R$ac_delim
25841 HAVE_GETHOSTBYNAME!$HAVE_GETHOSTBYNAME$ac_delim
25842 LIBM!$LIBM$ac_delim
25843 LIBC!$LIBC$ac_delim
25844 THREADHEADERS!$THREADHEADERS$ac_delim
25845 SRCDIRS!$SRCDIRS$ac_delim
25846 LTLIBOBJS!$LTLIBOBJS$ac_delim
25847 _ACEOF
25849 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 19; then
25850 break
25851 elif $ac_last_try; then
25852 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
25853 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
25854 { (exit 1); exit 1; }; }
25855 else
25856 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
25858 done
25860 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
25861 if test -n "$ac_eof"; then
25862 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
25863 ac_eof=`expr $ac_eof + 1`
25866 cat >>$CONFIG_STATUS <<_ACEOF
25867 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
25868 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
25869 _ACEOF
25870 sed '
25871 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
25872 s/^/s,@/; s/!/@,|#_!!_#|/
25875 s/'"$ac_delim"'$/,g/; t
25876 s/$/\\/; p
25877 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
25878 ' >>$CONFIG_STATUS <conf$$subs.sed
25879 rm -f conf$$subs.sed
25880 cat >>$CONFIG_STATUS <<_ACEOF
25881 :end
25882 s/|#_!!_#|//g
25883 CEOF$ac_eof
25884 _ACEOF
25887 # VPATH may cause trouble with some makes, so we remove $(srcdir),
25888 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
25889 # trailing colons and then remove the whole line if VPATH becomes empty
25890 # (actually we leave an empty line to preserve line numbers).
25891 if test "x$srcdir" = x.; then
25892 ac_vpsub='/^[ ]*VPATH[ ]*=/{
25893 s/:*\$(srcdir):*/:/
25894 s/:*\${srcdir}:*/:/
25895 s/:*@srcdir@:*/:/
25896 s/^\([^=]*=[ ]*\):*/\1/
25897 s/:*$//
25898 s/^[^=]*=[ ]*$//
25902 cat >>$CONFIG_STATUS <<\_ACEOF
25903 fi # test -n "$CONFIG_FILES"
25906 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS
25908 case $ac_tag in
25909 :[FHLC]) ac_mode=$ac_tag; continue;;
25910 esac
25911 case $ac_mode$ac_tag in
25912 :[FHL]*:*);;
25913 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
25914 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
25915 { (exit 1); exit 1; }; };;
25916 :[FH]-) ac_tag=-:-;;
25917 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
25918 esac
25919 ac_save_IFS=$IFS
25920 IFS=:
25921 set x $ac_tag
25922 IFS=$ac_save_IFS
25923 shift
25924 ac_file=$1
25925 shift
25927 case $ac_mode in
25928 :L) ac_source=$1;;
25929 :[FH])
25930 ac_file_inputs=
25931 for ac_f
25933 case $ac_f in
25934 -) ac_f="$tmp/stdin";;
25935 *) # Look for the file first in the build tree, then in the source tree
25936 # (if the path is not absolute). The absolute path cannot be DOS-style,
25937 # because $ac_f cannot contain `:'.
25938 test -f "$ac_f" ||
25939 case $ac_f in
25940 [\\/$]*) false;;
25941 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
25942 esac ||
25943 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
25944 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
25945 { (exit 1); exit 1; }; };;
25946 esac
25947 ac_file_inputs="$ac_file_inputs $ac_f"
25948 done
25950 # Let's still pretend it is `configure' which instantiates (i.e., don't
25951 # use $as_me), people would be surprised to read:
25952 # /* config.h. Generated by config.status. */
25953 configure_input="Generated from "`IFS=:
25954 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
25955 if test x"$ac_file" != x-; then
25956 configure_input="$ac_file. $configure_input"
25957 { echo "$as_me:$LINENO: creating $ac_file" >&5
25958 echo "$as_me: creating $ac_file" >&6;}
25961 case $ac_tag in
25962 *:-:* | *:-) cat >"$tmp/stdin";;
25963 esac
25965 esac
25967 ac_dir=`$as_dirname -- "$ac_file" ||
25968 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25969 X"$ac_file" : 'X\(//\)[^/]' \| \
25970 X"$ac_file" : 'X\(//\)$' \| \
25971 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
25972 echo X"$ac_file" |
25973 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25974 s//\1/
25977 /^X\(\/\/\)[^/].*/{
25978 s//\1/
25981 /^X\(\/\/\)$/{
25982 s//\1/
25985 /^X\(\/\).*/{
25986 s//\1/
25989 s/.*/./; q'`
25990 { as_dir="$ac_dir"
25991 case $as_dir in #(
25992 -*) as_dir=./$as_dir;;
25993 esac
25994 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
25995 as_dirs=
25996 while :; do
25997 case $as_dir in #(
25998 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
25999 *) as_qdir=$as_dir;;
26000 esac
26001 as_dirs="'$as_qdir' $as_dirs"
26002 as_dir=`$as_dirname -- "$as_dir" ||
26003 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26004 X"$as_dir" : 'X\(//\)[^/]' \| \
26005 X"$as_dir" : 'X\(//\)$' \| \
26006 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
26007 echo X"$as_dir" |
26008 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26009 s//\1/
26012 /^X\(\/\/\)[^/].*/{
26013 s//\1/
26016 /^X\(\/\/\)$/{
26017 s//\1/
26020 /^X\(\/\).*/{
26021 s//\1/
26024 s/.*/./; q'`
26025 test -d "$as_dir" && break
26026 done
26027 test -z "$as_dirs" || eval "mkdir $as_dirs"
26028 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
26029 echo "$as_me: error: cannot create directory $as_dir" >&2;}
26030 { (exit 1); exit 1; }; }; }
26031 ac_builddir=.
26033 case "$ac_dir" in
26034 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
26036 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
26037 # A ".." for each directory in $ac_dir_suffix.
26038 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
26039 case $ac_top_builddir_sub in
26040 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
26041 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
26042 esac ;;
26043 esac
26044 ac_abs_top_builddir=$ac_pwd
26045 ac_abs_builddir=$ac_pwd$ac_dir_suffix
26046 # for backward compatibility:
26047 ac_top_builddir=$ac_top_build_prefix
26049 case $srcdir in
26050 .) # We are building in place.
26051 ac_srcdir=.
26052 ac_top_srcdir=$ac_top_builddir_sub
26053 ac_abs_top_srcdir=$ac_pwd ;;
26054 [\\/]* | ?:[\\/]* ) # Absolute name.
26055 ac_srcdir=$srcdir$ac_dir_suffix;
26056 ac_top_srcdir=$srcdir
26057 ac_abs_top_srcdir=$srcdir ;;
26058 *) # Relative name.
26059 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
26060 ac_top_srcdir=$ac_top_build_prefix$srcdir
26061 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
26062 esac
26063 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
26066 case $ac_mode in
26069 # CONFIG_FILE
26072 case $INSTALL in
26073 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
26074 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
26075 esac
26076 _ACEOF
26078 cat >>$CONFIG_STATUS <<\_ACEOF
26079 # If the template does not know about datarootdir, expand it.
26080 # FIXME: This hack should be removed a few years after 2.60.
26081 ac_datarootdir_hack=; ac_datarootdir_seen=
26083 case `sed -n '/datarootdir/ {
26087 /@datadir@/p
26088 /@docdir@/p
26089 /@infodir@/p
26090 /@localedir@/p
26091 /@mandir@/p
26092 ' $ac_file_inputs` in
26093 *datarootdir*) ac_datarootdir_seen=yes;;
26094 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
26095 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
26096 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
26097 _ACEOF
26098 cat >>$CONFIG_STATUS <<_ACEOF
26099 ac_datarootdir_hack='
26100 s&@datadir@&$datadir&g
26101 s&@docdir@&$docdir&g
26102 s&@infodir@&$infodir&g
26103 s&@localedir@&$localedir&g
26104 s&@mandir@&$mandir&g
26105 s&\\\${datarootdir}&$datarootdir&g' ;;
26106 esac
26107 _ACEOF
26109 # Neutralize VPATH when `$srcdir' = `.'.
26110 # Shell code in configure.ac might set extrasub.
26111 # FIXME: do we really want to maintain this feature?
26112 cat >>$CONFIG_STATUS <<_ACEOF
26113 sed "$ac_vpsub
26114 $extrasub
26115 _ACEOF
26116 cat >>$CONFIG_STATUS <<\_ACEOF
26118 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
26119 s&@configure_input@&$configure_input&;t t
26120 s&@top_builddir@&$ac_top_builddir_sub&;t t
26121 s&@srcdir@&$ac_srcdir&;t t
26122 s&@abs_srcdir@&$ac_abs_srcdir&;t t
26123 s&@top_srcdir@&$ac_top_srcdir&;t t
26124 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
26125 s&@builddir@&$ac_builddir&;t t
26126 s&@abs_builddir@&$ac_abs_builddir&;t t
26127 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
26128 s&@INSTALL@&$ac_INSTALL&;t t
26129 $ac_datarootdir_hack
26130 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
26132 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
26133 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
26134 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
26135 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
26136 which seems to be undefined. Please make sure it is defined." >&5
26137 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
26138 which seems to be undefined. Please make sure it is defined." >&2;}
26140 rm -f "$tmp/stdin"
26141 case $ac_file in
26142 -) cat "$tmp/out"; rm -f "$tmp/out";;
26143 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
26144 esac
26148 # CONFIG_HEADER
26150 _ACEOF
26152 # Transform confdefs.h into a sed script `conftest.defines', that
26153 # substitutes the proper values into config.h.in to produce config.h.
26154 rm -f conftest.defines conftest.tail
26155 # First, append a space to every undef/define line, to ease matching.
26156 echo 's/$/ /' >conftest.defines
26157 # Then, protect against being on the right side of a sed subst, or in
26158 # an unquoted here document, in config.status. If some macros were
26159 # called several times there might be several #defines for the same
26160 # symbol, which is useless. But do not sort them, since the last
26161 # AC_DEFINE must be honored.
26162 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
26163 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
26164 # NAME is the cpp macro being defined, VALUE is the value it is being given.
26165 # PARAMS is the parameter list in the macro definition--in most cases, it's
26166 # just an empty string.
26167 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
26168 ac_dB='\\)[ (].*,\\1define\\2'
26169 ac_dC=' '
26170 ac_dD=' ,'
26172 uniq confdefs.h |
26173 sed -n '
26174 t rset
26175 :rset
26176 s/^[ ]*#[ ]*define[ ][ ]*//
26177 t ok
26180 s/[\\&,]/\\&/g
26181 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
26182 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
26183 ' >>conftest.defines
26185 # Remove the space that was appended to ease matching.
26186 # Then replace #undef with comments. This is necessary, for
26187 # example, in the case of _POSIX_SOURCE, which is predefined and required
26188 # on some systems where configure will not decide to define it.
26189 # (The regexp can be short, since the line contains either #define or #undef.)
26190 echo 's/ $//
26191 s,^[ #]*u.*,/* & */,' >>conftest.defines
26193 # Break up conftest.defines:
26194 ac_max_sed_lines=50
26196 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
26197 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
26198 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
26199 # et cetera.
26200 ac_in='$ac_file_inputs'
26201 ac_out='"$tmp/out1"'
26202 ac_nxt='"$tmp/out2"'
26204 while :
26206 # Write a here document:
26207 cat >>$CONFIG_STATUS <<_ACEOF
26208 # First, check the format of the line:
26209 cat >"\$tmp/defines.sed" <<\\CEOF
26210 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
26211 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
26213 :def
26214 _ACEOF
26215 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
26216 echo 'CEOF
26217 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
26218 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
26219 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
26220 grep . conftest.tail >/dev/null || break
26221 rm -f conftest.defines
26222 mv conftest.tail conftest.defines
26223 done
26224 rm -f conftest.defines conftest.tail
26226 echo "ac_result=$ac_in" >>$CONFIG_STATUS
26227 cat >>$CONFIG_STATUS <<\_ACEOF
26228 if test x"$ac_file" != x-; then
26229 echo "/* $configure_input */" >"$tmp/config.h"
26230 cat "$ac_result" >>"$tmp/config.h"
26231 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
26232 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
26233 echo "$as_me: $ac_file is unchanged" >&6;}
26234 else
26235 rm -f $ac_file
26236 mv "$tmp/config.h" $ac_file
26238 else
26239 echo "/* $configure_input */"
26240 cat "$ac_result"
26242 rm -f "$tmp/out12"
26246 esac
26248 done # for ac_tag
26251 { (exit 0); exit 0; }
26252 _ACEOF
26253 chmod +x $CONFIG_STATUS
26254 ac_clean_files=$ac_clean_files_save
26257 # configure is writing to config.log, and then calls config.status.
26258 # config.status does its own redirection, appending to config.log.
26259 # Unfortunately, on DOS this fails, as config.log is still kept open
26260 # by configure, so config.status won't be able to write to it; its
26261 # output is simply discarded. So we exec the FD to /dev/null,
26262 # effectively closing config.log, so it can be properly (re)opened and
26263 # appended to by config.status. When coming back to configure, we
26264 # need to make the FD available again.
26265 if test "$no_create" != yes; then
26266 ac_cs_success=:
26267 ac_config_status_args=
26268 test "$silent" = yes &&
26269 ac_config_status_args="$ac_config_status_args --quiet"
26270 exec 5>/dev/null
26271 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
26272 exec 5>>config.log
26273 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
26274 # would make configure fail if this is the last instruction.
26275 $ac_cs_success || { (exit 1); exit 1; }
26279 echo "creating Modules/Setup"
26280 if test ! -f Modules/Setup
26281 then
26282 cp $srcdir/Modules/Setup.dist Modules/Setup
26285 echo "creating Modules/Setup.local"
26286 if test ! -f Modules/Setup.local
26287 then
26288 echo "# Edit this file for local setup changes" >Modules/Setup.local
26291 echo "creating Makefile"
26292 $SHELL $srcdir/Modules/makesetup -c $srcdir/Modules/config.c.in \
26293 -s Modules Modules/Setup.config \
26294 Modules/Setup.local Modules/Setup
26295 mv config.c Modules