Generalize test.test_support.test_stdout() with a base context manager so that
[python.git] / configure
blobad9f5629f3eb9d51ae1603c763d061b02e833f8c
1 #! /bin/sh
2 # From configure.in Revision: 61847 .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.61 for python 2.6.
6 # Report bugs to <http://www.python.org/python-bugs>.
8 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
10 # This configure script is free software; the Free Software Foundation
11 # gives unlimited permission to copy, distribute and modify it.
12 ## --------------------- ##
13 ## M4sh Initialization. ##
14 ## --------------------- ##
16 # Be more Bourne compatible
17 DUALCASE=1; export DUALCASE # for MKS sh
18 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
19 emulate sh
20 NULLCMD=:
21 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22 # is contrary to our usage. Disable this feature.
23 alias -g '${1+"$@"}'='"$@"'
24 setopt NO_GLOB_SUBST
25 else
26 case `(set -o) 2>/dev/null` in
27 *posix*) set -o posix ;;
28 esac
35 # PATH needs CR
36 # Avoid depending upon Character Ranges.
37 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
38 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
39 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
40 as_cr_digits='0123456789'
41 as_cr_alnum=$as_cr_Letters$as_cr_digits
43 # The user is always right.
44 if test "${PATH_SEPARATOR+set}" != set; then
45 echo "#! /bin/sh" >conf$$.sh
46 echo "exit 0" >>conf$$.sh
47 chmod +x conf$$.sh
48 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
49 PATH_SEPARATOR=';'
50 else
51 PATH_SEPARATOR=:
53 rm -f conf$$.sh
56 # Support unset when possible.
57 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
58 as_unset=unset
59 else
60 as_unset=false
64 # IFS
65 # We need space, tab and new line, in precisely that order. Quoting is
66 # there to prevent editors from complaining about space-tab.
67 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
68 # splitting by setting IFS to empty value.)
69 as_nl='
71 IFS=" "" $as_nl"
73 # Find who we are. Look in the path if we contain no directory separator.
74 case $0 in
75 *[\\/]* ) as_myself=$0 ;;
76 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
77 for as_dir in $PATH
79 IFS=$as_save_IFS
80 test -z "$as_dir" && as_dir=.
81 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
82 done
83 IFS=$as_save_IFS
86 esac
87 # We did not find ourselves, most probably we were run as `sh COMMAND'
88 # in which case we are not to be found in the path.
89 if test "x$as_myself" = x; then
90 as_myself=$0
92 if test ! -f "$as_myself"; then
93 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
94 { (exit 1); exit 1; }
97 # Work around bugs in pre-3.0 UWIN ksh.
98 for as_var in ENV MAIL MAILPATH
99 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
100 done
101 PS1='$ '
102 PS2='> '
103 PS4='+ '
105 # NLS nuisances.
106 for as_var in \
107 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
108 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
109 LC_TELEPHONE LC_TIME
111 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
112 eval $as_var=C; export $as_var
113 else
114 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
116 done
118 # Required to use basename.
119 if expr a : '\(a\)' >/dev/null 2>&1 &&
120 test "X`expr 00001 : '.*\(...\)'`" = X001; then
121 as_expr=expr
122 else
123 as_expr=false
126 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
127 as_basename=basename
128 else
129 as_basename=false
133 # Name of the executable.
134 as_me=`$as_basename -- "$0" ||
135 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
136 X"$0" : 'X\(//\)$' \| \
137 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
138 echo X/"$0" |
139 sed '/^.*\/\([^/][^/]*\)\/*$/{
140 s//\1/
143 /^X\/\(\/\/\)$/{
144 s//\1/
147 /^X\/\(\/\).*/{
148 s//\1/
151 s/.*/./; q'`
153 # CDPATH.
154 $as_unset CDPATH
157 if test "x$CONFIG_SHELL" = x; then
158 if (eval ":") 2>/dev/null; then
159 as_have_required=yes
160 else
161 as_have_required=no
164 if test $as_have_required = yes && (eval ":
165 (as_func_return () {
166 (exit \$1)
168 as_func_success () {
169 as_func_return 0
171 as_func_failure () {
172 as_func_return 1
174 as_func_ret_success () {
175 return 0
177 as_func_ret_failure () {
178 return 1
181 exitcode=0
182 if as_func_success; then
184 else
185 exitcode=1
186 echo as_func_success failed.
189 if as_func_failure; then
190 exitcode=1
191 echo as_func_failure succeeded.
194 if as_func_ret_success; then
196 else
197 exitcode=1
198 echo as_func_ret_success failed.
201 if as_func_ret_failure; then
202 exitcode=1
203 echo as_func_ret_failure succeeded.
206 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
208 else
209 exitcode=1
210 echo positional parameters were not saved.
213 test \$exitcode = 0) || { (exit 1); exit 1; }
216 as_lineno_1=\$LINENO
217 as_lineno_2=\$LINENO
218 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
219 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
220 ") 2> /dev/null; then
222 else
223 as_candidate_shells=
224 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
225 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
227 IFS=$as_save_IFS
228 test -z "$as_dir" && as_dir=.
229 case $as_dir in
231 for as_base in sh bash ksh sh5; do
232 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
233 done;;
234 esac
235 done
236 IFS=$as_save_IFS
239 for as_shell in $as_candidate_shells $SHELL; do
240 # Try only shells that exist, to save several forks.
241 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
242 { ("$as_shell") 2> /dev/null <<\_ASEOF
243 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
244 emulate sh
245 NULLCMD=:
246 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
247 # is contrary to our usage. Disable this feature.
248 alias -g '${1+"$@"}'='"$@"'
249 setopt NO_GLOB_SUBST
250 else
251 case `(set -o) 2>/dev/null` in
252 *posix*) set -o posix ;;
253 esac
259 _ASEOF
260 }; then
261 CONFIG_SHELL=$as_shell
262 as_have_required=yes
263 if { "$as_shell" 2> /dev/null <<\_ASEOF
264 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
265 emulate sh
266 NULLCMD=:
267 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
268 # is contrary to our usage. Disable this feature.
269 alias -g '${1+"$@"}'='"$@"'
270 setopt NO_GLOB_SUBST
271 else
272 case `(set -o) 2>/dev/null` in
273 *posix*) set -o posix ;;
274 esac
280 (as_func_return () {
281 (exit $1)
283 as_func_success () {
284 as_func_return 0
286 as_func_failure () {
287 as_func_return 1
289 as_func_ret_success () {
290 return 0
292 as_func_ret_failure () {
293 return 1
296 exitcode=0
297 if as_func_success; then
299 else
300 exitcode=1
301 echo as_func_success failed.
304 if as_func_failure; then
305 exitcode=1
306 echo as_func_failure succeeded.
309 if as_func_ret_success; then
311 else
312 exitcode=1
313 echo as_func_ret_success failed.
316 if as_func_ret_failure; then
317 exitcode=1
318 echo as_func_ret_failure succeeded.
321 if ( set x; as_func_ret_success y && test x = "$1" ); then
323 else
324 exitcode=1
325 echo positional parameters were not saved.
328 test $exitcode = 0) || { (exit 1); exit 1; }
331 as_lineno_1=$LINENO
332 as_lineno_2=$LINENO
333 test "x$as_lineno_1" != "x$as_lineno_2" &&
334 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
336 _ASEOF
337 }; then
338 break
343 done
345 if test "x$CONFIG_SHELL" != x; then
346 for as_var in BASH_ENV ENV
347 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
348 done
349 export CONFIG_SHELL
350 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
354 if test $as_have_required = no; then
355 echo This script requires a shell more modern than all the
356 echo shells that I found on your system. Please install a
357 echo modern shell, or manually run the script under such a
358 echo shell if you do have one.
359 { (exit 1); exit 1; }
369 (eval "as_func_return () {
370 (exit \$1)
372 as_func_success () {
373 as_func_return 0
375 as_func_failure () {
376 as_func_return 1
378 as_func_ret_success () {
379 return 0
381 as_func_ret_failure () {
382 return 1
385 exitcode=0
386 if as_func_success; then
388 else
389 exitcode=1
390 echo as_func_success failed.
393 if as_func_failure; then
394 exitcode=1
395 echo as_func_failure succeeded.
398 if as_func_ret_success; then
400 else
401 exitcode=1
402 echo as_func_ret_success failed.
405 if as_func_ret_failure; then
406 exitcode=1
407 echo as_func_ret_failure succeeded.
410 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
412 else
413 exitcode=1
414 echo positional parameters were not saved.
417 test \$exitcode = 0") || {
418 echo No shell found that supports shell functions.
419 echo Please tell autoconf@gnu.org about your system,
420 echo including any error possibly output before this
421 echo message
426 as_lineno_1=$LINENO
427 as_lineno_2=$LINENO
428 test "x$as_lineno_1" != "x$as_lineno_2" &&
429 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
431 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
432 # uniformly replaced by the line number. The first 'sed' inserts a
433 # line-number line after each line using $LINENO; the second 'sed'
434 # does the real work. The second script uses 'N' to pair each
435 # line-number line with the line containing $LINENO, and appends
436 # trailing '-' during substitution so that $LINENO is not a special
437 # case at line end.
438 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
439 # scripts with optimization help from Paolo Bonzini. Blame Lee
440 # E. McMahon (1931-1989) for sed's syntax. :-)
441 sed -n '
443 /[$]LINENO/=
444 ' <$as_myself |
445 sed '
446 s/[$]LINENO.*/&-/
447 t lineno
449 :lineno
451 :loop
452 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
453 t loop
454 s/-\n.*//
455 ' >$as_me.lineno &&
456 chmod +x "$as_me.lineno" ||
457 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
458 { (exit 1); exit 1; }; }
460 # Don't try to exec as it changes $[0], causing all sort of problems
461 # (the dirname of $[0] is not the place where we might find the
462 # original and so on. Autoconf is especially sensitive to this).
463 . "./$as_me.lineno"
464 # Exit status is that of the last command.
465 exit
469 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
470 as_dirname=dirname
471 else
472 as_dirname=false
475 ECHO_C= ECHO_N= ECHO_T=
476 case `echo -n x` in
477 -n*)
478 case `echo 'x\c'` in
479 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
480 *) ECHO_C='\c';;
481 esac;;
483 ECHO_N='-n';;
484 esac
486 if expr a : '\(a\)' >/dev/null 2>&1 &&
487 test "X`expr 00001 : '.*\(...\)'`" = X001; then
488 as_expr=expr
489 else
490 as_expr=false
493 rm -f conf$$ conf$$.exe conf$$.file
494 if test -d conf$$.dir; then
495 rm -f conf$$.dir/conf$$.file
496 else
497 rm -f conf$$.dir
498 mkdir conf$$.dir
500 echo >conf$$.file
501 if ln -s conf$$.file conf$$ 2>/dev/null; then
502 as_ln_s='ln -s'
503 # ... but there are two gotchas:
504 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
505 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
506 # In both cases, we have to default to `cp -p'.
507 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
508 as_ln_s='cp -p'
509 elif ln conf$$.file conf$$ 2>/dev/null; then
510 as_ln_s=ln
511 else
512 as_ln_s='cp -p'
514 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
515 rmdir conf$$.dir 2>/dev/null
517 if mkdir -p . 2>/dev/null; then
518 as_mkdir_p=:
519 else
520 test -d ./-p && rmdir ./-p
521 as_mkdir_p=false
524 if test -x / >/dev/null 2>&1; then
525 as_test_x='test -x'
526 else
527 if ls -dL / >/dev/null 2>&1; then
528 as_ls_L_option=L
529 else
530 as_ls_L_option=
532 as_test_x='
533 eval sh -c '\''
534 if test -d "$1"; then
535 test -d "$1/.";
536 else
537 case $1 in
538 -*)set "./$1";;
539 esac;
540 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
541 ???[sx]*):;;*)false;;esac;fi
542 '\'' sh
545 as_executable_p=$as_test_x
547 # Sed expression to map a string onto a valid CPP name.
548 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
550 # Sed expression to map a string onto a valid variable name.
551 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
555 exec 7<&0 </dev/null 6>&1
557 # Name of the host.
558 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
559 # so uname gets run too.
560 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
563 # Initializations.
565 ac_default_prefix=/usr/local
566 ac_clean_files=
567 ac_config_libobj_dir=.
568 LIBOBJS=
569 cross_compiling=no
570 subdirs=
571 MFLAGS=
572 MAKEFLAGS=
573 SHELL=${CONFIG_SHELL-/bin/sh}
575 # Identity of this package.
576 PACKAGE_NAME='python'
577 PACKAGE_TARNAME='python'
578 PACKAGE_VERSION='2.6'
579 PACKAGE_STRING='python 2.6'
580 PACKAGE_BUGREPORT='http://www.python.org/python-bugs'
582 ac_unique_file="Include/object.h"
583 # Factoring default headers for most tests.
584 ac_includes_default="\
585 #include <stdio.h>
586 #ifdef HAVE_SYS_TYPES_H
587 # include <sys/types.h>
588 #endif
589 #ifdef HAVE_SYS_STAT_H
590 # include <sys/stat.h>
591 #endif
592 #ifdef STDC_HEADERS
593 # include <stdlib.h>
594 # include <stddef.h>
595 #else
596 # ifdef HAVE_STDLIB_H
597 # include <stdlib.h>
598 # endif
599 #endif
600 #ifdef HAVE_STRING_H
601 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
602 # include <memory.h>
603 # endif
604 # include <string.h>
605 #endif
606 #ifdef HAVE_STRINGS_H
607 # include <strings.h>
608 #endif
609 #ifdef HAVE_INTTYPES_H
610 # include <inttypes.h>
611 #endif
612 #ifdef HAVE_STDINT_H
613 # include <stdint.h>
614 #endif
615 #ifdef HAVE_UNISTD_H
616 # include <unistd.h>
617 #endif"
619 ac_subst_vars='SHELL
620 PATH_SEPARATOR
621 PACKAGE_NAME
622 PACKAGE_TARNAME
623 PACKAGE_VERSION
624 PACKAGE_STRING
625 PACKAGE_BUGREPORT
626 exec_prefix
627 prefix
628 program_transform_name
629 bindir
630 sbindir
631 libexecdir
632 datarootdir
633 datadir
634 sysconfdir
635 sharedstatedir
636 localstatedir
637 includedir
638 oldincludedir
639 docdir
640 infodir
641 htmldir
642 dvidir
643 pdfdir
644 psdir
645 libdir
646 localedir
647 mandir
648 DEFS
649 ECHO_C
650 ECHO_N
651 ECHO_T
652 LIBS
653 build_alias
654 host_alias
655 target_alias
656 VERSION
657 SOVERSION
658 CONFIG_ARGS
659 UNIVERSALSDK
660 PYTHONFRAMEWORK
661 PYTHONFRAMEWORKDIR
662 PYTHONFRAMEWORKPREFIX
663 PYTHONFRAMEWORKINSTALLDIR
664 FRAMEWORKINSTALLFIRST
665 FRAMEWORKINSTALLLAST
666 FRAMEWORKALTINSTALLFIRST
667 FRAMEWORKALTINSTALLLAST
668 FRAMEWORKUNIXTOOLSPREFIX
669 MACHDEP
670 SGI_ABI
671 EXTRAPLATDIR
672 EXTRAMACHDEPPATH
673 CONFIGURE_MACOSX_DEPLOYMENT_TARGET
674 EXPORT_MACOSX_DEPLOYMENT_TARGET
676 CFLAGS
677 LDFLAGS
678 CPPFLAGS
679 ac_ct_CC
680 EXEEXT
681 OBJEXT
683 MAINCC
685 GREP
686 EGREP
687 BUILDEXEEXT
688 LIBRARY
689 LDLIBRARY
690 DLLLIBRARY
691 BLDLIBRARY
692 LDLIBRARYDIR
693 INSTSONAME
694 RUNSHARED
695 LINKCC
696 RANLIB
698 SVNVERSION
699 INSTALL_PROGRAM
700 INSTALL_SCRIPT
701 INSTALL_DATA
704 BASECFLAGS
705 OTHER_LIBTOOL_OPT
706 LIBTOOL_CRUFT
708 LDSHARED
709 BLDSHARED
710 CCSHARED
711 LINKFORSHARED
712 CFLAGSFORSHARED
713 SHLIBS
714 USE_SIGNAL_MODULE
715 SIGNAL_OBJS
716 USE_THREAD_MODULE
717 LDLAST
718 THREADOBJ
719 DLINCLDIR
720 DYNLOADFILE
721 MACHDEP_OBJS
722 TRUE
723 LIBOBJS
724 HAVE_GETHOSTBYNAME_R_6_ARG
725 HAVE_GETHOSTBYNAME_R_5_ARG
726 HAVE_GETHOSTBYNAME_R_3_ARG
727 HAVE_GETHOSTBYNAME_R
728 HAVE_GETHOSTBYNAME
729 LIBM
730 LIBC
731 UNICODE_OBJS
732 THREADHEADERS
733 SRCDIRS
734 LTLIBOBJS'
735 ac_subst_files=''
736 ac_precious_vars='build_alias
737 host_alias
738 target_alias
740 CFLAGS
741 LDFLAGS
742 LIBS
743 CPPFLAGS
744 CPP'
747 # Initialize some variables set by options.
748 ac_init_help=
749 ac_init_version=false
750 # The variables have the same names as the options, with
751 # dashes changed to underlines.
752 cache_file=/dev/null
753 exec_prefix=NONE
754 no_create=
755 no_recursion=
756 prefix=NONE
757 program_prefix=NONE
758 program_suffix=NONE
759 program_transform_name=s,x,x,
760 silent=
761 site=
762 srcdir=
763 verbose=
764 x_includes=NONE
765 x_libraries=NONE
767 # Installation directory options.
768 # These are left unexpanded so users can "make install exec_prefix=/foo"
769 # and all the variables that are supposed to be based on exec_prefix
770 # by default will actually change.
771 # Use braces instead of parens because sh, perl, etc. also accept them.
772 # (The list follows the same order as the GNU Coding Standards.)
773 bindir='${exec_prefix}/bin'
774 sbindir='${exec_prefix}/sbin'
775 libexecdir='${exec_prefix}/libexec'
776 datarootdir='${prefix}/share'
777 datadir='${datarootdir}'
778 sysconfdir='${prefix}/etc'
779 sharedstatedir='${prefix}/com'
780 localstatedir='${prefix}/var'
781 includedir='${prefix}/include'
782 oldincludedir='/usr/include'
783 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
784 infodir='${datarootdir}/info'
785 htmldir='${docdir}'
786 dvidir='${docdir}'
787 pdfdir='${docdir}'
788 psdir='${docdir}'
789 libdir='${exec_prefix}/lib'
790 localedir='${datarootdir}/locale'
791 mandir='${datarootdir}/man'
793 ac_prev=
794 ac_dashdash=
795 for ac_option
797 # If the previous option needs an argument, assign it.
798 if test -n "$ac_prev"; then
799 eval $ac_prev=\$ac_option
800 ac_prev=
801 continue
804 case $ac_option in
805 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
806 *) ac_optarg=yes ;;
807 esac
809 # Accept the important Cygnus configure options, so we can diagnose typos.
811 case $ac_dashdash$ac_option in
813 ac_dashdash=yes ;;
815 -bindir | --bindir | --bindi | --bind | --bin | --bi)
816 ac_prev=bindir ;;
817 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
818 bindir=$ac_optarg ;;
820 -build | --build | --buil | --bui | --bu)
821 ac_prev=build_alias ;;
822 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
823 build_alias=$ac_optarg ;;
825 -cache-file | --cache-file | --cache-fil | --cache-fi \
826 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
827 ac_prev=cache_file ;;
828 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
829 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
830 cache_file=$ac_optarg ;;
832 --config-cache | -C)
833 cache_file=config.cache ;;
835 -datadir | --datadir | --datadi | --datad)
836 ac_prev=datadir ;;
837 -datadir=* | --datadir=* | --datadi=* | --datad=*)
838 datadir=$ac_optarg ;;
840 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
841 | --dataroo | --dataro | --datar)
842 ac_prev=datarootdir ;;
843 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
844 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
845 datarootdir=$ac_optarg ;;
847 -disable-* | --disable-*)
848 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
849 # Reject names that are not valid shell variable names.
850 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
851 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
852 { (exit 1); exit 1; }; }
853 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
854 eval enable_$ac_feature=no ;;
856 -docdir | --docdir | --docdi | --doc | --do)
857 ac_prev=docdir ;;
858 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
859 docdir=$ac_optarg ;;
861 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
862 ac_prev=dvidir ;;
863 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
864 dvidir=$ac_optarg ;;
866 -enable-* | --enable-*)
867 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
868 # Reject names that are not valid shell variable names.
869 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
870 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
871 { (exit 1); exit 1; }; }
872 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
873 eval enable_$ac_feature=\$ac_optarg ;;
875 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
876 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
877 | --exec | --exe | --ex)
878 ac_prev=exec_prefix ;;
879 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
880 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
881 | --exec=* | --exe=* | --ex=*)
882 exec_prefix=$ac_optarg ;;
884 -gas | --gas | --ga | --g)
885 # Obsolete; use --with-gas.
886 with_gas=yes ;;
888 -help | --help | --hel | --he | -h)
889 ac_init_help=long ;;
890 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
891 ac_init_help=recursive ;;
892 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
893 ac_init_help=short ;;
895 -host | --host | --hos | --ho)
896 ac_prev=host_alias ;;
897 -host=* | --host=* | --hos=* | --ho=*)
898 host_alias=$ac_optarg ;;
900 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
901 ac_prev=htmldir ;;
902 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
903 | --ht=*)
904 htmldir=$ac_optarg ;;
906 -includedir | --includedir | --includedi | --included | --include \
907 | --includ | --inclu | --incl | --inc)
908 ac_prev=includedir ;;
909 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
910 | --includ=* | --inclu=* | --incl=* | --inc=*)
911 includedir=$ac_optarg ;;
913 -infodir | --infodir | --infodi | --infod | --info | --inf)
914 ac_prev=infodir ;;
915 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
916 infodir=$ac_optarg ;;
918 -libdir | --libdir | --libdi | --libd)
919 ac_prev=libdir ;;
920 -libdir=* | --libdir=* | --libdi=* | --libd=*)
921 libdir=$ac_optarg ;;
923 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
924 | --libexe | --libex | --libe)
925 ac_prev=libexecdir ;;
926 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
927 | --libexe=* | --libex=* | --libe=*)
928 libexecdir=$ac_optarg ;;
930 -localedir | --localedir | --localedi | --localed | --locale)
931 ac_prev=localedir ;;
932 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
933 localedir=$ac_optarg ;;
935 -localstatedir | --localstatedir | --localstatedi | --localstated \
936 | --localstate | --localstat | --localsta | --localst | --locals)
937 ac_prev=localstatedir ;;
938 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
939 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
940 localstatedir=$ac_optarg ;;
942 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
943 ac_prev=mandir ;;
944 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
945 mandir=$ac_optarg ;;
947 -nfp | --nfp | --nf)
948 # Obsolete; use --without-fp.
949 with_fp=no ;;
951 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
952 | --no-cr | --no-c | -n)
953 no_create=yes ;;
955 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
956 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
957 no_recursion=yes ;;
959 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
960 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
961 | --oldin | --oldi | --old | --ol | --o)
962 ac_prev=oldincludedir ;;
963 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
964 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
965 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
966 oldincludedir=$ac_optarg ;;
968 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
969 ac_prev=prefix ;;
970 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
971 prefix=$ac_optarg ;;
973 -program-prefix | --program-prefix | --program-prefi | --program-pref \
974 | --program-pre | --program-pr | --program-p)
975 ac_prev=program_prefix ;;
976 -program-prefix=* | --program-prefix=* | --program-prefi=* \
977 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
978 program_prefix=$ac_optarg ;;
980 -program-suffix | --program-suffix | --program-suffi | --program-suff \
981 | --program-suf | --program-su | --program-s)
982 ac_prev=program_suffix ;;
983 -program-suffix=* | --program-suffix=* | --program-suffi=* \
984 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
985 program_suffix=$ac_optarg ;;
987 -program-transform-name | --program-transform-name \
988 | --program-transform-nam | --program-transform-na \
989 | --program-transform-n | --program-transform- \
990 | --program-transform | --program-transfor \
991 | --program-transfo | --program-transf \
992 | --program-trans | --program-tran \
993 | --progr-tra | --program-tr | --program-t)
994 ac_prev=program_transform_name ;;
995 -program-transform-name=* | --program-transform-name=* \
996 | --program-transform-nam=* | --program-transform-na=* \
997 | --program-transform-n=* | --program-transform-=* \
998 | --program-transform=* | --program-transfor=* \
999 | --program-transfo=* | --program-transf=* \
1000 | --program-trans=* | --program-tran=* \
1001 | --progr-tra=* | --program-tr=* | --program-t=*)
1002 program_transform_name=$ac_optarg ;;
1004 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1005 ac_prev=pdfdir ;;
1006 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1007 pdfdir=$ac_optarg ;;
1009 -psdir | --psdir | --psdi | --psd | --ps)
1010 ac_prev=psdir ;;
1011 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1012 psdir=$ac_optarg ;;
1014 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1015 | -silent | --silent | --silen | --sile | --sil)
1016 silent=yes ;;
1018 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1019 ac_prev=sbindir ;;
1020 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1021 | --sbi=* | --sb=*)
1022 sbindir=$ac_optarg ;;
1024 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1025 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1026 | --sharedst | --shareds | --shared | --share | --shar \
1027 | --sha | --sh)
1028 ac_prev=sharedstatedir ;;
1029 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1030 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1031 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1032 | --sha=* | --sh=*)
1033 sharedstatedir=$ac_optarg ;;
1035 -site | --site | --sit)
1036 ac_prev=site ;;
1037 -site=* | --site=* | --sit=*)
1038 site=$ac_optarg ;;
1040 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1041 ac_prev=srcdir ;;
1042 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1043 srcdir=$ac_optarg ;;
1045 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1046 | --syscon | --sysco | --sysc | --sys | --sy)
1047 ac_prev=sysconfdir ;;
1048 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1049 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1050 sysconfdir=$ac_optarg ;;
1052 -target | --target | --targe | --targ | --tar | --ta | --t)
1053 ac_prev=target_alias ;;
1054 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1055 target_alias=$ac_optarg ;;
1057 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1058 verbose=yes ;;
1060 -version | --version | --versio | --versi | --vers | -V)
1061 ac_init_version=: ;;
1063 -with-* | --with-*)
1064 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1065 # Reject names that are not valid shell variable names.
1066 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1067 { echo "$as_me: error: invalid package name: $ac_package" >&2
1068 { (exit 1); exit 1; }; }
1069 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1070 eval with_$ac_package=\$ac_optarg ;;
1072 -without-* | --without-*)
1073 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1074 # Reject names that are not valid shell variable names.
1075 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1076 { echo "$as_me: error: invalid package name: $ac_package" >&2
1077 { (exit 1); exit 1; }; }
1078 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1079 eval with_$ac_package=no ;;
1081 --x)
1082 # Obsolete; use --with-x.
1083 with_x=yes ;;
1085 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1086 | --x-incl | --x-inc | --x-in | --x-i)
1087 ac_prev=x_includes ;;
1088 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1089 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1090 x_includes=$ac_optarg ;;
1092 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1093 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1094 ac_prev=x_libraries ;;
1095 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1096 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1097 x_libraries=$ac_optarg ;;
1099 -*) { echo "$as_me: error: unrecognized option: $ac_option
1100 Try \`$0 --help' for more information." >&2
1101 { (exit 1); exit 1; }; }
1104 *=*)
1105 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1106 # Reject names that are not valid shell variable names.
1107 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1108 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1109 { (exit 1); exit 1; }; }
1110 eval $ac_envvar=\$ac_optarg
1111 export $ac_envvar ;;
1114 # FIXME: should be removed in autoconf 3.0.
1115 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1116 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1117 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1118 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1121 esac
1122 done
1124 if test -n "$ac_prev"; then
1125 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1126 { echo "$as_me: error: missing argument to $ac_option" >&2
1127 { (exit 1); exit 1; }; }
1130 # Be sure to have absolute directory names.
1131 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1132 datadir sysconfdir sharedstatedir localstatedir includedir \
1133 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1134 libdir localedir mandir
1136 eval ac_val=\$$ac_var
1137 case $ac_val in
1138 [\\/$]* | ?:[\\/]* ) continue;;
1139 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1140 esac
1141 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1142 { (exit 1); exit 1; }; }
1143 done
1145 # There might be people who depend on the old broken behavior: `$host'
1146 # used to hold the argument of --host etc.
1147 # FIXME: To remove some day.
1148 build=$build_alias
1149 host=$host_alias
1150 target=$target_alias
1152 # FIXME: To remove some day.
1153 if test "x$host_alias" != x; then
1154 if test "x$build_alias" = x; then
1155 cross_compiling=maybe
1156 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1157 If a cross compiler is detected then cross compile mode will be used." >&2
1158 elif test "x$build_alias" != "x$host_alias"; then
1159 cross_compiling=yes
1163 ac_tool_prefix=
1164 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1166 test "$silent" = yes && exec 6>/dev/null
1169 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1170 ac_ls_di=`ls -di .` &&
1171 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1172 { echo "$as_me: error: Working directory cannot be determined" >&2
1173 { (exit 1); exit 1; }; }
1174 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1175 { echo "$as_me: error: pwd does not report name of working directory" >&2
1176 { (exit 1); exit 1; }; }
1179 # Find the source files, if location was not specified.
1180 if test -z "$srcdir"; then
1181 ac_srcdir_defaulted=yes
1182 # Try the directory containing this script, then the parent directory.
1183 ac_confdir=`$as_dirname -- "$0" ||
1184 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1185 X"$0" : 'X\(//\)[^/]' \| \
1186 X"$0" : 'X\(//\)$' \| \
1187 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1188 echo X"$0" |
1189 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1190 s//\1/
1193 /^X\(\/\/\)[^/].*/{
1194 s//\1/
1197 /^X\(\/\/\)$/{
1198 s//\1/
1201 /^X\(\/\).*/{
1202 s//\1/
1205 s/.*/./; q'`
1206 srcdir=$ac_confdir
1207 if test ! -r "$srcdir/$ac_unique_file"; then
1208 srcdir=..
1210 else
1211 ac_srcdir_defaulted=no
1213 if test ! -r "$srcdir/$ac_unique_file"; then
1214 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1215 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1216 { (exit 1); exit 1; }; }
1218 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1219 ac_abs_confdir=`(
1220 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1221 { (exit 1); exit 1; }; }
1222 pwd)`
1223 # When building in place, set srcdir=.
1224 if test "$ac_abs_confdir" = "$ac_pwd"; then
1225 srcdir=.
1227 # Remove unnecessary trailing slashes from srcdir.
1228 # Double slashes in file names in object file debugging info
1229 # mess up M-x gdb in Emacs.
1230 case $srcdir in
1231 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1232 esac
1233 for ac_var in $ac_precious_vars; do
1234 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1235 eval ac_env_${ac_var}_value=\$${ac_var}
1236 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1237 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1238 done
1241 # Report the --help message.
1243 if test "$ac_init_help" = "long"; then
1244 # Omit some internal or obsolete options to make the list less imposing.
1245 # This message is too long to be a string in the A/UX 3.1 sh.
1246 cat <<_ACEOF
1247 \`configure' configures python 2.6 to adapt to many kinds of systems.
1249 Usage: $0 [OPTION]... [VAR=VALUE]...
1251 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1252 VAR=VALUE. See below for descriptions of some of the useful variables.
1254 Defaults for the options are specified in brackets.
1256 Configuration:
1257 -h, --help display this help and exit
1258 --help=short display options specific to this package
1259 --help=recursive display the short help of all the included packages
1260 -V, --version display version information and exit
1261 -q, --quiet, --silent do not print \`checking...' messages
1262 --cache-file=FILE cache test results in FILE [disabled]
1263 -C, --config-cache alias for \`--cache-file=config.cache'
1264 -n, --no-create do not create output files
1265 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1267 Installation directories:
1268 --prefix=PREFIX install architecture-independent files in PREFIX
1269 [$ac_default_prefix]
1270 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1271 [PREFIX]
1273 By default, \`make install' will install all the files in
1274 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1275 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1276 for instance \`--prefix=\$HOME'.
1278 For better control, use the options below.
1280 Fine tuning of the installation directories:
1281 --bindir=DIR user executables [EPREFIX/bin]
1282 --sbindir=DIR system admin executables [EPREFIX/sbin]
1283 --libexecdir=DIR program executables [EPREFIX/libexec]
1284 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1285 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1286 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1287 --libdir=DIR object code libraries [EPREFIX/lib]
1288 --includedir=DIR C header files [PREFIX/include]
1289 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1290 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1291 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1292 --infodir=DIR info documentation [DATAROOTDIR/info]
1293 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1294 --mandir=DIR man documentation [DATAROOTDIR/man]
1295 --docdir=DIR documentation root [DATAROOTDIR/doc/python]
1296 --htmldir=DIR html documentation [DOCDIR]
1297 --dvidir=DIR dvi documentation [DOCDIR]
1298 --pdfdir=DIR pdf documentation [DOCDIR]
1299 --psdir=DIR ps documentation [DOCDIR]
1300 _ACEOF
1302 cat <<\_ACEOF
1303 _ACEOF
1306 if test -n "$ac_init_help"; then
1307 case $ac_init_help in
1308 short | recursive ) echo "Configuration of python 2.6:";;
1309 esac
1310 cat <<\_ACEOF
1312 Optional Features:
1313 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1314 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1315 --enable-universalsdk[=SDKDIR]
1316 Build against Mac OS X 10.4u SDK (ppc/i386)
1317 --enable-framework[=INSTALLDIR]
1318 Build (MacOSX|Darwin) framework
1319 --enable-shared disable/enable building shared python library
1320 --enable-profiling enable C-level code profiling
1321 --enable-toolbox-glue disable/enable MacOSX glue code for extensions
1322 --enable-ipv6 Enable ipv6 (with ipv4) support
1323 --disable-ipv6 Disable ipv6 support
1324 --enable-unicode[=ucs[24]]
1325 Enable Unicode strings (default is yes)
1327 Optional Packages:
1328 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1329 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1330 --without-gcc never use gcc
1331 --with-cxx-main=<compiler>
1332 compile main() and link python executable with C++
1333 compiler
1334 --with-suffix=.exe set executable suffix
1335 --with-pydebug build with Py_DEBUG defined
1336 --with-libs='lib1 ...' link against additional libs
1337 --with-system-ffi build _ctypes module using an installed ffi library
1338 --with-signal-module disable/enable signal module
1339 --with-dec-threads use DEC Alpha/OSF1 thread-safe libraries
1340 --with(out)-threads[=DIRECTORY]
1341 disable/enable thread support
1342 --with(out)-thread[=DIRECTORY]
1343 deprecated; use --with(out)-threads
1344 --with-pth use GNU pth threading libraries
1345 --with(out)-doc-strings disable/enable documentation strings
1346 --with(out)-tsc enable/disable timestamp counter profile
1347 --with(out)-pymalloc disable/enable specialized mallocs
1348 --with-wctype-functions use wctype.h functions
1349 --with-fpectl enable SIGFPE catching
1350 --with-libm=STRING math library
1351 --with-libc=STRING C library
1353 Some influential environment variables:
1354 CC C compiler command
1355 CFLAGS C compiler flags
1356 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1357 nonstandard directory <lib dir>
1358 LIBS libraries to pass to the linker, e.g. -l<library>
1359 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1360 you have headers in a nonstandard directory <include dir>
1361 CPP C preprocessor
1363 Use these variables to override the choices made by `configure' or to help
1364 it to find libraries and programs with nonstandard names/locations.
1366 Report bugs to <http://www.python.org/python-bugs>.
1367 _ACEOF
1368 ac_status=$?
1371 if test "$ac_init_help" = "recursive"; then
1372 # If there are subdirs, report their specific --help.
1373 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1374 test -d "$ac_dir" || continue
1375 ac_builddir=.
1377 case "$ac_dir" in
1378 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1380 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1381 # A ".." for each directory in $ac_dir_suffix.
1382 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1383 case $ac_top_builddir_sub in
1384 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1385 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1386 esac ;;
1387 esac
1388 ac_abs_top_builddir=$ac_pwd
1389 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1390 # for backward compatibility:
1391 ac_top_builddir=$ac_top_build_prefix
1393 case $srcdir in
1394 .) # We are building in place.
1395 ac_srcdir=.
1396 ac_top_srcdir=$ac_top_builddir_sub
1397 ac_abs_top_srcdir=$ac_pwd ;;
1398 [\\/]* | ?:[\\/]* ) # Absolute name.
1399 ac_srcdir=$srcdir$ac_dir_suffix;
1400 ac_top_srcdir=$srcdir
1401 ac_abs_top_srcdir=$srcdir ;;
1402 *) # Relative name.
1403 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1404 ac_top_srcdir=$ac_top_build_prefix$srcdir
1405 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1406 esac
1407 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1409 cd "$ac_dir" || { ac_status=$?; continue; }
1410 # Check for guested configure.
1411 if test -f "$ac_srcdir/configure.gnu"; then
1412 echo &&
1413 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1414 elif test -f "$ac_srcdir/configure"; then
1415 echo &&
1416 $SHELL "$ac_srcdir/configure" --help=recursive
1417 else
1418 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1419 fi || ac_status=$?
1420 cd "$ac_pwd" || { ac_status=$?; break; }
1421 done
1424 test -n "$ac_init_help" && exit $ac_status
1425 if $ac_init_version; then
1426 cat <<\_ACEOF
1427 python configure 2.6
1428 generated by GNU Autoconf 2.61
1430 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1431 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1432 This configure script is free software; the Free Software Foundation
1433 gives unlimited permission to copy, distribute and modify it.
1434 _ACEOF
1435 exit
1437 cat >config.log <<_ACEOF
1438 This file contains any messages produced by compilers while
1439 running configure, to aid debugging if configure makes a mistake.
1441 It was created by python $as_me 2.6, which was
1442 generated by GNU Autoconf 2.61. Invocation command line was
1444 $ $0 $@
1446 _ACEOF
1447 exec 5>>config.log
1449 cat <<_ASUNAME
1450 ## --------- ##
1451 ## Platform. ##
1452 ## --------- ##
1454 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1455 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1456 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1457 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1458 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1460 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1461 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1463 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1464 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1465 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1466 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1467 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1468 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1469 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1471 _ASUNAME
1473 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1474 for as_dir in $PATH
1476 IFS=$as_save_IFS
1477 test -z "$as_dir" && as_dir=.
1478 echo "PATH: $as_dir"
1479 done
1480 IFS=$as_save_IFS
1482 } >&5
1484 cat >&5 <<_ACEOF
1487 ## ----------- ##
1488 ## Core tests. ##
1489 ## ----------- ##
1491 _ACEOF
1494 # Keep a trace of the command line.
1495 # Strip out --no-create and --no-recursion so they do not pile up.
1496 # Strip out --silent because we don't want to record it for future runs.
1497 # Also quote any args containing shell meta-characters.
1498 # Make two passes to allow for proper duplicate-argument suppression.
1499 ac_configure_args=
1500 ac_configure_args0=
1501 ac_configure_args1=
1502 ac_must_keep_next=false
1503 for ac_pass in 1 2
1505 for ac_arg
1507 case $ac_arg in
1508 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1509 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1510 | -silent | --silent | --silen | --sile | --sil)
1511 continue ;;
1512 *\'*)
1513 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1514 esac
1515 case $ac_pass in
1516 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1518 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1519 if test $ac_must_keep_next = true; then
1520 ac_must_keep_next=false # Got value, back to normal.
1521 else
1522 case $ac_arg in
1523 *=* | --config-cache | -C | -disable-* | --disable-* \
1524 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1525 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1526 | -with-* | --with-* | -without-* | --without-* | --x)
1527 case "$ac_configure_args0 " in
1528 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1529 esac
1531 -* ) ac_must_keep_next=true ;;
1532 esac
1534 ac_configure_args="$ac_configure_args '$ac_arg'"
1536 esac
1537 done
1538 done
1539 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1540 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1542 # When interrupted or exit'd, cleanup temporary files, and complete
1543 # config.log. We remove comments because anyway the quotes in there
1544 # would cause problems or look ugly.
1545 # WARNING: Use '\'' to represent an apostrophe within the trap.
1546 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1547 trap 'exit_status=$?
1548 # Save into config.log some information that might help in debugging.
1550 echo
1552 cat <<\_ASBOX
1553 ## ---------------- ##
1554 ## Cache variables. ##
1555 ## ---------------- ##
1556 _ASBOX
1557 echo
1558 # The following way of writing the cache mishandles newlines in values,
1560 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1561 eval ac_val=\$$ac_var
1562 case $ac_val in #(
1563 *${as_nl}*)
1564 case $ac_var in #(
1565 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1566 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1567 esac
1568 case $ac_var in #(
1569 _ | IFS | as_nl) ;; #(
1570 *) $as_unset $ac_var ;;
1571 esac ;;
1572 esac
1573 done
1574 (set) 2>&1 |
1575 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1576 *${as_nl}ac_space=\ *)
1577 sed -n \
1578 "s/'\''/'\''\\\\'\'''\''/g;
1579 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1580 ;; #(
1582 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1584 esac |
1585 sort
1587 echo
1589 cat <<\_ASBOX
1590 ## ----------------- ##
1591 ## Output variables. ##
1592 ## ----------------- ##
1593 _ASBOX
1594 echo
1595 for ac_var in $ac_subst_vars
1597 eval ac_val=\$$ac_var
1598 case $ac_val in
1599 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1600 esac
1601 echo "$ac_var='\''$ac_val'\''"
1602 done | sort
1603 echo
1605 if test -n "$ac_subst_files"; then
1606 cat <<\_ASBOX
1607 ## ------------------- ##
1608 ## File substitutions. ##
1609 ## ------------------- ##
1610 _ASBOX
1611 echo
1612 for ac_var in $ac_subst_files
1614 eval ac_val=\$$ac_var
1615 case $ac_val in
1616 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1617 esac
1618 echo "$ac_var='\''$ac_val'\''"
1619 done | sort
1620 echo
1623 if test -s confdefs.h; then
1624 cat <<\_ASBOX
1625 ## ----------- ##
1626 ## confdefs.h. ##
1627 ## ----------- ##
1628 _ASBOX
1629 echo
1630 cat confdefs.h
1631 echo
1633 test "$ac_signal" != 0 &&
1634 echo "$as_me: caught signal $ac_signal"
1635 echo "$as_me: exit $exit_status"
1636 } >&5
1637 rm -f core *.core core.conftest.* &&
1638 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1639 exit $exit_status
1641 for ac_signal in 1 2 13 15; do
1642 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1643 done
1644 ac_signal=0
1646 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1647 rm -f -r conftest* confdefs.h
1649 # Predefined preprocessor variables.
1651 cat >>confdefs.h <<_ACEOF
1652 #define PACKAGE_NAME "$PACKAGE_NAME"
1653 _ACEOF
1656 cat >>confdefs.h <<_ACEOF
1657 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1658 _ACEOF
1661 cat >>confdefs.h <<_ACEOF
1662 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1663 _ACEOF
1666 cat >>confdefs.h <<_ACEOF
1667 #define PACKAGE_STRING "$PACKAGE_STRING"
1668 _ACEOF
1671 cat >>confdefs.h <<_ACEOF
1672 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1673 _ACEOF
1676 # Let the site file select an alternate cache file if it wants to.
1677 # Prefer explicitly selected file to automatically selected ones.
1678 if test -n "$CONFIG_SITE"; then
1679 set x "$CONFIG_SITE"
1680 elif test "x$prefix" != xNONE; then
1681 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1682 else
1683 set x "$ac_default_prefix/share/config.site" \
1684 "$ac_default_prefix/etc/config.site"
1686 shift
1687 for ac_site_file
1689 if test -r "$ac_site_file"; then
1690 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1691 echo "$as_me: loading site script $ac_site_file" >&6;}
1692 sed 's/^/| /' "$ac_site_file" >&5
1693 . "$ac_site_file"
1695 done
1697 if test -r "$cache_file"; then
1698 # Some versions of bash will fail to source /dev/null (special
1699 # files actually), so we avoid doing that.
1700 if test -f "$cache_file"; then
1701 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1702 echo "$as_me: loading cache $cache_file" >&6;}
1703 case $cache_file in
1704 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1705 *) . "./$cache_file";;
1706 esac
1708 else
1709 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1710 echo "$as_me: creating cache $cache_file" >&6;}
1711 >$cache_file
1714 # Check that the precious variables saved in the cache have kept the same
1715 # value.
1716 ac_cache_corrupted=false
1717 for ac_var in $ac_precious_vars; do
1718 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1719 eval ac_new_set=\$ac_env_${ac_var}_set
1720 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1721 eval ac_new_val=\$ac_env_${ac_var}_value
1722 case $ac_old_set,$ac_new_set in
1723 set,)
1724 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1725 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1726 ac_cache_corrupted=: ;;
1727 ,set)
1728 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1729 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1730 ac_cache_corrupted=: ;;
1731 ,);;
1733 if test "x$ac_old_val" != "x$ac_new_val"; then
1734 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1735 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1736 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1737 echo "$as_me: former value: $ac_old_val" >&2;}
1738 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1739 echo "$as_me: current value: $ac_new_val" >&2;}
1740 ac_cache_corrupted=:
1741 fi;;
1742 esac
1743 # Pass precious variables to config.status.
1744 if test "$ac_new_set" = set; then
1745 case $ac_new_val in
1746 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1747 *) ac_arg=$ac_var=$ac_new_val ;;
1748 esac
1749 case " $ac_configure_args " in
1750 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1751 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1752 esac
1754 done
1755 if $ac_cache_corrupted; then
1756 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1757 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1758 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1759 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1760 { (exit 1); exit 1; }; }
1787 ac_ext=c
1788 ac_cpp='$CPP $CPPFLAGS'
1789 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1790 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1791 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1795 ac_config_headers="$ac_config_headers pyconfig.h"
1803 # We don't use PACKAGE_ variables, and they cause conflicts
1804 # with other autoconf-based packages that include Python.h
1805 grep -v 'define PACKAGE_' <confdefs.h >confdefs.h.new
1806 rm confdefs.h
1807 mv confdefs.h.new confdefs.h
1810 VERSION=2.6
1813 SOVERSION=1.0
1815 # The later defininition of _XOPEN_SOURCE disables certain features
1816 # on Linux, so we need _GNU_SOURCE to re-enable them (makedev, tm_zone).
1818 cat >>confdefs.h <<\_ACEOF
1819 #define _GNU_SOURCE 1
1820 _ACEOF
1823 # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables
1824 # certain features on NetBSD, so we need _NETBSD_SOURCE to re-enable
1825 # them.
1827 cat >>confdefs.h <<\_ACEOF
1828 #define _NETBSD_SOURCE 1
1829 _ACEOF
1832 # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables
1833 # certain features on FreeBSD, so we need __BSD_VISIBLE to re-enable
1834 # them.
1836 cat >>confdefs.h <<\_ACEOF
1837 #define __BSD_VISIBLE 1
1838 _ACEOF
1841 # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables
1842 # u_int on Irix 5.3. Defining _BSD_TYPES brings it back.
1844 cat >>confdefs.h <<\_ACEOF
1845 #define _BSD_TYPES 1
1846 _ACEOF
1849 define_xopen_source=yes
1851 # Arguments passed to configure.
1853 CONFIG_ARGS="$ac_configure_args"
1855 # Check whether --enable-universalsdk was given.
1856 if test "${enable_universalsdk+set}" = set; then
1857 enableval=$enable_universalsdk;
1858 case $enableval in
1859 yes)
1860 enableval=/Developer/SDKs/MacOSX10.4u.sdk
1862 esac
1863 case $enableval in
1865 UNIVERSALSDK=
1866 enable_universalsdk=
1869 UNIVERSALSDK=$enableval
1871 esac
1873 else
1875 UNIVERSALSDK=
1876 enable_universalsdk=
1882 # Check whether --enable-framework was given.
1883 if test "${enable_framework+set}" = set; then
1884 enableval=$enable_framework;
1885 case $enableval in
1886 yes)
1887 enableval=/Library/Frameworks
1888 esac
1889 case $enableval in
1891 PYTHONFRAMEWORK=
1892 PYTHONFRAMEWORKDIR=no-framework
1893 PYTHONFRAMEWORKPREFIX=
1894 PYTHONFRAMEWORKINSTALLDIR=
1895 FRAMEWORKINSTALLFIRST=
1896 FRAMEWORKINSTALLLAST=
1897 FRAMEWORKALTINSTALLFIRST=
1898 FRAMEWORKALTINSTALLLAST=
1899 if test "x${prefix}" = "xNONE"; then
1900 FRAMEWORKUNIXTOOLSPREFIX="${ac_default_prefix}"
1901 else
1902 FRAMEWORKUNIXTOOLSPREFIX="${prefix}"
1904 enable_framework=
1907 PYTHONFRAMEWORK=Python
1908 PYTHONFRAMEWORKDIR=Python.framework
1909 PYTHONFRAMEWORKPREFIX=$enableval
1910 PYTHONFRAMEWORKINSTALLDIR=$PYTHONFRAMEWORKPREFIX/$PYTHONFRAMEWORKDIR
1911 FRAMEWORKINSTALLFIRST="frameworkinstallstructure"
1912 FRAMEWORKINSTALLLAST="frameworkinstallmaclib frameworkinstallapps frameworkinstallunixtools"
1913 FRAMEWORKALTINSTALLFIRST="${FRAMEWORKINSTALLFIRST} bininstall maninstall"
1914 FRAMEWORKALTINSTALLLAST="frameworkinstallmaclib frameworkinstallapps frameworkaltinstallunixtools"
1915 if test "x${prefix}" = "xNONE" ; then
1916 FRAMEWORKUNIXTOOLSPREFIX="${ac_default_prefix}"
1917 else
1918 FRAMEWORKUNIXTOOLSPREFIX="${prefix}"
1920 prefix=$PYTHONFRAMEWORKINSTALLDIR/Versions/$VERSION
1922 # Add makefiles for Mac specific code to the list of output
1923 # files:
1924 ac_config_files="$ac_config_files Mac/Makefile"
1926 ac_config_files="$ac_config_files Mac/PythonLauncher/Makefile"
1928 ac_config_files="$ac_config_files Mac/IDLE/Makefile"
1930 esac
1932 else
1934 PYTHONFRAMEWORK=
1935 PYTHONFRAMEWORKDIR=no-framework
1936 PYTHONFRAMEWORKPREFIX=
1937 PYTHONFRAMEWORKINSTALLDIR=
1938 FRAMEWORKINSTALLFIRST=
1939 FRAMEWORKINSTALLLAST=
1940 FRAMEWORKALTINSTALLFIRST=
1941 FRAMEWORKALTINSTALLLAST=
1942 if test "x${prefix}" = "xNONE" ; then
1943 FRAMEWORKUNIXTOOLSPREFIX="${ac_default_prefix}"
1944 else
1945 FRAMEWORKUNIXTOOLSPREFIX="${prefix}"
1947 enable_framework=
1961 ##AC_ARG_WITH(dyld,
1962 ## AC_HELP_STRING(--with-dyld,
1963 ## Use (OpenStep|Rhapsody) dynamic linker))
1965 # Set name for machine-dependent library files
1967 { echo "$as_me:$LINENO: checking MACHDEP" >&5
1968 echo $ECHO_N "checking MACHDEP... $ECHO_C" >&6; }
1969 if test -z "$MACHDEP"
1970 then
1971 ac_sys_system=`uname -s`
1972 if test "$ac_sys_system" = "AIX" -o "$ac_sys_system" = "Monterey64" \
1973 -o "$ac_sys_system" = "UnixWare" -o "$ac_sys_system" = "OpenUNIX"; then
1974 ac_sys_release=`uname -v`
1975 else
1976 ac_sys_release=`uname -r`
1978 ac_md_system=`echo $ac_sys_system |
1979 tr -d '/ ' | tr '[A-Z]' '[a-z]'`
1980 ac_md_release=`echo $ac_sys_release |
1981 tr -d '/ ' | sed 's/^[A-Z]\.//' | sed 's/\..*//'`
1982 MACHDEP="$ac_md_system$ac_md_release"
1984 case $MACHDEP in
1985 cygwin*) MACHDEP="cygwin";;
1986 darwin*) MACHDEP="darwin";;
1987 atheos*) MACHDEP="atheos";;
1988 irix646) MACHDEP="irix6";;
1989 '') MACHDEP="unknown";;
1990 esac
1993 # Some systems cannot stand _XOPEN_SOURCE being defined at all; they
1994 # disable features if it is defined, without any means to access these
1995 # features as extensions. For these systems, we skip the definition of
1996 # _XOPEN_SOURCE. Before adding a system to the list to gain access to
1997 # some feature, make sure there is no alternative way to access this
1998 # feature. Also, when using wildcards, make sure you have verified the
1999 # need for not defining _XOPEN_SOURCE on all systems matching the
2000 # wildcard, and that the wildcard does not include future systems
2001 # (which may remove their limitations).
2002 case $ac_sys_system/$ac_sys_release in
2003 # On OpenBSD, select(2) is not available if _XOPEN_SOURCE is defined,
2004 # even though select is a POSIX function. Reported by J. Ribbens.
2005 # Reconfirmed for OpenBSD 3.3 by Zachary Hamm, for 3.4 by Jason Ish.
2006 OpenBSD/2.* | OpenBSD/3.[0123456789] | OpenBSD/4.[0])
2007 define_xopen_source=no
2008 # OpenBSD undoes our definition of __BSD_VISIBLE if _XOPEN_SOURCE is
2009 # also defined. This can be overridden by defining _BSD_SOURCE
2010 # As this has a different meaning on Linux, only define it on OpenBSD
2012 cat >>confdefs.h <<\_ACEOF
2013 #define _BSD_SOURCE 1
2014 _ACEOF
2017 # Defining _XOPEN_SOURCE on NetBSD version prior to the introduction of
2018 # _NETBSD_SOURCE disables certain features (eg. setgroups). Reported by
2019 # Marc Recht
2020 NetBSD/1.5 | NetBSD/1.5.* | NetBSD/1.6 | NetBSD/1.6.* | NetBSD/1.6A-S)
2021 define_xopen_source=no;;
2022 # On Solaris 2.6, sys/wait.h is inconsistent in the usage
2023 # of union __?sigval. Reported by Stuart Bishop.
2024 SunOS/5.6)
2025 define_xopen_source=no;;
2026 # On UnixWare 7, u_long is never defined with _XOPEN_SOURCE,
2027 # but used in /usr/include/netinet/tcp.h. Reported by Tim Rice.
2028 # Reconfirmed for 7.1.4 by Martin v. Loewis.
2029 OpenUNIX/8.0.0| UnixWare/7.1.[0-4])
2030 define_xopen_source=no;;
2031 # On OpenServer 5, u_short is never defined with _XOPEN_SOURCE,
2032 # but used in struct sockaddr.sa_family. Reported by Tim Rice.
2033 SCO_SV/3.2)
2034 define_xopen_source=no;;
2035 # On FreeBSD 4.8 and MacOS X 10.2, a bug in ncurses.h means that
2036 # it craps out if _XOPEN_EXTENDED_SOURCE is defined. Apparently,
2037 # this is fixed in 10.3, which identifies itself as Darwin/7.*
2038 # This should hopefully be fixed in FreeBSD 4.9
2039 FreeBSD/4.8* | Darwin/6* )
2040 define_xopen_source=no;;
2041 # On AIX 4 and 5.1, mbstate_t is defined only when _XOPEN_SOURCE == 500 but
2042 # used in wcsnrtombs() and mbsnrtowcs() even if _XOPEN_SOURCE is not defined
2043 # or has another value. By not (re)defining it, the defaults come in place.
2044 AIX/4)
2045 define_xopen_source=no;;
2046 AIX/5)
2047 if test `uname -r` -eq 1; then
2048 define_xopen_source=no
2051 # On Mac OS X 10.4, defining _POSIX_C_SOURCE or _XOPEN_SOURCE
2052 # disables platform specific features beyond repair.
2053 # On Mac OS X 10.3, defining _POSIX_C_SOURCE or _XOPEN_SOURCE
2054 # has no effect, don't bother defining them
2055 Darwin/[789].*)
2056 define_xopen_source=no
2059 esac
2061 if test $define_xopen_source = yes
2062 then
2063 # On Solaris w/ g++ it appears that _XOPEN_SOURCE has to be
2064 # defined precisely as g++ defines it
2065 # Furthermore, on Solaris 10, XPG6 requires the use of a C99
2066 # compiler
2067 case $ac_sys_system/$ac_sys_release in
2068 SunOS/5.8|SunOS/5.9|SunOS/5.10)
2070 cat >>confdefs.h <<\_ACEOF
2071 #define _XOPEN_SOURCE 500
2072 _ACEOF
2077 cat >>confdefs.h <<\_ACEOF
2078 #define _XOPEN_SOURCE 600
2079 _ACEOF
2082 esac
2084 # On Tru64 Unix 4.0F, defining _XOPEN_SOURCE also requires
2085 # definition of _XOPEN_SOURCE_EXTENDED and _POSIX_C_SOURCE, or else
2086 # several APIs are not declared. Since this is also needed in some
2087 # cases for HP-UX, we define it globally.
2088 # except for Solaris 10, where it must not be defined,
2089 # as it implies XPG4.2
2090 case $ac_sys_system/$ac_sys_release in
2091 SunOS/5.10)
2095 cat >>confdefs.h <<\_ACEOF
2096 #define _XOPEN_SOURCE_EXTENDED 1
2097 _ACEOF
2100 esac
2103 cat >>confdefs.h <<\_ACEOF
2104 #define _POSIX_C_SOURCE 200112L
2105 _ACEOF
2111 # SGI compilers allow the specification of the both the ABI and the
2112 # ISA on the command line. Depending on the values of these switches,
2113 # different and often incompatable code will be generated.
2115 # The SGI_ABI variable can be used to modify the CC and LDFLAGS and
2116 # thus supply support for various ABI/ISA combinations. The MACHDEP
2117 # variable is also adjusted.
2120 if test ! -z "$SGI_ABI"
2121 then
2122 CC="cc $SGI_ABI"
2123 LDFLAGS="$SGI_ABI $LDFLAGS"
2124 MACHDEP=`echo "${MACHDEP}${SGI_ABI}" | sed 's/ *//g'`
2126 { echo "$as_me:$LINENO: result: $MACHDEP" >&5
2127 echo "${ECHO_T}$MACHDEP" >&6; }
2129 # And add extra plat-mac for darwin
2132 { echo "$as_me:$LINENO: checking EXTRAPLATDIR" >&5
2133 echo $ECHO_N "checking EXTRAPLATDIR... $ECHO_C" >&6; }
2134 if test -z "$EXTRAPLATDIR"
2135 then
2136 case $MACHDEP in
2137 darwin)
2138 EXTRAPLATDIR="\$(PLATMACDIRS)"
2139 EXTRAMACHDEPPATH="\$(PLATMACPATH)"
2142 EXTRAPLATDIR=""
2143 EXTRAMACHDEPPATH=""
2145 esac
2147 { echo "$as_me:$LINENO: result: $EXTRAPLATDIR" >&5
2148 echo "${ECHO_T}$EXTRAPLATDIR" >&6; }
2150 # Record the configure-time value of MACOSX_DEPLOYMENT_TARGET,
2151 # it may influence the way we can build extensions, so distutils
2152 # needs to check it
2155 CONFIGURE_MACOSX_DEPLOYMENT_TARGET=
2156 EXPORT_MACOSX_DEPLOYMENT_TARGET='#'
2158 # checks for alternative programs
2160 # compiler flags are generated in two sets, BASECFLAGS and OPT. OPT is just
2161 # for debug/optimization stuff. BASECFLAGS is for flags that are required
2162 # just to get things to compile and link. Users are free to override OPT
2163 # when running configure or make. The build should not break if they do.
2164 # BASECFLAGS should generally not be messed with, however.
2166 # XXX shouldn't some/most/all of this code be merged with the stuff later
2167 # on that fiddles with OPT and BASECFLAGS?
2168 { echo "$as_me:$LINENO: checking for --without-gcc" >&5
2169 echo $ECHO_N "checking for --without-gcc... $ECHO_C" >&6; }
2171 # Check whether --with-gcc was given.
2172 if test "${with_gcc+set}" = set; then
2173 withval=$with_gcc;
2174 case $withval in
2175 no) CC=cc
2176 without_gcc=yes;;
2177 yes) CC=gcc
2178 without_gcc=no;;
2179 *) CC=$withval
2180 without_gcc=$withval;;
2181 esac
2182 else
2184 case $ac_sys_system in
2185 AIX*) CC=cc_r
2186 without_gcc=;;
2187 BeOS*)
2188 case $BE_HOST_CPU in
2189 ppc)
2190 CC=mwcc
2191 without_gcc=yes
2192 BASECFLAGS="$BASECFLAGS -export pragma"
2193 OPT="$OPT -O"
2194 LDFLAGS="$LDFLAGS -nodup"
2196 x86)
2197 CC=gcc
2198 without_gcc=no
2199 OPT="$OPT -O"
2202 { { echo "$as_me:$LINENO: error: Unknown BeOS platform \"$BE_HOST_CPU\"" >&5
2203 echo "$as_me: error: Unknown BeOS platform \"$BE_HOST_CPU\"" >&2;}
2204 { (exit 1); exit 1; }; }
2206 esac
2207 AR="\$(srcdir)/Modules/ar_beos"
2208 RANLIB=:
2210 Monterey*)
2211 RANLIB=:
2212 without_gcc=;;
2213 *) without_gcc=no;;
2214 esac
2217 { echo "$as_me:$LINENO: result: $without_gcc" >&5
2218 echo "${ECHO_T}$without_gcc" >&6; }
2220 # If the user switches compilers, we can't believe the cache
2221 if test ! -z "$ac_cv_prog_CC" -a ! -z "$CC" -a "$CC" != "$ac_cv_prog_CC"
2222 then
2223 { { echo "$as_me:$LINENO: error: cached CC is different -- throw away $cache_file
2224 (it is also a good idea to do 'make clean' before compiling)" >&5
2225 echo "$as_me: error: cached CC is different -- throw away $cache_file
2226 (it is also a good idea to do 'make clean' before compiling)" >&2;}
2227 { (exit 1); exit 1; }; }
2230 ac_ext=c
2231 ac_cpp='$CPP $CPPFLAGS'
2232 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2233 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2234 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2235 if test -n "$ac_tool_prefix"; then
2236 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2237 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2238 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2239 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2240 if test "${ac_cv_prog_CC+set}" = set; then
2241 echo $ECHO_N "(cached) $ECHO_C" >&6
2242 else
2243 if test -n "$CC"; then
2244 ac_cv_prog_CC="$CC" # Let the user override the test.
2245 else
2246 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2247 for as_dir in $PATH
2249 IFS=$as_save_IFS
2250 test -z "$as_dir" && as_dir=.
2251 for ac_exec_ext in '' $ac_executable_extensions; do
2252 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2253 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2254 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2255 break 2
2257 done
2258 done
2259 IFS=$as_save_IFS
2263 CC=$ac_cv_prog_CC
2264 if test -n "$CC"; then
2265 { echo "$as_me:$LINENO: result: $CC" >&5
2266 echo "${ECHO_T}$CC" >&6; }
2267 else
2268 { echo "$as_me:$LINENO: result: no" >&5
2269 echo "${ECHO_T}no" >&6; }
2274 if test -z "$ac_cv_prog_CC"; then
2275 ac_ct_CC=$CC
2276 # Extract the first word of "gcc", so it can be a program name with args.
2277 set dummy gcc; ac_word=$2
2278 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2279 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2280 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2281 echo $ECHO_N "(cached) $ECHO_C" >&6
2282 else
2283 if test -n "$ac_ct_CC"; then
2284 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2285 else
2286 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2287 for as_dir in $PATH
2289 IFS=$as_save_IFS
2290 test -z "$as_dir" && as_dir=.
2291 for ac_exec_ext in '' $ac_executable_extensions; do
2292 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2293 ac_cv_prog_ac_ct_CC="gcc"
2294 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2295 break 2
2297 done
2298 done
2299 IFS=$as_save_IFS
2303 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2304 if test -n "$ac_ct_CC"; then
2305 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2306 echo "${ECHO_T}$ac_ct_CC" >&6; }
2307 else
2308 { echo "$as_me:$LINENO: result: no" >&5
2309 echo "${ECHO_T}no" >&6; }
2312 if test "x$ac_ct_CC" = x; then
2313 CC=""
2314 else
2315 case $cross_compiling:$ac_tool_warned in
2316 yes:)
2317 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2318 whose name does not start with the host triplet. If you think this
2319 configuration is useful to you, please write to autoconf@gnu.org." >&5
2320 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2321 whose name does not start with the host triplet. If you think this
2322 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2323 ac_tool_warned=yes ;;
2324 esac
2325 CC=$ac_ct_CC
2327 else
2328 CC="$ac_cv_prog_CC"
2331 if test -z "$CC"; then
2332 if test -n "$ac_tool_prefix"; then
2333 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2334 set dummy ${ac_tool_prefix}cc; 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}cc"
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; }
2372 if test -z "$CC"; then
2373 # Extract the first word of "cc", so it can be a program name with args.
2374 set dummy cc; 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_CC+set}" = set; then
2378 echo $ECHO_N "(cached) $ECHO_C" >&6
2379 else
2380 if test -n "$CC"; then
2381 ac_cv_prog_CC="$CC" # Let the user override the test.
2382 else
2383 ac_prog_rejected=no
2384 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2385 for as_dir in $PATH
2387 IFS=$as_save_IFS
2388 test -z "$as_dir" && as_dir=.
2389 for ac_exec_ext in '' $ac_executable_extensions; do
2390 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2391 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2392 ac_prog_rejected=yes
2393 continue
2395 ac_cv_prog_CC="cc"
2396 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2397 break 2
2399 done
2400 done
2401 IFS=$as_save_IFS
2403 if test $ac_prog_rejected = yes; then
2404 # We found a bogon in the path, so make sure we never use it.
2405 set dummy $ac_cv_prog_CC
2406 shift
2407 if test $# != 0; then
2408 # We chose a different compiler from the bogus one.
2409 # However, it has the same basename, so the bogon will be chosen
2410 # first if we set CC to just the basename; use the full file name.
2411 shift
2412 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2417 CC=$ac_cv_prog_CC
2418 if test -n "$CC"; then
2419 { echo "$as_me:$LINENO: result: $CC" >&5
2420 echo "${ECHO_T}$CC" >&6; }
2421 else
2422 { echo "$as_me:$LINENO: result: no" >&5
2423 echo "${ECHO_T}no" >&6; }
2428 if test -z "$CC"; then
2429 if test -n "$ac_tool_prefix"; then
2430 for ac_prog in cl.exe
2432 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2433 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2434 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2435 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2436 if test "${ac_cv_prog_CC+set}" = set; then
2437 echo $ECHO_N "(cached) $ECHO_C" >&6
2438 else
2439 if test -n "$CC"; then
2440 ac_cv_prog_CC="$CC" # Let the user override the test.
2441 else
2442 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2443 for as_dir in $PATH
2445 IFS=$as_save_IFS
2446 test -z "$as_dir" && as_dir=.
2447 for ac_exec_ext in '' $ac_executable_extensions; do
2448 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2449 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2450 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2451 break 2
2453 done
2454 done
2455 IFS=$as_save_IFS
2459 CC=$ac_cv_prog_CC
2460 if test -n "$CC"; then
2461 { echo "$as_me:$LINENO: result: $CC" >&5
2462 echo "${ECHO_T}$CC" >&6; }
2463 else
2464 { echo "$as_me:$LINENO: result: no" >&5
2465 echo "${ECHO_T}no" >&6; }
2469 test -n "$CC" && break
2470 done
2472 if test -z "$CC"; then
2473 ac_ct_CC=$CC
2474 for ac_prog in cl.exe
2476 # Extract the first word of "$ac_prog", so it can be a program name with args.
2477 set dummy $ac_prog; ac_word=$2
2478 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2479 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2480 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2481 echo $ECHO_N "(cached) $ECHO_C" >&6
2482 else
2483 if test -n "$ac_ct_CC"; then
2484 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2485 else
2486 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2487 for as_dir in $PATH
2489 IFS=$as_save_IFS
2490 test -z "$as_dir" && as_dir=.
2491 for ac_exec_ext in '' $ac_executable_extensions; do
2492 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2493 ac_cv_prog_ac_ct_CC="$ac_prog"
2494 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2495 break 2
2497 done
2498 done
2499 IFS=$as_save_IFS
2503 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2504 if test -n "$ac_ct_CC"; then
2505 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2506 echo "${ECHO_T}$ac_ct_CC" >&6; }
2507 else
2508 { echo "$as_me:$LINENO: result: no" >&5
2509 echo "${ECHO_T}no" >&6; }
2513 test -n "$ac_ct_CC" && break
2514 done
2516 if test "x$ac_ct_CC" = x; then
2517 CC=""
2518 else
2519 case $cross_compiling:$ac_tool_warned in
2520 yes:)
2521 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2522 whose name does not start with the host triplet. If you think this
2523 configuration is useful to you, please write to autoconf@gnu.org." >&5
2524 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2525 whose name does not start with the host triplet. If you think this
2526 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2527 ac_tool_warned=yes ;;
2528 esac
2529 CC=$ac_ct_CC
2536 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2537 See \`config.log' for more details." >&5
2538 echo "$as_me: error: no acceptable C compiler found in \$PATH
2539 See \`config.log' for more details." >&2;}
2540 { (exit 1); exit 1; }; }
2542 # Provide some information about the compiler.
2543 echo "$as_me:$LINENO: checking for C compiler version" >&5
2544 ac_compiler=`set X $ac_compile; echo $2`
2545 { (ac_try="$ac_compiler --version >&5"
2546 case "(($ac_try" in
2547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2548 *) ac_try_echo=$ac_try;;
2549 esac
2550 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2551 (eval "$ac_compiler --version >&5") 2>&5
2552 ac_status=$?
2553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2554 (exit $ac_status); }
2555 { (ac_try="$ac_compiler -v >&5"
2556 case "(($ac_try" in
2557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2558 *) ac_try_echo=$ac_try;;
2559 esac
2560 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2561 (eval "$ac_compiler -v >&5") 2>&5
2562 ac_status=$?
2563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2564 (exit $ac_status); }
2565 { (ac_try="$ac_compiler -V >&5"
2566 case "(($ac_try" in
2567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2568 *) ac_try_echo=$ac_try;;
2569 esac
2570 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2571 (eval "$ac_compiler -V >&5") 2>&5
2572 ac_status=$?
2573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2574 (exit $ac_status); }
2576 cat >conftest.$ac_ext <<_ACEOF
2577 /* confdefs.h. */
2578 _ACEOF
2579 cat confdefs.h >>conftest.$ac_ext
2580 cat >>conftest.$ac_ext <<_ACEOF
2581 /* end confdefs.h. */
2584 main ()
2588 return 0;
2590 _ACEOF
2591 ac_clean_files_save=$ac_clean_files
2592 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2593 # Try to create an executable without -o first, disregard a.out.
2594 # It will help us diagnose broken compilers, and finding out an intuition
2595 # of exeext.
2596 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2597 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2598 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2600 # List of possible output files, starting from the most likely.
2601 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2602 # only as a last resort. b.out is created by i960 compilers.
2603 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2605 # The IRIX 6 linker writes into existing files which may not be
2606 # executable, retaining their permissions. Remove them first so a
2607 # subsequent execution test works.
2608 ac_rmfiles=
2609 for ac_file in $ac_files
2611 case $ac_file in
2612 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2613 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2614 esac
2615 done
2616 rm -f $ac_rmfiles
2618 if { (ac_try="$ac_link_default"
2619 case "(($ac_try" in
2620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2621 *) ac_try_echo=$ac_try;;
2622 esac
2623 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2624 (eval "$ac_link_default") 2>&5
2625 ac_status=$?
2626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2627 (exit $ac_status); }; then
2628 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2629 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2630 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2631 # so that the user can short-circuit this test for compilers unknown to
2632 # Autoconf.
2633 for ac_file in $ac_files ''
2635 test -f "$ac_file" || continue
2636 case $ac_file in
2637 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2639 [ab].out )
2640 # We found the default executable, but exeext='' is most
2641 # certainly right.
2642 break;;
2643 *.* )
2644 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2645 then :; else
2646 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2648 # We set ac_cv_exeext here because the later test for it is not
2649 # safe: cross compilers may not add the suffix if given an `-o'
2650 # argument, so we may need to know it at that point already.
2651 # Even if this section looks crufty: it has the advantage of
2652 # actually working.
2653 break;;
2655 break;;
2656 esac
2657 done
2658 test "$ac_cv_exeext" = no && ac_cv_exeext=
2660 else
2661 ac_file=''
2664 { echo "$as_me:$LINENO: result: $ac_file" >&5
2665 echo "${ECHO_T}$ac_file" >&6; }
2666 if test -z "$ac_file"; then
2667 echo "$as_me: failed program was:" >&5
2668 sed 's/^/| /' conftest.$ac_ext >&5
2670 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2671 See \`config.log' for more details." >&5
2672 echo "$as_me: error: C compiler cannot create executables
2673 See \`config.log' for more details." >&2;}
2674 { (exit 77); exit 77; }; }
2677 ac_exeext=$ac_cv_exeext
2679 # Check that the compiler produces executables we can run. If not, either
2680 # the compiler is broken, or we cross compile.
2681 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2682 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2683 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2684 # If not cross compiling, check that we can run a simple program.
2685 if test "$cross_compiling" != yes; then
2686 if { ac_try='./$ac_file'
2687 { (case "(($ac_try" in
2688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2689 *) ac_try_echo=$ac_try;;
2690 esac
2691 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2692 (eval "$ac_try") 2>&5
2693 ac_status=$?
2694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2695 (exit $ac_status); }; }; then
2696 cross_compiling=no
2697 else
2698 if test "$cross_compiling" = maybe; then
2699 cross_compiling=yes
2700 else
2701 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2702 If you meant to cross compile, use \`--host'.
2703 See \`config.log' for more details." >&5
2704 echo "$as_me: error: cannot run C compiled programs.
2705 If you meant to cross compile, use \`--host'.
2706 See \`config.log' for more details." >&2;}
2707 { (exit 1); exit 1; }; }
2711 { echo "$as_me:$LINENO: result: yes" >&5
2712 echo "${ECHO_T}yes" >&6; }
2714 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2715 ac_clean_files=$ac_clean_files_save
2716 # Check that the compiler produces executables we can run. If not, either
2717 # the compiler is broken, or we cross compile.
2718 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2719 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2720 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2721 echo "${ECHO_T}$cross_compiling" >&6; }
2723 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2724 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2725 if { (ac_try="$ac_link"
2726 case "(($ac_try" in
2727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2728 *) ac_try_echo=$ac_try;;
2729 esac
2730 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2731 (eval "$ac_link") 2>&5
2732 ac_status=$?
2733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2734 (exit $ac_status); }; then
2735 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2736 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2737 # work properly (i.e., refer to `conftest.exe'), while it won't with
2738 # `rm'.
2739 for ac_file in conftest.exe conftest conftest.*; do
2740 test -f "$ac_file" || continue
2741 case $ac_file in
2742 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2743 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2744 break;;
2745 * ) break;;
2746 esac
2747 done
2748 else
2749 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2750 See \`config.log' for more details." >&5
2751 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2752 See \`config.log' for more details." >&2;}
2753 { (exit 1); exit 1; }; }
2756 rm -f conftest$ac_cv_exeext
2757 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2758 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2760 rm -f conftest.$ac_ext
2761 EXEEXT=$ac_cv_exeext
2762 ac_exeext=$EXEEXT
2763 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2764 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2765 if test "${ac_cv_objext+set}" = set; then
2766 echo $ECHO_N "(cached) $ECHO_C" >&6
2767 else
2768 cat >conftest.$ac_ext <<_ACEOF
2769 /* confdefs.h. */
2770 _ACEOF
2771 cat confdefs.h >>conftest.$ac_ext
2772 cat >>conftest.$ac_ext <<_ACEOF
2773 /* end confdefs.h. */
2776 main ()
2780 return 0;
2782 _ACEOF
2783 rm -f conftest.o conftest.obj
2784 if { (ac_try="$ac_compile"
2785 case "(($ac_try" in
2786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2787 *) ac_try_echo=$ac_try;;
2788 esac
2789 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2790 (eval "$ac_compile") 2>&5
2791 ac_status=$?
2792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2793 (exit $ac_status); }; then
2794 for ac_file in conftest.o conftest.obj conftest.*; do
2795 test -f "$ac_file" || continue;
2796 case $ac_file in
2797 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2798 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2799 break;;
2800 esac
2801 done
2802 else
2803 echo "$as_me: failed program was:" >&5
2804 sed 's/^/| /' conftest.$ac_ext >&5
2806 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2807 See \`config.log' for more details." >&5
2808 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2809 See \`config.log' for more details." >&2;}
2810 { (exit 1); exit 1; }; }
2813 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2815 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2816 echo "${ECHO_T}$ac_cv_objext" >&6; }
2817 OBJEXT=$ac_cv_objext
2818 ac_objext=$OBJEXT
2819 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2820 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2821 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2822 echo $ECHO_N "(cached) $ECHO_C" >&6
2823 else
2824 cat >conftest.$ac_ext <<_ACEOF
2825 /* confdefs.h. */
2826 _ACEOF
2827 cat confdefs.h >>conftest.$ac_ext
2828 cat >>conftest.$ac_ext <<_ACEOF
2829 /* end confdefs.h. */
2832 main ()
2834 #ifndef __GNUC__
2835 choke me
2836 #endif
2839 return 0;
2841 _ACEOF
2842 rm -f conftest.$ac_objext
2843 if { (ac_try="$ac_compile"
2844 case "(($ac_try" in
2845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2846 *) ac_try_echo=$ac_try;;
2847 esac
2848 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2849 (eval "$ac_compile") 2>conftest.er1
2850 ac_status=$?
2851 grep -v '^ *+' conftest.er1 >conftest.err
2852 rm -f conftest.er1
2853 cat conftest.err >&5
2854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2855 (exit $ac_status); } && {
2856 test -z "$ac_c_werror_flag" ||
2857 test ! -s conftest.err
2858 } && test -s conftest.$ac_objext; then
2859 ac_compiler_gnu=yes
2860 else
2861 echo "$as_me: failed program was:" >&5
2862 sed 's/^/| /' conftest.$ac_ext >&5
2864 ac_compiler_gnu=no
2867 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2868 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2871 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2872 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2873 GCC=`test $ac_compiler_gnu = yes && echo yes`
2874 ac_test_CFLAGS=${CFLAGS+set}
2875 ac_save_CFLAGS=$CFLAGS
2876 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2877 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2878 if test "${ac_cv_prog_cc_g+set}" = set; then
2879 echo $ECHO_N "(cached) $ECHO_C" >&6
2880 else
2881 ac_save_c_werror_flag=$ac_c_werror_flag
2882 ac_c_werror_flag=yes
2883 ac_cv_prog_cc_g=no
2884 CFLAGS="-g"
2885 cat >conftest.$ac_ext <<_ACEOF
2886 /* confdefs.h. */
2887 _ACEOF
2888 cat confdefs.h >>conftest.$ac_ext
2889 cat >>conftest.$ac_ext <<_ACEOF
2890 /* end confdefs.h. */
2893 main ()
2897 return 0;
2899 _ACEOF
2900 rm -f conftest.$ac_objext
2901 if { (ac_try="$ac_compile"
2902 case "(($ac_try" in
2903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2904 *) ac_try_echo=$ac_try;;
2905 esac
2906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2907 (eval "$ac_compile") 2>conftest.er1
2908 ac_status=$?
2909 grep -v '^ *+' conftest.er1 >conftest.err
2910 rm -f conftest.er1
2911 cat conftest.err >&5
2912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2913 (exit $ac_status); } && {
2914 test -z "$ac_c_werror_flag" ||
2915 test ! -s conftest.err
2916 } && test -s conftest.$ac_objext; then
2917 ac_cv_prog_cc_g=yes
2918 else
2919 echo "$as_me: failed program was:" >&5
2920 sed 's/^/| /' conftest.$ac_ext >&5
2922 CFLAGS=""
2923 cat >conftest.$ac_ext <<_ACEOF
2924 /* confdefs.h. */
2925 _ACEOF
2926 cat confdefs.h >>conftest.$ac_ext
2927 cat >>conftest.$ac_ext <<_ACEOF
2928 /* end confdefs.h. */
2931 main ()
2935 return 0;
2937 _ACEOF
2938 rm -f conftest.$ac_objext
2939 if { (ac_try="$ac_compile"
2940 case "(($ac_try" in
2941 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2942 *) ac_try_echo=$ac_try;;
2943 esac
2944 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2945 (eval "$ac_compile") 2>conftest.er1
2946 ac_status=$?
2947 grep -v '^ *+' conftest.er1 >conftest.err
2948 rm -f conftest.er1
2949 cat conftest.err >&5
2950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2951 (exit $ac_status); } && {
2952 test -z "$ac_c_werror_flag" ||
2953 test ! -s conftest.err
2954 } && test -s conftest.$ac_objext; then
2956 else
2957 echo "$as_me: failed program was:" >&5
2958 sed 's/^/| /' conftest.$ac_ext >&5
2960 ac_c_werror_flag=$ac_save_c_werror_flag
2961 CFLAGS="-g"
2962 cat >conftest.$ac_ext <<_ACEOF
2963 /* confdefs.h. */
2964 _ACEOF
2965 cat confdefs.h >>conftest.$ac_ext
2966 cat >>conftest.$ac_ext <<_ACEOF
2967 /* end confdefs.h. */
2970 main ()
2974 return 0;
2976 _ACEOF
2977 rm -f conftest.$ac_objext
2978 if { (ac_try="$ac_compile"
2979 case "(($ac_try" in
2980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2981 *) ac_try_echo=$ac_try;;
2982 esac
2983 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2984 (eval "$ac_compile") 2>conftest.er1
2985 ac_status=$?
2986 grep -v '^ *+' conftest.er1 >conftest.err
2987 rm -f conftest.er1
2988 cat conftest.err >&5
2989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2990 (exit $ac_status); } && {
2991 test -z "$ac_c_werror_flag" ||
2992 test ! -s conftest.err
2993 } && test -s conftest.$ac_objext; then
2994 ac_cv_prog_cc_g=yes
2995 else
2996 echo "$as_me: failed program was:" >&5
2997 sed 's/^/| /' conftest.$ac_ext >&5
3002 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3005 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3008 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3009 ac_c_werror_flag=$ac_save_c_werror_flag
3011 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3012 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3013 if test "$ac_test_CFLAGS" = set; then
3014 CFLAGS=$ac_save_CFLAGS
3015 elif test $ac_cv_prog_cc_g = yes; then
3016 if test "$GCC" = yes; then
3017 CFLAGS="-g -O2"
3018 else
3019 CFLAGS="-g"
3021 else
3022 if test "$GCC" = yes; then
3023 CFLAGS="-O2"
3024 else
3025 CFLAGS=
3028 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3029 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3030 if test "${ac_cv_prog_cc_c89+set}" = set; then
3031 echo $ECHO_N "(cached) $ECHO_C" >&6
3032 else
3033 ac_cv_prog_cc_c89=no
3034 ac_save_CC=$CC
3035 cat >conftest.$ac_ext <<_ACEOF
3036 /* confdefs.h. */
3037 _ACEOF
3038 cat confdefs.h >>conftest.$ac_ext
3039 cat >>conftest.$ac_ext <<_ACEOF
3040 /* end confdefs.h. */
3041 #include <stdarg.h>
3042 #include <stdio.h>
3043 #include <sys/types.h>
3044 #include <sys/stat.h>
3045 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3046 struct buf { int x; };
3047 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3048 static char *e (p, i)
3049 char **p;
3050 int i;
3052 return p[i];
3054 static char *f (char * (*g) (char **, int), char **p, ...)
3056 char *s;
3057 va_list v;
3058 va_start (v,p);
3059 s = g (p, va_arg (v,int));
3060 va_end (v);
3061 return s;
3064 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3065 function prototypes and stuff, but not '\xHH' hex character constants.
3066 These don't provoke an error unfortunately, instead are silently treated
3067 as 'x'. The following induces an error, until -std is added to get
3068 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3069 array size at least. It's necessary to write '\x00'==0 to get something
3070 that's true only with -std. */
3071 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3073 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3074 inside strings and character constants. */
3075 #define FOO(x) 'x'
3076 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3078 int test (int i, double x);
3079 struct s1 {int (*f) (int a);};
3080 struct s2 {int (*f) (double a);};
3081 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3082 int argc;
3083 char **argv;
3085 main ()
3087 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3089 return 0;
3091 _ACEOF
3092 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3093 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3095 CC="$ac_save_CC $ac_arg"
3096 rm -f conftest.$ac_objext
3097 if { (ac_try="$ac_compile"
3098 case "(($ac_try" in
3099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3100 *) ac_try_echo=$ac_try;;
3101 esac
3102 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3103 (eval "$ac_compile") 2>conftest.er1
3104 ac_status=$?
3105 grep -v '^ *+' conftest.er1 >conftest.err
3106 rm -f conftest.er1
3107 cat conftest.err >&5
3108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3109 (exit $ac_status); } && {
3110 test -z "$ac_c_werror_flag" ||
3111 test ! -s conftest.err
3112 } && test -s conftest.$ac_objext; then
3113 ac_cv_prog_cc_c89=$ac_arg
3114 else
3115 echo "$as_me: failed program was:" >&5
3116 sed 's/^/| /' conftest.$ac_ext >&5
3121 rm -f core conftest.err conftest.$ac_objext
3122 test "x$ac_cv_prog_cc_c89" != "xno" && break
3123 done
3124 rm -f conftest.$ac_ext
3125 CC=$ac_save_CC
3128 # AC_CACHE_VAL
3129 case "x$ac_cv_prog_cc_c89" in
3131 { echo "$as_me:$LINENO: result: none needed" >&5
3132 echo "${ECHO_T}none needed" >&6; } ;;
3133 xno)
3134 { echo "$as_me:$LINENO: result: unsupported" >&5
3135 echo "${ECHO_T}unsupported" >&6; } ;;
3137 CC="$CC $ac_cv_prog_cc_c89"
3138 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3139 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3140 esac
3143 ac_ext=c
3144 ac_cpp='$CPP $CPPFLAGS'
3145 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3146 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3147 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3152 { echo "$as_me:$LINENO: checking for --with-cxx-main=<compiler>" >&5
3153 echo $ECHO_N "checking for --with-cxx-main=<compiler>... $ECHO_C" >&6; }
3155 # Check whether --with-cxx_main was given.
3156 if test "${with_cxx_main+set}" = set; then
3157 withval=$with_cxx_main;
3159 case $withval in
3160 no) with_cxx_main=no
3161 MAINCC='$(CC)';;
3162 yes) with_cxx_main=yes
3163 MAINCC='$(CXX)';;
3164 *) with_cxx_main=yes
3165 MAINCC=$withval
3166 if test -z "$CXX"
3167 then
3168 CXX=$withval
3169 fi;;
3170 esac
3171 else
3173 with_cxx_main=no
3174 MAINCC='$(CC)'
3178 { echo "$as_me:$LINENO: result: $with_cxx_main" >&5
3179 echo "${ECHO_T}$with_cxx_main" >&6; }
3181 preset_cxx="$CXX"
3182 if test -z "$CXX"
3183 then
3184 case "$CC" in
3185 gcc) # Extract the first word of "g++", so it can be a program name with args.
3186 set dummy g++; ac_word=$2
3187 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3188 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3189 if test "${ac_cv_path_CXX+set}" = set; then
3190 echo $ECHO_N "(cached) $ECHO_C" >&6
3191 else
3192 case $CXX in
3193 [\\/]* | ?:[\\/]*)
3194 ac_cv_path_CXX="$CXX" # Let the user override the test with a path.
3197 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3198 for as_dir in notfound
3200 IFS=$as_save_IFS
3201 test -z "$as_dir" && as_dir=.
3202 for ac_exec_ext in '' $ac_executable_extensions; do
3203 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3204 ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext"
3205 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3206 break 2
3208 done
3209 done
3210 IFS=$as_save_IFS
3212 test -z "$ac_cv_path_CXX" && ac_cv_path_CXX="g++"
3214 esac
3216 CXX=$ac_cv_path_CXX
3217 if test -n "$CXX"; then
3218 { echo "$as_me:$LINENO: result: $CXX" >&5
3219 echo "${ECHO_T}$CXX" >&6; }
3220 else
3221 { echo "$as_me:$LINENO: result: no" >&5
3222 echo "${ECHO_T}no" >&6; }
3226 cc) # Extract the first word of "c++", so it can be a program name with args.
3227 set dummy c++; ac_word=$2
3228 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3229 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3230 if test "${ac_cv_path_CXX+set}" = set; then
3231 echo $ECHO_N "(cached) $ECHO_C" >&6
3232 else
3233 case $CXX in
3234 [\\/]* | ?:[\\/]*)
3235 ac_cv_path_CXX="$CXX" # Let the user override the test with a path.
3238 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3239 for as_dir in notfound
3241 IFS=$as_save_IFS
3242 test -z "$as_dir" && as_dir=.
3243 for ac_exec_ext in '' $ac_executable_extensions; do
3244 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3245 ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext"
3246 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3247 break 2
3249 done
3250 done
3251 IFS=$as_save_IFS
3253 test -z "$ac_cv_path_CXX" && ac_cv_path_CXX="c++"
3255 esac
3257 CXX=$ac_cv_path_CXX
3258 if test -n "$CXX"; then
3259 { echo "$as_me:$LINENO: result: $CXX" >&5
3260 echo "${ECHO_T}$CXX" >&6; }
3261 else
3262 { echo "$as_me:$LINENO: result: no" >&5
3263 echo "${ECHO_T}no" >&6; }
3267 esac
3268 if test "$CXX" = "notfound"
3269 then
3270 CXX=""
3273 if test -z "$CXX"
3274 then
3275 for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
3277 # Extract the first word of "$ac_prog", so it can be a program name with args.
3278 set dummy $ac_prog; ac_word=$2
3279 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3280 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3281 if test "${ac_cv_prog_CXX+set}" = set; then
3282 echo $ECHO_N "(cached) $ECHO_C" >&6
3283 else
3284 if test -n "$CXX"; then
3285 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3286 else
3287 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3288 for as_dir in $PATH
3290 IFS=$as_save_IFS
3291 test -z "$as_dir" && as_dir=.
3292 for ac_exec_ext in '' $ac_executable_extensions; do
3293 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3294 ac_cv_prog_CXX="$ac_prog"
3295 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3296 break 2
3298 done
3299 done
3300 IFS=$as_save_IFS
3304 CXX=$ac_cv_prog_CXX
3305 if test -n "$CXX"; then
3306 { echo "$as_me:$LINENO: result: $CXX" >&5
3307 echo "${ECHO_T}$CXX" >&6; }
3308 else
3309 { echo "$as_me:$LINENO: result: no" >&5
3310 echo "${ECHO_T}no" >&6; }
3314 test -n "$CXX" && break
3315 done
3316 test -n "$CXX" || CXX="notfound"
3318 if test "$CXX" = "notfound"
3319 then
3320 CXX=""
3323 if test "$preset_cxx" != "$CXX"
3324 then
3325 { echo "$as_me:$LINENO: WARNING:
3327 By default, distutils will build C++ extension modules with \"$CXX\".
3328 If this is not intended, then set CXX on the configure command line.
3329 " >&5
3330 echo "$as_me: WARNING:
3332 By default, distutils will build C++ extension modules with \"$CXX\".
3333 If this is not intended, then set CXX on the configure command line.
3334 " >&2;}
3338 # checks for UNIX variants that set C preprocessor variables
3340 ac_ext=c
3341 ac_cpp='$CPP $CPPFLAGS'
3342 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3343 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3344 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3345 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3346 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3347 # On Suns, sometimes $CPP names a directory.
3348 if test -n "$CPP" && test -d "$CPP"; then
3349 CPP=
3351 if test -z "$CPP"; then
3352 if test "${ac_cv_prog_CPP+set}" = set; then
3353 echo $ECHO_N "(cached) $ECHO_C" >&6
3354 else
3355 # Double quotes because CPP needs to be expanded
3356 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3358 ac_preproc_ok=false
3359 for ac_c_preproc_warn_flag in '' yes
3361 # Use a header file that comes with gcc, so configuring glibc
3362 # with a fresh cross-compiler works.
3363 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3364 # <limits.h> exists even on freestanding compilers.
3365 # On the NeXT, cc -E runs the code through the compiler's parser,
3366 # not just through cpp. "Syntax error" is here to catch this case.
3367 cat >conftest.$ac_ext <<_ACEOF
3368 /* confdefs.h. */
3369 _ACEOF
3370 cat confdefs.h >>conftest.$ac_ext
3371 cat >>conftest.$ac_ext <<_ACEOF
3372 /* end confdefs.h. */
3373 #ifdef __STDC__
3374 # include <limits.h>
3375 #else
3376 # include <assert.h>
3377 #endif
3378 Syntax error
3379 _ACEOF
3380 if { (ac_try="$ac_cpp conftest.$ac_ext"
3381 case "(($ac_try" in
3382 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3383 *) ac_try_echo=$ac_try;;
3384 esac
3385 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3386 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3387 ac_status=$?
3388 grep -v '^ *+' conftest.er1 >conftest.err
3389 rm -f conftest.er1
3390 cat conftest.err >&5
3391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3392 (exit $ac_status); } >/dev/null && {
3393 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3394 test ! -s conftest.err
3395 }; then
3397 else
3398 echo "$as_me: failed program was:" >&5
3399 sed 's/^/| /' conftest.$ac_ext >&5
3401 # Broken: fails on valid input.
3402 continue
3405 rm -f conftest.err conftest.$ac_ext
3407 # OK, works on sane cases. Now check whether nonexistent headers
3408 # can be detected and how.
3409 cat >conftest.$ac_ext <<_ACEOF
3410 /* confdefs.h. */
3411 _ACEOF
3412 cat confdefs.h >>conftest.$ac_ext
3413 cat >>conftest.$ac_ext <<_ACEOF
3414 /* end confdefs.h. */
3415 #include <ac_nonexistent.h>
3416 _ACEOF
3417 if { (ac_try="$ac_cpp conftest.$ac_ext"
3418 case "(($ac_try" in
3419 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3420 *) ac_try_echo=$ac_try;;
3421 esac
3422 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3423 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3424 ac_status=$?
3425 grep -v '^ *+' conftest.er1 >conftest.err
3426 rm -f conftest.er1
3427 cat conftest.err >&5
3428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3429 (exit $ac_status); } >/dev/null && {
3430 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3431 test ! -s conftest.err
3432 }; then
3433 # Broken: success on invalid input.
3434 continue
3435 else
3436 echo "$as_me: failed program was:" >&5
3437 sed 's/^/| /' conftest.$ac_ext >&5
3439 # Passes both tests.
3440 ac_preproc_ok=:
3441 break
3444 rm -f conftest.err conftest.$ac_ext
3446 done
3447 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3448 rm -f conftest.err conftest.$ac_ext
3449 if $ac_preproc_ok; then
3450 break
3453 done
3454 ac_cv_prog_CPP=$CPP
3457 CPP=$ac_cv_prog_CPP
3458 else
3459 ac_cv_prog_CPP=$CPP
3461 { echo "$as_me:$LINENO: result: $CPP" >&5
3462 echo "${ECHO_T}$CPP" >&6; }
3463 ac_preproc_ok=false
3464 for ac_c_preproc_warn_flag in '' yes
3466 # Use a header file that comes with gcc, so configuring glibc
3467 # with a fresh cross-compiler works.
3468 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3469 # <limits.h> exists even on freestanding compilers.
3470 # On the NeXT, cc -E runs the code through the compiler's parser,
3471 # not just through cpp. "Syntax error" is here to catch this case.
3472 cat >conftest.$ac_ext <<_ACEOF
3473 /* confdefs.h. */
3474 _ACEOF
3475 cat confdefs.h >>conftest.$ac_ext
3476 cat >>conftest.$ac_ext <<_ACEOF
3477 /* end confdefs.h. */
3478 #ifdef __STDC__
3479 # include <limits.h>
3480 #else
3481 # include <assert.h>
3482 #endif
3483 Syntax error
3484 _ACEOF
3485 if { (ac_try="$ac_cpp conftest.$ac_ext"
3486 case "(($ac_try" in
3487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3488 *) ac_try_echo=$ac_try;;
3489 esac
3490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3491 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3492 ac_status=$?
3493 grep -v '^ *+' conftest.er1 >conftest.err
3494 rm -f conftest.er1
3495 cat conftest.err >&5
3496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3497 (exit $ac_status); } >/dev/null && {
3498 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3499 test ! -s conftest.err
3500 }; then
3502 else
3503 echo "$as_me: failed program was:" >&5
3504 sed 's/^/| /' conftest.$ac_ext >&5
3506 # Broken: fails on valid input.
3507 continue
3510 rm -f conftest.err conftest.$ac_ext
3512 # OK, works on sane cases. Now check whether nonexistent headers
3513 # can be detected and how.
3514 cat >conftest.$ac_ext <<_ACEOF
3515 /* confdefs.h. */
3516 _ACEOF
3517 cat confdefs.h >>conftest.$ac_ext
3518 cat >>conftest.$ac_ext <<_ACEOF
3519 /* end confdefs.h. */
3520 #include <ac_nonexistent.h>
3521 _ACEOF
3522 if { (ac_try="$ac_cpp conftest.$ac_ext"
3523 case "(($ac_try" in
3524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3525 *) ac_try_echo=$ac_try;;
3526 esac
3527 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3528 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3529 ac_status=$?
3530 grep -v '^ *+' conftest.er1 >conftest.err
3531 rm -f conftest.er1
3532 cat conftest.err >&5
3533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3534 (exit $ac_status); } >/dev/null && {
3535 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3536 test ! -s conftest.err
3537 }; then
3538 # Broken: success on invalid input.
3539 continue
3540 else
3541 echo "$as_me: failed program was:" >&5
3542 sed 's/^/| /' conftest.$ac_ext >&5
3544 # Passes both tests.
3545 ac_preproc_ok=:
3546 break
3549 rm -f conftest.err conftest.$ac_ext
3551 done
3552 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3553 rm -f conftest.err conftest.$ac_ext
3554 if $ac_preproc_ok; then
3556 else
3557 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3558 See \`config.log' for more details." >&5
3559 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3560 See \`config.log' for more details." >&2;}
3561 { (exit 1); exit 1; }; }
3564 ac_ext=c
3565 ac_cpp='$CPP $CPPFLAGS'
3566 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3567 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3568 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3571 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3572 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3573 if test "${ac_cv_path_GREP+set}" = set; then
3574 echo $ECHO_N "(cached) $ECHO_C" >&6
3575 else
3576 # Extract the first word of "grep ggrep" to use in msg output
3577 if test -z "$GREP"; then
3578 set dummy grep ggrep; ac_prog_name=$2
3579 if test "${ac_cv_path_GREP+set}" = set; then
3580 echo $ECHO_N "(cached) $ECHO_C" >&6
3581 else
3582 ac_path_GREP_found=false
3583 # Loop through the user's path and test for each of PROGNAME-LIST
3584 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3585 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3587 IFS=$as_save_IFS
3588 test -z "$as_dir" && as_dir=.
3589 for ac_prog in grep ggrep; do
3590 for ac_exec_ext in '' $ac_executable_extensions; do
3591 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3592 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3593 # Check for GNU ac_path_GREP and select it if it is found.
3594 # Check for GNU $ac_path_GREP
3595 case `"$ac_path_GREP" --version 2>&1` in
3596 *GNU*)
3597 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3599 ac_count=0
3600 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3601 while :
3603 cat "conftest.in" "conftest.in" >"conftest.tmp"
3604 mv "conftest.tmp" "conftest.in"
3605 cp "conftest.in" "conftest.nl"
3606 echo 'GREP' >> "conftest.nl"
3607 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3608 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3609 ac_count=`expr $ac_count + 1`
3610 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3611 # Best one so far, save it but keep looking for a better one
3612 ac_cv_path_GREP="$ac_path_GREP"
3613 ac_path_GREP_max=$ac_count
3615 # 10*(2^10) chars as input seems more than enough
3616 test $ac_count -gt 10 && break
3617 done
3618 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3619 esac
3622 $ac_path_GREP_found && break 3
3623 done
3624 done
3626 done
3627 IFS=$as_save_IFS
3632 GREP="$ac_cv_path_GREP"
3633 if test -z "$GREP"; then
3634 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3635 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3636 { (exit 1); exit 1; }; }
3639 else
3640 ac_cv_path_GREP=$GREP
3645 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3646 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3647 GREP="$ac_cv_path_GREP"
3650 { echo "$as_me:$LINENO: checking for egrep" >&5
3651 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3652 if test "${ac_cv_path_EGREP+set}" = set; then
3653 echo $ECHO_N "(cached) $ECHO_C" >&6
3654 else
3655 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3656 then ac_cv_path_EGREP="$GREP -E"
3657 else
3658 # Extract the first word of "egrep" to use in msg output
3659 if test -z "$EGREP"; then
3660 set dummy egrep; ac_prog_name=$2
3661 if test "${ac_cv_path_EGREP+set}" = set; then
3662 echo $ECHO_N "(cached) $ECHO_C" >&6
3663 else
3664 ac_path_EGREP_found=false
3665 # Loop through the user's path and test for each of PROGNAME-LIST
3666 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3667 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3669 IFS=$as_save_IFS
3670 test -z "$as_dir" && as_dir=.
3671 for ac_prog in egrep; do
3672 for ac_exec_ext in '' $ac_executable_extensions; do
3673 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3674 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3675 # Check for GNU ac_path_EGREP and select it if it is found.
3676 # Check for GNU $ac_path_EGREP
3677 case `"$ac_path_EGREP" --version 2>&1` in
3678 *GNU*)
3679 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3681 ac_count=0
3682 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3683 while :
3685 cat "conftest.in" "conftest.in" >"conftest.tmp"
3686 mv "conftest.tmp" "conftest.in"
3687 cp "conftest.in" "conftest.nl"
3688 echo 'EGREP' >> "conftest.nl"
3689 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3690 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3691 ac_count=`expr $ac_count + 1`
3692 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3693 # Best one so far, save it but keep looking for a better one
3694 ac_cv_path_EGREP="$ac_path_EGREP"
3695 ac_path_EGREP_max=$ac_count
3697 # 10*(2^10) chars as input seems more than enough
3698 test $ac_count -gt 10 && break
3699 done
3700 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3701 esac
3704 $ac_path_EGREP_found && break 3
3705 done
3706 done
3708 done
3709 IFS=$as_save_IFS
3714 EGREP="$ac_cv_path_EGREP"
3715 if test -z "$EGREP"; then
3716 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3717 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3718 { (exit 1); exit 1; }; }
3721 else
3722 ac_cv_path_EGREP=$EGREP
3728 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3729 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3730 EGREP="$ac_cv_path_EGREP"
3734 { echo "$as_me:$LINENO: checking for AIX" >&5
3735 echo $ECHO_N "checking for AIX... $ECHO_C" >&6; }
3736 cat >conftest.$ac_ext <<_ACEOF
3737 /* confdefs.h. */
3738 _ACEOF
3739 cat confdefs.h >>conftest.$ac_ext
3740 cat >>conftest.$ac_ext <<_ACEOF
3741 /* end confdefs.h. */
3742 #ifdef _AIX
3744 #endif
3746 _ACEOF
3747 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3748 $EGREP "yes" >/dev/null 2>&1; then
3749 { echo "$as_me:$LINENO: result: yes" >&5
3750 echo "${ECHO_T}yes" >&6; }
3751 cat >>confdefs.h <<\_ACEOF
3752 #define _ALL_SOURCE 1
3753 _ACEOF
3755 else
3756 { echo "$as_me:$LINENO: result: no" >&5
3757 echo "${ECHO_T}no" >&6; }
3759 rm -f conftest*
3763 # Check for unsupported systems
3764 case $ac_sys_system/$ac_sys_release in
3765 atheos*|Linux*/1*)
3766 echo This system \($ac_sys_system/$ac_sys_release\) is no longer supported.
3767 echo See README for details.
3768 exit 1;;
3769 esac
3772 { echo "$as_me:$LINENO: checking for --with-suffix" >&5
3773 echo $ECHO_N "checking for --with-suffix... $ECHO_C" >&6; }
3775 # Check whether --with-suffix was given.
3776 if test "${with_suffix+set}" = set; then
3777 withval=$with_suffix;
3778 case $withval in
3779 no) EXEEXT=;;
3780 yes) EXEEXT=.exe;;
3781 *) EXEEXT=$withval;;
3782 esac
3785 { echo "$as_me:$LINENO: result: $EXEEXT" >&5
3786 echo "${ECHO_T}$EXEEXT" >&6; }
3788 # Test whether we're running on a non-case-sensitive system, in which
3789 # case we give a warning if no ext is given
3791 { echo "$as_me:$LINENO: checking for case-insensitive build directory" >&5
3792 echo $ECHO_N "checking for case-insensitive build directory... $ECHO_C" >&6; }
3793 if test ! -d CaseSensitiveTestDir; then
3794 mkdir CaseSensitiveTestDir
3797 if test -d casesensitivetestdir
3798 then
3799 { echo "$as_me:$LINENO: result: yes" >&5
3800 echo "${ECHO_T}yes" >&6; }
3801 BUILDEXEEXT=.exe
3802 else
3803 { echo "$as_me:$LINENO: result: no" >&5
3804 echo "${ECHO_T}no" >&6; }
3805 BUILDEXEEXT=$EXEEXT
3807 rmdir CaseSensitiveTestDir
3809 case $MACHDEP in
3810 bsdos*)
3811 case $CC in
3812 gcc) CC="$CC -D_HAVE_BSDI";;
3813 esac;;
3814 esac
3816 case $ac_sys_system in
3817 hp*|HP*)
3818 case $CC in
3819 cc|*/cc) CC="$CC -Ae";;
3820 esac;;
3821 Monterey*)
3822 case $CC in
3823 cc) CC="$CC -Wl,-Bexport";;
3824 esac;;
3825 SunOS*)
3826 # Some functions have a prototype only with that define, e.g. confstr
3828 cat >>confdefs.h <<\_ACEOF
3829 #define __EXTENSIONS__ 1
3830 _ACEOF
3833 esac
3837 { echo "$as_me:$LINENO: checking LIBRARY" >&5
3838 echo $ECHO_N "checking LIBRARY... $ECHO_C" >&6; }
3839 if test -z "$LIBRARY"
3840 then
3841 LIBRARY='libpython$(VERSION).a'
3843 { echo "$as_me:$LINENO: result: $LIBRARY" >&5
3844 echo "${ECHO_T}$LIBRARY" >&6; }
3846 # LDLIBRARY is the name of the library to link against (as opposed to the
3847 # name of the library into which to insert object files). BLDLIBRARY is also
3848 # the library to link against, usually. On Mac OS X frameworks, BLDLIBRARY
3849 # is blank as the main program is not linked directly against LDLIBRARY.
3850 # LDLIBRARYDIR is the path to LDLIBRARY, which is made in a subdirectory. On
3851 # systems without shared libraries, LDLIBRARY is the same as LIBRARY
3852 # (defined in the Makefiles). On Cygwin LDLIBRARY is the import library,
3853 # DLLLIBRARY is the shared (i.e., DLL) library.
3855 # RUNSHARED is used to run shared python without installed libraries
3857 # INSTSONAME is the name of the shared library that will be use to install
3858 # on the system - some systems like version suffix, others don't
3865 LDLIBRARY="$LIBRARY"
3866 BLDLIBRARY='$(LDLIBRARY)'
3867 INSTSONAME='$(LDLIBRARY)'
3868 DLLLIBRARY=''
3869 LDLIBRARYDIR=''
3870 RUNSHARED=''
3872 # LINKCC is the command that links the python executable -- default is $(CC).
3873 # If CXX is set, and if it is needed to link a main function that was
3874 # compiled with CXX, LINKCC is CXX instead. Always using CXX is undesirable:
3875 # python might then depend on the C++ runtime
3876 # This is altered for AIX in order to build the export list before
3877 # linking.
3879 { echo "$as_me:$LINENO: checking LINKCC" >&5
3880 echo $ECHO_N "checking LINKCC... $ECHO_C" >&6; }
3881 if test -z "$LINKCC"
3882 then
3883 LINKCC='$(PURIFY) $(MAINCC)'
3884 case $ac_sys_system in
3885 AIX*)
3886 exp_extra="\"\""
3887 if test $ac_sys_release -ge 5 -o \
3888 $ac_sys_release -eq 4 -a `uname -r` -ge 2 ; then
3889 exp_extra="."
3891 LINKCC="\$(srcdir)/Modules/makexp_aix Modules/python.exp $exp_extra \$(LIBRARY); $LINKCC";;
3892 Monterey64*)
3893 LINKCC="$LINKCC -L/usr/lib/ia64l64";;
3894 esac
3896 { echo "$as_me:$LINENO: result: $LINKCC" >&5
3897 echo "${ECHO_T}$LINKCC" >&6; }
3899 { echo "$as_me:$LINENO: checking for --enable-shared" >&5
3900 echo $ECHO_N "checking for --enable-shared... $ECHO_C" >&6; }
3901 # Check whether --enable-shared was given.
3902 if test "${enable_shared+set}" = set; then
3903 enableval=$enable_shared;
3907 if test -z "$enable_shared"
3908 then
3909 case $ac_sys_system in
3910 CYGWIN* | atheos*)
3911 enable_shared="yes";;
3913 enable_shared="no";;
3914 esac
3916 { echo "$as_me:$LINENO: result: $enable_shared" >&5
3917 echo "${ECHO_T}$enable_shared" >&6; }
3919 { echo "$as_me:$LINENO: checking for --enable-profiling" >&5
3920 echo $ECHO_N "checking for --enable-profiling... $ECHO_C" >&6; }
3921 # Check whether --enable-profiling was given.
3922 if test "${enable_profiling+set}" = set; then
3923 enableval=$enable_profiling; ac_save_cc="$CC"
3924 CC="$CC -pg"
3925 if test "$cross_compiling" = yes; then
3926 ac_enable_profiling="no"
3927 else
3928 cat >conftest.$ac_ext <<_ACEOF
3929 /* confdefs.h. */
3930 _ACEOF
3931 cat confdefs.h >>conftest.$ac_ext
3932 cat >>conftest.$ac_ext <<_ACEOF
3933 /* end confdefs.h. */
3934 int main() { return 0; }
3935 _ACEOF
3936 rm -f conftest$ac_exeext
3937 if { (ac_try="$ac_link"
3938 case "(($ac_try" in
3939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3940 *) ac_try_echo=$ac_try;;
3941 esac
3942 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3943 (eval "$ac_link") 2>&5
3944 ac_status=$?
3945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3946 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3947 { (case "(($ac_try" in
3948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3949 *) ac_try_echo=$ac_try;;
3950 esac
3951 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3952 (eval "$ac_try") 2>&5
3953 ac_status=$?
3954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3955 (exit $ac_status); }; }; then
3956 ac_enable_profiling="yes"
3957 else
3958 echo "$as_me: program exited with status $ac_status" >&5
3959 echo "$as_me: failed program was:" >&5
3960 sed 's/^/| /' conftest.$ac_ext >&5
3962 ( exit $ac_status )
3963 ac_enable_profiling="no"
3965 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3969 CC="$ac_save_cc"
3972 { echo "$as_me:$LINENO: result: $ac_enable_profiling" >&5
3973 echo "${ECHO_T}$ac_enable_profiling" >&6; }
3975 case "$ac_enable_profiling" in
3976 "yes")
3977 BASECFLAGS="-pg $BASECFLAGS"
3978 LDFLAGS="-pg $LDFLAGS"
3980 esac
3982 { echo "$as_me:$LINENO: checking LDLIBRARY" >&5
3983 echo $ECHO_N "checking LDLIBRARY... $ECHO_C" >&6; }
3985 # MacOSX framework builds need more magic. LDLIBRARY is the dynamic
3986 # library that we build, but we do not want to link against it (we
3987 # will find it with a -framework option). For this reason there is an
3988 # extra variable BLDLIBRARY against which Python and the extension
3989 # modules are linked, BLDLIBRARY. This is normally the same as
3990 # LDLIBRARY, but empty for MacOSX framework builds.
3991 if test "$enable_framework"
3992 then
3993 LDLIBRARY='$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
3994 RUNSHARED=DYLD_FRAMEWORK_PATH="`pwd`:$DYLD_FRAMEWORK_PATH"
3995 BLDLIBRARY=''
3996 else
3997 BLDLIBRARY='$(LDLIBRARY)'
4000 # Other platforms follow
4001 if test $enable_shared = "yes"; then
4003 cat >>confdefs.h <<\_ACEOF
4004 #define Py_ENABLE_SHARED 1
4005 _ACEOF
4007 case $ac_sys_system in
4008 BeOS*)
4009 LDLIBRARY='libpython$(VERSION).so'
4011 CYGWIN*)
4012 LDLIBRARY='libpython$(VERSION).dll.a'
4013 DLLLIBRARY='libpython$(VERSION).dll'
4015 SunOS*)
4016 LDLIBRARY='libpython$(VERSION).so'
4017 BLDLIBRARY='-Wl,-R,$(LIBDIR) -L. -lpython$(VERSION)'
4018 RUNSHARED=LD_LIBRARY_PATH=`pwd`:${LD_LIBRARY_PATH}
4019 INSTSONAME="$LDLIBRARY".$SOVERSION
4021 Linux*|GNU*|NetBSD*|FreeBSD*|DragonFly*)
4022 LDLIBRARY='libpython$(VERSION).so'
4023 BLDLIBRARY='-L. -lpython$(VERSION)'
4024 RUNSHARED=LD_LIBRARY_PATH=`pwd`:${LD_LIBRARY_PATH}
4025 case $ac_sys_system in
4026 FreeBSD*)
4027 SOVERSION=`echo $SOVERSION|cut -d "." -f 1`
4029 esac
4030 INSTSONAME="$LDLIBRARY".$SOVERSION
4032 hp*|HP*)
4033 case `uname -m` in
4034 ia64)
4035 LDLIBRARY='libpython$(VERSION).so'
4038 LDLIBRARY='libpython$(VERSION).sl'
4040 esac
4041 BLDLIBRARY='-Wl,+b,$(LIBDIR) -L. -lpython$(VERSION)'
4042 RUNSHARED=SHLIB_PATH=`pwd`:${SHLIB_PATH}
4044 OSF*)
4045 LDLIBRARY='libpython$(VERSION).so'
4046 BLDLIBRARY='-rpath $(LIBDIR) -L. -lpython$(VERSION)'
4047 RUNSHARED=LD_LIBRARY_PATH=`pwd`:${LD_LIBRARY_PATH}
4049 atheos*)
4050 LDLIBRARY='libpython$(VERSION).so'
4051 BLDLIBRARY='-L. -lpython$(VERSION)'
4052 RUNSHARED=DLL_PATH=`pwd`:${DLL_PATH:-/atheos/sys/libs:/atheos/autolnk/lib}
4054 esac
4055 else # shared is disabled
4056 case $ac_sys_system in
4057 CYGWIN*)
4058 BLDLIBRARY='$(LIBRARY)'
4059 LDLIBRARY='libpython$(VERSION).dll.a'
4061 esac
4064 { echo "$as_me:$LINENO: result: $LDLIBRARY" >&5
4065 echo "${ECHO_T}$LDLIBRARY" >&6; }
4067 if test -n "$ac_tool_prefix"; then
4068 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4069 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4070 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4071 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4072 if test "${ac_cv_prog_RANLIB+set}" = set; then
4073 echo $ECHO_N "(cached) $ECHO_C" >&6
4074 else
4075 if test -n "$RANLIB"; then
4076 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4077 else
4078 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4079 for as_dir in $PATH
4081 IFS=$as_save_IFS
4082 test -z "$as_dir" && as_dir=.
4083 for ac_exec_ext in '' $ac_executable_extensions; do
4084 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4085 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4086 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4087 break 2
4089 done
4090 done
4091 IFS=$as_save_IFS
4095 RANLIB=$ac_cv_prog_RANLIB
4096 if test -n "$RANLIB"; then
4097 { echo "$as_me:$LINENO: result: $RANLIB" >&5
4098 echo "${ECHO_T}$RANLIB" >&6; }
4099 else
4100 { echo "$as_me:$LINENO: result: no" >&5
4101 echo "${ECHO_T}no" >&6; }
4106 if test -z "$ac_cv_prog_RANLIB"; then
4107 ac_ct_RANLIB=$RANLIB
4108 # Extract the first word of "ranlib", so it can be a program name with args.
4109 set dummy ranlib; ac_word=$2
4110 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4111 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4112 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4113 echo $ECHO_N "(cached) $ECHO_C" >&6
4114 else
4115 if test -n "$ac_ct_RANLIB"; then
4116 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4117 else
4118 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4119 for as_dir in $PATH
4121 IFS=$as_save_IFS
4122 test -z "$as_dir" && as_dir=.
4123 for ac_exec_ext in '' $ac_executable_extensions; do
4124 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4125 ac_cv_prog_ac_ct_RANLIB="ranlib"
4126 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4127 break 2
4129 done
4130 done
4131 IFS=$as_save_IFS
4135 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4136 if test -n "$ac_ct_RANLIB"; then
4137 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4138 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
4139 else
4140 { echo "$as_me:$LINENO: result: no" >&5
4141 echo "${ECHO_T}no" >&6; }
4144 if test "x$ac_ct_RANLIB" = x; then
4145 RANLIB=":"
4146 else
4147 case $cross_compiling:$ac_tool_warned in
4148 yes:)
4149 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4150 whose name does not start with the host triplet. If you think this
4151 configuration is useful to you, please write to autoconf@gnu.org." >&5
4152 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4153 whose name does not start with the host triplet. If you think this
4154 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4155 ac_tool_warned=yes ;;
4156 esac
4157 RANLIB=$ac_ct_RANLIB
4159 else
4160 RANLIB="$ac_cv_prog_RANLIB"
4164 for ac_prog in ar aal
4166 # Extract the first word of "$ac_prog", so it can be a program name with args.
4167 set dummy $ac_prog; ac_word=$2
4168 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4169 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4170 if test "${ac_cv_prog_AR+set}" = set; then
4171 echo $ECHO_N "(cached) $ECHO_C" >&6
4172 else
4173 if test -n "$AR"; then
4174 ac_cv_prog_AR="$AR" # Let the user override the test.
4175 else
4176 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4177 for as_dir in $PATH
4179 IFS=$as_save_IFS
4180 test -z "$as_dir" && as_dir=.
4181 for ac_exec_ext in '' $ac_executable_extensions; do
4182 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4183 ac_cv_prog_AR="$ac_prog"
4184 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4185 break 2
4187 done
4188 done
4189 IFS=$as_save_IFS
4193 AR=$ac_cv_prog_AR
4194 if test -n "$AR"; then
4195 { echo "$as_me:$LINENO: result: $AR" >&5
4196 echo "${ECHO_T}$AR" >&6; }
4197 else
4198 { echo "$as_me:$LINENO: result: no" >&5
4199 echo "${ECHO_T}no" >&6; }
4203 test -n "$AR" && break
4204 done
4205 test -n "$AR" || AR="ar"
4209 # Extract the first word of "svnversion", so it can be a program name with args.
4210 set dummy svnversion; ac_word=$2
4211 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4212 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4213 if test "${ac_cv_prog_SVNVERSION+set}" = set; then
4214 echo $ECHO_N "(cached) $ECHO_C" >&6
4215 else
4216 if test -n "$SVNVERSION"; then
4217 ac_cv_prog_SVNVERSION="$SVNVERSION" # Let the user override the test.
4218 else
4219 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4220 for as_dir in $PATH
4222 IFS=$as_save_IFS
4223 test -z "$as_dir" && as_dir=.
4224 for ac_exec_ext in '' $ac_executable_extensions; do
4225 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4226 ac_cv_prog_SVNVERSION="found"
4227 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4228 break 2
4230 done
4231 done
4232 IFS=$as_save_IFS
4234 test -z "$ac_cv_prog_SVNVERSION" && ac_cv_prog_SVNVERSION="not-found"
4237 SVNVERSION=$ac_cv_prog_SVNVERSION
4238 if test -n "$SVNVERSION"; then
4239 { echo "$as_me:$LINENO: result: $SVNVERSION" >&5
4240 echo "${ECHO_T}$SVNVERSION" >&6; }
4241 else
4242 { echo "$as_me:$LINENO: result: no" >&5
4243 echo "${ECHO_T}no" >&6; }
4247 if test $SVNVERSION = found
4248 then
4249 SVNVERSION="svnversion \$(srcdir)"
4250 else
4251 SVNVERSION="echo exported"
4254 case $MACHDEP in
4255 bsdos*|hp*|HP*)
4256 # install -d does not work on BSDI or HP-UX
4257 if test -z "$INSTALL"
4258 then
4259 INSTALL="${srcdir}/install-sh -c"
4261 esac
4262 ac_aux_dir=
4263 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
4264 if test -f "$ac_dir/install-sh"; then
4265 ac_aux_dir=$ac_dir
4266 ac_install_sh="$ac_aux_dir/install-sh -c"
4267 break
4268 elif test -f "$ac_dir/install.sh"; then
4269 ac_aux_dir=$ac_dir
4270 ac_install_sh="$ac_aux_dir/install.sh -c"
4271 break
4272 elif test -f "$ac_dir/shtool"; then
4273 ac_aux_dir=$ac_dir
4274 ac_install_sh="$ac_aux_dir/shtool install -c"
4275 break
4277 done
4278 if test -z "$ac_aux_dir"; then
4279 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
4280 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
4281 { (exit 1); exit 1; }; }
4284 # These three variables are undocumented and unsupported,
4285 # and are intended to be withdrawn in a future Autoconf release.
4286 # They can cause serious problems if a builder's source tree is in a directory
4287 # whose full name contains unusual characters.
4288 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
4289 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
4290 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
4293 # Find a good install program. We prefer a C program (faster),
4294 # so one script is as good as another. But avoid the broken or
4295 # incompatible versions:
4296 # SysV /etc/install, /usr/sbin/install
4297 # SunOS /usr/etc/install
4298 # IRIX /sbin/install
4299 # AIX /bin/install
4300 # AmigaOS /C/install, which installs bootblocks on floppy discs
4301 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4302 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4303 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4304 # OS/2's system install, which has a completely different semantic
4305 # ./install, which can be erroneously created by make from ./install.sh.
4306 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4307 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
4308 if test -z "$INSTALL"; then
4309 if test "${ac_cv_path_install+set}" = set; then
4310 echo $ECHO_N "(cached) $ECHO_C" >&6
4311 else
4312 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4313 for as_dir in $PATH
4315 IFS=$as_save_IFS
4316 test -z "$as_dir" && as_dir=.
4317 # Account for people who put trailing slashes in PATH elements.
4318 case $as_dir/ in
4319 ./ | .// | /cC/* | \
4320 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4321 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4322 /usr/ucb/* ) ;;
4324 # OSF1 and SCO ODT 3.0 have their own names for install.
4325 # Don't use installbsd from OSF since it installs stuff as root
4326 # by default.
4327 for ac_prog in ginstall scoinst install; do
4328 for ac_exec_ext in '' $ac_executable_extensions; do
4329 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4330 if test $ac_prog = install &&
4331 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4332 # AIX install. It has an incompatible calling convention.
4334 elif test $ac_prog = install &&
4335 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4336 # program-specific install script used by HP pwplus--don't use.
4338 else
4339 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4340 break 3
4343 done
4344 done
4346 esac
4347 done
4348 IFS=$as_save_IFS
4352 if test "${ac_cv_path_install+set}" = set; then
4353 INSTALL=$ac_cv_path_install
4354 else
4355 # As a last resort, use the slow shell script. Don't cache a
4356 # value for INSTALL within a source directory, because that will
4357 # break other packages using the cache if that directory is
4358 # removed, or if the value is a relative name.
4359 INSTALL=$ac_install_sh
4362 { echo "$as_me:$LINENO: result: $INSTALL" >&5
4363 echo "${ECHO_T}$INSTALL" >&6; }
4365 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4366 # It thinks the first close brace ends the variable substitution.
4367 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4369 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4371 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4374 # Not every filesystem supports hard links
4376 if test -z "$LN" ; then
4377 case $ac_sys_system in
4378 BeOS*) LN="ln -s";;
4379 CYGWIN*) LN="ln -s";;
4380 atheos*) LN="ln -s";;
4381 *) LN=ln;;
4382 esac
4385 # Check for --with-pydebug
4386 { echo "$as_me:$LINENO: checking for --with-pydebug" >&5
4387 echo $ECHO_N "checking for --with-pydebug... $ECHO_C" >&6; }
4389 # Check whether --with-pydebug was given.
4390 if test "${with_pydebug+set}" = set; then
4391 withval=$with_pydebug;
4392 if test "$withval" != no
4393 then
4395 cat >>confdefs.h <<\_ACEOF
4396 #define Py_DEBUG 1
4397 _ACEOF
4399 { echo "$as_me:$LINENO: result: yes" >&5
4400 echo "${ECHO_T}yes" >&6; };
4401 Py_DEBUG='true'
4402 else { echo "$as_me:$LINENO: result: no" >&5
4403 echo "${ECHO_T}no" >&6; }; Py_DEBUG='false'
4405 else
4406 { echo "$as_me:$LINENO: result: no" >&5
4407 echo "${ECHO_T}no" >&6; }
4411 # XXX Shouldn't the code above that fiddles with BASECFLAGS and OPT be
4412 # merged with this chunk of code?
4414 # Optimizer/debugger flags
4415 # ------------------------
4416 # (The following bit of code is complicated enough - please keep things
4417 # indented properly. Just pretend you're editing Python code. ;-)
4419 # There are two parallel sets of case statements below, one that checks to
4420 # see if OPT was set and one that does BASECFLAGS setting based upon
4421 # compiler and platform. BASECFLAGS tweaks need to be made even if the
4422 # user set OPT.
4424 # tweak OPT based on compiler and platform, only if the user didn't set
4425 # it on the command line
4427 if test -z "$OPT"
4428 then
4429 case $GCC in
4430 yes)
4431 if test "$CC" != 'g++' ; then
4432 STRICT_PROTO="-Wstrict-prototypes"
4434 # For gcc 4.x we need to use -fwrapv so lets check if its supported
4435 if "$CC" -v --help 2>/dev/null |grep -- -fwrapv > /dev/null; then
4436 WRAP="-fwrapv"
4438 case $ac_cv_prog_cc_g in
4439 yes)
4440 if test "$Py_DEBUG" = 'true' ; then
4441 # Optimization messes up debuggers, so turn it off for
4442 # debug builds.
4443 OPT="-g -Wall $STRICT_PROTO"
4444 else
4445 OPT="-g $WRAP -O3 -Wall $STRICT_PROTO"
4449 OPT="-O3 -Wall $STRICT_PROTO"
4451 esac
4452 case $ac_sys_system in
4453 SCO_SV*) OPT="$OPT -m486 -DSCO5"
4455 esac
4459 OPT="-O"
4461 esac
4463 # The current (beta) Monterey compiler dies with optimizations
4464 # XXX what is Monterey? Does it still die w/ -O? Can we get rid of this?
4465 case $ac_sys_system in
4466 Monterey*)
4467 OPT=""
4469 esac
4474 # tweak BASECFLAGS based on compiler and platform
4475 case $GCC in
4476 yes)
4477 # Python violates C99 rules, by casting between incompatible
4478 # pointer types. GCC may generate bad code as a result of that,
4479 # so use -fno-strict-aliasing if supported.
4480 { echo "$as_me:$LINENO: checking whether $CC accepts -fno-strict-aliasing" >&5
4481 echo $ECHO_N "checking whether $CC accepts -fno-strict-aliasing... $ECHO_C" >&6; }
4482 ac_save_cc="$CC"
4483 CC="$CC -fno-strict-aliasing"
4484 if test "$cross_compiling" = yes; then
4485 ac_cv_no_strict_aliasing_ok=no
4486 else
4487 cat >conftest.$ac_ext <<_ACEOF
4488 /* confdefs.h. */
4489 _ACEOF
4490 cat confdefs.h >>conftest.$ac_ext
4491 cat >>conftest.$ac_ext <<_ACEOF
4492 /* end confdefs.h. */
4493 int main() { return 0; }
4494 _ACEOF
4495 rm -f conftest$ac_exeext
4496 if { (ac_try="$ac_link"
4497 case "(($ac_try" in
4498 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4499 *) ac_try_echo=$ac_try;;
4500 esac
4501 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4502 (eval "$ac_link") 2>&5
4503 ac_status=$?
4504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4505 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4506 { (case "(($ac_try" in
4507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4508 *) ac_try_echo=$ac_try;;
4509 esac
4510 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4511 (eval "$ac_try") 2>&5
4512 ac_status=$?
4513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4514 (exit $ac_status); }; }; then
4515 ac_cv_no_strict_aliasing_ok=yes
4516 else
4517 echo "$as_me: program exited with status $ac_status" >&5
4518 echo "$as_me: failed program was:" >&5
4519 sed 's/^/| /' conftest.$ac_ext >&5
4521 ( exit $ac_status )
4522 ac_cv_no_strict_aliasing_ok=no
4524 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4528 CC="$ac_save_cc"
4529 { echo "$as_me:$LINENO: result: $ac_cv_no_strict_aliasing_ok" >&5
4530 echo "${ECHO_T}$ac_cv_no_strict_aliasing_ok" >&6; }
4531 if test $ac_cv_no_strict_aliasing_ok = yes
4532 then
4533 BASECFLAGS="$BASECFLAGS -fno-strict-aliasing"
4535 case $ac_sys_system in
4536 SCO_SV*)
4537 BASECFLAGS="$BASECFLAGS -m486 -DSCO5"
4539 # is there any other compiler on Darwin besides gcc?
4540 Darwin*)
4541 # -Wno-long-double, -no-cpp-precomp, and -mno-fused-madd
4542 # used to be here, but non-Apple gcc doesn't accept them.
4543 if test "${enable_universalsdk}"; then
4544 BASECFLAGS="-arch ppc -arch i386 -isysroot ${UNIVERSALSDK} ${BASECFLAGS}"
4548 OSF*)
4549 BASECFLAGS="$BASECFLAGS -mieee"
4551 esac
4555 case $ac_sys_system in
4556 OpenUNIX*|UnixWare*)
4557 BASECFLAGS="$BASECFLAGS -K pentium,host,inline,loop_unroll,alloca "
4559 OSF*)
4560 BASECFLAGS="$BASECFLAGS -ieee -std"
4562 SCO_SV*)
4563 BASECFLAGS="$BASECFLAGS -belf -Ki486 -DSCO5"
4565 esac
4567 esac
4569 if test "$Py_DEBUG" = 'true'; then
4571 else
4572 OPT="-DNDEBUG $OPT"
4575 if test "$ac_arch_flags"
4576 then
4577 BASECFLAGS="$BASECFLAGS $ac_arch_flags"
4580 # disable check for icc since it seems to pass, but generates a warning
4581 if test "$CC" = icc
4582 then
4583 ac_cv_opt_olimit_ok=no
4586 { echo "$as_me:$LINENO: checking whether $CC accepts -OPT:Olimit=0" >&5
4587 echo $ECHO_N "checking whether $CC accepts -OPT:Olimit=0... $ECHO_C" >&6; }
4588 if test "${ac_cv_opt_olimit_ok+set}" = set; then
4589 echo $ECHO_N "(cached) $ECHO_C" >&6
4590 else
4591 ac_save_cc="$CC"
4592 CC="$CC -OPT:Olimit=0"
4593 if test "$cross_compiling" = yes; then
4594 ac_cv_opt_olimit_ok=no
4595 else
4596 cat >conftest.$ac_ext <<_ACEOF
4597 /* confdefs.h. */
4598 _ACEOF
4599 cat confdefs.h >>conftest.$ac_ext
4600 cat >>conftest.$ac_ext <<_ACEOF
4601 /* end confdefs.h. */
4602 int main() { return 0; }
4603 _ACEOF
4604 rm -f conftest$ac_exeext
4605 if { (ac_try="$ac_link"
4606 case "(($ac_try" in
4607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4608 *) ac_try_echo=$ac_try;;
4609 esac
4610 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4611 (eval "$ac_link") 2>&5
4612 ac_status=$?
4613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4614 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4615 { (case "(($ac_try" in
4616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4617 *) ac_try_echo=$ac_try;;
4618 esac
4619 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4620 (eval "$ac_try") 2>&5
4621 ac_status=$?
4622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4623 (exit $ac_status); }; }; then
4624 ac_cv_opt_olimit_ok=yes
4625 else
4626 echo "$as_me: program exited with status $ac_status" >&5
4627 echo "$as_me: failed program was:" >&5
4628 sed 's/^/| /' conftest.$ac_ext >&5
4630 ( exit $ac_status )
4631 ac_cv_opt_olimit_ok=no
4633 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4637 CC="$ac_save_cc"
4640 { echo "$as_me:$LINENO: result: $ac_cv_opt_olimit_ok" >&5
4641 echo "${ECHO_T}$ac_cv_opt_olimit_ok" >&6; }
4642 if test $ac_cv_opt_olimit_ok = yes; then
4643 case $ac_sys_system in
4644 # XXX is this branch needed? On MacOSX 10.2.2 the result of the
4645 # olimit_ok test is "no". Is it "yes" in some other Darwin-esque
4646 # environment?
4647 Darwin*)
4650 BASECFLAGS="$BASECFLAGS -OPT:Olimit=0"
4652 esac
4653 else
4654 { echo "$as_me:$LINENO: checking whether $CC accepts -Olimit 1500" >&5
4655 echo $ECHO_N "checking whether $CC accepts -Olimit 1500... $ECHO_C" >&6; }
4656 if test "${ac_cv_olimit_ok+set}" = set; then
4657 echo $ECHO_N "(cached) $ECHO_C" >&6
4658 else
4659 ac_save_cc="$CC"
4660 CC="$CC -Olimit 1500"
4661 if test "$cross_compiling" = yes; then
4662 ac_cv_olimit_ok=no
4663 else
4664 cat >conftest.$ac_ext <<_ACEOF
4665 /* confdefs.h. */
4666 _ACEOF
4667 cat confdefs.h >>conftest.$ac_ext
4668 cat >>conftest.$ac_ext <<_ACEOF
4669 /* end confdefs.h. */
4670 int main() { return 0; }
4671 _ACEOF
4672 rm -f conftest$ac_exeext
4673 if { (ac_try="$ac_link"
4674 case "(($ac_try" in
4675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4676 *) ac_try_echo=$ac_try;;
4677 esac
4678 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4679 (eval "$ac_link") 2>&5
4680 ac_status=$?
4681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4682 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4683 { (case "(($ac_try" in
4684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4685 *) ac_try_echo=$ac_try;;
4686 esac
4687 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4688 (eval "$ac_try") 2>&5
4689 ac_status=$?
4690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4691 (exit $ac_status); }; }; then
4692 ac_cv_olimit_ok=yes
4693 else
4694 echo "$as_me: program exited with status $ac_status" >&5
4695 echo "$as_me: failed program was:" >&5
4696 sed 's/^/| /' conftest.$ac_ext >&5
4698 ( exit $ac_status )
4699 ac_cv_olimit_ok=no
4701 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4705 CC="$ac_save_cc"
4708 { echo "$as_me:$LINENO: result: $ac_cv_olimit_ok" >&5
4709 echo "${ECHO_T}$ac_cv_olimit_ok" >&6; }
4710 if test $ac_cv_olimit_ok = yes; then
4711 BASECFLAGS="$BASECFLAGS -Olimit 1500"
4715 # Check whether GCC supports PyArg_ParseTuple format
4716 if test "$GCC" = "yes"
4717 then
4718 { echo "$as_me:$LINENO: checking whether gcc supports ParseTuple __format__" >&5
4719 echo $ECHO_N "checking whether gcc supports ParseTuple __format__... $ECHO_C" >&6; }
4720 save_CFLAGS=$CFLAGS
4721 CFLAGS="$CFLAGS -Werror"
4722 cat >conftest.$ac_ext <<_ACEOF
4723 /* confdefs.h. */
4724 _ACEOF
4725 cat confdefs.h >>conftest.$ac_ext
4726 cat >>conftest.$ac_ext <<_ACEOF
4727 /* end confdefs.h. */
4729 void f(char*,...)__attribute((format(PyArg_ParseTuple, 1, 2)));
4732 main ()
4736 return 0;
4738 _ACEOF
4739 rm -f conftest.$ac_objext
4740 if { (ac_try="$ac_compile"
4741 case "(($ac_try" in
4742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4743 *) ac_try_echo=$ac_try;;
4744 esac
4745 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4746 (eval "$ac_compile") 2>conftest.er1
4747 ac_status=$?
4748 grep -v '^ *+' conftest.er1 >conftest.err
4749 rm -f conftest.er1
4750 cat conftest.err >&5
4751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4752 (exit $ac_status); } && {
4753 test -z "$ac_c_werror_flag" ||
4754 test ! -s conftest.err
4755 } && test -s conftest.$ac_objext; then
4757 cat >>confdefs.h <<\_ACEOF
4758 #define HAVE_ATTRIBUTE_FORMAT_PARSETUPLE 1
4759 _ACEOF
4761 { echo "$as_me:$LINENO: result: yes" >&5
4762 echo "${ECHO_T}yes" >&6; }
4763 else
4764 echo "$as_me: failed program was:" >&5
4765 sed 's/^/| /' conftest.$ac_ext >&5
4767 { echo "$as_me:$LINENO: result: no" >&5
4768 echo "${ECHO_T}no" >&6; }
4772 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4773 CFLAGS=$save_CFLAGS
4776 # On some compilers, pthreads are available without further options
4777 # (e.g. MacOS X). On some of these systems, the compiler will not
4778 # complain if unaccepted options are passed (e.g. gcc on Mac OS X).
4779 # So we have to see first whether pthreads are available without
4780 # options before we can check whether -Kpthread improves anything.
4781 { echo "$as_me:$LINENO: checking whether pthreads are available without options" >&5
4782 echo $ECHO_N "checking whether pthreads are available without options... $ECHO_C" >&6; }
4783 if test "${ac_cv_pthread_is_default+set}" = set; then
4784 echo $ECHO_N "(cached) $ECHO_C" >&6
4785 else
4786 if test "$cross_compiling" = yes; then
4787 ac_cv_pthread_is_default=no
4788 else
4789 cat >conftest.$ac_ext <<_ACEOF
4790 /* confdefs.h. */
4791 _ACEOF
4792 cat confdefs.h >>conftest.$ac_ext
4793 cat >>conftest.$ac_ext <<_ACEOF
4794 /* end confdefs.h. */
4796 #include <pthread.h>
4798 void* routine(void* p){return NULL;}
4800 int main(){
4801 pthread_t p;
4802 if(pthread_create(&p,NULL,routine,NULL)!=0)
4803 return 1;
4804 (void)pthread_detach(p);
4805 return 0;
4808 _ACEOF
4809 rm -f conftest$ac_exeext
4810 if { (ac_try="$ac_link"
4811 case "(($ac_try" in
4812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4813 *) ac_try_echo=$ac_try;;
4814 esac
4815 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4816 (eval "$ac_link") 2>&5
4817 ac_status=$?
4818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4819 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4820 { (case "(($ac_try" in
4821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4822 *) ac_try_echo=$ac_try;;
4823 esac
4824 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4825 (eval "$ac_try") 2>&5
4826 ac_status=$?
4827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4828 (exit $ac_status); }; }; then
4830 ac_cv_pthread_is_default=yes
4831 ac_cv_kthread=no
4832 ac_cv_pthread=no
4834 else
4835 echo "$as_me: program exited with status $ac_status" >&5
4836 echo "$as_me: failed program was:" >&5
4837 sed 's/^/| /' conftest.$ac_ext >&5
4839 ( exit $ac_status )
4840 ac_cv_pthread_is_default=no
4842 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4849 { echo "$as_me:$LINENO: result: $ac_cv_pthread_is_default" >&5
4850 echo "${ECHO_T}$ac_cv_pthread_is_default" >&6; }
4853 if test $ac_cv_pthread_is_default = yes
4854 then
4855 ac_cv_kpthread=no
4856 else
4857 # -Kpthread, if available, provides the right #defines
4858 # and linker options to make pthread_create available
4859 # Some compilers won't report that they do not support -Kpthread,
4860 # so we need to run a program to see whether it really made the
4861 # function available.
4862 { echo "$as_me:$LINENO: checking whether $CC accepts -Kpthread" >&5
4863 echo $ECHO_N "checking whether $CC accepts -Kpthread... $ECHO_C" >&6; }
4864 if test "${ac_cv_kpthread+set}" = set; then
4865 echo $ECHO_N "(cached) $ECHO_C" >&6
4866 else
4867 ac_save_cc="$CC"
4868 CC="$CC -Kpthread"
4869 if test "$cross_compiling" = yes; then
4870 ac_cv_kpthread=no
4871 else
4872 cat >conftest.$ac_ext <<_ACEOF
4873 /* confdefs.h. */
4874 _ACEOF
4875 cat confdefs.h >>conftest.$ac_ext
4876 cat >>conftest.$ac_ext <<_ACEOF
4877 /* end confdefs.h. */
4879 #include <pthread.h>
4881 void* routine(void* p){return NULL;}
4883 int main(){
4884 pthread_t p;
4885 if(pthread_create(&p,NULL,routine,NULL)!=0)
4886 return 1;
4887 (void)pthread_detach(p);
4888 return 0;
4891 _ACEOF
4892 rm -f conftest$ac_exeext
4893 if { (ac_try="$ac_link"
4894 case "(($ac_try" in
4895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4896 *) ac_try_echo=$ac_try;;
4897 esac
4898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4899 (eval "$ac_link") 2>&5
4900 ac_status=$?
4901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4902 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4903 { (case "(($ac_try" in
4904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4905 *) ac_try_echo=$ac_try;;
4906 esac
4907 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4908 (eval "$ac_try") 2>&5
4909 ac_status=$?
4910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4911 (exit $ac_status); }; }; then
4912 ac_cv_kpthread=yes
4913 else
4914 echo "$as_me: program exited with status $ac_status" >&5
4915 echo "$as_me: failed program was:" >&5
4916 sed 's/^/| /' conftest.$ac_ext >&5
4918 ( exit $ac_status )
4919 ac_cv_kpthread=no
4921 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4925 CC="$ac_save_cc"
4928 { echo "$as_me:$LINENO: result: $ac_cv_kpthread" >&5
4929 echo "${ECHO_T}$ac_cv_kpthread" >&6; }
4932 if test $ac_cv_kpthread = no -a $ac_cv_pthread_is_default = no
4933 then
4934 # -Kthread, if available, provides the right #defines
4935 # and linker options to make pthread_create available
4936 # Some compilers won't report that they do not support -Kthread,
4937 # so we need to run a program to see whether it really made the
4938 # function available.
4939 { echo "$as_me:$LINENO: checking whether $CC accepts -Kthread" >&5
4940 echo $ECHO_N "checking whether $CC accepts -Kthread... $ECHO_C" >&6; }
4941 if test "${ac_cv_kthread+set}" = set; then
4942 echo $ECHO_N "(cached) $ECHO_C" >&6
4943 else
4944 ac_save_cc="$CC"
4945 CC="$CC -Kthread"
4946 if test "$cross_compiling" = yes; then
4947 ac_cv_kthread=no
4948 else
4949 cat >conftest.$ac_ext <<_ACEOF
4950 /* confdefs.h. */
4951 _ACEOF
4952 cat confdefs.h >>conftest.$ac_ext
4953 cat >>conftest.$ac_ext <<_ACEOF
4954 /* end confdefs.h. */
4956 #include <pthread.h>
4958 void* routine(void* p){return NULL;}
4960 int main(){
4961 pthread_t p;
4962 if(pthread_create(&p,NULL,routine,NULL)!=0)
4963 return 1;
4964 (void)pthread_detach(p);
4965 return 0;
4968 _ACEOF
4969 rm -f conftest$ac_exeext
4970 if { (ac_try="$ac_link"
4971 case "(($ac_try" in
4972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4973 *) ac_try_echo=$ac_try;;
4974 esac
4975 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4976 (eval "$ac_link") 2>&5
4977 ac_status=$?
4978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4979 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4980 { (case "(($ac_try" in
4981 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4982 *) ac_try_echo=$ac_try;;
4983 esac
4984 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4985 (eval "$ac_try") 2>&5
4986 ac_status=$?
4987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4988 (exit $ac_status); }; }; then
4989 ac_cv_kthread=yes
4990 else
4991 echo "$as_me: program exited with status $ac_status" >&5
4992 echo "$as_me: failed program was:" >&5
4993 sed 's/^/| /' conftest.$ac_ext >&5
4995 ( exit $ac_status )
4996 ac_cv_kthread=no
4998 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5002 CC="$ac_save_cc"
5005 { echo "$as_me:$LINENO: result: $ac_cv_kthread" >&5
5006 echo "${ECHO_T}$ac_cv_kthread" >&6; }
5009 if test $ac_cv_kthread = no -a $ac_cv_pthread_is_default = no
5010 then
5011 # -pthread, if available, provides the right #defines
5012 # and linker options to make pthread_create available
5013 # Some compilers won't report that they do not support -pthread,
5014 # so we need to run a program to see whether it really made the
5015 # function available.
5016 { echo "$as_me:$LINENO: checking whether $CC accepts -pthread" >&5
5017 echo $ECHO_N "checking whether $CC accepts -pthread... $ECHO_C" >&6; }
5018 if test "${ac_cv_thread+set}" = set; then
5019 echo $ECHO_N "(cached) $ECHO_C" >&6
5020 else
5021 ac_save_cc="$CC"
5022 CC="$CC -pthread"
5023 if test "$cross_compiling" = yes; then
5024 ac_cv_pthread=no
5025 else
5026 cat >conftest.$ac_ext <<_ACEOF
5027 /* confdefs.h. */
5028 _ACEOF
5029 cat confdefs.h >>conftest.$ac_ext
5030 cat >>conftest.$ac_ext <<_ACEOF
5031 /* end confdefs.h. */
5033 #include <pthread.h>
5035 void* routine(void* p){return NULL;}
5037 int main(){
5038 pthread_t p;
5039 if(pthread_create(&p,NULL,routine,NULL)!=0)
5040 return 1;
5041 (void)pthread_detach(p);
5042 return 0;
5045 _ACEOF
5046 rm -f conftest$ac_exeext
5047 if { (ac_try="$ac_link"
5048 case "(($ac_try" in
5049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5050 *) ac_try_echo=$ac_try;;
5051 esac
5052 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5053 (eval "$ac_link") 2>&5
5054 ac_status=$?
5055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5056 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5057 { (case "(($ac_try" in
5058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5059 *) ac_try_echo=$ac_try;;
5060 esac
5061 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5062 (eval "$ac_try") 2>&5
5063 ac_status=$?
5064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5065 (exit $ac_status); }; }; then
5066 ac_cv_pthread=yes
5067 else
5068 echo "$as_me: program exited with status $ac_status" >&5
5069 echo "$as_me: failed program was:" >&5
5070 sed 's/^/| /' conftest.$ac_ext >&5
5072 ( exit $ac_status )
5073 ac_cv_pthread=no
5075 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5079 CC="$ac_save_cc"
5082 { echo "$as_me:$LINENO: result: $ac_cv_pthread" >&5
5083 echo "${ECHO_T}$ac_cv_pthread" >&6; }
5086 # If we have set a CC compiler flag for thread support then
5087 # check if it works for CXX, too.
5088 ac_cv_cxx_thread=no
5089 if test ! -z "$CXX"
5090 then
5091 { echo "$as_me:$LINENO: checking whether $CXX also accepts flags for thread support" >&5
5092 echo $ECHO_N "checking whether $CXX also accepts flags for thread support... $ECHO_C" >&6; }
5093 ac_save_cxx="$CXX"
5095 if test "$ac_cv_kpthread" = "yes"
5096 then
5097 CXX="$CXX -Kpthread"
5098 ac_cv_cxx_thread=yes
5099 elif test "$ac_cv_kthread" = "yes"
5100 then
5101 CXX="$CXX -Kthread"
5102 ac_cv_cxx_thread=yes
5103 elif test "$ac_cv_pthread" = "yes"
5104 then
5105 CXX="$CXX -pthread"
5106 ac_cv_cxx_thread=yes
5109 if test $ac_cv_cxx_thread = yes
5110 then
5111 echo 'void foo();int main(){foo();}void foo(){}' > conftest.$ac_ext
5112 $CXX -c conftest.$ac_ext 2>&5
5113 if $CXX -o conftest$ac_exeext conftest.$ac_objext 2>&5 \
5114 && test -s conftest$ac_exeext && ./conftest$ac_exeext
5115 then
5116 ac_cv_cxx_thread=yes
5117 else
5118 ac_cv_cxx_thread=no
5120 rm -fr conftest*
5122 { echo "$as_me:$LINENO: result: $ac_cv_cxx_thread" >&5
5123 echo "${ECHO_T}$ac_cv_cxx_thread" >&6; }
5125 CXX="$ac_save_cxx"
5128 # checks for header files
5129 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5130 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
5131 if test "${ac_cv_header_stdc+set}" = set; then
5132 echo $ECHO_N "(cached) $ECHO_C" >&6
5133 else
5134 cat >conftest.$ac_ext <<_ACEOF
5135 /* confdefs.h. */
5136 _ACEOF
5137 cat confdefs.h >>conftest.$ac_ext
5138 cat >>conftest.$ac_ext <<_ACEOF
5139 /* end confdefs.h. */
5140 #include <stdlib.h>
5141 #include <stdarg.h>
5142 #include <string.h>
5143 #include <float.h>
5146 main ()
5150 return 0;
5152 _ACEOF
5153 rm -f conftest.$ac_objext
5154 if { (ac_try="$ac_compile"
5155 case "(($ac_try" in
5156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5157 *) ac_try_echo=$ac_try;;
5158 esac
5159 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5160 (eval "$ac_compile") 2>conftest.er1
5161 ac_status=$?
5162 grep -v '^ *+' conftest.er1 >conftest.err
5163 rm -f conftest.er1
5164 cat conftest.err >&5
5165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5166 (exit $ac_status); } && {
5167 test -z "$ac_c_werror_flag" ||
5168 test ! -s conftest.err
5169 } && test -s conftest.$ac_objext; then
5170 ac_cv_header_stdc=yes
5171 else
5172 echo "$as_me: failed program was:" >&5
5173 sed 's/^/| /' conftest.$ac_ext >&5
5175 ac_cv_header_stdc=no
5178 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5180 if test $ac_cv_header_stdc = yes; then
5181 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5182 cat >conftest.$ac_ext <<_ACEOF
5183 /* confdefs.h. */
5184 _ACEOF
5185 cat confdefs.h >>conftest.$ac_ext
5186 cat >>conftest.$ac_ext <<_ACEOF
5187 /* end confdefs.h. */
5188 #include <string.h>
5190 _ACEOF
5191 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5192 $EGREP "memchr" >/dev/null 2>&1; then
5194 else
5195 ac_cv_header_stdc=no
5197 rm -f conftest*
5201 if test $ac_cv_header_stdc = yes; then
5202 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5203 cat >conftest.$ac_ext <<_ACEOF
5204 /* confdefs.h. */
5205 _ACEOF
5206 cat confdefs.h >>conftest.$ac_ext
5207 cat >>conftest.$ac_ext <<_ACEOF
5208 /* end confdefs.h. */
5209 #include <stdlib.h>
5211 _ACEOF
5212 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5213 $EGREP "free" >/dev/null 2>&1; then
5215 else
5216 ac_cv_header_stdc=no
5218 rm -f conftest*
5222 if test $ac_cv_header_stdc = yes; then
5223 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5224 if test "$cross_compiling" = yes; then
5226 else
5227 cat >conftest.$ac_ext <<_ACEOF
5228 /* confdefs.h. */
5229 _ACEOF
5230 cat confdefs.h >>conftest.$ac_ext
5231 cat >>conftest.$ac_ext <<_ACEOF
5232 /* end confdefs.h. */
5233 #include <ctype.h>
5234 #include <stdlib.h>
5235 #if ((' ' & 0x0FF) == 0x020)
5236 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5237 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5238 #else
5239 # define ISLOWER(c) \
5240 (('a' <= (c) && (c) <= 'i') \
5241 || ('j' <= (c) && (c) <= 'r') \
5242 || ('s' <= (c) && (c) <= 'z'))
5243 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5244 #endif
5246 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5248 main ()
5250 int i;
5251 for (i = 0; i < 256; i++)
5252 if (XOR (islower (i), ISLOWER (i))
5253 || toupper (i) != TOUPPER (i))
5254 return 2;
5255 return 0;
5257 _ACEOF
5258 rm -f conftest$ac_exeext
5259 if { (ac_try="$ac_link"
5260 case "(($ac_try" in
5261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5262 *) ac_try_echo=$ac_try;;
5263 esac
5264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5265 (eval "$ac_link") 2>&5
5266 ac_status=$?
5267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5268 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5269 { (case "(($ac_try" in
5270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5271 *) ac_try_echo=$ac_try;;
5272 esac
5273 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5274 (eval "$ac_try") 2>&5
5275 ac_status=$?
5276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5277 (exit $ac_status); }; }; then
5279 else
5280 echo "$as_me: program exited with status $ac_status" >&5
5281 echo "$as_me: failed program was:" >&5
5282 sed 's/^/| /' conftest.$ac_ext >&5
5284 ( exit $ac_status )
5285 ac_cv_header_stdc=no
5287 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5293 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5294 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
5295 if test $ac_cv_header_stdc = yes; then
5297 cat >>confdefs.h <<\_ACEOF
5298 #define STDC_HEADERS 1
5299 _ACEOF
5303 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5313 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5314 inttypes.h stdint.h unistd.h
5316 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5317 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5318 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5319 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5320 echo $ECHO_N "(cached) $ECHO_C" >&6
5321 else
5322 cat >conftest.$ac_ext <<_ACEOF
5323 /* confdefs.h. */
5324 _ACEOF
5325 cat confdefs.h >>conftest.$ac_ext
5326 cat >>conftest.$ac_ext <<_ACEOF
5327 /* end confdefs.h. */
5328 $ac_includes_default
5330 #include <$ac_header>
5331 _ACEOF
5332 rm -f conftest.$ac_objext
5333 if { (ac_try="$ac_compile"
5334 case "(($ac_try" in
5335 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5336 *) ac_try_echo=$ac_try;;
5337 esac
5338 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5339 (eval "$ac_compile") 2>conftest.er1
5340 ac_status=$?
5341 grep -v '^ *+' conftest.er1 >conftest.err
5342 rm -f conftest.er1
5343 cat conftest.err >&5
5344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5345 (exit $ac_status); } && {
5346 test -z "$ac_c_werror_flag" ||
5347 test ! -s conftest.err
5348 } && test -s conftest.$ac_objext; then
5349 eval "$as_ac_Header=yes"
5350 else
5351 echo "$as_me: failed program was:" >&5
5352 sed 's/^/| /' conftest.$ac_ext >&5
5354 eval "$as_ac_Header=no"
5357 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5359 ac_res=`eval echo '${'$as_ac_Header'}'`
5360 { echo "$as_me:$LINENO: result: $ac_res" >&5
5361 echo "${ECHO_T}$ac_res" >&6; }
5362 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5363 cat >>confdefs.h <<_ACEOF
5364 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5365 _ACEOF
5369 done
5425 for ac_header in asm/types.h conio.h curses.h direct.h dlfcn.h errno.h \
5426 fcntl.h grp.h \
5427 ieeefp.h io.h langinfo.h libintl.h ncurses.h poll.h process.h pthread.h \
5428 shadow.h signal.h stdint.h stropts.h termios.h thread.h \
5429 unistd.h utime.h \
5430 sys/audioio.h sys/bsdtty.h sys/epoll.h sys/event.h sys/file.h sys/loadavg.h \
5431 sys/lock.h sys/mkdev.h sys/modem.h \
5432 sys/param.h sys/poll.h sys/select.h sys/socket.h sys/statvfs.h sys/stat.h \
5433 sys/time.h \
5434 sys/times.h sys/types.h sys/un.h sys/utsname.h sys/wait.h pty.h libutil.h \
5435 sys/resource.h netpacket/packet.h sysexits.h bluetooth.h \
5436 bluetooth/bluetooth.h linux/tipc.h
5438 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5439 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5440 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5441 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5442 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5443 echo $ECHO_N "(cached) $ECHO_C" >&6
5445 ac_res=`eval echo '${'$as_ac_Header'}'`
5446 { echo "$as_me:$LINENO: result: $ac_res" >&5
5447 echo "${ECHO_T}$ac_res" >&6; }
5448 else
5449 # Is the header compilable?
5450 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5451 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5452 cat >conftest.$ac_ext <<_ACEOF
5453 /* confdefs.h. */
5454 _ACEOF
5455 cat confdefs.h >>conftest.$ac_ext
5456 cat >>conftest.$ac_ext <<_ACEOF
5457 /* end confdefs.h. */
5458 $ac_includes_default
5459 #include <$ac_header>
5460 _ACEOF
5461 rm -f conftest.$ac_objext
5462 if { (ac_try="$ac_compile"
5463 case "(($ac_try" in
5464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5465 *) ac_try_echo=$ac_try;;
5466 esac
5467 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5468 (eval "$ac_compile") 2>conftest.er1
5469 ac_status=$?
5470 grep -v '^ *+' conftest.er1 >conftest.err
5471 rm -f conftest.er1
5472 cat conftest.err >&5
5473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5474 (exit $ac_status); } && {
5475 test -z "$ac_c_werror_flag" ||
5476 test ! -s conftest.err
5477 } && test -s conftest.$ac_objext; then
5478 ac_header_compiler=yes
5479 else
5480 echo "$as_me: failed program was:" >&5
5481 sed 's/^/| /' conftest.$ac_ext >&5
5483 ac_header_compiler=no
5486 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5487 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5488 echo "${ECHO_T}$ac_header_compiler" >&6; }
5490 # Is the header present?
5491 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5492 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5493 cat >conftest.$ac_ext <<_ACEOF
5494 /* confdefs.h. */
5495 _ACEOF
5496 cat confdefs.h >>conftest.$ac_ext
5497 cat >>conftest.$ac_ext <<_ACEOF
5498 /* end confdefs.h. */
5499 #include <$ac_header>
5500 _ACEOF
5501 if { (ac_try="$ac_cpp conftest.$ac_ext"
5502 case "(($ac_try" in
5503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5504 *) ac_try_echo=$ac_try;;
5505 esac
5506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5507 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5508 ac_status=$?
5509 grep -v '^ *+' conftest.er1 >conftest.err
5510 rm -f conftest.er1
5511 cat conftest.err >&5
5512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5513 (exit $ac_status); } >/dev/null && {
5514 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5515 test ! -s conftest.err
5516 }; then
5517 ac_header_preproc=yes
5518 else
5519 echo "$as_me: failed program was:" >&5
5520 sed 's/^/| /' conftest.$ac_ext >&5
5522 ac_header_preproc=no
5525 rm -f conftest.err conftest.$ac_ext
5526 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5527 echo "${ECHO_T}$ac_header_preproc" >&6; }
5529 # So? What about this header?
5530 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5531 yes:no: )
5532 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5533 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5534 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5535 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5536 ac_header_preproc=yes
5538 no:yes:* )
5539 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5540 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5541 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5542 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5543 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5544 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5545 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5546 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5547 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5548 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5549 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5550 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5551 ( cat <<\_ASBOX
5552 ## ------------------------------------------------ ##
5553 ## Report this to http://www.python.org/python-bugs ##
5554 ## ------------------------------------------------ ##
5555 _ASBOX
5556 ) | sed "s/^/$as_me: WARNING: /" >&2
5558 esac
5559 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5560 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5561 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5562 echo $ECHO_N "(cached) $ECHO_C" >&6
5563 else
5564 eval "$as_ac_Header=\$ac_header_preproc"
5566 ac_res=`eval echo '${'$as_ac_Header'}'`
5567 { echo "$as_me:$LINENO: result: $ac_res" >&5
5568 echo "${ECHO_T}$ac_res" >&6; }
5571 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5572 cat >>confdefs.h <<_ACEOF
5573 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5574 _ACEOF
5578 done
5585 ac_header_dirent=no
5586 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
5587 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
5588 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
5589 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
5590 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5591 echo $ECHO_N "(cached) $ECHO_C" >&6
5592 else
5593 cat >conftest.$ac_ext <<_ACEOF
5594 /* confdefs.h. */
5595 _ACEOF
5596 cat confdefs.h >>conftest.$ac_ext
5597 cat >>conftest.$ac_ext <<_ACEOF
5598 /* end confdefs.h. */
5599 #include <sys/types.h>
5600 #include <$ac_hdr>
5603 main ()
5605 if ((DIR *) 0)
5606 return 0;
5608 return 0;
5610 _ACEOF
5611 rm -f conftest.$ac_objext
5612 if { (ac_try="$ac_compile"
5613 case "(($ac_try" in
5614 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5615 *) ac_try_echo=$ac_try;;
5616 esac
5617 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5618 (eval "$ac_compile") 2>conftest.er1
5619 ac_status=$?
5620 grep -v '^ *+' conftest.er1 >conftest.err
5621 rm -f conftest.er1
5622 cat conftest.err >&5
5623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5624 (exit $ac_status); } && {
5625 test -z "$ac_c_werror_flag" ||
5626 test ! -s conftest.err
5627 } && test -s conftest.$ac_objext; then
5628 eval "$as_ac_Header=yes"
5629 else
5630 echo "$as_me: failed program was:" >&5
5631 sed 's/^/| /' conftest.$ac_ext >&5
5633 eval "$as_ac_Header=no"
5636 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5638 ac_res=`eval echo '${'$as_ac_Header'}'`
5639 { echo "$as_me:$LINENO: result: $ac_res" >&5
5640 echo "${ECHO_T}$ac_res" >&6; }
5641 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5642 cat >>confdefs.h <<_ACEOF
5643 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
5644 _ACEOF
5646 ac_header_dirent=$ac_hdr; break
5649 done
5650 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
5651 if test $ac_header_dirent = dirent.h; then
5652 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
5653 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
5654 if test "${ac_cv_search_opendir+set}" = set; then
5655 echo $ECHO_N "(cached) $ECHO_C" >&6
5656 else
5657 ac_func_search_save_LIBS=$LIBS
5658 cat >conftest.$ac_ext <<_ACEOF
5659 /* confdefs.h. */
5660 _ACEOF
5661 cat confdefs.h >>conftest.$ac_ext
5662 cat >>conftest.$ac_ext <<_ACEOF
5663 /* end confdefs.h. */
5665 /* Override any GCC internal prototype to avoid an error.
5666 Use char because int might match the return type of a GCC
5667 builtin and then its argument prototype would still apply. */
5668 #ifdef __cplusplus
5669 extern "C"
5670 #endif
5671 char opendir ();
5673 main ()
5675 return opendir ();
5677 return 0;
5679 _ACEOF
5680 for ac_lib in '' dir; do
5681 if test -z "$ac_lib"; then
5682 ac_res="none required"
5683 else
5684 ac_res=-l$ac_lib
5685 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5687 rm -f conftest.$ac_objext conftest$ac_exeext
5688 if { (ac_try="$ac_link"
5689 case "(($ac_try" in
5690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5691 *) ac_try_echo=$ac_try;;
5692 esac
5693 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5694 (eval "$ac_link") 2>conftest.er1
5695 ac_status=$?
5696 grep -v '^ *+' conftest.er1 >conftest.err
5697 rm -f conftest.er1
5698 cat conftest.err >&5
5699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5700 (exit $ac_status); } && {
5701 test -z "$ac_c_werror_flag" ||
5702 test ! -s conftest.err
5703 } && test -s conftest$ac_exeext &&
5704 $as_test_x conftest$ac_exeext; then
5705 ac_cv_search_opendir=$ac_res
5706 else
5707 echo "$as_me: failed program was:" >&5
5708 sed 's/^/| /' conftest.$ac_ext >&5
5713 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5714 conftest$ac_exeext
5715 if test "${ac_cv_search_opendir+set}" = set; then
5716 break
5718 done
5719 if test "${ac_cv_search_opendir+set}" = set; then
5721 else
5722 ac_cv_search_opendir=no
5724 rm conftest.$ac_ext
5725 LIBS=$ac_func_search_save_LIBS
5727 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
5728 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
5729 ac_res=$ac_cv_search_opendir
5730 if test "$ac_res" != no; then
5731 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5735 else
5736 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
5737 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
5738 if test "${ac_cv_search_opendir+set}" = set; then
5739 echo $ECHO_N "(cached) $ECHO_C" >&6
5740 else
5741 ac_func_search_save_LIBS=$LIBS
5742 cat >conftest.$ac_ext <<_ACEOF
5743 /* confdefs.h. */
5744 _ACEOF
5745 cat confdefs.h >>conftest.$ac_ext
5746 cat >>conftest.$ac_ext <<_ACEOF
5747 /* end confdefs.h. */
5749 /* Override any GCC internal prototype to avoid an error.
5750 Use char because int might match the return type of a GCC
5751 builtin and then its argument prototype would still apply. */
5752 #ifdef __cplusplus
5753 extern "C"
5754 #endif
5755 char opendir ();
5757 main ()
5759 return opendir ();
5761 return 0;
5763 _ACEOF
5764 for ac_lib in '' x; do
5765 if test -z "$ac_lib"; then
5766 ac_res="none required"
5767 else
5768 ac_res=-l$ac_lib
5769 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5771 rm -f conftest.$ac_objext conftest$ac_exeext
5772 if { (ac_try="$ac_link"
5773 case "(($ac_try" in
5774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5775 *) ac_try_echo=$ac_try;;
5776 esac
5777 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5778 (eval "$ac_link") 2>conftest.er1
5779 ac_status=$?
5780 grep -v '^ *+' conftest.er1 >conftest.err
5781 rm -f conftest.er1
5782 cat conftest.err >&5
5783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5784 (exit $ac_status); } && {
5785 test -z "$ac_c_werror_flag" ||
5786 test ! -s conftest.err
5787 } && test -s conftest$ac_exeext &&
5788 $as_test_x conftest$ac_exeext; then
5789 ac_cv_search_opendir=$ac_res
5790 else
5791 echo "$as_me: failed program was:" >&5
5792 sed 's/^/| /' conftest.$ac_ext >&5
5797 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5798 conftest$ac_exeext
5799 if test "${ac_cv_search_opendir+set}" = set; then
5800 break
5802 done
5803 if test "${ac_cv_search_opendir+set}" = set; then
5805 else
5806 ac_cv_search_opendir=no
5808 rm conftest.$ac_ext
5809 LIBS=$ac_func_search_save_LIBS
5811 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
5812 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
5813 ac_res=$ac_cv_search_opendir
5814 if test "$ac_res" != no; then
5815 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5821 { echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
5822 echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6; }
5823 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
5824 echo $ECHO_N "(cached) $ECHO_C" >&6
5825 else
5826 cat >conftest.$ac_ext <<_ACEOF
5827 /* confdefs.h. */
5828 _ACEOF
5829 cat confdefs.h >>conftest.$ac_ext
5830 cat >>conftest.$ac_ext <<_ACEOF
5831 /* end confdefs.h. */
5832 #include <sys/types.h>
5834 main ()
5836 return makedev(0, 0);
5838 return 0;
5840 _ACEOF
5841 rm -f conftest.$ac_objext conftest$ac_exeext
5842 if { (ac_try="$ac_link"
5843 case "(($ac_try" in
5844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5845 *) ac_try_echo=$ac_try;;
5846 esac
5847 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5848 (eval "$ac_link") 2>conftest.er1
5849 ac_status=$?
5850 grep -v '^ *+' conftest.er1 >conftest.err
5851 rm -f conftest.er1
5852 cat conftest.err >&5
5853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5854 (exit $ac_status); } && {
5855 test -z "$ac_c_werror_flag" ||
5856 test ! -s conftest.err
5857 } && test -s conftest$ac_exeext &&
5858 $as_test_x conftest$ac_exeext; then
5859 ac_cv_header_sys_types_h_makedev=yes
5860 else
5861 echo "$as_me: failed program was:" >&5
5862 sed 's/^/| /' conftest.$ac_ext >&5
5864 ac_cv_header_sys_types_h_makedev=no
5867 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5868 conftest$ac_exeext conftest.$ac_ext
5871 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
5872 echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6; }
5874 if test $ac_cv_header_sys_types_h_makedev = no; then
5875 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
5876 { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
5877 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
5878 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
5879 echo $ECHO_N "(cached) $ECHO_C" >&6
5881 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
5882 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
5883 else
5884 # Is the header compilable?
5885 { echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
5886 echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6; }
5887 cat >conftest.$ac_ext <<_ACEOF
5888 /* confdefs.h. */
5889 _ACEOF
5890 cat confdefs.h >>conftest.$ac_ext
5891 cat >>conftest.$ac_ext <<_ACEOF
5892 /* end confdefs.h. */
5893 $ac_includes_default
5894 #include <sys/mkdev.h>
5895 _ACEOF
5896 rm -f conftest.$ac_objext
5897 if { (ac_try="$ac_compile"
5898 case "(($ac_try" in
5899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5900 *) ac_try_echo=$ac_try;;
5901 esac
5902 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5903 (eval "$ac_compile") 2>conftest.er1
5904 ac_status=$?
5905 grep -v '^ *+' conftest.er1 >conftest.err
5906 rm -f conftest.er1
5907 cat conftest.err >&5
5908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5909 (exit $ac_status); } && {
5910 test -z "$ac_c_werror_flag" ||
5911 test ! -s conftest.err
5912 } && test -s conftest.$ac_objext; then
5913 ac_header_compiler=yes
5914 else
5915 echo "$as_me: failed program was:" >&5
5916 sed 's/^/| /' conftest.$ac_ext >&5
5918 ac_header_compiler=no
5921 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5922 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5923 echo "${ECHO_T}$ac_header_compiler" >&6; }
5925 # Is the header present?
5926 { echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
5927 echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6; }
5928 cat >conftest.$ac_ext <<_ACEOF
5929 /* confdefs.h. */
5930 _ACEOF
5931 cat confdefs.h >>conftest.$ac_ext
5932 cat >>conftest.$ac_ext <<_ACEOF
5933 /* end confdefs.h. */
5934 #include <sys/mkdev.h>
5935 _ACEOF
5936 if { (ac_try="$ac_cpp conftest.$ac_ext"
5937 case "(($ac_try" in
5938 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5939 *) ac_try_echo=$ac_try;;
5940 esac
5941 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5942 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5943 ac_status=$?
5944 grep -v '^ *+' conftest.er1 >conftest.err
5945 rm -f conftest.er1
5946 cat conftest.err >&5
5947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5948 (exit $ac_status); } >/dev/null && {
5949 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5950 test ! -s conftest.err
5951 }; then
5952 ac_header_preproc=yes
5953 else
5954 echo "$as_me: failed program was:" >&5
5955 sed 's/^/| /' conftest.$ac_ext >&5
5957 ac_header_preproc=no
5960 rm -f conftest.err conftest.$ac_ext
5961 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5962 echo "${ECHO_T}$ac_header_preproc" >&6; }
5964 # So? What about this header?
5965 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5966 yes:no: )
5967 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
5968 echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5969 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&5
5970 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&2;}
5971 ac_header_preproc=yes
5973 no:yes:* )
5974 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
5975 echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
5976 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&5
5977 echo "$as_me: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&2;}
5978 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: see the Autoconf documentation" >&5
5979 echo "$as_me: WARNING: sys/mkdev.h: see the Autoconf documentation" >&2;}
5980 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&5
5981 echo "$as_me: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&2;}
5982 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
5983 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
5984 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&5
5985 echo "$as_me: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&2;}
5986 ( cat <<\_ASBOX
5987 ## ------------------------------------------------ ##
5988 ## Report this to http://www.python.org/python-bugs ##
5989 ## ------------------------------------------------ ##
5990 _ASBOX
5991 ) | sed "s/^/$as_me: WARNING: /" >&2
5993 esac
5994 { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
5995 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
5996 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
5997 echo $ECHO_N "(cached) $ECHO_C" >&6
5998 else
5999 ac_cv_header_sys_mkdev_h=$ac_header_preproc
6001 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
6002 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
6005 if test $ac_cv_header_sys_mkdev_h = yes; then
6007 cat >>confdefs.h <<\_ACEOF
6008 #define MAJOR_IN_MKDEV 1
6009 _ACEOF
6015 if test $ac_cv_header_sys_mkdev_h = no; then
6016 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
6017 { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
6018 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
6019 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
6020 echo $ECHO_N "(cached) $ECHO_C" >&6
6022 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
6023 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
6024 else
6025 # Is the header compilable?
6026 { echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
6027 echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6; }
6028 cat >conftest.$ac_ext <<_ACEOF
6029 /* confdefs.h. */
6030 _ACEOF
6031 cat confdefs.h >>conftest.$ac_ext
6032 cat >>conftest.$ac_ext <<_ACEOF
6033 /* end confdefs.h. */
6034 $ac_includes_default
6035 #include <sys/sysmacros.h>
6036 _ACEOF
6037 rm -f conftest.$ac_objext
6038 if { (ac_try="$ac_compile"
6039 case "(($ac_try" in
6040 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6041 *) ac_try_echo=$ac_try;;
6042 esac
6043 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6044 (eval "$ac_compile") 2>conftest.er1
6045 ac_status=$?
6046 grep -v '^ *+' conftest.er1 >conftest.err
6047 rm -f conftest.er1
6048 cat conftest.err >&5
6049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6050 (exit $ac_status); } && {
6051 test -z "$ac_c_werror_flag" ||
6052 test ! -s conftest.err
6053 } && test -s conftest.$ac_objext; then
6054 ac_header_compiler=yes
6055 else
6056 echo "$as_me: failed program was:" >&5
6057 sed 's/^/| /' conftest.$ac_ext >&5
6059 ac_header_compiler=no
6062 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6063 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6064 echo "${ECHO_T}$ac_header_compiler" >&6; }
6066 # Is the header present?
6067 { echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
6068 echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6; }
6069 cat >conftest.$ac_ext <<_ACEOF
6070 /* confdefs.h. */
6071 _ACEOF
6072 cat confdefs.h >>conftest.$ac_ext
6073 cat >>conftest.$ac_ext <<_ACEOF
6074 /* end confdefs.h. */
6075 #include <sys/sysmacros.h>
6076 _ACEOF
6077 if { (ac_try="$ac_cpp conftest.$ac_ext"
6078 case "(($ac_try" in
6079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6080 *) ac_try_echo=$ac_try;;
6081 esac
6082 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6083 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6084 ac_status=$?
6085 grep -v '^ *+' conftest.er1 >conftest.err
6086 rm -f conftest.er1
6087 cat conftest.err >&5
6088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6089 (exit $ac_status); } >/dev/null && {
6090 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6091 test ! -s conftest.err
6092 }; then
6093 ac_header_preproc=yes
6094 else
6095 echo "$as_me: failed program was:" >&5
6096 sed 's/^/| /' conftest.$ac_ext >&5
6098 ac_header_preproc=no
6101 rm -f conftest.err conftest.$ac_ext
6102 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6103 echo "${ECHO_T}$ac_header_preproc" >&6; }
6105 # So? What about this header?
6106 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6107 yes:no: )
6108 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
6109 echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6110 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&5
6111 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&2;}
6112 ac_header_preproc=yes
6114 no:yes:* )
6115 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
6116 echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
6117 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&5
6118 echo "$as_me: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&2;}
6119 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&5
6120 echo "$as_me: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&2;}
6121 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&5
6122 echo "$as_me: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&2;}
6123 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
6124 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
6125 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&5
6126 echo "$as_me: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&2;}
6127 ( cat <<\_ASBOX
6128 ## ------------------------------------------------ ##
6129 ## Report this to http://www.python.org/python-bugs ##
6130 ## ------------------------------------------------ ##
6131 _ASBOX
6132 ) | sed "s/^/$as_me: WARNING: /" >&2
6134 esac
6135 { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
6136 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
6137 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
6138 echo $ECHO_N "(cached) $ECHO_C" >&6
6139 else
6140 ac_cv_header_sys_sysmacros_h=$ac_header_preproc
6142 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
6143 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
6146 if test $ac_cv_header_sys_sysmacros_h = yes; then
6148 cat >>confdefs.h <<\_ACEOF
6149 #define MAJOR_IN_SYSMACROS 1
6150 _ACEOF
6159 # On Solaris, term.h requires curses.h
6161 for ac_header in term.h
6163 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6164 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6165 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6166 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6167 echo $ECHO_N "(cached) $ECHO_C" >&6
6168 else
6169 cat >conftest.$ac_ext <<_ACEOF
6170 /* confdefs.h. */
6171 _ACEOF
6172 cat confdefs.h >>conftest.$ac_ext
6173 cat >>conftest.$ac_ext <<_ACEOF
6174 /* end confdefs.h. */
6176 #ifdef HAVE_CURSES_H
6177 #include <curses.h>
6178 #endif
6181 #include <$ac_header>
6182 _ACEOF
6183 rm -f conftest.$ac_objext
6184 if { (ac_try="$ac_compile"
6185 case "(($ac_try" in
6186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6187 *) ac_try_echo=$ac_try;;
6188 esac
6189 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6190 (eval "$ac_compile") 2>conftest.er1
6191 ac_status=$?
6192 grep -v '^ *+' conftest.er1 >conftest.err
6193 rm -f conftest.er1
6194 cat conftest.err >&5
6195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6196 (exit $ac_status); } && {
6197 test -z "$ac_c_werror_flag" ||
6198 test ! -s conftest.err
6199 } && test -s conftest.$ac_objext; then
6200 eval "$as_ac_Header=yes"
6201 else
6202 echo "$as_me: failed program was:" >&5
6203 sed 's/^/| /' conftest.$ac_ext >&5
6205 eval "$as_ac_Header=no"
6208 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6210 ac_res=`eval echo '${'$as_ac_Header'}'`
6211 { echo "$as_me:$LINENO: result: $ac_res" >&5
6212 echo "${ECHO_T}$ac_res" >&6; }
6213 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6214 cat >>confdefs.h <<_ACEOF
6215 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6216 _ACEOF
6220 done
6223 # On Linux, netlink.h requires asm/types.h
6225 for ac_header in linux/netlink.h
6227 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6228 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6229 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6230 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6231 echo $ECHO_N "(cached) $ECHO_C" >&6
6232 else
6233 cat >conftest.$ac_ext <<_ACEOF
6234 /* confdefs.h. */
6235 _ACEOF
6236 cat confdefs.h >>conftest.$ac_ext
6237 cat >>conftest.$ac_ext <<_ACEOF
6238 /* end confdefs.h. */
6240 #ifdef HAVE_ASM_TYPES_H
6241 #include <asm/types.h>
6242 #endif
6243 #ifdef HAVE_SYS_SOCKET_H
6244 #include <sys/socket.h>
6245 #endif
6248 #include <$ac_header>
6249 _ACEOF
6250 rm -f conftest.$ac_objext
6251 if { (ac_try="$ac_compile"
6252 case "(($ac_try" in
6253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6254 *) ac_try_echo=$ac_try;;
6255 esac
6256 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6257 (eval "$ac_compile") 2>conftest.er1
6258 ac_status=$?
6259 grep -v '^ *+' conftest.er1 >conftest.err
6260 rm -f conftest.er1
6261 cat conftest.err >&5
6262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6263 (exit $ac_status); } && {
6264 test -z "$ac_c_werror_flag" ||
6265 test ! -s conftest.err
6266 } && test -s conftest.$ac_objext; then
6267 eval "$as_ac_Header=yes"
6268 else
6269 echo "$as_me: failed program was:" >&5
6270 sed 's/^/| /' conftest.$ac_ext >&5
6272 eval "$as_ac_Header=no"
6275 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6277 ac_res=`eval echo '${'$as_ac_Header'}'`
6278 { echo "$as_me:$LINENO: result: $ac_res" >&5
6279 echo "${ECHO_T}$ac_res" >&6; }
6280 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6281 cat >>confdefs.h <<_ACEOF
6282 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6283 _ACEOF
6287 done
6290 # checks for typedefs
6291 was_it_defined=no
6292 { echo "$as_me:$LINENO: checking for clock_t in time.h" >&5
6293 echo $ECHO_N "checking for clock_t in time.h... $ECHO_C" >&6; }
6294 cat >conftest.$ac_ext <<_ACEOF
6295 /* confdefs.h. */
6296 _ACEOF
6297 cat confdefs.h >>conftest.$ac_ext
6298 cat >>conftest.$ac_ext <<_ACEOF
6299 /* end confdefs.h. */
6300 #include <time.h>
6302 _ACEOF
6303 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6304 $EGREP "clock_t" >/dev/null 2>&1; then
6305 was_it_defined=yes
6306 else
6309 cat >>confdefs.h <<\_ACEOF
6310 #define clock_t long
6311 _ACEOF
6315 rm -f conftest*
6317 { echo "$as_me:$LINENO: result: $was_it_defined" >&5
6318 echo "${ECHO_T}$was_it_defined" >&6; }
6320 # Check whether using makedev requires defining _OSF_SOURCE
6321 { echo "$as_me:$LINENO: checking for makedev" >&5
6322 echo $ECHO_N "checking for makedev... $ECHO_C" >&6; }
6323 cat >conftest.$ac_ext <<_ACEOF
6324 /* confdefs.h. */
6325 _ACEOF
6326 cat confdefs.h >>conftest.$ac_ext
6327 cat >>conftest.$ac_ext <<_ACEOF
6328 /* end confdefs.h. */
6329 #include <sys/types.h>
6331 main ()
6333 makedev(0, 0)
6335 return 0;
6337 _ACEOF
6338 rm -f conftest.$ac_objext conftest$ac_exeext
6339 if { (ac_try="$ac_link"
6340 case "(($ac_try" in
6341 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6342 *) ac_try_echo=$ac_try;;
6343 esac
6344 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6345 (eval "$ac_link") 2>conftest.er1
6346 ac_status=$?
6347 grep -v '^ *+' conftest.er1 >conftest.err
6348 rm -f conftest.er1
6349 cat conftest.err >&5
6350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6351 (exit $ac_status); } && {
6352 test -z "$ac_c_werror_flag" ||
6353 test ! -s conftest.err
6354 } && test -s conftest$ac_exeext &&
6355 $as_test_x conftest$ac_exeext; then
6356 ac_cv_has_makedev=yes
6357 else
6358 echo "$as_me: failed program was:" >&5
6359 sed 's/^/| /' conftest.$ac_ext >&5
6361 ac_cv_has_makedev=no
6364 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6365 conftest$ac_exeext conftest.$ac_ext
6366 if test "$ac_cv_has_makedev" = "no"; then
6367 # we didn't link, try if _OSF_SOURCE will allow us to link
6368 cat >conftest.$ac_ext <<_ACEOF
6369 /* confdefs.h. */
6370 _ACEOF
6371 cat confdefs.h >>conftest.$ac_ext
6372 cat >>conftest.$ac_ext <<_ACEOF
6373 /* end confdefs.h. */
6375 #define _OSF_SOURCE 1
6376 #include <sys/types.h>
6379 main ()
6381 makedev(0, 0)
6383 return 0;
6385 _ACEOF
6386 rm -f conftest.$ac_objext conftest$ac_exeext
6387 if { (ac_try="$ac_link"
6388 case "(($ac_try" in
6389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6390 *) ac_try_echo=$ac_try;;
6391 esac
6392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6393 (eval "$ac_link") 2>conftest.er1
6394 ac_status=$?
6395 grep -v '^ *+' conftest.er1 >conftest.err
6396 rm -f conftest.er1
6397 cat conftest.err >&5
6398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6399 (exit $ac_status); } && {
6400 test -z "$ac_c_werror_flag" ||
6401 test ! -s conftest.err
6402 } && test -s conftest$ac_exeext &&
6403 $as_test_x conftest$ac_exeext; then
6404 ac_cv_has_makedev=yes
6405 else
6406 echo "$as_me: failed program was:" >&5
6407 sed 's/^/| /' conftest.$ac_ext >&5
6409 ac_cv_has_makedev=no
6412 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6413 conftest$ac_exeext conftest.$ac_ext
6414 if test "$ac_cv_has_makedev" = "yes"; then
6416 cat >>confdefs.h <<\_ACEOF
6417 #define _OSF_SOURCE 1
6418 _ACEOF
6422 { echo "$as_me:$LINENO: result: $ac_cv_has_makedev" >&5
6423 echo "${ECHO_T}$ac_cv_has_makedev" >&6; }
6424 if test "$ac_cv_has_makedev" = "yes"; then
6426 cat >>confdefs.h <<\_ACEOF
6427 #define HAVE_MAKEDEV 1
6428 _ACEOF
6432 # Enabling LFS on Solaris (2.6 to 9) with gcc 2.95 triggers a bug in
6433 # the system headers: If _XOPEN_SOURCE and _LARGEFILE_SOURCE are
6434 # defined, but the compiler does not support pragma redefine_extname,
6435 # and _LARGEFILE64_SOURCE is not defined, the headers refer to 64-bit
6436 # structures (such as rlimit64) without declaring them. As a
6437 # work-around, disable LFS on such configurations
6439 use_lfs=yes
6440 { echo "$as_me:$LINENO: checking Solaris LFS bug" >&5
6441 echo $ECHO_N "checking Solaris LFS bug... $ECHO_C" >&6; }
6442 cat >conftest.$ac_ext <<_ACEOF
6443 /* confdefs.h. */
6444 _ACEOF
6445 cat confdefs.h >>conftest.$ac_ext
6446 cat >>conftest.$ac_ext <<_ACEOF
6447 /* end confdefs.h. */
6449 #define _LARGEFILE_SOURCE 1
6450 #define _FILE_OFFSET_BITS 64
6451 #include <sys/resource.h>
6454 main ()
6456 struct rlimit foo;
6458 return 0;
6460 _ACEOF
6461 rm -f conftest.$ac_objext
6462 if { (ac_try="$ac_compile"
6463 case "(($ac_try" in
6464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6465 *) ac_try_echo=$ac_try;;
6466 esac
6467 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6468 (eval "$ac_compile") 2>conftest.er1
6469 ac_status=$?
6470 grep -v '^ *+' conftest.er1 >conftest.err
6471 rm -f conftest.er1
6472 cat conftest.err >&5
6473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6474 (exit $ac_status); } && {
6475 test -z "$ac_c_werror_flag" ||
6476 test ! -s conftest.err
6477 } && test -s conftest.$ac_objext; then
6478 sol_lfs_bug=no
6479 else
6480 echo "$as_me: failed program was:" >&5
6481 sed 's/^/| /' conftest.$ac_ext >&5
6483 sol_lfs_bug=yes
6486 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6487 { echo "$as_me:$LINENO: result: $sol_lfs_bug" >&5
6488 echo "${ECHO_T}$sol_lfs_bug" >&6; }
6489 if test "$sol_lfs_bug" = "yes"; then
6490 use_lfs=no
6493 if test "$use_lfs" = "yes"; then
6494 # Two defines needed to enable largefile support on various platforms
6495 # These may affect some typedefs
6497 cat >>confdefs.h <<\_ACEOF
6498 #define _LARGEFILE_SOURCE 1
6499 _ACEOF
6502 cat >>confdefs.h <<\_ACEOF
6503 #define _FILE_OFFSET_BITS 64
6504 _ACEOF
6508 # Add some code to confdefs.h so that the test for off_t works on SCO
6509 cat >> confdefs.h <<\EOF
6510 #if defined(SCO_DS)
6511 #undef _OFF_T
6512 #endif
6515 # Type availability checks
6516 { echo "$as_me:$LINENO: checking for mode_t" >&5
6517 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; }
6518 if test "${ac_cv_type_mode_t+set}" = set; then
6519 echo $ECHO_N "(cached) $ECHO_C" >&6
6520 else
6521 cat >conftest.$ac_ext <<_ACEOF
6522 /* confdefs.h. */
6523 _ACEOF
6524 cat confdefs.h >>conftest.$ac_ext
6525 cat >>conftest.$ac_ext <<_ACEOF
6526 /* end confdefs.h. */
6527 $ac_includes_default
6528 typedef mode_t ac__type_new_;
6530 main ()
6532 if ((ac__type_new_ *) 0)
6533 return 0;
6534 if (sizeof (ac__type_new_))
6535 return 0;
6537 return 0;
6539 _ACEOF
6540 rm -f conftest.$ac_objext
6541 if { (ac_try="$ac_compile"
6542 case "(($ac_try" in
6543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6544 *) ac_try_echo=$ac_try;;
6545 esac
6546 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6547 (eval "$ac_compile") 2>conftest.er1
6548 ac_status=$?
6549 grep -v '^ *+' conftest.er1 >conftest.err
6550 rm -f conftest.er1
6551 cat conftest.err >&5
6552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6553 (exit $ac_status); } && {
6554 test -z "$ac_c_werror_flag" ||
6555 test ! -s conftest.err
6556 } && test -s conftest.$ac_objext; then
6557 ac_cv_type_mode_t=yes
6558 else
6559 echo "$as_me: failed program was:" >&5
6560 sed 's/^/| /' conftest.$ac_ext >&5
6562 ac_cv_type_mode_t=no
6565 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6567 { echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
6568 echo "${ECHO_T}$ac_cv_type_mode_t" >&6; }
6569 if test $ac_cv_type_mode_t = yes; then
6571 else
6573 cat >>confdefs.h <<_ACEOF
6574 #define mode_t int
6575 _ACEOF
6579 { echo "$as_me:$LINENO: checking for off_t" >&5
6580 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
6581 if test "${ac_cv_type_off_t+set}" = set; then
6582 echo $ECHO_N "(cached) $ECHO_C" >&6
6583 else
6584 cat >conftest.$ac_ext <<_ACEOF
6585 /* confdefs.h. */
6586 _ACEOF
6587 cat confdefs.h >>conftest.$ac_ext
6588 cat >>conftest.$ac_ext <<_ACEOF
6589 /* end confdefs.h. */
6590 $ac_includes_default
6591 typedef off_t ac__type_new_;
6593 main ()
6595 if ((ac__type_new_ *) 0)
6596 return 0;
6597 if (sizeof (ac__type_new_))
6598 return 0;
6600 return 0;
6602 _ACEOF
6603 rm -f conftest.$ac_objext
6604 if { (ac_try="$ac_compile"
6605 case "(($ac_try" in
6606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6607 *) ac_try_echo=$ac_try;;
6608 esac
6609 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6610 (eval "$ac_compile") 2>conftest.er1
6611 ac_status=$?
6612 grep -v '^ *+' conftest.er1 >conftest.err
6613 rm -f conftest.er1
6614 cat conftest.err >&5
6615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6616 (exit $ac_status); } && {
6617 test -z "$ac_c_werror_flag" ||
6618 test ! -s conftest.err
6619 } && test -s conftest.$ac_objext; then
6620 ac_cv_type_off_t=yes
6621 else
6622 echo "$as_me: failed program was:" >&5
6623 sed 's/^/| /' conftest.$ac_ext >&5
6625 ac_cv_type_off_t=no
6628 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6630 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
6631 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
6632 if test $ac_cv_type_off_t = yes; then
6634 else
6636 cat >>confdefs.h <<_ACEOF
6637 #define off_t long int
6638 _ACEOF
6642 { echo "$as_me:$LINENO: checking for pid_t" >&5
6643 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
6644 if test "${ac_cv_type_pid_t+set}" = set; then
6645 echo $ECHO_N "(cached) $ECHO_C" >&6
6646 else
6647 cat >conftest.$ac_ext <<_ACEOF
6648 /* confdefs.h. */
6649 _ACEOF
6650 cat confdefs.h >>conftest.$ac_ext
6651 cat >>conftest.$ac_ext <<_ACEOF
6652 /* end confdefs.h. */
6653 $ac_includes_default
6654 typedef pid_t ac__type_new_;
6656 main ()
6658 if ((ac__type_new_ *) 0)
6659 return 0;
6660 if (sizeof (ac__type_new_))
6661 return 0;
6663 return 0;
6665 _ACEOF
6666 rm -f conftest.$ac_objext
6667 if { (ac_try="$ac_compile"
6668 case "(($ac_try" in
6669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6670 *) ac_try_echo=$ac_try;;
6671 esac
6672 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6673 (eval "$ac_compile") 2>conftest.er1
6674 ac_status=$?
6675 grep -v '^ *+' conftest.er1 >conftest.err
6676 rm -f conftest.er1
6677 cat conftest.err >&5
6678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6679 (exit $ac_status); } && {
6680 test -z "$ac_c_werror_flag" ||
6681 test ! -s conftest.err
6682 } && test -s conftest.$ac_objext; then
6683 ac_cv_type_pid_t=yes
6684 else
6685 echo "$as_me: failed program was:" >&5
6686 sed 's/^/| /' conftest.$ac_ext >&5
6688 ac_cv_type_pid_t=no
6691 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6693 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
6694 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
6695 if test $ac_cv_type_pid_t = yes; then
6697 else
6699 cat >>confdefs.h <<_ACEOF
6700 #define pid_t int
6701 _ACEOF
6705 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
6706 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
6707 if test "${ac_cv_type_signal+set}" = set; then
6708 echo $ECHO_N "(cached) $ECHO_C" >&6
6709 else
6710 cat >conftest.$ac_ext <<_ACEOF
6711 /* confdefs.h. */
6712 _ACEOF
6713 cat confdefs.h >>conftest.$ac_ext
6714 cat >>conftest.$ac_ext <<_ACEOF
6715 /* end confdefs.h. */
6716 #include <sys/types.h>
6717 #include <signal.h>
6720 main ()
6722 return *(signal (0, 0)) (0) == 1;
6724 return 0;
6726 _ACEOF
6727 rm -f conftest.$ac_objext
6728 if { (ac_try="$ac_compile"
6729 case "(($ac_try" in
6730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6731 *) ac_try_echo=$ac_try;;
6732 esac
6733 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6734 (eval "$ac_compile") 2>conftest.er1
6735 ac_status=$?
6736 grep -v '^ *+' conftest.er1 >conftest.err
6737 rm -f conftest.er1
6738 cat conftest.err >&5
6739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6740 (exit $ac_status); } && {
6741 test -z "$ac_c_werror_flag" ||
6742 test ! -s conftest.err
6743 } && test -s conftest.$ac_objext; then
6744 ac_cv_type_signal=int
6745 else
6746 echo "$as_me: failed program was:" >&5
6747 sed 's/^/| /' conftest.$ac_ext >&5
6749 ac_cv_type_signal=void
6752 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6754 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
6755 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
6757 cat >>confdefs.h <<_ACEOF
6758 #define RETSIGTYPE $ac_cv_type_signal
6759 _ACEOF
6762 { echo "$as_me:$LINENO: checking for size_t" >&5
6763 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
6764 if test "${ac_cv_type_size_t+set}" = set; then
6765 echo $ECHO_N "(cached) $ECHO_C" >&6
6766 else
6767 cat >conftest.$ac_ext <<_ACEOF
6768 /* confdefs.h. */
6769 _ACEOF
6770 cat confdefs.h >>conftest.$ac_ext
6771 cat >>conftest.$ac_ext <<_ACEOF
6772 /* end confdefs.h. */
6773 $ac_includes_default
6774 typedef size_t ac__type_new_;
6776 main ()
6778 if ((ac__type_new_ *) 0)
6779 return 0;
6780 if (sizeof (ac__type_new_))
6781 return 0;
6783 return 0;
6785 _ACEOF
6786 rm -f conftest.$ac_objext
6787 if { (ac_try="$ac_compile"
6788 case "(($ac_try" in
6789 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6790 *) ac_try_echo=$ac_try;;
6791 esac
6792 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6793 (eval "$ac_compile") 2>conftest.er1
6794 ac_status=$?
6795 grep -v '^ *+' conftest.er1 >conftest.err
6796 rm -f conftest.er1
6797 cat conftest.err >&5
6798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6799 (exit $ac_status); } && {
6800 test -z "$ac_c_werror_flag" ||
6801 test ! -s conftest.err
6802 } && test -s conftest.$ac_objext; then
6803 ac_cv_type_size_t=yes
6804 else
6805 echo "$as_me: failed program was:" >&5
6806 sed 's/^/| /' conftest.$ac_ext >&5
6808 ac_cv_type_size_t=no
6811 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6813 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
6814 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
6815 if test $ac_cv_type_size_t = yes; then
6817 else
6819 cat >>confdefs.h <<_ACEOF
6820 #define size_t unsigned int
6821 _ACEOF
6825 { echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
6826 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
6827 if test "${ac_cv_type_uid_t+set}" = set; then
6828 echo $ECHO_N "(cached) $ECHO_C" >&6
6829 else
6830 cat >conftest.$ac_ext <<_ACEOF
6831 /* confdefs.h. */
6832 _ACEOF
6833 cat confdefs.h >>conftest.$ac_ext
6834 cat >>conftest.$ac_ext <<_ACEOF
6835 /* end confdefs.h. */
6836 #include <sys/types.h>
6838 _ACEOF
6839 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6840 $EGREP "uid_t" >/dev/null 2>&1; then
6841 ac_cv_type_uid_t=yes
6842 else
6843 ac_cv_type_uid_t=no
6845 rm -f conftest*
6848 { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
6849 echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
6850 if test $ac_cv_type_uid_t = no; then
6852 cat >>confdefs.h <<\_ACEOF
6853 #define uid_t int
6854 _ACEOF
6857 cat >>confdefs.h <<\_ACEOF
6858 #define gid_t int
6859 _ACEOF
6863 { echo "$as_me:$LINENO: checking for ssize_t" >&5
6864 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
6865 if test "${ac_cv_type_ssize_t+set}" = set; then
6866 echo $ECHO_N "(cached) $ECHO_C" >&6
6867 else
6868 cat >conftest.$ac_ext <<_ACEOF
6869 /* confdefs.h. */
6870 _ACEOF
6871 cat confdefs.h >>conftest.$ac_ext
6872 cat >>conftest.$ac_ext <<_ACEOF
6873 /* end confdefs.h. */
6874 $ac_includes_default
6875 typedef ssize_t ac__type_new_;
6877 main ()
6879 if ((ac__type_new_ *) 0)
6880 return 0;
6881 if (sizeof (ac__type_new_))
6882 return 0;
6884 return 0;
6886 _ACEOF
6887 rm -f conftest.$ac_objext
6888 if { (ac_try="$ac_compile"
6889 case "(($ac_try" in
6890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6891 *) ac_try_echo=$ac_try;;
6892 esac
6893 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6894 (eval "$ac_compile") 2>conftest.er1
6895 ac_status=$?
6896 grep -v '^ *+' conftest.er1 >conftest.err
6897 rm -f conftest.er1
6898 cat conftest.err >&5
6899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6900 (exit $ac_status); } && {
6901 test -z "$ac_c_werror_flag" ||
6902 test ! -s conftest.err
6903 } && test -s conftest.$ac_objext; then
6904 ac_cv_type_ssize_t=yes
6905 else
6906 echo "$as_me: failed program was:" >&5
6907 sed 's/^/| /' conftest.$ac_ext >&5
6909 ac_cv_type_ssize_t=no
6912 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6914 { echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
6915 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6; }
6916 if test $ac_cv_type_ssize_t = yes; then
6918 cat >>confdefs.h <<\_ACEOF
6919 #define HAVE_SSIZE_T 1
6920 _ACEOF
6925 # Sizes of various common basic types
6926 # ANSI C requires sizeof(char) == 1, so no need to check it
6927 { echo "$as_me:$LINENO: checking for int" >&5
6928 echo $ECHO_N "checking for int... $ECHO_C" >&6; }
6929 if test "${ac_cv_type_int+set}" = set; then
6930 echo $ECHO_N "(cached) $ECHO_C" >&6
6931 else
6932 cat >conftest.$ac_ext <<_ACEOF
6933 /* confdefs.h. */
6934 _ACEOF
6935 cat confdefs.h >>conftest.$ac_ext
6936 cat >>conftest.$ac_ext <<_ACEOF
6937 /* end confdefs.h. */
6938 $ac_includes_default
6939 typedef int ac__type_new_;
6941 main ()
6943 if ((ac__type_new_ *) 0)
6944 return 0;
6945 if (sizeof (ac__type_new_))
6946 return 0;
6948 return 0;
6950 _ACEOF
6951 rm -f conftest.$ac_objext
6952 if { (ac_try="$ac_compile"
6953 case "(($ac_try" in
6954 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6955 *) ac_try_echo=$ac_try;;
6956 esac
6957 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6958 (eval "$ac_compile") 2>conftest.er1
6959 ac_status=$?
6960 grep -v '^ *+' conftest.er1 >conftest.err
6961 rm -f conftest.er1
6962 cat conftest.err >&5
6963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6964 (exit $ac_status); } && {
6965 test -z "$ac_c_werror_flag" ||
6966 test ! -s conftest.err
6967 } && test -s conftest.$ac_objext; then
6968 ac_cv_type_int=yes
6969 else
6970 echo "$as_me: failed program was:" >&5
6971 sed 's/^/| /' conftest.$ac_ext >&5
6973 ac_cv_type_int=no
6976 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6978 { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
6979 echo "${ECHO_T}$ac_cv_type_int" >&6; }
6981 # The cast to long int works around a bug in the HP C Compiler
6982 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6983 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6984 # This bug is HP SR number 8606223364.
6985 { echo "$as_me:$LINENO: checking size of int" >&5
6986 echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
6987 if test "${ac_cv_sizeof_int+set}" = set; then
6988 echo $ECHO_N "(cached) $ECHO_C" >&6
6989 else
6990 if test "$cross_compiling" = yes; then
6991 # Depending upon the size, compute the lo and hi bounds.
6992 cat >conftest.$ac_ext <<_ACEOF
6993 /* confdefs.h. */
6994 _ACEOF
6995 cat confdefs.h >>conftest.$ac_ext
6996 cat >>conftest.$ac_ext <<_ACEOF
6997 /* end confdefs.h. */
6998 $ac_includes_default
6999 typedef int ac__type_sizeof_;
7001 main ()
7003 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
7004 test_array [0] = 0
7007 return 0;
7009 _ACEOF
7010 rm -f conftest.$ac_objext
7011 if { (ac_try="$ac_compile"
7012 case "(($ac_try" in
7013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7014 *) ac_try_echo=$ac_try;;
7015 esac
7016 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7017 (eval "$ac_compile") 2>conftest.er1
7018 ac_status=$?
7019 grep -v '^ *+' conftest.er1 >conftest.err
7020 rm -f conftest.er1
7021 cat conftest.err >&5
7022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7023 (exit $ac_status); } && {
7024 test -z "$ac_c_werror_flag" ||
7025 test ! -s conftest.err
7026 } && test -s conftest.$ac_objext; then
7027 ac_lo=0 ac_mid=0
7028 while :; do
7029 cat >conftest.$ac_ext <<_ACEOF
7030 /* confdefs.h. */
7031 _ACEOF
7032 cat confdefs.h >>conftest.$ac_ext
7033 cat >>conftest.$ac_ext <<_ACEOF
7034 /* end confdefs.h. */
7035 $ac_includes_default
7036 typedef int ac__type_sizeof_;
7038 main ()
7040 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
7041 test_array [0] = 0
7044 return 0;
7046 _ACEOF
7047 rm -f conftest.$ac_objext
7048 if { (ac_try="$ac_compile"
7049 case "(($ac_try" in
7050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7051 *) ac_try_echo=$ac_try;;
7052 esac
7053 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7054 (eval "$ac_compile") 2>conftest.er1
7055 ac_status=$?
7056 grep -v '^ *+' conftest.er1 >conftest.err
7057 rm -f conftest.er1
7058 cat conftest.err >&5
7059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7060 (exit $ac_status); } && {
7061 test -z "$ac_c_werror_flag" ||
7062 test ! -s conftest.err
7063 } && test -s conftest.$ac_objext; then
7064 ac_hi=$ac_mid; break
7065 else
7066 echo "$as_me: failed program was:" >&5
7067 sed 's/^/| /' conftest.$ac_ext >&5
7069 ac_lo=`expr $ac_mid + 1`
7070 if test $ac_lo -le $ac_mid; then
7071 ac_lo= ac_hi=
7072 break
7074 ac_mid=`expr 2 '*' $ac_mid + 1`
7077 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7078 done
7079 else
7080 echo "$as_me: failed program was:" >&5
7081 sed 's/^/| /' conftest.$ac_ext >&5
7083 cat >conftest.$ac_ext <<_ACEOF
7084 /* confdefs.h. */
7085 _ACEOF
7086 cat confdefs.h >>conftest.$ac_ext
7087 cat >>conftest.$ac_ext <<_ACEOF
7088 /* end confdefs.h. */
7089 $ac_includes_default
7090 typedef int ac__type_sizeof_;
7092 main ()
7094 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
7095 test_array [0] = 0
7098 return 0;
7100 _ACEOF
7101 rm -f conftest.$ac_objext
7102 if { (ac_try="$ac_compile"
7103 case "(($ac_try" in
7104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7105 *) ac_try_echo=$ac_try;;
7106 esac
7107 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7108 (eval "$ac_compile") 2>conftest.er1
7109 ac_status=$?
7110 grep -v '^ *+' conftest.er1 >conftest.err
7111 rm -f conftest.er1
7112 cat conftest.err >&5
7113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7114 (exit $ac_status); } && {
7115 test -z "$ac_c_werror_flag" ||
7116 test ! -s conftest.err
7117 } && test -s conftest.$ac_objext; then
7118 ac_hi=-1 ac_mid=-1
7119 while :; do
7120 cat >conftest.$ac_ext <<_ACEOF
7121 /* confdefs.h. */
7122 _ACEOF
7123 cat confdefs.h >>conftest.$ac_ext
7124 cat >>conftest.$ac_ext <<_ACEOF
7125 /* end confdefs.h. */
7126 $ac_includes_default
7127 typedef int ac__type_sizeof_;
7129 main ()
7131 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
7132 test_array [0] = 0
7135 return 0;
7137 _ACEOF
7138 rm -f conftest.$ac_objext
7139 if { (ac_try="$ac_compile"
7140 case "(($ac_try" in
7141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7142 *) ac_try_echo=$ac_try;;
7143 esac
7144 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7145 (eval "$ac_compile") 2>conftest.er1
7146 ac_status=$?
7147 grep -v '^ *+' conftest.er1 >conftest.err
7148 rm -f conftest.er1
7149 cat conftest.err >&5
7150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7151 (exit $ac_status); } && {
7152 test -z "$ac_c_werror_flag" ||
7153 test ! -s conftest.err
7154 } && test -s conftest.$ac_objext; then
7155 ac_lo=$ac_mid; break
7156 else
7157 echo "$as_me: failed program was:" >&5
7158 sed 's/^/| /' conftest.$ac_ext >&5
7160 ac_hi=`expr '(' $ac_mid ')' - 1`
7161 if test $ac_mid -le $ac_hi; then
7162 ac_lo= ac_hi=
7163 break
7165 ac_mid=`expr 2 '*' $ac_mid`
7168 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7169 done
7170 else
7171 echo "$as_me: failed program was:" >&5
7172 sed 's/^/| /' conftest.$ac_ext >&5
7174 ac_lo= ac_hi=
7177 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7180 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7181 # Binary search between lo and hi bounds.
7182 while test "x$ac_lo" != "x$ac_hi"; do
7183 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7184 cat >conftest.$ac_ext <<_ACEOF
7185 /* confdefs.h. */
7186 _ACEOF
7187 cat confdefs.h >>conftest.$ac_ext
7188 cat >>conftest.$ac_ext <<_ACEOF
7189 /* end confdefs.h. */
7190 $ac_includes_default
7191 typedef int ac__type_sizeof_;
7193 main ()
7195 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
7196 test_array [0] = 0
7199 return 0;
7201 _ACEOF
7202 rm -f conftest.$ac_objext
7203 if { (ac_try="$ac_compile"
7204 case "(($ac_try" in
7205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7206 *) ac_try_echo=$ac_try;;
7207 esac
7208 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7209 (eval "$ac_compile") 2>conftest.er1
7210 ac_status=$?
7211 grep -v '^ *+' conftest.er1 >conftest.err
7212 rm -f conftest.er1
7213 cat conftest.err >&5
7214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7215 (exit $ac_status); } && {
7216 test -z "$ac_c_werror_flag" ||
7217 test ! -s conftest.err
7218 } && test -s conftest.$ac_objext; then
7219 ac_hi=$ac_mid
7220 else
7221 echo "$as_me: failed program was:" >&5
7222 sed 's/^/| /' conftest.$ac_ext >&5
7224 ac_lo=`expr '(' $ac_mid ')' + 1`
7227 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7228 done
7229 case $ac_lo in
7230 ?*) ac_cv_sizeof_int=$ac_lo;;
7231 '') if test "$ac_cv_type_int" = yes; then
7232 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
7233 See \`config.log' for more details." >&5
7234 echo "$as_me: error: cannot compute sizeof (int)
7235 See \`config.log' for more details." >&2;}
7236 { (exit 77); exit 77; }; }
7237 else
7238 ac_cv_sizeof_int=0
7239 fi ;;
7240 esac
7241 else
7242 cat >conftest.$ac_ext <<_ACEOF
7243 /* confdefs.h. */
7244 _ACEOF
7245 cat confdefs.h >>conftest.$ac_ext
7246 cat >>conftest.$ac_ext <<_ACEOF
7247 /* end confdefs.h. */
7248 $ac_includes_default
7249 typedef int ac__type_sizeof_;
7250 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
7251 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
7252 #include <stdio.h>
7253 #include <stdlib.h>
7255 main ()
7258 FILE *f = fopen ("conftest.val", "w");
7259 if (! f)
7260 return 1;
7261 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
7263 long int i = longval ();
7264 if (i != ((long int) (sizeof (ac__type_sizeof_))))
7265 return 1;
7266 fprintf (f, "%ld\n", i);
7268 else
7270 unsigned long int i = ulongval ();
7271 if (i != ((long int) (sizeof (ac__type_sizeof_))))
7272 return 1;
7273 fprintf (f, "%lu\n", i);
7275 return ferror (f) || fclose (f) != 0;
7278 return 0;
7280 _ACEOF
7281 rm -f conftest$ac_exeext
7282 if { (ac_try="$ac_link"
7283 case "(($ac_try" in
7284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7285 *) ac_try_echo=$ac_try;;
7286 esac
7287 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7288 (eval "$ac_link") 2>&5
7289 ac_status=$?
7290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7291 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7292 { (case "(($ac_try" in
7293 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7294 *) ac_try_echo=$ac_try;;
7295 esac
7296 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7297 (eval "$ac_try") 2>&5
7298 ac_status=$?
7299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7300 (exit $ac_status); }; }; then
7301 ac_cv_sizeof_int=`cat conftest.val`
7302 else
7303 echo "$as_me: program exited with status $ac_status" >&5
7304 echo "$as_me: failed program was:" >&5
7305 sed 's/^/| /' conftest.$ac_ext >&5
7307 ( exit $ac_status )
7308 if test "$ac_cv_type_int" = yes; then
7309 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
7310 See \`config.log' for more details." >&5
7311 echo "$as_me: error: cannot compute sizeof (int)
7312 See \`config.log' for more details." >&2;}
7313 { (exit 77); exit 77; }; }
7314 else
7315 ac_cv_sizeof_int=0
7318 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7320 rm -f conftest.val
7322 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
7323 echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
7327 cat >>confdefs.h <<_ACEOF
7328 #define SIZEOF_INT $ac_cv_sizeof_int
7329 _ACEOF
7332 { echo "$as_me:$LINENO: checking for long" >&5
7333 echo $ECHO_N "checking for long... $ECHO_C" >&6; }
7334 if test "${ac_cv_type_long+set}" = set; then
7335 echo $ECHO_N "(cached) $ECHO_C" >&6
7336 else
7337 cat >conftest.$ac_ext <<_ACEOF
7338 /* confdefs.h. */
7339 _ACEOF
7340 cat confdefs.h >>conftest.$ac_ext
7341 cat >>conftest.$ac_ext <<_ACEOF
7342 /* end confdefs.h. */
7343 $ac_includes_default
7344 typedef long ac__type_new_;
7346 main ()
7348 if ((ac__type_new_ *) 0)
7349 return 0;
7350 if (sizeof (ac__type_new_))
7351 return 0;
7353 return 0;
7355 _ACEOF
7356 rm -f conftest.$ac_objext
7357 if { (ac_try="$ac_compile"
7358 case "(($ac_try" in
7359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7360 *) ac_try_echo=$ac_try;;
7361 esac
7362 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7363 (eval "$ac_compile") 2>conftest.er1
7364 ac_status=$?
7365 grep -v '^ *+' conftest.er1 >conftest.err
7366 rm -f conftest.er1
7367 cat conftest.err >&5
7368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7369 (exit $ac_status); } && {
7370 test -z "$ac_c_werror_flag" ||
7371 test ! -s conftest.err
7372 } && test -s conftest.$ac_objext; then
7373 ac_cv_type_long=yes
7374 else
7375 echo "$as_me: failed program was:" >&5
7376 sed 's/^/| /' conftest.$ac_ext >&5
7378 ac_cv_type_long=no
7381 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7383 { echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
7384 echo "${ECHO_T}$ac_cv_type_long" >&6; }
7386 # The cast to long int works around a bug in the HP C Compiler
7387 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7388 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7389 # This bug is HP SR number 8606223364.
7390 { echo "$as_me:$LINENO: checking size of long" >&5
7391 echo $ECHO_N "checking size of long... $ECHO_C" >&6; }
7392 if test "${ac_cv_sizeof_long+set}" = set; then
7393 echo $ECHO_N "(cached) $ECHO_C" >&6
7394 else
7395 if test "$cross_compiling" = yes; then
7396 # Depending upon the size, compute the lo and hi bounds.
7397 cat >conftest.$ac_ext <<_ACEOF
7398 /* confdefs.h. */
7399 _ACEOF
7400 cat confdefs.h >>conftest.$ac_ext
7401 cat >>conftest.$ac_ext <<_ACEOF
7402 /* end confdefs.h. */
7403 $ac_includes_default
7404 typedef long ac__type_sizeof_;
7406 main ()
7408 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
7409 test_array [0] = 0
7412 return 0;
7414 _ACEOF
7415 rm -f conftest.$ac_objext
7416 if { (ac_try="$ac_compile"
7417 case "(($ac_try" in
7418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7419 *) ac_try_echo=$ac_try;;
7420 esac
7421 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7422 (eval "$ac_compile") 2>conftest.er1
7423 ac_status=$?
7424 grep -v '^ *+' conftest.er1 >conftest.err
7425 rm -f conftest.er1
7426 cat conftest.err >&5
7427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7428 (exit $ac_status); } && {
7429 test -z "$ac_c_werror_flag" ||
7430 test ! -s conftest.err
7431 } && test -s conftest.$ac_objext; then
7432 ac_lo=0 ac_mid=0
7433 while :; do
7434 cat >conftest.$ac_ext <<_ACEOF
7435 /* confdefs.h. */
7436 _ACEOF
7437 cat confdefs.h >>conftest.$ac_ext
7438 cat >>conftest.$ac_ext <<_ACEOF
7439 /* end confdefs.h. */
7440 $ac_includes_default
7441 typedef long ac__type_sizeof_;
7443 main ()
7445 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
7446 test_array [0] = 0
7449 return 0;
7451 _ACEOF
7452 rm -f conftest.$ac_objext
7453 if { (ac_try="$ac_compile"
7454 case "(($ac_try" in
7455 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7456 *) ac_try_echo=$ac_try;;
7457 esac
7458 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7459 (eval "$ac_compile") 2>conftest.er1
7460 ac_status=$?
7461 grep -v '^ *+' conftest.er1 >conftest.err
7462 rm -f conftest.er1
7463 cat conftest.err >&5
7464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7465 (exit $ac_status); } && {
7466 test -z "$ac_c_werror_flag" ||
7467 test ! -s conftest.err
7468 } && test -s conftest.$ac_objext; then
7469 ac_hi=$ac_mid; break
7470 else
7471 echo "$as_me: failed program was:" >&5
7472 sed 's/^/| /' conftest.$ac_ext >&5
7474 ac_lo=`expr $ac_mid + 1`
7475 if test $ac_lo -le $ac_mid; then
7476 ac_lo= ac_hi=
7477 break
7479 ac_mid=`expr 2 '*' $ac_mid + 1`
7482 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7483 done
7484 else
7485 echo "$as_me: failed program was:" >&5
7486 sed 's/^/| /' conftest.$ac_ext >&5
7488 cat >conftest.$ac_ext <<_ACEOF
7489 /* confdefs.h. */
7490 _ACEOF
7491 cat confdefs.h >>conftest.$ac_ext
7492 cat >>conftest.$ac_ext <<_ACEOF
7493 /* end confdefs.h. */
7494 $ac_includes_default
7495 typedef long ac__type_sizeof_;
7497 main ()
7499 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
7500 test_array [0] = 0
7503 return 0;
7505 _ACEOF
7506 rm -f conftest.$ac_objext
7507 if { (ac_try="$ac_compile"
7508 case "(($ac_try" in
7509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7510 *) ac_try_echo=$ac_try;;
7511 esac
7512 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7513 (eval "$ac_compile") 2>conftest.er1
7514 ac_status=$?
7515 grep -v '^ *+' conftest.er1 >conftest.err
7516 rm -f conftest.er1
7517 cat conftest.err >&5
7518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7519 (exit $ac_status); } && {
7520 test -z "$ac_c_werror_flag" ||
7521 test ! -s conftest.err
7522 } && test -s conftest.$ac_objext; then
7523 ac_hi=-1 ac_mid=-1
7524 while :; do
7525 cat >conftest.$ac_ext <<_ACEOF
7526 /* confdefs.h. */
7527 _ACEOF
7528 cat confdefs.h >>conftest.$ac_ext
7529 cat >>conftest.$ac_ext <<_ACEOF
7530 /* end confdefs.h. */
7531 $ac_includes_default
7532 typedef long ac__type_sizeof_;
7534 main ()
7536 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
7537 test_array [0] = 0
7540 return 0;
7542 _ACEOF
7543 rm -f conftest.$ac_objext
7544 if { (ac_try="$ac_compile"
7545 case "(($ac_try" in
7546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7547 *) ac_try_echo=$ac_try;;
7548 esac
7549 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7550 (eval "$ac_compile") 2>conftest.er1
7551 ac_status=$?
7552 grep -v '^ *+' conftest.er1 >conftest.err
7553 rm -f conftest.er1
7554 cat conftest.err >&5
7555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7556 (exit $ac_status); } && {
7557 test -z "$ac_c_werror_flag" ||
7558 test ! -s conftest.err
7559 } && test -s conftest.$ac_objext; then
7560 ac_lo=$ac_mid; break
7561 else
7562 echo "$as_me: failed program was:" >&5
7563 sed 's/^/| /' conftest.$ac_ext >&5
7565 ac_hi=`expr '(' $ac_mid ')' - 1`
7566 if test $ac_mid -le $ac_hi; then
7567 ac_lo= ac_hi=
7568 break
7570 ac_mid=`expr 2 '*' $ac_mid`
7573 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7574 done
7575 else
7576 echo "$as_me: failed program was:" >&5
7577 sed 's/^/| /' conftest.$ac_ext >&5
7579 ac_lo= ac_hi=
7582 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7585 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7586 # Binary search between lo and hi bounds.
7587 while test "x$ac_lo" != "x$ac_hi"; do
7588 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7589 cat >conftest.$ac_ext <<_ACEOF
7590 /* confdefs.h. */
7591 _ACEOF
7592 cat confdefs.h >>conftest.$ac_ext
7593 cat >>conftest.$ac_ext <<_ACEOF
7594 /* end confdefs.h. */
7595 $ac_includes_default
7596 typedef long ac__type_sizeof_;
7598 main ()
7600 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
7601 test_array [0] = 0
7604 return 0;
7606 _ACEOF
7607 rm -f conftest.$ac_objext
7608 if { (ac_try="$ac_compile"
7609 case "(($ac_try" in
7610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7611 *) ac_try_echo=$ac_try;;
7612 esac
7613 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7614 (eval "$ac_compile") 2>conftest.er1
7615 ac_status=$?
7616 grep -v '^ *+' conftest.er1 >conftest.err
7617 rm -f conftest.er1
7618 cat conftest.err >&5
7619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7620 (exit $ac_status); } && {
7621 test -z "$ac_c_werror_flag" ||
7622 test ! -s conftest.err
7623 } && test -s conftest.$ac_objext; then
7624 ac_hi=$ac_mid
7625 else
7626 echo "$as_me: failed program was:" >&5
7627 sed 's/^/| /' conftest.$ac_ext >&5
7629 ac_lo=`expr '(' $ac_mid ')' + 1`
7632 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7633 done
7634 case $ac_lo in
7635 ?*) ac_cv_sizeof_long=$ac_lo;;
7636 '') if test "$ac_cv_type_long" = yes; then
7637 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
7638 See \`config.log' for more details." >&5
7639 echo "$as_me: error: cannot compute sizeof (long)
7640 See \`config.log' for more details." >&2;}
7641 { (exit 77); exit 77; }; }
7642 else
7643 ac_cv_sizeof_long=0
7644 fi ;;
7645 esac
7646 else
7647 cat >conftest.$ac_ext <<_ACEOF
7648 /* confdefs.h. */
7649 _ACEOF
7650 cat confdefs.h >>conftest.$ac_ext
7651 cat >>conftest.$ac_ext <<_ACEOF
7652 /* end confdefs.h. */
7653 $ac_includes_default
7654 typedef long ac__type_sizeof_;
7655 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
7656 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
7657 #include <stdio.h>
7658 #include <stdlib.h>
7660 main ()
7663 FILE *f = fopen ("conftest.val", "w");
7664 if (! f)
7665 return 1;
7666 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
7668 long int i = longval ();
7669 if (i != ((long int) (sizeof (ac__type_sizeof_))))
7670 return 1;
7671 fprintf (f, "%ld\n", i);
7673 else
7675 unsigned long int i = ulongval ();
7676 if (i != ((long int) (sizeof (ac__type_sizeof_))))
7677 return 1;
7678 fprintf (f, "%lu\n", i);
7680 return ferror (f) || fclose (f) != 0;
7683 return 0;
7685 _ACEOF
7686 rm -f conftest$ac_exeext
7687 if { (ac_try="$ac_link"
7688 case "(($ac_try" in
7689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7690 *) ac_try_echo=$ac_try;;
7691 esac
7692 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7693 (eval "$ac_link") 2>&5
7694 ac_status=$?
7695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7696 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7697 { (case "(($ac_try" in
7698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7699 *) ac_try_echo=$ac_try;;
7700 esac
7701 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7702 (eval "$ac_try") 2>&5
7703 ac_status=$?
7704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7705 (exit $ac_status); }; }; then
7706 ac_cv_sizeof_long=`cat conftest.val`
7707 else
7708 echo "$as_me: program exited with status $ac_status" >&5
7709 echo "$as_me: failed program was:" >&5
7710 sed 's/^/| /' conftest.$ac_ext >&5
7712 ( exit $ac_status )
7713 if test "$ac_cv_type_long" = yes; then
7714 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
7715 See \`config.log' for more details." >&5
7716 echo "$as_me: error: cannot compute sizeof (long)
7717 See \`config.log' for more details." >&2;}
7718 { (exit 77); exit 77; }; }
7719 else
7720 ac_cv_sizeof_long=0
7723 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7725 rm -f conftest.val
7727 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
7728 echo "${ECHO_T}$ac_cv_sizeof_long" >&6; }
7732 cat >>confdefs.h <<_ACEOF
7733 #define SIZEOF_LONG $ac_cv_sizeof_long
7734 _ACEOF
7737 { echo "$as_me:$LINENO: checking for void *" >&5
7738 echo $ECHO_N "checking for void *... $ECHO_C" >&6; }
7739 if test "${ac_cv_type_void_p+set}" = set; then
7740 echo $ECHO_N "(cached) $ECHO_C" >&6
7741 else
7742 cat >conftest.$ac_ext <<_ACEOF
7743 /* confdefs.h. */
7744 _ACEOF
7745 cat confdefs.h >>conftest.$ac_ext
7746 cat >>conftest.$ac_ext <<_ACEOF
7747 /* end confdefs.h. */
7748 $ac_includes_default
7749 typedef void * ac__type_new_;
7751 main ()
7753 if ((ac__type_new_ *) 0)
7754 return 0;
7755 if (sizeof (ac__type_new_))
7756 return 0;
7758 return 0;
7760 _ACEOF
7761 rm -f conftest.$ac_objext
7762 if { (ac_try="$ac_compile"
7763 case "(($ac_try" in
7764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7765 *) ac_try_echo=$ac_try;;
7766 esac
7767 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7768 (eval "$ac_compile") 2>conftest.er1
7769 ac_status=$?
7770 grep -v '^ *+' conftest.er1 >conftest.err
7771 rm -f conftest.er1
7772 cat conftest.err >&5
7773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7774 (exit $ac_status); } && {
7775 test -z "$ac_c_werror_flag" ||
7776 test ! -s conftest.err
7777 } && test -s conftest.$ac_objext; then
7778 ac_cv_type_void_p=yes
7779 else
7780 echo "$as_me: failed program was:" >&5
7781 sed 's/^/| /' conftest.$ac_ext >&5
7783 ac_cv_type_void_p=no
7786 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7788 { echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
7789 echo "${ECHO_T}$ac_cv_type_void_p" >&6; }
7791 # The cast to long int works around a bug in the HP C Compiler
7792 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7793 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7794 # This bug is HP SR number 8606223364.
7795 { echo "$as_me:$LINENO: checking size of void *" >&5
7796 echo $ECHO_N "checking size of void *... $ECHO_C" >&6; }
7797 if test "${ac_cv_sizeof_void_p+set}" = set; then
7798 echo $ECHO_N "(cached) $ECHO_C" >&6
7799 else
7800 if test "$cross_compiling" = yes; then
7801 # Depending upon the size, compute the lo and hi bounds.
7802 cat >conftest.$ac_ext <<_ACEOF
7803 /* confdefs.h. */
7804 _ACEOF
7805 cat confdefs.h >>conftest.$ac_ext
7806 cat >>conftest.$ac_ext <<_ACEOF
7807 /* end confdefs.h. */
7808 $ac_includes_default
7809 typedef void * ac__type_sizeof_;
7811 main ()
7813 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
7814 test_array [0] = 0
7817 return 0;
7819 _ACEOF
7820 rm -f conftest.$ac_objext
7821 if { (ac_try="$ac_compile"
7822 case "(($ac_try" in
7823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7824 *) ac_try_echo=$ac_try;;
7825 esac
7826 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7827 (eval "$ac_compile") 2>conftest.er1
7828 ac_status=$?
7829 grep -v '^ *+' conftest.er1 >conftest.err
7830 rm -f conftest.er1
7831 cat conftest.err >&5
7832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7833 (exit $ac_status); } && {
7834 test -z "$ac_c_werror_flag" ||
7835 test ! -s conftest.err
7836 } && test -s conftest.$ac_objext; then
7837 ac_lo=0 ac_mid=0
7838 while :; do
7839 cat >conftest.$ac_ext <<_ACEOF
7840 /* confdefs.h. */
7841 _ACEOF
7842 cat confdefs.h >>conftest.$ac_ext
7843 cat >>conftest.$ac_ext <<_ACEOF
7844 /* end confdefs.h. */
7845 $ac_includes_default
7846 typedef void * ac__type_sizeof_;
7848 main ()
7850 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
7851 test_array [0] = 0
7854 return 0;
7856 _ACEOF
7857 rm -f conftest.$ac_objext
7858 if { (ac_try="$ac_compile"
7859 case "(($ac_try" in
7860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7861 *) ac_try_echo=$ac_try;;
7862 esac
7863 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7864 (eval "$ac_compile") 2>conftest.er1
7865 ac_status=$?
7866 grep -v '^ *+' conftest.er1 >conftest.err
7867 rm -f conftest.er1
7868 cat conftest.err >&5
7869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7870 (exit $ac_status); } && {
7871 test -z "$ac_c_werror_flag" ||
7872 test ! -s conftest.err
7873 } && test -s conftest.$ac_objext; then
7874 ac_hi=$ac_mid; break
7875 else
7876 echo "$as_me: failed program was:" >&5
7877 sed 's/^/| /' conftest.$ac_ext >&5
7879 ac_lo=`expr $ac_mid + 1`
7880 if test $ac_lo -le $ac_mid; then
7881 ac_lo= ac_hi=
7882 break
7884 ac_mid=`expr 2 '*' $ac_mid + 1`
7887 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7888 done
7889 else
7890 echo "$as_me: failed program was:" >&5
7891 sed 's/^/| /' conftest.$ac_ext >&5
7893 cat >conftest.$ac_ext <<_ACEOF
7894 /* confdefs.h. */
7895 _ACEOF
7896 cat confdefs.h >>conftest.$ac_ext
7897 cat >>conftest.$ac_ext <<_ACEOF
7898 /* end confdefs.h. */
7899 $ac_includes_default
7900 typedef void * ac__type_sizeof_;
7902 main ()
7904 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
7905 test_array [0] = 0
7908 return 0;
7910 _ACEOF
7911 rm -f conftest.$ac_objext
7912 if { (ac_try="$ac_compile"
7913 case "(($ac_try" in
7914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7915 *) ac_try_echo=$ac_try;;
7916 esac
7917 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7918 (eval "$ac_compile") 2>conftest.er1
7919 ac_status=$?
7920 grep -v '^ *+' conftest.er1 >conftest.err
7921 rm -f conftest.er1
7922 cat conftest.err >&5
7923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7924 (exit $ac_status); } && {
7925 test -z "$ac_c_werror_flag" ||
7926 test ! -s conftest.err
7927 } && test -s conftest.$ac_objext; then
7928 ac_hi=-1 ac_mid=-1
7929 while :; do
7930 cat >conftest.$ac_ext <<_ACEOF
7931 /* confdefs.h. */
7932 _ACEOF
7933 cat confdefs.h >>conftest.$ac_ext
7934 cat >>conftest.$ac_ext <<_ACEOF
7935 /* end confdefs.h. */
7936 $ac_includes_default
7937 typedef void * ac__type_sizeof_;
7939 main ()
7941 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
7942 test_array [0] = 0
7945 return 0;
7947 _ACEOF
7948 rm -f conftest.$ac_objext
7949 if { (ac_try="$ac_compile"
7950 case "(($ac_try" in
7951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7952 *) ac_try_echo=$ac_try;;
7953 esac
7954 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7955 (eval "$ac_compile") 2>conftest.er1
7956 ac_status=$?
7957 grep -v '^ *+' conftest.er1 >conftest.err
7958 rm -f conftest.er1
7959 cat conftest.err >&5
7960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7961 (exit $ac_status); } && {
7962 test -z "$ac_c_werror_flag" ||
7963 test ! -s conftest.err
7964 } && test -s conftest.$ac_objext; then
7965 ac_lo=$ac_mid; break
7966 else
7967 echo "$as_me: failed program was:" >&5
7968 sed 's/^/| /' conftest.$ac_ext >&5
7970 ac_hi=`expr '(' $ac_mid ')' - 1`
7971 if test $ac_mid -le $ac_hi; then
7972 ac_lo= ac_hi=
7973 break
7975 ac_mid=`expr 2 '*' $ac_mid`
7978 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7979 done
7980 else
7981 echo "$as_me: failed program was:" >&5
7982 sed 's/^/| /' conftest.$ac_ext >&5
7984 ac_lo= ac_hi=
7987 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7990 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7991 # Binary search between lo and hi bounds.
7992 while test "x$ac_lo" != "x$ac_hi"; do
7993 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7994 cat >conftest.$ac_ext <<_ACEOF
7995 /* confdefs.h. */
7996 _ACEOF
7997 cat confdefs.h >>conftest.$ac_ext
7998 cat >>conftest.$ac_ext <<_ACEOF
7999 /* end confdefs.h. */
8000 $ac_includes_default
8001 typedef void * ac__type_sizeof_;
8003 main ()
8005 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8006 test_array [0] = 0
8009 return 0;
8011 _ACEOF
8012 rm -f conftest.$ac_objext
8013 if { (ac_try="$ac_compile"
8014 case "(($ac_try" in
8015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8016 *) ac_try_echo=$ac_try;;
8017 esac
8018 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8019 (eval "$ac_compile") 2>conftest.er1
8020 ac_status=$?
8021 grep -v '^ *+' conftest.er1 >conftest.err
8022 rm -f conftest.er1
8023 cat conftest.err >&5
8024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8025 (exit $ac_status); } && {
8026 test -z "$ac_c_werror_flag" ||
8027 test ! -s conftest.err
8028 } && test -s conftest.$ac_objext; then
8029 ac_hi=$ac_mid
8030 else
8031 echo "$as_me: failed program was:" >&5
8032 sed 's/^/| /' conftest.$ac_ext >&5
8034 ac_lo=`expr '(' $ac_mid ')' + 1`
8037 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8038 done
8039 case $ac_lo in
8040 ?*) ac_cv_sizeof_void_p=$ac_lo;;
8041 '') if test "$ac_cv_type_void_p" = yes; then
8042 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
8043 See \`config.log' for more details." >&5
8044 echo "$as_me: error: cannot compute sizeof (void *)
8045 See \`config.log' for more details." >&2;}
8046 { (exit 77); exit 77; }; }
8047 else
8048 ac_cv_sizeof_void_p=0
8049 fi ;;
8050 esac
8051 else
8052 cat >conftest.$ac_ext <<_ACEOF
8053 /* confdefs.h. */
8054 _ACEOF
8055 cat confdefs.h >>conftest.$ac_ext
8056 cat >>conftest.$ac_ext <<_ACEOF
8057 /* end confdefs.h. */
8058 $ac_includes_default
8059 typedef void * ac__type_sizeof_;
8060 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
8061 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
8062 #include <stdio.h>
8063 #include <stdlib.h>
8065 main ()
8068 FILE *f = fopen ("conftest.val", "w");
8069 if (! f)
8070 return 1;
8071 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
8073 long int i = longval ();
8074 if (i != ((long int) (sizeof (ac__type_sizeof_))))
8075 return 1;
8076 fprintf (f, "%ld\n", i);
8078 else
8080 unsigned long int i = ulongval ();
8081 if (i != ((long int) (sizeof (ac__type_sizeof_))))
8082 return 1;
8083 fprintf (f, "%lu\n", i);
8085 return ferror (f) || fclose (f) != 0;
8088 return 0;
8090 _ACEOF
8091 rm -f conftest$ac_exeext
8092 if { (ac_try="$ac_link"
8093 case "(($ac_try" in
8094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8095 *) ac_try_echo=$ac_try;;
8096 esac
8097 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8098 (eval "$ac_link") 2>&5
8099 ac_status=$?
8100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8101 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8102 { (case "(($ac_try" in
8103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8104 *) ac_try_echo=$ac_try;;
8105 esac
8106 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8107 (eval "$ac_try") 2>&5
8108 ac_status=$?
8109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8110 (exit $ac_status); }; }; then
8111 ac_cv_sizeof_void_p=`cat conftest.val`
8112 else
8113 echo "$as_me: program exited with status $ac_status" >&5
8114 echo "$as_me: failed program was:" >&5
8115 sed 's/^/| /' conftest.$ac_ext >&5
8117 ( exit $ac_status )
8118 if test "$ac_cv_type_void_p" = yes; then
8119 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
8120 See \`config.log' for more details." >&5
8121 echo "$as_me: error: cannot compute sizeof (void *)
8122 See \`config.log' for more details." >&2;}
8123 { (exit 77); exit 77; }; }
8124 else
8125 ac_cv_sizeof_void_p=0
8128 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8130 rm -f conftest.val
8132 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
8133 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6; }
8137 cat >>confdefs.h <<_ACEOF
8138 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
8139 _ACEOF
8142 { echo "$as_me:$LINENO: checking for short" >&5
8143 echo $ECHO_N "checking for short... $ECHO_C" >&6; }
8144 if test "${ac_cv_type_short+set}" = set; then
8145 echo $ECHO_N "(cached) $ECHO_C" >&6
8146 else
8147 cat >conftest.$ac_ext <<_ACEOF
8148 /* confdefs.h. */
8149 _ACEOF
8150 cat confdefs.h >>conftest.$ac_ext
8151 cat >>conftest.$ac_ext <<_ACEOF
8152 /* end confdefs.h. */
8153 $ac_includes_default
8154 typedef short ac__type_new_;
8156 main ()
8158 if ((ac__type_new_ *) 0)
8159 return 0;
8160 if (sizeof (ac__type_new_))
8161 return 0;
8163 return 0;
8165 _ACEOF
8166 rm -f conftest.$ac_objext
8167 if { (ac_try="$ac_compile"
8168 case "(($ac_try" in
8169 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8170 *) ac_try_echo=$ac_try;;
8171 esac
8172 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8173 (eval "$ac_compile") 2>conftest.er1
8174 ac_status=$?
8175 grep -v '^ *+' conftest.er1 >conftest.err
8176 rm -f conftest.er1
8177 cat conftest.err >&5
8178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8179 (exit $ac_status); } && {
8180 test -z "$ac_c_werror_flag" ||
8181 test ! -s conftest.err
8182 } && test -s conftest.$ac_objext; then
8183 ac_cv_type_short=yes
8184 else
8185 echo "$as_me: failed program was:" >&5
8186 sed 's/^/| /' conftest.$ac_ext >&5
8188 ac_cv_type_short=no
8191 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8193 { echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
8194 echo "${ECHO_T}$ac_cv_type_short" >&6; }
8196 # The cast to long int works around a bug in the HP C Compiler
8197 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8198 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8199 # This bug is HP SR number 8606223364.
8200 { echo "$as_me:$LINENO: checking size of short" >&5
8201 echo $ECHO_N "checking size of short... $ECHO_C" >&6; }
8202 if test "${ac_cv_sizeof_short+set}" = set; then
8203 echo $ECHO_N "(cached) $ECHO_C" >&6
8204 else
8205 if test "$cross_compiling" = yes; then
8206 # Depending upon the size, compute the lo and hi bounds.
8207 cat >conftest.$ac_ext <<_ACEOF
8208 /* confdefs.h. */
8209 _ACEOF
8210 cat confdefs.h >>conftest.$ac_ext
8211 cat >>conftest.$ac_ext <<_ACEOF
8212 /* end confdefs.h. */
8213 $ac_includes_default
8214 typedef short ac__type_sizeof_;
8216 main ()
8218 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
8219 test_array [0] = 0
8222 return 0;
8224 _ACEOF
8225 rm -f conftest.$ac_objext
8226 if { (ac_try="$ac_compile"
8227 case "(($ac_try" in
8228 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8229 *) ac_try_echo=$ac_try;;
8230 esac
8231 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8232 (eval "$ac_compile") 2>conftest.er1
8233 ac_status=$?
8234 grep -v '^ *+' conftest.er1 >conftest.err
8235 rm -f conftest.er1
8236 cat conftest.err >&5
8237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8238 (exit $ac_status); } && {
8239 test -z "$ac_c_werror_flag" ||
8240 test ! -s conftest.err
8241 } && test -s conftest.$ac_objext; then
8242 ac_lo=0 ac_mid=0
8243 while :; do
8244 cat >conftest.$ac_ext <<_ACEOF
8245 /* confdefs.h. */
8246 _ACEOF
8247 cat confdefs.h >>conftest.$ac_ext
8248 cat >>conftest.$ac_ext <<_ACEOF
8249 /* end confdefs.h. */
8250 $ac_includes_default
8251 typedef short ac__type_sizeof_;
8253 main ()
8255 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8256 test_array [0] = 0
8259 return 0;
8261 _ACEOF
8262 rm -f conftest.$ac_objext
8263 if { (ac_try="$ac_compile"
8264 case "(($ac_try" in
8265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8266 *) ac_try_echo=$ac_try;;
8267 esac
8268 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8269 (eval "$ac_compile") 2>conftest.er1
8270 ac_status=$?
8271 grep -v '^ *+' conftest.er1 >conftest.err
8272 rm -f conftest.er1
8273 cat conftest.err >&5
8274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8275 (exit $ac_status); } && {
8276 test -z "$ac_c_werror_flag" ||
8277 test ! -s conftest.err
8278 } && test -s conftest.$ac_objext; then
8279 ac_hi=$ac_mid; break
8280 else
8281 echo "$as_me: failed program was:" >&5
8282 sed 's/^/| /' conftest.$ac_ext >&5
8284 ac_lo=`expr $ac_mid + 1`
8285 if test $ac_lo -le $ac_mid; then
8286 ac_lo= ac_hi=
8287 break
8289 ac_mid=`expr 2 '*' $ac_mid + 1`
8292 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8293 done
8294 else
8295 echo "$as_me: failed program was:" >&5
8296 sed 's/^/| /' conftest.$ac_ext >&5
8298 cat >conftest.$ac_ext <<_ACEOF
8299 /* confdefs.h. */
8300 _ACEOF
8301 cat confdefs.h >>conftest.$ac_ext
8302 cat >>conftest.$ac_ext <<_ACEOF
8303 /* end confdefs.h. */
8304 $ac_includes_default
8305 typedef short ac__type_sizeof_;
8307 main ()
8309 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
8310 test_array [0] = 0
8313 return 0;
8315 _ACEOF
8316 rm -f conftest.$ac_objext
8317 if { (ac_try="$ac_compile"
8318 case "(($ac_try" in
8319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8320 *) ac_try_echo=$ac_try;;
8321 esac
8322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8323 (eval "$ac_compile") 2>conftest.er1
8324 ac_status=$?
8325 grep -v '^ *+' conftest.er1 >conftest.err
8326 rm -f conftest.er1
8327 cat conftest.err >&5
8328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8329 (exit $ac_status); } && {
8330 test -z "$ac_c_werror_flag" ||
8331 test ! -s conftest.err
8332 } && test -s conftest.$ac_objext; then
8333 ac_hi=-1 ac_mid=-1
8334 while :; do
8335 cat >conftest.$ac_ext <<_ACEOF
8336 /* confdefs.h. */
8337 _ACEOF
8338 cat confdefs.h >>conftest.$ac_ext
8339 cat >>conftest.$ac_ext <<_ACEOF
8340 /* end confdefs.h. */
8341 $ac_includes_default
8342 typedef short ac__type_sizeof_;
8344 main ()
8346 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
8347 test_array [0] = 0
8350 return 0;
8352 _ACEOF
8353 rm -f conftest.$ac_objext
8354 if { (ac_try="$ac_compile"
8355 case "(($ac_try" in
8356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8357 *) ac_try_echo=$ac_try;;
8358 esac
8359 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8360 (eval "$ac_compile") 2>conftest.er1
8361 ac_status=$?
8362 grep -v '^ *+' conftest.er1 >conftest.err
8363 rm -f conftest.er1
8364 cat conftest.err >&5
8365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8366 (exit $ac_status); } && {
8367 test -z "$ac_c_werror_flag" ||
8368 test ! -s conftest.err
8369 } && test -s conftest.$ac_objext; then
8370 ac_lo=$ac_mid; break
8371 else
8372 echo "$as_me: failed program was:" >&5
8373 sed 's/^/| /' conftest.$ac_ext >&5
8375 ac_hi=`expr '(' $ac_mid ')' - 1`
8376 if test $ac_mid -le $ac_hi; then
8377 ac_lo= ac_hi=
8378 break
8380 ac_mid=`expr 2 '*' $ac_mid`
8383 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8384 done
8385 else
8386 echo "$as_me: failed program was:" >&5
8387 sed 's/^/| /' conftest.$ac_ext >&5
8389 ac_lo= ac_hi=
8392 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8395 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8396 # Binary search between lo and hi bounds.
8397 while test "x$ac_lo" != "x$ac_hi"; do
8398 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8399 cat >conftest.$ac_ext <<_ACEOF
8400 /* confdefs.h. */
8401 _ACEOF
8402 cat confdefs.h >>conftest.$ac_ext
8403 cat >>conftest.$ac_ext <<_ACEOF
8404 /* end confdefs.h. */
8405 $ac_includes_default
8406 typedef short ac__type_sizeof_;
8408 main ()
8410 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8411 test_array [0] = 0
8414 return 0;
8416 _ACEOF
8417 rm -f conftest.$ac_objext
8418 if { (ac_try="$ac_compile"
8419 case "(($ac_try" in
8420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8421 *) ac_try_echo=$ac_try;;
8422 esac
8423 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8424 (eval "$ac_compile") 2>conftest.er1
8425 ac_status=$?
8426 grep -v '^ *+' conftest.er1 >conftest.err
8427 rm -f conftest.er1
8428 cat conftest.err >&5
8429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8430 (exit $ac_status); } && {
8431 test -z "$ac_c_werror_flag" ||
8432 test ! -s conftest.err
8433 } && test -s conftest.$ac_objext; then
8434 ac_hi=$ac_mid
8435 else
8436 echo "$as_me: failed program was:" >&5
8437 sed 's/^/| /' conftest.$ac_ext >&5
8439 ac_lo=`expr '(' $ac_mid ')' + 1`
8442 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8443 done
8444 case $ac_lo in
8445 ?*) ac_cv_sizeof_short=$ac_lo;;
8446 '') if test "$ac_cv_type_short" = yes; then
8447 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
8448 See \`config.log' for more details." >&5
8449 echo "$as_me: error: cannot compute sizeof (short)
8450 See \`config.log' for more details." >&2;}
8451 { (exit 77); exit 77; }; }
8452 else
8453 ac_cv_sizeof_short=0
8454 fi ;;
8455 esac
8456 else
8457 cat >conftest.$ac_ext <<_ACEOF
8458 /* confdefs.h. */
8459 _ACEOF
8460 cat confdefs.h >>conftest.$ac_ext
8461 cat >>conftest.$ac_ext <<_ACEOF
8462 /* end confdefs.h. */
8463 $ac_includes_default
8464 typedef short ac__type_sizeof_;
8465 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
8466 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
8467 #include <stdio.h>
8468 #include <stdlib.h>
8470 main ()
8473 FILE *f = fopen ("conftest.val", "w");
8474 if (! f)
8475 return 1;
8476 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
8478 long int i = longval ();
8479 if (i != ((long int) (sizeof (ac__type_sizeof_))))
8480 return 1;
8481 fprintf (f, "%ld\n", i);
8483 else
8485 unsigned long int i = ulongval ();
8486 if (i != ((long int) (sizeof (ac__type_sizeof_))))
8487 return 1;
8488 fprintf (f, "%lu\n", i);
8490 return ferror (f) || fclose (f) != 0;
8493 return 0;
8495 _ACEOF
8496 rm -f conftest$ac_exeext
8497 if { (ac_try="$ac_link"
8498 case "(($ac_try" in
8499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8500 *) ac_try_echo=$ac_try;;
8501 esac
8502 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8503 (eval "$ac_link") 2>&5
8504 ac_status=$?
8505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8506 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8507 { (case "(($ac_try" in
8508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8509 *) ac_try_echo=$ac_try;;
8510 esac
8511 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8512 (eval "$ac_try") 2>&5
8513 ac_status=$?
8514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8515 (exit $ac_status); }; }; then
8516 ac_cv_sizeof_short=`cat conftest.val`
8517 else
8518 echo "$as_me: program exited with status $ac_status" >&5
8519 echo "$as_me: failed program was:" >&5
8520 sed 's/^/| /' conftest.$ac_ext >&5
8522 ( exit $ac_status )
8523 if test "$ac_cv_type_short" = yes; then
8524 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
8525 See \`config.log' for more details." >&5
8526 echo "$as_me: error: cannot compute sizeof (short)
8527 See \`config.log' for more details." >&2;}
8528 { (exit 77); exit 77; }; }
8529 else
8530 ac_cv_sizeof_short=0
8533 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8535 rm -f conftest.val
8537 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
8538 echo "${ECHO_T}$ac_cv_sizeof_short" >&6; }
8542 cat >>confdefs.h <<_ACEOF
8543 #define SIZEOF_SHORT $ac_cv_sizeof_short
8544 _ACEOF
8547 { echo "$as_me:$LINENO: checking for float" >&5
8548 echo $ECHO_N "checking for float... $ECHO_C" >&6; }
8549 if test "${ac_cv_type_float+set}" = set; then
8550 echo $ECHO_N "(cached) $ECHO_C" >&6
8551 else
8552 cat >conftest.$ac_ext <<_ACEOF
8553 /* confdefs.h. */
8554 _ACEOF
8555 cat confdefs.h >>conftest.$ac_ext
8556 cat >>conftest.$ac_ext <<_ACEOF
8557 /* end confdefs.h. */
8558 $ac_includes_default
8559 typedef float ac__type_new_;
8561 main ()
8563 if ((ac__type_new_ *) 0)
8564 return 0;
8565 if (sizeof (ac__type_new_))
8566 return 0;
8568 return 0;
8570 _ACEOF
8571 rm -f conftest.$ac_objext
8572 if { (ac_try="$ac_compile"
8573 case "(($ac_try" in
8574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8575 *) ac_try_echo=$ac_try;;
8576 esac
8577 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8578 (eval "$ac_compile") 2>conftest.er1
8579 ac_status=$?
8580 grep -v '^ *+' conftest.er1 >conftest.err
8581 rm -f conftest.er1
8582 cat conftest.err >&5
8583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8584 (exit $ac_status); } && {
8585 test -z "$ac_c_werror_flag" ||
8586 test ! -s conftest.err
8587 } && test -s conftest.$ac_objext; then
8588 ac_cv_type_float=yes
8589 else
8590 echo "$as_me: failed program was:" >&5
8591 sed 's/^/| /' conftest.$ac_ext >&5
8593 ac_cv_type_float=no
8596 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8598 { echo "$as_me:$LINENO: result: $ac_cv_type_float" >&5
8599 echo "${ECHO_T}$ac_cv_type_float" >&6; }
8601 # The cast to long int works around a bug in the HP C Compiler
8602 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8603 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8604 # This bug is HP SR number 8606223364.
8605 { echo "$as_me:$LINENO: checking size of float" >&5
8606 echo $ECHO_N "checking size of float... $ECHO_C" >&6; }
8607 if test "${ac_cv_sizeof_float+set}" = set; then
8608 echo $ECHO_N "(cached) $ECHO_C" >&6
8609 else
8610 if test "$cross_compiling" = yes; then
8611 # Depending upon the size, compute the lo and hi bounds.
8612 cat >conftest.$ac_ext <<_ACEOF
8613 /* confdefs.h. */
8614 _ACEOF
8615 cat confdefs.h >>conftest.$ac_ext
8616 cat >>conftest.$ac_ext <<_ACEOF
8617 /* end confdefs.h. */
8618 $ac_includes_default
8619 typedef float ac__type_sizeof_;
8621 main ()
8623 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
8624 test_array [0] = 0
8627 return 0;
8629 _ACEOF
8630 rm -f conftest.$ac_objext
8631 if { (ac_try="$ac_compile"
8632 case "(($ac_try" in
8633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8634 *) ac_try_echo=$ac_try;;
8635 esac
8636 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8637 (eval "$ac_compile") 2>conftest.er1
8638 ac_status=$?
8639 grep -v '^ *+' conftest.er1 >conftest.err
8640 rm -f conftest.er1
8641 cat conftest.err >&5
8642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8643 (exit $ac_status); } && {
8644 test -z "$ac_c_werror_flag" ||
8645 test ! -s conftest.err
8646 } && test -s conftest.$ac_objext; then
8647 ac_lo=0 ac_mid=0
8648 while :; do
8649 cat >conftest.$ac_ext <<_ACEOF
8650 /* confdefs.h. */
8651 _ACEOF
8652 cat confdefs.h >>conftest.$ac_ext
8653 cat >>conftest.$ac_ext <<_ACEOF
8654 /* end confdefs.h. */
8655 $ac_includes_default
8656 typedef float ac__type_sizeof_;
8658 main ()
8660 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8661 test_array [0] = 0
8664 return 0;
8666 _ACEOF
8667 rm -f conftest.$ac_objext
8668 if { (ac_try="$ac_compile"
8669 case "(($ac_try" in
8670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8671 *) ac_try_echo=$ac_try;;
8672 esac
8673 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8674 (eval "$ac_compile") 2>conftest.er1
8675 ac_status=$?
8676 grep -v '^ *+' conftest.er1 >conftest.err
8677 rm -f conftest.er1
8678 cat conftest.err >&5
8679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8680 (exit $ac_status); } && {
8681 test -z "$ac_c_werror_flag" ||
8682 test ! -s conftest.err
8683 } && test -s conftest.$ac_objext; then
8684 ac_hi=$ac_mid; break
8685 else
8686 echo "$as_me: failed program was:" >&5
8687 sed 's/^/| /' conftest.$ac_ext >&5
8689 ac_lo=`expr $ac_mid + 1`
8690 if test $ac_lo -le $ac_mid; then
8691 ac_lo= ac_hi=
8692 break
8694 ac_mid=`expr 2 '*' $ac_mid + 1`
8697 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8698 done
8699 else
8700 echo "$as_me: failed program was:" >&5
8701 sed 's/^/| /' conftest.$ac_ext >&5
8703 cat >conftest.$ac_ext <<_ACEOF
8704 /* confdefs.h. */
8705 _ACEOF
8706 cat confdefs.h >>conftest.$ac_ext
8707 cat >>conftest.$ac_ext <<_ACEOF
8708 /* end confdefs.h. */
8709 $ac_includes_default
8710 typedef float ac__type_sizeof_;
8712 main ()
8714 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
8715 test_array [0] = 0
8718 return 0;
8720 _ACEOF
8721 rm -f conftest.$ac_objext
8722 if { (ac_try="$ac_compile"
8723 case "(($ac_try" in
8724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8725 *) ac_try_echo=$ac_try;;
8726 esac
8727 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8728 (eval "$ac_compile") 2>conftest.er1
8729 ac_status=$?
8730 grep -v '^ *+' conftest.er1 >conftest.err
8731 rm -f conftest.er1
8732 cat conftest.err >&5
8733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8734 (exit $ac_status); } && {
8735 test -z "$ac_c_werror_flag" ||
8736 test ! -s conftest.err
8737 } && test -s conftest.$ac_objext; then
8738 ac_hi=-1 ac_mid=-1
8739 while :; do
8740 cat >conftest.$ac_ext <<_ACEOF
8741 /* confdefs.h. */
8742 _ACEOF
8743 cat confdefs.h >>conftest.$ac_ext
8744 cat >>conftest.$ac_ext <<_ACEOF
8745 /* end confdefs.h. */
8746 $ac_includes_default
8747 typedef float ac__type_sizeof_;
8749 main ()
8751 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
8752 test_array [0] = 0
8755 return 0;
8757 _ACEOF
8758 rm -f conftest.$ac_objext
8759 if { (ac_try="$ac_compile"
8760 case "(($ac_try" in
8761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8762 *) ac_try_echo=$ac_try;;
8763 esac
8764 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8765 (eval "$ac_compile") 2>conftest.er1
8766 ac_status=$?
8767 grep -v '^ *+' conftest.er1 >conftest.err
8768 rm -f conftest.er1
8769 cat conftest.err >&5
8770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8771 (exit $ac_status); } && {
8772 test -z "$ac_c_werror_flag" ||
8773 test ! -s conftest.err
8774 } && test -s conftest.$ac_objext; then
8775 ac_lo=$ac_mid; break
8776 else
8777 echo "$as_me: failed program was:" >&5
8778 sed 's/^/| /' conftest.$ac_ext >&5
8780 ac_hi=`expr '(' $ac_mid ')' - 1`
8781 if test $ac_mid -le $ac_hi; then
8782 ac_lo= ac_hi=
8783 break
8785 ac_mid=`expr 2 '*' $ac_mid`
8788 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8789 done
8790 else
8791 echo "$as_me: failed program was:" >&5
8792 sed 's/^/| /' conftest.$ac_ext >&5
8794 ac_lo= ac_hi=
8797 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8800 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8801 # Binary search between lo and hi bounds.
8802 while test "x$ac_lo" != "x$ac_hi"; do
8803 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8804 cat >conftest.$ac_ext <<_ACEOF
8805 /* confdefs.h. */
8806 _ACEOF
8807 cat confdefs.h >>conftest.$ac_ext
8808 cat >>conftest.$ac_ext <<_ACEOF
8809 /* end confdefs.h. */
8810 $ac_includes_default
8811 typedef float ac__type_sizeof_;
8813 main ()
8815 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8816 test_array [0] = 0
8819 return 0;
8821 _ACEOF
8822 rm -f conftest.$ac_objext
8823 if { (ac_try="$ac_compile"
8824 case "(($ac_try" in
8825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8826 *) ac_try_echo=$ac_try;;
8827 esac
8828 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8829 (eval "$ac_compile") 2>conftest.er1
8830 ac_status=$?
8831 grep -v '^ *+' conftest.er1 >conftest.err
8832 rm -f conftest.er1
8833 cat conftest.err >&5
8834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8835 (exit $ac_status); } && {
8836 test -z "$ac_c_werror_flag" ||
8837 test ! -s conftest.err
8838 } && test -s conftest.$ac_objext; then
8839 ac_hi=$ac_mid
8840 else
8841 echo "$as_me: failed program was:" >&5
8842 sed 's/^/| /' conftest.$ac_ext >&5
8844 ac_lo=`expr '(' $ac_mid ')' + 1`
8847 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8848 done
8849 case $ac_lo in
8850 ?*) ac_cv_sizeof_float=$ac_lo;;
8851 '') if test "$ac_cv_type_float" = yes; then
8852 { { echo "$as_me:$LINENO: error: cannot compute sizeof (float)
8853 See \`config.log' for more details." >&5
8854 echo "$as_me: error: cannot compute sizeof (float)
8855 See \`config.log' for more details." >&2;}
8856 { (exit 77); exit 77; }; }
8857 else
8858 ac_cv_sizeof_float=0
8859 fi ;;
8860 esac
8861 else
8862 cat >conftest.$ac_ext <<_ACEOF
8863 /* confdefs.h. */
8864 _ACEOF
8865 cat confdefs.h >>conftest.$ac_ext
8866 cat >>conftest.$ac_ext <<_ACEOF
8867 /* end confdefs.h. */
8868 $ac_includes_default
8869 typedef float ac__type_sizeof_;
8870 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
8871 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
8872 #include <stdio.h>
8873 #include <stdlib.h>
8875 main ()
8878 FILE *f = fopen ("conftest.val", "w");
8879 if (! f)
8880 return 1;
8881 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
8883 long int i = longval ();
8884 if (i != ((long int) (sizeof (ac__type_sizeof_))))
8885 return 1;
8886 fprintf (f, "%ld\n", i);
8888 else
8890 unsigned long int i = ulongval ();
8891 if (i != ((long int) (sizeof (ac__type_sizeof_))))
8892 return 1;
8893 fprintf (f, "%lu\n", i);
8895 return ferror (f) || fclose (f) != 0;
8898 return 0;
8900 _ACEOF
8901 rm -f conftest$ac_exeext
8902 if { (ac_try="$ac_link"
8903 case "(($ac_try" in
8904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8905 *) ac_try_echo=$ac_try;;
8906 esac
8907 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8908 (eval "$ac_link") 2>&5
8909 ac_status=$?
8910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8911 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8912 { (case "(($ac_try" in
8913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8914 *) ac_try_echo=$ac_try;;
8915 esac
8916 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8917 (eval "$ac_try") 2>&5
8918 ac_status=$?
8919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8920 (exit $ac_status); }; }; then
8921 ac_cv_sizeof_float=`cat conftest.val`
8922 else
8923 echo "$as_me: program exited with status $ac_status" >&5
8924 echo "$as_me: failed program was:" >&5
8925 sed 's/^/| /' conftest.$ac_ext >&5
8927 ( exit $ac_status )
8928 if test "$ac_cv_type_float" = yes; then
8929 { { echo "$as_me:$LINENO: error: cannot compute sizeof (float)
8930 See \`config.log' for more details." >&5
8931 echo "$as_me: error: cannot compute sizeof (float)
8932 See \`config.log' for more details." >&2;}
8933 { (exit 77); exit 77; }; }
8934 else
8935 ac_cv_sizeof_float=0
8938 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8940 rm -f conftest.val
8942 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_float" >&5
8943 echo "${ECHO_T}$ac_cv_sizeof_float" >&6; }
8947 cat >>confdefs.h <<_ACEOF
8948 #define SIZEOF_FLOAT $ac_cv_sizeof_float
8949 _ACEOF
8952 { echo "$as_me:$LINENO: checking for double" >&5
8953 echo $ECHO_N "checking for double... $ECHO_C" >&6; }
8954 if test "${ac_cv_type_double+set}" = set; then
8955 echo $ECHO_N "(cached) $ECHO_C" >&6
8956 else
8957 cat >conftest.$ac_ext <<_ACEOF
8958 /* confdefs.h. */
8959 _ACEOF
8960 cat confdefs.h >>conftest.$ac_ext
8961 cat >>conftest.$ac_ext <<_ACEOF
8962 /* end confdefs.h. */
8963 $ac_includes_default
8964 typedef double ac__type_new_;
8966 main ()
8968 if ((ac__type_new_ *) 0)
8969 return 0;
8970 if (sizeof (ac__type_new_))
8971 return 0;
8973 return 0;
8975 _ACEOF
8976 rm -f conftest.$ac_objext
8977 if { (ac_try="$ac_compile"
8978 case "(($ac_try" in
8979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8980 *) ac_try_echo=$ac_try;;
8981 esac
8982 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8983 (eval "$ac_compile") 2>conftest.er1
8984 ac_status=$?
8985 grep -v '^ *+' conftest.er1 >conftest.err
8986 rm -f conftest.er1
8987 cat conftest.err >&5
8988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8989 (exit $ac_status); } && {
8990 test -z "$ac_c_werror_flag" ||
8991 test ! -s conftest.err
8992 } && test -s conftest.$ac_objext; then
8993 ac_cv_type_double=yes
8994 else
8995 echo "$as_me: failed program was:" >&5
8996 sed 's/^/| /' conftest.$ac_ext >&5
8998 ac_cv_type_double=no
9001 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9003 { echo "$as_me:$LINENO: result: $ac_cv_type_double" >&5
9004 echo "${ECHO_T}$ac_cv_type_double" >&6; }
9006 # The cast to long int works around a bug in the HP C Compiler
9007 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9008 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9009 # This bug is HP SR number 8606223364.
9010 { echo "$as_me:$LINENO: checking size of double" >&5
9011 echo $ECHO_N "checking size of double... $ECHO_C" >&6; }
9012 if test "${ac_cv_sizeof_double+set}" = set; then
9013 echo $ECHO_N "(cached) $ECHO_C" >&6
9014 else
9015 if test "$cross_compiling" = yes; then
9016 # Depending upon the size, compute the lo and hi bounds.
9017 cat >conftest.$ac_ext <<_ACEOF
9018 /* confdefs.h. */
9019 _ACEOF
9020 cat confdefs.h >>conftest.$ac_ext
9021 cat >>conftest.$ac_ext <<_ACEOF
9022 /* end confdefs.h. */
9023 $ac_includes_default
9024 typedef double ac__type_sizeof_;
9026 main ()
9028 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
9029 test_array [0] = 0
9032 return 0;
9034 _ACEOF
9035 rm -f conftest.$ac_objext
9036 if { (ac_try="$ac_compile"
9037 case "(($ac_try" in
9038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9039 *) ac_try_echo=$ac_try;;
9040 esac
9041 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9042 (eval "$ac_compile") 2>conftest.er1
9043 ac_status=$?
9044 grep -v '^ *+' conftest.er1 >conftest.err
9045 rm -f conftest.er1
9046 cat conftest.err >&5
9047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9048 (exit $ac_status); } && {
9049 test -z "$ac_c_werror_flag" ||
9050 test ! -s conftest.err
9051 } && test -s conftest.$ac_objext; then
9052 ac_lo=0 ac_mid=0
9053 while :; do
9054 cat >conftest.$ac_ext <<_ACEOF
9055 /* confdefs.h. */
9056 _ACEOF
9057 cat confdefs.h >>conftest.$ac_ext
9058 cat >>conftest.$ac_ext <<_ACEOF
9059 /* end confdefs.h. */
9060 $ac_includes_default
9061 typedef double ac__type_sizeof_;
9063 main ()
9065 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
9066 test_array [0] = 0
9069 return 0;
9071 _ACEOF
9072 rm -f conftest.$ac_objext
9073 if { (ac_try="$ac_compile"
9074 case "(($ac_try" in
9075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9076 *) ac_try_echo=$ac_try;;
9077 esac
9078 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9079 (eval "$ac_compile") 2>conftest.er1
9080 ac_status=$?
9081 grep -v '^ *+' conftest.er1 >conftest.err
9082 rm -f conftest.er1
9083 cat conftest.err >&5
9084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9085 (exit $ac_status); } && {
9086 test -z "$ac_c_werror_flag" ||
9087 test ! -s conftest.err
9088 } && test -s conftest.$ac_objext; then
9089 ac_hi=$ac_mid; break
9090 else
9091 echo "$as_me: failed program was:" >&5
9092 sed 's/^/| /' conftest.$ac_ext >&5
9094 ac_lo=`expr $ac_mid + 1`
9095 if test $ac_lo -le $ac_mid; then
9096 ac_lo= ac_hi=
9097 break
9099 ac_mid=`expr 2 '*' $ac_mid + 1`
9102 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9103 done
9104 else
9105 echo "$as_me: failed program was:" >&5
9106 sed 's/^/| /' conftest.$ac_ext >&5
9108 cat >conftest.$ac_ext <<_ACEOF
9109 /* confdefs.h. */
9110 _ACEOF
9111 cat confdefs.h >>conftest.$ac_ext
9112 cat >>conftest.$ac_ext <<_ACEOF
9113 /* end confdefs.h. */
9114 $ac_includes_default
9115 typedef double ac__type_sizeof_;
9117 main ()
9119 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
9120 test_array [0] = 0
9123 return 0;
9125 _ACEOF
9126 rm -f conftest.$ac_objext
9127 if { (ac_try="$ac_compile"
9128 case "(($ac_try" in
9129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9130 *) ac_try_echo=$ac_try;;
9131 esac
9132 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9133 (eval "$ac_compile") 2>conftest.er1
9134 ac_status=$?
9135 grep -v '^ *+' conftest.er1 >conftest.err
9136 rm -f conftest.er1
9137 cat conftest.err >&5
9138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9139 (exit $ac_status); } && {
9140 test -z "$ac_c_werror_flag" ||
9141 test ! -s conftest.err
9142 } && test -s conftest.$ac_objext; then
9143 ac_hi=-1 ac_mid=-1
9144 while :; do
9145 cat >conftest.$ac_ext <<_ACEOF
9146 /* confdefs.h. */
9147 _ACEOF
9148 cat confdefs.h >>conftest.$ac_ext
9149 cat >>conftest.$ac_ext <<_ACEOF
9150 /* end confdefs.h. */
9151 $ac_includes_default
9152 typedef double ac__type_sizeof_;
9154 main ()
9156 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
9157 test_array [0] = 0
9160 return 0;
9162 _ACEOF
9163 rm -f conftest.$ac_objext
9164 if { (ac_try="$ac_compile"
9165 case "(($ac_try" in
9166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9167 *) ac_try_echo=$ac_try;;
9168 esac
9169 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9170 (eval "$ac_compile") 2>conftest.er1
9171 ac_status=$?
9172 grep -v '^ *+' conftest.er1 >conftest.err
9173 rm -f conftest.er1
9174 cat conftest.err >&5
9175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9176 (exit $ac_status); } && {
9177 test -z "$ac_c_werror_flag" ||
9178 test ! -s conftest.err
9179 } && test -s conftest.$ac_objext; then
9180 ac_lo=$ac_mid; break
9181 else
9182 echo "$as_me: failed program was:" >&5
9183 sed 's/^/| /' conftest.$ac_ext >&5
9185 ac_hi=`expr '(' $ac_mid ')' - 1`
9186 if test $ac_mid -le $ac_hi; then
9187 ac_lo= ac_hi=
9188 break
9190 ac_mid=`expr 2 '*' $ac_mid`
9193 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9194 done
9195 else
9196 echo "$as_me: failed program was:" >&5
9197 sed 's/^/| /' conftest.$ac_ext >&5
9199 ac_lo= ac_hi=
9202 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9205 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9206 # Binary search between lo and hi bounds.
9207 while test "x$ac_lo" != "x$ac_hi"; do
9208 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9209 cat >conftest.$ac_ext <<_ACEOF
9210 /* confdefs.h. */
9211 _ACEOF
9212 cat confdefs.h >>conftest.$ac_ext
9213 cat >>conftest.$ac_ext <<_ACEOF
9214 /* end confdefs.h. */
9215 $ac_includes_default
9216 typedef double ac__type_sizeof_;
9218 main ()
9220 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
9221 test_array [0] = 0
9224 return 0;
9226 _ACEOF
9227 rm -f conftest.$ac_objext
9228 if { (ac_try="$ac_compile"
9229 case "(($ac_try" in
9230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9231 *) ac_try_echo=$ac_try;;
9232 esac
9233 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9234 (eval "$ac_compile") 2>conftest.er1
9235 ac_status=$?
9236 grep -v '^ *+' conftest.er1 >conftest.err
9237 rm -f conftest.er1
9238 cat conftest.err >&5
9239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9240 (exit $ac_status); } && {
9241 test -z "$ac_c_werror_flag" ||
9242 test ! -s conftest.err
9243 } && test -s conftest.$ac_objext; then
9244 ac_hi=$ac_mid
9245 else
9246 echo "$as_me: failed program was:" >&5
9247 sed 's/^/| /' conftest.$ac_ext >&5
9249 ac_lo=`expr '(' $ac_mid ')' + 1`
9252 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9253 done
9254 case $ac_lo in
9255 ?*) ac_cv_sizeof_double=$ac_lo;;
9256 '') if test "$ac_cv_type_double" = yes; then
9257 { { echo "$as_me:$LINENO: error: cannot compute sizeof (double)
9258 See \`config.log' for more details." >&5
9259 echo "$as_me: error: cannot compute sizeof (double)
9260 See \`config.log' for more details." >&2;}
9261 { (exit 77); exit 77; }; }
9262 else
9263 ac_cv_sizeof_double=0
9264 fi ;;
9265 esac
9266 else
9267 cat >conftest.$ac_ext <<_ACEOF
9268 /* confdefs.h. */
9269 _ACEOF
9270 cat confdefs.h >>conftest.$ac_ext
9271 cat >>conftest.$ac_ext <<_ACEOF
9272 /* end confdefs.h. */
9273 $ac_includes_default
9274 typedef double ac__type_sizeof_;
9275 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
9276 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
9277 #include <stdio.h>
9278 #include <stdlib.h>
9280 main ()
9283 FILE *f = fopen ("conftest.val", "w");
9284 if (! f)
9285 return 1;
9286 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
9288 long int i = longval ();
9289 if (i != ((long int) (sizeof (ac__type_sizeof_))))
9290 return 1;
9291 fprintf (f, "%ld\n", i);
9293 else
9295 unsigned long int i = ulongval ();
9296 if (i != ((long int) (sizeof (ac__type_sizeof_))))
9297 return 1;
9298 fprintf (f, "%lu\n", i);
9300 return ferror (f) || fclose (f) != 0;
9303 return 0;
9305 _ACEOF
9306 rm -f conftest$ac_exeext
9307 if { (ac_try="$ac_link"
9308 case "(($ac_try" in
9309 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9310 *) ac_try_echo=$ac_try;;
9311 esac
9312 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9313 (eval "$ac_link") 2>&5
9314 ac_status=$?
9315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9316 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9317 { (case "(($ac_try" in
9318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9319 *) ac_try_echo=$ac_try;;
9320 esac
9321 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9322 (eval "$ac_try") 2>&5
9323 ac_status=$?
9324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9325 (exit $ac_status); }; }; then
9326 ac_cv_sizeof_double=`cat conftest.val`
9327 else
9328 echo "$as_me: program exited with status $ac_status" >&5
9329 echo "$as_me: failed program was:" >&5
9330 sed 's/^/| /' conftest.$ac_ext >&5
9332 ( exit $ac_status )
9333 if test "$ac_cv_type_double" = yes; then
9334 { { echo "$as_me:$LINENO: error: cannot compute sizeof (double)
9335 See \`config.log' for more details." >&5
9336 echo "$as_me: error: cannot compute sizeof (double)
9337 See \`config.log' for more details." >&2;}
9338 { (exit 77); exit 77; }; }
9339 else
9340 ac_cv_sizeof_double=0
9343 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9345 rm -f conftest.val
9347 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_double" >&5
9348 echo "${ECHO_T}$ac_cv_sizeof_double" >&6; }
9352 cat >>confdefs.h <<_ACEOF
9353 #define SIZEOF_DOUBLE $ac_cv_sizeof_double
9354 _ACEOF
9357 { echo "$as_me:$LINENO: checking for fpos_t" >&5
9358 echo $ECHO_N "checking for fpos_t... $ECHO_C" >&6; }
9359 if test "${ac_cv_type_fpos_t+set}" = set; then
9360 echo $ECHO_N "(cached) $ECHO_C" >&6
9361 else
9362 cat >conftest.$ac_ext <<_ACEOF
9363 /* confdefs.h. */
9364 _ACEOF
9365 cat confdefs.h >>conftest.$ac_ext
9366 cat >>conftest.$ac_ext <<_ACEOF
9367 /* end confdefs.h. */
9368 $ac_includes_default
9369 typedef fpos_t ac__type_new_;
9371 main ()
9373 if ((ac__type_new_ *) 0)
9374 return 0;
9375 if (sizeof (ac__type_new_))
9376 return 0;
9378 return 0;
9380 _ACEOF
9381 rm -f conftest.$ac_objext
9382 if { (ac_try="$ac_compile"
9383 case "(($ac_try" in
9384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9385 *) ac_try_echo=$ac_try;;
9386 esac
9387 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9388 (eval "$ac_compile") 2>conftest.er1
9389 ac_status=$?
9390 grep -v '^ *+' conftest.er1 >conftest.err
9391 rm -f conftest.er1
9392 cat conftest.err >&5
9393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9394 (exit $ac_status); } && {
9395 test -z "$ac_c_werror_flag" ||
9396 test ! -s conftest.err
9397 } && test -s conftest.$ac_objext; then
9398 ac_cv_type_fpos_t=yes
9399 else
9400 echo "$as_me: failed program was:" >&5
9401 sed 's/^/| /' conftest.$ac_ext >&5
9403 ac_cv_type_fpos_t=no
9406 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9408 { echo "$as_me:$LINENO: result: $ac_cv_type_fpos_t" >&5
9409 echo "${ECHO_T}$ac_cv_type_fpos_t" >&6; }
9411 # The cast to long int works around a bug in the HP C Compiler
9412 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9413 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9414 # This bug is HP SR number 8606223364.
9415 { echo "$as_me:$LINENO: checking size of fpos_t" >&5
9416 echo $ECHO_N "checking size of fpos_t... $ECHO_C" >&6; }
9417 if test "${ac_cv_sizeof_fpos_t+set}" = set; then
9418 echo $ECHO_N "(cached) $ECHO_C" >&6
9419 else
9420 if test "$cross_compiling" = yes; then
9421 # Depending upon the size, compute the lo and hi bounds.
9422 cat >conftest.$ac_ext <<_ACEOF
9423 /* confdefs.h. */
9424 _ACEOF
9425 cat confdefs.h >>conftest.$ac_ext
9426 cat >>conftest.$ac_ext <<_ACEOF
9427 /* end confdefs.h. */
9428 $ac_includes_default
9429 typedef fpos_t ac__type_sizeof_;
9431 main ()
9433 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
9434 test_array [0] = 0
9437 return 0;
9439 _ACEOF
9440 rm -f conftest.$ac_objext
9441 if { (ac_try="$ac_compile"
9442 case "(($ac_try" in
9443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9444 *) ac_try_echo=$ac_try;;
9445 esac
9446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9447 (eval "$ac_compile") 2>conftest.er1
9448 ac_status=$?
9449 grep -v '^ *+' conftest.er1 >conftest.err
9450 rm -f conftest.er1
9451 cat conftest.err >&5
9452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9453 (exit $ac_status); } && {
9454 test -z "$ac_c_werror_flag" ||
9455 test ! -s conftest.err
9456 } && test -s conftest.$ac_objext; then
9457 ac_lo=0 ac_mid=0
9458 while :; do
9459 cat >conftest.$ac_ext <<_ACEOF
9460 /* confdefs.h. */
9461 _ACEOF
9462 cat confdefs.h >>conftest.$ac_ext
9463 cat >>conftest.$ac_ext <<_ACEOF
9464 /* end confdefs.h. */
9465 $ac_includes_default
9466 typedef fpos_t ac__type_sizeof_;
9468 main ()
9470 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
9471 test_array [0] = 0
9474 return 0;
9476 _ACEOF
9477 rm -f conftest.$ac_objext
9478 if { (ac_try="$ac_compile"
9479 case "(($ac_try" in
9480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9481 *) ac_try_echo=$ac_try;;
9482 esac
9483 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9484 (eval "$ac_compile") 2>conftest.er1
9485 ac_status=$?
9486 grep -v '^ *+' conftest.er1 >conftest.err
9487 rm -f conftest.er1
9488 cat conftest.err >&5
9489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9490 (exit $ac_status); } && {
9491 test -z "$ac_c_werror_flag" ||
9492 test ! -s conftest.err
9493 } && test -s conftest.$ac_objext; then
9494 ac_hi=$ac_mid; break
9495 else
9496 echo "$as_me: failed program was:" >&5
9497 sed 's/^/| /' conftest.$ac_ext >&5
9499 ac_lo=`expr $ac_mid + 1`
9500 if test $ac_lo -le $ac_mid; then
9501 ac_lo= ac_hi=
9502 break
9504 ac_mid=`expr 2 '*' $ac_mid + 1`
9507 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9508 done
9509 else
9510 echo "$as_me: failed program was:" >&5
9511 sed 's/^/| /' conftest.$ac_ext >&5
9513 cat >conftest.$ac_ext <<_ACEOF
9514 /* confdefs.h. */
9515 _ACEOF
9516 cat confdefs.h >>conftest.$ac_ext
9517 cat >>conftest.$ac_ext <<_ACEOF
9518 /* end confdefs.h. */
9519 $ac_includes_default
9520 typedef fpos_t ac__type_sizeof_;
9522 main ()
9524 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
9525 test_array [0] = 0
9528 return 0;
9530 _ACEOF
9531 rm -f conftest.$ac_objext
9532 if { (ac_try="$ac_compile"
9533 case "(($ac_try" in
9534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9535 *) ac_try_echo=$ac_try;;
9536 esac
9537 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9538 (eval "$ac_compile") 2>conftest.er1
9539 ac_status=$?
9540 grep -v '^ *+' conftest.er1 >conftest.err
9541 rm -f conftest.er1
9542 cat conftest.err >&5
9543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9544 (exit $ac_status); } && {
9545 test -z "$ac_c_werror_flag" ||
9546 test ! -s conftest.err
9547 } && test -s conftest.$ac_objext; then
9548 ac_hi=-1 ac_mid=-1
9549 while :; do
9550 cat >conftest.$ac_ext <<_ACEOF
9551 /* confdefs.h. */
9552 _ACEOF
9553 cat confdefs.h >>conftest.$ac_ext
9554 cat >>conftest.$ac_ext <<_ACEOF
9555 /* end confdefs.h. */
9556 $ac_includes_default
9557 typedef fpos_t ac__type_sizeof_;
9559 main ()
9561 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
9562 test_array [0] = 0
9565 return 0;
9567 _ACEOF
9568 rm -f conftest.$ac_objext
9569 if { (ac_try="$ac_compile"
9570 case "(($ac_try" in
9571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9572 *) ac_try_echo=$ac_try;;
9573 esac
9574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9575 (eval "$ac_compile") 2>conftest.er1
9576 ac_status=$?
9577 grep -v '^ *+' conftest.er1 >conftest.err
9578 rm -f conftest.er1
9579 cat conftest.err >&5
9580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9581 (exit $ac_status); } && {
9582 test -z "$ac_c_werror_flag" ||
9583 test ! -s conftest.err
9584 } && test -s conftest.$ac_objext; then
9585 ac_lo=$ac_mid; break
9586 else
9587 echo "$as_me: failed program was:" >&5
9588 sed 's/^/| /' conftest.$ac_ext >&5
9590 ac_hi=`expr '(' $ac_mid ')' - 1`
9591 if test $ac_mid -le $ac_hi; then
9592 ac_lo= ac_hi=
9593 break
9595 ac_mid=`expr 2 '*' $ac_mid`
9598 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9599 done
9600 else
9601 echo "$as_me: failed program was:" >&5
9602 sed 's/^/| /' conftest.$ac_ext >&5
9604 ac_lo= ac_hi=
9607 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9610 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9611 # Binary search between lo and hi bounds.
9612 while test "x$ac_lo" != "x$ac_hi"; do
9613 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9614 cat >conftest.$ac_ext <<_ACEOF
9615 /* confdefs.h. */
9616 _ACEOF
9617 cat confdefs.h >>conftest.$ac_ext
9618 cat >>conftest.$ac_ext <<_ACEOF
9619 /* end confdefs.h. */
9620 $ac_includes_default
9621 typedef fpos_t ac__type_sizeof_;
9623 main ()
9625 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
9626 test_array [0] = 0
9629 return 0;
9631 _ACEOF
9632 rm -f conftest.$ac_objext
9633 if { (ac_try="$ac_compile"
9634 case "(($ac_try" in
9635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9636 *) ac_try_echo=$ac_try;;
9637 esac
9638 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9639 (eval "$ac_compile") 2>conftest.er1
9640 ac_status=$?
9641 grep -v '^ *+' conftest.er1 >conftest.err
9642 rm -f conftest.er1
9643 cat conftest.err >&5
9644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9645 (exit $ac_status); } && {
9646 test -z "$ac_c_werror_flag" ||
9647 test ! -s conftest.err
9648 } && test -s conftest.$ac_objext; then
9649 ac_hi=$ac_mid
9650 else
9651 echo "$as_me: failed program was:" >&5
9652 sed 's/^/| /' conftest.$ac_ext >&5
9654 ac_lo=`expr '(' $ac_mid ')' + 1`
9657 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9658 done
9659 case $ac_lo in
9660 ?*) ac_cv_sizeof_fpos_t=$ac_lo;;
9661 '') if test "$ac_cv_type_fpos_t" = yes; then
9662 { { echo "$as_me:$LINENO: error: cannot compute sizeof (fpos_t)
9663 See \`config.log' for more details." >&5
9664 echo "$as_me: error: cannot compute sizeof (fpos_t)
9665 See \`config.log' for more details." >&2;}
9666 { (exit 77); exit 77; }; }
9667 else
9668 ac_cv_sizeof_fpos_t=0
9669 fi ;;
9670 esac
9671 else
9672 cat >conftest.$ac_ext <<_ACEOF
9673 /* confdefs.h. */
9674 _ACEOF
9675 cat confdefs.h >>conftest.$ac_ext
9676 cat >>conftest.$ac_ext <<_ACEOF
9677 /* end confdefs.h. */
9678 $ac_includes_default
9679 typedef fpos_t ac__type_sizeof_;
9680 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
9681 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
9682 #include <stdio.h>
9683 #include <stdlib.h>
9685 main ()
9688 FILE *f = fopen ("conftest.val", "w");
9689 if (! f)
9690 return 1;
9691 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
9693 long int i = longval ();
9694 if (i != ((long int) (sizeof (ac__type_sizeof_))))
9695 return 1;
9696 fprintf (f, "%ld\n", i);
9698 else
9700 unsigned long int i = ulongval ();
9701 if (i != ((long int) (sizeof (ac__type_sizeof_))))
9702 return 1;
9703 fprintf (f, "%lu\n", i);
9705 return ferror (f) || fclose (f) != 0;
9708 return 0;
9710 _ACEOF
9711 rm -f conftest$ac_exeext
9712 if { (ac_try="$ac_link"
9713 case "(($ac_try" in
9714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9715 *) ac_try_echo=$ac_try;;
9716 esac
9717 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9718 (eval "$ac_link") 2>&5
9719 ac_status=$?
9720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9721 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9722 { (case "(($ac_try" in
9723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9724 *) ac_try_echo=$ac_try;;
9725 esac
9726 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9727 (eval "$ac_try") 2>&5
9728 ac_status=$?
9729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9730 (exit $ac_status); }; }; then
9731 ac_cv_sizeof_fpos_t=`cat conftest.val`
9732 else
9733 echo "$as_me: program exited with status $ac_status" >&5
9734 echo "$as_me: failed program was:" >&5
9735 sed 's/^/| /' conftest.$ac_ext >&5
9737 ( exit $ac_status )
9738 if test "$ac_cv_type_fpos_t" = yes; then
9739 { { echo "$as_me:$LINENO: error: cannot compute sizeof (fpos_t)
9740 See \`config.log' for more details." >&5
9741 echo "$as_me: error: cannot compute sizeof (fpos_t)
9742 See \`config.log' for more details." >&2;}
9743 { (exit 77); exit 77; }; }
9744 else
9745 ac_cv_sizeof_fpos_t=0
9748 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9750 rm -f conftest.val
9752 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_fpos_t" >&5
9753 echo "${ECHO_T}$ac_cv_sizeof_fpos_t" >&6; }
9757 cat >>confdefs.h <<_ACEOF
9758 #define SIZEOF_FPOS_T $ac_cv_sizeof_fpos_t
9759 _ACEOF
9762 { echo "$as_me:$LINENO: checking for size_t" >&5
9763 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
9764 if test "${ac_cv_type_size_t+set}" = set; then
9765 echo $ECHO_N "(cached) $ECHO_C" >&6
9766 else
9767 cat >conftest.$ac_ext <<_ACEOF
9768 /* confdefs.h. */
9769 _ACEOF
9770 cat confdefs.h >>conftest.$ac_ext
9771 cat >>conftest.$ac_ext <<_ACEOF
9772 /* end confdefs.h. */
9773 $ac_includes_default
9774 typedef size_t ac__type_new_;
9776 main ()
9778 if ((ac__type_new_ *) 0)
9779 return 0;
9780 if (sizeof (ac__type_new_))
9781 return 0;
9783 return 0;
9785 _ACEOF
9786 rm -f conftest.$ac_objext
9787 if { (ac_try="$ac_compile"
9788 case "(($ac_try" in
9789 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9790 *) ac_try_echo=$ac_try;;
9791 esac
9792 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9793 (eval "$ac_compile") 2>conftest.er1
9794 ac_status=$?
9795 grep -v '^ *+' conftest.er1 >conftest.err
9796 rm -f conftest.er1
9797 cat conftest.err >&5
9798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9799 (exit $ac_status); } && {
9800 test -z "$ac_c_werror_flag" ||
9801 test ! -s conftest.err
9802 } && test -s conftest.$ac_objext; then
9803 ac_cv_type_size_t=yes
9804 else
9805 echo "$as_me: failed program was:" >&5
9806 sed 's/^/| /' conftest.$ac_ext >&5
9808 ac_cv_type_size_t=no
9811 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9813 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
9814 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
9816 # The cast to long int works around a bug in the HP C Compiler
9817 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9818 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9819 # This bug is HP SR number 8606223364.
9820 { echo "$as_me:$LINENO: checking size of size_t" >&5
9821 echo $ECHO_N "checking size of size_t... $ECHO_C" >&6; }
9822 if test "${ac_cv_sizeof_size_t+set}" = set; then
9823 echo $ECHO_N "(cached) $ECHO_C" >&6
9824 else
9825 if test "$cross_compiling" = yes; then
9826 # Depending upon the size, compute the lo and hi bounds.
9827 cat >conftest.$ac_ext <<_ACEOF
9828 /* confdefs.h. */
9829 _ACEOF
9830 cat confdefs.h >>conftest.$ac_ext
9831 cat >>conftest.$ac_ext <<_ACEOF
9832 /* end confdefs.h. */
9833 $ac_includes_default
9834 typedef size_t ac__type_sizeof_;
9836 main ()
9838 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
9839 test_array [0] = 0
9842 return 0;
9844 _ACEOF
9845 rm -f conftest.$ac_objext
9846 if { (ac_try="$ac_compile"
9847 case "(($ac_try" in
9848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9849 *) ac_try_echo=$ac_try;;
9850 esac
9851 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9852 (eval "$ac_compile") 2>conftest.er1
9853 ac_status=$?
9854 grep -v '^ *+' conftest.er1 >conftest.err
9855 rm -f conftest.er1
9856 cat conftest.err >&5
9857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9858 (exit $ac_status); } && {
9859 test -z "$ac_c_werror_flag" ||
9860 test ! -s conftest.err
9861 } && test -s conftest.$ac_objext; then
9862 ac_lo=0 ac_mid=0
9863 while :; do
9864 cat >conftest.$ac_ext <<_ACEOF
9865 /* confdefs.h. */
9866 _ACEOF
9867 cat confdefs.h >>conftest.$ac_ext
9868 cat >>conftest.$ac_ext <<_ACEOF
9869 /* end confdefs.h. */
9870 $ac_includes_default
9871 typedef size_t ac__type_sizeof_;
9873 main ()
9875 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
9876 test_array [0] = 0
9879 return 0;
9881 _ACEOF
9882 rm -f conftest.$ac_objext
9883 if { (ac_try="$ac_compile"
9884 case "(($ac_try" in
9885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9886 *) ac_try_echo=$ac_try;;
9887 esac
9888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9889 (eval "$ac_compile") 2>conftest.er1
9890 ac_status=$?
9891 grep -v '^ *+' conftest.er1 >conftest.err
9892 rm -f conftest.er1
9893 cat conftest.err >&5
9894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9895 (exit $ac_status); } && {
9896 test -z "$ac_c_werror_flag" ||
9897 test ! -s conftest.err
9898 } && test -s conftest.$ac_objext; then
9899 ac_hi=$ac_mid; break
9900 else
9901 echo "$as_me: failed program was:" >&5
9902 sed 's/^/| /' conftest.$ac_ext >&5
9904 ac_lo=`expr $ac_mid + 1`
9905 if test $ac_lo -le $ac_mid; then
9906 ac_lo= ac_hi=
9907 break
9909 ac_mid=`expr 2 '*' $ac_mid + 1`
9912 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9913 done
9914 else
9915 echo "$as_me: failed program was:" >&5
9916 sed 's/^/| /' conftest.$ac_ext >&5
9918 cat >conftest.$ac_ext <<_ACEOF
9919 /* confdefs.h. */
9920 _ACEOF
9921 cat confdefs.h >>conftest.$ac_ext
9922 cat >>conftest.$ac_ext <<_ACEOF
9923 /* end confdefs.h. */
9924 $ac_includes_default
9925 typedef size_t ac__type_sizeof_;
9927 main ()
9929 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
9930 test_array [0] = 0
9933 return 0;
9935 _ACEOF
9936 rm -f conftest.$ac_objext
9937 if { (ac_try="$ac_compile"
9938 case "(($ac_try" in
9939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9940 *) ac_try_echo=$ac_try;;
9941 esac
9942 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9943 (eval "$ac_compile") 2>conftest.er1
9944 ac_status=$?
9945 grep -v '^ *+' conftest.er1 >conftest.err
9946 rm -f conftest.er1
9947 cat conftest.err >&5
9948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9949 (exit $ac_status); } && {
9950 test -z "$ac_c_werror_flag" ||
9951 test ! -s conftest.err
9952 } && test -s conftest.$ac_objext; then
9953 ac_hi=-1 ac_mid=-1
9954 while :; do
9955 cat >conftest.$ac_ext <<_ACEOF
9956 /* confdefs.h. */
9957 _ACEOF
9958 cat confdefs.h >>conftest.$ac_ext
9959 cat >>conftest.$ac_ext <<_ACEOF
9960 /* end confdefs.h. */
9961 $ac_includes_default
9962 typedef size_t ac__type_sizeof_;
9964 main ()
9966 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
9967 test_array [0] = 0
9970 return 0;
9972 _ACEOF
9973 rm -f conftest.$ac_objext
9974 if { (ac_try="$ac_compile"
9975 case "(($ac_try" in
9976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9977 *) ac_try_echo=$ac_try;;
9978 esac
9979 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9980 (eval "$ac_compile") 2>conftest.er1
9981 ac_status=$?
9982 grep -v '^ *+' conftest.er1 >conftest.err
9983 rm -f conftest.er1
9984 cat conftest.err >&5
9985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9986 (exit $ac_status); } && {
9987 test -z "$ac_c_werror_flag" ||
9988 test ! -s conftest.err
9989 } && test -s conftest.$ac_objext; then
9990 ac_lo=$ac_mid; break
9991 else
9992 echo "$as_me: failed program was:" >&5
9993 sed 's/^/| /' conftest.$ac_ext >&5
9995 ac_hi=`expr '(' $ac_mid ')' - 1`
9996 if test $ac_mid -le $ac_hi; then
9997 ac_lo= ac_hi=
9998 break
10000 ac_mid=`expr 2 '*' $ac_mid`
10003 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10004 done
10005 else
10006 echo "$as_me: failed program was:" >&5
10007 sed 's/^/| /' conftest.$ac_ext >&5
10009 ac_lo= ac_hi=
10012 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10015 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10016 # Binary search between lo and hi bounds.
10017 while test "x$ac_lo" != "x$ac_hi"; do
10018 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10019 cat >conftest.$ac_ext <<_ACEOF
10020 /* confdefs.h. */
10021 _ACEOF
10022 cat confdefs.h >>conftest.$ac_ext
10023 cat >>conftest.$ac_ext <<_ACEOF
10024 /* end confdefs.h. */
10025 $ac_includes_default
10026 typedef size_t ac__type_sizeof_;
10028 main ()
10030 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
10031 test_array [0] = 0
10034 return 0;
10036 _ACEOF
10037 rm -f conftest.$ac_objext
10038 if { (ac_try="$ac_compile"
10039 case "(($ac_try" in
10040 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10041 *) ac_try_echo=$ac_try;;
10042 esac
10043 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10044 (eval "$ac_compile") 2>conftest.er1
10045 ac_status=$?
10046 grep -v '^ *+' conftest.er1 >conftest.err
10047 rm -f conftest.er1
10048 cat conftest.err >&5
10049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10050 (exit $ac_status); } && {
10051 test -z "$ac_c_werror_flag" ||
10052 test ! -s conftest.err
10053 } && test -s conftest.$ac_objext; then
10054 ac_hi=$ac_mid
10055 else
10056 echo "$as_me: failed program was:" >&5
10057 sed 's/^/| /' conftest.$ac_ext >&5
10059 ac_lo=`expr '(' $ac_mid ')' + 1`
10062 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10063 done
10064 case $ac_lo in
10065 ?*) ac_cv_sizeof_size_t=$ac_lo;;
10066 '') if test "$ac_cv_type_size_t" = yes; then
10067 { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
10068 See \`config.log' for more details." >&5
10069 echo "$as_me: error: cannot compute sizeof (size_t)
10070 See \`config.log' for more details." >&2;}
10071 { (exit 77); exit 77; }; }
10072 else
10073 ac_cv_sizeof_size_t=0
10074 fi ;;
10075 esac
10076 else
10077 cat >conftest.$ac_ext <<_ACEOF
10078 /* confdefs.h. */
10079 _ACEOF
10080 cat confdefs.h >>conftest.$ac_ext
10081 cat >>conftest.$ac_ext <<_ACEOF
10082 /* end confdefs.h. */
10083 $ac_includes_default
10084 typedef size_t ac__type_sizeof_;
10085 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
10086 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
10087 #include <stdio.h>
10088 #include <stdlib.h>
10090 main ()
10093 FILE *f = fopen ("conftest.val", "w");
10094 if (! f)
10095 return 1;
10096 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
10098 long int i = longval ();
10099 if (i != ((long int) (sizeof (ac__type_sizeof_))))
10100 return 1;
10101 fprintf (f, "%ld\n", i);
10103 else
10105 unsigned long int i = ulongval ();
10106 if (i != ((long int) (sizeof (ac__type_sizeof_))))
10107 return 1;
10108 fprintf (f, "%lu\n", i);
10110 return ferror (f) || fclose (f) != 0;
10113 return 0;
10115 _ACEOF
10116 rm -f conftest$ac_exeext
10117 if { (ac_try="$ac_link"
10118 case "(($ac_try" in
10119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10120 *) ac_try_echo=$ac_try;;
10121 esac
10122 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10123 (eval "$ac_link") 2>&5
10124 ac_status=$?
10125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10126 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10127 { (case "(($ac_try" in
10128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10129 *) ac_try_echo=$ac_try;;
10130 esac
10131 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10132 (eval "$ac_try") 2>&5
10133 ac_status=$?
10134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10135 (exit $ac_status); }; }; then
10136 ac_cv_sizeof_size_t=`cat conftest.val`
10137 else
10138 echo "$as_me: program exited with status $ac_status" >&5
10139 echo "$as_me: failed program was:" >&5
10140 sed 's/^/| /' conftest.$ac_ext >&5
10142 ( exit $ac_status )
10143 if test "$ac_cv_type_size_t" = yes; then
10144 { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
10145 See \`config.log' for more details." >&5
10146 echo "$as_me: error: cannot compute sizeof (size_t)
10147 See \`config.log' for more details." >&2;}
10148 { (exit 77); exit 77; }; }
10149 else
10150 ac_cv_sizeof_size_t=0
10153 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10155 rm -f conftest.val
10157 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
10158 echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6; }
10162 cat >>confdefs.h <<_ACEOF
10163 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
10164 _ACEOF
10167 { echo "$as_me:$LINENO: checking for pid_t" >&5
10168 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
10169 if test "${ac_cv_type_pid_t+set}" = set; then
10170 echo $ECHO_N "(cached) $ECHO_C" >&6
10171 else
10172 cat >conftest.$ac_ext <<_ACEOF
10173 /* confdefs.h. */
10174 _ACEOF
10175 cat confdefs.h >>conftest.$ac_ext
10176 cat >>conftest.$ac_ext <<_ACEOF
10177 /* end confdefs.h. */
10178 $ac_includes_default
10179 typedef pid_t ac__type_new_;
10181 main ()
10183 if ((ac__type_new_ *) 0)
10184 return 0;
10185 if (sizeof (ac__type_new_))
10186 return 0;
10188 return 0;
10190 _ACEOF
10191 rm -f conftest.$ac_objext
10192 if { (ac_try="$ac_compile"
10193 case "(($ac_try" in
10194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10195 *) ac_try_echo=$ac_try;;
10196 esac
10197 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10198 (eval "$ac_compile") 2>conftest.er1
10199 ac_status=$?
10200 grep -v '^ *+' conftest.er1 >conftest.err
10201 rm -f conftest.er1
10202 cat conftest.err >&5
10203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10204 (exit $ac_status); } && {
10205 test -z "$ac_c_werror_flag" ||
10206 test ! -s conftest.err
10207 } && test -s conftest.$ac_objext; then
10208 ac_cv_type_pid_t=yes
10209 else
10210 echo "$as_me: failed program was:" >&5
10211 sed 's/^/| /' conftest.$ac_ext >&5
10213 ac_cv_type_pid_t=no
10216 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10218 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
10219 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
10221 # The cast to long int works around a bug in the HP C Compiler
10222 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10223 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10224 # This bug is HP SR number 8606223364.
10225 { echo "$as_me:$LINENO: checking size of pid_t" >&5
10226 echo $ECHO_N "checking size of pid_t... $ECHO_C" >&6; }
10227 if test "${ac_cv_sizeof_pid_t+set}" = set; then
10228 echo $ECHO_N "(cached) $ECHO_C" >&6
10229 else
10230 if test "$cross_compiling" = yes; then
10231 # Depending upon the size, compute the lo and hi bounds.
10232 cat >conftest.$ac_ext <<_ACEOF
10233 /* confdefs.h. */
10234 _ACEOF
10235 cat confdefs.h >>conftest.$ac_ext
10236 cat >>conftest.$ac_ext <<_ACEOF
10237 /* end confdefs.h. */
10238 $ac_includes_default
10239 typedef pid_t ac__type_sizeof_;
10241 main ()
10243 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
10244 test_array [0] = 0
10247 return 0;
10249 _ACEOF
10250 rm -f conftest.$ac_objext
10251 if { (ac_try="$ac_compile"
10252 case "(($ac_try" in
10253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10254 *) ac_try_echo=$ac_try;;
10255 esac
10256 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10257 (eval "$ac_compile") 2>conftest.er1
10258 ac_status=$?
10259 grep -v '^ *+' conftest.er1 >conftest.err
10260 rm -f conftest.er1
10261 cat conftest.err >&5
10262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10263 (exit $ac_status); } && {
10264 test -z "$ac_c_werror_flag" ||
10265 test ! -s conftest.err
10266 } && test -s conftest.$ac_objext; then
10267 ac_lo=0 ac_mid=0
10268 while :; do
10269 cat >conftest.$ac_ext <<_ACEOF
10270 /* confdefs.h. */
10271 _ACEOF
10272 cat confdefs.h >>conftest.$ac_ext
10273 cat >>conftest.$ac_ext <<_ACEOF
10274 /* end confdefs.h. */
10275 $ac_includes_default
10276 typedef pid_t ac__type_sizeof_;
10278 main ()
10280 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
10281 test_array [0] = 0
10284 return 0;
10286 _ACEOF
10287 rm -f conftest.$ac_objext
10288 if { (ac_try="$ac_compile"
10289 case "(($ac_try" in
10290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10291 *) ac_try_echo=$ac_try;;
10292 esac
10293 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10294 (eval "$ac_compile") 2>conftest.er1
10295 ac_status=$?
10296 grep -v '^ *+' conftest.er1 >conftest.err
10297 rm -f conftest.er1
10298 cat conftest.err >&5
10299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10300 (exit $ac_status); } && {
10301 test -z "$ac_c_werror_flag" ||
10302 test ! -s conftest.err
10303 } && test -s conftest.$ac_objext; then
10304 ac_hi=$ac_mid; break
10305 else
10306 echo "$as_me: failed program was:" >&5
10307 sed 's/^/| /' conftest.$ac_ext >&5
10309 ac_lo=`expr $ac_mid + 1`
10310 if test $ac_lo -le $ac_mid; then
10311 ac_lo= ac_hi=
10312 break
10314 ac_mid=`expr 2 '*' $ac_mid + 1`
10317 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10318 done
10319 else
10320 echo "$as_me: failed program was:" >&5
10321 sed 's/^/| /' conftest.$ac_ext >&5
10323 cat >conftest.$ac_ext <<_ACEOF
10324 /* confdefs.h. */
10325 _ACEOF
10326 cat confdefs.h >>conftest.$ac_ext
10327 cat >>conftest.$ac_ext <<_ACEOF
10328 /* end confdefs.h. */
10329 $ac_includes_default
10330 typedef pid_t ac__type_sizeof_;
10332 main ()
10334 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
10335 test_array [0] = 0
10338 return 0;
10340 _ACEOF
10341 rm -f conftest.$ac_objext
10342 if { (ac_try="$ac_compile"
10343 case "(($ac_try" in
10344 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10345 *) ac_try_echo=$ac_try;;
10346 esac
10347 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10348 (eval "$ac_compile") 2>conftest.er1
10349 ac_status=$?
10350 grep -v '^ *+' conftest.er1 >conftest.err
10351 rm -f conftest.er1
10352 cat conftest.err >&5
10353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10354 (exit $ac_status); } && {
10355 test -z "$ac_c_werror_flag" ||
10356 test ! -s conftest.err
10357 } && test -s conftest.$ac_objext; then
10358 ac_hi=-1 ac_mid=-1
10359 while :; do
10360 cat >conftest.$ac_ext <<_ACEOF
10361 /* confdefs.h. */
10362 _ACEOF
10363 cat confdefs.h >>conftest.$ac_ext
10364 cat >>conftest.$ac_ext <<_ACEOF
10365 /* end confdefs.h. */
10366 $ac_includes_default
10367 typedef pid_t ac__type_sizeof_;
10369 main ()
10371 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
10372 test_array [0] = 0
10375 return 0;
10377 _ACEOF
10378 rm -f conftest.$ac_objext
10379 if { (ac_try="$ac_compile"
10380 case "(($ac_try" in
10381 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10382 *) ac_try_echo=$ac_try;;
10383 esac
10384 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10385 (eval "$ac_compile") 2>conftest.er1
10386 ac_status=$?
10387 grep -v '^ *+' conftest.er1 >conftest.err
10388 rm -f conftest.er1
10389 cat conftest.err >&5
10390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10391 (exit $ac_status); } && {
10392 test -z "$ac_c_werror_flag" ||
10393 test ! -s conftest.err
10394 } && test -s conftest.$ac_objext; then
10395 ac_lo=$ac_mid; break
10396 else
10397 echo "$as_me: failed program was:" >&5
10398 sed 's/^/| /' conftest.$ac_ext >&5
10400 ac_hi=`expr '(' $ac_mid ')' - 1`
10401 if test $ac_mid -le $ac_hi; then
10402 ac_lo= ac_hi=
10403 break
10405 ac_mid=`expr 2 '*' $ac_mid`
10408 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10409 done
10410 else
10411 echo "$as_me: failed program was:" >&5
10412 sed 's/^/| /' conftest.$ac_ext >&5
10414 ac_lo= ac_hi=
10417 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10420 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10421 # Binary search between lo and hi bounds.
10422 while test "x$ac_lo" != "x$ac_hi"; do
10423 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10424 cat >conftest.$ac_ext <<_ACEOF
10425 /* confdefs.h. */
10426 _ACEOF
10427 cat confdefs.h >>conftest.$ac_ext
10428 cat >>conftest.$ac_ext <<_ACEOF
10429 /* end confdefs.h. */
10430 $ac_includes_default
10431 typedef pid_t ac__type_sizeof_;
10433 main ()
10435 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
10436 test_array [0] = 0
10439 return 0;
10441 _ACEOF
10442 rm -f conftest.$ac_objext
10443 if { (ac_try="$ac_compile"
10444 case "(($ac_try" in
10445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10446 *) ac_try_echo=$ac_try;;
10447 esac
10448 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10449 (eval "$ac_compile") 2>conftest.er1
10450 ac_status=$?
10451 grep -v '^ *+' conftest.er1 >conftest.err
10452 rm -f conftest.er1
10453 cat conftest.err >&5
10454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10455 (exit $ac_status); } && {
10456 test -z "$ac_c_werror_flag" ||
10457 test ! -s conftest.err
10458 } && test -s conftest.$ac_objext; then
10459 ac_hi=$ac_mid
10460 else
10461 echo "$as_me: failed program was:" >&5
10462 sed 's/^/| /' conftest.$ac_ext >&5
10464 ac_lo=`expr '(' $ac_mid ')' + 1`
10467 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10468 done
10469 case $ac_lo in
10470 ?*) ac_cv_sizeof_pid_t=$ac_lo;;
10471 '') if test "$ac_cv_type_pid_t" = yes; then
10472 { { echo "$as_me:$LINENO: error: cannot compute sizeof (pid_t)
10473 See \`config.log' for more details." >&5
10474 echo "$as_me: error: cannot compute sizeof (pid_t)
10475 See \`config.log' for more details." >&2;}
10476 { (exit 77); exit 77; }; }
10477 else
10478 ac_cv_sizeof_pid_t=0
10479 fi ;;
10480 esac
10481 else
10482 cat >conftest.$ac_ext <<_ACEOF
10483 /* confdefs.h. */
10484 _ACEOF
10485 cat confdefs.h >>conftest.$ac_ext
10486 cat >>conftest.$ac_ext <<_ACEOF
10487 /* end confdefs.h. */
10488 $ac_includes_default
10489 typedef pid_t ac__type_sizeof_;
10490 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
10491 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
10492 #include <stdio.h>
10493 #include <stdlib.h>
10495 main ()
10498 FILE *f = fopen ("conftest.val", "w");
10499 if (! f)
10500 return 1;
10501 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
10503 long int i = longval ();
10504 if (i != ((long int) (sizeof (ac__type_sizeof_))))
10505 return 1;
10506 fprintf (f, "%ld\n", i);
10508 else
10510 unsigned long int i = ulongval ();
10511 if (i != ((long int) (sizeof (ac__type_sizeof_))))
10512 return 1;
10513 fprintf (f, "%lu\n", i);
10515 return ferror (f) || fclose (f) != 0;
10518 return 0;
10520 _ACEOF
10521 rm -f conftest$ac_exeext
10522 if { (ac_try="$ac_link"
10523 case "(($ac_try" in
10524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10525 *) ac_try_echo=$ac_try;;
10526 esac
10527 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10528 (eval "$ac_link") 2>&5
10529 ac_status=$?
10530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10531 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10532 { (case "(($ac_try" in
10533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10534 *) ac_try_echo=$ac_try;;
10535 esac
10536 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10537 (eval "$ac_try") 2>&5
10538 ac_status=$?
10539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10540 (exit $ac_status); }; }; then
10541 ac_cv_sizeof_pid_t=`cat conftest.val`
10542 else
10543 echo "$as_me: program exited with status $ac_status" >&5
10544 echo "$as_me: failed program was:" >&5
10545 sed 's/^/| /' conftest.$ac_ext >&5
10547 ( exit $ac_status )
10548 if test "$ac_cv_type_pid_t" = yes; then
10549 { { echo "$as_me:$LINENO: error: cannot compute sizeof (pid_t)
10550 See \`config.log' for more details." >&5
10551 echo "$as_me: error: cannot compute sizeof (pid_t)
10552 See \`config.log' for more details." >&2;}
10553 { (exit 77); exit 77; }; }
10554 else
10555 ac_cv_sizeof_pid_t=0
10558 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10560 rm -f conftest.val
10562 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_pid_t" >&5
10563 echo "${ECHO_T}$ac_cv_sizeof_pid_t" >&6; }
10567 cat >>confdefs.h <<_ACEOF
10568 #define SIZEOF_PID_T $ac_cv_sizeof_pid_t
10569 _ACEOF
10573 { echo "$as_me:$LINENO: checking for long long support" >&5
10574 echo $ECHO_N "checking for long long support... $ECHO_C" >&6; }
10575 have_long_long=no
10576 cat >conftest.$ac_ext <<_ACEOF
10577 /* confdefs.h. */
10578 _ACEOF
10579 cat confdefs.h >>conftest.$ac_ext
10580 cat >>conftest.$ac_ext <<_ACEOF
10581 /* end confdefs.h. */
10584 main ()
10586 long long x; x = (long long)0;
10588 return 0;
10590 _ACEOF
10591 rm -f conftest.$ac_objext
10592 if { (ac_try="$ac_compile"
10593 case "(($ac_try" in
10594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10595 *) ac_try_echo=$ac_try;;
10596 esac
10597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10598 (eval "$ac_compile") 2>conftest.er1
10599 ac_status=$?
10600 grep -v '^ *+' conftest.er1 >conftest.err
10601 rm -f conftest.er1
10602 cat conftest.err >&5
10603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10604 (exit $ac_status); } && {
10605 test -z "$ac_c_werror_flag" ||
10606 test ! -s conftest.err
10607 } && test -s conftest.$ac_objext; then
10610 cat >>confdefs.h <<\_ACEOF
10611 #define HAVE_LONG_LONG 1
10612 _ACEOF
10614 have_long_long=yes
10616 else
10617 echo "$as_me: failed program was:" >&5
10618 sed 's/^/| /' conftest.$ac_ext >&5
10623 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10624 { echo "$as_me:$LINENO: result: $have_long_long" >&5
10625 echo "${ECHO_T}$have_long_long" >&6; }
10626 if test "$have_long_long" = yes ; then
10627 { echo "$as_me:$LINENO: checking for long long" >&5
10628 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
10629 if test "${ac_cv_type_long_long+set}" = set; then
10630 echo $ECHO_N "(cached) $ECHO_C" >&6
10631 else
10632 cat >conftest.$ac_ext <<_ACEOF
10633 /* confdefs.h. */
10634 _ACEOF
10635 cat confdefs.h >>conftest.$ac_ext
10636 cat >>conftest.$ac_ext <<_ACEOF
10637 /* end confdefs.h. */
10638 $ac_includes_default
10639 typedef long long ac__type_new_;
10641 main ()
10643 if ((ac__type_new_ *) 0)
10644 return 0;
10645 if (sizeof (ac__type_new_))
10646 return 0;
10648 return 0;
10650 _ACEOF
10651 rm -f conftest.$ac_objext
10652 if { (ac_try="$ac_compile"
10653 case "(($ac_try" in
10654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10655 *) ac_try_echo=$ac_try;;
10656 esac
10657 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10658 (eval "$ac_compile") 2>conftest.er1
10659 ac_status=$?
10660 grep -v '^ *+' conftest.er1 >conftest.err
10661 rm -f conftest.er1
10662 cat conftest.err >&5
10663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10664 (exit $ac_status); } && {
10665 test -z "$ac_c_werror_flag" ||
10666 test ! -s conftest.err
10667 } && test -s conftest.$ac_objext; then
10668 ac_cv_type_long_long=yes
10669 else
10670 echo "$as_me: failed program was:" >&5
10671 sed 's/^/| /' conftest.$ac_ext >&5
10673 ac_cv_type_long_long=no
10676 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10678 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
10679 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
10681 # The cast to long int works around a bug in the HP C Compiler
10682 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10683 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10684 # This bug is HP SR number 8606223364.
10685 { echo "$as_me:$LINENO: checking size of long long" >&5
10686 echo $ECHO_N "checking size of long long... $ECHO_C" >&6; }
10687 if test "${ac_cv_sizeof_long_long+set}" = set; then
10688 echo $ECHO_N "(cached) $ECHO_C" >&6
10689 else
10690 if test "$cross_compiling" = yes; then
10691 # Depending upon the size, compute the lo and hi bounds.
10692 cat >conftest.$ac_ext <<_ACEOF
10693 /* confdefs.h. */
10694 _ACEOF
10695 cat confdefs.h >>conftest.$ac_ext
10696 cat >>conftest.$ac_ext <<_ACEOF
10697 /* end confdefs.h. */
10698 $ac_includes_default
10699 typedef long long ac__type_sizeof_;
10701 main ()
10703 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
10704 test_array [0] = 0
10707 return 0;
10709 _ACEOF
10710 rm -f conftest.$ac_objext
10711 if { (ac_try="$ac_compile"
10712 case "(($ac_try" in
10713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10714 *) ac_try_echo=$ac_try;;
10715 esac
10716 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10717 (eval "$ac_compile") 2>conftest.er1
10718 ac_status=$?
10719 grep -v '^ *+' conftest.er1 >conftest.err
10720 rm -f conftest.er1
10721 cat conftest.err >&5
10722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10723 (exit $ac_status); } && {
10724 test -z "$ac_c_werror_flag" ||
10725 test ! -s conftest.err
10726 } && test -s conftest.$ac_objext; then
10727 ac_lo=0 ac_mid=0
10728 while :; do
10729 cat >conftest.$ac_ext <<_ACEOF
10730 /* confdefs.h. */
10731 _ACEOF
10732 cat confdefs.h >>conftest.$ac_ext
10733 cat >>conftest.$ac_ext <<_ACEOF
10734 /* end confdefs.h. */
10735 $ac_includes_default
10736 typedef long long ac__type_sizeof_;
10738 main ()
10740 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
10741 test_array [0] = 0
10744 return 0;
10746 _ACEOF
10747 rm -f conftest.$ac_objext
10748 if { (ac_try="$ac_compile"
10749 case "(($ac_try" in
10750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10751 *) ac_try_echo=$ac_try;;
10752 esac
10753 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10754 (eval "$ac_compile") 2>conftest.er1
10755 ac_status=$?
10756 grep -v '^ *+' conftest.er1 >conftest.err
10757 rm -f conftest.er1
10758 cat conftest.err >&5
10759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10760 (exit $ac_status); } && {
10761 test -z "$ac_c_werror_flag" ||
10762 test ! -s conftest.err
10763 } && test -s conftest.$ac_objext; then
10764 ac_hi=$ac_mid; break
10765 else
10766 echo "$as_me: failed program was:" >&5
10767 sed 's/^/| /' conftest.$ac_ext >&5
10769 ac_lo=`expr $ac_mid + 1`
10770 if test $ac_lo -le $ac_mid; then
10771 ac_lo= ac_hi=
10772 break
10774 ac_mid=`expr 2 '*' $ac_mid + 1`
10777 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10778 done
10779 else
10780 echo "$as_me: failed program was:" >&5
10781 sed 's/^/| /' conftest.$ac_ext >&5
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 long long 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_hi=-1 ac_mid=-1
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 long long 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_lo=$ac_mid; break
10856 else
10857 echo "$as_me: failed program was:" >&5
10858 sed 's/^/| /' conftest.$ac_ext >&5
10860 ac_hi=`expr '(' $ac_mid ')' - 1`
10861 if test $ac_mid -le $ac_hi; then
10862 ac_lo= ac_hi=
10863 break
10865 ac_mid=`expr 2 '*' $ac_mid`
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 ac_lo= ac_hi=
10877 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10880 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10881 # Binary search between lo and hi bounds.
10882 while test "x$ac_lo" != "x$ac_hi"; do
10883 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10884 cat >conftest.$ac_ext <<_ACEOF
10885 /* confdefs.h. */
10886 _ACEOF
10887 cat confdefs.h >>conftest.$ac_ext
10888 cat >>conftest.$ac_ext <<_ACEOF
10889 /* end confdefs.h. */
10890 $ac_includes_default
10891 typedef long long ac__type_sizeof_;
10893 main ()
10895 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
10896 test_array [0] = 0
10899 return 0;
10901 _ACEOF
10902 rm -f conftest.$ac_objext
10903 if { (ac_try="$ac_compile"
10904 case "(($ac_try" in
10905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10906 *) ac_try_echo=$ac_try;;
10907 esac
10908 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10909 (eval "$ac_compile") 2>conftest.er1
10910 ac_status=$?
10911 grep -v '^ *+' conftest.er1 >conftest.err
10912 rm -f conftest.er1
10913 cat conftest.err >&5
10914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10915 (exit $ac_status); } && {
10916 test -z "$ac_c_werror_flag" ||
10917 test ! -s conftest.err
10918 } && test -s conftest.$ac_objext; then
10919 ac_hi=$ac_mid
10920 else
10921 echo "$as_me: failed program was:" >&5
10922 sed 's/^/| /' conftest.$ac_ext >&5
10924 ac_lo=`expr '(' $ac_mid ')' + 1`
10927 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10928 done
10929 case $ac_lo in
10930 ?*) ac_cv_sizeof_long_long=$ac_lo;;
10931 '') if test "$ac_cv_type_long_long" = yes; then
10932 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
10933 See \`config.log' for more details." >&5
10934 echo "$as_me: error: cannot compute sizeof (long long)
10935 See \`config.log' for more details." >&2;}
10936 { (exit 77); exit 77; }; }
10937 else
10938 ac_cv_sizeof_long_long=0
10939 fi ;;
10940 esac
10941 else
10942 cat >conftest.$ac_ext <<_ACEOF
10943 /* confdefs.h. */
10944 _ACEOF
10945 cat confdefs.h >>conftest.$ac_ext
10946 cat >>conftest.$ac_ext <<_ACEOF
10947 /* end confdefs.h. */
10948 $ac_includes_default
10949 typedef long long ac__type_sizeof_;
10950 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
10951 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
10952 #include <stdio.h>
10953 #include <stdlib.h>
10955 main ()
10958 FILE *f = fopen ("conftest.val", "w");
10959 if (! f)
10960 return 1;
10961 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
10963 long int i = longval ();
10964 if (i != ((long int) (sizeof (ac__type_sizeof_))))
10965 return 1;
10966 fprintf (f, "%ld\n", i);
10968 else
10970 unsigned long int i = ulongval ();
10971 if (i != ((long int) (sizeof (ac__type_sizeof_))))
10972 return 1;
10973 fprintf (f, "%lu\n", i);
10975 return ferror (f) || fclose (f) != 0;
10978 return 0;
10980 _ACEOF
10981 rm -f conftest$ac_exeext
10982 if { (ac_try="$ac_link"
10983 case "(($ac_try" in
10984 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10985 *) ac_try_echo=$ac_try;;
10986 esac
10987 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10988 (eval "$ac_link") 2>&5
10989 ac_status=$?
10990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10991 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10992 { (case "(($ac_try" in
10993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10994 *) ac_try_echo=$ac_try;;
10995 esac
10996 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10997 (eval "$ac_try") 2>&5
10998 ac_status=$?
10999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11000 (exit $ac_status); }; }; then
11001 ac_cv_sizeof_long_long=`cat conftest.val`
11002 else
11003 echo "$as_me: program exited with status $ac_status" >&5
11004 echo "$as_me: failed program was:" >&5
11005 sed 's/^/| /' conftest.$ac_ext >&5
11007 ( exit $ac_status )
11008 if test "$ac_cv_type_long_long" = yes; then
11009 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
11010 See \`config.log' for more details." >&5
11011 echo "$as_me: error: cannot compute sizeof (long long)
11012 See \`config.log' for more details." >&2;}
11013 { (exit 77); exit 77; }; }
11014 else
11015 ac_cv_sizeof_long_long=0
11018 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11020 rm -f conftest.val
11022 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
11023 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6; }
11027 cat >>confdefs.h <<_ACEOF
11028 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
11029 _ACEOF
11034 { echo "$as_me:$LINENO: checking for _Bool support" >&5
11035 echo $ECHO_N "checking for _Bool support... $ECHO_C" >&6; }
11036 have_c99_bool=no
11037 cat >conftest.$ac_ext <<_ACEOF
11038 /* confdefs.h. */
11039 _ACEOF
11040 cat confdefs.h >>conftest.$ac_ext
11041 cat >>conftest.$ac_ext <<_ACEOF
11042 /* end confdefs.h. */
11045 main ()
11047 _Bool x; x = (_Bool)0;
11049 return 0;
11051 _ACEOF
11052 rm -f conftest.$ac_objext
11053 if { (ac_try="$ac_compile"
11054 case "(($ac_try" in
11055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11056 *) ac_try_echo=$ac_try;;
11057 esac
11058 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11059 (eval "$ac_compile") 2>conftest.er1
11060 ac_status=$?
11061 grep -v '^ *+' conftest.er1 >conftest.err
11062 rm -f conftest.er1
11063 cat conftest.err >&5
11064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11065 (exit $ac_status); } && {
11066 test -z "$ac_c_werror_flag" ||
11067 test ! -s conftest.err
11068 } && test -s conftest.$ac_objext; then
11071 cat >>confdefs.h <<\_ACEOF
11072 #define HAVE_C99_BOOL 1
11073 _ACEOF
11075 have_c99_bool=yes
11077 else
11078 echo "$as_me: failed program was:" >&5
11079 sed 's/^/| /' conftest.$ac_ext >&5
11084 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11085 { echo "$as_me:$LINENO: result: $have_c99_bool" >&5
11086 echo "${ECHO_T}$have_c99_bool" >&6; }
11087 if test "$have_c99_bool" = yes ; then
11088 { echo "$as_me:$LINENO: checking for _Bool" >&5
11089 echo $ECHO_N "checking for _Bool... $ECHO_C" >&6; }
11090 if test "${ac_cv_type__Bool+set}" = set; then
11091 echo $ECHO_N "(cached) $ECHO_C" >&6
11092 else
11093 cat >conftest.$ac_ext <<_ACEOF
11094 /* confdefs.h. */
11095 _ACEOF
11096 cat confdefs.h >>conftest.$ac_ext
11097 cat >>conftest.$ac_ext <<_ACEOF
11098 /* end confdefs.h. */
11099 $ac_includes_default
11100 typedef _Bool ac__type_new_;
11102 main ()
11104 if ((ac__type_new_ *) 0)
11105 return 0;
11106 if (sizeof (ac__type_new_))
11107 return 0;
11109 return 0;
11111 _ACEOF
11112 rm -f conftest.$ac_objext
11113 if { (ac_try="$ac_compile"
11114 case "(($ac_try" in
11115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11116 *) ac_try_echo=$ac_try;;
11117 esac
11118 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11119 (eval "$ac_compile") 2>conftest.er1
11120 ac_status=$?
11121 grep -v '^ *+' conftest.er1 >conftest.err
11122 rm -f conftest.er1
11123 cat conftest.err >&5
11124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11125 (exit $ac_status); } && {
11126 test -z "$ac_c_werror_flag" ||
11127 test ! -s conftest.err
11128 } && test -s conftest.$ac_objext; then
11129 ac_cv_type__Bool=yes
11130 else
11131 echo "$as_me: failed program was:" >&5
11132 sed 's/^/| /' conftest.$ac_ext >&5
11134 ac_cv_type__Bool=no
11137 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11139 { echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5
11140 echo "${ECHO_T}$ac_cv_type__Bool" >&6; }
11142 # The cast to long int works around a bug in the HP C Compiler
11143 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11144 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11145 # This bug is HP SR number 8606223364.
11146 { echo "$as_me:$LINENO: checking size of _Bool" >&5
11147 echo $ECHO_N "checking size of _Bool... $ECHO_C" >&6; }
11148 if test "${ac_cv_sizeof__Bool+set}" = set; then
11149 echo $ECHO_N "(cached) $ECHO_C" >&6
11150 else
11151 if test "$cross_compiling" = yes; then
11152 # Depending upon the size, compute the lo and hi bounds.
11153 cat >conftest.$ac_ext <<_ACEOF
11154 /* confdefs.h. */
11155 _ACEOF
11156 cat confdefs.h >>conftest.$ac_ext
11157 cat >>conftest.$ac_ext <<_ACEOF
11158 /* end confdefs.h. */
11159 $ac_includes_default
11160 typedef _Bool ac__type_sizeof_;
11162 main ()
11164 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
11165 test_array [0] = 0
11168 return 0;
11170 _ACEOF
11171 rm -f conftest.$ac_objext
11172 if { (ac_try="$ac_compile"
11173 case "(($ac_try" in
11174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11175 *) ac_try_echo=$ac_try;;
11176 esac
11177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11178 (eval "$ac_compile") 2>conftest.er1
11179 ac_status=$?
11180 grep -v '^ *+' conftest.er1 >conftest.err
11181 rm -f conftest.er1
11182 cat conftest.err >&5
11183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11184 (exit $ac_status); } && {
11185 test -z "$ac_c_werror_flag" ||
11186 test ! -s conftest.err
11187 } && test -s conftest.$ac_objext; then
11188 ac_lo=0 ac_mid=0
11189 while :; do
11190 cat >conftest.$ac_ext <<_ACEOF
11191 /* confdefs.h. */
11192 _ACEOF
11193 cat confdefs.h >>conftest.$ac_ext
11194 cat >>conftest.$ac_ext <<_ACEOF
11195 /* end confdefs.h. */
11196 $ac_includes_default
11197 typedef _Bool ac__type_sizeof_;
11199 main ()
11201 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
11202 test_array [0] = 0
11205 return 0;
11207 _ACEOF
11208 rm -f conftest.$ac_objext
11209 if { (ac_try="$ac_compile"
11210 case "(($ac_try" in
11211 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11212 *) ac_try_echo=$ac_try;;
11213 esac
11214 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11215 (eval "$ac_compile") 2>conftest.er1
11216 ac_status=$?
11217 grep -v '^ *+' conftest.er1 >conftest.err
11218 rm -f conftest.er1
11219 cat conftest.err >&5
11220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11221 (exit $ac_status); } && {
11222 test -z "$ac_c_werror_flag" ||
11223 test ! -s conftest.err
11224 } && test -s conftest.$ac_objext; then
11225 ac_hi=$ac_mid; break
11226 else
11227 echo "$as_me: failed program was:" >&5
11228 sed 's/^/| /' conftest.$ac_ext >&5
11230 ac_lo=`expr $ac_mid + 1`
11231 if test $ac_lo -le $ac_mid; then
11232 ac_lo= ac_hi=
11233 break
11235 ac_mid=`expr 2 '*' $ac_mid + 1`
11238 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11239 done
11240 else
11241 echo "$as_me: failed program was:" >&5
11242 sed 's/^/| /' conftest.$ac_ext >&5
11244 cat >conftest.$ac_ext <<_ACEOF
11245 /* confdefs.h. */
11246 _ACEOF
11247 cat confdefs.h >>conftest.$ac_ext
11248 cat >>conftest.$ac_ext <<_ACEOF
11249 /* end confdefs.h. */
11250 $ac_includes_default
11251 typedef _Bool ac__type_sizeof_;
11253 main ()
11255 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
11256 test_array [0] = 0
11259 return 0;
11261 _ACEOF
11262 rm -f conftest.$ac_objext
11263 if { (ac_try="$ac_compile"
11264 case "(($ac_try" in
11265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11266 *) ac_try_echo=$ac_try;;
11267 esac
11268 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11269 (eval "$ac_compile") 2>conftest.er1
11270 ac_status=$?
11271 grep -v '^ *+' conftest.er1 >conftest.err
11272 rm -f conftest.er1
11273 cat conftest.err >&5
11274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11275 (exit $ac_status); } && {
11276 test -z "$ac_c_werror_flag" ||
11277 test ! -s conftest.err
11278 } && test -s conftest.$ac_objext; then
11279 ac_hi=-1 ac_mid=-1
11280 while :; do
11281 cat >conftest.$ac_ext <<_ACEOF
11282 /* confdefs.h. */
11283 _ACEOF
11284 cat confdefs.h >>conftest.$ac_ext
11285 cat >>conftest.$ac_ext <<_ACEOF
11286 /* end confdefs.h. */
11287 $ac_includes_default
11288 typedef _Bool ac__type_sizeof_;
11290 main ()
11292 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
11293 test_array [0] = 0
11296 return 0;
11298 _ACEOF
11299 rm -f conftest.$ac_objext
11300 if { (ac_try="$ac_compile"
11301 case "(($ac_try" in
11302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11303 *) ac_try_echo=$ac_try;;
11304 esac
11305 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11306 (eval "$ac_compile") 2>conftest.er1
11307 ac_status=$?
11308 grep -v '^ *+' conftest.er1 >conftest.err
11309 rm -f conftest.er1
11310 cat conftest.err >&5
11311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11312 (exit $ac_status); } && {
11313 test -z "$ac_c_werror_flag" ||
11314 test ! -s conftest.err
11315 } && test -s conftest.$ac_objext; then
11316 ac_lo=$ac_mid; break
11317 else
11318 echo "$as_me: failed program was:" >&5
11319 sed 's/^/| /' conftest.$ac_ext >&5
11321 ac_hi=`expr '(' $ac_mid ')' - 1`
11322 if test $ac_mid -le $ac_hi; then
11323 ac_lo= ac_hi=
11324 break
11326 ac_mid=`expr 2 '*' $ac_mid`
11329 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11330 done
11331 else
11332 echo "$as_me: failed program was:" >&5
11333 sed 's/^/| /' conftest.$ac_ext >&5
11335 ac_lo= ac_hi=
11338 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11341 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11342 # Binary search between lo and hi bounds.
11343 while test "x$ac_lo" != "x$ac_hi"; do
11344 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
11345 cat >conftest.$ac_ext <<_ACEOF
11346 /* confdefs.h. */
11347 _ACEOF
11348 cat confdefs.h >>conftest.$ac_ext
11349 cat >>conftest.$ac_ext <<_ACEOF
11350 /* end confdefs.h. */
11351 $ac_includes_default
11352 typedef _Bool ac__type_sizeof_;
11354 main ()
11356 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
11357 test_array [0] = 0
11360 return 0;
11362 _ACEOF
11363 rm -f conftest.$ac_objext
11364 if { (ac_try="$ac_compile"
11365 case "(($ac_try" in
11366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11367 *) ac_try_echo=$ac_try;;
11368 esac
11369 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11370 (eval "$ac_compile") 2>conftest.er1
11371 ac_status=$?
11372 grep -v '^ *+' conftest.er1 >conftest.err
11373 rm -f conftest.er1
11374 cat conftest.err >&5
11375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11376 (exit $ac_status); } && {
11377 test -z "$ac_c_werror_flag" ||
11378 test ! -s conftest.err
11379 } && test -s conftest.$ac_objext; then
11380 ac_hi=$ac_mid
11381 else
11382 echo "$as_me: failed program was:" >&5
11383 sed 's/^/| /' conftest.$ac_ext >&5
11385 ac_lo=`expr '(' $ac_mid ')' + 1`
11388 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11389 done
11390 case $ac_lo in
11391 ?*) ac_cv_sizeof__Bool=$ac_lo;;
11392 '') if test "$ac_cv_type__Bool" = yes; then
11393 { { echo "$as_me:$LINENO: error: cannot compute sizeof (_Bool)
11394 See \`config.log' for more details." >&5
11395 echo "$as_me: error: cannot compute sizeof (_Bool)
11396 See \`config.log' for more details." >&2;}
11397 { (exit 77); exit 77; }; }
11398 else
11399 ac_cv_sizeof__Bool=0
11400 fi ;;
11401 esac
11402 else
11403 cat >conftest.$ac_ext <<_ACEOF
11404 /* confdefs.h. */
11405 _ACEOF
11406 cat confdefs.h >>conftest.$ac_ext
11407 cat >>conftest.$ac_ext <<_ACEOF
11408 /* end confdefs.h. */
11409 $ac_includes_default
11410 typedef _Bool ac__type_sizeof_;
11411 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
11412 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
11413 #include <stdio.h>
11414 #include <stdlib.h>
11416 main ()
11419 FILE *f = fopen ("conftest.val", "w");
11420 if (! f)
11421 return 1;
11422 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
11424 long int i = longval ();
11425 if (i != ((long int) (sizeof (ac__type_sizeof_))))
11426 return 1;
11427 fprintf (f, "%ld\n", i);
11429 else
11431 unsigned long int i = ulongval ();
11432 if (i != ((long int) (sizeof (ac__type_sizeof_))))
11433 return 1;
11434 fprintf (f, "%lu\n", i);
11436 return ferror (f) || fclose (f) != 0;
11439 return 0;
11441 _ACEOF
11442 rm -f conftest$ac_exeext
11443 if { (ac_try="$ac_link"
11444 case "(($ac_try" in
11445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11446 *) ac_try_echo=$ac_try;;
11447 esac
11448 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11449 (eval "$ac_link") 2>&5
11450 ac_status=$?
11451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11452 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11453 { (case "(($ac_try" in
11454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11455 *) ac_try_echo=$ac_try;;
11456 esac
11457 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11458 (eval "$ac_try") 2>&5
11459 ac_status=$?
11460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11461 (exit $ac_status); }; }; then
11462 ac_cv_sizeof__Bool=`cat conftest.val`
11463 else
11464 echo "$as_me: program exited with status $ac_status" >&5
11465 echo "$as_me: failed program was:" >&5
11466 sed 's/^/| /' conftest.$ac_ext >&5
11468 ( exit $ac_status )
11469 if test "$ac_cv_type__Bool" = yes; then
11470 { { echo "$as_me:$LINENO: error: cannot compute sizeof (_Bool)
11471 See \`config.log' for more details." >&5
11472 echo "$as_me: error: cannot compute sizeof (_Bool)
11473 See \`config.log' for more details." >&2;}
11474 { (exit 77); exit 77; }; }
11475 else
11476 ac_cv_sizeof__Bool=0
11479 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11481 rm -f conftest.val
11483 { echo "$as_me:$LINENO: result: $ac_cv_sizeof__Bool" >&5
11484 echo "${ECHO_T}$ac_cv_sizeof__Bool" >&6; }
11488 cat >>confdefs.h <<_ACEOF
11489 #define SIZEOF__BOOL $ac_cv_sizeof__Bool
11490 _ACEOF
11495 { echo "$as_me:$LINENO: checking for uintptr_t" >&5
11496 echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6; }
11497 if test "${ac_cv_type_uintptr_t+set}" = set; then
11498 echo $ECHO_N "(cached) $ECHO_C" >&6
11499 else
11500 cat >conftest.$ac_ext <<_ACEOF
11501 /* confdefs.h. */
11502 _ACEOF
11503 cat confdefs.h >>conftest.$ac_ext
11504 cat >>conftest.$ac_ext <<_ACEOF
11505 /* end confdefs.h. */
11506 #ifdef HAVE_STDINT_H
11507 #include <stdint.h>
11508 #endif
11510 typedef uintptr_t ac__type_new_;
11512 main ()
11514 if ((ac__type_new_ *) 0)
11515 return 0;
11516 if (sizeof (ac__type_new_))
11517 return 0;
11519 return 0;
11521 _ACEOF
11522 rm -f conftest.$ac_objext
11523 if { (ac_try="$ac_compile"
11524 case "(($ac_try" in
11525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11526 *) ac_try_echo=$ac_try;;
11527 esac
11528 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11529 (eval "$ac_compile") 2>conftest.er1
11530 ac_status=$?
11531 grep -v '^ *+' conftest.er1 >conftest.err
11532 rm -f conftest.er1
11533 cat conftest.err >&5
11534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11535 (exit $ac_status); } && {
11536 test -z "$ac_c_werror_flag" ||
11537 test ! -s conftest.err
11538 } && test -s conftest.$ac_objext; then
11539 ac_cv_type_uintptr_t=yes
11540 else
11541 echo "$as_me: failed program was:" >&5
11542 sed 's/^/| /' conftest.$ac_ext >&5
11544 ac_cv_type_uintptr_t=no
11547 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11549 { echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
11550 echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6; }
11551 if test $ac_cv_type_uintptr_t = yes; then
11553 cat >>confdefs.h <<_ACEOF
11554 #define HAVE_UINTPTR_T 1
11555 _ACEOF
11557 { echo "$as_me:$LINENO: checking for uintptr_t" >&5
11558 echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6; }
11559 if test "${ac_cv_type_uintptr_t+set}" = set; then
11560 echo $ECHO_N "(cached) $ECHO_C" >&6
11561 else
11562 cat >conftest.$ac_ext <<_ACEOF
11563 /* confdefs.h. */
11564 _ACEOF
11565 cat confdefs.h >>conftest.$ac_ext
11566 cat >>conftest.$ac_ext <<_ACEOF
11567 /* end confdefs.h. */
11568 $ac_includes_default
11569 typedef uintptr_t ac__type_new_;
11571 main ()
11573 if ((ac__type_new_ *) 0)
11574 return 0;
11575 if (sizeof (ac__type_new_))
11576 return 0;
11578 return 0;
11580 _ACEOF
11581 rm -f conftest.$ac_objext
11582 if { (ac_try="$ac_compile"
11583 case "(($ac_try" in
11584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11585 *) ac_try_echo=$ac_try;;
11586 esac
11587 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11588 (eval "$ac_compile") 2>conftest.er1
11589 ac_status=$?
11590 grep -v '^ *+' conftest.er1 >conftest.err
11591 rm -f conftest.er1
11592 cat conftest.err >&5
11593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11594 (exit $ac_status); } && {
11595 test -z "$ac_c_werror_flag" ||
11596 test ! -s conftest.err
11597 } && test -s conftest.$ac_objext; then
11598 ac_cv_type_uintptr_t=yes
11599 else
11600 echo "$as_me: failed program was:" >&5
11601 sed 's/^/| /' conftest.$ac_ext >&5
11603 ac_cv_type_uintptr_t=no
11606 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11608 { echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
11609 echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6; }
11611 # The cast to long int works around a bug in the HP C Compiler
11612 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11613 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11614 # This bug is HP SR number 8606223364.
11615 { echo "$as_me:$LINENO: checking size of uintptr_t" >&5
11616 echo $ECHO_N "checking size of uintptr_t... $ECHO_C" >&6; }
11617 if test "${ac_cv_sizeof_uintptr_t+set}" = set; then
11618 echo $ECHO_N "(cached) $ECHO_C" >&6
11619 else
11620 if test "$cross_compiling" = yes; then
11621 # Depending upon the size, compute the lo and hi bounds.
11622 cat >conftest.$ac_ext <<_ACEOF
11623 /* confdefs.h. */
11624 _ACEOF
11625 cat confdefs.h >>conftest.$ac_ext
11626 cat >>conftest.$ac_ext <<_ACEOF
11627 /* end confdefs.h. */
11628 $ac_includes_default
11629 typedef uintptr_t ac__type_sizeof_;
11631 main ()
11633 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
11634 test_array [0] = 0
11637 return 0;
11639 _ACEOF
11640 rm -f conftest.$ac_objext
11641 if { (ac_try="$ac_compile"
11642 case "(($ac_try" in
11643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11644 *) ac_try_echo=$ac_try;;
11645 esac
11646 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11647 (eval "$ac_compile") 2>conftest.er1
11648 ac_status=$?
11649 grep -v '^ *+' conftest.er1 >conftest.err
11650 rm -f conftest.er1
11651 cat conftest.err >&5
11652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11653 (exit $ac_status); } && {
11654 test -z "$ac_c_werror_flag" ||
11655 test ! -s conftest.err
11656 } && test -s conftest.$ac_objext; then
11657 ac_lo=0 ac_mid=0
11658 while :; do
11659 cat >conftest.$ac_ext <<_ACEOF
11660 /* confdefs.h. */
11661 _ACEOF
11662 cat confdefs.h >>conftest.$ac_ext
11663 cat >>conftest.$ac_ext <<_ACEOF
11664 /* end confdefs.h. */
11665 $ac_includes_default
11666 typedef uintptr_t ac__type_sizeof_;
11668 main ()
11670 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
11671 test_array [0] = 0
11674 return 0;
11676 _ACEOF
11677 rm -f conftest.$ac_objext
11678 if { (ac_try="$ac_compile"
11679 case "(($ac_try" in
11680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11681 *) ac_try_echo=$ac_try;;
11682 esac
11683 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11684 (eval "$ac_compile") 2>conftest.er1
11685 ac_status=$?
11686 grep -v '^ *+' conftest.er1 >conftest.err
11687 rm -f conftest.er1
11688 cat conftest.err >&5
11689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11690 (exit $ac_status); } && {
11691 test -z "$ac_c_werror_flag" ||
11692 test ! -s conftest.err
11693 } && test -s conftest.$ac_objext; then
11694 ac_hi=$ac_mid; break
11695 else
11696 echo "$as_me: failed program was:" >&5
11697 sed 's/^/| /' conftest.$ac_ext >&5
11699 ac_lo=`expr $ac_mid + 1`
11700 if test $ac_lo -le $ac_mid; then
11701 ac_lo= ac_hi=
11702 break
11704 ac_mid=`expr 2 '*' $ac_mid + 1`
11707 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11708 done
11709 else
11710 echo "$as_me: failed program was:" >&5
11711 sed 's/^/| /' conftest.$ac_ext >&5
11713 cat >conftest.$ac_ext <<_ACEOF
11714 /* confdefs.h. */
11715 _ACEOF
11716 cat confdefs.h >>conftest.$ac_ext
11717 cat >>conftest.$ac_ext <<_ACEOF
11718 /* end confdefs.h. */
11719 $ac_includes_default
11720 typedef uintptr_t ac__type_sizeof_;
11722 main ()
11724 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
11725 test_array [0] = 0
11728 return 0;
11730 _ACEOF
11731 rm -f conftest.$ac_objext
11732 if { (ac_try="$ac_compile"
11733 case "(($ac_try" in
11734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11735 *) ac_try_echo=$ac_try;;
11736 esac
11737 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11738 (eval "$ac_compile") 2>conftest.er1
11739 ac_status=$?
11740 grep -v '^ *+' conftest.er1 >conftest.err
11741 rm -f conftest.er1
11742 cat conftest.err >&5
11743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11744 (exit $ac_status); } && {
11745 test -z "$ac_c_werror_flag" ||
11746 test ! -s conftest.err
11747 } && test -s conftest.$ac_objext; then
11748 ac_hi=-1 ac_mid=-1
11749 while :; do
11750 cat >conftest.$ac_ext <<_ACEOF
11751 /* confdefs.h. */
11752 _ACEOF
11753 cat confdefs.h >>conftest.$ac_ext
11754 cat >>conftest.$ac_ext <<_ACEOF
11755 /* end confdefs.h. */
11756 $ac_includes_default
11757 typedef uintptr_t ac__type_sizeof_;
11759 main ()
11761 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
11762 test_array [0] = 0
11765 return 0;
11767 _ACEOF
11768 rm -f conftest.$ac_objext
11769 if { (ac_try="$ac_compile"
11770 case "(($ac_try" in
11771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11772 *) ac_try_echo=$ac_try;;
11773 esac
11774 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11775 (eval "$ac_compile") 2>conftest.er1
11776 ac_status=$?
11777 grep -v '^ *+' conftest.er1 >conftest.err
11778 rm -f conftest.er1
11779 cat conftest.err >&5
11780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11781 (exit $ac_status); } && {
11782 test -z "$ac_c_werror_flag" ||
11783 test ! -s conftest.err
11784 } && test -s conftest.$ac_objext; then
11785 ac_lo=$ac_mid; break
11786 else
11787 echo "$as_me: failed program was:" >&5
11788 sed 's/^/| /' conftest.$ac_ext >&5
11790 ac_hi=`expr '(' $ac_mid ')' - 1`
11791 if test $ac_mid -le $ac_hi; then
11792 ac_lo= ac_hi=
11793 break
11795 ac_mid=`expr 2 '*' $ac_mid`
11798 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11799 done
11800 else
11801 echo "$as_me: failed program was:" >&5
11802 sed 's/^/| /' conftest.$ac_ext >&5
11804 ac_lo= ac_hi=
11807 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11810 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11811 # Binary search between lo and hi bounds.
11812 while test "x$ac_lo" != "x$ac_hi"; do
11813 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
11814 cat >conftest.$ac_ext <<_ACEOF
11815 /* confdefs.h. */
11816 _ACEOF
11817 cat confdefs.h >>conftest.$ac_ext
11818 cat >>conftest.$ac_ext <<_ACEOF
11819 /* end confdefs.h. */
11820 $ac_includes_default
11821 typedef uintptr_t ac__type_sizeof_;
11823 main ()
11825 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
11826 test_array [0] = 0
11829 return 0;
11831 _ACEOF
11832 rm -f conftest.$ac_objext
11833 if { (ac_try="$ac_compile"
11834 case "(($ac_try" in
11835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11836 *) ac_try_echo=$ac_try;;
11837 esac
11838 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11839 (eval "$ac_compile") 2>conftest.er1
11840 ac_status=$?
11841 grep -v '^ *+' conftest.er1 >conftest.err
11842 rm -f conftest.er1
11843 cat conftest.err >&5
11844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11845 (exit $ac_status); } && {
11846 test -z "$ac_c_werror_flag" ||
11847 test ! -s conftest.err
11848 } && test -s conftest.$ac_objext; then
11849 ac_hi=$ac_mid
11850 else
11851 echo "$as_me: failed program was:" >&5
11852 sed 's/^/| /' conftest.$ac_ext >&5
11854 ac_lo=`expr '(' $ac_mid ')' + 1`
11857 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11858 done
11859 case $ac_lo in
11860 ?*) ac_cv_sizeof_uintptr_t=$ac_lo;;
11861 '') if test "$ac_cv_type_uintptr_t" = yes; then
11862 { { echo "$as_me:$LINENO: error: cannot compute sizeof (uintptr_t)
11863 See \`config.log' for more details." >&5
11864 echo "$as_me: error: cannot compute sizeof (uintptr_t)
11865 See \`config.log' for more details." >&2;}
11866 { (exit 77); exit 77; }; }
11867 else
11868 ac_cv_sizeof_uintptr_t=0
11869 fi ;;
11870 esac
11871 else
11872 cat >conftest.$ac_ext <<_ACEOF
11873 /* confdefs.h. */
11874 _ACEOF
11875 cat confdefs.h >>conftest.$ac_ext
11876 cat >>conftest.$ac_ext <<_ACEOF
11877 /* end confdefs.h. */
11878 $ac_includes_default
11879 typedef uintptr_t ac__type_sizeof_;
11880 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
11881 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
11882 #include <stdio.h>
11883 #include <stdlib.h>
11885 main ()
11888 FILE *f = fopen ("conftest.val", "w");
11889 if (! f)
11890 return 1;
11891 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
11893 long int i = longval ();
11894 if (i != ((long int) (sizeof (ac__type_sizeof_))))
11895 return 1;
11896 fprintf (f, "%ld\n", i);
11898 else
11900 unsigned long int i = ulongval ();
11901 if (i != ((long int) (sizeof (ac__type_sizeof_))))
11902 return 1;
11903 fprintf (f, "%lu\n", i);
11905 return ferror (f) || fclose (f) != 0;
11908 return 0;
11910 _ACEOF
11911 rm -f conftest$ac_exeext
11912 if { (ac_try="$ac_link"
11913 case "(($ac_try" in
11914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11915 *) ac_try_echo=$ac_try;;
11916 esac
11917 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11918 (eval "$ac_link") 2>&5
11919 ac_status=$?
11920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11921 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11922 { (case "(($ac_try" in
11923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11924 *) ac_try_echo=$ac_try;;
11925 esac
11926 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11927 (eval "$ac_try") 2>&5
11928 ac_status=$?
11929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11930 (exit $ac_status); }; }; then
11931 ac_cv_sizeof_uintptr_t=`cat conftest.val`
11932 else
11933 echo "$as_me: program exited with status $ac_status" >&5
11934 echo "$as_me: failed program was:" >&5
11935 sed 's/^/| /' conftest.$ac_ext >&5
11937 ( exit $ac_status )
11938 if test "$ac_cv_type_uintptr_t" = yes; then
11939 { { echo "$as_me:$LINENO: error: cannot compute sizeof (uintptr_t)
11940 See \`config.log' for more details." >&5
11941 echo "$as_me: error: cannot compute sizeof (uintptr_t)
11942 See \`config.log' for more details." >&2;}
11943 { (exit 77); exit 77; }; }
11944 else
11945 ac_cv_sizeof_uintptr_t=0
11948 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11950 rm -f conftest.val
11952 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_uintptr_t" >&5
11953 echo "${ECHO_T}$ac_cv_sizeof_uintptr_t" >&6; }
11957 cat >>confdefs.h <<_ACEOF
11958 #define SIZEOF_UINTPTR_T $ac_cv_sizeof_uintptr_t
11959 _ACEOF
11966 # Hmph. AC_CHECK_SIZEOF() doesn't include <sys/types.h>.
11967 { echo "$as_me:$LINENO: checking size of off_t" >&5
11968 echo $ECHO_N "checking size of off_t... $ECHO_C" >&6; }
11969 if test "${ac_cv_sizeof_off_t+set}" = set; then
11970 echo $ECHO_N "(cached) $ECHO_C" >&6
11971 else
11972 if test "$cross_compiling" = yes; then
11973 ac_cv_sizeof_off_t=4
11974 else
11975 cat >conftest.$ac_ext <<_ACEOF
11976 /* confdefs.h. */
11977 _ACEOF
11978 cat confdefs.h >>conftest.$ac_ext
11979 cat >>conftest.$ac_ext <<_ACEOF
11980 /* end confdefs.h. */
11981 #include <stdio.h>
11982 #include <sys/types.h>
11983 main()
11985 FILE *f=fopen("conftestval", "w");
11986 if (!f) exit(1);
11987 fprintf(f, "%d\n", sizeof(off_t));
11988 exit(0);
11990 _ACEOF
11991 rm -f conftest$ac_exeext
11992 if { (ac_try="$ac_link"
11993 case "(($ac_try" in
11994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11995 *) ac_try_echo=$ac_try;;
11996 esac
11997 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11998 (eval "$ac_link") 2>&5
11999 ac_status=$?
12000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12001 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12002 { (case "(($ac_try" in
12003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12004 *) ac_try_echo=$ac_try;;
12005 esac
12006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12007 (eval "$ac_try") 2>&5
12008 ac_status=$?
12009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12010 (exit $ac_status); }; }; then
12011 ac_cv_sizeof_off_t=`cat conftestval`
12012 else
12013 echo "$as_me: program exited with status $ac_status" >&5
12014 echo "$as_me: failed program was:" >&5
12015 sed 's/^/| /' conftest.$ac_ext >&5
12017 ( exit $ac_status )
12018 ac_cv_sizeof_off_t=0
12020 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12027 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_off_t" >&5
12028 echo "${ECHO_T}$ac_cv_sizeof_off_t" >&6; }
12030 cat >>confdefs.h <<_ACEOF
12031 #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
12032 _ACEOF
12035 { echo "$as_me:$LINENO: checking whether to enable large file support" >&5
12036 echo $ECHO_N "checking whether to enable large file support... $ECHO_C" >&6; }
12037 if test "$have_long_long" = yes -a \
12038 "$ac_cv_sizeof_off_t" -gt "$ac_cv_sizeof_long" -a \
12039 "$ac_cv_sizeof_long_long" -ge "$ac_cv_sizeof_off_t"; then
12041 cat >>confdefs.h <<\_ACEOF
12042 #define HAVE_LARGEFILE_SUPPORT 1
12043 _ACEOF
12045 { echo "$as_me:$LINENO: result: yes" >&5
12046 echo "${ECHO_T}yes" >&6; }
12047 else
12048 { echo "$as_me:$LINENO: result: no" >&5
12049 echo "${ECHO_T}no" >&6; }
12052 # AC_CHECK_SIZEOF() doesn't include <time.h>.
12053 { echo "$as_me:$LINENO: checking size of time_t" >&5
12054 echo $ECHO_N "checking size of time_t... $ECHO_C" >&6; }
12055 if test "${ac_cv_sizeof_time_t+set}" = set; then
12056 echo $ECHO_N "(cached) $ECHO_C" >&6
12057 else
12058 if test "$cross_compiling" = yes; then
12059 ac_cv_sizeof_time_t=4
12060 else
12061 cat >conftest.$ac_ext <<_ACEOF
12062 /* confdefs.h. */
12063 _ACEOF
12064 cat confdefs.h >>conftest.$ac_ext
12065 cat >>conftest.$ac_ext <<_ACEOF
12066 /* end confdefs.h. */
12067 #include <stdio.h>
12068 #include <time.h>
12069 main()
12071 FILE *f=fopen("conftestval", "w");
12072 if (!f) exit(1);
12073 fprintf(f, "%d\n", sizeof(time_t));
12074 exit(0);
12076 _ACEOF
12077 rm -f conftest$ac_exeext
12078 if { (ac_try="$ac_link"
12079 case "(($ac_try" in
12080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12081 *) ac_try_echo=$ac_try;;
12082 esac
12083 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12084 (eval "$ac_link") 2>&5
12085 ac_status=$?
12086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12087 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12088 { (case "(($ac_try" in
12089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12090 *) ac_try_echo=$ac_try;;
12091 esac
12092 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12093 (eval "$ac_try") 2>&5
12094 ac_status=$?
12095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12096 (exit $ac_status); }; }; then
12097 ac_cv_sizeof_time_t=`cat conftestval`
12098 else
12099 echo "$as_me: program exited with status $ac_status" >&5
12100 echo "$as_me: failed program was:" >&5
12101 sed 's/^/| /' conftest.$ac_ext >&5
12103 ( exit $ac_status )
12104 ac_cv_sizeof_time_t=0
12106 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12113 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_time_t" >&5
12114 echo "${ECHO_T}$ac_cv_sizeof_time_t" >&6; }
12116 cat >>confdefs.h <<_ACEOF
12117 #define SIZEOF_TIME_T $ac_cv_sizeof_time_t
12118 _ACEOF
12122 # if have pthread_t then define SIZEOF_PTHREAD_T
12123 ac_save_cc="$CC"
12124 if test "$ac_cv_kpthread" = "yes"
12125 then CC="$CC -Kpthread"
12126 elif test "$ac_cv_kthread" = "yes"
12127 then CC="$CC -Kthread"
12128 elif test "$ac_cv_pthread" = "yes"
12129 then CC="$CC -pthread"
12131 { echo "$as_me:$LINENO: checking for pthread_t" >&5
12132 echo $ECHO_N "checking for pthread_t... $ECHO_C" >&6; }
12133 have_pthread_t=no
12134 cat >conftest.$ac_ext <<_ACEOF
12135 /* confdefs.h. */
12136 _ACEOF
12137 cat confdefs.h >>conftest.$ac_ext
12138 cat >>conftest.$ac_ext <<_ACEOF
12139 /* end confdefs.h. */
12140 #include <pthread.h>
12142 main ()
12144 pthread_t x; x = *(pthread_t*)0;
12146 return 0;
12148 _ACEOF
12149 rm -f conftest.$ac_objext
12150 if { (ac_try="$ac_compile"
12151 case "(($ac_try" in
12152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12153 *) ac_try_echo=$ac_try;;
12154 esac
12155 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12156 (eval "$ac_compile") 2>conftest.er1
12157 ac_status=$?
12158 grep -v '^ *+' conftest.er1 >conftest.err
12159 rm -f conftest.er1
12160 cat conftest.err >&5
12161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12162 (exit $ac_status); } && {
12163 test -z "$ac_c_werror_flag" ||
12164 test ! -s conftest.err
12165 } && test -s conftest.$ac_objext; then
12166 have_pthread_t=yes
12167 else
12168 echo "$as_me: failed program was:" >&5
12169 sed 's/^/| /' conftest.$ac_ext >&5
12174 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12175 { echo "$as_me:$LINENO: result: $have_pthread_t" >&5
12176 echo "${ECHO_T}$have_pthread_t" >&6; }
12177 if test "$have_pthread_t" = yes ; then
12178 # AC_CHECK_SIZEOF() doesn't include <pthread.h>.
12179 { echo "$as_me:$LINENO: checking size of pthread_t" >&5
12180 echo $ECHO_N "checking size of pthread_t... $ECHO_C" >&6; }
12181 if test "${ac_cv_sizeof_pthread_t+set}" = set; then
12182 echo $ECHO_N "(cached) $ECHO_C" >&6
12183 else
12184 if test "$cross_compiling" = yes; then
12185 ac_cv_sizeof_pthread_t=4
12186 else
12187 cat >conftest.$ac_ext <<_ACEOF
12188 /* confdefs.h. */
12189 _ACEOF
12190 cat confdefs.h >>conftest.$ac_ext
12191 cat >>conftest.$ac_ext <<_ACEOF
12192 /* end confdefs.h. */
12193 #include <stdio.h>
12194 #include <pthread.h>
12195 main()
12197 FILE *f=fopen("conftestval", "w");
12198 if (!f) exit(1);
12199 fprintf(f, "%d\n", sizeof(pthread_t));
12200 exit(0);
12202 _ACEOF
12203 rm -f conftest$ac_exeext
12204 if { (ac_try="$ac_link"
12205 case "(($ac_try" in
12206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12207 *) ac_try_echo=$ac_try;;
12208 esac
12209 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12210 (eval "$ac_link") 2>&5
12211 ac_status=$?
12212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12213 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12214 { (case "(($ac_try" in
12215 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12216 *) ac_try_echo=$ac_try;;
12217 esac
12218 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12219 (eval "$ac_try") 2>&5
12220 ac_status=$?
12221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12222 (exit $ac_status); }; }; then
12223 ac_cv_sizeof_pthread_t=`cat conftestval`
12224 else
12225 echo "$as_me: program exited with status $ac_status" >&5
12226 echo "$as_me: failed program was:" >&5
12227 sed 's/^/| /' conftest.$ac_ext >&5
12229 ( exit $ac_status )
12230 ac_cv_sizeof_pthread_t=0
12232 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12239 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_pthread_t" >&5
12240 echo "${ECHO_T}$ac_cv_sizeof_pthread_t" >&6; }
12242 cat >>confdefs.h <<_ACEOF
12243 #define SIZEOF_PTHREAD_T $ac_cv_sizeof_pthread_t
12244 _ACEOF
12247 CC="$ac_save_cc"
12249 { echo "$as_me:$LINENO: checking for --enable-toolbox-glue" >&5
12250 echo $ECHO_N "checking for --enable-toolbox-glue... $ECHO_C" >&6; }
12251 # Check whether --enable-toolbox-glue was given.
12252 if test "${enable_toolbox_glue+set}" = set; then
12253 enableval=$enable_toolbox_glue;
12257 if test -z "$enable_toolbox_glue"
12258 then
12259 case $ac_sys_system/$ac_sys_release in
12260 Darwin/*)
12261 enable_toolbox_glue="yes";;
12263 enable_toolbox_glue="no";;
12264 esac
12266 case "$enable_toolbox_glue" in
12267 yes)
12268 extra_machdep_objs="Python/mactoolboxglue.o"
12269 extra_undefs="-u _PyMac_Error"
12271 cat >>confdefs.h <<\_ACEOF
12272 #define USE_TOOLBOX_OBJECT_GLUE 1
12273 _ACEOF
12277 extra_machdep_objs=""
12278 extra_undefs=""
12280 esac
12281 { echo "$as_me:$LINENO: result: $enable_toolbox_glue" >&5
12282 echo "${ECHO_T}$enable_toolbox_glue" >&6; }
12285 case $ac_sys_system/$ac_sys_release in
12286 Darwin/[01567]\..*)
12287 OTHER_LIBTOOL_OPT="-prebind -seg1addr 0x10000000"
12289 Darwin/*)
12290 OTHER_LIBTOOL_OPT=""
12292 esac
12295 case $ac_sys_system/$ac_sys_release in
12296 Darwin/[01567]\..*)
12297 LIBTOOL_CRUFT="-framework System -lcc_dynamic"
12298 if test "${enable_universalsdk}"; then
12300 else
12301 LIBTOOL_CRUFT="${LIBTOOL_CRUFT} -arch_only `arch`"
12303 LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -install_name $(PYTHONFRAMEWORKINSTALLDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
12304 LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -compatibility_version $(VERSION) -current_version $(VERSION)';;
12305 Darwin/*)
12306 gcc_version=`gcc -v 2>&1 | grep version | cut -d\ -f3`
12307 if test ${gcc_version} '<' 4.0
12308 then
12309 LIBTOOL_CRUFT="-lcc_dynamic"
12310 else
12311 LIBTOOL_CRUFT=""
12313 LIBTOOL_CRUFT=$LIBTOOL_CRUFT" -lSystem -lSystemStubs -arch_only `arch`"
12314 LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -install_name $(PYTHONFRAMEWORKINSTALLDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
12315 LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -compatibility_version $(VERSION) -current_version $(VERSION)';;
12316 esac
12318 { echo "$as_me:$LINENO: checking for --enable-framework" >&5
12319 echo $ECHO_N "checking for --enable-framework... $ECHO_C" >&6; }
12320 if test "$enable_framework"
12321 then
12322 BASECFLAGS="$BASECFLAGS -fno-common -dynamic"
12323 # -F. is needed to allow linking to the framework while
12324 # in the build location.
12326 cat >>confdefs.h <<\_ACEOF
12327 #define WITH_NEXT_FRAMEWORK 1
12328 _ACEOF
12330 { echo "$as_me:$LINENO: result: yes" >&5
12331 echo "${ECHO_T}yes" >&6; }
12332 else
12333 { echo "$as_me:$LINENO: result: no" >&5
12334 echo "${ECHO_T}no" >&6; }
12337 { echo "$as_me:$LINENO: checking for dyld" >&5
12338 echo $ECHO_N "checking for dyld... $ECHO_C" >&6; }
12339 case $ac_sys_system/$ac_sys_release in
12340 Darwin/*)
12342 cat >>confdefs.h <<\_ACEOF
12343 #define WITH_DYLD 1
12344 _ACEOF
12346 { echo "$as_me:$LINENO: result: always on for Darwin" >&5
12347 echo "${ECHO_T}always on for Darwin" >&6; }
12350 { echo "$as_me:$LINENO: result: no" >&5
12351 echo "${ECHO_T}no" >&6; }
12353 esac
12355 # Set info about shared libraries.
12361 # SO is the extension of shared libraries `(including the dot!)
12362 # -- usually .so, .sl on HP-UX, .dll on Cygwin
12363 { echo "$as_me:$LINENO: checking SO" >&5
12364 echo $ECHO_N "checking SO... $ECHO_C" >&6; }
12365 if test -z "$SO"
12366 then
12367 case $ac_sys_system in
12368 hp*|HP*)
12369 case `uname -m` in
12370 ia64) SO=.so;;
12371 *) SO=.sl;;
12372 esac
12374 CYGWIN*) SO=.dll;;
12375 *) SO=.so;;
12376 esac
12377 else
12378 # this might also be a termcap variable, see #610332
12379 echo
12380 echo '====================================================================='
12381 echo '+ +'
12382 echo '+ WARNING: You have set SO in your environment. +'
12383 echo '+ Do you really mean to change the extension for shared libraries? +'
12384 echo '+ Continuing in 10 seconds to let you to ponder. +'
12385 echo '+ +'
12386 echo '====================================================================='
12387 sleep 10
12389 { echo "$as_me:$LINENO: result: $SO" >&5
12390 echo "${ECHO_T}$SO" >&6; }
12392 cat >>confdefs.h <<_ACEOF
12393 #define SHLIB_EXT "$SO"
12394 _ACEOF
12396 # LDSHARED is the ld *command* used to create shared library
12397 # -- "cc -G" on SunOS 5.x, "ld -shared" on IRIX 5
12398 # (Shared libraries in this instance are shared modules to be loaded into
12399 # Python, as opposed to building Python itself as a shared library.)
12400 { echo "$as_me:$LINENO: checking LDSHARED" >&5
12401 echo $ECHO_N "checking LDSHARED... $ECHO_C" >&6; }
12402 if test -z "$LDSHARED"
12403 then
12404 case $ac_sys_system/$ac_sys_release in
12405 AIX*)
12406 BLDSHARED="\$(srcdir)/Modules/ld_so_aix \$(CC) -bI:Modules/python.exp"
12407 LDSHARED="\$(BINLIBDEST)/config/ld_so_aix \$(CC) -bI:\$(BINLIBDEST)/config/python.exp"
12409 BeOS*)
12410 BLDSHARED="\$(srcdir)/Modules/ld_so_beos $LDLIBRARY"
12411 LDSHARED="\$(BINLIBDEST)/config/ld_so_beos \$(LIBDIR)/$LDLIBRARY"
12413 IRIX/5*) LDSHARED="ld -shared";;
12414 IRIX*/6*) LDSHARED="ld ${SGI_ABI} -shared -all";;
12415 SunOS/5*)
12416 if test "$GCC" = "yes"
12417 then LDSHARED='$(CC) -shared'
12418 else LDSHARED='$(CC) -G';
12419 fi ;;
12420 hp*|HP*) LDSHARED="ld -b";;
12421 OSF*) LDSHARED="ld -shared -expect_unresolved \"*\"";;
12422 Darwin/1.3*)
12423 LDSHARED='$(CC) $(LDFLAGS) -bundle'
12424 if test "$enable_framework" ; then
12425 # Link against the framework. All externals should be defined.
12426 BLDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
12427 LDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
12428 else
12429 # No framework. Ignore undefined symbols, assuming they come from Python
12430 LDSHARED="$LDSHARED -undefined suppress"
12431 fi ;;
12432 Darwin/1.4*|Darwin/5.*|Darwin/6.*)
12433 LDSHARED='$(CC) $(LDFLAGS) -bundle'
12434 if test "$enable_framework" ; then
12435 # Link against the framework. All externals should be defined.
12436 BLDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
12437 LDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
12438 else
12439 # No framework, use the Python app as bundle-loader
12440 BLDSHARED="$LDSHARED "'-bundle_loader $(BUILDPYTHON)'
12441 LDSHARED="$LDSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)'
12442 fi ;;
12443 Darwin/*)
12444 # Use -undefined dynamic_lookup whenever possible (10.3 and later).
12445 # This allows an extension to be used in any Python
12446 cur_target=`sw_vers -productVersion | sed 's/\(10\.[0-9]*\).*/\1/'`
12447 if test ${cur_target} '>' 10.2; then
12448 cur_target=10.3
12450 CONFIGURE_MACOSX_DEPLOYMENT_TARGET=${MACOSX_DEPLOYMENT_TARGET-${cur_target}}
12452 # Make sure that MACOSX_DEPLOYMENT_TARGET is set in the
12453 # environment with a value that is the same as what we'll use
12454 # in the Makefile to ensure that we'll get the same compiler
12455 # environment during configure and build time.
12456 MACOSX_DEPLOYMENT_TARGET="$CONFIGURE_MACOSX_DEPLOYMENT_TARGET"
12457 export MACOSX_DEPLOYMENT_TARGET
12459 EXPORT_MACOSX_DEPLOYMENT_TARGET=''
12460 if test ${MACOSX_DEPLOYMENT_TARGET-${cur_target}} '>' 10.2
12461 then
12462 if test "${enable_universalsdk}"; then
12463 LDFLAGS="-arch i386 -arch ppc -isysroot ${UNIVERSALSDK} ${LDFLAGS}"
12465 LDSHARED='$(CC) $(LDFLAGS) -bundle -undefined dynamic_lookup'
12466 BLDSHARED="$LDSHARED"
12467 else
12468 LDSHARED='$(CC) $(LDFLAGS) -bundle'
12469 if test "$enable_framework" ; then
12470 # Link against the framework. All externals should be defined.
12471 BLDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
12472 LDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
12473 else
12474 # No framework, use the Python app as bundle-loader
12475 BLDSHARED="$LDSHARED "'-bundle_loader $(BUILDPYTHON)'
12476 LDSHARED="$LDSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)'
12480 Linux*|GNU*) LDSHARED='$(CC) -shared';;
12481 BSD/OS*/4*) LDSHARED="gcc -shared";;
12482 FreeBSD*)
12483 if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]
12484 then
12485 LDSHARED="$CC -shared ${LDFLAGS}"
12486 else
12487 LDSHARED="ld -Bshareable ${LDFLAGS}"
12488 fi;;
12489 OpenBSD*)
12490 if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]
12491 then
12492 LDSHARED='$(CC) -shared $(CCSHARED) ${LDFLAGS}'
12493 else
12494 case `uname -r` in
12495 [01].* | 2.[0-7] | 2.[0-7].*)
12496 LDSHARED="ld -Bshareable ${LDFLAGS}"
12499 LDSHARED='$(CC) -shared $(CCSHARED) ${LDFLAGS}'
12501 esac
12502 fi;;
12503 NetBSD*|DragonFly*) LDSHARED="cc -shared ${LDFLAGS}";;
12504 OpenUNIX*|UnixWare*)
12505 if test "$GCC" = "yes"
12506 then LDSHARED='$(CC) -shared'
12507 else LDSHARED='$(CC) -G'
12508 fi;;
12509 SCO_SV*) LDSHARED='$(CC) -Wl,-G,-Bexport';;
12510 Monterey*) LDSHARED="cc -G -dy -Bdynamic -Bexport -L/usr/lib/ia64l64";;
12511 CYGWIN*) LDSHARED="gcc -shared -Wl,--enable-auto-image-base";;
12512 atheos*) LDSHARED="gcc -shared";;
12513 *) LDSHARED="ld";;
12514 esac
12516 { echo "$as_me:$LINENO: result: $LDSHARED" >&5
12517 echo "${ECHO_T}$LDSHARED" >&6; }
12518 BLDSHARED=${BLDSHARED-$LDSHARED}
12519 # CCSHARED are the C *flags* used to create objects to go into a shared
12520 # library (module) -- this is only needed for a few systems
12521 { echo "$as_me:$LINENO: checking CCSHARED" >&5
12522 echo $ECHO_N "checking CCSHARED... $ECHO_C" >&6; }
12523 if test -z "$CCSHARED"
12524 then
12525 case $ac_sys_system/$ac_sys_release in
12526 SunOS*) if test "$GCC" = yes;
12527 then CCSHARED="-fPIC";
12528 elif test `uname -p` = sparc;
12529 then CCSHARED="-xcode=pic32";
12530 else CCSHARED="-Kpic";
12531 fi;;
12532 hp*|HP*) if test "$GCC" = yes;
12533 then CCSHARED="-fPIC";
12534 else CCSHARED="+z";
12535 fi;;
12536 Linux*|GNU*) CCSHARED="-fPIC";;
12537 BSD/OS*/4*) CCSHARED="-fpic";;
12538 FreeBSD*|NetBSD*|OpenBSD*|DragonFly*) CCSHARED="-fPIC";;
12539 OpenUNIX*|UnixWare*)
12540 if test "$GCC" = "yes"
12541 then CCSHARED="-fPIC"
12542 else CCSHARED="-KPIC"
12543 fi;;
12544 SCO_SV*)
12545 if test "$GCC" = "yes"
12546 then CCSHARED="-fPIC"
12547 else CCSHARED="-Kpic -belf"
12548 fi;;
12549 Monterey*) CCSHARED="-G";;
12550 IRIX*/6*) case $CC in
12551 *gcc*) CCSHARED="-shared";;
12552 *) CCSHARED="";;
12553 esac;;
12554 atheos*) CCSHARED="-fPIC";;
12555 esac
12557 { echo "$as_me:$LINENO: result: $CCSHARED" >&5
12558 echo "${ECHO_T}$CCSHARED" >&6; }
12559 # LINKFORSHARED are the flags passed to the $(CC) command that links
12560 # the python executable -- this is only needed for a few systems
12561 { echo "$as_me:$LINENO: checking LINKFORSHARED" >&5
12562 echo $ECHO_N "checking LINKFORSHARED... $ECHO_C" >&6; }
12563 if test -z "$LINKFORSHARED"
12564 then
12565 case $ac_sys_system/$ac_sys_release in
12566 AIX*) LINKFORSHARED='-Wl,-bE:Modules/python.exp -lld';;
12567 hp*|HP*)
12568 LINKFORSHARED="-Wl,-E -Wl,+s";;
12569 # LINKFORSHARED="-Wl,-E -Wl,+s -Wl,+b\$(BINLIBDEST)/lib-dynload";;
12570 BSD/OS/4*) LINKFORSHARED="-Xlinker -export-dynamic";;
12571 Linux*|GNU*) LINKFORSHARED="-Xlinker -export-dynamic";;
12572 # -u libsys_s pulls in all symbols in libsys
12573 Darwin/*)
12574 # -u _PyMac_Error is needed to pull in the mac toolbox glue,
12575 # which is
12576 # not used by the core itself but which needs to be in the core so
12577 # that dynamically loaded extension modules have access to it.
12578 # -prebind is no longer used, because it actually seems to give a
12579 # slowdown in stead of a speedup, maybe due to the large number of
12580 # dynamic loads Python does.
12582 LINKFORSHARED="$extra_undefs"
12583 if test "$enable_framework"
12584 then
12585 LINKFORSHARED="$LINKFORSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
12587 LINKFORSHARED="$LINKFORSHARED";;
12588 OpenUNIX*|UnixWare*) LINKFORSHARED="-Wl,-Bexport";;
12589 SCO_SV*) LINKFORSHARED="-Wl,-Bexport";;
12590 ReliantUNIX*) LINKFORSHARED="-W1 -Blargedynsym";;
12591 FreeBSD*|NetBSD*|OpenBSD*|DragonFly*)
12592 if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]
12593 then
12594 LINKFORSHARED="-Wl,--export-dynamic"
12595 fi;;
12596 SunOS/5*) case $CC in
12597 *gcc*)
12598 if $CC -Xlinker --help 2>&1 | grep export-dynamic >/dev/null
12599 then
12600 LINKFORSHARED="-Xlinker --export-dynamic"
12601 fi;;
12602 esac;;
12603 CYGWIN*)
12604 if test $enable_shared = "no"
12605 then
12606 LINKFORSHARED='-Wl,--out-implib=$(LDLIBRARY)'
12607 fi;;
12608 esac
12610 { echo "$as_me:$LINENO: result: $LINKFORSHARED" >&5
12611 echo "${ECHO_T}$LINKFORSHARED" >&6; }
12614 { echo "$as_me:$LINENO: checking CFLAGSFORSHARED" >&5
12615 echo $ECHO_N "checking CFLAGSFORSHARED... $ECHO_C" >&6; }
12616 if test ! "$LIBRARY" = "$LDLIBRARY"
12617 then
12618 case $ac_sys_system in
12619 CYGWIN*)
12620 # Cygwin needs CCSHARED when building extension DLLs
12621 # but not when building the interpreter DLL.
12622 CFLAGSFORSHARED='';;
12624 CFLAGSFORSHARED='$(CCSHARED)'
12625 esac
12627 { echo "$as_me:$LINENO: result: $CFLAGSFORSHARED" >&5
12628 echo "${ECHO_T}$CFLAGSFORSHARED" >&6; }
12630 # SHLIBS are libraries (except -lc and -lm) to link to the python shared
12631 # library (with --enable-shared).
12632 # For platforms on which shared libraries are not allowed to have unresolved
12633 # symbols, this must be set to $(LIBS) (expanded by make). We do this even
12634 # if it is not required, since it creates a dependency of the shared library
12635 # to LIBS. This, in turn, means that applications linking the shared libpython
12636 # don't need to link LIBS explicitly. The default should be only changed
12637 # on systems where this approach causes problems.
12639 { echo "$as_me:$LINENO: checking SHLIBS" >&5
12640 echo $ECHO_N "checking SHLIBS... $ECHO_C" >&6; }
12641 case "$ac_sys_system" in
12643 SHLIBS='$(LIBS)';;
12644 esac
12645 { echo "$as_me:$LINENO: result: $SHLIBS" >&5
12646 echo "${ECHO_T}$SHLIBS" >&6; }
12649 # checks for libraries
12651 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12652 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
12653 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12654 echo $ECHO_N "(cached) $ECHO_C" >&6
12655 else
12656 ac_check_lib_save_LIBS=$LIBS
12657 LIBS="-ldl $LIBS"
12658 cat >conftest.$ac_ext <<_ACEOF
12659 /* confdefs.h. */
12660 _ACEOF
12661 cat confdefs.h >>conftest.$ac_ext
12662 cat >>conftest.$ac_ext <<_ACEOF
12663 /* end confdefs.h. */
12665 /* Override any GCC internal prototype to avoid an error.
12666 Use char because int might match the return type of a GCC
12667 builtin and then its argument prototype would still apply. */
12668 #ifdef __cplusplus
12669 extern "C"
12670 #endif
12671 char dlopen ();
12673 main ()
12675 return dlopen ();
12677 return 0;
12679 _ACEOF
12680 rm -f conftest.$ac_objext conftest$ac_exeext
12681 if { (ac_try="$ac_link"
12682 case "(($ac_try" in
12683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12684 *) ac_try_echo=$ac_try;;
12685 esac
12686 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12687 (eval "$ac_link") 2>conftest.er1
12688 ac_status=$?
12689 grep -v '^ *+' conftest.er1 >conftest.err
12690 rm -f conftest.er1
12691 cat conftest.err >&5
12692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12693 (exit $ac_status); } && {
12694 test -z "$ac_c_werror_flag" ||
12695 test ! -s conftest.err
12696 } && test -s conftest$ac_exeext &&
12697 $as_test_x conftest$ac_exeext; then
12698 ac_cv_lib_dl_dlopen=yes
12699 else
12700 echo "$as_me: failed program was:" >&5
12701 sed 's/^/| /' conftest.$ac_ext >&5
12703 ac_cv_lib_dl_dlopen=no
12706 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12707 conftest$ac_exeext conftest.$ac_ext
12708 LIBS=$ac_check_lib_save_LIBS
12710 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12711 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
12712 if test $ac_cv_lib_dl_dlopen = yes; then
12713 cat >>confdefs.h <<_ACEOF
12714 #define HAVE_LIBDL 1
12715 _ACEOF
12717 LIBS="-ldl $LIBS"
12720 # Dynamic linking for SunOS/Solaris and SYSV
12722 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
12723 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
12724 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
12725 echo $ECHO_N "(cached) $ECHO_C" >&6
12726 else
12727 ac_check_lib_save_LIBS=$LIBS
12728 LIBS="-ldld $LIBS"
12729 cat >conftest.$ac_ext <<_ACEOF
12730 /* confdefs.h. */
12731 _ACEOF
12732 cat confdefs.h >>conftest.$ac_ext
12733 cat >>conftest.$ac_ext <<_ACEOF
12734 /* end confdefs.h. */
12736 /* Override any GCC internal prototype to avoid an error.
12737 Use char because int might match the return type of a GCC
12738 builtin and then its argument prototype would still apply. */
12739 #ifdef __cplusplus
12740 extern "C"
12741 #endif
12742 char shl_load ();
12744 main ()
12746 return shl_load ();
12748 return 0;
12750 _ACEOF
12751 rm -f conftest.$ac_objext conftest$ac_exeext
12752 if { (ac_try="$ac_link"
12753 case "(($ac_try" in
12754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12755 *) ac_try_echo=$ac_try;;
12756 esac
12757 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12758 (eval "$ac_link") 2>conftest.er1
12759 ac_status=$?
12760 grep -v '^ *+' conftest.er1 >conftest.err
12761 rm -f conftest.er1
12762 cat conftest.err >&5
12763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12764 (exit $ac_status); } && {
12765 test -z "$ac_c_werror_flag" ||
12766 test ! -s conftest.err
12767 } && test -s conftest$ac_exeext &&
12768 $as_test_x conftest$ac_exeext; then
12769 ac_cv_lib_dld_shl_load=yes
12770 else
12771 echo "$as_me: failed program was:" >&5
12772 sed 's/^/| /' conftest.$ac_ext >&5
12774 ac_cv_lib_dld_shl_load=no
12777 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12778 conftest$ac_exeext conftest.$ac_ext
12779 LIBS=$ac_check_lib_save_LIBS
12781 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
12782 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
12783 if test $ac_cv_lib_dld_shl_load = yes; then
12784 cat >>confdefs.h <<_ACEOF
12785 #define HAVE_LIBDLD 1
12786 _ACEOF
12788 LIBS="-ldld $LIBS"
12791 # Dynamic linking for HP-UX
12793 # only check for sem_ini if thread support is requested
12794 if test "$with_threads" = "yes" -o -z "$with_threads"; then
12795 { echo "$as_me:$LINENO: checking for library containing sem_init" >&5
12796 echo $ECHO_N "checking for library containing sem_init... $ECHO_C" >&6; }
12797 if test "${ac_cv_search_sem_init+set}" = set; then
12798 echo $ECHO_N "(cached) $ECHO_C" >&6
12799 else
12800 ac_func_search_save_LIBS=$LIBS
12801 cat >conftest.$ac_ext <<_ACEOF
12802 /* confdefs.h. */
12803 _ACEOF
12804 cat confdefs.h >>conftest.$ac_ext
12805 cat >>conftest.$ac_ext <<_ACEOF
12806 /* end confdefs.h. */
12808 /* Override any GCC internal prototype to avoid an error.
12809 Use char because int might match the return type of a GCC
12810 builtin and then its argument prototype would still apply. */
12811 #ifdef __cplusplus
12812 extern "C"
12813 #endif
12814 char sem_init ();
12816 main ()
12818 return sem_init ();
12820 return 0;
12822 _ACEOF
12823 for ac_lib in '' pthread rt posix4; do
12824 if test -z "$ac_lib"; then
12825 ac_res="none required"
12826 else
12827 ac_res=-l$ac_lib
12828 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12830 rm -f conftest.$ac_objext conftest$ac_exeext
12831 if { (ac_try="$ac_link"
12832 case "(($ac_try" in
12833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12834 *) ac_try_echo=$ac_try;;
12835 esac
12836 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12837 (eval "$ac_link") 2>conftest.er1
12838 ac_status=$?
12839 grep -v '^ *+' conftest.er1 >conftest.err
12840 rm -f conftest.er1
12841 cat conftest.err >&5
12842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12843 (exit $ac_status); } && {
12844 test -z "$ac_c_werror_flag" ||
12845 test ! -s conftest.err
12846 } && test -s conftest$ac_exeext &&
12847 $as_test_x conftest$ac_exeext; then
12848 ac_cv_search_sem_init=$ac_res
12849 else
12850 echo "$as_me: failed program was:" >&5
12851 sed 's/^/| /' conftest.$ac_ext >&5
12856 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12857 conftest$ac_exeext
12858 if test "${ac_cv_search_sem_init+set}" = set; then
12859 break
12861 done
12862 if test "${ac_cv_search_sem_init+set}" = set; then
12864 else
12865 ac_cv_search_sem_init=no
12867 rm conftest.$ac_ext
12868 LIBS=$ac_func_search_save_LIBS
12870 { echo "$as_me:$LINENO: result: $ac_cv_search_sem_init" >&5
12871 echo "${ECHO_T}$ac_cv_search_sem_init" >&6; }
12872 ac_res=$ac_cv_search_sem_init
12873 if test "$ac_res" != no; then
12874 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12877 # 'Real Time' functions on Solaris
12878 # posix4 on Solaris 2.6
12879 # pthread (first!) on Linux
12882 # check if we need libintl for locale functions
12883 { echo "$as_me:$LINENO: checking for textdomain in -lintl" >&5
12884 echo $ECHO_N "checking for textdomain in -lintl... $ECHO_C" >&6; }
12885 if test "${ac_cv_lib_intl_textdomain+set}" = set; then
12886 echo $ECHO_N "(cached) $ECHO_C" >&6
12887 else
12888 ac_check_lib_save_LIBS=$LIBS
12889 LIBS="-lintl $LIBS"
12890 cat >conftest.$ac_ext <<_ACEOF
12891 /* confdefs.h. */
12892 _ACEOF
12893 cat confdefs.h >>conftest.$ac_ext
12894 cat >>conftest.$ac_ext <<_ACEOF
12895 /* end confdefs.h. */
12897 /* Override any GCC internal prototype to avoid an error.
12898 Use char because int might match the return type of a GCC
12899 builtin and then its argument prototype would still apply. */
12900 #ifdef __cplusplus
12901 extern "C"
12902 #endif
12903 char textdomain ();
12905 main ()
12907 return textdomain ();
12909 return 0;
12911 _ACEOF
12912 rm -f conftest.$ac_objext conftest$ac_exeext
12913 if { (ac_try="$ac_link"
12914 case "(($ac_try" in
12915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12916 *) ac_try_echo=$ac_try;;
12917 esac
12918 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12919 (eval "$ac_link") 2>conftest.er1
12920 ac_status=$?
12921 grep -v '^ *+' conftest.er1 >conftest.err
12922 rm -f conftest.er1
12923 cat conftest.err >&5
12924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12925 (exit $ac_status); } && {
12926 test -z "$ac_c_werror_flag" ||
12927 test ! -s conftest.err
12928 } && test -s conftest$ac_exeext &&
12929 $as_test_x conftest$ac_exeext; then
12930 ac_cv_lib_intl_textdomain=yes
12931 else
12932 echo "$as_me: failed program was:" >&5
12933 sed 's/^/| /' conftest.$ac_ext >&5
12935 ac_cv_lib_intl_textdomain=no
12938 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12939 conftest$ac_exeext conftest.$ac_ext
12940 LIBS=$ac_check_lib_save_LIBS
12942 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_textdomain" >&5
12943 echo "${ECHO_T}$ac_cv_lib_intl_textdomain" >&6; }
12944 if test $ac_cv_lib_intl_textdomain = yes; then
12946 cat >>confdefs.h <<\_ACEOF
12947 #define WITH_LIBINTL 1
12948 _ACEOF
12953 # checks for system dependent C++ extensions support
12954 case "$ac_sys_system" in
12955 AIX*) { echo "$as_me:$LINENO: checking for genuine AIX C++ extensions support" >&5
12956 echo $ECHO_N "checking for genuine AIX C++ extensions support... $ECHO_C" >&6; }
12957 cat >conftest.$ac_ext <<_ACEOF
12958 /* confdefs.h. */
12959 _ACEOF
12960 cat confdefs.h >>conftest.$ac_ext
12961 cat >>conftest.$ac_ext <<_ACEOF
12962 /* end confdefs.h. */
12963 #include "/usr/lpp/xlC/include/load.h"
12965 main ()
12967 loadAndInit("", 0, "")
12969 return 0;
12971 _ACEOF
12972 rm -f conftest.$ac_objext conftest$ac_exeext
12973 if { (ac_try="$ac_link"
12974 case "(($ac_try" in
12975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12976 *) ac_try_echo=$ac_try;;
12977 esac
12978 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12979 (eval "$ac_link") 2>conftest.er1
12980 ac_status=$?
12981 grep -v '^ *+' conftest.er1 >conftest.err
12982 rm -f conftest.er1
12983 cat conftest.err >&5
12984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12985 (exit $ac_status); } && {
12986 test -z "$ac_c_werror_flag" ||
12987 test ! -s conftest.err
12988 } && test -s conftest$ac_exeext &&
12989 $as_test_x conftest$ac_exeext; then
12991 cat >>confdefs.h <<\_ACEOF
12992 #define AIX_GENUINE_CPLUSPLUS 1
12993 _ACEOF
12995 { echo "$as_me:$LINENO: result: yes" >&5
12996 echo "${ECHO_T}yes" >&6; }
12997 else
12998 echo "$as_me: failed program was:" >&5
12999 sed 's/^/| /' conftest.$ac_ext >&5
13001 { echo "$as_me:$LINENO: result: no" >&5
13002 echo "${ECHO_T}no" >&6; }
13005 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13006 conftest$ac_exeext conftest.$ac_ext;;
13007 *) ;;
13008 esac
13010 # Most SVR4 platforms (e.g. Solaris) need -lsocket and -lnsl.
13011 # BeOS' sockets are stashed in libnet.
13012 { echo "$as_me:$LINENO: checking for t_open in -lnsl" >&5
13013 echo $ECHO_N "checking for t_open in -lnsl... $ECHO_C" >&6; }
13014 if test "${ac_cv_lib_nsl_t_open+set}" = set; then
13015 echo $ECHO_N "(cached) $ECHO_C" >&6
13016 else
13017 ac_check_lib_save_LIBS=$LIBS
13018 LIBS="-lnsl $LIBS"
13019 cat >conftest.$ac_ext <<_ACEOF
13020 /* confdefs.h. */
13021 _ACEOF
13022 cat confdefs.h >>conftest.$ac_ext
13023 cat >>conftest.$ac_ext <<_ACEOF
13024 /* end confdefs.h. */
13026 /* Override any GCC internal prototype to avoid an error.
13027 Use char because int might match the return type of a GCC
13028 builtin and then its argument prototype would still apply. */
13029 #ifdef __cplusplus
13030 extern "C"
13031 #endif
13032 char t_open ();
13034 main ()
13036 return t_open ();
13038 return 0;
13040 _ACEOF
13041 rm -f conftest.$ac_objext conftest$ac_exeext
13042 if { (ac_try="$ac_link"
13043 case "(($ac_try" in
13044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13045 *) ac_try_echo=$ac_try;;
13046 esac
13047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13048 (eval "$ac_link") 2>conftest.er1
13049 ac_status=$?
13050 grep -v '^ *+' conftest.er1 >conftest.err
13051 rm -f conftest.er1
13052 cat conftest.err >&5
13053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13054 (exit $ac_status); } && {
13055 test -z "$ac_c_werror_flag" ||
13056 test ! -s conftest.err
13057 } && test -s conftest$ac_exeext &&
13058 $as_test_x conftest$ac_exeext; then
13059 ac_cv_lib_nsl_t_open=yes
13060 else
13061 echo "$as_me: failed program was:" >&5
13062 sed 's/^/| /' conftest.$ac_ext >&5
13064 ac_cv_lib_nsl_t_open=no
13067 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13068 conftest$ac_exeext conftest.$ac_ext
13069 LIBS=$ac_check_lib_save_LIBS
13071 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_t_open" >&5
13072 echo "${ECHO_T}$ac_cv_lib_nsl_t_open" >&6; }
13073 if test $ac_cv_lib_nsl_t_open = yes; then
13074 LIBS="-lnsl $LIBS"
13076 # SVR4
13077 { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
13078 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
13079 if test "${ac_cv_lib_socket_socket+set}" = set; then
13080 echo $ECHO_N "(cached) $ECHO_C" >&6
13081 else
13082 ac_check_lib_save_LIBS=$LIBS
13083 LIBS="-lsocket $LIBS $LIBS"
13084 cat >conftest.$ac_ext <<_ACEOF
13085 /* confdefs.h. */
13086 _ACEOF
13087 cat confdefs.h >>conftest.$ac_ext
13088 cat >>conftest.$ac_ext <<_ACEOF
13089 /* end confdefs.h. */
13091 /* Override any GCC internal prototype to avoid an error.
13092 Use char because int might match the return type of a GCC
13093 builtin and then its argument prototype would still apply. */
13094 #ifdef __cplusplus
13095 extern "C"
13096 #endif
13097 char socket ();
13099 main ()
13101 return socket ();
13103 return 0;
13105 _ACEOF
13106 rm -f conftest.$ac_objext conftest$ac_exeext
13107 if { (ac_try="$ac_link"
13108 case "(($ac_try" in
13109 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13110 *) ac_try_echo=$ac_try;;
13111 esac
13112 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13113 (eval "$ac_link") 2>conftest.er1
13114 ac_status=$?
13115 grep -v '^ *+' conftest.er1 >conftest.err
13116 rm -f conftest.er1
13117 cat conftest.err >&5
13118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13119 (exit $ac_status); } && {
13120 test -z "$ac_c_werror_flag" ||
13121 test ! -s conftest.err
13122 } && test -s conftest$ac_exeext &&
13123 $as_test_x conftest$ac_exeext; then
13124 ac_cv_lib_socket_socket=yes
13125 else
13126 echo "$as_me: failed program was:" >&5
13127 sed 's/^/| /' conftest.$ac_ext >&5
13129 ac_cv_lib_socket_socket=no
13132 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13133 conftest$ac_exeext conftest.$ac_ext
13134 LIBS=$ac_check_lib_save_LIBS
13136 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
13137 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; }
13138 if test $ac_cv_lib_socket_socket = yes; then
13139 LIBS="-lsocket $LIBS"
13141 # SVR4 sockets
13143 case "$ac_sys_system" in
13144 BeOS*)
13145 { echo "$as_me:$LINENO: checking for socket in -lnet" >&5
13146 echo $ECHO_N "checking for socket in -lnet... $ECHO_C" >&6; }
13147 if test "${ac_cv_lib_net_socket+set}" = set; then
13148 echo $ECHO_N "(cached) $ECHO_C" >&6
13149 else
13150 ac_check_lib_save_LIBS=$LIBS
13151 LIBS="-lnet $LIBS $LIBS"
13152 cat >conftest.$ac_ext <<_ACEOF
13153 /* confdefs.h. */
13154 _ACEOF
13155 cat confdefs.h >>conftest.$ac_ext
13156 cat >>conftest.$ac_ext <<_ACEOF
13157 /* end confdefs.h. */
13159 /* Override any GCC internal prototype to avoid an error.
13160 Use char because int might match the return type of a GCC
13161 builtin and then its argument prototype would still apply. */
13162 #ifdef __cplusplus
13163 extern "C"
13164 #endif
13165 char socket ();
13167 main ()
13169 return socket ();
13171 return 0;
13173 _ACEOF
13174 rm -f conftest.$ac_objext conftest$ac_exeext
13175 if { (ac_try="$ac_link"
13176 case "(($ac_try" in
13177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13178 *) ac_try_echo=$ac_try;;
13179 esac
13180 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13181 (eval "$ac_link") 2>conftest.er1
13182 ac_status=$?
13183 grep -v '^ *+' conftest.er1 >conftest.err
13184 rm -f conftest.er1
13185 cat conftest.err >&5
13186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13187 (exit $ac_status); } && {
13188 test -z "$ac_c_werror_flag" ||
13189 test ! -s conftest.err
13190 } && test -s conftest$ac_exeext &&
13191 $as_test_x conftest$ac_exeext; then
13192 ac_cv_lib_net_socket=yes
13193 else
13194 echo "$as_me: failed program was:" >&5
13195 sed 's/^/| /' conftest.$ac_ext >&5
13197 ac_cv_lib_net_socket=no
13200 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13201 conftest$ac_exeext conftest.$ac_ext
13202 LIBS=$ac_check_lib_save_LIBS
13204 { echo "$as_me:$LINENO: result: $ac_cv_lib_net_socket" >&5
13205 echo "${ECHO_T}$ac_cv_lib_net_socket" >&6; }
13206 if test $ac_cv_lib_net_socket = yes; then
13207 LIBS="-lnet $LIBS"
13209 # BeOS
13211 esac
13213 { echo "$as_me:$LINENO: checking for --with-libs" >&5
13214 echo $ECHO_N "checking for --with-libs... $ECHO_C" >&6; }
13216 # Check whether --with-libs was given.
13217 if test "${with_libs+set}" = set; then
13218 withval=$with_libs;
13219 { echo "$as_me:$LINENO: result: $withval" >&5
13220 echo "${ECHO_T}$withval" >&6; }
13221 LIBS="$withval $LIBS"
13223 else
13224 { echo "$as_me:$LINENO: result: no" >&5
13225 echo "${ECHO_T}no" >&6; }
13229 # Check for use of the system libffi library
13230 { echo "$as_me:$LINENO: checking for --with-system-ffi" >&5
13231 echo $ECHO_N "checking for --with-system-ffi... $ECHO_C" >&6; }
13233 # Check whether --with-system_ffi was given.
13234 if test "${with_system_ffi+set}" = set; then
13235 withval=$with_system_ffi;
13239 { echo "$as_me:$LINENO: result: $with_system_ffi" >&5
13240 echo "${ECHO_T}$with_system_ffi" >&6; }
13242 # Determine if signalmodule should be used.
13245 { echo "$as_me:$LINENO: checking for --with-signal-module" >&5
13246 echo $ECHO_N "checking for --with-signal-module... $ECHO_C" >&6; }
13248 # Check whether --with-signal-module was given.
13249 if test "${with_signal_module+set}" = set; then
13250 withval=$with_signal_module;
13254 if test -z "$with_signal_module"
13255 then with_signal_module="yes"
13257 { echo "$as_me:$LINENO: result: $with_signal_module" >&5
13258 echo "${ECHO_T}$with_signal_module" >&6; }
13260 if test "${with_signal_module}" = "yes"; then
13261 USE_SIGNAL_MODULE=""
13262 SIGNAL_OBJS=""
13263 else
13264 USE_SIGNAL_MODULE="#"
13265 SIGNAL_OBJS="Parser/intrcheck.o Python/sigcheck.o"
13268 # This is used to generate Setup.config
13270 USE_THREAD_MODULE=""
13272 { echo "$as_me:$LINENO: checking for --with-dec-threads" >&5
13273 echo $ECHO_N "checking for --with-dec-threads... $ECHO_C" >&6; }
13276 # Check whether --with-dec-threads was given.
13277 if test "${with_dec_threads+set}" = set; then
13278 withval=$with_dec_threads;
13279 { echo "$as_me:$LINENO: result: $withval" >&5
13280 echo "${ECHO_T}$withval" >&6; }
13281 LDLAST=-threads
13282 if test "${with_thread+set}" != set; then
13283 with_thread="$withval";
13285 else
13286 { echo "$as_me:$LINENO: result: no" >&5
13287 echo "${ECHO_T}no" >&6; }
13291 # Templates for things AC_DEFINEd more than once.
13292 # For a single AC_DEFINE, no template is needed.
13300 { echo "$as_me:$LINENO: checking for --with-threads" >&5
13301 echo $ECHO_N "checking for --with-threads... $ECHO_C" >&6; }
13303 # Check whether --with-threads was given.
13304 if test "${with_threads+set}" = set; then
13305 withval=$with_threads;
13309 # --with-thread is deprecated, but check for it anyway
13311 # Check whether --with-thread was given.
13312 if test "${with_thread+set}" = set; then
13313 withval=$with_thread; with_threads=$with_thread
13317 if test -z "$with_threads"
13318 then with_threads="yes"
13320 { echo "$as_me:$LINENO: result: $with_threads" >&5
13321 echo "${ECHO_T}$with_threads" >&6; }
13324 if test "$with_threads" = "no"
13325 then
13326 USE_THREAD_MODULE="#"
13327 elif test "$ac_cv_pthread_is_default" = yes
13328 then
13329 cat >>confdefs.h <<\_ACEOF
13330 #define WITH_THREAD 1
13331 _ACEOF
13333 # Defining _REENTRANT on system with POSIX threads should not hurt.
13334 cat >>confdefs.h <<\_ACEOF
13335 #define _REENTRANT 1
13336 _ACEOF
13338 posix_threads=yes
13339 THREADOBJ="Python/thread.o"
13340 elif test "$ac_cv_kpthread" = "yes"
13341 then
13342 CC="$CC -Kpthread"
13343 if test "$ac_cv_cxx_thread" = "yes"; then
13344 CXX="$CXX -Kpthread"
13346 cat >>confdefs.h <<\_ACEOF
13347 #define WITH_THREAD 1
13348 _ACEOF
13350 posix_threads=yes
13351 THREADOBJ="Python/thread.o"
13352 elif test "$ac_cv_kthread" = "yes"
13353 then
13354 CC="$CC -Kthread"
13355 if test "$ac_cv_cxx_thread" = "yes"; then
13356 CXX="$CXX -Kthread"
13358 cat >>confdefs.h <<\_ACEOF
13359 #define WITH_THREAD 1
13360 _ACEOF
13362 posix_threads=yes
13363 THREADOBJ="Python/thread.o"
13364 elif test "$ac_cv_pthread" = "yes"
13365 then
13366 CC="$CC -pthread"
13367 if test "$ac_cv_cxx_thread" = "yes"; then
13368 CXX="$CXX -pthread"
13370 cat >>confdefs.h <<\_ACEOF
13371 #define WITH_THREAD 1
13372 _ACEOF
13374 posix_threads=yes
13375 THREADOBJ="Python/thread.o"
13376 else
13377 if test ! -z "$with_threads" -a -d "$with_threads"
13378 then LDFLAGS="$LDFLAGS -L$with_threads"
13380 if test ! -z "$withval" -a -d "$withval"
13381 then LDFLAGS="$LDFLAGS -L$withval"
13384 # According to the POSIX spec, a pthreads implementation must
13385 # define _POSIX_THREADS in unistd.h. Some apparently don't
13386 # (e.g. gnu pth with pthread emulation)
13387 { echo "$as_me:$LINENO: checking for _POSIX_THREADS in unistd.h" >&5
13388 echo $ECHO_N "checking for _POSIX_THREADS in unistd.h... $ECHO_C" >&6; }
13389 cat >conftest.$ac_ext <<_ACEOF
13390 /* confdefs.h. */
13391 _ACEOF
13392 cat confdefs.h >>conftest.$ac_ext
13393 cat >>conftest.$ac_ext <<_ACEOF
13394 /* end confdefs.h. */
13396 #include <unistd.h>
13397 #ifdef _POSIX_THREADS
13399 #endif
13401 _ACEOF
13402 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13403 $EGREP "yes" >/dev/null 2>&1; then
13404 unistd_defines_pthreads=yes
13405 else
13406 unistd_defines_pthreads=no
13408 rm -f conftest*
13410 { echo "$as_me:$LINENO: result: $unistd_defines_pthreads" >&5
13411 echo "${ECHO_T}$unistd_defines_pthreads" >&6; }
13413 cat >>confdefs.h <<\_ACEOF
13414 #define _REENTRANT 1
13415 _ACEOF
13417 if test "${ac_cv_header_cthreads_h+set}" = set; then
13418 { echo "$as_me:$LINENO: checking for cthreads.h" >&5
13419 echo $ECHO_N "checking for cthreads.h... $ECHO_C" >&6; }
13420 if test "${ac_cv_header_cthreads_h+set}" = set; then
13421 echo $ECHO_N "(cached) $ECHO_C" >&6
13423 { echo "$as_me:$LINENO: result: $ac_cv_header_cthreads_h" >&5
13424 echo "${ECHO_T}$ac_cv_header_cthreads_h" >&6; }
13425 else
13426 # Is the header compilable?
13427 { echo "$as_me:$LINENO: checking cthreads.h usability" >&5
13428 echo $ECHO_N "checking cthreads.h usability... $ECHO_C" >&6; }
13429 cat >conftest.$ac_ext <<_ACEOF
13430 /* confdefs.h. */
13431 _ACEOF
13432 cat confdefs.h >>conftest.$ac_ext
13433 cat >>conftest.$ac_ext <<_ACEOF
13434 /* end confdefs.h. */
13435 $ac_includes_default
13436 #include <cthreads.h>
13437 _ACEOF
13438 rm -f conftest.$ac_objext
13439 if { (ac_try="$ac_compile"
13440 case "(($ac_try" in
13441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13442 *) ac_try_echo=$ac_try;;
13443 esac
13444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13445 (eval "$ac_compile") 2>conftest.er1
13446 ac_status=$?
13447 grep -v '^ *+' conftest.er1 >conftest.err
13448 rm -f conftest.er1
13449 cat conftest.err >&5
13450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13451 (exit $ac_status); } && {
13452 test -z "$ac_c_werror_flag" ||
13453 test ! -s conftest.err
13454 } && test -s conftest.$ac_objext; then
13455 ac_header_compiler=yes
13456 else
13457 echo "$as_me: failed program was:" >&5
13458 sed 's/^/| /' conftest.$ac_ext >&5
13460 ac_header_compiler=no
13463 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13464 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13465 echo "${ECHO_T}$ac_header_compiler" >&6; }
13467 # Is the header present?
13468 { echo "$as_me:$LINENO: checking cthreads.h presence" >&5
13469 echo $ECHO_N "checking cthreads.h presence... $ECHO_C" >&6; }
13470 cat >conftest.$ac_ext <<_ACEOF
13471 /* confdefs.h. */
13472 _ACEOF
13473 cat confdefs.h >>conftest.$ac_ext
13474 cat >>conftest.$ac_ext <<_ACEOF
13475 /* end confdefs.h. */
13476 #include <cthreads.h>
13477 _ACEOF
13478 if { (ac_try="$ac_cpp conftest.$ac_ext"
13479 case "(($ac_try" in
13480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13481 *) ac_try_echo=$ac_try;;
13482 esac
13483 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13484 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13485 ac_status=$?
13486 grep -v '^ *+' conftest.er1 >conftest.err
13487 rm -f conftest.er1
13488 cat conftest.err >&5
13489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13490 (exit $ac_status); } >/dev/null && {
13491 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13492 test ! -s conftest.err
13493 }; then
13494 ac_header_preproc=yes
13495 else
13496 echo "$as_me: failed program was:" >&5
13497 sed 's/^/| /' conftest.$ac_ext >&5
13499 ac_header_preproc=no
13502 rm -f conftest.err conftest.$ac_ext
13503 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13504 echo "${ECHO_T}$ac_header_preproc" >&6; }
13506 # So? What about this header?
13507 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13508 yes:no: )
13509 { echo "$as_me:$LINENO: WARNING: cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&5
13510 echo "$as_me: WARNING: cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13511 { echo "$as_me:$LINENO: WARNING: cthreads.h: proceeding with the compiler's result" >&5
13512 echo "$as_me: WARNING: cthreads.h: proceeding with the compiler's result" >&2;}
13513 ac_header_preproc=yes
13515 no:yes:* )
13516 { echo "$as_me:$LINENO: WARNING: cthreads.h: present but cannot be compiled" >&5
13517 echo "$as_me: WARNING: cthreads.h: present but cannot be compiled" >&2;}
13518 { echo "$as_me:$LINENO: WARNING: cthreads.h: check for missing prerequisite headers?" >&5
13519 echo "$as_me: WARNING: cthreads.h: check for missing prerequisite headers?" >&2;}
13520 { echo "$as_me:$LINENO: WARNING: cthreads.h: see the Autoconf documentation" >&5
13521 echo "$as_me: WARNING: cthreads.h: see the Autoconf documentation" >&2;}
13522 { echo "$as_me:$LINENO: WARNING: cthreads.h: section \"Present But Cannot Be Compiled\"" >&5
13523 echo "$as_me: WARNING: cthreads.h: section \"Present But Cannot Be Compiled\"" >&2;}
13524 { echo "$as_me:$LINENO: WARNING: cthreads.h: proceeding with the preprocessor's result" >&5
13525 echo "$as_me: WARNING: cthreads.h: proceeding with the preprocessor's result" >&2;}
13526 { echo "$as_me:$LINENO: WARNING: cthreads.h: in the future, the compiler will take precedence" >&5
13527 echo "$as_me: WARNING: cthreads.h: in the future, the compiler will take precedence" >&2;}
13528 ( cat <<\_ASBOX
13529 ## ------------------------------------------------ ##
13530 ## Report this to http://www.python.org/python-bugs ##
13531 ## ------------------------------------------------ ##
13532 _ASBOX
13533 ) | sed "s/^/$as_me: WARNING: /" >&2
13535 esac
13536 { echo "$as_me:$LINENO: checking for cthreads.h" >&5
13537 echo $ECHO_N "checking for cthreads.h... $ECHO_C" >&6; }
13538 if test "${ac_cv_header_cthreads_h+set}" = set; then
13539 echo $ECHO_N "(cached) $ECHO_C" >&6
13540 else
13541 ac_cv_header_cthreads_h=$ac_header_preproc
13543 { echo "$as_me:$LINENO: result: $ac_cv_header_cthreads_h" >&5
13544 echo "${ECHO_T}$ac_cv_header_cthreads_h" >&6; }
13547 if test $ac_cv_header_cthreads_h = yes; then
13548 cat >>confdefs.h <<\_ACEOF
13549 #define WITH_THREAD 1
13550 _ACEOF
13552 cat >>confdefs.h <<\_ACEOF
13553 #define C_THREADS 1
13554 _ACEOF
13557 cat >>confdefs.h <<\_ACEOF
13558 #define HURD_C_THREADS 1
13559 _ACEOF
13561 LIBS="$LIBS -lthreads"
13562 THREADOBJ="Python/thread.o"
13563 else
13565 if test "${ac_cv_header_mach_cthreads_h+set}" = set; then
13566 { echo "$as_me:$LINENO: checking for mach/cthreads.h" >&5
13567 echo $ECHO_N "checking for mach/cthreads.h... $ECHO_C" >&6; }
13568 if test "${ac_cv_header_mach_cthreads_h+set}" = set; then
13569 echo $ECHO_N "(cached) $ECHO_C" >&6
13571 { echo "$as_me:$LINENO: result: $ac_cv_header_mach_cthreads_h" >&5
13572 echo "${ECHO_T}$ac_cv_header_mach_cthreads_h" >&6; }
13573 else
13574 # Is the header compilable?
13575 { echo "$as_me:$LINENO: checking mach/cthreads.h usability" >&5
13576 echo $ECHO_N "checking mach/cthreads.h usability... $ECHO_C" >&6; }
13577 cat >conftest.$ac_ext <<_ACEOF
13578 /* confdefs.h. */
13579 _ACEOF
13580 cat confdefs.h >>conftest.$ac_ext
13581 cat >>conftest.$ac_ext <<_ACEOF
13582 /* end confdefs.h. */
13583 $ac_includes_default
13584 #include <mach/cthreads.h>
13585 _ACEOF
13586 rm -f conftest.$ac_objext
13587 if { (ac_try="$ac_compile"
13588 case "(($ac_try" in
13589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13590 *) ac_try_echo=$ac_try;;
13591 esac
13592 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13593 (eval "$ac_compile") 2>conftest.er1
13594 ac_status=$?
13595 grep -v '^ *+' conftest.er1 >conftest.err
13596 rm -f conftest.er1
13597 cat conftest.err >&5
13598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13599 (exit $ac_status); } && {
13600 test -z "$ac_c_werror_flag" ||
13601 test ! -s conftest.err
13602 } && test -s conftest.$ac_objext; then
13603 ac_header_compiler=yes
13604 else
13605 echo "$as_me: failed program was:" >&5
13606 sed 's/^/| /' conftest.$ac_ext >&5
13608 ac_header_compiler=no
13611 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13612 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13613 echo "${ECHO_T}$ac_header_compiler" >&6; }
13615 # Is the header present?
13616 { echo "$as_me:$LINENO: checking mach/cthreads.h presence" >&5
13617 echo $ECHO_N "checking mach/cthreads.h presence... $ECHO_C" >&6; }
13618 cat >conftest.$ac_ext <<_ACEOF
13619 /* confdefs.h. */
13620 _ACEOF
13621 cat confdefs.h >>conftest.$ac_ext
13622 cat >>conftest.$ac_ext <<_ACEOF
13623 /* end confdefs.h. */
13624 #include <mach/cthreads.h>
13625 _ACEOF
13626 if { (ac_try="$ac_cpp conftest.$ac_ext"
13627 case "(($ac_try" in
13628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13629 *) ac_try_echo=$ac_try;;
13630 esac
13631 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13632 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13633 ac_status=$?
13634 grep -v '^ *+' conftest.er1 >conftest.err
13635 rm -f conftest.er1
13636 cat conftest.err >&5
13637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13638 (exit $ac_status); } >/dev/null && {
13639 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13640 test ! -s conftest.err
13641 }; then
13642 ac_header_preproc=yes
13643 else
13644 echo "$as_me: failed program was:" >&5
13645 sed 's/^/| /' conftest.$ac_ext >&5
13647 ac_header_preproc=no
13650 rm -f conftest.err conftest.$ac_ext
13651 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13652 echo "${ECHO_T}$ac_header_preproc" >&6; }
13654 # So? What about this header?
13655 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13656 yes:no: )
13657 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&5
13658 echo "$as_me: WARNING: mach/cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13659 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: proceeding with the compiler's result" >&5
13660 echo "$as_me: WARNING: mach/cthreads.h: proceeding with the compiler's result" >&2;}
13661 ac_header_preproc=yes
13663 no:yes:* )
13664 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: present but cannot be compiled" >&5
13665 echo "$as_me: WARNING: mach/cthreads.h: present but cannot be compiled" >&2;}
13666 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: check for missing prerequisite headers?" >&5
13667 echo "$as_me: WARNING: mach/cthreads.h: check for missing prerequisite headers?" >&2;}
13668 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: see the Autoconf documentation" >&5
13669 echo "$as_me: WARNING: mach/cthreads.h: see the Autoconf documentation" >&2;}
13670 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: section \"Present But Cannot Be Compiled\"" >&5
13671 echo "$as_me: WARNING: mach/cthreads.h: section \"Present But Cannot Be Compiled\"" >&2;}
13672 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: proceeding with the preprocessor's result" >&5
13673 echo "$as_me: WARNING: mach/cthreads.h: proceeding with the preprocessor's result" >&2;}
13674 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: in the future, the compiler will take precedence" >&5
13675 echo "$as_me: WARNING: mach/cthreads.h: in the future, the compiler will take precedence" >&2;}
13676 ( cat <<\_ASBOX
13677 ## ------------------------------------------------ ##
13678 ## Report this to http://www.python.org/python-bugs ##
13679 ## ------------------------------------------------ ##
13680 _ASBOX
13681 ) | sed "s/^/$as_me: WARNING: /" >&2
13683 esac
13684 { echo "$as_me:$LINENO: checking for mach/cthreads.h" >&5
13685 echo $ECHO_N "checking for mach/cthreads.h... $ECHO_C" >&6; }
13686 if test "${ac_cv_header_mach_cthreads_h+set}" = set; then
13687 echo $ECHO_N "(cached) $ECHO_C" >&6
13688 else
13689 ac_cv_header_mach_cthreads_h=$ac_header_preproc
13691 { echo "$as_me:$LINENO: result: $ac_cv_header_mach_cthreads_h" >&5
13692 echo "${ECHO_T}$ac_cv_header_mach_cthreads_h" >&6; }
13695 if test $ac_cv_header_mach_cthreads_h = yes; then
13696 cat >>confdefs.h <<\_ACEOF
13697 #define WITH_THREAD 1
13698 _ACEOF
13700 cat >>confdefs.h <<\_ACEOF
13701 #define C_THREADS 1
13702 _ACEOF
13705 cat >>confdefs.h <<\_ACEOF
13706 #define MACH_C_THREADS 1
13707 _ACEOF
13709 THREADOBJ="Python/thread.o"
13710 else
13712 { echo "$as_me:$LINENO: checking for --with-pth" >&5
13713 echo $ECHO_N "checking for --with-pth... $ECHO_C" >&6; }
13715 # Check whether --with-pth was given.
13716 if test "${with_pth+set}" = set; then
13717 withval=$with_pth; { echo "$as_me:$LINENO: result: $withval" >&5
13718 echo "${ECHO_T}$withval" >&6; }
13719 cat >>confdefs.h <<\_ACEOF
13720 #define WITH_THREAD 1
13721 _ACEOF
13724 cat >>confdefs.h <<\_ACEOF
13725 #define HAVE_PTH 1
13726 _ACEOF
13728 LIBS="-lpth $LIBS"
13729 THREADOBJ="Python/thread.o"
13730 else
13731 { echo "$as_me:$LINENO: result: no" >&5
13732 echo "${ECHO_T}no" >&6; }
13734 # Just looking for pthread_create in libpthread is not enough:
13735 # on HP/UX, pthread.h renames pthread_create to a different symbol name.
13736 # So we really have to include pthread.h, and then link.
13737 _libs=$LIBS
13738 LIBS="$LIBS -lpthread"
13739 { echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
13740 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6; }
13741 cat >conftest.$ac_ext <<_ACEOF
13742 /* confdefs.h. */
13743 _ACEOF
13744 cat confdefs.h >>conftest.$ac_ext
13745 cat >>conftest.$ac_ext <<_ACEOF
13746 /* end confdefs.h. */
13747 #include <pthread.h>
13749 void * start_routine (void *arg) { exit (0); }
13751 main ()
13754 pthread_create (NULL, NULL, start_routine, NULL)
13756 return 0;
13758 _ACEOF
13759 rm -f conftest.$ac_objext conftest$ac_exeext
13760 if { (ac_try="$ac_link"
13761 case "(($ac_try" in
13762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13763 *) ac_try_echo=$ac_try;;
13764 esac
13765 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13766 (eval "$ac_link") 2>conftest.er1
13767 ac_status=$?
13768 grep -v '^ *+' conftest.er1 >conftest.err
13769 rm -f conftest.er1
13770 cat conftest.err >&5
13771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13772 (exit $ac_status); } && {
13773 test -z "$ac_c_werror_flag" ||
13774 test ! -s conftest.err
13775 } && test -s conftest$ac_exeext &&
13776 $as_test_x conftest$ac_exeext; then
13778 { echo "$as_me:$LINENO: result: yes" >&5
13779 echo "${ECHO_T}yes" >&6; }
13780 cat >>confdefs.h <<\_ACEOF
13781 #define WITH_THREAD 1
13782 _ACEOF
13784 posix_threads=yes
13785 THREADOBJ="Python/thread.o"
13786 else
13787 echo "$as_me: failed program was:" >&5
13788 sed 's/^/| /' conftest.$ac_ext >&5
13791 LIBS=$_libs
13792 { echo "$as_me:$LINENO: checking for pthread_detach" >&5
13793 echo $ECHO_N "checking for pthread_detach... $ECHO_C" >&6; }
13794 if test "${ac_cv_func_pthread_detach+set}" = set; then
13795 echo $ECHO_N "(cached) $ECHO_C" >&6
13796 else
13797 cat >conftest.$ac_ext <<_ACEOF
13798 /* confdefs.h. */
13799 _ACEOF
13800 cat confdefs.h >>conftest.$ac_ext
13801 cat >>conftest.$ac_ext <<_ACEOF
13802 /* end confdefs.h. */
13803 /* Define pthread_detach to an innocuous variant, in case <limits.h> declares pthread_detach.
13804 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13805 #define pthread_detach innocuous_pthread_detach
13807 /* System header to define __stub macros and hopefully few prototypes,
13808 which can conflict with char pthread_detach (); below.
13809 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13810 <limits.h> exists even on freestanding compilers. */
13812 #ifdef __STDC__
13813 # include <limits.h>
13814 #else
13815 # include <assert.h>
13816 #endif
13818 #undef pthread_detach
13820 /* Override any GCC internal prototype to avoid an error.
13821 Use char because int might match the return type of a GCC
13822 builtin and then its argument prototype would still apply. */
13823 #ifdef __cplusplus
13824 extern "C"
13825 #endif
13826 char pthread_detach ();
13827 /* The GNU C library defines this for functions which it implements
13828 to always fail with ENOSYS. Some functions are actually named
13829 something starting with __ and the normal name is an alias. */
13830 #if defined __stub_pthread_detach || defined __stub___pthread_detach
13831 choke me
13832 #endif
13835 main ()
13837 return pthread_detach ();
13839 return 0;
13841 _ACEOF
13842 rm -f conftest.$ac_objext conftest$ac_exeext
13843 if { (ac_try="$ac_link"
13844 case "(($ac_try" in
13845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13846 *) ac_try_echo=$ac_try;;
13847 esac
13848 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13849 (eval "$ac_link") 2>conftest.er1
13850 ac_status=$?
13851 grep -v '^ *+' conftest.er1 >conftest.err
13852 rm -f conftest.er1
13853 cat conftest.err >&5
13854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13855 (exit $ac_status); } && {
13856 test -z "$ac_c_werror_flag" ||
13857 test ! -s conftest.err
13858 } && test -s conftest$ac_exeext &&
13859 $as_test_x conftest$ac_exeext; then
13860 ac_cv_func_pthread_detach=yes
13861 else
13862 echo "$as_me: failed program was:" >&5
13863 sed 's/^/| /' conftest.$ac_ext >&5
13865 ac_cv_func_pthread_detach=no
13868 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13869 conftest$ac_exeext conftest.$ac_ext
13871 { echo "$as_me:$LINENO: result: $ac_cv_func_pthread_detach" >&5
13872 echo "${ECHO_T}$ac_cv_func_pthread_detach" >&6; }
13873 if test $ac_cv_func_pthread_detach = yes; then
13874 cat >>confdefs.h <<\_ACEOF
13875 #define WITH_THREAD 1
13876 _ACEOF
13878 posix_threads=yes
13879 THREADOBJ="Python/thread.o"
13880 else
13882 if test "${ac_cv_header_atheos_threads_h+set}" = set; then
13883 { echo "$as_me:$LINENO: checking for atheos/threads.h" >&5
13884 echo $ECHO_N "checking for atheos/threads.h... $ECHO_C" >&6; }
13885 if test "${ac_cv_header_atheos_threads_h+set}" = set; then
13886 echo $ECHO_N "(cached) $ECHO_C" >&6
13888 { echo "$as_me:$LINENO: result: $ac_cv_header_atheos_threads_h" >&5
13889 echo "${ECHO_T}$ac_cv_header_atheos_threads_h" >&6; }
13890 else
13891 # Is the header compilable?
13892 { echo "$as_me:$LINENO: checking atheos/threads.h usability" >&5
13893 echo $ECHO_N "checking atheos/threads.h usability... $ECHO_C" >&6; }
13894 cat >conftest.$ac_ext <<_ACEOF
13895 /* confdefs.h. */
13896 _ACEOF
13897 cat confdefs.h >>conftest.$ac_ext
13898 cat >>conftest.$ac_ext <<_ACEOF
13899 /* end confdefs.h. */
13900 $ac_includes_default
13901 #include <atheos/threads.h>
13902 _ACEOF
13903 rm -f conftest.$ac_objext
13904 if { (ac_try="$ac_compile"
13905 case "(($ac_try" in
13906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13907 *) ac_try_echo=$ac_try;;
13908 esac
13909 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13910 (eval "$ac_compile") 2>conftest.er1
13911 ac_status=$?
13912 grep -v '^ *+' conftest.er1 >conftest.err
13913 rm -f conftest.er1
13914 cat conftest.err >&5
13915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13916 (exit $ac_status); } && {
13917 test -z "$ac_c_werror_flag" ||
13918 test ! -s conftest.err
13919 } && test -s conftest.$ac_objext; then
13920 ac_header_compiler=yes
13921 else
13922 echo "$as_me: failed program was:" >&5
13923 sed 's/^/| /' conftest.$ac_ext >&5
13925 ac_header_compiler=no
13928 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13929 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13930 echo "${ECHO_T}$ac_header_compiler" >&6; }
13932 # Is the header present?
13933 { echo "$as_me:$LINENO: checking atheos/threads.h presence" >&5
13934 echo $ECHO_N "checking atheos/threads.h presence... $ECHO_C" >&6; }
13935 cat >conftest.$ac_ext <<_ACEOF
13936 /* confdefs.h. */
13937 _ACEOF
13938 cat confdefs.h >>conftest.$ac_ext
13939 cat >>conftest.$ac_ext <<_ACEOF
13940 /* end confdefs.h. */
13941 #include <atheos/threads.h>
13942 _ACEOF
13943 if { (ac_try="$ac_cpp conftest.$ac_ext"
13944 case "(($ac_try" in
13945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13946 *) ac_try_echo=$ac_try;;
13947 esac
13948 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13949 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13950 ac_status=$?
13951 grep -v '^ *+' conftest.er1 >conftest.err
13952 rm -f conftest.er1
13953 cat conftest.err >&5
13954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13955 (exit $ac_status); } >/dev/null && {
13956 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13957 test ! -s conftest.err
13958 }; then
13959 ac_header_preproc=yes
13960 else
13961 echo "$as_me: failed program was:" >&5
13962 sed 's/^/| /' conftest.$ac_ext >&5
13964 ac_header_preproc=no
13967 rm -f conftest.err conftest.$ac_ext
13968 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13969 echo "${ECHO_T}$ac_header_preproc" >&6; }
13971 # So? What about this header?
13972 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13973 yes:no: )
13974 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: accepted by the compiler, rejected by the preprocessor!" >&5
13975 echo "$as_me: WARNING: atheos/threads.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13976 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: proceeding with the compiler's result" >&5
13977 echo "$as_me: WARNING: atheos/threads.h: proceeding with the compiler's result" >&2;}
13978 ac_header_preproc=yes
13980 no:yes:* )
13981 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: present but cannot be compiled" >&5
13982 echo "$as_me: WARNING: atheos/threads.h: present but cannot be compiled" >&2;}
13983 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: check for missing prerequisite headers?" >&5
13984 echo "$as_me: WARNING: atheos/threads.h: check for missing prerequisite headers?" >&2;}
13985 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: see the Autoconf documentation" >&5
13986 echo "$as_me: WARNING: atheos/threads.h: see the Autoconf documentation" >&2;}
13987 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: section \"Present But Cannot Be Compiled\"" >&5
13988 echo "$as_me: WARNING: atheos/threads.h: section \"Present But Cannot Be Compiled\"" >&2;}
13989 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: proceeding with the preprocessor's result" >&5
13990 echo "$as_me: WARNING: atheos/threads.h: proceeding with the preprocessor's result" >&2;}
13991 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: in the future, the compiler will take precedence" >&5
13992 echo "$as_me: WARNING: atheos/threads.h: in the future, the compiler will take precedence" >&2;}
13993 ( cat <<\_ASBOX
13994 ## ------------------------------------------------ ##
13995 ## Report this to http://www.python.org/python-bugs ##
13996 ## ------------------------------------------------ ##
13997 _ASBOX
13998 ) | sed "s/^/$as_me: WARNING: /" >&2
14000 esac
14001 { echo "$as_me:$LINENO: checking for atheos/threads.h" >&5
14002 echo $ECHO_N "checking for atheos/threads.h... $ECHO_C" >&6; }
14003 if test "${ac_cv_header_atheos_threads_h+set}" = set; then
14004 echo $ECHO_N "(cached) $ECHO_C" >&6
14005 else
14006 ac_cv_header_atheos_threads_h=$ac_header_preproc
14008 { echo "$as_me:$LINENO: result: $ac_cv_header_atheos_threads_h" >&5
14009 echo "${ECHO_T}$ac_cv_header_atheos_threads_h" >&6; }
14012 if test $ac_cv_header_atheos_threads_h = yes; then
14013 cat >>confdefs.h <<\_ACEOF
14014 #define WITH_THREAD 1
14015 _ACEOF
14018 cat >>confdefs.h <<\_ACEOF
14019 #define ATHEOS_THREADS 1
14020 _ACEOF
14022 THREADOBJ="Python/thread.o"
14023 else
14025 if test "${ac_cv_header_kernel_OS_h+set}" = set; then
14026 { echo "$as_me:$LINENO: checking for kernel/OS.h" >&5
14027 echo $ECHO_N "checking for kernel/OS.h... $ECHO_C" >&6; }
14028 if test "${ac_cv_header_kernel_OS_h+set}" = set; then
14029 echo $ECHO_N "(cached) $ECHO_C" >&6
14031 { echo "$as_me:$LINENO: result: $ac_cv_header_kernel_OS_h" >&5
14032 echo "${ECHO_T}$ac_cv_header_kernel_OS_h" >&6; }
14033 else
14034 # Is the header compilable?
14035 { echo "$as_me:$LINENO: checking kernel/OS.h usability" >&5
14036 echo $ECHO_N "checking kernel/OS.h usability... $ECHO_C" >&6; }
14037 cat >conftest.$ac_ext <<_ACEOF
14038 /* confdefs.h. */
14039 _ACEOF
14040 cat confdefs.h >>conftest.$ac_ext
14041 cat >>conftest.$ac_ext <<_ACEOF
14042 /* end confdefs.h. */
14043 $ac_includes_default
14044 #include <kernel/OS.h>
14045 _ACEOF
14046 rm -f conftest.$ac_objext
14047 if { (ac_try="$ac_compile"
14048 case "(($ac_try" in
14049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14050 *) ac_try_echo=$ac_try;;
14051 esac
14052 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14053 (eval "$ac_compile") 2>conftest.er1
14054 ac_status=$?
14055 grep -v '^ *+' conftest.er1 >conftest.err
14056 rm -f conftest.er1
14057 cat conftest.err >&5
14058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14059 (exit $ac_status); } && {
14060 test -z "$ac_c_werror_flag" ||
14061 test ! -s conftest.err
14062 } && test -s conftest.$ac_objext; then
14063 ac_header_compiler=yes
14064 else
14065 echo "$as_me: failed program was:" >&5
14066 sed 's/^/| /' conftest.$ac_ext >&5
14068 ac_header_compiler=no
14071 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14072 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14073 echo "${ECHO_T}$ac_header_compiler" >&6; }
14075 # Is the header present?
14076 { echo "$as_me:$LINENO: checking kernel/OS.h presence" >&5
14077 echo $ECHO_N "checking kernel/OS.h presence... $ECHO_C" >&6; }
14078 cat >conftest.$ac_ext <<_ACEOF
14079 /* confdefs.h. */
14080 _ACEOF
14081 cat confdefs.h >>conftest.$ac_ext
14082 cat >>conftest.$ac_ext <<_ACEOF
14083 /* end confdefs.h. */
14084 #include <kernel/OS.h>
14085 _ACEOF
14086 if { (ac_try="$ac_cpp conftest.$ac_ext"
14087 case "(($ac_try" in
14088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14089 *) ac_try_echo=$ac_try;;
14090 esac
14091 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14092 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14093 ac_status=$?
14094 grep -v '^ *+' conftest.er1 >conftest.err
14095 rm -f conftest.er1
14096 cat conftest.err >&5
14097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14098 (exit $ac_status); } >/dev/null && {
14099 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14100 test ! -s conftest.err
14101 }; then
14102 ac_header_preproc=yes
14103 else
14104 echo "$as_me: failed program was:" >&5
14105 sed 's/^/| /' conftest.$ac_ext >&5
14107 ac_header_preproc=no
14110 rm -f conftest.err conftest.$ac_ext
14111 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14112 echo "${ECHO_T}$ac_header_preproc" >&6; }
14114 # So? What about this header?
14115 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14116 yes:no: )
14117 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: accepted by the compiler, rejected by the preprocessor!" >&5
14118 echo "$as_me: WARNING: kernel/OS.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14119 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: proceeding with the compiler's result" >&5
14120 echo "$as_me: WARNING: kernel/OS.h: proceeding with the compiler's result" >&2;}
14121 ac_header_preproc=yes
14123 no:yes:* )
14124 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: present but cannot be compiled" >&5
14125 echo "$as_me: WARNING: kernel/OS.h: present but cannot be compiled" >&2;}
14126 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: check for missing prerequisite headers?" >&5
14127 echo "$as_me: WARNING: kernel/OS.h: check for missing prerequisite headers?" >&2;}
14128 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: see the Autoconf documentation" >&5
14129 echo "$as_me: WARNING: kernel/OS.h: see the Autoconf documentation" >&2;}
14130 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: section \"Present But Cannot Be Compiled\"" >&5
14131 echo "$as_me: WARNING: kernel/OS.h: section \"Present But Cannot Be Compiled\"" >&2;}
14132 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: proceeding with the preprocessor's result" >&5
14133 echo "$as_me: WARNING: kernel/OS.h: proceeding with the preprocessor's result" >&2;}
14134 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: in the future, the compiler will take precedence" >&5
14135 echo "$as_me: WARNING: kernel/OS.h: in the future, the compiler will take precedence" >&2;}
14136 ( cat <<\_ASBOX
14137 ## ------------------------------------------------ ##
14138 ## Report this to http://www.python.org/python-bugs ##
14139 ## ------------------------------------------------ ##
14140 _ASBOX
14141 ) | sed "s/^/$as_me: WARNING: /" >&2
14143 esac
14144 { echo "$as_me:$LINENO: checking for kernel/OS.h" >&5
14145 echo $ECHO_N "checking for kernel/OS.h... $ECHO_C" >&6; }
14146 if test "${ac_cv_header_kernel_OS_h+set}" = set; then
14147 echo $ECHO_N "(cached) $ECHO_C" >&6
14148 else
14149 ac_cv_header_kernel_OS_h=$ac_header_preproc
14151 { echo "$as_me:$LINENO: result: $ac_cv_header_kernel_OS_h" >&5
14152 echo "${ECHO_T}$ac_cv_header_kernel_OS_h" >&6; }
14155 if test $ac_cv_header_kernel_OS_h = yes; then
14156 cat >>confdefs.h <<\_ACEOF
14157 #define WITH_THREAD 1
14158 _ACEOF
14161 cat >>confdefs.h <<\_ACEOF
14162 #define BEOS_THREADS 1
14163 _ACEOF
14165 THREADOBJ="Python/thread.o"
14166 else
14168 { echo "$as_me:$LINENO: checking for pthread_create in -lpthreads" >&5
14169 echo $ECHO_N "checking for pthread_create in -lpthreads... $ECHO_C" >&6; }
14170 if test "${ac_cv_lib_pthreads_pthread_create+set}" = set; then
14171 echo $ECHO_N "(cached) $ECHO_C" >&6
14172 else
14173 ac_check_lib_save_LIBS=$LIBS
14174 LIBS="-lpthreads $LIBS"
14175 cat >conftest.$ac_ext <<_ACEOF
14176 /* confdefs.h. */
14177 _ACEOF
14178 cat confdefs.h >>conftest.$ac_ext
14179 cat >>conftest.$ac_ext <<_ACEOF
14180 /* end confdefs.h. */
14182 /* Override any GCC internal prototype to avoid an error.
14183 Use char because int might match the return type of a GCC
14184 builtin and then its argument prototype would still apply. */
14185 #ifdef __cplusplus
14186 extern "C"
14187 #endif
14188 char pthread_create ();
14190 main ()
14192 return pthread_create ();
14194 return 0;
14196 _ACEOF
14197 rm -f conftest.$ac_objext conftest$ac_exeext
14198 if { (ac_try="$ac_link"
14199 case "(($ac_try" in
14200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14201 *) ac_try_echo=$ac_try;;
14202 esac
14203 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14204 (eval "$ac_link") 2>conftest.er1
14205 ac_status=$?
14206 grep -v '^ *+' conftest.er1 >conftest.err
14207 rm -f conftest.er1
14208 cat conftest.err >&5
14209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14210 (exit $ac_status); } && {
14211 test -z "$ac_c_werror_flag" ||
14212 test ! -s conftest.err
14213 } && test -s conftest$ac_exeext &&
14214 $as_test_x conftest$ac_exeext; then
14215 ac_cv_lib_pthreads_pthread_create=yes
14216 else
14217 echo "$as_me: failed program was:" >&5
14218 sed 's/^/| /' conftest.$ac_ext >&5
14220 ac_cv_lib_pthreads_pthread_create=no
14223 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14224 conftest$ac_exeext conftest.$ac_ext
14225 LIBS=$ac_check_lib_save_LIBS
14227 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_create" >&5
14228 echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_create" >&6; }
14229 if test $ac_cv_lib_pthreads_pthread_create = yes; then
14230 cat >>confdefs.h <<\_ACEOF
14231 #define WITH_THREAD 1
14232 _ACEOF
14234 posix_threads=yes
14235 LIBS="$LIBS -lpthreads"
14236 THREADOBJ="Python/thread.o"
14237 else
14239 { echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
14240 echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6; }
14241 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then
14242 echo $ECHO_N "(cached) $ECHO_C" >&6
14243 else
14244 ac_check_lib_save_LIBS=$LIBS
14245 LIBS="-lc_r $LIBS"
14246 cat >conftest.$ac_ext <<_ACEOF
14247 /* confdefs.h. */
14248 _ACEOF
14249 cat confdefs.h >>conftest.$ac_ext
14250 cat >>conftest.$ac_ext <<_ACEOF
14251 /* end confdefs.h. */
14253 /* Override any GCC internal prototype to avoid an error.
14254 Use char because int might match the return type of a GCC
14255 builtin and then its argument prototype would still apply. */
14256 #ifdef __cplusplus
14257 extern "C"
14258 #endif
14259 char pthread_create ();
14261 main ()
14263 return pthread_create ();
14265 return 0;
14267 _ACEOF
14268 rm -f conftest.$ac_objext conftest$ac_exeext
14269 if { (ac_try="$ac_link"
14270 case "(($ac_try" in
14271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14272 *) ac_try_echo=$ac_try;;
14273 esac
14274 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14275 (eval "$ac_link") 2>conftest.er1
14276 ac_status=$?
14277 grep -v '^ *+' conftest.er1 >conftest.err
14278 rm -f conftest.er1
14279 cat conftest.err >&5
14280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14281 (exit $ac_status); } && {
14282 test -z "$ac_c_werror_flag" ||
14283 test ! -s conftest.err
14284 } && test -s conftest$ac_exeext &&
14285 $as_test_x conftest$ac_exeext; then
14286 ac_cv_lib_c_r_pthread_create=yes
14287 else
14288 echo "$as_me: failed program was:" >&5
14289 sed 's/^/| /' conftest.$ac_ext >&5
14291 ac_cv_lib_c_r_pthread_create=no
14294 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14295 conftest$ac_exeext conftest.$ac_ext
14296 LIBS=$ac_check_lib_save_LIBS
14298 { echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5
14299 echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6; }
14300 if test $ac_cv_lib_c_r_pthread_create = yes; then
14301 cat >>confdefs.h <<\_ACEOF
14302 #define WITH_THREAD 1
14303 _ACEOF
14305 posix_threads=yes
14306 LIBS="$LIBS -lc_r"
14307 THREADOBJ="Python/thread.o"
14308 else
14310 { echo "$as_me:$LINENO: checking for __pthread_create_system in -lpthread" >&5
14311 echo $ECHO_N "checking for __pthread_create_system in -lpthread... $ECHO_C" >&6; }
14312 if test "${ac_cv_lib_pthread___pthread_create_system+set}" = set; then
14313 echo $ECHO_N "(cached) $ECHO_C" >&6
14314 else
14315 ac_check_lib_save_LIBS=$LIBS
14316 LIBS="-lpthread $LIBS"
14317 cat >conftest.$ac_ext <<_ACEOF
14318 /* confdefs.h. */
14319 _ACEOF
14320 cat confdefs.h >>conftest.$ac_ext
14321 cat >>conftest.$ac_ext <<_ACEOF
14322 /* end confdefs.h. */
14324 /* Override any GCC internal prototype to avoid an error.
14325 Use char because int might match the return type of a GCC
14326 builtin and then its argument prototype would still apply. */
14327 #ifdef __cplusplus
14328 extern "C"
14329 #endif
14330 char __pthread_create_system ();
14332 main ()
14334 return __pthread_create_system ();
14336 return 0;
14338 _ACEOF
14339 rm -f conftest.$ac_objext conftest$ac_exeext
14340 if { (ac_try="$ac_link"
14341 case "(($ac_try" in
14342 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14343 *) ac_try_echo=$ac_try;;
14344 esac
14345 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14346 (eval "$ac_link") 2>conftest.er1
14347 ac_status=$?
14348 grep -v '^ *+' conftest.er1 >conftest.err
14349 rm -f conftest.er1
14350 cat conftest.err >&5
14351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14352 (exit $ac_status); } && {
14353 test -z "$ac_c_werror_flag" ||
14354 test ! -s conftest.err
14355 } && test -s conftest$ac_exeext &&
14356 $as_test_x conftest$ac_exeext; then
14357 ac_cv_lib_pthread___pthread_create_system=yes
14358 else
14359 echo "$as_me: failed program was:" >&5
14360 sed 's/^/| /' conftest.$ac_ext >&5
14362 ac_cv_lib_pthread___pthread_create_system=no
14365 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14366 conftest$ac_exeext conftest.$ac_ext
14367 LIBS=$ac_check_lib_save_LIBS
14369 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread___pthread_create_system" >&5
14370 echo "${ECHO_T}$ac_cv_lib_pthread___pthread_create_system" >&6; }
14371 if test $ac_cv_lib_pthread___pthread_create_system = yes; then
14372 cat >>confdefs.h <<\_ACEOF
14373 #define WITH_THREAD 1
14374 _ACEOF
14376 posix_threads=yes
14377 LIBS="$LIBS -lpthread"
14378 THREADOBJ="Python/thread.o"
14379 else
14381 { echo "$as_me:$LINENO: checking for pthread_create in -lcma" >&5
14382 echo $ECHO_N "checking for pthread_create in -lcma... $ECHO_C" >&6; }
14383 if test "${ac_cv_lib_cma_pthread_create+set}" = set; then
14384 echo $ECHO_N "(cached) $ECHO_C" >&6
14385 else
14386 ac_check_lib_save_LIBS=$LIBS
14387 LIBS="-lcma $LIBS"
14388 cat >conftest.$ac_ext <<_ACEOF
14389 /* confdefs.h. */
14390 _ACEOF
14391 cat confdefs.h >>conftest.$ac_ext
14392 cat >>conftest.$ac_ext <<_ACEOF
14393 /* end confdefs.h. */
14395 /* Override any GCC internal prototype to avoid an error.
14396 Use char because int might match the return type of a GCC
14397 builtin and then its argument prototype would still apply. */
14398 #ifdef __cplusplus
14399 extern "C"
14400 #endif
14401 char pthread_create ();
14403 main ()
14405 return pthread_create ();
14407 return 0;
14409 _ACEOF
14410 rm -f conftest.$ac_objext conftest$ac_exeext
14411 if { (ac_try="$ac_link"
14412 case "(($ac_try" in
14413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14414 *) ac_try_echo=$ac_try;;
14415 esac
14416 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14417 (eval "$ac_link") 2>conftest.er1
14418 ac_status=$?
14419 grep -v '^ *+' conftest.er1 >conftest.err
14420 rm -f conftest.er1
14421 cat conftest.err >&5
14422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14423 (exit $ac_status); } && {
14424 test -z "$ac_c_werror_flag" ||
14425 test ! -s conftest.err
14426 } && test -s conftest$ac_exeext &&
14427 $as_test_x conftest$ac_exeext; then
14428 ac_cv_lib_cma_pthread_create=yes
14429 else
14430 echo "$as_me: failed program was:" >&5
14431 sed 's/^/| /' conftest.$ac_ext >&5
14433 ac_cv_lib_cma_pthread_create=no
14436 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14437 conftest$ac_exeext conftest.$ac_ext
14438 LIBS=$ac_check_lib_save_LIBS
14440 { echo "$as_me:$LINENO: result: $ac_cv_lib_cma_pthread_create" >&5
14441 echo "${ECHO_T}$ac_cv_lib_cma_pthread_create" >&6; }
14442 if test $ac_cv_lib_cma_pthread_create = yes; then
14443 cat >>confdefs.h <<\_ACEOF
14444 #define WITH_THREAD 1
14445 _ACEOF
14447 posix_threads=yes
14448 LIBS="$LIBS -lcma"
14449 THREADOBJ="Python/thread.o"
14450 else
14452 USE_THREAD_MODULE="#"
14472 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14473 conftest$ac_exeext conftest.$ac_ext
14483 { echo "$as_me:$LINENO: checking for usconfig in -lmpc" >&5
14484 echo $ECHO_N "checking for usconfig in -lmpc... $ECHO_C" >&6; }
14485 if test "${ac_cv_lib_mpc_usconfig+set}" = set; then
14486 echo $ECHO_N "(cached) $ECHO_C" >&6
14487 else
14488 ac_check_lib_save_LIBS=$LIBS
14489 LIBS="-lmpc $LIBS"
14490 cat >conftest.$ac_ext <<_ACEOF
14491 /* confdefs.h. */
14492 _ACEOF
14493 cat confdefs.h >>conftest.$ac_ext
14494 cat >>conftest.$ac_ext <<_ACEOF
14495 /* end confdefs.h. */
14497 /* Override any GCC internal prototype to avoid an error.
14498 Use char because int might match the return type of a GCC
14499 builtin and then its argument prototype would still apply. */
14500 #ifdef __cplusplus
14501 extern "C"
14502 #endif
14503 char usconfig ();
14505 main ()
14507 return usconfig ();
14509 return 0;
14511 _ACEOF
14512 rm -f conftest.$ac_objext conftest$ac_exeext
14513 if { (ac_try="$ac_link"
14514 case "(($ac_try" in
14515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14516 *) ac_try_echo=$ac_try;;
14517 esac
14518 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14519 (eval "$ac_link") 2>conftest.er1
14520 ac_status=$?
14521 grep -v '^ *+' conftest.er1 >conftest.err
14522 rm -f conftest.er1
14523 cat conftest.err >&5
14524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14525 (exit $ac_status); } && {
14526 test -z "$ac_c_werror_flag" ||
14527 test ! -s conftest.err
14528 } && test -s conftest$ac_exeext &&
14529 $as_test_x conftest$ac_exeext; then
14530 ac_cv_lib_mpc_usconfig=yes
14531 else
14532 echo "$as_me: failed program was:" >&5
14533 sed 's/^/| /' conftest.$ac_ext >&5
14535 ac_cv_lib_mpc_usconfig=no
14538 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14539 conftest$ac_exeext conftest.$ac_ext
14540 LIBS=$ac_check_lib_save_LIBS
14542 { echo "$as_me:$LINENO: result: $ac_cv_lib_mpc_usconfig" >&5
14543 echo "${ECHO_T}$ac_cv_lib_mpc_usconfig" >&6; }
14544 if test $ac_cv_lib_mpc_usconfig = yes; then
14545 cat >>confdefs.h <<\_ACEOF
14546 #define WITH_THREAD 1
14547 _ACEOF
14549 LIBS="$LIBS -lmpc"
14550 THREADOBJ="Python/thread.o"
14551 USE_THREAD_MODULE=""
14555 if test "$posix_threads" != "yes"; then
14556 { echo "$as_me:$LINENO: checking for thr_create in -lthread" >&5
14557 echo $ECHO_N "checking for thr_create in -lthread... $ECHO_C" >&6; }
14558 if test "${ac_cv_lib_thread_thr_create+set}" = set; then
14559 echo $ECHO_N "(cached) $ECHO_C" >&6
14560 else
14561 ac_check_lib_save_LIBS=$LIBS
14562 LIBS="-lthread $LIBS"
14563 cat >conftest.$ac_ext <<_ACEOF
14564 /* confdefs.h. */
14565 _ACEOF
14566 cat confdefs.h >>conftest.$ac_ext
14567 cat >>conftest.$ac_ext <<_ACEOF
14568 /* end confdefs.h. */
14570 /* Override any GCC internal prototype to avoid an error.
14571 Use char because int might match the return type of a GCC
14572 builtin and then its argument prototype would still apply. */
14573 #ifdef __cplusplus
14574 extern "C"
14575 #endif
14576 char thr_create ();
14578 main ()
14580 return thr_create ();
14582 return 0;
14584 _ACEOF
14585 rm -f conftest.$ac_objext conftest$ac_exeext
14586 if { (ac_try="$ac_link"
14587 case "(($ac_try" in
14588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14589 *) ac_try_echo=$ac_try;;
14590 esac
14591 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14592 (eval "$ac_link") 2>conftest.er1
14593 ac_status=$?
14594 grep -v '^ *+' conftest.er1 >conftest.err
14595 rm -f conftest.er1
14596 cat conftest.err >&5
14597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14598 (exit $ac_status); } && {
14599 test -z "$ac_c_werror_flag" ||
14600 test ! -s conftest.err
14601 } && test -s conftest$ac_exeext &&
14602 $as_test_x conftest$ac_exeext; then
14603 ac_cv_lib_thread_thr_create=yes
14604 else
14605 echo "$as_me: failed program was:" >&5
14606 sed 's/^/| /' conftest.$ac_ext >&5
14608 ac_cv_lib_thread_thr_create=no
14611 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14612 conftest$ac_exeext conftest.$ac_ext
14613 LIBS=$ac_check_lib_save_LIBS
14615 { echo "$as_me:$LINENO: result: $ac_cv_lib_thread_thr_create" >&5
14616 echo "${ECHO_T}$ac_cv_lib_thread_thr_create" >&6; }
14617 if test $ac_cv_lib_thread_thr_create = yes; then
14618 cat >>confdefs.h <<\_ACEOF
14619 #define WITH_THREAD 1
14620 _ACEOF
14622 LIBS="$LIBS -lthread"
14623 THREADOBJ="Python/thread.o"
14624 USE_THREAD_MODULE=""
14629 if test "$USE_THREAD_MODULE" != "#"
14630 then
14631 # If the above checks didn't disable threads, (at least) OSF1
14632 # needs this '-threads' argument during linking.
14633 case $ac_sys_system in
14634 OSF1) LDLAST=-threads;;
14635 esac
14639 if test "$posix_threads" = "yes"; then
14640 if test "$unistd_defines_pthreads" = "no"; then
14642 cat >>confdefs.h <<\_ACEOF
14643 #define _POSIX_THREADS 1
14644 _ACEOF
14648 # Bug 662787: Using semaphores causes unexplicable hangs on Solaris 8.
14649 case $ac_sys_system/$ac_sys_release in
14650 SunOS/5.6)
14651 cat >>confdefs.h <<\_ACEOF
14652 #define HAVE_PTHREAD_DESTRUCTOR 1
14653 _ACEOF
14656 SunOS/5.8)
14657 cat >>confdefs.h <<\_ACEOF
14658 #define HAVE_BROKEN_POSIX_SEMAPHORES 1
14659 _ACEOF
14662 AIX/5)
14663 cat >>confdefs.h <<\_ACEOF
14664 #define HAVE_BROKEN_POSIX_SEMAPHORES 1
14665 _ACEOF
14668 esac
14670 { echo "$as_me:$LINENO: checking if PTHREAD_SCOPE_SYSTEM is supported" >&5
14671 echo $ECHO_N "checking if PTHREAD_SCOPE_SYSTEM is supported... $ECHO_C" >&6; }
14672 if test "${ac_cv_pthread_system_supported+set}" = set; then
14673 echo $ECHO_N "(cached) $ECHO_C" >&6
14674 else
14675 if test "$cross_compiling" = yes; then
14676 ac_cv_pthread_system_supported=no
14677 else
14678 cat >conftest.$ac_ext <<_ACEOF
14679 /* confdefs.h. */
14680 _ACEOF
14681 cat confdefs.h >>conftest.$ac_ext
14682 cat >>conftest.$ac_ext <<_ACEOF
14683 /* end confdefs.h. */
14684 #include <pthread.h>
14685 void *foo(void *parm) {
14686 return NULL;
14688 main() {
14689 pthread_attr_t attr;
14690 pthread_t id;
14691 if (pthread_attr_init(&attr)) exit(-1);
14692 if (pthread_attr_setscope(&attr, PTHREAD_SCOPE_SYSTEM)) exit(-1);
14693 if (pthread_create(&id, &attr, foo, NULL)) exit(-1);
14694 exit(0);
14696 _ACEOF
14697 rm -f conftest$ac_exeext
14698 if { (ac_try="$ac_link"
14699 case "(($ac_try" in
14700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14701 *) ac_try_echo=$ac_try;;
14702 esac
14703 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14704 (eval "$ac_link") 2>&5
14705 ac_status=$?
14706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14707 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14708 { (case "(($ac_try" in
14709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14710 *) ac_try_echo=$ac_try;;
14711 esac
14712 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14713 (eval "$ac_try") 2>&5
14714 ac_status=$?
14715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14716 (exit $ac_status); }; }; then
14717 ac_cv_pthread_system_supported=yes
14718 else
14719 echo "$as_me: program exited with status $ac_status" >&5
14720 echo "$as_me: failed program was:" >&5
14721 sed 's/^/| /' conftest.$ac_ext >&5
14723 ( exit $ac_status )
14724 ac_cv_pthread_system_supported=no
14726 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14733 { echo "$as_me:$LINENO: result: $ac_cv_pthread_system_supported" >&5
14734 echo "${ECHO_T}$ac_cv_pthread_system_supported" >&6; }
14735 if test "$ac_cv_pthread_system_supported" = "yes"; then
14737 cat >>confdefs.h <<\_ACEOF
14738 #define PTHREAD_SYSTEM_SCHED_SUPPORTED 1
14739 _ACEOF
14743 for ac_func in pthread_sigmask
14745 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14746 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14747 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14748 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14749 echo $ECHO_N "(cached) $ECHO_C" >&6
14750 else
14751 cat >conftest.$ac_ext <<_ACEOF
14752 /* confdefs.h. */
14753 _ACEOF
14754 cat confdefs.h >>conftest.$ac_ext
14755 cat >>conftest.$ac_ext <<_ACEOF
14756 /* end confdefs.h. */
14757 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14758 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14759 #define $ac_func innocuous_$ac_func
14761 /* System header to define __stub macros and hopefully few prototypes,
14762 which can conflict with char $ac_func (); below.
14763 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14764 <limits.h> exists even on freestanding compilers. */
14766 #ifdef __STDC__
14767 # include <limits.h>
14768 #else
14769 # include <assert.h>
14770 #endif
14772 #undef $ac_func
14774 /* Override any GCC internal prototype to avoid an error.
14775 Use char because int might match the return type of a GCC
14776 builtin and then its argument prototype would still apply. */
14777 #ifdef __cplusplus
14778 extern "C"
14779 #endif
14780 char $ac_func ();
14781 /* The GNU C library defines this for functions which it implements
14782 to always fail with ENOSYS. Some functions are actually named
14783 something starting with __ and the normal name is an alias. */
14784 #if defined __stub_$ac_func || defined __stub___$ac_func
14785 choke me
14786 #endif
14789 main ()
14791 return $ac_func ();
14793 return 0;
14795 _ACEOF
14796 rm -f conftest.$ac_objext conftest$ac_exeext
14797 if { (ac_try="$ac_link"
14798 case "(($ac_try" in
14799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14800 *) ac_try_echo=$ac_try;;
14801 esac
14802 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14803 (eval "$ac_link") 2>conftest.er1
14804 ac_status=$?
14805 grep -v '^ *+' conftest.er1 >conftest.err
14806 rm -f conftest.er1
14807 cat conftest.err >&5
14808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14809 (exit $ac_status); } && {
14810 test -z "$ac_c_werror_flag" ||
14811 test ! -s conftest.err
14812 } && test -s conftest$ac_exeext &&
14813 $as_test_x conftest$ac_exeext; then
14814 eval "$as_ac_var=yes"
14815 else
14816 echo "$as_me: failed program was:" >&5
14817 sed 's/^/| /' conftest.$ac_ext >&5
14819 eval "$as_ac_var=no"
14822 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14823 conftest$ac_exeext conftest.$ac_ext
14825 ac_res=`eval echo '${'$as_ac_var'}'`
14826 { echo "$as_me:$LINENO: result: $ac_res" >&5
14827 echo "${ECHO_T}$ac_res" >&6; }
14828 if test `eval echo '${'$as_ac_var'}'` = yes; then
14829 cat >>confdefs.h <<_ACEOF
14830 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14831 _ACEOF
14832 case $ac_sys_system in
14833 CYGWIN*)
14835 cat >>confdefs.h <<\_ACEOF
14836 #define HAVE_BROKEN_PTHREAD_SIGMASK 1
14837 _ACEOF
14840 esac
14842 done
14847 # Check for enable-ipv6
14850 { echo "$as_me:$LINENO: checking if --enable-ipv6 is specified" >&5
14851 echo $ECHO_N "checking if --enable-ipv6 is specified... $ECHO_C" >&6; }
14852 # Check whether --enable-ipv6 was given.
14853 if test "${enable_ipv6+set}" = set; then
14854 enableval=$enable_ipv6; case "$enableval" in
14856 { echo "$as_me:$LINENO: result: no" >&5
14857 echo "${ECHO_T}no" >&6; }
14858 ipv6=no
14860 *) { echo "$as_me:$LINENO: result: yes" >&5
14861 echo "${ECHO_T}yes" >&6; }
14862 cat >>confdefs.h <<\_ACEOF
14863 #define ENABLE_IPV6 1
14864 _ACEOF
14866 ipv6=yes
14868 esac
14869 else
14871 if test "$cross_compiling" = yes; then
14872 { echo "$as_me:$LINENO: result: no" >&5
14873 echo "${ECHO_T}no" >&6; }
14874 ipv6=no
14876 else
14877 cat >conftest.$ac_ext <<_ACEOF
14878 /* confdefs.h. */
14879 _ACEOF
14880 cat confdefs.h >>conftest.$ac_ext
14881 cat >>conftest.$ac_ext <<_ACEOF
14882 /* end confdefs.h. */
14883 /* AF_INET6 available check */
14884 #include <sys/types.h>
14885 #include <sys/socket.h>
14886 main()
14888 if (socket(AF_INET6, SOCK_STREAM, 0) < 0)
14889 exit(1);
14890 else
14891 exit(0);
14894 _ACEOF
14895 rm -f conftest$ac_exeext
14896 if { (ac_try="$ac_link"
14897 case "(($ac_try" in
14898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14899 *) ac_try_echo=$ac_try;;
14900 esac
14901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14902 (eval "$ac_link") 2>&5
14903 ac_status=$?
14904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14905 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14906 { (case "(($ac_try" in
14907 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14908 *) ac_try_echo=$ac_try;;
14909 esac
14910 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14911 (eval "$ac_try") 2>&5
14912 ac_status=$?
14913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14914 (exit $ac_status); }; }; then
14915 { echo "$as_me:$LINENO: result: yes" >&5
14916 echo "${ECHO_T}yes" >&6; }
14917 ipv6=yes
14918 else
14919 echo "$as_me: program exited with status $ac_status" >&5
14920 echo "$as_me: failed program was:" >&5
14921 sed 's/^/| /' conftest.$ac_ext >&5
14923 ( exit $ac_status )
14924 { echo "$as_me:$LINENO: result: no" >&5
14925 echo "${ECHO_T}no" >&6; }
14926 ipv6=no
14928 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14933 if test "$ipv6" = "yes"; then
14934 { echo "$as_me:$LINENO: checking if RFC2553 API is available" >&5
14935 echo $ECHO_N "checking if RFC2553 API is available... $ECHO_C" >&6; }
14936 cat >conftest.$ac_ext <<_ACEOF
14937 /* confdefs.h. */
14938 _ACEOF
14939 cat confdefs.h >>conftest.$ac_ext
14940 cat >>conftest.$ac_ext <<_ACEOF
14941 /* end confdefs.h. */
14942 #include <sys/types.h>
14943 #include <netinet/in.h>
14945 main ()
14947 struct sockaddr_in6 x;
14948 x.sin6_scope_id;
14950 return 0;
14952 _ACEOF
14953 rm -f conftest.$ac_objext
14954 if { (ac_try="$ac_compile"
14955 case "(($ac_try" in
14956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14957 *) ac_try_echo=$ac_try;;
14958 esac
14959 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14960 (eval "$ac_compile") 2>conftest.er1
14961 ac_status=$?
14962 grep -v '^ *+' conftest.er1 >conftest.err
14963 rm -f conftest.er1
14964 cat conftest.err >&5
14965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14966 (exit $ac_status); } && {
14967 test -z "$ac_c_werror_flag" ||
14968 test ! -s conftest.err
14969 } && test -s conftest.$ac_objext; then
14970 { echo "$as_me:$LINENO: result: yes" >&5
14971 echo "${ECHO_T}yes" >&6; }
14972 ipv6=yes
14973 else
14974 echo "$as_me: failed program was:" >&5
14975 sed 's/^/| /' conftest.$ac_ext >&5
14977 { echo "$as_me:$LINENO: result: no" >&5
14978 echo "${ECHO_T}no" >&6; }
14979 ipv6=no
14982 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14985 if test "$ipv6" = "yes"; then
14986 cat >>confdefs.h <<\_ACEOF
14987 #define ENABLE_IPV6 1
14988 _ACEOF
14995 ipv6type=unknown
14996 ipv6lib=none
14997 ipv6trylibc=no
14999 if test "$ipv6" = "yes"; then
15000 { echo "$as_me:$LINENO: checking ipv6 stack type" >&5
15001 echo $ECHO_N "checking ipv6 stack type... $ECHO_C" >&6; }
15002 for i in inria kame linux-glibc linux-inet6 solaris toshiba v6d zeta;
15004 case $i in
15005 inria)
15006 cat >conftest.$ac_ext <<_ACEOF
15007 /* confdefs.h. */
15008 _ACEOF
15009 cat confdefs.h >>conftest.$ac_ext
15010 cat >>conftest.$ac_ext <<_ACEOF
15011 /* end confdefs.h. */
15013 #include <netinet/in.h>
15014 #ifdef IPV6_INRIA_VERSION
15016 #endif
15017 _ACEOF
15018 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15019 $EGREP "yes" >/dev/null 2>&1; then
15020 ipv6type=$i
15022 rm -f conftest*
15025 kame)
15026 cat >conftest.$ac_ext <<_ACEOF
15027 /* confdefs.h. */
15028 _ACEOF
15029 cat confdefs.h >>conftest.$ac_ext
15030 cat >>conftest.$ac_ext <<_ACEOF
15031 /* end confdefs.h. */
15033 #include <netinet/in.h>
15034 #ifdef __KAME__
15036 #endif
15037 _ACEOF
15038 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15039 $EGREP "yes" >/dev/null 2>&1; then
15040 ipv6type=$i;
15041 ipv6lib=inet6
15042 ipv6libdir=/usr/local/v6/lib
15043 ipv6trylibc=yes
15045 rm -f conftest*
15048 linux-glibc)
15049 cat >conftest.$ac_ext <<_ACEOF
15050 /* confdefs.h. */
15051 _ACEOF
15052 cat confdefs.h >>conftest.$ac_ext
15053 cat >>conftest.$ac_ext <<_ACEOF
15054 /* end confdefs.h. */
15056 #include <features.h>
15057 #if defined(__GLIBC__) && ((__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2))
15059 #endif
15060 _ACEOF
15061 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15062 $EGREP "yes" >/dev/null 2>&1; then
15063 ipv6type=$i;
15064 ipv6trylibc=yes
15066 rm -f conftest*
15069 linux-inet6)
15070 if test -d /usr/inet6; then
15071 ipv6type=$i
15072 ipv6lib=inet6
15073 ipv6libdir=/usr/inet6/lib
15074 BASECFLAGS="-I/usr/inet6/include $BASECFLAGS"
15077 solaris)
15078 if test -f /etc/netconfig; then
15079 if /usr/xpg4/bin/grep -q tcp6 /etc/netconfig; then
15080 ipv6type=$i
15081 ipv6trylibc=yes
15085 toshiba)
15086 cat >conftest.$ac_ext <<_ACEOF
15087 /* confdefs.h. */
15088 _ACEOF
15089 cat confdefs.h >>conftest.$ac_ext
15090 cat >>conftest.$ac_ext <<_ACEOF
15091 /* end confdefs.h. */
15093 #include <sys/param.h>
15094 #ifdef _TOSHIBA_INET6
15096 #endif
15097 _ACEOF
15098 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15099 $EGREP "yes" >/dev/null 2>&1; then
15100 ipv6type=$i;
15101 ipv6lib=inet6;
15102 ipv6libdir=/usr/local/v6/lib
15104 rm -f conftest*
15107 v6d)
15108 cat >conftest.$ac_ext <<_ACEOF
15109 /* confdefs.h. */
15110 _ACEOF
15111 cat confdefs.h >>conftest.$ac_ext
15112 cat >>conftest.$ac_ext <<_ACEOF
15113 /* end confdefs.h. */
15115 #include </usr/local/v6/include/sys/v6config.h>
15116 #ifdef __V6D__
15118 #endif
15119 _ACEOF
15120 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15121 $EGREP "yes" >/dev/null 2>&1; then
15122 ipv6type=$i;
15123 ipv6lib=v6;
15124 ipv6libdir=/usr/local/v6/lib;
15125 BASECFLAGS="-I/usr/local/v6/include $BASECFLAGS"
15127 rm -f conftest*
15130 zeta)
15131 cat >conftest.$ac_ext <<_ACEOF
15132 /* confdefs.h. */
15133 _ACEOF
15134 cat confdefs.h >>conftest.$ac_ext
15135 cat >>conftest.$ac_ext <<_ACEOF
15136 /* end confdefs.h. */
15138 #include <sys/param.h>
15139 #ifdef _ZETA_MINAMI_INET6
15141 #endif
15142 _ACEOF
15143 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15144 $EGREP "yes" >/dev/null 2>&1; then
15145 ipv6type=$i;
15146 ipv6lib=inet6;
15147 ipv6libdir=/usr/local/v6/lib
15149 rm -f conftest*
15152 esac
15153 if test "$ipv6type" != "unknown"; then
15154 break
15156 done
15157 { echo "$as_me:$LINENO: result: $ipv6type" >&5
15158 echo "${ECHO_T}$ipv6type" >&6; }
15161 if test "$ipv6" = "yes" -a "$ipv6lib" != "none"; then
15162 if test -d $ipv6libdir -a -f $ipv6libdir/lib$ipv6lib.a; then
15163 LIBS="-L$ipv6libdir -l$ipv6lib $LIBS"
15164 echo "using lib$ipv6lib"
15165 else
15166 if test $ipv6trylibc = "yes"; then
15167 echo "using libc"
15168 else
15169 echo 'Fatal: no $ipv6lib library found. cannot continue.'
15170 echo "You need to fetch lib$ipv6lib.a from appropriate"
15171 echo 'ipv6 kit and compile beforehand.'
15172 exit 1
15177 # Check for --with-doc-strings
15178 { echo "$as_me:$LINENO: checking for --with-doc-strings" >&5
15179 echo $ECHO_N "checking for --with-doc-strings... $ECHO_C" >&6; }
15181 # Check whether --with-doc-strings was given.
15182 if test "${with_doc_strings+set}" = set; then
15183 withval=$with_doc_strings;
15187 if test -z "$with_doc_strings"
15188 then with_doc_strings="yes"
15190 if test "$with_doc_strings" != "no"
15191 then
15193 cat >>confdefs.h <<\_ACEOF
15194 #define WITH_DOC_STRINGS 1
15195 _ACEOF
15198 { echo "$as_me:$LINENO: result: $with_doc_strings" >&5
15199 echo "${ECHO_T}$with_doc_strings" >&6; }
15201 # Check for Python-specific malloc support
15202 { echo "$as_me:$LINENO: checking for --with-tsc" >&5
15203 echo $ECHO_N "checking for --with-tsc... $ECHO_C" >&6; }
15205 # Check whether --with-tsc was given.
15206 if test "${with_tsc+set}" = set; then
15207 withval=$with_tsc;
15208 if test "$withval" != no
15209 then
15211 cat >>confdefs.h <<\_ACEOF
15212 #define WITH_TSC 1
15213 _ACEOF
15215 { echo "$as_me:$LINENO: result: yes" >&5
15216 echo "${ECHO_T}yes" >&6; }
15217 else { echo "$as_me:$LINENO: result: no" >&5
15218 echo "${ECHO_T}no" >&6; }
15220 else
15221 { echo "$as_me:$LINENO: result: no" >&5
15222 echo "${ECHO_T}no" >&6; }
15226 # Check for Python-specific malloc support
15227 { echo "$as_me:$LINENO: checking for --with-pymalloc" >&5
15228 echo $ECHO_N "checking for --with-pymalloc... $ECHO_C" >&6; }
15230 # Check whether --with-pymalloc was given.
15231 if test "${with_pymalloc+set}" = set; then
15232 withval=$with_pymalloc;
15236 if test -z "$with_pymalloc"
15237 then with_pymalloc="yes"
15239 if test "$with_pymalloc" != "no"
15240 then
15242 cat >>confdefs.h <<\_ACEOF
15243 #define WITH_PYMALLOC 1
15244 _ACEOF
15247 { echo "$as_me:$LINENO: result: $with_pymalloc" >&5
15248 echo "${ECHO_T}$with_pymalloc" >&6; }
15250 # Check for --with-wctype-functions
15251 { echo "$as_me:$LINENO: checking for --with-wctype-functions" >&5
15252 echo $ECHO_N "checking for --with-wctype-functions... $ECHO_C" >&6; }
15254 # Check whether --with-wctype-functions was given.
15255 if test "${with_wctype_functions+set}" = set; then
15256 withval=$with_wctype_functions;
15257 if test "$withval" != no
15258 then
15260 cat >>confdefs.h <<\_ACEOF
15261 #define WANT_WCTYPE_FUNCTIONS 1
15262 _ACEOF
15264 { echo "$as_me:$LINENO: result: yes" >&5
15265 echo "${ECHO_T}yes" >&6; }
15266 else { echo "$as_me:$LINENO: result: no" >&5
15267 echo "${ECHO_T}no" >&6; }
15269 else
15270 { echo "$as_me:$LINENO: result: no" >&5
15271 echo "${ECHO_T}no" >&6; }
15275 # -I${DLINCLDIR} is added to the compile rule for importdl.o
15277 DLINCLDIR=.
15279 # the dlopen() function means we might want to use dynload_shlib.o. some
15280 # platforms, such as AIX, have dlopen(), but don't want to use it.
15282 for ac_func in dlopen
15284 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15285 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15286 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15287 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15288 echo $ECHO_N "(cached) $ECHO_C" >&6
15289 else
15290 cat >conftest.$ac_ext <<_ACEOF
15291 /* confdefs.h. */
15292 _ACEOF
15293 cat confdefs.h >>conftest.$ac_ext
15294 cat >>conftest.$ac_ext <<_ACEOF
15295 /* end confdefs.h. */
15296 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15297 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15298 #define $ac_func innocuous_$ac_func
15300 /* System header to define __stub macros and hopefully few prototypes,
15301 which can conflict with char $ac_func (); below.
15302 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15303 <limits.h> exists even on freestanding compilers. */
15305 #ifdef __STDC__
15306 # include <limits.h>
15307 #else
15308 # include <assert.h>
15309 #endif
15311 #undef $ac_func
15313 /* Override any GCC internal prototype to avoid an error.
15314 Use char because int might match the return type of a GCC
15315 builtin and then its argument prototype would still apply. */
15316 #ifdef __cplusplus
15317 extern "C"
15318 #endif
15319 char $ac_func ();
15320 /* The GNU C library defines this for functions which it implements
15321 to always fail with ENOSYS. Some functions are actually named
15322 something starting with __ and the normal name is an alias. */
15323 #if defined __stub_$ac_func || defined __stub___$ac_func
15324 choke me
15325 #endif
15328 main ()
15330 return $ac_func ();
15332 return 0;
15334 _ACEOF
15335 rm -f conftest.$ac_objext conftest$ac_exeext
15336 if { (ac_try="$ac_link"
15337 case "(($ac_try" in
15338 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15339 *) ac_try_echo=$ac_try;;
15340 esac
15341 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15342 (eval "$ac_link") 2>conftest.er1
15343 ac_status=$?
15344 grep -v '^ *+' conftest.er1 >conftest.err
15345 rm -f conftest.er1
15346 cat conftest.err >&5
15347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15348 (exit $ac_status); } && {
15349 test -z "$ac_c_werror_flag" ||
15350 test ! -s conftest.err
15351 } && test -s conftest$ac_exeext &&
15352 $as_test_x conftest$ac_exeext; then
15353 eval "$as_ac_var=yes"
15354 else
15355 echo "$as_me: failed program was:" >&5
15356 sed 's/^/| /' conftest.$ac_ext >&5
15358 eval "$as_ac_var=no"
15361 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15362 conftest$ac_exeext conftest.$ac_ext
15364 ac_res=`eval echo '${'$as_ac_var'}'`
15365 { echo "$as_me:$LINENO: result: $ac_res" >&5
15366 echo "${ECHO_T}$ac_res" >&6; }
15367 if test `eval echo '${'$as_ac_var'}'` = yes; then
15368 cat >>confdefs.h <<_ACEOF
15369 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15370 _ACEOF
15373 done
15376 # DYNLOADFILE specifies which dynload_*.o file we will use for dynamic
15377 # loading of modules.
15379 { echo "$as_me:$LINENO: checking DYNLOADFILE" >&5
15380 echo $ECHO_N "checking DYNLOADFILE... $ECHO_C" >&6; }
15381 if test -z "$DYNLOADFILE"
15382 then
15383 case $ac_sys_system/$ac_sys_release in
15384 AIX*) # Use dynload_shlib.c and dlopen() if we have it; otherwise dynload_aix.c
15385 if test "$ac_cv_func_dlopen" = yes
15386 then DYNLOADFILE="dynload_shlib.o"
15387 else DYNLOADFILE="dynload_aix.o"
15390 BeOS*) DYNLOADFILE="dynload_beos.o";;
15391 hp*|HP*) DYNLOADFILE="dynload_hpux.o";;
15392 # Use dynload_next.c only on 10.2 and below, which don't have native dlopen()
15393 Darwin/[0156]\..*) DYNLOADFILE="dynload_next.o";;
15394 atheos*) DYNLOADFILE="dynload_atheos.o";;
15396 # use dynload_shlib.c and dlopen() if we have it; otherwise stub
15397 # out any dynamic loading
15398 if test "$ac_cv_func_dlopen" = yes
15399 then DYNLOADFILE="dynload_shlib.o"
15400 else DYNLOADFILE="dynload_stub.o"
15403 esac
15405 { echo "$as_me:$LINENO: result: $DYNLOADFILE" >&5
15406 echo "${ECHO_T}$DYNLOADFILE" >&6; }
15407 if test "$DYNLOADFILE" != "dynload_stub.o"
15408 then
15410 cat >>confdefs.h <<\_ACEOF
15411 #define HAVE_DYNAMIC_LOADING 1
15412 _ACEOF
15416 # MACHDEP_OBJS can be set to platform-specific object files needed by Python
15419 { echo "$as_me:$LINENO: checking MACHDEP_OBJS" >&5
15420 echo $ECHO_N "checking MACHDEP_OBJS... $ECHO_C" >&6; }
15421 if test -z "$MACHDEP_OBJS"
15422 then
15423 MACHDEP_OBJS=$extra_machdep_objs
15424 else
15425 MACHDEP_OBJS="$MACHDEP_OBJS $extra_machdep_objs"
15427 { echo "$as_me:$LINENO: result: MACHDEP_OBJS" >&5
15428 echo "${ECHO_T}MACHDEP_OBJS" >&6; }
15430 # checks for library functions
15512 for ac_func in alarm setitimer getitimer bind_textdomain_codeset chown \
15513 clock confstr ctermid execv fchmod fchown fork fpathconf ftime ftruncate \
15514 gai_strerror getgroups getlogin getloadavg getpeername getpgid getpid \
15515 getpriority getpwent getspnam getspent getsid getwd \
15516 kill killpg lchmod lchown lstat mkfifo mknod mktime \
15517 mremap nice pathconf pause plock poll pthread_init \
15518 putenv readlink realpath \
15519 select setegid seteuid setgid \
15520 setlocale setregid setreuid setsid setpgid setpgrp setuid setvbuf snprintf \
15521 sigaction siginterrupt sigrelse strftime \
15522 sysconf tcgetpgrp tcsetpgrp tempnam timegm times tmpfile tmpnam tmpnam_r \
15523 truncate uname unsetenv utimes waitpid wait3 wait4 wcscoll _getpty
15525 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15526 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15527 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15528 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15529 echo $ECHO_N "(cached) $ECHO_C" >&6
15530 else
15531 cat >conftest.$ac_ext <<_ACEOF
15532 /* confdefs.h. */
15533 _ACEOF
15534 cat confdefs.h >>conftest.$ac_ext
15535 cat >>conftest.$ac_ext <<_ACEOF
15536 /* end confdefs.h. */
15537 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15538 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15539 #define $ac_func innocuous_$ac_func
15541 /* System header to define __stub macros and hopefully few prototypes,
15542 which can conflict with char $ac_func (); below.
15543 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15544 <limits.h> exists even on freestanding compilers. */
15546 #ifdef __STDC__
15547 # include <limits.h>
15548 #else
15549 # include <assert.h>
15550 #endif
15552 #undef $ac_func
15554 /* Override any GCC internal prototype to avoid an error.
15555 Use char because int might match the return type of a GCC
15556 builtin and then its argument prototype would still apply. */
15557 #ifdef __cplusplus
15558 extern "C"
15559 #endif
15560 char $ac_func ();
15561 /* The GNU C library defines this for functions which it implements
15562 to always fail with ENOSYS. Some functions are actually named
15563 something starting with __ and the normal name is an alias. */
15564 #if defined __stub_$ac_func || defined __stub___$ac_func
15565 choke me
15566 #endif
15569 main ()
15571 return $ac_func ();
15573 return 0;
15575 _ACEOF
15576 rm -f conftest.$ac_objext conftest$ac_exeext
15577 if { (ac_try="$ac_link"
15578 case "(($ac_try" in
15579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15580 *) ac_try_echo=$ac_try;;
15581 esac
15582 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15583 (eval "$ac_link") 2>conftest.er1
15584 ac_status=$?
15585 grep -v '^ *+' conftest.er1 >conftest.err
15586 rm -f conftest.er1
15587 cat conftest.err >&5
15588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15589 (exit $ac_status); } && {
15590 test -z "$ac_c_werror_flag" ||
15591 test ! -s conftest.err
15592 } && test -s conftest$ac_exeext &&
15593 $as_test_x conftest$ac_exeext; then
15594 eval "$as_ac_var=yes"
15595 else
15596 echo "$as_me: failed program was:" >&5
15597 sed 's/^/| /' conftest.$ac_ext >&5
15599 eval "$as_ac_var=no"
15602 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15603 conftest$ac_exeext conftest.$ac_ext
15605 ac_res=`eval echo '${'$as_ac_var'}'`
15606 { echo "$as_me:$LINENO: result: $ac_res" >&5
15607 echo "${ECHO_T}$ac_res" >&6; }
15608 if test `eval echo '${'$as_ac_var'}'` = yes; then
15609 cat >>confdefs.h <<_ACEOF
15610 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15611 _ACEOF
15614 done
15617 # For some functions, having a definition is not sufficient, since
15618 # we want to take their address.
15619 { echo "$as_me:$LINENO: checking for chroot" >&5
15620 echo $ECHO_N "checking for chroot... $ECHO_C" >&6; }
15621 cat >conftest.$ac_ext <<_ACEOF
15622 /* confdefs.h. */
15623 _ACEOF
15624 cat confdefs.h >>conftest.$ac_ext
15625 cat >>conftest.$ac_ext <<_ACEOF
15626 /* end confdefs.h. */
15627 #include <unistd.h>
15629 main ()
15631 void *x=chroot
15633 return 0;
15635 _ACEOF
15636 rm -f conftest.$ac_objext
15637 if { (ac_try="$ac_compile"
15638 case "(($ac_try" in
15639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15640 *) ac_try_echo=$ac_try;;
15641 esac
15642 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15643 (eval "$ac_compile") 2>conftest.er1
15644 ac_status=$?
15645 grep -v '^ *+' conftest.er1 >conftest.err
15646 rm -f conftest.er1
15647 cat conftest.err >&5
15648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15649 (exit $ac_status); } && {
15650 test -z "$ac_c_werror_flag" ||
15651 test ! -s conftest.err
15652 } && test -s conftest.$ac_objext; then
15654 cat >>confdefs.h <<\_ACEOF
15655 #define HAVE_CHROOT 1
15656 _ACEOF
15658 { echo "$as_me:$LINENO: result: yes" >&5
15659 echo "${ECHO_T}yes" >&6; }
15660 else
15661 echo "$as_me: failed program was:" >&5
15662 sed 's/^/| /' conftest.$ac_ext >&5
15664 { echo "$as_me:$LINENO: result: no" >&5
15665 echo "${ECHO_T}no" >&6; }
15669 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15670 { echo "$as_me:$LINENO: checking for link" >&5
15671 echo $ECHO_N "checking for link... $ECHO_C" >&6; }
15672 cat >conftest.$ac_ext <<_ACEOF
15673 /* confdefs.h. */
15674 _ACEOF
15675 cat confdefs.h >>conftest.$ac_ext
15676 cat >>conftest.$ac_ext <<_ACEOF
15677 /* end confdefs.h. */
15678 #include <unistd.h>
15680 main ()
15682 void *x=link
15684 return 0;
15686 _ACEOF
15687 rm -f conftest.$ac_objext
15688 if { (ac_try="$ac_compile"
15689 case "(($ac_try" in
15690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15691 *) ac_try_echo=$ac_try;;
15692 esac
15693 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15694 (eval "$ac_compile") 2>conftest.er1
15695 ac_status=$?
15696 grep -v '^ *+' conftest.er1 >conftest.err
15697 rm -f conftest.er1
15698 cat conftest.err >&5
15699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15700 (exit $ac_status); } && {
15701 test -z "$ac_c_werror_flag" ||
15702 test ! -s conftest.err
15703 } && test -s conftest.$ac_objext; then
15705 cat >>confdefs.h <<\_ACEOF
15706 #define HAVE_LINK 1
15707 _ACEOF
15709 { echo "$as_me:$LINENO: result: yes" >&5
15710 echo "${ECHO_T}yes" >&6; }
15711 else
15712 echo "$as_me: failed program was:" >&5
15713 sed 's/^/| /' conftest.$ac_ext >&5
15715 { echo "$as_me:$LINENO: result: no" >&5
15716 echo "${ECHO_T}no" >&6; }
15720 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15721 { echo "$as_me:$LINENO: checking for symlink" >&5
15722 echo $ECHO_N "checking for symlink... $ECHO_C" >&6; }
15723 cat >conftest.$ac_ext <<_ACEOF
15724 /* confdefs.h. */
15725 _ACEOF
15726 cat confdefs.h >>conftest.$ac_ext
15727 cat >>conftest.$ac_ext <<_ACEOF
15728 /* end confdefs.h. */
15729 #include <unistd.h>
15731 main ()
15733 void *x=symlink
15735 return 0;
15737 _ACEOF
15738 rm -f conftest.$ac_objext
15739 if { (ac_try="$ac_compile"
15740 case "(($ac_try" in
15741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15742 *) ac_try_echo=$ac_try;;
15743 esac
15744 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15745 (eval "$ac_compile") 2>conftest.er1
15746 ac_status=$?
15747 grep -v '^ *+' conftest.er1 >conftest.err
15748 rm -f conftest.er1
15749 cat conftest.err >&5
15750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15751 (exit $ac_status); } && {
15752 test -z "$ac_c_werror_flag" ||
15753 test ! -s conftest.err
15754 } && test -s conftest.$ac_objext; then
15756 cat >>confdefs.h <<\_ACEOF
15757 #define HAVE_SYMLINK 1
15758 _ACEOF
15760 { echo "$as_me:$LINENO: result: yes" >&5
15761 echo "${ECHO_T}yes" >&6; }
15762 else
15763 echo "$as_me: failed program was:" >&5
15764 sed 's/^/| /' conftest.$ac_ext >&5
15766 { echo "$as_me:$LINENO: result: no" >&5
15767 echo "${ECHO_T}no" >&6; }
15771 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15772 { echo "$as_me:$LINENO: checking for fchdir" >&5
15773 echo $ECHO_N "checking for fchdir... $ECHO_C" >&6; }
15774 cat >conftest.$ac_ext <<_ACEOF
15775 /* confdefs.h. */
15776 _ACEOF
15777 cat confdefs.h >>conftest.$ac_ext
15778 cat >>conftest.$ac_ext <<_ACEOF
15779 /* end confdefs.h. */
15780 #include <unistd.h>
15782 main ()
15784 void *x=fchdir
15786 return 0;
15788 _ACEOF
15789 rm -f conftest.$ac_objext
15790 if { (ac_try="$ac_compile"
15791 case "(($ac_try" in
15792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15793 *) ac_try_echo=$ac_try;;
15794 esac
15795 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15796 (eval "$ac_compile") 2>conftest.er1
15797 ac_status=$?
15798 grep -v '^ *+' conftest.er1 >conftest.err
15799 rm -f conftest.er1
15800 cat conftest.err >&5
15801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15802 (exit $ac_status); } && {
15803 test -z "$ac_c_werror_flag" ||
15804 test ! -s conftest.err
15805 } && test -s conftest.$ac_objext; then
15807 cat >>confdefs.h <<\_ACEOF
15808 #define HAVE_FCHDIR 1
15809 _ACEOF
15811 { echo "$as_me:$LINENO: result: yes" >&5
15812 echo "${ECHO_T}yes" >&6; }
15813 else
15814 echo "$as_me: failed program was:" >&5
15815 sed 's/^/| /' conftest.$ac_ext >&5
15817 { echo "$as_me:$LINENO: result: no" >&5
15818 echo "${ECHO_T}no" >&6; }
15822 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15823 { echo "$as_me:$LINENO: checking for fsync" >&5
15824 echo $ECHO_N "checking for fsync... $ECHO_C" >&6; }
15825 cat >conftest.$ac_ext <<_ACEOF
15826 /* confdefs.h. */
15827 _ACEOF
15828 cat confdefs.h >>conftest.$ac_ext
15829 cat >>conftest.$ac_ext <<_ACEOF
15830 /* end confdefs.h. */
15831 #include <unistd.h>
15833 main ()
15835 void *x=fsync
15837 return 0;
15839 _ACEOF
15840 rm -f conftest.$ac_objext
15841 if { (ac_try="$ac_compile"
15842 case "(($ac_try" in
15843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15844 *) ac_try_echo=$ac_try;;
15845 esac
15846 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15847 (eval "$ac_compile") 2>conftest.er1
15848 ac_status=$?
15849 grep -v '^ *+' conftest.er1 >conftest.err
15850 rm -f conftest.er1
15851 cat conftest.err >&5
15852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15853 (exit $ac_status); } && {
15854 test -z "$ac_c_werror_flag" ||
15855 test ! -s conftest.err
15856 } && test -s conftest.$ac_objext; then
15858 cat >>confdefs.h <<\_ACEOF
15859 #define HAVE_FSYNC 1
15860 _ACEOF
15862 { echo "$as_me:$LINENO: result: yes" >&5
15863 echo "${ECHO_T}yes" >&6; }
15864 else
15865 echo "$as_me: failed program was:" >&5
15866 sed 's/^/| /' conftest.$ac_ext >&5
15868 { echo "$as_me:$LINENO: result: no" >&5
15869 echo "${ECHO_T}no" >&6; }
15873 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15874 { echo "$as_me:$LINENO: checking for fdatasync" >&5
15875 echo $ECHO_N "checking for fdatasync... $ECHO_C" >&6; }
15876 cat >conftest.$ac_ext <<_ACEOF
15877 /* confdefs.h. */
15878 _ACEOF
15879 cat confdefs.h >>conftest.$ac_ext
15880 cat >>conftest.$ac_ext <<_ACEOF
15881 /* end confdefs.h. */
15882 #include <unistd.h>
15884 main ()
15886 void *x=fdatasync
15888 return 0;
15890 _ACEOF
15891 rm -f conftest.$ac_objext
15892 if { (ac_try="$ac_compile"
15893 case "(($ac_try" in
15894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15895 *) ac_try_echo=$ac_try;;
15896 esac
15897 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15898 (eval "$ac_compile") 2>conftest.er1
15899 ac_status=$?
15900 grep -v '^ *+' conftest.er1 >conftest.err
15901 rm -f conftest.er1
15902 cat conftest.err >&5
15903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15904 (exit $ac_status); } && {
15905 test -z "$ac_c_werror_flag" ||
15906 test ! -s conftest.err
15907 } && test -s conftest.$ac_objext; then
15909 cat >>confdefs.h <<\_ACEOF
15910 #define HAVE_FDATASYNC 1
15911 _ACEOF
15913 { echo "$as_me:$LINENO: result: yes" >&5
15914 echo "${ECHO_T}yes" >&6; }
15915 else
15916 echo "$as_me: failed program was:" >&5
15917 sed 's/^/| /' conftest.$ac_ext >&5
15919 { echo "$as_me:$LINENO: result: no" >&5
15920 echo "${ECHO_T}no" >&6; }
15924 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15925 { echo "$as_me:$LINENO: checking for epoll" >&5
15926 echo $ECHO_N "checking for epoll... $ECHO_C" >&6; }
15927 cat >conftest.$ac_ext <<_ACEOF
15928 /* confdefs.h. */
15929 _ACEOF
15930 cat confdefs.h >>conftest.$ac_ext
15931 cat >>conftest.$ac_ext <<_ACEOF
15932 /* end confdefs.h. */
15933 #include <sys/epoll.h>
15935 main ()
15937 void *x=epoll_create
15939 return 0;
15941 _ACEOF
15942 rm -f conftest.$ac_objext
15943 if { (ac_try="$ac_compile"
15944 case "(($ac_try" in
15945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15946 *) ac_try_echo=$ac_try;;
15947 esac
15948 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15949 (eval "$ac_compile") 2>conftest.er1
15950 ac_status=$?
15951 grep -v '^ *+' conftest.er1 >conftest.err
15952 rm -f conftest.er1
15953 cat conftest.err >&5
15954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15955 (exit $ac_status); } && {
15956 test -z "$ac_c_werror_flag" ||
15957 test ! -s conftest.err
15958 } && test -s conftest.$ac_objext; then
15960 cat >>confdefs.h <<\_ACEOF
15961 #define HAVE_EPOLL 1
15962 _ACEOF
15964 { echo "$as_me:$LINENO: result: yes" >&5
15965 echo "${ECHO_T}yes" >&6; }
15966 else
15967 echo "$as_me: failed program was:" >&5
15968 sed 's/^/| /' conftest.$ac_ext >&5
15970 { echo "$as_me:$LINENO: result: no" >&5
15971 echo "${ECHO_T}no" >&6; }
15975 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15976 { echo "$as_me:$LINENO: checking for kqueue" >&5
15977 echo $ECHO_N "checking for kqueue... $ECHO_C" >&6; }
15978 cat >conftest.$ac_ext <<_ACEOF
15979 /* confdefs.h. */
15980 _ACEOF
15981 cat confdefs.h >>conftest.$ac_ext
15982 cat >>conftest.$ac_ext <<_ACEOF
15983 /* end confdefs.h. */
15985 #include <sys/types.h>
15986 #include <sys/event.h>
15989 main ()
15991 int x=kqueue()
15993 return 0;
15995 _ACEOF
15996 rm -f conftest.$ac_objext
15997 if { (ac_try="$ac_compile"
15998 case "(($ac_try" in
15999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16000 *) ac_try_echo=$ac_try;;
16001 esac
16002 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16003 (eval "$ac_compile") 2>conftest.er1
16004 ac_status=$?
16005 grep -v '^ *+' conftest.er1 >conftest.err
16006 rm -f conftest.er1
16007 cat conftest.err >&5
16008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16009 (exit $ac_status); } && {
16010 test -z "$ac_c_werror_flag" ||
16011 test ! -s conftest.err
16012 } && test -s conftest.$ac_objext; then
16014 cat >>confdefs.h <<\_ACEOF
16015 #define HAVE_KQUEUE 1
16016 _ACEOF
16018 { echo "$as_me:$LINENO: result: yes" >&5
16019 echo "${ECHO_T}yes" >&6; }
16020 else
16021 echo "$as_me: failed program was:" >&5
16022 sed 's/^/| /' conftest.$ac_ext >&5
16024 { echo "$as_me:$LINENO: result: no" >&5
16025 echo "${ECHO_T}no" >&6; }
16029 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16030 # On some systems (eg. FreeBSD 5), we would find a definition of the
16031 # functions ctermid_r, setgroups in the library, but no prototype
16032 # (e.g. because we use _XOPEN_SOURCE). See whether we can take their
16033 # address to avoid compiler warnings and potential miscompilations
16034 # because of the missing prototypes.
16036 { echo "$as_me:$LINENO: checking for ctermid_r" >&5
16037 echo $ECHO_N "checking for ctermid_r... $ECHO_C" >&6; }
16038 cat >conftest.$ac_ext <<_ACEOF
16039 /* confdefs.h. */
16040 _ACEOF
16041 cat confdefs.h >>conftest.$ac_ext
16042 cat >>conftest.$ac_ext <<_ACEOF
16043 /* end confdefs.h. */
16045 #include "confdefs.h"
16046 #include <stdio.h>
16049 main ()
16051 void* p = ctermid_r
16053 return 0;
16055 _ACEOF
16056 rm -f conftest.$ac_objext
16057 if { (ac_try="$ac_compile"
16058 case "(($ac_try" in
16059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16060 *) ac_try_echo=$ac_try;;
16061 esac
16062 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16063 (eval "$ac_compile") 2>conftest.er1
16064 ac_status=$?
16065 grep -v '^ *+' conftest.er1 >conftest.err
16066 rm -f conftest.er1
16067 cat conftest.err >&5
16068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16069 (exit $ac_status); } && {
16070 test -z "$ac_c_werror_flag" ||
16071 test ! -s conftest.err
16072 } && test -s conftest.$ac_objext; then
16074 cat >>confdefs.h <<\_ACEOF
16075 #define HAVE_CTERMID_R 1
16076 _ACEOF
16078 { echo "$as_me:$LINENO: result: yes" >&5
16079 echo "${ECHO_T}yes" >&6; }
16080 else
16081 echo "$as_me: failed program was:" >&5
16082 sed 's/^/| /' conftest.$ac_ext >&5
16084 { echo "$as_me:$LINENO: result: no" >&5
16085 echo "${ECHO_T}no" >&6; }
16089 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16091 { echo "$as_me:$LINENO: checking for flock" >&5
16092 echo $ECHO_N "checking for flock... $ECHO_C" >&6; }
16093 cat >conftest.$ac_ext <<_ACEOF
16094 /* confdefs.h. */
16095 _ACEOF
16096 cat confdefs.h >>conftest.$ac_ext
16097 cat >>conftest.$ac_ext <<_ACEOF
16098 /* end confdefs.h. */
16100 #include "confdefs.h"
16101 #include <sys/file.h>
16104 main ()
16106 void* p = flock
16108 return 0;
16110 _ACEOF
16111 rm -f conftest.$ac_objext
16112 if { (ac_try="$ac_compile"
16113 case "(($ac_try" in
16114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16115 *) ac_try_echo=$ac_try;;
16116 esac
16117 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16118 (eval "$ac_compile") 2>conftest.er1
16119 ac_status=$?
16120 grep -v '^ *+' conftest.er1 >conftest.err
16121 rm -f conftest.er1
16122 cat conftest.err >&5
16123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16124 (exit $ac_status); } && {
16125 test -z "$ac_c_werror_flag" ||
16126 test ! -s conftest.err
16127 } && test -s conftest.$ac_objext; then
16129 cat >>confdefs.h <<\_ACEOF
16130 #define HAVE_FLOCK 1
16131 _ACEOF
16133 { echo "$as_me:$LINENO: result: yes" >&5
16134 echo "${ECHO_T}yes" >&6; }
16135 else
16136 echo "$as_me: failed program was:" >&5
16137 sed 's/^/| /' conftest.$ac_ext >&5
16139 { echo "$as_me:$LINENO: result: no" >&5
16140 echo "${ECHO_T}no" >&6; }
16144 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16146 { echo "$as_me:$LINENO: checking for getpagesize" >&5
16147 echo $ECHO_N "checking for getpagesize... $ECHO_C" >&6; }
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 "confdefs.h"
16156 #include <unistd.h>
16159 main ()
16161 void* p = getpagesize
16163 return 0;
16165 _ACEOF
16166 rm -f conftest.$ac_objext
16167 if { (ac_try="$ac_compile"
16168 case "(($ac_try" in
16169 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16170 *) ac_try_echo=$ac_try;;
16171 esac
16172 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16173 (eval "$ac_compile") 2>conftest.er1
16174 ac_status=$?
16175 grep -v '^ *+' conftest.er1 >conftest.err
16176 rm -f conftest.er1
16177 cat conftest.err >&5
16178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16179 (exit $ac_status); } && {
16180 test -z "$ac_c_werror_flag" ||
16181 test ! -s conftest.err
16182 } && test -s conftest.$ac_objext; then
16184 cat >>confdefs.h <<\_ACEOF
16185 #define HAVE_GETPAGESIZE 1
16186 _ACEOF
16188 { echo "$as_me:$LINENO: result: yes" >&5
16189 echo "${ECHO_T}yes" >&6; }
16190 else
16191 echo "$as_me: failed program was:" >&5
16192 sed 's/^/| /' conftest.$ac_ext >&5
16194 { echo "$as_me:$LINENO: result: no" >&5
16195 echo "${ECHO_T}no" >&6; }
16199 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16201 for ac_prog in true
16203 # Extract the first word of "$ac_prog", so it can be a program name with args.
16204 set dummy $ac_prog; ac_word=$2
16205 { echo "$as_me:$LINENO: checking for $ac_word" >&5
16206 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
16207 if test "${ac_cv_prog_TRUE+set}" = set; then
16208 echo $ECHO_N "(cached) $ECHO_C" >&6
16209 else
16210 if test -n "$TRUE"; then
16211 ac_cv_prog_TRUE="$TRUE" # Let the user override the test.
16212 else
16213 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16214 for as_dir in $PATH
16216 IFS=$as_save_IFS
16217 test -z "$as_dir" && as_dir=.
16218 for ac_exec_ext in '' $ac_executable_extensions; do
16219 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16220 ac_cv_prog_TRUE="$ac_prog"
16221 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16222 break 2
16224 done
16225 done
16226 IFS=$as_save_IFS
16230 TRUE=$ac_cv_prog_TRUE
16231 if test -n "$TRUE"; then
16232 { echo "$as_me:$LINENO: result: $TRUE" >&5
16233 echo "${ECHO_T}$TRUE" >&6; }
16234 else
16235 { echo "$as_me:$LINENO: result: no" >&5
16236 echo "${ECHO_T}no" >&6; }
16240 test -n "$TRUE" && break
16241 done
16242 test -n "$TRUE" || TRUE="/bin/true"
16245 { echo "$as_me:$LINENO: checking for inet_aton in -lc" >&5
16246 echo $ECHO_N "checking for inet_aton in -lc... $ECHO_C" >&6; }
16247 if test "${ac_cv_lib_c_inet_aton+set}" = set; then
16248 echo $ECHO_N "(cached) $ECHO_C" >&6
16249 else
16250 ac_check_lib_save_LIBS=$LIBS
16251 LIBS="-lc $LIBS"
16252 cat >conftest.$ac_ext <<_ACEOF
16253 /* confdefs.h. */
16254 _ACEOF
16255 cat confdefs.h >>conftest.$ac_ext
16256 cat >>conftest.$ac_ext <<_ACEOF
16257 /* end confdefs.h. */
16259 /* Override any GCC internal prototype to avoid an error.
16260 Use char because int might match the return type of a GCC
16261 builtin and then its argument prototype would still apply. */
16262 #ifdef __cplusplus
16263 extern "C"
16264 #endif
16265 char inet_aton ();
16267 main ()
16269 return inet_aton ();
16271 return 0;
16273 _ACEOF
16274 rm -f conftest.$ac_objext conftest$ac_exeext
16275 if { (ac_try="$ac_link"
16276 case "(($ac_try" in
16277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16278 *) ac_try_echo=$ac_try;;
16279 esac
16280 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16281 (eval "$ac_link") 2>conftest.er1
16282 ac_status=$?
16283 grep -v '^ *+' conftest.er1 >conftest.err
16284 rm -f conftest.er1
16285 cat conftest.err >&5
16286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16287 (exit $ac_status); } && {
16288 test -z "$ac_c_werror_flag" ||
16289 test ! -s conftest.err
16290 } && test -s conftest$ac_exeext &&
16291 $as_test_x conftest$ac_exeext; then
16292 ac_cv_lib_c_inet_aton=yes
16293 else
16294 echo "$as_me: failed program was:" >&5
16295 sed 's/^/| /' conftest.$ac_ext >&5
16297 ac_cv_lib_c_inet_aton=no
16300 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16301 conftest$ac_exeext conftest.$ac_ext
16302 LIBS=$ac_check_lib_save_LIBS
16304 { echo "$as_me:$LINENO: result: $ac_cv_lib_c_inet_aton" >&5
16305 echo "${ECHO_T}$ac_cv_lib_c_inet_aton" >&6; }
16306 if test $ac_cv_lib_c_inet_aton = yes; then
16307 $ac_cv_prog_TRUE
16308 else
16310 { echo "$as_me:$LINENO: checking for inet_aton in -lresolv" >&5
16311 echo $ECHO_N "checking for inet_aton in -lresolv... $ECHO_C" >&6; }
16312 if test "${ac_cv_lib_resolv_inet_aton+set}" = set; then
16313 echo $ECHO_N "(cached) $ECHO_C" >&6
16314 else
16315 ac_check_lib_save_LIBS=$LIBS
16316 LIBS="-lresolv $LIBS"
16317 cat >conftest.$ac_ext <<_ACEOF
16318 /* confdefs.h. */
16319 _ACEOF
16320 cat confdefs.h >>conftest.$ac_ext
16321 cat >>conftest.$ac_ext <<_ACEOF
16322 /* end confdefs.h. */
16324 /* Override any GCC internal prototype to avoid an error.
16325 Use char because int might match the return type of a GCC
16326 builtin and then its argument prototype would still apply. */
16327 #ifdef __cplusplus
16328 extern "C"
16329 #endif
16330 char inet_aton ();
16332 main ()
16334 return inet_aton ();
16336 return 0;
16338 _ACEOF
16339 rm -f conftest.$ac_objext conftest$ac_exeext
16340 if { (ac_try="$ac_link"
16341 case "(($ac_try" in
16342 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16343 *) ac_try_echo=$ac_try;;
16344 esac
16345 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16346 (eval "$ac_link") 2>conftest.er1
16347 ac_status=$?
16348 grep -v '^ *+' conftest.er1 >conftest.err
16349 rm -f conftest.er1
16350 cat conftest.err >&5
16351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16352 (exit $ac_status); } && {
16353 test -z "$ac_c_werror_flag" ||
16354 test ! -s conftest.err
16355 } && test -s conftest$ac_exeext &&
16356 $as_test_x conftest$ac_exeext; then
16357 ac_cv_lib_resolv_inet_aton=yes
16358 else
16359 echo "$as_me: failed program was:" >&5
16360 sed 's/^/| /' conftest.$ac_ext >&5
16362 ac_cv_lib_resolv_inet_aton=no
16365 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16366 conftest$ac_exeext conftest.$ac_ext
16367 LIBS=$ac_check_lib_save_LIBS
16369 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_aton" >&5
16370 echo "${ECHO_T}$ac_cv_lib_resolv_inet_aton" >&6; }
16371 if test $ac_cv_lib_resolv_inet_aton = yes; then
16372 cat >>confdefs.h <<_ACEOF
16373 #define HAVE_LIBRESOLV 1
16374 _ACEOF
16376 LIBS="-lresolv $LIBS"
16384 # On Tru64, chflags seems to be present, but calling it will
16385 # exit Python
16386 { echo "$as_me:$LINENO: checking for chflags" >&5
16387 echo $ECHO_N "checking for chflags... $ECHO_C" >&6; }
16388 if test "$cross_compiling" = yes; then
16389 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
16390 See \`config.log' for more details." >&5
16391 echo "$as_me: error: cannot run test program while cross compiling
16392 See \`config.log' for more details." >&2;}
16393 { (exit 1); exit 1; }; }
16394 else
16395 cat >conftest.$ac_ext <<_ACEOF
16396 /* confdefs.h. */
16397 _ACEOF
16398 cat confdefs.h >>conftest.$ac_ext
16399 cat >>conftest.$ac_ext <<_ACEOF
16400 /* end confdefs.h. */
16402 #include <sys/stat.h>
16403 #include <unistd.h>
16404 int main(int argc, char*argv[])
16406 if(chflags(argv[0], 0) != 0)
16407 return 1;
16408 return 0;
16411 _ACEOF
16412 rm -f conftest$ac_exeext
16413 if { (ac_try="$ac_link"
16414 case "(($ac_try" in
16415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16416 *) ac_try_echo=$ac_try;;
16417 esac
16418 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16419 (eval "$ac_link") 2>&5
16420 ac_status=$?
16421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16422 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16423 { (case "(($ac_try" in
16424 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16425 *) ac_try_echo=$ac_try;;
16426 esac
16427 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16428 (eval "$ac_try") 2>&5
16429 ac_status=$?
16430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16431 (exit $ac_status); }; }; then
16433 cat >>confdefs.h <<\_ACEOF
16434 #define HAVE_CHFLAGS 1
16435 _ACEOF
16437 { echo "$as_me:$LINENO: result: yes" >&5
16438 echo "${ECHO_T}yes" >&6; }
16439 else
16440 echo "$as_me: program exited with status $ac_status" >&5
16441 echo "$as_me: failed program was:" >&5
16442 sed 's/^/| /' conftest.$ac_ext >&5
16444 ( exit $ac_status )
16445 { echo "$as_me:$LINENO: result: no" >&5
16446 echo "${ECHO_T}no" >&6; }
16449 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16454 { echo "$as_me:$LINENO: checking for lchflags" >&5
16455 echo $ECHO_N "checking for lchflags... $ECHO_C" >&6; }
16456 if test "$cross_compiling" = yes; then
16457 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
16458 See \`config.log' for more details." >&5
16459 echo "$as_me: error: cannot run test program while cross compiling
16460 See \`config.log' for more details." >&2;}
16461 { (exit 1); exit 1; }; }
16462 else
16463 cat >conftest.$ac_ext <<_ACEOF
16464 /* confdefs.h. */
16465 _ACEOF
16466 cat confdefs.h >>conftest.$ac_ext
16467 cat >>conftest.$ac_ext <<_ACEOF
16468 /* end confdefs.h. */
16470 #include <sys/stat.h>
16471 #include <unistd.h>
16472 int main(int argc, char*argv[])
16474 if(lchflags(argv[0], 0) != 0)
16475 return 1;
16476 return 0;
16479 _ACEOF
16480 rm -f conftest$ac_exeext
16481 if { (ac_try="$ac_link"
16482 case "(($ac_try" in
16483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16484 *) ac_try_echo=$ac_try;;
16485 esac
16486 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16487 (eval "$ac_link") 2>&5
16488 ac_status=$?
16489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16490 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16491 { (case "(($ac_try" in
16492 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16493 *) ac_try_echo=$ac_try;;
16494 esac
16495 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16496 (eval "$ac_try") 2>&5
16497 ac_status=$?
16498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16499 (exit $ac_status); }; }; then
16501 cat >>confdefs.h <<\_ACEOF
16502 #define HAVE_LCHFLAGS 1
16503 _ACEOF
16505 { echo "$as_me:$LINENO: result: yes" >&5
16506 echo "${ECHO_T}yes" >&6; }
16507 else
16508 echo "$as_me: program exited with status $ac_status" >&5
16509 echo "$as_me: failed program was:" >&5
16510 sed 's/^/| /' conftest.$ac_ext >&5
16512 ( exit $ac_status )
16513 { echo "$as_me:$LINENO: result: no" >&5
16514 echo "${ECHO_T}no" >&6; }
16517 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16522 case $ac_sys_system/$ac_sys_release in
16523 Darwin/*)
16524 _CUR_CFLAGS="${CFLAGS}"
16525 _CUR_LDFLAGS="${LDFLAGS}"
16526 CFLAGS="${CFLAGS} -Wl,-search_paths_first"
16527 LDFLAGS="${LDFLAGS} -Wl,-search_paths_first -L/usr/local/lib"
16529 esac
16531 { echo "$as_me:$LINENO: checking for inflateCopy in -lz" >&5
16532 echo $ECHO_N "checking for inflateCopy in -lz... $ECHO_C" >&6; }
16533 if test "${ac_cv_lib_z_inflateCopy+set}" = set; then
16534 echo $ECHO_N "(cached) $ECHO_C" >&6
16535 else
16536 ac_check_lib_save_LIBS=$LIBS
16537 LIBS="-lz $LIBS"
16538 cat >conftest.$ac_ext <<_ACEOF
16539 /* confdefs.h. */
16540 _ACEOF
16541 cat confdefs.h >>conftest.$ac_ext
16542 cat >>conftest.$ac_ext <<_ACEOF
16543 /* end confdefs.h. */
16545 /* Override any GCC internal prototype to avoid an error.
16546 Use char because int might match the return type of a GCC
16547 builtin and then its argument prototype would still apply. */
16548 #ifdef __cplusplus
16549 extern "C"
16550 #endif
16551 char inflateCopy ();
16553 main ()
16555 return inflateCopy ();
16557 return 0;
16559 _ACEOF
16560 rm -f conftest.$ac_objext conftest$ac_exeext
16561 if { (ac_try="$ac_link"
16562 case "(($ac_try" in
16563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16564 *) ac_try_echo=$ac_try;;
16565 esac
16566 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16567 (eval "$ac_link") 2>conftest.er1
16568 ac_status=$?
16569 grep -v '^ *+' conftest.er1 >conftest.err
16570 rm -f conftest.er1
16571 cat conftest.err >&5
16572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16573 (exit $ac_status); } && {
16574 test -z "$ac_c_werror_flag" ||
16575 test ! -s conftest.err
16576 } && test -s conftest$ac_exeext &&
16577 $as_test_x conftest$ac_exeext; then
16578 ac_cv_lib_z_inflateCopy=yes
16579 else
16580 echo "$as_me: failed program was:" >&5
16581 sed 's/^/| /' conftest.$ac_ext >&5
16583 ac_cv_lib_z_inflateCopy=no
16586 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16587 conftest$ac_exeext conftest.$ac_ext
16588 LIBS=$ac_check_lib_save_LIBS
16590 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_inflateCopy" >&5
16591 echo "${ECHO_T}$ac_cv_lib_z_inflateCopy" >&6; }
16592 if test $ac_cv_lib_z_inflateCopy = yes; then
16594 cat >>confdefs.h <<\_ACEOF
16595 #define HAVE_ZLIB_COPY 1
16596 _ACEOF
16601 case $ac_sys_system/$ac_sys_release in
16602 Darwin/*)
16603 CFLAGS="${_CUR_CFLAGS}"
16604 LDFLAGS="${_CUR_LDFLAGS}"
16606 esac
16608 { echo "$as_me:$LINENO: checking for hstrerror" >&5
16609 echo $ECHO_N "checking for hstrerror... $ECHO_C" >&6; }
16610 cat >conftest.$ac_ext <<_ACEOF
16611 /* confdefs.h. */
16612 _ACEOF
16613 cat confdefs.h >>conftest.$ac_ext
16614 cat >>conftest.$ac_ext <<_ACEOF
16615 /* end confdefs.h. */
16617 #include "confdefs.h"
16618 #include <netdb.h>
16621 main ()
16623 void* p = hstrerror; hstrerror(0)
16625 return 0;
16627 _ACEOF
16628 rm -f conftest.$ac_objext conftest$ac_exeext
16629 if { (ac_try="$ac_link"
16630 case "(($ac_try" in
16631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16632 *) ac_try_echo=$ac_try;;
16633 esac
16634 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16635 (eval "$ac_link") 2>conftest.er1
16636 ac_status=$?
16637 grep -v '^ *+' conftest.er1 >conftest.err
16638 rm -f conftest.er1
16639 cat conftest.err >&5
16640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16641 (exit $ac_status); } && {
16642 test -z "$ac_c_werror_flag" ||
16643 test ! -s conftest.err
16644 } && test -s conftest$ac_exeext &&
16645 $as_test_x conftest$ac_exeext; then
16647 cat >>confdefs.h <<\_ACEOF
16648 #define HAVE_HSTRERROR 1
16649 _ACEOF
16651 { echo "$as_me:$LINENO: result: yes" >&5
16652 echo "${ECHO_T}yes" >&6; }
16653 else
16654 echo "$as_me: failed program was:" >&5
16655 sed 's/^/| /' conftest.$ac_ext >&5
16657 { echo "$as_me:$LINENO: result: no" >&5
16658 echo "${ECHO_T}no" >&6; }
16662 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16663 conftest$ac_exeext conftest.$ac_ext
16665 { echo "$as_me:$LINENO: checking for inet_aton" >&5
16666 echo $ECHO_N "checking for inet_aton... $ECHO_C" >&6; }
16667 cat >conftest.$ac_ext <<_ACEOF
16668 /* confdefs.h. */
16669 _ACEOF
16670 cat confdefs.h >>conftest.$ac_ext
16671 cat >>conftest.$ac_ext <<_ACEOF
16672 /* end confdefs.h. */
16674 #include "confdefs.h"
16675 #include <sys/types.h>
16676 #include <sys/socket.h>
16677 #include <netinet/in.h>
16678 #include <arpa/inet.h>
16681 main ()
16683 void* p = inet_aton;inet_aton(0,0)
16685 return 0;
16687 _ACEOF
16688 rm -f conftest.$ac_objext conftest$ac_exeext
16689 if { (ac_try="$ac_link"
16690 case "(($ac_try" in
16691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16692 *) ac_try_echo=$ac_try;;
16693 esac
16694 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16695 (eval "$ac_link") 2>conftest.er1
16696 ac_status=$?
16697 grep -v '^ *+' conftest.er1 >conftest.err
16698 rm -f conftest.er1
16699 cat conftest.err >&5
16700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16701 (exit $ac_status); } && {
16702 test -z "$ac_c_werror_flag" ||
16703 test ! -s conftest.err
16704 } && test -s conftest$ac_exeext &&
16705 $as_test_x conftest$ac_exeext; then
16707 cat >>confdefs.h <<\_ACEOF
16708 #define HAVE_INET_ATON 1
16709 _ACEOF
16711 { echo "$as_me:$LINENO: result: yes" >&5
16712 echo "${ECHO_T}yes" >&6; }
16713 else
16714 echo "$as_me: failed program was:" >&5
16715 sed 's/^/| /' conftest.$ac_ext >&5
16717 { echo "$as_me:$LINENO: result: no" >&5
16718 echo "${ECHO_T}no" >&6; }
16722 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16723 conftest$ac_exeext conftest.$ac_ext
16725 { echo "$as_me:$LINENO: checking for inet_pton" >&5
16726 echo $ECHO_N "checking for inet_pton... $ECHO_C" >&6; }
16727 cat >conftest.$ac_ext <<_ACEOF
16728 /* confdefs.h. */
16729 _ACEOF
16730 cat confdefs.h >>conftest.$ac_ext
16731 cat >>conftest.$ac_ext <<_ACEOF
16732 /* end confdefs.h. */
16734 #include "confdefs.h"
16735 #include <sys/types.h>
16736 #include <sys/socket.h>
16737 #include <netinet/in.h>
16738 #include <arpa/inet.h>
16741 main ()
16743 void* p = inet_pton
16745 return 0;
16747 _ACEOF
16748 rm -f conftest.$ac_objext
16749 if { (ac_try="$ac_compile"
16750 case "(($ac_try" in
16751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16752 *) ac_try_echo=$ac_try;;
16753 esac
16754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16755 (eval "$ac_compile") 2>conftest.er1
16756 ac_status=$?
16757 grep -v '^ *+' conftest.er1 >conftest.err
16758 rm -f conftest.er1
16759 cat conftest.err >&5
16760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16761 (exit $ac_status); } && {
16762 test -z "$ac_c_werror_flag" ||
16763 test ! -s conftest.err
16764 } && test -s conftest.$ac_objext; then
16766 cat >>confdefs.h <<\_ACEOF
16767 #define HAVE_INET_PTON 1
16768 _ACEOF
16770 { echo "$as_me:$LINENO: result: yes" >&5
16771 echo "${ECHO_T}yes" >&6; }
16772 else
16773 echo "$as_me: failed program was:" >&5
16774 sed 's/^/| /' conftest.$ac_ext >&5
16776 { echo "$as_me:$LINENO: result: no" >&5
16777 echo "${ECHO_T}no" >&6; }
16781 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16783 # On some systems, setgroups is in unistd.h, on others, in grp.h
16784 { echo "$as_me:$LINENO: checking for setgroups" >&5
16785 echo $ECHO_N "checking for setgroups... $ECHO_C" >&6; }
16786 cat >conftest.$ac_ext <<_ACEOF
16787 /* confdefs.h. */
16788 _ACEOF
16789 cat confdefs.h >>conftest.$ac_ext
16790 cat >>conftest.$ac_ext <<_ACEOF
16791 /* end confdefs.h. */
16793 #include "confdefs.h"
16794 #include <unistd.h>
16795 #ifdef HAVE_GRP_H
16796 #include <grp.h>
16797 #endif
16800 main ()
16802 void* p = setgroups
16804 return 0;
16806 _ACEOF
16807 rm -f conftest.$ac_objext
16808 if { (ac_try="$ac_compile"
16809 case "(($ac_try" in
16810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16811 *) ac_try_echo=$ac_try;;
16812 esac
16813 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16814 (eval "$ac_compile") 2>conftest.er1
16815 ac_status=$?
16816 grep -v '^ *+' conftest.er1 >conftest.err
16817 rm -f conftest.er1
16818 cat conftest.err >&5
16819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16820 (exit $ac_status); } && {
16821 test -z "$ac_c_werror_flag" ||
16822 test ! -s conftest.err
16823 } && test -s conftest.$ac_objext; then
16825 cat >>confdefs.h <<\_ACEOF
16826 #define HAVE_SETGROUPS 1
16827 _ACEOF
16829 { echo "$as_me:$LINENO: result: yes" >&5
16830 echo "${ECHO_T}yes" >&6; }
16831 else
16832 echo "$as_me: failed program was:" >&5
16833 sed 's/^/| /' conftest.$ac_ext >&5
16835 { echo "$as_me:$LINENO: result: no" >&5
16836 echo "${ECHO_T}no" >&6; }
16840 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16842 # check for openpty and forkpty
16845 for ac_func in openpty
16847 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16848 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16849 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16850 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16851 echo $ECHO_N "(cached) $ECHO_C" >&6
16852 else
16853 cat >conftest.$ac_ext <<_ACEOF
16854 /* confdefs.h. */
16855 _ACEOF
16856 cat confdefs.h >>conftest.$ac_ext
16857 cat >>conftest.$ac_ext <<_ACEOF
16858 /* end confdefs.h. */
16859 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16860 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16861 #define $ac_func innocuous_$ac_func
16863 /* System header to define __stub macros and hopefully few prototypes,
16864 which can conflict with char $ac_func (); below.
16865 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16866 <limits.h> exists even on freestanding compilers. */
16868 #ifdef __STDC__
16869 # include <limits.h>
16870 #else
16871 # include <assert.h>
16872 #endif
16874 #undef $ac_func
16876 /* Override any GCC internal prototype to avoid an error.
16877 Use char because int might match the return type of a GCC
16878 builtin and then its argument prototype would still apply. */
16879 #ifdef __cplusplus
16880 extern "C"
16881 #endif
16882 char $ac_func ();
16883 /* The GNU C library defines this for functions which it implements
16884 to always fail with ENOSYS. Some functions are actually named
16885 something starting with __ and the normal name is an alias. */
16886 #if defined __stub_$ac_func || defined __stub___$ac_func
16887 choke me
16888 #endif
16891 main ()
16893 return $ac_func ();
16895 return 0;
16897 _ACEOF
16898 rm -f conftest.$ac_objext conftest$ac_exeext
16899 if { (ac_try="$ac_link"
16900 case "(($ac_try" in
16901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16902 *) ac_try_echo=$ac_try;;
16903 esac
16904 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16905 (eval "$ac_link") 2>conftest.er1
16906 ac_status=$?
16907 grep -v '^ *+' conftest.er1 >conftest.err
16908 rm -f conftest.er1
16909 cat conftest.err >&5
16910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16911 (exit $ac_status); } && {
16912 test -z "$ac_c_werror_flag" ||
16913 test ! -s conftest.err
16914 } && test -s conftest$ac_exeext &&
16915 $as_test_x conftest$ac_exeext; then
16916 eval "$as_ac_var=yes"
16917 else
16918 echo "$as_me: failed program was:" >&5
16919 sed 's/^/| /' conftest.$ac_ext >&5
16921 eval "$as_ac_var=no"
16924 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16925 conftest$ac_exeext conftest.$ac_ext
16927 ac_res=`eval echo '${'$as_ac_var'}'`
16928 { echo "$as_me:$LINENO: result: $ac_res" >&5
16929 echo "${ECHO_T}$ac_res" >&6; }
16930 if test `eval echo '${'$as_ac_var'}'` = yes; then
16931 cat >>confdefs.h <<_ACEOF
16932 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16933 _ACEOF
16935 else
16936 { echo "$as_me:$LINENO: checking for openpty in -lutil" >&5
16937 echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6; }
16938 if test "${ac_cv_lib_util_openpty+set}" = set; then
16939 echo $ECHO_N "(cached) $ECHO_C" >&6
16940 else
16941 ac_check_lib_save_LIBS=$LIBS
16942 LIBS="-lutil $LIBS"
16943 cat >conftest.$ac_ext <<_ACEOF
16944 /* confdefs.h. */
16945 _ACEOF
16946 cat confdefs.h >>conftest.$ac_ext
16947 cat >>conftest.$ac_ext <<_ACEOF
16948 /* end confdefs.h. */
16950 /* Override any GCC internal prototype to avoid an error.
16951 Use char because int might match the return type of a GCC
16952 builtin and then its argument prototype would still apply. */
16953 #ifdef __cplusplus
16954 extern "C"
16955 #endif
16956 char openpty ();
16958 main ()
16960 return openpty ();
16962 return 0;
16964 _ACEOF
16965 rm -f conftest.$ac_objext conftest$ac_exeext
16966 if { (ac_try="$ac_link"
16967 case "(($ac_try" in
16968 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16969 *) ac_try_echo=$ac_try;;
16970 esac
16971 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16972 (eval "$ac_link") 2>conftest.er1
16973 ac_status=$?
16974 grep -v '^ *+' conftest.er1 >conftest.err
16975 rm -f conftest.er1
16976 cat conftest.err >&5
16977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16978 (exit $ac_status); } && {
16979 test -z "$ac_c_werror_flag" ||
16980 test ! -s conftest.err
16981 } && test -s conftest$ac_exeext &&
16982 $as_test_x conftest$ac_exeext; then
16983 ac_cv_lib_util_openpty=yes
16984 else
16985 echo "$as_me: failed program was:" >&5
16986 sed 's/^/| /' conftest.$ac_ext >&5
16988 ac_cv_lib_util_openpty=no
16991 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16992 conftest$ac_exeext conftest.$ac_ext
16993 LIBS=$ac_check_lib_save_LIBS
16995 { echo "$as_me:$LINENO: result: $ac_cv_lib_util_openpty" >&5
16996 echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6; }
16997 if test $ac_cv_lib_util_openpty = yes; then
16998 cat >>confdefs.h <<\_ACEOF
16999 #define HAVE_OPENPTY 1
17000 _ACEOF
17001 LIBS="$LIBS -lutil"
17002 else
17003 { echo "$as_me:$LINENO: checking for openpty in -lbsd" >&5
17004 echo $ECHO_N "checking for openpty in -lbsd... $ECHO_C" >&6; }
17005 if test "${ac_cv_lib_bsd_openpty+set}" = set; then
17006 echo $ECHO_N "(cached) $ECHO_C" >&6
17007 else
17008 ac_check_lib_save_LIBS=$LIBS
17009 LIBS="-lbsd $LIBS"
17010 cat >conftest.$ac_ext <<_ACEOF
17011 /* confdefs.h. */
17012 _ACEOF
17013 cat confdefs.h >>conftest.$ac_ext
17014 cat >>conftest.$ac_ext <<_ACEOF
17015 /* end confdefs.h. */
17017 /* Override any GCC internal prototype to avoid an error.
17018 Use char because int might match the return type of a GCC
17019 builtin and then its argument prototype would still apply. */
17020 #ifdef __cplusplus
17021 extern "C"
17022 #endif
17023 char openpty ();
17025 main ()
17027 return openpty ();
17029 return 0;
17031 _ACEOF
17032 rm -f conftest.$ac_objext conftest$ac_exeext
17033 if { (ac_try="$ac_link"
17034 case "(($ac_try" in
17035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17036 *) ac_try_echo=$ac_try;;
17037 esac
17038 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17039 (eval "$ac_link") 2>conftest.er1
17040 ac_status=$?
17041 grep -v '^ *+' conftest.er1 >conftest.err
17042 rm -f conftest.er1
17043 cat conftest.err >&5
17044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17045 (exit $ac_status); } && {
17046 test -z "$ac_c_werror_flag" ||
17047 test ! -s conftest.err
17048 } && test -s conftest$ac_exeext &&
17049 $as_test_x conftest$ac_exeext; then
17050 ac_cv_lib_bsd_openpty=yes
17051 else
17052 echo "$as_me: failed program was:" >&5
17053 sed 's/^/| /' conftest.$ac_ext >&5
17055 ac_cv_lib_bsd_openpty=no
17058 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17059 conftest$ac_exeext conftest.$ac_ext
17060 LIBS=$ac_check_lib_save_LIBS
17062 { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_openpty" >&5
17063 echo "${ECHO_T}$ac_cv_lib_bsd_openpty" >&6; }
17064 if test $ac_cv_lib_bsd_openpty = yes; then
17065 cat >>confdefs.h <<\_ACEOF
17066 #define HAVE_OPENPTY 1
17067 _ACEOF
17068 LIBS="$LIBS -lbsd"
17076 done
17079 for ac_func in forkpty
17081 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17082 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17083 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17084 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17085 echo $ECHO_N "(cached) $ECHO_C" >&6
17086 else
17087 cat >conftest.$ac_ext <<_ACEOF
17088 /* confdefs.h. */
17089 _ACEOF
17090 cat confdefs.h >>conftest.$ac_ext
17091 cat >>conftest.$ac_ext <<_ACEOF
17092 /* end confdefs.h. */
17093 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17094 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17095 #define $ac_func innocuous_$ac_func
17097 /* System header to define __stub macros and hopefully few prototypes,
17098 which can conflict with char $ac_func (); below.
17099 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17100 <limits.h> exists even on freestanding compilers. */
17102 #ifdef __STDC__
17103 # include <limits.h>
17104 #else
17105 # include <assert.h>
17106 #endif
17108 #undef $ac_func
17110 /* Override any GCC internal prototype to avoid an error.
17111 Use char because int might match the return type of a GCC
17112 builtin and then its argument prototype would still apply. */
17113 #ifdef __cplusplus
17114 extern "C"
17115 #endif
17116 char $ac_func ();
17117 /* The GNU C library defines this for functions which it implements
17118 to always fail with ENOSYS. Some functions are actually named
17119 something starting with __ and the normal name is an alias. */
17120 #if defined __stub_$ac_func || defined __stub___$ac_func
17121 choke me
17122 #endif
17125 main ()
17127 return $ac_func ();
17129 return 0;
17131 _ACEOF
17132 rm -f conftest.$ac_objext conftest$ac_exeext
17133 if { (ac_try="$ac_link"
17134 case "(($ac_try" in
17135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17136 *) ac_try_echo=$ac_try;;
17137 esac
17138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17139 (eval "$ac_link") 2>conftest.er1
17140 ac_status=$?
17141 grep -v '^ *+' conftest.er1 >conftest.err
17142 rm -f conftest.er1
17143 cat conftest.err >&5
17144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17145 (exit $ac_status); } && {
17146 test -z "$ac_c_werror_flag" ||
17147 test ! -s conftest.err
17148 } && test -s conftest$ac_exeext &&
17149 $as_test_x conftest$ac_exeext; then
17150 eval "$as_ac_var=yes"
17151 else
17152 echo "$as_me: failed program was:" >&5
17153 sed 's/^/| /' conftest.$ac_ext >&5
17155 eval "$as_ac_var=no"
17158 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17159 conftest$ac_exeext conftest.$ac_ext
17161 ac_res=`eval echo '${'$as_ac_var'}'`
17162 { echo "$as_me:$LINENO: result: $ac_res" >&5
17163 echo "${ECHO_T}$ac_res" >&6; }
17164 if test `eval echo '${'$as_ac_var'}'` = yes; then
17165 cat >>confdefs.h <<_ACEOF
17166 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17167 _ACEOF
17169 else
17170 { echo "$as_me:$LINENO: checking for forkpty in -lutil" >&5
17171 echo $ECHO_N "checking for forkpty in -lutil... $ECHO_C" >&6; }
17172 if test "${ac_cv_lib_util_forkpty+set}" = set; then
17173 echo $ECHO_N "(cached) $ECHO_C" >&6
17174 else
17175 ac_check_lib_save_LIBS=$LIBS
17176 LIBS="-lutil $LIBS"
17177 cat >conftest.$ac_ext <<_ACEOF
17178 /* confdefs.h. */
17179 _ACEOF
17180 cat confdefs.h >>conftest.$ac_ext
17181 cat >>conftest.$ac_ext <<_ACEOF
17182 /* end confdefs.h. */
17184 /* Override any GCC internal prototype to avoid an error.
17185 Use char because int might match the return type of a GCC
17186 builtin and then its argument prototype would still apply. */
17187 #ifdef __cplusplus
17188 extern "C"
17189 #endif
17190 char forkpty ();
17192 main ()
17194 return forkpty ();
17196 return 0;
17198 _ACEOF
17199 rm -f conftest.$ac_objext conftest$ac_exeext
17200 if { (ac_try="$ac_link"
17201 case "(($ac_try" in
17202 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17203 *) ac_try_echo=$ac_try;;
17204 esac
17205 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17206 (eval "$ac_link") 2>conftest.er1
17207 ac_status=$?
17208 grep -v '^ *+' conftest.er1 >conftest.err
17209 rm -f conftest.er1
17210 cat conftest.err >&5
17211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17212 (exit $ac_status); } && {
17213 test -z "$ac_c_werror_flag" ||
17214 test ! -s conftest.err
17215 } && test -s conftest$ac_exeext &&
17216 $as_test_x conftest$ac_exeext; then
17217 ac_cv_lib_util_forkpty=yes
17218 else
17219 echo "$as_me: failed program was:" >&5
17220 sed 's/^/| /' conftest.$ac_ext >&5
17222 ac_cv_lib_util_forkpty=no
17225 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17226 conftest$ac_exeext conftest.$ac_ext
17227 LIBS=$ac_check_lib_save_LIBS
17229 { echo "$as_me:$LINENO: result: $ac_cv_lib_util_forkpty" >&5
17230 echo "${ECHO_T}$ac_cv_lib_util_forkpty" >&6; }
17231 if test $ac_cv_lib_util_forkpty = yes; then
17232 cat >>confdefs.h <<\_ACEOF
17233 #define HAVE_FORKPTY 1
17234 _ACEOF
17235 LIBS="$LIBS -lutil"
17236 else
17237 { echo "$as_me:$LINENO: checking for forkpty in -lbsd" >&5
17238 echo $ECHO_N "checking for forkpty in -lbsd... $ECHO_C" >&6; }
17239 if test "${ac_cv_lib_bsd_forkpty+set}" = set; then
17240 echo $ECHO_N "(cached) $ECHO_C" >&6
17241 else
17242 ac_check_lib_save_LIBS=$LIBS
17243 LIBS="-lbsd $LIBS"
17244 cat >conftest.$ac_ext <<_ACEOF
17245 /* confdefs.h. */
17246 _ACEOF
17247 cat confdefs.h >>conftest.$ac_ext
17248 cat >>conftest.$ac_ext <<_ACEOF
17249 /* end confdefs.h. */
17251 /* Override any GCC internal prototype to avoid an error.
17252 Use char because int might match the return type of a GCC
17253 builtin and then its argument prototype would still apply. */
17254 #ifdef __cplusplus
17255 extern "C"
17256 #endif
17257 char forkpty ();
17259 main ()
17261 return forkpty ();
17263 return 0;
17265 _ACEOF
17266 rm -f conftest.$ac_objext conftest$ac_exeext
17267 if { (ac_try="$ac_link"
17268 case "(($ac_try" in
17269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17270 *) ac_try_echo=$ac_try;;
17271 esac
17272 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17273 (eval "$ac_link") 2>conftest.er1
17274 ac_status=$?
17275 grep -v '^ *+' conftest.er1 >conftest.err
17276 rm -f conftest.er1
17277 cat conftest.err >&5
17278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17279 (exit $ac_status); } && {
17280 test -z "$ac_c_werror_flag" ||
17281 test ! -s conftest.err
17282 } && test -s conftest$ac_exeext &&
17283 $as_test_x conftest$ac_exeext; then
17284 ac_cv_lib_bsd_forkpty=yes
17285 else
17286 echo "$as_me: failed program was:" >&5
17287 sed 's/^/| /' conftest.$ac_ext >&5
17289 ac_cv_lib_bsd_forkpty=no
17292 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17293 conftest$ac_exeext conftest.$ac_ext
17294 LIBS=$ac_check_lib_save_LIBS
17296 { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_forkpty" >&5
17297 echo "${ECHO_T}$ac_cv_lib_bsd_forkpty" >&6; }
17298 if test $ac_cv_lib_bsd_forkpty = yes; then
17299 cat >>confdefs.h <<\_ACEOF
17300 #define HAVE_FORKPTY 1
17301 _ACEOF
17302 LIBS="$LIBS -lbsd"
17310 done
17313 # Stuff for expat.
17315 for ac_func in memmove
17317 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17318 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17319 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17320 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17321 echo $ECHO_N "(cached) $ECHO_C" >&6
17322 else
17323 cat >conftest.$ac_ext <<_ACEOF
17324 /* confdefs.h. */
17325 _ACEOF
17326 cat confdefs.h >>conftest.$ac_ext
17327 cat >>conftest.$ac_ext <<_ACEOF
17328 /* end confdefs.h. */
17329 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17330 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17331 #define $ac_func innocuous_$ac_func
17333 /* System header to define __stub macros and hopefully few prototypes,
17334 which can conflict with char $ac_func (); below.
17335 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17336 <limits.h> exists even on freestanding compilers. */
17338 #ifdef __STDC__
17339 # include <limits.h>
17340 #else
17341 # include <assert.h>
17342 #endif
17344 #undef $ac_func
17346 /* Override any GCC internal prototype to avoid an error.
17347 Use char because int might match the return type of a GCC
17348 builtin and then its argument prototype would still apply. */
17349 #ifdef __cplusplus
17350 extern "C"
17351 #endif
17352 char $ac_func ();
17353 /* The GNU C library defines this for functions which it implements
17354 to always fail with ENOSYS. Some functions are actually named
17355 something starting with __ and the normal name is an alias. */
17356 #if defined __stub_$ac_func || defined __stub___$ac_func
17357 choke me
17358 #endif
17361 main ()
17363 return $ac_func ();
17365 return 0;
17367 _ACEOF
17368 rm -f conftest.$ac_objext conftest$ac_exeext
17369 if { (ac_try="$ac_link"
17370 case "(($ac_try" in
17371 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17372 *) ac_try_echo=$ac_try;;
17373 esac
17374 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17375 (eval "$ac_link") 2>conftest.er1
17376 ac_status=$?
17377 grep -v '^ *+' conftest.er1 >conftest.err
17378 rm -f conftest.er1
17379 cat conftest.err >&5
17380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17381 (exit $ac_status); } && {
17382 test -z "$ac_c_werror_flag" ||
17383 test ! -s conftest.err
17384 } && test -s conftest$ac_exeext &&
17385 $as_test_x conftest$ac_exeext; then
17386 eval "$as_ac_var=yes"
17387 else
17388 echo "$as_me: failed program was:" >&5
17389 sed 's/^/| /' conftest.$ac_ext >&5
17391 eval "$as_ac_var=no"
17394 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17395 conftest$ac_exeext conftest.$ac_ext
17397 ac_res=`eval echo '${'$as_ac_var'}'`
17398 { echo "$as_me:$LINENO: result: $ac_res" >&5
17399 echo "${ECHO_T}$ac_res" >&6; }
17400 if test `eval echo '${'$as_ac_var'}'` = yes; then
17401 cat >>confdefs.h <<_ACEOF
17402 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17403 _ACEOF
17406 done
17409 # check for long file support functions
17416 for ac_func in fseek64 fseeko fstatvfs ftell64 ftello statvfs
17418 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17419 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17420 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17421 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17422 echo $ECHO_N "(cached) $ECHO_C" >&6
17423 else
17424 cat >conftest.$ac_ext <<_ACEOF
17425 /* confdefs.h. */
17426 _ACEOF
17427 cat confdefs.h >>conftest.$ac_ext
17428 cat >>conftest.$ac_ext <<_ACEOF
17429 /* end confdefs.h. */
17430 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17431 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17432 #define $ac_func innocuous_$ac_func
17434 /* System header to define __stub macros and hopefully few prototypes,
17435 which can conflict with char $ac_func (); below.
17436 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17437 <limits.h> exists even on freestanding compilers. */
17439 #ifdef __STDC__
17440 # include <limits.h>
17441 #else
17442 # include <assert.h>
17443 #endif
17445 #undef $ac_func
17447 /* Override any GCC internal prototype to avoid an error.
17448 Use char because int might match the return type of a GCC
17449 builtin and then its argument prototype would still apply. */
17450 #ifdef __cplusplus
17451 extern "C"
17452 #endif
17453 char $ac_func ();
17454 /* The GNU C library defines this for functions which it implements
17455 to always fail with ENOSYS. Some functions are actually named
17456 something starting with __ and the normal name is an alias. */
17457 #if defined __stub_$ac_func || defined __stub___$ac_func
17458 choke me
17459 #endif
17462 main ()
17464 return $ac_func ();
17466 return 0;
17468 _ACEOF
17469 rm -f conftest.$ac_objext conftest$ac_exeext
17470 if { (ac_try="$ac_link"
17471 case "(($ac_try" in
17472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17473 *) ac_try_echo=$ac_try;;
17474 esac
17475 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17476 (eval "$ac_link") 2>conftest.er1
17477 ac_status=$?
17478 grep -v '^ *+' conftest.er1 >conftest.err
17479 rm -f conftest.er1
17480 cat conftest.err >&5
17481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17482 (exit $ac_status); } && {
17483 test -z "$ac_c_werror_flag" ||
17484 test ! -s conftest.err
17485 } && test -s conftest$ac_exeext &&
17486 $as_test_x conftest$ac_exeext; then
17487 eval "$as_ac_var=yes"
17488 else
17489 echo "$as_me: failed program was:" >&5
17490 sed 's/^/| /' conftest.$ac_ext >&5
17492 eval "$as_ac_var=no"
17495 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17496 conftest$ac_exeext conftest.$ac_ext
17498 ac_res=`eval echo '${'$as_ac_var'}'`
17499 { echo "$as_me:$LINENO: result: $ac_res" >&5
17500 echo "${ECHO_T}$ac_res" >&6; }
17501 if test `eval echo '${'$as_ac_var'}'` = yes; then
17502 cat >>confdefs.h <<_ACEOF
17503 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17504 _ACEOF
17507 done
17513 for ac_func in dup2 getcwd strdup
17515 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17516 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17517 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17518 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17519 echo $ECHO_N "(cached) $ECHO_C" >&6
17520 else
17521 cat >conftest.$ac_ext <<_ACEOF
17522 /* confdefs.h. */
17523 _ACEOF
17524 cat confdefs.h >>conftest.$ac_ext
17525 cat >>conftest.$ac_ext <<_ACEOF
17526 /* end confdefs.h. */
17527 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17528 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17529 #define $ac_func innocuous_$ac_func
17531 /* System header to define __stub macros and hopefully few prototypes,
17532 which can conflict with char $ac_func (); below.
17533 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17534 <limits.h> exists even on freestanding compilers. */
17536 #ifdef __STDC__
17537 # include <limits.h>
17538 #else
17539 # include <assert.h>
17540 #endif
17542 #undef $ac_func
17544 /* Override any GCC internal prototype to avoid an error.
17545 Use char because int might match the return type of a GCC
17546 builtin and then its argument prototype would still apply. */
17547 #ifdef __cplusplus
17548 extern "C"
17549 #endif
17550 char $ac_func ();
17551 /* The GNU C library defines this for functions which it implements
17552 to always fail with ENOSYS. Some functions are actually named
17553 something starting with __ and the normal name is an alias. */
17554 #if defined __stub_$ac_func || defined __stub___$ac_func
17555 choke me
17556 #endif
17559 main ()
17561 return $ac_func ();
17563 return 0;
17565 _ACEOF
17566 rm -f conftest.$ac_objext conftest$ac_exeext
17567 if { (ac_try="$ac_link"
17568 case "(($ac_try" in
17569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17570 *) ac_try_echo=$ac_try;;
17571 esac
17572 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17573 (eval "$ac_link") 2>conftest.er1
17574 ac_status=$?
17575 grep -v '^ *+' conftest.er1 >conftest.err
17576 rm -f conftest.er1
17577 cat conftest.err >&5
17578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17579 (exit $ac_status); } && {
17580 test -z "$ac_c_werror_flag" ||
17581 test ! -s conftest.err
17582 } && test -s conftest$ac_exeext &&
17583 $as_test_x conftest$ac_exeext; then
17584 eval "$as_ac_var=yes"
17585 else
17586 echo "$as_me: failed program was:" >&5
17587 sed 's/^/| /' conftest.$ac_ext >&5
17589 eval "$as_ac_var=no"
17592 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17593 conftest$ac_exeext conftest.$ac_ext
17595 ac_res=`eval echo '${'$as_ac_var'}'`
17596 { echo "$as_me:$LINENO: result: $ac_res" >&5
17597 echo "${ECHO_T}$ac_res" >&6; }
17598 if test `eval echo '${'$as_ac_var'}'` = yes; then
17599 cat >>confdefs.h <<_ACEOF
17600 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17601 _ACEOF
17603 else
17604 case " $LIBOBJS " in
17605 *" $ac_func.$ac_objext "* ) ;;
17606 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
17608 esac
17611 done
17615 for ac_func in getpgrp
17617 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17618 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17619 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17620 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17621 echo $ECHO_N "(cached) $ECHO_C" >&6
17622 else
17623 cat >conftest.$ac_ext <<_ACEOF
17624 /* confdefs.h. */
17625 _ACEOF
17626 cat confdefs.h >>conftest.$ac_ext
17627 cat >>conftest.$ac_ext <<_ACEOF
17628 /* end confdefs.h. */
17629 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17630 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17631 #define $ac_func innocuous_$ac_func
17633 /* System header to define __stub macros and hopefully few prototypes,
17634 which can conflict with char $ac_func (); below.
17635 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17636 <limits.h> exists even on freestanding compilers. */
17638 #ifdef __STDC__
17639 # include <limits.h>
17640 #else
17641 # include <assert.h>
17642 #endif
17644 #undef $ac_func
17646 /* Override any GCC internal prototype to avoid an error.
17647 Use char because int might match the return type of a GCC
17648 builtin and then its argument prototype would still apply. */
17649 #ifdef __cplusplus
17650 extern "C"
17651 #endif
17652 char $ac_func ();
17653 /* The GNU C library defines this for functions which it implements
17654 to always fail with ENOSYS. Some functions are actually named
17655 something starting with __ and the normal name is an alias. */
17656 #if defined __stub_$ac_func || defined __stub___$ac_func
17657 choke me
17658 #endif
17661 main ()
17663 return $ac_func ();
17665 return 0;
17667 _ACEOF
17668 rm -f conftest.$ac_objext conftest$ac_exeext
17669 if { (ac_try="$ac_link"
17670 case "(($ac_try" in
17671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17672 *) ac_try_echo=$ac_try;;
17673 esac
17674 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17675 (eval "$ac_link") 2>conftest.er1
17676 ac_status=$?
17677 grep -v '^ *+' conftest.er1 >conftest.err
17678 rm -f conftest.er1
17679 cat conftest.err >&5
17680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17681 (exit $ac_status); } && {
17682 test -z "$ac_c_werror_flag" ||
17683 test ! -s conftest.err
17684 } && test -s conftest$ac_exeext &&
17685 $as_test_x conftest$ac_exeext; then
17686 eval "$as_ac_var=yes"
17687 else
17688 echo "$as_me: failed program was:" >&5
17689 sed 's/^/| /' conftest.$ac_ext >&5
17691 eval "$as_ac_var=no"
17694 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17695 conftest$ac_exeext conftest.$ac_ext
17697 ac_res=`eval echo '${'$as_ac_var'}'`
17698 { echo "$as_me:$LINENO: result: $ac_res" >&5
17699 echo "${ECHO_T}$ac_res" >&6; }
17700 if test `eval echo '${'$as_ac_var'}'` = yes; then
17701 cat >>confdefs.h <<_ACEOF
17702 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17703 _ACEOF
17704 cat >conftest.$ac_ext <<_ACEOF
17705 /* confdefs.h. */
17706 _ACEOF
17707 cat confdefs.h >>conftest.$ac_ext
17708 cat >>conftest.$ac_ext <<_ACEOF
17709 /* end confdefs.h. */
17710 #include <unistd.h>
17712 main ()
17714 getpgrp(0);
17716 return 0;
17718 _ACEOF
17719 rm -f conftest.$ac_objext
17720 if { (ac_try="$ac_compile"
17721 case "(($ac_try" in
17722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17723 *) ac_try_echo=$ac_try;;
17724 esac
17725 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17726 (eval "$ac_compile") 2>conftest.er1
17727 ac_status=$?
17728 grep -v '^ *+' conftest.er1 >conftest.err
17729 rm -f conftest.er1
17730 cat conftest.err >&5
17731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17732 (exit $ac_status); } && {
17733 test -z "$ac_c_werror_flag" ||
17734 test ! -s conftest.err
17735 } && test -s conftest.$ac_objext; then
17737 cat >>confdefs.h <<\_ACEOF
17738 #define GETPGRP_HAVE_ARG 1
17739 _ACEOF
17742 else
17743 echo "$as_me: failed program was:" >&5
17744 sed 's/^/| /' conftest.$ac_ext >&5
17749 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17752 done
17755 for ac_func in setpgrp
17757 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17758 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17759 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17760 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17761 echo $ECHO_N "(cached) $ECHO_C" >&6
17762 else
17763 cat >conftest.$ac_ext <<_ACEOF
17764 /* confdefs.h. */
17765 _ACEOF
17766 cat confdefs.h >>conftest.$ac_ext
17767 cat >>conftest.$ac_ext <<_ACEOF
17768 /* end confdefs.h. */
17769 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17770 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17771 #define $ac_func innocuous_$ac_func
17773 /* System header to define __stub macros and hopefully few prototypes,
17774 which can conflict with char $ac_func (); below.
17775 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17776 <limits.h> exists even on freestanding compilers. */
17778 #ifdef __STDC__
17779 # include <limits.h>
17780 #else
17781 # include <assert.h>
17782 #endif
17784 #undef $ac_func
17786 /* Override any GCC internal prototype to avoid an error.
17787 Use char because int might match the return type of a GCC
17788 builtin and then its argument prototype would still apply. */
17789 #ifdef __cplusplus
17790 extern "C"
17791 #endif
17792 char $ac_func ();
17793 /* The GNU C library defines this for functions which it implements
17794 to always fail with ENOSYS. Some functions are actually named
17795 something starting with __ and the normal name is an alias. */
17796 #if defined __stub_$ac_func || defined __stub___$ac_func
17797 choke me
17798 #endif
17801 main ()
17803 return $ac_func ();
17805 return 0;
17807 _ACEOF
17808 rm -f conftest.$ac_objext conftest$ac_exeext
17809 if { (ac_try="$ac_link"
17810 case "(($ac_try" in
17811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17812 *) ac_try_echo=$ac_try;;
17813 esac
17814 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17815 (eval "$ac_link") 2>conftest.er1
17816 ac_status=$?
17817 grep -v '^ *+' conftest.er1 >conftest.err
17818 rm -f conftest.er1
17819 cat conftest.err >&5
17820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17821 (exit $ac_status); } && {
17822 test -z "$ac_c_werror_flag" ||
17823 test ! -s conftest.err
17824 } && test -s conftest$ac_exeext &&
17825 $as_test_x conftest$ac_exeext; then
17826 eval "$as_ac_var=yes"
17827 else
17828 echo "$as_me: failed program was:" >&5
17829 sed 's/^/| /' conftest.$ac_ext >&5
17831 eval "$as_ac_var=no"
17834 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17835 conftest$ac_exeext conftest.$ac_ext
17837 ac_res=`eval echo '${'$as_ac_var'}'`
17838 { echo "$as_me:$LINENO: result: $ac_res" >&5
17839 echo "${ECHO_T}$ac_res" >&6; }
17840 if test `eval echo '${'$as_ac_var'}'` = yes; then
17841 cat >>confdefs.h <<_ACEOF
17842 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17843 _ACEOF
17844 cat >conftest.$ac_ext <<_ACEOF
17845 /* confdefs.h. */
17846 _ACEOF
17847 cat confdefs.h >>conftest.$ac_ext
17848 cat >>conftest.$ac_ext <<_ACEOF
17849 /* end confdefs.h. */
17850 #include <unistd.h>
17852 main ()
17854 setpgrp(0,0);
17856 return 0;
17858 _ACEOF
17859 rm -f conftest.$ac_objext
17860 if { (ac_try="$ac_compile"
17861 case "(($ac_try" in
17862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17863 *) ac_try_echo=$ac_try;;
17864 esac
17865 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17866 (eval "$ac_compile") 2>conftest.er1
17867 ac_status=$?
17868 grep -v '^ *+' conftest.er1 >conftest.err
17869 rm -f conftest.er1
17870 cat conftest.err >&5
17871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17872 (exit $ac_status); } && {
17873 test -z "$ac_c_werror_flag" ||
17874 test ! -s conftest.err
17875 } && test -s conftest.$ac_objext; then
17877 cat >>confdefs.h <<\_ACEOF
17878 #define SETPGRP_HAVE_ARG 1
17879 _ACEOF
17882 else
17883 echo "$as_me: failed program was:" >&5
17884 sed 's/^/| /' conftest.$ac_ext >&5
17889 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17892 done
17895 for ac_func in gettimeofday
17897 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17898 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17899 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17900 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17901 echo $ECHO_N "(cached) $ECHO_C" >&6
17902 else
17903 cat >conftest.$ac_ext <<_ACEOF
17904 /* confdefs.h. */
17905 _ACEOF
17906 cat confdefs.h >>conftest.$ac_ext
17907 cat >>conftest.$ac_ext <<_ACEOF
17908 /* end confdefs.h. */
17909 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17910 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17911 #define $ac_func innocuous_$ac_func
17913 /* System header to define __stub macros and hopefully few prototypes,
17914 which can conflict with char $ac_func (); below.
17915 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17916 <limits.h> exists even on freestanding compilers. */
17918 #ifdef __STDC__
17919 # include <limits.h>
17920 #else
17921 # include <assert.h>
17922 #endif
17924 #undef $ac_func
17926 /* Override any GCC internal prototype to avoid an error.
17927 Use char because int might match the return type of a GCC
17928 builtin and then its argument prototype would still apply. */
17929 #ifdef __cplusplus
17930 extern "C"
17931 #endif
17932 char $ac_func ();
17933 /* The GNU C library defines this for functions which it implements
17934 to always fail with ENOSYS. Some functions are actually named
17935 something starting with __ and the normal name is an alias. */
17936 #if defined __stub_$ac_func || defined __stub___$ac_func
17937 choke me
17938 #endif
17941 main ()
17943 return $ac_func ();
17945 return 0;
17947 _ACEOF
17948 rm -f conftest.$ac_objext conftest$ac_exeext
17949 if { (ac_try="$ac_link"
17950 case "(($ac_try" in
17951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17952 *) ac_try_echo=$ac_try;;
17953 esac
17954 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17955 (eval "$ac_link") 2>conftest.er1
17956 ac_status=$?
17957 grep -v '^ *+' conftest.er1 >conftest.err
17958 rm -f conftest.er1
17959 cat conftest.err >&5
17960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17961 (exit $ac_status); } && {
17962 test -z "$ac_c_werror_flag" ||
17963 test ! -s conftest.err
17964 } && test -s conftest$ac_exeext &&
17965 $as_test_x conftest$ac_exeext; then
17966 eval "$as_ac_var=yes"
17967 else
17968 echo "$as_me: failed program was:" >&5
17969 sed 's/^/| /' conftest.$ac_ext >&5
17971 eval "$as_ac_var=no"
17974 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17975 conftest$ac_exeext conftest.$ac_ext
17977 ac_res=`eval echo '${'$as_ac_var'}'`
17978 { echo "$as_me:$LINENO: result: $ac_res" >&5
17979 echo "${ECHO_T}$ac_res" >&6; }
17980 if test `eval echo '${'$as_ac_var'}'` = yes; then
17981 cat >>confdefs.h <<_ACEOF
17982 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17983 _ACEOF
17984 cat >conftest.$ac_ext <<_ACEOF
17985 /* confdefs.h. */
17986 _ACEOF
17987 cat confdefs.h >>conftest.$ac_ext
17988 cat >>conftest.$ac_ext <<_ACEOF
17989 /* end confdefs.h. */
17990 #include <sys/time.h>
17992 main ()
17994 gettimeofday((struct timeval*)0,(struct timezone*)0);
17996 return 0;
17998 _ACEOF
17999 rm -f conftest.$ac_objext
18000 if { (ac_try="$ac_compile"
18001 case "(($ac_try" in
18002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18003 *) ac_try_echo=$ac_try;;
18004 esac
18005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18006 (eval "$ac_compile") 2>conftest.er1
18007 ac_status=$?
18008 grep -v '^ *+' conftest.er1 >conftest.err
18009 rm -f conftest.er1
18010 cat conftest.err >&5
18011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18012 (exit $ac_status); } && {
18013 test -z "$ac_c_werror_flag" ||
18014 test ! -s conftest.err
18015 } && test -s conftest.$ac_objext; then
18017 else
18018 echo "$as_me: failed program was:" >&5
18019 sed 's/^/| /' conftest.$ac_ext >&5
18022 cat >>confdefs.h <<\_ACEOF
18023 #define GETTIMEOFDAY_NO_TZ 1
18024 _ACEOF
18029 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18032 done
18035 { echo "$as_me:$LINENO: checking for major" >&5
18036 echo $ECHO_N "checking for major... $ECHO_C" >&6; }
18037 cat >conftest.$ac_ext <<_ACEOF
18038 /* confdefs.h. */
18039 _ACEOF
18040 cat confdefs.h >>conftest.$ac_ext
18041 cat >>conftest.$ac_ext <<_ACEOF
18042 /* end confdefs.h. */
18044 #if defined(MAJOR_IN_MKDEV)
18045 #include <sys/mkdev.h>
18046 #elif defined(MAJOR_IN_SYSMACROS)
18047 #include <sys/sysmacros.h>
18048 #else
18049 #include <sys/types.h>
18050 #endif
18053 main ()
18056 makedev(major(0),minor(0));
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
18082 cat >>confdefs.h <<\_ACEOF
18083 #define HAVE_DEVICE_MACROS 1
18084 _ACEOF
18086 { echo "$as_me:$LINENO: result: yes" >&5
18087 echo "${ECHO_T}yes" >&6; }
18089 else
18090 echo "$as_me: failed program was:" >&5
18091 sed 's/^/| /' conftest.$ac_ext >&5
18094 { echo "$as_me:$LINENO: result: no" >&5
18095 echo "${ECHO_T}no" >&6; }
18099 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18100 conftest$ac_exeext conftest.$ac_ext
18102 # On OSF/1 V5.1, getaddrinfo is available, but a define
18103 # for [no]getaddrinfo in netdb.h.
18104 { echo "$as_me:$LINENO: checking for getaddrinfo" >&5
18105 echo $ECHO_N "checking for getaddrinfo... $ECHO_C" >&6; }
18106 cat >conftest.$ac_ext <<_ACEOF
18107 /* confdefs.h. */
18108 _ACEOF
18109 cat confdefs.h >>conftest.$ac_ext
18110 cat >>conftest.$ac_ext <<_ACEOF
18111 /* end confdefs.h. */
18113 #include <sys/types.h>
18114 #include <sys/socket.h>
18115 #include <netdb.h>
18116 #include <stdio.h>
18119 main ()
18122 getaddrinfo(NULL, NULL, NULL, NULL);
18125 return 0;
18127 _ACEOF
18128 rm -f conftest.$ac_objext conftest$ac_exeext
18129 if { (ac_try="$ac_link"
18130 case "(($ac_try" in
18131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18132 *) ac_try_echo=$ac_try;;
18133 esac
18134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18135 (eval "$ac_link") 2>conftest.er1
18136 ac_status=$?
18137 grep -v '^ *+' conftest.er1 >conftest.err
18138 rm -f conftest.er1
18139 cat conftest.err >&5
18140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18141 (exit $ac_status); } && {
18142 test -z "$ac_c_werror_flag" ||
18143 test ! -s conftest.err
18144 } && test -s conftest$ac_exeext &&
18145 $as_test_x conftest$ac_exeext; then
18147 { echo "$as_me:$LINENO: result: yes" >&5
18148 echo "${ECHO_T}yes" >&6; }
18149 { echo "$as_me:$LINENO: checking getaddrinfo bug" >&5
18150 echo $ECHO_N "checking getaddrinfo bug... $ECHO_C" >&6; }
18151 if test "$cross_compiling" = yes; then
18152 { echo "$as_me:$LINENO: result: buggy" >&5
18153 echo "${ECHO_T}buggy" >&6; }
18154 buggygetaddrinfo=yes
18155 else
18156 cat >conftest.$ac_ext <<_ACEOF
18157 /* confdefs.h. */
18158 _ACEOF
18159 cat confdefs.h >>conftest.$ac_ext
18160 cat >>conftest.$ac_ext <<_ACEOF
18161 /* end confdefs.h. */
18163 #include <sys/types.h>
18164 #include <netdb.h>
18165 #include <string.h>
18166 #include <sys/socket.h>
18167 #include <netinet/in.h>
18169 main()
18171 int passive, gaierr, inet4 = 0, inet6 = 0;
18172 struct addrinfo hints, *ai, *aitop;
18173 char straddr[INET6_ADDRSTRLEN], strport[16];
18175 for (passive = 0; passive <= 1; passive++) {
18176 memset(&hints, 0, sizeof(hints));
18177 hints.ai_family = AF_UNSPEC;
18178 hints.ai_flags = passive ? AI_PASSIVE : 0;
18179 hints.ai_socktype = SOCK_STREAM;
18180 hints.ai_protocol = IPPROTO_TCP;
18181 if ((gaierr = getaddrinfo(NULL, "54321", &hints, &aitop)) != 0) {
18182 (void)gai_strerror(gaierr);
18183 goto bad;
18185 for (ai = aitop; ai; ai = ai->ai_next) {
18186 if (ai->ai_addr == NULL ||
18187 ai->ai_addrlen == 0 ||
18188 getnameinfo(ai->ai_addr, ai->ai_addrlen,
18189 straddr, sizeof(straddr), strport, sizeof(strport),
18190 NI_NUMERICHOST|NI_NUMERICSERV) != 0) {
18191 goto bad;
18193 switch (ai->ai_family) {
18194 case AF_INET:
18195 if (strcmp(strport, "54321") != 0) {
18196 goto bad;
18198 if (passive) {
18199 if (strcmp(straddr, "0.0.0.0") != 0) {
18200 goto bad;
18202 } else {
18203 if (strcmp(straddr, "127.0.0.1") != 0) {
18204 goto bad;
18207 inet4++;
18208 break;
18209 case AF_INET6:
18210 if (strcmp(strport, "54321") != 0) {
18211 goto bad;
18213 if (passive) {
18214 if (strcmp(straddr, "::") != 0) {
18215 goto bad;
18217 } else {
18218 if (strcmp(straddr, "::1") != 0) {
18219 goto bad;
18222 inet6++;
18223 break;
18224 case AF_UNSPEC:
18225 goto bad;
18226 break;
18227 default:
18228 /* another family support? */
18229 break;
18234 if (!(inet4 == 0 || inet4 == 2))
18235 goto bad;
18236 if (!(inet6 == 0 || inet6 == 2))
18237 goto bad;
18239 if (aitop)
18240 freeaddrinfo(aitop);
18241 exit(0);
18243 bad:
18244 if (aitop)
18245 freeaddrinfo(aitop);
18246 exit(1);
18249 _ACEOF
18250 rm -f conftest$ac_exeext
18251 if { (ac_try="$ac_link"
18252 case "(($ac_try" in
18253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18254 *) ac_try_echo=$ac_try;;
18255 esac
18256 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18257 (eval "$ac_link") 2>&5
18258 ac_status=$?
18259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18260 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18261 { (case "(($ac_try" in
18262 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18263 *) ac_try_echo=$ac_try;;
18264 esac
18265 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18266 (eval "$ac_try") 2>&5
18267 ac_status=$?
18268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18269 (exit $ac_status); }; }; then
18270 { echo "$as_me:$LINENO: result: good" >&5
18271 echo "${ECHO_T}good" >&6; }
18272 buggygetaddrinfo=no
18273 else
18274 echo "$as_me: program exited with status $ac_status" >&5
18275 echo "$as_me: failed program was:" >&5
18276 sed 's/^/| /' conftest.$ac_ext >&5
18278 ( exit $ac_status )
18279 { echo "$as_me:$LINENO: result: buggy" >&5
18280 echo "${ECHO_T}buggy" >&6; }
18281 buggygetaddrinfo=yes
18283 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18287 else
18288 echo "$as_me: failed program was:" >&5
18289 sed 's/^/| /' conftest.$ac_ext >&5
18292 { echo "$as_me:$LINENO: result: no" >&5
18293 echo "${ECHO_T}no" >&6; }
18294 buggygetaddrinfo=yes
18298 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18299 conftest$ac_exeext conftest.$ac_ext
18301 if test "$buggygetaddrinfo" = "yes"; then
18302 if test "$ipv6" = "yes"; then
18303 echo 'Fatal: You must get working getaddrinfo() function.'
18304 echo ' or you can specify "--disable-ipv6"'.
18305 exit 1
18307 else
18309 cat >>confdefs.h <<\_ACEOF
18310 #define HAVE_GETADDRINFO 1
18311 _ACEOF
18315 for ac_func in getnameinfo
18317 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18318 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18319 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18320 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18321 echo $ECHO_N "(cached) $ECHO_C" >&6
18322 else
18323 cat >conftest.$ac_ext <<_ACEOF
18324 /* confdefs.h. */
18325 _ACEOF
18326 cat confdefs.h >>conftest.$ac_ext
18327 cat >>conftest.$ac_ext <<_ACEOF
18328 /* end confdefs.h. */
18329 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18330 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18331 #define $ac_func innocuous_$ac_func
18333 /* System header to define __stub macros and hopefully few prototypes,
18334 which can conflict with char $ac_func (); below.
18335 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18336 <limits.h> exists even on freestanding compilers. */
18338 #ifdef __STDC__
18339 # include <limits.h>
18340 #else
18341 # include <assert.h>
18342 #endif
18344 #undef $ac_func
18346 /* Override any GCC internal prototype to avoid an error.
18347 Use char because int might match the return type of a GCC
18348 builtin and then its argument prototype would still apply. */
18349 #ifdef __cplusplus
18350 extern "C"
18351 #endif
18352 char $ac_func ();
18353 /* The GNU C library defines this for functions which it implements
18354 to always fail with ENOSYS. Some functions are actually named
18355 something starting with __ and the normal name is an alias. */
18356 #if defined __stub_$ac_func || defined __stub___$ac_func
18357 choke me
18358 #endif
18361 main ()
18363 return $ac_func ();
18365 return 0;
18367 _ACEOF
18368 rm -f conftest.$ac_objext conftest$ac_exeext
18369 if { (ac_try="$ac_link"
18370 case "(($ac_try" in
18371 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18372 *) ac_try_echo=$ac_try;;
18373 esac
18374 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18375 (eval "$ac_link") 2>conftest.er1
18376 ac_status=$?
18377 grep -v '^ *+' conftest.er1 >conftest.err
18378 rm -f conftest.er1
18379 cat conftest.err >&5
18380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18381 (exit $ac_status); } && {
18382 test -z "$ac_c_werror_flag" ||
18383 test ! -s conftest.err
18384 } && test -s conftest$ac_exeext &&
18385 $as_test_x conftest$ac_exeext; then
18386 eval "$as_ac_var=yes"
18387 else
18388 echo "$as_me: failed program was:" >&5
18389 sed 's/^/| /' conftest.$ac_ext >&5
18391 eval "$as_ac_var=no"
18394 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18395 conftest$ac_exeext conftest.$ac_ext
18397 ac_res=`eval echo '${'$as_ac_var'}'`
18398 { echo "$as_me:$LINENO: result: $ac_res" >&5
18399 echo "${ECHO_T}$ac_res" >&6; }
18400 if test `eval echo '${'$as_ac_var'}'` = yes; then
18401 cat >>confdefs.h <<_ACEOF
18402 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18403 _ACEOF
18406 done
18409 # checks for structures
18410 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
18411 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
18412 if test "${ac_cv_header_time+set}" = set; then
18413 echo $ECHO_N "(cached) $ECHO_C" >&6
18414 else
18415 cat >conftest.$ac_ext <<_ACEOF
18416 /* confdefs.h. */
18417 _ACEOF
18418 cat confdefs.h >>conftest.$ac_ext
18419 cat >>conftest.$ac_ext <<_ACEOF
18420 /* end confdefs.h. */
18421 #include <sys/types.h>
18422 #include <sys/time.h>
18423 #include <time.h>
18426 main ()
18428 if ((struct tm *) 0)
18429 return 0;
18431 return 0;
18433 _ACEOF
18434 rm -f conftest.$ac_objext
18435 if { (ac_try="$ac_compile"
18436 case "(($ac_try" in
18437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18438 *) ac_try_echo=$ac_try;;
18439 esac
18440 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18441 (eval "$ac_compile") 2>conftest.er1
18442 ac_status=$?
18443 grep -v '^ *+' conftest.er1 >conftest.err
18444 rm -f conftest.er1
18445 cat conftest.err >&5
18446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18447 (exit $ac_status); } && {
18448 test -z "$ac_c_werror_flag" ||
18449 test ! -s conftest.err
18450 } && test -s conftest.$ac_objext; then
18451 ac_cv_header_time=yes
18452 else
18453 echo "$as_me: failed program was:" >&5
18454 sed 's/^/| /' conftest.$ac_ext >&5
18456 ac_cv_header_time=no
18459 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18461 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
18462 echo "${ECHO_T}$ac_cv_header_time" >&6; }
18463 if test $ac_cv_header_time = yes; then
18465 cat >>confdefs.h <<\_ACEOF
18466 #define TIME_WITH_SYS_TIME 1
18467 _ACEOF
18471 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
18472 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
18473 if test "${ac_cv_struct_tm+set}" = set; then
18474 echo $ECHO_N "(cached) $ECHO_C" >&6
18475 else
18476 cat >conftest.$ac_ext <<_ACEOF
18477 /* confdefs.h. */
18478 _ACEOF
18479 cat confdefs.h >>conftest.$ac_ext
18480 cat >>conftest.$ac_ext <<_ACEOF
18481 /* end confdefs.h. */
18482 #include <sys/types.h>
18483 #include <time.h>
18486 main ()
18488 struct tm tm;
18489 int *p = &tm.tm_sec;
18490 return !p;
18492 return 0;
18494 _ACEOF
18495 rm -f conftest.$ac_objext
18496 if { (ac_try="$ac_compile"
18497 case "(($ac_try" in
18498 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18499 *) ac_try_echo=$ac_try;;
18500 esac
18501 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18502 (eval "$ac_compile") 2>conftest.er1
18503 ac_status=$?
18504 grep -v '^ *+' conftest.er1 >conftest.err
18505 rm -f conftest.er1
18506 cat conftest.err >&5
18507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18508 (exit $ac_status); } && {
18509 test -z "$ac_c_werror_flag" ||
18510 test ! -s conftest.err
18511 } && test -s conftest.$ac_objext; then
18512 ac_cv_struct_tm=time.h
18513 else
18514 echo "$as_me: failed program was:" >&5
18515 sed 's/^/| /' conftest.$ac_ext >&5
18517 ac_cv_struct_tm=sys/time.h
18520 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18522 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
18523 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
18524 if test $ac_cv_struct_tm = sys/time.h; then
18526 cat >>confdefs.h <<\_ACEOF
18527 #define TM_IN_SYS_TIME 1
18528 _ACEOF
18532 { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
18533 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
18534 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
18535 echo $ECHO_N "(cached) $ECHO_C" >&6
18536 else
18537 cat >conftest.$ac_ext <<_ACEOF
18538 /* confdefs.h. */
18539 _ACEOF
18540 cat confdefs.h >>conftest.$ac_ext
18541 cat >>conftest.$ac_ext <<_ACEOF
18542 /* end confdefs.h. */
18543 #include <sys/types.h>
18544 #include <$ac_cv_struct_tm>
18548 main ()
18550 static struct tm ac_aggr;
18551 if (ac_aggr.tm_zone)
18552 return 0;
18554 return 0;
18556 _ACEOF
18557 rm -f conftest.$ac_objext
18558 if { (ac_try="$ac_compile"
18559 case "(($ac_try" in
18560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18561 *) ac_try_echo=$ac_try;;
18562 esac
18563 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18564 (eval "$ac_compile") 2>conftest.er1
18565 ac_status=$?
18566 grep -v '^ *+' conftest.er1 >conftest.err
18567 rm -f conftest.er1
18568 cat conftest.err >&5
18569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18570 (exit $ac_status); } && {
18571 test -z "$ac_c_werror_flag" ||
18572 test ! -s conftest.err
18573 } && test -s conftest.$ac_objext; then
18574 ac_cv_member_struct_tm_tm_zone=yes
18575 else
18576 echo "$as_me: failed program was:" >&5
18577 sed 's/^/| /' conftest.$ac_ext >&5
18579 cat >conftest.$ac_ext <<_ACEOF
18580 /* confdefs.h. */
18581 _ACEOF
18582 cat confdefs.h >>conftest.$ac_ext
18583 cat >>conftest.$ac_ext <<_ACEOF
18584 /* end confdefs.h. */
18585 #include <sys/types.h>
18586 #include <$ac_cv_struct_tm>
18590 main ()
18592 static struct tm ac_aggr;
18593 if (sizeof ac_aggr.tm_zone)
18594 return 0;
18596 return 0;
18598 _ACEOF
18599 rm -f conftest.$ac_objext
18600 if { (ac_try="$ac_compile"
18601 case "(($ac_try" in
18602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18603 *) ac_try_echo=$ac_try;;
18604 esac
18605 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18606 (eval "$ac_compile") 2>conftest.er1
18607 ac_status=$?
18608 grep -v '^ *+' conftest.er1 >conftest.err
18609 rm -f conftest.er1
18610 cat conftest.err >&5
18611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18612 (exit $ac_status); } && {
18613 test -z "$ac_c_werror_flag" ||
18614 test ! -s conftest.err
18615 } && test -s conftest.$ac_objext; then
18616 ac_cv_member_struct_tm_tm_zone=yes
18617 else
18618 echo "$as_me: failed program was:" >&5
18619 sed 's/^/| /' conftest.$ac_ext >&5
18621 ac_cv_member_struct_tm_tm_zone=no
18624 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18627 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18629 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
18630 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
18631 if test $ac_cv_member_struct_tm_tm_zone = yes; then
18633 cat >>confdefs.h <<_ACEOF
18634 #define HAVE_STRUCT_TM_TM_ZONE 1
18635 _ACEOF
18640 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
18642 cat >>confdefs.h <<\_ACEOF
18643 #define HAVE_TM_ZONE 1
18644 _ACEOF
18646 else
18647 { echo "$as_me:$LINENO: checking whether tzname is declared" >&5
18648 echo $ECHO_N "checking whether tzname is declared... $ECHO_C" >&6; }
18649 if test "${ac_cv_have_decl_tzname+set}" = set; then
18650 echo $ECHO_N "(cached) $ECHO_C" >&6
18651 else
18652 cat >conftest.$ac_ext <<_ACEOF
18653 /* confdefs.h. */
18654 _ACEOF
18655 cat confdefs.h >>conftest.$ac_ext
18656 cat >>conftest.$ac_ext <<_ACEOF
18657 /* end confdefs.h. */
18658 #include <time.h>
18661 main ()
18663 #ifndef tzname
18664 (void) tzname;
18665 #endif
18668 return 0;
18670 _ACEOF
18671 rm -f conftest.$ac_objext
18672 if { (ac_try="$ac_compile"
18673 case "(($ac_try" in
18674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18675 *) ac_try_echo=$ac_try;;
18676 esac
18677 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18678 (eval "$ac_compile") 2>conftest.er1
18679 ac_status=$?
18680 grep -v '^ *+' conftest.er1 >conftest.err
18681 rm -f conftest.er1
18682 cat conftest.err >&5
18683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18684 (exit $ac_status); } && {
18685 test -z "$ac_c_werror_flag" ||
18686 test ! -s conftest.err
18687 } && test -s conftest.$ac_objext; then
18688 ac_cv_have_decl_tzname=yes
18689 else
18690 echo "$as_me: failed program was:" >&5
18691 sed 's/^/| /' conftest.$ac_ext >&5
18693 ac_cv_have_decl_tzname=no
18696 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18698 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
18699 echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; }
18700 if test $ac_cv_have_decl_tzname = yes; then
18702 cat >>confdefs.h <<_ACEOF
18703 #define HAVE_DECL_TZNAME 1
18704 _ACEOF
18707 else
18708 cat >>confdefs.h <<_ACEOF
18709 #define HAVE_DECL_TZNAME 0
18710 _ACEOF
18716 { echo "$as_me:$LINENO: checking for tzname" >&5
18717 echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
18718 if test "${ac_cv_var_tzname+set}" = set; then
18719 echo $ECHO_N "(cached) $ECHO_C" >&6
18720 else
18721 cat >conftest.$ac_ext <<_ACEOF
18722 /* confdefs.h. */
18723 _ACEOF
18724 cat confdefs.h >>conftest.$ac_ext
18725 cat >>conftest.$ac_ext <<_ACEOF
18726 /* end confdefs.h. */
18727 #include <time.h>
18728 #if !HAVE_DECL_TZNAME
18729 extern char *tzname[];
18730 #endif
18733 main ()
18735 return tzname[0][0];
18737 return 0;
18739 _ACEOF
18740 rm -f conftest.$ac_objext conftest$ac_exeext
18741 if { (ac_try="$ac_link"
18742 case "(($ac_try" in
18743 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18744 *) ac_try_echo=$ac_try;;
18745 esac
18746 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18747 (eval "$ac_link") 2>conftest.er1
18748 ac_status=$?
18749 grep -v '^ *+' conftest.er1 >conftest.err
18750 rm -f conftest.er1
18751 cat conftest.err >&5
18752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18753 (exit $ac_status); } && {
18754 test -z "$ac_c_werror_flag" ||
18755 test ! -s conftest.err
18756 } && test -s conftest$ac_exeext &&
18757 $as_test_x conftest$ac_exeext; then
18758 ac_cv_var_tzname=yes
18759 else
18760 echo "$as_me: failed program was:" >&5
18761 sed 's/^/| /' conftest.$ac_ext >&5
18763 ac_cv_var_tzname=no
18766 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18767 conftest$ac_exeext conftest.$ac_ext
18769 { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
18770 echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
18771 if test $ac_cv_var_tzname = yes; then
18773 cat >>confdefs.h <<\_ACEOF
18774 #define HAVE_TZNAME 1
18775 _ACEOF
18780 { echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
18781 echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6; }
18782 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
18783 echo $ECHO_N "(cached) $ECHO_C" >&6
18784 else
18785 cat >conftest.$ac_ext <<_ACEOF
18786 /* confdefs.h. */
18787 _ACEOF
18788 cat confdefs.h >>conftest.$ac_ext
18789 cat >>conftest.$ac_ext <<_ACEOF
18790 /* end confdefs.h. */
18791 $ac_includes_default
18793 main ()
18795 static struct stat ac_aggr;
18796 if (ac_aggr.st_rdev)
18797 return 0;
18799 return 0;
18801 _ACEOF
18802 rm -f conftest.$ac_objext
18803 if { (ac_try="$ac_compile"
18804 case "(($ac_try" in
18805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18806 *) ac_try_echo=$ac_try;;
18807 esac
18808 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18809 (eval "$ac_compile") 2>conftest.er1
18810 ac_status=$?
18811 grep -v '^ *+' conftest.er1 >conftest.err
18812 rm -f conftest.er1
18813 cat conftest.err >&5
18814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18815 (exit $ac_status); } && {
18816 test -z "$ac_c_werror_flag" ||
18817 test ! -s conftest.err
18818 } && test -s conftest.$ac_objext; then
18819 ac_cv_member_struct_stat_st_rdev=yes
18820 else
18821 echo "$as_me: failed program was:" >&5
18822 sed 's/^/| /' conftest.$ac_ext >&5
18824 cat >conftest.$ac_ext <<_ACEOF
18825 /* confdefs.h. */
18826 _ACEOF
18827 cat confdefs.h >>conftest.$ac_ext
18828 cat >>conftest.$ac_ext <<_ACEOF
18829 /* end confdefs.h. */
18830 $ac_includes_default
18832 main ()
18834 static struct stat ac_aggr;
18835 if (sizeof ac_aggr.st_rdev)
18836 return 0;
18838 return 0;
18840 _ACEOF
18841 rm -f conftest.$ac_objext
18842 if { (ac_try="$ac_compile"
18843 case "(($ac_try" in
18844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18845 *) ac_try_echo=$ac_try;;
18846 esac
18847 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18848 (eval "$ac_compile") 2>conftest.er1
18849 ac_status=$?
18850 grep -v '^ *+' conftest.er1 >conftest.err
18851 rm -f conftest.er1
18852 cat conftest.err >&5
18853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18854 (exit $ac_status); } && {
18855 test -z "$ac_c_werror_flag" ||
18856 test ! -s conftest.err
18857 } && test -s conftest.$ac_objext; then
18858 ac_cv_member_struct_stat_st_rdev=yes
18859 else
18860 echo "$as_me: failed program was:" >&5
18861 sed 's/^/| /' conftest.$ac_ext >&5
18863 ac_cv_member_struct_stat_st_rdev=no
18866 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18869 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18871 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
18872 echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6; }
18873 if test $ac_cv_member_struct_stat_st_rdev = yes; then
18875 cat >>confdefs.h <<_ACEOF
18876 #define HAVE_STRUCT_STAT_ST_RDEV 1
18877 _ACEOF
18882 { echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
18883 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6; }
18884 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
18885 echo $ECHO_N "(cached) $ECHO_C" >&6
18886 else
18887 cat >conftest.$ac_ext <<_ACEOF
18888 /* confdefs.h. */
18889 _ACEOF
18890 cat confdefs.h >>conftest.$ac_ext
18891 cat >>conftest.$ac_ext <<_ACEOF
18892 /* end confdefs.h. */
18893 $ac_includes_default
18895 main ()
18897 static struct stat ac_aggr;
18898 if (ac_aggr.st_blksize)
18899 return 0;
18901 return 0;
18903 _ACEOF
18904 rm -f conftest.$ac_objext
18905 if { (ac_try="$ac_compile"
18906 case "(($ac_try" in
18907 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18908 *) ac_try_echo=$ac_try;;
18909 esac
18910 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18911 (eval "$ac_compile") 2>conftest.er1
18912 ac_status=$?
18913 grep -v '^ *+' conftest.er1 >conftest.err
18914 rm -f conftest.er1
18915 cat conftest.err >&5
18916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18917 (exit $ac_status); } && {
18918 test -z "$ac_c_werror_flag" ||
18919 test ! -s conftest.err
18920 } && test -s conftest.$ac_objext; then
18921 ac_cv_member_struct_stat_st_blksize=yes
18922 else
18923 echo "$as_me: failed program was:" >&5
18924 sed 's/^/| /' conftest.$ac_ext >&5
18926 cat >conftest.$ac_ext <<_ACEOF
18927 /* confdefs.h. */
18928 _ACEOF
18929 cat confdefs.h >>conftest.$ac_ext
18930 cat >>conftest.$ac_ext <<_ACEOF
18931 /* end confdefs.h. */
18932 $ac_includes_default
18934 main ()
18936 static struct stat ac_aggr;
18937 if (sizeof ac_aggr.st_blksize)
18938 return 0;
18940 return 0;
18942 _ACEOF
18943 rm -f conftest.$ac_objext
18944 if { (ac_try="$ac_compile"
18945 case "(($ac_try" in
18946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18947 *) ac_try_echo=$ac_try;;
18948 esac
18949 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18950 (eval "$ac_compile") 2>conftest.er1
18951 ac_status=$?
18952 grep -v '^ *+' conftest.er1 >conftest.err
18953 rm -f conftest.er1
18954 cat conftest.err >&5
18955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18956 (exit $ac_status); } && {
18957 test -z "$ac_c_werror_flag" ||
18958 test ! -s conftest.err
18959 } && test -s conftest.$ac_objext; then
18960 ac_cv_member_struct_stat_st_blksize=yes
18961 else
18962 echo "$as_me: failed program was:" >&5
18963 sed 's/^/| /' conftest.$ac_ext >&5
18965 ac_cv_member_struct_stat_st_blksize=no
18968 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18971 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18973 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
18974 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6; }
18975 if test $ac_cv_member_struct_stat_st_blksize = yes; then
18977 cat >>confdefs.h <<_ACEOF
18978 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
18979 _ACEOF
18984 { echo "$as_me:$LINENO: checking for struct stat.st_flags" >&5
18985 echo $ECHO_N "checking for struct stat.st_flags... $ECHO_C" >&6; }
18986 if test "${ac_cv_member_struct_stat_st_flags+set}" = set; then
18987 echo $ECHO_N "(cached) $ECHO_C" >&6
18988 else
18989 cat >conftest.$ac_ext <<_ACEOF
18990 /* confdefs.h. */
18991 _ACEOF
18992 cat confdefs.h >>conftest.$ac_ext
18993 cat >>conftest.$ac_ext <<_ACEOF
18994 /* end confdefs.h. */
18995 $ac_includes_default
18997 main ()
18999 static struct stat ac_aggr;
19000 if (ac_aggr.st_flags)
19001 return 0;
19003 return 0;
19005 _ACEOF
19006 rm -f conftest.$ac_objext
19007 if { (ac_try="$ac_compile"
19008 case "(($ac_try" in
19009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19010 *) ac_try_echo=$ac_try;;
19011 esac
19012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19013 (eval "$ac_compile") 2>conftest.er1
19014 ac_status=$?
19015 grep -v '^ *+' conftest.er1 >conftest.err
19016 rm -f conftest.er1
19017 cat conftest.err >&5
19018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19019 (exit $ac_status); } && {
19020 test -z "$ac_c_werror_flag" ||
19021 test ! -s conftest.err
19022 } && test -s conftest.$ac_objext; then
19023 ac_cv_member_struct_stat_st_flags=yes
19024 else
19025 echo "$as_me: failed program was:" >&5
19026 sed 's/^/| /' conftest.$ac_ext >&5
19028 cat >conftest.$ac_ext <<_ACEOF
19029 /* confdefs.h. */
19030 _ACEOF
19031 cat confdefs.h >>conftest.$ac_ext
19032 cat >>conftest.$ac_ext <<_ACEOF
19033 /* end confdefs.h. */
19034 $ac_includes_default
19036 main ()
19038 static struct stat ac_aggr;
19039 if (sizeof ac_aggr.st_flags)
19040 return 0;
19042 return 0;
19044 _ACEOF
19045 rm -f conftest.$ac_objext
19046 if { (ac_try="$ac_compile"
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_compile") 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_objext; then
19062 ac_cv_member_struct_stat_st_flags=yes
19063 else
19064 echo "$as_me: failed program was:" >&5
19065 sed 's/^/| /' conftest.$ac_ext >&5
19067 ac_cv_member_struct_stat_st_flags=no
19070 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19073 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19075 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_flags" >&5
19076 echo "${ECHO_T}$ac_cv_member_struct_stat_st_flags" >&6; }
19077 if test $ac_cv_member_struct_stat_st_flags = yes; then
19079 cat >>confdefs.h <<_ACEOF
19080 #define HAVE_STRUCT_STAT_ST_FLAGS 1
19081 _ACEOF
19086 { echo "$as_me:$LINENO: checking for struct stat.st_gen" >&5
19087 echo $ECHO_N "checking for struct stat.st_gen... $ECHO_C" >&6; }
19088 if test "${ac_cv_member_struct_stat_st_gen+set}" = set; then
19089 echo $ECHO_N "(cached) $ECHO_C" >&6
19090 else
19091 cat >conftest.$ac_ext <<_ACEOF
19092 /* confdefs.h. */
19093 _ACEOF
19094 cat confdefs.h >>conftest.$ac_ext
19095 cat >>conftest.$ac_ext <<_ACEOF
19096 /* end confdefs.h. */
19097 $ac_includes_default
19099 main ()
19101 static struct stat ac_aggr;
19102 if (ac_aggr.st_gen)
19103 return 0;
19105 return 0;
19107 _ACEOF
19108 rm -f conftest.$ac_objext
19109 if { (ac_try="$ac_compile"
19110 case "(($ac_try" in
19111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19112 *) ac_try_echo=$ac_try;;
19113 esac
19114 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19115 (eval "$ac_compile") 2>conftest.er1
19116 ac_status=$?
19117 grep -v '^ *+' conftest.er1 >conftest.err
19118 rm -f conftest.er1
19119 cat conftest.err >&5
19120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19121 (exit $ac_status); } && {
19122 test -z "$ac_c_werror_flag" ||
19123 test ! -s conftest.err
19124 } && test -s conftest.$ac_objext; then
19125 ac_cv_member_struct_stat_st_gen=yes
19126 else
19127 echo "$as_me: failed program was:" >&5
19128 sed 's/^/| /' conftest.$ac_ext >&5
19130 cat >conftest.$ac_ext <<_ACEOF
19131 /* confdefs.h. */
19132 _ACEOF
19133 cat confdefs.h >>conftest.$ac_ext
19134 cat >>conftest.$ac_ext <<_ACEOF
19135 /* end confdefs.h. */
19136 $ac_includes_default
19138 main ()
19140 static struct stat ac_aggr;
19141 if (sizeof ac_aggr.st_gen)
19142 return 0;
19144 return 0;
19146 _ACEOF
19147 rm -f conftest.$ac_objext
19148 if { (ac_try="$ac_compile"
19149 case "(($ac_try" in
19150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19151 *) ac_try_echo=$ac_try;;
19152 esac
19153 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19154 (eval "$ac_compile") 2>conftest.er1
19155 ac_status=$?
19156 grep -v '^ *+' conftest.er1 >conftest.err
19157 rm -f conftest.er1
19158 cat conftest.err >&5
19159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19160 (exit $ac_status); } && {
19161 test -z "$ac_c_werror_flag" ||
19162 test ! -s conftest.err
19163 } && test -s conftest.$ac_objext; then
19164 ac_cv_member_struct_stat_st_gen=yes
19165 else
19166 echo "$as_me: failed program was:" >&5
19167 sed 's/^/| /' conftest.$ac_ext >&5
19169 ac_cv_member_struct_stat_st_gen=no
19172 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19175 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19177 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_gen" >&5
19178 echo "${ECHO_T}$ac_cv_member_struct_stat_st_gen" >&6; }
19179 if test $ac_cv_member_struct_stat_st_gen = yes; then
19181 cat >>confdefs.h <<_ACEOF
19182 #define HAVE_STRUCT_STAT_ST_GEN 1
19183 _ACEOF
19188 { echo "$as_me:$LINENO: checking for struct stat.st_birthtime" >&5
19189 echo $ECHO_N "checking for struct stat.st_birthtime... $ECHO_C" >&6; }
19190 if test "${ac_cv_member_struct_stat_st_birthtime+set}" = set; then
19191 echo $ECHO_N "(cached) $ECHO_C" >&6
19192 else
19193 cat >conftest.$ac_ext <<_ACEOF
19194 /* confdefs.h. */
19195 _ACEOF
19196 cat confdefs.h >>conftest.$ac_ext
19197 cat >>conftest.$ac_ext <<_ACEOF
19198 /* end confdefs.h. */
19199 $ac_includes_default
19201 main ()
19203 static struct stat ac_aggr;
19204 if (ac_aggr.st_birthtime)
19205 return 0;
19207 return 0;
19209 _ACEOF
19210 rm -f conftest.$ac_objext
19211 if { (ac_try="$ac_compile"
19212 case "(($ac_try" in
19213 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19214 *) ac_try_echo=$ac_try;;
19215 esac
19216 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19217 (eval "$ac_compile") 2>conftest.er1
19218 ac_status=$?
19219 grep -v '^ *+' conftest.er1 >conftest.err
19220 rm -f conftest.er1
19221 cat conftest.err >&5
19222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19223 (exit $ac_status); } && {
19224 test -z "$ac_c_werror_flag" ||
19225 test ! -s conftest.err
19226 } && test -s conftest.$ac_objext; then
19227 ac_cv_member_struct_stat_st_birthtime=yes
19228 else
19229 echo "$as_me: failed program was:" >&5
19230 sed 's/^/| /' conftest.$ac_ext >&5
19232 cat >conftest.$ac_ext <<_ACEOF
19233 /* confdefs.h. */
19234 _ACEOF
19235 cat confdefs.h >>conftest.$ac_ext
19236 cat >>conftest.$ac_ext <<_ACEOF
19237 /* end confdefs.h. */
19238 $ac_includes_default
19240 main ()
19242 static struct stat ac_aggr;
19243 if (sizeof ac_aggr.st_birthtime)
19244 return 0;
19246 return 0;
19248 _ACEOF
19249 rm -f conftest.$ac_objext
19250 if { (ac_try="$ac_compile"
19251 case "(($ac_try" in
19252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19253 *) ac_try_echo=$ac_try;;
19254 esac
19255 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19256 (eval "$ac_compile") 2>conftest.er1
19257 ac_status=$?
19258 grep -v '^ *+' conftest.er1 >conftest.err
19259 rm -f conftest.er1
19260 cat conftest.err >&5
19261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19262 (exit $ac_status); } && {
19263 test -z "$ac_c_werror_flag" ||
19264 test ! -s conftest.err
19265 } && test -s conftest.$ac_objext; then
19266 ac_cv_member_struct_stat_st_birthtime=yes
19267 else
19268 echo "$as_me: failed program was:" >&5
19269 sed 's/^/| /' conftest.$ac_ext >&5
19271 ac_cv_member_struct_stat_st_birthtime=no
19274 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19277 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19279 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_birthtime" >&5
19280 echo "${ECHO_T}$ac_cv_member_struct_stat_st_birthtime" >&6; }
19281 if test $ac_cv_member_struct_stat_st_birthtime = yes; then
19283 cat >>confdefs.h <<_ACEOF
19284 #define HAVE_STRUCT_STAT_ST_BIRTHTIME 1
19285 _ACEOF
19290 { echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
19291 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6; }
19292 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
19293 echo $ECHO_N "(cached) $ECHO_C" >&6
19294 else
19295 cat >conftest.$ac_ext <<_ACEOF
19296 /* confdefs.h. */
19297 _ACEOF
19298 cat confdefs.h >>conftest.$ac_ext
19299 cat >>conftest.$ac_ext <<_ACEOF
19300 /* end confdefs.h. */
19301 $ac_includes_default
19303 main ()
19305 static struct stat ac_aggr;
19306 if (ac_aggr.st_blocks)
19307 return 0;
19309 return 0;
19311 _ACEOF
19312 rm -f conftest.$ac_objext
19313 if { (ac_try="$ac_compile"
19314 case "(($ac_try" in
19315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19316 *) ac_try_echo=$ac_try;;
19317 esac
19318 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19319 (eval "$ac_compile") 2>conftest.er1
19320 ac_status=$?
19321 grep -v '^ *+' conftest.er1 >conftest.err
19322 rm -f conftest.er1
19323 cat conftest.err >&5
19324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19325 (exit $ac_status); } && {
19326 test -z "$ac_c_werror_flag" ||
19327 test ! -s conftest.err
19328 } && test -s conftest.$ac_objext; then
19329 ac_cv_member_struct_stat_st_blocks=yes
19330 else
19331 echo "$as_me: failed program was:" >&5
19332 sed 's/^/| /' conftest.$ac_ext >&5
19334 cat >conftest.$ac_ext <<_ACEOF
19335 /* confdefs.h. */
19336 _ACEOF
19337 cat confdefs.h >>conftest.$ac_ext
19338 cat >>conftest.$ac_ext <<_ACEOF
19339 /* end confdefs.h. */
19340 $ac_includes_default
19342 main ()
19344 static struct stat ac_aggr;
19345 if (sizeof ac_aggr.st_blocks)
19346 return 0;
19348 return 0;
19350 _ACEOF
19351 rm -f conftest.$ac_objext
19352 if { (ac_try="$ac_compile"
19353 case "(($ac_try" in
19354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19355 *) ac_try_echo=$ac_try;;
19356 esac
19357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19358 (eval "$ac_compile") 2>conftest.er1
19359 ac_status=$?
19360 grep -v '^ *+' conftest.er1 >conftest.err
19361 rm -f conftest.er1
19362 cat conftest.err >&5
19363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19364 (exit $ac_status); } && {
19365 test -z "$ac_c_werror_flag" ||
19366 test ! -s conftest.err
19367 } && test -s conftest.$ac_objext; then
19368 ac_cv_member_struct_stat_st_blocks=yes
19369 else
19370 echo "$as_me: failed program was:" >&5
19371 sed 's/^/| /' conftest.$ac_ext >&5
19373 ac_cv_member_struct_stat_st_blocks=no
19376 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19379 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19381 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
19382 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6; }
19383 if test $ac_cv_member_struct_stat_st_blocks = yes; then
19385 cat >>confdefs.h <<_ACEOF
19386 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
19387 _ACEOF
19390 cat >>confdefs.h <<\_ACEOF
19391 #define HAVE_ST_BLOCKS 1
19392 _ACEOF
19394 else
19395 case " $LIBOBJS " in
19396 *" fileblocks.$ac_objext "* ) ;;
19397 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
19399 esac
19405 { echo "$as_me:$LINENO: checking for time.h that defines altzone" >&5
19406 echo $ECHO_N "checking for time.h that defines altzone... $ECHO_C" >&6; }
19407 if test "${ac_cv_header_time_altzone+set}" = set; then
19408 echo $ECHO_N "(cached) $ECHO_C" >&6
19409 else
19410 cat >conftest.$ac_ext <<_ACEOF
19411 /* confdefs.h. */
19412 _ACEOF
19413 cat confdefs.h >>conftest.$ac_ext
19414 cat >>conftest.$ac_ext <<_ACEOF
19415 /* end confdefs.h. */
19416 #include <time.h>
19418 main ()
19420 return altzone;
19422 return 0;
19424 _ACEOF
19425 rm -f conftest.$ac_objext
19426 if { (ac_try="$ac_compile"
19427 case "(($ac_try" in
19428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19429 *) ac_try_echo=$ac_try;;
19430 esac
19431 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19432 (eval "$ac_compile") 2>conftest.er1
19433 ac_status=$?
19434 grep -v '^ *+' conftest.er1 >conftest.err
19435 rm -f conftest.er1
19436 cat conftest.err >&5
19437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19438 (exit $ac_status); } && {
19439 test -z "$ac_c_werror_flag" ||
19440 test ! -s conftest.err
19441 } && test -s conftest.$ac_objext; then
19442 ac_cv_header_time_altzone=yes
19443 else
19444 echo "$as_me: failed program was:" >&5
19445 sed 's/^/| /' conftest.$ac_ext >&5
19447 ac_cv_header_time_altzone=no
19450 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19453 { echo "$as_me:$LINENO: result: $ac_cv_header_time_altzone" >&5
19454 echo "${ECHO_T}$ac_cv_header_time_altzone" >&6; }
19455 if test $ac_cv_header_time_altzone = yes; then
19457 cat >>confdefs.h <<\_ACEOF
19458 #define HAVE_ALTZONE 1
19459 _ACEOF
19463 was_it_defined=no
19464 { echo "$as_me:$LINENO: checking whether sys/select.h and sys/time.h may both be included" >&5
19465 echo $ECHO_N "checking whether sys/select.h and sys/time.h may both be included... $ECHO_C" >&6; }
19466 cat >conftest.$ac_ext <<_ACEOF
19467 /* confdefs.h. */
19468 _ACEOF
19469 cat confdefs.h >>conftest.$ac_ext
19470 cat >>conftest.$ac_ext <<_ACEOF
19471 /* end confdefs.h. */
19473 #include <sys/types.h>
19474 #include <sys/select.h>
19475 #include <sys/time.h>
19478 main ()
19482 return 0;
19484 _ACEOF
19485 rm -f conftest.$ac_objext
19486 if { (ac_try="$ac_compile"
19487 case "(($ac_try" in
19488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19489 *) ac_try_echo=$ac_try;;
19490 esac
19491 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19492 (eval "$ac_compile") 2>conftest.er1
19493 ac_status=$?
19494 grep -v '^ *+' conftest.er1 >conftest.err
19495 rm -f conftest.er1
19496 cat conftest.err >&5
19497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19498 (exit $ac_status); } && {
19499 test -z "$ac_c_werror_flag" ||
19500 test ! -s conftest.err
19501 } && test -s conftest.$ac_objext; then
19504 cat >>confdefs.h <<\_ACEOF
19505 #define SYS_SELECT_WITH_SYS_TIME 1
19506 _ACEOF
19508 was_it_defined=yes
19510 else
19511 echo "$as_me: failed program was:" >&5
19512 sed 's/^/| /' conftest.$ac_ext >&5
19517 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19518 { echo "$as_me:$LINENO: result: $was_it_defined" >&5
19519 echo "${ECHO_T}$was_it_defined" >&6; }
19521 { echo "$as_me:$LINENO: checking for addrinfo" >&5
19522 echo $ECHO_N "checking for addrinfo... $ECHO_C" >&6; }
19523 if test "${ac_cv_struct_addrinfo+set}" = set; then
19524 echo $ECHO_N "(cached) $ECHO_C" >&6
19525 else
19526 cat >conftest.$ac_ext <<_ACEOF
19527 /* confdefs.h. */
19528 _ACEOF
19529 cat confdefs.h >>conftest.$ac_ext
19530 cat >>conftest.$ac_ext <<_ACEOF
19531 /* end confdefs.h. */
19533 # include <netdb.h>
19535 main ()
19537 struct addrinfo a
19539 return 0;
19541 _ACEOF
19542 rm -f conftest.$ac_objext
19543 if { (ac_try="$ac_compile"
19544 case "(($ac_try" in
19545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19546 *) ac_try_echo=$ac_try;;
19547 esac
19548 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19549 (eval "$ac_compile") 2>conftest.er1
19550 ac_status=$?
19551 grep -v '^ *+' conftest.er1 >conftest.err
19552 rm -f conftest.er1
19553 cat conftest.err >&5
19554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19555 (exit $ac_status); } && {
19556 test -z "$ac_c_werror_flag" ||
19557 test ! -s conftest.err
19558 } && test -s conftest.$ac_objext; then
19559 ac_cv_struct_addrinfo=yes
19560 else
19561 echo "$as_me: failed program was:" >&5
19562 sed 's/^/| /' conftest.$ac_ext >&5
19564 ac_cv_struct_addrinfo=no
19567 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19570 { echo "$as_me:$LINENO: result: $ac_cv_struct_addrinfo" >&5
19571 echo "${ECHO_T}$ac_cv_struct_addrinfo" >&6; }
19572 if test $ac_cv_struct_addrinfo = yes; then
19574 cat >>confdefs.h <<\_ACEOF
19575 #define HAVE_ADDRINFO 1
19576 _ACEOF
19580 { echo "$as_me:$LINENO: checking for sockaddr_storage" >&5
19581 echo $ECHO_N "checking for sockaddr_storage... $ECHO_C" >&6; }
19582 if test "${ac_cv_struct_sockaddr_storage+set}" = set; then
19583 echo $ECHO_N "(cached) $ECHO_C" >&6
19584 else
19585 cat >conftest.$ac_ext <<_ACEOF
19586 /* confdefs.h. */
19587 _ACEOF
19588 cat confdefs.h >>conftest.$ac_ext
19589 cat >>conftest.$ac_ext <<_ACEOF
19590 /* end confdefs.h. */
19592 # include <sys/types.h>
19593 # include <sys/socket.h>
19595 main ()
19597 struct sockaddr_storage s
19599 return 0;
19601 _ACEOF
19602 rm -f conftest.$ac_objext
19603 if { (ac_try="$ac_compile"
19604 case "(($ac_try" in
19605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19606 *) ac_try_echo=$ac_try;;
19607 esac
19608 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19609 (eval "$ac_compile") 2>conftest.er1
19610 ac_status=$?
19611 grep -v '^ *+' conftest.er1 >conftest.err
19612 rm -f conftest.er1
19613 cat conftest.err >&5
19614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19615 (exit $ac_status); } && {
19616 test -z "$ac_c_werror_flag" ||
19617 test ! -s conftest.err
19618 } && test -s conftest.$ac_objext; then
19619 ac_cv_struct_sockaddr_storage=yes
19620 else
19621 echo "$as_me: failed program was:" >&5
19622 sed 's/^/| /' conftest.$ac_ext >&5
19624 ac_cv_struct_sockaddr_storage=no
19627 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19630 { echo "$as_me:$LINENO: result: $ac_cv_struct_sockaddr_storage" >&5
19631 echo "${ECHO_T}$ac_cv_struct_sockaddr_storage" >&6; }
19632 if test $ac_cv_struct_sockaddr_storage = yes; then
19634 cat >>confdefs.h <<\_ACEOF
19635 #define HAVE_SOCKADDR_STORAGE 1
19636 _ACEOF
19640 # checks for compiler characteristics
19643 { echo "$as_me:$LINENO: checking whether char is unsigned" >&5
19644 echo $ECHO_N "checking whether char is unsigned... $ECHO_C" >&6; }
19645 if test "${ac_cv_c_char_unsigned+set}" = set; then
19646 echo $ECHO_N "(cached) $ECHO_C" >&6
19647 else
19648 cat >conftest.$ac_ext <<_ACEOF
19649 /* confdefs.h. */
19650 _ACEOF
19651 cat confdefs.h >>conftest.$ac_ext
19652 cat >>conftest.$ac_ext <<_ACEOF
19653 /* end confdefs.h. */
19654 $ac_includes_default
19656 main ()
19658 static int test_array [1 - 2 * !(((char) -1) < 0)];
19659 test_array [0] = 0
19662 return 0;
19664 _ACEOF
19665 rm -f conftest.$ac_objext
19666 if { (ac_try="$ac_compile"
19667 case "(($ac_try" in
19668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19669 *) ac_try_echo=$ac_try;;
19670 esac
19671 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19672 (eval "$ac_compile") 2>conftest.er1
19673 ac_status=$?
19674 grep -v '^ *+' conftest.er1 >conftest.err
19675 rm -f conftest.er1
19676 cat conftest.err >&5
19677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19678 (exit $ac_status); } && {
19679 test -z "$ac_c_werror_flag" ||
19680 test ! -s conftest.err
19681 } && test -s conftest.$ac_objext; then
19682 ac_cv_c_char_unsigned=no
19683 else
19684 echo "$as_me: failed program was:" >&5
19685 sed 's/^/| /' conftest.$ac_ext >&5
19687 ac_cv_c_char_unsigned=yes
19690 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19692 { echo "$as_me:$LINENO: result: $ac_cv_c_char_unsigned" >&5
19693 echo "${ECHO_T}$ac_cv_c_char_unsigned" >&6; }
19694 if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
19695 cat >>confdefs.h <<\_ACEOF
19696 #define __CHAR_UNSIGNED__ 1
19697 _ACEOF
19701 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
19702 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
19703 if test "${ac_cv_c_const+set}" = set; then
19704 echo $ECHO_N "(cached) $ECHO_C" >&6
19705 else
19706 cat >conftest.$ac_ext <<_ACEOF
19707 /* confdefs.h. */
19708 _ACEOF
19709 cat confdefs.h >>conftest.$ac_ext
19710 cat >>conftest.$ac_ext <<_ACEOF
19711 /* end confdefs.h. */
19714 main ()
19716 /* FIXME: Include the comments suggested by Paul. */
19717 #ifndef __cplusplus
19718 /* Ultrix mips cc rejects this. */
19719 typedef int charset[2];
19720 const charset cs;
19721 /* SunOS 4.1.1 cc rejects this. */
19722 char const *const *pcpcc;
19723 char **ppc;
19724 /* NEC SVR4.0.2 mips cc rejects this. */
19725 struct point {int x, y;};
19726 static struct point const zero = {0,0};
19727 /* AIX XL C 1.02.0.0 rejects this.
19728 It does not let you subtract one const X* pointer from another in
19729 an arm of an if-expression whose if-part is not a constant
19730 expression */
19731 const char *g = "string";
19732 pcpcc = &g + (g ? g-g : 0);
19733 /* HPUX 7.0 cc rejects these. */
19734 ++pcpcc;
19735 ppc = (char**) pcpcc;
19736 pcpcc = (char const *const *) ppc;
19737 { /* SCO 3.2v4 cc rejects this. */
19738 char *t;
19739 char const *s = 0 ? (char *) 0 : (char const *) 0;
19741 *t++ = 0;
19742 if (s) return 0;
19744 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
19745 int x[] = {25, 17};
19746 const int *foo = &x[0];
19747 ++foo;
19749 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
19750 typedef const int *iptr;
19751 iptr p = 0;
19752 ++p;
19754 { /* AIX XL C 1.02.0.0 rejects this saying
19755 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
19756 struct s { int j; const int *ap[3]; };
19757 struct s *b; b->j = 5;
19759 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
19760 const int foo = 10;
19761 if (!foo) return 0;
19763 return !cs[0] && !zero.x;
19764 #endif
19767 return 0;
19769 _ACEOF
19770 rm -f conftest.$ac_objext
19771 if { (ac_try="$ac_compile"
19772 case "(($ac_try" in
19773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19774 *) ac_try_echo=$ac_try;;
19775 esac
19776 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19777 (eval "$ac_compile") 2>conftest.er1
19778 ac_status=$?
19779 grep -v '^ *+' conftest.er1 >conftest.err
19780 rm -f conftest.er1
19781 cat conftest.err >&5
19782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19783 (exit $ac_status); } && {
19784 test -z "$ac_c_werror_flag" ||
19785 test ! -s conftest.err
19786 } && test -s conftest.$ac_objext; then
19787 ac_cv_c_const=yes
19788 else
19789 echo "$as_me: failed program was:" >&5
19790 sed 's/^/| /' conftest.$ac_ext >&5
19792 ac_cv_c_const=no
19795 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19797 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
19798 echo "${ECHO_T}$ac_cv_c_const" >&6; }
19799 if test $ac_cv_c_const = no; then
19801 cat >>confdefs.h <<\_ACEOF
19802 #define const
19803 _ACEOF
19808 works=no
19809 { echo "$as_me:$LINENO: checking for working volatile" >&5
19810 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6; }
19811 cat >conftest.$ac_ext <<_ACEOF
19812 /* confdefs.h. */
19813 _ACEOF
19814 cat confdefs.h >>conftest.$ac_ext
19815 cat >>conftest.$ac_ext <<_ACEOF
19816 /* end confdefs.h. */
19819 main ()
19821 volatile int x; x = 0;
19823 return 0;
19825 _ACEOF
19826 rm -f conftest.$ac_objext
19827 if { (ac_try="$ac_compile"
19828 case "(($ac_try" in
19829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19830 *) ac_try_echo=$ac_try;;
19831 esac
19832 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19833 (eval "$ac_compile") 2>conftest.er1
19834 ac_status=$?
19835 grep -v '^ *+' conftest.er1 >conftest.err
19836 rm -f conftest.er1
19837 cat conftest.err >&5
19838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19839 (exit $ac_status); } && {
19840 test -z "$ac_c_werror_flag" ||
19841 test ! -s conftest.err
19842 } && test -s conftest.$ac_objext; then
19843 works=yes
19844 else
19845 echo "$as_me: failed program was:" >&5
19846 sed 's/^/| /' conftest.$ac_ext >&5
19849 cat >>confdefs.h <<\_ACEOF
19850 #define volatile
19851 _ACEOF
19856 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19857 { echo "$as_me:$LINENO: result: $works" >&5
19858 echo "${ECHO_T}$works" >&6; }
19860 works=no
19861 { echo "$as_me:$LINENO: checking for working signed char" >&5
19862 echo $ECHO_N "checking for working signed char... $ECHO_C" >&6; }
19863 cat >conftest.$ac_ext <<_ACEOF
19864 /* confdefs.h. */
19865 _ACEOF
19866 cat confdefs.h >>conftest.$ac_ext
19867 cat >>conftest.$ac_ext <<_ACEOF
19868 /* end confdefs.h. */
19871 main ()
19873 signed char c;
19875 return 0;
19877 _ACEOF
19878 rm -f conftest.$ac_objext
19879 if { (ac_try="$ac_compile"
19880 case "(($ac_try" in
19881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19882 *) ac_try_echo=$ac_try;;
19883 esac
19884 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19885 (eval "$ac_compile") 2>conftest.er1
19886 ac_status=$?
19887 grep -v '^ *+' conftest.er1 >conftest.err
19888 rm -f conftest.er1
19889 cat conftest.err >&5
19890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19891 (exit $ac_status); } && {
19892 test -z "$ac_c_werror_flag" ||
19893 test ! -s conftest.err
19894 } && test -s conftest.$ac_objext; then
19895 works=yes
19896 else
19897 echo "$as_me: failed program was:" >&5
19898 sed 's/^/| /' conftest.$ac_ext >&5
19901 cat >>confdefs.h <<\_ACEOF
19902 #define signed
19903 _ACEOF
19908 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19909 { echo "$as_me:$LINENO: result: $works" >&5
19910 echo "${ECHO_T}$works" >&6; }
19912 have_prototypes=no
19913 { echo "$as_me:$LINENO: checking for prototypes" >&5
19914 echo $ECHO_N "checking for prototypes... $ECHO_C" >&6; }
19915 cat >conftest.$ac_ext <<_ACEOF
19916 /* confdefs.h. */
19917 _ACEOF
19918 cat confdefs.h >>conftest.$ac_ext
19919 cat >>conftest.$ac_ext <<_ACEOF
19920 /* end confdefs.h. */
19921 int foo(int x) { return 0; }
19923 main ()
19925 return foo(10);
19927 return 0;
19929 _ACEOF
19930 rm -f conftest.$ac_objext
19931 if { (ac_try="$ac_compile"
19932 case "(($ac_try" in
19933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19934 *) ac_try_echo=$ac_try;;
19935 esac
19936 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19937 (eval "$ac_compile") 2>conftest.er1
19938 ac_status=$?
19939 grep -v '^ *+' conftest.er1 >conftest.err
19940 rm -f conftest.er1
19941 cat conftest.err >&5
19942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19943 (exit $ac_status); } && {
19944 test -z "$ac_c_werror_flag" ||
19945 test ! -s conftest.err
19946 } && test -s conftest.$ac_objext; then
19949 cat >>confdefs.h <<\_ACEOF
19950 #define HAVE_PROTOTYPES 1
19951 _ACEOF
19953 have_prototypes=yes
19955 else
19956 echo "$as_me: failed program was:" >&5
19957 sed 's/^/| /' conftest.$ac_ext >&5
19962 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19963 { echo "$as_me:$LINENO: result: $have_prototypes" >&5
19964 echo "${ECHO_T}$have_prototypes" >&6; }
19966 works=no
19967 { echo "$as_me:$LINENO: checking for variable length prototypes and stdarg.h" >&5
19968 echo $ECHO_N "checking for variable length prototypes and stdarg.h... $ECHO_C" >&6; }
19969 cat >conftest.$ac_ext <<_ACEOF
19970 /* confdefs.h. */
19971 _ACEOF
19972 cat confdefs.h >>conftest.$ac_ext
19973 cat >>conftest.$ac_ext <<_ACEOF
19974 /* end confdefs.h. */
19976 #include <stdarg.h>
19977 int foo(int x, ...) {
19978 va_list va;
19979 va_start(va, x);
19980 va_arg(va, int);
19981 va_arg(va, char *);
19982 va_arg(va, double);
19983 return 0;
19987 main ()
19989 return foo(10, "", 3.14);
19991 return 0;
19993 _ACEOF
19994 rm -f conftest.$ac_objext
19995 if { (ac_try="$ac_compile"
19996 case "(($ac_try" in
19997 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19998 *) ac_try_echo=$ac_try;;
19999 esac
20000 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20001 (eval "$ac_compile") 2>conftest.er1
20002 ac_status=$?
20003 grep -v '^ *+' conftest.er1 >conftest.err
20004 rm -f conftest.er1
20005 cat conftest.err >&5
20006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20007 (exit $ac_status); } && {
20008 test -z "$ac_c_werror_flag" ||
20009 test ! -s conftest.err
20010 } && test -s conftest.$ac_objext; then
20013 cat >>confdefs.h <<\_ACEOF
20014 #define HAVE_STDARG_PROTOTYPES 1
20015 _ACEOF
20017 works=yes
20019 else
20020 echo "$as_me: failed program was:" >&5
20021 sed 's/^/| /' conftest.$ac_ext >&5
20026 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20027 { echo "$as_me:$LINENO: result: $works" >&5
20028 echo "${ECHO_T}$works" >&6; }
20030 # check for socketpair
20031 { echo "$as_me:$LINENO: checking for socketpair" >&5
20032 echo $ECHO_N "checking for socketpair... $ECHO_C" >&6; }
20033 cat >conftest.$ac_ext <<_ACEOF
20034 /* confdefs.h. */
20035 _ACEOF
20036 cat confdefs.h >>conftest.$ac_ext
20037 cat >>conftest.$ac_ext <<_ACEOF
20038 /* end confdefs.h. */
20040 #include <sys/types.h>
20041 #include <sys/socket.h>
20044 main ()
20046 void *x=socketpair
20048 return 0;
20050 _ACEOF
20051 rm -f conftest.$ac_objext
20052 if { (ac_try="$ac_compile"
20053 case "(($ac_try" in
20054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20055 *) ac_try_echo=$ac_try;;
20056 esac
20057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20058 (eval "$ac_compile") 2>conftest.er1
20059 ac_status=$?
20060 grep -v '^ *+' conftest.er1 >conftest.err
20061 rm -f conftest.er1
20062 cat conftest.err >&5
20063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20064 (exit $ac_status); } && {
20065 test -z "$ac_c_werror_flag" ||
20066 test ! -s conftest.err
20067 } && test -s conftest.$ac_objext; then
20069 cat >>confdefs.h <<\_ACEOF
20070 #define HAVE_SOCKETPAIR 1
20071 _ACEOF
20073 { echo "$as_me:$LINENO: result: yes" >&5
20074 echo "${ECHO_T}yes" >&6; }
20075 else
20076 echo "$as_me: failed program was:" >&5
20077 sed 's/^/| /' conftest.$ac_ext >&5
20079 { echo "$as_me:$LINENO: result: no" >&5
20080 echo "${ECHO_T}no" >&6; }
20084 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20086 # check if sockaddr has sa_len member
20087 { echo "$as_me:$LINENO: checking if sockaddr has sa_len member" >&5
20088 echo $ECHO_N "checking if sockaddr has sa_len member... $ECHO_C" >&6; }
20089 cat >conftest.$ac_ext <<_ACEOF
20090 /* confdefs.h. */
20091 _ACEOF
20092 cat confdefs.h >>conftest.$ac_ext
20093 cat >>conftest.$ac_ext <<_ACEOF
20094 /* end confdefs.h. */
20095 #include <sys/types.h>
20096 #include <sys/socket.h>
20098 main ()
20100 struct sockaddr x;
20101 x.sa_len = 0;
20103 return 0;
20105 _ACEOF
20106 rm -f conftest.$ac_objext
20107 if { (ac_try="$ac_compile"
20108 case "(($ac_try" in
20109 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20110 *) ac_try_echo=$ac_try;;
20111 esac
20112 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20113 (eval "$ac_compile") 2>conftest.er1
20114 ac_status=$?
20115 grep -v '^ *+' conftest.er1 >conftest.err
20116 rm -f conftest.er1
20117 cat conftest.err >&5
20118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20119 (exit $ac_status); } && {
20120 test -z "$ac_c_werror_flag" ||
20121 test ! -s conftest.err
20122 } && test -s conftest.$ac_objext; then
20123 { echo "$as_me:$LINENO: result: yes" >&5
20124 echo "${ECHO_T}yes" >&6; }
20126 cat >>confdefs.h <<\_ACEOF
20127 #define HAVE_SOCKADDR_SA_LEN 1
20128 _ACEOF
20130 else
20131 echo "$as_me: failed program was:" >&5
20132 sed 's/^/| /' conftest.$ac_ext >&5
20134 { echo "$as_me:$LINENO: result: no" >&5
20135 echo "${ECHO_T}no" >&6; }
20138 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20140 va_list_is_array=no
20141 { echo "$as_me:$LINENO: checking whether va_list is an array" >&5
20142 echo $ECHO_N "checking whether va_list is an array... $ECHO_C" >&6; }
20143 cat >conftest.$ac_ext <<_ACEOF
20144 /* confdefs.h. */
20145 _ACEOF
20146 cat confdefs.h >>conftest.$ac_ext
20147 cat >>conftest.$ac_ext <<_ACEOF
20148 /* end confdefs.h. */
20150 #ifdef HAVE_STDARG_PROTOTYPES
20151 #include <stdarg.h>
20152 #else
20153 #include <varargs.h>
20154 #endif
20157 main ()
20159 va_list list1, list2; list1 = list2;
20161 return 0;
20163 _ACEOF
20164 rm -f conftest.$ac_objext
20165 if { (ac_try="$ac_compile"
20166 case "(($ac_try" in
20167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20168 *) ac_try_echo=$ac_try;;
20169 esac
20170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20171 (eval "$ac_compile") 2>conftest.er1
20172 ac_status=$?
20173 grep -v '^ *+' conftest.er1 >conftest.err
20174 rm -f conftest.er1
20175 cat conftest.err >&5
20176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20177 (exit $ac_status); } && {
20178 test -z "$ac_c_werror_flag" ||
20179 test ! -s conftest.err
20180 } && test -s conftest.$ac_objext; then
20182 else
20183 echo "$as_me: failed program was:" >&5
20184 sed 's/^/| /' conftest.$ac_ext >&5
20188 cat >>confdefs.h <<\_ACEOF
20189 #define VA_LIST_IS_ARRAY 1
20190 _ACEOF
20192 va_list_is_array=yes
20196 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20197 { echo "$as_me:$LINENO: result: $va_list_is_array" >&5
20198 echo "${ECHO_T}$va_list_is_array" >&6; }
20200 # sigh -- gethostbyname_r is a mess; it can have 3, 5 or 6 arguments :-(
20204 { echo "$as_me:$LINENO: checking for gethostbyname_r" >&5
20205 echo $ECHO_N "checking for gethostbyname_r... $ECHO_C" >&6; }
20206 if test "${ac_cv_func_gethostbyname_r+set}" = set; then
20207 echo $ECHO_N "(cached) $ECHO_C" >&6
20208 else
20209 cat >conftest.$ac_ext <<_ACEOF
20210 /* confdefs.h. */
20211 _ACEOF
20212 cat confdefs.h >>conftest.$ac_ext
20213 cat >>conftest.$ac_ext <<_ACEOF
20214 /* end confdefs.h. */
20215 /* Define gethostbyname_r to an innocuous variant, in case <limits.h> declares gethostbyname_r.
20216 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20217 #define gethostbyname_r innocuous_gethostbyname_r
20219 /* System header to define __stub macros and hopefully few prototypes,
20220 which can conflict with char gethostbyname_r (); below.
20221 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20222 <limits.h> exists even on freestanding compilers. */
20224 #ifdef __STDC__
20225 # include <limits.h>
20226 #else
20227 # include <assert.h>
20228 #endif
20230 #undef gethostbyname_r
20232 /* Override any GCC internal prototype to avoid an error.
20233 Use char because int might match the return type of a GCC
20234 builtin and then its argument prototype would still apply. */
20235 #ifdef __cplusplus
20236 extern "C"
20237 #endif
20238 char gethostbyname_r ();
20239 /* The GNU C library defines this for functions which it implements
20240 to always fail with ENOSYS. Some functions are actually named
20241 something starting with __ and the normal name is an alias. */
20242 #if defined __stub_gethostbyname_r || defined __stub___gethostbyname_r
20243 choke me
20244 #endif
20247 main ()
20249 return gethostbyname_r ();
20251 return 0;
20253 _ACEOF
20254 rm -f conftest.$ac_objext conftest$ac_exeext
20255 if { (ac_try="$ac_link"
20256 case "(($ac_try" in
20257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20258 *) ac_try_echo=$ac_try;;
20259 esac
20260 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20261 (eval "$ac_link") 2>conftest.er1
20262 ac_status=$?
20263 grep -v '^ *+' conftest.er1 >conftest.err
20264 rm -f conftest.er1
20265 cat conftest.err >&5
20266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20267 (exit $ac_status); } && {
20268 test -z "$ac_c_werror_flag" ||
20269 test ! -s conftest.err
20270 } && test -s conftest$ac_exeext &&
20271 $as_test_x conftest$ac_exeext; then
20272 ac_cv_func_gethostbyname_r=yes
20273 else
20274 echo "$as_me: failed program was:" >&5
20275 sed 's/^/| /' conftest.$ac_ext >&5
20277 ac_cv_func_gethostbyname_r=no
20280 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20281 conftest$ac_exeext conftest.$ac_ext
20283 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname_r" >&5
20284 echo "${ECHO_T}$ac_cv_func_gethostbyname_r" >&6; }
20285 if test $ac_cv_func_gethostbyname_r = yes; then
20287 cat >>confdefs.h <<\_ACEOF
20288 #define HAVE_GETHOSTBYNAME_R 1
20289 _ACEOF
20291 { echo "$as_me:$LINENO: checking gethostbyname_r with 6 args" >&5
20292 echo $ECHO_N "checking gethostbyname_r with 6 args... $ECHO_C" >&6; }
20293 OLD_CFLAGS=$CFLAGS
20294 CFLAGS="$CFLAGS $MY_CPPFLAGS $MY_THREAD_CPPFLAGS $MY_CFLAGS"
20295 cat >conftest.$ac_ext <<_ACEOF
20296 /* confdefs.h. */
20297 _ACEOF
20298 cat confdefs.h >>conftest.$ac_ext
20299 cat >>conftest.$ac_ext <<_ACEOF
20300 /* end confdefs.h. */
20302 # include <netdb.h>
20305 main ()
20308 char *name;
20309 struct hostent *he, *res;
20310 char buffer[2048];
20311 int buflen = 2048;
20312 int h_errnop;
20314 (void) gethostbyname_r(name, he, buffer, buflen, &res, &h_errnop)
20317 return 0;
20319 _ACEOF
20320 rm -f conftest.$ac_objext
20321 if { (ac_try="$ac_compile"
20322 case "(($ac_try" in
20323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20324 *) ac_try_echo=$ac_try;;
20325 esac
20326 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20327 (eval "$ac_compile") 2>conftest.er1
20328 ac_status=$?
20329 grep -v '^ *+' conftest.er1 >conftest.err
20330 rm -f conftest.er1
20331 cat conftest.err >&5
20332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20333 (exit $ac_status); } && {
20334 test -z "$ac_c_werror_flag" ||
20335 test ! -s conftest.err
20336 } && test -s conftest.$ac_objext; then
20338 cat >>confdefs.h <<\_ACEOF
20339 #define HAVE_GETHOSTBYNAME_R 1
20340 _ACEOF
20343 cat >>confdefs.h <<\_ACEOF
20344 #define HAVE_GETHOSTBYNAME_R_6_ARG 1
20345 _ACEOF
20347 { echo "$as_me:$LINENO: result: yes" >&5
20348 echo "${ECHO_T}yes" >&6; }
20350 else
20351 echo "$as_me: failed program was:" >&5
20352 sed 's/^/| /' conftest.$ac_ext >&5
20355 { echo "$as_me:$LINENO: result: no" >&5
20356 echo "${ECHO_T}no" >&6; }
20357 { echo "$as_me:$LINENO: checking gethostbyname_r with 5 args" >&5
20358 echo $ECHO_N "checking gethostbyname_r with 5 args... $ECHO_C" >&6; }
20359 cat >conftest.$ac_ext <<_ACEOF
20360 /* confdefs.h. */
20361 _ACEOF
20362 cat confdefs.h >>conftest.$ac_ext
20363 cat >>conftest.$ac_ext <<_ACEOF
20364 /* end confdefs.h. */
20366 # include <netdb.h>
20369 main ()
20372 char *name;
20373 struct hostent *he;
20374 char buffer[2048];
20375 int buflen = 2048;
20376 int h_errnop;
20378 (void) gethostbyname_r(name, he, buffer, buflen, &h_errnop)
20381 return 0;
20383 _ACEOF
20384 rm -f conftest.$ac_objext
20385 if { (ac_try="$ac_compile"
20386 case "(($ac_try" in
20387 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20388 *) ac_try_echo=$ac_try;;
20389 esac
20390 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20391 (eval "$ac_compile") 2>conftest.er1
20392 ac_status=$?
20393 grep -v '^ *+' conftest.er1 >conftest.err
20394 rm -f conftest.er1
20395 cat conftest.err >&5
20396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20397 (exit $ac_status); } && {
20398 test -z "$ac_c_werror_flag" ||
20399 test ! -s conftest.err
20400 } && test -s conftest.$ac_objext; then
20402 cat >>confdefs.h <<\_ACEOF
20403 #define HAVE_GETHOSTBYNAME_R 1
20404 _ACEOF
20407 cat >>confdefs.h <<\_ACEOF
20408 #define HAVE_GETHOSTBYNAME_R_5_ARG 1
20409 _ACEOF
20411 { echo "$as_me:$LINENO: result: yes" >&5
20412 echo "${ECHO_T}yes" >&6; }
20414 else
20415 echo "$as_me: failed program was:" >&5
20416 sed 's/^/| /' conftest.$ac_ext >&5
20419 { echo "$as_me:$LINENO: result: no" >&5
20420 echo "${ECHO_T}no" >&6; }
20421 { echo "$as_me:$LINENO: checking gethostbyname_r with 3 args" >&5
20422 echo $ECHO_N "checking gethostbyname_r with 3 args... $ECHO_C" >&6; }
20423 cat >conftest.$ac_ext <<_ACEOF
20424 /* confdefs.h. */
20425 _ACEOF
20426 cat confdefs.h >>conftest.$ac_ext
20427 cat >>conftest.$ac_ext <<_ACEOF
20428 /* end confdefs.h. */
20430 # include <netdb.h>
20433 main ()
20436 char *name;
20437 struct hostent *he;
20438 struct hostent_data data;
20440 (void) gethostbyname_r(name, he, &data);
20443 return 0;
20445 _ACEOF
20446 rm -f conftest.$ac_objext
20447 if { (ac_try="$ac_compile"
20448 case "(($ac_try" in
20449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20450 *) ac_try_echo=$ac_try;;
20451 esac
20452 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20453 (eval "$ac_compile") 2>conftest.er1
20454 ac_status=$?
20455 grep -v '^ *+' conftest.er1 >conftest.err
20456 rm -f conftest.er1
20457 cat conftest.err >&5
20458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20459 (exit $ac_status); } && {
20460 test -z "$ac_c_werror_flag" ||
20461 test ! -s conftest.err
20462 } && test -s conftest.$ac_objext; then
20464 cat >>confdefs.h <<\_ACEOF
20465 #define HAVE_GETHOSTBYNAME_R 1
20466 _ACEOF
20469 cat >>confdefs.h <<\_ACEOF
20470 #define HAVE_GETHOSTBYNAME_R_3_ARG 1
20471 _ACEOF
20473 { echo "$as_me:$LINENO: result: yes" >&5
20474 echo "${ECHO_T}yes" >&6; }
20476 else
20477 echo "$as_me: failed program was:" >&5
20478 sed 's/^/| /' conftest.$ac_ext >&5
20481 { echo "$as_me:$LINENO: result: no" >&5
20482 echo "${ECHO_T}no" >&6; }
20486 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20490 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20494 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20495 CFLAGS=$OLD_CFLAGS
20497 else
20500 for ac_func in gethostbyname
20502 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20503 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20504 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20505 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20506 echo $ECHO_N "(cached) $ECHO_C" >&6
20507 else
20508 cat >conftest.$ac_ext <<_ACEOF
20509 /* confdefs.h. */
20510 _ACEOF
20511 cat confdefs.h >>conftest.$ac_ext
20512 cat >>conftest.$ac_ext <<_ACEOF
20513 /* end confdefs.h. */
20514 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20515 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20516 #define $ac_func innocuous_$ac_func
20518 /* System header to define __stub macros and hopefully few prototypes,
20519 which can conflict with char $ac_func (); below.
20520 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20521 <limits.h> exists even on freestanding compilers. */
20523 #ifdef __STDC__
20524 # include <limits.h>
20525 #else
20526 # include <assert.h>
20527 #endif
20529 #undef $ac_func
20531 /* Override any GCC internal prototype to avoid an error.
20532 Use char because int might match the return type of a GCC
20533 builtin and then its argument prototype would still apply. */
20534 #ifdef __cplusplus
20535 extern "C"
20536 #endif
20537 char $ac_func ();
20538 /* The GNU C library defines this for functions which it implements
20539 to always fail with ENOSYS. Some functions are actually named
20540 something starting with __ and the normal name is an alias. */
20541 #if defined __stub_$ac_func || defined __stub___$ac_func
20542 choke me
20543 #endif
20546 main ()
20548 return $ac_func ();
20550 return 0;
20552 _ACEOF
20553 rm -f conftest.$ac_objext conftest$ac_exeext
20554 if { (ac_try="$ac_link"
20555 case "(($ac_try" in
20556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20557 *) ac_try_echo=$ac_try;;
20558 esac
20559 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20560 (eval "$ac_link") 2>conftest.er1
20561 ac_status=$?
20562 grep -v '^ *+' conftest.er1 >conftest.err
20563 rm -f conftest.er1
20564 cat conftest.err >&5
20565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20566 (exit $ac_status); } && {
20567 test -z "$ac_c_werror_flag" ||
20568 test ! -s conftest.err
20569 } && test -s conftest$ac_exeext &&
20570 $as_test_x conftest$ac_exeext; then
20571 eval "$as_ac_var=yes"
20572 else
20573 echo "$as_me: failed program was:" >&5
20574 sed 's/^/| /' conftest.$ac_ext >&5
20576 eval "$as_ac_var=no"
20579 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20580 conftest$ac_exeext conftest.$ac_ext
20582 ac_res=`eval echo '${'$as_ac_var'}'`
20583 { echo "$as_me:$LINENO: result: $ac_res" >&5
20584 echo "${ECHO_T}$ac_res" >&6; }
20585 if test `eval echo '${'$as_ac_var'}'` = yes; then
20586 cat >>confdefs.h <<_ACEOF
20587 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20588 _ACEOF
20591 done
20602 # checks for system services
20603 # (none yet)
20605 # Linux requires this for correct f.p. operations
20606 { echo "$as_me:$LINENO: checking for __fpu_control" >&5
20607 echo $ECHO_N "checking for __fpu_control... $ECHO_C" >&6; }
20608 if test "${ac_cv_func___fpu_control+set}" = set; then
20609 echo $ECHO_N "(cached) $ECHO_C" >&6
20610 else
20611 cat >conftest.$ac_ext <<_ACEOF
20612 /* confdefs.h. */
20613 _ACEOF
20614 cat confdefs.h >>conftest.$ac_ext
20615 cat >>conftest.$ac_ext <<_ACEOF
20616 /* end confdefs.h. */
20617 /* Define __fpu_control to an innocuous variant, in case <limits.h> declares __fpu_control.
20618 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20619 #define __fpu_control innocuous___fpu_control
20621 /* System header to define __stub macros and hopefully few prototypes,
20622 which can conflict with char __fpu_control (); below.
20623 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20624 <limits.h> exists even on freestanding compilers. */
20626 #ifdef __STDC__
20627 # include <limits.h>
20628 #else
20629 # include <assert.h>
20630 #endif
20632 #undef __fpu_control
20634 /* Override any GCC internal prototype to avoid an error.
20635 Use char because int might match the return type of a GCC
20636 builtin and then its argument prototype would still apply. */
20637 #ifdef __cplusplus
20638 extern "C"
20639 #endif
20640 char __fpu_control ();
20641 /* The GNU C library defines this for functions which it implements
20642 to always fail with ENOSYS. Some functions are actually named
20643 something starting with __ and the normal name is an alias. */
20644 #if defined __stub___fpu_control || defined __stub_____fpu_control
20645 choke me
20646 #endif
20649 main ()
20651 return __fpu_control ();
20653 return 0;
20655 _ACEOF
20656 rm -f conftest.$ac_objext conftest$ac_exeext
20657 if { (ac_try="$ac_link"
20658 case "(($ac_try" in
20659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20660 *) ac_try_echo=$ac_try;;
20661 esac
20662 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20663 (eval "$ac_link") 2>conftest.er1
20664 ac_status=$?
20665 grep -v '^ *+' conftest.er1 >conftest.err
20666 rm -f conftest.er1
20667 cat conftest.err >&5
20668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20669 (exit $ac_status); } && {
20670 test -z "$ac_c_werror_flag" ||
20671 test ! -s conftest.err
20672 } && test -s conftest$ac_exeext &&
20673 $as_test_x conftest$ac_exeext; then
20674 ac_cv_func___fpu_control=yes
20675 else
20676 echo "$as_me: failed program was:" >&5
20677 sed 's/^/| /' conftest.$ac_ext >&5
20679 ac_cv_func___fpu_control=no
20682 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20683 conftest$ac_exeext conftest.$ac_ext
20685 { echo "$as_me:$LINENO: result: $ac_cv_func___fpu_control" >&5
20686 echo "${ECHO_T}$ac_cv_func___fpu_control" >&6; }
20687 if test $ac_cv_func___fpu_control = yes; then
20689 else
20691 { echo "$as_me:$LINENO: checking for __fpu_control in -lieee" >&5
20692 echo $ECHO_N "checking for __fpu_control in -lieee... $ECHO_C" >&6; }
20693 if test "${ac_cv_lib_ieee___fpu_control+set}" = set; then
20694 echo $ECHO_N "(cached) $ECHO_C" >&6
20695 else
20696 ac_check_lib_save_LIBS=$LIBS
20697 LIBS="-lieee $LIBS"
20698 cat >conftest.$ac_ext <<_ACEOF
20699 /* confdefs.h. */
20700 _ACEOF
20701 cat confdefs.h >>conftest.$ac_ext
20702 cat >>conftest.$ac_ext <<_ACEOF
20703 /* end confdefs.h. */
20705 /* Override any GCC internal prototype to avoid an error.
20706 Use char because int might match the return type of a GCC
20707 builtin and then its argument prototype would still apply. */
20708 #ifdef __cplusplus
20709 extern "C"
20710 #endif
20711 char __fpu_control ();
20713 main ()
20715 return __fpu_control ();
20717 return 0;
20719 _ACEOF
20720 rm -f conftest.$ac_objext conftest$ac_exeext
20721 if { (ac_try="$ac_link"
20722 case "(($ac_try" in
20723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20724 *) ac_try_echo=$ac_try;;
20725 esac
20726 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20727 (eval "$ac_link") 2>conftest.er1
20728 ac_status=$?
20729 grep -v '^ *+' conftest.er1 >conftest.err
20730 rm -f conftest.er1
20731 cat conftest.err >&5
20732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20733 (exit $ac_status); } && {
20734 test -z "$ac_c_werror_flag" ||
20735 test ! -s conftest.err
20736 } && test -s conftest$ac_exeext &&
20737 $as_test_x conftest$ac_exeext; then
20738 ac_cv_lib_ieee___fpu_control=yes
20739 else
20740 echo "$as_me: failed program was:" >&5
20741 sed 's/^/| /' conftest.$ac_ext >&5
20743 ac_cv_lib_ieee___fpu_control=no
20746 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20747 conftest$ac_exeext conftest.$ac_ext
20748 LIBS=$ac_check_lib_save_LIBS
20750 { echo "$as_me:$LINENO: result: $ac_cv_lib_ieee___fpu_control" >&5
20751 echo "${ECHO_T}$ac_cv_lib_ieee___fpu_control" >&6; }
20752 if test $ac_cv_lib_ieee___fpu_control = yes; then
20753 cat >>confdefs.h <<_ACEOF
20754 #define HAVE_LIBIEEE 1
20755 _ACEOF
20757 LIBS="-lieee $LIBS"
20765 # Check for --with-fpectl
20766 { echo "$as_me:$LINENO: checking for --with-fpectl" >&5
20767 echo $ECHO_N "checking for --with-fpectl... $ECHO_C" >&6; }
20769 # Check whether --with-fpectl was given.
20770 if test "${with_fpectl+set}" = set; then
20771 withval=$with_fpectl;
20772 if test "$withval" != no
20773 then
20775 cat >>confdefs.h <<\_ACEOF
20776 #define WANT_SIGFPE_HANDLER 1
20777 _ACEOF
20779 { echo "$as_me:$LINENO: result: yes" >&5
20780 echo "${ECHO_T}yes" >&6; }
20781 else { echo "$as_me:$LINENO: result: no" >&5
20782 echo "${ECHO_T}no" >&6; }
20784 else
20785 { echo "$as_me:$LINENO: result: no" >&5
20786 echo "${ECHO_T}no" >&6; }
20790 # check for --with-libm=...
20792 case $ac_sys_system in
20793 Darwin) ;;
20794 BeOS) ;;
20795 *) LIBM=-lm
20796 esac
20797 { echo "$as_me:$LINENO: checking for --with-libm=STRING" >&5
20798 echo $ECHO_N "checking for --with-libm=STRING... $ECHO_C" >&6; }
20800 # Check whether --with-libm was given.
20801 if test "${with_libm+set}" = set; then
20802 withval=$with_libm;
20803 if test "$withval" = no
20804 then LIBM=
20805 { echo "$as_me:$LINENO: result: force LIBM empty" >&5
20806 echo "${ECHO_T}force LIBM empty" >&6; }
20807 elif test "$withval" != yes
20808 then LIBM=$withval
20809 { echo "$as_me:$LINENO: result: set LIBM=\"$withval\"" >&5
20810 echo "${ECHO_T}set LIBM=\"$withval\"" >&6; }
20811 else { { echo "$as_me:$LINENO: error: proper usage is --with-libm=STRING" >&5
20812 echo "$as_me: error: proper usage is --with-libm=STRING" >&2;}
20813 { (exit 1); exit 1; }; }
20815 else
20816 { echo "$as_me:$LINENO: result: default LIBM=\"$LIBM\"" >&5
20817 echo "${ECHO_T}default LIBM=\"$LIBM\"" >&6; }
20821 # check for --with-libc=...
20823 { echo "$as_me:$LINENO: checking for --with-libc=STRING" >&5
20824 echo $ECHO_N "checking for --with-libc=STRING... $ECHO_C" >&6; }
20826 # Check whether --with-libc was given.
20827 if test "${with_libc+set}" = set; then
20828 withval=$with_libc;
20829 if test "$withval" = no
20830 then LIBC=
20831 { echo "$as_me:$LINENO: result: force LIBC empty" >&5
20832 echo "${ECHO_T}force LIBC empty" >&6; }
20833 elif test "$withval" != yes
20834 then LIBC=$withval
20835 { echo "$as_me:$LINENO: result: set LIBC=\"$withval\"" >&5
20836 echo "${ECHO_T}set LIBC=\"$withval\"" >&6; }
20837 else { { echo "$as_me:$LINENO: error: proper usage is --with-libc=STRING" >&5
20838 echo "$as_me: error: proper usage is --with-libc=STRING" >&2;}
20839 { (exit 1); exit 1; }; }
20841 else
20842 { echo "$as_me:$LINENO: result: default LIBC=\"$LIBC\"" >&5
20843 echo "${ECHO_T}default LIBC=\"$LIBC\"" >&6; }
20847 # ************************************
20848 # * Check for mathematical functions *
20849 # ************************************
20850 LIBS_SAVE=$LIBS
20851 LIBS="$LIBS $LIBM"
20853 for ac_func in hypot
20855 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20856 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20857 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20858 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20859 echo $ECHO_N "(cached) $ECHO_C" >&6
20860 else
20861 cat >conftest.$ac_ext <<_ACEOF
20862 /* confdefs.h. */
20863 _ACEOF
20864 cat confdefs.h >>conftest.$ac_ext
20865 cat >>conftest.$ac_ext <<_ACEOF
20866 /* end confdefs.h. */
20867 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20868 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20869 #define $ac_func innocuous_$ac_func
20871 /* System header to define __stub macros and hopefully few prototypes,
20872 which can conflict with char $ac_func (); below.
20873 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20874 <limits.h> exists even on freestanding compilers. */
20876 #ifdef __STDC__
20877 # include <limits.h>
20878 #else
20879 # include <assert.h>
20880 #endif
20882 #undef $ac_func
20884 /* Override any GCC internal prototype to avoid an error.
20885 Use char because int might match the return type of a GCC
20886 builtin and then its argument prototype would still apply. */
20887 #ifdef __cplusplus
20888 extern "C"
20889 #endif
20890 char $ac_func ();
20891 /* The GNU C library defines this for functions which it implements
20892 to always fail with ENOSYS. Some functions are actually named
20893 something starting with __ and the normal name is an alias. */
20894 #if defined __stub_$ac_func || defined __stub___$ac_func
20895 choke me
20896 #endif
20899 main ()
20901 return $ac_func ();
20903 return 0;
20905 _ACEOF
20906 rm -f conftest.$ac_objext conftest$ac_exeext
20907 if { (ac_try="$ac_link"
20908 case "(($ac_try" in
20909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20910 *) ac_try_echo=$ac_try;;
20911 esac
20912 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20913 (eval "$ac_link") 2>conftest.er1
20914 ac_status=$?
20915 grep -v '^ *+' conftest.er1 >conftest.err
20916 rm -f conftest.er1
20917 cat conftest.err >&5
20918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20919 (exit $ac_status); } && {
20920 test -z "$ac_c_werror_flag" ||
20921 test ! -s conftest.err
20922 } && test -s conftest$ac_exeext &&
20923 $as_test_x conftest$ac_exeext; then
20924 eval "$as_ac_var=yes"
20925 else
20926 echo "$as_me: failed program was:" >&5
20927 sed 's/^/| /' conftest.$ac_ext >&5
20929 eval "$as_ac_var=no"
20932 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20933 conftest$ac_exeext conftest.$ac_ext
20935 ac_res=`eval echo '${'$as_ac_var'}'`
20936 { echo "$as_me:$LINENO: result: $ac_res" >&5
20937 echo "${ECHO_T}$ac_res" >&6; }
20938 if test `eval echo '${'$as_ac_var'}'` = yes; then
20939 cat >>confdefs.h <<_ACEOF
20940 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20941 _ACEOF
20943 else
20944 case " $LIBOBJS " in
20945 *" $ac_func.$ac_objext "* ) ;;
20946 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
20948 esac
20951 done
20964 for ac_func in acosh asinh atanh copysign expm1 finite isinf isnan log1p
20966 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20967 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20968 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20969 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20970 echo $ECHO_N "(cached) $ECHO_C" >&6
20971 else
20972 cat >conftest.$ac_ext <<_ACEOF
20973 /* confdefs.h. */
20974 _ACEOF
20975 cat confdefs.h >>conftest.$ac_ext
20976 cat >>conftest.$ac_ext <<_ACEOF
20977 /* end confdefs.h. */
20978 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20979 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20980 #define $ac_func innocuous_$ac_func
20982 /* System header to define __stub macros and hopefully few prototypes,
20983 which can conflict with char $ac_func (); below.
20984 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20985 <limits.h> exists even on freestanding compilers. */
20987 #ifdef __STDC__
20988 # include <limits.h>
20989 #else
20990 # include <assert.h>
20991 #endif
20993 #undef $ac_func
20995 /* Override any GCC internal prototype to avoid an error.
20996 Use char because int might match the return type of a GCC
20997 builtin and then its argument prototype would still apply. */
20998 #ifdef __cplusplus
20999 extern "C"
21000 #endif
21001 char $ac_func ();
21002 /* The GNU C library defines this for functions which it implements
21003 to always fail with ENOSYS. Some functions are actually named
21004 something starting with __ and the normal name is an alias. */
21005 #if defined __stub_$ac_func || defined __stub___$ac_func
21006 choke me
21007 #endif
21010 main ()
21012 return $ac_func ();
21014 return 0;
21016 _ACEOF
21017 rm -f conftest.$ac_objext conftest$ac_exeext
21018 if { (ac_try="$ac_link"
21019 case "(($ac_try" in
21020 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21021 *) ac_try_echo=$ac_try;;
21022 esac
21023 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21024 (eval "$ac_link") 2>conftest.er1
21025 ac_status=$?
21026 grep -v '^ *+' conftest.er1 >conftest.err
21027 rm -f conftest.er1
21028 cat conftest.err >&5
21029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21030 (exit $ac_status); } && {
21031 test -z "$ac_c_werror_flag" ||
21032 test ! -s conftest.err
21033 } && test -s conftest$ac_exeext &&
21034 $as_test_x conftest$ac_exeext; then
21035 eval "$as_ac_var=yes"
21036 else
21037 echo "$as_me: failed program was:" >&5
21038 sed 's/^/| /' conftest.$ac_ext >&5
21040 eval "$as_ac_var=no"
21043 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21044 conftest$ac_exeext conftest.$ac_ext
21046 ac_res=`eval echo '${'$as_ac_var'}'`
21047 { echo "$as_me:$LINENO: result: $ac_res" >&5
21048 echo "${ECHO_T}$ac_res" >&6; }
21049 if test `eval echo '${'$as_ac_var'}'` = yes; then
21050 cat >>confdefs.h <<_ACEOF
21051 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21052 _ACEOF
21055 done
21058 LIBS=$LIBS_SAVE
21060 # check for wchar.h
21061 if test "${ac_cv_header_wchar_h+set}" = set; then
21062 { echo "$as_me:$LINENO: checking for wchar.h" >&5
21063 echo $ECHO_N "checking for wchar.h... $ECHO_C" >&6; }
21064 if test "${ac_cv_header_wchar_h+set}" = set; then
21065 echo $ECHO_N "(cached) $ECHO_C" >&6
21067 { echo "$as_me:$LINENO: result: $ac_cv_header_wchar_h" >&5
21068 echo "${ECHO_T}$ac_cv_header_wchar_h" >&6; }
21069 else
21070 # Is the header compilable?
21071 { echo "$as_me:$LINENO: checking wchar.h usability" >&5
21072 echo $ECHO_N "checking wchar.h usability... $ECHO_C" >&6; }
21073 cat >conftest.$ac_ext <<_ACEOF
21074 /* confdefs.h. */
21075 _ACEOF
21076 cat confdefs.h >>conftest.$ac_ext
21077 cat >>conftest.$ac_ext <<_ACEOF
21078 /* end confdefs.h. */
21079 $ac_includes_default
21080 #include <wchar.h>
21081 _ACEOF
21082 rm -f conftest.$ac_objext
21083 if { (ac_try="$ac_compile"
21084 case "(($ac_try" in
21085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21086 *) ac_try_echo=$ac_try;;
21087 esac
21088 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21089 (eval "$ac_compile") 2>conftest.er1
21090 ac_status=$?
21091 grep -v '^ *+' conftest.er1 >conftest.err
21092 rm -f conftest.er1
21093 cat conftest.err >&5
21094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21095 (exit $ac_status); } && {
21096 test -z "$ac_c_werror_flag" ||
21097 test ! -s conftest.err
21098 } && test -s conftest.$ac_objext; then
21099 ac_header_compiler=yes
21100 else
21101 echo "$as_me: failed program was:" >&5
21102 sed 's/^/| /' conftest.$ac_ext >&5
21104 ac_header_compiler=no
21107 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21108 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21109 echo "${ECHO_T}$ac_header_compiler" >&6; }
21111 # Is the header present?
21112 { echo "$as_me:$LINENO: checking wchar.h presence" >&5
21113 echo $ECHO_N "checking wchar.h presence... $ECHO_C" >&6; }
21114 cat >conftest.$ac_ext <<_ACEOF
21115 /* confdefs.h. */
21116 _ACEOF
21117 cat confdefs.h >>conftest.$ac_ext
21118 cat >>conftest.$ac_ext <<_ACEOF
21119 /* end confdefs.h. */
21120 #include <wchar.h>
21121 _ACEOF
21122 if { (ac_try="$ac_cpp conftest.$ac_ext"
21123 case "(($ac_try" in
21124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21125 *) ac_try_echo=$ac_try;;
21126 esac
21127 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21128 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21129 ac_status=$?
21130 grep -v '^ *+' conftest.er1 >conftest.err
21131 rm -f conftest.er1
21132 cat conftest.err >&5
21133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21134 (exit $ac_status); } >/dev/null && {
21135 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21136 test ! -s conftest.err
21137 }; then
21138 ac_header_preproc=yes
21139 else
21140 echo "$as_me: failed program was:" >&5
21141 sed 's/^/| /' conftest.$ac_ext >&5
21143 ac_header_preproc=no
21146 rm -f conftest.err conftest.$ac_ext
21147 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21148 echo "${ECHO_T}$ac_header_preproc" >&6; }
21150 # So? What about this header?
21151 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21152 yes:no: )
21153 { echo "$as_me:$LINENO: WARNING: wchar.h: accepted by the compiler, rejected by the preprocessor!" >&5
21154 echo "$as_me: WARNING: wchar.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21155 { echo "$as_me:$LINENO: WARNING: wchar.h: proceeding with the compiler's result" >&5
21156 echo "$as_me: WARNING: wchar.h: proceeding with the compiler's result" >&2;}
21157 ac_header_preproc=yes
21159 no:yes:* )
21160 { echo "$as_me:$LINENO: WARNING: wchar.h: present but cannot be compiled" >&5
21161 echo "$as_me: WARNING: wchar.h: present but cannot be compiled" >&2;}
21162 { echo "$as_me:$LINENO: WARNING: wchar.h: check for missing prerequisite headers?" >&5
21163 echo "$as_me: WARNING: wchar.h: check for missing prerequisite headers?" >&2;}
21164 { echo "$as_me:$LINENO: WARNING: wchar.h: see the Autoconf documentation" >&5
21165 echo "$as_me: WARNING: wchar.h: see the Autoconf documentation" >&2;}
21166 { echo "$as_me:$LINENO: WARNING: wchar.h: section \"Present But Cannot Be Compiled\"" >&5
21167 echo "$as_me: WARNING: wchar.h: section \"Present But Cannot Be Compiled\"" >&2;}
21168 { echo "$as_me:$LINENO: WARNING: wchar.h: proceeding with the preprocessor's result" >&5
21169 echo "$as_me: WARNING: wchar.h: proceeding with the preprocessor's result" >&2;}
21170 { echo "$as_me:$LINENO: WARNING: wchar.h: in the future, the compiler will take precedence" >&5
21171 echo "$as_me: WARNING: wchar.h: in the future, the compiler will take precedence" >&2;}
21172 ( cat <<\_ASBOX
21173 ## ------------------------------------------------ ##
21174 ## Report this to http://www.python.org/python-bugs ##
21175 ## ------------------------------------------------ ##
21176 _ASBOX
21177 ) | sed "s/^/$as_me: WARNING: /" >&2
21179 esac
21180 { echo "$as_me:$LINENO: checking for wchar.h" >&5
21181 echo $ECHO_N "checking for wchar.h... $ECHO_C" >&6; }
21182 if test "${ac_cv_header_wchar_h+set}" = set; then
21183 echo $ECHO_N "(cached) $ECHO_C" >&6
21184 else
21185 ac_cv_header_wchar_h=$ac_header_preproc
21187 { echo "$as_me:$LINENO: result: $ac_cv_header_wchar_h" >&5
21188 echo "${ECHO_T}$ac_cv_header_wchar_h" >&6; }
21191 if test $ac_cv_header_wchar_h = yes; then
21194 cat >>confdefs.h <<\_ACEOF
21195 #define HAVE_WCHAR_H 1
21196 _ACEOF
21198 wchar_h="yes"
21200 else
21201 wchar_h="no"
21207 # determine wchar_t size
21208 if test "$wchar_h" = yes
21209 then
21210 { echo "$as_me:$LINENO: checking for wchar_t" >&5
21211 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6; }
21212 if test "${ac_cv_type_wchar_t+set}" = set; then
21213 echo $ECHO_N "(cached) $ECHO_C" >&6
21214 else
21215 cat >conftest.$ac_ext <<_ACEOF
21216 /* confdefs.h. */
21217 _ACEOF
21218 cat confdefs.h >>conftest.$ac_ext
21219 cat >>conftest.$ac_ext <<_ACEOF
21220 /* end confdefs.h. */
21221 #include <wchar.h>
21223 typedef wchar_t ac__type_new_;
21225 main ()
21227 if ((ac__type_new_ *) 0)
21228 return 0;
21229 if (sizeof (ac__type_new_))
21230 return 0;
21232 return 0;
21234 _ACEOF
21235 rm -f conftest.$ac_objext
21236 if { (ac_try="$ac_compile"
21237 case "(($ac_try" in
21238 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21239 *) ac_try_echo=$ac_try;;
21240 esac
21241 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21242 (eval "$ac_compile") 2>conftest.er1
21243 ac_status=$?
21244 grep -v '^ *+' conftest.er1 >conftest.err
21245 rm -f conftest.er1
21246 cat conftest.err >&5
21247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21248 (exit $ac_status); } && {
21249 test -z "$ac_c_werror_flag" ||
21250 test ! -s conftest.err
21251 } && test -s conftest.$ac_objext; then
21252 ac_cv_type_wchar_t=yes
21253 else
21254 echo "$as_me: failed program was:" >&5
21255 sed 's/^/| /' conftest.$ac_ext >&5
21257 ac_cv_type_wchar_t=no
21260 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21262 { echo "$as_me:$LINENO: result: $ac_cv_type_wchar_t" >&5
21263 echo "${ECHO_T}$ac_cv_type_wchar_t" >&6; }
21265 # The cast to long int works around a bug in the HP C Compiler
21266 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21267 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21268 # This bug is HP SR number 8606223364.
21269 { echo "$as_me:$LINENO: checking size of wchar_t" >&5
21270 echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6; }
21271 if test "${ac_cv_sizeof_wchar_t+set}" = set; then
21272 echo $ECHO_N "(cached) $ECHO_C" >&6
21273 else
21274 if test "$cross_compiling" = yes; then
21275 # Depending upon the size, compute the lo and hi bounds.
21276 cat >conftest.$ac_ext <<_ACEOF
21277 /* confdefs.h. */
21278 _ACEOF
21279 cat confdefs.h >>conftest.$ac_ext
21280 cat >>conftest.$ac_ext <<_ACEOF
21281 /* end confdefs.h. */
21282 #include <wchar.h>
21284 typedef wchar_t ac__type_sizeof_;
21286 main ()
21288 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
21289 test_array [0] = 0
21292 return 0;
21294 _ACEOF
21295 rm -f conftest.$ac_objext
21296 if { (ac_try="$ac_compile"
21297 case "(($ac_try" in
21298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21299 *) ac_try_echo=$ac_try;;
21300 esac
21301 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21302 (eval "$ac_compile") 2>conftest.er1
21303 ac_status=$?
21304 grep -v '^ *+' conftest.er1 >conftest.err
21305 rm -f conftest.er1
21306 cat conftest.err >&5
21307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21308 (exit $ac_status); } && {
21309 test -z "$ac_c_werror_flag" ||
21310 test ! -s conftest.err
21311 } && test -s conftest.$ac_objext; then
21312 ac_lo=0 ac_mid=0
21313 while :; do
21314 cat >conftest.$ac_ext <<_ACEOF
21315 /* confdefs.h. */
21316 _ACEOF
21317 cat confdefs.h >>conftest.$ac_ext
21318 cat >>conftest.$ac_ext <<_ACEOF
21319 /* end confdefs.h. */
21320 #include <wchar.h>
21322 typedef wchar_t ac__type_sizeof_;
21324 main ()
21326 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
21327 test_array [0] = 0
21330 return 0;
21332 _ACEOF
21333 rm -f conftest.$ac_objext
21334 if { (ac_try="$ac_compile"
21335 case "(($ac_try" in
21336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21337 *) ac_try_echo=$ac_try;;
21338 esac
21339 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21340 (eval "$ac_compile") 2>conftest.er1
21341 ac_status=$?
21342 grep -v '^ *+' conftest.er1 >conftest.err
21343 rm -f conftest.er1
21344 cat conftest.err >&5
21345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21346 (exit $ac_status); } && {
21347 test -z "$ac_c_werror_flag" ||
21348 test ! -s conftest.err
21349 } && test -s conftest.$ac_objext; then
21350 ac_hi=$ac_mid; break
21351 else
21352 echo "$as_me: failed program was:" >&5
21353 sed 's/^/| /' conftest.$ac_ext >&5
21355 ac_lo=`expr $ac_mid + 1`
21356 if test $ac_lo -le $ac_mid; then
21357 ac_lo= ac_hi=
21358 break
21360 ac_mid=`expr 2 '*' $ac_mid + 1`
21363 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21364 done
21365 else
21366 echo "$as_me: failed program was:" >&5
21367 sed 's/^/| /' conftest.$ac_ext >&5
21369 cat >conftest.$ac_ext <<_ACEOF
21370 /* confdefs.h. */
21371 _ACEOF
21372 cat confdefs.h >>conftest.$ac_ext
21373 cat >>conftest.$ac_ext <<_ACEOF
21374 /* end confdefs.h. */
21375 #include <wchar.h>
21377 typedef wchar_t ac__type_sizeof_;
21379 main ()
21381 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
21382 test_array [0] = 0
21385 return 0;
21387 _ACEOF
21388 rm -f conftest.$ac_objext
21389 if { (ac_try="$ac_compile"
21390 case "(($ac_try" in
21391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21392 *) ac_try_echo=$ac_try;;
21393 esac
21394 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21395 (eval "$ac_compile") 2>conftest.er1
21396 ac_status=$?
21397 grep -v '^ *+' conftest.er1 >conftest.err
21398 rm -f conftest.er1
21399 cat conftest.err >&5
21400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21401 (exit $ac_status); } && {
21402 test -z "$ac_c_werror_flag" ||
21403 test ! -s conftest.err
21404 } && test -s conftest.$ac_objext; then
21405 ac_hi=-1 ac_mid=-1
21406 while :; do
21407 cat >conftest.$ac_ext <<_ACEOF
21408 /* confdefs.h. */
21409 _ACEOF
21410 cat confdefs.h >>conftest.$ac_ext
21411 cat >>conftest.$ac_ext <<_ACEOF
21412 /* end confdefs.h. */
21413 #include <wchar.h>
21415 typedef wchar_t ac__type_sizeof_;
21417 main ()
21419 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
21420 test_array [0] = 0
21423 return 0;
21425 _ACEOF
21426 rm -f conftest.$ac_objext
21427 if { (ac_try="$ac_compile"
21428 case "(($ac_try" in
21429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21430 *) ac_try_echo=$ac_try;;
21431 esac
21432 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21433 (eval "$ac_compile") 2>conftest.er1
21434 ac_status=$?
21435 grep -v '^ *+' conftest.er1 >conftest.err
21436 rm -f conftest.er1
21437 cat conftest.err >&5
21438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21439 (exit $ac_status); } && {
21440 test -z "$ac_c_werror_flag" ||
21441 test ! -s conftest.err
21442 } && test -s conftest.$ac_objext; then
21443 ac_lo=$ac_mid; break
21444 else
21445 echo "$as_me: failed program was:" >&5
21446 sed 's/^/| /' conftest.$ac_ext >&5
21448 ac_hi=`expr '(' $ac_mid ')' - 1`
21449 if test $ac_mid -le $ac_hi; then
21450 ac_lo= ac_hi=
21451 break
21453 ac_mid=`expr 2 '*' $ac_mid`
21456 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21457 done
21458 else
21459 echo "$as_me: failed program was:" >&5
21460 sed 's/^/| /' conftest.$ac_ext >&5
21462 ac_lo= ac_hi=
21465 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21468 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21469 # Binary search between lo and hi bounds.
21470 while test "x$ac_lo" != "x$ac_hi"; do
21471 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21472 cat >conftest.$ac_ext <<_ACEOF
21473 /* confdefs.h. */
21474 _ACEOF
21475 cat confdefs.h >>conftest.$ac_ext
21476 cat >>conftest.$ac_ext <<_ACEOF
21477 /* end confdefs.h. */
21478 #include <wchar.h>
21480 typedef wchar_t ac__type_sizeof_;
21482 main ()
21484 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
21485 test_array [0] = 0
21488 return 0;
21490 _ACEOF
21491 rm -f conftest.$ac_objext
21492 if { (ac_try="$ac_compile"
21493 case "(($ac_try" in
21494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21495 *) ac_try_echo=$ac_try;;
21496 esac
21497 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21498 (eval "$ac_compile") 2>conftest.er1
21499 ac_status=$?
21500 grep -v '^ *+' conftest.er1 >conftest.err
21501 rm -f conftest.er1
21502 cat conftest.err >&5
21503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21504 (exit $ac_status); } && {
21505 test -z "$ac_c_werror_flag" ||
21506 test ! -s conftest.err
21507 } && test -s conftest.$ac_objext; then
21508 ac_hi=$ac_mid
21509 else
21510 echo "$as_me: failed program was:" >&5
21511 sed 's/^/| /' conftest.$ac_ext >&5
21513 ac_lo=`expr '(' $ac_mid ')' + 1`
21516 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21517 done
21518 case $ac_lo in
21519 ?*) ac_cv_sizeof_wchar_t=$ac_lo;;
21520 '') if test "$ac_cv_type_wchar_t" = yes; then
21521 { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t)
21522 See \`config.log' for more details." >&5
21523 echo "$as_me: error: cannot compute sizeof (wchar_t)
21524 See \`config.log' for more details." >&2;}
21525 { (exit 77); exit 77; }; }
21526 else
21527 ac_cv_sizeof_wchar_t=0
21528 fi ;;
21529 esac
21530 else
21531 cat >conftest.$ac_ext <<_ACEOF
21532 /* confdefs.h. */
21533 _ACEOF
21534 cat confdefs.h >>conftest.$ac_ext
21535 cat >>conftest.$ac_ext <<_ACEOF
21536 /* end confdefs.h. */
21537 #include <wchar.h>
21539 typedef wchar_t ac__type_sizeof_;
21540 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
21541 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
21542 #include <stdio.h>
21543 #include <stdlib.h>
21545 main ()
21548 FILE *f = fopen ("conftest.val", "w");
21549 if (! f)
21550 return 1;
21551 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
21553 long int i = longval ();
21554 if (i != ((long int) (sizeof (ac__type_sizeof_))))
21555 return 1;
21556 fprintf (f, "%ld\n", i);
21558 else
21560 unsigned long int i = ulongval ();
21561 if (i != ((long int) (sizeof (ac__type_sizeof_))))
21562 return 1;
21563 fprintf (f, "%lu\n", i);
21565 return ferror (f) || fclose (f) != 0;
21568 return 0;
21570 _ACEOF
21571 rm -f conftest$ac_exeext
21572 if { (ac_try="$ac_link"
21573 case "(($ac_try" in
21574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21575 *) ac_try_echo=$ac_try;;
21576 esac
21577 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21578 (eval "$ac_link") 2>&5
21579 ac_status=$?
21580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21581 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21582 { (case "(($ac_try" in
21583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21584 *) ac_try_echo=$ac_try;;
21585 esac
21586 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21587 (eval "$ac_try") 2>&5
21588 ac_status=$?
21589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21590 (exit $ac_status); }; }; then
21591 ac_cv_sizeof_wchar_t=`cat conftest.val`
21592 else
21593 echo "$as_me: program exited with status $ac_status" >&5
21594 echo "$as_me: failed program was:" >&5
21595 sed 's/^/| /' conftest.$ac_ext >&5
21597 ( exit $ac_status )
21598 if test "$ac_cv_type_wchar_t" = yes; then
21599 { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t)
21600 See \`config.log' for more details." >&5
21601 echo "$as_me: error: cannot compute sizeof (wchar_t)
21602 See \`config.log' for more details." >&2;}
21603 { (exit 77); exit 77; }; }
21604 else
21605 ac_cv_sizeof_wchar_t=0
21608 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21610 rm -f conftest.val
21612 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_wchar_t" >&5
21613 echo "${ECHO_T}$ac_cv_sizeof_wchar_t" >&6; }
21617 cat >>confdefs.h <<_ACEOF
21618 #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
21619 _ACEOF
21624 { echo "$as_me:$LINENO: checking for UCS-4 tcl" >&5
21625 echo $ECHO_N "checking for UCS-4 tcl... $ECHO_C" >&6; }
21626 have_ucs4_tcl=no
21627 cat >conftest.$ac_ext <<_ACEOF
21628 /* confdefs.h. */
21629 _ACEOF
21630 cat confdefs.h >>conftest.$ac_ext
21631 cat >>conftest.$ac_ext <<_ACEOF
21632 /* end confdefs.h. */
21634 #include <tcl.h>
21635 #if TCL_UTF_MAX != 6
21636 # error "NOT UCS4_TCL"
21637 #endif
21639 main ()
21643 return 0;
21645 _ACEOF
21646 rm -f conftest.$ac_objext
21647 if { (ac_try="$ac_compile"
21648 case "(($ac_try" in
21649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21650 *) ac_try_echo=$ac_try;;
21651 esac
21652 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21653 (eval "$ac_compile") 2>conftest.er1
21654 ac_status=$?
21655 grep -v '^ *+' conftest.er1 >conftest.err
21656 rm -f conftest.er1
21657 cat conftest.err >&5
21658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21659 (exit $ac_status); } && {
21660 test -z "$ac_c_werror_flag" ||
21661 test ! -s conftest.err
21662 } && test -s conftest.$ac_objext; then
21665 cat >>confdefs.h <<\_ACEOF
21666 #define HAVE_UCS4_TCL 1
21667 _ACEOF
21669 have_ucs4_tcl=yes
21671 else
21672 echo "$as_me: failed program was:" >&5
21673 sed 's/^/| /' conftest.$ac_ext >&5
21678 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21679 { echo "$as_me:$LINENO: result: $have_ucs4_tcl" >&5
21680 echo "${ECHO_T}$have_ucs4_tcl" >&6; }
21682 # check whether wchar_t is signed or not
21683 if test "$wchar_h" = yes
21684 then
21685 # check whether wchar_t is signed or not
21686 { echo "$as_me:$LINENO: checking whether wchar_t is signed" >&5
21687 echo $ECHO_N "checking whether wchar_t is signed... $ECHO_C" >&6; }
21688 if test "${ac_cv_wchar_t_signed+set}" = set; then
21689 echo $ECHO_N "(cached) $ECHO_C" >&6
21690 else
21692 if test "$cross_compiling" = yes; then
21693 ac_cv_wchar_t_signed=yes
21694 else
21695 cat >conftest.$ac_ext <<_ACEOF
21696 /* confdefs.h. */
21697 _ACEOF
21698 cat confdefs.h >>conftest.$ac_ext
21699 cat >>conftest.$ac_ext <<_ACEOF
21700 /* end confdefs.h. */
21702 #include <wchar.h>
21703 int main()
21705 /* Success: exit code 0 */
21706 exit((((wchar_t) -1) < ((wchar_t) 0)) ? 0 : 1);
21709 _ACEOF
21710 rm -f conftest$ac_exeext
21711 if { (ac_try="$ac_link"
21712 case "(($ac_try" in
21713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21714 *) ac_try_echo=$ac_try;;
21715 esac
21716 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21717 (eval "$ac_link") 2>&5
21718 ac_status=$?
21719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21720 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21721 { (case "(($ac_try" in
21722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21723 *) ac_try_echo=$ac_try;;
21724 esac
21725 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21726 (eval "$ac_try") 2>&5
21727 ac_status=$?
21728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21729 (exit $ac_status); }; }; then
21730 ac_cv_wchar_t_signed=yes
21731 else
21732 echo "$as_me: program exited with status $ac_status" >&5
21733 echo "$as_me: failed program was:" >&5
21734 sed 's/^/| /' conftest.$ac_ext >&5
21736 ( exit $ac_status )
21737 ac_cv_wchar_t_signed=no
21739 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21745 { echo "$as_me:$LINENO: result: $ac_cv_wchar_t_signed" >&5
21746 echo "${ECHO_T}$ac_cv_wchar_t_signed" >&6; }
21749 { echo "$as_me:$LINENO: checking what type to use for unicode" >&5
21750 echo $ECHO_N "checking what type to use for unicode... $ECHO_C" >&6; }
21751 # Check whether --enable-unicode was given.
21752 if test "${enable_unicode+set}" = set; then
21753 enableval=$enable_unicode;
21754 else
21755 enable_unicode=yes
21759 if test $enable_unicode = yes
21760 then
21761 # Without any arguments, Py_UNICODE defaults to two-byte mode
21762 case "$have_ucs4_tcl" in
21763 yes) enable_unicode="ucs4"
21765 *) enable_unicode="ucs2"
21767 esac
21772 case "$enable_unicode" in
21773 ucs2) unicode_size="2"
21774 cat >>confdefs.h <<\_ACEOF
21775 #define Py_UNICODE_SIZE 2
21776 _ACEOF
21779 ucs4) unicode_size="4"
21780 cat >>confdefs.h <<\_ACEOF
21781 #define Py_UNICODE_SIZE 4
21782 _ACEOF
21785 esac
21791 if test "$enable_unicode" = "no"
21792 then
21793 UNICODE_OBJS=""
21794 { echo "$as_me:$LINENO: result: not used" >&5
21795 echo "${ECHO_T}not used" >&6; }
21796 else
21797 UNICODE_OBJS="Objects/unicodeobject.o Objects/unicodectype.o"
21799 cat >>confdefs.h <<\_ACEOF
21800 #define Py_USING_UNICODE 1
21801 _ACEOF
21804 # wchar_t is only usable if it maps to an unsigned type
21805 if test "$unicode_size" = "$ac_cv_sizeof_wchar_t" \
21806 -a "$ac_cv_wchar_t_signed" = "no"
21807 then
21808 PY_UNICODE_TYPE="wchar_t"
21810 cat >>confdefs.h <<\_ACEOF
21811 #define HAVE_USABLE_WCHAR_T 1
21812 _ACEOF
21814 cat >>confdefs.h <<\_ACEOF
21815 #define PY_UNICODE_TYPE wchar_t
21816 _ACEOF
21818 elif test "$ac_cv_sizeof_short" = "$unicode_size"
21819 then
21820 PY_UNICODE_TYPE="unsigned short"
21821 cat >>confdefs.h <<\_ACEOF
21822 #define PY_UNICODE_TYPE unsigned short
21823 _ACEOF
21825 elif test "$ac_cv_sizeof_long" = "$unicode_size"
21826 then
21827 PY_UNICODE_TYPE="unsigned long"
21828 cat >>confdefs.h <<\_ACEOF
21829 #define PY_UNICODE_TYPE unsigned long
21830 _ACEOF
21832 else
21833 PY_UNICODE_TYPE="no type found"
21835 { echo "$as_me:$LINENO: result: $PY_UNICODE_TYPE" >&5
21836 echo "${ECHO_T}$PY_UNICODE_TYPE" >&6; }
21839 # check for endianness
21840 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
21841 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
21842 if test "${ac_cv_c_bigendian+set}" = set; then
21843 echo $ECHO_N "(cached) $ECHO_C" >&6
21844 else
21845 # See if sys/param.h defines the BYTE_ORDER macro.
21846 cat >conftest.$ac_ext <<_ACEOF
21847 /* confdefs.h. */
21848 _ACEOF
21849 cat confdefs.h >>conftest.$ac_ext
21850 cat >>conftest.$ac_ext <<_ACEOF
21851 /* end confdefs.h. */
21852 #include <sys/types.h>
21853 #include <sys/param.h>
21856 main ()
21858 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
21859 && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
21860 bogus endian macros
21861 #endif
21864 return 0;
21866 _ACEOF
21867 rm -f conftest.$ac_objext
21868 if { (ac_try="$ac_compile"
21869 case "(($ac_try" in
21870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21871 *) ac_try_echo=$ac_try;;
21872 esac
21873 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21874 (eval "$ac_compile") 2>conftest.er1
21875 ac_status=$?
21876 grep -v '^ *+' conftest.er1 >conftest.err
21877 rm -f conftest.er1
21878 cat conftest.err >&5
21879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21880 (exit $ac_status); } && {
21881 test -z "$ac_c_werror_flag" ||
21882 test ! -s conftest.err
21883 } && test -s conftest.$ac_objext; then
21884 # It does; now see whether it defined to BIG_ENDIAN or not.
21885 cat >conftest.$ac_ext <<_ACEOF
21886 /* confdefs.h. */
21887 _ACEOF
21888 cat confdefs.h >>conftest.$ac_ext
21889 cat >>conftest.$ac_ext <<_ACEOF
21890 /* end confdefs.h. */
21891 #include <sys/types.h>
21892 #include <sys/param.h>
21895 main ()
21897 #if BYTE_ORDER != BIG_ENDIAN
21898 not big endian
21899 #endif
21902 return 0;
21904 _ACEOF
21905 rm -f conftest.$ac_objext
21906 if { (ac_try="$ac_compile"
21907 case "(($ac_try" in
21908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21909 *) ac_try_echo=$ac_try;;
21910 esac
21911 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21912 (eval "$ac_compile") 2>conftest.er1
21913 ac_status=$?
21914 grep -v '^ *+' conftest.er1 >conftest.err
21915 rm -f conftest.er1
21916 cat conftest.err >&5
21917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21918 (exit $ac_status); } && {
21919 test -z "$ac_c_werror_flag" ||
21920 test ! -s conftest.err
21921 } && test -s conftest.$ac_objext; then
21922 ac_cv_c_bigendian=yes
21923 else
21924 echo "$as_me: failed program was:" >&5
21925 sed 's/^/| /' conftest.$ac_ext >&5
21927 ac_cv_c_bigendian=no
21930 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21931 else
21932 echo "$as_me: failed program was:" >&5
21933 sed 's/^/| /' conftest.$ac_ext >&5
21935 # It does not; compile a test program.
21936 if test "$cross_compiling" = yes; then
21937 # try to guess the endianness by grepping values into an object file
21938 ac_cv_c_bigendian=unknown
21939 cat >conftest.$ac_ext <<_ACEOF
21940 /* confdefs.h. */
21941 _ACEOF
21942 cat confdefs.h >>conftest.$ac_ext
21943 cat >>conftest.$ac_ext <<_ACEOF
21944 /* end confdefs.h. */
21945 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
21946 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
21947 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
21948 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
21949 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
21950 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
21952 main ()
21954 _ascii (); _ebcdic ();
21956 return 0;
21958 _ACEOF
21959 rm -f conftest.$ac_objext
21960 if { (ac_try="$ac_compile"
21961 case "(($ac_try" in
21962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21963 *) ac_try_echo=$ac_try;;
21964 esac
21965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21966 (eval "$ac_compile") 2>conftest.er1
21967 ac_status=$?
21968 grep -v '^ *+' conftest.er1 >conftest.err
21969 rm -f conftest.er1
21970 cat conftest.err >&5
21971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21972 (exit $ac_status); } && {
21973 test -z "$ac_c_werror_flag" ||
21974 test ! -s conftest.err
21975 } && test -s conftest.$ac_objext; then
21976 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
21977 ac_cv_c_bigendian=yes
21979 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
21980 if test "$ac_cv_c_bigendian" = unknown; then
21981 ac_cv_c_bigendian=no
21982 else
21983 # finding both strings is unlikely to happen, but who knows?
21984 ac_cv_c_bigendian=unknown
21987 else
21988 echo "$as_me: failed program was:" >&5
21989 sed 's/^/| /' conftest.$ac_ext >&5
21994 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21995 else
21996 cat >conftest.$ac_ext <<_ACEOF
21997 /* confdefs.h. */
21998 _ACEOF
21999 cat confdefs.h >>conftest.$ac_ext
22000 cat >>conftest.$ac_ext <<_ACEOF
22001 /* end confdefs.h. */
22002 $ac_includes_default
22004 main ()
22007 /* Are we little or big endian? From Harbison&Steele. */
22008 union
22010 long int l;
22011 char c[sizeof (long int)];
22012 } u;
22013 u.l = 1;
22014 return u.c[sizeof (long int) - 1] == 1;
22017 return 0;
22019 _ACEOF
22020 rm -f conftest$ac_exeext
22021 if { (ac_try="$ac_link"
22022 case "(($ac_try" in
22023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22024 *) ac_try_echo=$ac_try;;
22025 esac
22026 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22027 (eval "$ac_link") 2>&5
22028 ac_status=$?
22029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22030 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22031 { (case "(($ac_try" in
22032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22033 *) ac_try_echo=$ac_try;;
22034 esac
22035 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22036 (eval "$ac_try") 2>&5
22037 ac_status=$?
22038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22039 (exit $ac_status); }; }; then
22040 ac_cv_c_bigendian=no
22041 else
22042 echo "$as_me: program exited with status $ac_status" >&5
22043 echo "$as_me: failed program was:" >&5
22044 sed 's/^/| /' conftest.$ac_ext >&5
22046 ( exit $ac_status )
22047 ac_cv_c_bigendian=yes
22049 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22055 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22057 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
22058 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
22059 case $ac_cv_c_bigendian in
22060 yes)
22062 cat >>confdefs.h <<\_ACEOF
22063 #define WORDS_BIGENDIAN 1
22064 _ACEOF
22069 { { echo "$as_me:$LINENO: error: unknown endianness
22070 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
22071 echo "$as_me: error: unknown endianness
22072 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
22073 { (exit 1); exit 1; }; } ;;
22074 esac
22079 # Check whether right shifting a negative integer extends the sign bit
22080 # or fills with zeros (like the Cray J90, according to Tim Peters).
22081 { echo "$as_me:$LINENO: checking whether right shift extends the sign bit" >&5
22082 echo $ECHO_N "checking whether right shift extends the sign bit... $ECHO_C" >&6; }
22083 if test "${ac_cv_rshift_extends_sign+set}" = set; then
22084 echo $ECHO_N "(cached) $ECHO_C" >&6
22085 else
22087 if test "$cross_compiling" = yes; then
22088 ac_cv_rshift_extends_sign=yes
22089 else
22090 cat >conftest.$ac_ext <<_ACEOF
22091 /* confdefs.h. */
22092 _ACEOF
22093 cat confdefs.h >>conftest.$ac_ext
22094 cat >>conftest.$ac_ext <<_ACEOF
22095 /* end confdefs.h. */
22097 int main()
22099 exit(((-1)>>3 == -1) ? 0 : 1);
22102 _ACEOF
22103 rm -f conftest$ac_exeext
22104 if { (ac_try="$ac_link"
22105 case "(($ac_try" in
22106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22107 *) ac_try_echo=$ac_try;;
22108 esac
22109 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22110 (eval "$ac_link") 2>&5
22111 ac_status=$?
22112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22113 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22114 { (case "(($ac_try" in
22115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22116 *) ac_try_echo=$ac_try;;
22117 esac
22118 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22119 (eval "$ac_try") 2>&5
22120 ac_status=$?
22121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22122 (exit $ac_status); }; }; then
22123 ac_cv_rshift_extends_sign=yes
22124 else
22125 echo "$as_me: program exited with status $ac_status" >&5
22126 echo "$as_me: failed program was:" >&5
22127 sed 's/^/| /' conftest.$ac_ext >&5
22129 ( exit $ac_status )
22130 ac_cv_rshift_extends_sign=no
22132 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22138 { echo "$as_me:$LINENO: result: $ac_cv_rshift_extends_sign" >&5
22139 echo "${ECHO_T}$ac_cv_rshift_extends_sign" >&6; }
22140 if test "$ac_cv_rshift_extends_sign" = no
22141 then
22143 cat >>confdefs.h <<\_ACEOF
22144 #define SIGNED_RIGHT_SHIFT_ZERO_FILLS 1
22145 _ACEOF
22149 # check for getc_unlocked and related locking functions
22150 { echo "$as_me:$LINENO: checking for getc_unlocked() and friends" >&5
22151 echo $ECHO_N "checking for getc_unlocked() and friends... $ECHO_C" >&6; }
22152 if test "${ac_cv_have_getc_unlocked+set}" = set; then
22153 echo $ECHO_N "(cached) $ECHO_C" >&6
22154 else
22156 cat >conftest.$ac_ext <<_ACEOF
22157 /* confdefs.h. */
22158 _ACEOF
22159 cat confdefs.h >>conftest.$ac_ext
22160 cat >>conftest.$ac_ext <<_ACEOF
22161 /* end confdefs.h. */
22162 #include <stdio.h>
22164 main ()
22167 FILE *f = fopen("/dev/null", "r");
22168 flockfile(f);
22169 getc_unlocked(f);
22170 funlockfile(f);
22173 return 0;
22175 _ACEOF
22176 rm -f conftest.$ac_objext conftest$ac_exeext
22177 if { (ac_try="$ac_link"
22178 case "(($ac_try" in
22179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22180 *) ac_try_echo=$ac_try;;
22181 esac
22182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22183 (eval "$ac_link") 2>conftest.er1
22184 ac_status=$?
22185 grep -v '^ *+' conftest.er1 >conftest.err
22186 rm -f conftest.er1
22187 cat conftest.err >&5
22188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22189 (exit $ac_status); } && {
22190 test -z "$ac_c_werror_flag" ||
22191 test ! -s conftest.err
22192 } && test -s conftest$ac_exeext &&
22193 $as_test_x conftest$ac_exeext; then
22194 ac_cv_have_getc_unlocked=yes
22195 else
22196 echo "$as_me: failed program was:" >&5
22197 sed 's/^/| /' conftest.$ac_ext >&5
22199 ac_cv_have_getc_unlocked=no
22202 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22203 conftest$ac_exeext conftest.$ac_ext
22206 { echo "$as_me:$LINENO: result: $ac_cv_have_getc_unlocked" >&5
22207 echo "${ECHO_T}$ac_cv_have_getc_unlocked" >&6; }
22208 if test "$ac_cv_have_getc_unlocked" = yes
22209 then
22211 cat >>confdefs.h <<\_ACEOF
22212 #define HAVE_GETC_UNLOCKED 1
22213 _ACEOF
22217 # check where readline lives
22218 # save the value of LIBS so we don't actually link Python with readline
22219 LIBS_no_readline=$LIBS
22221 { echo "$as_me:$LINENO: checking for readline in -lreadline" >&5
22222 echo $ECHO_N "checking for readline in -lreadline... $ECHO_C" >&6; }
22223 if test "${ac_cv_lib_readline_readline+set}" = set; then
22224 echo $ECHO_N "(cached) $ECHO_C" >&6
22225 else
22226 ac_check_lib_save_LIBS=$LIBS
22227 LIBS="-lreadline $LIBS"
22228 cat >conftest.$ac_ext <<_ACEOF
22229 /* confdefs.h. */
22230 _ACEOF
22231 cat confdefs.h >>conftest.$ac_ext
22232 cat >>conftest.$ac_ext <<_ACEOF
22233 /* end confdefs.h. */
22235 /* 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 readline ();
22243 main ()
22245 return readline ();
22247 return 0;
22249 _ACEOF
22250 rm -f conftest.$ac_objext conftest$ac_exeext
22251 if { (ac_try="$ac_link"
22252 case "(($ac_try" in
22253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22254 *) ac_try_echo=$ac_try;;
22255 esac
22256 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22257 (eval "$ac_link") 2>conftest.er1
22258 ac_status=$?
22259 grep -v '^ *+' conftest.er1 >conftest.err
22260 rm -f conftest.er1
22261 cat conftest.err >&5
22262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22263 (exit $ac_status); } && {
22264 test -z "$ac_c_werror_flag" ||
22265 test ! -s conftest.err
22266 } && test -s conftest$ac_exeext &&
22267 $as_test_x conftest$ac_exeext; then
22268 ac_cv_lib_readline_readline=yes
22269 else
22270 echo "$as_me: failed program was:" >&5
22271 sed 's/^/| /' conftest.$ac_ext >&5
22273 ac_cv_lib_readline_readline=no
22276 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22277 conftest$ac_exeext conftest.$ac_ext
22278 LIBS=$ac_check_lib_save_LIBS
22280 { echo "$as_me:$LINENO: result: $ac_cv_lib_readline_readline" >&5
22281 echo "${ECHO_T}$ac_cv_lib_readline_readline" >&6; }
22282 if test $ac_cv_lib_readline_readline = yes; then
22283 cat >>confdefs.h <<_ACEOF
22284 #define HAVE_LIBREADLINE 1
22285 _ACEOF
22287 LIBS="-lreadline $LIBS"
22291 if test "$ac_cv_have_readline_readline" = no
22292 then
22294 { echo "$as_me:$LINENO: checking for readline in -ltermcap" >&5
22295 echo $ECHO_N "checking for readline in -ltermcap... $ECHO_C" >&6; }
22296 if test "${ac_cv_lib_termcap_readline+set}" = set; then
22297 echo $ECHO_N "(cached) $ECHO_C" >&6
22298 else
22299 ac_check_lib_save_LIBS=$LIBS
22300 LIBS="-ltermcap $LIBS"
22301 cat >conftest.$ac_ext <<_ACEOF
22302 /* confdefs.h. */
22303 _ACEOF
22304 cat confdefs.h >>conftest.$ac_ext
22305 cat >>conftest.$ac_ext <<_ACEOF
22306 /* end confdefs.h. */
22308 /* Override any GCC internal prototype to avoid an error.
22309 Use char because int might match the return type of a GCC
22310 builtin and then its argument prototype would still apply. */
22311 #ifdef __cplusplus
22312 extern "C"
22313 #endif
22314 char readline ();
22316 main ()
22318 return readline ();
22320 return 0;
22322 _ACEOF
22323 rm -f conftest.$ac_objext conftest$ac_exeext
22324 if { (ac_try="$ac_link"
22325 case "(($ac_try" in
22326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22327 *) ac_try_echo=$ac_try;;
22328 esac
22329 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22330 (eval "$ac_link") 2>conftest.er1
22331 ac_status=$?
22332 grep -v '^ *+' conftest.er1 >conftest.err
22333 rm -f conftest.er1
22334 cat conftest.err >&5
22335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22336 (exit $ac_status); } && {
22337 test -z "$ac_c_werror_flag" ||
22338 test ! -s conftest.err
22339 } && test -s conftest$ac_exeext &&
22340 $as_test_x conftest$ac_exeext; then
22341 ac_cv_lib_termcap_readline=yes
22342 else
22343 echo "$as_me: failed program was:" >&5
22344 sed 's/^/| /' conftest.$ac_ext >&5
22346 ac_cv_lib_termcap_readline=no
22349 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22350 conftest$ac_exeext conftest.$ac_ext
22351 LIBS=$ac_check_lib_save_LIBS
22353 { echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_readline" >&5
22354 echo "${ECHO_T}$ac_cv_lib_termcap_readline" >&6; }
22355 if test $ac_cv_lib_termcap_readline = yes; then
22356 cat >>confdefs.h <<_ACEOF
22357 #define HAVE_LIBTERMCAP 1
22358 _ACEOF
22360 LIBS="-ltermcap $LIBS"
22366 # check for readline 2.1
22367 { echo "$as_me:$LINENO: checking for rl_callback_handler_install in -lreadline" >&5
22368 echo $ECHO_N "checking for rl_callback_handler_install in -lreadline... $ECHO_C" >&6; }
22369 if test "${ac_cv_lib_readline_rl_callback_handler_install+set}" = set; then
22370 echo $ECHO_N "(cached) $ECHO_C" >&6
22371 else
22372 ac_check_lib_save_LIBS=$LIBS
22373 LIBS="-lreadline $LIBS"
22374 cat >conftest.$ac_ext <<_ACEOF
22375 /* confdefs.h. */
22376 _ACEOF
22377 cat confdefs.h >>conftest.$ac_ext
22378 cat >>conftest.$ac_ext <<_ACEOF
22379 /* end confdefs.h. */
22381 /* Override any GCC internal prototype to avoid an error.
22382 Use char because int might match the return type of a GCC
22383 builtin and then its argument prototype would still apply. */
22384 #ifdef __cplusplus
22385 extern "C"
22386 #endif
22387 char rl_callback_handler_install ();
22389 main ()
22391 return rl_callback_handler_install ();
22393 return 0;
22395 _ACEOF
22396 rm -f conftest.$ac_objext conftest$ac_exeext
22397 if { (ac_try="$ac_link"
22398 case "(($ac_try" in
22399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22400 *) ac_try_echo=$ac_try;;
22401 esac
22402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22403 (eval "$ac_link") 2>conftest.er1
22404 ac_status=$?
22405 grep -v '^ *+' conftest.er1 >conftest.err
22406 rm -f conftest.er1
22407 cat conftest.err >&5
22408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22409 (exit $ac_status); } && {
22410 test -z "$ac_c_werror_flag" ||
22411 test ! -s conftest.err
22412 } && test -s conftest$ac_exeext &&
22413 $as_test_x conftest$ac_exeext; then
22414 ac_cv_lib_readline_rl_callback_handler_install=yes
22415 else
22416 echo "$as_me: failed program was:" >&5
22417 sed 's/^/| /' conftest.$ac_ext >&5
22419 ac_cv_lib_readline_rl_callback_handler_install=no
22422 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22423 conftest$ac_exeext conftest.$ac_ext
22424 LIBS=$ac_check_lib_save_LIBS
22426 { echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_callback_handler_install" >&5
22427 echo "${ECHO_T}$ac_cv_lib_readline_rl_callback_handler_install" >&6; }
22428 if test $ac_cv_lib_readline_rl_callback_handler_install = yes; then
22430 cat >>confdefs.h <<\_ACEOF
22431 #define HAVE_RL_CALLBACK 1
22432 _ACEOF
22437 # check for readline 2.2
22438 cat >conftest.$ac_ext <<_ACEOF
22439 /* confdefs.h. */
22440 _ACEOF
22441 cat confdefs.h >>conftest.$ac_ext
22442 cat >>conftest.$ac_ext <<_ACEOF
22443 /* end confdefs.h. */
22444 #include <readline/readline.h>
22445 _ACEOF
22446 if { (ac_try="$ac_cpp conftest.$ac_ext"
22447 case "(($ac_try" in
22448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22449 *) ac_try_echo=$ac_try;;
22450 esac
22451 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22452 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22453 ac_status=$?
22454 grep -v '^ *+' conftest.er1 >conftest.err
22455 rm -f conftest.er1
22456 cat conftest.err >&5
22457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22458 (exit $ac_status); } >/dev/null && {
22459 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22460 test ! -s conftest.err
22461 }; then
22462 have_readline=yes
22463 else
22464 echo "$as_me: failed program was:" >&5
22465 sed 's/^/| /' conftest.$ac_ext >&5
22467 have_readline=no
22470 rm -f conftest.err conftest.$ac_ext
22471 if test $have_readline = yes
22472 then
22473 cat >conftest.$ac_ext <<_ACEOF
22474 /* confdefs.h. */
22475 _ACEOF
22476 cat confdefs.h >>conftest.$ac_ext
22477 cat >>conftest.$ac_ext <<_ACEOF
22478 /* end confdefs.h. */
22479 #include <readline/readline.h>
22481 _ACEOF
22482 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22483 $EGREP "extern int rl_completion_append_character;" >/dev/null 2>&1; then
22485 cat >>confdefs.h <<\_ACEOF
22486 #define HAVE_RL_COMPLETION_APPEND_CHARACTER 1
22487 _ACEOF
22490 rm -f conftest*
22494 # check for readline 4.0
22495 { echo "$as_me:$LINENO: checking for rl_pre_input_hook in -lreadline" >&5
22496 echo $ECHO_N "checking for rl_pre_input_hook in -lreadline... $ECHO_C" >&6; }
22497 if test "${ac_cv_lib_readline_rl_pre_input_hook+set}" = set; then
22498 echo $ECHO_N "(cached) $ECHO_C" >&6
22499 else
22500 ac_check_lib_save_LIBS=$LIBS
22501 LIBS="-lreadline $LIBS"
22502 cat >conftest.$ac_ext <<_ACEOF
22503 /* confdefs.h. */
22504 _ACEOF
22505 cat confdefs.h >>conftest.$ac_ext
22506 cat >>conftest.$ac_ext <<_ACEOF
22507 /* end confdefs.h. */
22509 /* Override any GCC internal prototype to avoid an error.
22510 Use char because int might match the return type of a GCC
22511 builtin and then its argument prototype would still apply. */
22512 #ifdef __cplusplus
22513 extern "C"
22514 #endif
22515 char rl_pre_input_hook ();
22517 main ()
22519 return rl_pre_input_hook ();
22521 return 0;
22523 _ACEOF
22524 rm -f conftest.$ac_objext conftest$ac_exeext
22525 if { (ac_try="$ac_link"
22526 case "(($ac_try" in
22527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22528 *) ac_try_echo=$ac_try;;
22529 esac
22530 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22531 (eval "$ac_link") 2>conftest.er1
22532 ac_status=$?
22533 grep -v '^ *+' conftest.er1 >conftest.err
22534 rm -f conftest.er1
22535 cat conftest.err >&5
22536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22537 (exit $ac_status); } && {
22538 test -z "$ac_c_werror_flag" ||
22539 test ! -s conftest.err
22540 } && test -s conftest$ac_exeext &&
22541 $as_test_x conftest$ac_exeext; then
22542 ac_cv_lib_readline_rl_pre_input_hook=yes
22543 else
22544 echo "$as_me: failed program was:" >&5
22545 sed 's/^/| /' conftest.$ac_ext >&5
22547 ac_cv_lib_readline_rl_pre_input_hook=no
22550 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22551 conftest$ac_exeext conftest.$ac_ext
22552 LIBS=$ac_check_lib_save_LIBS
22554 { echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_pre_input_hook" >&5
22555 echo "${ECHO_T}$ac_cv_lib_readline_rl_pre_input_hook" >&6; }
22556 if test $ac_cv_lib_readline_rl_pre_input_hook = yes; then
22558 cat >>confdefs.h <<\_ACEOF
22559 #define HAVE_RL_PRE_INPUT_HOOK 1
22560 _ACEOF
22565 # also in 4.0
22566 { echo "$as_me:$LINENO: checking for rl_completion_display_matches_hook in -lreadline" >&5
22567 echo $ECHO_N "checking for rl_completion_display_matches_hook in -lreadline... $ECHO_C" >&6; }
22568 if test "${ac_cv_lib_readline_rl_completion_display_matches_hook+set}" = set; then
22569 echo $ECHO_N "(cached) $ECHO_C" >&6
22570 else
22571 ac_check_lib_save_LIBS=$LIBS
22572 LIBS="-lreadline $LIBS"
22573 cat >conftest.$ac_ext <<_ACEOF
22574 /* confdefs.h. */
22575 _ACEOF
22576 cat confdefs.h >>conftest.$ac_ext
22577 cat >>conftest.$ac_ext <<_ACEOF
22578 /* end confdefs.h. */
22580 /* Override any GCC internal prototype to avoid an error.
22581 Use char because int might match the return type of a GCC
22582 builtin and then its argument prototype would still apply. */
22583 #ifdef __cplusplus
22584 extern "C"
22585 #endif
22586 char rl_completion_display_matches_hook ();
22588 main ()
22590 return rl_completion_display_matches_hook ();
22592 return 0;
22594 _ACEOF
22595 rm -f conftest.$ac_objext conftest$ac_exeext
22596 if { (ac_try="$ac_link"
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_link") 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); } && {
22609 test -z "$ac_c_werror_flag" ||
22610 test ! -s conftest.err
22611 } && test -s conftest$ac_exeext &&
22612 $as_test_x conftest$ac_exeext; then
22613 ac_cv_lib_readline_rl_completion_display_matches_hook=yes
22614 else
22615 echo "$as_me: failed program was:" >&5
22616 sed 's/^/| /' conftest.$ac_ext >&5
22618 ac_cv_lib_readline_rl_completion_display_matches_hook=no
22621 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22622 conftest$ac_exeext conftest.$ac_ext
22623 LIBS=$ac_check_lib_save_LIBS
22625 { echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_completion_display_matches_hook" >&5
22626 echo "${ECHO_T}$ac_cv_lib_readline_rl_completion_display_matches_hook" >&6; }
22627 if test $ac_cv_lib_readline_rl_completion_display_matches_hook = yes; then
22629 cat >>confdefs.h <<\_ACEOF
22630 #define HAVE_RL_COMPLETION_DISPLAY_MATCHES_HOOK 1
22631 _ACEOF
22636 # check for readline 4.2
22637 { echo "$as_me:$LINENO: checking for rl_completion_matches in -lreadline" >&5
22638 echo $ECHO_N "checking for rl_completion_matches in -lreadline... $ECHO_C" >&6; }
22639 if test "${ac_cv_lib_readline_rl_completion_matches+set}" = set; then
22640 echo $ECHO_N "(cached) $ECHO_C" >&6
22641 else
22642 ac_check_lib_save_LIBS=$LIBS
22643 LIBS="-lreadline $LIBS"
22644 cat >conftest.$ac_ext <<_ACEOF
22645 /* confdefs.h. */
22646 _ACEOF
22647 cat confdefs.h >>conftest.$ac_ext
22648 cat >>conftest.$ac_ext <<_ACEOF
22649 /* end confdefs.h. */
22651 /* Override any GCC internal prototype to avoid an error.
22652 Use char because int might match the return type of a GCC
22653 builtin and then its argument prototype would still apply. */
22654 #ifdef __cplusplus
22655 extern "C"
22656 #endif
22657 char rl_completion_matches ();
22659 main ()
22661 return rl_completion_matches ();
22663 return 0;
22665 _ACEOF
22666 rm -f conftest.$ac_objext conftest$ac_exeext
22667 if { (ac_try="$ac_link"
22668 case "(($ac_try" in
22669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22670 *) ac_try_echo=$ac_try;;
22671 esac
22672 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22673 (eval "$ac_link") 2>conftest.er1
22674 ac_status=$?
22675 grep -v '^ *+' conftest.er1 >conftest.err
22676 rm -f conftest.er1
22677 cat conftest.err >&5
22678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22679 (exit $ac_status); } && {
22680 test -z "$ac_c_werror_flag" ||
22681 test ! -s conftest.err
22682 } && test -s conftest$ac_exeext &&
22683 $as_test_x conftest$ac_exeext; then
22684 ac_cv_lib_readline_rl_completion_matches=yes
22685 else
22686 echo "$as_me: failed program was:" >&5
22687 sed 's/^/| /' conftest.$ac_ext >&5
22689 ac_cv_lib_readline_rl_completion_matches=no
22692 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22693 conftest$ac_exeext conftest.$ac_ext
22694 LIBS=$ac_check_lib_save_LIBS
22696 { echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_completion_matches" >&5
22697 echo "${ECHO_T}$ac_cv_lib_readline_rl_completion_matches" >&6; }
22698 if test $ac_cv_lib_readline_rl_completion_matches = yes; then
22700 cat >>confdefs.h <<\_ACEOF
22701 #define HAVE_RL_COMPLETION_MATCHES 1
22702 _ACEOF
22707 # also in readline 4.2
22708 cat >conftest.$ac_ext <<_ACEOF
22709 /* confdefs.h. */
22710 _ACEOF
22711 cat confdefs.h >>conftest.$ac_ext
22712 cat >>conftest.$ac_ext <<_ACEOF
22713 /* end confdefs.h. */
22714 #include <readline/readline.h>
22715 _ACEOF
22716 if { (ac_try="$ac_cpp conftest.$ac_ext"
22717 case "(($ac_try" in
22718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22719 *) ac_try_echo=$ac_try;;
22720 esac
22721 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22722 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22723 ac_status=$?
22724 grep -v '^ *+' conftest.er1 >conftest.err
22725 rm -f conftest.er1
22726 cat conftest.err >&5
22727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22728 (exit $ac_status); } >/dev/null && {
22729 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22730 test ! -s conftest.err
22731 }; then
22732 have_readline=yes
22733 else
22734 echo "$as_me: failed program was:" >&5
22735 sed 's/^/| /' conftest.$ac_ext >&5
22737 have_readline=no
22740 rm -f conftest.err conftest.$ac_ext
22741 if test $have_readline = yes
22742 then
22743 cat >conftest.$ac_ext <<_ACEOF
22744 /* confdefs.h. */
22745 _ACEOF
22746 cat confdefs.h >>conftest.$ac_ext
22747 cat >>conftest.$ac_ext <<_ACEOF
22748 /* end confdefs.h. */
22749 #include <readline/readline.h>
22751 _ACEOF
22752 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22753 $EGREP "extern int rl_catch_signals;" >/dev/null 2>&1; then
22755 cat >>confdefs.h <<\_ACEOF
22756 #define HAVE_RL_CATCH_SIGNAL 1
22757 _ACEOF
22760 rm -f conftest*
22764 # End of readline checks: restore LIBS
22765 LIBS=$LIBS_no_readline
22767 { echo "$as_me:$LINENO: checking for broken nice()" >&5
22768 echo $ECHO_N "checking for broken nice()... $ECHO_C" >&6; }
22769 if test "${ac_cv_broken_nice+set}" = set; then
22770 echo $ECHO_N "(cached) $ECHO_C" >&6
22771 else
22773 if test "$cross_compiling" = yes; then
22774 ac_cv_broken_nice=no
22775 else
22776 cat >conftest.$ac_ext <<_ACEOF
22777 /* confdefs.h. */
22778 _ACEOF
22779 cat confdefs.h >>conftest.$ac_ext
22780 cat >>conftest.$ac_ext <<_ACEOF
22781 /* end confdefs.h. */
22783 int main()
22785 int val1 = nice(1);
22786 if (val1 != -1 && val1 == nice(2))
22787 exit(0);
22788 exit(1);
22791 _ACEOF
22792 rm -f conftest$ac_exeext
22793 if { (ac_try="$ac_link"
22794 case "(($ac_try" in
22795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22796 *) ac_try_echo=$ac_try;;
22797 esac
22798 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22799 (eval "$ac_link") 2>&5
22800 ac_status=$?
22801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22802 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22803 { (case "(($ac_try" in
22804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22805 *) ac_try_echo=$ac_try;;
22806 esac
22807 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22808 (eval "$ac_try") 2>&5
22809 ac_status=$?
22810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22811 (exit $ac_status); }; }; then
22812 ac_cv_broken_nice=yes
22813 else
22814 echo "$as_me: program exited with status $ac_status" >&5
22815 echo "$as_me: failed program was:" >&5
22816 sed 's/^/| /' conftest.$ac_ext >&5
22818 ( exit $ac_status )
22819 ac_cv_broken_nice=no
22821 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22827 { echo "$as_me:$LINENO: result: $ac_cv_broken_nice" >&5
22828 echo "${ECHO_T}$ac_cv_broken_nice" >&6; }
22829 if test "$ac_cv_broken_nice" = yes
22830 then
22832 cat >>confdefs.h <<\_ACEOF
22833 #define HAVE_BROKEN_NICE 1
22834 _ACEOF
22838 { echo "$as_me:$LINENO: checking for broken poll()" >&5
22839 echo $ECHO_N "checking for broken poll()... $ECHO_C" >&6; }
22840 if test "$cross_compiling" = yes; then
22841 ac_cv_broken_poll=no
22842 else
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. */
22850 #include <poll.h>
22852 int main (void)
22854 struct pollfd poll_struct = { 42, POLLIN|POLLPRI|POLLOUT, 0 };
22856 close (42);
22858 int poll_test = poll (&poll_struct, 1, 0);
22860 if (poll_test < 0)
22862 exit(0);
22864 else if (poll_test == 0 && poll_struct.revents != POLLNVAL)
22866 exit(0);
22868 else
22870 exit(1);
22874 _ACEOF
22875 rm -f conftest$ac_exeext
22876 if { (ac_try="$ac_link"
22877 case "(($ac_try" in
22878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22879 *) ac_try_echo=$ac_try;;
22880 esac
22881 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22882 (eval "$ac_link") 2>&5
22883 ac_status=$?
22884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22885 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22886 { (case "(($ac_try" in
22887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22888 *) ac_try_echo=$ac_try;;
22889 esac
22890 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22891 (eval "$ac_try") 2>&5
22892 ac_status=$?
22893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22894 (exit $ac_status); }; }; then
22895 ac_cv_broken_poll=yes
22896 else
22897 echo "$as_me: program exited with status $ac_status" >&5
22898 echo "$as_me: failed program was:" >&5
22899 sed 's/^/| /' conftest.$ac_ext >&5
22901 ( exit $ac_status )
22902 ac_cv_broken_poll=no
22904 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22908 { echo "$as_me:$LINENO: result: $ac_cv_broken_poll" >&5
22909 echo "${ECHO_T}$ac_cv_broken_poll" >&6; }
22910 if test "$ac_cv_broken_poll" = yes
22911 then
22913 cat >>confdefs.h <<\_ACEOF
22914 #define HAVE_BROKEN_POLL 1
22915 _ACEOF
22919 # Before we can test tzset, we need to check if struct tm has a tm_zone
22920 # (which is not required by ISO C or UNIX spec) and/or if we support
22921 # tzname[]
22922 { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
22923 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
22924 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
22925 echo $ECHO_N "(cached) $ECHO_C" >&6
22926 else
22927 cat >conftest.$ac_ext <<_ACEOF
22928 /* confdefs.h. */
22929 _ACEOF
22930 cat confdefs.h >>conftest.$ac_ext
22931 cat >>conftest.$ac_ext <<_ACEOF
22932 /* end confdefs.h. */
22933 #include <sys/types.h>
22934 #include <$ac_cv_struct_tm>
22938 main ()
22940 static struct tm ac_aggr;
22941 if (ac_aggr.tm_zone)
22942 return 0;
22944 return 0;
22946 _ACEOF
22947 rm -f conftest.$ac_objext
22948 if { (ac_try="$ac_compile"
22949 case "(($ac_try" in
22950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22951 *) ac_try_echo=$ac_try;;
22952 esac
22953 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22954 (eval "$ac_compile") 2>conftest.er1
22955 ac_status=$?
22956 grep -v '^ *+' conftest.er1 >conftest.err
22957 rm -f conftest.er1
22958 cat conftest.err >&5
22959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22960 (exit $ac_status); } && {
22961 test -z "$ac_c_werror_flag" ||
22962 test ! -s conftest.err
22963 } && test -s conftest.$ac_objext; then
22964 ac_cv_member_struct_tm_tm_zone=yes
22965 else
22966 echo "$as_me: failed program was:" >&5
22967 sed 's/^/| /' conftest.$ac_ext >&5
22969 cat >conftest.$ac_ext <<_ACEOF
22970 /* confdefs.h. */
22971 _ACEOF
22972 cat confdefs.h >>conftest.$ac_ext
22973 cat >>conftest.$ac_ext <<_ACEOF
22974 /* end confdefs.h. */
22975 #include <sys/types.h>
22976 #include <$ac_cv_struct_tm>
22980 main ()
22982 static struct tm ac_aggr;
22983 if (sizeof ac_aggr.tm_zone)
22984 return 0;
22986 return 0;
22988 _ACEOF
22989 rm -f conftest.$ac_objext
22990 if { (ac_try="$ac_compile"
22991 case "(($ac_try" in
22992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22993 *) ac_try_echo=$ac_try;;
22994 esac
22995 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22996 (eval "$ac_compile") 2>conftest.er1
22997 ac_status=$?
22998 grep -v '^ *+' conftest.er1 >conftest.err
22999 rm -f conftest.er1
23000 cat conftest.err >&5
23001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23002 (exit $ac_status); } && {
23003 test -z "$ac_c_werror_flag" ||
23004 test ! -s conftest.err
23005 } && test -s conftest.$ac_objext; then
23006 ac_cv_member_struct_tm_tm_zone=yes
23007 else
23008 echo "$as_me: failed program was:" >&5
23009 sed 's/^/| /' conftest.$ac_ext >&5
23011 ac_cv_member_struct_tm_tm_zone=no
23014 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23017 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23019 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
23020 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
23021 if test $ac_cv_member_struct_tm_tm_zone = yes; then
23023 cat >>confdefs.h <<_ACEOF
23024 #define HAVE_STRUCT_TM_TM_ZONE 1
23025 _ACEOF
23030 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
23032 cat >>confdefs.h <<\_ACEOF
23033 #define HAVE_TM_ZONE 1
23034 _ACEOF
23036 else
23037 { echo "$as_me:$LINENO: checking whether tzname is declared" >&5
23038 echo $ECHO_N "checking whether tzname is declared... $ECHO_C" >&6; }
23039 if test "${ac_cv_have_decl_tzname+set}" = set; then
23040 echo $ECHO_N "(cached) $ECHO_C" >&6
23041 else
23042 cat >conftest.$ac_ext <<_ACEOF
23043 /* confdefs.h. */
23044 _ACEOF
23045 cat confdefs.h >>conftest.$ac_ext
23046 cat >>conftest.$ac_ext <<_ACEOF
23047 /* end confdefs.h. */
23048 #include <time.h>
23051 main ()
23053 #ifndef tzname
23054 (void) tzname;
23055 #endif
23058 return 0;
23060 _ACEOF
23061 rm -f conftest.$ac_objext
23062 if { (ac_try="$ac_compile"
23063 case "(($ac_try" in
23064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23065 *) ac_try_echo=$ac_try;;
23066 esac
23067 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23068 (eval "$ac_compile") 2>conftest.er1
23069 ac_status=$?
23070 grep -v '^ *+' conftest.er1 >conftest.err
23071 rm -f conftest.er1
23072 cat conftest.err >&5
23073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23074 (exit $ac_status); } && {
23075 test -z "$ac_c_werror_flag" ||
23076 test ! -s conftest.err
23077 } && test -s conftest.$ac_objext; then
23078 ac_cv_have_decl_tzname=yes
23079 else
23080 echo "$as_me: failed program was:" >&5
23081 sed 's/^/| /' conftest.$ac_ext >&5
23083 ac_cv_have_decl_tzname=no
23086 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23088 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
23089 echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; }
23090 if test $ac_cv_have_decl_tzname = yes; then
23092 cat >>confdefs.h <<_ACEOF
23093 #define HAVE_DECL_TZNAME 1
23094 _ACEOF
23097 else
23098 cat >>confdefs.h <<_ACEOF
23099 #define HAVE_DECL_TZNAME 0
23100 _ACEOF
23106 { echo "$as_me:$LINENO: checking for tzname" >&5
23107 echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
23108 if test "${ac_cv_var_tzname+set}" = set; then
23109 echo $ECHO_N "(cached) $ECHO_C" >&6
23110 else
23111 cat >conftest.$ac_ext <<_ACEOF
23112 /* confdefs.h. */
23113 _ACEOF
23114 cat confdefs.h >>conftest.$ac_ext
23115 cat >>conftest.$ac_ext <<_ACEOF
23116 /* end confdefs.h. */
23117 #include <time.h>
23118 #if !HAVE_DECL_TZNAME
23119 extern char *tzname[];
23120 #endif
23123 main ()
23125 return tzname[0][0];
23127 return 0;
23129 _ACEOF
23130 rm -f conftest.$ac_objext conftest$ac_exeext
23131 if { (ac_try="$ac_link"
23132 case "(($ac_try" in
23133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23134 *) ac_try_echo=$ac_try;;
23135 esac
23136 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23137 (eval "$ac_link") 2>conftest.er1
23138 ac_status=$?
23139 grep -v '^ *+' conftest.er1 >conftest.err
23140 rm -f conftest.er1
23141 cat conftest.err >&5
23142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23143 (exit $ac_status); } && {
23144 test -z "$ac_c_werror_flag" ||
23145 test ! -s conftest.err
23146 } && test -s conftest$ac_exeext &&
23147 $as_test_x conftest$ac_exeext; then
23148 ac_cv_var_tzname=yes
23149 else
23150 echo "$as_me: failed program was:" >&5
23151 sed 's/^/| /' conftest.$ac_ext >&5
23153 ac_cv_var_tzname=no
23156 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23157 conftest$ac_exeext conftest.$ac_ext
23159 { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
23160 echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
23161 if test $ac_cv_var_tzname = yes; then
23163 cat >>confdefs.h <<\_ACEOF
23164 #define HAVE_TZNAME 1
23165 _ACEOF
23171 # check tzset(3) exists and works like we expect it to
23172 { echo "$as_me:$LINENO: checking for working tzset()" >&5
23173 echo $ECHO_N "checking for working tzset()... $ECHO_C" >&6; }
23174 if test "${ac_cv_working_tzset+set}" = set; then
23175 echo $ECHO_N "(cached) $ECHO_C" >&6
23176 else
23178 if test "$cross_compiling" = yes; then
23179 ac_cv_working_tzset=no
23180 else
23181 cat >conftest.$ac_ext <<_ACEOF
23182 /* confdefs.h. */
23183 _ACEOF
23184 cat confdefs.h >>conftest.$ac_ext
23185 cat >>conftest.$ac_ext <<_ACEOF
23186 /* end confdefs.h. */
23188 #include <stdlib.h>
23189 #include <time.h>
23190 #include <string.h>
23192 #if HAVE_TZNAME
23193 extern char *tzname[];
23194 #endif
23196 int main()
23198 /* Note that we need to ensure that not only does tzset(3)
23199 do 'something' with localtime, but it works as documented
23200 in the library reference and as expected by the test suite.
23201 This includes making sure that tzname is set properly if
23202 tm->tm_zone does not exist since it is the alternative way
23203 of getting timezone info.
23205 Red Hat 6.2 doesn't understand the southern hemisphere
23206 after New Year's Day.
23209 time_t groundhogday = 1044144000; /* GMT-based */
23210 time_t midyear = groundhogday + (365 * 24 * 3600 / 2);
23212 putenv("TZ=UTC+0");
23213 tzset();
23214 if (localtime(&groundhogday)->tm_hour != 0)
23215 exit(1);
23216 #if HAVE_TZNAME
23217 /* For UTC, tzname[1] is sometimes "", sometimes " " */
23218 if (strcmp(tzname[0], "UTC") ||
23219 (tzname[1][0] != 0 && tzname[1][0] != ' '))
23220 exit(1);
23221 #endif
23223 putenv("TZ=EST+5EDT,M4.1.0,M10.5.0");
23224 tzset();
23225 if (localtime(&groundhogday)->tm_hour != 19)
23226 exit(1);
23227 #if HAVE_TZNAME
23228 if (strcmp(tzname[0], "EST") || strcmp(tzname[1], "EDT"))
23229 exit(1);
23230 #endif
23232 putenv("TZ=AEST-10AEDT-11,M10.5.0,M3.5.0");
23233 tzset();
23234 if (localtime(&groundhogday)->tm_hour != 11)
23235 exit(1);
23236 #if HAVE_TZNAME
23237 if (strcmp(tzname[0], "AEST") || strcmp(tzname[1], "AEDT"))
23238 exit(1);
23239 #endif
23241 #if HAVE_STRUCT_TM_TM_ZONE
23242 if (strcmp(localtime(&groundhogday)->tm_zone, "AEDT"))
23243 exit(1);
23244 if (strcmp(localtime(&midyear)->tm_zone, "AEST"))
23245 exit(1);
23246 #endif
23248 exit(0);
23251 _ACEOF
23252 rm -f conftest$ac_exeext
23253 if { (ac_try="$ac_link"
23254 case "(($ac_try" in
23255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23256 *) ac_try_echo=$ac_try;;
23257 esac
23258 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23259 (eval "$ac_link") 2>&5
23260 ac_status=$?
23261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23262 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23263 { (case "(($ac_try" in
23264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23265 *) ac_try_echo=$ac_try;;
23266 esac
23267 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23268 (eval "$ac_try") 2>&5
23269 ac_status=$?
23270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23271 (exit $ac_status); }; }; then
23272 ac_cv_working_tzset=yes
23273 else
23274 echo "$as_me: program exited with status $ac_status" >&5
23275 echo "$as_me: failed program was:" >&5
23276 sed 's/^/| /' conftest.$ac_ext >&5
23278 ( exit $ac_status )
23279 ac_cv_working_tzset=no
23281 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23287 { echo "$as_me:$LINENO: result: $ac_cv_working_tzset" >&5
23288 echo "${ECHO_T}$ac_cv_working_tzset" >&6; }
23289 if test "$ac_cv_working_tzset" = yes
23290 then
23292 cat >>confdefs.h <<\_ACEOF
23293 #define HAVE_WORKING_TZSET 1
23294 _ACEOF
23298 # Look for subsecond timestamps in struct stat
23299 { echo "$as_me:$LINENO: checking for tv_nsec in struct stat" >&5
23300 echo $ECHO_N "checking for tv_nsec in struct stat... $ECHO_C" >&6; }
23301 if test "${ac_cv_stat_tv_nsec+set}" = set; then
23302 echo $ECHO_N "(cached) $ECHO_C" >&6
23303 else
23304 cat >conftest.$ac_ext <<_ACEOF
23305 /* confdefs.h. */
23306 _ACEOF
23307 cat confdefs.h >>conftest.$ac_ext
23308 cat >>conftest.$ac_ext <<_ACEOF
23309 /* end confdefs.h. */
23310 #include <sys/stat.h>
23312 main ()
23315 struct stat st;
23316 st.st_mtim.tv_nsec = 1;
23319 return 0;
23321 _ACEOF
23322 rm -f conftest.$ac_objext
23323 if { (ac_try="$ac_compile"
23324 case "(($ac_try" in
23325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23326 *) ac_try_echo=$ac_try;;
23327 esac
23328 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23329 (eval "$ac_compile") 2>conftest.er1
23330 ac_status=$?
23331 grep -v '^ *+' conftest.er1 >conftest.err
23332 rm -f conftest.er1
23333 cat conftest.err >&5
23334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23335 (exit $ac_status); } && {
23336 test -z "$ac_c_werror_flag" ||
23337 test ! -s conftest.err
23338 } && test -s conftest.$ac_objext; then
23339 ac_cv_stat_tv_nsec=yes
23340 else
23341 echo "$as_me: failed program was:" >&5
23342 sed 's/^/| /' conftest.$ac_ext >&5
23344 ac_cv_stat_tv_nsec=no
23347 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23350 { echo "$as_me:$LINENO: result: $ac_cv_stat_tv_nsec" >&5
23351 echo "${ECHO_T}$ac_cv_stat_tv_nsec" >&6; }
23352 if test "$ac_cv_stat_tv_nsec" = yes
23353 then
23355 cat >>confdefs.h <<\_ACEOF
23356 #define HAVE_STAT_TV_NSEC 1
23357 _ACEOF
23361 # Look for BSD style subsecond timestamps in struct stat
23362 { echo "$as_me:$LINENO: checking for tv_nsec2 in struct stat" >&5
23363 echo $ECHO_N "checking for tv_nsec2 in struct stat... $ECHO_C" >&6; }
23364 if test "${ac_cv_stat_tv_nsec2+set}" = set; then
23365 echo $ECHO_N "(cached) $ECHO_C" >&6
23366 else
23367 cat >conftest.$ac_ext <<_ACEOF
23368 /* confdefs.h. */
23369 _ACEOF
23370 cat confdefs.h >>conftest.$ac_ext
23371 cat >>conftest.$ac_ext <<_ACEOF
23372 /* end confdefs.h. */
23373 #include <sys/stat.h>
23375 main ()
23378 struct stat st;
23379 st.st_mtimespec.tv_nsec = 1;
23382 return 0;
23384 _ACEOF
23385 rm -f conftest.$ac_objext
23386 if { (ac_try="$ac_compile"
23387 case "(($ac_try" in
23388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23389 *) ac_try_echo=$ac_try;;
23390 esac
23391 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23392 (eval "$ac_compile") 2>conftest.er1
23393 ac_status=$?
23394 grep -v '^ *+' conftest.er1 >conftest.err
23395 rm -f conftest.er1
23396 cat conftest.err >&5
23397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23398 (exit $ac_status); } && {
23399 test -z "$ac_c_werror_flag" ||
23400 test ! -s conftest.err
23401 } && test -s conftest.$ac_objext; then
23402 ac_cv_stat_tv_nsec2=yes
23403 else
23404 echo "$as_me: failed program was:" >&5
23405 sed 's/^/| /' conftest.$ac_ext >&5
23407 ac_cv_stat_tv_nsec2=no
23410 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23413 { echo "$as_me:$LINENO: result: $ac_cv_stat_tv_nsec2" >&5
23414 echo "${ECHO_T}$ac_cv_stat_tv_nsec2" >&6; }
23415 if test "$ac_cv_stat_tv_nsec2" = yes
23416 then
23418 cat >>confdefs.h <<\_ACEOF
23419 #define HAVE_STAT_TV_NSEC2 1
23420 _ACEOF
23424 # On HP/UX 11.0, mvwdelch is a block with a return statement
23425 { echo "$as_me:$LINENO: checking whether mvwdelch is an expression" >&5
23426 echo $ECHO_N "checking whether mvwdelch is an expression... $ECHO_C" >&6; }
23427 if test "${ac_cv_mvwdelch_is_expression+set}" = set; then
23428 echo $ECHO_N "(cached) $ECHO_C" >&6
23429 else
23430 cat >conftest.$ac_ext <<_ACEOF
23431 /* confdefs.h. */
23432 _ACEOF
23433 cat confdefs.h >>conftest.$ac_ext
23434 cat >>conftest.$ac_ext <<_ACEOF
23435 /* end confdefs.h. */
23436 #include <curses.h>
23438 main ()
23441 int rtn;
23442 rtn = mvwdelch(0,0,0);
23445 return 0;
23447 _ACEOF
23448 rm -f conftest.$ac_objext
23449 if { (ac_try="$ac_compile"
23450 case "(($ac_try" in
23451 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23452 *) ac_try_echo=$ac_try;;
23453 esac
23454 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23455 (eval "$ac_compile") 2>conftest.er1
23456 ac_status=$?
23457 grep -v '^ *+' conftest.er1 >conftest.err
23458 rm -f conftest.er1
23459 cat conftest.err >&5
23460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23461 (exit $ac_status); } && {
23462 test -z "$ac_c_werror_flag" ||
23463 test ! -s conftest.err
23464 } && test -s conftest.$ac_objext; then
23465 ac_cv_mvwdelch_is_expression=yes
23466 else
23467 echo "$as_me: failed program was:" >&5
23468 sed 's/^/| /' conftest.$ac_ext >&5
23470 ac_cv_mvwdelch_is_expression=no
23473 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23476 { echo "$as_me:$LINENO: result: $ac_cv_mvwdelch_is_expression" >&5
23477 echo "${ECHO_T}$ac_cv_mvwdelch_is_expression" >&6; }
23479 if test "$ac_cv_mvwdelch_is_expression" = yes
23480 then
23482 cat >>confdefs.h <<\_ACEOF
23483 #define MVWDELCH_IS_EXPRESSION 1
23484 _ACEOF
23488 { echo "$as_me:$LINENO: checking whether WINDOW has _flags" >&5
23489 echo $ECHO_N "checking whether WINDOW has _flags... $ECHO_C" >&6; }
23490 if test "${ac_cv_window_has_flags+set}" = set; then
23491 echo $ECHO_N "(cached) $ECHO_C" >&6
23492 else
23493 cat >conftest.$ac_ext <<_ACEOF
23494 /* confdefs.h. */
23495 _ACEOF
23496 cat confdefs.h >>conftest.$ac_ext
23497 cat >>conftest.$ac_ext <<_ACEOF
23498 /* end confdefs.h. */
23499 #include <curses.h>
23501 main ()
23504 WINDOW *w;
23505 w->_flags = 0;
23508 return 0;
23510 _ACEOF
23511 rm -f conftest.$ac_objext
23512 if { (ac_try="$ac_compile"
23513 case "(($ac_try" in
23514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23515 *) ac_try_echo=$ac_try;;
23516 esac
23517 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23518 (eval "$ac_compile") 2>conftest.er1
23519 ac_status=$?
23520 grep -v '^ *+' conftest.er1 >conftest.err
23521 rm -f conftest.er1
23522 cat conftest.err >&5
23523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23524 (exit $ac_status); } && {
23525 test -z "$ac_c_werror_flag" ||
23526 test ! -s conftest.err
23527 } && test -s conftest.$ac_objext; then
23528 ac_cv_window_has_flags=yes
23529 else
23530 echo "$as_me: failed program was:" >&5
23531 sed 's/^/| /' conftest.$ac_ext >&5
23533 ac_cv_window_has_flags=no
23536 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23539 { echo "$as_me:$LINENO: result: $ac_cv_window_has_flags" >&5
23540 echo "${ECHO_T}$ac_cv_window_has_flags" >&6; }
23543 if test "$ac_cv_window_has_flags" = yes
23544 then
23546 cat >>confdefs.h <<\_ACEOF
23547 #define WINDOW_HAS_FLAGS 1
23548 _ACEOF
23552 { echo "$as_me:$LINENO: checking for is_term_resized" >&5
23553 echo $ECHO_N "checking for is_term_resized... $ECHO_C" >&6; }
23554 cat >conftest.$ac_ext <<_ACEOF
23555 /* confdefs.h. */
23556 _ACEOF
23557 cat confdefs.h >>conftest.$ac_ext
23558 cat >>conftest.$ac_ext <<_ACEOF
23559 /* end confdefs.h. */
23560 #include <curses.h>
23562 main ()
23564 void *x=is_term_resized
23566 return 0;
23568 _ACEOF
23569 rm -f conftest.$ac_objext
23570 if { (ac_try="$ac_compile"
23571 case "(($ac_try" in
23572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23573 *) ac_try_echo=$ac_try;;
23574 esac
23575 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23576 (eval "$ac_compile") 2>conftest.er1
23577 ac_status=$?
23578 grep -v '^ *+' conftest.er1 >conftest.err
23579 rm -f conftest.er1
23580 cat conftest.err >&5
23581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23582 (exit $ac_status); } && {
23583 test -z "$ac_c_werror_flag" ||
23584 test ! -s conftest.err
23585 } && test -s conftest.$ac_objext; then
23587 cat >>confdefs.h <<\_ACEOF
23588 #define HAVE_CURSES_IS_TERM_RESIZED 1
23589 _ACEOF
23591 { echo "$as_me:$LINENO: result: yes" >&5
23592 echo "${ECHO_T}yes" >&6; }
23593 else
23594 echo "$as_me: failed program was:" >&5
23595 sed 's/^/| /' conftest.$ac_ext >&5
23597 { echo "$as_me:$LINENO: result: no" >&5
23598 echo "${ECHO_T}no" >&6; }
23602 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23604 { echo "$as_me:$LINENO: checking for resize_term" >&5
23605 echo $ECHO_N "checking for resize_term... $ECHO_C" >&6; }
23606 cat >conftest.$ac_ext <<_ACEOF
23607 /* confdefs.h. */
23608 _ACEOF
23609 cat confdefs.h >>conftest.$ac_ext
23610 cat >>conftest.$ac_ext <<_ACEOF
23611 /* end confdefs.h. */
23612 #include <curses.h>
23614 main ()
23616 void *x=resize_term
23618 return 0;
23620 _ACEOF
23621 rm -f conftest.$ac_objext
23622 if { (ac_try="$ac_compile"
23623 case "(($ac_try" in
23624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23625 *) ac_try_echo=$ac_try;;
23626 esac
23627 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23628 (eval "$ac_compile") 2>conftest.er1
23629 ac_status=$?
23630 grep -v '^ *+' conftest.er1 >conftest.err
23631 rm -f conftest.er1
23632 cat conftest.err >&5
23633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23634 (exit $ac_status); } && {
23635 test -z "$ac_c_werror_flag" ||
23636 test ! -s conftest.err
23637 } && test -s conftest.$ac_objext; then
23639 cat >>confdefs.h <<\_ACEOF
23640 #define HAVE_CURSES_RESIZE_TERM 1
23641 _ACEOF
23643 { echo "$as_me:$LINENO: result: yes" >&5
23644 echo "${ECHO_T}yes" >&6; }
23645 else
23646 echo "$as_me: failed program was:" >&5
23647 sed 's/^/| /' conftest.$ac_ext >&5
23649 { echo "$as_me:$LINENO: result: no" >&5
23650 echo "${ECHO_T}no" >&6; }
23654 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23656 { echo "$as_me:$LINENO: checking for resizeterm" >&5
23657 echo $ECHO_N "checking for resizeterm... $ECHO_C" >&6; }
23658 cat >conftest.$ac_ext <<_ACEOF
23659 /* confdefs.h. */
23660 _ACEOF
23661 cat confdefs.h >>conftest.$ac_ext
23662 cat >>conftest.$ac_ext <<_ACEOF
23663 /* end confdefs.h. */
23664 #include <curses.h>
23666 main ()
23668 void *x=resizeterm
23670 return 0;
23672 _ACEOF
23673 rm -f conftest.$ac_objext
23674 if { (ac_try="$ac_compile"
23675 case "(($ac_try" in
23676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23677 *) ac_try_echo=$ac_try;;
23678 esac
23679 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23680 (eval "$ac_compile") 2>conftest.er1
23681 ac_status=$?
23682 grep -v '^ *+' conftest.er1 >conftest.err
23683 rm -f conftest.er1
23684 cat conftest.err >&5
23685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23686 (exit $ac_status); } && {
23687 test -z "$ac_c_werror_flag" ||
23688 test ! -s conftest.err
23689 } && test -s conftest.$ac_objext; then
23691 cat >>confdefs.h <<\_ACEOF
23692 #define HAVE_CURSES_RESIZETERM 1
23693 _ACEOF
23695 { echo "$as_me:$LINENO: result: yes" >&5
23696 echo "${ECHO_T}yes" >&6; }
23697 else
23698 echo "$as_me: failed program was:" >&5
23699 sed 's/^/| /' conftest.$ac_ext >&5
23701 { echo "$as_me:$LINENO: result: no" >&5
23702 echo "${ECHO_T}no" >&6; }
23706 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23708 { echo "$as_me:$LINENO: checking for /dev/ptmx" >&5
23709 echo $ECHO_N "checking for /dev/ptmx... $ECHO_C" >&6; }
23711 if test -r /dev/ptmx
23712 then
23713 { echo "$as_me:$LINENO: result: yes" >&5
23714 echo "${ECHO_T}yes" >&6; }
23716 cat >>confdefs.h <<\_ACEOF
23717 #define HAVE_DEV_PTMX 1
23718 _ACEOF
23720 else
23721 { echo "$as_me:$LINENO: result: no" >&5
23722 echo "${ECHO_T}no" >&6; }
23725 { echo "$as_me:$LINENO: checking for /dev/ptc" >&5
23726 echo $ECHO_N "checking for /dev/ptc... $ECHO_C" >&6; }
23728 if test -r /dev/ptc
23729 then
23730 { echo "$as_me:$LINENO: result: yes" >&5
23731 echo "${ECHO_T}yes" >&6; }
23733 cat >>confdefs.h <<\_ACEOF
23734 #define HAVE_DEV_PTC 1
23735 _ACEOF
23737 else
23738 { echo "$as_me:$LINENO: result: no" >&5
23739 echo "${ECHO_T}no" >&6; }
23742 { echo "$as_me:$LINENO: checking for %zd printf() format support" >&5
23743 echo $ECHO_N "checking for %zd printf() format support... $ECHO_C" >&6; }
23744 if test "$cross_compiling" = yes; then
23745 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
23746 See \`config.log' for more details." >&5
23747 echo "$as_me: error: cannot run test program while cross compiling
23748 See \`config.log' for more details." >&2;}
23749 { (exit 1); exit 1; }; }
23750 else
23751 cat >conftest.$ac_ext <<_ACEOF
23752 /* confdefs.h. */
23753 _ACEOF
23754 cat confdefs.h >>conftest.$ac_ext
23755 cat >>conftest.$ac_ext <<_ACEOF
23756 /* end confdefs.h. */
23757 #include <stdio.h>
23758 #include <stddef.h>
23759 #include <string.h>
23761 #ifdef HAVE_SYS_TYPES_H
23762 #include <sys/types.h>
23763 #endif
23765 #ifdef HAVE_SSIZE_T
23766 typedef ssize_t Py_ssize_t;
23767 #elif SIZEOF_VOID_P == SIZEOF_LONG
23768 typedef long Py_ssize_t;
23769 #else
23770 typedef int Py_ssize_t;
23771 #endif
23773 int main()
23775 char buffer[256];
23777 if(sprintf(buffer, "%zd", (size_t)123) < 0)
23778 return 1;
23780 if (strcmp(buffer, "123"))
23781 return 1;
23783 if (sprintf(buffer, "%zd", (Py_ssize_t)-123) < 0)
23784 return 1;
23786 if (strcmp(buffer, "-123"))
23787 return 1;
23789 return 0;
23791 _ACEOF
23792 rm -f conftest$ac_exeext
23793 if { (ac_try="$ac_link"
23794 case "(($ac_try" in
23795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23796 *) ac_try_echo=$ac_try;;
23797 esac
23798 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23799 (eval "$ac_link") 2>&5
23800 ac_status=$?
23801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23802 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23803 { (case "(($ac_try" in
23804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23805 *) ac_try_echo=$ac_try;;
23806 esac
23807 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23808 (eval "$ac_try") 2>&5
23809 ac_status=$?
23810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23811 (exit $ac_status); }; }; then
23812 { echo "$as_me:$LINENO: result: yes" >&5
23813 echo "${ECHO_T}yes" >&6; }
23815 cat >>confdefs.h <<\_ACEOF
23816 #define PY_FORMAT_SIZE_T "z"
23817 _ACEOF
23819 else
23820 echo "$as_me: program exited with status $ac_status" >&5
23821 echo "$as_me: failed program was:" >&5
23822 sed 's/^/| /' conftest.$ac_ext >&5
23824 ( exit $ac_status )
23825 { echo "$as_me:$LINENO: result: no" >&5
23826 echo "${ECHO_T}no" >&6; }
23828 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23833 { echo "$as_me:$LINENO: checking for socklen_t" >&5
23834 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; }
23835 if test "${ac_cv_type_socklen_t+set}" = set; then
23836 echo $ECHO_N "(cached) $ECHO_C" >&6
23837 else
23838 cat >conftest.$ac_ext <<_ACEOF
23839 /* confdefs.h. */
23840 _ACEOF
23841 cat confdefs.h >>conftest.$ac_ext
23842 cat >>conftest.$ac_ext <<_ACEOF
23843 /* end confdefs.h. */
23845 #ifdef HAVE_SYS_TYPES_H
23846 #include <sys/types.h>
23847 #endif
23848 #ifdef HAVE_SYS_SOCKET_H
23849 #include <sys/socket.h>
23850 #endif
23853 typedef socklen_t ac__type_new_;
23855 main ()
23857 if ((ac__type_new_ *) 0)
23858 return 0;
23859 if (sizeof (ac__type_new_))
23860 return 0;
23862 return 0;
23864 _ACEOF
23865 rm -f conftest.$ac_objext
23866 if { (ac_try="$ac_compile"
23867 case "(($ac_try" in
23868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23869 *) ac_try_echo=$ac_try;;
23870 esac
23871 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23872 (eval "$ac_compile") 2>conftest.er1
23873 ac_status=$?
23874 grep -v '^ *+' conftest.er1 >conftest.err
23875 rm -f conftest.er1
23876 cat conftest.err >&5
23877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23878 (exit $ac_status); } && {
23879 test -z "$ac_c_werror_flag" ||
23880 test ! -s conftest.err
23881 } && test -s conftest.$ac_objext; then
23882 ac_cv_type_socklen_t=yes
23883 else
23884 echo "$as_me: failed program was:" >&5
23885 sed 's/^/| /' conftest.$ac_ext >&5
23887 ac_cv_type_socklen_t=no
23890 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23892 { echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
23893 echo "${ECHO_T}$ac_cv_type_socklen_t" >&6; }
23894 if test $ac_cv_type_socklen_t = yes; then
23896 else
23898 cat >>confdefs.h <<\_ACEOF
23899 #define socklen_t int
23900 _ACEOF
23907 for h in `(cd $srcdir;echo Python/thread_*.h)`
23909 THREADHEADERS="$THREADHEADERS \$(srcdir)/$h"
23910 done
23913 SRCDIRS="Parser Grammar Objects Python Modules Mac"
23914 { echo "$as_me:$LINENO: checking for build directories" >&5
23915 echo $ECHO_N "checking for build directories... $ECHO_C" >&6; }
23916 for dir in $SRCDIRS; do
23917 if test ! -d $dir; then
23918 mkdir $dir
23920 done
23921 { echo "$as_me:$LINENO: result: done" >&5
23922 echo "${ECHO_T}done" >&6; }
23924 # generate output files
23925 ac_config_files="$ac_config_files Makefile.pre Modules/Setup.config"
23927 cat >confcache <<\_ACEOF
23928 # This file is a shell script that caches the results of configure
23929 # tests run on this system so they can be shared between configure
23930 # scripts and configure runs, see configure's option --config-cache.
23931 # It is not useful on other systems. If it contains results you don't
23932 # want to keep, you may remove or edit it.
23934 # config.status only pays attention to the cache file if you give it
23935 # the --recheck option to rerun configure.
23937 # `ac_cv_env_foo' variables (set or unset) will be overridden when
23938 # loading this file, other *unset* `ac_cv_foo' will be assigned the
23939 # following values.
23941 _ACEOF
23943 # The following way of writing the cache mishandles newlines in values,
23944 # but we know of no workaround that is simple, portable, and efficient.
23945 # So, we kill variables containing newlines.
23946 # Ultrix sh set writes to stderr and can't be redirected directly,
23947 # and sets the high bit in the cache file unless we assign to the vars.
23949 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
23950 eval ac_val=\$$ac_var
23951 case $ac_val in #(
23952 *${as_nl}*)
23953 case $ac_var in #(
23954 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
23955 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
23956 esac
23957 case $ac_var in #(
23958 _ | IFS | as_nl) ;; #(
23959 *) $as_unset $ac_var ;;
23960 esac ;;
23961 esac
23962 done
23964 (set) 2>&1 |
23965 case $as_nl`(ac_space=' '; set) 2>&1` in #(
23966 *${as_nl}ac_space=\ *)
23967 # `set' does not quote correctly, so add quotes (double-quote
23968 # substitution turns \\\\ into \\, and sed turns \\ into \).
23969 sed -n \
23970 "s/'/'\\\\''/g;
23971 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
23972 ;; #(
23974 # `set' quotes correctly as required by POSIX, so do not add quotes.
23975 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
23977 esac |
23978 sort
23980 sed '
23981 /^ac_cv_env_/b end
23982 t clear
23983 :clear
23984 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
23985 t end
23986 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
23987 :end' >>confcache
23988 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
23989 if test -w "$cache_file"; then
23990 test "x$cache_file" != "x/dev/null" &&
23991 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
23992 echo "$as_me: updating cache $cache_file" >&6;}
23993 cat confcache >$cache_file
23994 else
23995 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
23996 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
23999 rm -f confcache
24001 test "x$prefix" = xNONE && prefix=$ac_default_prefix
24002 # Let make expand exec_prefix.
24003 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
24005 DEFS=-DHAVE_CONFIG_H
24007 ac_libobjs=
24008 ac_ltlibobjs=
24009 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
24010 # 1. Remove the extension, and $U if already installed.
24011 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
24012 ac_i=`echo "$ac_i" | sed "$ac_script"`
24013 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
24014 # will be set to the directory where LIBOBJS objects are built.
24015 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
24016 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
24017 done
24018 LIBOBJS=$ac_libobjs
24020 LTLIBOBJS=$ac_ltlibobjs
24024 : ${CONFIG_STATUS=./config.status}
24025 ac_clean_files_save=$ac_clean_files
24026 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
24027 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
24028 echo "$as_me: creating $CONFIG_STATUS" >&6;}
24029 cat >$CONFIG_STATUS <<_ACEOF
24030 #! $SHELL
24031 # Generated by $as_me.
24032 # Run this file to recreate the current configuration.
24033 # Compiler output produced by configure, useful for debugging
24034 # configure, is in config.log if it exists.
24036 debug=false
24037 ac_cs_recheck=false
24038 ac_cs_silent=false
24039 SHELL=\${CONFIG_SHELL-$SHELL}
24040 _ACEOF
24042 cat >>$CONFIG_STATUS <<\_ACEOF
24043 ## --------------------- ##
24044 ## M4sh Initialization. ##
24045 ## --------------------- ##
24047 # Be more Bourne compatible
24048 DUALCASE=1; export DUALCASE # for MKS sh
24049 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
24050 emulate sh
24051 NULLCMD=:
24052 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
24053 # is contrary to our usage. Disable this feature.
24054 alias -g '${1+"$@"}'='"$@"'
24055 setopt NO_GLOB_SUBST
24056 else
24057 case `(set -o) 2>/dev/null` in
24058 *posix*) set -o posix ;;
24059 esac
24066 # PATH needs CR
24067 # Avoid depending upon Character Ranges.
24068 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
24069 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
24070 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
24071 as_cr_digits='0123456789'
24072 as_cr_alnum=$as_cr_Letters$as_cr_digits
24074 # The user is always right.
24075 if test "${PATH_SEPARATOR+set}" != set; then
24076 echo "#! /bin/sh" >conf$$.sh
24077 echo "exit 0" >>conf$$.sh
24078 chmod +x conf$$.sh
24079 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
24080 PATH_SEPARATOR=';'
24081 else
24082 PATH_SEPARATOR=:
24084 rm -f conf$$.sh
24087 # Support unset when possible.
24088 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
24089 as_unset=unset
24090 else
24091 as_unset=false
24095 # IFS
24096 # We need space, tab and new line, in precisely that order. Quoting is
24097 # there to prevent editors from complaining about space-tab.
24098 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
24099 # splitting by setting IFS to empty value.)
24100 as_nl='
24102 IFS=" "" $as_nl"
24104 # Find who we are. Look in the path if we contain no directory separator.
24105 case $0 in
24106 *[\\/]* ) as_myself=$0 ;;
24107 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24108 for as_dir in $PATH
24110 IFS=$as_save_IFS
24111 test -z "$as_dir" && as_dir=.
24112 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
24113 done
24114 IFS=$as_save_IFS
24117 esac
24118 # We did not find ourselves, most probably we were run as `sh COMMAND'
24119 # in which case we are not to be found in the path.
24120 if test "x$as_myself" = x; then
24121 as_myself=$0
24123 if test ! -f "$as_myself"; then
24124 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
24125 { (exit 1); exit 1; }
24128 # Work around bugs in pre-3.0 UWIN ksh.
24129 for as_var in ENV MAIL MAILPATH
24130 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
24131 done
24132 PS1='$ '
24133 PS2='> '
24134 PS4='+ '
24136 # NLS nuisances.
24137 for as_var in \
24138 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
24139 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
24140 LC_TELEPHONE LC_TIME
24142 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
24143 eval $as_var=C; export $as_var
24144 else
24145 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
24147 done
24149 # Required to use basename.
24150 if expr a : '\(a\)' >/dev/null 2>&1 &&
24151 test "X`expr 00001 : '.*\(...\)'`" = X001; then
24152 as_expr=expr
24153 else
24154 as_expr=false
24157 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
24158 as_basename=basename
24159 else
24160 as_basename=false
24164 # Name of the executable.
24165 as_me=`$as_basename -- "$0" ||
24166 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
24167 X"$0" : 'X\(//\)$' \| \
24168 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
24169 echo X/"$0" |
24170 sed '/^.*\/\([^/][^/]*\)\/*$/{
24171 s//\1/
24174 /^X\/\(\/\/\)$/{
24175 s//\1/
24178 /^X\/\(\/\).*/{
24179 s//\1/
24182 s/.*/./; q'`
24184 # CDPATH.
24185 $as_unset CDPATH
24189 as_lineno_1=$LINENO
24190 as_lineno_2=$LINENO
24191 test "x$as_lineno_1" != "x$as_lineno_2" &&
24192 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
24194 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
24195 # uniformly replaced by the line number. The first 'sed' inserts a
24196 # line-number line after each line using $LINENO; the second 'sed'
24197 # does the real work. The second script uses 'N' to pair each
24198 # line-number line with the line containing $LINENO, and appends
24199 # trailing '-' during substitution so that $LINENO is not a special
24200 # case at line end.
24201 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
24202 # scripts with optimization help from Paolo Bonzini. Blame Lee
24203 # E. McMahon (1931-1989) for sed's syntax. :-)
24204 sed -n '
24206 /[$]LINENO/=
24207 ' <$as_myself |
24208 sed '
24209 s/[$]LINENO.*/&-/
24210 t lineno
24212 :lineno
24214 :loop
24215 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
24216 t loop
24217 s/-\n.*//
24218 ' >$as_me.lineno &&
24219 chmod +x "$as_me.lineno" ||
24220 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
24221 { (exit 1); exit 1; }; }
24223 # Don't try to exec as it changes $[0], causing all sort of problems
24224 # (the dirname of $[0] is not the place where we might find the
24225 # original and so on. Autoconf is especially sensitive to this).
24226 . "./$as_me.lineno"
24227 # Exit status is that of the last command.
24228 exit
24232 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
24233 as_dirname=dirname
24234 else
24235 as_dirname=false
24238 ECHO_C= ECHO_N= ECHO_T=
24239 case `echo -n x` in
24240 -n*)
24241 case `echo 'x\c'` in
24242 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
24243 *) ECHO_C='\c';;
24244 esac;;
24246 ECHO_N='-n';;
24247 esac
24249 if expr a : '\(a\)' >/dev/null 2>&1 &&
24250 test "X`expr 00001 : '.*\(...\)'`" = X001; then
24251 as_expr=expr
24252 else
24253 as_expr=false
24256 rm -f conf$$ conf$$.exe conf$$.file
24257 if test -d conf$$.dir; then
24258 rm -f conf$$.dir/conf$$.file
24259 else
24260 rm -f conf$$.dir
24261 mkdir conf$$.dir
24263 echo >conf$$.file
24264 if ln -s conf$$.file conf$$ 2>/dev/null; then
24265 as_ln_s='ln -s'
24266 # ... but there are two gotchas:
24267 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
24268 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
24269 # In both cases, we have to default to `cp -p'.
24270 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
24271 as_ln_s='cp -p'
24272 elif ln conf$$.file conf$$ 2>/dev/null; then
24273 as_ln_s=ln
24274 else
24275 as_ln_s='cp -p'
24277 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
24278 rmdir conf$$.dir 2>/dev/null
24280 if mkdir -p . 2>/dev/null; then
24281 as_mkdir_p=:
24282 else
24283 test -d ./-p && rmdir ./-p
24284 as_mkdir_p=false
24287 if test -x / >/dev/null 2>&1; then
24288 as_test_x='test -x'
24289 else
24290 if ls -dL / >/dev/null 2>&1; then
24291 as_ls_L_option=L
24292 else
24293 as_ls_L_option=
24295 as_test_x='
24296 eval sh -c '\''
24297 if test -d "$1"; then
24298 test -d "$1/.";
24299 else
24300 case $1 in
24301 -*)set "./$1";;
24302 esac;
24303 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
24304 ???[sx]*):;;*)false;;esac;fi
24305 '\'' sh
24308 as_executable_p=$as_test_x
24310 # Sed expression to map a string onto a valid CPP name.
24311 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
24313 # Sed expression to map a string onto a valid variable name.
24314 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
24317 exec 6>&1
24319 # Save the log message, to keep $[0] and so on meaningful, and to
24320 # report actual input values of CONFIG_FILES etc. instead of their
24321 # values after options handling.
24322 ac_log="
24323 This file was extended by python $as_me 2.6, which was
24324 generated by GNU Autoconf 2.61. Invocation command line was
24326 CONFIG_FILES = $CONFIG_FILES
24327 CONFIG_HEADERS = $CONFIG_HEADERS
24328 CONFIG_LINKS = $CONFIG_LINKS
24329 CONFIG_COMMANDS = $CONFIG_COMMANDS
24330 $ $0 $@
24332 on `(hostname || uname -n) 2>/dev/null | sed 1q`
24335 _ACEOF
24337 cat >>$CONFIG_STATUS <<_ACEOF
24338 # Files that config.status was made for.
24339 config_files="$ac_config_files"
24340 config_headers="$ac_config_headers"
24342 _ACEOF
24344 cat >>$CONFIG_STATUS <<\_ACEOF
24345 ac_cs_usage="\
24346 \`$as_me' instantiates files from templates according to the
24347 current configuration.
24349 Usage: $0 [OPTIONS] [FILE]...
24351 -h, --help print this help, then exit
24352 -V, --version print version number and configuration settings, then exit
24353 -q, --quiet do not print progress messages
24354 -d, --debug don't remove temporary files
24355 --recheck update $as_me by reconfiguring in the same conditions
24356 --file=FILE[:TEMPLATE]
24357 instantiate the configuration file FILE
24358 --header=FILE[:TEMPLATE]
24359 instantiate the configuration header FILE
24361 Configuration files:
24362 $config_files
24364 Configuration headers:
24365 $config_headers
24367 Report bugs to <bug-autoconf@gnu.org>."
24369 _ACEOF
24370 cat >>$CONFIG_STATUS <<_ACEOF
24371 ac_cs_version="\\
24372 python config.status 2.6
24373 configured by $0, generated by GNU Autoconf 2.61,
24374 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
24376 Copyright (C) 2006 Free Software Foundation, Inc.
24377 This config.status script is free software; the Free Software Foundation
24378 gives unlimited permission to copy, distribute and modify it."
24380 ac_pwd='$ac_pwd'
24381 srcdir='$srcdir'
24382 INSTALL='$INSTALL'
24383 _ACEOF
24385 cat >>$CONFIG_STATUS <<\_ACEOF
24386 # If no file are specified by the user, then we need to provide default
24387 # value. By we need to know if files were specified by the user.
24388 ac_need_defaults=:
24389 while test $# != 0
24391 case $1 in
24392 --*=*)
24393 ac_option=`expr "X$1" : 'X\([^=]*\)='`
24394 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
24395 ac_shift=:
24398 ac_option=$1
24399 ac_optarg=$2
24400 ac_shift=shift
24402 esac
24404 case $ac_option in
24405 # Handling of the options.
24406 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
24407 ac_cs_recheck=: ;;
24408 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
24409 echo "$ac_cs_version"; exit ;;
24410 --debug | --debu | --deb | --de | --d | -d )
24411 debug=: ;;
24412 --file | --fil | --fi | --f )
24413 $ac_shift
24414 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
24415 ac_need_defaults=false;;
24416 --header | --heade | --head | --hea )
24417 $ac_shift
24418 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
24419 ac_need_defaults=false;;
24420 --he | --h)
24421 # Conflict between --help and --header
24422 { echo "$as_me: error: ambiguous option: $1
24423 Try \`$0 --help' for more information." >&2
24424 { (exit 1); exit 1; }; };;
24425 --help | --hel | -h )
24426 echo "$ac_cs_usage"; exit ;;
24427 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
24428 | -silent | --silent | --silen | --sile | --sil | --si | --s)
24429 ac_cs_silent=: ;;
24431 # This is an error.
24432 -*) { echo "$as_me: error: unrecognized option: $1
24433 Try \`$0 --help' for more information." >&2
24434 { (exit 1); exit 1; }; } ;;
24436 *) ac_config_targets="$ac_config_targets $1"
24437 ac_need_defaults=false ;;
24439 esac
24440 shift
24441 done
24443 ac_configure_extra_args=
24445 if $ac_cs_silent; then
24446 exec 6>/dev/null
24447 ac_configure_extra_args="$ac_configure_extra_args --silent"
24450 _ACEOF
24451 cat >>$CONFIG_STATUS <<_ACEOF
24452 if \$ac_cs_recheck; then
24453 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
24454 CONFIG_SHELL=$SHELL
24455 export CONFIG_SHELL
24456 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
24459 _ACEOF
24460 cat >>$CONFIG_STATUS <<\_ACEOF
24461 exec 5>>config.log
24463 echo
24464 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
24465 ## Running $as_me. ##
24466 _ASBOX
24467 echo "$ac_log"
24468 } >&5
24470 _ACEOF
24471 cat >>$CONFIG_STATUS <<_ACEOF
24472 _ACEOF
24474 cat >>$CONFIG_STATUS <<\_ACEOF
24476 # Handling of arguments.
24477 for ac_config_target in $ac_config_targets
24479 case $ac_config_target in
24480 "pyconfig.h") CONFIG_HEADERS="$CONFIG_HEADERS pyconfig.h" ;;
24481 "Mac/Makefile") CONFIG_FILES="$CONFIG_FILES Mac/Makefile" ;;
24482 "Mac/PythonLauncher/Makefile") CONFIG_FILES="$CONFIG_FILES Mac/PythonLauncher/Makefile" ;;
24483 "Mac/IDLE/Makefile") CONFIG_FILES="$CONFIG_FILES Mac/IDLE/Makefile" ;;
24484 "Makefile.pre") CONFIG_FILES="$CONFIG_FILES Makefile.pre" ;;
24485 "Modules/Setup.config") CONFIG_FILES="$CONFIG_FILES Modules/Setup.config" ;;
24487 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
24488 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
24489 { (exit 1); exit 1; }; };;
24490 esac
24491 done
24494 # If the user did not use the arguments to specify the items to instantiate,
24495 # then the envvar interface is used. Set only those that are not.
24496 # We use the long form for the default assignment because of an extremely
24497 # bizarre bug on SunOS 4.1.3.
24498 if $ac_need_defaults; then
24499 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
24500 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
24503 # Have a temporary directory for convenience. Make it in the build tree
24504 # simply because there is no reason against having it here, and in addition,
24505 # creating and moving files from /tmp can sometimes cause problems.
24506 # Hook for its removal unless debugging.
24507 # Note that there is a small window in which the directory will not be cleaned:
24508 # after its creation but before its name has been assigned to `$tmp'.
24509 $debug ||
24511 tmp=
24512 trap 'exit_status=$?
24513 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
24515 trap '{ (exit 1); exit 1; }' 1 2 13 15
24517 # Create a (secure) tmp directory for tmp files.
24520 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
24521 test -n "$tmp" && test -d "$tmp"
24522 } ||
24524 tmp=./conf$$-$RANDOM
24525 (umask 077 && mkdir "$tmp")
24526 } ||
24528 echo "$me: cannot create a temporary directory in ." >&2
24529 { (exit 1); exit 1; }
24533 # Set up the sed scripts for CONFIG_FILES section.
24536 # No need to generate the scripts if there are no CONFIG_FILES.
24537 # This happens for instance when ./config.status config.h
24538 if test -n "$CONFIG_FILES"; then
24540 _ACEOF
24544 ac_delim='%!_!# '
24545 for ac_last_try in false false false false false :; do
24546 cat >conf$$subs.sed <<_ACEOF
24547 SHELL!$SHELL$ac_delim
24548 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
24549 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
24550 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
24551 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
24552 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
24553 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
24554 exec_prefix!$exec_prefix$ac_delim
24555 prefix!$prefix$ac_delim
24556 program_transform_name!$program_transform_name$ac_delim
24557 bindir!$bindir$ac_delim
24558 sbindir!$sbindir$ac_delim
24559 libexecdir!$libexecdir$ac_delim
24560 datarootdir!$datarootdir$ac_delim
24561 datadir!$datadir$ac_delim
24562 sysconfdir!$sysconfdir$ac_delim
24563 sharedstatedir!$sharedstatedir$ac_delim
24564 localstatedir!$localstatedir$ac_delim
24565 includedir!$includedir$ac_delim
24566 oldincludedir!$oldincludedir$ac_delim
24567 docdir!$docdir$ac_delim
24568 infodir!$infodir$ac_delim
24569 htmldir!$htmldir$ac_delim
24570 dvidir!$dvidir$ac_delim
24571 pdfdir!$pdfdir$ac_delim
24572 psdir!$psdir$ac_delim
24573 libdir!$libdir$ac_delim
24574 localedir!$localedir$ac_delim
24575 mandir!$mandir$ac_delim
24576 DEFS!$DEFS$ac_delim
24577 ECHO_C!$ECHO_C$ac_delim
24578 ECHO_N!$ECHO_N$ac_delim
24579 ECHO_T!$ECHO_T$ac_delim
24580 LIBS!$LIBS$ac_delim
24581 build_alias!$build_alias$ac_delim
24582 host_alias!$host_alias$ac_delim
24583 target_alias!$target_alias$ac_delim
24584 VERSION!$VERSION$ac_delim
24585 SOVERSION!$SOVERSION$ac_delim
24586 CONFIG_ARGS!$CONFIG_ARGS$ac_delim
24587 UNIVERSALSDK!$UNIVERSALSDK$ac_delim
24588 PYTHONFRAMEWORK!$PYTHONFRAMEWORK$ac_delim
24589 PYTHONFRAMEWORKDIR!$PYTHONFRAMEWORKDIR$ac_delim
24590 PYTHONFRAMEWORKPREFIX!$PYTHONFRAMEWORKPREFIX$ac_delim
24591 PYTHONFRAMEWORKINSTALLDIR!$PYTHONFRAMEWORKINSTALLDIR$ac_delim
24592 FRAMEWORKINSTALLFIRST!$FRAMEWORKINSTALLFIRST$ac_delim
24593 FRAMEWORKINSTALLLAST!$FRAMEWORKINSTALLLAST$ac_delim
24594 FRAMEWORKALTINSTALLFIRST!$FRAMEWORKALTINSTALLFIRST$ac_delim
24595 FRAMEWORKALTINSTALLLAST!$FRAMEWORKALTINSTALLLAST$ac_delim
24596 FRAMEWORKUNIXTOOLSPREFIX!$FRAMEWORKUNIXTOOLSPREFIX$ac_delim
24597 MACHDEP!$MACHDEP$ac_delim
24598 SGI_ABI!$SGI_ABI$ac_delim
24599 EXTRAPLATDIR!$EXTRAPLATDIR$ac_delim
24600 EXTRAMACHDEPPATH!$EXTRAMACHDEPPATH$ac_delim
24601 CONFIGURE_MACOSX_DEPLOYMENT_TARGET!$CONFIGURE_MACOSX_DEPLOYMENT_TARGET$ac_delim
24602 EXPORT_MACOSX_DEPLOYMENT_TARGET!$EXPORT_MACOSX_DEPLOYMENT_TARGET$ac_delim
24603 CC!$CC$ac_delim
24604 CFLAGS!$CFLAGS$ac_delim
24605 LDFLAGS!$LDFLAGS$ac_delim
24606 CPPFLAGS!$CPPFLAGS$ac_delim
24607 ac_ct_CC!$ac_ct_CC$ac_delim
24608 EXEEXT!$EXEEXT$ac_delim
24609 OBJEXT!$OBJEXT$ac_delim
24610 CXX!$CXX$ac_delim
24611 MAINCC!$MAINCC$ac_delim
24612 CPP!$CPP$ac_delim
24613 GREP!$GREP$ac_delim
24614 EGREP!$EGREP$ac_delim
24615 BUILDEXEEXT!$BUILDEXEEXT$ac_delim
24616 LIBRARY!$LIBRARY$ac_delim
24617 LDLIBRARY!$LDLIBRARY$ac_delim
24618 DLLLIBRARY!$DLLLIBRARY$ac_delim
24619 BLDLIBRARY!$BLDLIBRARY$ac_delim
24620 LDLIBRARYDIR!$LDLIBRARYDIR$ac_delim
24621 INSTSONAME!$INSTSONAME$ac_delim
24622 RUNSHARED!$RUNSHARED$ac_delim
24623 LINKCC!$LINKCC$ac_delim
24624 RANLIB!$RANLIB$ac_delim
24625 AR!$AR$ac_delim
24626 SVNVERSION!$SVNVERSION$ac_delim
24627 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
24628 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
24629 INSTALL_DATA!$INSTALL_DATA$ac_delim
24630 LN!$LN$ac_delim
24631 OPT!$OPT$ac_delim
24632 BASECFLAGS!$BASECFLAGS$ac_delim
24633 OTHER_LIBTOOL_OPT!$OTHER_LIBTOOL_OPT$ac_delim
24634 LIBTOOL_CRUFT!$LIBTOOL_CRUFT$ac_delim
24635 SO!$SO$ac_delim
24636 LDSHARED!$LDSHARED$ac_delim
24637 BLDSHARED!$BLDSHARED$ac_delim
24638 CCSHARED!$CCSHARED$ac_delim
24639 LINKFORSHARED!$LINKFORSHARED$ac_delim
24640 CFLAGSFORSHARED!$CFLAGSFORSHARED$ac_delim
24641 SHLIBS!$SHLIBS$ac_delim
24642 USE_SIGNAL_MODULE!$USE_SIGNAL_MODULE$ac_delim
24643 SIGNAL_OBJS!$SIGNAL_OBJS$ac_delim
24644 _ACEOF
24646 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
24647 break
24648 elif $ac_last_try; then
24649 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
24650 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
24651 { (exit 1); exit 1; }; }
24652 else
24653 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
24655 done
24657 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
24658 if test -n "$ac_eof"; then
24659 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
24660 ac_eof=`expr $ac_eof + 1`
24663 cat >>$CONFIG_STATUS <<_ACEOF
24664 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
24665 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
24666 _ACEOF
24667 sed '
24668 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
24669 s/^/s,@/; s/!/@,|#_!!_#|/
24672 s/'"$ac_delim"'$/,g/; t
24673 s/$/\\/; p
24674 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
24675 ' >>$CONFIG_STATUS <conf$$subs.sed
24676 rm -f conf$$subs.sed
24677 cat >>$CONFIG_STATUS <<_ACEOF
24678 CEOF$ac_eof
24679 _ACEOF
24682 ac_delim='%!_!# '
24683 for ac_last_try in false false false false false :; do
24684 cat >conf$$subs.sed <<_ACEOF
24685 USE_THREAD_MODULE!$USE_THREAD_MODULE$ac_delim
24686 LDLAST!$LDLAST$ac_delim
24687 THREADOBJ!$THREADOBJ$ac_delim
24688 DLINCLDIR!$DLINCLDIR$ac_delim
24689 DYNLOADFILE!$DYNLOADFILE$ac_delim
24690 MACHDEP_OBJS!$MACHDEP_OBJS$ac_delim
24691 TRUE!$TRUE$ac_delim
24692 LIBOBJS!$LIBOBJS$ac_delim
24693 HAVE_GETHOSTBYNAME_R_6_ARG!$HAVE_GETHOSTBYNAME_R_6_ARG$ac_delim
24694 HAVE_GETHOSTBYNAME_R_5_ARG!$HAVE_GETHOSTBYNAME_R_5_ARG$ac_delim
24695 HAVE_GETHOSTBYNAME_R_3_ARG!$HAVE_GETHOSTBYNAME_R_3_ARG$ac_delim
24696 HAVE_GETHOSTBYNAME_R!$HAVE_GETHOSTBYNAME_R$ac_delim
24697 HAVE_GETHOSTBYNAME!$HAVE_GETHOSTBYNAME$ac_delim
24698 LIBM!$LIBM$ac_delim
24699 LIBC!$LIBC$ac_delim
24700 UNICODE_OBJS!$UNICODE_OBJS$ac_delim
24701 THREADHEADERS!$THREADHEADERS$ac_delim
24702 SRCDIRS!$SRCDIRS$ac_delim
24703 LTLIBOBJS!$LTLIBOBJS$ac_delim
24704 _ACEOF
24706 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 19; then
24707 break
24708 elif $ac_last_try; then
24709 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
24710 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
24711 { (exit 1); exit 1; }; }
24712 else
24713 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
24715 done
24717 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
24718 if test -n "$ac_eof"; then
24719 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
24720 ac_eof=`expr $ac_eof + 1`
24723 cat >>$CONFIG_STATUS <<_ACEOF
24724 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
24725 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
24726 _ACEOF
24727 sed '
24728 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
24729 s/^/s,@/; s/!/@,|#_!!_#|/
24732 s/'"$ac_delim"'$/,g/; t
24733 s/$/\\/; p
24734 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
24735 ' >>$CONFIG_STATUS <conf$$subs.sed
24736 rm -f conf$$subs.sed
24737 cat >>$CONFIG_STATUS <<_ACEOF
24738 :end
24739 s/|#_!!_#|//g
24740 CEOF$ac_eof
24741 _ACEOF
24744 # VPATH may cause trouble with some makes, so we remove $(srcdir),
24745 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
24746 # trailing colons and then remove the whole line if VPATH becomes empty
24747 # (actually we leave an empty line to preserve line numbers).
24748 if test "x$srcdir" = x.; then
24749 ac_vpsub='/^[ ]*VPATH[ ]*=/{
24750 s/:*\$(srcdir):*/:/
24751 s/:*\${srcdir}:*/:/
24752 s/:*@srcdir@:*/:/
24753 s/^\([^=]*=[ ]*\):*/\1/
24754 s/:*$//
24755 s/^[^=]*=[ ]*$//
24759 cat >>$CONFIG_STATUS <<\_ACEOF
24760 fi # test -n "$CONFIG_FILES"
24763 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS
24765 case $ac_tag in
24766 :[FHLC]) ac_mode=$ac_tag; continue;;
24767 esac
24768 case $ac_mode$ac_tag in
24769 :[FHL]*:*);;
24770 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
24771 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
24772 { (exit 1); exit 1; }; };;
24773 :[FH]-) ac_tag=-:-;;
24774 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
24775 esac
24776 ac_save_IFS=$IFS
24777 IFS=:
24778 set x $ac_tag
24779 IFS=$ac_save_IFS
24780 shift
24781 ac_file=$1
24782 shift
24784 case $ac_mode in
24785 :L) ac_source=$1;;
24786 :[FH])
24787 ac_file_inputs=
24788 for ac_f
24790 case $ac_f in
24791 -) ac_f="$tmp/stdin";;
24792 *) # Look for the file first in the build tree, then in the source tree
24793 # (if the path is not absolute). The absolute path cannot be DOS-style,
24794 # because $ac_f cannot contain `:'.
24795 test -f "$ac_f" ||
24796 case $ac_f in
24797 [\\/$]*) false;;
24798 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
24799 esac ||
24800 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
24801 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
24802 { (exit 1); exit 1; }; };;
24803 esac
24804 ac_file_inputs="$ac_file_inputs $ac_f"
24805 done
24807 # Let's still pretend it is `configure' which instantiates (i.e., don't
24808 # use $as_me), people would be surprised to read:
24809 # /* config.h. Generated by config.status. */
24810 configure_input="Generated from "`IFS=:
24811 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
24812 if test x"$ac_file" != x-; then
24813 configure_input="$ac_file. $configure_input"
24814 { echo "$as_me:$LINENO: creating $ac_file" >&5
24815 echo "$as_me: creating $ac_file" >&6;}
24818 case $ac_tag in
24819 *:-:* | *:-) cat >"$tmp/stdin";;
24820 esac
24822 esac
24824 ac_dir=`$as_dirname -- "$ac_file" ||
24825 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24826 X"$ac_file" : 'X\(//\)[^/]' \| \
24827 X"$ac_file" : 'X\(//\)$' \| \
24828 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
24829 echo X"$ac_file" |
24830 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24831 s//\1/
24834 /^X\(\/\/\)[^/].*/{
24835 s//\1/
24838 /^X\(\/\/\)$/{
24839 s//\1/
24842 /^X\(\/\).*/{
24843 s//\1/
24846 s/.*/./; q'`
24847 { as_dir="$ac_dir"
24848 case $as_dir in #(
24849 -*) as_dir=./$as_dir;;
24850 esac
24851 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
24852 as_dirs=
24853 while :; do
24854 case $as_dir in #(
24855 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
24856 *) as_qdir=$as_dir;;
24857 esac
24858 as_dirs="'$as_qdir' $as_dirs"
24859 as_dir=`$as_dirname -- "$as_dir" ||
24860 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24861 X"$as_dir" : 'X\(//\)[^/]' \| \
24862 X"$as_dir" : 'X\(//\)$' \| \
24863 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
24864 echo X"$as_dir" |
24865 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24866 s//\1/
24869 /^X\(\/\/\)[^/].*/{
24870 s//\1/
24873 /^X\(\/\/\)$/{
24874 s//\1/
24877 /^X\(\/\).*/{
24878 s//\1/
24881 s/.*/./; q'`
24882 test -d "$as_dir" && break
24883 done
24884 test -z "$as_dirs" || eval "mkdir $as_dirs"
24885 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
24886 echo "$as_me: error: cannot create directory $as_dir" >&2;}
24887 { (exit 1); exit 1; }; }; }
24888 ac_builddir=.
24890 case "$ac_dir" in
24891 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
24893 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24894 # A ".." for each directory in $ac_dir_suffix.
24895 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
24896 case $ac_top_builddir_sub in
24897 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
24898 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
24899 esac ;;
24900 esac
24901 ac_abs_top_builddir=$ac_pwd
24902 ac_abs_builddir=$ac_pwd$ac_dir_suffix
24903 # for backward compatibility:
24904 ac_top_builddir=$ac_top_build_prefix
24906 case $srcdir in
24907 .) # We are building in place.
24908 ac_srcdir=.
24909 ac_top_srcdir=$ac_top_builddir_sub
24910 ac_abs_top_srcdir=$ac_pwd ;;
24911 [\\/]* | ?:[\\/]* ) # Absolute name.
24912 ac_srcdir=$srcdir$ac_dir_suffix;
24913 ac_top_srcdir=$srcdir
24914 ac_abs_top_srcdir=$srcdir ;;
24915 *) # Relative name.
24916 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
24917 ac_top_srcdir=$ac_top_build_prefix$srcdir
24918 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
24919 esac
24920 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
24923 case $ac_mode in
24926 # CONFIG_FILE
24929 case $INSTALL in
24930 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
24931 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
24932 esac
24933 _ACEOF
24935 cat >>$CONFIG_STATUS <<\_ACEOF
24936 # If the template does not know about datarootdir, expand it.
24937 # FIXME: This hack should be removed a few years after 2.60.
24938 ac_datarootdir_hack=; ac_datarootdir_seen=
24940 case `sed -n '/datarootdir/ {
24944 /@datadir@/p
24945 /@docdir@/p
24946 /@infodir@/p
24947 /@localedir@/p
24948 /@mandir@/p
24949 ' $ac_file_inputs` in
24950 *datarootdir*) ac_datarootdir_seen=yes;;
24951 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
24952 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
24953 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
24954 _ACEOF
24955 cat >>$CONFIG_STATUS <<_ACEOF
24956 ac_datarootdir_hack='
24957 s&@datadir@&$datadir&g
24958 s&@docdir@&$docdir&g
24959 s&@infodir@&$infodir&g
24960 s&@localedir@&$localedir&g
24961 s&@mandir@&$mandir&g
24962 s&\\\${datarootdir}&$datarootdir&g' ;;
24963 esac
24964 _ACEOF
24966 # Neutralize VPATH when `$srcdir' = `.'.
24967 # Shell code in configure.ac might set extrasub.
24968 # FIXME: do we really want to maintain this feature?
24969 cat >>$CONFIG_STATUS <<_ACEOF
24970 sed "$ac_vpsub
24971 $extrasub
24972 _ACEOF
24973 cat >>$CONFIG_STATUS <<\_ACEOF
24975 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
24976 s&@configure_input@&$configure_input&;t t
24977 s&@top_builddir@&$ac_top_builddir_sub&;t t
24978 s&@srcdir@&$ac_srcdir&;t t
24979 s&@abs_srcdir@&$ac_abs_srcdir&;t t
24980 s&@top_srcdir@&$ac_top_srcdir&;t t
24981 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
24982 s&@builddir@&$ac_builddir&;t t
24983 s&@abs_builddir@&$ac_abs_builddir&;t t
24984 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
24985 s&@INSTALL@&$ac_INSTALL&;t t
24986 $ac_datarootdir_hack
24987 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
24989 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
24990 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
24991 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
24992 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
24993 which seems to be undefined. Please make sure it is defined." >&5
24994 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
24995 which seems to be undefined. Please make sure it is defined." >&2;}
24997 rm -f "$tmp/stdin"
24998 case $ac_file in
24999 -) cat "$tmp/out"; rm -f "$tmp/out";;
25000 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
25001 esac
25005 # CONFIG_HEADER
25007 _ACEOF
25009 # Transform confdefs.h into a sed script `conftest.defines', that
25010 # substitutes the proper values into config.h.in to produce config.h.
25011 rm -f conftest.defines conftest.tail
25012 # First, append a space to every undef/define line, to ease matching.
25013 echo 's/$/ /' >conftest.defines
25014 # Then, protect against being on the right side of a sed subst, or in
25015 # an unquoted here document, in config.status. If some macros were
25016 # called several times there might be several #defines for the same
25017 # symbol, which is useless. But do not sort them, since the last
25018 # AC_DEFINE must be honored.
25019 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
25020 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
25021 # NAME is the cpp macro being defined, VALUE is the value it is being given.
25022 # PARAMS is the parameter list in the macro definition--in most cases, it's
25023 # just an empty string.
25024 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
25025 ac_dB='\\)[ (].*,\\1define\\2'
25026 ac_dC=' '
25027 ac_dD=' ,'
25029 uniq confdefs.h |
25030 sed -n '
25031 t rset
25032 :rset
25033 s/^[ ]*#[ ]*define[ ][ ]*//
25034 t ok
25037 s/[\\&,]/\\&/g
25038 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
25039 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
25040 ' >>conftest.defines
25042 # Remove the space that was appended to ease matching.
25043 # Then replace #undef with comments. This is necessary, for
25044 # example, in the case of _POSIX_SOURCE, which is predefined and required
25045 # on some systems where configure will not decide to define it.
25046 # (The regexp can be short, since the line contains either #define or #undef.)
25047 echo 's/ $//
25048 s,^[ #]*u.*,/* & */,' >>conftest.defines
25050 # Break up conftest.defines:
25051 ac_max_sed_lines=50
25053 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
25054 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
25055 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
25056 # et cetera.
25057 ac_in='$ac_file_inputs'
25058 ac_out='"$tmp/out1"'
25059 ac_nxt='"$tmp/out2"'
25061 while :
25063 # Write a here document:
25064 cat >>$CONFIG_STATUS <<_ACEOF
25065 # First, check the format of the line:
25066 cat >"\$tmp/defines.sed" <<\\CEOF
25067 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
25068 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
25070 :def
25071 _ACEOF
25072 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
25073 echo 'CEOF
25074 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
25075 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
25076 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
25077 grep . conftest.tail >/dev/null || break
25078 rm -f conftest.defines
25079 mv conftest.tail conftest.defines
25080 done
25081 rm -f conftest.defines conftest.tail
25083 echo "ac_result=$ac_in" >>$CONFIG_STATUS
25084 cat >>$CONFIG_STATUS <<\_ACEOF
25085 if test x"$ac_file" != x-; then
25086 echo "/* $configure_input */" >"$tmp/config.h"
25087 cat "$ac_result" >>"$tmp/config.h"
25088 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
25089 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
25090 echo "$as_me: $ac_file is unchanged" >&6;}
25091 else
25092 rm -f $ac_file
25093 mv "$tmp/config.h" $ac_file
25095 else
25096 echo "/* $configure_input */"
25097 cat "$ac_result"
25099 rm -f "$tmp/out12"
25103 esac
25105 done # for ac_tag
25108 { (exit 0); exit 0; }
25109 _ACEOF
25110 chmod +x $CONFIG_STATUS
25111 ac_clean_files=$ac_clean_files_save
25114 # configure is writing to config.log, and then calls config.status.
25115 # config.status does its own redirection, appending to config.log.
25116 # Unfortunately, on DOS this fails, as config.log is still kept open
25117 # by configure, so config.status won't be able to write to it; its
25118 # output is simply discarded. So we exec the FD to /dev/null,
25119 # effectively closing config.log, so it can be properly (re)opened and
25120 # appended to by config.status. When coming back to configure, we
25121 # need to make the FD available again.
25122 if test "$no_create" != yes; then
25123 ac_cs_success=:
25124 ac_config_status_args=
25125 test "$silent" = yes &&
25126 ac_config_status_args="$ac_config_status_args --quiet"
25127 exec 5>/dev/null
25128 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
25129 exec 5>>config.log
25130 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
25131 # would make configure fail if this is the last instruction.
25132 $ac_cs_success || { (exit 1); exit 1; }
25136 echo "creating Modules/Setup"
25137 if test ! -f Modules/Setup
25138 then
25139 cp $srcdir/Modules/Setup.dist Modules/Setup
25142 echo "creating Modules/Setup.local"
25143 if test ! -f Modules/Setup.local
25144 then
25145 echo "# Edit this file for local setup changes" >Modules/Setup.local
25148 echo "creating Makefile"
25149 $SHELL $srcdir/Modules/makesetup -c $srcdir/Modules/config.c.in \
25150 -s Modules Modules/Setup.config \
25151 Modules/Setup.local Modules/Setup
25153 case $ac_sys_system in
25154 BeOS)
25155 { echo "$as_me:$LINENO: WARNING:
25157 Support for BeOS is deprecated as of Python 2.6.
25158 See PEP 11 for the gory details.
25159 " >&5
25160 echo "$as_me: WARNING:
25162 Support for BeOS is deprecated as of Python 2.6.
25163 See PEP 11 for the gory details.
25164 " >&2;}
25166 *) ;;
25167 esac
25169 mv config.c Modules