Issue #4426: The UTF-7 decoder was too strict and didn't accept some legal sequences.
[python.git] / configure
blob5e32591e71a615d32716544ba9180b59c1e6c442
1 #! /bin/sh
2 # From configure.in Revision: 72114 .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.61 for python 2.7.
6 # Report bugs to <http://www.python.org/python-bugs>.
8 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
10 # This configure script is free software; the Free Software Foundation
11 # gives unlimited permission to copy, distribute and modify it.
12 ## --------------------- ##
13 ## M4sh Initialization. ##
14 ## --------------------- ##
16 # Be more Bourne compatible
17 DUALCASE=1; export DUALCASE # for MKS sh
18 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
19 emulate sh
20 NULLCMD=:
21 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22 # is contrary to our usage. Disable this feature.
23 alias -g '${1+"$@"}'='"$@"'
24 setopt NO_GLOB_SUBST
25 else
26 case `(set -o) 2>/dev/null` in
27 *posix*) set -o posix ;;
28 esac
35 # PATH needs CR
36 # Avoid depending upon Character Ranges.
37 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
38 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
39 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
40 as_cr_digits='0123456789'
41 as_cr_alnum=$as_cr_Letters$as_cr_digits
43 # The user is always right.
44 if test "${PATH_SEPARATOR+set}" != set; then
45 echo "#! /bin/sh" >conf$$.sh
46 echo "exit 0" >>conf$$.sh
47 chmod +x conf$$.sh
48 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
49 PATH_SEPARATOR=';'
50 else
51 PATH_SEPARATOR=:
53 rm -f conf$$.sh
56 # Support unset when possible.
57 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
58 as_unset=unset
59 else
60 as_unset=false
64 # IFS
65 # We need space, tab and new line, in precisely that order. Quoting is
66 # there to prevent editors from complaining about space-tab.
67 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
68 # splitting by setting IFS to empty value.)
69 as_nl='
71 IFS=" "" $as_nl"
73 # Find who we are. Look in the path if we contain no directory separator.
74 case $0 in
75 *[\\/]* ) as_myself=$0 ;;
76 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
77 for as_dir in $PATH
79 IFS=$as_save_IFS
80 test -z "$as_dir" && as_dir=.
81 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
82 done
83 IFS=$as_save_IFS
86 esac
87 # We did not find ourselves, most probably we were run as `sh COMMAND'
88 # in which case we are not to be found in the path.
89 if test "x$as_myself" = x; then
90 as_myself=$0
92 if test ! -f "$as_myself"; then
93 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
94 { (exit 1); exit 1; }
97 # Work around bugs in pre-3.0 UWIN ksh.
98 for as_var in ENV MAIL MAILPATH
99 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
100 done
101 PS1='$ '
102 PS2='> '
103 PS4='+ '
105 # NLS nuisances.
106 for as_var in \
107 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
108 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
109 LC_TELEPHONE LC_TIME
111 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
112 eval $as_var=C; export $as_var
113 else
114 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
116 done
118 # Required to use basename.
119 if expr a : '\(a\)' >/dev/null 2>&1 &&
120 test "X`expr 00001 : '.*\(...\)'`" = X001; then
121 as_expr=expr
122 else
123 as_expr=false
126 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
127 as_basename=basename
128 else
129 as_basename=false
133 # Name of the executable.
134 as_me=`$as_basename -- "$0" ||
135 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
136 X"$0" : 'X\(//\)$' \| \
137 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
138 echo X/"$0" |
139 sed '/^.*\/\([^/][^/]*\)\/*$/{
140 s//\1/
143 /^X\/\(\/\/\)$/{
144 s//\1/
147 /^X\/\(\/\).*/{
148 s//\1/
151 s/.*/./; q'`
153 # CDPATH.
154 $as_unset CDPATH
157 if test "x$CONFIG_SHELL" = x; then
158 if (eval ":") 2>/dev/null; then
159 as_have_required=yes
160 else
161 as_have_required=no
164 if test $as_have_required = yes && (eval ":
165 (as_func_return () {
166 (exit \$1)
168 as_func_success () {
169 as_func_return 0
171 as_func_failure () {
172 as_func_return 1
174 as_func_ret_success () {
175 return 0
177 as_func_ret_failure () {
178 return 1
181 exitcode=0
182 if as_func_success; then
184 else
185 exitcode=1
186 echo as_func_success failed.
189 if as_func_failure; then
190 exitcode=1
191 echo as_func_failure succeeded.
194 if as_func_ret_success; then
196 else
197 exitcode=1
198 echo as_func_ret_success failed.
201 if as_func_ret_failure; then
202 exitcode=1
203 echo as_func_ret_failure succeeded.
206 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
208 else
209 exitcode=1
210 echo positional parameters were not saved.
213 test \$exitcode = 0) || { (exit 1); exit 1; }
216 as_lineno_1=\$LINENO
217 as_lineno_2=\$LINENO
218 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
219 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
220 ") 2> /dev/null; then
222 else
223 as_candidate_shells=
224 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
225 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
227 IFS=$as_save_IFS
228 test -z "$as_dir" && as_dir=.
229 case $as_dir in
231 for as_base in sh bash ksh sh5; do
232 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
233 done;;
234 esac
235 done
236 IFS=$as_save_IFS
239 for as_shell in $as_candidate_shells $SHELL; do
240 # Try only shells that exist, to save several forks.
241 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
242 { ("$as_shell") 2> /dev/null <<\_ASEOF
243 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
244 emulate sh
245 NULLCMD=:
246 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
247 # is contrary to our usage. Disable this feature.
248 alias -g '${1+"$@"}'='"$@"'
249 setopt NO_GLOB_SUBST
250 else
251 case `(set -o) 2>/dev/null` in
252 *posix*) set -o posix ;;
253 esac
259 _ASEOF
260 }; then
261 CONFIG_SHELL=$as_shell
262 as_have_required=yes
263 if { "$as_shell" 2> /dev/null <<\_ASEOF
264 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
265 emulate sh
266 NULLCMD=:
267 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
268 # is contrary to our usage. Disable this feature.
269 alias -g '${1+"$@"}'='"$@"'
270 setopt NO_GLOB_SUBST
271 else
272 case `(set -o) 2>/dev/null` in
273 *posix*) set -o posix ;;
274 esac
280 (as_func_return () {
281 (exit $1)
283 as_func_success () {
284 as_func_return 0
286 as_func_failure () {
287 as_func_return 1
289 as_func_ret_success () {
290 return 0
292 as_func_ret_failure () {
293 return 1
296 exitcode=0
297 if as_func_success; then
299 else
300 exitcode=1
301 echo as_func_success failed.
304 if as_func_failure; then
305 exitcode=1
306 echo as_func_failure succeeded.
309 if as_func_ret_success; then
311 else
312 exitcode=1
313 echo as_func_ret_success failed.
316 if as_func_ret_failure; then
317 exitcode=1
318 echo as_func_ret_failure succeeded.
321 if ( set x; as_func_ret_success y && test x = "$1" ); then
323 else
324 exitcode=1
325 echo positional parameters were not saved.
328 test $exitcode = 0) || { (exit 1); exit 1; }
331 as_lineno_1=$LINENO
332 as_lineno_2=$LINENO
333 test "x$as_lineno_1" != "x$as_lineno_2" &&
334 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
336 _ASEOF
337 }; then
338 break
343 done
345 if test "x$CONFIG_SHELL" != x; then
346 for as_var in BASH_ENV ENV
347 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
348 done
349 export CONFIG_SHELL
350 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
354 if test $as_have_required = no; then
355 echo This script requires a shell more modern than all the
356 echo shells that I found on your system. Please install a
357 echo modern shell, or manually run the script under such a
358 echo shell if you do have one.
359 { (exit 1); exit 1; }
369 (eval "as_func_return () {
370 (exit \$1)
372 as_func_success () {
373 as_func_return 0
375 as_func_failure () {
376 as_func_return 1
378 as_func_ret_success () {
379 return 0
381 as_func_ret_failure () {
382 return 1
385 exitcode=0
386 if as_func_success; then
388 else
389 exitcode=1
390 echo as_func_success failed.
393 if as_func_failure; then
394 exitcode=1
395 echo as_func_failure succeeded.
398 if as_func_ret_success; then
400 else
401 exitcode=1
402 echo as_func_ret_success failed.
405 if as_func_ret_failure; then
406 exitcode=1
407 echo as_func_ret_failure succeeded.
410 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
412 else
413 exitcode=1
414 echo positional parameters were not saved.
417 test \$exitcode = 0") || {
418 echo No shell found that supports shell functions.
419 echo Please tell autoconf@gnu.org about your system,
420 echo including any error possibly output before this
421 echo message
426 as_lineno_1=$LINENO
427 as_lineno_2=$LINENO
428 test "x$as_lineno_1" != "x$as_lineno_2" &&
429 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
431 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
432 # uniformly replaced by the line number. The first 'sed' inserts a
433 # line-number line after each line using $LINENO; the second 'sed'
434 # does the real work. The second script uses 'N' to pair each
435 # line-number line with the line containing $LINENO, and appends
436 # trailing '-' during substitution so that $LINENO is not a special
437 # case at line end.
438 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
439 # scripts with optimization help from Paolo Bonzini. Blame Lee
440 # E. McMahon (1931-1989) for sed's syntax. :-)
441 sed -n '
443 /[$]LINENO/=
444 ' <$as_myself |
445 sed '
446 s/[$]LINENO.*/&-/
447 t lineno
449 :lineno
451 :loop
452 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
453 t loop
454 s/-\n.*//
455 ' >$as_me.lineno &&
456 chmod +x "$as_me.lineno" ||
457 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
458 { (exit 1); exit 1; }; }
460 # Don't try to exec as it changes $[0], causing all sort of problems
461 # (the dirname of $[0] is not the place where we might find the
462 # original and so on. Autoconf is especially sensitive to this).
463 . "./$as_me.lineno"
464 # Exit status is that of the last command.
465 exit
469 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
470 as_dirname=dirname
471 else
472 as_dirname=false
475 ECHO_C= ECHO_N= ECHO_T=
476 case `echo -n x` in
477 -n*)
478 case `echo 'x\c'` in
479 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
480 *) ECHO_C='\c';;
481 esac;;
483 ECHO_N='-n';;
484 esac
486 if expr a : '\(a\)' >/dev/null 2>&1 &&
487 test "X`expr 00001 : '.*\(...\)'`" = X001; then
488 as_expr=expr
489 else
490 as_expr=false
493 rm -f conf$$ conf$$.exe conf$$.file
494 if test -d conf$$.dir; then
495 rm -f conf$$.dir/conf$$.file
496 else
497 rm -f conf$$.dir
498 mkdir conf$$.dir
500 echo >conf$$.file
501 if ln -s conf$$.file conf$$ 2>/dev/null; then
502 as_ln_s='ln -s'
503 # ... but there are two gotchas:
504 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
505 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
506 # In both cases, we have to default to `cp -p'.
507 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
508 as_ln_s='cp -p'
509 elif ln conf$$.file conf$$ 2>/dev/null; then
510 as_ln_s=ln
511 else
512 as_ln_s='cp -p'
514 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
515 rmdir conf$$.dir 2>/dev/null
517 if mkdir -p . 2>/dev/null; then
518 as_mkdir_p=:
519 else
520 test -d ./-p && rmdir ./-p
521 as_mkdir_p=false
524 if test -x / >/dev/null 2>&1; then
525 as_test_x='test -x'
526 else
527 if ls -dL / >/dev/null 2>&1; then
528 as_ls_L_option=L
529 else
530 as_ls_L_option=
532 as_test_x='
533 eval sh -c '\''
534 if test -d "$1"; then
535 test -d "$1/.";
536 else
537 case $1 in
538 -*)set "./$1";;
539 esac;
540 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
541 ???[sx]*):;;*)false;;esac;fi
542 '\'' sh
545 as_executable_p=$as_test_x
547 # Sed expression to map a string onto a valid CPP name.
548 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
550 # Sed expression to map a string onto a valid variable name.
551 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
555 exec 7<&0 </dev/null 6>&1
557 # Name of the host.
558 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
559 # so uname gets run too.
560 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
563 # Initializations.
565 ac_default_prefix=/usr/local
566 ac_clean_files=
567 ac_config_libobj_dir=.
568 LIBOBJS=
569 cross_compiling=no
570 subdirs=
571 MFLAGS=
572 MAKEFLAGS=
573 SHELL=${CONFIG_SHELL-/bin/sh}
575 # Identity of this package.
576 PACKAGE_NAME='python'
577 PACKAGE_TARNAME='python'
578 PACKAGE_VERSION='2.7'
579 PACKAGE_STRING='python 2.7'
580 PACKAGE_BUGREPORT='http://www.python.org/python-bugs'
582 ac_unique_file="Include/object.h"
583 # Factoring default headers for most tests.
584 ac_includes_default="\
585 #include <stdio.h>
586 #ifdef HAVE_SYS_TYPES_H
587 # include <sys/types.h>
588 #endif
589 #ifdef HAVE_SYS_STAT_H
590 # include <sys/stat.h>
591 #endif
592 #ifdef STDC_HEADERS
593 # include <stdlib.h>
594 # include <stddef.h>
595 #else
596 # ifdef HAVE_STDLIB_H
597 # include <stdlib.h>
598 # endif
599 #endif
600 #ifdef HAVE_STRING_H
601 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
602 # include <memory.h>
603 # endif
604 # include <string.h>
605 #endif
606 #ifdef HAVE_STRINGS_H
607 # include <strings.h>
608 #endif
609 #ifdef HAVE_INTTYPES_H
610 # include <inttypes.h>
611 #endif
612 #ifdef HAVE_STDINT_H
613 # include <stdint.h>
614 #endif
615 #ifdef HAVE_UNISTD_H
616 # include <unistd.h>
617 #endif"
619 ac_subst_vars='SHELL
620 PATH_SEPARATOR
621 PACKAGE_NAME
622 PACKAGE_TARNAME
623 PACKAGE_VERSION
624 PACKAGE_STRING
625 PACKAGE_BUGREPORT
626 exec_prefix
627 prefix
628 program_transform_name
629 bindir
630 sbindir
631 libexecdir
632 datarootdir
633 datadir
634 sysconfdir
635 sharedstatedir
636 localstatedir
637 includedir
638 oldincludedir
639 docdir
640 infodir
641 htmldir
642 dvidir
643 pdfdir
644 psdir
645 libdir
646 localedir
647 mandir
648 DEFS
649 ECHO_C
650 ECHO_N
651 ECHO_T
652 LIBS
653 build_alias
654 host_alias
655 target_alias
656 VERSION
657 SOVERSION
658 CONFIG_ARGS
659 UNIVERSALSDK
660 ARCH_RUN_32BIT
661 PYTHONFRAMEWORK
662 PYTHONFRAMEWORKIDENTIFIER
663 PYTHONFRAMEWORKDIR
664 PYTHONFRAMEWORKPREFIX
665 PYTHONFRAMEWORKINSTALLDIR
666 FRAMEWORKINSTALLFIRST
667 FRAMEWORKINSTALLLAST
668 FRAMEWORKALTINSTALLFIRST
669 FRAMEWORKALTINSTALLLAST
670 FRAMEWORKUNIXTOOLSPREFIX
671 MACHDEP
672 SGI_ABI
673 EXTRAPLATDIR
674 EXTRAMACHDEPPATH
675 CONFIGURE_MACOSX_DEPLOYMENT_TARGET
676 EXPORT_MACOSX_DEPLOYMENT_TARGET
678 CFLAGS
679 LDFLAGS
680 CPPFLAGS
681 ac_ct_CC
682 EXEEXT
683 OBJEXT
685 MAINCC
687 GREP
688 EGREP
689 BUILDEXEEXT
690 LIBRARY
691 LDLIBRARY
692 DLLLIBRARY
693 BLDLIBRARY
694 LDLIBRARYDIR
695 INSTSONAME
696 RUNSHARED
697 LINKCC
698 RANLIB
700 SVNVERSION
701 INSTALL_PROGRAM
702 INSTALL_SCRIPT
703 INSTALL_DATA
706 BASECFLAGS
707 UNIVERSAL_ARCH_FLAGS
708 OTHER_LIBTOOL_OPT
709 LIBTOOL_CRUFT
711 LDSHARED
712 BLDSHARED
713 CCSHARED
714 LINKFORSHARED
715 CFLAGSFORSHARED
716 SHLIBS
717 USE_SIGNAL_MODULE
718 SIGNAL_OBJS
719 USE_THREAD_MODULE
720 LDLAST
721 THREADOBJ
722 DLINCLDIR
723 DYNLOADFILE
724 MACHDEP_OBJS
725 TRUE
726 LIBOBJS
727 HAVE_GETHOSTBYNAME_R_6_ARG
728 HAVE_GETHOSTBYNAME_R_5_ARG
729 HAVE_GETHOSTBYNAME_R_3_ARG
730 HAVE_GETHOSTBYNAME_R
731 HAVE_GETHOSTBYNAME
732 LIBM
733 LIBC
734 UNICODE_OBJS
735 THREADHEADERS
736 SRCDIRS
737 LTLIBOBJS'
738 ac_subst_files=''
739 ac_precious_vars='build_alias
740 host_alias
741 target_alias
743 CFLAGS
744 LDFLAGS
745 LIBS
746 CPPFLAGS
747 CPP'
750 # Initialize some variables set by options.
751 ac_init_help=
752 ac_init_version=false
753 # The variables have the same names as the options, with
754 # dashes changed to underlines.
755 cache_file=/dev/null
756 exec_prefix=NONE
757 no_create=
758 no_recursion=
759 prefix=NONE
760 program_prefix=NONE
761 program_suffix=NONE
762 program_transform_name=s,x,x,
763 silent=
764 site=
765 srcdir=
766 verbose=
767 x_includes=NONE
768 x_libraries=NONE
770 # Installation directory options.
771 # These are left unexpanded so users can "make install exec_prefix=/foo"
772 # and all the variables that are supposed to be based on exec_prefix
773 # by default will actually change.
774 # Use braces instead of parens because sh, perl, etc. also accept them.
775 # (The list follows the same order as the GNU Coding Standards.)
776 bindir='${exec_prefix}/bin'
777 sbindir='${exec_prefix}/sbin'
778 libexecdir='${exec_prefix}/libexec'
779 datarootdir='${prefix}/share'
780 datadir='${datarootdir}'
781 sysconfdir='${prefix}/etc'
782 sharedstatedir='${prefix}/com'
783 localstatedir='${prefix}/var'
784 includedir='${prefix}/include'
785 oldincludedir='/usr/include'
786 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
787 infodir='${datarootdir}/info'
788 htmldir='${docdir}'
789 dvidir='${docdir}'
790 pdfdir='${docdir}'
791 psdir='${docdir}'
792 libdir='${exec_prefix}/lib'
793 localedir='${datarootdir}/locale'
794 mandir='${datarootdir}/man'
796 ac_prev=
797 ac_dashdash=
798 for ac_option
800 # If the previous option needs an argument, assign it.
801 if test -n "$ac_prev"; then
802 eval $ac_prev=\$ac_option
803 ac_prev=
804 continue
807 case $ac_option in
808 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
809 *) ac_optarg=yes ;;
810 esac
812 # Accept the important Cygnus configure options, so we can diagnose typos.
814 case $ac_dashdash$ac_option in
816 ac_dashdash=yes ;;
818 -bindir | --bindir | --bindi | --bind | --bin | --bi)
819 ac_prev=bindir ;;
820 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
821 bindir=$ac_optarg ;;
823 -build | --build | --buil | --bui | --bu)
824 ac_prev=build_alias ;;
825 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
826 build_alias=$ac_optarg ;;
828 -cache-file | --cache-file | --cache-fil | --cache-fi \
829 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
830 ac_prev=cache_file ;;
831 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
832 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
833 cache_file=$ac_optarg ;;
835 --config-cache | -C)
836 cache_file=config.cache ;;
838 -datadir | --datadir | --datadi | --datad)
839 ac_prev=datadir ;;
840 -datadir=* | --datadir=* | --datadi=* | --datad=*)
841 datadir=$ac_optarg ;;
843 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
844 | --dataroo | --dataro | --datar)
845 ac_prev=datarootdir ;;
846 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
847 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
848 datarootdir=$ac_optarg ;;
850 -disable-* | --disable-*)
851 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
852 # Reject names that are not valid shell variable names.
853 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
854 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
855 { (exit 1); exit 1; }; }
856 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
857 eval enable_$ac_feature=no ;;
859 -docdir | --docdir | --docdi | --doc | --do)
860 ac_prev=docdir ;;
861 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
862 docdir=$ac_optarg ;;
864 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
865 ac_prev=dvidir ;;
866 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
867 dvidir=$ac_optarg ;;
869 -enable-* | --enable-*)
870 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
871 # Reject names that are not valid shell variable names.
872 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
873 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
874 { (exit 1); exit 1; }; }
875 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
876 eval enable_$ac_feature=\$ac_optarg ;;
878 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
879 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
880 | --exec | --exe | --ex)
881 ac_prev=exec_prefix ;;
882 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
883 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
884 | --exec=* | --exe=* | --ex=*)
885 exec_prefix=$ac_optarg ;;
887 -gas | --gas | --ga | --g)
888 # Obsolete; use --with-gas.
889 with_gas=yes ;;
891 -help | --help | --hel | --he | -h)
892 ac_init_help=long ;;
893 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
894 ac_init_help=recursive ;;
895 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
896 ac_init_help=short ;;
898 -host | --host | --hos | --ho)
899 ac_prev=host_alias ;;
900 -host=* | --host=* | --hos=* | --ho=*)
901 host_alias=$ac_optarg ;;
903 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
904 ac_prev=htmldir ;;
905 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
906 | --ht=*)
907 htmldir=$ac_optarg ;;
909 -includedir | --includedir | --includedi | --included | --include \
910 | --includ | --inclu | --incl | --inc)
911 ac_prev=includedir ;;
912 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
913 | --includ=* | --inclu=* | --incl=* | --inc=*)
914 includedir=$ac_optarg ;;
916 -infodir | --infodir | --infodi | --infod | --info | --inf)
917 ac_prev=infodir ;;
918 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
919 infodir=$ac_optarg ;;
921 -libdir | --libdir | --libdi | --libd)
922 ac_prev=libdir ;;
923 -libdir=* | --libdir=* | --libdi=* | --libd=*)
924 libdir=$ac_optarg ;;
926 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
927 | --libexe | --libex | --libe)
928 ac_prev=libexecdir ;;
929 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
930 | --libexe=* | --libex=* | --libe=*)
931 libexecdir=$ac_optarg ;;
933 -localedir | --localedir | --localedi | --localed | --locale)
934 ac_prev=localedir ;;
935 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
936 localedir=$ac_optarg ;;
938 -localstatedir | --localstatedir | --localstatedi | --localstated \
939 | --localstate | --localstat | --localsta | --localst | --locals)
940 ac_prev=localstatedir ;;
941 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
942 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
943 localstatedir=$ac_optarg ;;
945 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
946 ac_prev=mandir ;;
947 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
948 mandir=$ac_optarg ;;
950 -nfp | --nfp | --nf)
951 # Obsolete; use --without-fp.
952 with_fp=no ;;
954 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
955 | --no-cr | --no-c | -n)
956 no_create=yes ;;
958 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
959 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
960 no_recursion=yes ;;
962 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
963 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
964 | --oldin | --oldi | --old | --ol | --o)
965 ac_prev=oldincludedir ;;
966 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
967 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
968 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
969 oldincludedir=$ac_optarg ;;
971 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
972 ac_prev=prefix ;;
973 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
974 prefix=$ac_optarg ;;
976 -program-prefix | --program-prefix | --program-prefi | --program-pref \
977 | --program-pre | --program-pr | --program-p)
978 ac_prev=program_prefix ;;
979 -program-prefix=* | --program-prefix=* | --program-prefi=* \
980 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
981 program_prefix=$ac_optarg ;;
983 -program-suffix | --program-suffix | --program-suffi | --program-suff \
984 | --program-suf | --program-su | --program-s)
985 ac_prev=program_suffix ;;
986 -program-suffix=* | --program-suffix=* | --program-suffi=* \
987 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
988 program_suffix=$ac_optarg ;;
990 -program-transform-name | --program-transform-name \
991 | --program-transform-nam | --program-transform-na \
992 | --program-transform-n | --program-transform- \
993 | --program-transform | --program-transfor \
994 | --program-transfo | --program-transf \
995 | --program-trans | --program-tran \
996 | --progr-tra | --program-tr | --program-t)
997 ac_prev=program_transform_name ;;
998 -program-transform-name=* | --program-transform-name=* \
999 | --program-transform-nam=* | --program-transform-na=* \
1000 | --program-transform-n=* | --program-transform-=* \
1001 | --program-transform=* | --program-transfor=* \
1002 | --program-transfo=* | --program-transf=* \
1003 | --program-trans=* | --program-tran=* \
1004 | --progr-tra=* | --program-tr=* | --program-t=*)
1005 program_transform_name=$ac_optarg ;;
1007 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1008 ac_prev=pdfdir ;;
1009 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1010 pdfdir=$ac_optarg ;;
1012 -psdir | --psdir | --psdi | --psd | --ps)
1013 ac_prev=psdir ;;
1014 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1015 psdir=$ac_optarg ;;
1017 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1018 | -silent | --silent | --silen | --sile | --sil)
1019 silent=yes ;;
1021 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1022 ac_prev=sbindir ;;
1023 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1024 | --sbi=* | --sb=*)
1025 sbindir=$ac_optarg ;;
1027 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1028 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1029 | --sharedst | --shareds | --shared | --share | --shar \
1030 | --sha | --sh)
1031 ac_prev=sharedstatedir ;;
1032 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1033 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1034 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1035 | --sha=* | --sh=*)
1036 sharedstatedir=$ac_optarg ;;
1038 -site | --site | --sit)
1039 ac_prev=site ;;
1040 -site=* | --site=* | --sit=*)
1041 site=$ac_optarg ;;
1043 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1044 ac_prev=srcdir ;;
1045 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1046 srcdir=$ac_optarg ;;
1048 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1049 | --syscon | --sysco | --sysc | --sys | --sy)
1050 ac_prev=sysconfdir ;;
1051 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1052 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1053 sysconfdir=$ac_optarg ;;
1055 -target | --target | --targe | --targ | --tar | --ta | --t)
1056 ac_prev=target_alias ;;
1057 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1058 target_alias=$ac_optarg ;;
1060 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1061 verbose=yes ;;
1063 -version | --version | --versio | --versi | --vers | -V)
1064 ac_init_version=: ;;
1066 -with-* | --with-*)
1067 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1068 # Reject names that are not valid shell variable names.
1069 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1070 { echo "$as_me: error: invalid package name: $ac_package" >&2
1071 { (exit 1); exit 1; }; }
1072 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1073 eval with_$ac_package=\$ac_optarg ;;
1075 -without-* | --without-*)
1076 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1077 # Reject names that are not valid shell variable names.
1078 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1079 { echo "$as_me: error: invalid package name: $ac_package" >&2
1080 { (exit 1); exit 1; }; }
1081 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1082 eval with_$ac_package=no ;;
1084 --x)
1085 # Obsolete; use --with-x.
1086 with_x=yes ;;
1088 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1089 | --x-incl | --x-inc | --x-in | --x-i)
1090 ac_prev=x_includes ;;
1091 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1092 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1093 x_includes=$ac_optarg ;;
1095 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1096 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1097 ac_prev=x_libraries ;;
1098 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1099 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1100 x_libraries=$ac_optarg ;;
1102 -*) { echo "$as_me: error: unrecognized option: $ac_option
1103 Try \`$0 --help' for more information." >&2
1104 { (exit 1); exit 1; }; }
1107 *=*)
1108 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1109 # Reject names that are not valid shell variable names.
1110 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1111 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1112 { (exit 1); exit 1; }; }
1113 eval $ac_envvar=\$ac_optarg
1114 export $ac_envvar ;;
1117 # FIXME: should be removed in autoconf 3.0.
1118 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1119 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1120 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1121 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1124 esac
1125 done
1127 if test -n "$ac_prev"; then
1128 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1129 { echo "$as_me: error: missing argument to $ac_option" >&2
1130 { (exit 1); exit 1; }; }
1133 # Be sure to have absolute directory names.
1134 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1135 datadir sysconfdir sharedstatedir localstatedir includedir \
1136 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1137 libdir localedir mandir
1139 eval ac_val=\$$ac_var
1140 case $ac_val in
1141 [\\/$]* | ?:[\\/]* ) continue;;
1142 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1143 esac
1144 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1145 { (exit 1); exit 1; }; }
1146 done
1148 # There might be people who depend on the old broken behavior: `$host'
1149 # used to hold the argument of --host etc.
1150 # FIXME: To remove some day.
1151 build=$build_alias
1152 host=$host_alias
1153 target=$target_alias
1155 # FIXME: To remove some day.
1156 if test "x$host_alias" != x; then
1157 if test "x$build_alias" = x; then
1158 cross_compiling=maybe
1159 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1160 If a cross compiler is detected then cross compile mode will be used." >&2
1161 elif test "x$build_alias" != "x$host_alias"; then
1162 cross_compiling=yes
1166 ac_tool_prefix=
1167 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1169 test "$silent" = yes && exec 6>/dev/null
1172 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1173 ac_ls_di=`ls -di .` &&
1174 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1175 { echo "$as_me: error: Working directory cannot be determined" >&2
1176 { (exit 1); exit 1; }; }
1177 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1178 { echo "$as_me: error: pwd does not report name of working directory" >&2
1179 { (exit 1); exit 1; }; }
1182 # Find the source files, if location was not specified.
1183 if test -z "$srcdir"; then
1184 ac_srcdir_defaulted=yes
1185 # Try the directory containing this script, then the parent directory.
1186 ac_confdir=`$as_dirname -- "$0" ||
1187 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1188 X"$0" : 'X\(//\)[^/]' \| \
1189 X"$0" : 'X\(//\)$' \| \
1190 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1191 echo X"$0" |
1192 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1193 s//\1/
1196 /^X\(\/\/\)[^/].*/{
1197 s//\1/
1200 /^X\(\/\/\)$/{
1201 s//\1/
1204 /^X\(\/\).*/{
1205 s//\1/
1208 s/.*/./; q'`
1209 srcdir=$ac_confdir
1210 if test ! -r "$srcdir/$ac_unique_file"; then
1211 srcdir=..
1213 else
1214 ac_srcdir_defaulted=no
1216 if test ! -r "$srcdir/$ac_unique_file"; then
1217 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1218 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1219 { (exit 1); exit 1; }; }
1221 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1222 ac_abs_confdir=`(
1223 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1224 { (exit 1); exit 1; }; }
1225 pwd)`
1226 # When building in place, set srcdir=.
1227 if test "$ac_abs_confdir" = "$ac_pwd"; then
1228 srcdir=.
1230 # Remove unnecessary trailing slashes from srcdir.
1231 # Double slashes in file names in object file debugging info
1232 # mess up M-x gdb in Emacs.
1233 case $srcdir in
1234 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1235 esac
1236 for ac_var in $ac_precious_vars; do
1237 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1238 eval ac_env_${ac_var}_value=\$${ac_var}
1239 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1240 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1241 done
1244 # Report the --help message.
1246 if test "$ac_init_help" = "long"; then
1247 # Omit some internal or obsolete options to make the list less imposing.
1248 # This message is too long to be a string in the A/UX 3.1 sh.
1249 cat <<_ACEOF
1250 \`configure' configures python 2.7 to adapt to many kinds of systems.
1252 Usage: $0 [OPTION]... [VAR=VALUE]...
1254 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1255 VAR=VALUE. See below for descriptions of some of the useful variables.
1257 Defaults for the options are specified in brackets.
1259 Configuration:
1260 -h, --help display this help and exit
1261 --help=short display options specific to this package
1262 --help=recursive display the short help of all the included packages
1263 -V, --version display version information and exit
1264 -q, --quiet, --silent do not print \`checking...' messages
1265 --cache-file=FILE cache test results in FILE [disabled]
1266 -C, --config-cache alias for \`--cache-file=config.cache'
1267 -n, --no-create do not create output files
1268 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1270 Installation directories:
1271 --prefix=PREFIX install architecture-independent files in PREFIX
1272 [$ac_default_prefix]
1273 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1274 [PREFIX]
1276 By default, \`make install' will install all the files in
1277 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1278 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1279 for instance \`--prefix=\$HOME'.
1281 For better control, use the options below.
1283 Fine tuning of the installation directories:
1284 --bindir=DIR user executables [EPREFIX/bin]
1285 --sbindir=DIR system admin executables [EPREFIX/sbin]
1286 --libexecdir=DIR program executables [EPREFIX/libexec]
1287 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1288 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1289 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1290 --libdir=DIR object code libraries [EPREFIX/lib]
1291 --includedir=DIR C header files [PREFIX/include]
1292 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1293 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1294 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1295 --infodir=DIR info documentation [DATAROOTDIR/info]
1296 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1297 --mandir=DIR man documentation [DATAROOTDIR/man]
1298 --docdir=DIR documentation root [DATAROOTDIR/doc/python]
1299 --htmldir=DIR html documentation [DOCDIR]
1300 --dvidir=DIR dvi documentation [DOCDIR]
1301 --pdfdir=DIR pdf documentation [DOCDIR]
1302 --psdir=DIR ps documentation [DOCDIR]
1303 _ACEOF
1305 cat <<\_ACEOF
1306 _ACEOF
1309 if test -n "$ac_init_help"; then
1310 case $ac_init_help in
1311 short | recursive ) echo "Configuration of python 2.7:";;
1312 esac
1313 cat <<\_ACEOF
1315 Optional Features:
1316 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1317 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1318 --enable-universalsdk[=SDKDIR]
1319 Build against Mac OS X 10.4u SDK (ppc/i386)
1320 --enable-framework[=INSTALLDIR]
1321 Build (MacOSX|Darwin) framework
1322 --enable-shared disable/enable building shared python library
1323 --enable-profiling enable C-level code profiling
1324 --enable-toolbox-glue disable/enable MacOSX glue code for extensions
1325 --enable-ipv6 Enable ipv6 (with ipv4) support
1326 --disable-ipv6 Disable ipv6 support
1327 --enable-big-digits[=BITS]
1328 use big digits for Python longs [BITS=30]
1329 --enable-unicode[=ucs[24]]
1330 Enable Unicode strings (default is yes)
1332 Optional Packages:
1333 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1334 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1335 --with-universal-archs=ARCH
1336 select architectures for universal build ("32-bit",
1337 "64-bit" or "all")
1338 --with-framework-name=FRAMEWORK
1339 specify an alternate name of the framework built
1340 with --enable-framework
1341 --without-gcc never use gcc
1342 --with-cxx-main=<compiler>
1343 compile main() and link python executable with C++
1344 compiler
1345 --with-suffix=.exe set executable suffix
1346 --with-pydebug build with Py_DEBUG defined
1347 --with-libs='lib1 ...' link against additional libs
1348 --with-system-ffi build _ctypes module using an installed ffi library
1349 --with-dbmliborder=db1:db2:...
1350 order to check db backends for dbm. Valid value is a
1351 colon separated string with the backend names
1352 `ndbm', `gdbm' and `bdb'.
1353 --with-signal-module disable/enable signal module
1354 --with-dec-threads use DEC Alpha/OSF1 thread-safe libraries
1355 --with(out)-threads[=DIRECTORY]
1356 disable/enable thread support
1357 --with(out)-thread[=DIRECTORY]
1358 deprecated; use --with(out)-threads
1359 --with-pth use GNU pth threading libraries
1360 --with(out)-doc-strings disable/enable documentation strings
1361 --with(out)-tsc enable/disable timestamp counter profile
1362 --with(out)-pymalloc disable/enable specialized mallocs
1363 --with-wctype-functions use wctype.h functions
1364 --with-fpectl enable SIGFPE catching
1365 --with-libm=STRING math library
1366 --with-libc=STRING C library
1368 Some influential environment variables:
1369 CC C compiler command
1370 CFLAGS C compiler flags
1371 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1372 nonstandard directory <lib dir>
1373 LIBS libraries to pass to the linker, e.g. -l<library>
1374 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1375 you have headers in a nonstandard directory <include dir>
1376 CPP C preprocessor
1378 Use these variables to override the choices made by `configure' or to help
1379 it to find libraries and programs with nonstandard names/locations.
1381 Report bugs to <http://www.python.org/python-bugs>.
1382 _ACEOF
1383 ac_status=$?
1386 if test "$ac_init_help" = "recursive"; then
1387 # If there are subdirs, report their specific --help.
1388 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1389 test -d "$ac_dir" || continue
1390 ac_builddir=.
1392 case "$ac_dir" in
1393 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1395 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1396 # A ".." for each directory in $ac_dir_suffix.
1397 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1398 case $ac_top_builddir_sub in
1399 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1400 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1401 esac ;;
1402 esac
1403 ac_abs_top_builddir=$ac_pwd
1404 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1405 # for backward compatibility:
1406 ac_top_builddir=$ac_top_build_prefix
1408 case $srcdir in
1409 .) # We are building in place.
1410 ac_srcdir=.
1411 ac_top_srcdir=$ac_top_builddir_sub
1412 ac_abs_top_srcdir=$ac_pwd ;;
1413 [\\/]* | ?:[\\/]* ) # Absolute name.
1414 ac_srcdir=$srcdir$ac_dir_suffix;
1415 ac_top_srcdir=$srcdir
1416 ac_abs_top_srcdir=$srcdir ;;
1417 *) # Relative name.
1418 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1419 ac_top_srcdir=$ac_top_build_prefix$srcdir
1420 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1421 esac
1422 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1424 cd "$ac_dir" || { ac_status=$?; continue; }
1425 # Check for guested configure.
1426 if test -f "$ac_srcdir/configure.gnu"; then
1427 echo &&
1428 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1429 elif test -f "$ac_srcdir/configure"; then
1430 echo &&
1431 $SHELL "$ac_srcdir/configure" --help=recursive
1432 else
1433 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1434 fi || ac_status=$?
1435 cd "$ac_pwd" || { ac_status=$?; break; }
1436 done
1439 test -n "$ac_init_help" && exit $ac_status
1440 if $ac_init_version; then
1441 cat <<\_ACEOF
1442 python configure 2.7
1443 generated by GNU Autoconf 2.61
1445 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1446 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1447 This configure script is free software; the Free Software Foundation
1448 gives unlimited permission to copy, distribute and modify it.
1449 _ACEOF
1450 exit
1452 cat >config.log <<_ACEOF
1453 This file contains any messages produced by compilers while
1454 running configure, to aid debugging if configure makes a mistake.
1456 It was created by python $as_me 2.7, which was
1457 generated by GNU Autoconf 2.61. Invocation command line was
1459 $ $0 $@
1461 _ACEOF
1462 exec 5>>config.log
1464 cat <<_ASUNAME
1465 ## --------- ##
1466 ## Platform. ##
1467 ## --------- ##
1469 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1470 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1471 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1472 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1473 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1475 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1476 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1478 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1479 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1480 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1481 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1482 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1483 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1484 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1486 _ASUNAME
1488 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1489 for as_dir in $PATH
1491 IFS=$as_save_IFS
1492 test -z "$as_dir" && as_dir=.
1493 echo "PATH: $as_dir"
1494 done
1495 IFS=$as_save_IFS
1497 } >&5
1499 cat >&5 <<_ACEOF
1502 ## ----------- ##
1503 ## Core tests. ##
1504 ## ----------- ##
1506 _ACEOF
1509 # Keep a trace of the command line.
1510 # Strip out --no-create and --no-recursion so they do not pile up.
1511 # Strip out --silent because we don't want to record it for future runs.
1512 # Also quote any args containing shell meta-characters.
1513 # Make two passes to allow for proper duplicate-argument suppression.
1514 ac_configure_args=
1515 ac_configure_args0=
1516 ac_configure_args1=
1517 ac_must_keep_next=false
1518 for ac_pass in 1 2
1520 for ac_arg
1522 case $ac_arg in
1523 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1524 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1525 | -silent | --silent | --silen | --sile | --sil)
1526 continue ;;
1527 *\'*)
1528 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1529 esac
1530 case $ac_pass in
1531 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1533 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1534 if test $ac_must_keep_next = true; then
1535 ac_must_keep_next=false # Got value, back to normal.
1536 else
1537 case $ac_arg in
1538 *=* | --config-cache | -C | -disable-* | --disable-* \
1539 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1540 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1541 | -with-* | --with-* | -without-* | --without-* | --x)
1542 case "$ac_configure_args0 " in
1543 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1544 esac
1546 -* ) ac_must_keep_next=true ;;
1547 esac
1549 ac_configure_args="$ac_configure_args '$ac_arg'"
1551 esac
1552 done
1553 done
1554 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1555 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1557 # When interrupted or exit'd, cleanup temporary files, and complete
1558 # config.log. We remove comments because anyway the quotes in there
1559 # would cause problems or look ugly.
1560 # WARNING: Use '\'' to represent an apostrophe within the trap.
1561 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1562 trap 'exit_status=$?
1563 # Save into config.log some information that might help in debugging.
1565 echo
1567 cat <<\_ASBOX
1568 ## ---------------- ##
1569 ## Cache variables. ##
1570 ## ---------------- ##
1571 _ASBOX
1572 echo
1573 # The following way of writing the cache mishandles newlines in values,
1575 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1576 eval ac_val=\$$ac_var
1577 case $ac_val in #(
1578 *${as_nl}*)
1579 case $ac_var in #(
1580 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1581 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1582 esac
1583 case $ac_var in #(
1584 _ | IFS | as_nl) ;; #(
1585 *) $as_unset $ac_var ;;
1586 esac ;;
1587 esac
1588 done
1589 (set) 2>&1 |
1590 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1591 *${as_nl}ac_space=\ *)
1592 sed -n \
1593 "s/'\''/'\''\\\\'\'''\''/g;
1594 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1595 ;; #(
1597 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1599 esac |
1600 sort
1602 echo
1604 cat <<\_ASBOX
1605 ## ----------------- ##
1606 ## Output variables. ##
1607 ## ----------------- ##
1608 _ASBOX
1609 echo
1610 for ac_var in $ac_subst_vars
1612 eval ac_val=\$$ac_var
1613 case $ac_val in
1614 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1615 esac
1616 echo "$ac_var='\''$ac_val'\''"
1617 done | sort
1618 echo
1620 if test -n "$ac_subst_files"; then
1621 cat <<\_ASBOX
1622 ## ------------------- ##
1623 ## File substitutions. ##
1624 ## ------------------- ##
1625 _ASBOX
1626 echo
1627 for ac_var in $ac_subst_files
1629 eval ac_val=\$$ac_var
1630 case $ac_val in
1631 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1632 esac
1633 echo "$ac_var='\''$ac_val'\''"
1634 done | sort
1635 echo
1638 if test -s confdefs.h; then
1639 cat <<\_ASBOX
1640 ## ----------- ##
1641 ## confdefs.h. ##
1642 ## ----------- ##
1643 _ASBOX
1644 echo
1645 cat confdefs.h
1646 echo
1648 test "$ac_signal" != 0 &&
1649 echo "$as_me: caught signal $ac_signal"
1650 echo "$as_me: exit $exit_status"
1651 } >&5
1652 rm -f core *.core core.conftest.* &&
1653 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1654 exit $exit_status
1656 for ac_signal in 1 2 13 15; do
1657 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1658 done
1659 ac_signal=0
1661 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1662 rm -f -r conftest* confdefs.h
1664 # Predefined preprocessor variables.
1666 cat >>confdefs.h <<_ACEOF
1667 #define PACKAGE_NAME "$PACKAGE_NAME"
1668 _ACEOF
1671 cat >>confdefs.h <<_ACEOF
1672 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1673 _ACEOF
1676 cat >>confdefs.h <<_ACEOF
1677 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1678 _ACEOF
1681 cat >>confdefs.h <<_ACEOF
1682 #define PACKAGE_STRING "$PACKAGE_STRING"
1683 _ACEOF
1686 cat >>confdefs.h <<_ACEOF
1687 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1688 _ACEOF
1691 # Let the site file select an alternate cache file if it wants to.
1692 # Prefer explicitly selected file to automatically selected ones.
1693 if test -n "$CONFIG_SITE"; then
1694 set x "$CONFIG_SITE"
1695 elif test "x$prefix" != xNONE; then
1696 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1697 else
1698 set x "$ac_default_prefix/share/config.site" \
1699 "$ac_default_prefix/etc/config.site"
1701 shift
1702 for ac_site_file
1704 if test -r "$ac_site_file"; then
1705 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1706 echo "$as_me: loading site script $ac_site_file" >&6;}
1707 sed 's/^/| /' "$ac_site_file" >&5
1708 . "$ac_site_file"
1710 done
1712 if test -r "$cache_file"; then
1713 # Some versions of bash will fail to source /dev/null (special
1714 # files actually), so we avoid doing that.
1715 if test -f "$cache_file"; then
1716 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1717 echo "$as_me: loading cache $cache_file" >&6;}
1718 case $cache_file in
1719 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1720 *) . "./$cache_file";;
1721 esac
1723 else
1724 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1725 echo "$as_me: creating cache $cache_file" >&6;}
1726 >$cache_file
1729 # Check that the precious variables saved in the cache have kept the same
1730 # value.
1731 ac_cache_corrupted=false
1732 for ac_var in $ac_precious_vars; do
1733 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1734 eval ac_new_set=\$ac_env_${ac_var}_set
1735 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1736 eval ac_new_val=\$ac_env_${ac_var}_value
1737 case $ac_old_set,$ac_new_set in
1738 set,)
1739 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1740 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1741 ac_cache_corrupted=: ;;
1742 ,set)
1743 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1744 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1745 ac_cache_corrupted=: ;;
1746 ,);;
1748 if test "x$ac_old_val" != "x$ac_new_val"; then
1749 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1750 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1751 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1752 echo "$as_me: former value: $ac_old_val" >&2;}
1753 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1754 echo "$as_me: current value: $ac_new_val" >&2;}
1755 ac_cache_corrupted=:
1756 fi;;
1757 esac
1758 # Pass precious variables to config.status.
1759 if test "$ac_new_set" = set; then
1760 case $ac_new_val in
1761 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1762 *) ac_arg=$ac_var=$ac_new_val ;;
1763 esac
1764 case " $ac_configure_args " in
1765 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1766 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1767 esac
1769 done
1770 if $ac_cache_corrupted; then
1771 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1772 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1773 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1774 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1775 { (exit 1); exit 1; }; }
1802 ac_ext=c
1803 ac_cpp='$CPP $CPPFLAGS'
1804 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1805 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1806 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1810 ac_config_headers="$ac_config_headers pyconfig.h"
1814 if test "$prefix" != "/"; then
1815 prefix=`echo "$prefix" | sed -e 's/\/$//g'`
1823 # We don't use PACKAGE_ variables, and they cause conflicts
1824 # with other autoconf-based packages that include Python.h
1825 grep -v 'define PACKAGE_' <confdefs.h >confdefs.h.new
1826 rm confdefs.h
1827 mv confdefs.h.new confdefs.h
1830 VERSION=2.7
1833 SOVERSION=1.0
1835 # The later defininition of _XOPEN_SOURCE disables certain features
1836 # on Linux, so we need _GNU_SOURCE to re-enable them (makedev, tm_zone).
1838 cat >>confdefs.h <<\_ACEOF
1839 #define _GNU_SOURCE 1
1840 _ACEOF
1843 # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables
1844 # certain features on NetBSD, so we need _NETBSD_SOURCE to re-enable
1845 # them.
1847 cat >>confdefs.h <<\_ACEOF
1848 #define _NETBSD_SOURCE 1
1849 _ACEOF
1852 # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables
1853 # certain features on FreeBSD, so we need __BSD_VISIBLE to re-enable
1854 # them.
1856 cat >>confdefs.h <<\_ACEOF
1857 #define __BSD_VISIBLE 1
1858 _ACEOF
1861 # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables
1862 # u_int on Irix 5.3. Defining _BSD_TYPES brings it back.
1864 cat >>confdefs.h <<\_ACEOF
1865 #define _BSD_TYPES 1
1866 _ACEOF
1869 # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables
1870 # certain features on Mac OS X, so we need _DARWIN_C_SOURCE to re-enable
1871 # them.
1873 cat >>confdefs.h <<\_ACEOF
1874 #define _DARWIN_C_SOURCE 1
1875 _ACEOF
1879 define_xopen_source=yes
1881 # Arguments passed to configure.
1883 CONFIG_ARGS="$ac_configure_args"
1885 # Check whether --enable-universalsdk was given.
1886 if test "${enable_universalsdk+set}" = set; then
1887 enableval=$enable_universalsdk;
1888 case $enableval in
1889 yes)
1890 enableval=/Developer/SDKs/MacOSX10.4u.sdk
1892 esac
1893 case $enableval in
1895 UNIVERSALSDK=
1896 enable_universalsdk=
1899 UNIVERSALSDK=$enableval
1901 esac
1903 else
1905 UNIVERSALSDK=
1906 enable_universalsdk=
1912 ARCH_RUN_32BIT=
1915 UNIVERSAL_ARCHS="32-bit"
1916 { echo "$as_me:$LINENO: checking for --with-universal-archs" >&5
1917 echo $ECHO_N "checking for --with-universal-archs... $ECHO_C" >&6; }
1919 # Check whether --with-universal-archs was given.
1920 if test "${with_universal_archs+set}" = set; then
1921 withval=$with_universal_archs;
1922 { echo "$as_me:$LINENO: result: $withval" >&5
1923 echo "${ECHO_T}$withval" >&6; }
1924 UNIVERSAL_ARCHS="$withval"
1926 else
1928 { echo "$as_me:$LINENO: result: 32-bit" >&5
1929 echo "${ECHO_T}32-bit" >&6; }
1937 # Check whether --with-framework-name was given.
1938 if test "${with_framework_name+set}" = set; then
1939 withval=$with_framework_name;
1940 PYTHONFRAMEWORK=${withval}
1941 PYTHONFRAMEWORKDIR=${withval}.framework
1942 PYTHONFRAMEWORKIDENTIFIER=org.python.`echo $withval | tr 'A-Z' 'a-z'`
1944 else
1946 PYTHONFRAMEWORK=Python
1947 PYTHONFRAMEWORKDIR=Python.framework
1948 PYTHONFRAMEWORKIDENTIFIER=org.python.python
1952 # Check whether --enable-framework was given.
1953 if test "${enable_framework+set}" = set; then
1954 enableval=$enable_framework;
1955 case $enableval in
1956 yes)
1957 enableval=/Library/Frameworks
1958 esac
1959 case $enableval in
1961 PYTHONFRAMEWORK=
1962 PYTHONFRAMEWORKDIR=no-framework
1963 PYTHONFRAMEWORKPREFIX=
1964 PYTHONFRAMEWORKINSTALLDIR=
1965 FRAMEWORKINSTALLFIRST=
1966 FRAMEWORKINSTALLLAST=
1967 FRAMEWORKALTINSTALLFIRST=
1968 FRAMEWORKALTINSTALLLAST=
1969 if test "x${prefix}" = "xNONE"; then
1970 FRAMEWORKUNIXTOOLSPREFIX="${ac_default_prefix}"
1971 else
1972 FRAMEWORKUNIXTOOLSPREFIX="${prefix}"
1974 enable_framework=
1977 PYTHONFRAMEWORKPREFIX=$enableval
1978 PYTHONFRAMEWORKINSTALLDIR=$PYTHONFRAMEWORKPREFIX/$PYTHONFRAMEWORKDIR
1979 FRAMEWORKINSTALLFIRST="frameworkinstallstructure"
1980 FRAMEWORKALTINSTALLFIRST="frameworkinstallstructure bininstall maninstall"
1981 if test "$UNIVERSAL_ARCHS" = "all"
1982 then
1983 FRAMEWORKINSTALLLAST="frameworkinstallmaclib frameworkinstallapps4way frameworkinstallunixtools4way"
1984 FRAMEWORKALTINSTALLLAST="frameworkinstallmaclib frameworkinstallapps4way frameworkaltinstallunixtools4way"
1985 else
1986 FRAMEWORKINSTALLLAST="frameworkinstallmaclib frameworkinstallapps frameworkinstallunixtools"
1987 FRAMEWORKALTINSTALLLAST="frameworkinstallmaclib frameworkinstallapps frameworkaltinstallunixtools"
1990 if test "x${prefix}" = "xNONE" ; then
1991 FRAMEWORKUNIXTOOLSPREFIX="${ac_default_prefix}"
1992 else
1993 FRAMEWORKUNIXTOOLSPREFIX="${prefix}"
1995 prefix=$PYTHONFRAMEWORKINSTALLDIR/Versions/$VERSION
1997 # Add files for Mac specific code to the list of output
1998 # files:
1999 ac_config_files="$ac_config_files Mac/Makefile"
2001 ac_config_files="$ac_config_files Mac/PythonLauncher/Makefile"
2003 ac_config_files="$ac_config_files Mac/IDLE/Makefile"
2005 ac_config_files="$ac_config_files Mac/Resources/framework/Info.plist"
2007 ac_config_files="$ac_config_files Mac/Resources/app/Info.plist"
2009 esac
2011 else
2013 PYTHONFRAMEWORK=
2014 PYTHONFRAMEWORKDIR=no-framework
2015 PYTHONFRAMEWORKPREFIX=
2016 PYTHONFRAMEWORKINSTALLDIR=
2017 FRAMEWORKINSTALLFIRST=
2018 FRAMEWORKINSTALLLAST=
2019 FRAMEWORKALTINSTALLFIRST=
2020 FRAMEWORKALTINSTALLLAST=
2021 if test "x${prefix}" = "xNONE" ; then
2022 FRAMEWORKUNIXTOOLSPREFIX="${ac_default_prefix}"
2023 else
2024 FRAMEWORKUNIXTOOLSPREFIX="${prefix}"
2026 enable_framework=
2028 if test "$UNIVERSAL_ARCHS" = "all"
2029 then
2030 FRAMEWORKINSTALLLAST=update4wayuniversal
2031 FRAMEWORKALTINSTALLLAST=update4wayuniversal
2047 ##AC_ARG_WITH(dyld,
2048 ## AC_HELP_STRING(--with-dyld,
2049 ## Use (OpenStep|Rhapsody) dynamic linker))
2051 # Set name for machine-dependent library files
2053 { echo "$as_me:$LINENO: checking MACHDEP" >&5
2054 echo $ECHO_N "checking MACHDEP... $ECHO_C" >&6; }
2055 if test -z "$MACHDEP"
2056 then
2057 ac_sys_system=`uname -s`
2058 if test "$ac_sys_system" = "AIX" -o "$ac_sys_system" = "Monterey64" \
2059 -o "$ac_sys_system" = "UnixWare" -o "$ac_sys_system" = "OpenUNIX"; then
2060 ac_sys_release=`uname -v`
2061 else
2062 ac_sys_release=`uname -r`
2064 ac_md_system=`echo $ac_sys_system |
2065 tr -d '/ ' | tr '[A-Z]' '[a-z]'`
2066 ac_md_release=`echo $ac_sys_release |
2067 tr -d '/ ' | sed 's/^[A-Z]\.//' | sed 's/\..*//'`
2068 MACHDEP="$ac_md_system$ac_md_release"
2070 case $MACHDEP in
2071 cygwin*) MACHDEP="cygwin";;
2072 darwin*) MACHDEP="darwin";;
2073 atheos*) MACHDEP="atheos";;
2074 irix646) MACHDEP="irix6";;
2075 '') MACHDEP="unknown";;
2076 esac
2079 # Some systems cannot stand _XOPEN_SOURCE being defined at all; they
2080 # disable features if it is defined, without any means to access these
2081 # features as extensions. For these systems, we skip the definition of
2082 # _XOPEN_SOURCE. Before adding a system to the list to gain access to
2083 # some feature, make sure there is no alternative way to access this
2084 # feature. Also, when using wildcards, make sure you have verified the
2085 # need for not defining _XOPEN_SOURCE on all systems matching the
2086 # wildcard, and that the wildcard does not include future systems
2087 # (which may remove their limitations).
2088 case $ac_sys_system/$ac_sys_release in
2089 # On OpenBSD, select(2) is not available if _XOPEN_SOURCE is defined,
2090 # even though select is a POSIX function. Reported by J. Ribbens.
2091 # Reconfirmed for OpenBSD 3.3 by Zachary Hamm, for 3.4 by Jason Ish.
2092 OpenBSD/2.* | OpenBSD/3.[0123456789] | OpenBSD/4.[0123])
2093 define_xopen_source=no
2094 # OpenBSD undoes our definition of __BSD_VISIBLE if _XOPEN_SOURCE is
2095 # also defined. This can be overridden by defining _BSD_SOURCE
2096 # As this has a different meaning on Linux, only define it on OpenBSD
2098 cat >>confdefs.h <<\_ACEOF
2099 #define _BSD_SOURCE 1
2100 _ACEOF
2103 # Defining _XOPEN_SOURCE on NetBSD version prior to the introduction of
2104 # _NETBSD_SOURCE disables certain features (eg. setgroups). Reported by
2105 # Marc Recht
2106 NetBSD/1.5 | NetBSD/1.5.* | NetBSD/1.6 | NetBSD/1.6.* | NetBSD/1.6[A-S])
2107 define_xopen_source=no;;
2108 # On Solaris 2.6, sys/wait.h is inconsistent in the usage
2109 # of union __?sigval. Reported by Stuart Bishop.
2110 SunOS/5.6)
2111 define_xopen_source=no;;
2112 # On UnixWare 7, u_long is never defined with _XOPEN_SOURCE,
2113 # but used in /usr/include/netinet/tcp.h. Reported by Tim Rice.
2114 # Reconfirmed for 7.1.4 by Martin v. Loewis.
2115 OpenUNIX/8.0.0| UnixWare/7.1.[0-4])
2116 define_xopen_source=no;;
2117 # On OpenServer 5, u_short is never defined with _XOPEN_SOURCE,
2118 # but used in struct sockaddr.sa_family. Reported by Tim Rice.
2119 SCO_SV/3.2)
2120 define_xopen_source=no;;
2121 # On FreeBSD 4, the math functions C89 does not cover are never defined
2122 # with _XOPEN_SOURCE and __BSD_VISIBLE does not re-enable them.
2123 FreeBSD/4.*)
2124 define_xopen_source=no;;
2125 # On MacOS X 10.2, a bug in ncurses.h means that it craps out if
2126 # _XOPEN_EXTENDED_SOURCE is defined. Apparently, this is fixed in 10.3, which
2127 # identifies itself as Darwin/7.*
2128 # On Mac OS X 10.4, defining _POSIX_C_SOURCE or _XOPEN_SOURCE
2129 # disables platform specific features beyond repair.
2130 # On Mac OS X 10.3, defining _POSIX_C_SOURCE or _XOPEN_SOURCE
2131 # has no effect, don't bother defining them
2132 Darwin/[6789].*)
2133 define_xopen_source=no;;
2134 # On AIX 4 and 5.1, mbstate_t is defined only when _XOPEN_SOURCE == 500 but
2135 # used in wcsnrtombs() and mbsnrtowcs() even if _XOPEN_SOURCE is not defined
2136 # or has another value. By not (re)defining it, the defaults come in place.
2137 AIX/4)
2138 define_xopen_source=no;;
2139 AIX/5)
2140 if test `uname -r` -eq 1; then
2141 define_xopen_source=no
2144 # On QNX 6.3.2, defining _XOPEN_SOURCE prevents netdb.h from
2145 # defining NI_NUMERICHOST.
2146 QNX/6.3.2)
2147 define_xopen_source=no
2150 esac
2152 if test $define_xopen_source = yes
2153 then
2154 # On Solaris w/ g++ it appears that _XOPEN_SOURCE has to be
2155 # defined precisely as g++ defines it
2156 # Furthermore, on Solaris 10, XPG6 requires the use of a C99
2157 # compiler
2158 case $ac_sys_system/$ac_sys_release in
2159 SunOS/5.8|SunOS/5.9|SunOS/5.10)
2161 cat >>confdefs.h <<\_ACEOF
2162 #define _XOPEN_SOURCE 500
2163 _ACEOF
2168 cat >>confdefs.h <<\_ACEOF
2169 #define _XOPEN_SOURCE 600
2170 _ACEOF
2173 esac
2175 # On Tru64 Unix 4.0F, defining _XOPEN_SOURCE also requires
2176 # definition of _XOPEN_SOURCE_EXTENDED and _POSIX_C_SOURCE, or else
2177 # several APIs are not declared. Since this is also needed in some
2178 # cases for HP-UX, we define it globally.
2179 # except for Solaris 10, where it must not be defined,
2180 # as it implies XPG4.2
2181 case $ac_sys_system/$ac_sys_release in
2182 SunOS/5.10)
2186 cat >>confdefs.h <<\_ACEOF
2187 #define _XOPEN_SOURCE_EXTENDED 1
2188 _ACEOF
2191 esac
2194 cat >>confdefs.h <<\_ACEOF
2195 #define _POSIX_C_SOURCE 200112L
2196 _ACEOF
2202 # SGI compilers allow the specification of the both the ABI and the
2203 # ISA on the command line. Depending on the values of these switches,
2204 # different and often incompatable code will be generated.
2206 # The SGI_ABI variable can be used to modify the CC and LDFLAGS and
2207 # thus supply support for various ABI/ISA combinations. The MACHDEP
2208 # variable is also adjusted.
2211 if test ! -z "$SGI_ABI"
2212 then
2213 CC="cc $SGI_ABI"
2214 LDFLAGS="$SGI_ABI $LDFLAGS"
2215 MACHDEP=`echo "${MACHDEP}${SGI_ABI}" | sed 's/ *//g'`
2217 { echo "$as_me:$LINENO: result: $MACHDEP" >&5
2218 echo "${ECHO_T}$MACHDEP" >&6; }
2220 # And add extra plat-mac for darwin
2223 { echo "$as_me:$LINENO: checking EXTRAPLATDIR" >&5
2224 echo $ECHO_N "checking EXTRAPLATDIR... $ECHO_C" >&6; }
2225 if test -z "$EXTRAPLATDIR"
2226 then
2227 case $MACHDEP in
2228 darwin)
2229 EXTRAPLATDIR="\$(PLATMACDIRS)"
2230 EXTRAMACHDEPPATH="\$(PLATMACPATH)"
2233 EXTRAPLATDIR=""
2234 EXTRAMACHDEPPATH=""
2236 esac
2238 { echo "$as_me:$LINENO: result: $EXTRAPLATDIR" >&5
2239 echo "${ECHO_T}$EXTRAPLATDIR" >&6; }
2241 # Record the configure-time value of MACOSX_DEPLOYMENT_TARGET,
2242 # it may influence the way we can build extensions, so distutils
2243 # needs to check it
2246 CONFIGURE_MACOSX_DEPLOYMENT_TARGET=
2247 EXPORT_MACOSX_DEPLOYMENT_TARGET='#'
2249 { echo "$as_me:$LINENO: checking machine type as reported by uname -m" >&5
2250 echo $ECHO_N "checking machine type as reported by uname -m... $ECHO_C" >&6; }
2251 ac_sys_machine=`uname -m`
2252 { echo "$as_me:$LINENO: result: $ac_sys_machine" >&5
2253 echo "${ECHO_T}$ac_sys_machine" >&6; }
2255 # checks for alternative programs
2257 # compiler flags are generated in two sets, BASECFLAGS and OPT. OPT is just
2258 # for debug/optimization stuff. BASECFLAGS is for flags that are required
2259 # just to get things to compile and link. Users are free to override OPT
2260 # when running configure or make. The build should not break if they do.
2261 # BASECFLAGS should generally not be messed with, however.
2263 # XXX shouldn't some/most/all of this code be merged with the stuff later
2264 # on that fiddles with OPT and BASECFLAGS?
2265 { echo "$as_me:$LINENO: checking for --without-gcc" >&5
2266 echo $ECHO_N "checking for --without-gcc... $ECHO_C" >&6; }
2268 # Check whether --with-gcc was given.
2269 if test "${with_gcc+set}" = set; then
2270 withval=$with_gcc;
2271 case $withval in
2272 no) CC=${CC:-cc}
2273 without_gcc=yes;;
2274 yes) CC=gcc
2275 without_gcc=no;;
2276 *) CC=$withval
2277 without_gcc=$withval;;
2278 esac
2279 else
2281 case $ac_sys_system in
2282 AIX*) CC=cc_r
2283 without_gcc=;;
2284 BeOS*)
2285 case $BE_HOST_CPU in
2286 ppc)
2287 CC=mwcc
2288 without_gcc=yes
2289 BASECFLAGS="$BASECFLAGS -export pragma"
2290 OPT="$OPT -O"
2291 LDFLAGS="$LDFLAGS -nodup"
2293 x86)
2294 CC=gcc
2295 without_gcc=no
2296 OPT="$OPT -O"
2299 { { echo "$as_me:$LINENO: error: Unknown BeOS platform \"$BE_HOST_CPU\"" >&5
2300 echo "$as_me: error: Unknown BeOS platform \"$BE_HOST_CPU\"" >&2;}
2301 { (exit 1); exit 1; }; }
2303 esac
2304 AR="\$(srcdir)/Modules/ar_beos"
2305 RANLIB=:
2307 Monterey*)
2308 RANLIB=:
2309 without_gcc=;;
2310 *) without_gcc=no;;
2311 esac
2314 { echo "$as_me:$LINENO: result: $without_gcc" >&5
2315 echo "${ECHO_T}$without_gcc" >&6; }
2317 # If the user switches compilers, we can't believe the cache
2318 if test ! -z "$ac_cv_prog_CC" -a ! -z "$CC" -a "$CC" != "$ac_cv_prog_CC"
2319 then
2320 { { echo "$as_me:$LINENO: error: cached CC is different -- throw away $cache_file
2321 (it is also a good idea to do 'make clean' before compiling)" >&5
2322 echo "$as_me: error: cached CC is different -- throw away $cache_file
2323 (it is also a good idea to do 'make clean' before compiling)" >&2;}
2324 { (exit 1); exit 1; }; }
2327 ac_ext=c
2328 ac_cpp='$CPP $CPPFLAGS'
2329 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2330 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2331 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2332 if test -n "$ac_tool_prefix"; then
2333 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2334 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2335 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2336 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2337 if test "${ac_cv_prog_CC+set}" = set; then
2338 echo $ECHO_N "(cached) $ECHO_C" >&6
2339 else
2340 if test -n "$CC"; then
2341 ac_cv_prog_CC="$CC" # Let the user override the test.
2342 else
2343 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2344 for as_dir in $PATH
2346 IFS=$as_save_IFS
2347 test -z "$as_dir" && as_dir=.
2348 for ac_exec_ext in '' $ac_executable_extensions; do
2349 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2350 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2351 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2352 break 2
2354 done
2355 done
2356 IFS=$as_save_IFS
2360 CC=$ac_cv_prog_CC
2361 if test -n "$CC"; then
2362 { echo "$as_me:$LINENO: result: $CC" >&5
2363 echo "${ECHO_T}$CC" >&6; }
2364 else
2365 { echo "$as_me:$LINENO: result: no" >&5
2366 echo "${ECHO_T}no" >&6; }
2371 if test -z "$ac_cv_prog_CC"; then
2372 ac_ct_CC=$CC
2373 # Extract the first word of "gcc", so it can be a program name with args.
2374 set dummy gcc; ac_word=$2
2375 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2376 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2377 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2378 echo $ECHO_N "(cached) $ECHO_C" >&6
2379 else
2380 if test -n "$ac_ct_CC"; then
2381 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2382 else
2383 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2384 for as_dir in $PATH
2386 IFS=$as_save_IFS
2387 test -z "$as_dir" && as_dir=.
2388 for ac_exec_ext in '' $ac_executable_extensions; do
2389 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2390 ac_cv_prog_ac_ct_CC="gcc"
2391 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2392 break 2
2394 done
2395 done
2396 IFS=$as_save_IFS
2400 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2401 if test -n "$ac_ct_CC"; then
2402 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2403 echo "${ECHO_T}$ac_ct_CC" >&6; }
2404 else
2405 { echo "$as_me:$LINENO: result: no" >&5
2406 echo "${ECHO_T}no" >&6; }
2409 if test "x$ac_ct_CC" = x; then
2410 CC=""
2411 else
2412 case $cross_compiling:$ac_tool_warned in
2413 yes:)
2414 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2415 whose name does not start with the host triplet. If you think this
2416 configuration is useful to you, please write to autoconf@gnu.org." >&5
2417 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2418 whose name does not start with the host triplet. If you think this
2419 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2420 ac_tool_warned=yes ;;
2421 esac
2422 CC=$ac_ct_CC
2424 else
2425 CC="$ac_cv_prog_CC"
2428 if test -z "$CC"; then
2429 if test -n "$ac_tool_prefix"; then
2430 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2431 set dummy ${ac_tool_prefix}cc; ac_word=$2
2432 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2433 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2434 if test "${ac_cv_prog_CC+set}" = set; then
2435 echo $ECHO_N "(cached) $ECHO_C" >&6
2436 else
2437 if test -n "$CC"; then
2438 ac_cv_prog_CC="$CC" # Let the user override the test.
2439 else
2440 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2441 for as_dir in $PATH
2443 IFS=$as_save_IFS
2444 test -z "$as_dir" && as_dir=.
2445 for ac_exec_ext in '' $ac_executable_extensions; do
2446 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2447 ac_cv_prog_CC="${ac_tool_prefix}cc"
2448 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2449 break 2
2451 done
2452 done
2453 IFS=$as_save_IFS
2457 CC=$ac_cv_prog_CC
2458 if test -n "$CC"; then
2459 { echo "$as_me:$LINENO: result: $CC" >&5
2460 echo "${ECHO_T}$CC" >&6; }
2461 else
2462 { echo "$as_me:$LINENO: result: no" >&5
2463 echo "${ECHO_T}no" >&6; }
2469 if test -z "$CC"; then
2470 # Extract the first word of "cc", so it can be a program name with args.
2471 set dummy cc; ac_word=$2
2472 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2473 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2474 if test "${ac_cv_prog_CC+set}" = set; then
2475 echo $ECHO_N "(cached) $ECHO_C" >&6
2476 else
2477 if test -n "$CC"; then
2478 ac_cv_prog_CC="$CC" # Let the user override the test.
2479 else
2480 ac_prog_rejected=no
2481 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2482 for as_dir in $PATH
2484 IFS=$as_save_IFS
2485 test -z "$as_dir" && as_dir=.
2486 for ac_exec_ext in '' $ac_executable_extensions; do
2487 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2488 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2489 ac_prog_rejected=yes
2490 continue
2492 ac_cv_prog_CC="cc"
2493 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2494 break 2
2496 done
2497 done
2498 IFS=$as_save_IFS
2500 if test $ac_prog_rejected = yes; then
2501 # We found a bogon in the path, so make sure we never use it.
2502 set dummy $ac_cv_prog_CC
2503 shift
2504 if test $# != 0; then
2505 # We chose a different compiler from the bogus one.
2506 # However, it has the same basename, so the bogon will be chosen
2507 # first if we set CC to just the basename; use the full file name.
2508 shift
2509 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2514 CC=$ac_cv_prog_CC
2515 if test -n "$CC"; then
2516 { echo "$as_me:$LINENO: result: $CC" >&5
2517 echo "${ECHO_T}$CC" >&6; }
2518 else
2519 { echo "$as_me:$LINENO: result: no" >&5
2520 echo "${ECHO_T}no" >&6; }
2525 if test -z "$CC"; then
2526 if test -n "$ac_tool_prefix"; then
2527 for ac_prog in cl.exe
2529 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2530 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2531 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2532 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2533 if test "${ac_cv_prog_CC+set}" = set; then
2534 echo $ECHO_N "(cached) $ECHO_C" >&6
2535 else
2536 if test -n "$CC"; then
2537 ac_cv_prog_CC="$CC" # Let the user override the test.
2538 else
2539 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2540 for as_dir in $PATH
2542 IFS=$as_save_IFS
2543 test -z "$as_dir" && as_dir=.
2544 for ac_exec_ext in '' $ac_executable_extensions; do
2545 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2546 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2547 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2548 break 2
2550 done
2551 done
2552 IFS=$as_save_IFS
2556 CC=$ac_cv_prog_CC
2557 if test -n "$CC"; then
2558 { echo "$as_me:$LINENO: result: $CC" >&5
2559 echo "${ECHO_T}$CC" >&6; }
2560 else
2561 { echo "$as_me:$LINENO: result: no" >&5
2562 echo "${ECHO_T}no" >&6; }
2566 test -n "$CC" && break
2567 done
2569 if test -z "$CC"; then
2570 ac_ct_CC=$CC
2571 for ac_prog in cl.exe
2573 # Extract the first word of "$ac_prog", so it can be a program name with args.
2574 set dummy $ac_prog; ac_word=$2
2575 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2576 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2577 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2578 echo $ECHO_N "(cached) $ECHO_C" >&6
2579 else
2580 if test -n "$ac_ct_CC"; then
2581 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2582 else
2583 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2584 for as_dir in $PATH
2586 IFS=$as_save_IFS
2587 test -z "$as_dir" && as_dir=.
2588 for ac_exec_ext in '' $ac_executable_extensions; do
2589 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2590 ac_cv_prog_ac_ct_CC="$ac_prog"
2591 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2592 break 2
2594 done
2595 done
2596 IFS=$as_save_IFS
2600 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2601 if test -n "$ac_ct_CC"; then
2602 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2603 echo "${ECHO_T}$ac_ct_CC" >&6; }
2604 else
2605 { echo "$as_me:$LINENO: result: no" >&5
2606 echo "${ECHO_T}no" >&6; }
2610 test -n "$ac_ct_CC" && break
2611 done
2613 if test "x$ac_ct_CC" = x; then
2614 CC=""
2615 else
2616 case $cross_compiling:$ac_tool_warned in
2617 yes:)
2618 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2619 whose name does not start with the host triplet. If you think this
2620 configuration is useful to you, please write to autoconf@gnu.org." >&5
2621 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2622 whose name does not start with the host triplet. If you think this
2623 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2624 ac_tool_warned=yes ;;
2625 esac
2626 CC=$ac_ct_CC
2633 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2634 See \`config.log' for more details." >&5
2635 echo "$as_me: error: no acceptable C compiler found in \$PATH
2636 See \`config.log' for more details." >&2;}
2637 { (exit 1); exit 1; }; }
2639 # Provide some information about the compiler.
2640 echo "$as_me:$LINENO: checking for C compiler version" >&5
2641 ac_compiler=`set X $ac_compile; echo $2`
2642 { (ac_try="$ac_compiler --version >&5"
2643 case "(($ac_try" in
2644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2645 *) ac_try_echo=$ac_try;;
2646 esac
2647 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2648 (eval "$ac_compiler --version >&5") 2>&5
2649 ac_status=$?
2650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2651 (exit $ac_status); }
2652 { (ac_try="$ac_compiler -v >&5"
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_compiler -v >&5") 2>&5
2659 ac_status=$?
2660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2661 (exit $ac_status); }
2662 { (ac_try="$ac_compiler -V >&5"
2663 case "(($ac_try" in
2664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2665 *) ac_try_echo=$ac_try;;
2666 esac
2667 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2668 (eval "$ac_compiler -V >&5") 2>&5
2669 ac_status=$?
2670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2671 (exit $ac_status); }
2673 cat >conftest.$ac_ext <<_ACEOF
2674 /* confdefs.h. */
2675 _ACEOF
2676 cat confdefs.h >>conftest.$ac_ext
2677 cat >>conftest.$ac_ext <<_ACEOF
2678 /* end confdefs.h. */
2681 main ()
2685 return 0;
2687 _ACEOF
2688 ac_clean_files_save=$ac_clean_files
2689 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2690 # Try to create an executable without -o first, disregard a.out.
2691 # It will help us diagnose broken compilers, and finding out an intuition
2692 # of exeext.
2693 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2694 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2695 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2697 # List of possible output files, starting from the most likely.
2698 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2699 # only as a last resort. b.out is created by i960 compilers.
2700 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2702 # The IRIX 6 linker writes into existing files which may not be
2703 # executable, retaining their permissions. Remove them first so a
2704 # subsequent execution test works.
2705 ac_rmfiles=
2706 for ac_file in $ac_files
2708 case $ac_file in
2709 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2710 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2711 esac
2712 done
2713 rm -f $ac_rmfiles
2715 if { (ac_try="$ac_link_default"
2716 case "(($ac_try" in
2717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2718 *) ac_try_echo=$ac_try;;
2719 esac
2720 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2721 (eval "$ac_link_default") 2>&5
2722 ac_status=$?
2723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2724 (exit $ac_status); }; then
2725 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2726 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2727 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2728 # so that the user can short-circuit this test for compilers unknown to
2729 # Autoconf.
2730 for ac_file in $ac_files ''
2732 test -f "$ac_file" || continue
2733 case $ac_file in
2734 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2736 [ab].out )
2737 # We found the default executable, but exeext='' is most
2738 # certainly right.
2739 break;;
2740 *.* )
2741 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2742 then :; else
2743 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2745 # We set ac_cv_exeext here because the later test for it is not
2746 # safe: cross compilers may not add the suffix if given an `-o'
2747 # argument, so we may need to know it at that point already.
2748 # Even if this section looks crufty: it has the advantage of
2749 # actually working.
2750 break;;
2752 break;;
2753 esac
2754 done
2755 test "$ac_cv_exeext" = no && ac_cv_exeext=
2757 else
2758 ac_file=''
2761 { echo "$as_me:$LINENO: result: $ac_file" >&5
2762 echo "${ECHO_T}$ac_file" >&6; }
2763 if test -z "$ac_file"; then
2764 echo "$as_me: failed program was:" >&5
2765 sed 's/^/| /' conftest.$ac_ext >&5
2767 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2768 See \`config.log' for more details." >&5
2769 echo "$as_me: error: C compiler cannot create executables
2770 See \`config.log' for more details." >&2;}
2771 { (exit 77); exit 77; }; }
2774 ac_exeext=$ac_cv_exeext
2776 # Check that the compiler produces executables we can run. If not, either
2777 # the compiler is broken, or we cross compile.
2778 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2779 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2780 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2781 # If not cross compiling, check that we can run a simple program.
2782 if test "$cross_compiling" != yes; then
2783 if { ac_try='./$ac_file'
2784 { (case "(($ac_try" in
2785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2786 *) ac_try_echo=$ac_try;;
2787 esac
2788 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2789 (eval "$ac_try") 2>&5
2790 ac_status=$?
2791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2792 (exit $ac_status); }; }; then
2793 cross_compiling=no
2794 else
2795 if test "$cross_compiling" = maybe; then
2796 cross_compiling=yes
2797 else
2798 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2799 If you meant to cross compile, use \`--host'.
2800 See \`config.log' for more details." >&5
2801 echo "$as_me: error: cannot run C compiled programs.
2802 If you meant to cross compile, use \`--host'.
2803 See \`config.log' for more details." >&2;}
2804 { (exit 1); exit 1; }; }
2808 { echo "$as_me:$LINENO: result: yes" >&5
2809 echo "${ECHO_T}yes" >&6; }
2811 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2812 ac_clean_files=$ac_clean_files_save
2813 # Check that the compiler produces executables we can run. If not, either
2814 # the compiler is broken, or we cross compile.
2815 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2816 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2817 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2818 echo "${ECHO_T}$cross_compiling" >&6; }
2820 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2821 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2822 if { (ac_try="$ac_link"
2823 case "(($ac_try" in
2824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2825 *) ac_try_echo=$ac_try;;
2826 esac
2827 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2828 (eval "$ac_link") 2>&5
2829 ac_status=$?
2830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2831 (exit $ac_status); }; then
2832 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2833 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2834 # work properly (i.e., refer to `conftest.exe'), while it won't with
2835 # `rm'.
2836 for ac_file in conftest.exe conftest conftest.*; do
2837 test -f "$ac_file" || continue
2838 case $ac_file in
2839 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2840 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2841 break;;
2842 * ) break;;
2843 esac
2844 done
2845 else
2846 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2847 See \`config.log' for more details." >&5
2848 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2849 See \`config.log' for more details." >&2;}
2850 { (exit 1); exit 1; }; }
2853 rm -f conftest$ac_cv_exeext
2854 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2855 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2857 rm -f conftest.$ac_ext
2858 EXEEXT=$ac_cv_exeext
2859 ac_exeext=$EXEEXT
2860 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2861 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2862 if test "${ac_cv_objext+set}" = set; then
2863 echo $ECHO_N "(cached) $ECHO_C" >&6
2864 else
2865 cat >conftest.$ac_ext <<_ACEOF
2866 /* confdefs.h. */
2867 _ACEOF
2868 cat confdefs.h >>conftest.$ac_ext
2869 cat >>conftest.$ac_ext <<_ACEOF
2870 /* end confdefs.h. */
2873 main ()
2877 return 0;
2879 _ACEOF
2880 rm -f conftest.o conftest.obj
2881 if { (ac_try="$ac_compile"
2882 case "(($ac_try" in
2883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2884 *) ac_try_echo=$ac_try;;
2885 esac
2886 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2887 (eval "$ac_compile") 2>&5
2888 ac_status=$?
2889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2890 (exit $ac_status); }; then
2891 for ac_file in conftest.o conftest.obj conftest.*; do
2892 test -f "$ac_file" || continue;
2893 case $ac_file in
2894 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2895 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2896 break;;
2897 esac
2898 done
2899 else
2900 echo "$as_me: failed program was:" >&5
2901 sed 's/^/| /' conftest.$ac_ext >&5
2903 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2904 See \`config.log' for more details." >&5
2905 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2906 See \`config.log' for more details." >&2;}
2907 { (exit 1); exit 1; }; }
2910 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2912 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2913 echo "${ECHO_T}$ac_cv_objext" >&6; }
2914 OBJEXT=$ac_cv_objext
2915 ac_objext=$OBJEXT
2916 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2917 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2918 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2919 echo $ECHO_N "(cached) $ECHO_C" >&6
2920 else
2921 cat >conftest.$ac_ext <<_ACEOF
2922 /* confdefs.h. */
2923 _ACEOF
2924 cat confdefs.h >>conftest.$ac_ext
2925 cat >>conftest.$ac_ext <<_ACEOF
2926 /* end confdefs.h. */
2929 main ()
2931 #ifndef __GNUC__
2932 choke me
2933 #endif
2936 return 0;
2938 _ACEOF
2939 rm -f conftest.$ac_objext
2940 if { (ac_try="$ac_compile"
2941 case "(($ac_try" in
2942 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2943 *) ac_try_echo=$ac_try;;
2944 esac
2945 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2946 (eval "$ac_compile") 2>conftest.er1
2947 ac_status=$?
2948 grep -v '^ *+' conftest.er1 >conftest.err
2949 rm -f conftest.er1
2950 cat conftest.err >&5
2951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2952 (exit $ac_status); } && {
2953 test -z "$ac_c_werror_flag" ||
2954 test ! -s conftest.err
2955 } && test -s conftest.$ac_objext; then
2956 ac_compiler_gnu=yes
2957 else
2958 echo "$as_me: failed program was:" >&5
2959 sed 's/^/| /' conftest.$ac_ext >&5
2961 ac_compiler_gnu=no
2964 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2965 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2968 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2969 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2970 GCC=`test $ac_compiler_gnu = yes && echo yes`
2971 ac_test_CFLAGS=${CFLAGS+set}
2972 ac_save_CFLAGS=$CFLAGS
2973 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2974 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2975 if test "${ac_cv_prog_cc_g+set}" = set; then
2976 echo $ECHO_N "(cached) $ECHO_C" >&6
2977 else
2978 ac_save_c_werror_flag=$ac_c_werror_flag
2979 ac_c_werror_flag=yes
2980 ac_cv_prog_cc_g=no
2981 CFLAGS="-g"
2982 cat >conftest.$ac_ext <<_ACEOF
2983 /* confdefs.h. */
2984 _ACEOF
2985 cat confdefs.h >>conftest.$ac_ext
2986 cat >>conftest.$ac_ext <<_ACEOF
2987 /* end confdefs.h. */
2990 main ()
2994 return 0;
2996 _ACEOF
2997 rm -f conftest.$ac_objext
2998 if { (ac_try="$ac_compile"
2999 case "(($ac_try" in
3000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3001 *) ac_try_echo=$ac_try;;
3002 esac
3003 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3004 (eval "$ac_compile") 2>conftest.er1
3005 ac_status=$?
3006 grep -v '^ *+' conftest.er1 >conftest.err
3007 rm -f conftest.er1
3008 cat conftest.err >&5
3009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3010 (exit $ac_status); } && {
3011 test -z "$ac_c_werror_flag" ||
3012 test ! -s conftest.err
3013 } && test -s conftest.$ac_objext; then
3014 ac_cv_prog_cc_g=yes
3015 else
3016 echo "$as_me: failed program was:" >&5
3017 sed 's/^/| /' conftest.$ac_ext >&5
3019 CFLAGS=""
3020 cat >conftest.$ac_ext <<_ACEOF
3021 /* confdefs.h. */
3022 _ACEOF
3023 cat confdefs.h >>conftest.$ac_ext
3024 cat >>conftest.$ac_ext <<_ACEOF
3025 /* end confdefs.h. */
3028 main ()
3032 return 0;
3034 _ACEOF
3035 rm -f conftest.$ac_objext
3036 if { (ac_try="$ac_compile"
3037 case "(($ac_try" in
3038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3039 *) ac_try_echo=$ac_try;;
3040 esac
3041 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3042 (eval "$ac_compile") 2>conftest.er1
3043 ac_status=$?
3044 grep -v '^ *+' conftest.er1 >conftest.err
3045 rm -f conftest.er1
3046 cat conftest.err >&5
3047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3048 (exit $ac_status); } && {
3049 test -z "$ac_c_werror_flag" ||
3050 test ! -s conftest.err
3051 } && test -s conftest.$ac_objext; then
3053 else
3054 echo "$as_me: failed program was:" >&5
3055 sed 's/^/| /' conftest.$ac_ext >&5
3057 ac_c_werror_flag=$ac_save_c_werror_flag
3058 CFLAGS="-g"
3059 cat >conftest.$ac_ext <<_ACEOF
3060 /* confdefs.h. */
3061 _ACEOF
3062 cat confdefs.h >>conftest.$ac_ext
3063 cat >>conftest.$ac_ext <<_ACEOF
3064 /* end confdefs.h. */
3067 main ()
3071 return 0;
3073 _ACEOF
3074 rm -f conftest.$ac_objext
3075 if { (ac_try="$ac_compile"
3076 case "(($ac_try" in
3077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3078 *) ac_try_echo=$ac_try;;
3079 esac
3080 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3081 (eval "$ac_compile") 2>conftest.er1
3082 ac_status=$?
3083 grep -v '^ *+' conftest.er1 >conftest.err
3084 rm -f conftest.er1
3085 cat conftest.err >&5
3086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3087 (exit $ac_status); } && {
3088 test -z "$ac_c_werror_flag" ||
3089 test ! -s conftest.err
3090 } && test -s conftest.$ac_objext; then
3091 ac_cv_prog_cc_g=yes
3092 else
3093 echo "$as_me: failed program was:" >&5
3094 sed 's/^/| /' conftest.$ac_ext >&5
3099 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3102 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3105 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3106 ac_c_werror_flag=$ac_save_c_werror_flag
3108 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3109 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3110 if test "$ac_test_CFLAGS" = set; then
3111 CFLAGS=$ac_save_CFLAGS
3112 elif test $ac_cv_prog_cc_g = yes; then
3113 if test "$GCC" = yes; then
3114 CFLAGS="-g -O2"
3115 else
3116 CFLAGS="-g"
3118 else
3119 if test "$GCC" = yes; then
3120 CFLAGS="-O2"
3121 else
3122 CFLAGS=
3125 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3126 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3127 if test "${ac_cv_prog_cc_c89+set}" = set; then
3128 echo $ECHO_N "(cached) $ECHO_C" >&6
3129 else
3130 ac_cv_prog_cc_c89=no
3131 ac_save_CC=$CC
3132 cat >conftest.$ac_ext <<_ACEOF
3133 /* confdefs.h. */
3134 _ACEOF
3135 cat confdefs.h >>conftest.$ac_ext
3136 cat >>conftest.$ac_ext <<_ACEOF
3137 /* end confdefs.h. */
3138 #include <stdarg.h>
3139 #include <stdio.h>
3140 #include <sys/types.h>
3141 #include <sys/stat.h>
3142 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3143 struct buf { int x; };
3144 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3145 static char *e (p, i)
3146 char **p;
3147 int i;
3149 return p[i];
3151 static char *f (char * (*g) (char **, int), char **p, ...)
3153 char *s;
3154 va_list v;
3155 va_start (v,p);
3156 s = g (p, va_arg (v,int));
3157 va_end (v);
3158 return s;
3161 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3162 function prototypes and stuff, but not '\xHH' hex character constants.
3163 These don't provoke an error unfortunately, instead are silently treated
3164 as 'x'. The following induces an error, until -std is added to get
3165 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3166 array size at least. It's necessary to write '\x00'==0 to get something
3167 that's true only with -std. */
3168 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3170 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3171 inside strings and character constants. */
3172 #define FOO(x) 'x'
3173 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3175 int test (int i, double x);
3176 struct s1 {int (*f) (int a);};
3177 struct s2 {int (*f) (double a);};
3178 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3179 int argc;
3180 char **argv;
3182 main ()
3184 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3186 return 0;
3188 _ACEOF
3189 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3190 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3192 CC="$ac_save_CC $ac_arg"
3193 rm -f conftest.$ac_objext
3194 if { (ac_try="$ac_compile"
3195 case "(($ac_try" in
3196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3197 *) ac_try_echo=$ac_try;;
3198 esac
3199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3200 (eval "$ac_compile") 2>conftest.er1
3201 ac_status=$?
3202 grep -v '^ *+' conftest.er1 >conftest.err
3203 rm -f conftest.er1
3204 cat conftest.err >&5
3205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3206 (exit $ac_status); } && {
3207 test -z "$ac_c_werror_flag" ||
3208 test ! -s conftest.err
3209 } && test -s conftest.$ac_objext; then
3210 ac_cv_prog_cc_c89=$ac_arg
3211 else
3212 echo "$as_me: failed program was:" >&5
3213 sed 's/^/| /' conftest.$ac_ext >&5
3218 rm -f core conftest.err conftest.$ac_objext
3219 test "x$ac_cv_prog_cc_c89" != "xno" && break
3220 done
3221 rm -f conftest.$ac_ext
3222 CC=$ac_save_CC
3225 # AC_CACHE_VAL
3226 case "x$ac_cv_prog_cc_c89" in
3228 { echo "$as_me:$LINENO: result: none needed" >&5
3229 echo "${ECHO_T}none needed" >&6; } ;;
3230 xno)
3231 { echo "$as_me:$LINENO: result: unsupported" >&5
3232 echo "${ECHO_T}unsupported" >&6; } ;;
3234 CC="$CC $ac_cv_prog_cc_c89"
3235 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3236 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3237 esac
3240 ac_ext=c
3241 ac_cpp='$CPP $CPPFLAGS'
3242 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3243 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3244 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3249 { echo "$as_me:$LINENO: checking for --with-cxx-main=<compiler>" >&5
3250 echo $ECHO_N "checking for --with-cxx-main=<compiler>... $ECHO_C" >&6; }
3252 # Check whether --with-cxx_main was given.
3253 if test "${with_cxx_main+set}" = set; then
3254 withval=$with_cxx_main;
3256 case $withval in
3257 no) with_cxx_main=no
3258 MAINCC='$(CC)';;
3259 yes) with_cxx_main=yes
3260 MAINCC='$(CXX)';;
3261 *) with_cxx_main=yes
3262 MAINCC=$withval
3263 if test -z "$CXX"
3264 then
3265 CXX=$withval
3266 fi;;
3267 esac
3268 else
3270 with_cxx_main=no
3271 MAINCC='$(CC)'
3275 { echo "$as_me:$LINENO: result: $with_cxx_main" >&5
3276 echo "${ECHO_T}$with_cxx_main" >&6; }
3278 preset_cxx="$CXX"
3279 if test -z "$CXX"
3280 then
3281 case "$CC" in
3282 gcc) # Extract the first word of "g++", so it can be a program name with args.
3283 set dummy g++; ac_word=$2
3284 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3285 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3286 if test "${ac_cv_path_CXX+set}" = set; then
3287 echo $ECHO_N "(cached) $ECHO_C" >&6
3288 else
3289 case $CXX in
3290 [\\/]* | ?:[\\/]*)
3291 ac_cv_path_CXX="$CXX" # Let the user override the test with a path.
3294 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3295 for as_dir in notfound
3297 IFS=$as_save_IFS
3298 test -z "$as_dir" && as_dir=.
3299 for ac_exec_ext in '' $ac_executable_extensions; do
3300 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3301 ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext"
3302 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3303 break 2
3305 done
3306 done
3307 IFS=$as_save_IFS
3309 test -z "$ac_cv_path_CXX" && ac_cv_path_CXX="g++"
3311 esac
3313 CXX=$ac_cv_path_CXX
3314 if test -n "$CXX"; then
3315 { echo "$as_me:$LINENO: result: $CXX" >&5
3316 echo "${ECHO_T}$CXX" >&6; }
3317 else
3318 { echo "$as_me:$LINENO: result: no" >&5
3319 echo "${ECHO_T}no" >&6; }
3323 cc) # Extract the first word of "c++", so it can be a program name with args.
3324 set dummy c++; ac_word=$2
3325 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3326 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3327 if test "${ac_cv_path_CXX+set}" = set; then
3328 echo $ECHO_N "(cached) $ECHO_C" >&6
3329 else
3330 case $CXX in
3331 [\\/]* | ?:[\\/]*)
3332 ac_cv_path_CXX="$CXX" # Let the user override the test with a path.
3335 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3336 for as_dir in notfound
3338 IFS=$as_save_IFS
3339 test -z "$as_dir" && as_dir=.
3340 for ac_exec_ext in '' $ac_executable_extensions; do
3341 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3342 ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext"
3343 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3344 break 2
3346 done
3347 done
3348 IFS=$as_save_IFS
3350 test -z "$ac_cv_path_CXX" && ac_cv_path_CXX="c++"
3352 esac
3354 CXX=$ac_cv_path_CXX
3355 if test -n "$CXX"; then
3356 { echo "$as_me:$LINENO: result: $CXX" >&5
3357 echo "${ECHO_T}$CXX" >&6; }
3358 else
3359 { echo "$as_me:$LINENO: result: no" >&5
3360 echo "${ECHO_T}no" >&6; }
3364 esac
3365 if test "$CXX" = "notfound"
3366 then
3367 CXX=""
3370 if test -z "$CXX"
3371 then
3372 for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
3374 # Extract the first word of "$ac_prog", so it can be a program name with args.
3375 set dummy $ac_prog; ac_word=$2
3376 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3377 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3378 if test "${ac_cv_prog_CXX+set}" = set; then
3379 echo $ECHO_N "(cached) $ECHO_C" >&6
3380 else
3381 if test -n "$CXX"; then
3382 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3383 else
3384 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3385 for as_dir in $PATH
3387 IFS=$as_save_IFS
3388 test -z "$as_dir" && as_dir=.
3389 for ac_exec_ext in '' $ac_executable_extensions; do
3390 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3391 ac_cv_prog_CXX="$ac_prog"
3392 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3393 break 2
3395 done
3396 done
3397 IFS=$as_save_IFS
3401 CXX=$ac_cv_prog_CXX
3402 if test -n "$CXX"; then
3403 { echo "$as_me:$LINENO: result: $CXX" >&5
3404 echo "${ECHO_T}$CXX" >&6; }
3405 else
3406 { echo "$as_me:$LINENO: result: no" >&5
3407 echo "${ECHO_T}no" >&6; }
3411 test -n "$CXX" && break
3412 done
3413 test -n "$CXX" || CXX="notfound"
3415 if test "$CXX" = "notfound"
3416 then
3417 CXX=""
3420 if test "$preset_cxx" != "$CXX"
3421 then
3422 { echo "$as_me:$LINENO: WARNING:
3424 By default, distutils will build C++ extension modules with \"$CXX\".
3425 If this is not intended, then set CXX on the configure command line.
3426 " >&5
3427 echo "$as_me: WARNING:
3429 By default, distutils will build C++ extension modules with \"$CXX\".
3430 If this is not intended, then set CXX on the configure command line.
3431 " >&2;}
3435 # checks for UNIX variants that set C preprocessor variables
3437 ac_ext=c
3438 ac_cpp='$CPP $CPPFLAGS'
3439 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3440 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3441 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3442 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3443 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3444 # On Suns, sometimes $CPP names a directory.
3445 if test -n "$CPP" && test -d "$CPP"; then
3446 CPP=
3448 if test -z "$CPP"; then
3449 if test "${ac_cv_prog_CPP+set}" = set; then
3450 echo $ECHO_N "(cached) $ECHO_C" >&6
3451 else
3452 # Double quotes because CPP needs to be expanded
3453 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3455 ac_preproc_ok=false
3456 for ac_c_preproc_warn_flag in '' yes
3458 # Use a header file that comes with gcc, so configuring glibc
3459 # with a fresh cross-compiler works.
3460 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3461 # <limits.h> exists even on freestanding compilers.
3462 # On the NeXT, cc -E runs the code through the compiler's parser,
3463 # not just through cpp. "Syntax error" is here to catch this case.
3464 cat >conftest.$ac_ext <<_ACEOF
3465 /* confdefs.h. */
3466 _ACEOF
3467 cat confdefs.h >>conftest.$ac_ext
3468 cat >>conftest.$ac_ext <<_ACEOF
3469 /* end confdefs.h. */
3470 #ifdef __STDC__
3471 # include <limits.h>
3472 #else
3473 # include <assert.h>
3474 #endif
3475 Syntax error
3476 _ACEOF
3477 if { (ac_try="$ac_cpp conftest.$ac_ext"
3478 case "(($ac_try" in
3479 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3480 *) ac_try_echo=$ac_try;;
3481 esac
3482 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3483 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3484 ac_status=$?
3485 grep -v '^ *+' conftest.er1 >conftest.err
3486 rm -f conftest.er1
3487 cat conftest.err >&5
3488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3489 (exit $ac_status); } >/dev/null && {
3490 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3491 test ! -s conftest.err
3492 }; then
3494 else
3495 echo "$as_me: failed program was:" >&5
3496 sed 's/^/| /' conftest.$ac_ext >&5
3498 # Broken: fails on valid input.
3499 continue
3502 rm -f conftest.err conftest.$ac_ext
3504 # OK, works on sane cases. Now check whether nonexistent headers
3505 # can be detected and how.
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 #include <ac_nonexistent.h>
3513 _ACEOF
3514 if { (ac_try="$ac_cpp conftest.$ac_ext"
3515 case "(($ac_try" in
3516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3517 *) ac_try_echo=$ac_try;;
3518 esac
3519 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3520 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3521 ac_status=$?
3522 grep -v '^ *+' conftest.er1 >conftest.err
3523 rm -f conftest.er1
3524 cat conftest.err >&5
3525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3526 (exit $ac_status); } >/dev/null && {
3527 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3528 test ! -s conftest.err
3529 }; then
3530 # Broken: success on invalid input.
3531 continue
3532 else
3533 echo "$as_me: failed program was:" >&5
3534 sed 's/^/| /' conftest.$ac_ext >&5
3536 # Passes both tests.
3537 ac_preproc_ok=:
3538 break
3541 rm -f conftest.err conftest.$ac_ext
3543 done
3544 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3545 rm -f conftest.err conftest.$ac_ext
3546 if $ac_preproc_ok; then
3547 break
3550 done
3551 ac_cv_prog_CPP=$CPP
3554 CPP=$ac_cv_prog_CPP
3555 else
3556 ac_cv_prog_CPP=$CPP
3558 { echo "$as_me:$LINENO: result: $CPP" >&5
3559 echo "${ECHO_T}$CPP" >&6; }
3560 ac_preproc_ok=false
3561 for ac_c_preproc_warn_flag in '' yes
3563 # Use a header file that comes with gcc, so configuring glibc
3564 # with a fresh cross-compiler works.
3565 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3566 # <limits.h> exists even on freestanding compilers.
3567 # On the NeXT, cc -E runs the code through the compiler's parser,
3568 # not just through cpp. "Syntax error" is here to catch this case.
3569 cat >conftest.$ac_ext <<_ACEOF
3570 /* confdefs.h. */
3571 _ACEOF
3572 cat confdefs.h >>conftest.$ac_ext
3573 cat >>conftest.$ac_ext <<_ACEOF
3574 /* end confdefs.h. */
3575 #ifdef __STDC__
3576 # include <limits.h>
3577 #else
3578 # include <assert.h>
3579 #endif
3580 Syntax error
3581 _ACEOF
3582 if { (ac_try="$ac_cpp conftest.$ac_ext"
3583 case "(($ac_try" in
3584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3585 *) ac_try_echo=$ac_try;;
3586 esac
3587 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3588 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3589 ac_status=$?
3590 grep -v '^ *+' conftest.er1 >conftest.err
3591 rm -f conftest.er1
3592 cat conftest.err >&5
3593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3594 (exit $ac_status); } >/dev/null && {
3595 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3596 test ! -s conftest.err
3597 }; then
3599 else
3600 echo "$as_me: failed program was:" >&5
3601 sed 's/^/| /' conftest.$ac_ext >&5
3603 # Broken: fails on valid input.
3604 continue
3607 rm -f conftest.err conftest.$ac_ext
3609 # OK, works on sane cases. Now check whether nonexistent headers
3610 # can be detected and how.
3611 cat >conftest.$ac_ext <<_ACEOF
3612 /* confdefs.h. */
3613 _ACEOF
3614 cat confdefs.h >>conftest.$ac_ext
3615 cat >>conftest.$ac_ext <<_ACEOF
3616 /* end confdefs.h. */
3617 #include <ac_nonexistent.h>
3618 _ACEOF
3619 if { (ac_try="$ac_cpp conftest.$ac_ext"
3620 case "(($ac_try" in
3621 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3622 *) ac_try_echo=$ac_try;;
3623 esac
3624 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3625 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3626 ac_status=$?
3627 grep -v '^ *+' conftest.er1 >conftest.err
3628 rm -f conftest.er1
3629 cat conftest.err >&5
3630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3631 (exit $ac_status); } >/dev/null && {
3632 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3633 test ! -s conftest.err
3634 }; then
3635 # Broken: success on invalid input.
3636 continue
3637 else
3638 echo "$as_me: failed program was:" >&5
3639 sed 's/^/| /' conftest.$ac_ext >&5
3641 # Passes both tests.
3642 ac_preproc_ok=:
3643 break
3646 rm -f conftest.err conftest.$ac_ext
3648 done
3649 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3650 rm -f conftest.err conftest.$ac_ext
3651 if $ac_preproc_ok; then
3653 else
3654 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3655 See \`config.log' for more details." >&5
3656 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3657 See \`config.log' for more details." >&2;}
3658 { (exit 1); exit 1; }; }
3661 ac_ext=c
3662 ac_cpp='$CPP $CPPFLAGS'
3663 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3664 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3665 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3668 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3669 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3670 if test "${ac_cv_path_GREP+set}" = set; then
3671 echo $ECHO_N "(cached) $ECHO_C" >&6
3672 else
3673 # Extract the first word of "grep ggrep" to use in msg output
3674 if test -z "$GREP"; then
3675 set dummy grep ggrep; ac_prog_name=$2
3676 if test "${ac_cv_path_GREP+set}" = set; then
3677 echo $ECHO_N "(cached) $ECHO_C" >&6
3678 else
3679 ac_path_GREP_found=false
3680 # Loop through the user's path and test for each of PROGNAME-LIST
3681 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3682 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3684 IFS=$as_save_IFS
3685 test -z "$as_dir" && as_dir=.
3686 for ac_prog in grep ggrep; do
3687 for ac_exec_ext in '' $ac_executable_extensions; do
3688 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3689 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3690 # Check for GNU ac_path_GREP and select it if it is found.
3691 # Check for GNU $ac_path_GREP
3692 case `"$ac_path_GREP" --version 2>&1` in
3693 *GNU*)
3694 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3696 ac_count=0
3697 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3698 while :
3700 cat "conftest.in" "conftest.in" >"conftest.tmp"
3701 mv "conftest.tmp" "conftest.in"
3702 cp "conftest.in" "conftest.nl"
3703 echo 'GREP' >> "conftest.nl"
3704 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3705 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3706 ac_count=`expr $ac_count + 1`
3707 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3708 # Best one so far, save it but keep looking for a better one
3709 ac_cv_path_GREP="$ac_path_GREP"
3710 ac_path_GREP_max=$ac_count
3712 # 10*(2^10) chars as input seems more than enough
3713 test $ac_count -gt 10 && break
3714 done
3715 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3716 esac
3719 $ac_path_GREP_found && break 3
3720 done
3721 done
3723 done
3724 IFS=$as_save_IFS
3729 GREP="$ac_cv_path_GREP"
3730 if test -z "$GREP"; then
3731 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3732 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3733 { (exit 1); exit 1; }; }
3736 else
3737 ac_cv_path_GREP=$GREP
3742 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3743 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3744 GREP="$ac_cv_path_GREP"
3747 { echo "$as_me:$LINENO: checking for egrep" >&5
3748 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3749 if test "${ac_cv_path_EGREP+set}" = set; then
3750 echo $ECHO_N "(cached) $ECHO_C" >&6
3751 else
3752 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3753 then ac_cv_path_EGREP="$GREP -E"
3754 else
3755 # Extract the first word of "egrep" to use in msg output
3756 if test -z "$EGREP"; then
3757 set dummy egrep; ac_prog_name=$2
3758 if test "${ac_cv_path_EGREP+set}" = set; then
3759 echo $ECHO_N "(cached) $ECHO_C" >&6
3760 else
3761 ac_path_EGREP_found=false
3762 # Loop through the user's path and test for each of PROGNAME-LIST
3763 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3764 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3766 IFS=$as_save_IFS
3767 test -z "$as_dir" && as_dir=.
3768 for ac_prog in egrep; do
3769 for ac_exec_ext in '' $ac_executable_extensions; do
3770 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3771 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3772 # Check for GNU ac_path_EGREP and select it if it is found.
3773 # Check for GNU $ac_path_EGREP
3774 case `"$ac_path_EGREP" --version 2>&1` in
3775 *GNU*)
3776 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3778 ac_count=0
3779 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3780 while :
3782 cat "conftest.in" "conftest.in" >"conftest.tmp"
3783 mv "conftest.tmp" "conftest.in"
3784 cp "conftest.in" "conftest.nl"
3785 echo 'EGREP' >> "conftest.nl"
3786 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3787 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3788 ac_count=`expr $ac_count + 1`
3789 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3790 # Best one so far, save it but keep looking for a better one
3791 ac_cv_path_EGREP="$ac_path_EGREP"
3792 ac_path_EGREP_max=$ac_count
3794 # 10*(2^10) chars as input seems more than enough
3795 test $ac_count -gt 10 && break
3796 done
3797 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3798 esac
3801 $ac_path_EGREP_found && break 3
3802 done
3803 done
3805 done
3806 IFS=$as_save_IFS
3811 EGREP="$ac_cv_path_EGREP"
3812 if test -z "$EGREP"; then
3813 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3814 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3815 { (exit 1); exit 1; }; }
3818 else
3819 ac_cv_path_EGREP=$EGREP
3825 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3826 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3827 EGREP="$ac_cv_path_EGREP"
3831 { echo "$as_me:$LINENO: checking for AIX" >&5
3832 echo $ECHO_N "checking for AIX... $ECHO_C" >&6; }
3833 cat >conftest.$ac_ext <<_ACEOF
3834 /* confdefs.h. */
3835 _ACEOF
3836 cat confdefs.h >>conftest.$ac_ext
3837 cat >>conftest.$ac_ext <<_ACEOF
3838 /* end confdefs.h. */
3839 #ifdef _AIX
3841 #endif
3843 _ACEOF
3844 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3845 $EGREP "yes" >/dev/null 2>&1; then
3846 { echo "$as_me:$LINENO: result: yes" >&5
3847 echo "${ECHO_T}yes" >&6; }
3848 cat >>confdefs.h <<\_ACEOF
3849 #define _ALL_SOURCE 1
3850 _ACEOF
3852 else
3853 { echo "$as_me:$LINENO: result: no" >&5
3854 echo "${ECHO_T}no" >&6; }
3856 rm -f conftest*
3860 # Check for unsupported systems
3861 case $ac_sys_system/$ac_sys_release in
3862 atheos*|Linux*/1*)
3863 echo This system \($ac_sys_system/$ac_sys_release\) is no longer supported.
3864 echo See README for details.
3865 exit 1;;
3866 esac
3869 { echo "$as_me:$LINENO: checking for --with-suffix" >&5
3870 echo $ECHO_N "checking for --with-suffix... $ECHO_C" >&6; }
3872 # Check whether --with-suffix was given.
3873 if test "${with_suffix+set}" = set; then
3874 withval=$with_suffix;
3875 case $withval in
3876 no) EXEEXT=;;
3877 yes) EXEEXT=.exe;;
3878 *) EXEEXT=$withval;;
3879 esac
3882 { echo "$as_me:$LINENO: result: $EXEEXT" >&5
3883 echo "${ECHO_T}$EXEEXT" >&6; }
3885 # Test whether we're running on a non-case-sensitive system, in which
3886 # case we give a warning if no ext is given
3888 { echo "$as_me:$LINENO: checking for case-insensitive build directory" >&5
3889 echo $ECHO_N "checking for case-insensitive build directory... $ECHO_C" >&6; }
3890 if test ! -d CaseSensitiveTestDir; then
3891 mkdir CaseSensitiveTestDir
3894 if test -d casesensitivetestdir
3895 then
3896 { echo "$as_me:$LINENO: result: yes" >&5
3897 echo "${ECHO_T}yes" >&6; }
3898 BUILDEXEEXT=.exe
3899 else
3900 { echo "$as_me:$LINENO: result: no" >&5
3901 echo "${ECHO_T}no" >&6; }
3902 BUILDEXEEXT=$EXEEXT
3904 rmdir CaseSensitiveTestDir
3906 case $MACHDEP in
3907 bsdos*)
3908 case $CC in
3909 gcc) CC="$CC -D_HAVE_BSDI";;
3910 esac;;
3911 esac
3913 case $ac_sys_system in
3914 hp*|HP*)
3915 case $CC in
3916 cc|*/cc) CC="$CC -Ae";;
3917 esac;;
3918 Monterey*)
3919 case $CC in
3920 cc) CC="$CC -Wl,-Bexport";;
3921 esac;;
3922 SunOS*)
3923 # Some functions have a prototype only with that define, e.g. confstr
3925 cat >>confdefs.h <<\_ACEOF
3926 #define __EXTENSIONS__ 1
3927 _ACEOF
3930 esac
3934 { echo "$as_me:$LINENO: checking LIBRARY" >&5
3935 echo $ECHO_N "checking LIBRARY... $ECHO_C" >&6; }
3936 if test -z "$LIBRARY"
3937 then
3938 LIBRARY='libpython$(VERSION).a'
3940 { echo "$as_me:$LINENO: result: $LIBRARY" >&5
3941 echo "${ECHO_T}$LIBRARY" >&6; }
3943 # LDLIBRARY is the name of the library to link against (as opposed to the
3944 # name of the library into which to insert object files). BLDLIBRARY is also
3945 # the library to link against, usually. On Mac OS X frameworks, BLDLIBRARY
3946 # is blank as the main program is not linked directly against LDLIBRARY.
3947 # LDLIBRARYDIR is the path to LDLIBRARY, which is made in a subdirectory. On
3948 # systems without shared libraries, LDLIBRARY is the same as LIBRARY
3949 # (defined in the Makefiles). On Cygwin LDLIBRARY is the import library,
3950 # DLLLIBRARY is the shared (i.e., DLL) library.
3952 # RUNSHARED is used to run shared python without installed libraries
3954 # INSTSONAME is the name of the shared library that will be use to install
3955 # on the system - some systems like version suffix, others don't
3962 LDLIBRARY="$LIBRARY"
3963 BLDLIBRARY='$(LDLIBRARY)'
3964 INSTSONAME='$(LDLIBRARY)'
3965 DLLLIBRARY=''
3966 LDLIBRARYDIR=''
3967 RUNSHARED=''
3969 # LINKCC is the command that links the python executable -- default is $(CC).
3970 # If CXX is set, and if it is needed to link a main function that was
3971 # compiled with CXX, LINKCC is CXX instead. Always using CXX is undesirable:
3972 # python might then depend on the C++ runtime
3973 # This is altered for AIX in order to build the export list before
3974 # linking.
3976 { echo "$as_me:$LINENO: checking LINKCC" >&5
3977 echo $ECHO_N "checking LINKCC... $ECHO_C" >&6; }
3978 if test -z "$LINKCC"
3979 then
3980 LINKCC='$(PURIFY) $(MAINCC)'
3981 case $ac_sys_system in
3982 AIX*)
3983 exp_extra="\"\""
3984 if test $ac_sys_release -ge 5 -o \
3985 $ac_sys_release -eq 4 -a `uname -r` -ge 2 ; then
3986 exp_extra="."
3988 LINKCC="\$(srcdir)/Modules/makexp_aix Modules/python.exp $exp_extra \$(LIBRARY); $LINKCC";;
3989 Monterey64*)
3990 LINKCC="$LINKCC -L/usr/lib/ia64l64";;
3991 QNX*)
3992 # qcc must be used because the other compilers do not
3993 # support -N.
3994 LINKCC=qcc;;
3995 esac
3997 { echo "$as_me:$LINENO: result: $LINKCC" >&5
3998 echo "${ECHO_T}$LINKCC" >&6; }
4000 { echo "$as_me:$LINENO: checking for --enable-shared" >&5
4001 echo $ECHO_N "checking for --enable-shared... $ECHO_C" >&6; }
4002 # Check whether --enable-shared was given.
4003 if test "${enable_shared+set}" = set; then
4004 enableval=$enable_shared;
4008 if test -z "$enable_shared"
4009 then
4010 case $ac_sys_system in
4011 CYGWIN* | atheos*)
4012 enable_shared="yes";;
4014 enable_shared="no";;
4015 esac
4017 { echo "$as_me:$LINENO: result: $enable_shared" >&5
4018 echo "${ECHO_T}$enable_shared" >&6; }
4020 { echo "$as_me:$LINENO: checking for --enable-profiling" >&5
4021 echo $ECHO_N "checking for --enable-profiling... $ECHO_C" >&6; }
4022 # Check whether --enable-profiling was given.
4023 if test "${enable_profiling+set}" = set; then
4024 enableval=$enable_profiling; ac_save_cc="$CC"
4025 CC="$CC -pg"
4026 if test "$cross_compiling" = yes; then
4027 ac_enable_profiling="no"
4028 else
4029 cat >conftest.$ac_ext <<_ACEOF
4030 /* confdefs.h. */
4031 _ACEOF
4032 cat confdefs.h >>conftest.$ac_ext
4033 cat >>conftest.$ac_ext <<_ACEOF
4034 /* end confdefs.h. */
4035 int main() { return 0; }
4036 _ACEOF
4037 rm -f conftest$ac_exeext
4038 if { (ac_try="$ac_link"
4039 case "(($ac_try" in
4040 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4041 *) ac_try_echo=$ac_try;;
4042 esac
4043 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4044 (eval "$ac_link") 2>&5
4045 ac_status=$?
4046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4047 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4048 { (case "(($ac_try" in
4049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4050 *) ac_try_echo=$ac_try;;
4051 esac
4052 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4053 (eval "$ac_try") 2>&5
4054 ac_status=$?
4055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4056 (exit $ac_status); }; }; then
4057 ac_enable_profiling="yes"
4058 else
4059 echo "$as_me: program exited with status $ac_status" >&5
4060 echo "$as_me: failed program was:" >&5
4061 sed 's/^/| /' conftest.$ac_ext >&5
4063 ( exit $ac_status )
4064 ac_enable_profiling="no"
4066 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4070 CC="$ac_save_cc"
4073 { echo "$as_me:$LINENO: result: $ac_enable_profiling" >&5
4074 echo "${ECHO_T}$ac_enable_profiling" >&6; }
4076 case "$ac_enable_profiling" in
4077 "yes")
4078 BASECFLAGS="-pg $BASECFLAGS"
4079 LDFLAGS="-pg $LDFLAGS"
4081 esac
4083 { echo "$as_me:$LINENO: checking LDLIBRARY" >&5
4084 echo $ECHO_N "checking LDLIBRARY... $ECHO_C" >&6; }
4086 # MacOSX framework builds need more magic. LDLIBRARY is the dynamic
4087 # library that we build, but we do not want to link against it (we
4088 # will find it with a -framework option). For this reason there is an
4089 # extra variable BLDLIBRARY against which Python and the extension
4090 # modules are linked, BLDLIBRARY. This is normally the same as
4091 # LDLIBRARY, but empty for MacOSX framework builds.
4092 if test "$enable_framework"
4093 then
4094 LDLIBRARY='$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
4095 RUNSHARED=DYLD_FRAMEWORK_PATH="`pwd`:$DYLD_FRAMEWORK_PATH"
4096 BLDLIBRARY=''
4097 else
4098 BLDLIBRARY='$(LDLIBRARY)'
4101 # Other platforms follow
4102 if test $enable_shared = "yes"; then
4104 cat >>confdefs.h <<\_ACEOF
4105 #define Py_ENABLE_SHARED 1
4106 _ACEOF
4108 case $ac_sys_system in
4109 BeOS*)
4110 LDLIBRARY='libpython$(VERSION).so'
4112 CYGWIN*)
4113 LDLIBRARY='libpython$(VERSION).dll.a'
4114 DLLLIBRARY='libpython$(VERSION).dll'
4116 SunOS*)
4117 LDLIBRARY='libpython$(VERSION).so'
4118 BLDLIBRARY='-Wl,-R,$(LIBDIR) -L. -lpython$(VERSION)'
4119 RUNSHARED=LD_LIBRARY_PATH=`pwd`:${LD_LIBRARY_PATH}
4120 INSTSONAME="$LDLIBRARY".$SOVERSION
4122 Linux*|GNU*|NetBSD*|FreeBSD*|DragonFly*)
4123 LDLIBRARY='libpython$(VERSION).so'
4124 BLDLIBRARY='-L. -lpython$(VERSION)'
4125 RUNSHARED=LD_LIBRARY_PATH=`pwd`:${LD_LIBRARY_PATH}
4126 case $ac_sys_system in
4127 FreeBSD*)
4128 SOVERSION=`echo $SOVERSION|cut -d "." -f 1`
4130 esac
4131 INSTSONAME="$LDLIBRARY".$SOVERSION
4133 hp*|HP*)
4134 case `uname -m` in
4135 ia64)
4136 LDLIBRARY='libpython$(VERSION).so'
4139 LDLIBRARY='libpython$(VERSION).sl'
4141 esac
4142 BLDLIBRARY='-Wl,+b,$(LIBDIR) -L. -lpython$(VERSION)'
4143 RUNSHARED=SHLIB_PATH=`pwd`:${SHLIB_PATH}
4145 OSF*)
4146 LDLIBRARY='libpython$(VERSION).so'
4147 BLDLIBRARY='-rpath $(LIBDIR) -L. -lpython$(VERSION)'
4148 RUNSHARED=LD_LIBRARY_PATH=`pwd`:${LD_LIBRARY_PATH}
4150 atheos*)
4151 LDLIBRARY='libpython$(VERSION).so'
4152 BLDLIBRARY='-L. -lpython$(VERSION)'
4153 RUNSHARED=DLL_PATH=`pwd`:${DLL_PATH:-/atheos/sys/libs:/atheos/autolnk/lib}
4155 Darwin*)
4156 LDLIBRARY='libpython$(VERSION).dylib'
4157 BLDLIBRARY='-L. -lpython$(VERSION)'
4158 RUNSHARED='DYLD_LIBRARY_PATH=`pwd`:${DYLD_LIBRARY_PATH}'
4161 esac
4162 else # shared is disabled
4163 case $ac_sys_system in
4164 CYGWIN*)
4165 BLDLIBRARY='$(LIBRARY)'
4166 LDLIBRARY='libpython$(VERSION).dll.a'
4168 esac
4171 { echo "$as_me:$LINENO: result: $LDLIBRARY" >&5
4172 echo "${ECHO_T}$LDLIBRARY" >&6; }
4174 if test -n "$ac_tool_prefix"; then
4175 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4176 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4177 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4178 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4179 if test "${ac_cv_prog_RANLIB+set}" = set; then
4180 echo $ECHO_N "(cached) $ECHO_C" >&6
4181 else
4182 if test -n "$RANLIB"; then
4183 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4184 else
4185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4186 for as_dir in $PATH
4188 IFS=$as_save_IFS
4189 test -z "$as_dir" && as_dir=.
4190 for ac_exec_ext in '' $ac_executable_extensions; do
4191 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4192 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4193 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4194 break 2
4196 done
4197 done
4198 IFS=$as_save_IFS
4202 RANLIB=$ac_cv_prog_RANLIB
4203 if test -n "$RANLIB"; then
4204 { echo "$as_me:$LINENO: result: $RANLIB" >&5
4205 echo "${ECHO_T}$RANLIB" >&6; }
4206 else
4207 { echo "$as_me:$LINENO: result: no" >&5
4208 echo "${ECHO_T}no" >&6; }
4213 if test -z "$ac_cv_prog_RANLIB"; then
4214 ac_ct_RANLIB=$RANLIB
4215 # Extract the first word of "ranlib", so it can be a program name with args.
4216 set dummy ranlib; ac_word=$2
4217 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4218 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4219 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4220 echo $ECHO_N "(cached) $ECHO_C" >&6
4221 else
4222 if test -n "$ac_ct_RANLIB"; then
4223 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4224 else
4225 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4226 for as_dir in $PATH
4228 IFS=$as_save_IFS
4229 test -z "$as_dir" && as_dir=.
4230 for ac_exec_ext in '' $ac_executable_extensions; do
4231 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4232 ac_cv_prog_ac_ct_RANLIB="ranlib"
4233 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4234 break 2
4236 done
4237 done
4238 IFS=$as_save_IFS
4242 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4243 if test -n "$ac_ct_RANLIB"; then
4244 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4245 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
4246 else
4247 { echo "$as_me:$LINENO: result: no" >&5
4248 echo "${ECHO_T}no" >&6; }
4251 if test "x$ac_ct_RANLIB" = x; then
4252 RANLIB=":"
4253 else
4254 case $cross_compiling:$ac_tool_warned in
4255 yes:)
4256 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4257 whose name does not start with the host triplet. If you think this
4258 configuration is useful to you, please write to autoconf@gnu.org." >&5
4259 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4260 whose name does not start with the host triplet. If you think this
4261 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4262 ac_tool_warned=yes ;;
4263 esac
4264 RANLIB=$ac_ct_RANLIB
4266 else
4267 RANLIB="$ac_cv_prog_RANLIB"
4271 for ac_prog in ar aal
4273 # Extract the first word of "$ac_prog", so it can be a program name with args.
4274 set dummy $ac_prog; ac_word=$2
4275 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4276 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4277 if test "${ac_cv_prog_AR+set}" = set; then
4278 echo $ECHO_N "(cached) $ECHO_C" >&6
4279 else
4280 if test -n "$AR"; then
4281 ac_cv_prog_AR="$AR" # Let the user override the test.
4282 else
4283 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4284 for as_dir in $PATH
4286 IFS=$as_save_IFS
4287 test -z "$as_dir" && as_dir=.
4288 for ac_exec_ext in '' $ac_executable_extensions; do
4289 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4290 ac_cv_prog_AR="$ac_prog"
4291 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4292 break 2
4294 done
4295 done
4296 IFS=$as_save_IFS
4300 AR=$ac_cv_prog_AR
4301 if test -n "$AR"; then
4302 { echo "$as_me:$LINENO: result: $AR" >&5
4303 echo "${ECHO_T}$AR" >&6; }
4304 else
4305 { echo "$as_me:$LINENO: result: no" >&5
4306 echo "${ECHO_T}no" >&6; }
4310 test -n "$AR" && break
4311 done
4312 test -n "$AR" || AR="ar"
4316 # Extract the first word of "svnversion", so it can be a program name with args.
4317 set dummy svnversion; ac_word=$2
4318 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4319 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4320 if test "${ac_cv_prog_SVNVERSION+set}" = set; then
4321 echo $ECHO_N "(cached) $ECHO_C" >&6
4322 else
4323 if test -n "$SVNVERSION"; then
4324 ac_cv_prog_SVNVERSION="$SVNVERSION" # Let the user override the test.
4325 else
4326 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4327 for as_dir in $PATH
4329 IFS=$as_save_IFS
4330 test -z "$as_dir" && as_dir=.
4331 for ac_exec_ext in '' $ac_executable_extensions; do
4332 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4333 ac_cv_prog_SVNVERSION="found"
4334 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4335 break 2
4337 done
4338 done
4339 IFS=$as_save_IFS
4341 test -z "$ac_cv_prog_SVNVERSION" && ac_cv_prog_SVNVERSION="not-found"
4344 SVNVERSION=$ac_cv_prog_SVNVERSION
4345 if test -n "$SVNVERSION"; then
4346 { echo "$as_me:$LINENO: result: $SVNVERSION" >&5
4347 echo "${ECHO_T}$SVNVERSION" >&6; }
4348 else
4349 { echo "$as_me:$LINENO: result: no" >&5
4350 echo "${ECHO_T}no" >&6; }
4354 if test $SVNVERSION = found
4355 then
4356 SVNVERSION="svnversion \$(srcdir)"
4357 else
4358 SVNVERSION="echo exported"
4361 case $MACHDEP in
4362 bsdos*|hp*|HP*)
4363 # install -d does not work on BSDI or HP-UX
4364 if test -z "$INSTALL"
4365 then
4366 INSTALL="${srcdir}/install-sh -c"
4368 esac
4369 ac_aux_dir=
4370 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
4371 if test -f "$ac_dir/install-sh"; then
4372 ac_aux_dir=$ac_dir
4373 ac_install_sh="$ac_aux_dir/install-sh -c"
4374 break
4375 elif test -f "$ac_dir/install.sh"; then
4376 ac_aux_dir=$ac_dir
4377 ac_install_sh="$ac_aux_dir/install.sh -c"
4378 break
4379 elif test -f "$ac_dir/shtool"; then
4380 ac_aux_dir=$ac_dir
4381 ac_install_sh="$ac_aux_dir/shtool install -c"
4382 break
4384 done
4385 if test -z "$ac_aux_dir"; then
4386 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
4387 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
4388 { (exit 1); exit 1; }; }
4391 # These three variables are undocumented and unsupported,
4392 # and are intended to be withdrawn in a future Autoconf release.
4393 # They can cause serious problems if a builder's source tree is in a directory
4394 # whose full name contains unusual characters.
4395 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
4396 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
4397 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
4400 # Find a good install program. We prefer a C program (faster),
4401 # so one script is as good as another. But avoid the broken or
4402 # incompatible versions:
4403 # SysV /etc/install, /usr/sbin/install
4404 # SunOS /usr/etc/install
4405 # IRIX /sbin/install
4406 # AIX /bin/install
4407 # AmigaOS /C/install, which installs bootblocks on floppy discs
4408 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4409 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4410 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4411 # OS/2's system install, which has a completely different semantic
4412 # ./install, which can be erroneously created by make from ./install.sh.
4413 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4414 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
4415 if test -z "$INSTALL"; then
4416 if test "${ac_cv_path_install+set}" = set; then
4417 echo $ECHO_N "(cached) $ECHO_C" >&6
4418 else
4419 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4420 for as_dir in $PATH
4422 IFS=$as_save_IFS
4423 test -z "$as_dir" && as_dir=.
4424 # Account for people who put trailing slashes in PATH elements.
4425 case $as_dir/ in
4426 ./ | .// | /cC/* | \
4427 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4428 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4429 /usr/ucb/* ) ;;
4431 # OSF1 and SCO ODT 3.0 have their own names for install.
4432 # Don't use installbsd from OSF since it installs stuff as root
4433 # by default.
4434 for ac_prog in ginstall scoinst install; do
4435 for ac_exec_ext in '' $ac_executable_extensions; do
4436 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4437 if test $ac_prog = install &&
4438 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4439 # AIX install. It has an incompatible calling convention.
4441 elif test $ac_prog = install &&
4442 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4443 # program-specific install script used by HP pwplus--don't use.
4445 else
4446 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4447 break 3
4450 done
4451 done
4453 esac
4454 done
4455 IFS=$as_save_IFS
4459 if test "${ac_cv_path_install+set}" = set; then
4460 INSTALL=$ac_cv_path_install
4461 else
4462 # As a last resort, use the slow shell script. Don't cache a
4463 # value for INSTALL within a source directory, because that will
4464 # break other packages using the cache if that directory is
4465 # removed, or if the value is a relative name.
4466 INSTALL=$ac_install_sh
4469 { echo "$as_me:$LINENO: result: $INSTALL" >&5
4470 echo "${ECHO_T}$INSTALL" >&6; }
4472 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4473 # It thinks the first close brace ends the variable substitution.
4474 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4476 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4478 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4481 # Not every filesystem supports hard links
4483 if test -z "$LN" ; then
4484 case $ac_sys_system in
4485 BeOS*) LN="ln -s";;
4486 CYGWIN*) LN="ln -s";;
4487 atheos*) LN="ln -s";;
4488 *) LN=ln;;
4489 esac
4492 # Check for --with-pydebug
4493 { echo "$as_me:$LINENO: checking for --with-pydebug" >&5
4494 echo $ECHO_N "checking for --with-pydebug... $ECHO_C" >&6; }
4496 # Check whether --with-pydebug was given.
4497 if test "${with_pydebug+set}" = set; then
4498 withval=$with_pydebug;
4499 if test "$withval" != no
4500 then
4502 cat >>confdefs.h <<\_ACEOF
4503 #define Py_DEBUG 1
4504 _ACEOF
4506 { echo "$as_me:$LINENO: result: yes" >&5
4507 echo "${ECHO_T}yes" >&6; };
4508 Py_DEBUG='true'
4509 else { echo "$as_me:$LINENO: result: no" >&5
4510 echo "${ECHO_T}no" >&6; }; Py_DEBUG='false'
4512 else
4513 { echo "$as_me:$LINENO: result: no" >&5
4514 echo "${ECHO_T}no" >&6; }
4518 # XXX Shouldn't the code above that fiddles with BASECFLAGS and OPT be
4519 # merged with this chunk of code?
4521 # Optimizer/debugger flags
4522 # ------------------------
4523 # (The following bit of code is complicated enough - please keep things
4524 # indented properly. Just pretend you're editing Python code. ;-)
4526 # There are two parallel sets of case statements below, one that checks to
4527 # see if OPT was set and one that does BASECFLAGS setting based upon
4528 # compiler and platform. BASECFLAGS tweaks need to be made even if the
4529 # user set OPT.
4531 # tweak OPT based on compiler and platform, only if the user didn't set
4532 # it on the command line
4534 if test -z "$OPT"
4535 then
4536 case $GCC in
4537 yes)
4538 if test "$CC" != 'g++' ; then
4539 STRICT_PROTO="-Wstrict-prototypes"
4541 # For gcc 4.x we need to use -fwrapv so lets check if its supported
4542 if "$CC" -v --help 2>/dev/null |grep -- -fwrapv > /dev/null; then
4543 WRAP="-fwrapv"
4545 case $ac_cv_prog_cc_g in
4546 yes)
4547 if test "$Py_DEBUG" = 'true' ; then
4548 # Optimization messes up debuggers, so turn it off for
4549 # debug builds.
4550 OPT="-g -Wall $STRICT_PROTO"
4551 else
4552 OPT="-g $WRAP -O3 -Wall $STRICT_PROTO"
4556 OPT="-O3 -Wall $STRICT_PROTO"
4558 esac
4559 case $ac_sys_system in
4560 SCO_SV*) OPT="$OPT -m486 -DSCO5"
4562 esac
4566 OPT="-O"
4568 esac
4570 # The current (beta) Monterey compiler dies with optimizations
4571 # XXX what is Monterey? Does it still die w/ -O? Can we get rid of this?
4572 case $ac_sys_system in
4573 Monterey*)
4574 OPT=""
4576 esac
4582 # The -arch flags for universal builds on OSX
4583 UNIVERSAL_ARCH_FLAGS=
4586 # tweak BASECFLAGS based on compiler and platform
4587 case $GCC in
4588 yes)
4589 # Python violates C99 rules, by casting between incompatible
4590 # pointer types. GCC may generate bad code as a result of that,
4591 # so use -fno-strict-aliasing if supported.
4592 { echo "$as_me:$LINENO: checking whether $CC accepts -fno-strict-aliasing" >&5
4593 echo $ECHO_N "checking whether $CC accepts -fno-strict-aliasing... $ECHO_C" >&6; }
4594 ac_save_cc="$CC"
4595 CC="$CC -fno-strict-aliasing"
4596 if test "$cross_compiling" = yes; then
4597 ac_cv_no_strict_aliasing_ok=no
4598 else
4599 cat >conftest.$ac_ext <<_ACEOF
4600 /* confdefs.h. */
4601 _ACEOF
4602 cat confdefs.h >>conftest.$ac_ext
4603 cat >>conftest.$ac_ext <<_ACEOF
4604 /* end confdefs.h. */
4605 int main() { return 0; }
4606 _ACEOF
4607 rm -f conftest$ac_exeext
4608 if { (ac_try="$ac_link"
4609 case "(($ac_try" in
4610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4611 *) ac_try_echo=$ac_try;;
4612 esac
4613 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4614 (eval "$ac_link") 2>&5
4615 ac_status=$?
4616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4617 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4618 { (case "(($ac_try" in
4619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4620 *) ac_try_echo=$ac_try;;
4621 esac
4622 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4623 (eval "$ac_try") 2>&5
4624 ac_status=$?
4625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4626 (exit $ac_status); }; }; then
4627 ac_cv_no_strict_aliasing_ok=yes
4628 else
4629 echo "$as_me: program exited with status $ac_status" >&5
4630 echo "$as_me: failed program was:" >&5
4631 sed 's/^/| /' conftest.$ac_ext >&5
4633 ( exit $ac_status )
4634 ac_cv_no_strict_aliasing_ok=no
4636 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4640 CC="$ac_save_cc"
4641 { echo "$as_me:$LINENO: result: $ac_cv_no_strict_aliasing_ok" >&5
4642 echo "${ECHO_T}$ac_cv_no_strict_aliasing_ok" >&6; }
4643 if test $ac_cv_no_strict_aliasing_ok = yes
4644 then
4645 BASECFLAGS="$BASECFLAGS -fno-strict-aliasing"
4648 # if using gcc on alpha, use -mieee to get (near) full IEEE 754
4649 # support. Without this, treatment of subnormals doesn't follow
4650 # the standard.
4651 case $ac_sys_machine in
4652 alpha*)
4653 BASECFLAGS="$BASECFLAGS -mieee"
4655 esac
4657 case $ac_sys_system in
4658 SCO_SV*)
4659 BASECFLAGS="$BASECFLAGS -m486 -DSCO5"
4661 # is there any other compiler on Darwin besides gcc?
4662 Darwin*)
4663 # -Wno-long-double, -no-cpp-precomp, and -mno-fused-madd
4664 # used to be here, but non-Apple gcc doesn't accept them.
4667 if test "${enable_universalsdk}"; then
4668 UNIVERSAL_ARCH_FLAGS=""
4669 if test "$UNIVERSAL_ARCHS" = "32-bit" ; then
4670 UNIVERSAL_ARCH_FLAGS="-arch ppc -arch i386"
4671 ARCH_RUN_32BIT=""
4673 elif test "$UNIVERSAL_ARCHS" = "64-bit" ; then
4674 UNIVERSAL_ARCH_FLAGS="-arch ppc64 -arch x86_64"
4676 elif test "$UNIVERSAL_ARCHS" = "all" ; then
4677 UNIVERSAL_ARCH_FLAGS="-arch i386 -arch ppc -arch ppc64 -arch x86_64"
4678 ARCH_RUN_32BIT="arch -i386 -ppc"
4680 else
4681 { { echo "$as_me:$LINENO: error: proper usage is --with-universalarch=32-bit|64-bit|all" >&5
4682 echo "$as_me: error: proper usage is --with-universalarch=32-bit|64-bit|all" >&2;}
4683 { (exit 1); exit 1; }; }
4688 BASECFLAGS="${UNIVERSAL_ARCH_FLAGS} -isysroot ${UNIVERSALSDK} ${BASECFLAGS}"
4689 tgt=`sw_vers -productVersion | sed 's/\(10\.[0-9]*\).*/\1/'`
4690 if test "${UNIVERSALSDK}" != "/" -a "${tgt}" '>' '10.4' ; then
4691 CFLAGS="${UNIVERSAL_ARCH_FLAGS} -isysroot ${UNIVERSALSDK} ${CFLAGS}"
4695 # Calculate the right deployment target for this build.
4697 cur_target=`sw_vers -productVersion | sed 's/\(10\.[0-9]*\).*/\1/'`
4698 if test ${cur_target} '>' 10.2; then
4699 cur_target=10.3
4701 if test "${UNIVERSAL_ARCHS}" = "all"; then
4702 # Ensure that the default platform for a 4-way
4703 # universal build is OSX 10.5, that's the first
4704 # OS release where 4-way builds make sense.
4705 cur_target='10.5'
4707 CONFIGURE_MACOSX_DEPLOYMENT_TARGET=${MACOSX_DEPLOYMENT_TARGET-${cur_target}}
4709 # Make sure that MACOSX_DEPLOYMENT_TARGET is set in the
4710 # environment with a value that is the same as what we'll use
4711 # in the Makefile to ensure that we'll get the same compiler
4712 # environment during configure and build time.
4713 MACOSX_DEPLOYMENT_TARGET="$CONFIGURE_MACOSX_DEPLOYMENT_TARGET"
4714 export MACOSX_DEPLOYMENT_TARGET
4715 EXPORT_MACOSX_DEPLOYMENT_TARGET=''
4718 OSF*)
4719 BASECFLAGS="$BASECFLAGS -mieee"
4721 esac
4725 case $ac_sys_system in
4726 OpenUNIX*|UnixWare*)
4727 BASECFLAGS="$BASECFLAGS -K pentium,host,inline,loop_unroll,alloca "
4729 OSF*)
4730 BASECFLAGS="$BASECFLAGS -ieee -std"
4732 SCO_SV*)
4733 BASECFLAGS="$BASECFLAGS -belf -Ki486 -DSCO5"
4735 esac
4737 esac
4739 if test "$Py_DEBUG" = 'true'; then
4741 else
4742 OPT="-DNDEBUG $OPT"
4745 if test "$ac_arch_flags"
4746 then
4747 BASECFLAGS="$BASECFLAGS $ac_arch_flags"
4750 # disable check for icc since it seems to pass, but generates a warning
4751 if test "$CC" = icc
4752 then
4753 ac_cv_opt_olimit_ok=no
4756 { echo "$as_me:$LINENO: checking whether $CC accepts -OPT:Olimit=0" >&5
4757 echo $ECHO_N "checking whether $CC accepts -OPT:Olimit=0... $ECHO_C" >&6; }
4758 if test "${ac_cv_opt_olimit_ok+set}" = set; then
4759 echo $ECHO_N "(cached) $ECHO_C" >&6
4760 else
4761 ac_save_cc="$CC"
4762 CC="$CC -OPT:Olimit=0"
4763 if test "$cross_compiling" = yes; then
4764 ac_cv_opt_olimit_ok=no
4765 else
4766 cat >conftest.$ac_ext <<_ACEOF
4767 /* confdefs.h. */
4768 _ACEOF
4769 cat confdefs.h >>conftest.$ac_ext
4770 cat >>conftest.$ac_ext <<_ACEOF
4771 /* end confdefs.h. */
4772 int main() { return 0; }
4773 _ACEOF
4774 rm -f conftest$ac_exeext
4775 if { (ac_try="$ac_link"
4776 case "(($ac_try" in
4777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4778 *) ac_try_echo=$ac_try;;
4779 esac
4780 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4781 (eval "$ac_link") 2>&5
4782 ac_status=$?
4783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4784 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4785 { (case "(($ac_try" in
4786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4787 *) ac_try_echo=$ac_try;;
4788 esac
4789 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4790 (eval "$ac_try") 2>&5
4791 ac_status=$?
4792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4793 (exit $ac_status); }; }; then
4794 ac_cv_opt_olimit_ok=yes
4795 else
4796 echo "$as_me: program exited with status $ac_status" >&5
4797 echo "$as_me: failed program was:" >&5
4798 sed 's/^/| /' conftest.$ac_ext >&5
4800 ( exit $ac_status )
4801 ac_cv_opt_olimit_ok=no
4803 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4807 CC="$ac_save_cc"
4810 { echo "$as_me:$LINENO: result: $ac_cv_opt_olimit_ok" >&5
4811 echo "${ECHO_T}$ac_cv_opt_olimit_ok" >&6; }
4812 if test $ac_cv_opt_olimit_ok = yes; then
4813 case $ac_sys_system in
4814 # XXX is this branch needed? On MacOSX 10.2.2 the result of the
4815 # olimit_ok test is "no". Is it "yes" in some other Darwin-esque
4816 # environment?
4817 Darwin*)
4820 BASECFLAGS="$BASECFLAGS -OPT:Olimit=0"
4822 esac
4823 else
4824 { echo "$as_me:$LINENO: checking whether $CC accepts -Olimit 1500" >&5
4825 echo $ECHO_N "checking whether $CC accepts -Olimit 1500... $ECHO_C" >&6; }
4826 if test "${ac_cv_olimit_ok+set}" = set; then
4827 echo $ECHO_N "(cached) $ECHO_C" >&6
4828 else
4829 ac_save_cc="$CC"
4830 CC="$CC -Olimit 1500"
4831 if test "$cross_compiling" = yes; then
4832 ac_cv_olimit_ok=no
4833 else
4834 cat >conftest.$ac_ext <<_ACEOF
4835 /* confdefs.h. */
4836 _ACEOF
4837 cat confdefs.h >>conftest.$ac_ext
4838 cat >>conftest.$ac_ext <<_ACEOF
4839 /* end confdefs.h. */
4840 int main() { return 0; }
4841 _ACEOF
4842 rm -f conftest$ac_exeext
4843 if { (ac_try="$ac_link"
4844 case "(($ac_try" in
4845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4846 *) ac_try_echo=$ac_try;;
4847 esac
4848 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4849 (eval "$ac_link") 2>&5
4850 ac_status=$?
4851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4852 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4853 { (case "(($ac_try" in
4854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4855 *) ac_try_echo=$ac_try;;
4856 esac
4857 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4858 (eval "$ac_try") 2>&5
4859 ac_status=$?
4860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4861 (exit $ac_status); }; }; then
4862 ac_cv_olimit_ok=yes
4863 else
4864 echo "$as_me: program exited with status $ac_status" >&5
4865 echo "$as_me: failed program was:" >&5
4866 sed 's/^/| /' conftest.$ac_ext >&5
4868 ( exit $ac_status )
4869 ac_cv_olimit_ok=no
4871 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4875 CC="$ac_save_cc"
4878 { echo "$as_me:$LINENO: result: $ac_cv_olimit_ok" >&5
4879 echo "${ECHO_T}$ac_cv_olimit_ok" >&6; }
4880 if test $ac_cv_olimit_ok = yes; then
4881 BASECFLAGS="$BASECFLAGS -Olimit 1500"
4885 # Check whether GCC supports PyArg_ParseTuple format
4886 if test "$GCC" = "yes"
4887 then
4888 { echo "$as_me:$LINENO: checking whether gcc supports ParseTuple __format__" >&5
4889 echo $ECHO_N "checking whether gcc supports ParseTuple __format__... $ECHO_C" >&6; }
4890 save_CFLAGS=$CFLAGS
4891 CFLAGS="$CFLAGS -Werror"
4892 cat >conftest.$ac_ext <<_ACEOF
4893 /* confdefs.h. */
4894 _ACEOF
4895 cat confdefs.h >>conftest.$ac_ext
4896 cat >>conftest.$ac_ext <<_ACEOF
4897 /* end confdefs.h. */
4899 void f(char*,...)__attribute((format(PyArg_ParseTuple, 1, 2)));
4902 main ()
4906 return 0;
4908 _ACEOF
4909 rm -f conftest.$ac_objext
4910 if { (ac_try="$ac_compile"
4911 case "(($ac_try" in
4912 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4913 *) ac_try_echo=$ac_try;;
4914 esac
4915 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4916 (eval "$ac_compile") 2>conftest.er1
4917 ac_status=$?
4918 grep -v '^ *+' conftest.er1 >conftest.err
4919 rm -f conftest.er1
4920 cat conftest.err >&5
4921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4922 (exit $ac_status); } && {
4923 test -z "$ac_c_werror_flag" ||
4924 test ! -s conftest.err
4925 } && test -s conftest.$ac_objext; then
4927 cat >>confdefs.h <<\_ACEOF
4928 #define HAVE_ATTRIBUTE_FORMAT_PARSETUPLE 1
4929 _ACEOF
4931 { echo "$as_me:$LINENO: result: yes" >&5
4932 echo "${ECHO_T}yes" >&6; }
4933 else
4934 echo "$as_me: failed program was:" >&5
4935 sed 's/^/| /' conftest.$ac_ext >&5
4937 { echo "$as_me:$LINENO: result: no" >&5
4938 echo "${ECHO_T}no" >&6; }
4942 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4943 CFLAGS=$save_CFLAGS
4946 # On some compilers, pthreads are available without further options
4947 # (e.g. MacOS X). On some of these systems, the compiler will not
4948 # complain if unaccepted options are passed (e.g. gcc on Mac OS X).
4949 # So we have to see first whether pthreads are available without
4950 # options before we can check whether -Kpthread improves anything.
4951 { echo "$as_me:$LINENO: checking whether pthreads are available without options" >&5
4952 echo $ECHO_N "checking whether pthreads are available without options... $ECHO_C" >&6; }
4953 if test "${ac_cv_pthread_is_default+set}" = set; then
4954 echo $ECHO_N "(cached) $ECHO_C" >&6
4955 else
4956 if test "$cross_compiling" = yes; then
4957 ac_cv_pthread_is_default=no
4958 else
4959 cat >conftest.$ac_ext <<_ACEOF
4960 /* confdefs.h. */
4961 _ACEOF
4962 cat confdefs.h >>conftest.$ac_ext
4963 cat >>conftest.$ac_ext <<_ACEOF
4964 /* end confdefs.h. */
4966 #include <pthread.h>
4968 void* routine(void* p){return NULL;}
4970 int main(){
4971 pthread_t p;
4972 if(pthread_create(&p,NULL,routine,NULL)!=0)
4973 return 1;
4974 (void)pthread_detach(p);
4975 return 0;
4978 _ACEOF
4979 rm -f conftest$ac_exeext
4980 if { (ac_try="$ac_link"
4981 case "(($ac_try" in
4982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4983 *) ac_try_echo=$ac_try;;
4984 esac
4985 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4986 (eval "$ac_link") 2>&5
4987 ac_status=$?
4988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4989 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4990 { (case "(($ac_try" in
4991 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4992 *) ac_try_echo=$ac_try;;
4993 esac
4994 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4995 (eval "$ac_try") 2>&5
4996 ac_status=$?
4997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4998 (exit $ac_status); }; }; then
5000 ac_cv_pthread_is_default=yes
5001 ac_cv_kthread=no
5002 ac_cv_pthread=no
5004 else
5005 echo "$as_me: program exited with status $ac_status" >&5
5006 echo "$as_me: failed program was:" >&5
5007 sed 's/^/| /' conftest.$ac_ext >&5
5009 ( exit $ac_status )
5010 ac_cv_pthread_is_default=no
5012 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5019 { echo "$as_me:$LINENO: result: $ac_cv_pthread_is_default" >&5
5020 echo "${ECHO_T}$ac_cv_pthread_is_default" >&6; }
5023 if test $ac_cv_pthread_is_default = yes
5024 then
5025 ac_cv_kpthread=no
5026 else
5027 # -Kpthread, if available, provides the right #defines
5028 # and linker options to make pthread_create available
5029 # Some compilers won't report that they do not support -Kpthread,
5030 # so we need to run a program to see whether it really made the
5031 # function available.
5032 { echo "$as_me:$LINENO: checking whether $CC accepts -Kpthread" >&5
5033 echo $ECHO_N "checking whether $CC accepts -Kpthread... $ECHO_C" >&6; }
5034 if test "${ac_cv_kpthread+set}" = set; then
5035 echo $ECHO_N "(cached) $ECHO_C" >&6
5036 else
5037 ac_save_cc="$CC"
5038 CC="$CC -Kpthread"
5039 if test "$cross_compiling" = yes; then
5040 ac_cv_kpthread=no
5041 else
5042 cat >conftest.$ac_ext <<_ACEOF
5043 /* confdefs.h. */
5044 _ACEOF
5045 cat confdefs.h >>conftest.$ac_ext
5046 cat >>conftest.$ac_ext <<_ACEOF
5047 /* end confdefs.h. */
5049 #include <pthread.h>
5051 void* routine(void* p){return NULL;}
5053 int main(){
5054 pthread_t p;
5055 if(pthread_create(&p,NULL,routine,NULL)!=0)
5056 return 1;
5057 (void)pthread_detach(p);
5058 return 0;
5061 _ACEOF
5062 rm -f conftest$ac_exeext
5063 if { (ac_try="$ac_link"
5064 case "(($ac_try" in
5065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5066 *) ac_try_echo=$ac_try;;
5067 esac
5068 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5069 (eval "$ac_link") 2>&5
5070 ac_status=$?
5071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5072 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5073 { (case "(($ac_try" in
5074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5075 *) ac_try_echo=$ac_try;;
5076 esac
5077 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5078 (eval "$ac_try") 2>&5
5079 ac_status=$?
5080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5081 (exit $ac_status); }; }; then
5082 ac_cv_kpthread=yes
5083 else
5084 echo "$as_me: program exited with status $ac_status" >&5
5085 echo "$as_me: failed program was:" >&5
5086 sed 's/^/| /' conftest.$ac_ext >&5
5088 ( exit $ac_status )
5089 ac_cv_kpthread=no
5091 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5095 CC="$ac_save_cc"
5098 { echo "$as_me:$LINENO: result: $ac_cv_kpthread" >&5
5099 echo "${ECHO_T}$ac_cv_kpthread" >&6; }
5102 if test $ac_cv_kpthread = no -a $ac_cv_pthread_is_default = no
5103 then
5104 # -Kthread, if available, provides the right #defines
5105 # and linker options to make pthread_create available
5106 # Some compilers won't report that they do not support -Kthread,
5107 # so we need to run a program to see whether it really made the
5108 # function available.
5109 { echo "$as_me:$LINENO: checking whether $CC accepts -Kthread" >&5
5110 echo $ECHO_N "checking whether $CC accepts -Kthread... $ECHO_C" >&6; }
5111 if test "${ac_cv_kthread+set}" = set; then
5112 echo $ECHO_N "(cached) $ECHO_C" >&6
5113 else
5114 ac_save_cc="$CC"
5115 CC="$CC -Kthread"
5116 if test "$cross_compiling" = yes; then
5117 ac_cv_kthread=no
5118 else
5119 cat >conftest.$ac_ext <<_ACEOF
5120 /* confdefs.h. */
5121 _ACEOF
5122 cat confdefs.h >>conftest.$ac_ext
5123 cat >>conftest.$ac_ext <<_ACEOF
5124 /* end confdefs.h. */
5126 #include <pthread.h>
5128 void* routine(void* p){return NULL;}
5130 int main(){
5131 pthread_t p;
5132 if(pthread_create(&p,NULL,routine,NULL)!=0)
5133 return 1;
5134 (void)pthread_detach(p);
5135 return 0;
5138 _ACEOF
5139 rm -f conftest$ac_exeext
5140 if { (ac_try="$ac_link"
5141 case "(($ac_try" in
5142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5143 *) ac_try_echo=$ac_try;;
5144 esac
5145 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5146 (eval "$ac_link") 2>&5
5147 ac_status=$?
5148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5149 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5150 { (case "(($ac_try" in
5151 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5152 *) ac_try_echo=$ac_try;;
5153 esac
5154 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5155 (eval "$ac_try") 2>&5
5156 ac_status=$?
5157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5158 (exit $ac_status); }; }; then
5159 ac_cv_kthread=yes
5160 else
5161 echo "$as_me: program exited with status $ac_status" >&5
5162 echo "$as_me: failed program was:" >&5
5163 sed 's/^/| /' conftest.$ac_ext >&5
5165 ( exit $ac_status )
5166 ac_cv_kthread=no
5168 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5172 CC="$ac_save_cc"
5175 { echo "$as_me:$LINENO: result: $ac_cv_kthread" >&5
5176 echo "${ECHO_T}$ac_cv_kthread" >&6; }
5179 if test $ac_cv_kthread = no -a $ac_cv_pthread_is_default = no
5180 then
5181 # -pthread, if available, provides the right #defines
5182 # and linker options to make pthread_create available
5183 # Some compilers won't report that they do not support -pthread,
5184 # so we need to run a program to see whether it really made the
5185 # function available.
5186 { echo "$as_me:$LINENO: checking whether $CC accepts -pthread" >&5
5187 echo $ECHO_N "checking whether $CC accepts -pthread... $ECHO_C" >&6; }
5188 if test "${ac_cv_thread+set}" = set; then
5189 echo $ECHO_N "(cached) $ECHO_C" >&6
5190 else
5191 ac_save_cc="$CC"
5192 CC="$CC -pthread"
5193 if test "$cross_compiling" = yes; then
5194 ac_cv_pthread=no
5195 else
5196 cat >conftest.$ac_ext <<_ACEOF
5197 /* confdefs.h. */
5198 _ACEOF
5199 cat confdefs.h >>conftest.$ac_ext
5200 cat >>conftest.$ac_ext <<_ACEOF
5201 /* end confdefs.h. */
5203 #include <pthread.h>
5205 void* routine(void* p){return NULL;}
5207 int main(){
5208 pthread_t p;
5209 if(pthread_create(&p,NULL,routine,NULL)!=0)
5210 return 1;
5211 (void)pthread_detach(p);
5212 return 0;
5215 _ACEOF
5216 rm -f conftest$ac_exeext
5217 if { (ac_try="$ac_link"
5218 case "(($ac_try" in
5219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5220 *) ac_try_echo=$ac_try;;
5221 esac
5222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5223 (eval "$ac_link") 2>&5
5224 ac_status=$?
5225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5226 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5227 { (case "(($ac_try" in
5228 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5229 *) ac_try_echo=$ac_try;;
5230 esac
5231 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5232 (eval "$ac_try") 2>&5
5233 ac_status=$?
5234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5235 (exit $ac_status); }; }; then
5236 ac_cv_pthread=yes
5237 else
5238 echo "$as_me: program exited with status $ac_status" >&5
5239 echo "$as_me: failed program was:" >&5
5240 sed 's/^/| /' conftest.$ac_ext >&5
5242 ( exit $ac_status )
5243 ac_cv_pthread=no
5245 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5249 CC="$ac_save_cc"
5252 { echo "$as_me:$LINENO: result: $ac_cv_pthread" >&5
5253 echo "${ECHO_T}$ac_cv_pthread" >&6; }
5256 # If we have set a CC compiler flag for thread support then
5257 # check if it works for CXX, too.
5258 ac_cv_cxx_thread=no
5259 if test ! -z "$CXX"
5260 then
5261 { echo "$as_me:$LINENO: checking whether $CXX also accepts flags for thread support" >&5
5262 echo $ECHO_N "checking whether $CXX also accepts flags for thread support... $ECHO_C" >&6; }
5263 ac_save_cxx="$CXX"
5265 if test "$ac_cv_kpthread" = "yes"
5266 then
5267 CXX="$CXX -Kpthread"
5268 ac_cv_cxx_thread=yes
5269 elif test "$ac_cv_kthread" = "yes"
5270 then
5271 CXX="$CXX -Kthread"
5272 ac_cv_cxx_thread=yes
5273 elif test "$ac_cv_pthread" = "yes"
5274 then
5275 CXX="$CXX -pthread"
5276 ac_cv_cxx_thread=yes
5279 if test $ac_cv_cxx_thread = yes
5280 then
5281 echo 'void foo();int main(){foo();}void foo(){}' > conftest.$ac_ext
5282 $CXX -c conftest.$ac_ext 2>&5
5283 if $CXX -o conftest$ac_exeext conftest.$ac_objext 2>&5 \
5284 && test -s conftest$ac_exeext && ./conftest$ac_exeext
5285 then
5286 ac_cv_cxx_thread=yes
5287 else
5288 ac_cv_cxx_thread=no
5290 rm -fr conftest*
5292 { echo "$as_me:$LINENO: result: $ac_cv_cxx_thread" >&5
5293 echo "${ECHO_T}$ac_cv_cxx_thread" >&6; }
5295 CXX="$ac_save_cxx"
5298 # checks for header files
5299 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5300 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
5301 if test "${ac_cv_header_stdc+set}" = set; then
5302 echo $ECHO_N "(cached) $ECHO_C" >&6
5303 else
5304 cat >conftest.$ac_ext <<_ACEOF
5305 /* confdefs.h. */
5306 _ACEOF
5307 cat confdefs.h >>conftest.$ac_ext
5308 cat >>conftest.$ac_ext <<_ACEOF
5309 /* end confdefs.h. */
5310 #include <stdlib.h>
5311 #include <stdarg.h>
5312 #include <string.h>
5313 #include <float.h>
5316 main ()
5320 return 0;
5322 _ACEOF
5323 rm -f conftest.$ac_objext
5324 if { (ac_try="$ac_compile"
5325 case "(($ac_try" in
5326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5327 *) ac_try_echo=$ac_try;;
5328 esac
5329 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5330 (eval "$ac_compile") 2>conftest.er1
5331 ac_status=$?
5332 grep -v '^ *+' conftest.er1 >conftest.err
5333 rm -f conftest.er1
5334 cat conftest.err >&5
5335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5336 (exit $ac_status); } && {
5337 test -z "$ac_c_werror_flag" ||
5338 test ! -s conftest.err
5339 } && test -s conftest.$ac_objext; then
5340 ac_cv_header_stdc=yes
5341 else
5342 echo "$as_me: failed program was:" >&5
5343 sed 's/^/| /' conftest.$ac_ext >&5
5345 ac_cv_header_stdc=no
5348 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5350 if test $ac_cv_header_stdc = yes; then
5351 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5352 cat >conftest.$ac_ext <<_ACEOF
5353 /* confdefs.h. */
5354 _ACEOF
5355 cat confdefs.h >>conftest.$ac_ext
5356 cat >>conftest.$ac_ext <<_ACEOF
5357 /* end confdefs.h. */
5358 #include <string.h>
5360 _ACEOF
5361 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5362 $EGREP "memchr" >/dev/null 2>&1; then
5364 else
5365 ac_cv_header_stdc=no
5367 rm -f conftest*
5371 if test $ac_cv_header_stdc = yes; then
5372 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5373 cat >conftest.$ac_ext <<_ACEOF
5374 /* confdefs.h. */
5375 _ACEOF
5376 cat confdefs.h >>conftest.$ac_ext
5377 cat >>conftest.$ac_ext <<_ACEOF
5378 /* end confdefs.h. */
5379 #include <stdlib.h>
5381 _ACEOF
5382 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5383 $EGREP "free" >/dev/null 2>&1; then
5385 else
5386 ac_cv_header_stdc=no
5388 rm -f conftest*
5392 if test $ac_cv_header_stdc = yes; then
5393 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5394 if test "$cross_compiling" = yes; then
5396 else
5397 cat >conftest.$ac_ext <<_ACEOF
5398 /* confdefs.h. */
5399 _ACEOF
5400 cat confdefs.h >>conftest.$ac_ext
5401 cat >>conftest.$ac_ext <<_ACEOF
5402 /* end confdefs.h. */
5403 #include <ctype.h>
5404 #include <stdlib.h>
5405 #if ((' ' & 0x0FF) == 0x020)
5406 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5407 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5408 #else
5409 # define ISLOWER(c) \
5410 (('a' <= (c) && (c) <= 'i') \
5411 || ('j' <= (c) && (c) <= 'r') \
5412 || ('s' <= (c) && (c) <= 'z'))
5413 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5414 #endif
5416 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5418 main ()
5420 int i;
5421 for (i = 0; i < 256; i++)
5422 if (XOR (islower (i), ISLOWER (i))
5423 || toupper (i) != TOUPPER (i))
5424 return 2;
5425 return 0;
5427 _ACEOF
5428 rm -f conftest$ac_exeext
5429 if { (ac_try="$ac_link"
5430 case "(($ac_try" in
5431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5432 *) ac_try_echo=$ac_try;;
5433 esac
5434 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5435 (eval "$ac_link") 2>&5
5436 ac_status=$?
5437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5438 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5439 { (case "(($ac_try" in
5440 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5441 *) ac_try_echo=$ac_try;;
5442 esac
5443 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5444 (eval "$ac_try") 2>&5
5445 ac_status=$?
5446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5447 (exit $ac_status); }; }; then
5449 else
5450 echo "$as_me: program exited with status $ac_status" >&5
5451 echo "$as_me: failed program was:" >&5
5452 sed 's/^/| /' conftest.$ac_ext >&5
5454 ( exit $ac_status )
5455 ac_cv_header_stdc=no
5457 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5463 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5464 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
5465 if test $ac_cv_header_stdc = yes; then
5467 cat >>confdefs.h <<\_ACEOF
5468 #define STDC_HEADERS 1
5469 _ACEOF
5473 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5483 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5484 inttypes.h stdint.h unistd.h
5486 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5487 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5488 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5489 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5490 echo $ECHO_N "(cached) $ECHO_C" >&6
5491 else
5492 cat >conftest.$ac_ext <<_ACEOF
5493 /* confdefs.h. */
5494 _ACEOF
5495 cat confdefs.h >>conftest.$ac_ext
5496 cat >>conftest.$ac_ext <<_ACEOF
5497 /* end confdefs.h. */
5498 $ac_includes_default
5500 #include <$ac_header>
5501 _ACEOF
5502 rm -f conftest.$ac_objext
5503 if { (ac_try="$ac_compile"
5504 case "(($ac_try" in
5505 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5506 *) ac_try_echo=$ac_try;;
5507 esac
5508 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5509 (eval "$ac_compile") 2>conftest.er1
5510 ac_status=$?
5511 grep -v '^ *+' conftest.er1 >conftest.err
5512 rm -f conftest.er1
5513 cat conftest.err >&5
5514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5515 (exit $ac_status); } && {
5516 test -z "$ac_c_werror_flag" ||
5517 test ! -s conftest.err
5518 } && test -s conftest.$ac_objext; then
5519 eval "$as_ac_Header=yes"
5520 else
5521 echo "$as_me: failed program was:" >&5
5522 sed 's/^/| /' conftest.$ac_ext >&5
5524 eval "$as_ac_Header=no"
5527 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5529 ac_res=`eval echo '${'$as_ac_Header'}'`
5530 { echo "$as_me:$LINENO: result: $ac_res" >&5
5531 echo "${ECHO_T}$ac_res" >&6; }
5532 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5533 cat >>confdefs.h <<_ACEOF
5534 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5535 _ACEOF
5539 done
5596 for ac_header in asm/types.h conio.h curses.h direct.h dlfcn.h errno.h \
5597 fcntl.h grp.h \
5598 ieeefp.h io.h langinfo.h libintl.h ncurses.h poll.h process.h pthread.h \
5599 shadow.h signal.h stdint.h stropts.h termios.h thread.h \
5600 unistd.h utime.h \
5601 sys/audioio.h sys/bsdtty.h sys/epoll.h sys/event.h sys/file.h sys/loadavg.h \
5602 sys/lock.h sys/mkdev.h sys/modem.h \
5603 sys/param.h sys/poll.h sys/select.h sys/socket.h sys/statvfs.h sys/stat.h \
5604 sys/termio.h sys/time.h \
5605 sys/times.h sys/types.h sys/un.h sys/utsname.h sys/wait.h pty.h libutil.h \
5606 sys/resource.h netpacket/packet.h sysexits.h bluetooth.h \
5607 bluetooth/bluetooth.h linux/tipc.h
5609 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5610 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5611 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5612 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5613 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5614 echo $ECHO_N "(cached) $ECHO_C" >&6
5616 ac_res=`eval echo '${'$as_ac_Header'}'`
5617 { echo "$as_me:$LINENO: result: $ac_res" >&5
5618 echo "${ECHO_T}$ac_res" >&6; }
5619 else
5620 # Is the header compilable?
5621 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5622 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5623 cat >conftest.$ac_ext <<_ACEOF
5624 /* confdefs.h. */
5625 _ACEOF
5626 cat confdefs.h >>conftest.$ac_ext
5627 cat >>conftest.$ac_ext <<_ACEOF
5628 /* end confdefs.h. */
5629 $ac_includes_default
5630 #include <$ac_header>
5631 _ACEOF
5632 rm -f conftest.$ac_objext
5633 if { (ac_try="$ac_compile"
5634 case "(($ac_try" in
5635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5636 *) ac_try_echo=$ac_try;;
5637 esac
5638 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5639 (eval "$ac_compile") 2>conftest.er1
5640 ac_status=$?
5641 grep -v '^ *+' conftest.er1 >conftest.err
5642 rm -f conftest.er1
5643 cat conftest.err >&5
5644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5645 (exit $ac_status); } && {
5646 test -z "$ac_c_werror_flag" ||
5647 test ! -s conftest.err
5648 } && test -s conftest.$ac_objext; then
5649 ac_header_compiler=yes
5650 else
5651 echo "$as_me: failed program was:" >&5
5652 sed 's/^/| /' conftest.$ac_ext >&5
5654 ac_header_compiler=no
5657 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5658 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5659 echo "${ECHO_T}$ac_header_compiler" >&6; }
5661 # Is the header present?
5662 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5663 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5664 cat >conftest.$ac_ext <<_ACEOF
5665 /* confdefs.h. */
5666 _ACEOF
5667 cat confdefs.h >>conftest.$ac_ext
5668 cat >>conftest.$ac_ext <<_ACEOF
5669 /* end confdefs.h. */
5670 #include <$ac_header>
5671 _ACEOF
5672 if { (ac_try="$ac_cpp conftest.$ac_ext"
5673 case "(($ac_try" in
5674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5675 *) ac_try_echo=$ac_try;;
5676 esac
5677 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5678 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5679 ac_status=$?
5680 grep -v '^ *+' conftest.er1 >conftest.err
5681 rm -f conftest.er1
5682 cat conftest.err >&5
5683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5684 (exit $ac_status); } >/dev/null && {
5685 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5686 test ! -s conftest.err
5687 }; then
5688 ac_header_preproc=yes
5689 else
5690 echo "$as_me: failed program was:" >&5
5691 sed 's/^/| /' conftest.$ac_ext >&5
5693 ac_header_preproc=no
5696 rm -f conftest.err conftest.$ac_ext
5697 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5698 echo "${ECHO_T}$ac_header_preproc" >&6; }
5700 # So? What about this header?
5701 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5702 yes:no: )
5703 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5704 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5705 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5706 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5707 ac_header_preproc=yes
5709 no:yes:* )
5710 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5711 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5712 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5713 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5714 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5715 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5716 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5717 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5718 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5719 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5720 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5721 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5722 ( cat <<\_ASBOX
5723 ## ------------------------------------------------ ##
5724 ## Report this to http://www.python.org/python-bugs ##
5725 ## ------------------------------------------------ ##
5726 _ASBOX
5727 ) | sed "s/^/$as_me: WARNING: /" >&2
5729 esac
5730 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5731 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5732 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5733 echo $ECHO_N "(cached) $ECHO_C" >&6
5734 else
5735 eval "$as_ac_Header=\$ac_header_preproc"
5737 ac_res=`eval echo '${'$as_ac_Header'}'`
5738 { echo "$as_me:$LINENO: result: $ac_res" >&5
5739 echo "${ECHO_T}$ac_res" >&6; }
5742 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5743 cat >>confdefs.h <<_ACEOF
5744 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5745 _ACEOF
5749 done
5756 ac_header_dirent=no
5757 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
5758 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
5759 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
5760 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
5761 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5762 echo $ECHO_N "(cached) $ECHO_C" >&6
5763 else
5764 cat >conftest.$ac_ext <<_ACEOF
5765 /* confdefs.h. */
5766 _ACEOF
5767 cat confdefs.h >>conftest.$ac_ext
5768 cat >>conftest.$ac_ext <<_ACEOF
5769 /* end confdefs.h. */
5770 #include <sys/types.h>
5771 #include <$ac_hdr>
5774 main ()
5776 if ((DIR *) 0)
5777 return 0;
5779 return 0;
5781 _ACEOF
5782 rm -f conftest.$ac_objext
5783 if { (ac_try="$ac_compile"
5784 case "(($ac_try" in
5785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5786 *) ac_try_echo=$ac_try;;
5787 esac
5788 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5789 (eval "$ac_compile") 2>conftest.er1
5790 ac_status=$?
5791 grep -v '^ *+' conftest.er1 >conftest.err
5792 rm -f conftest.er1
5793 cat conftest.err >&5
5794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5795 (exit $ac_status); } && {
5796 test -z "$ac_c_werror_flag" ||
5797 test ! -s conftest.err
5798 } && test -s conftest.$ac_objext; then
5799 eval "$as_ac_Header=yes"
5800 else
5801 echo "$as_me: failed program was:" >&5
5802 sed 's/^/| /' conftest.$ac_ext >&5
5804 eval "$as_ac_Header=no"
5807 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5809 ac_res=`eval echo '${'$as_ac_Header'}'`
5810 { echo "$as_me:$LINENO: result: $ac_res" >&5
5811 echo "${ECHO_T}$ac_res" >&6; }
5812 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5813 cat >>confdefs.h <<_ACEOF
5814 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
5815 _ACEOF
5817 ac_header_dirent=$ac_hdr; break
5820 done
5821 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
5822 if test $ac_header_dirent = dirent.h; then
5823 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
5824 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
5825 if test "${ac_cv_search_opendir+set}" = set; then
5826 echo $ECHO_N "(cached) $ECHO_C" >&6
5827 else
5828 ac_func_search_save_LIBS=$LIBS
5829 cat >conftest.$ac_ext <<_ACEOF
5830 /* confdefs.h. */
5831 _ACEOF
5832 cat confdefs.h >>conftest.$ac_ext
5833 cat >>conftest.$ac_ext <<_ACEOF
5834 /* end confdefs.h. */
5836 /* Override any GCC internal prototype to avoid an error.
5837 Use char because int might match the return type of a GCC
5838 builtin and then its argument prototype would still apply. */
5839 #ifdef __cplusplus
5840 extern "C"
5841 #endif
5842 char opendir ();
5844 main ()
5846 return opendir ();
5848 return 0;
5850 _ACEOF
5851 for ac_lib in '' dir; do
5852 if test -z "$ac_lib"; then
5853 ac_res="none required"
5854 else
5855 ac_res=-l$ac_lib
5856 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5858 rm -f conftest.$ac_objext conftest$ac_exeext
5859 if { (ac_try="$ac_link"
5860 case "(($ac_try" in
5861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5862 *) ac_try_echo=$ac_try;;
5863 esac
5864 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5865 (eval "$ac_link") 2>conftest.er1
5866 ac_status=$?
5867 grep -v '^ *+' conftest.er1 >conftest.err
5868 rm -f conftest.er1
5869 cat conftest.err >&5
5870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5871 (exit $ac_status); } && {
5872 test -z "$ac_c_werror_flag" ||
5873 test ! -s conftest.err
5874 } && test -s conftest$ac_exeext &&
5875 $as_test_x conftest$ac_exeext; then
5876 ac_cv_search_opendir=$ac_res
5877 else
5878 echo "$as_me: failed program was:" >&5
5879 sed 's/^/| /' conftest.$ac_ext >&5
5884 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5885 conftest$ac_exeext
5886 if test "${ac_cv_search_opendir+set}" = set; then
5887 break
5889 done
5890 if test "${ac_cv_search_opendir+set}" = set; then
5892 else
5893 ac_cv_search_opendir=no
5895 rm conftest.$ac_ext
5896 LIBS=$ac_func_search_save_LIBS
5898 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
5899 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
5900 ac_res=$ac_cv_search_opendir
5901 if test "$ac_res" != no; then
5902 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5906 else
5907 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
5908 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
5909 if test "${ac_cv_search_opendir+set}" = set; then
5910 echo $ECHO_N "(cached) $ECHO_C" >&6
5911 else
5912 ac_func_search_save_LIBS=$LIBS
5913 cat >conftest.$ac_ext <<_ACEOF
5914 /* confdefs.h. */
5915 _ACEOF
5916 cat confdefs.h >>conftest.$ac_ext
5917 cat >>conftest.$ac_ext <<_ACEOF
5918 /* end confdefs.h. */
5920 /* Override any GCC internal prototype to avoid an error.
5921 Use char because int might match the return type of a GCC
5922 builtin and then its argument prototype would still apply. */
5923 #ifdef __cplusplus
5924 extern "C"
5925 #endif
5926 char opendir ();
5928 main ()
5930 return opendir ();
5932 return 0;
5934 _ACEOF
5935 for ac_lib in '' x; do
5936 if test -z "$ac_lib"; then
5937 ac_res="none required"
5938 else
5939 ac_res=-l$ac_lib
5940 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5942 rm -f conftest.$ac_objext conftest$ac_exeext
5943 if { (ac_try="$ac_link"
5944 case "(($ac_try" in
5945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5946 *) ac_try_echo=$ac_try;;
5947 esac
5948 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5949 (eval "$ac_link") 2>conftest.er1
5950 ac_status=$?
5951 grep -v '^ *+' conftest.er1 >conftest.err
5952 rm -f conftest.er1
5953 cat conftest.err >&5
5954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5955 (exit $ac_status); } && {
5956 test -z "$ac_c_werror_flag" ||
5957 test ! -s conftest.err
5958 } && test -s conftest$ac_exeext &&
5959 $as_test_x conftest$ac_exeext; then
5960 ac_cv_search_opendir=$ac_res
5961 else
5962 echo "$as_me: failed program was:" >&5
5963 sed 's/^/| /' conftest.$ac_ext >&5
5968 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5969 conftest$ac_exeext
5970 if test "${ac_cv_search_opendir+set}" = set; then
5971 break
5973 done
5974 if test "${ac_cv_search_opendir+set}" = set; then
5976 else
5977 ac_cv_search_opendir=no
5979 rm conftest.$ac_ext
5980 LIBS=$ac_func_search_save_LIBS
5982 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
5983 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
5984 ac_res=$ac_cv_search_opendir
5985 if test "$ac_res" != no; then
5986 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5992 { echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
5993 echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6; }
5994 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
5995 echo $ECHO_N "(cached) $ECHO_C" >&6
5996 else
5997 cat >conftest.$ac_ext <<_ACEOF
5998 /* confdefs.h. */
5999 _ACEOF
6000 cat confdefs.h >>conftest.$ac_ext
6001 cat >>conftest.$ac_ext <<_ACEOF
6002 /* end confdefs.h. */
6003 #include <sys/types.h>
6005 main ()
6007 return makedev(0, 0);
6009 return 0;
6011 _ACEOF
6012 rm -f conftest.$ac_objext conftest$ac_exeext
6013 if { (ac_try="$ac_link"
6014 case "(($ac_try" in
6015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6016 *) ac_try_echo=$ac_try;;
6017 esac
6018 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6019 (eval "$ac_link") 2>conftest.er1
6020 ac_status=$?
6021 grep -v '^ *+' conftest.er1 >conftest.err
6022 rm -f conftest.er1
6023 cat conftest.err >&5
6024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6025 (exit $ac_status); } && {
6026 test -z "$ac_c_werror_flag" ||
6027 test ! -s conftest.err
6028 } && test -s conftest$ac_exeext &&
6029 $as_test_x conftest$ac_exeext; then
6030 ac_cv_header_sys_types_h_makedev=yes
6031 else
6032 echo "$as_me: failed program was:" >&5
6033 sed 's/^/| /' conftest.$ac_ext >&5
6035 ac_cv_header_sys_types_h_makedev=no
6038 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6039 conftest$ac_exeext conftest.$ac_ext
6042 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
6043 echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6; }
6045 if test $ac_cv_header_sys_types_h_makedev = no; then
6046 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
6047 { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
6048 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
6049 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
6050 echo $ECHO_N "(cached) $ECHO_C" >&6
6052 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
6053 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
6054 else
6055 # Is the header compilable?
6056 { echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
6057 echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6; }
6058 cat >conftest.$ac_ext <<_ACEOF
6059 /* confdefs.h. */
6060 _ACEOF
6061 cat confdefs.h >>conftest.$ac_ext
6062 cat >>conftest.$ac_ext <<_ACEOF
6063 /* end confdefs.h. */
6064 $ac_includes_default
6065 #include <sys/mkdev.h>
6066 _ACEOF
6067 rm -f conftest.$ac_objext
6068 if { (ac_try="$ac_compile"
6069 case "(($ac_try" in
6070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6071 *) ac_try_echo=$ac_try;;
6072 esac
6073 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6074 (eval "$ac_compile") 2>conftest.er1
6075 ac_status=$?
6076 grep -v '^ *+' conftest.er1 >conftest.err
6077 rm -f conftest.er1
6078 cat conftest.err >&5
6079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6080 (exit $ac_status); } && {
6081 test -z "$ac_c_werror_flag" ||
6082 test ! -s conftest.err
6083 } && test -s conftest.$ac_objext; then
6084 ac_header_compiler=yes
6085 else
6086 echo "$as_me: failed program was:" >&5
6087 sed 's/^/| /' conftest.$ac_ext >&5
6089 ac_header_compiler=no
6092 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6093 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6094 echo "${ECHO_T}$ac_header_compiler" >&6; }
6096 # Is the header present?
6097 { echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
6098 echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6; }
6099 cat >conftest.$ac_ext <<_ACEOF
6100 /* confdefs.h. */
6101 _ACEOF
6102 cat confdefs.h >>conftest.$ac_ext
6103 cat >>conftest.$ac_ext <<_ACEOF
6104 /* end confdefs.h. */
6105 #include <sys/mkdev.h>
6106 _ACEOF
6107 if { (ac_try="$ac_cpp conftest.$ac_ext"
6108 case "(($ac_try" in
6109 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6110 *) ac_try_echo=$ac_try;;
6111 esac
6112 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6113 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6114 ac_status=$?
6115 grep -v '^ *+' conftest.er1 >conftest.err
6116 rm -f conftest.er1
6117 cat conftest.err >&5
6118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6119 (exit $ac_status); } >/dev/null && {
6120 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6121 test ! -s conftest.err
6122 }; then
6123 ac_header_preproc=yes
6124 else
6125 echo "$as_me: failed program was:" >&5
6126 sed 's/^/| /' conftest.$ac_ext >&5
6128 ac_header_preproc=no
6131 rm -f conftest.err conftest.$ac_ext
6132 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6133 echo "${ECHO_T}$ac_header_preproc" >&6; }
6135 # So? What about this header?
6136 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6137 yes:no: )
6138 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
6139 echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6140 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&5
6141 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&2;}
6142 ac_header_preproc=yes
6144 no:yes:* )
6145 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
6146 echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
6147 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&5
6148 echo "$as_me: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&2;}
6149 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: see the Autoconf documentation" >&5
6150 echo "$as_me: WARNING: sys/mkdev.h: see the Autoconf documentation" >&2;}
6151 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&5
6152 echo "$as_me: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&2;}
6153 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
6154 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
6155 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&5
6156 echo "$as_me: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&2;}
6157 ( cat <<\_ASBOX
6158 ## ------------------------------------------------ ##
6159 ## Report this to http://www.python.org/python-bugs ##
6160 ## ------------------------------------------------ ##
6161 _ASBOX
6162 ) | sed "s/^/$as_me: WARNING: /" >&2
6164 esac
6165 { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
6166 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
6167 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
6168 echo $ECHO_N "(cached) $ECHO_C" >&6
6169 else
6170 ac_cv_header_sys_mkdev_h=$ac_header_preproc
6172 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
6173 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
6176 if test $ac_cv_header_sys_mkdev_h = yes; then
6178 cat >>confdefs.h <<\_ACEOF
6179 #define MAJOR_IN_MKDEV 1
6180 _ACEOF
6186 if test $ac_cv_header_sys_mkdev_h = no; then
6187 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
6188 { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
6189 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
6190 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
6191 echo $ECHO_N "(cached) $ECHO_C" >&6
6193 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
6194 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
6195 else
6196 # Is the header compilable?
6197 { echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
6198 echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6; }
6199 cat >conftest.$ac_ext <<_ACEOF
6200 /* confdefs.h. */
6201 _ACEOF
6202 cat confdefs.h >>conftest.$ac_ext
6203 cat >>conftest.$ac_ext <<_ACEOF
6204 /* end confdefs.h. */
6205 $ac_includes_default
6206 #include <sys/sysmacros.h>
6207 _ACEOF
6208 rm -f conftest.$ac_objext
6209 if { (ac_try="$ac_compile"
6210 case "(($ac_try" in
6211 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6212 *) ac_try_echo=$ac_try;;
6213 esac
6214 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6215 (eval "$ac_compile") 2>conftest.er1
6216 ac_status=$?
6217 grep -v '^ *+' conftest.er1 >conftest.err
6218 rm -f conftest.er1
6219 cat conftest.err >&5
6220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6221 (exit $ac_status); } && {
6222 test -z "$ac_c_werror_flag" ||
6223 test ! -s conftest.err
6224 } && test -s conftest.$ac_objext; then
6225 ac_header_compiler=yes
6226 else
6227 echo "$as_me: failed program was:" >&5
6228 sed 's/^/| /' conftest.$ac_ext >&5
6230 ac_header_compiler=no
6233 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6234 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6235 echo "${ECHO_T}$ac_header_compiler" >&6; }
6237 # Is the header present?
6238 { echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
6239 echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6; }
6240 cat >conftest.$ac_ext <<_ACEOF
6241 /* confdefs.h. */
6242 _ACEOF
6243 cat confdefs.h >>conftest.$ac_ext
6244 cat >>conftest.$ac_ext <<_ACEOF
6245 /* end confdefs.h. */
6246 #include <sys/sysmacros.h>
6247 _ACEOF
6248 if { (ac_try="$ac_cpp conftest.$ac_ext"
6249 case "(($ac_try" in
6250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6251 *) ac_try_echo=$ac_try;;
6252 esac
6253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6254 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6255 ac_status=$?
6256 grep -v '^ *+' conftest.er1 >conftest.err
6257 rm -f conftest.er1
6258 cat conftest.err >&5
6259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6260 (exit $ac_status); } >/dev/null && {
6261 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6262 test ! -s conftest.err
6263 }; then
6264 ac_header_preproc=yes
6265 else
6266 echo "$as_me: failed program was:" >&5
6267 sed 's/^/| /' conftest.$ac_ext >&5
6269 ac_header_preproc=no
6272 rm -f conftest.err conftest.$ac_ext
6273 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6274 echo "${ECHO_T}$ac_header_preproc" >&6; }
6276 # So? What about this header?
6277 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6278 yes:no: )
6279 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
6280 echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6281 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&5
6282 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&2;}
6283 ac_header_preproc=yes
6285 no:yes:* )
6286 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
6287 echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
6288 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&5
6289 echo "$as_me: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&2;}
6290 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&5
6291 echo "$as_me: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&2;}
6292 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&5
6293 echo "$as_me: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&2;}
6294 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
6295 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
6296 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&5
6297 echo "$as_me: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&2;}
6298 ( cat <<\_ASBOX
6299 ## ------------------------------------------------ ##
6300 ## Report this to http://www.python.org/python-bugs ##
6301 ## ------------------------------------------------ ##
6302 _ASBOX
6303 ) | sed "s/^/$as_me: WARNING: /" >&2
6305 esac
6306 { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
6307 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
6308 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
6309 echo $ECHO_N "(cached) $ECHO_C" >&6
6310 else
6311 ac_cv_header_sys_sysmacros_h=$ac_header_preproc
6313 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
6314 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
6317 if test $ac_cv_header_sys_sysmacros_h = yes; then
6319 cat >>confdefs.h <<\_ACEOF
6320 #define MAJOR_IN_SYSMACROS 1
6321 _ACEOF
6330 # On Solaris, term.h requires curses.h
6332 for ac_header in term.h
6334 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6335 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6336 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6337 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6338 echo $ECHO_N "(cached) $ECHO_C" >&6
6339 else
6340 cat >conftest.$ac_ext <<_ACEOF
6341 /* confdefs.h. */
6342 _ACEOF
6343 cat confdefs.h >>conftest.$ac_ext
6344 cat >>conftest.$ac_ext <<_ACEOF
6345 /* end confdefs.h. */
6347 #ifdef HAVE_CURSES_H
6348 #include <curses.h>
6349 #endif
6352 #include <$ac_header>
6353 _ACEOF
6354 rm -f conftest.$ac_objext
6355 if { (ac_try="$ac_compile"
6356 case "(($ac_try" in
6357 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6358 *) ac_try_echo=$ac_try;;
6359 esac
6360 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6361 (eval "$ac_compile") 2>conftest.er1
6362 ac_status=$?
6363 grep -v '^ *+' conftest.er1 >conftest.err
6364 rm -f conftest.er1
6365 cat conftest.err >&5
6366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6367 (exit $ac_status); } && {
6368 test -z "$ac_c_werror_flag" ||
6369 test ! -s conftest.err
6370 } && test -s conftest.$ac_objext; then
6371 eval "$as_ac_Header=yes"
6372 else
6373 echo "$as_me: failed program was:" >&5
6374 sed 's/^/| /' conftest.$ac_ext >&5
6376 eval "$as_ac_Header=no"
6379 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6381 ac_res=`eval echo '${'$as_ac_Header'}'`
6382 { echo "$as_me:$LINENO: result: $ac_res" >&5
6383 echo "${ECHO_T}$ac_res" >&6; }
6384 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6385 cat >>confdefs.h <<_ACEOF
6386 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6387 _ACEOF
6391 done
6394 # On Linux, netlink.h requires asm/types.h
6396 for ac_header in linux/netlink.h
6398 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6399 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6400 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6401 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6402 echo $ECHO_N "(cached) $ECHO_C" >&6
6403 else
6404 cat >conftest.$ac_ext <<_ACEOF
6405 /* confdefs.h. */
6406 _ACEOF
6407 cat confdefs.h >>conftest.$ac_ext
6408 cat >>conftest.$ac_ext <<_ACEOF
6409 /* end confdefs.h. */
6411 #ifdef HAVE_ASM_TYPES_H
6412 #include <asm/types.h>
6413 #endif
6414 #ifdef HAVE_SYS_SOCKET_H
6415 #include <sys/socket.h>
6416 #endif
6419 #include <$ac_header>
6420 _ACEOF
6421 rm -f conftest.$ac_objext
6422 if { (ac_try="$ac_compile"
6423 case "(($ac_try" in
6424 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6425 *) ac_try_echo=$ac_try;;
6426 esac
6427 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6428 (eval "$ac_compile") 2>conftest.er1
6429 ac_status=$?
6430 grep -v '^ *+' conftest.er1 >conftest.err
6431 rm -f conftest.er1
6432 cat conftest.err >&5
6433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6434 (exit $ac_status); } && {
6435 test -z "$ac_c_werror_flag" ||
6436 test ! -s conftest.err
6437 } && test -s conftest.$ac_objext; then
6438 eval "$as_ac_Header=yes"
6439 else
6440 echo "$as_me: failed program was:" >&5
6441 sed 's/^/| /' conftest.$ac_ext >&5
6443 eval "$as_ac_Header=no"
6446 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6448 ac_res=`eval echo '${'$as_ac_Header'}'`
6449 { echo "$as_me:$LINENO: result: $ac_res" >&5
6450 echo "${ECHO_T}$ac_res" >&6; }
6451 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6452 cat >>confdefs.h <<_ACEOF
6453 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6454 _ACEOF
6458 done
6461 # checks for typedefs
6462 was_it_defined=no
6463 { echo "$as_me:$LINENO: checking for clock_t in time.h" >&5
6464 echo $ECHO_N "checking for clock_t in time.h... $ECHO_C" >&6; }
6465 cat >conftest.$ac_ext <<_ACEOF
6466 /* confdefs.h. */
6467 _ACEOF
6468 cat confdefs.h >>conftest.$ac_ext
6469 cat >>conftest.$ac_ext <<_ACEOF
6470 /* end confdefs.h. */
6471 #include <time.h>
6473 _ACEOF
6474 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6475 $EGREP "clock_t" >/dev/null 2>&1; then
6476 was_it_defined=yes
6477 else
6480 cat >>confdefs.h <<\_ACEOF
6481 #define clock_t long
6482 _ACEOF
6486 rm -f conftest*
6488 { echo "$as_me:$LINENO: result: $was_it_defined" >&5
6489 echo "${ECHO_T}$was_it_defined" >&6; }
6491 # Check whether using makedev requires defining _OSF_SOURCE
6492 { echo "$as_me:$LINENO: checking for makedev" >&5
6493 echo $ECHO_N "checking for makedev... $ECHO_C" >&6; }
6494 cat >conftest.$ac_ext <<_ACEOF
6495 /* confdefs.h. */
6496 _ACEOF
6497 cat confdefs.h >>conftest.$ac_ext
6498 cat >>conftest.$ac_ext <<_ACEOF
6499 /* end confdefs.h. */
6500 #include <sys/types.h>
6502 main ()
6504 makedev(0, 0)
6506 return 0;
6508 _ACEOF
6509 rm -f conftest.$ac_objext conftest$ac_exeext
6510 if { (ac_try="$ac_link"
6511 case "(($ac_try" in
6512 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6513 *) ac_try_echo=$ac_try;;
6514 esac
6515 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6516 (eval "$ac_link") 2>conftest.er1
6517 ac_status=$?
6518 grep -v '^ *+' conftest.er1 >conftest.err
6519 rm -f conftest.er1
6520 cat conftest.err >&5
6521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6522 (exit $ac_status); } && {
6523 test -z "$ac_c_werror_flag" ||
6524 test ! -s conftest.err
6525 } && test -s conftest$ac_exeext &&
6526 $as_test_x conftest$ac_exeext; then
6527 ac_cv_has_makedev=yes
6528 else
6529 echo "$as_me: failed program was:" >&5
6530 sed 's/^/| /' conftest.$ac_ext >&5
6532 ac_cv_has_makedev=no
6535 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6536 conftest$ac_exeext conftest.$ac_ext
6537 if test "$ac_cv_has_makedev" = "no"; then
6538 # we didn't link, try if _OSF_SOURCE will allow us to link
6539 cat >conftest.$ac_ext <<_ACEOF
6540 /* confdefs.h. */
6541 _ACEOF
6542 cat confdefs.h >>conftest.$ac_ext
6543 cat >>conftest.$ac_ext <<_ACEOF
6544 /* end confdefs.h. */
6546 #define _OSF_SOURCE 1
6547 #include <sys/types.h>
6550 main ()
6552 makedev(0, 0)
6554 return 0;
6556 _ACEOF
6557 rm -f conftest.$ac_objext conftest$ac_exeext
6558 if { (ac_try="$ac_link"
6559 case "(($ac_try" in
6560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6561 *) ac_try_echo=$ac_try;;
6562 esac
6563 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6564 (eval "$ac_link") 2>conftest.er1
6565 ac_status=$?
6566 grep -v '^ *+' conftest.er1 >conftest.err
6567 rm -f conftest.er1
6568 cat conftest.err >&5
6569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6570 (exit $ac_status); } && {
6571 test -z "$ac_c_werror_flag" ||
6572 test ! -s conftest.err
6573 } && test -s conftest$ac_exeext &&
6574 $as_test_x conftest$ac_exeext; then
6575 ac_cv_has_makedev=yes
6576 else
6577 echo "$as_me: failed program was:" >&5
6578 sed 's/^/| /' conftest.$ac_ext >&5
6580 ac_cv_has_makedev=no
6583 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6584 conftest$ac_exeext conftest.$ac_ext
6585 if test "$ac_cv_has_makedev" = "yes"; then
6587 cat >>confdefs.h <<\_ACEOF
6588 #define _OSF_SOURCE 1
6589 _ACEOF
6593 { echo "$as_me:$LINENO: result: $ac_cv_has_makedev" >&5
6594 echo "${ECHO_T}$ac_cv_has_makedev" >&6; }
6595 if test "$ac_cv_has_makedev" = "yes"; then
6597 cat >>confdefs.h <<\_ACEOF
6598 #define HAVE_MAKEDEV 1
6599 _ACEOF
6603 # Enabling LFS on Solaris (2.6 to 9) with gcc 2.95 triggers a bug in
6604 # the system headers: If _XOPEN_SOURCE and _LARGEFILE_SOURCE are
6605 # defined, but the compiler does not support pragma redefine_extname,
6606 # and _LARGEFILE64_SOURCE is not defined, the headers refer to 64-bit
6607 # structures (such as rlimit64) without declaring them. As a
6608 # work-around, disable LFS on such configurations
6610 use_lfs=yes
6611 { echo "$as_me:$LINENO: checking Solaris LFS bug" >&5
6612 echo $ECHO_N "checking Solaris LFS bug... $ECHO_C" >&6; }
6613 cat >conftest.$ac_ext <<_ACEOF
6614 /* confdefs.h. */
6615 _ACEOF
6616 cat confdefs.h >>conftest.$ac_ext
6617 cat >>conftest.$ac_ext <<_ACEOF
6618 /* end confdefs.h. */
6620 #define _LARGEFILE_SOURCE 1
6621 #define _FILE_OFFSET_BITS 64
6622 #include <sys/resource.h>
6625 main ()
6627 struct rlimit foo;
6629 return 0;
6631 _ACEOF
6632 rm -f conftest.$ac_objext
6633 if { (ac_try="$ac_compile"
6634 case "(($ac_try" in
6635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6636 *) ac_try_echo=$ac_try;;
6637 esac
6638 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6639 (eval "$ac_compile") 2>conftest.er1
6640 ac_status=$?
6641 grep -v '^ *+' conftest.er1 >conftest.err
6642 rm -f conftest.er1
6643 cat conftest.err >&5
6644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6645 (exit $ac_status); } && {
6646 test -z "$ac_c_werror_flag" ||
6647 test ! -s conftest.err
6648 } && test -s conftest.$ac_objext; then
6649 sol_lfs_bug=no
6650 else
6651 echo "$as_me: failed program was:" >&5
6652 sed 's/^/| /' conftest.$ac_ext >&5
6654 sol_lfs_bug=yes
6657 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6658 { echo "$as_me:$LINENO: result: $sol_lfs_bug" >&5
6659 echo "${ECHO_T}$sol_lfs_bug" >&6; }
6660 if test "$sol_lfs_bug" = "yes"; then
6661 use_lfs=no
6664 if test "$use_lfs" = "yes"; then
6665 # Two defines needed to enable largefile support on various platforms
6666 # These may affect some typedefs
6668 cat >>confdefs.h <<\_ACEOF
6669 #define _LARGEFILE_SOURCE 1
6670 _ACEOF
6673 cat >>confdefs.h <<\_ACEOF
6674 #define _FILE_OFFSET_BITS 64
6675 _ACEOF
6679 # Add some code to confdefs.h so that the test for off_t works on SCO
6680 cat >> confdefs.h <<\EOF
6681 #if defined(SCO_DS)
6682 #undef _OFF_T
6683 #endif
6686 # Type availability checks
6687 { echo "$as_me:$LINENO: checking for mode_t" >&5
6688 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; }
6689 if test "${ac_cv_type_mode_t+set}" = set; then
6690 echo $ECHO_N "(cached) $ECHO_C" >&6
6691 else
6692 cat >conftest.$ac_ext <<_ACEOF
6693 /* confdefs.h. */
6694 _ACEOF
6695 cat confdefs.h >>conftest.$ac_ext
6696 cat >>conftest.$ac_ext <<_ACEOF
6697 /* end confdefs.h. */
6698 $ac_includes_default
6699 typedef mode_t ac__type_new_;
6701 main ()
6703 if ((ac__type_new_ *) 0)
6704 return 0;
6705 if (sizeof (ac__type_new_))
6706 return 0;
6708 return 0;
6710 _ACEOF
6711 rm -f conftest.$ac_objext
6712 if { (ac_try="$ac_compile"
6713 case "(($ac_try" in
6714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6715 *) ac_try_echo=$ac_try;;
6716 esac
6717 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6718 (eval "$ac_compile") 2>conftest.er1
6719 ac_status=$?
6720 grep -v '^ *+' conftest.er1 >conftest.err
6721 rm -f conftest.er1
6722 cat conftest.err >&5
6723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6724 (exit $ac_status); } && {
6725 test -z "$ac_c_werror_flag" ||
6726 test ! -s conftest.err
6727 } && test -s conftest.$ac_objext; then
6728 ac_cv_type_mode_t=yes
6729 else
6730 echo "$as_me: failed program was:" >&5
6731 sed 's/^/| /' conftest.$ac_ext >&5
6733 ac_cv_type_mode_t=no
6736 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6738 { echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
6739 echo "${ECHO_T}$ac_cv_type_mode_t" >&6; }
6740 if test $ac_cv_type_mode_t = yes; then
6742 else
6744 cat >>confdefs.h <<_ACEOF
6745 #define mode_t int
6746 _ACEOF
6750 { echo "$as_me:$LINENO: checking for off_t" >&5
6751 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
6752 if test "${ac_cv_type_off_t+set}" = set; then
6753 echo $ECHO_N "(cached) $ECHO_C" >&6
6754 else
6755 cat >conftest.$ac_ext <<_ACEOF
6756 /* confdefs.h. */
6757 _ACEOF
6758 cat confdefs.h >>conftest.$ac_ext
6759 cat >>conftest.$ac_ext <<_ACEOF
6760 /* end confdefs.h. */
6761 $ac_includes_default
6762 typedef off_t ac__type_new_;
6764 main ()
6766 if ((ac__type_new_ *) 0)
6767 return 0;
6768 if (sizeof (ac__type_new_))
6769 return 0;
6771 return 0;
6773 _ACEOF
6774 rm -f conftest.$ac_objext
6775 if { (ac_try="$ac_compile"
6776 case "(($ac_try" in
6777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6778 *) ac_try_echo=$ac_try;;
6779 esac
6780 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6781 (eval "$ac_compile") 2>conftest.er1
6782 ac_status=$?
6783 grep -v '^ *+' conftest.er1 >conftest.err
6784 rm -f conftest.er1
6785 cat conftest.err >&5
6786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6787 (exit $ac_status); } && {
6788 test -z "$ac_c_werror_flag" ||
6789 test ! -s conftest.err
6790 } && test -s conftest.$ac_objext; then
6791 ac_cv_type_off_t=yes
6792 else
6793 echo "$as_me: failed program was:" >&5
6794 sed 's/^/| /' conftest.$ac_ext >&5
6796 ac_cv_type_off_t=no
6799 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6801 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
6802 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
6803 if test $ac_cv_type_off_t = yes; then
6805 else
6807 cat >>confdefs.h <<_ACEOF
6808 #define off_t long int
6809 _ACEOF
6813 { echo "$as_me:$LINENO: checking for pid_t" >&5
6814 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
6815 if test "${ac_cv_type_pid_t+set}" = set; then
6816 echo $ECHO_N "(cached) $ECHO_C" >&6
6817 else
6818 cat >conftest.$ac_ext <<_ACEOF
6819 /* confdefs.h. */
6820 _ACEOF
6821 cat confdefs.h >>conftest.$ac_ext
6822 cat >>conftest.$ac_ext <<_ACEOF
6823 /* end confdefs.h. */
6824 $ac_includes_default
6825 typedef pid_t ac__type_new_;
6827 main ()
6829 if ((ac__type_new_ *) 0)
6830 return 0;
6831 if (sizeof (ac__type_new_))
6832 return 0;
6834 return 0;
6836 _ACEOF
6837 rm -f conftest.$ac_objext
6838 if { (ac_try="$ac_compile"
6839 case "(($ac_try" in
6840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6841 *) ac_try_echo=$ac_try;;
6842 esac
6843 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6844 (eval "$ac_compile") 2>conftest.er1
6845 ac_status=$?
6846 grep -v '^ *+' conftest.er1 >conftest.err
6847 rm -f conftest.er1
6848 cat conftest.err >&5
6849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6850 (exit $ac_status); } && {
6851 test -z "$ac_c_werror_flag" ||
6852 test ! -s conftest.err
6853 } && test -s conftest.$ac_objext; then
6854 ac_cv_type_pid_t=yes
6855 else
6856 echo "$as_me: failed program was:" >&5
6857 sed 's/^/| /' conftest.$ac_ext >&5
6859 ac_cv_type_pid_t=no
6862 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6864 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
6865 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
6866 if test $ac_cv_type_pid_t = yes; then
6868 else
6870 cat >>confdefs.h <<_ACEOF
6871 #define pid_t int
6872 _ACEOF
6876 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
6877 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
6878 if test "${ac_cv_type_signal+set}" = set; then
6879 echo $ECHO_N "(cached) $ECHO_C" >&6
6880 else
6881 cat >conftest.$ac_ext <<_ACEOF
6882 /* confdefs.h. */
6883 _ACEOF
6884 cat confdefs.h >>conftest.$ac_ext
6885 cat >>conftest.$ac_ext <<_ACEOF
6886 /* end confdefs.h. */
6887 #include <sys/types.h>
6888 #include <signal.h>
6891 main ()
6893 return *(signal (0, 0)) (0) == 1;
6895 return 0;
6897 _ACEOF
6898 rm -f conftest.$ac_objext
6899 if { (ac_try="$ac_compile"
6900 case "(($ac_try" in
6901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6902 *) ac_try_echo=$ac_try;;
6903 esac
6904 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6905 (eval "$ac_compile") 2>conftest.er1
6906 ac_status=$?
6907 grep -v '^ *+' conftest.er1 >conftest.err
6908 rm -f conftest.er1
6909 cat conftest.err >&5
6910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6911 (exit $ac_status); } && {
6912 test -z "$ac_c_werror_flag" ||
6913 test ! -s conftest.err
6914 } && test -s conftest.$ac_objext; then
6915 ac_cv_type_signal=int
6916 else
6917 echo "$as_me: failed program was:" >&5
6918 sed 's/^/| /' conftest.$ac_ext >&5
6920 ac_cv_type_signal=void
6923 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6925 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
6926 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
6928 cat >>confdefs.h <<_ACEOF
6929 #define RETSIGTYPE $ac_cv_type_signal
6930 _ACEOF
6933 { echo "$as_me:$LINENO: checking for size_t" >&5
6934 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
6935 if test "${ac_cv_type_size_t+set}" = set; then
6936 echo $ECHO_N "(cached) $ECHO_C" >&6
6937 else
6938 cat >conftest.$ac_ext <<_ACEOF
6939 /* confdefs.h. */
6940 _ACEOF
6941 cat confdefs.h >>conftest.$ac_ext
6942 cat >>conftest.$ac_ext <<_ACEOF
6943 /* end confdefs.h. */
6944 $ac_includes_default
6945 typedef size_t ac__type_new_;
6947 main ()
6949 if ((ac__type_new_ *) 0)
6950 return 0;
6951 if (sizeof (ac__type_new_))
6952 return 0;
6954 return 0;
6956 _ACEOF
6957 rm -f conftest.$ac_objext
6958 if { (ac_try="$ac_compile"
6959 case "(($ac_try" in
6960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6961 *) ac_try_echo=$ac_try;;
6962 esac
6963 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6964 (eval "$ac_compile") 2>conftest.er1
6965 ac_status=$?
6966 grep -v '^ *+' conftest.er1 >conftest.err
6967 rm -f conftest.er1
6968 cat conftest.err >&5
6969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6970 (exit $ac_status); } && {
6971 test -z "$ac_c_werror_flag" ||
6972 test ! -s conftest.err
6973 } && test -s conftest.$ac_objext; then
6974 ac_cv_type_size_t=yes
6975 else
6976 echo "$as_me: failed program was:" >&5
6977 sed 's/^/| /' conftest.$ac_ext >&5
6979 ac_cv_type_size_t=no
6982 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6984 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
6985 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
6986 if test $ac_cv_type_size_t = yes; then
6988 else
6990 cat >>confdefs.h <<_ACEOF
6991 #define size_t unsigned int
6992 _ACEOF
6996 { echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
6997 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
6998 if test "${ac_cv_type_uid_t+set}" = set; then
6999 echo $ECHO_N "(cached) $ECHO_C" >&6
7000 else
7001 cat >conftest.$ac_ext <<_ACEOF
7002 /* confdefs.h. */
7003 _ACEOF
7004 cat confdefs.h >>conftest.$ac_ext
7005 cat >>conftest.$ac_ext <<_ACEOF
7006 /* end confdefs.h. */
7007 #include <sys/types.h>
7009 _ACEOF
7010 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7011 $EGREP "uid_t" >/dev/null 2>&1; then
7012 ac_cv_type_uid_t=yes
7013 else
7014 ac_cv_type_uid_t=no
7016 rm -f conftest*
7019 { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
7020 echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
7021 if test $ac_cv_type_uid_t = no; then
7023 cat >>confdefs.h <<\_ACEOF
7024 #define uid_t int
7025 _ACEOF
7028 cat >>confdefs.h <<\_ACEOF
7029 #define gid_t int
7030 _ACEOF
7035 { echo "$as_me:$LINENO: checking for uint32_t" >&5
7036 echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6; }
7037 if test "${ac_cv_c_uint32_t+set}" = set; then
7038 echo $ECHO_N "(cached) $ECHO_C" >&6
7039 else
7040 ac_cv_c_uint32_t=no
7041 for ac_type in 'uint32_t' 'unsigned int' 'unsigned long int' \
7042 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
7043 cat >conftest.$ac_ext <<_ACEOF
7044 /* confdefs.h. */
7045 _ACEOF
7046 cat confdefs.h >>conftest.$ac_ext
7047 cat >>conftest.$ac_ext <<_ACEOF
7048 /* end confdefs.h. */
7049 $ac_includes_default
7051 main ()
7053 static int test_array [1 - 2 * !(($ac_type) -1 >> (32 - 1) == 1)];
7054 test_array [0] = 0
7057 return 0;
7059 _ACEOF
7060 rm -f conftest.$ac_objext
7061 if { (ac_try="$ac_compile"
7062 case "(($ac_try" in
7063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7064 *) ac_try_echo=$ac_try;;
7065 esac
7066 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7067 (eval "$ac_compile") 2>conftest.er1
7068 ac_status=$?
7069 grep -v '^ *+' conftest.er1 >conftest.err
7070 rm -f conftest.er1
7071 cat conftest.err >&5
7072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7073 (exit $ac_status); } && {
7074 test -z "$ac_c_werror_flag" ||
7075 test ! -s conftest.err
7076 } && test -s conftest.$ac_objext; then
7077 case $ac_type in
7078 uint32_t) ac_cv_c_uint32_t=yes ;;
7079 *) ac_cv_c_uint32_t=$ac_type ;;
7080 esac
7082 else
7083 echo "$as_me: failed program was:" >&5
7084 sed 's/^/| /' conftest.$ac_ext >&5
7089 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7090 test "$ac_cv_c_uint32_t" != no && break
7091 done
7093 { echo "$as_me:$LINENO: result: $ac_cv_c_uint32_t" >&5
7094 echo "${ECHO_T}$ac_cv_c_uint32_t" >&6; }
7095 case $ac_cv_c_uint32_t in #(
7096 no|yes) ;; #(
7099 cat >>confdefs.h <<\_ACEOF
7100 #define _UINT32_T 1
7101 _ACEOF
7104 cat >>confdefs.h <<_ACEOF
7105 #define uint32_t $ac_cv_c_uint32_t
7106 _ACEOF
7108 esac
7111 { echo "$as_me:$LINENO: checking for uint64_t" >&5
7112 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
7113 if test "${ac_cv_c_uint64_t+set}" = set; then
7114 echo $ECHO_N "(cached) $ECHO_C" >&6
7115 else
7116 ac_cv_c_uint64_t=no
7117 for ac_type in 'uint64_t' 'unsigned int' 'unsigned long int' \
7118 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
7119 cat >conftest.$ac_ext <<_ACEOF
7120 /* confdefs.h. */
7121 _ACEOF
7122 cat confdefs.h >>conftest.$ac_ext
7123 cat >>conftest.$ac_ext <<_ACEOF
7124 /* end confdefs.h. */
7125 $ac_includes_default
7127 main ()
7129 static int test_array [1 - 2 * !(($ac_type) -1 >> (64 - 1) == 1)];
7130 test_array [0] = 0
7133 return 0;
7135 _ACEOF
7136 rm -f conftest.$ac_objext
7137 if { (ac_try="$ac_compile"
7138 case "(($ac_try" in
7139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7140 *) ac_try_echo=$ac_try;;
7141 esac
7142 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7143 (eval "$ac_compile") 2>conftest.er1
7144 ac_status=$?
7145 grep -v '^ *+' conftest.er1 >conftest.err
7146 rm -f conftest.er1
7147 cat conftest.err >&5
7148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7149 (exit $ac_status); } && {
7150 test -z "$ac_c_werror_flag" ||
7151 test ! -s conftest.err
7152 } && test -s conftest.$ac_objext; then
7153 case $ac_type in
7154 uint64_t) ac_cv_c_uint64_t=yes ;;
7155 *) ac_cv_c_uint64_t=$ac_type ;;
7156 esac
7158 else
7159 echo "$as_me: failed program was:" >&5
7160 sed 's/^/| /' conftest.$ac_ext >&5
7165 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7166 test "$ac_cv_c_uint64_t" != no && break
7167 done
7169 { echo "$as_me:$LINENO: result: $ac_cv_c_uint64_t" >&5
7170 echo "${ECHO_T}$ac_cv_c_uint64_t" >&6; }
7171 case $ac_cv_c_uint64_t in #(
7172 no|yes) ;; #(
7175 cat >>confdefs.h <<\_ACEOF
7176 #define _UINT64_T 1
7177 _ACEOF
7180 cat >>confdefs.h <<_ACEOF
7181 #define uint64_t $ac_cv_c_uint64_t
7182 _ACEOF
7184 esac
7187 { echo "$as_me:$LINENO: checking for int32_t" >&5
7188 echo $ECHO_N "checking for int32_t... $ECHO_C" >&6; }
7189 if test "${ac_cv_c_int32_t+set}" = set; then
7190 echo $ECHO_N "(cached) $ECHO_C" >&6
7191 else
7192 ac_cv_c_int32_t=no
7193 for ac_type in 'int32_t' 'int' 'long int' \
7194 'long long int' 'short int' 'signed char'; do
7195 cat >conftest.$ac_ext <<_ACEOF
7196 /* confdefs.h. */
7197 _ACEOF
7198 cat confdefs.h >>conftest.$ac_ext
7199 cat >>conftest.$ac_ext <<_ACEOF
7200 /* end confdefs.h. */
7201 $ac_includes_default
7203 main ()
7205 static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << (32 - 2)) - 1) * 2 + 1))];
7206 test_array [0] = 0
7209 return 0;
7211 _ACEOF
7212 rm -f conftest.$ac_objext
7213 if { (ac_try="$ac_compile"
7214 case "(($ac_try" in
7215 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7216 *) ac_try_echo=$ac_try;;
7217 esac
7218 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7219 (eval "$ac_compile") 2>conftest.er1
7220 ac_status=$?
7221 grep -v '^ *+' conftest.er1 >conftest.err
7222 rm -f conftest.er1
7223 cat conftest.err >&5
7224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7225 (exit $ac_status); } && {
7226 test -z "$ac_c_werror_flag" ||
7227 test ! -s conftest.err
7228 } && test -s conftest.$ac_objext; then
7229 cat >conftest.$ac_ext <<_ACEOF
7230 /* confdefs.h. */
7231 _ACEOF
7232 cat confdefs.h >>conftest.$ac_ext
7233 cat >>conftest.$ac_ext <<_ACEOF
7234 /* end confdefs.h. */
7235 $ac_includes_default
7237 main ()
7239 static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << (32 - 2)) - 1) * 2 + 1)
7240 < ($ac_type) (((($ac_type) 1 << (32 - 2)) - 1) * 2 + 2))];
7241 test_array [0] = 0
7244 return 0;
7246 _ACEOF
7247 rm -f conftest.$ac_objext
7248 if { (ac_try="$ac_compile"
7249 case "(($ac_try" in
7250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7251 *) ac_try_echo=$ac_try;;
7252 esac
7253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7254 (eval "$ac_compile") 2>conftest.er1
7255 ac_status=$?
7256 grep -v '^ *+' conftest.er1 >conftest.err
7257 rm -f conftest.er1
7258 cat conftest.err >&5
7259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7260 (exit $ac_status); } && {
7261 test -z "$ac_c_werror_flag" ||
7262 test ! -s conftest.err
7263 } && test -s conftest.$ac_objext; then
7265 else
7266 echo "$as_me: failed program was:" >&5
7267 sed 's/^/| /' conftest.$ac_ext >&5
7269 case $ac_type in
7270 int32_t) ac_cv_c_int32_t=yes ;;
7271 *) ac_cv_c_int32_t=$ac_type ;;
7272 esac
7276 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7277 else
7278 echo "$as_me: failed program was:" >&5
7279 sed 's/^/| /' conftest.$ac_ext >&5
7284 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7285 test "$ac_cv_c_int32_t" != no && break
7286 done
7288 { echo "$as_me:$LINENO: result: $ac_cv_c_int32_t" >&5
7289 echo "${ECHO_T}$ac_cv_c_int32_t" >&6; }
7290 case $ac_cv_c_int32_t in #(
7291 no|yes) ;; #(
7294 cat >>confdefs.h <<_ACEOF
7295 #define int32_t $ac_cv_c_int32_t
7296 _ACEOF
7298 esac
7301 { echo "$as_me:$LINENO: checking for int64_t" >&5
7302 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
7303 if test "${ac_cv_c_int64_t+set}" = set; then
7304 echo $ECHO_N "(cached) $ECHO_C" >&6
7305 else
7306 ac_cv_c_int64_t=no
7307 for ac_type in 'int64_t' 'int' 'long int' \
7308 'long long int' 'short int' 'signed char'; do
7309 cat >conftest.$ac_ext <<_ACEOF
7310 /* confdefs.h. */
7311 _ACEOF
7312 cat confdefs.h >>conftest.$ac_ext
7313 cat >>conftest.$ac_ext <<_ACEOF
7314 /* end confdefs.h. */
7315 $ac_includes_default
7317 main ()
7319 static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << (64 - 2)) - 1) * 2 + 1))];
7320 test_array [0] = 0
7323 return 0;
7325 _ACEOF
7326 rm -f conftest.$ac_objext
7327 if { (ac_try="$ac_compile"
7328 case "(($ac_try" in
7329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7330 *) ac_try_echo=$ac_try;;
7331 esac
7332 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7333 (eval "$ac_compile") 2>conftest.er1
7334 ac_status=$?
7335 grep -v '^ *+' conftest.er1 >conftest.err
7336 rm -f conftest.er1
7337 cat conftest.err >&5
7338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7339 (exit $ac_status); } && {
7340 test -z "$ac_c_werror_flag" ||
7341 test ! -s conftest.err
7342 } && test -s conftest.$ac_objext; then
7343 cat >conftest.$ac_ext <<_ACEOF
7344 /* confdefs.h. */
7345 _ACEOF
7346 cat confdefs.h >>conftest.$ac_ext
7347 cat >>conftest.$ac_ext <<_ACEOF
7348 /* end confdefs.h. */
7349 $ac_includes_default
7351 main ()
7353 static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << (64 - 2)) - 1) * 2 + 1)
7354 < ($ac_type) (((($ac_type) 1 << (64 - 2)) - 1) * 2 + 2))];
7355 test_array [0] = 0
7358 return 0;
7360 _ACEOF
7361 rm -f conftest.$ac_objext
7362 if { (ac_try="$ac_compile"
7363 case "(($ac_try" in
7364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7365 *) ac_try_echo=$ac_try;;
7366 esac
7367 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7368 (eval "$ac_compile") 2>conftest.er1
7369 ac_status=$?
7370 grep -v '^ *+' conftest.er1 >conftest.err
7371 rm -f conftest.er1
7372 cat conftest.err >&5
7373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7374 (exit $ac_status); } && {
7375 test -z "$ac_c_werror_flag" ||
7376 test ! -s conftest.err
7377 } && test -s conftest.$ac_objext; then
7379 else
7380 echo "$as_me: failed program was:" >&5
7381 sed 's/^/| /' conftest.$ac_ext >&5
7383 case $ac_type in
7384 int64_t) ac_cv_c_int64_t=yes ;;
7385 *) ac_cv_c_int64_t=$ac_type ;;
7386 esac
7390 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7391 else
7392 echo "$as_me: failed program was:" >&5
7393 sed 's/^/| /' conftest.$ac_ext >&5
7398 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7399 test "$ac_cv_c_int64_t" != no && break
7400 done
7402 { echo "$as_me:$LINENO: result: $ac_cv_c_int64_t" >&5
7403 echo "${ECHO_T}$ac_cv_c_int64_t" >&6; }
7404 case $ac_cv_c_int64_t in #(
7405 no|yes) ;; #(
7408 cat >>confdefs.h <<_ACEOF
7409 #define int64_t $ac_cv_c_int64_t
7410 _ACEOF
7412 esac
7414 { echo "$as_me:$LINENO: checking for ssize_t" >&5
7415 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
7416 if test "${ac_cv_type_ssize_t+set}" = set; then
7417 echo $ECHO_N "(cached) $ECHO_C" >&6
7418 else
7419 cat >conftest.$ac_ext <<_ACEOF
7420 /* confdefs.h. */
7421 _ACEOF
7422 cat confdefs.h >>conftest.$ac_ext
7423 cat >>conftest.$ac_ext <<_ACEOF
7424 /* end confdefs.h. */
7425 $ac_includes_default
7426 typedef ssize_t ac__type_new_;
7428 main ()
7430 if ((ac__type_new_ *) 0)
7431 return 0;
7432 if (sizeof (ac__type_new_))
7433 return 0;
7435 return 0;
7437 _ACEOF
7438 rm -f conftest.$ac_objext
7439 if { (ac_try="$ac_compile"
7440 case "(($ac_try" in
7441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7442 *) ac_try_echo=$ac_try;;
7443 esac
7444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7445 (eval "$ac_compile") 2>conftest.er1
7446 ac_status=$?
7447 grep -v '^ *+' conftest.er1 >conftest.err
7448 rm -f conftest.er1
7449 cat conftest.err >&5
7450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7451 (exit $ac_status); } && {
7452 test -z "$ac_c_werror_flag" ||
7453 test ! -s conftest.err
7454 } && test -s conftest.$ac_objext; then
7455 ac_cv_type_ssize_t=yes
7456 else
7457 echo "$as_me: failed program was:" >&5
7458 sed 's/^/| /' conftest.$ac_ext >&5
7460 ac_cv_type_ssize_t=no
7463 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7465 { echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
7466 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6; }
7467 if test $ac_cv_type_ssize_t = yes; then
7469 cat >>confdefs.h <<\_ACEOF
7470 #define HAVE_SSIZE_T 1
7471 _ACEOF
7476 # Sizes of various common basic types
7477 # ANSI C requires sizeof(char) == 1, so no need to check it
7478 { echo "$as_me:$LINENO: checking for int" >&5
7479 echo $ECHO_N "checking for int... $ECHO_C" >&6; }
7480 if test "${ac_cv_type_int+set}" = set; then
7481 echo $ECHO_N "(cached) $ECHO_C" >&6
7482 else
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 int ac__type_new_;
7492 main ()
7494 if ((ac__type_new_ *) 0)
7495 return 0;
7496 if (sizeof (ac__type_new_))
7497 return 0;
7499 return 0;
7501 _ACEOF
7502 rm -f conftest.$ac_objext
7503 if { (ac_try="$ac_compile"
7504 case "(($ac_try" in
7505 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7506 *) ac_try_echo=$ac_try;;
7507 esac
7508 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7509 (eval "$ac_compile") 2>conftest.er1
7510 ac_status=$?
7511 grep -v '^ *+' conftest.er1 >conftest.err
7512 rm -f conftest.er1
7513 cat conftest.err >&5
7514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7515 (exit $ac_status); } && {
7516 test -z "$ac_c_werror_flag" ||
7517 test ! -s conftest.err
7518 } && test -s conftest.$ac_objext; then
7519 ac_cv_type_int=yes
7520 else
7521 echo "$as_me: failed program was:" >&5
7522 sed 's/^/| /' conftest.$ac_ext >&5
7524 ac_cv_type_int=no
7527 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7529 { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
7530 echo "${ECHO_T}$ac_cv_type_int" >&6; }
7532 # The cast to long int works around a bug in the HP C Compiler
7533 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7534 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7535 # This bug is HP SR number 8606223364.
7536 { echo "$as_me:$LINENO: checking size of int" >&5
7537 echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
7538 if test "${ac_cv_sizeof_int+set}" = set; then
7539 echo $ECHO_N "(cached) $ECHO_C" >&6
7540 else
7541 if test "$cross_compiling" = yes; then
7542 # Depending upon the size, compute the lo and hi bounds.
7543 cat >conftest.$ac_ext <<_ACEOF
7544 /* confdefs.h. */
7545 _ACEOF
7546 cat confdefs.h >>conftest.$ac_ext
7547 cat >>conftest.$ac_ext <<_ACEOF
7548 /* end confdefs.h. */
7549 $ac_includes_default
7550 typedef int ac__type_sizeof_;
7552 main ()
7554 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
7555 test_array [0] = 0
7558 return 0;
7560 _ACEOF
7561 rm -f conftest.$ac_objext
7562 if { (ac_try="$ac_compile"
7563 case "(($ac_try" in
7564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7565 *) ac_try_echo=$ac_try;;
7566 esac
7567 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7568 (eval "$ac_compile") 2>conftest.er1
7569 ac_status=$?
7570 grep -v '^ *+' conftest.er1 >conftest.err
7571 rm -f conftest.er1
7572 cat conftest.err >&5
7573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7574 (exit $ac_status); } && {
7575 test -z "$ac_c_werror_flag" ||
7576 test ! -s conftest.err
7577 } && test -s conftest.$ac_objext; then
7578 ac_lo=0 ac_mid=0
7579 while :; do
7580 cat >conftest.$ac_ext <<_ACEOF
7581 /* confdefs.h. */
7582 _ACEOF
7583 cat confdefs.h >>conftest.$ac_ext
7584 cat >>conftest.$ac_ext <<_ACEOF
7585 /* end confdefs.h. */
7586 $ac_includes_default
7587 typedef int ac__type_sizeof_;
7589 main ()
7591 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
7592 test_array [0] = 0
7595 return 0;
7597 _ACEOF
7598 rm -f conftest.$ac_objext
7599 if { (ac_try="$ac_compile"
7600 case "(($ac_try" in
7601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7602 *) ac_try_echo=$ac_try;;
7603 esac
7604 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7605 (eval "$ac_compile") 2>conftest.er1
7606 ac_status=$?
7607 grep -v '^ *+' conftest.er1 >conftest.err
7608 rm -f conftest.er1
7609 cat conftest.err >&5
7610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7611 (exit $ac_status); } && {
7612 test -z "$ac_c_werror_flag" ||
7613 test ! -s conftest.err
7614 } && test -s conftest.$ac_objext; then
7615 ac_hi=$ac_mid; break
7616 else
7617 echo "$as_me: failed program was:" >&5
7618 sed 's/^/| /' conftest.$ac_ext >&5
7620 ac_lo=`expr $ac_mid + 1`
7621 if test $ac_lo -le $ac_mid; then
7622 ac_lo= ac_hi=
7623 break
7625 ac_mid=`expr 2 '*' $ac_mid + 1`
7628 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7629 done
7630 else
7631 echo "$as_me: failed program was:" >&5
7632 sed 's/^/| /' conftest.$ac_ext >&5
7634 cat >conftest.$ac_ext <<_ACEOF
7635 /* confdefs.h. */
7636 _ACEOF
7637 cat confdefs.h >>conftest.$ac_ext
7638 cat >>conftest.$ac_ext <<_ACEOF
7639 /* end confdefs.h. */
7640 $ac_includes_default
7641 typedef int ac__type_sizeof_;
7643 main ()
7645 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
7646 test_array [0] = 0
7649 return 0;
7651 _ACEOF
7652 rm -f conftest.$ac_objext
7653 if { (ac_try="$ac_compile"
7654 case "(($ac_try" in
7655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7656 *) ac_try_echo=$ac_try;;
7657 esac
7658 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7659 (eval "$ac_compile") 2>conftest.er1
7660 ac_status=$?
7661 grep -v '^ *+' conftest.er1 >conftest.err
7662 rm -f conftest.er1
7663 cat conftest.err >&5
7664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7665 (exit $ac_status); } && {
7666 test -z "$ac_c_werror_flag" ||
7667 test ! -s conftest.err
7668 } && test -s conftest.$ac_objext; then
7669 ac_hi=-1 ac_mid=-1
7670 while :; do
7671 cat >conftest.$ac_ext <<_ACEOF
7672 /* confdefs.h. */
7673 _ACEOF
7674 cat confdefs.h >>conftest.$ac_ext
7675 cat >>conftest.$ac_ext <<_ACEOF
7676 /* end confdefs.h. */
7677 $ac_includes_default
7678 typedef int ac__type_sizeof_;
7680 main ()
7682 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
7683 test_array [0] = 0
7686 return 0;
7688 _ACEOF
7689 rm -f conftest.$ac_objext
7690 if { (ac_try="$ac_compile"
7691 case "(($ac_try" in
7692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7693 *) ac_try_echo=$ac_try;;
7694 esac
7695 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7696 (eval "$ac_compile") 2>conftest.er1
7697 ac_status=$?
7698 grep -v '^ *+' conftest.er1 >conftest.err
7699 rm -f conftest.er1
7700 cat conftest.err >&5
7701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7702 (exit $ac_status); } && {
7703 test -z "$ac_c_werror_flag" ||
7704 test ! -s conftest.err
7705 } && test -s conftest.$ac_objext; then
7706 ac_lo=$ac_mid; break
7707 else
7708 echo "$as_me: failed program was:" >&5
7709 sed 's/^/| /' conftest.$ac_ext >&5
7711 ac_hi=`expr '(' $ac_mid ')' - 1`
7712 if test $ac_mid -le $ac_hi; then
7713 ac_lo= ac_hi=
7714 break
7716 ac_mid=`expr 2 '*' $ac_mid`
7719 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7720 done
7721 else
7722 echo "$as_me: failed program was:" >&5
7723 sed 's/^/| /' conftest.$ac_ext >&5
7725 ac_lo= ac_hi=
7728 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7731 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7732 # Binary search between lo and hi bounds.
7733 while test "x$ac_lo" != "x$ac_hi"; do
7734 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7735 cat >conftest.$ac_ext <<_ACEOF
7736 /* confdefs.h. */
7737 _ACEOF
7738 cat confdefs.h >>conftest.$ac_ext
7739 cat >>conftest.$ac_ext <<_ACEOF
7740 /* end confdefs.h. */
7741 $ac_includes_default
7742 typedef int ac__type_sizeof_;
7744 main ()
7746 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
7747 test_array [0] = 0
7750 return 0;
7752 _ACEOF
7753 rm -f conftest.$ac_objext
7754 if { (ac_try="$ac_compile"
7755 case "(($ac_try" in
7756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7757 *) ac_try_echo=$ac_try;;
7758 esac
7759 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7760 (eval "$ac_compile") 2>conftest.er1
7761 ac_status=$?
7762 grep -v '^ *+' conftest.er1 >conftest.err
7763 rm -f conftest.er1
7764 cat conftest.err >&5
7765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7766 (exit $ac_status); } && {
7767 test -z "$ac_c_werror_flag" ||
7768 test ! -s conftest.err
7769 } && test -s conftest.$ac_objext; then
7770 ac_hi=$ac_mid
7771 else
7772 echo "$as_me: failed program was:" >&5
7773 sed 's/^/| /' conftest.$ac_ext >&5
7775 ac_lo=`expr '(' $ac_mid ')' + 1`
7778 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7779 done
7780 case $ac_lo in
7781 ?*) ac_cv_sizeof_int=$ac_lo;;
7782 '') if test "$ac_cv_type_int" = yes; then
7783 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
7784 See \`config.log' for more details." >&5
7785 echo "$as_me: error: cannot compute sizeof (int)
7786 See \`config.log' for more details." >&2;}
7787 { (exit 77); exit 77; }; }
7788 else
7789 ac_cv_sizeof_int=0
7790 fi ;;
7791 esac
7792 else
7793 cat >conftest.$ac_ext <<_ACEOF
7794 /* confdefs.h. */
7795 _ACEOF
7796 cat confdefs.h >>conftest.$ac_ext
7797 cat >>conftest.$ac_ext <<_ACEOF
7798 /* end confdefs.h. */
7799 $ac_includes_default
7800 typedef int ac__type_sizeof_;
7801 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
7802 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
7803 #include <stdio.h>
7804 #include <stdlib.h>
7806 main ()
7809 FILE *f = fopen ("conftest.val", "w");
7810 if (! f)
7811 return 1;
7812 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
7814 long int i = longval ();
7815 if (i != ((long int) (sizeof (ac__type_sizeof_))))
7816 return 1;
7817 fprintf (f, "%ld\n", i);
7819 else
7821 unsigned long int i = ulongval ();
7822 if (i != ((long int) (sizeof (ac__type_sizeof_))))
7823 return 1;
7824 fprintf (f, "%lu\n", i);
7826 return ferror (f) || fclose (f) != 0;
7829 return 0;
7831 _ACEOF
7832 rm -f conftest$ac_exeext
7833 if { (ac_try="$ac_link"
7834 case "(($ac_try" in
7835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7836 *) ac_try_echo=$ac_try;;
7837 esac
7838 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7839 (eval "$ac_link") 2>&5
7840 ac_status=$?
7841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7842 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7843 { (case "(($ac_try" in
7844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7845 *) ac_try_echo=$ac_try;;
7846 esac
7847 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7848 (eval "$ac_try") 2>&5
7849 ac_status=$?
7850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7851 (exit $ac_status); }; }; then
7852 ac_cv_sizeof_int=`cat conftest.val`
7853 else
7854 echo "$as_me: program exited with status $ac_status" >&5
7855 echo "$as_me: failed program was:" >&5
7856 sed 's/^/| /' conftest.$ac_ext >&5
7858 ( exit $ac_status )
7859 if test "$ac_cv_type_int" = yes; then
7860 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
7861 See \`config.log' for more details." >&5
7862 echo "$as_me: error: cannot compute sizeof (int)
7863 See \`config.log' for more details." >&2;}
7864 { (exit 77); exit 77; }; }
7865 else
7866 ac_cv_sizeof_int=0
7869 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7871 rm -f conftest.val
7873 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
7874 echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
7878 cat >>confdefs.h <<_ACEOF
7879 #define SIZEOF_INT $ac_cv_sizeof_int
7880 _ACEOF
7883 { echo "$as_me:$LINENO: checking for long" >&5
7884 echo $ECHO_N "checking for long... $ECHO_C" >&6; }
7885 if test "${ac_cv_type_long+set}" = set; then
7886 echo $ECHO_N "(cached) $ECHO_C" >&6
7887 else
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 long ac__type_new_;
7897 main ()
7899 if ((ac__type_new_ *) 0)
7900 return 0;
7901 if (sizeof (ac__type_new_))
7902 return 0;
7904 return 0;
7906 _ACEOF
7907 rm -f conftest.$ac_objext
7908 if { (ac_try="$ac_compile"
7909 case "(($ac_try" in
7910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7911 *) ac_try_echo=$ac_try;;
7912 esac
7913 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7914 (eval "$ac_compile") 2>conftest.er1
7915 ac_status=$?
7916 grep -v '^ *+' conftest.er1 >conftest.err
7917 rm -f conftest.er1
7918 cat conftest.err >&5
7919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7920 (exit $ac_status); } && {
7921 test -z "$ac_c_werror_flag" ||
7922 test ! -s conftest.err
7923 } && test -s conftest.$ac_objext; then
7924 ac_cv_type_long=yes
7925 else
7926 echo "$as_me: failed program was:" >&5
7927 sed 's/^/| /' conftest.$ac_ext >&5
7929 ac_cv_type_long=no
7932 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7934 { echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
7935 echo "${ECHO_T}$ac_cv_type_long" >&6; }
7937 # The cast to long int works around a bug in the HP C Compiler
7938 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7939 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7940 # This bug is HP SR number 8606223364.
7941 { echo "$as_me:$LINENO: checking size of long" >&5
7942 echo $ECHO_N "checking size of long... $ECHO_C" >&6; }
7943 if test "${ac_cv_sizeof_long+set}" = set; then
7944 echo $ECHO_N "(cached) $ECHO_C" >&6
7945 else
7946 if test "$cross_compiling" = yes; then
7947 # Depending upon the size, compute the lo and hi bounds.
7948 cat >conftest.$ac_ext <<_ACEOF
7949 /* confdefs.h. */
7950 _ACEOF
7951 cat confdefs.h >>conftest.$ac_ext
7952 cat >>conftest.$ac_ext <<_ACEOF
7953 /* end confdefs.h. */
7954 $ac_includes_default
7955 typedef long ac__type_sizeof_;
7957 main ()
7959 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
7960 test_array [0] = 0
7963 return 0;
7965 _ACEOF
7966 rm -f conftest.$ac_objext
7967 if { (ac_try="$ac_compile"
7968 case "(($ac_try" in
7969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7970 *) ac_try_echo=$ac_try;;
7971 esac
7972 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7973 (eval "$ac_compile") 2>conftest.er1
7974 ac_status=$?
7975 grep -v '^ *+' conftest.er1 >conftest.err
7976 rm -f conftest.er1
7977 cat conftest.err >&5
7978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7979 (exit $ac_status); } && {
7980 test -z "$ac_c_werror_flag" ||
7981 test ! -s conftest.err
7982 } && test -s conftest.$ac_objext; then
7983 ac_lo=0 ac_mid=0
7984 while :; do
7985 cat >conftest.$ac_ext <<_ACEOF
7986 /* confdefs.h. */
7987 _ACEOF
7988 cat confdefs.h >>conftest.$ac_ext
7989 cat >>conftest.$ac_ext <<_ACEOF
7990 /* end confdefs.h. */
7991 $ac_includes_default
7992 typedef long ac__type_sizeof_;
7994 main ()
7996 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
7997 test_array [0] = 0
8000 return 0;
8002 _ACEOF
8003 rm -f conftest.$ac_objext
8004 if { (ac_try="$ac_compile"
8005 case "(($ac_try" in
8006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8007 *) ac_try_echo=$ac_try;;
8008 esac
8009 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8010 (eval "$ac_compile") 2>conftest.er1
8011 ac_status=$?
8012 grep -v '^ *+' conftest.er1 >conftest.err
8013 rm -f conftest.er1
8014 cat conftest.err >&5
8015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8016 (exit $ac_status); } && {
8017 test -z "$ac_c_werror_flag" ||
8018 test ! -s conftest.err
8019 } && test -s conftest.$ac_objext; then
8020 ac_hi=$ac_mid; break
8021 else
8022 echo "$as_me: failed program was:" >&5
8023 sed 's/^/| /' conftest.$ac_ext >&5
8025 ac_lo=`expr $ac_mid + 1`
8026 if test $ac_lo -le $ac_mid; then
8027 ac_lo= ac_hi=
8028 break
8030 ac_mid=`expr 2 '*' $ac_mid + 1`
8033 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8034 done
8035 else
8036 echo "$as_me: failed program was:" >&5
8037 sed 's/^/| /' conftest.$ac_ext >&5
8039 cat >conftest.$ac_ext <<_ACEOF
8040 /* confdefs.h. */
8041 _ACEOF
8042 cat confdefs.h >>conftest.$ac_ext
8043 cat >>conftest.$ac_ext <<_ACEOF
8044 /* end confdefs.h. */
8045 $ac_includes_default
8046 typedef long ac__type_sizeof_;
8048 main ()
8050 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
8051 test_array [0] = 0
8054 return 0;
8056 _ACEOF
8057 rm -f conftest.$ac_objext
8058 if { (ac_try="$ac_compile"
8059 case "(($ac_try" in
8060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8061 *) ac_try_echo=$ac_try;;
8062 esac
8063 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8064 (eval "$ac_compile") 2>conftest.er1
8065 ac_status=$?
8066 grep -v '^ *+' conftest.er1 >conftest.err
8067 rm -f conftest.er1
8068 cat conftest.err >&5
8069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8070 (exit $ac_status); } && {
8071 test -z "$ac_c_werror_flag" ||
8072 test ! -s conftest.err
8073 } && test -s conftest.$ac_objext; then
8074 ac_hi=-1 ac_mid=-1
8075 while :; do
8076 cat >conftest.$ac_ext <<_ACEOF
8077 /* confdefs.h. */
8078 _ACEOF
8079 cat confdefs.h >>conftest.$ac_ext
8080 cat >>conftest.$ac_ext <<_ACEOF
8081 /* end confdefs.h. */
8082 $ac_includes_default
8083 typedef long ac__type_sizeof_;
8085 main ()
8087 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
8088 test_array [0] = 0
8091 return 0;
8093 _ACEOF
8094 rm -f conftest.$ac_objext
8095 if { (ac_try="$ac_compile"
8096 case "(($ac_try" in
8097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8098 *) ac_try_echo=$ac_try;;
8099 esac
8100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8101 (eval "$ac_compile") 2>conftest.er1
8102 ac_status=$?
8103 grep -v '^ *+' conftest.er1 >conftest.err
8104 rm -f conftest.er1
8105 cat conftest.err >&5
8106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8107 (exit $ac_status); } && {
8108 test -z "$ac_c_werror_flag" ||
8109 test ! -s conftest.err
8110 } && test -s conftest.$ac_objext; then
8111 ac_lo=$ac_mid; break
8112 else
8113 echo "$as_me: failed program was:" >&5
8114 sed 's/^/| /' conftest.$ac_ext >&5
8116 ac_hi=`expr '(' $ac_mid ')' - 1`
8117 if test $ac_mid -le $ac_hi; then
8118 ac_lo= ac_hi=
8119 break
8121 ac_mid=`expr 2 '*' $ac_mid`
8124 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8125 done
8126 else
8127 echo "$as_me: failed program was:" >&5
8128 sed 's/^/| /' conftest.$ac_ext >&5
8130 ac_lo= ac_hi=
8133 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8136 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8137 # Binary search between lo and hi bounds.
8138 while test "x$ac_lo" != "x$ac_hi"; do
8139 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8140 cat >conftest.$ac_ext <<_ACEOF
8141 /* confdefs.h. */
8142 _ACEOF
8143 cat confdefs.h >>conftest.$ac_ext
8144 cat >>conftest.$ac_ext <<_ACEOF
8145 /* end confdefs.h. */
8146 $ac_includes_default
8147 typedef long ac__type_sizeof_;
8149 main ()
8151 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8152 test_array [0] = 0
8155 return 0;
8157 _ACEOF
8158 rm -f conftest.$ac_objext
8159 if { (ac_try="$ac_compile"
8160 case "(($ac_try" in
8161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8162 *) ac_try_echo=$ac_try;;
8163 esac
8164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8165 (eval "$ac_compile") 2>conftest.er1
8166 ac_status=$?
8167 grep -v '^ *+' conftest.er1 >conftest.err
8168 rm -f conftest.er1
8169 cat conftest.err >&5
8170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8171 (exit $ac_status); } && {
8172 test -z "$ac_c_werror_flag" ||
8173 test ! -s conftest.err
8174 } && test -s conftest.$ac_objext; then
8175 ac_hi=$ac_mid
8176 else
8177 echo "$as_me: failed program was:" >&5
8178 sed 's/^/| /' conftest.$ac_ext >&5
8180 ac_lo=`expr '(' $ac_mid ')' + 1`
8183 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8184 done
8185 case $ac_lo in
8186 ?*) ac_cv_sizeof_long=$ac_lo;;
8187 '') if test "$ac_cv_type_long" = yes; then
8188 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
8189 See \`config.log' for more details." >&5
8190 echo "$as_me: error: cannot compute sizeof (long)
8191 See \`config.log' for more details." >&2;}
8192 { (exit 77); exit 77; }; }
8193 else
8194 ac_cv_sizeof_long=0
8195 fi ;;
8196 esac
8197 else
8198 cat >conftest.$ac_ext <<_ACEOF
8199 /* confdefs.h. */
8200 _ACEOF
8201 cat confdefs.h >>conftest.$ac_ext
8202 cat >>conftest.$ac_ext <<_ACEOF
8203 /* end confdefs.h. */
8204 $ac_includes_default
8205 typedef long ac__type_sizeof_;
8206 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
8207 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
8208 #include <stdio.h>
8209 #include <stdlib.h>
8211 main ()
8214 FILE *f = fopen ("conftest.val", "w");
8215 if (! f)
8216 return 1;
8217 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
8219 long int i = longval ();
8220 if (i != ((long int) (sizeof (ac__type_sizeof_))))
8221 return 1;
8222 fprintf (f, "%ld\n", i);
8224 else
8226 unsigned long int i = ulongval ();
8227 if (i != ((long int) (sizeof (ac__type_sizeof_))))
8228 return 1;
8229 fprintf (f, "%lu\n", i);
8231 return ferror (f) || fclose (f) != 0;
8234 return 0;
8236 _ACEOF
8237 rm -f conftest$ac_exeext
8238 if { (ac_try="$ac_link"
8239 case "(($ac_try" in
8240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8241 *) ac_try_echo=$ac_try;;
8242 esac
8243 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8244 (eval "$ac_link") 2>&5
8245 ac_status=$?
8246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8247 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8248 { (case "(($ac_try" in
8249 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8250 *) ac_try_echo=$ac_try;;
8251 esac
8252 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8253 (eval "$ac_try") 2>&5
8254 ac_status=$?
8255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8256 (exit $ac_status); }; }; then
8257 ac_cv_sizeof_long=`cat conftest.val`
8258 else
8259 echo "$as_me: program exited with status $ac_status" >&5
8260 echo "$as_me: failed program was:" >&5
8261 sed 's/^/| /' conftest.$ac_ext >&5
8263 ( exit $ac_status )
8264 if test "$ac_cv_type_long" = yes; then
8265 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
8266 See \`config.log' for more details." >&5
8267 echo "$as_me: error: cannot compute sizeof (long)
8268 See \`config.log' for more details." >&2;}
8269 { (exit 77); exit 77; }; }
8270 else
8271 ac_cv_sizeof_long=0
8274 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8276 rm -f conftest.val
8278 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
8279 echo "${ECHO_T}$ac_cv_sizeof_long" >&6; }
8283 cat >>confdefs.h <<_ACEOF
8284 #define SIZEOF_LONG $ac_cv_sizeof_long
8285 _ACEOF
8288 { echo "$as_me:$LINENO: checking for void *" >&5
8289 echo $ECHO_N "checking for void *... $ECHO_C" >&6; }
8290 if test "${ac_cv_type_void_p+set}" = set; then
8291 echo $ECHO_N "(cached) $ECHO_C" >&6
8292 else
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 void * ac__type_new_;
8302 main ()
8304 if ((ac__type_new_ *) 0)
8305 return 0;
8306 if (sizeof (ac__type_new_))
8307 return 0;
8309 return 0;
8311 _ACEOF
8312 rm -f conftest.$ac_objext
8313 if { (ac_try="$ac_compile"
8314 case "(($ac_try" in
8315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8316 *) ac_try_echo=$ac_try;;
8317 esac
8318 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8319 (eval "$ac_compile") 2>conftest.er1
8320 ac_status=$?
8321 grep -v '^ *+' conftest.er1 >conftest.err
8322 rm -f conftest.er1
8323 cat conftest.err >&5
8324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8325 (exit $ac_status); } && {
8326 test -z "$ac_c_werror_flag" ||
8327 test ! -s conftest.err
8328 } && test -s conftest.$ac_objext; then
8329 ac_cv_type_void_p=yes
8330 else
8331 echo "$as_me: failed program was:" >&5
8332 sed 's/^/| /' conftest.$ac_ext >&5
8334 ac_cv_type_void_p=no
8337 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8339 { echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
8340 echo "${ECHO_T}$ac_cv_type_void_p" >&6; }
8342 # The cast to long int works around a bug in the HP C Compiler
8343 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8344 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8345 # This bug is HP SR number 8606223364.
8346 { echo "$as_me:$LINENO: checking size of void *" >&5
8347 echo $ECHO_N "checking size of void *... $ECHO_C" >&6; }
8348 if test "${ac_cv_sizeof_void_p+set}" = set; then
8349 echo $ECHO_N "(cached) $ECHO_C" >&6
8350 else
8351 if test "$cross_compiling" = yes; then
8352 # Depending upon the size, compute the lo and hi bounds.
8353 cat >conftest.$ac_ext <<_ACEOF
8354 /* confdefs.h. */
8355 _ACEOF
8356 cat confdefs.h >>conftest.$ac_ext
8357 cat >>conftest.$ac_ext <<_ACEOF
8358 /* end confdefs.h. */
8359 $ac_includes_default
8360 typedef void * ac__type_sizeof_;
8362 main ()
8364 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
8365 test_array [0] = 0
8368 return 0;
8370 _ACEOF
8371 rm -f conftest.$ac_objext
8372 if { (ac_try="$ac_compile"
8373 case "(($ac_try" in
8374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8375 *) ac_try_echo=$ac_try;;
8376 esac
8377 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8378 (eval "$ac_compile") 2>conftest.er1
8379 ac_status=$?
8380 grep -v '^ *+' conftest.er1 >conftest.err
8381 rm -f conftest.er1
8382 cat conftest.err >&5
8383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8384 (exit $ac_status); } && {
8385 test -z "$ac_c_werror_flag" ||
8386 test ! -s conftest.err
8387 } && test -s conftest.$ac_objext; then
8388 ac_lo=0 ac_mid=0
8389 while :; do
8390 cat >conftest.$ac_ext <<_ACEOF
8391 /* confdefs.h. */
8392 _ACEOF
8393 cat confdefs.h >>conftest.$ac_ext
8394 cat >>conftest.$ac_ext <<_ACEOF
8395 /* end confdefs.h. */
8396 $ac_includes_default
8397 typedef void * ac__type_sizeof_;
8399 main ()
8401 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8402 test_array [0] = 0
8405 return 0;
8407 _ACEOF
8408 rm -f conftest.$ac_objext
8409 if { (ac_try="$ac_compile"
8410 case "(($ac_try" in
8411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8412 *) ac_try_echo=$ac_try;;
8413 esac
8414 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8415 (eval "$ac_compile") 2>conftest.er1
8416 ac_status=$?
8417 grep -v '^ *+' conftest.er1 >conftest.err
8418 rm -f conftest.er1
8419 cat conftest.err >&5
8420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8421 (exit $ac_status); } && {
8422 test -z "$ac_c_werror_flag" ||
8423 test ! -s conftest.err
8424 } && test -s conftest.$ac_objext; then
8425 ac_hi=$ac_mid; break
8426 else
8427 echo "$as_me: failed program was:" >&5
8428 sed 's/^/| /' conftest.$ac_ext >&5
8430 ac_lo=`expr $ac_mid + 1`
8431 if test $ac_lo -le $ac_mid; then
8432 ac_lo= ac_hi=
8433 break
8435 ac_mid=`expr 2 '*' $ac_mid + 1`
8438 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8439 done
8440 else
8441 echo "$as_me: failed program was:" >&5
8442 sed 's/^/| /' conftest.$ac_ext >&5
8444 cat >conftest.$ac_ext <<_ACEOF
8445 /* confdefs.h. */
8446 _ACEOF
8447 cat confdefs.h >>conftest.$ac_ext
8448 cat >>conftest.$ac_ext <<_ACEOF
8449 /* end confdefs.h. */
8450 $ac_includes_default
8451 typedef void * ac__type_sizeof_;
8453 main ()
8455 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
8456 test_array [0] = 0
8459 return 0;
8461 _ACEOF
8462 rm -f conftest.$ac_objext
8463 if { (ac_try="$ac_compile"
8464 case "(($ac_try" in
8465 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8466 *) ac_try_echo=$ac_try;;
8467 esac
8468 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8469 (eval "$ac_compile") 2>conftest.er1
8470 ac_status=$?
8471 grep -v '^ *+' conftest.er1 >conftest.err
8472 rm -f conftest.er1
8473 cat conftest.err >&5
8474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8475 (exit $ac_status); } && {
8476 test -z "$ac_c_werror_flag" ||
8477 test ! -s conftest.err
8478 } && test -s conftest.$ac_objext; then
8479 ac_hi=-1 ac_mid=-1
8480 while :; do
8481 cat >conftest.$ac_ext <<_ACEOF
8482 /* confdefs.h. */
8483 _ACEOF
8484 cat confdefs.h >>conftest.$ac_ext
8485 cat >>conftest.$ac_ext <<_ACEOF
8486 /* end confdefs.h. */
8487 $ac_includes_default
8488 typedef void * ac__type_sizeof_;
8490 main ()
8492 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
8493 test_array [0] = 0
8496 return 0;
8498 _ACEOF
8499 rm -f conftest.$ac_objext
8500 if { (ac_try="$ac_compile"
8501 case "(($ac_try" in
8502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8503 *) ac_try_echo=$ac_try;;
8504 esac
8505 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8506 (eval "$ac_compile") 2>conftest.er1
8507 ac_status=$?
8508 grep -v '^ *+' conftest.er1 >conftest.err
8509 rm -f conftest.er1
8510 cat conftest.err >&5
8511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8512 (exit $ac_status); } && {
8513 test -z "$ac_c_werror_flag" ||
8514 test ! -s conftest.err
8515 } && test -s conftest.$ac_objext; then
8516 ac_lo=$ac_mid; break
8517 else
8518 echo "$as_me: failed program was:" >&5
8519 sed 's/^/| /' conftest.$ac_ext >&5
8521 ac_hi=`expr '(' $ac_mid ')' - 1`
8522 if test $ac_mid -le $ac_hi; then
8523 ac_lo= ac_hi=
8524 break
8526 ac_mid=`expr 2 '*' $ac_mid`
8529 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8530 done
8531 else
8532 echo "$as_me: failed program was:" >&5
8533 sed 's/^/| /' conftest.$ac_ext >&5
8535 ac_lo= ac_hi=
8538 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8541 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8542 # Binary search between lo and hi bounds.
8543 while test "x$ac_lo" != "x$ac_hi"; do
8544 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8545 cat >conftest.$ac_ext <<_ACEOF
8546 /* confdefs.h. */
8547 _ACEOF
8548 cat confdefs.h >>conftest.$ac_ext
8549 cat >>conftest.$ac_ext <<_ACEOF
8550 /* end confdefs.h. */
8551 $ac_includes_default
8552 typedef void * ac__type_sizeof_;
8554 main ()
8556 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8557 test_array [0] = 0
8560 return 0;
8562 _ACEOF
8563 rm -f conftest.$ac_objext
8564 if { (ac_try="$ac_compile"
8565 case "(($ac_try" in
8566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8567 *) ac_try_echo=$ac_try;;
8568 esac
8569 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8570 (eval "$ac_compile") 2>conftest.er1
8571 ac_status=$?
8572 grep -v '^ *+' conftest.er1 >conftest.err
8573 rm -f conftest.er1
8574 cat conftest.err >&5
8575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8576 (exit $ac_status); } && {
8577 test -z "$ac_c_werror_flag" ||
8578 test ! -s conftest.err
8579 } && test -s conftest.$ac_objext; then
8580 ac_hi=$ac_mid
8581 else
8582 echo "$as_me: failed program was:" >&5
8583 sed 's/^/| /' conftest.$ac_ext >&5
8585 ac_lo=`expr '(' $ac_mid ')' + 1`
8588 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8589 done
8590 case $ac_lo in
8591 ?*) ac_cv_sizeof_void_p=$ac_lo;;
8592 '') if test "$ac_cv_type_void_p" = yes; then
8593 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
8594 See \`config.log' for more details." >&5
8595 echo "$as_me: error: cannot compute sizeof (void *)
8596 See \`config.log' for more details." >&2;}
8597 { (exit 77); exit 77; }; }
8598 else
8599 ac_cv_sizeof_void_p=0
8600 fi ;;
8601 esac
8602 else
8603 cat >conftest.$ac_ext <<_ACEOF
8604 /* confdefs.h. */
8605 _ACEOF
8606 cat confdefs.h >>conftest.$ac_ext
8607 cat >>conftest.$ac_ext <<_ACEOF
8608 /* end confdefs.h. */
8609 $ac_includes_default
8610 typedef void * ac__type_sizeof_;
8611 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
8612 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
8613 #include <stdio.h>
8614 #include <stdlib.h>
8616 main ()
8619 FILE *f = fopen ("conftest.val", "w");
8620 if (! f)
8621 return 1;
8622 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
8624 long int i = longval ();
8625 if (i != ((long int) (sizeof (ac__type_sizeof_))))
8626 return 1;
8627 fprintf (f, "%ld\n", i);
8629 else
8631 unsigned long int i = ulongval ();
8632 if (i != ((long int) (sizeof (ac__type_sizeof_))))
8633 return 1;
8634 fprintf (f, "%lu\n", i);
8636 return ferror (f) || fclose (f) != 0;
8639 return 0;
8641 _ACEOF
8642 rm -f conftest$ac_exeext
8643 if { (ac_try="$ac_link"
8644 case "(($ac_try" in
8645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8646 *) ac_try_echo=$ac_try;;
8647 esac
8648 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8649 (eval "$ac_link") 2>&5
8650 ac_status=$?
8651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8652 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8653 { (case "(($ac_try" in
8654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8655 *) ac_try_echo=$ac_try;;
8656 esac
8657 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8658 (eval "$ac_try") 2>&5
8659 ac_status=$?
8660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8661 (exit $ac_status); }; }; then
8662 ac_cv_sizeof_void_p=`cat conftest.val`
8663 else
8664 echo "$as_me: program exited with status $ac_status" >&5
8665 echo "$as_me: failed program was:" >&5
8666 sed 's/^/| /' conftest.$ac_ext >&5
8668 ( exit $ac_status )
8669 if test "$ac_cv_type_void_p" = yes; then
8670 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
8671 See \`config.log' for more details." >&5
8672 echo "$as_me: error: cannot compute sizeof (void *)
8673 See \`config.log' for more details." >&2;}
8674 { (exit 77); exit 77; }; }
8675 else
8676 ac_cv_sizeof_void_p=0
8679 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8681 rm -f conftest.val
8683 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
8684 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6; }
8688 cat >>confdefs.h <<_ACEOF
8689 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
8690 _ACEOF
8693 { echo "$as_me:$LINENO: checking for short" >&5
8694 echo $ECHO_N "checking for short... $ECHO_C" >&6; }
8695 if test "${ac_cv_type_short+set}" = set; then
8696 echo $ECHO_N "(cached) $ECHO_C" >&6
8697 else
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 short ac__type_new_;
8707 main ()
8709 if ((ac__type_new_ *) 0)
8710 return 0;
8711 if (sizeof (ac__type_new_))
8712 return 0;
8714 return 0;
8716 _ACEOF
8717 rm -f conftest.$ac_objext
8718 if { (ac_try="$ac_compile"
8719 case "(($ac_try" in
8720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8721 *) ac_try_echo=$ac_try;;
8722 esac
8723 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8724 (eval "$ac_compile") 2>conftest.er1
8725 ac_status=$?
8726 grep -v '^ *+' conftest.er1 >conftest.err
8727 rm -f conftest.er1
8728 cat conftest.err >&5
8729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8730 (exit $ac_status); } && {
8731 test -z "$ac_c_werror_flag" ||
8732 test ! -s conftest.err
8733 } && test -s conftest.$ac_objext; then
8734 ac_cv_type_short=yes
8735 else
8736 echo "$as_me: failed program was:" >&5
8737 sed 's/^/| /' conftest.$ac_ext >&5
8739 ac_cv_type_short=no
8742 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8744 { echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
8745 echo "${ECHO_T}$ac_cv_type_short" >&6; }
8747 # The cast to long int works around a bug in the HP C Compiler
8748 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8749 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8750 # This bug is HP SR number 8606223364.
8751 { echo "$as_me:$LINENO: checking size of short" >&5
8752 echo $ECHO_N "checking size of short... $ECHO_C" >&6; }
8753 if test "${ac_cv_sizeof_short+set}" = set; then
8754 echo $ECHO_N "(cached) $ECHO_C" >&6
8755 else
8756 if test "$cross_compiling" = yes; then
8757 # Depending upon the size, compute the lo and hi bounds.
8758 cat >conftest.$ac_ext <<_ACEOF
8759 /* confdefs.h. */
8760 _ACEOF
8761 cat confdefs.h >>conftest.$ac_ext
8762 cat >>conftest.$ac_ext <<_ACEOF
8763 /* end confdefs.h. */
8764 $ac_includes_default
8765 typedef short ac__type_sizeof_;
8767 main ()
8769 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
8770 test_array [0] = 0
8773 return 0;
8775 _ACEOF
8776 rm -f conftest.$ac_objext
8777 if { (ac_try="$ac_compile"
8778 case "(($ac_try" in
8779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8780 *) ac_try_echo=$ac_try;;
8781 esac
8782 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8783 (eval "$ac_compile") 2>conftest.er1
8784 ac_status=$?
8785 grep -v '^ *+' conftest.er1 >conftest.err
8786 rm -f conftest.er1
8787 cat conftest.err >&5
8788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8789 (exit $ac_status); } && {
8790 test -z "$ac_c_werror_flag" ||
8791 test ! -s conftest.err
8792 } && test -s conftest.$ac_objext; then
8793 ac_lo=0 ac_mid=0
8794 while :; do
8795 cat >conftest.$ac_ext <<_ACEOF
8796 /* confdefs.h. */
8797 _ACEOF
8798 cat confdefs.h >>conftest.$ac_ext
8799 cat >>conftest.$ac_ext <<_ACEOF
8800 /* end confdefs.h. */
8801 $ac_includes_default
8802 typedef short ac__type_sizeof_;
8804 main ()
8806 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8807 test_array [0] = 0
8810 return 0;
8812 _ACEOF
8813 rm -f conftest.$ac_objext
8814 if { (ac_try="$ac_compile"
8815 case "(($ac_try" in
8816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8817 *) ac_try_echo=$ac_try;;
8818 esac
8819 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8820 (eval "$ac_compile") 2>conftest.er1
8821 ac_status=$?
8822 grep -v '^ *+' conftest.er1 >conftest.err
8823 rm -f conftest.er1
8824 cat conftest.err >&5
8825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8826 (exit $ac_status); } && {
8827 test -z "$ac_c_werror_flag" ||
8828 test ! -s conftest.err
8829 } && test -s conftest.$ac_objext; then
8830 ac_hi=$ac_mid; break
8831 else
8832 echo "$as_me: failed program was:" >&5
8833 sed 's/^/| /' conftest.$ac_ext >&5
8835 ac_lo=`expr $ac_mid + 1`
8836 if test $ac_lo -le $ac_mid; then
8837 ac_lo= ac_hi=
8838 break
8840 ac_mid=`expr 2 '*' $ac_mid + 1`
8843 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8844 done
8845 else
8846 echo "$as_me: failed program was:" >&5
8847 sed 's/^/| /' conftest.$ac_ext >&5
8849 cat >conftest.$ac_ext <<_ACEOF
8850 /* confdefs.h. */
8851 _ACEOF
8852 cat confdefs.h >>conftest.$ac_ext
8853 cat >>conftest.$ac_ext <<_ACEOF
8854 /* end confdefs.h. */
8855 $ac_includes_default
8856 typedef short ac__type_sizeof_;
8858 main ()
8860 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
8861 test_array [0] = 0
8864 return 0;
8866 _ACEOF
8867 rm -f conftest.$ac_objext
8868 if { (ac_try="$ac_compile"
8869 case "(($ac_try" in
8870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8871 *) ac_try_echo=$ac_try;;
8872 esac
8873 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8874 (eval "$ac_compile") 2>conftest.er1
8875 ac_status=$?
8876 grep -v '^ *+' conftest.er1 >conftest.err
8877 rm -f conftest.er1
8878 cat conftest.err >&5
8879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8880 (exit $ac_status); } && {
8881 test -z "$ac_c_werror_flag" ||
8882 test ! -s conftest.err
8883 } && test -s conftest.$ac_objext; then
8884 ac_hi=-1 ac_mid=-1
8885 while :; do
8886 cat >conftest.$ac_ext <<_ACEOF
8887 /* confdefs.h. */
8888 _ACEOF
8889 cat confdefs.h >>conftest.$ac_ext
8890 cat >>conftest.$ac_ext <<_ACEOF
8891 /* end confdefs.h. */
8892 $ac_includes_default
8893 typedef short ac__type_sizeof_;
8895 main ()
8897 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
8898 test_array [0] = 0
8901 return 0;
8903 _ACEOF
8904 rm -f conftest.$ac_objext
8905 if { (ac_try="$ac_compile"
8906 case "(($ac_try" in
8907 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8908 *) ac_try_echo=$ac_try;;
8909 esac
8910 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8911 (eval "$ac_compile") 2>conftest.er1
8912 ac_status=$?
8913 grep -v '^ *+' conftest.er1 >conftest.err
8914 rm -f conftest.er1
8915 cat conftest.err >&5
8916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8917 (exit $ac_status); } && {
8918 test -z "$ac_c_werror_flag" ||
8919 test ! -s conftest.err
8920 } && test -s conftest.$ac_objext; then
8921 ac_lo=$ac_mid; break
8922 else
8923 echo "$as_me: failed program was:" >&5
8924 sed 's/^/| /' conftest.$ac_ext >&5
8926 ac_hi=`expr '(' $ac_mid ')' - 1`
8927 if test $ac_mid -le $ac_hi; then
8928 ac_lo= ac_hi=
8929 break
8931 ac_mid=`expr 2 '*' $ac_mid`
8934 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8935 done
8936 else
8937 echo "$as_me: failed program was:" >&5
8938 sed 's/^/| /' conftest.$ac_ext >&5
8940 ac_lo= ac_hi=
8943 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8946 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8947 # Binary search between lo and hi bounds.
8948 while test "x$ac_lo" != "x$ac_hi"; do
8949 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8950 cat >conftest.$ac_ext <<_ACEOF
8951 /* confdefs.h. */
8952 _ACEOF
8953 cat confdefs.h >>conftest.$ac_ext
8954 cat >>conftest.$ac_ext <<_ACEOF
8955 /* end confdefs.h. */
8956 $ac_includes_default
8957 typedef short ac__type_sizeof_;
8959 main ()
8961 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8962 test_array [0] = 0
8965 return 0;
8967 _ACEOF
8968 rm -f conftest.$ac_objext
8969 if { (ac_try="$ac_compile"
8970 case "(($ac_try" in
8971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8972 *) ac_try_echo=$ac_try;;
8973 esac
8974 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8975 (eval "$ac_compile") 2>conftest.er1
8976 ac_status=$?
8977 grep -v '^ *+' conftest.er1 >conftest.err
8978 rm -f conftest.er1
8979 cat conftest.err >&5
8980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8981 (exit $ac_status); } && {
8982 test -z "$ac_c_werror_flag" ||
8983 test ! -s conftest.err
8984 } && test -s conftest.$ac_objext; then
8985 ac_hi=$ac_mid
8986 else
8987 echo "$as_me: failed program was:" >&5
8988 sed 's/^/| /' conftest.$ac_ext >&5
8990 ac_lo=`expr '(' $ac_mid ')' + 1`
8993 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8994 done
8995 case $ac_lo in
8996 ?*) ac_cv_sizeof_short=$ac_lo;;
8997 '') if test "$ac_cv_type_short" = yes; then
8998 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
8999 See \`config.log' for more details." >&5
9000 echo "$as_me: error: cannot compute sizeof (short)
9001 See \`config.log' for more details." >&2;}
9002 { (exit 77); exit 77; }; }
9003 else
9004 ac_cv_sizeof_short=0
9005 fi ;;
9006 esac
9007 else
9008 cat >conftest.$ac_ext <<_ACEOF
9009 /* confdefs.h. */
9010 _ACEOF
9011 cat confdefs.h >>conftest.$ac_ext
9012 cat >>conftest.$ac_ext <<_ACEOF
9013 /* end confdefs.h. */
9014 $ac_includes_default
9015 typedef short ac__type_sizeof_;
9016 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
9017 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
9018 #include <stdio.h>
9019 #include <stdlib.h>
9021 main ()
9024 FILE *f = fopen ("conftest.val", "w");
9025 if (! f)
9026 return 1;
9027 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
9029 long int i = longval ();
9030 if (i != ((long int) (sizeof (ac__type_sizeof_))))
9031 return 1;
9032 fprintf (f, "%ld\n", i);
9034 else
9036 unsigned long int i = ulongval ();
9037 if (i != ((long int) (sizeof (ac__type_sizeof_))))
9038 return 1;
9039 fprintf (f, "%lu\n", i);
9041 return ferror (f) || fclose (f) != 0;
9044 return 0;
9046 _ACEOF
9047 rm -f conftest$ac_exeext
9048 if { (ac_try="$ac_link"
9049 case "(($ac_try" in
9050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9051 *) ac_try_echo=$ac_try;;
9052 esac
9053 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9054 (eval "$ac_link") 2>&5
9055 ac_status=$?
9056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9057 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9058 { (case "(($ac_try" in
9059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9060 *) ac_try_echo=$ac_try;;
9061 esac
9062 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9063 (eval "$ac_try") 2>&5
9064 ac_status=$?
9065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9066 (exit $ac_status); }; }; then
9067 ac_cv_sizeof_short=`cat conftest.val`
9068 else
9069 echo "$as_me: program exited with status $ac_status" >&5
9070 echo "$as_me: failed program was:" >&5
9071 sed 's/^/| /' conftest.$ac_ext >&5
9073 ( exit $ac_status )
9074 if test "$ac_cv_type_short" = yes; then
9075 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
9076 See \`config.log' for more details." >&5
9077 echo "$as_me: error: cannot compute sizeof (short)
9078 See \`config.log' for more details." >&2;}
9079 { (exit 77); exit 77; }; }
9080 else
9081 ac_cv_sizeof_short=0
9084 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9086 rm -f conftest.val
9088 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
9089 echo "${ECHO_T}$ac_cv_sizeof_short" >&6; }
9093 cat >>confdefs.h <<_ACEOF
9094 #define SIZEOF_SHORT $ac_cv_sizeof_short
9095 _ACEOF
9098 { echo "$as_me:$LINENO: checking for float" >&5
9099 echo $ECHO_N "checking for float... $ECHO_C" >&6; }
9100 if test "${ac_cv_type_float+set}" = set; then
9101 echo $ECHO_N "(cached) $ECHO_C" >&6
9102 else
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 float ac__type_new_;
9112 main ()
9114 if ((ac__type_new_ *) 0)
9115 return 0;
9116 if (sizeof (ac__type_new_))
9117 return 0;
9119 return 0;
9121 _ACEOF
9122 rm -f conftest.$ac_objext
9123 if { (ac_try="$ac_compile"
9124 case "(($ac_try" in
9125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9126 *) ac_try_echo=$ac_try;;
9127 esac
9128 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9129 (eval "$ac_compile") 2>conftest.er1
9130 ac_status=$?
9131 grep -v '^ *+' conftest.er1 >conftest.err
9132 rm -f conftest.er1
9133 cat conftest.err >&5
9134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9135 (exit $ac_status); } && {
9136 test -z "$ac_c_werror_flag" ||
9137 test ! -s conftest.err
9138 } && test -s conftest.$ac_objext; then
9139 ac_cv_type_float=yes
9140 else
9141 echo "$as_me: failed program was:" >&5
9142 sed 's/^/| /' conftest.$ac_ext >&5
9144 ac_cv_type_float=no
9147 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9149 { echo "$as_me:$LINENO: result: $ac_cv_type_float" >&5
9150 echo "${ECHO_T}$ac_cv_type_float" >&6; }
9152 # The cast to long int works around a bug in the HP C Compiler
9153 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9154 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9155 # This bug is HP SR number 8606223364.
9156 { echo "$as_me:$LINENO: checking size of float" >&5
9157 echo $ECHO_N "checking size of float... $ECHO_C" >&6; }
9158 if test "${ac_cv_sizeof_float+set}" = set; then
9159 echo $ECHO_N "(cached) $ECHO_C" >&6
9160 else
9161 if test "$cross_compiling" = yes; then
9162 # Depending upon the size, compute the lo and hi bounds.
9163 cat >conftest.$ac_ext <<_ACEOF
9164 /* confdefs.h. */
9165 _ACEOF
9166 cat confdefs.h >>conftest.$ac_ext
9167 cat >>conftest.$ac_ext <<_ACEOF
9168 /* end confdefs.h. */
9169 $ac_includes_default
9170 typedef float ac__type_sizeof_;
9172 main ()
9174 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
9175 test_array [0] = 0
9178 return 0;
9180 _ACEOF
9181 rm -f conftest.$ac_objext
9182 if { (ac_try="$ac_compile"
9183 case "(($ac_try" in
9184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9185 *) ac_try_echo=$ac_try;;
9186 esac
9187 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9188 (eval "$ac_compile") 2>conftest.er1
9189 ac_status=$?
9190 grep -v '^ *+' conftest.er1 >conftest.err
9191 rm -f conftest.er1
9192 cat conftest.err >&5
9193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9194 (exit $ac_status); } && {
9195 test -z "$ac_c_werror_flag" ||
9196 test ! -s conftest.err
9197 } && test -s conftest.$ac_objext; then
9198 ac_lo=0 ac_mid=0
9199 while :; do
9200 cat >conftest.$ac_ext <<_ACEOF
9201 /* confdefs.h. */
9202 _ACEOF
9203 cat confdefs.h >>conftest.$ac_ext
9204 cat >>conftest.$ac_ext <<_ACEOF
9205 /* end confdefs.h. */
9206 $ac_includes_default
9207 typedef float ac__type_sizeof_;
9209 main ()
9211 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
9212 test_array [0] = 0
9215 return 0;
9217 _ACEOF
9218 rm -f conftest.$ac_objext
9219 if { (ac_try="$ac_compile"
9220 case "(($ac_try" in
9221 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9222 *) ac_try_echo=$ac_try;;
9223 esac
9224 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9225 (eval "$ac_compile") 2>conftest.er1
9226 ac_status=$?
9227 grep -v '^ *+' conftest.er1 >conftest.err
9228 rm -f conftest.er1
9229 cat conftest.err >&5
9230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9231 (exit $ac_status); } && {
9232 test -z "$ac_c_werror_flag" ||
9233 test ! -s conftest.err
9234 } && test -s conftest.$ac_objext; then
9235 ac_hi=$ac_mid; break
9236 else
9237 echo "$as_me: failed program was:" >&5
9238 sed 's/^/| /' conftest.$ac_ext >&5
9240 ac_lo=`expr $ac_mid + 1`
9241 if test $ac_lo -le $ac_mid; then
9242 ac_lo= ac_hi=
9243 break
9245 ac_mid=`expr 2 '*' $ac_mid + 1`
9248 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9249 done
9250 else
9251 echo "$as_me: failed program was:" >&5
9252 sed 's/^/| /' conftest.$ac_ext >&5
9254 cat >conftest.$ac_ext <<_ACEOF
9255 /* confdefs.h. */
9256 _ACEOF
9257 cat confdefs.h >>conftest.$ac_ext
9258 cat >>conftest.$ac_ext <<_ACEOF
9259 /* end confdefs.h. */
9260 $ac_includes_default
9261 typedef float ac__type_sizeof_;
9263 main ()
9265 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
9266 test_array [0] = 0
9269 return 0;
9271 _ACEOF
9272 rm -f conftest.$ac_objext
9273 if { (ac_try="$ac_compile"
9274 case "(($ac_try" in
9275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9276 *) ac_try_echo=$ac_try;;
9277 esac
9278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9279 (eval "$ac_compile") 2>conftest.er1
9280 ac_status=$?
9281 grep -v '^ *+' conftest.er1 >conftest.err
9282 rm -f conftest.er1
9283 cat conftest.err >&5
9284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9285 (exit $ac_status); } && {
9286 test -z "$ac_c_werror_flag" ||
9287 test ! -s conftest.err
9288 } && test -s conftest.$ac_objext; then
9289 ac_hi=-1 ac_mid=-1
9290 while :; do
9291 cat >conftest.$ac_ext <<_ACEOF
9292 /* confdefs.h. */
9293 _ACEOF
9294 cat confdefs.h >>conftest.$ac_ext
9295 cat >>conftest.$ac_ext <<_ACEOF
9296 /* end confdefs.h. */
9297 $ac_includes_default
9298 typedef float ac__type_sizeof_;
9300 main ()
9302 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
9303 test_array [0] = 0
9306 return 0;
9308 _ACEOF
9309 rm -f conftest.$ac_objext
9310 if { (ac_try="$ac_compile"
9311 case "(($ac_try" in
9312 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9313 *) ac_try_echo=$ac_try;;
9314 esac
9315 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9316 (eval "$ac_compile") 2>conftest.er1
9317 ac_status=$?
9318 grep -v '^ *+' conftest.er1 >conftest.err
9319 rm -f conftest.er1
9320 cat conftest.err >&5
9321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9322 (exit $ac_status); } && {
9323 test -z "$ac_c_werror_flag" ||
9324 test ! -s conftest.err
9325 } && test -s conftest.$ac_objext; then
9326 ac_lo=$ac_mid; break
9327 else
9328 echo "$as_me: failed program was:" >&5
9329 sed 's/^/| /' conftest.$ac_ext >&5
9331 ac_hi=`expr '(' $ac_mid ')' - 1`
9332 if test $ac_mid -le $ac_hi; then
9333 ac_lo= ac_hi=
9334 break
9336 ac_mid=`expr 2 '*' $ac_mid`
9339 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9340 done
9341 else
9342 echo "$as_me: failed program was:" >&5
9343 sed 's/^/| /' conftest.$ac_ext >&5
9345 ac_lo= ac_hi=
9348 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9351 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9352 # Binary search between lo and hi bounds.
9353 while test "x$ac_lo" != "x$ac_hi"; do
9354 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9355 cat >conftest.$ac_ext <<_ACEOF
9356 /* confdefs.h. */
9357 _ACEOF
9358 cat confdefs.h >>conftest.$ac_ext
9359 cat >>conftest.$ac_ext <<_ACEOF
9360 /* end confdefs.h. */
9361 $ac_includes_default
9362 typedef float ac__type_sizeof_;
9364 main ()
9366 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
9367 test_array [0] = 0
9370 return 0;
9372 _ACEOF
9373 rm -f conftest.$ac_objext
9374 if { (ac_try="$ac_compile"
9375 case "(($ac_try" in
9376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9377 *) ac_try_echo=$ac_try;;
9378 esac
9379 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9380 (eval "$ac_compile") 2>conftest.er1
9381 ac_status=$?
9382 grep -v '^ *+' conftest.er1 >conftest.err
9383 rm -f conftest.er1
9384 cat conftest.err >&5
9385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9386 (exit $ac_status); } && {
9387 test -z "$ac_c_werror_flag" ||
9388 test ! -s conftest.err
9389 } && test -s conftest.$ac_objext; then
9390 ac_hi=$ac_mid
9391 else
9392 echo "$as_me: failed program was:" >&5
9393 sed 's/^/| /' conftest.$ac_ext >&5
9395 ac_lo=`expr '(' $ac_mid ')' + 1`
9398 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9399 done
9400 case $ac_lo in
9401 ?*) ac_cv_sizeof_float=$ac_lo;;
9402 '') if test "$ac_cv_type_float" = yes; then
9403 { { echo "$as_me:$LINENO: error: cannot compute sizeof (float)
9404 See \`config.log' for more details." >&5
9405 echo "$as_me: error: cannot compute sizeof (float)
9406 See \`config.log' for more details." >&2;}
9407 { (exit 77); exit 77; }; }
9408 else
9409 ac_cv_sizeof_float=0
9410 fi ;;
9411 esac
9412 else
9413 cat >conftest.$ac_ext <<_ACEOF
9414 /* confdefs.h. */
9415 _ACEOF
9416 cat confdefs.h >>conftest.$ac_ext
9417 cat >>conftest.$ac_ext <<_ACEOF
9418 /* end confdefs.h. */
9419 $ac_includes_default
9420 typedef float ac__type_sizeof_;
9421 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
9422 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
9423 #include <stdio.h>
9424 #include <stdlib.h>
9426 main ()
9429 FILE *f = fopen ("conftest.val", "w");
9430 if (! f)
9431 return 1;
9432 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
9434 long int i = longval ();
9435 if (i != ((long int) (sizeof (ac__type_sizeof_))))
9436 return 1;
9437 fprintf (f, "%ld\n", i);
9439 else
9441 unsigned long int i = ulongval ();
9442 if (i != ((long int) (sizeof (ac__type_sizeof_))))
9443 return 1;
9444 fprintf (f, "%lu\n", i);
9446 return ferror (f) || fclose (f) != 0;
9449 return 0;
9451 _ACEOF
9452 rm -f conftest$ac_exeext
9453 if { (ac_try="$ac_link"
9454 case "(($ac_try" in
9455 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9456 *) ac_try_echo=$ac_try;;
9457 esac
9458 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9459 (eval "$ac_link") 2>&5
9460 ac_status=$?
9461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9462 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9463 { (case "(($ac_try" in
9464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9465 *) ac_try_echo=$ac_try;;
9466 esac
9467 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9468 (eval "$ac_try") 2>&5
9469 ac_status=$?
9470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9471 (exit $ac_status); }; }; then
9472 ac_cv_sizeof_float=`cat conftest.val`
9473 else
9474 echo "$as_me: program exited with status $ac_status" >&5
9475 echo "$as_me: failed program was:" >&5
9476 sed 's/^/| /' conftest.$ac_ext >&5
9478 ( exit $ac_status )
9479 if test "$ac_cv_type_float" = yes; then
9480 { { echo "$as_me:$LINENO: error: cannot compute sizeof (float)
9481 See \`config.log' for more details." >&5
9482 echo "$as_me: error: cannot compute sizeof (float)
9483 See \`config.log' for more details." >&2;}
9484 { (exit 77); exit 77; }; }
9485 else
9486 ac_cv_sizeof_float=0
9489 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9491 rm -f conftest.val
9493 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_float" >&5
9494 echo "${ECHO_T}$ac_cv_sizeof_float" >&6; }
9498 cat >>confdefs.h <<_ACEOF
9499 #define SIZEOF_FLOAT $ac_cv_sizeof_float
9500 _ACEOF
9503 { echo "$as_me:$LINENO: checking for double" >&5
9504 echo $ECHO_N "checking for double... $ECHO_C" >&6; }
9505 if test "${ac_cv_type_double+set}" = set; then
9506 echo $ECHO_N "(cached) $ECHO_C" >&6
9507 else
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 double ac__type_new_;
9517 main ()
9519 if ((ac__type_new_ *) 0)
9520 return 0;
9521 if (sizeof (ac__type_new_))
9522 return 0;
9524 return 0;
9526 _ACEOF
9527 rm -f conftest.$ac_objext
9528 if { (ac_try="$ac_compile"
9529 case "(($ac_try" in
9530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9531 *) ac_try_echo=$ac_try;;
9532 esac
9533 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9534 (eval "$ac_compile") 2>conftest.er1
9535 ac_status=$?
9536 grep -v '^ *+' conftest.er1 >conftest.err
9537 rm -f conftest.er1
9538 cat conftest.err >&5
9539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9540 (exit $ac_status); } && {
9541 test -z "$ac_c_werror_flag" ||
9542 test ! -s conftest.err
9543 } && test -s conftest.$ac_objext; then
9544 ac_cv_type_double=yes
9545 else
9546 echo "$as_me: failed program was:" >&5
9547 sed 's/^/| /' conftest.$ac_ext >&5
9549 ac_cv_type_double=no
9552 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9554 { echo "$as_me:$LINENO: result: $ac_cv_type_double" >&5
9555 echo "${ECHO_T}$ac_cv_type_double" >&6; }
9557 # The cast to long int works around a bug in the HP C Compiler
9558 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9559 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9560 # This bug is HP SR number 8606223364.
9561 { echo "$as_me:$LINENO: checking size of double" >&5
9562 echo $ECHO_N "checking size of double... $ECHO_C" >&6; }
9563 if test "${ac_cv_sizeof_double+set}" = set; then
9564 echo $ECHO_N "(cached) $ECHO_C" >&6
9565 else
9566 if test "$cross_compiling" = yes; then
9567 # Depending upon the size, compute the lo and hi bounds.
9568 cat >conftest.$ac_ext <<_ACEOF
9569 /* confdefs.h. */
9570 _ACEOF
9571 cat confdefs.h >>conftest.$ac_ext
9572 cat >>conftest.$ac_ext <<_ACEOF
9573 /* end confdefs.h. */
9574 $ac_includes_default
9575 typedef double ac__type_sizeof_;
9577 main ()
9579 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
9580 test_array [0] = 0
9583 return 0;
9585 _ACEOF
9586 rm -f conftest.$ac_objext
9587 if { (ac_try="$ac_compile"
9588 case "(($ac_try" in
9589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9590 *) ac_try_echo=$ac_try;;
9591 esac
9592 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9593 (eval "$ac_compile") 2>conftest.er1
9594 ac_status=$?
9595 grep -v '^ *+' conftest.er1 >conftest.err
9596 rm -f conftest.er1
9597 cat conftest.err >&5
9598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9599 (exit $ac_status); } && {
9600 test -z "$ac_c_werror_flag" ||
9601 test ! -s conftest.err
9602 } && test -s conftest.$ac_objext; then
9603 ac_lo=0 ac_mid=0
9604 while :; do
9605 cat >conftest.$ac_ext <<_ACEOF
9606 /* confdefs.h. */
9607 _ACEOF
9608 cat confdefs.h >>conftest.$ac_ext
9609 cat >>conftest.$ac_ext <<_ACEOF
9610 /* end confdefs.h. */
9611 $ac_includes_default
9612 typedef double ac__type_sizeof_;
9614 main ()
9616 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
9617 test_array [0] = 0
9620 return 0;
9622 _ACEOF
9623 rm -f conftest.$ac_objext
9624 if { (ac_try="$ac_compile"
9625 case "(($ac_try" in
9626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9627 *) ac_try_echo=$ac_try;;
9628 esac
9629 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9630 (eval "$ac_compile") 2>conftest.er1
9631 ac_status=$?
9632 grep -v '^ *+' conftest.er1 >conftest.err
9633 rm -f conftest.er1
9634 cat conftest.err >&5
9635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9636 (exit $ac_status); } && {
9637 test -z "$ac_c_werror_flag" ||
9638 test ! -s conftest.err
9639 } && test -s conftest.$ac_objext; then
9640 ac_hi=$ac_mid; break
9641 else
9642 echo "$as_me: failed program was:" >&5
9643 sed 's/^/| /' conftest.$ac_ext >&5
9645 ac_lo=`expr $ac_mid + 1`
9646 if test $ac_lo -le $ac_mid; then
9647 ac_lo= ac_hi=
9648 break
9650 ac_mid=`expr 2 '*' $ac_mid + 1`
9653 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9654 done
9655 else
9656 echo "$as_me: failed program was:" >&5
9657 sed 's/^/| /' conftest.$ac_ext >&5
9659 cat >conftest.$ac_ext <<_ACEOF
9660 /* confdefs.h. */
9661 _ACEOF
9662 cat confdefs.h >>conftest.$ac_ext
9663 cat >>conftest.$ac_ext <<_ACEOF
9664 /* end confdefs.h. */
9665 $ac_includes_default
9666 typedef double ac__type_sizeof_;
9668 main ()
9670 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
9671 test_array [0] = 0
9674 return 0;
9676 _ACEOF
9677 rm -f conftest.$ac_objext
9678 if { (ac_try="$ac_compile"
9679 case "(($ac_try" in
9680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9681 *) ac_try_echo=$ac_try;;
9682 esac
9683 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9684 (eval "$ac_compile") 2>conftest.er1
9685 ac_status=$?
9686 grep -v '^ *+' conftest.er1 >conftest.err
9687 rm -f conftest.er1
9688 cat conftest.err >&5
9689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9690 (exit $ac_status); } && {
9691 test -z "$ac_c_werror_flag" ||
9692 test ! -s conftest.err
9693 } && test -s conftest.$ac_objext; then
9694 ac_hi=-1 ac_mid=-1
9695 while :; do
9696 cat >conftest.$ac_ext <<_ACEOF
9697 /* confdefs.h. */
9698 _ACEOF
9699 cat confdefs.h >>conftest.$ac_ext
9700 cat >>conftest.$ac_ext <<_ACEOF
9701 /* end confdefs.h. */
9702 $ac_includes_default
9703 typedef double ac__type_sizeof_;
9705 main ()
9707 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
9708 test_array [0] = 0
9711 return 0;
9713 _ACEOF
9714 rm -f conftest.$ac_objext
9715 if { (ac_try="$ac_compile"
9716 case "(($ac_try" in
9717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9718 *) ac_try_echo=$ac_try;;
9719 esac
9720 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9721 (eval "$ac_compile") 2>conftest.er1
9722 ac_status=$?
9723 grep -v '^ *+' conftest.er1 >conftest.err
9724 rm -f conftest.er1
9725 cat conftest.err >&5
9726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9727 (exit $ac_status); } && {
9728 test -z "$ac_c_werror_flag" ||
9729 test ! -s conftest.err
9730 } && test -s conftest.$ac_objext; then
9731 ac_lo=$ac_mid; break
9732 else
9733 echo "$as_me: failed program was:" >&5
9734 sed 's/^/| /' conftest.$ac_ext >&5
9736 ac_hi=`expr '(' $ac_mid ')' - 1`
9737 if test $ac_mid -le $ac_hi; then
9738 ac_lo= ac_hi=
9739 break
9741 ac_mid=`expr 2 '*' $ac_mid`
9744 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9745 done
9746 else
9747 echo "$as_me: failed program was:" >&5
9748 sed 's/^/| /' conftest.$ac_ext >&5
9750 ac_lo= ac_hi=
9753 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9756 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9757 # Binary search between lo and hi bounds.
9758 while test "x$ac_lo" != "x$ac_hi"; do
9759 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9760 cat >conftest.$ac_ext <<_ACEOF
9761 /* confdefs.h. */
9762 _ACEOF
9763 cat confdefs.h >>conftest.$ac_ext
9764 cat >>conftest.$ac_ext <<_ACEOF
9765 /* end confdefs.h. */
9766 $ac_includes_default
9767 typedef double ac__type_sizeof_;
9769 main ()
9771 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
9772 test_array [0] = 0
9775 return 0;
9777 _ACEOF
9778 rm -f conftest.$ac_objext
9779 if { (ac_try="$ac_compile"
9780 case "(($ac_try" in
9781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9782 *) ac_try_echo=$ac_try;;
9783 esac
9784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9785 (eval "$ac_compile") 2>conftest.er1
9786 ac_status=$?
9787 grep -v '^ *+' conftest.er1 >conftest.err
9788 rm -f conftest.er1
9789 cat conftest.err >&5
9790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9791 (exit $ac_status); } && {
9792 test -z "$ac_c_werror_flag" ||
9793 test ! -s conftest.err
9794 } && test -s conftest.$ac_objext; then
9795 ac_hi=$ac_mid
9796 else
9797 echo "$as_me: failed program was:" >&5
9798 sed 's/^/| /' conftest.$ac_ext >&5
9800 ac_lo=`expr '(' $ac_mid ')' + 1`
9803 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9804 done
9805 case $ac_lo in
9806 ?*) ac_cv_sizeof_double=$ac_lo;;
9807 '') if test "$ac_cv_type_double" = yes; then
9808 { { echo "$as_me:$LINENO: error: cannot compute sizeof (double)
9809 See \`config.log' for more details." >&5
9810 echo "$as_me: error: cannot compute sizeof (double)
9811 See \`config.log' for more details." >&2;}
9812 { (exit 77); exit 77; }; }
9813 else
9814 ac_cv_sizeof_double=0
9815 fi ;;
9816 esac
9817 else
9818 cat >conftest.$ac_ext <<_ACEOF
9819 /* confdefs.h. */
9820 _ACEOF
9821 cat confdefs.h >>conftest.$ac_ext
9822 cat >>conftest.$ac_ext <<_ACEOF
9823 /* end confdefs.h. */
9824 $ac_includes_default
9825 typedef double ac__type_sizeof_;
9826 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
9827 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
9828 #include <stdio.h>
9829 #include <stdlib.h>
9831 main ()
9834 FILE *f = fopen ("conftest.val", "w");
9835 if (! f)
9836 return 1;
9837 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
9839 long int i = longval ();
9840 if (i != ((long int) (sizeof (ac__type_sizeof_))))
9841 return 1;
9842 fprintf (f, "%ld\n", i);
9844 else
9846 unsigned long int i = ulongval ();
9847 if (i != ((long int) (sizeof (ac__type_sizeof_))))
9848 return 1;
9849 fprintf (f, "%lu\n", i);
9851 return ferror (f) || fclose (f) != 0;
9854 return 0;
9856 _ACEOF
9857 rm -f conftest$ac_exeext
9858 if { (ac_try="$ac_link"
9859 case "(($ac_try" in
9860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9861 *) ac_try_echo=$ac_try;;
9862 esac
9863 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9864 (eval "$ac_link") 2>&5
9865 ac_status=$?
9866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9867 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9868 { (case "(($ac_try" in
9869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9870 *) ac_try_echo=$ac_try;;
9871 esac
9872 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9873 (eval "$ac_try") 2>&5
9874 ac_status=$?
9875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9876 (exit $ac_status); }; }; then
9877 ac_cv_sizeof_double=`cat conftest.val`
9878 else
9879 echo "$as_me: program exited with status $ac_status" >&5
9880 echo "$as_me: failed program was:" >&5
9881 sed 's/^/| /' conftest.$ac_ext >&5
9883 ( exit $ac_status )
9884 if test "$ac_cv_type_double" = yes; then
9885 { { echo "$as_me:$LINENO: error: cannot compute sizeof (double)
9886 See \`config.log' for more details." >&5
9887 echo "$as_me: error: cannot compute sizeof (double)
9888 See \`config.log' for more details." >&2;}
9889 { (exit 77); exit 77; }; }
9890 else
9891 ac_cv_sizeof_double=0
9894 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9896 rm -f conftest.val
9898 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_double" >&5
9899 echo "${ECHO_T}$ac_cv_sizeof_double" >&6; }
9903 cat >>confdefs.h <<_ACEOF
9904 #define SIZEOF_DOUBLE $ac_cv_sizeof_double
9905 _ACEOF
9908 { echo "$as_me:$LINENO: checking for fpos_t" >&5
9909 echo $ECHO_N "checking for fpos_t... $ECHO_C" >&6; }
9910 if test "${ac_cv_type_fpos_t+set}" = set; then
9911 echo $ECHO_N "(cached) $ECHO_C" >&6
9912 else
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 fpos_t ac__type_new_;
9922 main ()
9924 if ((ac__type_new_ *) 0)
9925 return 0;
9926 if (sizeof (ac__type_new_))
9927 return 0;
9929 return 0;
9931 _ACEOF
9932 rm -f conftest.$ac_objext
9933 if { (ac_try="$ac_compile"
9934 case "(($ac_try" in
9935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9936 *) ac_try_echo=$ac_try;;
9937 esac
9938 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9939 (eval "$ac_compile") 2>conftest.er1
9940 ac_status=$?
9941 grep -v '^ *+' conftest.er1 >conftest.err
9942 rm -f conftest.er1
9943 cat conftest.err >&5
9944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9945 (exit $ac_status); } && {
9946 test -z "$ac_c_werror_flag" ||
9947 test ! -s conftest.err
9948 } && test -s conftest.$ac_objext; then
9949 ac_cv_type_fpos_t=yes
9950 else
9951 echo "$as_me: failed program was:" >&5
9952 sed 's/^/| /' conftest.$ac_ext >&5
9954 ac_cv_type_fpos_t=no
9957 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9959 { echo "$as_me:$LINENO: result: $ac_cv_type_fpos_t" >&5
9960 echo "${ECHO_T}$ac_cv_type_fpos_t" >&6; }
9962 # The cast to long int works around a bug in the HP C Compiler
9963 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9964 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9965 # This bug is HP SR number 8606223364.
9966 { echo "$as_me:$LINENO: checking size of fpos_t" >&5
9967 echo $ECHO_N "checking size of fpos_t... $ECHO_C" >&6; }
9968 if test "${ac_cv_sizeof_fpos_t+set}" = set; then
9969 echo $ECHO_N "(cached) $ECHO_C" >&6
9970 else
9971 if test "$cross_compiling" = yes; then
9972 # Depending upon the size, compute the lo and hi bounds.
9973 cat >conftest.$ac_ext <<_ACEOF
9974 /* confdefs.h. */
9975 _ACEOF
9976 cat confdefs.h >>conftest.$ac_ext
9977 cat >>conftest.$ac_ext <<_ACEOF
9978 /* end confdefs.h. */
9979 $ac_includes_default
9980 typedef fpos_t ac__type_sizeof_;
9982 main ()
9984 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
9985 test_array [0] = 0
9988 return 0;
9990 _ACEOF
9991 rm -f conftest.$ac_objext
9992 if { (ac_try="$ac_compile"
9993 case "(($ac_try" in
9994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9995 *) ac_try_echo=$ac_try;;
9996 esac
9997 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9998 (eval "$ac_compile") 2>conftest.er1
9999 ac_status=$?
10000 grep -v '^ *+' conftest.er1 >conftest.err
10001 rm -f conftest.er1
10002 cat conftest.err >&5
10003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10004 (exit $ac_status); } && {
10005 test -z "$ac_c_werror_flag" ||
10006 test ! -s conftest.err
10007 } && test -s conftest.$ac_objext; then
10008 ac_lo=0 ac_mid=0
10009 while :; do
10010 cat >conftest.$ac_ext <<_ACEOF
10011 /* confdefs.h. */
10012 _ACEOF
10013 cat confdefs.h >>conftest.$ac_ext
10014 cat >>conftest.$ac_ext <<_ACEOF
10015 /* end confdefs.h. */
10016 $ac_includes_default
10017 typedef fpos_t ac__type_sizeof_;
10019 main ()
10021 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
10022 test_array [0] = 0
10025 return 0;
10027 _ACEOF
10028 rm -f conftest.$ac_objext
10029 if { (ac_try="$ac_compile"
10030 case "(($ac_try" in
10031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10032 *) ac_try_echo=$ac_try;;
10033 esac
10034 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10035 (eval "$ac_compile") 2>conftest.er1
10036 ac_status=$?
10037 grep -v '^ *+' conftest.er1 >conftest.err
10038 rm -f conftest.er1
10039 cat conftest.err >&5
10040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10041 (exit $ac_status); } && {
10042 test -z "$ac_c_werror_flag" ||
10043 test ! -s conftest.err
10044 } && test -s conftest.$ac_objext; then
10045 ac_hi=$ac_mid; break
10046 else
10047 echo "$as_me: failed program was:" >&5
10048 sed 's/^/| /' conftest.$ac_ext >&5
10050 ac_lo=`expr $ac_mid + 1`
10051 if test $ac_lo -le $ac_mid; then
10052 ac_lo= ac_hi=
10053 break
10055 ac_mid=`expr 2 '*' $ac_mid + 1`
10058 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10059 done
10060 else
10061 echo "$as_me: failed program was:" >&5
10062 sed 's/^/| /' conftest.$ac_ext >&5
10064 cat >conftest.$ac_ext <<_ACEOF
10065 /* confdefs.h. */
10066 _ACEOF
10067 cat confdefs.h >>conftest.$ac_ext
10068 cat >>conftest.$ac_ext <<_ACEOF
10069 /* end confdefs.h. */
10070 $ac_includes_default
10071 typedef fpos_t ac__type_sizeof_;
10073 main ()
10075 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
10076 test_array [0] = 0
10079 return 0;
10081 _ACEOF
10082 rm -f conftest.$ac_objext
10083 if { (ac_try="$ac_compile"
10084 case "(($ac_try" in
10085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10086 *) ac_try_echo=$ac_try;;
10087 esac
10088 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10089 (eval "$ac_compile") 2>conftest.er1
10090 ac_status=$?
10091 grep -v '^ *+' conftest.er1 >conftest.err
10092 rm -f conftest.er1
10093 cat conftest.err >&5
10094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10095 (exit $ac_status); } && {
10096 test -z "$ac_c_werror_flag" ||
10097 test ! -s conftest.err
10098 } && test -s conftest.$ac_objext; then
10099 ac_hi=-1 ac_mid=-1
10100 while :; do
10101 cat >conftest.$ac_ext <<_ACEOF
10102 /* confdefs.h. */
10103 _ACEOF
10104 cat confdefs.h >>conftest.$ac_ext
10105 cat >>conftest.$ac_ext <<_ACEOF
10106 /* end confdefs.h. */
10107 $ac_includes_default
10108 typedef fpos_t ac__type_sizeof_;
10110 main ()
10112 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
10113 test_array [0] = 0
10116 return 0;
10118 _ACEOF
10119 rm -f conftest.$ac_objext
10120 if { (ac_try="$ac_compile"
10121 case "(($ac_try" in
10122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10123 *) ac_try_echo=$ac_try;;
10124 esac
10125 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10126 (eval "$ac_compile") 2>conftest.er1
10127 ac_status=$?
10128 grep -v '^ *+' conftest.er1 >conftest.err
10129 rm -f conftest.er1
10130 cat conftest.err >&5
10131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10132 (exit $ac_status); } && {
10133 test -z "$ac_c_werror_flag" ||
10134 test ! -s conftest.err
10135 } && test -s conftest.$ac_objext; then
10136 ac_lo=$ac_mid; break
10137 else
10138 echo "$as_me: failed program was:" >&5
10139 sed 's/^/| /' conftest.$ac_ext >&5
10141 ac_hi=`expr '(' $ac_mid ')' - 1`
10142 if test $ac_mid -le $ac_hi; then
10143 ac_lo= ac_hi=
10144 break
10146 ac_mid=`expr 2 '*' $ac_mid`
10149 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10150 done
10151 else
10152 echo "$as_me: failed program was:" >&5
10153 sed 's/^/| /' conftest.$ac_ext >&5
10155 ac_lo= ac_hi=
10158 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10161 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10162 # Binary search between lo and hi bounds.
10163 while test "x$ac_lo" != "x$ac_hi"; do
10164 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10165 cat >conftest.$ac_ext <<_ACEOF
10166 /* confdefs.h. */
10167 _ACEOF
10168 cat confdefs.h >>conftest.$ac_ext
10169 cat >>conftest.$ac_ext <<_ACEOF
10170 /* end confdefs.h. */
10171 $ac_includes_default
10172 typedef fpos_t ac__type_sizeof_;
10174 main ()
10176 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
10177 test_array [0] = 0
10180 return 0;
10182 _ACEOF
10183 rm -f conftest.$ac_objext
10184 if { (ac_try="$ac_compile"
10185 case "(($ac_try" in
10186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10187 *) ac_try_echo=$ac_try;;
10188 esac
10189 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10190 (eval "$ac_compile") 2>conftest.er1
10191 ac_status=$?
10192 grep -v '^ *+' conftest.er1 >conftest.err
10193 rm -f conftest.er1
10194 cat conftest.err >&5
10195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10196 (exit $ac_status); } && {
10197 test -z "$ac_c_werror_flag" ||
10198 test ! -s conftest.err
10199 } && test -s conftest.$ac_objext; then
10200 ac_hi=$ac_mid
10201 else
10202 echo "$as_me: failed program was:" >&5
10203 sed 's/^/| /' conftest.$ac_ext >&5
10205 ac_lo=`expr '(' $ac_mid ')' + 1`
10208 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10209 done
10210 case $ac_lo in
10211 ?*) ac_cv_sizeof_fpos_t=$ac_lo;;
10212 '') if test "$ac_cv_type_fpos_t" = yes; then
10213 { { echo "$as_me:$LINENO: error: cannot compute sizeof (fpos_t)
10214 See \`config.log' for more details." >&5
10215 echo "$as_me: error: cannot compute sizeof (fpos_t)
10216 See \`config.log' for more details." >&2;}
10217 { (exit 77); exit 77; }; }
10218 else
10219 ac_cv_sizeof_fpos_t=0
10220 fi ;;
10221 esac
10222 else
10223 cat >conftest.$ac_ext <<_ACEOF
10224 /* confdefs.h. */
10225 _ACEOF
10226 cat confdefs.h >>conftest.$ac_ext
10227 cat >>conftest.$ac_ext <<_ACEOF
10228 /* end confdefs.h. */
10229 $ac_includes_default
10230 typedef fpos_t ac__type_sizeof_;
10231 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
10232 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
10233 #include <stdio.h>
10234 #include <stdlib.h>
10236 main ()
10239 FILE *f = fopen ("conftest.val", "w");
10240 if (! f)
10241 return 1;
10242 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
10244 long int i = longval ();
10245 if (i != ((long int) (sizeof (ac__type_sizeof_))))
10246 return 1;
10247 fprintf (f, "%ld\n", i);
10249 else
10251 unsigned long int i = ulongval ();
10252 if (i != ((long int) (sizeof (ac__type_sizeof_))))
10253 return 1;
10254 fprintf (f, "%lu\n", i);
10256 return ferror (f) || fclose (f) != 0;
10259 return 0;
10261 _ACEOF
10262 rm -f conftest$ac_exeext
10263 if { (ac_try="$ac_link"
10264 case "(($ac_try" in
10265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10266 *) ac_try_echo=$ac_try;;
10267 esac
10268 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10269 (eval "$ac_link") 2>&5
10270 ac_status=$?
10271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10272 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10273 { (case "(($ac_try" in
10274 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10275 *) ac_try_echo=$ac_try;;
10276 esac
10277 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10278 (eval "$ac_try") 2>&5
10279 ac_status=$?
10280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10281 (exit $ac_status); }; }; then
10282 ac_cv_sizeof_fpos_t=`cat conftest.val`
10283 else
10284 echo "$as_me: program exited with status $ac_status" >&5
10285 echo "$as_me: failed program was:" >&5
10286 sed 's/^/| /' conftest.$ac_ext >&5
10288 ( exit $ac_status )
10289 if test "$ac_cv_type_fpos_t" = yes; then
10290 { { echo "$as_me:$LINENO: error: cannot compute sizeof (fpos_t)
10291 See \`config.log' for more details." >&5
10292 echo "$as_me: error: cannot compute sizeof (fpos_t)
10293 See \`config.log' for more details." >&2;}
10294 { (exit 77); exit 77; }; }
10295 else
10296 ac_cv_sizeof_fpos_t=0
10299 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10301 rm -f conftest.val
10303 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_fpos_t" >&5
10304 echo "${ECHO_T}$ac_cv_sizeof_fpos_t" >&6; }
10308 cat >>confdefs.h <<_ACEOF
10309 #define SIZEOF_FPOS_T $ac_cv_sizeof_fpos_t
10310 _ACEOF
10313 { echo "$as_me:$LINENO: checking for size_t" >&5
10314 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
10315 if test "${ac_cv_type_size_t+set}" = set; then
10316 echo $ECHO_N "(cached) $ECHO_C" >&6
10317 else
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 size_t ac__type_new_;
10327 main ()
10329 if ((ac__type_new_ *) 0)
10330 return 0;
10331 if (sizeof (ac__type_new_))
10332 return 0;
10334 return 0;
10336 _ACEOF
10337 rm -f conftest.$ac_objext
10338 if { (ac_try="$ac_compile"
10339 case "(($ac_try" in
10340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10341 *) ac_try_echo=$ac_try;;
10342 esac
10343 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10344 (eval "$ac_compile") 2>conftest.er1
10345 ac_status=$?
10346 grep -v '^ *+' conftest.er1 >conftest.err
10347 rm -f conftest.er1
10348 cat conftest.err >&5
10349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10350 (exit $ac_status); } && {
10351 test -z "$ac_c_werror_flag" ||
10352 test ! -s conftest.err
10353 } && test -s conftest.$ac_objext; then
10354 ac_cv_type_size_t=yes
10355 else
10356 echo "$as_me: failed program was:" >&5
10357 sed 's/^/| /' conftest.$ac_ext >&5
10359 ac_cv_type_size_t=no
10362 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10364 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
10365 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
10367 # The cast to long int works around a bug in the HP C Compiler
10368 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10369 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10370 # This bug is HP SR number 8606223364.
10371 { echo "$as_me:$LINENO: checking size of size_t" >&5
10372 echo $ECHO_N "checking size of size_t... $ECHO_C" >&6; }
10373 if test "${ac_cv_sizeof_size_t+set}" = set; then
10374 echo $ECHO_N "(cached) $ECHO_C" >&6
10375 else
10376 if test "$cross_compiling" = yes; then
10377 # Depending upon the size, compute the lo and hi bounds.
10378 cat >conftest.$ac_ext <<_ACEOF
10379 /* confdefs.h. */
10380 _ACEOF
10381 cat confdefs.h >>conftest.$ac_ext
10382 cat >>conftest.$ac_ext <<_ACEOF
10383 /* end confdefs.h. */
10384 $ac_includes_default
10385 typedef size_t ac__type_sizeof_;
10387 main ()
10389 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
10390 test_array [0] = 0
10393 return 0;
10395 _ACEOF
10396 rm -f conftest.$ac_objext
10397 if { (ac_try="$ac_compile"
10398 case "(($ac_try" in
10399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10400 *) ac_try_echo=$ac_try;;
10401 esac
10402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10403 (eval "$ac_compile") 2>conftest.er1
10404 ac_status=$?
10405 grep -v '^ *+' conftest.er1 >conftest.err
10406 rm -f conftest.er1
10407 cat conftest.err >&5
10408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10409 (exit $ac_status); } && {
10410 test -z "$ac_c_werror_flag" ||
10411 test ! -s conftest.err
10412 } && test -s conftest.$ac_objext; then
10413 ac_lo=0 ac_mid=0
10414 while :; do
10415 cat >conftest.$ac_ext <<_ACEOF
10416 /* confdefs.h. */
10417 _ACEOF
10418 cat confdefs.h >>conftest.$ac_ext
10419 cat >>conftest.$ac_ext <<_ACEOF
10420 /* end confdefs.h. */
10421 $ac_includes_default
10422 typedef size_t ac__type_sizeof_;
10424 main ()
10426 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
10427 test_array [0] = 0
10430 return 0;
10432 _ACEOF
10433 rm -f conftest.$ac_objext
10434 if { (ac_try="$ac_compile"
10435 case "(($ac_try" in
10436 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10437 *) ac_try_echo=$ac_try;;
10438 esac
10439 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10440 (eval "$ac_compile") 2>conftest.er1
10441 ac_status=$?
10442 grep -v '^ *+' conftest.er1 >conftest.err
10443 rm -f conftest.er1
10444 cat conftest.err >&5
10445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10446 (exit $ac_status); } && {
10447 test -z "$ac_c_werror_flag" ||
10448 test ! -s conftest.err
10449 } && test -s conftest.$ac_objext; then
10450 ac_hi=$ac_mid; break
10451 else
10452 echo "$as_me: failed program was:" >&5
10453 sed 's/^/| /' conftest.$ac_ext >&5
10455 ac_lo=`expr $ac_mid + 1`
10456 if test $ac_lo -le $ac_mid; then
10457 ac_lo= ac_hi=
10458 break
10460 ac_mid=`expr 2 '*' $ac_mid + 1`
10463 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10464 done
10465 else
10466 echo "$as_me: failed program was:" >&5
10467 sed 's/^/| /' conftest.$ac_ext >&5
10469 cat >conftest.$ac_ext <<_ACEOF
10470 /* confdefs.h. */
10471 _ACEOF
10472 cat confdefs.h >>conftest.$ac_ext
10473 cat >>conftest.$ac_ext <<_ACEOF
10474 /* end confdefs.h. */
10475 $ac_includes_default
10476 typedef size_t ac__type_sizeof_;
10478 main ()
10480 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
10481 test_array [0] = 0
10484 return 0;
10486 _ACEOF
10487 rm -f conftest.$ac_objext
10488 if { (ac_try="$ac_compile"
10489 case "(($ac_try" in
10490 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10491 *) ac_try_echo=$ac_try;;
10492 esac
10493 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10494 (eval "$ac_compile") 2>conftest.er1
10495 ac_status=$?
10496 grep -v '^ *+' conftest.er1 >conftest.err
10497 rm -f conftest.er1
10498 cat conftest.err >&5
10499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10500 (exit $ac_status); } && {
10501 test -z "$ac_c_werror_flag" ||
10502 test ! -s conftest.err
10503 } && test -s conftest.$ac_objext; then
10504 ac_hi=-1 ac_mid=-1
10505 while :; do
10506 cat >conftest.$ac_ext <<_ACEOF
10507 /* confdefs.h. */
10508 _ACEOF
10509 cat confdefs.h >>conftest.$ac_ext
10510 cat >>conftest.$ac_ext <<_ACEOF
10511 /* end confdefs.h. */
10512 $ac_includes_default
10513 typedef size_t ac__type_sizeof_;
10515 main ()
10517 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
10518 test_array [0] = 0
10521 return 0;
10523 _ACEOF
10524 rm -f conftest.$ac_objext
10525 if { (ac_try="$ac_compile"
10526 case "(($ac_try" in
10527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10528 *) ac_try_echo=$ac_try;;
10529 esac
10530 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10531 (eval "$ac_compile") 2>conftest.er1
10532 ac_status=$?
10533 grep -v '^ *+' conftest.er1 >conftest.err
10534 rm -f conftest.er1
10535 cat conftest.err >&5
10536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10537 (exit $ac_status); } && {
10538 test -z "$ac_c_werror_flag" ||
10539 test ! -s conftest.err
10540 } && test -s conftest.$ac_objext; then
10541 ac_lo=$ac_mid; break
10542 else
10543 echo "$as_me: failed program was:" >&5
10544 sed 's/^/| /' conftest.$ac_ext >&5
10546 ac_hi=`expr '(' $ac_mid ')' - 1`
10547 if test $ac_mid -le $ac_hi; then
10548 ac_lo= ac_hi=
10549 break
10551 ac_mid=`expr 2 '*' $ac_mid`
10554 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10555 done
10556 else
10557 echo "$as_me: failed program was:" >&5
10558 sed 's/^/| /' conftest.$ac_ext >&5
10560 ac_lo= ac_hi=
10563 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10566 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10567 # Binary search between lo and hi bounds.
10568 while test "x$ac_lo" != "x$ac_hi"; do
10569 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10570 cat >conftest.$ac_ext <<_ACEOF
10571 /* confdefs.h. */
10572 _ACEOF
10573 cat confdefs.h >>conftest.$ac_ext
10574 cat >>conftest.$ac_ext <<_ACEOF
10575 /* end confdefs.h. */
10576 $ac_includes_default
10577 typedef size_t ac__type_sizeof_;
10579 main ()
10581 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
10582 test_array [0] = 0
10585 return 0;
10587 _ACEOF
10588 rm -f conftest.$ac_objext
10589 if { (ac_try="$ac_compile"
10590 case "(($ac_try" in
10591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10592 *) ac_try_echo=$ac_try;;
10593 esac
10594 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10595 (eval "$ac_compile") 2>conftest.er1
10596 ac_status=$?
10597 grep -v '^ *+' conftest.er1 >conftest.err
10598 rm -f conftest.er1
10599 cat conftest.err >&5
10600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10601 (exit $ac_status); } && {
10602 test -z "$ac_c_werror_flag" ||
10603 test ! -s conftest.err
10604 } && test -s conftest.$ac_objext; then
10605 ac_hi=$ac_mid
10606 else
10607 echo "$as_me: failed program was:" >&5
10608 sed 's/^/| /' conftest.$ac_ext >&5
10610 ac_lo=`expr '(' $ac_mid ')' + 1`
10613 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10614 done
10615 case $ac_lo in
10616 ?*) ac_cv_sizeof_size_t=$ac_lo;;
10617 '') if test "$ac_cv_type_size_t" = yes; then
10618 { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
10619 See \`config.log' for more details." >&5
10620 echo "$as_me: error: cannot compute sizeof (size_t)
10621 See \`config.log' for more details." >&2;}
10622 { (exit 77); exit 77; }; }
10623 else
10624 ac_cv_sizeof_size_t=0
10625 fi ;;
10626 esac
10627 else
10628 cat >conftest.$ac_ext <<_ACEOF
10629 /* confdefs.h. */
10630 _ACEOF
10631 cat confdefs.h >>conftest.$ac_ext
10632 cat >>conftest.$ac_ext <<_ACEOF
10633 /* end confdefs.h. */
10634 $ac_includes_default
10635 typedef size_t ac__type_sizeof_;
10636 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
10637 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
10638 #include <stdio.h>
10639 #include <stdlib.h>
10641 main ()
10644 FILE *f = fopen ("conftest.val", "w");
10645 if (! f)
10646 return 1;
10647 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
10649 long int i = longval ();
10650 if (i != ((long int) (sizeof (ac__type_sizeof_))))
10651 return 1;
10652 fprintf (f, "%ld\n", i);
10654 else
10656 unsigned long int i = ulongval ();
10657 if (i != ((long int) (sizeof (ac__type_sizeof_))))
10658 return 1;
10659 fprintf (f, "%lu\n", i);
10661 return ferror (f) || fclose (f) != 0;
10664 return 0;
10666 _ACEOF
10667 rm -f conftest$ac_exeext
10668 if { (ac_try="$ac_link"
10669 case "(($ac_try" in
10670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10671 *) ac_try_echo=$ac_try;;
10672 esac
10673 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10674 (eval "$ac_link") 2>&5
10675 ac_status=$?
10676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10677 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10678 { (case "(($ac_try" in
10679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10680 *) ac_try_echo=$ac_try;;
10681 esac
10682 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10683 (eval "$ac_try") 2>&5
10684 ac_status=$?
10685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10686 (exit $ac_status); }; }; then
10687 ac_cv_sizeof_size_t=`cat conftest.val`
10688 else
10689 echo "$as_me: program exited with status $ac_status" >&5
10690 echo "$as_me: failed program was:" >&5
10691 sed 's/^/| /' conftest.$ac_ext >&5
10693 ( exit $ac_status )
10694 if test "$ac_cv_type_size_t" = yes; then
10695 { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
10696 See \`config.log' for more details." >&5
10697 echo "$as_me: error: cannot compute sizeof (size_t)
10698 See \`config.log' for more details." >&2;}
10699 { (exit 77); exit 77; }; }
10700 else
10701 ac_cv_sizeof_size_t=0
10704 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10706 rm -f conftest.val
10708 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
10709 echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6; }
10713 cat >>confdefs.h <<_ACEOF
10714 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
10715 _ACEOF
10718 { echo "$as_me:$LINENO: checking for pid_t" >&5
10719 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
10720 if test "${ac_cv_type_pid_t+set}" = set; then
10721 echo $ECHO_N "(cached) $ECHO_C" >&6
10722 else
10723 cat >conftest.$ac_ext <<_ACEOF
10724 /* confdefs.h. */
10725 _ACEOF
10726 cat confdefs.h >>conftest.$ac_ext
10727 cat >>conftest.$ac_ext <<_ACEOF
10728 /* end confdefs.h. */
10729 $ac_includes_default
10730 typedef pid_t ac__type_new_;
10732 main ()
10734 if ((ac__type_new_ *) 0)
10735 return 0;
10736 if (sizeof (ac__type_new_))
10737 return 0;
10739 return 0;
10741 _ACEOF
10742 rm -f conftest.$ac_objext
10743 if { (ac_try="$ac_compile"
10744 case "(($ac_try" in
10745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10746 *) ac_try_echo=$ac_try;;
10747 esac
10748 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10749 (eval "$ac_compile") 2>conftest.er1
10750 ac_status=$?
10751 grep -v '^ *+' conftest.er1 >conftest.err
10752 rm -f conftest.er1
10753 cat conftest.err >&5
10754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10755 (exit $ac_status); } && {
10756 test -z "$ac_c_werror_flag" ||
10757 test ! -s conftest.err
10758 } && test -s conftest.$ac_objext; then
10759 ac_cv_type_pid_t=yes
10760 else
10761 echo "$as_me: failed program was:" >&5
10762 sed 's/^/| /' conftest.$ac_ext >&5
10764 ac_cv_type_pid_t=no
10767 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10769 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
10770 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
10772 # The cast to long int works around a bug in the HP C Compiler
10773 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10774 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10775 # This bug is HP SR number 8606223364.
10776 { echo "$as_me:$LINENO: checking size of pid_t" >&5
10777 echo $ECHO_N "checking size of pid_t... $ECHO_C" >&6; }
10778 if test "${ac_cv_sizeof_pid_t+set}" = set; then
10779 echo $ECHO_N "(cached) $ECHO_C" >&6
10780 else
10781 if test "$cross_compiling" = yes; then
10782 # Depending upon the size, compute the lo and hi bounds.
10783 cat >conftest.$ac_ext <<_ACEOF
10784 /* confdefs.h. */
10785 _ACEOF
10786 cat confdefs.h >>conftest.$ac_ext
10787 cat >>conftest.$ac_ext <<_ACEOF
10788 /* end confdefs.h. */
10789 $ac_includes_default
10790 typedef pid_t ac__type_sizeof_;
10792 main ()
10794 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
10795 test_array [0] = 0
10798 return 0;
10800 _ACEOF
10801 rm -f conftest.$ac_objext
10802 if { (ac_try="$ac_compile"
10803 case "(($ac_try" in
10804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10805 *) ac_try_echo=$ac_try;;
10806 esac
10807 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10808 (eval "$ac_compile") 2>conftest.er1
10809 ac_status=$?
10810 grep -v '^ *+' conftest.er1 >conftest.err
10811 rm -f conftest.er1
10812 cat conftest.err >&5
10813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10814 (exit $ac_status); } && {
10815 test -z "$ac_c_werror_flag" ||
10816 test ! -s conftest.err
10817 } && test -s conftest.$ac_objext; then
10818 ac_lo=0 ac_mid=0
10819 while :; do
10820 cat >conftest.$ac_ext <<_ACEOF
10821 /* confdefs.h. */
10822 _ACEOF
10823 cat confdefs.h >>conftest.$ac_ext
10824 cat >>conftest.$ac_ext <<_ACEOF
10825 /* end confdefs.h. */
10826 $ac_includes_default
10827 typedef pid_t ac__type_sizeof_;
10829 main ()
10831 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
10832 test_array [0] = 0
10835 return 0;
10837 _ACEOF
10838 rm -f conftest.$ac_objext
10839 if { (ac_try="$ac_compile"
10840 case "(($ac_try" in
10841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10842 *) ac_try_echo=$ac_try;;
10843 esac
10844 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10845 (eval "$ac_compile") 2>conftest.er1
10846 ac_status=$?
10847 grep -v '^ *+' conftest.er1 >conftest.err
10848 rm -f conftest.er1
10849 cat conftest.err >&5
10850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10851 (exit $ac_status); } && {
10852 test -z "$ac_c_werror_flag" ||
10853 test ! -s conftest.err
10854 } && test -s conftest.$ac_objext; then
10855 ac_hi=$ac_mid; break
10856 else
10857 echo "$as_me: failed program was:" >&5
10858 sed 's/^/| /' conftest.$ac_ext >&5
10860 ac_lo=`expr $ac_mid + 1`
10861 if test $ac_lo -le $ac_mid; then
10862 ac_lo= ac_hi=
10863 break
10865 ac_mid=`expr 2 '*' $ac_mid + 1`
10868 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10869 done
10870 else
10871 echo "$as_me: failed program was:" >&5
10872 sed 's/^/| /' conftest.$ac_ext >&5
10874 cat >conftest.$ac_ext <<_ACEOF
10875 /* confdefs.h. */
10876 _ACEOF
10877 cat confdefs.h >>conftest.$ac_ext
10878 cat >>conftest.$ac_ext <<_ACEOF
10879 /* end confdefs.h. */
10880 $ac_includes_default
10881 typedef pid_t ac__type_sizeof_;
10883 main ()
10885 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
10886 test_array [0] = 0
10889 return 0;
10891 _ACEOF
10892 rm -f conftest.$ac_objext
10893 if { (ac_try="$ac_compile"
10894 case "(($ac_try" in
10895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10896 *) ac_try_echo=$ac_try;;
10897 esac
10898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10899 (eval "$ac_compile") 2>conftest.er1
10900 ac_status=$?
10901 grep -v '^ *+' conftest.er1 >conftest.err
10902 rm -f conftest.er1
10903 cat conftest.err >&5
10904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10905 (exit $ac_status); } && {
10906 test -z "$ac_c_werror_flag" ||
10907 test ! -s conftest.err
10908 } && test -s conftest.$ac_objext; then
10909 ac_hi=-1 ac_mid=-1
10910 while :; do
10911 cat >conftest.$ac_ext <<_ACEOF
10912 /* confdefs.h. */
10913 _ACEOF
10914 cat confdefs.h >>conftest.$ac_ext
10915 cat >>conftest.$ac_ext <<_ACEOF
10916 /* end confdefs.h. */
10917 $ac_includes_default
10918 typedef pid_t ac__type_sizeof_;
10920 main ()
10922 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
10923 test_array [0] = 0
10926 return 0;
10928 _ACEOF
10929 rm -f conftest.$ac_objext
10930 if { (ac_try="$ac_compile"
10931 case "(($ac_try" in
10932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10933 *) ac_try_echo=$ac_try;;
10934 esac
10935 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10936 (eval "$ac_compile") 2>conftest.er1
10937 ac_status=$?
10938 grep -v '^ *+' conftest.er1 >conftest.err
10939 rm -f conftest.er1
10940 cat conftest.err >&5
10941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10942 (exit $ac_status); } && {
10943 test -z "$ac_c_werror_flag" ||
10944 test ! -s conftest.err
10945 } && test -s conftest.$ac_objext; then
10946 ac_lo=$ac_mid; break
10947 else
10948 echo "$as_me: failed program was:" >&5
10949 sed 's/^/| /' conftest.$ac_ext >&5
10951 ac_hi=`expr '(' $ac_mid ')' - 1`
10952 if test $ac_mid -le $ac_hi; then
10953 ac_lo= ac_hi=
10954 break
10956 ac_mid=`expr 2 '*' $ac_mid`
10959 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10960 done
10961 else
10962 echo "$as_me: failed program was:" >&5
10963 sed 's/^/| /' conftest.$ac_ext >&5
10965 ac_lo= ac_hi=
10968 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10971 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10972 # Binary search between lo and hi bounds.
10973 while test "x$ac_lo" != "x$ac_hi"; do
10974 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10975 cat >conftest.$ac_ext <<_ACEOF
10976 /* confdefs.h. */
10977 _ACEOF
10978 cat confdefs.h >>conftest.$ac_ext
10979 cat >>conftest.$ac_ext <<_ACEOF
10980 /* end confdefs.h. */
10981 $ac_includes_default
10982 typedef pid_t ac__type_sizeof_;
10984 main ()
10986 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
10987 test_array [0] = 0
10990 return 0;
10992 _ACEOF
10993 rm -f conftest.$ac_objext
10994 if { (ac_try="$ac_compile"
10995 case "(($ac_try" in
10996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10997 *) ac_try_echo=$ac_try;;
10998 esac
10999 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11000 (eval "$ac_compile") 2>conftest.er1
11001 ac_status=$?
11002 grep -v '^ *+' conftest.er1 >conftest.err
11003 rm -f conftest.er1
11004 cat conftest.err >&5
11005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11006 (exit $ac_status); } && {
11007 test -z "$ac_c_werror_flag" ||
11008 test ! -s conftest.err
11009 } && test -s conftest.$ac_objext; then
11010 ac_hi=$ac_mid
11011 else
11012 echo "$as_me: failed program was:" >&5
11013 sed 's/^/| /' conftest.$ac_ext >&5
11015 ac_lo=`expr '(' $ac_mid ')' + 1`
11018 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11019 done
11020 case $ac_lo in
11021 ?*) ac_cv_sizeof_pid_t=$ac_lo;;
11022 '') if test "$ac_cv_type_pid_t" = yes; then
11023 { { echo "$as_me:$LINENO: error: cannot compute sizeof (pid_t)
11024 See \`config.log' for more details." >&5
11025 echo "$as_me: error: cannot compute sizeof (pid_t)
11026 See \`config.log' for more details." >&2;}
11027 { (exit 77); exit 77; }; }
11028 else
11029 ac_cv_sizeof_pid_t=0
11030 fi ;;
11031 esac
11032 else
11033 cat >conftest.$ac_ext <<_ACEOF
11034 /* confdefs.h. */
11035 _ACEOF
11036 cat confdefs.h >>conftest.$ac_ext
11037 cat >>conftest.$ac_ext <<_ACEOF
11038 /* end confdefs.h. */
11039 $ac_includes_default
11040 typedef pid_t ac__type_sizeof_;
11041 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
11042 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
11043 #include <stdio.h>
11044 #include <stdlib.h>
11046 main ()
11049 FILE *f = fopen ("conftest.val", "w");
11050 if (! f)
11051 return 1;
11052 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
11054 long int i = longval ();
11055 if (i != ((long int) (sizeof (ac__type_sizeof_))))
11056 return 1;
11057 fprintf (f, "%ld\n", i);
11059 else
11061 unsigned long int i = ulongval ();
11062 if (i != ((long int) (sizeof (ac__type_sizeof_))))
11063 return 1;
11064 fprintf (f, "%lu\n", i);
11066 return ferror (f) || fclose (f) != 0;
11069 return 0;
11071 _ACEOF
11072 rm -f conftest$ac_exeext
11073 if { (ac_try="$ac_link"
11074 case "(($ac_try" in
11075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11076 *) ac_try_echo=$ac_try;;
11077 esac
11078 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11079 (eval "$ac_link") 2>&5
11080 ac_status=$?
11081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11082 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11083 { (case "(($ac_try" in
11084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11085 *) ac_try_echo=$ac_try;;
11086 esac
11087 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11088 (eval "$ac_try") 2>&5
11089 ac_status=$?
11090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11091 (exit $ac_status); }; }; then
11092 ac_cv_sizeof_pid_t=`cat conftest.val`
11093 else
11094 echo "$as_me: program exited with status $ac_status" >&5
11095 echo "$as_me: failed program was:" >&5
11096 sed 's/^/| /' conftest.$ac_ext >&5
11098 ( exit $ac_status )
11099 if test "$ac_cv_type_pid_t" = yes; then
11100 { { echo "$as_me:$LINENO: error: cannot compute sizeof (pid_t)
11101 See \`config.log' for more details." >&5
11102 echo "$as_me: error: cannot compute sizeof (pid_t)
11103 See \`config.log' for more details." >&2;}
11104 { (exit 77); exit 77; }; }
11105 else
11106 ac_cv_sizeof_pid_t=0
11109 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11111 rm -f conftest.val
11113 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_pid_t" >&5
11114 echo "${ECHO_T}$ac_cv_sizeof_pid_t" >&6; }
11118 cat >>confdefs.h <<_ACEOF
11119 #define SIZEOF_PID_T $ac_cv_sizeof_pid_t
11120 _ACEOF
11124 { echo "$as_me:$LINENO: checking for long long support" >&5
11125 echo $ECHO_N "checking for long long support... $ECHO_C" >&6; }
11126 have_long_long=no
11127 cat >conftest.$ac_ext <<_ACEOF
11128 /* confdefs.h. */
11129 _ACEOF
11130 cat confdefs.h >>conftest.$ac_ext
11131 cat >>conftest.$ac_ext <<_ACEOF
11132 /* end confdefs.h. */
11135 main ()
11137 long long x; x = (long long)0;
11139 return 0;
11141 _ACEOF
11142 rm -f conftest.$ac_objext
11143 if { (ac_try="$ac_compile"
11144 case "(($ac_try" in
11145 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11146 *) ac_try_echo=$ac_try;;
11147 esac
11148 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11149 (eval "$ac_compile") 2>conftest.er1
11150 ac_status=$?
11151 grep -v '^ *+' conftest.er1 >conftest.err
11152 rm -f conftest.er1
11153 cat conftest.err >&5
11154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11155 (exit $ac_status); } && {
11156 test -z "$ac_c_werror_flag" ||
11157 test ! -s conftest.err
11158 } && test -s conftest.$ac_objext; then
11161 cat >>confdefs.h <<\_ACEOF
11162 #define HAVE_LONG_LONG 1
11163 _ACEOF
11165 have_long_long=yes
11167 else
11168 echo "$as_me: failed program was:" >&5
11169 sed 's/^/| /' conftest.$ac_ext >&5
11174 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11175 { echo "$as_me:$LINENO: result: $have_long_long" >&5
11176 echo "${ECHO_T}$have_long_long" >&6; }
11177 if test "$have_long_long" = yes ; then
11178 { echo "$as_me:$LINENO: checking for long long" >&5
11179 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
11180 if test "${ac_cv_type_long_long+set}" = set; then
11181 echo $ECHO_N "(cached) $ECHO_C" >&6
11182 else
11183 cat >conftest.$ac_ext <<_ACEOF
11184 /* confdefs.h. */
11185 _ACEOF
11186 cat confdefs.h >>conftest.$ac_ext
11187 cat >>conftest.$ac_ext <<_ACEOF
11188 /* end confdefs.h. */
11189 $ac_includes_default
11190 typedef long long ac__type_new_;
11192 main ()
11194 if ((ac__type_new_ *) 0)
11195 return 0;
11196 if (sizeof (ac__type_new_))
11197 return 0;
11199 return 0;
11201 _ACEOF
11202 rm -f conftest.$ac_objext
11203 if { (ac_try="$ac_compile"
11204 case "(($ac_try" in
11205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11206 *) ac_try_echo=$ac_try;;
11207 esac
11208 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11209 (eval "$ac_compile") 2>conftest.er1
11210 ac_status=$?
11211 grep -v '^ *+' conftest.er1 >conftest.err
11212 rm -f conftest.er1
11213 cat conftest.err >&5
11214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11215 (exit $ac_status); } && {
11216 test -z "$ac_c_werror_flag" ||
11217 test ! -s conftest.err
11218 } && test -s conftest.$ac_objext; then
11219 ac_cv_type_long_long=yes
11220 else
11221 echo "$as_me: failed program was:" >&5
11222 sed 's/^/| /' conftest.$ac_ext >&5
11224 ac_cv_type_long_long=no
11227 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11229 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
11230 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
11232 # The cast to long int works around a bug in the HP C Compiler
11233 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11234 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11235 # This bug is HP SR number 8606223364.
11236 { echo "$as_me:$LINENO: checking size of long long" >&5
11237 echo $ECHO_N "checking size of long long... $ECHO_C" >&6; }
11238 if test "${ac_cv_sizeof_long_long+set}" = set; then
11239 echo $ECHO_N "(cached) $ECHO_C" >&6
11240 else
11241 if test "$cross_compiling" = yes; then
11242 # Depending upon the size, compute the lo and hi bounds.
11243 cat >conftest.$ac_ext <<_ACEOF
11244 /* confdefs.h. */
11245 _ACEOF
11246 cat confdefs.h >>conftest.$ac_ext
11247 cat >>conftest.$ac_ext <<_ACEOF
11248 /* end confdefs.h. */
11249 $ac_includes_default
11250 typedef long long ac__type_sizeof_;
11252 main ()
11254 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
11255 test_array [0] = 0
11258 return 0;
11260 _ACEOF
11261 rm -f conftest.$ac_objext
11262 if { (ac_try="$ac_compile"
11263 case "(($ac_try" in
11264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11265 *) ac_try_echo=$ac_try;;
11266 esac
11267 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11268 (eval "$ac_compile") 2>conftest.er1
11269 ac_status=$?
11270 grep -v '^ *+' conftest.er1 >conftest.err
11271 rm -f conftest.er1
11272 cat conftest.err >&5
11273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11274 (exit $ac_status); } && {
11275 test -z "$ac_c_werror_flag" ||
11276 test ! -s conftest.err
11277 } && test -s conftest.$ac_objext; then
11278 ac_lo=0 ac_mid=0
11279 while :; do
11280 cat >conftest.$ac_ext <<_ACEOF
11281 /* confdefs.h. */
11282 _ACEOF
11283 cat confdefs.h >>conftest.$ac_ext
11284 cat >>conftest.$ac_ext <<_ACEOF
11285 /* end confdefs.h. */
11286 $ac_includes_default
11287 typedef long long ac__type_sizeof_;
11289 main ()
11291 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
11292 test_array [0] = 0
11295 return 0;
11297 _ACEOF
11298 rm -f conftest.$ac_objext
11299 if { (ac_try="$ac_compile"
11300 case "(($ac_try" in
11301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11302 *) ac_try_echo=$ac_try;;
11303 esac
11304 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11305 (eval "$ac_compile") 2>conftest.er1
11306 ac_status=$?
11307 grep -v '^ *+' conftest.er1 >conftest.err
11308 rm -f conftest.er1
11309 cat conftest.err >&5
11310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11311 (exit $ac_status); } && {
11312 test -z "$ac_c_werror_flag" ||
11313 test ! -s conftest.err
11314 } && test -s conftest.$ac_objext; then
11315 ac_hi=$ac_mid; break
11316 else
11317 echo "$as_me: failed program was:" >&5
11318 sed 's/^/| /' conftest.$ac_ext >&5
11320 ac_lo=`expr $ac_mid + 1`
11321 if test $ac_lo -le $ac_mid; then
11322 ac_lo= ac_hi=
11323 break
11325 ac_mid=`expr 2 '*' $ac_mid + 1`
11328 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11329 done
11330 else
11331 echo "$as_me: failed program was:" >&5
11332 sed 's/^/| /' conftest.$ac_ext >&5
11334 cat >conftest.$ac_ext <<_ACEOF
11335 /* confdefs.h. */
11336 _ACEOF
11337 cat confdefs.h >>conftest.$ac_ext
11338 cat >>conftest.$ac_ext <<_ACEOF
11339 /* end confdefs.h. */
11340 $ac_includes_default
11341 typedef long long ac__type_sizeof_;
11343 main ()
11345 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
11346 test_array [0] = 0
11349 return 0;
11351 _ACEOF
11352 rm -f conftest.$ac_objext
11353 if { (ac_try="$ac_compile"
11354 case "(($ac_try" in
11355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11356 *) ac_try_echo=$ac_try;;
11357 esac
11358 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11359 (eval "$ac_compile") 2>conftest.er1
11360 ac_status=$?
11361 grep -v '^ *+' conftest.er1 >conftest.err
11362 rm -f conftest.er1
11363 cat conftest.err >&5
11364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11365 (exit $ac_status); } && {
11366 test -z "$ac_c_werror_flag" ||
11367 test ! -s conftest.err
11368 } && test -s conftest.$ac_objext; then
11369 ac_hi=-1 ac_mid=-1
11370 while :; do
11371 cat >conftest.$ac_ext <<_ACEOF
11372 /* confdefs.h. */
11373 _ACEOF
11374 cat confdefs.h >>conftest.$ac_ext
11375 cat >>conftest.$ac_ext <<_ACEOF
11376 /* end confdefs.h. */
11377 $ac_includes_default
11378 typedef long long ac__type_sizeof_;
11380 main ()
11382 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
11383 test_array [0] = 0
11386 return 0;
11388 _ACEOF
11389 rm -f conftest.$ac_objext
11390 if { (ac_try="$ac_compile"
11391 case "(($ac_try" in
11392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11393 *) ac_try_echo=$ac_try;;
11394 esac
11395 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11396 (eval "$ac_compile") 2>conftest.er1
11397 ac_status=$?
11398 grep -v '^ *+' conftest.er1 >conftest.err
11399 rm -f conftest.er1
11400 cat conftest.err >&5
11401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11402 (exit $ac_status); } && {
11403 test -z "$ac_c_werror_flag" ||
11404 test ! -s conftest.err
11405 } && test -s conftest.$ac_objext; then
11406 ac_lo=$ac_mid; break
11407 else
11408 echo "$as_me: failed program was:" >&5
11409 sed 's/^/| /' conftest.$ac_ext >&5
11411 ac_hi=`expr '(' $ac_mid ')' - 1`
11412 if test $ac_mid -le $ac_hi; then
11413 ac_lo= ac_hi=
11414 break
11416 ac_mid=`expr 2 '*' $ac_mid`
11419 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11420 done
11421 else
11422 echo "$as_me: failed program was:" >&5
11423 sed 's/^/| /' conftest.$ac_ext >&5
11425 ac_lo= ac_hi=
11428 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11431 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11432 # Binary search between lo and hi bounds.
11433 while test "x$ac_lo" != "x$ac_hi"; do
11434 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
11435 cat >conftest.$ac_ext <<_ACEOF
11436 /* confdefs.h. */
11437 _ACEOF
11438 cat confdefs.h >>conftest.$ac_ext
11439 cat >>conftest.$ac_ext <<_ACEOF
11440 /* end confdefs.h. */
11441 $ac_includes_default
11442 typedef long long ac__type_sizeof_;
11444 main ()
11446 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
11447 test_array [0] = 0
11450 return 0;
11452 _ACEOF
11453 rm -f conftest.$ac_objext
11454 if { (ac_try="$ac_compile"
11455 case "(($ac_try" in
11456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11457 *) ac_try_echo=$ac_try;;
11458 esac
11459 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11460 (eval "$ac_compile") 2>conftest.er1
11461 ac_status=$?
11462 grep -v '^ *+' conftest.er1 >conftest.err
11463 rm -f conftest.er1
11464 cat conftest.err >&5
11465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11466 (exit $ac_status); } && {
11467 test -z "$ac_c_werror_flag" ||
11468 test ! -s conftest.err
11469 } && test -s conftest.$ac_objext; then
11470 ac_hi=$ac_mid
11471 else
11472 echo "$as_me: failed program was:" >&5
11473 sed 's/^/| /' conftest.$ac_ext >&5
11475 ac_lo=`expr '(' $ac_mid ')' + 1`
11478 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11479 done
11480 case $ac_lo in
11481 ?*) ac_cv_sizeof_long_long=$ac_lo;;
11482 '') if test "$ac_cv_type_long_long" = yes; then
11483 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
11484 See \`config.log' for more details." >&5
11485 echo "$as_me: error: cannot compute sizeof (long long)
11486 See \`config.log' for more details." >&2;}
11487 { (exit 77); exit 77; }; }
11488 else
11489 ac_cv_sizeof_long_long=0
11490 fi ;;
11491 esac
11492 else
11493 cat >conftest.$ac_ext <<_ACEOF
11494 /* confdefs.h. */
11495 _ACEOF
11496 cat confdefs.h >>conftest.$ac_ext
11497 cat >>conftest.$ac_ext <<_ACEOF
11498 /* end confdefs.h. */
11499 $ac_includes_default
11500 typedef long long ac__type_sizeof_;
11501 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
11502 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
11503 #include <stdio.h>
11504 #include <stdlib.h>
11506 main ()
11509 FILE *f = fopen ("conftest.val", "w");
11510 if (! f)
11511 return 1;
11512 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
11514 long int i = longval ();
11515 if (i != ((long int) (sizeof (ac__type_sizeof_))))
11516 return 1;
11517 fprintf (f, "%ld\n", i);
11519 else
11521 unsigned long int i = ulongval ();
11522 if (i != ((long int) (sizeof (ac__type_sizeof_))))
11523 return 1;
11524 fprintf (f, "%lu\n", i);
11526 return ferror (f) || fclose (f) != 0;
11529 return 0;
11531 _ACEOF
11532 rm -f conftest$ac_exeext
11533 if { (ac_try="$ac_link"
11534 case "(($ac_try" in
11535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11536 *) ac_try_echo=$ac_try;;
11537 esac
11538 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11539 (eval "$ac_link") 2>&5
11540 ac_status=$?
11541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11542 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11543 { (case "(($ac_try" in
11544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11545 *) ac_try_echo=$ac_try;;
11546 esac
11547 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11548 (eval "$ac_try") 2>&5
11549 ac_status=$?
11550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11551 (exit $ac_status); }; }; then
11552 ac_cv_sizeof_long_long=`cat conftest.val`
11553 else
11554 echo "$as_me: program exited with status $ac_status" >&5
11555 echo "$as_me: failed program was:" >&5
11556 sed 's/^/| /' conftest.$ac_ext >&5
11558 ( exit $ac_status )
11559 if test "$ac_cv_type_long_long" = yes; then
11560 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
11561 See \`config.log' for more details." >&5
11562 echo "$as_me: error: cannot compute sizeof (long long)
11563 See \`config.log' for more details." >&2;}
11564 { (exit 77); exit 77; }; }
11565 else
11566 ac_cv_sizeof_long_long=0
11569 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11571 rm -f conftest.val
11573 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
11574 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6; }
11578 cat >>confdefs.h <<_ACEOF
11579 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
11580 _ACEOF
11585 { echo "$as_me:$LINENO: checking for long double support" >&5
11586 echo $ECHO_N "checking for long double support... $ECHO_C" >&6; }
11587 have_long_double=no
11588 cat >conftest.$ac_ext <<_ACEOF
11589 /* confdefs.h. */
11590 _ACEOF
11591 cat confdefs.h >>conftest.$ac_ext
11592 cat >>conftest.$ac_ext <<_ACEOF
11593 /* end confdefs.h. */
11596 main ()
11598 long double x; x = (long double)0.;
11600 return 0;
11602 _ACEOF
11603 rm -f conftest.$ac_objext
11604 if { (ac_try="$ac_compile"
11605 case "(($ac_try" in
11606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11607 *) ac_try_echo=$ac_try;;
11608 esac
11609 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11610 (eval "$ac_compile") 2>conftest.er1
11611 ac_status=$?
11612 grep -v '^ *+' conftest.er1 >conftest.err
11613 rm -f conftest.er1
11614 cat conftest.err >&5
11615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11616 (exit $ac_status); } && {
11617 test -z "$ac_c_werror_flag" ||
11618 test ! -s conftest.err
11619 } && test -s conftest.$ac_objext; then
11622 cat >>confdefs.h <<\_ACEOF
11623 #define HAVE_LONG_DOUBLE 1
11624 _ACEOF
11626 have_long_double=yes
11628 else
11629 echo "$as_me: failed program was:" >&5
11630 sed 's/^/| /' conftest.$ac_ext >&5
11635 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11636 { echo "$as_me:$LINENO: result: $have_long_double" >&5
11637 echo "${ECHO_T}$have_long_double" >&6; }
11638 if test "$have_long_double" = yes ; then
11639 { echo "$as_me:$LINENO: checking for long double" >&5
11640 echo $ECHO_N "checking for long double... $ECHO_C" >&6; }
11641 if test "${ac_cv_type_long_double+set}" = set; then
11642 echo $ECHO_N "(cached) $ECHO_C" >&6
11643 else
11644 cat >conftest.$ac_ext <<_ACEOF
11645 /* confdefs.h. */
11646 _ACEOF
11647 cat confdefs.h >>conftest.$ac_ext
11648 cat >>conftest.$ac_ext <<_ACEOF
11649 /* end confdefs.h. */
11650 $ac_includes_default
11651 typedef long double ac__type_new_;
11653 main ()
11655 if ((ac__type_new_ *) 0)
11656 return 0;
11657 if (sizeof (ac__type_new_))
11658 return 0;
11660 return 0;
11662 _ACEOF
11663 rm -f conftest.$ac_objext
11664 if { (ac_try="$ac_compile"
11665 case "(($ac_try" in
11666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11667 *) ac_try_echo=$ac_try;;
11668 esac
11669 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11670 (eval "$ac_compile") 2>conftest.er1
11671 ac_status=$?
11672 grep -v '^ *+' conftest.er1 >conftest.err
11673 rm -f conftest.er1
11674 cat conftest.err >&5
11675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11676 (exit $ac_status); } && {
11677 test -z "$ac_c_werror_flag" ||
11678 test ! -s conftest.err
11679 } && test -s conftest.$ac_objext; then
11680 ac_cv_type_long_double=yes
11681 else
11682 echo "$as_me: failed program was:" >&5
11683 sed 's/^/| /' conftest.$ac_ext >&5
11685 ac_cv_type_long_double=no
11688 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11690 { echo "$as_me:$LINENO: result: $ac_cv_type_long_double" >&5
11691 echo "${ECHO_T}$ac_cv_type_long_double" >&6; }
11693 # The cast to long int works around a bug in the HP C Compiler
11694 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11695 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11696 # This bug is HP SR number 8606223364.
11697 { echo "$as_me:$LINENO: checking size of long double" >&5
11698 echo $ECHO_N "checking size of long double... $ECHO_C" >&6; }
11699 if test "${ac_cv_sizeof_long_double+set}" = set; then
11700 echo $ECHO_N "(cached) $ECHO_C" >&6
11701 else
11702 if test "$cross_compiling" = yes; then
11703 # Depending upon the size, compute the lo and hi bounds.
11704 cat >conftest.$ac_ext <<_ACEOF
11705 /* confdefs.h. */
11706 _ACEOF
11707 cat confdefs.h >>conftest.$ac_ext
11708 cat >>conftest.$ac_ext <<_ACEOF
11709 /* end confdefs.h. */
11710 $ac_includes_default
11711 typedef long double ac__type_sizeof_;
11713 main ()
11715 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
11716 test_array [0] = 0
11719 return 0;
11721 _ACEOF
11722 rm -f conftest.$ac_objext
11723 if { (ac_try="$ac_compile"
11724 case "(($ac_try" in
11725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11726 *) ac_try_echo=$ac_try;;
11727 esac
11728 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11729 (eval "$ac_compile") 2>conftest.er1
11730 ac_status=$?
11731 grep -v '^ *+' conftest.er1 >conftest.err
11732 rm -f conftest.er1
11733 cat conftest.err >&5
11734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11735 (exit $ac_status); } && {
11736 test -z "$ac_c_werror_flag" ||
11737 test ! -s conftest.err
11738 } && test -s conftest.$ac_objext; then
11739 ac_lo=0 ac_mid=0
11740 while :; do
11741 cat >conftest.$ac_ext <<_ACEOF
11742 /* confdefs.h. */
11743 _ACEOF
11744 cat confdefs.h >>conftest.$ac_ext
11745 cat >>conftest.$ac_ext <<_ACEOF
11746 /* end confdefs.h. */
11747 $ac_includes_default
11748 typedef long double ac__type_sizeof_;
11750 main ()
11752 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
11753 test_array [0] = 0
11756 return 0;
11758 _ACEOF
11759 rm -f conftest.$ac_objext
11760 if { (ac_try="$ac_compile"
11761 case "(($ac_try" in
11762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11763 *) ac_try_echo=$ac_try;;
11764 esac
11765 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11766 (eval "$ac_compile") 2>conftest.er1
11767 ac_status=$?
11768 grep -v '^ *+' conftest.er1 >conftest.err
11769 rm -f conftest.er1
11770 cat conftest.err >&5
11771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11772 (exit $ac_status); } && {
11773 test -z "$ac_c_werror_flag" ||
11774 test ! -s conftest.err
11775 } && test -s conftest.$ac_objext; then
11776 ac_hi=$ac_mid; break
11777 else
11778 echo "$as_me: failed program was:" >&5
11779 sed 's/^/| /' conftest.$ac_ext >&5
11781 ac_lo=`expr $ac_mid + 1`
11782 if test $ac_lo -le $ac_mid; then
11783 ac_lo= ac_hi=
11784 break
11786 ac_mid=`expr 2 '*' $ac_mid + 1`
11789 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11790 done
11791 else
11792 echo "$as_me: failed program was:" >&5
11793 sed 's/^/| /' conftest.$ac_ext >&5
11795 cat >conftest.$ac_ext <<_ACEOF
11796 /* confdefs.h. */
11797 _ACEOF
11798 cat confdefs.h >>conftest.$ac_ext
11799 cat >>conftest.$ac_ext <<_ACEOF
11800 /* end confdefs.h. */
11801 $ac_includes_default
11802 typedef long double ac__type_sizeof_;
11804 main ()
11806 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
11807 test_array [0] = 0
11810 return 0;
11812 _ACEOF
11813 rm -f conftest.$ac_objext
11814 if { (ac_try="$ac_compile"
11815 case "(($ac_try" in
11816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11817 *) ac_try_echo=$ac_try;;
11818 esac
11819 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11820 (eval "$ac_compile") 2>conftest.er1
11821 ac_status=$?
11822 grep -v '^ *+' conftest.er1 >conftest.err
11823 rm -f conftest.er1
11824 cat conftest.err >&5
11825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11826 (exit $ac_status); } && {
11827 test -z "$ac_c_werror_flag" ||
11828 test ! -s conftest.err
11829 } && test -s conftest.$ac_objext; then
11830 ac_hi=-1 ac_mid=-1
11831 while :; do
11832 cat >conftest.$ac_ext <<_ACEOF
11833 /* confdefs.h. */
11834 _ACEOF
11835 cat confdefs.h >>conftest.$ac_ext
11836 cat >>conftest.$ac_ext <<_ACEOF
11837 /* end confdefs.h. */
11838 $ac_includes_default
11839 typedef long double ac__type_sizeof_;
11841 main ()
11843 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
11844 test_array [0] = 0
11847 return 0;
11849 _ACEOF
11850 rm -f conftest.$ac_objext
11851 if { (ac_try="$ac_compile"
11852 case "(($ac_try" in
11853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11854 *) ac_try_echo=$ac_try;;
11855 esac
11856 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11857 (eval "$ac_compile") 2>conftest.er1
11858 ac_status=$?
11859 grep -v '^ *+' conftest.er1 >conftest.err
11860 rm -f conftest.er1
11861 cat conftest.err >&5
11862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11863 (exit $ac_status); } && {
11864 test -z "$ac_c_werror_flag" ||
11865 test ! -s conftest.err
11866 } && test -s conftest.$ac_objext; then
11867 ac_lo=$ac_mid; break
11868 else
11869 echo "$as_me: failed program was:" >&5
11870 sed 's/^/| /' conftest.$ac_ext >&5
11872 ac_hi=`expr '(' $ac_mid ')' - 1`
11873 if test $ac_mid -le $ac_hi; then
11874 ac_lo= ac_hi=
11875 break
11877 ac_mid=`expr 2 '*' $ac_mid`
11880 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11881 done
11882 else
11883 echo "$as_me: failed program was:" >&5
11884 sed 's/^/| /' conftest.$ac_ext >&5
11886 ac_lo= ac_hi=
11889 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11892 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11893 # Binary search between lo and hi bounds.
11894 while test "x$ac_lo" != "x$ac_hi"; do
11895 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
11896 cat >conftest.$ac_ext <<_ACEOF
11897 /* confdefs.h. */
11898 _ACEOF
11899 cat confdefs.h >>conftest.$ac_ext
11900 cat >>conftest.$ac_ext <<_ACEOF
11901 /* end confdefs.h. */
11902 $ac_includes_default
11903 typedef long double ac__type_sizeof_;
11905 main ()
11907 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
11908 test_array [0] = 0
11911 return 0;
11913 _ACEOF
11914 rm -f conftest.$ac_objext
11915 if { (ac_try="$ac_compile"
11916 case "(($ac_try" in
11917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11918 *) ac_try_echo=$ac_try;;
11919 esac
11920 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11921 (eval "$ac_compile") 2>conftest.er1
11922 ac_status=$?
11923 grep -v '^ *+' conftest.er1 >conftest.err
11924 rm -f conftest.er1
11925 cat conftest.err >&5
11926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11927 (exit $ac_status); } && {
11928 test -z "$ac_c_werror_flag" ||
11929 test ! -s conftest.err
11930 } && test -s conftest.$ac_objext; then
11931 ac_hi=$ac_mid
11932 else
11933 echo "$as_me: failed program was:" >&5
11934 sed 's/^/| /' conftest.$ac_ext >&5
11936 ac_lo=`expr '(' $ac_mid ')' + 1`
11939 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11940 done
11941 case $ac_lo in
11942 ?*) ac_cv_sizeof_long_double=$ac_lo;;
11943 '') if test "$ac_cv_type_long_double" = yes; then
11944 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long double)
11945 See \`config.log' for more details." >&5
11946 echo "$as_me: error: cannot compute sizeof (long double)
11947 See \`config.log' for more details." >&2;}
11948 { (exit 77); exit 77; }; }
11949 else
11950 ac_cv_sizeof_long_double=0
11951 fi ;;
11952 esac
11953 else
11954 cat >conftest.$ac_ext <<_ACEOF
11955 /* confdefs.h. */
11956 _ACEOF
11957 cat confdefs.h >>conftest.$ac_ext
11958 cat >>conftest.$ac_ext <<_ACEOF
11959 /* end confdefs.h. */
11960 $ac_includes_default
11961 typedef long double ac__type_sizeof_;
11962 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
11963 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
11964 #include <stdio.h>
11965 #include <stdlib.h>
11967 main ()
11970 FILE *f = fopen ("conftest.val", "w");
11971 if (! f)
11972 return 1;
11973 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
11975 long int i = longval ();
11976 if (i != ((long int) (sizeof (ac__type_sizeof_))))
11977 return 1;
11978 fprintf (f, "%ld\n", i);
11980 else
11982 unsigned long int i = ulongval ();
11983 if (i != ((long int) (sizeof (ac__type_sizeof_))))
11984 return 1;
11985 fprintf (f, "%lu\n", i);
11987 return ferror (f) || fclose (f) != 0;
11990 return 0;
11992 _ACEOF
11993 rm -f conftest$ac_exeext
11994 if { (ac_try="$ac_link"
11995 case "(($ac_try" in
11996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11997 *) ac_try_echo=$ac_try;;
11998 esac
11999 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12000 (eval "$ac_link") 2>&5
12001 ac_status=$?
12002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12003 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12004 { (case "(($ac_try" in
12005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12006 *) ac_try_echo=$ac_try;;
12007 esac
12008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12009 (eval "$ac_try") 2>&5
12010 ac_status=$?
12011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12012 (exit $ac_status); }; }; then
12013 ac_cv_sizeof_long_double=`cat conftest.val`
12014 else
12015 echo "$as_me: program exited with status $ac_status" >&5
12016 echo "$as_me: failed program was:" >&5
12017 sed 's/^/| /' conftest.$ac_ext >&5
12019 ( exit $ac_status )
12020 if test "$ac_cv_type_long_double" = yes; then
12021 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long double)
12022 See \`config.log' for more details." >&5
12023 echo "$as_me: error: cannot compute sizeof (long double)
12024 See \`config.log' for more details." >&2;}
12025 { (exit 77); exit 77; }; }
12026 else
12027 ac_cv_sizeof_long_double=0
12030 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12032 rm -f conftest.val
12034 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_double" >&5
12035 echo "${ECHO_T}$ac_cv_sizeof_long_double" >&6; }
12039 cat >>confdefs.h <<_ACEOF
12040 #define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double
12041 _ACEOF
12046 { echo "$as_me:$LINENO: checking for _Bool support" >&5
12047 echo $ECHO_N "checking for _Bool support... $ECHO_C" >&6; }
12048 have_c99_bool=no
12049 cat >conftest.$ac_ext <<_ACEOF
12050 /* confdefs.h. */
12051 _ACEOF
12052 cat confdefs.h >>conftest.$ac_ext
12053 cat >>conftest.$ac_ext <<_ACEOF
12054 /* end confdefs.h. */
12057 main ()
12059 _Bool x; x = (_Bool)0;
12061 return 0;
12063 _ACEOF
12064 rm -f conftest.$ac_objext
12065 if { (ac_try="$ac_compile"
12066 case "(($ac_try" in
12067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12068 *) ac_try_echo=$ac_try;;
12069 esac
12070 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12071 (eval "$ac_compile") 2>conftest.er1
12072 ac_status=$?
12073 grep -v '^ *+' conftest.er1 >conftest.err
12074 rm -f conftest.er1
12075 cat conftest.err >&5
12076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12077 (exit $ac_status); } && {
12078 test -z "$ac_c_werror_flag" ||
12079 test ! -s conftest.err
12080 } && test -s conftest.$ac_objext; then
12083 cat >>confdefs.h <<\_ACEOF
12084 #define HAVE_C99_BOOL 1
12085 _ACEOF
12087 have_c99_bool=yes
12089 else
12090 echo "$as_me: failed program was:" >&5
12091 sed 's/^/| /' conftest.$ac_ext >&5
12096 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12097 { echo "$as_me:$LINENO: result: $have_c99_bool" >&5
12098 echo "${ECHO_T}$have_c99_bool" >&6; }
12099 if test "$have_c99_bool" = yes ; then
12100 { echo "$as_me:$LINENO: checking for _Bool" >&5
12101 echo $ECHO_N "checking for _Bool... $ECHO_C" >&6; }
12102 if test "${ac_cv_type__Bool+set}" = set; then
12103 echo $ECHO_N "(cached) $ECHO_C" >&6
12104 else
12105 cat >conftest.$ac_ext <<_ACEOF
12106 /* confdefs.h. */
12107 _ACEOF
12108 cat confdefs.h >>conftest.$ac_ext
12109 cat >>conftest.$ac_ext <<_ACEOF
12110 /* end confdefs.h. */
12111 $ac_includes_default
12112 typedef _Bool ac__type_new_;
12114 main ()
12116 if ((ac__type_new_ *) 0)
12117 return 0;
12118 if (sizeof (ac__type_new_))
12119 return 0;
12121 return 0;
12123 _ACEOF
12124 rm -f conftest.$ac_objext
12125 if { (ac_try="$ac_compile"
12126 case "(($ac_try" in
12127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12128 *) ac_try_echo=$ac_try;;
12129 esac
12130 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12131 (eval "$ac_compile") 2>conftest.er1
12132 ac_status=$?
12133 grep -v '^ *+' conftest.er1 >conftest.err
12134 rm -f conftest.er1
12135 cat conftest.err >&5
12136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12137 (exit $ac_status); } && {
12138 test -z "$ac_c_werror_flag" ||
12139 test ! -s conftest.err
12140 } && test -s conftest.$ac_objext; then
12141 ac_cv_type__Bool=yes
12142 else
12143 echo "$as_me: failed program was:" >&5
12144 sed 's/^/| /' conftest.$ac_ext >&5
12146 ac_cv_type__Bool=no
12149 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12151 { echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5
12152 echo "${ECHO_T}$ac_cv_type__Bool" >&6; }
12154 # The cast to long int works around a bug in the HP C Compiler
12155 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12156 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12157 # This bug is HP SR number 8606223364.
12158 { echo "$as_me:$LINENO: checking size of _Bool" >&5
12159 echo $ECHO_N "checking size of _Bool... $ECHO_C" >&6; }
12160 if test "${ac_cv_sizeof__Bool+set}" = set; then
12161 echo $ECHO_N "(cached) $ECHO_C" >&6
12162 else
12163 if test "$cross_compiling" = yes; then
12164 # Depending upon the size, compute the lo and hi bounds.
12165 cat >conftest.$ac_ext <<_ACEOF
12166 /* confdefs.h. */
12167 _ACEOF
12168 cat confdefs.h >>conftest.$ac_ext
12169 cat >>conftest.$ac_ext <<_ACEOF
12170 /* end confdefs.h. */
12171 $ac_includes_default
12172 typedef _Bool ac__type_sizeof_;
12174 main ()
12176 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
12177 test_array [0] = 0
12180 return 0;
12182 _ACEOF
12183 rm -f conftest.$ac_objext
12184 if { (ac_try="$ac_compile"
12185 case "(($ac_try" in
12186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12187 *) ac_try_echo=$ac_try;;
12188 esac
12189 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12190 (eval "$ac_compile") 2>conftest.er1
12191 ac_status=$?
12192 grep -v '^ *+' conftest.er1 >conftest.err
12193 rm -f conftest.er1
12194 cat conftest.err >&5
12195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12196 (exit $ac_status); } && {
12197 test -z "$ac_c_werror_flag" ||
12198 test ! -s conftest.err
12199 } && test -s conftest.$ac_objext; then
12200 ac_lo=0 ac_mid=0
12201 while :; do
12202 cat >conftest.$ac_ext <<_ACEOF
12203 /* confdefs.h. */
12204 _ACEOF
12205 cat confdefs.h >>conftest.$ac_ext
12206 cat >>conftest.$ac_ext <<_ACEOF
12207 /* end confdefs.h. */
12208 $ac_includes_default
12209 typedef _Bool ac__type_sizeof_;
12211 main ()
12213 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
12214 test_array [0] = 0
12217 return 0;
12219 _ACEOF
12220 rm -f conftest.$ac_objext
12221 if { (ac_try="$ac_compile"
12222 case "(($ac_try" in
12223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12224 *) ac_try_echo=$ac_try;;
12225 esac
12226 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12227 (eval "$ac_compile") 2>conftest.er1
12228 ac_status=$?
12229 grep -v '^ *+' conftest.er1 >conftest.err
12230 rm -f conftest.er1
12231 cat conftest.err >&5
12232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12233 (exit $ac_status); } && {
12234 test -z "$ac_c_werror_flag" ||
12235 test ! -s conftest.err
12236 } && test -s conftest.$ac_objext; then
12237 ac_hi=$ac_mid; break
12238 else
12239 echo "$as_me: failed program was:" >&5
12240 sed 's/^/| /' conftest.$ac_ext >&5
12242 ac_lo=`expr $ac_mid + 1`
12243 if test $ac_lo -le $ac_mid; then
12244 ac_lo= ac_hi=
12245 break
12247 ac_mid=`expr 2 '*' $ac_mid + 1`
12250 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12251 done
12252 else
12253 echo "$as_me: failed program was:" >&5
12254 sed 's/^/| /' conftest.$ac_ext >&5
12256 cat >conftest.$ac_ext <<_ACEOF
12257 /* confdefs.h. */
12258 _ACEOF
12259 cat confdefs.h >>conftest.$ac_ext
12260 cat >>conftest.$ac_ext <<_ACEOF
12261 /* end confdefs.h. */
12262 $ac_includes_default
12263 typedef _Bool ac__type_sizeof_;
12265 main ()
12267 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
12268 test_array [0] = 0
12271 return 0;
12273 _ACEOF
12274 rm -f conftest.$ac_objext
12275 if { (ac_try="$ac_compile"
12276 case "(($ac_try" in
12277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12278 *) ac_try_echo=$ac_try;;
12279 esac
12280 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12281 (eval "$ac_compile") 2>conftest.er1
12282 ac_status=$?
12283 grep -v '^ *+' conftest.er1 >conftest.err
12284 rm -f conftest.er1
12285 cat conftest.err >&5
12286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12287 (exit $ac_status); } && {
12288 test -z "$ac_c_werror_flag" ||
12289 test ! -s conftest.err
12290 } && test -s conftest.$ac_objext; then
12291 ac_hi=-1 ac_mid=-1
12292 while :; do
12293 cat >conftest.$ac_ext <<_ACEOF
12294 /* confdefs.h. */
12295 _ACEOF
12296 cat confdefs.h >>conftest.$ac_ext
12297 cat >>conftest.$ac_ext <<_ACEOF
12298 /* end confdefs.h. */
12299 $ac_includes_default
12300 typedef _Bool ac__type_sizeof_;
12302 main ()
12304 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
12305 test_array [0] = 0
12308 return 0;
12310 _ACEOF
12311 rm -f conftest.$ac_objext
12312 if { (ac_try="$ac_compile"
12313 case "(($ac_try" in
12314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12315 *) ac_try_echo=$ac_try;;
12316 esac
12317 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12318 (eval "$ac_compile") 2>conftest.er1
12319 ac_status=$?
12320 grep -v '^ *+' conftest.er1 >conftest.err
12321 rm -f conftest.er1
12322 cat conftest.err >&5
12323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12324 (exit $ac_status); } && {
12325 test -z "$ac_c_werror_flag" ||
12326 test ! -s conftest.err
12327 } && test -s conftest.$ac_objext; then
12328 ac_lo=$ac_mid; break
12329 else
12330 echo "$as_me: failed program was:" >&5
12331 sed 's/^/| /' conftest.$ac_ext >&5
12333 ac_hi=`expr '(' $ac_mid ')' - 1`
12334 if test $ac_mid -le $ac_hi; then
12335 ac_lo= ac_hi=
12336 break
12338 ac_mid=`expr 2 '*' $ac_mid`
12341 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12342 done
12343 else
12344 echo "$as_me: failed program was:" >&5
12345 sed 's/^/| /' conftest.$ac_ext >&5
12347 ac_lo= ac_hi=
12350 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12353 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12354 # Binary search between lo and hi bounds.
12355 while test "x$ac_lo" != "x$ac_hi"; do
12356 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12357 cat >conftest.$ac_ext <<_ACEOF
12358 /* confdefs.h. */
12359 _ACEOF
12360 cat confdefs.h >>conftest.$ac_ext
12361 cat >>conftest.$ac_ext <<_ACEOF
12362 /* end confdefs.h. */
12363 $ac_includes_default
12364 typedef _Bool ac__type_sizeof_;
12366 main ()
12368 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
12369 test_array [0] = 0
12372 return 0;
12374 _ACEOF
12375 rm -f conftest.$ac_objext
12376 if { (ac_try="$ac_compile"
12377 case "(($ac_try" in
12378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12379 *) ac_try_echo=$ac_try;;
12380 esac
12381 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12382 (eval "$ac_compile") 2>conftest.er1
12383 ac_status=$?
12384 grep -v '^ *+' conftest.er1 >conftest.err
12385 rm -f conftest.er1
12386 cat conftest.err >&5
12387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12388 (exit $ac_status); } && {
12389 test -z "$ac_c_werror_flag" ||
12390 test ! -s conftest.err
12391 } && test -s conftest.$ac_objext; then
12392 ac_hi=$ac_mid
12393 else
12394 echo "$as_me: failed program was:" >&5
12395 sed 's/^/| /' conftest.$ac_ext >&5
12397 ac_lo=`expr '(' $ac_mid ')' + 1`
12400 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12401 done
12402 case $ac_lo in
12403 ?*) ac_cv_sizeof__Bool=$ac_lo;;
12404 '') if test "$ac_cv_type__Bool" = yes; then
12405 { { echo "$as_me:$LINENO: error: cannot compute sizeof (_Bool)
12406 See \`config.log' for more details." >&5
12407 echo "$as_me: error: cannot compute sizeof (_Bool)
12408 See \`config.log' for more details." >&2;}
12409 { (exit 77); exit 77; }; }
12410 else
12411 ac_cv_sizeof__Bool=0
12412 fi ;;
12413 esac
12414 else
12415 cat >conftest.$ac_ext <<_ACEOF
12416 /* confdefs.h. */
12417 _ACEOF
12418 cat confdefs.h >>conftest.$ac_ext
12419 cat >>conftest.$ac_ext <<_ACEOF
12420 /* end confdefs.h. */
12421 $ac_includes_default
12422 typedef _Bool ac__type_sizeof_;
12423 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
12424 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
12425 #include <stdio.h>
12426 #include <stdlib.h>
12428 main ()
12431 FILE *f = fopen ("conftest.val", "w");
12432 if (! f)
12433 return 1;
12434 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
12436 long int i = longval ();
12437 if (i != ((long int) (sizeof (ac__type_sizeof_))))
12438 return 1;
12439 fprintf (f, "%ld\n", i);
12441 else
12443 unsigned long int i = ulongval ();
12444 if (i != ((long int) (sizeof (ac__type_sizeof_))))
12445 return 1;
12446 fprintf (f, "%lu\n", i);
12448 return ferror (f) || fclose (f) != 0;
12451 return 0;
12453 _ACEOF
12454 rm -f conftest$ac_exeext
12455 if { (ac_try="$ac_link"
12456 case "(($ac_try" in
12457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12458 *) ac_try_echo=$ac_try;;
12459 esac
12460 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12461 (eval "$ac_link") 2>&5
12462 ac_status=$?
12463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12464 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12465 { (case "(($ac_try" in
12466 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12467 *) ac_try_echo=$ac_try;;
12468 esac
12469 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12470 (eval "$ac_try") 2>&5
12471 ac_status=$?
12472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12473 (exit $ac_status); }; }; then
12474 ac_cv_sizeof__Bool=`cat conftest.val`
12475 else
12476 echo "$as_me: program exited with status $ac_status" >&5
12477 echo "$as_me: failed program was:" >&5
12478 sed 's/^/| /' conftest.$ac_ext >&5
12480 ( exit $ac_status )
12481 if test "$ac_cv_type__Bool" = yes; then
12482 { { echo "$as_me:$LINENO: error: cannot compute sizeof (_Bool)
12483 See \`config.log' for more details." >&5
12484 echo "$as_me: error: cannot compute sizeof (_Bool)
12485 See \`config.log' for more details." >&2;}
12486 { (exit 77); exit 77; }; }
12487 else
12488 ac_cv_sizeof__Bool=0
12491 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12493 rm -f conftest.val
12495 { echo "$as_me:$LINENO: result: $ac_cv_sizeof__Bool" >&5
12496 echo "${ECHO_T}$ac_cv_sizeof__Bool" >&6; }
12500 cat >>confdefs.h <<_ACEOF
12501 #define SIZEOF__BOOL $ac_cv_sizeof__Bool
12502 _ACEOF
12507 { echo "$as_me:$LINENO: checking for uintptr_t" >&5
12508 echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6; }
12509 if test "${ac_cv_type_uintptr_t+set}" = set; then
12510 echo $ECHO_N "(cached) $ECHO_C" >&6
12511 else
12512 cat >conftest.$ac_ext <<_ACEOF
12513 /* confdefs.h. */
12514 _ACEOF
12515 cat confdefs.h >>conftest.$ac_ext
12516 cat >>conftest.$ac_ext <<_ACEOF
12517 /* end confdefs.h. */
12518 #ifdef HAVE_STDINT_H
12519 #include <stdint.h>
12520 #endif
12522 typedef uintptr_t ac__type_new_;
12524 main ()
12526 if ((ac__type_new_ *) 0)
12527 return 0;
12528 if (sizeof (ac__type_new_))
12529 return 0;
12531 return 0;
12533 _ACEOF
12534 rm -f conftest.$ac_objext
12535 if { (ac_try="$ac_compile"
12536 case "(($ac_try" in
12537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12538 *) ac_try_echo=$ac_try;;
12539 esac
12540 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12541 (eval "$ac_compile") 2>conftest.er1
12542 ac_status=$?
12543 grep -v '^ *+' conftest.er1 >conftest.err
12544 rm -f conftest.er1
12545 cat conftest.err >&5
12546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12547 (exit $ac_status); } && {
12548 test -z "$ac_c_werror_flag" ||
12549 test ! -s conftest.err
12550 } && test -s conftest.$ac_objext; then
12551 ac_cv_type_uintptr_t=yes
12552 else
12553 echo "$as_me: failed program was:" >&5
12554 sed 's/^/| /' conftest.$ac_ext >&5
12556 ac_cv_type_uintptr_t=no
12559 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12561 { echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
12562 echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6; }
12563 if test $ac_cv_type_uintptr_t = yes; then
12565 cat >>confdefs.h <<_ACEOF
12566 #define HAVE_UINTPTR_T 1
12567 _ACEOF
12569 { echo "$as_me:$LINENO: checking for uintptr_t" >&5
12570 echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6; }
12571 if test "${ac_cv_type_uintptr_t+set}" = set; then
12572 echo $ECHO_N "(cached) $ECHO_C" >&6
12573 else
12574 cat >conftest.$ac_ext <<_ACEOF
12575 /* confdefs.h. */
12576 _ACEOF
12577 cat confdefs.h >>conftest.$ac_ext
12578 cat >>conftest.$ac_ext <<_ACEOF
12579 /* end confdefs.h. */
12580 $ac_includes_default
12581 typedef uintptr_t ac__type_new_;
12583 main ()
12585 if ((ac__type_new_ *) 0)
12586 return 0;
12587 if (sizeof (ac__type_new_))
12588 return 0;
12590 return 0;
12592 _ACEOF
12593 rm -f conftest.$ac_objext
12594 if { (ac_try="$ac_compile"
12595 case "(($ac_try" in
12596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12597 *) ac_try_echo=$ac_try;;
12598 esac
12599 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12600 (eval "$ac_compile") 2>conftest.er1
12601 ac_status=$?
12602 grep -v '^ *+' conftest.er1 >conftest.err
12603 rm -f conftest.er1
12604 cat conftest.err >&5
12605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12606 (exit $ac_status); } && {
12607 test -z "$ac_c_werror_flag" ||
12608 test ! -s conftest.err
12609 } && test -s conftest.$ac_objext; then
12610 ac_cv_type_uintptr_t=yes
12611 else
12612 echo "$as_me: failed program was:" >&5
12613 sed 's/^/| /' conftest.$ac_ext >&5
12615 ac_cv_type_uintptr_t=no
12618 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12620 { echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
12621 echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6; }
12623 # The cast to long int works around a bug in the HP C Compiler
12624 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12625 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12626 # This bug is HP SR number 8606223364.
12627 { echo "$as_me:$LINENO: checking size of uintptr_t" >&5
12628 echo $ECHO_N "checking size of uintptr_t... $ECHO_C" >&6; }
12629 if test "${ac_cv_sizeof_uintptr_t+set}" = set; then
12630 echo $ECHO_N "(cached) $ECHO_C" >&6
12631 else
12632 if test "$cross_compiling" = yes; then
12633 # Depending upon the size, compute the lo and hi bounds.
12634 cat >conftest.$ac_ext <<_ACEOF
12635 /* confdefs.h. */
12636 _ACEOF
12637 cat confdefs.h >>conftest.$ac_ext
12638 cat >>conftest.$ac_ext <<_ACEOF
12639 /* end confdefs.h. */
12640 $ac_includes_default
12641 typedef uintptr_t ac__type_sizeof_;
12643 main ()
12645 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
12646 test_array [0] = 0
12649 return 0;
12651 _ACEOF
12652 rm -f conftest.$ac_objext
12653 if { (ac_try="$ac_compile"
12654 case "(($ac_try" in
12655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12656 *) ac_try_echo=$ac_try;;
12657 esac
12658 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12659 (eval "$ac_compile") 2>conftest.er1
12660 ac_status=$?
12661 grep -v '^ *+' conftest.er1 >conftest.err
12662 rm -f conftest.er1
12663 cat conftest.err >&5
12664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12665 (exit $ac_status); } && {
12666 test -z "$ac_c_werror_flag" ||
12667 test ! -s conftest.err
12668 } && test -s conftest.$ac_objext; then
12669 ac_lo=0 ac_mid=0
12670 while :; do
12671 cat >conftest.$ac_ext <<_ACEOF
12672 /* confdefs.h. */
12673 _ACEOF
12674 cat confdefs.h >>conftest.$ac_ext
12675 cat >>conftest.$ac_ext <<_ACEOF
12676 /* end confdefs.h. */
12677 $ac_includes_default
12678 typedef uintptr_t ac__type_sizeof_;
12680 main ()
12682 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
12683 test_array [0] = 0
12686 return 0;
12688 _ACEOF
12689 rm -f conftest.$ac_objext
12690 if { (ac_try="$ac_compile"
12691 case "(($ac_try" in
12692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12693 *) ac_try_echo=$ac_try;;
12694 esac
12695 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12696 (eval "$ac_compile") 2>conftest.er1
12697 ac_status=$?
12698 grep -v '^ *+' conftest.er1 >conftest.err
12699 rm -f conftest.er1
12700 cat conftest.err >&5
12701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12702 (exit $ac_status); } && {
12703 test -z "$ac_c_werror_flag" ||
12704 test ! -s conftest.err
12705 } && test -s conftest.$ac_objext; then
12706 ac_hi=$ac_mid; break
12707 else
12708 echo "$as_me: failed program was:" >&5
12709 sed 's/^/| /' conftest.$ac_ext >&5
12711 ac_lo=`expr $ac_mid + 1`
12712 if test $ac_lo -le $ac_mid; then
12713 ac_lo= ac_hi=
12714 break
12716 ac_mid=`expr 2 '*' $ac_mid + 1`
12719 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12720 done
12721 else
12722 echo "$as_me: failed program was:" >&5
12723 sed 's/^/| /' conftest.$ac_ext >&5
12725 cat >conftest.$ac_ext <<_ACEOF
12726 /* confdefs.h. */
12727 _ACEOF
12728 cat confdefs.h >>conftest.$ac_ext
12729 cat >>conftest.$ac_ext <<_ACEOF
12730 /* end confdefs.h. */
12731 $ac_includes_default
12732 typedef uintptr_t ac__type_sizeof_;
12734 main ()
12736 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
12737 test_array [0] = 0
12740 return 0;
12742 _ACEOF
12743 rm -f conftest.$ac_objext
12744 if { (ac_try="$ac_compile"
12745 case "(($ac_try" in
12746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12747 *) ac_try_echo=$ac_try;;
12748 esac
12749 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12750 (eval "$ac_compile") 2>conftest.er1
12751 ac_status=$?
12752 grep -v '^ *+' conftest.er1 >conftest.err
12753 rm -f conftest.er1
12754 cat conftest.err >&5
12755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12756 (exit $ac_status); } && {
12757 test -z "$ac_c_werror_flag" ||
12758 test ! -s conftest.err
12759 } && test -s conftest.$ac_objext; then
12760 ac_hi=-1 ac_mid=-1
12761 while :; do
12762 cat >conftest.$ac_ext <<_ACEOF
12763 /* confdefs.h. */
12764 _ACEOF
12765 cat confdefs.h >>conftest.$ac_ext
12766 cat >>conftest.$ac_ext <<_ACEOF
12767 /* end confdefs.h. */
12768 $ac_includes_default
12769 typedef uintptr_t ac__type_sizeof_;
12771 main ()
12773 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
12774 test_array [0] = 0
12777 return 0;
12779 _ACEOF
12780 rm -f conftest.$ac_objext
12781 if { (ac_try="$ac_compile"
12782 case "(($ac_try" in
12783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12784 *) ac_try_echo=$ac_try;;
12785 esac
12786 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12787 (eval "$ac_compile") 2>conftest.er1
12788 ac_status=$?
12789 grep -v '^ *+' conftest.er1 >conftest.err
12790 rm -f conftest.er1
12791 cat conftest.err >&5
12792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12793 (exit $ac_status); } && {
12794 test -z "$ac_c_werror_flag" ||
12795 test ! -s conftest.err
12796 } && test -s conftest.$ac_objext; then
12797 ac_lo=$ac_mid; break
12798 else
12799 echo "$as_me: failed program was:" >&5
12800 sed 's/^/| /' conftest.$ac_ext >&5
12802 ac_hi=`expr '(' $ac_mid ')' - 1`
12803 if test $ac_mid -le $ac_hi; then
12804 ac_lo= ac_hi=
12805 break
12807 ac_mid=`expr 2 '*' $ac_mid`
12810 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12811 done
12812 else
12813 echo "$as_me: failed program was:" >&5
12814 sed 's/^/| /' conftest.$ac_ext >&5
12816 ac_lo= ac_hi=
12819 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12822 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12823 # Binary search between lo and hi bounds.
12824 while test "x$ac_lo" != "x$ac_hi"; do
12825 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12826 cat >conftest.$ac_ext <<_ACEOF
12827 /* confdefs.h. */
12828 _ACEOF
12829 cat confdefs.h >>conftest.$ac_ext
12830 cat >>conftest.$ac_ext <<_ACEOF
12831 /* end confdefs.h. */
12832 $ac_includes_default
12833 typedef uintptr_t ac__type_sizeof_;
12835 main ()
12837 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
12838 test_array [0] = 0
12841 return 0;
12843 _ACEOF
12844 rm -f conftest.$ac_objext
12845 if { (ac_try="$ac_compile"
12846 case "(($ac_try" in
12847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12848 *) ac_try_echo=$ac_try;;
12849 esac
12850 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12851 (eval "$ac_compile") 2>conftest.er1
12852 ac_status=$?
12853 grep -v '^ *+' conftest.er1 >conftest.err
12854 rm -f conftest.er1
12855 cat conftest.err >&5
12856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12857 (exit $ac_status); } && {
12858 test -z "$ac_c_werror_flag" ||
12859 test ! -s conftest.err
12860 } && test -s conftest.$ac_objext; then
12861 ac_hi=$ac_mid
12862 else
12863 echo "$as_me: failed program was:" >&5
12864 sed 's/^/| /' conftest.$ac_ext >&5
12866 ac_lo=`expr '(' $ac_mid ')' + 1`
12869 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12870 done
12871 case $ac_lo in
12872 ?*) ac_cv_sizeof_uintptr_t=$ac_lo;;
12873 '') if test "$ac_cv_type_uintptr_t" = yes; then
12874 { { echo "$as_me:$LINENO: error: cannot compute sizeof (uintptr_t)
12875 See \`config.log' for more details." >&5
12876 echo "$as_me: error: cannot compute sizeof (uintptr_t)
12877 See \`config.log' for more details." >&2;}
12878 { (exit 77); exit 77; }; }
12879 else
12880 ac_cv_sizeof_uintptr_t=0
12881 fi ;;
12882 esac
12883 else
12884 cat >conftest.$ac_ext <<_ACEOF
12885 /* confdefs.h. */
12886 _ACEOF
12887 cat confdefs.h >>conftest.$ac_ext
12888 cat >>conftest.$ac_ext <<_ACEOF
12889 /* end confdefs.h. */
12890 $ac_includes_default
12891 typedef uintptr_t ac__type_sizeof_;
12892 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
12893 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
12894 #include <stdio.h>
12895 #include <stdlib.h>
12897 main ()
12900 FILE *f = fopen ("conftest.val", "w");
12901 if (! f)
12902 return 1;
12903 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
12905 long int i = longval ();
12906 if (i != ((long int) (sizeof (ac__type_sizeof_))))
12907 return 1;
12908 fprintf (f, "%ld\n", i);
12910 else
12912 unsigned long int i = ulongval ();
12913 if (i != ((long int) (sizeof (ac__type_sizeof_))))
12914 return 1;
12915 fprintf (f, "%lu\n", i);
12917 return ferror (f) || fclose (f) != 0;
12920 return 0;
12922 _ACEOF
12923 rm -f conftest$ac_exeext
12924 if { (ac_try="$ac_link"
12925 case "(($ac_try" in
12926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12927 *) ac_try_echo=$ac_try;;
12928 esac
12929 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12930 (eval "$ac_link") 2>&5
12931 ac_status=$?
12932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12933 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12934 { (case "(($ac_try" in
12935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12936 *) ac_try_echo=$ac_try;;
12937 esac
12938 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12939 (eval "$ac_try") 2>&5
12940 ac_status=$?
12941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12942 (exit $ac_status); }; }; then
12943 ac_cv_sizeof_uintptr_t=`cat conftest.val`
12944 else
12945 echo "$as_me: program exited with status $ac_status" >&5
12946 echo "$as_me: failed program was:" >&5
12947 sed 's/^/| /' conftest.$ac_ext >&5
12949 ( exit $ac_status )
12950 if test "$ac_cv_type_uintptr_t" = yes; then
12951 { { echo "$as_me:$LINENO: error: cannot compute sizeof (uintptr_t)
12952 See \`config.log' for more details." >&5
12953 echo "$as_me: error: cannot compute sizeof (uintptr_t)
12954 See \`config.log' for more details." >&2;}
12955 { (exit 77); exit 77; }; }
12956 else
12957 ac_cv_sizeof_uintptr_t=0
12960 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12962 rm -f conftest.val
12964 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_uintptr_t" >&5
12965 echo "${ECHO_T}$ac_cv_sizeof_uintptr_t" >&6; }
12969 cat >>confdefs.h <<_ACEOF
12970 #define SIZEOF_UINTPTR_T $ac_cv_sizeof_uintptr_t
12971 _ACEOF
12978 # Hmph. AC_CHECK_SIZEOF() doesn't include <sys/types.h>.
12979 { echo "$as_me:$LINENO: checking size of off_t" >&5
12980 echo $ECHO_N "checking size of off_t... $ECHO_C" >&6; }
12981 if test "${ac_cv_sizeof_off_t+set}" = set; then
12982 echo $ECHO_N "(cached) $ECHO_C" >&6
12983 else
12984 if test "$cross_compiling" = yes; then
12985 ac_cv_sizeof_off_t=4
12986 else
12987 cat >conftest.$ac_ext <<_ACEOF
12988 /* confdefs.h. */
12989 _ACEOF
12990 cat confdefs.h >>conftest.$ac_ext
12991 cat >>conftest.$ac_ext <<_ACEOF
12992 /* end confdefs.h. */
12993 #include <stdio.h>
12994 #include <sys/types.h>
12995 main()
12997 FILE *f=fopen("conftestval", "w");
12998 if (!f) exit(1);
12999 fprintf(f, "%d\n", sizeof(off_t));
13000 exit(0);
13002 _ACEOF
13003 rm -f conftest$ac_exeext
13004 if { (ac_try="$ac_link"
13005 case "(($ac_try" in
13006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13007 *) ac_try_echo=$ac_try;;
13008 esac
13009 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13010 (eval "$ac_link") 2>&5
13011 ac_status=$?
13012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13013 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13014 { (case "(($ac_try" in
13015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13016 *) ac_try_echo=$ac_try;;
13017 esac
13018 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13019 (eval "$ac_try") 2>&5
13020 ac_status=$?
13021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13022 (exit $ac_status); }; }; then
13023 ac_cv_sizeof_off_t=`cat conftestval`
13024 else
13025 echo "$as_me: program exited with status $ac_status" >&5
13026 echo "$as_me: failed program was:" >&5
13027 sed 's/^/| /' conftest.$ac_ext >&5
13029 ( exit $ac_status )
13030 ac_cv_sizeof_off_t=0
13032 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13039 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_off_t" >&5
13040 echo "${ECHO_T}$ac_cv_sizeof_off_t" >&6; }
13042 cat >>confdefs.h <<_ACEOF
13043 #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
13044 _ACEOF
13047 { echo "$as_me:$LINENO: checking whether to enable large file support" >&5
13048 echo $ECHO_N "checking whether to enable large file support... $ECHO_C" >&6; }
13049 if test "$have_long_long" = yes -a \
13050 "$ac_cv_sizeof_off_t" -gt "$ac_cv_sizeof_long" -a \
13051 "$ac_cv_sizeof_long_long" -ge "$ac_cv_sizeof_off_t"; then
13053 cat >>confdefs.h <<\_ACEOF
13054 #define HAVE_LARGEFILE_SUPPORT 1
13055 _ACEOF
13057 { echo "$as_me:$LINENO: result: yes" >&5
13058 echo "${ECHO_T}yes" >&6; }
13059 else
13060 { echo "$as_me:$LINENO: result: no" >&5
13061 echo "${ECHO_T}no" >&6; }
13064 # AC_CHECK_SIZEOF() doesn't include <time.h>.
13065 { echo "$as_me:$LINENO: checking size of time_t" >&5
13066 echo $ECHO_N "checking size of time_t... $ECHO_C" >&6; }
13067 if test "${ac_cv_sizeof_time_t+set}" = set; then
13068 echo $ECHO_N "(cached) $ECHO_C" >&6
13069 else
13070 if test "$cross_compiling" = yes; then
13071 ac_cv_sizeof_time_t=4
13072 else
13073 cat >conftest.$ac_ext <<_ACEOF
13074 /* confdefs.h. */
13075 _ACEOF
13076 cat confdefs.h >>conftest.$ac_ext
13077 cat >>conftest.$ac_ext <<_ACEOF
13078 /* end confdefs.h. */
13079 #include <stdio.h>
13080 #include <time.h>
13081 main()
13083 FILE *f=fopen("conftestval", "w");
13084 if (!f) exit(1);
13085 fprintf(f, "%d\n", sizeof(time_t));
13086 exit(0);
13088 _ACEOF
13089 rm -f conftest$ac_exeext
13090 if { (ac_try="$ac_link"
13091 case "(($ac_try" in
13092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13093 *) ac_try_echo=$ac_try;;
13094 esac
13095 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13096 (eval "$ac_link") 2>&5
13097 ac_status=$?
13098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13099 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13100 { (case "(($ac_try" in
13101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13102 *) ac_try_echo=$ac_try;;
13103 esac
13104 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13105 (eval "$ac_try") 2>&5
13106 ac_status=$?
13107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13108 (exit $ac_status); }; }; then
13109 ac_cv_sizeof_time_t=`cat conftestval`
13110 else
13111 echo "$as_me: program exited with status $ac_status" >&5
13112 echo "$as_me: failed program was:" >&5
13113 sed 's/^/| /' conftest.$ac_ext >&5
13115 ( exit $ac_status )
13116 ac_cv_sizeof_time_t=0
13118 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13125 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_time_t" >&5
13126 echo "${ECHO_T}$ac_cv_sizeof_time_t" >&6; }
13128 cat >>confdefs.h <<_ACEOF
13129 #define SIZEOF_TIME_T $ac_cv_sizeof_time_t
13130 _ACEOF
13134 # if have pthread_t then define SIZEOF_PTHREAD_T
13135 ac_save_cc="$CC"
13136 if test "$ac_cv_kpthread" = "yes"
13137 then CC="$CC -Kpthread"
13138 elif test "$ac_cv_kthread" = "yes"
13139 then CC="$CC -Kthread"
13140 elif test "$ac_cv_pthread" = "yes"
13141 then CC="$CC -pthread"
13143 { echo "$as_me:$LINENO: checking for pthread_t" >&5
13144 echo $ECHO_N "checking for pthread_t... $ECHO_C" >&6; }
13145 have_pthread_t=no
13146 cat >conftest.$ac_ext <<_ACEOF
13147 /* confdefs.h. */
13148 _ACEOF
13149 cat confdefs.h >>conftest.$ac_ext
13150 cat >>conftest.$ac_ext <<_ACEOF
13151 /* end confdefs.h. */
13152 #include <pthread.h>
13154 main ()
13156 pthread_t x; x = *(pthread_t*)0;
13158 return 0;
13160 _ACEOF
13161 rm -f conftest.$ac_objext
13162 if { (ac_try="$ac_compile"
13163 case "(($ac_try" in
13164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13165 *) ac_try_echo=$ac_try;;
13166 esac
13167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13168 (eval "$ac_compile") 2>conftest.er1
13169 ac_status=$?
13170 grep -v '^ *+' conftest.er1 >conftest.err
13171 rm -f conftest.er1
13172 cat conftest.err >&5
13173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13174 (exit $ac_status); } && {
13175 test -z "$ac_c_werror_flag" ||
13176 test ! -s conftest.err
13177 } && test -s conftest.$ac_objext; then
13178 have_pthread_t=yes
13179 else
13180 echo "$as_me: failed program was:" >&5
13181 sed 's/^/| /' conftest.$ac_ext >&5
13186 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13187 { echo "$as_me:$LINENO: result: $have_pthread_t" >&5
13188 echo "${ECHO_T}$have_pthread_t" >&6; }
13189 if test "$have_pthread_t" = yes ; then
13190 # AC_CHECK_SIZEOF() doesn't include <pthread.h>.
13191 { echo "$as_me:$LINENO: checking size of pthread_t" >&5
13192 echo $ECHO_N "checking size of pthread_t... $ECHO_C" >&6; }
13193 if test "${ac_cv_sizeof_pthread_t+set}" = set; then
13194 echo $ECHO_N "(cached) $ECHO_C" >&6
13195 else
13196 if test "$cross_compiling" = yes; then
13197 ac_cv_sizeof_pthread_t=4
13198 else
13199 cat >conftest.$ac_ext <<_ACEOF
13200 /* confdefs.h. */
13201 _ACEOF
13202 cat confdefs.h >>conftest.$ac_ext
13203 cat >>conftest.$ac_ext <<_ACEOF
13204 /* end confdefs.h. */
13205 #include <stdio.h>
13206 #include <pthread.h>
13207 main()
13209 FILE *f=fopen("conftestval", "w");
13210 if (!f) exit(1);
13211 fprintf(f, "%d\n", sizeof(pthread_t));
13212 exit(0);
13214 _ACEOF
13215 rm -f conftest$ac_exeext
13216 if { (ac_try="$ac_link"
13217 case "(($ac_try" in
13218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13219 *) ac_try_echo=$ac_try;;
13220 esac
13221 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13222 (eval "$ac_link") 2>&5
13223 ac_status=$?
13224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13225 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13226 { (case "(($ac_try" in
13227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13228 *) ac_try_echo=$ac_try;;
13229 esac
13230 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13231 (eval "$ac_try") 2>&5
13232 ac_status=$?
13233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13234 (exit $ac_status); }; }; then
13235 ac_cv_sizeof_pthread_t=`cat conftestval`
13236 else
13237 echo "$as_me: program exited with status $ac_status" >&5
13238 echo "$as_me: failed program was:" >&5
13239 sed 's/^/| /' conftest.$ac_ext >&5
13241 ( exit $ac_status )
13242 ac_cv_sizeof_pthread_t=0
13244 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13251 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_pthread_t" >&5
13252 echo "${ECHO_T}$ac_cv_sizeof_pthread_t" >&6; }
13254 cat >>confdefs.h <<_ACEOF
13255 #define SIZEOF_PTHREAD_T $ac_cv_sizeof_pthread_t
13256 _ACEOF
13259 CC="$ac_save_cc"
13261 { echo "$as_me:$LINENO: checking for --enable-toolbox-glue" >&5
13262 echo $ECHO_N "checking for --enable-toolbox-glue... $ECHO_C" >&6; }
13263 # Check whether --enable-toolbox-glue was given.
13264 if test "${enable_toolbox_glue+set}" = set; then
13265 enableval=$enable_toolbox_glue;
13269 if test -z "$enable_toolbox_glue"
13270 then
13271 case $ac_sys_system/$ac_sys_release in
13272 Darwin/*)
13273 enable_toolbox_glue="yes";;
13275 enable_toolbox_glue="no";;
13276 esac
13278 case "$enable_toolbox_glue" in
13279 yes)
13280 extra_machdep_objs="Python/mactoolboxglue.o"
13281 extra_undefs="-u _PyMac_Error"
13283 cat >>confdefs.h <<\_ACEOF
13284 #define USE_TOOLBOX_OBJECT_GLUE 1
13285 _ACEOF
13289 extra_machdep_objs=""
13290 extra_undefs=""
13292 esac
13293 { echo "$as_me:$LINENO: result: $enable_toolbox_glue" >&5
13294 echo "${ECHO_T}$enable_toolbox_glue" >&6; }
13298 case $ac_sys_system/$ac_sys_release in
13299 Darwin/[01567]\..*)
13300 OTHER_LIBTOOL_OPT="-prebind -seg1addr 0x10000000"
13302 Darwin/*)
13303 OTHER_LIBTOOL_OPT=""
13305 esac
13308 case $ac_sys_system/$ac_sys_release in
13309 Darwin/[01567]\..*)
13310 LIBTOOL_CRUFT="-framework System -lcc_dynamic"
13311 if test "${enable_universalsdk}"; then
13313 else
13314 LIBTOOL_CRUFT="${LIBTOOL_CRUFT} -arch_only `arch`"
13316 LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -install_name $(PYTHONFRAMEWORKINSTALLDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
13317 LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -compatibility_version $(VERSION) -current_version $(VERSION)';;
13318 Darwin/*)
13319 gcc_version=`gcc -v 2>&1 | grep version | cut -d\ -f3`
13320 if test ${gcc_version} '<' 4.0
13321 then
13322 LIBTOOL_CRUFT="-lcc_dynamic"
13323 else
13324 LIBTOOL_CRUFT=""
13326 LIBTOOL_CRUFT=$LIBTOOL_CRUFT" -lSystem -lSystemStubs -arch_only `arch`"
13327 LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -install_name $(PYTHONFRAMEWORKINSTALLDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
13328 LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -compatibility_version $(VERSION) -current_version $(VERSION)';;
13329 esac
13331 { echo "$as_me:$LINENO: checking for --enable-framework" >&5
13332 echo $ECHO_N "checking for --enable-framework... $ECHO_C" >&6; }
13333 if test "$enable_framework"
13334 then
13335 BASECFLAGS="$BASECFLAGS -fno-common -dynamic"
13336 # -F. is needed to allow linking to the framework while
13337 # in the build location.
13339 cat >>confdefs.h <<\_ACEOF
13340 #define WITH_NEXT_FRAMEWORK 1
13341 _ACEOF
13343 { echo "$as_me:$LINENO: result: yes" >&5
13344 echo "${ECHO_T}yes" >&6; }
13345 else
13346 { echo "$as_me:$LINENO: result: no" >&5
13347 echo "${ECHO_T}no" >&6; }
13350 { echo "$as_me:$LINENO: checking for dyld" >&5
13351 echo $ECHO_N "checking for dyld... $ECHO_C" >&6; }
13352 case $ac_sys_system/$ac_sys_release in
13353 Darwin/*)
13355 cat >>confdefs.h <<\_ACEOF
13356 #define WITH_DYLD 1
13357 _ACEOF
13359 { echo "$as_me:$LINENO: result: always on for Darwin" >&5
13360 echo "${ECHO_T}always on for Darwin" >&6; }
13363 { echo "$as_me:$LINENO: result: no" >&5
13364 echo "${ECHO_T}no" >&6; }
13366 esac
13368 # Set info about shared libraries.
13374 # SO is the extension of shared libraries `(including the dot!)
13375 # -- usually .so, .sl on HP-UX, .dll on Cygwin
13376 { echo "$as_me:$LINENO: checking SO" >&5
13377 echo $ECHO_N "checking SO... $ECHO_C" >&6; }
13378 if test -z "$SO"
13379 then
13380 case $ac_sys_system in
13381 hp*|HP*)
13382 case `uname -m` in
13383 ia64) SO=.so;;
13384 *) SO=.sl;;
13385 esac
13387 CYGWIN*) SO=.dll;;
13388 *) SO=.so;;
13389 esac
13390 else
13391 # this might also be a termcap variable, see #610332
13392 echo
13393 echo '====================================================================='
13394 echo '+ +'
13395 echo '+ WARNING: You have set SO in your environment. +'
13396 echo '+ Do you really mean to change the extension for shared libraries? +'
13397 echo '+ Continuing in 10 seconds to let you to ponder. +'
13398 echo '+ +'
13399 echo '====================================================================='
13400 sleep 10
13402 { echo "$as_me:$LINENO: result: $SO" >&5
13403 echo "${ECHO_T}$SO" >&6; }
13406 cat >>confdefs.h <<_ACEOF
13407 #define SHLIB_EXT "$SO"
13408 _ACEOF
13410 # LDSHARED is the ld *command* used to create shared library
13411 # -- "cc -G" on SunOS 5.x, "ld -shared" on IRIX 5
13412 # (Shared libraries in this instance are shared modules to be loaded into
13413 # Python, as opposed to building Python itself as a shared library.)
13414 { echo "$as_me:$LINENO: checking LDSHARED" >&5
13415 echo $ECHO_N "checking LDSHARED... $ECHO_C" >&6; }
13416 if test -z "$LDSHARED"
13417 then
13418 case $ac_sys_system/$ac_sys_release in
13419 AIX*)
13420 BLDSHARED="\$(srcdir)/Modules/ld_so_aix \$(CC) -bI:Modules/python.exp"
13421 LDSHARED="\$(BINLIBDEST)/config/ld_so_aix \$(CC) -bI:\$(BINLIBDEST)/config/python.exp"
13423 BeOS*)
13424 BLDSHARED="\$(srcdir)/Modules/ld_so_beos $LDLIBRARY"
13425 LDSHARED="\$(BINLIBDEST)/config/ld_so_beos \$(LIBDIR)/$LDLIBRARY"
13427 IRIX/5*) LDSHARED="ld -shared";;
13428 IRIX*/6*) LDSHARED="ld ${SGI_ABI} -shared -all";;
13429 SunOS/5*)
13430 if test "$GCC" = "yes"
13431 then LDSHARED='$(CC) -shared'
13432 else LDSHARED='$(CC) -G';
13433 fi ;;
13434 hp*|HP*)
13435 if test "$GCC" = "yes"
13436 then LDSHARED='$(CC) -shared'
13437 else LDSHARED='ld -b';
13438 fi ;;
13439 OSF*) LDSHARED="ld -shared -expect_unresolved \"*\"";;
13440 Darwin/1.3*)
13441 LDSHARED='$(CC) $(LDFLAGS) -bundle'
13442 if test "$enable_framework" ; then
13443 # Link against the framework. All externals should be defined.
13444 BLDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
13445 LDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
13446 else
13447 # No framework. Ignore undefined symbols, assuming they come from Python
13448 LDSHARED="$LDSHARED -undefined suppress"
13449 fi ;;
13450 Darwin/1.4*|Darwin/5.*|Darwin/6.*)
13451 LDSHARED='$(CC) $(LDFLAGS) -bundle'
13452 if test "$enable_framework" ; then
13453 # Link against the framework. All externals should be defined.
13454 BLDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
13455 LDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
13456 else
13457 # No framework, use the Python app as bundle-loader
13458 BLDSHARED="$LDSHARED "'-bundle_loader $(BUILDPYTHON)'
13459 LDSHARED="$LDSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)'
13460 fi ;;
13461 Darwin/*)
13462 # Use -undefined dynamic_lookup whenever possible (10.3 and later).
13463 # This allows an extension to be used in any Python
13465 if test ${MACOSX_DEPLOYMENT_TARGET} '>' 10.2
13466 then
13467 if test "${enable_universalsdk}"; then
13468 LDFLAGS="${UNIVERSAL_ARCH_FLAGS} -isysroot ${UNIVERSALSDK} ${LDFLAGS}"
13470 LDSHARED='$(CC) $(LDFLAGS) -bundle -undefined dynamic_lookup'
13471 BLDSHARED="$LDSHARED"
13472 else
13473 LDSHARED='$(CC) $(LDFLAGS) -bundle'
13474 if test "$enable_framework" ; then
13475 # Link against the framework. All externals should be defined.
13476 BLDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
13477 LDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
13478 else
13479 # No framework, use the Python app as bundle-loader
13480 BLDSHARED="$LDSHARED "'-bundle_loader $(BUILDPYTHON)'
13481 LDSHARED="$LDSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)'
13485 Linux*|GNU*|QNX*) LDSHARED='$(CC) -shared';;
13486 BSD/OS*/4*) LDSHARED="gcc -shared";;
13487 FreeBSD*)
13488 if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]
13489 then
13490 LDSHARED="$CC -shared ${LDFLAGS}"
13491 else
13492 LDSHARED="ld -Bshareable ${LDFLAGS}"
13493 fi;;
13494 OpenBSD*)
13495 if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]
13496 then
13497 LDSHARED='$(CC) -shared $(CCSHARED) ${LDFLAGS}'
13498 else
13499 case `uname -r` in
13500 [01].* | 2.[0-7] | 2.[0-7].*)
13501 LDSHARED="ld -Bshareable ${LDFLAGS}"
13504 LDSHARED='$(CC) -shared $(CCSHARED) ${LDFLAGS}'
13506 esac
13507 fi;;
13508 NetBSD*|DragonFly*) LDSHARED="cc -shared ${LDFLAGS}";;
13509 OpenUNIX*|UnixWare*)
13510 if test "$GCC" = "yes"
13511 then LDSHARED='$(CC) -shared'
13512 else LDSHARED='$(CC) -G'
13513 fi;;
13514 SCO_SV*) LDSHARED='$(CC) -Wl,-G,-Bexport';;
13515 Monterey*) LDSHARED="cc -G -dy -Bdynamic -Bexport -L/usr/lib/ia64l64";;
13516 CYGWIN*) LDSHARED="gcc -shared -Wl,--enable-auto-image-base";;
13517 atheos*) LDSHARED="gcc -shared";;
13518 *) LDSHARED="ld";;
13519 esac
13521 { echo "$as_me:$LINENO: result: $LDSHARED" >&5
13522 echo "${ECHO_T}$LDSHARED" >&6; }
13523 BLDSHARED=${BLDSHARED-$LDSHARED}
13524 # CCSHARED are the C *flags* used to create objects to go into a shared
13525 # library (module) -- this is only needed for a few systems
13526 { echo "$as_me:$LINENO: checking CCSHARED" >&5
13527 echo $ECHO_N "checking CCSHARED... $ECHO_C" >&6; }
13528 if test -z "$CCSHARED"
13529 then
13530 case $ac_sys_system/$ac_sys_release in
13531 SunOS*) if test "$GCC" = yes;
13532 then CCSHARED="-fPIC";
13533 elif test `uname -p` = sparc;
13534 then CCSHARED="-xcode=pic32";
13535 else CCSHARED="-Kpic";
13536 fi;;
13537 hp*|HP*) if test "$GCC" = yes;
13538 then CCSHARED="-fPIC";
13539 else CCSHARED="+z";
13540 fi;;
13541 Linux*|GNU*) CCSHARED="-fPIC";;
13542 BSD/OS*/4*) CCSHARED="-fpic";;
13543 FreeBSD*|NetBSD*|OpenBSD*|DragonFly*) CCSHARED="-fPIC";;
13544 OpenUNIX*|UnixWare*)
13545 if test "$GCC" = "yes"
13546 then CCSHARED="-fPIC"
13547 else CCSHARED="-KPIC"
13548 fi;;
13549 SCO_SV*)
13550 if test "$GCC" = "yes"
13551 then CCSHARED="-fPIC"
13552 else CCSHARED="-Kpic -belf"
13553 fi;;
13554 Monterey*) CCSHARED="-G";;
13555 IRIX*/6*) case $CC in
13556 *gcc*) CCSHARED="-shared";;
13557 *) CCSHARED="";;
13558 esac;;
13559 atheos*) CCSHARED="-fPIC";;
13560 esac
13562 { echo "$as_me:$LINENO: result: $CCSHARED" >&5
13563 echo "${ECHO_T}$CCSHARED" >&6; }
13564 # LINKFORSHARED are the flags passed to the $(CC) command that links
13565 # the python executable -- this is only needed for a few systems
13566 { echo "$as_me:$LINENO: checking LINKFORSHARED" >&5
13567 echo $ECHO_N "checking LINKFORSHARED... $ECHO_C" >&6; }
13568 if test -z "$LINKFORSHARED"
13569 then
13570 case $ac_sys_system/$ac_sys_release in
13571 AIX*) LINKFORSHARED='-Wl,-bE:Modules/python.exp -lld';;
13572 hp*|HP*)
13573 LINKFORSHARED="-Wl,-E -Wl,+s";;
13574 # LINKFORSHARED="-Wl,-E -Wl,+s -Wl,+b\$(BINLIBDEST)/lib-dynload";;
13575 BSD/OS/4*) LINKFORSHARED="-Xlinker -export-dynamic";;
13576 Linux*|GNU*) LINKFORSHARED="-Xlinker -export-dynamic";;
13577 # -u libsys_s pulls in all symbols in libsys
13578 Darwin/*)
13579 # -u _PyMac_Error is needed to pull in the mac toolbox glue,
13580 # which is
13581 # not used by the core itself but which needs to be in the core so
13582 # that dynamically loaded extension modules have access to it.
13583 # -prebind is no longer used, because it actually seems to give a
13584 # slowdown in stead of a speedup, maybe due to the large number of
13585 # dynamic loads Python does.
13587 LINKFORSHARED="$extra_undefs"
13588 if test "$enable_framework"
13589 then
13590 LINKFORSHARED="$LINKFORSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
13592 LINKFORSHARED="$LINKFORSHARED";;
13593 OpenUNIX*|UnixWare*) LINKFORSHARED="-Wl,-Bexport";;
13594 SCO_SV*) LINKFORSHARED="-Wl,-Bexport";;
13595 ReliantUNIX*) LINKFORSHARED="-W1 -Blargedynsym";;
13596 FreeBSD*|NetBSD*|OpenBSD*|DragonFly*)
13597 if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]
13598 then
13599 LINKFORSHARED="-Wl,--export-dynamic"
13600 fi;;
13601 SunOS/5*) case $CC in
13602 *gcc*)
13603 if $CC -Xlinker --help 2>&1 | grep export-dynamic >/dev/null
13604 then
13605 LINKFORSHARED="-Xlinker --export-dynamic"
13606 fi;;
13607 esac;;
13608 CYGWIN*)
13609 if test $enable_shared = "no"
13610 then
13611 LINKFORSHARED='-Wl,--out-implib=$(LDLIBRARY)'
13612 fi;;
13613 QNX*)
13614 # -Wl,-E causes the symbols to be added to the dynamic
13615 # symbol table so that they can be found when a module
13616 # is loaded. -N 2048K causes the stack size to be set
13617 # to 2048 kilobytes so that the stack doesn't overflow
13618 # when running test_compile.py.
13619 LINKFORSHARED='-Wl,-E -N 2048K';;
13620 esac
13622 { echo "$as_me:$LINENO: result: $LINKFORSHARED" >&5
13623 echo "${ECHO_T}$LINKFORSHARED" >&6; }
13627 { echo "$as_me:$LINENO: checking CFLAGSFORSHARED" >&5
13628 echo $ECHO_N "checking CFLAGSFORSHARED... $ECHO_C" >&6; }
13629 if test ! "$LIBRARY" = "$LDLIBRARY"
13630 then
13631 case $ac_sys_system in
13632 CYGWIN*)
13633 # Cygwin needs CCSHARED when building extension DLLs
13634 # but not when building the interpreter DLL.
13635 CFLAGSFORSHARED='';;
13637 CFLAGSFORSHARED='$(CCSHARED)'
13638 esac
13640 { echo "$as_me:$LINENO: result: $CFLAGSFORSHARED" >&5
13641 echo "${ECHO_T}$CFLAGSFORSHARED" >&6; }
13643 # SHLIBS are libraries (except -lc and -lm) to link to the python shared
13644 # library (with --enable-shared).
13645 # For platforms on which shared libraries are not allowed to have unresolved
13646 # symbols, this must be set to $(LIBS) (expanded by make). We do this even
13647 # if it is not required, since it creates a dependency of the shared library
13648 # to LIBS. This, in turn, means that applications linking the shared libpython
13649 # don't need to link LIBS explicitly. The default should be only changed
13650 # on systems where this approach causes problems.
13652 { echo "$as_me:$LINENO: checking SHLIBS" >&5
13653 echo $ECHO_N "checking SHLIBS... $ECHO_C" >&6; }
13654 case "$ac_sys_system" in
13656 SHLIBS='$(LIBS)';;
13657 esac
13658 { echo "$as_me:$LINENO: result: $SHLIBS" >&5
13659 echo "${ECHO_T}$SHLIBS" >&6; }
13662 # checks for libraries
13664 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
13665 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
13666 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
13667 echo $ECHO_N "(cached) $ECHO_C" >&6
13668 else
13669 ac_check_lib_save_LIBS=$LIBS
13670 LIBS="-ldl $LIBS"
13671 cat >conftest.$ac_ext <<_ACEOF
13672 /* confdefs.h. */
13673 _ACEOF
13674 cat confdefs.h >>conftest.$ac_ext
13675 cat >>conftest.$ac_ext <<_ACEOF
13676 /* end confdefs.h. */
13678 /* Override any GCC internal prototype to avoid an error.
13679 Use char because int might match the return type of a GCC
13680 builtin and then its argument prototype would still apply. */
13681 #ifdef __cplusplus
13682 extern "C"
13683 #endif
13684 char dlopen ();
13686 main ()
13688 return dlopen ();
13690 return 0;
13692 _ACEOF
13693 rm -f conftest.$ac_objext conftest$ac_exeext
13694 if { (ac_try="$ac_link"
13695 case "(($ac_try" in
13696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13697 *) ac_try_echo=$ac_try;;
13698 esac
13699 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13700 (eval "$ac_link") 2>conftest.er1
13701 ac_status=$?
13702 grep -v '^ *+' conftest.er1 >conftest.err
13703 rm -f conftest.er1
13704 cat conftest.err >&5
13705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13706 (exit $ac_status); } && {
13707 test -z "$ac_c_werror_flag" ||
13708 test ! -s conftest.err
13709 } && test -s conftest$ac_exeext &&
13710 $as_test_x conftest$ac_exeext; then
13711 ac_cv_lib_dl_dlopen=yes
13712 else
13713 echo "$as_me: failed program was:" >&5
13714 sed 's/^/| /' conftest.$ac_ext >&5
13716 ac_cv_lib_dl_dlopen=no
13719 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13720 conftest$ac_exeext conftest.$ac_ext
13721 LIBS=$ac_check_lib_save_LIBS
13723 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
13724 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
13725 if test $ac_cv_lib_dl_dlopen = yes; then
13726 cat >>confdefs.h <<_ACEOF
13727 #define HAVE_LIBDL 1
13728 _ACEOF
13730 LIBS="-ldl $LIBS"
13733 # Dynamic linking for SunOS/Solaris and SYSV
13735 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
13736 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
13737 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
13738 echo $ECHO_N "(cached) $ECHO_C" >&6
13739 else
13740 ac_check_lib_save_LIBS=$LIBS
13741 LIBS="-ldld $LIBS"
13742 cat >conftest.$ac_ext <<_ACEOF
13743 /* confdefs.h. */
13744 _ACEOF
13745 cat confdefs.h >>conftest.$ac_ext
13746 cat >>conftest.$ac_ext <<_ACEOF
13747 /* end confdefs.h. */
13749 /* Override any GCC internal prototype to avoid an error.
13750 Use char because int might match the return type of a GCC
13751 builtin and then its argument prototype would still apply. */
13752 #ifdef __cplusplus
13753 extern "C"
13754 #endif
13755 char shl_load ();
13757 main ()
13759 return shl_load ();
13761 return 0;
13763 _ACEOF
13764 rm -f conftest.$ac_objext conftest$ac_exeext
13765 if { (ac_try="$ac_link"
13766 case "(($ac_try" in
13767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13768 *) ac_try_echo=$ac_try;;
13769 esac
13770 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13771 (eval "$ac_link") 2>conftest.er1
13772 ac_status=$?
13773 grep -v '^ *+' conftest.er1 >conftest.err
13774 rm -f conftest.er1
13775 cat conftest.err >&5
13776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13777 (exit $ac_status); } && {
13778 test -z "$ac_c_werror_flag" ||
13779 test ! -s conftest.err
13780 } && test -s conftest$ac_exeext &&
13781 $as_test_x conftest$ac_exeext; then
13782 ac_cv_lib_dld_shl_load=yes
13783 else
13784 echo "$as_me: failed program was:" >&5
13785 sed 's/^/| /' conftest.$ac_ext >&5
13787 ac_cv_lib_dld_shl_load=no
13790 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13791 conftest$ac_exeext conftest.$ac_ext
13792 LIBS=$ac_check_lib_save_LIBS
13794 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
13795 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
13796 if test $ac_cv_lib_dld_shl_load = yes; then
13797 cat >>confdefs.h <<_ACEOF
13798 #define HAVE_LIBDLD 1
13799 _ACEOF
13801 LIBS="-ldld $LIBS"
13804 # Dynamic linking for HP-UX
13806 # only check for sem_init if thread support is requested
13807 if test "$with_threads" = "yes" -o -z "$with_threads"; then
13808 { echo "$as_me:$LINENO: checking for library containing sem_init" >&5
13809 echo $ECHO_N "checking for library containing sem_init... $ECHO_C" >&6; }
13810 if test "${ac_cv_search_sem_init+set}" = set; then
13811 echo $ECHO_N "(cached) $ECHO_C" >&6
13812 else
13813 ac_func_search_save_LIBS=$LIBS
13814 cat >conftest.$ac_ext <<_ACEOF
13815 /* confdefs.h. */
13816 _ACEOF
13817 cat confdefs.h >>conftest.$ac_ext
13818 cat >>conftest.$ac_ext <<_ACEOF
13819 /* end confdefs.h. */
13821 /* Override any GCC internal prototype to avoid an error.
13822 Use char because int might match the return type of a GCC
13823 builtin and then its argument prototype would still apply. */
13824 #ifdef __cplusplus
13825 extern "C"
13826 #endif
13827 char sem_init ();
13829 main ()
13831 return sem_init ();
13833 return 0;
13835 _ACEOF
13836 for ac_lib in '' pthread rt posix4; do
13837 if test -z "$ac_lib"; then
13838 ac_res="none required"
13839 else
13840 ac_res=-l$ac_lib
13841 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13843 rm -f conftest.$ac_objext conftest$ac_exeext
13844 if { (ac_try="$ac_link"
13845 case "(($ac_try" in
13846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13847 *) ac_try_echo=$ac_try;;
13848 esac
13849 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13850 (eval "$ac_link") 2>conftest.er1
13851 ac_status=$?
13852 grep -v '^ *+' conftest.er1 >conftest.err
13853 rm -f conftest.er1
13854 cat conftest.err >&5
13855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13856 (exit $ac_status); } && {
13857 test -z "$ac_c_werror_flag" ||
13858 test ! -s conftest.err
13859 } && test -s conftest$ac_exeext &&
13860 $as_test_x conftest$ac_exeext; then
13861 ac_cv_search_sem_init=$ac_res
13862 else
13863 echo "$as_me: failed program was:" >&5
13864 sed 's/^/| /' conftest.$ac_ext >&5
13869 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13870 conftest$ac_exeext
13871 if test "${ac_cv_search_sem_init+set}" = set; then
13872 break
13874 done
13875 if test "${ac_cv_search_sem_init+set}" = set; then
13877 else
13878 ac_cv_search_sem_init=no
13880 rm conftest.$ac_ext
13881 LIBS=$ac_func_search_save_LIBS
13883 { echo "$as_me:$LINENO: result: $ac_cv_search_sem_init" >&5
13884 echo "${ECHO_T}$ac_cv_search_sem_init" >&6; }
13885 ac_res=$ac_cv_search_sem_init
13886 if test "$ac_res" != no; then
13887 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13890 # 'Real Time' functions on Solaris
13891 # posix4 on Solaris 2.6
13892 # pthread (first!) on Linux
13895 # check if we need libintl for locale functions
13896 { echo "$as_me:$LINENO: checking for textdomain in -lintl" >&5
13897 echo $ECHO_N "checking for textdomain in -lintl... $ECHO_C" >&6; }
13898 if test "${ac_cv_lib_intl_textdomain+set}" = set; then
13899 echo $ECHO_N "(cached) $ECHO_C" >&6
13900 else
13901 ac_check_lib_save_LIBS=$LIBS
13902 LIBS="-lintl $LIBS"
13903 cat >conftest.$ac_ext <<_ACEOF
13904 /* confdefs.h. */
13905 _ACEOF
13906 cat confdefs.h >>conftest.$ac_ext
13907 cat >>conftest.$ac_ext <<_ACEOF
13908 /* end confdefs.h. */
13910 /* Override any GCC internal prototype to avoid an error.
13911 Use char because int might match the return type of a GCC
13912 builtin and then its argument prototype would still apply. */
13913 #ifdef __cplusplus
13914 extern "C"
13915 #endif
13916 char textdomain ();
13918 main ()
13920 return textdomain ();
13922 return 0;
13924 _ACEOF
13925 rm -f conftest.$ac_objext conftest$ac_exeext
13926 if { (ac_try="$ac_link"
13927 case "(($ac_try" in
13928 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13929 *) ac_try_echo=$ac_try;;
13930 esac
13931 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13932 (eval "$ac_link") 2>conftest.er1
13933 ac_status=$?
13934 grep -v '^ *+' conftest.er1 >conftest.err
13935 rm -f conftest.er1
13936 cat conftest.err >&5
13937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13938 (exit $ac_status); } && {
13939 test -z "$ac_c_werror_flag" ||
13940 test ! -s conftest.err
13941 } && test -s conftest$ac_exeext &&
13942 $as_test_x conftest$ac_exeext; then
13943 ac_cv_lib_intl_textdomain=yes
13944 else
13945 echo "$as_me: failed program was:" >&5
13946 sed 's/^/| /' conftest.$ac_ext >&5
13948 ac_cv_lib_intl_textdomain=no
13951 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13952 conftest$ac_exeext conftest.$ac_ext
13953 LIBS=$ac_check_lib_save_LIBS
13955 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_textdomain" >&5
13956 echo "${ECHO_T}$ac_cv_lib_intl_textdomain" >&6; }
13957 if test $ac_cv_lib_intl_textdomain = yes; then
13959 cat >>confdefs.h <<\_ACEOF
13960 #define WITH_LIBINTL 1
13961 _ACEOF
13966 # checks for system dependent C++ extensions support
13967 case "$ac_sys_system" in
13968 AIX*) { echo "$as_me:$LINENO: checking for genuine AIX C++ extensions support" >&5
13969 echo $ECHO_N "checking for genuine AIX C++ extensions support... $ECHO_C" >&6; }
13970 cat >conftest.$ac_ext <<_ACEOF
13971 /* confdefs.h. */
13972 _ACEOF
13973 cat confdefs.h >>conftest.$ac_ext
13974 cat >>conftest.$ac_ext <<_ACEOF
13975 /* end confdefs.h. */
13976 #include "/usr/lpp/xlC/include/load.h"
13978 main ()
13980 loadAndInit("", 0, "")
13982 return 0;
13984 _ACEOF
13985 rm -f conftest.$ac_objext conftest$ac_exeext
13986 if { (ac_try="$ac_link"
13987 case "(($ac_try" in
13988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13989 *) ac_try_echo=$ac_try;;
13990 esac
13991 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13992 (eval "$ac_link") 2>conftest.er1
13993 ac_status=$?
13994 grep -v '^ *+' conftest.er1 >conftest.err
13995 rm -f conftest.er1
13996 cat conftest.err >&5
13997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13998 (exit $ac_status); } && {
13999 test -z "$ac_c_werror_flag" ||
14000 test ! -s conftest.err
14001 } && test -s conftest$ac_exeext &&
14002 $as_test_x conftest$ac_exeext; then
14004 cat >>confdefs.h <<\_ACEOF
14005 #define AIX_GENUINE_CPLUSPLUS 1
14006 _ACEOF
14008 { echo "$as_me:$LINENO: result: yes" >&5
14009 echo "${ECHO_T}yes" >&6; }
14010 else
14011 echo "$as_me: failed program was:" >&5
14012 sed 's/^/| /' conftest.$ac_ext >&5
14014 { echo "$as_me:$LINENO: result: no" >&5
14015 echo "${ECHO_T}no" >&6; }
14018 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14019 conftest$ac_exeext conftest.$ac_ext;;
14020 *) ;;
14021 esac
14023 # Most SVR4 platforms (e.g. Solaris) need -lsocket and -lnsl.
14024 # BeOS' sockets are stashed in libnet.
14025 { echo "$as_me:$LINENO: checking for t_open in -lnsl" >&5
14026 echo $ECHO_N "checking for t_open in -lnsl... $ECHO_C" >&6; }
14027 if test "${ac_cv_lib_nsl_t_open+set}" = set; then
14028 echo $ECHO_N "(cached) $ECHO_C" >&6
14029 else
14030 ac_check_lib_save_LIBS=$LIBS
14031 LIBS="-lnsl $LIBS"
14032 cat >conftest.$ac_ext <<_ACEOF
14033 /* confdefs.h. */
14034 _ACEOF
14035 cat confdefs.h >>conftest.$ac_ext
14036 cat >>conftest.$ac_ext <<_ACEOF
14037 /* end confdefs.h. */
14039 /* Override any GCC internal prototype to avoid an error.
14040 Use char because int might match the return type of a GCC
14041 builtin and then its argument prototype would still apply. */
14042 #ifdef __cplusplus
14043 extern "C"
14044 #endif
14045 char t_open ();
14047 main ()
14049 return t_open ();
14051 return 0;
14053 _ACEOF
14054 rm -f conftest.$ac_objext conftest$ac_exeext
14055 if { (ac_try="$ac_link"
14056 case "(($ac_try" in
14057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14058 *) ac_try_echo=$ac_try;;
14059 esac
14060 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14061 (eval "$ac_link") 2>conftest.er1
14062 ac_status=$?
14063 grep -v '^ *+' conftest.er1 >conftest.err
14064 rm -f conftest.er1
14065 cat conftest.err >&5
14066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14067 (exit $ac_status); } && {
14068 test -z "$ac_c_werror_flag" ||
14069 test ! -s conftest.err
14070 } && test -s conftest$ac_exeext &&
14071 $as_test_x conftest$ac_exeext; then
14072 ac_cv_lib_nsl_t_open=yes
14073 else
14074 echo "$as_me: failed program was:" >&5
14075 sed 's/^/| /' conftest.$ac_ext >&5
14077 ac_cv_lib_nsl_t_open=no
14080 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14081 conftest$ac_exeext conftest.$ac_ext
14082 LIBS=$ac_check_lib_save_LIBS
14084 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_t_open" >&5
14085 echo "${ECHO_T}$ac_cv_lib_nsl_t_open" >&6; }
14086 if test $ac_cv_lib_nsl_t_open = yes; then
14087 LIBS="-lnsl $LIBS"
14089 # SVR4
14090 { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
14091 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
14092 if test "${ac_cv_lib_socket_socket+set}" = set; then
14093 echo $ECHO_N "(cached) $ECHO_C" >&6
14094 else
14095 ac_check_lib_save_LIBS=$LIBS
14096 LIBS="-lsocket $LIBS $LIBS"
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. */
14104 /* Override any GCC internal prototype to avoid an error.
14105 Use char because int might match the return type of a GCC
14106 builtin and then its argument prototype would still apply. */
14107 #ifdef __cplusplus
14108 extern "C"
14109 #endif
14110 char socket ();
14112 main ()
14114 return socket ();
14116 return 0;
14118 _ACEOF
14119 rm -f conftest.$ac_objext conftest$ac_exeext
14120 if { (ac_try="$ac_link"
14121 case "(($ac_try" in
14122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14123 *) ac_try_echo=$ac_try;;
14124 esac
14125 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14126 (eval "$ac_link") 2>conftest.er1
14127 ac_status=$?
14128 grep -v '^ *+' conftest.er1 >conftest.err
14129 rm -f conftest.er1
14130 cat conftest.err >&5
14131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14132 (exit $ac_status); } && {
14133 test -z "$ac_c_werror_flag" ||
14134 test ! -s conftest.err
14135 } && test -s conftest$ac_exeext &&
14136 $as_test_x conftest$ac_exeext; then
14137 ac_cv_lib_socket_socket=yes
14138 else
14139 echo "$as_me: failed program was:" >&5
14140 sed 's/^/| /' conftest.$ac_ext >&5
14142 ac_cv_lib_socket_socket=no
14145 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14146 conftest$ac_exeext conftest.$ac_ext
14147 LIBS=$ac_check_lib_save_LIBS
14149 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
14150 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; }
14151 if test $ac_cv_lib_socket_socket = yes; then
14152 LIBS="-lsocket $LIBS"
14154 # SVR4 sockets
14156 case "$ac_sys_system" in
14157 BeOS*)
14158 { echo "$as_me:$LINENO: checking for socket in -lnet" >&5
14159 echo $ECHO_N "checking for socket in -lnet... $ECHO_C" >&6; }
14160 if test "${ac_cv_lib_net_socket+set}" = set; then
14161 echo $ECHO_N "(cached) $ECHO_C" >&6
14162 else
14163 ac_check_lib_save_LIBS=$LIBS
14164 LIBS="-lnet $LIBS $LIBS"
14165 cat >conftest.$ac_ext <<_ACEOF
14166 /* confdefs.h. */
14167 _ACEOF
14168 cat confdefs.h >>conftest.$ac_ext
14169 cat >>conftest.$ac_ext <<_ACEOF
14170 /* end confdefs.h. */
14172 /* Override any GCC internal prototype to avoid an error.
14173 Use char because int might match the return type of a GCC
14174 builtin and then its argument prototype would still apply. */
14175 #ifdef __cplusplus
14176 extern "C"
14177 #endif
14178 char socket ();
14180 main ()
14182 return socket ();
14184 return 0;
14186 _ACEOF
14187 rm -f conftest.$ac_objext conftest$ac_exeext
14188 if { (ac_try="$ac_link"
14189 case "(($ac_try" in
14190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14191 *) ac_try_echo=$ac_try;;
14192 esac
14193 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14194 (eval "$ac_link") 2>conftest.er1
14195 ac_status=$?
14196 grep -v '^ *+' conftest.er1 >conftest.err
14197 rm -f conftest.er1
14198 cat conftest.err >&5
14199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14200 (exit $ac_status); } && {
14201 test -z "$ac_c_werror_flag" ||
14202 test ! -s conftest.err
14203 } && test -s conftest$ac_exeext &&
14204 $as_test_x conftest$ac_exeext; then
14205 ac_cv_lib_net_socket=yes
14206 else
14207 echo "$as_me: failed program was:" >&5
14208 sed 's/^/| /' conftest.$ac_ext >&5
14210 ac_cv_lib_net_socket=no
14213 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14214 conftest$ac_exeext conftest.$ac_ext
14215 LIBS=$ac_check_lib_save_LIBS
14217 { echo "$as_me:$LINENO: result: $ac_cv_lib_net_socket" >&5
14218 echo "${ECHO_T}$ac_cv_lib_net_socket" >&6; }
14219 if test $ac_cv_lib_net_socket = yes; then
14220 LIBS="-lnet $LIBS"
14222 # BeOS
14224 esac
14226 { echo "$as_me:$LINENO: checking for --with-libs" >&5
14227 echo $ECHO_N "checking for --with-libs... $ECHO_C" >&6; }
14229 # Check whether --with-libs was given.
14230 if test "${with_libs+set}" = set; then
14231 withval=$with_libs;
14232 { echo "$as_me:$LINENO: result: $withval" >&5
14233 echo "${ECHO_T}$withval" >&6; }
14234 LIBS="$withval $LIBS"
14236 else
14237 { echo "$as_me:$LINENO: result: no" >&5
14238 echo "${ECHO_T}no" >&6; }
14242 # Check for use of the system libffi library
14243 { echo "$as_me:$LINENO: checking for --with-system-ffi" >&5
14244 echo $ECHO_N "checking for --with-system-ffi... $ECHO_C" >&6; }
14246 # Check whether --with-system_ffi was given.
14247 if test "${with_system_ffi+set}" = set; then
14248 withval=$with_system_ffi;
14252 { echo "$as_me:$LINENO: result: $with_system_ffi" >&5
14253 echo "${ECHO_T}$with_system_ffi" >&6; }
14255 # Check for --with-dbmliborder
14256 { echo "$as_me:$LINENO: checking for --with-dbmliborder" >&5
14257 echo $ECHO_N "checking for --with-dbmliborder... $ECHO_C" >&6; }
14259 # Check whether --with-dbmliborder was given.
14260 if test "${with_dbmliborder+set}" = set; then
14261 withval=$with_dbmliborder;
14262 if test x$with_dbmliborder = xyes
14263 then
14264 { { echo "$as_me:$LINENO: error: proper usage is --with-dbmliborder=db1:db2:..." >&5
14265 echo "$as_me: error: proper usage is --with-dbmliborder=db1:db2:..." >&2;}
14266 { (exit 1); exit 1; }; }
14267 else
14268 for db in `echo $with_dbmliborder | sed 's/:/ /g'`; do
14269 if test x$db != xndbm && test x$db != xgdbm && test x$db != xbdb
14270 then
14271 { { echo "$as_me:$LINENO: error: proper usage is --with-dbmliborder=db1:db2:..." >&5
14272 echo "$as_me: error: proper usage is --with-dbmliborder=db1:db2:..." >&2;}
14273 { (exit 1); exit 1; }; }
14275 done
14279 { echo "$as_me:$LINENO: result: $with_dbmliborder" >&5
14280 echo "${ECHO_T}$with_dbmliborder" >&6; }
14282 # Determine if signalmodule should be used.
14285 { echo "$as_me:$LINENO: checking for --with-signal-module" >&5
14286 echo $ECHO_N "checking for --with-signal-module... $ECHO_C" >&6; }
14288 # Check whether --with-signal-module was given.
14289 if test "${with_signal_module+set}" = set; then
14290 withval=$with_signal_module;
14294 if test -z "$with_signal_module"
14295 then with_signal_module="yes"
14297 { echo "$as_me:$LINENO: result: $with_signal_module" >&5
14298 echo "${ECHO_T}$with_signal_module" >&6; }
14300 if test "${with_signal_module}" = "yes"; then
14301 USE_SIGNAL_MODULE=""
14302 SIGNAL_OBJS=""
14303 else
14304 USE_SIGNAL_MODULE="#"
14305 SIGNAL_OBJS="Parser/intrcheck.o Python/sigcheck.o"
14308 # This is used to generate Setup.config
14310 USE_THREAD_MODULE=""
14312 { echo "$as_me:$LINENO: checking for --with-dec-threads" >&5
14313 echo $ECHO_N "checking for --with-dec-threads... $ECHO_C" >&6; }
14316 # Check whether --with-dec-threads was given.
14317 if test "${with_dec_threads+set}" = set; then
14318 withval=$with_dec_threads;
14319 { echo "$as_me:$LINENO: result: $withval" >&5
14320 echo "${ECHO_T}$withval" >&6; }
14321 LDLAST=-threads
14322 if test "${with_thread+set}" != set; then
14323 with_thread="$withval";
14325 else
14326 { echo "$as_me:$LINENO: result: no" >&5
14327 echo "${ECHO_T}no" >&6; }
14331 # Templates for things AC_DEFINEd more than once.
14332 # For a single AC_DEFINE, no template is needed.
14340 { echo "$as_me:$LINENO: checking for --with-threads" >&5
14341 echo $ECHO_N "checking for --with-threads... $ECHO_C" >&6; }
14343 # Check whether --with-threads was given.
14344 if test "${with_threads+set}" = set; then
14345 withval=$with_threads;
14349 # --with-thread is deprecated, but check for it anyway
14351 # Check whether --with-thread was given.
14352 if test "${with_thread+set}" = set; then
14353 withval=$with_thread; with_threads=$with_thread
14357 if test -z "$with_threads"
14358 then with_threads="yes"
14360 { echo "$as_me:$LINENO: result: $with_threads" >&5
14361 echo "${ECHO_T}$with_threads" >&6; }
14364 if test "$with_threads" = "no"
14365 then
14366 USE_THREAD_MODULE="#"
14367 elif test "$ac_cv_pthread_is_default" = yes
14368 then
14369 cat >>confdefs.h <<\_ACEOF
14370 #define WITH_THREAD 1
14371 _ACEOF
14373 # Defining _REENTRANT on system with POSIX threads should not hurt.
14374 cat >>confdefs.h <<\_ACEOF
14375 #define _REENTRANT 1
14376 _ACEOF
14378 posix_threads=yes
14379 THREADOBJ="Python/thread.o"
14380 elif test "$ac_cv_kpthread" = "yes"
14381 then
14382 CC="$CC -Kpthread"
14383 if test "$ac_cv_cxx_thread" = "yes"; then
14384 CXX="$CXX -Kpthread"
14386 cat >>confdefs.h <<\_ACEOF
14387 #define WITH_THREAD 1
14388 _ACEOF
14390 posix_threads=yes
14391 THREADOBJ="Python/thread.o"
14392 elif test "$ac_cv_kthread" = "yes"
14393 then
14394 CC="$CC -Kthread"
14395 if test "$ac_cv_cxx_thread" = "yes"; then
14396 CXX="$CXX -Kthread"
14398 cat >>confdefs.h <<\_ACEOF
14399 #define WITH_THREAD 1
14400 _ACEOF
14402 posix_threads=yes
14403 THREADOBJ="Python/thread.o"
14404 elif test "$ac_cv_pthread" = "yes"
14405 then
14406 CC="$CC -pthread"
14407 if test "$ac_cv_cxx_thread" = "yes"; then
14408 CXX="$CXX -pthread"
14410 cat >>confdefs.h <<\_ACEOF
14411 #define WITH_THREAD 1
14412 _ACEOF
14414 posix_threads=yes
14415 THREADOBJ="Python/thread.o"
14416 else
14417 if test ! -z "$with_threads" -a -d "$with_threads"
14418 then LDFLAGS="$LDFLAGS -L$with_threads"
14420 if test ! -z "$withval" -a -d "$withval"
14421 then LDFLAGS="$LDFLAGS -L$withval"
14424 # According to the POSIX spec, a pthreads implementation must
14425 # define _POSIX_THREADS in unistd.h. Some apparently don't
14426 # (e.g. gnu pth with pthread emulation)
14427 { echo "$as_me:$LINENO: checking for _POSIX_THREADS in unistd.h" >&5
14428 echo $ECHO_N "checking for _POSIX_THREADS in unistd.h... $ECHO_C" >&6; }
14429 cat >conftest.$ac_ext <<_ACEOF
14430 /* confdefs.h. */
14431 _ACEOF
14432 cat confdefs.h >>conftest.$ac_ext
14433 cat >>conftest.$ac_ext <<_ACEOF
14434 /* end confdefs.h. */
14436 #include <unistd.h>
14437 #ifdef _POSIX_THREADS
14439 #endif
14441 _ACEOF
14442 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14443 $EGREP "yes" >/dev/null 2>&1; then
14444 unistd_defines_pthreads=yes
14445 else
14446 unistd_defines_pthreads=no
14448 rm -f conftest*
14450 { echo "$as_me:$LINENO: result: $unistd_defines_pthreads" >&5
14451 echo "${ECHO_T}$unistd_defines_pthreads" >&6; }
14453 cat >>confdefs.h <<\_ACEOF
14454 #define _REENTRANT 1
14455 _ACEOF
14457 if test "${ac_cv_header_cthreads_h+set}" = set; then
14458 { echo "$as_me:$LINENO: checking for cthreads.h" >&5
14459 echo $ECHO_N "checking for cthreads.h... $ECHO_C" >&6; }
14460 if test "${ac_cv_header_cthreads_h+set}" = set; then
14461 echo $ECHO_N "(cached) $ECHO_C" >&6
14463 { echo "$as_me:$LINENO: result: $ac_cv_header_cthreads_h" >&5
14464 echo "${ECHO_T}$ac_cv_header_cthreads_h" >&6; }
14465 else
14466 # Is the header compilable?
14467 { echo "$as_me:$LINENO: checking cthreads.h usability" >&5
14468 echo $ECHO_N "checking cthreads.h usability... $ECHO_C" >&6; }
14469 cat >conftest.$ac_ext <<_ACEOF
14470 /* confdefs.h. */
14471 _ACEOF
14472 cat confdefs.h >>conftest.$ac_ext
14473 cat >>conftest.$ac_ext <<_ACEOF
14474 /* end confdefs.h. */
14475 $ac_includes_default
14476 #include <cthreads.h>
14477 _ACEOF
14478 rm -f conftest.$ac_objext
14479 if { (ac_try="$ac_compile"
14480 case "(($ac_try" in
14481 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14482 *) ac_try_echo=$ac_try;;
14483 esac
14484 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14485 (eval "$ac_compile") 2>conftest.er1
14486 ac_status=$?
14487 grep -v '^ *+' conftest.er1 >conftest.err
14488 rm -f conftest.er1
14489 cat conftest.err >&5
14490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14491 (exit $ac_status); } && {
14492 test -z "$ac_c_werror_flag" ||
14493 test ! -s conftest.err
14494 } && test -s conftest.$ac_objext; then
14495 ac_header_compiler=yes
14496 else
14497 echo "$as_me: failed program was:" >&5
14498 sed 's/^/| /' conftest.$ac_ext >&5
14500 ac_header_compiler=no
14503 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14504 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14505 echo "${ECHO_T}$ac_header_compiler" >&6; }
14507 # Is the header present?
14508 { echo "$as_me:$LINENO: checking cthreads.h presence" >&5
14509 echo $ECHO_N "checking cthreads.h presence... $ECHO_C" >&6; }
14510 cat >conftest.$ac_ext <<_ACEOF
14511 /* confdefs.h. */
14512 _ACEOF
14513 cat confdefs.h >>conftest.$ac_ext
14514 cat >>conftest.$ac_ext <<_ACEOF
14515 /* end confdefs.h. */
14516 #include <cthreads.h>
14517 _ACEOF
14518 if { (ac_try="$ac_cpp conftest.$ac_ext"
14519 case "(($ac_try" in
14520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14521 *) ac_try_echo=$ac_try;;
14522 esac
14523 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14524 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14525 ac_status=$?
14526 grep -v '^ *+' conftest.er1 >conftest.err
14527 rm -f conftest.er1
14528 cat conftest.err >&5
14529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14530 (exit $ac_status); } >/dev/null && {
14531 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14532 test ! -s conftest.err
14533 }; then
14534 ac_header_preproc=yes
14535 else
14536 echo "$as_me: failed program was:" >&5
14537 sed 's/^/| /' conftest.$ac_ext >&5
14539 ac_header_preproc=no
14542 rm -f conftest.err conftest.$ac_ext
14543 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14544 echo "${ECHO_T}$ac_header_preproc" >&6; }
14546 # So? What about this header?
14547 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14548 yes:no: )
14549 { echo "$as_me:$LINENO: WARNING: cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&5
14550 echo "$as_me: WARNING: cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14551 { echo "$as_me:$LINENO: WARNING: cthreads.h: proceeding with the compiler's result" >&5
14552 echo "$as_me: WARNING: cthreads.h: proceeding with the compiler's result" >&2;}
14553 ac_header_preproc=yes
14555 no:yes:* )
14556 { echo "$as_me:$LINENO: WARNING: cthreads.h: present but cannot be compiled" >&5
14557 echo "$as_me: WARNING: cthreads.h: present but cannot be compiled" >&2;}
14558 { echo "$as_me:$LINENO: WARNING: cthreads.h: check for missing prerequisite headers?" >&5
14559 echo "$as_me: WARNING: cthreads.h: check for missing prerequisite headers?" >&2;}
14560 { echo "$as_me:$LINENO: WARNING: cthreads.h: see the Autoconf documentation" >&5
14561 echo "$as_me: WARNING: cthreads.h: see the Autoconf documentation" >&2;}
14562 { echo "$as_me:$LINENO: WARNING: cthreads.h: section \"Present But Cannot Be Compiled\"" >&5
14563 echo "$as_me: WARNING: cthreads.h: section \"Present But Cannot Be Compiled\"" >&2;}
14564 { echo "$as_me:$LINENO: WARNING: cthreads.h: proceeding with the preprocessor's result" >&5
14565 echo "$as_me: WARNING: cthreads.h: proceeding with the preprocessor's result" >&2;}
14566 { echo "$as_me:$LINENO: WARNING: cthreads.h: in the future, the compiler will take precedence" >&5
14567 echo "$as_me: WARNING: cthreads.h: in the future, the compiler will take precedence" >&2;}
14568 ( cat <<\_ASBOX
14569 ## ------------------------------------------------ ##
14570 ## Report this to http://www.python.org/python-bugs ##
14571 ## ------------------------------------------------ ##
14572 _ASBOX
14573 ) | sed "s/^/$as_me: WARNING: /" >&2
14575 esac
14576 { echo "$as_me:$LINENO: checking for cthreads.h" >&5
14577 echo $ECHO_N "checking for cthreads.h... $ECHO_C" >&6; }
14578 if test "${ac_cv_header_cthreads_h+set}" = set; then
14579 echo $ECHO_N "(cached) $ECHO_C" >&6
14580 else
14581 ac_cv_header_cthreads_h=$ac_header_preproc
14583 { echo "$as_me:$LINENO: result: $ac_cv_header_cthreads_h" >&5
14584 echo "${ECHO_T}$ac_cv_header_cthreads_h" >&6; }
14587 if test $ac_cv_header_cthreads_h = yes; then
14588 cat >>confdefs.h <<\_ACEOF
14589 #define WITH_THREAD 1
14590 _ACEOF
14592 cat >>confdefs.h <<\_ACEOF
14593 #define C_THREADS 1
14594 _ACEOF
14597 cat >>confdefs.h <<\_ACEOF
14598 #define HURD_C_THREADS 1
14599 _ACEOF
14601 LIBS="$LIBS -lthreads"
14602 THREADOBJ="Python/thread.o"
14603 else
14605 if test "${ac_cv_header_mach_cthreads_h+set}" = set; then
14606 { echo "$as_me:$LINENO: checking for mach/cthreads.h" >&5
14607 echo $ECHO_N "checking for mach/cthreads.h... $ECHO_C" >&6; }
14608 if test "${ac_cv_header_mach_cthreads_h+set}" = set; then
14609 echo $ECHO_N "(cached) $ECHO_C" >&6
14611 { echo "$as_me:$LINENO: result: $ac_cv_header_mach_cthreads_h" >&5
14612 echo "${ECHO_T}$ac_cv_header_mach_cthreads_h" >&6; }
14613 else
14614 # Is the header compilable?
14615 { echo "$as_me:$LINENO: checking mach/cthreads.h usability" >&5
14616 echo $ECHO_N "checking mach/cthreads.h usability... $ECHO_C" >&6; }
14617 cat >conftest.$ac_ext <<_ACEOF
14618 /* confdefs.h. */
14619 _ACEOF
14620 cat confdefs.h >>conftest.$ac_ext
14621 cat >>conftest.$ac_ext <<_ACEOF
14622 /* end confdefs.h. */
14623 $ac_includes_default
14624 #include <mach/cthreads.h>
14625 _ACEOF
14626 rm -f conftest.$ac_objext
14627 if { (ac_try="$ac_compile"
14628 case "(($ac_try" in
14629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14630 *) ac_try_echo=$ac_try;;
14631 esac
14632 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14633 (eval "$ac_compile") 2>conftest.er1
14634 ac_status=$?
14635 grep -v '^ *+' conftest.er1 >conftest.err
14636 rm -f conftest.er1
14637 cat conftest.err >&5
14638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14639 (exit $ac_status); } && {
14640 test -z "$ac_c_werror_flag" ||
14641 test ! -s conftest.err
14642 } && test -s conftest.$ac_objext; then
14643 ac_header_compiler=yes
14644 else
14645 echo "$as_me: failed program was:" >&5
14646 sed 's/^/| /' conftest.$ac_ext >&5
14648 ac_header_compiler=no
14651 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14652 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14653 echo "${ECHO_T}$ac_header_compiler" >&6; }
14655 # Is the header present?
14656 { echo "$as_me:$LINENO: checking mach/cthreads.h presence" >&5
14657 echo $ECHO_N "checking mach/cthreads.h presence... $ECHO_C" >&6; }
14658 cat >conftest.$ac_ext <<_ACEOF
14659 /* confdefs.h. */
14660 _ACEOF
14661 cat confdefs.h >>conftest.$ac_ext
14662 cat >>conftest.$ac_ext <<_ACEOF
14663 /* end confdefs.h. */
14664 #include <mach/cthreads.h>
14665 _ACEOF
14666 if { (ac_try="$ac_cpp conftest.$ac_ext"
14667 case "(($ac_try" in
14668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14669 *) ac_try_echo=$ac_try;;
14670 esac
14671 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14672 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14673 ac_status=$?
14674 grep -v '^ *+' conftest.er1 >conftest.err
14675 rm -f conftest.er1
14676 cat conftest.err >&5
14677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14678 (exit $ac_status); } >/dev/null && {
14679 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14680 test ! -s conftest.err
14681 }; then
14682 ac_header_preproc=yes
14683 else
14684 echo "$as_me: failed program was:" >&5
14685 sed 's/^/| /' conftest.$ac_ext >&5
14687 ac_header_preproc=no
14690 rm -f conftest.err conftest.$ac_ext
14691 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14692 echo "${ECHO_T}$ac_header_preproc" >&6; }
14694 # So? What about this header?
14695 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14696 yes:no: )
14697 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&5
14698 echo "$as_me: WARNING: mach/cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14699 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: proceeding with the compiler's result" >&5
14700 echo "$as_me: WARNING: mach/cthreads.h: proceeding with the compiler's result" >&2;}
14701 ac_header_preproc=yes
14703 no:yes:* )
14704 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: present but cannot be compiled" >&5
14705 echo "$as_me: WARNING: mach/cthreads.h: present but cannot be compiled" >&2;}
14706 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: check for missing prerequisite headers?" >&5
14707 echo "$as_me: WARNING: mach/cthreads.h: check for missing prerequisite headers?" >&2;}
14708 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: see the Autoconf documentation" >&5
14709 echo "$as_me: WARNING: mach/cthreads.h: see the Autoconf documentation" >&2;}
14710 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: section \"Present But Cannot Be Compiled\"" >&5
14711 echo "$as_me: WARNING: mach/cthreads.h: section \"Present But Cannot Be Compiled\"" >&2;}
14712 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: proceeding with the preprocessor's result" >&5
14713 echo "$as_me: WARNING: mach/cthreads.h: proceeding with the preprocessor's result" >&2;}
14714 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: in the future, the compiler will take precedence" >&5
14715 echo "$as_me: WARNING: mach/cthreads.h: in the future, the compiler will take precedence" >&2;}
14716 ( cat <<\_ASBOX
14717 ## ------------------------------------------------ ##
14718 ## Report this to http://www.python.org/python-bugs ##
14719 ## ------------------------------------------------ ##
14720 _ASBOX
14721 ) | sed "s/^/$as_me: WARNING: /" >&2
14723 esac
14724 { echo "$as_me:$LINENO: checking for mach/cthreads.h" >&5
14725 echo $ECHO_N "checking for mach/cthreads.h... $ECHO_C" >&6; }
14726 if test "${ac_cv_header_mach_cthreads_h+set}" = set; then
14727 echo $ECHO_N "(cached) $ECHO_C" >&6
14728 else
14729 ac_cv_header_mach_cthreads_h=$ac_header_preproc
14731 { echo "$as_me:$LINENO: result: $ac_cv_header_mach_cthreads_h" >&5
14732 echo "${ECHO_T}$ac_cv_header_mach_cthreads_h" >&6; }
14735 if test $ac_cv_header_mach_cthreads_h = yes; then
14736 cat >>confdefs.h <<\_ACEOF
14737 #define WITH_THREAD 1
14738 _ACEOF
14740 cat >>confdefs.h <<\_ACEOF
14741 #define C_THREADS 1
14742 _ACEOF
14745 cat >>confdefs.h <<\_ACEOF
14746 #define MACH_C_THREADS 1
14747 _ACEOF
14749 THREADOBJ="Python/thread.o"
14750 else
14752 { echo "$as_me:$LINENO: checking for --with-pth" >&5
14753 echo $ECHO_N "checking for --with-pth... $ECHO_C" >&6; }
14755 # Check whether --with-pth was given.
14756 if test "${with_pth+set}" = set; then
14757 withval=$with_pth; { echo "$as_me:$LINENO: result: $withval" >&5
14758 echo "${ECHO_T}$withval" >&6; }
14759 cat >>confdefs.h <<\_ACEOF
14760 #define WITH_THREAD 1
14761 _ACEOF
14764 cat >>confdefs.h <<\_ACEOF
14765 #define HAVE_PTH 1
14766 _ACEOF
14768 LIBS="-lpth $LIBS"
14769 THREADOBJ="Python/thread.o"
14770 else
14771 { echo "$as_me:$LINENO: result: no" >&5
14772 echo "${ECHO_T}no" >&6; }
14774 # Just looking for pthread_create in libpthread is not enough:
14775 # on HP/UX, pthread.h renames pthread_create to a different symbol name.
14776 # So we really have to include pthread.h, and then link.
14777 _libs=$LIBS
14778 LIBS="$LIBS -lpthread"
14779 { echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
14780 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6; }
14781 cat >conftest.$ac_ext <<_ACEOF
14782 /* confdefs.h. */
14783 _ACEOF
14784 cat confdefs.h >>conftest.$ac_ext
14785 cat >>conftest.$ac_ext <<_ACEOF
14786 /* end confdefs.h. */
14787 #include <pthread.h>
14789 void * start_routine (void *arg) { exit (0); }
14791 main ()
14794 pthread_create (NULL, NULL, start_routine, NULL)
14796 return 0;
14798 _ACEOF
14799 rm -f conftest.$ac_objext conftest$ac_exeext
14800 if { (ac_try="$ac_link"
14801 case "(($ac_try" in
14802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14803 *) ac_try_echo=$ac_try;;
14804 esac
14805 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14806 (eval "$ac_link") 2>conftest.er1
14807 ac_status=$?
14808 grep -v '^ *+' conftest.er1 >conftest.err
14809 rm -f conftest.er1
14810 cat conftest.err >&5
14811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14812 (exit $ac_status); } && {
14813 test -z "$ac_c_werror_flag" ||
14814 test ! -s conftest.err
14815 } && test -s conftest$ac_exeext &&
14816 $as_test_x conftest$ac_exeext; then
14818 { echo "$as_me:$LINENO: result: yes" >&5
14819 echo "${ECHO_T}yes" >&6; }
14820 cat >>confdefs.h <<\_ACEOF
14821 #define WITH_THREAD 1
14822 _ACEOF
14824 posix_threads=yes
14825 THREADOBJ="Python/thread.o"
14826 else
14827 echo "$as_me: failed program was:" >&5
14828 sed 's/^/| /' conftest.$ac_ext >&5
14831 LIBS=$_libs
14832 { echo "$as_me:$LINENO: checking for pthread_detach" >&5
14833 echo $ECHO_N "checking for pthread_detach... $ECHO_C" >&6; }
14834 if test "${ac_cv_func_pthread_detach+set}" = set; then
14835 echo $ECHO_N "(cached) $ECHO_C" >&6
14836 else
14837 cat >conftest.$ac_ext <<_ACEOF
14838 /* confdefs.h. */
14839 _ACEOF
14840 cat confdefs.h >>conftest.$ac_ext
14841 cat >>conftest.$ac_ext <<_ACEOF
14842 /* end confdefs.h. */
14843 /* Define pthread_detach to an innocuous variant, in case <limits.h> declares pthread_detach.
14844 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14845 #define pthread_detach innocuous_pthread_detach
14847 /* System header to define __stub macros and hopefully few prototypes,
14848 which can conflict with char pthread_detach (); below.
14849 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14850 <limits.h> exists even on freestanding compilers. */
14852 #ifdef __STDC__
14853 # include <limits.h>
14854 #else
14855 # include <assert.h>
14856 #endif
14858 #undef pthread_detach
14860 /* Override any GCC internal prototype to avoid an error.
14861 Use char because int might match the return type of a GCC
14862 builtin and then its argument prototype would still apply. */
14863 #ifdef __cplusplus
14864 extern "C"
14865 #endif
14866 char pthread_detach ();
14867 /* The GNU C library defines this for functions which it implements
14868 to always fail with ENOSYS. Some functions are actually named
14869 something starting with __ and the normal name is an alias. */
14870 #if defined __stub_pthread_detach || defined __stub___pthread_detach
14871 choke me
14872 #endif
14875 main ()
14877 return pthread_detach ();
14879 return 0;
14881 _ACEOF
14882 rm -f conftest.$ac_objext conftest$ac_exeext
14883 if { (ac_try="$ac_link"
14884 case "(($ac_try" in
14885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14886 *) ac_try_echo=$ac_try;;
14887 esac
14888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14889 (eval "$ac_link") 2>conftest.er1
14890 ac_status=$?
14891 grep -v '^ *+' conftest.er1 >conftest.err
14892 rm -f conftest.er1
14893 cat conftest.err >&5
14894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14895 (exit $ac_status); } && {
14896 test -z "$ac_c_werror_flag" ||
14897 test ! -s conftest.err
14898 } && test -s conftest$ac_exeext &&
14899 $as_test_x conftest$ac_exeext; then
14900 ac_cv_func_pthread_detach=yes
14901 else
14902 echo "$as_me: failed program was:" >&5
14903 sed 's/^/| /' conftest.$ac_ext >&5
14905 ac_cv_func_pthread_detach=no
14908 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14909 conftest$ac_exeext conftest.$ac_ext
14911 { echo "$as_me:$LINENO: result: $ac_cv_func_pthread_detach" >&5
14912 echo "${ECHO_T}$ac_cv_func_pthread_detach" >&6; }
14913 if test $ac_cv_func_pthread_detach = yes; then
14914 cat >>confdefs.h <<\_ACEOF
14915 #define WITH_THREAD 1
14916 _ACEOF
14918 posix_threads=yes
14919 THREADOBJ="Python/thread.o"
14920 else
14922 if test "${ac_cv_header_atheos_threads_h+set}" = set; then
14923 { echo "$as_me:$LINENO: checking for atheos/threads.h" >&5
14924 echo $ECHO_N "checking for atheos/threads.h... $ECHO_C" >&6; }
14925 if test "${ac_cv_header_atheos_threads_h+set}" = set; then
14926 echo $ECHO_N "(cached) $ECHO_C" >&6
14928 { echo "$as_me:$LINENO: result: $ac_cv_header_atheos_threads_h" >&5
14929 echo "${ECHO_T}$ac_cv_header_atheos_threads_h" >&6; }
14930 else
14931 # Is the header compilable?
14932 { echo "$as_me:$LINENO: checking atheos/threads.h usability" >&5
14933 echo $ECHO_N "checking atheos/threads.h usability... $ECHO_C" >&6; }
14934 cat >conftest.$ac_ext <<_ACEOF
14935 /* confdefs.h. */
14936 _ACEOF
14937 cat confdefs.h >>conftest.$ac_ext
14938 cat >>conftest.$ac_ext <<_ACEOF
14939 /* end confdefs.h. */
14940 $ac_includes_default
14941 #include <atheos/threads.h>
14942 _ACEOF
14943 rm -f conftest.$ac_objext
14944 if { (ac_try="$ac_compile"
14945 case "(($ac_try" in
14946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14947 *) ac_try_echo=$ac_try;;
14948 esac
14949 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14950 (eval "$ac_compile") 2>conftest.er1
14951 ac_status=$?
14952 grep -v '^ *+' conftest.er1 >conftest.err
14953 rm -f conftest.er1
14954 cat conftest.err >&5
14955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14956 (exit $ac_status); } && {
14957 test -z "$ac_c_werror_flag" ||
14958 test ! -s conftest.err
14959 } && test -s conftest.$ac_objext; then
14960 ac_header_compiler=yes
14961 else
14962 echo "$as_me: failed program was:" >&5
14963 sed 's/^/| /' conftest.$ac_ext >&5
14965 ac_header_compiler=no
14968 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14969 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14970 echo "${ECHO_T}$ac_header_compiler" >&6; }
14972 # Is the header present?
14973 { echo "$as_me:$LINENO: checking atheos/threads.h presence" >&5
14974 echo $ECHO_N "checking atheos/threads.h presence... $ECHO_C" >&6; }
14975 cat >conftest.$ac_ext <<_ACEOF
14976 /* confdefs.h. */
14977 _ACEOF
14978 cat confdefs.h >>conftest.$ac_ext
14979 cat >>conftest.$ac_ext <<_ACEOF
14980 /* end confdefs.h. */
14981 #include <atheos/threads.h>
14982 _ACEOF
14983 if { (ac_try="$ac_cpp conftest.$ac_ext"
14984 case "(($ac_try" in
14985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14986 *) ac_try_echo=$ac_try;;
14987 esac
14988 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14989 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14990 ac_status=$?
14991 grep -v '^ *+' conftest.er1 >conftest.err
14992 rm -f conftest.er1
14993 cat conftest.err >&5
14994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14995 (exit $ac_status); } >/dev/null && {
14996 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14997 test ! -s conftest.err
14998 }; then
14999 ac_header_preproc=yes
15000 else
15001 echo "$as_me: failed program was:" >&5
15002 sed 's/^/| /' conftest.$ac_ext >&5
15004 ac_header_preproc=no
15007 rm -f conftest.err conftest.$ac_ext
15008 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15009 echo "${ECHO_T}$ac_header_preproc" >&6; }
15011 # So? What about this header?
15012 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15013 yes:no: )
15014 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: accepted by the compiler, rejected by the preprocessor!" >&5
15015 echo "$as_me: WARNING: atheos/threads.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15016 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: proceeding with the compiler's result" >&5
15017 echo "$as_me: WARNING: atheos/threads.h: proceeding with the compiler's result" >&2;}
15018 ac_header_preproc=yes
15020 no:yes:* )
15021 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: present but cannot be compiled" >&5
15022 echo "$as_me: WARNING: atheos/threads.h: present but cannot be compiled" >&2;}
15023 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: check for missing prerequisite headers?" >&5
15024 echo "$as_me: WARNING: atheos/threads.h: check for missing prerequisite headers?" >&2;}
15025 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: see the Autoconf documentation" >&5
15026 echo "$as_me: WARNING: atheos/threads.h: see the Autoconf documentation" >&2;}
15027 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: section \"Present But Cannot Be Compiled\"" >&5
15028 echo "$as_me: WARNING: atheos/threads.h: section \"Present But Cannot Be Compiled\"" >&2;}
15029 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: proceeding with the preprocessor's result" >&5
15030 echo "$as_me: WARNING: atheos/threads.h: proceeding with the preprocessor's result" >&2;}
15031 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: in the future, the compiler will take precedence" >&5
15032 echo "$as_me: WARNING: atheos/threads.h: in the future, the compiler will take precedence" >&2;}
15033 ( cat <<\_ASBOX
15034 ## ------------------------------------------------ ##
15035 ## Report this to http://www.python.org/python-bugs ##
15036 ## ------------------------------------------------ ##
15037 _ASBOX
15038 ) | sed "s/^/$as_me: WARNING: /" >&2
15040 esac
15041 { echo "$as_me:$LINENO: checking for atheos/threads.h" >&5
15042 echo $ECHO_N "checking for atheos/threads.h... $ECHO_C" >&6; }
15043 if test "${ac_cv_header_atheos_threads_h+set}" = set; then
15044 echo $ECHO_N "(cached) $ECHO_C" >&6
15045 else
15046 ac_cv_header_atheos_threads_h=$ac_header_preproc
15048 { echo "$as_me:$LINENO: result: $ac_cv_header_atheos_threads_h" >&5
15049 echo "${ECHO_T}$ac_cv_header_atheos_threads_h" >&6; }
15052 if test $ac_cv_header_atheos_threads_h = yes; then
15053 cat >>confdefs.h <<\_ACEOF
15054 #define WITH_THREAD 1
15055 _ACEOF
15058 cat >>confdefs.h <<\_ACEOF
15059 #define ATHEOS_THREADS 1
15060 _ACEOF
15062 THREADOBJ="Python/thread.o"
15063 else
15065 if test "${ac_cv_header_kernel_OS_h+set}" = set; then
15066 { echo "$as_me:$LINENO: checking for kernel/OS.h" >&5
15067 echo $ECHO_N "checking for kernel/OS.h... $ECHO_C" >&6; }
15068 if test "${ac_cv_header_kernel_OS_h+set}" = set; then
15069 echo $ECHO_N "(cached) $ECHO_C" >&6
15071 { echo "$as_me:$LINENO: result: $ac_cv_header_kernel_OS_h" >&5
15072 echo "${ECHO_T}$ac_cv_header_kernel_OS_h" >&6; }
15073 else
15074 # Is the header compilable?
15075 { echo "$as_me:$LINENO: checking kernel/OS.h usability" >&5
15076 echo $ECHO_N "checking kernel/OS.h usability... $ECHO_C" >&6; }
15077 cat >conftest.$ac_ext <<_ACEOF
15078 /* confdefs.h. */
15079 _ACEOF
15080 cat confdefs.h >>conftest.$ac_ext
15081 cat >>conftest.$ac_ext <<_ACEOF
15082 /* end confdefs.h. */
15083 $ac_includes_default
15084 #include <kernel/OS.h>
15085 _ACEOF
15086 rm -f conftest.$ac_objext
15087 if { (ac_try="$ac_compile"
15088 case "(($ac_try" in
15089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15090 *) ac_try_echo=$ac_try;;
15091 esac
15092 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15093 (eval "$ac_compile") 2>conftest.er1
15094 ac_status=$?
15095 grep -v '^ *+' conftest.er1 >conftest.err
15096 rm -f conftest.er1
15097 cat conftest.err >&5
15098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15099 (exit $ac_status); } && {
15100 test -z "$ac_c_werror_flag" ||
15101 test ! -s conftest.err
15102 } && test -s conftest.$ac_objext; then
15103 ac_header_compiler=yes
15104 else
15105 echo "$as_me: failed program was:" >&5
15106 sed 's/^/| /' conftest.$ac_ext >&5
15108 ac_header_compiler=no
15111 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15112 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15113 echo "${ECHO_T}$ac_header_compiler" >&6; }
15115 # Is the header present?
15116 { echo "$as_me:$LINENO: checking kernel/OS.h presence" >&5
15117 echo $ECHO_N "checking kernel/OS.h presence... $ECHO_C" >&6; }
15118 cat >conftest.$ac_ext <<_ACEOF
15119 /* confdefs.h. */
15120 _ACEOF
15121 cat confdefs.h >>conftest.$ac_ext
15122 cat >>conftest.$ac_ext <<_ACEOF
15123 /* end confdefs.h. */
15124 #include <kernel/OS.h>
15125 _ACEOF
15126 if { (ac_try="$ac_cpp conftest.$ac_ext"
15127 case "(($ac_try" in
15128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15129 *) ac_try_echo=$ac_try;;
15130 esac
15131 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15132 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15133 ac_status=$?
15134 grep -v '^ *+' conftest.er1 >conftest.err
15135 rm -f conftest.er1
15136 cat conftest.err >&5
15137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15138 (exit $ac_status); } >/dev/null && {
15139 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15140 test ! -s conftest.err
15141 }; then
15142 ac_header_preproc=yes
15143 else
15144 echo "$as_me: failed program was:" >&5
15145 sed 's/^/| /' conftest.$ac_ext >&5
15147 ac_header_preproc=no
15150 rm -f conftest.err conftest.$ac_ext
15151 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15152 echo "${ECHO_T}$ac_header_preproc" >&6; }
15154 # So? What about this header?
15155 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15156 yes:no: )
15157 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: accepted by the compiler, rejected by the preprocessor!" >&5
15158 echo "$as_me: WARNING: kernel/OS.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15159 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: proceeding with the compiler's result" >&5
15160 echo "$as_me: WARNING: kernel/OS.h: proceeding with the compiler's result" >&2;}
15161 ac_header_preproc=yes
15163 no:yes:* )
15164 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: present but cannot be compiled" >&5
15165 echo "$as_me: WARNING: kernel/OS.h: present but cannot be compiled" >&2;}
15166 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: check for missing prerequisite headers?" >&5
15167 echo "$as_me: WARNING: kernel/OS.h: check for missing prerequisite headers?" >&2;}
15168 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: see the Autoconf documentation" >&5
15169 echo "$as_me: WARNING: kernel/OS.h: see the Autoconf documentation" >&2;}
15170 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: section \"Present But Cannot Be Compiled\"" >&5
15171 echo "$as_me: WARNING: kernel/OS.h: section \"Present But Cannot Be Compiled\"" >&2;}
15172 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: proceeding with the preprocessor's result" >&5
15173 echo "$as_me: WARNING: kernel/OS.h: proceeding with the preprocessor's result" >&2;}
15174 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: in the future, the compiler will take precedence" >&5
15175 echo "$as_me: WARNING: kernel/OS.h: in the future, the compiler will take precedence" >&2;}
15176 ( cat <<\_ASBOX
15177 ## ------------------------------------------------ ##
15178 ## Report this to http://www.python.org/python-bugs ##
15179 ## ------------------------------------------------ ##
15180 _ASBOX
15181 ) | sed "s/^/$as_me: WARNING: /" >&2
15183 esac
15184 { echo "$as_me:$LINENO: checking for kernel/OS.h" >&5
15185 echo $ECHO_N "checking for kernel/OS.h... $ECHO_C" >&6; }
15186 if test "${ac_cv_header_kernel_OS_h+set}" = set; then
15187 echo $ECHO_N "(cached) $ECHO_C" >&6
15188 else
15189 ac_cv_header_kernel_OS_h=$ac_header_preproc
15191 { echo "$as_me:$LINENO: result: $ac_cv_header_kernel_OS_h" >&5
15192 echo "${ECHO_T}$ac_cv_header_kernel_OS_h" >&6; }
15195 if test $ac_cv_header_kernel_OS_h = yes; then
15196 cat >>confdefs.h <<\_ACEOF
15197 #define WITH_THREAD 1
15198 _ACEOF
15201 cat >>confdefs.h <<\_ACEOF
15202 #define BEOS_THREADS 1
15203 _ACEOF
15205 THREADOBJ="Python/thread.o"
15206 else
15208 { echo "$as_me:$LINENO: checking for pthread_create in -lpthreads" >&5
15209 echo $ECHO_N "checking for pthread_create in -lpthreads... $ECHO_C" >&6; }
15210 if test "${ac_cv_lib_pthreads_pthread_create+set}" = set; then
15211 echo $ECHO_N "(cached) $ECHO_C" >&6
15212 else
15213 ac_check_lib_save_LIBS=$LIBS
15214 LIBS="-lpthreads $LIBS"
15215 cat >conftest.$ac_ext <<_ACEOF
15216 /* confdefs.h. */
15217 _ACEOF
15218 cat confdefs.h >>conftest.$ac_ext
15219 cat >>conftest.$ac_ext <<_ACEOF
15220 /* end confdefs.h. */
15222 /* Override any GCC internal prototype to avoid an error.
15223 Use char because int might match the return type of a GCC
15224 builtin and then its argument prototype would still apply. */
15225 #ifdef __cplusplus
15226 extern "C"
15227 #endif
15228 char pthread_create ();
15230 main ()
15232 return pthread_create ();
15234 return 0;
15236 _ACEOF
15237 rm -f conftest.$ac_objext conftest$ac_exeext
15238 if { (ac_try="$ac_link"
15239 case "(($ac_try" in
15240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15241 *) ac_try_echo=$ac_try;;
15242 esac
15243 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15244 (eval "$ac_link") 2>conftest.er1
15245 ac_status=$?
15246 grep -v '^ *+' conftest.er1 >conftest.err
15247 rm -f conftest.er1
15248 cat conftest.err >&5
15249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15250 (exit $ac_status); } && {
15251 test -z "$ac_c_werror_flag" ||
15252 test ! -s conftest.err
15253 } && test -s conftest$ac_exeext &&
15254 $as_test_x conftest$ac_exeext; then
15255 ac_cv_lib_pthreads_pthread_create=yes
15256 else
15257 echo "$as_me: failed program was:" >&5
15258 sed 's/^/| /' conftest.$ac_ext >&5
15260 ac_cv_lib_pthreads_pthread_create=no
15263 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15264 conftest$ac_exeext conftest.$ac_ext
15265 LIBS=$ac_check_lib_save_LIBS
15267 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_create" >&5
15268 echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_create" >&6; }
15269 if test $ac_cv_lib_pthreads_pthread_create = yes; then
15270 cat >>confdefs.h <<\_ACEOF
15271 #define WITH_THREAD 1
15272 _ACEOF
15274 posix_threads=yes
15275 LIBS="$LIBS -lpthreads"
15276 THREADOBJ="Python/thread.o"
15277 else
15279 { echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
15280 echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6; }
15281 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then
15282 echo $ECHO_N "(cached) $ECHO_C" >&6
15283 else
15284 ac_check_lib_save_LIBS=$LIBS
15285 LIBS="-lc_r $LIBS"
15286 cat >conftest.$ac_ext <<_ACEOF
15287 /* confdefs.h. */
15288 _ACEOF
15289 cat confdefs.h >>conftest.$ac_ext
15290 cat >>conftest.$ac_ext <<_ACEOF
15291 /* end confdefs.h. */
15293 /* Override any GCC internal prototype to avoid an error.
15294 Use char because int might match the return type of a GCC
15295 builtin and then its argument prototype would still apply. */
15296 #ifdef __cplusplus
15297 extern "C"
15298 #endif
15299 char pthread_create ();
15301 main ()
15303 return pthread_create ();
15305 return 0;
15307 _ACEOF
15308 rm -f conftest.$ac_objext conftest$ac_exeext
15309 if { (ac_try="$ac_link"
15310 case "(($ac_try" in
15311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15312 *) ac_try_echo=$ac_try;;
15313 esac
15314 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15315 (eval "$ac_link") 2>conftest.er1
15316 ac_status=$?
15317 grep -v '^ *+' conftest.er1 >conftest.err
15318 rm -f conftest.er1
15319 cat conftest.err >&5
15320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15321 (exit $ac_status); } && {
15322 test -z "$ac_c_werror_flag" ||
15323 test ! -s conftest.err
15324 } && test -s conftest$ac_exeext &&
15325 $as_test_x conftest$ac_exeext; then
15326 ac_cv_lib_c_r_pthread_create=yes
15327 else
15328 echo "$as_me: failed program was:" >&5
15329 sed 's/^/| /' conftest.$ac_ext >&5
15331 ac_cv_lib_c_r_pthread_create=no
15334 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15335 conftest$ac_exeext conftest.$ac_ext
15336 LIBS=$ac_check_lib_save_LIBS
15338 { echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5
15339 echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6; }
15340 if test $ac_cv_lib_c_r_pthread_create = yes; then
15341 cat >>confdefs.h <<\_ACEOF
15342 #define WITH_THREAD 1
15343 _ACEOF
15345 posix_threads=yes
15346 LIBS="$LIBS -lc_r"
15347 THREADOBJ="Python/thread.o"
15348 else
15350 { echo "$as_me:$LINENO: checking for __pthread_create_system in -lpthread" >&5
15351 echo $ECHO_N "checking for __pthread_create_system in -lpthread... $ECHO_C" >&6; }
15352 if test "${ac_cv_lib_pthread___pthread_create_system+set}" = set; then
15353 echo $ECHO_N "(cached) $ECHO_C" >&6
15354 else
15355 ac_check_lib_save_LIBS=$LIBS
15356 LIBS="-lpthread $LIBS"
15357 cat >conftest.$ac_ext <<_ACEOF
15358 /* confdefs.h. */
15359 _ACEOF
15360 cat confdefs.h >>conftest.$ac_ext
15361 cat >>conftest.$ac_ext <<_ACEOF
15362 /* end confdefs.h. */
15364 /* Override any GCC internal prototype to avoid an error.
15365 Use char because int might match the return type of a GCC
15366 builtin and then its argument prototype would still apply. */
15367 #ifdef __cplusplus
15368 extern "C"
15369 #endif
15370 char __pthread_create_system ();
15372 main ()
15374 return __pthread_create_system ();
15376 return 0;
15378 _ACEOF
15379 rm -f conftest.$ac_objext conftest$ac_exeext
15380 if { (ac_try="$ac_link"
15381 case "(($ac_try" in
15382 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15383 *) ac_try_echo=$ac_try;;
15384 esac
15385 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15386 (eval "$ac_link") 2>conftest.er1
15387 ac_status=$?
15388 grep -v '^ *+' conftest.er1 >conftest.err
15389 rm -f conftest.er1
15390 cat conftest.err >&5
15391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15392 (exit $ac_status); } && {
15393 test -z "$ac_c_werror_flag" ||
15394 test ! -s conftest.err
15395 } && test -s conftest$ac_exeext &&
15396 $as_test_x conftest$ac_exeext; then
15397 ac_cv_lib_pthread___pthread_create_system=yes
15398 else
15399 echo "$as_me: failed program was:" >&5
15400 sed 's/^/| /' conftest.$ac_ext >&5
15402 ac_cv_lib_pthread___pthread_create_system=no
15405 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15406 conftest$ac_exeext conftest.$ac_ext
15407 LIBS=$ac_check_lib_save_LIBS
15409 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread___pthread_create_system" >&5
15410 echo "${ECHO_T}$ac_cv_lib_pthread___pthread_create_system" >&6; }
15411 if test $ac_cv_lib_pthread___pthread_create_system = yes; then
15412 cat >>confdefs.h <<\_ACEOF
15413 #define WITH_THREAD 1
15414 _ACEOF
15416 posix_threads=yes
15417 LIBS="$LIBS -lpthread"
15418 THREADOBJ="Python/thread.o"
15419 else
15421 { echo "$as_me:$LINENO: checking for pthread_create in -lcma" >&5
15422 echo $ECHO_N "checking for pthread_create in -lcma... $ECHO_C" >&6; }
15423 if test "${ac_cv_lib_cma_pthread_create+set}" = set; then
15424 echo $ECHO_N "(cached) $ECHO_C" >&6
15425 else
15426 ac_check_lib_save_LIBS=$LIBS
15427 LIBS="-lcma $LIBS"
15428 cat >conftest.$ac_ext <<_ACEOF
15429 /* confdefs.h. */
15430 _ACEOF
15431 cat confdefs.h >>conftest.$ac_ext
15432 cat >>conftest.$ac_ext <<_ACEOF
15433 /* end confdefs.h. */
15435 /* Override any GCC internal prototype to avoid an error.
15436 Use char because int might match the return type of a GCC
15437 builtin and then its argument prototype would still apply. */
15438 #ifdef __cplusplus
15439 extern "C"
15440 #endif
15441 char pthread_create ();
15443 main ()
15445 return pthread_create ();
15447 return 0;
15449 _ACEOF
15450 rm -f conftest.$ac_objext conftest$ac_exeext
15451 if { (ac_try="$ac_link"
15452 case "(($ac_try" in
15453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15454 *) ac_try_echo=$ac_try;;
15455 esac
15456 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15457 (eval "$ac_link") 2>conftest.er1
15458 ac_status=$?
15459 grep -v '^ *+' conftest.er1 >conftest.err
15460 rm -f conftest.er1
15461 cat conftest.err >&5
15462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15463 (exit $ac_status); } && {
15464 test -z "$ac_c_werror_flag" ||
15465 test ! -s conftest.err
15466 } && test -s conftest$ac_exeext &&
15467 $as_test_x conftest$ac_exeext; then
15468 ac_cv_lib_cma_pthread_create=yes
15469 else
15470 echo "$as_me: failed program was:" >&5
15471 sed 's/^/| /' conftest.$ac_ext >&5
15473 ac_cv_lib_cma_pthread_create=no
15476 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15477 conftest$ac_exeext conftest.$ac_ext
15478 LIBS=$ac_check_lib_save_LIBS
15480 { echo "$as_me:$LINENO: result: $ac_cv_lib_cma_pthread_create" >&5
15481 echo "${ECHO_T}$ac_cv_lib_cma_pthread_create" >&6; }
15482 if test $ac_cv_lib_cma_pthread_create = yes; then
15483 cat >>confdefs.h <<\_ACEOF
15484 #define WITH_THREAD 1
15485 _ACEOF
15487 posix_threads=yes
15488 LIBS="$LIBS -lcma"
15489 THREADOBJ="Python/thread.o"
15490 else
15492 USE_THREAD_MODULE="#"
15512 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15513 conftest$ac_exeext conftest.$ac_ext
15523 { echo "$as_me:$LINENO: checking for usconfig in -lmpc" >&5
15524 echo $ECHO_N "checking for usconfig in -lmpc... $ECHO_C" >&6; }
15525 if test "${ac_cv_lib_mpc_usconfig+set}" = set; then
15526 echo $ECHO_N "(cached) $ECHO_C" >&6
15527 else
15528 ac_check_lib_save_LIBS=$LIBS
15529 LIBS="-lmpc $LIBS"
15530 cat >conftest.$ac_ext <<_ACEOF
15531 /* confdefs.h. */
15532 _ACEOF
15533 cat confdefs.h >>conftest.$ac_ext
15534 cat >>conftest.$ac_ext <<_ACEOF
15535 /* end confdefs.h. */
15537 /* Override any GCC internal prototype to avoid an error.
15538 Use char because int might match the return type of a GCC
15539 builtin and then its argument prototype would still apply. */
15540 #ifdef __cplusplus
15541 extern "C"
15542 #endif
15543 char usconfig ();
15545 main ()
15547 return usconfig ();
15549 return 0;
15551 _ACEOF
15552 rm -f conftest.$ac_objext conftest$ac_exeext
15553 if { (ac_try="$ac_link"
15554 case "(($ac_try" in
15555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15556 *) ac_try_echo=$ac_try;;
15557 esac
15558 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15559 (eval "$ac_link") 2>conftest.er1
15560 ac_status=$?
15561 grep -v '^ *+' conftest.er1 >conftest.err
15562 rm -f conftest.er1
15563 cat conftest.err >&5
15564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15565 (exit $ac_status); } && {
15566 test -z "$ac_c_werror_flag" ||
15567 test ! -s conftest.err
15568 } && test -s conftest$ac_exeext &&
15569 $as_test_x conftest$ac_exeext; then
15570 ac_cv_lib_mpc_usconfig=yes
15571 else
15572 echo "$as_me: failed program was:" >&5
15573 sed 's/^/| /' conftest.$ac_ext >&5
15575 ac_cv_lib_mpc_usconfig=no
15578 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15579 conftest$ac_exeext conftest.$ac_ext
15580 LIBS=$ac_check_lib_save_LIBS
15582 { echo "$as_me:$LINENO: result: $ac_cv_lib_mpc_usconfig" >&5
15583 echo "${ECHO_T}$ac_cv_lib_mpc_usconfig" >&6; }
15584 if test $ac_cv_lib_mpc_usconfig = yes; then
15585 cat >>confdefs.h <<\_ACEOF
15586 #define WITH_THREAD 1
15587 _ACEOF
15589 LIBS="$LIBS -lmpc"
15590 THREADOBJ="Python/thread.o"
15591 USE_THREAD_MODULE=""
15595 if test "$posix_threads" != "yes"; then
15596 { echo "$as_me:$LINENO: checking for thr_create in -lthread" >&5
15597 echo $ECHO_N "checking for thr_create in -lthread... $ECHO_C" >&6; }
15598 if test "${ac_cv_lib_thread_thr_create+set}" = set; then
15599 echo $ECHO_N "(cached) $ECHO_C" >&6
15600 else
15601 ac_check_lib_save_LIBS=$LIBS
15602 LIBS="-lthread $LIBS"
15603 cat >conftest.$ac_ext <<_ACEOF
15604 /* confdefs.h. */
15605 _ACEOF
15606 cat confdefs.h >>conftest.$ac_ext
15607 cat >>conftest.$ac_ext <<_ACEOF
15608 /* end confdefs.h. */
15610 /* Override any GCC internal prototype to avoid an error.
15611 Use char because int might match the return type of a GCC
15612 builtin and then its argument prototype would still apply. */
15613 #ifdef __cplusplus
15614 extern "C"
15615 #endif
15616 char thr_create ();
15618 main ()
15620 return thr_create ();
15622 return 0;
15624 _ACEOF
15625 rm -f conftest.$ac_objext conftest$ac_exeext
15626 if { (ac_try="$ac_link"
15627 case "(($ac_try" in
15628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15629 *) ac_try_echo=$ac_try;;
15630 esac
15631 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15632 (eval "$ac_link") 2>conftest.er1
15633 ac_status=$?
15634 grep -v '^ *+' conftest.er1 >conftest.err
15635 rm -f conftest.er1
15636 cat conftest.err >&5
15637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15638 (exit $ac_status); } && {
15639 test -z "$ac_c_werror_flag" ||
15640 test ! -s conftest.err
15641 } && test -s conftest$ac_exeext &&
15642 $as_test_x conftest$ac_exeext; then
15643 ac_cv_lib_thread_thr_create=yes
15644 else
15645 echo "$as_me: failed program was:" >&5
15646 sed 's/^/| /' conftest.$ac_ext >&5
15648 ac_cv_lib_thread_thr_create=no
15651 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15652 conftest$ac_exeext conftest.$ac_ext
15653 LIBS=$ac_check_lib_save_LIBS
15655 { echo "$as_me:$LINENO: result: $ac_cv_lib_thread_thr_create" >&5
15656 echo "${ECHO_T}$ac_cv_lib_thread_thr_create" >&6; }
15657 if test $ac_cv_lib_thread_thr_create = yes; then
15658 cat >>confdefs.h <<\_ACEOF
15659 #define WITH_THREAD 1
15660 _ACEOF
15662 LIBS="$LIBS -lthread"
15663 THREADOBJ="Python/thread.o"
15664 USE_THREAD_MODULE=""
15669 if test "$USE_THREAD_MODULE" != "#"
15670 then
15671 # If the above checks didn't disable threads, (at least) OSF1
15672 # needs this '-threads' argument during linking.
15673 case $ac_sys_system in
15674 OSF1) LDLAST=-threads;;
15675 esac
15679 if test "$posix_threads" = "yes"; then
15680 if test "$unistd_defines_pthreads" = "no"; then
15682 cat >>confdefs.h <<\_ACEOF
15683 #define _POSIX_THREADS 1
15684 _ACEOF
15688 # Bug 662787: Using semaphores causes unexplicable hangs on Solaris 8.
15689 case $ac_sys_system/$ac_sys_release in
15690 SunOS/5.6)
15691 cat >>confdefs.h <<\_ACEOF
15692 #define HAVE_PTHREAD_DESTRUCTOR 1
15693 _ACEOF
15696 SunOS/5.8)
15697 cat >>confdefs.h <<\_ACEOF
15698 #define HAVE_BROKEN_POSIX_SEMAPHORES 1
15699 _ACEOF
15702 AIX/5)
15703 cat >>confdefs.h <<\_ACEOF
15704 #define HAVE_BROKEN_POSIX_SEMAPHORES 1
15705 _ACEOF
15708 esac
15710 { echo "$as_me:$LINENO: checking if PTHREAD_SCOPE_SYSTEM is supported" >&5
15711 echo $ECHO_N "checking if PTHREAD_SCOPE_SYSTEM is supported... $ECHO_C" >&6; }
15712 if test "${ac_cv_pthread_system_supported+set}" = set; then
15713 echo $ECHO_N "(cached) $ECHO_C" >&6
15714 else
15715 if test "$cross_compiling" = yes; then
15716 ac_cv_pthread_system_supported=no
15717 else
15718 cat >conftest.$ac_ext <<_ACEOF
15719 /* confdefs.h. */
15720 _ACEOF
15721 cat confdefs.h >>conftest.$ac_ext
15722 cat >>conftest.$ac_ext <<_ACEOF
15723 /* end confdefs.h. */
15724 #include <pthread.h>
15725 void *foo(void *parm) {
15726 return NULL;
15728 main() {
15729 pthread_attr_t attr;
15730 pthread_t id;
15731 if (pthread_attr_init(&attr)) exit(-1);
15732 if (pthread_attr_setscope(&attr, PTHREAD_SCOPE_SYSTEM)) exit(-1);
15733 if (pthread_create(&id, &attr, foo, NULL)) exit(-1);
15734 exit(0);
15736 _ACEOF
15737 rm -f conftest$ac_exeext
15738 if { (ac_try="$ac_link"
15739 case "(($ac_try" in
15740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15741 *) ac_try_echo=$ac_try;;
15742 esac
15743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15744 (eval "$ac_link") 2>&5
15745 ac_status=$?
15746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15747 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15748 { (case "(($ac_try" in
15749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15750 *) ac_try_echo=$ac_try;;
15751 esac
15752 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15753 (eval "$ac_try") 2>&5
15754 ac_status=$?
15755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15756 (exit $ac_status); }; }; then
15757 ac_cv_pthread_system_supported=yes
15758 else
15759 echo "$as_me: program exited with status $ac_status" >&5
15760 echo "$as_me: failed program was:" >&5
15761 sed 's/^/| /' conftest.$ac_ext >&5
15763 ( exit $ac_status )
15764 ac_cv_pthread_system_supported=no
15766 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15773 { echo "$as_me:$LINENO: result: $ac_cv_pthread_system_supported" >&5
15774 echo "${ECHO_T}$ac_cv_pthread_system_supported" >&6; }
15775 if test "$ac_cv_pthread_system_supported" = "yes"; then
15777 cat >>confdefs.h <<\_ACEOF
15778 #define PTHREAD_SYSTEM_SCHED_SUPPORTED 1
15779 _ACEOF
15783 for ac_func in pthread_sigmask
15785 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15786 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15787 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15788 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15789 echo $ECHO_N "(cached) $ECHO_C" >&6
15790 else
15791 cat >conftest.$ac_ext <<_ACEOF
15792 /* confdefs.h. */
15793 _ACEOF
15794 cat confdefs.h >>conftest.$ac_ext
15795 cat >>conftest.$ac_ext <<_ACEOF
15796 /* end confdefs.h. */
15797 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15798 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15799 #define $ac_func innocuous_$ac_func
15801 /* System header to define __stub macros and hopefully few prototypes,
15802 which can conflict with char $ac_func (); below.
15803 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15804 <limits.h> exists even on freestanding compilers. */
15806 #ifdef __STDC__
15807 # include <limits.h>
15808 #else
15809 # include <assert.h>
15810 #endif
15812 #undef $ac_func
15814 /* Override any GCC internal prototype to avoid an error.
15815 Use char because int might match the return type of a GCC
15816 builtin and then its argument prototype would still apply. */
15817 #ifdef __cplusplus
15818 extern "C"
15819 #endif
15820 char $ac_func ();
15821 /* The GNU C library defines this for functions which it implements
15822 to always fail with ENOSYS. Some functions are actually named
15823 something starting with __ and the normal name is an alias. */
15824 #if defined __stub_$ac_func || defined __stub___$ac_func
15825 choke me
15826 #endif
15829 main ()
15831 return $ac_func ();
15833 return 0;
15835 _ACEOF
15836 rm -f conftest.$ac_objext conftest$ac_exeext
15837 if { (ac_try="$ac_link"
15838 case "(($ac_try" in
15839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15840 *) ac_try_echo=$ac_try;;
15841 esac
15842 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15843 (eval "$ac_link") 2>conftest.er1
15844 ac_status=$?
15845 grep -v '^ *+' conftest.er1 >conftest.err
15846 rm -f conftest.er1
15847 cat conftest.err >&5
15848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15849 (exit $ac_status); } && {
15850 test -z "$ac_c_werror_flag" ||
15851 test ! -s conftest.err
15852 } && test -s conftest$ac_exeext &&
15853 $as_test_x conftest$ac_exeext; then
15854 eval "$as_ac_var=yes"
15855 else
15856 echo "$as_me: failed program was:" >&5
15857 sed 's/^/| /' conftest.$ac_ext >&5
15859 eval "$as_ac_var=no"
15862 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15863 conftest$ac_exeext conftest.$ac_ext
15865 ac_res=`eval echo '${'$as_ac_var'}'`
15866 { echo "$as_me:$LINENO: result: $ac_res" >&5
15867 echo "${ECHO_T}$ac_res" >&6; }
15868 if test `eval echo '${'$as_ac_var'}'` = yes; then
15869 cat >>confdefs.h <<_ACEOF
15870 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15871 _ACEOF
15872 case $ac_sys_system in
15873 CYGWIN*)
15875 cat >>confdefs.h <<\_ACEOF
15876 #define HAVE_BROKEN_PTHREAD_SIGMASK 1
15877 _ACEOF
15880 esac
15882 done
15887 # Check for enable-ipv6
15890 { echo "$as_me:$LINENO: checking if --enable-ipv6 is specified" >&5
15891 echo $ECHO_N "checking if --enable-ipv6 is specified... $ECHO_C" >&6; }
15892 # Check whether --enable-ipv6 was given.
15893 if test "${enable_ipv6+set}" = set; then
15894 enableval=$enable_ipv6; case "$enableval" in
15896 { echo "$as_me:$LINENO: result: no" >&5
15897 echo "${ECHO_T}no" >&6; }
15898 ipv6=no
15900 *) { echo "$as_me:$LINENO: result: yes" >&5
15901 echo "${ECHO_T}yes" >&6; }
15902 cat >>confdefs.h <<\_ACEOF
15903 #define ENABLE_IPV6 1
15904 _ACEOF
15906 ipv6=yes
15908 esac
15909 else
15911 if test "$cross_compiling" = yes; then
15912 { echo "$as_me:$LINENO: result: no" >&5
15913 echo "${ECHO_T}no" >&6; }
15914 ipv6=no
15916 else
15917 cat >conftest.$ac_ext <<_ACEOF
15918 /* confdefs.h. */
15919 _ACEOF
15920 cat confdefs.h >>conftest.$ac_ext
15921 cat >>conftest.$ac_ext <<_ACEOF
15922 /* end confdefs.h. */
15923 /* AF_INET6 available check */
15924 #include <sys/types.h>
15925 #include <sys/socket.h>
15926 main()
15928 if (socket(AF_INET6, SOCK_STREAM, 0) < 0)
15929 exit(1);
15930 else
15931 exit(0);
15934 _ACEOF
15935 rm -f conftest$ac_exeext
15936 if { (ac_try="$ac_link"
15937 case "(($ac_try" in
15938 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15939 *) ac_try_echo=$ac_try;;
15940 esac
15941 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15942 (eval "$ac_link") 2>&5
15943 ac_status=$?
15944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15945 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15946 { (case "(($ac_try" in
15947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15948 *) ac_try_echo=$ac_try;;
15949 esac
15950 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15951 (eval "$ac_try") 2>&5
15952 ac_status=$?
15953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15954 (exit $ac_status); }; }; then
15955 { echo "$as_me:$LINENO: result: yes" >&5
15956 echo "${ECHO_T}yes" >&6; }
15957 ipv6=yes
15958 else
15959 echo "$as_me: program exited with status $ac_status" >&5
15960 echo "$as_me: failed program was:" >&5
15961 sed 's/^/| /' conftest.$ac_ext >&5
15963 ( exit $ac_status )
15964 { echo "$as_me:$LINENO: result: no" >&5
15965 echo "${ECHO_T}no" >&6; }
15966 ipv6=no
15968 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15973 if test "$ipv6" = "yes"; then
15974 { echo "$as_me:$LINENO: checking if RFC2553 API is available" >&5
15975 echo $ECHO_N "checking if RFC2553 API is available... $ECHO_C" >&6; }
15976 cat >conftest.$ac_ext <<_ACEOF
15977 /* confdefs.h. */
15978 _ACEOF
15979 cat confdefs.h >>conftest.$ac_ext
15980 cat >>conftest.$ac_ext <<_ACEOF
15981 /* end confdefs.h. */
15982 #include <sys/types.h>
15983 #include <netinet/in.h>
15985 main ()
15987 struct sockaddr_in6 x;
15988 x.sin6_scope_id;
15990 return 0;
15992 _ACEOF
15993 rm -f conftest.$ac_objext
15994 if { (ac_try="$ac_compile"
15995 case "(($ac_try" in
15996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15997 *) ac_try_echo=$ac_try;;
15998 esac
15999 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16000 (eval "$ac_compile") 2>conftest.er1
16001 ac_status=$?
16002 grep -v '^ *+' conftest.er1 >conftest.err
16003 rm -f conftest.er1
16004 cat conftest.err >&5
16005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16006 (exit $ac_status); } && {
16007 test -z "$ac_c_werror_flag" ||
16008 test ! -s conftest.err
16009 } && test -s conftest.$ac_objext; then
16010 { echo "$as_me:$LINENO: result: yes" >&5
16011 echo "${ECHO_T}yes" >&6; }
16012 ipv6=yes
16013 else
16014 echo "$as_me: failed program was:" >&5
16015 sed 's/^/| /' conftest.$ac_ext >&5
16017 { echo "$as_me:$LINENO: result: no" >&5
16018 echo "${ECHO_T}no" >&6; }
16019 ipv6=no
16022 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16025 if test "$ipv6" = "yes"; then
16026 cat >>confdefs.h <<\_ACEOF
16027 #define ENABLE_IPV6 1
16028 _ACEOF
16035 ipv6type=unknown
16036 ipv6lib=none
16037 ipv6trylibc=no
16039 if test "$ipv6" = "yes"; then
16040 { echo "$as_me:$LINENO: checking ipv6 stack type" >&5
16041 echo $ECHO_N "checking ipv6 stack type... $ECHO_C" >&6; }
16042 for i in inria kame linux-glibc linux-inet6 solaris toshiba v6d zeta;
16044 case $i in
16045 inria)
16046 cat >conftest.$ac_ext <<_ACEOF
16047 /* confdefs.h. */
16048 _ACEOF
16049 cat confdefs.h >>conftest.$ac_ext
16050 cat >>conftest.$ac_ext <<_ACEOF
16051 /* end confdefs.h. */
16053 #include <netinet/in.h>
16054 #ifdef IPV6_INRIA_VERSION
16056 #endif
16057 _ACEOF
16058 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16059 $EGREP "yes" >/dev/null 2>&1; then
16060 ipv6type=$i
16062 rm -f conftest*
16065 kame)
16066 cat >conftest.$ac_ext <<_ACEOF
16067 /* confdefs.h. */
16068 _ACEOF
16069 cat confdefs.h >>conftest.$ac_ext
16070 cat >>conftest.$ac_ext <<_ACEOF
16071 /* end confdefs.h. */
16073 #include <netinet/in.h>
16074 #ifdef __KAME__
16076 #endif
16077 _ACEOF
16078 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16079 $EGREP "yes" >/dev/null 2>&1; then
16080 ipv6type=$i;
16081 ipv6lib=inet6
16082 ipv6libdir=/usr/local/v6/lib
16083 ipv6trylibc=yes
16085 rm -f conftest*
16088 linux-glibc)
16089 cat >conftest.$ac_ext <<_ACEOF
16090 /* confdefs.h. */
16091 _ACEOF
16092 cat confdefs.h >>conftest.$ac_ext
16093 cat >>conftest.$ac_ext <<_ACEOF
16094 /* end confdefs.h. */
16096 #include <features.h>
16097 #if defined(__GLIBC__) && ((__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2))
16099 #endif
16100 _ACEOF
16101 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16102 $EGREP "yes" >/dev/null 2>&1; then
16103 ipv6type=$i;
16104 ipv6trylibc=yes
16106 rm -f conftest*
16109 linux-inet6)
16110 if test -d /usr/inet6; then
16111 ipv6type=$i
16112 ipv6lib=inet6
16113 ipv6libdir=/usr/inet6/lib
16114 BASECFLAGS="-I/usr/inet6/include $BASECFLAGS"
16117 solaris)
16118 if test -f /etc/netconfig; then
16119 if /usr/xpg4/bin/grep -q tcp6 /etc/netconfig; then
16120 ipv6type=$i
16121 ipv6trylibc=yes
16125 toshiba)
16126 cat >conftest.$ac_ext <<_ACEOF
16127 /* confdefs.h. */
16128 _ACEOF
16129 cat confdefs.h >>conftest.$ac_ext
16130 cat >>conftest.$ac_ext <<_ACEOF
16131 /* end confdefs.h. */
16133 #include <sys/param.h>
16134 #ifdef _TOSHIBA_INET6
16136 #endif
16137 _ACEOF
16138 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16139 $EGREP "yes" >/dev/null 2>&1; then
16140 ipv6type=$i;
16141 ipv6lib=inet6;
16142 ipv6libdir=/usr/local/v6/lib
16144 rm -f conftest*
16147 v6d)
16148 cat >conftest.$ac_ext <<_ACEOF
16149 /* confdefs.h. */
16150 _ACEOF
16151 cat confdefs.h >>conftest.$ac_ext
16152 cat >>conftest.$ac_ext <<_ACEOF
16153 /* end confdefs.h. */
16155 #include </usr/local/v6/include/sys/v6config.h>
16156 #ifdef __V6D__
16158 #endif
16159 _ACEOF
16160 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16161 $EGREP "yes" >/dev/null 2>&1; then
16162 ipv6type=$i;
16163 ipv6lib=v6;
16164 ipv6libdir=/usr/local/v6/lib;
16165 BASECFLAGS="-I/usr/local/v6/include $BASECFLAGS"
16167 rm -f conftest*
16170 zeta)
16171 cat >conftest.$ac_ext <<_ACEOF
16172 /* confdefs.h. */
16173 _ACEOF
16174 cat confdefs.h >>conftest.$ac_ext
16175 cat >>conftest.$ac_ext <<_ACEOF
16176 /* end confdefs.h. */
16178 #include <sys/param.h>
16179 #ifdef _ZETA_MINAMI_INET6
16181 #endif
16182 _ACEOF
16183 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16184 $EGREP "yes" >/dev/null 2>&1; then
16185 ipv6type=$i;
16186 ipv6lib=inet6;
16187 ipv6libdir=/usr/local/v6/lib
16189 rm -f conftest*
16192 esac
16193 if test "$ipv6type" != "unknown"; then
16194 break
16196 done
16197 { echo "$as_me:$LINENO: result: $ipv6type" >&5
16198 echo "${ECHO_T}$ipv6type" >&6; }
16201 if test "$ipv6" = "yes" -a "$ipv6lib" != "none"; then
16202 if test -d $ipv6libdir -a -f $ipv6libdir/lib$ipv6lib.a; then
16203 LIBS="-L$ipv6libdir -l$ipv6lib $LIBS"
16204 echo "using lib$ipv6lib"
16205 else
16206 if test $ipv6trylibc = "yes"; then
16207 echo "using libc"
16208 else
16209 echo 'Fatal: no $ipv6lib library found. cannot continue.'
16210 echo "You need to fetch lib$ipv6lib.a from appropriate"
16211 echo 'ipv6 kit and compile beforehand.'
16212 exit 1
16217 { echo "$as_me:$LINENO: checking for OSX 10.5 SDK or later" >&5
16218 echo $ECHO_N "checking for OSX 10.5 SDK or later... $ECHO_C" >&6; }
16219 cat >conftest.$ac_ext <<_ACEOF
16220 /* confdefs.h. */
16221 _ACEOF
16222 cat confdefs.h >>conftest.$ac_ext
16223 cat >>conftest.$ac_ext <<_ACEOF
16224 /* end confdefs.h. */
16225 #include <Carbon/Carbon.h>
16227 main ()
16229 FSIORefNum fRef = 0
16231 return 0;
16233 _ACEOF
16234 rm -f conftest.$ac_objext
16235 if { (ac_try="$ac_compile"
16236 case "(($ac_try" in
16237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16238 *) ac_try_echo=$ac_try;;
16239 esac
16240 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16241 (eval "$ac_compile") 2>conftest.er1
16242 ac_status=$?
16243 grep -v '^ *+' conftest.er1 >conftest.err
16244 rm -f conftest.er1
16245 cat conftest.err >&5
16246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16247 (exit $ac_status); } && {
16248 test -z "$ac_c_werror_flag" ||
16249 test ! -s conftest.err
16250 } && test -s conftest.$ac_objext; then
16252 cat >>confdefs.h <<\_ACEOF
16253 #define HAVE_OSX105_SDK 1
16254 _ACEOF
16256 { echo "$as_me:$LINENO: result: yes" >&5
16257 echo "${ECHO_T}yes" >&6; }
16258 else
16259 echo "$as_me: failed program was:" >&5
16260 sed 's/^/| /' conftest.$ac_ext >&5
16262 { echo "$as_me:$LINENO: result: no" >&5
16263 echo "${ECHO_T}no" >&6; }
16267 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16269 # Check for --with-doc-strings
16270 { echo "$as_me:$LINENO: checking for --with-doc-strings" >&5
16271 echo $ECHO_N "checking for --with-doc-strings... $ECHO_C" >&6; }
16273 # Check whether --with-doc-strings was given.
16274 if test "${with_doc_strings+set}" = set; then
16275 withval=$with_doc_strings;
16279 if test -z "$with_doc_strings"
16280 then with_doc_strings="yes"
16282 if test "$with_doc_strings" != "no"
16283 then
16285 cat >>confdefs.h <<\_ACEOF
16286 #define WITH_DOC_STRINGS 1
16287 _ACEOF
16290 { echo "$as_me:$LINENO: result: $with_doc_strings" >&5
16291 echo "${ECHO_T}$with_doc_strings" >&6; }
16293 # Check for Python-specific malloc support
16294 { echo "$as_me:$LINENO: checking for --with-tsc" >&5
16295 echo $ECHO_N "checking for --with-tsc... $ECHO_C" >&6; }
16297 # Check whether --with-tsc was given.
16298 if test "${with_tsc+set}" = set; then
16299 withval=$with_tsc;
16300 if test "$withval" != no
16301 then
16303 cat >>confdefs.h <<\_ACEOF
16304 #define WITH_TSC 1
16305 _ACEOF
16307 { echo "$as_me:$LINENO: result: yes" >&5
16308 echo "${ECHO_T}yes" >&6; }
16309 else { echo "$as_me:$LINENO: result: no" >&5
16310 echo "${ECHO_T}no" >&6; }
16312 else
16313 { echo "$as_me:$LINENO: result: no" >&5
16314 echo "${ECHO_T}no" >&6; }
16318 # Check for Python-specific malloc support
16319 { echo "$as_me:$LINENO: checking for --with-pymalloc" >&5
16320 echo $ECHO_N "checking for --with-pymalloc... $ECHO_C" >&6; }
16322 # Check whether --with-pymalloc was given.
16323 if test "${with_pymalloc+set}" = set; then
16324 withval=$with_pymalloc;
16328 if test -z "$with_pymalloc"
16329 then with_pymalloc="yes"
16331 if test "$with_pymalloc" != "no"
16332 then
16334 cat >>confdefs.h <<\_ACEOF
16335 #define WITH_PYMALLOC 1
16336 _ACEOF
16339 { echo "$as_me:$LINENO: result: $with_pymalloc" >&5
16340 echo "${ECHO_T}$with_pymalloc" >&6; }
16342 # Check for --with-wctype-functions
16343 { echo "$as_me:$LINENO: checking for --with-wctype-functions" >&5
16344 echo $ECHO_N "checking for --with-wctype-functions... $ECHO_C" >&6; }
16346 # Check whether --with-wctype-functions was given.
16347 if test "${with_wctype_functions+set}" = set; then
16348 withval=$with_wctype_functions;
16349 if test "$withval" != no
16350 then
16352 cat >>confdefs.h <<\_ACEOF
16353 #define WANT_WCTYPE_FUNCTIONS 1
16354 _ACEOF
16356 { echo "$as_me:$LINENO: result: yes" >&5
16357 echo "${ECHO_T}yes" >&6; }
16358 else { echo "$as_me:$LINENO: result: no" >&5
16359 echo "${ECHO_T}no" >&6; }
16361 else
16362 { echo "$as_me:$LINENO: result: no" >&5
16363 echo "${ECHO_T}no" >&6; }
16367 # -I${DLINCLDIR} is added to the compile rule for importdl.o
16369 DLINCLDIR=.
16371 # the dlopen() function means we might want to use dynload_shlib.o. some
16372 # platforms, such as AIX, have dlopen(), but don't want to use it.
16374 for ac_func in dlopen
16376 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16377 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16378 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16379 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16380 echo $ECHO_N "(cached) $ECHO_C" >&6
16381 else
16382 cat >conftest.$ac_ext <<_ACEOF
16383 /* confdefs.h. */
16384 _ACEOF
16385 cat confdefs.h >>conftest.$ac_ext
16386 cat >>conftest.$ac_ext <<_ACEOF
16387 /* end confdefs.h. */
16388 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16389 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16390 #define $ac_func innocuous_$ac_func
16392 /* System header to define __stub macros and hopefully few prototypes,
16393 which can conflict with char $ac_func (); below.
16394 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16395 <limits.h> exists even on freestanding compilers. */
16397 #ifdef __STDC__
16398 # include <limits.h>
16399 #else
16400 # include <assert.h>
16401 #endif
16403 #undef $ac_func
16405 /* Override any GCC internal prototype to avoid an error.
16406 Use char because int might match the return type of a GCC
16407 builtin and then its argument prototype would still apply. */
16408 #ifdef __cplusplus
16409 extern "C"
16410 #endif
16411 char $ac_func ();
16412 /* The GNU C library defines this for functions which it implements
16413 to always fail with ENOSYS. Some functions are actually named
16414 something starting with __ and the normal name is an alias. */
16415 #if defined __stub_$ac_func || defined __stub___$ac_func
16416 choke me
16417 #endif
16420 main ()
16422 return $ac_func ();
16424 return 0;
16426 _ACEOF
16427 rm -f conftest.$ac_objext conftest$ac_exeext
16428 if { (ac_try="$ac_link"
16429 case "(($ac_try" in
16430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16431 *) ac_try_echo=$ac_try;;
16432 esac
16433 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16434 (eval "$ac_link") 2>conftest.er1
16435 ac_status=$?
16436 grep -v '^ *+' conftest.er1 >conftest.err
16437 rm -f conftest.er1
16438 cat conftest.err >&5
16439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16440 (exit $ac_status); } && {
16441 test -z "$ac_c_werror_flag" ||
16442 test ! -s conftest.err
16443 } && test -s conftest$ac_exeext &&
16444 $as_test_x conftest$ac_exeext; then
16445 eval "$as_ac_var=yes"
16446 else
16447 echo "$as_me: failed program was:" >&5
16448 sed 's/^/| /' conftest.$ac_ext >&5
16450 eval "$as_ac_var=no"
16453 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16454 conftest$ac_exeext conftest.$ac_ext
16456 ac_res=`eval echo '${'$as_ac_var'}'`
16457 { echo "$as_me:$LINENO: result: $ac_res" >&5
16458 echo "${ECHO_T}$ac_res" >&6; }
16459 if test `eval echo '${'$as_ac_var'}'` = yes; then
16460 cat >>confdefs.h <<_ACEOF
16461 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16462 _ACEOF
16465 done
16468 # DYNLOADFILE specifies which dynload_*.o file we will use for dynamic
16469 # loading of modules.
16471 { echo "$as_me:$LINENO: checking DYNLOADFILE" >&5
16472 echo $ECHO_N "checking DYNLOADFILE... $ECHO_C" >&6; }
16473 if test -z "$DYNLOADFILE"
16474 then
16475 case $ac_sys_system/$ac_sys_release in
16476 AIX*) # Use dynload_shlib.c and dlopen() if we have it; otherwise dynload_aix.c
16477 if test "$ac_cv_func_dlopen" = yes
16478 then DYNLOADFILE="dynload_shlib.o"
16479 else DYNLOADFILE="dynload_aix.o"
16482 BeOS*) DYNLOADFILE="dynload_beos.o";;
16483 hp*|HP*) DYNLOADFILE="dynload_hpux.o";;
16484 # Use dynload_next.c only on 10.2 and below, which don't have native dlopen()
16485 Darwin/[0156]\..*) DYNLOADFILE="dynload_next.o";;
16486 atheos*) DYNLOADFILE="dynload_atheos.o";;
16488 # use dynload_shlib.c and dlopen() if we have it; otherwise stub
16489 # out any dynamic loading
16490 if test "$ac_cv_func_dlopen" = yes
16491 then DYNLOADFILE="dynload_shlib.o"
16492 else DYNLOADFILE="dynload_stub.o"
16495 esac
16497 { echo "$as_me:$LINENO: result: $DYNLOADFILE" >&5
16498 echo "${ECHO_T}$DYNLOADFILE" >&6; }
16499 if test "$DYNLOADFILE" != "dynload_stub.o"
16500 then
16502 cat >>confdefs.h <<\_ACEOF
16503 #define HAVE_DYNAMIC_LOADING 1
16504 _ACEOF
16508 # MACHDEP_OBJS can be set to platform-specific object files needed by Python
16511 { echo "$as_me:$LINENO: checking MACHDEP_OBJS" >&5
16512 echo $ECHO_N "checking MACHDEP_OBJS... $ECHO_C" >&6; }
16513 if test -z "$MACHDEP_OBJS"
16514 then
16515 MACHDEP_OBJS=$extra_machdep_objs
16516 else
16517 MACHDEP_OBJS="$MACHDEP_OBJS $extra_machdep_objs"
16519 { echo "$as_me:$LINENO: result: MACHDEP_OBJS" >&5
16520 echo "${ECHO_T}MACHDEP_OBJS" >&6; }
16522 # checks for library functions
16608 for ac_func in alarm setitimer getitimer bind_textdomain_codeset chown \
16609 clock confstr ctermid execv fchmod fchown fork fpathconf ftime ftruncate \
16610 gai_strerror getgroups getlogin getloadavg getpeername getpgid getpid \
16611 getpriority getpwent getspnam getspent getsid getwd \
16612 kill killpg lchmod lchown lstat mkfifo mknod mktime \
16613 mremap nice pathconf pause plock poll pthread_init \
16614 putenv readlink realpath \
16615 select sem_open sem_timedwait sem_getvalue sem_unlink setegid seteuid \
16616 setgid \
16617 setlocale setregid setreuid setsid setpgid setpgrp setuid setvbuf snprintf \
16618 sigaction siginterrupt sigrelse strftime \
16619 sysconf tcgetpgrp tcsetpgrp tempnam timegm times tmpfile tmpnam tmpnam_r \
16620 truncate uname unsetenv utimes waitpid wait3 wait4 wcscoll _getpty
16622 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16623 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16624 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16625 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16626 echo $ECHO_N "(cached) $ECHO_C" >&6
16627 else
16628 cat >conftest.$ac_ext <<_ACEOF
16629 /* confdefs.h. */
16630 _ACEOF
16631 cat confdefs.h >>conftest.$ac_ext
16632 cat >>conftest.$ac_ext <<_ACEOF
16633 /* end confdefs.h. */
16634 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16635 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16636 #define $ac_func innocuous_$ac_func
16638 /* System header to define __stub macros and hopefully few prototypes,
16639 which can conflict with char $ac_func (); below.
16640 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16641 <limits.h> exists even on freestanding compilers. */
16643 #ifdef __STDC__
16644 # include <limits.h>
16645 #else
16646 # include <assert.h>
16647 #endif
16649 #undef $ac_func
16651 /* Override any GCC internal prototype to avoid an error.
16652 Use char because int might match the return type of a GCC
16653 builtin and then its argument prototype would still apply. */
16654 #ifdef __cplusplus
16655 extern "C"
16656 #endif
16657 char $ac_func ();
16658 /* The GNU C library defines this for functions which it implements
16659 to always fail with ENOSYS. Some functions are actually named
16660 something starting with __ and the normal name is an alias. */
16661 #if defined __stub_$ac_func || defined __stub___$ac_func
16662 choke me
16663 #endif
16666 main ()
16668 return $ac_func ();
16670 return 0;
16672 _ACEOF
16673 rm -f conftest.$ac_objext conftest$ac_exeext
16674 if { (ac_try="$ac_link"
16675 case "(($ac_try" in
16676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16677 *) ac_try_echo=$ac_try;;
16678 esac
16679 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16680 (eval "$ac_link") 2>conftest.er1
16681 ac_status=$?
16682 grep -v '^ *+' conftest.er1 >conftest.err
16683 rm -f conftest.er1
16684 cat conftest.err >&5
16685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16686 (exit $ac_status); } && {
16687 test -z "$ac_c_werror_flag" ||
16688 test ! -s conftest.err
16689 } && test -s conftest$ac_exeext &&
16690 $as_test_x conftest$ac_exeext; then
16691 eval "$as_ac_var=yes"
16692 else
16693 echo "$as_me: failed program was:" >&5
16694 sed 's/^/| /' conftest.$ac_ext >&5
16696 eval "$as_ac_var=no"
16699 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16700 conftest$ac_exeext conftest.$ac_ext
16702 ac_res=`eval echo '${'$as_ac_var'}'`
16703 { echo "$as_me:$LINENO: result: $ac_res" >&5
16704 echo "${ECHO_T}$ac_res" >&6; }
16705 if test `eval echo '${'$as_ac_var'}'` = yes; then
16706 cat >>confdefs.h <<_ACEOF
16707 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16708 _ACEOF
16711 done
16714 # For some functions, having a definition is not sufficient, since
16715 # we want to take their address.
16716 { echo "$as_me:$LINENO: checking for chroot" >&5
16717 echo $ECHO_N "checking for chroot... $ECHO_C" >&6; }
16718 cat >conftest.$ac_ext <<_ACEOF
16719 /* confdefs.h. */
16720 _ACEOF
16721 cat confdefs.h >>conftest.$ac_ext
16722 cat >>conftest.$ac_ext <<_ACEOF
16723 /* end confdefs.h. */
16724 #include <unistd.h>
16726 main ()
16728 void *x=chroot
16730 return 0;
16732 _ACEOF
16733 rm -f conftest.$ac_objext
16734 if { (ac_try="$ac_compile"
16735 case "(($ac_try" in
16736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16737 *) ac_try_echo=$ac_try;;
16738 esac
16739 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16740 (eval "$ac_compile") 2>conftest.er1
16741 ac_status=$?
16742 grep -v '^ *+' conftest.er1 >conftest.err
16743 rm -f conftest.er1
16744 cat conftest.err >&5
16745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16746 (exit $ac_status); } && {
16747 test -z "$ac_c_werror_flag" ||
16748 test ! -s conftest.err
16749 } && test -s conftest.$ac_objext; then
16751 cat >>confdefs.h <<\_ACEOF
16752 #define HAVE_CHROOT 1
16753 _ACEOF
16755 { echo "$as_me:$LINENO: result: yes" >&5
16756 echo "${ECHO_T}yes" >&6; }
16757 else
16758 echo "$as_me: failed program was:" >&5
16759 sed 's/^/| /' conftest.$ac_ext >&5
16761 { echo "$as_me:$LINENO: result: no" >&5
16762 echo "${ECHO_T}no" >&6; }
16766 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16767 { echo "$as_me:$LINENO: checking for link" >&5
16768 echo $ECHO_N "checking for link... $ECHO_C" >&6; }
16769 cat >conftest.$ac_ext <<_ACEOF
16770 /* confdefs.h. */
16771 _ACEOF
16772 cat confdefs.h >>conftest.$ac_ext
16773 cat >>conftest.$ac_ext <<_ACEOF
16774 /* end confdefs.h. */
16775 #include <unistd.h>
16777 main ()
16779 void *x=link
16781 return 0;
16783 _ACEOF
16784 rm -f conftest.$ac_objext
16785 if { (ac_try="$ac_compile"
16786 case "(($ac_try" in
16787 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16788 *) ac_try_echo=$ac_try;;
16789 esac
16790 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16791 (eval "$ac_compile") 2>conftest.er1
16792 ac_status=$?
16793 grep -v '^ *+' conftest.er1 >conftest.err
16794 rm -f conftest.er1
16795 cat conftest.err >&5
16796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16797 (exit $ac_status); } && {
16798 test -z "$ac_c_werror_flag" ||
16799 test ! -s conftest.err
16800 } && test -s conftest.$ac_objext; then
16802 cat >>confdefs.h <<\_ACEOF
16803 #define HAVE_LINK 1
16804 _ACEOF
16806 { echo "$as_me:$LINENO: result: yes" >&5
16807 echo "${ECHO_T}yes" >&6; }
16808 else
16809 echo "$as_me: failed program was:" >&5
16810 sed 's/^/| /' conftest.$ac_ext >&5
16812 { echo "$as_me:$LINENO: result: no" >&5
16813 echo "${ECHO_T}no" >&6; }
16817 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16818 { echo "$as_me:$LINENO: checking for symlink" >&5
16819 echo $ECHO_N "checking for symlink... $ECHO_C" >&6; }
16820 cat >conftest.$ac_ext <<_ACEOF
16821 /* confdefs.h. */
16822 _ACEOF
16823 cat confdefs.h >>conftest.$ac_ext
16824 cat >>conftest.$ac_ext <<_ACEOF
16825 /* end confdefs.h. */
16826 #include <unistd.h>
16828 main ()
16830 void *x=symlink
16832 return 0;
16834 _ACEOF
16835 rm -f conftest.$ac_objext
16836 if { (ac_try="$ac_compile"
16837 case "(($ac_try" in
16838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16839 *) ac_try_echo=$ac_try;;
16840 esac
16841 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16842 (eval "$ac_compile") 2>conftest.er1
16843 ac_status=$?
16844 grep -v '^ *+' conftest.er1 >conftest.err
16845 rm -f conftest.er1
16846 cat conftest.err >&5
16847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16848 (exit $ac_status); } && {
16849 test -z "$ac_c_werror_flag" ||
16850 test ! -s conftest.err
16851 } && test -s conftest.$ac_objext; then
16853 cat >>confdefs.h <<\_ACEOF
16854 #define HAVE_SYMLINK 1
16855 _ACEOF
16857 { echo "$as_me:$LINENO: result: yes" >&5
16858 echo "${ECHO_T}yes" >&6; }
16859 else
16860 echo "$as_me: failed program was:" >&5
16861 sed 's/^/| /' conftest.$ac_ext >&5
16863 { echo "$as_me:$LINENO: result: no" >&5
16864 echo "${ECHO_T}no" >&6; }
16868 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16869 { echo "$as_me:$LINENO: checking for fchdir" >&5
16870 echo $ECHO_N "checking for fchdir... $ECHO_C" >&6; }
16871 cat >conftest.$ac_ext <<_ACEOF
16872 /* confdefs.h. */
16873 _ACEOF
16874 cat confdefs.h >>conftest.$ac_ext
16875 cat >>conftest.$ac_ext <<_ACEOF
16876 /* end confdefs.h. */
16877 #include <unistd.h>
16879 main ()
16881 void *x=fchdir
16883 return 0;
16885 _ACEOF
16886 rm -f conftest.$ac_objext
16887 if { (ac_try="$ac_compile"
16888 case "(($ac_try" in
16889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16890 *) ac_try_echo=$ac_try;;
16891 esac
16892 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16893 (eval "$ac_compile") 2>conftest.er1
16894 ac_status=$?
16895 grep -v '^ *+' conftest.er1 >conftest.err
16896 rm -f conftest.er1
16897 cat conftest.err >&5
16898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16899 (exit $ac_status); } && {
16900 test -z "$ac_c_werror_flag" ||
16901 test ! -s conftest.err
16902 } && test -s conftest.$ac_objext; then
16904 cat >>confdefs.h <<\_ACEOF
16905 #define HAVE_FCHDIR 1
16906 _ACEOF
16908 { echo "$as_me:$LINENO: result: yes" >&5
16909 echo "${ECHO_T}yes" >&6; }
16910 else
16911 echo "$as_me: failed program was:" >&5
16912 sed 's/^/| /' conftest.$ac_ext >&5
16914 { echo "$as_me:$LINENO: result: no" >&5
16915 echo "${ECHO_T}no" >&6; }
16919 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16920 { echo "$as_me:$LINENO: checking for fsync" >&5
16921 echo $ECHO_N "checking for fsync... $ECHO_C" >&6; }
16922 cat >conftest.$ac_ext <<_ACEOF
16923 /* confdefs.h. */
16924 _ACEOF
16925 cat confdefs.h >>conftest.$ac_ext
16926 cat >>conftest.$ac_ext <<_ACEOF
16927 /* end confdefs.h. */
16928 #include <unistd.h>
16930 main ()
16932 void *x=fsync
16934 return 0;
16936 _ACEOF
16937 rm -f conftest.$ac_objext
16938 if { (ac_try="$ac_compile"
16939 case "(($ac_try" in
16940 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16941 *) ac_try_echo=$ac_try;;
16942 esac
16943 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16944 (eval "$ac_compile") 2>conftest.er1
16945 ac_status=$?
16946 grep -v '^ *+' conftest.er1 >conftest.err
16947 rm -f conftest.er1
16948 cat conftest.err >&5
16949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16950 (exit $ac_status); } && {
16951 test -z "$ac_c_werror_flag" ||
16952 test ! -s conftest.err
16953 } && test -s conftest.$ac_objext; then
16955 cat >>confdefs.h <<\_ACEOF
16956 #define HAVE_FSYNC 1
16957 _ACEOF
16959 { echo "$as_me:$LINENO: result: yes" >&5
16960 echo "${ECHO_T}yes" >&6; }
16961 else
16962 echo "$as_me: failed program was:" >&5
16963 sed 's/^/| /' conftest.$ac_ext >&5
16965 { echo "$as_me:$LINENO: result: no" >&5
16966 echo "${ECHO_T}no" >&6; }
16970 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16971 { echo "$as_me:$LINENO: checking for fdatasync" >&5
16972 echo $ECHO_N "checking for fdatasync... $ECHO_C" >&6; }
16973 cat >conftest.$ac_ext <<_ACEOF
16974 /* confdefs.h. */
16975 _ACEOF
16976 cat confdefs.h >>conftest.$ac_ext
16977 cat >>conftest.$ac_ext <<_ACEOF
16978 /* end confdefs.h. */
16979 #include <unistd.h>
16981 main ()
16983 void *x=fdatasync
16985 return 0;
16987 _ACEOF
16988 rm -f conftest.$ac_objext
16989 if { (ac_try="$ac_compile"
16990 case "(($ac_try" in
16991 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16992 *) ac_try_echo=$ac_try;;
16993 esac
16994 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16995 (eval "$ac_compile") 2>conftest.er1
16996 ac_status=$?
16997 grep -v '^ *+' conftest.er1 >conftest.err
16998 rm -f conftest.er1
16999 cat conftest.err >&5
17000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17001 (exit $ac_status); } && {
17002 test -z "$ac_c_werror_flag" ||
17003 test ! -s conftest.err
17004 } && test -s conftest.$ac_objext; then
17006 cat >>confdefs.h <<\_ACEOF
17007 #define HAVE_FDATASYNC 1
17008 _ACEOF
17010 { echo "$as_me:$LINENO: result: yes" >&5
17011 echo "${ECHO_T}yes" >&6; }
17012 else
17013 echo "$as_me: failed program was:" >&5
17014 sed 's/^/| /' conftest.$ac_ext >&5
17016 { echo "$as_me:$LINENO: result: no" >&5
17017 echo "${ECHO_T}no" >&6; }
17021 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17022 { echo "$as_me:$LINENO: checking for epoll" >&5
17023 echo $ECHO_N "checking for epoll... $ECHO_C" >&6; }
17024 cat >conftest.$ac_ext <<_ACEOF
17025 /* confdefs.h. */
17026 _ACEOF
17027 cat confdefs.h >>conftest.$ac_ext
17028 cat >>conftest.$ac_ext <<_ACEOF
17029 /* end confdefs.h. */
17030 #include <sys/epoll.h>
17032 main ()
17034 void *x=epoll_create
17036 return 0;
17038 _ACEOF
17039 rm -f conftest.$ac_objext
17040 if { (ac_try="$ac_compile"
17041 case "(($ac_try" in
17042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17043 *) ac_try_echo=$ac_try;;
17044 esac
17045 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17046 (eval "$ac_compile") 2>conftest.er1
17047 ac_status=$?
17048 grep -v '^ *+' conftest.er1 >conftest.err
17049 rm -f conftest.er1
17050 cat conftest.err >&5
17051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17052 (exit $ac_status); } && {
17053 test -z "$ac_c_werror_flag" ||
17054 test ! -s conftest.err
17055 } && test -s conftest.$ac_objext; then
17057 cat >>confdefs.h <<\_ACEOF
17058 #define HAVE_EPOLL 1
17059 _ACEOF
17061 { echo "$as_me:$LINENO: result: yes" >&5
17062 echo "${ECHO_T}yes" >&6; }
17063 else
17064 echo "$as_me: failed program was:" >&5
17065 sed 's/^/| /' conftest.$ac_ext >&5
17067 { echo "$as_me:$LINENO: result: no" >&5
17068 echo "${ECHO_T}no" >&6; }
17072 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17073 { echo "$as_me:$LINENO: checking for kqueue" >&5
17074 echo $ECHO_N "checking for kqueue... $ECHO_C" >&6; }
17075 cat >conftest.$ac_ext <<_ACEOF
17076 /* confdefs.h. */
17077 _ACEOF
17078 cat confdefs.h >>conftest.$ac_ext
17079 cat >>conftest.$ac_ext <<_ACEOF
17080 /* end confdefs.h. */
17082 #include <sys/types.h>
17083 #include <sys/event.h>
17086 main ()
17088 int x=kqueue()
17090 return 0;
17092 _ACEOF
17093 rm -f conftest.$ac_objext
17094 if { (ac_try="$ac_compile"
17095 case "(($ac_try" in
17096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17097 *) ac_try_echo=$ac_try;;
17098 esac
17099 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17100 (eval "$ac_compile") 2>conftest.er1
17101 ac_status=$?
17102 grep -v '^ *+' conftest.er1 >conftest.err
17103 rm -f conftest.er1
17104 cat conftest.err >&5
17105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17106 (exit $ac_status); } && {
17107 test -z "$ac_c_werror_flag" ||
17108 test ! -s conftest.err
17109 } && test -s conftest.$ac_objext; then
17111 cat >>confdefs.h <<\_ACEOF
17112 #define HAVE_KQUEUE 1
17113 _ACEOF
17115 { echo "$as_me:$LINENO: result: yes" >&5
17116 echo "${ECHO_T}yes" >&6; }
17117 else
17118 echo "$as_me: failed program was:" >&5
17119 sed 's/^/| /' conftest.$ac_ext >&5
17121 { echo "$as_me:$LINENO: result: no" >&5
17122 echo "${ECHO_T}no" >&6; }
17126 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17127 # On some systems (eg. FreeBSD 5), we would find a definition of the
17128 # functions ctermid_r, setgroups in the library, but no prototype
17129 # (e.g. because we use _XOPEN_SOURCE). See whether we can take their
17130 # address to avoid compiler warnings and potential miscompilations
17131 # because of the missing prototypes.
17133 { echo "$as_me:$LINENO: checking for ctermid_r" >&5
17134 echo $ECHO_N "checking for ctermid_r... $ECHO_C" >&6; }
17135 cat >conftest.$ac_ext <<_ACEOF
17136 /* confdefs.h. */
17137 _ACEOF
17138 cat confdefs.h >>conftest.$ac_ext
17139 cat >>conftest.$ac_ext <<_ACEOF
17140 /* end confdefs.h. */
17142 #include "confdefs.h"
17143 #include <stdio.h>
17146 main ()
17148 void* p = ctermid_r
17150 return 0;
17152 _ACEOF
17153 rm -f conftest.$ac_objext
17154 if { (ac_try="$ac_compile"
17155 case "(($ac_try" in
17156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17157 *) ac_try_echo=$ac_try;;
17158 esac
17159 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17160 (eval "$ac_compile") 2>conftest.er1
17161 ac_status=$?
17162 grep -v '^ *+' conftest.er1 >conftest.err
17163 rm -f conftest.er1
17164 cat conftest.err >&5
17165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17166 (exit $ac_status); } && {
17167 test -z "$ac_c_werror_flag" ||
17168 test ! -s conftest.err
17169 } && test -s conftest.$ac_objext; then
17171 cat >>confdefs.h <<\_ACEOF
17172 #define HAVE_CTERMID_R 1
17173 _ACEOF
17175 { echo "$as_me:$LINENO: result: yes" >&5
17176 echo "${ECHO_T}yes" >&6; }
17177 else
17178 echo "$as_me: failed program was:" >&5
17179 sed 's/^/| /' conftest.$ac_ext >&5
17181 { echo "$as_me:$LINENO: result: no" >&5
17182 echo "${ECHO_T}no" >&6; }
17186 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17188 { echo "$as_me:$LINENO: checking for flock" >&5
17189 echo $ECHO_N "checking for flock... $ECHO_C" >&6; }
17190 cat >conftest.$ac_ext <<_ACEOF
17191 /* confdefs.h. */
17192 _ACEOF
17193 cat confdefs.h >>conftest.$ac_ext
17194 cat >>conftest.$ac_ext <<_ACEOF
17195 /* end confdefs.h. */
17197 #include "confdefs.h"
17198 #include <sys/file.h>
17201 main ()
17203 void* p = flock
17205 return 0;
17207 _ACEOF
17208 rm -f conftest.$ac_objext
17209 if { (ac_try="$ac_compile"
17210 case "(($ac_try" in
17211 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17212 *) ac_try_echo=$ac_try;;
17213 esac
17214 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17215 (eval "$ac_compile") 2>conftest.er1
17216 ac_status=$?
17217 grep -v '^ *+' conftest.er1 >conftest.err
17218 rm -f conftest.er1
17219 cat conftest.err >&5
17220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17221 (exit $ac_status); } && {
17222 test -z "$ac_c_werror_flag" ||
17223 test ! -s conftest.err
17224 } && test -s conftest.$ac_objext; then
17226 cat >>confdefs.h <<\_ACEOF
17227 #define HAVE_FLOCK 1
17228 _ACEOF
17230 { echo "$as_me:$LINENO: result: yes" >&5
17231 echo "${ECHO_T}yes" >&6; }
17232 else
17233 echo "$as_me: failed program was:" >&5
17234 sed 's/^/| /' conftest.$ac_ext >&5
17236 { echo "$as_me:$LINENO: result: no" >&5
17237 echo "${ECHO_T}no" >&6; }
17241 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17243 { echo "$as_me:$LINENO: checking for getpagesize" >&5
17244 echo $ECHO_N "checking for getpagesize... $ECHO_C" >&6; }
17245 cat >conftest.$ac_ext <<_ACEOF
17246 /* confdefs.h. */
17247 _ACEOF
17248 cat confdefs.h >>conftest.$ac_ext
17249 cat >>conftest.$ac_ext <<_ACEOF
17250 /* end confdefs.h. */
17252 #include "confdefs.h"
17253 #include <unistd.h>
17256 main ()
17258 void* p = getpagesize
17260 return 0;
17262 _ACEOF
17263 rm -f conftest.$ac_objext
17264 if { (ac_try="$ac_compile"
17265 case "(($ac_try" in
17266 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17267 *) ac_try_echo=$ac_try;;
17268 esac
17269 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17270 (eval "$ac_compile") 2>conftest.er1
17271 ac_status=$?
17272 grep -v '^ *+' conftest.er1 >conftest.err
17273 rm -f conftest.er1
17274 cat conftest.err >&5
17275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17276 (exit $ac_status); } && {
17277 test -z "$ac_c_werror_flag" ||
17278 test ! -s conftest.err
17279 } && test -s conftest.$ac_objext; then
17281 cat >>confdefs.h <<\_ACEOF
17282 #define HAVE_GETPAGESIZE 1
17283 _ACEOF
17285 { echo "$as_me:$LINENO: result: yes" >&5
17286 echo "${ECHO_T}yes" >&6; }
17287 else
17288 echo "$as_me: failed program was:" >&5
17289 sed 's/^/| /' conftest.$ac_ext >&5
17291 { echo "$as_me:$LINENO: result: no" >&5
17292 echo "${ECHO_T}no" >&6; }
17296 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17298 for ac_prog in true
17300 # Extract the first word of "$ac_prog", so it can be a program name with args.
17301 set dummy $ac_prog; ac_word=$2
17302 { echo "$as_me:$LINENO: checking for $ac_word" >&5
17303 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
17304 if test "${ac_cv_prog_TRUE+set}" = set; then
17305 echo $ECHO_N "(cached) $ECHO_C" >&6
17306 else
17307 if test -n "$TRUE"; then
17308 ac_cv_prog_TRUE="$TRUE" # Let the user override the test.
17309 else
17310 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17311 for as_dir in $PATH
17313 IFS=$as_save_IFS
17314 test -z "$as_dir" && as_dir=.
17315 for ac_exec_ext in '' $ac_executable_extensions; do
17316 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17317 ac_cv_prog_TRUE="$ac_prog"
17318 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17319 break 2
17321 done
17322 done
17323 IFS=$as_save_IFS
17327 TRUE=$ac_cv_prog_TRUE
17328 if test -n "$TRUE"; then
17329 { echo "$as_me:$LINENO: result: $TRUE" >&5
17330 echo "${ECHO_T}$TRUE" >&6; }
17331 else
17332 { echo "$as_me:$LINENO: result: no" >&5
17333 echo "${ECHO_T}no" >&6; }
17337 test -n "$TRUE" && break
17338 done
17339 test -n "$TRUE" || TRUE="/bin/true"
17342 { echo "$as_me:$LINENO: checking for inet_aton in -lc" >&5
17343 echo $ECHO_N "checking for inet_aton in -lc... $ECHO_C" >&6; }
17344 if test "${ac_cv_lib_c_inet_aton+set}" = set; then
17345 echo $ECHO_N "(cached) $ECHO_C" >&6
17346 else
17347 ac_check_lib_save_LIBS=$LIBS
17348 LIBS="-lc $LIBS"
17349 cat >conftest.$ac_ext <<_ACEOF
17350 /* confdefs.h. */
17351 _ACEOF
17352 cat confdefs.h >>conftest.$ac_ext
17353 cat >>conftest.$ac_ext <<_ACEOF
17354 /* end confdefs.h. */
17356 /* Override any GCC internal prototype to avoid an error.
17357 Use char because int might match the return type of a GCC
17358 builtin and then its argument prototype would still apply. */
17359 #ifdef __cplusplus
17360 extern "C"
17361 #endif
17362 char inet_aton ();
17364 main ()
17366 return inet_aton ();
17368 return 0;
17370 _ACEOF
17371 rm -f conftest.$ac_objext conftest$ac_exeext
17372 if { (ac_try="$ac_link"
17373 case "(($ac_try" in
17374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17375 *) ac_try_echo=$ac_try;;
17376 esac
17377 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17378 (eval "$ac_link") 2>conftest.er1
17379 ac_status=$?
17380 grep -v '^ *+' conftest.er1 >conftest.err
17381 rm -f conftest.er1
17382 cat conftest.err >&5
17383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17384 (exit $ac_status); } && {
17385 test -z "$ac_c_werror_flag" ||
17386 test ! -s conftest.err
17387 } && test -s conftest$ac_exeext &&
17388 $as_test_x conftest$ac_exeext; then
17389 ac_cv_lib_c_inet_aton=yes
17390 else
17391 echo "$as_me: failed program was:" >&5
17392 sed 's/^/| /' conftest.$ac_ext >&5
17394 ac_cv_lib_c_inet_aton=no
17397 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17398 conftest$ac_exeext conftest.$ac_ext
17399 LIBS=$ac_check_lib_save_LIBS
17401 { echo "$as_me:$LINENO: result: $ac_cv_lib_c_inet_aton" >&5
17402 echo "${ECHO_T}$ac_cv_lib_c_inet_aton" >&6; }
17403 if test $ac_cv_lib_c_inet_aton = yes; then
17404 $ac_cv_prog_TRUE
17405 else
17407 { echo "$as_me:$LINENO: checking for inet_aton in -lresolv" >&5
17408 echo $ECHO_N "checking for inet_aton in -lresolv... $ECHO_C" >&6; }
17409 if test "${ac_cv_lib_resolv_inet_aton+set}" = set; then
17410 echo $ECHO_N "(cached) $ECHO_C" >&6
17411 else
17412 ac_check_lib_save_LIBS=$LIBS
17413 LIBS="-lresolv $LIBS"
17414 cat >conftest.$ac_ext <<_ACEOF
17415 /* confdefs.h. */
17416 _ACEOF
17417 cat confdefs.h >>conftest.$ac_ext
17418 cat >>conftest.$ac_ext <<_ACEOF
17419 /* end confdefs.h. */
17421 /* Override any GCC internal prototype to avoid an error.
17422 Use char because int might match the return type of a GCC
17423 builtin and then its argument prototype would still apply. */
17424 #ifdef __cplusplus
17425 extern "C"
17426 #endif
17427 char inet_aton ();
17429 main ()
17431 return inet_aton ();
17433 return 0;
17435 _ACEOF
17436 rm -f conftest.$ac_objext conftest$ac_exeext
17437 if { (ac_try="$ac_link"
17438 case "(($ac_try" in
17439 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17440 *) ac_try_echo=$ac_try;;
17441 esac
17442 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17443 (eval "$ac_link") 2>conftest.er1
17444 ac_status=$?
17445 grep -v '^ *+' conftest.er1 >conftest.err
17446 rm -f conftest.er1
17447 cat conftest.err >&5
17448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17449 (exit $ac_status); } && {
17450 test -z "$ac_c_werror_flag" ||
17451 test ! -s conftest.err
17452 } && test -s conftest$ac_exeext &&
17453 $as_test_x conftest$ac_exeext; then
17454 ac_cv_lib_resolv_inet_aton=yes
17455 else
17456 echo "$as_me: failed program was:" >&5
17457 sed 's/^/| /' conftest.$ac_ext >&5
17459 ac_cv_lib_resolv_inet_aton=no
17462 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17463 conftest$ac_exeext conftest.$ac_ext
17464 LIBS=$ac_check_lib_save_LIBS
17466 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_aton" >&5
17467 echo "${ECHO_T}$ac_cv_lib_resolv_inet_aton" >&6; }
17468 if test $ac_cv_lib_resolv_inet_aton = yes; then
17469 cat >>confdefs.h <<_ACEOF
17470 #define HAVE_LIBRESOLV 1
17471 _ACEOF
17473 LIBS="-lresolv $LIBS"
17481 # On Tru64, chflags seems to be present, but calling it will
17482 # exit Python
17483 { echo "$as_me:$LINENO: checking for chflags" >&5
17484 echo $ECHO_N "checking for chflags... $ECHO_C" >&6; }
17485 if test "$cross_compiling" = yes; then
17486 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
17487 See \`config.log' for more details." >&5
17488 echo "$as_me: error: cannot run test program while cross compiling
17489 See \`config.log' for more details." >&2;}
17490 { (exit 1); exit 1; }; }
17491 else
17492 cat >conftest.$ac_ext <<_ACEOF
17493 /* confdefs.h. */
17494 _ACEOF
17495 cat confdefs.h >>conftest.$ac_ext
17496 cat >>conftest.$ac_ext <<_ACEOF
17497 /* end confdefs.h. */
17499 #include <sys/stat.h>
17500 #include <unistd.h>
17501 int main(int argc, char*argv[])
17503 if(chflags(argv[0], 0) != 0)
17504 return 1;
17505 return 0;
17508 _ACEOF
17509 rm -f conftest$ac_exeext
17510 if { (ac_try="$ac_link"
17511 case "(($ac_try" in
17512 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17513 *) ac_try_echo=$ac_try;;
17514 esac
17515 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17516 (eval "$ac_link") 2>&5
17517 ac_status=$?
17518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17519 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17520 { (case "(($ac_try" in
17521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17522 *) ac_try_echo=$ac_try;;
17523 esac
17524 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17525 (eval "$ac_try") 2>&5
17526 ac_status=$?
17527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17528 (exit $ac_status); }; }; then
17530 cat >>confdefs.h <<\_ACEOF
17531 #define HAVE_CHFLAGS 1
17532 _ACEOF
17534 { echo "$as_me:$LINENO: result: yes" >&5
17535 echo "${ECHO_T}yes" >&6; }
17536 else
17537 echo "$as_me: program exited with status $ac_status" >&5
17538 echo "$as_me: failed program was:" >&5
17539 sed 's/^/| /' conftest.$ac_ext >&5
17541 ( exit $ac_status )
17542 { echo "$as_me:$LINENO: result: no" >&5
17543 echo "${ECHO_T}no" >&6; }
17546 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17551 { echo "$as_me:$LINENO: checking for lchflags" >&5
17552 echo $ECHO_N "checking for lchflags... $ECHO_C" >&6; }
17553 if test "$cross_compiling" = yes; then
17554 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
17555 See \`config.log' for more details." >&5
17556 echo "$as_me: error: cannot run test program while cross compiling
17557 See \`config.log' for more details." >&2;}
17558 { (exit 1); exit 1; }; }
17559 else
17560 cat >conftest.$ac_ext <<_ACEOF
17561 /* confdefs.h. */
17562 _ACEOF
17563 cat confdefs.h >>conftest.$ac_ext
17564 cat >>conftest.$ac_ext <<_ACEOF
17565 /* end confdefs.h. */
17567 #include <sys/stat.h>
17568 #include <unistd.h>
17569 int main(int argc, char*argv[])
17571 if(lchflags(argv[0], 0) != 0)
17572 return 1;
17573 return 0;
17576 _ACEOF
17577 rm -f conftest$ac_exeext
17578 if { (ac_try="$ac_link"
17579 case "(($ac_try" in
17580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17581 *) ac_try_echo=$ac_try;;
17582 esac
17583 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17584 (eval "$ac_link") 2>&5
17585 ac_status=$?
17586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17587 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17588 { (case "(($ac_try" in
17589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17590 *) ac_try_echo=$ac_try;;
17591 esac
17592 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17593 (eval "$ac_try") 2>&5
17594 ac_status=$?
17595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17596 (exit $ac_status); }; }; then
17598 cat >>confdefs.h <<\_ACEOF
17599 #define HAVE_LCHFLAGS 1
17600 _ACEOF
17602 { echo "$as_me:$LINENO: result: yes" >&5
17603 echo "${ECHO_T}yes" >&6; }
17604 else
17605 echo "$as_me: program exited with status $ac_status" >&5
17606 echo "$as_me: failed program was:" >&5
17607 sed 's/^/| /' conftest.$ac_ext >&5
17609 ( exit $ac_status )
17610 { echo "$as_me:$LINENO: result: no" >&5
17611 echo "${ECHO_T}no" >&6; }
17614 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17619 case $ac_sys_system/$ac_sys_release in
17620 Darwin/*)
17621 _CUR_CFLAGS="${CFLAGS}"
17622 _CUR_LDFLAGS="${LDFLAGS}"
17623 CFLAGS="${CFLAGS} -Wl,-search_paths_first"
17624 LDFLAGS="${LDFLAGS} -Wl,-search_paths_first -L/usr/local/lib"
17626 esac
17628 { echo "$as_me:$LINENO: checking for inflateCopy in -lz" >&5
17629 echo $ECHO_N "checking for inflateCopy in -lz... $ECHO_C" >&6; }
17630 if test "${ac_cv_lib_z_inflateCopy+set}" = set; then
17631 echo $ECHO_N "(cached) $ECHO_C" >&6
17632 else
17633 ac_check_lib_save_LIBS=$LIBS
17634 LIBS="-lz $LIBS"
17635 cat >conftest.$ac_ext <<_ACEOF
17636 /* confdefs.h. */
17637 _ACEOF
17638 cat confdefs.h >>conftest.$ac_ext
17639 cat >>conftest.$ac_ext <<_ACEOF
17640 /* end confdefs.h. */
17642 /* Override any GCC internal prototype to avoid an error.
17643 Use char because int might match the return type of a GCC
17644 builtin and then its argument prototype would still apply. */
17645 #ifdef __cplusplus
17646 extern "C"
17647 #endif
17648 char inflateCopy ();
17650 main ()
17652 return inflateCopy ();
17654 return 0;
17656 _ACEOF
17657 rm -f conftest.$ac_objext conftest$ac_exeext
17658 if { (ac_try="$ac_link"
17659 case "(($ac_try" in
17660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17661 *) ac_try_echo=$ac_try;;
17662 esac
17663 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17664 (eval "$ac_link") 2>conftest.er1
17665 ac_status=$?
17666 grep -v '^ *+' conftest.er1 >conftest.err
17667 rm -f conftest.er1
17668 cat conftest.err >&5
17669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17670 (exit $ac_status); } && {
17671 test -z "$ac_c_werror_flag" ||
17672 test ! -s conftest.err
17673 } && test -s conftest$ac_exeext &&
17674 $as_test_x conftest$ac_exeext; then
17675 ac_cv_lib_z_inflateCopy=yes
17676 else
17677 echo "$as_me: failed program was:" >&5
17678 sed 's/^/| /' conftest.$ac_ext >&5
17680 ac_cv_lib_z_inflateCopy=no
17683 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17684 conftest$ac_exeext conftest.$ac_ext
17685 LIBS=$ac_check_lib_save_LIBS
17687 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_inflateCopy" >&5
17688 echo "${ECHO_T}$ac_cv_lib_z_inflateCopy" >&6; }
17689 if test $ac_cv_lib_z_inflateCopy = yes; then
17691 cat >>confdefs.h <<\_ACEOF
17692 #define HAVE_ZLIB_COPY 1
17693 _ACEOF
17698 case $ac_sys_system/$ac_sys_release in
17699 Darwin/*)
17700 CFLAGS="${_CUR_CFLAGS}"
17701 LDFLAGS="${_CUR_LDFLAGS}"
17703 esac
17705 { echo "$as_me:$LINENO: checking for hstrerror" >&5
17706 echo $ECHO_N "checking for hstrerror... $ECHO_C" >&6; }
17707 cat >conftest.$ac_ext <<_ACEOF
17708 /* confdefs.h. */
17709 _ACEOF
17710 cat confdefs.h >>conftest.$ac_ext
17711 cat >>conftest.$ac_ext <<_ACEOF
17712 /* end confdefs.h. */
17714 #include "confdefs.h"
17715 #include <netdb.h>
17718 main ()
17720 void* p = hstrerror; hstrerror(0)
17722 return 0;
17724 _ACEOF
17725 rm -f conftest.$ac_objext conftest$ac_exeext
17726 if { (ac_try="$ac_link"
17727 case "(($ac_try" in
17728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17729 *) ac_try_echo=$ac_try;;
17730 esac
17731 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17732 (eval "$ac_link") 2>conftest.er1
17733 ac_status=$?
17734 grep -v '^ *+' conftest.er1 >conftest.err
17735 rm -f conftest.er1
17736 cat conftest.err >&5
17737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17738 (exit $ac_status); } && {
17739 test -z "$ac_c_werror_flag" ||
17740 test ! -s conftest.err
17741 } && test -s conftest$ac_exeext &&
17742 $as_test_x conftest$ac_exeext; then
17744 cat >>confdefs.h <<\_ACEOF
17745 #define HAVE_HSTRERROR 1
17746 _ACEOF
17748 { echo "$as_me:$LINENO: result: yes" >&5
17749 echo "${ECHO_T}yes" >&6; }
17750 else
17751 echo "$as_me: failed program was:" >&5
17752 sed 's/^/| /' conftest.$ac_ext >&5
17754 { echo "$as_me:$LINENO: result: no" >&5
17755 echo "${ECHO_T}no" >&6; }
17759 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17760 conftest$ac_exeext conftest.$ac_ext
17762 { echo "$as_me:$LINENO: checking for inet_aton" >&5
17763 echo $ECHO_N "checking for inet_aton... $ECHO_C" >&6; }
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. */
17771 #include "confdefs.h"
17772 #include <sys/types.h>
17773 #include <sys/socket.h>
17774 #include <netinet/in.h>
17775 #include <arpa/inet.h>
17778 main ()
17780 void* p = inet_aton;inet_aton(0,0)
17782 return 0;
17784 _ACEOF
17785 rm -f conftest.$ac_objext conftest$ac_exeext
17786 if { (ac_try="$ac_link"
17787 case "(($ac_try" in
17788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17789 *) ac_try_echo=$ac_try;;
17790 esac
17791 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17792 (eval "$ac_link") 2>conftest.er1
17793 ac_status=$?
17794 grep -v '^ *+' conftest.er1 >conftest.err
17795 rm -f conftest.er1
17796 cat conftest.err >&5
17797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17798 (exit $ac_status); } && {
17799 test -z "$ac_c_werror_flag" ||
17800 test ! -s conftest.err
17801 } && test -s conftest$ac_exeext &&
17802 $as_test_x conftest$ac_exeext; then
17804 cat >>confdefs.h <<\_ACEOF
17805 #define HAVE_INET_ATON 1
17806 _ACEOF
17808 { echo "$as_me:$LINENO: result: yes" >&5
17809 echo "${ECHO_T}yes" >&6; }
17810 else
17811 echo "$as_me: failed program was:" >&5
17812 sed 's/^/| /' conftest.$ac_ext >&5
17814 { echo "$as_me:$LINENO: result: no" >&5
17815 echo "${ECHO_T}no" >&6; }
17819 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17820 conftest$ac_exeext conftest.$ac_ext
17822 { echo "$as_me:$LINENO: checking for inet_pton" >&5
17823 echo $ECHO_N "checking for inet_pton... $ECHO_C" >&6; }
17824 cat >conftest.$ac_ext <<_ACEOF
17825 /* confdefs.h. */
17826 _ACEOF
17827 cat confdefs.h >>conftest.$ac_ext
17828 cat >>conftest.$ac_ext <<_ACEOF
17829 /* end confdefs.h. */
17831 #include "confdefs.h"
17832 #include <sys/types.h>
17833 #include <sys/socket.h>
17834 #include <netinet/in.h>
17835 #include <arpa/inet.h>
17838 main ()
17840 void* p = inet_pton
17842 return 0;
17844 _ACEOF
17845 rm -f conftest.$ac_objext
17846 if { (ac_try="$ac_compile"
17847 case "(($ac_try" in
17848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17849 *) ac_try_echo=$ac_try;;
17850 esac
17851 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17852 (eval "$ac_compile") 2>conftest.er1
17853 ac_status=$?
17854 grep -v '^ *+' conftest.er1 >conftest.err
17855 rm -f conftest.er1
17856 cat conftest.err >&5
17857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17858 (exit $ac_status); } && {
17859 test -z "$ac_c_werror_flag" ||
17860 test ! -s conftest.err
17861 } && test -s conftest.$ac_objext; then
17863 cat >>confdefs.h <<\_ACEOF
17864 #define HAVE_INET_PTON 1
17865 _ACEOF
17867 { echo "$as_me:$LINENO: result: yes" >&5
17868 echo "${ECHO_T}yes" >&6; }
17869 else
17870 echo "$as_me: failed program was:" >&5
17871 sed 's/^/| /' conftest.$ac_ext >&5
17873 { echo "$as_me:$LINENO: result: no" >&5
17874 echo "${ECHO_T}no" >&6; }
17878 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17880 # On some systems, setgroups is in unistd.h, on others, in grp.h
17881 { echo "$as_me:$LINENO: checking for setgroups" >&5
17882 echo $ECHO_N "checking for setgroups... $ECHO_C" >&6; }
17883 cat >conftest.$ac_ext <<_ACEOF
17884 /* confdefs.h. */
17885 _ACEOF
17886 cat confdefs.h >>conftest.$ac_ext
17887 cat >>conftest.$ac_ext <<_ACEOF
17888 /* end confdefs.h. */
17890 #include "confdefs.h"
17891 #include <unistd.h>
17892 #ifdef HAVE_GRP_H
17893 #include <grp.h>
17894 #endif
17897 main ()
17899 void* p = setgroups
17901 return 0;
17903 _ACEOF
17904 rm -f conftest.$ac_objext
17905 if { (ac_try="$ac_compile"
17906 case "(($ac_try" in
17907 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17908 *) ac_try_echo=$ac_try;;
17909 esac
17910 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17911 (eval "$ac_compile") 2>conftest.er1
17912 ac_status=$?
17913 grep -v '^ *+' conftest.er1 >conftest.err
17914 rm -f conftest.er1
17915 cat conftest.err >&5
17916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17917 (exit $ac_status); } && {
17918 test -z "$ac_c_werror_flag" ||
17919 test ! -s conftest.err
17920 } && test -s conftest.$ac_objext; then
17922 cat >>confdefs.h <<\_ACEOF
17923 #define HAVE_SETGROUPS 1
17924 _ACEOF
17926 { echo "$as_me:$LINENO: result: yes" >&5
17927 echo "${ECHO_T}yes" >&6; }
17928 else
17929 echo "$as_me: failed program was:" >&5
17930 sed 's/^/| /' conftest.$ac_ext >&5
17932 { echo "$as_me:$LINENO: result: no" >&5
17933 echo "${ECHO_T}no" >&6; }
17937 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17939 # check for openpty and forkpty
17942 for ac_func in openpty
17944 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17945 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17946 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17947 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17948 echo $ECHO_N "(cached) $ECHO_C" >&6
17949 else
17950 cat >conftest.$ac_ext <<_ACEOF
17951 /* confdefs.h. */
17952 _ACEOF
17953 cat confdefs.h >>conftest.$ac_ext
17954 cat >>conftest.$ac_ext <<_ACEOF
17955 /* end confdefs.h. */
17956 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17957 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17958 #define $ac_func innocuous_$ac_func
17960 /* System header to define __stub macros and hopefully few prototypes,
17961 which can conflict with char $ac_func (); below.
17962 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17963 <limits.h> exists even on freestanding compilers. */
17965 #ifdef __STDC__
17966 # include <limits.h>
17967 #else
17968 # include <assert.h>
17969 #endif
17971 #undef $ac_func
17973 /* Override any GCC internal prototype to avoid an error.
17974 Use char because int might match the return type of a GCC
17975 builtin and then its argument prototype would still apply. */
17976 #ifdef __cplusplus
17977 extern "C"
17978 #endif
17979 char $ac_func ();
17980 /* The GNU C library defines this for functions which it implements
17981 to always fail with ENOSYS. Some functions are actually named
17982 something starting with __ and the normal name is an alias. */
17983 #if defined __stub_$ac_func || defined __stub___$ac_func
17984 choke me
17985 #endif
17988 main ()
17990 return $ac_func ();
17992 return 0;
17994 _ACEOF
17995 rm -f conftest.$ac_objext conftest$ac_exeext
17996 if { (ac_try="$ac_link"
17997 case "(($ac_try" in
17998 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17999 *) ac_try_echo=$ac_try;;
18000 esac
18001 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18002 (eval "$ac_link") 2>conftest.er1
18003 ac_status=$?
18004 grep -v '^ *+' conftest.er1 >conftest.err
18005 rm -f conftest.er1
18006 cat conftest.err >&5
18007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18008 (exit $ac_status); } && {
18009 test -z "$ac_c_werror_flag" ||
18010 test ! -s conftest.err
18011 } && test -s conftest$ac_exeext &&
18012 $as_test_x conftest$ac_exeext; then
18013 eval "$as_ac_var=yes"
18014 else
18015 echo "$as_me: failed program was:" >&5
18016 sed 's/^/| /' conftest.$ac_ext >&5
18018 eval "$as_ac_var=no"
18021 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18022 conftest$ac_exeext conftest.$ac_ext
18024 ac_res=`eval echo '${'$as_ac_var'}'`
18025 { echo "$as_me:$LINENO: result: $ac_res" >&5
18026 echo "${ECHO_T}$ac_res" >&6; }
18027 if test `eval echo '${'$as_ac_var'}'` = yes; then
18028 cat >>confdefs.h <<_ACEOF
18029 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18030 _ACEOF
18032 else
18033 { echo "$as_me:$LINENO: checking for openpty in -lutil" >&5
18034 echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6; }
18035 if test "${ac_cv_lib_util_openpty+set}" = set; then
18036 echo $ECHO_N "(cached) $ECHO_C" >&6
18037 else
18038 ac_check_lib_save_LIBS=$LIBS
18039 LIBS="-lutil $LIBS"
18040 cat >conftest.$ac_ext <<_ACEOF
18041 /* confdefs.h. */
18042 _ACEOF
18043 cat confdefs.h >>conftest.$ac_ext
18044 cat >>conftest.$ac_ext <<_ACEOF
18045 /* end confdefs.h. */
18047 /* Override any GCC internal prototype to avoid an error.
18048 Use char because int might match the return type of a GCC
18049 builtin and then its argument prototype would still apply. */
18050 #ifdef __cplusplus
18051 extern "C"
18052 #endif
18053 char openpty ();
18055 main ()
18057 return openpty ();
18059 return 0;
18061 _ACEOF
18062 rm -f conftest.$ac_objext conftest$ac_exeext
18063 if { (ac_try="$ac_link"
18064 case "(($ac_try" in
18065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18066 *) ac_try_echo=$ac_try;;
18067 esac
18068 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18069 (eval "$ac_link") 2>conftest.er1
18070 ac_status=$?
18071 grep -v '^ *+' conftest.er1 >conftest.err
18072 rm -f conftest.er1
18073 cat conftest.err >&5
18074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18075 (exit $ac_status); } && {
18076 test -z "$ac_c_werror_flag" ||
18077 test ! -s conftest.err
18078 } && test -s conftest$ac_exeext &&
18079 $as_test_x conftest$ac_exeext; then
18080 ac_cv_lib_util_openpty=yes
18081 else
18082 echo "$as_me: failed program was:" >&5
18083 sed 's/^/| /' conftest.$ac_ext >&5
18085 ac_cv_lib_util_openpty=no
18088 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18089 conftest$ac_exeext conftest.$ac_ext
18090 LIBS=$ac_check_lib_save_LIBS
18092 { echo "$as_me:$LINENO: result: $ac_cv_lib_util_openpty" >&5
18093 echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6; }
18094 if test $ac_cv_lib_util_openpty = yes; then
18095 cat >>confdefs.h <<\_ACEOF
18096 #define HAVE_OPENPTY 1
18097 _ACEOF
18098 LIBS="$LIBS -lutil"
18099 else
18100 { echo "$as_me:$LINENO: checking for openpty in -lbsd" >&5
18101 echo $ECHO_N "checking for openpty in -lbsd... $ECHO_C" >&6; }
18102 if test "${ac_cv_lib_bsd_openpty+set}" = set; then
18103 echo $ECHO_N "(cached) $ECHO_C" >&6
18104 else
18105 ac_check_lib_save_LIBS=$LIBS
18106 LIBS="-lbsd $LIBS"
18107 cat >conftest.$ac_ext <<_ACEOF
18108 /* confdefs.h. */
18109 _ACEOF
18110 cat confdefs.h >>conftest.$ac_ext
18111 cat >>conftest.$ac_ext <<_ACEOF
18112 /* end confdefs.h. */
18114 /* Override any GCC internal prototype to avoid an error.
18115 Use char because int might match the return type of a GCC
18116 builtin and then its argument prototype would still apply. */
18117 #ifdef __cplusplus
18118 extern "C"
18119 #endif
18120 char openpty ();
18122 main ()
18124 return openpty ();
18126 return 0;
18128 _ACEOF
18129 rm -f conftest.$ac_objext conftest$ac_exeext
18130 if { (ac_try="$ac_link"
18131 case "(($ac_try" in
18132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18133 *) ac_try_echo=$ac_try;;
18134 esac
18135 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18136 (eval "$ac_link") 2>conftest.er1
18137 ac_status=$?
18138 grep -v '^ *+' conftest.er1 >conftest.err
18139 rm -f conftest.er1
18140 cat conftest.err >&5
18141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18142 (exit $ac_status); } && {
18143 test -z "$ac_c_werror_flag" ||
18144 test ! -s conftest.err
18145 } && test -s conftest$ac_exeext &&
18146 $as_test_x conftest$ac_exeext; then
18147 ac_cv_lib_bsd_openpty=yes
18148 else
18149 echo "$as_me: failed program was:" >&5
18150 sed 's/^/| /' conftest.$ac_ext >&5
18152 ac_cv_lib_bsd_openpty=no
18155 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18156 conftest$ac_exeext conftest.$ac_ext
18157 LIBS=$ac_check_lib_save_LIBS
18159 { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_openpty" >&5
18160 echo "${ECHO_T}$ac_cv_lib_bsd_openpty" >&6; }
18161 if test $ac_cv_lib_bsd_openpty = yes; then
18162 cat >>confdefs.h <<\_ACEOF
18163 #define HAVE_OPENPTY 1
18164 _ACEOF
18165 LIBS="$LIBS -lbsd"
18173 done
18176 for ac_func in forkpty
18178 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18179 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18180 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18181 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18182 echo $ECHO_N "(cached) $ECHO_C" >&6
18183 else
18184 cat >conftest.$ac_ext <<_ACEOF
18185 /* confdefs.h. */
18186 _ACEOF
18187 cat confdefs.h >>conftest.$ac_ext
18188 cat >>conftest.$ac_ext <<_ACEOF
18189 /* end confdefs.h. */
18190 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18191 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18192 #define $ac_func innocuous_$ac_func
18194 /* System header to define __stub macros and hopefully few prototypes,
18195 which can conflict with char $ac_func (); below.
18196 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18197 <limits.h> exists even on freestanding compilers. */
18199 #ifdef __STDC__
18200 # include <limits.h>
18201 #else
18202 # include <assert.h>
18203 #endif
18205 #undef $ac_func
18207 /* Override any GCC internal prototype to avoid an error.
18208 Use char because int might match the return type of a GCC
18209 builtin and then its argument prototype would still apply. */
18210 #ifdef __cplusplus
18211 extern "C"
18212 #endif
18213 char $ac_func ();
18214 /* The GNU C library defines this for functions which it implements
18215 to always fail with ENOSYS. Some functions are actually named
18216 something starting with __ and the normal name is an alias. */
18217 #if defined __stub_$ac_func || defined __stub___$ac_func
18218 choke me
18219 #endif
18222 main ()
18224 return $ac_func ();
18226 return 0;
18228 _ACEOF
18229 rm -f conftest.$ac_objext conftest$ac_exeext
18230 if { (ac_try="$ac_link"
18231 case "(($ac_try" in
18232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18233 *) ac_try_echo=$ac_try;;
18234 esac
18235 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18236 (eval "$ac_link") 2>conftest.er1
18237 ac_status=$?
18238 grep -v '^ *+' conftest.er1 >conftest.err
18239 rm -f conftest.er1
18240 cat conftest.err >&5
18241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18242 (exit $ac_status); } && {
18243 test -z "$ac_c_werror_flag" ||
18244 test ! -s conftest.err
18245 } && test -s conftest$ac_exeext &&
18246 $as_test_x conftest$ac_exeext; then
18247 eval "$as_ac_var=yes"
18248 else
18249 echo "$as_me: failed program was:" >&5
18250 sed 's/^/| /' conftest.$ac_ext >&5
18252 eval "$as_ac_var=no"
18255 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18256 conftest$ac_exeext conftest.$ac_ext
18258 ac_res=`eval echo '${'$as_ac_var'}'`
18259 { echo "$as_me:$LINENO: result: $ac_res" >&5
18260 echo "${ECHO_T}$ac_res" >&6; }
18261 if test `eval echo '${'$as_ac_var'}'` = yes; then
18262 cat >>confdefs.h <<_ACEOF
18263 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18264 _ACEOF
18266 else
18267 { echo "$as_me:$LINENO: checking for forkpty in -lutil" >&5
18268 echo $ECHO_N "checking for forkpty in -lutil... $ECHO_C" >&6; }
18269 if test "${ac_cv_lib_util_forkpty+set}" = set; then
18270 echo $ECHO_N "(cached) $ECHO_C" >&6
18271 else
18272 ac_check_lib_save_LIBS=$LIBS
18273 LIBS="-lutil $LIBS"
18274 cat >conftest.$ac_ext <<_ACEOF
18275 /* confdefs.h. */
18276 _ACEOF
18277 cat confdefs.h >>conftest.$ac_ext
18278 cat >>conftest.$ac_ext <<_ACEOF
18279 /* end confdefs.h. */
18281 /* Override any GCC internal prototype to avoid an error.
18282 Use char because int might match the return type of a GCC
18283 builtin and then its argument prototype would still apply. */
18284 #ifdef __cplusplus
18285 extern "C"
18286 #endif
18287 char forkpty ();
18289 main ()
18291 return forkpty ();
18293 return 0;
18295 _ACEOF
18296 rm -f conftest.$ac_objext conftest$ac_exeext
18297 if { (ac_try="$ac_link"
18298 case "(($ac_try" in
18299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18300 *) ac_try_echo=$ac_try;;
18301 esac
18302 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18303 (eval "$ac_link") 2>conftest.er1
18304 ac_status=$?
18305 grep -v '^ *+' conftest.er1 >conftest.err
18306 rm -f conftest.er1
18307 cat conftest.err >&5
18308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18309 (exit $ac_status); } && {
18310 test -z "$ac_c_werror_flag" ||
18311 test ! -s conftest.err
18312 } && test -s conftest$ac_exeext &&
18313 $as_test_x conftest$ac_exeext; then
18314 ac_cv_lib_util_forkpty=yes
18315 else
18316 echo "$as_me: failed program was:" >&5
18317 sed 's/^/| /' conftest.$ac_ext >&5
18319 ac_cv_lib_util_forkpty=no
18322 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18323 conftest$ac_exeext conftest.$ac_ext
18324 LIBS=$ac_check_lib_save_LIBS
18326 { echo "$as_me:$LINENO: result: $ac_cv_lib_util_forkpty" >&5
18327 echo "${ECHO_T}$ac_cv_lib_util_forkpty" >&6; }
18328 if test $ac_cv_lib_util_forkpty = yes; then
18329 cat >>confdefs.h <<\_ACEOF
18330 #define HAVE_FORKPTY 1
18331 _ACEOF
18332 LIBS="$LIBS -lutil"
18333 else
18334 { echo "$as_me:$LINENO: checking for forkpty in -lbsd" >&5
18335 echo $ECHO_N "checking for forkpty in -lbsd... $ECHO_C" >&6; }
18336 if test "${ac_cv_lib_bsd_forkpty+set}" = set; then
18337 echo $ECHO_N "(cached) $ECHO_C" >&6
18338 else
18339 ac_check_lib_save_LIBS=$LIBS
18340 LIBS="-lbsd $LIBS"
18341 cat >conftest.$ac_ext <<_ACEOF
18342 /* confdefs.h. */
18343 _ACEOF
18344 cat confdefs.h >>conftest.$ac_ext
18345 cat >>conftest.$ac_ext <<_ACEOF
18346 /* end confdefs.h. */
18348 /* Override any GCC internal prototype to avoid an error.
18349 Use char because int might match the return type of a GCC
18350 builtin and then its argument prototype would still apply. */
18351 #ifdef __cplusplus
18352 extern "C"
18353 #endif
18354 char forkpty ();
18356 main ()
18358 return forkpty ();
18360 return 0;
18362 _ACEOF
18363 rm -f conftest.$ac_objext conftest$ac_exeext
18364 if { (ac_try="$ac_link"
18365 case "(($ac_try" in
18366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18367 *) ac_try_echo=$ac_try;;
18368 esac
18369 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18370 (eval "$ac_link") 2>conftest.er1
18371 ac_status=$?
18372 grep -v '^ *+' conftest.er1 >conftest.err
18373 rm -f conftest.er1
18374 cat conftest.err >&5
18375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18376 (exit $ac_status); } && {
18377 test -z "$ac_c_werror_flag" ||
18378 test ! -s conftest.err
18379 } && test -s conftest$ac_exeext &&
18380 $as_test_x conftest$ac_exeext; then
18381 ac_cv_lib_bsd_forkpty=yes
18382 else
18383 echo "$as_me: failed program was:" >&5
18384 sed 's/^/| /' conftest.$ac_ext >&5
18386 ac_cv_lib_bsd_forkpty=no
18389 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18390 conftest$ac_exeext conftest.$ac_ext
18391 LIBS=$ac_check_lib_save_LIBS
18393 { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_forkpty" >&5
18394 echo "${ECHO_T}$ac_cv_lib_bsd_forkpty" >&6; }
18395 if test $ac_cv_lib_bsd_forkpty = yes; then
18396 cat >>confdefs.h <<\_ACEOF
18397 #define HAVE_FORKPTY 1
18398 _ACEOF
18399 LIBS="$LIBS -lbsd"
18407 done
18410 # Stuff for expat.
18412 for ac_func in memmove
18414 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18415 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18416 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18417 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18418 echo $ECHO_N "(cached) $ECHO_C" >&6
18419 else
18420 cat >conftest.$ac_ext <<_ACEOF
18421 /* confdefs.h. */
18422 _ACEOF
18423 cat confdefs.h >>conftest.$ac_ext
18424 cat >>conftest.$ac_ext <<_ACEOF
18425 /* end confdefs.h. */
18426 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18427 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18428 #define $ac_func innocuous_$ac_func
18430 /* System header to define __stub macros and hopefully few prototypes,
18431 which can conflict with char $ac_func (); below.
18432 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18433 <limits.h> exists even on freestanding compilers. */
18435 #ifdef __STDC__
18436 # include <limits.h>
18437 #else
18438 # include <assert.h>
18439 #endif
18441 #undef $ac_func
18443 /* Override any GCC internal prototype to avoid an error.
18444 Use char because int might match the return type of a GCC
18445 builtin and then its argument prototype would still apply. */
18446 #ifdef __cplusplus
18447 extern "C"
18448 #endif
18449 char $ac_func ();
18450 /* The GNU C library defines this for functions which it implements
18451 to always fail with ENOSYS. Some functions are actually named
18452 something starting with __ and the normal name is an alias. */
18453 #if defined __stub_$ac_func || defined __stub___$ac_func
18454 choke me
18455 #endif
18458 main ()
18460 return $ac_func ();
18462 return 0;
18464 _ACEOF
18465 rm -f conftest.$ac_objext conftest$ac_exeext
18466 if { (ac_try="$ac_link"
18467 case "(($ac_try" in
18468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18469 *) ac_try_echo=$ac_try;;
18470 esac
18471 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18472 (eval "$ac_link") 2>conftest.er1
18473 ac_status=$?
18474 grep -v '^ *+' conftest.er1 >conftest.err
18475 rm -f conftest.er1
18476 cat conftest.err >&5
18477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18478 (exit $ac_status); } && {
18479 test -z "$ac_c_werror_flag" ||
18480 test ! -s conftest.err
18481 } && test -s conftest$ac_exeext &&
18482 $as_test_x conftest$ac_exeext; then
18483 eval "$as_ac_var=yes"
18484 else
18485 echo "$as_me: failed program was:" >&5
18486 sed 's/^/| /' conftest.$ac_ext >&5
18488 eval "$as_ac_var=no"
18491 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18492 conftest$ac_exeext conftest.$ac_ext
18494 ac_res=`eval echo '${'$as_ac_var'}'`
18495 { echo "$as_me:$LINENO: result: $ac_res" >&5
18496 echo "${ECHO_T}$ac_res" >&6; }
18497 if test `eval echo '${'$as_ac_var'}'` = yes; then
18498 cat >>confdefs.h <<_ACEOF
18499 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18500 _ACEOF
18503 done
18506 # check for long file support functions
18513 for ac_func in fseek64 fseeko fstatvfs ftell64 ftello statvfs
18515 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18516 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18517 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18518 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18519 echo $ECHO_N "(cached) $ECHO_C" >&6
18520 else
18521 cat >conftest.$ac_ext <<_ACEOF
18522 /* confdefs.h. */
18523 _ACEOF
18524 cat confdefs.h >>conftest.$ac_ext
18525 cat >>conftest.$ac_ext <<_ACEOF
18526 /* end confdefs.h. */
18527 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18528 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18529 #define $ac_func innocuous_$ac_func
18531 /* System header to define __stub macros and hopefully few prototypes,
18532 which can conflict with char $ac_func (); below.
18533 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18534 <limits.h> exists even on freestanding compilers. */
18536 #ifdef __STDC__
18537 # include <limits.h>
18538 #else
18539 # include <assert.h>
18540 #endif
18542 #undef $ac_func
18544 /* Override any GCC internal prototype to avoid an error.
18545 Use char because int might match the return type of a GCC
18546 builtin and then its argument prototype would still apply. */
18547 #ifdef __cplusplus
18548 extern "C"
18549 #endif
18550 char $ac_func ();
18551 /* The GNU C library defines this for functions which it implements
18552 to always fail with ENOSYS. Some functions are actually named
18553 something starting with __ and the normal name is an alias. */
18554 #if defined __stub_$ac_func || defined __stub___$ac_func
18555 choke me
18556 #endif
18559 main ()
18561 return $ac_func ();
18563 return 0;
18565 _ACEOF
18566 rm -f conftest.$ac_objext conftest$ac_exeext
18567 if { (ac_try="$ac_link"
18568 case "(($ac_try" in
18569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18570 *) ac_try_echo=$ac_try;;
18571 esac
18572 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18573 (eval "$ac_link") 2>conftest.er1
18574 ac_status=$?
18575 grep -v '^ *+' conftest.er1 >conftest.err
18576 rm -f conftest.er1
18577 cat conftest.err >&5
18578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18579 (exit $ac_status); } && {
18580 test -z "$ac_c_werror_flag" ||
18581 test ! -s conftest.err
18582 } && test -s conftest$ac_exeext &&
18583 $as_test_x conftest$ac_exeext; then
18584 eval "$as_ac_var=yes"
18585 else
18586 echo "$as_me: failed program was:" >&5
18587 sed 's/^/| /' conftest.$ac_ext >&5
18589 eval "$as_ac_var=no"
18592 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18593 conftest$ac_exeext conftest.$ac_ext
18595 ac_res=`eval echo '${'$as_ac_var'}'`
18596 { echo "$as_me:$LINENO: result: $ac_res" >&5
18597 echo "${ECHO_T}$ac_res" >&6; }
18598 if test `eval echo '${'$as_ac_var'}'` = yes; then
18599 cat >>confdefs.h <<_ACEOF
18600 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18601 _ACEOF
18604 done
18610 for ac_func in dup2 getcwd strdup
18612 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18613 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18614 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18615 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18616 echo $ECHO_N "(cached) $ECHO_C" >&6
18617 else
18618 cat >conftest.$ac_ext <<_ACEOF
18619 /* confdefs.h. */
18620 _ACEOF
18621 cat confdefs.h >>conftest.$ac_ext
18622 cat >>conftest.$ac_ext <<_ACEOF
18623 /* end confdefs.h. */
18624 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18625 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18626 #define $ac_func innocuous_$ac_func
18628 /* System header to define __stub macros and hopefully few prototypes,
18629 which can conflict with char $ac_func (); below.
18630 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18631 <limits.h> exists even on freestanding compilers. */
18633 #ifdef __STDC__
18634 # include <limits.h>
18635 #else
18636 # include <assert.h>
18637 #endif
18639 #undef $ac_func
18641 /* Override any GCC internal prototype to avoid an error.
18642 Use char because int might match the return type of a GCC
18643 builtin and then its argument prototype would still apply. */
18644 #ifdef __cplusplus
18645 extern "C"
18646 #endif
18647 char $ac_func ();
18648 /* The GNU C library defines this for functions which it implements
18649 to always fail with ENOSYS. Some functions are actually named
18650 something starting with __ and the normal name is an alias. */
18651 #if defined __stub_$ac_func || defined __stub___$ac_func
18652 choke me
18653 #endif
18656 main ()
18658 return $ac_func ();
18660 return 0;
18662 _ACEOF
18663 rm -f conftest.$ac_objext conftest$ac_exeext
18664 if { (ac_try="$ac_link"
18665 case "(($ac_try" in
18666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18667 *) ac_try_echo=$ac_try;;
18668 esac
18669 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18670 (eval "$ac_link") 2>conftest.er1
18671 ac_status=$?
18672 grep -v '^ *+' conftest.er1 >conftest.err
18673 rm -f conftest.er1
18674 cat conftest.err >&5
18675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18676 (exit $ac_status); } && {
18677 test -z "$ac_c_werror_flag" ||
18678 test ! -s conftest.err
18679 } && test -s conftest$ac_exeext &&
18680 $as_test_x conftest$ac_exeext; then
18681 eval "$as_ac_var=yes"
18682 else
18683 echo "$as_me: failed program was:" >&5
18684 sed 's/^/| /' conftest.$ac_ext >&5
18686 eval "$as_ac_var=no"
18689 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18690 conftest$ac_exeext conftest.$ac_ext
18692 ac_res=`eval echo '${'$as_ac_var'}'`
18693 { echo "$as_me:$LINENO: result: $ac_res" >&5
18694 echo "${ECHO_T}$ac_res" >&6; }
18695 if test `eval echo '${'$as_ac_var'}'` = yes; then
18696 cat >>confdefs.h <<_ACEOF
18697 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18698 _ACEOF
18700 else
18701 case " $LIBOBJS " in
18702 *" $ac_func.$ac_objext "* ) ;;
18703 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
18705 esac
18708 done
18712 for ac_func in getpgrp
18714 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18715 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18716 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18717 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18718 echo $ECHO_N "(cached) $ECHO_C" >&6
18719 else
18720 cat >conftest.$ac_ext <<_ACEOF
18721 /* confdefs.h. */
18722 _ACEOF
18723 cat confdefs.h >>conftest.$ac_ext
18724 cat >>conftest.$ac_ext <<_ACEOF
18725 /* end confdefs.h. */
18726 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18727 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18728 #define $ac_func innocuous_$ac_func
18730 /* System header to define __stub macros and hopefully few prototypes,
18731 which can conflict with char $ac_func (); below.
18732 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18733 <limits.h> exists even on freestanding compilers. */
18735 #ifdef __STDC__
18736 # include <limits.h>
18737 #else
18738 # include <assert.h>
18739 #endif
18741 #undef $ac_func
18743 /* Override any GCC internal prototype to avoid an error.
18744 Use char because int might match the return type of a GCC
18745 builtin and then its argument prototype would still apply. */
18746 #ifdef __cplusplus
18747 extern "C"
18748 #endif
18749 char $ac_func ();
18750 /* The GNU C library defines this for functions which it implements
18751 to always fail with ENOSYS. Some functions are actually named
18752 something starting with __ and the normal name is an alias. */
18753 #if defined __stub_$ac_func || defined __stub___$ac_func
18754 choke me
18755 #endif
18758 main ()
18760 return $ac_func ();
18762 return 0;
18764 _ACEOF
18765 rm -f conftest.$ac_objext conftest$ac_exeext
18766 if { (ac_try="$ac_link"
18767 case "(($ac_try" in
18768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18769 *) ac_try_echo=$ac_try;;
18770 esac
18771 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18772 (eval "$ac_link") 2>conftest.er1
18773 ac_status=$?
18774 grep -v '^ *+' conftest.er1 >conftest.err
18775 rm -f conftest.er1
18776 cat conftest.err >&5
18777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18778 (exit $ac_status); } && {
18779 test -z "$ac_c_werror_flag" ||
18780 test ! -s conftest.err
18781 } && test -s conftest$ac_exeext &&
18782 $as_test_x conftest$ac_exeext; then
18783 eval "$as_ac_var=yes"
18784 else
18785 echo "$as_me: failed program was:" >&5
18786 sed 's/^/| /' conftest.$ac_ext >&5
18788 eval "$as_ac_var=no"
18791 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18792 conftest$ac_exeext conftest.$ac_ext
18794 ac_res=`eval echo '${'$as_ac_var'}'`
18795 { echo "$as_me:$LINENO: result: $ac_res" >&5
18796 echo "${ECHO_T}$ac_res" >&6; }
18797 if test `eval echo '${'$as_ac_var'}'` = yes; then
18798 cat >>confdefs.h <<_ACEOF
18799 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18800 _ACEOF
18801 cat >conftest.$ac_ext <<_ACEOF
18802 /* confdefs.h. */
18803 _ACEOF
18804 cat confdefs.h >>conftest.$ac_ext
18805 cat >>conftest.$ac_ext <<_ACEOF
18806 /* end confdefs.h. */
18807 #include <unistd.h>
18809 main ()
18811 getpgrp(0);
18813 return 0;
18815 _ACEOF
18816 rm -f conftest.$ac_objext
18817 if { (ac_try="$ac_compile"
18818 case "(($ac_try" in
18819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18820 *) ac_try_echo=$ac_try;;
18821 esac
18822 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18823 (eval "$ac_compile") 2>conftest.er1
18824 ac_status=$?
18825 grep -v '^ *+' conftest.er1 >conftest.err
18826 rm -f conftest.er1
18827 cat conftest.err >&5
18828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18829 (exit $ac_status); } && {
18830 test -z "$ac_c_werror_flag" ||
18831 test ! -s conftest.err
18832 } && test -s conftest.$ac_objext; then
18834 cat >>confdefs.h <<\_ACEOF
18835 #define GETPGRP_HAVE_ARG 1
18836 _ACEOF
18839 else
18840 echo "$as_me: failed program was:" >&5
18841 sed 's/^/| /' conftest.$ac_ext >&5
18846 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18849 done
18852 for ac_func in setpgrp
18854 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18855 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18856 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18857 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18858 echo $ECHO_N "(cached) $ECHO_C" >&6
18859 else
18860 cat >conftest.$ac_ext <<_ACEOF
18861 /* confdefs.h. */
18862 _ACEOF
18863 cat confdefs.h >>conftest.$ac_ext
18864 cat >>conftest.$ac_ext <<_ACEOF
18865 /* end confdefs.h. */
18866 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18867 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18868 #define $ac_func innocuous_$ac_func
18870 /* System header to define __stub macros and hopefully few prototypes,
18871 which can conflict with char $ac_func (); below.
18872 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18873 <limits.h> exists even on freestanding compilers. */
18875 #ifdef __STDC__
18876 # include <limits.h>
18877 #else
18878 # include <assert.h>
18879 #endif
18881 #undef $ac_func
18883 /* Override any GCC internal prototype to avoid an error.
18884 Use char because int might match the return type of a GCC
18885 builtin and then its argument prototype would still apply. */
18886 #ifdef __cplusplus
18887 extern "C"
18888 #endif
18889 char $ac_func ();
18890 /* The GNU C library defines this for functions which it implements
18891 to always fail with ENOSYS. Some functions are actually named
18892 something starting with __ and the normal name is an alias. */
18893 #if defined __stub_$ac_func || defined __stub___$ac_func
18894 choke me
18895 #endif
18898 main ()
18900 return $ac_func ();
18902 return 0;
18904 _ACEOF
18905 rm -f conftest.$ac_objext conftest$ac_exeext
18906 if { (ac_try="$ac_link"
18907 case "(($ac_try" in
18908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18909 *) ac_try_echo=$ac_try;;
18910 esac
18911 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18912 (eval "$ac_link") 2>conftest.er1
18913 ac_status=$?
18914 grep -v '^ *+' conftest.er1 >conftest.err
18915 rm -f conftest.er1
18916 cat conftest.err >&5
18917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18918 (exit $ac_status); } && {
18919 test -z "$ac_c_werror_flag" ||
18920 test ! -s conftest.err
18921 } && test -s conftest$ac_exeext &&
18922 $as_test_x conftest$ac_exeext; then
18923 eval "$as_ac_var=yes"
18924 else
18925 echo "$as_me: failed program was:" >&5
18926 sed 's/^/| /' conftest.$ac_ext >&5
18928 eval "$as_ac_var=no"
18931 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18932 conftest$ac_exeext conftest.$ac_ext
18934 ac_res=`eval echo '${'$as_ac_var'}'`
18935 { echo "$as_me:$LINENO: result: $ac_res" >&5
18936 echo "${ECHO_T}$ac_res" >&6; }
18937 if test `eval echo '${'$as_ac_var'}'` = yes; then
18938 cat >>confdefs.h <<_ACEOF
18939 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18940 _ACEOF
18941 cat >conftest.$ac_ext <<_ACEOF
18942 /* confdefs.h. */
18943 _ACEOF
18944 cat confdefs.h >>conftest.$ac_ext
18945 cat >>conftest.$ac_ext <<_ACEOF
18946 /* end confdefs.h. */
18947 #include <unistd.h>
18949 main ()
18951 setpgrp(0,0);
18953 return 0;
18955 _ACEOF
18956 rm -f conftest.$ac_objext
18957 if { (ac_try="$ac_compile"
18958 case "(($ac_try" in
18959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18960 *) ac_try_echo=$ac_try;;
18961 esac
18962 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18963 (eval "$ac_compile") 2>conftest.er1
18964 ac_status=$?
18965 grep -v '^ *+' conftest.er1 >conftest.err
18966 rm -f conftest.er1
18967 cat conftest.err >&5
18968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18969 (exit $ac_status); } && {
18970 test -z "$ac_c_werror_flag" ||
18971 test ! -s conftest.err
18972 } && test -s conftest.$ac_objext; then
18974 cat >>confdefs.h <<\_ACEOF
18975 #define SETPGRP_HAVE_ARG 1
18976 _ACEOF
18979 else
18980 echo "$as_me: failed program was:" >&5
18981 sed 's/^/| /' conftest.$ac_ext >&5
18986 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18989 done
18992 for ac_func in gettimeofday
18994 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18995 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18996 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18997 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18998 echo $ECHO_N "(cached) $ECHO_C" >&6
18999 else
19000 cat >conftest.$ac_ext <<_ACEOF
19001 /* confdefs.h. */
19002 _ACEOF
19003 cat confdefs.h >>conftest.$ac_ext
19004 cat >>conftest.$ac_ext <<_ACEOF
19005 /* end confdefs.h. */
19006 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19007 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19008 #define $ac_func innocuous_$ac_func
19010 /* System header to define __stub macros and hopefully few prototypes,
19011 which can conflict with char $ac_func (); below.
19012 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19013 <limits.h> exists even on freestanding compilers. */
19015 #ifdef __STDC__
19016 # include <limits.h>
19017 #else
19018 # include <assert.h>
19019 #endif
19021 #undef $ac_func
19023 /* Override any GCC internal prototype to avoid an error.
19024 Use char because int might match the return type of a GCC
19025 builtin and then its argument prototype would still apply. */
19026 #ifdef __cplusplus
19027 extern "C"
19028 #endif
19029 char $ac_func ();
19030 /* The GNU C library defines this for functions which it implements
19031 to always fail with ENOSYS. Some functions are actually named
19032 something starting with __ and the normal name is an alias. */
19033 #if defined __stub_$ac_func || defined __stub___$ac_func
19034 choke me
19035 #endif
19038 main ()
19040 return $ac_func ();
19042 return 0;
19044 _ACEOF
19045 rm -f conftest.$ac_objext conftest$ac_exeext
19046 if { (ac_try="$ac_link"
19047 case "(($ac_try" in
19048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19049 *) ac_try_echo=$ac_try;;
19050 esac
19051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19052 (eval "$ac_link") 2>conftest.er1
19053 ac_status=$?
19054 grep -v '^ *+' conftest.er1 >conftest.err
19055 rm -f conftest.er1
19056 cat conftest.err >&5
19057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19058 (exit $ac_status); } && {
19059 test -z "$ac_c_werror_flag" ||
19060 test ! -s conftest.err
19061 } && test -s conftest$ac_exeext &&
19062 $as_test_x conftest$ac_exeext; then
19063 eval "$as_ac_var=yes"
19064 else
19065 echo "$as_me: failed program was:" >&5
19066 sed 's/^/| /' conftest.$ac_ext >&5
19068 eval "$as_ac_var=no"
19071 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19072 conftest$ac_exeext conftest.$ac_ext
19074 ac_res=`eval echo '${'$as_ac_var'}'`
19075 { echo "$as_me:$LINENO: result: $ac_res" >&5
19076 echo "${ECHO_T}$ac_res" >&6; }
19077 if test `eval echo '${'$as_ac_var'}'` = yes; then
19078 cat >>confdefs.h <<_ACEOF
19079 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19080 _ACEOF
19081 cat >conftest.$ac_ext <<_ACEOF
19082 /* confdefs.h. */
19083 _ACEOF
19084 cat confdefs.h >>conftest.$ac_ext
19085 cat >>conftest.$ac_ext <<_ACEOF
19086 /* end confdefs.h. */
19087 #include <sys/time.h>
19089 main ()
19091 gettimeofday((struct timeval*)0,(struct timezone*)0);
19093 return 0;
19095 _ACEOF
19096 rm -f conftest.$ac_objext
19097 if { (ac_try="$ac_compile"
19098 case "(($ac_try" in
19099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19100 *) ac_try_echo=$ac_try;;
19101 esac
19102 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19103 (eval "$ac_compile") 2>conftest.er1
19104 ac_status=$?
19105 grep -v '^ *+' conftest.er1 >conftest.err
19106 rm -f conftest.er1
19107 cat conftest.err >&5
19108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19109 (exit $ac_status); } && {
19110 test -z "$ac_c_werror_flag" ||
19111 test ! -s conftest.err
19112 } && test -s conftest.$ac_objext; then
19114 else
19115 echo "$as_me: failed program was:" >&5
19116 sed 's/^/| /' conftest.$ac_ext >&5
19119 cat >>confdefs.h <<\_ACEOF
19120 #define GETTIMEOFDAY_NO_TZ 1
19121 _ACEOF
19126 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19129 done
19132 { echo "$as_me:$LINENO: checking for major" >&5
19133 echo $ECHO_N "checking for major... $ECHO_C" >&6; }
19134 cat >conftest.$ac_ext <<_ACEOF
19135 /* confdefs.h. */
19136 _ACEOF
19137 cat confdefs.h >>conftest.$ac_ext
19138 cat >>conftest.$ac_ext <<_ACEOF
19139 /* end confdefs.h. */
19141 #if defined(MAJOR_IN_MKDEV)
19142 #include <sys/mkdev.h>
19143 #elif defined(MAJOR_IN_SYSMACROS)
19144 #include <sys/sysmacros.h>
19145 #else
19146 #include <sys/types.h>
19147 #endif
19150 main ()
19153 makedev(major(0),minor(0));
19156 return 0;
19158 _ACEOF
19159 rm -f conftest.$ac_objext conftest$ac_exeext
19160 if { (ac_try="$ac_link"
19161 case "(($ac_try" in
19162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19163 *) ac_try_echo=$ac_try;;
19164 esac
19165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19166 (eval "$ac_link") 2>conftest.er1
19167 ac_status=$?
19168 grep -v '^ *+' conftest.er1 >conftest.err
19169 rm -f conftest.er1
19170 cat conftest.err >&5
19171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19172 (exit $ac_status); } && {
19173 test -z "$ac_c_werror_flag" ||
19174 test ! -s conftest.err
19175 } && test -s conftest$ac_exeext &&
19176 $as_test_x conftest$ac_exeext; then
19179 cat >>confdefs.h <<\_ACEOF
19180 #define HAVE_DEVICE_MACROS 1
19181 _ACEOF
19183 { echo "$as_me:$LINENO: result: yes" >&5
19184 echo "${ECHO_T}yes" >&6; }
19186 else
19187 echo "$as_me: failed program was:" >&5
19188 sed 's/^/| /' conftest.$ac_ext >&5
19191 { echo "$as_me:$LINENO: result: no" >&5
19192 echo "${ECHO_T}no" >&6; }
19196 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19197 conftest$ac_exeext conftest.$ac_ext
19199 # On OSF/1 V5.1, getaddrinfo is available, but a define
19200 # for [no]getaddrinfo in netdb.h.
19201 { echo "$as_me:$LINENO: checking for getaddrinfo" >&5
19202 echo $ECHO_N "checking for getaddrinfo... $ECHO_C" >&6; }
19203 cat >conftest.$ac_ext <<_ACEOF
19204 /* confdefs.h. */
19205 _ACEOF
19206 cat confdefs.h >>conftest.$ac_ext
19207 cat >>conftest.$ac_ext <<_ACEOF
19208 /* end confdefs.h. */
19210 #include <sys/types.h>
19211 #include <sys/socket.h>
19212 #include <netdb.h>
19213 #include <stdio.h>
19216 main ()
19219 getaddrinfo(NULL, NULL, NULL, NULL);
19222 return 0;
19224 _ACEOF
19225 rm -f conftest.$ac_objext conftest$ac_exeext
19226 if { (ac_try="$ac_link"
19227 case "(($ac_try" in
19228 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19229 *) ac_try_echo=$ac_try;;
19230 esac
19231 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19232 (eval "$ac_link") 2>conftest.er1
19233 ac_status=$?
19234 grep -v '^ *+' conftest.er1 >conftest.err
19235 rm -f conftest.er1
19236 cat conftest.err >&5
19237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19238 (exit $ac_status); } && {
19239 test -z "$ac_c_werror_flag" ||
19240 test ! -s conftest.err
19241 } && test -s conftest$ac_exeext &&
19242 $as_test_x conftest$ac_exeext; then
19244 { echo "$as_me:$LINENO: result: yes" >&5
19245 echo "${ECHO_T}yes" >&6; }
19246 { echo "$as_me:$LINENO: checking getaddrinfo bug" >&5
19247 echo $ECHO_N "checking getaddrinfo bug... $ECHO_C" >&6; }
19248 if test "$cross_compiling" = yes; then
19249 { echo "$as_me:$LINENO: result: buggy" >&5
19250 echo "${ECHO_T}buggy" >&6; }
19251 buggygetaddrinfo=yes
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. */
19260 #include <sys/types.h>
19261 #include <netdb.h>
19262 #include <string.h>
19263 #include <sys/socket.h>
19264 #include <netinet/in.h>
19266 main()
19268 int passive, gaierr, inet4 = 0, inet6 = 0;
19269 struct addrinfo hints, *ai, *aitop;
19270 char straddr[INET6_ADDRSTRLEN], strport[16];
19272 for (passive = 0; passive <= 1; passive++) {
19273 memset(&hints, 0, sizeof(hints));
19274 hints.ai_family = AF_UNSPEC;
19275 hints.ai_flags = passive ? AI_PASSIVE : 0;
19276 hints.ai_socktype = SOCK_STREAM;
19277 hints.ai_protocol = IPPROTO_TCP;
19278 if ((gaierr = getaddrinfo(NULL, "54321", &hints, &aitop)) != 0) {
19279 (void)gai_strerror(gaierr);
19280 goto bad;
19282 for (ai = aitop; ai; ai = ai->ai_next) {
19283 if (ai->ai_addr == NULL ||
19284 ai->ai_addrlen == 0 ||
19285 getnameinfo(ai->ai_addr, ai->ai_addrlen,
19286 straddr, sizeof(straddr), strport, sizeof(strport),
19287 NI_NUMERICHOST|NI_NUMERICSERV) != 0) {
19288 goto bad;
19290 switch (ai->ai_family) {
19291 case AF_INET:
19292 if (strcmp(strport, "54321") != 0) {
19293 goto bad;
19295 if (passive) {
19296 if (strcmp(straddr, "0.0.0.0") != 0) {
19297 goto bad;
19299 } else {
19300 if (strcmp(straddr, "127.0.0.1") != 0) {
19301 goto bad;
19304 inet4++;
19305 break;
19306 case AF_INET6:
19307 if (strcmp(strport, "54321") != 0) {
19308 goto bad;
19310 if (passive) {
19311 if (strcmp(straddr, "::") != 0) {
19312 goto bad;
19314 } else {
19315 if (strcmp(straddr, "::1") != 0) {
19316 goto bad;
19319 inet6++;
19320 break;
19321 case AF_UNSPEC:
19322 goto bad;
19323 break;
19324 default:
19325 /* another family support? */
19326 break;
19331 if (!(inet4 == 0 || inet4 == 2))
19332 goto bad;
19333 if (!(inet6 == 0 || inet6 == 2))
19334 goto bad;
19336 if (aitop)
19337 freeaddrinfo(aitop);
19338 exit(0);
19340 bad:
19341 if (aitop)
19342 freeaddrinfo(aitop);
19343 exit(1);
19346 _ACEOF
19347 rm -f conftest$ac_exeext
19348 if { (ac_try="$ac_link"
19349 case "(($ac_try" in
19350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19351 *) ac_try_echo=$ac_try;;
19352 esac
19353 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19354 (eval "$ac_link") 2>&5
19355 ac_status=$?
19356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19357 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19358 { (case "(($ac_try" in
19359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19360 *) ac_try_echo=$ac_try;;
19361 esac
19362 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19363 (eval "$ac_try") 2>&5
19364 ac_status=$?
19365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19366 (exit $ac_status); }; }; then
19367 { echo "$as_me:$LINENO: result: good" >&5
19368 echo "${ECHO_T}good" >&6; }
19369 buggygetaddrinfo=no
19370 else
19371 echo "$as_me: program exited with status $ac_status" >&5
19372 echo "$as_me: failed program was:" >&5
19373 sed 's/^/| /' conftest.$ac_ext >&5
19375 ( exit $ac_status )
19376 { echo "$as_me:$LINENO: result: buggy" >&5
19377 echo "${ECHO_T}buggy" >&6; }
19378 buggygetaddrinfo=yes
19380 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19384 else
19385 echo "$as_me: failed program was:" >&5
19386 sed 's/^/| /' conftest.$ac_ext >&5
19389 { echo "$as_me:$LINENO: result: no" >&5
19390 echo "${ECHO_T}no" >&6; }
19391 buggygetaddrinfo=yes
19395 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19396 conftest$ac_exeext conftest.$ac_ext
19398 if test "$buggygetaddrinfo" = "yes"; then
19399 if test "$ipv6" = "yes"; then
19400 echo 'Fatal: You must get working getaddrinfo() function.'
19401 echo ' or you can specify "--disable-ipv6"'.
19402 exit 1
19404 else
19406 cat >>confdefs.h <<\_ACEOF
19407 #define HAVE_GETADDRINFO 1
19408 _ACEOF
19412 for ac_func in getnameinfo
19414 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19415 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19416 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19417 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19418 echo $ECHO_N "(cached) $ECHO_C" >&6
19419 else
19420 cat >conftest.$ac_ext <<_ACEOF
19421 /* confdefs.h. */
19422 _ACEOF
19423 cat confdefs.h >>conftest.$ac_ext
19424 cat >>conftest.$ac_ext <<_ACEOF
19425 /* end confdefs.h. */
19426 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19427 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19428 #define $ac_func innocuous_$ac_func
19430 /* System header to define __stub macros and hopefully few prototypes,
19431 which can conflict with char $ac_func (); below.
19432 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19433 <limits.h> exists even on freestanding compilers. */
19435 #ifdef __STDC__
19436 # include <limits.h>
19437 #else
19438 # include <assert.h>
19439 #endif
19441 #undef $ac_func
19443 /* Override any GCC internal prototype to avoid an error.
19444 Use char because int might match the return type of a GCC
19445 builtin and then its argument prototype would still apply. */
19446 #ifdef __cplusplus
19447 extern "C"
19448 #endif
19449 char $ac_func ();
19450 /* The GNU C library defines this for functions which it implements
19451 to always fail with ENOSYS. Some functions are actually named
19452 something starting with __ and the normal name is an alias. */
19453 #if defined __stub_$ac_func || defined __stub___$ac_func
19454 choke me
19455 #endif
19458 main ()
19460 return $ac_func ();
19462 return 0;
19464 _ACEOF
19465 rm -f conftest.$ac_objext conftest$ac_exeext
19466 if { (ac_try="$ac_link"
19467 case "(($ac_try" in
19468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19469 *) ac_try_echo=$ac_try;;
19470 esac
19471 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19472 (eval "$ac_link") 2>conftest.er1
19473 ac_status=$?
19474 grep -v '^ *+' conftest.er1 >conftest.err
19475 rm -f conftest.er1
19476 cat conftest.err >&5
19477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19478 (exit $ac_status); } && {
19479 test -z "$ac_c_werror_flag" ||
19480 test ! -s conftest.err
19481 } && test -s conftest$ac_exeext &&
19482 $as_test_x conftest$ac_exeext; then
19483 eval "$as_ac_var=yes"
19484 else
19485 echo "$as_me: failed program was:" >&5
19486 sed 's/^/| /' conftest.$ac_ext >&5
19488 eval "$as_ac_var=no"
19491 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19492 conftest$ac_exeext conftest.$ac_ext
19494 ac_res=`eval echo '${'$as_ac_var'}'`
19495 { echo "$as_me:$LINENO: result: $ac_res" >&5
19496 echo "${ECHO_T}$ac_res" >&6; }
19497 if test `eval echo '${'$as_ac_var'}'` = yes; then
19498 cat >>confdefs.h <<_ACEOF
19499 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19500 _ACEOF
19503 done
19506 # checks for structures
19507 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
19508 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
19509 if test "${ac_cv_header_time+set}" = set; then
19510 echo $ECHO_N "(cached) $ECHO_C" >&6
19511 else
19512 cat >conftest.$ac_ext <<_ACEOF
19513 /* confdefs.h. */
19514 _ACEOF
19515 cat confdefs.h >>conftest.$ac_ext
19516 cat >>conftest.$ac_ext <<_ACEOF
19517 /* end confdefs.h. */
19518 #include <sys/types.h>
19519 #include <sys/time.h>
19520 #include <time.h>
19523 main ()
19525 if ((struct tm *) 0)
19526 return 0;
19528 return 0;
19530 _ACEOF
19531 rm -f conftest.$ac_objext
19532 if { (ac_try="$ac_compile"
19533 case "(($ac_try" in
19534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19535 *) ac_try_echo=$ac_try;;
19536 esac
19537 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19538 (eval "$ac_compile") 2>conftest.er1
19539 ac_status=$?
19540 grep -v '^ *+' conftest.er1 >conftest.err
19541 rm -f conftest.er1
19542 cat conftest.err >&5
19543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19544 (exit $ac_status); } && {
19545 test -z "$ac_c_werror_flag" ||
19546 test ! -s conftest.err
19547 } && test -s conftest.$ac_objext; then
19548 ac_cv_header_time=yes
19549 else
19550 echo "$as_me: failed program was:" >&5
19551 sed 's/^/| /' conftest.$ac_ext >&5
19553 ac_cv_header_time=no
19556 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19558 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
19559 echo "${ECHO_T}$ac_cv_header_time" >&6; }
19560 if test $ac_cv_header_time = yes; then
19562 cat >>confdefs.h <<\_ACEOF
19563 #define TIME_WITH_SYS_TIME 1
19564 _ACEOF
19568 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
19569 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
19570 if test "${ac_cv_struct_tm+set}" = set; then
19571 echo $ECHO_N "(cached) $ECHO_C" >&6
19572 else
19573 cat >conftest.$ac_ext <<_ACEOF
19574 /* confdefs.h. */
19575 _ACEOF
19576 cat confdefs.h >>conftest.$ac_ext
19577 cat >>conftest.$ac_ext <<_ACEOF
19578 /* end confdefs.h. */
19579 #include <sys/types.h>
19580 #include <time.h>
19583 main ()
19585 struct tm tm;
19586 int *p = &tm.tm_sec;
19587 return !p;
19589 return 0;
19591 _ACEOF
19592 rm -f conftest.$ac_objext
19593 if { (ac_try="$ac_compile"
19594 case "(($ac_try" in
19595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19596 *) ac_try_echo=$ac_try;;
19597 esac
19598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19599 (eval "$ac_compile") 2>conftest.er1
19600 ac_status=$?
19601 grep -v '^ *+' conftest.er1 >conftest.err
19602 rm -f conftest.er1
19603 cat conftest.err >&5
19604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19605 (exit $ac_status); } && {
19606 test -z "$ac_c_werror_flag" ||
19607 test ! -s conftest.err
19608 } && test -s conftest.$ac_objext; then
19609 ac_cv_struct_tm=time.h
19610 else
19611 echo "$as_me: failed program was:" >&5
19612 sed 's/^/| /' conftest.$ac_ext >&5
19614 ac_cv_struct_tm=sys/time.h
19617 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19619 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
19620 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
19621 if test $ac_cv_struct_tm = sys/time.h; then
19623 cat >>confdefs.h <<\_ACEOF
19624 #define TM_IN_SYS_TIME 1
19625 _ACEOF
19629 { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
19630 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
19631 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
19632 echo $ECHO_N "(cached) $ECHO_C" >&6
19633 else
19634 cat >conftest.$ac_ext <<_ACEOF
19635 /* confdefs.h. */
19636 _ACEOF
19637 cat confdefs.h >>conftest.$ac_ext
19638 cat >>conftest.$ac_ext <<_ACEOF
19639 /* end confdefs.h. */
19640 #include <sys/types.h>
19641 #include <$ac_cv_struct_tm>
19645 main ()
19647 static struct tm ac_aggr;
19648 if (ac_aggr.tm_zone)
19649 return 0;
19651 return 0;
19653 _ACEOF
19654 rm -f conftest.$ac_objext
19655 if { (ac_try="$ac_compile"
19656 case "(($ac_try" in
19657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19658 *) ac_try_echo=$ac_try;;
19659 esac
19660 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19661 (eval "$ac_compile") 2>conftest.er1
19662 ac_status=$?
19663 grep -v '^ *+' conftest.er1 >conftest.err
19664 rm -f conftest.er1
19665 cat conftest.err >&5
19666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19667 (exit $ac_status); } && {
19668 test -z "$ac_c_werror_flag" ||
19669 test ! -s conftest.err
19670 } && test -s conftest.$ac_objext; then
19671 ac_cv_member_struct_tm_tm_zone=yes
19672 else
19673 echo "$as_me: failed program was:" >&5
19674 sed 's/^/| /' conftest.$ac_ext >&5
19676 cat >conftest.$ac_ext <<_ACEOF
19677 /* confdefs.h. */
19678 _ACEOF
19679 cat confdefs.h >>conftest.$ac_ext
19680 cat >>conftest.$ac_ext <<_ACEOF
19681 /* end confdefs.h. */
19682 #include <sys/types.h>
19683 #include <$ac_cv_struct_tm>
19687 main ()
19689 static struct tm ac_aggr;
19690 if (sizeof ac_aggr.tm_zone)
19691 return 0;
19693 return 0;
19695 _ACEOF
19696 rm -f conftest.$ac_objext
19697 if { (ac_try="$ac_compile"
19698 case "(($ac_try" in
19699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19700 *) ac_try_echo=$ac_try;;
19701 esac
19702 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19703 (eval "$ac_compile") 2>conftest.er1
19704 ac_status=$?
19705 grep -v '^ *+' conftest.er1 >conftest.err
19706 rm -f conftest.er1
19707 cat conftest.err >&5
19708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19709 (exit $ac_status); } && {
19710 test -z "$ac_c_werror_flag" ||
19711 test ! -s conftest.err
19712 } && test -s conftest.$ac_objext; then
19713 ac_cv_member_struct_tm_tm_zone=yes
19714 else
19715 echo "$as_me: failed program was:" >&5
19716 sed 's/^/| /' conftest.$ac_ext >&5
19718 ac_cv_member_struct_tm_tm_zone=no
19721 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19724 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19726 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
19727 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
19728 if test $ac_cv_member_struct_tm_tm_zone = yes; then
19730 cat >>confdefs.h <<_ACEOF
19731 #define HAVE_STRUCT_TM_TM_ZONE 1
19732 _ACEOF
19737 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
19739 cat >>confdefs.h <<\_ACEOF
19740 #define HAVE_TM_ZONE 1
19741 _ACEOF
19743 else
19744 { echo "$as_me:$LINENO: checking whether tzname is declared" >&5
19745 echo $ECHO_N "checking whether tzname is declared... $ECHO_C" >&6; }
19746 if test "${ac_cv_have_decl_tzname+set}" = set; then
19747 echo $ECHO_N "(cached) $ECHO_C" >&6
19748 else
19749 cat >conftest.$ac_ext <<_ACEOF
19750 /* confdefs.h. */
19751 _ACEOF
19752 cat confdefs.h >>conftest.$ac_ext
19753 cat >>conftest.$ac_ext <<_ACEOF
19754 /* end confdefs.h. */
19755 #include <time.h>
19758 main ()
19760 #ifndef tzname
19761 (void) tzname;
19762 #endif
19765 return 0;
19767 _ACEOF
19768 rm -f conftest.$ac_objext
19769 if { (ac_try="$ac_compile"
19770 case "(($ac_try" in
19771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19772 *) ac_try_echo=$ac_try;;
19773 esac
19774 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19775 (eval "$ac_compile") 2>conftest.er1
19776 ac_status=$?
19777 grep -v '^ *+' conftest.er1 >conftest.err
19778 rm -f conftest.er1
19779 cat conftest.err >&5
19780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19781 (exit $ac_status); } && {
19782 test -z "$ac_c_werror_flag" ||
19783 test ! -s conftest.err
19784 } && test -s conftest.$ac_objext; then
19785 ac_cv_have_decl_tzname=yes
19786 else
19787 echo "$as_me: failed program was:" >&5
19788 sed 's/^/| /' conftest.$ac_ext >&5
19790 ac_cv_have_decl_tzname=no
19793 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19795 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
19796 echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; }
19797 if test $ac_cv_have_decl_tzname = yes; then
19799 cat >>confdefs.h <<_ACEOF
19800 #define HAVE_DECL_TZNAME 1
19801 _ACEOF
19804 else
19805 cat >>confdefs.h <<_ACEOF
19806 #define HAVE_DECL_TZNAME 0
19807 _ACEOF
19813 { echo "$as_me:$LINENO: checking for tzname" >&5
19814 echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
19815 if test "${ac_cv_var_tzname+set}" = set; then
19816 echo $ECHO_N "(cached) $ECHO_C" >&6
19817 else
19818 cat >conftest.$ac_ext <<_ACEOF
19819 /* confdefs.h. */
19820 _ACEOF
19821 cat confdefs.h >>conftest.$ac_ext
19822 cat >>conftest.$ac_ext <<_ACEOF
19823 /* end confdefs.h. */
19824 #include <time.h>
19825 #if !HAVE_DECL_TZNAME
19826 extern char *tzname[];
19827 #endif
19830 main ()
19832 return tzname[0][0];
19834 return 0;
19836 _ACEOF
19837 rm -f conftest.$ac_objext conftest$ac_exeext
19838 if { (ac_try="$ac_link"
19839 case "(($ac_try" in
19840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19841 *) ac_try_echo=$ac_try;;
19842 esac
19843 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19844 (eval "$ac_link") 2>conftest.er1
19845 ac_status=$?
19846 grep -v '^ *+' conftest.er1 >conftest.err
19847 rm -f conftest.er1
19848 cat conftest.err >&5
19849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19850 (exit $ac_status); } && {
19851 test -z "$ac_c_werror_flag" ||
19852 test ! -s conftest.err
19853 } && test -s conftest$ac_exeext &&
19854 $as_test_x conftest$ac_exeext; then
19855 ac_cv_var_tzname=yes
19856 else
19857 echo "$as_me: failed program was:" >&5
19858 sed 's/^/| /' conftest.$ac_ext >&5
19860 ac_cv_var_tzname=no
19863 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19864 conftest$ac_exeext conftest.$ac_ext
19866 { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
19867 echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
19868 if test $ac_cv_var_tzname = yes; then
19870 cat >>confdefs.h <<\_ACEOF
19871 #define HAVE_TZNAME 1
19872 _ACEOF
19877 { echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
19878 echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6; }
19879 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
19880 echo $ECHO_N "(cached) $ECHO_C" >&6
19881 else
19882 cat >conftest.$ac_ext <<_ACEOF
19883 /* confdefs.h. */
19884 _ACEOF
19885 cat confdefs.h >>conftest.$ac_ext
19886 cat >>conftest.$ac_ext <<_ACEOF
19887 /* end confdefs.h. */
19888 $ac_includes_default
19890 main ()
19892 static struct stat ac_aggr;
19893 if (ac_aggr.st_rdev)
19894 return 0;
19896 return 0;
19898 _ACEOF
19899 rm -f conftest.$ac_objext
19900 if { (ac_try="$ac_compile"
19901 case "(($ac_try" in
19902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19903 *) ac_try_echo=$ac_try;;
19904 esac
19905 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19906 (eval "$ac_compile") 2>conftest.er1
19907 ac_status=$?
19908 grep -v '^ *+' conftest.er1 >conftest.err
19909 rm -f conftest.er1
19910 cat conftest.err >&5
19911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19912 (exit $ac_status); } && {
19913 test -z "$ac_c_werror_flag" ||
19914 test ! -s conftest.err
19915 } && test -s conftest.$ac_objext; then
19916 ac_cv_member_struct_stat_st_rdev=yes
19917 else
19918 echo "$as_me: failed program was:" >&5
19919 sed 's/^/| /' conftest.$ac_ext >&5
19921 cat >conftest.$ac_ext <<_ACEOF
19922 /* confdefs.h. */
19923 _ACEOF
19924 cat confdefs.h >>conftest.$ac_ext
19925 cat >>conftest.$ac_ext <<_ACEOF
19926 /* end confdefs.h. */
19927 $ac_includes_default
19929 main ()
19931 static struct stat ac_aggr;
19932 if (sizeof ac_aggr.st_rdev)
19933 return 0;
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 ac_cv_member_struct_stat_st_rdev=yes
19956 else
19957 echo "$as_me: failed program was:" >&5
19958 sed 's/^/| /' conftest.$ac_ext >&5
19960 ac_cv_member_struct_stat_st_rdev=no
19963 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19966 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19968 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
19969 echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6; }
19970 if test $ac_cv_member_struct_stat_st_rdev = yes; then
19972 cat >>confdefs.h <<_ACEOF
19973 #define HAVE_STRUCT_STAT_ST_RDEV 1
19974 _ACEOF
19979 { echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
19980 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6; }
19981 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
19982 echo $ECHO_N "(cached) $ECHO_C" >&6
19983 else
19984 cat >conftest.$ac_ext <<_ACEOF
19985 /* confdefs.h. */
19986 _ACEOF
19987 cat confdefs.h >>conftest.$ac_ext
19988 cat >>conftest.$ac_ext <<_ACEOF
19989 /* end confdefs.h. */
19990 $ac_includes_default
19992 main ()
19994 static struct stat ac_aggr;
19995 if (ac_aggr.st_blksize)
19996 return 0;
19998 return 0;
20000 _ACEOF
20001 rm -f conftest.$ac_objext
20002 if { (ac_try="$ac_compile"
20003 case "(($ac_try" in
20004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20005 *) ac_try_echo=$ac_try;;
20006 esac
20007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20008 (eval "$ac_compile") 2>conftest.er1
20009 ac_status=$?
20010 grep -v '^ *+' conftest.er1 >conftest.err
20011 rm -f conftest.er1
20012 cat conftest.err >&5
20013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20014 (exit $ac_status); } && {
20015 test -z "$ac_c_werror_flag" ||
20016 test ! -s conftest.err
20017 } && test -s conftest.$ac_objext; then
20018 ac_cv_member_struct_stat_st_blksize=yes
20019 else
20020 echo "$as_me: failed program was:" >&5
20021 sed 's/^/| /' conftest.$ac_ext >&5
20023 cat >conftest.$ac_ext <<_ACEOF
20024 /* confdefs.h. */
20025 _ACEOF
20026 cat confdefs.h >>conftest.$ac_ext
20027 cat >>conftest.$ac_ext <<_ACEOF
20028 /* end confdefs.h. */
20029 $ac_includes_default
20031 main ()
20033 static struct stat ac_aggr;
20034 if (sizeof ac_aggr.st_blksize)
20035 return 0;
20037 return 0;
20039 _ACEOF
20040 rm -f conftest.$ac_objext
20041 if { (ac_try="$ac_compile"
20042 case "(($ac_try" in
20043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20044 *) ac_try_echo=$ac_try;;
20045 esac
20046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20047 (eval "$ac_compile") 2>conftest.er1
20048 ac_status=$?
20049 grep -v '^ *+' conftest.er1 >conftest.err
20050 rm -f conftest.er1
20051 cat conftest.err >&5
20052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20053 (exit $ac_status); } && {
20054 test -z "$ac_c_werror_flag" ||
20055 test ! -s conftest.err
20056 } && test -s conftest.$ac_objext; then
20057 ac_cv_member_struct_stat_st_blksize=yes
20058 else
20059 echo "$as_me: failed program was:" >&5
20060 sed 's/^/| /' conftest.$ac_ext >&5
20062 ac_cv_member_struct_stat_st_blksize=no
20065 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20068 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20070 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
20071 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6; }
20072 if test $ac_cv_member_struct_stat_st_blksize = yes; then
20074 cat >>confdefs.h <<_ACEOF
20075 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
20076 _ACEOF
20081 { echo "$as_me:$LINENO: checking for struct stat.st_flags" >&5
20082 echo $ECHO_N "checking for struct stat.st_flags... $ECHO_C" >&6; }
20083 if test "${ac_cv_member_struct_stat_st_flags+set}" = set; then
20084 echo $ECHO_N "(cached) $ECHO_C" >&6
20085 else
20086 cat >conftest.$ac_ext <<_ACEOF
20087 /* confdefs.h. */
20088 _ACEOF
20089 cat confdefs.h >>conftest.$ac_ext
20090 cat >>conftest.$ac_ext <<_ACEOF
20091 /* end confdefs.h. */
20092 $ac_includes_default
20094 main ()
20096 static struct stat ac_aggr;
20097 if (ac_aggr.st_flags)
20098 return 0;
20100 return 0;
20102 _ACEOF
20103 rm -f conftest.$ac_objext
20104 if { (ac_try="$ac_compile"
20105 case "(($ac_try" in
20106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20107 *) ac_try_echo=$ac_try;;
20108 esac
20109 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20110 (eval "$ac_compile") 2>conftest.er1
20111 ac_status=$?
20112 grep -v '^ *+' conftest.er1 >conftest.err
20113 rm -f conftest.er1
20114 cat conftest.err >&5
20115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20116 (exit $ac_status); } && {
20117 test -z "$ac_c_werror_flag" ||
20118 test ! -s conftest.err
20119 } && test -s conftest.$ac_objext; then
20120 ac_cv_member_struct_stat_st_flags=yes
20121 else
20122 echo "$as_me: failed program was:" >&5
20123 sed 's/^/| /' conftest.$ac_ext >&5
20125 cat >conftest.$ac_ext <<_ACEOF
20126 /* confdefs.h. */
20127 _ACEOF
20128 cat confdefs.h >>conftest.$ac_ext
20129 cat >>conftest.$ac_ext <<_ACEOF
20130 /* end confdefs.h. */
20131 $ac_includes_default
20133 main ()
20135 static struct stat ac_aggr;
20136 if (sizeof ac_aggr.st_flags)
20137 return 0;
20139 return 0;
20141 _ACEOF
20142 rm -f conftest.$ac_objext
20143 if { (ac_try="$ac_compile"
20144 case "(($ac_try" in
20145 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20146 *) ac_try_echo=$ac_try;;
20147 esac
20148 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20149 (eval "$ac_compile") 2>conftest.er1
20150 ac_status=$?
20151 grep -v '^ *+' conftest.er1 >conftest.err
20152 rm -f conftest.er1
20153 cat conftest.err >&5
20154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20155 (exit $ac_status); } && {
20156 test -z "$ac_c_werror_flag" ||
20157 test ! -s conftest.err
20158 } && test -s conftest.$ac_objext; then
20159 ac_cv_member_struct_stat_st_flags=yes
20160 else
20161 echo "$as_me: failed program was:" >&5
20162 sed 's/^/| /' conftest.$ac_ext >&5
20164 ac_cv_member_struct_stat_st_flags=no
20167 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20170 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20172 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_flags" >&5
20173 echo "${ECHO_T}$ac_cv_member_struct_stat_st_flags" >&6; }
20174 if test $ac_cv_member_struct_stat_st_flags = yes; then
20176 cat >>confdefs.h <<_ACEOF
20177 #define HAVE_STRUCT_STAT_ST_FLAGS 1
20178 _ACEOF
20183 { echo "$as_me:$LINENO: checking for struct stat.st_gen" >&5
20184 echo $ECHO_N "checking for struct stat.st_gen... $ECHO_C" >&6; }
20185 if test "${ac_cv_member_struct_stat_st_gen+set}" = set; then
20186 echo $ECHO_N "(cached) $ECHO_C" >&6
20187 else
20188 cat >conftest.$ac_ext <<_ACEOF
20189 /* confdefs.h. */
20190 _ACEOF
20191 cat confdefs.h >>conftest.$ac_ext
20192 cat >>conftest.$ac_ext <<_ACEOF
20193 /* end confdefs.h. */
20194 $ac_includes_default
20196 main ()
20198 static struct stat ac_aggr;
20199 if (ac_aggr.st_gen)
20200 return 0;
20202 return 0;
20204 _ACEOF
20205 rm -f conftest.$ac_objext
20206 if { (ac_try="$ac_compile"
20207 case "(($ac_try" in
20208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20209 *) ac_try_echo=$ac_try;;
20210 esac
20211 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20212 (eval "$ac_compile") 2>conftest.er1
20213 ac_status=$?
20214 grep -v '^ *+' conftest.er1 >conftest.err
20215 rm -f conftest.er1
20216 cat conftest.err >&5
20217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20218 (exit $ac_status); } && {
20219 test -z "$ac_c_werror_flag" ||
20220 test ! -s conftest.err
20221 } && test -s conftest.$ac_objext; then
20222 ac_cv_member_struct_stat_st_gen=yes
20223 else
20224 echo "$as_me: failed program was:" >&5
20225 sed 's/^/| /' conftest.$ac_ext >&5
20227 cat >conftest.$ac_ext <<_ACEOF
20228 /* confdefs.h. */
20229 _ACEOF
20230 cat confdefs.h >>conftest.$ac_ext
20231 cat >>conftest.$ac_ext <<_ACEOF
20232 /* end confdefs.h. */
20233 $ac_includes_default
20235 main ()
20237 static struct stat ac_aggr;
20238 if (sizeof ac_aggr.st_gen)
20239 return 0;
20241 return 0;
20243 _ACEOF
20244 rm -f conftest.$ac_objext
20245 if { (ac_try="$ac_compile"
20246 case "(($ac_try" in
20247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20248 *) ac_try_echo=$ac_try;;
20249 esac
20250 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20251 (eval "$ac_compile") 2>conftest.er1
20252 ac_status=$?
20253 grep -v '^ *+' conftest.er1 >conftest.err
20254 rm -f conftest.er1
20255 cat conftest.err >&5
20256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20257 (exit $ac_status); } && {
20258 test -z "$ac_c_werror_flag" ||
20259 test ! -s conftest.err
20260 } && test -s conftest.$ac_objext; then
20261 ac_cv_member_struct_stat_st_gen=yes
20262 else
20263 echo "$as_me: failed program was:" >&5
20264 sed 's/^/| /' conftest.$ac_ext >&5
20266 ac_cv_member_struct_stat_st_gen=no
20269 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20272 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20274 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_gen" >&5
20275 echo "${ECHO_T}$ac_cv_member_struct_stat_st_gen" >&6; }
20276 if test $ac_cv_member_struct_stat_st_gen = yes; then
20278 cat >>confdefs.h <<_ACEOF
20279 #define HAVE_STRUCT_STAT_ST_GEN 1
20280 _ACEOF
20285 { echo "$as_me:$LINENO: checking for struct stat.st_birthtime" >&5
20286 echo $ECHO_N "checking for struct stat.st_birthtime... $ECHO_C" >&6; }
20287 if test "${ac_cv_member_struct_stat_st_birthtime+set}" = set; then
20288 echo $ECHO_N "(cached) $ECHO_C" >&6
20289 else
20290 cat >conftest.$ac_ext <<_ACEOF
20291 /* confdefs.h. */
20292 _ACEOF
20293 cat confdefs.h >>conftest.$ac_ext
20294 cat >>conftest.$ac_ext <<_ACEOF
20295 /* end confdefs.h. */
20296 $ac_includes_default
20298 main ()
20300 static struct stat ac_aggr;
20301 if (ac_aggr.st_birthtime)
20302 return 0;
20304 return 0;
20306 _ACEOF
20307 rm -f conftest.$ac_objext
20308 if { (ac_try="$ac_compile"
20309 case "(($ac_try" in
20310 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20311 *) ac_try_echo=$ac_try;;
20312 esac
20313 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20314 (eval "$ac_compile") 2>conftest.er1
20315 ac_status=$?
20316 grep -v '^ *+' conftest.er1 >conftest.err
20317 rm -f conftest.er1
20318 cat conftest.err >&5
20319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20320 (exit $ac_status); } && {
20321 test -z "$ac_c_werror_flag" ||
20322 test ! -s conftest.err
20323 } && test -s conftest.$ac_objext; then
20324 ac_cv_member_struct_stat_st_birthtime=yes
20325 else
20326 echo "$as_me: failed program was:" >&5
20327 sed 's/^/| /' conftest.$ac_ext >&5
20329 cat >conftest.$ac_ext <<_ACEOF
20330 /* confdefs.h. */
20331 _ACEOF
20332 cat confdefs.h >>conftest.$ac_ext
20333 cat >>conftest.$ac_ext <<_ACEOF
20334 /* end confdefs.h. */
20335 $ac_includes_default
20337 main ()
20339 static struct stat ac_aggr;
20340 if (sizeof ac_aggr.st_birthtime)
20341 return 0;
20343 return 0;
20345 _ACEOF
20346 rm -f conftest.$ac_objext
20347 if { (ac_try="$ac_compile"
20348 case "(($ac_try" in
20349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20350 *) ac_try_echo=$ac_try;;
20351 esac
20352 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20353 (eval "$ac_compile") 2>conftest.er1
20354 ac_status=$?
20355 grep -v '^ *+' conftest.er1 >conftest.err
20356 rm -f conftest.er1
20357 cat conftest.err >&5
20358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20359 (exit $ac_status); } && {
20360 test -z "$ac_c_werror_flag" ||
20361 test ! -s conftest.err
20362 } && test -s conftest.$ac_objext; then
20363 ac_cv_member_struct_stat_st_birthtime=yes
20364 else
20365 echo "$as_me: failed program was:" >&5
20366 sed 's/^/| /' conftest.$ac_ext >&5
20368 ac_cv_member_struct_stat_st_birthtime=no
20371 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20374 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20376 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_birthtime" >&5
20377 echo "${ECHO_T}$ac_cv_member_struct_stat_st_birthtime" >&6; }
20378 if test $ac_cv_member_struct_stat_st_birthtime = yes; then
20380 cat >>confdefs.h <<_ACEOF
20381 #define HAVE_STRUCT_STAT_ST_BIRTHTIME 1
20382 _ACEOF
20387 { echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
20388 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6; }
20389 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
20390 echo $ECHO_N "(cached) $ECHO_C" >&6
20391 else
20392 cat >conftest.$ac_ext <<_ACEOF
20393 /* confdefs.h. */
20394 _ACEOF
20395 cat confdefs.h >>conftest.$ac_ext
20396 cat >>conftest.$ac_ext <<_ACEOF
20397 /* end confdefs.h. */
20398 $ac_includes_default
20400 main ()
20402 static struct stat ac_aggr;
20403 if (ac_aggr.st_blocks)
20404 return 0;
20406 return 0;
20408 _ACEOF
20409 rm -f conftest.$ac_objext
20410 if { (ac_try="$ac_compile"
20411 case "(($ac_try" in
20412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20413 *) ac_try_echo=$ac_try;;
20414 esac
20415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20416 (eval "$ac_compile") 2>conftest.er1
20417 ac_status=$?
20418 grep -v '^ *+' conftest.er1 >conftest.err
20419 rm -f conftest.er1
20420 cat conftest.err >&5
20421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20422 (exit $ac_status); } && {
20423 test -z "$ac_c_werror_flag" ||
20424 test ! -s conftest.err
20425 } && test -s conftest.$ac_objext; then
20426 ac_cv_member_struct_stat_st_blocks=yes
20427 else
20428 echo "$as_me: failed program was:" >&5
20429 sed 's/^/| /' conftest.$ac_ext >&5
20431 cat >conftest.$ac_ext <<_ACEOF
20432 /* confdefs.h. */
20433 _ACEOF
20434 cat confdefs.h >>conftest.$ac_ext
20435 cat >>conftest.$ac_ext <<_ACEOF
20436 /* end confdefs.h. */
20437 $ac_includes_default
20439 main ()
20441 static struct stat ac_aggr;
20442 if (sizeof ac_aggr.st_blocks)
20443 return 0;
20445 return 0;
20447 _ACEOF
20448 rm -f conftest.$ac_objext
20449 if { (ac_try="$ac_compile"
20450 case "(($ac_try" in
20451 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20452 *) ac_try_echo=$ac_try;;
20453 esac
20454 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20455 (eval "$ac_compile") 2>conftest.er1
20456 ac_status=$?
20457 grep -v '^ *+' conftest.er1 >conftest.err
20458 rm -f conftest.er1
20459 cat conftest.err >&5
20460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20461 (exit $ac_status); } && {
20462 test -z "$ac_c_werror_flag" ||
20463 test ! -s conftest.err
20464 } && test -s conftest.$ac_objext; then
20465 ac_cv_member_struct_stat_st_blocks=yes
20466 else
20467 echo "$as_me: failed program was:" >&5
20468 sed 's/^/| /' conftest.$ac_ext >&5
20470 ac_cv_member_struct_stat_st_blocks=no
20473 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20476 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20478 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
20479 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6; }
20480 if test $ac_cv_member_struct_stat_st_blocks = yes; then
20482 cat >>confdefs.h <<_ACEOF
20483 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
20484 _ACEOF
20487 cat >>confdefs.h <<\_ACEOF
20488 #define HAVE_ST_BLOCKS 1
20489 _ACEOF
20491 else
20492 case " $LIBOBJS " in
20493 *" fileblocks.$ac_objext "* ) ;;
20494 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
20496 esac
20502 { echo "$as_me:$LINENO: checking for time.h that defines altzone" >&5
20503 echo $ECHO_N "checking for time.h that defines altzone... $ECHO_C" >&6; }
20504 if test "${ac_cv_header_time_altzone+set}" = set; then
20505 echo $ECHO_N "(cached) $ECHO_C" >&6
20506 else
20507 cat >conftest.$ac_ext <<_ACEOF
20508 /* confdefs.h. */
20509 _ACEOF
20510 cat confdefs.h >>conftest.$ac_ext
20511 cat >>conftest.$ac_ext <<_ACEOF
20512 /* end confdefs.h. */
20513 #include <time.h>
20515 main ()
20517 return altzone;
20519 return 0;
20521 _ACEOF
20522 rm -f conftest.$ac_objext
20523 if { (ac_try="$ac_compile"
20524 case "(($ac_try" in
20525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20526 *) ac_try_echo=$ac_try;;
20527 esac
20528 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20529 (eval "$ac_compile") 2>conftest.er1
20530 ac_status=$?
20531 grep -v '^ *+' conftest.er1 >conftest.err
20532 rm -f conftest.er1
20533 cat conftest.err >&5
20534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20535 (exit $ac_status); } && {
20536 test -z "$ac_c_werror_flag" ||
20537 test ! -s conftest.err
20538 } && test -s conftest.$ac_objext; then
20539 ac_cv_header_time_altzone=yes
20540 else
20541 echo "$as_me: failed program was:" >&5
20542 sed 's/^/| /' conftest.$ac_ext >&5
20544 ac_cv_header_time_altzone=no
20547 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20550 { echo "$as_me:$LINENO: result: $ac_cv_header_time_altzone" >&5
20551 echo "${ECHO_T}$ac_cv_header_time_altzone" >&6; }
20552 if test $ac_cv_header_time_altzone = yes; then
20554 cat >>confdefs.h <<\_ACEOF
20555 #define HAVE_ALTZONE 1
20556 _ACEOF
20560 was_it_defined=no
20561 { echo "$as_me:$LINENO: checking whether sys/select.h and sys/time.h may both be included" >&5
20562 echo $ECHO_N "checking whether sys/select.h and sys/time.h may both be included... $ECHO_C" >&6; }
20563 cat >conftest.$ac_ext <<_ACEOF
20564 /* confdefs.h. */
20565 _ACEOF
20566 cat confdefs.h >>conftest.$ac_ext
20567 cat >>conftest.$ac_ext <<_ACEOF
20568 /* end confdefs.h. */
20570 #include <sys/types.h>
20571 #include <sys/select.h>
20572 #include <sys/time.h>
20575 main ()
20579 return 0;
20581 _ACEOF
20582 rm -f conftest.$ac_objext
20583 if { (ac_try="$ac_compile"
20584 case "(($ac_try" in
20585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20586 *) ac_try_echo=$ac_try;;
20587 esac
20588 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20589 (eval "$ac_compile") 2>conftest.er1
20590 ac_status=$?
20591 grep -v '^ *+' conftest.er1 >conftest.err
20592 rm -f conftest.er1
20593 cat conftest.err >&5
20594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20595 (exit $ac_status); } && {
20596 test -z "$ac_c_werror_flag" ||
20597 test ! -s conftest.err
20598 } && test -s conftest.$ac_objext; then
20601 cat >>confdefs.h <<\_ACEOF
20602 #define SYS_SELECT_WITH_SYS_TIME 1
20603 _ACEOF
20605 was_it_defined=yes
20607 else
20608 echo "$as_me: failed program was:" >&5
20609 sed 's/^/| /' conftest.$ac_ext >&5
20614 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20615 { echo "$as_me:$LINENO: result: $was_it_defined" >&5
20616 echo "${ECHO_T}$was_it_defined" >&6; }
20618 { echo "$as_me:$LINENO: checking for addrinfo" >&5
20619 echo $ECHO_N "checking for addrinfo... $ECHO_C" >&6; }
20620 if test "${ac_cv_struct_addrinfo+set}" = set; then
20621 echo $ECHO_N "(cached) $ECHO_C" >&6
20622 else
20623 cat >conftest.$ac_ext <<_ACEOF
20624 /* confdefs.h. */
20625 _ACEOF
20626 cat confdefs.h >>conftest.$ac_ext
20627 cat >>conftest.$ac_ext <<_ACEOF
20628 /* end confdefs.h. */
20630 # include <netdb.h>
20632 main ()
20634 struct addrinfo a
20636 return 0;
20638 _ACEOF
20639 rm -f conftest.$ac_objext
20640 if { (ac_try="$ac_compile"
20641 case "(($ac_try" in
20642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20643 *) ac_try_echo=$ac_try;;
20644 esac
20645 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20646 (eval "$ac_compile") 2>conftest.er1
20647 ac_status=$?
20648 grep -v '^ *+' conftest.er1 >conftest.err
20649 rm -f conftest.er1
20650 cat conftest.err >&5
20651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20652 (exit $ac_status); } && {
20653 test -z "$ac_c_werror_flag" ||
20654 test ! -s conftest.err
20655 } && test -s conftest.$ac_objext; then
20656 ac_cv_struct_addrinfo=yes
20657 else
20658 echo "$as_me: failed program was:" >&5
20659 sed 's/^/| /' conftest.$ac_ext >&5
20661 ac_cv_struct_addrinfo=no
20664 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20667 { echo "$as_me:$LINENO: result: $ac_cv_struct_addrinfo" >&5
20668 echo "${ECHO_T}$ac_cv_struct_addrinfo" >&6; }
20669 if test $ac_cv_struct_addrinfo = yes; then
20671 cat >>confdefs.h <<\_ACEOF
20672 #define HAVE_ADDRINFO 1
20673 _ACEOF
20677 { echo "$as_me:$LINENO: checking for sockaddr_storage" >&5
20678 echo $ECHO_N "checking for sockaddr_storage... $ECHO_C" >&6; }
20679 if test "${ac_cv_struct_sockaddr_storage+set}" = set; then
20680 echo $ECHO_N "(cached) $ECHO_C" >&6
20681 else
20682 cat >conftest.$ac_ext <<_ACEOF
20683 /* confdefs.h. */
20684 _ACEOF
20685 cat confdefs.h >>conftest.$ac_ext
20686 cat >>conftest.$ac_ext <<_ACEOF
20687 /* end confdefs.h. */
20689 # include <sys/types.h>
20690 # include <sys/socket.h>
20692 main ()
20694 struct sockaddr_storage s
20696 return 0;
20698 _ACEOF
20699 rm -f conftest.$ac_objext
20700 if { (ac_try="$ac_compile"
20701 case "(($ac_try" in
20702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20703 *) ac_try_echo=$ac_try;;
20704 esac
20705 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20706 (eval "$ac_compile") 2>conftest.er1
20707 ac_status=$?
20708 grep -v '^ *+' conftest.er1 >conftest.err
20709 rm -f conftest.er1
20710 cat conftest.err >&5
20711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20712 (exit $ac_status); } && {
20713 test -z "$ac_c_werror_flag" ||
20714 test ! -s conftest.err
20715 } && test -s conftest.$ac_objext; then
20716 ac_cv_struct_sockaddr_storage=yes
20717 else
20718 echo "$as_me: failed program was:" >&5
20719 sed 's/^/| /' conftest.$ac_ext >&5
20721 ac_cv_struct_sockaddr_storage=no
20724 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20727 { echo "$as_me:$LINENO: result: $ac_cv_struct_sockaddr_storage" >&5
20728 echo "${ECHO_T}$ac_cv_struct_sockaddr_storage" >&6; }
20729 if test $ac_cv_struct_sockaddr_storage = yes; then
20731 cat >>confdefs.h <<\_ACEOF
20732 #define HAVE_SOCKADDR_STORAGE 1
20733 _ACEOF
20737 # checks for compiler characteristics
20740 { echo "$as_me:$LINENO: checking whether char is unsigned" >&5
20741 echo $ECHO_N "checking whether char is unsigned... $ECHO_C" >&6; }
20742 if test "${ac_cv_c_char_unsigned+set}" = set; then
20743 echo $ECHO_N "(cached) $ECHO_C" >&6
20744 else
20745 cat >conftest.$ac_ext <<_ACEOF
20746 /* confdefs.h. */
20747 _ACEOF
20748 cat confdefs.h >>conftest.$ac_ext
20749 cat >>conftest.$ac_ext <<_ACEOF
20750 /* end confdefs.h. */
20751 $ac_includes_default
20753 main ()
20755 static int test_array [1 - 2 * !(((char) -1) < 0)];
20756 test_array [0] = 0
20759 return 0;
20761 _ACEOF
20762 rm -f conftest.$ac_objext
20763 if { (ac_try="$ac_compile"
20764 case "(($ac_try" in
20765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20766 *) ac_try_echo=$ac_try;;
20767 esac
20768 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20769 (eval "$ac_compile") 2>conftest.er1
20770 ac_status=$?
20771 grep -v '^ *+' conftest.er1 >conftest.err
20772 rm -f conftest.er1
20773 cat conftest.err >&5
20774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20775 (exit $ac_status); } && {
20776 test -z "$ac_c_werror_flag" ||
20777 test ! -s conftest.err
20778 } && test -s conftest.$ac_objext; then
20779 ac_cv_c_char_unsigned=no
20780 else
20781 echo "$as_me: failed program was:" >&5
20782 sed 's/^/| /' conftest.$ac_ext >&5
20784 ac_cv_c_char_unsigned=yes
20787 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20789 { echo "$as_me:$LINENO: result: $ac_cv_c_char_unsigned" >&5
20790 echo "${ECHO_T}$ac_cv_c_char_unsigned" >&6; }
20791 if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
20792 cat >>confdefs.h <<\_ACEOF
20793 #define __CHAR_UNSIGNED__ 1
20794 _ACEOF
20798 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
20799 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
20800 if test "${ac_cv_c_const+set}" = set; then
20801 echo $ECHO_N "(cached) $ECHO_C" >&6
20802 else
20803 cat >conftest.$ac_ext <<_ACEOF
20804 /* confdefs.h. */
20805 _ACEOF
20806 cat confdefs.h >>conftest.$ac_ext
20807 cat >>conftest.$ac_ext <<_ACEOF
20808 /* end confdefs.h. */
20811 main ()
20813 /* FIXME: Include the comments suggested by Paul. */
20814 #ifndef __cplusplus
20815 /* Ultrix mips cc rejects this. */
20816 typedef int charset[2];
20817 const charset cs;
20818 /* SunOS 4.1.1 cc rejects this. */
20819 char const *const *pcpcc;
20820 char **ppc;
20821 /* NEC SVR4.0.2 mips cc rejects this. */
20822 struct point {int x, y;};
20823 static struct point const zero = {0,0};
20824 /* AIX XL C 1.02.0.0 rejects this.
20825 It does not let you subtract one const X* pointer from another in
20826 an arm of an if-expression whose if-part is not a constant
20827 expression */
20828 const char *g = "string";
20829 pcpcc = &g + (g ? g-g : 0);
20830 /* HPUX 7.0 cc rejects these. */
20831 ++pcpcc;
20832 ppc = (char**) pcpcc;
20833 pcpcc = (char const *const *) ppc;
20834 { /* SCO 3.2v4 cc rejects this. */
20835 char *t;
20836 char const *s = 0 ? (char *) 0 : (char const *) 0;
20838 *t++ = 0;
20839 if (s) return 0;
20841 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
20842 int x[] = {25, 17};
20843 const int *foo = &x[0];
20844 ++foo;
20846 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
20847 typedef const int *iptr;
20848 iptr p = 0;
20849 ++p;
20851 { /* AIX XL C 1.02.0.0 rejects this saying
20852 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
20853 struct s { int j; const int *ap[3]; };
20854 struct s *b; b->j = 5;
20856 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
20857 const int foo = 10;
20858 if (!foo) return 0;
20860 return !cs[0] && !zero.x;
20861 #endif
20864 return 0;
20866 _ACEOF
20867 rm -f conftest.$ac_objext
20868 if { (ac_try="$ac_compile"
20869 case "(($ac_try" in
20870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20871 *) ac_try_echo=$ac_try;;
20872 esac
20873 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20874 (eval "$ac_compile") 2>conftest.er1
20875 ac_status=$?
20876 grep -v '^ *+' conftest.er1 >conftest.err
20877 rm -f conftest.er1
20878 cat conftest.err >&5
20879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20880 (exit $ac_status); } && {
20881 test -z "$ac_c_werror_flag" ||
20882 test ! -s conftest.err
20883 } && test -s conftest.$ac_objext; then
20884 ac_cv_c_const=yes
20885 else
20886 echo "$as_me: failed program was:" >&5
20887 sed 's/^/| /' conftest.$ac_ext >&5
20889 ac_cv_c_const=no
20892 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20894 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
20895 echo "${ECHO_T}$ac_cv_c_const" >&6; }
20896 if test $ac_cv_c_const = no; then
20898 cat >>confdefs.h <<\_ACEOF
20899 #define const
20900 _ACEOF
20905 works=no
20906 { echo "$as_me:$LINENO: checking for working volatile" >&5
20907 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6; }
20908 cat >conftest.$ac_ext <<_ACEOF
20909 /* confdefs.h. */
20910 _ACEOF
20911 cat confdefs.h >>conftest.$ac_ext
20912 cat >>conftest.$ac_ext <<_ACEOF
20913 /* end confdefs.h. */
20916 main ()
20918 volatile int x; x = 0;
20920 return 0;
20922 _ACEOF
20923 rm -f conftest.$ac_objext
20924 if { (ac_try="$ac_compile"
20925 case "(($ac_try" in
20926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20927 *) ac_try_echo=$ac_try;;
20928 esac
20929 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20930 (eval "$ac_compile") 2>conftest.er1
20931 ac_status=$?
20932 grep -v '^ *+' conftest.er1 >conftest.err
20933 rm -f conftest.er1
20934 cat conftest.err >&5
20935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20936 (exit $ac_status); } && {
20937 test -z "$ac_c_werror_flag" ||
20938 test ! -s conftest.err
20939 } && test -s conftest.$ac_objext; then
20940 works=yes
20941 else
20942 echo "$as_me: failed program was:" >&5
20943 sed 's/^/| /' conftest.$ac_ext >&5
20946 cat >>confdefs.h <<\_ACEOF
20947 #define volatile
20948 _ACEOF
20953 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20954 { echo "$as_me:$LINENO: result: $works" >&5
20955 echo "${ECHO_T}$works" >&6; }
20957 works=no
20958 { echo "$as_me:$LINENO: checking for working signed char" >&5
20959 echo $ECHO_N "checking for working signed char... $ECHO_C" >&6; }
20960 cat >conftest.$ac_ext <<_ACEOF
20961 /* confdefs.h. */
20962 _ACEOF
20963 cat confdefs.h >>conftest.$ac_ext
20964 cat >>conftest.$ac_ext <<_ACEOF
20965 /* end confdefs.h. */
20968 main ()
20970 signed char c;
20972 return 0;
20974 _ACEOF
20975 rm -f conftest.$ac_objext
20976 if { (ac_try="$ac_compile"
20977 case "(($ac_try" in
20978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20979 *) ac_try_echo=$ac_try;;
20980 esac
20981 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20982 (eval "$ac_compile") 2>conftest.er1
20983 ac_status=$?
20984 grep -v '^ *+' conftest.er1 >conftest.err
20985 rm -f conftest.er1
20986 cat conftest.err >&5
20987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20988 (exit $ac_status); } && {
20989 test -z "$ac_c_werror_flag" ||
20990 test ! -s conftest.err
20991 } && test -s conftest.$ac_objext; then
20992 works=yes
20993 else
20994 echo "$as_me: failed program was:" >&5
20995 sed 's/^/| /' conftest.$ac_ext >&5
20998 cat >>confdefs.h <<\_ACEOF
20999 #define signed
21000 _ACEOF
21005 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21006 { echo "$as_me:$LINENO: result: $works" >&5
21007 echo "${ECHO_T}$works" >&6; }
21009 have_prototypes=no
21010 { echo "$as_me:$LINENO: checking for prototypes" >&5
21011 echo $ECHO_N "checking for prototypes... $ECHO_C" >&6; }
21012 cat >conftest.$ac_ext <<_ACEOF
21013 /* confdefs.h. */
21014 _ACEOF
21015 cat confdefs.h >>conftest.$ac_ext
21016 cat >>conftest.$ac_ext <<_ACEOF
21017 /* end confdefs.h. */
21018 int foo(int x) { return 0; }
21020 main ()
21022 return foo(10);
21024 return 0;
21026 _ACEOF
21027 rm -f conftest.$ac_objext
21028 if { (ac_try="$ac_compile"
21029 case "(($ac_try" in
21030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21031 *) ac_try_echo=$ac_try;;
21032 esac
21033 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21034 (eval "$ac_compile") 2>conftest.er1
21035 ac_status=$?
21036 grep -v '^ *+' conftest.er1 >conftest.err
21037 rm -f conftest.er1
21038 cat conftest.err >&5
21039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21040 (exit $ac_status); } && {
21041 test -z "$ac_c_werror_flag" ||
21042 test ! -s conftest.err
21043 } && test -s conftest.$ac_objext; then
21046 cat >>confdefs.h <<\_ACEOF
21047 #define HAVE_PROTOTYPES 1
21048 _ACEOF
21050 have_prototypes=yes
21052 else
21053 echo "$as_me: failed program was:" >&5
21054 sed 's/^/| /' conftest.$ac_ext >&5
21059 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21060 { echo "$as_me:$LINENO: result: $have_prototypes" >&5
21061 echo "${ECHO_T}$have_prototypes" >&6; }
21063 works=no
21064 { echo "$as_me:$LINENO: checking for variable length prototypes and stdarg.h" >&5
21065 echo $ECHO_N "checking for variable length prototypes and stdarg.h... $ECHO_C" >&6; }
21066 cat >conftest.$ac_ext <<_ACEOF
21067 /* confdefs.h. */
21068 _ACEOF
21069 cat confdefs.h >>conftest.$ac_ext
21070 cat >>conftest.$ac_ext <<_ACEOF
21071 /* end confdefs.h. */
21073 #include <stdarg.h>
21074 int foo(int x, ...) {
21075 va_list va;
21076 va_start(va, x);
21077 va_arg(va, int);
21078 va_arg(va, char *);
21079 va_arg(va, double);
21080 return 0;
21084 main ()
21086 return foo(10, "", 3.14);
21088 return 0;
21090 _ACEOF
21091 rm -f conftest.$ac_objext
21092 if { (ac_try="$ac_compile"
21093 case "(($ac_try" in
21094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21095 *) ac_try_echo=$ac_try;;
21096 esac
21097 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21098 (eval "$ac_compile") 2>conftest.er1
21099 ac_status=$?
21100 grep -v '^ *+' conftest.er1 >conftest.err
21101 rm -f conftest.er1
21102 cat conftest.err >&5
21103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21104 (exit $ac_status); } && {
21105 test -z "$ac_c_werror_flag" ||
21106 test ! -s conftest.err
21107 } && test -s conftest.$ac_objext; then
21110 cat >>confdefs.h <<\_ACEOF
21111 #define HAVE_STDARG_PROTOTYPES 1
21112 _ACEOF
21114 works=yes
21116 else
21117 echo "$as_me: failed program was:" >&5
21118 sed 's/^/| /' conftest.$ac_ext >&5
21123 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21124 { echo "$as_me:$LINENO: result: $works" >&5
21125 echo "${ECHO_T}$works" >&6; }
21127 # check for socketpair
21128 { echo "$as_me:$LINENO: checking for socketpair" >&5
21129 echo $ECHO_N "checking for socketpair... $ECHO_C" >&6; }
21130 cat >conftest.$ac_ext <<_ACEOF
21131 /* confdefs.h. */
21132 _ACEOF
21133 cat confdefs.h >>conftest.$ac_ext
21134 cat >>conftest.$ac_ext <<_ACEOF
21135 /* end confdefs.h. */
21137 #include <sys/types.h>
21138 #include <sys/socket.h>
21141 main ()
21143 void *x=socketpair
21145 return 0;
21147 _ACEOF
21148 rm -f conftest.$ac_objext
21149 if { (ac_try="$ac_compile"
21150 case "(($ac_try" in
21151 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21152 *) ac_try_echo=$ac_try;;
21153 esac
21154 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21155 (eval "$ac_compile") 2>conftest.er1
21156 ac_status=$?
21157 grep -v '^ *+' conftest.er1 >conftest.err
21158 rm -f conftest.er1
21159 cat conftest.err >&5
21160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21161 (exit $ac_status); } && {
21162 test -z "$ac_c_werror_flag" ||
21163 test ! -s conftest.err
21164 } && test -s conftest.$ac_objext; then
21166 cat >>confdefs.h <<\_ACEOF
21167 #define HAVE_SOCKETPAIR 1
21168 _ACEOF
21170 { echo "$as_me:$LINENO: result: yes" >&5
21171 echo "${ECHO_T}yes" >&6; }
21172 else
21173 echo "$as_me: failed program was:" >&5
21174 sed 's/^/| /' conftest.$ac_ext >&5
21176 { echo "$as_me:$LINENO: result: no" >&5
21177 echo "${ECHO_T}no" >&6; }
21181 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21183 # check if sockaddr has sa_len member
21184 { echo "$as_me:$LINENO: checking if sockaddr has sa_len member" >&5
21185 echo $ECHO_N "checking if sockaddr has sa_len member... $ECHO_C" >&6; }
21186 cat >conftest.$ac_ext <<_ACEOF
21187 /* confdefs.h. */
21188 _ACEOF
21189 cat confdefs.h >>conftest.$ac_ext
21190 cat >>conftest.$ac_ext <<_ACEOF
21191 /* end confdefs.h. */
21192 #include <sys/types.h>
21193 #include <sys/socket.h>
21195 main ()
21197 struct sockaddr x;
21198 x.sa_len = 0;
21200 return 0;
21202 _ACEOF
21203 rm -f conftest.$ac_objext
21204 if { (ac_try="$ac_compile"
21205 case "(($ac_try" in
21206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21207 *) ac_try_echo=$ac_try;;
21208 esac
21209 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21210 (eval "$ac_compile") 2>conftest.er1
21211 ac_status=$?
21212 grep -v '^ *+' conftest.er1 >conftest.err
21213 rm -f conftest.er1
21214 cat conftest.err >&5
21215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21216 (exit $ac_status); } && {
21217 test -z "$ac_c_werror_flag" ||
21218 test ! -s conftest.err
21219 } && test -s conftest.$ac_objext; then
21220 { echo "$as_me:$LINENO: result: yes" >&5
21221 echo "${ECHO_T}yes" >&6; }
21223 cat >>confdefs.h <<\_ACEOF
21224 #define HAVE_SOCKADDR_SA_LEN 1
21225 _ACEOF
21227 else
21228 echo "$as_me: failed program was:" >&5
21229 sed 's/^/| /' conftest.$ac_ext >&5
21231 { echo "$as_me:$LINENO: result: no" >&5
21232 echo "${ECHO_T}no" >&6; }
21235 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21237 va_list_is_array=no
21238 { echo "$as_me:$LINENO: checking whether va_list is an array" >&5
21239 echo $ECHO_N "checking whether va_list is an array... $ECHO_C" >&6; }
21240 cat >conftest.$ac_ext <<_ACEOF
21241 /* confdefs.h. */
21242 _ACEOF
21243 cat confdefs.h >>conftest.$ac_ext
21244 cat >>conftest.$ac_ext <<_ACEOF
21245 /* end confdefs.h. */
21247 #ifdef HAVE_STDARG_PROTOTYPES
21248 #include <stdarg.h>
21249 #else
21250 #include <varargs.h>
21251 #endif
21254 main ()
21256 va_list list1, list2; list1 = list2;
21258 return 0;
21260 _ACEOF
21261 rm -f conftest.$ac_objext
21262 if { (ac_try="$ac_compile"
21263 case "(($ac_try" in
21264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21265 *) ac_try_echo=$ac_try;;
21266 esac
21267 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21268 (eval "$ac_compile") 2>conftest.er1
21269 ac_status=$?
21270 grep -v '^ *+' conftest.er1 >conftest.err
21271 rm -f conftest.er1
21272 cat conftest.err >&5
21273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21274 (exit $ac_status); } && {
21275 test -z "$ac_c_werror_flag" ||
21276 test ! -s conftest.err
21277 } && test -s conftest.$ac_objext; then
21279 else
21280 echo "$as_me: failed program was:" >&5
21281 sed 's/^/| /' conftest.$ac_ext >&5
21285 cat >>confdefs.h <<\_ACEOF
21286 #define VA_LIST_IS_ARRAY 1
21287 _ACEOF
21289 va_list_is_array=yes
21293 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21294 { echo "$as_me:$LINENO: result: $va_list_is_array" >&5
21295 echo "${ECHO_T}$va_list_is_array" >&6; }
21297 # sigh -- gethostbyname_r is a mess; it can have 3, 5 or 6 arguments :-(
21301 { echo "$as_me:$LINENO: checking for gethostbyname_r" >&5
21302 echo $ECHO_N "checking for gethostbyname_r... $ECHO_C" >&6; }
21303 if test "${ac_cv_func_gethostbyname_r+set}" = set; then
21304 echo $ECHO_N "(cached) $ECHO_C" >&6
21305 else
21306 cat >conftest.$ac_ext <<_ACEOF
21307 /* confdefs.h. */
21308 _ACEOF
21309 cat confdefs.h >>conftest.$ac_ext
21310 cat >>conftest.$ac_ext <<_ACEOF
21311 /* end confdefs.h. */
21312 /* Define gethostbyname_r to an innocuous variant, in case <limits.h> declares gethostbyname_r.
21313 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21314 #define gethostbyname_r innocuous_gethostbyname_r
21316 /* System header to define __stub macros and hopefully few prototypes,
21317 which can conflict with char gethostbyname_r (); below.
21318 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21319 <limits.h> exists even on freestanding compilers. */
21321 #ifdef __STDC__
21322 # include <limits.h>
21323 #else
21324 # include <assert.h>
21325 #endif
21327 #undef gethostbyname_r
21329 /* Override any GCC internal prototype to avoid an error.
21330 Use char because int might match the return type of a GCC
21331 builtin and then its argument prototype would still apply. */
21332 #ifdef __cplusplus
21333 extern "C"
21334 #endif
21335 char gethostbyname_r ();
21336 /* The GNU C library defines this for functions which it implements
21337 to always fail with ENOSYS. Some functions are actually named
21338 something starting with __ and the normal name is an alias. */
21339 #if defined __stub_gethostbyname_r || defined __stub___gethostbyname_r
21340 choke me
21341 #endif
21344 main ()
21346 return gethostbyname_r ();
21348 return 0;
21350 _ACEOF
21351 rm -f conftest.$ac_objext conftest$ac_exeext
21352 if { (ac_try="$ac_link"
21353 case "(($ac_try" in
21354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21355 *) ac_try_echo=$ac_try;;
21356 esac
21357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21358 (eval "$ac_link") 2>conftest.er1
21359 ac_status=$?
21360 grep -v '^ *+' conftest.er1 >conftest.err
21361 rm -f conftest.er1
21362 cat conftest.err >&5
21363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21364 (exit $ac_status); } && {
21365 test -z "$ac_c_werror_flag" ||
21366 test ! -s conftest.err
21367 } && test -s conftest$ac_exeext &&
21368 $as_test_x conftest$ac_exeext; then
21369 ac_cv_func_gethostbyname_r=yes
21370 else
21371 echo "$as_me: failed program was:" >&5
21372 sed 's/^/| /' conftest.$ac_ext >&5
21374 ac_cv_func_gethostbyname_r=no
21377 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21378 conftest$ac_exeext conftest.$ac_ext
21380 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname_r" >&5
21381 echo "${ECHO_T}$ac_cv_func_gethostbyname_r" >&6; }
21382 if test $ac_cv_func_gethostbyname_r = yes; then
21384 cat >>confdefs.h <<\_ACEOF
21385 #define HAVE_GETHOSTBYNAME_R 1
21386 _ACEOF
21388 { echo "$as_me:$LINENO: checking gethostbyname_r with 6 args" >&5
21389 echo $ECHO_N "checking gethostbyname_r with 6 args... $ECHO_C" >&6; }
21390 OLD_CFLAGS=$CFLAGS
21391 CFLAGS="$CFLAGS $MY_CPPFLAGS $MY_THREAD_CPPFLAGS $MY_CFLAGS"
21392 cat >conftest.$ac_ext <<_ACEOF
21393 /* confdefs.h. */
21394 _ACEOF
21395 cat confdefs.h >>conftest.$ac_ext
21396 cat >>conftest.$ac_ext <<_ACEOF
21397 /* end confdefs.h. */
21399 # include <netdb.h>
21402 main ()
21405 char *name;
21406 struct hostent *he, *res;
21407 char buffer[2048];
21408 int buflen = 2048;
21409 int h_errnop;
21411 (void) gethostbyname_r(name, he, buffer, buflen, &res, &h_errnop)
21414 return 0;
21416 _ACEOF
21417 rm -f conftest.$ac_objext
21418 if { (ac_try="$ac_compile"
21419 case "(($ac_try" in
21420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21421 *) ac_try_echo=$ac_try;;
21422 esac
21423 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21424 (eval "$ac_compile") 2>conftest.er1
21425 ac_status=$?
21426 grep -v '^ *+' conftest.er1 >conftest.err
21427 rm -f conftest.er1
21428 cat conftest.err >&5
21429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21430 (exit $ac_status); } && {
21431 test -z "$ac_c_werror_flag" ||
21432 test ! -s conftest.err
21433 } && test -s conftest.$ac_objext; then
21435 cat >>confdefs.h <<\_ACEOF
21436 #define HAVE_GETHOSTBYNAME_R 1
21437 _ACEOF
21440 cat >>confdefs.h <<\_ACEOF
21441 #define HAVE_GETHOSTBYNAME_R_6_ARG 1
21442 _ACEOF
21444 { echo "$as_me:$LINENO: result: yes" >&5
21445 echo "${ECHO_T}yes" >&6; }
21447 else
21448 echo "$as_me: failed program was:" >&5
21449 sed 's/^/| /' conftest.$ac_ext >&5
21452 { echo "$as_me:$LINENO: result: no" >&5
21453 echo "${ECHO_T}no" >&6; }
21454 { echo "$as_me:$LINENO: checking gethostbyname_r with 5 args" >&5
21455 echo $ECHO_N "checking gethostbyname_r with 5 args... $ECHO_C" >&6; }
21456 cat >conftest.$ac_ext <<_ACEOF
21457 /* confdefs.h. */
21458 _ACEOF
21459 cat confdefs.h >>conftest.$ac_ext
21460 cat >>conftest.$ac_ext <<_ACEOF
21461 /* end confdefs.h. */
21463 # include <netdb.h>
21466 main ()
21469 char *name;
21470 struct hostent *he;
21471 char buffer[2048];
21472 int buflen = 2048;
21473 int h_errnop;
21475 (void) gethostbyname_r(name, he, buffer, buflen, &h_errnop)
21478 return 0;
21480 _ACEOF
21481 rm -f conftest.$ac_objext
21482 if { (ac_try="$ac_compile"
21483 case "(($ac_try" in
21484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21485 *) ac_try_echo=$ac_try;;
21486 esac
21487 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21488 (eval "$ac_compile") 2>conftest.er1
21489 ac_status=$?
21490 grep -v '^ *+' conftest.er1 >conftest.err
21491 rm -f conftest.er1
21492 cat conftest.err >&5
21493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21494 (exit $ac_status); } && {
21495 test -z "$ac_c_werror_flag" ||
21496 test ! -s conftest.err
21497 } && test -s conftest.$ac_objext; then
21499 cat >>confdefs.h <<\_ACEOF
21500 #define HAVE_GETHOSTBYNAME_R 1
21501 _ACEOF
21504 cat >>confdefs.h <<\_ACEOF
21505 #define HAVE_GETHOSTBYNAME_R_5_ARG 1
21506 _ACEOF
21508 { echo "$as_me:$LINENO: result: yes" >&5
21509 echo "${ECHO_T}yes" >&6; }
21511 else
21512 echo "$as_me: failed program was:" >&5
21513 sed 's/^/| /' conftest.$ac_ext >&5
21516 { echo "$as_me:$LINENO: result: no" >&5
21517 echo "${ECHO_T}no" >&6; }
21518 { echo "$as_me:$LINENO: checking gethostbyname_r with 3 args" >&5
21519 echo $ECHO_N "checking gethostbyname_r with 3 args... $ECHO_C" >&6; }
21520 cat >conftest.$ac_ext <<_ACEOF
21521 /* confdefs.h. */
21522 _ACEOF
21523 cat confdefs.h >>conftest.$ac_ext
21524 cat >>conftest.$ac_ext <<_ACEOF
21525 /* end confdefs.h. */
21527 # include <netdb.h>
21530 main ()
21533 char *name;
21534 struct hostent *he;
21535 struct hostent_data data;
21537 (void) gethostbyname_r(name, he, &data);
21540 return 0;
21542 _ACEOF
21543 rm -f conftest.$ac_objext
21544 if { (ac_try="$ac_compile"
21545 case "(($ac_try" in
21546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21547 *) ac_try_echo=$ac_try;;
21548 esac
21549 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21550 (eval "$ac_compile") 2>conftest.er1
21551 ac_status=$?
21552 grep -v '^ *+' conftest.er1 >conftest.err
21553 rm -f conftest.er1
21554 cat conftest.err >&5
21555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21556 (exit $ac_status); } && {
21557 test -z "$ac_c_werror_flag" ||
21558 test ! -s conftest.err
21559 } && test -s conftest.$ac_objext; then
21561 cat >>confdefs.h <<\_ACEOF
21562 #define HAVE_GETHOSTBYNAME_R 1
21563 _ACEOF
21566 cat >>confdefs.h <<\_ACEOF
21567 #define HAVE_GETHOSTBYNAME_R_3_ARG 1
21568 _ACEOF
21570 { echo "$as_me:$LINENO: result: yes" >&5
21571 echo "${ECHO_T}yes" >&6; }
21573 else
21574 echo "$as_me: failed program was:" >&5
21575 sed 's/^/| /' conftest.$ac_ext >&5
21578 { echo "$as_me:$LINENO: result: no" >&5
21579 echo "${ECHO_T}no" >&6; }
21583 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21587 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21591 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21592 CFLAGS=$OLD_CFLAGS
21594 else
21597 for ac_func in gethostbyname
21599 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21600 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21601 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21602 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21603 echo $ECHO_N "(cached) $ECHO_C" >&6
21604 else
21605 cat >conftest.$ac_ext <<_ACEOF
21606 /* confdefs.h. */
21607 _ACEOF
21608 cat confdefs.h >>conftest.$ac_ext
21609 cat >>conftest.$ac_ext <<_ACEOF
21610 /* end confdefs.h. */
21611 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21612 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21613 #define $ac_func innocuous_$ac_func
21615 /* System header to define __stub macros and hopefully few prototypes,
21616 which can conflict with char $ac_func (); below.
21617 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21618 <limits.h> exists even on freestanding compilers. */
21620 #ifdef __STDC__
21621 # include <limits.h>
21622 #else
21623 # include <assert.h>
21624 #endif
21626 #undef $ac_func
21628 /* Override any GCC internal prototype to avoid an error.
21629 Use char because int might match the return type of a GCC
21630 builtin and then its argument prototype would still apply. */
21631 #ifdef __cplusplus
21632 extern "C"
21633 #endif
21634 char $ac_func ();
21635 /* The GNU C library defines this for functions which it implements
21636 to always fail with ENOSYS. Some functions are actually named
21637 something starting with __ and the normal name is an alias. */
21638 #if defined __stub_$ac_func || defined __stub___$ac_func
21639 choke me
21640 #endif
21643 main ()
21645 return $ac_func ();
21647 return 0;
21649 _ACEOF
21650 rm -f conftest.$ac_objext conftest$ac_exeext
21651 if { (ac_try="$ac_link"
21652 case "(($ac_try" in
21653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21654 *) ac_try_echo=$ac_try;;
21655 esac
21656 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21657 (eval "$ac_link") 2>conftest.er1
21658 ac_status=$?
21659 grep -v '^ *+' conftest.er1 >conftest.err
21660 rm -f conftest.er1
21661 cat conftest.err >&5
21662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21663 (exit $ac_status); } && {
21664 test -z "$ac_c_werror_flag" ||
21665 test ! -s conftest.err
21666 } && test -s conftest$ac_exeext &&
21667 $as_test_x conftest$ac_exeext; then
21668 eval "$as_ac_var=yes"
21669 else
21670 echo "$as_me: failed program was:" >&5
21671 sed 's/^/| /' conftest.$ac_ext >&5
21673 eval "$as_ac_var=no"
21676 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21677 conftest$ac_exeext conftest.$ac_ext
21679 ac_res=`eval echo '${'$as_ac_var'}'`
21680 { echo "$as_me:$LINENO: result: $ac_res" >&5
21681 echo "${ECHO_T}$ac_res" >&6; }
21682 if test `eval echo '${'$as_ac_var'}'` = yes; then
21683 cat >>confdefs.h <<_ACEOF
21684 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21685 _ACEOF
21688 done
21699 # checks for system services
21700 # (none yet)
21702 # Linux requires this for correct f.p. operations
21703 { echo "$as_me:$LINENO: checking for __fpu_control" >&5
21704 echo $ECHO_N "checking for __fpu_control... $ECHO_C" >&6; }
21705 if test "${ac_cv_func___fpu_control+set}" = set; then
21706 echo $ECHO_N "(cached) $ECHO_C" >&6
21707 else
21708 cat >conftest.$ac_ext <<_ACEOF
21709 /* confdefs.h. */
21710 _ACEOF
21711 cat confdefs.h >>conftest.$ac_ext
21712 cat >>conftest.$ac_ext <<_ACEOF
21713 /* end confdefs.h. */
21714 /* Define __fpu_control to an innocuous variant, in case <limits.h> declares __fpu_control.
21715 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21716 #define __fpu_control innocuous___fpu_control
21718 /* System header to define __stub macros and hopefully few prototypes,
21719 which can conflict with char __fpu_control (); below.
21720 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21721 <limits.h> exists even on freestanding compilers. */
21723 #ifdef __STDC__
21724 # include <limits.h>
21725 #else
21726 # include <assert.h>
21727 #endif
21729 #undef __fpu_control
21731 /* Override any GCC internal prototype to avoid an error.
21732 Use char because int might match the return type of a GCC
21733 builtin and then its argument prototype would still apply. */
21734 #ifdef __cplusplus
21735 extern "C"
21736 #endif
21737 char __fpu_control ();
21738 /* The GNU C library defines this for functions which it implements
21739 to always fail with ENOSYS. Some functions are actually named
21740 something starting with __ and the normal name is an alias. */
21741 #if defined __stub___fpu_control || defined __stub_____fpu_control
21742 choke me
21743 #endif
21746 main ()
21748 return __fpu_control ();
21750 return 0;
21752 _ACEOF
21753 rm -f conftest.$ac_objext conftest$ac_exeext
21754 if { (ac_try="$ac_link"
21755 case "(($ac_try" in
21756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21757 *) ac_try_echo=$ac_try;;
21758 esac
21759 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21760 (eval "$ac_link") 2>conftest.er1
21761 ac_status=$?
21762 grep -v '^ *+' conftest.er1 >conftest.err
21763 rm -f conftest.er1
21764 cat conftest.err >&5
21765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21766 (exit $ac_status); } && {
21767 test -z "$ac_c_werror_flag" ||
21768 test ! -s conftest.err
21769 } && test -s conftest$ac_exeext &&
21770 $as_test_x conftest$ac_exeext; then
21771 ac_cv_func___fpu_control=yes
21772 else
21773 echo "$as_me: failed program was:" >&5
21774 sed 's/^/| /' conftest.$ac_ext >&5
21776 ac_cv_func___fpu_control=no
21779 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21780 conftest$ac_exeext conftest.$ac_ext
21782 { echo "$as_me:$LINENO: result: $ac_cv_func___fpu_control" >&5
21783 echo "${ECHO_T}$ac_cv_func___fpu_control" >&6; }
21784 if test $ac_cv_func___fpu_control = yes; then
21786 else
21788 { echo "$as_me:$LINENO: checking for __fpu_control in -lieee" >&5
21789 echo $ECHO_N "checking for __fpu_control in -lieee... $ECHO_C" >&6; }
21790 if test "${ac_cv_lib_ieee___fpu_control+set}" = set; then
21791 echo $ECHO_N "(cached) $ECHO_C" >&6
21792 else
21793 ac_check_lib_save_LIBS=$LIBS
21794 LIBS="-lieee $LIBS"
21795 cat >conftest.$ac_ext <<_ACEOF
21796 /* confdefs.h. */
21797 _ACEOF
21798 cat confdefs.h >>conftest.$ac_ext
21799 cat >>conftest.$ac_ext <<_ACEOF
21800 /* end confdefs.h. */
21802 /* Override any GCC internal prototype to avoid an error.
21803 Use char because int might match the return type of a GCC
21804 builtin and then its argument prototype would still apply. */
21805 #ifdef __cplusplus
21806 extern "C"
21807 #endif
21808 char __fpu_control ();
21810 main ()
21812 return __fpu_control ();
21814 return 0;
21816 _ACEOF
21817 rm -f conftest.$ac_objext conftest$ac_exeext
21818 if { (ac_try="$ac_link"
21819 case "(($ac_try" in
21820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21821 *) ac_try_echo=$ac_try;;
21822 esac
21823 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21824 (eval "$ac_link") 2>conftest.er1
21825 ac_status=$?
21826 grep -v '^ *+' conftest.er1 >conftest.err
21827 rm -f conftest.er1
21828 cat conftest.err >&5
21829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21830 (exit $ac_status); } && {
21831 test -z "$ac_c_werror_flag" ||
21832 test ! -s conftest.err
21833 } && test -s conftest$ac_exeext &&
21834 $as_test_x conftest$ac_exeext; then
21835 ac_cv_lib_ieee___fpu_control=yes
21836 else
21837 echo "$as_me: failed program was:" >&5
21838 sed 's/^/| /' conftest.$ac_ext >&5
21840 ac_cv_lib_ieee___fpu_control=no
21843 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21844 conftest$ac_exeext conftest.$ac_ext
21845 LIBS=$ac_check_lib_save_LIBS
21847 { echo "$as_me:$LINENO: result: $ac_cv_lib_ieee___fpu_control" >&5
21848 echo "${ECHO_T}$ac_cv_lib_ieee___fpu_control" >&6; }
21849 if test $ac_cv_lib_ieee___fpu_control = yes; then
21850 cat >>confdefs.h <<_ACEOF
21851 #define HAVE_LIBIEEE 1
21852 _ACEOF
21854 LIBS="-lieee $LIBS"
21862 # Check for --with-fpectl
21863 { echo "$as_me:$LINENO: checking for --with-fpectl" >&5
21864 echo $ECHO_N "checking for --with-fpectl... $ECHO_C" >&6; }
21866 # Check whether --with-fpectl was given.
21867 if test "${with_fpectl+set}" = set; then
21868 withval=$with_fpectl;
21869 if test "$withval" != no
21870 then
21872 cat >>confdefs.h <<\_ACEOF
21873 #define WANT_SIGFPE_HANDLER 1
21874 _ACEOF
21876 { echo "$as_me:$LINENO: result: yes" >&5
21877 echo "${ECHO_T}yes" >&6; }
21878 else { echo "$as_me:$LINENO: result: no" >&5
21879 echo "${ECHO_T}no" >&6; }
21881 else
21882 { echo "$as_me:$LINENO: result: no" >&5
21883 echo "${ECHO_T}no" >&6; }
21887 # check for --with-libm=...
21889 case $ac_sys_system in
21890 Darwin) ;;
21891 BeOS) ;;
21892 *) LIBM=-lm
21893 esac
21894 { echo "$as_me:$LINENO: checking for --with-libm=STRING" >&5
21895 echo $ECHO_N "checking for --with-libm=STRING... $ECHO_C" >&6; }
21897 # Check whether --with-libm was given.
21898 if test "${with_libm+set}" = set; then
21899 withval=$with_libm;
21900 if test "$withval" = no
21901 then LIBM=
21902 { echo "$as_me:$LINENO: result: force LIBM empty" >&5
21903 echo "${ECHO_T}force LIBM empty" >&6; }
21904 elif test "$withval" != yes
21905 then LIBM=$withval
21906 { echo "$as_me:$LINENO: result: set LIBM=\"$withval\"" >&5
21907 echo "${ECHO_T}set LIBM=\"$withval\"" >&6; }
21908 else { { echo "$as_me:$LINENO: error: proper usage is --with-libm=STRING" >&5
21909 echo "$as_me: error: proper usage is --with-libm=STRING" >&2;}
21910 { (exit 1); exit 1; }; }
21912 else
21913 { echo "$as_me:$LINENO: result: default LIBM=\"$LIBM\"" >&5
21914 echo "${ECHO_T}default LIBM=\"$LIBM\"" >&6; }
21918 # check for --with-libc=...
21920 { echo "$as_me:$LINENO: checking for --with-libc=STRING" >&5
21921 echo $ECHO_N "checking for --with-libc=STRING... $ECHO_C" >&6; }
21923 # Check whether --with-libc was given.
21924 if test "${with_libc+set}" = set; then
21925 withval=$with_libc;
21926 if test "$withval" = no
21927 then LIBC=
21928 { echo "$as_me:$LINENO: result: force LIBC empty" >&5
21929 echo "${ECHO_T}force LIBC empty" >&6; }
21930 elif test "$withval" != yes
21931 then LIBC=$withval
21932 { echo "$as_me:$LINENO: result: set LIBC=\"$withval\"" >&5
21933 echo "${ECHO_T}set LIBC=\"$withval\"" >&6; }
21934 else { { echo "$as_me:$LINENO: error: proper usage is --with-libc=STRING" >&5
21935 echo "$as_me: error: proper usage is --with-libc=STRING" >&2;}
21936 { (exit 1); exit 1; }; }
21938 else
21939 { echo "$as_me:$LINENO: result: default LIBC=\"$LIBC\"" >&5
21940 echo "${ECHO_T}default LIBC=\"$LIBC\"" >&6; }
21944 # ************************************
21945 # * Check for mathematical functions *
21946 # ************************************
21948 LIBS_SAVE=$LIBS
21949 LIBS="$LIBS $LIBM"
21951 # Detect whether system arithmetic is subject to x87-style double
21952 # rounding issues. The result of this test has little meaning on non
21953 # IEEE 754 platforms. On IEEE 754, test should return 1 if rounding
21954 # mode is round-to-nearest and double rounding issues are present, and
21955 # 0 otherwise. See http://bugs.python.org/issue2937 for more info.
21956 { echo "$as_me:$LINENO: checking for x87-style double rounding" >&5
21957 echo $ECHO_N "checking for x87-style double rounding... $ECHO_C" >&6; }
21958 if test "${ac_cv_x87_double_rounding+set}" = set; then
21959 echo $ECHO_N "(cached) $ECHO_C" >&6
21960 else
21962 if test "$cross_compiling" = yes; then
21963 ac_cv_x87_double_rounding=no
21964 else
21965 cat >conftest.$ac_ext <<_ACEOF
21966 /* confdefs.h. */
21967 _ACEOF
21968 cat confdefs.h >>conftest.$ac_ext
21969 cat >>conftest.$ac_ext <<_ACEOF
21970 /* end confdefs.h. */
21972 #include <stdlib.h>
21973 #include <math.h>
21974 int main() {
21975 volatile double x, y, z;
21976 /* 1./(1-2**-53) -> 1+2**-52 (correct), 1.0 (double rounding) */
21977 x = 0.99999999999999989; /* 1-2**-53 */
21978 y = 1./x;
21979 if (y != 1.)
21980 exit(0);
21981 /* 1e16+2.99999 -> 1e16+2. (correct), 1e16+4. (double rounding) */
21982 x = 1e16;
21983 y = 2.99999;
21984 z = x + y;
21985 if (z != 1e16+4.)
21986 exit(0);
21987 /* both tests show evidence of double rounding */
21988 exit(1);
21991 _ACEOF
21992 rm -f conftest$ac_exeext
21993 if { (ac_try="$ac_link"
21994 case "(($ac_try" in
21995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21996 *) ac_try_echo=$ac_try;;
21997 esac
21998 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21999 (eval "$ac_link") 2>&5
22000 ac_status=$?
22001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22002 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22003 { (case "(($ac_try" in
22004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22005 *) ac_try_echo=$ac_try;;
22006 esac
22007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22008 (eval "$ac_try") 2>&5
22009 ac_status=$?
22010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22011 (exit $ac_status); }; }; then
22012 ac_cv_x87_double_rounding=no
22013 else
22014 echo "$as_me: program exited with status $ac_status" >&5
22015 echo "$as_me: failed program was:" >&5
22016 sed 's/^/| /' conftest.$ac_ext >&5
22018 ( exit $ac_status )
22019 ac_cv_x87_double_rounding=yes
22021 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22027 { echo "$as_me:$LINENO: result: $ac_cv_x87_double_rounding" >&5
22028 echo "${ECHO_T}$ac_cv_x87_double_rounding" >&6; }
22029 if test "$ac_cv_x87_double_rounding" = yes
22030 then
22032 cat >>confdefs.h <<\_ACEOF
22033 #define X87_DOUBLE_ROUNDING 1
22034 _ACEOF
22038 # Multiprocessing check for broken sem_getvalue
22039 { echo "$as_me:$LINENO: checking for broken sem_getvalue" >&5
22040 echo $ECHO_N "checking for broken sem_getvalue... $ECHO_C" >&6; }
22041 if test "$cross_compiling" = yes; then
22042 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
22043 See \`config.log' for more details." >&5
22044 echo "$as_me: error: cannot run test program while cross compiling
22045 See \`config.log' for more details." >&2;}
22046 { (exit 1); exit 1; }; }
22047 else
22048 cat >conftest.$ac_ext <<_ACEOF
22049 /* confdefs.h. */
22050 _ACEOF
22051 cat confdefs.h >>conftest.$ac_ext
22052 cat >>conftest.$ac_ext <<_ACEOF
22053 /* end confdefs.h. */
22055 #include <unistd.h>
22056 #include <fcntl.h>
22057 #include <stdio.h>
22058 #include <semaphore.h>
22059 #include <sys/stat.h>
22061 int main(void){
22062 sem_t *a = sem_open("/autoconf", O_CREAT, S_IRUSR|S_IWUSR, 0);
22063 int count;
22064 int res;
22065 if(a==SEM_FAILED){
22066 perror("sem_open");
22067 return 1;
22070 res = sem_getvalue(a, &count);
22071 sem_close(a);
22072 return res==-1 ? 1 : 0;
22076 _ACEOF
22077 rm -f conftest$ac_exeext
22078 if { (ac_try="$ac_link"
22079 case "(($ac_try" in
22080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22081 *) ac_try_echo=$ac_try;;
22082 esac
22083 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22084 (eval "$ac_link") 2>&5
22085 ac_status=$?
22086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22087 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22088 { (case "(($ac_try" in
22089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22090 *) ac_try_echo=$ac_try;;
22091 esac
22092 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22093 (eval "$ac_try") 2>&5
22094 ac_status=$?
22095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22096 (exit $ac_status); }; }; then
22097 { echo "$as_me:$LINENO: result: no" >&5
22098 echo "${ECHO_T}no" >&6; }
22099 else
22100 echo "$as_me: program exited with status $ac_status" >&5
22101 echo "$as_me: failed program was:" >&5
22102 sed 's/^/| /' conftest.$ac_ext >&5
22104 ( exit $ac_status )
22105 { echo "$as_me:$LINENO: result: yes" >&5
22106 echo "${ECHO_T}yes" >&6; }
22108 cat >>confdefs.h <<\_ACEOF
22109 #define HAVE_BROKEN_SEM_GETVALUE 1
22110 _ACEOF
22114 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22119 # On FreeBSD 6.2, it appears that tanh(-0.) returns 0. instead of
22120 # -0. on some architectures.
22121 { echo "$as_me:$LINENO: checking whether tanh preserves the sign of zero" >&5
22122 echo $ECHO_N "checking whether tanh preserves the sign of zero... $ECHO_C" >&6; }
22123 if test "${ac_cv_tanh_preserves_zero_sign+set}" = set; then
22124 echo $ECHO_N "(cached) $ECHO_C" >&6
22125 else
22127 if test "$cross_compiling" = yes; then
22128 ac_cv_tanh_preserves_zero_sign=no
22129 else
22130 cat >conftest.$ac_ext <<_ACEOF
22131 /* confdefs.h. */
22132 _ACEOF
22133 cat confdefs.h >>conftest.$ac_ext
22134 cat >>conftest.$ac_ext <<_ACEOF
22135 /* end confdefs.h. */
22137 #include <math.h>
22138 #include <stdlib.h>
22139 int main() {
22140 /* return 0 if either negative zeros don't exist
22141 on this platform or if negative zeros exist
22142 and tanh(-0.) == -0. */
22143 if (atan2(0., -1.) == atan2(-0., -1.) ||
22144 atan2(tanh(-0.), -1.) == atan2(-0., -1.)) exit(0);
22145 else exit(1);
22148 _ACEOF
22149 rm -f conftest$ac_exeext
22150 if { (ac_try="$ac_link"
22151 case "(($ac_try" in
22152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22153 *) ac_try_echo=$ac_try;;
22154 esac
22155 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22156 (eval "$ac_link") 2>&5
22157 ac_status=$?
22158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22159 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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_try") 2>&5
22166 ac_status=$?
22167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22168 (exit $ac_status); }; }; then
22169 ac_cv_tanh_preserves_zero_sign=yes
22170 else
22171 echo "$as_me: program exited with status $ac_status" >&5
22172 echo "$as_me: failed program was:" >&5
22173 sed 's/^/| /' conftest.$ac_ext >&5
22175 ( exit $ac_status )
22176 ac_cv_tanh_preserves_zero_sign=no
22178 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22184 { echo "$as_me:$LINENO: result: $ac_cv_tanh_preserves_zero_sign" >&5
22185 echo "${ECHO_T}$ac_cv_tanh_preserves_zero_sign" >&6; }
22186 if test "$ac_cv_tanh_preserves_zero_sign" = yes
22187 then
22189 cat >>confdefs.h <<\_ACEOF
22190 #define TANH_PRESERVES_ZERO_SIGN 1
22191 _ACEOF
22204 for ac_func in acosh asinh atanh copysign expm1 finite hypot log1p round
22206 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22207 { echo "$as_me:$LINENO: checking for $ac_func" >&5
22208 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22209 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22210 echo $ECHO_N "(cached) $ECHO_C" >&6
22211 else
22212 cat >conftest.$ac_ext <<_ACEOF
22213 /* confdefs.h. */
22214 _ACEOF
22215 cat confdefs.h >>conftest.$ac_ext
22216 cat >>conftest.$ac_ext <<_ACEOF
22217 /* end confdefs.h. */
22218 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22219 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22220 #define $ac_func innocuous_$ac_func
22222 /* System header to define __stub macros and hopefully few prototypes,
22223 which can conflict with char $ac_func (); below.
22224 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22225 <limits.h> exists even on freestanding compilers. */
22227 #ifdef __STDC__
22228 # include <limits.h>
22229 #else
22230 # include <assert.h>
22231 #endif
22233 #undef $ac_func
22235 /* Override any GCC internal prototype to avoid an error.
22236 Use char because int might match the return type of a GCC
22237 builtin and then its argument prototype would still apply. */
22238 #ifdef __cplusplus
22239 extern "C"
22240 #endif
22241 char $ac_func ();
22242 /* The GNU C library defines this for functions which it implements
22243 to always fail with ENOSYS. Some functions are actually named
22244 something starting with __ and the normal name is an alias. */
22245 #if defined __stub_$ac_func || defined __stub___$ac_func
22246 choke me
22247 #endif
22250 main ()
22252 return $ac_func ();
22254 return 0;
22256 _ACEOF
22257 rm -f conftest.$ac_objext conftest$ac_exeext
22258 if { (ac_try="$ac_link"
22259 case "(($ac_try" in
22260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22261 *) ac_try_echo=$ac_try;;
22262 esac
22263 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22264 (eval "$ac_link") 2>conftest.er1
22265 ac_status=$?
22266 grep -v '^ *+' conftest.er1 >conftest.err
22267 rm -f conftest.er1
22268 cat conftest.err >&5
22269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22270 (exit $ac_status); } && {
22271 test -z "$ac_c_werror_flag" ||
22272 test ! -s conftest.err
22273 } && test -s conftest$ac_exeext &&
22274 $as_test_x conftest$ac_exeext; then
22275 eval "$as_ac_var=yes"
22276 else
22277 echo "$as_me: failed program was:" >&5
22278 sed 's/^/| /' conftest.$ac_ext >&5
22280 eval "$as_ac_var=no"
22283 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22284 conftest$ac_exeext conftest.$ac_ext
22286 ac_res=`eval echo '${'$as_ac_var'}'`
22287 { echo "$as_me:$LINENO: result: $ac_res" >&5
22288 echo "${ECHO_T}$ac_res" >&6; }
22289 if test `eval echo '${'$as_ac_var'}'` = yes; then
22290 cat >>confdefs.h <<_ACEOF
22291 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22292 _ACEOF
22295 done
22297 { echo "$as_me:$LINENO: checking whether isinf is declared" >&5
22298 echo $ECHO_N "checking whether isinf is declared... $ECHO_C" >&6; }
22299 if test "${ac_cv_have_decl_isinf+set}" = set; then
22300 echo $ECHO_N "(cached) $ECHO_C" >&6
22301 else
22302 cat >conftest.$ac_ext <<_ACEOF
22303 /* confdefs.h. */
22304 _ACEOF
22305 cat confdefs.h >>conftest.$ac_ext
22306 cat >>conftest.$ac_ext <<_ACEOF
22307 /* end confdefs.h. */
22308 #include <math.h>
22311 main ()
22313 #ifndef isinf
22314 (void) isinf;
22315 #endif
22318 return 0;
22320 _ACEOF
22321 rm -f conftest.$ac_objext
22322 if { (ac_try="$ac_compile"
22323 case "(($ac_try" in
22324 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22325 *) ac_try_echo=$ac_try;;
22326 esac
22327 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22328 (eval "$ac_compile") 2>conftest.er1
22329 ac_status=$?
22330 grep -v '^ *+' conftest.er1 >conftest.err
22331 rm -f conftest.er1
22332 cat conftest.err >&5
22333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22334 (exit $ac_status); } && {
22335 test -z "$ac_c_werror_flag" ||
22336 test ! -s conftest.err
22337 } && test -s conftest.$ac_objext; then
22338 ac_cv_have_decl_isinf=yes
22339 else
22340 echo "$as_me: failed program was:" >&5
22341 sed 's/^/| /' conftest.$ac_ext >&5
22343 ac_cv_have_decl_isinf=no
22346 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22348 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_isinf" >&5
22349 echo "${ECHO_T}$ac_cv_have_decl_isinf" >&6; }
22350 if test $ac_cv_have_decl_isinf = yes; then
22352 cat >>confdefs.h <<_ACEOF
22353 #define HAVE_DECL_ISINF 1
22354 _ACEOF
22357 else
22358 cat >>confdefs.h <<_ACEOF
22359 #define HAVE_DECL_ISINF 0
22360 _ACEOF
22364 { echo "$as_me:$LINENO: checking whether isnan is declared" >&5
22365 echo $ECHO_N "checking whether isnan is declared... $ECHO_C" >&6; }
22366 if test "${ac_cv_have_decl_isnan+set}" = set; then
22367 echo $ECHO_N "(cached) $ECHO_C" >&6
22368 else
22369 cat >conftest.$ac_ext <<_ACEOF
22370 /* confdefs.h. */
22371 _ACEOF
22372 cat confdefs.h >>conftest.$ac_ext
22373 cat >>conftest.$ac_ext <<_ACEOF
22374 /* end confdefs.h. */
22375 #include <math.h>
22378 main ()
22380 #ifndef isnan
22381 (void) isnan;
22382 #endif
22385 return 0;
22387 _ACEOF
22388 rm -f conftest.$ac_objext
22389 if { (ac_try="$ac_compile"
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_compile") 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_objext; then
22405 ac_cv_have_decl_isnan=yes
22406 else
22407 echo "$as_me: failed program was:" >&5
22408 sed 's/^/| /' conftest.$ac_ext >&5
22410 ac_cv_have_decl_isnan=no
22413 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22415 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_isnan" >&5
22416 echo "${ECHO_T}$ac_cv_have_decl_isnan" >&6; }
22417 if test $ac_cv_have_decl_isnan = yes; then
22419 cat >>confdefs.h <<_ACEOF
22420 #define HAVE_DECL_ISNAN 1
22421 _ACEOF
22424 else
22425 cat >>confdefs.h <<_ACEOF
22426 #define HAVE_DECL_ISNAN 0
22427 _ACEOF
22431 { echo "$as_me:$LINENO: checking whether isfinite is declared" >&5
22432 echo $ECHO_N "checking whether isfinite is declared... $ECHO_C" >&6; }
22433 if test "${ac_cv_have_decl_isfinite+set}" = set; then
22434 echo $ECHO_N "(cached) $ECHO_C" >&6
22435 else
22436 cat >conftest.$ac_ext <<_ACEOF
22437 /* confdefs.h. */
22438 _ACEOF
22439 cat confdefs.h >>conftest.$ac_ext
22440 cat >>conftest.$ac_ext <<_ACEOF
22441 /* end confdefs.h. */
22442 #include <math.h>
22445 main ()
22447 #ifndef isfinite
22448 (void) isfinite;
22449 #endif
22452 return 0;
22454 _ACEOF
22455 rm -f conftest.$ac_objext
22456 if { (ac_try="$ac_compile"
22457 case "(($ac_try" in
22458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22459 *) ac_try_echo=$ac_try;;
22460 esac
22461 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22462 (eval "$ac_compile") 2>conftest.er1
22463 ac_status=$?
22464 grep -v '^ *+' conftest.er1 >conftest.err
22465 rm -f conftest.er1
22466 cat conftest.err >&5
22467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22468 (exit $ac_status); } && {
22469 test -z "$ac_c_werror_flag" ||
22470 test ! -s conftest.err
22471 } && test -s conftest.$ac_objext; then
22472 ac_cv_have_decl_isfinite=yes
22473 else
22474 echo "$as_me: failed program was:" >&5
22475 sed 's/^/| /' conftest.$ac_ext >&5
22477 ac_cv_have_decl_isfinite=no
22480 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22482 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_isfinite" >&5
22483 echo "${ECHO_T}$ac_cv_have_decl_isfinite" >&6; }
22484 if test $ac_cv_have_decl_isfinite = yes; then
22486 cat >>confdefs.h <<_ACEOF
22487 #define HAVE_DECL_ISFINITE 1
22488 _ACEOF
22491 else
22492 cat >>confdefs.h <<_ACEOF
22493 #define HAVE_DECL_ISFINITE 0
22494 _ACEOF
22501 LIBS=$LIBS_SAVE
22503 # determine what size digit to use for Python's longs
22504 { echo "$as_me:$LINENO: checking digit size for Python's longs" >&5
22505 echo $ECHO_N "checking digit size for Python's longs... $ECHO_C" >&6; }
22506 # Check whether --enable-big-digits was given.
22507 if test "${enable_big_digits+set}" = set; then
22508 enableval=$enable_big_digits; case $enable_big_digits in
22509 yes)
22510 enable_big_digits=30 ;;
22512 enable_big_digits=15 ;;
22513 15|30)
22516 { { echo "$as_me:$LINENO: error: bad value $enable_big_digits for --enable-big-digits; value should be 15 or 30" >&5
22517 echo "$as_me: error: bad value $enable_big_digits for --enable-big-digits; value should be 15 or 30" >&2;}
22518 { (exit 1); exit 1; }; } ;;
22519 esac
22520 { echo "$as_me:$LINENO: result: $enable_big_digits" >&5
22521 echo "${ECHO_T}$enable_big_digits" >&6; }
22523 cat >>confdefs.h <<_ACEOF
22524 #define PYLONG_BITS_IN_DIGIT $enable_big_digits
22525 _ACEOF
22528 else
22529 { echo "$as_me:$LINENO: result: no value specified" >&5
22530 echo "${ECHO_T}no value specified" >&6; }
22534 # check for wchar.h
22535 if test "${ac_cv_header_wchar_h+set}" = set; then
22536 { echo "$as_me:$LINENO: checking for wchar.h" >&5
22537 echo $ECHO_N "checking for wchar.h... $ECHO_C" >&6; }
22538 if test "${ac_cv_header_wchar_h+set}" = set; then
22539 echo $ECHO_N "(cached) $ECHO_C" >&6
22541 { echo "$as_me:$LINENO: result: $ac_cv_header_wchar_h" >&5
22542 echo "${ECHO_T}$ac_cv_header_wchar_h" >&6; }
22543 else
22544 # Is the header compilable?
22545 { echo "$as_me:$LINENO: checking wchar.h usability" >&5
22546 echo $ECHO_N "checking wchar.h usability... $ECHO_C" >&6; }
22547 cat >conftest.$ac_ext <<_ACEOF
22548 /* confdefs.h. */
22549 _ACEOF
22550 cat confdefs.h >>conftest.$ac_ext
22551 cat >>conftest.$ac_ext <<_ACEOF
22552 /* end confdefs.h. */
22553 $ac_includes_default
22554 #include <wchar.h>
22555 _ACEOF
22556 rm -f conftest.$ac_objext
22557 if { (ac_try="$ac_compile"
22558 case "(($ac_try" in
22559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22560 *) ac_try_echo=$ac_try;;
22561 esac
22562 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22563 (eval "$ac_compile") 2>conftest.er1
22564 ac_status=$?
22565 grep -v '^ *+' conftest.er1 >conftest.err
22566 rm -f conftest.er1
22567 cat conftest.err >&5
22568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22569 (exit $ac_status); } && {
22570 test -z "$ac_c_werror_flag" ||
22571 test ! -s conftest.err
22572 } && test -s conftest.$ac_objext; then
22573 ac_header_compiler=yes
22574 else
22575 echo "$as_me: failed program was:" >&5
22576 sed 's/^/| /' conftest.$ac_ext >&5
22578 ac_header_compiler=no
22581 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22582 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22583 echo "${ECHO_T}$ac_header_compiler" >&6; }
22585 # Is the header present?
22586 { echo "$as_me:$LINENO: checking wchar.h presence" >&5
22587 echo $ECHO_N "checking wchar.h presence... $ECHO_C" >&6; }
22588 cat >conftest.$ac_ext <<_ACEOF
22589 /* confdefs.h. */
22590 _ACEOF
22591 cat confdefs.h >>conftest.$ac_ext
22592 cat >>conftest.$ac_ext <<_ACEOF
22593 /* end confdefs.h. */
22594 #include <wchar.h>
22595 _ACEOF
22596 if { (ac_try="$ac_cpp conftest.$ac_ext"
22597 case "(($ac_try" in
22598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22599 *) ac_try_echo=$ac_try;;
22600 esac
22601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22602 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22603 ac_status=$?
22604 grep -v '^ *+' conftest.er1 >conftest.err
22605 rm -f conftest.er1
22606 cat conftest.err >&5
22607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22608 (exit $ac_status); } >/dev/null && {
22609 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22610 test ! -s conftest.err
22611 }; then
22612 ac_header_preproc=yes
22613 else
22614 echo "$as_me: failed program was:" >&5
22615 sed 's/^/| /' conftest.$ac_ext >&5
22617 ac_header_preproc=no
22620 rm -f conftest.err conftest.$ac_ext
22621 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22622 echo "${ECHO_T}$ac_header_preproc" >&6; }
22624 # So? What about this header?
22625 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22626 yes:no: )
22627 { echo "$as_me:$LINENO: WARNING: wchar.h: accepted by the compiler, rejected by the preprocessor!" >&5
22628 echo "$as_me: WARNING: wchar.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22629 { echo "$as_me:$LINENO: WARNING: wchar.h: proceeding with the compiler's result" >&5
22630 echo "$as_me: WARNING: wchar.h: proceeding with the compiler's result" >&2;}
22631 ac_header_preproc=yes
22633 no:yes:* )
22634 { echo "$as_me:$LINENO: WARNING: wchar.h: present but cannot be compiled" >&5
22635 echo "$as_me: WARNING: wchar.h: present but cannot be compiled" >&2;}
22636 { echo "$as_me:$LINENO: WARNING: wchar.h: check for missing prerequisite headers?" >&5
22637 echo "$as_me: WARNING: wchar.h: check for missing prerequisite headers?" >&2;}
22638 { echo "$as_me:$LINENO: WARNING: wchar.h: see the Autoconf documentation" >&5
22639 echo "$as_me: WARNING: wchar.h: see the Autoconf documentation" >&2;}
22640 { echo "$as_me:$LINENO: WARNING: wchar.h: section \"Present But Cannot Be Compiled\"" >&5
22641 echo "$as_me: WARNING: wchar.h: section \"Present But Cannot Be Compiled\"" >&2;}
22642 { echo "$as_me:$LINENO: WARNING: wchar.h: proceeding with the preprocessor's result" >&5
22643 echo "$as_me: WARNING: wchar.h: proceeding with the preprocessor's result" >&2;}
22644 { echo "$as_me:$LINENO: WARNING: wchar.h: in the future, the compiler will take precedence" >&5
22645 echo "$as_me: WARNING: wchar.h: in the future, the compiler will take precedence" >&2;}
22646 ( cat <<\_ASBOX
22647 ## ------------------------------------------------ ##
22648 ## Report this to http://www.python.org/python-bugs ##
22649 ## ------------------------------------------------ ##
22650 _ASBOX
22651 ) | sed "s/^/$as_me: WARNING: /" >&2
22653 esac
22654 { echo "$as_me:$LINENO: checking for wchar.h" >&5
22655 echo $ECHO_N "checking for wchar.h... $ECHO_C" >&6; }
22656 if test "${ac_cv_header_wchar_h+set}" = set; then
22657 echo $ECHO_N "(cached) $ECHO_C" >&6
22658 else
22659 ac_cv_header_wchar_h=$ac_header_preproc
22661 { echo "$as_me:$LINENO: result: $ac_cv_header_wchar_h" >&5
22662 echo "${ECHO_T}$ac_cv_header_wchar_h" >&6; }
22665 if test $ac_cv_header_wchar_h = yes; then
22668 cat >>confdefs.h <<\_ACEOF
22669 #define HAVE_WCHAR_H 1
22670 _ACEOF
22672 wchar_h="yes"
22674 else
22675 wchar_h="no"
22681 # determine wchar_t size
22682 if test "$wchar_h" = yes
22683 then
22684 { echo "$as_me:$LINENO: checking for wchar_t" >&5
22685 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6; }
22686 if test "${ac_cv_type_wchar_t+set}" = set; then
22687 echo $ECHO_N "(cached) $ECHO_C" >&6
22688 else
22689 cat >conftest.$ac_ext <<_ACEOF
22690 /* confdefs.h. */
22691 _ACEOF
22692 cat confdefs.h >>conftest.$ac_ext
22693 cat >>conftest.$ac_ext <<_ACEOF
22694 /* end confdefs.h. */
22695 #include <wchar.h>
22697 typedef wchar_t ac__type_new_;
22699 main ()
22701 if ((ac__type_new_ *) 0)
22702 return 0;
22703 if (sizeof (ac__type_new_))
22704 return 0;
22706 return 0;
22708 _ACEOF
22709 rm -f conftest.$ac_objext
22710 if { (ac_try="$ac_compile"
22711 case "(($ac_try" in
22712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22713 *) ac_try_echo=$ac_try;;
22714 esac
22715 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22716 (eval "$ac_compile") 2>conftest.er1
22717 ac_status=$?
22718 grep -v '^ *+' conftest.er1 >conftest.err
22719 rm -f conftest.er1
22720 cat conftest.err >&5
22721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22722 (exit $ac_status); } && {
22723 test -z "$ac_c_werror_flag" ||
22724 test ! -s conftest.err
22725 } && test -s conftest.$ac_objext; then
22726 ac_cv_type_wchar_t=yes
22727 else
22728 echo "$as_me: failed program was:" >&5
22729 sed 's/^/| /' conftest.$ac_ext >&5
22731 ac_cv_type_wchar_t=no
22734 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22736 { echo "$as_me:$LINENO: result: $ac_cv_type_wchar_t" >&5
22737 echo "${ECHO_T}$ac_cv_type_wchar_t" >&6; }
22739 # The cast to long int works around a bug in the HP C Compiler
22740 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22741 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22742 # This bug is HP SR number 8606223364.
22743 { echo "$as_me:$LINENO: checking size of wchar_t" >&5
22744 echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6; }
22745 if test "${ac_cv_sizeof_wchar_t+set}" = set; then
22746 echo $ECHO_N "(cached) $ECHO_C" >&6
22747 else
22748 if test "$cross_compiling" = yes; then
22749 # Depending upon the size, compute the lo and hi bounds.
22750 cat >conftest.$ac_ext <<_ACEOF
22751 /* confdefs.h. */
22752 _ACEOF
22753 cat confdefs.h >>conftest.$ac_ext
22754 cat >>conftest.$ac_ext <<_ACEOF
22755 /* end confdefs.h. */
22756 #include <wchar.h>
22758 typedef wchar_t ac__type_sizeof_;
22760 main ()
22762 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
22763 test_array [0] = 0
22766 return 0;
22768 _ACEOF
22769 rm -f conftest.$ac_objext
22770 if { (ac_try="$ac_compile"
22771 case "(($ac_try" in
22772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22773 *) ac_try_echo=$ac_try;;
22774 esac
22775 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22776 (eval "$ac_compile") 2>conftest.er1
22777 ac_status=$?
22778 grep -v '^ *+' conftest.er1 >conftest.err
22779 rm -f conftest.er1
22780 cat conftest.err >&5
22781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22782 (exit $ac_status); } && {
22783 test -z "$ac_c_werror_flag" ||
22784 test ! -s conftest.err
22785 } && test -s conftest.$ac_objext; then
22786 ac_lo=0 ac_mid=0
22787 while :; do
22788 cat >conftest.$ac_ext <<_ACEOF
22789 /* confdefs.h. */
22790 _ACEOF
22791 cat confdefs.h >>conftest.$ac_ext
22792 cat >>conftest.$ac_ext <<_ACEOF
22793 /* end confdefs.h. */
22794 #include <wchar.h>
22796 typedef wchar_t ac__type_sizeof_;
22798 main ()
22800 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
22801 test_array [0] = 0
22804 return 0;
22806 _ACEOF
22807 rm -f conftest.$ac_objext
22808 if { (ac_try="$ac_compile"
22809 case "(($ac_try" in
22810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22811 *) ac_try_echo=$ac_try;;
22812 esac
22813 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22814 (eval "$ac_compile") 2>conftest.er1
22815 ac_status=$?
22816 grep -v '^ *+' conftest.er1 >conftest.err
22817 rm -f conftest.er1
22818 cat conftest.err >&5
22819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22820 (exit $ac_status); } && {
22821 test -z "$ac_c_werror_flag" ||
22822 test ! -s conftest.err
22823 } && test -s conftest.$ac_objext; then
22824 ac_hi=$ac_mid; break
22825 else
22826 echo "$as_me: failed program was:" >&5
22827 sed 's/^/| /' conftest.$ac_ext >&5
22829 ac_lo=`expr $ac_mid + 1`
22830 if test $ac_lo -le $ac_mid; then
22831 ac_lo= ac_hi=
22832 break
22834 ac_mid=`expr 2 '*' $ac_mid + 1`
22837 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22838 done
22839 else
22840 echo "$as_me: failed program was:" >&5
22841 sed 's/^/| /' conftest.$ac_ext >&5
22843 cat >conftest.$ac_ext <<_ACEOF
22844 /* confdefs.h. */
22845 _ACEOF
22846 cat confdefs.h >>conftest.$ac_ext
22847 cat >>conftest.$ac_ext <<_ACEOF
22848 /* end confdefs.h. */
22849 #include <wchar.h>
22851 typedef wchar_t ac__type_sizeof_;
22853 main ()
22855 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
22856 test_array [0] = 0
22859 return 0;
22861 _ACEOF
22862 rm -f conftest.$ac_objext
22863 if { (ac_try="$ac_compile"
22864 case "(($ac_try" in
22865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22866 *) ac_try_echo=$ac_try;;
22867 esac
22868 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22869 (eval "$ac_compile") 2>conftest.er1
22870 ac_status=$?
22871 grep -v '^ *+' conftest.er1 >conftest.err
22872 rm -f conftest.er1
22873 cat conftest.err >&5
22874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22875 (exit $ac_status); } && {
22876 test -z "$ac_c_werror_flag" ||
22877 test ! -s conftest.err
22878 } && test -s conftest.$ac_objext; then
22879 ac_hi=-1 ac_mid=-1
22880 while :; do
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 <wchar.h>
22889 typedef wchar_t ac__type_sizeof_;
22891 main ()
22893 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
22894 test_array [0] = 0
22897 return 0;
22899 _ACEOF
22900 rm -f conftest.$ac_objext
22901 if { (ac_try="$ac_compile"
22902 case "(($ac_try" in
22903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22904 *) ac_try_echo=$ac_try;;
22905 esac
22906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22907 (eval "$ac_compile") 2>conftest.er1
22908 ac_status=$?
22909 grep -v '^ *+' conftest.er1 >conftest.err
22910 rm -f conftest.er1
22911 cat conftest.err >&5
22912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22913 (exit $ac_status); } && {
22914 test -z "$ac_c_werror_flag" ||
22915 test ! -s conftest.err
22916 } && test -s conftest.$ac_objext; then
22917 ac_lo=$ac_mid; break
22918 else
22919 echo "$as_me: failed program was:" >&5
22920 sed 's/^/| /' conftest.$ac_ext >&5
22922 ac_hi=`expr '(' $ac_mid ')' - 1`
22923 if test $ac_mid -le $ac_hi; then
22924 ac_lo= ac_hi=
22925 break
22927 ac_mid=`expr 2 '*' $ac_mid`
22930 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22931 done
22932 else
22933 echo "$as_me: failed program was:" >&5
22934 sed 's/^/| /' conftest.$ac_ext >&5
22936 ac_lo= ac_hi=
22939 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22942 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22943 # Binary search between lo and hi bounds.
22944 while test "x$ac_lo" != "x$ac_hi"; do
22945 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
22946 cat >conftest.$ac_ext <<_ACEOF
22947 /* confdefs.h. */
22948 _ACEOF
22949 cat confdefs.h >>conftest.$ac_ext
22950 cat >>conftest.$ac_ext <<_ACEOF
22951 /* end confdefs.h. */
22952 #include <wchar.h>
22954 typedef wchar_t ac__type_sizeof_;
22956 main ()
22958 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
22959 test_array [0] = 0
22962 return 0;
22964 _ACEOF
22965 rm -f conftest.$ac_objext
22966 if { (ac_try="$ac_compile"
22967 case "(($ac_try" in
22968 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22969 *) ac_try_echo=$ac_try;;
22970 esac
22971 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22972 (eval "$ac_compile") 2>conftest.er1
22973 ac_status=$?
22974 grep -v '^ *+' conftest.er1 >conftest.err
22975 rm -f conftest.er1
22976 cat conftest.err >&5
22977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22978 (exit $ac_status); } && {
22979 test -z "$ac_c_werror_flag" ||
22980 test ! -s conftest.err
22981 } && test -s conftest.$ac_objext; then
22982 ac_hi=$ac_mid
22983 else
22984 echo "$as_me: failed program was:" >&5
22985 sed 's/^/| /' conftest.$ac_ext >&5
22987 ac_lo=`expr '(' $ac_mid ')' + 1`
22990 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22991 done
22992 case $ac_lo in
22993 ?*) ac_cv_sizeof_wchar_t=$ac_lo;;
22994 '') if test "$ac_cv_type_wchar_t" = yes; then
22995 { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t)
22996 See \`config.log' for more details." >&5
22997 echo "$as_me: error: cannot compute sizeof (wchar_t)
22998 See \`config.log' for more details." >&2;}
22999 { (exit 77); exit 77; }; }
23000 else
23001 ac_cv_sizeof_wchar_t=0
23002 fi ;;
23003 esac
23004 else
23005 cat >conftest.$ac_ext <<_ACEOF
23006 /* confdefs.h. */
23007 _ACEOF
23008 cat confdefs.h >>conftest.$ac_ext
23009 cat >>conftest.$ac_ext <<_ACEOF
23010 /* end confdefs.h. */
23011 #include <wchar.h>
23013 typedef wchar_t ac__type_sizeof_;
23014 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
23015 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
23016 #include <stdio.h>
23017 #include <stdlib.h>
23019 main ()
23022 FILE *f = fopen ("conftest.val", "w");
23023 if (! f)
23024 return 1;
23025 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
23027 long int i = longval ();
23028 if (i != ((long int) (sizeof (ac__type_sizeof_))))
23029 return 1;
23030 fprintf (f, "%ld\n", i);
23032 else
23034 unsigned long int i = ulongval ();
23035 if (i != ((long int) (sizeof (ac__type_sizeof_))))
23036 return 1;
23037 fprintf (f, "%lu\n", i);
23039 return ferror (f) || fclose (f) != 0;
23042 return 0;
23044 _ACEOF
23045 rm -f conftest$ac_exeext
23046 if { (ac_try="$ac_link"
23047 case "(($ac_try" in
23048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23049 *) ac_try_echo=$ac_try;;
23050 esac
23051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23052 (eval "$ac_link") 2>&5
23053 ac_status=$?
23054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23055 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23056 { (case "(($ac_try" in
23057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23058 *) ac_try_echo=$ac_try;;
23059 esac
23060 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23061 (eval "$ac_try") 2>&5
23062 ac_status=$?
23063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23064 (exit $ac_status); }; }; then
23065 ac_cv_sizeof_wchar_t=`cat conftest.val`
23066 else
23067 echo "$as_me: program exited with status $ac_status" >&5
23068 echo "$as_me: failed program was:" >&5
23069 sed 's/^/| /' conftest.$ac_ext >&5
23071 ( exit $ac_status )
23072 if test "$ac_cv_type_wchar_t" = yes; then
23073 { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t)
23074 See \`config.log' for more details." >&5
23075 echo "$as_me: error: cannot compute sizeof (wchar_t)
23076 See \`config.log' for more details." >&2;}
23077 { (exit 77); exit 77; }; }
23078 else
23079 ac_cv_sizeof_wchar_t=0
23082 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23084 rm -f conftest.val
23086 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_wchar_t" >&5
23087 echo "${ECHO_T}$ac_cv_sizeof_wchar_t" >&6; }
23091 cat >>confdefs.h <<_ACEOF
23092 #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
23093 _ACEOF
23098 { echo "$as_me:$LINENO: checking for UCS-4 tcl" >&5
23099 echo $ECHO_N "checking for UCS-4 tcl... $ECHO_C" >&6; }
23100 have_ucs4_tcl=no
23101 cat >conftest.$ac_ext <<_ACEOF
23102 /* confdefs.h. */
23103 _ACEOF
23104 cat confdefs.h >>conftest.$ac_ext
23105 cat >>conftest.$ac_ext <<_ACEOF
23106 /* end confdefs.h. */
23108 #include <tcl.h>
23109 #if TCL_UTF_MAX != 6
23110 # error "NOT UCS4_TCL"
23111 #endif
23113 main ()
23117 return 0;
23119 _ACEOF
23120 rm -f conftest.$ac_objext
23121 if { (ac_try="$ac_compile"
23122 case "(($ac_try" in
23123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23124 *) ac_try_echo=$ac_try;;
23125 esac
23126 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23127 (eval "$ac_compile") 2>conftest.er1
23128 ac_status=$?
23129 grep -v '^ *+' conftest.er1 >conftest.err
23130 rm -f conftest.er1
23131 cat conftest.err >&5
23132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23133 (exit $ac_status); } && {
23134 test -z "$ac_c_werror_flag" ||
23135 test ! -s conftest.err
23136 } && test -s conftest.$ac_objext; then
23139 cat >>confdefs.h <<\_ACEOF
23140 #define HAVE_UCS4_TCL 1
23141 _ACEOF
23143 have_ucs4_tcl=yes
23145 else
23146 echo "$as_me: failed program was:" >&5
23147 sed 's/^/| /' conftest.$ac_ext >&5
23152 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23153 { echo "$as_me:$LINENO: result: $have_ucs4_tcl" >&5
23154 echo "${ECHO_T}$have_ucs4_tcl" >&6; }
23156 # check whether wchar_t is signed or not
23157 if test "$wchar_h" = yes
23158 then
23159 # check whether wchar_t is signed or not
23160 { echo "$as_me:$LINENO: checking whether wchar_t is signed" >&5
23161 echo $ECHO_N "checking whether wchar_t is signed... $ECHO_C" >&6; }
23162 if test "${ac_cv_wchar_t_signed+set}" = set; then
23163 echo $ECHO_N "(cached) $ECHO_C" >&6
23164 else
23166 if test "$cross_compiling" = yes; then
23167 ac_cv_wchar_t_signed=yes
23168 else
23169 cat >conftest.$ac_ext <<_ACEOF
23170 /* confdefs.h. */
23171 _ACEOF
23172 cat confdefs.h >>conftest.$ac_ext
23173 cat >>conftest.$ac_ext <<_ACEOF
23174 /* end confdefs.h. */
23176 #include <wchar.h>
23177 int main()
23179 /* Success: exit code 0 */
23180 exit((((wchar_t) -1) < ((wchar_t) 0)) ? 0 : 1);
23183 _ACEOF
23184 rm -f conftest$ac_exeext
23185 if { (ac_try="$ac_link"
23186 case "(($ac_try" in
23187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23188 *) ac_try_echo=$ac_try;;
23189 esac
23190 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23191 (eval "$ac_link") 2>&5
23192 ac_status=$?
23193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23194 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23195 { (case "(($ac_try" in
23196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23197 *) ac_try_echo=$ac_try;;
23198 esac
23199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23200 (eval "$ac_try") 2>&5
23201 ac_status=$?
23202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23203 (exit $ac_status); }; }; then
23204 ac_cv_wchar_t_signed=yes
23205 else
23206 echo "$as_me: program exited with status $ac_status" >&5
23207 echo "$as_me: failed program was:" >&5
23208 sed 's/^/| /' conftest.$ac_ext >&5
23210 ( exit $ac_status )
23211 ac_cv_wchar_t_signed=no
23213 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23219 { echo "$as_me:$LINENO: result: $ac_cv_wchar_t_signed" >&5
23220 echo "${ECHO_T}$ac_cv_wchar_t_signed" >&6; }
23223 { echo "$as_me:$LINENO: checking what type to use for unicode" >&5
23224 echo $ECHO_N "checking what type to use for unicode... $ECHO_C" >&6; }
23225 # Check whether --enable-unicode was given.
23226 if test "${enable_unicode+set}" = set; then
23227 enableval=$enable_unicode;
23228 else
23229 enable_unicode=yes
23233 if test $enable_unicode = yes
23234 then
23235 # Without any arguments, Py_UNICODE defaults to two-byte mode
23236 case "$have_ucs4_tcl" in
23237 yes) enable_unicode="ucs4"
23239 *) enable_unicode="ucs2"
23241 esac
23246 case "$enable_unicode" in
23247 ucs2) unicode_size="2"
23248 cat >>confdefs.h <<\_ACEOF
23249 #define Py_UNICODE_SIZE 2
23250 _ACEOF
23253 ucs4) unicode_size="4"
23254 cat >>confdefs.h <<\_ACEOF
23255 #define Py_UNICODE_SIZE 4
23256 _ACEOF
23259 esac
23265 if test "$enable_unicode" = "no"
23266 then
23267 UNICODE_OBJS=""
23268 { echo "$as_me:$LINENO: result: not used" >&5
23269 echo "${ECHO_T}not used" >&6; }
23270 else
23271 UNICODE_OBJS="Objects/unicodeobject.o Objects/unicodectype.o"
23273 cat >>confdefs.h <<\_ACEOF
23274 #define Py_USING_UNICODE 1
23275 _ACEOF
23278 # wchar_t is only usable if it maps to an unsigned type
23279 if test "$unicode_size" = "$ac_cv_sizeof_wchar_t" \
23280 -a "$ac_cv_wchar_t_signed" = "no"
23281 then
23282 PY_UNICODE_TYPE="wchar_t"
23284 cat >>confdefs.h <<\_ACEOF
23285 #define HAVE_USABLE_WCHAR_T 1
23286 _ACEOF
23288 cat >>confdefs.h <<\_ACEOF
23289 #define PY_UNICODE_TYPE wchar_t
23290 _ACEOF
23292 elif test "$ac_cv_sizeof_short" = "$unicode_size"
23293 then
23294 PY_UNICODE_TYPE="unsigned short"
23295 cat >>confdefs.h <<\_ACEOF
23296 #define PY_UNICODE_TYPE unsigned short
23297 _ACEOF
23299 elif test "$ac_cv_sizeof_long" = "$unicode_size"
23300 then
23301 PY_UNICODE_TYPE="unsigned long"
23302 cat >>confdefs.h <<\_ACEOF
23303 #define PY_UNICODE_TYPE unsigned long
23304 _ACEOF
23306 else
23307 PY_UNICODE_TYPE="no type found"
23309 { echo "$as_me:$LINENO: result: $PY_UNICODE_TYPE" >&5
23310 echo "${ECHO_T}$PY_UNICODE_TYPE" >&6; }
23313 # check for endianness
23314 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
23315 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
23316 if test "${ac_cv_c_bigendian+set}" = set; then
23317 echo $ECHO_N "(cached) $ECHO_C" >&6
23318 else
23319 # See if sys/param.h defines the BYTE_ORDER macro.
23320 cat >conftest.$ac_ext <<_ACEOF
23321 /* confdefs.h. */
23322 _ACEOF
23323 cat confdefs.h >>conftest.$ac_ext
23324 cat >>conftest.$ac_ext <<_ACEOF
23325 /* end confdefs.h. */
23326 #include <sys/types.h>
23327 #include <sys/param.h>
23330 main ()
23332 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
23333 && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
23334 bogus endian macros
23335 #endif
23338 return 0;
23340 _ACEOF
23341 rm -f conftest.$ac_objext
23342 if { (ac_try="$ac_compile"
23343 case "(($ac_try" in
23344 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23345 *) ac_try_echo=$ac_try;;
23346 esac
23347 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23348 (eval "$ac_compile") 2>conftest.er1
23349 ac_status=$?
23350 grep -v '^ *+' conftest.er1 >conftest.err
23351 rm -f conftest.er1
23352 cat conftest.err >&5
23353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23354 (exit $ac_status); } && {
23355 test -z "$ac_c_werror_flag" ||
23356 test ! -s conftest.err
23357 } && test -s conftest.$ac_objext; then
23358 # It does; now see whether it defined to BIG_ENDIAN or not.
23359 cat >conftest.$ac_ext <<_ACEOF
23360 /* confdefs.h. */
23361 _ACEOF
23362 cat confdefs.h >>conftest.$ac_ext
23363 cat >>conftest.$ac_ext <<_ACEOF
23364 /* end confdefs.h. */
23365 #include <sys/types.h>
23366 #include <sys/param.h>
23369 main ()
23371 #if BYTE_ORDER != BIG_ENDIAN
23372 not big endian
23373 #endif
23376 return 0;
23378 _ACEOF
23379 rm -f conftest.$ac_objext
23380 if { (ac_try="$ac_compile"
23381 case "(($ac_try" in
23382 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23383 *) ac_try_echo=$ac_try;;
23384 esac
23385 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23386 (eval "$ac_compile") 2>conftest.er1
23387 ac_status=$?
23388 grep -v '^ *+' conftest.er1 >conftest.err
23389 rm -f conftest.er1
23390 cat conftest.err >&5
23391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23392 (exit $ac_status); } && {
23393 test -z "$ac_c_werror_flag" ||
23394 test ! -s conftest.err
23395 } && test -s conftest.$ac_objext; then
23396 ac_cv_c_bigendian=yes
23397 else
23398 echo "$as_me: failed program was:" >&5
23399 sed 's/^/| /' conftest.$ac_ext >&5
23401 ac_cv_c_bigendian=no
23404 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23405 else
23406 echo "$as_me: failed program was:" >&5
23407 sed 's/^/| /' conftest.$ac_ext >&5
23409 # It does not; compile a test program.
23410 if test "$cross_compiling" = yes; then
23411 # try to guess the endianness by grepping values into an object file
23412 ac_cv_c_bigendian=unknown
23413 cat >conftest.$ac_ext <<_ACEOF
23414 /* confdefs.h. */
23415 _ACEOF
23416 cat confdefs.h >>conftest.$ac_ext
23417 cat >>conftest.$ac_ext <<_ACEOF
23418 /* end confdefs.h. */
23419 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
23420 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
23421 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
23422 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
23423 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
23424 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
23426 main ()
23428 _ascii (); _ebcdic ();
23430 return 0;
23432 _ACEOF
23433 rm -f conftest.$ac_objext
23434 if { (ac_try="$ac_compile"
23435 case "(($ac_try" in
23436 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23437 *) ac_try_echo=$ac_try;;
23438 esac
23439 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23440 (eval "$ac_compile") 2>conftest.er1
23441 ac_status=$?
23442 grep -v '^ *+' conftest.er1 >conftest.err
23443 rm -f conftest.er1
23444 cat conftest.err >&5
23445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23446 (exit $ac_status); } && {
23447 test -z "$ac_c_werror_flag" ||
23448 test ! -s conftest.err
23449 } && test -s conftest.$ac_objext; then
23450 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
23451 ac_cv_c_bigendian=yes
23453 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
23454 if test "$ac_cv_c_bigendian" = unknown; then
23455 ac_cv_c_bigendian=no
23456 else
23457 # finding both strings is unlikely to happen, but who knows?
23458 ac_cv_c_bigendian=unknown
23461 else
23462 echo "$as_me: failed program was:" >&5
23463 sed 's/^/| /' conftest.$ac_ext >&5
23468 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23469 else
23470 cat >conftest.$ac_ext <<_ACEOF
23471 /* confdefs.h. */
23472 _ACEOF
23473 cat confdefs.h >>conftest.$ac_ext
23474 cat >>conftest.$ac_ext <<_ACEOF
23475 /* end confdefs.h. */
23476 $ac_includes_default
23478 main ()
23481 /* Are we little or big endian? From Harbison&Steele. */
23482 union
23484 long int l;
23485 char c[sizeof (long int)];
23486 } u;
23487 u.l = 1;
23488 return u.c[sizeof (long int) - 1] == 1;
23491 return 0;
23493 _ACEOF
23494 rm -f conftest$ac_exeext
23495 if { (ac_try="$ac_link"
23496 case "(($ac_try" in
23497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23498 *) ac_try_echo=$ac_try;;
23499 esac
23500 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23501 (eval "$ac_link") 2>&5
23502 ac_status=$?
23503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23504 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23505 { (case "(($ac_try" in
23506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23507 *) ac_try_echo=$ac_try;;
23508 esac
23509 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23510 (eval "$ac_try") 2>&5
23511 ac_status=$?
23512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23513 (exit $ac_status); }; }; then
23514 ac_cv_c_bigendian=no
23515 else
23516 echo "$as_me: program exited with status $ac_status" >&5
23517 echo "$as_me: failed program was:" >&5
23518 sed 's/^/| /' conftest.$ac_ext >&5
23520 ( exit $ac_status )
23521 ac_cv_c_bigendian=yes
23523 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23529 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23531 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
23532 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
23533 case $ac_cv_c_bigendian in
23534 yes)
23536 cat >>confdefs.h <<\_ACEOF
23537 #define WORDS_BIGENDIAN 1
23538 _ACEOF
23543 { { echo "$as_me:$LINENO: error: unknown endianness
23544 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
23545 echo "$as_me: error: unknown endianness
23546 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
23547 { (exit 1); exit 1; }; } ;;
23548 esac
23551 # Check whether right shifting a negative integer extends the sign bit
23552 # or fills with zeros (like the Cray J90, according to Tim Peters).
23553 { echo "$as_me:$LINENO: checking whether right shift extends the sign bit" >&5
23554 echo $ECHO_N "checking whether right shift extends the sign bit... $ECHO_C" >&6; }
23555 if test "${ac_cv_rshift_extends_sign+set}" = set; then
23556 echo $ECHO_N "(cached) $ECHO_C" >&6
23557 else
23559 if test "$cross_compiling" = yes; then
23560 ac_cv_rshift_extends_sign=yes
23561 else
23562 cat >conftest.$ac_ext <<_ACEOF
23563 /* confdefs.h. */
23564 _ACEOF
23565 cat confdefs.h >>conftest.$ac_ext
23566 cat >>conftest.$ac_ext <<_ACEOF
23567 /* end confdefs.h. */
23569 int main()
23571 exit(((-1)>>3 == -1) ? 0 : 1);
23574 _ACEOF
23575 rm -f conftest$ac_exeext
23576 if { (ac_try="$ac_link"
23577 case "(($ac_try" in
23578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23579 *) ac_try_echo=$ac_try;;
23580 esac
23581 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23582 (eval "$ac_link") 2>&5
23583 ac_status=$?
23584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23585 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23586 { (case "(($ac_try" in
23587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23588 *) ac_try_echo=$ac_try;;
23589 esac
23590 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23591 (eval "$ac_try") 2>&5
23592 ac_status=$?
23593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23594 (exit $ac_status); }; }; then
23595 ac_cv_rshift_extends_sign=yes
23596 else
23597 echo "$as_me: program exited with status $ac_status" >&5
23598 echo "$as_me: failed program was:" >&5
23599 sed 's/^/| /' conftest.$ac_ext >&5
23601 ( exit $ac_status )
23602 ac_cv_rshift_extends_sign=no
23604 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23610 { echo "$as_me:$LINENO: result: $ac_cv_rshift_extends_sign" >&5
23611 echo "${ECHO_T}$ac_cv_rshift_extends_sign" >&6; }
23612 if test "$ac_cv_rshift_extends_sign" = no
23613 then
23615 cat >>confdefs.h <<\_ACEOF
23616 #define SIGNED_RIGHT_SHIFT_ZERO_FILLS 1
23617 _ACEOF
23621 # check for getc_unlocked and related locking functions
23622 { echo "$as_me:$LINENO: checking for getc_unlocked() and friends" >&5
23623 echo $ECHO_N "checking for getc_unlocked() and friends... $ECHO_C" >&6; }
23624 if test "${ac_cv_have_getc_unlocked+set}" = set; then
23625 echo $ECHO_N "(cached) $ECHO_C" >&6
23626 else
23628 cat >conftest.$ac_ext <<_ACEOF
23629 /* confdefs.h. */
23630 _ACEOF
23631 cat confdefs.h >>conftest.$ac_ext
23632 cat >>conftest.$ac_ext <<_ACEOF
23633 /* end confdefs.h. */
23634 #include <stdio.h>
23636 main ()
23639 FILE *f = fopen("/dev/null", "r");
23640 flockfile(f);
23641 getc_unlocked(f);
23642 funlockfile(f);
23645 return 0;
23647 _ACEOF
23648 rm -f conftest.$ac_objext conftest$ac_exeext
23649 if { (ac_try="$ac_link"
23650 case "(($ac_try" in
23651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23652 *) ac_try_echo=$ac_try;;
23653 esac
23654 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23655 (eval "$ac_link") 2>conftest.er1
23656 ac_status=$?
23657 grep -v '^ *+' conftest.er1 >conftest.err
23658 rm -f conftest.er1
23659 cat conftest.err >&5
23660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23661 (exit $ac_status); } && {
23662 test -z "$ac_c_werror_flag" ||
23663 test ! -s conftest.err
23664 } && test -s conftest$ac_exeext &&
23665 $as_test_x conftest$ac_exeext; then
23666 ac_cv_have_getc_unlocked=yes
23667 else
23668 echo "$as_me: failed program was:" >&5
23669 sed 's/^/| /' conftest.$ac_ext >&5
23671 ac_cv_have_getc_unlocked=no
23674 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23675 conftest$ac_exeext conftest.$ac_ext
23678 { echo "$as_me:$LINENO: result: $ac_cv_have_getc_unlocked" >&5
23679 echo "${ECHO_T}$ac_cv_have_getc_unlocked" >&6; }
23680 if test "$ac_cv_have_getc_unlocked" = yes
23681 then
23683 cat >>confdefs.h <<\_ACEOF
23684 #define HAVE_GETC_UNLOCKED 1
23685 _ACEOF
23689 # check where readline lives
23690 # save the value of LIBS so we don't actually link Python with readline
23691 LIBS_no_readline=$LIBS
23693 # On some systems we need to link readline to a termcap compatible
23694 # library. NOTE: Keep the precedence of listed libraries synchronised
23695 # with setup.py.
23696 py_cv_lib_readline=no
23697 { echo "$as_me:$LINENO: checking how to link readline libs" >&5
23698 echo $ECHO_N "checking how to link readline libs... $ECHO_C" >&6; }
23699 for py_libtermcap in "" ncursesw ncurses curses termcap; do
23700 if test -z "$py_libtermcap"; then
23701 READLINE_LIBS="-lreadline"
23702 else
23703 READLINE_LIBS="-lreadline -l$py_libtermcap"
23705 LIBS="$READLINE_LIBS $LIBS_no_readline"
23706 cat >conftest.$ac_ext <<_ACEOF
23707 /* confdefs.h. */
23708 _ACEOF
23709 cat confdefs.h >>conftest.$ac_ext
23710 cat >>conftest.$ac_ext <<_ACEOF
23711 /* end confdefs.h. */
23713 /* Override any GCC internal prototype to avoid an error.
23714 Use char because int might match the return type of a GCC
23715 builtin and then its argument prototype would still apply. */
23716 #ifdef __cplusplus
23717 extern "C"
23718 #endif
23719 char readline ();
23721 main ()
23723 return readline ();
23725 return 0;
23727 _ACEOF
23728 rm -f conftest.$ac_objext conftest$ac_exeext
23729 if { (ac_try="$ac_link"
23730 case "(($ac_try" in
23731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23732 *) ac_try_echo=$ac_try;;
23733 esac
23734 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23735 (eval "$ac_link") 2>conftest.er1
23736 ac_status=$?
23737 grep -v '^ *+' conftest.er1 >conftest.err
23738 rm -f conftest.er1
23739 cat conftest.err >&5
23740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23741 (exit $ac_status); } && {
23742 test -z "$ac_c_werror_flag" ||
23743 test ! -s conftest.err
23744 } && test -s conftest$ac_exeext &&
23745 $as_test_x conftest$ac_exeext; then
23746 py_cv_lib_readline=yes
23747 else
23748 echo "$as_me: failed program was:" >&5
23749 sed 's/^/| /' conftest.$ac_ext >&5
23754 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23755 conftest$ac_exeext conftest.$ac_ext
23756 if test $py_cv_lib_readline = yes; then
23757 break
23759 done
23760 # Uncomment this line if you want to use READINE_LIBS in Makefile or scripts
23761 #AC_SUBST([READLINE_LIBS])
23762 if test $py_cv_lib_readline = no; then
23763 { echo "$as_me:$LINENO: result: none" >&5
23764 echo "${ECHO_T}none" >&6; }
23765 else
23766 { echo "$as_me:$LINENO: result: $READLINE_LIBS" >&5
23767 echo "${ECHO_T}$READLINE_LIBS" >&6; }
23769 cat >>confdefs.h <<\_ACEOF
23770 #define HAVE_LIBREADLINE 1
23771 _ACEOF
23775 # check for readline 2.1
23776 { echo "$as_me:$LINENO: checking for rl_callback_handler_install in -lreadline" >&5
23777 echo $ECHO_N "checking for rl_callback_handler_install in -lreadline... $ECHO_C" >&6; }
23778 if test "${ac_cv_lib_readline_rl_callback_handler_install+set}" = set; then
23779 echo $ECHO_N "(cached) $ECHO_C" >&6
23780 else
23781 ac_check_lib_save_LIBS=$LIBS
23782 LIBS="-lreadline $READLINE_LIBS $LIBS"
23783 cat >conftest.$ac_ext <<_ACEOF
23784 /* confdefs.h. */
23785 _ACEOF
23786 cat confdefs.h >>conftest.$ac_ext
23787 cat >>conftest.$ac_ext <<_ACEOF
23788 /* end confdefs.h. */
23790 /* Override any GCC internal prototype to avoid an error.
23791 Use char because int might match the return type of a GCC
23792 builtin and then its argument prototype would still apply. */
23793 #ifdef __cplusplus
23794 extern "C"
23795 #endif
23796 char rl_callback_handler_install ();
23798 main ()
23800 return rl_callback_handler_install ();
23802 return 0;
23804 _ACEOF
23805 rm -f conftest.$ac_objext conftest$ac_exeext
23806 if { (ac_try="$ac_link"
23807 case "(($ac_try" in
23808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23809 *) ac_try_echo=$ac_try;;
23810 esac
23811 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23812 (eval "$ac_link") 2>conftest.er1
23813 ac_status=$?
23814 grep -v '^ *+' conftest.er1 >conftest.err
23815 rm -f conftest.er1
23816 cat conftest.err >&5
23817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23818 (exit $ac_status); } && {
23819 test -z "$ac_c_werror_flag" ||
23820 test ! -s conftest.err
23821 } && test -s conftest$ac_exeext &&
23822 $as_test_x conftest$ac_exeext; then
23823 ac_cv_lib_readline_rl_callback_handler_install=yes
23824 else
23825 echo "$as_me: failed program was:" >&5
23826 sed 's/^/| /' conftest.$ac_ext >&5
23828 ac_cv_lib_readline_rl_callback_handler_install=no
23831 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23832 conftest$ac_exeext conftest.$ac_ext
23833 LIBS=$ac_check_lib_save_LIBS
23835 { echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_callback_handler_install" >&5
23836 echo "${ECHO_T}$ac_cv_lib_readline_rl_callback_handler_install" >&6; }
23837 if test $ac_cv_lib_readline_rl_callback_handler_install = yes; then
23839 cat >>confdefs.h <<\_ACEOF
23840 #define HAVE_RL_CALLBACK 1
23841 _ACEOF
23846 # check for readline 2.2
23847 cat >conftest.$ac_ext <<_ACEOF
23848 /* confdefs.h. */
23849 _ACEOF
23850 cat confdefs.h >>conftest.$ac_ext
23851 cat >>conftest.$ac_ext <<_ACEOF
23852 /* end confdefs.h. */
23853 #include <readline/readline.h>
23854 _ACEOF
23855 if { (ac_try="$ac_cpp conftest.$ac_ext"
23856 case "(($ac_try" in
23857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23858 *) ac_try_echo=$ac_try;;
23859 esac
23860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23861 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23862 ac_status=$?
23863 grep -v '^ *+' conftest.er1 >conftest.err
23864 rm -f conftest.er1
23865 cat conftest.err >&5
23866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23867 (exit $ac_status); } >/dev/null && {
23868 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23869 test ! -s conftest.err
23870 }; then
23871 have_readline=yes
23872 else
23873 echo "$as_me: failed program was:" >&5
23874 sed 's/^/| /' conftest.$ac_ext >&5
23876 have_readline=no
23879 rm -f conftest.err conftest.$ac_ext
23880 if test $have_readline = yes
23881 then
23882 cat >conftest.$ac_ext <<_ACEOF
23883 /* confdefs.h. */
23884 _ACEOF
23885 cat confdefs.h >>conftest.$ac_ext
23886 cat >>conftest.$ac_ext <<_ACEOF
23887 /* end confdefs.h. */
23888 #include <readline/readline.h>
23890 _ACEOF
23891 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23892 $EGREP "extern int rl_completion_append_character;" >/dev/null 2>&1; then
23894 cat >>confdefs.h <<\_ACEOF
23895 #define HAVE_RL_COMPLETION_APPEND_CHARACTER 1
23896 _ACEOF
23899 rm -f conftest*
23903 # check for readline 4.0
23904 { echo "$as_me:$LINENO: checking for rl_pre_input_hook in -lreadline" >&5
23905 echo $ECHO_N "checking for rl_pre_input_hook in -lreadline... $ECHO_C" >&6; }
23906 if test "${ac_cv_lib_readline_rl_pre_input_hook+set}" = set; then
23907 echo $ECHO_N "(cached) $ECHO_C" >&6
23908 else
23909 ac_check_lib_save_LIBS=$LIBS
23910 LIBS="-lreadline $READLINE_LIBS $LIBS"
23911 cat >conftest.$ac_ext <<_ACEOF
23912 /* confdefs.h. */
23913 _ACEOF
23914 cat confdefs.h >>conftest.$ac_ext
23915 cat >>conftest.$ac_ext <<_ACEOF
23916 /* end confdefs.h. */
23918 /* Override any GCC internal prototype to avoid an error.
23919 Use char because int might match the return type of a GCC
23920 builtin and then its argument prototype would still apply. */
23921 #ifdef __cplusplus
23922 extern "C"
23923 #endif
23924 char rl_pre_input_hook ();
23926 main ()
23928 return rl_pre_input_hook ();
23930 return 0;
23932 _ACEOF
23933 rm -f conftest.$ac_objext conftest$ac_exeext
23934 if { (ac_try="$ac_link"
23935 case "(($ac_try" in
23936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23937 *) ac_try_echo=$ac_try;;
23938 esac
23939 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23940 (eval "$ac_link") 2>conftest.er1
23941 ac_status=$?
23942 grep -v '^ *+' conftest.er1 >conftest.err
23943 rm -f conftest.er1
23944 cat conftest.err >&5
23945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23946 (exit $ac_status); } && {
23947 test -z "$ac_c_werror_flag" ||
23948 test ! -s conftest.err
23949 } && test -s conftest$ac_exeext &&
23950 $as_test_x conftest$ac_exeext; then
23951 ac_cv_lib_readline_rl_pre_input_hook=yes
23952 else
23953 echo "$as_me: failed program was:" >&5
23954 sed 's/^/| /' conftest.$ac_ext >&5
23956 ac_cv_lib_readline_rl_pre_input_hook=no
23959 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23960 conftest$ac_exeext conftest.$ac_ext
23961 LIBS=$ac_check_lib_save_LIBS
23963 { echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_pre_input_hook" >&5
23964 echo "${ECHO_T}$ac_cv_lib_readline_rl_pre_input_hook" >&6; }
23965 if test $ac_cv_lib_readline_rl_pre_input_hook = yes; then
23967 cat >>confdefs.h <<\_ACEOF
23968 #define HAVE_RL_PRE_INPUT_HOOK 1
23969 _ACEOF
23974 # also in 4.0
23975 { echo "$as_me:$LINENO: checking for rl_completion_display_matches_hook in -lreadline" >&5
23976 echo $ECHO_N "checking for rl_completion_display_matches_hook in -lreadline... $ECHO_C" >&6; }
23977 if test "${ac_cv_lib_readline_rl_completion_display_matches_hook+set}" = set; then
23978 echo $ECHO_N "(cached) $ECHO_C" >&6
23979 else
23980 ac_check_lib_save_LIBS=$LIBS
23981 LIBS="-lreadline $READLINE_LIBS $LIBS"
23982 cat >conftest.$ac_ext <<_ACEOF
23983 /* confdefs.h. */
23984 _ACEOF
23985 cat confdefs.h >>conftest.$ac_ext
23986 cat >>conftest.$ac_ext <<_ACEOF
23987 /* end confdefs.h. */
23989 /* Override any GCC internal prototype to avoid an error.
23990 Use char because int might match the return type of a GCC
23991 builtin and then its argument prototype would still apply. */
23992 #ifdef __cplusplus
23993 extern "C"
23994 #endif
23995 char rl_completion_display_matches_hook ();
23997 main ()
23999 return rl_completion_display_matches_hook ();
24001 return 0;
24003 _ACEOF
24004 rm -f conftest.$ac_objext conftest$ac_exeext
24005 if { (ac_try="$ac_link"
24006 case "(($ac_try" in
24007 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24008 *) ac_try_echo=$ac_try;;
24009 esac
24010 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24011 (eval "$ac_link") 2>conftest.er1
24012 ac_status=$?
24013 grep -v '^ *+' conftest.er1 >conftest.err
24014 rm -f conftest.er1
24015 cat conftest.err >&5
24016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24017 (exit $ac_status); } && {
24018 test -z "$ac_c_werror_flag" ||
24019 test ! -s conftest.err
24020 } && test -s conftest$ac_exeext &&
24021 $as_test_x conftest$ac_exeext; then
24022 ac_cv_lib_readline_rl_completion_display_matches_hook=yes
24023 else
24024 echo "$as_me: failed program was:" >&5
24025 sed 's/^/| /' conftest.$ac_ext >&5
24027 ac_cv_lib_readline_rl_completion_display_matches_hook=no
24030 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24031 conftest$ac_exeext conftest.$ac_ext
24032 LIBS=$ac_check_lib_save_LIBS
24034 { echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_completion_display_matches_hook" >&5
24035 echo "${ECHO_T}$ac_cv_lib_readline_rl_completion_display_matches_hook" >&6; }
24036 if test $ac_cv_lib_readline_rl_completion_display_matches_hook = yes; then
24038 cat >>confdefs.h <<\_ACEOF
24039 #define HAVE_RL_COMPLETION_DISPLAY_MATCHES_HOOK 1
24040 _ACEOF
24045 # check for readline 4.2
24046 { echo "$as_me:$LINENO: checking for rl_completion_matches in -lreadline" >&5
24047 echo $ECHO_N "checking for rl_completion_matches in -lreadline... $ECHO_C" >&6; }
24048 if test "${ac_cv_lib_readline_rl_completion_matches+set}" = set; then
24049 echo $ECHO_N "(cached) $ECHO_C" >&6
24050 else
24051 ac_check_lib_save_LIBS=$LIBS
24052 LIBS="-lreadline $READLINE_LIBS $LIBS"
24053 cat >conftest.$ac_ext <<_ACEOF
24054 /* confdefs.h. */
24055 _ACEOF
24056 cat confdefs.h >>conftest.$ac_ext
24057 cat >>conftest.$ac_ext <<_ACEOF
24058 /* end confdefs.h. */
24060 /* Override any GCC internal prototype to avoid an error.
24061 Use char because int might match the return type of a GCC
24062 builtin and then its argument prototype would still apply. */
24063 #ifdef __cplusplus
24064 extern "C"
24065 #endif
24066 char rl_completion_matches ();
24068 main ()
24070 return rl_completion_matches ();
24072 return 0;
24074 _ACEOF
24075 rm -f conftest.$ac_objext conftest$ac_exeext
24076 if { (ac_try="$ac_link"
24077 case "(($ac_try" in
24078 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24079 *) ac_try_echo=$ac_try;;
24080 esac
24081 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24082 (eval "$ac_link") 2>conftest.er1
24083 ac_status=$?
24084 grep -v '^ *+' conftest.er1 >conftest.err
24085 rm -f conftest.er1
24086 cat conftest.err >&5
24087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24088 (exit $ac_status); } && {
24089 test -z "$ac_c_werror_flag" ||
24090 test ! -s conftest.err
24091 } && test -s conftest$ac_exeext &&
24092 $as_test_x conftest$ac_exeext; then
24093 ac_cv_lib_readline_rl_completion_matches=yes
24094 else
24095 echo "$as_me: failed program was:" >&5
24096 sed 's/^/| /' conftest.$ac_ext >&5
24098 ac_cv_lib_readline_rl_completion_matches=no
24101 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24102 conftest$ac_exeext conftest.$ac_ext
24103 LIBS=$ac_check_lib_save_LIBS
24105 { echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_completion_matches" >&5
24106 echo "${ECHO_T}$ac_cv_lib_readline_rl_completion_matches" >&6; }
24107 if test $ac_cv_lib_readline_rl_completion_matches = yes; then
24109 cat >>confdefs.h <<\_ACEOF
24110 #define HAVE_RL_COMPLETION_MATCHES 1
24111 _ACEOF
24116 # also in readline 4.2
24117 cat >conftest.$ac_ext <<_ACEOF
24118 /* confdefs.h. */
24119 _ACEOF
24120 cat confdefs.h >>conftest.$ac_ext
24121 cat >>conftest.$ac_ext <<_ACEOF
24122 /* end confdefs.h. */
24123 #include <readline/readline.h>
24124 _ACEOF
24125 if { (ac_try="$ac_cpp conftest.$ac_ext"
24126 case "(($ac_try" in
24127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24128 *) ac_try_echo=$ac_try;;
24129 esac
24130 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24131 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24132 ac_status=$?
24133 grep -v '^ *+' conftest.er1 >conftest.err
24134 rm -f conftest.er1
24135 cat conftest.err >&5
24136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24137 (exit $ac_status); } >/dev/null && {
24138 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24139 test ! -s conftest.err
24140 }; then
24141 have_readline=yes
24142 else
24143 echo "$as_me: failed program was:" >&5
24144 sed 's/^/| /' conftest.$ac_ext >&5
24146 have_readline=no
24149 rm -f conftest.err conftest.$ac_ext
24150 if test $have_readline = yes
24151 then
24152 cat >conftest.$ac_ext <<_ACEOF
24153 /* confdefs.h. */
24154 _ACEOF
24155 cat confdefs.h >>conftest.$ac_ext
24156 cat >>conftest.$ac_ext <<_ACEOF
24157 /* end confdefs.h. */
24158 #include <readline/readline.h>
24160 _ACEOF
24161 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24162 $EGREP "extern int rl_catch_signals;" >/dev/null 2>&1; then
24164 cat >>confdefs.h <<\_ACEOF
24165 #define HAVE_RL_CATCH_SIGNAL 1
24166 _ACEOF
24169 rm -f conftest*
24173 # End of readline checks: restore LIBS
24174 LIBS=$LIBS_no_readline
24176 { echo "$as_me:$LINENO: checking for broken nice()" >&5
24177 echo $ECHO_N "checking for broken nice()... $ECHO_C" >&6; }
24178 if test "${ac_cv_broken_nice+set}" = set; then
24179 echo $ECHO_N "(cached) $ECHO_C" >&6
24180 else
24182 if test "$cross_compiling" = yes; then
24183 ac_cv_broken_nice=no
24184 else
24185 cat >conftest.$ac_ext <<_ACEOF
24186 /* confdefs.h. */
24187 _ACEOF
24188 cat confdefs.h >>conftest.$ac_ext
24189 cat >>conftest.$ac_ext <<_ACEOF
24190 /* end confdefs.h. */
24192 int main()
24194 int val1 = nice(1);
24195 if (val1 != -1 && val1 == nice(2))
24196 exit(0);
24197 exit(1);
24200 _ACEOF
24201 rm -f conftest$ac_exeext
24202 if { (ac_try="$ac_link"
24203 case "(($ac_try" in
24204 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24205 *) ac_try_echo=$ac_try;;
24206 esac
24207 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24208 (eval "$ac_link") 2>&5
24209 ac_status=$?
24210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24211 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24212 { (case "(($ac_try" in
24213 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24214 *) ac_try_echo=$ac_try;;
24215 esac
24216 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24217 (eval "$ac_try") 2>&5
24218 ac_status=$?
24219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24220 (exit $ac_status); }; }; then
24221 ac_cv_broken_nice=yes
24222 else
24223 echo "$as_me: program exited with status $ac_status" >&5
24224 echo "$as_me: failed program was:" >&5
24225 sed 's/^/| /' conftest.$ac_ext >&5
24227 ( exit $ac_status )
24228 ac_cv_broken_nice=no
24230 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24236 { echo "$as_me:$LINENO: result: $ac_cv_broken_nice" >&5
24237 echo "${ECHO_T}$ac_cv_broken_nice" >&6; }
24238 if test "$ac_cv_broken_nice" = yes
24239 then
24241 cat >>confdefs.h <<\_ACEOF
24242 #define HAVE_BROKEN_NICE 1
24243 _ACEOF
24247 { echo "$as_me:$LINENO: checking for broken poll()" >&5
24248 echo $ECHO_N "checking for broken poll()... $ECHO_C" >&6; }
24249 if test "$cross_compiling" = yes; then
24250 ac_cv_broken_poll=no
24251 else
24252 cat >conftest.$ac_ext <<_ACEOF
24253 /* confdefs.h. */
24254 _ACEOF
24255 cat confdefs.h >>conftest.$ac_ext
24256 cat >>conftest.$ac_ext <<_ACEOF
24257 /* end confdefs.h. */
24259 #include <poll.h>
24261 int main (void)
24263 struct pollfd poll_struct = { 42, POLLIN|POLLPRI|POLLOUT, 0 };
24265 close (42);
24267 int poll_test = poll (&poll_struct, 1, 0);
24269 if (poll_test < 0)
24271 exit(0);
24273 else if (poll_test == 0 && poll_struct.revents != POLLNVAL)
24275 exit(0);
24277 else
24279 exit(1);
24283 _ACEOF
24284 rm -f conftest$ac_exeext
24285 if { (ac_try="$ac_link"
24286 case "(($ac_try" in
24287 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24288 *) ac_try_echo=$ac_try;;
24289 esac
24290 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24291 (eval "$ac_link") 2>&5
24292 ac_status=$?
24293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24294 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24295 { (case "(($ac_try" in
24296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24297 *) ac_try_echo=$ac_try;;
24298 esac
24299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24300 (eval "$ac_try") 2>&5
24301 ac_status=$?
24302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24303 (exit $ac_status); }; }; then
24304 ac_cv_broken_poll=yes
24305 else
24306 echo "$as_me: program exited with status $ac_status" >&5
24307 echo "$as_me: failed program was:" >&5
24308 sed 's/^/| /' conftest.$ac_ext >&5
24310 ( exit $ac_status )
24311 ac_cv_broken_poll=no
24313 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24317 { echo "$as_me:$LINENO: result: $ac_cv_broken_poll" >&5
24318 echo "${ECHO_T}$ac_cv_broken_poll" >&6; }
24319 if test "$ac_cv_broken_poll" = yes
24320 then
24322 cat >>confdefs.h <<\_ACEOF
24323 #define HAVE_BROKEN_POLL 1
24324 _ACEOF
24328 # Before we can test tzset, we need to check if struct tm has a tm_zone
24329 # (which is not required by ISO C or UNIX spec) and/or if we support
24330 # tzname[]
24331 { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
24332 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
24333 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
24334 echo $ECHO_N "(cached) $ECHO_C" >&6
24335 else
24336 cat >conftest.$ac_ext <<_ACEOF
24337 /* confdefs.h. */
24338 _ACEOF
24339 cat confdefs.h >>conftest.$ac_ext
24340 cat >>conftest.$ac_ext <<_ACEOF
24341 /* end confdefs.h. */
24342 #include <sys/types.h>
24343 #include <$ac_cv_struct_tm>
24347 main ()
24349 static struct tm ac_aggr;
24350 if (ac_aggr.tm_zone)
24351 return 0;
24353 return 0;
24355 _ACEOF
24356 rm -f conftest.$ac_objext
24357 if { (ac_try="$ac_compile"
24358 case "(($ac_try" in
24359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24360 *) ac_try_echo=$ac_try;;
24361 esac
24362 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24363 (eval "$ac_compile") 2>conftest.er1
24364 ac_status=$?
24365 grep -v '^ *+' conftest.er1 >conftest.err
24366 rm -f conftest.er1
24367 cat conftest.err >&5
24368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24369 (exit $ac_status); } && {
24370 test -z "$ac_c_werror_flag" ||
24371 test ! -s conftest.err
24372 } && test -s conftest.$ac_objext; then
24373 ac_cv_member_struct_tm_tm_zone=yes
24374 else
24375 echo "$as_me: failed program was:" >&5
24376 sed 's/^/| /' conftest.$ac_ext >&5
24378 cat >conftest.$ac_ext <<_ACEOF
24379 /* confdefs.h. */
24380 _ACEOF
24381 cat confdefs.h >>conftest.$ac_ext
24382 cat >>conftest.$ac_ext <<_ACEOF
24383 /* end confdefs.h. */
24384 #include <sys/types.h>
24385 #include <$ac_cv_struct_tm>
24389 main ()
24391 static struct tm ac_aggr;
24392 if (sizeof ac_aggr.tm_zone)
24393 return 0;
24395 return 0;
24397 _ACEOF
24398 rm -f conftest.$ac_objext
24399 if { (ac_try="$ac_compile"
24400 case "(($ac_try" in
24401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24402 *) ac_try_echo=$ac_try;;
24403 esac
24404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24405 (eval "$ac_compile") 2>conftest.er1
24406 ac_status=$?
24407 grep -v '^ *+' conftest.er1 >conftest.err
24408 rm -f conftest.er1
24409 cat conftest.err >&5
24410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24411 (exit $ac_status); } && {
24412 test -z "$ac_c_werror_flag" ||
24413 test ! -s conftest.err
24414 } && test -s conftest.$ac_objext; then
24415 ac_cv_member_struct_tm_tm_zone=yes
24416 else
24417 echo "$as_me: failed program was:" >&5
24418 sed 's/^/| /' conftest.$ac_ext >&5
24420 ac_cv_member_struct_tm_tm_zone=no
24423 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24426 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24428 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
24429 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
24430 if test $ac_cv_member_struct_tm_tm_zone = yes; then
24432 cat >>confdefs.h <<_ACEOF
24433 #define HAVE_STRUCT_TM_TM_ZONE 1
24434 _ACEOF
24439 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
24441 cat >>confdefs.h <<\_ACEOF
24442 #define HAVE_TM_ZONE 1
24443 _ACEOF
24445 else
24446 { echo "$as_me:$LINENO: checking whether tzname is declared" >&5
24447 echo $ECHO_N "checking whether tzname is declared... $ECHO_C" >&6; }
24448 if test "${ac_cv_have_decl_tzname+set}" = set; then
24449 echo $ECHO_N "(cached) $ECHO_C" >&6
24450 else
24451 cat >conftest.$ac_ext <<_ACEOF
24452 /* confdefs.h. */
24453 _ACEOF
24454 cat confdefs.h >>conftest.$ac_ext
24455 cat >>conftest.$ac_ext <<_ACEOF
24456 /* end confdefs.h. */
24457 #include <time.h>
24460 main ()
24462 #ifndef tzname
24463 (void) tzname;
24464 #endif
24467 return 0;
24469 _ACEOF
24470 rm -f conftest.$ac_objext
24471 if { (ac_try="$ac_compile"
24472 case "(($ac_try" in
24473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24474 *) ac_try_echo=$ac_try;;
24475 esac
24476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24477 (eval "$ac_compile") 2>conftest.er1
24478 ac_status=$?
24479 grep -v '^ *+' conftest.er1 >conftest.err
24480 rm -f conftest.er1
24481 cat conftest.err >&5
24482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24483 (exit $ac_status); } && {
24484 test -z "$ac_c_werror_flag" ||
24485 test ! -s conftest.err
24486 } && test -s conftest.$ac_objext; then
24487 ac_cv_have_decl_tzname=yes
24488 else
24489 echo "$as_me: failed program was:" >&5
24490 sed 's/^/| /' conftest.$ac_ext >&5
24492 ac_cv_have_decl_tzname=no
24495 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24497 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
24498 echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; }
24499 if test $ac_cv_have_decl_tzname = yes; then
24501 cat >>confdefs.h <<_ACEOF
24502 #define HAVE_DECL_TZNAME 1
24503 _ACEOF
24506 else
24507 cat >>confdefs.h <<_ACEOF
24508 #define HAVE_DECL_TZNAME 0
24509 _ACEOF
24515 { echo "$as_me:$LINENO: checking for tzname" >&5
24516 echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
24517 if test "${ac_cv_var_tzname+set}" = set; then
24518 echo $ECHO_N "(cached) $ECHO_C" >&6
24519 else
24520 cat >conftest.$ac_ext <<_ACEOF
24521 /* confdefs.h. */
24522 _ACEOF
24523 cat confdefs.h >>conftest.$ac_ext
24524 cat >>conftest.$ac_ext <<_ACEOF
24525 /* end confdefs.h. */
24526 #include <time.h>
24527 #if !HAVE_DECL_TZNAME
24528 extern char *tzname[];
24529 #endif
24532 main ()
24534 return tzname[0][0];
24536 return 0;
24538 _ACEOF
24539 rm -f conftest.$ac_objext conftest$ac_exeext
24540 if { (ac_try="$ac_link"
24541 case "(($ac_try" in
24542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24543 *) ac_try_echo=$ac_try;;
24544 esac
24545 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24546 (eval "$ac_link") 2>conftest.er1
24547 ac_status=$?
24548 grep -v '^ *+' conftest.er1 >conftest.err
24549 rm -f conftest.er1
24550 cat conftest.err >&5
24551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24552 (exit $ac_status); } && {
24553 test -z "$ac_c_werror_flag" ||
24554 test ! -s conftest.err
24555 } && test -s conftest$ac_exeext &&
24556 $as_test_x conftest$ac_exeext; then
24557 ac_cv_var_tzname=yes
24558 else
24559 echo "$as_me: failed program was:" >&5
24560 sed 's/^/| /' conftest.$ac_ext >&5
24562 ac_cv_var_tzname=no
24565 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24566 conftest$ac_exeext conftest.$ac_ext
24568 { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
24569 echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
24570 if test $ac_cv_var_tzname = yes; then
24572 cat >>confdefs.h <<\_ACEOF
24573 #define HAVE_TZNAME 1
24574 _ACEOF
24580 # check tzset(3) exists and works like we expect it to
24581 { echo "$as_me:$LINENO: checking for working tzset()" >&5
24582 echo $ECHO_N "checking for working tzset()... $ECHO_C" >&6; }
24583 if test "${ac_cv_working_tzset+set}" = set; then
24584 echo $ECHO_N "(cached) $ECHO_C" >&6
24585 else
24587 if test "$cross_compiling" = yes; then
24588 ac_cv_working_tzset=no
24589 else
24590 cat >conftest.$ac_ext <<_ACEOF
24591 /* confdefs.h. */
24592 _ACEOF
24593 cat confdefs.h >>conftest.$ac_ext
24594 cat >>conftest.$ac_ext <<_ACEOF
24595 /* end confdefs.h. */
24597 #include <stdlib.h>
24598 #include <time.h>
24599 #include <string.h>
24601 #if HAVE_TZNAME
24602 extern char *tzname[];
24603 #endif
24605 int main()
24607 /* Note that we need to ensure that not only does tzset(3)
24608 do 'something' with localtime, but it works as documented
24609 in the library reference and as expected by the test suite.
24610 This includes making sure that tzname is set properly if
24611 tm->tm_zone does not exist since it is the alternative way
24612 of getting timezone info.
24614 Red Hat 6.2 doesn't understand the southern hemisphere
24615 after New Year's Day.
24618 time_t groundhogday = 1044144000; /* GMT-based */
24619 time_t midyear = groundhogday + (365 * 24 * 3600 / 2);
24621 putenv("TZ=UTC+0");
24622 tzset();
24623 if (localtime(&groundhogday)->tm_hour != 0)
24624 exit(1);
24625 #if HAVE_TZNAME
24626 /* For UTC, tzname[1] is sometimes "", sometimes " " */
24627 if (strcmp(tzname[0], "UTC") ||
24628 (tzname[1][0] != 0 && tzname[1][0] != ' '))
24629 exit(1);
24630 #endif
24632 putenv("TZ=EST+5EDT,M4.1.0,M10.5.0");
24633 tzset();
24634 if (localtime(&groundhogday)->tm_hour != 19)
24635 exit(1);
24636 #if HAVE_TZNAME
24637 if (strcmp(tzname[0], "EST") || strcmp(tzname[1], "EDT"))
24638 exit(1);
24639 #endif
24641 putenv("TZ=AEST-10AEDT-11,M10.5.0,M3.5.0");
24642 tzset();
24643 if (localtime(&groundhogday)->tm_hour != 11)
24644 exit(1);
24645 #if HAVE_TZNAME
24646 if (strcmp(tzname[0], "AEST") || strcmp(tzname[1], "AEDT"))
24647 exit(1);
24648 #endif
24650 #if HAVE_STRUCT_TM_TM_ZONE
24651 if (strcmp(localtime(&groundhogday)->tm_zone, "AEDT"))
24652 exit(1);
24653 if (strcmp(localtime(&midyear)->tm_zone, "AEST"))
24654 exit(1);
24655 #endif
24657 exit(0);
24660 _ACEOF
24661 rm -f conftest$ac_exeext
24662 if { (ac_try="$ac_link"
24663 case "(($ac_try" in
24664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24665 *) ac_try_echo=$ac_try;;
24666 esac
24667 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24668 (eval "$ac_link") 2>&5
24669 ac_status=$?
24670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24671 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24672 { (case "(($ac_try" in
24673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24674 *) ac_try_echo=$ac_try;;
24675 esac
24676 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24677 (eval "$ac_try") 2>&5
24678 ac_status=$?
24679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24680 (exit $ac_status); }; }; then
24681 ac_cv_working_tzset=yes
24682 else
24683 echo "$as_me: program exited with status $ac_status" >&5
24684 echo "$as_me: failed program was:" >&5
24685 sed 's/^/| /' conftest.$ac_ext >&5
24687 ( exit $ac_status )
24688 ac_cv_working_tzset=no
24690 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24696 { echo "$as_me:$LINENO: result: $ac_cv_working_tzset" >&5
24697 echo "${ECHO_T}$ac_cv_working_tzset" >&6; }
24698 if test "$ac_cv_working_tzset" = yes
24699 then
24701 cat >>confdefs.h <<\_ACEOF
24702 #define HAVE_WORKING_TZSET 1
24703 _ACEOF
24707 # Look for subsecond timestamps in struct stat
24708 { echo "$as_me:$LINENO: checking for tv_nsec in struct stat" >&5
24709 echo $ECHO_N "checking for tv_nsec in struct stat... $ECHO_C" >&6; }
24710 if test "${ac_cv_stat_tv_nsec+set}" = set; then
24711 echo $ECHO_N "(cached) $ECHO_C" >&6
24712 else
24713 cat >conftest.$ac_ext <<_ACEOF
24714 /* confdefs.h. */
24715 _ACEOF
24716 cat confdefs.h >>conftest.$ac_ext
24717 cat >>conftest.$ac_ext <<_ACEOF
24718 /* end confdefs.h. */
24719 #include <sys/stat.h>
24721 main ()
24724 struct stat st;
24725 st.st_mtim.tv_nsec = 1;
24728 return 0;
24730 _ACEOF
24731 rm -f conftest.$ac_objext
24732 if { (ac_try="$ac_compile"
24733 case "(($ac_try" in
24734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24735 *) ac_try_echo=$ac_try;;
24736 esac
24737 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24738 (eval "$ac_compile") 2>conftest.er1
24739 ac_status=$?
24740 grep -v '^ *+' conftest.er1 >conftest.err
24741 rm -f conftest.er1
24742 cat conftest.err >&5
24743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24744 (exit $ac_status); } && {
24745 test -z "$ac_c_werror_flag" ||
24746 test ! -s conftest.err
24747 } && test -s conftest.$ac_objext; then
24748 ac_cv_stat_tv_nsec=yes
24749 else
24750 echo "$as_me: failed program was:" >&5
24751 sed 's/^/| /' conftest.$ac_ext >&5
24753 ac_cv_stat_tv_nsec=no
24756 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24759 { echo "$as_me:$LINENO: result: $ac_cv_stat_tv_nsec" >&5
24760 echo "${ECHO_T}$ac_cv_stat_tv_nsec" >&6; }
24761 if test "$ac_cv_stat_tv_nsec" = yes
24762 then
24764 cat >>confdefs.h <<\_ACEOF
24765 #define HAVE_STAT_TV_NSEC 1
24766 _ACEOF
24770 # Look for BSD style subsecond timestamps in struct stat
24771 { echo "$as_me:$LINENO: checking for tv_nsec2 in struct stat" >&5
24772 echo $ECHO_N "checking for tv_nsec2 in struct stat... $ECHO_C" >&6; }
24773 if test "${ac_cv_stat_tv_nsec2+set}" = set; then
24774 echo $ECHO_N "(cached) $ECHO_C" >&6
24775 else
24776 cat >conftest.$ac_ext <<_ACEOF
24777 /* confdefs.h. */
24778 _ACEOF
24779 cat confdefs.h >>conftest.$ac_ext
24780 cat >>conftest.$ac_ext <<_ACEOF
24781 /* end confdefs.h. */
24782 #include <sys/stat.h>
24784 main ()
24787 struct stat st;
24788 st.st_mtimespec.tv_nsec = 1;
24791 return 0;
24793 _ACEOF
24794 rm -f conftest.$ac_objext
24795 if { (ac_try="$ac_compile"
24796 case "(($ac_try" in
24797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24798 *) ac_try_echo=$ac_try;;
24799 esac
24800 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24801 (eval "$ac_compile") 2>conftest.er1
24802 ac_status=$?
24803 grep -v '^ *+' conftest.er1 >conftest.err
24804 rm -f conftest.er1
24805 cat conftest.err >&5
24806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24807 (exit $ac_status); } && {
24808 test -z "$ac_c_werror_flag" ||
24809 test ! -s conftest.err
24810 } && test -s conftest.$ac_objext; then
24811 ac_cv_stat_tv_nsec2=yes
24812 else
24813 echo "$as_me: failed program was:" >&5
24814 sed 's/^/| /' conftest.$ac_ext >&5
24816 ac_cv_stat_tv_nsec2=no
24819 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24822 { echo "$as_me:$LINENO: result: $ac_cv_stat_tv_nsec2" >&5
24823 echo "${ECHO_T}$ac_cv_stat_tv_nsec2" >&6; }
24824 if test "$ac_cv_stat_tv_nsec2" = yes
24825 then
24827 cat >>confdefs.h <<\_ACEOF
24828 #define HAVE_STAT_TV_NSEC2 1
24829 _ACEOF
24833 # On HP/UX 11.0, mvwdelch is a block with a return statement
24834 { echo "$as_me:$LINENO: checking whether mvwdelch is an expression" >&5
24835 echo $ECHO_N "checking whether mvwdelch is an expression... $ECHO_C" >&6; }
24836 if test "${ac_cv_mvwdelch_is_expression+set}" = set; then
24837 echo $ECHO_N "(cached) $ECHO_C" >&6
24838 else
24839 cat >conftest.$ac_ext <<_ACEOF
24840 /* confdefs.h. */
24841 _ACEOF
24842 cat confdefs.h >>conftest.$ac_ext
24843 cat >>conftest.$ac_ext <<_ACEOF
24844 /* end confdefs.h. */
24845 #include <curses.h>
24847 main ()
24850 int rtn;
24851 rtn = mvwdelch(0,0,0);
24854 return 0;
24856 _ACEOF
24857 rm -f conftest.$ac_objext
24858 if { (ac_try="$ac_compile"
24859 case "(($ac_try" in
24860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24861 *) ac_try_echo=$ac_try;;
24862 esac
24863 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24864 (eval "$ac_compile") 2>conftest.er1
24865 ac_status=$?
24866 grep -v '^ *+' conftest.er1 >conftest.err
24867 rm -f conftest.er1
24868 cat conftest.err >&5
24869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24870 (exit $ac_status); } && {
24871 test -z "$ac_c_werror_flag" ||
24872 test ! -s conftest.err
24873 } && test -s conftest.$ac_objext; then
24874 ac_cv_mvwdelch_is_expression=yes
24875 else
24876 echo "$as_me: failed program was:" >&5
24877 sed 's/^/| /' conftest.$ac_ext >&5
24879 ac_cv_mvwdelch_is_expression=no
24882 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24885 { echo "$as_me:$LINENO: result: $ac_cv_mvwdelch_is_expression" >&5
24886 echo "${ECHO_T}$ac_cv_mvwdelch_is_expression" >&6; }
24888 if test "$ac_cv_mvwdelch_is_expression" = yes
24889 then
24891 cat >>confdefs.h <<\_ACEOF
24892 #define MVWDELCH_IS_EXPRESSION 1
24893 _ACEOF
24897 { echo "$as_me:$LINENO: checking whether WINDOW has _flags" >&5
24898 echo $ECHO_N "checking whether WINDOW has _flags... $ECHO_C" >&6; }
24899 if test "${ac_cv_window_has_flags+set}" = set; then
24900 echo $ECHO_N "(cached) $ECHO_C" >&6
24901 else
24902 cat >conftest.$ac_ext <<_ACEOF
24903 /* confdefs.h. */
24904 _ACEOF
24905 cat confdefs.h >>conftest.$ac_ext
24906 cat >>conftest.$ac_ext <<_ACEOF
24907 /* end confdefs.h. */
24908 #include <curses.h>
24910 main ()
24913 WINDOW *w;
24914 w->_flags = 0;
24917 return 0;
24919 _ACEOF
24920 rm -f conftest.$ac_objext
24921 if { (ac_try="$ac_compile"
24922 case "(($ac_try" in
24923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24924 *) ac_try_echo=$ac_try;;
24925 esac
24926 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24927 (eval "$ac_compile") 2>conftest.er1
24928 ac_status=$?
24929 grep -v '^ *+' conftest.er1 >conftest.err
24930 rm -f conftest.er1
24931 cat conftest.err >&5
24932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24933 (exit $ac_status); } && {
24934 test -z "$ac_c_werror_flag" ||
24935 test ! -s conftest.err
24936 } && test -s conftest.$ac_objext; then
24937 ac_cv_window_has_flags=yes
24938 else
24939 echo "$as_me: failed program was:" >&5
24940 sed 's/^/| /' conftest.$ac_ext >&5
24942 ac_cv_window_has_flags=no
24945 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24948 { echo "$as_me:$LINENO: result: $ac_cv_window_has_flags" >&5
24949 echo "${ECHO_T}$ac_cv_window_has_flags" >&6; }
24952 if test "$ac_cv_window_has_flags" = yes
24953 then
24955 cat >>confdefs.h <<\_ACEOF
24956 #define WINDOW_HAS_FLAGS 1
24957 _ACEOF
24961 { echo "$as_me:$LINENO: checking for is_term_resized" >&5
24962 echo $ECHO_N "checking for is_term_resized... $ECHO_C" >&6; }
24963 cat >conftest.$ac_ext <<_ACEOF
24964 /* confdefs.h. */
24965 _ACEOF
24966 cat confdefs.h >>conftest.$ac_ext
24967 cat >>conftest.$ac_ext <<_ACEOF
24968 /* end confdefs.h. */
24969 #include <curses.h>
24971 main ()
24973 void *x=is_term_resized
24975 return 0;
24977 _ACEOF
24978 rm -f conftest.$ac_objext
24979 if { (ac_try="$ac_compile"
24980 case "(($ac_try" in
24981 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24982 *) ac_try_echo=$ac_try;;
24983 esac
24984 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24985 (eval "$ac_compile") 2>conftest.er1
24986 ac_status=$?
24987 grep -v '^ *+' conftest.er1 >conftest.err
24988 rm -f conftest.er1
24989 cat conftest.err >&5
24990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24991 (exit $ac_status); } && {
24992 test -z "$ac_c_werror_flag" ||
24993 test ! -s conftest.err
24994 } && test -s conftest.$ac_objext; then
24996 cat >>confdefs.h <<\_ACEOF
24997 #define HAVE_CURSES_IS_TERM_RESIZED 1
24998 _ACEOF
25000 { echo "$as_me:$LINENO: result: yes" >&5
25001 echo "${ECHO_T}yes" >&6; }
25002 else
25003 echo "$as_me: failed program was:" >&5
25004 sed 's/^/| /' conftest.$ac_ext >&5
25006 { echo "$as_me:$LINENO: result: no" >&5
25007 echo "${ECHO_T}no" >&6; }
25011 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25013 { echo "$as_me:$LINENO: checking for resize_term" >&5
25014 echo $ECHO_N "checking for resize_term... $ECHO_C" >&6; }
25015 cat >conftest.$ac_ext <<_ACEOF
25016 /* confdefs.h. */
25017 _ACEOF
25018 cat confdefs.h >>conftest.$ac_ext
25019 cat >>conftest.$ac_ext <<_ACEOF
25020 /* end confdefs.h. */
25021 #include <curses.h>
25023 main ()
25025 void *x=resize_term
25027 return 0;
25029 _ACEOF
25030 rm -f conftest.$ac_objext
25031 if { (ac_try="$ac_compile"
25032 case "(($ac_try" in
25033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25034 *) ac_try_echo=$ac_try;;
25035 esac
25036 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25037 (eval "$ac_compile") 2>conftest.er1
25038 ac_status=$?
25039 grep -v '^ *+' conftest.er1 >conftest.err
25040 rm -f conftest.er1
25041 cat conftest.err >&5
25042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25043 (exit $ac_status); } && {
25044 test -z "$ac_c_werror_flag" ||
25045 test ! -s conftest.err
25046 } && test -s conftest.$ac_objext; then
25048 cat >>confdefs.h <<\_ACEOF
25049 #define HAVE_CURSES_RESIZE_TERM 1
25050 _ACEOF
25052 { echo "$as_me:$LINENO: result: yes" >&5
25053 echo "${ECHO_T}yes" >&6; }
25054 else
25055 echo "$as_me: failed program was:" >&5
25056 sed 's/^/| /' conftest.$ac_ext >&5
25058 { echo "$as_me:$LINENO: result: no" >&5
25059 echo "${ECHO_T}no" >&6; }
25063 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25065 { echo "$as_me:$LINENO: checking for resizeterm" >&5
25066 echo $ECHO_N "checking for resizeterm... $ECHO_C" >&6; }
25067 cat >conftest.$ac_ext <<_ACEOF
25068 /* confdefs.h. */
25069 _ACEOF
25070 cat confdefs.h >>conftest.$ac_ext
25071 cat >>conftest.$ac_ext <<_ACEOF
25072 /* end confdefs.h. */
25073 #include <curses.h>
25075 main ()
25077 void *x=resizeterm
25079 return 0;
25081 _ACEOF
25082 rm -f conftest.$ac_objext
25083 if { (ac_try="$ac_compile"
25084 case "(($ac_try" in
25085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25086 *) ac_try_echo=$ac_try;;
25087 esac
25088 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25089 (eval "$ac_compile") 2>conftest.er1
25090 ac_status=$?
25091 grep -v '^ *+' conftest.er1 >conftest.err
25092 rm -f conftest.er1
25093 cat conftest.err >&5
25094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25095 (exit $ac_status); } && {
25096 test -z "$ac_c_werror_flag" ||
25097 test ! -s conftest.err
25098 } && test -s conftest.$ac_objext; then
25100 cat >>confdefs.h <<\_ACEOF
25101 #define HAVE_CURSES_RESIZETERM 1
25102 _ACEOF
25104 { echo "$as_me:$LINENO: result: yes" >&5
25105 echo "${ECHO_T}yes" >&6; }
25106 else
25107 echo "$as_me: failed program was:" >&5
25108 sed 's/^/| /' conftest.$ac_ext >&5
25110 { echo "$as_me:$LINENO: result: no" >&5
25111 echo "${ECHO_T}no" >&6; }
25115 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25117 { echo "$as_me:$LINENO: checking for /dev/ptmx" >&5
25118 echo $ECHO_N "checking for /dev/ptmx... $ECHO_C" >&6; }
25120 if test -r /dev/ptmx
25121 then
25122 { echo "$as_me:$LINENO: result: yes" >&5
25123 echo "${ECHO_T}yes" >&6; }
25125 cat >>confdefs.h <<\_ACEOF
25126 #define HAVE_DEV_PTMX 1
25127 _ACEOF
25129 else
25130 { echo "$as_me:$LINENO: result: no" >&5
25131 echo "${ECHO_T}no" >&6; }
25134 { echo "$as_me:$LINENO: checking for /dev/ptc" >&5
25135 echo $ECHO_N "checking for /dev/ptc... $ECHO_C" >&6; }
25137 if test -r /dev/ptc
25138 then
25139 { echo "$as_me:$LINENO: result: yes" >&5
25140 echo "${ECHO_T}yes" >&6; }
25142 cat >>confdefs.h <<\_ACEOF
25143 #define HAVE_DEV_PTC 1
25144 _ACEOF
25146 else
25147 { echo "$as_me:$LINENO: result: no" >&5
25148 echo "${ECHO_T}no" >&6; }
25151 { echo "$as_me:$LINENO: checking for %zd printf() format support" >&5
25152 echo $ECHO_N "checking for %zd printf() format support... $ECHO_C" >&6; }
25153 if test "$cross_compiling" = yes; then
25154 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
25155 See \`config.log' for more details." >&5
25156 echo "$as_me: error: cannot run test program while cross compiling
25157 See \`config.log' for more details." >&2;}
25158 { (exit 1); exit 1; }; }
25159 else
25160 cat >conftest.$ac_ext <<_ACEOF
25161 /* confdefs.h. */
25162 _ACEOF
25163 cat confdefs.h >>conftest.$ac_ext
25164 cat >>conftest.$ac_ext <<_ACEOF
25165 /* end confdefs.h. */
25166 #include <stdio.h>
25167 #include <stddef.h>
25168 #include <string.h>
25170 #ifdef HAVE_SYS_TYPES_H
25171 #include <sys/types.h>
25172 #endif
25174 #ifdef HAVE_SSIZE_T
25175 typedef ssize_t Py_ssize_t;
25176 #elif SIZEOF_VOID_P == SIZEOF_LONG
25177 typedef long Py_ssize_t;
25178 #else
25179 typedef int Py_ssize_t;
25180 #endif
25182 int main()
25184 char buffer[256];
25186 if(sprintf(buffer, "%zd", (size_t)123) < 0)
25187 return 1;
25189 if (strcmp(buffer, "123"))
25190 return 1;
25192 if (sprintf(buffer, "%zd", (Py_ssize_t)-123) < 0)
25193 return 1;
25195 if (strcmp(buffer, "-123"))
25196 return 1;
25198 return 0;
25200 _ACEOF
25201 rm -f conftest$ac_exeext
25202 if { (ac_try="$ac_link"
25203 case "(($ac_try" in
25204 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25205 *) ac_try_echo=$ac_try;;
25206 esac
25207 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25208 (eval "$ac_link") 2>&5
25209 ac_status=$?
25210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25211 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25212 { (case "(($ac_try" in
25213 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25214 *) ac_try_echo=$ac_try;;
25215 esac
25216 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25217 (eval "$ac_try") 2>&5
25218 ac_status=$?
25219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25220 (exit $ac_status); }; }; then
25221 { echo "$as_me:$LINENO: result: yes" >&5
25222 echo "${ECHO_T}yes" >&6; }
25224 cat >>confdefs.h <<\_ACEOF
25225 #define PY_FORMAT_SIZE_T "z"
25226 _ACEOF
25228 else
25229 echo "$as_me: program exited with status $ac_status" >&5
25230 echo "$as_me: failed program was:" >&5
25231 sed 's/^/| /' conftest.$ac_ext >&5
25233 ( exit $ac_status )
25234 { echo "$as_me:$LINENO: result: no" >&5
25235 echo "${ECHO_T}no" >&6; }
25237 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25242 { echo "$as_me:$LINENO: checking for socklen_t" >&5
25243 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; }
25244 if test "${ac_cv_type_socklen_t+set}" = set; then
25245 echo $ECHO_N "(cached) $ECHO_C" >&6
25246 else
25247 cat >conftest.$ac_ext <<_ACEOF
25248 /* confdefs.h. */
25249 _ACEOF
25250 cat confdefs.h >>conftest.$ac_ext
25251 cat >>conftest.$ac_ext <<_ACEOF
25252 /* end confdefs.h. */
25254 #ifdef HAVE_SYS_TYPES_H
25255 #include <sys/types.h>
25256 #endif
25257 #ifdef HAVE_SYS_SOCKET_H
25258 #include <sys/socket.h>
25259 #endif
25262 typedef socklen_t ac__type_new_;
25264 main ()
25266 if ((ac__type_new_ *) 0)
25267 return 0;
25268 if (sizeof (ac__type_new_))
25269 return 0;
25271 return 0;
25273 _ACEOF
25274 rm -f conftest.$ac_objext
25275 if { (ac_try="$ac_compile"
25276 case "(($ac_try" in
25277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25278 *) ac_try_echo=$ac_try;;
25279 esac
25280 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25281 (eval "$ac_compile") 2>conftest.er1
25282 ac_status=$?
25283 grep -v '^ *+' conftest.er1 >conftest.err
25284 rm -f conftest.er1
25285 cat conftest.err >&5
25286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25287 (exit $ac_status); } && {
25288 test -z "$ac_c_werror_flag" ||
25289 test ! -s conftest.err
25290 } && test -s conftest.$ac_objext; then
25291 ac_cv_type_socklen_t=yes
25292 else
25293 echo "$as_me: failed program was:" >&5
25294 sed 's/^/| /' conftest.$ac_ext >&5
25296 ac_cv_type_socklen_t=no
25299 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25301 { echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
25302 echo "${ECHO_T}$ac_cv_type_socklen_t" >&6; }
25303 if test $ac_cv_type_socklen_t = yes; then
25305 else
25307 cat >>confdefs.h <<\_ACEOF
25308 #define socklen_t int
25309 _ACEOF
25316 for h in `(cd $srcdir;echo Python/thread_*.h)`
25318 THREADHEADERS="$THREADHEADERS \$(srcdir)/$h"
25319 done
25322 SRCDIRS="Parser Grammar Objects Python Modules Mac"
25323 { echo "$as_me:$LINENO: checking for build directories" >&5
25324 echo $ECHO_N "checking for build directories... $ECHO_C" >&6; }
25325 for dir in $SRCDIRS; do
25326 if test ! -d $dir; then
25327 mkdir $dir
25329 done
25330 { echo "$as_me:$LINENO: result: done" >&5
25331 echo "${ECHO_T}done" >&6; }
25333 # generate output files
25334 ac_config_files="$ac_config_files Makefile.pre Modules/Setup.config"
25336 cat >confcache <<\_ACEOF
25337 # This file is a shell script that caches the results of configure
25338 # tests run on this system so they can be shared between configure
25339 # scripts and configure runs, see configure's option --config-cache.
25340 # It is not useful on other systems. If it contains results you don't
25341 # want to keep, you may remove or edit it.
25343 # config.status only pays attention to the cache file if you give it
25344 # the --recheck option to rerun configure.
25346 # `ac_cv_env_foo' variables (set or unset) will be overridden when
25347 # loading this file, other *unset* `ac_cv_foo' will be assigned the
25348 # following values.
25350 _ACEOF
25352 # The following way of writing the cache mishandles newlines in values,
25353 # but we know of no workaround that is simple, portable, and efficient.
25354 # So, we kill variables containing newlines.
25355 # Ultrix sh set writes to stderr and can't be redirected directly,
25356 # and sets the high bit in the cache file unless we assign to the vars.
25358 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
25359 eval ac_val=\$$ac_var
25360 case $ac_val in #(
25361 *${as_nl}*)
25362 case $ac_var in #(
25363 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
25364 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
25365 esac
25366 case $ac_var in #(
25367 _ | IFS | as_nl) ;; #(
25368 *) $as_unset $ac_var ;;
25369 esac ;;
25370 esac
25371 done
25373 (set) 2>&1 |
25374 case $as_nl`(ac_space=' '; set) 2>&1` in #(
25375 *${as_nl}ac_space=\ *)
25376 # `set' does not quote correctly, so add quotes (double-quote
25377 # substitution turns \\\\ into \\, and sed turns \\ into \).
25378 sed -n \
25379 "s/'/'\\\\''/g;
25380 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
25381 ;; #(
25383 # `set' quotes correctly as required by POSIX, so do not add quotes.
25384 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
25386 esac |
25387 sort
25389 sed '
25390 /^ac_cv_env_/b end
25391 t clear
25392 :clear
25393 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
25394 t end
25395 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
25396 :end' >>confcache
25397 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
25398 if test -w "$cache_file"; then
25399 test "x$cache_file" != "x/dev/null" &&
25400 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
25401 echo "$as_me: updating cache $cache_file" >&6;}
25402 cat confcache >$cache_file
25403 else
25404 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
25405 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
25408 rm -f confcache
25410 test "x$prefix" = xNONE && prefix=$ac_default_prefix
25411 # Let make expand exec_prefix.
25412 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
25414 DEFS=-DHAVE_CONFIG_H
25416 ac_libobjs=
25417 ac_ltlibobjs=
25418 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
25419 # 1. Remove the extension, and $U if already installed.
25420 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
25421 ac_i=`echo "$ac_i" | sed "$ac_script"`
25422 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
25423 # will be set to the directory where LIBOBJS objects are built.
25424 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
25425 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
25426 done
25427 LIBOBJS=$ac_libobjs
25429 LTLIBOBJS=$ac_ltlibobjs
25433 : ${CONFIG_STATUS=./config.status}
25434 ac_clean_files_save=$ac_clean_files
25435 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
25436 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
25437 echo "$as_me: creating $CONFIG_STATUS" >&6;}
25438 cat >$CONFIG_STATUS <<_ACEOF
25439 #! $SHELL
25440 # Generated by $as_me.
25441 # Run this file to recreate the current configuration.
25442 # Compiler output produced by configure, useful for debugging
25443 # configure, is in config.log if it exists.
25445 debug=false
25446 ac_cs_recheck=false
25447 ac_cs_silent=false
25448 SHELL=\${CONFIG_SHELL-$SHELL}
25449 _ACEOF
25451 cat >>$CONFIG_STATUS <<\_ACEOF
25452 ## --------------------- ##
25453 ## M4sh Initialization. ##
25454 ## --------------------- ##
25456 # Be more Bourne compatible
25457 DUALCASE=1; export DUALCASE # for MKS sh
25458 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
25459 emulate sh
25460 NULLCMD=:
25461 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
25462 # is contrary to our usage. Disable this feature.
25463 alias -g '${1+"$@"}'='"$@"'
25464 setopt NO_GLOB_SUBST
25465 else
25466 case `(set -o) 2>/dev/null` in
25467 *posix*) set -o posix ;;
25468 esac
25475 # PATH needs CR
25476 # Avoid depending upon Character Ranges.
25477 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
25478 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
25479 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
25480 as_cr_digits='0123456789'
25481 as_cr_alnum=$as_cr_Letters$as_cr_digits
25483 # The user is always right.
25484 if test "${PATH_SEPARATOR+set}" != set; then
25485 echo "#! /bin/sh" >conf$$.sh
25486 echo "exit 0" >>conf$$.sh
25487 chmod +x conf$$.sh
25488 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
25489 PATH_SEPARATOR=';'
25490 else
25491 PATH_SEPARATOR=:
25493 rm -f conf$$.sh
25496 # Support unset when possible.
25497 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
25498 as_unset=unset
25499 else
25500 as_unset=false
25504 # IFS
25505 # We need space, tab and new line, in precisely that order. Quoting is
25506 # there to prevent editors from complaining about space-tab.
25507 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
25508 # splitting by setting IFS to empty value.)
25509 as_nl='
25511 IFS=" "" $as_nl"
25513 # Find who we are. Look in the path if we contain no directory separator.
25514 case $0 in
25515 *[\\/]* ) as_myself=$0 ;;
25516 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25517 for as_dir in $PATH
25519 IFS=$as_save_IFS
25520 test -z "$as_dir" && as_dir=.
25521 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
25522 done
25523 IFS=$as_save_IFS
25526 esac
25527 # We did not find ourselves, most probably we were run as `sh COMMAND'
25528 # in which case we are not to be found in the path.
25529 if test "x$as_myself" = x; then
25530 as_myself=$0
25532 if test ! -f "$as_myself"; then
25533 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
25534 { (exit 1); exit 1; }
25537 # Work around bugs in pre-3.0 UWIN ksh.
25538 for as_var in ENV MAIL MAILPATH
25539 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
25540 done
25541 PS1='$ '
25542 PS2='> '
25543 PS4='+ '
25545 # NLS nuisances.
25546 for as_var in \
25547 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
25548 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
25549 LC_TELEPHONE LC_TIME
25551 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
25552 eval $as_var=C; export $as_var
25553 else
25554 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
25556 done
25558 # Required to use basename.
25559 if expr a : '\(a\)' >/dev/null 2>&1 &&
25560 test "X`expr 00001 : '.*\(...\)'`" = X001; then
25561 as_expr=expr
25562 else
25563 as_expr=false
25566 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
25567 as_basename=basename
25568 else
25569 as_basename=false
25573 # Name of the executable.
25574 as_me=`$as_basename -- "$0" ||
25575 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
25576 X"$0" : 'X\(//\)$' \| \
25577 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
25578 echo X/"$0" |
25579 sed '/^.*\/\([^/][^/]*\)\/*$/{
25580 s//\1/
25583 /^X\/\(\/\/\)$/{
25584 s//\1/
25587 /^X\/\(\/\).*/{
25588 s//\1/
25591 s/.*/./; q'`
25593 # CDPATH.
25594 $as_unset CDPATH
25598 as_lineno_1=$LINENO
25599 as_lineno_2=$LINENO
25600 test "x$as_lineno_1" != "x$as_lineno_2" &&
25601 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
25603 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
25604 # uniformly replaced by the line number. The first 'sed' inserts a
25605 # line-number line after each line using $LINENO; the second 'sed'
25606 # does the real work. The second script uses 'N' to pair each
25607 # line-number line with the line containing $LINENO, and appends
25608 # trailing '-' during substitution so that $LINENO is not a special
25609 # case at line end.
25610 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
25611 # scripts with optimization help from Paolo Bonzini. Blame Lee
25612 # E. McMahon (1931-1989) for sed's syntax. :-)
25613 sed -n '
25615 /[$]LINENO/=
25616 ' <$as_myself |
25617 sed '
25618 s/[$]LINENO.*/&-/
25619 t lineno
25621 :lineno
25623 :loop
25624 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
25625 t loop
25626 s/-\n.*//
25627 ' >$as_me.lineno &&
25628 chmod +x "$as_me.lineno" ||
25629 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
25630 { (exit 1); exit 1; }; }
25632 # Don't try to exec as it changes $[0], causing all sort of problems
25633 # (the dirname of $[0] is not the place where we might find the
25634 # original and so on. Autoconf is especially sensitive to this).
25635 . "./$as_me.lineno"
25636 # Exit status is that of the last command.
25637 exit
25641 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
25642 as_dirname=dirname
25643 else
25644 as_dirname=false
25647 ECHO_C= ECHO_N= ECHO_T=
25648 case `echo -n x` in
25649 -n*)
25650 case `echo 'x\c'` in
25651 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
25652 *) ECHO_C='\c';;
25653 esac;;
25655 ECHO_N='-n';;
25656 esac
25658 if expr a : '\(a\)' >/dev/null 2>&1 &&
25659 test "X`expr 00001 : '.*\(...\)'`" = X001; then
25660 as_expr=expr
25661 else
25662 as_expr=false
25665 rm -f conf$$ conf$$.exe conf$$.file
25666 if test -d conf$$.dir; then
25667 rm -f conf$$.dir/conf$$.file
25668 else
25669 rm -f conf$$.dir
25670 mkdir conf$$.dir
25672 echo >conf$$.file
25673 if ln -s conf$$.file conf$$ 2>/dev/null; then
25674 as_ln_s='ln -s'
25675 # ... but there are two gotchas:
25676 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
25677 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
25678 # In both cases, we have to default to `cp -p'.
25679 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
25680 as_ln_s='cp -p'
25681 elif ln conf$$.file conf$$ 2>/dev/null; then
25682 as_ln_s=ln
25683 else
25684 as_ln_s='cp -p'
25686 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
25687 rmdir conf$$.dir 2>/dev/null
25689 if mkdir -p . 2>/dev/null; then
25690 as_mkdir_p=:
25691 else
25692 test -d ./-p && rmdir ./-p
25693 as_mkdir_p=false
25696 if test -x / >/dev/null 2>&1; then
25697 as_test_x='test -x'
25698 else
25699 if ls -dL / >/dev/null 2>&1; then
25700 as_ls_L_option=L
25701 else
25702 as_ls_L_option=
25704 as_test_x='
25705 eval sh -c '\''
25706 if test -d "$1"; then
25707 test -d "$1/.";
25708 else
25709 case $1 in
25710 -*)set "./$1";;
25711 esac;
25712 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
25713 ???[sx]*):;;*)false;;esac;fi
25714 '\'' sh
25717 as_executable_p=$as_test_x
25719 # Sed expression to map a string onto a valid CPP name.
25720 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
25722 # Sed expression to map a string onto a valid variable name.
25723 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
25726 exec 6>&1
25728 # Save the log message, to keep $[0] and so on meaningful, and to
25729 # report actual input values of CONFIG_FILES etc. instead of their
25730 # values after options handling.
25731 ac_log="
25732 This file was extended by python $as_me 2.7, which was
25733 generated by GNU Autoconf 2.61. Invocation command line was
25735 CONFIG_FILES = $CONFIG_FILES
25736 CONFIG_HEADERS = $CONFIG_HEADERS
25737 CONFIG_LINKS = $CONFIG_LINKS
25738 CONFIG_COMMANDS = $CONFIG_COMMANDS
25739 $ $0 $@
25741 on `(hostname || uname -n) 2>/dev/null | sed 1q`
25744 _ACEOF
25746 cat >>$CONFIG_STATUS <<_ACEOF
25747 # Files that config.status was made for.
25748 config_files="$ac_config_files"
25749 config_headers="$ac_config_headers"
25751 _ACEOF
25753 cat >>$CONFIG_STATUS <<\_ACEOF
25754 ac_cs_usage="\
25755 \`$as_me' instantiates files from templates according to the
25756 current configuration.
25758 Usage: $0 [OPTIONS] [FILE]...
25760 -h, --help print this help, then exit
25761 -V, --version print version number and configuration settings, then exit
25762 -q, --quiet do not print progress messages
25763 -d, --debug don't remove temporary files
25764 --recheck update $as_me by reconfiguring in the same conditions
25765 --file=FILE[:TEMPLATE]
25766 instantiate the configuration file FILE
25767 --header=FILE[:TEMPLATE]
25768 instantiate the configuration header FILE
25770 Configuration files:
25771 $config_files
25773 Configuration headers:
25774 $config_headers
25776 Report bugs to <bug-autoconf@gnu.org>."
25778 _ACEOF
25779 cat >>$CONFIG_STATUS <<_ACEOF
25780 ac_cs_version="\\
25781 python config.status 2.7
25782 configured by $0, generated by GNU Autoconf 2.61,
25783 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
25785 Copyright (C) 2006 Free Software Foundation, Inc.
25786 This config.status script is free software; the Free Software Foundation
25787 gives unlimited permission to copy, distribute and modify it."
25789 ac_pwd='$ac_pwd'
25790 srcdir='$srcdir'
25791 INSTALL='$INSTALL'
25792 _ACEOF
25794 cat >>$CONFIG_STATUS <<\_ACEOF
25795 # If no file are specified by the user, then we need to provide default
25796 # value. By we need to know if files were specified by the user.
25797 ac_need_defaults=:
25798 while test $# != 0
25800 case $1 in
25801 --*=*)
25802 ac_option=`expr "X$1" : 'X\([^=]*\)='`
25803 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
25804 ac_shift=:
25807 ac_option=$1
25808 ac_optarg=$2
25809 ac_shift=shift
25811 esac
25813 case $ac_option in
25814 # Handling of the options.
25815 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
25816 ac_cs_recheck=: ;;
25817 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
25818 echo "$ac_cs_version"; exit ;;
25819 --debug | --debu | --deb | --de | --d | -d )
25820 debug=: ;;
25821 --file | --fil | --fi | --f )
25822 $ac_shift
25823 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
25824 ac_need_defaults=false;;
25825 --header | --heade | --head | --hea )
25826 $ac_shift
25827 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
25828 ac_need_defaults=false;;
25829 --he | --h)
25830 # Conflict between --help and --header
25831 { echo "$as_me: error: ambiguous option: $1
25832 Try \`$0 --help' for more information." >&2
25833 { (exit 1); exit 1; }; };;
25834 --help | --hel | -h )
25835 echo "$ac_cs_usage"; exit ;;
25836 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
25837 | -silent | --silent | --silen | --sile | --sil | --si | --s)
25838 ac_cs_silent=: ;;
25840 # This is an error.
25841 -*) { echo "$as_me: error: unrecognized option: $1
25842 Try \`$0 --help' for more information." >&2
25843 { (exit 1); exit 1; }; } ;;
25845 *) ac_config_targets="$ac_config_targets $1"
25846 ac_need_defaults=false ;;
25848 esac
25849 shift
25850 done
25852 ac_configure_extra_args=
25854 if $ac_cs_silent; then
25855 exec 6>/dev/null
25856 ac_configure_extra_args="$ac_configure_extra_args --silent"
25859 _ACEOF
25860 cat >>$CONFIG_STATUS <<_ACEOF
25861 if \$ac_cs_recheck; then
25862 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
25863 CONFIG_SHELL=$SHELL
25864 export CONFIG_SHELL
25865 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
25868 _ACEOF
25869 cat >>$CONFIG_STATUS <<\_ACEOF
25870 exec 5>>config.log
25872 echo
25873 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
25874 ## Running $as_me. ##
25875 _ASBOX
25876 echo "$ac_log"
25877 } >&5
25879 _ACEOF
25880 cat >>$CONFIG_STATUS <<_ACEOF
25881 _ACEOF
25883 cat >>$CONFIG_STATUS <<\_ACEOF
25885 # Handling of arguments.
25886 for ac_config_target in $ac_config_targets
25888 case $ac_config_target in
25889 "pyconfig.h") CONFIG_HEADERS="$CONFIG_HEADERS pyconfig.h" ;;
25890 "Mac/Makefile") CONFIG_FILES="$CONFIG_FILES Mac/Makefile" ;;
25891 "Mac/PythonLauncher/Makefile") CONFIG_FILES="$CONFIG_FILES Mac/PythonLauncher/Makefile" ;;
25892 "Mac/IDLE/Makefile") CONFIG_FILES="$CONFIG_FILES Mac/IDLE/Makefile" ;;
25893 "Mac/Resources/framework/Info.plist") CONFIG_FILES="$CONFIG_FILES Mac/Resources/framework/Info.plist" ;;
25894 "Mac/Resources/app/Info.plist") CONFIG_FILES="$CONFIG_FILES Mac/Resources/app/Info.plist" ;;
25895 "Makefile.pre") CONFIG_FILES="$CONFIG_FILES Makefile.pre" ;;
25896 "Modules/Setup.config") CONFIG_FILES="$CONFIG_FILES Modules/Setup.config" ;;
25898 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
25899 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
25900 { (exit 1); exit 1; }; };;
25901 esac
25902 done
25905 # If the user did not use the arguments to specify the items to instantiate,
25906 # then the envvar interface is used. Set only those that are not.
25907 # We use the long form for the default assignment because of an extremely
25908 # bizarre bug on SunOS 4.1.3.
25909 if $ac_need_defaults; then
25910 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
25911 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
25914 # Have a temporary directory for convenience. Make it in the build tree
25915 # simply because there is no reason against having it here, and in addition,
25916 # creating and moving files from /tmp can sometimes cause problems.
25917 # Hook for its removal unless debugging.
25918 # Note that there is a small window in which the directory will not be cleaned:
25919 # after its creation but before its name has been assigned to `$tmp'.
25920 $debug ||
25922 tmp=
25923 trap 'exit_status=$?
25924 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
25926 trap '{ (exit 1); exit 1; }' 1 2 13 15
25928 # Create a (secure) tmp directory for tmp files.
25931 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
25932 test -n "$tmp" && test -d "$tmp"
25933 } ||
25935 tmp=./conf$$-$RANDOM
25936 (umask 077 && mkdir "$tmp")
25937 } ||
25939 echo "$me: cannot create a temporary directory in ." >&2
25940 { (exit 1); exit 1; }
25944 # Set up the sed scripts for CONFIG_FILES section.
25947 # No need to generate the scripts if there are no CONFIG_FILES.
25948 # This happens for instance when ./config.status config.h
25949 if test -n "$CONFIG_FILES"; then
25951 _ACEOF
25955 ac_delim='%!_!# '
25956 for ac_last_try in false false false false false :; do
25957 cat >conf$$subs.sed <<_ACEOF
25958 SHELL!$SHELL$ac_delim
25959 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
25960 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
25961 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
25962 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
25963 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
25964 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
25965 exec_prefix!$exec_prefix$ac_delim
25966 prefix!$prefix$ac_delim
25967 program_transform_name!$program_transform_name$ac_delim
25968 bindir!$bindir$ac_delim
25969 sbindir!$sbindir$ac_delim
25970 libexecdir!$libexecdir$ac_delim
25971 datarootdir!$datarootdir$ac_delim
25972 datadir!$datadir$ac_delim
25973 sysconfdir!$sysconfdir$ac_delim
25974 sharedstatedir!$sharedstatedir$ac_delim
25975 localstatedir!$localstatedir$ac_delim
25976 includedir!$includedir$ac_delim
25977 oldincludedir!$oldincludedir$ac_delim
25978 docdir!$docdir$ac_delim
25979 infodir!$infodir$ac_delim
25980 htmldir!$htmldir$ac_delim
25981 dvidir!$dvidir$ac_delim
25982 pdfdir!$pdfdir$ac_delim
25983 psdir!$psdir$ac_delim
25984 libdir!$libdir$ac_delim
25985 localedir!$localedir$ac_delim
25986 mandir!$mandir$ac_delim
25987 DEFS!$DEFS$ac_delim
25988 ECHO_C!$ECHO_C$ac_delim
25989 ECHO_N!$ECHO_N$ac_delim
25990 ECHO_T!$ECHO_T$ac_delim
25991 LIBS!$LIBS$ac_delim
25992 build_alias!$build_alias$ac_delim
25993 host_alias!$host_alias$ac_delim
25994 target_alias!$target_alias$ac_delim
25995 VERSION!$VERSION$ac_delim
25996 SOVERSION!$SOVERSION$ac_delim
25997 CONFIG_ARGS!$CONFIG_ARGS$ac_delim
25998 UNIVERSALSDK!$UNIVERSALSDK$ac_delim
25999 ARCH_RUN_32BIT!$ARCH_RUN_32BIT$ac_delim
26000 PYTHONFRAMEWORK!$PYTHONFRAMEWORK$ac_delim
26001 PYTHONFRAMEWORKIDENTIFIER!$PYTHONFRAMEWORKIDENTIFIER$ac_delim
26002 PYTHONFRAMEWORKDIR!$PYTHONFRAMEWORKDIR$ac_delim
26003 PYTHONFRAMEWORKPREFIX!$PYTHONFRAMEWORKPREFIX$ac_delim
26004 PYTHONFRAMEWORKINSTALLDIR!$PYTHONFRAMEWORKINSTALLDIR$ac_delim
26005 FRAMEWORKINSTALLFIRST!$FRAMEWORKINSTALLFIRST$ac_delim
26006 FRAMEWORKINSTALLLAST!$FRAMEWORKINSTALLLAST$ac_delim
26007 FRAMEWORKALTINSTALLFIRST!$FRAMEWORKALTINSTALLFIRST$ac_delim
26008 FRAMEWORKALTINSTALLLAST!$FRAMEWORKALTINSTALLLAST$ac_delim
26009 FRAMEWORKUNIXTOOLSPREFIX!$FRAMEWORKUNIXTOOLSPREFIX$ac_delim
26010 MACHDEP!$MACHDEP$ac_delim
26011 SGI_ABI!$SGI_ABI$ac_delim
26012 EXTRAPLATDIR!$EXTRAPLATDIR$ac_delim
26013 EXTRAMACHDEPPATH!$EXTRAMACHDEPPATH$ac_delim
26014 CONFIGURE_MACOSX_DEPLOYMENT_TARGET!$CONFIGURE_MACOSX_DEPLOYMENT_TARGET$ac_delim
26015 EXPORT_MACOSX_DEPLOYMENT_TARGET!$EXPORT_MACOSX_DEPLOYMENT_TARGET$ac_delim
26016 CC!$CC$ac_delim
26017 CFLAGS!$CFLAGS$ac_delim
26018 LDFLAGS!$LDFLAGS$ac_delim
26019 CPPFLAGS!$CPPFLAGS$ac_delim
26020 ac_ct_CC!$ac_ct_CC$ac_delim
26021 EXEEXT!$EXEEXT$ac_delim
26022 OBJEXT!$OBJEXT$ac_delim
26023 CXX!$CXX$ac_delim
26024 MAINCC!$MAINCC$ac_delim
26025 CPP!$CPP$ac_delim
26026 GREP!$GREP$ac_delim
26027 EGREP!$EGREP$ac_delim
26028 BUILDEXEEXT!$BUILDEXEEXT$ac_delim
26029 LIBRARY!$LIBRARY$ac_delim
26030 LDLIBRARY!$LDLIBRARY$ac_delim
26031 DLLLIBRARY!$DLLLIBRARY$ac_delim
26032 BLDLIBRARY!$BLDLIBRARY$ac_delim
26033 LDLIBRARYDIR!$LDLIBRARYDIR$ac_delim
26034 INSTSONAME!$INSTSONAME$ac_delim
26035 RUNSHARED!$RUNSHARED$ac_delim
26036 LINKCC!$LINKCC$ac_delim
26037 RANLIB!$RANLIB$ac_delim
26038 AR!$AR$ac_delim
26039 SVNVERSION!$SVNVERSION$ac_delim
26040 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
26041 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
26042 INSTALL_DATA!$INSTALL_DATA$ac_delim
26043 LN!$LN$ac_delim
26044 OPT!$OPT$ac_delim
26045 BASECFLAGS!$BASECFLAGS$ac_delim
26046 UNIVERSAL_ARCH_FLAGS!$UNIVERSAL_ARCH_FLAGS$ac_delim
26047 OTHER_LIBTOOL_OPT!$OTHER_LIBTOOL_OPT$ac_delim
26048 LIBTOOL_CRUFT!$LIBTOOL_CRUFT$ac_delim
26049 SO!$SO$ac_delim
26050 LDSHARED!$LDSHARED$ac_delim
26051 BLDSHARED!$BLDSHARED$ac_delim
26052 CCSHARED!$CCSHARED$ac_delim
26053 LINKFORSHARED!$LINKFORSHARED$ac_delim
26054 CFLAGSFORSHARED!$CFLAGSFORSHARED$ac_delim
26055 _ACEOF
26057 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
26058 break
26059 elif $ac_last_try; then
26060 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
26061 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
26062 { (exit 1); exit 1; }; }
26063 else
26064 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
26066 done
26068 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
26069 if test -n "$ac_eof"; then
26070 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
26071 ac_eof=`expr $ac_eof + 1`
26074 cat >>$CONFIG_STATUS <<_ACEOF
26075 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
26076 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
26077 _ACEOF
26078 sed '
26079 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
26080 s/^/s,@/; s/!/@,|#_!!_#|/
26083 s/'"$ac_delim"'$/,g/; t
26084 s/$/\\/; p
26085 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
26086 ' >>$CONFIG_STATUS <conf$$subs.sed
26087 rm -f conf$$subs.sed
26088 cat >>$CONFIG_STATUS <<_ACEOF
26089 CEOF$ac_eof
26090 _ACEOF
26093 ac_delim='%!_!# '
26094 for ac_last_try in false false false false false :; do
26095 cat >conf$$subs.sed <<_ACEOF
26096 SHLIBS!$SHLIBS$ac_delim
26097 USE_SIGNAL_MODULE!$USE_SIGNAL_MODULE$ac_delim
26098 SIGNAL_OBJS!$SIGNAL_OBJS$ac_delim
26099 USE_THREAD_MODULE!$USE_THREAD_MODULE$ac_delim
26100 LDLAST!$LDLAST$ac_delim
26101 THREADOBJ!$THREADOBJ$ac_delim
26102 DLINCLDIR!$DLINCLDIR$ac_delim
26103 DYNLOADFILE!$DYNLOADFILE$ac_delim
26104 MACHDEP_OBJS!$MACHDEP_OBJS$ac_delim
26105 TRUE!$TRUE$ac_delim
26106 LIBOBJS!$LIBOBJS$ac_delim
26107 HAVE_GETHOSTBYNAME_R_6_ARG!$HAVE_GETHOSTBYNAME_R_6_ARG$ac_delim
26108 HAVE_GETHOSTBYNAME_R_5_ARG!$HAVE_GETHOSTBYNAME_R_5_ARG$ac_delim
26109 HAVE_GETHOSTBYNAME_R_3_ARG!$HAVE_GETHOSTBYNAME_R_3_ARG$ac_delim
26110 HAVE_GETHOSTBYNAME_R!$HAVE_GETHOSTBYNAME_R$ac_delim
26111 HAVE_GETHOSTBYNAME!$HAVE_GETHOSTBYNAME$ac_delim
26112 LIBM!$LIBM$ac_delim
26113 LIBC!$LIBC$ac_delim
26114 UNICODE_OBJS!$UNICODE_OBJS$ac_delim
26115 THREADHEADERS!$THREADHEADERS$ac_delim
26116 SRCDIRS!$SRCDIRS$ac_delim
26117 LTLIBOBJS!$LTLIBOBJS$ac_delim
26118 _ACEOF
26120 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 22; then
26121 break
26122 elif $ac_last_try; then
26123 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
26124 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
26125 { (exit 1); exit 1; }; }
26126 else
26127 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
26129 done
26131 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
26132 if test -n "$ac_eof"; then
26133 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
26134 ac_eof=`expr $ac_eof + 1`
26137 cat >>$CONFIG_STATUS <<_ACEOF
26138 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
26139 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
26140 _ACEOF
26141 sed '
26142 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
26143 s/^/s,@/; s/!/@,|#_!!_#|/
26146 s/'"$ac_delim"'$/,g/; t
26147 s/$/\\/; p
26148 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
26149 ' >>$CONFIG_STATUS <conf$$subs.sed
26150 rm -f conf$$subs.sed
26151 cat >>$CONFIG_STATUS <<_ACEOF
26152 :end
26153 s/|#_!!_#|//g
26154 CEOF$ac_eof
26155 _ACEOF
26158 # VPATH may cause trouble with some makes, so we remove $(srcdir),
26159 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
26160 # trailing colons and then remove the whole line if VPATH becomes empty
26161 # (actually we leave an empty line to preserve line numbers).
26162 if test "x$srcdir" = x.; then
26163 ac_vpsub='/^[ ]*VPATH[ ]*=/{
26164 s/:*\$(srcdir):*/:/
26165 s/:*\${srcdir}:*/:/
26166 s/:*@srcdir@:*/:/
26167 s/^\([^=]*=[ ]*\):*/\1/
26168 s/:*$//
26169 s/^[^=]*=[ ]*$//
26173 cat >>$CONFIG_STATUS <<\_ACEOF
26174 fi # test -n "$CONFIG_FILES"
26177 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS
26179 case $ac_tag in
26180 :[FHLC]) ac_mode=$ac_tag; continue;;
26181 esac
26182 case $ac_mode$ac_tag in
26183 :[FHL]*:*);;
26184 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
26185 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
26186 { (exit 1); exit 1; }; };;
26187 :[FH]-) ac_tag=-:-;;
26188 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
26189 esac
26190 ac_save_IFS=$IFS
26191 IFS=:
26192 set x $ac_tag
26193 IFS=$ac_save_IFS
26194 shift
26195 ac_file=$1
26196 shift
26198 case $ac_mode in
26199 :L) ac_source=$1;;
26200 :[FH])
26201 ac_file_inputs=
26202 for ac_f
26204 case $ac_f in
26205 -) ac_f="$tmp/stdin";;
26206 *) # Look for the file first in the build tree, then in the source tree
26207 # (if the path is not absolute). The absolute path cannot be DOS-style,
26208 # because $ac_f cannot contain `:'.
26209 test -f "$ac_f" ||
26210 case $ac_f in
26211 [\\/$]*) false;;
26212 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
26213 esac ||
26214 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
26215 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
26216 { (exit 1); exit 1; }; };;
26217 esac
26218 ac_file_inputs="$ac_file_inputs $ac_f"
26219 done
26221 # Let's still pretend it is `configure' which instantiates (i.e., don't
26222 # use $as_me), people would be surprised to read:
26223 # /* config.h. Generated by config.status. */
26224 configure_input="Generated from "`IFS=:
26225 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
26226 if test x"$ac_file" != x-; then
26227 configure_input="$ac_file. $configure_input"
26228 { echo "$as_me:$LINENO: creating $ac_file" >&5
26229 echo "$as_me: creating $ac_file" >&6;}
26232 case $ac_tag in
26233 *:-:* | *:-) cat >"$tmp/stdin";;
26234 esac
26236 esac
26238 ac_dir=`$as_dirname -- "$ac_file" ||
26239 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26240 X"$ac_file" : 'X\(//\)[^/]' \| \
26241 X"$ac_file" : 'X\(//\)$' \| \
26242 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
26243 echo X"$ac_file" |
26244 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26245 s//\1/
26248 /^X\(\/\/\)[^/].*/{
26249 s//\1/
26252 /^X\(\/\/\)$/{
26253 s//\1/
26256 /^X\(\/\).*/{
26257 s//\1/
26260 s/.*/./; q'`
26261 { as_dir="$ac_dir"
26262 case $as_dir in #(
26263 -*) as_dir=./$as_dir;;
26264 esac
26265 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
26266 as_dirs=
26267 while :; do
26268 case $as_dir in #(
26269 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
26270 *) as_qdir=$as_dir;;
26271 esac
26272 as_dirs="'$as_qdir' $as_dirs"
26273 as_dir=`$as_dirname -- "$as_dir" ||
26274 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26275 X"$as_dir" : 'X\(//\)[^/]' \| \
26276 X"$as_dir" : 'X\(//\)$' \| \
26277 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
26278 echo X"$as_dir" |
26279 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26280 s//\1/
26283 /^X\(\/\/\)[^/].*/{
26284 s//\1/
26287 /^X\(\/\/\)$/{
26288 s//\1/
26291 /^X\(\/\).*/{
26292 s//\1/
26295 s/.*/./; q'`
26296 test -d "$as_dir" && break
26297 done
26298 test -z "$as_dirs" || eval "mkdir $as_dirs"
26299 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
26300 echo "$as_me: error: cannot create directory $as_dir" >&2;}
26301 { (exit 1); exit 1; }; }; }
26302 ac_builddir=.
26304 case "$ac_dir" in
26305 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
26307 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
26308 # A ".." for each directory in $ac_dir_suffix.
26309 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
26310 case $ac_top_builddir_sub in
26311 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
26312 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
26313 esac ;;
26314 esac
26315 ac_abs_top_builddir=$ac_pwd
26316 ac_abs_builddir=$ac_pwd$ac_dir_suffix
26317 # for backward compatibility:
26318 ac_top_builddir=$ac_top_build_prefix
26320 case $srcdir in
26321 .) # We are building in place.
26322 ac_srcdir=.
26323 ac_top_srcdir=$ac_top_builddir_sub
26324 ac_abs_top_srcdir=$ac_pwd ;;
26325 [\\/]* | ?:[\\/]* ) # Absolute name.
26326 ac_srcdir=$srcdir$ac_dir_suffix;
26327 ac_top_srcdir=$srcdir
26328 ac_abs_top_srcdir=$srcdir ;;
26329 *) # Relative name.
26330 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
26331 ac_top_srcdir=$ac_top_build_prefix$srcdir
26332 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
26333 esac
26334 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
26337 case $ac_mode in
26340 # CONFIG_FILE
26343 case $INSTALL in
26344 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
26345 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
26346 esac
26347 _ACEOF
26349 cat >>$CONFIG_STATUS <<\_ACEOF
26350 # If the template does not know about datarootdir, expand it.
26351 # FIXME: This hack should be removed a few years after 2.60.
26352 ac_datarootdir_hack=; ac_datarootdir_seen=
26354 case `sed -n '/datarootdir/ {
26358 /@datadir@/p
26359 /@docdir@/p
26360 /@infodir@/p
26361 /@localedir@/p
26362 /@mandir@/p
26363 ' $ac_file_inputs` in
26364 *datarootdir*) ac_datarootdir_seen=yes;;
26365 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
26366 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
26367 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
26368 _ACEOF
26369 cat >>$CONFIG_STATUS <<_ACEOF
26370 ac_datarootdir_hack='
26371 s&@datadir@&$datadir&g
26372 s&@docdir@&$docdir&g
26373 s&@infodir@&$infodir&g
26374 s&@localedir@&$localedir&g
26375 s&@mandir@&$mandir&g
26376 s&\\\${datarootdir}&$datarootdir&g' ;;
26377 esac
26378 _ACEOF
26380 # Neutralize VPATH when `$srcdir' = `.'.
26381 # Shell code in configure.ac might set extrasub.
26382 # FIXME: do we really want to maintain this feature?
26383 cat >>$CONFIG_STATUS <<_ACEOF
26384 sed "$ac_vpsub
26385 $extrasub
26386 _ACEOF
26387 cat >>$CONFIG_STATUS <<\_ACEOF
26389 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
26390 s&@configure_input@&$configure_input&;t t
26391 s&@top_builddir@&$ac_top_builddir_sub&;t t
26392 s&@srcdir@&$ac_srcdir&;t t
26393 s&@abs_srcdir@&$ac_abs_srcdir&;t t
26394 s&@top_srcdir@&$ac_top_srcdir&;t t
26395 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
26396 s&@builddir@&$ac_builddir&;t t
26397 s&@abs_builddir@&$ac_abs_builddir&;t t
26398 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
26399 s&@INSTALL@&$ac_INSTALL&;t t
26400 $ac_datarootdir_hack
26401 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
26403 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
26404 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
26405 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
26406 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
26407 which seems to be undefined. Please make sure it is defined." >&5
26408 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
26409 which seems to be undefined. Please make sure it is defined." >&2;}
26411 rm -f "$tmp/stdin"
26412 case $ac_file in
26413 -) cat "$tmp/out"; rm -f "$tmp/out";;
26414 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
26415 esac
26419 # CONFIG_HEADER
26421 _ACEOF
26423 # Transform confdefs.h into a sed script `conftest.defines', that
26424 # substitutes the proper values into config.h.in to produce config.h.
26425 rm -f conftest.defines conftest.tail
26426 # First, append a space to every undef/define line, to ease matching.
26427 echo 's/$/ /' >conftest.defines
26428 # Then, protect against being on the right side of a sed subst, or in
26429 # an unquoted here document, in config.status. If some macros were
26430 # called several times there might be several #defines for the same
26431 # symbol, which is useless. But do not sort them, since the last
26432 # AC_DEFINE must be honored.
26433 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
26434 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
26435 # NAME is the cpp macro being defined, VALUE is the value it is being given.
26436 # PARAMS is the parameter list in the macro definition--in most cases, it's
26437 # just an empty string.
26438 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
26439 ac_dB='\\)[ (].*,\\1define\\2'
26440 ac_dC=' '
26441 ac_dD=' ,'
26443 uniq confdefs.h |
26444 sed -n '
26445 t rset
26446 :rset
26447 s/^[ ]*#[ ]*define[ ][ ]*//
26448 t ok
26451 s/[\\&,]/\\&/g
26452 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
26453 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
26454 ' >>conftest.defines
26456 # Remove the space that was appended to ease matching.
26457 # Then replace #undef with comments. This is necessary, for
26458 # example, in the case of _POSIX_SOURCE, which is predefined and required
26459 # on some systems where configure will not decide to define it.
26460 # (The regexp can be short, since the line contains either #define or #undef.)
26461 echo 's/ $//
26462 s,^[ #]*u.*,/* & */,' >>conftest.defines
26464 # Break up conftest.defines:
26465 ac_max_sed_lines=50
26467 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
26468 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
26469 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
26470 # et cetera.
26471 ac_in='$ac_file_inputs'
26472 ac_out='"$tmp/out1"'
26473 ac_nxt='"$tmp/out2"'
26475 while :
26477 # Write a here document:
26478 cat >>$CONFIG_STATUS <<_ACEOF
26479 # First, check the format of the line:
26480 cat >"\$tmp/defines.sed" <<\\CEOF
26481 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
26482 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
26484 :def
26485 _ACEOF
26486 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
26487 echo 'CEOF
26488 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
26489 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
26490 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
26491 grep . conftest.tail >/dev/null || break
26492 rm -f conftest.defines
26493 mv conftest.tail conftest.defines
26494 done
26495 rm -f conftest.defines conftest.tail
26497 echo "ac_result=$ac_in" >>$CONFIG_STATUS
26498 cat >>$CONFIG_STATUS <<\_ACEOF
26499 if test x"$ac_file" != x-; then
26500 echo "/* $configure_input */" >"$tmp/config.h"
26501 cat "$ac_result" >>"$tmp/config.h"
26502 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
26503 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
26504 echo "$as_me: $ac_file is unchanged" >&6;}
26505 else
26506 rm -f $ac_file
26507 mv "$tmp/config.h" $ac_file
26509 else
26510 echo "/* $configure_input */"
26511 cat "$ac_result"
26513 rm -f "$tmp/out12"
26517 esac
26519 done # for ac_tag
26522 { (exit 0); exit 0; }
26523 _ACEOF
26524 chmod +x $CONFIG_STATUS
26525 ac_clean_files=$ac_clean_files_save
26528 # configure is writing to config.log, and then calls config.status.
26529 # config.status does its own redirection, appending to config.log.
26530 # Unfortunately, on DOS this fails, as config.log is still kept open
26531 # by configure, so config.status won't be able to write to it; its
26532 # output is simply discarded. So we exec the FD to /dev/null,
26533 # effectively closing config.log, so it can be properly (re)opened and
26534 # appended to by config.status. When coming back to configure, we
26535 # need to make the FD available again.
26536 if test "$no_create" != yes; then
26537 ac_cs_success=:
26538 ac_config_status_args=
26539 test "$silent" = yes &&
26540 ac_config_status_args="$ac_config_status_args --quiet"
26541 exec 5>/dev/null
26542 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
26543 exec 5>>config.log
26544 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
26545 # would make configure fail if this is the last instruction.
26546 $ac_cs_success || { (exit 1); exit 1; }
26550 echo "creating Modules/Setup"
26551 if test ! -f Modules/Setup
26552 then
26553 cp $srcdir/Modules/Setup.dist Modules/Setup
26556 echo "creating Modules/Setup.local"
26557 if test ! -f Modules/Setup.local
26558 then
26559 echo "# Edit this file for local setup changes" >Modules/Setup.local
26562 echo "creating Makefile"
26563 $SHELL $srcdir/Modules/makesetup -c $srcdir/Modules/config.c.in \
26564 -s Modules Modules/Setup.config \
26565 Modules/Setup.local Modules/Setup
26567 case $ac_sys_system in
26568 BeOS)
26569 { echo "$as_me:$LINENO: WARNING:
26571 Support for BeOS is deprecated as of Python 2.6.
26572 See PEP 11 for the gory details.
26573 " >&5
26574 echo "$as_me: WARNING:
26576 Support for BeOS is deprecated as of Python 2.6.
26577 See PEP 11 for the gory details.
26578 " >&2;}
26580 *) ;;
26581 esac
26583 mv config.c Modules