Adds a Thread.getIdent() method to provide the _get_ident() value for
[python.git] / configure
blobf6010ef047688a61c8cf0bf0fd2efd113664146e
1 #! /bin/sh
2 # From configure.in Revision: 63545 .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.61 for python 2.6.
6 # Report bugs to <http://www.python.org/python-bugs>.
8 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
10 # This configure script is free software; the Free Software Foundation
11 # gives unlimited permission to copy, distribute and modify it.
12 ## --------------------- ##
13 ## M4sh Initialization. ##
14 ## --------------------- ##
16 # Be more Bourne compatible
17 DUALCASE=1; export DUALCASE # for MKS sh
18 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
19 emulate sh
20 NULLCMD=:
21 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22 # is contrary to our usage. Disable this feature.
23 alias -g '${1+"$@"}'='"$@"'
24 setopt NO_GLOB_SUBST
25 else
26 case `(set -o) 2>/dev/null` in
27 *posix*) set -o posix ;;
28 esac
35 # PATH needs CR
36 # Avoid depending upon Character Ranges.
37 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
38 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
39 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
40 as_cr_digits='0123456789'
41 as_cr_alnum=$as_cr_Letters$as_cr_digits
43 # The user is always right.
44 if test "${PATH_SEPARATOR+set}" != set; then
45 echo "#! /bin/sh" >conf$$.sh
46 echo "exit 0" >>conf$$.sh
47 chmod +x conf$$.sh
48 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
49 PATH_SEPARATOR=';'
50 else
51 PATH_SEPARATOR=:
53 rm -f conf$$.sh
56 # Support unset when possible.
57 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
58 as_unset=unset
59 else
60 as_unset=false
64 # IFS
65 # We need space, tab and new line, in precisely that order. Quoting is
66 # there to prevent editors from complaining about space-tab.
67 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
68 # splitting by setting IFS to empty value.)
69 as_nl='
71 IFS=" "" $as_nl"
73 # Find who we are. Look in the path if we contain no directory separator.
74 case $0 in
75 *[\\/]* ) as_myself=$0 ;;
76 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
77 for as_dir in $PATH
79 IFS=$as_save_IFS
80 test -z "$as_dir" && as_dir=.
81 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
82 done
83 IFS=$as_save_IFS
86 esac
87 # We did not find ourselves, most probably we were run as `sh COMMAND'
88 # in which case we are not to be found in the path.
89 if test "x$as_myself" = x; then
90 as_myself=$0
92 if test ! -f "$as_myself"; then
93 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
94 { (exit 1); exit 1; }
97 # Work around bugs in pre-3.0 UWIN ksh.
98 for as_var in ENV MAIL MAILPATH
99 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
100 done
101 PS1='$ '
102 PS2='> '
103 PS4='+ '
105 # NLS nuisances.
106 for as_var in \
107 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
108 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
109 LC_TELEPHONE LC_TIME
111 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
112 eval $as_var=C; export $as_var
113 else
114 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
116 done
118 # Required to use basename.
119 if expr a : '\(a\)' >/dev/null 2>&1 &&
120 test "X`expr 00001 : '.*\(...\)'`" = X001; then
121 as_expr=expr
122 else
123 as_expr=false
126 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
127 as_basename=basename
128 else
129 as_basename=false
133 # Name of the executable.
134 as_me=`$as_basename -- "$0" ||
135 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
136 X"$0" : 'X\(//\)$' \| \
137 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
138 echo X/"$0" |
139 sed '/^.*\/\([^/][^/]*\)\/*$/{
140 s//\1/
143 /^X\/\(\/\/\)$/{
144 s//\1/
147 /^X\/\(\/\).*/{
148 s//\1/
151 s/.*/./; q'`
153 # CDPATH.
154 $as_unset CDPATH
157 if test "x$CONFIG_SHELL" = x; then
158 if (eval ":") 2>/dev/null; then
159 as_have_required=yes
160 else
161 as_have_required=no
164 if test $as_have_required = yes && (eval ":
165 (as_func_return () {
166 (exit \$1)
168 as_func_success () {
169 as_func_return 0
171 as_func_failure () {
172 as_func_return 1
174 as_func_ret_success () {
175 return 0
177 as_func_ret_failure () {
178 return 1
181 exitcode=0
182 if as_func_success; then
184 else
185 exitcode=1
186 echo as_func_success failed.
189 if as_func_failure; then
190 exitcode=1
191 echo as_func_failure succeeded.
194 if as_func_ret_success; then
196 else
197 exitcode=1
198 echo as_func_ret_success failed.
201 if as_func_ret_failure; then
202 exitcode=1
203 echo as_func_ret_failure succeeded.
206 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
208 else
209 exitcode=1
210 echo positional parameters were not saved.
213 test \$exitcode = 0) || { (exit 1); exit 1; }
216 as_lineno_1=\$LINENO
217 as_lineno_2=\$LINENO
218 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
219 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
220 ") 2> /dev/null; then
222 else
223 as_candidate_shells=
224 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
225 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
227 IFS=$as_save_IFS
228 test -z "$as_dir" && as_dir=.
229 case $as_dir in
231 for as_base in sh bash ksh sh5; do
232 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
233 done;;
234 esac
235 done
236 IFS=$as_save_IFS
239 for as_shell in $as_candidate_shells $SHELL; do
240 # Try only shells that exist, to save several forks.
241 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
242 { ("$as_shell") 2> /dev/null <<\_ASEOF
243 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
244 emulate sh
245 NULLCMD=:
246 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
247 # is contrary to our usage. Disable this feature.
248 alias -g '${1+"$@"}'='"$@"'
249 setopt NO_GLOB_SUBST
250 else
251 case `(set -o) 2>/dev/null` in
252 *posix*) set -o posix ;;
253 esac
259 _ASEOF
260 }; then
261 CONFIG_SHELL=$as_shell
262 as_have_required=yes
263 if { "$as_shell" 2> /dev/null <<\_ASEOF
264 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
265 emulate sh
266 NULLCMD=:
267 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
268 # is contrary to our usage. Disable this feature.
269 alias -g '${1+"$@"}'='"$@"'
270 setopt NO_GLOB_SUBST
271 else
272 case `(set -o) 2>/dev/null` in
273 *posix*) set -o posix ;;
274 esac
280 (as_func_return () {
281 (exit $1)
283 as_func_success () {
284 as_func_return 0
286 as_func_failure () {
287 as_func_return 1
289 as_func_ret_success () {
290 return 0
292 as_func_ret_failure () {
293 return 1
296 exitcode=0
297 if as_func_success; then
299 else
300 exitcode=1
301 echo as_func_success failed.
304 if as_func_failure; then
305 exitcode=1
306 echo as_func_failure succeeded.
309 if as_func_ret_success; then
311 else
312 exitcode=1
313 echo as_func_ret_success failed.
316 if as_func_ret_failure; then
317 exitcode=1
318 echo as_func_ret_failure succeeded.
321 if ( set x; as_func_ret_success y && test x = "$1" ); then
323 else
324 exitcode=1
325 echo positional parameters were not saved.
328 test $exitcode = 0) || { (exit 1); exit 1; }
331 as_lineno_1=$LINENO
332 as_lineno_2=$LINENO
333 test "x$as_lineno_1" != "x$as_lineno_2" &&
334 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
336 _ASEOF
337 }; then
338 break
343 done
345 if test "x$CONFIG_SHELL" != x; then
346 for as_var in BASH_ENV ENV
347 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
348 done
349 export CONFIG_SHELL
350 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
354 if test $as_have_required = no; then
355 echo This script requires a shell more modern than all the
356 echo shells that I found on your system. Please install a
357 echo modern shell, or manually run the script under such a
358 echo shell if you do have one.
359 { (exit 1); exit 1; }
369 (eval "as_func_return () {
370 (exit \$1)
372 as_func_success () {
373 as_func_return 0
375 as_func_failure () {
376 as_func_return 1
378 as_func_ret_success () {
379 return 0
381 as_func_ret_failure () {
382 return 1
385 exitcode=0
386 if as_func_success; then
388 else
389 exitcode=1
390 echo as_func_success failed.
393 if as_func_failure; then
394 exitcode=1
395 echo as_func_failure succeeded.
398 if as_func_ret_success; then
400 else
401 exitcode=1
402 echo as_func_ret_success failed.
405 if as_func_ret_failure; then
406 exitcode=1
407 echo as_func_ret_failure succeeded.
410 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
412 else
413 exitcode=1
414 echo positional parameters were not saved.
417 test \$exitcode = 0") || {
418 echo No shell found that supports shell functions.
419 echo Please tell autoconf@gnu.org about your system,
420 echo including any error possibly output before this
421 echo message
426 as_lineno_1=$LINENO
427 as_lineno_2=$LINENO
428 test "x$as_lineno_1" != "x$as_lineno_2" &&
429 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
431 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
432 # uniformly replaced by the line number. The first 'sed' inserts a
433 # line-number line after each line using $LINENO; the second 'sed'
434 # does the real work. The second script uses 'N' to pair each
435 # line-number line with the line containing $LINENO, and appends
436 # trailing '-' during substitution so that $LINENO is not a special
437 # case at line end.
438 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
439 # scripts with optimization help from Paolo Bonzini. Blame Lee
440 # E. McMahon (1931-1989) for sed's syntax. :-)
441 sed -n '
443 /[$]LINENO/=
444 ' <$as_myself |
445 sed '
446 s/[$]LINENO.*/&-/
447 t lineno
449 :lineno
451 :loop
452 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
453 t loop
454 s/-\n.*//
455 ' >$as_me.lineno &&
456 chmod +x "$as_me.lineno" ||
457 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
458 { (exit 1); exit 1; }; }
460 # Don't try to exec as it changes $[0], causing all sort of problems
461 # (the dirname of $[0] is not the place where we might find the
462 # original and so on. Autoconf is especially sensitive to this).
463 . "./$as_me.lineno"
464 # Exit status is that of the last command.
465 exit
469 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
470 as_dirname=dirname
471 else
472 as_dirname=false
475 ECHO_C= ECHO_N= ECHO_T=
476 case `echo -n x` in
477 -n*)
478 case `echo 'x\c'` in
479 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
480 *) ECHO_C='\c';;
481 esac;;
483 ECHO_N='-n';;
484 esac
486 if expr a : '\(a\)' >/dev/null 2>&1 &&
487 test "X`expr 00001 : '.*\(...\)'`" = X001; then
488 as_expr=expr
489 else
490 as_expr=false
493 rm -f conf$$ conf$$.exe conf$$.file
494 if test -d conf$$.dir; then
495 rm -f conf$$.dir/conf$$.file
496 else
497 rm -f conf$$.dir
498 mkdir conf$$.dir
500 echo >conf$$.file
501 if ln -s conf$$.file conf$$ 2>/dev/null; then
502 as_ln_s='ln -s'
503 # ... but there are two gotchas:
504 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
505 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
506 # In both cases, we have to default to `cp -p'.
507 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
508 as_ln_s='cp -p'
509 elif ln conf$$.file conf$$ 2>/dev/null; then
510 as_ln_s=ln
511 else
512 as_ln_s='cp -p'
514 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
515 rmdir conf$$.dir 2>/dev/null
517 if mkdir -p . 2>/dev/null; then
518 as_mkdir_p=:
519 else
520 test -d ./-p && rmdir ./-p
521 as_mkdir_p=false
524 if test -x / >/dev/null 2>&1; then
525 as_test_x='test -x'
526 else
527 if ls -dL / >/dev/null 2>&1; then
528 as_ls_L_option=L
529 else
530 as_ls_L_option=
532 as_test_x='
533 eval sh -c '\''
534 if test -d "$1"; then
535 test -d "$1/.";
536 else
537 case $1 in
538 -*)set "./$1";;
539 esac;
540 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
541 ???[sx]*):;;*)false;;esac;fi
542 '\'' sh
545 as_executable_p=$as_test_x
547 # Sed expression to map a string onto a valid CPP name.
548 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
550 # Sed expression to map a string onto a valid variable name.
551 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
555 exec 7<&0 </dev/null 6>&1
557 # Name of the host.
558 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
559 # so uname gets run too.
560 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
563 # Initializations.
565 ac_default_prefix=/usr/local
566 ac_clean_files=
567 ac_config_libobj_dir=.
568 LIBOBJS=
569 cross_compiling=no
570 subdirs=
571 MFLAGS=
572 MAKEFLAGS=
573 SHELL=${CONFIG_SHELL-/bin/sh}
575 # Identity of this package.
576 PACKAGE_NAME='python'
577 PACKAGE_TARNAME='python'
578 PACKAGE_VERSION='2.6'
579 PACKAGE_STRING='python 2.6'
580 PACKAGE_BUGREPORT='http://www.python.org/python-bugs'
582 ac_unique_file="Include/object.h"
583 # Factoring default headers for most tests.
584 ac_includes_default="\
585 #include <stdio.h>
586 #ifdef HAVE_SYS_TYPES_H
587 # include <sys/types.h>
588 #endif
589 #ifdef HAVE_SYS_STAT_H
590 # include <sys/stat.h>
591 #endif
592 #ifdef STDC_HEADERS
593 # include <stdlib.h>
594 # include <stddef.h>
595 #else
596 # ifdef HAVE_STDLIB_H
597 # include <stdlib.h>
598 # endif
599 #endif
600 #ifdef HAVE_STRING_H
601 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
602 # include <memory.h>
603 # endif
604 # include <string.h>
605 #endif
606 #ifdef HAVE_STRINGS_H
607 # include <strings.h>
608 #endif
609 #ifdef HAVE_INTTYPES_H
610 # include <inttypes.h>
611 #endif
612 #ifdef HAVE_STDINT_H
613 # include <stdint.h>
614 #endif
615 #ifdef HAVE_UNISTD_H
616 # include <unistd.h>
617 #endif"
619 ac_subst_vars='SHELL
620 PATH_SEPARATOR
621 PACKAGE_NAME
622 PACKAGE_TARNAME
623 PACKAGE_VERSION
624 PACKAGE_STRING
625 PACKAGE_BUGREPORT
626 exec_prefix
627 prefix
628 program_transform_name
629 bindir
630 sbindir
631 libexecdir
632 datarootdir
633 datadir
634 sysconfdir
635 sharedstatedir
636 localstatedir
637 includedir
638 oldincludedir
639 docdir
640 infodir
641 htmldir
642 dvidir
643 pdfdir
644 psdir
645 libdir
646 localedir
647 mandir
648 DEFS
649 ECHO_C
650 ECHO_N
651 ECHO_T
652 LIBS
653 build_alias
654 host_alias
655 target_alias
656 VERSION
657 SOVERSION
658 CONFIG_ARGS
659 UNIVERSALSDK
660 PYTHONFRAMEWORK
661 PYTHONFRAMEWORKIDENTIFIER
662 PYTHONFRAMEWORKDIR
663 PYTHONFRAMEWORKPREFIX
664 PYTHONFRAMEWORKINSTALLDIR
665 FRAMEWORKINSTALLFIRST
666 FRAMEWORKINSTALLLAST
667 FRAMEWORKALTINSTALLFIRST
668 FRAMEWORKALTINSTALLLAST
669 FRAMEWORKUNIXTOOLSPREFIX
670 MACHDEP
671 SGI_ABI
672 EXTRAPLATDIR
673 EXTRAMACHDEPPATH
674 CONFIGURE_MACOSX_DEPLOYMENT_TARGET
675 EXPORT_MACOSX_DEPLOYMENT_TARGET
677 CFLAGS
678 LDFLAGS
679 CPPFLAGS
680 ac_ct_CC
681 EXEEXT
682 OBJEXT
684 MAINCC
686 GREP
687 EGREP
688 BUILDEXEEXT
689 LIBRARY
690 LDLIBRARY
691 DLLLIBRARY
692 BLDLIBRARY
693 LDLIBRARYDIR
694 INSTSONAME
695 RUNSHARED
696 LINKCC
697 RANLIB
699 SVNVERSION
700 INSTALL_PROGRAM
701 INSTALL_SCRIPT
702 INSTALL_DATA
705 BASECFLAGS
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 UNICODE_OBJS
733 THREADHEADERS
734 SRCDIRS
735 LTLIBOBJS'
736 ac_subst_files=''
737 ac_precious_vars='build_alias
738 host_alias
739 target_alias
741 CFLAGS
742 LDFLAGS
743 LIBS
744 CPPFLAGS
745 CPP'
748 # Initialize some variables set by options.
749 ac_init_help=
750 ac_init_version=false
751 # The variables have the same names as the options, with
752 # dashes changed to underlines.
753 cache_file=/dev/null
754 exec_prefix=NONE
755 no_create=
756 no_recursion=
757 prefix=NONE
758 program_prefix=NONE
759 program_suffix=NONE
760 program_transform_name=s,x,x,
761 silent=
762 site=
763 srcdir=
764 verbose=
765 x_includes=NONE
766 x_libraries=NONE
768 # Installation directory options.
769 # These are left unexpanded so users can "make install exec_prefix=/foo"
770 # and all the variables that are supposed to be based on exec_prefix
771 # by default will actually change.
772 # Use braces instead of parens because sh, perl, etc. also accept them.
773 # (The list follows the same order as the GNU Coding Standards.)
774 bindir='${exec_prefix}/bin'
775 sbindir='${exec_prefix}/sbin'
776 libexecdir='${exec_prefix}/libexec'
777 datarootdir='${prefix}/share'
778 datadir='${datarootdir}'
779 sysconfdir='${prefix}/etc'
780 sharedstatedir='${prefix}/com'
781 localstatedir='${prefix}/var'
782 includedir='${prefix}/include'
783 oldincludedir='/usr/include'
784 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
785 infodir='${datarootdir}/info'
786 htmldir='${docdir}'
787 dvidir='${docdir}'
788 pdfdir='${docdir}'
789 psdir='${docdir}'
790 libdir='${exec_prefix}/lib'
791 localedir='${datarootdir}/locale'
792 mandir='${datarootdir}/man'
794 ac_prev=
795 ac_dashdash=
796 for ac_option
798 # If the previous option needs an argument, assign it.
799 if test -n "$ac_prev"; then
800 eval $ac_prev=\$ac_option
801 ac_prev=
802 continue
805 case $ac_option in
806 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
807 *) ac_optarg=yes ;;
808 esac
810 # Accept the important Cygnus configure options, so we can diagnose typos.
812 case $ac_dashdash$ac_option in
814 ac_dashdash=yes ;;
816 -bindir | --bindir | --bindi | --bind | --bin | --bi)
817 ac_prev=bindir ;;
818 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
819 bindir=$ac_optarg ;;
821 -build | --build | --buil | --bui | --bu)
822 ac_prev=build_alias ;;
823 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
824 build_alias=$ac_optarg ;;
826 -cache-file | --cache-file | --cache-fil | --cache-fi \
827 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
828 ac_prev=cache_file ;;
829 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
830 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
831 cache_file=$ac_optarg ;;
833 --config-cache | -C)
834 cache_file=config.cache ;;
836 -datadir | --datadir | --datadi | --datad)
837 ac_prev=datadir ;;
838 -datadir=* | --datadir=* | --datadi=* | --datad=*)
839 datadir=$ac_optarg ;;
841 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
842 | --dataroo | --dataro | --datar)
843 ac_prev=datarootdir ;;
844 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
845 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
846 datarootdir=$ac_optarg ;;
848 -disable-* | --disable-*)
849 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
850 # Reject names that are not valid shell variable names.
851 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
852 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
853 { (exit 1); exit 1; }; }
854 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
855 eval enable_$ac_feature=no ;;
857 -docdir | --docdir | --docdi | --doc | --do)
858 ac_prev=docdir ;;
859 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
860 docdir=$ac_optarg ;;
862 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
863 ac_prev=dvidir ;;
864 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
865 dvidir=$ac_optarg ;;
867 -enable-* | --enable-*)
868 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
869 # Reject names that are not valid shell variable names.
870 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
871 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
872 { (exit 1); exit 1; }; }
873 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
874 eval enable_$ac_feature=\$ac_optarg ;;
876 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
877 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
878 | --exec | --exe | --ex)
879 ac_prev=exec_prefix ;;
880 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
881 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
882 | --exec=* | --exe=* | --ex=*)
883 exec_prefix=$ac_optarg ;;
885 -gas | --gas | --ga | --g)
886 # Obsolete; use --with-gas.
887 with_gas=yes ;;
889 -help | --help | --hel | --he | -h)
890 ac_init_help=long ;;
891 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
892 ac_init_help=recursive ;;
893 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
894 ac_init_help=short ;;
896 -host | --host | --hos | --ho)
897 ac_prev=host_alias ;;
898 -host=* | --host=* | --hos=* | --ho=*)
899 host_alias=$ac_optarg ;;
901 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
902 ac_prev=htmldir ;;
903 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
904 | --ht=*)
905 htmldir=$ac_optarg ;;
907 -includedir | --includedir | --includedi | --included | --include \
908 | --includ | --inclu | --incl | --inc)
909 ac_prev=includedir ;;
910 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
911 | --includ=* | --inclu=* | --incl=* | --inc=*)
912 includedir=$ac_optarg ;;
914 -infodir | --infodir | --infodi | --infod | --info | --inf)
915 ac_prev=infodir ;;
916 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
917 infodir=$ac_optarg ;;
919 -libdir | --libdir | --libdi | --libd)
920 ac_prev=libdir ;;
921 -libdir=* | --libdir=* | --libdi=* | --libd=*)
922 libdir=$ac_optarg ;;
924 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
925 | --libexe | --libex | --libe)
926 ac_prev=libexecdir ;;
927 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
928 | --libexe=* | --libex=* | --libe=*)
929 libexecdir=$ac_optarg ;;
931 -localedir | --localedir | --localedi | --localed | --locale)
932 ac_prev=localedir ;;
933 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
934 localedir=$ac_optarg ;;
936 -localstatedir | --localstatedir | --localstatedi | --localstated \
937 | --localstate | --localstat | --localsta | --localst | --locals)
938 ac_prev=localstatedir ;;
939 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
940 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
941 localstatedir=$ac_optarg ;;
943 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
944 ac_prev=mandir ;;
945 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
946 mandir=$ac_optarg ;;
948 -nfp | --nfp | --nf)
949 # Obsolete; use --without-fp.
950 with_fp=no ;;
952 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
953 | --no-cr | --no-c | -n)
954 no_create=yes ;;
956 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
957 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
958 no_recursion=yes ;;
960 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
961 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
962 | --oldin | --oldi | --old | --ol | --o)
963 ac_prev=oldincludedir ;;
964 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
965 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
966 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
967 oldincludedir=$ac_optarg ;;
969 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
970 ac_prev=prefix ;;
971 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
972 prefix=$ac_optarg ;;
974 -program-prefix | --program-prefix | --program-prefi | --program-pref \
975 | --program-pre | --program-pr | --program-p)
976 ac_prev=program_prefix ;;
977 -program-prefix=* | --program-prefix=* | --program-prefi=* \
978 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
979 program_prefix=$ac_optarg ;;
981 -program-suffix | --program-suffix | --program-suffi | --program-suff \
982 | --program-suf | --program-su | --program-s)
983 ac_prev=program_suffix ;;
984 -program-suffix=* | --program-suffix=* | --program-suffi=* \
985 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
986 program_suffix=$ac_optarg ;;
988 -program-transform-name | --program-transform-name \
989 | --program-transform-nam | --program-transform-na \
990 | --program-transform-n | --program-transform- \
991 | --program-transform | --program-transfor \
992 | --program-transfo | --program-transf \
993 | --program-trans | --program-tran \
994 | --progr-tra | --program-tr | --program-t)
995 ac_prev=program_transform_name ;;
996 -program-transform-name=* | --program-transform-name=* \
997 | --program-transform-nam=* | --program-transform-na=* \
998 | --program-transform-n=* | --program-transform-=* \
999 | --program-transform=* | --program-transfor=* \
1000 | --program-transfo=* | --program-transf=* \
1001 | --program-trans=* | --program-tran=* \
1002 | --progr-tra=* | --program-tr=* | --program-t=*)
1003 program_transform_name=$ac_optarg ;;
1005 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1006 ac_prev=pdfdir ;;
1007 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1008 pdfdir=$ac_optarg ;;
1010 -psdir | --psdir | --psdi | --psd | --ps)
1011 ac_prev=psdir ;;
1012 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1013 psdir=$ac_optarg ;;
1015 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1016 | -silent | --silent | --silen | --sile | --sil)
1017 silent=yes ;;
1019 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1020 ac_prev=sbindir ;;
1021 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1022 | --sbi=* | --sb=*)
1023 sbindir=$ac_optarg ;;
1025 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1026 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1027 | --sharedst | --shareds | --shared | --share | --shar \
1028 | --sha | --sh)
1029 ac_prev=sharedstatedir ;;
1030 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1031 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1032 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1033 | --sha=* | --sh=*)
1034 sharedstatedir=$ac_optarg ;;
1036 -site | --site | --sit)
1037 ac_prev=site ;;
1038 -site=* | --site=* | --sit=*)
1039 site=$ac_optarg ;;
1041 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1042 ac_prev=srcdir ;;
1043 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1044 srcdir=$ac_optarg ;;
1046 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1047 | --syscon | --sysco | --sysc | --sys | --sy)
1048 ac_prev=sysconfdir ;;
1049 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1050 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1051 sysconfdir=$ac_optarg ;;
1053 -target | --target | --targe | --targ | --tar | --ta | --t)
1054 ac_prev=target_alias ;;
1055 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1056 target_alias=$ac_optarg ;;
1058 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1059 verbose=yes ;;
1061 -version | --version | --versio | --versi | --vers | -V)
1062 ac_init_version=: ;;
1064 -with-* | --with-*)
1065 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1066 # Reject names that are not valid shell variable names.
1067 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1068 { echo "$as_me: error: invalid package name: $ac_package" >&2
1069 { (exit 1); exit 1; }; }
1070 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1071 eval with_$ac_package=\$ac_optarg ;;
1073 -without-* | --without-*)
1074 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1075 # Reject names that are not valid shell variable names.
1076 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1077 { echo "$as_me: error: invalid package name: $ac_package" >&2
1078 { (exit 1); exit 1; }; }
1079 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1080 eval with_$ac_package=no ;;
1082 --x)
1083 # Obsolete; use --with-x.
1084 with_x=yes ;;
1086 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1087 | --x-incl | --x-inc | --x-in | --x-i)
1088 ac_prev=x_includes ;;
1089 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1090 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1091 x_includes=$ac_optarg ;;
1093 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1094 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1095 ac_prev=x_libraries ;;
1096 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1097 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1098 x_libraries=$ac_optarg ;;
1100 -*) { echo "$as_me: error: unrecognized option: $ac_option
1101 Try \`$0 --help' for more information." >&2
1102 { (exit 1); exit 1; }; }
1105 *=*)
1106 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1107 # Reject names that are not valid shell variable names.
1108 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1109 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1110 { (exit 1); exit 1; }; }
1111 eval $ac_envvar=\$ac_optarg
1112 export $ac_envvar ;;
1115 # FIXME: should be removed in autoconf 3.0.
1116 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1117 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1118 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1119 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1122 esac
1123 done
1125 if test -n "$ac_prev"; then
1126 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1127 { echo "$as_me: error: missing argument to $ac_option" >&2
1128 { (exit 1); exit 1; }; }
1131 # Be sure to have absolute directory names.
1132 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1133 datadir sysconfdir sharedstatedir localstatedir includedir \
1134 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1135 libdir localedir mandir
1137 eval ac_val=\$$ac_var
1138 case $ac_val in
1139 [\\/$]* | ?:[\\/]* ) continue;;
1140 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1141 esac
1142 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1143 { (exit 1); exit 1; }; }
1144 done
1146 # There might be people who depend on the old broken behavior: `$host'
1147 # used to hold the argument of --host etc.
1148 # FIXME: To remove some day.
1149 build=$build_alias
1150 host=$host_alias
1151 target=$target_alias
1153 # FIXME: To remove some day.
1154 if test "x$host_alias" != x; then
1155 if test "x$build_alias" = x; then
1156 cross_compiling=maybe
1157 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1158 If a cross compiler is detected then cross compile mode will be used." >&2
1159 elif test "x$build_alias" != "x$host_alias"; then
1160 cross_compiling=yes
1164 ac_tool_prefix=
1165 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1167 test "$silent" = yes && exec 6>/dev/null
1170 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1171 ac_ls_di=`ls -di .` &&
1172 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1173 { echo "$as_me: error: Working directory cannot be determined" >&2
1174 { (exit 1); exit 1; }; }
1175 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1176 { echo "$as_me: error: pwd does not report name of working directory" >&2
1177 { (exit 1); exit 1; }; }
1180 # Find the source files, if location was not specified.
1181 if test -z "$srcdir"; then
1182 ac_srcdir_defaulted=yes
1183 # Try the directory containing this script, then the parent directory.
1184 ac_confdir=`$as_dirname -- "$0" ||
1185 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1186 X"$0" : 'X\(//\)[^/]' \| \
1187 X"$0" : 'X\(//\)$' \| \
1188 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1189 echo X"$0" |
1190 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1191 s//\1/
1194 /^X\(\/\/\)[^/].*/{
1195 s//\1/
1198 /^X\(\/\/\)$/{
1199 s//\1/
1202 /^X\(\/\).*/{
1203 s//\1/
1206 s/.*/./; q'`
1207 srcdir=$ac_confdir
1208 if test ! -r "$srcdir/$ac_unique_file"; then
1209 srcdir=..
1211 else
1212 ac_srcdir_defaulted=no
1214 if test ! -r "$srcdir/$ac_unique_file"; then
1215 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1216 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1217 { (exit 1); exit 1; }; }
1219 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1220 ac_abs_confdir=`(
1221 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1222 { (exit 1); exit 1; }; }
1223 pwd)`
1224 # When building in place, set srcdir=.
1225 if test "$ac_abs_confdir" = "$ac_pwd"; then
1226 srcdir=.
1228 # Remove unnecessary trailing slashes from srcdir.
1229 # Double slashes in file names in object file debugging info
1230 # mess up M-x gdb in Emacs.
1231 case $srcdir in
1232 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1233 esac
1234 for ac_var in $ac_precious_vars; do
1235 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1236 eval ac_env_${ac_var}_value=\$${ac_var}
1237 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1238 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1239 done
1242 # Report the --help message.
1244 if test "$ac_init_help" = "long"; then
1245 # Omit some internal or obsolete options to make the list less imposing.
1246 # This message is too long to be a string in the A/UX 3.1 sh.
1247 cat <<_ACEOF
1248 \`configure' configures python 2.6 to adapt to many kinds of systems.
1250 Usage: $0 [OPTION]... [VAR=VALUE]...
1252 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1253 VAR=VALUE. See below for descriptions of some of the useful variables.
1255 Defaults for the options are specified in brackets.
1257 Configuration:
1258 -h, --help display this help and exit
1259 --help=short display options specific to this package
1260 --help=recursive display the short help of all the included packages
1261 -V, --version display version information and exit
1262 -q, --quiet, --silent do not print \`checking...' messages
1263 --cache-file=FILE cache test results in FILE [disabled]
1264 -C, --config-cache alias for \`--cache-file=config.cache'
1265 -n, --no-create do not create output files
1266 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1268 Installation directories:
1269 --prefix=PREFIX install architecture-independent files in PREFIX
1270 [$ac_default_prefix]
1271 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1272 [PREFIX]
1274 By default, \`make install' will install all the files in
1275 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1276 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1277 for instance \`--prefix=\$HOME'.
1279 For better control, use the options below.
1281 Fine tuning of the installation directories:
1282 --bindir=DIR user executables [EPREFIX/bin]
1283 --sbindir=DIR system admin executables [EPREFIX/sbin]
1284 --libexecdir=DIR program executables [EPREFIX/libexec]
1285 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1286 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1287 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1288 --libdir=DIR object code libraries [EPREFIX/lib]
1289 --includedir=DIR C header files [PREFIX/include]
1290 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1291 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1292 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1293 --infodir=DIR info documentation [DATAROOTDIR/info]
1294 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1295 --mandir=DIR man documentation [DATAROOTDIR/man]
1296 --docdir=DIR documentation root [DATAROOTDIR/doc/python]
1297 --htmldir=DIR html documentation [DOCDIR]
1298 --dvidir=DIR dvi documentation [DOCDIR]
1299 --pdfdir=DIR pdf documentation [DOCDIR]
1300 --psdir=DIR ps documentation [DOCDIR]
1301 _ACEOF
1303 cat <<\_ACEOF
1304 _ACEOF
1307 if test -n "$ac_init_help"; then
1308 case $ac_init_help in
1309 short | recursive ) echo "Configuration of python 2.6:";;
1310 esac
1311 cat <<\_ACEOF
1313 Optional Features:
1314 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1315 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1316 --enable-universalsdk[=SDKDIR]
1317 Build against Mac OS X 10.4u SDK (ppc/i386)
1318 --enable-framework[=INSTALLDIR]
1319 Build (MacOSX|Darwin) framework
1320 --enable-shared disable/enable building shared python library
1321 --enable-profiling enable C-level code profiling
1322 --enable-toolbox-glue disable/enable MacOSX glue code for extensions
1323 --enable-ipv6 Enable ipv6 (with ipv4) support
1324 --disable-ipv6 Disable ipv6 support
1325 --enable-unicode[=ucs[24]]
1326 Enable Unicode strings (default is yes)
1328 Optional Packages:
1329 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1330 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1331 --with-framework-name=FRAMEWORK
1332 specify an alternate name of the framework built
1333 with --enable-framework
1334 --without-gcc never use gcc
1335 --with-cxx-main=<compiler>
1336 compile main() and link python executable with C++
1337 compiler
1338 --with-suffix=.exe set executable suffix
1339 --with-pydebug build with Py_DEBUG defined
1340 --with-libs='lib1 ...' link against additional libs
1341 --with-system-ffi build _ctypes module using an installed ffi library
1342 --with-signal-module disable/enable signal module
1343 --with-dec-threads use DEC Alpha/OSF1 thread-safe libraries
1344 --with(out)-threads[=DIRECTORY]
1345 disable/enable thread support
1346 --with(out)-thread[=DIRECTORY]
1347 deprecated; use --with(out)-threads
1348 --with-pth use GNU pth threading libraries
1349 --with(out)-doc-strings disable/enable documentation strings
1350 --with(out)-tsc enable/disable timestamp counter profile
1351 --with(out)-pymalloc disable/enable specialized mallocs
1352 --with-wctype-functions use wctype.h functions
1353 --with-fpectl enable SIGFPE catching
1354 --with-libm=STRING math library
1355 --with-libc=STRING C library
1357 Some influential environment variables:
1358 CC C compiler command
1359 CFLAGS C compiler flags
1360 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1361 nonstandard directory <lib dir>
1362 LIBS libraries to pass to the linker, e.g. -l<library>
1363 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1364 you have headers in a nonstandard directory <include dir>
1365 CPP C preprocessor
1367 Use these variables to override the choices made by `configure' or to help
1368 it to find libraries and programs with nonstandard names/locations.
1370 Report bugs to <http://www.python.org/python-bugs>.
1371 _ACEOF
1372 ac_status=$?
1375 if test "$ac_init_help" = "recursive"; then
1376 # If there are subdirs, report their specific --help.
1377 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1378 test -d "$ac_dir" || continue
1379 ac_builddir=.
1381 case "$ac_dir" in
1382 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1384 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1385 # A ".." for each directory in $ac_dir_suffix.
1386 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1387 case $ac_top_builddir_sub in
1388 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1389 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1390 esac ;;
1391 esac
1392 ac_abs_top_builddir=$ac_pwd
1393 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1394 # for backward compatibility:
1395 ac_top_builddir=$ac_top_build_prefix
1397 case $srcdir in
1398 .) # We are building in place.
1399 ac_srcdir=.
1400 ac_top_srcdir=$ac_top_builddir_sub
1401 ac_abs_top_srcdir=$ac_pwd ;;
1402 [\\/]* | ?:[\\/]* ) # Absolute name.
1403 ac_srcdir=$srcdir$ac_dir_suffix;
1404 ac_top_srcdir=$srcdir
1405 ac_abs_top_srcdir=$srcdir ;;
1406 *) # Relative name.
1407 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1408 ac_top_srcdir=$ac_top_build_prefix$srcdir
1409 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1410 esac
1411 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1413 cd "$ac_dir" || { ac_status=$?; continue; }
1414 # Check for guested configure.
1415 if test -f "$ac_srcdir/configure.gnu"; then
1416 echo &&
1417 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1418 elif test -f "$ac_srcdir/configure"; then
1419 echo &&
1420 $SHELL "$ac_srcdir/configure" --help=recursive
1421 else
1422 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1423 fi || ac_status=$?
1424 cd "$ac_pwd" || { ac_status=$?; break; }
1425 done
1428 test -n "$ac_init_help" && exit $ac_status
1429 if $ac_init_version; then
1430 cat <<\_ACEOF
1431 python configure 2.6
1432 generated by GNU Autoconf 2.61
1434 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1435 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1436 This configure script is free software; the Free Software Foundation
1437 gives unlimited permission to copy, distribute and modify it.
1438 _ACEOF
1439 exit
1441 cat >config.log <<_ACEOF
1442 This file contains any messages produced by compilers while
1443 running configure, to aid debugging if configure makes a mistake.
1445 It was created by python $as_me 2.6, which was
1446 generated by GNU Autoconf 2.61. Invocation command line was
1448 $ $0 $@
1450 _ACEOF
1451 exec 5>>config.log
1453 cat <<_ASUNAME
1454 ## --------- ##
1455 ## Platform. ##
1456 ## --------- ##
1458 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1459 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1460 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1461 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1462 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1464 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1465 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1467 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1468 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1469 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1470 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1471 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1472 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1473 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1475 _ASUNAME
1477 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1478 for as_dir in $PATH
1480 IFS=$as_save_IFS
1481 test -z "$as_dir" && as_dir=.
1482 echo "PATH: $as_dir"
1483 done
1484 IFS=$as_save_IFS
1486 } >&5
1488 cat >&5 <<_ACEOF
1491 ## ----------- ##
1492 ## Core tests. ##
1493 ## ----------- ##
1495 _ACEOF
1498 # Keep a trace of the command line.
1499 # Strip out --no-create and --no-recursion so they do not pile up.
1500 # Strip out --silent because we don't want to record it for future runs.
1501 # Also quote any args containing shell meta-characters.
1502 # Make two passes to allow for proper duplicate-argument suppression.
1503 ac_configure_args=
1504 ac_configure_args0=
1505 ac_configure_args1=
1506 ac_must_keep_next=false
1507 for ac_pass in 1 2
1509 for ac_arg
1511 case $ac_arg in
1512 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1513 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1514 | -silent | --silent | --silen | --sile | --sil)
1515 continue ;;
1516 *\'*)
1517 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1518 esac
1519 case $ac_pass in
1520 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1522 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1523 if test $ac_must_keep_next = true; then
1524 ac_must_keep_next=false # Got value, back to normal.
1525 else
1526 case $ac_arg in
1527 *=* | --config-cache | -C | -disable-* | --disable-* \
1528 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1529 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1530 | -with-* | --with-* | -without-* | --without-* | --x)
1531 case "$ac_configure_args0 " in
1532 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1533 esac
1535 -* ) ac_must_keep_next=true ;;
1536 esac
1538 ac_configure_args="$ac_configure_args '$ac_arg'"
1540 esac
1541 done
1542 done
1543 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1544 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1546 # When interrupted or exit'd, cleanup temporary files, and complete
1547 # config.log. We remove comments because anyway the quotes in there
1548 # would cause problems or look ugly.
1549 # WARNING: Use '\'' to represent an apostrophe within the trap.
1550 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1551 trap 'exit_status=$?
1552 # Save into config.log some information that might help in debugging.
1554 echo
1556 cat <<\_ASBOX
1557 ## ---------------- ##
1558 ## Cache variables. ##
1559 ## ---------------- ##
1560 _ASBOX
1561 echo
1562 # The following way of writing the cache mishandles newlines in values,
1564 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1565 eval ac_val=\$$ac_var
1566 case $ac_val in #(
1567 *${as_nl}*)
1568 case $ac_var in #(
1569 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1570 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1571 esac
1572 case $ac_var in #(
1573 _ | IFS | as_nl) ;; #(
1574 *) $as_unset $ac_var ;;
1575 esac ;;
1576 esac
1577 done
1578 (set) 2>&1 |
1579 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1580 *${as_nl}ac_space=\ *)
1581 sed -n \
1582 "s/'\''/'\''\\\\'\'''\''/g;
1583 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1584 ;; #(
1586 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1588 esac |
1589 sort
1591 echo
1593 cat <<\_ASBOX
1594 ## ----------------- ##
1595 ## Output variables. ##
1596 ## ----------------- ##
1597 _ASBOX
1598 echo
1599 for ac_var in $ac_subst_vars
1601 eval ac_val=\$$ac_var
1602 case $ac_val in
1603 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1604 esac
1605 echo "$ac_var='\''$ac_val'\''"
1606 done | sort
1607 echo
1609 if test -n "$ac_subst_files"; then
1610 cat <<\_ASBOX
1611 ## ------------------- ##
1612 ## File substitutions. ##
1613 ## ------------------- ##
1614 _ASBOX
1615 echo
1616 for ac_var in $ac_subst_files
1618 eval ac_val=\$$ac_var
1619 case $ac_val in
1620 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1621 esac
1622 echo "$ac_var='\''$ac_val'\''"
1623 done | sort
1624 echo
1627 if test -s confdefs.h; then
1628 cat <<\_ASBOX
1629 ## ----------- ##
1630 ## confdefs.h. ##
1631 ## ----------- ##
1632 _ASBOX
1633 echo
1634 cat confdefs.h
1635 echo
1637 test "$ac_signal" != 0 &&
1638 echo "$as_me: caught signal $ac_signal"
1639 echo "$as_me: exit $exit_status"
1640 } >&5
1641 rm -f core *.core core.conftest.* &&
1642 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1643 exit $exit_status
1645 for ac_signal in 1 2 13 15; do
1646 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1647 done
1648 ac_signal=0
1650 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1651 rm -f -r conftest* confdefs.h
1653 # Predefined preprocessor variables.
1655 cat >>confdefs.h <<_ACEOF
1656 #define PACKAGE_NAME "$PACKAGE_NAME"
1657 _ACEOF
1660 cat >>confdefs.h <<_ACEOF
1661 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1662 _ACEOF
1665 cat >>confdefs.h <<_ACEOF
1666 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1667 _ACEOF
1670 cat >>confdefs.h <<_ACEOF
1671 #define PACKAGE_STRING "$PACKAGE_STRING"
1672 _ACEOF
1675 cat >>confdefs.h <<_ACEOF
1676 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1677 _ACEOF
1680 # Let the site file select an alternate cache file if it wants to.
1681 # Prefer explicitly selected file to automatically selected ones.
1682 if test -n "$CONFIG_SITE"; then
1683 set x "$CONFIG_SITE"
1684 elif test "x$prefix" != xNONE; then
1685 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1686 else
1687 set x "$ac_default_prefix/share/config.site" \
1688 "$ac_default_prefix/etc/config.site"
1690 shift
1691 for ac_site_file
1693 if test -r "$ac_site_file"; then
1694 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1695 echo "$as_me: loading site script $ac_site_file" >&6;}
1696 sed 's/^/| /' "$ac_site_file" >&5
1697 . "$ac_site_file"
1699 done
1701 if test -r "$cache_file"; then
1702 # Some versions of bash will fail to source /dev/null (special
1703 # files actually), so we avoid doing that.
1704 if test -f "$cache_file"; then
1705 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1706 echo "$as_me: loading cache $cache_file" >&6;}
1707 case $cache_file in
1708 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1709 *) . "./$cache_file";;
1710 esac
1712 else
1713 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1714 echo "$as_me: creating cache $cache_file" >&6;}
1715 >$cache_file
1718 # Check that the precious variables saved in the cache have kept the same
1719 # value.
1720 ac_cache_corrupted=false
1721 for ac_var in $ac_precious_vars; do
1722 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1723 eval ac_new_set=\$ac_env_${ac_var}_set
1724 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1725 eval ac_new_val=\$ac_env_${ac_var}_value
1726 case $ac_old_set,$ac_new_set in
1727 set,)
1728 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1729 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1730 ac_cache_corrupted=: ;;
1731 ,set)
1732 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1733 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1734 ac_cache_corrupted=: ;;
1735 ,);;
1737 if test "x$ac_old_val" != "x$ac_new_val"; then
1738 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1739 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1740 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1741 echo "$as_me: former value: $ac_old_val" >&2;}
1742 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1743 echo "$as_me: current value: $ac_new_val" >&2;}
1744 ac_cache_corrupted=:
1745 fi;;
1746 esac
1747 # Pass precious variables to config.status.
1748 if test "$ac_new_set" = set; then
1749 case $ac_new_val in
1750 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1751 *) ac_arg=$ac_var=$ac_new_val ;;
1752 esac
1753 case " $ac_configure_args " in
1754 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1755 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1756 esac
1758 done
1759 if $ac_cache_corrupted; then
1760 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1761 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1762 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1763 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1764 { (exit 1); exit 1; }; }
1791 ac_ext=c
1792 ac_cpp='$CPP $CPPFLAGS'
1793 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1794 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1795 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1799 ac_config_headers="$ac_config_headers pyconfig.h"
1807 # We don't use PACKAGE_ variables, and they cause conflicts
1808 # with other autoconf-based packages that include Python.h
1809 grep -v 'define PACKAGE_' <confdefs.h >confdefs.h.new
1810 rm confdefs.h
1811 mv confdefs.h.new confdefs.h
1814 VERSION=2.6
1817 SOVERSION=1.0
1819 # The later defininition of _XOPEN_SOURCE disables certain features
1820 # on Linux, so we need _GNU_SOURCE to re-enable them (makedev, tm_zone).
1822 cat >>confdefs.h <<\_ACEOF
1823 #define _GNU_SOURCE 1
1824 _ACEOF
1827 # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables
1828 # certain features on NetBSD, so we need _NETBSD_SOURCE to re-enable
1829 # them.
1831 cat >>confdefs.h <<\_ACEOF
1832 #define _NETBSD_SOURCE 1
1833 _ACEOF
1836 # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables
1837 # certain features on FreeBSD, so we need __BSD_VISIBLE to re-enable
1838 # them.
1840 cat >>confdefs.h <<\_ACEOF
1841 #define __BSD_VISIBLE 1
1842 _ACEOF
1845 # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables
1846 # u_int on Irix 5.3. Defining _BSD_TYPES brings it back.
1848 cat >>confdefs.h <<\_ACEOF
1849 #define _BSD_TYPES 1
1850 _ACEOF
1853 define_xopen_source=yes
1855 # Arguments passed to configure.
1857 CONFIG_ARGS="$ac_configure_args"
1859 # Check whether --enable-universalsdk was given.
1860 if test "${enable_universalsdk+set}" = set; then
1861 enableval=$enable_universalsdk;
1862 case $enableval in
1863 yes)
1864 enableval=/Developer/SDKs/MacOSX10.4u.sdk
1866 esac
1867 case $enableval in
1869 UNIVERSALSDK=
1870 enable_universalsdk=
1873 UNIVERSALSDK=$enableval
1875 esac
1877 else
1879 UNIVERSALSDK=
1880 enable_universalsdk=
1887 # Check whether --with-framework-name was given.
1888 if test "${with_framework_name+set}" = set; then
1889 withval=$with_framework_name;
1890 PYTHONFRAMEWORK=${withval}
1891 PYTHONFRAMEWORKDIR=${withval}.framework
1892 PYTHONFRAMEWORKIDENTIFIER=org.python.`echo $withval | tr 'A-Z' 'a-z'`
1894 else
1896 PYTHONFRAMEWORK=Python
1897 PYTHONFRAMEWORKDIR=Python.framework
1898 PYTHONFRAMEWORKIDENTIFIER=org.python.python
1902 # Check whether --enable-framework was given.
1903 if test "${enable_framework+set}" = set; then
1904 enableval=$enable_framework;
1905 case $enableval in
1906 yes)
1907 enableval=/Library/Frameworks
1908 esac
1909 case $enableval in
1911 PYTHONFRAMEWORK=
1912 PYTHONFRAMEWORKDIR=no-framework
1913 PYTHONFRAMEWORKPREFIX=
1914 PYTHONFRAMEWORKINSTALLDIR=
1915 FRAMEWORKINSTALLFIRST=
1916 FRAMEWORKINSTALLLAST=
1917 FRAMEWORKALTINSTALLFIRST=
1918 FRAMEWORKALTINSTALLLAST=
1919 if test "x${prefix}" = "xNONE"; then
1920 FRAMEWORKUNIXTOOLSPREFIX="${ac_default_prefix}"
1921 else
1922 FRAMEWORKUNIXTOOLSPREFIX="${prefix}"
1924 enable_framework=
1927 PYTHONFRAMEWORKPREFIX=$enableval
1928 PYTHONFRAMEWORKINSTALLDIR=$PYTHONFRAMEWORKPREFIX/$PYTHONFRAMEWORKDIR
1929 FRAMEWORKINSTALLFIRST="frameworkinstallstructure"
1930 FRAMEWORKINSTALLLAST="frameworkinstallmaclib frameworkinstallapps frameworkinstallunixtools"
1931 FRAMEWORKALTINSTALLFIRST="${FRAMEWORKINSTALLFIRST} bininstall maninstall"
1932 FRAMEWORKALTINSTALLLAST="frameworkinstallmaclib frameworkinstallapps frameworkaltinstallunixtools"
1933 if test "x${prefix}" = "xNONE" ; then
1934 FRAMEWORKUNIXTOOLSPREFIX="${ac_default_prefix}"
1935 else
1936 FRAMEWORKUNIXTOOLSPREFIX="${prefix}"
1938 prefix=$PYTHONFRAMEWORKINSTALLDIR/Versions/$VERSION
1940 # Add files for Mac specific code to the list of output
1941 # files:
1942 ac_config_files="$ac_config_files Mac/Makefile"
1944 ac_config_files="$ac_config_files Mac/PythonLauncher/Makefile"
1946 ac_config_files="$ac_config_files Mac/IDLE/Makefile"
1948 ac_config_files="$ac_config_files Mac/Resources/framework/Info.plist"
1950 ac_config_files="$ac_config_files Mac/Resources/app/Info.plist"
1952 esac
1954 else
1956 PYTHONFRAMEWORK=
1957 PYTHONFRAMEWORKDIR=no-framework
1958 PYTHONFRAMEWORKPREFIX=
1959 PYTHONFRAMEWORKINSTALLDIR=
1960 FRAMEWORKINSTALLFIRST=
1961 FRAMEWORKINSTALLLAST=
1962 FRAMEWORKALTINSTALLFIRST=
1963 FRAMEWORKALTINSTALLLAST=
1964 if test "x${prefix}" = "xNONE" ; then
1965 FRAMEWORKUNIXTOOLSPREFIX="${ac_default_prefix}"
1966 else
1967 FRAMEWORKUNIXTOOLSPREFIX="${prefix}"
1969 enable_framework=
1984 ##AC_ARG_WITH(dyld,
1985 ## AC_HELP_STRING(--with-dyld,
1986 ## Use (OpenStep|Rhapsody) dynamic linker))
1988 # Set name for machine-dependent library files
1990 { echo "$as_me:$LINENO: checking MACHDEP" >&5
1991 echo $ECHO_N "checking MACHDEP... $ECHO_C" >&6; }
1992 if test -z "$MACHDEP"
1993 then
1994 ac_sys_system=`uname -s`
1995 if test "$ac_sys_system" = "AIX" -o "$ac_sys_system" = "Monterey64" \
1996 -o "$ac_sys_system" = "UnixWare" -o "$ac_sys_system" = "OpenUNIX"; then
1997 ac_sys_release=`uname -v`
1998 else
1999 ac_sys_release=`uname -r`
2001 ac_md_system=`echo $ac_sys_system |
2002 tr -d '/ ' | tr '[A-Z]' '[a-z]'`
2003 ac_md_release=`echo $ac_sys_release |
2004 tr -d '/ ' | sed 's/^[A-Z]\.//' | sed 's/\..*//'`
2005 MACHDEP="$ac_md_system$ac_md_release"
2007 case $MACHDEP in
2008 cygwin*) MACHDEP="cygwin";;
2009 darwin*) MACHDEP="darwin";;
2010 atheos*) MACHDEP="atheos";;
2011 irix646) MACHDEP="irix6";;
2012 '') MACHDEP="unknown";;
2013 esac
2016 # Some systems cannot stand _XOPEN_SOURCE being defined at all; they
2017 # disable features if it is defined, without any means to access these
2018 # features as extensions. For these systems, we skip the definition of
2019 # _XOPEN_SOURCE. Before adding a system to the list to gain access to
2020 # some feature, make sure there is no alternative way to access this
2021 # feature. Also, when using wildcards, make sure you have verified the
2022 # need for not defining _XOPEN_SOURCE on all systems matching the
2023 # wildcard, and that the wildcard does not include future systems
2024 # (which may remove their limitations).
2025 case $ac_sys_system/$ac_sys_release in
2026 # On OpenBSD, select(2) is not available if _XOPEN_SOURCE is defined,
2027 # even though select is a POSIX function. Reported by J. Ribbens.
2028 # Reconfirmed for OpenBSD 3.3 by Zachary Hamm, for 3.4 by Jason Ish.
2029 OpenBSD/2.* | OpenBSD/3.[0123456789] | OpenBSD/4.[0])
2030 define_xopen_source=no
2031 # OpenBSD undoes our definition of __BSD_VISIBLE if _XOPEN_SOURCE is
2032 # also defined. This can be overridden by defining _BSD_SOURCE
2033 # As this has a different meaning on Linux, only define it on OpenBSD
2035 cat >>confdefs.h <<\_ACEOF
2036 #define _BSD_SOURCE 1
2037 _ACEOF
2040 # Defining _XOPEN_SOURCE on NetBSD version prior to the introduction of
2041 # _NETBSD_SOURCE disables certain features (eg. setgroups). Reported by
2042 # Marc Recht
2043 NetBSD/1.5 | NetBSD/1.5.* | NetBSD/1.6 | NetBSD/1.6.* | NetBSD/1.6A-S)
2044 define_xopen_source=no;;
2045 # On Solaris 2.6, sys/wait.h is inconsistent in the usage
2046 # of union __?sigval. Reported by Stuart Bishop.
2047 SunOS/5.6)
2048 define_xopen_source=no;;
2049 # On UnixWare 7, u_long is never defined with _XOPEN_SOURCE,
2050 # but used in /usr/include/netinet/tcp.h. Reported by Tim Rice.
2051 # Reconfirmed for 7.1.4 by Martin v. Loewis.
2052 OpenUNIX/8.0.0| UnixWare/7.1.[0-4])
2053 define_xopen_source=no;;
2054 # On OpenServer 5, u_short is never defined with _XOPEN_SOURCE,
2055 # but used in struct sockaddr.sa_family. Reported by Tim Rice.
2056 SCO_SV/3.2)
2057 define_xopen_source=no;;
2058 # On FreeBSD 4.8 and MacOS X 10.2, a bug in ncurses.h means that
2059 # it craps out if _XOPEN_EXTENDED_SOURCE is defined. Apparently,
2060 # this is fixed in 10.3, which identifies itself as Darwin/7.*
2061 # This should hopefully be fixed in FreeBSD 4.9
2062 FreeBSD/4.8* | Darwin/6* )
2063 define_xopen_source=no;;
2064 # On AIX 4 and 5.1, mbstate_t is defined only when _XOPEN_SOURCE == 500 but
2065 # used in wcsnrtombs() and mbsnrtowcs() even if _XOPEN_SOURCE is not defined
2066 # or has another value. By not (re)defining it, the defaults come in place.
2067 AIX/4)
2068 define_xopen_source=no;;
2069 AIX/5)
2070 if test `uname -r` -eq 1; then
2071 define_xopen_source=no
2074 # On Mac OS X 10.4, defining _POSIX_C_SOURCE or _XOPEN_SOURCE
2075 # disables platform specific features beyond repair.
2076 # On Mac OS X 10.3, defining _POSIX_C_SOURCE or _XOPEN_SOURCE
2077 # has no effect, don't bother defining them
2078 Darwin/[789].*)
2079 define_xopen_source=no
2081 # On QNX 6.3.2, defining _XOPEN_SOURCE prevents netdb.h from
2082 # defining NI_NUMERICHOST.
2083 QNX/6.3.2)
2084 define_xopen_source=no
2087 esac
2089 if test $define_xopen_source = yes
2090 then
2091 # On Solaris w/ g++ it appears that _XOPEN_SOURCE has to be
2092 # defined precisely as g++ defines it
2093 # Furthermore, on Solaris 10, XPG6 requires the use of a C99
2094 # compiler
2095 case $ac_sys_system/$ac_sys_release in
2096 SunOS/5.8|SunOS/5.9|SunOS/5.10)
2098 cat >>confdefs.h <<\_ACEOF
2099 #define _XOPEN_SOURCE 500
2100 _ACEOF
2105 cat >>confdefs.h <<\_ACEOF
2106 #define _XOPEN_SOURCE 600
2107 _ACEOF
2110 esac
2112 # On Tru64 Unix 4.0F, defining _XOPEN_SOURCE also requires
2113 # definition of _XOPEN_SOURCE_EXTENDED and _POSIX_C_SOURCE, or else
2114 # several APIs are not declared. Since this is also needed in some
2115 # cases for HP-UX, we define it globally.
2116 # except for Solaris 10, where it must not be defined,
2117 # as it implies XPG4.2
2118 case $ac_sys_system/$ac_sys_release in
2119 SunOS/5.10)
2123 cat >>confdefs.h <<\_ACEOF
2124 #define _XOPEN_SOURCE_EXTENDED 1
2125 _ACEOF
2128 esac
2131 cat >>confdefs.h <<\_ACEOF
2132 #define _POSIX_C_SOURCE 200112L
2133 _ACEOF
2139 # SGI compilers allow the specification of the both the ABI and the
2140 # ISA on the command line. Depending on the values of these switches,
2141 # different and often incompatable code will be generated.
2143 # The SGI_ABI variable can be used to modify the CC and LDFLAGS and
2144 # thus supply support for various ABI/ISA combinations. The MACHDEP
2145 # variable is also adjusted.
2148 if test ! -z "$SGI_ABI"
2149 then
2150 CC="cc $SGI_ABI"
2151 LDFLAGS="$SGI_ABI $LDFLAGS"
2152 MACHDEP=`echo "${MACHDEP}${SGI_ABI}" | sed 's/ *//g'`
2154 { echo "$as_me:$LINENO: result: $MACHDEP" >&5
2155 echo "${ECHO_T}$MACHDEP" >&6; }
2157 # And add extra plat-mac for darwin
2160 { echo "$as_me:$LINENO: checking EXTRAPLATDIR" >&5
2161 echo $ECHO_N "checking EXTRAPLATDIR... $ECHO_C" >&6; }
2162 if test -z "$EXTRAPLATDIR"
2163 then
2164 case $MACHDEP in
2165 darwin)
2166 EXTRAPLATDIR="\$(PLATMACDIRS)"
2167 EXTRAMACHDEPPATH="\$(PLATMACPATH)"
2170 EXTRAPLATDIR=""
2171 EXTRAMACHDEPPATH=""
2173 esac
2175 { echo "$as_me:$LINENO: result: $EXTRAPLATDIR" >&5
2176 echo "${ECHO_T}$EXTRAPLATDIR" >&6; }
2178 # Record the configure-time value of MACOSX_DEPLOYMENT_TARGET,
2179 # it may influence the way we can build extensions, so distutils
2180 # needs to check it
2183 CONFIGURE_MACOSX_DEPLOYMENT_TARGET=
2184 EXPORT_MACOSX_DEPLOYMENT_TARGET='#'
2186 { echo "$as_me:$LINENO: checking machine type as reported by uname -m" >&5
2187 echo $ECHO_N "checking machine type as reported by uname -m... $ECHO_C" >&6; }
2188 ac_sys_machine=`uname -m`
2189 { echo "$as_me:$LINENO: result: $ac_sys_machine" >&5
2190 echo "${ECHO_T}$ac_sys_machine" >&6; }
2192 # checks for alternative programs
2194 # compiler flags are generated in two sets, BASECFLAGS and OPT. OPT is just
2195 # for debug/optimization stuff. BASECFLAGS is for flags that are required
2196 # just to get things to compile and link. Users are free to override OPT
2197 # when running configure or make. The build should not break if they do.
2198 # BASECFLAGS should generally not be messed with, however.
2200 # XXX shouldn't some/most/all of this code be merged with the stuff later
2201 # on that fiddles with OPT and BASECFLAGS?
2202 { echo "$as_me:$LINENO: checking for --without-gcc" >&5
2203 echo $ECHO_N "checking for --without-gcc... $ECHO_C" >&6; }
2205 # Check whether --with-gcc was given.
2206 if test "${with_gcc+set}" = set; then
2207 withval=$with_gcc;
2208 case $withval in
2209 no) CC=cc
2210 without_gcc=yes;;
2211 yes) CC=gcc
2212 without_gcc=no;;
2213 *) CC=$withval
2214 without_gcc=$withval;;
2215 esac
2216 else
2218 case $ac_sys_system in
2219 AIX*) CC=cc_r
2220 without_gcc=;;
2221 BeOS*)
2222 case $BE_HOST_CPU in
2223 ppc)
2224 CC=mwcc
2225 without_gcc=yes
2226 BASECFLAGS="$BASECFLAGS -export pragma"
2227 OPT="$OPT -O"
2228 LDFLAGS="$LDFLAGS -nodup"
2230 x86)
2231 CC=gcc
2232 without_gcc=no
2233 OPT="$OPT -O"
2236 { { echo "$as_me:$LINENO: error: Unknown BeOS platform \"$BE_HOST_CPU\"" >&5
2237 echo "$as_me: error: Unknown BeOS platform \"$BE_HOST_CPU\"" >&2;}
2238 { (exit 1); exit 1; }; }
2240 esac
2241 AR="\$(srcdir)/Modules/ar_beos"
2242 RANLIB=:
2244 Monterey*)
2245 RANLIB=:
2246 without_gcc=;;
2247 *) without_gcc=no;;
2248 esac
2251 { echo "$as_me:$LINENO: result: $without_gcc" >&5
2252 echo "${ECHO_T}$without_gcc" >&6; }
2254 # If the user switches compilers, we can't believe the cache
2255 if test ! -z "$ac_cv_prog_CC" -a ! -z "$CC" -a "$CC" != "$ac_cv_prog_CC"
2256 then
2257 { { echo "$as_me:$LINENO: error: cached CC is different -- throw away $cache_file
2258 (it is also a good idea to do 'make clean' before compiling)" >&5
2259 echo "$as_me: error: cached CC is different -- throw away $cache_file
2260 (it is also a good idea to do 'make clean' before compiling)" >&2;}
2261 { (exit 1); exit 1; }; }
2264 ac_ext=c
2265 ac_cpp='$CPP $CPPFLAGS'
2266 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2267 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2268 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2269 if test -n "$ac_tool_prefix"; then
2270 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2271 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2272 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2273 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2274 if test "${ac_cv_prog_CC+set}" = set; then
2275 echo $ECHO_N "(cached) $ECHO_C" >&6
2276 else
2277 if test -n "$CC"; then
2278 ac_cv_prog_CC="$CC" # Let the user override the test.
2279 else
2280 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2281 for as_dir in $PATH
2283 IFS=$as_save_IFS
2284 test -z "$as_dir" && as_dir=.
2285 for ac_exec_ext in '' $ac_executable_extensions; do
2286 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2287 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2288 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2289 break 2
2291 done
2292 done
2293 IFS=$as_save_IFS
2297 CC=$ac_cv_prog_CC
2298 if test -n "$CC"; then
2299 { echo "$as_me:$LINENO: result: $CC" >&5
2300 echo "${ECHO_T}$CC" >&6; }
2301 else
2302 { echo "$as_me:$LINENO: result: no" >&5
2303 echo "${ECHO_T}no" >&6; }
2308 if test -z "$ac_cv_prog_CC"; then
2309 ac_ct_CC=$CC
2310 # Extract the first word of "gcc", so it can be a program name with args.
2311 set dummy gcc; ac_word=$2
2312 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2313 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2314 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2315 echo $ECHO_N "(cached) $ECHO_C" >&6
2316 else
2317 if test -n "$ac_ct_CC"; then
2318 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2319 else
2320 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2321 for as_dir in $PATH
2323 IFS=$as_save_IFS
2324 test -z "$as_dir" && as_dir=.
2325 for ac_exec_ext in '' $ac_executable_extensions; do
2326 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2327 ac_cv_prog_ac_ct_CC="gcc"
2328 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2329 break 2
2331 done
2332 done
2333 IFS=$as_save_IFS
2337 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2338 if test -n "$ac_ct_CC"; then
2339 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2340 echo "${ECHO_T}$ac_ct_CC" >&6; }
2341 else
2342 { echo "$as_me:$LINENO: result: no" >&5
2343 echo "${ECHO_T}no" >&6; }
2346 if test "x$ac_ct_CC" = x; then
2347 CC=""
2348 else
2349 case $cross_compiling:$ac_tool_warned in
2350 yes:)
2351 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2352 whose name does not start with the host triplet. If you think this
2353 configuration is useful to you, please write to autoconf@gnu.org." >&5
2354 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2355 whose name does not start with the host triplet. If you think this
2356 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2357 ac_tool_warned=yes ;;
2358 esac
2359 CC=$ac_ct_CC
2361 else
2362 CC="$ac_cv_prog_CC"
2365 if test -z "$CC"; then
2366 if test -n "$ac_tool_prefix"; then
2367 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2368 set dummy ${ac_tool_prefix}cc; ac_word=$2
2369 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2370 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2371 if test "${ac_cv_prog_CC+set}" = set; then
2372 echo $ECHO_N "(cached) $ECHO_C" >&6
2373 else
2374 if test -n "$CC"; then
2375 ac_cv_prog_CC="$CC" # Let the user override the test.
2376 else
2377 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2378 for as_dir in $PATH
2380 IFS=$as_save_IFS
2381 test -z "$as_dir" && as_dir=.
2382 for ac_exec_ext in '' $ac_executable_extensions; do
2383 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2384 ac_cv_prog_CC="${ac_tool_prefix}cc"
2385 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2386 break 2
2388 done
2389 done
2390 IFS=$as_save_IFS
2394 CC=$ac_cv_prog_CC
2395 if test -n "$CC"; then
2396 { echo "$as_me:$LINENO: result: $CC" >&5
2397 echo "${ECHO_T}$CC" >&6; }
2398 else
2399 { echo "$as_me:$LINENO: result: no" >&5
2400 echo "${ECHO_T}no" >&6; }
2406 if test -z "$CC"; then
2407 # Extract the first word of "cc", so it can be a program name with args.
2408 set dummy cc; ac_word=$2
2409 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2410 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2411 if test "${ac_cv_prog_CC+set}" = set; then
2412 echo $ECHO_N "(cached) $ECHO_C" >&6
2413 else
2414 if test -n "$CC"; then
2415 ac_cv_prog_CC="$CC" # Let the user override the test.
2416 else
2417 ac_prog_rejected=no
2418 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2419 for as_dir in $PATH
2421 IFS=$as_save_IFS
2422 test -z "$as_dir" && as_dir=.
2423 for ac_exec_ext in '' $ac_executable_extensions; do
2424 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2425 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2426 ac_prog_rejected=yes
2427 continue
2429 ac_cv_prog_CC="cc"
2430 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2431 break 2
2433 done
2434 done
2435 IFS=$as_save_IFS
2437 if test $ac_prog_rejected = yes; then
2438 # We found a bogon in the path, so make sure we never use it.
2439 set dummy $ac_cv_prog_CC
2440 shift
2441 if test $# != 0; then
2442 # We chose a different compiler from the bogus one.
2443 # However, it has the same basename, so the bogon will be chosen
2444 # first if we set CC to just the basename; use the full file name.
2445 shift
2446 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2451 CC=$ac_cv_prog_CC
2452 if test -n "$CC"; then
2453 { echo "$as_me:$LINENO: result: $CC" >&5
2454 echo "${ECHO_T}$CC" >&6; }
2455 else
2456 { echo "$as_me:$LINENO: result: no" >&5
2457 echo "${ECHO_T}no" >&6; }
2462 if test -z "$CC"; then
2463 if test -n "$ac_tool_prefix"; then
2464 for ac_prog in cl.exe
2466 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2467 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2468 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2469 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2470 if test "${ac_cv_prog_CC+set}" = set; then
2471 echo $ECHO_N "(cached) $ECHO_C" >&6
2472 else
2473 if test -n "$CC"; then
2474 ac_cv_prog_CC="$CC" # Let the user override the test.
2475 else
2476 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2477 for as_dir in $PATH
2479 IFS=$as_save_IFS
2480 test -z "$as_dir" && as_dir=.
2481 for ac_exec_ext in '' $ac_executable_extensions; do
2482 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2483 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2484 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2485 break 2
2487 done
2488 done
2489 IFS=$as_save_IFS
2493 CC=$ac_cv_prog_CC
2494 if test -n "$CC"; then
2495 { echo "$as_me:$LINENO: result: $CC" >&5
2496 echo "${ECHO_T}$CC" >&6; }
2497 else
2498 { echo "$as_me:$LINENO: result: no" >&5
2499 echo "${ECHO_T}no" >&6; }
2503 test -n "$CC" && break
2504 done
2506 if test -z "$CC"; then
2507 ac_ct_CC=$CC
2508 for ac_prog in cl.exe
2510 # Extract the first word of "$ac_prog", so it can be a program name with args.
2511 set dummy $ac_prog; ac_word=$2
2512 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2513 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2514 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2515 echo $ECHO_N "(cached) $ECHO_C" >&6
2516 else
2517 if test -n "$ac_ct_CC"; then
2518 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2519 else
2520 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2521 for as_dir in $PATH
2523 IFS=$as_save_IFS
2524 test -z "$as_dir" && as_dir=.
2525 for ac_exec_ext in '' $ac_executable_extensions; do
2526 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2527 ac_cv_prog_ac_ct_CC="$ac_prog"
2528 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2529 break 2
2531 done
2532 done
2533 IFS=$as_save_IFS
2537 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2538 if test -n "$ac_ct_CC"; then
2539 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2540 echo "${ECHO_T}$ac_ct_CC" >&6; }
2541 else
2542 { echo "$as_me:$LINENO: result: no" >&5
2543 echo "${ECHO_T}no" >&6; }
2547 test -n "$ac_ct_CC" && break
2548 done
2550 if test "x$ac_ct_CC" = x; then
2551 CC=""
2552 else
2553 case $cross_compiling:$ac_tool_warned in
2554 yes:)
2555 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2556 whose name does not start with the host triplet. If you think this
2557 configuration is useful to you, please write to autoconf@gnu.org." >&5
2558 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2559 whose name does not start with the host triplet. If you think this
2560 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2561 ac_tool_warned=yes ;;
2562 esac
2563 CC=$ac_ct_CC
2570 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2571 See \`config.log' for more details." >&5
2572 echo "$as_me: error: no acceptable C compiler found in \$PATH
2573 See \`config.log' for more details." >&2;}
2574 { (exit 1); exit 1; }; }
2576 # Provide some information about the compiler.
2577 echo "$as_me:$LINENO: checking for C compiler version" >&5
2578 ac_compiler=`set X $ac_compile; echo $2`
2579 { (ac_try="$ac_compiler --version >&5"
2580 case "(($ac_try" in
2581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2582 *) ac_try_echo=$ac_try;;
2583 esac
2584 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2585 (eval "$ac_compiler --version >&5") 2>&5
2586 ac_status=$?
2587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2588 (exit $ac_status); }
2589 { (ac_try="$ac_compiler -v >&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 -v >&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); }
2610 cat >conftest.$ac_ext <<_ACEOF
2611 /* confdefs.h. */
2612 _ACEOF
2613 cat confdefs.h >>conftest.$ac_ext
2614 cat >>conftest.$ac_ext <<_ACEOF
2615 /* end confdefs.h. */
2618 main ()
2622 return 0;
2624 _ACEOF
2625 ac_clean_files_save=$ac_clean_files
2626 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2627 # Try to create an executable without -o first, disregard a.out.
2628 # It will help us diagnose broken compilers, and finding out an intuition
2629 # of exeext.
2630 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2631 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2632 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2634 # List of possible output files, starting from the most likely.
2635 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2636 # only as a last resort. b.out is created by i960 compilers.
2637 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2639 # The IRIX 6 linker writes into existing files which may not be
2640 # executable, retaining their permissions. Remove them first so a
2641 # subsequent execution test works.
2642 ac_rmfiles=
2643 for ac_file in $ac_files
2645 case $ac_file in
2646 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2647 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2648 esac
2649 done
2650 rm -f $ac_rmfiles
2652 if { (ac_try="$ac_link_default"
2653 case "(($ac_try" in
2654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2655 *) ac_try_echo=$ac_try;;
2656 esac
2657 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2658 (eval "$ac_link_default") 2>&5
2659 ac_status=$?
2660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2661 (exit $ac_status); }; then
2662 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2663 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2664 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2665 # so that the user can short-circuit this test for compilers unknown to
2666 # Autoconf.
2667 for ac_file in $ac_files ''
2669 test -f "$ac_file" || continue
2670 case $ac_file in
2671 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2673 [ab].out )
2674 # We found the default executable, but exeext='' is most
2675 # certainly right.
2676 break;;
2677 *.* )
2678 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2679 then :; else
2680 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2682 # We set ac_cv_exeext here because the later test for it is not
2683 # safe: cross compilers may not add the suffix if given an `-o'
2684 # argument, so we may need to know it at that point already.
2685 # Even if this section looks crufty: it has the advantage of
2686 # actually working.
2687 break;;
2689 break;;
2690 esac
2691 done
2692 test "$ac_cv_exeext" = no && ac_cv_exeext=
2694 else
2695 ac_file=''
2698 { echo "$as_me:$LINENO: result: $ac_file" >&5
2699 echo "${ECHO_T}$ac_file" >&6; }
2700 if test -z "$ac_file"; then
2701 echo "$as_me: failed program was:" >&5
2702 sed 's/^/| /' conftest.$ac_ext >&5
2704 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2705 See \`config.log' for more details." >&5
2706 echo "$as_me: error: C compiler cannot create executables
2707 See \`config.log' for more details." >&2;}
2708 { (exit 77); exit 77; }; }
2711 ac_exeext=$ac_cv_exeext
2713 # Check that the compiler produces executables we can run. If not, either
2714 # the compiler is broken, or we cross compile.
2715 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2716 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2717 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2718 # If not cross compiling, check that we can run a simple program.
2719 if test "$cross_compiling" != yes; then
2720 if { ac_try='./$ac_file'
2721 { (case "(($ac_try" in
2722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2723 *) ac_try_echo=$ac_try;;
2724 esac
2725 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2726 (eval "$ac_try") 2>&5
2727 ac_status=$?
2728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2729 (exit $ac_status); }; }; then
2730 cross_compiling=no
2731 else
2732 if test "$cross_compiling" = maybe; then
2733 cross_compiling=yes
2734 else
2735 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2736 If you meant to cross compile, use \`--host'.
2737 See \`config.log' for more details." >&5
2738 echo "$as_me: error: cannot run C compiled programs.
2739 If you meant to cross compile, use \`--host'.
2740 See \`config.log' for more details." >&2;}
2741 { (exit 1); exit 1; }; }
2745 { echo "$as_me:$LINENO: result: yes" >&5
2746 echo "${ECHO_T}yes" >&6; }
2748 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2749 ac_clean_files=$ac_clean_files_save
2750 # Check that the compiler produces executables we can run. If not, either
2751 # the compiler is broken, or we cross compile.
2752 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2753 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2754 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2755 echo "${ECHO_T}$cross_compiling" >&6; }
2757 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2758 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2759 if { (ac_try="$ac_link"
2760 case "(($ac_try" in
2761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2762 *) ac_try_echo=$ac_try;;
2763 esac
2764 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2765 (eval "$ac_link") 2>&5
2766 ac_status=$?
2767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2768 (exit $ac_status); }; then
2769 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2770 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2771 # work properly (i.e., refer to `conftest.exe'), while it won't with
2772 # `rm'.
2773 for ac_file in conftest.exe conftest conftest.*; do
2774 test -f "$ac_file" || continue
2775 case $ac_file in
2776 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2777 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2778 break;;
2779 * ) break;;
2780 esac
2781 done
2782 else
2783 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2784 See \`config.log' for more details." >&5
2785 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2786 See \`config.log' for more details." >&2;}
2787 { (exit 1); exit 1; }; }
2790 rm -f conftest$ac_cv_exeext
2791 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2792 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2794 rm -f conftest.$ac_ext
2795 EXEEXT=$ac_cv_exeext
2796 ac_exeext=$EXEEXT
2797 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2798 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2799 if test "${ac_cv_objext+set}" = set; then
2800 echo $ECHO_N "(cached) $ECHO_C" >&6
2801 else
2802 cat >conftest.$ac_ext <<_ACEOF
2803 /* confdefs.h. */
2804 _ACEOF
2805 cat confdefs.h >>conftest.$ac_ext
2806 cat >>conftest.$ac_ext <<_ACEOF
2807 /* end confdefs.h. */
2810 main ()
2814 return 0;
2816 _ACEOF
2817 rm -f conftest.o conftest.obj
2818 if { (ac_try="$ac_compile"
2819 case "(($ac_try" in
2820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2821 *) ac_try_echo=$ac_try;;
2822 esac
2823 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2824 (eval "$ac_compile") 2>&5
2825 ac_status=$?
2826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2827 (exit $ac_status); }; then
2828 for ac_file in conftest.o conftest.obj conftest.*; do
2829 test -f "$ac_file" || continue;
2830 case $ac_file in
2831 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2832 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2833 break;;
2834 esac
2835 done
2836 else
2837 echo "$as_me: failed program was:" >&5
2838 sed 's/^/| /' conftest.$ac_ext >&5
2840 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2841 See \`config.log' for more details." >&5
2842 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2843 See \`config.log' for more details." >&2;}
2844 { (exit 1); exit 1; }; }
2847 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2849 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2850 echo "${ECHO_T}$ac_cv_objext" >&6; }
2851 OBJEXT=$ac_cv_objext
2852 ac_objext=$OBJEXT
2853 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2854 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2855 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2856 echo $ECHO_N "(cached) $ECHO_C" >&6
2857 else
2858 cat >conftest.$ac_ext <<_ACEOF
2859 /* confdefs.h. */
2860 _ACEOF
2861 cat confdefs.h >>conftest.$ac_ext
2862 cat >>conftest.$ac_ext <<_ACEOF
2863 /* end confdefs.h. */
2866 main ()
2868 #ifndef __GNUC__
2869 choke me
2870 #endif
2873 return 0;
2875 _ACEOF
2876 rm -f conftest.$ac_objext
2877 if { (ac_try="$ac_compile"
2878 case "(($ac_try" in
2879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2880 *) ac_try_echo=$ac_try;;
2881 esac
2882 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2883 (eval "$ac_compile") 2>conftest.er1
2884 ac_status=$?
2885 grep -v '^ *+' conftest.er1 >conftest.err
2886 rm -f conftest.er1
2887 cat conftest.err >&5
2888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2889 (exit $ac_status); } && {
2890 test -z "$ac_c_werror_flag" ||
2891 test ! -s conftest.err
2892 } && test -s conftest.$ac_objext; then
2893 ac_compiler_gnu=yes
2894 else
2895 echo "$as_me: failed program was:" >&5
2896 sed 's/^/| /' conftest.$ac_ext >&5
2898 ac_compiler_gnu=no
2901 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2902 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2905 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2906 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2907 GCC=`test $ac_compiler_gnu = yes && echo yes`
2908 ac_test_CFLAGS=${CFLAGS+set}
2909 ac_save_CFLAGS=$CFLAGS
2910 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2911 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2912 if test "${ac_cv_prog_cc_g+set}" = set; then
2913 echo $ECHO_N "(cached) $ECHO_C" >&6
2914 else
2915 ac_save_c_werror_flag=$ac_c_werror_flag
2916 ac_c_werror_flag=yes
2917 ac_cv_prog_cc_g=no
2918 CFLAGS="-g"
2919 cat >conftest.$ac_ext <<_ACEOF
2920 /* confdefs.h. */
2921 _ACEOF
2922 cat confdefs.h >>conftest.$ac_ext
2923 cat >>conftest.$ac_ext <<_ACEOF
2924 /* end confdefs.h. */
2927 main ()
2931 return 0;
2933 _ACEOF
2934 rm -f conftest.$ac_objext
2935 if { (ac_try="$ac_compile"
2936 case "(($ac_try" in
2937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2938 *) ac_try_echo=$ac_try;;
2939 esac
2940 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2941 (eval "$ac_compile") 2>conftest.er1
2942 ac_status=$?
2943 grep -v '^ *+' conftest.er1 >conftest.err
2944 rm -f conftest.er1
2945 cat conftest.err >&5
2946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2947 (exit $ac_status); } && {
2948 test -z "$ac_c_werror_flag" ||
2949 test ! -s conftest.err
2950 } && test -s conftest.$ac_objext; then
2951 ac_cv_prog_cc_g=yes
2952 else
2953 echo "$as_me: failed program was:" >&5
2954 sed 's/^/| /' conftest.$ac_ext >&5
2956 CFLAGS=""
2957 cat >conftest.$ac_ext <<_ACEOF
2958 /* confdefs.h. */
2959 _ACEOF
2960 cat confdefs.h >>conftest.$ac_ext
2961 cat >>conftest.$ac_ext <<_ACEOF
2962 /* end confdefs.h. */
2965 main ()
2969 return 0;
2971 _ACEOF
2972 rm -f conftest.$ac_objext
2973 if { (ac_try="$ac_compile"
2974 case "(($ac_try" in
2975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2976 *) ac_try_echo=$ac_try;;
2977 esac
2978 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2979 (eval "$ac_compile") 2>conftest.er1
2980 ac_status=$?
2981 grep -v '^ *+' conftest.er1 >conftest.err
2982 rm -f conftest.er1
2983 cat conftest.err >&5
2984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2985 (exit $ac_status); } && {
2986 test -z "$ac_c_werror_flag" ||
2987 test ! -s conftest.err
2988 } && test -s conftest.$ac_objext; then
2990 else
2991 echo "$as_me: failed program was:" >&5
2992 sed 's/^/| /' conftest.$ac_ext >&5
2994 ac_c_werror_flag=$ac_save_c_werror_flag
2995 CFLAGS="-g"
2996 cat >conftest.$ac_ext <<_ACEOF
2997 /* confdefs.h. */
2998 _ACEOF
2999 cat confdefs.h >>conftest.$ac_ext
3000 cat >>conftest.$ac_ext <<_ACEOF
3001 /* end confdefs.h. */
3004 main ()
3008 return 0;
3010 _ACEOF
3011 rm -f conftest.$ac_objext
3012 if { (ac_try="$ac_compile"
3013 case "(($ac_try" in
3014 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3015 *) ac_try_echo=$ac_try;;
3016 esac
3017 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3018 (eval "$ac_compile") 2>conftest.er1
3019 ac_status=$?
3020 grep -v '^ *+' conftest.er1 >conftest.err
3021 rm -f conftest.er1
3022 cat conftest.err >&5
3023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3024 (exit $ac_status); } && {
3025 test -z "$ac_c_werror_flag" ||
3026 test ! -s conftest.err
3027 } && test -s conftest.$ac_objext; then
3028 ac_cv_prog_cc_g=yes
3029 else
3030 echo "$as_me: failed program was:" >&5
3031 sed 's/^/| /' conftest.$ac_ext >&5
3036 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3039 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3042 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3043 ac_c_werror_flag=$ac_save_c_werror_flag
3045 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3046 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3047 if test "$ac_test_CFLAGS" = set; then
3048 CFLAGS=$ac_save_CFLAGS
3049 elif test $ac_cv_prog_cc_g = yes; then
3050 if test "$GCC" = yes; then
3051 CFLAGS="-g -O2"
3052 else
3053 CFLAGS="-g"
3055 else
3056 if test "$GCC" = yes; then
3057 CFLAGS="-O2"
3058 else
3059 CFLAGS=
3062 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3063 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3064 if test "${ac_cv_prog_cc_c89+set}" = set; then
3065 echo $ECHO_N "(cached) $ECHO_C" >&6
3066 else
3067 ac_cv_prog_cc_c89=no
3068 ac_save_CC=$CC
3069 cat >conftest.$ac_ext <<_ACEOF
3070 /* confdefs.h. */
3071 _ACEOF
3072 cat confdefs.h >>conftest.$ac_ext
3073 cat >>conftest.$ac_ext <<_ACEOF
3074 /* end confdefs.h. */
3075 #include <stdarg.h>
3076 #include <stdio.h>
3077 #include <sys/types.h>
3078 #include <sys/stat.h>
3079 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3080 struct buf { int x; };
3081 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3082 static char *e (p, i)
3083 char **p;
3084 int i;
3086 return p[i];
3088 static char *f (char * (*g) (char **, int), char **p, ...)
3090 char *s;
3091 va_list v;
3092 va_start (v,p);
3093 s = g (p, va_arg (v,int));
3094 va_end (v);
3095 return s;
3098 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3099 function prototypes and stuff, but not '\xHH' hex character constants.
3100 These don't provoke an error unfortunately, instead are silently treated
3101 as 'x'. The following induces an error, until -std is added to get
3102 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3103 array size at least. It's necessary to write '\x00'==0 to get something
3104 that's true only with -std. */
3105 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3107 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3108 inside strings and character constants. */
3109 #define FOO(x) 'x'
3110 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3112 int test (int i, double x);
3113 struct s1 {int (*f) (int a);};
3114 struct s2 {int (*f) (double a);};
3115 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3116 int argc;
3117 char **argv;
3119 main ()
3121 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3123 return 0;
3125 _ACEOF
3126 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3127 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3129 CC="$ac_save_CC $ac_arg"
3130 rm -f conftest.$ac_objext
3131 if { (ac_try="$ac_compile"
3132 case "(($ac_try" in
3133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3134 *) ac_try_echo=$ac_try;;
3135 esac
3136 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3137 (eval "$ac_compile") 2>conftest.er1
3138 ac_status=$?
3139 grep -v '^ *+' conftest.er1 >conftest.err
3140 rm -f conftest.er1
3141 cat conftest.err >&5
3142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3143 (exit $ac_status); } && {
3144 test -z "$ac_c_werror_flag" ||
3145 test ! -s conftest.err
3146 } && test -s conftest.$ac_objext; then
3147 ac_cv_prog_cc_c89=$ac_arg
3148 else
3149 echo "$as_me: failed program was:" >&5
3150 sed 's/^/| /' conftest.$ac_ext >&5
3155 rm -f core conftest.err conftest.$ac_objext
3156 test "x$ac_cv_prog_cc_c89" != "xno" && break
3157 done
3158 rm -f conftest.$ac_ext
3159 CC=$ac_save_CC
3162 # AC_CACHE_VAL
3163 case "x$ac_cv_prog_cc_c89" in
3165 { echo "$as_me:$LINENO: result: none needed" >&5
3166 echo "${ECHO_T}none needed" >&6; } ;;
3167 xno)
3168 { echo "$as_me:$LINENO: result: unsupported" >&5
3169 echo "${ECHO_T}unsupported" >&6; } ;;
3171 CC="$CC $ac_cv_prog_cc_c89"
3172 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3173 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3174 esac
3177 ac_ext=c
3178 ac_cpp='$CPP $CPPFLAGS'
3179 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3180 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3181 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3186 { echo "$as_me:$LINENO: checking for --with-cxx-main=<compiler>" >&5
3187 echo $ECHO_N "checking for --with-cxx-main=<compiler>... $ECHO_C" >&6; }
3189 # Check whether --with-cxx_main was given.
3190 if test "${with_cxx_main+set}" = set; then
3191 withval=$with_cxx_main;
3193 case $withval in
3194 no) with_cxx_main=no
3195 MAINCC='$(CC)';;
3196 yes) with_cxx_main=yes
3197 MAINCC='$(CXX)';;
3198 *) with_cxx_main=yes
3199 MAINCC=$withval
3200 if test -z "$CXX"
3201 then
3202 CXX=$withval
3203 fi;;
3204 esac
3205 else
3207 with_cxx_main=no
3208 MAINCC='$(CC)'
3212 { echo "$as_me:$LINENO: result: $with_cxx_main" >&5
3213 echo "${ECHO_T}$with_cxx_main" >&6; }
3215 preset_cxx="$CXX"
3216 if test -z "$CXX"
3217 then
3218 case "$CC" in
3219 gcc) # Extract the first word of "g++", so it can be a program name with args.
3220 set dummy g++; ac_word=$2
3221 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3222 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3223 if test "${ac_cv_path_CXX+set}" = set; then
3224 echo $ECHO_N "(cached) $ECHO_C" >&6
3225 else
3226 case $CXX in
3227 [\\/]* | ?:[\\/]*)
3228 ac_cv_path_CXX="$CXX" # Let the user override the test with a path.
3231 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3232 for as_dir in notfound
3234 IFS=$as_save_IFS
3235 test -z "$as_dir" && as_dir=.
3236 for ac_exec_ext in '' $ac_executable_extensions; do
3237 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3238 ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext"
3239 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3240 break 2
3242 done
3243 done
3244 IFS=$as_save_IFS
3246 test -z "$ac_cv_path_CXX" && ac_cv_path_CXX="g++"
3248 esac
3250 CXX=$ac_cv_path_CXX
3251 if test -n "$CXX"; then
3252 { echo "$as_me:$LINENO: result: $CXX" >&5
3253 echo "${ECHO_T}$CXX" >&6; }
3254 else
3255 { echo "$as_me:$LINENO: result: no" >&5
3256 echo "${ECHO_T}no" >&6; }
3260 cc) # Extract the first word of "c++", so it can be a program name with args.
3261 set dummy c++; ac_word=$2
3262 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3263 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3264 if test "${ac_cv_path_CXX+set}" = set; then
3265 echo $ECHO_N "(cached) $ECHO_C" >&6
3266 else
3267 case $CXX in
3268 [\\/]* | ?:[\\/]*)
3269 ac_cv_path_CXX="$CXX" # Let the user override the test with a path.
3272 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3273 for as_dir in notfound
3275 IFS=$as_save_IFS
3276 test -z "$as_dir" && as_dir=.
3277 for ac_exec_ext in '' $ac_executable_extensions; do
3278 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3279 ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext"
3280 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3281 break 2
3283 done
3284 done
3285 IFS=$as_save_IFS
3287 test -z "$ac_cv_path_CXX" && ac_cv_path_CXX="c++"
3289 esac
3291 CXX=$ac_cv_path_CXX
3292 if test -n "$CXX"; then
3293 { echo "$as_me:$LINENO: result: $CXX" >&5
3294 echo "${ECHO_T}$CXX" >&6; }
3295 else
3296 { echo "$as_me:$LINENO: result: no" >&5
3297 echo "${ECHO_T}no" >&6; }
3301 esac
3302 if test "$CXX" = "notfound"
3303 then
3304 CXX=""
3307 if test -z "$CXX"
3308 then
3309 for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
3311 # Extract the first word of "$ac_prog", so it can be a program name with args.
3312 set dummy $ac_prog; ac_word=$2
3313 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3314 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3315 if test "${ac_cv_prog_CXX+set}" = set; then
3316 echo $ECHO_N "(cached) $ECHO_C" >&6
3317 else
3318 if test -n "$CXX"; then
3319 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3320 else
3321 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3322 for as_dir in $PATH
3324 IFS=$as_save_IFS
3325 test -z "$as_dir" && as_dir=.
3326 for ac_exec_ext in '' $ac_executable_extensions; do
3327 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3328 ac_cv_prog_CXX="$ac_prog"
3329 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3330 break 2
3332 done
3333 done
3334 IFS=$as_save_IFS
3338 CXX=$ac_cv_prog_CXX
3339 if test -n "$CXX"; then
3340 { echo "$as_me:$LINENO: result: $CXX" >&5
3341 echo "${ECHO_T}$CXX" >&6; }
3342 else
3343 { echo "$as_me:$LINENO: result: no" >&5
3344 echo "${ECHO_T}no" >&6; }
3348 test -n "$CXX" && break
3349 done
3350 test -n "$CXX" || CXX="notfound"
3352 if test "$CXX" = "notfound"
3353 then
3354 CXX=""
3357 if test "$preset_cxx" != "$CXX"
3358 then
3359 { echo "$as_me:$LINENO: WARNING:
3361 By default, distutils will build C++ extension modules with \"$CXX\".
3362 If this is not intended, then set CXX on the configure command line.
3363 " >&5
3364 echo "$as_me: WARNING:
3366 By default, distutils will build C++ extension modules with \"$CXX\".
3367 If this is not intended, then set CXX on the configure command line.
3368 " >&2;}
3372 # checks for UNIX variants that set C preprocessor variables
3374 ac_ext=c
3375 ac_cpp='$CPP $CPPFLAGS'
3376 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3377 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3378 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3379 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3380 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3381 # On Suns, sometimes $CPP names a directory.
3382 if test -n "$CPP" && test -d "$CPP"; then
3383 CPP=
3385 if test -z "$CPP"; then
3386 if test "${ac_cv_prog_CPP+set}" = set; then
3387 echo $ECHO_N "(cached) $ECHO_C" >&6
3388 else
3389 # Double quotes because CPP needs to be expanded
3390 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3392 ac_preproc_ok=false
3393 for ac_c_preproc_warn_flag in '' yes
3395 # Use a header file that comes with gcc, so configuring glibc
3396 # with a fresh cross-compiler works.
3397 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3398 # <limits.h> exists even on freestanding compilers.
3399 # On the NeXT, cc -E runs the code through the compiler's parser,
3400 # not just through cpp. "Syntax error" is here to catch this case.
3401 cat >conftest.$ac_ext <<_ACEOF
3402 /* confdefs.h. */
3403 _ACEOF
3404 cat confdefs.h >>conftest.$ac_ext
3405 cat >>conftest.$ac_ext <<_ACEOF
3406 /* end confdefs.h. */
3407 #ifdef __STDC__
3408 # include <limits.h>
3409 #else
3410 # include <assert.h>
3411 #endif
3412 Syntax error
3413 _ACEOF
3414 if { (ac_try="$ac_cpp conftest.$ac_ext"
3415 case "(($ac_try" in
3416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3417 *) ac_try_echo=$ac_try;;
3418 esac
3419 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3420 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3421 ac_status=$?
3422 grep -v '^ *+' conftest.er1 >conftest.err
3423 rm -f conftest.er1
3424 cat conftest.err >&5
3425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3426 (exit $ac_status); } >/dev/null && {
3427 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3428 test ! -s conftest.err
3429 }; then
3431 else
3432 echo "$as_me: failed program was:" >&5
3433 sed 's/^/| /' conftest.$ac_ext >&5
3435 # Broken: fails on valid input.
3436 continue
3439 rm -f conftest.err conftest.$ac_ext
3441 # OK, works on sane cases. Now check whether nonexistent headers
3442 # can be detected and how.
3443 cat >conftest.$ac_ext <<_ACEOF
3444 /* confdefs.h. */
3445 _ACEOF
3446 cat confdefs.h >>conftest.$ac_ext
3447 cat >>conftest.$ac_ext <<_ACEOF
3448 /* end confdefs.h. */
3449 #include <ac_nonexistent.h>
3450 _ACEOF
3451 if { (ac_try="$ac_cpp conftest.$ac_ext"
3452 case "(($ac_try" in
3453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3454 *) ac_try_echo=$ac_try;;
3455 esac
3456 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3457 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3458 ac_status=$?
3459 grep -v '^ *+' conftest.er1 >conftest.err
3460 rm -f conftest.er1
3461 cat conftest.err >&5
3462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3463 (exit $ac_status); } >/dev/null && {
3464 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3465 test ! -s conftest.err
3466 }; then
3467 # Broken: success on invalid input.
3468 continue
3469 else
3470 echo "$as_me: failed program was:" >&5
3471 sed 's/^/| /' conftest.$ac_ext >&5
3473 # Passes both tests.
3474 ac_preproc_ok=:
3475 break
3478 rm -f conftest.err conftest.$ac_ext
3480 done
3481 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3482 rm -f conftest.err conftest.$ac_ext
3483 if $ac_preproc_ok; then
3484 break
3487 done
3488 ac_cv_prog_CPP=$CPP
3491 CPP=$ac_cv_prog_CPP
3492 else
3493 ac_cv_prog_CPP=$CPP
3495 { echo "$as_me:$LINENO: result: $CPP" >&5
3496 echo "${ECHO_T}$CPP" >&6; }
3497 ac_preproc_ok=false
3498 for ac_c_preproc_warn_flag in '' yes
3500 # Use a header file that comes with gcc, so configuring glibc
3501 # with a fresh cross-compiler works.
3502 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3503 # <limits.h> exists even on freestanding compilers.
3504 # On the NeXT, cc -E runs the code through the compiler's parser,
3505 # not just through cpp. "Syntax error" is here to catch this case.
3506 cat >conftest.$ac_ext <<_ACEOF
3507 /* confdefs.h. */
3508 _ACEOF
3509 cat confdefs.h >>conftest.$ac_ext
3510 cat >>conftest.$ac_ext <<_ACEOF
3511 /* end confdefs.h. */
3512 #ifdef __STDC__
3513 # include <limits.h>
3514 #else
3515 # include <assert.h>
3516 #endif
3517 Syntax error
3518 _ACEOF
3519 if { (ac_try="$ac_cpp conftest.$ac_ext"
3520 case "(($ac_try" in
3521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3522 *) ac_try_echo=$ac_try;;
3523 esac
3524 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3525 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3526 ac_status=$?
3527 grep -v '^ *+' conftest.er1 >conftest.err
3528 rm -f conftest.er1
3529 cat conftest.err >&5
3530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3531 (exit $ac_status); } >/dev/null && {
3532 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3533 test ! -s conftest.err
3534 }; then
3536 else
3537 echo "$as_me: failed program was:" >&5
3538 sed 's/^/| /' conftest.$ac_ext >&5
3540 # Broken: fails on valid input.
3541 continue
3544 rm -f conftest.err conftest.$ac_ext
3546 # OK, works on sane cases. Now check whether nonexistent headers
3547 # can be detected and how.
3548 cat >conftest.$ac_ext <<_ACEOF
3549 /* confdefs.h. */
3550 _ACEOF
3551 cat confdefs.h >>conftest.$ac_ext
3552 cat >>conftest.$ac_ext <<_ACEOF
3553 /* end confdefs.h. */
3554 #include <ac_nonexistent.h>
3555 _ACEOF
3556 if { (ac_try="$ac_cpp conftest.$ac_ext"
3557 case "(($ac_try" in
3558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3559 *) ac_try_echo=$ac_try;;
3560 esac
3561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3562 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3563 ac_status=$?
3564 grep -v '^ *+' conftest.er1 >conftest.err
3565 rm -f conftest.er1
3566 cat conftest.err >&5
3567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3568 (exit $ac_status); } >/dev/null && {
3569 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3570 test ! -s conftest.err
3571 }; then
3572 # Broken: success on invalid input.
3573 continue
3574 else
3575 echo "$as_me: failed program was:" >&5
3576 sed 's/^/| /' conftest.$ac_ext >&5
3578 # Passes both tests.
3579 ac_preproc_ok=:
3580 break
3583 rm -f conftest.err conftest.$ac_ext
3585 done
3586 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3587 rm -f conftest.err conftest.$ac_ext
3588 if $ac_preproc_ok; then
3590 else
3591 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3592 See \`config.log' for more details." >&5
3593 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3594 See \`config.log' for more details." >&2;}
3595 { (exit 1); exit 1; }; }
3598 ac_ext=c
3599 ac_cpp='$CPP $CPPFLAGS'
3600 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3601 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3602 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3605 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3606 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3607 if test "${ac_cv_path_GREP+set}" = set; then
3608 echo $ECHO_N "(cached) $ECHO_C" >&6
3609 else
3610 # Extract the first word of "grep ggrep" to use in msg output
3611 if test -z "$GREP"; then
3612 set dummy grep ggrep; ac_prog_name=$2
3613 if test "${ac_cv_path_GREP+set}" = set; then
3614 echo $ECHO_N "(cached) $ECHO_C" >&6
3615 else
3616 ac_path_GREP_found=false
3617 # Loop through the user's path and test for each of PROGNAME-LIST
3618 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3619 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3621 IFS=$as_save_IFS
3622 test -z "$as_dir" && as_dir=.
3623 for ac_prog in grep ggrep; do
3624 for ac_exec_ext in '' $ac_executable_extensions; do
3625 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3626 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3627 # Check for GNU ac_path_GREP and select it if it is found.
3628 # Check for GNU $ac_path_GREP
3629 case `"$ac_path_GREP" --version 2>&1` in
3630 *GNU*)
3631 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3633 ac_count=0
3634 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3635 while :
3637 cat "conftest.in" "conftest.in" >"conftest.tmp"
3638 mv "conftest.tmp" "conftest.in"
3639 cp "conftest.in" "conftest.nl"
3640 echo 'GREP' >> "conftest.nl"
3641 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3642 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3643 ac_count=`expr $ac_count + 1`
3644 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3645 # Best one so far, save it but keep looking for a better one
3646 ac_cv_path_GREP="$ac_path_GREP"
3647 ac_path_GREP_max=$ac_count
3649 # 10*(2^10) chars as input seems more than enough
3650 test $ac_count -gt 10 && break
3651 done
3652 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3653 esac
3656 $ac_path_GREP_found && break 3
3657 done
3658 done
3660 done
3661 IFS=$as_save_IFS
3666 GREP="$ac_cv_path_GREP"
3667 if test -z "$GREP"; then
3668 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3669 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3670 { (exit 1); exit 1; }; }
3673 else
3674 ac_cv_path_GREP=$GREP
3679 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3680 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3681 GREP="$ac_cv_path_GREP"
3684 { echo "$as_me:$LINENO: checking for egrep" >&5
3685 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3686 if test "${ac_cv_path_EGREP+set}" = set; then
3687 echo $ECHO_N "(cached) $ECHO_C" >&6
3688 else
3689 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3690 then ac_cv_path_EGREP="$GREP -E"
3691 else
3692 # Extract the first word of "egrep" to use in msg output
3693 if test -z "$EGREP"; then
3694 set dummy egrep; ac_prog_name=$2
3695 if test "${ac_cv_path_EGREP+set}" = set; then
3696 echo $ECHO_N "(cached) $ECHO_C" >&6
3697 else
3698 ac_path_EGREP_found=false
3699 # Loop through the user's path and test for each of PROGNAME-LIST
3700 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3701 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3703 IFS=$as_save_IFS
3704 test -z "$as_dir" && as_dir=.
3705 for ac_prog in egrep; do
3706 for ac_exec_ext in '' $ac_executable_extensions; do
3707 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3708 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3709 # Check for GNU ac_path_EGREP and select it if it is found.
3710 # Check for GNU $ac_path_EGREP
3711 case `"$ac_path_EGREP" --version 2>&1` in
3712 *GNU*)
3713 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3715 ac_count=0
3716 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3717 while :
3719 cat "conftest.in" "conftest.in" >"conftest.tmp"
3720 mv "conftest.tmp" "conftest.in"
3721 cp "conftest.in" "conftest.nl"
3722 echo 'EGREP' >> "conftest.nl"
3723 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3724 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3725 ac_count=`expr $ac_count + 1`
3726 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3727 # Best one so far, save it but keep looking for a better one
3728 ac_cv_path_EGREP="$ac_path_EGREP"
3729 ac_path_EGREP_max=$ac_count
3731 # 10*(2^10) chars as input seems more than enough
3732 test $ac_count -gt 10 && break
3733 done
3734 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3735 esac
3738 $ac_path_EGREP_found && break 3
3739 done
3740 done
3742 done
3743 IFS=$as_save_IFS
3748 EGREP="$ac_cv_path_EGREP"
3749 if test -z "$EGREP"; then
3750 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3751 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3752 { (exit 1); exit 1; }; }
3755 else
3756 ac_cv_path_EGREP=$EGREP
3762 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3763 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3764 EGREP="$ac_cv_path_EGREP"
3768 { echo "$as_me:$LINENO: checking for AIX" >&5
3769 echo $ECHO_N "checking for AIX... $ECHO_C" >&6; }
3770 cat >conftest.$ac_ext <<_ACEOF
3771 /* confdefs.h. */
3772 _ACEOF
3773 cat confdefs.h >>conftest.$ac_ext
3774 cat >>conftest.$ac_ext <<_ACEOF
3775 /* end confdefs.h. */
3776 #ifdef _AIX
3778 #endif
3780 _ACEOF
3781 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3782 $EGREP "yes" >/dev/null 2>&1; then
3783 { echo "$as_me:$LINENO: result: yes" >&5
3784 echo "${ECHO_T}yes" >&6; }
3785 cat >>confdefs.h <<\_ACEOF
3786 #define _ALL_SOURCE 1
3787 _ACEOF
3789 else
3790 { echo "$as_me:$LINENO: result: no" >&5
3791 echo "${ECHO_T}no" >&6; }
3793 rm -f conftest*
3797 # Check for unsupported systems
3798 case $ac_sys_system/$ac_sys_release in
3799 atheos*|Linux*/1*)
3800 echo This system \($ac_sys_system/$ac_sys_release\) is no longer supported.
3801 echo See README for details.
3802 exit 1;;
3803 esac
3806 { echo "$as_me:$LINENO: checking for --with-suffix" >&5
3807 echo $ECHO_N "checking for --with-suffix... $ECHO_C" >&6; }
3809 # Check whether --with-suffix was given.
3810 if test "${with_suffix+set}" = set; then
3811 withval=$with_suffix;
3812 case $withval in
3813 no) EXEEXT=;;
3814 yes) EXEEXT=.exe;;
3815 *) EXEEXT=$withval;;
3816 esac
3819 { echo "$as_me:$LINENO: result: $EXEEXT" >&5
3820 echo "${ECHO_T}$EXEEXT" >&6; }
3822 # Test whether we're running on a non-case-sensitive system, in which
3823 # case we give a warning if no ext is given
3825 { echo "$as_me:$LINENO: checking for case-insensitive build directory" >&5
3826 echo $ECHO_N "checking for case-insensitive build directory... $ECHO_C" >&6; }
3827 if test ! -d CaseSensitiveTestDir; then
3828 mkdir CaseSensitiveTestDir
3831 if test -d casesensitivetestdir
3832 then
3833 { echo "$as_me:$LINENO: result: yes" >&5
3834 echo "${ECHO_T}yes" >&6; }
3835 BUILDEXEEXT=.exe
3836 else
3837 { echo "$as_me:$LINENO: result: no" >&5
3838 echo "${ECHO_T}no" >&6; }
3839 BUILDEXEEXT=$EXEEXT
3841 rmdir CaseSensitiveTestDir
3843 case $MACHDEP in
3844 bsdos*)
3845 case $CC in
3846 gcc) CC="$CC -D_HAVE_BSDI";;
3847 esac;;
3848 esac
3850 case $ac_sys_system in
3851 hp*|HP*)
3852 case $CC in
3853 cc|*/cc) CC="$CC -Ae";;
3854 esac;;
3855 Monterey*)
3856 case $CC in
3857 cc) CC="$CC -Wl,-Bexport";;
3858 esac;;
3859 SunOS*)
3860 # Some functions have a prototype only with that define, e.g. confstr
3862 cat >>confdefs.h <<\_ACEOF
3863 #define __EXTENSIONS__ 1
3864 _ACEOF
3867 esac
3871 { echo "$as_me:$LINENO: checking LIBRARY" >&5
3872 echo $ECHO_N "checking LIBRARY... $ECHO_C" >&6; }
3873 if test -z "$LIBRARY"
3874 then
3875 LIBRARY='libpython$(VERSION).a'
3877 { echo "$as_me:$LINENO: result: $LIBRARY" >&5
3878 echo "${ECHO_T}$LIBRARY" >&6; }
3880 # LDLIBRARY is the name of the library to link against (as opposed to the
3881 # name of the library into which to insert object files). BLDLIBRARY is also
3882 # the library to link against, usually. On Mac OS X frameworks, BLDLIBRARY
3883 # is blank as the main program is not linked directly against LDLIBRARY.
3884 # LDLIBRARYDIR is the path to LDLIBRARY, which is made in a subdirectory. On
3885 # systems without shared libraries, LDLIBRARY is the same as LIBRARY
3886 # (defined in the Makefiles). On Cygwin LDLIBRARY is the import library,
3887 # DLLLIBRARY is the shared (i.e., DLL) library.
3889 # RUNSHARED is used to run shared python without installed libraries
3891 # INSTSONAME is the name of the shared library that will be use to install
3892 # on the system - some systems like version suffix, others don't
3899 LDLIBRARY="$LIBRARY"
3900 BLDLIBRARY='$(LDLIBRARY)'
3901 INSTSONAME='$(LDLIBRARY)'
3902 DLLLIBRARY=''
3903 LDLIBRARYDIR=''
3904 RUNSHARED=''
3906 # LINKCC is the command that links the python executable -- default is $(CC).
3907 # If CXX is set, and if it is needed to link a main function that was
3908 # compiled with CXX, LINKCC is CXX instead. Always using CXX is undesirable:
3909 # python might then depend on the C++ runtime
3910 # This is altered for AIX in order to build the export list before
3911 # linking.
3913 { echo "$as_me:$LINENO: checking LINKCC" >&5
3914 echo $ECHO_N "checking LINKCC... $ECHO_C" >&6; }
3915 if test -z "$LINKCC"
3916 then
3917 LINKCC='$(PURIFY) $(MAINCC)'
3918 case $ac_sys_system in
3919 AIX*)
3920 exp_extra="\"\""
3921 if test $ac_sys_release -ge 5 -o \
3922 $ac_sys_release -eq 4 -a `uname -r` -ge 2 ; then
3923 exp_extra="."
3925 LINKCC="\$(srcdir)/Modules/makexp_aix Modules/python.exp $exp_extra \$(LIBRARY); $LINKCC";;
3926 Monterey64*)
3927 LINKCC="$LINKCC -L/usr/lib/ia64l64";;
3928 QNX*)
3929 # qcc must be used because the other compilers do not
3930 # support -N.
3931 LINKCC=qcc;;
3932 esac
3934 { echo "$as_me:$LINENO: result: $LINKCC" >&5
3935 echo "${ECHO_T}$LINKCC" >&6; }
3937 { echo "$as_me:$LINENO: checking for --enable-shared" >&5
3938 echo $ECHO_N "checking for --enable-shared... $ECHO_C" >&6; }
3939 # Check whether --enable-shared was given.
3940 if test "${enable_shared+set}" = set; then
3941 enableval=$enable_shared;
3945 if test -z "$enable_shared"
3946 then
3947 case $ac_sys_system in
3948 CYGWIN* | atheos*)
3949 enable_shared="yes";;
3951 enable_shared="no";;
3952 esac
3954 { echo "$as_me:$LINENO: result: $enable_shared" >&5
3955 echo "${ECHO_T}$enable_shared" >&6; }
3957 { echo "$as_me:$LINENO: checking for --enable-profiling" >&5
3958 echo $ECHO_N "checking for --enable-profiling... $ECHO_C" >&6; }
3959 # Check whether --enable-profiling was given.
3960 if test "${enable_profiling+set}" = set; then
3961 enableval=$enable_profiling; ac_save_cc="$CC"
3962 CC="$CC -pg"
3963 if test "$cross_compiling" = yes; then
3964 ac_enable_profiling="no"
3965 else
3966 cat >conftest.$ac_ext <<_ACEOF
3967 /* confdefs.h. */
3968 _ACEOF
3969 cat confdefs.h >>conftest.$ac_ext
3970 cat >>conftest.$ac_ext <<_ACEOF
3971 /* end confdefs.h. */
3972 int main() { return 0; }
3973 _ACEOF
3974 rm -f conftest$ac_exeext
3975 if { (ac_try="$ac_link"
3976 case "(($ac_try" in
3977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3978 *) ac_try_echo=$ac_try;;
3979 esac
3980 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3981 (eval "$ac_link") 2>&5
3982 ac_status=$?
3983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3984 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3985 { (case "(($ac_try" in
3986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3987 *) ac_try_echo=$ac_try;;
3988 esac
3989 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3990 (eval "$ac_try") 2>&5
3991 ac_status=$?
3992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3993 (exit $ac_status); }; }; then
3994 ac_enable_profiling="yes"
3995 else
3996 echo "$as_me: program exited with status $ac_status" >&5
3997 echo "$as_me: failed program was:" >&5
3998 sed 's/^/| /' conftest.$ac_ext >&5
4000 ( exit $ac_status )
4001 ac_enable_profiling="no"
4003 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4007 CC="$ac_save_cc"
4010 { echo "$as_me:$LINENO: result: $ac_enable_profiling" >&5
4011 echo "${ECHO_T}$ac_enable_profiling" >&6; }
4013 case "$ac_enable_profiling" in
4014 "yes")
4015 BASECFLAGS="-pg $BASECFLAGS"
4016 LDFLAGS="-pg $LDFLAGS"
4018 esac
4020 { echo "$as_me:$LINENO: checking LDLIBRARY" >&5
4021 echo $ECHO_N "checking LDLIBRARY... $ECHO_C" >&6; }
4023 # MacOSX framework builds need more magic. LDLIBRARY is the dynamic
4024 # library that we build, but we do not want to link against it (we
4025 # will find it with a -framework option). For this reason there is an
4026 # extra variable BLDLIBRARY against which Python and the extension
4027 # modules are linked, BLDLIBRARY. This is normally the same as
4028 # LDLIBRARY, but empty for MacOSX framework builds.
4029 if test "$enable_framework"
4030 then
4031 LDLIBRARY='$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
4032 RUNSHARED=DYLD_FRAMEWORK_PATH="`pwd`:$DYLD_FRAMEWORK_PATH"
4033 BLDLIBRARY=''
4034 else
4035 BLDLIBRARY='$(LDLIBRARY)'
4038 # Other platforms follow
4039 if test $enable_shared = "yes"; then
4041 cat >>confdefs.h <<\_ACEOF
4042 #define Py_ENABLE_SHARED 1
4043 _ACEOF
4045 case $ac_sys_system in
4046 BeOS*)
4047 LDLIBRARY='libpython$(VERSION).so'
4049 CYGWIN*)
4050 LDLIBRARY='libpython$(VERSION).dll.a'
4051 DLLLIBRARY='libpython$(VERSION).dll'
4053 SunOS*)
4054 LDLIBRARY='libpython$(VERSION).so'
4055 BLDLIBRARY='-Wl,-R,$(LIBDIR) -L. -lpython$(VERSION)'
4056 RUNSHARED=LD_LIBRARY_PATH=`pwd`:${LD_LIBRARY_PATH}
4057 INSTSONAME="$LDLIBRARY".$SOVERSION
4059 Linux*|GNU*|NetBSD*|FreeBSD*|DragonFly*)
4060 LDLIBRARY='libpython$(VERSION).so'
4061 BLDLIBRARY='-L. -lpython$(VERSION)'
4062 RUNSHARED=LD_LIBRARY_PATH=`pwd`:${LD_LIBRARY_PATH}
4063 case $ac_sys_system in
4064 FreeBSD*)
4065 SOVERSION=`echo $SOVERSION|cut -d "." -f 1`
4067 esac
4068 INSTSONAME="$LDLIBRARY".$SOVERSION
4070 hp*|HP*)
4071 case `uname -m` in
4072 ia64)
4073 LDLIBRARY='libpython$(VERSION).so'
4076 LDLIBRARY='libpython$(VERSION).sl'
4078 esac
4079 BLDLIBRARY='-Wl,+b,$(LIBDIR) -L. -lpython$(VERSION)'
4080 RUNSHARED=SHLIB_PATH=`pwd`:${SHLIB_PATH}
4082 OSF*)
4083 LDLIBRARY='libpython$(VERSION).so'
4084 BLDLIBRARY='-rpath $(LIBDIR) -L. -lpython$(VERSION)'
4085 RUNSHARED=LD_LIBRARY_PATH=`pwd`:${LD_LIBRARY_PATH}
4087 atheos*)
4088 LDLIBRARY='libpython$(VERSION).so'
4089 BLDLIBRARY='-L. -lpython$(VERSION)'
4090 RUNSHARED=DLL_PATH=`pwd`:${DLL_PATH:-/atheos/sys/libs:/atheos/autolnk/lib}
4092 esac
4093 else # shared is disabled
4094 case $ac_sys_system in
4095 CYGWIN*)
4096 BLDLIBRARY='$(LIBRARY)'
4097 LDLIBRARY='libpython$(VERSION).dll.a'
4099 esac
4102 { echo "$as_me:$LINENO: result: $LDLIBRARY" >&5
4103 echo "${ECHO_T}$LDLIBRARY" >&6; }
4105 if test -n "$ac_tool_prefix"; then
4106 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4107 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4108 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4109 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4110 if test "${ac_cv_prog_RANLIB+set}" = set; then
4111 echo $ECHO_N "(cached) $ECHO_C" >&6
4112 else
4113 if test -n "$RANLIB"; then
4114 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4115 else
4116 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4117 for as_dir in $PATH
4119 IFS=$as_save_IFS
4120 test -z "$as_dir" && as_dir=.
4121 for ac_exec_ext in '' $ac_executable_extensions; do
4122 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4123 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4124 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4125 break 2
4127 done
4128 done
4129 IFS=$as_save_IFS
4133 RANLIB=$ac_cv_prog_RANLIB
4134 if test -n "$RANLIB"; then
4135 { echo "$as_me:$LINENO: result: $RANLIB" >&5
4136 echo "${ECHO_T}$RANLIB" >&6; }
4137 else
4138 { echo "$as_me:$LINENO: result: no" >&5
4139 echo "${ECHO_T}no" >&6; }
4144 if test -z "$ac_cv_prog_RANLIB"; then
4145 ac_ct_RANLIB=$RANLIB
4146 # Extract the first word of "ranlib", so it can be a program name with args.
4147 set dummy ranlib; ac_word=$2
4148 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4149 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4150 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4151 echo $ECHO_N "(cached) $ECHO_C" >&6
4152 else
4153 if test -n "$ac_ct_RANLIB"; then
4154 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4155 else
4156 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4157 for as_dir in $PATH
4159 IFS=$as_save_IFS
4160 test -z "$as_dir" && as_dir=.
4161 for ac_exec_ext in '' $ac_executable_extensions; do
4162 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4163 ac_cv_prog_ac_ct_RANLIB="ranlib"
4164 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4165 break 2
4167 done
4168 done
4169 IFS=$as_save_IFS
4173 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4174 if test -n "$ac_ct_RANLIB"; then
4175 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4176 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
4177 else
4178 { echo "$as_me:$LINENO: result: no" >&5
4179 echo "${ECHO_T}no" >&6; }
4182 if test "x$ac_ct_RANLIB" = x; then
4183 RANLIB=":"
4184 else
4185 case $cross_compiling:$ac_tool_warned in
4186 yes:)
4187 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4188 whose name does not start with the host triplet. If you think this
4189 configuration is useful to you, please write to autoconf@gnu.org." >&5
4190 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4191 whose name does not start with the host triplet. If you think this
4192 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4193 ac_tool_warned=yes ;;
4194 esac
4195 RANLIB=$ac_ct_RANLIB
4197 else
4198 RANLIB="$ac_cv_prog_RANLIB"
4202 for ac_prog in ar aal
4204 # Extract the first word of "$ac_prog", so it can be a program name with args.
4205 set dummy $ac_prog; ac_word=$2
4206 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4207 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4208 if test "${ac_cv_prog_AR+set}" = set; then
4209 echo $ECHO_N "(cached) $ECHO_C" >&6
4210 else
4211 if test -n "$AR"; then
4212 ac_cv_prog_AR="$AR" # Let the user override the test.
4213 else
4214 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4215 for as_dir in $PATH
4217 IFS=$as_save_IFS
4218 test -z "$as_dir" && as_dir=.
4219 for ac_exec_ext in '' $ac_executable_extensions; do
4220 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4221 ac_cv_prog_AR="$ac_prog"
4222 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4223 break 2
4225 done
4226 done
4227 IFS=$as_save_IFS
4231 AR=$ac_cv_prog_AR
4232 if test -n "$AR"; then
4233 { echo "$as_me:$LINENO: result: $AR" >&5
4234 echo "${ECHO_T}$AR" >&6; }
4235 else
4236 { echo "$as_me:$LINENO: result: no" >&5
4237 echo "${ECHO_T}no" >&6; }
4241 test -n "$AR" && break
4242 done
4243 test -n "$AR" || AR="ar"
4247 # Extract the first word of "svnversion", so it can be a program name with args.
4248 set dummy svnversion; ac_word=$2
4249 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4250 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4251 if test "${ac_cv_prog_SVNVERSION+set}" = set; then
4252 echo $ECHO_N "(cached) $ECHO_C" >&6
4253 else
4254 if test -n "$SVNVERSION"; then
4255 ac_cv_prog_SVNVERSION="$SVNVERSION" # Let the user override the test.
4256 else
4257 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4258 for as_dir in $PATH
4260 IFS=$as_save_IFS
4261 test -z "$as_dir" && as_dir=.
4262 for ac_exec_ext in '' $ac_executable_extensions; do
4263 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4264 ac_cv_prog_SVNVERSION="found"
4265 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4266 break 2
4268 done
4269 done
4270 IFS=$as_save_IFS
4272 test -z "$ac_cv_prog_SVNVERSION" && ac_cv_prog_SVNVERSION="not-found"
4275 SVNVERSION=$ac_cv_prog_SVNVERSION
4276 if test -n "$SVNVERSION"; then
4277 { echo "$as_me:$LINENO: result: $SVNVERSION" >&5
4278 echo "${ECHO_T}$SVNVERSION" >&6; }
4279 else
4280 { echo "$as_me:$LINENO: result: no" >&5
4281 echo "${ECHO_T}no" >&6; }
4285 if test $SVNVERSION = found
4286 then
4287 SVNVERSION="svnversion \$(srcdir)"
4288 else
4289 SVNVERSION="echo exported"
4292 case $MACHDEP in
4293 bsdos*|hp*|HP*)
4294 # install -d does not work on BSDI or HP-UX
4295 if test -z "$INSTALL"
4296 then
4297 INSTALL="${srcdir}/install-sh -c"
4299 esac
4300 ac_aux_dir=
4301 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
4302 if test -f "$ac_dir/install-sh"; then
4303 ac_aux_dir=$ac_dir
4304 ac_install_sh="$ac_aux_dir/install-sh -c"
4305 break
4306 elif test -f "$ac_dir/install.sh"; then
4307 ac_aux_dir=$ac_dir
4308 ac_install_sh="$ac_aux_dir/install.sh -c"
4309 break
4310 elif test -f "$ac_dir/shtool"; then
4311 ac_aux_dir=$ac_dir
4312 ac_install_sh="$ac_aux_dir/shtool install -c"
4313 break
4315 done
4316 if test -z "$ac_aux_dir"; then
4317 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
4318 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
4319 { (exit 1); exit 1; }; }
4322 # These three variables are undocumented and unsupported,
4323 # and are intended to be withdrawn in a future Autoconf release.
4324 # They can cause serious problems if a builder's source tree is in a directory
4325 # whose full name contains unusual characters.
4326 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
4327 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
4328 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
4331 # Find a good install program. We prefer a C program (faster),
4332 # so one script is as good as another. But avoid the broken or
4333 # incompatible versions:
4334 # SysV /etc/install, /usr/sbin/install
4335 # SunOS /usr/etc/install
4336 # IRIX /sbin/install
4337 # AIX /bin/install
4338 # AmigaOS /C/install, which installs bootblocks on floppy discs
4339 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4340 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4341 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4342 # OS/2's system install, which has a completely different semantic
4343 # ./install, which can be erroneously created by make from ./install.sh.
4344 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4345 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
4346 if test -z "$INSTALL"; then
4347 if test "${ac_cv_path_install+set}" = set; then
4348 echo $ECHO_N "(cached) $ECHO_C" >&6
4349 else
4350 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4351 for as_dir in $PATH
4353 IFS=$as_save_IFS
4354 test -z "$as_dir" && as_dir=.
4355 # Account for people who put trailing slashes in PATH elements.
4356 case $as_dir/ in
4357 ./ | .// | /cC/* | \
4358 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4359 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4360 /usr/ucb/* ) ;;
4362 # OSF1 and SCO ODT 3.0 have their own names for install.
4363 # Don't use installbsd from OSF since it installs stuff as root
4364 # by default.
4365 for ac_prog in ginstall scoinst install; do
4366 for ac_exec_ext in '' $ac_executable_extensions; do
4367 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4368 if test $ac_prog = install &&
4369 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4370 # AIX install. It has an incompatible calling convention.
4372 elif test $ac_prog = install &&
4373 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4374 # program-specific install script used by HP pwplus--don't use.
4376 else
4377 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4378 break 3
4381 done
4382 done
4384 esac
4385 done
4386 IFS=$as_save_IFS
4390 if test "${ac_cv_path_install+set}" = set; then
4391 INSTALL=$ac_cv_path_install
4392 else
4393 # As a last resort, use the slow shell script. Don't cache a
4394 # value for INSTALL within a source directory, because that will
4395 # break other packages using the cache if that directory is
4396 # removed, or if the value is a relative name.
4397 INSTALL=$ac_install_sh
4400 { echo "$as_me:$LINENO: result: $INSTALL" >&5
4401 echo "${ECHO_T}$INSTALL" >&6; }
4403 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4404 # It thinks the first close brace ends the variable substitution.
4405 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4407 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4409 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4412 # Not every filesystem supports hard links
4414 if test -z "$LN" ; then
4415 case $ac_sys_system in
4416 BeOS*) LN="ln -s";;
4417 CYGWIN*) LN="ln -s";;
4418 atheos*) LN="ln -s";;
4419 *) LN=ln;;
4420 esac
4423 # Check for --with-pydebug
4424 { echo "$as_me:$LINENO: checking for --with-pydebug" >&5
4425 echo $ECHO_N "checking for --with-pydebug... $ECHO_C" >&6; }
4427 # Check whether --with-pydebug was given.
4428 if test "${with_pydebug+set}" = set; then
4429 withval=$with_pydebug;
4430 if test "$withval" != no
4431 then
4433 cat >>confdefs.h <<\_ACEOF
4434 #define Py_DEBUG 1
4435 _ACEOF
4437 { echo "$as_me:$LINENO: result: yes" >&5
4438 echo "${ECHO_T}yes" >&6; };
4439 Py_DEBUG='true'
4440 else { echo "$as_me:$LINENO: result: no" >&5
4441 echo "${ECHO_T}no" >&6; }; Py_DEBUG='false'
4443 else
4444 { echo "$as_me:$LINENO: result: no" >&5
4445 echo "${ECHO_T}no" >&6; }
4449 # XXX Shouldn't the code above that fiddles with BASECFLAGS and OPT be
4450 # merged with this chunk of code?
4452 # Optimizer/debugger flags
4453 # ------------------------
4454 # (The following bit of code is complicated enough - please keep things
4455 # indented properly. Just pretend you're editing Python code. ;-)
4457 # There are two parallel sets of case statements below, one that checks to
4458 # see if OPT was set and one that does BASECFLAGS setting based upon
4459 # compiler and platform. BASECFLAGS tweaks need to be made even if the
4460 # user set OPT.
4462 # tweak OPT based on compiler and platform, only if the user didn't set
4463 # it on the command line
4465 if test -z "$OPT"
4466 then
4467 case $GCC in
4468 yes)
4469 if test "$CC" != 'g++' ; then
4470 STRICT_PROTO="-Wstrict-prototypes"
4472 # For gcc 4.x we need to use -fwrapv so lets check if its supported
4473 if "$CC" -v --help 2>/dev/null |grep -- -fwrapv > /dev/null; then
4474 WRAP="-fwrapv"
4476 case $ac_cv_prog_cc_g in
4477 yes)
4478 if test "$Py_DEBUG" = 'true' ; then
4479 # Optimization messes up debuggers, so turn it off for
4480 # debug builds.
4481 OPT="-g -Wall $STRICT_PROTO"
4482 else
4483 OPT="-g $WRAP -O3 -Wall $STRICT_PROTO"
4487 OPT="-O3 -Wall $STRICT_PROTO"
4489 esac
4490 case $ac_sys_system in
4491 SCO_SV*) OPT="$OPT -m486 -DSCO5"
4493 esac
4497 OPT="-O"
4499 esac
4501 # The current (beta) Monterey compiler dies with optimizations
4502 # XXX what is Monterey? Does it still die w/ -O? Can we get rid of this?
4503 case $ac_sys_system in
4504 Monterey*)
4505 OPT=""
4507 esac
4512 # tweak BASECFLAGS based on compiler and platform
4513 case $GCC in
4514 yes)
4515 # Python violates C99 rules, by casting between incompatible
4516 # pointer types. GCC may generate bad code as a result of that,
4517 # so use -fno-strict-aliasing if supported.
4518 { echo "$as_me:$LINENO: checking whether $CC accepts -fno-strict-aliasing" >&5
4519 echo $ECHO_N "checking whether $CC accepts -fno-strict-aliasing... $ECHO_C" >&6; }
4520 ac_save_cc="$CC"
4521 CC="$CC -fno-strict-aliasing"
4522 if test "$cross_compiling" = yes; then
4523 ac_cv_no_strict_aliasing_ok=no
4524 else
4525 cat >conftest.$ac_ext <<_ACEOF
4526 /* confdefs.h. */
4527 _ACEOF
4528 cat confdefs.h >>conftest.$ac_ext
4529 cat >>conftest.$ac_ext <<_ACEOF
4530 /* end confdefs.h. */
4531 int main() { return 0; }
4532 _ACEOF
4533 rm -f conftest$ac_exeext
4534 if { (ac_try="$ac_link"
4535 case "(($ac_try" in
4536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4537 *) ac_try_echo=$ac_try;;
4538 esac
4539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4540 (eval "$ac_link") 2>&5
4541 ac_status=$?
4542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4543 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4544 { (case "(($ac_try" in
4545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4546 *) ac_try_echo=$ac_try;;
4547 esac
4548 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4549 (eval "$ac_try") 2>&5
4550 ac_status=$?
4551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4552 (exit $ac_status); }; }; then
4553 ac_cv_no_strict_aliasing_ok=yes
4554 else
4555 echo "$as_me: program exited with status $ac_status" >&5
4556 echo "$as_me: failed program was:" >&5
4557 sed 's/^/| /' conftest.$ac_ext >&5
4559 ( exit $ac_status )
4560 ac_cv_no_strict_aliasing_ok=no
4562 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4566 CC="$ac_save_cc"
4567 { echo "$as_me:$LINENO: result: $ac_cv_no_strict_aliasing_ok" >&5
4568 echo "${ECHO_T}$ac_cv_no_strict_aliasing_ok" >&6; }
4569 if test $ac_cv_no_strict_aliasing_ok = yes
4570 then
4571 BASECFLAGS="$BASECFLAGS -fno-strict-aliasing"
4574 # if using gcc on alpha, use -mieee to get (near) full IEEE 754
4575 # support. Without this, treatment of subnormals doesn't follow
4576 # the standard.
4577 case $ac_sys_machine in
4578 alpha*)
4579 BASECFLAGS="$BASECFLAGS -mieee"
4581 esac
4583 case $ac_sys_system in
4584 SCO_SV*)
4585 BASECFLAGS="$BASECFLAGS -m486 -DSCO5"
4587 # is there any other compiler on Darwin besides gcc?
4588 Darwin*)
4589 # -Wno-long-double, -no-cpp-precomp, and -mno-fused-madd
4590 # used to be here, but non-Apple gcc doesn't accept them.
4591 if test "${enable_universalsdk}"; then
4592 BASECFLAGS="-arch ppc -arch i386 -isysroot ${UNIVERSALSDK} ${BASECFLAGS}"
4596 OSF*)
4597 BASECFLAGS="$BASECFLAGS -mieee"
4599 esac
4603 case $ac_sys_system in
4604 OpenUNIX*|UnixWare*)
4605 BASECFLAGS="$BASECFLAGS -K pentium,host,inline,loop_unroll,alloca "
4607 OSF*)
4608 BASECFLAGS="$BASECFLAGS -ieee -std"
4610 SCO_SV*)
4611 BASECFLAGS="$BASECFLAGS -belf -Ki486 -DSCO5"
4613 esac
4615 esac
4617 if test "$Py_DEBUG" = 'true'; then
4619 else
4620 OPT="-DNDEBUG $OPT"
4623 if test "$ac_arch_flags"
4624 then
4625 BASECFLAGS="$BASECFLAGS $ac_arch_flags"
4628 # disable check for icc since it seems to pass, but generates a warning
4629 if test "$CC" = icc
4630 then
4631 ac_cv_opt_olimit_ok=no
4634 { echo "$as_me:$LINENO: checking whether $CC accepts -OPT:Olimit=0" >&5
4635 echo $ECHO_N "checking whether $CC accepts -OPT:Olimit=0... $ECHO_C" >&6; }
4636 if test "${ac_cv_opt_olimit_ok+set}" = set; then
4637 echo $ECHO_N "(cached) $ECHO_C" >&6
4638 else
4639 ac_save_cc="$CC"
4640 CC="$CC -OPT:Olimit=0"
4641 if test "$cross_compiling" = yes; then
4642 ac_cv_opt_olimit_ok=no
4643 else
4644 cat >conftest.$ac_ext <<_ACEOF
4645 /* confdefs.h. */
4646 _ACEOF
4647 cat confdefs.h >>conftest.$ac_ext
4648 cat >>conftest.$ac_ext <<_ACEOF
4649 /* end confdefs.h. */
4650 int main() { return 0; }
4651 _ACEOF
4652 rm -f conftest$ac_exeext
4653 if { (ac_try="$ac_link"
4654 case "(($ac_try" in
4655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4656 *) ac_try_echo=$ac_try;;
4657 esac
4658 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4659 (eval "$ac_link") 2>&5
4660 ac_status=$?
4661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4662 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4663 { (case "(($ac_try" in
4664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4665 *) ac_try_echo=$ac_try;;
4666 esac
4667 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4668 (eval "$ac_try") 2>&5
4669 ac_status=$?
4670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4671 (exit $ac_status); }; }; then
4672 ac_cv_opt_olimit_ok=yes
4673 else
4674 echo "$as_me: program exited with status $ac_status" >&5
4675 echo "$as_me: failed program was:" >&5
4676 sed 's/^/| /' conftest.$ac_ext >&5
4678 ( exit $ac_status )
4679 ac_cv_opt_olimit_ok=no
4681 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4685 CC="$ac_save_cc"
4688 { echo "$as_me:$LINENO: result: $ac_cv_opt_olimit_ok" >&5
4689 echo "${ECHO_T}$ac_cv_opt_olimit_ok" >&6; }
4690 if test $ac_cv_opt_olimit_ok = yes; then
4691 case $ac_sys_system in
4692 # XXX is this branch needed? On MacOSX 10.2.2 the result of the
4693 # olimit_ok test is "no". Is it "yes" in some other Darwin-esque
4694 # environment?
4695 Darwin*)
4698 BASECFLAGS="$BASECFLAGS -OPT:Olimit=0"
4700 esac
4701 else
4702 { echo "$as_me:$LINENO: checking whether $CC accepts -Olimit 1500" >&5
4703 echo $ECHO_N "checking whether $CC accepts -Olimit 1500... $ECHO_C" >&6; }
4704 if test "${ac_cv_olimit_ok+set}" = set; then
4705 echo $ECHO_N "(cached) $ECHO_C" >&6
4706 else
4707 ac_save_cc="$CC"
4708 CC="$CC -Olimit 1500"
4709 if test "$cross_compiling" = yes; then
4710 ac_cv_olimit_ok=no
4711 else
4712 cat >conftest.$ac_ext <<_ACEOF
4713 /* confdefs.h. */
4714 _ACEOF
4715 cat confdefs.h >>conftest.$ac_ext
4716 cat >>conftest.$ac_ext <<_ACEOF
4717 /* end confdefs.h. */
4718 int main() { return 0; }
4719 _ACEOF
4720 rm -f conftest$ac_exeext
4721 if { (ac_try="$ac_link"
4722 case "(($ac_try" in
4723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4724 *) ac_try_echo=$ac_try;;
4725 esac
4726 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4727 (eval "$ac_link") 2>&5
4728 ac_status=$?
4729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4730 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4731 { (case "(($ac_try" in
4732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4733 *) ac_try_echo=$ac_try;;
4734 esac
4735 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4736 (eval "$ac_try") 2>&5
4737 ac_status=$?
4738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4739 (exit $ac_status); }; }; then
4740 ac_cv_olimit_ok=yes
4741 else
4742 echo "$as_me: program exited with status $ac_status" >&5
4743 echo "$as_me: failed program was:" >&5
4744 sed 's/^/| /' conftest.$ac_ext >&5
4746 ( exit $ac_status )
4747 ac_cv_olimit_ok=no
4749 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4753 CC="$ac_save_cc"
4756 { echo "$as_me:$LINENO: result: $ac_cv_olimit_ok" >&5
4757 echo "${ECHO_T}$ac_cv_olimit_ok" >&6; }
4758 if test $ac_cv_olimit_ok = yes; then
4759 BASECFLAGS="$BASECFLAGS -Olimit 1500"
4763 # Check whether GCC supports PyArg_ParseTuple format
4764 if test "$GCC" = "yes"
4765 then
4766 { echo "$as_me:$LINENO: checking whether gcc supports ParseTuple __format__" >&5
4767 echo $ECHO_N "checking whether gcc supports ParseTuple __format__... $ECHO_C" >&6; }
4768 save_CFLAGS=$CFLAGS
4769 CFLAGS="$CFLAGS -Werror"
4770 cat >conftest.$ac_ext <<_ACEOF
4771 /* confdefs.h. */
4772 _ACEOF
4773 cat confdefs.h >>conftest.$ac_ext
4774 cat >>conftest.$ac_ext <<_ACEOF
4775 /* end confdefs.h. */
4777 void f(char*,...)__attribute((format(PyArg_ParseTuple, 1, 2)));
4780 main ()
4784 return 0;
4786 _ACEOF
4787 rm -f conftest.$ac_objext
4788 if { (ac_try="$ac_compile"
4789 case "(($ac_try" in
4790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4791 *) ac_try_echo=$ac_try;;
4792 esac
4793 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4794 (eval "$ac_compile") 2>conftest.er1
4795 ac_status=$?
4796 grep -v '^ *+' conftest.er1 >conftest.err
4797 rm -f conftest.er1
4798 cat conftest.err >&5
4799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4800 (exit $ac_status); } && {
4801 test -z "$ac_c_werror_flag" ||
4802 test ! -s conftest.err
4803 } && test -s conftest.$ac_objext; then
4805 cat >>confdefs.h <<\_ACEOF
4806 #define HAVE_ATTRIBUTE_FORMAT_PARSETUPLE 1
4807 _ACEOF
4809 { echo "$as_me:$LINENO: result: yes" >&5
4810 echo "${ECHO_T}yes" >&6; }
4811 else
4812 echo "$as_me: failed program was:" >&5
4813 sed 's/^/| /' conftest.$ac_ext >&5
4815 { echo "$as_me:$LINENO: result: no" >&5
4816 echo "${ECHO_T}no" >&6; }
4820 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4821 CFLAGS=$save_CFLAGS
4824 # On some compilers, pthreads are available without further options
4825 # (e.g. MacOS X). On some of these systems, the compiler will not
4826 # complain if unaccepted options are passed (e.g. gcc on Mac OS X).
4827 # So we have to see first whether pthreads are available without
4828 # options before we can check whether -Kpthread improves anything.
4829 { echo "$as_me:$LINENO: checking whether pthreads are available without options" >&5
4830 echo $ECHO_N "checking whether pthreads are available without options... $ECHO_C" >&6; }
4831 if test "${ac_cv_pthread_is_default+set}" = set; then
4832 echo $ECHO_N "(cached) $ECHO_C" >&6
4833 else
4834 if test "$cross_compiling" = yes; then
4835 ac_cv_pthread_is_default=no
4836 else
4837 cat >conftest.$ac_ext <<_ACEOF
4838 /* confdefs.h. */
4839 _ACEOF
4840 cat confdefs.h >>conftest.$ac_ext
4841 cat >>conftest.$ac_ext <<_ACEOF
4842 /* end confdefs.h. */
4844 #include <pthread.h>
4846 void* routine(void* p){return NULL;}
4848 int main(){
4849 pthread_t p;
4850 if(pthread_create(&p,NULL,routine,NULL)!=0)
4851 return 1;
4852 (void)pthread_detach(p);
4853 return 0;
4856 _ACEOF
4857 rm -f conftest$ac_exeext
4858 if { (ac_try="$ac_link"
4859 case "(($ac_try" in
4860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4861 *) ac_try_echo=$ac_try;;
4862 esac
4863 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4864 (eval "$ac_link") 2>&5
4865 ac_status=$?
4866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4867 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4868 { (case "(($ac_try" in
4869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4870 *) ac_try_echo=$ac_try;;
4871 esac
4872 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4873 (eval "$ac_try") 2>&5
4874 ac_status=$?
4875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4876 (exit $ac_status); }; }; then
4878 ac_cv_pthread_is_default=yes
4879 ac_cv_kthread=no
4880 ac_cv_pthread=no
4882 else
4883 echo "$as_me: program exited with status $ac_status" >&5
4884 echo "$as_me: failed program was:" >&5
4885 sed 's/^/| /' conftest.$ac_ext >&5
4887 ( exit $ac_status )
4888 ac_cv_pthread_is_default=no
4890 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4897 { echo "$as_me:$LINENO: result: $ac_cv_pthread_is_default" >&5
4898 echo "${ECHO_T}$ac_cv_pthread_is_default" >&6; }
4901 if test $ac_cv_pthread_is_default = yes
4902 then
4903 ac_cv_kpthread=no
4904 else
4905 # -Kpthread, if available, provides the right #defines
4906 # and linker options to make pthread_create available
4907 # Some compilers won't report that they do not support -Kpthread,
4908 # so we need to run a program to see whether it really made the
4909 # function available.
4910 { echo "$as_me:$LINENO: checking whether $CC accepts -Kpthread" >&5
4911 echo $ECHO_N "checking whether $CC accepts -Kpthread... $ECHO_C" >&6; }
4912 if test "${ac_cv_kpthread+set}" = set; then
4913 echo $ECHO_N "(cached) $ECHO_C" >&6
4914 else
4915 ac_save_cc="$CC"
4916 CC="$CC -Kpthread"
4917 if test "$cross_compiling" = yes; then
4918 ac_cv_kpthread=no
4919 else
4920 cat >conftest.$ac_ext <<_ACEOF
4921 /* confdefs.h. */
4922 _ACEOF
4923 cat confdefs.h >>conftest.$ac_ext
4924 cat >>conftest.$ac_ext <<_ACEOF
4925 /* end confdefs.h. */
4927 #include <pthread.h>
4929 void* routine(void* p){return NULL;}
4931 int main(){
4932 pthread_t p;
4933 if(pthread_create(&p,NULL,routine,NULL)!=0)
4934 return 1;
4935 (void)pthread_detach(p);
4936 return 0;
4939 _ACEOF
4940 rm -f conftest$ac_exeext
4941 if { (ac_try="$ac_link"
4942 case "(($ac_try" in
4943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4944 *) ac_try_echo=$ac_try;;
4945 esac
4946 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4947 (eval "$ac_link") 2>&5
4948 ac_status=$?
4949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4950 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4951 { (case "(($ac_try" in
4952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4953 *) ac_try_echo=$ac_try;;
4954 esac
4955 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4956 (eval "$ac_try") 2>&5
4957 ac_status=$?
4958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4959 (exit $ac_status); }; }; then
4960 ac_cv_kpthread=yes
4961 else
4962 echo "$as_me: program exited with status $ac_status" >&5
4963 echo "$as_me: failed program was:" >&5
4964 sed 's/^/| /' conftest.$ac_ext >&5
4966 ( exit $ac_status )
4967 ac_cv_kpthread=no
4969 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4973 CC="$ac_save_cc"
4976 { echo "$as_me:$LINENO: result: $ac_cv_kpthread" >&5
4977 echo "${ECHO_T}$ac_cv_kpthread" >&6; }
4980 if test $ac_cv_kpthread = no -a $ac_cv_pthread_is_default = no
4981 then
4982 # -Kthread, if available, provides the right #defines
4983 # and linker options to make pthread_create available
4984 # Some compilers won't report that they do not support -Kthread,
4985 # so we need to run a program to see whether it really made the
4986 # function available.
4987 { echo "$as_me:$LINENO: checking whether $CC accepts -Kthread" >&5
4988 echo $ECHO_N "checking whether $CC accepts -Kthread... $ECHO_C" >&6; }
4989 if test "${ac_cv_kthread+set}" = set; then
4990 echo $ECHO_N "(cached) $ECHO_C" >&6
4991 else
4992 ac_save_cc="$CC"
4993 CC="$CC -Kthread"
4994 if test "$cross_compiling" = yes; then
4995 ac_cv_kthread=no
4996 else
4997 cat >conftest.$ac_ext <<_ACEOF
4998 /* confdefs.h. */
4999 _ACEOF
5000 cat confdefs.h >>conftest.$ac_ext
5001 cat >>conftest.$ac_ext <<_ACEOF
5002 /* end confdefs.h. */
5004 #include <pthread.h>
5006 void* routine(void* p){return NULL;}
5008 int main(){
5009 pthread_t p;
5010 if(pthread_create(&p,NULL,routine,NULL)!=0)
5011 return 1;
5012 (void)pthread_detach(p);
5013 return 0;
5016 _ACEOF
5017 rm -f conftest$ac_exeext
5018 if { (ac_try="$ac_link"
5019 case "(($ac_try" in
5020 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5021 *) ac_try_echo=$ac_try;;
5022 esac
5023 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5024 (eval "$ac_link") 2>&5
5025 ac_status=$?
5026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5027 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5028 { (case "(($ac_try" in
5029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5030 *) ac_try_echo=$ac_try;;
5031 esac
5032 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5033 (eval "$ac_try") 2>&5
5034 ac_status=$?
5035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5036 (exit $ac_status); }; }; then
5037 ac_cv_kthread=yes
5038 else
5039 echo "$as_me: program exited with status $ac_status" >&5
5040 echo "$as_me: failed program was:" >&5
5041 sed 's/^/| /' conftest.$ac_ext >&5
5043 ( exit $ac_status )
5044 ac_cv_kthread=no
5046 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5050 CC="$ac_save_cc"
5053 { echo "$as_me:$LINENO: result: $ac_cv_kthread" >&5
5054 echo "${ECHO_T}$ac_cv_kthread" >&6; }
5057 if test $ac_cv_kthread = no -a $ac_cv_pthread_is_default = no
5058 then
5059 # -pthread, if available, provides the right #defines
5060 # and linker options to make pthread_create available
5061 # Some compilers won't report that they do not support -pthread,
5062 # so we need to run a program to see whether it really made the
5063 # function available.
5064 { echo "$as_me:$LINENO: checking whether $CC accepts -pthread" >&5
5065 echo $ECHO_N "checking whether $CC accepts -pthread... $ECHO_C" >&6; }
5066 if test "${ac_cv_thread+set}" = set; then
5067 echo $ECHO_N "(cached) $ECHO_C" >&6
5068 else
5069 ac_save_cc="$CC"
5070 CC="$CC -pthread"
5071 if test "$cross_compiling" = yes; then
5072 ac_cv_pthread=no
5073 else
5074 cat >conftest.$ac_ext <<_ACEOF
5075 /* confdefs.h. */
5076 _ACEOF
5077 cat confdefs.h >>conftest.$ac_ext
5078 cat >>conftest.$ac_ext <<_ACEOF
5079 /* end confdefs.h. */
5081 #include <pthread.h>
5083 void* routine(void* p){return NULL;}
5085 int main(){
5086 pthread_t p;
5087 if(pthread_create(&p,NULL,routine,NULL)!=0)
5088 return 1;
5089 (void)pthread_detach(p);
5090 return 0;
5093 _ACEOF
5094 rm -f conftest$ac_exeext
5095 if { (ac_try="$ac_link"
5096 case "(($ac_try" in
5097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5098 *) ac_try_echo=$ac_try;;
5099 esac
5100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5101 (eval "$ac_link") 2>&5
5102 ac_status=$?
5103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5104 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5105 { (case "(($ac_try" in
5106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5107 *) ac_try_echo=$ac_try;;
5108 esac
5109 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5110 (eval "$ac_try") 2>&5
5111 ac_status=$?
5112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5113 (exit $ac_status); }; }; then
5114 ac_cv_pthread=yes
5115 else
5116 echo "$as_me: program exited with status $ac_status" >&5
5117 echo "$as_me: failed program was:" >&5
5118 sed 's/^/| /' conftest.$ac_ext >&5
5120 ( exit $ac_status )
5121 ac_cv_pthread=no
5123 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5127 CC="$ac_save_cc"
5130 { echo "$as_me:$LINENO: result: $ac_cv_pthread" >&5
5131 echo "${ECHO_T}$ac_cv_pthread" >&6; }
5134 # If we have set a CC compiler flag for thread support then
5135 # check if it works for CXX, too.
5136 ac_cv_cxx_thread=no
5137 if test ! -z "$CXX"
5138 then
5139 { echo "$as_me:$LINENO: checking whether $CXX also accepts flags for thread support" >&5
5140 echo $ECHO_N "checking whether $CXX also accepts flags for thread support... $ECHO_C" >&6; }
5141 ac_save_cxx="$CXX"
5143 if test "$ac_cv_kpthread" = "yes"
5144 then
5145 CXX="$CXX -Kpthread"
5146 ac_cv_cxx_thread=yes
5147 elif test "$ac_cv_kthread" = "yes"
5148 then
5149 CXX="$CXX -Kthread"
5150 ac_cv_cxx_thread=yes
5151 elif test "$ac_cv_pthread" = "yes"
5152 then
5153 CXX="$CXX -pthread"
5154 ac_cv_cxx_thread=yes
5157 if test $ac_cv_cxx_thread = yes
5158 then
5159 echo 'void foo();int main(){foo();}void foo(){}' > conftest.$ac_ext
5160 $CXX -c conftest.$ac_ext 2>&5
5161 if $CXX -o conftest$ac_exeext conftest.$ac_objext 2>&5 \
5162 && test -s conftest$ac_exeext && ./conftest$ac_exeext
5163 then
5164 ac_cv_cxx_thread=yes
5165 else
5166 ac_cv_cxx_thread=no
5168 rm -fr conftest*
5170 { echo "$as_me:$LINENO: result: $ac_cv_cxx_thread" >&5
5171 echo "${ECHO_T}$ac_cv_cxx_thread" >&6; }
5173 CXX="$ac_save_cxx"
5176 # checks for header files
5177 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5178 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
5179 if test "${ac_cv_header_stdc+set}" = set; then
5180 echo $ECHO_N "(cached) $ECHO_C" >&6
5181 else
5182 cat >conftest.$ac_ext <<_ACEOF
5183 /* confdefs.h. */
5184 _ACEOF
5185 cat confdefs.h >>conftest.$ac_ext
5186 cat >>conftest.$ac_ext <<_ACEOF
5187 /* end confdefs.h. */
5188 #include <stdlib.h>
5189 #include <stdarg.h>
5190 #include <string.h>
5191 #include <float.h>
5194 main ()
5198 return 0;
5200 _ACEOF
5201 rm -f conftest.$ac_objext
5202 if { (ac_try="$ac_compile"
5203 case "(($ac_try" in
5204 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5205 *) ac_try_echo=$ac_try;;
5206 esac
5207 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5208 (eval "$ac_compile") 2>conftest.er1
5209 ac_status=$?
5210 grep -v '^ *+' conftest.er1 >conftest.err
5211 rm -f conftest.er1
5212 cat conftest.err >&5
5213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5214 (exit $ac_status); } && {
5215 test -z "$ac_c_werror_flag" ||
5216 test ! -s conftest.err
5217 } && test -s conftest.$ac_objext; then
5218 ac_cv_header_stdc=yes
5219 else
5220 echo "$as_me: failed program was:" >&5
5221 sed 's/^/| /' conftest.$ac_ext >&5
5223 ac_cv_header_stdc=no
5226 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5228 if test $ac_cv_header_stdc = yes; then
5229 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5230 cat >conftest.$ac_ext <<_ACEOF
5231 /* confdefs.h. */
5232 _ACEOF
5233 cat confdefs.h >>conftest.$ac_ext
5234 cat >>conftest.$ac_ext <<_ACEOF
5235 /* end confdefs.h. */
5236 #include <string.h>
5238 _ACEOF
5239 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5240 $EGREP "memchr" >/dev/null 2>&1; then
5242 else
5243 ac_cv_header_stdc=no
5245 rm -f conftest*
5249 if test $ac_cv_header_stdc = yes; then
5250 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5251 cat >conftest.$ac_ext <<_ACEOF
5252 /* confdefs.h. */
5253 _ACEOF
5254 cat confdefs.h >>conftest.$ac_ext
5255 cat >>conftest.$ac_ext <<_ACEOF
5256 /* end confdefs.h. */
5257 #include <stdlib.h>
5259 _ACEOF
5260 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5261 $EGREP "free" >/dev/null 2>&1; then
5263 else
5264 ac_cv_header_stdc=no
5266 rm -f conftest*
5270 if test $ac_cv_header_stdc = yes; then
5271 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5272 if test "$cross_compiling" = yes; then
5274 else
5275 cat >conftest.$ac_ext <<_ACEOF
5276 /* confdefs.h. */
5277 _ACEOF
5278 cat confdefs.h >>conftest.$ac_ext
5279 cat >>conftest.$ac_ext <<_ACEOF
5280 /* end confdefs.h. */
5281 #include <ctype.h>
5282 #include <stdlib.h>
5283 #if ((' ' & 0x0FF) == 0x020)
5284 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5285 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5286 #else
5287 # define ISLOWER(c) \
5288 (('a' <= (c) && (c) <= 'i') \
5289 || ('j' <= (c) && (c) <= 'r') \
5290 || ('s' <= (c) && (c) <= 'z'))
5291 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5292 #endif
5294 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5296 main ()
5298 int i;
5299 for (i = 0; i < 256; i++)
5300 if (XOR (islower (i), ISLOWER (i))
5301 || toupper (i) != TOUPPER (i))
5302 return 2;
5303 return 0;
5305 _ACEOF
5306 rm -f conftest$ac_exeext
5307 if { (ac_try="$ac_link"
5308 case "(($ac_try" in
5309 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5310 *) ac_try_echo=$ac_try;;
5311 esac
5312 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5313 (eval "$ac_link") 2>&5
5314 ac_status=$?
5315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5316 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5317 { (case "(($ac_try" in
5318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5319 *) ac_try_echo=$ac_try;;
5320 esac
5321 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5322 (eval "$ac_try") 2>&5
5323 ac_status=$?
5324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5325 (exit $ac_status); }; }; then
5327 else
5328 echo "$as_me: program exited with status $ac_status" >&5
5329 echo "$as_me: failed program was:" >&5
5330 sed 's/^/| /' conftest.$ac_ext >&5
5332 ( exit $ac_status )
5333 ac_cv_header_stdc=no
5335 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5341 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5342 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
5343 if test $ac_cv_header_stdc = yes; then
5345 cat >>confdefs.h <<\_ACEOF
5346 #define STDC_HEADERS 1
5347 _ACEOF
5351 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5361 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5362 inttypes.h stdint.h unistd.h
5364 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5365 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5366 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5367 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5368 echo $ECHO_N "(cached) $ECHO_C" >&6
5369 else
5370 cat >conftest.$ac_ext <<_ACEOF
5371 /* confdefs.h. */
5372 _ACEOF
5373 cat confdefs.h >>conftest.$ac_ext
5374 cat >>conftest.$ac_ext <<_ACEOF
5375 /* end confdefs.h. */
5376 $ac_includes_default
5378 #include <$ac_header>
5379 _ACEOF
5380 rm -f conftest.$ac_objext
5381 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
5388 ac_status=$?
5389 grep -v '^ *+' conftest.er1 >conftest.err
5390 rm -f conftest.er1
5391 cat conftest.err >&5
5392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5393 (exit $ac_status); } && {
5394 test -z "$ac_c_werror_flag" ||
5395 test ! -s conftest.err
5396 } && test -s conftest.$ac_objext; then
5397 eval "$as_ac_Header=yes"
5398 else
5399 echo "$as_me: failed program was:" >&5
5400 sed 's/^/| /' conftest.$ac_ext >&5
5402 eval "$as_ac_Header=no"
5405 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5407 ac_res=`eval echo '${'$as_ac_Header'}'`
5408 { echo "$as_me:$LINENO: result: $ac_res" >&5
5409 echo "${ECHO_T}$ac_res" >&6; }
5410 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5411 cat >>confdefs.h <<_ACEOF
5412 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5413 _ACEOF
5417 done
5474 for ac_header in asm/types.h conio.h curses.h direct.h dlfcn.h errno.h \
5475 fcntl.h grp.h \
5476 ieeefp.h io.h langinfo.h libintl.h ncurses.h poll.h process.h pthread.h \
5477 shadow.h signal.h stdint.h stropts.h termios.h thread.h \
5478 unistd.h utime.h \
5479 sys/audioio.h sys/bsdtty.h sys/epoll.h sys/event.h sys/file.h sys/loadavg.h \
5480 sys/lock.h sys/mkdev.h sys/modem.h \
5481 sys/param.h sys/poll.h sys/select.h sys/socket.h sys/statvfs.h sys/stat.h \
5482 sys/termio.h sys/time.h \
5483 sys/times.h sys/types.h sys/un.h sys/utsname.h sys/wait.h pty.h libutil.h \
5484 sys/resource.h netpacket/packet.h sysexits.h bluetooth.h \
5485 bluetooth/bluetooth.h linux/tipc.h
5487 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5488 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5489 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5490 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5491 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5492 echo $ECHO_N "(cached) $ECHO_C" >&6
5494 ac_res=`eval echo '${'$as_ac_Header'}'`
5495 { echo "$as_me:$LINENO: result: $ac_res" >&5
5496 echo "${ECHO_T}$ac_res" >&6; }
5497 else
5498 # Is the header compilable?
5499 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5500 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5501 cat >conftest.$ac_ext <<_ACEOF
5502 /* confdefs.h. */
5503 _ACEOF
5504 cat confdefs.h >>conftest.$ac_ext
5505 cat >>conftest.$ac_ext <<_ACEOF
5506 /* end confdefs.h. */
5507 $ac_includes_default
5508 #include <$ac_header>
5509 _ACEOF
5510 rm -f conftest.$ac_objext
5511 if { (ac_try="$ac_compile"
5512 case "(($ac_try" in
5513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5514 *) ac_try_echo=$ac_try;;
5515 esac
5516 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5517 (eval "$ac_compile") 2>conftest.er1
5518 ac_status=$?
5519 grep -v '^ *+' conftest.er1 >conftest.err
5520 rm -f conftest.er1
5521 cat conftest.err >&5
5522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5523 (exit $ac_status); } && {
5524 test -z "$ac_c_werror_flag" ||
5525 test ! -s conftest.err
5526 } && test -s conftest.$ac_objext; then
5527 ac_header_compiler=yes
5528 else
5529 echo "$as_me: failed program was:" >&5
5530 sed 's/^/| /' conftest.$ac_ext >&5
5532 ac_header_compiler=no
5535 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5536 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5537 echo "${ECHO_T}$ac_header_compiler" >&6; }
5539 # Is the header present?
5540 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5541 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5542 cat >conftest.$ac_ext <<_ACEOF
5543 /* confdefs.h. */
5544 _ACEOF
5545 cat confdefs.h >>conftest.$ac_ext
5546 cat >>conftest.$ac_ext <<_ACEOF
5547 /* end confdefs.h. */
5548 #include <$ac_header>
5549 _ACEOF
5550 if { (ac_try="$ac_cpp conftest.$ac_ext"
5551 case "(($ac_try" in
5552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5553 *) ac_try_echo=$ac_try;;
5554 esac
5555 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5556 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5557 ac_status=$?
5558 grep -v '^ *+' conftest.er1 >conftest.err
5559 rm -f conftest.er1
5560 cat conftest.err >&5
5561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5562 (exit $ac_status); } >/dev/null && {
5563 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5564 test ! -s conftest.err
5565 }; then
5566 ac_header_preproc=yes
5567 else
5568 echo "$as_me: failed program was:" >&5
5569 sed 's/^/| /' conftest.$ac_ext >&5
5571 ac_header_preproc=no
5574 rm -f conftest.err conftest.$ac_ext
5575 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5576 echo "${ECHO_T}$ac_header_preproc" >&6; }
5578 # So? What about this header?
5579 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5580 yes:no: )
5581 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5582 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5583 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5584 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5585 ac_header_preproc=yes
5587 no:yes:* )
5588 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5589 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5590 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5591 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5592 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5593 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5594 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5595 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5596 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5597 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5598 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5599 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5600 ( cat <<\_ASBOX
5601 ## ------------------------------------------------ ##
5602 ## Report this to http://www.python.org/python-bugs ##
5603 ## ------------------------------------------------ ##
5604 _ASBOX
5605 ) | sed "s/^/$as_me: WARNING: /" >&2
5607 esac
5608 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5609 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5610 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5611 echo $ECHO_N "(cached) $ECHO_C" >&6
5612 else
5613 eval "$as_ac_Header=\$ac_header_preproc"
5615 ac_res=`eval echo '${'$as_ac_Header'}'`
5616 { echo "$as_me:$LINENO: result: $ac_res" >&5
5617 echo "${ECHO_T}$ac_res" >&6; }
5620 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5621 cat >>confdefs.h <<_ACEOF
5622 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5623 _ACEOF
5627 done
5634 ac_header_dirent=no
5635 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
5636 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
5637 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
5638 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
5639 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5640 echo $ECHO_N "(cached) $ECHO_C" >&6
5641 else
5642 cat >conftest.$ac_ext <<_ACEOF
5643 /* confdefs.h. */
5644 _ACEOF
5645 cat confdefs.h >>conftest.$ac_ext
5646 cat >>conftest.$ac_ext <<_ACEOF
5647 /* end confdefs.h. */
5648 #include <sys/types.h>
5649 #include <$ac_hdr>
5652 main ()
5654 if ((DIR *) 0)
5655 return 0;
5657 return 0;
5659 _ACEOF
5660 rm -f conftest.$ac_objext
5661 if { (ac_try="$ac_compile"
5662 case "(($ac_try" in
5663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5664 *) ac_try_echo=$ac_try;;
5665 esac
5666 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5667 (eval "$ac_compile") 2>conftest.er1
5668 ac_status=$?
5669 grep -v '^ *+' conftest.er1 >conftest.err
5670 rm -f conftest.er1
5671 cat conftest.err >&5
5672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5673 (exit $ac_status); } && {
5674 test -z "$ac_c_werror_flag" ||
5675 test ! -s conftest.err
5676 } && test -s conftest.$ac_objext; then
5677 eval "$as_ac_Header=yes"
5678 else
5679 echo "$as_me: failed program was:" >&5
5680 sed 's/^/| /' conftest.$ac_ext >&5
5682 eval "$as_ac_Header=no"
5685 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5687 ac_res=`eval echo '${'$as_ac_Header'}'`
5688 { echo "$as_me:$LINENO: result: $ac_res" >&5
5689 echo "${ECHO_T}$ac_res" >&6; }
5690 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5691 cat >>confdefs.h <<_ACEOF
5692 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
5693 _ACEOF
5695 ac_header_dirent=$ac_hdr; break
5698 done
5699 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
5700 if test $ac_header_dirent = dirent.h; then
5701 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
5702 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
5703 if test "${ac_cv_search_opendir+set}" = set; then
5704 echo $ECHO_N "(cached) $ECHO_C" >&6
5705 else
5706 ac_func_search_save_LIBS=$LIBS
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. */
5714 /* Override any GCC internal prototype to avoid an error.
5715 Use char because int might match the return type of a GCC
5716 builtin and then its argument prototype would still apply. */
5717 #ifdef __cplusplus
5718 extern "C"
5719 #endif
5720 char opendir ();
5722 main ()
5724 return opendir ();
5726 return 0;
5728 _ACEOF
5729 for ac_lib in '' dir; do
5730 if test -z "$ac_lib"; then
5731 ac_res="none required"
5732 else
5733 ac_res=-l$ac_lib
5734 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5736 rm -f conftest.$ac_objext conftest$ac_exeext
5737 if { (ac_try="$ac_link"
5738 case "(($ac_try" in
5739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5740 *) ac_try_echo=$ac_try;;
5741 esac
5742 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5743 (eval "$ac_link") 2>conftest.er1
5744 ac_status=$?
5745 grep -v '^ *+' conftest.er1 >conftest.err
5746 rm -f conftest.er1
5747 cat conftest.err >&5
5748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5749 (exit $ac_status); } && {
5750 test -z "$ac_c_werror_flag" ||
5751 test ! -s conftest.err
5752 } && test -s conftest$ac_exeext &&
5753 $as_test_x conftest$ac_exeext; then
5754 ac_cv_search_opendir=$ac_res
5755 else
5756 echo "$as_me: failed program was:" >&5
5757 sed 's/^/| /' conftest.$ac_ext >&5
5762 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5763 conftest$ac_exeext
5764 if test "${ac_cv_search_opendir+set}" = set; then
5765 break
5767 done
5768 if test "${ac_cv_search_opendir+set}" = set; then
5770 else
5771 ac_cv_search_opendir=no
5773 rm conftest.$ac_ext
5774 LIBS=$ac_func_search_save_LIBS
5776 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
5777 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
5778 ac_res=$ac_cv_search_opendir
5779 if test "$ac_res" != no; then
5780 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5784 else
5785 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
5786 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
5787 if test "${ac_cv_search_opendir+set}" = set; then
5788 echo $ECHO_N "(cached) $ECHO_C" >&6
5789 else
5790 ac_func_search_save_LIBS=$LIBS
5791 cat >conftest.$ac_ext <<_ACEOF
5792 /* confdefs.h. */
5793 _ACEOF
5794 cat confdefs.h >>conftest.$ac_ext
5795 cat >>conftest.$ac_ext <<_ACEOF
5796 /* end confdefs.h. */
5798 /* Override any GCC internal prototype to avoid an error.
5799 Use char because int might match the return type of a GCC
5800 builtin and then its argument prototype would still apply. */
5801 #ifdef __cplusplus
5802 extern "C"
5803 #endif
5804 char opendir ();
5806 main ()
5808 return opendir ();
5810 return 0;
5812 _ACEOF
5813 for ac_lib in '' x; do
5814 if test -z "$ac_lib"; then
5815 ac_res="none required"
5816 else
5817 ac_res=-l$ac_lib
5818 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5820 rm -f conftest.$ac_objext conftest$ac_exeext
5821 if { (ac_try="$ac_link"
5822 case "(($ac_try" in
5823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5824 *) ac_try_echo=$ac_try;;
5825 esac
5826 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5827 (eval "$ac_link") 2>conftest.er1
5828 ac_status=$?
5829 grep -v '^ *+' conftest.er1 >conftest.err
5830 rm -f conftest.er1
5831 cat conftest.err >&5
5832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5833 (exit $ac_status); } && {
5834 test -z "$ac_c_werror_flag" ||
5835 test ! -s conftest.err
5836 } && test -s conftest$ac_exeext &&
5837 $as_test_x conftest$ac_exeext; then
5838 ac_cv_search_opendir=$ac_res
5839 else
5840 echo "$as_me: failed program was:" >&5
5841 sed 's/^/| /' conftest.$ac_ext >&5
5846 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5847 conftest$ac_exeext
5848 if test "${ac_cv_search_opendir+set}" = set; then
5849 break
5851 done
5852 if test "${ac_cv_search_opendir+set}" = set; then
5854 else
5855 ac_cv_search_opendir=no
5857 rm conftest.$ac_ext
5858 LIBS=$ac_func_search_save_LIBS
5860 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
5861 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
5862 ac_res=$ac_cv_search_opendir
5863 if test "$ac_res" != no; then
5864 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5870 { echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
5871 echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6; }
5872 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
5873 echo $ECHO_N "(cached) $ECHO_C" >&6
5874 else
5875 cat >conftest.$ac_ext <<_ACEOF
5876 /* confdefs.h. */
5877 _ACEOF
5878 cat confdefs.h >>conftest.$ac_ext
5879 cat >>conftest.$ac_ext <<_ACEOF
5880 /* end confdefs.h. */
5881 #include <sys/types.h>
5883 main ()
5885 return makedev(0, 0);
5887 return 0;
5889 _ACEOF
5890 rm -f conftest.$ac_objext conftest$ac_exeext
5891 if { (ac_try="$ac_link"
5892 case "(($ac_try" in
5893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5894 *) ac_try_echo=$ac_try;;
5895 esac
5896 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5897 (eval "$ac_link") 2>conftest.er1
5898 ac_status=$?
5899 grep -v '^ *+' conftest.er1 >conftest.err
5900 rm -f conftest.er1
5901 cat conftest.err >&5
5902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5903 (exit $ac_status); } && {
5904 test -z "$ac_c_werror_flag" ||
5905 test ! -s conftest.err
5906 } && test -s conftest$ac_exeext &&
5907 $as_test_x conftest$ac_exeext; then
5908 ac_cv_header_sys_types_h_makedev=yes
5909 else
5910 echo "$as_me: failed program was:" >&5
5911 sed 's/^/| /' conftest.$ac_ext >&5
5913 ac_cv_header_sys_types_h_makedev=no
5916 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5917 conftest$ac_exeext conftest.$ac_ext
5920 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
5921 echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6; }
5923 if test $ac_cv_header_sys_types_h_makedev = no; then
5924 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
5925 { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
5926 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
5927 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
5928 echo $ECHO_N "(cached) $ECHO_C" >&6
5930 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
5931 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
5932 else
5933 # Is the header compilable?
5934 { echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
5935 echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6; }
5936 cat >conftest.$ac_ext <<_ACEOF
5937 /* confdefs.h. */
5938 _ACEOF
5939 cat confdefs.h >>conftest.$ac_ext
5940 cat >>conftest.$ac_ext <<_ACEOF
5941 /* end confdefs.h. */
5942 $ac_includes_default
5943 #include <sys/mkdev.h>
5944 _ACEOF
5945 rm -f conftest.$ac_objext
5946 if { (ac_try="$ac_compile"
5947 case "(($ac_try" in
5948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5949 *) ac_try_echo=$ac_try;;
5950 esac
5951 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5952 (eval "$ac_compile") 2>conftest.er1
5953 ac_status=$?
5954 grep -v '^ *+' conftest.er1 >conftest.err
5955 rm -f conftest.er1
5956 cat conftest.err >&5
5957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5958 (exit $ac_status); } && {
5959 test -z "$ac_c_werror_flag" ||
5960 test ! -s conftest.err
5961 } && test -s conftest.$ac_objext; then
5962 ac_header_compiler=yes
5963 else
5964 echo "$as_me: failed program was:" >&5
5965 sed 's/^/| /' conftest.$ac_ext >&5
5967 ac_header_compiler=no
5970 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5971 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5972 echo "${ECHO_T}$ac_header_compiler" >&6; }
5974 # Is the header present?
5975 { echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
5976 echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6; }
5977 cat >conftest.$ac_ext <<_ACEOF
5978 /* confdefs.h. */
5979 _ACEOF
5980 cat confdefs.h >>conftest.$ac_ext
5981 cat >>conftest.$ac_ext <<_ACEOF
5982 /* end confdefs.h. */
5983 #include <sys/mkdev.h>
5984 _ACEOF
5985 if { (ac_try="$ac_cpp conftest.$ac_ext"
5986 case "(($ac_try" in
5987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5988 *) ac_try_echo=$ac_try;;
5989 esac
5990 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5991 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5992 ac_status=$?
5993 grep -v '^ *+' conftest.er1 >conftest.err
5994 rm -f conftest.er1
5995 cat conftest.err >&5
5996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5997 (exit $ac_status); } >/dev/null && {
5998 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5999 test ! -s conftest.err
6000 }; then
6001 ac_header_preproc=yes
6002 else
6003 echo "$as_me: failed program was:" >&5
6004 sed 's/^/| /' conftest.$ac_ext >&5
6006 ac_header_preproc=no
6009 rm -f conftest.err conftest.$ac_ext
6010 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6011 echo "${ECHO_T}$ac_header_preproc" >&6; }
6013 # So? What about this header?
6014 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6015 yes:no: )
6016 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
6017 echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6018 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&5
6019 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&2;}
6020 ac_header_preproc=yes
6022 no:yes:* )
6023 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
6024 echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
6025 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&5
6026 echo "$as_me: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&2;}
6027 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: see the Autoconf documentation" >&5
6028 echo "$as_me: WARNING: sys/mkdev.h: see the Autoconf documentation" >&2;}
6029 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&5
6030 echo "$as_me: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&2;}
6031 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
6032 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
6033 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&5
6034 echo "$as_me: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&2;}
6035 ( cat <<\_ASBOX
6036 ## ------------------------------------------------ ##
6037 ## Report this to http://www.python.org/python-bugs ##
6038 ## ------------------------------------------------ ##
6039 _ASBOX
6040 ) | sed "s/^/$as_me: WARNING: /" >&2
6042 esac
6043 { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
6044 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
6045 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
6046 echo $ECHO_N "(cached) $ECHO_C" >&6
6047 else
6048 ac_cv_header_sys_mkdev_h=$ac_header_preproc
6050 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
6051 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
6054 if test $ac_cv_header_sys_mkdev_h = yes; then
6056 cat >>confdefs.h <<\_ACEOF
6057 #define MAJOR_IN_MKDEV 1
6058 _ACEOF
6064 if test $ac_cv_header_sys_mkdev_h = no; then
6065 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
6066 { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
6067 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
6068 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
6069 echo $ECHO_N "(cached) $ECHO_C" >&6
6071 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
6072 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
6073 else
6074 # Is the header compilable?
6075 { echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
6076 echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6; }
6077 cat >conftest.$ac_ext <<_ACEOF
6078 /* confdefs.h. */
6079 _ACEOF
6080 cat confdefs.h >>conftest.$ac_ext
6081 cat >>conftest.$ac_ext <<_ACEOF
6082 /* end confdefs.h. */
6083 $ac_includes_default
6084 #include <sys/sysmacros.h>
6085 _ACEOF
6086 rm -f conftest.$ac_objext
6087 if { (ac_try="$ac_compile"
6088 case "(($ac_try" in
6089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6090 *) ac_try_echo=$ac_try;;
6091 esac
6092 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6093 (eval "$ac_compile") 2>conftest.er1
6094 ac_status=$?
6095 grep -v '^ *+' conftest.er1 >conftest.err
6096 rm -f conftest.er1
6097 cat conftest.err >&5
6098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6099 (exit $ac_status); } && {
6100 test -z "$ac_c_werror_flag" ||
6101 test ! -s conftest.err
6102 } && test -s conftest.$ac_objext; then
6103 ac_header_compiler=yes
6104 else
6105 echo "$as_me: failed program was:" >&5
6106 sed 's/^/| /' conftest.$ac_ext >&5
6108 ac_header_compiler=no
6111 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6112 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6113 echo "${ECHO_T}$ac_header_compiler" >&6; }
6115 # Is the header present?
6116 { echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
6117 echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6; }
6118 cat >conftest.$ac_ext <<_ACEOF
6119 /* confdefs.h. */
6120 _ACEOF
6121 cat confdefs.h >>conftest.$ac_ext
6122 cat >>conftest.$ac_ext <<_ACEOF
6123 /* end confdefs.h. */
6124 #include <sys/sysmacros.h>
6125 _ACEOF
6126 if { (ac_try="$ac_cpp conftest.$ac_ext"
6127 case "(($ac_try" in
6128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6129 *) ac_try_echo=$ac_try;;
6130 esac
6131 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6132 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6133 ac_status=$?
6134 grep -v '^ *+' conftest.er1 >conftest.err
6135 rm -f conftest.er1
6136 cat conftest.err >&5
6137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6138 (exit $ac_status); } >/dev/null && {
6139 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6140 test ! -s conftest.err
6141 }; then
6142 ac_header_preproc=yes
6143 else
6144 echo "$as_me: failed program was:" >&5
6145 sed 's/^/| /' conftest.$ac_ext >&5
6147 ac_header_preproc=no
6150 rm -f conftest.err conftest.$ac_ext
6151 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6152 echo "${ECHO_T}$ac_header_preproc" >&6; }
6154 # So? What about this header?
6155 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6156 yes:no: )
6157 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
6158 echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6159 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&5
6160 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&2;}
6161 ac_header_preproc=yes
6163 no:yes:* )
6164 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
6165 echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
6166 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&5
6167 echo "$as_me: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&2;}
6168 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&5
6169 echo "$as_me: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&2;}
6170 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&5
6171 echo "$as_me: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&2;}
6172 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
6173 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
6174 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&5
6175 echo "$as_me: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&2;}
6176 ( cat <<\_ASBOX
6177 ## ------------------------------------------------ ##
6178 ## Report this to http://www.python.org/python-bugs ##
6179 ## ------------------------------------------------ ##
6180 _ASBOX
6181 ) | sed "s/^/$as_me: WARNING: /" >&2
6183 esac
6184 { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
6185 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
6186 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
6187 echo $ECHO_N "(cached) $ECHO_C" >&6
6188 else
6189 ac_cv_header_sys_sysmacros_h=$ac_header_preproc
6191 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
6192 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
6195 if test $ac_cv_header_sys_sysmacros_h = yes; then
6197 cat >>confdefs.h <<\_ACEOF
6198 #define MAJOR_IN_SYSMACROS 1
6199 _ACEOF
6208 # On Solaris, term.h requires curses.h
6210 for ac_header in term.h
6212 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6213 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6214 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6215 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6216 echo $ECHO_N "(cached) $ECHO_C" >&6
6217 else
6218 cat >conftest.$ac_ext <<_ACEOF
6219 /* confdefs.h. */
6220 _ACEOF
6221 cat confdefs.h >>conftest.$ac_ext
6222 cat >>conftest.$ac_ext <<_ACEOF
6223 /* end confdefs.h. */
6225 #ifdef HAVE_CURSES_H
6226 #include <curses.h>
6227 #endif
6230 #include <$ac_header>
6231 _ACEOF
6232 rm -f conftest.$ac_objext
6233 if { (ac_try="$ac_compile"
6234 case "(($ac_try" in
6235 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6236 *) ac_try_echo=$ac_try;;
6237 esac
6238 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6239 (eval "$ac_compile") 2>conftest.er1
6240 ac_status=$?
6241 grep -v '^ *+' conftest.er1 >conftest.err
6242 rm -f conftest.er1
6243 cat conftest.err >&5
6244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6245 (exit $ac_status); } && {
6246 test -z "$ac_c_werror_flag" ||
6247 test ! -s conftest.err
6248 } && test -s conftest.$ac_objext; then
6249 eval "$as_ac_Header=yes"
6250 else
6251 echo "$as_me: failed program was:" >&5
6252 sed 's/^/| /' conftest.$ac_ext >&5
6254 eval "$as_ac_Header=no"
6257 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6259 ac_res=`eval echo '${'$as_ac_Header'}'`
6260 { echo "$as_me:$LINENO: result: $ac_res" >&5
6261 echo "${ECHO_T}$ac_res" >&6; }
6262 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6263 cat >>confdefs.h <<_ACEOF
6264 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6265 _ACEOF
6269 done
6272 # On Linux, netlink.h requires asm/types.h
6274 for ac_header in linux/netlink.h
6276 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6277 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6278 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6279 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6280 echo $ECHO_N "(cached) $ECHO_C" >&6
6281 else
6282 cat >conftest.$ac_ext <<_ACEOF
6283 /* confdefs.h. */
6284 _ACEOF
6285 cat confdefs.h >>conftest.$ac_ext
6286 cat >>conftest.$ac_ext <<_ACEOF
6287 /* end confdefs.h. */
6289 #ifdef HAVE_ASM_TYPES_H
6290 #include <asm/types.h>
6291 #endif
6292 #ifdef HAVE_SYS_SOCKET_H
6293 #include <sys/socket.h>
6294 #endif
6297 #include <$ac_header>
6298 _ACEOF
6299 rm -f conftest.$ac_objext
6300 if { (ac_try="$ac_compile"
6301 case "(($ac_try" in
6302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6303 *) ac_try_echo=$ac_try;;
6304 esac
6305 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6306 (eval "$ac_compile") 2>conftest.er1
6307 ac_status=$?
6308 grep -v '^ *+' conftest.er1 >conftest.err
6309 rm -f conftest.er1
6310 cat conftest.err >&5
6311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6312 (exit $ac_status); } && {
6313 test -z "$ac_c_werror_flag" ||
6314 test ! -s conftest.err
6315 } && test -s conftest.$ac_objext; then
6316 eval "$as_ac_Header=yes"
6317 else
6318 echo "$as_me: failed program was:" >&5
6319 sed 's/^/| /' conftest.$ac_ext >&5
6321 eval "$as_ac_Header=no"
6324 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6326 ac_res=`eval echo '${'$as_ac_Header'}'`
6327 { echo "$as_me:$LINENO: result: $ac_res" >&5
6328 echo "${ECHO_T}$ac_res" >&6; }
6329 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6330 cat >>confdefs.h <<_ACEOF
6331 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6332 _ACEOF
6336 done
6339 # checks for typedefs
6340 was_it_defined=no
6341 { echo "$as_me:$LINENO: checking for clock_t in time.h" >&5
6342 echo $ECHO_N "checking for clock_t in time.h... $ECHO_C" >&6; }
6343 cat >conftest.$ac_ext <<_ACEOF
6344 /* confdefs.h. */
6345 _ACEOF
6346 cat confdefs.h >>conftest.$ac_ext
6347 cat >>conftest.$ac_ext <<_ACEOF
6348 /* end confdefs.h. */
6349 #include <time.h>
6351 _ACEOF
6352 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6353 $EGREP "clock_t" >/dev/null 2>&1; then
6354 was_it_defined=yes
6355 else
6358 cat >>confdefs.h <<\_ACEOF
6359 #define clock_t long
6360 _ACEOF
6364 rm -f conftest*
6366 { echo "$as_me:$LINENO: result: $was_it_defined" >&5
6367 echo "${ECHO_T}$was_it_defined" >&6; }
6369 # Check whether using makedev requires defining _OSF_SOURCE
6370 { echo "$as_me:$LINENO: checking for makedev" >&5
6371 echo $ECHO_N "checking for makedev... $ECHO_C" >&6; }
6372 cat >conftest.$ac_ext <<_ACEOF
6373 /* confdefs.h. */
6374 _ACEOF
6375 cat confdefs.h >>conftest.$ac_ext
6376 cat >>conftest.$ac_ext <<_ACEOF
6377 /* end confdefs.h. */
6378 #include <sys/types.h>
6380 main ()
6382 makedev(0, 0)
6384 return 0;
6386 _ACEOF
6387 rm -f conftest.$ac_objext conftest$ac_exeext
6388 if { (ac_try="$ac_link"
6389 case "(($ac_try" in
6390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6391 *) ac_try_echo=$ac_try;;
6392 esac
6393 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6394 (eval "$ac_link") 2>conftest.er1
6395 ac_status=$?
6396 grep -v '^ *+' conftest.er1 >conftest.err
6397 rm -f conftest.er1
6398 cat conftest.err >&5
6399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6400 (exit $ac_status); } && {
6401 test -z "$ac_c_werror_flag" ||
6402 test ! -s conftest.err
6403 } && test -s conftest$ac_exeext &&
6404 $as_test_x conftest$ac_exeext; then
6405 ac_cv_has_makedev=yes
6406 else
6407 echo "$as_me: failed program was:" >&5
6408 sed 's/^/| /' conftest.$ac_ext >&5
6410 ac_cv_has_makedev=no
6413 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6414 conftest$ac_exeext conftest.$ac_ext
6415 if test "$ac_cv_has_makedev" = "no"; then
6416 # we didn't link, try if _OSF_SOURCE will allow us to link
6417 cat >conftest.$ac_ext <<_ACEOF
6418 /* confdefs.h. */
6419 _ACEOF
6420 cat confdefs.h >>conftest.$ac_ext
6421 cat >>conftest.$ac_ext <<_ACEOF
6422 /* end confdefs.h. */
6424 #define _OSF_SOURCE 1
6425 #include <sys/types.h>
6428 main ()
6430 makedev(0, 0)
6432 return 0;
6434 _ACEOF
6435 rm -f conftest.$ac_objext conftest$ac_exeext
6436 if { (ac_try="$ac_link"
6437 case "(($ac_try" in
6438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6439 *) ac_try_echo=$ac_try;;
6440 esac
6441 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6442 (eval "$ac_link") 2>conftest.er1
6443 ac_status=$?
6444 grep -v '^ *+' conftest.er1 >conftest.err
6445 rm -f conftest.er1
6446 cat conftest.err >&5
6447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6448 (exit $ac_status); } && {
6449 test -z "$ac_c_werror_flag" ||
6450 test ! -s conftest.err
6451 } && test -s conftest$ac_exeext &&
6452 $as_test_x conftest$ac_exeext; then
6453 ac_cv_has_makedev=yes
6454 else
6455 echo "$as_me: failed program was:" >&5
6456 sed 's/^/| /' conftest.$ac_ext >&5
6458 ac_cv_has_makedev=no
6461 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6462 conftest$ac_exeext conftest.$ac_ext
6463 if test "$ac_cv_has_makedev" = "yes"; then
6465 cat >>confdefs.h <<\_ACEOF
6466 #define _OSF_SOURCE 1
6467 _ACEOF
6471 { echo "$as_me:$LINENO: result: $ac_cv_has_makedev" >&5
6472 echo "${ECHO_T}$ac_cv_has_makedev" >&6; }
6473 if test "$ac_cv_has_makedev" = "yes"; then
6475 cat >>confdefs.h <<\_ACEOF
6476 #define HAVE_MAKEDEV 1
6477 _ACEOF
6481 # Enabling LFS on Solaris (2.6 to 9) with gcc 2.95 triggers a bug in
6482 # the system headers: If _XOPEN_SOURCE and _LARGEFILE_SOURCE are
6483 # defined, but the compiler does not support pragma redefine_extname,
6484 # and _LARGEFILE64_SOURCE is not defined, the headers refer to 64-bit
6485 # structures (such as rlimit64) without declaring them. As a
6486 # work-around, disable LFS on such configurations
6488 use_lfs=yes
6489 { echo "$as_me:$LINENO: checking Solaris LFS bug" >&5
6490 echo $ECHO_N "checking Solaris LFS bug... $ECHO_C" >&6; }
6491 cat >conftest.$ac_ext <<_ACEOF
6492 /* confdefs.h. */
6493 _ACEOF
6494 cat confdefs.h >>conftest.$ac_ext
6495 cat >>conftest.$ac_ext <<_ACEOF
6496 /* end confdefs.h. */
6498 #define _LARGEFILE_SOURCE 1
6499 #define _FILE_OFFSET_BITS 64
6500 #include <sys/resource.h>
6503 main ()
6505 struct rlimit foo;
6507 return 0;
6509 _ACEOF
6510 rm -f conftest.$ac_objext
6511 if { (ac_try="$ac_compile"
6512 case "(($ac_try" in
6513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6514 *) ac_try_echo=$ac_try;;
6515 esac
6516 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6517 (eval "$ac_compile") 2>conftest.er1
6518 ac_status=$?
6519 grep -v '^ *+' conftest.er1 >conftest.err
6520 rm -f conftest.er1
6521 cat conftest.err >&5
6522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6523 (exit $ac_status); } && {
6524 test -z "$ac_c_werror_flag" ||
6525 test ! -s conftest.err
6526 } && test -s conftest.$ac_objext; then
6527 sol_lfs_bug=no
6528 else
6529 echo "$as_me: failed program was:" >&5
6530 sed 's/^/| /' conftest.$ac_ext >&5
6532 sol_lfs_bug=yes
6535 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6536 { echo "$as_me:$LINENO: result: $sol_lfs_bug" >&5
6537 echo "${ECHO_T}$sol_lfs_bug" >&6; }
6538 if test "$sol_lfs_bug" = "yes"; then
6539 use_lfs=no
6542 if test "$use_lfs" = "yes"; then
6543 # Two defines needed to enable largefile support on various platforms
6544 # These may affect some typedefs
6546 cat >>confdefs.h <<\_ACEOF
6547 #define _LARGEFILE_SOURCE 1
6548 _ACEOF
6551 cat >>confdefs.h <<\_ACEOF
6552 #define _FILE_OFFSET_BITS 64
6553 _ACEOF
6557 # Add some code to confdefs.h so that the test for off_t works on SCO
6558 cat >> confdefs.h <<\EOF
6559 #if defined(SCO_DS)
6560 #undef _OFF_T
6561 #endif
6564 # Type availability checks
6565 { echo "$as_me:$LINENO: checking for mode_t" >&5
6566 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; }
6567 if test "${ac_cv_type_mode_t+set}" = set; then
6568 echo $ECHO_N "(cached) $ECHO_C" >&6
6569 else
6570 cat >conftest.$ac_ext <<_ACEOF
6571 /* confdefs.h. */
6572 _ACEOF
6573 cat confdefs.h >>conftest.$ac_ext
6574 cat >>conftest.$ac_ext <<_ACEOF
6575 /* end confdefs.h. */
6576 $ac_includes_default
6577 typedef mode_t ac__type_new_;
6579 main ()
6581 if ((ac__type_new_ *) 0)
6582 return 0;
6583 if (sizeof (ac__type_new_))
6584 return 0;
6586 return 0;
6588 _ACEOF
6589 rm -f conftest.$ac_objext
6590 if { (ac_try="$ac_compile"
6591 case "(($ac_try" in
6592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6593 *) ac_try_echo=$ac_try;;
6594 esac
6595 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6596 (eval "$ac_compile") 2>conftest.er1
6597 ac_status=$?
6598 grep -v '^ *+' conftest.er1 >conftest.err
6599 rm -f conftest.er1
6600 cat conftest.err >&5
6601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6602 (exit $ac_status); } && {
6603 test -z "$ac_c_werror_flag" ||
6604 test ! -s conftest.err
6605 } && test -s conftest.$ac_objext; then
6606 ac_cv_type_mode_t=yes
6607 else
6608 echo "$as_me: failed program was:" >&5
6609 sed 's/^/| /' conftest.$ac_ext >&5
6611 ac_cv_type_mode_t=no
6614 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6616 { echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
6617 echo "${ECHO_T}$ac_cv_type_mode_t" >&6; }
6618 if test $ac_cv_type_mode_t = yes; then
6620 else
6622 cat >>confdefs.h <<_ACEOF
6623 #define mode_t int
6624 _ACEOF
6628 { echo "$as_me:$LINENO: checking for off_t" >&5
6629 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
6630 if test "${ac_cv_type_off_t+set}" = set; then
6631 echo $ECHO_N "(cached) $ECHO_C" >&6
6632 else
6633 cat >conftest.$ac_ext <<_ACEOF
6634 /* confdefs.h. */
6635 _ACEOF
6636 cat confdefs.h >>conftest.$ac_ext
6637 cat >>conftest.$ac_ext <<_ACEOF
6638 /* end confdefs.h. */
6639 $ac_includes_default
6640 typedef off_t ac__type_new_;
6642 main ()
6644 if ((ac__type_new_ *) 0)
6645 return 0;
6646 if (sizeof (ac__type_new_))
6647 return 0;
6649 return 0;
6651 _ACEOF
6652 rm -f conftest.$ac_objext
6653 if { (ac_try="$ac_compile"
6654 case "(($ac_try" in
6655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6656 *) ac_try_echo=$ac_try;;
6657 esac
6658 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6659 (eval "$ac_compile") 2>conftest.er1
6660 ac_status=$?
6661 grep -v '^ *+' conftest.er1 >conftest.err
6662 rm -f conftest.er1
6663 cat conftest.err >&5
6664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6665 (exit $ac_status); } && {
6666 test -z "$ac_c_werror_flag" ||
6667 test ! -s conftest.err
6668 } && test -s conftest.$ac_objext; then
6669 ac_cv_type_off_t=yes
6670 else
6671 echo "$as_me: failed program was:" >&5
6672 sed 's/^/| /' conftest.$ac_ext >&5
6674 ac_cv_type_off_t=no
6677 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6679 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
6680 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
6681 if test $ac_cv_type_off_t = yes; then
6683 else
6685 cat >>confdefs.h <<_ACEOF
6686 #define off_t long int
6687 _ACEOF
6691 { echo "$as_me:$LINENO: checking for pid_t" >&5
6692 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
6693 if test "${ac_cv_type_pid_t+set}" = set; then
6694 echo $ECHO_N "(cached) $ECHO_C" >&6
6695 else
6696 cat >conftest.$ac_ext <<_ACEOF
6697 /* confdefs.h. */
6698 _ACEOF
6699 cat confdefs.h >>conftest.$ac_ext
6700 cat >>conftest.$ac_ext <<_ACEOF
6701 /* end confdefs.h. */
6702 $ac_includes_default
6703 typedef pid_t ac__type_new_;
6705 main ()
6707 if ((ac__type_new_ *) 0)
6708 return 0;
6709 if (sizeof (ac__type_new_))
6710 return 0;
6712 return 0;
6714 _ACEOF
6715 rm -f conftest.$ac_objext
6716 if { (ac_try="$ac_compile"
6717 case "(($ac_try" in
6718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6719 *) ac_try_echo=$ac_try;;
6720 esac
6721 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6722 (eval "$ac_compile") 2>conftest.er1
6723 ac_status=$?
6724 grep -v '^ *+' conftest.er1 >conftest.err
6725 rm -f conftest.er1
6726 cat conftest.err >&5
6727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6728 (exit $ac_status); } && {
6729 test -z "$ac_c_werror_flag" ||
6730 test ! -s conftest.err
6731 } && test -s conftest.$ac_objext; then
6732 ac_cv_type_pid_t=yes
6733 else
6734 echo "$as_me: failed program was:" >&5
6735 sed 's/^/| /' conftest.$ac_ext >&5
6737 ac_cv_type_pid_t=no
6740 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6742 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
6743 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
6744 if test $ac_cv_type_pid_t = yes; then
6746 else
6748 cat >>confdefs.h <<_ACEOF
6749 #define pid_t int
6750 _ACEOF
6754 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
6755 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
6756 if test "${ac_cv_type_signal+set}" = set; then
6757 echo $ECHO_N "(cached) $ECHO_C" >&6
6758 else
6759 cat >conftest.$ac_ext <<_ACEOF
6760 /* confdefs.h. */
6761 _ACEOF
6762 cat confdefs.h >>conftest.$ac_ext
6763 cat >>conftest.$ac_ext <<_ACEOF
6764 /* end confdefs.h. */
6765 #include <sys/types.h>
6766 #include <signal.h>
6769 main ()
6771 return *(signal (0, 0)) (0) == 1;
6773 return 0;
6775 _ACEOF
6776 rm -f conftest.$ac_objext
6777 if { (ac_try="$ac_compile"
6778 case "(($ac_try" in
6779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6780 *) ac_try_echo=$ac_try;;
6781 esac
6782 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6783 (eval "$ac_compile") 2>conftest.er1
6784 ac_status=$?
6785 grep -v '^ *+' conftest.er1 >conftest.err
6786 rm -f conftest.er1
6787 cat conftest.err >&5
6788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6789 (exit $ac_status); } && {
6790 test -z "$ac_c_werror_flag" ||
6791 test ! -s conftest.err
6792 } && test -s conftest.$ac_objext; then
6793 ac_cv_type_signal=int
6794 else
6795 echo "$as_me: failed program was:" >&5
6796 sed 's/^/| /' conftest.$ac_ext >&5
6798 ac_cv_type_signal=void
6801 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6803 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
6804 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
6806 cat >>confdefs.h <<_ACEOF
6807 #define RETSIGTYPE $ac_cv_type_signal
6808 _ACEOF
6811 { echo "$as_me:$LINENO: checking for size_t" >&5
6812 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
6813 if test "${ac_cv_type_size_t+set}" = set; then
6814 echo $ECHO_N "(cached) $ECHO_C" >&6
6815 else
6816 cat >conftest.$ac_ext <<_ACEOF
6817 /* confdefs.h. */
6818 _ACEOF
6819 cat confdefs.h >>conftest.$ac_ext
6820 cat >>conftest.$ac_ext <<_ACEOF
6821 /* end confdefs.h. */
6822 $ac_includes_default
6823 typedef size_t ac__type_new_;
6825 main ()
6827 if ((ac__type_new_ *) 0)
6828 return 0;
6829 if (sizeof (ac__type_new_))
6830 return 0;
6832 return 0;
6834 _ACEOF
6835 rm -f conftest.$ac_objext
6836 if { (ac_try="$ac_compile"
6837 case "(($ac_try" in
6838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6839 *) ac_try_echo=$ac_try;;
6840 esac
6841 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6842 (eval "$ac_compile") 2>conftest.er1
6843 ac_status=$?
6844 grep -v '^ *+' conftest.er1 >conftest.err
6845 rm -f conftest.er1
6846 cat conftest.err >&5
6847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6848 (exit $ac_status); } && {
6849 test -z "$ac_c_werror_flag" ||
6850 test ! -s conftest.err
6851 } && test -s conftest.$ac_objext; then
6852 ac_cv_type_size_t=yes
6853 else
6854 echo "$as_me: failed program was:" >&5
6855 sed 's/^/| /' conftest.$ac_ext >&5
6857 ac_cv_type_size_t=no
6860 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6862 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
6863 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
6864 if test $ac_cv_type_size_t = yes; then
6866 else
6868 cat >>confdefs.h <<_ACEOF
6869 #define size_t unsigned int
6870 _ACEOF
6874 { echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
6875 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
6876 if test "${ac_cv_type_uid_t+set}" = set; then
6877 echo $ECHO_N "(cached) $ECHO_C" >&6
6878 else
6879 cat >conftest.$ac_ext <<_ACEOF
6880 /* confdefs.h. */
6881 _ACEOF
6882 cat confdefs.h >>conftest.$ac_ext
6883 cat >>conftest.$ac_ext <<_ACEOF
6884 /* end confdefs.h. */
6885 #include <sys/types.h>
6887 _ACEOF
6888 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6889 $EGREP "uid_t" >/dev/null 2>&1; then
6890 ac_cv_type_uid_t=yes
6891 else
6892 ac_cv_type_uid_t=no
6894 rm -f conftest*
6897 { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
6898 echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
6899 if test $ac_cv_type_uid_t = no; then
6901 cat >>confdefs.h <<\_ACEOF
6902 #define uid_t int
6903 _ACEOF
6906 cat >>confdefs.h <<\_ACEOF
6907 #define gid_t int
6908 _ACEOF
6912 { echo "$as_me:$LINENO: checking for ssize_t" >&5
6913 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
6914 if test "${ac_cv_type_ssize_t+set}" = set; then
6915 echo $ECHO_N "(cached) $ECHO_C" >&6
6916 else
6917 cat >conftest.$ac_ext <<_ACEOF
6918 /* confdefs.h. */
6919 _ACEOF
6920 cat confdefs.h >>conftest.$ac_ext
6921 cat >>conftest.$ac_ext <<_ACEOF
6922 /* end confdefs.h. */
6923 $ac_includes_default
6924 typedef ssize_t ac__type_new_;
6926 main ()
6928 if ((ac__type_new_ *) 0)
6929 return 0;
6930 if (sizeof (ac__type_new_))
6931 return 0;
6933 return 0;
6935 _ACEOF
6936 rm -f conftest.$ac_objext
6937 if { (ac_try="$ac_compile"
6938 case "(($ac_try" in
6939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6940 *) ac_try_echo=$ac_try;;
6941 esac
6942 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6943 (eval "$ac_compile") 2>conftest.er1
6944 ac_status=$?
6945 grep -v '^ *+' conftest.er1 >conftest.err
6946 rm -f conftest.er1
6947 cat conftest.err >&5
6948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6949 (exit $ac_status); } && {
6950 test -z "$ac_c_werror_flag" ||
6951 test ! -s conftest.err
6952 } && test -s conftest.$ac_objext; then
6953 ac_cv_type_ssize_t=yes
6954 else
6955 echo "$as_me: failed program was:" >&5
6956 sed 's/^/| /' conftest.$ac_ext >&5
6958 ac_cv_type_ssize_t=no
6961 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6963 { echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
6964 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6; }
6965 if test $ac_cv_type_ssize_t = yes; then
6967 cat >>confdefs.h <<\_ACEOF
6968 #define HAVE_SSIZE_T 1
6969 _ACEOF
6974 # Sizes of various common basic types
6975 # ANSI C requires sizeof(char) == 1, so no need to check it
6976 { echo "$as_me:$LINENO: checking for int" >&5
6977 echo $ECHO_N "checking for int... $ECHO_C" >&6; }
6978 if test "${ac_cv_type_int+set}" = set; then
6979 echo $ECHO_N "(cached) $ECHO_C" >&6
6980 else
6981 cat >conftest.$ac_ext <<_ACEOF
6982 /* confdefs.h. */
6983 _ACEOF
6984 cat confdefs.h >>conftest.$ac_ext
6985 cat >>conftest.$ac_ext <<_ACEOF
6986 /* end confdefs.h. */
6987 $ac_includes_default
6988 typedef int ac__type_new_;
6990 main ()
6992 if ((ac__type_new_ *) 0)
6993 return 0;
6994 if (sizeof (ac__type_new_))
6995 return 0;
6997 return 0;
6999 _ACEOF
7000 rm -f conftest.$ac_objext
7001 if { (ac_try="$ac_compile"
7002 case "(($ac_try" in
7003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7004 *) ac_try_echo=$ac_try;;
7005 esac
7006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7007 (eval "$ac_compile") 2>conftest.er1
7008 ac_status=$?
7009 grep -v '^ *+' conftest.er1 >conftest.err
7010 rm -f conftest.er1
7011 cat conftest.err >&5
7012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7013 (exit $ac_status); } && {
7014 test -z "$ac_c_werror_flag" ||
7015 test ! -s conftest.err
7016 } && test -s conftest.$ac_objext; then
7017 ac_cv_type_int=yes
7018 else
7019 echo "$as_me: failed program was:" >&5
7020 sed 's/^/| /' conftest.$ac_ext >&5
7022 ac_cv_type_int=no
7025 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7027 { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
7028 echo "${ECHO_T}$ac_cv_type_int" >&6; }
7030 # The cast to long int works around a bug in the HP C Compiler
7031 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7032 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7033 # This bug is HP SR number 8606223364.
7034 { echo "$as_me:$LINENO: checking size of int" >&5
7035 echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
7036 if test "${ac_cv_sizeof_int+set}" = set; then
7037 echo $ECHO_N "(cached) $ECHO_C" >&6
7038 else
7039 if test "$cross_compiling" = yes; then
7040 # Depending upon the size, compute the lo and hi bounds.
7041 cat >conftest.$ac_ext <<_ACEOF
7042 /* confdefs.h. */
7043 _ACEOF
7044 cat confdefs.h >>conftest.$ac_ext
7045 cat >>conftest.$ac_ext <<_ACEOF
7046 /* end confdefs.h. */
7047 $ac_includes_default
7048 typedef int ac__type_sizeof_;
7050 main ()
7052 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
7053 test_array [0] = 0
7056 return 0;
7058 _ACEOF
7059 rm -f conftest.$ac_objext
7060 if { (ac_try="$ac_compile"
7061 case "(($ac_try" in
7062 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7063 *) ac_try_echo=$ac_try;;
7064 esac
7065 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7066 (eval "$ac_compile") 2>conftest.er1
7067 ac_status=$?
7068 grep -v '^ *+' conftest.er1 >conftest.err
7069 rm -f conftest.er1
7070 cat conftest.err >&5
7071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7072 (exit $ac_status); } && {
7073 test -z "$ac_c_werror_flag" ||
7074 test ! -s conftest.err
7075 } && test -s conftest.$ac_objext; then
7076 ac_lo=0 ac_mid=0
7077 while :; do
7078 cat >conftest.$ac_ext <<_ACEOF
7079 /* confdefs.h. */
7080 _ACEOF
7081 cat confdefs.h >>conftest.$ac_ext
7082 cat >>conftest.$ac_ext <<_ACEOF
7083 /* end confdefs.h. */
7084 $ac_includes_default
7085 typedef int ac__type_sizeof_;
7087 main ()
7089 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
7090 test_array [0] = 0
7093 return 0;
7095 _ACEOF
7096 rm -f conftest.$ac_objext
7097 if { (ac_try="$ac_compile"
7098 case "(($ac_try" in
7099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7100 *) ac_try_echo=$ac_try;;
7101 esac
7102 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7103 (eval "$ac_compile") 2>conftest.er1
7104 ac_status=$?
7105 grep -v '^ *+' conftest.er1 >conftest.err
7106 rm -f conftest.er1
7107 cat conftest.err >&5
7108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7109 (exit $ac_status); } && {
7110 test -z "$ac_c_werror_flag" ||
7111 test ! -s conftest.err
7112 } && test -s conftest.$ac_objext; then
7113 ac_hi=$ac_mid; break
7114 else
7115 echo "$as_me: failed program was:" >&5
7116 sed 's/^/| /' conftest.$ac_ext >&5
7118 ac_lo=`expr $ac_mid + 1`
7119 if test $ac_lo -le $ac_mid; then
7120 ac_lo= ac_hi=
7121 break
7123 ac_mid=`expr 2 '*' $ac_mid + 1`
7126 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7127 done
7128 else
7129 echo "$as_me: failed program was:" >&5
7130 sed 's/^/| /' conftest.$ac_ext >&5
7132 cat >conftest.$ac_ext <<_ACEOF
7133 /* confdefs.h. */
7134 _ACEOF
7135 cat confdefs.h >>conftest.$ac_ext
7136 cat >>conftest.$ac_ext <<_ACEOF
7137 /* end confdefs.h. */
7138 $ac_includes_default
7139 typedef int ac__type_sizeof_;
7141 main ()
7143 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
7144 test_array [0] = 0
7147 return 0;
7149 _ACEOF
7150 rm -f conftest.$ac_objext
7151 if { (ac_try="$ac_compile"
7152 case "(($ac_try" in
7153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7154 *) ac_try_echo=$ac_try;;
7155 esac
7156 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7157 (eval "$ac_compile") 2>conftest.er1
7158 ac_status=$?
7159 grep -v '^ *+' conftest.er1 >conftest.err
7160 rm -f conftest.er1
7161 cat conftest.err >&5
7162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7163 (exit $ac_status); } && {
7164 test -z "$ac_c_werror_flag" ||
7165 test ! -s conftest.err
7166 } && test -s conftest.$ac_objext; then
7167 ac_hi=-1 ac_mid=-1
7168 while :; do
7169 cat >conftest.$ac_ext <<_ACEOF
7170 /* confdefs.h. */
7171 _ACEOF
7172 cat confdefs.h >>conftest.$ac_ext
7173 cat >>conftest.$ac_ext <<_ACEOF
7174 /* end confdefs.h. */
7175 $ac_includes_default
7176 typedef int ac__type_sizeof_;
7178 main ()
7180 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
7181 test_array [0] = 0
7184 return 0;
7186 _ACEOF
7187 rm -f conftest.$ac_objext
7188 if { (ac_try="$ac_compile"
7189 case "(($ac_try" in
7190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7191 *) ac_try_echo=$ac_try;;
7192 esac
7193 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7194 (eval "$ac_compile") 2>conftest.er1
7195 ac_status=$?
7196 grep -v '^ *+' conftest.er1 >conftest.err
7197 rm -f conftest.er1
7198 cat conftest.err >&5
7199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7200 (exit $ac_status); } && {
7201 test -z "$ac_c_werror_flag" ||
7202 test ! -s conftest.err
7203 } && test -s conftest.$ac_objext; then
7204 ac_lo=$ac_mid; break
7205 else
7206 echo "$as_me: failed program was:" >&5
7207 sed 's/^/| /' conftest.$ac_ext >&5
7209 ac_hi=`expr '(' $ac_mid ')' - 1`
7210 if test $ac_mid -le $ac_hi; then
7211 ac_lo= ac_hi=
7212 break
7214 ac_mid=`expr 2 '*' $ac_mid`
7217 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7218 done
7219 else
7220 echo "$as_me: failed program was:" >&5
7221 sed 's/^/| /' conftest.$ac_ext >&5
7223 ac_lo= ac_hi=
7226 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7229 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7230 # Binary search between lo and hi bounds.
7231 while test "x$ac_lo" != "x$ac_hi"; do
7232 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7233 cat >conftest.$ac_ext <<_ACEOF
7234 /* confdefs.h. */
7235 _ACEOF
7236 cat confdefs.h >>conftest.$ac_ext
7237 cat >>conftest.$ac_ext <<_ACEOF
7238 /* end confdefs.h. */
7239 $ac_includes_default
7240 typedef int ac__type_sizeof_;
7242 main ()
7244 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
7245 test_array [0] = 0
7248 return 0;
7250 _ACEOF
7251 rm -f conftest.$ac_objext
7252 if { (ac_try="$ac_compile"
7253 case "(($ac_try" in
7254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7255 *) ac_try_echo=$ac_try;;
7256 esac
7257 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7258 (eval "$ac_compile") 2>conftest.er1
7259 ac_status=$?
7260 grep -v '^ *+' conftest.er1 >conftest.err
7261 rm -f conftest.er1
7262 cat conftest.err >&5
7263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7264 (exit $ac_status); } && {
7265 test -z "$ac_c_werror_flag" ||
7266 test ! -s conftest.err
7267 } && test -s conftest.$ac_objext; then
7268 ac_hi=$ac_mid
7269 else
7270 echo "$as_me: failed program was:" >&5
7271 sed 's/^/| /' conftest.$ac_ext >&5
7273 ac_lo=`expr '(' $ac_mid ')' + 1`
7276 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7277 done
7278 case $ac_lo in
7279 ?*) ac_cv_sizeof_int=$ac_lo;;
7280 '') if test "$ac_cv_type_int" = yes; then
7281 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
7282 See \`config.log' for more details." >&5
7283 echo "$as_me: error: cannot compute sizeof (int)
7284 See \`config.log' for more details." >&2;}
7285 { (exit 77); exit 77; }; }
7286 else
7287 ac_cv_sizeof_int=0
7288 fi ;;
7289 esac
7290 else
7291 cat >conftest.$ac_ext <<_ACEOF
7292 /* confdefs.h. */
7293 _ACEOF
7294 cat confdefs.h >>conftest.$ac_ext
7295 cat >>conftest.$ac_ext <<_ACEOF
7296 /* end confdefs.h. */
7297 $ac_includes_default
7298 typedef int ac__type_sizeof_;
7299 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
7300 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
7301 #include <stdio.h>
7302 #include <stdlib.h>
7304 main ()
7307 FILE *f = fopen ("conftest.val", "w");
7308 if (! f)
7309 return 1;
7310 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
7312 long int i = longval ();
7313 if (i != ((long int) (sizeof (ac__type_sizeof_))))
7314 return 1;
7315 fprintf (f, "%ld\n", i);
7317 else
7319 unsigned long int i = ulongval ();
7320 if (i != ((long int) (sizeof (ac__type_sizeof_))))
7321 return 1;
7322 fprintf (f, "%lu\n", i);
7324 return ferror (f) || fclose (f) != 0;
7327 return 0;
7329 _ACEOF
7330 rm -f conftest$ac_exeext
7331 if { (ac_try="$ac_link"
7332 case "(($ac_try" in
7333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7334 *) ac_try_echo=$ac_try;;
7335 esac
7336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7337 (eval "$ac_link") 2>&5
7338 ac_status=$?
7339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7340 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7341 { (case "(($ac_try" in
7342 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7343 *) ac_try_echo=$ac_try;;
7344 esac
7345 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7346 (eval "$ac_try") 2>&5
7347 ac_status=$?
7348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7349 (exit $ac_status); }; }; then
7350 ac_cv_sizeof_int=`cat conftest.val`
7351 else
7352 echo "$as_me: program exited with status $ac_status" >&5
7353 echo "$as_me: failed program was:" >&5
7354 sed 's/^/| /' conftest.$ac_ext >&5
7356 ( exit $ac_status )
7357 if test "$ac_cv_type_int" = yes; then
7358 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
7359 See \`config.log' for more details." >&5
7360 echo "$as_me: error: cannot compute sizeof (int)
7361 See \`config.log' for more details." >&2;}
7362 { (exit 77); exit 77; }; }
7363 else
7364 ac_cv_sizeof_int=0
7367 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7369 rm -f conftest.val
7371 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
7372 echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
7376 cat >>confdefs.h <<_ACEOF
7377 #define SIZEOF_INT $ac_cv_sizeof_int
7378 _ACEOF
7381 { echo "$as_me:$LINENO: checking for long" >&5
7382 echo $ECHO_N "checking for long... $ECHO_C" >&6; }
7383 if test "${ac_cv_type_long+set}" = set; then
7384 echo $ECHO_N "(cached) $ECHO_C" >&6
7385 else
7386 cat >conftest.$ac_ext <<_ACEOF
7387 /* confdefs.h. */
7388 _ACEOF
7389 cat confdefs.h >>conftest.$ac_ext
7390 cat >>conftest.$ac_ext <<_ACEOF
7391 /* end confdefs.h. */
7392 $ac_includes_default
7393 typedef long ac__type_new_;
7395 main ()
7397 if ((ac__type_new_ *) 0)
7398 return 0;
7399 if (sizeof (ac__type_new_))
7400 return 0;
7402 return 0;
7404 _ACEOF
7405 rm -f conftest.$ac_objext
7406 if { (ac_try="$ac_compile"
7407 case "(($ac_try" in
7408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7409 *) ac_try_echo=$ac_try;;
7410 esac
7411 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7412 (eval "$ac_compile") 2>conftest.er1
7413 ac_status=$?
7414 grep -v '^ *+' conftest.er1 >conftest.err
7415 rm -f conftest.er1
7416 cat conftest.err >&5
7417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7418 (exit $ac_status); } && {
7419 test -z "$ac_c_werror_flag" ||
7420 test ! -s conftest.err
7421 } && test -s conftest.$ac_objext; then
7422 ac_cv_type_long=yes
7423 else
7424 echo "$as_me: failed program was:" >&5
7425 sed 's/^/| /' conftest.$ac_ext >&5
7427 ac_cv_type_long=no
7430 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7432 { echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
7433 echo "${ECHO_T}$ac_cv_type_long" >&6; }
7435 # The cast to long int works around a bug in the HP C Compiler
7436 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7437 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7438 # This bug is HP SR number 8606223364.
7439 { echo "$as_me:$LINENO: checking size of long" >&5
7440 echo $ECHO_N "checking size of long... $ECHO_C" >&6; }
7441 if test "${ac_cv_sizeof_long+set}" = set; then
7442 echo $ECHO_N "(cached) $ECHO_C" >&6
7443 else
7444 if test "$cross_compiling" = yes; then
7445 # Depending upon the size, compute the lo and hi bounds.
7446 cat >conftest.$ac_ext <<_ACEOF
7447 /* confdefs.h. */
7448 _ACEOF
7449 cat confdefs.h >>conftest.$ac_ext
7450 cat >>conftest.$ac_ext <<_ACEOF
7451 /* end confdefs.h. */
7452 $ac_includes_default
7453 typedef long ac__type_sizeof_;
7455 main ()
7457 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
7458 test_array [0] = 0
7461 return 0;
7463 _ACEOF
7464 rm -f conftest.$ac_objext
7465 if { (ac_try="$ac_compile"
7466 case "(($ac_try" in
7467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7468 *) ac_try_echo=$ac_try;;
7469 esac
7470 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7471 (eval "$ac_compile") 2>conftest.er1
7472 ac_status=$?
7473 grep -v '^ *+' conftest.er1 >conftest.err
7474 rm -f conftest.er1
7475 cat conftest.err >&5
7476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7477 (exit $ac_status); } && {
7478 test -z "$ac_c_werror_flag" ||
7479 test ! -s conftest.err
7480 } && test -s conftest.$ac_objext; then
7481 ac_lo=0 ac_mid=0
7482 while :; do
7483 cat >conftest.$ac_ext <<_ACEOF
7484 /* confdefs.h. */
7485 _ACEOF
7486 cat confdefs.h >>conftest.$ac_ext
7487 cat >>conftest.$ac_ext <<_ACEOF
7488 /* end confdefs.h. */
7489 $ac_includes_default
7490 typedef long ac__type_sizeof_;
7492 main ()
7494 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
7495 test_array [0] = 0
7498 return 0;
7500 _ACEOF
7501 rm -f conftest.$ac_objext
7502 if { (ac_try="$ac_compile"
7503 case "(($ac_try" in
7504 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7505 *) ac_try_echo=$ac_try;;
7506 esac
7507 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7508 (eval "$ac_compile") 2>conftest.er1
7509 ac_status=$?
7510 grep -v '^ *+' conftest.er1 >conftest.err
7511 rm -f conftest.er1
7512 cat conftest.err >&5
7513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7514 (exit $ac_status); } && {
7515 test -z "$ac_c_werror_flag" ||
7516 test ! -s conftest.err
7517 } && test -s conftest.$ac_objext; then
7518 ac_hi=$ac_mid; break
7519 else
7520 echo "$as_me: failed program was:" >&5
7521 sed 's/^/| /' conftest.$ac_ext >&5
7523 ac_lo=`expr $ac_mid + 1`
7524 if test $ac_lo -le $ac_mid; then
7525 ac_lo= ac_hi=
7526 break
7528 ac_mid=`expr 2 '*' $ac_mid + 1`
7531 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7532 done
7533 else
7534 echo "$as_me: failed program was:" >&5
7535 sed 's/^/| /' conftest.$ac_ext >&5
7537 cat >conftest.$ac_ext <<_ACEOF
7538 /* confdefs.h. */
7539 _ACEOF
7540 cat confdefs.h >>conftest.$ac_ext
7541 cat >>conftest.$ac_ext <<_ACEOF
7542 /* end confdefs.h. */
7543 $ac_includes_default
7544 typedef long ac__type_sizeof_;
7546 main ()
7548 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
7549 test_array [0] = 0
7552 return 0;
7554 _ACEOF
7555 rm -f conftest.$ac_objext
7556 if { (ac_try="$ac_compile"
7557 case "(($ac_try" in
7558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7559 *) ac_try_echo=$ac_try;;
7560 esac
7561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7562 (eval "$ac_compile") 2>conftest.er1
7563 ac_status=$?
7564 grep -v '^ *+' conftest.er1 >conftest.err
7565 rm -f conftest.er1
7566 cat conftest.err >&5
7567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7568 (exit $ac_status); } && {
7569 test -z "$ac_c_werror_flag" ||
7570 test ! -s conftest.err
7571 } && test -s conftest.$ac_objext; then
7572 ac_hi=-1 ac_mid=-1
7573 while :; do
7574 cat >conftest.$ac_ext <<_ACEOF
7575 /* confdefs.h. */
7576 _ACEOF
7577 cat confdefs.h >>conftest.$ac_ext
7578 cat >>conftest.$ac_ext <<_ACEOF
7579 /* end confdefs.h. */
7580 $ac_includes_default
7581 typedef long ac__type_sizeof_;
7583 main ()
7585 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
7586 test_array [0] = 0
7589 return 0;
7591 _ACEOF
7592 rm -f conftest.$ac_objext
7593 if { (ac_try="$ac_compile"
7594 case "(($ac_try" in
7595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7596 *) ac_try_echo=$ac_try;;
7597 esac
7598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7599 (eval "$ac_compile") 2>conftest.er1
7600 ac_status=$?
7601 grep -v '^ *+' conftest.er1 >conftest.err
7602 rm -f conftest.er1
7603 cat conftest.err >&5
7604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7605 (exit $ac_status); } && {
7606 test -z "$ac_c_werror_flag" ||
7607 test ! -s conftest.err
7608 } && test -s conftest.$ac_objext; then
7609 ac_lo=$ac_mid; break
7610 else
7611 echo "$as_me: failed program was:" >&5
7612 sed 's/^/| /' conftest.$ac_ext >&5
7614 ac_hi=`expr '(' $ac_mid ')' - 1`
7615 if test $ac_mid -le $ac_hi; then
7616 ac_lo= ac_hi=
7617 break
7619 ac_mid=`expr 2 '*' $ac_mid`
7622 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7623 done
7624 else
7625 echo "$as_me: failed program was:" >&5
7626 sed 's/^/| /' conftest.$ac_ext >&5
7628 ac_lo= ac_hi=
7631 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7634 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7635 # Binary search between lo and hi bounds.
7636 while test "x$ac_lo" != "x$ac_hi"; do
7637 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7638 cat >conftest.$ac_ext <<_ACEOF
7639 /* confdefs.h. */
7640 _ACEOF
7641 cat confdefs.h >>conftest.$ac_ext
7642 cat >>conftest.$ac_ext <<_ACEOF
7643 /* end confdefs.h. */
7644 $ac_includes_default
7645 typedef long ac__type_sizeof_;
7647 main ()
7649 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
7650 test_array [0] = 0
7653 return 0;
7655 _ACEOF
7656 rm -f conftest.$ac_objext
7657 if { (ac_try="$ac_compile"
7658 case "(($ac_try" in
7659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7660 *) ac_try_echo=$ac_try;;
7661 esac
7662 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7663 (eval "$ac_compile") 2>conftest.er1
7664 ac_status=$?
7665 grep -v '^ *+' conftest.er1 >conftest.err
7666 rm -f conftest.er1
7667 cat conftest.err >&5
7668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7669 (exit $ac_status); } && {
7670 test -z "$ac_c_werror_flag" ||
7671 test ! -s conftest.err
7672 } && test -s conftest.$ac_objext; then
7673 ac_hi=$ac_mid
7674 else
7675 echo "$as_me: failed program was:" >&5
7676 sed 's/^/| /' conftest.$ac_ext >&5
7678 ac_lo=`expr '(' $ac_mid ')' + 1`
7681 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7682 done
7683 case $ac_lo in
7684 ?*) ac_cv_sizeof_long=$ac_lo;;
7685 '') if test "$ac_cv_type_long" = yes; then
7686 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
7687 See \`config.log' for more details." >&5
7688 echo "$as_me: error: cannot compute sizeof (long)
7689 See \`config.log' for more details." >&2;}
7690 { (exit 77); exit 77; }; }
7691 else
7692 ac_cv_sizeof_long=0
7693 fi ;;
7694 esac
7695 else
7696 cat >conftest.$ac_ext <<_ACEOF
7697 /* confdefs.h. */
7698 _ACEOF
7699 cat confdefs.h >>conftest.$ac_ext
7700 cat >>conftest.$ac_ext <<_ACEOF
7701 /* end confdefs.h. */
7702 $ac_includes_default
7703 typedef long ac__type_sizeof_;
7704 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
7705 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
7706 #include <stdio.h>
7707 #include <stdlib.h>
7709 main ()
7712 FILE *f = fopen ("conftest.val", "w");
7713 if (! f)
7714 return 1;
7715 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
7717 long int i = longval ();
7718 if (i != ((long int) (sizeof (ac__type_sizeof_))))
7719 return 1;
7720 fprintf (f, "%ld\n", i);
7722 else
7724 unsigned long int i = ulongval ();
7725 if (i != ((long int) (sizeof (ac__type_sizeof_))))
7726 return 1;
7727 fprintf (f, "%lu\n", i);
7729 return ferror (f) || fclose (f) != 0;
7732 return 0;
7734 _ACEOF
7735 rm -f conftest$ac_exeext
7736 if { (ac_try="$ac_link"
7737 case "(($ac_try" in
7738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7739 *) ac_try_echo=$ac_try;;
7740 esac
7741 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7742 (eval "$ac_link") 2>&5
7743 ac_status=$?
7744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7745 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7746 { (case "(($ac_try" in
7747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7748 *) ac_try_echo=$ac_try;;
7749 esac
7750 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7751 (eval "$ac_try") 2>&5
7752 ac_status=$?
7753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7754 (exit $ac_status); }; }; then
7755 ac_cv_sizeof_long=`cat conftest.val`
7756 else
7757 echo "$as_me: program exited with status $ac_status" >&5
7758 echo "$as_me: failed program was:" >&5
7759 sed 's/^/| /' conftest.$ac_ext >&5
7761 ( exit $ac_status )
7762 if test "$ac_cv_type_long" = yes; then
7763 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
7764 See \`config.log' for more details." >&5
7765 echo "$as_me: error: cannot compute sizeof (long)
7766 See \`config.log' for more details." >&2;}
7767 { (exit 77); exit 77; }; }
7768 else
7769 ac_cv_sizeof_long=0
7772 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7774 rm -f conftest.val
7776 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
7777 echo "${ECHO_T}$ac_cv_sizeof_long" >&6; }
7781 cat >>confdefs.h <<_ACEOF
7782 #define SIZEOF_LONG $ac_cv_sizeof_long
7783 _ACEOF
7786 { echo "$as_me:$LINENO: checking for void *" >&5
7787 echo $ECHO_N "checking for void *... $ECHO_C" >&6; }
7788 if test "${ac_cv_type_void_p+set}" = set; then
7789 echo $ECHO_N "(cached) $ECHO_C" >&6
7790 else
7791 cat >conftest.$ac_ext <<_ACEOF
7792 /* confdefs.h. */
7793 _ACEOF
7794 cat confdefs.h >>conftest.$ac_ext
7795 cat >>conftest.$ac_ext <<_ACEOF
7796 /* end confdefs.h. */
7797 $ac_includes_default
7798 typedef void * ac__type_new_;
7800 main ()
7802 if ((ac__type_new_ *) 0)
7803 return 0;
7804 if (sizeof (ac__type_new_))
7805 return 0;
7807 return 0;
7809 _ACEOF
7810 rm -f conftest.$ac_objext
7811 if { (ac_try="$ac_compile"
7812 case "(($ac_try" in
7813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7814 *) ac_try_echo=$ac_try;;
7815 esac
7816 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7817 (eval "$ac_compile") 2>conftest.er1
7818 ac_status=$?
7819 grep -v '^ *+' conftest.er1 >conftest.err
7820 rm -f conftest.er1
7821 cat conftest.err >&5
7822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7823 (exit $ac_status); } && {
7824 test -z "$ac_c_werror_flag" ||
7825 test ! -s conftest.err
7826 } && test -s conftest.$ac_objext; then
7827 ac_cv_type_void_p=yes
7828 else
7829 echo "$as_me: failed program was:" >&5
7830 sed 's/^/| /' conftest.$ac_ext >&5
7832 ac_cv_type_void_p=no
7835 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7837 { echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
7838 echo "${ECHO_T}$ac_cv_type_void_p" >&6; }
7840 # The cast to long int works around a bug in the HP C Compiler
7841 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7842 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7843 # This bug is HP SR number 8606223364.
7844 { echo "$as_me:$LINENO: checking size of void *" >&5
7845 echo $ECHO_N "checking size of void *... $ECHO_C" >&6; }
7846 if test "${ac_cv_sizeof_void_p+set}" = set; then
7847 echo $ECHO_N "(cached) $ECHO_C" >&6
7848 else
7849 if test "$cross_compiling" = yes; then
7850 # Depending upon the size, compute the lo and hi bounds.
7851 cat >conftest.$ac_ext <<_ACEOF
7852 /* confdefs.h. */
7853 _ACEOF
7854 cat confdefs.h >>conftest.$ac_ext
7855 cat >>conftest.$ac_ext <<_ACEOF
7856 /* end confdefs.h. */
7857 $ac_includes_default
7858 typedef void * ac__type_sizeof_;
7860 main ()
7862 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
7863 test_array [0] = 0
7866 return 0;
7868 _ACEOF
7869 rm -f conftest.$ac_objext
7870 if { (ac_try="$ac_compile"
7871 case "(($ac_try" in
7872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7873 *) ac_try_echo=$ac_try;;
7874 esac
7875 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7876 (eval "$ac_compile") 2>conftest.er1
7877 ac_status=$?
7878 grep -v '^ *+' conftest.er1 >conftest.err
7879 rm -f conftest.er1
7880 cat conftest.err >&5
7881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7882 (exit $ac_status); } && {
7883 test -z "$ac_c_werror_flag" ||
7884 test ! -s conftest.err
7885 } && test -s conftest.$ac_objext; then
7886 ac_lo=0 ac_mid=0
7887 while :; do
7888 cat >conftest.$ac_ext <<_ACEOF
7889 /* confdefs.h. */
7890 _ACEOF
7891 cat confdefs.h >>conftest.$ac_ext
7892 cat >>conftest.$ac_ext <<_ACEOF
7893 /* end confdefs.h. */
7894 $ac_includes_default
7895 typedef void * ac__type_sizeof_;
7897 main ()
7899 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
7900 test_array [0] = 0
7903 return 0;
7905 _ACEOF
7906 rm -f conftest.$ac_objext
7907 if { (ac_try="$ac_compile"
7908 case "(($ac_try" in
7909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7910 *) ac_try_echo=$ac_try;;
7911 esac
7912 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7913 (eval "$ac_compile") 2>conftest.er1
7914 ac_status=$?
7915 grep -v '^ *+' conftest.er1 >conftest.err
7916 rm -f conftest.er1
7917 cat conftest.err >&5
7918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7919 (exit $ac_status); } && {
7920 test -z "$ac_c_werror_flag" ||
7921 test ! -s conftest.err
7922 } && test -s conftest.$ac_objext; then
7923 ac_hi=$ac_mid; break
7924 else
7925 echo "$as_me: failed program was:" >&5
7926 sed 's/^/| /' conftest.$ac_ext >&5
7928 ac_lo=`expr $ac_mid + 1`
7929 if test $ac_lo -le $ac_mid; then
7930 ac_lo= ac_hi=
7931 break
7933 ac_mid=`expr 2 '*' $ac_mid + 1`
7936 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7937 done
7938 else
7939 echo "$as_me: failed program was:" >&5
7940 sed 's/^/| /' conftest.$ac_ext >&5
7942 cat >conftest.$ac_ext <<_ACEOF
7943 /* confdefs.h. */
7944 _ACEOF
7945 cat confdefs.h >>conftest.$ac_ext
7946 cat >>conftest.$ac_ext <<_ACEOF
7947 /* end confdefs.h. */
7948 $ac_includes_default
7949 typedef void * ac__type_sizeof_;
7951 main ()
7953 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
7954 test_array [0] = 0
7957 return 0;
7959 _ACEOF
7960 rm -f conftest.$ac_objext
7961 if { (ac_try="$ac_compile"
7962 case "(($ac_try" in
7963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7964 *) ac_try_echo=$ac_try;;
7965 esac
7966 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7967 (eval "$ac_compile") 2>conftest.er1
7968 ac_status=$?
7969 grep -v '^ *+' conftest.er1 >conftest.err
7970 rm -f conftest.er1
7971 cat conftest.err >&5
7972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7973 (exit $ac_status); } && {
7974 test -z "$ac_c_werror_flag" ||
7975 test ! -s conftest.err
7976 } && test -s conftest.$ac_objext; then
7977 ac_hi=-1 ac_mid=-1
7978 while :; do
7979 cat >conftest.$ac_ext <<_ACEOF
7980 /* confdefs.h. */
7981 _ACEOF
7982 cat confdefs.h >>conftest.$ac_ext
7983 cat >>conftest.$ac_ext <<_ACEOF
7984 /* end confdefs.h. */
7985 $ac_includes_default
7986 typedef void * ac__type_sizeof_;
7988 main ()
7990 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
7991 test_array [0] = 0
7994 return 0;
7996 _ACEOF
7997 rm -f conftest.$ac_objext
7998 if { (ac_try="$ac_compile"
7999 case "(($ac_try" in
8000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8001 *) ac_try_echo=$ac_try;;
8002 esac
8003 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8004 (eval "$ac_compile") 2>conftest.er1
8005 ac_status=$?
8006 grep -v '^ *+' conftest.er1 >conftest.err
8007 rm -f conftest.er1
8008 cat conftest.err >&5
8009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8010 (exit $ac_status); } && {
8011 test -z "$ac_c_werror_flag" ||
8012 test ! -s conftest.err
8013 } && test -s conftest.$ac_objext; then
8014 ac_lo=$ac_mid; break
8015 else
8016 echo "$as_me: failed program was:" >&5
8017 sed 's/^/| /' conftest.$ac_ext >&5
8019 ac_hi=`expr '(' $ac_mid ')' - 1`
8020 if test $ac_mid -le $ac_hi; then
8021 ac_lo= ac_hi=
8022 break
8024 ac_mid=`expr 2 '*' $ac_mid`
8027 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8028 done
8029 else
8030 echo "$as_me: failed program was:" >&5
8031 sed 's/^/| /' conftest.$ac_ext >&5
8033 ac_lo= ac_hi=
8036 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8039 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8040 # Binary search between lo and hi bounds.
8041 while test "x$ac_lo" != "x$ac_hi"; do
8042 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8043 cat >conftest.$ac_ext <<_ACEOF
8044 /* confdefs.h. */
8045 _ACEOF
8046 cat confdefs.h >>conftest.$ac_ext
8047 cat >>conftest.$ac_ext <<_ACEOF
8048 /* end confdefs.h. */
8049 $ac_includes_default
8050 typedef void * ac__type_sizeof_;
8052 main ()
8054 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8055 test_array [0] = 0
8058 return 0;
8060 _ACEOF
8061 rm -f conftest.$ac_objext
8062 if { (ac_try="$ac_compile"
8063 case "(($ac_try" in
8064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8065 *) ac_try_echo=$ac_try;;
8066 esac
8067 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8068 (eval "$ac_compile") 2>conftest.er1
8069 ac_status=$?
8070 grep -v '^ *+' conftest.er1 >conftest.err
8071 rm -f conftest.er1
8072 cat conftest.err >&5
8073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8074 (exit $ac_status); } && {
8075 test -z "$ac_c_werror_flag" ||
8076 test ! -s conftest.err
8077 } && test -s conftest.$ac_objext; then
8078 ac_hi=$ac_mid
8079 else
8080 echo "$as_me: failed program was:" >&5
8081 sed 's/^/| /' conftest.$ac_ext >&5
8083 ac_lo=`expr '(' $ac_mid ')' + 1`
8086 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8087 done
8088 case $ac_lo in
8089 ?*) ac_cv_sizeof_void_p=$ac_lo;;
8090 '') if test "$ac_cv_type_void_p" = yes; then
8091 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
8092 See \`config.log' for more details." >&5
8093 echo "$as_me: error: cannot compute sizeof (void *)
8094 See \`config.log' for more details." >&2;}
8095 { (exit 77); exit 77; }; }
8096 else
8097 ac_cv_sizeof_void_p=0
8098 fi ;;
8099 esac
8100 else
8101 cat >conftest.$ac_ext <<_ACEOF
8102 /* confdefs.h. */
8103 _ACEOF
8104 cat confdefs.h >>conftest.$ac_ext
8105 cat >>conftest.$ac_ext <<_ACEOF
8106 /* end confdefs.h. */
8107 $ac_includes_default
8108 typedef void * ac__type_sizeof_;
8109 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
8110 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
8111 #include <stdio.h>
8112 #include <stdlib.h>
8114 main ()
8117 FILE *f = fopen ("conftest.val", "w");
8118 if (! f)
8119 return 1;
8120 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
8122 long int i = longval ();
8123 if (i != ((long int) (sizeof (ac__type_sizeof_))))
8124 return 1;
8125 fprintf (f, "%ld\n", i);
8127 else
8129 unsigned long int i = ulongval ();
8130 if (i != ((long int) (sizeof (ac__type_sizeof_))))
8131 return 1;
8132 fprintf (f, "%lu\n", i);
8134 return ferror (f) || fclose (f) != 0;
8137 return 0;
8139 _ACEOF
8140 rm -f conftest$ac_exeext
8141 if { (ac_try="$ac_link"
8142 case "(($ac_try" in
8143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8144 *) ac_try_echo=$ac_try;;
8145 esac
8146 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8147 (eval "$ac_link") 2>&5
8148 ac_status=$?
8149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8150 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8151 { (case "(($ac_try" in
8152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8153 *) ac_try_echo=$ac_try;;
8154 esac
8155 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8156 (eval "$ac_try") 2>&5
8157 ac_status=$?
8158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8159 (exit $ac_status); }; }; then
8160 ac_cv_sizeof_void_p=`cat conftest.val`
8161 else
8162 echo "$as_me: program exited with status $ac_status" >&5
8163 echo "$as_me: failed program was:" >&5
8164 sed 's/^/| /' conftest.$ac_ext >&5
8166 ( exit $ac_status )
8167 if test "$ac_cv_type_void_p" = yes; then
8168 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
8169 See \`config.log' for more details." >&5
8170 echo "$as_me: error: cannot compute sizeof (void *)
8171 See \`config.log' for more details." >&2;}
8172 { (exit 77); exit 77; }; }
8173 else
8174 ac_cv_sizeof_void_p=0
8177 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8179 rm -f conftest.val
8181 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
8182 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6; }
8186 cat >>confdefs.h <<_ACEOF
8187 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
8188 _ACEOF
8191 { echo "$as_me:$LINENO: checking for short" >&5
8192 echo $ECHO_N "checking for short... $ECHO_C" >&6; }
8193 if test "${ac_cv_type_short+set}" = set; then
8194 echo $ECHO_N "(cached) $ECHO_C" >&6
8195 else
8196 cat >conftest.$ac_ext <<_ACEOF
8197 /* confdefs.h. */
8198 _ACEOF
8199 cat confdefs.h >>conftest.$ac_ext
8200 cat >>conftest.$ac_ext <<_ACEOF
8201 /* end confdefs.h. */
8202 $ac_includes_default
8203 typedef short ac__type_new_;
8205 main ()
8207 if ((ac__type_new_ *) 0)
8208 return 0;
8209 if (sizeof (ac__type_new_))
8210 return 0;
8212 return 0;
8214 _ACEOF
8215 rm -f conftest.$ac_objext
8216 if { (ac_try="$ac_compile"
8217 case "(($ac_try" in
8218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8219 *) ac_try_echo=$ac_try;;
8220 esac
8221 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8222 (eval "$ac_compile") 2>conftest.er1
8223 ac_status=$?
8224 grep -v '^ *+' conftest.er1 >conftest.err
8225 rm -f conftest.er1
8226 cat conftest.err >&5
8227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8228 (exit $ac_status); } && {
8229 test -z "$ac_c_werror_flag" ||
8230 test ! -s conftest.err
8231 } && test -s conftest.$ac_objext; then
8232 ac_cv_type_short=yes
8233 else
8234 echo "$as_me: failed program was:" >&5
8235 sed 's/^/| /' conftest.$ac_ext >&5
8237 ac_cv_type_short=no
8240 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8242 { echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
8243 echo "${ECHO_T}$ac_cv_type_short" >&6; }
8245 # The cast to long int works around a bug in the HP C Compiler
8246 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8247 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8248 # This bug is HP SR number 8606223364.
8249 { echo "$as_me:$LINENO: checking size of short" >&5
8250 echo $ECHO_N "checking size of short... $ECHO_C" >&6; }
8251 if test "${ac_cv_sizeof_short+set}" = set; then
8252 echo $ECHO_N "(cached) $ECHO_C" >&6
8253 else
8254 if test "$cross_compiling" = yes; then
8255 # Depending upon the size, compute the lo and hi bounds.
8256 cat >conftest.$ac_ext <<_ACEOF
8257 /* confdefs.h. */
8258 _ACEOF
8259 cat confdefs.h >>conftest.$ac_ext
8260 cat >>conftest.$ac_ext <<_ACEOF
8261 /* end confdefs.h. */
8262 $ac_includes_default
8263 typedef short ac__type_sizeof_;
8265 main ()
8267 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
8268 test_array [0] = 0
8271 return 0;
8273 _ACEOF
8274 rm -f conftest.$ac_objext
8275 if { (ac_try="$ac_compile"
8276 case "(($ac_try" in
8277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8278 *) ac_try_echo=$ac_try;;
8279 esac
8280 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8281 (eval "$ac_compile") 2>conftest.er1
8282 ac_status=$?
8283 grep -v '^ *+' conftest.er1 >conftest.err
8284 rm -f conftest.er1
8285 cat conftest.err >&5
8286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8287 (exit $ac_status); } && {
8288 test -z "$ac_c_werror_flag" ||
8289 test ! -s conftest.err
8290 } && test -s conftest.$ac_objext; then
8291 ac_lo=0 ac_mid=0
8292 while :; do
8293 cat >conftest.$ac_ext <<_ACEOF
8294 /* confdefs.h. */
8295 _ACEOF
8296 cat confdefs.h >>conftest.$ac_ext
8297 cat >>conftest.$ac_ext <<_ACEOF
8298 /* end confdefs.h. */
8299 $ac_includes_default
8300 typedef short ac__type_sizeof_;
8302 main ()
8304 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8305 test_array [0] = 0
8308 return 0;
8310 _ACEOF
8311 rm -f conftest.$ac_objext
8312 if { (ac_try="$ac_compile"
8313 case "(($ac_try" in
8314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8315 *) ac_try_echo=$ac_try;;
8316 esac
8317 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8318 (eval "$ac_compile") 2>conftest.er1
8319 ac_status=$?
8320 grep -v '^ *+' conftest.er1 >conftest.err
8321 rm -f conftest.er1
8322 cat conftest.err >&5
8323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8324 (exit $ac_status); } && {
8325 test -z "$ac_c_werror_flag" ||
8326 test ! -s conftest.err
8327 } && test -s conftest.$ac_objext; then
8328 ac_hi=$ac_mid; break
8329 else
8330 echo "$as_me: failed program was:" >&5
8331 sed 's/^/| /' conftest.$ac_ext >&5
8333 ac_lo=`expr $ac_mid + 1`
8334 if test $ac_lo -le $ac_mid; then
8335 ac_lo= ac_hi=
8336 break
8338 ac_mid=`expr 2 '*' $ac_mid + 1`
8341 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8342 done
8343 else
8344 echo "$as_me: failed program was:" >&5
8345 sed 's/^/| /' conftest.$ac_ext >&5
8347 cat >conftest.$ac_ext <<_ACEOF
8348 /* confdefs.h. */
8349 _ACEOF
8350 cat confdefs.h >>conftest.$ac_ext
8351 cat >>conftest.$ac_ext <<_ACEOF
8352 /* end confdefs.h. */
8353 $ac_includes_default
8354 typedef short ac__type_sizeof_;
8356 main ()
8358 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
8359 test_array [0] = 0
8362 return 0;
8364 _ACEOF
8365 rm -f conftest.$ac_objext
8366 if { (ac_try="$ac_compile"
8367 case "(($ac_try" in
8368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8369 *) ac_try_echo=$ac_try;;
8370 esac
8371 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8372 (eval "$ac_compile") 2>conftest.er1
8373 ac_status=$?
8374 grep -v '^ *+' conftest.er1 >conftest.err
8375 rm -f conftest.er1
8376 cat conftest.err >&5
8377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8378 (exit $ac_status); } && {
8379 test -z "$ac_c_werror_flag" ||
8380 test ! -s conftest.err
8381 } && test -s conftest.$ac_objext; then
8382 ac_hi=-1 ac_mid=-1
8383 while :; do
8384 cat >conftest.$ac_ext <<_ACEOF
8385 /* confdefs.h. */
8386 _ACEOF
8387 cat confdefs.h >>conftest.$ac_ext
8388 cat >>conftest.$ac_ext <<_ACEOF
8389 /* end confdefs.h. */
8390 $ac_includes_default
8391 typedef short ac__type_sizeof_;
8393 main ()
8395 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
8396 test_array [0] = 0
8399 return 0;
8401 _ACEOF
8402 rm -f conftest.$ac_objext
8403 if { (ac_try="$ac_compile"
8404 case "(($ac_try" in
8405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8406 *) ac_try_echo=$ac_try;;
8407 esac
8408 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8409 (eval "$ac_compile") 2>conftest.er1
8410 ac_status=$?
8411 grep -v '^ *+' conftest.er1 >conftest.err
8412 rm -f conftest.er1
8413 cat conftest.err >&5
8414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8415 (exit $ac_status); } && {
8416 test -z "$ac_c_werror_flag" ||
8417 test ! -s conftest.err
8418 } && test -s conftest.$ac_objext; then
8419 ac_lo=$ac_mid; break
8420 else
8421 echo "$as_me: failed program was:" >&5
8422 sed 's/^/| /' conftest.$ac_ext >&5
8424 ac_hi=`expr '(' $ac_mid ')' - 1`
8425 if test $ac_mid -le $ac_hi; then
8426 ac_lo= ac_hi=
8427 break
8429 ac_mid=`expr 2 '*' $ac_mid`
8432 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8433 done
8434 else
8435 echo "$as_me: failed program was:" >&5
8436 sed 's/^/| /' conftest.$ac_ext >&5
8438 ac_lo= ac_hi=
8441 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8444 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8445 # Binary search between lo and hi bounds.
8446 while test "x$ac_lo" != "x$ac_hi"; do
8447 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8448 cat >conftest.$ac_ext <<_ACEOF
8449 /* confdefs.h. */
8450 _ACEOF
8451 cat confdefs.h >>conftest.$ac_ext
8452 cat >>conftest.$ac_ext <<_ACEOF
8453 /* end confdefs.h. */
8454 $ac_includes_default
8455 typedef short ac__type_sizeof_;
8457 main ()
8459 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8460 test_array [0] = 0
8463 return 0;
8465 _ACEOF
8466 rm -f conftest.$ac_objext
8467 if { (ac_try="$ac_compile"
8468 case "(($ac_try" in
8469 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8470 *) ac_try_echo=$ac_try;;
8471 esac
8472 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8473 (eval "$ac_compile") 2>conftest.er1
8474 ac_status=$?
8475 grep -v '^ *+' conftest.er1 >conftest.err
8476 rm -f conftest.er1
8477 cat conftest.err >&5
8478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8479 (exit $ac_status); } && {
8480 test -z "$ac_c_werror_flag" ||
8481 test ! -s conftest.err
8482 } && test -s conftest.$ac_objext; then
8483 ac_hi=$ac_mid
8484 else
8485 echo "$as_me: failed program was:" >&5
8486 sed 's/^/| /' conftest.$ac_ext >&5
8488 ac_lo=`expr '(' $ac_mid ')' + 1`
8491 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8492 done
8493 case $ac_lo in
8494 ?*) ac_cv_sizeof_short=$ac_lo;;
8495 '') if test "$ac_cv_type_short" = yes; then
8496 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
8497 See \`config.log' for more details." >&5
8498 echo "$as_me: error: cannot compute sizeof (short)
8499 See \`config.log' for more details." >&2;}
8500 { (exit 77); exit 77; }; }
8501 else
8502 ac_cv_sizeof_short=0
8503 fi ;;
8504 esac
8505 else
8506 cat >conftest.$ac_ext <<_ACEOF
8507 /* confdefs.h. */
8508 _ACEOF
8509 cat confdefs.h >>conftest.$ac_ext
8510 cat >>conftest.$ac_ext <<_ACEOF
8511 /* end confdefs.h. */
8512 $ac_includes_default
8513 typedef short ac__type_sizeof_;
8514 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
8515 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
8516 #include <stdio.h>
8517 #include <stdlib.h>
8519 main ()
8522 FILE *f = fopen ("conftest.val", "w");
8523 if (! f)
8524 return 1;
8525 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
8527 long int i = longval ();
8528 if (i != ((long int) (sizeof (ac__type_sizeof_))))
8529 return 1;
8530 fprintf (f, "%ld\n", i);
8532 else
8534 unsigned long int i = ulongval ();
8535 if (i != ((long int) (sizeof (ac__type_sizeof_))))
8536 return 1;
8537 fprintf (f, "%lu\n", i);
8539 return ferror (f) || fclose (f) != 0;
8542 return 0;
8544 _ACEOF
8545 rm -f conftest$ac_exeext
8546 if { (ac_try="$ac_link"
8547 case "(($ac_try" in
8548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8549 *) ac_try_echo=$ac_try;;
8550 esac
8551 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8552 (eval "$ac_link") 2>&5
8553 ac_status=$?
8554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8555 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8556 { (case "(($ac_try" in
8557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8558 *) ac_try_echo=$ac_try;;
8559 esac
8560 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8561 (eval "$ac_try") 2>&5
8562 ac_status=$?
8563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8564 (exit $ac_status); }; }; then
8565 ac_cv_sizeof_short=`cat conftest.val`
8566 else
8567 echo "$as_me: program exited with status $ac_status" >&5
8568 echo "$as_me: failed program was:" >&5
8569 sed 's/^/| /' conftest.$ac_ext >&5
8571 ( exit $ac_status )
8572 if test "$ac_cv_type_short" = yes; then
8573 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
8574 See \`config.log' for more details." >&5
8575 echo "$as_me: error: cannot compute sizeof (short)
8576 See \`config.log' for more details." >&2;}
8577 { (exit 77); exit 77; }; }
8578 else
8579 ac_cv_sizeof_short=0
8582 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8584 rm -f conftest.val
8586 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
8587 echo "${ECHO_T}$ac_cv_sizeof_short" >&6; }
8591 cat >>confdefs.h <<_ACEOF
8592 #define SIZEOF_SHORT $ac_cv_sizeof_short
8593 _ACEOF
8596 { echo "$as_me:$LINENO: checking for float" >&5
8597 echo $ECHO_N "checking for float... $ECHO_C" >&6; }
8598 if test "${ac_cv_type_float+set}" = set; then
8599 echo $ECHO_N "(cached) $ECHO_C" >&6
8600 else
8601 cat >conftest.$ac_ext <<_ACEOF
8602 /* confdefs.h. */
8603 _ACEOF
8604 cat confdefs.h >>conftest.$ac_ext
8605 cat >>conftest.$ac_ext <<_ACEOF
8606 /* end confdefs.h. */
8607 $ac_includes_default
8608 typedef float ac__type_new_;
8610 main ()
8612 if ((ac__type_new_ *) 0)
8613 return 0;
8614 if (sizeof (ac__type_new_))
8615 return 0;
8617 return 0;
8619 _ACEOF
8620 rm -f conftest.$ac_objext
8621 if { (ac_try="$ac_compile"
8622 case "(($ac_try" in
8623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8624 *) ac_try_echo=$ac_try;;
8625 esac
8626 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8627 (eval "$ac_compile") 2>conftest.er1
8628 ac_status=$?
8629 grep -v '^ *+' conftest.er1 >conftest.err
8630 rm -f conftest.er1
8631 cat conftest.err >&5
8632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8633 (exit $ac_status); } && {
8634 test -z "$ac_c_werror_flag" ||
8635 test ! -s conftest.err
8636 } && test -s conftest.$ac_objext; then
8637 ac_cv_type_float=yes
8638 else
8639 echo "$as_me: failed program was:" >&5
8640 sed 's/^/| /' conftest.$ac_ext >&5
8642 ac_cv_type_float=no
8645 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8647 { echo "$as_me:$LINENO: result: $ac_cv_type_float" >&5
8648 echo "${ECHO_T}$ac_cv_type_float" >&6; }
8650 # The cast to long int works around a bug in the HP C Compiler
8651 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8652 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8653 # This bug is HP SR number 8606223364.
8654 { echo "$as_me:$LINENO: checking size of float" >&5
8655 echo $ECHO_N "checking size of float... $ECHO_C" >&6; }
8656 if test "${ac_cv_sizeof_float+set}" = set; then
8657 echo $ECHO_N "(cached) $ECHO_C" >&6
8658 else
8659 if test "$cross_compiling" = yes; then
8660 # Depending upon the size, compute the lo and hi bounds.
8661 cat >conftest.$ac_ext <<_ACEOF
8662 /* confdefs.h. */
8663 _ACEOF
8664 cat confdefs.h >>conftest.$ac_ext
8665 cat >>conftest.$ac_ext <<_ACEOF
8666 /* end confdefs.h. */
8667 $ac_includes_default
8668 typedef float ac__type_sizeof_;
8670 main ()
8672 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
8673 test_array [0] = 0
8676 return 0;
8678 _ACEOF
8679 rm -f conftest.$ac_objext
8680 if { (ac_try="$ac_compile"
8681 case "(($ac_try" in
8682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8683 *) ac_try_echo=$ac_try;;
8684 esac
8685 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8686 (eval "$ac_compile") 2>conftest.er1
8687 ac_status=$?
8688 grep -v '^ *+' conftest.er1 >conftest.err
8689 rm -f conftest.er1
8690 cat conftest.err >&5
8691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8692 (exit $ac_status); } && {
8693 test -z "$ac_c_werror_flag" ||
8694 test ! -s conftest.err
8695 } && test -s conftest.$ac_objext; then
8696 ac_lo=0 ac_mid=0
8697 while :; do
8698 cat >conftest.$ac_ext <<_ACEOF
8699 /* confdefs.h. */
8700 _ACEOF
8701 cat confdefs.h >>conftest.$ac_ext
8702 cat >>conftest.$ac_ext <<_ACEOF
8703 /* end confdefs.h. */
8704 $ac_includes_default
8705 typedef float ac__type_sizeof_;
8707 main ()
8709 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8710 test_array [0] = 0
8713 return 0;
8715 _ACEOF
8716 rm -f conftest.$ac_objext
8717 if { (ac_try="$ac_compile"
8718 case "(($ac_try" in
8719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8720 *) ac_try_echo=$ac_try;;
8721 esac
8722 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8723 (eval "$ac_compile") 2>conftest.er1
8724 ac_status=$?
8725 grep -v '^ *+' conftest.er1 >conftest.err
8726 rm -f conftest.er1
8727 cat conftest.err >&5
8728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8729 (exit $ac_status); } && {
8730 test -z "$ac_c_werror_flag" ||
8731 test ! -s conftest.err
8732 } && test -s conftest.$ac_objext; then
8733 ac_hi=$ac_mid; break
8734 else
8735 echo "$as_me: failed program was:" >&5
8736 sed 's/^/| /' conftest.$ac_ext >&5
8738 ac_lo=`expr $ac_mid + 1`
8739 if test $ac_lo -le $ac_mid; then
8740 ac_lo= ac_hi=
8741 break
8743 ac_mid=`expr 2 '*' $ac_mid + 1`
8746 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8747 done
8748 else
8749 echo "$as_me: failed program was:" >&5
8750 sed 's/^/| /' conftest.$ac_ext >&5
8752 cat >conftest.$ac_ext <<_ACEOF
8753 /* confdefs.h. */
8754 _ACEOF
8755 cat confdefs.h >>conftest.$ac_ext
8756 cat >>conftest.$ac_ext <<_ACEOF
8757 /* end confdefs.h. */
8758 $ac_includes_default
8759 typedef float ac__type_sizeof_;
8761 main ()
8763 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
8764 test_array [0] = 0
8767 return 0;
8769 _ACEOF
8770 rm -f conftest.$ac_objext
8771 if { (ac_try="$ac_compile"
8772 case "(($ac_try" in
8773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8774 *) ac_try_echo=$ac_try;;
8775 esac
8776 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8777 (eval "$ac_compile") 2>conftest.er1
8778 ac_status=$?
8779 grep -v '^ *+' conftest.er1 >conftest.err
8780 rm -f conftest.er1
8781 cat conftest.err >&5
8782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8783 (exit $ac_status); } && {
8784 test -z "$ac_c_werror_flag" ||
8785 test ! -s conftest.err
8786 } && test -s conftest.$ac_objext; then
8787 ac_hi=-1 ac_mid=-1
8788 while :; do
8789 cat >conftest.$ac_ext <<_ACEOF
8790 /* confdefs.h. */
8791 _ACEOF
8792 cat confdefs.h >>conftest.$ac_ext
8793 cat >>conftest.$ac_ext <<_ACEOF
8794 /* end confdefs.h. */
8795 $ac_includes_default
8796 typedef float ac__type_sizeof_;
8798 main ()
8800 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
8801 test_array [0] = 0
8804 return 0;
8806 _ACEOF
8807 rm -f conftest.$ac_objext
8808 if { (ac_try="$ac_compile"
8809 case "(($ac_try" in
8810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8811 *) ac_try_echo=$ac_try;;
8812 esac
8813 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8814 (eval "$ac_compile") 2>conftest.er1
8815 ac_status=$?
8816 grep -v '^ *+' conftest.er1 >conftest.err
8817 rm -f conftest.er1
8818 cat conftest.err >&5
8819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8820 (exit $ac_status); } && {
8821 test -z "$ac_c_werror_flag" ||
8822 test ! -s conftest.err
8823 } && test -s conftest.$ac_objext; then
8824 ac_lo=$ac_mid; break
8825 else
8826 echo "$as_me: failed program was:" >&5
8827 sed 's/^/| /' conftest.$ac_ext >&5
8829 ac_hi=`expr '(' $ac_mid ')' - 1`
8830 if test $ac_mid -le $ac_hi; then
8831 ac_lo= ac_hi=
8832 break
8834 ac_mid=`expr 2 '*' $ac_mid`
8837 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8838 done
8839 else
8840 echo "$as_me: failed program was:" >&5
8841 sed 's/^/| /' conftest.$ac_ext >&5
8843 ac_lo= ac_hi=
8846 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8849 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8850 # Binary search between lo and hi bounds.
8851 while test "x$ac_lo" != "x$ac_hi"; do
8852 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8853 cat >conftest.$ac_ext <<_ACEOF
8854 /* confdefs.h. */
8855 _ACEOF
8856 cat confdefs.h >>conftest.$ac_ext
8857 cat >>conftest.$ac_ext <<_ACEOF
8858 /* end confdefs.h. */
8859 $ac_includes_default
8860 typedef float ac__type_sizeof_;
8862 main ()
8864 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8865 test_array [0] = 0
8868 return 0;
8870 _ACEOF
8871 rm -f conftest.$ac_objext
8872 if { (ac_try="$ac_compile"
8873 case "(($ac_try" in
8874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8875 *) ac_try_echo=$ac_try;;
8876 esac
8877 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8878 (eval "$ac_compile") 2>conftest.er1
8879 ac_status=$?
8880 grep -v '^ *+' conftest.er1 >conftest.err
8881 rm -f conftest.er1
8882 cat conftest.err >&5
8883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8884 (exit $ac_status); } && {
8885 test -z "$ac_c_werror_flag" ||
8886 test ! -s conftest.err
8887 } && test -s conftest.$ac_objext; then
8888 ac_hi=$ac_mid
8889 else
8890 echo "$as_me: failed program was:" >&5
8891 sed 's/^/| /' conftest.$ac_ext >&5
8893 ac_lo=`expr '(' $ac_mid ')' + 1`
8896 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8897 done
8898 case $ac_lo in
8899 ?*) ac_cv_sizeof_float=$ac_lo;;
8900 '') if test "$ac_cv_type_float" = yes; then
8901 { { echo "$as_me:$LINENO: error: cannot compute sizeof (float)
8902 See \`config.log' for more details." >&5
8903 echo "$as_me: error: cannot compute sizeof (float)
8904 See \`config.log' for more details." >&2;}
8905 { (exit 77); exit 77; }; }
8906 else
8907 ac_cv_sizeof_float=0
8908 fi ;;
8909 esac
8910 else
8911 cat >conftest.$ac_ext <<_ACEOF
8912 /* confdefs.h. */
8913 _ACEOF
8914 cat confdefs.h >>conftest.$ac_ext
8915 cat >>conftest.$ac_ext <<_ACEOF
8916 /* end confdefs.h. */
8917 $ac_includes_default
8918 typedef float ac__type_sizeof_;
8919 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
8920 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
8921 #include <stdio.h>
8922 #include <stdlib.h>
8924 main ()
8927 FILE *f = fopen ("conftest.val", "w");
8928 if (! f)
8929 return 1;
8930 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
8932 long int i = longval ();
8933 if (i != ((long int) (sizeof (ac__type_sizeof_))))
8934 return 1;
8935 fprintf (f, "%ld\n", i);
8937 else
8939 unsigned long int i = ulongval ();
8940 if (i != ((long int) (sizeof (ac__type_sizeof_))))
8941 return 1;
8942 fprintf (f, "%lu\n", i);
8944 return ferror (f) || fclose (f) != 0;
8947 return 0;
8949 _ACEOF
8950 rm -f conftest$ac_exeext
8951 if { (ac_try="$ac_link"
8952 case "(($ac_try" in
8953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8954 *) ac_try_echo=$ac_try;;
8955 esac
8956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8957 (eval "$ac_link") 2>&5
8958 ac_status=$?
8959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8960 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8961 { (case "(($ac_try" in
8962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8963 *) ac_try_echo=$ac_try;;
8964 esac
8965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8966 (eval "$ac_try") 2>&5
8967 ac_status=$?
8968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8969 (exit $ac_status); }; }; then
8970 ac_cv_sizeof_float=`cat conftest.val`
8971 else
8972 echo "$as_me: program exited with status $ac_status" >&5
8973 echo "$as_me: failed program was:" >&5
8974 sed 's/^/| /' conftest.$ac_ext >&5
8976 ( exit $ac_status )
8977 if test "$ac_cv_type_float" = yes; then
8978 { { echo "$as_me:$LINENO: error: cannot compute sizeof (float)
8979 See \`config.log' for more details." >&5
8980 echo "$as_me: error: cannot compute sizeof (float)
8981 See \`config.log' for more details." >&2;}
8982 { (exit 77); exit 77; }; }
8983 else
8984 ac_cv_sizeof_float=0
8987 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8989 rm -f conftest.val
8991 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_float" >&5
8992 echo "${ECHO_T}$ac_cv_sizeof_float" >&6; }
8996 cat >>confdefs.h <<_ACEOF
8997 #define SIZEOF_FLOAT $ac_cv_sizeof_float
8998 _ACEOF
9001 { echo "$as_me:$LINENO: checking for double" >&5
9002 echo $ECHO_N "checking for double... $ECHO_C" >&6; }
9003 if test "${ac_cv_type_double+set}" = set; then
9004 echo $ECHO_N "(cached) $ECHO_C" >&6
9005 else
9006 cat >conftest.$ac_ext <<_ACEOF
9007 /* confdefs.h. */
9008 _ACEOF
9009 cat confdefs.h >>conftest.$ac_ext
9010 cat >>conftest.$ac_ext <<_ACEOF
9011 /* end confdefs.h. */
9012 $ac_includes_default
9013 typedef double ac__type_new_;
9015 main ()
9017 if ((ac__type_new_ *) 0)
9018 return 0;
9019 if (sizeof (ac__type_new_))
9020 return 0;
9022 return 0;
9024 _ACEOF
9025 rm -f conftest.$ac_objext
9026 if { (ac_try="$ac_compile"
9027 case "(($ac_try" in
9028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9029 *) ac_try_echo=$ac_try;;
9030 esac
9031 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9032 (eval "$ac_compile") 2>conftest.er1
9033 ac_status=$?
9034 grep -v '^ *+' conftest.er1 >conftest.err
9035 rm -f conftest.er1
9036 cat conftest.err >&5
9037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9038 (exit $ac_status); } && {
9039 test -z "$ac_c_werror_flag" ||
9040 test ! -s conftest.err
9041 } && test -s conftest.$ac_objext; then
9042 ac_cv_type_double=yes
9043 else
9044 echo "$as_me: failed program was:" >&5
9045 sed 's/^/| /' conftest.$ac_ext >&5
9047 ac_cv_type_double=no
9050 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9052 { echo "$as_me:$LINENO: result: $ac_cv_type_double" >&5
9053 echo "${ECHO_T}$ac_cv_type_double" >&6; }
9055 # The cast to long int works around a bug in the HP C Compiler
9056 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9057 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9058 # This bug is HP SR number 8606223364.
9059 { echo "$as_me:$LINENO: checking size of double" >&5
9060 echo $ECHO_N "checking size of double... $ECHO_C" >&6; }
9061 if test "${ac_cv_sizeof_double+set}" = set; then
9062 echo $ECHO_N "(cached) $ECHO_C" >&6
9063 else
9064 if test "$cross_compiling" = yes; then
9065 # Depending upon the size, compute the lo and hi bounds.
9066 cat >conftest.$ac_ext <<_ACEOF
9067 /* confdefs.h. */
9068 _ACEOF
9069 cat confdefs.h >>conftest.$ac_ext
9070 cat >>conftest.$ac_ext <<_ACEOF
9071 /* end confdefs.h. */
9072 $ac_includes_default
9073 typedef double ac__type_sizeof_;
9075 main ()
9077 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
9078 test_array [0] = 0
9081 return 0;
9083 _ACEOF
9084 rm -f conftest.$ac_objext
9085 if { (ac_try="$ac_compile"
9086 case "(($ac_try" in
9087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9088 *) ac_try_echo=$ac_try;;
9089 esac
9090 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9091 (eval "$ac_compile") 2>conftest.er1
9092 ac_status=$?
9093 grep -v '^ *+' conftest.er1 >conftest.err
9094 rm -f conftest.er1
9095 cat conftest.err >&5
9096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9097 (exit $ac_status); } && {
9098 test -z "$ac_c_werror_flag" ||
9099 test ! -s conftest.err
9100 } && test -s conftest.$ac_objext; then
9101 ac_lo=0 ac_mid=0
9102 while :; do
9103 cat >conftest.$ac_ext <<_ACEOF
9104 /* confdefs.h. */
9105 _ACEOF
9106 cat confdefs.h >>conftest.$ac_ext
9107 cat >>conftest.$ac_ext <<_ACEOF
9108 /* end confdefs.h. */
9109 $ac_includes_default
9110 typedef double ac__type_sizeof_;
9112 main ()
9114 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
9115 test_array [0] = 0
9118 return 0;
9120 _ACEOF
9121 rm -f conftest.$ac_objext
9122 if { (ac_try="$ac_compile"
9123 case "(($ac_try" in
9124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9125 *) ac_try_echo=$ac_try;;
9126 esac
9127 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9128 (eval "$ac_compile") 2>conftest.er1
9129 ac_status=$?
9130 grep -v '^ *+' conftest.er1 >conftest.err
9131 rm -f conftest.er1
9132 cat conftest.err >&5
9133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9134 (exit $ac_status); } && {
9135 test -z "$ac_c_werror_flag" ||
9136 test ! -s conftest.err
9137 } && test -s conftest.$ac_objext; then
9138 ac_hi=$ac_mid; break
9139 else
9140 echo "$as_me: failed program was:" >&5
9141 sed 's/^/| /' conftest.$ac_ext >&5
9143 ac_lo=`expr $ac_mid + 1`
9144 if test $ac_lo -le $ac_mid; then
9145 ac_lo= ac_hi=
9146 break
9148 ac_mid=`expr 2 '*' $ac_mid + 1`
9151 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9152 done
9153 else
9154 echo "$as_me: failed program was:" >&5
9155 sed 's/^/| /' conftest.$ac_ext >&5
9157 cat >conftest.$ac_ext <<_ACEOF
9158 /* confdefs.h. */
9159 _ACEOF
9160 cat confdefs.h >>conftest.$ac_ext
9161 cat >>conftest.$ac_ext <<_ACEOF
9162 /* end confdefs.h. */
9163 $ac_includes_default
9164 typedef double ac__type_sizeof_;
9166 main ()
9168 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
9169 test_array [0] = 0
9172 return 0;
9174 _ACEOF
9175 rm -f conftest.$ac_objext
9176 if { (ac_try="$ac_compile"
9177 case "(($ac_try" in
9178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9179 *) ac_try_echo=$ac_try;;
9180 esac
9181 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9182 (eval "$ac_compile") 2>conftest.er1
9183 ac_status=$?
9184 grep -v '^ *+' conftest.er1 >conftest.err
9185 rm -f conftest.er1
9186 cat conftest.err >&5
9187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9188 (exit $ac_status); } && {
9189 test -z "$ac_c_werror_flag" ||
9190 test ! -s conftest.err
9191 } && test -s conftest.$ac_objext; then
9192 ac_hi=-1 ac_mid=-1
9193 while :; do
9194 cat >conftest.$ac_ext <<_ACEOF
9195 /* confdefs.h. */
9196 _ACEOF
9197 cat confdefs.h >>conftest.$ac_ext
9198 cat >>conftest.$ac_ext <<_ACEOF
9199 /* end confdefs.h. */
9200 $ac_includes_default
9201 typedef double ac__type_sizeof_;
9203 main ()
9205 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
9206 test_array [0] = 0
9209 return 0;
9211 _ACEOF
9212 rm -f conftest.$ac_objext
9213 if { (ac_try="$ac_compile"
9214 case "(($ac_try" in
9215 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9216 *) ac_try_echo=$ac_try;;
9217 esac
9218 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9219 (eval "$ac_compile") 2>conftest.er1
9220 ac_status=$?
9221 grep -v '^ *+' conftest.er1 >conftest.err
9222 rm -f conftest.er1
9223 cat conftest.err >&5
9224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9225 (exit $ac_status); } && {
9226 test -z "$ac_c_werror_flag" ||
9227 test ! -s conftest.err
9228 } && test -s conftest.$ac_objext; then
9229 ac_lo=$ac_mid; break
9230 else
9231 echo "$as_me: failed program was:" >&5
9232 sed 's/^/| /' conftest.$ac_ext >&5
9234 ac_hi=`expr '(' $ac_mid ')' - 1`
9235 if test $ac_mid -le $ac_hi; then
9236 ac_lo= ac_hi=
9237 break
9239 ac_mid=`expr 2 '*' $ac_mid`
9242 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9243 done
9244 else
9245 echo "$as_me: failed program was:" >&5
9246 sed 's/^/| /' conftest.$ac_ext >&5
9248 ac_lo= ac_hi=
9251 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9254 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9255 # Binary search between lo and hi bounds.
9256 while test "x$ac_lo" != "x$ac_hi"; do
9257 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9258 cat >conftest.$ac_ext <<_ACEOF
9259 /* confdefs.h. */
9260 _ACEOF
9261 cat confdefs.h >>conftest.$ac_ext
9262 cat >>conftest.$ac_ext <<_ACEOF
9263 /* end confdefs.h. */
9264 $ac_includes_default
9265 typedef double ac__type_sizeof_;
9267 main ()
9269 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
9270 test_array [0] = 0
9273 return 0;
9275 _ACEOF
9276 rm -f conftest.$ac_objext
9277 if { (ac_try="$ac_compile"
9278 case "(($ac_try" in
9279 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9280 *) ac_try_echo=$ac_try;;
9281 esac
9282 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9283 (eval "$ac_compile") 2>conftest.er1
9284 ac_status=$?
9285 grep -v '^ *+' conftest.er1 >conftest.err
9286 rm -f conftest.er1
9287 cat conftest.err >&5
9288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9289 (exit $ac_status); } && {
9290 test -z "$ac_c_werror_flag" ||
9291 test ! -s conftest.err
9292 } && test -s conftest.$ac_objext; then
9293 ac_hi=$ac_mid
9294 else
9295 echo "$as_me: failed program was:" >&5
9296 sed 's/^/| /' conftest.$ac_ext >&5
9298 ac_lo=`expr '(' $ac_mid ')' + 1`
9301 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9302 done
9303 case $ac_lo in
9304 ?*) ac_cv_sizeof_double=$ac_lo;;
9305 '') if test "$ac_cv_type_double" = yes; then
9306 { { echo "$as_me:$LINENO: error: cannot compute sizeof (double)
9307 See \`config.log' for more details." >&5
9308 echo "$as_me: error: cannot compute sizeof (double)
9309 See \`config.log' for more details." >&2;}
9310 { (exit 77); exit 77; }; }
9311 else
9312 ac_cv_sizeof_double=0
9313 fi ;;
9314 esac
9315 else
9316 cat >conftest.$ac_ext <<_ACEOF
9317 /* confdefs.h. */
9318 _ACEOF
9319 cat confdefs.h >>conftest.$ac_ext
9320 cat >>conftest.$ac_ext <<_ACEOF
9321 /* end confdefs.h. */
9322 $ac_includes_default
9323 typedef double ac__type_sizeof_;
9324 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
9325 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
9326 #include <stdio.h>
9327 #include <stdlib.h>
9329 main ()
9332 FILE *f = fopen ("conftest.val", "w");
9333 if (! f)
9334 return 1;
9335 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
9337 long int i = longval ();
9338 if (i != ((long int) (sizeof (ac__type_sizeof_))))
9339 return 1;
9340 fprintf (f, "%ld\n", i);
9342 else
9344 unsigned long int i = ulongval ();
9345 if (i != ((long int) (sizeof (ac__type_sizeof_))))
9346 return 1;
9347 fprintf (f, "%lu\n", i);
9349 return ferror (f) || fclose (f) != 0;
9352 return 0;
9354 _ACEOF
9355 rm -f conftest$ac_exeext
9356 if { (ac_try="$ac_link"
9357 case "(($ac_try" in
9358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9359 *) ac_try_echo=$ac_try;;
9360 esac
9361 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9362 (eval "$ac_link") 2>&5
9363 ac_status=$?
9364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9365 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9366 { (case "(($ac_try" in
9367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9368 *) ac_try_echo=$ac_try;;
9369 esac
9370 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9371 (eval "$ac_try") 2>&5
9372 ac_status=$?
9373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9374 (exit $ac_status); }; }; then
9375 ac_cv_sizeof_double=`cat conftest.val`
9376 else
9377 echo "$as_me: program exited with status $ac_status" >&5
9378 echo "$as_me: failed program was:" >&5
9379 sed 's/^/| /' conftest.$ac_ext >&5
9381 ( exit $ac_status )
9382 if test "$ac_cv_type_double" = yes; then
9383 { { echo "$as_me:$LINENO: error: cannot compute sizeof (double)
9384 See \`config.log' for more details." >&5
9385 echo "$as_me: error: cannot compute sizeof (double)
9386 See \`config.log' for more details." >&2;}
9387 { (exit 77); exit 77; }; }
9388 else
9389 ac_cv_sizeof_double=0
9392 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9394 rm -f conftest.val
9396 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_double" >&5
9397 echo "${ECHO_T}$ac_cv_sizeof_double" >&6; }
9401 cat >>confdefs.h <<_ACEOF
9402 #define SIZEOF_DOUBLE $ac_cv_sizeof_double
9403 _ACEOF
9406 { echo "$as_me:$LINENO: checking for fpos_t" >&5
9407 echo $ECHO_N "checking for fpos_t... $ECHO_C" >&6; }
9408 if test "${ac_cv_type_fpos_t+set}" = set; then
9409 echo $ECHO_N "(cached) $ECHO_C" >&6
9410 else
9411 cat >conftest.$ac_ext <<_ACEOF
9412 /* confdefs.h. */
9413 _ACEOF
9414 cat confdefs.h >>conftest.$ac_ext
9415 cat >>conftest.$ac_ext <<_ACEOF
9416 /* end confdefs.h. */
9417 $ac_includes_default
9418 typedef fpos_t ac__type_new_;
9420 main ()
9422 if ((ac__type_new_ *) 0)
9423 return 0;
9424 if (sizeof (ac__type_new_))
9425 return 0;
9427 return 0;
9429 _ACEOF
9430 rm -f conftest.$ac_objext
9431 if { (ac_try="$ac_compile"
9432 case "(($ac_try" in
9433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9434 *) ac_try_echo=$ac_try;;
9435 esac
9436 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9437 (eval "$ac_compile") 2>conftest.er1
9438 ac_status=$?
9439 grep -v '^ *+' conftest.er1 >conftest.err
9440 rm -f conftest.er1
9441 cat conftest.err >&5
9442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9443 (exit $ac_status); } && {
9444 test -z "$ac_c_werror_flag" ||
9445 test ! -s conftest.err
9446 } && test -s conftest.$ac_objext; then
9447 ac_cv_type_fpos_t=yes
9448 else
9449 echo "$as_me: failed program was:" >&5
9450 sed 's/^/| /' conftest.$ac_ext >&5
9452 ac_cv_type_fpos_t=no
9455 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9457 { echo "$as_me:$LINENO: result: $ac_cv_type_fpos_t" >&5
9458 echo "${ECHO_T}$ac_cv_type_fpos_t" >&6; }
9460 # The cast to long int works around a bug in the HP C Compiler
9461 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9462 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9463 # This bug is HP SR number 8606223364.
9464 { echo "$as_me:$LINENO: checking size of fpos_t" >&5
9465 echo $ECHO_N "checking size of fpos_t... $ECHO_C" >&6; }
9466 if test "${ac_cv_sizeof_fpos_t+set}" = set; then
9467 echo $ECHO_N "(cached) $ECHO_C" >&6
9468 else
9469 if test "$cross_compiling" = yes; then
9470 # Depending upon the size, compute the lo and hi bounds.
9471 cat >conftest.$ac_ext <<_ACEOF
9472 /* confdefs.h. */
9473 _ACEOF
9474 cat confdefs.h >>conftest.$ac_ext
9475 cat >>conftest.$ac_ext <<_ACEOF
9476 /* end confdefs.h. */
9477 $ac_includes_default
9478 typedef fpos_t ac__type_sizeof_;
9480 main ()
9482 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
9483 test_array [0] = 0
9486 return 0;
9488 _ACEOF
9489 rm -f conftest.$ac_objext
9490 if { (ac_try="$ac_compile"
9491 case "(($ac_try" in
9492 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9493 *) ac_try_echo=$ac_try;;
9494 esac
9495 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9496 (eval "$ac_compile") 2>conftest.er1
9497 ac_status=$?
9498 grep -v '^ *+' conftest.er1 >conftest.err
9499 rm -f conftest.er1
9500 cat conftest.err >&5
9501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9502 (exit $ac_status); } && {
9503 test -z "$ac_c_werror_flag" ||
9504 test ! -s conftest.err
9505 } && test -s conftest.$ac_objext; then
9506 ac_lo=0 ac_mid=0
9507 while :; do
9508 cat >conftest.$ac_ext <<_ACEOF
9509 /* confdefs.h. */
9510 _ACEOF
9511 cat confdefs.h >>conftest.$ac_ext
9512 cat >>conftest.$ac_ext <<_ACEOF
9513 /* end confdefs.h. */
9514 $ac_includes_default
9515 typedef fpos_t ac__type_sizeof_;
9517 main ()
9519 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
9520 test_array [0] = 0
9523 return 0;
9525 _ACEOF
9526 rm -f conftest.$ac_objext
9527 if { (ac_try="$ac_compile"
9528 case "(($ac_try" in
9529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9530 *) ac_try_echo=$ac_try;;
9531 esac
9532 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9533 (eval "$ac_compile") 2>conftest.er1
9534 ac_status=$?
9535 grep -v '^ *+' conftest.er1 >conftest.err
9536 rm -f conftest.er1
9537 cat conftest.err >&5
9538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9539 (exit $ac_status); } && {
9540 test -z "$ac_c_werror_flag" ||
9541 test ! -s conftest.err
9542 } && test -s conftest.$ac_objext; then
9543 ac_hi=$ac_mid; break
9544 else
9545 echo "$as_me: failed program was:" >&5
9546 sed 's/^/| /' conftest.$ac_ext >&5
9548 ac_lo=`expr $ac_mid + 1`
9549 if test $ac_lo -le $ac_mid; then
9550 ac_lo= ac_hi=
9551 break
9553 ac_mid=`expr 2 '*' $ac_mid + 1`
9556 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9557 done
9558 else
9559 echo "$as_me: failed program was:" >&5
9560 sed 's/^/| /' conftest.$ac_ext >&5
9562 cat >conftest.$ac_ext <<_ACEOF
9563 /* confdefs.h. */
9564 _ACEOF
9565 cat confdefs.h >>conftest.$ac_ext
9566 cat >>conftest.$ac_ext <<_ACEOF
9567 /* end confdefs.h. */
9568 $ac_includes_default
9569 typedef fpos_t ac__type_sizeof_;
9571 main ()
9573 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
9574 test_array [0] = 0
9577 return 0;
9579 _ACEOF
9580 rm -f conftest.$ac_objext
9581 if { (ac_try="$ac_compile"
9582 case "(($ac_try" in
9583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9584 *) ac_try_echo=$ac_try;;
9585 esac
9586 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9587 (eval "$ac_compile") 2>conftest.er1
9588 ac_status=$?
9589 grep -v '^ *+' conftest.er1 >conftest.err
9590 rm -f conftest.er1
9591 cat conftest.err >&5
9592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9593 (exit $ac_status); } && {
9594 test -z "$ac_c_werror_flag" ||
9595 test ! -s conftest.err
9596 } && test -s conftest.$ac_objext; then
9597 ac_hi=-1 ac_mid=-1
9598 while :; do
9599 cat >conftest.$ac_ext <<_ACEOF
9600 /* confdefs.h. */
9601 _ACEOF
9602 cat confdefs.h >>conftest.$ac_ext
9603 cat >>conftest.$ac_ext <<_ACEOF
9604 /* end confdefs.h. */
9605 $ac_includes_default
9606 typedef fpos_t ac__type_sizeof_;
9608 main ()
9610 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
9611 test_array [0] = 0
9614 return 0;
9616 _ACEOF
9617 rm -f conftest.$ac_objext
9618 if { (ac_try="$ac_compile"
9619 case "(($ac_try" in
9620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9621 *) ac_try_echo=$ac_try;;
9622 esac
9623 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9624 (eval "$ac_compile") 2>conftest.er1
9625 ac_status=$?
9626 grep -v '^ *+' conftest.er1 >conftest.err
9627 rm -f conftest.er1
9628 cat conftest.err >&5
9629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9630 (exit $ac_status); } && {
9631 test -z "$ac_c_werror_flag" ||
9632 test ! -s conftest.err
9633 } && test -s conftest.$ac_objext; then
9634 ac_lo=$ac_mid; break
9635 else
9636 echo "$as_me: failed program was:" >&5
9637 sed 's/^/| /' conftest.$ac_ext >&5
9639 ac_hi=`expr '(' $ac_mid ')' - 1`
9640 if test $ac_mid -le $ac_hi; then
9641 ac_lo= ac_hi=
9642 break
9644 ac_mid=`expr 2 '*' $ac_mid`
9647 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9648 done
9649 else
9650 echo "$as_me: failed program was:" >&5
9651 sed 's/^/| /' conftest.$ac_ext >&5
9653 ac_lo= ac_hi=
9656 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9659 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9660 # Binary search between lo and hi bounds.
9661 while test "x$ac_lo" != "x$ac_hi"; do
9662 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9663 cat >conftest.$ac_ext <<_ACEOF
9664 /* confdefs.h. */
9665 _ACEOF
9666 cat confdefs.h >>conftest.$ac_ext
9667 cat >>conftest.$ac_ext <<_ACEOF
9668 /* end confdefs.h. */
9669 $ac_includes_default
9670 typedef fpos_t ac__type_sizeof_;
9672 main ()
9674 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
9675 test_array [0] = 0
9678 return 0;
9680 _ACEOF
9681 rm -f conftest.$ac_objext
9682 if { (ac_try="$ac_compile"
9683 case "(($ac_try" in
9684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9685 *) ac_try_echo=$ac_try;;
9686 esac
9687 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9688 (eval "$ac_compile") 2>conftest.er1
9689 ac_status=$?
9690 grep -v '^ *+' conftest.er1 >conftest.err
9691 rm -f conftest.er1
9692 cat conftest.err >&5
9693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9694 (exit $ac_status); } && {
9695 test -z "$ac_c_werror_flag" ||
9696 test ! -s conftest.err
9697 } && test -s conftest.$ac_objext; then
9698 ac_hi=$ac_mid
9699 else
9700 echo "$as_me: failed program was:" >&5
9701 sed 's/^/| /' conftest.$ac_ext >&5
9703 ac_lo=`expr '(' $ac_mid ')' + 1`
9706 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9707 done
9708 case $ac_lo in
9709 ?*) ac_cv_sizeof_fpos_t=$ac_lo;;
9710 '') if test "$ac_cv_type_fpos_t" = yes; then
9711 { { echo "$as_me:$LINENO: error: cannot compute sizeof (fpos_t)
9712 See \`config.log' for more details." >&5
9713 echo "$as_me: error: cannot compute sizeof (fpos_t)
9714 See \`config.log' for more details." >&2;}
9715 { (exit 77); exit 77; }; }
9716 else
9717 ac_cv_sizeof_fpos_t=0
9718 fi ;;
9719 esac
9720 else
9721 cat >conftest.$ac_ext <<_ACEOF
9722 /* confdefs.h. */
9723 _ACEOF
9724 cat confdefs.h >>conftest.$ac_ext
9725 cat >>conftest.$ac_ext <<_ACEOF
9726 /* end confdefs.h. */
9727 $ac_includes_default
9728 typedef fpos_t ac__type_sizeof_;
9729 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
9730 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
9731 #include <stdio.h>
9732 #include <stdlib.h>
9734 main ()
9737 FILE *f = fopen ("conftest.val", "w");
9738 if (! f)
9739 return 1;
9740 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
9742 long int i = longval ();
9743 if (i != ((long int) (sizeof (ac__type_sizeof_))))
9744 return 1;
9745 fprintf (f, "%ld\n", i);
9747 else
9749 unsigned long int i = ulongval ();
9750 if (i != ((long int) (sizeof (ac__type_sizeof_))))
9751 return 1;
9752 fprintf (f, "%lu\n", i);
9754 return ferror (f) || fclose (f) != 0;
9757 return 0;
9759 _ACEOF
9760 rm -f conftest$ac_exeext
9761 if { (ac_try="$ac_link"
9762 case "(($ac_try" in
9763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9764 *) ac_try_echo=$ac_try;;
9765 esac
9766 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9767 (eval "$ac_link") 2>&5
9768 ac_status=$?
9769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9770 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9771 { (case "(($ac_try" in
9772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9773 *) ac_try_echo=$ac_try;;
9774 esac
9775 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9776 (eval "$ac_try") 2>&5
9777 ac_status=$?
9778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9779 (exit $ac_status); }; }; then
9780 ac_cv_sizeof_fpos_t=`cat conftest.val`
9781 else
9782 echo "$as_me: program exited with status $ac_status" >&5
9783 echo "$as_me: failed program was:" >&5
9784 sed 's/^/| /' conftest.$ac_ext >&5
9786 ( exit $ac_status )
9787 if test "$ac_cv_type_fpos_t" = yes; then
9788 { { echo "$as_me:$LINENO: error: cannot compute sizeof (fpos_t)
9789 See \`config.log' for more details." >&5
9790 echo "$as_me: error: cannot compute sizeof (fpos_t)
9791 See \`config.log' for more details." >&2;}
9792 { (exit 77); exit 77; }; }
9793 else
9794 ac_cv_sizeof_fpos_t=0
9797 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9799 rm -f conftest.val
9801 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_fpos_t" >&5
9802 echo "${ECHO_T}$ac_cv_sizeof_fpos_t" >&6; }
9806 cat >>confdefs.h <<_ACEOF
9807 #define SIZEOF_FPOS_T $ac_cv_sizeof_fpos_t
9808 _ACEOF
9811 { echo "$as_me:$LINENO: checking for size_t" >&5
9812 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
9813 if test "${ac_cv_type_size_t+set}" = set; then
9814 echo $ECHO_N "(cached) $ECHO_C" >&6
9815 else
9816 cat >conftest.$ac_ext <<_ACEOF
9817 /* confdefs.h. */
9818 _ACEOF
9819 cat confdefs.h >>conftest.$ac_ext
9820 cat >>conftest.$ac_ext <<_ACEOF
9821 /* end confdefs.h. */
9822 $ac_includes_default
9823 typedef size_t ac__type_new_;
9825 main ()
9827 if ((ac__type_new_ *) 0)
9828 return 0;
9829 if (sizeof (ac__type_new_))
9830 return 0;
9832 return 0;
9834 _ACEOF
9835 rm -f conftest.$ac_objext
9836 if { (ac_try="$ac_compile"
9837 case "(($ac_try" in
9838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9839 *) ac_try_echo=$ac_try;;
9840 esac
9841 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9842 (eval "$ac_compile") 2>conftest.er1
9843 ac_status=$?
9844 grep -v '^ *+' conftest.er1 >conftest.err
9845 rm -f conftest.er1
9846 cat conftest.err >&5
9847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9848 (exit $ac_status); } && {
9849 test -z "$ac_c_werror_flag" ||
9850 test ! -s conftest.err
9851 } && test -s conftest.$ac_objext; then
9852 ac_cv_type_size_t=yes
9853 else
9854 echo "$as_me: failed program was:" >&5
9855 sed 's/^/| /' conftest.$ac_ext >&5
9857 ac_cv_type_size_t=no
9860 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9862 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
9863 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
9865 # The cast to long int works around a bug in the HP C Compiler
9866 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9867 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9868 # This bug is HP SR number 8606223364.
9869 { echo "$as_me:$LINENO: checking size of size_t" >&5
9870 echo $ECHO_N "checking size of size_t... $ECHO_C" >&6; }
9871 if test "${ac_cv_sizeof_size_t+set}" = set; then
9872 echo $ECHO_N "(cached) $ECHO_C" >&6
9873 else
9874 if test "$cross_compiling" = yes; then
9875 # Depending upon the size, compute the lo and hi bounds.
9876 cat >conftest.$ac_ext <<_ACEOF
9877 /* confdefs.h. */
9878 _ACEOF
9879 cat confdefs.h >>conftest.$ac_ext
9880 cat >>conftest.$ac_ext <<_ACEOF
9881 /* end confdefs.h. */
9882 $ac_includes_default
9883 typedef size_t ac__type_sizeof_;
9885 main ()
9887 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
9888 test_array [0] = 0
9891 return 0;
9893 _ACEOF
9894 rm -f conftest.$ac_objext
9895 if { (ac_try="$ac_compile"
9896 case "(($ac_try" in
9897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9898 *) ac_try_echo=$ac_try;;
9899 esac
9900 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9901 (eval "$ac_compile") 2>conftest.er1
9902 ac_status=$?
9903 grep -v '^ *+' conftest.er1 >conftest.err
9904 rm -f conftest.er1
9905 cat conftest.err >&5
9906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9907 (exit $ac_status); } && {
9908 test -z "$ac_c_werror_flag" ||
9909 test ! -s conftest.err
9910 } && test -s conftest.$ac_objext; then
9911 ac_lo=0 ac_mid=0
9912 while :; do
9913 cat >conftest.$ac_ext <<_ACEOF
9914 /* confdefs.h. */
9915 _ACEOF
9916 cat confdefs.h >>conftest.$ac_ext
9917 cat >>conftest.$ac_ext <<_ACEOF
9918 /* end confdefs.h. */
9919 $ac_includes_default
9920 typedef size_t ac__type_sizeof_;
9922 main ()
9924 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
9925 test_array [0] = 0
9928 return 0;
9930 _ACEOF
9931 rm -f conftest.$ac_objext
9932 if { (ac_try="$ac_compile"
9933 case "(($ac_try" in
9934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9935 *) ac_try_echo=$ac_try;;
9936 esac
9937 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9938 (eval "$ac_compile") 2>conftest.er1
9939 ac_status=$?
9940 grep -v '^ *+' conftest.er1 >conftest.err
9941 rm -f conftest.er1
9942 cat conftest.err >&5
9943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9944 (exit $ac_status); } && {
9945 test -z "$ac_c_werror_flag" ||
9946 test ! -s conftest.err
9947 } && test -s conftest.$ac_objext; then
9948 ac_hi=$ac_mid; break
9949 else
9950 echo "$as_me: failed program was:" >&5
9951 sed 's/^/| /' conftest.$ac_ext >&5
9953 ac_lo=`expr $ac_mid + 1`
9954 if test $ac_lo -le $ac_mid; then
9955 ac_lo= ac_hi=
9956 break
9958 ac_mid=`expr 2 '*' $ac_mid + 1`
9961 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9962 done
9963 else
9964 echo "$as_me: failed program was:" >&5
9965 sed 's/^/| /' conftest.$ac_ext >&5
9967 cat >conftest.$ac_ext <<_ACEOF
9968 /* confdefs.h. */
9969 _ACEOF
9970 cat confdefs.h >>conftest.$ac_ext
9971 cat >>conftest.$ac_ext <<_ACEOF
9972 /* end confdefs.h. */
9973 $ac_includes_default
9974 typedef size_t ac__type_sizeof_;
9976 main ()
9978 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
9979 test_array [0] = 0
9982 return 0;
9984 _ACEOF
9985 rm -f conftest.$ac_objext
9986 if { (ac_try="$ac_compile"
9987 case "(($ac_try" in
9988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9989 *) ac_try_echo=$ac_try;;
9990 esac
9991 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9992 (eval "$ac_compile") 2>conftest.er1
9993 ac_status=$?
9994 grep -v '^ *+' conftest.er1 >conftest.err
9995 rm -f conftest.er1
9996 cat conftest.err >&5
9997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9998 (exit $ac_status); } && {
9999 test -z "$ac_c_werror_flag" ||
10000 test ! -s conftest.err
10001 } && test -s conftest.$ac_objext; then
10002 ac_hi=-1 ac_mid=-1
10003 while :; do
10004 cat >conftest.$ac_ext <<_ACEOF
10005 /* confdefs.h. */
10006 _ACEOF
10007 cat confdefs.h >>conftest.$ac_ext
10008 cat >>conftest.$ac_ext <<_ACEOF
10009 /* end confdefs.h. */
10010 $ac_includes_default
10011 typedef size_t ac__type_sizeof_;
10013 main ()
10015 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
10016 test_array [0] = 0
10019 return 0;
10021 _ACEOF
10022 rm -f conftest.$ac_objext
10023 if { (ac_try="$ac_compile"
10024 case "(($ac_try" in
10025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10026 *) ac_try_echo=$ac_try;;
10027 esac
10028 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10029 (eval "$ac_compile") 2>conftest.er1
10030 ac_status=$?
10031 grep -v '^ *+' conftest.er1 >conftest.err
10032 rm -f conftest.er1
10033 cat conftest.err >&5
10034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10035 (exit $ac_status); } && {
10036 test -z "$ac_c_werror_flag" ||
10037 test ! -s conftest.err
10038 } && test -s conftest.$ac_objext; then
10039 ac_lo=$ac_mid; break
10040 else
10041 echo "$as_me: failed program was:" >&5
10042 sed 's/^/| /' conftest.$ac_ext >&5
10044 ac_hi=`expr '(' $ac_mid ')' - 1`
10045 if test $ac_mid -le $ac_hi; then
10046 ac_lo= ac_hi=
10047 break
10049 ac_mid=`expr 2 '*' $ac_mid`
10052 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10053 done
10054 else
10055 echo "$as_me: failed program was:" >&5
10056 sed 's/^/| /' conftest.$ac_ext >&5
10058 ac_lo= ac_hi=
10061 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10064 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10065 # Binary search between lo and hi bounds.
10066 while test "x$ac_lo" != "x$ac_hi"; do
10067 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10068 cat >conftest.$ac_ext <<_ACEOF
10069 /* confdefs.h. */
10070 _ACEOF
10071 cat confdefs.h >>conftest.$ac_ext
10072 cat >>conftest.$ac_ext <<_ACEOF
10073 /* end confdefs.h. */
10074 $ac_includes_default
10075 typedef size_t ac__type_sizeof_;
10077 main ()
10079 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
10080 test_array [0] = 0
10083 return 0;
10085 _ACEOF
10086 rm -f conftest.$ac_objext
10087 if { (ac_try="$ac_compile"
10088 case "(($ac_try" in
10089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10090 *) ac_try_echo=$ac_try;;
10091 esac
10092 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10093 (eval "$ac_compile") 2>conftest.er1
10094 ac_status=$?
10095 grep -v '^ *+' conftest.er1 >conftest.err
10096 rm -f conftest.er1
10097 cat conftest.err >&5
10098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10099 (exit $ac_status); } && {
10100 test -z "$ac_c_werror_flag" ||
10101 test ! -s conftest.err
10102 } && test -s conftest.$ac_objext; then
10103 ac_hi=$ac_mid
10104 else
10105 echo "$as_me: failed program was:" >&5
10106 sed 's/^/| /' conftest.$ac_ext >&5
10108 ac_lo=`expr '(' $ac_mid ')' + 1`
10111 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10112 done
10113 case $ac_lo in
10114 ?*) ac_cv_sizeof_size_t=$ac_lo;;
10115 '') if test "$ac_cv_type_size_t" = yes; then
10116 { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
10117 See \`config.log' for more details." >&5
10118 echo "$as_me: error: cannot compute sizeof (size_t)
10119 See \`config.log' for more details." >&2;}
10120 { (exit 77); exit 77; }; }
10121 else
10122 ac_cv_sizeof_size_t=0
10123 fi ;;
10124 esac
10125 else
10126 cat >conftest.$ac_ext <<_ACEOF
10127 /* confdefs.h. */
10128 _ACEOF
10129 cat confdefs.h >>conftest.$ac_ext
10130 cat >>conftest.$ac_ext <<_ACEOF
10131 /* end confdefs.h. */
10132 $ac_includes_default
10133 typedef size_t ac__type_sizeof_;
10134 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
10135 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
10136 #include <stdio.h>
10137 #include <stdlib.h>
10139 main ()
10142 FILE *f = fopen ("conftest.val", "w");
10143 if (! f)
10144 return 1;
10145 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
10147 long int i = longval ();
10148 if (i != ((long int) (sizeof (ac__type_sizeof_))))
10149 return 1;
10150 fprintf (f, "%ld\n", i);
10152 else
10154 unsigned long int i = ulongval ();
10155 if (i != ((long int) (sizeof (ac__type_sizeof_))))
10156 return 1;
10157 fprintf (f, "%lu\n", i);
10159 return ferror (f) || fclose (f) != 0;
10162 return 0;
10164 _ACEOF
10165 rm -f conftest$ac_exeext
10166 if { (ac_try="$ac_link"
10167 case "(($ac_try" in
10168 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10169 *) ac_try_echo=$ac_try;;
10170 esac
10171 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10172 (eval "$ac_link") 2>&5
10173 ac_status=$?
10174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10175 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10176 { (case "(($ac_try" in
10177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10178 *) ac_try_echo=$ac_try;;
10179 esac
10180 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10181 (eval "$ac_try") 2>&5
10182 ac_status=$?
10183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10184 (exit $ac_status); }; }; then
10185 ac_cv_sizeof_size_t=`cat conftest.val`
10186 else
10187 echo "$as_me: program exited with status $ac_status" >&5
10188 echo "$as_me: failed program was:" >&5
10189 sed 's/^/| /' conftest.$ac_ext >&5
10191 ( exit $ac_status )
10192 if test "$ac_cv_type_size_t" = yes; then
10193 { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
10194 See \`config.log' for more details." >&5
10195 echo "$as_me: error: cannot compute sizeof (size_t)
10196 See \`config.log' for more details." >&2;}
10197 { (exit 77); exit 77; }; }
10198 else
10199 ac_cv_sizeof_size_t=0
10202 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10204 rm -f conftest.val
10206 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
10207 echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6; }
10211 cat >>confdefs.h <<_ACEOF
10212 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
10213 _ACEOF
10216 { echo "$as_me:$LINENO: checking for pid_t" >&5
10217 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
10218 if test "${ac_cv_type_pid_t+set}" = set; then
10219 echo $ECHO_N "(cached) $ECHO_C" >&6
10220 else
10221 cat >conftest.$ac_ext <<_ACEOF
10222 /* confdefs.h. */
10223 _ACEOF
10224 cat confdefs.h >>conftest.$ac_ext
10225 cat >>conftest.$ac_ext <<_ACEOF
10226 /* end confdefs.h. */
10227 $ac_includes_default
10228 typedef pid_t ac__type_new_;
10230 main ()
10232 if ((ac__type_new_ *) 0)
10233 return 0;
10234 if (sizeof (ac__type_new_))
10235 return 0;
10237 return 0;
10239 _ACEOF
10240 rm -f conftest.$ac_objext
10241 if { (ac_try="$ac_compile"
10242 case "(($ac_try" in
10243 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10244 *) ac_try_echo=$ac_try;;
10245 esac
10246 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10247 (eval "$ac_compile") 2>conftest.er1
10248 ac_status=$?
10249 grep -v '^ *+' conftest.er1 >conftest.err
10250 rm -f conftest.er1
10251 cat conftest.err >&5
10252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10253 (exit $ac_status); } && {
10254 test -z "$ac_c_werror_flag" ||
10255 test ! -s conftest.err
10256 } && test -s conftest.$ac_objext; then
10257 ac_cv_type_pid_t=yes
10258 else
10259 echo "$as_me: failed program was:" >&5
10260 sed 's/^/| /' conftest.$ac_ext >&5
10262 ac_cv_type_pid_t=no
10265 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10267 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
10268 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
10270 # The cast to long int works around a bug in the HP C Compiler
10271 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10272 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10273 # This bug is HP SR number 8606223364.
10274 { echo "$as_me:$LINENO: checking size of pid_t" >&5
10275 echo $ECHO_N "checking size of pid_t... $ECHO_C" >&6; }
10276 if test "${ac_cv_sizeof_pid_t+set}" = set; then
10277 echo $ECHO_N "(cached) $ECHO_C" >&6
10278 else
10279 if test "$cross_compiling" = yes; then
10280 # Depending upon the size, compute the lo and hi bounds.
10281 cat >conftest.$ac_ext <<_ACEOF
10282 /* confdefs.h. */
10283 _ACEOF
10284 cat confdefs.h >>conftest.$ac_ext
10285 cat >>conftest.$ac_ext <<_ACEOF
10286 /* end confdefs.h. */
10287 $ac_includes_default
10288 typedef pid_t ac__type_sizeof_;
10290 main ()
10292 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
10293 test_array [0] = 0
10296 return 0;
10298 _ACEOF
10299 rm -f conftest.$ac_objext
10300 if { (ac_try="$ac_compile"
10301 case "(($ac_try" in
10302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10303 *) ac_try_echo=$ac_try;;
10304 esac
10305 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10306 (eval "$ac_compile") 2>conftest.er1
10307 ac_status=$?
10308 grep -v '^ *+' conftest.er1 >conftest.err
10309 rm -f conftest.er1
10310 cat conftest.err >&5
10311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10312 (exit $ac_status); } && {
10313 test -z "$ac_c_werror_flag" ||
10314 test ! -s conftest.err
10315 } && test -s conftest.$ac_objext; then
10316 ac_lo=0 ac_mid=0
10317 while :; do
10318 cat >conftest.$ac_ext <<_ACEOF
10319 /* confdefs.h. */
10320 _ACEOF
10321 cat confdefs.h >>conftest.$ac_ext
10322 cat >>conftest.$ac_ext <<_ACEOF
10323 /* end confdefs.h. */
10324 $ac_includes_default
10325 typedef pid_t ac__type_sizeof_;
10327 main ()
10329 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
10330 test_array [0] = 0
10333 return 0;
10335 _ACEOF
10336 rm -f conftest.$ac_objext
10337 if { (ac_try="$ac_compile"
10338 case "(($ac_try" in
10339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10340 *) ac_try_echo=$ac_try;;
10341 esac
10342 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10343 (eval "$ac_compile") 2>conftest.er1
10344 ac_status=$?
10345 grep -v '^ *+' conftest.er1 >conftest.err
10346 rm -f conftest.er1
10347 cat conftest.err >&5
10348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10349 (exit $ac_status); } && {
10350 test -z "$ac_c_werror_flag" ||
10351 test ! -s conftest.err
10352 } && test -s conftest.$ac_objext; then
10353 ac_hi=$ac_mid; break
10354 else
10355 echo "$as_me: failed program was:" >&5
10356 sed 's/^/| /' conftest.$ac_ext >&5
10358 ac_lo=`expr $ac_mid + 1`
10359 if test $ac_lo -le $ac_mid; then
10360 ac_lo= ac_hi=
10361 break
10363 ac_mid=`expr 2 '*' $ac_mid + 1`
10366 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10367 done
10368 else
10369 echo "$as_me: failed program was:" >&5
10370 sed 's/^/| /' conftest.$ac_ext >&5
10372 cat >conftest.$ac_ext <<_ACEOF
10373 /* confdefs.h. */
10374 _ACEOF
10375 cat confdefs.h >>conftest.$ac_ext
10376 cat >>conftest.$ac_ext <<_ACEOF
10377 /* end confdefs.h. */
10378 $ac_includes_default
10379 typedef pid_t ac__type_sizeof_;
10381 main ()
10383 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
10384 test_array [0] = 0
10387 return 0;
10389 _ACEOF
10390 rm -f conftest.$ac_objext
10391 if { (ac_try="$ac_compile"
10392 case "(($ac_try" in
10393 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10394 *) ac_try_echo=$ac_try;;
10395 esac
10396 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10397 (eval "$ac_compile") 2>conftest.er1
10398 ac_status=$?
10399 grep -v '^ *+' conftest.er1 >conftest.err
10400 rm -f conftest.er1
10401 cat conftest.err >&5
10402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10403 (exit $ac_status); } && {
10404 test -z "$ac_c_werror_flag" ||
10405 test ! -s conftest.err
10406 } && test -s conftest.$ac_objext; then
10407 ac_hi=-1 ac_mid=-1
10408 while :; do
10409 cat >conftest.$ac_ext <<_ACEOF
10410 /* confdefs.h. */
10411 _ACEOF
10412 cat confdefs.h >>conftest.$ac_ext
10413 cat >>conftest.$ac_ext <<_ACEOF
10414 /* end confdefs.h. */
10415 $ac_includes_default
10416 typedef pid_t ac__type_sizeof_;
10418 main ()
10420 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
10421 test_array [0] = 0
10424 return 0;
10426 _ACEOF
10427 rm -f conftest.$ac_objext
10428 if { (ac_try="$ac_compile"
10429 case "(($ac_try" in
10430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10431 *) ac_try_echo=$ac_try;;
10432 esac
10433 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10434 (eval "$ac_compile") 2>conftest.er1
10435 ac_status=$?
10436 grep -v '^ *+' conftest.er1 >conftest.err
10437 rm -f conftest.er1
10438 cat conftest.err >&5
10439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10440 (exit $ac_status); } && {
10441 test -z "$ac_c_werror_flag" ||
10442 test ! -s conftest.err
10443 } && test -s conftest.$ac_objext; then
10444 ac_lo=$ac_mid; break
10445 else
10446 echo "$as_me: failed program was:" >&5
10447 sed 's/^/| /' conftest.$ac_ext >&5
10449 ac_hi=`expr '(' $ac_mid ')' - 1`
10450 if test $ac_mid -le $ac_hi; then
10451 ac_lo= ac_hi=
10452 break
10454 ac_mid=`expr 2 '*' $ac_mid`
10457 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10458 done
10459 else
10460 echo "$as_me: failed program was:" >&5
10461 sed 's/^/| /' conftest.$ac_ext >&5
10463 ac_lo= ac_hi=
10466 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10469 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10470 # Binary search between lo and hi bounds.
10471 while test "x$ac_lo" != "x$ac_hi"; do
10472 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10473 cat >conftest.$ac_ext <<_ACEOF
10474 /* confdefs.h. */
10475 _ACEOF
10476 cat confdefs.h >>conftest.$ac_ext
10477 cat >>conftest.$ac_ext <<_ACEOF
10478 /* end confdefs.h. */
10479 $ac_includes_default
10480 typedef pid_t ac__type_sizeof_;
10482 main ()
10484 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
10485 test_array [0] = 0
10488 return 0;
10490 _ACEOF
10491 rm -f conftest.$ac_objext
10492 if { (ac_try="$ac_compile"
10493 case "(($ac_try" in
10494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10495 *) ac_try_echo=$ac_try;;
10496 esac
10497 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10498 (eval "$ac_compile") 2>conftest.er1
10499 ac_status=$?
10500 grep -v '^ *+' conftest.er1 >conftest.err
10501 rm -f conftest.er1
10502 cat conftest.err >&5
10503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10504 (exit $ac_status); } && {
10505 test -z "$ac_c_werror_flag" ||
10506 test ! -s conftest.err
10507 } && test -s conftest.$ac_objext; then
10508 ac_hi=$ac_mid
10509 else
10510 echo "$as_me: failed program was:" >&5
10511 sed 's/^/| /' conftest.$ac_ext >&5
10513 ac_lo=`expr '(' $ac_mid ')' + 1`
10516 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10517 done
10518 case $ac_lo in
10519 ?*) ac_cv_sizeof_pid_t=$ac_lo;;
10520 '') if test "$ac_cv_type_pid_t" = yes; then
10521 { { echo "$as_me:$LINENO: error: cannot compute sizeof (pid_t)
10522 See \`config.log' for more details." >&5
10523 echo "$as_me: error: cannot compute sizeof (pid_t)
10524 See \`config.log' for more details." >&2;}
10525 { (exit 77); exit 77; }; }
10526 else
10527 ac_cv_sizeof_pid_t=0
10528 fi ;;
10529 esac
10530 else
10531 cat >conftest.$ac_ext <<_ACEOF
10532 /* confdefs.h. */
10533 _ACEOF
10534 cat confdefs.h >>conftest.$ac_ext
10535 cat >>conftest.$ac_ext <<_ACEOF
10536 /* end confdefs.h. */
10537 $ac_includes_default
10538 typedef pid_t ac__type_sizeof_;
10539 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
10540 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
10541 #include <stdio.h>
10542 #include <stdlib.h>
10544 main ()
10547 FILE *f = fopen ("conftest.val", "w");
10548 if (! f)
10549 return 1;
10550 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
10552 long int i = longval ();
10553 if (i != ((long int) (sizeof (ac__type_sizeof_))))
10554 return 1;
10555 fprintf (f, "%ld\n", i);
10557 else
10559 unsigned long int i = ulongval ();
10560 if (i != ((long int) (sizeof (ac__type_sizeof_))))
10561 return 1;
10562 fprintf (f, "%lu\n", i);
10564 return ferror (f) || fclose (f) != 0;
10567 return 0;
10569 _ACEOF
10570 rm -f conftest$ac_exeext
10571 if { (ac_try="$ac_link"
10572 case "(($ac_try" in
10573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10574 *) ac_try_echo=$ac_try;;
10575 esac
10576 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10577 (eval "$ac_link") 2>&5
10578 ac_status=$?
10579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10580 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10581 { (case "(($ac_try" in
10582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10583 *) ac_try_echo=$ac_try;;
10584 esac
10585 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10586 (eval "$ac_try") 2>&5
10587 ac_status=$?
10588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10589 (exit $ac_status); }; }; then
10590 ac_cv_sizeof_pid_t=`cat conftest.val`
10591 else
10592 echo "$as_me: program exited with status $ac_status" >&5
10593 echo "$as_me: failed program was:" >&5
10594 sed 's/^/| /' conftest.$ac_ext >&5
10596 ( exit $ac_status )
10597 if test "$ac_cv_type_pid_t" = yes; then
10598 { { echo "$as_me:$LINENO: error: cannot compute sizeof (pid_t)
10599 See \`config.log' for more details." >&5
10600 echo "$as_me: error: cannot compute sizeof (pid_t)
10601 See \`config.log' for more details." >&2;}
10602 { (exit 77); exit 77; }; }
10603 else
10604 ac_cv_sizeof_pid_t=0
10607 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10609 rm -f conftest.val
10611 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_pid_t" >&5
10612 echo "${ECHO_T}$ac_cv_sizeof_pid_t" >&6; }
10616 cat >>confdefs.h <<_ACEOF
10617 #define SIZEOF_PID_T $ac_cv_sizeof_pid_t
10618 _ACEOF
10622 { echo "$as_me:$LINENO: checking for long long support" >&5
10623 echo $ECHO_N "checking for long long support... $ECHO_C" >&6; }
10624 have_long_long=no
10625 cat >conftest.$ac_ext <<_ACEOF
10626 /* confdefs.h. */
10627 _ACEOF
10628 cat confdefs.h >>conftest.$ac_ext
10629 cat >>conftest.$ac_ext <<_ACEOF
10630 /* end confdefs.h. */
10633 main ()
10635 long long x; x = (long long)0;
10637 return 0;
10639 _ACEOF
10640 rm -f conftest.$ac_objext
10641 if { (ac_try="$ac_compile"
10642 case "(($ac_try" in
10643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10644 *) ac_try_echo=$ac_try;;
10645 esac
10646 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10647 (eval "$ac_compile") 2>conftest.er1
10648 ac_status=$?
10649 grep -v '^ *+' conftest.er1 >conftest.err
10650 rm -f conftest.er1
10651 cat conftest.err >&5
10652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10653 (exit $ac_status); } && {
10654 test -z "$ac_c_werror_flag" ||
10655 test ! -s conftest.err
10656 } && test -s conftest.$ac_objext; then
10659 cat >>confdefs.h <<\_ACEOF
10660 #define HAVE_LONG_LONG 1
10661 _ACEOF
10663 have_long_long=yes
10665 else
10666 echo "$as_me: failed program was:" >&5
10667 sed 's/^/| /' conftest.$ac_ext >&5
10672 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10673 { echo "$as_me:$LINENO: result: $have_long_long" >&5
10674 echo "${ECHO_T}$have_long_long" >&6; }
10675 if test "$have_long_long" = yes ; then
10676 { echo "$as_me:$LINENO: checking for long long" >&5
10677 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
10678 if test "${ac_cv_type_long_long+set}" = set; then
10679 echo $ECHO_N "(cached) $ECHO_C" >&6
10680 else
10681 cat >conftest.$ac_ext <<_ACEOF
10682 /* confdefs.h. */
10683 _ACEOF
10684 cat confdefs.h >>conftest.$ac_ext
10685 cat >>conftest.$ac_ext <<_ACEOF
10686 /* end confdefs.h. */
10687 $ac_includes_default
10688 typedef long long ac__type_new_;
10690 main ()
10692 if ((ac__type_new_ *) 0)
10693 return 0;
10694 if (sizeof (ac__type_new_))
10695 return 0;
10697 return 0;
10699 _ACEOF
10700 rm -f conftest.$ac_objext
10701 if { (ac_try="$ac_compile"
10702 case "(($ac_try" in
10703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10704 *) ac_try_echo=$ac_try;;
10705 esac
10706 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10707 (eval "$ac_compile") 2>conftest.er1
10708 ac_status=$?
10709 grep -v '^ *+' conftest.er1 >conftest.err
10710 rm -f conftest.er1
10711 cat conftest.err >&5
10712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10713 (exit $ac_status); } && {
10714 test -z "$ac_c_werror_flag" ||
10715 test ! -s conftest.err
10716 } && test -s conftest.$ac_objext; then
10717 ac_cv_type_long_long=yes
10718 else
10719 echo "$as_me: failed program was:" >&5
10720 sed 's/^/| /' conftest.$ac_ext >&5
10722 ac_cv_type_long_long=no
10725 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10727 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
10728 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
10730 # The cast to long int works around a bug in the HP C Compiler
10731 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10732 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10733 # This bug is HP SR number 8606223364.
10734 { echo "$as_me:$LINENO: checking size of long long" >&5
10735 echo $ECHO_N "checking size of long long... $ECHO_C" >&6; }
10736 if test "${ac_cv_sizeof_long_long+set}" = set; then
10737 echo $ECHO_N "(cached) $ECHO_C" >&6
10738 else
10739 if test "$cross_compiling" = yes; then
10740 # Depending upon the size, compute the lo and hi bounds.
10741 cat >conftest.$ac_ext <<_ACEOF
10742 /* confdefs.h. */
10743 _ACEOF
10744 cat confdefs.h >>conftest.$ac_ext
10745 cat >>conftest.$ac_ext <<_ACEOF
10746 /* end confdefs.h. */
10747 $ac_includes_default
10748 typedef long long ac__type_sizeof_;
10750 main ()
10752 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
10753 test_array [0] = 0
10756 return 0;
10758 _ACEOF
10759 rm -f conftest.$ac_objext
10760 if { (ac_try="$ac_compile"
10761 case "(($ac_try" in
10762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10763 *) ac_try_echo=$ac_try;;
10764 esac
10765 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10766 (eval "$ac_compile") 2>conftest.er1
10767 ac_status=$?
10768 grep -v '^ *+' conftest.er1 >conftest.err
10769 rm -f conftest.er1
10770 cat conftest.err >&5
10771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10772 (exit $ac_status); } && {
10773 test -z "$ac_c_werror_flag" ||
10774 test ! -s conftest.err
10775 } && test -s conftest.$ac_objext; then
10776 ac_lo=0 ac_mid=0
10777 while :; do
10778 cat >conftest.$ac_ext <<_ACEOF
10779 /* confdefs.h. */
10780 _ACEOF
10781 cat confdefs.h >>conftest.$ac_ext
10782 cat >>conftest.$ac_ext <<_ACEOF
10783 /* end confdefs.h. */
10784 $ac_includes_default
10785 typedef long long ac__type_sizeof_;
10787 main ()
10789 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
10790 test_array [0] = 0
10793 return 0;
10795 _ACEOF
10796 rm -f conftest.$ac_objext
10797 if { (ac_try="$ac_compile"
10798 case "(($ac_try" in
10799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10800 *) ac_try_echo=$ac_try;;
10801 esac
10802 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10803 (eval "$ac_compile") 2>conftest.er1
10804 ac_status=$?
10805 grep -v '^ *+' conftest.er1 >conftest.err
10806 rm -f conftest.er1
10807 cat conftest.err >&5
10808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10809 (exit $ac_status); } && {
10810 test -z "$ac_c_werror_flag" ||
10811 test ! -s conftest.err
10812 } && test -s conftest.$ac_objext; then
10813 ac_hi=$ac_mid; break
10814 else
10815 echo "$as_me: failed program was:" >&5
10816 sed 's/^/| /' conftest.$ac_ext >&5
10818 ac_lo=`expr $ac_mid + 1`
10819 if test $ac_lo -le $ac_mid; then
10820 ac_lo= ac_hi=
10821 break
10823 ac_mid=`expr 2 '*' $ac_mid + 1`
10826 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10827 done
10828 else
10829 echo "$as_me: failed program was:" >&5
10830 sed 's/^/| /' conftest.$ac_ext >&5
10832 cat >conftest.$ac_ext <<_ACEOF
10833 /* confdefs.h. */
10834 _ACEOF
10835 cat confdefs.h >>conftest.$ac_ext
10836 cat >>conftest.$ac_ext <<_ACEOF
10837 /* end confdefs.h. */
10838 $ac_includes_default
10839 typedef long long ac__type_sizeof_;
10841 main ()
10843 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
10844 test_array [0] = 0
10847 return 0;
10849 _ACEOF
10850 rm -f conftest.$ac_objext
10851 if { (ac_try="$ac_compile"
10852 case "(($ac_try" in
10853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10854 *) ac_try_echo=$ac_try;;
10855 esac
10856 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10857 (eval "$ac_compile") 2>conftest.er1
10858 ac_status=$?
10859 grep -v '^ *+' conftest.er1 >conftest.err
10860 rm -f conftest.er1
10861 cat conftest.err >&5
10862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10863 (exit $ac_status); } && {
10864 test -z "$ac_c_werror_flag" ||
10865 test ! -s conftest.err
10866 } && test -s conftest.$ac_objext; then
10867 ac_hi=-1 ac_mid=-1
10868 while :; do
10869 cat >conftest.$ac_ext <<_ACEOF
10870 /* confdefs.h. */
10871 _ACEOF
10872 cat confdefs.h >>conftest.$ac_ext
10873 cat >>conftest.$ac_ext <<_ACEOF
10874 /* end confdefs.h. */
10875 $ac_includes_default
10876 typedef long long ac__type_sizeof_;
10878 main ()
10880 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
10881 test_array [0] = 0
10884 return 0;
10886 _ACEOF
10887 rm -f conftest.$ac_objext
10888 if { (ac_try="$ac_compile"
10889 case "(($ac_try" in
10890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10891 *) ac_try_echo=$ac_try;;
10892 esac
10893 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10894 (eval "$ac_compile") 2>conftest.er1
10895 ac_status=$?
10896 grep -v '^ *+' conftest.er1 >conftest.err
10897 rm -f conftest.er1
10898 cat conftest.err >&5
10899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10900 (exit $ac_status); } && {
10901 test -z "$ac_c_werror_flag" ||
10902 test ! -s conftest.err
10903 } && test -s conftest.$ac_objext; then
10904 ac_lo=$ac_mid; break
10905 else
10906 echo "$as_me: failed program was:" >&5
10907 sed 's/^/| /' conftest.$ac_ext >&5
10909 ac_hi=`expr '(' $ac_mid ')' - 1`
10910 if test $ac_mid -le $ac_hi; then
10911 ac_lo= ac_hi=
10912 break
10914 ac_mid=`expr 2 '*' $ac_mid`
10917 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10918 done
10919 else
10920 echo "$as_me: failed program was:" >&5
10921 sed 's/^/| /' conftest.$ac_ext >&5
10923 ac_lo= ac_hi=
10926 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10929 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10930 # Binary search between lo and hi bounds.
10931 while test "x$ac_lo" != "x$ac_hi"; do
10932 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10933 cat >conftest.$ac_ext <<_ACEOF
10934 /* confdefs.h. */
10935 _ACEOF
10936 cat confdefs.h >>conftest.$ac_ext
10937 cat >>conftest.$ac_ext <<_ACEOF
10938 /* end confdefs.h. */
10939 $ac_includes_default
10940 typedef long long ac__type_sizeof_;
10942 main ()
10944 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
10945 test_array [0] = 0
10948 return 0;
10950 _ACEOF
10951 rm -f conftest.$ac_objext
10952 if { (ac_try="$ac_compile"
10953 case "(($ac_try" in
10954 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10955 *) ac_try_echo=$ac_try;;
10956 esac
10957 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10958 (eval "$ac_compile") 2>conftest.er1
10959 ac_status=$?
10960 grep -v '^ *+' conftest.er1 >conftest.err
10961 rm -f conftest.er1
10962 cat conftest.err >&5
10963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10964 (exit $ac_status); } && {
10965 test -z "$ac_c_werror_flag" ||
10966 test ! -s conftest.err
10967 } && test -s conftest.$ac_objext; then
10968 ac_hi=$ac_mid
10969 else
10970 echo "$as_me: failed program was:" >&5
10971 sed 's/^/| /' conftest.$ac_ext >&5
10973 ac_lo=`expr '(' $ac_mid ')' + 1`
10976 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10977 done
10978 case $ac_lo in
10979 ?*) ac_cv_sizeof_long_long=$ac_lo;;
10980 '') if test "$ac_cv_type_long_long" = yes; then
10981 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
10982 See \`config.log' for more details." >&5
10983 echo "$as_me: error: cannot compute sizeof (long long)
10984 See \`config.log' for more details." >&2;}
10985 { (exit 77); exit 77; }; }
10986 else
10987 ac_cv_sizeof_long_long=0
10988 fi ;;
10989 esac
10990 else
10991 cat >conftest.$ac_ext <<_ACEOF
10992 /* confdefs.h. */
10993 _ACEOF
10994 cat confdefs.h >>conftest.$ac_ext
10995 cat >>conftest.$ac_ext <<_ACEOF
10996 /* end confdefs.h. */
10997 $ac_includes_default
10998 typedef long long ac__type_sizeof_;
10999 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
11000 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
11001 #include <stdio.h>
11002 #include <stdlib.h>
11004 main ()
11007 FILE *f = fopen ("conftest.val", "w");
11008 if (! f)
11009 return 1;
11010 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
11012 long int i = longval ();
11013 if (i != ((long int) (sizeof (ac__type_sizeof_))))
11014 return 1;
11015 fprintf (f, "%ld\n", i);
11017 else
11019 unsigned long int i = ulongval ();
11020 if (i != ((long int) (sizeof (ac__type_sizeof_))))
11021 return 1;
11022 fprintf (f, "%lu\n", i);
11024 return ferror (f) || fclose (f) != 0;
11027 return 0;
11029 _ACEOF
11030 rm -f conftest$ac_exeext
11031 if { (ac_try="$ac_link"
11032 case "(($ac_try" in
11033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11034 *) ac_try_echo=$ac_try;;
11035 esac
11036 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11037 (eval "$ac_link") 2>&5
11038 ac_status=$?
11039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11040 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11041 { (case "(($ac_try" in
11042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11043 *) ac_try_echo=$ac_try;;
11044 esac
11045 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11046 (eval "$ac_try") 2>&5
11047 ac_status=$?
11048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11049 (exit $ac_status); }; }; then
11050 ac_cv_sizeof_long_long=`cat conftest.val`
11051 else
11052 echo "$as_me: program exited with status $ac_status" >&5
11053 echo "$as_me: failed program was:" >&5
11054 sed 's/^/| /' conftest.$ac_ext >&5
11056 ( exit $ac_status )
11057 if test "$ac_cv_type_long_long" = yes; then
11058 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
11059 See \`config.log' for more details." >&5
11060 echo "$as_me: error: cannot compute sizeof (long long)
11061 See \`config.log' for more details." >&2;}
11062 { (exit 77); exit 77; }; }
11063 else
11064 ac_cv_sizeof_long_long=0
11067 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11069 rm -f conftest.val
11071 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
11072 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6; }
11076 cat >>confdefs.h <<_ACEOF
11077 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
11078 _ACEOF
11083 { echo "$as_me:$LINENO: checking for _Bool support" >&5
11084 echo $ECHO_N "checking for _Bool support... $ECHO_C" >&6; }
11085 have_c99_bool=no
11086 cat >conftest.$ac_ext <<_ACEOF
11087 /* confdefs.h. */
11088 _ACEOF
11089 cat confdefs.h >>conftest.$ac_ext
11090 cat >>conftest.$ac_ext <<_ACEOF
11091 /* end confdefs.h. */
11094 main ()
11096 _Bool x; x = (_Bool)0;
11098 return 0;
11100 _ACEOF
11101 rm -f conftest.$ac_objext
11102 if { (ac_try="$ac_compile"
11103 case "(($ac_try" in
11104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11105 *) ac_try_echo=$ac_try;;
11106 esac
11107 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11108 (eval "$ac_compile") 2>conftest.er1
11109 ac_status=$?
11110 grep -v '^ *+' conftest.er1 >conftest.err
11111 rm -f conftest.er1
11112 cat conftest.err >&5
11113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11114 (exit $ac_status); } && {
11115 test -z "$ac_c_werror_flag" ||
11116 test ! -s conftest.err
11117 } && test -s conftest.$ac_objext; then
11120 cat >>confdefs.h <<\_ACEOF
11121 #define HAVE_C99_BOOL 1
11122 _ACEOF
11124 have_c99_bool=yes
11126 else
11127 echo "$as_me: failed program was:" >&5
11128 sed 's/^/| /' conftest.$ac_ext >&5
11133 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11134 { echo "$as_me:$LINENO: result: $have_c99_bool" >&5
11135 echo "${ECHO_T}$have_c99_bool" >&6; }
11136 if test "$have_c99_bool" = yes ; then
11137 { echo "$as_me:$LINENO: checking for _Bool" >&5
11138 echo $ECHO_N "checking for _Bool... $ECHO_C" >&6; }
11139 if test "${ac_cv_type__Bool+set}" = set; then
11140 echo $ECHO_N "(cached) $ECHO_C" >&6
11141 else
11142 cat >conftest.$ac_ext <<_ACEOF
11143 /* confdefs.h. */
11144 _ACEOF
11145 cat confdefs.h >>conftest.$ac_ext
11146 cat >>conftest.$ac_ext <<_ACEOF
11147 /* end confdefs.h. */
11148 $ac_includes_default
11149 typedef _Bool ac__type_new_;
11151 main ()
11153 if ((ac__type_new_ *) 0)
11154 return 0;
11155 if (sizeof (ac__type_new_))
11156 return 0;
11158 return 0;
11160 _ACEOF
11161 rm -f conftest.$ac_objext
11162 if { (ac_try="$ac_compile"
11163 case "(($ac_try" in
11164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11165 *) ac_try_echo=$ac_try;;
11166 esac
11167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11168 (eval "$ac_compile") 2>conftest.er1
11169 ac_status=$?
11170 grep -v '^ *+' conftest.er1 >conftest.err
11171 rm -f conftest.er1
11172 cat conftest.err >&5
11173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11174 (exit $ac_status); } && {
11175 test -z "$ac_c_werror_flag" ||
11176 test ! -s conftest.err
11177 } && test -s conftest.$ac_objext; then
11178 ac_cv_type__Bool=yes
11179 else
11180 echo "$as_me: failed program was:" >&5
11181 sed 's/^/| /' conftest.$ac_ext >&5
11183 ac_cv_type__Bool=no
11186 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11188 { echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5
11189 echo "${ECHO_T}$ac_cv_type__Bool" >&6; }
11191 # The cast to long int works around a bug in the HP C Compiler
11192 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11193 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11194 # This bug is HP SR number 8606223364.
11195 { echo "$as_me:$LINENO: checking size of _Bool" >&5
11196 echo $ECHO_N "checking size of _Bool... $ECHO_C" >&6; }
11197 if test "${ac_cv_sizeof__Bool+set}" = set; then
11198 echo $ECHO_N "(cached) $ECHO_C" >&6
11199 else
11200 if test "$cross_compiling" = yes; then
11201 # Depending upon the size, compute the lo and hi bounds.
11202 cat >conftest.$ac_ext <<_ACEOF
11203 /* confdefs.h. */
11204 _ACEOF
11205 cat confdefs.h >>conftest.$ac_ext
11206 cat >>conftest.$ac_ext <<_ACEOF
11207 /* end confdefs.h. */
11208 $ac_includes_default
11209 typedef _Bool ac__type_sizeof_;
11211 main ()
11213 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
11214 test_array [0] = 0
11217 return 0;
11219 _ACEOF
11220 rm -f conftest.$ac_objext
11221 if { (ac_try="$ac_compile"
11222 case "(($ac_try" in
11223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11224 *) ac_try_echo=$ac_try;;
11225 esac
11226 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11227 (eval "$ac_compile") 2>conftest.er1
11228 ac_status=$?
11229 grep -v '^ *+' conftest.er1 >conftest.err
11230 rm -f conftest.er1
11231 cat conftest.err >&5
11232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11233 (exit $ac_status); } && {
11234 test -z "$ac_c_werror_flag" ||
11235 test ! -s conftest.err
11236 } && test -s conftest.$ac_objext; then
11237 ac_lo=0 ac_mid=0
11238 while :; do
11239 cat >conftest.$ac_ext <<_ACEOF
11240 /* confdefs.h. */
11241 _ACEOF
11242 cat confdefs.h >>conftest.$ac_ext
11243 cat >>conftest.$ac_ext <<_ACEOF
11244 /* end confdefs.h. */
11245 $ac_includes_default
11246 typedef _Bool ac__type_sizeof_;
11248 main ()
11250 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
11251 test_array [0] = 0
11254 return 0;
11256 _ACEOF
11257 rm -f conftest.$ac_objext
11258 if { (ac_try="$ac_compile"
11259 case "(($ac_try" in
11260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11261 *) ac_try_echo=$ac_try;;
11262 esac
11263 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11264 (eval "$ac_compile") 2>conftest.er1
11265 ac_status=$?
11266 grep -v '^ *+' conftest.er1 >conftest.err
11267 rm -f conftest.er1
11268 cat conftest.err >&5
11269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11270 (exit $ac_status); } && {
11271 test -z "$ac_c_werror_flag" ||
11272 test ! -s conftest.err
11273 } && test -s conftest.$ac_objext; then
11274 ac_hi=$ac_mid; break
11275 else
11276 echo "$as_me: failed program was:" >&5
11277 sed 's/^/| /' conftest.$ac_ext >&5
11279 ac_lo=`expr $ac_mid + 1`
11280 if test $ac_lo -le $ac_mid; then
11281 ac_lo= ac_hi=
11282 break
11284 ac_mid=`expr 2 '*' $ac_mid + 1`
11287 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11288 done
11289 else
11290 echo "$as_me: failed program was:" >&5
11291 sed 's/^/| /' conftest.$ac_ext >&5
11293 cat >conftest.$ac_ext <<_ACEOF
11294 /* confdefs.h. */
11295 _ACEOF
11296 cat confdefs.h >>conftest.$ac_ext
11297 cat >>conftest.$ac_ext <<_ACEOF
11298 /* end confdefs.h. */
11299 $ac_includes_default
11300 typedef _Bool ac__type_sizeof_;
11302 main ()
11304 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
11305 test_array [0] = 0
11308 return 0;
11310 _ACEOF
11311 rm -f conftest.$ac_objext
11312 if { (ac_try="$ac_compile"
11313 case "(($ac_try" in
11314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11315 *) ac_try_echo=$ac_try;;
11316 esac
11317 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11318 (eval "$ac_compile") 2>conftest.er1
11319 ac_status=$?
11320 grep -v '^ *+' conftest.er1 >conftest.err
11321 rm -f conftest.er1
11322 cat conftest.err >&5
11323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11324 (exit $ac_status); } && {
11325 test -z "$ac_c_werror_flag" ||
11326 test ! -s conftest.err
11327 } && test -s conftest.$ac_objext; then
11328 ac_hi=-1 ac_mid=-1
11329 while :; do
11330 cat >conftest.$ac_ext <<_ACEOF
11331 /* confdefs.h. */
11332 _ACEOF
11333 cat confdefs.h >>conftest.$ac_ext
11334 cat >>conftest.$ac_ext <<_ACEOF
11335 /* end confdefs.h. */
11336 $ac_includes_default
11337 typedef _Bool ac__type_sizeof_;
11339 main ()
11341 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
11342 test_array [0] = 0
11345 return 0;
11347 _ACEOF
11348 rm -f conftest.$ac_objext
11349 if { (ac_try="$ac_compile"
11350 case "(($ac_try" in
11351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11352 *) ac_try_echo=$ac_try;;
11353 esac
11354 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11355 (eval "$ac_compile") 2>conftest.er1
11356 ac_status=$?
11357 grep -v '^ *+' conftest.er1 >conftest.err
11358 rm -f conftest.er1
11359 cat conftest.err >&5
11360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11361 (exit $ac_status); } && {
11362 test -z "$ac_c_werror_flag" ||
11363 test ! -s conftest.err
11364 } && test -s conftest.$ac_objext; then
11365 ac_lo=$ac_mid; break
11366 else
11367 echo "$as_me: failed program was:" >&5
11368 sed 's/^/| /' conftest.$ac_ext >&5
11370 ac_hi=`expr '(' $ac_mid ')' - 1`
11371 if test $ac_mid -le $ac_hi; then
11372 ac_lo= ac_hi=
11373 break
11375 ac_mid=`expr 2 '*' $ac_mid`
11378 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11379 done
11380 else
11381 echo "$as_me: failed program was:" >&5
11382 sed 's/^/| /' conftest.$ac_ext >&5
11384 ac_lo= ac_hi=
11387 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11390 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11391 # Binary search between lo and hi bounds.
11392 while test "x$ac_lo" != "x$ac_hi"; do
11393 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
11394 cat >conftest.$ac_ext <<_ACEOF
11395 /* confdefs.h. */
11396 _ACEOF
11397 cat confdefs.h >>conftest.$ac_ext
11398 cat >>conftest.$ac_ext <<_ACEOF
11399 /* end confdefs.h. */
11400 $ac_includes_default
11401 typedef _Bool ac__type_sizeof_;
11403 main ()
11405 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
11406 test_array [0] = 0
11409 return 0;
11411 _ACEOF
11412 rm -f conftest.$ac_objext
11413 if { (ac_try="$ac_compile"
11414 case "(($ac_try" in
11415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11416 *) ac_try_echo=$ac_try;;
11417 esac
11418 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11419 (eval "$ac_compile") 2>conftest.er1
11420 ac_status=$?
11421 grep -v '^ *+' conftest.er1 >conftest.err
11422 rm -f conftest.er1
11423 cat conftest.err >&5
11424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11425 (exit $ac_status); } && {
11426 test -z "$ac_c_werror_flag" ||
11427 test ! -s conftest.err
11428 } && test -s conftest.$ac_objext; then
11429 ac_hi=$ac_mid
11430 else
11431 echo "$as_me: failed program was:" >&5
11432 sed 's/^/| /' conftest.$ac_ext >&5
11434 ac_lo=`expr '(' $ac_mid ')' + 1`
11437 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11438 done
11439 case $ac_lo in
11440 ?*) ac_cv_sizeof__Bool=$ac_lo;;
11441 '') if test "$ac_cv_type__Bool" = yes; then
11442 { { echo "$as_me:$LINENO: error: cannot compute sizeof (_Bool)
11443 See \`config.log' for more details." >&5
11444 echo "$as_me: error: cannot compute sizeof (_Bool)
11445 See \`config.log' for more details." >&2;}
11446 { (exit 77); exit 77; }; }
11447 else
11448 ac_cv_sizeof__Bool=0
11449 fi ;;
11450 esac
11451 else
11452 cat >conftest.$ac_ext <<_ACEOF
11453 /* confdefs.h. */
11454 _ACEOF
11455 cat confdefs.h >>conftest.$ac_ext
11456 cat >>conftest.$ac_ext <<_ACEOF
11457 /* end confdefs.h. */
11458 $ac_includes_default
11459 typedef _Bool ac__type_sizeof_;
11460 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
11461 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
11462 #include <stdio.h>
11463 #include <stdlib.h>
11465 main ()
11468 FILE *f = fopen ("conftest.val", "w");
11469 if (! f)
11470 return 1;
11471 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
11473 long int i = longval ();
11474 if (i != ((long int) (sizeof (ac__type_sizeof_))))
11475 return 1;
11476 fprintf (f, "%ld\n", i);
11478 else
11480 unsigned long int i = ulongval ();
11481 if (i != ((long int) (sizeof (ac__type_sizeof_))))
11482 return 1;
11483 fprintf (f, "%lu\n", i);
11485 return ferror (f) || fclose (f) != 0;
11488 return 0;
11490 _ACEOF
11491 rm -f conftest$ac_exeext
11492 if { (ac_try="$ac_link"
11493 case "(($ac_try" in
11494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11495 *) ac_try_echo=$ac_try;;
11496 esac
11497 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11498 (eval "$ac_link") 2>&5
11499 ac_status=$?
11500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11501 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11502 { (case "(($ac_try" in
11503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11504 *) ac_try_echo=$ac_try;;
11505 esac
11506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11507 (eval "$ac_try") 2>&5
11508 ac_status=$?
11509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11510 (exit $ac_status); }; }; then
11511 ac_cv_sizeof__Bool=`cat conftest.val`
11512 else
11513 echo "$as_me: program exited with status $ac_status" >&5
11514 echo "$as_me: failed program was:" >&5
11515 sed 's/^/| /' conftest.$ac_ext >&5
11517 ( exit $ac_status )
11518 if test "$ac_cv_type__Bool" = yes; then
11519 { { echo "$as_me:$LINENO: error: cannot compute sizeof (_Bool)
11520 See \`config.log' for more details." >&5
11521 echo "$as_me: error: cannot compute sizeof (_Bool)
11522 See \`config.log' for more details." >&2;}
11523 { (exit 77); exit 77; }; }
11524 else
11525 ac_cv_sizeof__Bool=0
11528 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11530 rm -f conftest.val
11532 { echo "$as_me:$LINENO: result: $ac_cv_sizeof__Bool" >&5
11533 echo "${ECHO_T}$ac_cv_sizeof__Bool" >&6; }
11537 cat >>confdefs.h <<_ACEOF
11538 #define SIZEOF__BOOL $ac_cv_sizeof__Bool
11539 _ACEOF
11544 { echo "$as_me:$LINENO: checking for uintptr_t" >&5
11545 echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6; }
11546 if test "${ac_cv_type_uintptr_t+set}" = set; then
11547 echo $ECHO_N "(cached) $ECHO_C" >&6
11548 else
11549 cat >conftest.$ac_ext <<_ACEOF
11550 /* confdefs.h. */
11551 _ACEOF
11552 cat confdefs.h >>conftest.$ac_ext
11553 cat >>conftest.$ac_ext <<_ACEOF
11554 /* end confdefs.h. */
11555 #ifdef HAVE_STDINT_H
11556 #include <stdint.h>
11557 #endif
11559 typedef uintptr_t ac__type_new_;
11561 main ()
11563 if ((ac__type_new_ *) 0)
11564 return 0;
11565 if (sizeof (ac__type_new_))
11566 return 0;
11568 return 0;
11570 _ACEOF
11571 rm -f conftest.$ac_objext
11572 if { (ac_try="$ac_compile"
11573 case "(($ac_try" in
11574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11575 *) ac_try_echo=$ac_try;;
11576 esac
11577 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11578 (eval "$ac_compile") 2>conftest.er1
11579 ac_status=$?
11580 grep -v '^ *+' conftest.er1 >conftest.err
11581 rm -f conftest.er1
11582 cat conftest.err >&5
11583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11584 (exit $ac_status); } && {
11585 test -z "$ac_c_werror_flag" ||
11586 test ! -s conftest.err
11587 } && test -s conftest.$ac_objext; then
11588 ac_cv_type_uintptr_t=yes
11589 else
11590 echo "$as_me: failed program was:" >&5
11591 sed 's/^/| /' conftest.$ac_ext >&5
11593 ac_cv_type_uintptr_t=no
11596 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11598 { echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
11599 echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6; }
11600 if test $ac_cv_type_uintptr_t = yes; then
11602 cat >>confdefs.h <<_ACEOF
11603 #define HAVE_UINTPTR_T 1
11604 _ACEOF
11606 { echo "$as_me:$LINENO: checking for uintptr_t" >&5
11607 echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6; }
11608 if test "${ac_cv_type_uintptr_t+set}" = set; then
11609 echo $ECHO_N "(cached) $ECHO_C" >&6
11610 else
11611 cat >conftest.$ac_ext <<_ACEOF
11612 /* confdefs.h. */
11613 _ACEOF
11614 cat confdefs.h >>conftest.$ac_ext
11615 cat >>conftest.$ac_ext <<_ACEOF
11616 /* end confdefs.h. */
11617 $ac_includes_default
11618 typedef uintptr_t ac__type_new_;
11620 main ()
11622 if ((ac__type_new_ *) 0)
11623 return 0;
11624 if (sizeof (ac__type_new_))
11625 return 0;
11627 return 0;
11629 _ACEOF
11630 rm -f conftest.$ac_objext
11631 if { (ac_try="$ac_compile"
11632 case "(($ac_try" in
11633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11634 *) ac_try_echo=$ac_try;;
11635 esac
11636 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11637 (eval "$ac_compile") 2>conftest.er1
11638 ac_status=$?
11639 grep -v '^ *+' conftest.er1 >conftest.err
11640 rm -f conftest.er1
11641 cat conftest.err >&5
11642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11643 (exit $ac_status); } && {
11644 test -z "$ac_c_werror_flag" ||
11645 test ! -s conftest.err
11646 } && test -s conftest.$ac_objext; then
11647 ac_cv_type_uintptr_t=yes
11648 else
11649 echo "$as_me: failed program was:" >&5
11650 sed 's/^/| /' conftest.$ac_ext >&5
11652 ac_cv_type_uintptr_t=no
11655 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11657 { echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
11658 echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6; }
11660 # The cast to long int works around a bug in the HP C Compiler
11661 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11662 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11663 # This bug is HP SR number 8606223364.
11664 { echo "$as_me:$LINENO: checking size of uintptr_t" >&5
11665 echo $ECHO_N "checking size of uintptr_t... $ECHO_C" >&6; }
11666 if test "${ac_cv_sizeof_uintptr_t+set}" = set; then
11667 echo $ECHO_N "(cached) $ECHO_C" >&6
11668 else
11669 if test "$cross_compiling" = yes; then
11670 # Depending upon the size, compute the lo and hi bounds.
11671 cat >conftest.$ac_ext <<_ACEOF
11672 /* confdefs.h. */
11673 _ACEOF
11674 cat confdefs.h >>conftest.$ac_ext
11675 cat >>conftest.$ac_ext <<_ACEOF
11676 /* end confdefs.h. */
11677 $ac_includes_default
11678 typedef uintptr_t ac__type_sizeof_;
11680 main ()
11682 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
11683 test_array [0] = 0
11686 return 0;
11688 _ACEOF
11689 rm -f conftest.$ac_objext
11690 if { (ac_try="$ac_compile"
11691 case "(($ac_try" in
11692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11693 *) ac_try_echo=$ac_try;;
11694 esac
11695 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11696 (eval "$ac_compile") 2>conftest.er1
11697 ac_status=$?
11698 grep -v '^ *+' conftest.er1 >conftest.err
11699 rm -f conftest.er1
11700 cat conftest.err >&5
11701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11702 (exit $ac_status); } && {
11703 test -z "$ac_c_werror_flag" ||
11704 test ! -s conftest.err
11705 } && test -s conftest.$ac_objext; then
11706 ac_lo=0 ac_mid=0
11707 while :; do
11708 cat >conftest.$ac_ext <<_ACEOF
11709 /* confdefs.h. */
11710 _ACEOF
11711 cat confdefs.h >>conftest.$ac_ext
11712 cat >>conftest.$ac_ext <<_ACEOF
11713 /* end confdefs.h. */
11714 $ac_includes_default
11715 typedef uintptr_t ac__type_sizeof_;
11717 main ()
11719 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
11720 test_array [0] = 0
11723 return 0;
11725 _ACEOF
11726 rm -f conftest.$ac_objext
11727 if { (ac_try="$ac_compile"
11728 case "(($ac_try" in
11729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11730 *) ac_try_echo=$ac_try;;
11731 esac
11732 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11733 (eval "$ac_compile") 2>conftest.er1
11734 ac_status=$?
11735 grep -v '^ *+' conftest.er1 >conftest.err
11736 rm -f conftest.er1
11737 cat conftest.err >&5
11738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11739 (exit $ac_status); } && {
11740 test -z "$ac_c_werror_flag" ||
11741 test ! -s conftest.err
11742 } && test -s conftest.$ac_objext; then
11743 ac_hi=$ac_mid; break
11744 else
11745 echo "$as_me: failed program was:" >&5
11746 sed 's/^/| /' conftest.$ac_ext >&5
11748 ac_lo=`expr $ac_mid + 1`
11749 if test $ac_lo -le $ac_mid; then
11750 ac_lo= ac_hi=
11751 break
11753 ac_mid=`expr 2 '*' $ac_mid + 1`
11756 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11757 done
11758 else
11759 echo "$as_me: failed program was:" >&5
11760 sed 's/^/| /' conftest.$ac_ext >&5
11762 cat >conftest.$ac_ext <<_ACEOF
11763 /* confdefs.h. */
11764 _ACEOF
11765 cat confdefs.h >>conftest.$ac_ext
11766 cat >>conftest.$ac_ext <<_ACEOF
11767 /* end confdefs.h. */
11768 $ac_includes_default
11769 typedef uintptr_t ac__type_sizeof_;
11771 main ()
11773 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
11774 test_array [0] = 0
11777 return 0;
11779 _ACEOF
11780 rm -f conftest.$ac_objext
11781 if { (ac_try="$ac_compile"
11782 case "(($ac_try" in
11783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11784 *) ac_try_echo=$ac_try;;
11785 esac
11786 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11787 (eval "$ac_compile") 2>conftest.er1
11788 ac_status=$?
11789 grep -v '^ *+' conftest.er1 >conftest.err
11790 rm -f conftest.er1
11791 cat conftest.err >&5
11792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11793 (exit $ac_status); } && {
11794 test -z "$ac_c_werror_flag" ||
11795 test ! -s conftest.err
11796 } && test -s conftest.$ac_objext; then
11797 ac_hi=-1 ac_mid=-1
11798 while :; do
11799 cat >conftest.$ac_ext <<_ACEOF
11800 /* confdefs.h. */
11801 _ACEOF
11802 cat confdefs.h >>conftest.$ac_ext
11803 cat >>conftest.$ac_ext <<_ACEOF
11804 /* end confdefs.h. */
11805 $ac_includes_default
11806 typedef uintptr_t ac__type_sizeof_;
11808 main ()
11810 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
11811 test_array [0] = 0
11814 return 0;
11816 _ACEOF
11817 rm -f conftest.$ac_objext
11818 if { (ac_try="$ac_compile"
11819 case "(($ac_try" in
11820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11821 *) ac_try_echo=$ac_try;;
11822 esac
11823 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11824 (eval "$ac_compile") 2>conftest.er1
11825 ac_status=$?
11826 grep -v '^ *+' conftest.er1 >conftest.err
11827 rm -f conftest.er1
11828 cat conftest.err >&5
11829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11830 (exit $ac_status); } && {
11831 test -z "$ac_c_werror_flag" ||
11832 test ! -s conftest.err
11833 } && test -s conftest.$ac_objext; then
11834 ac_lo=$ac_mid; break
11835 else
11836 echo "$as_me: failed program was:" >&5
11837 sed 's/^/| /' conftest.$ac_ext >&5
11839 ac_hi=`expr '(' $ac_mid ')' - 1`
11840 if test $ac_mid -le $ac_hi; then
11841 ac_lo= ac_hi=
11842 break
11844 ac_mid=`expr 2 '*' $ac_mid`
11847 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11848 done
11849 else
11850 echo "$as_me: failed program was:" >&5
11851 sed 's/^/| /' conftest.$ac_ext >&5
11853 ac_lo= ac_hi=
11856 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11859 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11860 # Binary search between lo and hi bounds.
11861 while test "x$ac_lo" != "x$ac_hi"; do
11862 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
11863 cat >conftest.$ac_ext <<_ACEOF
11864 /* confdefs.h. */
11865 _ACEOF
11866 cat confdefs.h >>conftest.$ac_ext
11867 cat >>conftest.$ac_ext <<_ACEOF
11868 /* end confdefs.h. */
11869 $ac_includes_default
11870 typedef uintptr_t ac__type_sizeof_;
11872 main ()
11874 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
11875 test_array [0] = 0
11878 return 0;
11880 _ACEOF
11881 rm -f conftest.$ac_objext
11882 if { (ac_try="$ac_compile"
11883 case "(($ac_try" in
11884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11885 *) ac_try_echo=$ac_try;;
11886 esac
11887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11888 (eval "$ac_compile") 2>conftest.er1
11889 ac_status=$?
11890 grep -v '^ *+' conftest.er1 >conftest.err
11891 rm -f conftest.er1
11892 cat conftest.err >&5
11893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11894 (exit $ac_status); } && {
11895 test -z "$ac_c_werror_flag" ||
11896 test ! -s conftest.err
11897 } && test -s conftest.$ac_objext; then
11898 ac_hi=$ac_mid
11899 else
11900 echo "$as_me: failed program was:" >&5
11901 sed 's/^/| /' conftest.$ac_ext >&5
11903 ac_lo=`expr '(' $ac_mid ')' + 1`
11906 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11907 done
11908 case $ac_lo in
11909 ?*) ac_cv_sizeof_uintptr_t=$ac_lo;;
11910 '') if test "$ac_cv_type_uintptr_t" = yes; then
11911 { { echo "$as_me:$LINENO: error: cannot compute sizeof (uintptr_t)
11912 See \`config.log' for more details." >&5
11913 echo "$as_me: error: cannot compute sizeof (uintptr_t)
11914 See \`config.log' for more details." >&2;}
11915 { (exit 77); exit 77; }; }
11916 else
11917 ac_cv_sizeof_uintptr_t=0
11918 fi ;;
11919 esac
11920 else
11921 cat >conftest.$ac_ext <<_ACEOF
11922 /* confdefs.h. */
11923 _ACEOF
11924 cat confdefs.h >>conftest.$ac_ext
11925 cat >>conftest.$ac_ext <<_ACEOF
11926 /* end confdefs.h. */
11927 $ac_includes_default
11928 typedef uintptr_t ac__type_sizeof_;
11929 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
11930 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
11931 #include <stdio.h>
11932 #include <stdlib.h>
11934 main ()
11937 FILE *f = fopen ("conftest.val", "w");
11938 if (! f)
11939 return 1;
11940 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
11942 long int i = longval ();
11943 if (i != ((long int) (sizeof (ac__type_sizeof_))))
11944 return 1;
11945 fprintf (f, "%ld\n", i);
11947 else
11949 unsigned long int i = ulongval ();
11950 if (i != ((long int) (sizeof (ac__type_sizeof_))))
11951 return 1;
11952 fprintf (f, "%lu\n", i);
11954 return ferror (f) || fclose (f) != 0;
11957 return 0;
11959 _ACEOF
11960 rm -f conftest$ac_exeext
11961 if { (ac_try="$ac_link"
11962 case "(($ac_try" in
11963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11964 *) ac_try_echo=$ac_try;;
11965 esac
11966 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11967 (eval "$ac_link") 2>&5
11968 ac_status=$?
11969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11970 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11971 { (case "(($ac_try" in
11972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11973 *) ac_try_echo=$ac_try;;
11974 esac
11975 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11976 (eval "$ac_try") 2>&5
11977 ac_status=$?
11978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11979 (exit $ac_status); }; }; then
11980 ac_cv_sizeof_uintptr_t=`cat conftest.val`
11981 else
11982 echo "$as_me: program exited with status $ac_status" >&5
11983 echo "$as_me: failed program was:" >&5
11984 sed 's/^/| /' conftest.$ac_ext >&5
11986 ( exit $ac_status )
11987 if test "$ac_cv_type_uintptr_t" = yes; then
11988 { { echo "$as_me:$LINENO: error: cannot compute sizeof (uintptr_t)
11989 See \`config.log' for more details." >&5
11990 echo "$as_me: error: cannot compute sizeof (uintptr_t)
11991 See \`config.log' for more details." >&2;}
11992 { (exit 77); exit 77; }; }
11993 else
11994 ac_cv_sizeof_uintptr_t=0
11997 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11999 rm -f conftest.val
12001 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_uintptr_t" >&5
12002 echo "${ECHO_T}$ac_cv_sizeof_uintptr_t" >&6; }
12006 cat >>confdefs.h <<_ACEOF
12007 #define SIZEOF_UINTPTR_T $ac_cv_sizeof_uintptr_t
12008 _ACEOF
12015 # Hmph. AC_CHECK_SIZEOF() doesn't include <sys/types.h>.
12016 { echo "$as_me:$LINENO: checking size of off_t" >&5
12017 echo $ECHO_N "checking size of off_t... $ECHO_C" >&6; }
12018 if test "${ac_cv_sizeof_off_t+set}" = set; then
12019 echo $ECHO_N "(cached) $ECHO_C" >&6
12020 else
12021 if test "$cross_compiling" = yes; then
12022 ac_cv_sizeof_off_t=4
12023 else
12024 cat >conftest.$ac_ext <<_ACEOF
12025 /* confdefs.h. */
12026 _ACEOF
12027 cat confdefs.h >>conftest.$ac_ext
12028 cat >>conftest.$ac_ext <<_ACEOF
12029 /* end confdefs.h. */
12030 #include <stdio.h>
12031 #include <sys/types.h>
12032 main()
12034 FILE *f=fopen("conftestval", "w");
12035 if (!f) exit(1);
12036 fprintf(f, "%d\n", sizeof(off_t));
12037 exit(0);
12039 _ACEOF
12040 rm -f conftest$ac_exeext
12041 if { (ac_try="$ac_link"
12042 case "(($ac_try" in
12043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12044 *) ac_try_echo=$ac_try;;
12045 esac
12046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12047 (eval "$ac_link") 2>&5
12048 ac_status=$?
12049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12050 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12051 { (case "(($ac_try" in
12052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12053 *) ac_try_echo=$ac_try;;
12054 esac
12055 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12056 (eval "$ac_try") 2>&5
12057 ac_status=$?
12058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12059 (exit $ac_status); }; }; then
12060 ac_cv_sizeof_off_t=`cat conftestval`
12061 else
12062 echo "$as_me: program exited with status $ac_status" >&5
12063 echo "$as_me: failed program was:" >&5
12064 sed 's/^/| /' conftest.$ac_ext >&5
12066 ( exit $ac_status )
12067 ac_cv_sizeof_off_t=0
12069 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12076 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_off_t" >&5
12077 echo "${ECHO_T}$ac_cv_sizeof_off_t" >&6; }
12079 cat >>confdefs.h <<_ACEOF
12080 #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
12081 _ACEOF
12084 { echo "$as_me:$LINENO: checking whether to enable large file support" >&5
12085 echo $ECHO_N "checking whether to enable large file support... $ECHO_C" >&6; }
12086 if test "$have_long_long" = yes -a \
12087 "$ac_cv_sizeof_off_t" -gt "$ac_cv_sizeof_long" -a \
12088 "$ac_cv_sizeof_long_long" -ge "$ac_cv_sizeof_off_t"; then
12090 cat >>confdefs.h <<\_ACEOF
12091 #define HAVE_LARGEFILE_SUPPORT 1
12092 _ACEOF
12094 { echo "$as_me:$LINENO: result: yes" >&5
12095 echo "${ECHO_T}yes" >&6; }
12096 else
12097 { echo "$as_me:$LINENO: result: no" >&5
12098 echo "${ECHO_T}no" >&6; }
12101 # AC_CHECK_SIZEOF() doesn't include <time.h>.
12102 { echo "$as_me:$LINENO: checking size of time_t" >&5
12103 echo $ECHO_N "checking size of time_t... $ECHO_C" >&6; }
12104 if test "${ac_cv_sizeof_time_t+set}" = set; then
12105 echo $ECHO_N "(cached) $ECHO_C" >&6
12106 else
12107 if test "$cross_compiling" = yes; then
12108 ac_cv_sizeof_time_t=4
12109 else
12110 cat >conftest.$ac_ext <<_ACEOF
12111 /* confdefs.h. */
12112 _ACEOF
12113 cat confdefs.h >>conftest.$ac_ext
12114 cat >>conftest.$ac_ext <<_ACEOF
12115 /* end confdefs.h. */
12116 #include <stdio.h>
12117 #include <time.h>
12118 main()
12120 FILE *f=fopen("conftestval", "w");
12121 if (!f) exit(1);
12122 fprintf(f, "%d\n", sizeof(time_t));
12123 exit(0);
12125 _ACEOF
12126 rm -f conftest$ac_exeext
12127 if { (ac_try="$ac_link"
12128 case "(($ac_try" in
12129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12130 *) ac_try_echo=$ac_try;;
12131 esac
12132 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12133 (eval "$ac_link") 2>&5
12134 ac_status=$?
12135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12136 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12137 { (case "(($ac_try" in
12138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12139 *) ac_try_echo=$ac_try;;
12140 esac
12141 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12142 (eval "$ac_try") 2>&5
12143 ac_status=$?
12144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12145 (exit $ac_status); }; }; then
12146 ac_cv_sizeof_time_t=`cat conftestval`
12147 else
12148 echo "$as_me: program exited with status $ac_status" >&5
12149 echo "$as_me: failed program was:" >&5
12150 sed 's/^/| /' conftest.$ac_ext >&5
12152 ( exit $ac_status )
12153 ac_cv_sizeof_time_t=0
12155 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12162 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_time_t" >&5
12163 echo "${ECHO_T}$ac_cv_sizeof_time_t" >&6; }
12165 cat >>confdefs.h <<_ACEOF
12166 #define SIZEOF_TIME_T $ac_cv_sizeof_time_t
12167 _ACEOF
12171 # if have pthread_t then define SIZEOF_PTHREAD_T
12172 ac_save_cc="$CC"
12173 if test "$ac_cv_kpthread" = "yes"
12174 then CC="$CC -Kpthread"
12175 elif test "$ac_cv_kthread" = "yes"
12176 then CC="$CC -Kthread"
12177 elif test "$ac_cv_pthread" = "yes"
12178 then CC="$CC -pthread"
12180 { echo "$as_me:$LINENO: checking for pthread_t" >&5
12181 echo $ECHO_N "checking for pthread_t... $ECHO_C" >&6; }
12182 have_pthread_t=no
12183 cat >conftest.$ac_ext <<_ACEOF
12184 /* confdefs.h. */
12185 _ACEOF
12186 cat confdefs.h >>conftest.$ac_ext
12187 cat >>conftest.$ac_ext <<_ACEOF
12188 /* end confdefs.h. */
12189 #include <pthread.h>
12191 main ()
12193 pthread_t x; x = *(pthread_t*)0;
12195 return 0;
12197 _ACEOF
12198 rm -f conftest.$ac_objext
12199 if { (ac_try="$ac_compile"
12200 case "(($ac_try" in
12201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12202 *) ac_try_echo=$ac_try;;
12203 esac
12204 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12205 (eval "$ac_compile") 2>conftest.er1
12206 ac_status=$?
12207 grep -v '^ *+' conftest.er1 >conftest.err
12208 rm -f conftest.er1
12209 cat conftest.err >&5
12210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12211 (exit $ac_status); } && {
12212 test -z "$ac_c_werror_flag" ||
12213 test ! -s conftest.err
12214 } && test -s conftest.$ac_objext; then
12215 have_pthread_t=yes
12216 else
12217 echo "$as_me: failed program was:" >&5
12218 sed 's/^/| /' conftest.$ac_ext >&5
12223 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12224 { echo "$as_me:$LINENO: result: $have_pthread_t" >&5
12225 echo "${ECHO_T}$have_pthread_t" >&6; }
12226 if test "$have_pthread_t" = yes ; then
12227 # AC_CHECK_SIZEOF() doesn't include <pthread.h>.
12228 { echo "$as_me:$LINENO: checking size of pthread_t" >&5
12229 echo $ECHO_N "checking size of pthread_t... $ECHO_C" >&6; }
12230 if test "${ac_cv_sizeof_pthread_t+set}" = set; then
12231 echo $ECHO_N "(cached) $ECHO_C" >&6
12232 else
12233 if test "$cross_compiling" = yes; then
12234 ac_cv_sizeof_pthread_t=4
12235 else
12236 cat >conftest.$ac_ext <<_ACEOF
12237 /* confdefs.h. */
12238 _ACEOF
12239 cat confdefs.h >>conftest.$ac_ext
12240 cat >>conftest.$ac_ext <<_ACEOF
12241 /* end confdefs.h. */
12242 #include <stdio.h>
12243 #include <pthread.h>
12244 main()
12246 FILE *f=fopen("conftestval", "w");
12247 if (!f) exit(1);
12248 fprintf(f, "%d\n", sizeof(pthread_t));
12249 exit(0);
12251 _ACEOF
12252 rm -f conftest$ac_exeext
12253 if { (ac_try="$ac_link"
12254 case "(($ac_try" in
12255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12256 *) ac_try_echo=$ac_try;;
12257 esac
12258 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12259 (eval "$ac_link") 2>&5
12260 ac_status=$?
12261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12262 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12263 { (case "(($ac_try" in
12264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12265 *) ac_try_echo=$ac_try;;
12266 esac
12267 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12268 (eval "$ac_try") 2>&5
12269 ac_status=$?
12270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12271 (exit $ac_status); }; }; then
12272 ac_cv_sizeof_pthread_t=`cat conftestval`
12273 else
12274 echo "$as_me: program exited with status $ac_status" >&5
12275 echo "$as_me: failed program was:" >&5
12276 sed 's/^/| /' conftest.$ac_ext >&5
12278 ( exit $ac_status )
12279 ac_cv_sizeof_pthread_t=0
12281 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12288 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_pthread_t" >&5
12289 echo "${ECHO_T}$ac_cv_sizeof_pthread_t" >&6; }
12291 cat >>confdefs.h <<_ACEOF
12292 #define SIZEOF_PTHREAD_T $ac_cv_sizeof_pthread_t
12293 _ACEOF
12296 CC="$ac_save_cc"
12298 { echo "$as_me:$LINENO: checking for --enable-toolbox-glue" >&5
12299 echo $ECHO_N "checking for --enable-toolbox-glue... $ECHO_C" >&6; }
12300 # Check whether --enable-toolbox-glue was given.
12301 if test "${enable_toolbox_glue+set}" = set; then
12302 enableval=$enable_toolbox_glue;
12306 if test -z "$enable_toolbox_glue"
12307 then
12308 case $ac_sys_system/$ac_sys_release in
12309 Darwin/*)
12310 enable_toolbox_glue="yes";;
12312 enable_toolbox_glue="no";;
12313 esac
12315 case "$enable_toolbox_glue" in
12316 yes)
12317 extra_machdep_objs="Python/mactoolboxglue.o"
12318 extra_undefs="-u _PyMac_Error"
12320 cat >>confdefs.h <<\_ACEOF
12321 #define USE_TOOLBOX_OBJECT_GLUE 1
12322 _ACEOF
12326 extra_machdep_objs=""
12327 extra_undefs=""
12329 esac
12330 { echo "$as_me:$LINENO: result: $enable_toolbox_glue" >&5
12331 echo "${ECHO_T}$enable_toolbox_glue" >&6; }
12334 case $ac_sys_system/$ac_sys_release in
12335 Darwin/[01567]\..*)
12336 OTHER_LIBTOOL_OPT="-prebind -seg1addr 0x10000000"
12338 Darwin/*)
12339 OTHER_LIBTOOL_OPT=""
12341 esac
12344 case $ac_sys_system/$ac_sys_release in
12345 Darwin/[01567]\..*)
12346 LIBTOOL_CRUFT="-framework System -lcc_dynamic"
12347 if test "${enable_universalsdk}"; then
12349 else
12350 LIBTOOL_CRUFT="${LIBTOOL_CRUFT} -arch_only `arch`"
12352 LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -install_name $(PYTHONFRAMEWORKINSTALLDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
12353 LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -compatibility_version $(VERSION) -current_version $(VERSION)';;
12354 Darwin/*)
12355 gcc_version=`gcc -v 2>&1 | grep version | cut -d\ -f3`
12356 if test ${gcc_version} '<' 4.0
12357 then
12358 LIBTOOL_CRUFT="-lcc_dynamic"
12359 else
12360 LIBTOOL_CRUFT=""
12362 LIBTOOL_CRUFT=$LIBTOOL_CRUFT" -lSystem -lSystemStubs -arch_only `arch`"
12363 LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -install_name $(PYTHONFRAMEWORKINSTALLDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
12364 LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -compatibility_version $(VERSION) -current_version $(VERSION)';;
12365 esac
12367 { echo "$as_me:$LINENO: checking for --enable-framework" >&5
12368 echo $ECHO_N "checking for --enable-framework... $ECHO_C" >&6; }
12369 if test "$enable_framework"
12370 then
12371 BASECFLAGS="$BASECFLAGS -fno-common -dynamic"
12372 # -F. is needed to allow linking to the framework while
12373 # in the build location.
12375 cat >>confdefs.h <<\_ACEOF
12376 #define WITH_NEXT_FRAMEWORK 1
12377 _ACEOF
12379 { echo "$as_me:$LINENO: result: yes" >&5
12380 echo "${ECHO_T}yes" >&6; }
12381 else
12382 { echo "$as_me:$LINENO: result: no" >&5
12383 echo "${ECHO_T}no" >&6; }
12386 { echo "$as_me:$LINENO: checking for dyld" >&5
12387 echo $ECHO_N "checking for dyld... $ECHO_C" >&6; }
12388 case $ac_sys_system/$ac_sys_release in
12389 Darwin/*)
12391 cat >>confdefs.h <<\_ACEOF
12392 #define WITH_DYLD 1
12393 _ACEOF
12395 { echo "$as_me:$LINENO: result: always on for Darwin" >&5
12396 echo "${ECHO_T}always on for Darwin" >&6; }
12399 { echo "$as_me:$LINENO: result: no" >&5
12400 echo "${ECHO_T}no" >&6; }
12402 esac
12404 # Set info about shared libraries.
12410 # SO is the extension of shared libraries `(including the dot!)
12411 # -- usually .so, .sl on HP-UX, .dll on Cygwin
12412 { echo "$as_me:$LINENO: checking SO" >&5
12413 echo $ECHO_N "checking SO... $ECHO_C" >&6; }
12414 if test -z "$SO"
12415 then
12416 case $ac_sys_system in
12417 hp*|HP*)
12418 case `uname -m` in
12419 ia64) SO=.so;;
12420 *) SO=.sl;;
12421 esac
12423 CYGWIN*) SO=.dll;;
12424 *) SO=.so;;
12425 esac
12426 else
12427 # this might also be a termcap variable, see #610332
12428 echo
12429 echo '====================================================================='
12430 echo '+ +'
12431 echo '+ WARNING: You have set SO in your environment. +'
12432 echo '+ Do you really mean to change the extension for shared libraries? +'
12433 echo '+ Continuing in 10 seconds to let you to ponder. +'
12434 echo '+ +'
12435 echo '====================================================================='
12436 sleep 10
12438 { echo "$as_me:$LINENO: result: $SO" >&5
12439 echo "${ECHO_T}$SO" >&6; }
12441 cat >>confdefs.h <<_ACEOF
12442 #define SHLIB_EXT "$SO"
12443 _ACEOF
12445 # LDSHARED is the ld *command* used to create shared library
12446 # -- "cc -G" on SunOS 5.x, "ld -shared" on IRIX 5
12447 # (Shared libraries in this instance are shared modules to be loaded into
12448 # Python, as opposed to building Python itself as a shared library.)
12449 { echo "$as_me:$LINENO: checking LDSHARED" >&5
12450 echo $ECHO_N "checking LDSHARED... $ECHO_C" >&6; }
12451 if test -z "$LDSHARED"
12452 then
12453 case $ac_sys_system/$ac_sys_release in
12454 AIX*)
12455 BLDSHARED="\$(srcdir)/Modules/ld_so_aix \$(CC) -bI:Modules/python.exp"
12456 LDSHARED="\$(BINLIBDEST)/config/ld_so_aix \$(CC) -bI:\$(BINLIBDEST)/config/python.exp"
12458 BeOS*)
12459 BLDSHARED="\$(srcdir)/Modules/ld_so_beos $LDLIBRARY"
12460 LDSHARED="\$(BINLIBDEST)/config/ld_so_beos \$(LIBDIR)/$LDLIBRARY"
12462 IRIX/5*) LDSHARED="ld -shared";;
12463 IRIX*/6*) LDSHARED="ld ${SGI_ABI} -shared -all";;
12464 SunOS/5*)
12465 if test "$GCC" = "yes"
12466 then LDSHARED='$(CC) -shared'
12467 else LDSHARED='$(CC) -G';
12468 fi ;;
12469 hp*|HP*)
12470 if test "$GCC" = "yes"
12471 then LDSHARED='$(CC) -shared'
12472 else LDSHARED='ld -b';
12473 fi ;;
12474 OSF*) LDSHARED="ld -shared -expect_unresolved \"*\"";;
12475 Darwin/1.3*)
12476 LDSHARED='$(CC) $(LDFLAGS) -bundle'
12477 if test "$enable_framework" ; then
12478 # Link against the framework. All externals should be defined.
12479 BLDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
12480 LDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
12481 else
12482 # No framework. Ignore undefined symbols, assuming they come from Python
12483 LDSHARED="$LDSHARED -undefined suppress"
12484 fi ;;
12485 Darwin/1.4*|Darwin/5.*|Darwin/6.*)
12486 LDSHARED='$(CC) $(LDFLAGS) -bundle'
12487 if test "$enable_framework" ; then
12488 # Link against the framework. All externals should be defined.
12489 BLDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
12490 LDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
12491 else
12492 # No framework, use the Python app as bundle-loader
12493 BLDSHARED="$LDSHARED "'-bundle_loader $(BUILDPYTHON)'
12494 LDSHARED="$LDSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)'
12495 fi ;;
12496 Darwin/*)
12497 # Use -undefined dynamic_lookup whenever possible (10.3 and later).
12498 # This allows an extension to be used in any Python
12499 cur_target=`sw_vers -productVersion | sed 's/\(10\.[0-9]*\).*/\1/'`
12500 if test ${cur_target} '>' 10.2; then
12501 cur_target=10.3
12503 CONFIGURE_MACOSX_DEPLOYMENT_TARGET=${MACOSX_DEPLOYMENT_TARGET-${cur_target}}
12505 # Make sure that MACOSX_DEPLOYMENT_TARGET is set in the
12506 # environment with a value that is the same as what we'll use
12507 # in the Makefile to ensure that we'll get the same compiler
12508 # environment during configure and build time.
12509 MACOSX_DEPLOYMENT_TARGET="$CONFIGURE_MACOSX_DEPLOYMENT_TARGET"
12510 export MACOSX_DEPLOYMENT_TARGET
12512 EXPORT_MACOSX_DEPLOYMENT_TARGET=''
12513 if test ${MACOSX_DEPLOYMENT_TARGET-${cur_target}} '>' 10.2
12514 then
12515 if test "${enable_universalsdk}"; then
12516 LDFLAGS="-arch i386 -arch ppc -isysroot ${UNIVERSALSDK} ${LDFLAGS}"
12518 LDSHARED='$(CC) $(LDFLAGS) -bundle -undefined dynamic_lookup'
12519 BLDSHARED="$LDSHARED"
12520 else
12521 LDSHARED='$(CC) $(LDFLAGS) -bundle'
12522 if test "$enable_framework" ; then
12523 # Link against the framework. All externals should be defined.
12524 BLDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
12525 LDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
12526 else
12527 # No framework, use the Python app as bundle-loader
12528 BLDSHARED="$LDSHARED "'-bundle_loader $(BUILDPYTHON)'
12529 LDSHARED="$LDSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)'
12533 Linux*|GNU*|QNX*) LDSHARED='$(CC) -shared';;
12534 BSD/OS*/4*) LDSHARED="gcc -shared";;
12535 FreeBSD*)
12536 if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]
12537 then
12538 LDSHARED="$CC -shared ${LDFLAGS}"
12539 else
12540 LDSHARED="ld -Bshareable ${LDFLAGS}"
12541 fi;;
12542 OpenBSD*)
12543 if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]
12544 then
12545 LDSHARED='$(CC) -shared $(CCSHARED) ${LDFLAGS}'
12546 else
12547 case `uname -r` in
12548 [01].* | 2.[0-7] | 2.[0-7].*)
12549 LDSHARED="ld -Bshareable ${LDFLAGS}"
12552 LDSHARED='$(CC) -shared $(CCSHARED) ${LDFLAGS}'
12554 esac
12555 fi;;
12556 NetBSD*|DragonFly*) LDSHARED="cc -shared ${LDFLAGS}";;
12557 OpenUNIX*|UnixWare*)
12558 if test "$GCC" = "yes"
12559 then LDSHARED='$(CC) -shared'
12560 else LDSHARED='$(CC) -G'
12561 fi;;
12562 SCO_SV*) LDSHARED='$(CC) -Wl,-G,-Bexport';;
12563 Monterey*) LDSHARED="cc -G -dy -Bdynamic -Bexport -L/usr/lib/ia64l64";;
12564 CYGWIN*) LDSHARED="gcc -shared -Wl,--enable-auto-image-base";;
12565 atheos*) LDSHARED="gcc -shared";;
12566 *) LDSHARED="ld";;
12567 esac
12569 { echo "$as_me:$LINENO: result: $LDSHARED" >&5
12570 echo "${ECHO_T}$LDSHARED" >&6; }
12571 BLDSHARED=${BLDSHARED-$LDSHARED}
12572 # CCSHARED are the C *flags* used to create objects to go into a shared
12573 # library (module) -- this is only needed for a few systems
12574 { echo "$as_me:$LINENO: checking CCSHARED" >&5
12575 echo $ECHO_N "checking CCSHARED... $ECHO_C" >&6; }
12576 if test -z "$CCSHARED"
12577 then
12578 case $ac_sys_system/$ac_sys_release in
12579 SunOS*) if test "$GCC" = yes;
12580 then CCSHARED="-fPIC";
12581 elif test `uname -p` = sparc;
12582 then CCSHARED="-xcode=pic32";
12583 else CCSHARED="-Kpic";
12584 fi;;
12585 hp*|HP*) if test "$GCC" = yes;
12586 then CCSHARED="-fPIC";
12587 else CCSHARED="+z";
12588 fi;;
12589 Linux*|GNU*) CCSHARED="-fPIC";;
12590 BSD/OS*/4*) CCSHARED="-fpic";;
12591 FreeBSD*|NetBSD*|OpenBSD*|DragonFly*) CCSHARED="-fPIC";;
12592 OpenUNIX*|UnixWare*)
12593 if test "$GCC" = "yes"
12594 then CCSHARED="-fPIC"
12595 else CCSHARED="-KPIC"
12596 fi;;
12597 SCO_SV*)
12598 if test "$GCC" = "yes"
12599 then CCSHARED="-fPIC"
12600 else CCSHARED="-Kpic -belf"
12601 fi;;
12602 Monterey*) CCSHARED="-G";;
12603 IRIX*/6*) case $CC in
12604 *gcc*) CCSHARED="-shared";;
12605 *) CCSHARED="";;
12606 esac;;
12607 atheos*) CCSHARED="-fPIC";;
12608 esac
12610 { echo "$as_me:$LINENO: result: $CCSHARED" >&5
12611 echo "${ECHO_T}$CCSHARED" >&6; }
12612 # LINKFORSHARED are the flags passed to the $(CC) command that links
12613 # the python executable -- this is only needed for a few systems
12614 { echo "$as_me:$LINENO: checking LINKFORSHARED" >&5
12615 echo $ECHO_N "checking LINKFORSHARED... $ECHO_C" >&6; }
12616 if test -z "$LINKFORSHARED"
12617 then
12618 case $ac_sys_system/$ac_sys_release in
12619 AIX*) LINKFORSHARED='-Wl,-bE:Modules/python.exp -lld';;
12620 hp*|HP*)
12621 LINKFORSHARED="-Wl,-E -Wl,+s";;
12622 # LINKFORSHARED="-Wl,-E -Wl,+s -Wl,+b\$(BINLIBDEST)/lib-dynload";;
12623 BSD/OS/4*) LINKFORSHARED="-Xlinker -export-dynamic";;
12624 Linux*|GNU*) LINKFORSHARED="-Xlinker -export-dynamic";;
12625 # -u libsys_s pulls in all symbols in libsys
12626 Darwin/*)
12627 # -u _PyMac_Error is needed to pull in the mac toolbox glue,
12628 # which is
12629 # not used by the core itself but which needs to be in the core so
12630 # that dynamically loaded extension modules have access to it.
12631 # -prebind is no longer used, because it actually seems to give a
12632 # slowdown in stead of a speedup, maybe due to the large number of
12633 # dynamic loads Python does.
12635 LINKFORSHARED="$extra_undefs"
12636 if test "$enable_framework"
12637 then
12638 LINKFORSHARED="$LINKFORSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
12640 LINKFORSHARED="$LINKFORSHARED";;
12641 OpenUNIX*|UnixWare*) LINKFORSHARED="-Wl,-Bexport";;
12642 SCO_SV*) LINKFORSHARED="-Wl,-Bexport";;
12643 ReliantUNIX*) LINKFORSHARED="-W1 -Blargedynsym";;
12644 FreeBSD*|NetBSD*|OpenBSD*|DragonFly*)
12645 if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]
12646 then
12647 LINKFORSHARED="-Wl,--export-dynamic"
12648 fi;;
12649 SunOS/5*) case $CC in
12650 *gcc*)
12651 if $CC -Xlinker --help 2>&1 | grep export-dynamic >/dev/null
12652 then
12653 LINKFORSHARED="-Xlinker --export-dynamic"
12654 fi;;
12655 esac;;
12656 CYGWIN*)
12657 if test $enable_shared = "no"
12658 then
12659 LINKFORSHARED='-Wl,--out-implib=$(LDLIBRARY)'
12660 fi;;
12661 QNX*)
12662 # -Wl,-E causes the symbols to be added to the dynamic
12663 # symbol table so that they can be found when a module
12664 # is loaded. -N 2048K causes the stack size to be set
12665 # to 2048 kilobytes so that the stack doesn't overflow
12666 # when running test_compile.py.
12667 LINKFORSHARED='-Wl,-E -N 2048K';;
12668 esac
12670 { echo "$as_me:$LINENO: result: $LINKFORSHARED" >&5
12671 echo "${ECHO_T}$LINKFORSHARED" >&6; }
12674 { echo "$as_me:$LINENO: checking CFLAGSFORSHARED" >&5
12675 echo $ECHO_N "checking CFLAGSFORSHARED... $ECHO_C" >&6; }
12676 if test ! "$LIBRARY" = "$LDLIBRARY"
12677 then
12678 case $ac_sys_system in
12679 CYGWIN*)
12680 # Cygwin needs CCSHARED when building extension DLLs
12681 # but not when building the interpreter DLL.
12682 CFLAGSFORSHARED='';;
12684 CFLAGSFORSHARED='$(CCSHARED)'
12685 esac
12687 { echo "$as_me:$LINENO: result: $CFLAGSFORSHARED" >&5
12688 echo "${ECHO_T}$CFLAGSFORSHARED" >&6; }
12690 # SHLIBS are libraries (except -lc and -lm) to link to the python shared
12691 # library (with --enable-shared).
12692 # For platforms on which shared libraries are not allowed to have unresolved
12693 # symbols, this must be set to $(LIBS) (expanded by make). We do this even
12694 # if it is not required, since it creates a dependency of the shared library
12695 # to LIBS. This, in turn, means that applications linking the shared libpython
12696 # don't need to link LIBS explicitly. The default should be only changed
12697 # on systems where this approach causes problems.
12699 { echo "$as_me:$LINENO: checking SHLIBS" >&5
12700 echo $ECHO_N "checking SHLIBS... $ECHO_C" >&6; }
12701 case "$ac_sys_system" in
12703 SHLIBS='$(LIBS)';;
12704 esac
12705 { echo "$as_me:$LINENO: result: $SHLIBS" >&5
12706 echo "${ECHO_T}$SHLIBS" >&6; }
12709 # checks for libraries
12711 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12712 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
12713 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12714 echo $ECHO_N "(cached) $ECHO_C" >&6
12715 else
12716 ac_check_lib_save_LIBS=$LIBS
12717 LIBS="-ldl $LIBS"
12718 cat >conftest.$ac_ext <<_ACEOF
12719 /* confdefs.h. */
12720 _ACEOF
12721 cat confdefs.h >>conftest.$ac_ext
12722 cat >>conftest.$ac_ext <<_ACEOF
12723 /* end confdefs.h. */
12725 /* Override any GCC internal prototype to avoid an error.
12726 Use char because int might match the return type of a GCC
12727 builtin and then its argument prototype would still apply. */
12728 #ifdef __cplusplus
12729 extern "C"
12730 #endif
12731 char dlopen ();
12733 main ()
12735 return dlopen ();
12737 return 0;
12739 _ACEOF
12740 rm -f conftest.$ac_objext conftest$ac_exeext
12741 if { (ac_try="$ac_link"
12742 case "(($ac_try" in
12743 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12744 *) ac_try_echo=$ac_try;;
12745 esac
12746 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12747 (eval "$ac_link") 2>conftest.er1
12748 ac_status=$?
12749 grep -v '^ *+' conftest.er1 >conftest.err
12750 rm -f conftest.er1
12751 cat conftest.err >&5
12752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12753 (exit $ac_status); } && {
12754 test -z "$ac_c_werror_flag" ||
12755 test ! -s conftest.err
12756 } && test -s conftest$ac_exeext &&
12757 $as_test_x conftest$ac_exeext; then
12758 ac_cv_lib_dl_dlopen=yes
12759 else
12760 echo "$as_me: failed program was:" >&5
12761 sed 's/^/| /' conftest.$ac_ext >&5
12763 ac_cv_lib_dl_dlopen=no
12766 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12767 conftest$ac_exeext conftest.$ac_ext
12768 LIBS=$ac_check_lib_save_LIBS
12770 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12771 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
12772 if test $ac_cv_lib_dl_dlopen = yes; then
12773 cat >>confdefs.h <<_ACEOF
12774 #define HAVE_LIBDL 1
12775 _ACEOF
12777 LIBS="-ldl $LIBS"
12780 # Dynamic linking for SunOS/Solaris and SYSV
12782 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
12783 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
12784 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
12785 echo $ECHO_N "(cached) $ECHO_C" >&6
12786 else
12787 ac_check_lib_save_LIBS=$LIBS
12788 LIBS="-ldld $LIBS"
12789 cat >conftest.$ac_ext <<_ACEOF
12790 /* confdefs.h. */
12791 _ACEOF
12792 cat confdefs.h >>conftest.$ac_ext
12793 cat >>conftest.$ac_ext <<_ACEOF
12794 /* end confdefs.h. */
12796 /* Override any GCC internal prototype to avoid an error.
12797 Use char because int might match the return type of a GCC
12798 builtin and then its argument prototype would still apply. */
12799 #ifdef __cplusplus
12800 extern "C"
12801 #endif
12802 char shl_load ();
12804 main ()
12806 return shl_load ();
12808 return 0;
12810 _ACEOF
12811 rm -f conftest.$ac_objext conftest$ac_exeext
12812 if { (ac_try="$ac_link"
12813 case "(($ac_try" in
12814 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12815 *) ac_try_echo=$ac_try;;
12816 esac
12817 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12818 (eval "$ac_link") 2>conftest.er1
12819 ac_status=$?
12820 grep -v '^ *+' conftest.er1 >conftest.err
12821 rm -f conftest.er1
12822 cat conftest.err >&5
12823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12824 (exit $ac_status); } && {
12825 test -z "$ac_c_werror_flag" ||
12826 test ! -s conftest.err
12827 } && test -s conftest$ac_exeext &&
12828 $as_test_x conftest$ac_exeext; then
12829 ac_cv_lib_dld_shl_load=yes
12830 else
12831 echo "$as_me: failed program was:" >&5
12832 sed 's/^/| /' conftest.$ac_ext >&5
12834 ac_cv_lib_dld_shl_load=no
12837 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12838 conftest$ac_exeext conftest.$ac_ext
12839 LIBS=$ac_check_lib_save_LIBS
12841 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
12842 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
12843 if test $ac_cv_lib_dld_shl_load = yes; then
12844 cat >>confdefs.h <<_ACEOF
12845 #define HAVE_LIBDLD 1
12846 _ACEOF
12848 LIBS="-ldld $LIBS"
12851 # Dynamic linking for HP-UX
12853 # only check for sem_ini if thread support is requested
12854 if test "$with_threads" = "yes" -o -z "$with_threads"; then
12855 { echo "$as_me:$LINENO: checking for library containing sem_init" >&5
12856 echo $ECHO_N "checking for library containing sem_init... $ECHO_C" >&6; }
12857 if test "${ac_cv_search_sem_init+set}" = set; then
12858 echo $ECHO_N "(cached) $ECHO_C" >&6
12859 else
12860 ac_func_search_save_LIBS=$LIBS
12861 cat >conftest.$ac_ext <<_ACEOF
12862 /* confdefs.h. */
12863 _ACEOF
12864 cat confdefs.h >>conftest.$ac_ext
12865 cat >>conftest.$ac_ext <<_ACEOF
12866 /* end confdefs.h. */
12868 /* Override any GCC internal prototype to avoid an error.
12869 Use char because int might match the return type of a GCC
12870 builtin and then its argument prototype would still apply. */
12871 #ifdef __cplusplus
12872 extern "C"
12873 #endif
12874 char sem_init ();
12876 main ()
12878 return sem_init ();
12880 return 0;
12882 _ACEOF
12883 for ac_lib in '' pthread rt posix4; do
12884 if test -z "$ac_lib"; then
12885 ac_res="none required"
12886 else
12887 ac_res=-l$ac_lib
12888 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12890 rm -f conftest.$ac_objext conftest$ac_exeext
12891 if { (ac_try="$ac_link"
12892 case "(($ac_try" in
12893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12894 *) ac_try_echo=$ac_try;;
12895 esac
12896 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12897 (eval "$ac_link") 2>conftest.er1
12898 ac_status=$?
12899 grep -v '^ *+' conftest.er1 >conftest.err
12900 rm -f conftest.er1
12901 cat conftest.err >&5
12902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12903 (exit $ac_status); } && {
12904 test -z "$ac_c_werror_flag" ||
12905 test ! -s conftest.err
12906 } && test -s conftest$ac_exeext &&
12907 $as_test_x conftest$ac_exeext; then
12908 ac_cv_search_sem_init=$ac_res
12909 else
12910 echo "$as_me: failed program was:" >&5
12911 sed 's/^/| /' conftest.$ac_ext >&5
12916 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12917 conftest$ac_exeext
12918 if test "${ac_cv_search_sem_init+set}" = set; then
12919 break
12921 done
12922 if test "${ac_cv_search_sem_init+set}" = set; then
12924 else
12925 ac_cv_search_sem_init=no
12927 rm conftest.$ac_ext
12928 LIBS=$ac_func_search_save_LIBS
12930 { echo "$as_me:$LINENO: result: $ac_cv_search_sem_init" >&5
12931 echo "${ECHO_T}$ac_cv_search_sem_init" >&6; }
12932 ac_res=$ac_cv_search_sem_init
12933 if test "$ac_res" != no; then
12934 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12937 # 'Real Time' functions on Solaris
12938 # posix4 on Solaris 2.6
12939 # pthread (first!) on Linux
12942 # check if we need libintl for locale functions
12943 { echo "$as_me:$LINENO: checking for textdomain in -lintl" >&5
12944 echo $ECHO_N "checking for textdomain in -lintl... $ECHO_C" >&6; }
12945 if test "${ac_cv_lib_intl_textdomain+set}" = set; then
12946 echo $ECHO_N "(cached) $ECHO_C" >&6
12947 else
12948 ac_check_lib_save_LIBS=$LIBS
12949 LIBS="-lintl $LIBS"
12950 cat >conftest.$ac_ext <<_ACEOF
12951 /* confdefs.h. */
12952 _ACEOF
12953 cat confdefs.h >>conftest.$ac_ext
12954 cat >>conftest.$ac_ext <<_ACEOF
12955 /* end confdefs.h. */
12957 /* Override any GCC internal prototype to avoid an error.
12958 Use char because int might match the return type of a GCC
12959 builtin and then its argument prototype would still apply. */
12960 #ifdef __cplusplus
12961 extern "C"
12962 #endif
12963 char textdomain ();
12965 main ()
12967 return textdomain ();
12969 return 0;
12971 _ACEOF
12972 rm -f conftest.$ac_objext conftest$ac_exeext
12973 if { (ac_try="$ac_link"
12974 case "(($ac_try" in
12975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12976 *) ac_try_echo=$ac_try;;
12977 esac
12978 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12979 (eval "$ac_link") 2>conftest.er1
12980 ac_status=$?
12981 grep -v '^ *+' conftest.er1 >conftest.err
12982 rm -f conftest.er1
12983 cat conftest.err >&5
12984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12985 (exit $ac_status); } && {
12986 test -z "$ac_c_werror_flag" ||
12987 test ! -s conftest.err
12988 } && test -s conftest$ac_exeext &&
12989 $as_test_x conftest$ac_exeext; then
12990 ac_cv_lib_intl_textdomain=yes
12991 else
12992 echo "$as_me: failed program was:" >&5
12993 sed 's/^/| /' conftest.$ac_ext >&5
12995 ac_cv_lib_intl_textdomain=no
12998 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12999 conftest$ac_exeext conftest.$ac_ext
13000 LIBS=$ac_check_lib_save_LIBS
13002 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_textdomain" >&5
13003 echo "${ECHO_T}$ac_cv_lib_intl_textdomain" >&6; }
13004 if test $ac_cv_lib_intl_textdomain = yes; then
13006 cat >>confdefs.h <<\_ACEOF
13007 #define WITH_LIBINTL 1
13008 _ACEOF
13013 # checks for system dependent C++ extensions support
13014 case "$ac_sys_system" in
13015 AIX*) { echo "$as_me:$LINENO: checking for genuine AIX C++ extensions support" >&5
13016 echo $ECHO_N "checking for genuine AIX C++ extensions support... $ECHO_C" >&6; }
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 "/usr/lpp/xlC/include/load.h"
13025 main ()
13027 loadAndInit("", 0, "")
13029 return 0;
13031 _ACEOF
13032 rm -f conftest.$ac_objext conftest$ac_exeext
13033 if { (ac_try="$ac_link"
13034 case "(($ac_try" in
13035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13036 *) ac_try_echo=$ac_try;;
13037 esac
13038 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13039 (eval "$ac_link") 2>conftest.er1
13040 ac_status=$?
13041 grep -v '^ *+' conftest.er1 >conftest.err
13042 rm -f conftest.er1
13043 cat conftest.err >&5
13044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13045 (exit $ac_status); } && {
13046 test -z "$ac_c_werror_flag" ||
13047 test ! -s conftest.err
13048 } && test -s conftest$ac_exeext &&
13049 $as_test_x conftest$ac_exeext; then
13051 cat >>confdefs.h <<\_ACEOF
13052 #define AIX_GENUINE_CPLUSPLUS 1
13053 _ACEOF
13055 { echo "$as_me:$LINENO: result: yes" >&5
13056 echo "${ECHO_T}yes" >&6; }
13057 else
13058 echo "$as_me: failed program was:" >&5
13059 sed 's/^/| /' conftest.$ac_ext >&5
13061 { echo "$as_me:$LINENO: result: no" >&5
13062 echo "${ECHO_T}no" >&6; }
13065 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13066 conftest$ac_exeext conftest.$ac_ext;;
13067 *) ;;
13068 esac
13070 # Most SVR4 platforms (e.g. Solaris) need -lsocket and -lnsl.
13071 # BeOS' sockets are stashed in libnet.
13072 { echo "$as_me:$LINENO: checking for t_open in -lnsl" >&5
13073 echo $ECHO_N "checking for t_open in -lnsl... $ECHO_C" >&6; }
13074 if test "${ac_cv_lib_nsl_t_open+set}" = set; then
13075 echo $ECHO_N "(cached) $ECHO_C" >&6
13076 else
13077 ac_check_lib_save_LIBS=$LIBS
13078 LIBS="-lnsl $LIBS"
13079 cat >conftest.$ac_ext <<_ACEOF
13080 /* confdefs.h. */
13081 _ACEOF
13082 cat confdefs.h >>conftest.$ac_ext
13083 cat >>conftest.$ac_ext <<_ACEOF
13084 /* end confdefs.h. */
13086 /* Override any GCC internal prototype to avoid an error.
13087 Use char because int might match the return type of a GCC
13088 builtin and then its argument prototype would still apply. */
13089 #ifdef __cplusplus
13090 extern "C"
13091 #endif
13092 char t_open ();
13094 main ()
13096 return t_open ();
13098 return 0;
13100 _ACEOF
13101 rm -f conftest.$ac_objext conftest$ac_exeext
13102 if { (ac_try="$ac_link"
13103 case "(($ac_try" in
13104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13105 *) ac_try_echo=$ac_try;;
13106 esac
13107 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13108 (eval "$ac_link") 2>conftest.er1
13109 ac_status=$?
13110 grep -v '^ *+' conftest.er1 >conftest.err
13111 rm -f conftest.er1
13112 cat conftest.err >&5
13113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13114 (exit $ac_status); } && {
13115 test -z "$ac_c_werror_flag" ||
13116 test ! -s conftest.err
13117 } && test -s conftest$ac_exeext &&
13118 $as_test_x conftest$ac_exeext; then
13119 ac_cv_lib_nsl_t_open=yes
13120 else
13121 echo "$as_me: failed program was:" >&5
13122 sed 's/^/| /' conftest.$ac_ext >&5
13124 ac_cv_lib_nsl_t_open=no
13127 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13128 conftest$ac_exeext conftest.$ac_ext
13129 LIBS=$ac_check_lib_save_LIBS
13131 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_t_open" >&5
13132 echo "${ECHO_T}$ac_cv_lib_nsl_t_open" >&6; }
13133 if test $ac_cv_lib_nsl_t_open = yes; then
13134 LIBS="-lnsl $LIBS"
13136 # SVR4
13137 { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
13138 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
13139 if test "${ac_cv_lib_socket_socket+set}" = set; then
13140 echo $ECHO_N "(cached) $ECHO_C" >&6
13141 else
13142 ac_check_lib_save_LIBS=$LIBS
13143 LIBS="-lsocket $LIBS $LIBS"
13144 cat >conftest.$ac_ext <<_ACEOF
13145 /* confdefs.h. */
13146 _ACEOF
13147 cat confdefs.h >>conftest.$ac_ext
13148 cat >>conftest.$ac_ext <<_ACEOF
13149 /* end confdefs.h. */
13151 /* Override any GCC internal prototype to avoid an error.
13152 Use char because int might match the return type of a GCC
13153 builtin and then its argument prototype would still apply. */
13154 #ifdef __cplusplus
13155 extern "C"
13156 #endif
13157 char socket ();
13159 main ()
13161 return socket ();
13163 return 0;
13165 _ACEOF
13166 rm -f conftest.$ac_objext conftest$ac_exeext
13167 if { (ac_try="$ac_link"
13168 case "(($ac_try" in
13169 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13170 *) ac_try_echo=$ac_try;;
13171 esac
13172 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13173 (eval "$ac_link") 2>conftest.er1
13174 ac_status=$?
13175 grep -v '^ *+' conftest.er1 >conftest.err
13176 rm -f conftest.er1
13177 cat conftest.err >&5
13178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13179 (exit $ac_status); } && {
13180 test -z "$ac_c_werror_flag" ||
13181 test ! -s conftest.err
13182 } && test -s conftest$ac_exeext &&
13183 $as_test_x conftest$ac_exeext; then
13184 ac_cv_lib_socket_socket=yes
13185 else
13186 echo "$as_me: failed program was:" >&5
13187 sed 's/^/| /' conftest.$ac_ext >&5
13189 ac_cv_lib_socket_socket=no
13192 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13193 conftest$ac_exeext conftest.$ac_ext
13194 LIBS=$ac_check_lib_save_LIBS
13196 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
13197 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; }
13198 if test $ac_cv_lib_socket_socket = yes; then
13199 LIBS="-lsocket $LIBS"
13201 # SVR4 sockets
13203 case "$ac_sys_system" in
13204 BeOS*)
13205 { echo "$as_me:$LINENO: checking for socket in -lnet" >&5
13206 echo $ECHO_N "checking for socket in -lnet... $ECHO_C" >&6; }
13207 if test "${ac_cv_lib_net_socket+set}" = set; then
13208 echo $ECHO_N "(cached) $ECHO_C" >&6
13209 else
13210 ac_check_lib_save_LIBS=$LIBS
13211 LIBS="-lnet $LIBS $LIBS"
13212 cat >conftest.$ac_ext <<_ACEOF
13213 /* confdefs.h. */
13214 _ACEOF
13215 cat confdefs.h >>conftest.$ac_ext
13216 cat >>conftest.$ac_ext <<_ACEOF
13217 /* end confdefs.h. */
13219 /* Override any GCC internal prototype to avoid an error.
13220 Use char because int might match the return type of a GCC
13221 builtin and then its argument prototype would still apply. */
13222 #ifdef __cplusplus
13223 extern "C"
13224 #endif
13225 char socket ();
13227 main ()
13229 return socket ();
13231 return 0;
13233 _ACEOF
13234 rm -f conftest.$ac_objext conftest$ac_exeext
13235 if { (ac_try="$ac_link"
13236 case "(($ac_try" in
13237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13238 *) ac_try_echo=$ac_try;;
13239 esac
13240 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13241 (eval "$ac_link") 2>conftest.er1
13242 ac_status=$?
13243 grep -v '^ *+' conftest.er1 >conftest.err
13244 rm -f conftest.er1
13245 cat conftest.err >&5
13246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13247 (exit $ac_status); } && {
13248 test -z "$ac_c_werror_flag" ||
13249 test ! -s conftest.err
13250 } && test -s conftest$ac_exeext &&
13251 $as_test_x conftest$ac_exeext; then
13252 ac_cv_lib_net_socket=yes
13253 else
13254 echo "$as_me: failed program was:" >&5
13255 sed 's/^/| /' conftest.$ac_ext >&5
13257 ac_cv_lib_net_socket=no
13260 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13261 conftest$ac_exeext conftest.$ac_ext
13262 LIBS=$ac_check_lib_save_LIBS
13264 { echo "$as_me:$LINENO: result: $ac_cv_lib_net_socket" >&5
13265 echo "${ECHO_T}$ac_cv_lib_net_socket" >&6; }
13266 if test $ac_cv_lib_net_socket = yes; then
13267 LIBS="-lnet $LIBS"
13269 # BeOS
13271 esac
13273 { echo "$as_me:$LINENO: checking for --with-libs" >&5
13274 echo $ECHO_N "checking for --with-libs... $ECHO_C" >&6; }
13276 # Check whether --with-libs was given.
13277 if test "${with_libs+set}" = set; then
13278 withval=$with_libs;
13279 { echo "$as_me:$LINENO: result: $withval" >&5
13280 echo "${ECHO_T}$withval" >&6; }
13281 LIBS="$withval $LIBS"
13283 else
13284 { echo "$as_me:$LINENO: result: no" >&5
13285 echo "${ECHO_T}no" >&6; }
13289 # Check for use of the system libffi library
13290 { echo "$as_me:$LINENO: checking for --with-system-ffi" >&5
13291 echo $ECHO_N "checking for --with-system-ffi... $ECHO_C" >&6; }
13293 # Check whether --with-system_ffi was given.
13294 if test "${with_system_ffi+set}" = set; then
13295 withval=$with_system_ffi;
13299 { echo "$as_me:$LINENO: result: $with_system_ffi" >&5
13300 echo "${ECHO_T}$with_system_ffi" >&6; }
13302 # Determine if signalmodule should be used.
13305 { echo "$as_me:$LINENO: checking for --with-signal-module" >&5
13306 echo $ECHO_N "checking for --with-signal-module... $ECHO_C" >&6; }
13308 # Check whether --with-signal-module was given.
13309 if test "${with_signal_module+set}" = set; then
13310 withval=$with_signal_module;
13314 if test -z "$with_signal_module"
13315 then with_signal_module="yes"
13317 { echo "$as_me:$LINENO: result: $with_signal_module" >&5
13318 echo "${ECHO_T}$with_signal_module" >&6; }
13320 if test "${with_signal_module}" = "yes"; then
13321 USE_SIGNAL_MODULE=""
13322 SIGNAL_OBJS=""
13323 else
13324 USE_SIGNAL_MODULE="#"
13325 SIGNAL_OBJS="Parser/intrcheck.o Python/sigcheck.o"
13328 # This is used to generate Setup.config
13330 USE_THREAD_MODULE=""
13332 { echo "$as_me:$LINENO: checking for --with-dec-threads" >&5
13333 echo $ECHO_N "checking for --with-dec-threads... $ECHO_C" >&6; }
13336 # Check whether --with-dec-threads was given.
13337 if test "${with_dec_threads+set}" = set; then
13338 withval=$with_dec_threads;
13339 { echo "$as_me:$LINENO: result: $withval" >&5
13340 echo "${ECHO_T}$withval" >&6; }
13341 LDLAST=-threads
13342 if test "${with_thread+set}" != set; then
13343 with_thread="$withval";
13345 else
13346 { echo "$as_me:$LINENO: result: no" >&5
13347 echo "${ECHO_T}no" >&6; }
13351 # Templates for things AC_DEFINEd more than once.
13352 # For a single AC_DEFINE, no template is needed.
13360 { echo "$as_me:$LINENO: checking for --with-threads" >&5
13361 echo $ECHO_N "checking for --with-threads... $ECHO_C" >&6; }
13363 # Check whether --with-threads was given.
13364 if test "${with_threads+set}" = set; then
13365 withval=$with_threads;
13369 # --with-thread is deprecated, but check for it anyway
13371 # Check whether --with-thread was given.
13372 if test "${with_thread+set}" = set; then
13373 withval=$with_thread; with_threads=$with_thread
13377 if test -z "$with_threads"
13378 then with_threads="yes"
13380 { echo "$as_me:$LINENO: result: $with_threads" >&5
13381 echo "${ECHO_T}$with_threads" >&6; }
13384 if test "$with_threads" = "no"
13385 then
13386 USE_THREAD_MODULE="#"
13387 elif test "$ac_cv_pthread_is_default" = yes
13388 then
13389 cat >>confdefs.h <<\_ACEOF
13390 #define WITH_THREAD 1
13391 _ACEOF
13393 # Defining _REENTRANT on system with POSIX threads should not hurt.
13394 cat >>confdefs.h <<\_ACEOF
13395 #define _REENTRANT 1
13396 _ACEOF
13398 posix_threads=yes
13399 THREADOBJ="Python/thread.o"
13400 elif test "$ac_cv_kpthread" = "yes"
13401 then
13402 CC="$CC -Kpthread"
13403 if test "$ac_cv_cxx_thread" = "yes"; then
13404 CXX="$CXX -Kpthread"
13406 cat >>confdefs.h <<\_ACEOF
13407 #define WITH_THREAD 1
13408 _ACEOF
13410 posix_threads=yes
13411 THREADOBJ="Python/thread.o"
13412 elif test "$ac_cv_kthread" = "yes"
13413 then
13414 CC="$CC -Kthread"
13415 if test "$ac_cv_cxx_thread" = "yes"; then
13416 CXX="$CXX -Kthread"
13418 cat >>confdefs.h <<\_ACEOF
13419 #define WITH_THREAD 1
13420 _ACEOF
13422 posix_threads=yes
13423 THREADOBJ="Python/thread.o"
13424 elif test "$ac_cv_pthread" = "yes"
13425 then
13426 CC="$CC -pthread"
13427 if test "$ac_cv_cxx_thread" = "yes"; then
13428 CXX="$CXX -pthread"
13430 cat >>confdefs.h <<\_ACEOF
13431 #define WITH_THREAD 1
13432 _ACEOF
13434 posix_threads=yes
13435 THREADOBJ="Python/thread.o"
13436 else
13437 if test ! -z "$with_threads" -a -d "$with_threads"
13438 then LDFLAGS="$LDFLAGS -L$with_threads"
13440 if test ! -z "$withval" -a -d "$withval"
13441 then LDFLAGS="$LDFLAGS -L$withval"
13444 # According to the POSIX spec, a pthreads implementation must
13445 # define _POSIX_THREADS in unistd.h. Some apparently don't
13446 # (e.g. gnu pth with pthread emulation)
13447 { echo "$as_me:$LINENO: checking for _POSIX_THREADS in unistd.h" >&5
13448 echo $ECHO_N "checking for _POSIX_THREADS in unistd.h... $ECHO_C" >&6; }
13449 cat >conftest.$ac_ext <<_ACEOF
13450 /* confdefs.h. */
13451 _ACEOF
13452 cat confdefs.h >>conftest.$ac_ext
13453 cat >>conftest.$ac_ext <<_ACEOF
13454 /* end confdefs.h. */
13456 #include <unistd.h>
13457 #ifdef _POSIX_THREADS
13459 #endif
13461 _ACEOF
13462 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13463 $EGREP "yes" >/dev/null 2>&1; then
13464 unistd_defines_pthreads=yes
13465 else
13466 unistd_defines_pthreads=no
13468 rm -f conftest*
13470 { echo "$as_me:$LINENO: result: $unistd_defines_pthreads" >&5
13471 echo "${ECHO_T}$unistd_defines_pthreads" >&6; }
13473 cat >>confdefs.h <<\_ACEOF
13474 #define _REENTRANT 1
13475 _ACEOF
13477 if test "${ac_cv_header_cthreads_h+set}" = set; then
13478 { echo "$as_me:$LINENO: checking for cthreads.h" >&5
13479 echo $ECHO_N "checking for cthreads.h... $ECHO_C" >&6; }
13480 if test "${ac_cv_header_cthreads_h+set}" = set; then
13481 echo $ECHO_N "(cached) $ECHO_C" >&6
13483 { echo "$as_me:$LINENO: result: $ac_cv_header_cthreads_h" >&5
13484 echo "${ECHO_T}$ac_cv_header_cthreads_h" >&6; }
13485 else
13486 # Is the header compilable?
13487 { echo "$as_me:$LINENO: checking cthreads.h usability" >&5
13488 echo $ECHO_N "checking cthreads.h usability... $ECHO_C" >&6; }
13489 cat >conftest.$ac_ext <<_ACEOF
13490 /* confdefs.h. */
13491 _ACEOF
13492 cat confdefs.h >>conftest.$ac_ext
13493 cat >>conftest.$ac_ext <<_ACEOF
13494 /* end confdefs.h. */
13495 $ac_includes_default
13496 #include <cthreads.h>
13497 _ACEOF
13498 rm -f conftest.$ac_objext
13499 if { (ac_try="$ac_compile"
13500 case "(($ac_try" in
13501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13502 *) ac_try_echo=$ac_try;;
13503 esac
13504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13505 (eval "$ac_compile") 2>conftest.er1
13506 ac_status=$?
13507 grep -v '^ *+' conftest.er1 >conftest.err
13508 rm -f conftest.er1
13509 cat conftest.err >&5
13510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13511 (exit $ac_status); } && {
13512 test -z "$ac_c_werror_flag" ||
13513 test ! -s conftest.err
13514 } && test -s conftest.$ac_objext; then
13515 ac_header_compiler=yes
13516 else
13517 echo "$as_me: failed program was:" >&5
13518 sed 's/^/| /' conftest.$ac_ext >&5
13520 ac_header_compiler=no
13523 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13524 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13525 echo "${ECHO_T}$ac_header_compiler" >&6; }
13527 # Is the header present?
13528 { echo "$as_me:$LINENO: checking cthreads.h presence" >&5
13529 echo $ECHO_N "checking cthreads.h presence... $ECHO_C" >&6; }
13530 cat >conftest.$ac_ext <<_ACEOF
13531 /* confdefs.h. */
13532 _ACEOF
13533 cat confdefs.h >>conftest.$ac_ext
13534 cat >>conftest.$ac_ext <<_ACEOF
13535 /* end confdefs.h. */
13536 #include <cthreads.h>
13537 _ACEOF
13538 if { (ac_try="$ac_cpp conftest.$ac_ext"
13539 case "(($ac_try" in
13540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13541 *) ac_try_echo=$ac_try;;
13542 esac
13543 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13544 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13545 ac_status=$?
13546 grep -v '^ *+' conftest.er1 >conftest.err
13547 rm -f conftest.er1
13548 cat conftest.err >&5
13549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13550 (exit $ac_status); } >/dev/null && {
13551 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13552 test ! -s conftest.err
13553 }; then
13554 ac_header_preproc=yes
13555 else
13556 echo "$as_me: failed program was:" >&5
13557 sed 's/^/| /' conftest.$ac_ext >&5
13559 ac_header_preproc=no
13562 rm -f conftest.err conftest.$ac_ext
13563 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13564 echo "${ECHO_T}$ac_header_preproc" >&6; }
13566 # So? What about this header?
13567 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13568 yes:no: )
13569 { echo "$as_me:$LINENO: WARNING: cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&5
13570 echo "$as_me: WARNING: cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13571 { echo "$as_me:$LINENO: WARNING: cthreads.h: proceeding with the compiler's result" >&5
13572 echo "$as_me: WARNING: cthreads.h: proceeding with the compiler's result" >&2;}
13573 ac_header_preproc=yes
13575 no:yes:* )
13576 { echo "$as_me:$LINENO: WARNING: cthreads.h: present but cannot be compiled" >&5
13577 echo "$as_me: WARNING: cthreads.h: present but cannot be compiled" >&2;}
13578 { echo "$as_me:$LINENO: WARNING: cthreads.h: check for missing prerequisite headers?" >&5
13579 echo "$as_me: WARNING: cthreads.h: check for missing prerequisite headers?" >&2;}
13580 { echo "$as_me:$LINENO: WARNING: cthreads.h: see the Autoconf documentation" >&5
13581 echo "$as_me: WARNING: cthreads.h: see the Autoconf documentation" >&2;}
13582 { echo "$as_me:$LINENO: WARNING: cthreads.h: section \"Present But Cannot Be Compiled\"" >&5
13583 echo "$as_me: WARNING: cthreads.h: section \"Present But Cannot Be Compiled\"" >&2;}
13584 { echo "$as_me:$LINENO: WARNING: cthreads.h: proceeding with the preprocessor's result" >&5
13585 echo "$as_me: WARNING: cthreads.h: proceeding with the preprocessor's result" >&2;}
13586 { echo "$as_me:$LINENO: WARNING: cthreads.h: in the future, the compiler will take precedence" >&5
13587 echo "$as_me: WARNING: cthreads.h: in the future, the compiler will take precedence" >&2;}
13588 ( cat <<\_ASBOX
13589 ## ------------------------------------------------ ##
13590 ## Report this to http://www.python.org/python-bugs ##
13591 ## ------------------------------------------------ ##
13592 _ASBOX
13593 ) | sed "s/^/$as_me: WARNING: /" >&2
13595 esac
13596 { echo "$as_me:$LINENO: checking for cthreads.h" >&5
13597 echo $ECHO_N "checking for cthreads.h... $ECHO_C" >&6; }
13598 if test "${ac_cv_header_cthreads_h+set}" = set; then
13599 echo $ECHO_N "(cached) $ECHO_C" >&6
13600 else
13601 ac_cv_header_cthreads_h=$ac_header_preproc
13603 { echo "$as_me:$LINENO: result: $ac_cv_header_cthreads_h" >&5
13604 echo "${ECHO_T}$ac_cv_header_cthreads_h" >&6; }
13607 if test $ac_cv_header_cthreads_h = yes; then
13608 cat >>confdefs.h <<\_ACEOF
13609 #define WITH_THREAD 1
13610 _ACEOF
13612 cat >>confdefs.h <<\_ACEOF
13613 #define C_THREADS 1
13614 _ACEOF
13617 cat >>confdefs.h <<\_ACEOF
13618 #define HURD_C_THREADS 1
13619 _ACEOF
13621 LIBS="$LIBS -lthreads"
13622 THREADOBJ="Python/thread.o"
13623 else
13625 if test "${ac_cv_header_mach_cthreads_h+set}" = set; then
13626 { echo "$as_me:$LINENO: checking for mach/cthreads.h" >&5
13627 echo $ECHO_N "checking for mach/cthreads.h... $ECHO_C" >&6; }
13628 if test "${ac_cv_header_mach_cthreads_h+set}" = set; then
13629 echo $ECHO_N "(cached) $ECHO_C" >&6
13631 { echo "$as_me:$LINENO: result: $ac_cv_header_mach_cthreads_h" >&5
13632 echo "${ECHO_T}$ac_cv_header_mach_cthreads_h" >&6; }
13633 else
13634 # Is the header compilable?
13635 { echo "$as_me:$LINENO: checking mach/cthreads.h usability" >&5
13636 echo $ECHO_N "checking mach/cthreads.h usability... $ECHO_C" >&6; }
13637 cat >conftest.$ac_ext <<_ACEOF
13638 /* confdefs.h. */
13639 _ACEOF
13640 cat confdefs.h >>conftest.$ac_ext
13641 cat >>conftest.$ac_ext <<_ACEOF
13642 /* end confdefs.h. */
13643 $ac_includes_default
13644 #include <mach/cthreads.h>
13645 _ACEOF
13646 rm -f conftest.$ac_objext
13647 if { (ac_try="$ac_compile"
13648 case "(($ac_try" in
13649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13650 *) ac_try_echo=$ac_try;;
13651 esac
13652 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13653 (eval "$ac_compile") 2>conftest.er1
13654 ac_status=$?
13655 grep -v '^ *+' conftest.er1 >conftest.err
13656 rm -f conftest.er1
13657 cat conftest.err >&5
13658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13659 (exit $ac_status); } && {
13660 test -z "$ac_c_werror_flag" ||
13661 test ! -s conftest.err
13662 } && test -s conftest.$ac_objext; then
13663 ac_header_compiler=yes
13664 else
13665 echo "$as_me: failed program was:" >&5
13666 sed 's/^/| /' conftest.$ac_ext >&5
13668 ac_header_compiler=no
13671 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13672 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13673 echo "${ECHO_T}$ac_header_compiler" >&6; }
13675 # Is the header present?
13676 { echo "$as_me:$LINENO: checking mach/cthreads.h presence" >&5
13677 echo $ECHO_N "checking mach/cthreads.h presence... $ECHO_C" >&6; }
13678 cat >conftest.$ac_ext <<_ACEOF
13679 /* confdefs.h. */
13680 _ACEOF
13681 cat confdefs.h >>conftest.$ac_ext
13682 cat >>conftest.$ac_ext <<_ACEOF
13683 /* end confdefs.h. */
13684 #include <mach/cthreads.h>
13685 _ACEOF
13686 if { (ac_try="$ac_cpp conftest.$ac_ext"
13687 case "(($ac_try" in
13688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13689 *) ac_try_echo=$ac_try;;
13690 esac
13691 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13692 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13693 ac_status=$?
13694 grep -v '^ *+' conftest.er1 >conftest.err
13695 rm -f conftest.er1
13696 cat conftest.err >&5
13697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13698 (exit $ac_status); } >/dev/null && {
13699 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13700 test ! -s conftest.err
13701 }; then
13702 ac_header_preproc=yes
13703 else
13704 echo "$as_me: failed program was:" >&5
13705 sed 's/^/| /' conftest.$ac_ext >&5
13707 ac_header_preproc=no
13710 rm -f conftest.err conftest.$ac_ext
13711 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13712 echo "${ECHO_T}$ac_header_preproc" >&6; }
13714 # So? What about this header?
13715 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13716 yes:no: )
13717 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&5
13718 echo "$as_me: WARNING: mach/cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13719 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: proceeding with the compiler's result" >&5
13720 echo "$as_me: WARNING: mach/cthreads.h: proceeding with the compiler's result" >&2;}
13721 ac_header_preproc=yes
13723 no:yes:* )
13724 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: present but cannot be compiled" >&5
13725 echo "$as_me: WARNING: mach/cthreads.h: present but cannot be compiled" >&2;}
13726 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: check for missing prerequisite headers?" >&5
13727 echo "$as_me: WARNING: mach/cthreads.h: check for missing prerequisite headers?" >&2;}
13728 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: see the Autoconf documentation" >&5
13729 echo "$as_me: WARNING: mach/cthreads.h: see the Autoconf documentation" >&2;}
13730 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: section \"Present But Cannot Be Compiled\"" >&5
13731 echo "$as_me: WARNING: mach/cthreads.h: section \"Present But Cannot Be Compiled\"" >&2;}
13732 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: proceeding with the preprocessor's result" >&5
13733 echo "$as_me: WARNING: mach/cthreads.h: proceeding with the preprocessor's result" >&2;}
13734 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: in the future, the compiler will take precedence" >&5
13735 echo "$as_me: WARNING: mach/cthreads.h: in the future, the compiler will take precedence" >&2;}
13736 ( cat <<\_ASBOX
13737 ## ------------------------------------------------ ##
13738 ## Report this to http://www.python.org/python-bugs ##
13739 ## ------------------------------------------------ ##
13740 _ASBOX
13741 ) | sed "s/^/$as_me: WARNING: /" >&2
13743 esac
13744 { echo "$as_me:$LINENO: checking for mach/cthreads.h" >&5
13745 echo $ECHO_N "checking for mach/cthreads.h... $ECHO_C" >&6; }
13746 if test "${ac_cv_header_mach_cthreads_h+set}" = set; then
13747 echo $ECHO_N "(cached) $ECHO_C" >&6
13748 else
13749 ac_cv_header_mach_cthreads_h=$ac_header_preproc
13751 { echo "$as_me:$LINENO: result: $ac_cv_header_mach_cthreads_h" >&5
13752 echo "${ECHO_T}$ac_cv_header_mach_cthreads_h" >&6; }
13755 if test $ac_cv_header_mach_cthreads_h = yes; then
13756 cat >>confdefs.h <<\_ACEOF
13757 #define WITH_THREAD 1
13758 _ACEOF
13760 cat >>confdefs.h <<\_ACEOF
13761 #define C_THREADS 1
13762 _ACEOF
13765 cat >>confdefs.h <<\_ACEOF
13766 #define MACH_C_THREADS 1
13767 _ACEOF
13769 THREADOBJ="Python/thread.o"
13770 else
13772 { echo "$as_me:$LINENO: checking for --with-pth" >&5
13773 echo $ECHO_N "checking for --with-pth... $ECHO_C" >&6; }
13775 # Check whether --with-pth was given.
13776 if test "${with_pth+set}" = set; then
13777 withval=$with_pth; { echo "$as_me:$LINENO: result: $withval" >&5
13778 echo "${ECHO_T}$withval" >&6; }
13779 cat >>confdefs.h <<\_ACEOF
13780 #define WITH_THREAD 1
13781 _ACEOF
13784 cat >>confdefs.h <<\_ACEOF
13785 #define HAVE_PTH 1
13786 _ACEOF
13788 LIBS="-lpth $LIBS"
13789 THREADOBJ="Python/thread.o"
13790 else
13791 { echo "$as_me:$LINENO: result: no" >&5
13792 echo "${ECHO_T}no" >&6; }
13794 # Just looking for pthread_create in libpthread is not enough:
13795 # on HP/UX, pthread.h renames pthread_create to a different symbol name.
13796 # So we really have to include pthread.h, and then link.
13797 _libs=$LIBS
13798 LIBS="$LIBS -lpthread"
13799 { echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
13800 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6; }
13801 cat >conftest.$ac_ext <<_ACEOF
13802 /* confdefs.h. */
13803 _ACEOF
13804 cat confdefs.h >>conftest.$ac_ext
13805 cat >>conftest.$ac_ext <<_ACEOF
13806 /* end confdefs.h. */
13807 #include <pthread.h>
13809 void * start_routine (void *arg) { exit (0); }
13811 main ()
13814 pthread_create (NULL, NULL, start_routine, NULL)
13816 return 0;
13818 _ACEOF
13819 rm -f conftest.$ac_objext conftest$ac_exeext
13820 if { (ac_try="$ac_link"
13821 case "(($ac_try" in
13822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13823 *) ac_try_echo=$ac_try;;
13824 esac
13825 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13826 (eval "$ac_link") 2>conftest.er1
13827 ac_status=$?
13828 grep -v '^ *+' conftest.er1 >conftest.err
13829 rm -f conftest.er1
13830 cat conftest.err >&5
13831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13832 (exit $ac_status); } && {
13833 test -z "$ac_c_werror_flag" ||
13834 test ! -s conftest.err
13835 } && test -s conftest$ac_exeext &&
13836 $as_test_x conftest$ac_exeext; then
13838 { echo "$as_me:$LINENO: result: yes" >&5
13839 echo "${ECHO_T}yes" >&6; }
13840 cat >>confdefs.h <<\_ACEOF
13841 #define WITH_THREAD 1
13842 _ACEOF
13844 posix_threads=yes
13845 THREADOBJ="Python/thread.o"
13846 else
13847 echo "$as_me: failed program was:" >&5
13848 sed 's/^/| /' conftest.$ac_ext >&5
13851 LIBS=$_libs
13852 { echo "$as_me:$LINENO: checking for pthread_detach" >&5
13853 echo $ECHO_N "checking for pthread_detach... $ECHO_C" >&6; }
13854 if test "${ac_cv_func_pthread_detach+set}" = set; then
13855 echo $ECHO_N "(cached) $ECHO_C" >&6
13856 else
13857 cat >conftest.$ac_ext <<_ACEOF
13858 /* confdefs.h. */
13859 _ACEOF
13860 cat confdefs.h >>conftest.$ac_ext
13861 cat >>conftest.$ac_ext <<_ACEOF
13862 /* end confdefs.h. */
13863 /* Define pthread_detach to an innocuous variant, in case <limits.h> declares pthread_detach.
13864 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13865 #define pthread_detach innocuous_pthread_detach
13867 /* System header to define __stub macros and hopefully few prototypes,
13868 which can conflict with char pthread_detach (); below.
13869 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13870 <limits.h> exists even on freestanding compilers. */
13872 #ifdef __STDC__
13873 # include <limits.h>
13874 #else
13875 # include <assert.h>
13876 #endif
13878 #undef pthread_detach
13880 /* Override any GCC internal prototype to avoid an error.
13881 Use char because int might match the return type of a GCC
13882 builtin and then its argument prototype would still apply. */
13883 #ifdef __cplusplus
13884 extern "C"
13885 #endif
13886 char pthread_detach ();
13887 /* The GNU C library defines this for functions which it implements
13888 to always fail with ENOSYS. Some functions are actually named
13889 something starting with __ and the normal name is an alias. */
13890 #if defined __stub_pthread_detach || defined __stub___pthread_detach
13891 choke me
13892 #endif
13895 main ()
13897 return pthread_detach ();
13899 return 0;
13901 _ACEOF
13902 rm -f conftest.$ac_objext conftest$ac_exeext
13903 if { (ac_try="$ac_link"
13904 case "(($ac_try" in
13905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13906 *) ac_try_echo=$ac_try;;
13907 esac
13908 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13909 (eval "$ac_link") 2>conftest.er1
13910 ac_status=$?
13911 grep -v '^ *+' conftest.er1 >conftest.err
13912 rm -f conftest.er1
13913 cat conftest.err >&5
13914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13915 (exit $ac_status); } && {
13916 test -z "$ac_c_werror_flag" ||
13917 test ! -s conftest.err
13918 } && test -s conftest$ac_exeext &&
13919 $as_test_x conftest$ac_exeext; then
13920 ac_cv_func_pthread_detach=yes
13921 else
13922 echo "$as_me: failed program was:" >&5
13923 sed 's/^/| /' conftest.$ac_ext >&5
13925 ac_cv_func_pthread_detach=no
13928 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13929 conftest$ac_exeext conftest.$ac_ext
13931 { echo "$as_me:$LINENO: result: $ac_cv_func_pthread_detach" >&5
13932 echo "${ECHO_T}$ac_cv_func_pthread_detach" >&6; }
13933 if test $ac_cv_func_pthread_detach = yes; then
13934 cat >>confdefs.h <<\_ACEOF
13935 #define WITH_THREAD 1
13936 _ACEOF
13938 posix_threads=yes
13939 THREADOBJ="Python/thread.o"
13940 else
13942 if test "${ac_cv_header_atheos_threads_h+set}" = set; then
13943 { echo "$as_me:$LINENO: checking for atheos/threads.h" >&5
13944 echo $ECHO_N "checking for atheos/threads.h... $ECHO_C" >&6; }
13945 if test "${ac_cv_header_atheos_threads_h+set}" = set; then
13946 echo $ECHO_N "(cached) $ECHO_C" >&6
13948 { echo "$as_me:$LINENO: result: $ac_cv_header_atheos_threads_h" >&5
13949 echo "${ECHO_T}$ac_cv_header_atheos_threads_h" >&6; }
13950 else
13951 # Is the header compilable?
13952 { echo "$as_me:$LINENO: checking atheos/threads.h usability" >&5
13953 echo $ECHO_N "checking atheos/threads.h usability... $ECHO_C" >&6; }
13954 cat >conftest.$ac_ext <<_ACEOF
13955 /* confdefs.h. */
13956 _ACEOF
13957 cat confdefs.h >>conftest.$ac_ext
13958 cat >>conftest.$ac_ext <<_ACEOF
13959 /* end confdefs.h. */
13960 $ac_includes_default
13961 #include <atheos/threads.h>
13962 _ACEOF
13963 rm -f conftest.$ac_objext
13964 if { (ac_try="$ac_compile"
13965 case "(($ac_try" in
13966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13967 *) ac_try_echo=$ac_try;;
13968 esac
13969 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13970 (eval "$ac_compile") 2>conftest.er1
13971 ac_status=$?
13972 grep -v '^ *+' conftest.er1 >conftest.err
13973 rm -f conftest.er1
13974 cat conftest.err >&5
13975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13976 (exit $ac_status); } && {
13977 test -z "$ac_c_werror_flag" ||
13978 test ! -s conftest.err
13979 } && test -s conftest.$ac_objext; then
13980 ac_header_compiler=yes
13981 else
13982 echo "$as_me: failed program was:" >&5
13983 sed 's/^/| /' conftest.$ac_ext >&5
13985 ac_header_compiler=no
13988 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13989 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13990 echo "${ECHO_T}$ac_header_compiler" >&6; }
13992 # Is the header present?
13993 { echo "$as_me:$LINENO: checking atheos/threads.h presence" >&5
13994 echo $ECHO_N "checking atheos/threads.h presence... $ECHO_C" >&6; }
13995 cat >conftest.$ac_ext <<_ACEOF
13996 /* confdefs.h. */
13997 _ACEOF
13998 cat confdefs.h >>conftest.$ac_ext
13999 cat >>conftest.$ac_ext <<_ACEOF
14000 /* end confdefs.h. */
14001 #include <atheos/threads.h>
14002 _ACEOF
14003 if { (ac_try="$ac_cpp conftest.$ac_ext"
14004 case "(($ac_try" in
14005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14006 *) ac_try_echo=$ac_try;;
14007 esac
14008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14009 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14010 ac_status=$?
14011 grep -v '^ *+' conftest.er1 >conftest.err
14012 rm -f conftest.er1
14013 cat conftest.err >&5
14014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14015 (exit $ac_status); } >/dev/null && {
14016 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14017 test ! -s conftest.err
14018 }; then
14019 ac_header_preproc=yes
14020 else
14021 echo "$as_me: failed program was:" >&5
14022 sed 's/^/| /' conftest.$ac_ext >&5
14024 ac_header_preproc=no
14027 rm -f conftest.err conftest.$ac_ext
14028 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14029 echo "${ECHO_T}$ac_header_preproc" >&6; }
14031 # So? What about this header?
14032 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14033 yes:no: )
14034 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: accepted by the compiler, rejected by the preprocessor!" >&5
14035 echo "$as_me: WARNING: atheos/threads.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14036 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: proceeding with the compiler's result" >&5
14037 echo "$as_me: WARNING: atheos/threads.h: proceeding with the compiler's result" >&2;}
14038 ac_header_preproc=yes
14040 no:yes:* )
14041 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: present but cannot be compiled" >&5
14042 echo "$as_me: WARNING: atheos/threads.h: present but cannot be compiled" >&2;}
14043 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: check for missing prerequisite headers?" >&5
14044 echo "$as_me: WARNING: atheos/threads.h: check for missing prerequisite headers?" >&2;}
14045 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: see the Autoconf documentation" >&5
14046 echo "$as_me: WARNING: atheos/threads.h: see the Autoconf documentation" >&2;}
14047 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: section \"Present But Cannot Be Compiled\"" >&5
14048 echo "$as_me: WARNING: atheos/threads.h: section \"Present But Cannot Be Compiled\"" >&2;}
14049 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: proceeding with the preprocessor's result" >&5
14050 echo "$as_me: WARNING: atheos/threads.h: proceeding with the preprocessor's result" >&2;}
14051 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: in the future, the compiler will take precedence" >&5
14052 echo "$as_me: WARNING: atheos/threads.h: in the future, the compiler will take precedence" >&2;}
14053 ( cat <<\_ASBOX
14054 ## ------------------------------------------------ ##
14055 ## Report this to http://www.python.org/python-bugs ##
14056 ## ------------------------------------------------ ##
14057 _ASBOX
14058 ) | sed "s/^/$as_me: WARNING: /" >&2
14060 esac
14061 { echo "$as_me:$LINENO: checking for atheos/threads.h" >&5
14062 echo $ECHO_N "checking for atheos/threads.h... $ECHO_C" >&6; }
14063 if test "${ac_cv_header_atheos_threads_h+set}" = set; then
14064 echo $ECHO_N "(cached) $ECHO_C" >&6
14065 else
14066 ac_cv_header_atheos_threads_h=$ac_header_preproc
14068 { echo "$as_me:$LINENO: result: $ac_cv_header_atheos_threads_h" >&5
14069 echo "${ECHO_T}$ac_cv_header_atheos_threads_h" >&6; }
14072 if test $ac_cv_header_atheos_threads_h = yes; then
14073 cat >>confdefs.h <<\_ACEOF
14074 #define WITH_THREAD 1
14075 _ACEOF
14078 cat >>confdefs.h <<\_ACEOF
14079 #define ATHEOS_THREADS 1
14080 _ACEOF
14082 THREADOBJ="Python/thread.o"
14083 else
14085 if test "${ac_cv_header_kernel_OS_h+set}" = set; then
14086 { echo "$as_me:$LINENO: checking for kernel/OS.h" >&5
14087 echo $ECHO_N "checking for kernel/OS.h... $ECHO_C" >&6; }
14088 if test "${ac_cv_header_kernel_OS_h+set}" = set; then
14089 echo $ECHO_N "(cached) $ECHO_C" >&6
14091 { echo "$as_me:$LINENO: result: $ac_cv_header_kernel_OS_h" >&5
14092 echo "${ECHO_T}$ac_cv_header_kernel_OS_h" >&6; }
14093 else
14094 # Is the header compilable?
14095 { echo "$as_me:$LINENO: checking kernel/OS.h usability" >&5
14096 echo $ECHO_N "checking kernel/OS.h usability... $ECHO_C" >&6; }
14097 cat >conftest.$ac_ext <<_ACEOF
14098 /* confdefs.h. */
14099 _ACEOF
14100 cat confdefs.h >>conftest.$ac_ext
14101 cat >>conftest.$ac_ext <<_ACEOF
14102 /* end confdefs.h. */
14103 $ac_includes_default
14104 #include <kernel/OS.h>
14105 _ACEOF
14106 rm -f conftest.$ac_objext
14107 if { (ac_try="$ac_compile"
14108 case "(($ac_try" in
14109 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14110 *) ac_try_echo=$ac_try;;
14111 esac
14112 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14113 (eval "$ac_compile") 2>conftest.er1
14114 ac_status=$?
14115 grep -v '^ *+' conftest.er1 >conftest.err
14116 rm -f conftest.er1
14117 cat conftest.err >&5
14118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14119 (exit $ac_status); } && {
14120 test -z "$ac_c_werror_flag" ||
14121 test ! -s conftest.err
14122 } && test -s conftest.$ac_objext; then
14123 ac_header_compiler=yes
14124 else
14125 echo "$as_me: failed program was:" >&5
14126 sed 's/^/| /' conftest.$ac_ext >&5
14128 ac_header_compiler=no
14131 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14132 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14133 echo "${ECHO_T}$ac_header_compiler" >&6; }
14135 # Is the header present?
14136 { echo "$as_me:$LINENO: checking kernel/OS.h presence" >&5
14137 echo $ECHO_N "checking kernel/OS.h presence... $ECHO_C" >&6; }
14138 cat >conftest.$ac_ext <<_ACEOF
14139 /* confdefs.h. */
14140 _ACEOF
14141 cat confdefs.h >>conftest.$ac_ext
14142 cat >>conftest.$ac_ext <<_ACEOF
14143 /* end confdefs.h. */
14144 #include <kernel/OS.h>
14145 _ACEOF
14146 if { (ac_try="$ac_cpp conftest.$ac_ext"
14147 case "(($ac_try" in
14148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14149 *) ac_try_echo=$ac_try;;
14150 esac
14151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14152 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14153 ac_status=$?
14154 grep -v '^ *+' conftest.er1 >conftest.err
14155 rm -f conftest.er1
14156 cat conftest.err >&5
14157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14158 (exit $ac_status); } >/dev/null && {
14159 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14160 test ! -s conftest.err
14161 }; then
14162 ac_header_preproc=yes
14163 else
14164 echo "$as_me: failed program was:" >&5
14165 sed 's/^/| /' conftest.$ac_ext >&5
14167 ac_header_preproc=no
14170 rm -f conftest.err conftest.$ac_ext
14171 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14172 echo "${ECHO_T}$ac_header_preproc" >&6; }
14174 # So? What about this header?
14175 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14176 yes:no: )
14177 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: accepted by the compiler, rejected by the preprocessor!" >&5
14178 echo "$as_me: WARNING: kernel/OS.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14179 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: proceeding with the compiler's result" >&5
14180 echo "$as_me: WARNING: kernel/OS.h: proceeding with the compiler's result" >&2;}
14181 ac_header_preproc=yes
14183 no:yes:* )
14184 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: present but cannot be compiled" >&5
14185 echo "$as_me: WARNING: kernel/OS.h: present but cannot be compiled" >&2;}
14186 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: check for missing prerequisite headers?" >&5
14187 echo "$as_me: WARNING: kernel/OS.h: check for missing prerequisite headers?" >&2;}
14188 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: see the Autoconf documentation" >&5
14189 echo "$as_me: WARNING: kernel/OS.h: see the Autoconf documentation" >&2;}
14190 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: section \"Present But Cannot Be Compiled\"" >&5
14191 echo "$as_me: WARNING: kernel/OS.h: section \"Present But Cannot Be Compiled\"" >&2;}
14192 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: proceeding with the preprocessor's result" >&5
14193 echo "$as_me: WARNING: kernel/OS.h: proceeding with the preprocessor's result" >&2;}
14194 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: in the future, the compiler will take precedence" >&5
14195 echo "$as_me: WARNING: kernel/OS.h: in the future, the compiler will take precedence" >&2;}
14196 ( cat <<\_ASBOX
14197 ## ------------------------------------------------ ##
14198 ## Report this to http://www.python.org/python-bugs ##
14199 ## ------------------------------------------------ ##
14200 _ASBOX
14201 ) | sed "s/^/$as_me: WARNING: /" >&2
14203 esac
14204 { echo "$as_me:$LINENO: checking for kernel/OS.h" >&5
14205 echo $ECHO_N "checking for kernel/OS.h... $ECHO_C" >&6; }
14206 if test "${ac_cv_header_kernel_OS_h+set}" = set; then
14207 echo $ECHO_N "(cached) $ECHO_C" >&6
14208 else
14209 ac_cv_header_kernel_OS_h=$ac_header_preproc
14211 { echo "$as_me:$LINENO: result: $ac_cv_header_kernel_OS_h" >&5
14212 echo "${ECHO_T}$ac_cv_header_kernel_OS_h" >&6; }
14215 if test $ac_cv_header_kernel_OS_h = yes; then
14216 cat >>confdefs.h <<\_ACEOF
14217 #define WITH_THREAD 1
14218 _ACEOF
14221 cat >>confdefs.h <<\_ACEOF
14222 #define BEOS_THREADS 1
14223 _ACEOF
14225 THREADOBJ="Python/thread.o"
14226 else
14228 { echo "$as_me:$LINENO: checking for pthread_create in -lpthreads" >&5
14229 echo $ECHO_N "checking for pthread_create in -lpthreads... $ECHO_C" >&6; }
14230 if test "${ac_cv_lib_pthreads_pthread_create+set}" = set; then
14231 echo $ECHO_N "(cached) $ECHO_C" >&6
14232 else
14233 ac_check_lib_save_LIBS=$LIBS
14234 LIBS="-lpthreads $LIBS"
14235 cat >conftest.$ac_ext <<_ACEOF
14236 /* confdefs.h. */
14237 _ACEOF
14238 cat confdefs.h >>conftest.$ac_ext
14239 cat >>conftest.$ac_ext <<_ACEOF
14240 /* end confdefs.h. */
14242 /* Override any GCC internal prototype to avoid an error.
14243 Use char because int might match the return type of a GCC
14244 builtin and then its argument prototype would still apply. */
14245 #ifdef __cplusplus
14246 extern "C"
14247 #endif
14248 char pthread_create ();
14250 main ()
14252 return pthread_create ();
14254 return 0;
14256 _ACEOF
14257 rm -f conftest.$ac_objext conftest$ac_exeext
14258 if { (ac_try="$ac_link"
14259 case "(($ac_try" in
14260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14261 *) ac_try_echo=$ac_try;;
14262 esac
14263 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14264 (eval "$ac_link") 2>conftest.er1
14265 ac_status=$?
14266 grep -v '^ *+' conftest.er1 >conftest.err
14267 rm -f conftest.er1
14268 cat conftest.err >&5
14269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14270 (exit $ac_status); } && {
14271 test -z "$ac_c_werror_flag" ||
14272 test ! -s conftest.err
14273 } && test -s conftest$ac_exeext &&
14274 $as_test_x conftest$ac_exeext; then
14275 ac_cv_lib_pthreads_pthread_create=yes
14276 else
14277 echo "$as_me: failed program was:" >&5
14278 sed 's/^/| /' conftest.$ac_ext >&5
14280 ac_cv_lib_pthreads_pthread_create=no
14283 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14284 conftest$ac_exeext conftest.$ac_ext
14285 LIBS=$ac_check_lib_save_LIBS
14287 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_create" >&5
14288 echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_create" >&6; }
14289 if test $ac_cv_lib_pthreads_pthread_create = yes; then
14290 cat >>confdefs.h <<\_ACEOF
14291 #define WITH_THREAD 1
14292 _ACEOF
14294 posix_threads=yes
14295 LIBS="$LIBS -lpthreads"
14296 THREADOBJ="Python/thread.o"
14297 else
14299 { echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
14300 echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6; }
14301 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then
14302 echo $ECHO_N "(cached) $ECHO_C" >&6
14303 else
14304 ac_check_lib_save_LIBS=$LIBS
14305 LIBS="-lc_r $LIBS"
14306 cat >conftest.$ac_ext <<_ACEOF
14307 /* confdefs.h. */
14308 _ACEOF
14309 cat confdefs.h >>conftest.$ac_ext
14310 cat >>conftest.$ac_ext <<_ACEOF
14311 /* end confdefs.h. */
14313 /* Override any GCC internal prototype to avoid an error.
14314 Use char because int might match the return type of a GCC
14315 builtin and then its argument prototype would still apply. */
14316 #ifdef __cplusplus
14317 extern "C"
14318 #endif
14319 char pthread_create ();
14321 main ()
14323 return pthread_create ();
14325 return 0;
14327 _ACEOF
14328 rm -f conftest.$ac_objext conftest$ac_exeext
14329 if { (ac_try="$ac_link"
14330 case "(($ac_try" in
14331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14332 *) ac_try_echo=$ac_try;;
14333 esac
14334 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14335 (eval "$ac_link") 2>conftest.er1
14336 ac_status=$?
14337 grep -v '^ *+' conftest.er1 >conftest.err
14338 rm -f conftest.er1
14339 cat conftest.err >&5
14340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14341 (exit $ac_status); } && {
14342 test -z "$ac_c_werror_flag" ||
14343 test ! -s conftest.err
14344 } && test -s conftest$ac_exeext &&
14345 $as_test_x conftest$ac_exeext; then
14346 ac_cv_lib_c_r_pthread_create=yes
14347 else
14348 echo "$as_me: failed program was:" >&5
14349 sed 's/^/| /' conftest.$ac_ext >&5
14351 ac_cv_lib_c_r_pthread_create=no
14354 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14355 conftest$ac_exeext conftest.$ac_ext
14356 LIBS=$ac_check_lib_save_LIBS
14358 { echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5
14359 echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6; }
14360 if test $ac_cv_lib_c_r_pthread_create = yes; then
14361 cat >>confdefs.h <<\_ACEOF
14362 #define WITH_THREAD 1
14363 _ACEOF
14365 posix_threads=yes
14366 LIBS="$LIBS -lc_r"
14367 THREADOBJ="Python/thread.o"
14368 else
14370 { echo "$as_me:$LINENO: checking for __pthread_create_system in -lpthread" >&5
14371 echo $ECHO_N "checking for __pthread_create_system in -lpthread... $ECHO_C" >&6; }
14372 if test "${ac_cv_lib_pthread___pthread_create_system+set}" = set; then
14373 echo $ECHO_N "(cached) $ECHO_C" >&6
14374 else
14375 ac_check_lib_save_LIBS=$LIBS
14376 LIBS="-lpthread $LIBS"
14377 cat >conftest.$ac_ext <<_ACEOF
14378 /* confdefs.h. */
14379 _ACEOF
14380 cat confdefs.h >>conftest.$ac_ext
14381 cat >>conftest.$ac_ext <<_ACEOF
14382 /* end confdefs.h. */
14384 /* Override any GCC internal prototype to avoid an error.
14385 Use char because int might match the return type of a GCC
14386 builtin and then its argument prototype would still apply. */
14387 #ifdef __cplusplus
14388 extern "C"
14389 #endif
14390 char __pthread_create_system ();
14392 main ()
14394 return __pthread_create_system ();
14396 return 0;
14398 _ACEOF
14399 rm -f conftest.$ac_objext conftest$ac_exeext
14400 if { (ac_try="$ac_link"
14401 case "(($ac_try" in
14402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14403 *) ac_try_echo=$ac_try;;
14404 esac
14405 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14406 (eval "$ac_link") 2>conftest.er1
14407 ac_status=$?
14408 grep -v '^ *+' conftest.er1 >conftest.err
14409 rm -f conftest.er1
14410 cat conftest.err >&5
14411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14412 (exit $ac_status); } && {
14413 test -z "$ac_c_werror_flag" ||
14414 test ! -s conftest.err
14415 } && test -s conftest$ac_exeext &&
14416 $as_test_x conftest$ac_exeext; then
14417 ac_cv_lib_pthread___pthread_create_system=yes
14418 else
14419 echo "$as_me: failed program was:" >&5
14420 sed 's/^/| /' conftest.$ac_ext >&5
14422 ac_cv_lib_pthread___pthread_create_system=no
14425 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14426 conftest$ac_exeext conftest.$ac_ext
14427 LIBS=$ac_check_lib_save_LIBS
14429 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread___pthread_create_system" >&5
14430 echo "${ECHO_T}$ac_cv_lib_pthread___pthread_create_system" >&6; }
14431 if test $ac_cv_lib_pthread___pthread_create_system = yes; then
14432 cat >>confdefs.h <<\_ACEOF
14433 #define WITH_THREAD 1
14434 _ACEOF
14436 posix_threads=yes
14437 LIBS="$LIBS -lpthread"
14438 THREADOBJ="Python/thread.o"
14439 else
14441 { echo "$as_me:$LINENO: checking for pthread_create in -lcma" >&5
14442 echo $ECHO_N "checking for pthread_create in -lcma... $ECHO_C" >&6; }
14443 if test "${ac_cv_lib_cma_pthread_create+set}" = set; then
14444 echo $ECHO_N "(cached) $ECHO_C" >&6
14445 else
14446 ac_check_lib_save_LIBS=$LIBS
14447 LIBS="-lcma $LIBS"
14448 cat >conftest.$ac_ext <<_ACEOF
14449 /* confdefs.h. */
14450 _ACEOF
14451 cat confdefs.h >>conftest.$ac_ext
14452 cat >>conftest.$ac_ext <<_ACEOF
14453 /* end confdefs.h. */
14455 /* Override any GCC internal prototype to avoid an error.
14456 Use char because int might match the return type of a GCC
14457 builtin and then its argument prototype would still apply. */
14458 #ifdef __cplusplus
14459 extern "C"
14460 #endif
14461 char pthread_create ();
14463 main ()
14465 return pthread_create ();
14467 return 0;
14469 _ACEOF
14470 rm -f conftest.$ac_objext conftest$ac_exeext
14471 if { (ac_try="$ac_link"
14472 case "(($ac_try" in
14473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14474 *) ac_try_echo=$ac_try;;
14475 esac
14476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14477 (eval "$ac_link") 2>conftest.er1
14478 ac_status=$?
14479 grep -v '^ *+' conftest.er1 >conftest.err
14480 rm -f conftest.er1
14481 cat conftest.err >&5
14482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14483 (exit $ac_status); } && {
14484 test -z "$ac_c_werror_flag" ||
14485 test ! -s conftest.err
14486 } && test -s conftest$ac_exeext &&
14487 $as_test_x conftest$ac_exeext; then
14488 ac_cv_lib_cma_pthread_create=yes
14489 else
14490 echo "$as_me: failed program was:" >&5
14491 sed 's/^/| /' conftest.$ac_ext >&5
14493 ac_cv_lib_cma_pthread_create=no
14496 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14497 conftest$ac_exeext conftest.$ac_ext
14498 LIBS=$ac_check_lib_save_LIBS
14500 { echo "$as_me:$LINENO: result: $ac_cv_lib_cma_pthread_create" >&5
14501 echo "${ECHO_T}$ac_cv_lib_cma_pthread_create" >&6; }
14502 if test $ac_cv_lib_cma_pthread_create = yes; then
14503 cat >>confdefs.h <<\_ACEOF
14504 #define WITH_THREAD 1
14505 _ACEOF
14507 posix_threads=yes
14508 LIBS="$LIBS -lcma"
14509 THREADOBJ="Python/thread.o"
14510 else
14512 USE_THREAD_MODULE="#"
14532 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14533 conftest$ac_exeext conftest.$ac_ext
14543 { echo "$as_me:$LINENO: checking for usconfig in -lmpc" >&5
14544 echo $ECHO_N "checking for usconfig in -lmpc... $ECHO_C" >&6; }
14545 if test "${ac_cv_lib_mpc_usconfig+set}" = set; then
14546 echo $ECHO_N "(cached) $ECHO_C" >&6
14547 else
14548 ac_check_lib_save_LIBS=$LIBS
14549 LIBS="-lmpc $LIBS"
14550 cat >conftest.$ac_ext <<_ACEOF
14551 /* confdefs.h. */
14552 _ACEOF
14553 cat confdefs.h >>conftest.$ac_ext
14554 cat >>conftest.$ac_ext <<_ACEOF
14555 /* end confdefs.h. */
14557 /* Override any GCC internal prototype to avoid an error.
14558 Use char because int might match the return type of a GCC
14559 builtin and then its argument prototype would still apply. */
14560 #ifdef __cplusplus
14561 extern "C"
14562 #endif
14563 char usconfig ();
14565 main ()
14567 return usconfig ();
14569 return 0;
14571 _ACEOF
14572 rm -f conftest.$ac_objext conftest$ac_exeext
14573 if { (ac_try="$ac_link"
14574 case "(($ac_try" in
14575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14576 *) ac_try_echo=$ac_try;;
14577 esac
14578 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14579 (eval "$ac_link") 2>conftest.er1
14580 ac_status=$?
14581 grep -v '^ *+' conftest.er1 >conftest.err
14582 rm -f conftest.er1
14583 cat conftest.err >&5
14584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14585 (exit $ac_status); } && {
14586 test -z "$ac_c_werror_flag" ||
14587 test ! -s conftest.err
14588 } && test -s conftest$ac_exeext &&
14589 $as_test_x conftest$ac_exeext; then
14590 ac_cv_lib_mpc_usconfig=yes
14591 else
14592 echo "$as_me: failed program was:" >&5
14593 sed 's/^/| /' conftest.$ac_ext >&5
14595 ac_cv_lib_mpc_usconfig=no
14598 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14599 conftest$ac_exeext conftest.$ac_ext
14600 LIBS=$ac_check_lib_save_LIBS
14602 { echo "$as_me:$LINENO: result: $ac_cv_lib_mpc_usconfig" >&5
14603 echo "${ECHO_T}$ac_cv_lib_mpc_usconfig" >&6; }
14604 if test $ac_cv_lib_mpc_usconfig = yes; then
14605 cat >>confdefs.h <<\_ACEOF
14606 #define WITH_THREAD 1
14607 _ACEOF
14609 LIBS="$LIBS -lmpc"
14610 THREADOBJ="Python/thread.o"
14611 USE_THREAD_MODULE=""
14615 if test "$posix_threads" != "yes"; then
14616 { echo "$as_me:$LINENO: checking for thr_create in -lthread" >&5
14617 echo $ECHO_N "checking for thr_create in -lthread... $ECHO_C" >&6; }
14618 if test "${ac_cv_lib_thread_thr_create+set}" = set; then
14619 echo $ECHO_N "(cached) $ECHO_C" >&6
14620 else
14621 ac_check_lib_save_LIBS=$LIBS
14622 LIBS="-lthread $LIBS"
14623 cat >conftest.$ac_ext <<_ACEOF
14624 /* confdefs.h. */
14625 _ACEOF
14626 cat confdefs.h >>conftest.$ac_ext
14627 cat >>conftest.$ac_ext <<_ACEOF
14628 /* end confdefs.h. */
14630 /* Override any GCC internal prototype to avoid an error.
14631 Use char because int might match the return type of a GCC
14632 builtin and then its argument prototype would still apply. */
14633 #ifdef __cplusplus
14634 extern "C"
14635 #endif
14636 char thr_create ();
14638 main ()
14640 return thr_create ();
14642 return 0;
14644 _ACEOF
14645 rm -f conftest.$ac_objext conftest$ac_exeext
14646 if { (ac_try="$ac_link"
14647 case "(($ac_try" in
14648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14649 *) ac_try_echo=$ac_try;;
14650 esac
14651 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14652 (eval "$ac_link") 2>conftest.er1
14653 ac_status=$?
14654 grep -v '^ *+' conftest.er1 >conftest.err
14655 rm -f conftest.er1
14656 cat conftest.err >&5
14657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14658 (exit $ac_status); } && {
14659 test -z "$ac_c_werror_flag" ||
14660 test ! -s conftest.err
14661 } && test -s conftest$ac_exeext &&
14662 $as_test_x conftest$ac_exeext; then
14663 ac_cv_lib_thread_thr_create=yes
14664 else
14665 echo "$as_me: failed program was:" >&5
14666 sed 's/^/| /' conftest.$ac_ext >&5
14668 ac_cv_lib_thread_thr_create=no
14671 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14672 conftest$ac_exeext conftest.$ac_ext
14673 LIBS=$ac_check_lib_save_LIBS
14675 { echo "$as_me:$LINENO: result: $ac_cv_lib_thread_thr_create" >&5
14676 echo "${ECHO_T}$ac_cv_lib_thread_thr_create" >&6; }
14677 if test $ac_cv_lib_thread_thr_create = yes; then
14678 cat >>confdefs.h <<\_ACEOF
14679 #define WITH_THREAD 1
14680 _ACEOF
14682 LIBS="$LIBS -lthread"
14683 THREADOBJ="Python/thread.o"
14684 USE_THREAD_MODULE=""
14689 if test "$USE_THREAD_MODULE" != "#"
14690 then
14691 # If the above checks didn't disable threads, (at least) OSF1
14692 # needs this '-threads' argument during linking.
14693 case $ac_sys_system in
14694 OSF1) LDLAST=-threads;;
14695 esac
14699 if test "$posix_threads" = "yes"; then
14700 if test "$unistd_defines_pthreads" = "no"; then
14702 cat >>confdefs.h <<\_ACEOF
14703 #define _POSIX_THREADS 1
14704 _ACEOF
14708 # Bug 662787: Using semaphores causes unexplicable hangs on Solaris 8.
14709 case $ac_sys_system/$ac_sys_release in
14710 SunOS/5.6)
14711 cat >>confdefs.h <<\_ACEOF
14712 #define HAVE_PTHREAD_DESTRUCTOR 1
14713 _ACEOF
14716 SunOS/5.8)
14717 cat >>confdefs.h <<\_ACEOF
14718 #define HAVE_BROKEN_POSIX_SEMAPHORES 1
14719 _ACEOF
14722 AIX/5)
14723 cat >>confdefs.h <<\_ACEOF
14724 #define HAVE_BROKEN_POSIX_SEMAPHORES 1
14725 _ACEOF
14728 esac
14730 { echo "$as_me:$LINENO: checking if PTHREAD_SCOPE_SYSTEM is supported" >&5
14731 echo $ECHO_N "checking if PTHREAD_SCOPE_SYSTEM is supported... $ECHO_C" >&6; }
14732 if test "${ac_cv_pthread_system_supported+set}" = set; then
14733 echo $ECHO_N "(cached) $ECHO_C" >&6
14734 else
14735 if test "$cross_compiling" = yes; then
14736 ac_cv_pthread_system_supported=no
14737 else
14738 cat >conftest.$ac_ext <<_ACEOF
14739 /* confdefs.h. */
14740 _ACEOF
14741 cat confdefs.h >>conftest.$ac_ext
14742 cat >>conftest.$ac_ext <<_ACEOF
14743 /* end confdefs.h. */
14744 #include <pthread.h>
14745 void *foo(void *parm) {
14746 return NULL;
14748 main() {
14749 pthread_attr_t attr;
14750 pthread_t id;
14751 if (pthread_attr_init(&attr)) exit(-1);
14752 if (pthread_attr_setscope(&attr, PTHREAD_SCOPE_SYSTEM)) exit(-1);
14753 if (pthread_create(&id, &attr, foo, NULL)) exit(-1);
14754 exit(0);
14756 _ACEOF
14757 rm -f conftest$ac_exeext
14758 if { (ac_try="$ac_link"
14759 case "(($ac_try" in
14760 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14761 *) ac_try_echo=$ac_try;;
14762 esac
14763 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14764 (eval "$ac_link") 2>&5
14765 ac_status=$?
14766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14767 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14768 { (case "(($ac_try" in
14769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14770 *) ac_try_echo=$ac_try;;
14771 esac
14772 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14773 (eval "$ac_try") 2>&5
14774 ac_status=$?
14775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14776 (exit $ac_status); }; }; then
14777 ac_cv_pthread_system_supported=yes
14778 else
14779 echo "$as_me: program exited with status $ac_status" >&5
14780 echo "$as_me: failed program was:" >&5
14781 sed 's/^/| /' conftest.$ac_ext >&5
14783 ( exit $ac_status )
14784 ac_cv_pthread_system_supported=no
14786 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14793 { echo "$as_me:$LINENO: result: $ac_cv_pthread_system_supported" >&5
14794 echo "${ECHO_T}$ac_cv_pthread_system_supported" >&6; }
14795 if test "$ac_cv_pthread_system_supported" = "yes"; then
14797 cat >>confdefs.h <<\_ACEOF
14798 #define PTHREAD_SYSTEM_SCHED_SUPPORTED 1
14799 _ACEOF
14803 for ac_func in pthread_sigmask
14805 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14806 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14807 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14808 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14809 echo $ECHO_N "(cached) $ECHO_C" >&6
14810 else
14811 cat >conftest.$ac_ext <<_ACEOF
14812 /* confdefs.h. */
14813 _ACEOF
14814 cat confdefs.h >>conftest.$ac_ext
14815 cat >>conftest.$ac_ext <<_ACEOF
14816 /* end confdefs.h. */
14817 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14818 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14819 #define $ac_func innocuous_$ac_func
14821 /* System header to define __stub macros and hopefully few prototypes,
14822 which can conflict with char $ac_func (); below.
14823 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14824 <limits.h> exists even on freestanding compilers. */
14826 #ifdef __STDC__
14827 # include <limits.h>
14828 #else
14829 # include <assert.h>
14830 #endif
14832 #undef $ac_func
14834 /* Override any GCC internal prototype to avoid an error.
14835 Use char because int might match the return type of a GCC
14836 builtin and then its argument prototype would still apply. */
14837 #ifdef __cplusplus
14838 extern "C"
14839 #endif
14840 char $ac_func ();
14841 /* The GNU C library defines this for functions which it implements
14842 to always fail with ENOSYS. Some functions are actually named
14843 something starting with __ and the normal name is an alias. */
14844 #if defined __stub_$ac_func || defined __stub___$ac_func
14845 choke me
14846 #endif
14849 main ()
14851 return $ac_func ();
14853 return 0;
14855 _ACEOF
14856 rm -f conftest.$ac_objext conftest$ac_exeext
14857 if { (ac_try="$ac_link"
14858 case "(($ac_try" in
14859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14860 *) ac_try_echo=$ac_try;;
14861 esac
14862 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14863 (eval "$ac_link") 2>conftest.er1
14864 ac_status=$?
14865 grep -v '^ *+' conftest.er1 >conftest.err
14866 rm -f conftest.er1
14867 cat conftest.err >&5
14868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14869 (exit $ac_status); } && {
14870 test -z "$ac_c_werror_flag" ||
14871 test ! -s conftest.err
14872 } && test -s conftest$ac_exeext &&
14873 $as_test_x conftest$ac_exeext; then
14874 eval "$as_ac_var=yes"
14875 else
14876 echo "$as_me: failed program was:" >&5
14877 sed 's/^/| /' conftest.$ac_ext >&5
14879 eval "$as_ac_var=no"
14882 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14883 conftest$ac_exeext conftest.$ac_ext
14885 ac_res=`eval echo '${'$as_ac_var'}'`
14886 { echo "$as_me:$LINENO: result: $ac_res" >&5
14887 echo "${ECHO_T}$ac_res" >&6; }
14888 if test `eval echo '${'$as_ac_var'}'` = yes; then
14889 cat >>confdefs.h <<_ACEOF
14890 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14891 _ACEOF
14892 case $ac_sys_system in
14893 CYGWIN*)
14895 cat >>confdefs.h <<\_ACEOF
14896 #define HAVE_BROKEN_PTHREAD_SIGMASK 1
14897 _ACEOF
14900 esac
14902 done
14907 # Check for enable-ipv6
14910 { echo "$as_me:$LINENO: checking if --enable-ipv6 is specified" >&5
14911 echo $ECHO_N "checking if --enable-ipv6 is specified... $ECHO_C" >&6; }
14912 # Check whether --enable-ipv6 was given.
14913 if test "${enable_ipv6+set}" = set; then
14914 enableval=$enable_ipv6; case "$enableval" in
14916 { echo "$as_me:$LINENO: result: no" >&5
14917 echo "${ECHO_T}no" >&6; }
14918 ipv6=no
14920 *) { echo "$as_me:$LINENO: result: yes" >&5
14921 echo "${ECHO_T}yes" >&6; }
14922 cat >>confdefs.h <<\_ACEOF
14923 #define ENABLE_IPV6 1
14924 _ACEOF
14926 ipv6=yes
14928 esac
14929 else
14931 if test "$cross_compiling" = yes; then
14932 { echo "$as_me:$LINENO: result: no" >&5
14933 echo "${ECHO_T}no" >&6; }
14934 ipv6=no
14936 else
14937 cat >conftest.$ac_ext <<_ACEOF
14938 /* confdefs.h. */
14939 _ACEOF
14940 cat confdefs.h >>conftest.$ac_ext
14941 cat >>conftest.$ac_ext <<_ACEOF
14942 /* end confdefs.h. */
14943 /* AF_INET6 available check */
14944 #include <sys/types.h>
14945 #include <sys/socket.h>
14946 main()
14948 if (socket(AF_INET6, SOCK_STREAM, 0) < 0)
14949 exit(1);
14950 else
14951 exit(0);
14954 _ACEOF
14955 rm -f conftest$ac_exeext
14956 if { (ac_try="$ac_link"
14957 case "(($ac_try" in
14958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14959 *) ac_try_echo=$ac_try;;
14960 esac
14961 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14962 (eval "$ac_link") 2>&5
14963 ac_status=$?
14964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14965 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14966 { (case "(($ac_try" in
14967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14968 *) ac_try_echo=$ac_try;;
14969 esac
14970 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14971 (eval "$ac_try") 2>&5
14972 ac_status=$?
14973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14974 (exit $ac_status); }; }; then
14975 { echo "$as_me:$LINENO: result: yes" >&5
14976 echo "${ECHO_T}yes" >&6; }
14977 ipv6=yes
14978 else
14979 echo "$as_me: program exited with status $ac_status" >&5
14980 echo "$as_me: failed program was:" >&5
14981 sed 's/^/| /' conftest.$ac_ext >&5
14983 ( exit $ac_status )
14984 { echo "$as_me:$LINENO: result: no" >&5
14985 echo "${ECHO_T}no" >&6; }
14986 ipv6=no
14988 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14993 if test "$ipv6" = "yes"; then
14994 { echo "$as_me:$LINENO: checking if RFC2553 API is available" >&5
14995 echo $ECHO_N "checking if RFC2553 API is available... $ECHO_C" >&6; }
14996 cat >conftest.$ac_ext <<_ACEOF
14997 /* confdefs.h. */
14998 _ACEOF
14999 cat confdefs.h >>conftest.$ac_ext
15000 cat >>conftest.$ac_ext <<_ACEOF
15001 /* end confdefs.h. */
15002 #include <sys/types.h>
15003 #include <netinet/in.h>
15005 main ()
15007 struct sockaddr_in6 x;
15008 x.sin6_scope_id;
15010 return 0;
15012 _ACEOF
15013 rm -f conftest.$ac_objext
15014 if { (ac_try="$ac_compile"
15015 case "(($ac_try" in
15016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15017 *) ac_try_echo=$ac_try;;
15018 esac
15019 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15020 (eval "$ac_compile") 2>conftest.er1
15021 ac_status=$?
15022 grep -v '^ *+' conftest.er1 >conftest.err
15023 rm -f conftest.er1
15024 cat conftest.err >&5
15025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15026 (exit $ac_status); } && {
15027 test -z "$ac_c_werror_flag" ||
15028 test ! -s conftest.err
15029 } && test -s conftest.$ac_objext; then
15030 { echo "$as_me:$LINENO: result: yes" >&5
15031 echo "${ECHO_T}yes" >&6; }
15032 ipv6=yes
15033 else
15034 echo "$as_me: failed program was:" >&5
15035 sed 's/^/| /' conftest.$ac_ext >&5
15037 { echo "$as_me:$LINENO: result: no" >&5
15038 echo "${ECHO_T}no" >&6; }
15039 ipv6=no
15042 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15045 if test "$ipv6" = "yes"; then
15046 cat >>confdefs.h <<\_ACEOF
15047 #define ENABLE_IPV6 1
15048 _ACEOF
15055 ipv6type=unknown
15056 ipv6lib=none
15057 ipv6trylibc=no
15059 if test "$ipv6" = "yes"; then
15060 { echo "$as_me:$LINENO: checking ipv6 stack type" >&5
15061 echo $ECHO_N "checking ipv6 stack type... $ECHO_C" >&6; }
15062 for i in inria kame linux-glibc linux-inet6 solaris toshiba v6d zeta;
15064 case $i in
15065 inria)
15066 cat >conftest.$ac_ext <<_ACEOF
15067 /* confdefs.h. */
15068 _ACEOF
15069 cat confdefs.h >>conftest.$ac_ext
15070 cat >>conftest.$ac_ext <<_ACEOF
15071 /* end confdefs.h. */
15073 #include <netinet/in.h>
15074 #ifdef IPV6_INRIA_VERSION
15076 #endif
15077 _ACEOF
15078 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15079 $EGREP "yes" >/dev/null 2>&1; then
15080 ipv6type=$i
15082 rm -f conftest*
15085 kame)
15086 cat >conftest.$ac_ext <<_ACEOF
15087 /* confdefs.h. */
15088 _ACEOF
15089 cat confdefs.h >>conftest.$ac_ext
15090 cat >>conftest.$ac_ext <<_ACEOF
15091 /* end confdefs.h. */
15093 #include <netinet/in.h>
15094 #ifdef __KAME__
15096 #endif
15097 _ACEOF
15098 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15099 $EGREP "yes" >/dev/null 2>&1; then
15100 ipv6type=$i;
15101 ipv6lib=inet6
15102 ipv6libdir=/usr/local/v6/lib
15103 ipv6trylibc=yes
15105 rm -f conftest*
15108 linux-glibc)
15109 cat >conftest.$ac_ext <<_ACEOF
15110 /* confdefs.h. */
15111 _ACEOF
15112 cat confdefs.h >>conftest.$ac_ext
15113 cat >>conftest.$ac_ext <<_ACEOF
15114 /* end confdefs.h. */
15116 #include <features.h>
15117 #if defined(__GLIBC__) && ((__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2))
15119 #endif
15120 _ACEOF
15121 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15122 $EGREP "yes" >/dev/null 2>&1; then
15123 ipv6type=$i;
15124 ipv6trylibc=yes
15126 rm -f conftest*
15129 linux-inet6)
15130 if test -d /usr/inet6; then
15131 ipv6type=$i
15132 ipv6lib=inet6
15133 ipv6libdir=/usr/inet6/lib
15134 BASECFLAGS="-I/usr/inet6/include $BASECFLAGS"
15137 solaris)
15138 if test -f /etc/netconfig; then
15139 if /usr/xpg4/bin/grep -q tcp6 /etc/netconfig; then
15140 ipv6type=$i
15141 ipv6trylibc=yes
15145 toshiba)
15146 cat >conftest.$ac_ext <<_ACEOF
15147 /* confdefs.h. */
15148 _ACEOF
15149 cat confdefs.h >>conftest.$ac_ext
15150 cat >>conftest.$ac_ext <<_ACEOF
15151 /* end confdefs.h. */
15153 #include <sys/param.h>
15154 #ifdef _TOSHIBA_INET6
15156 #endif
15157 _ACEOF
15158 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15159 $EGREP "yes" >/dev/null 2>&1; then
15160 ipv6type=$i;
15161 ipv6lib=inet6;
15162 ipv6libdir=/usr/local/v6/lib
15164 rm -f conftest*
15167 v6d)
15168 cat >conftest.$ac_ext <<_ACEOF
15169 /* confdefs.h. */
15170 _ACEOF
15171 cat confdefs.h >>conftest.$ac_ext
15172 cat >>conftest.$ac_ext <<_ACEOF
15173 /* end confdefs.h. */
15175 #include </usr/local/v6/include/sys/v6config.h>
15176 #ifdef __V6D__
15178 #endif
15179 _ACEOF
15180 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15181 $EGREP "yes" >/dev/null 2>&1; then
15182 ipv6type=$i;
15183 ipv6lib=v6;
15184 ipv6libdir=/usr/local/v6/lib;
15185 BASECFLAGS="-I/usr/local/v6/include $BASECFLAGS"
15187 rm -f conftest*
15190 zeta)
15191 cat >conftest.$ac_ext <<_ACEOF
15192 /* confdefs.h. */
15193 _ACEOF
15194 cat confdefs.h >>conftest.$ac_ext
15195 cat >>conftest.$ac_ext <<_ACEOF
15196 /* end confdefs.h. */
15198 #include <sys/param.h>
15199 #ifdef _ZETA_MINAMI_INET6
15201 #endif
15202 _ACEOF
15203 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15204 $EGREP "yes" >/dev/null 2>&1; then
15205 ipv6type=$i;
15206 ipv6lib=inet6;
15207 ipv6libdir=/usr/local/v6/lib
15209 rm -f conftest*
15212 esac
15213 if test "$ipv6type" != "unknown"; then
15214 break
15216 done
15217 { echo "$as_me:$LINENO: result: $ipv6type" >&5
15218 echo "${ECHO_T}$ipv6type" >&6; }
15221 if test "$ipv6" = "yes" -a "$ipv6lib" != "none"; then
15222 if test -d $ipv6libdir -a -f $ipv6libdir/lib$ipv6lib.a; then
15223 LIBS="-L$ipv6libdir -l$ipv6lib $LIBS"
15224 echo "using lib$ipv6lib"
15225 else
15226 if test $ipv6trylibc = "yes"; then
15227 echo "using libc"
15228 else
15229 echo 'Fatal: no $ipv6lib library found. cannot continue.'
15230 echo "You need to fetch lib$ipv6lib.a from appropriate"
15231 echo 'ipv6 kit and compile beforehand.'
15232 exit 1
15237 # Check for --with-doc-strings
15238 { echo "$as_me:$LINENO: checking for --with-doc-strings" >&5
15239 echo $ECHO_N "checking for --with-doc-strings... $ECHO_C" >&6; }
15241 # Check whether --with-doc-strings was given.
15242 if test "${with_doc_strings+set}" = set; then
15243 withval=$with_doc_strings;
15247 if test -z "$with_doc_strings"
15248 then with_doc_strings="yes"
15250 if test "$with_doc_strings" != "no"
15251 then
15253 cat >>confdefs.h <<\_ACEOF
15254 #define WITH_DOC_STRINGS 1
15255 _ACEOF
15258 { echo "$as_me:$LINENO: result: $with_doc_strings" >&5
15259 echo "${ECHO_T}$with_doc_strings" >&6; }
15261 # Check for Python-specific malloc support
15262 { echo "$as_me:$LINENO: checking for --with-tsc" >&5
15263 echo $ECHO_N "checking for --with-tsc... $ECHO_C" >&6; }
15265 # Check whether --with-tsc was given.
15266 if test "${with_tsc+set}" = set; then
15267 withval=$with_tsc;
15268 if test "$withval" != no
15269 then
15271 cat >>confdefs.h <<\_ACEOF
15272 #define WITH_TSC 1
15273 _ACEOF
15275 { echo "$as_me:$LINENO: result: yes" >&5
15276 echo "${ECHO_T}yes" >&6; }
15277 else { echo "$as_me:$LINENO: result: no" >&5
15278 echo "${ECHO_T}no" >&6; }
15280 else
15281 { echo "$as_me:$LINENO: result: no" >&5
15282 echo "${ECHO_T}no" >&6; }
15286 # Check for Python-specific malloc support
15287 { echo "$as_me:$LINENO: checking for --with-pymalloc" >&5
15288 echo $ECHO_N "checking for --with-pymalloc... $ECHO_C" >&6; }
15290 # Check whether --with-pymalloc was given.
15291 if test "${with_pymalloc+set}" = set; then
15292 withval=$with_pymalloc;
15296 if test -z "$with_pymalloc"
15297 then with_pymalloc="yes"
15299 if test "$with_pymalloc" != "no"
15300 then
15302 cat >>confdefs.h <<\_ACEOF
15303 #define WITH_PYMALLOC 1
15304 _ACEOF
15307 { echo "$as_me:$LINENO: result: $with_pymalloc" >&5
15308 echo "${ECHO_T}$with_pymalloc" >&6; }
15310 # Check for --with-wctype-functions
15311 { echo "$as_me:$LINENO: checking for --with-wctype-functions" >&5
15312 echo $ECHO_N "checking for --with-wctype-functions... $ECHO_C" >&6; }
15314 # Check whether --with-wctype-functions was given.
15315 if test "${with_wctype_functions+set}" = set; then
15316 withval=$with_wctype_functions;
15317 if test "$withval" != no
15318 then
15320 cat >>confdefs.h <<\_ACEOF
15321 #define WANT_WCTYPE_FUNCTIONS 1
15322 _ACEOF
15324 { echo "$as_me:$LINENO: result: yes" >&5
15325 echo "${ECHO_T}yes" >&6; }
15326 else { echo "$as_me:$LINENO: result: no" >&5
15327 echo "${ECHO_T}no" >&6; }
15329 else
15330 { echo "$as_me:$LINENO: result: no" >&5
15331 echo "${ECHO_T}no" >&6; }
15335 # -I${DLINCLDIR} is added to the compile rule for importdl.o
15337 DLINCLDIR=.
15339 # the dlopen() function means we might want to use dynload_shlib.o. some
15340 # platforms, such as AIX, have dlopen(), but don't want to use it.
15342 for ac_func in dlopen
15344 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15345 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15346 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15347 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15348 echo $ECHO_N "(cached) $ECHO_C" >&6
15349 else
15350 cat >conftest.$ac_ext <<_ACEOF
15351 /* confdefs.h. */
15352 _ACEOF
15353 cat confdefs.h >>conftest.$ac_ext
15354 cat >>conftest.$ac_ext <<_ACEOF
15355 /* end confdefs.h. */
15356 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15357 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15358 #define $ac_func innocuous_$ac_func
15360 /* System header to define __stub macros and hopefully few prototypes,
15361 which can conflict with char $ac_func (); below.
15362 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15363 <limits.h> exists even on freestanding compilers. */
15365 #ifdef __STDC__
15366 # include <limits.h>
15367 #else
15368 # include <assert.h>
15369 #endif
15371 #undef $ac_func
15373 /* Override any GCC internal prototype to avoid an error.
15374 Use char because int might match the return type of a GCC
15375 builtin and then its argument prototype would still apply. */
15376 #ifdef __cplusplus
15377 extern "C"
15378 #endif
15379 char $ac_func ();
15380 /* The GNU C library defines this for functions which it implements
15381 to always fail with ENOSYS. Some functions are actually named
15382 something starting with __ and the normal name is an alias. */
15383 #if defined __stub_$ac_func || defined __stub___$ac_func
15384 choke me
15385 #endif
15388 main ()
15390 return $ac_func ();
15392 return 0;
15394 _ACEOF
15395 rm -f conftest.$ac_objext conftest$ac_exeext
15396 if { (ac_try="$ac_link"
15397 case "(($ac_try" in
15398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15399 *) ac_try_echo=$ac_try;;
15400 esac
15401 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15402 (eval "$ac_link") 2>conftest.er1
15403 ac_status=$?
15404 grep -v '^ *+' conftest.er1 >conftest.err
15405 rm -f conftest.er1
15406 cat conftest.err >&5
15407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15408 (exit $ac_status); } && {
15409 test -z "$ac_c_werror_flag" ||
15410 test ! -s conftest.err
15411 } && test -s conftest$ac_exeext &&
15412 $as_test_x conftest$ac_exeext; then
15413 eval "$as_ac_var=yes"
15414 else
15415 echo "$as_me: failed program was:" >&5
15416 sed 's/^/| /' conftest.$ac_ext >&5
15418 eval "$as_ac_var=no"
15421 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15422 conftest$ac_exeext conftest.$ac_ext
15424 ac_res=`eval echo '${'$as_ac_var'}'`
15425 { echo "$as_me:$LINENO: result: $ac_res" >&5
15426 echo "${ECHO_T}$ac_res" >&6; }
15427 if test `eval echo '${'$as_ac_var'}'` = yes; then
15428 cat >>confdefs.h <<_ACEOF
15429 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15430 _ACEOF
15433 done
15436 # DYNLOADFILE specifies which dynload_*.o file we will use for dynamic
15437 # loading of modules.
15439 { echo "$as_me:$LINENO: checking DYNLOADFILE" >&5
15440 echo $ECHO_N "checking DYNLOADFILE... $ECHO_C" >&6; }
15441 if test -z "$DYNLOADFILE"
15442 then
15443 case $ac_sys_system/$ac_sys_release in
15444 AIX*) # Use dynload_shlib.c and dlopen() if we have it; otherwise dynload_aix.c
15445 if test "$ac_cv_func_dlopen" = yes
15446 then DYNLOADFILE="dynload_shlib.o"
15447 else DYNLOADFILE="dynload_aix.o"
15450 BeOS*) DYNLOADFILE="dynload_beos.o";;
15451 hp*|HP*) DYNLOADFILE="dynload_hpux.o";;
15452 # Use dynload_next.c only on 10.2 and below, which don't have native dlopen()
15453 Darwin/[0156]\..*) DYNLOADFILE="dynload_next.o";;
15454 atheos*) DYNLOADFILE="dynload_atheos.o";;
15456 # use dynload_shlib.c and dlopen() if we have it; otherwise stub
15457 # out any dynamic loading
15458 if test "$ac_cv_func_dlopen" = yes
15459 then DYNLOADFILE="dynload_shlib.o"
15460 else DYNLOADFILE="dynload_stub.o"
15463 esac
15465 { echo "$as_me:$LINENO: result: $DYNLOADFILE" >&5
15466 echo "${ECHO_T}$DYNLOADFILE" >&6; }
15467 if test "$DYNLOADFILE" != "dynload_stub.o"
15468 then
15470 cat >>confdefs.h <<\_ACEOF
15471 #define HAVE_DYNAMIC_LOADING 1
15472 _ACEOF
15476 # MACHDEP_OBJS can be set to platform-specific object files needed by Python
15479 { echo "$as_me:$LINENO: checking MACHDEP_OBJS" >&5
15480 echo $ECHO_N "checking MACHDEP_OBJS... $ECHO_C" >&6; }
15481 if test -z "$MACHDEP_OBJS"
15482 then
15483 MACHDEP_OBJS=$extra_machdep_objs
15484 else
15485 MACHDEP_OBJS="$MACHDEP_OBJS $extra_machdep_objs"
15487 { echo "$as_me:$LINENO: result: MACHDEP_OBJS" >&5
15488 echo "${ECHO_T}MACHDEP_OBJS" >&6; }
15490 # checks for library functions
15572 for ac_func in alarm setitimer getitimer bind_textdomain_codeset chown \
15573 clock confstr ctermid execv fchmod fchown fork fpathconf ftime ftruncate \
15574 gai_strerror getgroups getlogin getloadavg getpeername getpgid getpid \
15575 getpriority getpwent getspnam getspent getsid getwd \
15576 kill killpg lchmod lchown lstat mkfifo mknod mktime \
15577 mremap nice pathconf pause plock poll pthread_init \
15578 putenv readlink realpath \
15579 select setegid seteuid setgid \
15580 setlocale setregid setreuid setsid setpgid setpgrp setuid setvbuf snprintf \
15581 sigaction siginterrupt sigrelse strftime \
15582 sysconf tcgetpgrp tcsetpgrp tempnam timegm times tmpfile tmpnam tmpnam_r \
15583 truncate uname unsetenv utimes waitpid wait3 wait4 wcscoll _getpty
15585 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15586 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15587 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15588 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15589 echo $ECHO_N "(cached) $ECHO_C" >&6
15590 else
15591 cat >conftest.$ac_ext <<_ACEOF
15592 /* confdefs.h. */
15593 _ACEOF
15594 cat confdefs.h >>conftest.$ac_ext
15595 cat >>conftest.$ac_ext <<_ACEOF
15596 /* end confdefs.h. */
15597 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15598 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15599 #define $ac_func innocuous_$ac_func
15601 /* System header to define __stub macros and hopefully few prototypes,
15602 which can conflict with char $ac_func (); below.
15603 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15604 <limits.h> exists even on freestanding compilers. */
15606 #ifdef __STDC__
15607 # include <limits.h>
15608 #else
15609 # include <assert.h>
15610 #endif
15612 #undef $ac_func
15614 /* Override any GCC internal prototype to avoid an error.
15615 Use char because int might match the return type of a GCC
15616 builtin and then its argument prototype would still apply. */
15617 #ifdef __cplusplus
15618 extern "C"
15619 #endif
15620 char $ac_func ();
15621 /* The GNU C library defines this for functions which it implements
15622 to always fail with ENOSYS. Some functions are actually named
15623 something starting with __ and the normal name is an alias. */
15624 #if defined __stub_$ac_func || defined __stub___$ac_func
15625 choke me
15626 #endif
15629 main ()
15631 return $ac_func ();
15633 return 0;
15635 _ACEOF
15636 rm -f conftest.$ac_objext conftest$ac_exeext
15637 if { (ac_try="$ac_link"
15638 case "(($ac_try" in
15639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15640 *) ac_try_echo=$ac_try;;
15641 esac
15642 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15643 (eval "$ac_link") 2>conftest.er1
15644 ac_status=$?
15645 grep -v '^ *+' conftest.er1 >conftest.err
15646 rm -f conftest.er1
15647 cat conftest.err >&5
15648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15649 (exit $ac_status); } && {
15650 test -z "$ac_c_werror_flag" ||
15651 test ! -s conftest.err
15652 } && test -s conftest$ac_exeext &&
15653 $as_test_x conftest$ac_exeext; then
15654 eval "$as_ac_var=yes"
15655 else
15656 echo "$as_me: failed program was:" >&5
15657 sed 's/^/| /' conftest.$ac_ext >&5
15659 eval "$as_ac_var=no"
15662 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15663 conftest$ac_exeext conftest.$ac_ext
15665 ac_res=`eval echo '${'$as_ac_var'}'`
15666 { echo "$as_me:$LINENO: result: $ac_res" >&5
15667 echo "${ECHO_T}$ac_res" >&6; }
15668 if test `eval echo '${'$as_ac_var'}'` = yes; then
15669 cat >>confdefs.h <<_ACEOF
15670 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15671 _ACEOF
15674 done
15677 # For some functions, having a definition is not sufficient, since
15678 # we want to take their address.
15679 { echo "$as_me:$LINENO: checking for chroot" >&5
15680 echo $ECHO_N "checking for chroot... $ECHO_C" >&6; }
15681 cat >conftest.$ac_ext <<_ACEOF
15682 /* confdefs.h. */
15683 _ACEOF
15684 cat confdefs.h >>conftest.$ac_ext
15685 cat >>conftest.$ac_ext <<_ACEOF
15686 /* end confdefs.h. */
15687 #include <unistd.h>
15689 main ()
15691 void *x=chroot
15693 return 0;
15695 _ACEOF
15696 rm -f conftest.$ac_objext
15697 if { (ac_try="$ac_compile"
15698 case "(($ac_try" in
15699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15700 *) ac_try_echo=$ac_try;;
15701 esac
15702 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15703 (eval "$ac_compile") 2>conftest.er1
15704 ac_status=$?
15705 grep -v '^ *+' conftest.er1 >conftest.err
15706 rm -f conftest.er1
15707 cat conftest.err >&5
15708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15709 (exit $ac_status); } && {
15710 test -z "$ac_c_werror_flag" ||
15711 test ! -s conftest.err
15712 } && test -s conftest.$ac_objext; then
15714 cat >>confdefs.h <<\_ACEOF
15715 #define HAVE_CHROOT 1
15716 _ACEOF
15718 { echo "$as_me:$LINENO: result: yes" >&5
15719 echo "${ECHO_T}yes" >&6; }
15720 else
15721 echo "$as_me: failed program was:" >&5
15722 sed 's/^/| /' conftest.$ac_ext >&5
15724 { echo "$as_me:$LINENO: result: no" >&5
15725 echo "${ECHO_T}no" >&6; }
15729 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15730 { echo "$as_me:$LINENO: checking for link" >&5
15731 echo $ECHO_N "checking for link... $ECHO_C" >&6; }
15732 cat >conftest.$ac_ext <<_ACEOF
15733 /* confdefs.h. */
15734 _ACEOF
15735 cat confdefs.h >>conftest.$ac_ext
15736 cat >>conftest.$ac_ext <<_ACEOF
15737 /* end confdefs.h. */
15738 #include <unistd.h>
15740 main ()
15742 void *x=link
15744 return 0;
15746 _ACEOF
15747 rm -f conftest.$ac_objext
15748 if { (ac_try="$ac_compile"
15749 case "(($ac_try" in
15750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15751 *) ac_try_echo=$ac_try;;
15752 esac
15753 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15754 (eval "$ac_compile") 2>conftest.er1
15755 ac_status=$?
15756 grep -v '^ *+' conftest.er1 >conftest.err
15757 rm -f conftest.er1
15758 cat conftest.err >&5
15759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15760 (exit $ac_status); } && {
15761 test -z "$ac_c_werror_flag" ||
15762 test ! -s conftest.err
15763 } && test -s conftest.$ac_objext; then
15765 cat >>confdefs.h <<\_ACEOF
15766 #define HAVE_LINK 1
15767 _ACEOF
15769 { echo "$as_me:$LINENO: result: yes" >&5
15770 echo "${ECHO_T}yes" >&6; }
15771 else
15772 echo "$as_me: failed program was:" >&5
15773 sed 's/^/| /' conftest.$ac_ext >&5
15775 { echo "$as_me:$LINENO: result: no" >&5
15776 echo "${ECHO_T}no" >&6; }
15780 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15781 { echo "$as_me:$LINENO: checking for symlink" >&5
15782 echo $ECHO_N "checking for symlink... $ECHO_C" >&6; }
15783 cat >conftest.$ac_ext <<_ACEOF
15784 /* confdefs.h. */
15785 _ACEOF
15786 cat confdefs.h >>conftest.$ac_ext
15787 cat >>conftest.$ac_ext <<_ACEOF
15788 /* end confdefs.h. */
15789 #include <unistd.h>
15791 main ()
15793 void *x=symlink
15795 return 0;
15797 _ACEOF
15798 rm -f conftest.$ac_objext
15799 if { (ac_try="$ac_compile"
15800 case "(($ac_try" in
15801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15802 *) ac_try_echo=$ac_try;;
15803 esac
15804 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15805 (eval "$ac_compile") 2>conftest.er1
15806 ac_status=$?
15807 grep -v '^ *+' conftest.er1 >conftest.err
15808 rm -f conftest.er1
15809 cat conftest.err >&5
15810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15811 (exit $ac_status); } && {
15812 test -z "$ac_c_werror_flag" ||
15813 test ! -s conftest.err
15814 } && test -s conftest.$ac_objext; then
15816 cat >>confdefs.h <<\_ACEOF
15817 #define HAVE_SYMLINK 1
15818 _ACEOF
15820 { echo "$as_me:$LINENO: result: yes" >&5
15821 echo "${ECHO_T}yes" >&6; }
15822 else
15823 echo "$as_me: failed program was:" >&5
15824 sed 's/^/| /' conftest.$ac_ext >&5
15826 { echo "$as_me:$LINENO: result: no" >&5
15827 echo "${ECHO_T}no" >&6; }
15831 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15832 { echo "$as_me:$LINENO: checking for fchdir" >&5
15833 echo $ECHO_N "checking for fchdir... $ECHO_C" >&6; }
15834 cat >conftest.$ac_ext <<_ACEOF
15835 /* confdefs.h. */
15836 _ACEOF
15837 cat confdefs.h >>conftest.$ac_ext
15838 cat >>conftest.$ac_ext <<_ACEOF
15839 /* end confdefs.h. */
15840 #include <unistd.h>
15842 main ()
15844 void *x=fchdir
15846 return 0;
15848 _ACEOF
15849 rm -f conftest.$ac_objext
15850 if { (ac_try="$ac_compile"
15851 case "(($ac_try" in
15852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15853 *) ac_try_echo=$ac_try;;
15854 esac
15855 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15856 (eval "$ac_compile") 2>conftest.er1
15857 ac_status=$?
15858 grep -v '^ *+' conftest.er1 >conftest.err
15859 rm -f conftest.er1
15860 cat conftest.err >&5
15861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15862 (exit $ac_status); } && {
15863 test -z "$ac_c_werror_flag" ||
15864 test ! -s conftest.err
15865 } && test -s conftest.$ac_objext; then
15867 cat >>confdefs.h <<\_ACEOF
15868 #define HAVE_FCHDIR 1
15869 _ACEOF
15871 { echo "$as_me:$LINENO: result: yes" >&5
15872 echo "${ECHO_T}yes" >&6; }
15873 else
15874 echo "$as_me: failed program was:" >&5
15875 sed 's/^/| /' conftest.$ac_ext >&5
15877 { echo "$as_me:$LINENO: result: no" >&5
15878 echo "${ECHO_T}no" >&6; }
15882 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15883 { echo "$as_me:$LINENO: checking for fsync" >&5
15884 echo $ECHO_N "checking for fsync... $ECHO_C" >&6; }
15885 cat >conftest.$ac_ext <<_ACEOF
15886 /* confdefs.h. */
15887 _ACEOF
15888 cat confdefs.h >>conftest.$ac_ext
15889 cat >>conftest.$ac_ext <<_ACEOF
15890 /* end confdefs.h. */
15891 #include <unistd.h>
15893 main ()
15895 void *x=fsync
15897 return 0;
15899 _ACEOF
15900 rm -f conftest.$ac_objext
15901 if { (ac_try="$ac_compile"
15902 case "(($ac_try" in
15903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15904 *) ac_try_echo=$ac_try;;
15905 esac
15906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15907 (eval "$ac_compile") 2>conftest.er1
15908 ac_status=$?
15909 grep -v '^ *+' conftest.er1 >conftest.err
15910 rm -f conftest.er1
15911 cat conftest.err >&5
15912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15913 (exit $ac_status); } && {
15914 test -z "$ac_c_werror_flag" ||
15915 test ! -s conftest.err
15916 } && test -s conftest.$ac_objext; then
15918 cat >>confdefs.h <<\_ACEOF
15919 #define HAVE_FSYNC 1
15920 _ACEOF
15922 { echo "$as_me:$LINENO: result: yes" >&5
15923 echo "${ECHO_T}yes" >&6; }
15924 else
15925 echo "$as_me: failed program was:" >&5
15926 sed 's/^/| /' conftest.$ac_ext >&5
15928 { echo "$as_me:$LINENO: result: no" >&5
15929 echo "${ECHO_T}no" >&6; }
15933 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15934 { echo "$as_me:$LINENO: checking for fdatasync" >&5
15935 echo $ECHO_N "checking for fdatasync... $ECHO_C" >&6; }
15936 cat >conftest.$ac_ext <<_ACEOF
15937 /* confdefs.h. */
15938 _ACEOF
15939 cat confdefs.h >>conftest.$ac_ext
15940 cat >>conftest.$ac_ext <<_ACEOF
15941 /* end confdefs.h. */
15942 #include <unistd.h>
15944 main ()
15946 void *x=fdatasync
15948 return 0;
15950 _ACEOF
15951 rm -f conftest.$ac_objext
15952 if { (ac_try="$ac_compile"
15953 case "(($ac_try" in
15954 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15955 *) ac_try_echo=$ac_try;;
15956 esac
15957 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15958 (eval "$ac_compile") 2>conftest.er1
15959 ac_status=$?
15960 grep -v '^ *+' conftest.er1 >conftest.err
15961 rm -f conftest.er1
15962 cat conftest.err >&5
15963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15964 (exit $ac_status); } && {
15965 test -z "$ac_c_werror_flag" ||
15966 test ! -s conftest.err
15967 } && test -s conftest.$ac_objext; then
15969 cat >>confdefs.h <<\_ACEOF
15970 #define HAVE_FDATASYNC 1
15971 _ACEOF
15973 { echo "$as_me:$LINENO: result: yes" >&5
15974 echo "${ECHO_T}yes" >&6; }
15975 else
15976 echo "$as_me: failed program was:" >&5
15977 sed 's/^/| /' conftest.$ac_ext >&5
15979 { echo "$as_me:$LINENO: result: no" >&5
15980 echo "${ECHO_T}no" >&6; }
15984 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15985 { echo "$as_me:$LINENO: checking for epoll" >&5
15986 echo $ECHO_N "checking for epoll... $ECHO_C" >&6; }
15987 cat >conftest.$ac_ext <<_ACEOF
15988 /* confdefs.h. */
15989 _ACEOF
15990 cat confdefs.h >>conftest.$ac_ext
15991 cat >>conftest.$ac_ext <<_ACEOF
15992 /* end confdefs.h. */
15993 #include <sys/epoll.h>
15995 main ()
15997 void *x=epoll_create
15999 return 0;
16001 _ACEOF
16002 rm -f conftest.$ac_objext
16003 if { (ac_try="$ac_compile"
16004 case "(($ac_try" in
16005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16006 *) ac_try_echo=$ac_try;;
16007 esac
16008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16009 (eval "$ac_compile") 2>conftest.er1
16010 ac_status=$?
16011 grep -v '^ *+' conftest.er1 >conftest.err
16012 rm -f conftest.er1
16013 cat conftest.err >&5
16014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16015 (exit $ac_status); } && {
16016 test -z "$ac_c_werror_flag" ||
16017 test ! -s conftest.err
16018 } && test -s conftest.$ac_objext; then
16020 cat >>confdefs.h <<\_ACEOF
16021 #define HAVE_EPOLL 1
16022 _ACEOF
16024 { echo "$as_me:$LINENO: result: yes" >&5
16025 echo "${ECHO_T}yes" >&6; }
16026 else
16027 echo "$as_me: failed program was:" >&5
16028 sed 's/^/| /' conftest.$ac_ext >&5
16030 { echo "$as_me:$LINENO: result: no" >&5
16031 echo "${ECHO_T}no" >&6; }
16035 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16036 { echo "$as_me:$LINENO: checking for kqueue" >&5
16037 echo $ECHO_N "checking for kqueue... $ECHO_C" >&6; }
16038 cat >conftest.$ac_ext <<_ACEOF
16039 /* confdefs.h. */
16040 _ACEOF
16041 cat confdefs.h >>conftest.$ac_ext
16042 cat >>conftest.$ac_ext <<_ACEOF
16043 /* end confdefs.h. */
16045 #include <sys/types.h>
16046 #include <sys/event.h>
16049 main ()
16051 int x=kqueue()
16053 return 0;
16055 _ACEOF
16056 rm -f conftest.$ac_objext
16057 if { (ac_try="$ac_compile"
16058 case "(($ac_try" in
16059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16060 *) ac_try_echo=$ac_try;;
16061 esac
16062 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16063 (eval "$ac_compile") 2>conftest.er1
16064 ac_status=$?
16065 grep -v '^ *+' conftest.er1 >conftest.err
16066 rm -f conftest.er1
16067 cat conftest.err >&5
16068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16069 (exit $ac_status); } && {
16070 test -z "$ac_c_werror_flag" ||
16071 test ! -s conftest.err
16072 } && test -s conftest.$ac_objext; then
16074 cat >>confdefs.h <<\_ACEOF
16075 #define HAVE_KQUEUE 1
16076 _ACEOF
16078 { echo "$as_me:$LINENO: result: yes" >&5
16079 echo "${ECHO_T}yes" >&6; }
16080 else
16081 echo "$as_me: failed program was:" >&5
16082 sed 's/^/| /' conftest.$ac_ext >&5
16084 { echo "$as_me:$LINENO: result: no" >&5
16085 echo "${ECHO_T}no" >&6; }
16089 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16090 # On some systems (eg. FreeBSD 5), we would find a definition of the
16091 # functions ctermid_r, setgroups in the library, but no prototype
16092 # (e.g. because we use _XOPEN_SOURCE). See whether we can take their
16093 # address to avoid compiler warnings and potential miscompilations
16094 # because of the missing prototypes.
16096 { echo "$as_me:$LINENO: checking for ctermid_r" >&5
16097 echo $ECHO_N "checking for ctermid_r... $ECHO_C" >&6; }
16098 cat >conftest.$ac_ext <<_ACEOF
16099 /* confdefs.h. */
16100 _ACEOF
16101 cat confdefs.h >>conftest.$ac_ext
16102 cat >>conftest.$ac_ext <<_ACEOF
16103 /* end confdefs.h. */
16105 #include "confdefs.h"
16106 #include <stdio.h>
16109 main ()
16111 void* p = ctermid_r
16113 return 0;
16115 _ACEOF
16116 rm -f conftest.$ac_objext
16117 if { (ac_try="$ac_compile"
16118 case "(($ac_try" in
16119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16120 *) ac_try_echo=$ac_try;;
16121 esac
16122 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16123 (eval "$ac_compile") 2>conftest.er1
16124 ac_status=$?
16125 grep -v '^ *+' conftest.er1 >conftest.err
16126 rm -f conftest.er1
16127 cat conftest.err >&5
16128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16129 (exit $ac_status); } && {
16130 test -z "$ac_c_werror_flag" ||
16131 test ! -s conftest.err
16132 } && test -s conftest.$ac_objext; then
16134 cat >>confdefs.h <<\_ACEOF
16135 #define HAVE_CTERMID_R 1
16136 _ACEOF
16138 { echo "$as_me:$LINENO: result: yes" >&5
16139 echo "${ECHO_T}yes" >&6; }
16140 else
16141 echo "$as_me: failed program was:" >&5
16142 sed 's/^/| /' conftest.$ac_ext >&5
16144 { echo "$as_me:$LINENO: result: no" >&5
16145 echo "${ECHO_T}no" >&6; }
16149 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16151 { echo "$as_me:$LINENO: checking for flock" >&5
16152 echo $ECHO_N "checking for flock... $ECHO_C" >&6; }
16153 cat >conftest.$ac_ext <<_ACEOF
16154 /* confdefs.h. */
16155 _ACEOF
16156 cat confdefs.h >>conftest.$ac_ext
16157 cat >>conftest.$ac_ext <<_ACEOF
16158 /* end confdefs.h. */
16160 #include "confdefs.h"
16161 #include <sys/file.h>
16164 main ()
16166 void* p = flock
16168 return 0;
16170 _ACEOF
16171 rm -f conftest.$ac_objext
16172 if { (ac_try="$ac_compile"
16173 case "(($ac_try" in
16174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16175 *) ac_try_echo=$ac_try;;
16176 esac
16177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16178 (eval "$ac_compile") 2>conftest.er1
16179 ac_status=$?
16180 grep -v '^ *+' conftest.er1 >conftest.err
16181 rm -f conftest.er1
16182 cat conftest.err >&5
16183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16184 (exit $ac_status); } && {
16185 test -z "$ac_c_werror_flag" ||
16186 test ! -s conftest.err
16187 } && test -s conftest.$ac_objext; then
16189 cat >>confdefs.h <<\_ACEOF
16190 #define HAVE_FLOCK 1
16191 _ACEOF
16193 { echo "$as_me:$LINENO: result: yes" >&5
16194 echo "${ECHO_T}yes" >&6; }
16195 else
16196 echo "$as_me: failed program was:" >&5
16197 sed 's/^/| /' conftest.$ac_ext >&5
16199 { echo "$as_me:$LINENO: result: no" >&5
16200 echo "${ECHO_T}no" >&6; }
16204 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16206 { echo "$as_me:$LINENO: checking for getpagesize" >&5
16207 echo $ECHO_N "checking for getpagesize... $ECHO_C" >&6; }
16208 cat >conftest.$ac_ext <<_ACEOF
16209 /* confdefs.h. */
16210 _ACEOF
16211 cat confdefs.h >>conftest.$ac_ext
16212 cat >>conftest.$ac_ext <<_ACEOF
16213 /* end confdefs.h. */
16215 #include "confdefs.h"
16216 #include <unistd.h>
16219 main ()
16221 void* p = getpagesize
16223 return 0;
16225 _ACEOF
16226 rm -f conftest.$ac_objext
16227 if { (ac_try="$ac_compile"
16228 case "(($ac_try" in
16229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16230 *) ac_try_echo=$ac_try;;
16231 esac
16232 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16233 (eval "$ac_compile") 2>conftest.er1
16234 ac_status=$?
16235 grep -v '^ *+' conftest.er1 >conftest.err
16236 rm -f conftest.er1
16237 cat conftest.err >&5
16238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16239 (exit $ac_status); } && {
16240 test -z "$ac_c_werror_flag" ||
16241 test ! -s conftest.err
16242 } && test -s conftest.$ac_objext; then
16244 cat >>confdefs.h <<\_ACEOF
16245 #define HAVE_GETPAGESIZE 1
16246 _ACEOF
16248 { echo "$as_me:$LINENO: result: yes" >&5
16249 echo "${ECHO_T}yes" >&6; }
16250 else
16251 echo "$as_me: failed program was:" >&5
16252 sed 's/^/| /' conftest.$ac_ext >&5
16254 { echo "$as_me:$LINENO: result: no" >&5
16255 echo "${ECHO_T}no" >&6; }
16259 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16261 for ac_prog in true
16263 # Extract the first word of "$ac_prog", so it can be a program name with args.
16264 set dummy $ac_prog; ac_word=$2
16265 { echo "$as_me:$LINENO: checking for $ac_word" >&5
16266 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
16267 if test "${ac_cv_prog_TRUE+set}" = set; then
16268 echo $ECHO_N "(cached) $ECHO_C" >&6
16269 else
16270 if test -n "$TRUE"; then
16271 ac_cv_prog_TRUE="$TRUE" # Let the user override the test.
16272 else
16273 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16274 for as_dir in $PATH
16276 IFS=$as_save_IFS
16277 test -z "$as_dir" && as_dir=.
16278 for ac_exec_ext in '' $ac_executable_extensions; do
16279 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16280 ac_cv_prog_TRUE="$ac_prog"
16281 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16282 break 2
16284 done
16285 done
16286 IFS=$as_save_IFS
16290 TRUE=$ac_cv_prog_TRUE
16291 if test -n "$TRUE"; then
16292 { echo "$as_me:$LINENO: result: $TRUE" >&5
16293 echo "${ECHO_T}$TRUE" >&6; }
16294 else
16295 { echo "$as_me:$LINENO: result: no" >&5
16296 echo "${ECHO_T}no" >&6; }
16300 test -n "$TRUE" && break
16301 done
16302 test -n "$TRUE" || TRUE="/bin/true"
16305 { echo "$as_me:$LINENO: checking for inet_aton in -lc" >&5
16306 echo $ECHO_N "checking for inet_aton in -lc... $ECHO_C" >&6; }
16307 if test "${ac_cv_lib_c_inet_aton+set}" = set; then
16308 echo $ECHO_N "(cached) $ECHO_C" >&6
16309 else
16310 ac_check_lib_save_LIBS=$LIBS
16311 LIBS="-lc $LIBS"
16312 cat >conftest.$ac_ext <<_ACEOF
16313 /* confdefs.h. */
16314 _ACEOF
16315 cat confdefs.h >>conftest.$ac_ext
16316 cat >>conftest.$ac_ext <<_ACEOF
16317 /* end confdefs.h. */
16319 /* Override any GCC internal prototype to avoid an error.
16320 Use char because int might match the return type of a GCC
16321 builtin and then its argument prototype would still apply. */
16322 #ifdef __cplusplus
16323 extern "C"
16324 #endif
16325 char inet_aton ();
16327 main ()
16329 return inet_aton ();
16331 return 0;
16333 _ACEOF
16334 rm -f conftest.$ac_objext conftest$ac_exeext
16335 if { (ac_try="$ac_link"
16336 case "(($ac_try" in
16337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16338 *) ac_try_echo=$ac_try;;
16339 esac
16340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16341 (eval "$ac_link") 2>conftest.er1
16342 ac_status=$?
16343 grep -v '^ *+' conftest.er1 >conftest.err
16344 rm -f conftest.er1
16345 cat conftest.err >&5
16346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16347 (exit $ac_status); } && {
16348 test -z "$ac_c_werror_flag" ||
16349 test ! -s conftest.err
16350 } && test -s conftest$ac_exeext &&
16351 $as_test_x conftest$ac_exeext; then
16352 ac_cv_lib_c_inet_aton=yes
16353 else
16354 echo "$as_me: failed program was:" >&5
16355 sed 's/^/| /' conftest.$ac_ext >&5
16357 ac_cv_lib_c_inet_aton=no
16360 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16361 conftest$ac_exeext conftest.$ac_ext
16362 LIBS=$ac_check_lib_save_LIBS
16364 { echo "$as_me:$LINENO: result: $ac_cv_lib_c_inet_aton" >&5
16365 echo "${ECHO_T}$ac_cv_lib_c_inet_aton" >&6; }
16366 if test $ac_cv_lib_c_inet_aton = yes; then
16367 $ac_cv_prog_TRUE
16368 else
16370 { echo "$as_me:$LINENO: checking for inet_aton in -lresolv" >&5
16371 echo $ECHO_N "checking for inet_aton in -lresolv... $ECHO_C" >&6; }
16372 if test "${ac_cv_lib_resolv_inet_aton+set}" = set; then
16373 echo $ECHO_N "(cached) $ECHO_C" >&6
16374 else
16375 ac_check_lib_save_LIBS=$LIBS
16376 LIBS="-lresolv $LIBS"
16377 cat >conftest.$ac_ext <<_ACEOF
16378 /* confdefs.h. */
16379 _ACEOF
16380 cat confdefs.h >>conftest.$ac_ext
16381 cat >>conftest.$ac_ext <<_ACEOF
16382 /* end confdefs.h. */
16384 /* Override any GCC internal prototype to avoid an error.
16385 Use char because int might match the return type of a GCC
16386 builtin and then its argument prototype would still apply. */
16387 #ifdef __cplusplus
16388 extern "C"
16389 #endif
16390 char inet_aton ();
16392 main ()
16394 return inet_aton ();
16396 return 0;
16398 _ACEOF
16399 rm -f conftest.$ac_objext conftest$ac_exeext
16400 if { (ac_try="$ac_link"
16401 case "(($ac_try" in
16402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16403 *) ac_try_echo=$ac_try;;
16404 esac
16405 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16406 (eval "$ac_link") 2>conftest.er1
16407 ac_status=$?
16408 grep -v '^ *+' conftest.er1 >conftest.err
16409 rm -f conftest.er1
16410 cat conftest.err >&5
16411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16412 (exit $ac_status); } && {
16413 test -z "$ac_c_werror_flag" ||
16414 test ! -s conftest.err
16415 } && test -s conftest$ac_exeext &&
16416 $as_test_x conftest$ac_exeext; then
16417 ac_cv_lib_resolv_inet_aton=yes
16418 else
16419 echo "$as_me: failed program was:" >&5
16420 sed 's/^/| /' conftest.$ac_ext >&5
16422 ac_cv_lib_resolv_inet_aton=no
16425 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16426 conftest$ac_exeext conftest.$ac_ext
16427 LIBS=$ac_check_lib_save_LIBS
16429 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_aton" >&5
16430 echo "${ECHO_T}$ac_cv_lib_resolv_inet_aton" >&6; }
16431 if test $ac_cv_lib_resolv_inet_aton = yes; then
16432 cat >>confdefs.h <<_ACEOF
16433 #define HAVE_LIBRESOLV 1
16434 _ACEOF
16436 LIBS="-lresolv $LIBS"
16444 # On Tru64, chflags seems to be present, but calling it will
16445 # exit Python
16446 { echo "$as_me:$LINENO: checking for chflags" >&5
16447 echo $ECHO_N "checking for chflags... $ECHO_C" >&6; }
16448 if test "$cross_compiling" = yes; then
16449 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
16450 See \`config.log' for more details." >&5
16451 echo "$as_me: error: cannot run test program while cross compiling
16452 See \`config.log' for more details." >&2;}
16453 { (exit 1); exit 1; }; }
16454 else
16455 cat >conftest.$ac_ext <<_ACEOF
16456 /* confdefs.h. */
16457 _ACEOF
16458 cat confdefs.h >>conftest.$ac_ext
16459 cat >>conftest.$ac_ext <<_ACEOF
16460 /* end confdefs.h. */
16462 #include <sys/stat.h>
16463 #include <unistd.h>
16464 int main(int argc, char*argv[])
16466 if(chflags(argv[0], 0) != 0)
16467 return 1;
16468 return 0;
16471 _ACEOF
16472 rm -f conftest$ac_exeext
16473 if { (ac_try="$ac_link"
16474 case "(($ac_try" in
16475 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16476 *) ac_try_echo=$ac_try;;
16477 esac
16478 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16479 (eval "$ac_link") 2>&5
16480 ac_status=$?
16481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16482 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16483 { (case "(($ac_try" in
16484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16485 *) ac_try_echo=$ac_try;;
16486 esac
16487 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16488 (eval "$ac_try") 2>&5
16489 ac_status=$?
16490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16491 (exit $ac_status); }; }; then
16493 cat >>confdefs.h <<\_ACEOF
16494 #define HAVE_CHFLAGS 1
16495 _ACEOF
16497 { echo "$as_me:$LINENO: result: yes" >&5
16498 echo "${ECHO_T}yes" >&6; }
16499 else
16500 echo "$as_me: program exited with status $ac_status" >&5
16501 echo "$as_me: failed program was:" >&5
16502 sed 's/^/| /' conftest.$ac_ext >&5
16504 ( exit $ac_status )
16505 { echo "$as_me:$LINENO: result: no" >&5
16506 echo "${ECHO_T}no" >&6; }
16509 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16514 { echo "$as_me:$LINENO: checking for lchflags" >&5
16515 echo $ECHO_N "checking for lchflags... $ECHO_C" >&6; }
16516 if test "$cross_compiling" = yes; then
16517 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
16518 See \`config.log' for more details." >&5
16519 echo "$as_me: error: cannot run test program while cross compiling
16520 See \`config.log' for more details." >&2;}
16521 { (exit 1); exit 1; }; }
16522 else
16523 cat >conftest.$ac_ext <<_ACEOF
16524 /* confdefs.h. */
16525 _ACEOF
16526 cat confdefs.h >>conftest.$ac_ext
16527 cat >>conftest.$ac_ext <<_ACEOF
16528 /* end confdefs.h. */
16530 #include <sys/stat.h>
16531 #include <unistd.h>
16532 int main(int argc, char*argv[])
16534 if(lchflags(argv[0], 0) != 0)
16535 return 1;
16536 return 0;
16539 _ACEOF
16540 rm -f conftest$ac_exeext
16541 if { (ac_try="$ac_link"
16542 case "(($ac_try" in
16543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16544 *) ac_try_echo=$ac_try;;
16545 esac
16546 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16547 (eval "$ac_link") 2>&5
16548 ac_status=$?
16549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16550 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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_try") 2>&5
16557 ac_status=$?
16558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16559 (exit $ac_status); }; }; then
16561 cat >>confdefs.h <<\_ACEOF
16562 #define HAVE_LCHFLAGS 1
16563 _ACEOF
16565 { echo "$as_me:$LINENO: result: yes" >&5
16566 echo "${ECHO_T}yes" >&6; }
16567 else
16568 echo "$as_me: program exited with status $ac_status" >&5
16569 echo "$as_me: failed program was:" >&5
16570 sed 's/^/| /' conftest.$ac_ext >&5
16572 ( exit $ac_status )
16573 { echo "$as_me:$LINENO: result: no" >&5
16574 echo "${ECHO_T}no" >&6; }
16577 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16582 case $ac_sys_system/$ac_sys_release in
16583 Darwin/*)
16584 _CUR_CFLAGS="${CFLAGS}"
16585 _CUR_LDFLAGS="${LDFLAGS}"
16586 CFLAGS="${CFLAGS} -Wl,-search_paths_first"
16587 LDFLAGS="${LDFLAGS} -Wl,-search_paths_first -L/usr/local/lib"
16589 esac
16591 { echo "$as_me:$LINENO: checking for inflateCopy in -lz" >&5
16592 echo $ECHO_N "checking for inflateCopy in -lz... $ECHO_C" >&6; }
16593 if test "${ac_cv_lib_z_inflateCopy+set}" = set; then
16594 echo $ECHO_N "(cached) $ECHO_C" >&6
16595 else
16596 ac_check_lib_save_LIBS=$LIBS
16597 LIBS="-lz $LIBS"
16598 cat >conftest.$ac_ext <<_ACEOF
16599 /* confdefs.h. */
16600 _ACEOF
16601 cat confdefs.h >>conftest.$ac_ext
16602 cat >>conftest.$ac_ext <<_ACEOF
16603 /* end confdefs.h. */
16605 /* Override any GCC internal prototype to avoid an error.
16606 Use char because int might match the return type of a GCC
16607 builtin and then its argument prototype would still apply. */
16608 #ifdef __cplusplus
16609 extern "C"
16610 #endif
16611 char inflateCopy ();
16613 main ()
16615 return inflateCopy ();
16617 return 0;
16619 _ACEOF
16620 rm -f conftest.$ac_objext conftest$ac_exeext
16621 if { (ac_try="$ac_link"
16622 case "(($ac_try" in
16623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16624 *) ac_try_echo=$ac_try;;
16625 esac
16626 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16627 (eval "$ac_link") 2>conftest.er1
16628 ac_status=$?
16629 grep -v '^ *+' conftest.er1 >conftest.err
16630 rm -f conftest.er1
16631 cat conftest.err >&5
16632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16633 (exit $ac_status); } && {
16634 test -z "$ac_c_werror_flag" ||
16635 test ! -s conftest.err
16636 } && test -s conftest$ac_exeext &&
16637 $as_test_x conftest$ac_exeext; then
16638 ac_cv_lib_z_inflateCopy=yes
16639 else
16640 echo "$as_me: failed program was:" >&5
16641 sed 's/^/| /' conftest.$ac_ext >&5
16643 ac_cv_lib_z_inflateCopy=no
16646 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16647 conftest$ac_exeext conftest.$ac_ext
16648 LIBS=$ac_check_lib_save_LIBS
16650 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_inflateCopy" >&5
16651 echo "${ECHO_T}$ac_cv_lib_z_inflateCopy" >&6; }
16652 if test $ac_cv_lib_z_inflateCopy = yes; then
16654 cat >>confdefs.h <<\_ACEOF
16655 #define HAVE_ZLIB_COPY 1
16656 _ACEOF
16661 case $ac_sys_system/$ac_sys_release in
16662 Darwin/*)
16663 CFLAGS="${_CUR_CFLAGS}"
16664 LDFLAGS="${_CUR_LDFLAGS}"
16666 esac
16668 { echo "$as_me:$LINENO: checking for hstrerror" >&5
16669 echo $ECHO_N "checking for hstrerror... $ECHO_C" >&6; }
16670 cat >conftest.$ac_ext <<_ACEOF
16671 /* confdefs.h. */
16672 _ACEOF
16673 cat confdefs.h >>conftest.$ac_ext
16674 cat >>conftest.$ac_ext <<_ACEOF
16675 /* end confdefs.h. */
16677 #include "confdefs.h"
16678 #include <netdb.h>
16681 main ()
16683 void* p = hstrerror; hstrerror(0)
16685 return 0;
16687 _ACEOF
16688 rm -f conftest.$ac_objext conftest$ac_exeext
16689 if { (ac_try="$ac_link"
16690 case "(($ac_try" in
16691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16692 *) ac_try_echo=$ac_try;;
16693 esac
16694 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16695 (eval "$ac_link") 2>conftest.er1
16696 ac_status=$?
16697 grep -v '^ *+' conftest.er1 >conftest.err
16698 rm -f conftest.er1
16699 cat conftest.err >&5
16700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16701 (exit $ac_status); } && {
16702 test -z "$ac_c_werror_flag" ||
16703 test ! -s conftest.err
16704 } && test -s conftest$ac_exeext &&
16705 $as_test_x conftest$ac_exeext; then
16707 cat >>confdefs.h <<\_ACEOF
16708 #define HAVE_HSTRERROR 1
16709 _ACEOF
16711 { echo "$as_me:$LINENO: result: yes" >&5
16712 echo "${ECHO_T}yes" >&6; }
16713 else
16714 echo "$as_me: failed program was:" >&5
16715 sed 's/^/| /' conftest.$ac_ext >&5
16717 { echo "$as_me:$LINENO: result: no" >&5
16718 echo "${ECHO_T}no" >&6; }
16722 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16723 conftest$ac_exeext conftest.$ac_ext
16725 { echo "$as_me:$LINENO: checking for inet_aton" >&5
16726 echo $ECHO_N "checking for inet_aton... $ECHO_C" >&6; }
16727 cat >conftest.$ac_ext <<_ACEOF
16728 /* confdefs.h. */
16729 _ACEOF
16730 cat confdefs.h >>conftest.$ac_ext
16731 cat >>conftest.$ac_ext <<_ACEOF
16732 /* end confdefs.h. */
16734 #include "confdefs.h"
16735 #include <sys/types.h>
16736 #include <sys/socket.h>
16737 #include <netinet/in.h>
16738 #include <arpa/inet.h>
16741 main ()
16743 void* p = inet_aton;inet_aton(0,0)
16745 return 0;
16747 _ACEOF
16748 rm -f conftest.$ac_objext conftest$ac_exeext
16749 if { (ac_try="$ac_link"
16750 case "(($ac_try" in
16751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16752 *) ac_try_echo=$ac_try;;
16753 esac
16754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16755 (eval "$ac_link") 2>conftest.er1
16756 ac_status=$?
16757 grep -v '^ *+' conftest.er1 >conftest.err
16758 rm -f conftest.er1
16759 cat conftest.err >&5
16760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16761 (exit $ac_status); } && {
16762 test -z "$ac_c_werror_flag" ||
16763 test ! -s conftest.err
16764 } && test -s conftest$ac_exeext &&
16765 $as_test_x conftest$ac_exeext; then
16767 cat >>confdefs.h <<\_ACEOF
16768 #define HAVE_INET_ATON 1
16769 _ACEOF
16771 { echo "$as_me:$LINENO: result: yes" >&5
16772 echo "${ECHO_T}yes" >&6; }
16773 else
16774 echo "$as_me: failed program was:" >&5
16775 sed 's/^/| /' conftest.$ac_ext >&5
16777 { echo "$as_me:$LINENO: result: no" >&5
16778 echo "${ECHO_T}no" >&6; }
16782 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16783 conftest$ac_exeext conftest.$ac_ext
16785 { echo "$as_me:$LINENO: checking for inet_pton" >&5
16786 echo $ECHO_N "checking for inet_pton... $ECHO_C" >&6; }
16787 cat >conftest.$ac_ext <<_ACEOF
16788 /* confdefs.h. */
16789 _ACEOF
16790 cat confdefs.h >>conftest.$ac_ext
16791 cat >>conftest.$ac_ext <<_ACEOF
16792 /* end confdefs.h. */
16794 #include "confdefs.h"
16795 #include <sys/types.h>
16796 #include <sys/socket.h>
16797 #include <netinet/in.h>
16798 #include <arpa/inet.h>
16801 main ()
16803 void* p = inet_pton
16805 return 0;
16807 _ACEOF
16808 rm -f conftest.$ac_objext
16809 if { (ac_try="$ac_compile"
16810 case "(($ac_try" in
16811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16812 *) ac_try_echo=$ac_try;;
16813 esac
16814 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16815 (eval "$ac_compile") 2>conftest.er1
16816 ac_status=$?
16817 grep -v '^ *+' conftest.er1 >conftest.err
16818 rm -f conftest.er1
16819 cat conftest.err >&5
16820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16821 (exit $ac_status); } && {
16822 test -z "$ac_c_werror_flag" ||
16823 test ! -s conftest.err
16824 } && test -s conftest.$ac_objext; then
16826 cat >>confdefs.h <<\_ACEOF
16827 #define HAVE_INET_PTON 1
16828 _ACEOF
16830 { echo "$as_me:$LINENO: result: yes" >&5
16831 echo "${ECHO_T}yes" >&6; }
16832 else
16833 echo "$as_me: failed program was:" >&5
16834 sed 's/^/| /' conftest.$ac_ext >&5
16836 { echo "$as_me:$LINENO: result: no" >&5
16837 echo "${ECHO_T}no" >&6; }
16841 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16843 # On some systems, setgroups is in unistd.h, on others, in grp.h
16844 { echo "$as_me:$LINENO: checking for setgroups" >&5
16845 echo $ECHO_N "checking for setgroups... $ECHO_C" >&6; }
16846 cat >conftest.$ac_ext <<_ACEOF
16847 /* confdefs.h. */
16848 _ACEOF
16849 cat confdefs.h >>conftest.$ac_ext
16850 cat >>conftest.$ac_ext <<_ACEOF
16851 /* end confdefs.h. */
16853 #include "confdefs.h"
16854 #include <unistd.h>
16855 #ifdef HAVE_GRP_H
16856 #include <grp.h>
16857 #endif
16860 main ()
16862 void* p = setgroups
16864 return 0;
16866 _ACEOF
16867 rm -f conftest.$ac_objext
16868 if { (ac_try="$ac_compile"
16869 case "(($ac_try" in
16870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16871 *) ac_try_echo=$ac_try;;
16872 esac
16873 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16874 (eval "$ac_compile") 2>conftest.er1
16875 ac_status=$?
16876 grep -v '^ *+' conftest.er1 >conftest.err
16877 rm -f conftest.er1
16878 cat conftest.err >&5
16879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16880 (exit $ac_status); } && {
16881 test -z "$ac_c_werror_flag" ||
16882 test ! -s conftest.err
16883 } && test -s conftest.$ac_objext; then
16885 cat >>confdefs.h <<\_ACEOF
16886 #define HAVE_SETGROUPS 1
16887 _ACEOF
16889 { echo "$as_me:$LINENO: result: yes" >&5
16890 echo "${ECHO_T}yes" >&6; }
16891 else
16892 echo "$as_me: failed program was:" >&5
16893 sed 's/^/| /' conftest.$ac_ext >&5
16895 { echo "$as_me:$LINENO: result: no" >&5
16896 echo "${ECHO_T}no" >&6; }
16900 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16902 # check for openpty and forkpty
16905 for ac_func in openpty
16907 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16908 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16909 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16910 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16911 echo $ECHO_N "(cached) $ECHO_C" >&6
16912 else
16913 cat >conftest.$ac_ext <<_ACEOF
16914 /* confdefs.h. */
16915 _ACEOF
16916 cat confdefs.h >>conftest.$ac_ext
16917 cat >>conftest.$ac_ext <<_ACEOF
16918 /* end confdefs.h. */
16919 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16920 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16921 #define $ac_func innocuous_$ac_func
16923 /* System header to define __stub macros and hopefully few prototypes,
16924 which can conflict with char $ac_func (); below.
16925 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16926 <limits.h> exists even on freestanding compilers. */
16928 #ifdef __STDC__
16929 # include <limits.h>
16930 #else
16931 # include <assert.h>
16932 #endif
16934 #undef $ac_func
16936 /* Override any GCC internal prototype to avoid an error.
16937 Use char because int might match the return type of a GCC
16938 builtin and then its argument prototype would still apply. */
16939 #ifdef __cplusplus
16940 extern "C"
16941 #endif
16942 char $ac_func ();
16943 /* The GNU C library defines this for functions which it implements
16944 to always fail with ENOSYS. Some functions are actually named
16945 something starting with __ and the normal name is an alias. */
16946 #if defined __stub_$ac_func || defined __stub___$ac_func
16947 choke me
16948 #endif
16951 main ()
16953 return $ac_func ();
16955 return 0;
16957 _ACEOF
16958 rm -f conftest.$ac_objext conftest$ac_exeext
16959 if { (ac_try="$ac_link"
16960 case "(($ac_try" in
16961 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16962 *) ac_try_echo=$ac_try;;
16963 esac
16964 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16965 (eval "$ac_link") 2>conftest.er1
16966 ac_status=$?
16967 grep -v '^ *+' conftest.er1 >conftest.err
16968 rm -f conftest.er1
16969 cat conftest.err >&5
16970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16971 (exit $ac_status); } && {
16972 test -z "$ac_c_werror_flag" ||
16973 test ! -s conftest.err
16974 } && test -s conftest$ac_exeext &&
16975 $as_test_x conftest$ac_exeext; then
16976 eval "$as_ac_var=yes"
16977 else
16978 echo "$as_me: failed program was:" >&5
16979 sed 's/^/| /' conftest.$ac_ext >&5
16981 eval "$as_ac_var=no"
16984 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16985 conftest$ac_exeext conftest.$ac_ext
16987 ac_res=`eval echo '${'$as_ac_var'}'`
16988 { echo "$as_me:$LINENO: result: $ac_res" >&5
16989 echo "${ECHO_T}$ac_res" >&6; }
16990 if test `eval echo '${'$as_ac_var'}'` = yes; then
16991 cat >>confdefs.h <<_ACEOF
16992 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16993 _ACEOF
16995 else
16996 { echo "$as_me:$LINENO: checking for openpty in -lutil" >&5
16997 echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6; }
16998 if test "${ac_cv_lib_util_openpty+set}" = set; then
16999 echo $ECHO_N "(cached) $ECHO_C" >&6
17000 else
17001 ac_check_lib_save_LIBS=$LIBS
17002 LIBS="-lutil $LIBS"
17003 cat >conftest.$ac_ext <<_ACEOF
17004 /* confdefs.h. */
17005 _ACEOF
17006 cat confdefs.h >>conftest.$ac_ext
17007 cat >>conftest.$ac_ext <<_ACEOF
17008 /* end confdefs.h. */
17010 /* Override any GCC internal prototype to avoid an error.
17011 Use char because int might match the return type of a GCC
17012 builtin and then its argument prototype would still apply. */
17013 #ifdef __cplusplus
17014 extern "C"
17015 #endif
17016 char openpty ();
17018 main ()
17020 return openpty ();
17022 return 0;
17024 _ACEOF
17025 rm -f conftest.$ac_objext conftest$ac_exeext
17026 if { (ac_try="$ac_link"
17027 case "(($ac_try" in
17028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17029 *) ac_try_echo=$ac_try;;
17030 esac
17031 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17032 (eval "$ac_link") 2>conftest.er1
17033 ac_status=$?
17034 grep -v '^ *+' conftest.er1 >conftest.err
17035 rm -f conftest.er1
17036 cat conftest.err >&5
17037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17038 (exit $ac_status); } && {
17039 test -z "$ac_c_werror_flag" ||
17040 test ! -s conftest.err
17041 } && test -s conftest$ac_exeext &&
17042 $as_test_x conftest$ac_exeext; then
17043 ac_cv_lib_util_openpty=yes
17044 else
17045 echo "$as_me: failed program was:" >&5
17046 sed 's/^/| /' conftest.$ac_ext >&5
17048 ac_cv_lib_util_openpty=no
17051 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17052 conftest$ac_exeext conftest.$ac_ext
17053 LIBS=$ac_check_lib_save_LIBS
17055 { echo "$as_me:$LINENO: result: $ac_cv_lib_util_openpty" >&5
17056 echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6; }
17057 if test $ac_cv_lib_util_openpty = yes; then
17058 cat >>confdefs.h <<\_ACEOF
17059 #define HAVE_OPENPTY 1
17060 _ACEOF
17061 LIBS="$LIBS -lutil"
17062 else
17063 { echo "$as_me:$LINENO: checking for openpty in -lbsd" >&5
17064 echo $ECHO_N "checking for openpty in -lbsd... $ECHO_C" >&6; }
17065 if test "${ac_cv_lib_bsd_openpty+set}" = set; then
17066 echo $ECHO_N "(cached) $ECHO_C" >&6
17067 else
17068 ac_check_lib_save_LIBS=$LIBS
17069 LIBS="-lbsd $LIBS"
17070 cat >conftest.$ac_ext <<_ACEOF
17071 /* confdefs.h. */
17072 _ACEOF
17073 cat confdefs.h >>conftest.$ac_ext
17074 cat >>conftest.$ac_ext <<_ACEOF
17075 /* end confdefs.h. */
17077 /* Override any GCC internal prototype to avoid an error.
17078 Use char because int might match the return type of a GCC
17079 builtin and then its argument prototype would still apply. */
17080 #ifdef __cplusplus
17081 extern "C"
17082 #endif
17083 char openpty ();
17085 main ()
17087 return openpty ();
17089 return 0;
17091 _ACEOF
17092 rm -f conftest.$ac_objext conftest$ac_exeext
17093 if { (ac_try="$ac_link"
17094 case "(($ac_try" in
17095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17096 *) ac_try_echo=$ac_try;;
17097 esac
17098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17099 (eval "$ac_link") 2>conftest.er1
17100 ac_status=$?
17101 grep -v '^ *+' conftest.er1 >conftest.err
17102 rm -f conftest.er1
17103 cat conftest.err >&5
17104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17105 (exit $ac_status); } && {
17106 test -z "$ac_c_werror_flag" ||
17107 test ! -s conftest.err
17108 } && test -s conftest$ac_exeext &&
17109 $as_test_x conftest$ac_exeext; then
17110 ac_cv_lib_bsd_openpty=yes
17111 else
17112 echo "$as_me: failed program was:" >&5
17113 sed 's/^/| /' conftest.$ac_ext >&5
17115 ac_cv_lib_bsd_openpty=no
17118 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17119 conftest$ac_exeext conftest.$ac_ext
17120 LIBS=$ac_check_lib_save_LIBS
17122 { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_openpty" >&5
17123 echo "${ECHO_T}$ac_cv_lib_bsd_openpty" >&6; }
17124 if test $ac_cv_lib_bsd_openpty = yes; then
17125 cat >>confdefs.h <<\_ACEOF
17126 #define HAVE_OPENPTY 1
17127 _ACEOF
17128 LIBS="$LIBS -lbsd"
17136 done
17139 for ac_func in forkpty
17141 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17142 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17143 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17144 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17145 echo $ECHO_N "(cached) $ECHO_C" >&6
17146 else
17147 cat >conftest.$ac_ext <<_ACEOF
17148 /* confdefs.h. */
17149 _ACEOF
17150 cat confdefs.h >>conftest.$ac_ext
17151 cat >>conftest.$ac_ext <<_ACEOF
17152 /* end confdefs.h. */
17153 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17154 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17155 #define $ac_func innocuous_$ac_func
17157 /* System header to define __stub macros and hopefully few prototypes,
17158 which can conflict with char $ac_func (); below.
17159 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17160 <limits.h> exists even on freestanding compilers. */
17162 #ifdef __STDC__
17163 # include <limits.h>
17164 #else
17165 # include <assert.h>
17166 #endif
17168 #undef $ac_func
17170 /* Override any GCC internal prototype to avoid an error.
17171 Use char because int might match the return type of a GCC
17172 builtin and then its argument prototype would still apply. */
17173 #ifdef __cplusplus
17174 extern "C"
17175 #endif
17176 char $ac_func ();
17177 /* The GNU C library defines this for functions which it implements
17178 to always fail with ENOSYS. Some functions are actually named
17179 something starting with __ and the normal name is an alias. */
17180 #if defined __stub_$ac_func || defined __stub___$ac_func
17181 choke me
17182 #endif
17185 main ()
17187 return $ac_func ();
17189 return 0;
17191 _ACEOF
17192 rm -f conftest.$ac_objext conftest$ac_exeext
17193 if { (ac_try="$ac_link"
17194 case "(($ac_try" in
17195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17196 *) ac_try_echo=$ac_try;;
17197 esac
17198 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17199 (eval "$ac_link") 2>conftest.er1
17200 ac_status=$?
17201 grep -v '^ *+' conftest.er1 >conftest.err
17202 rm -f conftest.er1
17203 cat conftest.err >&5
17204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17205 (exit $ac_status); } && {
17206 test -z "$ac_c_werror_flag" ||
17207 test ! -s conftest.err
17208 } && test -s conftest$ac_exeext &&
17209 $as_test_x conftest$ac_exeext; then
17210 eval "$as_ac_var=yes"
17211 else
17212 echo "$as_me: failed program was:" >&5
17213 sed 's/^/| /' conftest.$ac_ext >&5
17215 eval "$as_ac_var=no"
17218 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17219 conftest$ac_exeext conftest.$ac_ext
17221 ac_res=`eval echo '${'$as_ac_var'}'`
17222 { echo "$as_me:$LINENO: result: $ac_res" >&5
17223 echo "${ECHO_T}$ac_res" >&6; }
17224 if test `eval echo '${'$as_ac_var'}'` = yes; then
17225 cat >>confdefs.h <<_ACEOF
17226 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17227 _ACEOF
17229 else
17230 { echo "$as_me:$LINENO: checking for forkpty in -lutil" >&5
17231 echo $ECHO_N "checking for forkpty in -lutil... $ECHO_C" >&6; }
17232 if test "${ac_cv_lib_util_forkpty+set}" = set; then
17233 echo $ECHO_N "(cached) $ECHO_C" >&6
17234 else
17235 ac_check_lib_save_LIBS=$LIBS
17236 LIBS="-lutil $LIBS"
17237 cat >conftest.$ac_ext <<_ACEOF
17238 /* confdefs.h. */
17239 _ACEOF
17240 cat confdefs.h >>conftest.$ac_ext
17241 cat >>conftest.$ac_ext <<_ACEOF
17242 /* end confdefs.h. */
17244 /* Override any GCC internal prototype to avoid an error.
17245 Use char because int might match the return type of a GCC
17246 builtin and then its argument prototype would still apply. */
17247 #ifdef __cplusplus
17248 extern "C"
17249 #endif
17250 char forkpty ();
17252 main ()
17254 return forkpty ();
17256 return 0;
17258 _ACEOF
17259 rm -f conftest.$ac_objext conftest$ac_exeext
17260 if { (ac_try="$ac_link"
17261 case "(($ac_try" in
17262 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17263 *) ac_try_echo=$ac_try;;
17264 esac
17265 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17266 (eval "$ac_link") 2>conftest.er1
17267 ac_status=$?
17268 grep -v '^ *+' conftest.er1 >conftest.err
17269 rm -f conftest.er1
17270 cat conftest.err >&5
17271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17272 (exit $ac_status); } && {
17273 test -z "$ac_c_werror_flag" ||
17274 test ! -s conftest.err
17275 } && test -s conftest$ac_exeext &&
17276 $as_test_x conftest$ac_exeext; then
17277 ac_cv_lib_util_forkpty=yes
17278 else
17279 echo "$as_me: failed program was:" >&5
17280 sed 's/^/| /' conftest.$ac_ext >&5
17282 ac_cv_lib_util_forkpty=no
17285 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17286 conftest$ac_exeext conftest.$ac_ext
17287 LIBS=$ac_check_lib_save_LIBS
17289 { echo "$as_me:$LINENO: result: $ac_cv_lib_util_forkpty" >&5
17290 echo "${ECHO_T}$ac_cv_lib_util_forkpty" >&6; }
17291 if test $ac_cv_lib_util_forkpty = yes; then
17292 cat >>confdefs.h <<\_ACEOF
17293 #define HAVE_FORKPTY 1
17294 _ACEOF
17295 LIBS="$LIBS -lutil"
17296 else
17297 { echo "$as_me:$LINENO: checking for forkpty in -lbsd" >&5
17298 echo $ECHO_N "checking for forkpty in -lbsd... $ECHO_C" >&6; }
17299 if test "${ac_cv_lib_bsd_forkpty+set}" = set; then
17300 echo $ECHO_N "(cached) $ECHO_C" >&6
17301 else
17302 ac_check_lib_save_LIBS=$LIBS
17303 LIBS="-lbsd $LIBS"
17304 cat >conftest.$ac_ext <<_ACEOF
17305 /* confdefs.h. */
17306 _ACEOF
17307 cat confdefs.h >>conftest.$ac_ext
17308 cat >>conftest.$ac_ext <<_ACEOF
17309 /* end confdefs.h. */
17311 /* Override any GCC internal prototype to avoid an error.
17312 Use char because int might match the return type of a GCC
17313 builtin and then its argument prototype would still apply. */
17314 #ifdef __cplusplus
17315 extern "C"
17316 #endif
17317 char forkpty ();
17319 main ()
17321 return forkpty ();
17323 return 0;
17325 _ACEOF
17326 rm -f conftest.$ac_objext conftest$ac_exeext
17327 if { (ac_try="$ac_link"
17328 case "(($ac_try" in
17329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17330 *) ac_try_echo=$ac_try;;
17331 esac
17332 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17333 (eval "$ac_link") 2>conftest.er1
17334 ac_status=$?
17335 grep -v '^ *+' conftest.er1 >conftest.err
17336 rm -f conftest.er1
17337 cat conftest.err >&5
17338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17339 (exit $ac_status); } && {
17340 test -z "$ac_c_werror_flag" ||
17341 test ! -s conftest.err
17342 } && test -s conftest$ac_exeext &&
17343 $as_test_x conftest$ac_exeext; then
17344 ac_cv_lib_bsd_forkpty=yes
17345 else
17346 echo "$as_me: failed program was:" >&5
17347 sed 's/^/| /' conftest.$ac_ext >&5
17349 ac_cv_lib_bsd_forkpty=no
17352 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17353 conftest$ac_exeext conftest.$ac_ext
17354 LIBS=$ac_check_lib_save_LIBS
17356 { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_forkpty" >&5
17357 echo "${ECHO_T}$ac_cv_lib_bsd_forkpty" >&6; }
17358 if test $ac_cv_lib_bsd_forkpty = yes; then
17359 cat >>confdefs.h <<\_ACEOF
17360 #define HAVE_FORKPTY 1
17361 _ACEOF
17362 LIBS="$LIBS -lbsd"
17370 done
17373 # Stuff for expat.
17375 for ac_func in memmove
17377 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17378 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17379 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17380 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17381 echo $ECHO_N "(cached) $ECHO_C" >&6
17382 else
17383 cat >conftest.$ac_ext <<_ACEOF
17384 /* confdefs.h. */
17385 _ACEOF
17386 cat confdefs.h >>conftest.$ac_ext
17387 cat >>conftest.$ac_ext <<_ACEOF
17388 /* end confdefs.h. */
17389 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17390 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17391 #define $ac_func innocuous_$ac_func
17393 /* System header to define __stub macros and hopefully few prototypes,
17394 which can conflict with char $ac_func (); below.
17395 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17396 <limits.h> exists even on freestanding compilers. */
17398 #ifdef __STDC__
17399 # include <limits.h>
17400 #else
17401 # include <assert.h>
17402 #endif
17404 #undef $ac_func
17406 /* Override any GCC internal prototype to avoid an error.
17407 Use char because int might match the return type of a GCC
17408 builtin and then its argument prototype would still apply. */
17409 #ifdef __cplusplus
17410 extern "C"
17411 #endif
17412 char $ac_func ();
17413 /* The GNU C library defines this for functions which it implements
17414 to always fail with ENOSYS. Some functions are actually named
17415 something starting with __ and the normal name is an alias. */
17416 #if defined __stub_$ac_func || defined __stub___$ac_func
17417 choke me
17418 #endif
17421 main ()
17423 return $ac_func ();
17425 return 0;
17427 _ACEOF
17428 rm -f conftest.$ac_objext conftest$ac_exeext
17429 if { (ac_try="$ac_link"
17430 case "(($ac_try" in
17431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17432 *) ac_try_echo=$ac_try;;
17433 esac
17434 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17435 (eval "$ac_link") 2>conftest.er1
17436 ac_status=$?
17437 grep -v '^ *+' conftest.er1 >conftest.err
17438 rm -f conftest.er1
17439 cat conftest.err >&5
17440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17441 (exit $ac_status); } && {
17442 test -z "$ac_c_werror_flag" ||
17443 test ! -s conftest.err
17444 } && test -s conftest$ac_exeext &&
17445 $as_test_x conftest$ac_exeext; then
17446 eval "$as_ac_var=yes"
17447 else
17448 echo "$as_me: failed program was:" >&5
17449 sed 's/^/| /' conftest.$ac_ext >&5
17451 eval "$as_ac_var=no"
17454 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17455 conftest$ac_exeext conftest.$ac_ext
17457 ac_res=`eval echo '${'$as_ac_var'}'`
17458 { echo "$as_me:$LINENO: result: $ac_res" >&5
17459 echo "${ECHO_T}$ac_res" >&6; }
17460 if test `eval echo '${'$as_ac_var'}'` = yes; then
17461 cat >>confdefs.h <<_ACEOF
17462 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17463 _ACEOF
17466 done
17469 # check for long file support functions
17476 for ac_func in fseek64 fseeko fstatvfs ftell64 ftello statvfs
17478 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17479 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17480 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17481 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17482 echo $ECHO_N "(cached) $ECHO_C" >&6
17483 else
17484 cat >conftest.$ac_ext <<_ACEOF
17485 /* confdefs.h. */
17486 _ACEOF
17487 cat confdefs.h >>conftest.$ac_ext
17488 cat >>conftest.$ac_ext <<_ACEOF
17489 /* end confdefs.h. */
17490 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17491 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17492 #define $ac_func innocuous_$ac_func
17494 /* System header to define __stub macros and hopefully few prototypes,
17495 which can conflict with char $ac_func (); below.
17496 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17497 <limits.h> exists even on freestanding compilers. */
17499 #ifdef __STDC__
17500 # include <limits.h>
17501 #else
17502 # include <assert.h>
17503 #endif
17505 #undef $ac_func
17507 /* Override any GCC internal prototype to avoid an error.
17508 Use char because int might match the return type of a GCC
17509 builtin and then its argument prototype would still apply. */
17510 #ifdef __cplusplus
17511 extern "C"
17512 #endif
17513 char $ac_func ();
17514 /* The GNU C library defines this for functions which it implements
17515 to always fail with ENOSYS. Some functions are actually named
17516 something starting with __ and the normal name is an alias. */
17517 #if defined __stub_$ac_func || defined __stub___$ac_func
17518 choke me
17519 #endif
17522 main ()
17524 return $ac_func ();
17526 return 0;
17528 _ACEOF
17529 rm -f conftest.$ac_objext conftest$ac_exeext
17530 if { (ac_try="$ac_link"
17531 case "(($ac_try" in
17532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17533 *) ac_try_echo=$ac_try;;
17534 esac
17535 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17536 (eval "$ac_link") 2>conftest.er1
17537 ac_status=$?
17538 grep -v '^ *+' conftest.er1 >conftest.err
17539 rm -f conftest.er1
17540 cat conftest.err >&5
17541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17542 (exit $ac_status); } && {
17543 test -z "$ac_c_werror_flag" ||
17544 test ! -s conftest.err
17545 } && test -s conftest$ac_exeext &&
17546 $as_test_x conftest$ac_exeext; then
17547 eval "$as_ac_var=yes"
17548 else
17549 echo "$as_me: failed program was:" >&5
17550 sed 's/^/| /' conftest.$ac_ext >&5
17552 eval "$as_ac_var=no"
17555 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17556 conftest$ac_exeext conftest.$ac_ext
17558 ac_res=`eval echo '${'$as_ac_var'}'`
17559 { echo "$as_me:$LINENO: result: $ac_res" >&5
17560 echo "${ECHO_T}$ac_res" >&6; }
17561 if test `eval echo '${'$as_ac_var'}'` = yes; then
17562 cat >>confdefs.h <<_ACEOF
17563 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17564 _ACEOF
17567 done
17573 for ac_func in dup2 getcwd strdup
17575 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17576 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17577 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17578 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17579 echo $ECHO_N "(cached) $ECHO_C" >&6
17580 else
17581 cat >conftest.$ac_ext <<_ACEOF
17582 /* confdefs.h. */
17583 _ACEOF
17584 cat confdefs.h >>conftest.$ac_ext
17585 cat >>conftest.$ac_ext <<_ACEOF
17586 /* end confdefs.h. */
17587 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17588 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17589 #define $ac_func innocuous_$ac_func
17591 /* System header to define __stub macros and hopefully few prototypes,
17592 which can conflict with char $ac_func (); below.
17593 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17594 <limits.h> exists even on freestanding compilers. */
17596 #ifdef __STDC__
17597 # include <limits.h>
17598 #else
17599 # include <assert.h>
17600 #endif
17602 #undef $ac_func
17604 /* Override any GCC internal prototype to avoid an error.
17605 Use char because int might match the return type of a GCC
17606 builtin and then its argument prototype would still apply. */
17607 #ifdef __cplusplus
17608 extern "C"
17609 #endif
17610 char $ac_func ();
17611 /* The GNU C library defines this for functions which it implements
17612 to always fail with ENOSYS. Some functions are actually named
17613 something starting with __ and the normal name is an alias. */
17614 #if defined __stub_$ac_func || defined __stub___$ac_func
17615 choke me
17616 #endif
17619 main ()
17621 return $ac_func ();
17623 return 0;
17625 _ACEOF
17626 rm -f conftest.$ac_objext conftest$ac_exeext
17627 if { (ac_try="$ac_link"
17628 case "(($ac_try" in
17629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17630 *) ac_try_echo=$ac_try;;
17631 esac
17632 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17633 (eval "$ac_link") 2>conftest.er1
17634 ac_status=$?
17635 grep -v '^ *+' conftest.er1 >conftest.err
17636 rm -f conftest.er1
17637 cat conftest.err >&5
17638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17639 (exit $ac_status); } && {
17640 test -z "$ac_c_werror_flag" ||
17641 test ! -s conftest.err
17642 } && test -s conftest$ac_exeext &&
17643 $as_test_x conftest$ac_exeext; then
17644 eval "$as_ac_var=yes"
17645 else
17646 echo "$as_me: failed program was:" >&5
17647 sed 's/^/| /' conftest.$ac_ext >&5
17649 eval "$as_ac_var=no"
17652 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17653 conftest$ac_exeext conftest.$ac_ext
17655 ac_res=`eval echo '${'$as_ac_var'}'`
17656 { echo "$as_me:$LINENO: result: $ac_res" >&5
17657 echo "${ECHO_T}$ac_res" >&6; }
17658 if test `eval echo '${'$as_ac_var'}'` = yes; then
17659 cat >>confdefs.h <<_ACEOF
17660 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17661 _ACEOF
17663 else
17664 case " $LIBOBJS " in
17665 *" $ac_func.$ac_objext "* ) ;;
17666 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
17668 esac
17671 done
17675 for ac_func in getpgrp
17677 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17678 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17679 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17680 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17681 echo $ECHO_N "(cached) $ECHO_C" >&6
17682 else
17683 cat >conftest.$ac_ext <<_ACEOF
17684 /* confdefs.h. */
17685 _ACEOF
17686 cat confdefs.h >>conftest.$ac_ext
17687 cat >>conftest.$ac_ext <<_ACEOF
17688 /* end confdefs.h. */
17689 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17690 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17691 #define $ac_func innocuous_$ac_func
17693 /* System header to define __stub macros and hopefully few prototypes,
17694 which can conflict with char $ac_func (); below.
17695 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17696 <limits.h> exists even on freestanding compilers. */
17698 #ifdef __STDC__
17699 # include <limits.h>
17700 #else
17701 # include <assert.h>
17702 #endif
17704 #undef $ac_func
17706 /* Override any GCC internal prototype to avoid an error.
17707 Use char because int might match the return type of a GCC
17708 builtin and then its argument prototype would still apply. */
17709 #ifdef __cplusplus
17710 extern "C"
17711 #endif
17712 char $ac_func ();
17713 /* The GNU C library defines this for functions which it implements
17714 to always fail with ENOSYS. Some functions are actually named
17715 something starting with __ and the normal name is an alias. */
17716 #if defined __stub_$ac_func || defined __stub___$ac_func
17717 choke me
17718 #endif
17721 main ()
17723 return $ac_func ();
17725 return 0;
17727 _ACEOF
17728 rm -f conftest.$ac_objext conftest$ac_exeext
17729 if { (ac_try="$ac_link"
17730 case "(($ac_try" in
17731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17732 *) ac_try_echo=$ac_try;;
17733 esac
17734 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17735 (eval "$ac_link") 2>conftest.er1
17736 ac_status=$?
17737 grep -v '^ *+' conftest.er1 >conftest.err
17738 rm -f conftest.er1
17739 cat conftest.err >&5
17740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17741 (exit $ac_status); } && {
17742 test -z "$ac_c_werror_flag" ||
17743 test ! -s conftest.err
17744 } && test -s conftest$ac_exeext &&
17745 $as_test_x conftest$ac_exeext; then
17746 eval "$as_ac_var=yes"
17747 else
17748 echo "$as_me: failed program was:" >&5
17749 sed 's/^/| /' conftest.$ac_ext >&5
17751 eval "$as_ac_var=no"
17754 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17755 conftest$ac_exeext conftest.$ac_ext
17757 ac_res=`eval echo '${'$as_ac_var'}'`
17758 { echo "$as_me:$LINENO: result: $ac_res" >&5
17759 echo "${ECHO_T}$ac_res" >&6; }
17760 if test `eval echo '${'$as_ac_var'}'` = yes; then
17761 cat >>confdefs.h <<_ACEOF
17762 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17763 _ACEOF
17764 cat >conftest.$ac_ext <<_ACEOF
17765 /* confdefs.h. */
17766 _ACEOF
17767 cat confdefs.h >>conftest.$ac_ext
17768 cat >>conftest.$ac_ext <<_ACEOF
17769 /* end confdefs.h. */
17770 #include <unistd.h>
17772 main ()
17774 getpgrp(0);
17776 return 0;
17778 _ACEOF
17779 rm -f conftest.$ac_objext
17780 if { (ac_try="$ac_compile"
17781 case "(($ac_try" in
17782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17783 *) ac_try_echo=$ac_try;;
17784 esac
17785 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17786 (eval "$ac_compile") 2>conftest.er1
17787 ac_status=$?
17788 grep -v '^ *+' conftest.er1 >conftest.err
17789 rm -f conftest.er1
17790 cat conftest.err >&5
17791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17792 (exit $ac_status); } && {
17793 test -z "$ac_c_werror_flag" ||
17794 test ! -s conftest.err
17795 } && test -s conftest.$ac_objext; then
17797 cat >>confdefs.h <<\_ACEOF
17798 #define GETPGRP_HAVE_ARG 1
17799 _ACEOF
17802 else
17803 echo "$as_me: failed program was:" >&5
17804 sed 's/^/| /' conftest.$ac_ext >&5
17809 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17812 done
17815 for ac_func in setpgrp
17817 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17818 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17819 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17820 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17821 echo $ECHO_N "(cached) $ECHO_C" >&6
17822 else
17823 cat >conftest.$ac_ext <<_ACEOF
17824 /* confdefs.h. */
17825 _ACEOF
17826 cat confdefs.h >>conftest.$ac_ext
17827 cat >>conftest.$ac_ext <<_ACEOF
17828 /* end confdefs.h. */
17829 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17830 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17831 #define $ac_func innocuous_$ac_func
17833 /* System header to define __stub macros and hopefully few prototypes,
17834 which can conflict with char $ac_func (); below.
17835 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17836 <limits.h> exists even on freestanding compilers. */
17838 #ifdef __STDC__
17839 # include <limits.h>
17840 #else
17841 # include <assert.h>
17842 #endif
17844 #undef $ac_func
17846 /* Override any GCC internal prototype to avoid an error.
17847 Use char because int might match the return type of a GCC
17848 builtin and then its argument prototype would still apply. */
17849 #ifdef __cplusplus
17850 extern "C"
17851 #endif
17852 char $ac_func ();
17853 /* The GNU C library defines this for functions which it implements
17854 to always fail with ENOSYS. Some functions are actually named
17855 something starting with __ and the normal name is an alias. */
17856 #if defined __stub_$ac_func || defined __stub___$ac_func
17857 choke me
17858 #endif
17861 main ()
17863 return $ac_func ();
17865 return 0;
17867 _ACEOF
17868 rm -f conftest.$ac_objext conftest$ac_exeext
17869 if { (ac_try="$ac_link"
17870 case "(($ac_try" in
17871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17872 *) ac_try_echo=$ac_try;;
17873 esac
17874 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17875 (eval "$ac_link") 2>conftest.er1
17876 ac_status=$?
17877 grep -v '^ *+' conftest.er1 >conftest.err
17878 rm -f conftest.er1
17879 cat conftest.err >&5
17880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17881 (exit $ac_status); } && {
17882 test -z "$ac_c_werror_flag" ||
17883 test ! -s conftest.err
17884 } && test -s conftest$ac_exeext &&
17885 $as_test_x conftest$ac_exeext; then
17886 eval "$as_ac_var=yes"
17887 else
17888 echo "$as_me: failed program was:" >&5
17889 sed 's/^/| /' conftest.$ac_ext >&5
17891 eval "$as_ac_var=no"
17894 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17895 conftest$ac_exeext conftest.$ac_ext
17897 ac_res=`eval echo '${'$as_ac_var'}'`
17898 { echo "$as_me:$LINENO: result: $ac_res" >&5
17899 echo "${ECHO_T}$ac_res" >&6; }
17900 if test `eval echo '${'$as_ac_var'}'` = yes; then
17901 cat >>confdefs.h <<_ACEOF
17902 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17903 _ACEOF
17904 cat >conftest.$ac_ext <<_ACEOF
17905 /* confdefs.h. */
17906 _ACEOF
17907 cat confdefs.h >>conftest.$ac_ext
17908 cat >>conftest.$ac_ext <<_ACEOF
17909 /* end confdefs.h. */
17910 #include <unistd.h>
17912 main ()
17914 setpgrp(0,0);
17916 return 0;
17918 _ACEOF
17919 rm -f conftest.$ac_objext
17920 if { (ac_try="$ac_compile"
17921 case "(($ac_try" in
17922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17923 *) ac_try_echo=$ac_try;;
17924 esac
17925 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17926 (eval "$ac_compile") 2>conftest.er1
17927 ac_status=$?
17928 grep -v '^ *+' conftest.er1 >conftest.err
17929 rm -f conftest.er1
17930 cat conftest.err >&5
17931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17932 (exit $ac_status); } && {
17933 test -z "$ac_c_werror_flag" ||
17934 test ! -s conftest.err
17935 } && test -s conftest.$ac_objext; then
17937 cat >>confdefs.h <<\_ACEOF
17938 #define SETPGRP_HAVE_ARG 1
17939 _ACEOF
17942 else
17943 echo "$as_me: failed program was:" >&5
17944 sed 's/^/| /' conftest.$ac_ext >&5
17949 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17952 done
17955 for ac_func in gettimeofday
17957 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17958 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17959 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17960 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17961 echo $ECHO_N "(cached) $ECHO_C" >&6
17962 else
17963 cat >conftest.$ac_ext <<_ACEOF
17964 /* confdefs.h. */
17965 _ACEOF
17966 cat confdefs.h >>conftest.$ac_ext
17967 cat >>conftest.$ac_ext <<_ACEOF
17968 /* end confdefs.h. */
17969 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17970 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17971 #define $ac_func innocuous_$ac_func
17973 /* System header to define __stub macros and hopefully few prototypes,
17974 which can conflict with char $ac_func (); below.
17975 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17976 <limits.h> exists even on freestanding compilers. */
17978 #ifdef __STDC__
17979 # include <limits.h>
17980 #else
17981 # include <assert.h>
17982 #endif
17984 #undef $ac_func
17986 /* Override any GCC internal prototype to avoid an error.
17987 Use char because int might match the return type of a GCC
17988 builtin and then its argument prototype would still apply. */
17989 #ifdef __cplusplus
17990 extern "C"
17991 #endif
17992 char $ac_func ();
17993 /* The GNU C library defines this for functions which it implements
17994 to always fail with ENOSYS. Some functions are actually named
17995 something starting with __ and the normal name is an alias. */
17996 #if defined __stub_$ac_func || defined __stub___$ac_func
17997 choke me
17998 #endif
18001 main ()
18003 return $ac_func ();
18005 return 0;
18007 _ACEOF
18008 rm -f conftest.$ac_objext conftest$ac_exeext
18009 if { (ac_try="$ac_link"
18010 case "(($ac_try" in
18011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18012 *) ac_try_echo=$ac_try;;
18013 esac
18014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18015 (eval "$ac_link") 2>conftest.er1
18016 ac_status=$?
18017 grep -v '^ *+' conftest.er1 >conftest.err
18018 rm -f conftest.er1
18019 cat conftest.err >&5
18020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18021 (exit $ac_status); } && {
18022 test -z "$ac_c_werror_flag" ||
18023 test ! -s conftest.err
18024 } && test -s conftest$ac_exeext &&
18025 $as_test_x conftest$ac_exeext; then
18026 eval "$as_ac_var=yes"
18027 else
18028 echo "$as_me: failed program was:" >&5
18029 sed 's/^/| /' conftest.$ac_ext >&5
18031 eval "$as_ac_var=no"
18034 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18035 conftest$ac_exeext conftest.$ac_ext
18037 ac_res=`eval echo '${'$as_ac_var'}'`
18038 { echo "$as_me:$LINENO: result: $ac_res" >&5
18039 echo "${ECHO_T}$ac_res" >&6; }
18040 if test `eval echo '${'$as_ac_var'}'` = yes; then
18041 cat >>confdefs.h <<_ACEOF
18042 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18043 _ACEOF
18044 cat >conftest.$ac_ext <<_ACEOF
18045 /* confdefs.h. */
18046 _ACEOF
18047 cat confdefs.h >>conftest.$ac_ext
18048 cat >>conftest.$ac_ext <<_ACEOF
18049 /* end confdefs.h. */
18050 #include <sys/time.h>
18052 main ()
18054 gettimeofday((struct timeval*)0,(struct timezone*)0);
18056 return 0;
18058 _ACEOF
18059 rm -f conftest.$ac_objext
18060 if { (ac_try="$ac_compile"
18061 case "(($ac_try" in
18062 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18063 *) ac_try_echo=$ac_try;;
18064 esac
18065 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18066 (eval "$ac_compile") 2>conftest.er1
18067 ac_status=$?
18068 grep -v '^ *+' conftest.er1 >conftest.err
18069 rm -f conftest.er1
18070 cat conftest.err >&5
18071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18072 (exit $ac_status); } && {
18073 test -z "$ac_c_werror_flag" ||
18074 test ! -s conftest.err
18075 } && test -s conftest.$ac_objext; then
18077 else
18078 echo "$as_me: failed program was:" >&5
18079 sed 's/^/| /' conftest.$ac_ext >&5
18082 cat >>confdefs.h <<\_ACEOF
18083 #define GETTIMEOFDAY_NO_TZ 1
18084 _ACEOF
18089 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18092 done
18095 { echo "$as_me:$LINENO: checking for major" >&5
18096 echo $ECHO_N "checking for major... $ECHO_C" >&6; }
18097 cat >conftest.$ac_ext <<_ACEOF
18098 /* confdefs.h. */
18099 _ACEOF
18100 cat confdefs.h >>conftest.$ac_ext
18101 cat >>conftest.$ac_ext <<_ACEOF
18102 /* end confdefs.h. */
18104 #if defined(MAJOR_IN_MKDEV)
18105 #include <sys/mkdev.h>
18106 #elif defined(MAJOR_IN_SYSMACROS)
18107 #include <sys/sysmacros.h>
18108 #else
18109 #include <sys/types.h>
18110 #endif
18113 main ()
18116 makedev(major(0),minor(0));
18119 return 0;
18121 _ACEOF
18122 rm -f conftest.$ac_objext conftest$ac_exeext
18123 if { (ac_try="$ac_link"
18124 case "(($ac_try" in
18125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18126 *) ac_try_echo=$ac_try;;
18127 esac
18128 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18129 (eval "$ac_link") 2>conftest.er1
18130 ac_status=$?
18131 grep -v '^ *+' conftest.er1 >conftest.err
18132 rm -f conftest.er1
18133 cat conftest.err >&5
18134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18135 (exit $ac_status); } && {
18136 test -z "$ac_c_werror_flag" ||
18137 test ! -s conftest.err
18138 } && test -s conftest$ac_exeext &&
18139 $as_test_x conftest$ac_exeext; then
18142 cat >>confdefs.h <<\_ACEOF
18143 #define HAVE_DEVICE_MACROS 1
18144 _ACEOF
18146 { echo "$as_me:$LINENO: result: yes" >&5
18147 echo "${ECHO_T}yes" >&6; }
18149 else
18150 echo "$as_me: failed program was:" >&5
18151 sed 's/^/| /' conftest.$ac_ext >&5
18154 { echo "$as_me:$LINENO: result: no" >&5
18155 echo "${ECHO_T}no" >&6; }
18159 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18160 conftest$ac_exeext conftest.$ac_ext
18162 # On OSF/1 V5.1, getaddrinfo is available, but a define
18163 # for [no]getaddrinfo in netdb.h.
18164 { echo "$as_me:$LINENO: checking for getaddrinfo" >&5
18165 echo $ECHO_N "checking for getaddrinfo... $ECHO_C" >&6; }
18166 cat >conftest.$ac_ext <<_ACEOF
18167 /* confdefs.h. */
18168 _ACEOF
18169 cat confdefs.h >>conftest.$ac_ext
18170 cat >>conftest.$ac_ext <<_ACEOF
18171 /* end confdefs.h. */
18173 #include <sys/types.h>
18174 #include <sys/socket.h>
18175 #include <netdb.h>
18176 #include <stdio.h>
18179 main ()
18182 getaddrinfo(NULL, NULL, NULL, NULL);
18185 return 0;
18187 _ACEOF
18188 rm -f conftest.$ac_objext conftest$ac_exeext
18189 if { (ac_try="$ac_link"
18190 case "(($ac_try" in
18191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18192 *) ac_try_echo=$ac_try;;
18193 esac
18194 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18195 (eval "$ac_link") 2>conftest.er1
18196 ac_status=$?
18197 grep -v '^ *+' conftest.er1 >conftest.err
18198 rm -f conftest.er1
18199 cat conftest.err >&5
18200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18201 (exit $ac_status); } && {
18202 test -z "$ac_c_werror_flag" ||
18203 test ! -s conftest.err
18204 } && test -s conftest$ac_exeext &&
18205 $as_test_x conftest$ac_exeext; then
18207 { echo "$as_me:$LINENO: result: yes" >&5
18208 echo "${ECHO_T}yes" >&6; }
18209 { echo "$as_me:$LINENO: checking getaddrinfo bug" >&5
18210 echo $ECHO_N "checking getaddrinfo bug... $ECHO_C" >&6; }
18211 if test "$cross_compiling" = yes; then
18212 { echo "$as_me:$LINENO: result: buggy" >&5
18213 echo "${ECHO_T}buggy" >&6; }
18214 buggygetaddrinfo=yes
18215 else
18216 cat >conftest.$ac_ext <<_ACEOF
18217 /* confdefs.h. */
18218 _ACEOF
18219 cat confdefs.h >>conftest.$ac_ext
18220 cat >>conftest.$ac_ext <<_ACEOF
18221 /* end confdefs.h. */
18223 #include <sys/types.h>
18224 #include <netdb.h>
18225 #include <string.h>
18226 #include <sys/socket.h>
18227 #include <netinet/in.h>
18229 main()
18231 int passive, gaierr, inet4 = 0, inet6 = 0;
18232 struct addrinfo hints, *ai, *aitop;
18233 char straddr[INET6_ADDRSTRLEN], strport[16];
18235 for (passive = 0; passive <= 1; passive++) {
18236 memset(&hints, 0, sizeof(hints));
18237 hints.ai_family = AF_UNSPEC;
18238 hints.ai_flags = passive ? AI_PASSIVE : 0;
18239 hints.ai_socktype = SOCK_STREAM;
18240 hints.ai_protocol = IPPROTO_TCP;
18241 if ((gaierr = getaddrinfo(NULL, "54321", &hints, &aitop)) != 0) {
18242 (void)gai_strerror(gaierr);
18243 goto bad;
18245 for (ai = aitop; ai; ai = ai->ai_next) {
18246 if (ai->ai_addr == NULL ||
18247 ai->ai_addrlen == 0 ||
18248 getnameinfo(ai->ai_addr, ai->ai_addrlen,
18249 straddr, sizeof(straddr), strport, sizeof(strport),
18250 NI_NUMERICHOST|NI_NUMERICSERV) != 0) {
18251 goto bad;
18253 switch (ai->ai_family) {
18254 case AF_INET:
18255 if (strcmp(strport, "54321") != 0) {
18256 goto bad;
18258 if (passive) {
18259 if (strcmp(straddr, "0.0.0.0") != 0) {
18260 goto bad;
18262 } else {
18263 if (strcmp(straddr, "127.0.0.1") != 0) {
18264 goto bad;
18267 inet4++;
18268 break;
18269 case AF_INET6:
18270 if (strcmp(strport, "54321") != 0) {
18271 goto bad;
18273 if (passive) {
18274 if (strcmp(straddr, "::") != 0) {
18275 goto bad;
18277 } else {
18278 if (strcmp(straddr, "::1") != 0) {
18279 goto bad;
18282 inet6++;
18283 break;
18284 case AF_UNSPEC:
18285 goto bad;
18286 break;
18287 default:
18288 /* another family support? */
18289 break;
18294 if (!(inet4 == 0 || inet4 == 2))
18295 goto bad;
18296 if (!(inet6 == 0 || inet6 == 2))
18297 goto bad;
18299 if (aitop)
18300 freeaddrinfo(aitop);
18301 exit(0);
18303 bad:
18304 if (aitop)
18305 freeaddrinfo(aitop);
18306 exit(1);
18309 _ACEOF
18310 rm -f conftest$ac_exeext
18311 if { (ac_try="$ac_link"
18312 case "(($ac_try" in
18313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18314 *) ac_try_echo=$ac_try;;
18315 esac
18316 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18317 (eval "$ac_link") 2>&5
18318 ac_status=$?
18319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18320 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18321 { (case "(($ac_try" in
18322 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18323 *) ac_try_echo=$ac_try;;
18324 esac
18325 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18326 (eval "$ac_try") 2>&5
18327 ac_status=$?
18328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18329 (exit $ac_status); }; }; then
18330 { echo "$as_me:$LINENO: result: good" >&5
18331 echo "${ECHO_T}good" >&6; }
18332 buggygetaddrinfo=no
18333 else
18334 echo "$as_me: program exited with status $ac_status" >&5
18335 echo "$as_me: failed program was:" >&5
18336 sed 's/^/| /' conftest.$ac_ext >&5
18338 ( exit $ac_status )
18339 { echo "$as_me:$LINENO: result: buggy" >&5
18340 echo "${ECHO_T}buggy" >&6; }
18341 buggygetaddrinfo=yes
18343 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18347 else
18348 echo "$as_me: failed program was:" >&5
18349 sed 's/^/| /' conftest.$ac_ext >&5
18352 { echo "$as_me:$LINENO: result: no" >&5
18353 echo "${ECHO_T}no" >&6; }
18354 buggygetaddrinfo=yes
18358 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18359 conftest$ac_exeext conftest.$ac_ext
18361 if test "$buggygetaddrinfo" = "yes"; then
18362 if test "$ipv6" = "yes"; then
18363 echo 'Fatal: You must get working getaddrinfo() function.'
18364 echo ' or you can specify "--disable-ipv6"'.
18365 exit 1
18367 else
18369 cat >>confdefs.h <<\_ACEOF
18370 #define HAVE_GETADDRINFO 1
18371 _ACEOF
18375 for ac_func in getnameinfo
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
18466 done
18469 # checks for structures
18470 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
18471 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
18472 if test "${ac_cv_header_time+set}" = set; then
18473 echo $ECHO_N "(cached) $ECHO_C" >&6
18474 else
18475 cat >conftest.$ac_ext <<_ACEOF
18476 /* confdefs.h. */
18477 _ACEOF
18478 cat confdefs.h >>conftest.$ac_ext
18479 cat >>conftest.$ac_ext <<_ACEOF
18480 /* end confdefs.h. */
18481 #include <sys/types.h>
18482 #include <sys/time.h>
18483 #include <time.h>
18486 main ()
18488 if ((struct tm *) 0)
18489 return 0;
18491 return 0;
18493 _ACEOF
18494 rm -f conftest.$ac_objext
18495 if { (ac_try="$ac_compile"
18496 case "(($ac_try" in
18497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18498 *) ac_try_echo=$ac_try;;
18499 esac
18500 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18501 (eval "$ac_compile") 2>conftest.er1
18502 ac_status=$?
18503 grep -v '^ *+' conftest.er1 >conftest.err
18504 rm -f conftest.er1
18505 cat conftest.err >&5
18506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18507 (exit $ac_status); } && {
18508 test -z "$ac_c_werror_flag" ||
18509 test ! -s conftest.err
18510 } && test -s conftest.$ac_objext; then
18511 ac_cv_header_time=yes
18512 else
18513 echo "$as_me: failed program was:" >&5
18514 sed 's/^/| /' conftest.$ac_ext >&5
18516 ac_cv_header_time=no
18519 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18521 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
18522 echo "${ECHO_T}$ac_cv_header_time" >&6; }
18523 if test $ac_cv_header_time = yes; then
18525 cat >>confdefs.h <<\_ACEOF
18526 #define TIME_WITH_SYS_TIME 1
18527 _ACEOF
18531 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
18532 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
18533 if test "${ac_cv_struct_tm+set}" = set; then
18534 echo $ECHO_N "(cached) $ECHO_C" >&6
18535 else
18536 cat >conftest.$ac_ext <<_ACEOF
18537 /* confdefs.h. */
18538 _ACEOF
18539 cat confdefs.h >>conftest.$ac_ext
18540 cat >>conftest.$ac_ext <<_ACEOF
18541 /* end confdefs.h. */
18542 #include <sys/types.h>
18543 #include <time.h>
18546 main ()
18548 struct tm tm;
18549 int *p = &tm.tm_sec;
18550 return !p;
18552 return 0;
18554 _ACEOF
18555 rm -f conftest.$ac_objext
18556 if { (ac_try="$ac_compile"
18557 case "(($ac_try" in
18558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18559 *) ac_try_echo=$ac_try;;
18560 esac
18561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18562 (eval "$ac_compile") 2>conftest.er1
18563 ac_status=$?
18564 grep -v '^ *+' conftest.er1 >conftest.err
18565 rm -f conftest.er1
18566 cat conftest.err >&5
18567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18568 (exit $ac_status); } && {
18569 test -z "$ac_c_werror_flag" ||
18570 test ! -s conftest.err
18571 } && test -s conftest.$ac_objext; then
18572 ac_cv_struct_tm=time.h
18573 else
18574 echo "$as_me: failed program was:" >&5
18575 sed 's/^/| /' conftest.$ac_ext >&5
18577 ac_cv_struct_tm=sys/time.h
18580 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18582 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
18583 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
18584 if test $ac_cv_struct_tm = sys/time.h; then
18586 cat >>confdefs.h <<\_ACEOF
18587 #define TM_IN_SYS_TIME 1
18588 _ACEOF
18592 { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
18593 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
18594 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
18595 echo $ECHO_N "(cached) $ECHO_C" >&6
18596 else
18597 cat >conftest.$ac_ext <<_ACEOF
18598 /* confdefs.h. */
18599 _ACEOF
18600 cat confdefs.h >>conftest.$ac_ext
18601 cat >>conftest.$ac_ext <<_ACEOF
18602 /* end confdefs.h. */
18603 #include <sys/types.h>
18604 #include <$ac_cv_struct_tm>
18608 main ()
18610 static struct tm ac_aggr;
18611 if (ac_aggr.tm_zone)
18612 return 0;
18614 return 0;
18616 _ACEOF
18617 rm -f conftest.$ac_objext
18618 if { (ac_try="$ac_compile"
18619 case "(($ac_try" in
18620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18621 *) ac_try_echo=$ac_try;;
18622 esac
18623 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18624 (eval "$ac_compile") 2>conftest.er1
18625 ac_status=$?
18626 grep -v '^ *+' conftest.er1 >conftest.err
18627 rm -f conftest.er1
18628 cat conftest.err >&5
18629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18630 (exit $ac_status); } && {
18631 test -z "$ac_c_werror_flag" ||
18632 test ! -s conftest.err
18633 } && test -s conftest.$ac_objext; then
18634 ac_cv_member_struct_tm_tm_zone=yes
18635 else
18636 echo "$as_me: failed program was:" >&5
18637 sed 's/^/| /' conftest.$ac_ext >&5
18639 cat >conftest.$ac_ext <<_ACEOF
18640 /* confdefs.h. */
18641 _ACEOF
18642 cat confdefs.h >>conftest.$ac_ext
18643 cat >>conftest.$ac_ext <<_ACEOF
18644 /* end confdefs.h. */
18645 #include <sys/types.h>
18646 #include <$ac_cv_struct_tm>
18650 main ()
18652 static struct tm ac_aggr;
18653 if (sizeof ac_aggr.tm_zone)
18654 return 0;
18656 return 0;
18658 _ACEOF
18659 rm -f conftest.$ac_objext
18660 if { (ac_try="$ac_compile"
18661 case "(($ac_try" in
18662 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18663 *) ac_try_echo=$ac_try;;
18664 esac
18665 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18666 (eval "$ac_compile") 2>conftest.er1
18667 ac_status=$?
18668 grep -v '^ *+' conftest.er1 >conftest.err
18669 rm -f conftest.er1
18670 cat conftest.err >&5
18671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18672 (exit $ac_status); } && {
18673 test -z "$ac_c_werror_flag" ||
18674 test ! -s conftest.err
18675 } && test -s conftest.$ac_objext; then
18676 ac_cv_member_struct_tm_tm_zone=yes
18677 else
18678 echo "$as_me: failed program was:" >&5
18679 sed 's/^/| /' conftest.$ac_ext >&5
18681 ac_cv_member_struct_tm_tm_zone=no
18684 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18687 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18689 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
18690 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
18691 if test $ac_cv_member_struct_tm_tm_zone = yes; then
18693 cat >>confdefs.h <<_ACEOF
18694 #define HAVE_STRUCT_TM_TM_ZONE 1
18695 _ACEOF
18700 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
18702 cat >>confdefs.h <<\_ACEOF
18703 #define HAVE_TM_ZONE 1
18704 _ACEOF
18706 else
18707 { echo "$as_me:$LINENO: checking whether tzname is declared" >&5
18708 echo $ECHO_N "checking whether tzname is declared... $ECHO_C" >&6; }
18709 if test "${ac_cv_have_decl_tzname+set}" = set; then
18710 echo $ECHO_N "(cached) $ECHO_C" >&6
18711 else
18712 cat >conftest.$ac_ext <<_ACEOF
18713 /* confdefs.h. */
18714 _ACEOF
18715 cat confdefs.h >>conftest.$ac_ext
18716 cat >>conftest.$ac_ext <<_ACEOF
18717 /* end confdefs.h. */
18718 #include <time.h>
18721 main ()
18723 #ifndef tzname
18724 (void) tzname;
18725 #endif
18728 return 0;
18730 _ACEOF
18731 rm -f conftest.$ac_objext
18732 if { (ac_try="$ac_compile"
18733 case "(($ac_try" in
18734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18735 *) ac_try_echo=$ac_try;;
18736 esac
18737 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18738 (eval "$ac_compile") 2>conftest.er1
18739 ac_status=$?
18740 grep -v '^ *+' conftest.er1 >conftest.err
18741 rm -f conftest.er1
18742 cat conftest.err >&5
18743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18744 (exit $ac_status); } && {
18745 test -z "$ac_c_werror_flag" ||
18746 test ! -s conftest.err
18747 } && test -s conftest.$ac_objext; then
18748 ac_cv_have_decl_tzname=yes
18749 else
18750 echo "$as_me: failed program was:" >&5
18751 sed 's/^/| /' conftest.$ac_ext >&5
18753 ac_cv_have_decl_tzname=no
18756 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18758 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
18759 echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; }
18760 if test $ac_cv_have_decl_tzname = yes; then
18762 cat >>confdefs.h <<_ACEOF
18763 #define HAVE_DECL_TZNAME 1
18764 _ACEOF
18767 else
18768 cat >>confdefs.h <<_ACEOF
18769 #define HAVE_DECL_TZNAME 0
18770 _ACEOF
18776 { echo "$as_me:$LINENO: checking for tzname" >&5
18777 echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
18778 if test "${ac_cv_var_tzname+set}" = set; then
18779 echo $ECHO_N "(cached) $ECHO_C" >&6
18780 else
18781 cat >conftest.$ac_ext <<_ACEOF
18782 /* confdefs.h. */
18783 _ACEOF
18784 cat confdefs.h >>conftest.$ac_ext
18785 cat >>conftest.$ac_ext <<_ACEOF
18786 /* end confdefs.h. */
18787 #include <time.h>
18788 #if !HAVE_DECL_TZNAME
18789 extern char *tzname[];
18790 #endif
18793 main ()
18795 return tzname[0][0];
18797 return 0;
18799 _ACEOF
18800 rm -f conftest.$ac_objext conftest$ac_exeext
18801 if { (ac_try="$ac_link"
18802 case "(($ac_try" in
18803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18804 *) ac_try_echo=$ac_try;;
18805 esac
18806 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18807 (eval "$ac_link") 2>conftest.er1
18808 ac_status=$?
18809 grep -v '^ *+' conftest.er1 >conftest.err
18810 rm -f conftest.er1
18811 cat conftest.err >&5
18812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18813 (exit $ac_status); } && {
18814 test -z "$ac_c_werror_flag" ||
18815 test ! -s conftest.err
18816 } && test -s conftest$ac_exeext &&
18817 $as_test_x conftest$ac_exeext; then
18818 ac_cv_var_tzname=yes
18819 else
18820 echo "$as_me: failed program was:" >&5
18821 sed 's/^/| /' conftest.$ac_ext >&5
18823 ac_cv_var_tzname=no
18826 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18827 conftest$ac_exeext conftest.$ac_ext
18829 { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
18830 echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
18831 if test $ac_cv_var_tzname = yes; then
18833 cat >>confdefs.h <<\_ACEOF
18834 #define HAVE_TZNAME 1
18835 _ACEOF
18840 { echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
18841 echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6; }
18842 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
18843 echo $ECHO_N "(cached) $ECHO_C" >&6
18844 else
18845 cat >conftest.$ac_ext <<_ACEOF
18846 /* confdefs.h. */
18847 _ACEOF
18848 cat confdefs.h >>conftest.$ac_ext
18849 cat >>conftest.$ac_ext <<_ACEOF
18850 /* end confdefs.h. */
18851 $ac_includes_default
18853 main ()
18855 static struct stat ac_aggr;
18856 if (ac_aggr.st_rdev)
18857 return 0;
18859 return 0;
18861 _ACEOF
18862 rm -f conftest.$ac_objext
18863 if { (ac_try="$ac_compile"
18864 case "(($ac_try" in
18865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18866 *) ac_try_echo=$ac_try;;
18867 esac
18868 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18869 (eval "$ac_compile") 2>conftest.er1
18870 ac_status=$?
18871 grep -v '^ *+' conftest.er1 >conftest.err
18872 rm -f conftest.er1
18873 cat conftest.err >&5
18874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18875 (exit $ac_status); } && {
18876 test -z "$ac_c_werror_flag" ||
18877 test ! -s conftest.err
18878 } && test -s conftest.$ac_objext; then
18879 ac_cv_member_struct_stat_st_rdev=yes
18880 else
18881 echo "$as_me: failed program was:" >&5
18882 sed 's/^/| /' conftest.$ac_ext >&5
18884 cat >conftest.$ac_ext <<_ACEOF
18885 /* confdefs.h. */
18886 _ACEOF
18887 cat confdefs.h >>conftest.$ac_ext
18888 cat >>conftest.$ac_ext <<_ACEOF
18889 /* end confdefs.h. */
18890 $ac_includes_default
18892 main ()
18894 static struct stat ac_aggr;
18895 if (sizeof ac_aggr.st_rdev)
18896 return 0;
18898 return 0;
18900 _ACEOF
18901 rm -f conftest.$ac_objext
18902 if { (ac_try="$ac_compile"
18903 case "(($ac_try" in
18904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18905 *) ac_try_echo=$ac_try;;
18906 esac
18907 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18908 (eval "$ac_compile") 2>conftest.er1
18909 ac_status=$?
18910 grep -v '^ *+' conftest.er1 >conftest.err
18911 rm -f conftest.er1
18912 cat conftest.err >&5
18913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18914 (exit $ac_status); } && {
18915 test -z "$ac_c_werror_flag" ||
18916 test ! -s conftest.err
18917 } && test -s conftest.$ac_objext; then
18918 ac_cv_member_struct_stat_st_rdev=yes
18919 else
18920 echo "$as_me: failed program was:" >&5
18921 sed 's/^/| /' conftest.$ac_ext >&5
18923 ac_cv_member_struct_stat_st_rdev=no
18926 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18929 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18931 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
18932 echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6; }
18933 if test $ac_cv_member_struct_stat_st_rdev = yes; then
18935 cat >>confdefs.h <<_ACEOF
18936 #define HAVE_STRUCT_STAT_ST_RDEV 1
18937 _ACEOF
18942 { echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
18943 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6; }
18944 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
18945 echo $ECHO_N "(cached) $ECHO_C" >&6
18946 else
18947 cat >conftest.$ac_ext <<_ACEOF
18948 /* confdefs.h. */
18949 _ACEOF
18950 cat confdefs.h >>conftest.$ac_ext
18951 cat >>conftest.$ac_ext <<_ACEOF
18952 /* end confdefs.h. */
18953 $ac_includes_default
18955 main ()
18957 static struct stat ac_aggr;
18958 if (ac_aggr.st_blksize)
18959 return 0;
18961 return 0;
18963 _ACEOF
18964 rm -f conftest.$ac_objext
18965 if { (ac_try="$ac_compile"
18966 case "(($ac_try" in
18967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18968 *) ac_try_echo=$ac_try;;
18969 esac
18970 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18971 (eval "$ac_compile") 2>conftest.er1
18972 ac_status=$?
18973 grep -v '^ *+' conftest.er1 >conftest.err
18974 rm -f conftest.er1
18975 cat conftest.err >&5
18976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18977 (exit $ac_status); } && {
18978 test -z "$ac_c_werror_flag" ||
18979 test ! -s conftest.err
18980 } && test -s conftest.$ac_objext; then
18981 ac_cv_member_struct_stat_st_blksize=yes
18982 else
18983 echo "$as_me: failed program was:" >&5
18984 sed 's/^/| /' conftest.$ac_ext >&5
18986 cat >conftest.$ac_ext <<_ACEOF
18987 /* confdefs.h. */
18988 _ACEOF
18989 cat confdefs.h >>conftest.$ac_ext
18990 cat >>conftest.$ac_ext <<_ACEOF
18991 /* end confdefs.h. */
18992 $ac_includes_default
18994 main ()
18996 static struct stat ac_aggr;
18997 if (sizeof ac_aggr.st_blksize)
18998 return 0;
19000 return 0;
19002 _ACEOF
19003 rm -f conftest.$ac_objext
19004 if { (ac_try="$ac_compile"
19005 case "(($ac_try" in
19006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19007 *) ac_try_echo=$ac_try;;
19008 esac
19009 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19010 (eval "$ac_compile") 2>conftest.er1
19011 ac_status=$?
19012 grep -v '^ *+' conftest.er1 >conftest.err
19013 rm -f conftest.er1
19014 cat conftest.err >&5
19015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19016 (exit $ac_status); } && {
19017 test -z "$ac_c_werror_flag" ||
19018 test ! -s conftest.err
19019 } && test -s conftest.$ac_objext; then
19020 ac_cv_member_struct_stat_st_blksize=yes
19021 else
19022 echo "$as_me: failed program was:" >&5
19023 sed 's/^/| /' conftest.$ac_ext >&5
19025 ac_cv_member_struct_stat_st_blksize=no
19028 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19031 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19033 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
19034 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6; }
19035 if test $ac_cv_member_struct_stat_st_blksize = yes; then
19037 cat >>confdefs.h <<_ACEOF
19038 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
19039 _ACEOF
19044 { echo "$as_me:$LINENO: checking for struct stat.st_flags" >&5
19045 echo $ECHO_N "checking for struct stat.st_flags... $ECHO_C" >&6; }
19046 if test "${ac_cv_member_struct_stat_st_flags+set}" = set; then
19047 echo $ECHO_N "(cached) $ECHO_C" >&6
19048 else
19049 cat >conftest.$ac_ext <<_ACEOF
19050 /* confdefs.h. */
19051 _ACEOF
19052 cat confdefs.h >>conftest.$ac_ext
19053 cat >>conftest.$ac_ext <<_ACEOF
19054 /* end confdefs.h. */
19055 $ac_includes_default
19057 main ()
19059 static struct stat ac_aggr;
19060 if (ac_aggr.st_flags)
19061 return 0;
19063 return 0;
19065 _ACEOF
19066 rm -f conftest.$ac_objext
19067 if { (ac_try="$ac_compile"
19068 case "(($ac_try" in
19069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19070 *) ac_try_echo=$ac_try;;
19071 esac
19072 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19073 (eval "$ac_compile") 2>conftest.er1
19074 ac_status=$?
19075 grep -v '^ *+' conftest.er1 >conftest.err
19076 rm -f conftest.er1
19077 cat conftest.err >&5
19078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19079 (exit $ac_status); } && {
19080 test -z "$ac_c_werror_flag" ||
19081 test ! -s conftest.err
19082 } && test -s conftest.$ac_objext; then
19083 ac_cv_member_struct_stat_st_flags=yes
19084 else
19085 echo "$as_me: failed program was:" >&5
19086 sed 's/^/| /' conftest.$ac_ext >&5
19088 cat >conftest.$ac_ext <<_ACEOF
19089 /* confdefs.h. */
19090 _ACEOF
19091 cat confdefs.h >>conftest.$ac_ext
19092 cat >>conftest.$ac_ext <<_ACEOF
19093 /* end confdefs.h. */
19094 $ac_includes_default
19096 main ()
19098 static struct stat ac_aggr;
19099 if (sizeof ac_aggr.st_flags)
19100 return 0;
19102 return 0;
19104 _ACEOF
19105 rm -f conftest.$ac_objext
19106 if { (ac_try="$ac_compile"
19107 case "(($ac_try" in
19108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19109 *) ac_try_echo=$ac_try;;
19110 esac
19111 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19112 (eval "$ac_compile") 2>conftest.er1
19113 ac_status=$?
19114 grep -v '^ *+' conftest.er1 >conftest.err
19115 rm -f conftest.er1
19116 cat conftest.err >&5
19117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19118 (exit $ac_status); } && {
19119 test -z "$ac_c_werror_flag" ||
19120 test ! -s conftest.err
19121 } && test -s conftest.$ac_objext; then
19122 ac_cv_member_struct_stat_st_flags=yes
19123 else
19124 echo "$as_me: failed program was:" >&5
19125 sed 's/^/| /' conftest.$ac_ext >&5
19127 ac_cv_member_struct_stat_st_flags=no
19130 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19133 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19135 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_flags" >&5
19136 echo "${ECHO_T}$ac_cv_member_struct_stat_st_flags" >&6; }
19137 if test $ac_cv_member_struct_stat_st_flags = yes; then
19139 cat >>confdefs.h <<_ACEOF
19140 #define HAVE_STRUCT_STAT_ST_FLAGS 1
19141 _ACEOF
19146 { echo "$as_me:$LINENO: checking for struct stat.st_gen" >&5
19147 echo $ECHO_N "checking for struct stat.st_gen... $ECHO_C" >&6; }
19148 if test "${ac_cv_member_struct_stat_st_gen+set}" = set; then
19149 echo $ECHO_N "(cached) $ECHO_C" >&6
19150 else
19151 cat >conftest.$ac_ext <<_ACEOF
19152 /* confdefs.h. */
19153 _ACEOF
19154 cat confdefs.h >>conftest.$ac_ext
19155 cat >>conftest.$ac_ext <<_ACEOF
19156 /* end confdefs.h. */
19157 $ac_includes_default
19159 main ()
19161 static struct stat ac_aggr;
19162 if (ac_aggr.st_gen)
19163 return 0;
19165 return 0;
19167 _ACEOF
19168 rm -f conftest.$ac_objext
19169 if { (ac_try="$ac_compile"
19170 case "(($ac_try" in
19171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19172 *) ac_try_echo=$ac_try;;
19173 esac
19174 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19175 (eval "$ac_compile") 2>conftest.er1
19176 ac_status=$?
19177 grep -v '^ *+' conftest.er1 >conftest.err
19178 rm -f conftest.er1
19179 cat conftest.err >&5
19180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19181 (exit $ac_status); } && {
19182 test -z "$ac_c_werror_flag" ||
19183 test ! -s conftest.err
19184 } && test -s conftest.$ac_objext; then
19185 ac_cv_member_struct_stat_st_gen=yes
19186 else
19187 echo "$as_me: failed program was:" >&5
19188 sed 's/^/| /' conftest.$ac_ext >&5
19190 cat >conftest.$ac_ext <<_ACEOF
19191 /* confdefs.h. */
19192 _ACEOF
19193 cat confdefs.h >>conftest.$ac_ext
19194 cat >>conftest.$ac_ext <<_ACEOF
19195 /* end confdefs.h. */
19196 $ac_includes_default
19198 main ()
19200 static struct stat ac_aggr;
19201 if (sizeof ac_aggr.st_gen)
19202 return 0;
19204 return 0;
19206 _ACEOF
19207 rm -f conftest.$ac_objext
19208 if { (ac_try="$ac_compile"
19209 case "(($ac_try" in
19210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19211 *) ac_try_echo=$ac_try;;
19212 esac
19213 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19214 (eval "$ac_compile") 2>conftest.er1
19215 ac_status=$?
19216 grep -v '^ *+' conftest.er1 >conftest.err
19217 rm -f conftest.er1
19218 cat conftest.err >&5
19219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19220 (exit $ac_status); } && {
19221 test -z "$ac_c_werror_flag" ||
19222 test ! -s conftest.err
19223 } && test -s conftest.$ac_objext; then
19224 ac_cv_member_struct_stat_st_gen=yes
19225 else
19226 echo "$as_me: failed program was:" >&5
19227 sed 's/^/| /' conftest.$ac_ext >&5
19229 ac_cv_member_struct_stat_st_gen=no
19232 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19235 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19237 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_gen" >&5
19238 echo "${ECHO_T}$ac_cv_member_struct_stat_st_gen" >&6; }
19239 if test $ac_cv_member_struct_stat_st_gen = yes; then
19241 cat >>confdefs.h <<_ACEOF
19242 #define HAVE_STRUCT_STAT_ST_GEN 1
19243 _ACEOF
19248 { echo "$as_me:$LINENO: checking for struct stat.st_birthtime" >&5
19249 echo $ECHO_N "checking for struct stat.st_birthtime... $ECHO_C" >&6; }
19250 if test "${ac_cv_member_struct_stat_st_birthtime+set}" = set; then
19251 echo $ECHO_N "(cached) $ECHO_C" >&6
19252 else
19253 cat >conftest.$ac_ext <<_ACEOF
19254 /* confdefs.h. */
19255 _ACEOF
19256 cat confdefs.h >>conftest.$ac_ext
19257 cat >>conftest.$ac_ext <<_ACEOF
19258 /* end confdefs.h. */
19259 $ac_includes_default
19261 main ()
19263 static struct stat ac_aggr;
19264 if (ac_aggr.st_birthtime)
19265 return 0;
19267 return 0;
19269 _ACEOF
19270 rm -f conftest.$ac_objext
19271 if { (ac_try="$ac_compile"
19272 case "(($ac_try" in
19273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19274 *) ac_try_echo=$ac_try;;
19275 esac
19276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19277 (eval "$ac_compile") 2>conftest.er1
19278 ac_status=$?
19279 grep -v '^ *+' conftest.er1 >conftest.err
19280 rm -f conftest.er1
19281 cat conftest.err >&5
19282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19283 (exit $ac_status); } && {
19284 test -z "$ac_c_werror_flag" ||
19285 test ! -s conftest.err
19286 } && test -s conftest.$ac_objext; then
19287 ac_cv_member_struct_stat_st_birthtime=yes
19288 else
19289 echo "$as_me: failed program was:" >&5
19290 sed 's/^/| /' conftest.$ac_ext >&5
19292 cat >conftest.$ac_ext <<_ACEOF
19293 /* confdefs.h. */
19294 _ACEOF
19295 cat confdefs.h >>conftest.$ac_ext
19296 cat >>conftest.$ac_ext <<_ACEOF
19297 /* end confdefs.h. */
19298 $ac_includes_default
19300 main ()
19302 static struct stat ac_aggr;
19303 if (sizeof ac_aggr.st_birthtime)
19304 return 0;
19306 return 0;
19308 _ACEOF
19309 rm -f conftest.$ac_objext
19310 if { (ac_try="$ac_compile"
19311 case "(($ac_try" in
19312 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19313 *) ac_try_echo=$ac_try;;
19314 esac
19315 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19316 (eval "$ac_compile") 2>conftest.er1
19317 ac_status=$?
19318 grep -v '^ *+' conftest.er1 >conftest.err
19319 rm -f conftest.er1
19320 cat conftest.err >&5
19321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19322 (exit $ac_status); } && {
19323 test -z "$ac_c_werror_flag" ||
19324 test ! -s conftest.err
19325 } && test -s conftest.$ac_objext; then
19326 ac_cv_member_struct_stat_st_birthtime=yes
19327 else
19328 echo "$as_me: failed program was:" >&5
19329 sed 's/^/| /' conftest.$ac_ext >&5
19331 ac_cv_member_struct_stat_st_birthtime=no
19334 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19337 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19339 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_birthtime" >&5
19340 echo "${ECHO_T}$ac_cv_member_struct_stat_st_birthtime" >&6; }
19341 if test $ac_cv_member_struct_stat_st_birthtime = yes; then
19343 cat >>confdefs.h <<_ACEOF
19344 #define HAVE_STRUCT_STAT_ST_BIRTHTIME 1
19345 _ACEOF
19350 { echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
19351 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6; }
19352 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
19353 echo $ECHO_N "(cached) $ECHO_C" >&6
19354 else
19355 cat >conftest.$ac_ext <<_ACEOF
19356 /* confdefs.h. */
19357 _ACEOF
19358 cat confdefs.h >>conftest.$ac_ext
19359 cat >>conftest.$ac_ext <<_ACEOF
19360 /* end confdefs.h. */
19361 $ac_includes_default
19363 main ()
19365 static struct stat ac_aggr;
19366 if (ac_aggr.st_blocks)
19367 return 0;
19369 return 0;
19371 _ACEOF
19372 rm -f conftest.$ac_objext
19373 if { (ac_try="$ac_compile"
19374 case "(($ac_try" in
19375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19376 *) ac_try_echo=$ac_try;;
19377 esac
19378 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19379 (eval "$ac_compile") 2>conftest.er1
19380 ac_status=$?
19381 grep -v '^ *+' conftest.er1 >conftest.err
19382 rm -f conftest.er1
19383 cat conftest.err >&5
19384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19385 (exit $ac_status); } && {
19386 test -z "$ac_c_werror_flag" ||
19387 test ! -s conftest.err
19388 } && test -s conftest.$ac_objext; then
19389 ac_cv_member_struct_stat_st_blocks=yes
19390 else
19391 echo "$as_me: failed program was:" >&5
19392 sed 's/^/| /' conftest.$ac_ext >&5
19394 cat >conftest.$ac_ext <<_ACEOF
19395 /* confdefs.h. */
19396 _ACEOF
19397 cat confdefs.h >>conftest.$ac_ext
19398 cat >>conftest.$ac_ext <<_ACEOF
19399 /* end confdefs.h. */
19400 $ac_includes_default
19402 main ()
19404 static struct stat ac_aggr;
19405 if (sizeof ac_aggr.st_blocks)
19406 return 0;
19408 return 0;
19410 _ACEOF
19411 rm -f conftest.$ac_objext
19412 if { (ac_try="$ac_compile"
19413 case "(($ac_try" in
19414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19415 *) ac_try_echo=$ac_try;;
19416 esac
19417 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19418 (eval "$ac_compile") 2>conftest.er1
19419 ac_status=$?
19420 grep -v '^ *+' conftest.er1 >conftest.err
19421 rm -f conftest.er1
19422 cat conftest.err >&5
19423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19424 (exit $ac_status); } && {
19425 test -z "$ac_c_werror_flag" ||
19426 test ! -s conftest.err
19427 } && test -s conftest.$ac_objext; then
19428 ac_cv_member_struct_stat_st_blocks=yes
19429 else
19430 echo "$as_me: failed program was:" >&5
19431 sed 's/^/| /' conftest.$ac_ext >&5
19433 ac_cv_member_struct_stat_st_blocks=no
19436 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19439 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19441 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
19442 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6; }
19443 if test $ac_cv_member_struct_stat_st_blocks = yes; then
19445 cat >>confdefs.h <<_ACEOF
19446 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
19447 _ACEOF
19450 cat >>confdefs.h <<\_ACEOF
19451 #define HAVE_ST_BLOCKS 1
19452 _ACEOF
19454 else
19455 case " $LIBOBJS " in
19456 *" fileblocks.$ac_objext "* ) ;;
19457 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
19459 esac
19465 { echo "$as_me:$LINENO: checking for time.h that defines altzone" >&5
19466 echo $ECHO_N "checking for time.h that defines altzone... $ECHO_C" >&6; }
19467 if test "${ac_cv_header_time_altzone+set}" = set; then
19468 echo $ECHO_N "(cached) $ECHO_C" >&6
19469 else
19470 cat >conftest.$ac_ext <<_ACEOF
19471 /* confdefs.h. */
19472 _ACEOF
19473 cat confdefs.h >>conftest.$ac_ext
19474 cat >>conftest.$ac_ext <<_ACEOF
19475 /* end confdefs.h. */
19476 #include <time.h>
19478 main ()
19480 return altzone;
19482 return 0;
19484 _ACEOF
19485 rm -f conftest.$ac_objext
19486 if { (ac_try="$ac_compile"
19487 case "(($ac_try" in
19488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19489 *) ac_try_echo=$ac_try;;
19490 esac
19491 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19492 (eval "$ac_compile") 2>conftest.er1
19493 ac_status=$?
19494 grep -v '^ *+' conftest.er1 >conftest.err
19495 rm -f conftest.er1
19496 cat conftest.err >&5
19497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19498 (exit $ac_status); } && {
19499 test -z "$ac_c_werror_flag" ||
19500 test ! -s conftest.err
19501 } && test -s conftest.$ac_objext; then
19502 ac_cv_header_time_altzone=yes
19503 else
19504 echo "$as_me: failed program was:" >&5
19505 sed 's/^/| /' conftest.$ac_ext >&5
19507 ac_cv_header_time_altzone=no
19510 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19513 { echo "$as_me:$LINENO: result: $ac_cv_header_time_altzone" >&5
19514 echo "${ECHO_T}$ac_cv_header_time_altzone" >&6; }
19515 if test $ac_cv_header_time_altzone = yes; then
19517 cat >>confdefs.h <<\_ACEOF
19518 #define HAVE_ALTZONE 1
19519 _ACEOF
19523 was_it_defined=no
19524 { echo "$as_me:$LINENO: checking whether sys/select.h and sys/time.h may both be included" >&5
19525 echo $ECHO_N "checking whether sys/select.h and sys/time.h may both be included... $ECHO_C" >&6; }
19526 cat >conftest.$ac_ext <<_ACEOF
19527 /* confdefs.h. */
19528 _ACEOF
19529 cat confdefs.h >>conftest.$ac_ext
19530 cat >>conftest.$ac_ext <<_ACEOF
19531 /* end confdefs.h. */
19533 #include <sys/types.h>
19534 #include <sys/select.h>
19535 #include <sys/time.h>
19538 main ()
19542 return 0;
19544 _ACEOF
19545 rm -f conftest.$ac_objext
19546 if { (ac_try="$ac_compile"
19547 case "(($ac_try" in
19548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19549 *) ac_try_echo=$ac_try;;
19550 esac
19551 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19552 (eval "$ac_compile") 2>conftest.er1
19553 ac_status=$?
19554 grep -v '^ *+' conftest.er1 >conftest.err
19555 rm -f conftest.er1
19556 cat conftest.err >&5
19557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19558 (exit $ac_status); } && {
19559 test -z "$ac_c_werror_flag" ||
19560 test ! -s conftest.err
19561 } && test -s conftest.$ac_objext; then
19564 cat >>confdefs.h <<\_ACEOF
19565 #define SYS_SELECT_WITH_SYS_TIME 1
19566 _ACEOF
19568 was_it_defined=yes
19570 else
19571 echo "$as_me: failed program was:" >&5
19572 sed 's/^/| /' conftest.$ac_ext >&5
19577 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19578 { echo "$as_me:$LINENO: result: $was_it_defined" >&5
19579 echo "${ECHO_T}$was_it_defined" >&6; }
19581 { echo "$as_me:$LINENO: checking for addrinfo" >&5
19582 echo $ECHO_N "checking for addrinfo... $ECHO_C" >&6; }
19583 if test "${ac_cv_struct_addrinfo+set}" = set; then
19584 echo $ECHO_N "(cached) $ECHO_C" >&6
19585 else
19586 cat >conftest.$ac_ext <<_ACEOF
19587 /* confdefs.h. */
19588 _ACEOF
19589 cat confdefs.h >>conftest.$ac_ext
19590 cat >>conftest.$ac_ext <<_ACEOF
19591 /* end confdefs.h. */
19593 # include <netdb.h>
19595 main ()
19597 struct addrinfo a
19599 return 0;
19601 _ACEOF
19602 rm -f conftest.$ac_objext
19603 if { (ac_try="$ac_compile"
19604 case "(($ac_try" in
19605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19606 *) ac_try_echo=$ac_try;;
19607 esac
19608 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19609 (eval "$ac_compile") 2>conftest.er1
19610 ac_status=$?
19611 grep -v '^ *+' conftest.er1 >conftest.err
19612 rm -f conftest.er1
19613 cat conftest.err >&5
19614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19615 (exit $ac_status); } && {
19616 test -z "$ac_c_werror_flag" ||
19617 test ! -s conftest.err
19618 } && test -s conftest.$ac_objext; then
19619 ac_cv_struct_addrinfo=yes
19620 else
19621 echo "$as_me: failed program was:" >&5
19622 sed 's/^/| /' conftest.$ac_ext >&5
19624 ac_cv_struct_addrinfo=no
19627 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19630 { echo "$as_me:$LINENO: result: $ac_cv_struct_addrinfo" >&5
19631 echo "${ECHO_T}$ac_cv_struct_addrinfo" >&6; }
19632 if test $ac_cv_struct_addrinfo = yes; then
19634 cat >>confdefs.h <<\_ACEOF
19635 #define HAVE_ADDRINFO 1
19636 _ACEOF
19640 { echo "$as_me:$LINENO: checking for sockaddr_storage" >&5
19641 echo $ECHO_N "checking for sockaddr_storage... $ECHO_C" >&6; }
19642 if test "${ac_cv_struct_sockaddr_storage+set}" = set; then
19643 echo $ECHO_N "(cached) $ECHO_C" >&6
19644 else
19645 cat >conftest.$ac_ext <<_ACEOF
19646 /* confdefs.h. */
19647 _ACEOF
19648 cat confdefs.h >>conftest.$ac_ext
19649 cat >>conftest.$ac_ext <<_ACEOF
19650 /* end confdefs.h. */
19652 # include <sys/types.h>
19653 # include <sys/socket.h>
19655 main ()
19657 struct sockaddr_storage s
19659 return 0;
19661 _ACEOF
19662 rm -f conftest.$ac_objext
19663 if { (ac_try="$ac_compile"
19664 case "(($ac_try" in
19665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19666 *) ac_try_echo=$ac_try;;
19667 esac
19668 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19669 (eval "$ac_compile") 2>conftest.er1
19670 ac_status=$?
19671 grep -v '^ *+' conftest.er1 >conftest.err
19672 rm -f conftest.er1
19673 cat conftest.err >&5
19674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19675 (exit $ac_status); } && {
19676 test -z "$ac_c_werror_flag" ||
19677 test ! -s conftest.err
19678 } && test -s conftest.$ac_objext; then
19679 ac_cv_struct_sockaddr_storage=yes
19680 else
19681 echo "$as_me: failed program was:" >&5
19682 sed 's/^/| /' conftest.$ac_ext >&5
19684 ac_cv_struct_sockaddr_storage=no
19687 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19690 { echo "$as_me:$LINENO: result: $ac_cv_struct_sockaddr_storage" >&5
19691 echo "${ECHO_T}$ac_cv_struct_sockaddr_storage" >&6; }
19692 if test $ac_cv_struct_sockaddr_storage = yes; then
19694 cat >>confdefs.h <<\_ACEOF
19695 #define HAVE_SOCKADDR_STORAGE 1
19696 _ACEOF
19700 # checks for compiler characteristics
19703 { echo "$as_me:$LINENO: checking whether char is unsigned" >&5
19704 echo $ECHO_N "checking whether char is unsigned... $ECHO_C" >&6; }
19705 if test "${ac_cv_c_char_unsigned+set}" = set; then
19706 echo $ECHO_N "(cached) $ECHO_C" >&6
19707 else
19708 cat >conftest.$ac_ext <<_ACEOF
19709 /* confdefs.h. */
19710 _ACEOF
19711 cat confdefs.h >>conftest.$ac_ext
19712 cat >>conftest.$ac_ext <<_ACEOF
19713 /* end confdefs.h. */
19714 $ac_includes_default
19716 main ()
19718 static int test_array [1 - 2 * !(((char) -1) < 0)];
19719 test_array [0] = 0
19722 return 0;
19724 _ACEOF
19725 rm -f conftest.$ac_objext
19726 if { (ac_try="$ac_compile"
19727 case "(($ac_try" in
19728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19729 *) ac_try_echo=$ac_try;;
19730 esac
19731 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19732 (eval "$ac_compile") 2>conftest.er1
19733 ac_status=$?
19734 grep -v '^ *+' conftest.er1 >conftest.err
19735 rm -f conftest.er1
19736 cat conftest.err >&5
19737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19738 (exit $ac_status); } && {
19739 test -z "$ac_c_werror_flag" ||
19740 test ! -s conftest.err
19741 } && test -s conftest.$ac_objext; then
19742 ac_cv_c_char_unsigned=no
19743 else
19744 echo "$as_me: failed program was:" >&5
19745 sed 's/^/| /' conftest.$ac_ext >&5
19747 ac_cv_c_char_unsigned=yes
19750 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19752 { echo "$as_me:$LINENO: result: $ac_cv_c_char_unsigned" >&5
19753 echo "${ECHO_T}$ac_cv_c_char_unsigned" >&6; }
19754 if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
19755 cat >>confdefs.h <<\_ACEOF
19756 #define __CHAR_UNSIGNED__ 1
19757 _ACEOF
19761 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
19762 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
19763 if test "${ac_cv_c_const+set}" = set; then
19764 echo $ECHO_N "(cached) $ECHO_C" >&6
19765 else
19766 cat >conftest.$ac_ext <<_ACEOF
19767 /* confdefs.h. */
19768 _ACEOF
19769 cat confdefs.h >>conftest.$ac_ext
19770 cat >>conftest.$ac_ext <<_ACEOF
19771 /* end confdefs.h. */
19774 main ()
19776 /* FIXME: Include the comments suggested by Paul. */
19777 #ifndef __cplusplus
19778 /* Ultrix mips cc rejects this. */
19779 typedef int charset[2];
19780 const charset cs;
19781 /* SunOS 4.1.1 cc rejects this. */
19782 char const *const *pcpcc;
19783 char **ppc;
19784 /* NEC SVR4.0.2 mips cc rejects this. */
19785 struct point {int x, y;};
19786 static struct point const zero = {0,0};
19787 /* AIX XL C 1.02.0.0 rejects this.
19788 It does not let you subtract one const X* pointer from another in
19789 an arm of an if-expression whose if-part is not a constant
19790 expression */
19791 const char *g = "string";
19792 pcpcc = &g + (g ? g-g : 0);
19793 /* HPUX 7.0 cc rejects these. */
19794 ++pcpcc;
19795 ppc = (char**) pcpcc;
19796 pcpcc = (char const *const *) ppc;
19797 { /* SCO 3.2v4 cc rejects this. */
19798 char *t;
19799 char const *s = 0 ? (char *) 0 : (char const *) 0;
19801 *t++ = 0;
19802 if (s) return 0;
19804 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
19805 int x[] = {25, 17};
19806 const int *foo = &x[0];
19807 ++foo;
19809 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
19810 typedef const int *iptr;
19811 iptr p = 0;
19812 ++p;
19814 { /* AIX XL C 1.02.0.0 rejects this saying
19815 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
19816 struct s { int j; const int *ap[3]; };
19817 struct s *b; b->j = 5;
19819 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
19820 const int foo = 10;
19821 if (!foo) return 0;
19823 return !cs[0] && !zero.x;
19824 #endif
19827 return 0;
19829 _ACEOF
19830 rm -f conftest.$ac_objext
19831 if { (ac_try="$ac_compile"
19832 case "(($ac_try" in
19833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19834 *) ac_try_echo=$ac_try;;
19835 esac
19836 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19837 (eval "$ac_compile") 2>conftest.er1
19838 ac_status=$?
19839 grep -v '^ *+' conftest.er1 >conftest.err
19840 rm -f conftest.er1
19841 cat conftest.err >&5
19842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19843 (exit $ac_status); } && {
19844 test -z "$ac_c_werror_flag" ||
19845 test ! -s conftest.err
19846 } && test -s conftest.$ac_objext; then
19847 ac_cv_c_const=yes
19848 else
19849 echo "$as_me: failed program was:" >&5
19850 sed 's/^/| /' conftest.$ac_ext >&5
19852 ac_cv_c_const=no
19855 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19857 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
19858 echo "${ECHO_T}$ac_cv_c_const" >&6; }
19859 if test $ac_cv_c_const = no; then
19861 cat >>confdefs.h <<\_ACEOF
19862 #define const
19863 _ACEOF
19868 works=no
19869 { echo "$as_me:$LINENO: checking for working volatile" >&5
19870 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6; }
19871 cat >conftest.$ac_ext <<_ACEOF
19872 /* confdefs.h. */
19873 _ACEOF
19874 cat confdefs.h >>conftest.$ac_ext
19875 cat >>conftest.$ac_ext <<_ACEOF
19876 /* end confdefs.h. */
19879 main ()
19881 volatile int x; x = 0;
19883 return 0;
19885 _ACEOF
19886 rm -f conftest.$ac_objext
19887 if { (ac_try="$ac_compile"
19888 case "(($ac_try" in
19889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19890 *) ac_try_echo=$ac_try;;
19891 esac
19892 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19893 (eval "$ac_compile") 2>conftest.er1
19894 ac_status=$?
19895 grep -v '^ *+' conftest.er1 >conftest.err
19896 rm -f conftest.er1
19897 cat conftest.err >&5
19898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19899 (exit $ac_status); } && {
19900 test -z "$ac_c_werror_flag" ||
19901 test ! -s conftest.err
19902 } && test -s conftest.$ac_objext; then
19903 works=yes
19904 else
19905 echo "$as_me: failed program was:" >&5
19906 sed 's/^/| /' conftest.$ac_ext >&5
19909 cat >>confdefs.h <<\_ACEOF
19910 #define volatile
19911 _ACEOF
19916 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19917 { echo "$as_me:$LINENO: result: $works" >&5
19918 echo "${ECHO_T}$works" >&6; }
19920 works=no
19921 { echo "$as_me:$LINENO: checking for working signed char" >&5
19922 echo $ECHO_N "checking for working signed char... $ECHO_C" >&6; }
19923 cat >conftest.$ac_ext <<_ACEOF
19924 /* confdefs.h. */
19925 _ACEOF
19926 cat confdefs.h >>conftest.$ac_ext
19927 cat >>conftest.$ac_ext <<_ACEOF
19928 /* end confdefs.h. */
19931 main ()
19933 signed char c;
19935 return 0;
19937 _ACEOF
19938 rm -f conftest.$ac_objext
19939 if { (ac_try="$ac_compile"
19940 case "(($ac_try" in
19941 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19942 *) ac_try_echo=$ac_try;;
19943 esac
19944 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19945 (eval "$ac_compile") 2>conftest.er1
19946 ac_status=$?
19947 grep -v '^ *+' conftest.er1 >conftest.err
19948 rm -f conftest.er1
19949 cat conftest.err >&5
19950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19951 (exit $ac_status); } && {
19952 test -z "$ac_c_werror_flag" ||
19953 test ! -s conftest.err
19954 } && test -s conftest.$ac_objext; then
19955 works=yes
19956 else
19957 echo "$as_me: failed program was:" >&5
19958 sed 's/^/| /' conftest.$ac_ext >&5
19961 cat >>confdefs.h <<\_ACEOF
19962 #define signed
19963 _ACEOF
19968 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19969 { echo "$as_me:$LINENO: result: $works" >&5
19970 echo "${ECHO_T}$works" >&6; }
19972 have_prototypes=no
19973 { echo "$as_me:$LINENO: checking for prototypes" >&5
19974 echo $ECHO_N "checking for prototypes... $ECHO_C" >&6; }
19975 cat >conftest.$ac_ext <<_ACEOF
19976 /* confdefs.h. */
19977 _ACEOF
19978 cat confdefs.h >>conftest.$ac_ext
19979 cat >>conftest.$ac_ext <<_ACEOF
19980 /* end confdefs.h. */
19981 int foo(int x) { return 0; }
19983 main ()
19985 return foo(10);
19987 return 0;
19989 _ACEOF
19990 rm -f conftest.$ac_objext
19991 if { (ac_try="$ac_compile"
19992 case "(($ac_try" in
19993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19994 *) ac_try_echo=$ac_try;;
19995 esac
19996 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19997 (eval "$ac_compile") 2>conftest.er1
19998 ac_status=$?
19999 grep -v '^ *+' conftest.er1 >conftest.err
20000 rm -f conftest.er1
20001 cat conftest.err >&5
20002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20003 (exit $ac_status); } && {
20004 test -z "$ac_c_werror_flag" ||
20005 test ! -s conftest.err
20006 } && test -s conftest.$ac_objext; then
20009 cat >>confdefs.h <<\_ACEOF
20010 #define HAVE_PROTOTYPES 1
20011 _ACEOF
20013 have_prototypes=yes
20015 else
20016 echo "$as_me: failed program was:" >&5
20017 sed 's/^/| /' conftest.$ac_ext >&5
20022 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20023 { echo "$as_me:$LINENO: result: $have_prototypes" >&5
20024 echo "${ECHO_T}$have_prototypes" >&6; }
20026 works=no
20027 { echo "$as_me:$LINENO: checking for variable length prototypes and stdarg.h" >&5
20028 echo $ECHO_N "checking for variable length prototypes and stdarg.h... $ECHO_C" >&6; }
20029 cat >conftest.$ac_ext <<_ACEOF
20030 /* confdefs.h. */
20031 _ACEOF
20032 cat confdefs.h >>conftest.$ac_ext
20033 cat >>conftest.$ac_ext <<_ACEOF
20034 /* end confdefs.h. */
20036 #include <stdarg.h>
20037 int foo(int x, ...) {
20038 va_list va;
20039 va_start(va, x);
20040 va_arg(va, int);
20041 va_arg(va, char *);
20042 va_arg(va, double);
20043 return 0;
20047 main ()
20049 return foo(10, "", 3.14);
20051 return 0;
20053 _ACEOF
20054 rm -f conftest.$ac_objext
20055 if { (ac_try="$ac_compile"
20056 case "(($ac_try" in
20057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20058 *) ac_try_echo=$ac_try;;
20059 esac
20060 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20061 (eval "$ac_compile") 2>conftest.er1
20062 ac_status=$?
20063 grep -v '^ *+' conftest.er1 >conftest.err
20064 rm -f conftest.er1
20065 cat conftest.err >&5
20066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20067 (exit $ac_status); } && {
20068 test -z "$ac_c_werror_flag" ||
20069 test ! -s conftest.err
20070 } && test -s conftest.$ac_objext; then
20073 cat >>confdefs.h <<\_ACEOF
20074 #define HAVE_STDARG_PROTOTYPES 1
20075 _ACEOF
20077 works=yes
20079 else
20080 echo "$as_me: failed program was:" >&5
20081 sed 's/^/| /' conftest.$ac_ext >&5
20086 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20087 { echo "$as_me:$LINENO: result: $works" >&5
20088 echo "${ECHO_T}$works" >&6; }
20090 # check for socketpair
20091 { echo "$as_me:$LINENO: checking for socketpair" >&5
20092 echo $ECHO_N "checking for socketpair... $ECHO_C" >&6; }
20093 cat >conftest.$ac_ext <<_ACEOF
20094 /* confdefs.h. */
20095 _ACEOF
20096 cat confdefs.h >>conftest.$ac_ext
20097 cat >>conftest.$ac_ext <<_ACEOF
20098 /* end confdefs.h. */
20100 #include <sys/types.h>
20101 #include <sys/socket.h>
20104 main ()
20106 void *x=socketpair
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
20129 cat >>confdefs.h <<\_ACEOF
20130 #define HAVE_SOCKETPAIR 1
20131 _ACEOF
20133 { echo "$as_me:$LINENO: result: yes" >&5
20134 echo "${ECHO_T}yes" >&6; }
20135 else
20136 echo "$as_me: failed program was:" >&5
20137 sed 's/^/| /' conftest.$ac_ext >&5
20139 { echo "$as_me:$LINENO: result: no" >&5
20140 echo "${ECHO_T}no" >&6; }
20144 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20146 # check if sockaddr has sa_len member
20147 { echo "$as_me:$LINENO: checking if sockaddr has sa_len member" >&5
20148 echo $ECHO_N "checking if sockaddr has sa_len member... $ECHO_C" >&6; }
20149 cat >conftest.$ac_ext <<_ACEOF
20150 /* confdefs.h. */
20151 _ACEOF
20152 cat confdefs.h >>conftest.$ac_ext
20153 cat >>conftest.$ac_ext <<_ACEOF
20154 /* end confdefs.h. */
20155 #include <sys/types.h>
20156 #include <sys/socket.h>
20158 main ()
20160 struct sockaddr x;
20161 x.sa_len = 0;
20163 return 0;
20165 _ACEOF
20166 rm -f conftest.$ac_objext
20167 if { (ac_try="$ac_compile"
20168 case "(($ac_try" in
20169 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20170 *) ac_try_echo=$ac_try;;
20171 esac
20172 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20173 (eval "$ac_compile") 2>conftest.er1
20174 ac_status=$?
20175 grep -v '^ *+' conftest.er1 >conftest.err
20176 rm -f conftest.er1
20177 cat conftest.err >&5
20178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20179 (exit $ac_status); } && {
20180 test -z "$ac_c_werror_flag" ||
20181 test ! -s conftest.err
20182 } && test -s conftest.$ac_objext; then
20183 { echo "$as_me:$LINENO: result: yes" >&5
20184 echo "${ECHO_T}yes" >&6; }
20186 cat >>confdefs.h <<\_ACEOF
20187 #define HAVE_SOCKADDR_SA_LEN 1
20188 _ACEOF
20190 else
20191 echo "$as_me: failed program was:" >&5
20192 sed 's/^/| /' conftest.$ac_ext >&5
20194 { echo "$as_me:$LINENO: result: no" >&5
20195 echo "${ECHO_T}no" >&6; }
20198 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20200 va_list_is_array=no
20201 { echo "$as_me:$LINENO: checking whether va_list is an array" >&5
20202 echo $ECHO_N "checking whether va_list is an array... $ECHO_C" >&6; }
20203 cat >conftest.$ac_ext <<_ACEOF
20204 /* confdefs.h. */
20205 _ACEOF
20206 cat confdefs.h >>conftest.$ac_ext
20207 cat >>conftest.$ac_ext <<_ACEOF
20208 /* end confdefs.h. */
20210 #ifdef HAVE_STDARG_PROTOTYPES
20211 #include <stdarg.h>
20212 #else
20213 #include <varargs.h>
20214 #endif
20217 main ()
20219 va_list list1, list2; list1 = list2;
20221 return 0;
20223 _ACEOF
20224 rm -f conftest.$ac_objext
20225 if { (ac_try="$ac_compile"
20226 case "(($ac_try" in
20227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20228 *) ac_try_echo=$ac_try;;
20229 esac
20230 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20231 (eval "$ac_compile") 2>conftest.er1
20232 ac_status=$?
20233 grep -v '^ *+' conftest.er1 >conftest.err
20234 rm -f conftest.er1
20235 cat conftest.err >&5
20236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20237 (exit $ac_status); } && {
20238 test -z "$ac_c_werror_flag" ||
20239 test ! -s conftest.err
20240 } && test -s conftest.$ac_objext; then
20242 else
20243 echo "$as_me: failed program was:" >&5
20244 sed 's/^/| /' conftest.$ac_ext >&5
20248 cat >>confdefs.h <<\_ACEOF
20249 #define VA_LIST_IS_ARRAY 1
20250 _ACEOF
20252 va_list_is_array=yes
20256 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20257 { echo "$as_me:$LINENO: result: $va_list_is_array" >&5
20258 echo "${ECHO_T}$va_list_is_array" >&6; }
20260 # sigh -- gethostbyname_r is a mess; it can have 3, 5 or 6 arguments :-(
20264 { echo "$as_me:$LINENO: checking for gethostbyname_r" >&5
20265 echo $ECHO_N "checking for gethostbyname_r... $ECHO_C" >&6; }
20266 if test "${ac_cv_func_gethostbyname_r+set}" = set; then
20267 echo $ECHO_N "(cached) $ECHO_C" >&6
20268 else
20269 cat >conftest.$ac_ext <<_ACEOF
20270 /* confdefs.h. */
20271 _ACEOF
20272 cat confdefs.h >>conftest.$ac_ext
20273 cat >>conftest.$ac_ext <<_ACEOF
20274 /* end confdefs.h. */
20275 /* Define gethostbyname_r to an innocuous variant, in case <limits.h> declares gethostbyname_r.
20276 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20277 #define gethostbyname_r innocuous_gethostbyname_r
20279 /* System header to define __stub macros and hopefully few prototypes,
20280 which can conflict with char gethostbyname_r (); below.
20281 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20282 <limits.h> exists even on freestanding compilers. */
20284 #ifdef __STDC__
20285 # include <limits.h>
20286 #else
20287 # include <assert.h>
20288 #endif
20290 #undef gethostbyname_r
20292 /* Override any GCC internal prototype to avoid an error.
20293 Use char because int might match the return type of a GCC
20294 builtin and then its argument prototype would still apply. */
20295 #ifdef __cplusplus
20296 extern "C"
20297 #endif
20298 char gethostbyname_r ();
20299 /* The GNU C library defines this for functions which it implements
20300 to always fail with ENOSYS. Some functions are actually named
20301 something starting with __ and the normal name is an alias. */
20302 #if defined __stub_gethostbyname_r || defined __stub___gethostbyname_r
20303 choke me
20304 #endif
20307 main ()
20309 return gethostbyname_r ();
20311 return 0;
20313 _ACEOF
20314 rm -f conftest.$ac_objext conftest$ac_exeext
20315 if { (ac_try="$ac_link"
20316 case "(($ac_try" in
20317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20318 *) ac_try_echo=$ac_try;;
20319 esac
20320 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20321 (eval "$ac_link") 2>conftest.er1
20322 ac_status=$?
20323 grep -v '^ *+' conftest.er1 >conftest.err
20324 rm -f conftest.er1
20325 cat conftest.err >&5
20326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20327 (exit $ac_status); } && {
20328 test -z "$ac_c_werror_flag" ||
20329 test ! -s conftest.err
20330 } && test -s conftest$ac_exeext &&
20331 $as_test_x conftest$ac_exeext; then
20332 ac_cv_func_gethostbyname_r=yes
20333 else
20334 echo "$as_me: failed program was:" >&5
20335 sed 's/^/| /' conftest.$ac_ext >&5
20337 ac_cv_func_gethostbyname_r=no
20340 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20341 conftest$ac_exeext conftest.$ac_ext
20343 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname_r" >&5
20344 echo "${ECHO_T}$ac_cv_func_gethostbyname_r" >&6; }
20345 if test $ac_cv_func_gethostbyname_r = yes; then
20347 cat >>confdefs.h <<\_ACEOF
20348 #define HAVE_GETHOSTBYNAME_R 1
20349 _ACEOF
20351 { echo "$as_me:$LINENO: checking gethostbyname_r with 6 args" >&5
20352 echo $ECHO_N "checking gethostbyname_r with 6 args... $ECHO_C" >&6; }
20353 OLD_CFLAGS=$CFLAGS
20354 CFLAGS="$CFLAGS $MY_CPPFLAGS $MY_THREAD_CPPFLAGS $MY_CFLAGS"
20355 cat >conftest.$ac_ext <<_ACEOF
20356 /* confdefs.h. */
20357 _ACEOF
20358 cat confdefs.h >>conftest.$ac_ext
20359 cat >>conftest.$ac_ext <<_ACEOF
20360 /* end confdefs.h. */
20362 # include <netdb.h>
20365 main ()
20368 char *name;
20369 struct hostent *he, *res;
20370 char buffer[2048];
20371 int buflen = 2048;
20372 int h_errnop;
20374 (void) gethostbyname_r(name, he, buffer, buflen, &res, &h_errnop)
20377 return 0;
20379 _ACEOF
20380 rm -f conftest.$ac_objext
20381 if { (ac_try="$ac_compile"
20382 case "(($ac_try" in
20383 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20384 *) ac_try_echo=$ac_try;;
20385 esac
20386 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20387 (eval "$ac_compile") 2>conftest.er1
20388 ac_status=$?
20389 grep -v '^ *+' conftest.er1 >conftest.err
20390 rm -f conftest.er1
20391 cat conftest.err >&5
20392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20393 (exit $ac_status); } && {
20394 test -z "$ac_c_werror_flag" ||
20395 test ! -s conftest.err
20396 } && test -s conftest.$ac_objext; then
20398 cat >>confdefs.h <<\_ACEOF
20399 #define HAVE_GETHOSTBYNAME_R 1
20400 _ACEOF
20403 cat >>confdefs.h <<\_ACEOF
20404 #define HAVE_GETHOSTBYNAME_R_6_ARG 1
20405 _ACEOF
20407 { echo "$as_me:$LINENO: result: yes" >&5
20408 echo "${ECHO_T}yes" >&6; }
20410 else
20411 echo "$as_me: failed program was:" >&5
20412 sed 's/^/| /' conftest.$ac_ext >&5
20415 { echo "$as_me:$LINENO: result: no" >&5
20416 echo "${ECHO_T}no" >&6; }
20417 { echo "$as_me:$LINENO: checking gethostbyname_r with 5 args" >&5
20418 echo $ECHO_N "checking gethostbyname_r with 5 args... $ECHO_C" >&6; }
20419 cat >conftest.$ac_ext <<_ACEOF
20420 /* confdefs.h. */
20421 _ACEOF
20422 cat confdefs.h >>conftest.$ac_ext
20423 cat >>conftest.$ac_ext <<_ACEOF
20424 /* end confdefs.h. */
20426 # include <netdb.h>
20429 main ()
20432 char *name;
20433 struct hostent *he;
20434 char buffer[2048];
20435 int buflen = 2048;
20436 int h_errnop;
20438 (void) gethostbyname_r(name, he, buffer, buflen, &h_errnop)
20441 return 0;
20443 _ACEOF
20444 rm -f conftest.$ac_objext
20445 if { (ac_try="$ac_compile"
20446 case "(($ac_try" in
20447 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20448 *) ac_try_echo=$ac_try;;
20449 esac
20450 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20451 (eval "$ac_compile") 2>conftest.er1
20452 ac_status=$?
20453 grep -v '^ *+' conftest.er1 >conftest.err
20454 rm -f conftest.er1
20455 cat conftest.err >&5
20456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20457 (exit $ac_status); } && {
20458 test -z "$ac_c_werror_flag" ||
20459 test ! -s conftest.err
20460 } && test -s conftest.$ac_objext; then
20462 cat >>confdefs.h <<\_ACEOF
20463 #define HAVE_GETHOSTBYNAME_R 1
20464 _ACEOF
20467 cat >>confdefs.h <<\_ACEOF
20468 #define HAVE_GETHOSTBYNAME_R_5_ARG 1
20469 _ACEOF
20471 { echo "$as_me:$LINENO: result: yes" >&5
20472 echo "${ECHO_T}yes" >&6; }
20474 else
20475 echo "$as_me: failed program was:" >&5
20476 sed 's/^/| /' conftest.$ac_ext >&5
20479 { echo "$as_me:$LINENO: result: no" >&5
20480 echo "${ECHO_T}no" >&6; }
20481 { echo "$as_me:$LINENO: checking gethostbyname_r with 3 args" >&5
20482 echo $ECHO_N "checking gethostbyname_r with 3 args... $ECHO_C" >&6; }
20483 cat >conftest.$ac_ext <<_ACEOF
20484 /* confdefs.h. */
20485 _ACEOF
20486 cat confdefs.h >>conftest.$ac_ext
20487 cat >>conftest.$ac_ext <<_ACEOF
20488 /* end confdefs.h. */
20490 # include <netdb.h>
20493 main ()
20496 char *name;
20497 struct hostent *he;
20498 struct hostent_data data;
20500 (void) gethostbyname_r(name, he, &data);
20503 return 0;
20505 _ACEOF
20506 rm -f conftest.$ac_objext
20507 if { (ac_try="$ac_compile"
20508 case "(($ac_try" in
20509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20510 *) ac_try_echo=$ac_try;;
20511 esac
20512 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20513 (eval "$ac_compile") 2>conftest.er1
20514 ac_status=$?
20515 grep -v '^ *+' conftest.er1 >conftest.err
20516 rm -f conftest.er1
20517 cat conftest.err >&5
20518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20519 (exit $ac_status); } && {
20520 test -z "$ac_c_werror_flag" ||
20521 test ! -s conftest.err
20522 } && test -s conftest.$ac_objext; then
20524 cat >>confdefs.h <<\_ACEOF
20525 #define HAVE_GETHOSTBYNAME_R 1
20526 _ACEOF
20529 cat >>confdefs.h <<\_ACEOF
20530 #define HAVE_GETHOSTBYNAME_R_3_ARG 1
20531 _ACEOF
20533 { echo "$as_me:$LINENO: result: yes" >&5
20534 echo "${ECHO_T}yes" >&6; }
20536 else
20537 echo "$as_me: failed program was:" >&5
20538 sed 's/^/| /' conftest.$ac_ext >&5
20541 { echo "$as_me:$LINENO: result: no" >&5
20542 echo "${ECHO_T}no" >&6; }
20546 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20550 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20554 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20555 CFLAGS=$OLD_CFLAGS
20557 else
20560 for ac_func in gethostbyname
20562 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20563 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20564 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20565 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20566 echo $ECHO_N "(cached) $ECHO_C" >&6
20567 else
20568 cat >conftest.$ac_ext <<_ACEOF
20569 /* confdefs.h. */
20570 _ACEOF
20571 cat confdefs.h >>conftest.$ac_ext
20572 cat >>conftest.$ac_ext <<_ACEOF
20573 /* end confdefs.h. */
20574 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20575 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20576 #define $ac_func innocuous_$ac_func
20578 /* System header to define __stub macros and hopefully few prototypes,
20579 which can conflict with char $ac_func (); below.
20580 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20581 <limits.h> exists even on freestanding compilers. */
20583 #ifdef __STDC__
20584 # include <limits.h>
20585 #else
20586 # include <assert.h>
20587 #endif
20589 #undef $ac_func
20591 /* Override any GCC internal prototype to avoid an error.
20592 Use char because int might match the return type of a GCC
20593 builtin and then its argument prototype would still apply. */
20594 #ifdef __cplusplus
20595 extern "C"
20596 #endif
20597 char $ac_func ();
20598 /* The GNU C library defines this for functions which it implements
20599 to always fail with ENOSYS. Some functions are actually named
20600 something starting with __ and the normal name is an alias. */
20601 #if defined __stub_$ac_func || defined __stub___$ac_func
20602 choke me
20603 #endif
20606 main ()
20608 return $ac_func ();
20610 return 0;
20612 _ACEOF
20613 rm -f conftest.$ac_objext conftest$ac_exeext
20614 if { (ac_try="$ac_link"
20615 case "(($ac_try" in
20616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20617 *) ac_try_echo=$ac_try;;
20618 esac
20619 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20620 (eval "$ac_link") 2>conftest.er1
20621 ac_status=$?
20622 grep -v '^ *+' conftest.er1 >conftest.err
20623 rm -f conftest.er1
20624 cat conftest.err >&5
20625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20626 (exit $ac_status); } && {
20627 test -z "$ac_c_werror_flag" ||
20628 test ! -s conftest.err
20629 } && test -s conftest$ac_exeext &&
20630 $as_test_x conftest$ac_exeext; then
20631 eval "$as_ac_var=yes"
20632 else
20633 echo "$as_me: failed program was:" >&5
20634 sed 's/^/| /' conftest.$ac_ext >&5
20636 eval "$as_ac_var=no"
20639 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20640 conftest$ac_exeext conftest.$ac_ext
20642 ac_res=`eval echo '${'$as_ac_var'}'`
20643 { echo "$as_me:$LINENO: result: $ac_res" >&5
20644 echo "${ECHO_T}$ac_res" >&6; }
20645 if test `eval echo '${'$as_ac_var'}'` = yes; then
20646 cat >>confdefs.h <<_ACEOF
20647 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20648 _ACEOF
20651 done
20662 # checks for system services
20663 # (none yet)
20665 # Linux requires this for correct f.p. operations
20666 { echo "$as_me:$LINENO: checking for __fpu_control" >&5
20667 echo $ECHO_N "checking for __fpu_control... $ECHO_C" >&6; }
20668 if test "${ac_cv_func___fpu_control+set}" = set; then
20669 echo $ECHO_N "(cached) $ECHO_C" >&6
20670 else
20671 cat >conftest.$ac_ext <<_ACEOF
20672 /* confdefs.h. */
20673 _ACEOF
20674 cat confdefs.h >>conftest.$ac_ext
20675 cat >>conftest.$ac_ext <<_ACEOF
20676 /* end confdefs.h. */
20677 /* Define __fpu_control to an innocuous variant, in case <limits.h> declares __fpu_control.
20678 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20679 #define __fpu_control innocuous___fpu_control
20681 /* System header to define __stub macros and hopefully few prototypes,
20682 which can conflict with char __fpu_control (); below.
20683 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20684 <limits.h> exists even on freestanding compilers. */
20686 #ifdef __STDC__
20687 # include <limits.h>
20688 #else
20689 # include <assert.h>
20690 #endif
20692 #undef __fpu_control
20694 /* Override any GCC internal prototype to avoid an error.
20695 Use char because int might match the return type of a GCC
20696 builtin and then its argument prototype would still apply. */
20697 #ifdef __cplusplus
20698 extern "C"
20699 #endif
20700 char __fpu_control ();
20701 /* The GNU C library defines this for functions which it implements
20702 to always fail with ENOSYS. Some functions are actually named
20703 something starting with __ and the normal name is an alias. */
20704 #if defined __stub___fpu_control || defined __stub_____fpu_control
20705 choke me
20706 #endif
20709 main ()
20711 return __fpu_control ();
20713 return 0;
20715 _ACEOF
20716 rm -f conftest.$ac_objext conftest$ac_exeext
20717 if { (ac_try="$ac_link"
20718 case "(($ac_try" in
20719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20720 *) ac_try_echo=$ac_try;;
20721 esac
20722 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20723 (eval "$ac_link") 2>conftest.er1
20724 ac_status=$?
20725 grep -v '^ *+' conftest.er1 >conftest.err
20726 rm -f conftest.er1
20727 cat conftest.err >&5
20728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20729 (exit $ac_status); } && {
20730 test -z "$ac_c_werror_flag" ||
20731 test ! -s conftest.err
20732 } && test -s conftest$ac_exeext &&
20733 $as_test_x conftest$ac_exeext; then
20734 ac_cv_func___fpu_control=yes
20735 else
20736 echo "$as_me: failed program was:" >&5
20737 sed 's/^/| /' conftest.$ac_ext >&5
20739 ac_cv_func___fpu_control=no
20742 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20743 conftest$ac_exeext conftest.$ac_ext
20745 { echo "$as_me:$LINENO: result: $ac_cv_func___fpu_control" >&5
20746 echo "${ECHO_T}$ac_cv_func___fpu_control" >&6; }
20747 if test $ac_cv_func___fpu_control = yes; then
20749 else
20751 { echo "$as_me:$LINENO: checking for __fpu_control in -lieee" >&5
20752 echo $ECHO_N "checking for __fpu_control in -lieee... $ECHO_C" >&6; }
20753 if test "${ac_cv_lib_ieee___fpu_control+set}" = set; then
20754 echo $ECHO_N "(cached) $ECHO_C" >&6
20755 else
20756 ac_check_lib_save_LIBS=$LIBS
20757 LIBS="-lieee $LIBS"
20758 cat >conftest.$ac_ext <<_ACEOF
20759 /* confdefs.h. */
20760 _ACEOF
20761 cat confdefs.h >>conftest.$ac_ext
20762 cat >>conftest.$ac_ext <<_ACEOF
20763 /* end confdefs.h. */
20765 /* Override any GCC internal prototype to avoid an error.
20766 Use char because int might match the return type of a GCC
20767 builtin and then its argument prototype would still apply. */
20768 #ifdef __cplusplus
20769 extern "C"
20770 #endif
20771 char __fpu_control ();
20773 main ()
20775 return __fpu_control ();
20777 return 0;
20779 _ACEOF
20780 rm -f conftest.$ac_objext conftest$ac_exeext
20781 if { (ac_try="$ac_link"
20782 case "(($ac_try" in
20783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20784 *) ac_try_echo=$ac_try;;
20785 esac
20786 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20787 (eval "$ac_link") 2>conftest.er1
20788 ac_status=$?
20789 grep -v '^ *+' conftest.er1 >conftest.err
20790 rm -f conftest.er1
20791 cat conftest.err >&5
20792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20793 (exit $ac_status); } && {
20794 test -z "$ac_c_werror_flag" ||
20795 test ! -s conftest.err
20796 } && test -s conftest$ac_exeext &&
20797 $as_test_x conftest$ac_exeext; then
20798 ac_cv_lib_ieee___fpu_control=yes
20799 else
20800 echo "$as_me: failed program was:" >&5
20801 sed 's/^/| /' conftest.$ac_ext >&5
20803 ac_cv_lib_ieee___fpu_control=no
20806 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20807 conftest$ac_exeext conftest.$ac_ext
20808 LIBS=$ac_check_lib_save_LIBS
20810 { echo "$as_me:$LINENO: result: $ac_cv_lib_ieee___fpu_control" >&5
20811 echo "${ECHO_T}$ac_cv_lib_ieee___fpu_control" >&6; }
20812 if test $ac_cv_lib_ieee___fpu_control = yes; then
20813 cat >>confdefs.h <<_ACEOF
20814 #define HAVE_LIBIEEE 1
20815 _ACEOF
20817 LIBS="-lieee $LIBS"
20825 # Check for --with-fpectl
20826 { echo "$as_me:$LINENO: checking for --with-fpectl" >&5
20827 echo $ECHO_N "checking for --with-fpectl... $ECHO_C" >&6; }
20829 # Check whether --with-fpectl was given.
20830 if test "${with_fpectl+set}" = set; then
20831 withval=$with_fpectl;
20832 if test "$withval" != no
20833 then
20835 cat >>confdefs.h <<\_ACEOF
20836 #define WANT_SIGFPE_HANDLER 1
20837 _ACEOF
20839 { echo "$as_me:$LINENO: result: yes" >&5
20840 echo "${ECHO_T}yes" >&6; }
20841 else { echo "$as_me:$LINENO: result: no" >&5
20842 echo "${ECHO_T}no" >&6; }
20844 else
20845 { echo "$as_me:$LINENO: result: no" >&5
20846 echo "${ECHO_T}no" >&6; }
20850 # check for --with-libm=...
20852 case $ac_sys_system in
20853 Darwin) ;;
20854 BeOS) ;;
20855 *) LIBM=-lm
20856 esac
20857 { echo "$as_me:$LINENO: checking for --with-libm=STRING" >&5
20858 echo $ECHO_N "checking for --with-libm=STRING... $ECHO_C" >&6; }
20860 # Check whether --with-libm was given.
20861 if test "${with_libm+set}" = set; then
20862 withval=$with_libm;
20863 if test "$withval" = no
20864 then LIBM=
20865 { echo "$as_me:$LINENO: result: force LIBM empty" >&5
20866 echo "${ECHO_T}force LIBM empty" >&6; }
20867 elif test "$withval" != yes
20868 then LIBM=$withval
20869 { echo "$as_me:$LINENO: result: set LIBM=\"$withval\"" >&5
20870 echo "${ECHO_T}set LIBM=\"$withval\"" >&6; }
20871 else { { echo "$as_me:$LINENO: error: proper usage is --with-libm=STRING" >&5
20872 echo "$as_me: error: proper usage is --with-libm=STRING" >&2;}
20873 { (exit 1); exit 1; }; }
20875 else
20876 { echo "$as_me:$LINENO: result: default LIBM=\"$LIBM\"" >&5
20877 echo "${ECHO_T}default LIBM=\"$LIBM\"" >&6; }
20881 # check for --with-libc=...
20883 { echo "$as_me:$LINENO: checking for --with-libc=STRING" >&5
20884 echo $ECHO_N "checking for --with-libc=STRING... $ECHO_C" >&6; }
20886 # Check whether --with-libc was given.
20887 if test "${with_libc+set}" = set; then
20888 withval=$with_libc;
20889 if test "$withval" = no
20890 then LIBC=
20891 { echo "$as_me:$LINENO: result: force LIBC empty" >&5
20892 echo "${ECHO_T}force LIBC empty" >&6; }
20893 elif test "$withval" != yes
20894 then LIBC=$withval
20895 { echo "$as_me:$LINENO: result: set LIBC=\"$withval\"" >&5
20896 echo "${ECHO_T}set LIBC=\"$withval\"" >&6; }
20897 else { { echo "$as_me:$LINENO: error: proper usage is --with-libc=STRING" >&5
20898 echo "$as_me: error: proper usage is --with-libc=STRING" >&2;}
20899 { (exit 1); exit 1; }; }
20901 else
20902 { echo "$as_me:$LINENO: result: default LIBC=\"$LIBC\"" >&5
20903 echo "${ECHO_T}default LIBC=\"$LIBC\"" >&6; }
20907 # ************************************
20908 # * Check for mathematical functions *
20909 # ************************************
20911 LIBS_SAVE=$LIBS
20912 LIBS="$LIBS $LIBM"
20914 # On FreeBSD 6.2, it appears that tanh(-0.) returns 0. instead of
20915 # -0. on some architectures.
20916 { echo "$as_me:$LINENO: checking whether tanh preserves the sign of zero" >&5
20917 echo $ECHO_N "checking whether tanh preserves the sign of zero... $ECHO_C" >&6; }
20918 if test "${ac_cv_tanh_preserves_zero_sign+set}" = set; then
20919 echo $ECHO_N "(cached) $ECHO_C" >&6
20920 else
20922 if test "$cross_compiling" = yes; then
20923 ac_cv_tanh_preserves_zero_sign=no
20924 else
20925 cat >conftest.$ac_ext <<_ACEOF
20926 /* confdefs.h. */
20927 _ACEOF
20928 cat confdefs.h >>conftest.$ac_ext
20929 cat >>conftest.$ac_ext <<_ACEOF
20930 /* end confdefs.h. */
20932 #include <math.h>
20933 #include <stdlib.h>
20934 int main() {
20935 /* return 0 if either negative zeros don't exist
20936 on this platform or if negative zeros exist
20937 and tanh(-0.) == -0. */
20938 if (atan2(0., -1.) == atan2(-0., -1.) ||
20939 atan2(tanh(-0.), -1.) == atan2(-0., -1.)) exit(0);
20940 else exit(1);
20943 _ACEOF
20944 rm -f conftest$ac_exeext
20945 if { (ac_try="$ac_link"
20946 case "(($ac_try" in
20947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20948 *) ac_try_echo=$ac_try;;
20949 esac
20950 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20951 (eval "$ac_link") 2>&5
20952 ac_status=$?
20953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20954 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20955 { (case "(($ac_try" in
20956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20957 *) ac_try_echo=$ac_try;;
20958 esac
20959 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20960 (eval "$ac_try") 2>&5
20961 ac_status=$?
20962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20963 (exit $ac_status); }; }; then
20964 ac_cv_tanh_preserves_zero_sign=yes
20965 else
20966 echo "$as_me: program exited with status $ac_status" >&5
20967 echo "$as_me: failed program was:" >&5
20968 sed 's/^/| /' conftest.$ac_ext >&5
20970 ( exit $ac_status )
20971 ac_cv_tanh_preserves_zero_sign=no
20973 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20979 { echo "$as_me:$LINENO: result: $ac_cv_tanh_preserves_zero_sign" >&5
20980 echo "${ECHO_T}$ac_cv_tanh_preserves_zero_sign" >&6; }
20981 if test "$ac_cv_tanh_preserves_zero_sign" = yes
20982 then
20984 cat >>confdefs.h <<\_ACEOF
20985 #define TANH_PRESERVES_ZERO_SIGN 1
20986 _ACEOF
20991 for ac_func in hypot
20993 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20994 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20995 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20996 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20997 echo $ECHO_N "(cached) $ECHO_C" >&6
20998 else
20999 cat >conftest.$ac_ext <<_ACEOF
21000 /* confdefs.h. */
21001 _ACEOF
21002 cat confdefs.h >>conftest.$ac_ext
21003 cat >>conftest.$ac_ext <<_ACEOF
21004 /* end confdefs.h. */
21005 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21006 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21007 #define $ac_func innocuous_$ac_func
21009 /* System header to define __stub macros and hopefully few prototypes,
21010 which can conflict with char $ac_func (); below.
21011 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21012 <limits.h> exists even on freestanding compilers. */
21014 #ifdef __STDC__
21015 # include <limits.h>
21016 #else
21017 # include <assert.h>
21018 #endif
21020 #undef $ac_func
21022 /* Override any GCC internal prototype to avoid an error.
21023 Use char because int might match the return type of a GCC
21024 builtin and then its argument prototype would still apply. */
21025 #ifdef __cplusplus
21026 extern "C"
21027 #endif
21028 char $ac_func ();
21029 /* The GNU C library defines this for functions which it implements
21030 to always fail with ENOSYS. Some functions are actually named
21031 something starting with __ and the normal name is an alias. */
21032 #if defined __stub_$ac_func || defined __stub___$ac_func
21033 choke me
21034 #endif
21037 main ()
21039 return $ac_func ();
21041 return 0;
21043 _ACEOF
21044 rm -f conftest.$ac_objext conftest$ac_exeext
21045 if { (ac_try="$ac_link"
21046 case "(($ac_try" in
21047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21048 *) ac_try_echo=$ac_try;;
21049 esac
21050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21051 (eval "$ac_link") 2>conftest.er1
21052 ac_status=$?
21053 grep -v '^ *+' conftest.er1 >conftest.err
21054 rm -f conftest.er1
21055 cat conftest.err >&5
21056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21057 (exit $ac_status); } && {
21058 test -z "$ac_c_werror_flag" ||
21059 test ! -s conftest.err
21060 } && test -s conftest$ac_exeext &&
21061 $as_test_x conftest$ac_exeext; then
21062 eval "$as_ac_var=yes"
21063 else
21064 echo "$as_me: failed program was:" >&5
21065 sed 's/^/| /' conftest.$ac_ext >&5
21067 eval "$as_ac_var=no"
21070 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21071 conftest$ac_exeext conftest.$ac_ext
21073 ac_res=`eval echo '${'$as_ac_var'}'`
21074 { echo "$as_me:$LINENO: result: $ac_res" >&5
21075 echo "${ECHO_T}$ac_res" >&6; }
21076 if test `eval echo '${'$as_ac_var'}'` = yes; then
21077 cat >>confdefs.h <<_ACEOF
21078 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21079 _ACEOF
21081 else
21082 case " $LIBOBJS " in
21083 *" $ac_func.$ac_objext "* ) ;;
21084 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
21086 esac
21089 done
21102 for ac_func in acosh asinh atanh copysign expm1 finite isinf isnan log1p
21104 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21105 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21106 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21107 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21108 echo $ECHO_N "(cached) $ECHO_C" >&6
21109 else
21110 cat >conftest.$ac_ext <<_ACEOF
21111 /* confdefs.h. */
21112 _ACEOF
21113 cat confdefs.h >>conftest.$ac_ext
21114 cat >>conftest.$ac_ext <<_ACEOF
21115 /* end confdefs.h. */
21116 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21117 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21118 #define $ac_func innocuous_$ac_func
21120 /* System header to define __stub macros and hopefully few prototypes,
21121 which can conflict with char $ac_func (); below.
21122 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21123 <limits.h> exists even on freestanding compilers. */
21125 #ifdef __STDC__
21126 # include <limits.h>
21127 #else
21128 # include <assert.h>
21129 #endif
21131 #undef $ac_func
21133 /* Override any GCC internal prototype to avoid an error.
21134 Use char because int might match the return type of a GCC
21135 builtin and then its argument prototype would still apply. */
21136 #ifdef __cplusplus
21137 extern "C"
21138 #endif
21139 char $ac_func ();
21140 /* The GNU C library defines this for functions which it implements
21141 to always fail with ENOSYS. Some functions are actually named
21142 something starting with __ and the normal name is an alias. */
21143 #if defined __stub_$ac_func || defined __stub___$ac_func
21144 choke me
21145 #endif
21148 main ()
21150 return $ac_func ();
21152 return 0;
21154 _ACEOF
21155 rm -f conftest.$ac_objext conftest$ac_exeext
21156 if { (ac_try="$ac_link"
21157 case "(($ac_try" in
21158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21159 *) ac_try_echo=$ac_try;;
21160 esac
21161 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21162 (eval "$ac_link") 2>conftest.er1
21163 ac_status=$?
21164 grep -v '^ *+' conftest.er1 >conftest.err
21165 rm -f conftest.er1
21166 cat conftest.err >&5
21167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21168 (exit $ac_status); } && {
21169 test -z "$ac_c_werror_flag" ||
21170 test ! -s conftest.err
21171 } && test -s conftest$ac_exeext &&
21172 $as_test_x conftest$ac_exeext; then
21173 eval "$as_ac_var=yes"
21174 else
21175 echo "$as_me: failed program was:" >&5
21176 sed 's/^/| /' conftest.$ac_ext >&5
21178 eval "$as_ac_var=no"
21181 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21182 conftest$ac_exeext conftest.$ac_ext
21184 ac_res=`eval echo '${'$as_ac_var'}'`
21185 { echo "$as_me:$LINENO: result: $ac_res" >&5
21186 echo "${ECHO_T}$ac_res" >&6; }
21187 if test `eval echo '${'$as_ac_var'}'` = yes; then
21188 cat >>confdefs.h <<_ACEOF
21189 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21190 _ACEOF
21193 done
21196 LIBS=$LIBS_SAVE
21198 # check for wchar.h
21199 if test "${ac_cv_header_wchar_h+set}" = set; then
21200 { echo "$as_me:$LINENO: checking for wchar.h" >&5
21201 echo $ECHO_N "checking for wchar.h... $ECHO_C" >&6; }
21202 if test "${ac_cv_header_wchar_h+set}" = set; then
21203 echo $ECHO_N "(cached) $ECHO_C" >&6
21205 { echo "$as_me:$LINENO: result: $ac_cv_header_wchar_h" >&5
21206 echo "${ECHO_T}$ac_cv_header_wchar_h" >&6; }
21207 else
21208 # Is the header compilable?
21209 { echo "$as_me:$LINENO: checking wchar.h usability" >&5
21210 echo $ECHO_N "checking wchar.h usability... $ECHO_C" >&6; }
21211 cat >conftest.$ac_ext <<_ACEOF
21212 /* confdefs.h. */
21213 _ACEOF
21214 cat confdefs.h >>conftest.$ac_ext
21215 cat >>conftest.$ac_ext <<_ACEOF
21216 /* end confdefs.h. */
21217 $ac_includes_default
21218 #include <wchar.h>
21219 _ACEOF
21220 rm -f conftest.$ac_objext
21221 if { (ac_try="$ac_compile"
21222 case "(($ac_try" in
21223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21224 *) ac_try_echo=$ac_try;;
21225 esac
21226 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21227 (eval "$ac_compile") 2>conftest.er1
21228 ac_status=$?
21229 grep -v '^ *+' conftest.er1 >conftest.err
21230 rm -f conftest.er1
21231 cat conftest.err >&5
21232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21233 (exit $ac_status); } && {
21234 test -z "$ac_c_werror_flag" ||
21235 test ! -s conftest.err
21236 } && test -s conftest.$ac_objext; then
21237 ac_header_compiler=yes
21238 else
21239 echo "$as_me: failed program was:" >&5
21240 sed 's/^/| /' conftest.$ac_ext >&5
21242 ac_header_compiler=no
21245 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21246 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21247 echo "${ECHO_T}$ac_header_compiler" >&6; }
21249 # Is the header present?
21250 { echo "$as_me:$LINENO: checking wchar.h presence" >&5
21251 echo $ECHO_N "checking wchar.h presence... $ECHO_C" >&6; }
21252 cat >conftest.$ac_ext <<_ACEOF
21253 /* confdefs.h. */
21254 _ACEOF
21255 cat confdefs.h >>conftest.$ac_ext
21256 cat >>conftest.$ac_ext <<_ACEOF
21257 /* end confdefs.h. */
21258 #include <wchar.h>
21259 _ACEOF
21260 if { (ac_try="$ac_cpp conftest.$ac_ext"
21261 case "(($ac_try" in
21262 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21263 *) ac_try_echo=$ac_try;;
21264 esac
21265 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21266 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21267 ac_status=$?
21268 grep -v '^ *+' conftest.er1 >conftest.err
21269 rm -f conftest.er1
21270 cat conftest.err >&5
21271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21272 (exit $ac_status); } >/dev/null && {
21273 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21274 test ! -s conftest.err
21275 }; then
21276 ac_header_preproc=yes
21277 else
21278 echo "$as_me: failed program was:" >&5
21279 sed 's/^/| /' conftest.$ac_ext >&5
21281 ac_header_preproc=no
21284 rm -f conftest.err conftest.$ac_ext
21285 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21286 echo "${ECHO_T}$ac_header_preproc" >&6; }
21288 # So? What about this header?
21289 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21290 yes:no: )
21291 { echo "$as_me:$LINENO: WARNING: wchar.h: accepted by the compiler, rejected by the preprocessor!" >&5
21292 echo "$as_me: WARNING: wchar.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21293 { echo "$as_me:$LINENO: WARNING: wchar.h: proceeding with the compiler's result" >&5
21294 echo "$as_me: WARNING: wchar.h: proceeding with the compiler's result" >&2;}
21295 ac_header_preproc=yes
21297 no:yes:* )
21298 { echo "$as_me:$LINENO: WARNING: wchar.h: present but cannot be compiled" >&5
21299 echo "$as_me: WARNING: wchar.h: present but cannot be compiled" >&2;}
21300 { echo "$as_me:$LINENO: WARNING: wchar.h: check for missing prerequisite headers?" >&5
21301 echo "$as_me: WARNING: wchar.h: check for missing prerequisite headers?" >&2;}
21302 { echo "$as_me:$LINENO: WARNING: wchar.h: see the Autoconf documentation" >&5
21303 echo "$as_me: WARNING: wchar.h: see the Autoconf documentation" >&2;}
21304 { echo "$as_me:$LINENO: WARNING: wchar.h: section \"Present But Cannot Be Compiled\"" >&5
21305 echo "$as_me: WARNING: wchar.h: section \"Present But Cannot Be Compiled\"" >&2;}
21306 { echo "$as_me:$LINENO: WARNING: wchar.h: proceeding with the preprocessor's result" >&5
21307 echo "$as_me: WARNING: wchar.h: proceeding with the preprocessor's result" >&2;}
21308 { echo "$as_me:$LINENO: WARNING: wchar.h: in the future, the compiler will take precedence" >&5
21309 echo "$as_me: WARNING: wchar.h: in the future, the compiler will take precedence" >&2;}
21310 ( cat <<\_ASBOX
21311 ## ------------------------------------------------ ##
21312 ## Report this to http://www.python.org/python-bugs ##
21313 ## ------------------------------------------------ ##
21314 _ASBOX
21315 ) | sed "s/^/$as_me: WARNING: /" >&2
21317 esac
21318 { echo "$as_me:$LINENO: checking for wchar.h" >&5
21319 echo $ECHO_N "checking for wchar.h... $ECHO_C" >&6; }
21320 if test "${ac_cv_header_wchar_h+set}" = set; then
21321 echo $ECHO_N "(cached) $ECHO_C" >&6
21322 else
21323 ac_cv_header_wchar_h=$ac_header_preproc
21325 { echo "$as_me:$LINENO: result: $ac_cv_header_wchar_h" >&5
21326 echo "${ECHO_T}$ac_cv_header_wchar_h" >&6; }
21329 if test $ac_cv_header_wchar_h = yes; then
21332 cat >>confdefs.h <<\_ACEOF
21333 #define HAVE_WCHAR_H 1
21334 _ACEOF
21336 wchar_h="yes"
21338 else
21339 wchar_h="no"
21345 # determine wchar_t size
21346 if test "$wchar_h" = yes
21347 then
21348 { echo "$as_me:$LINENO: checking for wchar_t" >&5
21349 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6; }
21350 if test "${ac_cv_type_wchar_t+set}" = set; then
21351 echo $ECHO_N "(cached) $ECHO_C" >&6
21352 else
21353 cat >conftest.$ac_ext <<_ACEOF
21354 /* confdefs.h. */
21355 _ACEOF
21356 cat confdefs.h >>conftest.$ac_ext
21357 cat >>conftest.$ac_ext <<_ACEOF
21358 /* end confdefs.h. */
21359 #include <wchar.h>
21361 typedef wchar_t ac__type_new_;
21363 main ()
21365 if ((ac__type_new_ *) 0)
21366 return 0;
21367 if (sizeof (ac__type_new_))
21368 return 0;
21370 return 0;
21372 _ACEOF
21373 rm -f conftest.$ac_objext
21374 if { (ac_try="$ac_compile"
21375 case "(($ac_try" in
21376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21377 *) ac_try_echo=$ac_try;;
21378 esac
21379 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21380 (eval "$ac_compile") 2>conftest.er1
21381 ac_status=$?
21382 grep -v '^ *+' conftest.er1 >conftest.err
21383 rm -f conftest.er1
21384 cat conftest.err >&5
21385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21386 (exit $ac_status); } && {
21387 test -z "$ac_c_werror_flag" ||
21388 test ! -s conftest.err
21389 } && test -s conftest.$ac_objext; then
21390 ac_cv_type_wchar_t=yes
21391 else
21392 echo "$as_me: failed program was:" >&5
21393 sed 's/^/| /' conftest.$ac_ext >&5
21395 ac_cv_type_wchar_t=no
21398 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21400 { echo "$as_me:$LINENO: result: $ac_cv_type_wchar_t" >&5
21401 echo "${ECHO_T}$ac_cv_type_wchar_t" >&6; }
21403 # The cast to long int works around a bug in the HP C Compiler
21404 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21405 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21406 # This bug is HP SR number 8606223364.
21407 { echo "$as_me:$LINENO: checking size of wchar_t" >&5
21408 echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6; }
21409 if test "${ac_cv_sizeof_wchar_t+set}" = set; then
21410 echo $ECHO_N "(cached) $ECHO_C" >&6
21411 else
21412 if test "$cross_compiling" = yes; then
21413 # Depending upon the size, compute the lo and hi bounds.
21414 cat >conftest.$ac_ext <<_ACEOF
21415 /* confdefs.h. */
21416 _ACEOF
21417 cat confdefs.h >>conftest.$ac_ext
21418 cat >>conftest.$ac_ext <<_ACEOF
21419 /* end confdefs.h. */
21420 #include <wchar.h>
21422 typedef wchar_t ac__type_sizeof_;
21424 main ()
21426 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
21427 test_array [0] = 0
21430 return 0;
21432 _ACEOF
21433 rm -f conftest.$ac_objext
21434 if { (ac_try="$ac_compile"
21435 case "(($ac_try" in
21436 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21437 *) ac_try_echo=$ac_try;;
21438 esac
21439 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21440 (eval "$ac_compile") 2>conftest.er1
21441 ac_status=$?
21442 grep -v '^ *+' conftest.er1 >conftest.err
21443 rm -f conftest.er1
21444 cat conftest.err >&5
21445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21446 (exit $ac_status); } && {
21447 test -z "$ac_c_werror_flag" ||
21448 test ! -s conftest.err
21449 } && test -s conftest.$ac_objext; then
21450 ac_lo=0 ac_mid=0
21451 while :; do
21452 cat >conftest.$ac_ext <<_ACEOF
21453 /* confdefs.h. */
21454 _ACEOF
21455 cat confdefs.h >>conftest.$ac_ext
21456 cat >>conftest.$ac_ext <<_ACEOF
21457 /* end confdefs.h. */
21458 #include <wchar.h>
21460 typedef wchar_t ac__type_sizeof_;
21462 main ()
21464 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
21465 test_array [0] = 0
21468 return 0;
21470 _ACEOF
21471 rm -f conftest.$ac_objext
21472 if { (ac_try="$ac_compile"
21473 case "(($ac_try" in
21474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21475 *) ac_try_echo=$ac_try;;
21476 esac
21477 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21478 (eval "$ac_compile") 2>conftest.er1
21479 ac_status=$?
21480 grep -v '^ *+' conftest.er1 >conftest.err
21481 rm -f conftest.er1
21482 cat conftest.err >&5
21483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21484 (exit $ac_status); } && {
21485 test -z "$ac_c_werror_flag" ||
21486 test ! -s conftest.err
21487 } && test -s conftest.$ac_objext; then
21488 ac_hi=$ac_mid; break
21489 else
21490 echo "$as_me: failed program was:" >&5
21491 sed 's/^/| /' conftest.$ac_ext >&5
21493 ac_lo=`expr $ac_mid + 1`
21494 if test $ac_lo -le $ac_mid; then
21495 ac_lo= ac_hi=
21496 break
21498 ac_mid=`expr 2 '*' $ac_mid + 1`
21501 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21502 done
21503 else
21504 echo "$as_me: failed program was:" >&5
21505 sed 's/^/| /' conftest.$ac_ext >&5
21507 cat >conftest.$ac_ext <<_ACEOF
21508 /* confdefs.h. */
21509 _ACEOF
21510 cat confdefs.h >>conftest.$ac_ext
21511 cat >>conftest.$ac_ext <<_ACEOF
21512 /* end confdefs.h. */
21513 #include <wchar.h>
21515 typedef wchar_t ac__type_sizeof_;
21517 main ()
21519 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
21520 test_array [0] = 0
21523 return 0;
21525 _ACEOF
21526 rm -f conftest.$ac_objext
21527 if { (ac_try="$ac_compile"
21528 case "(($ac_try" in
21529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21530 *) ac_try_echo=$ac_try;;
21531 esac
21532 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21533 (eval "$ac_compile") 2>conftest.er1
21534 ac_status=$?
21535 grep -v '^ *+' conftest.er1 >conftest.err
21536 rm -f conftest.er1
21537 cat conftest.err >&5
21538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21539 (exit $ac_status); } && {
21540 test -z "$ac_c_werror_flag" ||
21541 test ! -s conftest.err
21542 } && test -s conftest.$ac_objext; then
21543 ac_hi=-1 ac_mid=-1
21544 while :; do
21545 cat >conftest.$ac_ext <<_ACEOF
21546 /* confdefs.h. */
21547 _ACEOF
21548 cat confdefs.h >>conftest.$ac_ext
21549 cat >>conftest.$ac_ext <<_ACEOF
21550 /* end confdefs.h. */
21551 #include <wchar.h>
21553 typedef wchar_t ac__type_sizeof_;
21555 main ()
21557 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
21558 test_array [0] = 0
21561 return 0;
21563 _ACEOF
21564 rm -f conftest.$ac_objext
21565 if { (ac_try="$ac_compile"
21566 case "(($ac_try" in
21567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21568 *) ac_try_echo=$ac_try;;
21569 esac
21570 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21571 (eval "$ac_compile") 2>conftest.er1
21572 ac_status=$?
21573 grep -v '^ *+' conftest.er1 >conftest.err
21574 rm -f conftest.er1
21575 cat conftest.err >&5
21576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21577 (exit $ac_status); } && {
21578 test -z "$ac_c_werror_flag" ||
21579 test ! -s conftest.err
21580 } && test -s conftest.$ac_objext; then
21581 ac_lo=$ac_mid; break
21582 else
21583 echo "$as_me: failed program was:" >&5
21584 sed 's/^/| /' conftest.$ac_ext >&5
21586 ac_hi=`expr '(' $ac_mid ')' - 1`
21587 if test $ac_mid -le $ac_hi; then
21588 ac_lo= ac_hi=
21589 break
21591 ac_mid=`expr 2 '*' $ac_mid`
21594 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21595 done
21596 else
21597 echo "$as_me: failed program was:" >&5
21598 sed 's/^/| /' conftest.$ac_ext >&5
21600 ac_lo= ac_hi=
21603 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21606 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21607 # Binary search between lo and hi bounds.
21608 while test "x$ac_lo" != "x$ac_hi"; do
21609 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21610 cat >conftest.$ac_ext <<_ACEOF
21611 /* confdefs.h. */
21612 _ACEOF
21613 cat confdefs.h >>conftest.$ac_ext
21614 cat >>conftest.$ac_ext <<_ACEOF
21615 /* end confdefs.h. */
21616 #include <wchar.h>
21618 typedef wchar_t ac__type_sizeof_;
21620 main ()
21622 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
21623 test_array [0] = 0
21626 return 0;
21628 _ACEOF
21629 rm -f conftest.$ac_objext
21630 if { (ac_try="$ac_compile"
21631 case "(($ac_try" in
21632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21633 *) ac_try_echo=$ac_try;;
21634 esac
21635 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21636 (eval "$ac_compile") 2>conftest.er1
21637 ac_status=$?
21638 grep -v '^ *+' conftest.er1 >conftest.err
21639 rm -f conftest.er1
21640 cat conftest.err >&5
21641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21642 (exit $ac_status); } && {
21643 test -z "$ac_c_werror_flag" ||
21644 test ! -s conftest.err
21645 } && test -s conftest.$ac_objext; then
21646 ac_hi=$ac_mid
21647 else
21648 echo "$as_me: failed program was:" >&5
21649 sed 's/^/| /' conftest.$ac_ext >&5
21651 ac_lo=`expr '(' $ac_mid ')' + 1`
21654 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21655 done
21656 case $ac_lo in
21657 ?*) ac_cv_sizeof_wchar_t=$ac_lo;;
21658 '') if test "$ac_cv_type_wchar_t" = yes; then
21659 { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t)
21660 See \`config.log' for more details." >&5
21661 echo "$as_me: error: cannot compute sizeof (wchar_t)
21662 See \`config.log' for more details." >&2;}
21663 { (exit 77); exit 77; }; }
21664 else
21665 ac_cv_sizeof_wchar_t=0
21666 fi ;;
21667 esac
21668 else
21669 cat >conftest.$ac_ext <<_ACEOF
21670 /* confdefs.h. */
21671 _ACEOF
21672 cat confdefs.h >>conftest.$ac_ext
21673 cat >>conftest.$ac_ext <<_ACEOF
21674 /* end confdefs.h. */
21675 #include <wchar.h>
21677 typedef wchar_t ac__type_sizeof_;
21678 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
21679 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
21680 #include <stdio.h>
21681 #include <stdlib.h>
21683 main ()
21686 FILE *f = fopen ("conftest.val", "w");
21687 if (! f)
21688 return 1;
21689 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
21691 long int i = longval ();
21692 if (i != ((long int) (sizeof (ac__type_sizeof_))))
21693 return 1;
21694 fprintf (f, "%ld\n", i);
21696 else
21698 unsigned long int i = ulongval ();
21699 if (i != ((long int) (sizeof (ac__type_sizeof_))))
21700 return 1;
21701 fprintf (f, "%lu\n", i);
21703 return ferror (f) || fclose (f) != 0;
21706 return 0;
21708 _ACEOF
21709 rm -f conftest$ac_exeext
21710 if { (ac_try="$ac_link"
21711 case "(($ac_try" in
21712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21713 *) ac_try_echo=$ac_try;;
21714 esac
21715 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21716 (eval "$ac_link") 2>&5
21717 ac_status=$?
21718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21719 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21720 { (case "(($ac_try" in
21721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21722 *) ac_try_echo=$ac_try;;
21723 esac
21724 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21725 (eval "$ac_try") 2>&5
21726 ac_status=$?
21727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21728 (exit $ac_status); }; }; then
21729 ac_cv_sizeof_wchar_t=`cat conftest.val`
21730 else
21731 echo "$as_me: program exited with status $ac_status" >&5
21732 echo "$as_me: failed program was:" >&5
21733 sed 's/^/| /' conftest.$ac_ext >&5
21735 ( exit $ac_status )
21736 if test "$ac_cv_type_wchar_t" = yes; then
21737 { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t)
21738 See \`config.log' for more details." >&5
21739 echo "$as_me: error: cannot compute sizeof (wchar_t)
21740 See \`config.log' for more details." >&2;}
21741 { (exit 77); exit 77; }; }
21742 else
21743 ac_cv_sizeof_wchar_t=0
21746 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21748 rm -f conftest.val
21750 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_wchar_t" >&5
21751 echo "${ECHO_T}$ac_cv_sizeof_wchar_t" >&6; }
21755 cat >>confdefs.h <<_ACEOF
21756 #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
21757 _ACEOF
21762 { echo "$as_me:$LINENO: checking for UCS-4 tcl" >&5
21763 echo $ECHO_N "checking for UCS-4 tcl... $ECHO_C" >&6; }
21764 have_ucs4_tcl=no
21765 cat >conftest.$ac_ext <<_ACEOF
21766 /* confdefs.h. */
21767 _ACEOF
21768 cat confdefs.h >>conftest.$ac_ext
21769 cat >>conftest.$ac_ext <<_ACEOF
21770 /* end confdefs.h. */
21772 #include <tcl.h>
21773 #if TCL_UTF_MAX != 6
21774 # error "NOT UCS4_TCL"
21775 #endif
21777 main ()
21781 return 0;
21783 _ACEOF
21784 rm -f conftest.$ac_objext
21785 if { (ac_try="$ac_compile"
21786 case "(($ac_try" in
21787 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21788 *) ac_try_echo=$ac_try;;
21789 esac
21790 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21791 (eval "$ac_compile") 2>conftest.er1
21792 ac_status=$?
21793 grep -v '^ *+' conftest.er1 >conftest.err
21794 rm -f conftest.er1
21795 cat conftest.err >&5
21796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21797 (exit $ac_status); } && {
21798 test -z "$ac_c_werror_flag" ||
21799 test ! -s conftest.err
21800 } && test -s conftest.$ac_objext; then
21803 cat >>confdefs.h <<\_ACEOF
21804 #define HAVE_UCS4_TCL 1
21805 _ACEOF
21807 have_ucs4_tcl=yes
21809 else
21810 echo "$as_me: failed program was:" >&5
21811 sed 's/^/| /' conftest.$ac_ext >&5
21816 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21817 { echo "$as_me:$LINENO: result: $have_ucs4_tcl" >&5
21818 echo "${ECHO_T}$have_ucs4_tcl" >&6; }
21820 # check whether wchar_t is signed or not
21821 if test "$wchar_h" = yes
21822 then
21823 # check whether wchar_t is signed or not
21824 { echo "$as_me:$LINENO: checking whether wchar_t is signed" >&5
21825 echo $ECHO_N "checking whether wchar_t is signed... $ECHO_C" >&6; }
21826 if test "${ac_cv_wchar_t_signed+set}" = set; then
21827 echo $ECHO_N "(cached) $ECHO_C" >&6
21828 else
21830 if test "$cross_compiling" = yes; then
21831 ac_cv_wchar_t_signed=yes
21832 else
21833 cat >conftest.$ac_ext <<_ACEOF
21834 /* confdefs.h. */
21835 _ACEOF
21836 cat confdefs.h >>conftest.$ac_ext
21837 cat >>conftest.$ac_ext <<_ACEOF
21838 /* end confdefs.h. */
21840 #include <wchar.h>
21841 int main()
21843 /* Success: exit code 0 */
21844 exit((((wchar_t) -1) < ((wchar_t) 0)) ? 0 : 1);
21847 _ACEOF
21848 rm -f conftest$ac_exeext
21849 if { (ac_try="$ac_link"
21850 case "(($ac_try" in
21851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21852 *) ac_try_echo=$ac_try;;
21853 esac
21854 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21855 (eval "$ac_link") 2>&5
21856 ac_status=$?
21857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21858 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21859 { (case "(($ac_try" in
21860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21861 *) ac_try_echo=$ac_try;;
21862 esac
21863 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21864 (eval "$ac_try") 2>&5
21865 ac_status=$?
21866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21867 (exit $ac_status); }; }; then
21868 ac_cv_wchar_t_signed=yes
21869 else
21870 echo "$as_me: program exited with status $ac_status" >&5
21871 echo "$as_me: failed program was:" >&5
21872 sed 's/^/| /' conftest.$ac_ext >&5
21874 ( exit $ac_status )
21875 ac_cv_wchar_t_signed=no
21877 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21883 { echo "$as_me:$LINENO: result: $ac_cv_wchar_t_signed" >&5
21884 echo "${ECHO_T}$ac_cv_wchar_t_signed" >&6; }
21887 { echo "$as_me:$LINENO: checking what type to use for unicode" >&5
21888 echo $ECHO_N "checking what type to use for unicode... $ECHO_C" >&6; }
21889 # Check whether --enable-unicode was given.
21890 if test "${enable_unicode+set}" = set; then
21891 enableval=$enable_unicode;
21892 else
21893 enable_unicode=yes
21897 if test $enable_unicode = yes
21898 then
21899 # Without any arguments, Py_UNICODE defaults to two-byte mode
21900 case "$have_ucs4_tcl" in
21901 yes) enable_unicode="ucs4"
21903 *) enable_unicode="ucs2"
21905 esac
21910 case "$enable_unicode" in
21911 ucs2) unicode_size="2"
21912 cat >>confdefs.h <<\_ACEOF
21913 #define Py_UNICODE_SIZE 2
21914 _ACEOF
21917 ucs4) unicode_size="4"
21918 cat >>confdefs.h <<\_ACEOF
21919 #define Py_UNICODE_SIZE 4
21920 _ACEOF
21923 esac
21929 if test "$enable_unicode" = "no"
21930 then
21931 UNICODE_OBJS=""
21932 { echo "$as_me:$LINENO: result: not used" >&5
21933 echo "${ECHO_T}not used" >&6; }
21934 else
21935 UNICODE_OBJS="Objects/unicodeobject.o Objects/unicodectype.o"
21937 cat >>confdefs.h <<\_ACEOF
21938 #define Py_USING_UNICODE 1
21939 _ACEOF
21942 # wchar_t is only usable if it maps to an unsigned type
21943 if test "$unicode_size" = "$ac_cv_sizeof_wchar_t" \
21944 -a "$ac_cv_wchar_t_signed" = "no"
21945 then
21946 PY_UNICODE_TYPE="wchar_t"
21948 cat >>confdefs.h <<\_ACEOF
21949 #define HAVE_USABLE_WCHAR_T 1
21950 _ACEOF
21952 cat >>confdefs.h <<\_ACEOF
21953 #define PY_UNICODE_TYPE wchar_t
21954 _ACEOF
21956 elif test "$ac_cv_sizeof_short" = "$unicode_size"
21957 then
21958 PY_UNICODE_TYPE="unsigned short"
21959 cat >>confdefs.h <<\_ACEOF
21960 #define PY_UNICODE_TYPE unsigned short
21961 _ACEOF
21963 elif test "$ac_cv_sizeof_long" = "$unicode_size"
21964 then
21965 PY_UNICODE_TYPE="unsigned long"
21966 cat >>confdefs.h <<\_ACEOF
21967 #define PY_UNICODE_TYPE unsigned long
21968 _ACEOF
21970 else
21971 PY_UNICODE_TYPE="no type found"
21973 { echo "$as_me:$LINENO: result: $PY_UNICODE_TYPE" >&5
21974 echo "${ECHO_T}$PY_UNICODE_TYPE" >&6; }
21977 # check for endianness
21978 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
21979 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
21980 if test "${ac_cv_c_bigendian+set}" = set; then
21981 echo $ECHO_N "(cached) $ECHO_C" >&6
21982 else
21983 # See if sys/param.h defines the BYTE_ORDER macro.
21984 cat >conftest.$ac_ext <<_ACEOF
21985 /* confdefs.h. */
21986 _ACEOF
21987 cat confdefs.h >>conftest.$ac_ext
21988 cat >>conftest.$ac_ext <<_ACEOF
21989 /* end confdefs.h. */
21990 #include <sys/types.h>
21991 #include <sys/param.h>
21994 main ()
21996 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
21997 && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
21998 bogus endian macros
21999 #endif
22002 return 0;
22004 _ACEOF
22005 rm -f conftest.$ac_objext
22006 if { (ac_try="$ac_compile"
22007 case "(($ac_try" in
22008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22009 *) ac_try_echo=$ac_try;;
22010 esac
22011 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22012 (eval "$ac_compile") 2>conftest.er1
22013 ac_status=$?
22014 grep -v '^ *+' conftest.er1 >conftest.err
22015 rm -f conftest.er1
22016 cat conftest.err >&5
22017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22018 (exit $ac_status); } && {
22019 test -z "$ac_c_werror_flag" ||
22020 test ! -s conftest.err
22021 } && test -s conftest.$ac_objext; then
22022 # It does; now see whether it defined to BIG_ENDIAN or not.
22023 cat >conftest.$ac_ext <<_ACEOF
22024 /* confdefs.h. */
22025 _ACEOF
22026 cat confdefs.h >>conftest.$ac_ext
22027 cat >>conftest.$ac_ext <<_ACEOF
22028 /* end confdefs.h. */
22029 #include <sys/types.h>
22030 #include <sys/param.h>
22033 main ()
22035 #if BYTE_ORDER != BIG_ENDIAN
22036 not big endian
22037 #endif
22040 return 0;
22042 _ACEOF
22043 rm -f conftest.$ac_objext
22044 if { (ac_try="$ac_compile"
22045 case "(($ac_try" in
22046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22047 *) ac_try_echo=$ac_try;;
22048 esac
22049 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22050 (eval "$ac_compile") 2>conftest.er1
22051 ac_status=$?
22052 grep -v '^ *+' conftest.er1 >conftest.err
22053 rm -f conftest.er1
22054 cat conftest.err >&5
22055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22056 (exit $ac_status); } && {
22057 test -z "$ac_c_werror_flag" ||
22058 test ! -s conftest.err
22059 } && test -s conftest.$ac_objext; then
22060 ac_cv_c_bigendian=yes
22061 else
22062 echo "$as_me: failed program was:" >&5
22063 sed 's/^/| /' conftest.$ac_ext >&5
22065 ac_cv_c_bigendian=no
22068 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22069 else
22070 echo "$as_me: failed program was:" >&5
22071 sed 's/^/| /' conftest.$ac_ext >&5
22073 # It does not; compile a test program.
22074 if test "$cross_compiling" = yes; then
22075 # try to guess the endianness by grepping values into an object file
22076 ac_cv_c_bigendian=unknown
22077 cat >conftest.$ac_ext <<_ACEOF
22078 /* confdefs.h. */
22079 _ACEOF
22080 cat confdefs.h >>conftest.$ac_ext
22081 cat >>conftest.$ac_ext <<_ACEOF
22082 /* end confdefs.h. */
22083 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
22084 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
22085 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
22086 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
22087 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
22088 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
22090 main ()
22092 _ascii (); _ebcdic ();
22094 return 0;
22096 _ACEOF
22097 rm -f conftest.$ac_objext
22098 if { (ac_try="$ac_compile"
22099 case "(($ac_try" in
22100 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22101 *) ac_try_echo=$ac_try;;
22102 esac
22103 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22104 (eval "$ac_compile") 2>conftest.er1
22105 ac_status=$?
22106 grep -v '^ *+' conftest.er1 >conftest.err
22107 rm -f conftest.er1
22108 cat conftest.err >&5
22109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22110 (exit $ac_status); } && {
22111 test -z "$ac_c_werror_flag" ||
22112 test ! -s conftest.err
22113 } && test -s conftest.$ac_objext; then
22114 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
22115 ac_cv_c_bigendian=yes
22117 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
22118 if test "$ac_cv_c_bigendian" = unknown; then
22119 ac_cv_c_bigendian=no
22120 else
22121 # finding both strings is unlikely to happen, but who knows?
22122 ac_cv_c_bigendian=unknown
22125 else
22126 echo "$as_me: failed program was:" >&5
22127 sed 's/^/| /' conftest.$ac_ext >&5
22132 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22133 else
22134 cat >conftest.$ac_ext <<_ACEOF
22135 /* confdefs.h. */
22136 _ACEOF
22137 cat confdefs.h >>conftest.$ac_ext
22138 cat >>conftest.$ac_ext <<_ACEOF
22139 /* end confdefs.h. */
22140 $ac_includes_default
22142 main ()
22145 /* Are we little or big endian? From Harbison&Steele. */
22146 union
22148 long int l;
22149 char c[sizeof (long int)];
22150 } u;
22151 u.l = 1;
22152 return u.c[sizeof (long int) - 1] == 1;
22155 return 0;
22157 _ACEOF
22158 rm -f conftest$ac_exeext
22159 if { (ac_try="$ac_link"
22160 case "(($ac_try" in
22161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22162 *) ac_try_echo=$ac_try;;
22163 esac
22164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22165 (eval "$ac_link") 2>&5
22166 ac_status=$?
22167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22168 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22169 { (case "(($ac_try" in
22170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22171 *) ac_try_echo=$ac_try;;
22172 esac
22173 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22174 (eval "$ac_try") 2>&5
22175 ac_status=$?
22176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22177 (exit $ac_status); }; }; then
22178 ac_cv_c_bigendian=no
22179 else
22180 echo "$as_me: program exited with status $ac_status" >&5
22181 echo "$as_me: failed program was:" >&5
22182 sed 's/^/| /' conftest.$ac_ext >&5
22184 ( exit $ac_status )
22185 ac_cv_c_bigendian=yes
22187 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22193 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22195 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
22196 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
22197 case $ac_cv_c_bigendian in
22198 yes)
22200 cat >>confdefs.h <<\_ACEOF
22201 #define WORDS_BIGENDIAN 1
22202 _ACEOF
22207 { { echo "$as_me:$LINENO: error: unknown endianness
22208 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
22209 echo "$as_me: error: unknown endianness
22210 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
22211 { (exit 1); exit 1; }; } ;;
22212 esac
22217 # Check whether right shifting a negative integer extends the sign bit
22218 # or fills with zeros (like the Cray J90, according to Tim Peters).
22219 { echo "$as_me:$LINENO: checking whether right shift extends the sign bit" >&5
22220 echo $ECHO_N "checking whether right shift extends the sign bit... $ECHO_C" >&6; }
22221 if test "${ac_cv_rshift_extends_sign+set}" = set; then
22222 echo $ECHO_N "(cached) $ECHO_C" >&6
22223 else
22225 if test "$cross_compiling" = yes; then
22226 ac_cv_rshift_extends_sign=yes
22227 else
22228 cat >conftest.$ac_ext <<_ACEOF
22229 /* confdefs.h. */
22230 _ACEOF
22231 cat confdefs.h >>conftest.$ac_ext
22232 cat >>conftest.$ac_ext <<_ACEOF
22233 /* end confdefs.h. */
22235 int main()
22237 exit(((-1)>>3 == -1) ? 0 : 1);
22240 _ACEOF
22241 rm -f conftest$ac_exeext
22242 if { (ac_try="$ac_link"
22243 case "(($ac_try" in
22244 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22245 *) ac_try_echo=$ac_try;;
22246 esac
22247 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22248 (eval "$ac_link") 2>&5
22249 ac_status=$?
22250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22251 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22252 { (case "(($ac_try" in
22253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22254 *) ac_try_echo=$ac_try;;
22255 esac
22256 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22257 (eval "$ac_try") 2>&5
22258 ac_status=$?
22259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22260 (exit $ac_status); }; }; then
22261 ac_cv_rshift_extends_sign=yes
22262 else
22263 echo "$as_me: program exited with status $ac_status" >&5
22264 echo "$as_me: failed program was:" >&5
22265 sed 's/^/| /' conftest.$ac_ext >&5
22267 ( exit $ac_status )
22268 ac_cv_rshift_extends_sign=no
22270 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22276 { echo "$as_me:$LINENO: result: $ac_cv_rshift_extends_sign" >&5
22277 echo "${ECHO_T}$ac_cv_rshift_extends_sign" >&6; }
22278 if test "$ac_cv_rshift_extends_sign" = no
22279 then
22281 cat >>confdefs.h <<\_ACEOF
22282 #define SIGNED_RIGHT_SHIFT_ZERO_FILLS 1
22283 _ACEOF
22287 # check for getc_unlocked and related locking functions
22288 { echo "$as_me:$LINENO: checking for getc_unlocked() and friends" >&5
22289 echo $ECHO_N "checking for getc_unlocked() and friends... $ECHO_C" >&6; }
22290 if test "${ac_cv_have_getc_unlocked+set}" = set; then
22291 echo $ECHO_N "(cached) $ECHO_C" >&6
22292 else
22294 cat >conftest.$ac_ext <<_ACEOF
22295 /* confdefs.h. */
22296 _ACEOF
22297 cat confdefs.h >>conftest.$ac_ext
22298 cat >>conftest.$ac_ext <<_ACEOF
22299 /* end confdefs.h. */
22300 #include <stdio.h>
22302 main ()
22305 FILE *f = fopen("/dev/null", "r");
22306 flockfile(f);
22307 getc_unlocked(f);
22308 funlockfile(f);
22311 return 0;
22313 _ACEOF
22314 rm -f conftest.$ac_objext conftest$ac_exeext
22315 if { (ac_try="$ac_link"
22316 case "(($ac_try" in
22317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22318 *) ac_try_echo=$ac_try;;
22319 esac
22320 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22321 (eval "$ac_link") 2>conftest.er1
22322 ac_status=$?
22323 grep -v '^ *+' conftest.er1 >conftest.err
22324 rm -f conftest.er1
22325 cat conftest.err >&5
22326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22327 (exit $ac_status); } && {
22328 test -z "$ac_c_werror_flag" ||
22329 test ! -s conftest.err
22330 } && test -s conftest$ac_exeext &&
22331 $as_test_x conftest$ac_exeext; then
22332 ac_cv_have_getc_unlocked=yes
22333 else
22334 echo "$as_me: failed program was:" >&5
22335 sed 's/^/| /' conftest.$ac_ext >&5
22337 ac_cv_have_getc_unlocked=no
22340 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22341 conftest$ac_exeext conftest.$ac_ext
22344 { echo "$as_me:$LINENO: result: $ac_cv_have_getc_unlocked" >&5
22345 echo "${ECHO_T}$ac_cv_have_getc_unlocked" >&6; }
22346 if test "$ac_cv_have_getc_unlocked" = yes
22347 then
22349 cat >>confdefs.h <<\_ACEOF
22350 #define HAVE_GETC_UNLOCKED 1
22351 _ACEOF
22355 # check where readline lives
22356 # save the value of LIBS so we don't actually link Python with readline
22357 LIBS_no_readline=$LIBS
22359 { echo "$as_me:$LINENO: checking for readline in -lreadline" >&5
22360 echo $ECHO_N "checking for readline in -lreadline... $ECHO_C" >&6; }
22361 if test "${ac_cv_lib_readline_readline+set}" = set; then
22362 echo $ECHO_N "(cached) $ECHO_C" >&6
22363 else
22364 ac_check_lib_save_LIBS=$LIBS
22365 LIBS="-lreadline $LIBS"
22366 cat >conftest.$ac_ext <<_ACEOF
22367 /* confdefs.h. */
22368 _ACEOF
22369 cat confdefs.h >>conftest.$ac_ext
22370 cat >>conftest.$ac_ext <<_ACEOF
22371 /* end confdefs.h. */
22373 /* Override any GCC internal prototype to avoid an error.
22374 Use char because int might match the return type of a GCC
22375 builtin and then its argument prototype would still apply. */
22376 #ifdef __cplusplus
22377 extern "C"
22378 #endif
22379 char readline ();
22381 main ()
22383 return readline ();
22385 return 0;
22387 _ACEOF
22388 rm -f conftest.$ac_objext conftest$ac_exeext
22389 if { (ac_try="$ac_link"
22390 case "(($ac_try" in
22391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22392 *) ac_try_echo=$ac_try;;
22393 esac
22394 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22395 (eval "$ac_link") 2>conftest.er1
22396 ac_status=$?
22397 grep -v '^ *+' conftest.er1 >conftest.err
22398 rm -f conftest.er1
22399 cat conftest.err >&5
22400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22401 (exit $ac_status); } && {
22402 test -z "$ac_c_werror_flag" ||
22403 test ! -s conftest.err
22404 } && test -s conftest$ac_exeext &&
22405 $as_test_x conftest$ac_exeext; then
22406 ac_cv_lib_readline_readline=yes
22407 else
22408 echo "$as_me: failed program was:" >&5
22409 sed 's/^/| /' conftest.$ac_ext >&5
22411 ac_cv_lib_readline_readline=no
22414 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22415 conftest$ac_exeext conftest.$ac_ext
22416 LIBS=$ac_check_lib_save_LIBS
22418 { echo "$as_me:$LINENO: result: $ac_cv_lib_readline_readline" >&5
22419 echo "${ECHO_T}$ac_cv_lib_readline_readline" >&6; }
22420 if test $ac_cv_lib_readline_readline = yes; then
22421 cat >>confdefs.h <<_ACEOF
22422 #define HAVE_LIBREADLINE 1
22423 _ACEOF
22425 LIBS="-lreadline $LIBS"
22429 if test "$ac_cv_have_readline_readline" = no
22430 then
22432 { echo "$as_me:$LINENO: checking for readline in -ltermcap" >&5
22433 echo $ECHO_N "checking for readline in -ltermcap... $ECHO_C" >&6; }
22434 if test "${ac_cv_lib_termcap_readline+set}" = set; then
22435 echo $ECHO_N "(cached) $ECHO_C" >&6
22436 else
22437 ac_check_lib_save_LIBS=$LIBS
22438 LIBS="-ltermcap $LIBS"
22439 cat >conftest.$ac_ext <<_ACEOF
22440 /* confdefs.h. */
22441 _ACEOF
22442 cat confdefs.h >>conftest.$ac_ext
22443 cat >>conftest.$ac_ext <<_ACEOF
22444 /* end confdefs.h. */
22446 /* Override any GCC internal prototype to avoid an error.
22447 Use char because int might match the return type of a GCC
22448 builtin and then its argument prototype would still apply. */
22449 #ifdef __cplusplus
22450 extern "C"
22451 #endif
22452 char readline ();
22454 main ()
22456 return readline ();
22458 return 0;
22460 _ACEOF
22461 rm -f conftest.$ac_objext conftest$ac_exeext
22462 if { (ac_try="$ac_link"
22463 case "(($ac_try" in
22464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22465 *) ac_try_echo=$ac_try;;
22466 esac
22467 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22468 (eval "$ac_link") 2>conftest.er1
22469 ac_status=$?
22470 grep -v '^ *+' conftest.er1 >conftest.err
22471 rm -f conftest.er1
22472 cat conftest.err >&5
22473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22474 (exit $ac_status); } && {
22475 test -z "$ac_c_werror_flag" ||
22476 test ! -s conftest.err
22477 } && test -s conftest$ac_exeext &&
22478 $as_test_x conftest$ac_exeext; then
22479 ac_cv_lib_termcap_readline=yes
22480 else
22481 echo "$as_me: failed program was:" >&5
22482 sed 's/^/| /' conftest.$ac_ext >&5
22484 ac_cv_lib_termcap_readline=no
22487 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22488 conftest$ac_exeext conftest.$ac_ext
22489 LIBS=$ac_check_lib_save_LIBS
22491 { echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_readline" >&5
22492 echo "${ECHO_T}$ac_cv_lib_termcap_readline" >&6; }
22493 if test $ac_cv_lib_termcap_readline = yes; then
22494 cat >>confdefs.h <<_ACEOF
22495 #define HAVE_LIBTERMCAP 1
22496 _ACEOF
22498 LIBS="-ltermcap $LIBS"
22504 # check for readline 2.1
22505 { echo "$as_me:$LINENO: checking for rl_callback_handler_install in -lreadline" >&5
22506 echo $ECHO_N "checking for rl_callback_handler_install in -lreadline... $ECHO_C" >&6; }
22507 if test "${ac_cv_lib_readline_rl_callback_handler_install+set}" = set; then
22508 echo $ECHO_N "(cached) $ECHO_C" >&6
22509 else
22510 ac_check_lib_save_LIBS=$LIBS
22511 LIBS="-lreadline $LIBS"
22512 cat >conftest.$ac_ext <<_ACEOF
22513 /* confdefs.h. */
22514 _ACEOF
22515 cat confdefs.h >>conftest.$ac_ext
22516 cat >>conftest.$ac_ext <<_ACEOF
22517 /* end confdefs.h. */
22519 /* Override any GCC internal prototype to avoid an error.
22520 Use char because int might match the return type of a GCC
22521 builtin and then its argument prototype would still apply. */
22522 #ifdef __cplusplus
22523 extern "C"
22524 #endif
22525 char rl_callback_handler_install ();
22527 main ()
22529 return rl_callback_handler_install ();
22531 return 0;
22533 _ACEOF
22534 rm -f conftest.$ac_objext conftest$ac_exeext
22535 if { (ac_try="$ac_link"
22536 case "(($ac_try" in
22537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22538 *) ac_try_echo=$ac_try;;
22539 esac
22540 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22541 (eval "$ac_link") 2>conftest.er1
22542 ac_status=$?
22543 grep -v '^ *+' conftest.er1 >conftest.err
22544 rm -f conftest.er1
22545 cat conftest.err >&5
22546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22547 (exit $ac_status); } && {
22548 test -z "$ac_c_werror_flag" ||
22549 test ! -s conftest.err
22550 } && test -s conftest$ac_exeext &&
22551 $as_test_x conftest$ac_exeext; then
22552 ac_cv_lib_readline_rl_callback_handler_install=yes
22553 else
22554 echo "$as_me: failed program was:" >&5
22555 sed 's/^/| /' conftest.$ac_ext >&5
22557 ac_cv_lib_readline_rl_callback_handler_install=no
22560 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22561 conftest$ac_exeext conftest.$ac_ext
22562 LIBS=$ac_check_lib_save_LIBS
22564 { echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_callback_handler_install" >&5
22565 echo "${ECHO_T}$ac_cv_lib_readline_rl_callback_handler_install" >&6; }
22566 if test $ac_cv_lib_readline_rl_callback_handler_install = yes; then
22568 cat >>confdefs.h <<\_ACEOF
22569 #define HAVE_RL_CALLBACK 1
22570 _ACEOF
22575 # check for readline 2.2
22576 cat >conftest.$ac_ext <<_ACEOF
22577 /* confdefs.h. */
22578 _ACEOF
22579 cat confdefs.h >>conftest.$ac_ext
22580 cat >>conftest.$ac_ext <<_ACEOF
22581 /* end confdefs.h. */
22582 #include <readline/readline.h>
22583 _ACEOF
22584 if { (ac_try="$ac_cpp conftest.$ac_ext"
22585 case "(($ac_try" in
22586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22587 *) ac_try_echo=$ac_try;;
22588 esac
22589 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22590 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22591 ac_status=$?
22592 grep -v '^ *+' conftest.er1 >conftest.err
22593 rm -f conftest.er1
22594 cat conftest.err >&5
22595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22596 (exit $ac_status); } >/dev/null && {
22597 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22598 test ! -s conftest.err
22599 }; then
22600 have_readline=yes
22601 else
22602 echo "$as_me: failed program was:" >&5
22603 sed 's/^/| /' conftest.$ac_ext >&5
22605 have_readline=no
22608 rm -f conftest.err conftest.$ac_ext
22609 if test $have_readline = yes
22610 then
22611 cat >conftest.$ac_ext <<_ACEOF
22612 /* confdefs.h. */
22613 _ACEOF
22614 cat confdefs.h >>conftest.$ac_ext
22615 cat >>conftest.$ac_ext <<_ACEOF
22616 /* end confdefs.h. */
22617 #include <readline/readline.h>
22619 _ACEOF
22620 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22621 $EGREP "extern int rl_completion_append_character;" >/dev/null 2>&1; then
22623 cat >>confdefs.h <<\_ACEOF
22624 #define HAVE_RL_COMPLETION_APPEND_CHARACTER 1
22625 _ACEOF
22628 rm -f conftest*
22632 # check for readline 4.0
22633 { echo "$as_me:$LINENO: checking for rl_pre_input_hook in -lreadline" >&5
22634 echo $ECHO_N "checking for rl_pre_input_hook in -lreadline... $ECHO_C" >&6; }
22635 if test "${ac_cv_lib_readline_rl_pre_input_hook+set}" = set; then
22636 echo $ECHO_N "(cached) $ECHO_C" >&6
22637 else
22638 ac_check_lib_save_LIBS=$LIBS
22639 LIBS="-lreadline $LIBS"
22640 cat >conftest.$ac_ext <<_ACEOF
22641 /* confdefs.h. */
22642 _ACEOF
22643 cat confdefs.h >>conftest.$ac_ext
22644 cat >>conftest.$ac_ext <<_ACEOF
22645 /* end confdefs.h. */
22647 /* Override any GCC internal prototype to avoid an error.
22648 Use char because int might match the return type of a GCC
22649 builtin and then its argument prototype would still apply. */
22650 #ifdef __cplusplus
22651 extern "C"
22652 #endif
22653 char rl_pre_input_hook ();
22655 main ()
22657 return rl_pre_input_hook ();
22659 return 0;
22661 _ACEOF
22662 rm -f conftest.$ac_objext conftest$ac_exeext
22663 if { (ac_try="$ac_link"
22664 case "(($ac_try" in
22665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22666 *) ac_try_echo=$ac_try;;
22667 esac
22668 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22669 (eval "$ac_link") 2>conftest.er1
22670 ac_status=$?
22671 grep -v '^ *+' conftest.er1 >conftest.err
22672 rm -f conftest.er1
22673 cat conftest.err >&5
22674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22675 (exit $ac_status); } && {
22676 test -z "$ac_c_werror_flag" ||
22677 test ! -s conftest.err
22678 } && test -s conftest$ac_exeext &&
22679 $as_test_x conftest$ac_exeext; then
22680 ac_cv_lib_readline_rl_pre_input_hook=yes
22681 else
22682 echo "$as_me: failed program was:" >&5
22683 sed 's/^/| /' conftest.$ac_ext >&5
22685 ac_cv_lib_readline_rl_pre_input_hook=no
22688 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22689 conftest$ac_exeext conftest.$ac_ext
22690 LIBS=$ac_check_lib_save_LIBS
22692 { echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_pre_input_hook" >&5
22693 echo "${ECHO_T}$ac_cv_lib_readline_rl_pre_input_hook" >&6; }
22694 if test $ac_cv_lib_readline_rl_pre_input_hook = yes; then
22696 cat >>confdefs.h <<\_ACEOF
22697 #define HAVE_RL_PRE_INPUT_HOOK 1
22698 _ACEOF
22703 # also in 4.0
22704 { echo "$as_me:$LINENO: checking for rl_completion_display_matches_hook in -lreadline" >&5
22705 echo $ECHO_N "checking for rl_completion_display_matches_hook in -lreadline... $ECHO_C" >&6; }
22706 if test "${ac_cv_lib_readline_rl_completion_display_matches_hook+set}" = set; then
22707 echo $ECHO_N "(cached) $ECHO_C" >&6
22708 else
22709 ac_check_lib_save_LIBS=$LIBS
22710 LIBS="-lreadline $LIBS"
22711 cat >conftest.$ac_ext <<_ACEOF
22712 /* confdefs.h. */
22713 _ACEOF
22714 cat confdefs.h >>conftest.$ac_ext
22715 cat >>conftest.$ac_ext <<_ACEOF
22716 /* end confdefs.h. */
22718 /* Override any GCC internal prototype to avoid an error.
22719 Use char because int might match the return type of a GCC
22720 builtin and then its argument prototype would still apply. */
22721 #ifdef __cplusplus
22722 extern "C"
22723 #endif
22724 char rl_completion_display_matches_hook ();
22726 main ()
22728 return rl_completion_display_matches_hook ();
22730 return 0;
22732 _ACEOF
22733 rm -f conftest.$ac_objext conftest$ac_exeext
22734 if { (ac_try="$ac_link"
22735 case "(($ac_try" in
22736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22737 *) ac_try_echo=$ac_try;;
22738 esac
22739 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22740 (eval "$ac_link") 2>conftest.er1
22741 ac_status=$?
22742 grep -v '^ *+' conftest.er1 >conftest.err
22743 rm -f conftest.er1
22744 cat conftest.err >&5
22745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22746 (exit $ac_status); } && {
22747 test -z "$ac_c_werror_flag" ||
22748 test ! -s conftest.err
22749 } && test -s conftest$ac_exeext &&
22750 $as_test_x conftest$ac_exeext; then
22751 ac_cv_lib_readline_rl_completion_display_matches_hook=yes
22752 else
22753 echo "$as_me: failed program was:" >&5
22754 sed 's/^/| /' conftest.$ac_ext >&5
22756 ac_cv_lib_readline_rl_completion_display_matches_hook=no
22759 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22760 conftest$ac_exeext conftest.$ac_ext
22761 LIBS=$ac_check_lib_save_LIBS
22763 { echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_completion_display_matches_hook" >&5
22764 echo "${ECHO_T}$ac_cv_lib_readline_rl_completion_display_matches_hook" >&6; }
22765 if test $ac_cv_lib_readline_rl_completion_display_matches_hook = yes; then
22767 cat >>confdefs.h <<\_ACEOF
22768 #define HAVE_RL_COMPLETION_DISPLAY_MATCHES_HOOK 1
22769 _ACEOF
22774 # check for readline 4.2
22775 { echo "$as_me:$LINENO: checking for rl_completion_matches in -lreadline" >&5
22776 echo $ECHO_N "checking for rl_completion_matches in -lreadline... $ECHO_C" >&6; }
22777 if test "${ac_cv_lib_readline_rl_completion_matches+set}" = set; then
22778 echo $ECHO_N "(cached) $ECHO_C" >&6
22779 else
22780 ac_check_lib_save_LIBS=$LIBS
22781 LIBS="-lreadline $LIBS"
22782 cat >conftest.$ac_ext <<_ACEOF
22783 /* confdefs.h. */
22784 _ACEOF
22785 cat confdefs.h >>conftest.$ac_ext
22786 cat >>conftest.$ac_ext <<_ACEOF
22787 /* end confdefs.h. */
22789 /* Override any GCC internal prototype to avoid an error.
22790 Use char because int might match the return type of a GCC
22791 builtin and then its argument prototype would still apply. */
22792 #ifdef __cplusplus
22793 extern "C"
22794 #endif
22795 char rl_completion_matches ();
22797 main ()
22799 return rl_completion_matches ();
22801 return 0;
22803 _ACEOF
22804 rm -f conftest.$ac_objext conftest$ac_exeext
22805 if { (ac_try="$ac_link"
22806 case "(($ac_try" in
22807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22808 *) ac_try_echo=$ac_try;;
22809 esac
22810 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22811 (eval "$ac_link") 2>conftest.er1
22812 ac_status=$?
22813 grep -v '^ *+' conftest.er1 >conftest.err
22814 rm -f conftest.er1
22815 cat conftest.err >&5
22816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22817 (exit $ac_status); } && {
22818 test -z "$ac_c_werror_flag" ||
22819 test ! -s conftest.err
22820 } && test -s conftest$ac_exeext &&
22821 $as_test_x conftest$ac_exeext; then
22822 ac_cv_lib_readline_rl_completion_matches=yes
22823 else
22824 echo "$as_me: failed program was:" >&5
22825 sed 's/^/| /' conftest.$ac_ext >&5
22827 ac_cv_lib_readline_rl_completion_matches=no
22830 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22831 conftest$ac_exeext conftest.$ac_ext
22832 LIBS=$ac_check_lib_save_LIBS
22834 { echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_completion_matches" >&5
22835 echo "${ECHO_T}$ac_cv_lib_readline_rl_completion_matches" >&6; }
22836 if test $ac_cv_lib_readline_rl_completion_matches = yes; then
22838 cat >>confdefs.h <<\_ACEOF
22839 #define HAVE_RL_COMPLETION_MATCHES 1
22840 _ACEOF
22845 # also in readline 4.2
22846 cat >conftest.$ac_ext <<_ACEOF
22847 /* confdefs.h. */
22848 _ACEOF
22849 cat confdefs.h >>conftest.$ac_ext
22850 cat >>conftest.$ac_ext <<_ACEOF
22851 /* end confdefs.h. */
22852 #include <readline/readline.h>
22853 _ACEOF
22854 if { (ac_try="$ac_cpp conftest.$ac_ext"
22855 case "(($ac_try" in
22856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22857 *) ac_try_echo=$ac_try;;
22858 esac
22859 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22860 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22861 ac_status=$?
22862 grep -v '^ *+' conftest.er1 >conftest.err
22863 rm -f conftest.er1
22864 cat conftest.err >&5
22865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22866 (exit $ac_status); } >/dev/null && {
22867 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22868 test ! -s conftest.err
22869 }; then
22870 have_readline=yes
22871 else
22872 echo "$as_me: failed program was:" >&5
22873 sed 's/^/| /' conftest.$ac_ext >&5
22875 have_readline=no
22878 rm -f conftest.err conftest.$ac_ext
22879 if test $have_readline = yes
22880 then
22881 cat >conftest.$ac_ext <<_ACEOF
22882 /* confdefs.h. */
22883 _ACEOF
22884 cat confdefs.h >>conftest.$ac_ext
22885 cat >>conftest.$ac_ext <<_ACEOF
22886 /* end confdefs.h. */
22887 #include <readline/readline.h>
22889 _ACEOF
22890 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22891 $EGREP "extern int rl_catch_signals;" >/dev/null 2>&1; then
22893 cat >>confdefs.h <<\_ACEOF
22894 #define HAVE_RL_CATCH_SIGNAL 1
22895 _ACEOF
22898 rm -f conftest*
22902 # End of readline checks: restore LIBS
22903 LIBS=$LIBS_no_readline
22905 { echo "$as_me:$LINENO: checking for broken nice()" >&5
22906 echo $ECHO_N "checking for broken nice()... $ECHO_C" >&6; }
22907 if test "${ac_cv_broken_nice+set}" = set; then
22908 echo $ECHO_N "(cached) $ECHO_C" >&6
22909 else
22911 if test "$cross_compiling" = yes; then
22912 ac_cv_broken_nice=no
22913 else
22914 cat >conftest.$ac_ext <<_ACEOF
22915 /* confdefs.h. */
22916 _ACEOF
22917 cat confdefs.h >>conftest.$ac_ext
22918 cat >>conftest.$ac_ext <<_ACEOF
22919 /* end confdefs.h. */
22921 int main()
22923 int val1 = nice(1);
22924 if (val1 != -1 && val1 == nice(2))
22925 exit(0);
22926 exit(1);
22929 _ACEOF
22930 rm -f conftest$ac_exeext
22931 if { (ac_try="$ac_link"
22932 case "(($ac_try" in
22933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22934 *) ac_try_echo=$ac_try;;
22935 esac
22936 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22937 (eval "$ac_link") 2>&5
22938 ac_status=$?
22939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22940 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22941 { (case "(($ac_try" in
22942 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22943 *) ac_try_echo=$ac_try;;
22944 esac
22945 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22946 (eval "$ac_try") 2>&5
22947 ac_status=$?
22948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22949 (exit $ac_status); }; }; then
22950 ac_cv_broken_nice=yes
22951 else
22952 echo "$as_me: program exited with status $ac_status" >&5
22953 echo "$as_me: failed program was:" >&5
22954 sed 's/^/| /' conftest.$ac_ext >&5
22956 ( exit $ac_status )
22957 ac_cv_broken_nice=no
22959 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22965 { echo "$as_me:$LINENO: result: $ac_cv_broken_nice" >&5
22966 echo "${ECHO_T}$ac_cv_broken_nice" >&6; }
22967 if test "$ac_cv_broken_nice" = yes
22968 then
22970 cat >>confdefs.h <<\_ACEOF
22971 #define HAVE_BROKEN_NICE 1
22972 _ACEOF
22976 { echo "$as_me:$LINENO: checking for broken poll()" >&5
22977 echo $ECHO_N "checking for broken poll()... $ECHO_C" >&6; }
22978 if test "$cross_compiling" = yes; then
22979 ac_cv_broken_poll=no
22980 else
22981 cat >conftest.$ac_ext <<_ACEOF
22982 /* confdefs.h. */
22983 _ACEOF
22984 cat confdefs.h >>conftest.$ac_ext
22985 cat >>conftest.$ac_ext <<_ACEOF
22986 /* end confdefs.h. */
22988 #include <poll.h>
22990 int main (void)
22992 struct pollfd poll_struct = { 42, POLLIN|POLLPRI|POLLOUT, 0 };
22994 close (42);
22996 int poll_test = poll (&poll_struct, 1, 0);
22998 if (poll_test < 0)
23000 exit(0);
23002 else if (poll_test == 0 && poll_struct.revents != POLLNVAL)
23004 exit(0);
23006 else
23008 exit(1);
23012 _ACEOF
23013 rm -f conftest$ac_exeext
23014 if { (ac_try="$ac_link"
23015 case "(($ac_try" in
23016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23017 *) ac_try_echo=$ac_try;;
23018 esac
23019 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23020 (eval "$ac_link") 2>&5
23021 ac_status=$?
23022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23023 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23024 { (case "(($ac_try" in
23025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23026 *) ac_try_echo=$ac_try;;
23027 esac
23028 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23029 (eval "$ac_try") 2>&5
23030 ac_status=$?
23031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23032 (exit $ac_status); }; }; then
23033 ac_cv_broken_poll=yes
23034 else
23035 echo "$as_me: program exited with status $ac_status" >&5
23036 echo "$as_me: failed program was:" >&5
23037 sed 's/^/| /' conftest.$ac_ext >&5
23039 ( exit $ac_status )
23040 ac_cv_broken_poll=no
23042 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23046 { echo "$as_me:$LINENO: result: $ac_cv_broken_poll" >&5
23047 echo "${ECHO_T}$ac_cv_broken_poll" >&6; }
23048 if test "$ac_cv_broken_poll" = yes
23049 then
23051 cat >>confdefs.h <<\_ACEOF
23052 #define HAVE_BROKEN_POLL 1
23053 _ACEOF
23057 # Before we can test tzset, we need to check if struct tm has a tm_zone
23058 # (which is not required by ISO C or UNIX spec) and/or if we support
23059 # tzname[]
23060 { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
23061 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
23062 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
23063 echo $ECHO_N "(cached) $ECHO_C" >&6
23064 else
23065 cat >conftest.$ac_ext <<_ACEOF
23066 /* confdefs.h. */
23067 _ACEOF
23068 cat confdefs.h >>conftest.$ac_ext
23069 cat >>conftest.$ac_ext <<_ACEOF
23070 /* end confdefs.h. */
23071 #include <sys/types.h>
23072 #include <$ac_cv_struct_tm>
23076 main ()
23078 static struct tm ac_aggr;
23079 if (ac_aggr.tm_zone)
23080 return 0;
23082 return 0;
23084 _ACEOF
23085 rm -f conftest.$ac_objext
23086 if { (ac_try="$ac_compile"
23087 case "(($ac_try" in
23088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23089 *) ac_try_echo=$ac_try;;
23090 esac
23091 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23092 (eval "$ac_compile") 2>conftest.er1
23093 ac_status=$?
23094 grep -v '^ *+' conftest.er1 >conftest.err
23095 rm -f conftest.er1
23096 cat conftest.err >&5
23097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23098 (exit $ac_status); } && {
23099 test -z "$ac_c_werror_flag" ||
23100 test ! -s conftest.err
23101 } && test -s conftest.$ac_objext; then
23102 ac_cv_member_struct_tm_tm_zone=yes
23103 else
23104 echo "$as_me: failed program was:" >&5
23105 sed 's/^/| /' conftest.$ac_ext >&5
23107 cat >conftest.$ac_ext <<_ACEOF
23108 /* confdefs.h. */
23109 _ACEOF
23110 cat confdefs.h >>conftest.$ac_ext
23111 cat >>conftest.$ac_ext <<_ACEOF
23112 /* end confdefs.h. */
23113 #include <sys/types.h>
23114 #include <$ac_cv_struct_tm>
23118 main ()
23120 static struct tm ac_aggr;
23121 if (sizeof ac_aggr.tm_zone)
23122 return 0;
23124 return 0;
23126 _ACEOF
23127 rm -f conftest.$ac_objext
23128 if { (ac_try="$ac_compile"
23129 case "(($ac_try" in
23130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23131 *) ac_try_echo=$ac_try;;
23132 esac
23133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23134 (eval "$ac_compile") 2>conftest.er1
23135 ac_status=$?
23136 grep -v '^ *+' conftest.er1 >conftest.err
23137 rm -f conftest.er1
23138 cat conftest.err >&5
23139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23140 (exit $ac_status); } && {
23141 test -z "$ac_c_werror_flag" ||
23142 test ! -s conftest.err
23143 } && test -s conftest.$ac_objext; then
23144 ac_cv_member_struct_tm_tm_zone=yes
23145 else
23146 echo "$as_me: failed program was:" >&5
23147 sed 's/^/| /' conftest.$ac_ext >&5
23149 ac_cv_member_struct_tm_tm_zone=no
23152 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23155 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23157 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
23158 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
23159 if test $ac_cv_member_struct_tm_tm_zone = yes; then
23161 cat >>confdefs.h <<_ACEOF
23162 #define HAVE_STRUCT_TM_TM_ZONE 1
23163 _ACEOF
23168 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
23170 cat >>confdefs.h <<\_ACEOF
23171 #define HAVE_TM_ZONE 1
23172 _ACEOF
23174 else
23175 { echo "$as_me:$LINENO: checking whether tzname is declared" >&5
23176 echo $ECHO_N "checking whether tzname is declared... $ECHO_C" >&6; }
23177 if test "${ac_cv_have_decl_tzname+set}" = set; then
23178 echo $ECHO_N "(cached) $ECHO_C" >&6
23179 else
23180 cat >conftest.$ac_ext <<_ACEOF
23181 /* confdefs.h. */
23182 _ACEOF
23183 cat confdefs.h >>conftest.$ac_ext
23184 cat >>conftest.$ac_ext <<_ACEOF
23185 /* end confdefs.h. */
23186 #include <time.h>
23189 main ()
23191 #ifndef tzname
23192 (void) tzname;
23193 #endif
23196 return 0;
23198 _ACEOF
23199 rm -f conftest.$ac_objext
23200 if { (ac_try="$ac_compile"
23201 case "(($ac_try" in
23202 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23203 *) ac_try_echo=$ac_try;;
23204 esac
23205 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23206 (eval "$ac_compile") 2>conftest.er1
23207 ac_status=$?
23208 grep -v '^ *+' conftest.er1 >conftest.err
23209 rm -f conftest.er1
23210 cat conftest.err >&5
23211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23212 (exit $ac_status); } && {
23213 test -z "$ac_c_werror_flag" ||
23214 test ! -s conftest.err
23215 } && test -s conftest.$ac_objext; then
23216 ac_cv_have_decl_tzname=yes
23217 else
23218 echo "$as_me: failed program was:" >&5
23219 sed 's/^/| /' conftest.$ac_ext >&5
23221 ac_cv_have_decl_tzname=no
23224 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23226 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
23227 echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; }
23228 if test $ac_cv_have_decl_tzname = yes; then
23230 cat >>confdefs.h <<_ACEOF
23231 #define HAVE_DECL_TZNAME 1
23232 _ACEOF
23235 else
23236 cat >>confdefs.h <<_ACEOF
23237 #define HAVE_DECL_TZNAME 0
23238 _ACEOF
23244 { echo "$as_me:$LINENO: checking for tzname" >&5
23245 echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
23246 if test "${ac_cv_var_tzname+set}" = set; then
23247 echo $ECHO_N "(cached) $ECHO_C" >&6
23248 else
23249 cat >conftest.$ac_ext <<_ACEOF
23250 /* confdefs.h. */
23251 _ACEOF
23252 cat confdefs.h >>conftest.$ac_ext
23253 cat >>conftest.$ac_ext <<_ACEOF
23254 /* end confdefs.h. */
23255 #include <time.h>
23256 #if !HAVE_DECL_TZNAME
23257 extern char *tzname[];
23258 #endif
23261 main ()
23263 return tzname[0][0];
23265 return 0;
23267 _ACEOF
23268 rm -f conftest.$ac_objext conftest$ac_exeext
23269 if { (ac_try="$ac_link"
23270 case "(($ac_try" in
23271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23272 *) ac_try_echo=$ac_try;;
23273 esac
23274 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23275 (eval "$ac_link") 2>conftest.er1
23276 ac_status=$?
23277 grep -v '^ *+' conftest.er1 >conftest.err
23278 rm -f conftest.er1
23279 cat conftest.err >&5
23280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23281 (exit $ac_status); } && {
23282 test -z "$ac_c_werror_flag" ||
23283 test ! -s conftest.err
23284 } && test -s conftest$ac_exeext &&
23285 $as_test_x conftest$ac_exeext; then
23286 ac_cv_var_tzname=yes
23287 else
23288 echo "$as_me: failed program was:" >&5
23289 sed 's/^/| /' conftest.$ac_ext >&5
23291 ac_cv_var_tzname=no
23294 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23295 conftest$ac_exeext conftest.$ac_ext
23297 { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
23298 echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
23299 if test $ac_cv_var_tzname = yes; then
23301 cat >>confdefs.h <<\_ACEOF
23302 #define HAVE_TZNAME 1
23303 _ACEOF
23309 # check tzset(3) exists and works like we expect it to
23310 { echo "$as_me:$LINENO: checking for working tzset()" >&5
23311 echo $ECHO_N "checking for working tzset()... $ECHO_C" >&6; }
23312 if test "${ac_cv_working_tzset+set}" = set; then
23313 echo $ECHO_N "(cached) $ECHO_C" >&6
23314 else
23316 if test "$cross_compiling" = yes; then
23317 ac_cv_working_tzset=no
23318 else
23319 cat >conftest.$ac_ext <<_ACEOF
23320 /* confdefs.h. */
23321 _ACEOF
23322 cat confdefs.h >>conftest.$ac_ext
23323 cat >>conftest.$ac_ext <<_ACEOF
23324 /* end confdefs.h. */
23326 #include <stdlib.h>
23327 #include <time.h>
23328 #include <string.h>
23330 #if HAVE_TZNAME
23331 extern char *tzname[];
23332 #endif
23334 int main()
23336 /* Note that we need to ensure that not only does tzset(3)
23337 do 'something' with localtime, but it works as documented
23338 in the library reference and as expected by the test suite.
23339 This includes making sure that tzname is set properly if
23340 tm->tm_zone does not exist since it is the alternative way
23341 of getting timezone info.
23343 Red Hat 6.2 doesn't understand the southern hemisphere
23344 after New Year's Day.
23347 time_t groundhogday = 1044144000; /* GMT-based */
23348 time_t midyear = groundhogday + (365 * 24 * 3600 / 2);
23350 putenv("TZ=UTC+0");
23351 tzset();
23352 if (localtime(&groundhogday)->tm_hour != 0)
23353 exit(1);
23354 #if HAVE_TZNAME
23355 /* For UTC, tzname[1] is sometimes "", sometimes " " */
23356 if (strcmp(tzname[0], "UTC") ||
23357 (tzname[1][0] != 0 && tzname[1][0] != ' '))
23358 exit(1);
23359 #endif
23361 putenv("TZ=EST+5EDT,M4.1.0,M10.5.0");
23362 tzset();
23363 if (localtime(&groundhogday)->tm_hour != 19)
23364 exit(1);
23365 #if HAVE_TZNAME
23366 if (strcmp(tzname[0], "EST") || strcmp(tzname[1], "EDT"))
23367 exit(1);
23368 #endif
23370 putenv("TZ=AEST-10AEDT-11,M10.5.0,M3.5.0");
23371 tzset();
23372 if (localtime(&groundhogday)->tm_hour != 11)
23373 exit(1);
23374 #if HAVE_TZNAME
23375 if (strcmp(tzname[0], "AEST") || strcmp(tzname[1], "AEDT"))
23376 exit(1);
23377 #endif
23379 #if HAVE_STRUCT_TM_TM_ZONE
23380 if (strcmp(localtime(&groundhogday)->tm_zone, "AEDT"))
23381 exit(1);
23382 if (strcmp(localtime(&midyear)->tm_zone, "AEST"))
23383 exit(1);
23384 #endif
23386 exit(0);
23389 _ACEOF
23390 rm -f conftest$ac_exeext
23391 if { (ac_try="$ac_link"
23392 case "(($ac_try" in
23393 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23394 *) ac_try_echo=$ac_try;;
23395 esac
23396 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23397 (eval "$ac_link") 2>&5
23398 ac_status=$?
23399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23400 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23401 { (case "(($ac_try" in
23402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23403 *) ac_try_echo=$ac_try;;
23404 esac
23405 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23406 (eval "$ac_try") 2>&5
23407 ac_status=$?
23408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23409 (exit $ac_status); }; }; then
23410 ac_cv_working_tzset=yes
23411 else
23412 echo "$as_me: program exited with status $ac_status" >&5
23413 echo "$as_me: failed program was:" >&5
23414 sed 's/^/| /' conftest.$ac_ext >&5
23416 ( exit $ac_status )
23417 ac_cv_working_tzset=no
23419 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23425 { echo "$as_me:$LINENO: result: $ac_cv_working_tzset" >&5
23426 echo "${ECHO_T}$ac_cv_working_tzset" >&6; }
23427 if test "$ac_cv_working_tzset" = yes
23428 then
23430 cat >>confdefs.h <<\_ACEOF
23431 #define HAVE_WORKING_TZSET 1
23432 _ACEOF
23436 # Look for subsecond timestamps in struct stat
23437 { echo "$as_me:$LINENO: checking for tv_nsec in struct stat" >&5
23438 echo $ECHO_N "checking for tv_nsec in struct stat... $ECHO_C" >&6; }
23439 if test "${ac_cv_stat_tv_nsec+set}" = set; then
23440 echo $ECHO_N "(cached) $ECHO_C" >&6
23441 else
23442 cat >conftest.$ac_ext <<_ACEOF
23443 /* confdefs.h. */
23444 _ACEOF
23445 cat confdefs.h >>conftest.$ac_ext
23446 cat >>conftest.$ac_ext <<_ACEOF
23447 /* end confdefs.h. */
23448 #include <sys/stat.h>
23450 main ()
23453 struct stat st;
23454 st.st_mtim.tv_nsec = 1;
23457 return 0;
23459 _ACEOF
23460 rm -f conftest.$ac_objext
23461 if { (ac_try="$ac_compile"
23462 case "(($ac_try" in
23463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23464 *) ac_try_echo=$ac_try;;
23465 esac
23466 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23467 (eval "$ac_compile") 2>conftest.er1
23468 ac_status=$?
23469 grep -v '^ *+' conftest.er1 >conftest.err
23470 rm -f conftest.er1
23471 cat conftest.err >&5
23472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23473 (exit $ac_status); } && {
23474 test -z "$ac_c_werror_flag" ||
23475 test ! -s conftest.err
23476 } && test -s conftest.$ac_objext; then
23477 ac_cv_stat_tv_nsec=yes
23478 else
23479 echo "$as_me: failed program was:" >&5
23480 sed 's/^/| /' conftest.$ac_ext >&5
23482 ac_cv_stat_tv_nsec=no
23485 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23488 { echo "$as_me:$LINENO: result: $ac_cv_stat_tv_nsec" >&5
23489 echo "${ECHO_T}$ac_cv_stat_tv_nsec" >&6; }
23490 if test "$ac_cv_stat_tv_nsec" = yes
23491 then
23493 cat >>confdefs.h <<\_ACEOF
23494 #define HAVE_STAT_TV_NSEC 1
23495 _ACEOF
23499 # Look for BSD style subsecond timestamps in struct stat
23500 { echo "$as_me:$LINENO: checking for tv_nsec2 in struct stat" >&5
23501 echo $ECHO_N "checking for tv_nsec2 in struct stat... $ECHO_C" >&6; }
23502 if test "${ac_cv_stat_tv_nsec2+set}" = set; then
23503 echo $ECHO_N "(cached) $ECHO_C" >&6
23504 else
23505 cat >conftest.$ac_ext <<_ACEOF
23506 /* confdefs.h. */
23507 _ACEOF
23508 cat confdefs.h >>conftest.$ac_ext
23509 cat >>conftest.$ac_ext <<_ACEOF
23510 /* end confdefs.h. */
23511 #include <sys/stat.h>
23513 main ()
23516 struct stat st;
23517 st.st_mtimespec.tv_nsec = 1;
23520 return 0;
23522 _ACEOF
23523 rm -f conftest.$ac_objext
23524 if { (ac_try="$ac_compile"
23525 case "(($ac_try" in
23526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23527 *) ac_try_echo=$ac_try;;
23528 esac
23529 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23530 (eval "$ac_compile") 2>conftest.er1
23531 ac_status=$?
23532 grep -v '^ *+' conftest.er1 >conftest.err
23533 rm -f conftest.er1
23534 cat conftest.err >&5
23535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23536 (exit $ac_status); } && {
23537 test -z "$ac_c_werror_flag" ||
23538 test ! -s conftest.err
23539 } && test -s conftest.$ac_objext; then
23540 ac_cv_stat_tv_nsec2=yes
23541 else
23542 echo "$as_me: failed program was:" >&5
23543 sed 's/^/| /' conftest.$ac_ext >&5
23545 ac_cv_stat_tv_nsec2=no
23548 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23551 { echo "$as_me:$LINENO: result: $ac_cv_stat_tv_nsec2" >&5
23552 echo "${ECHO_T}$ac_cv_stat_tv_nsec2" >&6; }
23553 if test "$ac_cv_stat_tv_nsec2" = yes
23554 then
23556 cat >>confdefs.h <<\_ACEOF
23557 #define HAVE_STAT_TV_NSEC2 1
23558 _ACEOF
23562 # On HP/UX 11.0, mvwdelch is a block with a return statement
23563 { echo "$as_me:$LINENO: checking whether mvwdelch is an expression" >&5
23564 echo $ECHO_N "checking whether mvwdelch is an expression... $ECHO_C" >&6; }
23565 if test "${ac_cv_mvwdelch_is_expression+set}" = set; then
23566 echo $ECHO_N "(cached) $ECHO_C" >&6
23567 else
23568 cat >conftest.$ac_ext <<_ACEOF
23569 /* confdefs.h. */
23570 _ACEOF
23571 cat confdefs.h >>conftest.$ac_ext
23572 cat >>conftest.$ac_ext <<_ACEOF
23573 /* end confdefs.h. */
23574 #include <curses.h>
23576 main ()
23579 int rtn;
23580 rtn = mvwdelch(0,0,0);
23583 return 0;
23585 _ACEOF
23586 rm -f conftest.$ac_objext
23587 if { (ac_try="$ac_compile"
23588 case "(($ac_try" in
23589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23590 *) ac_try_echo=$ac_try;;
23591 esac
23592 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23593 (eval "$ac_compile") 2>conftest.er1
23594 ac_status=$?
23595 grep -v '^ *+' conftest.er1 >conftest.err
23596 rm -f conftest.er1
23597 cat conftest.err >&5
23598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23599 (exit $ac_status); } && {
23600 test -z "$ac_c_werror_flag" ||
23601 test ! -s conftest.err
23602 } && test -s conftest.$ac_objext; then
23603 ac_cv_mvwdelch_is_expression=yes
23604 else
23605 echo "$as_me: failed program was:" >&5
23606 sed 's/^/| /' conftest.$ac_ext >&5
23608 ac_cv_mvwdelch_is_expression=no
23611 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23614 { echo "$as_me:$LINENO: result: $ac_cv_mvwdelch_is_expression" >&5
23615 echo "${ECHO_T}$ac_cv_mvwdelch_is_expression" >&6; }
23617 if test "$ac_cv_mvwdelch_is_expression" = yes
23618 then
23620 cat >>confdefs.h <<\_ACEOF
23621 #define MVWDELCH_IS_EXPRESSION 1
23622 _ACEOF
23626 { echo "$as_me:$LINENO: checking whether WINDOW has _flags" >&5
23627 echo $ECHO_N "checking whether WINDOW has _flags... $ECHO_C" >&6; }
23628 if test "${ac_cv_window_has_flags+set}" = set; then
23629 echo $ECHO_N "(cached) $ECHO_C" >&6
23630 else
23631 cat >conftest.$ac_ext <<_ACEOF
23632 /* confdefs.h. */
23633 _ACEOF
23634 cat confdefs.h >>conftest.$ac_ext
23635 cat >>conftest.$ac_ext <<_ACEOF
23636 /* end confdefs.h. */
23637 #include <curses.h>
23639 main ()
23642 WINDOW *w;
23643 w->_flags = 0;
23646 return 0;
23648 _ACEOF
23649 rm -f conftest.$ac_objext
23650 if { (ac_try="$ac_compile"
23651 case "(($ac_try" in
23652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23653 *) ac_try_echo=$ac_try;;
23654 esac
23655 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23656 (eval "$ac_compile") 2>conftest.er1
23657 ac_status=$?
23658 grep -v '^ *+' conftest.er1 >conftest.err
23659 rm -f conftest.er1
23660 cat conftest.err >&5
23661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23662 (exit $ac_status); } && {
23663 test -z "$ac_c_werror_flag" ||
23664 test ! -s conftest.err
23665 } && test -s conftest.$ac_objext; then
23666 ac_cv_window_has_flags=yes
23667 else
23668 echo "$as_me: failed program was:" >&5
23669 sed 's/^/| /' conftest.$ac_ext >&5
23671 ac_cv_window_has_flags=no
23674 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23677 { echo "$as_me:$LINENO: result: $ac_cv_window_has_flags" >&5
23678 echo "${ECHO_T}$ac_cv_window_has_flags" >&6; }
23681 if test "$ac_cv_window_has_flags" = yes
23682 then
23684 cat >>confdefs.h <<\_ACEOF
23685 #define WINDOW_HAS_FLAGS 1
23686 _ACEOF
23690 { echo "$as_me:$LINENO: checking for is_term_resized" >&5
23691 echo $ECHO_N "checking for is_term_resized... $ECHO_C" >&6; }
23692 cat >conftest.$ac_ext <<_ACEOF
23693 /* confdefs.h. */
23694 _ACEOF
23695 cat confdefs.h >>conftest.$ac_ext
23696 cat >>conftest.$ac_ext <<_ACEOF
23697 /* end confdefs.h. */
23698 #include <curses.h>
23700 main ()
23702 void *x=is_term_resized
23704 return 0;
23706 _ACEOF
23707 rm -f conftest.$ac_objext
23708 if { (ac_try="$ac_compile"
23709 case "(($ac_try" in
23710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23711 *) ac_try_echo=$ac_try;;
23712 esac
23713 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23714 (eval "$ac_compile") 2>conftest.er1
23715 ac_status=$?
23716 grep -v '^ *+' conftest.er1 >conftest.err
23717 rm -f conftest.er1
23718 cat conftest.err >&5
23719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23720 (exit $ac_status); } && {
23721 test -z "$ac_c_werror_flag" ||
23722 test ! -s conftest.err
23723 } && test -s conftest.$ac_objext; then
23725 cat >>confdefs.h <<\_ACEOF
23726 #define HAVE_CURSES_IS_TERM_RESIZED 1
23727 _ACEOF
23729 { echo "$as_me:$LINENO: result: yes" >&5
23730 echo "${ECHO_T}yes" >&6; }
23731 else
23732 echo "$as_me: failed program was:" >&5
23733 sed 's/^/| /' conftest.$ac_ext >&5
23735 { echo "$as_me:$LINENO: result: no" >&5
23736 echo "${ECHO_T}no" >&6; }
23740 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23742 { echo "$as_me:$LINENO: checking for resize_term" >&5
23743 echo $ECHO_N "checking for resize_term... $ECHO_C" >&6; }
23744 cat >conftest.$ac_ext <<_ACEOF
23745 /* confdefs.h. */
23746 _ACEOF
23747 cat confdefs.h >>conftest.$ac_ext
23748 cat >>conftest.$ac_ext <<_ACEOF
23749 /* end confdefs.h. */
23750 #include <curses.h>
23752 main ()
23754 void *x=resize_term
23756 return 0;
23758 _ACEOF
23759 rm -f conftest.$ac_objext
23760 if { (ac_try="$ac_compile"
23761 case "(($ac_try" in
23762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23763 *) ac_try_echo=$ac_try;;
23764 esac
23765 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23766 (eval "$ac_compile") 2>conftest.er1
23767 ac_status=$?
23768 grep -v '^ *+' conftest.er1 >conftest.err
23769 rm -f conftest.er1
23770 cat conftest.err >&5
23771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23772 (exit $ac_status); } && {
23773 test -z "$ac_c_werror_flag" ||
23774 test ! -s conftest.err
23775 } && test -s conftest.$ac_objext; then
23777 cat >>confdefs.h <<\_ACEOF
23778 #define HAVE_CURSES_RESIZE_TERM 1
23779 _ACEOF
23781 { echo "$as_me:$LINENO: result: yes" >&5
23782 echo "${ECHO_T}yes" >&6; }
23783 else
23784 echo "$as_me: failed program was:" >&5
23785 sed 's/^/| /' conftest.$ac_ext >&5
23787 { echo "$as_me:$LINENO: result: no" >&5
23788 echo "${ECHO_T}no" >&6; }
23792 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23794 { echo "$as_me:$LINENO: checking for resizeterm" >&5
23795 echo $ECHO_N "checking for resizeterm... $ECHO_C" >&6; }
23796 cat >conftest.$ac_ext <<_ACEOF
23797 /* confdefs.h. */
23798 _ACEOF
23799 cat confdefs.h >>conftest.$ac_ext
23800 cat >>conftest.$ac_ext <<_ACEOF
23801 /* end confdefs.h. */
23802 #include <curses.h>
23804 main ()
23806 void *x=resizeterm
23808 return 0;
23810 _ACEOF
23811 rm -f conftest.$ac_objext
23812 if { (ac_try="$ac_compile"
23813 case "(($ac_try" in
23814 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23815 *) ac_try_echo=$ac_try;;
23816 esac
23817 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23818 (eval "$ac_compile") 2>conftest.er1
23819 ac_status=$?
23820 grep -v '^ *+' conftest.er1 >conftest.err
23821 rm -f conftest.er1
23822 cat conftest.err >&5
23823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23824 (exit $ac_status); } && {
23825 test -z "$ac_c_werror_flag" ||
23826 test ! -s conftest.err
23827 } && test -s conftest.$ac_objext; then
23829 cat >>confdefs.h <<\_ACEOF
23830 #define HAVE_CURSES_RESIZETERM 1
23831 _ACEOF
23833 { echo "$as_me:$LINENO: result: yes" >&5
23834 echo "${ECHO_T}yes" >&6; }
23835 else
23836 echo "$as_me: failed program was:" >&5
23837 sed 's/^/| /' conftest.$ac_ext >&5
23839 { echo "$as_me:$LINENO: result: no" >&5
23840 echo "${ECHO_T}no" >&6; }
23844 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23846 { echo "$as_me:$LINENO: checking for /dev/ptmx" >&5
23847 echo $ECHO_N "checking for /dev/ptmx... $ECHO_C" >&6; }
23849 if test -r /dev/ptmx
23850 then
23851 { echo "$as_me:$LINENO: result: yes" >&5
23852 echo "${ECHO_T}yes" >&6; }
23854 cat >>confdefs.h <<\_ACEOF
23855 #define HAVE_DEV_PTMX 1
23856 _ACEOF
23858 else
23859 { echo "$as_me:$LINENO: result: no" >&5
23860 echo "${ECHO_T}no" >&6; }
23863 { echo "$as_me:$LINENO: checking for /dev/ptc" >&5
23864 echo $ECHO_N "checking for /dev/ptc... $ECHO_C" >&6; }
23866 if test -r /dev/ptc
23867 then
23868 { echo "$as_me:$LINENO: result: yes" >&5
23869 echo "${ECHO_T}yes" >&6; }
23871 cat >>confdefs.h <<\_ACEOF
23872 #define HAVE_DEV_PTC 1
23873 _ACEOF
23875 else
23876 { echo "$as_me:$LINENO: result: no" >&5
23877 echo "${ECHO_T}no" >&6; }
23880 { echo "$as_me:$LINENO: checking for %zd printf() format support" >&5
23881 echo $ECHO_N "checking for %zd printf() format support... $ECHO_C" >&6; }
23882 if test "$cross_compiling" = yes; then
23883 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
23884 See \`config.log' for more details." >&5
23885 echo "$as_me: error: cannot run test program while cross compiling
23886 See \`config.log' for more details." >&2;}
23887 { (exit 1); exit 1; }; }
23888 else
23889 cat >conftest.$ac_ext <<_ACEOF
23890 /* confdefs.h. */
23891 _ACEOF
23892 cat confdefs.h >>conftest.$ac_ext
23893 cat >>conftest.$ac_ext <<_ACEOF
23894 /* end confdefs.h. */
23895 #include <stdio.h>
23896 #include <stddef.h>
23897 #include <string.h>
23899 #ifdef HAVE_SYS_TYPES_H
23900 #include <sys/types.h>
23901 #endif
23903 #ifdef HAVE_SSIZE_T
23904 typedef ssize_t Py_ssize_t;
23905 #elif SIZEOF_VOID_P == SIZEOF_LONG
23906 typedef long Py_ssize_t;
23907 #else
23908 typedef int Py_ssize_t;
23909 #endif
23911 int main()
23913 char buffer[256];
23915 if(sprintf(buffer, "%zd", (size_t)123) < 0)
23916 return 1;
23918 if (strcmp(buffer, "123"))
23919 return 1;
23921 if (sprintf(buffer, "%zd", (Py_ssize_t)-123) < 0)
23922 return 1;
23924 if (strcmp(buffer, "-123"))
23925 return 1;
23927 return 0;
23929 _ACEOF
23930 rm -f conftest$ac_exeext
23931 if { (ac_try="$ac_link"
23932 case "(($ac_try" in
23933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23934 *) ac_try_echo=$ac_try;;
23935 esac
23936 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23937 (eval "$ac_link") 2>&5
23938 ac_status=$?
23939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23940 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23941 { (case "(($ac_try" in
23942 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23943 *) ac_try_echo=$ac_try;;
23944 esac
23945 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23946 (eval "$ac_try") 2>&5
23947 ac_status=$?
23948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23949 (exit $ac_status); }; }; then
23950 { echo "$as_me:$LINENO: result: yes" >&5
23951 echo "${ECHO_T}yes" >&6; }
23953 cat >>confdefs.h <<\_ACEOF
23954 #define PY_FORMAT_SIZE_T "z"
23955 _ACEOF
23957 else
23958 echo "$as_me: program exited with status $ac_status" >&5
23959 echo "$as_me: failed program was:" >&5
23960 sed 's/^/| /' conftest.$ac_ext >&5
23962 ( exit $ac_status )
23963 { echo "$as_me:$LINENO: result: no" >&5
23964 echo "${ECHO_T}no" >&6; }
23966 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23971 { echo "$as_me:$LINENO: checking for socklen_t" >&5
23972 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; }
23973 if test "${ac_cv_type_socklen_t+set}" = set; then
23974 echo $ECHO_N "(cached) $ECHO_C" >&6
23975 else
23976 cat >conftest.$ac_ext <<_ACEOF
23977 /* confdefs.h. */
23978 _ACEOF
23979 cat confdefs.h >>conftest.$ac_ext
23980 cat >>conftest.$ac_ext <<_ACEOF
23981 /* end confdefs.h. */
23983 #ifdef HAVE_SYS_TYPES_H
23984 #include <sys/types.h>
23985 #endif
23986 #ifdef HAVE_SYS_SOCKET_H
23987 #include <sys/socket.h>
23988 #endif
23991 typedef socklen_t ac__type_new_;
23993 main ()
23995 if ((ac__type_new_ *) 0)
23996 return 0;
23997 if (sizeof (ac__type_new_))
23998 return 0;
24000 return 0;
24002 _ACEOF
24003 rm -f conftest.$ac_objext
24004 if { (ac_try="$ac_compile"
24005 case "(($ac_try" in
24006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24007 *) ac_try_echo=$ac_try;;
24008 esac
24009 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24010 (eval "$ac_compile") 2>conftest.er1
24011 ac_status=$?
24012 grep -v '^ *+' conftest.er1 >conftest.err
24013 rm -f conftest.er1
24014 cat conftest.err >&5
24015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24016 (exit $ac_status); } && {
24017 test -z "$ac_c_werror_flag" ||
24018 test ! -s conftest.err
24019 } && test -s conftest.$ac_objext; then
24020 ac_cv_type_socklen_t=yes
24021 else
24022 echo "$as_me: failed program was:" >&5
24023 sed 's/^/| /' conftest.$ac_ext >&5
24025 ac_cv_type_socklen_t=no
24028 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24030 { echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
24031 echo "${ECHO_T}$ac_cv_type_socklen_t" >&6; }
24032 if test $ac_cv_type_socklen_t = yes; then
24034 else
24036 cat >>confdefs.h <<\_ACEOF
24037 #define socklen_t int
24038 _ACEOF
24045 for h in `(cd $srcdir;echo Python/thread_*.h)`
24047 THREADHEADERS="$THREADHEADERS \$(srcdir)/$h"
24048 done
24051 SRCDIRS="Parser Grammar Objects Python Modules Mac"
24052 { echo "$as_me:$LINENO: checking for build directories" >&5
24053 echo $ECHO_N "checking for build directories... $ECHO_C" >&6; }
24054 for dir in $SRCDIRS; do
24055 if test ! -d $dir; then
24056 mkdir $dir
24058 done
24059 { echo "$as_me:$LINENO: result: done" >&5
24060 echo "${ECHO_T}done" >&6; }
24062 # generate output files
24063 ac_config_files="$ac_config_files Makefile.pre Modules/Setup.config"
24065 cat >confcache <<\_ACEOF
24066 # This file is a shell script that caches the results of configure
24067 # tests run on this system so they can be shared between configure
24068 # scripts and configure runs, see configure's option --config-cache.
24069 # It is not useful on other systems. If it contains results you don't
24070 # want to keep, you may remove or edit it.
24072 # config.status only pays attention to the cache file if you give it
24073 # the --recheck option to rerun configure.
24075 # `ac_cv_env_foo' variables (set or unset) will be overridden when
24076 # loading this file, other *unset* `ac_cv_foo' will be assigned the
24077 # following values.
24079 _ACEOF
24081 # The following way of writing the cache mishandles newlines in values,
24082 # but we know of no workaround that is simple, portable, and efficient.
24083 # So, we kill variables containing newlines.
24084 # Ultrix sh set writes to stderr and can't be redirected directly,
24085 # and sets the high bit in the cache file unless we assign to the vars.
24087 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
24088 eval ac_val=\$$ac_var
24089 case $ac_val in #(
24090 *${as_nl}*)
24091 case $ac_var in #(
24092 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
24093 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
24094 esac
24095 case $ac_var in #(
24096 _ | IFS | as_nl) ;; #(
24097 *) $as_unset $ac_var ;;
24098 esac ;;
24099 esac
24100 done
24102 (set) 2>&1 |
24103 case $as_nl`(ac_space=' '; set) 2>&1` in #(
24104 *${as_nl}ac_space=\ *)
24105 # `set' does not quote correctly, so add quotes (double-quote
24106 # substitution turns \\\\ into \\, and sed turns \\ into \).
24107 sed -n \
24108 "s/'/'\\\\''/g;
24109 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
24110 ;; #(
24112 # `set' quotes correctly as required by POSIX, so do not add quotes.
24113 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
24115 esac |
24116 sort
24118 sed '
24119 /^ac_cv_env_/b end
24120 t clear
24121 :clear
24122 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
24123 t end
24124 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
24125 :end' >>confcache
24126 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
24127 if test -w "$cache_file"; then
24128 test "x$cache_file" != "x/dev/null" &&
24129 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
24130 echo "$as_me: updating cache $cache_file" >&6;}
24131 cat confcache >$cache_file
24132 else
24133 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
24134 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
24137 rm -f confcache
24139 test "x$prefix" = xNONE && prefix=$ac_default_prefix
24140 # Let make expand exec_prefix.
24141 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
24143 DEFS=-DHAVE_CONFIG_H
24145 ac_libobjs=
24146 ac_ltlibobjs=
24147 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
24148 # 1. Remove the extension, and $U if already installed.
24149 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
24150 ac_i=`echo "$ac_i" | sed "$ac_script"`
24151 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
24152 # will be set to the directory where LIBOBJS objects are built.
24153 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
24154 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
24155 done
24156 LIBOBJS=$ac_libobjs
24158 LTLIBOBJS=$ac_ltlibobjs
24162 : ${CONFIG_STATUS=./config.status}
24163 ac_clean_files_save=$ac_clean_files
24164 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
24165 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
24166 echo "$as_me: creating $CONFIG_STATUS" >&6;}
24167 cat >$CONFIG_STATUS <<_ACEOF
24168 #! $SHELL
24169 # Generated by $as_me.
24170 # Run this file to recreate the current configuration.
24171 # Compiler output produced by configure, useful for debugging
24172 # configure, is in config.log if it exists.
24174 debug=false
24175 ac_cs_recheck=false
24176 ac_cs_silent=false
24177 SHELL=\${CONFIG_SHELL-$SHELL}
24178 _ACEOF
24180 cat >>$CONFIG_STATUS <<\_ACEOF
24181 ## --------------------- ##
24182 ## M4sh Initialization. ##
24183 ## --------------------- ##
24185 # Be more Bourne compatible
24186 DUALCASE=1; export DUALCASE # for MKS sh
24187 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
24188 emulate sh
24189 NULLCMD=:
24190 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
24191 # is contrary to our usage. Disable this feature.
24192 alias -g '${1+"$@"}'='"$@"'
24193 setopt NO_GLOB_SUBST
24194 else
24195 case `(set -o) 2>/dev/null` in
24196 *posix*) set -o posix ;;
24197 esac
24204 # PATH needs CR
24205 # Avoid depending upon Character Ranges.
24206 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
24207 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
24208 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
24209 as_cr_digits='0123456789'
24210 as_cr_alnum=$as_cr_Letters$as_cr_digits
24212 # The user is always right.
24213 if test "${PATH_SEPARATOR+set}" != set; then
24214 echo "#! /bin/sh" >conf$$.sh
24215 echo "exit 0" >>conf$$.sh
24216 chmod +x conf$$.sh
24217 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
24218 PATH_SEPARATOR=';'
24219 else
24220 PATH_SEPARATOR=:
24222 rm -f conf$$.sh
24225 # Support unset when possible.
24226 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
24227 as_unset=unset
24228 else
24229 as_unset=false
24233 # IFS
24234 # We need space, tab and new line, in precisely that order. Quoting is
24235 # there to prevent editors from complaining about space-tab.
24236 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
24237 # splitting by setting IFS to empty value.)
24238 as_nl='
24240 IFS=" "" $as_nl"
24242 # Find who we are. Look in the path if we contain no directory separator.
24243 case $0 in
24244 *[\\/]* ) as_myself=$0 ;;
24245 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24246 for as_dir in $PATH
24248 IFS=$as_save_IFS
24249 test -z "$as_dir" && as_dir=.
24250 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
24251 done
24252 IFS=$as_save_IFS
24255 esac
24256 # We did not find ourselves, most probably we were run as `sh COMMAND'
24257 # in which case we are not to be found in the path.
24258 if test "x$as_myself" = x; then
24259 as_myself=$0
24261 if test ! -f "$as_myself"; then
24262 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
24263 { (exit 1); exit 1; }
24266 # Work around bugs in pre-3.0 UWIN ksh.
24267 for as_var in ENV MAIL MAILPATH
24268 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
24269 done
24270 PS1='$ '
24271 PS2='> '
24272 PS4='+ '
24274 # NLS nuisances.
24275 for as_var in \
24276 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
24277 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
24278 LC_TELEPHONE LC_TIME
24280 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
24281 eval $as_var=C; export $as_var
24282 else
24283 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
24285 done
24287 # Required to use basename.
24288 if expr a : '\(a\)' >/dev/null 2>&1 &&
24289 test "X`expr 00001 : '.*\(...\)'`" = X001; then
24290 as_expr=expr
24291 else
24292 as_expr=false
24295 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
24296 as_basename=basename
24297 else
24298 as_basename=false
24302 # Name of the executable.
24303 as_me=`$as_basename -- "$0" ||
24304 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
24305 X"$0" : 'X\(//\)$' \| \
24306 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
24307 echo X/"$0" |
24308 sed '/^.*\/\([^/][^/]*\)\/*$/{
24309 s//\1/
24312 /^X\/\(\/\/\)$/{
24313 s//\1/
24316 /^X\/\(\/\).*/{
24317 s//\1/
24320 s/.*/./; q'`
24322 # CDPATH.
24323 $as_unset CDPATH
24327 as_lineno_1=$LINENO
24328 as_lineno_2=$LINENO
24329 test "x$as_lineno_1" != "x$as_lineno_2" &&
24330 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
24332 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
24333 # uniformly replaced by the line number. The first 'sed' inserts a
24334 # line-number line after each line using $LINENO; the second 'sed'
24335 # does the real work. The second script uses 'N' to pair each
24336 # line-number line with the line containing $LINENO, and appends
24337 # trailing '-' during substitution so that $LINENO is not a special
24338 # case at line end.
24339 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
24340 # scripts with optimization help from Paolo Bonzini. Blame Lee
24341 # E. McMahon (1931-1989) for sed's syntax. :-)
24342 sed -n '
24344 /[$]LINENO/=
24345 ' <$as_myself |
24346 sed '
24347 s/[$]LINENO.*/&-/
24348 t lineno
24350 :lineno
24352 :loop
24353 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
24354 t loop
24355 s/-\n.*//
24356 ' >$as_me.lineno &&
24357 chmod +x "$as_me.lineno" ||
24358 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
24359 { (exit 1); exit 1; }; }
24361 # Don't try to exec as it changes $[0], causing all sort of problems
24362 # (the dirname of $[0] is not the place where we might find the
24363 # original and so on. Autoconf is especially sensitive to this).
24364 . "./$as_me.lineno"
24365 # Exit status is that of the last command.
24366 exit
24370 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
24371 as_dirname=dirname
24372 else
24373 as_dirname=false
24376 ECHO_C= ECHO_N= ECHO_T=
24377 case `echo -n x` in
24378 -n*)
24379 case `echo 'x\c'` in
24380 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
24381 *) ECHO_C='\c';;
24382 esac;;
24384 ECHO_N='-n';;
24385 esac
24387 if expr a : '\(a\)' >/dev/null 2>&1 &&
24388 test "X`expr 00001 : '.*\(...\)'`" = X001; then
24389 as_expr=expr
24390 else
24391 as_expr=false
24394 rm -f conf$$ conf$$.exe conf$$.file
24395 if test -d conf$$.dir; then
24396 rm -f conf$$.dir/conf$$.file
24397 else
24398 rm -f conf$$.dir
24399 mkdir conf$$.dir
24401 echo >conf$$.file
24402 if ln -s conf$$.file conf$$ 2>/dev/null; then
24403 as_ln_s='ln -s'
24404 # ... but there are two gotchas:
24405 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
24406 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
24407 # In both cases, we have to default to `cp -p'.
24408 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
24409 as_ln_s='cp -p'
24410 elif ln conf$$.file conf$$ 2>/dev/null; then
24411 as_ln_s=ln
24412 else
24413 as_ln_s='cp -p'
24415 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
24416 rmdir conf$$.dir 2>/dev/null
24418 if mkdir -p . 2>/dev/null; then
24419 as_mkdir_p=:
24420 else
24421 test -d ./-p && rmdir ./-p
24422 as_mkdir_p=false
24425 if test -x / >/dev/null 2>&1; then
24426 as_test_x='test -x'
24427 else
24428 if ls -dL / >/dev/null 2>&1; then
24429 as_ls_L_option=L
24430 else
24431 as_ls_L_option=
24433 as_test_x='
24434 eval sh -c '\''
24435 if test -d "$1"; then
24436 test -d "$1/.";
24437 else
24438 case $1 in
24439 -*)set "./$1";;
24440 esac;
24441 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
24442 ???[sx]*):;;*)false;;esac;fi
24443 '\'' sh
24446 as_executable_p=$as_test_x
24448 # Sed expression to map a string onto a valid CPP name.
24449 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
24451 # Sed expression to map a string onto a valid variable name.
24452 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
24455 exec 6>&1
24457 # Save the log message, to keep $[0] and so on meaningful, and to
24458 # report actual input values of CONFIG_FILES etc. instead of their
24459 # values after options handling.
24460 ac_log="
24461 This file was extended by python $as_me 2.6, which was
24462 generated by GNU Autoconf 2.61. Invocation command line was
24464 CONFIG_FILES = $CONFIG_FILES
24465 CONFIG_HEADERS = $CONFIG_HEADERS
24466 CONFIG_LINKS = $CONFIG_LINKS
24467 CONFIG_COMMANDS = $CONFIG_COMMANDS
24468 $ $0 $@
24470 on `(hostname || uname -n) 2>/dev/null | sed 1q`
24473 _ACEOF
24475 cat >>$CONFIG_STATUS <<_ACEOF
24476 # Files that config.status was made for.
24477 config_files="$ac_config_files"
24478 config_headers="$ac_config_headers"
24480 _ACEOF
24482 cat >>$CONFIG_STATUS <<\_ACEOF
24483 ac_cs_usage="\
24484 \`$as_me' instantiates files from templates according to the
24485 current configuration.
24487 Usage: $0 [OPTIONS] [FILE]...
24489 -h, --help print this help, then exit
24490 -V, --version print version number and configuration settings, then exit
24491 -q, --quiet do not print progress messages
24492 -d, --debug don't remove temporary files
24493 --recheck update $as_me by reconfiguring in the same conditions
24494 --file=FILE[:TEMPLATE]
24495 instantiate the configuration file FILE
24496 --header=FILE[:TEMPLATE]
24497 instantiate the configuration header FILE
24499 Configuration files:
24500 $config_files
24502 Configuration headers:
24503 $config_headers
24505 Report bugs to <bug-autoconf@gnu.org>."
24507 _ACEOF
24508 cat >>$CONFIG_STATUS <<_ACEOF
24509 ac_cs_version="\\
24510 python config.status 2.6
24511 configured by $0, generated by GNU Autoconf 2.61,
24512 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
24514 Copyright (C) 2006 Free Software Foundation, Inc.
24515 This config.status script is free software; the Free Software Foundation
24516 gives unlimited permission to copy, distribute and modify it."
24518 ac_pwd='$ac_pwd'
24519 srcdir='$srcdir'
24520 INSTALL='$INSTALL'
24521 _ACEOF
24523 cat >>$CONFIG_STATUS <<\_ACEOF
24524 # If no file are specified by the user, then we need to provide default
24525 # value. By we need to know if files were specified by the user.
24526 ac_need_defaults=:
24527 while test $# != 0
24529 case $1 in
24530 --*=*)
24531 ac_option=`expr "X$1" : 'X\([^=]*\)='`
24532 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
24533 ac_shift=:
24536 ac_option=$1
24537 ac_optarg=$2
24538 ac_shift=shift
24540 esac
24542 case $ac_option in
24543 # Handling of the options.
24544 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
24545 ac_cs_recheck=: ;;
24546 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
24547 echo "$ac_cs_version"; exit ;;
24548 --debug | --debu | --deb | --de | --d | -d )
24549 debug=: ;;
24550 --file | --fil | --fi | --f )
24551 $ac_shift
24552 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
24553 ac_need_defaults=false;;
24554 --header | --heade | --head | --hea )
24555 $ac_shift
24556 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
24557 ac_need_defaults=false;;
24558 --he | --h)
24559 # Conflict between --help and --header
24560 { echo "$as_me: error: ambiguous option: $1
24561 Try \`$0 --help' for more information." >&2
24562 { (exit 1); exit 1; }; };;
24563 --help | --hel | -h )
24564 echo "$ac_cs_usage"; exit ;;
24565 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
24566 | -silent | --silent | --silen | --sile | --sil | --si | --s)
24567 ac_cs_silent=: ;;
24569 # This is an error.
24570 -*) { echo "$as_me: error: unrecognized option: $1
24571 Try \`$0 --help' for more information." >&2
24572 { (exit 1); exit 1; }; } ;;
24574 *) ac_config_targets="$ac_config_targets $1"
24575 ac_need_defaults=false ;;
24577 esac
24578 shift
24579 done
24581 ac_configure_extra_args=
24583 if $ac_cs_silent; then
24584 exec 6>/dev/null
24585 ac_configure_extra_args="$ac_configure_extra_args --silent"
24588 _ACEOF
24589 cat >>$CONFIG_STATUS <<_ACEOF
24590 if \$ac_cs_recheck; then
24591 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
24592 CONFIG_SHELL=$SHELL
24593 export CONFIG_SHELL
24594 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
24597 _ACEOF
24598 cat >>$CONFIG_STATUS <<\_ACEOF
24599 exec 5>>config.log
24601 echo
24602 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
24603 ## Running $as_me. ##
24604 _ASBOX
24605 echo "$ac_log"
24606 } >&5
24608 _ACEOF
24609 cat >>$CONFIG_STATUS <<_ACEOF
24610 _ACEOF
24612 cat >>$CONFIG_STATUS <<\_ACEOF
24614 # Handling of arguments.
24615 for ac_config_target in $ac_config_targets
24617 case $ac_config_target in
24618 "pyconfig.h") CONFIG_HEADERS="$CONFIG_HEADERS pyconfig.h" ;;
24619 "Mac/Makefile") CONFIG_FILES="$CONFIG_FILES Mac/Makefile" ;;
24620 "Mac/PythonLauncher/Makefile") CONFIG_FILES="$CONFIG_FILES Mac/PythonLauncher/Makefile" ;;
24621 "Mac/IDLE/Makefile") CONFIG_FILES="$CONFIG_FILES Mac/IDLE/Makefile" ;;
24622 "Mac/Resources/framework/Info.plist") CONFIG_FILES="$CONFIG_FILES Mac/Resources/framework/Info.plist" ;;
24623 "Mac/Resources/app/Info.plist") CONFIG_FILES="$CONFIG_FILES Mac/Resources/app/Info.plist" ;;
24624 "Makefile.pre") CONFIG_FILES="$CONFIG_FILES Makefile.pre" ;;
24625 "Modules/Setup.config") CONFIG_FILES="$CONFIG_FILES Modules/Setup.config" ;;
24627 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
24628 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
24629 { (exit 1); exit 1; }; };;
24630 esac
24631 done
24634 # If the user did not use the arguments to specify the items to instantiate,
24635 # then the envvar interface is used. Set only those that are not.
24636 # We use the long form for the default assignment because of an extremely
24637 # bizarre bug on SunOS 4.1.3.
24638 if $ac_need_defaults; then
24639 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
24640 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
24643 # Have a temporary directory for convenience. Make it in the build tree
24644 # simply because there is no reason against having it here, and in addition,
24645 # creating and moving files from /tmp can sometimes cause problems.
24646 # Hook for its removal unless debugging.
24647 # Note that there is a small window in which the directory will not be cleaned:
24648 # after its creation but before its name has been assigned to `$tmp'.
24649 $debug ||
24651 tmp=
24652 trap 'exit_status=$?
24653 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
24655 trap '{ (exit 1); exit 1; }' 1 2 13 15
24657 # Create a (secure) tmp directory for tmp files.
24660 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
24661 test -n "$tmp" && test -d "$tmp"
24662 } ||
24664 tmp=./conf$$-$RANDOM
24665 (umask 077 && mkdir "$tmp")
24666 } ||
24668 echo "$me: cannot create a temporary directory in ." >&2
24669 { (exit 1); exit 1; }
24673 # Set up the sed scripts for CONFIG_FILES section.
24676 # No need to generate the scripts if there are no CONFIG_FILES.
24677 # This happens for instance when ./config.status config.h
24678 if test -n "$CONFIG_FILES"; then
24680 _ACEOF
24684 ac_delim='%!_!# '
24685 for ac_last_try in false false false false false :; do
24686 cat >conf$$subs.sed <<_ACEOF
24687 SHELL!$SHELL$ac_delim
24688 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
24689 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
24690 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
24691 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
24692 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
24693 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
24694 exec_prefix!$exec_prefix$ac_delim
24695 prefix!$prefix$ac_delim
24696 program_transform_name!$program_transform_name$ac_delim
24697 bindir!$bindir$ac_delim
24698 sbindir!$sbindir$ac_delim
24699 libexecdir!$libexecdir$ac_delim
24700 datarootdir!$datarootdir$ac_delim
24701 datadir!$datadir$ac_delim
24702 sysconfdir!$sysconfdir$ac_delim
24703 sharedstatedir!$sharedstatedir$ac_delim
24704 localstatedir!$localstatedir$ac_delim
24705 includedir!$includedir$ac_delim
24706 oldincludedir!$oldincludedir$ac_delim
24707 docdir!$docdir$ac_delim
24708 infodir!$infodir$ac_delim
24709 htmldir!$htmldir$ac_delim
24710 dvidir!$dvidir$ac_delim
24711 pdfdir!$pdfdir$ac_delim
24712 psdir!$psdir$ac_delim
24713 libdir!$libdir$ac_delim
24714 localedir!$localedir$ac_delim
24715 mandir!$mandir$ac_delim
24716 DEFS!$DEFS$ac_delim
24717 ECHO_C!$ECHO_C$ac_delim
24718 ECHO_N!$ECHO_N$ac_delim
24719 ECHO_T!$ECHO_T$ac_delim
24720 LIBS!$LIBS$ac_delim
24721 build_alias!$build_alias$ac_delim
24722 host_alias!$host_alias$ac_delim
24723 target_alias!$target_alias$ac_delim
24724 VERSION!$VERSION$ac_delim
24725 SOVERSION!$SOVERSION$ac_delim
24726 CONFIG_ARGS!$CONFIG_ARGS$ac_delim
24727 UNIVERSALSDK!$UNIVERSALSDK$ac_delim
24728 PYTHONFRAMEWORK!$PYTHONFRAMEWORK$ac_delim
24729 PYTHONFRAMEWORKIDENTIFIER!$PYTHONFRAMEWORKIDENTIFIER$ac_delim
24730 PYTHONFRAMEWORKDIR!$PYTHONFRAMEWORKDIR$ac_delim
24731 PYTHONFRAMEWORKPREFIX!$PYTHONFRAMEWORKPREFIX$ac_delim
24732 PYTHONFRAMEWORKINSTALLDIR!$PYTHONFRAMEWORKINSTALLDIR$ac_delim
24733 FRAMEWORKINSTALLFIRST!$FRAMEWORKINSTALLFIRST$ac_delim
24734 FRAMEWORKINSTALLLAST!$FRAMEWORKINSTALLLAST$ac_delim
24735 FRAMEWORKALTINSTALLFIRST!$FRAMEWORKALTINSTALLFIRST$ac_delim
24736 FRAMEWORKALTINSTALLLAST!$FRAMEWORKALTINSTALLLAST$ac_delim
24737 FRAMEWORKUNIXTOOLSPREFIX!$FRAMEWORKUNIXTOOLSPREFIX$ac_delim
24738 MACHDEP!$MACHDEP$ac_delim
24739 SGI_ABI!$SGI_ABI$ac_delim
24740 EXTRAPLATDIR!$EXTRAPLATDIR$ac_delim
24741 EXTRAMACHDEPPATH!$EXTRAMACHDEPPATH$ac_delim
24742 CONFIGURE_MACOSX_DEPLOYMENT_TARGET!$CONFIGURE_MACOSX_DEPLOYMENT_TARGET$ac_delim
24743 EXPORT_MACOSX_DEPLOYMENT_TARGET!$EXPORT_MACOSX_DEPLOYMENT_TARGET$ac_delim
24744 CC!$CC$ac_delim
24745 CFLAGS!$CFLAGS$ac_delim
24746 LDFLAGS!$LDFLAGS$ac_delim
24747 CPPFLAGS!$CPPFLAGS$ac_delim
24748 ac_ct_CC!$ac_ct_CC$ac_delim
24749 EXEEXT!$EXEEXT$ac_delim
24750 OBJEXT!$OBJEXT$ac_delim
24751 CXX!$CXX$ac_delim
24752 MAINCC!$MAINCC$ac_delim
24753 CPP!$CPP$ac_delim
24754 GREP!$GREP$ac_delim
24755 EGREP!$EGREP$ac_delim
24756 BUILDEXEEXT!$BUILDEXEEXT$ac_delim
24757 LIBRARY!$LIBRARY$ac_delim
24758 LDLIBRARY!$LDLIBRARY$ac_delim
24759 DLLLIBRARY!$DLLLIBRARY$ac_delim
24760 BLDLIBRARY!$BLDLIBRARY$ac_delim
24761 LDLIBRARYDIR!$LDLIBRARYDIR$ac_delim
24762 INSTSONAME!$INSTSONAME$ac_delim
24763 RUNSHARED!$RUNSHARED$ac_delim
24764 LINKCC!$LINKCC$ac_delim
24765 RANLIB!$RANLIB$ac_delim
24766 AR!$AR$ac_delim
24767 SVNVERSION!$SVNVERSION$ac_delim
24768 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
24769 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
24770 INSTALL_DATA!$INSTALL_DATA$ac_delim
24771 LN!$LN$ac_delim
24772 OPT!$OPT$ac_delim
24773 BASECFLAGS!$BASECFLAGS$ac_delim
24774 OTHER_LIBTOOL_OPT!$OTHER_LIBTOOL_OPT$ac_delim
24775 LIBTOOL_CRUFT!$LIBTOOL_CRUFT$ac_delim
24776 SO!$SO$ac_delim
24777 LDSHARED!$LDSHARED$ac_delim
24778 BLDSHARED!$BLDSHARED$ac_delim
24779 CCSHARED!$CCSHARED$ac_delim
24780 LINKFORSHARED!$LINKFORSHARED$ac_delim
24781 CFLAGSFORSHARED!$CFLAGSFORSHARED$ac_delim
24782 SHLIBS!$SHLIBS$ac_delim
24783 USE_SIGNAL_MODULE!$USE_SIGNAL_MODULE$ac_delim
24784 _ACEOF
24786 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
24787 break
24788 elif $ac_last_try; then
24789 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
24790 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
24791 { (exit 1); exit 1; }; }
24792 else
24793 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
24795 done
24797 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
24798 if test -n "$ac_eof"; then
24799 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
24800 ac_eof=`expr $ac_eof + 1`
24803 cat >>$CONFIG_STATUS <<_ACEOF
24804 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
24805 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
24806 _ACEOF
24807 sed '
24808 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
24809 s/^/s,@/; s/!/@,|#_!!_#|/
24812 s/'"$ac_delim"'$/,g/; t
24813 s/$/\\/; p
24814 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
24815 ' >>$CONFIG_STATUS <conf$$subs.sed
24816 rm -f conf$$subs.sed
24817 cat >>$CONFIG_STATUS <<_ACEOF
24818 CEOF$ac_eof
24819 _ACEOF
24822 ac_delim='%!_!# '
24823 for ac_last_try in false false false false false :; do
24824 cat >conf$$subs.sed <<_ACEOF
24825 SIGNAL_OBJS!$SIGNAL_OBJS$ac_delim
24826 USE_THREAD_MODULE!$USE_THREAD_MODULE$ac_delim
24827 LDLAST!$LDLAST$ac_delim
24828 THREADOBJ!$THREADOBJ$ac_delim
24829 DLINCLDIR!$DLINCLDIR$ac_delim
24830 DYNLOADFILE!$DYNLOADFILE$ac_delim
24831 MACHDEP_OBJS!$MACHDEP_OBJS$ac_delim
24832 TRUE!$TRUE$ac_delim
24833 LIBOBJS!$LIBOBJS$ac_delim
24834 HAVE_GETHOSTBYNAME_R_6_ARG!$HAVE_GETHOSTBYNAME_R_6_ARG$ac_delim
24835 HAVE_GETHOSTBYNAME_R_5_ARG!$HAVE_GETHOSTBYNAME_R_5_ARG$ac_delim
24836 HAVE_GETHOSTBYNAME_R_3_ARG!$HAVE_GETHOSTBYNAME_R_3_ARG$ac_delim
24837 HAVE_GETHOSTBYNAME_R!$HAVE_GETHOSTBYNAME_R$ac_delim
24838 HAVE_GETHOSTBYNAME!$HAVE_GETHOSTBYNAME$ac_delim
24839 LIBM!$LIBM$ac_delim
24840 LIBC!$LIBC$ac_delim
24841 UNICODE_OBJS!$UNICODE_OBJS$ac_delim
24842 THREADHEADERS!$THREADHEADERS$ac_delim
24843 SRCDIRS!$SRCDIRS$ac_delim
24844 LTLIBOBJS!$LTLIBOBJS$ac_delim
24845 _ACEOF
24847 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 20; then
24848 break
24849 elif $ac_last_try; then
24850 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
24851 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
24852 { (exit 1); exit 1; }; }
24853 else
24854 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
24856 done
24858 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
24859 if test -n "$ac_eof"; then
24860 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
24861 ac_eof=`expr $ac_eof + 1`
24864 cat >>$CONFIG_STATUS <<_ACEOF
24865 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
24866 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
24867 _ACEOF
24868 sed '
24869 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
24870 s/^/s,@/; s/!/@,|#_!!_#|/
24873 s/'"$ac_delim"'$/,g/; t
24874 s/$/\\/; p
24875 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
24876 ' >>$CONFIG_STATUS <conf$$subs.sed
24877 rm -f conf$$subs.sed
24878 cat >>$CONFIG_STATUS <<_ACEOF
24879 :end
24880 s/|#_!!_#|//g
24881 CEOF$ac_eof
24882 _ACEOF
24885 # VPATH may cause trouble with some makes, so we remove $(srcdir),
24886 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
24887 # trailing colons and then remove the whole line if VPATH becomes empty
24888 # (actually we leave an empty line to preserve line numbers).
24889 if test "x$srcdir" = x.; then
24890 ac_vpsub='/^[ ]*VPATH[ ]*=/{
24891 s/:*\$(srcdir):*/:/
24892 s/:*\${srcdir}:*/:/
24893 s/:*@srcdir@:*/:/
24894 s/^\([^=]*=[ ]*\):*/\1/
24895 s/:*$//
24896 s/^[^=]*=[ ]*$//
24900 cat >>$CONFIG_STATUS <<\_ACEOF
24901 fi # test -n "$CONFIG_FILES"
24904 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS
24906 case $ac_tag in
24907 :[FHLC]) ac_mode=$ac_tag; continue;;
24908 esac
24909 case $ac_mode$ac_tag in
24910 :[FHL]*:*);;
24911 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
24912 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
24913 { (exit 1); exit 1; }; };;
24914 :[FH]-) ac_tag=-:-;;
24915 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
24916 esac
24917 ac_save_IFS=$IFS
24918 IFS=:
24919 set x $ac_tag
24920 IFS=$ac_save_IFS
24921 shift
24922 ac_file=$1
24923 shift
24925 case $ac_mode in
24926 :L) ac_source=$1;;
24927 :[FH])
24928 ac_file_inputs=
24929 for ac_f
24931 case $ac_f in
24932 -) ac_f="$tmp/stdin";;
24933 *) # Look for the file first in the build tree, then in the source tree
24934 # (if the path is not absolute). The absolute path cannot be DOS-style,
24935 # because $ac_f cannot contain `:'.
24936 test -f "$ac_f" ||
24937 case $ac_f in
24938 [\\/$]*) false;;
24939 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
24940 esac ||
24941 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
24942 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
24943 { (exit 1); exit 1; }; };;
24944 esac
24945 ac_file_inputs="$ac_file_inputs $ac_f"
24946 done
24948 # Let's still pretend it is `configure' which instantiates (i.e., don't
24949 # use $as_me), people would be surprised to read:
24950 # /* config.h. Generated by config.status. */
24951 configure_input="Generated from "`IFS=:
24952 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
24953 if test x"$ac_file" != x-; then
24954 configure_input="$ac_file. $configure_input"
24955 { echo "$as_me:$LINENO: creating $ac_file" >&5
24956 echo "$as_me: creating $ac_file" >&6;}
24959 case $ac_tag in
24960 *:-:* | *:-) cat >"$tmp/stdin";;
24961 esac
24963 esac
24965 ac_dir=`$as_dirname -- "$ac_file" ||
24966 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24967 X"$ac_file" : 'X\(//\)[^/]' \| \
24968 X"$ac_file" : 'X\(//\)$' \| \
24969 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
24970 echo X"$ac_file" |
24971 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24972 s//\1/
24975 /^X\(\/\/\)[^/].*/{
24976 s//\1/
24979 /^X\(\/\/\)$/{
24980 s//\1/
24983 /^X\(\/\).*/{
24984 s//\1/
24987 s/.*/./; q'`
24988 { as_dir="$ac_dir"
24989 case $as_dir in #(
24990 -*) as_dir=./$as_dir;;
24991 esac
24992 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
24993 as_dirs=
24994 while :; do
24995 case $as_dir in #(
24996 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
24997 *) as_qdir=$as_dir;;
24998 esac
24999 as_dirs="'$as_qdir' $as_dirs"
25000 as_dir=`$as_dirname -- "$as_dir" ||
25001 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25002 X"$as_dir" : 'X\(//\)[^/]' \| \
25003 X"$as_dir" : 'X\(//\)$' \| \
25004 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
25005 echo X"$as_dir" |
25006 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25007 s//\1/
25010 /^X\(\/\/\)[^/].*/{
25011 s//\1/
25014 /^X\(\/\/\)$/{
25015 s//\1/
25018 /^X\(\/\).*/{
25019 s//\1/
25022 s/.*/./; q'`
25023 test -d "$as_dir" && break
25024 done
25025 test -z "$as_dirs" || eval "mkdir $as_dirs"
25026 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
25027 echo "$as_me: error: cannot create directory $as_dir" >&2;}
25028 { (exit 1); exit 1; }; }; }
25029 ac_builddir=.
25031 case "$ac_dir" in
25032 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
25034 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
25035 # A ".." for each directory in $ac_dir_suffix.
25036 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
25037 case $ac_top_builddir_sub in
25038 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
25039 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
25040 esac ;;
25041 esac
25042 ac_abs_top_builddir=$ac_pwd
25043 ac_abs_builddir=$ac_pwd$ac_dir_suffix
25044 # for backward compatibility:
25045 ac_top_builddir=$ac_top_build_prefix
25047 case $srcdir in
25048 .) # We are building in place.
25049 ac_srcdir=.
25050 ac_top_srcdir=$ac_top_builddir_sub
25051 ac_abs_top_srcdir=$ac_pwd ;;
25052 [\\/]* | ?:[\\/]* ) # Absolute name.
25053 ac_srcdir=$srcdir$ac_dir_suffix;
25054 ac_top_srcdir=$srcdir
25055 ac_abs_top_srcdir=$srcdir ;;
25056 *) # Relative name.
25057 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
25058 ac_top_srcdir=$ac_top_build_prefix$srcdir
25059 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
25060 esac
25061 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
25064 case $ac_mode in
25067 # CONFIG_FILE
25070 case $INSTALL in
25071 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
25072 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
25073 esac
25074 _ACEOF
25076 cat >>$CONFIG_STATUS <<\_ACEOF
25077 # If the template does not know about datarootdir, expand it.
25078 # FIXME: This hack should be removed a few years after 2.60.
25079 ac_datarootdir_hack=; ac_datarootdir_seen=
25081 case `sed -n '/datarootdir/ {
25085 /@datadir@/p
25086 /@docdir@/p
25087 /@infodir@/p
25088 /@localedir@/p
25089 /@mandir@/p
25090 ' $ac_file_inputs` in
25091 *datarootdir*) ac_datarootdir_seen=yes;;
25092 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
25093 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
25094 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
25095 _ACEOF
25096 cat >>$CONFIG_STATUS <<_ACEOF
25097 ac_datarootdir_hack='
25098 s&@datadir@&$datadir&g
25099 s&@docdir@&$docdir&g
25100 s&@infodir@&$infodir&g
25101 s&@localedir@&$localedir&g
25102 s&@mandir@&$mandir&g
25103 s&\\\${datarootdir}&$datarootdir&g' ;;
25104 esac
25105 _ACEOF
25107 # Neutralize VPATH when `$srcdir' = `.'.
25108 # Shell code in configure.ac might set extrasub.
25109 # FIXME: do we really want to maintain this feature?
25110 cat >>$CONFIG_STATUS <<_ACEOF
25111 sed "$ac_vpsub
25112 $extrasub
25113 _ACEOF
25114 cat >>$CONFIG_STATUS <<\_ACEOF
25116 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
25117 s&@configure_input@&$configure_input&;t t
25118 s&@top_builddir@&$ac_top_builddir_sub&;t t
25119 s&@srcdir@&$ac_srcdir&;t t
25120 s&@abs_srcdir@&$ac_abs_srcdir&;t t
25121 s&@top_srcdir@&$ac_top_srcdir&;t t
25122 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
25123 s&@builddir@&$ac_builddir&;t t
25124 s&@abs_builddir@&$ac_abs_builddir&;t t
25125 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
25126 s&@INSTALL@&$ac_INSTALL&;t t
25127 $ac_datarootdir_hack
25128 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
25130 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
25131 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
25132 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
25133 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
25134 which seems to be undefined. Please make sure it is defined." >&5
25135 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
25136 which seems to be undefined. Please make sure it is defined." >&2;}
25138 rm -f "$tmp/stdin"
25139 case $ac_file in
25140 -) cat "$tmp/out"; rm -f "$tmp/out";;
25141 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
25142 esac
25146 # CONFIG_HEADER
25148 _ACEOF
25150 # Transform confdefs.h into a sed script `conftest.defines', that
25151 # substitutes the proper values into config.h.in to produce config.h.
25152 rm -f conftest.defines conftest.tail
25153 # First, append a space to every undef/define line, to ease matching.
25154 echo 's/$/ /' >conftest.defines
25155 # Then, protect against being on the right side of a sed subst, or in
25156 # an unquoted here document, in config.status. If some macros were
25157 # called several times there might be several #defines for the same
25158 # symbol, which is useless. But do not sort them, since the last
25159 # AC_DEFINE must be honored.
25160 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
25161 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
25162 # NAME is the cpp macro being defined, VALUE is the value it is being given.
25163 # PARAMS is the parameter list in the macro definition--in most cases, it's
25164 # just an empty string.
25165 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
25166 ac_dB='\\)[ (].*,\\1define\\2'
25167 ac_dC=' '
25168 ac_dD=' ,'
25170 uniq confdefs.h |
25171 sed -n '
25172 t rset
25173 :rset
25174 s/^[ ]*#[ ]*define[ ][ ]*//
25175 t ok
25178 s/[\\&,]/\\&/g
25179 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
25180 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
25181 ' >>conftest.defines
25183 # Remove the space that was appended to ease matching.
25184 # Then replace #undef with comments. This is necessary, for
25185 # example, in the case of _POSIX_SOURCE, which is predefined and required
25186 # on some systems where configure will not decide to define it.
25187 # (The regexp can be short, since the line contains either #define or #undef.)
25188 echo 's/ $//
25189 s,^[ #]*u.*,/* & */,' >>conftest.defines
25191 # Break up conftest.defines:
25192 ac_max_sed_lines=50
25194 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
25195 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
25196 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
25197 # et cetera.
25198 ac_in='$ac_file_inputs'
25199 ac_out='"$tmp/out1"'
25200 ac_nxt='"$tmp/out2"'
25202 while :
25204 # Write a here document:
25205 cat >>$CONFIG_STATUS <<_ACEOF
25206 # First, check the format of the line:
25207 cat >"\$tmp/defines.sed" <<\\CEOF
25208 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
25209 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
25211 :def
25212 _ACEOF
25213 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
25214 echo 'CEOF
25215 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
25216 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
25217 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
25218 grep . conftest.tail >/dev/null || break
25219 rm -f conftest.defines
25220 mv conftest.tail conftest.defines
25221 done
25222 rm -f conftest.defines conftest.tail
25224 echo "ac_result=$ac_in" >>$CONFIG_STATUS
25225 cat >>$CONFIG_STATUS <<\_ACEOF
25226 if test x"$ac_file" != x-; then
25227 echo "/* $configure_input */" >"$tmp/config.h"
25228 cat "$ac_result" >>"$tmp/config.h"
25229 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
25230 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
25231 echo "$as_me: $ac_file is unchanged" >&6;}
25232 else
25233 rm -f $ac_file
25234 mv "$tmp/config.h" $ac_file
25236 else
25237 echo "/* $configure_input */"
25238 cat "$ac_result"
25240 rm -f "$tmp/out12"
25244 esac
25246 done # for ac_tag
25249 { (exit 0); exit 0; }
25250 _ACEOF
25251 chmod +x $CONFIG_STATUS
25252 ac_clean_files=$ac_clean_files_save
25255 # configure is writing to config.log, and then calls config.status.
25256 # config.status does its own redirection, appending to config.log.
25257 # Unfortunately, on DOS this fails, as config.log is still kept open
25258 # by configure, so config.status won't be able to write to it; its
25259 # output is simply discarded. So we exec the FD to /dev/null,
25260 # effectively closing config.log, so it can be properly (re)opened and
25261 # appended to by config.status. When coming back to configure, we
25262 # need to make the FD available again.
25263 if test "$no_create" != yes; then
25264 ac_cs_success=:
25265 ac_config_status_args=
25266 test "$silent" = yes &&
25267 ac_config_status_args="$ac_config_status_args --quiet"
25268 exec 5>/dev/null
25269 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
25270 exec 5>>config.log
25271 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
25272 # would make configure fail if this is the last instruction.
25273 $ac_cs_success || { (exit 1); exit 1; }
25277 echo "creating Modules/Setup"
25278 if test ! -f Modules/Setup
25279 then
25280 cp $srcdir/Modules/Setup.dist Modules/Setup
25283 echo "creating Modules/Setup.local"
25284 if test ! -f Modules/Setup.local
25285 then
25286 echo "# Edit this file for local setup changes" >Modules/Setup.local
25289 echo "creating Makefile"
25290 $SHELL $srcdir/Modules/makesetup -c $srcdir/Modules/config.c.in \
25291 -s Modules Modules/Setup.config \
25292 Modules/Setup.local Modules/Setup
25294 case $ac_sys_system in
25295 BeOS)
25296 { echo "$as_me:$LINENO: WARNING:
25298 Support for BeOS is deprecated as of Python 2.6.
25299 See PEP 11 for the gory details.
25300 " >&5
25301 echo "$as_me: WARNING:
25303 Support for BeOS is deprecated as of Python 2.6.
25304 See PEP 11 for the gory details.
25305 " >&2;}
25307 *) ;;
25308 esac
25310 mv config.c Modules